don't limit the hate to 1 or higher since we can return negative values for calculating hate amount

This commit is contained in:
Emagi 2025-08-14 09:49:16 -04:00
parent 097ee61ea4
commit 2dedddabf0

View File

@ -1937,7 +1937,7 @@ sint32 Entity::CalculateHateAmount(Spawn* target, sint32 amt) {
float multiplier = 1.0f + (GetInfoStruct()->get_hate_mod() / 100.0f); float multiplier = 1.0f + (GetInfoStruct()->get_hate_mod() / 100.0f);
amt = static_cast<sint32>(amt * multiplier); amt = static_cast<sint32>(amt * multiplier);
return std::max(1, amt); return amt;
} }
sint32 Entity::CalculateHealAmount(Spawn* target, sint32 amt, int8 crit_mod, bool* crit, bool skip_crit_mod) { sint32 Entity::CalculateHealAmount(Spawn* target, sint32 amt, int8 crit_mod, bool* crit, bool skip_crit_mod) {