diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-01 13:38:38 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-06-01 13:38:38 +0200 |
commit | 9e37b582086d37b3f60996705bf75e10090f5408 (patch) | |
tree | 2f247b54ef2f61dc9179d5a3f68d201ba45e5f12 /rules.js | |
parent | ae0d821d3c30e948877d5d3f61ce2ee75b6986e5 (diff) | |
download | friedrich-9e37b582086d37b3f60996705bf75e10090f5408.tar.gz |
cycle pieces/markers when clicking the hide pieces button
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -231,10 +231,6 @@ const all_power_trains = [ const TRAIN_IA = 32 -function is_general(p) { - return p < 24 -} - const all_pieces = [ ...all_power_generals.flat(), ...all_power_trains.flat() ] const all_generals = [ ...all_power_generals.flat() ] @@ -294,6 +290,10 @@ const all_enemy_generals = [ all_prussia_generals, ] +function is_general(p) { + return p < 24 +} + function is_supply_train(p) { return p >= 24 } |