mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
- Now SubAffix will not be same as MainAffix - Now it can be success to given relics for amout
25 lines
708 B
C#
25 lines
708 B
C#
namespace EggLink.DanhengServer.Data.Excel;
|
|
|
|
[ResourceEntity("RelicSubAffixConfig.json")]
|
|
public class RelicSubAffixConfigExcel : ExcelResource
|
|
{
|
|
public int GroupID { get; set; }
|
|
public int AffixID { get; set; }
|
|
|
|
public int StepNum { get; set; }
|
|
public string? Property { get; set; }
|
|
|
|
public override int GetId()
|
|
{
|
|
return GroupID * 100 + AffixID;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.RelicSubAffixData.TryGetValue(GroupID, out var affixes);
|
|
if (affixes != null)
|
|
affixes[AffixID] = this;
|
|
else
|
|
GameData.RelicSubAffixData[GroupID] = new Dictionary<int, RelicSubAffixConfigExcel> { { AffixID, this } };
|
|
}
|
|
} |