mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46:12 +01:00
Data fixes
This commit is contained in:
parent
502ac1cca5
commit
ef2116db49
11 changed files with 183 additions and 136 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