Browse Source

Add New Quest State for Mushroom Quest

Adds a new state to the Mushroom Quest named QS_ADRIATALKED to track if she spoke the quest text about the demon brain in the player's inventory, allowing the player to hear that quest text once and then access her talk menu instead of her infinitely complaining about the brain.
pull/8475/head
NiteKat 4 weeks ago
parent
commit
7ca177f87a
  1. 1
      Source/quests.h
  2. 3
      Source/towners.cpp

1
Source/quests.h

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

3
Source/towners.cpp

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

Loading…
Cancel
Save