diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-07-23 17:23:03 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-07-23 17:23:03 +0200 |
commit | d290abac857fd88008afcde1d76fc70fe33ca605 (patch) | |
tree | f21e73fb2f4eeb3662725b5286720ef6b99a4e3c | |
parent | dcf1b948b953fb17db16eafcdd30f0a25301171f (diff) | |
download | evtclib-d290abac857fd88008afcde1d76fc70fe33ca605.tar.gz evtclib-d290abac857fd88008afcde1d76fc70fe33ca605.tar.bz2 evtclib-d290abac857fd88008afcde1d76fc70fe33ca605.zip |
implement Analyzer::outcome for wing 7
-rw-r--r-- | src/analyzers/raids/w7.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/analyzers/raids/w7.rs b/src/analyzers/raids/w7.rs index a8319a3..54073a3 100644 --- a/src/analyzers/raids/w7.rs +++ b/src/analyzers/raids/w7.rs @@ -1,6 +1,6 @@ //! Boss fight analyzers for Wing 6 (Mythwright Gambit) use crate::{ - analyzers::{helpers, Analyzer}, + analyzers::{helpers, Analyzer, Outcome}, Log, }; @@ -30,6 +30,10 @@ impl<'log> Analyzer for CardinalAdina<'log> { .map(|h| h >= ADINA_CM_HEALTH) .unwrap_or(false) } + + fn outcome(&self) -> Option<Outcome> { + Outcome::from_bool(helpers::boss_is_dead(self.log)) + } } pub const SABIR_CM_HEALTH: u64 = 32_400_000; @@ -58,6 +62,10 @@ impl<'log> Analyzer for CardinalSabir<'log> { .map(|h| h >= SABIR_CM_HEALTH) .unwrap_or(false) } + + fn outcome(&self) -> Option<Outcome> { + Outcome::from_bool(helpers::boss_is_dead(self.log)) + } } pub const QADIMP_CM_HEALTH: u64 = 51_000_000; @@ -83,4 +91,8 @@ impl<'log> Analyzer for QadimThePeerless<'log> { .map(|h| h >= QADIMP_CM_HEALTH) .unwrap_or(false) } + + fn outcome(&self) -> Option<Outcome> { + Outcome::from_bool(helpers::boss_is_dead(self.log)) + } } |