diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-20 06:19:03 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-20 06:19:03 +0200 |
commit | 79a8e7ff2b1ca89bd681cad6f938740c100ad0af (patch) | |
tree | 68f07a8ec7c31066ae95bfbfc2b2174129983dd4 /rules.js | |
parent | c567bc30138af48a5c1d82b9936e829be9c44fed (diff) | |
download | algeria-79a8e7ff2b1ca89bd681cad6f938740c100ad0af.tar.gz |
coup logging prefix
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -4514,33 +4514,34 @@ function roll_coup_table(drm=0) { let coup = roll_nd6(2, drm) let delta_psp = 0 + const prefix="Outcome: " if (coup === 2) { - log("Coup: Wild success") //: +3d6 PSP, mobilize 2d6 PSP of units for free + log(`${prefix}Wild success`) //: +3d6 PSP, mobilize 2d6 PSP of units for free delta_psp = roll_nd6(3, drm) raise_gov_psl(delta_psp) return 'wild_success' } else if (coup <= 4) { - log("Big success") //: +2d6 PSP, mobilize 1d6 PSP of units for free + log(`${prefix}Big success`) //: +2d6 PSP, mobilize 1d6 PSP of units for free delta_psp = roll_nd6(2, drm) raise_gov_psl(delta_psp) return 'big_success' } else if (coup <= 6) { - log("Coup: Success") //: +1d6 PSP + log(`${prefix}Success`) //: +1d6 PSP delta_psp = roll_d6(drm) raise_gov_psl(delta_psp) return 'success' } else if (coup === 7) { - log("Coup: Fizzle") //: -1d6 PSP + log(`${prefix}Fizzle`) //: -1d6 PSP delta_psp = roll_d6(drm) lower_gov_psl(delta_psp) return 'fizzle' } else if (coup <= 9) { - log("Coup: Failure") //: -2d6 PSP, remove 1 elite unit from the game + log(`${prefix}Failure`) //: -2d6 PSP, remove 1 elite unit from the game delta_psp = roll_nd6(2, drm) lower_gov_psl(delta_psp) return 'failure' } else { - log("Coup: Abject failure") //: -3d6 PSP, remove 1d6 elite units from the game + log(`${prefix}Abject failure`) //: -3d6 PSP, remove 1d6 elite units from the game delta_psp = roll_nd6(3, drm) lower_gov_psl(delta_psp) return 'abject_failure' |