diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-29 13:30:07 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-29 13:30:07 +0100 |
commit | b3b4f4bf1ea639dc43b954ce4349b8e0ae7c7e50 (patch) | |
tree | 63c2ef21bf8aed66c6430db3eb3e5d9ac66a9f21 | |
parent | 591f5e40251aad72b02dc3a1525c3b29f4f67e78 (diff) | |
download | 1989-dawn-of-freedom-b3b4f4bf1ea639dc43b954ce4349b8e0ae7c7e50.tar.gz |
more constants
-rw-r--r-- | rules.js | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1723,7 +1723,7 @@ states.end_turn_4_5_4 = { // Check if the Communist receives VP from The Tyrant is Gone if (game.the_tyrant_is_gone && game.the_tyrant_is_gone > 0) { game.vp -= 2 - log(`Communist receives 2 VP from C97`) + log(`Communist receives 2 VP from C` + C_THE_TYRANT_IS_GONE) } game.persistent_events.push(MAGIC_NEW_YEARS_EVE_PARTY) if (game.active !== DEM) { @@ -1737,7 +1737,7 @@ states.end_turn_4_5_4 = { // Check if the Communist receives VP from The Tyrant is Gone if (game.the_tyrant_is_gone && game.the_tyrant_is_gone > 0) { game.vp -= 2 - log(`Communist receives 2 VP from C97`) + log(`Communist receives 2 VP from C`+ C_THE_TYRANT_IS_GONE) } game.state = 'final_scoring_held' } else { @@ -3755,7 +3755,7 @@ function end_round() { if (game.active !== COM) { next_player() } - log_h3('C5') + log_h3('C' + C_GENERAL_STRIKE) return } else { game.state = 'choose_card' @@ -3795,7 +3795,7 @@ function new_turn() { } if (game.prudence) { delete game.prudence - log_summary(`C${8}`) + log_summary("C" + C_PRUDENCE) } if (game.summary.length > 0) { log('No longer in effect:') @@ -3854,7 +3854,7 @@ function new_turn() { log_h2("Action Round " + game.round) log_side() if (game.persistent_events.includes(C_GENERAL_STRIKE)) { - log_h3('C5') + log_h3('C' + C_GENERAL_STRIKE) game.state = 'general_strike' } else { game.state = 'choose_card' @@ -6865,7 +6865,7 @@ states.vm_goodbye_lenin = { if (game.valid_cards.length === 0) { logi('No red events') } - log('C46 played for operations') + log("C" + C_GOODBYE_LENIN + " played for operations") game.view_opp_hand = false game.state = 'vm_goodbye_lenin_ops' }, @@ -7633,7 +7633,7 @@ states.vm_shock_therapy = { } vm_next() } else { - log('C93 is unsuccessful. Required 3 or more') + log('C' + C_SHOCK_THERAPY + ' is unsuccessful. Required 3 or more') permanently_remove(C_SHOCK_THERAPY) vm_return() } @@ -7889,12 +7889,12 @@ states.vm_the_wall_must_go = { log(`Democrat: ${game.the_wall_must_go['dem_wins']}, Communist: ${game.the_wall_must_go['com_wins']}`) } if (game.the_wall_must_go['dem_wins'] === 2) { - log('The Democrat wins C86') + log('The Democrat wins C' + C_THE_WALL_MUST_GO) finish_the_wall() return } if (game.the_wall_must_go['com_wins'] === 2) { - log('The Communist wins C86') + log('The Communist wins C' + C_THE_WALL_MUST_GO) finish_the_wall() return } |