mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Feature/238 companion sheet template (#252)
* new companion sheet templates * Data fixes * Changed from evasion.value to evasion.total in display * add attack config and disable experience value input --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
This commit is contained in:
parent
1b9bd45e9c
commit
cae659b9a5
21 changed files with 1027 additions and 106 deletions
|
|
@ -47,6 +47,7 @@ export default class DhCompanion extends BaseDataActor {
|
|||
attack: new ActionField({
|
||||
initial: {
|
||||
name: 'Attack',
|
||||
img: 'icons/creatures/claws/claw-bear-paw-swipe-brown.webp',
|
||||
_id: foundry.utils.randomID(),
|
||||
systemPath: 'attack',
|
||||
type: 'attack',
|
||||
|
|
@ -57,7 +58,8 @@ export default class DhCompanion extends BaseDataActor {
|
|||
},
|
||||
roll: {
|
||||
type: 'weapon',
|
||||
bonus: 0
|
||||
bonus: 0,
|
||||
trait: 'instinct'
|
||||
},
|
||||
damage: {
|
||||
parts: [
|
||||
|
|
@ -77,8 +79,10 @@ export default class DhCompanion extends BaseDataActor {
|
|||
};
|
||||
}
|
||||
|
||||
get attackBonus() {
|
||||
return this.attack.roll.bonus ?? 0;
|
||||
get traits() {
|
||||
return {
|
||||
instinct: { total: this.attack.roll.bonus }
|
||||
};
|
||||
}
|
||||
|
||||
prepareBaseData() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue