diff options
Diffstat (limited to 'src/client/games/slots.rs')
| -rw-r--r-- | src/client/games/slots.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/games/slots.rs b/src/client/games/slots.rs index 2ec354e..5bffc4c 100644 --- a/src/client/games/slots.rs +++ b/src/client/games/slots.rs | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | use super::traits::{Game, GamePhase, GameState}; | 1 | use super::traits::{Game, GamePhase, GameState}; |
| 2 | use crate::slots::{paytable_lines, LINE_NAMES, REELS, ROWS}; | 2 | use crate::slots::{LINE_NAMES, REELS, ROWS, paytable_lines}; |
| 3 | 3 | ||
| 4 | /// Height of the game board. It must never depend on the spin result. | 4 | /// Height of the game board. It must never depend on the spin result. |
| 5 | pub const SLOT_BOARD_LINES: usize = 10; | 5 | pub const SLOT_BOARD_LINES: usize = 10; |
| @@ -65,9 +65,9 @@ impl SlotsGame { | |||
| 65 | .unwrap_or("0"); | 65 | .unwrap_or("0"); |
| 66 | if winnings != "0" { | 66 | if winnings != "0" { |
| 67 | return match state.data.get("win_type").map(String::as_str) { | 67 | return match state.data.get("win_type").map(String::as_str) { |
| 68 | Some("mega") => format!("MEGA WIN! {winnings} PLN"), | 68 | Some("mega") => format!("MEGA WIN! {winnings} Kr"), |
| 69 | Some("big") => format!("BIG WIN! {winnings} PLN"), | 69 | Some("big") => format!("BIG WIN! {winnings} Kr"), |
| 70 | _ => format!("Won {winnings} PLN"), | 70 | _ => format!("Won {winnings} Kr"), |
| 71 | }; | 71 | }; |
| 72 | } | 72 | } |
| 73 | return "No win.".to_string(); | 73 | return "No win.".to_string(); |
| @@ -115,7 +115,7 @@ impl Game for SlotsGame { | |||
| 115 | let paytable = paytable_lines(); | 115 | let paytable = paytable_lines(); |
| 116 | 116 | ||
| 117 | format!( | 117 | format!( |
| 118 | "=== SLOTS ===\r\nBet: {} PLN Balance: {} PLN\r\n{}\r\n{}\r\n{}\r\n{}\r\n{}\r\n{}\r\n{}\r\n[+/-] Bet [SPACE] Spin [Q] Quit", | 118 | "=== SLOTS ===\r\nBet: {} Kr Balance: {} Kr\r\n{}\r\n{}\r\n{}\r\n{}\r\n{}\r\n{}\r\n{}\r\n[+/-] Bet [SPACE] Spin [Q] Quit", |
| 119 | state.bet_amount, | 119 | state.bet_amount, |
| 120 | balance, | 120 | balance, |
| 121 | grid[0], | 121 | grid[0], |
