summaryrefslogtreecommitdiff
path: root/asciifarm/client/loaders.py
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2019-01-20 01:19:24 +0100
committertroido <troido@protonmail.com>2019-01-20 01:19:24 +0100
commita12b29852e16854de5d248e5ba7f8a313cf8ff9b (patch)
treefccd8b0f6b2f2624a356b7290d00c4d25beb3286 /asciifarm/client/loaders.py
parentda297170c3c1bbd01458b13a6b0a6212181650e0 (diff)
chat now has colours
Diffstat (limited to 'asciifarm/client/loaders.py')
-rw-r--r--asciifarm/client/loaders.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/asciifarm/client/loaders.py b/asciifarm/client/loaders.py
index fef4769..d3d7ed1 100644
--- a/asciifarm/client/loaders.py
+++ b/asciifarm/client/loaders.py
@@ -64,6 +64,7 @@ def loadCharmap(name):
healthfull = None
healthempty = None
alphabet = ""
+ msgcolours = {}
for template in templates:
mapping.update(template.get("mapping", {}))
@@ -73,6 +74,7 @@ def loadCharmap(name):
healthfull = template.get("healthfull", healthfull)
healthempty = template.get("healthempty", healthempty)
alphabet = template.get("alphabet", alphabet)
+ msgcolours.update(template.get("msgcolours", {}))
return {
"mapping": mapping,
"writable": writable,
@@ -80,5 +82,6 @@ def loadCharmap(name):
"charwidth": charwidth,
"healthfull": healthfull,
"healthempty": healthempty,
- "alphabet": alphabet
+ "alphabet": alphabet,
+ "msgcolours": msgcolours
}