mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
* life drain implemented
* fixed #134 * fixed damage calculation formula
This commit is contained in:
@ -2441,11 +2441,11 @@ std::pair<ui32, ui32> BattleInfo::calculateDmgRange( const CStack* attacker, con
|
||||
float dec = 0.025f * (-attackDefenceDifference);
|
||||
if(dec > 0.7f)
|
||||
{
|
||||
multBonus *= 1.0f - dec;
|
||||
multBonus *= 0.3f; //1.0 - 0.7
|
||||
}
|
||||
else
|
||||
{
|
||||
multBonus *= dec;
|
||||
multBonus *= 1.0f - dec;
|
||||
}
|
||||
}
|
||||
else //increasing dmg
|
||||
|
Reference in New Issue
Block a user