diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 4357a43cf8..cd880e03c2 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -983,39 +983,6 @@ namespace CalamityMod.CalPlayer public bool celestialDragons = false; public bool KalandraMirror = false; public bool StellarTorus = false; - - public List PendingProjectilesToRespawn = new List(); - - // Due to the way vanilla summons work, the buff must be applied manually for it to properly register, since - // the buff is typically created via the minion's item usage, not its idle existence. - public static Dictionary VanillaMinionBuffRelationship = new Dictionary() - { - [ProjectileID.BabyBird] = BuffID.BabyBird, - [ProjectileID.BabySlime] = BuffID.BabySlime, - [ProjectileID.BabyHornet] = BuffID.BabyHornet, - [ProjectileID.FlinxMinion] = BuffID.FlinxMinion, - [ProjectileID.Hornet] = BuffID.HornetMinion, - [ProjectileID.FlyingImp] = BuffID.ImpMinion, - [ProjectileID.VampireFrog] = BuffID.VampireFrog, - [ProjectileID.VenomSpider] = BuffID.SpiderMinion, - [ProjectileID.JumperSpider] = BuffID.SpiderMinion, - [ProjectileID.DangerousSpider] = BuffID.SpiderMinion, - [ProjectileID.BatOfLight] = BuffID.BatOfLight, - [ProjectileID.Smolstar] = BuffID.Smolstar, - [ProjectileID.Spazmamini] = BuffID.TwinEyesMinion, - [ProjectileID.Retanimini] = BuffID.TwinEyesMinion, - [ProjectileID.StormTigerTier1] = BuffID.StormTiger, - [ProjectileID.StormTigerTier2] = BuffID.StormTiger, - [ProjectileID.StormTigerTier3] = BuffID.StormTiger, - [ProjectileID.Raven] = BuffID.Ravens, - [ProjectileID.DeadlySphere] = BuffID.DeadlySphere, - [ProjectileID.Tempest] = BuffID.SharknadoMinion, - [ProjectileID.EmpressBlade] = BuffID.EmpressBlade, - [ProjectileID.UFOMinion] = BuffID.UFOMinion, - [ProjectileID.StardustCellMinion] = BuffID.StardustMinion, - [ProjectileID.StardustDragon1] = BuffID.StardustDragonMinion, - }; - #endregion #region Biome @@ -3730,68 +3697,6 @@ namespace CalamityMod.CalPlayer { PopupGUIManager.SuspendAll(); - // Determine which minions need to be respawned. - if (Main.myPlayer == Player.whoAmI) - { - int endoHydraHeadCount = 0; - int endoCooperType = ModContent.ProjectileType(); - int endoHydraHeadType = ModContent.ProjectileType(); - int endoHydraBodyType = ModContent.ProjectileType(); - int mechwormHeadType = ModContent.ProjectileType(); - - // Claim data to cache before respawning as necessary. - for (int i = 0; i < Main.maxProjectiles; i++) - { - Projectile projectile = Main.projectile[i]; - if (projectile.type != endoHydraHeadType || projectile.owner != Player.whoAmI || !projectile.active) - continue; - endoHydraHeadCount++; - } - - for (int i = 0; i < Main.maxProjectiles; i++) - { - Projectile projectile = Main.projectile[i]; - if ((projectile.minionSlots <= 0f && !CalamityLists.ZeroMinionSlotExceptionList.Contains(projectile.type)) || !projectile.minion || - projectile.owner != Player.whoAmI || !projectile.active || CalamityLists.MinionsToNotResurrectList.Contains(projectile.type)) - continue; - - DeadMinionProperties deadMinionProperties; - - // Handle unique edge-cases in terms of summoning logic. - if (projectile.type == endoHydraBodyType) - deadMinionProperties = new DeadEndoHydraProperties(endoHydraHeadCount, projectile.originalDamage, projectile.damage, projectile.knockBack); - else if (projectile.type == endoCooperType) - deadMinionProperties = new DeadEndoCooperProperties((int)projectile.ai[0], projectile.minionSlots, projectile.originalDamage, projectile.damage, projectile.knockBack); - else - { - float[] aiToCopy = projectile.ai; - - // If blacklisted from copying AI state values, zero out the AI values to feed to the copy. - if (CalamityLists.DontCopyOriginalMinionAIList.Contains(projectile.type)) - aiToCopy = new float[aiToCopy.Length]; - deadMinionProperties = new DeadMinionProperties(projectile.type, projectile.minionSlots, projectile.originalDamage, projectile.damage, projectile.knockBack, aiToCopy); - - // Ozzatron 19APR2023: If Summoner's Shine is loaded, use a Call from its API to persist a bunch of extra junk - Mod summonersShine = CalamityMod.Instance.summonersShine; - if (summonersShine is not null) - { - deadMinionProperties.SummonersShine_SourceItem = (int)summonersShine.Call(10, 22, projectile); - deadMinionProperties.SummonersShine_Crit = (int)summonersShine.Call(6, projectile, 0); - deadMinionProperties.SummonersShine_MinionAS = (float)summonersShine.Call(6, projectile, 1); - deadMinionProperties.SummonersShine_PrefixMinionPower = (float)summonersShine.Call(6, projectile, 10); - } - } - - // Refuse to add duplicate entries of a certain type if an entry already exists and - // the minion properties signify that it should be unique. - if (deadMinionProperties.DisallowMultipleEntries && PendingProjectilesToRespawn.ContainsType(deadMinionProperties.GetType())) - continue; - - // Otherwise, cache the minion's data for when the player respawns. - PendingProjectilesToRespawn.Add(deadMinionProperties); - } - } - if (andromedaState == AndromedaPlayerState.LargeRobot) { if (!Main.dedServ) @@ -4026,33 +3931,6 @@ namespace CalamityMod.CalPlayer if (healToFull) thirdSageH = true; - // Order the list such that less expensive minions are at the top. - // This way cheaper minions will be spawned first, and at the end, the most expensive - // ones can be ignored if the player ultimately has insufficient slots. - PendingProjectilesToRespawn = PendingProjectilesToRespawn.OrderBy(proj => proj.RequiredMinionSlots).ToList(); - - // Resurrect all pending minions as necessary. - if (Main.myPlayer == Player.whoAmI) - { - float remainingSlots = Player.maxMinions; - for (int i = 0; i < PendingProjectilesToRespawn.Count; i++) - { - // Stop checking if the player has exhausted all of their base minion slots. - if (remainingSlots - PendingProjectilesToRespawn[i].RequiredMinionSlots < 0f) - break; - - PendingProjectilesToRespawn[i].SummonCopy(Player.whoAmI); - - - // Apply vanilla buffs as usual to the player. - if (VanillaMinionBuffRelationship.ContainsKey(PendingProjectilesToRespawn[i].Type)) - Player.AddBuff(VanillaMinionBuffRelationship[PendingProjectilesToRespawn[i].Type], 3600); - - remainingSlots -= PendingProjectilesToRespawn[i].RequiredMinionSlots; - } - PendingProjectilesToRespawn.Clear(); - } - // The player rotation can be off if the player dies at the right time when using Final Dawn. Player.fullRotation = 0f; } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 2f4083539c..595c65828d 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3047,7 +3047,7 @@ namespace CalamityMod.CalPlayer { Player.npcTypeNoAggro[ModContent.NPCType()] = true; Player.npcTypeNoAggro[ModContent.NPCType()] = true; - Player.npcTypeNoAggro[ModContent.NPCType()] = true; + Player.npcTypeNoAggro[ModContent.NPCType()] = true; Player.npcTypeNoAggro[ModContent.NPCType()] = true; Player.npcTypeNoAggro[ModContent.NPCType()] = true; Player.npcTypeNoAggro[ModContent.NPCType()] = true; diff --git a/CalamityMod.cs b/CalamityMod.cs index 50d5cbcda9..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; @@ -160,7 +160,6 @@ namespace CalamityMod internal Mod soa = null; internal Mod subworldLibrary = null; internal Mod summonersAssociation = null; - internal Mod summonersShine = null; internal Mod thorium = null; internal Mod varia = null; internal Mod wikithis = null; @@ -198,8 +197,6 @@ namespace CalamityMod ModLoader.TryGetMod("SubworldLibrary", out subworldLibrary); summonersAssociation = null; ModLoader.TryGetMod("SummonersAssociation", out summonersAssociation); - summonersShine = null; - ModLoader.TryGetMod("SummonersShine", out summonersShine); thorium = null; ModLoader.TryGetMod("ThoriumMod", out thorium); varia = null; @@ -428,7 +425,6 @@ namespace CalamityMod soa = null; subworldLibrary = null; summonersAssociation = null; - summonersShine = null; thorium = null; varia = null; wikithis = null; @@ -751,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 @@ -871,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/DeadMinionProperties.cs b/DataStructures/DeadMinionProperties.cs deleted file mode 100644 index 68d851bffb..0000000000 --- a/DataStructures/DeadMinionProperties.cs +++ /dev/null @@ -1,131 +0,0 @@ -using CalamityMod.Items.Weapons.Summon; -using CalamityMod.Projectiles.Summon; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ModLoader; - -namespace CalamityMod.DataStructures -{ - public class DeadMinionProperties - { - public int Type; - public int Damage; - public int OriginalDamage; - public float RequiredMinionSlots; - public float OriginalKnockback; - public float[] AIValues; - - // summoners shine stuff - internal int SummonersShine_SourceItem; - internal int SummonersShine_Crit; - internal float SummonersShine_MinionAS; - internal float SummonersShine_PrefixMinionPower; - - public virtual bool DisallowMultipleEntries => false; - public DeadMinionProperties(int type, float requiredMinionSlots, int originalDamage, int damage, float originalKnockback, float[] aiValues) - { - Type = type; - RequiredMinionSlots = requiredMinionSlots; - Damage = damage; - AIValues = aiValues; - OriginalKnockback = originalKnockback; - OriginalDamage = originalDamage; - } - - public virtual void SummonCopy(int ownerIndex) - { - if (Main.myPlayer != ownerIndex) - return; - - Player owner = Main.player[ownerIndex]; - - // Ozzatron 19APR2023: If Summoner's Shine is loaded, use a Call from its API to respawn minions - IEntitySource source = new EntitySource_Misc("1"); - Mod summonersShine = CalamityMod.Instance.summonersShine; - if (summonersShine is not null) - source = (IEntitySource)summonersShine.Call(10, 21, SummonersShine_SourceItem, SummonersShine_MinionAS, SummonersShine_Crit, SummonersShine_PrefixMinionPower); - int copy = Projectile.NewProjectile(source, owner.Center, Vector2.Zero, Type, Damage, OriginalKnockback, ownerIndex, AIValues[0], AIValues[1]); - - if (Main.projectile.IndexInRange(copy)) - { - Main.projectile[copy].Calamity().RequiresManualResurrection = true; - Main.projectile[copy].originalDamage = OriginalDamage; - - // Set the amount of slots as needed for the minion. - // This is specifically done for logarithmic minions and should have no negative affect on anything else. - Main.projectile[copy].minionSlots = RequiredMinionSlots; - } - } - } - - public class DeadEndoHydraProperties : DeadMinionProperties - { - public int HeadCount; - public override bool DisallowMultipleEntries => true; - public DeadEndoHydraProperties(int headCount, int originalDamage, int damage, float originalKnockback) - : base(ModContent.ProjectileType(), 0f, originalDamage, damage, originalKnockback, null) - { - HeadCount = headCount; - - // The minion slot decalaration is explicitly layed out in this child constructor instead of in the parent - // parameter for extra clarity. - RequiredMinionSlots = HeadCount; - } - - public override void SummonCopy(int ownerIndex) - { - if (Main.myPlayer != ownerIndex || HeadCount <= 0) - return; - - Player owner = Main.player[ownerIndex]; - - // Ozzatron 19APR2023: If Summoner's Shine is loaded, use a Call from its API to respawn minions - IEntitySource source = new EntitySource_Misc("1"); - Mod summonersShine = CalamityMod.Instance.summonersShine; - if (summonersShine is not null) - source = (IEntitySource)summonersShine.Call(10, 21, SummonersShine_SourceItem, SummonersShine_MinionAS, SummonersShine_Crit, SummonersShine_PrefixMinionPower); - int body = Projectile.NewProjectile(source, owner.Center, Vector2.Zero, ModContent.ProjectileType(), Damage, OriginalKnockback, owner.whoAmI); - - // If there was not enough space for even the body to be created, don't both trying to create even more projectiles needlessly. - if (!Main.projectile.IndexInRange(body)) - return; - - Main.projectile[body].originalDamage = OriginalDamage; - while (HeadCount > 0) - { - int head = Projectile.NewProjectile(new EntitySource_Misc("1"), owner.Center, Main.rand.NextVector2Unit(), ModContent.ProjectileType(), Damage, OriginalKnockback, owner.whoAmI, body); - Main.projectile[head].originalDamage = OriginalDamage; - HeadCount--; - } - } - } - - public class DeadEndoCooperProperties : DeadMinionProperties - { - public int AttackMode; - public override bool DisallowMultipleEntries => true; - public DeadEndoCooperProperties(int attackMode, float requiredMinionSlots, int originalDamage, int damage, float originalKnockback) - : base(ModContent.ProjectileType(), requiredMinionSlots, originalDamage, damage, originalKnockback, null) - { - AttackMode = attackMode; - } - - public override void SummonCopy(int ownerIndex) - { - if (Main.myPlayer != ownerIndex) - return; - - Player owner = Main.player[ownerIndex]; - - // Ozzatron 19APR2023: If Summoner's Shine is loaded, use a Call from its API to respawn minions - IEntitySource source = new EntitySource_Misc("1"); - Mod summonersShine = CalamityMod.Instance.summonersShine; - if (summonersShine is not null) - source = (IEntitySource)summonersShine.Call(10, 21, SummonersShine_SourceItem, SummonersShine_MinionAS, SummonersShine_Crit, SummonersShine_PrefixMinionPower); - Endogenesis.SummonEndoCooper(source, AttackMode, Main.MouseWorld, Damage, OriginalDamage, OriginalKnockback, owner, out int bodyIndex, out int limbsIndex); - Main.projectile[bodyIndex].Calamity().RequiresManualResurrection = true; - Main.projectile[limbsIndex].Calamity().RequiresManualResurrection = true; - } - } -} 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/ILEditing/ILChangesLoading.cs b/ILEditing/ILChangesLoading.cs index 1ed0654dfc..e68b0200a7 100644 --- a/ILEditing/ILChangesLoading.cs +++ b/ILEditing/ILChangesLoading.cs @@ -143,9 +143,11 @@ namespace CalamityMod.ILEditing /// public override void OnModUnload() { + // (2023/07) Manually unloading IL hooks is no longer necessary as TML should automatically do it for you. + // https://discord.com/channels/103110554649894912/445276626352209920/1099856743820959855 (links to TML server) + VanillaSpawnTownNPCs = null; labDoorOpen = labDoorClosed = aLabDoorOpen = aLabDoorClosed = exoDoorClosed = exoDoorOpen = -1; - On_Item.CanShimmer -= ChangeRodOfHarmonyShimmerRequirement; } } } diff --git a/Items/Accessories/RoverDrive.cs b/Items/Accessories/RoverDrive.cs index c0910afb90..6693cce712 100644 --- a/Items/Accessories/RoverDrive.cs +++ b/Items/Accessories/RoverDrive.cs @@ -31,8 +31,6 @@ namespace CalamityMod.Items.Accessories // What in the actual fuck is this public override void Load() => Terraria.On_Main.DrawInfernoRings += DrawRoverDriveShields; - public override void Unload() => Terraria.On_Main.DrawInfernoRings -= DrawRoverDriveShields; - private void DrawRoverDriveShields(Terraria.On_Main.orig_DrawInfernoRings orig, Main self) { bool playerFound = false; diff --git a/Items/Armor/DesertProwler/DesertProwlerSet.cs b/Items/Armor/DesertProwler/DesertProwlerSet.cs index 812e6effd7..c65a5bc236 100644 --- a/Items/Armor/DesertProwler/DesertProwlerSet.cs +++ b/Items/Armor/DesertProwler/DesertProwlerSet.cs @@ -45,11 +45,6 @@ namespace CalamityMod.Items.Armor.DesertProwler Terraria.On_Player.KeyDoubleTap += ActivateSetBonus; } - public override void Unload() - { - Terraria.On_Player.KeyDoubleTap -= ActivateSetBonus; - } - private void ActivateSetBonus(Terraria.On_Player.orig_KeyDoubleTap orig, Player player, int keyDir) { if (keyDir == 0 && HasArmorSet(player) && !player.mount.Active) diff --git a/Items/Armor/LunicCorps/LunicCorpsHelmet.cs b/Items/Armor/LunicCorps/LunicCorpsHelmet.cs index a5584887f4..f110b562b1 100644 --- a/Items/Armor/LunicCorps/LunicCorpsHelmet.cs +++ b/Items/Armor/LunicCorps/LunicCorpsHelmet.cs @@ -35,8 +35,6 @@ namespace CalamityMod.Items.Armor.LunicCorps // Still not sure why the fuck this is necessary public override void Load() => Terraria.On_Main.DrawInfernoRings += DrawMasterChefShields; - public override void Unload() => Terraria.On_Main.DrawInfernoRings -= DrawMasterChefShields; - private void DrawMasterChefShields(Terraria.On_Main.orig_DrawInfernoRings orig, Main self) { bool playerFound = false; diff --git a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs index d342da0e54..c6375daadb 100644 --- a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs +++ b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs @@ -40,15 +40,8 @@ namespace CalamityMod.Items.Armor.MarniteArchitect Terraria.On_Player.QuickMount += ActivateLift; } - public override void Unload() - { - Terraria.On_Player.QuickMount -= ActivateLift; - } - - public override void SetStaticDefaults() { - if (Main.netMode == NetmodeID.Server) return; diff --git a/Items/Armor/Wulfrum/WulfrumSet.cs b/Items/Armor/Wulfrum/WulfrumSet.cs index 5e86fc3f4c..4329df01e5 100644 --- a/Items/Armor/Wulfrum/WulfrumSet.cs +++ b/Items/Armor/Wulfrum/WulfrumSet.cs @@ -63,10 +63,6 @@ namespace CalamityMod.Items.Armor.Wulfrum public override void Unload() { - Terraria.On_Player.KeyDoubleTap -= ActivateSetBonus; - Terraria.On_Main.DrawPendingMouseText -= SpoofMouseItem; - - DummyCannon.TurnToAir(); DummyCannon = null; } diff --git a/Items/BaseItems/HeldOnlyItem.cs b/Items/BaseItems/HeldOnlyItem.cs index a2ba431d2c..5acf595f35 100644 --- a/Items/BaseItems/HeldOnlyItem.cs +++ b/Items/BaseItems/HeldOnlyItem.cs @@ -22,12 +22,6 @@ namespace CalamityMod.Items.BaseItems Terraria.UI.On_ItemSlot.LeftClick_ItemArray_int_int += LockMouseToSpecialItem; Terraria.UI.On_ItemSlot.Draw_SpriteBatch_ItemArray_int_int_Vector2_Color += DrawSpecial; } - public override void Unload() - { - Terraria.On_Player.dropItemCheck -= DontDropCoolStuff; - Terraria.UI.On_ItemSlot.LeftClick_ItemArray_int_int -= LockMouseToSpecialItem; - Terraria.UI.On_ItemSlot.Draw_SpriteBatch_ItemArray_int_int_Vector2_Color -= DrawSpecial; - } private void DrawSpecial(Terraria.UI.On_ItemSlot.orig_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color orig, SpriteBatch sb, Item[] inv, int context, int slot, Vector2 position, Color color) { @@ -60,8 +54,6 @@ namespace CalamityMod.Items.BaseItems orig(self); } - public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) => false; - } } diff --git a/Items/Materials/WulfrumMetalScrap.cs b/Items/Materials/WulfrumMetalScrap.cs index 0b33612792..4d399a45ca 100644 --- a/Items/Materials/WulfrumMetalScrap.cs +++ b/Items/Materials/WulfrumMetalScrap.cs @@ -14,23 +14,6 @@ namespace CalamityMod.Items.Materials public class WulfrumMetalScrap : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Materials"; - public override void Load() - { - Terraria.On_Item.CanFillEmptyAmmoSlot += AvoidDefaultingToAmmoSlot; - } - - public override void Unload() - { - Terraria.On_Item.CanFillEmptyAmmoSlot -= AvoidDefaultingToAmmoSlot; - } - - private bool AvoidDefaultingToAmmoSlot(Terraria.On_Item.orig_CanFillEmptyAmmoSlot orig, Item self) - { - if (self.type == Type) - return false; - - return orig(self); - } public override void SetStaticDefaults() { @@ -45,6 +28,7 @@ namespace CalamityMod.Items.Materials Item.value = Item.sellPrice(copper: 80); Item.rare = ItemRarityID.Blue; Item.ammo = Item.type; + Item.notAmmo = true; } public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) diff --git a/Items/Placeables/Banners/CharredSlimeBanner.cs b/Items/Placeables/Banners/InfernalCongealmentBanner.cs similarity index 87% rename from Items/Placeables/Banners/CharredSlimeBanner.cs rename to Items/Placeables/Banners/InfernalCongealmentBanner.cs index 0c5dc502b1..2df49c4e66 100644 --- a/Items/Placeables/Banners/CharredSlimeBanner.cs +++ b/Items/Placeables/Banners/InfernalCongealmentBanner.cs @@ -5,7 +5,8 @@ using Terraria.ID; namespace CalamityMod.Items.Placeables.Banners { - public class CharredSlimeBanner : ModItem, ILocalizedModType + [LegacyName("CharredSlimeBanner")] + public class InfernalCongealmentBanner : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Placeables"; public override void SetDefaults() diff --git a/Items/Placeables/Banners/CharredSlimeBanner.png b/Items/Placeables/Banners/InfernalCongealmentBanner.png similarity index 100% rename from Items/Placeables/Banners/CharredSlimeBanner.png rename to Items/Placeables/Banners/InfernalCongealmentBanner.png diff --git a/Items/Weapons/DraedonsArsenal/FrequencyManipulator.cs b/Items/Weapons/DraedonsArsenal/FrequencyManipulator.cs index e3ed4171c3..0f9cd5c43d 100644 --- a/Items/Weapons/DraedonsArsenal/FrequencyManipulator.cs +++ b/Items/Weapons/DraedonsArsenal/FrequencyManipulator.cs @@ -2,7 +2,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -33,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.knockBack = 5f; Item.value = CalamityGlobalItem.Rarity5BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item1; Item.shootSpeed = 16f; diff --git a/Items/Weapons/DraedonsArsenal/GalvanizingGlaive.cs b/Items/Weapons/DraedonsArsenal/GalvanizingGlaive.cs index 5793eee996..01fdbd65e6 100644 --- a/Items/Weapons/DraedonsArsenal/GalvanizingGlaive.cs +++ b/Items/Weapons/DraedonsArsenal/GalvanizingGlaive.cs @@ -1,7 +1,6 @@ using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -37,7 +36,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Yellow; Item.value = CalamityGlobalItem.Rarity8BuyPrice; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs index fe82302089..50d42f7e54 100644 --- a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs +++ b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs @@ -1,7 +1,6 @@ using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -45,7 +44,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity8BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 24f; diff --git a/Items/Weapons/DraedonsArsenal/GaussDagger.cs b/Items/Weapons/DraedonsArsenal/GaussDagger.cs index 82357fe9db..8a5dc65fed 100644 --- a/Items/Weapons/DraedonsArsenal/GaussDagger.cs +++ b/Items/Weapons/DraedonsArsenal/GaussDagger.cs @@ -1,7 +1,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System.Collections.Generic; using Terraria; @@ -14,9 +13,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; public const int HitsRequiredForFlux = 2; - public override void SetStaticDefaults() - { - } public override void SetDefaults() { CalamityGlobalItem modItem = Item.Calamity(); @@ -33,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.knockBack = 7f; Item.value = CalamityGlobalItem.Rarity3BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/DraedonsArsenal/GaussPistol.cs b/Items/Weapons/DraedonsArsenal/GaussPistol.cs index 1901a70354..2567575875 100644 --- a/Items/Weapons/DraedonsArsenal/GaussPistol.cs +++ b/Items/Weapons/DraedonsArsenal/GaussPistol.cs @@ -1,7 +1,6 @@ using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using System; using System.Collections.Generic; using Terraria; @@ -32,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity5BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; diff --git a/Items/Weapons/DraedonsArsenal/GaussRifle.cs b/Items/Weapons/DraedonsArsenal/GaussRifle.cs index 102ab888d4..3d482648f5 100644 --- a/Items/Weapons/DraedonsArsenal/GaussRifle.cs +++ b/Items/Weapons/DraedonsArsenal/GaussRifle.cs @@ -1,7 +1,6 @@ using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using CalamityMod.Sounds; using Microsoft.Xna.Framework; using System; @@ -36,7 +35,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity8BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 27f; diff --git a/Items/Weapons/DraedonsArsenal/HeavyLaserRifle.cs b/Items/Weapons/DraedonsArsenal/HeavyLaserRifle.cs index 75bdc66740..e4be470a45 100644 --- a/Items/Weapons/DraedonsArsenal/HeavyLaserRifle.cs +++ b/Items/Weapons/DraedonsArsenal/HeavyLaserRifle.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5f; diff --git a/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs b/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs index d8a0408d6e..2be1839038 100644 --- a/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs +++ b/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs @@ -1,7 +1,6 @@ using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using System; using System.Collections.Generic; using Terraria; @@ -34,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.shoot = ModContent.ProjectileType(); Item.value = CalamityGlobalItem.Rarity5BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Pink; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/DraedonsArsenal/MatterModulator.cs b/Items/Weapons/DraedonsArsenal/MatterModulator.cs index 2fdb0bd615..ad7eaed923 100644 --- a/Items/Weapons/DraedonsArsenal/MatterModulator.cs +++ b/Items/Weapons/DraedonsArsenal/MatterModulator.cs @@ -1,7 +1,6 @@ using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using CalamityMod.Sounds; using Microsoft.Xna.Framework; using System; @@ -33,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity5BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/DraedonsArsenal/MountedScanner.cs b/Items/Weapons/DraedonsArsenal/MountedScanner.cs index 3ba3dd0600..8c274a89b3 100644 --- a/Items/Weapons/DraedonsArsenal/MountedScanner.cs +++ b/Items/Weapons/DraedonsArsenal/MountedScanner.cs @@ -1,7 +1,6 @@ using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -33,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity5BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 1f; diff --git a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs index 1009b7fdf9..d831ccb037 100644 --- a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs +++ b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs @@ -26,9 +26,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal // This is the amount of charge consumed every time a sword beam is fired. public const float SwordBeamChargeUse = 0.1f; - public override void SetStaticDefaults() - { - } public override void SetDefaults() { CalamityGlobalItem modItem = Item.Calamity(); @@ -46,7 +43,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noUseGraphic = true; Item.value = CalamityGlobalItem.Rarity14BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs b/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs index b55f00ee40..d2c97b9b56 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5f; diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index b48cade6a8..f25fbec3e2 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.autoReuse = true; Item.value = CalamityGlobalItem.Rarity14BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; diff --git a/Items/Weapons/DraedonsArsenal/PoleWarper.cs b/Items/Weapons/DraedonsArsenal/PoleWarper.cs index 546225d379..dede135af4 100644 --- a/Items/Weapons/DraedonsArsenal/PoleWarper.cs +++ b/Items/Weapons/DraedonsArsenal/PoleWarper.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.knockBack = 8f; Item.value = CalamityGlobalItem.Rarity14BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item15; Item.autoReuse = true; diff --git a/Items/Weapons/DraedonsArsenal/PulseDragon.cs b/Items/Weapons/DraedonsArsenal/PulseDragon.cs index 876fadc314..d64b3f0fc4 100644 --- a/Items/Weapons/DraedonsArsenal/PulseDragon.cs +++ b/Items/Weapons/DraedonsArsenal/PulseDragon.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noUseGraphic = true; Item.knockBack = 8f; Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.channel = true; diff --git a/Items/Weapons/DraedonsArsenal/PulsePistol.cs b/Items/Weapons/DraedonsArsenal/PulsePistol.cs index 5bd31f9452..a9df4834fb 100644 --- a/Items/Weapons/DraedonsArsenal/PulsePistol.cs +++ b/Items/Weapons/DraedonsArsenal/PulsePistol.cs @@ -2,7 +2,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -34,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity3BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5.2f; // This may seem low but the shot has 10 extra updates. diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index e1a6cdc709..86da42a699 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity14BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5f; diff --git a/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs b/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs index 5591aa2d08..feb40ddecb 100644 --- a/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs +++ b/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs @@ -1,7 +1,6 @@ using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -34,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity8BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 1f; diff --git a/Items/Weapons/DraedonsArsenal/SnakeEyes.cs b/Items/Weapons/DraedonsArsenal/SnakeEyes.cs index 9f9e3d766e..4085c57b49 100644 --- a/Items/Weapons/DraedonsArsenal/SnakeEyes.cs +++ b/Items/Weapons/DraedonsArsenal/SnakeEyes.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.knockBack = 3f; Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item15; Item.autoReuse = true; diff --git a/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs b/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs index 2b009f86a5..b3b4353d7a 100644 --- a/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs +++ b/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs @@ -2,7 +2,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -30,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.knockBack = 2.25f; Item.value = CalamityGlobalItem.Rarity3BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item15; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/SystemBane.cs b/Items/Weapons/DraedonsArsenal/SystemBane.cs index 28b8ea5c2e..66bcbcbc81 100644 --- a/Items/Weapons/DraedonsArsenal/SystemBane.cs +++ b/Items/Weapons/DraedonsArsenal/SystemBane.cs @@ -2,7 +2,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -34,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4f; Item.value = CalamityGlobalItem.Rarity8BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item1; Item.shootSpeed = 16f; diff --git a/Items/Weapons/DraedonsArsenal/Taser.cs b/Items/Weapons/DraedonsArsenal/Taser.cs index d27c00ee08..182ccb8217 100644 --- a/Items/Weapons/DraedonsArsenal/Taser.cs +++ b/Items/Weapons/DraedonsArsenal/Taser.cs @@ -2,7 +2,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using CalamityMod.Sounds; using System; using System.Collections.Generic; @@ -32,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity3BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index c2275b1562..332f2a1250 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity14BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5f; diff --git a/Items/Weapons/DraedonsArsenal/TheAnomalysNanogun.cs b/Items/Weapons/DraedonsArsenal/TheAnomalysNanogun.cs index a210a5c6a6..8dfde5309c 100644 --- a/Items/Weapons/DraedonsArsenal/TheAnomalysNanogun.cs +++ b/Items/Weapons/DraedonsArsenal/TheAnomalysNanogun.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = null; Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); modItem.donorItem = true; modItem.UsesCharge = true; diff --git a/Items/Weapons/DraedonsArsenal/TrackingDisk.cs b/Items/Weapons/DraedonsArsenal/TrackingDisk.cs index a489688253..6e24249359 100644 --- a/Items/Weapons/DraedonsArsenal/TrackingDisk.cs +++ b/Items/Weapons/DraedonsArsenal/TrackingDisk.cs @@ -3,7 +3,6 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Projectiles.DraedonsArsenal; -using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -17,9 +16,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public class TrackingDisk : RogueWeapon, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; - public override void SetStaticDefaults() - { - } public override void SetDefaults() { CalamityGlobalItem modItem = Item.Calamity(); @@ -36,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.knockBack = 3f; Item.value = CalamityGlobalItem.Rarity3BuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Orange; Item.noUseGraphic = true; diff --git a/Items/Weapons/DraedonsArsenal/WavePounder.cs b/Items/Weapons/DraedonsArsenal/WavePounder.cs index 16380fe6c1..d971b503de 100644 --- a/Items/Weapons/DraedonsArsenal/WavePounder.cs +++ b/Items/Weapons/DraedonsArsenal/WavePounder.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item1; Item.shootSpeed = 16f; diff --git a/Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs b/Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs index dab5e10ff1..b9fcf9a3cc 100644 --- a/Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs +++ b/Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs @@ -27,8 +27,8 @@ namespace CalamityMod.Items.Weapons.Magic Item.noUseGraphic = true; Item.channel = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; - Item.rare = ModContent.RarityType(); + Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 3f; diff --git a/Items/Weapons/Melee/StygianShield.cs b/Items/Weapons/Melee/StygianShield.cs index f072da0d56..47679d5003 100644 --- a/Items/Weapons/Melee/StygianShield.cs +++ b/Items/Weapons/Melee/StygianShield.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.channel = true; - Item.damage = 180; + Item.damage = 200; Item.DamageType = DamageClass.MeleeNoSpeed; Item.useAnimation = Item.useTime = 40; // This is only for the "Very slow" tooltip. The real use time should be faster Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/Verdant.cs b/Items/Weapons/Melee/Verdant.cs deleted file mode 100644 index 1a51ea4e85..0000000000 --- a/Items/Weapons/Melee/Verdant.cs +++ /dev/null @@ -1,52 +0,0 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Melee.Yoyos; -using CalamityMod.Rarities; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Melee -{ - public class Verdant : ModItem, ILocalizedModType - { - public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.Yoyo[Item.type] = true; - ItemID.Sets.GamepadExtraRange[Item.type] = 15; - ItemID.Sets.GamepadSmartQuickReach[Item.type] = true; - } - - public override void SetDefaults() - { - Item.width = 30; - Item.height = 30; - Item.DamageType = DamageClass.MeleeNoSpeed; - Item.damage = 86; - Item.knockBack = 6f; - Item.useTime = 22; - Item.useAnimation = 22; - Item.autoReuse = true; - - Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = SoundID.Item1; - Item.channel = true; - Item.noUseGraphic = true; - Item.noMelee = true; - - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 16f; - - Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; - Item.rare = ModContent.RarityType(); - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(6). - AddTile(TileID.LunarCraftingStation). - Register(); - } - } -} diff --git a/Items/Weapons/Melee/Verdant.png b/Items/Weapons/Melee/Verdant.png deleted file mode 100644 index 10d2ed0422..0000000000 Binary files a/Items/Weapons/Melee/Verdant.png and /dev/null differ diff --git a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson index 008f9cf157..9edcd40f46 100644 --- a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson +++ b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson @@ -52,9 +52,9 @@ StellarCulex: Many pincers line the face of this mutation. It will attempt to at Twinkler: A rare case of the astral infection creating a harmless creature. They flicker rather prettily, and you're not going to be the only one who thinks so. They make useful bait. //Brimstone Crags Enemies CalamityEye: Though these enemies are only a little more threatening than a demon eye, some say that they originally burst from the sockets of those who used to inhabit the capital, when their souls were cursed by the red flames. -CharredSlime: Lava slimes are the only ones that manage to survive in the heat of hell, having replaced their moisture with liquid rock. That said, their mannerisms are the same, and they seek out and devour anything they can. DespairStone: A condensed, volatile stone of brimstone slag. It is said that the souls of many, fighting to get out from within, are what cause it to tear across the ground. HeatSpirit: A human spirit, its mind lost to the blazing orange fires of its dwelling. It seeks out and attempts to eliminate any source of moisture it can detect entering the hellscape. +InfernalCongealment: Lava slimes are the only ones that manage to survive in the heat of hell, having replaced their moisture with liquid rock. That said, their mannerisms are the same, and they seek out and devour anything they can. RenegadeWarlock: A devotee, their mind lost to the raging, hating fires of the brimstone flames. None have ever seen under their hood, and none ever should. Scryllar: Twisted detritus of those who once came to harvest the remains of the crags. The whispers got to them. SoulSlurper: The remnants of a soul which has feasted, been feasted upon, and torn into the souls of others. No one knows how the cycle begins, but you don't want to find out yourself. @@ -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.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 33428af6d4..4175814861 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -218,11 +218,6 @@ ChaoticPufferBanner: { Tooltip: "{$CommonItemTooltip.BannerBonus}Chaotic Puffer" } -CharredSlimeBanner: { - DisplayName: Charred Slime Banner - Tooltip: "{$CommonItemTooltip.BannerBonus}Charred Slime" -} - ClamBanner: { DisplayName: Clam Banner Tooltip: "{$CommonItemTooltip.BannerBonus}Clam" @@ -388,6 +383,11 @@ ImpiousImmolatorBanner: { Tooltip: "{$CommonItemTooltip.BannerBonus}Impious Immolator" } +InfernalCongealmentBanner: { + DisplayName: Infernal Congealment Banner + Tooltip: "{$CommonItemTooltip.BannerBonus}Infernal Congealment" +} + IrradiatedSlimeBanner: { DisplayName: Irradiated Slime Banner Tooltip: "{$CommonItemTooltip.BannerBonus}Irradiated Slime" @@ -1328,12 +1328,12 @@ CalamitasCloneTrophy: { } CataclysmTrophy: { - DisplayName: Cataclysm Trophy + DisplayName: Cataclysmic Construct Trophy Tooltip: "" } CatastropheTrophy: { - DisplayName: Catastrophe Trophy + DisplayName: Catastrophic Construct Trophy Tooltip: "" } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index ba6131b0d2..a91c859012 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -1354,15 +1354,6 @@ VeinBurster: { Tooltip: Fires a blood ball that sticks to tiles and explodes } -Verdant: { - DisplayName: Verdant - Tooltip: - ''' - Fires crystal leaves when enemies are near - A very agile yoyo - ''' -} - Violence: { DisplayName: Violence Tooltip: Releases a blazing fork which stays near the mouse and shreds enemies diff --git a/Localization/en-US/Mods.CalamityMod.NPCs.hjson b/Localization/en-US/Mods.CalamityMod.NPCs.hjson index ddad0b9af2..76a8c1d835 100644 --- a/Localization/en-US/Mods.CalamityMod.NPCs.hjson +++ b/Localization/en-US/Mods.CalamityMod.NPCs.hjson @@ -71,8 +71,6 @@ Radiator.DisplayName: Radiator Skyfin.DisplayName: Skyfin SulphurousSkater.DisplayName: Sulphurous Skater Trilobite.DisplayName: Trilobite -AdultEidolonWyrmHead.DisplayName: Adult Eidolon Wyrm -Jared: Jared AquaticScourgeHead: { DisplayName: Aquatic Scourge @@ -157,8 +155,8 @@ CalamitasClone: { } } -Cataclysm.DisplayName: Cataclysm -Catastrophe.DisplayName: Catastrophe +Cataclysm.DisplayName: Cataclysmic Construct +Catastrophe.DisplayName: Catastrophic Construct SoulSeeker.DisplayName: Soul Seeker CeaselessVoid: { @@ -184,10 +182,10 @@ Crabulon: { } CalamityEye.DisplayName: Calamity Eye -CharredSlime.DisplayName: Charred Slime RenegadeWarlock.DisplayName: Renegade Warlock DespairStone.DisplayName: Despair Stone HeatSpirit.DisplayName: Heat Spirit +InfernalCongealment.DisplayName: Infernal Congealment Scryllar.DisplayName: Scryllar ScryllarRage.DisplayName: Scryllar SoulSlurper.DisplayName: Soul Slurper @@ -434,6 +432,8 @@ Necroplasm: Necroplasm Polterplasm: Polterplasm PolterghastHook.DisplayName: Polterghast Hook PolterPhantom.DisplayName: Polterghast +PrimordialWyrmHead.DisplayName: Primordial Wyrm +Jared: Jared ProfanedGuardianCommander: { DisplayName: Guardian Commander diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson index 799683ec95..da397ea5d6 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson @@ -35,6 +35,7 @@ BrimstoneTargetRay.DisplayName: Brimstone Target Ray BrimstoneWave.DisplayName: Brimstone Flame Skull BrokenApolloLens.DisplayName: Lens BrokenArtemisLens.DisplayName: Lens +CirrusVolatileVodkaBottle.DisplayName: Volatile Vodka Bottle DarkEnergyBall.DisplayName: Dark Energy DarkEnergyBall2.DisplayName: Dark Energy DarkOrb.DisplayName: Dark Orb diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson index 32c2ecdcea..627780169a 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson @@ -349,8 +349,7 @@ RiptideYoyo.DisplayName: Riptide ShimmersparkYoyo.DisplayName: Shimmerspark SmokingCometYoyo.DisplayName: Smoking Comet SolarFlareYoyo.DisplayName: Solar Flare -SulphurousGrabberYoyo.DisplayName: Sulphurous Grabber Yoyo -VerdantYoyo.DisplayName: Verdant +SulphurousGrabberYoyo.DisplayName: Sulphurous Grabber YinYoyo.DisplayName: Yin-Yo FallenPaladinsHammerEcho.DisplayName: Fallen Paladin's Hammer Echo FallenBlast.DisplayName: Fallen Paladin's Wrath diff --git a/MainMenu/Logo.png b/MainMenu/Logo.png index dac71f4c39..8cf6fe8c08 100644 Binary files a/MainMenu/Logo.png and b/MainMenu/Logo.png differ 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/AquaticScourge/AquaticScourgeBody.cs b/NPCs/AquaticScourge/AquaticScourgeBody.cs index 0ca6d85187..e316b31f81 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBody.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBody.cs @@ -92,6 +92,9 @@ namespace CalamityMod.NPCs.AquaticScourge public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { + if (NPC.IsABestiaryIconDummy) + return true; + SpriteEffects spriteEffects = SpriteEffects.None; if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; diff --git a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs index d7d271a5e4..878f092770 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs @@ -91,6 +91,9 @@ namespace CalamityMod.NPCs.AquaticScourge public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { + if (NPC.IsABestiaryIconDummy) + return true; + SpriteEffects spriteEffects = SpriteEffects.None; if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; diff --git a/NPCs/AquaticScourge/AquaticScourgeTail.cs b/NPCs/AquaticScourge/AquaticScourgeTail.cs index bf8942d039..8f3c854675 100644 --- a/NPCs/AquaticScourge/AquaticScourgeTail.cs +++ b/NPCs/AquaticScourge/AquaticScourgeTail.cs @@ -91,6 +91,9 @@ namespace CalamityMod.NPCs.AquaticScourge public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { + if (NPC.IsABestiaryIconDummy) + return true; + SpriteEffects spriteEffects = SpriteEffects.None; if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index 88aefe12f6..915a591eaa 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -86,6 +86,9 @@ namespace CalamityMod.NPCs.AstrumDeus public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { + if (NPC.IsABestiaryIconDummy) + return true; + SpriteEffects spriteEffects = SpriteEffects.None; if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index 4c520b3185..3e168cb188 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -86,6 +86,9 @@ namespace CalamityMod.NPCs.AstrumDeus public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { + if (NPC.IsABestiaryIconDummy) + return true; + SpriteEffects spriteEffects = SpriteEffects.None; if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 3cd08048e9..6926c5aa41 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); } @@ -3023,7 +3023,7 @@ namespace CalamityMod.NPCs switch (npc.aiStyle) { case NPCAIStyleID.Slime: - if (npc.type == NPCType() || npc.type == NPCType() || + if (npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType()) @@ -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/Crags/CharredSlime.cs b/NPCs/Crags/InfernalCongealment.cs similarity index 95% rename from NPCs/Crags/CharredSlime.cs rename to NPCs/Crags/InfernalCongealment.cs index b729ab7dea..b9ab84cd8d 100644 --- a/NPCs/Crags/CharredSlime.cs +++ b/NPCs/Crags/InfernalCongealment.cs @@ -11,7 +11,7 @@ using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.NPCs.Crags { - public class CharredSlime : ModNPC + public class InfernalCongealment : ModNPC { public override void SetStaticDefaults() { @@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.Crags NPC.lifeMax = 3500; } Banner = NPC.type; - BannerItem = ModContent.ItemType(); + BannerItem = ModContent.ItemType(); NPC.Calamity().VulnerableToHeat = false; NPC.Calamity().VulnerableToCold = true; NPC.Calamity().VulnerableToWater = true; @@ -54,7 +54,7 @@ namespace CalamityMod.NPCs.Crags { bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { - new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.CharredSlime") + new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.InfernalCongealment") }); } diff --git a/NPCs/Crags/CharredSlime.png b/NPCs/Crags/InfernalCongealment.png similarity index 100% rename from NPCs/Crags/CharredSlime.png rename to NPCs/Crags/InfernalCongealment.png 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 900820b156..af7f3afa0b 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/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index a32b3b5bb1..97e8db59e7 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -241,6 +241,9 @@ namespace CalamityMod.NPCs.StormWeaver public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { + if (NPC.IsABestiaryIconDummy) + return true; + SpriteEffects spriteEffects = SpriteEffects.None; if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index 16c1b46c3a..53de28283d 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -232,6 +232,9 @@ namespace CalamityMod.NPCs.StormWeaver public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { + if (NPC.IsABestiaryIconDummy) + return true; + SpriteEffects spriteEffects = SpriteEffects.None; if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 8a660ea931..2c5d5cb43e 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -158,6 +158,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas public static int hoodlessHeadIconIndex; public static int hoodlessHeadIconP2Index; public static int cirrusHeadIconIndex; + public static int cirrusHeadIconP2Index; public static float normalDR = 0.25f; public static float enragedDR = 0.9999f; @@ -185,6 +186,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas string hoodlessIconPath = "CalamityMod/NPCs/SupremeCalamitas/HoodlessHeadIcon"; string hoodlessIconP2Path = "CalamityMod/NPCs/SupremeCalamitas/HoodlessHeadIconP2"; string cirrusIconPath = "CalamityMod/NPCs/SupremeCalamitas/CirrusHeadIcon"; + string cirrusIconP2Path = "CalamityMod/NPCs/SupremeCalamitas/CirrusHeadIcon2"; CalamityMod.Instance.AddBossHeadTexture(hoodedIconPath, -1); hoodedHeadIconIndex = ModContent.GetModBossHeadSlot(hoodedIconPath); @@ -200,6 +202,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas CalamityMod.Instance.AddBossHeadTexture(cirrusIconPath, -1); cirrusHeadIconIndex = ModContent.GetModBossHeadSlot(cirrusIconPath); + + CalamityMod.Instance.AddBossHeadTexture(cirrusIconP2Path, -1); + cirrusHeadIconP2Index = ModContent.GetModBossHeadSlot(cirrusIconP2Path); } public override void SetStaticDefaults() @@ -254,7 +259,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas bool inPhase2 = NPC.ai[0] == 3f; if (cirrus) { - index = cirrusHeadIconIndex; + index = inPhase2 ? cirrusHeadIconP2Index : cirrusHeadIconIndex; } else { @@ -740,7 +745,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (bulletHellCounter2 < 900) { despawnProj = true; - bulletHellCounter2 += 1; + bulletHellCounter2++; NPC.damage = 0; NPC.chaseable = false; NPC.dontTakeDamage = true; @@ -750,7 +755,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (Main.netMode != NetmodeID.MultiplayerClient) { - bulletHellCounter += 1; + bulletHellCounter++; if (bulletHellCounter >= baseBulletHellProjectileGateValue) { bulletHellCounter = 0; @@ -772,7 +777,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas else // Blasts from above, left, and right { if (!Main.zenithWorld) - Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); } @@ -812,7 +818,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (bulletHellCounter2 < 1800 && startSecondAttack) { despawnProj = true; - bulletHellCounter2 += 1; + bulletHellCounter2++; NPC.damage = 0; NPC.chaseable = false; NPC.dontTakeDamage = true; @@ -822,6 +828,17 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (Main.netMode != NetmodeID.MultiplayerClient) { + // Cirrus throws alcohol bottles that explode into Fabstaff Rays + if (cirrus) + { + if (bulletHellCounter2 % 90 == 0) + { + float bottleSpeed = 12f; + Vector2 bottleVelocity = Vector2.Normalize(player.Center + player.velocity * 20f - NPC.Center) * bottleSpeed; + Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, bottleVelocity * uDieLul, ModContent.ProjectileType(), 350, 0f, Main.myPlayer); + } + } + if (bulletHellCounter2 < 1200) { if (bulletHellCounter2 % 180 == 0) // Blasts from top @@ -838,7 +855,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer); } - bulletHellCounter += 1; + bulletHellCounter++; if (bulletHellCounter >= baseBulletHellProjectileGateValue + 1) { bulletHellCounter = 0; @@ -903,7 +920,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (bulletHellCounter2 < 2700 && startThirdAttack) { despawnProj = true; - bulletHellCounter2 += 1; + bulletHellCounter2++; NPC.damage = 0; NPC.chaseable = false; NPC.dontTakeDamage = true; @@ -919,7 +936,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (bulletHellCounter2 % 240 == 0) // Fireblasts from above Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, gigablast, fireblastDamage, 0f, Main.myPlayer); - bulletHellCounter += 1; + bulletHellCounter++; if (bulletHellCounter >= baseBulletHellProjectileGateValue + 4) { bulletHellCounter = 0; @@ -984,7 +1001,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (bulletHellCounter2 < 3600 && startFourthAttack) { despawnProj = true; - bulletHellCounter2 += 1; + bulletHellCounter2++; NPC.damage = 0; NPC.chaseable = false; NPC.dontTakeDamage = true; @@ -1009,7 +1026,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas passedVar += 1f; } - bulletHellCounter += 1; + bulletHellCounter++; if (bulletHellCounter >= baseBulletHellProjectileGateValue + 6) { bulletHellCounter = 0; @@ -1074,7 +1091,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (bulletHellCounter2 < 4500 && startFifthAttack) { despawnProj = true; - bulletHellCounter2 += 1; + bulletHellCounter2++; NPC.damage = 0; NPC.chaseable = false; NPC.dontTakeDamage = true; @@ -1084,6 +1101,17 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (Main.netMode != NetmodeID.MultiplayerClient) { + // Cirrus throws alcohol bottles that explode into Fabstaff Rays + if (cirrus) + { + if (bulletHellCounter2 % 90 == 0) + { + float bottleSpeed = 12f; + Vector2 bottleVelocity = Vector2.Normalize(player.Center + player.velocity * 20f - NPC.Center) * bottleSpeed; + Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, bottleVelocity * uDieLul, ModContent.ProjectileType(), 350, 0f, Main.myPlayer); + } + } + if (bulletHellCounter2 % 240 == 0) // Blasts from top Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer); @@ -1097,7 +1125,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y - random, 5f * uDieLul, 0f, wave, waveDamage, 0f, Main.myPlayer); } - bulletHellCounter += 1; + bulletHellCounter++; if (bulletHellCounter >= baseBulletHellProjectileGateValue + 8) { bulletHellCounter = 0; @@ -1131,6 +1159,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas FrameType = FrameAnimationType.Casting; return; } + if (!startFifthAttack && lifeRatio <= 0.1f) { // Bouncy Boulders 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/NPCs/VanillaNPCOverrides/RegularEnemies/SlimeAI.cs b/NPCs/VanillaNPCOverrides/RegularEnemies/SlimeAI.cs index a94ecc8028..eb02b4c0f8 100644 --- a/NPCs/VanillaNPCOverrides/RegularEnemies/SlimeAI.cs +++ b/NPCs/VanillaNPCOverrides/RegularEnemies/SlimeAI.cs @@ -88,7 +88,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.RegularEnemies public static bool BuffedSlimeAI(NPC npc, Mod mod) { - bool isLavaSlime = npc.type == NPCID.LavaSlime || npc.type == ModContent.NPCType(); + bool isLavaSlime = npc.type == NPCID.LavaSlime || npc.type == ModContent.NPCType(); bool canShootProjectile = npc.type == NPCID.SpikedIceSlime || npc.type == NPCID.SlimeSpiked || npc.type == NPCID.SpikedJungleSlime; int projectileShootType = -1; float projectileShootSpeedFactor = 1f; diff --git a/Projectiles/Boss/BrimstoneMonster.cs b/Projectiles/Boss/BrimstoneMonster.cs index 8e7022f57d..cb40b09abf 100644 --- a/Projectiles/Boss/BrimstoneMonster.cs +++ b/Projectiles/Boss/BrimstoneMonster.cs @@ -191,6 +191,23 @@ namespace CalamityMod.Projectiles.Boss return; target.AddBuff(ModContent.BuffType(), 300, true); + + // Remove all positive buffs from the player if they're hit by HAGE while Cirrus is alive + if (Main.npc[CalamityGlobalNPC.SCal].ModNPC().cirrus) + { + if (Main.myPlayer == target.whoAmI) + { + for (int l = 0; l < Player.MaxBuffs; l++) + { + int buffType = target.buffType[l]; + if (!CalamityLists.debuffList.Contains(buffType)) + { + target.DelBuff(l); + l--; + } + } + } + } } public override void DrawBehind(int index, List behindNPCsAndTiles, List behindNPCs, List behindProjectiles, List overPlayers, List overWiresUI) diff --git a/Projectiles/Boss/CirrusVolatileVodkaBottle.cs b/Projectiles/Boss/CirrusVolatileVodkaBottle.cs new file mode 100644 index 0000000000..7474c0e3ea --- /dev/null +++ b/Projectiles/Boss/CirrusVolatileVodkaBottle.cs @@ -0,0 +1,103 @@ +using CalamityMod.Projectiles.Magic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Dusts; +using CalamityMod.Events; +using System; + +namespace CalamityMod.Projectiles.Boss +{ + public class CirrusVolatileVodkaBottle : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Boss"; + + public override string Texture => "CalamityMod/Items/Potions/Alcohol/FabsolsVodka"; + + public override void SetDefaults() + { + Projectile.width = 30; + Projectile.height = 30; + Projectile.hostile = true; + Projectile.ignoreWater = true; + Projectile.penetrate = 1; + Projectile.timeLeft = 120; + Projectile.aiStyle = ProjAIStyleID.ThrownProjectile; + AIType = ProjectileID.ThrowingKnife; + } + + public override void AI() + { + if (Projectile.ai[0] == 0f) + { + SoundEngine.PlaySound(SoundID.Item106, Projectile.Center); + Projectile.ai[0] = 1f; + } + } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D tex = ModContent.Request(Texture).Value; + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + return false; + } + + public override void Kill(int timeLeft) + { + SoundEngine.PlaySound(SoundID.Shatter, Projectile.Center); + + for (int i = 0; i < 10; i++) + { + int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 0, default, 1.2f); + Main.dust[dust].velocity *= 3f; + if (Main.rand.NextBool(2)) + { + Main.dust[dust].scale = 0.5f; + Main.dust[dust].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + + for (int i = 0; i < 20; i++) + { + int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.BlueCosmilite, 0f, 0f, 0, default, 1.7f); + Main.dust[dust].noGravity = true; + Main.dust[dust].velocity *= 5f; + dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 0, default, 1f); + Main.dust[dust].velocity *= 2f; + } + + if (Projectile.owner == Main.myPlayer) + { + int totalProjectiles = 3; + float radians = MathHelper.TwoPi / totalProjectiles; + int type = ModContent.ProjectileType(); + float velocity = 8f; + double angleA = radians * 0.5; + double angleB = MathHelper.ToRadians(90f) - angleA; + float velocityX2 = (float)(velocity * Math.Sin(angleA) / Math.Sin(angleB)); + Vector2 spinningPoint = Main.rand.NextBool() ? new Vector2(0f, -velocity) : new Vector2(-velocityX2, -velocity); + for (int k = 0; k < totalProjectiles; k++) + { + Vector2 velocity2 = spinningPoint.RotatedBy(radians * k); + int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center + Vector2.Normalize(velocity2) * 10f, velocity2, type, (int)Math.Round(Projectile.damage * 0.8), 0f, Main.myPlayer); + if (proj.WithinBounds(Main.maxProjectiles)) + { + Main.projectile[proj].DamageType = DamageClass.Default; + Main.projectile[proj].friendly = false; + Main.projectile[proj].hostile = true; + } + } + } + } + + public override void OnHitPlayer(Player target, Player.HurtInfo info) + { + Projectile.Kill(); + target.AddBuff(ModContent.BuffType(), 54000); + } + } +} diff --git a/Projectiles/Magic/FabRay.cs b/Projectiles/Magic/FabRay.cs index 87bc0c6ce2..c9823efc97 100644 --- a/Projectiles/Magic/FabRay.cs +++ b/Projectiles/Magic/FabRay.cs @@ -1,10 +1,12 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.Alcohol; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.Projectiles.Magic { public class FabRay : ModProjectile, ILocalizedModType @@ -80,7 +82,8 @@ namespace CalamityMod.Projectiles.Magic } // Emit light. - Lighting.AddLight(Projectile.Center, Vector3.One * Projectile.Opacity * 0.7f); + if (!Projectile.hostile) + Lighting.AddLight(Projectile.Center, Vector3.One * Projectile.Opacity * 0.7f); } internal Color ColorFunction(float completionRatio) @@ -127,5 +130,11 @@ namespace CalamityMod.Projectiles.Magic } return false; } + + public override void OnHitPlayer(Player target, Player.HurtInfo info) + { + if (Projectile.hostile) + target.AddBuff(ModContent.BuffType(), 54000); + } } } diff --git a/Projectiles/Melee/StygianShieldAttack.cs b/Projectiles/Melee/StygianShieldAttack.cs index d10375454c..6360ef0610 100644 --- a/Projectiles/Melee/StygianShieldAttack.cs +++ b/Projectiles/Melee/StygianShieldAttack.cs @@ -46,7 +46,8 @@ namespace CalamityMod.Projectiles.Melee Projectile.width = Projectile.height = 2; Projectile.friendly = true; Projectile.ignoreWater = true; - Projectile.DamageType = DamageClass.MeleeNoSpeed; + Projectile.tileCollide = false; + Projectile.DamageType = TrueMeleeNoSpeedDamageClass.Instance; Projectile.penetrate = -1; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; @@ -147,6 +148,7 @@ namespace CalamityMod.Projectiles.Melee DashDestination = intendedDestination; Projectile.damage = (int)(Projectile.damage * MaxChargeDamageMult * Charge / MaxChargeTime); Projectile.ExpandHitboxBy(100); + Projectile.tileCollide = true; return; } } @@ -293,10 +295,10 @@ namespace CalamityMod.Projectiles.Melee Vector2 pointEnd = Projectile.Center + dashLength * 0.1f; Vector2 lineStart = pointStart + dashLength * 0.1f; Vector2 lineEnd = pointStart + dashLength; - Color lineColor = telegraphColor * 0.2f; + Color lineColor = telegraphColor * 0.3f; float lineScale = 2f; Main.spriteBatch.DrawLineBetter(lineStart, pointEnd, lineColor, lineScale); - Main.spriteBatch.DrawLineBetter(lineStart, lineEnd, lineColor, lineScale); + Main.spriteBatch.DrawLineBetter(lineStart, lineEnd, lineColor, lineScale * 2f); Main.spriteBatch.DrawLineBetter(lineEnd, intendedDestination, lineColor, lineScale); } } diff --git a/Projectiles/Melee/Yoyos/VerdantYoyo.cs b/Projectiles/Melee/Yoyos/VerdantYoyo.cs deleted file mode 100644 index 3f9743e49a..0000000000 --- a/Projectiles/Melee/Yoyos/VerdantYoyo.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Melee.Yoyos -{ - public class VerdantYoyo : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Melee"; - public override void SetStaticDefaults() - { - ProjectileID.Sets.YoyosLifeTimeMultiplier[Projectile.type] = -1f; - ProjectileID.Sets.YoyosMaximumRange[Projectile.type] = 560f; - ProjectileID.Sets.YoyosTopSpeed[Projectile.type] = 17f; - - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 8; - ProjectileID.Sets.TrailingMode[Projectile.type] = 1; - } - - public override void SetDefaults() - { - Projectile.aiStyle = ProjAIStyleID.Yoyo; - Projectile.width = 16; - Projectile.height = 16; - Projectile.scale = 1.1f; - Projectile.friendly = true; - Projectile.DamageType = DamageClass.MeleeNoSpeed; - Projectile.penetrate = -1; - Projectile.MaxUpdates = 2; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 9; - } - - public override void AI() - { - Projectile.velocity *= 1.01f; - - if (Main.rand.NextBool(5)) - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 75, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); - - CalamityUtils.MagnetSphereHitscan(Projectile, 300f, 12f, 54f, 5, ProjectileID.CrystalLeafShot, 0.8); - - if ((Projectile.position - Main.player[Projectile.owner].position).Length() > 3200f) //200 blocks - Projectile.Kill(); - } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); - return false; - } - } -} diff --git a/Projectiles/Melee/Yoyos/VerdantYoyo.png b/Projectiles/Melee/Yoyos/VerdantYoyo.png deleted file mode 100644 index 4944e5cb86..0000000000 Binary files a/Projectiles/Melee/Yoyos/VerdantYoyo.png and /dev/null differ diff --git a/Projectiles/Ranged/BloodfireBulletProj.cs b/Projectiles/Ranged/BloodfireBulletProj.cs index 4ee5bb459c..140493c97a 100644 --- a/Projectiles/Ranged/BloodfireBulletProj.cs +++ b/Projectiles/Ranged/BloodfireBulletProj.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Ranged return false; } - public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.SourceDamage += OnHitEffect(Main.player[Projectile.owner]); + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.SourceDamage.Flat += OnHitEffect(Main.player[Projectile.owner]); // Returns the amount of bonus damage that should be dealt. Boosts life regeneration appropriately as a side effect. private int OnHitEffect(Player owner) 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/MiscUtils.cs b/Utilities/MiscUtils.cs index 6d50e3dd80..569908cb38 100644 --- a/Utilities/MiscUtils.cs +++ b/Utilities/MiscUtils.cs @@ -629,7 +629,7 @@ namespace CalamityMod npc = ModContent.NPCType(); break; case 93: - npc = ModContent.NPCType(); + npc = ModContent.NPCType(); break; case 94: npc = ModContent.NPCType(); diff --git a/Utilities/NPCDebuffs.cs b/Utilities/NPCDebuffs.cs index db7e300e44..65f546e246 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) }, @@ -281,7 +281,7 @@ namespace CalamityMod { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, diff --git a/Utilities/ProjectileUtils.cs b/Utilities/ProjectileUtils.cs index f2be63c9a5..f2126c15f8 100644 --- a/Utilities/ProjectileUtils.cs +++ b/Utilities/ProjectileUtils.cs @@ -314,14 +314,9 @@ namespace CalamityMod { int projectile2 = Projectile.NewProjectile(projectile.GetSource_FromThis(), spawnPos, velocity, spawnedProjectile, (int)(projectile.damage * damageMult), projectile.knockBack, projectile.owner, 0f, 0f); - if (projectile.type == ProjectileType() || - projectile.type == ProjectileType() || projectile.type == ProjectileType()) + if (projectile.type == ProjectileType() || projectile.type == ProjectileType()) if (projectile2.WithinBounds(Main.maxProjectiles)) Main.projectile[projectile2].DamageType = DamageClass.MeleeNoSpeed; - - if (projectile.type == ProjectileType()) - if (projectile2.WithinBounds(Main.maxProjectiles)) - Main.projectile[projectile2].DamageType = RogueDamageClass.Instance; } } }