aboutsummaryrefslogtreecommitdiff
path: root/src/gamedata.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-04-01 13:39:41 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-04-01 13:39:41 +0200
commit65cfa7b4f73fa16d356969aaef1428b5e5ebd116 (patch)
tree4a57607560f7e32370ec471d0ea6e29413589318 /src/gamedata.rs
parent92867533ffd5fdf44a7f6fe6f0b4b919bf533228 (diff)
parent15c29b2435c48117b0e70a80ebbfbe37937af7cb (diff)
downloadevtclib-65cfa7b4f73fa16d356969aaef1428b5e5ebd116.tar.gz
evtclib-65cfa7b4f73fa16d356969aaef1428b5e5ebd116.tar.bz2
evtclib-65cfa7b4f73fa16d356969aaef1428b5e5ebd116.zip
Merge branch 'eod-strikes'
Diffstat (limited to 'src/gamedata.rs')
-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),
}
}