Template:Weapon action page: Difference between revisions

Jump to navigation Jump to search
(Fixed example being added to cargo table)
(Added hit cost)
Line 25: Line 25:


<dl class="bg3wiki-property-list">
<dl class="bg3wiki-property-list">
<dt> Cost:
{{#if: {{{cost|}}} |
<dt> Cost:</dt>
<dd> {{Resource|{{{cost}}}|{{{cost amount|1}}}}} {{#if: {{{cost2|}}} | + {{Resource|{{{cost2}}}|{{{cost2 amount|1}}}}}}}</dd>
| <dt> Cost:</dt>
<dd> {{InfoBlob | {{#switch: {{{action type|}}}
<dd> {{InfoBlob | {{#switch: {{{action type|}}}
     | movement = {{action | movement | ft = {{{movement ft}}} | m = {{{movement m}}} }}
     | movement = {{action | movement | ft = {{{movement ft}}} | m = {{{movement m}}} }}
     | #default = {{action | {{{action type|}}} }}
     | #default = {{action | {{{action type|}}} }}
     }} }}
     }} }}</dd>
{{#if: {{{damage|}}} |
}} {{#if: {{{hit cost|}}} |
<dt> Cost on hit:</dt>
<dd> {{Resource|{{{hit cost}}}|{{{hit cost amount|1}}}}} {{#if: {{{hit cost2|}}} | + {{Resource|{{{hit cost2}}}|{{{hit cost2 amount|1}}}}}}}</dd>
}} {{#if: {{{damage|}}} |
<dt> Damage:
<dt> Damage:
{{#if: {{{save effect|}}} |
{{#if: {{{save effect|}}} |