added a commit to "thatmuch" variable to explain what its for.
This commit is contained in:
@@ -103,6 +103,9 @@ public:
|
|||||||
}
|
}
|
||||||
else if (s == "thatmuch")
|
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 = 0;
|
||||||
intValue = target->thatmuch;
|
intValue = target->thatmuch;
|
||||||
int checkagain = 0;
|
int checkagain = 0;
|
||||||
|
|||||||
@@ -121,7 +121,9 @@ int Player::gainOrLoseLife(int value)
|
|||||||
if (!value)
|
if (!value)
|
||||||
return 0; //Don't do anything if there's no actual life change
|
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;
|
life+=value;
|
||||||
if (value<0)
|
if (value<0)
|
||||||
lifeLostThisTurn -= value;
|
lifeLostThisTurn -= value;
|
||||||
|
|||||||
Reference in New Issue
Block a user