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