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",
|
"title": "Title",
|
||||||
"true": "True",
|
"true": "True",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
|
"unarmed": "Unarmed",
|
||||||
"unarmedStrike": "Unarmed Strike",
|
"unarmedStrike": "Unarmed Strike",
|
||||||
"unarmored": "Unarmored",
|
"unarmored": "Unarmored",
|
||||||
"use": "Use",
|
"use": "Use",
|
||||||
|
|
@ -1358,10 +1359,11 @@
|
||||||
"features": { "label": "Nr Features" }
|
"features": { "label": "Nr Features" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"attackName": "Beast Attack",
|
||||||
|
"beastformEffect": "Beastform Transformation",
|
||||||
"dialogTitle": "Beastform Selection",
|
"dialogTitle": "Beastform Selection",
|
||||||
"tokenTitle": "Beastform Token",
|
"tokenTitle": "Beastform Token",
|
||||||
"transform": "Transform",
|
"transform": "Transform",
|
||||||
"beastformEffect": "Beastform Transformation",
|
|
||||||
"evolve": "Evolve",
|
"evolve": "Evolve",
|
||||||
"evolvedFeatureTitle": "Evolved",
|
"evolvedFeatureTitle": "Evolved",
|
||||||
"evolvedDrag": "Drag a form here to evolve it.",
|
"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');
|
return this.parent.effects.find(x => x.type === 'beastform');
|
||||||
}
|
}
|
||||||
|
|
||||||
get unarmedIcon() {
|
get usedUnarmed() {
|
||||||
return this.activeBeastform ? 'icons/creatures/claws/claw-straight-brown.webp' : this.attack.img;
|
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() {
|
get sheetLists() {
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,9 @@
|
||||||
<side-line-div></side-line-div>
|
<side-line-div></side-line-div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="items-sidebar-list">
|
<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|}}
|
{{#each document.items as |item|}}
|
||||||
{{#if item.system.equipped}}
|
{{#if item.system.equipped}}
|
||||||
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=item type=item.type isSidebar=true}}
|
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=item type=item.type isSidebar=true}}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
{{#if isCompanion}}
|
{{#if isCompanion}}
|
||||||
<a class="item-name" data-action="attackRoll">{{item.name}}</a>
|
<a class="item-name" data-action="attackRoll">{{item.name}}</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="item-name">{{item.name}}</div>
|
<div class="item-name">{{localize item.name}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if (eq type 'weapon')}}
|
{{#if (eq type 'weapon')}}
|
||||||
<div class="item-tags">
|
<div class="item-tags">
|
||||||
|
|
@ -125,6 +125,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/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>
|
</div>
|
||||||
{{#if (and (not isSidebar) (eq item.system.resource.type 'simple'))}}
|
{{#if (and (not isSidebar) (eq item.system.resource.type 'simple'))}}
|
||||||
{{> "systems/daggerheart/templates/sheets/global/partials/item-resource.hbs"}}
|
{{> "systems/daggerheart/templates/sheets/global/partials/item-resource.hbs"}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue