1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

* creature window prints morale/luck for actual stack in battle (CStack), not stack as seen in hero screen (CStackInstance), fixes #1264

* creature abilities bonus properties are updated when the creature id is assigned
* removed decrease morale ability from config file (it was duplicating the one from ZCRTRAIT.TXT
This commit is contained in:
Michał W. Urbańczyk
2013-05-19 19:53:03 +00:00
parent fc6e72dc75
commit c85829a00c
5 changed files with 24 additions and 11 deletions

View File

@ -336,9 +336,9 @@ void CCreatureWindow::init(const CStackInstance *Stack, const CBonusSystemNode *
//Stats
morale = new MoraleLuckBox(true, genRect(42, 42, 335, 100));
morale->set(stack);
morale->set(stackNode);
luck = new MoraleLuckBox(false, genRect(42, 42, 387, 100));
luck->set(stack);
luck->set(stackNode);
new CAnimImage("PSKIL42", 4, 0, 387, 51); //exp icon - Print it always?
if (type) //not in fort window