Added mana production statistics to the deck viewer.
Two new screens (5,6): 5.) Counts of manasources per color and type. - Basic lands - Non basic lands - Other source 6.) Focusing on mana produced by lands only, displaying amounts of each mana potentialy produced graphically, along with percentages - to be easily compared with following screen (detailing mana cost per colors)
This commit is contained in:
@@ -63,6 +63,7 @@ struct StatsWrapper {
|
||||
float avgCreatureCost;
|
||||
int totalSpellCost;
|
||||
float avgSpellCost;
|
||||
int countManaProducers;
|
||||
|
||||
int countCreatures, countSpells, countInstants, countEnchantments, countSorceries, countArtifacts;
|
||||
|
||||
@@ -75,6 +76,9 @@ struct StatsWrapper {
|
||||
int countCreaturesPerCostAndColor[STATS_MAX_MANA_COST+1][Constants::MTG_NB_COLORS+1];
|
||||
int countSpellsPerCost[STATS_MAX_MANA_COST+1];
|
||||
int countSpellsPerCostAndColor[STATS_MAX_MANA_COST+1][Constants::MTG_NB_COLORS+1];
|
||||
int countLandsPerColor[Constants::MTG_NB_COLORS+1];
|
||||
int countBasicLandsPerColor[Constants::MTG_NB_COLORS+1];
|
||||
int countNonLandProducersPerColor[Constants::MTG_NB_COLORS+1];
|
||||
int totalCostPerColor[Constants::MTG_NB_COLORS+1];
|
||||
int totalColoredSymbols;
|
||||
|
||||
|
||||
@@ -202,8 +202,8 @@ class AbilityFactory{
|
||||
int countCards(TargetChooser * tc, Player * player = NULL, int option = 0);
|
||||
int parsePowerToughness(string s, int *power, int *toughness);
|
||||
TriggeredAbility * parseTrigger(string s, int id, Spell * spell, MTGCardInstance *card, Targetable * target);
|
||||
MTGAbility * parseMagicLine(string s, int id, Spell * spell, MTGCardInstance *card, int activated = 0, int forceUEOT = 0);
|
||||
public:
|
||||
MTGAbility * parseMagicLine(string s, int id, Spell * spell, MTGCardInstance *card, int activated = 0, int forceUEOT = 0);
|
||||
int abilityEfficiency(MTGAbility * a, Player * p, int mode = MODE_ABILITY);
|
||||
int magicText(int id, Spell * spell, MTGCardInstance * card = NULL, int mode = MODE_PUTINTOPLAY);
|
||||
static int computeX(Spell * spell, MTGCardInstance * card);
|
||||
|
||||
Reference in New Issue
Block a user