everything in global history

This commit is contained in:
Spmario233 2023-08-19 00:25:08 +08:00
parent 66730beeb1
commit e7a48b3ddf
7 changed files with 26 additions and 7 deletions

View File

@ -233,8 +233,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var skill=event.sourceSkill||event.skill; var skill=event.sourceSkill||event.skill;
var info=get.info(skill); var info=get.info(skill);
if(info.charlotte) return false; if(info.charlotte) return false;
var translation=lib.translate[skill+'_info']; var translation=get.skillInfoTranslation(skill,event.player);
if(translation&&!(/(?<!“)出牌阶段限一次/.test(translation))) return false; if(!translation||!(/(?<!“)出牌阶段限一次/.test(translation))) return false;
return event.player.countCards('h')>0; return event.player.countCards('h')>0;
}, },
check:function(event,player){ check:function(event,player){

View File

@ -207,6 +207,20 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
str+='此牌离开你的装备区后,改为置入剩余武将牌牌堆。'; str+='此牌离开你的装备区后,改为置入剩余武将牌牌堆。';
lib.translate['qiexie_'+name+'_info']=str; lib.translate['qiexie_'+name+'_info']=str;
var append='';
if(skills.length){
for(var skill of skills){
if(lib.skill[skill].nobracket){
append+='<div class="skilln">'+get.translation(skill)+'</div><div><span style="font-family: yuanli">'+get.skillInfoTranslation(skill)+'</span></div><br><br>';
}
else{
var translation=lib.translate[skill+'_ab']||get.translation(skill).slice(0,2);
append+='<div class="skill">【'+translation+'】</div><div><span style="font-family: yuanli">'+get.skillInfoTranslation(skill)+'</span></div><br><br>';
}
}
str=str.slice(0,str.length-8);
}
lib.translate['qiexie_'+name+'_append']=append;
lib.card['qiexie_'+name]=card; lib.card['qiexie_'+name]=card;
} }
}, },

View File

@ -1094,7 +1094,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
enable:'chooseToUse', enable:'chooseToUse',
mark:true, mark:true,
skillAnimation:true, skillAnimation:true,
animationStr:'涅盘', //animationStr:'涅盘',
limited:true, limited:true,
animationColor:'orange', animationColor:'orange',
filter:function(event,player){ filter:function(event,player){

View File

@ -5533,7 +5533,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mark:true, mark:true,
limited:true, limited:true,
skillAnimation:true, skillAnimation:true,
animationStr:'涅盘', //animationStr:'涅盘',
animationColor:'fire', animationColor:'fire',
init:function(player){ init:function(player){
player.storage.niepan=false; player.storage.niepan=false;
@ -5592,7 +5592,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
enable:'chooseToUse', enable:'chooseToUse',
mark:true, mark:true,
skillAnimation:true, skillAnimation:true,
animationStr:'涅盘', //animationStr:'涅盘',
limited:true, limited:true,
animationColor:'orange', animationColor:'orange',
init:function(player){ init:function(player){

View File

@ -10051,6 +10051,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mengda:['dc_mengda','ol_mengda','pe_mengda'], mengda:['dc_mengda','ol_mengda','pe_mengda'],
jsp_guanyu:['dc_jsp_guanyu','jsp_guanyu'], jsp_guanyu:['dc_jsp_guanyu','jsp_guanyu'],
mushun:['mushun','sp_mushun'], mushun:['mushun','sp_mushun'],
wangjun:['dc_wangjun','wangjun'],
}, },
translate:{ translate:{
lijue:"李傕", lijue:"李傕",

Binary file not shown.

View File

@ -52,6 +52,7 @@
custom:[], custom:[],
useCard:[], useCard:[],
changeHp:[], changeHp:[],
everything:[],
}], }],
cardtag:{ cardtag:{
yingbian_zhuzhan:[], yingbian_zhuzhan:[],
@ -10544,7 +10545,7 @@
diamond:"♦︎", diamond:"♦︎",
spade:"♠︎", spade:"♠︎",
club:"♣︎", club:"♣︎",
none:'', none:'',
ghujia:'护甲', ghujia:'护甲',
ghujia_bg:'甲', ghujia_bg:'甲',
heart2:"红桃", heart2:"红桃",
@ -29795,6 +29796,7 @@
custom:[], custom:[],
useCard:[], useCard:[],
changeHp:[], changeHp:[],
everything:[],
}); });
var players=game.players.slice(0).concat(game.dead); var players=game.players.slice(0).concat(game.dead);
for(var i=0;i<players.length;i++){ for(var i=0;i<players.length;i++){
@ -35743,6 +35745,7 @@
else{ else{
next.parent=event; next.parent=event;
_status.event=next; _status.event=next;
game.getGlobalHistory('everything').push(next);
} }
} }
else if(event.finished){ else if(event.finished){
@ -52797,6 +52800,7 @@
//优先度判断 //优先度判断
priority:function(skill){ priority:function(skill){
var info=get.info(skill),priority=0; var info=get.info(skill),priority=0;
if(!info) return 0;
if(info.priority){ if(info.priority){
priority=info.priority*100; priority=info.priority*100;
} }
@ -55683,7 +55687,7 @@
} }
} }
else if(lib.skill[skills[i]].nobracket){ else if(lib.skill[skills[i]].nobracket){
uiintro.add('<div><div class="skilln">'+get.translation(skills[i])+'</div><div>'+lib.translate[skills[i]+'_info']+'</div></div>'); uiintro.add('<div><div class="skilln">'+get.translation(skills[i])+'</div><div>'+get.skillInfoTranslation(skills[i],node)+'</div></div>');
} }
else{ else{
uiintro.add('<div><div class="skill">【'+translation+'】</div><div>'+get.skillInfoTranslation(skills[i],node)+'</div></div>'); uiintro.add('<div><div class="skill">【'+translation+'】</div><div>'+get.skillInfoTranslation(skills[i],node)+'</div></div>');