1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
DjWarmonger 2014-02-28 17:49:56 +00:00
parent 93856dbe98
commit b8b809bd50
2 changed files with 19 additions and 5 deletions

View File

@ -5961,7 +5961,9 @@ void MoraleLuckBox::set(const IBonusBearer *node)
text += CGI->generaltexth->arraytxt[noneTxtId];
else
{
if (node->hasBonusOfType (Bonus::UNDEAD) || node->hasBonusOfType(Bonus::BLOCK_MORALE) || node->hasBonusOfType(Bonus::NON_LIVING)) //it's a creature window
//it's a creature window
if (morale && node->hasBonusOfType (Bonus::UNDEAD) ||
node->hasBonusOfType(Bonus::BLOCK_MORALE) || node->hasBonusOfType(Bonus::NON_LIVING))
{
text += CGI->generaltexth->arraytxt[113]; //unaffected by morale
}

View File

@ -1338,7 +1338,7 @@
{
"type" : "STACK_HEALTH",
"val" : 1,
"valueType" : "BASE_NUMBER"
"valueType" : "ADDITIVE_VALUE"
}
],
"index" : 94,
@ -1350,7 +1350,7 @@
{
"type" : "STACK_HEALTH",
"val" : 1,
"valueType" : "BASE_NUMBER"
"valueType" : "ADDITIVE_VALUE"
}
],
"index" : 95,
@ -1362,7 +1362,7 @@
{
"type" : "STACK_HEALTH",
"val" : 2,
"valueType" : "BASE_NUMBER"
"valueType" : "ADDITIVE_VALUE"
}
],
"index" : 96,
@ -1893,12 +1893,24 @@
{
"type" : "STACK_HEALTH",
"val" : 25,
"valueType" : "PERCENT_TO_BASE"
"valueType" : "PERCENT_TO_BASE",
},
{
"type" : "STACK_HEALTH",
"val" : -25,
"valueType" : "PERCENT_TO_BASE",
"limiters" : ["IS_UNDEAD"]
},
{
"type" : "HP_REGENERATION",
"val" : 50,
"valueType" : "BASE_NUMBER"
},
{
"type" : "HP_REGENERATION",
"val" : -50,
"valueType" : "BASE_NUMBER",
"limiters" : ["IS_UNDEAD"]
}
],
"index" : 131,