From a17dee5fb0f9248a6735af15cace7d8418324f28 Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 30 Oct 2025 17:34:23 -0300 Subject: Corrigido problema de não consumir item MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Entities/Items/Item.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/Entities/Items/Item.cs b/scripts/Entities/Items/Item.cs index 17c318c..e2fd1a4 100644 --- a/scripts/Entities/Items/Item.cs +++ b/scripts/Entities/Items/Item.cs @@ -50,6 +50,11 @@ public partial class Item : RefCounted, ISaveable Uses--; } + if (Uses == 0) + { + ConsumedBy(action.Player); + } + return ret; } else -- cgit v1.2.3