diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-29 13:38:06 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-29 13:38:06 +0100 |
commit | c0b6808daab53262fff02fee5d1d5fcebf5f22d4 (patch) | |
tree | 977727493aa8432b2396e4648bbaf1e75852ba3e /rules.js | |
parent | c27ac795e947346dc6b1ef71236102508280ce60 (diff) | |
download | 1989-dawn-of-freedom-c0b6808daab53262fff02fee5d1d5fcebf5f22d4.tar.gz |
Add margins to headers in log automatically (without needing log_br).
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -3800,7 +3800,6 @@ function new_turn() { if (game.summary.length > 0) { log('No longer in effect:') pop_summary_i() - log_br() } delete game.stasi_card delete game.stand_fast @@ -4135,19 +4134,14 @@ function logi(msg) { } function log_h1(msg) { - log_br() log(".h1 " + msg) - log_br() } function log_h2(msg) { - log_br() log(".h2 " + msg) - log_br() } function log_h3(msg) { - log_br() log(".h3 " + msg) } @@ -4162,12 +4156,10 @@ function log_msg_gap(msg) { } function log_side() { - log_br() if (game.active === DEM) - log(".h2d " + game.active) + log(".d") else - log(".h2c " + game.active) - log_br() + log(".c") } // ============= SUMMARY FUNCTIONS ============= @@ -4220,7 +4212,6 @@ function pop_summary_i() { function do_log_summary() { if (game.summary.length > 0) { pop_summary() - log_br() } } |