summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/encyclopediae/default_encyclopedia.json14
-rw-r--r--content/maps/room.json3
2 files changed, 14 insertions, 3 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}
diff --git a/content/maps/room.json b/content/maps/room.json
index ca50eff..5d69b72 100644
--- a/content/maps/room.json
+++ b/content/maps/room.json
@@ -15,7 +15,7 @@
"X,,,,,.,,,,,,,,,,,,~~~,,,,,,,,,,,,,,,,,,,X",
"X,^,,,.,,,,,,,,,,,,~~~,,,,,T,,,,######,,,X",
"X,^,,,.,,,,,,,,,,,,bbb,,,,,,,,,,#++++#,,,X",
- "X,,,,,.............bbb..........D++++#,,,X",
+ "X,,,t..............bbb..........D++++#,,,X",
"X,**,,.,,,,,,,,,,,,bbb,,,,,,,,,,#++++#,,,X",
"X,*,*,.,u,,,V,,V,,,~~~,,,T,,,T,,#++++#,,,X",
"X,,*,,.,,,,,,,,,,,,~~~,,,,,,,,,,######,,,X",
@@ -50,6 +50,7 @@
"D": ["ground", "closeddoor"],
"s": ["ground", "sign"],
"u": ["ground", "dude"],
+ "t": ["ground", "trader"],
" ": []
}
}