From 8674bbf10d1c1e04dfc799aeb0f9d9a7f1dda158 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 27 Sep 2013 16:13:13 +0200 Subject: [PATCH] Added current life info to turn info in game log. --- Mage/src/mage/game/GameImpl.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/game/GameImpl.java b/Mage/src/mage/game/GameImpl.java index db7c0d9c0e..fee60b49e7 100644 --- a/Mage/src/mage/game/GameImpl.java +++ b/Mage/src/mage/game/GameImpl.java @@ -572,7 +572,23 @@ public abstract class GameImpl> implements Game, Serializa } private boolean playTurn(Player player) { - fireStatusEvent("Turn " + Integer.toString(state.getTurnNum()), true); + StringBuilder sb = new StringBuilder("Turn "); + sb.append(state.getTurnNum()).append(" ("); + int delimiter = this.getPlayers().size() - 1; + for (Player gamePlayer : this.getPlayers().values()) { + sb.append(gamePlayer.getLife()); + int poison = gamePlayer.getCounters().getCount(CounterType.POISON); + if (poison > 0) { + sb.append("[P:").append(poison).append("]"); + } + if (delimiter > 0) { + sb.append(" - "); + delimiter--; + } + } + sb.append(")"); + fireStatusEvent(sb.toString(), true); + if (checkStopOnTurnOption()) { return false; }