item stat 624 (hate gain % mod) now supported

This commit is contained in:
Emagi 2025-08-14 09:06:17 -04:00
parent a7260e9f72
commit 097ee61ea4

View File

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