aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-05-19 15:17:36 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-05-19 15:17:36 +0200
commit0c14e920aec0d28d0145766670bb0ac6c5d58263 (patch)
tree967cad8ddfa1ed9e22125d9613cb1a2823848935 /src
parentd995183a299305224863c4f24344acbd06b22bbd (diff)
downloadevtclib-0c14e920aec0d28d0145766670bb0ac6c5d58263.tar.gz
evtclib-0c14e920aec0d28d0145766670bb0ac6c5d58263.tar.bz2
evtclib-0c14e920aec0d28d0145766670bb0ac6c5d58263.zip
add Attribute and BuffCategory enums
Diffstat (limited to 'src')
-rw-r--r--src/raw/types.rs43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/raw/types.rs b/src/raw/types.rs
index 360ed7f..820d7a5 100644
--- a/src/raw/types.rs
+++ b/src/raw/types.rs
@@ -262,6 +262,49 @@ impl Default for Language {
}
}
+/// Buff formula attributes.
+///
+/// Variants prefixed with `Custom` are not native to the game client but rather variants added by
+/// arcdps.
+///
+/// The suffix `Inc` indicates an increase, whereas the suffix `Rec` stands for received.
+#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, FromPrimitive)]
+pub enum Attribute {
+ None,
+ Power,
+ Precision,
+ Toughness,
+ Vitality,
+ Ferocity,
+ Healing,
+ Condition,
+ Concentration,
+ Expertise,
+ CustomArmor,
+ CustomAgony,
+ CustomStatInc,
+ CustomFlatInc,
+ CustomPhysInc,
+ CustomCondInc,
+ CustomPhysRec,
+ CustomCondRec,
+ CustomAttackSpeed,
+}
+
+/// Categories for [`BuffInfo`][CbtStateChange::BuffInfo] events.
+#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, FromPrimitive)]
+pub enum BuffCategory {
+ Boon = 0,
+ Any = 1,
+ Condition = 2,
+ Food = 4,
+ Upgrade = 6,
+ Boost = 8,
+ Trait = 11,
+ Enhancement = 13,
+ Stance = 16,
+}
+
/// A combat event.
///
/// This event combines both the old structure and the new structure. Fields not