fix 奇遇

This commit is contained in:
luying
2020-12-31 15:22:01 +08:00
parent 747d24c6b2
commit 255696e590
4 changed files with 36 additions and 40 deletions

View File

@@ -13,7 +13,7 @@ export async function switchOnFunc(roleId: string, type: number, param: number,
let funcs = new Array<{id: number, desc: string, script: string}>(), addFuncs = new Array<number>();
for(let obj of dicFuncSwitch) {
if(obj.conditionType == type && !dataFuncs.includes(obj.id) && obj.param == param) {
if(obj.conditionType == type && !dataFuncs.includes(obj.id) && obj.param <= param) {
funcs.push({id: obj.id, desc: obj.desc, script: obj.script});
addFuncs.push(obj.id);
}