mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 17:10:44 -05:00
Rename property to improve clarity
This commit is contained in:
parent
25801e3eda
commit
a0d37fb35d
@ -30,25 +30,25 @@ namespace SPT.Custom.Patches
|
|||||||
|
|
||||||
// Get settings from server
|
// Get settings from server
|
||||||
var json = RequestHandler.GetJson("/singleplayer/settings/raid/menu");
|
var json = RequestHandler.GetJson("/singleplayer/settings/raid/menu");
|
||||||
var settings = Json.Deserialize<DefaultRaidSettings>(json);
|
var defaultSettings = Json.Deserialize<DefaultRaidSettings>(json);
|
||||||
|
|
||||||
// TODO: Not all settings are used and they also don't cover all the new settings that are available client-side
|
// TODO: Not all settings are used and they also don't cover all the new settings that are available client-side
|
||||||
if (settings == null)
|
if (defaultSettings == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We use PVE mode from Tarkov now we need to modify PVE MODE instead of ONLINE Mode
|
// We use PVE mode from Tarkov now we need to modify PVE MODE instead of ONLINE Mode
|
||||||
|
|
||||||
offlineRaidSettings.BotSettings.BotAmount = settings.AiAmount;
|
offlineRaidSettings.BotSettings.BotAmount = defaultSettings.AiAmount;
|
||||||
offlineRaidSettings.WavesSettings.BotAmount = settings.AiAmount;
|
offlineRaidSettings.WavesSettings.BotAmount = defaultSettings.AiAmount;
|
||||||
offlineRaidSettings.WavesSettings.BotDifficulty = settings.AiDifficulty;
|
offlineRaidSettings.WavesSettings.BotDifficulty = defaultSettings.AiDifficulty;
|
||||||
offlineRaidSettings.WavesSettings.IsBosses = settings.BossEnabled;
|
offlineRaidSettings.WavesSettings.IsBosses = defaultSettings.BossEnabled;
|
||||||
offlineRaidSettings.BotSettings.IsScavWars = false;
|
offlineRaidSettings.BotSettings.IsScavWars = false;
|
||||||
offlineRaidSettings.WavesSettings.IsTaggedAndCursed = settings.TaggedAndCursed;
|
offlineRaidSettings.WavesSettings.IsTaggedAndCursed = defaultSettings.TaggedAndCursed;
|
||||||
offlineRaidSettings.TimeAndWeatherSettings.IsRandomWeather = settings.RandomWeather;
|
offlineRaidSettings.TimeAndWeatherSettings.IsRandomWeather = defaultSettings.RandomWeather;
|
||||||
offlineRaidSettings.TimeAndWeatherSettings.IsRandomTime = settings.RandomTime;
|
offlineRaidSettings.TimeAndWeatherSettings.IsRandomTime = defaultSettings.RandomTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
[PatchPostfix]
|
[PatchPostfix]
|
||||||
public static void PatchPostfix(MatchmakerOfflineRaidScreen __instance, DefaultUIButton ____changeSettingsButton, UiElementBlocker ____onlineBlocker)
|
public static void PatchPostfix(MatchmakerOfflineRaidScreen __instance, DefaultUIButton ____changeSettingsButton, UiElementBlocker ____onlineBlocker)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user