diff --git a/mbchc-local.user.js b/mbchc-local.user.js index 3f9e0d0..1e9ace2 100644 --- a/mbchc-local.user.js +++ b/mbchc-local.user.js @@ -11,6 +11,8 @@ // @match https://www.bondageprojects.elementfx.com/R* // @match https://bondage-europe.com/R* // @match https://www.bondage-europe.com/R* +// @match http://localhost:*/* +// @match http://127.0.0.1:*/* // @grant none // ==/UserScript== @@ -289,8 +291,8 @@ 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")) { - let item = this.ensure("no toy found", () => window.Player.Inventory.find(i => (i.Asset != null) && (i.Asset.Group.Name == char.FocusGroup.Name) && i.Asset.DynamicAllowInventoryAdd(char))) - window.DialogPublishAction(char, window.DialogInventoryCreateItem(char, item, false)) + const item = this.ensure("no toy found", () => window.Player.Appearance.find(i.Asset?.Name === "SpankingToys" && window.AssetSpankingToys.DynamicActivity(char) === activity.Name)) + window.DialogPublishAction(char, item) } else window.ActivityRun(char, activity) } finally { char.FocusGroup = null