Revert
This commit is contained in:
@@ -12,9 +12,6 @@
|
||||
"release": {
|
||||
"betaDisclaimerTimeoutDelay": 30
|
||||
},
|
||||
"onStart": {
|
||||
"validateProfiles": true
|
||||
},
|
||||
"fixes": {
|
||||
"fixShotgunDispersion": true,
|
||||
"removeModItemsFromProfile": false,
|
||||
|
||||
@@ -36,9 +36,6 @@ public record CoreConfig : BaseConfig
|
||||
[JsonPropertyName("fixes")]
|
||||
public required GameFixes Fixes { get; set; }
|
||||
|
||||
[JsonPropertyName("onStart")]
|
||||
public required OnStart OnStart { get; set; }
|
||||
|
||||
[JsonPropertyName("survey")]
|
||||
public required SurveyResponseData Survey { get; set; }
|
||||
|
||||
@@ -211,15 +208,6 @@ public record GameFixes
|
||||
public bool FixProfileBreakingInventoryItemIssues { get; set; }
|
||||
}
|
||||
|
||||
public record OnStart
|
||||
{
|
||||
/// <summary>
|
||||
/// Run profile templateId checks on all profiles when server starts
|
||||
/// </summary>
|
||||
[JsonPropertyName("validateProfiles")]
|
||||
public bool ValidateProfiles { get; set; }
|
||||
}
|
||||
|
||||
public record ServerFeatures
|
||||
{
|
||||
[JsonExtensionData]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using SPTarkov.DI.Annotations;
|
||||
using SPTarkov.Server.Core.Extensions;
|
||||
using SPTarkov.Server.Core.Helpers;
|
||||
using SPTarkov.Server.Core.Models.Common;
|
||||
using SPTarkov.Server.Core.Models.Eft.Common;
|
||||
using SPTarkov.Server.Core.Models.Enums;
|
||||
@@ -21,8 +20,6 @@ public class PostDbLoadService(
|
||||
OpenZoneService openZoneService,
|
||||
ItemBaseClassService itemBaseClassService,
|
||||
RaidWeatherService raidWeatherService,
|
||||
ProfileHelper profileHelper,
|
||||
ProfileValidatorHelper profileValidatorHelper,
|
||||
ConfigServer configServer,
|
||||
ICloner cloner
|
||||
)
|
||||
@@ -137,14 +134,6 @@ public class PostDbLoadService(
|
||||
var chosenBoss = GetWeeklyBoss(_botConfig.WeeklyBoss.BossPool, _botConfig.WeeklyBoss.ResetDay);
|
||||
FlagMapAsGuaranteedBoss(chosenBoss);
|
||||
}
|
||||
|
||||
if (_coreConfig.OnStart.ValidateProfiles)
|
||||
{
|
||||
foreach (var (profileId, profile) in profileHelper.GetProfiles())
|
||||
{
|
||||
profileValidatorHelper.CheckForOrphanedModdedData(profileId, profile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user