0.0.2
small changes * hopefully fixes the deafening * spelling * new monkey matches * official mod-sdk download * R108 stubs
This commit is contained in:
parent
f2d041edd5
commit
ef8e2cb3ed
2
ambient.d.ts
vendored
2
ambient.d.ts
vendored
|
@ -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<V, R>(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
|
||||
}
|
||||
|
|
15
lily.user.js
15
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('<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}`)
|
||||
|
|
12
package-lock.json
generated
12
package-lock.json
generated
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user