diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-11 07:38:50 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-11 07:38:50 +0200 |
commit | aa51dea4577178f02a5374b3ad823039744a6d0a (patch) | |
tree | a09ff0bd3aeb09ca354a701ea27db2aef3d5844e /rules.js | |
parent | e80931401bb39f54bd1cf8a9faf2f7fe102d608a (diff) | |
download | algeria-aa51dea4577178f02a5374b3ad823039744a6d0a.tar.gz |
style logging
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -1150,10 +1150,11 @@ function setup_scenario(scenario_name) { let scenario = SCENARIOS[scenario_name] Object.assign(game, scenario) - game.fln_ap = roll_nd6(2) - log(`FLN PSL=${game.fln_psl} AP=${game.fln_ap}`) - log(`Government PSL=${game.gov_psl}`) + log(`FLN PSL=${game.fln_psl}`) + game.fln_ap = roll_nd6(2) + log(`FLN AP=${game.fln_ap}`) + log(`Gov. PSL=${game.gov_psl}`) let deployment = SCENARIO_DEPLOYMENT[scenario_name] setup_units(deployment.fln) @@ -1445,11 +1446,9 @@ function goto_morocco_tunisia_independence() { // Raise both FLN and Government PSL by 2d6; let fln_roll = roll_nd6(2) - log(`Raised FLN PSL by ${fln_roll}`) raise_fln_psl(fln_roll) let gov_roll = roll_d6(2) - log(`Raised Government PSL by ${gov_roll}`) raise_fln_psl(gov_roll) // FLN player may now Build/Convert units in these two countries as if a Front were there @@ -1493,7 +1492,6 @@ function goto_amnesty() { function goto_jean_paul_sartre() { log_h3("Jean-Paul Sartre writes article condemning the war.") // Reduce Government PSL by 1 PSP. - log(`Reduced Government PSL by 1`) lower_gov_psl(1) end_random_event() } @@ -1787,7 +1785,7 @@ function give_fln_ap() { // If an area is Terrorized, he gets 1 fewer AP than he normally would. if (is_area_terrorized(loc)) control_ap -= 1 if (control_ap > 0) { - log(`>${areas[loc].name}`) + log(`${areas[loc].name}`) raise_fln_ap(control_ap) } }) @@ -3451,7 +3449,7 @@ function determine_control() { set_area_fln_control(loc) return } else if (gov_pts[loc] >= 2 * fln_pts[loc]) { - log(`>Government Control`) + log(`>Gov. Control`) set_area_gov_control(loc) return } @@ -3470,7 +3468,7 @@ function determine_control() { log(`>FLN Control`) set_area_fln_control(loc) } else if (gov_claim && !fln_claim) { - log(`>Government Control`) + log(`>Gov. Control`) set_area_gov_control(loc) } else { log(`>Contested`) @@ -3605,7 +3603,7 @@ function unit_redeployment() { } function coup_attempt() { - log_h3("> Coup attempt") + log_h3("Coup attempt") let coup = roll_nd6(2) if (coup === 2) { @@ -3712,7 +3710,7 @@ function final_psl_adjustment() { gov_control += 1 } }) - log(`Area control FLN=${fln_control} Government=${gov_control}`) + log(`Area control FLN=${fln_control} Gov.=${gov_control}`) let control_adjust = Math.floor(Math.abs(fln_control - gov_control) / 2) if (control_adjust > 0) { if (fln_control > gov_control) { |