Tweaks
This commit is contained in:
parent
996c59ef12
commit
839d3632ab
@ -107,7 +107,7 @@ Hooks.once("init", () => {
|
|||||||
game.settings.register('hench', 'version', {
|
game.settings.register('hench', 'version', {
|
||||||
name: 'Version',
|
name: 'Version',
|
||||||
scope: 'world',
|
scope: 'world',
|
||||||
config: true,
|
config: false,
|
||||||
type: String,
|
type: String,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -118,6 +118,7 @@ Hooks.once("ready", () => {
|
|||||||
|
|
||||||
// TODO: don't alert on null/undefined after draft 1 cut.
|
// TODO: don't alert on null/undefined after draft 1 cut.
|
||||||
if(existingVersion !== CURRENT_VERSION) {
|
if(existingVersion !== CURRENT_VERSION) {
|
||||||
|
console.log(`Showing warnings from ${existingVersion} -> ${CURRENT_VERSION}`);
|
||||||
showUpdateWarningDialogue(existingVersion);
|
showUpdateWarningDialogue(existingVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
export const versions = {
|
export const versions = {
|
||||||
UNDEFINED: '',
|
EMPTY: '',
|
||||||
|
NULL: null,
|
||||||
|
UNDEFINED: undefined,
|
||||||
DRAFT_0: '0',
|
DRAFT_0: '0',
|
||||||
DRAFT_1: '1',
|
DRAFT_1: '1',
|
||||||
};
|
};
|
||||||
@ -8,6 +10,8 @@ export const CURRENT_VERSION = versions.DRAFT_1;
|
|||||||
|
|
||||||
const updateMap = {
|
const updateMap = {
|
||||||
[versions.UNDEFINED]: versions.DRAFT_0,
|
[versions.UNDEFINED]: versions.DRAFT_0,
|
||||||
|
[versions.EMPTY]: versions.DRAFT_0,
|
||||||
|
[versions.NULL]: versions.DRAFT_0,
|
||||||
[versions.DRAFT_0]: versions.DRAFT_1,
|
[versions.DRAFT_0]: versions.DRAFT_1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user