diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-09-23 15:40:52 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-09-23 15:41:53 +0200 |
commit | 14b6a38e61b2e7b6d3d21a350283b3ec60a757ea (patch) | |
tree | 82fbd90bfe224ecdd8e806147006ba63550d05b5 /src/analyzers | |
parent | 39972d54be41bfc7b8b7f38b1f5a4d60e2453da5 (diff) | |
download | evtclib-14b6a38e61b2e7b6d3d21a350283b3ec60a757ea.tar.gz evtclib-14b6a38e61b2e7b6d3d21a350283b3ec60a757ea.tar.bz2 evtclib-14b6a38e61b2e7b6d3d21a350283b3ec60a757ea.zip |
re-introduce Boss
This is now the enum that contains the IDs of the single bosses, like
Nikare and Kenut. This means we can do away with the NIKARE_ID and such.
The enum is not publicly re-exported, as we re-export Encounter (which
is more of a replacement of the old Boss).
Special casing still remains (mostly in lib.rs), but we should be able
to do away with this now with a more general Encounter::bosses and
Boss::encounter methods.
Diffstat (limited to 'src/analyzers')
-rw-r--r-- | src/analyzers/raids/w6.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/analyzers/raids/w6.rs b/src/analyzers/raids/w6.rs index 11fd02e..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, }; @@ -100,9 +100,9 @@ impl<'log> Analyzer for TwinLargos<'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; } } |