RC-98 | Add quantity to items
This commit is contained in:
parent
aa05cdde46
commit
3cff9fda7d
8 changed files with 57 additions and 4 deletions
8
module/documents/item.mjs
Normal file
8
module/documents/item.mjs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export class RipCryptItem extends Item {
|
||||
get quantifiedName() {
|
||||
if (this.system.quantity != null && this.system.quantity !== 1) {
|
||||
return `${this.name} (${this.system.quantity})`;
|
||||
}
|
||||
return this.name;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue