From 634eddbd2adee0df0ceed6f059d541be608064dd Mon Sep 17 00:00:00 2001 From: Mute Date: Thu, 3 Nov 2022 18:17:20 +0000 Subject: [PATCH] Update 'mbchc-local.user.js' patch by Lyra, fixes `/do item` behaviour --- mbchc-local.user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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