mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
* Update the death move descriptions * Renamed to DhDeathMove * Partial Fate Roll creation and Fate Roll Enricher (/fr) * Hide stuff not required for fate roll * Hide formula display; code removal; start to add Fear die as a choice for Fate roll * Fix chat message display; start moving towards supporting Hope and Fear for Fate roll * /fr now supports type=X, where X is Hope or Fear, if not supplied, defaults to Hope * Fixed DSN rolling; removed console messages; chat message clean up * Add localisation entry * Trying to sort out the button for the fate roll * Style the fate message based on Hope/Fear colors. * Partial improvement on the fate template buttons - chat display is correct, but the roll dialog is wrong * Fixed enricher button; localization fixes; debug cleanup * Error checking for the fate type parsing in all potential problem locations * Added localization for the fate type parsing error * Start on Avoid Death death move * debug stuff * More death moves setup/testing * Avoid fate scars update in place, with scars migrating to an integer value. * Remove some debug code; add Blaze Of Glory shell * Start on Guaranteed Critical for Blaze of Glory * Partial implementation of Blaze of Glory * Dice/critical checks/tests * Moved detection of guaranteed critical to before the roll dialog is created, so it can be skipped; removed debug code * Remove debug * Update Blaze of Glory effect description * Risk It All - critical roll - clear all stress and HP * Auto remove all marked stress and HP for Risk It All, if Hope value rolled covers it. * Display the Death Move description in chat expanded if the appropriate config setting is on * Made the Blaze of Glory ActiveEffect image use configured version * Update the current Hope value if the scar value change affects it * Scars management in the Character details editor * Separate less file for the Death Moves instead of reusing Downtime * Added result messages to the Death Move chat output and removed debug statements * Some localization, style and smaller changes * Fixed RiskItAll resource handling method * Risk It All success chat message start * [Add] Hope/Scar Interplay (#1531) * Migrated character.maxHope to homebrew settings * Added a visual for scars * . * . * Pass the hope value in the button data; skeleton risk it all dialog to fill out. * Start on risk it dialog * More dialog stuff * Remove non-existent field * Dialog templating and logic * . * Ensure effect is Applied to Actor (#1547) Co-authored-by: Chris Ryan <chrisr@blackhole> * [Fix] 1548 - Standalone Item Add Actions (#1549) * Fixed so that items not on an actor don't error out on creating actions * Fixed deletion of items error * Raised version * Fix the sliders to do the correct maximums * Pass the actor id through the button; fix /dr and /fr flavor text * Remove debug message --------- Co-authored-by: Chris Ryan <chrisr@blackhole> Co-authored-by: WBHarry <williambjrklund@gmail.com> Co-authored-by: WBHarry <89362246+WBHarry@users.noreply.github.com>
134 lines
No EOL
7.2 KiB
Handlebars
134 lines
No EOL
7.2 KiB
Handlebars
<header class="character-header-sheet">
|
|
<line-div></line-div>
|
|
<div class="name-row">
|
|
<h1 class="actor-name input" contenteditable="plaintext-only" data-property="name" placeholder="{{localize "DAGGERHEART.GENERAL.actorName"}}">{{source.name}}</h1>
|
|
<div class='level-div'>
|
|
<h3 class='label'>
|
|
{{#if (or document.system.needsCharacterSetup document.system.levelData.canLevelUp)}}
|
|
<button
|
|
type="button"
|
|
class="level-button glow" data-tooltip="{{#if document.system.needsCharacterSetup}}{{localize "DAGGERHEART.APPLICATIONS.CharacterCreation.buttonTitle"}}{{else}}{{localize "DAGGERHEART.ACTORS.Character.levelUp"}}{{/if}}"
|
|
data-action="levelManagement"
|
|
>
|
|
<i class="fa-solid fa-angles-up"></i>
|
|
</button>
|
|
{{/if}}
|
|
{{localize 'DAGGERHEART.GENERAL.level'}}
|
|
<input type="text" data-dtype="Number" class="level-value" value={{#if document.system.needsCharacterSetup}}0{{else}}{{document.system.levelData.level.changed}}{{/if}} {{#if document.system.needsCharacterSetup}}disabled{{/if}} />
|
|
</h3>
|
|
</div>
|
|
</div>
|
|
<div class="character-details">
|
|
<div>
|
|
{{#if document.system.class.value}}
|
|
<span data-action="editDoc" data-item-uuid="{{document.system.class.value.uuid}}">{{document.system.class.value.name}}</span>
|
|
{{else}}
|
|
<span class="missing-header-feature" data-action="openPack" data-key="classes">{{localize 'TYPES.Item.class'}}</span>
|
|
{{/if}}
|
|
<span class="dot">•</span>
|
|
{{#if document.system.class.subclass}}
|
|
<span data-action="editDoc" data-item-uuid="{{document.system.class.subclass.uuid}}">{{document.system.class.subclass.name}}</span>
|
|
{{else}}
|
|
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
|
{{/if}}
|
|
<span class="dot">•</span>
|
|
{{#if document.system.community}}
|
|
<span data-action="editDoc" data-item-uuid="{{document.system.community.uuid}}">{{document.system.community.name}}</span>
|
|
{{else}}
|
|
<span class="missing-header-feature" data-action="openPack" data-key="communities">{{localize 'TYPES.Item.community'}}</span>
|
|
{{/if}}
|
|
<span class="dot">•</span>
|
|
{{#if document.system.ancestry}}
|
|
<span data-action="editDoc" data-item-uuid="{{document.system.ancestry.uuid}}">{{document.system.ancestry.name}}</span>
|
|
{{else}}
|
|
<span class="missing-header-feature" data-action="openPack" data-key="ancestries">{{localize 'TYPES.Item.ancestry'}}</span>
|
|
{{/if}}
|
|
</div>
|
|
|
|
{{#if document.system.multiclass.value}}
|
|
<div class="multiclass">
|
|
{{#if document.system.multiclass.value}}
|
|
<span data-action="editDoc"data-item-uuid="{{document.system.multiclass.value.uuid}}">{{document.system.multiclass.value.name}}</span>
|
|
{{else}}
|
|
<span data-action="openPack" data-key="classes">{{localize 'DAGGERHEART.GENERAL.multiclass'}}</span>
|
|
{{/if}}
|
|
<span class="dot">•</span>
|
|
{{#if document.system.multiclass.subclass}}
|
|
<span data-action="editDoc" data-item-uuid="{{document.system.multiclass.subclass.uuid}}">{{document.system.multiclass.subclass.name}}</span>
|
|
{{else}}
|
|
<span class="missing-header-feature" data-action="openPack" data-key="subclasses">{{localize 'TYPES.Item.subclass'}}</span>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
|
|
</div>
|
|
|
|
<div class="character-row">
|
|
<div class="hope-section">
|
|
<h4>{{localize "DAGGERHEART.GENERAL.hope"}}</h4>
|
|
{{#times document.system.resources.hope.max}}
|
|
<span class='hope-value' data-action='toggleHope' data-value="{{add this 1}}">
|
|
{{#if (gte ../document.system.resources.hope.value (add this 1))}}
|
|
<i class='fa-solid fa-diamond'></i>
|
|
{{else}}
|
|
<i class='fa-regular fa-circle'></i>
|
|
{{/if}}
|
|
</span>
|
|
{{/times}}
|
|
{{#times document.system.scars}}
|
|
<span class='hope-value scar'>
|
|
<i class='fa-regular fa-ban'></i>
|
|
</span>
|
|
{{/times}}
|
|
</div>
|
|
{{#if document.system.class.value}}
|
|
<div class="domains-section">
|
|
{{#each document.system.domainData as |data|}}
|
|
<div class="domain">
|
|
<img src="{{data.src}}" alt="" data-tooltip="{{data.label}}" />
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
<div class="downtime-section">
|
|
{{#if document.parties.size}}
|
|
<button type="button" data-action="viewParty" data-tooltip="DAGGERHEART.ACTORS.Character.viewParty">
|
|
<i class="fa-solid fa-fw fa-users"></i>
|
|
</button>
|
|
{{/if}}
|
|
<button type="button" data-action="useDowntime" data-type="shortRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.shortRest.title">
|
|
<i class="fa-solid fa-fw fa-utensils"></i>
|
|
</button>
|
|
<button type="button" data-action="useDowntime" data-type="longRest" data-tooltip="DAGGERHEART.APPLICATIONS.Downtime.longRest.title">
|
|
<i class="fa-solid fa-fw fa-bed"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="character-traits">
|
|
{{#each this.attributes as |attribute key|}}
|
|
<div class="trait" data-tooltip="<b>{{localize (concat 'DAGGERHEART.CONFIG.Traits.' key '.name') }}:</b><br>{{#each attribute.verbs}}{{this}}<br>{{/each}}" data-action="rollAttribute" data-attribute="{{key}}" data-value="{{attribute.value}}">
|
|
<div class="trait-name">
|
|
<span>{{localize (concat 'DAGGERHEART.CONFIG.Traits.' key '.short')}}</span>
|
|
{{#if attribute.tierMarked}}
|
|
<i class='fa-solid fa-circle'></i>
|
|
{{else}}
|
|
<i class='fa-regular fa-circle'></i>
|
|
{{/if}}
|
|
</div>
|
|
<div class="trait-value">
|
|
{{#if (gt attribute.value 0)}}
|
|
<span>+{{attribute.value}}</span>
|
|
{{else}}
|
|
<span>{{attribute.value}}</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
|
|
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' }}
|
|
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}"><i class="fa-solid fa-wrench"></i></button>
|
|
{{/'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
|
|
</header> |