Add Items on Character Sheet

Changes:
 + add button to add all different kind of items directly onto the character sheet
 + fix #1 by correctly updating the item
This commit is contained in:
2024-01-20 12:37:05 +01:00
parent c13fef5103
commit 9d72b31d5f
7 changed files with 137 additions and 16 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
<th class="title">{{localize "midgard5.kampfkunst-variante-short"}}</th>
<th class="title">{{localize "midgard5.ew"}}</th>
<th class="title"><img src="/icons/svg/d20.svg" class="table-icon"></th>
<th class="title"></th>
<th class="title add-kampfkunst"><i class="fa-regular fa-plus"></i></th>
</tr>
</thead>
<tbody>
+2 -1
View File
@@ -2,7 +2,8 @@
<thead>
<tr>
<th class="title">{{localize "TYPES.Item.effect"}}</th>
<th class="title"></th>
<th class="title add-effect"><i class="fa-regular fa-plus"></i></th>
</tr>
</thead>
<tbody>
+7 -6
View File
@@ -43,8 +43,8 @@
<th class="title center">{{localize "midgard5.item-quantity"}}</th>
<th class="title center">{{localize "midgard5.item-value"}}</th>
<th class="title"><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">&nbsp;</th>
<th class="title"><img src="/icons/svg/d20.svg" class="table-icon"></th></th>
<th class="title add-item"><i class="fa-regular fa-plus"></i></th>
</tr>
</thead>
<tbody>
@@ -90,7 +90,8 @@
<th class="title">{{localize "TYPES.Item.weapon"}}</th>
<th class="title center">{{localize "midgard5.item-value"}}</th>
<th class="title"><img src="/systems/midgard5/assets/icons/icon/battle-gear.svg" class="table-icon"></th>
<th class="title">&nbsp;</th>
<th class="title add-weapon"><i class="fa-regular fa-plus"></i></th>
</tr>
</thead>
<tbody>
@@ -124,7 +125,7 @@
<th class="title">{{localize "TYPES.Item.defensiveWeapon"}}</th>
<th class="title center">{{localize "midgard5.item-value"}}</th>
<th class="title"><img src="/systems/midgard5/assets/icons/icon/battle-gear.svg" class="table-icon"></th>
<th class="title">&nbsp;</th>
<th class="title add-defensiveWeapon"><i class="fa-regular fa-plus"></i></th>
</tr>
</thead>
<tbody>
@@ -158,7 +159,7 @@
<th class="title">{{localize "TYPES.Item.armor"}}</th>
<th class="title center">{{localize "midgard5.item-value"}}</th>
<th class="title"><img src="/systems/midgard5/assets/icons/icon/battle-gear.svg" class="table-icon"></th>
<th class="title">&nbsp;</th>
<th class="title add-armor"><i class="fa-regular fa-plus"></i></th>
</tr>
</thead>
<tbody>
@@ -196,7 +197,7 @@
<th class="title center">{{localize "midgard5.item-value"}}</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">&nbsp;</th>
<th class="title add-container"><i class="fa-regular fa-plus"></i></th>
</tr>
</thead>
<tbody>
+1 -1
View File
@@ -4,7 +4,7 @@
<th class="title">{{localize "TYPES.Item.spell"}}</th>
<th class="title">{{localize "midgard5.ew"}}</th>
<th class="title"></th>
<th class="title"></th>
<th class="title add-spell"><i class="fa-regular fa-plus"></i></th>
</tr>
</thead>
<tbody>