diff options
| author | troido <troido@protonmail.com> | 2020-04-05 23:22:36 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-05 23:22:36 +0200 |
| commit | ff457701ff56072914acb8a7160cd02c2a07095a (patch) | |
| tree | a9f7c9130ce274887924ee140824dc15af061b73 /content/encyclopediae | |
| parent | 48c24ec8b011d081550dc78329cbe61de67b30e9 (diff) | |
trading now works
Diffstat (limited to 'content/encyclopediae')
| -rw-r--r-- | content/encyclopediae/default_encyclopedia.json | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json index 1c48a6b..b7364d5 100644 --- a/content/encyclopediae/default_encyclopedia.json +++ b/content/encyclopediae/default_encyclopedia.json @@ -227,13 +227,23 @@ "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"]] + }]]]}] + ] } }, "items": { "pebble": {}, "stone": {"action": ["build", ["builtwall", ["Floor"], ["Blocking"]]]}, - "radishseed": {"action": ["build", ["plantedradishseed", ["Floor", "Soil"], ["Occupied", "Blocking"]]]}, - "radish": {"action": ["eat", 3]}, + "radishseed": {"sprite": "seed", "action": ["build", ["plantedradishseed", ["Floor", "Soil"], ["Occupied", "Blocking"]]]}, + "radish": {"sprite": "food", "action": ["eat", 3]}, "sword": {"action": ["equip", { "slot": "hand", "stats": {"strength": 50} |
