diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-30 17:34:23 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-30 17:34:23 -0300 |
| commit | a17dee5fb0f9248a6735af15cace7d8418324f28 (patch) | |
| tree | 4c4d9827f35d07991897ee4288c139878c26da26 /scripts/Entities/Items | |
| parent | d6fc2026917d55fa12713e3d00004ec461cc5971 (diff) | |
Corrigido problema de não consumir item
Diffstat (limited to 'scripts/Entities/Items')
| -rw-r--r-- | scripts/Entities/Items/Item.cs | 5 |
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 |
