summaryrefslogtreecommitdiff
path: root/scripts/Entities/Actors/Actor.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-18 12:06:59 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-18 12:06:59 -0300
commit5146895cf537dd69867da612abed5b4abaf805cd (patch)
tree70212352a07922b58db99ba2564f76ca072af200 /scripts/Entities/Actors/Actor.cs
parenteacdd15612c70ff86f3446982c46a09272249936 (diff)
ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'scripts/Entities/Actors/Actor.cs')
-rw-r--r--scripts/Entities/Actors/Actor.cs22
1 files changed, 9 insertions, 13 deletions
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;
+
+ /// <summary>
+ /// A definição do ator possui caracterísitcas padrões que definem
+ /// o ator em questão.
+ /// </summary>
+ private ActorDefinition definition;
#endregion
#region Constructors
@@ -77,7 +83,7 @@ public partial class Actor : Entity
/// <summary>
/// Taxa de recarga de energia.
/// </summary>
- public int Speed { get => Definition.Speed; }
+ public int Speed { get => definition.Speed; }
/// <summary>
/// HP máximo do ator.
@@ -142,16 +148,6 @@ public partial class Actor : Entity
/// </summary>
public int MpRegenPerTurn { get; private set; } = 5;
- /// <summary>
- /// A definição do ator possui caracterísitcas padrões que definem
- /// o ator em questão.
- /// </summary>
- 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}";