mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 18:03:58 +00:00
Implement Weapon_Break
This commit is contained in:
34
Common/Data/Excel/BreakExcel.cs
Normal file
34
Common/Data/Excel/BreakExcel.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MikuSB.Data.Excel;
|
||||
|
||||
[ResourceEntity("break.json")]
|
||||
public class BreakExcel : ExcelResource
|
||||
{
|
||||
[JsonProperty("ID")] public int Id { get; set; }
|
||||
|
||||
[JsonProperty("Items1")] public List<List<int>> Items1 { get; set; } = [];
|
||||
[JsonProperty("Items2")] public List<List<int>> Items2 { get; set; } = [];
|
||||
[JsonProperty("Items3")] public List<List<int>> Items3 { get; set; } = [];
|
||||
[JsonProperty("Items4")] public List<List<int>> Items4 { get; set; } = [];
|
||||
[JsonProperty("Items5")] public List<List<int>> Items5 { get; set; } = [];
|
||||
[JsonProperty("Items6")] public List<List<int>> Items6 { get; set; } = [];
|
||||
|
||||
public List<List<int>> GetItems(uint breakLevel) => breakLevel switch
|
||||
{
|
||||
1 => Items1,
|
||||
2 => Items2,
|
||||
3 => Items3,
|
||||
4 => Items4,
|
||||
5 => Items5,
|
||||
6 => Items6,
|
||||
_ => []
|
||||
};
|
||||
|
||||
public override uint GetId() => (uint)Id;
|
||||
|
||||
public override void Loaded()
|
||||
{
|
||||
GameData.BreakData[Id] = this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user