Bushido & Modular

add Bushido and Modular points
This commit is contained in:
Anthony Calosa
2017-03-16 16:58:56 +08:00
parent 44cb0d995e
commit d4e1d809f3
11 changed files with 192 additions and 75 deletions

View File

@@ -60,6 +60,7 @@ CardPrimitive::CardPrimitive(CardPrimitive * source)
setAICustomCode(source->AICustomCode);
setCrewAbility(source->CrewAbility);
setPhasedOutAbility(source->PhasedOutAbility);
setModularValue(source->ModularValue);
power = source->power;
toughness = source->toughness;
restrictions = source->restrictions ? source->restrictions->clone() : NULL;
@@ -381,6 +382,17 @@ const string& CardPrimitive::getPhasedOutAbility() const
return PhasedOutAbility;
}
void CardPrimitive::setModularValue(const string& value)
{
ModularValue = value;
std::transform(ModularValue.begin(), ModularValue.end(), ModularValue.begin(), ::tolower);
}
const string& CardPrimitive::getModularValue() const
{
return ModularValue;
}
void CardPrimitive::setName(const string& value)
{
name = value;