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
This commit is contained in:
Oliver-Akins 2025-02-14 23:23:53 -07:00
parent e302b56a4e
commit c549a59c13
6 changed files with 146 additions and 23 deletions

View file

@ -18,4 +18,15 @@ export function registerMetaSettings() {
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` ] });
},
});
};