From e8088a736a48cfb650df7f7a8f69e3e91922ca57 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 13 Apr 2020 15:13:36 +0200 Subject: added if conditions in assemblages --- content/encyclopediae/default_encyclopedia.json | 4 ++-- content/maps/room.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json index 68acc02..ac25482 100644 --- a/content/encyclopediae/default_encyclopedia.json +++ b/content/encyclopediae/default_encyclopedia.json @@ -195,9 +195,9 @@ "components": [ ["Timer", { "delay": ["arg", "delay"], - "spread": 0.9, + "spread": 0.1, "trigger": "spawn", - "target_time": 0 + "target_time": ["if", [["arg", "initial_spawn"], 0, -1]] }], ["Spawner", { "template": ["arg", "template"], diff --git a/content/maps/room.json b/content/maps/room.json index 41663fc..ec4533f 100644 --- a/content/maps/room.json +++ b/content/maps/room.json @@ -44,7 +44,7 @@ "1": {"type": "portal", "kwargs": {"destination": "smallview"}}, "^": ["grass", "spiketrap"], "d": ["grass", {"type": "spawner", "kwargs": {"template": {"type": "dummy"}, "delay": 100}}], - "r": ["grass", {"type": "spawner", "kwargs": {"template": {"type": "rat"}, "amount": 10, "clan": "rats", "delay": 20}}], + "r": ["grass", {"type": "spawner", "kwargs": {"template": {"type": "rat"}, "amount": 3, "clan": "rats", "delay": 200, "initial_spawn": false}}], "V": ["grass", "radishplant"], "/": ["grass", "sword"], "D": ["ground", "closeddoor"], -- cgit