diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-18 12:06:59 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-18 12:06:59 -0300 |
| commit | 5146895cf537dd69867da612abed5b4abaf805cd (patch) | |
| tree | 70212352a07922b58db99ba2564f76ca072af200 /scripts/Entities/Items | |
| parent | eacdd15612c70ff86f3446982c46a09272249936 (diff) | |
ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'scripts/Entities/Items')
| -rw-r--r-- | scripts/Entities/Items/HealingConsumable.cs | 2 | ||||
| -rw-r--r-- | scripts/Entities/Items/ScrollConsumable.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Entities/Items/HealingConsumable.cs b/scripts/Entities/Items/HealingConsumable.cs index 32f76a6..85377d3 100644 --- a/scripts/Entities/Items/HealingConsumable.cs +++ b/scripts/Entities/Items/HealingConsumable.cs @@ -8,7 +8,7 @@ namespace TheLegendOfGustav.Entities.Items; public partial class HealingConsumable(Vector2I initialPosition, MapData map, HealingConsumableDefinition definition) : ConsumableItem(initialPosition, map, definition) { - private HealingConsumableDefinition Definition { get; set; } = definition; + private HealingConsumableDefinition definition = definition; public float HealingPercentage { get; private set; } = definition.healingPercentage; public override bool Activate(ItemAction action) diff --git a/scripts/Entities/Items/ScrollConsumable.cs b/scripts/Entities/Items/ScrollConsumable.cs index 7dc8e48..2869deb 100644 --- a/scripts/Entities/Items/ScrollConsumable.cs +++ b/scripts/Entities/Items/ScrollConsumable.cs @@ -17,8 +17,6 @@ namespace TheLegendOfGustav.Entities.Items; /// <param name="definition">Definição do item.</param> public partial class ScrollConsumable(Vector2I initialPosition, MapData map, ScrollConsumableDefinition definition) : ConsumableItem(initialPosition, map, definition) { - public SpellResource Spell { get; private set; } = definition.Spell; - /// <summary> /// O pergaminho só pode ser usado uma única vez. /// Alguns feitiços precisam de um alvo, o que significa que @@ -41,6 +39,8 @@ public partial class ScrollConsumable(Vector2I initialPosition, MapData map, Scr /// </summary> private SignalBus.PlayerSpellCastEventHandler bindSignal = null; + public SpellResource Spell { get; private set; } = definition.Spell; + public override bool Activate(ItemAction action) { if (awaitingTermination) |
