mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 21:21:08 +01:00
Initial commit
This commit is contained in:
commit
aa4021d1a2
163 changed files with 26530 additions and 0 deletions
19
templates/sheets/parts/armor.hbs
Normal file
19
templates/sheets/parts/armor.hbs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<fieldset class="left-main-container armor-section active-item-section item-section">
|
||||
<legend class="legend armor-container">
|
||||
<span>{{localize "DAGGERHEART.Sheets.PC.Armor.Title"}}</span>
|
||||
{{#if armor}}
|
||||
<div data-action="viewObject" data-value="{{armor.uuid}}" class="active-item-label-chip">
|
||||
<img src="{{armor.img}}" />
|
||||
<button data-action="removeActiveItem" data-item="{{armor.uuid}}"><i class="fa-solid fa-x"></i></button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</legend>
|
||||
|
||||
<div class="active-item-container">
|
||||
<div class="flexrow">
|
||||
<input value="{{armor.name}}" type="text" />
|
||||
<input value="{{armor.system.baseScore}}" type="text" />
|
||||
</div>
|
||||
<input value="{{localize armor.system.featureInfo.name}} {{#if armor.system.featureInfo}}({{localize armor.system.featureInfo.description}}){{/if}}" type="text" />
|
||||
</div>
|
||||
</fieldset>
|
||||
39
templates/sheets/parts/attributes.hbs
Normal file
39
templates/sheets/parts/attributes.hbs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<fieldset class="abilities-container">
|
||||
<legend class="legend">
|
||||
{{localize "Attributes"}}
|
||||
<i data-action="toggleEditAttributes" title="{{localize "DAGGERHEART.Sheets.PC.Attributes.AttributeBaseMenuTitle"}}" class="fa-solid fa-gear icon-button" style="position: absolute; top: 1px; right: calc(50% - 56px); background: url(../ui/parchment.jpg) repeat;"></i>
|
||||
</legend>
|
||||
|
||||
{{#each this.attributes as |attribute key|}}
|
||||
<div class="attribute">
|
||||
<div class="attribute-banner">
|
||||
<img class="attribute-roll" data-action="attributeRoll" data-value="{{attribute.data.value}}" src="icons/svg/d12-grey.svg" />
|
||||
<div class="attribute-text">{{key}}</div>
|
||||
</div>
|
||||
<div class="attribute-mark {{#if (and (not attribute.levelMark) (and (not (includes attribute.levelMarks ../document.system.levelData.currentLevel)) (gt ../document.system.availableAttributeMarks.length 0)))}}selectable{{/if}}" data-action="toggleAttributeMark" data-attribute="{{key}}">
|
||||
<i class="fa-solid fa-check {{#if attribute.levelMark}}selected{{/if}}"></i>
|
||||
</div>
|
||||
<div class="attribute-image">
|
||||
{{#if ../editAttributes}}
|
||||
<select class="attribute-value{{#if (lt attribute.data.base 0)}} negative{{/if}}{{#if (and (not attribute.data.base) (not ../abilityScoresFinished))}} unselected{{/if}}" data-attribute="{{key}}">
|
||||
{{#if (not (eq attribute.data.base 0))}}<option value="">{{attribute.data.base}}</option>{{/if}}
|
||||
{{#each ../abilityScoreArray as |option|}}
|
||||
<option value="{{option.value}}"{{#if (eq option.value attribute.data.base)}} selected="selected"{{/if}}>{{option.name}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
{{else}}
|
||||
<div class="attribute-text {{#if (lt attribute.data.value 0)}}negative{{/if}}">{{attribute.data.value}}</div>
|
||||
{{/if}}
|
||||
<img src="systems/daggerheart/assets/AttributeShield.svg" />
|
||||
<div>
|
||||
{{#each this.descriptors}}
|
||||
<div class="descriptor">{{this}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
{{#each attribute.verbs}}
|
||||
<div class="attribute-verb">{{this}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
31
templates/sheets/parts/defense.hbs
Normal file
31
templates/sheets/parts/defense.hbs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<fieldset class="left-main-container">
|
||||
<legend class="legend">{{localize "Defense"}}</legend>
|
||||
|
||||
<div class="defense-row">
|
||||
<div class="defense-section">
|
||||
<div class="defense-container">
|
||||
<div class="defense-value">{{document.system.evasion}}</div>
|
||||
<img src="systems/daggerheart/assets/AttributeShield.svg" />
|
||||
<div class="defense-banner">{{localize "DAGGERHEART.Sheets.PC.Defense.Evasion"}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="vertical-separator" style="height: 84px; align-self: baseline; margin-right: 8px;"></div>
|
||||
<div class="defense-section armor">
|
||||
<div class="defense-container">
|
||||
<div class="defense-value">{{#if document.system.armor.system.baseScore}}{{document.system.armor.system.baseScore}}{{else}}0{{/if}}</div>
|
||||
<img src="systems/daggerheart/assets/AttributeShield.svg" />
|
||||
<div class="defense-banner">{{localize "DAGGERHEART.Sheets.PC.Defense.Armor"}}</div>
|
||||
</div>
|
||||
<div class="armor-marks">
|
||||
{{#times (subtract 12 document.system.armorMarks.max)}}
|
||||
<input class="mark disabled-mark" type="checkbox" disabled />
|
||||
{{/times}}
|
||||
{{#times document.system.armorMarks.max}}
|
||||
{{#with (add this 1)}}
|
||||
<input class="mark" type="checkbox" data-action="toggleMarks" data-value="{{this}}" {{ checked (gte ../../document.system.armor.system.marks.value this) }} />
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
26
templates/sheets/parts/domainCard.hbs
Normal file
26
templates/sheets/parts/domainCard.hbs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<div class="abilities-card">
|
||||
<div class="abilities-card-image-container">
|
||||
<img class="abilities-card-image" src="{{card.img}}" />
|
||||
<div class="abilities-card-level">{{card.system.level}} <img src="icons/svg/sword.svg" /></div>
|
||||
{{#if inVault}}
|
||||
<div class="abilities-card-refresh-cost icon-button {{#if card.sendToLoadoutDisabled}}disabled{{/if}}" data-action="sendToLoadout" data-domain="{{card.uuid}}" title="{{localize "DAGGERHEART.Sheets.PC.DomainCard.Recall"}}">
|
||||
{{card.system.recallCost}} <i class="fa-solid fa-bolt"></i>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="abilities-card-refresh-cost icon-button" data-action="sendToVault" data-domain="{{card.uuid}}" title="{{localize "DAGGERHEART.Sheets.PC.DomainCard.ToVault"}}">
|
||||
{{card.system.recallCost}} <i class="fa-solid fa-bolt"></i>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="abilities-card-type">
|
||||
<div class="abilities-card-type-text">{{card.system.type}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="abilities-text-container domain">
|
||||
<div class="abilities-card-title">{{card.name}}</div>
|
||||
{{#if inVault}}
|
||||
<div class="abilities-card-description">{{{card.system.effect}}}</div>
|
||||
{{else}}
|
||||
<div class="abilities-card-description abilities-card-effect" data-action="useDomainCard" data-key="{{card.uuid}}" data-domain="{{card.system.domain}}">{{{card.system.effect}}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
69
templates/sheets/parts/effects.hbs
Normal file
69
templates/sheets/parts/effects.hbs
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<div>
|
||||
<h2>
|
||||
{{localize "Effects"}}
|
||||
<select class="effect-select">
|
||||
{{selectOptions this.config.effectTypes selected=this.selectedEffectType labelAttr="name" localize=true blank=""}}
|
||||
</select>
|
||||
<i class="fa-solid fa-plus icon-button {{#if (not this.selectedEffectType)}}disabled{{/if}}" data-action="addEffect"></i>
|
||||
</h2>
|
||||
|
||||
{{#each this.effects as |effect key|}}
|
||||
<fieldset>
|
||||
<legend>
|
||||
{{effect.type}}
|
||||
<i class="fa-solid fa-trash icon-button flex0" data-action="removeEffect" data-effect="{{key}}"></i>
|
||||
</legend>
|
||||
{{#if effect.applyLocationChoices}}
|
||||
<div class="form-group">
|
||||
<label>Apply Location</label>
|
||||
<select name="system.effects.{{key}}.appliesOn">
|
||||
{{selectOptions effect.applyLocationChoices selected=effect.appliesOn localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq effect.valueType ../config.valueTypes.numberString.id)}}
|
||||
{{#if (eq effect.type ../config.effectTypes.damage.id) }}
|
||||
<div class="form-group">
|
||||
{{!-- <label></label> --}}
|
||||
<div class="form-fields">
|
||||
<label>Value</label>
|
||||
<input type="text" name="system.effects.{{key}}.valueData.value" value="{{effect.valueData.value}}" />
|
||||
<label style="text-wrap: nowrap;">Initially Selected</label>
|
||||
<input type="checkbox" name="system.effects.{{key}}.initiallySelected" {{checked effect.initiallySelected}} />
|
||||
</div>
|
||||
</div>
|
||||
{{!-- <div class="flexrow">
|
||||
<input type="text" name="system.effects.{{key}}.valueData.value" value="{{effect.valueData.value}}" />
|
||||
<i class="fa-solid fa-trash icon-button flex0" data-action="removeEffect" data-effect="{{key}}"></i>
|
||||
</div> --}}
|
||||
<div class="form-group">
|
||||
<label>Hope Increase</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="system.effects.{{key}}.valueData.hopeIncrease" value="{{effect.valueData.hopeIncrease}}" />
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="form-group">
|
||||
{{!-- <label></label> --}}
|
||||
<div class="form-fields">
|
||||
<label>Value</label>
|
||||
<input type="text" name="system.effects.{{key}}.valueData.value" value="{{effect.valueData.value}}" />
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if (eq effect.valueType ../config.valueTypes.select.id)}}
|
||||
<div class="flexrow">
|
||||
<select name="system.effects.{{key}}.valueData.fromValue" value="{{effect.valueData.fromValue}}">
|
||||
{{selectOptions effect.options selected=effect.valueData.fromValue labelAttr="name" nameAttr="value" localize=true blank="" }}
|
||||
</select>
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<select name="system.effects.{{key}}.valueData.value" value="{{effect.valueData.value}}">
|
||||
{{selectOptions effect.options selected=effect.valueData.value labelAttr="name" nameAttr="value" localize=true blank="" }}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
</div>
|
||||
15
templates/sheets/parts/experience.hbs
Normal file
15
templates/sheets/parts/experience.hbs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<fieldset class="left-main-container experience-container">
|
||||
<legend class="legend">{{localize "DAGGERHEART.Sheets.PC.Experience.Title"}}</legend>
|
||||
{{#each document.system.experiences as |experience index|}}
|
||||
<div class="experience-row">
|
||||
<input class="experience-description" data-index={{index}} value="{{experience.description}}" type="text" />
|
||||
<div class="experience-value">{{experience.value}}</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#times (subtract 5 document.system.experiences.length)}}
|
||||
<div class="experience-row">
|
||||
<input type="text" class="disabled-experience" disabled />
|
||||
<div class="experience-value empty"></div>
|
||||
</div>
|
||||
{{/times}}
|
||||
</fieldset>
|
||||
48
templates/sheets/parts/features.hbs
Normal file
48
templates/sheets/parts/features.hbs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<fieldset class="left-main-container" style="flex: 1;">
|
||||
<legend class="legend">
|
||||
{{#if this.document.system.class}}
|
||||
{{#if this.document.system.multiclass}}
|
||||
<span class="class-feature-selectable {{#if this.multiclass}}inactive{{/if}}" data-action="selectFeatureSet" data-multiclass="false">{{this.document.system.class.name}} {{localize "DAGGERHEART.General.Features"}}</span>
|
||||
/
|
||||
<span class="class-feature-selectable {{#if (not this.multiclass)}}inactive{{/if}}" data-action="selectFeatureSet" data-multiclass="true">{{this.document.system.multiclass.name}} {{localize "DAGGERHEART.General.Features"}}</span>
|
||||
{{else}}
|
||||
<span>{{this.document.system.class.name}} {{localize "DAGGERHEART.General.Features"}}</span>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<span>{{localize "DAGGERHEART.Sheets.PC.Features.Title"}}</span>
|
||||
{{/if}}
|
||||
</legend>
|
||||
|
||||
<div class="features-container" style="font-size: 11px;">
|
||||
{{#each this.features as |feature index|}}
|
||||
<div class="feature-container">
|
||||
<img class="feature-img" src="{{feature.img}}" />
|
||||
<div class="feature-label icon-button" data-action="viewObject" data-value="{{feature.uuid}}">{{feature.name}}</div>
|
||||
<button data-action="useFeature" data-id="{{feature.uuid}}"><i class="fa-solid fa-message"></i></button>
|
||||
</div>
|
||||
<div class="flexrow flex-centered">
|
||||
<div>{{{feature.system.description}}}</div> {{!-- Maybe maybe --}}
|
||||
{{#if (eq feature.system.featureType.type 'input')}}
|
||||
<input class="feature-input flex0" type="text" data-feature="{{feature.uuid}}" value="{{feature.system.featureType.data.value}}" data-dtype="Number" />
|
||||
{{/if}}
|
||||
{{#if (eq feature.system.featureType.type 'dice')}}
|
||||
<div class="feature-tick-container">
|
||||
{{#times feature.system.featureType.data.max}}
|
||||
{{#if (gt ../this.system.featureType.data.property this)}}
|
||||
<div data-action="toggleFeatureDice" data-feature="{{../this.uuid}}" data-index="{{this}}" class="feature-tick {{#if (lookup (lookup ../this.system.featureType.data.numbers this) 'used')}}used{{/if}}">
|
||||
{{#if (lookup (lookup ../this.system.featureType.data.numbers this) 'value')}}
|
||||
<div class="feature-dice-value">{{lookup (lookup ../this.system.featureType.data.numbers this) 'value'}}</div>
|
||||
{{else}}
|
||||
<img src="icons/dice/{{../this.system.featureType.data.value}}black.svg" />
|
||||
{{/if}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="feature-tick disabled"></div>
|
||||
{{/if}}
|
||||
{{/times}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
88
templates/sheets/parts/gold.hbs
Normal file
88
templates/sheets/parts/gold.hbs
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
<fieldset class="left-main-container" style="padding-top: 0; margin-top: 8px;">
|
||||
<legend class="legend" style="line-height: 2px;">{{localize "DAGGERHEART.Sheets.PC.Gold.Title"}}</legend>
|
||||
|
||||
<div class="gold-section">
|
||||
<fieldset class="gold-fieldset">
|
||||
<legend>
|
||||
{{localize "DAGGERHEART.Sheets.PC.Gold.Coins"}}
|
||||
</legend>
|
||||
<div class="gold-column">
|
||||
<div class="gold-row">
|
||||
{{#times 5}}
|
||||
{{#with (add this 1)}}
|
||||
<img src="icons/svg/coins.svg" class="{{#if (gte ../../document.system.gold.coins this)}}owned{{/if}}" data-action="toggleGold" data-value="{{this}}" data-type="coins" />
|
||||
{{!-- <input class="gold-checkbox" type="checkbox" data-action="toggleGold" data-value="{{this}}" data-type="hoards" {{ checked (gte ../../document.system.gold.hoards this) }} /> --}}
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
</div>
|
||||
<div class="gold-row">
|
||||
{{#times 4}}
|
||||
{{#with (add this 6)}}
|
||||
<img src="icons/svg/coins.svg" class="{{#if (gte ../../document.system.gold.coins this)}}owned{{/if}}" data-action="toggleGold" data-value="{{this}}" data-type="coins" />
|
||||
{{!-- <input class="gold-checkbox" type="checkbox" data-action="toggleGold" data-value="{{this}}" data-type="hoards" {{ checked (gte ../../document.system.gold.hoards this) }} /> --}}
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="gold-fieldset">
|
||||
<legend>
|
||||
{{localize "DAGGERHEART.Sheets.PC.Gold.Handfulls"}}
|
||||
</legend>
|
||||
<div class="gold-column">
|
||||
<div class="gold-row">
|
||||
{{#times 5}}
|
||||
{{#with (add this 1)}}
|
||||
{{!-- <input class="gold-checkbox" type="checkbox" data-action="toggleGold" data-value="{{this}}" data-type="handfulls" {{ checked (gte ../../document.system.gold.handfulls this) }} /> --}}
|
||||
<i class="fa-solid fa-coins {{#if (gte ../../document.system.gold.handfulls this)}}owned{{/if}}" data-action="toggleGold" data-value="{{this}}" data-type="handfulls"></i>
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
</div>
|
||||
<div class="gold-row">
|
||||
{{#times 4}}
|
||||
{{#with (add this 6)}}
|
||||
{{!-- <input class="gold-checkbox" type="checkbox" data-action="toggleGold" data-value="{{this}}" data-type="handfulls" {{ checked (gte ../../document.system.gold.handfulls this) }} /> --}}
|
||||
<i class="fa-solid fa-coins {{#if (gte ../../document.system.gold.handfulls this)}}owned{{/if}}" data-action="toggleGold" data-value="{{this}}" data-type="handfulls"></i>
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="gold-fieldset">
|
||||
<legend>
|
||||
{{localize "DAGGERHEART.Sheets.PC.Gold.Bags"}}
|
||||
</legend>
|
||||
<div class="gold-column">
|
||||
<div class="gold-row">
|
||||
{{#times 5}}
|
||||
{{#with (add this 1)}}
|
||||
{{!-- <input class="gold-checkbox" type="checkbox" data-action="toggleGold" data-value="{{this}}" data-type="handfulls" {{ checked (gte ../../document.system.gold.handfulls this) }} /> --}}
|
||||
<i class="fa-solid fa-sack-dollar {{#if (gte ../../document.system.gold.bags this)}}owned{{/if}}" data-action="toggleGold" data-value="{{this}}" data-type="bags"></i>
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
</div>
|
||||
<div class="gold-row">
|
||||
{{#times 4}}
|
||||
{{#with (add this 6)}}
|
||||
{{!-- <input class="gold-checkbox" type="checkbox" data-action="toggleGold" data-value="{{this}}" data-type="handfulls" {{ checked (gte ../../document.system.gold.handfulls this) }} /> --}}
|
||||
<i class="fa-solid fa-sack-dollar {{#if (gte ../../document.system.gold.bags this)}}owned{{/if}}" data-action="toggleGold" data-value="{{this}}" data-type="bags"></i>
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
</div>
|
||||
|
||||
{{!-- <input class="gold-checkbox" type="checkbox" data-action="toggleGold" data-value="{{this}}" data-type="bags" {{ checked (gte ../../document.system.gold.bags this) }} /> --}}
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="gold-fieldset" style="min-width: 56px;">
|
||||
<legend>
|
||||
{{localize "DAGGERHEART.Sheets.PC.Gold.Chests"}}
|
||||
</legend>
|
||||
|
||||
<div class="gold-column">
|
||||
<img src="icons/svg/chest.svg" class="{{#if (gte document.system.gold.chests 1)}}owned{{/if}}" style="min-height: 32px; min-width: 32px;" data-action="toggleGold" data-value="1" data-type="chests" />
|
||||
{{!-- <input class="gold-checkbox" type="checkbox" data-action="toggleGold" data-value="{{this}}" data-type="chests" {{ checked (gte ../../document.system.gold.chests this) }} /> --}}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
58
templates/sheets/parts/health.hbs
Normal file
58
templates/sheets/parts/health.hbs
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<fieldset class="left-main-container">
|
||||
<legend class="legend">{{localize "DAGGERHEART.Sheets.PC.Health.Title"}}</legend>
|
||||
|
||||
<div class="threshold-container">
|
||||
<div class="threshold-box">
|
||||
{{document.system.damageThresholds.minor}}
|
||||
</div>
|
||||
<div class="threshold-spacer">
|
||||
<i class="fa-solid fa-caret-left"></i>
|
||||
<div class="health-category">{{localize "DAGGERHEART.Sheets.PC.Health.Minor"}}</div>
|
||||
</div>
|
||||
|
||||
<div class="threshold-box">
|
||||
{{document.system.damageThresholds.major}}
|
||||
</div>
|
||||
<div class="threshold-spacer">
|
||||
<i class="fa-solid fa-caret-left"></i>
|
||||
<div class="health-category">{{localize "DAGGERHEART.Sheets.PC.Health.Major"}}</div>
|
||||
</div>
|
||||
|
||||
<div class="threshold-box">
|
||||
{{document.system.damageThresholds.severe}}
|
||||
</div>
|
||||
<div class="threshold-spacer">
|
||||
<i class="fa-solid fa-caret-left"></i>
|
||||
<div class="health-category">{{localize "DAGGERHEART.Sheets.PC.Health.Severe"}}</div>
|
||||
</div>
|
||||
<i data-action="makeDeathMove" class="fas fa-skull death-save {{#if (lt resources.health.value document.system.resources.health.max)}}disabled{{/if}}" title="{{localize "DAGGERHEART.Sheets.PC.Health.DeathMoveTooltip"}}"></i>
|
||||
</div>
|
||||
<div class="flexrow" style="flex-wrap: nowrap; align-items: center;">
|
||||
<div class="flexcol flex0">
|
||||
<div class="resource-label">{{localize "DAGGERHEART.Sheets.PC.Health.HealthTitle"}}</div>
|
||||
<div class="resource-label" style="margin-right: 1px;">{{localize "DAGGERHEART.Sheets.PC.Health.StressTitle"}}</div>
|
||||
</div>
|
||||
<div class="flexcol">
|
||||
<div class="flexrow" style="flex-wrap: nowrap;">
|
||||
{{#times document.system.resources.health.max}}
|
||||
{{#with (add this 1)}}
|
||||
<input class="resource-box" type="checkbox" data-action="toggleHP" data-value="{{this}}" {{ checked (gte ../../document.system.resources.health.value this) }} />
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
{{#times (subtract 12 document.system.resources.health.max)}}
|
||||
<input class="resource-box disabled" type="checkbox" disabled />
|
||||
{{/times}}
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
{{#times document.system.resources.stress.max}}
|
||||
{{#with (add this 1)}}
|
||||
<input class="resource-box" type="checkbox" data-action="toggleStress" data-value="{{this}}" {{ checked (gte ../../document.system.resources.stress.value this) }} />
|
||||
{{/with}}
|
||||
{{/times}}
|
||||
{{#times (subtract 12 document.system.resources.stress.max)}}
|
||||
<input class="resource-box disabled" type="checkbox" disabled />
|
||||
{{/times}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
20
templates/sheets/parts/heritage.hbs
Normal file
20
templates/sheets/parts/heritage.hbs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<div>
|
||||
{{formInput systemFields.description value=source.system.description enriched=source.system.description localize=true toggled=true}}
|
||||
<div class="ability-title">
|
||||
<h2>{{localize "DAGGERHEART.Sheets.Heritage.Title"}}</h2>
|
||||
</div>
|
||||
<div>
|
||||
{{#each source.system.abilities as |ability key|}}
|
||||
<div class="feature-container">
|
||||
<div class="feature-inner-container">
|
||||
<img src="{{ability.img}}" />
|
||||
<div class="feature-title">{{ability.name}}</div>
|
||||
</div>
|
||||
<div class="subclass-inner-container">
|
||||
<button data-action="editAbility" data-ability={{ability.uuid}}><i class="fa-solid fa-fw fa-search"></i></button>
|
||||
<button data-action="deleteAbility" data-ability={{ability.uuid}}><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
15
templates/sheets/parts/hope.hbs
Normal file
15
templates/sheets/parts/hope.hbs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<fieldset class="left-main-container">
|
||||
<legend class="legend">{{localize "DAGGERHEART.Sheets.PC.Hope.Title"}}</legend>
|
||||
|
||||
<div class="flex-spaced">
|
||||
<span class="hope-text">{{localize "DAGGERHEART.Sheets.PC.Hope.Description"}}</span>
|
||||
<div class="hope-container">
|
||||
{{#times 6}}
|
||||
<span class="hope-inner-container">
|
||||
<input class="hope-value" type="checkbox" data-action="toggleHope" data-value="{{this}}" {{ checked (gte ../document.system.resources.hope.value this) }} {{#if (gte this ../document.system.resources.hope.max)}}disabled{{/if}} />
|
||||
{{#if (gte this ../document.system.resources.hope.max)}}<i class="fa-solid fa-droplet-slash hope-scar"></i>{{/if}}
|
||||
</span>
|
||||
{{/times}}
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
47
templates/sheets/parts/inventory.hbs
Normal file
47
templates/sheets/parts/inventory.hbs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<fieldset class="left-main-container" style="flex: 1; display: flex; flex-direction: column;">
|
||||
<legend class="legend inventory-legend">
|
||||
{{localize "DAGGERHEART.Sheets.PC.Inventory.Title"}}
|
||||
</legend>
|
||||
<div class="inventory-items">
|
||||
<div class="inventory-weapon-section-first item-section">
|
||||
<h2 class="armor-container">
|
||||
{{localize "DAGGERHEART.Sheets.PC.Inventory.InventoryWeapon"}}
|
||||
{{#if weapons.first}}
|
||||
<div data-action="viewObject" data-value="{{weapons.first.uuid}}" class="active-item-label-chip">
|
||||
<img src="{{weapons.first.img}}" />
|
||||
<button data-action="removeInventoryWeapon" data-item="{{weapons.first.uuid}}"><i class="fa-solid fa-x"></i></button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</h2>
|
||||
<div class="active-item-container">
|
||||
<div class="flexrow">
|
||||
<input value="{{weapons.first.name}}" type="text" />
|
||||
<input value="{{localize weapons.first.trait}}" type="text" />
|
||||
<input value="{{localize weapons.first.range.name}}" type="text" />
|
||||
<input value="{{weapons.first.damage.value}} {{#if weapons.first}}({{localize weapons.first.damage.type.abbreviation}}){{/if}}" type="text" />
|
||||
</div>
|
||||
<input value="{{localize weapons.first.feature.name}} {{#if weapons.first.feature}}({{localize weapons.first.feature.description}}){{/if}}" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="inventory-weapon-section-second item-section">
|
||||
<h2 class="armor-container">
|
||||
{{localize "DAGGERHEART.Sheets.PC.Inventory.InventoryWeapon"}}
|
||||
{{#if weapons.second}}
|
||||
<div data-action="viewObject" data-value="{{weapons.second.uuid}}" class="active-item-label-chip">
|
||||
<img src="{{weapons.second.img}}" />
|
||||
<button data-action="removeInventoryWeapon" data-item="{{weapons.second.uuid}}"><i class="fa-solid fa-x"></i></button>
|
||||
</div>
|
||||
{{/if}}
|
||||
</h2>
|
||||
<div class="active-item-container">
|
||||
<div class="flexrow">
|
||||
<input value="{{weapons.second.name}}" type="text" />
|
||||
<input value="{{localize weapons.second.trait}}" type="text" />
|
||||
<input value="{{localize weapons.second.range.name}}" type="text" />
|
||||
<input value="{{weapons.second.damage.value}} {{#if weapons.second}}({{localize weapons.second.damage.type.abbreviation}}){{/if}}" type="text" />
|
||||
</div>
|
||||
<input value="{{localize weapons.second.feature.name}} {{#if weapons.second.feature}}({{localize weapons.second.feature.description}}){{/if}}" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
25
templates/sheets/parts/subclassFeature.hbs
Normal file
25
templates/sheets/parts/subclassFeature.hbs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<div>
|
||||
{{#with (concat "system." featureType "Feature" ".")}}
|
||||
<div class="editor-form-group">
|
||||
<label>{{localize "DAGGERHEART.Sheets.Subclass.SubclassFeature.Description"}}</label>
|
||||
{{formInput ../field.description value=../feature.description enriched=../feature.description localize=true toggled=true}}
|
||||
{{!-- {{editor ../feature.description target=(concat this "description") button=true}} --}}
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<h2>{{localize "DAGGERHEART.Sheets.Subclass.SubclassFeature.Abilities"}}</h2>
|
||||
</div>
|
||||
|
||||
{{#each ../feature/abilities as |ability key|}}
|
||||
<div class="feature-container">
|
||||
<div class="feature-inner-container">
|
||||
<img src="{{ability.img}}" />
|
||||
<div class="feature-title">{{ability.name}}</div>
|
||||
</div>
|
||||
<div class="subclass-inner-container">
|
||||
<button data-action="editAbility" data-ability={{ability.uuid}}><i class="fa-solid fa-fw fa-search"></i></button>
|
||||
<button data-action="deleteFeatureAbility" data-feature="{{../../featureType}}" data-ability={{ability.uuid}}><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/with}}
|
||||
</div>
|
||||
57
templates/sheets/parts/weapons.hbs
Normal file
57
templates/sheets/parts/weapons.hbs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<fieldset class="left-main-container weapon-section active-item-section item-section">
|
||||
<legend class="legend">
|
||||
<div class="weapons-title">
|
||||
<span>{{localize "DAGGERHEART.Sheets.PC.Weapons.Title"}}</span>
|
||||
<div class="proficiency-container">
|
||||
<span>{{localize "DAGGERHEART.Sheets.PC.Weapons.ProficiencyTitle"}}</span>
|
||||
{{#times 6}}
|
||||
<i class="fa-solid fa-circle proficiency-dot {{#if (gt ../proficiency this)}}marked{{/if}}"></i>
|
||||
{{/times}}
|
||||
</div>
|
||||
<div class="proficiency-container-visual-element"></div>
|
||||
</div>
|
||||
<div class="weapons-burden">
|
||||
<i class="fa-solid fa-hand weapons-burden-icon left {{#if (or (eq weapons.burden "oneHanded") (eq weapons.burden "twoHanded"))}}active{{/if}}"></i>
|
||||
<i class="fa-solid fa-hand weapons-burden-icon right {{#if (eq weapons.burden "twoHanded")}}active{{/if}}"></i>
|
||||
</div>
|
||||
</legend>
|
||||
|
||||
<div class="active-item-container">
|
||||
<h2 class="weapons-label-row">
|
||||
{{localize "DAGGERHEART.Sheets.PC.Weapons.PrimaryTitle"}}
|
||||
{{#if weapons.primary}}
|
||||
<div data-action="viewObject" data-value="{{weapons.primary.uuid}}" class="active-item-label-chip">
|
||||
<img src="{{weapons.primary.img}}" />
|
||||
<button data-action="removeActiveItem" data-item="{{weapons.primary.uuid}}"><i class="fa-solid fa-x"></i></button>
|
||||
</div>
|
||||
<img class="damage-roll" data-action="attackRoll" data-weapon="{{weapons.primary.uuid}}" src="icons/svg/d12-grey.svg" />
|
||||
{{/if}}
|
||||
</h2>
|
||||
<div class="flexrow">
|
||||
<input value="{{weapons.primary.name}}" type="text" />
|
||||
<input value="{{localize weapons.primary.trait}}" type="text" />
|
||||
<input value="{{localize weapons.primary.range.name}}" type="text" />
|
||||
<input value="{{weapons.primary.damage.value}} {{#if weapons.primary}}({{localize weapons.primary.damage.type.abbreviation}}){{/if}}" type="text" />
|
||||
</div>
|
||||
<input value="{{localize weapons.primary.feature.name}} {{#if weapons.primary.feature}}({{localize weapons.primary.feature.description}}){{/if}}" type="text" />
|
||||
</div>
|
||||
<div class="active-item-container">
|
||||
<h2 class="weapons-label-row">
|
||||
{{localize "DAGGERHEART.Sheets.PC.Weapons.SecondaryTitle"}}
|
||||
{{#if weapons.secondary}}
|
||||
<div data-action="viewObject" data-value="{{weapons.secondary.uuid}}" class="active-item-label-chip">
|
||||
<img src="{{weapons.secondary.img}}" />
|
||||
<button data-action="removeActiveItem" data-item="{{weapons.secondary.uuid}}"><i class="fa-solid fa-x"></i></button>
|
||||
</div>
|
||||
<img class="damage-roll" data-action="damageRoll" data-value="{{weapons.secondary.damage.value}}" src="icons/svg/d12-grey.svg" />
|
||||
{{/if}}
|
||||
</h2>
|
||||
<div class="flexrow">
|
||||
<input value="{{weapons.secondary.name}}" type="text" />
|
||||
<input value="{{localize weapons.secondary.trait}}" type="text" />
|
||||
<input value="{{localize weapons.secondary.range.name}}" type="text" />
|
||||
<input value="{{weapons.secondary.damage.value}} {{#if weapons.secondary}}({{localize weapons.secondary.damage.type.abbreviation}}){{/if}}" type="text" />
|
||||
</div>
|
||||
<input value="{{localize weapons.secondary.feature.name}} {{#if weapons.secondary.feature}}({{localize weapons.secondary.feature.description}}){{/if}}" style="text-overflow: ellipsis;" type="text" />
|
||||
</div>
|
||||
</fieldset>
|
||||
Loading…
Add table
Add a link
Reference in a new issue