From 86cdc6c567d0ca429d69bebbb2fb02f1d3754c8d Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 23 Feb 2020 23:44:50 +0100 Subject: players can now attack other objects --- src/defaultencyclopedia.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/defaultencyclopedia.rs') diff --git a/src/defaultencyclopedia.rs b/src/defaultencyclopedia.rs index ae2e4eb..a9bf5b9 100644 --- a/src/defaultencyclopedia.rs +++ b/src/defaultencyclopedia.rs @@ -131,6 +131,12 @@ pub fn default_encyclopedia() -> Encyclopedia { "components": [["Trap", {"damage": ["int", 8]}]], "sprite": "spikes", "height": 0.8 + }, + "dummy": { + "arguments": [["health", "int", 20]], + "sprite": "dummy", + "height": 1, + "components": [["Health", {"health": ["arg", "health"], "maxhealth": ["int", 20]}]] } })).unwrap() } -- cgit