diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-28 18:01:04 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-28 18:01:04 +0100 |
commit | 98676a4bd7731d489e660c873154a08c67688ee2 (patch) | |
tree | 1912928652f434b491004d48506afe9e201b33de | |
parent | af6f5046978e0808287a3eaeea090e02e7afa949 (diff) | |
download | land-and-freedom-98676a4bd7731d489e660c873154a08c67688ee2.tar.gz |
Fix bugs with track name skips.
-rw-r--r-- | rules.js | 9 | ||||
-rw-r--r-- | rules.ts | 9 |
2 files changed, 12 insertions, 6 deletions
@@ -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(); }, }; @@ -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(); }, }; |