Browse Source

Track Adrai Brain Chat with qvar2 instead

Reverts the new QS_ and swaps to using qvar2 and TEXT_MUSH11 to track if Adria has given the quest text regarding the brain to match what Deviltuion/1.09 does to keep save file compatibility.
pull/8475/head
NiteKat 3 weeks ago
parent
commit
beface3262
  1. 1
      Source/quests.h
  2. 4
      Source/towners.cpp

1
Source/quests.h

@ -30,7 +30,6 @@ enum {
QS_MUSHPICKED,
QS_MUSHGIVEN,
QS_BRAINSPAWNED,
QS_ADRIATALKED,
QS_BRAINGIVEN,
};

4
Source/towners.cpp

@ -367,9 +367,9 @@ void TalkToWitch(Player &player, Towner & /*witch*/)
}
}
if (Quests[Q_MUSHROOM]._qvar1 >= QS_MUSHGIVEN) {
if (HasInventoryItemWithId(player, IDI_BRAIN) && Quests[Q_MUSHROOM]._qvar1 != QS_ADRIATALKED) {
if (HasInventoryItemWithId(player, IDI_BRAIN) && Quests[Q_MUSHROOM]._qvar2 != TEXT_MUSH11) {
Quests[Q_MUSHROOM]._qmsg = TEXT_MUSH11;
Quests[Q_MUSHROOM]._qvar1 = QS_ADRIATALKED;
Quests[Q_MUSHROOM]._qvar2 = TEXT_MUSH11;
NetSendCmdQuest(true, Quests[Q_MUSHROOM]);
InitQTextMsg(TEXT_MUSH11);
return;

Loading…
Cancel
Save