updated profile templates to use Improvements
instead of improvement
+ added migration for 3.9 profile + Added logging to 3.9 migrations
This commit is contained in:
parent
34f335175d
commit
73c75596e2
@ -401,7 +401,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -3101,7 +3101,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -5982,7 +5982,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -9241,7 +9241,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -12590,7 +12590,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -16319,7 +16319,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -20246,7 +20246,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"Seed": 222222222,
|
||||
"HideoutCounters": null,
|
||||
@ -23965,7 +23965,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"Seed": 111111111,
|
||||
"HideoutCounters": null,
|
||||
@ -27971,7 +27971,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"Seed": 222222222,
|
||||
"HideoutCounters": null
|
||||
@ -32460,7 +32460,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"Seed": 111111111,
|
||||
"HideoutCounters": null
|
||||
@ -37048,7 +37048,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"Seed": 222222222,
|
||||
"HideoutCounters": null,
|
||||
@ -38022,7 +38022,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"Seed": 111111111,
|
||||
"HideoutCounters": null,
|
||||
@ -41010,7 +41010,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null
|
||||
},
|
||||
@ -44137,7 +44137,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -47258,7 +47258,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null
|
||||
},
|
||||
@ -50659,7 +50659,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -52038,7 +52038,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
@ -53010,7 +53010,7 @@
|
||||
"type": 27
|
||||
}
|
||||
],
|
||||
"Improvement": {},
|
||||
"Improvements": {},
|
||||
"Production": {},
|
||||
"HideoutCounters": null,
|
||||
"MannequinPoses": ["standing", "boxing", "fingerguns", "fingerguns2", "spreadinghands"]
|
||||
|
@ -247,6 +247,7 @@ export class GameController {
|
||||
protected migrate39xProfile(fullProfile: ISptProfile) {
|
||||
// Karma
|
||||
if (typeof fullProfile.characters.pmc.karmaValue === "undefined") {
|
||||
this.logger.warning("Migration: Added karma value of 0.2 to profile");
|
||||
fullProfile.characters.pmc.karmaValue = 0.2;
|
||||
}
|
||||
|
||||
@ -255,6 +256,7 @@ export class GameController {
|
||||
(area) => area.type === HideoutAreas.EQUIPMENT_PRESETS_STAND,
|
||||
);
|
||||
if (!equipmentArea) {
|
||||
this.logger.warning("Migration: Added equipment preset stand hideout area to profile, level 0");
|
||||
fullProfile.characters.pmc.Hideout.Areas.push({
|
||||
active: true,
|
||||
completeTime: 0,
|
||||
@ -272,6 +274,7 @@ export class GameController {
|
||||
(area) => area.type === HideoutAreas.CIRCLE_OF_CULTISTS,
|
||||
);
|
||||
if (!circleArea) {
|
||||
this.logger.warning("Migration: Added cultist circle hideout area to profile, level 0");
|
||||
fullProfile.characters.pmc.Hideout.Areas.push({
|
||||
active: true,
|
||||
completeTime: 0,
|
||||
@ -283,6 +286,13 @@ export class GameController {
|
||||
type: HideoutAreas.CIRCLE_OF_CULTISTS,
|
||||
});
|
||||
}
|
||||
|
||||
// Improvemet property changed name
|
||||
if ((fullProfile.characters.pmc.Hideout as any).Improvement) {
|
||||
fullProfile.characters.pmc.Hideout.Improvements = (fullProfile.characters.pmc.Hideout as any).Improvement;
|
||||
delete (fullProfile.characters.pmc.Hideout as any).Improvement;
|
||||
this.logger.warning(`Migration: Moved Hideout Improvement data to new property 'Improvements'`);
|
||||
}
|
||||
}
|
||||
|
||||
protected adjustHideoutCraftTimes(overrideSeconds: number): void {
|
||||
|
Loading…
x
Reference in New Issue
Block a user