Update 'mbchc-local.user.js'

This commit is contained in:
Mute 2022-07-09 02:33:08 +00:00
parent 071ca9a8e1
commit a0e482c536

View File

@ -230,7 +230,8 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER
return(window.ChatRoomCharacter[pos])
},
rel2char: function(target) {
let me = this.ensure("can't find my position", () => window.ChatRoomCharacter.findIndex(char => char.IsPlayer()))
let me = this.ensure("can't find my position", () => window.ChatRoomCharacter.findIndex(char => char.IsPlayer()) + 1)
me = me - 1
let index = null
if (target.match(this.RE_ALL_LEFT)) index = me - target.length
if (target.match(this.RE_ALL_RIGHT)) index = me + target.length