1.8.6
This commit is contained in:
parent
8d906bdd93
commit
51cc968174
|
@ -312,19 +312,21 @@ character.shenhua={
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
player.logSkill('qiaobian',result.targets);
|
player.logSkill('qiaobian',result.targets);
|
||||||
player.discard(result.cards);
|
player.discard(result.cards);
|
||||||
|
event.targets=result.targets;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
event.finish();
|
||||||
}
|
}
|
||||||
"step 2"
|
"step 2"
|
||||||
game.delay();
|
game.delay();
|
||||||
"step 3"
|
"step 3"
|
||||||
if(result.bool){
|
for(var i=0;i<event.targets.length;i++){
|
||||||
for(var i=0;i<result.targets.length;i++){
|
player.gain(event.targets[i].get('h').randomGet());
|
||||||
player.gain(result.targets[i].get('h').randomGet());
|
event.targets[i].$give(1,player);
|
||||||
result.targets[i].$give(1,player);
|
|
||||||
}
|
|
||||||
trigger.finish();
|
|
||||||
trigger.untrigger();
|
|
||||||
game.delay();
|
|
||||||
}
|
}
|
||||||
|
trigger.finish();
|
||||||
|
trigger.untrigger();
|
||||||
|
game.delay();
|
||||||
"step 4"
|
"step 4"
|
||||||
if(result.bool) game.delay();
|
if(result.bool) game.delay();
|
||||||
},
|
},
|
||||||
|
@ -358,7 +360,6 @@ character.shenhua={
|
||||||
check=true;
|
check=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
player.chooseCardTarget({
|
player.chooseCardTarget({
|
||||||
ai1:function(card){
|
ai1:function(card){
|
||||||
if(!_status.event.check) return 0;
|
if(!_status.event.check) return 0;
|
||||||
|
@ -412,7 +413,7 @@ character.shenhua={
|
||||||
target:target
|
target:target
|
||||||
});
|
});
|
||||||
"step 1"
|
"step 1"
|
||||||
if(result.bool==false){
|
if(!result.bool){
|
||||||
event.finish();
|
event.finish();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2046,6 +2047,7 @@ character.shenhua={
|
||||||
if(player.classList.contains('turnedover')) player.turnOver();
|
if(player.classList.contains('turnedover')) player.turnOver();
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
|
order:1,
|
||||||
skillTagFilter:function(player){
|
skillTagFilter:function(player){
|
||||||
if(player.storage.niepan) return false;
|
if(player.storage.niepan) return false;
|
||||||
if(player.hp>0) return false;
|
if(player.hp>0) return false;
|
||||||
|
@ -2233,7 +2235,10 @@ character.shenhua={
|
||||||
return -2;
|
return -2;
|
||||||
},
|
},
|
||||||
target:function(player,target){
|
target:function(player,target){
|
||||||
if(player.hp<=2) return 0;
|
if(!ui.selected.cards.length){
|
||||||
|
if(player.hp<2) return 0;
|
||||||
|
if(player.hp==2&&target.hp>=2) return 0;
|
||||||
|
}
|
||||||
return ai.get.damageEffect(target,player);
|
return ai.get.damageEffect(target,player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2477,6 +2482,7 @@ character.shenhua={
|
||||||
content:function(){
|
content:function(){
|
||||||
"step 0";
|
"step 0";
|
||||||
player.chooseTarget('是否发动【新雷击】?').ai=function(target){
|
player.chooseTarget('是否发动【新雷击】?').ai=function(target){
|
||||||
|
if(target.skills.contains('hongyan')) return 0;
|
||||||
return ai.get.damageEffect(target,_status.event.player,_status.event.player,'thunder');
|
return ai.get.damageEffect(target,_status.event.player,_status.event.player,'thunder');
|
||||||
};
|
};
|
||||||
"step 1"
|
"step 1"
|
||||||
|
@ -2816,6 +2822,7 @@ character.shenhua={
|
||||||
content:function(){
|
content:function(){
|
||||||
"step 0";
|
"step 0";
|
||||||
player.chooseTarget('是否发动【雷击】?').ai=function(target){
|
player.chooseTarget('是否发动【雷击】?').ai=function(target){
|
||||||
|
if(target.skills.contains('hongyan')) return 0;
|
||||||
return ai.get.damageEffect(target,_status.event.player,_status.event.player,'thunder');
|
return ai.get.damageEffect(target,_status.event.player,_status.event.player,'thunder');
|
||||||
};
|
};
|
||||||
"step 1"
|
"step 1"
|
||||||
|
|
|
@ -217,6 +217,8 @@ character.standard={
|
||||||
event.finish();return;
|
event.finish();return;
|
||||||
}
|
}
|
||||||
trigger.source.chooseToDiscard(2).set('ai',function(card){
|
trigger.source.chooseToDiscard(2).set('ai',function(card){
|
||||||
|
if(card.name=='tao') return -10;
|
||||||
|
if(card.name=='jiu'&&_status.event.player.hp==1) return -10;
|
||||||
return ai.get.unuseful(card)+2.5*(5-get.owner(card).hp);
|
return ai.get.unuseful(card)+2.5*(5-get.owner(card).hp);
|
||||||
});
|
});
|
||||||
"step 2"
|
"step 2"
|
||||||
|
|
12
game/game.js
12
game/game.js
|
@ -15420,11 +15420,6 @@
|
||||||
else if(!_status.connectMode&&get.config('continue_game')){
|
else if(!_status.connectMode&&get.config('continue_game')){
|
||||||
ui.continue_game=ui.create.control('再战',game.reloadCurrent);
|
ui.continue_game=ui.create.control('再战',game.reloadCurrent);
|
||||||
}
|
}
|
||||||
if(_status.connectMode&&!game.online&&!game.onlineroom){
|
|
||||||
localStorage.setItem(lib.configprefix+'directstart',true);
|
|
||||||
game.saveConfig('directstartmode',lib.config.mode);
|
|
||||||
game.saveConfig('mode','connect');
|
|
||||||
}
|
|
||||||
if(!ui.restart){
|
if(!ui.restart){
|
||||||
ui.restart=ui.create.control('restart',game.reload);
|
ui.restart=ui.create.control('restart',game.reload);
|
||||||
}
|
}
|
||||||
|
@ -17587,6 +17582,13 @@
|
||||||
game.send('server','enter',_status.roomindex,lib.config.connect_nickname,lib.config.connect_avatar);
|
game.send('server','enter',_status.roomindex,lib.config.connect_nickname,lib.config.connect_avatar);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
localStorage.setItem(lib.configprefix+'directstart',true);
|
||||||
|
game.saveConfig('directstartmode',active.mode);
|
||||||
|
game.saveConfig('mode','connect');
|
||||||
|
ui.exitroom=ui.create.system('退出房间',function(){
|
||||||
|
game.saveConfig('directstartmode');
|
||||||
|
game.reload();
|
||||||
|
},true);
|
||||||
game.switchMode(active.mode);
|
game.switchMode(active.mode);
|
||||||
}
|
}
|
||||||
clickContainer.call(menuContainer);
|
clickContainer.call(menuContainer);
|
||||||
|
|
|
@ -2,11 +2,14 @@
|
||||||
mode.connect={
|
mode.connect={
|
||||||
start:function(){
|
start:function(){
|
||||||
var directstartmode=lib.config.directstartmode;
|
var directstartmode=lib.config.directstartmode;
|
||||||
game.saveConfig('directstartmode');
|
|
||||||
ui.create.menu(true);
|
ui.create.menu(true);
|
||||||
var createNode=function(){
|
var createNode=function(){
|
||||||
if(event.created) return;
|
if(event.created) return;
|
||||||
if(directstartmode){
|
if(directstartmode&&lib.node){
|
||||||
|
ui.exitroom=ui.create.system('退出房间',function(){
|
||||||
|
game.saveConfig('directstartmode');
|
||||||
|
game.reload();
|
||||||
|
},true);
|
||||||
game.switchMode(directstartmode);
|
game.switchMode(directstartmode);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue