summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-29 23:09:21 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commitef0ef6bf2665e6100f039ed72478cb73dadf7250 (patch)
tree1246ab976be7cc330a46178028f957e0dcaf7c9d
parent65fda430b30ea9b3ee349581dfbd021bc4a4ed27 (diff)
downloadfriedrich-ef0ef6bf2665e6100f039ed72478cb73dadf7250.tar.gz
minus. fate. always pause after supply.
-rw-r--r--rules.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index b72f109..579da55 100644
--- a/rules.js
+++ b/rules.js
@@ -2238,7 +2238,9 @@ function format_combat_stack(s) {
function signed_number(v) {
if (v > 0)
return "+" + v
- return v
+ if (v < 0)
+ return "\u2212" + (-v)
+ return "0"
}
function format_combat(value) {
@@ -2907,7 +2909,7 @@ function resume_supply_restore() {
else if (should_supply_flip())
goto_supply_flip()
else
- end_supply()
+ game.state = "supply_done"
}
function resume_supply_eliminate() {
@@ -2916,7 +2918,7 @@ function resume_supply_eliminate() {
else if (should_supply_flip())
goto_supply_flip()
else
- end_supply()
+ game.state = "supply_done"
}
function resume_supply_flip() {