mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add BuffDescriptor enum
This commit is contained in:
parent
12a4c5a256
commit
5514df330b
@ -175,6 +175,21 @@ pub enum BuffKind {
|
||||
Heatstroke,
|
||||
}
|
||||
|
||||
/// Tells how buffs influence the target
|
||||
enum BuffDescriptor {
|
||||
/// Simple positive buffs, like `BuffKind::Saturation`
|
||||
SimplePositive,
|
||||
/// Simple negative buffs, like `BuffKind::Bleeding`
|
||||
SimpleNegative,
|
||||
/// Buffs that require unusual data that can't be governed just by strength
|
||||
/// and duration, like `BuffKind::Polymorhped`
|
||||
Complex,
|
||||
// For future additions, we may want to tell about non-obvious buffs,
|
||||
// like Agility.
|
||||
// Also maybe extend Complex to differentiate between Positive, Negative
|
||||
// and Neutral buffs?
|
||||
}
|
||||
|
||||
impl BuffKind {
|
||||
/// Checks if buff is buff or debuff.
|
||||
pub fn is_buff(self) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user