Skip to content

Commit

Permalink
Bugfix: DLVL 16 speech after Diablo death (#7008)
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 15, 2024
1 parent 6b2a0c4 commit ad452cb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3464,9 +3464,15 @@ 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) continue;
if (monster.hitPoints > 0) {
sfxdelay = 40;
sfxdnum = SfxID::DiabloGreeting;
myPlayer.pDungMsgs |= DungMsgDiablo;
}
break;
}
} else if (!setlevel && currlevel == 17 && !myPlayer._pLvlVisited[17] && (myPlayer.pDungMsgs2 & 1) == 0) {
sfxdelay = 10;
sfxdnum = SfxID::Defiler1;
Expand Down

0 comments on commit ad452cb

Please sign in to comment.