hopefully caseless match for targets, bc updated to 121

This commit is contained in:
2025-10-18 11:27:24 +00:00
parent d8a4d250d7
commit 8e0d374b90
3 changed files with 1778 additions and 859 deletions

View File

@@ -1,5 +1,5 @@
// Take a look at the .d.ts for comments.
export const version = '110.13.0'
export const version = '121.13.1'
const W = window, D = W.document, /**fuck money*/$ = undefined, /**@type {''}*/$S = '', /**@type {{}}*/$O = {}, /**@type {Set<string>}*/$Ss = new Set() // /**@type {readonly []}*/$A = [],
const/**@type {TextDictionaryEntry}*/MISSING_PLAYER_DIALOG = {Tag: 'MISSING TEXT IN "Interface.csv": ', Text: '\u200C'} // Zero-width non-joiner, used to break up ligatures, does nothing here, but an empty string is a falsey value
@@ -93,7 +93,7 @@ const/**@type {Utils}*/U = { remove_loader_hook: $, RGB: {Polly: '#81b1e7', Mute
cur(ass(`failed to parse target "${t}"`, U.RE.REL.L.test(t) ? sub : U.RE.REL.R.test(t) ? add : $)(me, t.length), pos =>
cur(pos % U.crc.length, p => U.abs2char(p < 0 ? p + U.crc.length : p)))),
cid2char: id => id === U.cid(W.Player) ? W.Player : ass(`character ${id} not found in the room`, U.crc.find(c => id === U.cid(c))),
target2char(target) { let t = target.trim(); const /**@type {Set<Character>}*/f = new Set() // FIXME Target should be low case (take a look at this later)
target2char(target) { let t = target.toLocaleLowerCase().trim(); const /**@type {Set<Character>}*/f = new Set() // FIXME there may be some fuckery going on with character cases
if (m_t(t)) return W.Player
if (t.at(0) === '=') return U.cid2char(ass(`invalid member number "${target}"`, int(t.slice(1))))
if ('<>'.includes(t.at(0) ?? '-')) return U.rel2char(t)

2629
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,12 +1,12 @@
{
"name": "mbchc",
"version": "110.13.0",
"version": "121.13.1",
"description": "Mute's Bondage Club Hacks Collection",
"author": "Mute",
"private": true,
"type": "module",
"devDependencies": {
"bc-stubs": "^110.0.0",
"bc-stubs": "^121.0.0",
"bondage-club-mod-sdk": "^1.2.0",
"typescript": "^5.5.2",
"xo": "^0.56.0"