From 0f0ab3ee03be5e87f45e124e097294f21dd73ea7 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 11 Jun 2022 22:49:06 -0400 Subject: [PATCH] Renamed Cosmic Guardians --- CalamityLists.cs | 18 +++++++++--------- CalamityMod.cs | 6 +++--- DataStructures/NPCStats.cs | 6 +++--- Items/Weapons/Melee/TheLastMourning.cs | 2 +- ...erofGodsBody2.cs => CosmicGuardianBody.cs} | 6 +++--- ...ofGodsBody2.png => CosmicGuardianBody.png} | Bin ...dy2Glow.png => CosmicGuardianBodyGlow.png} | Bin ...erofGodsHead2.cs => CosmicGuardianHead.cs} | 14 +++++++------- ...ofGodsHead2.png => CosmicGuardianHead.png} | Bin ...ad2Glow.png => CosmicGuardianHeadGlow.png} | Bin ...2Glow2.png => CosmicGuardianHeadGlow2.png} | Bin ...erofGodsTail2.cs => CosmicGuardianTail.cs} | 6 +++--- ...ofGodsTail2.png => CosmicGuardianTail.png} | Bin ...il2Glow.png => CosmicGuardianTailGlow.png} | Bin NPCs/DevourerofGods/DevourerofGodsHead.cs | 6 +++--- Utilities/NPCDebuffs.cs | 6 +++--- 16 files changed, 35 insertions(+), 35 deletions(-) rename NPCs/DevourerofGods/{DevourerofGodsBody2.cs => CosmicGuardianBody.cs} (98%) rename NPCs/DevourerofGods/{DevourerofGodsBody2.png => CosmicGuardianBody.png} (100%) rename NPCs/DevourerofGods/{DevourerofGodsBody2Glow.png => CosmicGuardianBodyGlow.png} (100%) rename NPCs/DevourerofGods/{DevourerofGodsHead2.cs => CosmicGuardianHead.cs} (96%) rename NPCs/DevourerofGods/{DevourerofGodsHead2.png => CosmicGuardianHead.png} (100%) rename NPCs/DevourerofGods/{DevourerofGodsHead2Glow.png => CosmicGuardianHeadGlow.png} (100%) rename NPCs/DevourerofGods/{DevourerofGodsHead2Glow2.png => CosmicGuardianHeadGlow2.png} (100%) rename NPCs/DevourerofGods/{DevourerofGodsTail2.cs => CosmicGuardianTail.cs} (98%) rename NPCs/DevourerofGods/{DevourerofGodsTail2.png => CosmicGuardianTail.png} (100%) rename NPCs/DevourerofGods/{DevourerofGodsTail2Glow.png => CosmicGuardianTailGlow.png} (100%) diff --git a/CalamityLists.cs b/CalamityLists.cs index 30eeb10138..3dc09c06fb 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -2012,9 +2012,9 @@ namespace CalamityMod NPCType(), NPCType(), NPCType(), - NPCType(), - NPCType(), - NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCType(), NPCType(), NPCType(), @@ -2101,9 +2101,9 @@ namespace CalamityMod CosmicGuardianIDs = new List { - NPCType(), - NPCType(), - NPCType() + NPCType(), + NPCType(), + NPCType() }; AquaticScourgeIDs = new List @@ -2687,9 +2687,9 @@ namespace CalamityMod NPCType(), NPCType(), NPCType(), - NPCType(), - NPCType(), - NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCType(), NPCType() }; diff --git a/CalamityMod.cs b/CalamityMod.cs index 3cd7431fd5..e4d780fbf5 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -727,9 +727,9 @@ namespace CalamityMod { ModContent.NPCType(), bitingEnemeyVelocityScale }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, - { ModContent.NPCType(), bitingEnemeyVelocityScale }, - { ModContent.NPCType(), velocityScaleMin }, - { ModContent.NPCType(), velocityScaleMin }, + { ModContent.NPCType(), bitingEnemeyVelocityScale }, + { ModContent.NPCType(), velocityScaleMin }, + { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, // Increases in phase 2 diff --git a/DataStructures/NPCStats.cs b/DataStructures/NPCStats.cs index e2bd39c0a5..e53116afaa 100644 --- a/DataStructures/NPCStats.cs +++ b/DataStructures/NPCStats.cs @@ -525,9 +525,9 @@ namespace CalamityMod { ModContent.NPCType(), new int[] { 350, 700, 750, 780, 880 } }, { ModContent.NPCType(), new int[] { 220, 374, 425, 442, 561 } }, { ModContent.NPCType(), new int[] { 180, 306, 340, 357, 459 } }, - { ModContent.NPCType(), new int[] { 180, 360, 396, 420, 510 } }, - { ModContent.NPCType(), new int[] { 130, 260, 290, 320, 420 } }, - { ModContent.NPCType(), new int[] { 100, 200, 230, 260, 330 } }, + { ModContent.NPCType(), new int[] { 180, 360, 396, 420, 510 } }, + { ModContent.NPCType(), new int[] { 130, 260, 290, 320, 420 } }, + { ModContent.NPCType(), new int[] { 100, 200, 230, 260, 330 } }, { ModContent.NPCType(), new int[] { 330, 528, 560, 576, 690 } }, diff --git a/Items/Weapons/Melee/TheLastMourning.cs b/Items/Weapons/Melee/TheLastMourning.cs index fc3bf9112b..b10ca26194 100644 --- a/Items/Weapons/Melee/TheLastMourning.cs +++ b/Items/Weapons/Melee/TheLastMourning.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Melee if (crit) damage /= 2; - bool isDoGSegment = target.type == ModContent.NPCType() || target.type == ModContent.NPCType(); + bool isDoGSegment = target.type == ModContent.NPCType() || target.type == ModContent.NPCType(); if (!isDoGSegment || Main.rand.NextBool(3)) { CalamityPlayer.HorsemansBladeOnHit(player, target.whoAmI, damage, knockback, 0, ModContent.ProjectileType()); diff --git a/NPCs/DevourerofGods/DevourerofGodsBody2.cs b/NPCs/DevourerofGods/CosmicGuardianBody.cs similarity index 98% rename from NPCs/DevourerofGods/DevourerofGodsBody2.cs rename to NPCs/DevourerofGods/CosmicGuardianBody.cs index 6ffb319762..96db3bc1f3 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBody2.cs +++ b/NPCs/DevourerofGods/CosmicGuardianBody.cs @@ -9,7 +9,7 @@ using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.NPCs.DevourerofGods { - public class DevourerofGodsBody2 : ModNPC + public class CosmicGuardianBody : ModNPC { public int invinceTime = 180; @@ -83,7 +83,7 @@ namespace CalamityMod.NPCs.DevourerofGods bool shouldDespawn = true; for (int i = 0; i < Main.maxNPCs; i++) { - if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) + if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) { shouldDespawn = false; break; @@ -153,7 +153,7 @@ namespace CalamityMod.NPCs.DevourerofGods vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - texture2D15 = ModContent.Request("CalamityMod/NPCs/DevourerofGods/DevourerofGodsBody2Glow").Value; + texture2D15 = ModContent.Request("CalamityMod/NPCs/DevourerofGods/CosmicGuardianBodyGlow").Value; Color color37 = Color.Lerp(Color.White, Color.Fuchsia, 0.5f); spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); diff --git a/NPCs/DevourerofGods/DevourerofGodsBody2.png b/NPCs/DevourerofGods/CosmicGuardianBody.png similarity index 100% rename from NPCs/DevourerofGods/DevourerofGodsBody2.png rename to NPCs/DevourerofGods/CosmicGuardianBody.png diff --git a/NPCs/DevourerofGods/DevourerofGodsBody2Glow.png b/NPCs/DevourerofGods/CosmicGuardianBodyGlow.png similarity index 100% rename from NPCs/DevourerofGods/DevourerofGodsBody2Glow.png rename to NPCs/DevourerofGods/CosmicGuardianBodyGlow.png diff --git a/NPCs/DevourerofGods/DevourerofGodsHead2.cs b/NPCs/DevourerofGods/CosmicGuardianHead.cs similarity index 96% rename from NPCs/DevourerofGods/DevourerofGodsHead2.cs rename to NPCs/DevourerofGods/CosmicGuardianHead.cs index bb9211a0be..ecbec22faf 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead2.cs +++ b/NPCs/DevourerofGods/CosmicGuardianHead.cs @@ -13,7 +13,7 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.DevourerofGods { - public class DevourerofGodsHead2 : ModNPC + public class CosmicGuardianHead : ModNPC { private bool tail = false; private const int minLength = 10; @@ -112,11 +112,11 @@ namespace CalamityMod.NPCs.DevourerofGods int segment; if (segmentSpawn >= 0 && segmentSpawn < minLength) { - segment = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); + segment = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); } else { - segment = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); + segment = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); } Main.npc[segment].realLife = NPC.whoAmI; Main.npc[segment].ai[2] = NPC.whoAmI; @@ -145,7 +145,7 @@ namespace CalamityMod.NPCs.DevourerofGods { for (int a = 0; a < Main.maxNPCs; a++) { - if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType()) + if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType()) Main.npc[a].active = false; } } @@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.DevourerofGods { for (int a = 0; a < Main.maxNPCs; a++) { - if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType()) + if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType() || Main.npc[a].type == ModContent.NPCType()) Main.npc[a].active = false; } } @@ -347,12 +347,12 @@ namespace CalamityMod.NPCs.DevourerofGods vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - texture2D15 = ModContent.Request("CalamityMod/NPCs/DevourerofGods/DevourerofGodsHead2Glow").Value; + texture2D15 = ModContent.Request("CalamityMod/NPCs/DevourerofGods/CosmicGuardianHeadGlow").Value; Color color37 = Color.Lerp(Color.White, Color.Fuchsia, 0.5f); spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - texture2D15 = ModContent.Request("CalamityMod/NPCs/DevourerofGods/DevourerofGodsHead2Glow2").Value; + texture2D15 = ModContent.Request("CalamityMod/NPCs/DevourerofGods/CosmicGuardianHeadGlow2").Value; color37 = Color.Lerp(Color.White, Color.Cyan, 0.5f); spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); diff --git a/NPCs/DevourerofGods/DevourerofGodsHead2.png b/NPCs/DevourerofGods/CosmicGuardianHead.png similarity index 100% rename from NPCs/DevourerofGods/DevourerofGodsHead2.png rename to NPCs/DevourerofGods/CosmicGuardianHead.png diff --git a/NPCs/DevourerofGods/DevourerofGodsHead2Glow.png b/NPCs/DevourerofGods/CosmicGuardianHeadGlow.png similarity index 100% rename from NPCs/DevourerofGods/DevourerofGodsHead2Glow.png rename to NPCs/DevourerofGods/CosmicGuardianHeadGlow.png diff --git a/NPCs/DevourerofGods/DevourerofGodsHead2Glow2.png b/NPCs/DevourerofGods/CosmicGuardianHeadGlow2.png similarity index 100% rename from NPCs/DevourerofGods/DevourerofGodsHead2Glow2.png rename to NPCs/DevourerofGods/CosmicGuardianHeadGlow2.png diff --git a/NPCs/DevourerofGods/DevourerofGodsTail2.cs b/NPCs/DevourerofGods/CosmicGuardianTail.cs similarity index 98% rename from NPCs/DevourerofGods/DevourerofGodsTail2.cs rename to NPCs/DevourerofGods/CosmicGuardianTail.cs index 5fdaf6c54b..6c3d4f687c 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTail2.cs +++ b/NPCs/DevourerofGods/CosmicGuardianTail.cs @@ -9,7 +9,7 @@ using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.NPCs.DevourerofGods { - public class DevourerofGodsTail2 : ModNPC + public class CosmicGuardianTail : ModNPC { public int invinceTime = 180; @@ -80,7 +80,7 @@ namespace CalamityMod.NPCs.DevourerofGods bool shouldDespawn = true; for (int i = 0; i < Main.maxNPCs; i++) { - if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) + if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) { shouldDespawn = false; break; @@ -150,7 +150,7 @@ namespace CalamityMod.NPCs.DevourerofGods vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - texture2D15 = ModContent.Request("CalamityMod/NPCs/DevourerofGods/DevourerofGodsTail2Glow").Value; + texture2D15 = ModContent.Request("CalamityMod/NPCs/DevourerofGods/CosmicGuardianTailGlow").Value; Color color37 = Color.Lerp(Color.White, Color.Cyan, 0.5f); spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); diff --git a/NPCs/DevourerofGods/DevourerofGodsTail2.png b/NPCs/DevourerofGods/CosmicGuardianTail.png similarity index 100% rename from NPCs/DevourerofGods/DevourerofGodsTail2.png rename to NPCs/DevourerofGods/CosmicGuardianTail.png diff --git a/NPCs/DevourerofGods/DevourerofGodsTail2Glow.png b/NPCs/DevourerofGods/CosmicGuardianTailGlow.png similarity index 100% rename from NPCs/DevourerofGods/DevourerofGodsTail2Glow.png rename to NPCs/DevourerofGods/CosmicGuardianTailGlow.png diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 579fff77c8..ed121646a3 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -646,7 +646,7 @@ namespace CalamityMod.NPCs.DevourerofGods SoundEngine.PlaySound(AttackSound, player.position); for (int i = 0; i < 3; i++) - NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType()); + NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType()); } spawnedGuardians3 = true; @@ -1378,7 +1378,7 @@ namespace CalamityMod.NPCs.DevourerofGods SoundEngine.PlaySound(AttackSound, player.position); for (int i = 0; i < 2; i++) - NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType()); + NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType()); } } } @@ -1399,7 +1399,7 @@ namespace CalamityMod.NPCs.DevourerofGods { SoundEngine.PlaySound(AttackSound, player.position); - NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType()); + NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType()); } } } diff --git a/Utilities/NPCDebuffs.cs b/Utilities/NPCDebuffs.cs index 89c585ef81..413a8680ae 100644 --- a/Utilities/NPCDebuffs.cs +++ b/Utilities/NPCDebuffs.cs @@ -165,9 +165,9 @@ namespace CalamityMod { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, - { ModContent.NPCType(), new Tuple(true, new int[] { }) }, - { ModContent.NPCType(), new Tuple(true, new int[] { }) }, - { ModContent.NPCType(), new Tuple(true, new int[] { }) }, + { ModContent.NPCType(), new Tuple(true, new int[] { }) }, + { ModContent.NPCType(), new Tuple(true, new int[] { }) }, + { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, new int[] { BuffID.OnFire }) },