mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 09:03:58 +00:00
Support Card Affix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user