diff options
Diffstat (limited to 'src/categories.rs')
-rw-r--r-- | src/categories.rs | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/src/categories.rs b/src/categories.rs index 17b90b7..cf4c3de 100644 --- a/src/categories.rs +++ b/src/categories.rs @@ -1,4 +1,4 @@ -use evtclib::{Boss, Log}; +use evtclib::{Encounter, Log}; pub trait Categorizable { fn category(&self) -> &'static str; @@ -8,29 +8,36 @@ impl Categorizable for Log { fn category(&self) -> &'static str { if let Some(encounter) = self.encounter() { match encounter { - Boss::ValeGuardian | Boss::Gorseval | Boss::Sabetha => "Wing 1 (Spirit Vale)", - Boss::Slothasor | Boss::Matthias => "Wing 2 (Salvation Pass)", - Boss::KeepConstruct | Boss::Xera => "Wing 3 (Stronghold of the Faithful)", - Boss::Cairn | Boss::MursaatOverseer | Boss::Samarog | Boss::Deimos => { - "Wing 4 (Bastion of the Penitent)" + Encounter::ValeGuardian | Encounter::Gorseval | Encounter::Sabetha => { + "Wing 1 (Spirit Vale)" } - Boss::SoullessHorror | Boss::Dhuum => "Wing 5 (Hall of Chains)", - Boss::ConjuredAmalgamate | Boss::LargosTwins | Boss::Qadim => { + Encounter::Slothasor | Encounter::Matthias => "Wing 2 (Salvation Pass)", + Encounter::KeepConstruct | Encounter::Xera => "Wing 3 (Stronghold of the Faithful)", + Encounter::Cairn + | Encounter::MursaatOverseer + | Encounter::Samarog + | Encounter::Deimos => "Wing 4 (Bastion of the Penitent)", + Encounter::SoullessHorror | Encounter::VoiceInTheVoid => "Wing 5 (Hall of Chains)", + Encounter::ConjuredAmalgamate | Encounter::TwinLargos | Encounter::Qadim => { "Wing 6 (Mythwright Gambit)" } - Boss::CardinalAdina | Boss::CardinalSabir | Boss::QadimThePeerless => { - "Wing 7 (Key of Ahdashim)" + Encounter::CardinalAdina + | Encounter::CardinalSabir + | Encounter::QadimThePeerless => "Wing 7 (Key of Ahdashim)", + + Encounter::Ai => "100 CM (Sunqua Peak)", + Encounter::Skorvald | Encounter::Artsariiv | Encounter::Arkk => { + "99 CM (Shattered Observatory)" } + Encounter::MAMA | Encounter::Siax | Encounter::Ensolyss => "98 CM (Nightmare)", - Boss::Ai => "100 CM (Sunqua Peak)", - Boss::Skorvald | Boss::Artsariiv | Boss::Arkk => "99 CM (Shattered Observatory)", - Boss::MAMA | Boss::Siax | Boss::Ensolyss => "98 CM (Nightmare)", + Encounter::IcebroodConstruct + | Encounter::SuperKodanBrothers + | Encounter::FraenirOfJormag + | Encounter::Boneskinner + | Encounter::WhisperOfJormag => "Strike Mission", - Boss::IcebroodConstruct - | Boss::VoiceOfTheFallen - | Boss::FraenirOfJormag - | Boss::Boneskinner - | Boss::WhisperOfJormag => "Strike Mission", + _ => "Unknown", } } else { "Unknown" |