107 lines
5.0 KiB
Handlebars
107 lines
5.0 KiB
Handlebars
<div class="flexbox">
|
|
<div class="flexcolumn-1">
|
|
<div class="flexpart">
|
|
<div class="flexpart-header"><img src="icons/magic/symbols/star-inverted-yellow.webp" class="flexpart-icon">{{localize "midgard5.spellCasting"}}</div>
|
|
<table>
|
|
<tr height = 10px></tr>
|
|
<tr>
|
|
<td bgcolor="#eaead7" class="padding edit-item highlight" >{{localize "midgard5.spellCasting"}}</td>
|
|
<td bgcolor="#eaead7" class="center">{{data.calc.stats.spellCasting.value}}</td>
|
|
<td bgcolor="#eaead7" class="fixed-value" style="border-right: 1px solid black;"><button class="roll-button roll-cleanSpell-button" /></td>
|
|
<td class="padding edit-item highlight">{{localize "midgard5.defense"}}</td>
|
|
<td class="center">{{add data.calc.stats.defense.value data.calc.stats.defenseBonus.value}}</td>
|
|
<td class="fixed-value" style="border-right: 1px solid black;"><button class="roll-button roll-defense-button"></button></td>
|
|
<td bgcolor="#eaead7" class="padding edit-item highlight">{{localize "midgard5.resistanceMind"}}</td>
|
|
<td bgcolor="#eaead7" class="center">{{data.calc.stats.resistanceMind.value}}</td>
|
|
<td bgcolor="#eaead7" class="fixed-value" style="border-right: 1px solid black;"><button class="roll-button roll-resistanceMind-button"></button></td>
|
|
<td class="padding edit-item highlight">{{localize "midgard5.resistanceBody"}}</td>
|
|
<td class="center">{{data.calc.stats.resistanceBody.value}}</td>
|
|
<td class="fixed-value"><button class="roll-button roll-resistanceBody-button"></button></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="flexcolumn-1">
|
|
<div class="flexpart">
|
|
<div class="flexpart-header"><img src="icons/sundries/books/book-turquoise-moon.webp" class="flexpart-icon">{{localize "TYPES.Item.spell"}}</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th class="title"><img src="/icons/svg/eye.svg" class="table-icon"></th>
|
|
<th class="title">{{localize "TYPES.Item.spell"}}</th>
|
|
<th class="title">{{localize "midgard5.spell-type"}}</th>
|
|
<th class="title">{{localize "midgard5.spell-castDuration-short"}}</th>
|
|
<th class="title">{{localize "midgard5.actor-ap-short"}}</th>
|
|
<th class="title">{{localize "midgard5.spell-range-short"}}</th>
|
|
<th class="title">{{localize "midgard5.spell-effectTarget"}}</th>
|
|
<th class="title">{{localize "midgard5.spell-effectArea-short"}}</th>
|
|
<th class="title">{{localize "midgard5.spell-effectDuration-short"}}</th>
|
|
<th class="title">{{localize "midgard5.ew"}}</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>
|
|
<td><a class="title add-spell"><i class="fa-regular fa-plus"></i></a></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="items-list">
|
|
{{#each data.calc.spells as |item itemId|}}
|
|
<tr data-item-id="{{itemId}}" class="item">
|
|
<td class="flexpart-img"><img src={{item.icon}} class="flexpart-icon"></td>
|
|
<td class="padding edit-item">
|
|
<span>{{item.label}}</span>
|
|
<span class="spell-process">{{localize item.process}}</span>
|
|
</td>
|
|
<td class="fixed-value">{{localize (m5concat 'midgard5.spell-type-' item.type)}}</td>
|
|
<td class="fixed-value">{{item.castDuration}}</td>
|
|
<td class="fixed-value">{{item.ap}}</td>
|
|
<td class="fixed-value">{{item.range}}</td>
|
|
<td class="fixed-value">{{localize (m5concat 'midgard5.spell-target-' item.effectTarget)}}</td>
|
|
<td class="fixed-value">{{item.effectArea}}</td>
|
|
<td class="fixed-value">{{item.effectDuration}}</td>
|
|
<td class="fixed-value">{{item.calc.ew}}</td>
|
|
<td class="change-equipped">
|
|
{{#if item.equipped}}
|
|
<i class="fa-solid fa-circle-check"></i>
|
|
{{else}}
|
|
<i class="fa-regular fa-circle"></i>
|
|
{{/if}}
|
|
</td>
|
|
<td class="fixed-value"><button class="roll-button roll-weapon-button" /></td>
|
|
<td class="fixed-value"><a class="item-delete" title="Delete Item"><i class="fas fa-trash"></i></a></td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flexcolumn-1">
|
|
<div class="flexpart">
|
|
<div class="flexpart-header">{{localize "midgard5.pp"}} {{localize "midgard5.spells"}}</div>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="4">
|
|
<div class="flexrow">
|
|
|
|
{{#each data.lernKostenZauber as |group name|}}
|
|
<span data-pp-name="{{name}}" class="pp-listing">
|
|
<label for="data.lernKostenZauber.{{name}}">{{localize (m5concat "midgard5.spell-process-" name)}}</label>
|
|
<span >
|
|
<i class="fa fa-minus-circle pp-decrease" style="cursor: pointer"></i>
|
|
<input style="width:15px" type="number" value={{group.pp}} data-dtype="Number" />
|
|
<i class="fa fa-plus-circle pp-increase" style="cursor: pointer"></i>
|
|
</span>
|
|
</span>
|
|
{{/each}}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|