Skip to content

Commit

Permalink
fix untradable
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrosine1153 committed Oct 11, 2024
1 parent 7ec4f33 commit f3e3b80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib9c/TableData/WorldBossRankingRewardSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public override void Set(IReadOnlyList<string> fields)
}
}

public (List<FungibleAssetValue> assets, Dictionary<TradableMaterial, int> materials) GetRewards(
public (List<FungibleAssetValue> assets, Dictionary<Material, int> materials) GetRewards(
RuneSheet runeSheet,
MaterialItemSheet materialSheet)
{
Expand All @@ -77,11 +77,11 @@ public override void Set(IReadOnlyList<string> fields)
RuneHelper.ToFungibleAssetValue(runeSheet[runeInfo.RuneId],
runeInfo.RuneQty)));

var materials = new Dictionary<TradableMaterial, int>();
var materials = new Dictionary<Material, int>();
foreach (var (itemId, quantity) in Materials)
{
var materialRow = materialSheet.Values.First(r => r.Id == itemId);
var material = ItemFactory.CreateTradableMaterial(materialRow);
var material = ItemFactory.CreateMaterial(materialRow);
materials.TryAdd(material, 0);
materials[material] += quantity;
}
Expand Down

0 comments on commit f3e3b80

Please sign in to comment.