feat: change death logic
This commit is contained in:
@@ -31,7 +31,7 @@ namespace L2Bot::Domain::Entities
|
||||
WorldObject::Update(transform);
|
||||
|
||||
m_FullName = fullName;
|
||||
m_VitalStats = vitalStats;
|
||||
m_VitalStats.LoadFromOther(vitalStats);
|
||||
m_Phenotype = phenotype;
|
||||
m_ExperienceInfo = experienceInfo;
|
||||
m_PermanentStats = permanentStats;
|
||||
@@ -93,6 +93,10 @@ namespace L2Bot::Domain::Entities
|
||||
{
|
||||
m_AttackerIds.clear();
|
||||
}
|
||||
void MarkAsDead()
|
||||
{
|
||||
m_VitalStats.MarkAsDead();
|
||||
}
|
||||
|
||||
const std::vector<Serializers::Node> BuildSerializationNodes() const override
|
||||
{
|
||||
|
@@ -28,7 +28,7 @@ namespace L2Bot::Domain::Entities
|
||||
m_IsHostile = isHostile;
|
||||
m_NpcId = npcId;
|
||||
m_FullName = fullName;
|
||||
m_VitalStats = vitalStats;
|
||||
m_VitalStats.LoadFromOther(vitalStats);
|
||||
}
|
||||
const size_t GetHash() const override
|
||||
{
|
||||
@@ -45,6 +45,10 @@ namespace L2Bot::Domain::Entities
|
||||
{
|
||||
return "npc";
|
||||
}
|
||||
void MarkAsDead()
|
||||
{
|
||||
m_VitalStats.MarkAsDead();
|
||||
}
|
||||
|
||||
const std::vector<Serializers::Node> BuildSerializationNodes() const override
|
||||
{
|
||||
|
@@ -19,7 +19,7 @@ namespace L2Bot::Domain::Entities
|
||||
|
||||
m_FullName = fullName;
|
||||
m_Phenotype = phenotype;
|
||||
m_VitalStats = vitalStats;
|
||||
m_VitalStats.LoadFromOther(vitalStats);
|
||||
}
|
||||
const size_t GetHash() const override
|
||||
{
|
||||
@@ -34,6 +34,10 @@ namespace L2Bot::Domain::Entities
|
||||
{
|
||||
return "player";
|
||||
}
|
||||
void MarkAsDead()
|
||||
{
|
||||
m_VitalStats.MarkAsDead();
|
||||
}
|
||||
|
||||
const std::vector<Serializers::Node> BuildSerializationNodes() const override
|
||||
{
|
||||
|
Reference in New Issue
Block a user