using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using DataServer.Data.Enums; namespace DataServer.Data.Entities; /// /// Spell definition - learnable abilities /// [Table("dungeon_spell_definitions")] public class DungeonSpellDefinition { [Key] public int Id { get; set; } [Required] [MaxLength(64)] public string Name { get; set; } = ""; [MaxLength(256)] public string Description { get; set; } = ""; public SpellType Type { get; set; } // Requirements public int RequiredWisdom { get; set; } = 1; public int RequiredIntelligence { get; set; } = 0; public int RequiredLevel { get; set; } = 1; // Costs public int ManaCost { get; set; } = 10; public float Cooldown { get; set; } = 1.0f; // Seconds // Effects public int BaseDamage { get; set; } = 0; // Scales with INT public int BaseHealing { get; set; } = 0; // Scales with WIS public float Range { get; set; } = 100f; public float AreaOfEffect { get; set; } = 0; // 0 = single target // Special public bool IsTeleport { get; set; } = false; public bool IsShield { get; set; } = false; public int ShieldAmount { get; set; } = 0; // Visuals public int SpriteId { get; set; } = 0; public string EffectColor { get; set; } = "#ffffff"; public bool IsEnabled { get; set; } = true; }