This commit is contained in:
libccy 2017-02-05 19:59:13 +08:00
parent 80b5c5e7c2
commit 98aa4b72b7
4 changed files with 12 additions and 18 deletions

View File

@ -1065,8 +1065,8 @@ character.extra={
cards2.push(result.buttons[i].link); cards2.push(result.buttons[i].link);
cards.remove(result.buttons[i].link); cards.remove(result.buttons[i].link);
} }
player.gain(cards2); player.gain(cards2,'log');
if(cards2.length) player.$gain2(cards2,true); if(cards2.length) player.$gain2(cards2);
for(var i=0;i<cards.length;i++){ for(var i=0;i<cards.length;i++){
ui.discardPile.appendChild(cards[i]); ui.discardPile.appendChild(cards[i]);
} }

View File

@ -1252,13 +1252,13 @@ character.refresh={
}); });
"step 2" "step 2"
player.line(result.targets,'green'); player.line(result.targets,'green');
result.targets[0].$gain2(event.card,true); result.targets[0].$gain2(event.card);
for(var i=0;i<cards.length-1;i++){ for(var i=0;i<cards.length-1;i++){
ui.discardPile.appendChild(cards[i]); ui.discardPile.appendChild(cards[i]);
} }
game.delay(0,1000); game.delay(0,1000);
"step 3" "step 3"
result.targets[0].gain(event.card); result.targets[0].gain(event.card,'log');
}, },
ai:{ ai:{

View File

@ -6512,8 +6512,7 @@ character.sp={
if(result.bool&&!event.directfalse){ if(result.bool&&!event.directfalse){
player.storage.bifa[1].gain(result.cards,player); player.storage.bifa[1].gain(result.cards,player);
player.$give(result.cards,player.storage.bifa[1]); player.$give(result.cards,player.storage.bifa[1]);
player.gain(player.storage.bifa[0],'draw2'); player.gain(player.storage.bifa[0],'draw2','log');
game.log(player,'获得了',player.storage.bifa[0]);
} }
else{ else{
ui.discardPile.appendChild(player.storage.bifa[0]); ui.discardPile.appendChild(player.storage.bifa[0]);

View File

@ -559,8 +559,7 @@ character.swd={
forced:true, forced:true,
popup:false, popup:false,
content:function(){ content:function(){
player.gain(player.storage.lmazui2,'gain2'); player.gain(player.storage.lmazui2,'gain2','log');
game.log(player,'获得了',player.storage.lmazui2);
player.removeSkill('lmazui3'); player.removeSkill('lmazui3');
delete player.storage.lmazui2; delete player.storage.lmazui2;
} }
@ -1672,8 +1671,7 @@ character.swd={
"step 1" "step 1"
if(result.bool){ if(result.bool){
player.logSkill('fzhenwei',result.targets); player.logSkill('fzhenwei',result.targets);
game.log(result.targets[0],'获得了',event.cards); result.targets[0].gain(event.cards,'gain2','log');
result.targets[0].gain(event.cards,'gain2');
} }
}, },
ai:{ ai:{
@ -4755,9 +4753,8 @@ character.swd={
} }
} }
var cards=player.storage.yishan.splice(0,2); var cards=player.storage.yishan.splice(0,2);
player.gain(cards); player.gain(cards,'log');
player.$gain2(cards); player.$gain2(cards);
game.log(player,'获得了',cards);
}, },
ai:{ ai:{
maixie:true, maixie:true,
@ -5135,10 +5132,10 @@ character.swd={
} }
else{ else{
game.delay(0,1000); game.delay(0,1000);
player.$gain2(event.cards,true); player.$gain2(event.cards);
} }
"step 2" "step 2"
player.gain(event.cards); player.gain(event.cards,'log');
}, },
ai:{ ai:{
result:{ result:{
@ -5817,8 +5814,7 @@ character.swd={
"step 0" "step 0"
var cards=get.cards(1); var cards=get.cards(1);
event.card=cards[0]; event.card=cards[0];
player.gain(cards,'gain2'); player.gain(cards,'gain2','log');
game.log(player,'获得了',event.card);
"step 1" "step 1"
var gained=event.card; var gained=event.card;
if(lib.filter.filterCard(gained)){ if(lib.filter.filterCard(gained)){
@ -8266,8 +8262,7 @@ character.swd={
mark:'card', mark:'card',
content:function(){ content:function(){
player.recover(); player.recover();
player.gain(player.storage.zhenjiu2,'gain2'); player.gain(player.storage.zhenjiu2,'gain2','log');
game.log(player,'获得了',player.storage.zhenjiu2);
player.removeSkill('zhenjiu2'); player.removeSkill('zhenjiu2');
delete player.storage.zhenjiu2; delete player.storage.zhenjiu2;
}, },