From 46891d8de883365b3746c114ee9bed8c7acebcf0 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sun, 23 Jan 2011 18:23:44 +0000 Subject: [PATCH] added a commit to "thatmuch" variable to explain what its for. --- projects/mtg/include/AllAbilities.h | 3 +++ projects/mtg/src/Player.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index a73932331..492e005a9 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -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; diff --git a/projects/mtg/src/Player.cpp b/projects/mtg/src/Player.cpp index ccaefcac8..81b0124fa 100644 --- a/projects/mtg/src/Player.cpp +++ b/projects/mtg/src/Player.cpp @@ -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;