v1.9.12.3

This commit is contained in:
libccy 2017-03-20 15:45:24 +08:00
parent 7b58e4830e
commit 77a8e5d68e
3 changed files with 14 additions and 10 deletions

View File

@ -97,7 +97,11 @@ character.diy={
return _status.event.getTrigger().targets.contains(target); return _status.event.getTrigger().targets.contains(target);
}).set('ai',function(target){ }).set('ai',function(target){
var trigger=_status.event.getTrigger(); var trigger=_status.event.getTrigger();
return -ai.get.effect(target,trigger.card,trigger.player,_status.event.player); var eff=-ai.get.effect(target,trigger.card,trigger.player,_status.event.player);
if(trigger.card.name=='wugu'&&eff==0&&ai.get.attitude(player,target)<0){
return 0.01;
}
return eff;
}); });
"step 1" "step 1"
if(result.bool){ if(result.bool){

View File

@ -11010,15 +11010,15 @@
player.dying(event); player.dying(event);
} }
"step 2" "step 2"
if(player.node.framebg.dataset.auto&&!player.node.framebg.dataset.decoration){ if(source&&source.node.framebg.dataset.auto&&!source.node.framebg.dataset.decoration){
var dnum=0; var dnum=0;
for(var j=0;j<player.stat.length;j++){ for(var j=0;j<source.stat.length;j++){
if(player.stat[j].damage!=undefined) dnum+=player.stat[j].damage; if(source.stat[j].damage!=undefined) dnum+=source.stat[j].damage;
} }
switch(player.node.framebg.dataset.auto){ switch(source.node.framebg.dataset.auto){
case 'gold':if(dnum>=9) player.node.framebg.dataset.decoration='gold';break; case 'gold':if(dnum>=9) source.node.framebg.dataset.decoration='gold';break;
case 'silver':if(dnum>=6) player.node.framebg.dataset.decoration='silver';break; case 'silver':if(dnum>=6) source.node.framebg.dataset.decoration='silver';break;
case 'bronze':if(dnum>=3) player.node.framebg.dataset.decoration='bronze';break; case 'bronze':if(dnum>=3) source.node.framebg.dataset.decoration='bronze';break;
} }
} }
}, },

View File

@ -10,12 +10,12 @@ window.noname_update={
// 'game/config.js', // 'game/config.js',
// 'game/source.js', // 'game/source.js',
'game/asset.js', 'game/asset.js',
// 'card/guozhan.js', // 'card/standard.js',
// 'character/rank.js', // 'character/rank.js',
// 'character/gwent.js', // 'character/gwent.js',
// 'character/ow.js', // 'character/ow.js',
// 'character/swd.js', // 'character/swd.js',
// 'character/diy.js', 'character/diy.js',
// 'character/extra.js', // 'character/extra.js',
// 'character/sp.js', // 'character/sp.js',
// 'mode/boss.js', // 'mode/boss.js',