summaryrefslogtreecommitdiff
path: root/content/encyclopediae
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-05-21 15:26:12 +0200
committertroido <troido@protonmail.com>2020-06-05 22:27:54 +0200
commit1899b27b791734a6b72e28cfb1420536c6035ee4 (patch)
treecbb908f05c1daa1c9fb996d474a34f0b6f4aba76 /content/encyclopediae
parentf47034bdf86e7ddc831ecb8f50689b9b07a0f6ca (diff)
added exchanger as seperate component/system; refactored other interactions; parameter parsing returns result instead of option
Diffstat (limited to 'content/encyclopediae')
-rw-r--r--content/encyclopediae/npcs.json13
1 files changed, 8 insertions, 5 deletions
diff --git a/content/encyclopediae/npcs.json b/content/encyclopediae/npcs.json
index 4b8fd39..78dda29 100644
--- a/content/encyclopediae/npcs.json
+++ b/content/encyclopediae/npcs.json
@@ -86,11 +86,14 @@
"sprite": "human",
"height": 1.5,
"components": [
- ["Interactable", {"action": ["interaction", ["exchange", ["buy ", {
- "pebble": [["radish", "radish"], ["pebble"]],
- "radishseed": [["radish"], ["radishseed", "radishseed"]],
- "carrotseed": [["radish"], ["carrotseed"]]
- }]]]}]
+ ["Exchanger", {
+ "prefix": "buy",
+ "exchanges": ["list", [
+ ["list", ["pebble", ["list", ["radish", "radish"]], ["list", ["pebble"]]]],
+ ["list", ["radishseed", ["list", ["radish"]], ["list", ["radishseed", "radishseed"]]]],
+ ["list", ["carrotseed", ["list", ["radish"]], ["list", ["carrotseed"]]]]
+ ]]
+ }]
]
}
}