diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-25 13:20:22 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-25 13:20:22 +0100 |
commit | acee7556b0c90d96f9fea9b7370f1bd707c4468f (patch) | |
tree | b964e02fbaaaee78942e3e7e4f107a34adda72b1 /src/categories.rs | |
parent | 4589a6dfd6828c1934d48c82cf30b929685b9a9e (diff) | |
download | ezau-acee7556b0c90d96f9fea9b7370f1bd707c4468f.tar.gz ezau-acee7556b0c90d96f9fea9b7370f1bd707c4468f.tar.bz2 ezau-acee7556b0c90d96f9fea9b7370f1bd707c4468f.zip |
more categories: WvW and Twisted Castle
Diffstat (limited to 'src/categories.rs')
-rw-r--r-- | src/categories.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/categories.rs b/src/categories.rs index 20d540d..ef8ab00 100644 --- a/src/categories.rs +++ b/src/categories.rs @@ -1,4 +1,4 @@ -use evtclib::{Encounter, Log}; +use evtclib::{Encounter, GameMode, Log}; pub trait Categorizable { fn category(&self) -> &'static str; @@ -6,6 +6,10 @@ pub trait Categorizable { impl Categorizable for Log { fn category(&self) -> &'static str { + if self.game_mode() == Some(GameMode::WvW) { + return "World versus World"; + } + if let Some(encounter) = self.encounter() { match encounter { Encounter::ValeGuardian | Encounter::Gorseval | Encounter::Sabetha => { @@ -14,7 +18,9 @@ impl Categorizable for Log { Encounter::Slothasor | Encounter::BanditTrio | Encounter::Matthias => { "Wing 2 (Salvation Pass)" } - Encounter::KeepConstruct | Encounter::Xera => "Wing 3 (Stronghold of the Faithful)", + Encounter::KeepConstruct | Encounter::TwistedCastle | Encounter::Xera => { + "Wing 3 (Stronghold of the Faithful)" + } Encounter::Cairn | Encounter::MursaatOverseer | Encounter::Samarog |