Support Card Affix

This commit is contained in:
Kei-Luna
2026-05-15 16:07:36 +09:00
parent 46d945f3ce
commit 0058ba0db6
8 changed files with 144 additions and 0 deletions

View File

@@ -11,7 +11,9 @@ public class SupportCardExcel : ExcelResource
public uint Level { get; set; }
public uint Icon { get; set; }
public uint ProvideExp { get; set; }
public uint Color { get; set; }
[JsonProperty("LevelLimitID")] public int LevelLimitId { get; set; }
[JsonProperty("AffixPool")] public List<int> AffixPool { get; set; } = [];
public uint MaxLevel => LevelLimitId switch
{
@@ -21,6 +23,12 @@ public class SupportCardExcel : ExcelResource
_ => 10
};
// Number of affixes granted initially
public int InitialAffixCount => Color >= 5 ? 2 : 1;
// Total maximum affixes (including ones unlocked at max level)
public int TotalAffixCount => Color >= 5 ? 3 : 2;
public ulong TemplateId => GameResourceTemplateId.FromGdpl(Genre, Detail, Particular, Level);
public override uint GetId() => Icon;