effects from dead entities are now removed from queue without running
This commit is contained in:
parent
66f5a8d826
commit
71f69e8fe4
2 changed files with 15 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ pub fn bloodstain(ecs: &mut World, target: usize) {
|
|||
}
|
||||
|
||||
pub fn entity_death(ecs: &mut World, effect: &EffectSpawner, target: Entity) {
|
||||
super::DEAD_ENTITIES.lock().unwrap().push_back(target);
|
||||
let mut xp_gain = 0;
|
||||
let mut pools = ecs.write_storage::<Pools>();
|
||||
let attributes = ecs.read_storage::<Attributes>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue