Update 'mbchc-local.user.js'
This commit is contained in:
parent
e690960782
commit
1cc9ac18d7
|
@ -291,7 +291,7 @@
|
|||
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))
|
||||
if (activity.Name.endsWith("Item")) {
|
||||
const item = this.ensure("no toy found", () => window.Player.Appearance.find(i => i.Asset?.Name === "SpankingToys" && window.AssetSpankingToys.DynamicActivity(char) === activity.Name))
|
||||
const item = this.ensure("no toy found", () => window.Player.Inventory.find(i => i.Asset?.Name === "SpankingToys" && i.Asset.Group?.Name === char.FocusGroup.Name && window.AssetSpankingToys.DynamicActivity(char) === activity.Name))
|
||||
window.DialogPublishAction(char, item)
|
||||
} else window.ActivityRun(char, activity)
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue
Block a user