Files
DanhengServer-OpenSource/Common/Data/Excel/MazeBuffExcel.cs
2025-04-20 16:34:13 +08:00

30 lines
653 B
C#

using EggLink.DanhengServer.Proto;
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("MazeBuff.json,AvatarMazeBuff.json", isMultifile:true)]
public class MazeBuffExcel : ExcelResource
{
public int ID { get; set; }
public int Lv { get; set; }
public string ModifierName { get; set; } = string.Empty;
public override int GetId()
{
return ID * 10 + Lv;
}
public override void Loaded()
{
GameData.MazeBuffData.TryAdd(GetId(), this);
}
public BattleBuff ToProto()
{
return new BattleBuff
{
Id = (uint)ID,
Level = (uint)Lv
};
}
}