cypher actor embeds complete

This commit is contained in:
2026-09-25 23:45:56 -05:00
parent d2fa2f3530
commit dd98aa5e0e
4 changed files with 141 additions and 47 deletions
+11 -29
View File
@@ -1,32 +1,14 @@
<i class="{{icon}}"></i>
<strong>{{actor.name}}</strong>
{{#if (eq actor.type "pc") }}
<em>{{ localize "CYPHERSYSTEM.IsA" }}</em> {{ basic.descriptor }} {{ basic.type }}
<em>{{ localize "CYPHERSYSTEM.Who" }}</em> {{ basic.focus }} {{ basic.additionalSentence }}
{{/if}}
<strong>{{actorName}}</strong>:
{{#if viewFullDocument}}
{{#if basic.rank}}
<strong>{{ localize "CYPHERSYSTEM.Rank" }}</strong> {{ basic.rank }}
{{/if}}
{{#if basic.level}}
<strong>{{ localize "CYPHERSYSTEM.Level" }}</strong> {{ basic.level }}
{{/if}}
{{#if basic.tier}}
<strong>{{ localize "CYPHERSYSTEM.Tier" }}</strong> {{ basic.tier }}
{{/if}}
{{#if pools.health}}
<strong>{{ localize "CYPHERSYSTEM.Health" }}</strong> {{ pools.health.value }}/{{ pools.health.max}}
{{/if}}
{{#if pools.infrastructure}}
<strong>{{ localize "CYPHERSYSTEM.Infrastructure" }}</strong> {{ pools.infrastructure.value }}/{{ pools.infrastructure.max}}
{{/if}}
{{#if pools.might}}
<strong>{{ localize "CYPHERSYSTEM.Might" }}</strong> {{ pools.might.value }}/{{ pools.might.max}}
{{/if}}
{{#if pools.speed}}
<strong>{{ localize "CYPHERSYSTEM.Speed" }}</strong> {{ pools.speed.value }}/{{ pools.speed.max}}
{{/if}}
{{#if pools.intellect}}
<strong>{{ localize "CYPHERSYSTEM.Intellect" }}</strong> {{ pools.intellect.value }}/{{ pools.intellect.max}}
{{/if}}
{{#each stats}}
{{#unless noInline}}
<span><strong>{{ localize name }}</strong>: {{ value }}</span>
{{~#unless @last}},{{/unless}}
{{/unless}}
{{/each}}
{{#each pools}}
<span><strong>{{ localize name }}</strong>: {{ value.value }}</span>
{{~#unless @last}},{{/unless}}
{{/each}}
{{/if}}
+54
View File
@@ -0,0 +1,54 @@
<section class="mb-cypher2-embed-header">
<h1>{{actorName}}</h1>
{{#if (eq actor.type "pc") }}
<div class="mb-cypher-embed-sentence">
<strong>{{ localize "CYPHERSYSTEM.IsA" }}</strong> {{ sentence.descriptor }} {{ sentence.type }}
<strong>{{ localize "CYPHERSYSTEM.Who" }}</strong> {{ sentence.focus }} {{ sentence.additionalSentence }}
</div>
{{/if}}
{{#if (and viewFullDocument (or stats pools))}}
<h2>Stats</h2>
{{#if stats}}
<div class="mb-cypher-embed-basic-combat">
{{#each stats}}
<span><strong>{{ localize name }}</strong>: {{ value }}</span>
{{~#unless @last}},{{/unless}}
{{/each}}
</div>
{{/if}}
{{#if pools}}
<div class="mb-cypher-embed-pools">
{{#each pools}}
<span class="mb-cypher-embed-pool">
<strong>{{ localize name }}</strong>:
<span>{{value.value}}/{{value.max}}</span>
{{~#if (eq actor.type "pc")}}
<span>({{ localize "CYPHERSYSTEM.Edge" }}: {{value.edge}})</span>
{{~/if~}}
{{~#unless @last}},{{/unless~}}
</span>
{{/each}}
</div>
{{/if}}
{{/if}}
</section>
<section class="mb-cypher2-embed-notes">
{{#if enriched.description}}
<details class="mb-cypher2-embed-detail" open name="mb-cypher2-embed-{{actor.uuid}}">
<summary><strong>Description</strong></summary>
{{{enriched.description}}}
</details>
{{/if}}
{{#if (and enriched.gmNotes user.isGM)}}
<details class="mb-cypher2-embed-detail" name="mb-cypher2-embed-{{actor.uuid}}">
<summary><strong>GM Notes</strong></summary>
{{{enriched.gmNotes}}}
</details>
{{/if}}
{{#if (and enriched.notes viewFullDocument)}}
<details class="mb-cypher2-embed-detail" name="mb-cypher2-embed-{{actor.uuid}}">
<summary><strong>Notes</strong></summary>
{{{enriched.notes}}}
</details>
{{/if}}
</section>