Update 'mbchc-local.user.js'
This commit is contained in:
parent
634eddbd2a
commit
e690960782
|
@ -291,7 +291,7 @@
|
||||||
char.FocusGroup = this.ensure("invalid AssetGroup", () => window.AssetGroupGet(char.AssetFamily, ag))
|
char.FocusGroup = this.ensure("invalid AssetGroup", () => window.AssetGroupGet(char.AssetFamily, ag))
|
||||||
let activity = this.ensure("invalid activity", () => window.ActivityAllowedForGroup(char, char.FocusGroup.Name, true).find(a => a.Name === action))
|
let activity = this.ensure("invalid activity", () => window.ActivityAllowedForGroup(char, char.FocusGroup.Name, true).find(a => a.Name === action))
|
||||||
if (activity.Name.endsWith("Item")) {
|
if (activity.Name.endsWith("Item")) {
|
||||||
const item = this.ensure("no toy found", () => window.Player.Appearance.find(i.Asset?.Name === "SpankingToys" && window.AssetSpankingToys.DynamicActivity(char) === activity.Name))
|
const item = this.ensure("no toy found", () => window.Player.Appearance.find(i => i.Asset?.Name === "SpankingToys" && window.AssetSpankingToys.DynamicActivity(char) === activity.Name))
|
||||||
window.DialogPublishAction(char, item)
|
window.DialogPublishAction(char, item)
|
||||||
} else window.ActivityRun(char, activity)
|
} else window.ActivityRun(char, activity)
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user