Fix: migration automatique de calendrier quand l'heure est à Vaisseau+0 minutes #605

Merged
uberwald merged 2 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2023-01-08 18:44:43 +01:00
2 changed files with 4 additions and 5 deletions

View File

@ -157,14 +157,13 @@ export class RdDTimestamp {
static getWorldTime() { static getWorldTime() {
let worldTime = game.settings.get(SYSTEM_RDD, WORLD_TIMESTAMP_SETTING); let worldTime = game.settings.get(SYSTEM_RDD, WORLD_TIMESTAMP_SETTING);
if (worldTime.indexJour && worldTime.heureRdD) { if (worldTime.indexJour != undefined && worldTime.heureRdD != undefined) {
// Migration // Migration
worldTime = { worldTime = {
indexDate: worldTime.indexJour, indexDate: worldTime.indexJour,
indexMinute: worldTime.heureRdD * 120 + worldTime.minutesRelative indexMinute: worldTime.heureRdD * 120 + worldTime.minutesRelative
}; };
RdDTimestamp.setWorldTime(new RdDTimestamp(worldTime)) RdDTimestamp.setWorldTime(new RdDTimestamp(worldTime))
} }
return new RdDTimestamp(worldTime); return new RdDTimestamp(worldTime);
} }

View File

@ -1,8 +1,8 @@
{ {
"id": "foundryvtt-reve-de-dragon", "id": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"version": "10.5.0", "version": "10.5.1",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.5.0.zip", "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.5.1.zip",
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json", "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json",
"compatibility": { "compatibility": {
"minimum": "10", "minimum": "10",