diff options
Diffstat (limited to 'internal/casino/roulette.go')
| -rw-r--r-- | internal/casino/roulette.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/internal/casino/roulette.go b/internal/casino/roulette.go index 44c5f30..b4dcdf0 100644 --- a/internal/casino/roulette.go +++ b/internal/casino/roulette.go @@ -495,7 +495,6 @@ func (t *rouletteTable) menuEvent(name string) Event { {Command: "bet / rebet", Desc: "Repeat your previous wager"}, {Command: "table / sitout / stop", Desc: "View layout / sit out / leave after this spin"}, }) - e.Menu.Heading = strings.Replace(e.Menu.Heading, "Next hand", "Next spin", 1) e.Snapshot = t.view() return e } @@ -622,7 +621,7 @@ func (t *rouletteTable) settle() []Event { wheel[(index+1)%n], wheel[(index+2)%n], } t.lastResult = s - e := t.event("The ball lands in "+pocket+"!", true) + e := t.event("The ball lands in {casino_emphasis}"+pocket+"{/}!", true) e.Snapshot = s events := []Event{e} for _, p := range t.players.ordered() { @@ -645,7 +644,7 @@ func (t *rouletteTable) settle() []Event { if !failed { failed = p.Wallet.PayCredits(payout, p.Wager.ID) != nil } - text := resultText(result, p.Wager.Total, payout) + text := resultTextLabel(p.lastSpot, result, p.Wager.Total, payout) public := p.Name + " " + result + "." if failed { text = payoutFailedMessage() @@ -655,8 +654,12 @@ func (t *rouletteTable) settle() []Event { // Returning players get their balance in the next-spin menu. Only // departures/sit-outs need a balance attached to the settlement. event.ShowBalance = !failed && (p.LeaveAfter || p.SitOutAfter || !p.Connected) - if result == "win" && !failed { - event.Color = "casino_big_win" + if !failed { + if result == "win" { + event.Color = "casino_result_win" + } else { + event.Color = "casino_result_loss" + } } events = append(events, event) } |
