diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-22 22:01:29 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-22 22:03:02 +0200 |
commit | bd9fa963f46db757feaaa15bbd83fa7825e04c95 (patch) | |
tree | 7f7bc482de6de34fced3033b5fb4a31d21b0d618 | |
parent | 4e1c25827ef79e803f5523a3e2da769351dcbed4 (diff) | |
download | washingtons-war-bd9fa963f46db757feaaa15bbd83fa7825e04c95.tar.gz |
Canada control.
-rw-r--r-- | rules.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -470,6 +470,13 @@ function flip_pc(space) { function get_colony_control(c) { let control = 0 + if (c === Canada) { + if (get_space_pc(QUEBEC) === PC_BRITISH && get_space_pc(MONTREAL) === PC_BRITISH) + return PC_BRITISH + if (get_space_pc(QUEBEC) === PC_AMERICAN && get_space_pc(MONTREAL) === PC_AMERICAN) + return PC_AMERICAN + return PC_NONE + } for (let space of COLONIES[c]) { let pc = get_space_pc(space) if (pc === PC_BRITISH) |