From b66a32b915f430b3a4add413b20acdcca5abb5bd Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Fri, 5 Apr 2024 00:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E6=88=98=E6=A8=A1=E5=BC=8F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0lib.yingbian=5Fguozhan=EF=BC=8C=E7=94=A8=E4=BB=A5?= =?UTF-8?q?=E7=BB=99=E5=BA=94=E5=8F=98=E6=A8=A1=E5=BC=8F=E5=8D=95=E7=8B=AC?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0/=E8=A6=86=E7=9B=96=E6=AD=A6=E5=B0=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mode/guozhan.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mode/guozhan.js b/mode/guozhan.js index 9322ee925..d13d0f6f0 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -88,6 +88,13 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ case 'yingbian': lib.card.list=lib.guozhanPile_yingbian.slice(0); delete lib.translate.shuiyanqijunx_info_guozhan; + const pack=lib.yingbian_guozhan; + for(const i in pack){ + if(!pack[i][4]) pack[i][4]=[]; + lib.character[i]=pack[i]; + lib.characterPack.mode_guozhan[i]=pack[i]; + if(!lib.translate[i]) lib.translate[i]=lib.translate[i.slice(3)]; + } break; case 'normal':lib.card.list=lib.guozhanPile.slice(0);break; } @@ -124,14 +131,19 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ game.broadcastAll((mode,separatism)=>{ _status.mode=mode; if(separatism) _status.separatism=true; + var pack=lib.characterPack.mode_guozhan; if(mode=='yingbian'){ delete lib.translate.shuiyanqijunx_info_guozhan; + const pack2=lib.yingbian_guozhan; + for(const i in pack2){ + if(!pack2[i][4]) pack2[i][4]=[]; + pack[i]=pack2[i]; + } } for(var i=0;i