Fix the CSS, and remove the trigger limitations of lib.element.player.changeHp and game.chooseCharacter.

This commit is contained in:
Tipx-L 2023-09-01 08:45:46 -07:00
parent e22fd8424a
commit fe45a009ae
11 changed files with 44 additions and 44 deletions

View File

@ -23050,7 +23050,7 @@
return next; return next;
}, },
changeHp:function(num,popup){ changeHp:function(num,popup){
var next=game.createEvent('changeHp',false); var next=game.createEvent('changeHp');
next.num=num; next.num=num;
if(popup!=undefined) next.popup=popup; if(popup!=undefined) next.popup=popup;
next.player=this; next.player=this;
@ -37446,7 +37446,7 @@
return next; return next;
}, },
chooseCharacterDouble:function(){ chooseCharacterDouble:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
var config,width,num,ratio,func,update,list,first; var config,width,num,ratio,func,update,list,first;
for(var i=0;i<arguments.length;i++){ for(var i=0;i<arguments.length;i++){
if(typeof arguments[i]=='number'){ if(typeof arguments[i]=='number'){

View File

@ -2869,7 +2869,7 @@ div:not(.handcards)>.card>.info>span,
.linked>.count { .linked>.count {
right: 154px; right: 154px;
} }
.acted>.identity { .acted>.identity>div {
transform: rotate(180deg); transform: rotate(180deg);
} }

View File

@ -1127,7 +1127,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
}, },
chooseCharacter:function(func){ chooseCharacter:function(func){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.customreplacetarget=func; next.customreplacetarget=func;
next.ai=function(player,list){ next.ai=function(player,list){

View File

@ -1005,7 +1005,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
return dialog; return dialog;
}, },
chooseCharacter:function(){ chooseCharacter:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
@ -1221,7 +1221,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
content:{ content:{
chooseCharacterBefore:function(){ chooseCharacterBefore:function(){
game.chooseCharacter=function(){ game.chooseCharacter=function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.addPlayer=true; next.addPlayer=true;
next.ai=function(player,list,back){ next.ai=function(player,list,back){
@ -2798,7 +2798,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}, },
game.addGlobalSkill('_changeCharacter'); game.addGlobalSkill('_changeCharacter');
game.chooseCharacterTwo=function(){ game.chooseCharacterTwo=function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -3263,7 +3263,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.identityVideoName='千里单骑'; game.identityVideoName='千里单骑';
game.saveConfig('player_number',_status.qianlidanji.player_number,'identity'); game.saveConfig('player_number',_status.qianlidanji.player_number,'identity');
game.chooseCharacter=function(){ game.chooseCharacter=function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
@ -3775,7 +3775,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
] ]
game.liangjunduilei=list; game.liangjunduilei=list;
game.chooseCharacterTwo=function(){ game.chooseCharacterTwo=function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
for(var i in lib.skill){ for(var i in lib.skill){

View File

@ -3634,7 +3634,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
ui.money.childNodes[1].innerHTML=game.data.dust; ui.money.childNodes[1].innerHTML=game.data.dust;
}, },
chooseCharacter:function(){ chooseCharacter:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.ai=function(player,list){ next.ai=function(player,list){
if(get.config('double_character')){ if(get.config('double_character')){

View File

@ -298,7 +298,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
else return player.identity=='fan'; else return player.identity=='fan';
}, },
chooseCharacterZhidou:function(){ chooseCharacterZhidou:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
game.no_continue_game=true; game.no_continue_game=true;
@ -405,7 +405,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterBinglin:function(){ chooseCharacterBinglin:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
game.no_continue_game=true; game.no_continue_game=true;
@ -501,7 +501,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterHuanle:function(){ chooseCharacterHuanle:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -588,7 +588,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}, },
chooseCharacterKaihei:function(){ chooseCharacterKaihei:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -681,7 +681,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.chooseCharacterBinglin(); game.chooseCharacterBinglin();
return; return;
} }
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.addPlayer=function(player){ next.addPlayer=function(player){
var list=lib.config.mode_config.identity.identity[game.players.length-3].slice(0); var list=lib.config.mode_config.identity.identity[game.players.length-3].slice(0);
@ -1107,7 +1107,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}, },
chooseCharacterKaiheiOL:function(){ chooseCharacterKaiheiOL:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -1224,7 +1224,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterHuanleOL:function(){ chooseCharacterHuanleOL:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -1353,7 +1353,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterBinglinOL:function(){ chooseCharacterBinglinOL:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -1497,7 +1497,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterZhidouOL:function(){ chooseCharacterZhidouOL:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -1652,7 +1652,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.chooseCharacterBinglinOL(); game.chooseCharacterBinglinOL();
return; return;
} }
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');

View File

@ -13653,7 +13653,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
return winner&&winner.isFriendOf(game.me); return winner&&winner.isFriendOf(game.me);
}, },
chooseCharacter:function(){ chooseCharacter:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.addPlayer=true; next.addPlayer=true;
next.ai=function(player,list,back){ next.ai=function(player,list,back){
@ -14006,7 +14006,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterOL:function(){ chooseCharacterOL:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
game.broadcastAll(function(){ game.broadcastAll(function(){

View File

@ -648,7 +648,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
}, },
chooseCharacterPurpleOL:function(){ chooseCharacterPurpleOL:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -833,7 +833,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterPurple:function(){ chooseCharacterPurple:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');
@ -970,7 +970,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.chooseCharacterPurple(); game.chooseCharacterPurple();
return; return;
} }
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.addPlayer=function(player){ next.addPlayer=function(player){
var list=lib.config.mode_config.identity.identity[game.players.length-3].slice(0); var list=lib.config.mode_config.identity.identity[game.players.length-3].slice(0);
@ -1747,7 +1747,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.chooseCharacterPurpleOL(); game.chooseCharacterPurpleOL();
return; return;
} }
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');

View File

@ -322,7 +322,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
return player.isAlive(); return player.isAlive();
}, },
chooseCharacterDianjiang:function(){ chooseCharacterDianjiang:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
@ -376,7 +376,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.chooseCharacterDianjiang(); game.chooseCharacterDianjiang();
return; return;
} }
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
@ -547,7 +547,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterDianjiangOL:function(){ chooseCharacterDianjiangOL:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
@ -613,7 +613,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.chooseCharacterDianjiangOL(); game.chooseCharacterDianjiangOL();
return; return;
} }
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
ui.arena.classList.add('choose-character'); ui.arena.classList.add('choose-character');

View File

@ -1450,7 +1450,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
game.additionaldead=[]; game.additionaldead=[];
}, },
chooseCharacter:function(){ chooseCharacter:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"

View File

@ -650,7 +650,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
}, },
chooseCharacterJiange:function(){ chooseCharacterJiange:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
@ -853,7 +853,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterSiguo:function(){ chooseCharacterSiguo:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
@ -1130,7 +1130,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterTwo:function(){ chooseCharacterTwo:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
@ -1439,7 +1439,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterEndless:function(){ chooseCharacterEndless:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
@ -1586,7 +1586,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterFour:function(){ chooseCharacterFour:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.ai=function(player,list,list2){ next.ai=function(player,list,list2){
if(player.identity=='zhu'){ if(player.identity=='zhu'){
@ -1932,7 +1932,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterThree:function(){ chooseCharacterThree:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
if(lib.config.continue_name_versus_three){ if(lib.config.continue_name_versus_three){
@ -2041,7 +2041,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacter:function(){ chooseCharacter:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.showConfig=true; next.showConfig=true;
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
@ -2546,7 +2546,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
}, },
chooseCharacterOLGuandu:function(){ chooseCharacterOLGuandu:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
var list=[ var list=[
@ -2686,7 +2686,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterGuandu:function(){ chooseCharacterGuandu:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
lib.init.onfree(); lib.init.onfree();
@ -2738,7 +2738,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterOL4:function(){ chooseCharacterOL4:function(){
var next=game.createEvent('chooseCharacter',false); var next=game.createEvent('chooseCharacter');
next.setContent(function(){ next.setContent(function(){
"step 0" "step 0"
var list=[ var list=[
@ -2937,7 +2937,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterOL3:function(){ chooseCharacterOL3:function(){
var next=game.createEvent('chooseCharacterOL',false); var next=game.createEvent('chooseCharacterOL');
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
game.additionaldead=[]; game.additionaldead=[];
@ -3054,7 +3054,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterOL2:function(){ chooseCharacterOL2:function(){
var next=game.createEvent('chooseCharacterOL',false); var next=game.createEvent('chooseCharacterOL');
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
var ref=game.players[0]; var ref=game.players[0];
@ -3387,7 +3387,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}); });
}, },
chooseCharacterOL1:function(){ chooseCharacterOL1:function(){
var next=game.createEvent('chooseCharacterOL',false); var next=game.createEvent('chooseCharacterOL');
next.setContent(function(){ next.setContent(function(){
'step 0' 'step 0'
game.removeCard('shengdong'); game.removeCard('shengdong');