aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-12-11 22:07:12 +0100
committerDaniel Schadt <kingdread@gmx.de>2020-12-11 22:07:12 +0100
commit047934e76e02c99014a6b9bbb523a0cfe0a733af (patch)
tree15fb30e8f0ec5a55f5bdacc8eb8b794201de1e38
parent7bf28dc7b3df4d8663c97bedadbfb09f48e9db39 (diff)
downloadevtclib-047934e76e02c99014a6b9bbb523a0cfe0a733af.tar.gz
evtclib-047934e76e02c99014a6b9bbb523a0cfe0a733af.tar.bz2
evtclib-047934e76e02c99014a6b9bbb523a0cfe0a733af.zip
add buff stack id to BuffApplication event
It turns out that arcDPS gives each boon stack an ID which is also re-used in the BuffRemoval or StackReset events.
-rw-r--r--src/event.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs
index 7cc5010..51d6699 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -115,6 +115,7 @@ pub enum EventKind {
buff_id: u32,
duration: i32,
overstack: u32,
+ stack_id: u32,
},
/// Buff removed.
@@ -509,6 +510,7 @@ fn check_damage(raw_event: &raw::CbtEvent) -> Result<EventKind, FromRawEventErro
buff_id: raw_event.skillid,
duration: raw_event.value,
overstack: raw_event.overstack_value,
+ stack_id: raw_event.padding_end,
})
} else if raw_event.buff == 1 && raw_event.buff_dmg == 0 && raw_event.value == 0 {
Ok(EventKind::InvulnTick {