Queueable buffs now work with buffs without using a timer, tests too

This commit is contained in:
Sam
2023-03-08 21:39:28 -05:00
parent e60080c293
commit b1b41e95f6
4 changed files with 164 additions and 28 deletions

View File

@ -227,13 +227,16 @@ impl StateExt for State {
.write_storage::<comp::Buffs>()
.get_mut(entity)
.map(|mut buffs| {
buffs.insert(comp::Buff::new(
buff.kind,
buff.data,
buff.cat_ids,
comp::BuffSource::Item,
buffs.insert(
comp::Buff::new(
buff.kind,
buff.data,
buff.cat_ids,
comp::BuffSource::Item,
*time,
),
*time,
))
)
});
},
}