Fix date in Dat files, Added IKO and HA3 sets, updated the manifest and build files, Added SD card support for Android, Fix the Android app crash when resuming from background, Improved Android downloader, added finger sliding popup menu for Android devices without sidebar menu, fixed several crashes during game, added the mutating card ability, fixed the adventure card ability, added new borderline primitives.

This commit is contained in:
valfieri
2020-06-10 00:10:59 +02:00
parent 275eb9e06e
commit 8645cb9e1e
48 changed files with 9268 additions and 3312 deletions

View File

@@ -145,6 +145,18 @@ ThisDescriptor * ThisDescriptorFactory::createThisDescriptor(GameObserver* obser
return NULL;
}
//mutations
found = s.find("mutations");
if (found != string::npos)
{
ThisMutation * td = NEW ThisMutation(criterion);
if (td)
{
td->comparisonMode = mode;
return td;
}
return NULL;
}
//equips and auras
found = s.find("gear");//still same meaning, better wording to word conflict with MTGAbility equip.
if (found != string::npos)
@@ -513,6 +525,20 @@ ThisPower* ThisPower::clone() const
return NEW ThisPower(*this);
}
ThisMutation::ThisMutation(int mutation)
{
comparisonCriterion = mutation;
}
int ThisMutation::match(MTGCardInstance * card)
{
return matchValue(card->mutation);
}
ThisMutation* ThisMutation::clone() const
{
return NEW ThisMutation(*this);
}
ThisEquip::ThisEquip(int equipment)
{
comparisonCriterion = equipment;