about summary refs log tree commit diff
path: root/src/messages.toml
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-07-19T15·54-0400
committerGriffin Smith <root@gws.fyi>2019-07-19T15·54-0400
commite2d13bd76b9af9cc2734cdcb9df605afa95cca31 (patch)
tree8a720b216dd6481fcda491ffcb082d989e2d15c6 /src/messages.toml
parentbc93999cf37a65d48f25e30795c85a0aef97efac (diff)
Add templates for messages
Implement a template syntax with a nom parser, and a formatter to render
templates to strings.
Diffstat (limited to 'src/messages.toml')
-rw-r--r--src/messages.toml9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/messages.toml b/src/messages.toml
index a6b795d97ec7..d3e0e1de8a23 100644
--- a/src/messages.toml
+++ b/src/messages.toml
@@ -2,5 +2,10 @@
 welcome = "Welcome to Xanthous! It's dangerous out there, why not stay inside?"
 
 [combat]
-attack = "You attack the {{creature_name}}."
-killed = "You killed the {{creature_name}}."
+attack = "You attack the {{creature.name}}."
+killed = [
+    "You've killed the {{creature.name}}.",
+    "The {{creature.name}} dies.",
+    "The {{creature.name}} kicks it.",
+    "The {{creature.name}} beefs it."
+    ]