mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
Added unarmed strike in sidebar
This commit is contained in:
parent
87f29c3bb3
commit
be625ecdc7
4 changed files with 27 additions and 4 deletions
|
|
@ -1302,6 +1302,7 @@
|
|||
"title": "Title",
|
||||
"true": "True",
|
||||
"type": "Type",
|
||||
"unarmed": "Unarmed",
|
||||
"unarmedStrike": "Unarmed Strike",
|
||||
"unarmored": "Unarmored",
|
||||
"use": "Use",
|
||||
|
|
@ -1358,10 +1359,11 @@
|
|||
"features": { "label": "Nr Features" }
|
||||
}
|
||||
},
|
||||
"attackName": "Beast Attack",
|
||||
"beastformEffect": "Beastform Transformation",
|
||||
"dialogTitle": "Beastform Selection",
|
||||
"tokenTitle": "Beastform Token",
|
||||
"transform": "Transform",
|
||||
"beastformEffect": "Beastform Transformation",
|
||||
"evolve": "Evolve",
|
||||
"evolvedFeatureTitle": "Evolved",
|
||||
"evolvedDrag": "Drag a form here to evolve it.",
|
||||
|
|
|
|||
|
|
@ -329,8 +329,16 @@ export default class DhCharacter extends BaseDataActor {
|
|||
return this.parent.effects.find(x => x.type === 'beastform');
|
||||
}
|
||||
|
||||
get unarmedIcon() {
|
||||
return this.activeBeastform ? 'icons/creatures/claws/claw-straight-brown.webp' : this.attack.img;
|
||||
get usedUnarmed() {
|
||||
const primaryWeaponEquipped = this.primaryWeapon?.system?.equipped;
|
||||
const secondaryWeaponEquipped = this.secondaryWeapon?.system?.equipped;
|
||||
return !primaryWeaponEquipped && !secondaryWeaponEquipped
|
||||
? {
|
||||
...this.attack,
|
||||
name: this.activeBeastform ? 'DAGGERHEART.ITEMS.Beastform.attackName' : this.attack.name,
|
||||
img: this.activeBeastform ? 'icons/creatures/claws/claw-straight-brown.webp' : this.attack.img
|
||||
}
|
||||
: null;
|
||||
}
|
||||
|
||||
get sheetLists() {
|
||||
|
|
|
|||
|
|
@ -92,6 +92,9 @@
|
|||
<side-line-div></side-line-div>
|
||||
</div>
|
||||
<ul class="items-sidebar-list">
|
||||
{{#if document.system.usedUnarmed}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=document.system.usedUnarmed type='attack' isSidebar=true}}
|
||||
{{/if}}
|
||||
{{#each document.items as |item|}}
|
||||
{{#if item.system.equipped}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=item type=item.type isSidebar=true}}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
{{#if isCompanion}}
|
||||
<a class="item-name" data-action="attackRoll">{{item.name}}</a>
|
||||
{{else}}
|
||||
<div class="item-name">{{item.name}}</div>
|
||||
<div class="item-name">{{localize item.name}}</div>
|
||||
{{/if}}
|
||||
{{#if (eq type 'weapon')}}
|
||||
<div class="item-tags">
|
||||
|
|
@ -125,6 +125,16 @@
|
|||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if (eq type 'attack')}}
|
||||
<div class="item-tags">
|
||||
<div class="tag">
|
||||
{{localize 'DAGGERHEART.GENERAL.unarmed'}}
|
||||
</div>
|
||||
<div class="tag">
|
||||
{{localize 'DAGGERHEART.CONFIG.ActionType.action'}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if (and (not isSidebar) (eq item.system.resource.type 'simple'))}}
|
||||
{{> "systems/daggerheart/templates/sheets/global/partials/item-resource.hbs"}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue