Add header control for adding an embedded item into an actor.
This commit is contained in:
parent
380ed3fe15
commit
fc24caf08a
3 changed files with 51 additions and 14 deletions
|
|
@ -35,7 +35,7 @@ export class GenericItemData extends foundry.abstract.TypeDataModel {
|
|||
* rounds the number to the nearest 2 decimal places.
|
||||
*/
|
||||
get quantifiedWeight() {
|
||||
const value = this.weight * this.quantity
|
||||
const value = this.weight * this.quantity;
|
||||
return toPrecision(Math.max(value, 0), 2);
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue