Added/fixed primitives, fixed crash with Taj-Nar Swordsmith, Fixed monarch switch after player takes combat damage, fixed allsubtypes in transforms keyword, fixed controllerdamager and opponentdamager keywords and all primitives using them, fixed Emerge alternative cost restriction, fixed Kinship condition on same creature subtype, added alterexperience keyword and fixed all primitives that use experience counters, fixed all primitives using ability counters from Ikoria, fixed mypoolsave keyword in order to don't finish effect at the end of turn, fixed all primitives using mypoolsave (e.g. Omnath, Locus of Mana), fixed Gravepurge and Daretti, Scrap Savant, in order to allow the player to discard zero cards while using their effects.

This commit is contained in:
Vittorio Alfieri
2021-07-29 03:33:33 +02:00
parent d2fbaaf320
commit 2cbb011fe3
17 changed files with 380 additions and 169 deletions

View File

@@ -33,6 +33,7 @@ void GuiAvatar::Render()
int life = player->life;
int poisonCount = player->poisonCount;
int energyCount = player->energyCount;
int experienceCount = player->experienceCount;
WFont * mFont = WResourceManager::Instance()->GetWFont(Fonts::MAIN_FONT);
mFont->SetScale(DEFAULT_MAIN_FONT_SCALE);
TargetChooser * tc = NULL;
@@ -166,6 +167,23 @@ void GuiAvatar::Render()
break;
}
}
//experience
char experience[15];
if (experienceCount > 0)
{
sprintf(experience, "%i", experienceCount);
switch (corner)
{
case TOP_LEFT:
mFont->SetColor(ARGB((int)actA / 1, 255, 0, 255));
mFont->DrawString(experience, actX + 2, actY + 24);
break;
case BOTTOM_RIGHT:
mFont->SetColor(ARGB((int)actA / 1 ,255, 0, 255));
mFont->DrawString(experience, actX - 10, actY - 27, JGETEXT_RIGHT);
break;
}
}
PlayGuiObject::Render();
}