summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-27 14:38:28 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-27 14:38:28 +0200
commit7a4fb3e5f09275f7a4fb517177ec243eee2bff5d (patch)
treedf6a2611f34bf2899704be26370bb4f006767aae
parent818660d6867f536e7479fca200c7b4084e1b7fcc (diff)
downloadalgeria-7a4fb3e5f09275f7a4fb517177ec243eee2bff5d.tar.gz
harass logging
-rw-r--r--rules.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 5282afe..8d816ae 100644
--- a/rules.js
+++ b/rules.js
@@ -3569,11 +3569,8 @@ states.fln_harass = {
roll() {
let list = game.selected
game.selected = []
- let first_unit = list[0]
- let loc = unit_loc(first_unit)
clear_undo()
- log_h3(`Harass in A${loc}`)
game.combat = {
fln_units: [],
gov_units: [],
@@ -3598,7 +3595,12 @@ function goto_combat() {
let loc = unit_loc(game.combat.fln_units[0])
- log_h3(`Combat in A${loc}`)
+ if (game.combat.harass) {
+ log_h3(`Harass in A${loc}`)
+ } else {
+ log_h3(`Combat in A${loc}`)
+ }
+
// Result is the number of 'hits' on enemy units.
let fln_firepower = 0