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:
2024-04-17 21:44:17 +02:00
parent f15a080d1b
commit ac7301d1f2
6 changed files with 19 additions and 12 deletions
+1
View File
@@ -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;
}
+3 -1
View File
@@ -439,6 +439,7 @@
"agens": "",
"reagens": "",
"material": "",
"rank": 0,
"rolls": {
"formulas": {
"0": {
@@ -460,10 +461,11 @@
"ap": "",
"weapon": "",
"ep": "",
"rank": "",
"rank": 0,
"enemy": "",
"color": "",
"style": "",
"grade": "",
"rolls": {
"formulas": {
"0": {