Added System migration stuff

Some reorganisation
This commit is contained in:
Vlyan
2021-01-20 12:38:36 +01:00
parent 289ec720de
commit acbb12333e
9 changed files with 360 additions and 97 deletions

View File

@@ -21,6 +21,11 @@ export default class HooksL5r5e {
* Do anything once the system is ready
*/
static ready() {
// Migration stuff
if (game.l5r5e.migrations.needUpdate()) {
game.l5r5e.migrations.migrateWorld();
}
// Settings TN and EncounterType
if (game.user.isGM) {
new game.l5r5e.GmToolsDialog().render(true);