private static void PlayerProgression_LoadProgression(On.PlayerProgression.orig_LoadProgression orig, PlayerProgression self)
 {
     self.regionNames = CustomWorldMod.AddModdedRegions(self.regionNames);
     if (self.regionNames.Length != self.mapDiscoveryTextures.Length)
     {
         Array.Resize(ref self.mapDiscoveryTextures, self.regionNames.Length);
         CustomWorldMod.Log($"Custom Regions: Resizing mapDiscovery in PlayerProgression.");
     }
     self.miscProgressionData.discoveredShelters = new List <string> [self.regionNames.Length];
     orig(self);
 }
Exemplo n.º 2
0
        // HOOKS
        // General behavior: When saving/loading, save/load game first; when wiping, wipe mod first.
        // this way, the game's current state is always avaiable for mods to read.

        // Called trying to load a file
        internal static void PlayerProgression_LoadProgression(On.PlayerProgression.orig_LoadProgression orig, PlayerProgression self)
        {
            orig(self);
            LoadOIsProgression();
        }
 private static void PlayerProgression_LoadProgression(On.PlayerProgression.orig_LoadProgression orig, PlayerProgression self)
 {
     UpdateProgresionCRS(self);
     orig(self);
 }