diff options
Diffstat (limited to 'resources/js/classes/InventoryItem.js')
-rw-r--r-- | resources/js/classes/InventoryItem.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |