From 8d6669795bb74f7a9bc084ed65108b81c69e9cb4 Mon Sep 17 00:00:00 2001 From: Mute Date: Thu, 7 Jul 2022 23:34:05 +0000 Subject: [PATCH] Update 'mbchc-local.user.js' --- mbchc-local.user.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mbchc-local.user.js b/mbchc-local.user.js index 0fb2aa5..8551559 100644 --- a/mbchc-local.user.js +++ b/mbchc-local.user.js @@ -27,6 +27,7 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER VERSION: 'trunk', NEXT_MESSAGE: 1, LOG_MESSAGES: false, + RETHROW: false, LOADED: false, AUTOHACK_ENABLED: false, LAST_HACKED: null, @@ -210,7 +211,10 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER }, bg_colour: function() { return(document.getElementById("TextAreaChatLog").dataset.colortheme.startsWith("light") ? this.RGB_POLLY : this.RGB_MUTE) }, inform: function(html) { window.ChatRoomSendLocal(`
${html}
`, 60000) }, - report: function(x) { this.inform(`Error: ${x.toString()}`) }, + report: function(x) { + this.inform(`Error: ${x.toString()}`) + if (this.RETHROW) throw x + }, id2char: function(id) { return(window.ChatRoomCharacter.find( c => c.MemberNumber === Number.parseInt(id) )) }, donate_data: function(recipient) { let id = Number.parseInt(recipient) @@ -229,7 +233,7 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER 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.DialogItemClick(window.DialogInventoryCreateItem(char, item, false)) + window.DialogPublishAction(char, window.DialogInventoryCreateItem(char, item, false)) } else { window.ActivityRun(char, activity) }