fix: Fixes missing invalidate properties for default name (#1012)

This commit is contained in:
Kamron Batman 2022-05-04 14:40:49 -07:00 committed by GitHub
parent 8f1240d25e
commit 861ff307c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -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;

View file

@ -57,6 +57,8 @@ public partial class BaseTreasureChest : LockableContainer
{
StartResetTimer();
}
InvalidateProperties();
}
}
}

View file

@ -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}";