Tragkraft+Containerwert+KiDoPrep
+ Added red flag indicator when item weight in containers is above capacity + Added value count in containers + Added rank for spells and kido
This commit is contained in:
@@ -280,6 +280,7 @@ export class M5Character extends Actor {
|
||||
|
||||
if (!!item.system.containerId) {
|
||||
ret.gear.containers[item.system.containerId].weight += parseFloat((item.system.weight * item.system.quantity).toPrecision(4));
|
||||
ret.gear.containers[item.system.containerId].value += parseFloat(this.calculateValue(item.system.value * item.system.quantity, item.system.currency).toPrecision(3));
|
||||
if (ret.gear.containers[item.system.containerId].equipped) {
|
||||
ret.stats.encumbrance += item.system.weight * item.system.quantity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user