aboutsummaryrefslogtreecommitdiff
path: root/src/analyzers
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-05-11 22:42:55 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-05-11 22:42:55 +0200
commit4ba2419acb9165bafe44277a55555ad144fb6fc9 (patch)
treee96a754411d19cca3c62b6a762904308698a0e1a /src/analyzers
parent05ebbdbc69d9aae6edbf27bf9c89bc4511d01467 (diff)
downloadevtclib-4ba2419acb9165bafe44277a55555ad144fb6fc9.tar.gz
evtclib-4ba2419acb9165bafe44277a55555ad144fb6fc9.tar.bz2
evtclib-4ba2419acb9165bafe44277a55555ad144fb6fc9.zip
add Ankka CM detection
Diffstat (limited to 'src/analyzers')
-rw-r--r--src/analyzers/strikes.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/analyzers/strikes.rs b/src/analyzers/strikes.rs
index bc994e4..02c2217 100644
--- a/src/analyzers/strikes.rs
+++ b/src/analyzers/strikes.rs
@@ -135,6 +135,8 @@ impl<'log> Ankka<'log> {
pub const DURATION_CUTOFF: i32 = i32::MAX;
/// The expected number of times that Ankka needs to phase before we consider it a success.
pub const EXPECTED_PHASE_COUNT: usize = 3;
+ /// Cutoff for when the fight is considered CM.
+ pub const ANKKA_CM_HEALTH: u64 = 50_000_000;
/// Create a new [`Ankka`] analyzer for the given log.
///
@@ -151,8 +153,7 @@ impl<'log> Analyzer for Ankka<'log> {
}
fn is_cm(&self) -> bool {
- // EoD strike CMs are not implemented yet as of 2022-03-31
- false
+ helpers::boss_health(self.log).unwrap_or_default() > Self::ANKKA_CM_HEALTH
}
fn outcome(&self) -> Option<Outcome> {