Beastform Improvements (#294)

* BeastformEffect is editable. Added SubjectTexture field.

* Using handlebars disabled helper
This commit is contained in:
WBHarry 2025-07-08 21:01:28 +02:00 committed by GitHub
parent 61f04df765
commit 861dfd977d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 81 additions and 32 deletions

View file

@ -10,6 +10,11 @@ export default class BeastformEffect extends foundry.abstract.TypeDataModel {
base64: false,
nullable: true
}),
tokenRingImg: new fields.FilePathField({
initial: 'icons/svg/mystery-man.svg',
categories: ['IMAGE'],
base64: false
}),
tokenSize: new fields.SchemaField({
height: new fields.NumberField({ integer: true, nullable: true }),
width: new fields.NumberField({ integer: true, nullable: true })
@ -28,6 +33,11 @@ export default class BeastformEffect extends foundry.abstract.TypeDataModel {
width: this.characterTokenData.tokenSize.width,
texture: {
src: this.characterTokenData.tokenImg
},
ring: {
subject: {
texture: this.characterTokenData.tokenRingImg
}
}
};