Merge pull request #825 from eduardosmaniotto/feature/configurable-npc-buffs
feature: configurable npc buffs (cherry picked from commit 6a061fcad756e644dadf3721e84e3cce2a25bceb)
This commit is contained in:
30
src/DataModel/Configuration/Buff.cs
Normal file
30
src/DataModel/Configuration/Buff.cs
Normal 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; }
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user