Removed action fields on Adversary/Environment in favor of using Feature Items

This commit is contained in:
WBHarry 2025-07-05 02:49:14 +02:00
parent 9d76405221
commit c3b8def6b1
23 changed files with 274 additions and 433 deletions

View file

@ -43,7 +43,6 @@ export default class DhpAdversary extends BaseDataActor {
hitPoints: resourceField(),
stress: resourceField()
}),
actions: new fields.ArrayField(new ActionField()),
attack: new ActionField({
initial: {
name: 'Attack',
@ -86,4 +85,8 @@ export default class DhpAdversary extends BaseDataActor {
get attackBonus() {
return this.attack.roll.bonus;
}
get features() {
return this.parent.items.filter(x => x.type === 'feature');
}
}