From 07cc6d8919193c38cc13b2567ede5a510938db18 Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 21 Feb 2020 17:49:50 +0100 Subject: players can now go to different rooms --- src/defaultencyclopedia.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/defaultencyclopedia.rs') diff --git a/src/defaultencyclopedia.rs b/src/defaultencyclopedia.rs index bbc9d21..853fbfb 100644 --- a/src/defaultencyclopedia.rs +++ b/src/defaultencyclopedia.rs @@ -96,6 +96,13 @@ pub fn default_encyclopedia() -> Encyclopedia { ["Inventory", {"capacity": ["int", 3]}], ["Health", {"health": ["int", 9], "maxhealth": ["int", 10]}] ] + }, + "portal": { + "arguments": [["destination", "string", null]], + "components": [ + ["RoomExit", {"destination": ["arg", "destination"]}], + "Floor" + ] } })).unwrap() } -- cgit