diff options
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 } |
