Files
foundry-Slamother/templates/chat/itemroll.html
T

69 lines
2.8 KiB
HTML

<div class="mosh" {{#if actor._id}}data-actor-id="{{actor._id}}" {{/if}}
{{#if item._id}}data-item-id="{{item._id}}" {{/if}} {{#if tokenId}}data-token-id="{{tokenId}}" {{/if}}>
<div class="showinfo"></div>
<div class="showlessinfo"></div>
<div class="rollcontainer">
<div class="flexrow"></div>
{{#if (compare 'str' item.img '===' 'modules/fvtt_mosh_1e_psg/icons/equipment/trinket.png')}}
<div class="rollweaponh1" >TRINKET</div>
{{else if (compare 'str' item.img '===' 'modules/fvtt_mosh_1e_psg/icons/equipment/patch.png')}}
<div class="rollweaponh1" >PATCH</div>
{{else}}
{{#if (compare 'int' item.name.length '>=' 22)}}
<div class="rollweaponh1" style="font-size: 0.75rem; padding-top: 7px;">{{item.name}}</div>
{{else}}
<div class="rollweaponh1" >{{item.name}}</div>
{{/if}}
{{/if}}
{{#if (compare 'str' item.type '===' 'ability')}}
<div style="text-align: right"><img class="roll-image" src="{{actor.img}}" /></div>
{{else}}
<div style="text-align: right"><img class="roll-image" src="{{item.img}}" /></div>
{{/if}}
</div>
{{#if item.system.roll}}
<div class="description">
<div class="body">You inflict <strong>[[{{item.system.roll}}]]</strong> points of damage.</div>
</div>
<div style="margin-bottom : 10px;"></div>
<div style="border-bottom: 1px solid #999; height: 0; width: 100%;"></div>
<div style="margin-bottom : 5px;"></div>
{{/if}}
{{#if item.system.severity}}
<div class="description">
<div class="body"><strong>Severity: </strong>{{item.system.severity}}</div>
</div>
<div style="margin-bottom : 5px;"></div>
<div style="border-bottom: 1px solid #999; height: 0; width: 100%;"></div>
<div style="margin-bottom : 5px;"></div>
{{/if}}
{{#if item.system.armorPoints}}
<div class="description">
<div class="body"><strong>Armor Points: </strong>{{item.system.armorPoints}}</div>
</div>
{{#if item.system.damageReduction}}
<div class="description">
<div class="body"><strong>Damage Reduction: </strong>{{item.system.damageReduction}}</div>
</div>
{{/if}}
<div style="margin-bottom : 5px;"></div>
<div style="border-bottom: 1px solid #999; height: 0; width: 100%;"></div>
<div style="margin-bottom : 5px;"></div>
{{/if}}
{{#if (compare 'str' item.system.description '===' '<p>Trinket</p>')}}
<div class="description">
<div class="body">{{{item.name}}}</div>
</div>
<div style="margin-bottom : 16px;"></div>
{{else if (compare 'str' item.system.description '===' '<p>Patch</p>')}}
<div class="description">
<div class="body">{{{item.name}}}</div>
</div>
<div style="margin-bottom : 16px;"></div>
{{else}}
<div class="description">
<div class="body">{{{item.system.description}}}</div>
</div>
<div style="margin-bottom : 16px;"></div>
{{/if}}
</div>