This commit is contained in:
CortexCore
2024-06-22 17:58:05 +08:00
parent 46b2da988e
commit 07b6fbc2f3
9 changed files with 256 additions and 6 deletions

View File

@@ -53,8 +53,13 @@ namespace BITKit.Entities
public int HealthPoint
{
get => healthPoint;
set => OnHealthPointChangedInternal(healthPoint, value);
set
{
if(value == healthPoint)return;
OnHealthPointChangedInternal(healthPoint, value);
}
}
public int MaxHealthPoint
{
get => maxHealthPoint;