import { moduleHelpers, settingKeys, log } from './globals.js'; export function registerSettings() { const choices = {}; const packs = game.packs.filter((p) => p.documentName === 'Actor'); for (const pack of packs) { choices[pack.metadata.id] = pack.metadata.label; } log('found packs', packs); log('found choices', choices); moduleHelpers.registerSetting(settingKeys.powerActorsCompendium, { name: 'mbhelpers.settings.powerActorsCompendiumName', hint: 'mbhelpers.settings.powerActorsCompendiumHint', scope: 'world', config: true, choices, requiresReload: false, type: String, }); }