diff options
| author | historia <[not public]> | 2026-09-16 19:57:45 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 19:57:45 -0400 |
| commit | 6ef40a5739f1723ec26cc32dfc48fe764f776dca (patch) | |
| tree | e215a4dc96ea639bcea07bb589aae3e31c3609bb /internal/game/cmd_get.go | |
| parent | 1dad15698845d370e998f7cc5feb8aece3fab58f (diff) | |
| download | thehouseoficarus-6ef40a5739f1723ec26cc32dfc48fe764f776dca.tar.gz | |
fix: durable payouts survive journal failure, cap bank withdrawals, hash passwords off the owner loop.
Diffstat (limited to 'internal/game/cmd_get.go')
| -rw-r--r-- | internal/game/cmd_get.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_get.go b/internal/game/cmd_get.go index f2776a3..bc48394 100644 --- a/internal/game/cmd_get.go +++ b/internal/game/cmd_get.go @@ -276,7 +276,7 @@ func (g *Game) doGetAll(sess *net.Session) { if taken <= 0 { continue } - p.Credits += taken + g.grantCredits(p, taken) if taken == 1 { picked = append(picked, "1 credit") } else { @@ -378,7 +378,7 @@ func (g *Game) pickupCredits(sess *net.Session, p *player.Player, itemID string) if qty <= 0 { return } - p.Credits += qty + g.grantCredits(p, qty) g.saveCharacter(p) if qty == 1 { sess.WriteLine(g.colorize(sess, "currency_pickup", "You pick up 1 credit.")) |
