aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-03-31 20:44:08 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-03-31 20:44:08 +0200
commite677ce0392368d7d7f78d0a78ad93128df27a205 (patch)
treee2d56de50e1633c4f45a6b7f4a5038d0bbf9f941
parentaf780553850426b0f5e43ae08ac493b1c064153d (diff)
downloadevtclib-e677ce0392368d7d7f78d0a78ad93128df27a205.tar.gz
evtclib-e677ce0392368d7d7f78d0a78ad93128df27a205.tar.bz2
evtclib-e677ce0392368d7d7f78d0a78ad93128df27a205.zip
EoD strikes: also recognize other Dragonvoid IDs
-rw-r--r--src/gamedata.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gamedata.rs b/src/gamedata.rs
index c607147..f880ba6 100644
--- a/src/gamedata.rs
+++ b/src/gamedata.rs
@@ -48,6 +48,8 @@ impl FromStr for GameMode {
}
}
+static DRAGONVOID_IDS: &[u16] = &[Encounter::Dragonvoid as u16, 0xA9E0, 0x5F37];
+
/// Enum containing all encounters with their IDs.
///
/// An encounter is a fight or event for which a log can exist. An encounter consists of no, one or
@@ -229,7 +231,7 @@ impl Encounter {
match id {
_ if id == Encounter::TwistedCastle as u16 => Some(Encounter::TwistedCastle),
_ if id == Encounter::RiverOfSouls as u16 => Some(Encounter::RiverOfSouls),
- _ if id == Encounter::Dragonvoid as u16 => Some(Encounter::Dragonvoid),
+ _ if DRAGONVOID_IDS.contains(&id) => Some(Encounter::Dragonvoid),
_ => Boss::from_u16(id).map(Boss::encounter),
}
}