diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index 7cba5d686d..3f347ce08c 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -240,7 +240,8 @@ namespace CalamityMod.Events { [ModContent.NPCType()] = new int[] { ModContent.NPCType() }, [ModContent.NPCType()] = new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }, - }; + [ModContent.NPCType()] = new int[] { ModContent.NPCType() }, + }; BossDeathEffects = new Dictionary>() { diff --git a/NPCs/Calamitas/Calamitas.cs b/NPCs/Calamitas/Calamitas.cs index d5e758174b..6dc867dc4f 100644 --- a/NPCs/Calamitas/Calamitas.cs +++ b/NPCs/Calamitas/Calamitas.cs @@ -97,7 +97,7 @@ namespace CalamityMod.NPCs.Calamitas spriteEffects = SpriteEffects.FlipHorizontally; Texture2D texture2D15 = Main.npcTexture[npc.type]; - Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector11 = new Vector2(Main.npcTexture[npc.type].Width / 2, Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2); Color color36 = Color.White; float amount9 = 0.5f; int num153 = 7; @@ -109,16 +109,16 @@ namespace CalamityMod.NPCs.Calamitas Color color38 = lightColor; color38 = Color.Lerp(color38, color36, amount9); color38 = npc.GetAlpha(color38); - color38 *= (float)(num153 - num155) / 15f; - Vector2 vector41 = npc.oldPos[num155] + new Vector2((float)npc.width, (float)npc.height) / 2f - Main.screenPosition; - vector41 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; + color38 *= (num153 - num155) / 15f; + Vector2 vector41 = npc.oldPos[num155] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition; + vector41 -= new Vector2(texture2D15.Width, texture2D15.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f; vector41 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY); spriteBatch.Draw(texture2D15, vector41, npc.frame, color38, npc.rotation, vector11, npc.scale, spriteEffects, 0f); } } Vector2 vector43 = npc.Center - Main.screenPosition; - vector43 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; + vector43 -= new Vector2(texture2D15.Width, texture2D15.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f; vector43 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY); spriteBatch.Draw(texture2D15, vector43, npc.frame, npc.GetAlpha(lightColor), npc.rotation, vector11, npc.scale, spriteEffects, 0f); @@ -131,9 +131,9 @@ namespace CalamityMod.NPCs.Calamitas { Color color41 = color37; color41 = Color.Lerp(color41, color36, amount9); - color41 *= (float)(num153 - num163) / 15f; - Vector2 vector44 = npc.oldPos[num163] + new Vector2((float)npc.width, (float)npc.height) / 2f - Main.screenPosition; - vector44 -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[npc.type])) * npc.scale / 2f; + color41 *= (num153 - num163) / 15f; + Vector2 vector44 = npc.oldPos[num163] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition; + vector44 -= new Vector2(texture2D15.Width, texture2D15.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f; vector44 += vector11 * npc.scale + new Vector2(0f, 4f + npc.gfxOffY); spriteBatch.Draw(texture2D15, vector44, npc.frame, color41, npc.rotation, vector11, npc.scale, spriteEffects, 0f); } diff --git a/NPCs/Calamitas/SoulSeeker.cs b/NPCs/Calamitas/SoulSeeker.cs index 01355e8780..3dec9f8484 100644 --- a/NPCs/Calamitas/SoulSeeker.cs +++ b/NPCs/Calamitas/SoulSeeker.cs @@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.Calamitas Color afterImageColor = lightColor; afterImageColor = Color.Lerp(afterImageColor, white, colorLerpAmt); afterImageColor = npc.GetAlpha(afterImageColor); - afterImageColor *= (float)(afterImageAmt - a) / 15f; + afterImageColor *= (afterImageAmt - a) / 15f; Vector2 afterimagePos = npc.oldPos[a] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition; afterimagePos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f; afterimagePos += origin * npc.scale + new Vector2(0f, 4f + npc.gfxOffY); @@ -210,7 +210,7 @@ namespace CalamityMod.NPCs.Calamitas } Vector2 drawPos = npc.Center - Main.screenPosition; - drawPos -= new Vector2((float)texture.Width, (float)(texture.Height)) * npc.scale / 2f; + drawPos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f; drawPos += origin * npc.scale + new Vector2(0f, 4f + npc.gfxOffY); spriteBatch.Draw(texture, drawPos, npc.frame, npc.GetAlpha(lightColor), npc.rotation, origin, npc.scale, spriteEffects, 0f); @@ -223,7 +223,7 @@ namespace CalamityMod.NPCs.Calamitas { Color glowColor = glow; glowColor = Color.Lerp(glowColor, white, colorLerpAmt); - glowColor *= (float)(afterImageAmt - a) / 15f; + glowColor *= (afterImageAmt - a) / 15f; Vector2 afterimagePos = npc.oldPos[a] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition; afterimagePos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f; afterimagePos += origin * npc.scale + new Vector2(0f, 4f + npc.gfxOffY); diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index efb71dffb2..bd72e90e44 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1307,27 +1307,27 @@ namespace CalamityMod.NPCs break; case 2: - scalar = 0.82; + scalar = 0.82; // 1.64 break; case 3: - scalar = 0.72; + scalar = 0.72; // 2.16 break; case 4: - scalar = 0.64; + scalar = 0.64; // 2.56 break; case 5: - scalar = 0.57; + scalar = 0.57; // 2.85 break; case 6: - scalar = 0.52; + scalar = 0.52; // 3.12 break; default: - scalar = 0.47; + scalar = 0.47; // 3.29 + 0.47 per player beyond 7 break; } diff --git a/NPCs/DevourerofGods/DevourerofGodsHeadS.cs b/NPCs/DevourerofGods/DevourerofGodsHeadS.cs index ae3d33fb54..b034b63b84 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHeadS.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHeadS.cs @@ -226,13 +226,11 @@ namespace CalamityMod.NPCs.DevourerofGods } else if (laserWallPhase == (int)LaserWallPhase.FireLaserWalls) { - if (idleCounter == idleCounterMax / 2) - SpawnTeleportLocation(player); - // Remain in laser wall firing phase for 6 seconds idleCounter--; if (idleCounter <= 0) { + SpawnTeleportLocation(player); laserWallPhase = (int)LaserWallPhase.End; idleCounter = idleCounterMax; } diff --git a/Projectiles/Boss/DoGTeleportRift.cs b/Projectiles/Boss/DoGTeleportRift.cs index db6024152e..71c2342c24 100644 --- a/Projectiles/Boss/DoGTeleportRift.cs +++ b/Projectiles/Boss/DoGTeleportRift.cs @@ -33,6 +33,9 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[0] == -1f) return; + if (projectile.timeLeft < 160) + projectile.timeLeft = 160; + if (!Main.npc[(int)projectile.ai[0]].active) projectile.Kill(); diff --git a/build.txt b/build.txt index 870e00c9fe..f5b833a153 100644 --- a/build.txt +++ b/build.txt @@ -1,5 +1,5 @@ author = Fabsol and the Dev Team -version = 1.4.5.002 +version = 1.4.5.003 displayName = Calamity Mod (No Calamity Music) homepage = https://forums.terraria.org/index.php?threads/calamity-mod.44065/ buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes