mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added ensnared debuff icon.
This commit is contained in:
parent
47cc040301
commit
aac24ad601
BIN
assets/voxygen/element/de_buffs/debuff_ensnared_0.png
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/de_buffs/debuff_ensnared_0.png
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -65,6 +65,7 @@ impl<'a> System<'a> for Sys {
|
||||
physics_state.on_ground.and_then(|b| b.get_sprite()),
|
||||
Some(SpriteKind::EnsnaringVines)
|
||||
) {
|
||||
// If on ensnaring vines, apply ensnared debuff
|
||||
server_emitter.emit(ServerEvent::Buff {
|
||||
entity,
|
||||
buff_change: BuffChange::Add(Buff::new(
|
||||
@ -82,6 +83,7 @@ impl<'a> System<'a> for Sys {
|
||||
..
|
||||
})
|
||||
) {
|
||||
// If in lava fluid, apply burning debuff
|
||||
server_emitter.emit(ServerEvent::Buff {
|
||||
entity,
|
||||
buff_change: BuffChange::Add(Buff::new(
|
||||
@ -97,13 +99,13 @@ impl<'a> System<'a> for Sys {
|
||||
kind: LiquidKind::Water,
|
||||
..
|
||||
})
|
||||
) {
|
||||
if buff_comp.kinds.contains_key(&BuffKind::Burning) {
|
||||
server_emitter.emit(ServerEvent::Buff {
|
||||
entity,
|
||||
buff_change: BuffChange::RemoveByKind(BuffKind::Burning),
|
||||
});
|
||||
}
|
||||
) && buff_comp.kinds.contains_key(&BuffKind::Burning)
|
||||
{
|
||||
// If in water fluid and currently burning, remove burning debuffs
|
||||
server_emitter.emit(ServerEvent::Buff {
|
||||
entity,
|
||||
buff_change: BuffChange::RemoveByKind(BuffKind::Burning),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -284,12 +286,7 @@ impl<'a> System<'a> for Sys {
|
||||
}
|
||||
}
|
||||
|
||||
fn tick_buff(
|
||||
id: u64,
|
||||
buff: &mut Buff,
|
||||
dt: f32,
|
||||
mut expire_buff: impl FnMut(u64),
|
||||
) {
|
||||
fn tick_buff(id: u64, buff: &mut Buff, dt: f32, mut expire_buff: impl FnMut(u64)) {
|
||||
// If a buff is recently applied from an aura, do not tick duration
|
||||
if buff
|
||||
.cat_ids
|
||||
|
@ -596,6 +596,7 @@ image_ids! {
|
||||
debuff_crippled_0: "voxygen.element.de_buffs.debuff_cripple_0",
|
||||
debuff_frozen_0: "voxygen.element.de_buffs.debuff_frozen_0",
|
||||
debuff_wet_0: "voxygen.element.de_buffs.debuff_wet_0",
|
||||
debuff_ensnared_0: "voxygen.element.de_buffs.debuff_ensnared_0",
|
||||
|
||||
// Animation Frames
|
||||
// Buff Frame
|
||||
|
@ -3822,7 +3822,7 @@ pub fn get_buff_image(buff: BuffKind, imgs: &Imgs) -> conrod_core::image::Id {
|
||||
BuffKind::Crippled { .. } => imgs.debuff_crippled_0,
|
||||
BuffKind::Frozen { .. } => imgs.debuff_frozen_0,
|
||||
BuffKind::Wet { .. } => imgs.debuff_wet_0,
|
||||
BuffKind::Ensnared { .. } => imgs.debuff_crippled_0,
|
||||
BuffKind::Ensnared { .. } => imgs.debuff_ensnared_0,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user