Browse Source

Make the poison water quest visible in the log when the level is cleared

Just in case the player skips talking to pepin and clears the whole quest, make the entry visible in the log.
pull/6073/head
ephphatha 3 years ago committed by Anders Jenbo
parent
commit
655a5da53e
  1. 14
      Source/quests.cpp

14
Source/quests.cpp

@ -355,13 +355,15 @@ void CheckQuests()
} }
if (setlevel) { if (setlevel) {
if (setlvlnum == Quests[Q_PWATER]._qslvl Quest &poisonWater = Quests[Q_PWATER];
&& Quests[Q_PWATER]._qactive != QUEST_INIT if (setlvlnum == poisonWater._qslvl
&& leveltype == Quests[Q_PWATER]._qlvltype && poisonWater._qactive != QUEST_INIT
&& leveltype == poisonWater._qlvltype
&& ActiveMonsterCount == 4 && ActiveMonsterCount == 4
&& Quests[Q_PWATER]._qactive != QUEST_DONE) { && poisonWater._qactive != QUEST_DONE) {
Quests[Q_PWATER]._qactive = QUEST_DONE; poisonWater._qactive = QUEST_DONE;
NetSendCmdQuest(true, Quests[Q_PWATER]); poisonWater._qlog = true; // even if the player skips talking to Pepin completely they should at least notice the water being purified once they cleanse the level
NetSendCmdQuest(true, poisonWater);
StartPWaterPurify(); StartPWaterPurify();
} }
} else if (MyPlayer->_pmode == PM_STAND) { } else if (MyPlayer->_pmode == PM_STAND) {

Loading…
Cancel
Save