Final stuff from me: Secret seed things
1 - Celebrationmk10 is now forced to spawn on the Jungle-side Ocean to prevent spawning in the Sulphurous Sea 2 - Moved Calamity final worldgen adjustments to happen before final secret seed adjustments and Dirtiest Block gen (also fixes Forsaken Archive not being painted in secret seeds) 3 - Gravity Normalizer now negates the low gravity of Remix surface 4 - Fixed Aerialite not spawning in Remix 5 - Fixed Cloud Elemental not spawning in Remix 6 - Fixed Armored Digger GFB drops appearing in the bestiary 7 - Fixed Jungle Temple not generating on the surface in Remix 8 - Fixed Mimic and Ice Mimic loot pools in Remix 9 - Fixed Sandstorm's Core broken localization in GFB
This commit is contained in:
1 parent
dec402677e
commit
f92ebe7eac
9 files changed
+112
-28
No files matched your search
@@ -94,6 +94,30 @@ namespace CalamityMod.Systems
|
||||
}));
|
||||
}
|
||||
|
||||
// Move spawn point in Celebrationmk10 to not be in the Sulphurous Sea
|
||||
int spawnPointIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Spawn Point"));
|
||||
if (spawnPointIndex != -1 && WorldGen.tenthAnniversaryWorldGen && !WorldGen.getGoodWorldGen)
|
||||
{
|
||||
tasks.Insert(spawnPointIndex + 1, new PassLegacy("Fix Tenth Anniversary Spawn", (progress, config) =>
|
||||
{
|
||||
if ((Main.spawnTileX < Main.maxTilesX / 2 && GenVars.dungeonSide == -1) || (Main.spawnTileX > Main.maxTilesX / 2 && GenVars.dungeonSide == 1))
|
||||
{
|
||||
// Flip the side of the world you spawn on if it's the Dungeon side
|
||||
Main.spawnTileX = Main.maxTilesX - Main.spawnTileX;
|
||||
// Then fix the Y position of the spawn point
|
||||
for (int i = 0; i < Main.maxTilesY; i++)
|
||||
{
|
||||
if (Main.tile[Main.spawnTileX, i].HasTile)
|
||||
{
|
||||
Main.spawnTileY = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}));
|
||||
}
|
||||
|
||||
// Mechanic Shed
|
||||
int mechanicIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Sunflowers"));
|
||||
if (mechanicIndex != -1)
|
||||
@@ -131,12 +155,12 @@ namespace CalamityMod.Systems
|
||||
}));
|
||||
}
|
||||
|
||||
// All further tasks occur after vanilla worldgen is completed
|
||||
// All further tasks occur right before vanilla worldgen is completed (which includes The Dirtiest Block and final secret seed adjustments)
|
||||
int FinalIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Final Cleanup"));
|
||||
if (FinalIndex != -1)
|
||||
{
|
||||
// Reallocate gems so rarity corresponds to depth
|
||||
int currentFinalIndex = FinalIndex;
|
||||
int currentFinalIndex = FinalIndex - 1;
|
||||
tasks.Insert(++currentFinalIndex, new PassLegacy("Gem Depth Adjustment", (progress, config) =>
|
||||
{
|
||||
progress.Message = Language.GetOrRegister("Mods.CalamityMod.UI.GemAdjustment").Value;
|
||||
|
||||
Reference in new issue
Block a user