add manapool count

also add getStringValue for menutext
This commit is contained in:
Anthony Calosa
2016-08-25 00:17:16 +08:00
parent a90cddf589
commit 1cd6f00c59
2 changed files with 61 additions and 0 deletions

View File

@@ -726,6 +726,14 @@ private:
{//this is just to count the number of snow mana produced ... just for debugging purposes...
intValue = target->controller()->snowManaG + target->controller()->snowManaU +target->controller()->snowManaR + target->controller()->snowManaB + target->controller()->snowManaW + target->controller()->snowManaC;
}
else if (s == "mypoolcount")
{//manapool
intValue = target->controller()->getManaPool()->getConvertedCost();
}
else if (s == "opponentpoolcount")
{//manapool opponent
intValue = target->controller()->opponent()->getManaPool()->getConvertedCost();
}
else if (s == "p" || s == "power")
{
intValue = target->getCurrentPower();
@@ -1133,6 +1141,13 @@ public:
{
return intValue;
}
string getStringValue()
{
stringstream sval;
sval << intValue;
return sval.str();
}
};
class WParsedPT