Move the magic string into an enum

This commit is contained in:
Oliver-Akins 2025-04-05 15:31:28 -06:00
parent 95443d3709
commit bfddf855a4
4 changed files with 15 additions and 5 deletions

View file

@ -1,4 +1,5 @@
// App imports
import { AmmoTracker } from "./Apps/popovers/AmmoTracker.mjs";
import { CombinedHeroSheet } from "./Apps/ActorSheets/CombinedHeroSheet.mjs";
import { DicePool } from "./Apps/DicePool.mjs";
import { HeroSkillsCardV1 } from "./Apps/ActorSheets/HeroSkillsCardV1.mjs";
@ -9,7 +10,9 @@ import { RichEditor } from "./Apps/RichEditor.mjs";
import { distanceBetweenFates, nextFate, previousFate } from "./utils/fates.mjs";
import { documentSorter } from "./consts.mjs";
import { rankToInteger } from "./utils/rank.mjs";
import { AmmoTracker } from "./Apps/popovers/AmmoTracker.mjs";
// Misc Imports
import { ItemFlags } from "./flags/item.mjs";
const { deepFreeze } = foundry.utils;
@ -33,6 +36,7 @@ Object.defineProperty(
previousFate,
rankToInteger,
},
ItemFlags,
}),
writable: false,
},