From d2a10a717ed8afc88c2340c03628199d76d046af Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 21 Mar 2021 22:49:24 +0100 Subject: [PATCH] :recycle: Renmae "Enable All Quests for Single Player" to !"Randomize Quests" --- Source/diablo.cpp | 4 ++-- Source/diablo.h | 4 ++-- Source/quests.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/diablo.cpp b/Source/diablo.cpp index 850548f9c..4894819e7 100644 --- a/Source/diablo.cpp +++ b/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"); diff --git a/Source/diablo.h b/Source/diablo.h index 0a062505d..13214bc1a 100644 --- a/Source/diablo.h +++ b/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; diff --git a/Source/quests.cpp b/Source/quests.cpp index 7c0feb847..154979f76 100644 --- a/Source/quests.cpp +++ b/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;