From 97656ab8c2b6a97f2616afa468bc002f1b85af40 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 10 Dec 2024 21:58:16 +0000 Subject: TST results in boxes --- play.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'play.js') diff --git a/play.js b/play.js index a68ee3c..b74fb1f 100644 --- a/play.js +++ b/play.js @@ -874,6 +874,16 @@ const ICONS = { '£CU': '', '£DC': '', '£DU': '', + '.dT5': '5', + '.dT6': '6', + '.dT7': '7', + '.dT8': '8', + '.dT9': '9', + '.dT10': '10', + '.cT5': '5', + '.cT6': '6', + '.cT7': '7', + '.cT8': '8' } 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/)) { -- cgit v1.2.3