added a commit to "thatmuch" variable to explain what its for.

This commit is contained in:
omegablast2002@yahoo.com
2011-01-23 18:23:44 +00:00
parent 48fd6a1bc1
commit 46891d8de8
2 changed files with 6 additions and 1 deletions

View File

@@ -103,6 +103,9 @@ public:
}
else if (s == "thatmuch")
{
//the value that much is a variable to be used with triggered abilities.
//ie:when ever you gain life, draw that many cards. when used in a trigger draw:thatmuch, will return the value
//that the triggered event stored in the card for "that much".
intValue = 0;
intValue = target->thatmuch;
int checkagain = 0;

View File

@@ -121,7 +121,9 @@ int Player::gainOrLoseLife(int value)
if (!value)
return 0; //Don't do anything if there's no actual life change
thatmuch = abs(value); //What is thatmuch used for?
thatmuch = abs(value); //the value that much is a variable to be used with triggered abilities.
//ie:when ever you gain life, draw that many cards. when used in a trigger draw:thatmuch, will return the value
//that the triggered event stored in the card for "that much".
life+=value;
if (value<0)
lifeLostThisTurn -= value;