mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
.
This commit is contained in:
parent
a2e44418a5
commit
b7397b93e4
1 changed files with 8 additions and 8 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue