summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/encyclopediae/default_encyclopedia.json7
-rw-r--r--content/maps/smallview.json5
2 files changed, 8 insertions, 4 deletions
diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json
index ac25482..d3d0507 100644
--- a/content/encyclopediae/default_encyclopedia.json
+++ b/content/encyclopediae/default_encyclopedia.json
@@ -80,6 +80,13 @@
],
"flags": ["Floor"]
},
+ "homeportal": {
+ "components": [
+ ["RoomExit", {"destination": "_home+{player}", "dest_pos": ""}],
+ ["Interactable", {"action": ["interaction", ["visit", "_home+{player}"]]}]
+ ],
+ "flags": ["Floor"]
+ },
"img": {
"arguments": [["sprite", "string", ""], ["height", "float", 1.0]],
"components": [
diff --git a/content/maps/smallview.json b/content/maps/smallview.json
index bcfd1f4..e9699a6 100644
--- a/content/maps/smallview.json
+++ b/content/maps/smallview.json
@@ -70,10 +70,7 @@
"type": "portal",
"kwargs": {"destination": "town", "destpos": "gate"}
}, "floor"],
- "3": [{
- "type": "portal",
- "kwargs": {"destination": "_home+{player}"}
- }, "floor"],
+ "3": ["homeportal", "floor"],
"4": [{
"type": "portal",
"kwargs": {"destination": "room"}