This commit is contained in:
libccy 2015-05-06 22:43:26 +08:00
parent cd44b02618
commit 3e737bc160
2 changed files with 41 additions and 0 deletions

View File

@ -2664,6 +2664,9 @@ character.yijiang={
yuce:{ yuce:{
trigger:{player:'damageAfter'}, trigger:{player:'damageAfter'},
direct:true, direct:true,
filter:function(event,player){
return player.num('h')>0;
},
content:function(){ content:function(){
"step 0" "step 0"
player.chooseToDiscard('是否发动御策?').ai=function(card){ player.chooseToDiscard('是否发动御策?').ai=function(card){

View File

@ -97,6 +97,7 @@ mode.stone={
var dead=this; var dead=this;
if(game.me.isDead()){ if(game.me.isDead()){
if(!_status.mylist.length){ if(!_status.mylist.length){
_status.friendCount.innerHTML='我方兵力:'+get.cnNumber(0);
game.over(false); game.over(false);
} }
else{ else{
@ -123,12 +124,14 @@ mode.stone={
game.arrangePlayers(); game.arrangePlayers();
player.draw(2+game.enemy.countFellow(),false); player.draw(2+game.enemy.countFellow(),false);
game.resume(); game.resume();
game.updateStatusCount();
},lib.config.duration); },lib.config.duration);
} }
} }
else if(game.enemy.isDead()){ else if(game.enemy.isDead()){
if(!_status.enemylist.length){ if(!_status.enemylist.length){
_status.enemyCount.innerHTML='敌方兵力:'+get.cnNumber(0);
game.over(true); game.over(true);
} }
else{ else{
@ -154,6 +157,7 @@ mode.stone={
game.arrangePlayers(); game.arrangePlayers();
player.draw(2+game.me.countFellow(),false); player.draw(2+game.me.countFellow(),false);
game.resume(); game.resume();
game.updateStatusCount();
},lib.config.duration); },lib.config.duration);
} }
} }
@ -176,6 +180,10 @@ mode.stone={
game:{ game:{
reserveDead:true, reserveDead:true,
layoutFixed:true, layoutFixed:true,
updateStatusCount:function(){
_status.friendCount.innerHTML='我方兵力:'+get.cnNumber(1+_status.mylist.length/(_status.double_character?2:1),true);
_status.enemyCount.innerHTML='敌方兵力:'+get.cnNumber(1+_status.enemylist.length/(_status.double_character?2:1),true);
},
stoneLoop:function(player){ stoneLoop:function(player){
var next=game.createEvent('phaseLoop'); var next=game.createEvent('phaseLoop');
next.player=player; next.player=player;
@ -284,6 +292,36 @@ mode.stone={
game.enemy=game.me.next; game.enemy=game.me.next;
game.chooseCharacter(); game.chooseCharacter();
"step 2" "step 2"
_status.friendCount=ui.create.system('',null,true);
_status.enemyCount=ui.create.system('',null,true);
game.updateStatusCount();
lib.setPopped(_status.friendCount,function(){
var uiintro=ui.create.dialog('hidden');
if(_status.deadfriend.length){
uiintro.add('已阵亡');
uiintro.add([_status.deadfriend,'player']);
}
uiintro.add('未上场');
if(_status.mylist.length){
uiintro.add([_status.mylist,'character']);
}
else{
uiintro.add('(无)')
}
return uiintro;
});
lib.setPopped(_status.enemyCount,function(){
if(_status.deadenemy.length){
var uiintro=ui.create.dialog('hidden');
uiintro.add('已阵亡');
uiintro.add([_status.deadenemy,'player']);
return uiintro;
}
});
game.me.side=Math.random()<0.5; game.me.side=Math.random()<0.5;
game.enemy.side=!game.me.side; game.enemy.side=!game.me.side;
game.gameDraw(game.me,2); game.gameDraw(game.me,2);