mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 12:03:57 +00:00
42 lines
1.5 KiB
C#
42 lines
1.5 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace MikuSB.Data.Excel;
|
|
|
|
// nodecondition.json: NodeConditionId → NodeXCost per sub-node (1-9)
|
|
[ResourceEntity("item/skill/nodecondition.json")]
|
|
public class NodeConditionExcel : ExcelResource
|
|
{
|
|
[JsonProperty("ID")] public uint Id { get; set; }
|
|
|
|
[JsonProperty("Node1Cost")] public List<List<int>> Node1Cost { get; set; } = [];
|
|
[JsonProperty("Node2Cost")] public List<List<int>> Node2Cost { get; set; } = [];
|
|
[JsonProperty("Node3Cost")] public List<List<int>> Node3Cost { get; set; } = [];
|
|
[JsonProperty("Node4Cost")] public List<List<int>> Node4Cost { get; set; } = [];
|
|
[JsonProperty("Node5Cost")] public List<List<int>> Node5Cost { get; set; } = [];
|
|
[JsonProperty("Node6Cost")] public List<List<int>> Node6Cost { get; set; } = [];
|
|
[JsonProperty("Node7Cost")] public List<List<int>> Node7Cost { get; set; } = [];
|
|
[JsonProperty("Node8Cost")] public List<List<int>> Node8Cost { get; set; } = [];
|
|
[JsonProperty("Node9Cost")] public List<List<int>> Node9Cost { get; set; } = [];
|
|
|
|
public List<List<int>> GetNodeCost(int subIdx) => subIdx switch
|
|
{
|
|
1 => Node1Cost,
|
|
2 => Node2Cost,
|
|
3 => Node3Cost,
|
|
4 => Node4Cost,
|
|
5 => Node5Cost,
|
|
6 => Node6Cost,
|
|
7 => Node7Cost,
|
|
8 => Node8Cost,
|
|
9 => Node9Cost,
|
|
_ => []
|
|
};
|
|
|
|
public override uint GetId() => Id;
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.NodeConditionData[Id] = this;
|
|
}
|
|
}
|