related to issue 655. The change to bitwise representation of mana required some changes in the deck output methods.
This commit is contained in:
@@ -1074,7 +1074,8 @@ void MTGDeck::printDetailedDeckText(std::ofstream& file )
|
||||
|
||||
for (size_t x = 0; x < card->data->basicAbilities.size(); ++x)
|
||||
{
|
||||
currentCard << Constants::MTGBasicAbilities[x] << "; ";
|
||||
if ( card->data->basicAbilities[x] == 1 )
|
||||
currentCard << Constants::MTGBasicAbilities[x] << "; ";
|
||||
}
|
||||
currentCard <<endl;
|
||||
|
||||
|
||||
@@ -735,9 +735,9 @@ string ManaCost::toString()
|
||||
if (cost[i])
|
||||
{
|
||||
if ( i == Constants::MTG_COLOR_ARTIFACT)
|
||||
oss << "{" << cost[i] << "}";
|
||||
oss << "{" << getCost(i) << "}";
|
||||
else
|
||||
for (int colorCount = 0; colorCount < cost[i]; colorCount++ )
|
||||
for (int colorCount = 0; colorCount < getCost(i); colorCount++ )
|
||||
oss << "{" << Constants::MTGColorChars[i] << "}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user