Files
systemrevivalserver/data/entities/DungeonSpellDefinition.cs
T
2025-12-06 18:06:03 -05:00

51 lines
1.4 KiB
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Server.Data.Enums;
namespace Server.Data.Entities;
/// <summary>
/// Spell definition - learnable abilities
/// </summary>
[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;
}