From 884941b60c1aed54b539c66828bf7e7f7ac12dcb Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Fri, 24 Jul 2020 20:39:20 -0500 Subject: [PATCH] 1 - Ravager doesn't stomp in phase 2 as quickly as its HP lowers. 2 - Tried to fix Abyss generation issues with small worlds. --- NPCs/Ravager/RavagerBody.cs | 2 +- World/Abyss.cs | 4 ++++ World/WorldGenerationMethods.cs | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index e6e6965c46..66217e8871 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -596,7 +596,7 @@ namespace CalamityMod.NPCs.Ravager { float stopBeforeFallTime = npc.Calamity().newAI[2] == 0f ? 15f : 20f; if (expertMode) - stopBeforeFallTime -= death ? 10f : 10f * (1f - lifeRatio); + stopBeforeFallTime -= death ? 5f : 5f * (1f - lifeRatio); if (npc.ai[1] < stopBeforeFallTime) { diff --git a/World/Abyss.cs b/World/Abyss.cs index e74b91323e..8751337d21 100644 --- a/World/Abyss.cs +++ b/World/Abyss.cs @@ -1099,9 +1099,13 @@ namespace CalamityMod.World islandLocationX -= 25; break; } + CalamityWorld.AbyssIslandX[CalamityWorld.numAbyssIslands] = islandLocationX; CalamityWorld.numAbyssIslands++; + islandLocationY += islandLocationOffset; + if (islandLocationY >= CalamityWorld.abyssChasmBottom - 50) + break; } CalamityWorld.AbyssItemArray = CalamityUtils.ShuffleArray(CalamityWorld.AbyssItemArray); diff --git a/World/WorldGenerationMethods.cs b/World/WorldGenerationMethods.cs index 1206237398..06c82cc38c 100644 --- a/World/WorldGenerationMethods.cs +++ b/World/WorldGenerationMethods.cs @@ -4214,10 +4214,10 @@ namespace CalamityMod.World } } } - if (num <= 2f && vector.Y < (Main.rockLayer + Main.maxTilesY * 0.3)) + /*if (num <= 2f && vector.Y < (Main.rockLayer + Main.maxTilesY * 0.3)) { num = 2f; - } + }*/ vector += vector2; vector2.X += WorldGen.genRand.Next(-1, 2) * 0.01f; if (vector2.X > 0.02)