From 88f70b51d0d12d8799e66266406801eeab73d0d7 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 31 Mar 2017 14:31:37 +0800 Subject: [PATCH] logv --- game/game.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/game/game.js b/game/game.js index 1019933c8..0f9965243 100644 --- a/game/game.js +++ b/game/game.js @@ -11537,7 +11537,7 @@ if(player.hp<=0&&!player.nodying) player.die(event.reason); }, die:function(){ - game.logv(player,'die',source); + var logvid=game.logv(player,'die',source); if(source&&source!=player){ game.log(player,'被',source,'杀害'); if(source.stat[source.stat.length-1].kill==undefined){ @@ -11554,7 +11554,7 @@ event.playerCards=player.getCards('he'); if(event.cards.length){ player.$throw(event.cards,1000); - game.log(player,'弃置了',event.cards); + game.log(player,'弃置了',event.cards,logvid); } if(!game.reserveDead){ for(var mark in player.marks){ @@ -25075,8 +25075,8 @@ delete ui.rooms; } }, - log:function(str){ - var str=''; + log:function(){ + var str='',logvid=null; for(var i=0;i'+str+''); }