Browse Source

Bugfix: DLVL 16 speech after Diablo death (#7008)

pull/7035/head
Eric Robinson 2 years ago committed by GitHub
parent
commit
ad452cb6c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      Source/player.cpp

12
Source/player.cpp

@ -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;

Loading…
Cancel
Save