diff options
Diffstat (limited to 'scripts/Entities')
| -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 |
