mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Queueable buffs now work with buffs without using a timer, tests too
This commit is contained in:
@ -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,
|
||||
))
|
||||
)
|
||||
});
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user