item stat 624 (hate gain % mod) now supported
This commit is contained in:
parent
a7260e9f72
commit
097ee61ea4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user