ripcrypt/module/settings/metaSettings.mjs
Oliver-Akins c549a59c13 More progress
* Make it so that the initiative isn't actually saved to the database
* Add .25 for unknown disposition entities
* Add .5 for entities that lose the coinflip
2025-02-14 23:23:53 -07:00

32 lines
723 B
JavaScript

export function registerMetaSettings() {
game.settings.register(`ripcrypt`, `dc`, {
scope: `world`,
type: Number,
config: false,
requiresReload: false,
onChange: () => {
ui.crypt.render({ parts: [ `delveConditions` ]});
},
});
game.settings.register(`ripcrypt`, `currentFate`, {
scope: `world`,
type: String,
config: false,
requiresReload: false,
onChange: () => {
ui.crypt.render({ parts: [ `fate` ] });
},
});
game.settings.register(`ripcrypt`, `whoFirst`, {
scope: `world`,
type: String,
config: false,
requiresReload: false,
initial: `friendly`,
onChange: async () => {
await game.combat.setupTurns();
await ui.combat.render({ parts: [ `tracker` ] });
},
});
};