十胜十败显示

This commit is contained in:
mengxinzxz 2024-03-06 23:48:48 +08:00
parent 7b5ea85a72
commit b02979b9a8
1 changed files with 8 additions and 18 deletions

View File

@ -2640,15 +2640,10 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.trueZhu.update(); game.trueZhu.update();
game.falseZhu.update(); game.falseZhu.update();
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
/* if(evt=='shishengshibai'){
if(get.is.phoneLayout()){ ui.guanduInfo=get.is.phoneLayout()?ui.create.div('.touchinfo.left',ui.window):ui.create.div(ui.gameinfo);
ui.guanduInfo=ui.create.div('.touchinfo.left',ui.window); ui.guanduInfo.innerHTML='十胜十败0';
} }
else{
ui.guanduInfo=ui.create.div(ui.gameinfo);
}
ui.guanduInfo.innerHTML='当前事件:'+get.translation(evt);
*/
const showGuanduEvent=function(evt){ const showGuanduEvent=function(evt){
if(ui['GuanduEvent_'+evt]) return; if(ui['GuanduEvent_'+evt]) return;
ui['GuanduEvent_'+evt]=ui.create.system(get.translation(evt),null,true); ui['GuanduEvent_'+evt]=ui.create.system(get.translation(evt),null,true);
@ -2763,18 +2758,13 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
},250); },250);
}; };
showGuanduEvent(evt); showGuanduEvent(evt);
/*
game.broadcastAll(function(evt){ game.broadcastAll(function(evt){
if(get.is.phoneLayout()){
ui.guanduInfo=ui.create.div('.touchinfo.left',ui.window);
}
else{
ui.guanduInfo=ui.create.div(ui.gameinfo);
}
if(lib.config.background_speak) game.playAudio('skill',evt); if(lib.config.background_speak) game.playAudio('skill',evt);
ui.guanduInfo.innerHTML='当前事件:'+get.translation(evt); if(evt=='shishengshibai'){
ui.guanduInfo=get.is.phoneLayout()?ui.create.div('.touchinfo.left',ui.window):ui.create.div(ui.gameinfo);
ui.guanduInfo.innerHTML='十胜十败0';
}
},evt); },evt);
*/
game.me.chooseControl('ok').set('dialog',['###本局特殊事件:'+get.translation(evt)+'###'+get.translation(evt+'_info'),[[character],'character']]); game.me.chooseControl('ok').set('dialog',['###本局特殊事件:'+get.translation(evt)+'###'+get.translation(evt+'_info'),[[character],'character']]);
'step 1' 'step 1'
event.falseList=['ol_xiahouyuan','litong','zangba','manchong','xunyu','re_guojia','re_zhangliao','xuhuang','caohong','jsp_guanyu','hanhaoshihuan','caoren','yujin','liuye','chengyu','xunyou','zhangxiu','sp_jiaxu'].filter(function(name){ event.falseList=['ol_xiahouyuan','litong','zangba','manchong','xunyu','re_guojia','re_zhangliao','xuhuang','caohong','jsp_guanyu','hanhaoshihuan','caoren','yujin','liuye','chengyu','xunyou','zhangxiu','sp_jiaxu'].filter(function(name){
@ -4728,7 +4718,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
if(!_status.shishengshibai) _status.shishengshibai=0; if(!_status.shishengshibai) _status.shishengshibai=0;
_status.shishengshibai++; _status.shishengshibai++;
game.broadcastAll(function(num){ game.broadcastAll(function(num){
if(ui.guanduInfo) ui.guanduInfo.innerHTML='当前事件:十胜十败('+num+''; if(ui.guanduInfo) ui.guanduInfo.innerHTML='十胜十败('+num+'';
},_status.shishengshibai); },_status.shishengshibai);
if(_status.shishengshibai%10==0&&trigger.targets&&trigger.targets.length>0&&!['delay','equip'].includes(get.type(trigger.card))){ if(_status.shishengshibai%10==0&&trigger.targets&&trigger.targets.length>0&&!['delay','equip'].includes(get.type(trigger.card))){
trigger.effectCount++; trigger.effectCount++;