summaryrefslogtreecommitdiff
path: root/content/encyclopediae
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
parent0d382ea19f8f964c35761f6a3ff80bc9bfc25375 (diff)
better json parsing using serde_json::value::from_value
Diffstat (limited to 'content/encyclopediae')
-rw-r--r--content/encyclopediae/default_encyclopedia.json19
-rw-r--r--content/encyclopediae/npcs.json19
2 files changed, 19 insertions, 19 deletions
diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json
index 118b9cd..18cf967 100644
--- a/content/encyclopediae/default_encyclopedia.json
+++ b/content/encyclopediae/default_encyclopedia.json
@@ -90,25 +90,6 @@
["Interactable", {"action": ["interaction", ["say", "Good morning there, World"]]}]
]
},
- "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"]]
- }]]]}]
- ]
- },
"quarry": {
"sprite": "quarry",
"height": 2,
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"]]
+ }]]]}]
+ ]
}
}
}