Files
DanhengServer-OpenSource/Common/Data/Excel/RelicMainAffixConfigExcel.cs
moux23333 55fe0f7fbd Fix Relic Command
- Now SubAffix will not be same as MainAffix
- Now it can be success to given relics for amout
2024-10-27 23:03:15 +08:00

25 lines
718 B
C#

namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("RelicMainAffixConfig.json")]
public class RelicMainAffixConfigExcel : ExcelResource
{
public int GroupID { get; set; }
public int AffixID { get; set; }
public bool IsAvailable { get; set; }
public string? Property { get; set; }
public override int GetId()
{
return GroupID * 100 + AffixID;
}
public override void Loaded()
{
GameData.RelicMainAffixData.TryGetValue(GroupID, out var affixes);
if (affixes != null)
affixes[AffixID] = this;
else
GameData.RelicMainAffixData[GroupID] = new Dictionary<int, RelicMainAffixConfigExcel> { { AffixID, this } };
}
}