Add OptionEntry Friendly Fire
This commit is contained in:
parent
e6320090ac
commit
0f5fd4a7b1
3 changed files with 4 additions and 4 deletions
|
|
@ -694,7 +694,7 @@ bool NetInit(bool bSinglePlayer)
|
|||
sgGameInitInfo.bRunInTown = *sgOptions.Gameplay.runInTown ? 1 : 0;
|
||||
sgGameInitInfo.bTheoQuest = *sgOptions.Gameplay.theoQuest ? 1 : 0;
|
||||
sgGameInitInfo.bCowQuest = *sgOptions.Gameplay.cowQuest ? 1 : 0;
|
||||
sgGameInitInfo.bFriendlyFire = sgOptions.Gameplay.bFriendlyFire ? 1 : 0;
|
||||
sgGameInitInfo.bFriendlyFire = *sgOptions.Gameplay.friendlyFire ? 1 : 0;
|
||||
memset(sgbPlayerTurnBitTbl, 0, sizeof(sgbPlayerTurnBitTbl));
|
||||
gbGameDestroyed = false;
|
||||
memset(sgbPlayerLeftGameTbl, 0, sizeof(sgbPlayerLeftGameTbl));
|
||||
|
|
|
|||
|
|
@ -275,7 +275,6 @@ void LoadOptions()
|
|||
sgOptions.Graphics.bShowFPS = (GetIniInt("Graphics", "Show FPS", 0) != 0);
|
||||
|
||||
sgOptions.Gameplay.nTickRate = GetIniInt("Game", "Speed", 20);
|
||||
sgOptions.Gameplay.bFriendlyFire = GetIniBool("Game", "Friendly Fire", true);
|
||||
sgOptions.Gameplay.bTestBard = GetIniBool("Game", "Test Bard", false);
|
||||
sgOptions.Gameplay.bTestBarbarian = GetIniBool("Game", "Test Barbarian", false);
|
||||
sgOptions.Gameplay.bExperienceBar = GetIniBool("Game", "Experience Bar", AUTO_PICKUP_DEFAULT(false));
|
||||
|
|
@ -426,7 +425,6 @@ void SaveOptions()
|
|||
SetIniValue("Graphics", "Show FPS", sgOptions.Graphics.bShowFPS);
|
||||
|
||||
SetIniValue("Game", "Speed", sgOptions.Gameplay.nTickRate);
|
||||
SetIniValue("Game", "Friendly Fire", sgOptions.Gameplay.bFriendlyFire);
|
||||
SetIniValue("Game", "Test Bard", sgOptions.Gameplay.bTestBard);
|
||||
SetIniValue("Game", "Test Barbarian", sgOptions.Gameplay.bTestBarbarian);
|
||||
SetIniValue("Game", "Experience Bar", sgOptions.Gameplay.bExperienceBar);
|
||||
|
|
@ -636,6 +634,7 @@ GameplayOptions::GameplayOptions()
|
|||
, grabInput("Grab Input", OptionEntryFlags::None, N_("Grab Input"), N_("When enabled mouse is locked to the game window."), false)
|
||||
, theoQuest("Theo Quest", OptionEntryFlags::CantChangeInGame | OptionEntryFlags::OnlyHellfire, N_("Theo Quest"), N_("Enable Little Girl quest."), false)
|
||||
, cowQuest("Cow Quest", OptionEntryFlags::CantChangeInGame | OptionEntryFlags::OnlyHellfire, N_("Cow Quest"), N_("Enable Jersey's quest. Lester the farmer is replaced by the Complete Nut."), false)
|
||||
, friendlyFire("Friendly Fire", OptionEntryFlags::CantChangeInMultiPlayer, N_("Friendly Fire"), N_("Allow arrow/spell damage between players in multiplayer even when the friendly mode is on."), true)
|
||||
{
|
||||
grabInput.SetValueChangedCallback(OptionGrabInputChanged);
|
||||
}
|
||||
|
|
@ -646,6 +645,7 @@ std::vector<OptionEntryBase *> GameplayOptions::GetEntries()
|
|||
&grabInput,
|
||||
&theoQuest,
|
||||
&cowQuest,
|
||||
&friendlyFire,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -280,7 +280,7 @@ struct GameplayOptions : OptionCategoryBase {
|
|||
/** @brief Enable the cow quest. */
|
||||
OptionEntryBoolean cowQuest;
|
||||
/** @brief Will players still damage other players in non-PvP mode. */
|
||||
bool bFriendlyFire;
|
||||
OptionEntryBoolean friendlyFire;
|
||||
/** @brief Enable the bard hero class. */
|
||||
bool bTestBard;
|
||||
/** @brief Enable the babarian hero class. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue