diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-20 20:48:29 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-20 20:48:29 +0200 |
commit | 43a28ad77190f2e55e2e6ba65a9a7b5b1f5dea6c (patch) | |
tree | 759b4f27a68e729df313b9f8370117d4a6fbae37 /resources/js/classes/InventoryItem.js | |
parent | b227fc9c2ef361f8aa5ee2f24aa1ade6bc972a73 (diff) |
area progression, item usage
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 */ |