diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-12-10 21:58:16 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-12-10 21:58:16 +0000 |
commit | 97656ab8c2b6a97f2616afa468bc002f1b85af40 (patch) | |
tree | 9d44f5fc1933bc399631cf328f1737af0c9da624 /play.js | |
parent | c41b9834c835555c8a595ae88af630da2e357537 (diff) | |
download | 1989-dawn-of-freedom-97656ab8c2b6a97f2616afa468bc002f1b85af40.tar.gz |
TST results in boxes
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -874,6 +874,16 @@ const ICONS = { '£CU': '<span class="icon com_nc"></span>', '£DC': '<span class="icon dem_c"></span>', '£DU': '<span class="icon dem_nc"></span>', + '.dT5': '<span class="number d_tst">5</span>', + '.dT6': '<span class="number d_tst">6</span>', + '.dT7': '<span class="number d_tst">7</span>', + '.dT8': '<span class="number d_tst">8</span>', + '.dT9': '<span class="number d_tst">9</span>', + '.dT10': '<span class="number d_tst">10</span>', + '.cT5': '<span class="number c_tst">5</span>', + '.cT6': '<span class="number c_tst">6</span>', + '.cT7': '<span class="number c_tst">7</span>', + '.cT8': '<span class="number c_tst">8</span>' } const die = { @@ -910,6 +920,8 @@ function on_log(text, ix) { text = text.replace(/%(\d+)/g, sub_space_name) text = text.replace(/D[1-6]/g, sub_die) text = text.replace(/£[CD][CU]\b/g, sub_icon) + text = text.replace(/\.cT(\d+)/g, sub_icon) + text = text.replace(/\.dT(\d+)/g, sub_icon) text = text.replace(/.to/g, sub_arrow) if (text.match(/^\.h1/)) { |