diff options
| author | troido <troido@protonmail.com> | 2020-03-03 14:04:43 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-03-03 14:04:43 +0100 |
| commit | 196d30decf79d60d3e7441f9f50220312a019a3b (patch) | |
| tree | 3fc6a382ee0955cb4fba9bb328d93b43e419da84 | |
| parent | b2157791dfcaab18ec7f8ebb958341fe325cf419 (diff) | |
made items on ground into spawners
| -rw-r--r-- | content/maps/room.json | 6 | ||||
| -rw-r--r-- | src/componentwrapper.rs | 2 | ||||
| -rw-r--r-- | src/world.rs | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/content/maps/room.json b/content/maps/room.json index e652cd7..4af1532 100644 --- a/content/maps/room.json +++ b/content/maps/room.json @@ -38,12 +38,12 @@ "T": ["grass", "tree"], "f": ["grass", "fence"], "X": "rock", - "*": ["grass", "pebble"], - "o": ["grass", "stone"], + "*": ["grass", {"type": "spawner", "kwargs": {"template": {"type": "pebble"}, "delay": 600}}], + "o": ["grass", {"type": "spawner", "kwargs": {"template": {"type": "stone"}, "delay": 600}}], "%": {"type": "portal", "kwargs": {"destination": "broom", "dest_pos": "northentry"}}, "^": ["grass", "spiketrap"], "d": ["grass", "dummy"], - "r": ["grass", {"type": "spawner", "kwargs": {"template": {"type": "rat", "save": false}, "amount": 3, "clan": "rats", "delay": 200}}], + "r": ["grass", {"type": "spawner", "kwargs": {"template": {"type": "rat"}, "amount": 3, "clan": "rats", "delay": 200}}], " ": [] } } diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index a03ab17..88597bf 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -138,7 +138,7 @@ components!( clan } }, - template, + template: template.unsaved(), last_spawn: Timestamp(0) } }; diff --git a/src/world.rs b/src/world.rs index 87dafb8..f428cc1 100644 --- a/src/world.rs +++ b/src/world.rs @@ -38,7 +38,7 @@ impl <'a, 'b>World<'a, 'b> { encyclopedia, players: HashMap::new(), rooms: hashmap!(purgatory::purgatory_id() => purgatory::create_purgatory()), - time: Timestamp(0) + time: Timestamp(1000000) } } |
