diff --git a/CalamityMod.cs b/CalamityMod.cs index d7b7086583..c904a2c4f9 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -20,7 +20,7 @@ using CalamityMod.ILEditing; using CalamityMod.Items; using CalamityMod.Items.Dyes.HairDye; using CalamityMod.Items.VanillaArmorChanges; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.AstrumDeus; @@ -747,7 +747,7 @@ namespace CalamityMod { ModContent.NPCType(), 21600 }, { ModContent.NPCType(), 21600 }, { ModContent.NPCType(), 18000 }, // 5:00 (300 seconds) - { ModContent.NPCType(), 18000 } // 5:00 (300 seconds) + { ModContent.NPCType(), 18000 } // 5:00 (300 seconds) }; } #endregion @@ -867,7 +867,7 @@ namespace CalamityMod { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, - { ModContent.NPCType(), bitingEnemeyVelocityScale } + { ModContent.NPCType(), bitingEnemeyVelocityScale } }; } #endregion diff --git a/DataStructures/NPCStats.cs b/DataStructures/NPCStats.cs index 438858fb20..031c041169 100644 --- a/DataStructures/NPCStats.cs +++ b/DataStructures/NPCStats.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.AstrumDeus; @@ -292,7 +292,7 @@ namespace CalamityMod { ModContent.NPCType(), 0.8 }, { ModContent.NPCType(), 0.8 }, - { ModContent.NPCType(), 0.8 } + { ModContent.NPCType(), 0.8 } }; EnemyStats.ContactDamageValues = new SortedDictionary @@ -545,7 +545,7 @@ namespace CalamityMod { ModContent.NPCType(), new int[] { 300, 480, 512, 528, 660 } }, { ModContent.NPCType(), new int[] { 250, 400, 424, 440, 552 } }, - { ModContent.NPCType(), new int[] { 400, 800, 850, 880, 1000 } } + { ModContent.NPCType(), new int[] { 400, 800, 850, 880, 1000 } } }; EnemyStats.ProjectileDamageValues = new SortedDictionary, int[]> @@ -830,10 +830,10 @@ namespace CalamityMod { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 630 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 400, 608, 640, 658, 960 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } } + { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } } }; } diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index 75550542fe..286fb4bede 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -2,7 +2,7 @@ using CalamityMod.CalPlayer; using CalamityMod.Items.SummonItems; using CalamityMod.NPCs.Abyss; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.AstrumDeus; diff --git a/ExtraTextures/Bestiary/AdultEidolonWyrm_Bestiary.png b/ExtraTextures/Bestiary/PrimordialWyrm_Bestiary.png similarity index 100% rename from ExtraTextures/Bestiary/AdultEidolonWyrm_Bestiary.png rename to ExtraTextures/Bestiary/PrimordialWyrm_Bestiary.png diff --git a/Gores/WyrmAdult.png b/Gores/PrimordialWyrm.png similarity index 100% rename from Gores/WyrmAdult.png rename to Gores/PrimordialWyrm.png diff --git a/Gores/WyrmAdult2.png b/Gores/PrimordialWyrm2.png similarity index 100% rename from Gores/WyrmAdult2.png rename to Gores/PrimordialWyrm2.png diff --git a/Gores/WyrmAdult3.png b/Gores/PrimordialWyrm3.png similarity index 100% rename from Gores/WyrmAdult3.png rename to Gores/PrimordialWyrm3.png diff --git a/Gores/WyrmAdult4.png b/Gores/PrimordialWyrm4.png similarity index 100% rename from Gores/WyrmAdult4.png rename to Gores/PrimordialWyrm4.png diff --git a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson index 008f9cf157..11e48d02a5 100644 --- a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson +++ b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson @@ -154,7 +154,6 @@ CrimsonSlimeSpawn2: Embedded in these slime's bodies are shards of crimulan ston Sepulcher: This might just be the vilest undead abomination in this realm. The Sepulcher itself is completely immune to physical damage, and can only be killed by destroying its many suspended organs. SoulSeekerSupreme: Incomplete, ghoulish skulls, their forms are limited but their devotion boundless. It's likely each yearns for a soul of their own to be complete, whether it's given by Calamitas or ripped from the foe they kill. //Bosses -AdultEidolonWyrm: Traces of them appear even in records as far back as the early Draconic Era... They may very well be a glimpse into the full potential of nature. AquaticScourge: A species of scourge which has had its exoskeleton hardened and tempered by years of diving through sulphuric waters for prey. Its own jaws are now imbued with the venom of those seas. AstrumAureus: A multi-legged mechanical beast, its very existence speaks of the extent of control the astral virus has over the non-sapient. Not even machinery can stand against it. AstrumDeus: Revered as a God of the stars, it has been infected by the starborne illness. However, it has now been broken free from the infection's control and roams the stars once more, consuming dying stars and birthing them anew. @@ -182,6 +181,7 @@ Perforator: Each equipped with a deadly mouthpiece, the different ones are suite PerforatorHive: Though birthed by the crimson, it is unknown whether they fully serve that creator. The worms of the hive frequently carve huge tunnels in the crimson's flesh. PlaguebringerGoliath: Machinery and nanobots have nearly entirely eaten away at the form of this Queen Bee. One wonders if it would simply be more efficient to create one from the ground up. Polterghast: Screaming and crying, a cacophony of spirits in anguish tear through the narrow hallways of the dungeon, searching for more—alive or dead—to add to their numbers. +PrimordialWyrm: Traces of them appear even in records as far back as the early Draconic Era... They may very well be a glimpse into the full potential of nature. ProfanedGuardianCommander: When it turns its burning spear towards anything, its simple mind has a clear goal. To entirely eradicate the enemy. ProfanedGuardianDefender: The body it has formed boasts of a stone shell hallowed and tempered by the flames of the sun. Very little can fully shatter its defense. ProfanedGuardianHealer: Its crystal which is displayed prominently on its body is able to restore damage done to its kin, and it draws that damage into flares which steal your life. diff --git a/Localization/en-US/Mods.CalamityMod.NPCs.hjson b/Localization/en-US/Mods.CalamityMod.NPCs.hjson index ddad0b9af2..da480805f5 100644 --- a/Localization/en-US/Mods.CalamityMod.NPCs.hjson +++ b/Localization/en-US/Mods.CalamityMod.NPCs.hjson @@ -71,7 +71,6 @@ Radiator.DisplayName: Radiator Skyfin.DisplayName: Skyfin SulphurousSkater.DisplayName: Sulphurous Skater Trilobite.DisplayName: Trilobite -AdultEidolonWyrmHead.DisplayName: Adult Eidolon Wyrm Jared: Jared AquaticScourgeHead: { @@ -434,6 +433,7 @@ Necroplasm: Necroplasm Polterplasm: Polterplasm PolterghastHook.DisplayName: Polterghast Hook PolterPhantom.DisplayName: Polterghast +PrimordialWyrmHead.DisplayName: Primordial Wyrm ProfanedGuardianCommander: { DisplayName: Guardian Commander diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index c3283711fb..7c66d039b0 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -309,7 +309,7 @@ namespace CalamityMod case "adult wyrm": case "adulteidolon": case "adult eidolon": - return DownedBossSystem.downedAdultEidolonWyrm; + return DownedBossSystem.downedPrimordialWyrm; case "bossrush": case "boss rush": diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 168e97d359..d366c6ca50 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -30,7 +30,7 @@ using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Items.Weapons.Typeless; using CalamityMod.NPCs.AcidRain; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.Astral; using CalamityMod.NPCs.AstrumAureus; @@ -118,7 +118,7 @@ namespace CalamityMod public static readonly Func DownedYharon = () => DownedBossSystem.downedYharon; public static readonly Func DownedExoMechs = () => DownedBossSystem.downedExoMechs; public static readonly Func DownedSCal = () => DownedBossSystem.downedCalamitas; - public static readonly Func DownedAdultEidolonWyrm = () => DownedBossSystem.downedAdultEidolonWyrm; + public static readonly Func DownedPrimordialWyrm = () => DownedBossSystem.downedPrimordialWyrm; public static readonly Func DownedAcidRainInitial = () => DownedBossSystem.downedEoCAcidRain; public static readonly Func DownedAcidRainHardmode = () => DownedBossSystem.downedAquaticScourgeAcidRain; @@ -187,7 +187,7 @@ namespace CalamityMod { "Yharon", 22f }, { "ExoMechs", 22.99f }, { "Calamitas", 23f }, - // { "AdultEidolonWyrm", 23.5f }, + // { "PrimordialWyrm", 23.5f }, { "BossRush", 25.99f }, // { "Yharim", 24f }, // { "Noxus", 25f }, diff --git a/NPCs/Abyss/EidolonWyrmHead.cs b/NPCs/Abyss/EidolonWyrmHead.cs index 25eab27538..e30346deb4 100644 --- a/NPCs/Abyss/EidolonWyrmHead.cs +++ b/NPCs/Abyss/EidolonWyrmHead.cs @@ -7,7 +7,7 @@ using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.Sounds; using CalamityMod.World; @@ -444,7 +444,7 @@ namespace CalamityMod.NPCs.Abyss public override void ModifyNPCLoot(NPCLoot npcLoot) { // Never drop anything if this Eidolon Wyrm is a minion during an AEW fight. - var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings); + var aewMinionCondition = npcLoot.DefineConditionalDropSet(PrimordialWyrmHead.CanMinionsDropThings); // 30-40 Voidstone aewMinionCondition.Add(ModContent.ItemType(), 1, 30, 40); diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 3cd08048e9..45679e3d52 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -9,7 +9,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Tools; using CalamityMod.Items.Weapons.Melee; using CalamityMod.NPCs.Abyss; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.AcidRain; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.Astral; @@ -551,7 +551,7 @@ namespace CalamityMod.NPCs ResetSavedIndex(ref draedonExoMechPrime, NPCType()); ResetSavedIndex(ref draedonExoMechPrimePlasmaCannon, NPCType()); - ResetSavedIndex(ref adultEidolonWyrmHead, NPCType()); + ResetSavedIndex(ref adultEidolonWyrmHead, NPCType()); // Reset the enraged state every frame. The expectation is that bosses will continuously set it back to true if necessary. CurrentlyEnraged = false; @@ -2830,7 +2830,7 @@ namespace CalamityMod.NPCs // Adult Wyrm Ancient Doom if (npc.type == NPCID.AncientDoom) { - if (Main.npc[(int)npc.ai[0]].type == NPCType()) + if (Main.npc[(int)npc.ai[0]].type == NPCType()) return CultistAI.BuffedAncientDoomAI(npc, Mod); } @@ -6305,9 +6305,9 @@ namespace CalamityMod.NPCs { return DownedBossSystem.downedCalamitas; } - else if (type == NPCType()) + else if (type == NPCType()) { - return DownedBossSystem.downedAdultEidolonWyrm; + return DownedBossSystem.downedPrimordialWyrm; } return true; @@ -6376,7 +6376,7 @@ namespace CalamityMod.NPCs if (target.damage > 0 && !target.boss && !target.friendly && !target.dontTakeDamage && target.type != NPCID.Creeper && target.type != NPCType() && target.type != NPCID.MourningWood && target.type != NPCID.Everscream && target.type != NPCID.SantaNK1 && target.type != NPCType() && target.type != NPCType() && target.type != NPCType() && target.type != NPCType() && target.type != NPCID.GolemFistLeft && target.type != NPCID.GolemFistRight && - target.type != NPCType() && target.type != NPCType() && target.type != NPCID.DD2Betsy && !CalamityLists.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type)) + target.type != NPCType() && target.type != NPCType() && target.type != NPCID.DD2Betsy && !CalamityLists.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type)) { return true; } diff --git a/NPCs/NormalNPCs/Eidolist.cs b/NPCs/NormalNPCs/Eidolist.cs index 16bc409e91..b3759948fb 100644 --- a/NPCs/NormalNPCs/Eidolist.cs +++ b/NPCs/NormalNPCs/Eidolist.cs @@ -11,7 +11,7 @@ using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; namespace CalamityMod.NPCs.NormalNPCs { @@ -354,7 +354,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyNPCLoot(NPCLoot npcLoot) { // Never drop anything if this Eidolon Wyrm is a minion during an AEW fight. - var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings); + var aewMinionCondition = npcLoot.DefineConditionalDropSet(PrimordialWyrmHead.CanMinionsDropThings); LeadingConditionRule notDuringCultistFight = new LeadingConditionRule(DropHelper.If(() => !NPC.LunarApocalypseIsUp)); notDuringCultistFight.Add(ModContent.ItemType(), 4); diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 5a0cec958d..991a9befa3 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -80,7 +80,7 @@ namespace CalamityMod.NPCs.Polterghast NPCs.Abyss.ReaperShark.EnragedRoarSound, NPCs.Abyss.LuminousCorvina.ScreamSound, NPCs.Abyss.DevilFish.MaskBreakSound, - NPCs.AdultEidolonWyrm.AdultEidolonWyrmHead.ChargeSound, + NPCs.PrimordialWyrm.PrimordialWyrmHead.ChargeSound, NPCs.GreatSandShark.GreatSandShark.RoarSound, NPCs.AcidRain.Mauler.RoarSound, NPCs.AstrumDeus.AstrumDeusHead.DeathSound, diff --git a/NPCs/AdultEidolonWyrm/AEWMusicScene.cs b/NPCs/PrimordialWyrm/AEWMusicScene.cs similarity index 72% rename from NPCs/AdultEidolonWyrm/AEWMusicScene.cs rename to NPCs/PrimordialWyrm/AEWMusicScene.cs index a49e9b18e5..b246ad62ed 100644 --- a/NPCs/AdultEidolonWyrm/AEWMusicScene.cs +++ b/NPCs/PrimordialWyrm/AEWMusicScene.cs @@ -1,4 +1,4 @@ -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -8,8 +8,8 @@ namespace CalamityMod.Systems public class AEWMusicScene : BaseMusicSceneEffect { public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; - public override int NPCType => ModContent.NPCType(); - public override int? MusicModMusic => CalamityMod.Instance.GetMusicFromMusicMod("AdultEidolonWyrm"); + public override int NPCType => ModContent.NPCType(); + public override int? MusicModMusic => CalamityMod.Instance.GetMusicFromMusicMod("PrimordialWyrm"); public override int VanillaMusic => MusicID.Boss3; public override int OtherworldMusic => MusicID.OtherworldlyBoss2; } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs b/NPCs/PrimordialWyrm/PrimordialWyrmBody.cs similarity index 90% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs rename to NPCs/PrimordialWyrm/PrimordialWyrmBody.cs index 83cc814255..f36e27e98e 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs +++ b/NPCs/PrimordialWyrm/PrimordialWyrmBody.cs @@ -9,11 +9,11 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; -namespace CalamityMod.NPCs.AdultEidolonWyrm +namespace CalamityMod.NPCs.PrimordialWyrm { - public class AdultEidolonWyrmBody : ModNPC + public class PrimordialWyrmBody : ModNPC { - public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.AdultEidolonWyrmHead.DisplayName"); + public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.PrimordialWyrmHead.DisplayName"); public override void SetStaticDefaults() { this.HideFromBestiary(); @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm // Check if other segments are still alive. If not, die. bool shouldDespawn = true; - int wyrmHeadID = ModContent.NPCType(); + int wyrmHeadID = ModContent.NPCType(); for (int i = 0; i < Main.maxNPCs; i++) { if (Main.npc[i].active && Main.npc[i].type == wyrmHeadID) @@ -98,8 +98,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm float chargePhaseGateValue = death ? 180f : revenge ? 210f : expertMode ? 240f : 300f; float lightningChargePhaseGateValue = death ? 120f : revenge ? 135f : expertMode ? 150f : 180f; - bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge); - bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge; + bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FastCharge); + bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.LightningCharge; bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f; if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase) { @@ -117,8 +117,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm NPC.Opacity = 0f; } - bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) || - (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f); + bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) || + (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f); if (spawnAncientLights) { if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f) @@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm center += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture, center, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f); - texture = ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyGlow").Value; + texture = ModContent.Request("CalamityMod/NPCs/PrimordialWyrm/PrimordialWyrmBodyGlow").Value; spriteBatch.Draw(texture, center, NPC.frame, Color.White * NPC.Opacity, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); return false; @@ -189,7 +189,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find("WyrmAdult2").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find("PrimordialWyrm2").Type, 1f); } } } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.png b/NPCs/PrimordialWyrm/PrimordialWyrmBody.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.png rename to NPCs/PrimordialWyrm/PrimordialWyrmBody.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs b/NPCs/PrimordialWyrm/PrimordialWyrmBodyAlt.cs similarity index 90% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs rename to NPCs/PrimordialWyrm/PrimordialWyrmBodyAlt.cs index 6699b7716f..f4263b6cde 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs +++ b/NPCs/PrimordialWyrm/PrimordialWyrmBodyAlt.cs @@ -9,11 +9,11 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; -namespace CalamityMod.NPCs.AdultEidolonWyrm +namespace CalamityMod.NPCs.PrimordialWyrm { - public class AdultEidolonWyrmBodyAlt : ModNPC + public class PrimordialWyrmBodyAlt : ModNPC { - public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.AdultEidolonWyrmHead.DisplayName"); + public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.PrimordialWyrmHead.DisplayName"); public override void SetStaticDefaults() { this.HideFromBestiary(); @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm // Check if other segments are still alive. If not, die. bool shouldDespawn = true; - int wyrmHeadID = ModContent.NPCType(); + int wyrmHeadID = ModContent.NPCType(); for (int i = 0; i < Main.maxNPCs; i++) { if (Main.npc[i].active && Main.npc[i].type == wyrmHeadID) @@ -98,8 +98,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm float chargePhaseGateValue = death ? 180f : revenge ? 210f : expertMode ? 240f : 300f; float lightningChargePhaseGateValue = death ? 120f : revenge ? 135f : expertMode ? 150f : 180f; - bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge); - bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge; + bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FastCharge); + bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.LightningCharge; bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f; if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase) { @@ -117,8 +117,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm NPC.Opacity = 0f; } - bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) || - (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f); + bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) || + (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f); if (shootShadowFireballs) { if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f) @@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm center += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture, center, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f); - texture = ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value; + texture = ModContent.Request("CalamityMod/NPCs/PrimordialWyrm/PrimordialWyrmBodyAltGlow").Value; spriteBatch.Draw(texture, center, NPC.frame, Color.White * NPC.Opacity, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); return false; @@ -189,7 +189,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find("WyrmAdult3").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find("PrimordialWyrm3").Type, 1f); } } } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.png b/NPCs/PrimordialWyrm/PrimordialWyrmBodyAlt.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.png rename to NPCs/PrimordialWyrm/PrimordialWyrmBodyAlt.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow.png b/NPCs/PrimordialWyrm/PrimordialWyrmBodyAltGlow.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow.png rename to NPCs/PrimordialWyrm/PrimordialWyrmBodyAltGlow.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyGlow.png b/NPCs/PrimordialWyrm/PrimordialWyrmBodyGlow.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyGlow.png rename to NPCs/PrimordialWyrm/PrimordialWyrmBodyGlow.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs b/NPCs/PrimordialWyrm/PrimordialWyrmHead.cs similarity index 99% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs rename to NPCs/PrimordialWyrm/PrimordialWyrmHead.cs index 775e129437..32c25068bb 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs +++ b/NPCs/PrimordialWyrm/PrimordialWyrmHead.cs @@ -23,10 +23,10 @@ using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.NPCs.AdultEidolonWyrm +namespace CalamityMod.NPCs.PrimordialWyrm { [AutoloadBossHead] - public class AdultEidolonWyrmHead : ModNPC + public class PrimordialWyrmHead : ModNPC { public enum Phase { @@ -77,8 +77,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm //Sounds public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/Scare"); - public static readonly SoundStyle ChargeSound = new("CalamityMod/Sounds/Custom/AdultEidolonCharge"); - public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AdultEidolonDeath"); + public static readonly SoundStyle ChargeSound = new("CalamityMod/Sounds/Custom/PrimordialWyrmCharge"); + public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/PrimordialWyrmDeath"); public override void SetStaticDefaults() { @@ -88,7 +88,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm Scale = 0.50f, PortraitScale = 0.6f, PortraitPositionXOverride = 40, - CustomTexturePath = "CalamityMod/ExtraTextures/Bestiary/AdultEidolonWyrm_Bestiary" + CustomTexturePath = "CalamityMod/ExtraTextures/Bestiary/PrimordialWyrm_Bestiary" }; value.Position.X += 55; value.Position.Y += 5; @@ -141,7 +141,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm //AAAAAAAAAAAAH Scary abyss superboss guy so he gets pitch black bg and no biome source. //eidolon wyrm comment jumpscare!!!!!! new MoonLordPortraitBackgroundProviderBestiaryInfoElement(), - new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.AdultEidolonWyrm") + new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.PrimordialWyrm") }); } @@ -229,12 +229,12 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (i >= 0 && i < minLength) { if (i % 2 == 0) - lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); + lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); else - lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); + lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); } else - lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); + lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); Main.npc[lol].realLife = NPC.whoAmI; Main.npc[lol].ai[2] = NPC.whoAmI; @@ -276,7 +276,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm { 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() || 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].type == ModContent.NPCType()) Main.npc[a].active = false; } } @@ -1433,7 +1433,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm center += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture, center, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f); - texture = ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow").Value; + texture = ModContent.Request("CalamityMod/NPCs/PrimordialWyrm/PrimordialWyrmHeadGlow").Value; spriteBatch.Draw(texture, center, NPC.frame, Color.White * NPC.Opacity, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); return false; @@ -1471,7 +1471,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm for (int k = 0; k < 15; k++) Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hit.HitDirection, -1f, 0, default, 1f); - Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("WyrmAdult").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("PrimordialWyrm").Type, 1f); } } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.png b/NPCs/PrimordialWyrm/PrimordialWyrmHead.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.png rename to NPCs/PrimordialWyrm/PrimordialWyrmHead.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow.png b/NPCs/PrimordialWyrm/PrimordialWyrmHeadGlow.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow.png rename to NPCs/PrimordialWyrm/PrimordialWyrmHeadGlow.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead_Head_Boss.png b/NPCs/PrimordialWyrm/PrimordialWyrmHead_Head_Boss.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead_Head_Boss.png rename to NPCs/PrimordialWyrm/PrimordialWyrmHead_Head_Boss.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs b/NPCs/PrimordialWyrm/PrimordialWyrmTail.cs similarity index 90% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs rename to NPCs/PrimordialWyrm/PrimordialWyrmTail.cs index a9208e336d..2a4545fa9b 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs +++ b/NPCs/PrimordialWyrm/PrimordialWyrmTail.cs @@ -8,11 +8,11 @@ using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; -namespace CalamityMod.NPCs.AdultEidolonWyrm +namespace CalamityMod.NPCs.PrimordialWyrm { - public class AdultEidolonWyrmTail : ModNPC + public class PrimordialWyrmTail : ModNPC { - public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.AdultEidolonWyrmHead.DisplayName"); + public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.PrimordialWyrmHead.DisplayName"); public override void SetStaticDefaults() { this.HideFromBestiary(); @@ -58,7 +58,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm // Check if other segments are still alive. If not, die. bool shouldDespawn = true; - int wyrmHeadID = ModContent.NPCType(); + int wyrmHeadID = ModContent.NPCType(); for (int i = 0; i < Main.maxNPCs; i++) { if (Main.npc[i].active && Main.npc[i].type == wyrmHeadID) @@ -87,8 +87,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm float chargePhaseGateValue = death ? 180f : revenge ? 210f : expertMode ? 240f : 300f; float lightningChargePhaseGateValue = death ? 120f : revenge ? 135f : expertMode ? 150f : 180f; - bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge); - bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge; + bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FastCharge); + bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.LightningCharge; bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f; if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase) { @@ -134,7 +134,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm center += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture, center, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f); - texture = ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value; + texture = ModContent.Request("CalamityMod/NPCs/PrimordialWyrm/PrimordialWyrmTailGlow").Value; spriteBatch.Draw(texture, center, NPC.frame, Color.White * NPC.Opacity, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); return false; @@ -151,7 +151,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find("WyrmAdult4").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find("PrimordialWyrm4").Type, 1f); } } } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.png b/NPCs/PrimordialWyrm/PrimordialWyrmTail.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.png rename to NPCs/PrimordialWyrm/PrimordialWyrmTail.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow.png b/NPCs/PrimordialWyrm/PrimordialWyrmTailGlow.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow.png rename to NPCs/PrimordialWyrm/PrimordialWyrmTailGlow.png diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrm_BossChecklist.png b/NPCs/PrimordialWyrm/PrimordialWyrm_BossChecklist.png similarity index 100% rename from NPCs/AdultEidolonWyrm/AdultEidolonWyrm_BossChecklist.png rename to NPCs/PrimordialWyrm/PrimordialWyrm_BossChecklist.png diff --git a/NPCs/VanillaNPCOverrides/Bosses/CultistAI.cs b/NPCs/VanillaNPCOverrides/Bosses/CultistAI.cs index 3df9706751..b58ab7914f 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/CultistAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/CultistAI.cs @@ -1,5 +1,5 @@ using CalamityMod.Events; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.World; using Microsoft.Xna.Framework; using System; @@ -1043,7 +1043,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (npc.ai[0] >= 0f) { - // Triple damage if the Adult Eidolon Wyrm is alive + // Triple damage if the Primordial Wyrm is alive if (npc.ai[0] == 0f) { if (CalamityGlobalNPC.adultEidolonWyrmHead != -1) @@ -1090,12 +1090,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses float lifeRatio = Main.npc[(int)npc.ai[0]].life / (float)Main.npc[(int)npc.ai[0]].lifeMax; bool phase2 = lifeRatio < 0.7f; - bool phase3 = lifeRatio < (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType() ? 0.6f : 0.55f); + bool phase3 = lifeRatio < (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType() ? 0.6f : 0.55f); bool phase4 = lifeRatio < 0.4f; bool kill = npc.ai[1] < 0f || !Main.npc[(int)npc.ai[0]].active; int target = Main.maxPlayers; - if (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss || Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) + if (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss || Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) { if (target == Main.maxPlayers) target = Main.npc[(int)npc.ai[0]].target; @@ -1106,7 +1106,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (phase4 || death) rateOfChange = 3; - if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) + if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) npc.dontTakeDamage = true; } else @@ -1128,7 +1128,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses double deg = npc.ai[3]; double rad = deg * (Math.PI / 180); double dist = 550; - if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) + if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) { float aiGateValue = Main.npc[(int)npc.ai[0]].Calamity().newAI[2] - 30f; int ancientDoomScale = (int)(aiGateValue / 120f); @@ -1180,8 +1180,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses int type = ProjectileID.AncientDoomProjectile; int damage = npc.GetProjectileDamage(type); - // Triple damage if the Adult Eidolon Wyrm is alive - if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) + // Triple damage if the Primordial Wyrm is alive + if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) damage *= 3; kill = true; diff --git a/Sounds/Custom/AdultEidolonCharge.ogg b/Sounds/Custom/PrimordialWyrmCharge.ogg similarity index 100% rename from Sounds/Custom/AdultEidolonCharge.ogg rename to Sounds/Custom/PrimordialWyrmCharge.ogg diff --git a/Sounds/NPCKilled/AdultEidolonDeath.ogg b/Sounds/NPCKilled/PrimordialWyrmDeath.ogg similarity index 100% rename from Sounds/NPCKilled/AdultEidolonDeath.ogg rename to Sounds/NPCKilled/PrimordialWyrmDeath.ogg diff --git a/Systems/DownedBossSystem.cs b/Systems/DownedBossSystem.cs index 9726581e88..ea88fe27a3 100644 --- a/Systems/DownedBossSystem.cs +++ b/Systems/DownedBossSystem.cs @@ -41,7 +41,7 @@ namespace CalamityMod internal static bool _downedArtemisAndApollo = false; // only used for loot drops internal static bool _downedExoMechs = false; internal static bool _downedCalamitas = false; - internal static bool _downedAdultEidolonWyrm = false; + internal static bool _downedPrimordialWyrm = false; // Minibosses internal static bool _downedGSS = false; @@ -369,15 +369,15 @@ namespace CalamityMod NPC.SetEventFlagCleared(ref _downedCalamitas, -1); } } - public static bool downedAdultEidolonWyrm + public static bool downedPrimordialWyrm { - get => _downedAdultEidolonWyrm; + get => _downedPrimordialWyrm; set { if (!value) - _downedAdultEidolonWyrm = false; + _downedPrimordialWyrm = false; else - NPC.SetEventFlagCleared(ref _downedAdultEidolonWyrm, -1); + NPC.SetEventFlagCleared(ref _downedPrimordialWyrm, -1); } } public static bool downedCLAM @@ -538,7 +538,7 @@ namespace CalamityMod downedArtemisAndApollo = false; downedExoMechs = false; downedCalamitas = false; - downedAdultEidolonWyrm = false; + downedPrimordialWyrm = false; downedSecondSentinels = false; @@ -632,7 +632,7 @@ namespace CalamityMod downed.Add("exoMechs"); if (downedCalamitas) downed.Add("supremeCalamitas"); - if (downedAdultEidolonWyrm) + if (downedPrimordialWyrm) downed.Add("adultEidolonWyrm"); // Minibosses and events @@ -698,7 +698,7 @@ namespace CalamityMod downedAres = downed.Contains("ares"); downedExoMechs = downed.Contains("exoMechs"); downedCalamitas = downed.Contains("supremeCalamitas"); - downedAdultEidolonWyrm = downed.Contains("adultEidolonWyrm"); + downedPrimordialWyrm = downed.Contains("adultEidolonWyrm"); downedCLAM = downed.Contains("clam"); downedEoCAcidRain = downed.Contains("eocRain"); diff --git a/Systems/WorldMiscUpdateSystem.cs b/Systems/WorldMiscUpdateSystem.cs index 29ee6730bc..35eddb5c74 100644 --- a/Systems/WorldMiscUpdateSystem.cs +++ b/Systems/WorldMiscUpdateSystem.cs @@ -2,7 +2,7 @@ using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.NPCs; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.ExoMechs; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.Projectiles.Boss; @@ -418,7 +418,7 @@ namespace CalamityMod.Systems } #endregion - #region Handle Adult Eidolon Wyrm Spawns + #region Handle Primordial Wyrm Spawns public static void TrySpawnAEoW(Player player, CalamityPlayer modPlayer) { if (Main.netMode == NetmodeID.MultiplayerClient || !(modPlayer.ZoneAbyss || Main.zenithWorld) || !player.chaosState || player.dead) @@ -426,7 +426,7 @@ namespace CalamityMod.Systems bool adultWyrmAlive = CalamityGlobalNPC.adultEidolonWyrmHead != -1 && Main.npc[CalamityGlobalNPC.adultEidolonWyrmHead].active; if (!adultWyrmAlive) - NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); } #endregion } diff --git a/Systems/WorldSyncingSystem.cs b/Systems/WorldSyncingSystem.cs index 86dbadf1ca..1cabbe8654 100644 --- a/Systems/WorldSyncingSystem.cs +++ b/Systems/WorldSyncingSystem.cs @@ -118,7 +118,7 @@ namespace CalamityMod.Systems BitsByte flags11 = new BitsByte(); flags11[0] = false; flags11[1] = HasGeneratedLuminitePlanetoids; - flags11[2] = downedAdultEidolonWyrm; + flags11[2] = downedPrimordialWyrm; flags11[3] = downedExoMechs; flags11[4] = downedAres; flags11[5] = downedThanatos; @@ -272,7 +272,7 @@ namespace CalamityMod.Systems BitsByte flags11 = reader.ReadByte(); _ = flags11[0]; HasGeneratedLuminitePlanetoids = flags11[1]; - downedAdultEidolonWyrm = flags11[2]; + downedPrimordialWyrm = flags11[2]; downedExoMechs = flags11[3]; downedAres = flags11[4]; downedThanatos = flags11[5]; diff --git a/UI/SpeedrunTimerUI.cs b/UI/SpeedrunTimerUI.cs index cd8e75828f..0113753e09 100644 --- a/UI/SpeedrunTimerUI.cs +++ b/UI/SpeedrunTimerUI.cs @@ -1,6 +1,6 @@ using System; using CalamityMod.CalPlayer; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.AstrumDeus; @@ -133,7 +133,7 @@ namespace CalamityMod.UI 39 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 40 => ModContent.Request("CalamityMod/NPCs/SupremeCalamitas/HoodlessHeadIcon").Value, 41 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, - 42 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, + 42 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 43 => TextureAssets.NpcHeadBoss[38].Value, // Queen Slime 44 => TextureAssets.NpcHeadBoss[37].Value, // Empress of Light 45 => TextureAssets.NpcHeadBoss[39].Value, // Deerclops diff --git a/Utilities/DropHelper.cs b/Utilities/DropHelper.cs index 02f98189ff..b9c73610b8 100644 --- a/Utilities/DropHelper.cs +++ b/Utilities/DropHelper.cs @@ -616,7 +616,7 @@ namespace CalamityMod public static IItemDropRuleCondition PostYharon(bool ui = true) => If(() => DownedBossSystem.downedYharon, ui, "Drops after defeating Yharon"); public static IItemDropRuleCondition PostExos(bool ui = true) => If(() => DownedBossSystem.downedExoMechs, ui, "Drops after defeating the Exo Mechs"); public static IItemDropRuleCondition PostSCal(bool ui = true) => If(() => DownedBossSystem.downedCalamitas, ui, "Drops after defeating Calamitas"); - public static IItemDropRuleCondition PostAEW(bool ui = true) => If(() => DownedBossSystem.downedAdultEidolonWyrm, ui, "Drops after defeating the Adult Eidolon Wyrm"); + public static IItemDropRuleCondition PostAEW(bool ui = true) => If(() => DownedBossSystem.downedPrimordialWyrm, ui, "Drops after defeating the Primordial Wyrm"); public static IItemDropRuleCondition PostClam(bool ui = true) => If(() => DownedBossSystem.downedCLAM, ui, "Drops after defeating the Giant Clam"); public static IItemDropRuleCondition PostClamHM(bool ui = true) => If(() => DownedBossSystem.downedCLAMHardMode, ui, "Drops after defeating the Giant Clam in Hardmode"); public static IItemDropRuleCondition PostGSS(bool ui = true) => If(() => DownedBossSystem.downedGSS, ui, "Drops after defeating the Great Sand Shark"); diff --git a/Utilities/NPCDebuffs.cs b/Utilities/NPCDebuffs.cs index db7e300e44..68015de33e 100644 --- a/Utilities/NPCDebuffs.cs +++ b/Utilities/NPCDebuffs.cs @@ -2,7 +2,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.NPCs.Abyss; using CalamityMod.NPCs.AcidRain; -using CalamityMod.NPCs.AdultEidolonWyrm; +using CalamityMod.NPCs.PrimordialWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.Astral; using CalamityMod.NPCs.AstrumAureus; @@ -207,10 +207,10 @@ namespace CalamityMod { ModContent.NPCType(), new Tuple(true, Array.Empty()) }, { ModContent.NPCType(), new Tuple(true, Array.Empty()) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.abyssEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(true, Array.Empty()) }, - { ModContent.NPCType(), new Tuple(true, Array.Empty()) }, - { ModContent.NPCType(), new Tuple(true, Array.Empty()) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.abyssEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(true, Array.Empty()) }, + { ModContent.NPCType(), new Tuple(true, Array.Empty()) }, + { ModContent.NPCType(), new Tuple(true, Array.Empty()) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) },