This commit is contained in:
WBHarry 2025-12-21 13:46:19 +01:00
parent a2e44418a5
commit b7397b93e4

View file

@ -196,14 +196,14 @@ export default class DHBeastform extends BaseDataItem {
await this.parent.parent.createEmbeddedDocuments('ActiveEffect', [beastformEffect.toObject()]); await this.parent.parent.createEmbeddedDocuments('ActiveEffect', [beastformEffect.toObject()]);
let width = this.tokenSize.width; const autoTokenSize =
let height = this.tokenSize.height; this.tokenSize.size !== 'custom'
if (this.tokenSize.size !== 'custom') { ? game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).tokenSizes[
const tokenSizes = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).tokenSizes; this.tokenSize.size
const tokenSize = tokenSizes[this.tokenSize.size]; ]
width = tokenSize; : null;
height = tokenSize; const width = autoTokenSize ?? this.tokenSize.width;
} const height = autoTokenSize ?? this.tokenSize.height;
const prototypeTokenUpdate = { const prototypeTokenUpdate = {
height, height,