summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-14 23:27:05 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-14 23:27:05 +0100
commitad88bc773de23e27f42690190b3d2ef277c816b1 (patch)
treeb50889623c13e6abe48825152023a4381b13831c /rules.js
parentec832e3278210f645b2a08f2f70e17fb032417c3 (diff)
downloadmaria-ad88bc773de23e27f42690190b3d2ef277c816b1.tar.gz
Change hyphen-minus into mathematical minus in client.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index c23b52b..c51cdca 100644
--- a/rules.js
+++ b/rules.js
@@ -1846,7 +1846,7 @@ function draw_tactical_cards() {
}
if (mod < 0)
- log(`${power_name[game.power]} ${base} TC (\u2212${-mod} political).`)
+ log(`${power_name[game.power]} ${base} TC (-${-mod} political).`)
else if (mod > 0)
log(`${power_name[game.power]} ${base} TC (+${mod} political).`)
else
@@ -2244,10 +2244,10 @@ states.supply_suffer = {
let s = game.pos[p]
set_delete(game.supply.suffer, p)
if (is_out_of_supply(p)) {
- log(`>P${p} at S${s} (\u{2212}2)`)
+ log(`>P${p} at S${s} (-2)`)
game.troops[p] -= 2
} else {
- log(`>P${p} at S${s} (\u{2212}1)`)
+ log(`>P${p} at S${s} (-1)`)
set_out_of_supply(p)
game.troops[p] -= 1
}
@@ -3802,7 +3802,7 @@ function signed_number(v) {
if (v > 0)
return "+" + v
if (v < 0)
- return "\u2212" + (-v)
+ return "-" + (-v)
return "0"
}