From ef8e2cb3edcd82f9588055f3d8cd3cab076bd3b9 Mon Sep 17 00:00:00 2001 From: Mute Date: Wed, 18 Sep 2024 20:32:34 +0000 Subject: [PATCH] 0.0.2 small changes * hopefully fixes the deafening * spelling * new monkey matches * official mod-sdk download * R108 stubs --- ambient.d.ts | 2 +- lily.user.js | 15 +++++++-------- package-lock.json | 12 ++++++------ package.json | 5 +++-- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ambient.d.ts b/ambient.d.ts index a4cbca7..8836189 100644 --- a/ambient.d.ts +++ b/ambient.d.ts @@ -1,7 +1,7 @@ declare namespace LILY { interface Utils { remove_hook: undefined | (() => void) - true(callback: () => unknown): true // stops elsint from complainting about constant bool expressions + true(callback: () => unknown): true // stops eslint from complaining about constant bool expressions with(value: V, callback: (v: V) => R): R // A silly helper to kinda curry values send(callback: () => boolean): boolean // updates the player if the function succeeds } diff --git a/lily.user.js b/lily.user.js index b108452..a719c03 100644 --- a/lily.user.js +++ b/lily.user.js @@ -1,16 +1,14 @@ // ==UserScript== // @name LILY // @namespace https://code.fleshless.org/mute -// @version 0.0.1 +// @version 0.0.2 // @description Lily's Integrated Logic Yoke // @grant none // @author Mute -// @require https://code.fleshless.org/mute/LILY/raw/branch/mistress/bcmodsdk-1.2.0.mjs -// @match https://bondageprojects.elementfx.com/* -// @match https://www.bondageprojects.elementfx.com/* -// @match https://bondage-europe.com/* -// @match https://www.bondage-europe.com/* -// @match http://localhost:*/* +// @require https://jomshir98.github.io/bondage-club-mod-sdk/bcmodsdk.js +// @match https://*.bondageprojects.elementfx.com/R*/*/ +// @match https://*.bondage-europe.com/R*/*/ +// @match https://*.bondageprojects.com/R*/*/ // ==/UserScript== (function() { 'use strict'; @@ -75,7 +73,8 @@ if (U.remove_hook !== undefined) {U.remove_hook?.(); U.remove_hook = undefined} if (W.Player.MemberNumber === undefined) return void unload('member not identified') if (!Belt.users.includes(W.Player.MemberNumber)) return void unload('member not eligible for loading') - SDK.hookFunction('SpeechTransformGagGarble', 0, ([text]) => text) // disable garbling + // SDK.hookFunction('SpeechTransformGagGarble', 0, ([text]) => text) // disable garbling // unfortunately affects hearing as well + SDK.hookFunction('SpeechTransformGagGarbleIntensity', 0, _ => 0) // disable garbling SDK.hookFunction('ChatRoomSendChatMessage', 0, (na, n) => Box.enabled || na[0].startsWith('(') ? n(na) : !U.true(() => void W.ChatRoomSendLocal('You try to talk, but nothing comes out.'))) W.ChatRoomRegisterMessageHandler({Priority: -169, Description: 'LILY', Callback: data => data.Type === 'Whisper' && data.Content.startsWith('#LILY') && U.true(() => void Belt.receive(data))}) console.debug(`LILY: eligible member detected, loaded version ${GM_info.script.version}`) diff --git a/package-lock.json b/package-lock.json index 6eb331c..8184a73 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "lily", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "lily", - "version": "0.0.1", + "version": "0.0.2", "license": "SEE LICENSE IN LICENSE.", "devDependencies": { "@types/tampermonkey": "^5.0.3", - "bc-stubs": "^105.0.0", + "bc-stubs": "^108.0.0", "bondage-club-mod-sdk": "^1.2.0", "xo": "^0.58.0" } @@ -1098,9 +1098,9 @@ "dev": true }, "node_modules/bc-stubs": { - "version": "105.0.3", - "resolved": "https://registry.npmjs.org/bc-stubs/-/bc-stubs-105.0.3.tgz", - "integrity": "sha512-haKRphxOdPQT/9W6s5L0x5DFDttOrk0xBddFfoLnMQlz7AiXnU3TGdlJ+biWpmQtyHc7WrJARbYd4Wf7+a4j8g==", + "version": "108.0.0", + "resolved": "https://registry.npmjs.org/bc-stubs/-/bc-stubs-108.0.0.tgz", + "integrity": "sha512-b3ko8zl9zn5umYKC7uMQjEtOQxcbAdalUvJ7DoOPyJX4WcsdJFq+R76Rr8bhTtcRq7aW3tk7DtDjTy9awd7CRw==", "dev": true, "dependencies": { "socket.io-client": "4.6.1" diff --git a/package.json b/package.json index dd7c4ea..d8226be 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,12 @@ { "name": "lily", - "version": "0.0.1", + "version": "0.0.2", "description": "Lily's Integrated Logic Yoke", "type": "module", + "private": true, "devDependencies": { "xo": "^0.58.0", - "bc-stubs": "^105.0.0", + "bc-stubs": "^108.0.0", "bondage-club-mod-sdk": "^1.2.0", "@types/tampermonkey": "^5.0.3" },