fix: Adds name support for all mods (#1128)
This commit is contained in:
parent
b1cf95f810
commit
ffdc08259f
33 changed files with 404 additions and 343 deletions
|
|
@ -31,19 +31,15 @@ public partial class StatMod : MobileMod
|
|||
private StatType _type;
|
||||
|
||||
[SerializableField(3, setter: "private")]
|
||||
private string _name;
|
||||
|
||||
[SerializableField(4, setter: "private")]
|
||||
private int _offset;
|
||||
|
||||
public StatMod(Mobile owner) : base(owner)
|
||||
{
|
||||
}
|
||||
|
||||
public StatMod(StatType type, string name, int offset, TimeSpan duration, Mobile owner = null) : base(owner)
|
||||
public StatMod(StatType type, string name, int offset, TimeSpan duration, Mobile owner = null) : base(owner, name)
|
||||
{
|
||||
_type = type;
|
||||
_name = name;
|
||||
_offset = offset;
|
||||
_duration = duration;
|
||||
_added = Core.Now;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue