summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-28 18:01:04 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-28 18:01:04 +0100
commit98676a4bd7731d489e660c873154a08c67688ee2 (patch)
tree1912928652f434b491004d48506afe9e201b33de
parentaf6f5046978e0808287a3eaeea090e02e7afa949 (diff)
downloadland-and-freedom-98676a4bd7731d489e660c873154a08c67688ee2.tar.gz
Fix bugs with track name skips.
-rw-r--r--rules.js9
-rw-r--r--rules.ts9
2 files changed, 12 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index 72edae1..abc3dcd 100644
--- a/rules.js
+++ b/rules.js
@@ -1487,10 +1487,13 @@ states.move_track = {
},
skip() {
const node = get_active_node();
- if (node.a.v >= 0)
- logi(`${get_track_name(node.a.t)} cannot move +${node.a.v}`);
+ const track = node.a.t;
+ if (track === data_1.GOVERNMENT)
+ logi(`Government +0`);
+ else if (track === data_1.LIBERTY_OR_COLLECTIVIZATION)
+ logi("Liberty or Collectivization +0");
else
- logi(`${get_track_name(node.a.t)} cannot move ${node.a.v}`);
+ logi(`${get_track_name(track)} +0`);
resolve_active_and_proceed();
},
};
diff --git a/rules.ts b/rules.ts
index 4e21b3c..b6c4e2b 100644
--- a/rules.ts
+++ b/rules.ts
@@ -1802,10 +1802,13 @@ states.move_track = {
},
skip() {
const node = get_active_node();
- if (node.a.v >= 0)
- logi(`${get_track_name(node.a.t)} cannot move +${node.a.v}`);
+ const track = node.a.t
+ if (track === GOVERNMENT)
+ logi(`Government +0`)
+ else if (track === LIBERTY_OR_COLLECTIVIZATION)
+ logi("Liberty or Collectivization +0")
else
- logi(`${get_track_name(node.a.t)} cannot move ${node.a.v}`);
+ logi(`${get_track_name(track)} +0`)
resolve_active_and_proceed();
},
};