Made auras no longer need to be mutably accessed every tick.

This commit is contained in:
Sam
2023-03-09 21:03:08 -05:00
parent 8a6a60d5bb
commit 663db06844
9 changed files with 64 additions and 45 deletions

View File

@ -432,6 +432,7 @@ impl StateExt for State {
aura::{Aura, AuraKind, AuraTarget, Auras},
buff::{BuffCategory, BuffData, BuffKind, BuffSource},
};
let time = self.get_time();
self.ecs_mut()
.create_entity_synced()
.with(pos)
@ -445,6 +446,7 @@ impl StateExt for State {
range.unwrap_or(100.0),
None,
AuraTarget::All,
Time(time),
)]))
}