From d290abac857fd88008afcde1d76fc70fe33ca605 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 23 Jul 2020 17:23:03 +0200 Subject: implement Analyzer::outcome for wing 7 --- src/analyzers/raids/w7.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/analyzers/raids/w7.rs') 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::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::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::from_bool(helpers::boss_is_dead(self.log)) + } } -- cgit v1.2.3