Hide the "% used" indicator when there is no maximum capacity, and add a placeholder to be more explicit for the input
This commit is contained in:
parent
e4e1f30fcb
commit
f05311d7c8
4 changed files with 15 additions and 6 deletions
|
|
@ -272,6 +272,7 @@ export class PlayerSheet extends
|
|||
};
|
||||
|
||||
ctx.totalWeight = config.weightFormatter(totalWeight);
|
||||
ctx.hasCarryingCapacity = this.actor.system.carryCapacity != null;
|
||||
ctx.carryCapacityPercent = Math.round(totalWeight / this.actor.system.carryCapacity * 100);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue