summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-04 16:18:17 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-04 16:18:17 -0300
commit9953c9a5818baa392a48a4d18339c73f3b7a814e (patch)
tree3484fbca78bfa217d84226cc774119fe054f6df9 /scripts
parent7dbe2bbe431f77deb3515e5cf0810cfa07215d59 (diff)
Prepare
Diffstat (limited to 'scripts')
-rw-r--r--scripts/entities/actors/AI/BaseAI.cs (renamed from scripts/actors/AI/BaseAI.cs)0
-rw-r--r--scripts/entities/actors/AI/BaseAI.cs.uid (renamed from scripts/actors/AI/BaseAI.cs.uid)0
-rw-r--r--scripts/entities/actors/AI/HostileEnemyAI.cs (renamed from scripts/actors/AI/HostileEnemyAI.cs)0
-rw-r--r--scripts/entities/actors/AI/HostileEnemyAI.cs.uid (renamed from scripts/actors/AI/HostileEnemyAI.cs.uid)0
-rw-r--r--scripts/entities/actors/Actor.cs (renamed from scripts/actors/Actor.cs)15
-rw-r--r--scripts/entities/actors/Actor.cs.uid (renamed from scripts/actors/Actor.cs.uid)0
-rw-r--r--scripts/entities/actors/ActorDefinition.cs (renamed from scripts/actors/ActorDefinition.cs)0
-rw-r--r--scripts/entities/actors/ActorDefinition.cs.uid (renamed from scripts/actors/ActorDefinition.cs.uid)0
-rw-r--r--scripts/entities/actors/Enemy.cs (renamed from scripts/actors/Enemy.cs)0
-rw-r--r--scripts/entities/actors/Enemy.cs.uid (renamed from scripts/actors/Enemy.cs.uid)0
-rw-r--r--scripts/entities/actors/EnemyDefinition.cs (renamed from scripts/actors/EnemyDefinition.cs)0
-rw-r--r--scripts/entities/actors/EnemyDefinition.cs.uid (renamed from scripts/actors/EnemyDefinition.cs.uid)0
-rw-r--r--scripts/entities/actors/Inspector.cs (renamed from scripts/actors/Inspector.cs)0
-rw-r--r--scripts/entities/actors/Inspector.cs.uid (renamed from scripts/actors/Inspector.cs.uid)0
-rw-r--r--scripts/entities/actors/Player.cs (renamed from scripts/actors/Player.cs)0
-rw-r--r--scripts/entities/actors/Player.cs.uid (renamed from scripts/actors/Player.cs.uid)0
-rw-r--r--scripts/entities/actors/actions/Action.cs (renamed from scripts/actors/actions/Action.cs)0
-rw-r--r--scripts/entities/actors/actions/Action.cs.uid (renamed from scripts/actors/actions/Action.cs.uid)0
-rw-r--r--scripts/entities/actors/actions/BumpAction.cs (renamed from scripts/actors/actions/BumpAction.cs)0
-rw-r--r--scripts/entities/actors/actions/BumpAction.cs.uid (renamed from scripts/actors/actions/BumpAction.cs.uid)0
-rw-r--r--scripts/entities/actors/actions/DirectionalAction.cs (renamed from scripts/actors/actions/DirectionalAction.cs)0
-rw-r--r--scripts/entities/actors/actions/DirectionalAction.cs.uid (renamed from scripts/actors/actions/DirectionalAction.cs.uid)0
-rw-r--r--scripts/entities/actors/actions/MeleeAction.cs (renamed from scripts/actors/actions/MeleeAction.cs)0
-rw-r--r--scripts/entities/actors/actions/MeleeAction.cs.uid (renamed from scripts/actors/actions/MeleeAction.cs.uid)0
-rw-r--r--scripts/entities/actors/actions/MovementAction.cs (renamed from scripts/actors/actions/MovementAction.cs)0
-rw-r--r--scripts/entities/actors/actions/MovementAction.cs.uid (renamed from scripts/actors/actions/MovementAction.cs.uid)0
-rw-r--r--scripts/entities/actors/actions/WaitAction.cs (renamed from scripts/actors/actions/WaitAction.cs)0
-rw-r--r--scripts/entities/actors/actions/WaitAction.cs.uid (renamed from scripts/actors/actions/WaitAction.cs.uid)0
28 files changed, 15 insertions, 0 deletions
diff --git a/scripts/actors/AI/BaseAI.cs b/scripts/entities/actors/AI/BaseAI.cs
index 733a61a..733a61a 100644
--- a/scripts/actors/AI/BaseAI.cs
+++ b/scripts/entities/actors/AI/BaseAI.cs
diff --git a/scripts/actors/AI/BaseAI.cs.uid b/scripts/entities/actors/AI/BaseAI.cs.uid
index b23724c..b23724c 100644
--- a/scripts/actors/AI/BaseAI.cs.uid
+++ b/scripts/entities/actors/AI/BaseAI.cs.uid
diff --git a/scripts/actors/AI/HostileEnemyAI.cs b/scripts/entities/actors/AI/HostileEnemyAI.cs
index 35d6d1a..35d6d1a 100644
--- a/scripts/actors/AI/HostileEnemyAI.cs
+++ b/scripts/entities/actors/AI/HostileEnemyAI.cs
diff --git a/scripts/actors/AI/HostileEnemyAI.cs.uid b/scripts/entities/actors/AI/HostileEnemyAI.cs.uid
index 0fa2c32..0fa2c32 100644
--- a/scripts/actors/AI/HostileEnemyAI.cs.uid
+++ b/scripts/entities/actors/AI/HostileEnemyAI.cs.uid
diff --git a/scripts/actors/Actor.cs b/scripts/entities/actors/Actor.cs
index 80e8c1d..c77122a 100644
--- a/scripts/actors/Actor.cs
+++ b/scripts/entities/actors/Actor.cs
@@ -179,6 +179,21 @@ public partial class Actor : Sprite2D
}
/// <summary>
+ /// Recupera uma quantidade de HP do ator.
+ /// </summary>
+ /// <param name="amount">HP para recuperar</param>
+ /// <returns>Quanto HP foi realmente recuperado.</returns>
+ public int Heal(int amount) {
+ int neoHp = Hp + amount;
+
+ if (amount > MaxHp) neoHp = MaxHp;
+
+ int recovered = neoHp - Hp;
+ Hp = neoHp;
+ return recovered;
+ }
+
+ /// <summary>
/// Aplica uma definição de NPC para o ator.
/// Se o ator for um boneco de barro, este método é como um
/// sopro de vida.
diff --git a/scripts/actors/Actor.cs.uid b/scripts/entities/actors/Actor.cs.uid
index cf29b40..cf29b40 100644
--- a/scripts/actors/Actor.cs.uid
+++ b/scripts/entities/actors/Actor.cs.uid
diff --git a/scripts/actors/ActorDefinition.cs b/scripts/entities/actors/ActorDefinition.cs
index ab0160b..ab0160b 100644
--- a/scripts/actors/ActorDefinition.cs
+++ b/scripts/entities/actors/ActorDefinition.cs
diff --git a/scripts/actors/ActorDefinition.cs.uid b/scripts/entities/actors/ActorDefinition.cs.uid
index ddcfe02..ddcfe02 100644
--- a/scripts/actors/ActorDefinition.cs.uid
+++ b/scripts/entities/actors/ActorDefinition.cs.uid
diff --git a/scripts/actors/Enemy.cs b/scripts/entities/actors/Enemy.cs
index 19bcd2c..19bcd2c 100644
--- a/scripts/actors/Enemy.cs
+++ b/scripts/entities/actors/Enemy.cs
diff --git a/scripts/actors/Enemy.cs.uid b/scripts/entities/actors/Enemy.cs.uid
index 93255b7..93255b7 100644
--- a/scripts/actors/Enemy.cs.uid
+++ b/scripts/entities/actors/Enemy.cs.uid
diff --git a/scripts/actors/EnemyDefinition.cs b/scripts/entities/actors/EnemyDefinition.cs
index e372e3a..e372e3a 100644
--- a/scripts/actors/EnemyDefinition.cs
+++ b/scripts/entities/actors/EnemyDefinition.cs
diff --git a/scripts/actors/EnemyDefinition.cs.uid b/scripts/entities/actors/EnemyDefinition.cs.uid
index 1ba03e1..1ba03e1 100644
--- a/scripts/actors/EnemyDefinition.cs.uid
+++ b/scripts/entities/actors/EnemyDefinition.cs.uid
diff --git a/scripts/actors/Inspector.cs b/scripts/entities/actors/Inspector.cs
index e340543..e340543 100644
--- a/scripts/actors/Inspector.cs
+++ b/scripts/entities/actors/Inspector.cs
diff --git a/scripts/actors/Inspector.cs.uid b/scripts/entities/actors/Inspector.cs.uid
index ca411e4..ca411e4 100644
--- a/scripts/actors/Inspector.cs.uid
+++ b/scripts/entities/actors/Inspector.cs.uid
diff --git a/scripts/actors/Player.cs b/scripts/entities/actors/Player.cs
index 324e67a..324e67a 100644
--- a/scripts/actors/Player.cs
+++ b/scripts/entities/actors/Player.cs
diff --git a/scripts/actors/Player.cs.uid b/scripts/entities/actors/Player.cs.uid
index 8229b7f..8229b7f 100644
--- a/scripts/actors/Player.cs.uid
+++ b/scripts/entities/actors/Player.cs.uid
diff --git a/scripts/actors/actions/Action.cs b/scripts/entities/actors/actions/Action.cs
index f20e262..f20e262 100644
--- a/scripts/actors/actions/Action.cs
+++ b/scripts/entities/actors/actions/Action.cs
diff --git a/scripts/actors/actions/Action.cs.uid b/scripts/entities/actors/actions/Action.cs.uid
index 9523b0a..9523b0a 100644
--- a/scripts/actors/actions/Action.cs.uid
+++ b/scripts/entities/actors/actions/Action.cs.uid
diff --git a/scripts/actors/actions/BumpAction.cs b/scripts/entities/actors/actions/BumpAction.cs
index 805520c..805520c 100644
--- a/scripts/actors/actions/BumpAction.cs
+++ b/scripts/entities/actors/actions/BumpAction.cs
diff --git a/scripts/actors/actions/BumpAction.cs.uid b/scripts/entities/actors/actions/BumpAction.cs.uid
index f5ce3f8..f5ce3f8 100644
--- a/scripts/actors/actions/BumpAction.cs.uid
+++ b/scripts/entities/actors/actions/BumpAction.cs.uid
diff --git a/scripts/actors/actions/DirectionalAction.cs b/scripts/entities/actors/actions/DirectionalAction.cs
index ca2ca95..ca2ca95 100644
--- a/scripts/actors/actions/DirectionalAction.cs
+++ b/scripts/entities/actors/actions/DirectionalAction.cs
diff --git a/scripts/actors/actions/DirectionalAction.cs.uid b/scripts/entities/actors/actions/DirectionalAction.cs.uid
index 901756a..901756a 100644
--- a/scripts/actors/actions/DirectionalAction.cs.uid
+++ b/scripts/entities/actors/actions/DirectionalAction.cs.uid
diff --git a/scripts/actors/actions/MeleeAction.cs b/scripts/entities/actors/actions/MeleeAction.cs
index b20430a..b20430a 100644
--- a/scripts/actors/actions/MeleeAction.cs
+++ b/scripts/entities/actors/actions/MeleeAction.cs
diff --git a/scripts/actors/actions/MeleeAction.cs.uid b/scripts/entities/actors/actions/MeleeAction.cs.uid
index bc97619..bc97619 100644
--- a/scripts/actors/actions/MeleeAction.cs.uid
+++ b/scripts/entities/actors/actions/MeleeAction.cs.uid
diff --git a/scripts/actors/actions/MovementAction.cs b/scripts/entities/actors/actions/MovementAction.cs
index 3608357..3608357 100644
--- a/scripts/actors/actions/MovementAction.cs
+++ b/scripts/entities/actors/actions/MovementAction.cs
diff --git a/scripts/actors/actions/MovementAction.cs.uid b/scripts/entities/actors/actions/MovementAction.cs.uid
index 07569ef..07569ef 100644
--- a/scripts/actors/actions/MovementAction.cs.uid
+++ b/scripts/entities/actors/actions/MovementAction.cs.uid
diff --git a/scripts/actors/actions/WaitAction.cs b/scripts/entities/actors/actions/WaitAction.cs
index 2d3ccc2..2d3ccc2 100644
--- a/scripts/actors/actions/WaitAction.cs
+++ b/scripts/entities/actors/actions/WaitAction.cs
diff --git a/scripts/actors/actions/WaitAction.cs.uid b/scripts/entities/actors/actions/WaitAction.cs.uid
index 120c8c1..120c8c1 100644
--- a/scripts/actors/actions/WaitAction.cs.uid
+++ b/scripts/entities/actors/actions/WaitAction.cs.uid