Merge pull request #825 from eduardosmaniotto/feature/configurable-npc-buffs

feature: configurable npc buffs
(cherry picked from commit 6a061fcad756e644dadf3721e84e3cce2a25bceb)
This commit is contained in:
sven-n
2026-07-15 22:39:52 +02:00
committed by Acentech Dev
parent ed32ebdfd3
commit d22ec20a04
22 changed files with 5953 additions and 71 deletions

View File

@@ -0,0 +1,30 @@
// <copyright file="Buff.cs" company="MUnique">
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
// </copyright>
namespace MUnique.OpenMU.DataModel.Configuration;
using MUnique.OpenMU.Annotations;
/// <summary>
/// A buff which can be granted by an NPC.
/// </summary>
[Cloneable]
public partial class Buff
{
/// <summary>
/// Gets or sets the magic effect definition which defines the buff and its duration.
/// </summary>
[MemberOfAggregate]
public virtual MagicEffectDefinition? MagicEffectDefinition { get; set; }
/// <summary>
/// Gets or sets the minimum character level to be allowed to receive this buff. Optional.
/// </summary>
public int? MinimumLevel { get; set; }
/// <summary>
/// Gets or sets the maximum character level to be allowed to receive this buff. Optional.
/// </summary>
public int? MaximumLevel { get; set; }
}

View File

@@ -328,6 +328,12 @@ public partial class MonsterDefinition
[MemberOfAggregate]
public virtual ICollection<QuestDefinition> Quests { get; protected set; } = null!;
/// <summary>
/// Gets or sets the buffs which can be granted by this npc.
/// </summary>
[MemberOfAggregate]
public virtual ICollection<Buff> Buffs { get; protected set; } = null!;
/// <summary>
/// Attribute default accessor.
/// </summary>