Updated TraderAssortService to be readonly

This commit is contained in:
Chomp
2025-01-30 14:16:59 +00:00
parent b37496bf76
commit f0774822c1
@@ -1,4 +1,4 @@
using SptCommon.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common.Tables;
namespace Core.Services;
@@ -6,7 +6,7 @@ namespace Core.Services;
[Injectable(InjectionType.Singleton)]
public class TraderAssortService
{
private Dictionary<string, TraderAssort> _pristineTraderAssorts = new();
protected readonly Dictionary<string, TraderAssort> _pristineTraderAssorts = new();
public TraderAssort? GetPristineTraderAssort(string traderId)
{
@@ -18,7 +18,7 @@ public class TraderAssortService
/// <summary>
/// Store trader assorts inside a class property
/// </summary>
/// <param name="traderId">Traderid to store assorts against</param>
/// <param name="traderId">Trader id to store assorts against</param>
/// <param name="assort">Assorts to store</param>
public void SetPristineTraderAssort(string traderId, TraderAssort assort)
{