mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 09:03:58 +00:00
GirlCard_UpBySpecialBreak
This commit is contained in:
39
Common/Data/Excel/SpecialBreakExcel.cs
Normal file
39
Common/Data/Excel/SpecialBreakExcel.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MikuSB.Data.Excel;
|
||||
|
||||
[ResourceEntity("item/cardbreak/breaknew.json")]
|
||||
public class SpecialBreakExcel : ExcelResource
|
||||
{
|
||||
[JsonProperty("ID")] public int Id { get; set; }
|
||||
|
||||
[JsonProperty("1Items1")] public List<List<int>> Items1 { get; set; } = [];
|
||||
[JsonProperty("2Items1")] public List<List<int>> Items2 { get; set; } = [];
|
||||
[JsonProperty("3Items1")] public List<List<int>> Items3 { get; set; } = [];
|
||||
[JsonProperty("4Items1")] public List<List<int>> Items4 { get; set; } = [];
|
||||
|
||||
public List<List<int>> GetItems(uint breakLevel) => breakLevel switch
|
||||
{
|
||||
1 => Items1,
|
||||
2 => Items2,
|
||||
3 => Items3,
|
||||
4 => Items4,
|
||||
_ => []
|
||||
};
|
||||
|
||||
public bool HasBreakLevel(uint breakLevel) => breakLevel switch
|
||||
{
|
||||
1 => Items1.Count > 0,
|
||||
2 => Items2.Count > 0,
|
||||
3 => Items3.Count > 0,
|
||||
4 => Items4.Count > 0,
|
||||
_ => false
|
||||
};
|
||||
|
||||
public override uint GetId() => (uint)Id;
|
||||
|
||||
public override void Loaded()
|
||||
{
|
||||
GameData.SpecialBreakData[Id] = this;
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,7 @@ public static class GameData
|
||||
public static Dictionary<uint, Rogue3DTalentExcel> Rogue3DTalentData { get; private set; } = [];
|
||||
public static Dictionary<uint, Rogue3DDailyBuffExcel> Rogue3DDailyBuffData { get; private set; } = [];
|
||||
public static Dictionary<int, BreakExcel> BreakData { get; private set; } = [];
|
||||
public static Dictionary<int, SpecialBreakExcel> SpecialBreakData { get; private set; } = [];
|
||||
public static Dictionary<uint, SpineExcel> SpineData { get; private set; } = [];
|
||||
public static Dictionary<uint, NodeConditionExcel> NodeConditionData { get; private set; } = [];
|
||||
public static List<SupportCardExcel> SupportCardData { get; private set; } = [];
|
||||
|
||||
Reference in New Issue
Block a user