summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-16 19:16:49 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-16 19:16:49 +0200
commit1a9a0c2b638cbe508f9741659f0a250f6941a98b (patch)
tree1f3fc2975dd04bec1e298528a43ebaa1b1064047 /rules.js
parentb39fcb2eb6bad3de3dca415936ed6e021f2e463c (diff)
downloadplantagenet-1a9a0c2b638cbe508f9741659f0a250f6941a98b.tar.gz
Use event_data property for Warwick's Propaganda.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 01a6bca..acabccb 100644
--- a/rules.js
+++ b/rules.js
@@ -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()