Browse Source

♻️ Renmae "Enable All Quests for Single Player" to !"Randomize Quests"

pull/1242/head
Anders Jenbo 5 years ago
parent
commit
d2a10a717e
  1. 4
      Source/diablo.cpp
  2. 4
      Source/diablo.h
  3. 2
      Source/quests.cpp

4
Source/diablo.cpp

@ -443,7 +443,7 @@ static void SaveOptions()
setIniInt("Game", "Auto Equip Helms", sgOptions.Gameplay.bAutoEquipHelms);
setIniInt("Game", "Auto Equip Shields", sgOptions.Gameplay.bAutoEquipShields);
setIniInt("Game", "Auto Equip Jewelry", sgOptions.Gameplay.bAutoEquipJewelry);
setIniInt("Game", "Enable All Quests for Single Player", sgOptions.Gameplay.bAllQuests);
setIniInt("Game", "Randomize Quests", sgOptions.Gameplay.bRandomizeQuests);
setIniInt("Game", "Show Monster Type", sgOptions.Gameplay.bShowMonsterType);
setIniValue("Network", "Bind Address", sgOptions.Network.szBindAddress);
@ -499,7 +499,7 @@ static void LoadOptions()
sgOptions.Gameplay.bAutoEquipHelms = getIniBool("Game", "Auto Equip Helms", false);
sgOptions.Gameplay.bAutoEquipShields = getIniBool("Game", "Auto Equip Shields", false);
sgOptions.Gameplay.bAutoEquipJewelry = getIniBool("Game", "Auto Equip Jewelry", false);
sgOptions.Gameplay.bAllQuests = getIniBool("Game", "Enable All Quests for Single Player", false);
sgOptions.Gameplay.bRandomizeQuests = getIniBool("Game", "Randomize Quests", true);
sgOptions.Gameplay.bShowMonsterType = getIniBool("Game", "Show Monster Type", false);
getIniValue("Network", "Bind Address", sgOptions.Network.szBindAddress, sizeof(sgOptions.Network.szBindAddress), "0.0.0.0");

4
Source/diablo.h

@ -96,8 +96,8 @@ typedef struct GameplayOptions {
bool bAutoEquipShields;
/** @brief Automatically attempt to equip jewelry-type items when picking them up. */
bool bAutoEquipJewelry;
/** @brief Enable All Quests for Single Player */
bool bAllQuests;
/** @brief Only enable 2/3 quests in each game sessoin */
bool bRandomizeQuests;
/** @brief Indicates whether or not mosnter type (Animal, Demon, Undead) is shown along with other monster information. */
bool bShowMonsterType;
} GameplayOptions;

2
Source/quests.cpp

@ -145,7 +145,7 @@ void InitQuests()
quests[z]._qmsg = questlist[z]._qdmsg;
}
if (!gbIsMultiplayer && !sgOptions.Gameplay.bAllQuests) {
if (!gbIsMultiplayer && sgOptions.Gameplay.bRandomizeQuests) {
SetRndSeed(glSeedTbl[15]);
if (random_(0, 2) != 0)
quests[Q_PWATER]._qactive = QUEST_NOTAVAIL;

Loading…
Cancel
Save