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:
Oliver 2026-04-06 22:47:53 -06:00
parent e4e1f30fcb
commit f05311d7c8
4 changed files with 15 additions and 6 deletions

View file

@ -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);
};