diff options
| author | historia <[not public]> | 2026-10-05 17:31:50 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-05 17:31:50 -0400 |
| commit | 516fd29da423432ef6dfded21a984f1d15dcab1a (patch) | |
| tree | eb2dabe325a1335dedac28a93453df643ef986f2 /internal/game/hardening_credit_cap_test.go | |
| parent | e42952469dadfb3535633c66c881050ac128703c (diff) | |
| download | thehouseoficarus-516fd29da423432ef6dfded21a984f1d15dcab1a.tar.gz | |
fix: slop casino and economy fixes
Diffstat (limited to 'internal/game/hardening_credit_cap_test.go')
| -rw-r--r-- | internal/game/hardening_credit_cap_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/hardening_credit_cap_test.go b/internal/game/hardening_credit_cap_test.go index 872c746..05b0aeb 100644 --- a/internal/game/hardening_credit_cap_test.go +++ b/internal/game/hardening_credit_cap_test.go @@ -23,7 +23,7 @@ func TestPickupCreditsAtCapLeavesRemainderOnGround(t *testing.T) { sess := &net.Session{Conn: newChanConn(), Player: p} sess.SetState(net.StateGame) - h.g.pickupCredits(sess, p, "credits") + h.g.pickupCredits(sess, p, "credits", 0) if p.Credits != casino.MaxCredits { t.Errorf("balance = %d, want the cap %d", p.Credits, casino.MaxCredits) @@ -44,7 +44,7 @@ func TestPickupCreditsAtCapDestroysNothing(t *testing.T) { sess := &net.Session{Conn: newChanConn(), Player: p} sess.SetState(net.StateGame) - h.g.pickupCredits(sess, p, "credits") + h.g.pickupCredits(sess, p, "credits", 0) if p.Credits != casino.MaxCredits { t.Errorf("balance = %d, want the cap %d", p.Credits, casino.MaxCredits) |
