From 7b009e904524f30cbff6346730e8d8fe4b046a6b Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 4 Jul 2026 19:32:05 -0400 Subject: feat: add casino chips, change drops to chips --- internal/game/core_utils.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/game/core_utils.go') diff --git a/internal/game/core_utils.go b/internal/game/core_utils.go index 2855bcf..71d0acb 100644 --- a/internal/game/core_utils.go +++ b/internal/game/core_utils.go @@ -149,3 +149,13 @@ func (g *Game) newInventorySlot(itemID string, qty int) *player.InventorySlot { } return slot } + +func countChips(p *player.Player) int { + total := 0 + for _, slot := range p.Inventory { + if slot != nil && slot.ItemID == "chips" { + total += slot.Quantity + } + } + return total +} -- cgit v1.2.3