using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DataServer.Data.Entities;
///
/// Junction table linking mobs to their abilities
/// A mob can have multiple abilities, and abilities can be shared
///
[Table("dungeon_mob_ability_assignments")]
public class MobAbilityAssignment
{
[Key]
public int Id { get; set; }
/// The mob definition this ability is assigned to
public int MobDefinitionId { get; set; }
[ForeignKey(nameof(MobDefinitionId))]
public DungeonMobDefinition? MobDefinition { get; set; }
/// The ability definition
public int AbilityDefinitionId { get; set; }
[ForeignKey(nameof(AbilityDefinitionId))]
public MobAbilityDefinition? AbilityDefinition { get; set; }
///
/// Override cooldown for this mob (null = use ability default)
///
public float? CooldownOverride { get; set; }
///
/// Override damage for this mob (null = use ability default)
///
public int? DamageOverride { get; set; }
///
/// Priority override for AI selection (null = use ability default)
///
public int? PriorityOverride { get; set; }
///
/// Phase this ability is available in (for multi-phase bosses)
/// 0 = all phases, 1 = phase 1 only, etc.
///
public int Phase { get; set; } = 0;
///
/// Minimum HP percentage for this ability to be available (0-1)
///
public float? MinHpPercent { get; set; }
///
/// Maximum HP percentage for this ability to be available (0-1)
///
public float? MaxHpPercent { get; set; }
///
/// Is this ability enabled for this mob
///
public bool IsEnabled { get; set; } = true;
}