summaryrefslogtreecommitdiff
path: root/asciifarm/client/loaders.py
diff options
context:
space:
mode:
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
}