diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-16 19:16:49 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-16 19:16:49 +0200 |
commit | 1a9a0c2b638cbe508f9741659f0a250f6941a98b (patch) | |
tree | 1f3fc2975dd04bec1e298528a43ebaa1b1064047 /rules.js | |
parent | b39fcb2eb6bad3de3dca415936ed6e021f2e463c (diff) | |
download | plantagenet-1a9a0c2b638cbe508f9741659f0a250f6941a98b.tar.gz |
Use event_data property for Warwick's Propaganda.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -8038,6 +8038,7 @@ exports.setup = function (seed, scenario, options) { what: NOTHING, which: NOTHING, count: 0, + event_data: 0, supply: 0, march: 0, @@ -9908,15 +9909,15 @@ states.french_troops = { // === EVENT: WARWICKS PROPAGANDA === function add_propaganda_target(loc) { - set_add(game.propaganda, loc) + set_add(game.event_data, loc) } function remove_propaganda_target(loc) { - set_delete(game.propaganda, loc) + set_delete(game.event_data, loc) } function is_propaganda_target(loc) { - return set_has(game.propaganda, loc) + return set_has(game.event_data, loc) } function goto_warwicks_propaganda() { @@ -9929,7 +9930,7 @@ function goto_warwicks_propaganda() { if (can_play) { game.state = "warwicks_propaganda" - game.propaganda = [] + game.event_data = [] game.where = NOWHERE game.count = 0 } else { @@ -10007,7 +10008,7 @@ states.warwicks_propaganda_yorkist_choice = { } function end_warwicks_propaganda() { - delete game.propaganda + game.event_data = 0 game.where = NOWHERE game.count = 0 set_active_enemy() |