IntervalSpawningSystem{} (% chance for monster creation each turn)

This commit is contained in:
Llywelwyn 2023-08-01 07:46:09 +01:00
parent 0169a88091
commit 5276bb6e34
4 changed files with 70 additions and 6 deletions

View file

@ -315,6 +315,7 @@ impl GameState for State {
while new_runstate == RunState::Ticking {
self.run_systems();
self.ecs.maintain();
try_spawn_interval(&mut self.ecs);
match *self.ecs.fetch::<RunState>() {
RunState::AwaitingInput => new_runstate = RunState::AwaitingInput,
RunState::MagicMapReveal { row, cursed } => {