Skip to content

Commit

Permalink
V12 prototype: remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed Dec 13, 2023
1 parent 8d15c96 commit e9115a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/module/forms/EstimationSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HealthEstimateSettings } from "./templates/Base.js";
export default class HealthEstimateEstimationSettings extends HealthEstimateSettings {
constructor(object, options = {}) {
super(object, options);
this.estimations = deepClone(sGet("core.estimations"));
this.estimations = foundry.utils.deepClone(sGet("core.estimations"));
this.changeTabs = null;
}

Expand Down
5 changes: 4 additions & 1 deletion src/module/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ export class HealthEstimate {
if (estimation.ignoreColor) {
special = estimation;
} else {
return { estimation: deepClone(estimation), special: deepClone(special) };
return {
estimation: foundry.utils.deepClone(estimation),
special: foundry.utils.deepClone(special)
};
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/module/providers/pf2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class pf2eEstimationProvider extends EstimationProvider {
}

fraction(token) {
const data = deepClone(token.actor.system.attributes);
const data = foundry.utils.deepClone(token.actor.system.attributes);
const hp = data.hp;
if (token.actor.type === "familiar" && token.actor.system?.master) {
const master = token.actor.system.master;
Expand Down

0 comments on commit e9115a0

Please sign in to comment.