Skip to content

Commit

Permalink
Disabling stash gold when buying items
Browse files Browse the repository at this point in the history
Characters were previously able to access gold from the stash through
vendor screen.

This patch disables it, as in ironman you should not have access to any
stash.

Implements #30
  • Loading branch information
sixcy committed Sep 8, 2022
1 parent e9c6c1f commit 21afea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/stores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void ScrollSmithBuy(int idx)

uint32_t TotalPlayerGold()
{
return MyPlayer->_pGold + Stash.gold;
return MyPlayer->_pGold + (IsIronman ? 0 : Stash.gold);
}

void StartSmithBuy()
Expand Down

0 comments on commit 21afea3

Please sign in to comment.