replaced attack type str with icons in char sheet
This commit is contained in:
parent
1ed54dccff
commit
0b93f5ff9e
5 changed files with 15 additions and 1 deletions
BIN
src/assets/DS4-MAT.png
Normal file
BIN
src/assets/DS4-MAT.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/DS4-MRA.png
Normal file
BIN
src/assets/DS4-MRA.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/DS4-RAT.png
Normal file
BIN
src/assets/DS4-RAT.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
|
@ -66,4 +66,14 @@ export const DS4 = {
|
||||||
chain: "DS4.ArmorMaterialTypeChain",
|
chain: "DS4.ArmorMaterialTypeChain",
|
||||||
plate: "DS4.ArmorMaterialTypePlate",
|
plate: "DS4.ArmorMaterialTypePlate",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * Define the file paths to icon images
|
||||||
|
* @type {Object}
|
||||||
|
*/
|
||||||
|
attackTypesIcons: {
|
||||||
|
melee: "systems/ds4/assets/DS4-MAT.png",
|
||||||
|
meleeRanged: "systems/ds4/assets/DS4-MRA.png",
|
||||||
|
ranged: "systems/ds4/assets/DS4-RAT.png",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,7 +45,11 @@
|
||||||
{{!-- name --}}
|
{{!-- name --}}
|
||||||
<h4 class="item-name flex3">{{item.name}}</h4>
|
<h4 class="item-name flex3">{{item.name}}</h4>
|
||||||
{{!-- item specifics --}}
|
{{!-- item specifics --}}
|
||||||
<div>{{lookup ../../config.attackTypes itemData.attackType}}</div> {{!-- SPECIFIC --}}
|
<div>
|
||||||
|
<img src="{{lookup ../../config.attackTypesIcons itemData.attackType}}" {{!--
|
||||||
|
title="{{lookup ../../config.attackTypesIcons itemData.attackType}}" --}}
|
||||||
|
title="{{lookup ../../config.attackTypes itemData.attackType}}" width="24" height="24" />
|
||||||
|
</div> {{!-- SPECIFIC --}}
|
||||||
<div class="flexrow flex15">
|
<div class="flexrow flex15">
|
||||||
<div class="item-num-val">{{itemData.weaponBonus}}</div> {{!-- SPECIFIC --}}
|
<div class="item-num-val">{{itemData.weaponBonus}}</div> {{!-- SPECIFIC --}}
|
||||||
<div class="item-num-val">{{itemData.opponentDefense}}</div> {{!-- SPECIFIC --}}
|
<div class="item-num-val">{{itemData.opponentDefense}}</div> {{!-- SPECIFIC --}}
|
||||||
|
|
Loading…
Reference in a new issue