From 639cd8cef403e9e66bf31e7888e786effac2b292 Mon Sep 17 00:00:00 2001 From: Matheus Date: Fri, 24 Oct 2025 21:25:15 -0300 Subject: refactor: Sistema de itens reescrito MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Em tese, este novo sistema é mais fácil de serializar. Descanse em paz pergaminhos, eu não quero reimplementá-los neste novo sistema. --- scripts/InputHandling/InventoryInputHandler.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/InputHandling') diff --git a/scripts/InputHandling/InventoryInputHandler.cs b/scripts/InputHandling/InventoryInputHandler.cs index 1eb7f3a..fef0df0 100644 --- a/scripts/InputHandling/InventoryInputHandler.cs +++ b/scripts/InputHandling/InventoryInputHandler.cs @@ -15,8 +15,8 @@ public partial class InventoryInputHandler : BaseInputHandler private Map.Map map; private InventoryMenu inventoryMenu; - private ConsumableItem activationItem = null; - private ConsumableItem dropItem = null; + private Item activationItem = null; + private Item dropItem = null; public override void Enter() { @@ -63,12 +63,12 @@ public partial class InventoryInputHandler : BaseInputHandler GetParent().SetInputHandler(InputHandlers.MainGame); } - private void OnItemActivate(ConsumableItem item) + private void OnItemActivate(Item item) { activationItem = item; } - private void OnItemDrop(ConsumableItem item) + private void OnItemDrop(Item item) { dropItem = item; } -- cgit v1.2.3