massive diff: no changes, just reindent

This commit is contained in:
Mute 2022-12-04 14:16:28 +00:00
parent 2f87b283ed
commit d3852d6e63
1 changed files with 640 additions and 644 deletions

View File

@ -17,12 +17,12 @@
// ==/UserScript== // ==/UserScript==
(function() { (function() {
"use strict"; "use strict";
if (!window.AsylumGGTSSAddItems) throw "AsylumGGTSSAddItems() not found, aborting MBCHC loading" if (!window.AsylumGGTSSAddItems) throw "AsylumGGTSSAddItems() not found, aborting MBCHC loading"
if (window.MBCHC) throw "MBCHC found, aborting loading" if (window.MBCHC) throw "MBCHC found, aborting loading"
window.MBCHC = { window.MBCHC = {
VERSION: "trunk", VERSION: "trunk",
TARGET_VERSION: "R86Beta1", TARGET_VERSION: "R86",
NEXT_MESSAGE: 1, NEXT_MESSAGE: 1,
LOG_MESSAGES: false, LOG_MESSAGES: false,
RETHROW: false, RETHROW: false,
@ -288,9 +288,7 @@
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 || activity.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 || activity.Activity.Name)))
window.DialogPublishAction(char, item) window.DialogPublishAction(char, item)
} else window.ActivityRun(char, activity) } else window.ActivityRun(char, activity)
} finally { } finally {char.FocusGroup = null} },
char.FocusGroup = null
} },
replace_me: function(match, offset, string) { replace_me: function(match, offset, string) {
let text = string.slice(1) let text = string.slice(1)
let suffix = " " let suffix = " "
@ -632,13 +630,11 @@
}) })
// Chat room handlers // Chat room handlers
window.ChatRoomRegisterMessageHandler({ Priority: -220, Description: "MBCHC preprocessor", window.ChatRoomRegisterMessageHandler({ Priority: -220, Description: "MBCHC preprocessor", Callback: (data, sender, msg, metadata) => {
Callback: (data, sender, msg, metadata) => {
data.MBCHC_ID = this.NEXT_MESSAGE data.MBCHC_ID = this.NEXT_MESSAGE
this.NEXT_MESSAGE += 1 this.NEXT_MESSAGE += 1
if (this.LOG_MESSAGES) console.debug({data, sender, msg, metadata}) if (this.LOG_MESSAGES) console.debug({data, sender, msg, metadata})
} }})
})
window.ChatRoomRegisterMessageHandler({ Priority: -219, Description: "MBCHC room enter hook", window.ChatRoomRegisterMessageHandler({ Priority: -219, Description: "MBCHC room enter hook",
Callback: (data, sender, msg, metadata) => { if (("Action" === data.Type) && ("ServerEnter" === data.Content) && (data.Sender === window.Player.cid)) this.player_enters_room() } Callback: (data, sender, msg, metadata) => { if (("Action" === data.Type) && ("ServerEnter" === data.Content) && (data.Sender === window.Player.cid)) this.player_enters_room() }
}) })
@ -665,7 +661,7 @@
if (window.CurrentModule && window.CurrentScreen && !("Character" === window.CurrentModule && "Login" === window.CurrentScreen)) return this.loader() if (window.CurrentModule && window.CurrentScreen && !("Character" === window.CurrentModule && "Login" === window.CurrentScreen)) return this.loader()
this.remove_load_hook = this.before("AsylumGGTSSAddItems", () => this.loader()) this.remove_load_hook = this.before("AsylumGGTSSAddItems", () => this.loader())
} }
} // MBCHC } // MBCHC
fetch("https://code.fleshless.org/mute/MBCHC/raw/branch/master/bondage-club-mod-sdk-1.1.0.js").then(r=>r.text()).then(r=>eval(r)).then(_=>window.MBCHC.preloader()).catch(x=>console.error(x)) /* eslint-disable-line no-eval */ fetch("https://code.fleshless.org/mute/MBCHC/raw/branch/master/bondage-club-mod-sdk-1.1.0.js").then(r=>r.text()).then(r=>eval(r)).then(_=>window.MBCHC.preloader()).catch(x=>console.error(x)) /* eslint-disable-line no-eval */
})() })()