From 5146895cf537dd69867da612abed5b4abaf805cd Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 18 Sep 2025 12:06:59 -0300 Subject: ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA --- scripts/Entities/Actors/Actor.cs | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'scripts/Entities/Actors/Actor.cs') diff --git a/scripts/Entities/Actors/Actor.cs b/scripts/Entities/Actors/Actor.cs index 7e228f8..ec00e30 100644 --- a/scripts/Entities/Actors/Actor.cs +++ b/scripts/Entities/Actors/Actor.cs @@ -16,6 +16,12 @@ public partial class Actor : Entity private int hp; private int energy; + + /// + /// A definição do ator possui caracterísitcas padrões que definem + /// o ator em questão. + /// + private ActorDefinition definition; #endregion #region Constructors @@ -77,7 +83,7 @@ public partial class Actor : Entity /// /// Taxa de recarga de energia. /// - public int Speed { get => Definition.Speed; } + public int Speed { get => definition.Speed; } /// /// HP máximo do ator. @@ -142,16 +148,6 @@ public partial class Actor : Entity /// public int MpRegenPerTurn { get; private set; } = 5; - /// - /// A definição do ator possui caracterísitcas padrões que definem - /// o ator em questão. - /// - private ActorDefinition Definition - { - get; - set; - } - public SpellBook SpellBook { get; private set; } = new(); #endregion @@ -220,7 +216,7 @@ public partial class Actor : Entity public virtual void SetDefinition(ActorDefinition definition) { base.SetDefinition(definition); - Definition = definition; + this.definition = definition; Type = definition.Type; @@ -275,7 +271,7 @@ public partial class Actor : Entity MessageLogData.Instance.AddMessage(deathMessage); - Texture = Definition.deathTexture; + Texture = definition.deathTexture; BlocksMovement = false; Type = EntityType.CORPSE; DisplayName = $"Restos mortais de {DisplayName}"; -- cgit v1.2.3