Capacity Bonus
+ Added capacity for containers (forgot to build new branch & only minor changes)
This commit is contained in:
parent
c99dab0cdf
commit
0291228e51
|
|
@ -131,7 +131,7 @@
|
||||||
"midgard5.heavy-load": "Schwere Last",
|
"midgard5.heavy-load": "Schwere Last",
|
||||||
"midgard5.thrust-load": "Schublast",
|
"midgard5.thrust-load": "Schublast",
|
||||||
"midgard5.load-max": "Höchstlast",
|
"midgard5.load-max": "Höchstlast",
|
||||||
"midgard5.load-capacity": "Tragkraft",
|
"midgard5.capacity": "Tragkraft",
|
||||||
|
|
||||||
"midgard5.exp-overall": "Erfahrungsschatz",
|
"midgard5.exp-overall": "Erfahrungsschatz",
|
||||||
"midgard5.exp-available": "Erfahrungspunkte",
|
"midgard5.exp-available": "Erfahrungspunkte",
|
||||||
|
|
|
||||||
|
|
@ -276,6 +276,7 @@ export class M5Character extends Actor {
|
||||||
calc: item.system.calc,
|
calc: item.system.calc,
|
||||||
equipped: item.system?.equipped,
|
equipped: item.system?.equipped,
|
||||||
weight: item.system.weight || 0,
|
weight: item.system.weight || 0,
|
||||||
|
capacity: item.system.capacity || 0,
|
||||||
value: item.system.value || 0,
|
value: item.system.value || 0,
|
||||||
currency: item.system.currency || "",
|
currency: item.system.currency || "",
|
||||||
quantity: item.system.quantity || 0,
|
quantity: item.system.quantity || 0,
|
||||||
|
|
|
||||||
|
|
@ -219,6 +219,7 @@
|
||||||
"physical": {
|
"physical": {
|
||||||
"value": 0,
|
"value": 0,
|
||||||
"weight": 0,
|
"weight": 0,
|
||||||
|
"capacity": 0,
|
||||||
"containerId": "",
|
"containerId": "",
|
||||||
"magic": false
|
"magic": false
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -231,6 +231,7 @@
|
||||||
<th class="title">{{localize "TYPES.Item.container"}}</th>
|
<th class="title">{{localize "TYPES.Item.container"}}</th>
|
||||||
<th class="title center">{{localize "midgard5.item-value"}}</th>
|
<th class="title center">{{localize "midgard5.item-value"}}</th>
|
||||||
<th class="title center">{{localize "midgard5.item-weight"}}</th>
|
<th class="title center">{{localize "midgard5.item-weight"}}</th>
|
||||||
|
<th class="title center">{{localize "midgard5.capacity"}}</th>
|
||||||
<th class="title center"><img src="/systems/midgard5/assets/icons/icon/battle-gear.svg" class="table-icon"></th>
|
<th class="title center"><img src="/systems/midgard5/assets/icons/icon/battle-gear.svg" class="table-icon"></th>
|
||||||
<th class="title"><img src="/icons/svg/d20.svg" class="table-icon"></th>
|
<th class="title"><img src="/icons/svg/d20.svg" class="table-icon"></th>
|
||||||
<td><a class="title add-container"><i class="fa-regular fa-plus"></i></a></th>
|
<td><a class="title add-container"><i class="fa-regular fa-plus"></i></a></th>
|
||||||
|
|
@ -254,6 +255,11 @@
|
||||||
<span class="spell-process">{{item.weight}} kg</span>
|
<span class="spell-process">{{item.weight}} kg</span>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</td>
|
</td>
|
||||||
|
<td style="text-align: start">
|
||||||
|
{{#unless (eq item.capacity "")}}
|
||||||
|
<span class="spell-process">{{item.capacity}} kg</span>
|
||||||
|
{{/unless}}
|
||||||
|
</td>
|
||||||
<td class="change-equipped">
|
<td class="change-equipped">
|
||||||
{{#if item.equipped}}
|
{{#if item.equipped}}
|
||||||
<i class="fa-solid fa-circle-check"></i>
|
<i class="fa-solid fa-circle-check"></i>
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,12 @@
|
||||||
<input id="data.quantity" type="number" name="data.quantity" value="{{data.quantity}}">
|
<input id="data.quantity" type="number" name="data.quantity" value="{{data.quantity}}">
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="flexrow">
|
||||||
|
<span>{{localize "midgard5.capacity"}}</span>
|
||||||
|
<input id="data.capacity" type="number" name="data.capacity" value="{{data.capacity}}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -42,6 +48,12 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="flexrow">
|
||||||
|
<span>{{localize "midgard5.item-weight"}}</span>
|
||||||
|
<input id="data.weight" type="number" name="data.weight" value="{{data.weight}}">
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue