diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-04 19:01:26 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-04 19:01:26 +0200 |
commit | c51715dc0f485be2df5f1db1d6fea1e6ec011cee (patch) | |
tree | 874afff39645779687cacbaa348cc2404479fc80 /rules.js | |
parent | 699cf83c7d33e9884f84d6a64680587de9c92c0a (diff) | |
download | algeria-c51715dc0f485be2df5f1db1d6fea1e6ec011cee.tar.gz |
fix undos and show who didit
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -2007,13 +2007,15 @@ states.fln_propaganda = { let unit = pop_selected() let loc = unit_loc(unit) + log(`>by ${units[unit].name} in ${areas[loc].name}`) + let drm = 0 for_each_enemy_unit_in_loc_box(loc, PTL, _u => { drm += 1 }) if (is_area_terrorized(loc)) drm -= 1 - const [result, effect] = roll_mst(drm) + let [result, effect] = roll_mst(drm) if (is_area_urban(loc)) { log('x2 in Urban area') result *= 2 @@ -2068,6 +2070,7 @@ states.fln_distribute_mission_result = { gen_action("reset") }, add_fln_psl() { + push_undo() log(">FLN PSL +1") game.fln_psl += 1 game.distribute_mst -= 1 @@ -2075,6 +2078,7 @@ states.fln_distribute_mission_result = { end_fln_mission() }, remove_gov_psl() { + push_undo() log(">Government PSL -1") game.gov_psl -= 1 game.distribute_mst -= 1 @@ -2084,6 +2088,7 @@ states.fln_distribute_mission_result = { end_fln_mission() }, remove_fln_psl() { + push_undo() log(">FLN PSL -1") game.fln_psl -= 1 game.distribute_mst += 1 @@ -2093,6 +2098,7 @@ states.fln_distribute_mission_result = { end_fln_mission() }, add_gov_psl() { + push_undo() log(">Government PSL +1") game.gov_psl += 1 game.distribute_mst += 1 |