From 022e439a6677b9865b7a3287dbd197d86266f8ef Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 4 Mar 2020 19:47:00 +0100 Subject: implemented growth --- content/encyclopediae/default_encyclopedia.json | 37 ++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'content/encyclopediae/default_encyclopedia.json') diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json index 56a0998..a94f388 100644 --- a/content/encyclopediae/default_encyclopedia.json +++ b/content/encyclopediae/default_encyclopedia.json @@ -78,7 +78,7 @@ ["Item", { "ent": ["template", "pebble"], "name": ["string", "pebble"], - "action": ["action", ["eat", 1]] + "action": ["action", ["none", null]] }] ], "sprite": "pebble", @@ -86,7 +86,11 @@ }, "stone": { "components": [ - ["Item", {"ent": ["template", "stone"], "name": ["string", "stone"], "action": ["action", ["build", "builtwall"]]}] + ["Item", { + "ent": ["template", "stone"], + "name": ["string", "stone"], + "action": ["action", ["build", "builtwall"]] + }] ], "sprite": "stone", "height": 0.4 @@ -192,11 +196,36 @@ "radishseed": { "sprite": "seed", "height": 0.2, - "name": "radishseed" + "name": "radishseed", + "components": [ + ["Item", { + "ent": ["template", "radishseed"], + "name": ["string", "radishseed"], + "action": ["action", ["build", "plantedradishseed"]] + }] + ] + }, + "plantedradishseed": { + "sprite": "seed", + "height": 0.05, + "name": "seed", + "components": [ + ["Grow", { + "delay": ["int", 200], + "into": ["template", "radishplant"] + }] + ] }, "radishes": { "sprite": "food", "height": 0.3, - "name": "radishes" + "name": "radishes", + "components": [ + ["Item", { + "ent": ["template", "radishes"], + "name": ["string", "radishes"], + "action": ["action", ["eat", 1]] + }] + ] } } -- cgit