diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-09-04 13:55:23 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 13:11:27 +0100 |
commit | 42598f4c66ea86d87690b7c2468126b2340bb1c4 (patch) | |
tree | dfe5c313d57831bf46daedd25cc9b75ae144b011 | |
parent | 09378fab9f98633ce8b3ee912a5fa0a52936e13d (diff) | |
download | rommel-in-the-desert-42598f4c66ea86d87690b7c2468126b2340bb1c4.tar.gz |
Formatting of turn option prompt.
-rw-r--r-- | rules.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2324,7 +2324,14 @@ function player_hand() { states.turn_option = { inactive: "turn option", prompt() { - view.prompt = `Turn Option \u2014 committed ${game.commit[0]} real and ${game.commit[1]} dummy supply.` + if (game.commit[0] === 0 && game.commit[1] === 0) + view.prompt = `Turn Option: committed zero supply.` + else if (game.commit[1] === 0) + view.prompt = `Turn Option: committed ${game.commit[0]} real supply.` + else if (game.commit[0] === 0) + view.prompt = `Turn Option: committed ${game.commit[1]} dummy supply.` + else + view.prompt = `Turn Option: committed ${game.commit[0]} real and ${game.commit[1]} dummy supply.` let hand = player_hand() if (game.commit[0] + game.commit[1] < 3) { |