diff options
| author | historia <[not public]> | 2026-08-03 17:15:50 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-08-03 17:15:50 -0400 |
| commit | a2cbc04f86508708daa09affa5e9d73cc689b2ba (patch) | |
| tree | 0d0c6c7fbf4a775faaf5e9dd700157b883882638 /internal/casino/machine.go | |
| parent | adda27dba5bf7bf1dee62159f0cbc0bd90734751 (diff) | |
| download | thehouseoficarus-a2cbc04f86508708daa09affa5e9d73cc689b2ba.tar.gz | |
feat: new color 'command', color tag system implemented
Diffstat (limited to 'internal/casino/machine.go')
| -rw-r--r-- | internal/casino/machine.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/internal/casino/machine.go b/internal/casino/machine.go index 0ee4cde..79e4cb6 100644 --- a/internal/casino/machine.go +++ b/internal/casino/machine.go @@ -340,13 +340,19 @@ func formatWins(wins []SlotWin, ways int) string { return message[:len(message)-1] } -const slotMenuText = "Slot machine commands:\n bet <amount> Set your wager\n bet max Set the maximum wager\n spin Spin using your current wager\n autospin Start automatic betting\n stop Leave the slot machine" +var slotCommands = []MenuCommand{ + {Command: "bet <amount>", Desc: "Set your wager"}, + {Command: "bet max", Desc: "Set the maximum wager"}, + {Command: "spin", Desc: "Spin using your current wager"}, + {Command: "autospin", Desc: "Start automatic betting"}, + {Command: "stop", Desc: "Leave the slot machine"}, +} func (m *Machine) privateMenu(prefix string) []Event { events := m.private(prefix) events[0].Color = "casino_menu" if m.phase == machineReady { - events[0].Menu = &MenuView{Kind: MenuSlotCommands, Body: slotMenuText} + events[0].Menu = &MenuView{Kind: MenuSlotCommands, Commands: slotCommands} } return events } |
