Update 'mbchc-local.user.js'

This commit is contained in:
Mute 2022-11-03 18:39:43 +00:00
parent e690960782
commit 1cc9ac18d7

View File

@ -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 {