diff --git a/MarketService/Models/ItemProductModel.cs b/MarketService/Models/ItemProductModel.cs index f8bc771..7d6979c 100644 --- a/MarketService/Models/ItemProductModel.cs +++ b/MarketService/Models/ItemProductModel.cs @@ -107,6 +107,9 @@ public void Update(ITradableItem tradableItem, FungibleAssetValue price, Costume { SetId = equipment.SetId; Level = equipment.level; + IconId = equipment.IconId; + ByCustomCraft = equipment.ByCustomCraft; + HasRandomOnlyIcon = equipment.HasRandomOnlyIcon; OptionCountFromCombination = equipment.optionCountFromCombination; var skillModels = new List(); skillModels.AddRange(equipment.Skills.Select(s => new SkillModel diff --git a/MarketService/RpcClient.cs b/MarketService/RpcClient.cs index 0868431..3a4afc7 100644 --- a/MarketService/RpcClient.cs +++ b/MarketService/RpcClient.cs @@ -514,13 +514,6 @@ public async Task InsertProducts(List products, CostumeStatSheet costum Exist = true, }; - if (item is Equipment equipment) - { - itemProductModel.IconId = equipment.IconId; - itemProductModel.ByCustomCraft = equipment.ByCustomCraft; - itemProductModel.HasRandomOnlyIcon = equipment.HasRandomOnlyIcon; - } - itemProductModel.Update(itemProduct.TradableItem, itemProduct.Price, costumeStatSheet, crystalEquipmentGrindingSheet, crystalMonsterCollectionMultiplierSheet); productBag.Add(itemProductModel);