diff options
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1224,7 +1224,10 @@ states.change_bonus = { game.bonuses[MORALE_BONUS] === ON) || (args.v === OFF && game.bonuses[args.t] === OFF) ) { - view.prompt = `${bonus_names[args.t]} is already ${args.v === OFF ? 'off' : 'on'}.`; + if (args.t === 'any') + view.prompt = `Both bonuses are already ${args.v === OFF ? 'off' : 'on'}.`; + else + view.prompt = `${bonus_names[args.t]} is already ${args.v === OFF ? 'off' : 'on'}.`; gen_action('skip'); } else if (args.t === ANY && args.v === ON) { @@ -1249,7 +1252,7 @@ states.change_bonus = { }, skip() { const args = get_active_node_args(); - logi(`${bonus_names[args.t]} ${args.v === OFF ? 'off' : 'on'}`); + logi(`Bonus already ${args.v === OFF ? 'off' : 'on'}`); resolve_active_and_proceed(); }, }; @@ -1798,6 +1801,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(); }, }; |