added lifegain and oplifegain variable used the same as lifelost, but stores the value of life gained this turn.

This commit is contained in:
zethfoxster
2016-07-21 21:11:15 -04:00
parent ca395492d5
commit 6aafe9dee0
4 changed files with 16 additions and 1 deletions

View File

@@ -166,6 +166,10 @@ int Player::gainOrLoseLife(int value)
life+=value;
if (value<0)
lifeLostThisTurn += abs(value);
else if (value > 0)
{
lifeGainedThisTurn += abs(value);
}
//Send life event to listeners
WEvent * lifed = NEW WEventLife(this,value);