Update 'mbchc-local.user.js'
This commit is contained in:
parent
071ca9a8e1
commit
a0e482c536
|
@ -230,7 +230,8 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER
|
||||||
return(window.ChatRoomCharacter[pos])
|
return(window.ChatRoomCharacter[pos])
|
||||||
},
|
},
|
||||||
rel2char: function(target) {
|
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
|
let index = null
|
||||||
if (target.match(this.RE_ALL_LEFT)) index = me - target.length
|
if (target.match(this.RE_ALL_LEFT)) index = me - target.length
|
||||||
if (target.match(this.RE_ALL_RIGHT)) index = me + target.length
|
if (target.match(this.RE_ALL_RIGHT)) index = me + target.length
|
||||||
|
|
Loading…
Reference in New Issue
Block a user