1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Initialize the change.

This commit is contained in:
toneyisnow 2020-01-18 01:02:17 -08:00 committed by Arseniy Shestakov
parent 905d31b8d7
commit 0fe3c0a569
6 changed files with 32 additions and 15 deletions

View File

@ -2237,6 +2237,7 @@ void CBattleInterface::handleHex(BattleHex myNumber, int eventType)
{
if (!(shere->hasBonusOfType(Bonus::UNDEAD)
|| shere->hasBonusOfType(Bonus::NON_LIVING)
|| shere->hasBonusOfType(Bonus::GARGOYLE)
|| shere->summoned
|| shere->isClone()
|| shere->hasBonusOfType(Bonus::SIEGE_WEAPON)

View File

@ -231,6 +231,14 @@
}
},
"GARGOYLE":
{
"graphics":
{
"icon": "zvs/Lib1.res/NonLiving" // Just use the NonLiving icon for now
}
},
"GENERAL_DAMAGE_REDUCTION":
{
"graphics":

View File

@ -144,12 +144,6 @@
"description": "Ignores part of Defence for the attack"
},
"GENERAL_DAMAGE_REDUCTION":
{
"name": "Reduce Damage (${val}%)",
"description": "Reduces physical damage from ranged or melee"
},
"FIRE_IMMUNITY":
{
"name": "Fire immunity",
@ -198,6 +192,18 @@
"description": "May Regenerate to full Health"
},
"GARGOYLE":
{
"name": "Gargoyle",
"description": "Cannot be rised or healed"
},
"GENERAL_DAMAGE_REDUCTION":
{
"name": "Reduce Damage (${val}%)",
"description": "Reduces physical damage from ranged or melee"
},
"HATE":
{
"name": "Hates ${subtype.creature}",

View File

@ -51,9 +51,9 @@
"faction": "tower",
"abilities":
{
"nonliving" :
"gargoyle" :
{
"type" : "NON_LIVING"
"type" : "GARGOYLE"
}
},
"upgrades": ["obsidianGargoyle"],
@ -77,9 +77,9 @@
"faction": "tower",
"abilities":
{
"nonliving" :
"gargoyle" :
{
"type" : "NON_LIVING"
"type" : "GARGOYLE"
}
},
"graphics" :
@ -392,7 +392,7 @@
{
"type" : "MIND_IMMUNITY"
},
"hateArchAngels" :
"hateBlackDragon" :
{
"type" : "HATE",
"subtype" : "creature.blackDragon",

View File

@ -643,6 +643,7 @@ bool IBonusBearer::isLiving() const //TODO: theoreticaly there exists "LIVING" b
static const std::string cachingStr = "IBonusBearer::isLiving";
static const CSelector selector = Selector::type(Bonus::UNDEAD)
.Or(Selector::type(Bonus::NON_LIVING))
.Or(Selector::type(Bonus::GARGOYLE))
.Or(Selector::type(Bonus::SIEGE_WEAPON));
return !hasBonus(selector, cachingStr);

View File

@ -174,7 +174,8 @@ public:
BONUS_NAME(TWO_HEX_ATTACK_BREATH) /*eg. dragons*/ \
BONUS_NAME(SPELL_DAMAGE_REDUCTION) /*eg. golems; value - reduction in %, subtype - spell school; -1 - all, 0 - air, 1 - fire, 2 - water, 3 - earth*/ \
BONUS_NAME(NO_WALL_PENALTY) \
BONUS_NAME(NON_LIVING) /*eg. gargoyle*/ \
BONUS_NAME(NON_LIVING) /*eg. golems, cannot be rised or healed, only neutral morale */ \
BONUS_NAME(GARGOYLE) /* gargoyle is special than NON_LIVING, cannot be rised or healed */ \
BONUS_NAME(RANDOM_SPELLCASTER) /*eg. master genie, val - level*/ \
BONUS_NAME(BLOCKS_RETALIATION) /*eg. naga*/ \
BONUS_NAME(SPELL_IMMUNITY) /*subid - spell id*/ \