mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
disintegrate
This commit is contained in:
parent
5de5ac5eb5
commit
9c4d4e89d6
@ -591,6 +591,15 @@
|
||||
{
|
||||
"icon": "zvs/Lib1.res/MEGABREATH"
|
||||
}
|
||||
},
|
||||
|
||||
"DISINTEGRATE":
|
||||
{
|
||||
"graphics":
|
||||
{
|
||||
"icon": "zvs/Lib1.res/DISINTEGRATE"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -831,7 +831,8 @@ void CUnitState::damage(int64_t & amount)
|
||||
health.damage(amount);
|
||||
}
|
||||
|
||||
if(health.available() <= 0 && (cloned || summoned))
|
||||
bool disintegrate = hasBonusOfType(BonusType::DISINTEGRATE);
|
||||
if(health.available() <= 0 && (cloned || summoned || disintegrate))
|
||||
ghostPending = true;
|
||||
}
|
||||
|
||||
|
@ -178,6 +178,7 @@ class JsonNode;
|
||||
BONUS_NAME(REVENGE) /*additional damage based on how many units in stack died - formula: sqrt((number of creatures at battle start + 1) * creature health) / (total health now + 1 creature health) - 1) * 100% */ \
|
||||
BONUS_NAME(RESOURCES_CONSTANT_BOOST) /*Bonus that does not account for propagation and gives extra resources per day. val - resource amount, subtype - resource type*/ \
|
||||
BONUS_NAME(RESOURCES_TOWN_MULTIPLYING_BOOST) /*Bonus that does not account for propagation and gives extra resources per day with amount multiplied by number of owned towns. val - base resource amount to be multiplied times number of owned towns, subtype - resource type*/ \
|
||||
BONUS_NAME(DISINTEGRATE) /* after death no corpse remains */ \
|
||||
/* end of list */
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user