summaryrefslogtreecommitdiff
path: root/scripts/Entities/Items
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Entities/Items')
-rw-r--r--scripts/Entities/Items/HealingConsumable.cs2
-rw-r--r--scripts/Entities/Items/ScrollConsumable.cs4
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)