Browse Source

fix repair and recharge (#7360)

pull/7362/head
qndel 2 years ago committed by GitHub
parent
commit
71650f981f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      Source/stores.cpp

6
Source/stores.cpp

@ -1483,8 +1483,6 @@ void SmithSellEnter()
*/
void SmithRepairItem(int price)
{
TakePlrsMoney(price);
int idx = stextvhold + ((stextlhold - stextup) / 4);
storehold[idx]._iDurability = storehold[idx]._iMaxDur;
@ -1505,6 +1503,7 @@ void SmithRepairItem(int price)
}
myPlayer.InvList[i]._iDurability = myPlayer.InvList[i]._iMaxDur;
TakePlrsMoney(price);
}
void SmithRepairEnter()
@ -1637,8 +1636,6 @@ void WitchSellEnter()
*/
void WitchRechargeItem(int price)
{
TakePlrsMoney(price);
int idx = stextvhold + ((stextlhold - stextup) / 4);
storehold[idx]._iCharges = storehold[idx]._iMaxCharges;
@ -1653,6 +1650,7 @@ void WitchRechargeItem(int price)
NetSyncInvItem(myPlayer, i);
}
TakePlrsMoney(price);
CalcPlrInv(myPlayer, true);
}

Loading…
Cancel
Save