phase
This commit is contained in:
parent
671b482e9d
commit
552f76a58d
|
@ -846,7 +846,7 @@ card.guozhan={
|
|||
}
|
||||
"step 1"
|
||||
if(result.bool){
|
||||
player.phase();
|
||||
player.insertPhase();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
@ -174,16 +174,23 @@ character.hearth={
|
|||
priority:-50,
|
||||
direct:true,
|
||||
filter:function(event,player){
|
||||
if(get.mode()=='identity'&&_status.mode=='zhong'&&
|
||||
game.zhu&&!game.zhu.isZhu&&player==game.zhong){
|
||||
return false;
|
||||
}
|
||||
return !player.isTurnedOver();
|
||||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.chooseTarget(get.prompt('mengye'),function(card,player,target){
|
||||
if(target==player){
|
||||
return false;
|
||||
}
|
||||
if(get.mode()=='identity'&&_status.mode=='zhong'&&game.zhu&&!game.zhu.isZhu){
|
||||
return target==game.zhong;
|
||||
}
|
||||
if(target.identity=='zhu'||get.is.jun(target)) return false;
|
||||
return target!=player;
|
||||
return true;
|
||||
}).ai=function(target){
|
||||
var att=-ai.get.attitude(player,target);
|
||||
if(att<=0) return 0;
|
||||
|
@ -220,7 +227,7 @@ character.hearth={
|
|||
target.unmarkSkill('mad');
|
||||
}
|
||||
player.out('mengye');
|
||||
target.phase();
|
||||
target.insertPhase();
|
||||
},
|
||||
ai:{
|
||||
threaten:2
|
||||
|
@ -3197,7 +3204,7 @@ character.hearth={
|
|||
},
|
||||
content:function(){
|
||||
player.draw();
|
||||
player.phase();
|
||||
player.insertPhase();
|
||||
},
|
||||
ai:{
|
||||
threaten:1.8
|
||||
|
|
21
game/game.js
21
game/game.js
|
@ -13063,31 +13063,50 @@
|
|||
}
|
||||
this.node.identity.dataset.color=identity;
|
||||
},
|
||||
insertPhase:function(){
|
||||
var evt=_status.event.getParent('phase');
|
||||
var next;
|
||||
if(evt&&evt.parent&&evt.parent.next){
|
||||
next=game.createEvent('phase',null,evt.parent);
|
||||
console.log(evt.parent);
|
||||
}
|
||||
else{
|
||||
next=game.createEvent('phase');
|
||||
}
|
||||
next.player=this;
|
||||
next.setContent('phase');
|
||||
return next;
|
||||
},
|
||||
phase:function(){
|
||||
var next=game.createEvent('phase');
|
||||
next.player=this;
|
||||
next.setContent('phase');
|
||||
return next;
|
||||
},
|
||||
phaseJudge:function(){
|
||||
var next=game.createEvent('phaseJudge');
|
||||
next.player=this;
|
||||
next.setContent('phaseJudge');
|
||||
return next;
|
||||
},
|
||||
phaseDraw:function(){
|
||||
var next=game.createEvent('phaseDraw');
|
||||
next.player=this;
|
||||
next.num=2;
|
||||
next.setContent('phaseDraw');
|
||||
return next;
|
||||
},
|
||||
phaseUse:function(){
|
||||
var next=game.createEvent('phaseUse');
|
||||
next.player=this;
|
||||
next.setContent('phaseUse');
|
||||
return next;
|
||||
},
|
||||
phaseDiscard:function(){
|
||||
var next=game.createEvent('phaseDiscard');
|
||||
next.player=this;
|
||||
next.setContent('phaseDiscard');
|
||||
return next;
|
||||
},
|
||||
chooseToUse:function(use){
|
||||
var next=game.createEvent('chooseToUse');
|
||||
|
@ -38459,7 +38478,7 @@
|
|||
return num?Math.round(9*(num-1)/8+1):'sp';
|
||||
}
|
||||
}
|
||||
return num?Math.round(6*(num-1)/8+1):'x';
|
||||
return num?Math.round(9*(num-1)/8+1):'x';
|
||||
},
|
||||
targetsInfo:function(targets){
|
||||
var info=[];
|
||||
|
|
Loading…
Reference in New Issue