using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using DataServer.Data.Enums;
namespace DataServer.Data.Entities;
///
/// A loot table defines a collection of possible item drops
///
[Table("dungeon_loot_tables")]
public class DungeonLootTable
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(64)]
public string Name { get; set; } = "";
[MaxLength(256)]
public string Description { get; set; } = "";
///
/// Minimum dungeon tier for this loot table to be active
///
public int MinTier { get; set; } = 1;
///
/// Maximum dungeon tier (99 = no limit)
///
public int MaxTier { get; set; } = 99;
///
/// Global drop chance multiplier for all entries in this table
///
public float DropChanceMultiplier { get; set; } = 1.0f;
///
/// Minimum number of items to drop from this table
///
public int MinDrops { get; set; } = 1;
///
/// Maximum number of items to drop from this table
///
public int MaxDrops { get; set; } = 3;
///
/// If true, guaranteed to drop at least MinDrops items
///
public bool GuaranteedDrop { get; set; } = false;
public bool IsEnabled { get; set; } = true;
// Navigation
public ICollection Entries { get; set; } = new List();
}