mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
.
This commit is contained in:
parent
2962f8b755
commit
3b237a223f
3 changed files with 37 additions and 8 deletions
|
|
@ -101,6 +101,17 @@ export default class DHToken extends TokenDocument {
|
|||
super.deleteCombatants(tokens, combat ?? {});
|
||||
}
|
||||
|
||||
/**@inheritdoc */
|
||||
getSize(data = {}) {
|
||||
if (this.actor?.system.metadata.usesSize) {
|
||||
const tokenSizes = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).tokenSizes;
|
||||
const size = tokenSizes[this.actor.system.size];
|
||||
return super.getSize({ ...data, width: size, height: size });
|
||||
}
|
||||
|
||||
return super.getSize(data);
|
||||
}
|
||||
|
||||
/**@inheritdoc */
|
||||
_onRelatedUpdate(update = {}, operation = {}) {
|
||||
super._onRelatedUpdate(update, operation);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue