Added unarmed strike in sidebar

This commit is contained in:
WBHarry 2025-07-19 13:59:58 +02:00
parent 87f29c3bb3
commit be625ecdc7
4 changed files with 27 additions and 4 deletions

View file

@ -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() {