Skip to content

Commit

Permalink
Fix stupid error
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 8, 2024
1 parent c8f1bef commit 59db9df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2642,10 +2642,12 @@ void CalcPlrItemVals(Player &player, bool loadgfx)
int portion = ((player._pMaxManaBase >> 6) * 50 / 100) << 6;
imana -= portion;
ihp += portion;
}
if (IsAnyOf(item._iDamAcFlags, ItemSpecialEffectHf::LifeToMana)) {
int portion = ((player._pMaxHPBase >> 6) * 40 / 100) << 6;
ihp -= portion;
imana += portion;
}
if (IsNoneOf(item._iDamAcFlags, ItemSpecialEffectHf::ManaToLife, ItemSpecialEffectHf::LifeToMana)) {
ihp += item._iPLHP;
imana += item._iPLMana;
Expand Down

0 comments on commit 59db9df

Please sign in to comment.