From 1899b27b791734a6b72e28cfb1420536c6035ee4 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 21 May 2020 15:26:12 +0200 Subject: added exchanger as seperate component/system; refactored other interactions; parameter parsing returns result instead of option --- content/encyclopediae/npcs.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'content') 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"]]]] + ]] + }] ] } } -- cgit