- Enforce sidebar directory restrictions for non-GM players across actors, scenes, journal, tables, compendium, and combat - Major CSS refactor in mosh.css (layout, sizing, colour passes) - Actor sheet JS: extended item handling and sheet render logic - Actor data model updates in actor.js - Item sheet additions in item-sheet.js - Updated chat templates: itemRoll, modifyActor, modifyItem, reload, rollCheck, rollTable for improved formatting and clarity - Actor/creature sheet HTML restructured - Compendium pack DB files rotated (LevelDB log/manifest housekeeping) Co-authored-by: slaguru666 <timevans666@gmail.com>
98 lines
4.3 KiB
HTML
98 lines
4.3 KiB
HTML
<div class="mosh sla-chat-shell sla-chat-shell-item" {{#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="sla-chat-hero">
|
|
<div class="sla-chat-hero-main">
|
|
<div class="sla-chat-kicker-row">
|
|
<div class="sla-chat-kicker">Item Detail</div>
|
|
<div class="sla-chat-meta-row">
|
|
{{#if (compare 'str' item.system.sla.impact '===' 'heal')}}
|
|
<span class="sla-chat-type-badge sla-chat-type-heal">HLG</span>
|
|
{{else if item.system.roll}}
|
|
<span class="sla-chat-type-badge sla-chat-type-attack">ATK</span>
|
|
{{else if (compare 'str' item.type '===' 'ability')}}
|
|
<span class="sla-chat-type-badge sla-chat-type-ebb">ABL</span>
|
|
{{else}}
|
|
<span class="sla-chat-type-badge sla-chat-type-item">ITM</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{#if swapNameDesc}}
|
|
<div class="rollweaponh1 sla-chat-hero-title">{{swapName}}</div>
|
|
{{else}}
|
|
{{#if (compare 'int' item.name.length '>=' 22)}}
|
|
<div class="rollweaponh1 sla-chat-hero-title sla-chat-hero-title-tight">{{item.name}}</div>
|
|
{{else}}
|
|
<div class="rollweaponh1 sla-chat-hero-title">{{item.name}}</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
<div class="sla-chat-hero-media">
|
|
{{#if (compare 'str' item.type '===' 'ability')}}
|
|
{{#if (compare 'str' actor.img '===' 'icons/svg/mystery-man.svg')}}
|
|
<img class="roll-image" src="systems/sla-mothership/images/icons/ui/attributes/instinct.png" />
|
|
{{else}}
|
|
<img class="roll-image" src="{{actor.img}}" />
|
|
{{/if}}
|
|
{{else}}
|
|
<img class="roll-image" src="{{item.img}}" />
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
|
|
{{#if item.system.roll}}
|
|
<div class="description sla-chat-section {{#if (compare 'str' item.system.sla.impact '===' 'heal')}}sla-chat-section-heal{{else}}sla-chat-section-damage{{/if}}">
|
|
{{#if (compare 'str' item.system.sla.impact '===' 'heal')}}
|
|
<div class="body">You restore <strong>[[{{item.system.roll}}[damage]]]</strong> points of healing.</div>
|
|
{{else}}
|
|
<div class="body">You inflict <strong>[[{{item.system.roll}}[damage]]]</strong> points of damage.</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if item.system.severity}}
|
|
<div class="description sla-chat-section {{severityMeta.cssClass}}" data-severity="{{item.system.severity}}">
|
|
<div class="sla-chat-section-heading">
|
|
<span class="sla-chat-severity-pill {{severityMeta.cssClass}}">{{severityMeta.label}}</span>
|
|
</div>
|
|
<div class="body"><strong>{{ localize 'Mosh.Severity' }}:</strong> {{item.system.severity}}</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if item.system.armorPoints}}
|
|
<div class="description sla-chat-section">
|
|
<div class="body"><strong>{{ localize 'Mosh.ArmorPoints' }}:</strong> {{item.system.armorPoints}}</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if item.system.damageReduction}}
|
|
<div class="description sla-chat-section">
|
|
<div class="body"><strong>{{ localize 'Mosh.DMGReduction' }}:</strong> {{item.system.damageReduction}}</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if swapNameDesc}}
|
|
<div class="description sla-chat-section">
|
|
<div class="body">{{{item.name}}}</div>
|
|
</div>
|
|
{{else if (compare 'str' item.system.type '===' 'repair')}}
|
|
<div class="description sla-chat-section">
|
|
{{#if item.system.major}}
|
|
<div class="body"><strong>{{ localize 'Mosh.MajorRepair' }}</strong></div>
|
|
{{else}}
|
|
<div class="body"><strong>{{ localize 'Mosh.MinorRepair' }}</strong></div>
|
|
{{/if}}
|
|
</div>
|
|
<div class="description sla-chat-section">
|
|
<div class="body">{{{item.name}}}</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="description sla-chat-section">
|
|
<div class="body">{{{item.system.description}}}</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|