Skip to content

Commit

Permalink
Fix value of items bought from Wirt's shop
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Dec 1, 2024
1 parent 1d3601f commit ab0266d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/stores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1758,11 +1758,11 @@ void BoyEnter()
StartStore(TalkID::Gossip);
}

void BoyBuyItem(Item &item)
void BoyBuyItem(Item &item, int itemPrice)
{
TakePlrsMoney(item._iIvalue);
TakePlrsMoney(itemPrice);
StoreAutoPlace(item, true);
boyitem.clear();
item.clear();
stextshold = TalkID::Boy;
CalcPlrInv(*MyPlayer, true);
stextlhold = 12;
Expand Down Expand Up @@ -1886,7 +1886,7 @@ void ConfirmEnter(Item &item)
WitchRechargeItem(item._iIvalue);
break;
case TalkID::BoyBuy:
BoyBuyItem(item);
BoyBuyItem(boyitem, item._iIvalue);
break;
case TalkID::HealerBuy:
HealerBuyItem(item);
Expand Down

0 comments on commit ab0266d

Please sign in to comment.