Added wrapper type to durations related to buffs and auras.

This commit is contained in:
Sam
2023-03-11 16:44:57 -05:00
parent 663db06844
commit 4c79936c07
19 changed files with 71 additions and 51 deletions

View File

@ -23,7 +23,7 @@ use common::{
effect::Effect,
link::{Link, LinkHandle},
mounting::Mounting,
resources::{Time, TimeOfDay},
resources::{Secs, Time, TimeOfDay},
slowjob::SlowJobPool,
uid::{Uid, UidAllocator},
LoadoutBuilder, ViewDistances,
@ -439,7 +439,7 @@ impl StateExt for State {
.with(Auras::new(vec![Aura::new(
AuraKind::Buff {
kind: BuffKind::Invulnerability,
data: BuffData::new(1.0, Some(1.0), None),
data: BuffData::new(1.0, Some(Secs(1.0)), None),
category: BuffCategory::Natural,
source: BuffSource::World,
},