From 6aa4e18982eac41d1e787ea46641fbc9c0e6aac7 Mon Sep 17 00:00:00 2001 From: Rintim Date: Tue, 26 Sep 2023 23:58:05 +0800 Subject: [PATCH] unite arguments length between prototype function and its hook. --- game/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/game.js b/game/game.js index 20cc77bbd..a4fb56f47 100644 --- a/game/game.js +++ b/game/game.js @@ -266,7 +266,7 @@ }); }], //增加新属性杀 - addNature:[(nature,config)=>{ + addNature:[(nature,_translation,config)=>{ if(typeof config!='object') config={}; let linked=config.linked,order=config.order,background=config.background,lineColor=config.lineColor; if(typeof linked!='boolean') linked=true; @@ -33429,7 +33429,7 @@ lib.onload.add(()=>{ for(const hook of lib.hooks.addNature){ if(hook!=null&&typeof hook=="function"){ - hook(nature,config); + hook(nature,translation,config); } } })