summaryrefslogtreecommitdiff
path: root/scripts/Entities
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-10-30 17:34:23 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-10-30 17:34:23 -0300
commita17dee5fb0f9248a6735af15cace7d8418324f28 (patch)
tree4c4d9827f35d07991897ee4288c139878c26da26 /scripts/Entities
parentd6fc2026917d55fa12713e3d00004ec461cc5971 (diff)
Corrigido problema de não consumir item
Diffstat (limited to 'scripts/Entities')
-rw-r--r--scripts/Entities/Items/Item.cs5
1 files changed, 5 insertions, 0 deletions
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