diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-08 22:10:45 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-08 22:10:45 -0300 |
| commit | f1b51bed52ffbd90b5b7cc8dcfc6f0484bbbeb3c (patch) | |
| tree | d607142daee4948765a97008bdef21fa6efa2d2b /scripts/entities/items/HealingConsumable.cs | |
| parent | 4b2afd3e2144e42bfa7f11a870584b9255052cf7 (diff) | |
inventário acessivel
Diffstat (limited to 'scripts/entities/items/HealingConsumable.cs')
| -rw-r--r-- | scripts/entities/items/HealingConsumable.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/entities/items/HealingConsumable.cs b/scripts/entities/items/HealingConsumable.cs index 3d8df51..2104693 100644 --- a/scripts/entities/items/HealingConsumable.cs +++ b/scripts/entities/items/HealingConsumable.cs @@ -12,7 +12,7 @@ public partial class HealingConsumable : ConsumableItem public override bool Activate(ItemAction action) { - Actor consumer = action.ThisActor; + Player consumer = (Player) action.ThisActor; int intendedAmount = (int)(HealingPercentage / 100 * consumer.MaxHp); int recovered = consumer.Heal(intendedAmount); @@ -22,6 +22,7 @@ public partial class HealingConsumable : ConsumableItem return false; } MessageLogData.Instance.AddMessage($"Você consome {DisplayName} e recupera {recovered} de HP"); + ConsumedBy(consumer); return true; } }
\ No newline at end of file |
