diff options
| author | troido <troido@protonmail.com> | 2020-04-01 13:27:42 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-01 13:27:42 +0200 |
| commit | 1ceb4c6f23287bca98f0c3946d5678dce5d0457c (patch) | |
| tree | c354643711d0a6066b149206a29d2182b281f50f /content | |
| parent | 69ac6eb6153b016c39bbe55c85f15e3478032182 (diff) | |
better time handling for growing plants
Diffstat (limited to 'content')
| -rw-r--r-- | content/encyclopediae/default_encyclopedia.json | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json index ea1684b..e682fe2 100644 --- a/content/encyclopediae/default_encyclopedia.json +++ b/content/encyclopediae/default_encyclopedia.json @@ -91,7 +91,7 @@ "height": 0.4 }, "player": { - "arguments": [["name", "string", null]], + "arguments": [["name", "string"]], "components": [ ["Visible", { "sprite": ["string", "player"], @@ -106,7 +106,7 @@ ] }, "portal": { - "arguments": [["destination", "string", null], ["dest_pos", "string", ""]], + "arguments": [["destination", "string"], ["dest_pos", "string", ""]], "components": [ ["RoomExit", {"destination": ["arg", "destination"], "dest_pos": ["arg", "dest_pos"]}], "Floor" @@ -160,7 +160,7 @@ ] }, "spawner": { - "arguments": [["template", "template", null], ["amount", "int", 1], ["delay", "int", 0], ["clan", "string", ""], ["initial_spawn", "bool", true]], + "arguments": [["template", "template"], ["amount", "int", 1], ["delay", "int", 0], ["clan", "string", ""], ["initial_spawn", "bool", true]], "components": [ ["Spawner", { "template": ["arg", "template"], @@ -172,7 +172,7 @@ ] }, "letter": { - "arguments": [["char", "string", null]], + "arguments": [["char", "string"]], "components": [["Visible", { "name": ["concat", [["string", "letter_"], ["arg", "char"]]], "sprite": ["concat", [["string", "emptyletter-"], ["arg", "char"]]], @@ -196,15 +196,33 @@ "item": ["build", "plantedradishseed"] }, "plantedradishseed": { + "arguments": [["target_time", "sometime", null]], "sprite": "seed", "height": 0.05, "name": "seed", "components": [ ["Grow", { + "delay": ["int", 100], + "target_time": ["arg", "target_time"], + "into": ["template", "radishseedling"] + }] + ] + }, + "radishseedling": { + "arguments": [["target_time", "sometime", null]], + "sprite": "seedling", + "height": 0.05, + "name": "seedling", + "components": [ + ["Grow", { "delay": ["int", 200], + "target_time": ["arg", "target_time"], "into": ["template", "radishplant"] }] - ] + ], + "extract": { + "target_time": ["Grow", "target_time"] + } }, "radishes": { "sprite": "food", |
