summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 3fc16d0..645d7b7 100644
--- a/rules.js
+++ b/rules.js
@@ -956,7 +956,10 @@ states.change_bonus = {
game.bonuses[data_1.TEAMWORK_BONUS] === data_1.ON &&
game.bonuses[data_1.MORALE_BONUS] === data_1.ON) ||
(args.v === data_1.OFF && game.bonuses[args.t] === data_1.OFF)) {
- view.prompt = `${bonus_names[args.t]} is already ${args.v === data_1.OFF ? 'off' : 'on'}.`;
+ if (args.t === 'any')
+ view.prompt = `Both bonuses are already ${args.v === data_1.OFF ? 'off' : 'on'}.`;
+ else
+ view.prompt = `${bonus_names[args.t]} is already ${args.v === data_1.OFF ? 'off' : 'on'}.`;
gen_action('skip');
}
else if (args.t === data_1.ANY && args.v === data_1.ON) {
@@ -982,7 +985,7 @@ states.change_bonus = {
},
skip() {
const args = get_active_node_args();
- logi(`${bonus_names[args.t]} ${args.v === data_1.OFF ? 'off' : 'on'}`);
+ logi(`Bonus already ${args.v === data_1.OFF ? 'off' : 'on'}`);
resolve_active_and_proceed();
},
};
@@ -1483,6 +1486,11 @@ states.move_track = {
resolve_active_and_proceed();
},
skip() {
+ const node = get_active_node();
+ if (node.a.v >= 0)
+ logi(`${get_track_name(node.a.t)} cannot move +${node.a.v}`);
+ else
+ logi(`${get_track_name(node.a.t)} cannot move ${node.a.v}`);
resolve_active_and_proceed();
},
};