remove InventoryService from AchievementStore

This commit is contained in:
Spirtix 2023-09-03 12:07:07 +02:00
parent 9949fb5e7d
commit efb2958124

View File

@ -7,7 +7,6 @@ using System.Xml.Linq;
namespace sodoff.Services {
public class AchievementStoreSingleton {
private InventoryService inventoryService;
Dictionary<AchievementPointTypes, UserRank[]> ranks = new();
Dictionary<int, AchievementReward[]> achivmentsRewardByID = new();
@ -16,8 +15,7 @@ namespace sodoff.Services {
int dragonAdultMinXP;
int dragonTitanMinXP;
public AchievementStoreSingleton(InventoryService inventoryService) {
this.inventoryService = inventoryService;
public AchievementStoreSingleton() {
ArrayOfUserRank allranks = XmlUtil.DeserializeXml<ArrayOfUserRank>(XmlUtil.ReadResourceXmlString("allranks"));
foreach (var pointType in Enum.GetValues<AchievementPointTypes>()) {