From 1520cfadc3cee1bbfe4528765ecabc067d51f4dd Mon Sep 17 00:00:00 2001 From: chompDev <27521899+chompDev@users.noreply.github.com> Date: Sun, 22 Jun 2025 11:48:07 +0000 Subject: [PATCH] .NET Format Style Fixes --- .../Controllers/HideoutController.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Controllers/HideoutController.cs b/Libraries/SPTarkov.Server.Core/Controllers/HideoutController.cs index d5e6bb1c..58cccceb 100644 --- a/Libraries/SPTarkov.Server.Core/Controllers/HideoutController.cs +++ b/Libraries/SPTarkov.Server.Core/Controllers/HideoutController.cs @@ -153,7 +153,7 @@ public class HideoutController( var timestamp = _timeUtil.GetTimeStamp(); - profileHideoutArea.CompleteTime = (int) Math.Round(timestamp + ctime.Value); + profileHideoutArea.CompleteTime = (int)Math.Round(timestamp + ctime.Value); profileHideoutArea.Constructing = true; } } @@ -301,7 +301,7 @@ public class HideoutController( { // Add key/value to `hideoutAreaStashes` dictionary - used to link hideout area to inventory stash by its id // Key is the enums value stored as a string, e.g. "27" for cultist circle - var keyForHideoutAreaStash = ((int) dbHideoutArea.Type).ToString(); + var keyForHideoutAreaStash = ((int)dbHideoutArea.Type).ToString(); if (!pmcData.Inventory.HideoutAreaStashes.ContainsKey(keyForHideoutAreaStash)) { if ( @@ -350,7 +350,7 @@ public class HideoutController( } // Add key/value to `hideoutAreaStashes` dictionary - used to link hideout area to inventory stash by its id - var childAreaTypeKey = ((int) childDbArea.Type).ToString(); + var childAreaTypeKey = ((int)childDbArea.Type).ToString(); if (pmcData.Inventory.HideoutAreaStashes.GetValueOrDefault(childAreaTypeKey) is null) { pmcData.Inventory.HideoutAreaStashes[childAreaTypeKey] = childDbArea.Id; @@ -749,7 +749,7 @@ public class HideoutController( // Tools don't have a count if (requirement.Type != "Tool") { - requirement.Count -= (int) itemToDelete.Count; + requirement.Count -= (int)itemToDelete.Count; } } @@ -834,7 +834,7 @@ public class HideoutController( pmcData.Hideout.Production[request.RecipeId] = _hideoutHelper.InitProduction( request.RecipeId, - (int) (_profileHelper.IsDeveloperAccount(sessionID) ? 40 : modifiedScavCaseTime), + (int)(_profileHelper.IsDeveloperAccount(sessionID) ? 40 : modifiedScavCaseTime), false ); pmcData.Hideout.Production[request.RecipeId].SptIsScavCase = true; @@ -1062,7 +1062,7 @@ public class HideoutController( var multiplierCrafting = Math.Floor( hoursCrafting.Value / _hideoutConfig.HoursForSkillCrafting ); - craftingExpAmount += (int) (1 * multiplierCrafting); + craftingExpAmount += (int)(1 * multiplierCrafting); hoursCrafting -= _hideoutConfig.HoursForSkillCrafting * multiplierCrafting; } @@ -1131,7 +1131,7 @@ public class HideoutController( { _profileHelper.AddSkillPointsToPlayer(pmcData, SkillTypes.Crafting, craftingExpAmount); - var intellectAmountToGive = 0.5 * Math.Round((double) (craftingExpAmount / 15)); + var intellectAmountToGive = 0.5 * Math.Round((double)(craftingExpAmount / 15)); if (intellectAmountToGive > 0) { _profileHelper.AddSkillPointsToPlayer( @@ -1558,7 +1558,7 @@ public class HideoutController( var improvementDetails = new HideoutImprovement { Completed = false, - ImproveCompleteTimestamp = (long) (timestamp + improvement.ImprovementTime), + ImproveCompleteTimestamp = (long)(timestamp + improvement.ImprovementTime), }; output.ProfileChanges[sessionId].Improvements[improvement.Id] = improvementDetails;