fix: Fixes missing invalidate properties for default name (#1012)
This commit is contained in:
parent
8f1240d25e
commit
861ff307c0
3 changed files with 9 additions and 1 deletions
|
|
@ -12,10 +12,12 @@ namespace Server.Items
|
|||
[SerializationGenerator(1, false)]
|
||||
public partial class Head : Item
|
||||
{
|
||||
[InvalidateProperties]
|
||||
[SerializableField(0)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
private string _playerName;
|
||||
|
||||
[InvalidateProperties]
|
||||
[SerializableField(1)]
|
||||
[SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")]
|
||||
private HeadType _headType;
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ public partial class BaseTreasureChest : LockableContainer
|
|||
{
|
||||
StartResetTimer();
|
||||
}
|
||||
|
||||
InvalidateProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,11 @@
|
|||
public string Giver
|
||||
{
|
||||
get => m_Maker;
|
||||
set => m_Maker = value;
|
||||
set
|
||||
{
|
||||
m_Maker = value;
|
||||
InvalidateProperties();
|
||||
}
|
||||
}
|
||||
|
||||
public override string DefaultName => $"A Holiday Bell From {Giver}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue