first moved the def of handsize for a game into the rules.txt as discussed with wololo...
this update requires you to update your rules folder files!!! 2nd added 2 new vanguard game modes. Stone Hewer Basic - when ever a creature enters play, a random equipment with a converted mana cost less than or equal to that creature is put into play and attached to it. this mode is unlockable, requirement = win a match where 10 or more equipment were in the battlefeild at the moment you won. Hermit Druid basic- in this game mode, during each of the players upkeeps, a random land card from their deck is placed into the battlefield, these do not count against your 1 land per turn limit. to unlock this, win any match with less then 10 lands.
This commit is contained in:
@@ -132,6 +132,20 @@ void Credits::compute(Player * _p1, Player * _p2, GameApp * _app)
|
||||
goa->giveAward();
|
||||
options.save();
|
||||
}
|
||||
else if ((unlocked = isStoneHewerUnlocked()))
|
||||
{
|
||||
unlockedTextureName = "stonehewer_unlocked.png";
|
||||
goa = (GameOptionAward*) &options[Options::STONEHEWER_MODE_UNLOCKED];
|
||||
goa->giveAward();
|
||||
options.save();
|
||||
}
|
||||
else if ((unlocked = isHermitUnlocked()))
|
||||
{
|
||||
unlockedTextureName = "hermit_unlocked.png";
|
||||
goa = (GameOptionAward*) &options[Options::HERMIT_MODE_UNLOCKED];
|
||||
goa->giveAward();
|
||||
options.save();
|
||||
}
|
||||
else if ((unlocked = isEvilTwinUnlocked()))
|
||||
{
|
||||
unlockedTextureName = "eviltwin_unlocked.png";
|
||||
@@ -338,6 +352,24 @@ int Credits::isMomirUnlocked()
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Credits::isStoneHewerUnlocked()
|
||||
{
|
||||
if (options[Options::STONEHEWER_MODE_UNLOCKED].number)
|
||||
return 0;
|
||||
if (int(p1->game->inPlay->countByType("equipment") + p1->opponent()->game->inPlay->countByType("equipment")) > 10)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Credits::isHermitUnlocked()
|
||||
{
|
||||
if (options[Options::HERMIT_MODE_UNLOCKED].number)
|
||||
return 0;
|
||||
if (int(p1->game->inPlay->countByType("land")) < 10)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Credits::isEvilTwinUnlocked()
|
||||
{
|
||||
if (options[Options::EVILTWIN_MODE_UNLOCKED].number)
|
||||
|
||||
Reference in New Issue
Block a user