From dac410befd66a94bf3f3dad12d1606a82815e262 Mon Sep 17 00:00:00 2001 From: CWX Date: Fri, 24 Jan 2025 22:57:20 +0000 Subject: [PATCH] fix logic and nullguards --- Libraries/Core/Services/LocationLifecycleService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Libraries/Core/Services/LocationLifecycleService.cs b/Libraries/Core/Services/LocationLifecycleService.cs index 51edcd86..e30c4a64 100644 --- a/Libraries/Core/Services/LocationLifecycleService.cs +++ b/Libraries/Core/Services/LocationLifecycleService.cs @@ -126,7 +126,8 @@ public class LocationLifecycleService _logger.Debug($"Starting: {request.Location}"); var playerProfile = _profileHelper.GetPmcProfile(sessionId); - + GenerateLocationAndLoot(request.Location, !request.ShouldSkipLootGeneration ?? true); + var result = new StartLocalRaidResponseData { ServerId = $"{request.Location}.{request.PlayerSide} {_timeUtil.GetTimeStamp()}", // TODO - does this need to be more verbose - investigate client? @@ -135,7 +136,7 @@ public class LocationLifecycleService { InsuredItems = playerProfile.InsuredItems }, - LocationLoot = GenerateLocationAndLoot(request.Location, request.ShouldSkipLootGeneration == false), + LocationLoot = GenerateLocationAndLoot(request.Location, !request.ShouldSkipLootGeneration ?? true), TransitionType = TransitionType.NONE, Transition = new Transition { @@ -314,7 +315,7 @@ public class LocationLifecycleService } // Check for a loot multipler adjustment in app context and apply if one is found - var locationConfigClone = new LocationConfig(); + LocationConfig? locationConfigClone = null; var raidAdjustments = _applicationContext .GetLatestValue(ContextVariableType.RAID_ADJUSTMENTS) ?.GetValue();