summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-28 18:44:53 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-28 18:51:43 +0200
commit412cb464afa250cd22d1c66cab1f3837ed327c8a (patch)
tree20750b3b82dacbd41182dbce47a837e1150c5bbb /rules.ts
parent4b525018355589dd783abc9ed8c4f771c08eec4f (diff)
downloadplantagenet-412cb464afa250cd22d1c66cab1f3837ed327c8a.tar.gz
l'universelle aragne - fix inverted check
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts11
1 files 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"