mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 07:23:37 +02:00
Move resources select to scrolly text and accept actor object
This commit is contained in:
parent
a4a7b8e7ca
commit
007d1bc055
4 changed files with 18 additions and 17 deletions
|
|
@ -225,10 +225,9 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
|||
changed.system?.marks?.value !== undefined && changed.system.marks.value !== this.marks.value;
|
||||
if (armorChanged && autoSettings.resourceScrollTexts && this.parent.parent?.type === 'character') {
|
||||
const armorData = getScrollTextData(
|
||||
this.parent.parent.system.resources,
|
||||
this.parent.parent,
|
||||
changed.system.marks,
|
||||
'armor',
|
||||
this.parent.parent.type
|
||||
);
|
||||
options.scrollingTextData = [armorData];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue