This commit is contained in:
libccy 2016-05-28 11:09:14 +08:00
parent ac26950436
commit bbac5b132c
5 changed files with 92 additions and 6 deletions

View File

@ -2648,7 +2648,14 @@ character.shenhua={
content:function(){ content:function(){
player.draw(3); player.draw(3);
player.turnOver(); player.turnOver();
} },
ai:{
effect:{
target:function(card,player,target){
if(card.name=='guiyoujie') return [0,1];
}
}
},
}, },
liegong:{ liegong:{
audio:2, audio:2,

View File

@ -403,7 +403,6 @@ character.yijiang={
player.storage.kuangbi_draw_source=target; player.storage.kuangbi_draw_source=target;
player.syncStorage('kuangbi_draw'); player.syncStorage('kuangbi_draw');
player.addSkill('kuangbi_draw'); player.addSkill('kuangbi_draw');
game.delay();
} }
}, },
ai:{ ai:{
@ -4689,7 +4688,8 @@ character.yijiang={
} }
if(get.type(card)=='equip'){ if(get.type(card)=='equip'){
event.target.equip(card); event.target.equip(card);
event.target.$draw(cards); event.target.$draw(card);
game.delay();
} }
else{ else{
event.target.gain(cards,'gain2'); event.target.gain(cards,'gain2');

View File

@ -2303,12 +2303,16 @@
map.enable_all.hide(); map.enable_all.hide();
map.four_assign.hide(); map.four_assign.hide();
} }
if(config.versus_mode=='jiange'||config.versus_mode=='two'){
map.free_choose.show();
}
else{
map.free_choose.hide();
}
if(config.versus_mode=='jiange'){ if(config.versus_mode=='jiange'){
map.free_choose.show();
map.double_character_jiange.show(); map.double_character_jiange.show();
} }
else{ else{
map.free_choose.hide();
map.double_character_jiange.hide(); map.double_character_jiange.hide();
} }
if(config.versus_mode=='two'){ if(config.versus_mode=='two'){

View File

@ -10,6 +10,8 @@ window.noname_update={
'game/asset.js', 'game/asset.js',
'game/game.js', 'game/game.js',
'mode/versus.js', 'mode/versus.js',
'character/yijiang.js',
'character/shenhua.js'
], ],
'1.8.11':[], '1.8.11':[],
'1.8.12':[], '1.8.12':[],

View File

@ -566,10 +566,83 @@ mode.versus={
} }
var choose=[]; var choose=[];
event.list=list; event.list=list;
var dialog=ui.create.dialog('选择角色',[list.randomRemove(7),'character']); var dialog=ui.create.dialog('选择角色',[list.randomGets(7),'character']);
game.me.chooseButton(true,dialog); game.me.chooseButton(true,dialog);
ui.create.cheat=function(){
_status.createControl=ui.cheat2;
ui.cheat=ui.create.control('更换',function(){
if(ui.cheat2&&ui.cheat2.dialog==_status.event.dialog){
return;
}
if(game.changeCoin){
game.changeCoin(-3);
}
_status.event.dialog.close();
_status.event.dialog=ui.create.dialog('选择角色',[list.randomGets(7),'character']);
game.uncheck();
game.check();
});
delete _status.createControl;
};
event.dialogxx=ui.create.characterDialog();
ui.create.cheat2=function(){
ui.cheat2=ui.create.control('自由选将',function(){
if(this.dialog==_status.event.dialog){
if(game.changeCoin){
game.changeCoin(50);
}
this.dialog.close();
_status.event.dialog=this.backup;
this.backup.open();
delete this.backup;
game.uncheck();
game.check();
if(ui.cheat){
ui.cheat.style.opacity=1;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
}
else{
if(game.changeCoin){
game.changeCoin(-10);
}
ui.cheat2x=ui.create.groupControl(_status.event.parent.dialogxx);
this.backup=_status.event.dialog;
_status.event.dialog.close();
_status.event.dialog=_status.event.parent.dialogxx;
this.dialog=_status.event.dialog;
this.dialog.open();
game.uncheck();
game.check();
if(ui.cheat){
ui.cheat.style.opacity=0.6;
}
}
});
}
if(!ui.cheat&&get.config('change_choice'))
ui.create.cheat();
if(!ui.cheat2&&get.config('free_choose'))
ui.create.cheat2();
'step 1' 'step 1'
if(ui.cheat){
ui.cheat.close();
delete ui.cheat;
}
if(ui.cheat2){
ui.cheat2.close();
delete ui.cheat2;
}
if(ui.cheat2x){
ui.cheat2x.close();
delete ui.cheat2x;
}
game.me.init(result.links[0]); game.me.init(result.links[0]);
game.addRecentCharacter(game.me.name);
for(var i=0;i<game.players.length;i++){ for(var i=0;i<game.players.length;i++){
if(game.players[i]!=game.me){ if(game.players[i]!=game.me){
game.players[i].init(event.list.randomRemove()); game.players[i].init(event.list.randomRemove());