mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Made comments more descriptive
This commit is contained in:
parent
45dd36be07
commit
64a809ee5b
@ -77,7 +77,7 @@ pub enum BuffCategory {
|
||||
Magical,
|
||||
Divine,
|
||||
PersistOnDeath,
|
||||
FromAura(bool), // bool used to check freshness of buff being apllied from aura
|
||||
FromAura(bool), // bool used to check if buff recently set by aura
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
|
@ -42,7 +42,7 @@ impl<'a> System<'a> for Sys {
|
||||
auras.set_event_emission(false);
|
||||
|
||||
// Iterate through all buffs, on any buffs that are from an aura, sets the check
|
||||
// for whether the buff is fresh to false
|
||||
// for whether the buff recently set by aura to false
|
||||
for (_, mut buffs_comp) in (&read_data.entities, &mut buffs).join() {
|
||||
for (_, buff) in buffs_comp.buffs.iter_mut() {
|
||||
if let Some(cat_id) = buff
|
||||
@ -141,7 +141,7 @@ impl<'a> System<'a> for Sys {
|
||||
}
|
||||
// Finds all buffs on target that are from an aura, are of the
|
||||
// same buff kind, and are of at most the same strength
|
||||
// For any such buffs, sets freshness to fresh
|
||||
// For any such buffs, marks it as recently applied
|
||||
for (_, buff) in
|
||||
target_buffs.buffs.iter_mut().filter(|(_, buff)| {
|
||||
buff.cat_ids.iter().any(|cat_id| {
|
||||
|
@ -180,7 +180,7 @@ impl<'a> System<'a> for Sys {
|
||||
}
|
||||
|
||||
fn tick_buff(id: u64, buff: &mut Buff, dt: f32, mut expire_buff: impl FnMut(u64)) {
|
||||
// If a buff is freshly applied from an aura, do not tick duration
|
||||
// If a buff is recently applied from an aura, do not tick duration
|
||||
if buff
|
||||
.cat_ids
|
||||
.iter()
|
||||
|
Loading…
Reference in New Issue
Block a user