From 412cb464afa250cd22d1c66cab1f3837ed327c8a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 28 Apr 2024 18:44:53 +0200 Subject: l'universelle aragne - fix inverted check --- rules.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rules.ts b/rules.ts index 42f4244..bd05d28 100644 --- a/rules.ts +++ b/rules.ts @@ -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" -- cgit v1.2.3