mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-23 16:03:39 +02:00
Fixed so that features gained from companion levleup are granted properly to its partner
This commit is contained in:
parent
4150de757b
commit
d9797a6392
5 changed files with 69 additions and 51 deletions
|
|
@ -43,7 +43,12 @@ export default class DhLevelData extends foundry.abstract.DataModel {
|
|||
data: new fields.ArrayField(new fields.StringField({ required: true })),
|
||||
secondaryData: new fields.TypedObjectField(new fields.StringField({ required: true })),
|
||||
itemUuid: new fields.DocumentUUIDField({ required: true }),
|
||||
featureIds: new fields.ArrayField(new fields.StringField())
|
||||
features: new fields.ArrayField(
|
||||
new fields.SchemaField({
|
||||
onPartner: new fields.BooleanField(),
|
||||
id: new fields.StringField()
|
||||
})
|
||||
)
|
||||
})
|
||||
)
|
||||
})
|
||||
|
|
@ -51,10 +56,6 @@ export default class DhLevelData extends foundry.abstract.DataModel {
|
|||
};
|
||||
}
|
||||
|
||||
get actions() {
|
||||
return Object.values(this.levelups).flatMap(level => level.selections.flatMap(s => s.actions));
|
||||
}
|
||||
|
||||
get canLevelUp() {
|
||||
return this.level.current < this.level.changed;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,8 @@ export const CompanionLevelOptionType = {
|
|||
{
|
||||
name: 'DAGGERHEART.APPLICATIONS.Levelup.actions.creatureComfort.name',
|
||||
img: 'icons/magic/life/heart-cross-purple-orange.webp',
|
||||
description: 'DAGGERHEART.APPLICATIONS.Levelup.actions.creatureComfort.description'
|
||||
description: 'DAGGERHEART.APPLICATIONS.Levelup.actions.creatureComfort.description',
|
||||
toPartner: true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -81,7 +82,8 @@ export const CompanionLevelOptionType = {
|
|||
{
|
||||
name: 'DAGGERHEART.APPLICATIONS.Levelup.actions.armored.name',
|
||||
img: 'icons/equipment/shield/kite-wooden-oak-glow.webp',
|
||||
description: 'DAGGERHEART.APPLICATIONS.Levelup.actions.armored.description'
|
||||
description: 'DAGGERHEART.APPLICATIONS.Levelup.actions.armored.description',
|
||||
toPartner: true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -100,7 +102,8 @@ export const CompanionLevelOptionType = {
|
|||
{
|
||||
name: 'DAGGERHEART.APPLICATIONS.Levelup.actions.bonded.name',
|
||||
img: 'icons/magic/life/heart-red-blue.webp',
|
||||
description: 'DAGGERHEART.APPLICATIONS.Levelup.actions.bonded.description'
|
||||
description: 'DAGGERHEART.APPLICATIONS.Levelup.actions.bonded.description',
|
||||
toPartner: true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue