diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-28 18:44:53 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-28 18:51:43 +0200 |
commit | 412cb464afa250cd22d1c66cab1f3837ed327c8a (patch) | |
tree | 20750b3b82dacbd41182dbce47a837e1150c5bbb | |
parent | 4b525018355589dd783abc9ed8c4f771c08eec4f (diff) | |
download | plantagenet-412cb464afa250cd22d1c66cab1f3837ed327c8a.tar.gz |
l'universelle aragne - fix inverted check
-rw-r--r-- | rules.ts | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -11239,8 +11239,10 @@ states.aragne_2 = { gen_action_vassal(v) done = false } - if (done) + if (done) { + view.prompt = "L'Universelle Aragne: All done." view.actions.done = 1 + } }, vassal(v) { push_undo() @@ -11255,16 +11257,15 @@ states.aragne_2 = { states.aragne_3 = { inactive: "L'Universelle Aragne", prompt() { - view.prompt = `L'Universelle Aragne: ${vassal_name[game.vassal]}.` - view.vassal = game.vassal let lord = get_vassal_lord(game.vassal) + view.prompt = `L'Universelle Aragne: ${lord_name[lord]} with ${vassal_name[game.vassal]}.` + view.vassal = game.vassal prompt_influence_check(lord, 0, vassal_influence(game.vassal)) }, check(bonus) { let lord = get_vassal_lord(game.vassal) - if (roll_influence_check(lord, bonus, 0, vassal_influence(game.vassal))) { + if (!roll_influence_check(lord, bonus, 0, vassal_influence(game.vassal))) disband_vassal(game.vassal) - } set_delete(game.event_aragne, game.vassal) game.vassal = NOVASSAL game.state = "aragne_2" |