Skip to content

Commit

Permalink
Bugfix: DLVL 16 message after Diablo death
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 7, 2024
1 parent bc4f434 commit 424d45e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3464,9 +3464,13 @@ void PlayDungMsgs()
myPlayer.Say(HeroSpeech::IMustBeGettingClose, 40);
myPlayer.pDungMsgs |= DungMsgHell;
} else if (!setlevel && currlevel == 16 && !myPlayer._pLvlVisited[16] && (myPlayer.pDungMsgs & DungMsgDiablo) == 0) {
sfxdelay = 40;
sfxdnum = SfxID::DiabloGreeting;
myPlayer.pDungMsgs |= DungMsgDiablo;
for (auto &monster : Monsters) {
if (monster.type().type == MT_DIABLO && monster.hitPoints > 0) {
sfxdelay = 40;
sfxdnum = SfxID::DiabloGreeting;
myPlayer.pDungMsgs |= DungMsgDiablo;
}
}
} else if (!setlevel && currlevel == 17 && !myPlayer._pLvlVisited[17] && (myPlayer.pDungMsgs2 & 1) == 0) {
sfxdelay = 10;
sfxdnum = SfxID::Defiler1;
Expand Down

0 comments on commit 424d45e

Please sign in to comment.