summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-09-18 13:26:44 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commita097af7407fb112b53b1884729267a212c744655 (patch)
treedccb7a91065681ca00345d80c713f9981b5ba538 /rules.js
parent64365b3fd75665e8696d872aaf14bd672ad6901a (diff)
downloadplantagenet-a097af7407fb112b53b1884729267a212c744655.tar.gz
this levy/campaign events init
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js94
1 files changed, 85 insertions, 9 deletions
diff --git a/rules.js b/rules.js
index 46fc0fe..2d63613 100644
--- a/rules.js
+++ b/rules.js
@@ -1667,6 +1667,8 @@ function setup_Ib() {
game.rebel = YORK
game.crown = LANCASTER
game.active = YORK
+ game.victory_check = 45
+ game.influence = 0
muster_lord(LORD_NORFOLK, LOC_LONDON)
muster_lord(LORD_WARWICK_Y, LOC_LONDON)
muster_lord(LORD_MARCH, LOC_LUDLOW)
@@ -1710,6 +1712,8 @@ function setup_Ic() {
game.rebel = YORK
game.crown = LANCASTER
game.active = YORK
+ game.victory_check = 45
+ game.influence = 6
muster_lord(LORD_WARWICK_Y, LOC_LONDON)
muster_lord(LORD_MARCH, LOC_LONDON)
muster_lord(LORD_SOMERSET_1, LOC_BAMBURGH)
@@ -1889,14 +1893,91 @@ function is_escape_ship_in_play(){
}
-function goto_immediate_event(c) {
+function goto_immediate_event(c) {
switch (c) {
// This Levy / Campaign
- /* case EVENT_TEUTONIC_FAMINE:
- case EVENT_RUSSIAN_FAMINE:
+ // No immediate effect
+ case EVENT_LANCASTER_BE_SENT_FOR:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_SEAMANSHIP:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_FORCED_MARCHES:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_RISING_WAGES:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_NEW_ACT_OF_PARLIAMENT:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_MY_CROWN_IS_IN_MY_HEART:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_PARLIAMENT_VOTES:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_FRENCH_FLEET:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_BUCKINGHAMS_PLOT:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_MARGARET_BEAUFORT:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_LANCASTER_THE_EARL_OF_RICHMOND:
+ set_add(game.events, c)
+ return end_immediate_event()
+
+ case EVENT_YORK_JACK_CADE:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_SEAMANSHIP:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_YORKISTS_BLOCK_PARLIAMENT:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_EXILE_PACT:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_RICHARD_OF_YORK:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_THE_COMMONS:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_SUCCESSION:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_LOYALTY_AND_TRUST:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_OWAIN_GLYNDWR:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_GLOUCESTER_AS_HEIR:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_DORSET:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_THE_KINGS_NAME:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_EDWARD_V:
set_add(game.events, c)
- // No immediate effects
return end_immediate_event()
+ case EVENT_YORK_AN_HONEST_TALE_SPEEDS_BEST:
+ set_add(game.events, c)
+ return end_immediate_event()
+ case EVENT_YORK_PRIVY_COUNCIL:
+ set_add(game.events, c)
+ return end_immediate_event()
+
+ // Immediate effect
case EVENT_RUSSIAN_DEATH_OF_THE_POPE:
set_add(game.events, c)
return goto_russian_event_death_of_the_pope()
@@ -1907,11 +1988,6 @@ function goto_immediate_event(c) {
set_add(game.events, c)
return goto_russian_event_dietrich()
- // Add to capabilities...
- case EVENT_TEUTONIC_POPE_GREGORY:
- deploy_global_capability(c)
- return goto_teutonic_event_pope_gregory()*/
-
// Discard - Immediate Events
case EVENT_LANCASTER_SCOTS:
return goto_lancaster_event_scots()