From e677ce0392368d7d7f78d0a78ad93128df27a205 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 31 Mar 2022 20:44:08 +0200 Subject: EoD strikes: also recognize other Dragonvoid IDs --- src/gamedata.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gamedata.rs') 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), } } -- cgit v1.2.3