summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-05 17:03:00 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-05 17:03:00 +0200
commitc65049a0cefa5416e62c6174432378e77dcffdd0 (patch)
treeac0a4341f83120a3b25480d4e78d0f68e5e96e6e
parent8c5290a6d278ca9d56a35939b840bbcfba9ba436 (diff)
downloadplantagenet-c65049a0cefa5416e62c6174432378e77dcffdd0.tar.gz
warwick's propaganda tweaks
-rw-r--r--play.js3
-rw-r--r--rules.ts23
2 files changed, 16 insertions, 10 deletions
diff --git a/play.js b/play.js
index 1a6194d..bc75399 100644
--- a/play.js
+++ b/play.js
@@ -1509,8 +1509,7 @@ function on_update() {
update_court()
// QUESTIONS
- action_button("favour", "Favour")
- action_button("influence", "Influence")
+ action_button("remove", "Remove")
action_button("stronghold", "Stronghold")
action_button("port", "Port")
action_button("by_way", "By way")
diff --git a/rules.ts b/rules.ts
index e064be8..5f4cc0b 100644
--- a/rules.ts
+++ b/rules.ts
@@ -176,8 +176,7 @@ interface State {
// BUTTONS
// questions
- favour?(): void,
- influence?(): void,
+ remove?(): void,
stronghold?(): void,
port?(): void,
by_way?(): void,
@@ -9297,9 +9296,16 @@ function disband_influence_penalty(lord: Lord) {
}
function goto_advance_campaign() {
+ let old_vc = scenario_victory_threshold()
+
game.turn++
set_active(P1)
log_h1("Levy " + current_turn_name())
+
+ let new_vc = scenario_victory_threshold()
+ if (old_vc !== new_vc)
+ log("Victory Threshold: " + new_vc)
+
goto_levy_arts_of_war()
}
@@ -11469,7 +11475,7 @@ states.warwicks_propaganda_yorkist_choice = {
prompt() {
let done = true
if (game.where === NOWHERE) {
- view.prompt = "Warwick's Propaganda: Pay 2 influence or remove favour for each selected stronghold."
+ view.prompt = "Warwick's Propaganda: Remove favour or pay 2 influence for each selected stronghold."
for (let loc of all_locales) {
if (is_propaganda_target(loc)) {
gen_action_locale(loc)
@@ -11477,25 +11483,26 @@ states.warwicks_propaganda_yorkist_choice = {
}
}
if (done) {
+ view.prompt = "Warwick's Propaganda: All done."
view.actions.done = 1
}
} else {
- view.prompt = `Warwick's Propaganda: Pay 2 influence or remove favour for ${locale_name[game.where]}.`
- view.actions.influence = 1
- view.actions.favour = 1
+ view.prompt = `Warwick's Propaganda: Remove favour or pay 2 influence for ${locale_name[game.where]}.`
+ view.actions.pay = 1
+ view.actions.remove = 1
}
},
locale(loc) {
push_undo()
game.where = loc
},
- favour() {
+ remove() {
remove_york_favour(game.where)
remove_propaganda_target(game.where)
logi(`Removed York Favour at S${game.where}.`)
game.where = NOWHERE
},
- influence() {
+ pay() {
reduce_influence(2)
logi(`Paid 2 to keep S${game.where}`)
remove_propaganda_target(game.where)