This commit is contained in:
parent
9de16aea3d
commit
fc0ac57f53
|
@ -86,12 +86,13 @@ character.shenhua={
|
|||
return event.target.countCards('he')>0;
|
||||
},
|
||||
check:function(event,player){
|
||||
return ai.get.attitude(player,event.player)<=0;
|
||||
return ai.get.attitude(player,event.target)<=0;
|
||||
},
|
||||
direct:true,
|
||||
content:function(){
|
||||
'step 0'
|
||||
player.discardPlayerCard(trigger.target,get.prompt('jianchu',trigger.target)).set('ai',function(button){
|
||||
console.log(_status.event.att);
|
||||
if(!_status.event.att) return 0;
|
||||
if(get.position(button.link)=='e') return ai.get.value(button.link);
|
||||
return 1;
|
||||
|
|
12
game/game.js
12
game/game.js
|
@ -4273,7 +4273,8 @@
|
|||
map.ladder_monthly.hide();
|
||||
map.ladder_reset.hide();
|
||||
}
|
||||
map.enable_all.show();
|
||||
map.enable_all.show();
|
||||
map.enable_all_cards_four.show();
|
||||
map.four_assign.show();
|
||||
map.expand_dialog.show();
|
||||
}
|
||||
|
@ -4283,6 +4284,7 @@
|
|||
map.ladder_monthly.hide();
|
||||
map.ladder_reset.hide();
|
||||
map.enable_all.hide();
|
||||
map.enable_all_cards_four.hide();
|
||||
map.four_assign.hide();
|
||||
map.expand_dialog.hide();
|
||||
}
|
||||
|
@ -4348,6 +4350,12 @@
|
|||
frequent:true,
|
||||
restart:true,
|
||||
},
|
||||
enable_all_cards_four:{
|
||||
name:'启用全部卡牌',
|
||||
init:false,
|
||||
frequent:true,
|
||||
restart:true,
|
||||
},
|
||||
enable_all_three:{
|
||||
name:'启用全部武将',
|
||||
init:false,
|
||||
|
@ -4363,7 +4371,7 @@
|
|||
four_assign:{
|
||||
name:'代替队友选将',
|
||||
init:false,
|
||||
frequent:true,
|
||||
// frequent:true,
|
||||
restart:true,
|
||||
},
|
||||
free_choose:{
|
||||
|
|
|
@ -16,7 +16,7 @@ window.noname_update={
|
|||
'character/shenhua.js',
|
||||
'character/rank.js',
|
||||
// 'mode/boss.js',
|
||||
// 'mode/versus.js',
|
||||
'mode/versus.js',
|
||||
// 'mode/guozhan.js',
|
||||
// 'mode/identity.js',
|
||||
// 'mode/chess.js',
|
||||
|
|
169
mode/versus.js
169
mode/versus.js
|
@ -72,6 +72,9 @@ mode.versus={
|
|||
});
|
||||
}
|
||||
else if(_status.mode=='jiange'||_status.mode=='four'){
|
||||
if(_status.mode=='four'&&!get.config('enable_all_cards_four')){
|
||||
lib.card.list=lib.cardsFour;
|
||||
}
|
||||
game.prepareArena(8);
|
||||
}
|
||||
else if(_status.mode=='two'){
|
||||
|
@ -2697,6 +2700,172 @@ mode.versus={
|
|||
ctx.stroke();
|
||||
},
|
||||
},
|
||||
cardsFour:[
|
||||
["spade",7,"sha"],
|
||||
["spade",8,"sha"],
|
||||
["spade",8,"sha"],
|
||||
["spade",9,"sha"],
|
||||
["spade",9,"sha"],
|
||||
["spade",10,"sha"],
|
||||
["spade",10,"sha"],
|
||||
["club",2,"sha"],
|
||||
["club",3,"sha"],
|
||||
["club",4,"sha"],
|
||||
["club",5,"sha"],
|
||||
["club",6,"sha"],
|
||||
["club",7,"sha"],
|
||||
["club",8,"sha"],
|
||||
["club",8,"sha"],
|
||||
["club",9,"sha"],
|
||||
["club",9,"sha"],
|
||||
["club",10,"sha"],
|
||||
["club",10,"sha"],
|
||||
["club",11,"sha"],
|
||||
["club",11,"sha"],
|
||||
["heart",10,"sha"],
|
||||
["heart",10,"sha"],
|
||||
["heart",11,"sha"],
|
||||
["diamond",6,"sha"],
|
||||
["diamond",7,"sha"],
|
||||
["diamond",8,"sha"],
|
||||
["diamond",9,"sha"],
|
||||
["diamond",10,"sha"],
|
||||
["diamond",13,"sha"],
|
||||
["heart",2,"shan"],
|
||||
["heart",2,"shan"],
|
||||
["heart",13,"shan"],
|
||||
["diamond",2,"shan"],
|
||||
["diamond",2,"shan"],
|
||||
["diamond",3,"shan"],
|
||||
["diamond",4,"shan"],
|
||||
["diamond",5,"shan"],
|
||||
["diamond",6,"shan"],
|
||||
["diamond",7,"shan"],
|
||||
["diamond",8,"shan"],
|
||||
["diamond",9,"shan"],
|
||||
["diamond",10,"shan"],
|
||||
["diamond",11,"shan"],
|
||||
["diamond",11,"shan"],
|
||||
["heart",3,"tao"],
|
||||
["heart",4,"tao"],
|
||||
["heart",6,"tao"],
|
||||
["heart",7,"tao"],
|
||||
["heart",8,"tao"],
|
||||
["heart",9,"tao"],
|
||||
["heart",12,"tao"],
|
||||
["diamond",12,"tao"],
|
||||
|
||||
["spade",2,"bagua"],
|
||||
["club",2,"bagua"],
|
||||
["spade",5,"jueying"],
|
||||
["club",5,"dilu"],
|
||||
["heart",13,"zhuahuang"],
|
||||
["heart",5,"chitu"],
|
||||
["spade",13,"dawan"],
|
||||
["diamond",13,"zixin"],
|
||||
["club",1,"zhuge"],
|
||||
["diamond",1,"zhuge"],
|
||||
["spade",2,"cixiong"],
|
||||
["spade",6,"qinggang"],
|
||||
["spade",5,"qinglong"],
|
||||
["spade",12,"zhangba"],
|
||||
["diamond",5,"guanshi"],
|
||||
["diamond",12,"fangtian"],
|
||||
["heart",5,"qilin"],
|
||||
|
||||
["heart",3,"wugu"],
|
||||
["heart",4,"wugu"],
|
||||
["heart",1,"taoyuan"],
|
||||
["spade",7,"nanman"],
|
||||
["spade",13,"nanman"],
|
||||
["club",7,"nanman"],
|
||||
["heart",1,"wanjian"],
|
||||
["spade",1,"juedou"],
|
||||
["club",1,"juedou"],
|
||||
["diamond",1,"juedou"],
|
||||
["heart",7,"wuzhong"],
|
||||
["heart",8,"wuzhong"],
|
||||
["heart",9,"wuzhong"],
|
||||
["heart",11,"wuzhong"],
|
||||
["spade",3,'shunshou'],
|
||||
["spade",4,'shunshou'],
|
||||
["spade",11,'shunshou'],
|
||||
["diamond",3,'shunshou'],
|
||||
["diamond",4,'shunshou'],
|
||||
["spade",3,'guohe'],
|
||||
["spade",4,'guohe'],
|
||||
["spade",12,'guohe'],
|
||||
["club",3,'guohe'],
|
||||
["club",4,'guohe'],
|
||||
["heart",12,'guohe'],
|
||||
["club",12,'jiedao'],
|
||||
["club",13,'jiedao'],
|
||||
["spade",11,'wuxie'],
|
||||
["club",12,'wuxie'],
|
||||
["club",13,'wuxie'],
|
||||
["spade",6,'lebu'],
|
||||
["club",6,'lebu'],
|
||||
["heart",6,'lebu'],
|
||||
["spade",1,'shandian','thunder'],
|
||||
["spade",2,'hanbing'],
|
||||
["club",2,'renwang'],
|
||||
["heart",12,'shandian','thunder'],
|
||||
["diamond",12,'wuxie'],
|
||||
["heart",4,"sha","fire"],
|
||||
["heart",7,"sha","fire"],
|
||||
["heart",10,"sha","fire"],
|
||||
["diamond",4,"sha","fire"],
|
||||
["diamond",5,"sha","fire"],
|
||||
["spade",4,"sha","thunder"],
|
||||
["spade",5,"sha","thunder"],
|
||||
["spade",6,"sha","thunder"],
|
||||
["spade",7,"sha","thunder"],
|
||||
["spade",8,"sha","thunder"],
|
||||
["club",5,"sha","thunder"],
|
||||
["club",6,"sha","thunder"],
|
||||
["club",7,"sha","thunder"],
|
||||
["club",8,"sha","thunder"],
|
||||
["heart",8,"shan"],
|
||||
["heart",9,"shan"],
|
||||
["heart",11,"shan"],
|
||||
["heart",12,"shan"],
|
||||
["diamond",6,"shan"],
|
||||
["diamond",7,"shan"],
|
||||
["diamond",8,"shan"],
|
||||
["diamond",10,"shan"],
|
||||
["diamond",11,"shan"],
|
||||
["heart",5,"tao"],
|
||||
["heart",6,"tao"],
|
||||
["diamond",2,"tao"],
|
||||
["diamond",3,"tao"],
|
||||
["diamond",9,"jiu"],
|
||||
["spade",3,"jiu"],
|
||||
["spade",9,"jiu"],
|
||||
["club",3,"jiu"],
|
||||
["club",9,"jiu"],
|
||||
|
||||
["diamond",13,"hualiu"],
|
||||
["club",1,"baiyin"],
|
||||
["spade",2,"tengjia",'fire'],
|
||||
["club",2,"tengjia",'fire'],
|
||||
["spade",1,"guding"],
|
||||
["diamond",1,"zhuque",'fire'],
|
||||
|
||||
["heart",2,"huogong","fire"],
|
||||
["heart",3,"huogong","fire"],
|
||||
["diamond",12,"huogong","fire"],
|
||||
["spade",11,"tiesuo"],
|
||||
["spade",12,"tiesuo"],
|
||||
["club",10,"tiesuo"],
|
||||
["club",11,"tiesuo"],
|
||||
["club",12,"tiesuo"],
|
||||
["club",13,"tiesuo"],
|
||||
["heart",13,"wuxie"],
|
||||
["heart",13,"wuxie"],
|
||||
["spade",13,"wuxie"],
|
||||
["spade",10,"bingliang"],
|
||||
["club",4,"bingliang"],
|
||||
],
|
||||
cardsThree:[
|
||||
["spade",7,"sha"],
|
||||
["spade",8,"sha"],
|
||||
|
|
Loading…
Reference in New Issue