Skip to content

Commit

Permalink
Missed remainingUses attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesnyder committed Aug 3, 2023
1 parent fe15c7e commit a80a550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlgr/griduniverse/static/scripts/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
*/

export class Item {
constructor(id, itemId, position, maturity) {
constructor(id, itemId, position, maturity, remainingUses) {
this.id = id;
this.itemId = itemId;
this.position = position;
this.maturity = maturity;

this.remainingUses = remainingUses;
// XXX Maybe we can avoid this copy of every shared value
// to every instance, but going with it for now.
Object.assign(this, settings.item_config[this.itemId]);
Expand Down

0 comments on commit a80a550

Please sign in to comment.