summaryrefslogtreecommitdiff
path: root/content/encyclopediae/npcs.json
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-05-19 15:06:45 +0200
committertroido <troido@protonmail.com>2020-05-19 15:06:45 +0200
commitdac89209fdde17e2e4fdf89768e814945a8cea62 (patch)
tree8713ca53fd85b1c88a9263197fa7306766747e19 /content/encyclopediae/npcs.json
parent0d382ea19f8f964c35761f6a3ff80bc9bfc25375 (diff)
better json parsing using serde_json::value::from_value
Diffstat (limited to 'content/encyclopediae/npcs.json')
-rw-r--r--content/encyclopediae/npcs.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/content/encyclopediae/npcs.json b/content/encyclopediae/npcs.json
index cef6f0b..bfaa6fe 100644
--- a/content/encyclopediae/npcs.json
+++ b/content/encyclopediae/npcs.json
@@ -73,6 +73,25 @@
["Movable", {"cooldown": 3}],
["Faction", {"faction": "neutral"}]
]
+ },
+ "dude": {
+ "sprite": "human",
+ "height": 1.5,
+ "flags": ["Occupied"],
+ "components": [
+ ["Interactable", {"action": ["interaction", ["reply", "did you say '{}'?"]]}]
+ ]
+ },
+ "trader": {
+ "sprite": "human",
+ "height": 1.5,
+ "components": [
+ ["Interactable", {"action": ["interaction", ["exchange", ["buy ", {
+ "pebble": [["radish", "radish"], ["pebble"]],
+ "radishseed": [["radish"], ["radishseed", "radishseed"]],
+ "carrotseed": [["radish"], ["carrotseed"]]
+ }]]]}]
+ ]
}
}
}