From 5146895cf537dd69867da612abed5b4abaf805cd Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 18 Sep 2025 12:06:59 -0300 Subject: ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA --- scripts/Entities/Items/HealingConsumable.cs | 2 +- scripts/Entities/Items/ScrollConsumable.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/Entities/Items') 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; /// Definição do item. public partial class ScrollConsumable(Vector2I initialPosition, MapData map, ScrollConsumableDefinition definition) : ConsumableItem(initialPosition, map, definition) { - public SpellResource Spell { get; private set; } = definition.Spell; - /// /// 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 /// private SignalBus.PlayerSpellCastEventHandler bindSignal = null; + public SpellResource Spell { get; private set; } = definition.Spell; + public override bool Activate(ItemAction action) { if (awaitingTermination) -- cgit v1.2.3