Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 7, 2024
1 parent c4972a6 commit 719233b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1034,20 +1034,20 @@ int SaveItemPower(const Player &player, Item &item, ItemPower &power)
case IPL_ACUNDEAD:
item._iDamAcFlags |= ItemSpecialEffectHf::ACAgainstUndead;
break;
case IPL_MANATOLIFE:
case IPL_MANATOLIFE: {
item._iDamAcFlags |= ItemSpecialEffectHf::ManaToLife;
// Calculate for reverse compatibility
int portion = ((player._pMaxManaBase >> 6) * 50 / 100) << 6;
item._iPLMana -= portion;
item._iPLHP += portion;
break;
case IPL_LIFETOMANA:
} break;
case IPL_LIFETOMANA: {
item._iDamAcFlags |= ItemSpecialEffectHf::LifeToMana;
// Calculate for reverse compatibility
int portion = ((player._pMaxHPBase >> 6) * 40 / 100) << 6;
item._iPLHP -= portion;
item._iPLMana += portion;
break;
} break;
default:
break;
}
Expand Down

0 comments on commit 719233b

Please sign in to comment.