From 1ddabc388c85a52e72a8256e4917f89cea24799c Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Thu, 1 Jul 2021 01:08:30 +0200 Subject: [PATCH] use methods from the foundry.utils namespaces instead of their global counterparts --- src/module/actor/actor.ts | 4 ++-- src/module/actor/sheets/actor-sheet.ts | 2 +- src/module/rolls/roll.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/module/actor/actor.ts b/src/module/actor/actor.ts index c1ab2402..82377350 100644 --- a/src/module/actor/actor.ts +++ b/src/module/actor/actor.ts @@ -113,7 +113,7 @@ export class DS4Actor extends Actor { } // Expand the set of final overrides - this.overrides = expandObject({ ...flattenObject(this.overrides), ...overrides }); + this.overrides = foundry.utils.expandObject({ ...foundry.utils.flattenObject(this.overrides), ...overrides }); } protected getOriginatingItemOfActiveEffect(effect: ActiveEffect): DS4Item | undefined { @@ -284,7 +284,7 @@ export class DS4Actor extends Actor { isDelta = false, isBar = true, ): Promise { - const current = getProperty(this.data.data, attribute); + const current = foundry.utils.getProperty(this.data.data, attribute); // Determine the updates to make to the actor data let updates: Record; diff --git a/src/module/actor/sheets/actor-sheet.ts b/src/module/actor/sheets/actor-sheet.ts index ab884648..71a00e2b 100644 --- a/src/module/actor/sheets/actor-sheet.ts +++ b/src/module/actor/sheets/actor-sheet.ts @@ -169,7 +169,7 @@ export class DS4ActorSheet extends ActorSheet = Record * @override */ async render(chatOptions: Parameters[0] = {}): Promise { - chatOptions = mergeObject( + chatOptions = foundry.utils.mergeObject( { user: game.user?.id, flavor: null,