diff options
| author | Daniel Schadt <kingdread@gmx.de> | 2020-09-28 13:28:29 +0200 | 
|---|---|---|
| committer | Daniel Schadt <kingdread@gmx.de> | 2020-09-28 13:28:29 +0200 | 
| commit | ba10db6e8120fe9315bf0dec99e9dee188b8332c (patch) | |
| tree | 9d3a2d831aa0b9ecc20cc21010f2d782fba55d2e /src/analyzers/raids | |
| parent | 3b79ad8fa9b4a8c9c535b417129e3f70769074e0 (diff) | |
| parent | 132bc6e276bf996b8a67990ad32042b8023d8786 (diff) | |
| download | evtclib-ba10db6e8120fe9315bf0dec99e9dee188b8332c.tar.gz evtclib-ba10db6e8120fe9315bf0dec99e9dee188b8332c.tar.bz2 evtclib-ba10db6e8120fe9315bf0dec99e9dee188b8332c.zip  | |
Merge branch 'boss-encounter-split' into master
Diffstat (limited to 'src/analyzers/raids')
| -rw-r--r-- | src/analyzers/raids/mod.rs | 2 | ||||
| -rw-r--r-- | src/analyzers/raids/w6.rs | 16 | 
2 files changed, 9 insertions, 9 deletions
diff --git a/src/analyzers/raids/mod.rs b/src/analyzers/raids/mod.rs index bb3824b..7b636a7 100644 --- a/src/analyzers/raids/mod.rs +++ b/src/analyzers/raids/mod.rs @@ -19,7 +19,7 @@ mod w5;  pub use w5::{Dhuum, SoullessHorror};  mod w6; -pub use w6::{ConjuredAmalgamate, LargosTwins, Qadim}; +pub use w6::{ConjuredAmalgamate, Qadim, TwinLargos};  mod w7;  pub use w7::{CardinalAdina, CardinalSabir, QadimThePeerless}; diff --git a/src/analyzers/raids/w6.rs b/src/analyzers/raids/w6.rs index 8701a63..97a2094 100644 --- a/src/analyzers/raids/w6.rs +++ b/src/analyzers/raids/w6.rs @@ -1,7 +1,7 @@  //! Boss fight analyzers for Wing 6 (Mythwright Gambit)  use crate::{      analyzers::{helpers, Analyzer, Outcome}, -    gamedata::{KENUT_ID, NIKARE_ID}, +    gamedata::Boss,      EventKind, Log,  }; @@ -59,21 +59,21 @@ pub const LARGOS_CM_HEALTH: u64 = 19_200_000;  ///  /// The CM is detected by the boss's health, which is higher in the challenge mote.  #[derive(Debug, Clone, Copy)] -pub struct LargosTwins<'log> { +pub struct TwinLargos<'log> {      log: &'log Log,  } -impl<'log> LargosTwins<'log> { -    /// Create a new [`LargosTwins`] analyzer for the given log. +impl<'log> TwinLargos<'log> { +    /// Create a new [`TwinLargos`] analyzer for the given log.      ///      /// **Do not** use this method unless you know what you are doing. Instead, rely on      /// [`Log::analyzer`]!      pub fn new(log: &'log Log) -> Self { -        LargosTwins { log } +        TwinLargos { log }      }  } -impl<'log> Analyzer for LargosTwins<'log> { +impl<'log> Analyzer for TwinLargos<'log> {      fn log(&self) -> &Log {          self.log      } @@ -100,9 +100,9 @@ impl<'log> Analyzer for LargosTwins<'log> {                      continue;                  }; -                if agent.id() == NIKARE_ID { +                if agent.id() == Boss::Nikare as u16 {                      nikare_dead = true; -                } else if agent.id() == KENUT_ID { +                } else if agent.id() == Boss::Kenut as u16 {                      kenut_dead = true;                  }              }  | 
