国战亮将/起许劭【盈门】同步修改
This commit is contained in:
parent
e3cc7775c8
commit
29da9c7ec6
|
@ -5861,23 +5861,23 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
str=get.prompt(event.skill,trigger[info.logTarget],player);
|
||||
}
|
||||
else if(typeof info.logTarget=='function'){
|
||||
var logTarget=info.logTarget(trigger,player);
|
||||
var logTarget=info.logTarget(trigger,player,trigger.triggername,trigger.indexedData);
|
||||
if(get.itemtype(logTarget).indexOf('player')==0) str=get.prompt(event.skill,logTarget,player);
|
||||
}
|
||||
else{
|
||||
str=get.prompt(event.skill,null,player);
|
||||
}
|
||||
}
|
||||
if(typeof str=='function'){str=str(trigger,player)}
|
||||
if(typeof str=='function'){str=str(trigger,player,trigger.triggername,trigger.indexedData)}
|
||||
var next=player.chooseBool('评鉴:'+str);
|
||||
next.set('yes',!info.check||info.check(trigger,player));
|
||||
next.set('yes',!info.check||info.check(trigger,player,trigger.triggername,trigger.indexedData));
|
||||
next.set('hsskill',event.skill);
|
||||
next.set('forceDie',true);
|
||||
next.set('ai',function(){
|
||||
return _status.event.yes;
|
||||
});
|
||||
if(typeof info.prompt2=='function'){
|
||||
next.set('prompt2',info.prompt2(trigger,player));
|
||||
next.set('prompt2',info.prompt2(trigger,player,trigger.triggername,trigger.indexedData));
|
||||
}
|
||||
else if(typeof info.prompt2=='string'){
|
||||
next.set('prompt2',info.prompt2);
|
||||
|
|
|
@ -13131,7 +13131,7 @@ return event.junling=='junling5'?1:0;});
|
|||
}
|
||||
var info=get.info(trigger.skill);
|
||||
var next=player.chooseBool('是否明置'+get.translation(event.name)+'以发动【'+get.translation(trigger.skill)+'】?');
|
||||
next.set('yes',!info.check||info.check(trigger._trigger,player));
|
||||
next.set('yes',!info.check||info.check(trigger._trigger,player,trigger.triggername,trigger.indexedData));
|
||||
next.set('hsskill',trigger.skill);
|
||||
next.set('ai',nai);
|
||||
}
|
||||
|
|
|
@ -2198,7 +2198,7 @@ export const Content = {
|
|||
game.expandSkills(invisible);
|
||||
if (hidden.includes(event.skill)) {
|
||||
if (!info.silent && player.hasSkillTag('nomingzhi', false, null, true)) event.finish();
|
||||
else if (!info.direct) event.trigger('triggerHidden');
|
||||
else if (!info.direct && typeof info.cost !== 'function') event.trigger('triggerHidden');
|
||||
else event.skillHidden = true;
|
||||
}
|
||||
else if (invisible.includes(event.skill)) event.trigger('triggerInvisible');
|
||||
|
@ -2226,7 +2226,7 @@ export const Content = {
|
|||
event._result = { bool: true };
|
||||
event._direct = true;
|
||||
}
|
||||
else if(info.cost){
|
||||
else if(typeof info.cost === 'function'){
|
||||
if (checkFrequent(info)) event.frequentSkill = true;
|
||||
if (player.isUnderControl()) game.swapPlayerAuto(player);
|
||||
//创建cost事件
|
||||
|
|
Loading…
Reference in New Issue