small changes
* hopefully fixes the deafening
* spelling
* new monkey matches
* official mod-sdk download
* R108 stubs
This commit is contained in:
2024-09-18 20:32:34 +00:00
parent f2d041edd5
commit ef8e2cb3ed
4 changed files with 17 additions and 17 deletions

View File

@@ -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('<span style="color: red">You try to talk, but nothing comes out.</span>')))
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}`)