Update 'mbchc-local.user.js'

This commit is contained in:
Mute 2022-11-03 18:20:44 +00:00
parent 634eddbd2a
commit e690960782

View File

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