M2 Staff Final Touch

This commit is contained in:
gGmMsS123 2021-04-16 00:34:24 +03:00
parent 0d956610ec
commit e33961e1fa
4 changed files with 5 additions and 3 deletions

View File

@ -48,6 +48,7 @@ opt-level = 2
[profile.dev.package."veloren-server-cli"]
opt-level = 2
[profile.dev.package."veloren-voxygen"]
incremental = true
opt-level = 2
[profile.dev.package."veloren-world"]
opt-level = 2

View File

@ -25,7 +25,7 @@
"buff.title.cursed": "Cursed",
"buff.desc.cursed": "You are cursed.",
"buff.title.burn": "On Fire",
"buff.desc.burn": "Burn, baby, burn",
"buff.desc.burn": "You are burning alive",
// Buffs stats
"buff.stat.health": "Restores {str_total} Health",
"buff.stat.increase_max_stamina": "Raises Maximum Stamina by {strength}",

View File

@ -14,7 +14,7 @@ use std::{cmp::Ordering, time::Duration};
/// This is used to determine what effects a buff will have
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Serialize, Deserialize, PartialOrd, Ord)]
pub enum BuffKind {
/// Lower a creature's max health over time
/// Does damage to a creature over time
Burning,
/// Restores health/time for some period
Regeneration,
@ -247,6 +247,7 @@ impl Buff {
}],
data.duration,
),
};
Buff {
kind,

View File

@ -3447,7 +3447,7 @@ pub fn get_buff_image(buff: BuffKind, imgs: &Imgs) -> conrod_core::image::Id {
// Debuffs
BuffKind::Bleeding { .. } => imgs.debuff_bleed_0,
BuffKind::Cursed { .. } => imgs.debuff_skull_0,
BuffKind::Burning { .. } => imgs.debuff_burning_0,
BuffKind::Burning { .. } => imgs.debuff_burning_0,
}
}