You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
using SqlSugar;
|
|
using System.ComponentModel;
|
|
|
|
namespace Build_God_Api.DB
|
|
{
|
|
/// <summary>
|
|
/// 垃圾表
|
|
/// </summary>
|
|
public class Scrap : BaseEntity
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
public string Story { get; set; } = string.Empty;
|
|
|
|
public ScrapLevel Level { get; set; }
|
|
|
|
public int AttackBonus { get; set; }
|
|
|
|
public int DefenseBonus { get; set; }
|
|
|
|
public int HpBonus { get; set; }
|
|
|
|
public int MagicBonus { get; set; }
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// 图标文件名
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public string? Icon { get; set; }
|
|
}
|
|
|
|
public enum ScrapLevel
|
|
{
|
|
[Description("普通")]
|
|
White = 1,
|
|
|
|
[Description("优秀")]
|
|
Green = 2,
|
|
|
|
[Description("精良")]
|
|
Blue = 3,
|
|
|
|
[Description("史诗")]
|
|
Purple = 4,
|
|
|
|
[Description("传说")]
|
|
Orange = 5
|
|
}
|
|
}
|
|
|