IntervalSpawningSystem{} (% chance for monster creation each turn)
This commit is contained in:
parent
0169a88091
commit
5276bb6e34
4 changed files with 70 additions and 6 deletions
|
|
@ -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 } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue