diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-01-17 00:47:53 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | c33df0735147bf6e22f3ddea89006b02513a4a3b (patch) | |
tree | c10c4a1eed57775af220cd02bd4fd00fa4b146c5 | |
parent | d0625abc0f411cff4db21056e16c753e1970e941 (diff) | |
download | wilderness-war-c33df0735147bf6e22f3ddea89006b02513a4a3b.tar.gz |
Intrigues against Shirley.
-rw-r--r-- | rules.js | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -364,6 +364,7 @@ const JOHNSON = find_leader("Johnson"); const MONTCALM = find_leader("Montcalm"); const LEVIS = find_leader("LĂ©vis"); const BOUGAINVILLE = find_leader("Bougainville"); +const SHIRLEY = find_leader("Shirley"); const HALIFAX = find_space("Halifax"); const LOUISBOURG = find_space("Louisbourg"); @@ -5014,7 +5015,27 @@ events.royal_americans = TODO; events.acadians_expelled = TODO; events.william_pitt = TODO; events.diplomatic_revolution = TODO; -events.intrigues_against_shirley = TODO; + +events.intrigues_against_shirley = { + can_play() { + return game.tracks.vp >= 1 && is_piece_on_map(SHIRLEY) && is_piece_unbesieged(SHIRLEY); + }, + play() { + game.state = 'intrigues_against_shirley'; + } +} + +states.intrigues_against_shirley = { + prompt() { + view.prompt = "Eliminate Shirley."; + gen_action_piece(SHIRLEY); + }, + piece(p) { + isolate_piece_from_force(SHIRLEY); + eliminate_piece(SHIRLEY); + end_action_phase(); + }, +} // SETUP |