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