summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-01-20 12:37:49 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-20 12:37:49 +0100
commit6dffcd4bb237e9315b465f6504639530b32a03b5 (patch)
tree5022246fef627c13f9e3c4c5bffdd4a8d5c2b9c5 /rules.ts
parentde9e615c9cdb81e2ba09adc8f2be7ccdd48a0d92 (diff)
downloadplantagenet-6dffcd4bb237e9315b465f6504639530b32a03b5.tar.gz
fix indentationHEADmaster
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts31
1 files changed, 16 insertions, 15 deletions
diff --git a/rules.ts b/rules.ts
index 7282d7a..6d122d3 100644
--- a/rules.ts
+++ b/rules.ts
@@ -3220,12 +3220,13 @@ states.muster_lord = {
if (can_add_troops_coa(game.command, here))
view.actions.commission_of_array = 1
}
- if (!is_rising_wages() || can_pay_from_shared(game.command, 2)) {
- if (can_add_troops_sof(game.command, here))
- view.actions.soldiers_of_fortune = 1;
- if (can_add_troops_sof(game.command, here) && (can_add_troops_irishmen(game.command, here)) || can_add_troops_sof(game.command, here) && (can_add_troops_beloved_warwick(game.command, here)))
- view.actions.soldiers_of_fortune_militia = 1;
- }
+ if (!is_rising_wages() || can_pay_from_shared(game.command, 2)) {
+ if (can_add_troops_sof(game.command, here)) {
+ view.actions.soldiers_of_fortune = 1
+ if (can_add_troops_irishmen(game.command, here) || can_add_troops_beloved_warwick(game.command, here))
+ view.actions.soldiers_of_fortune_militia = 1
+ }
+ }
}
} else {
@@ -3315,15 +3316,15 @@ states.muster_lord = {
},
soldiers_of_fortune_militia() {
- push_undo();
- log("Levy Troops.");
- logcap(AOW_YORK_SOLDIERS_OF_FORTUNE);
- if (lord_has_capability(game.command, AOW_YORK_IRISHMEN))
- logcap(AOW_YORK_IRISHMEN);
- if (lord_has_capability(game.command, AOW_YORK_BELOVED_WARWICK))
- logcap(AOW_YORK_BELOVED_WARWICK);
- game.state = "soldiers_of_fortune_militia";
- },
+ push_undo()
+ log("Levy Troops.")
+ logcap(AOW_YORK_SOLDIERS_OF_FORTUNE)
+ if (lord_has_capability(game.command, AOW_YORK_IRISHMEN))
+ logcap(AOW_YORK_IRISHMEN)
+ if (lord_has_capability(game.command, AOW_YORK_BELOVED_WARWICK))
+ logcap(AOW_YORK_BELOVED_WARWICK)
+ game.state = "soldiers_of_fortune_militia"
+ },
commission_of_array() {
push_undo()