effects from dead entities are now removed from queue without running

This commit is contained in:
Llywelwyn 2023-08-17 10:15:54 +01:00
parent 66f5a8d826
commit 71f69e8fe4
2 changed files with 15 additions and 0 deletions

View file

@ -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>();