Simplify logic that I did weirdly for some reason
This commit is contained in:
parent
6db5818184
commit
df38113533
1 changed files with 2 additions and 2 deletions
|
|
@ -2,10 +2,10 @@ export class DotDungeonItem extends Item {
|
||||||
get usedCapacity() {
|
get usedCapacity() {
|
||||||
let capacity = 0;
|
let capacity = 0;
|
||||||
if (this.system.uses_inventory_slot && this.system.quantity > 0) {
|
if (this.system.uses_inventory_slot && this.system.quantity > 0) {
|
||||||
capacity++;
|
capacity = 1;
|
||||||
};
|
};
|
||||||
if (this.system.quantity_affects_used_capacity) {
|
if (this.system.quantity_affects_used_capacity) {
|
||||||
capacity *= this.system.quantity;
|
capacity = this.system.quantity;
|
||||||
};
|
};
|
||||||
return capacity;
|
return capacity;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue