重新导表

This commit is contained in:
2025-10-26 23:32:44 +08:00
parent c644a1d4db
commit fc18c8626a
4 changed files with 1207 additions and 154 deletions

View File

@@ -162,20 +162,20 @@ public static class PlayerManageComponentSystem
addDic = new Dictionary<ItemBasicType, Dictionary<uint, int>>();
foreach (var initConfig in list)
{
var itemType = ItemHelper.GetType(initConfig.ItemId);
var itemType = ItemHelper.GetType(initConfig.Id);
if (!addDic.TryGetValue(itemType, out var dic))
{
dic = new Dictionary<uint, int>();
addDic.Add(itemType, dic);
}
if (!dic.ContainsKey(initConfig.ItemId))
if (!dic.ContainsKey(initConfig.Id))
{
dic.Add(initConfig.ItemId, initConfig.Amount);
dic.Add(initConfig.Id, initConfig.Amount);
}
else
{
dic[initConfig.ItemId] += initConfig.Amount;
dic[initConfig.Id] += initConfig.Amount;
}
}