From 43a28ad77190f2e55e2e6ba65a9a7b5b1f5dea6c Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 20 Aug 2023 20:48:29 +0200 Subject: area progression, item usage --- resources/js/classes/InventoryItem.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resources/js/classes/InventoryItem.js') diff --git a/resources/js/classes/InventoryItem.js b/resources/js/classes/InventoryItem.js index d6eb311..9db42ff 100644 --- a/resources/js/classes/InventoryItem.js +++ b/resources/js/classes/InventoryItem.js @@ -12,8 +12,9 @@ class InventoryItem { /** * @param {Item} item */ - constructor (item) { + constructor (item, quantity = 1) { this.item = item; + this.quantity = quantity; } /* Item */ -- cgit v1.2.3