Skip to content

Commit

Permalink
fix repair and recharge (#7360)
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel committed Aug 21, 2024
1 parent 4e572f0 commit 71650f9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/stores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1483,8 +1483,6 @@ void SmithSellEnter()
*/
void SmithRepairItem(int price)
{
TakePlrsMoney(price);

int idx = stextvhold + ((stextlhold - stextup) / 4);
storehold[idx]._iDurability = storehold[idx]._iMaxDur;

Expand All @@ -1505,6 +1503,7 @@ void SmithRepairItem(int price)
}

myPlayer.InvList[i]._iDurability = myPlayer.InvList[i]._iMaxDur;
TakePlrsMoney(price);
}

void SmithRepairEnter()
Expand Down Expand Up @@ -1637,8 +1636,6 @@ void WitchSellEnter()
*/
void WitchRechargeItem(int price)
{
TakePlrsMoney(price);

int idx = stextvhold + ((stextlhold - stextup) / 4);
storehold[idx]._iCharges = storehold[idx]._iMaxCharges;

Expand All @@ -1653,6 +1650,7 @@ void WitchRechargeItem(int price)
NetSyncInvItem(myPlayer, i);
}

TakePlrsMoney(price);
CalcPlrInv(myPlayer, true);
}

Expand Down

0 comments on commit 71650f9

Please sign in to comment.