diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-18 14:57:22 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | 2251bab21f032ef8b3f3a1c7d2d977b163da6161 (patch) | |
tree | d44d039af1de41fc854f23612b217deb11951aae /rules.js | |
parent | b57213961673547fa53b1148fe9537727359948d (diff) | |
download | nevsky-2251bab21f032ef8b3f3a1c7d2d977b163da6161.tar.gz |
"Bad" and "Select" action colors for Calendar service markers.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -8936,9 +8936,9 @@ states.battle_service = { prompt() { view.prompt = "Battle: Roll to shift service of each retreated lord." for (let lord of game.battle.retreated) - gen_action_service(lord) + gen_action_service_bad(lord) }, - service(lord) { + service_bad(lord) { let die = roll_die() log(`L${lord} rolled ${die}.`) if (die <= 2) @@ -9091,7 +9091,7 @@ states.feed = { view.prompt = "You must shift the Service of any unfed lords." for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) { if (is_lord_unfed(lord)) { - gen_action_service(lord) + gen_action_service_bad(lord) done = false } } @@ -9120,7 +9120,7 @@ states.feed = { game.who = lord game.state = "feed_lord_shared" }, - service(lord) { + service_bad(lord) { push_undo() log(`Unfed L${lord}.`) add_lord_service(lord, -1) @@ -9356,14 +9356,14 @@ states.disband = { for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) { if (is_lord_on_map(lord) && get_lord_service(lord) <= current_turn()) { gen_action_lord(lord) - gen_action_service(lord) + gen_action_service_bad(lord) done = false } } if (done) view.actions.end_disband = 1 }, - service(lord) { + service_bad(lord) { this.lord(lord) }, lord(lord) { @@ -10035,6 +10035,10 @@ function gen_action_service(service) { gen_action("service", service) } +function gen_action_service_bad(service) { + gen_action("service_bad", service) +} + function gen_action_vassal(vassal) { gen_action("vassal", vassal) } |