diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-09-15 15:06:55 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-09-15 15:06:55 +0200 |
commit | 24df15dbbb4967a96c6b3be4376f64be6126b686 (patch) | |
tree | c15522966b83f27decd7f2f4b7337f4acdc1f330 /src/lib.rs | |
parent | 440eac287eaad072e1cb1261dfe2cf1bcb9922b0 (diff) | |
download | evtclib-24df15dbbb4967a96c6b3be4376f64be6126b686.tar.gz evtclib-24df15dbbb4967a96c6b3be4376f64be6126b686.tar.bz2 evtclib-24df15dbbb4967a96c6b3be4376f64be6126b686.zip |
fix logs with Claw of the Fallen ID
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -762,6 +762,11 @@ impl Log { vec![self.boss_id, gamedata::XERA_PHASE2_ID] } else if self.boss_id == Boss::LargosTwins as u16 { vec![gamedata::NIKARE_ID, gamedata::KENUT_ID] + } else if self.encounter() == Some(Boss::VoiceOfTheFallen) { + vec![ + gamedata::VOICE_OF_THE_FALLEN_ID, + gamedata::CLAW_OF_THE_FALLEN_ID, + ] } else { vec![self.boss_id] }; @@ -789,6 +794,12 @@ impl Log { /// if we know about it in [`Boss`][Boss]. #[inline] pub fn encounter(&self) -> Option<Boss> { + // Sometimes, encounters of the strike mission "Voice of the Fallen and Claw of the Fallen" + // are saved with the ID of the Claw and sometimes with the Voice. Therefore, we need to + // unify those cases. + if self.boss_id == gamedata::CLAW_OF_THE_FALLEN_ID { + return Some(Boss::VoiceOfTheFallen); + } Boss::from_u16(self.boss_id) } |