summaryrefslogtreecommitdiff
path: root/content/encyclopediae
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-16 10:54:23 +0200
committertroido <troido@protonmail.com>2020-04-16 10:54:23 +0200
commit905c6b649521296bba609db5b5c9a39008d34325 (patch)
tree8d253de507b3663399e23819bf8b4a222e7b64a5 /content/encyclopediae
parent43bde225ebbadd0b917ca87f3164a50455a2b588 (diff)
add visit whitelist to homeportal, save and dedup its data even though it is loaded from template
Diffstat (limited to 'content/encyclopediae')
-rw-r--r--content/encyclopediae/default_encyclopedia.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json
index d3d0507..065db97 100644
--- a/content/encyclopediae/default_encyclopedia.json
+++ b/content/encyclopediae/default_encyclopedia.json
@@ -81,9 +81,13 @@
"flags": ["Floor"]
},
"homeportal": {
+ "arguments": [["dedup_id", "string"], ["allowed", "list", []], ["dedup_priority", "int", 0]],
+ "extract": {"allowed": ["Whitelist", "allowed"], "dedup_priority": ["Dedup", "priority"]},
"components": [
["RoomExit", {"destination": "_home+{player}", "dest_pos": ""}],
- ["Interactable", {"action": ["interaction", ["visit", "_home+{player}"]]}]
+ ["Interactable", {"action": ["interaction", ["visit", "_home+{player}"]]}],
+ ["Whitelist", {"allowed": ["arg", "allowed"]}],
+ ["Dedup", {"id": ["arg", "dedup_id"], "priority": ["arg", "dedup_priority"]}]
],
"flags": ["Floor"]
},