diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index ef09ccbbde..4a7b99e0b1 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -91,7 +91,7 @@ namespace CalamityMod.Balancing #region Crabulon // 50% resist to true melee. - NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new TrueMeleeResistBalancingRule(0.5f))); + NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new TrueMeleeResistBalancingRule(0.5f))); #endregion diff --git a/CalamityLists.cs b/CalamityLists.cs index fb51999243..f4184b3aff 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -745,14 +745,14 @@ namespace CalamityMod NPCType(), NPCType(), NPCType(), - NPCType(), + NPCType(), NPCType(), NPCType(), NPCType(), NPCType(), NPCType(), - NPCType(), - NPCType(), + NPCType(), + NPCType(), NPCType(), NPCType(), NPCType(), @@ -773,7 +773,7 @@ namespace CalamityMod NPCType(), NPCType(), NPCType(), - NPCType(), + NPCType(), NPCType(), NPCType(), NPCType(), @@ -1205,7 +1205,7 @@ namespace CalamityMod NPCType(), NPCType(), NPCType(), - NPCType() + NPCType() }; revengeanceProjectileBuffList25Percent = new List() @@ -1288,8 +1288,8 @@ namespace CalamityMod NPCType(), NPCType(), NPCType(), - NPCType(), - NPCType(), + NPCType(), + NPCType(), NPCType(), NPCType(), NPCType(), @@ -1938,7 +1938,7 @@ namespace CalamityMod { NPCType(), NPCType(), - NPCType(), + NPCType(), NPCType(), NPCType(), NPCType(), @@ -2006,9 +2006,9 @@ namespace CalamityMod NPCType(), NPCType(), NPCType(), - NPCType(), - NPCType(), - NPCType(), + NPCType(), + NPCType(), + NPCType(), NPCType(), NPCType(), NPCType(), @@ -2088,9 +2088,9 @@ namespace CalamityMod AstrumDeusIDs = new List { - NPCType(), - NPCType(), - NPCType() + NPCType(), + NPCType(), + NPCType() }; DevourerOfGodsIDs = new List @@ -2548,7 +2548,7 @@ namespace CalamityMod { NPCID.KingSlime, 1 }, { NPCType(), 2 }, { NPCID.EyeofCthulhu, 3 }, - { NPCType(), 4 }, + { NPCType(), 4 }, { NPCID.EaterofWorldsHead, 5 }, { NPCID.EaterofWorldsBody, 5 }, { NPCID.EaterofWorldsTail, 5 }, @@ -2568,7 +2568,7 @@ namespace CalamityMod { NPCID.TheDestroyer, 16 }, { NPCType(), 17 }, { NPCID.SkeletronPrime, 18 }, - { NPCType(), 19 }, + { NPCType(), 19 }, { NPCID.Plantera, 20 }, { NPCType(), 21 }, { NPCType(), 21 }, @@ -2578,7 +2578,7 @@ namespace CalamityMod { NPCID.DukeFishron, 25 }, { NPCType(), 26 }, { NPCID.CultistBoss, 27 }, - { NPCType(), 28 }, + { NPCType(), 28 }, { NPCID.MoonLordCore, 29 }, { NPCType(), 30 }, { NPCType(), 31 }, @@ -2595,7 +2595,7 @@ namespace CalamityMod { NPCType(), 41 }, { NPCType(), 41 }, { NPCType(), 41 }, - { NPCType(), 42 }, + { NPCType(), 42 }, { NPCID.QueenSlimeBoss, 43 }, { NPCID.HallowBoss, 44 }, { NPCID.Deerclops, 45 } @@ -2655,8 +2655,8 @@ namespace CalamityMod NPCType(), NPCType(), NPCType(), - NPCType(), - NPCType(), + NPCType(), + NPCType(), NPCType(), NPCID.PlanterasTentacle, NPCType(), diff --git a/CalamityMod.cs b/CalamityMod.cs index df58017605..3cd7431fd5 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -570,7 +570,7 @@ namespace CalamityMod { ModContent.NPCType(), 3600 }, // 1:00 (60 seconds) { ModContent.NPCType(), 3600 }, { ModContent.NPCType(), 3600 }, - { ModContent.NPCType(), 5400 }, // 1:30 (90 seconds) + { ModContent.NPCType(), 5400 }, // 1:30 (90 seconds) { ModContent.NPCType(), 7200 }, // 2:00 (120 seconds) { ModContent.NPCType(), 7200 }, // 2:00 (120 seconds) { ModContent.NPCType(), 10800 }, // 3:00 (180 seconds) -- total length of Slime God fight @@ -584,13 +584,13 @@ namespace CalamityMod { ModContent.NPCType(), 7200 }, { ModContent.NPCType(), 7200 }, { ModContent.NPCType(), 10800 }, // 3:00 (180 seconds) - { ModContent.NPCType(), 14400 }, // 4:00 (240 seconds) + { ModContent.NPCType(), 14400 }, // 4:00 (240 seconds) { ModContent.NPCType(), 10800 }, // 3:00 (180 seconds) { ModContent.NPCType(), 10800 }, { ModContent.NPCType(), 10800 }, // 3:00 (180 seconds) - { ModContent.NPCType(), 7200 }, // 2:00 (120 seconds) -- first phase is 1:00 - { ModContent.NPCType(), 7200 }, - { ModContent.NPCType(), 7200 }, + { ModContent.NPCType(), 7200 }, // 2:00 (120 seconds) -- first phase is 1:00 + { ModContent.NPCType(), 7200 }, + { ModContent.NPCType(), 7200 }, { ModContent.NPCType(), 10800 }, // 3:00 (180 seconds) { ModContent.NPCType(), 10800 }, // 3:00 (180 seconds) { ModContent.NPCType(), 5400 }, // 1:30 (90 seconds) @@ -620,7 +620,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 @@ -669,7 +669,7 @@ namespace CalamityMod { ModContent.NPCType(), bitingEnemeyVelocityScale }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, - { ModContent.NPCType(), bitingEnemeyVelocityScale }, + { ModContent.NPCType(), bitingEnemeyVelocityScale }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), bitingEnemeyVelocityScale }, @@ -693,15 +693,15 @@ namespace CalamityMod { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, - { ModContent.NPCType(), bitingEnemeyVelocityScale }, - { ModContent.NPCType(), bitingEnemeyVelocityScale }, - { ModContent.NPCType(), velocityScaleMin }, + { ModContent.NPCType(), bitingEnemeyVelocityScale }, + { ModContent.NPCType(), bitingEnemeyVelocityScale }, + { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), bitingEnemeyVelocityScale }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, - { ModContent.NPCType(), bitingEnemeyVelocityScale }, - { ModContent.NPCType(), velocityScaleMin }, - { ModContent.NPCType(), velocityScaleMin }, + { ModContent.NPCType(), bitingEnemeyVelocityScale }, + { ModContent.NPCType(), velocityScaleMin }, + { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, @@ -738,7 +738,7 @@ namespace CalamityMod { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, { ModContent.NPCType(), velocityScaleMin }, - { ModContent.NPCType(), bitingEnemeyVelocityScale } + { ModContent.NPCType(), bitingEnemeyVelocityScale } }; } #endregion diff --git a/DataStructures/NPCStats.cs b/DataStructures/NPCStats.cs index ad41b79d70..e2bd39c0a5 100644 --- a/DataStructures/NPCStats.cs +++ b/DataStructures/NPCStats.cs @@ -173,7 +173,7 @@ namespace CalamityMod { ModContent.NPCType(), 1.1 }, - { ModContent.NPCType(), 0.8 }, + { ModContent.NPCType(), 0.8 }, { NPCID.EaterofWorldsHead, 1.1 }, { NPCID.EaterofWorldsBody, 0.8 }, @@ -221,7 +221,7 @@ namespace CalamityMod { NPCID.PrimeSaw, 0.85 }, { NPCID.PrimeVice, 0.85 }, - { ModContent.NPCType(), 0.8 }, + { ModContent.NPCType(), 0.8 }, { NPCID.Plantera, 1.15 }, { NPCID.PlanterasTentacle, 1.15 }, @@ -256,8 +256,8 @@ namespace CalamityMod { NPCID.AncientDoom, 0.75 }, { NPCID.AncientLight, 0.75 }, - { ModContent.NPCType(), 0.8 }, - { ModContent.NPCType(), 0.8 }, + { ModContent.NPCType(), 0.8 }, + { ModContent.NPCType(), 0.8 }, { ModContent.NPCType(), 0.8 }, @@ -290,7 +290,7 @@ namespace CalamityMod { ModContent.NPCType(), 0.8 }, { ModContent.NPCType(), 0.8 }, - { ModContent.NPCType(), 0.8 } + { ModContent.NPCType(), 0.8 } }; EnemyStats.ContactDamageValues = new SortedDictionary @@ -312,7 +312,7 @@ namespace CalamityMod 51 } }, // Vanilla: 54 in phase 2, 60 in phase 3; Rev: 61 in phase 2, 71 in phase 3; Death: 71 at all times { NPCID.ServantofCthulhu, new int[] { 12, 24, 30, 34, 42 } }, - { ModContent.NPCType(), new int[] { 40, 64, 80, 88, 120 } }, + { ModContent.NPCType(), new int[] { 40, 64, 80, 88, 120 } }, { ModContent.NPCType(), new int[] { 25, 50, 62, 70, 75 } }, { NPCID.EaterofWorldsHead, new int[] { 25, 55, 77, 88, 132 } }, @@ -376,7 +376,7 @@ namespace CalamityMod { NPCID.QueenSlimeBoss, new int[] { 60, 120, 150, 170, 240 } }, { ModContent.NPCType(), new int[] { 60, 138, 161, 184, 276 } }, - { ModContent.NPCType(), new int[] { 60, 120, 138, 158, 216 } }, + { ModContent.NPCType(), new int[] { 60, 120, 138, 158, 216 } }, { NPCID.Spazmatism, new int[] { 60, // 90 in phase 2 @@ -413,9 +413,9 @@ namespace CalamityMod { NPCID.PrimeCannon, new int[] { 30, 51, 68, 85, 102 } }, { NPCID.PrimeLaser, new int[] { 30, 51, 68, 85, 102 } }, - { ModContent.NPCType(), new int[] { 90, 144, 168, 176, 240 } }, - { ModContent.NPCType(), new int[] { 60, 120, 138, 148, 198 } }, - { ModContent.NPCType(), new int[] { 65, 130, 150, 162, 216 } }, + { ModContent.NPCType(), new int[] { 90, 144, 168, 176, 240 } }, + { ModContent.NPCType(), new int[] { 60, 120, 138, 148, 198 } }, + { ModContent.NPCType(), new int[] { 65, 130, 150, 162, 216 } }, { NPCID.Plantera, new int[] { 50, // 70 in phase 2, vanilla is retarded and doesn't use the expert multiplier for plantera's damage @@ -480,9 +480,9 @@ namespace CalamityMod { NPCID.AncientDoom, new int[] { 30, 45, 0, 0, 90 } }, // Vanilla: 90 in Master Mode; Rev and Death: 0 in Master Mode { NPCID.AncientLight, new int[] { 120, 180, 210, 225, 270 } }, - { ModContent.NPCType(), new int[] { 120, 240, 268, 280, 360 } }, - { ModContent.NPCType(), new int[] { 100, 160, 192, 200, 240 } }, - { ModContent.NPCType(), new int[] { 80, 128, 160, 168, 192 } }, + { ModContent.NPCType(), new int[] { 120, 240, 268, 280, 360 } }, + { ModContent.NPCType(), new int[] { 100, 160, 192, 200, 240 } }, + { ModContent.NPCType(), new int[] { 80, 128, 160, 168, 192 } }, { ModContent.NPCType(), new int[] { 140, 224, 256, 280, 336 } }, { ModContent.NPCType(), new int[] { 120, 240, 264, 278, 336 } }, @@ -541,7 +541,7 @@ namespace CalamityMod { ModContent.NPCType(), new int[] { 330, 528, 560, 576, 690 } }, { ModContent.NPCType(), new int[] { 260, 416, 446, 464, 570 } }, - { ModContent.NPCType(), new int[] { 400, 800, 850, 880, 1000 } } + { ModContent.NPCType(), new int[] { 400, 800, 850, 880, 1000 } } }; EnemyStats.ProjectileDamageValues = new SortedDictionary, int[]> @@ -551,8 +551,8 @@ namespace CalamityMod { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 26, 44, 60, 68, 90 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 26, 44, 60, 68, 90 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 68, 90 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 68, 90 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 68, 90 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 68, 90 } }, { new Tuple(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 32, 48, 60, 68, 90 } }, @@ -595,7 +595,7 @@ namespace CalamityMod { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 52, 92, 112, 124, 168 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 120, 136, 152, 210 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 60, 100, 120, 132, 180 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 52, 92, 112, 124, 168 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 52, 92, 112, 124, 168 } }, { new Tuple(NPCID.Retinazer, ProjectileID.EyeLaser), new int[] { 40, 76, 92, 100, 138 } }, // 114 damage in non-rev master mode { new Tuple(NPCID.Retinazer, ProjectileID.DeathLaser), new int[] { @@ -635,13 +635,13 @@ namespace CalamityMod { new Tuple(NPCID.PrimeCannon, ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 0, 0, 240 } }, { new Tuple(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 100, 124, 136, 186 } }, // 150 in non-rev master mode - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 192 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 192 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 192 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 234 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 192 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 192 } }, { new Tuple(NPCID.Plantera, ProjectileID.SeedPlantera), new int[] { 44, 76, 128, 140, 186 } }, // 114 in non-rev master mode @@ -699,9 +699,9 @@ namespace CalamityMod { new Tuple(NPCID.CultistBossClone, ProjectileID.CultistBossFireBallClone), new int[] { 36, 72, 172, 188, 258 } }, // 72 in non-rev master mode { new Tuple(NPCID.AncientDoom, ProjectileID.AncientDoomProjectile), new int[] { 60, 180, 184, 200, 270 } }, // 402 in non-rev master mode - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 90, 152, 176, 188, 264 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 224, 312 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 100, 172, 192, 204, 288 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 90, 152, 176, 188, 264 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 224, 312 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 100, 172, 192, 204, 288 } }, { new Tuple(NPCID.MoonLordHead, ProjectileID.PhantasmalDeathray), new int[] { 150, 300, 380, 420, 570 } }, // 450 in non-rev master mode { new Tuple(NPCID.MoonLordHead, ProjectileID.PhantasmalBolt), new int[] { 60, 120, 160, 176, 240 } }, // 180 in non-rev master mode @@ -809,10 +809,10 @@ namespace CalamityMod { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 288, 432, 454, 478, 696 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 450, 676, 710, 728, 1062 } }, - { 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 aaf9ec7d68..d10a908359 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -184,7 +184,7 @@ namespace CalamityMod.Events }, permittedNPCs: new int[] { NPCID.CultistBossClone, NPCID.CultistDragonHead, NPCID.CultistDragonBody1, NPCID.CultistDragonBody2, NPCID.CultistDragonBody3, NPCID.CultistDragonBody4, NPCID.CultistDragonTail, NPCID.AncientCultistSquidhead, NPCID.AncientLight, NPCID.AncientDoom }), - new Boss(ModContent.NPCType(), spawnContext: type => + new Boss(ModContent.NPCType(), spawnContext: type => { Player player = Main.player[ClosestPlayerToWorldCenter]; @@ -211,7 +211,7 @@ namespace CalamityMod.Events ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() ,ModContent.NPCType() }), - new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), + new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), @@ -242,19 +242,19 @@ namespace CalamityMod.Events NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); }, permittedNPCs: new int[] { NPCID.MoonLordLeechBlob, NPCID.MoonLordHand, NPCID.MoonLordHead, NPCID.MoonLordFreeEye }), - new Boss(ModContent.NPCType(), TimeChangeContext.Night, type => + new Boss(ModContent.NPCType(), TimeChangeContext.Night, type => { Player player = Main.player[ClosestPlayerToWorldCenter]; - SoundEngine.PlaySound(AstrumDeusHeadSpectral.SpawnSound, player.Center); + SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, player.Center); NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); - }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), TimeChangeContext.Night, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), + new Boss(ModContent.NPCType(), TimeChangeContext.Night, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), @@ -555,7 +555,7 @@ namespace CalamityMod.Events } // Killing any split Deus head ends the fight instantly. You don't need to kill both. - else if (npc.type == ModContent.NPCType() && npc.Calamity().newAI[0] != 0f) + else if (npc.type == ModContent.NPCType() && npc.Calamity().newAI[0] != 0f) { BossRushStage++; CalamityUtils.KillAllHostileProjectiles(); diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 91380988f1..59b723de68 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -419,7 +419,7 @@ namespace CalamityMod.ILEditing #region Platform Collision Checks for Grounded Bosses private static bool EnableCalamityBossPlatformCollision(On.Terraria.NPC.orig_Collision_DecideFallThroughPlatforms orig, NPC self) { - if ((self.type == ModContent.NPCType() || self.type == ModContent.NPCType() || self.type == ModContent.NPCType() || + if ((self.type == ModContent.NPCType() || self.type == ModContent.NPCType() || self.type == ModContent.NPCType() || self.type == ModContent.NPCType() || self.type == ModContent.NPCType()) && self.target >= 0 && Main.player[self.target].position.Y > self.position.Y + self.height) return true; diff --git a/Items/SummonItems/DecapoditaSprout.cs b/Items/SummonItems/DecapoditaSprout.cs index 1a21c27259..b6c1a82a3e 100644 --- a/Items/SummonItems/DecapoditaSprout.cs +++ b/Items/SummonItems/DecapoditaSprout.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return player.ZoneGlowshroom && !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; + return player.ZoneGlowshroom && !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; } public override bool? UseItem(Player player) @@ -39,12 +39,12 @@ namespace CalamityMod.Items.SummonItems SoundEngine.PlaySound(SoundID.Roar, player.position); if (Main.netMode != NetmodeID.MultiplayerClient) { - int npc = NPC.NewNPC(new EntitySource_BossSpawn(player), (int)(player.position.X + Main.rand.Next(-250, 251)), (int)(player.position.Y - 500f), ModContent.NPCType(), 1); + int npc = NPC.NewNPC(new EntitySource_BossSpawn(player), (int)(player.position.X + Main.rand.Next(-250, 251)), (int)(player.position.Y - 500f), ModContent.NPCType(), 1); Main.npc[npc].timeLeft *= 20; CalamityUtils.BossAwakenMessage(npc); } else - NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType()); + NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType()); return true; } diff --git a/Items/SummonItems/EyeofDesolation.cs b/Items/SummonItems/EyeofDesolation.cs index ccb89e036a..417f053435 100644 --- a/Items/SummonItems/EyeofDesolation.cs +++ b/Items/SummonItems/EyeofDesolation.cs @@ -33,16 +33,16 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return !Main.dayTime && !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; + return !Main.dayTime && !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; } public override bool? UseItem(Player player) { SoundEngine.PlaySound(SoundID.Roar, player.position); if (Main.netMode != NetmodeID.MultiplayerClient) - NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); else - NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType()); + NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType()); return true; } diff --git a/Items/TreasureBags/AstrumDeusBag.cs b/Items/TreasureBags/AstrumDeusBag.cs index 9fb7c9f590..65d53b2f4c 100644 --- a/Items/TreasureBags/AstrumDeusBag.cs +++ b/Items/TreasureBags/AstrumDeusBag.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.TreasureBags { public class AstrumDeusBag : ModItem { - public override int BossBagNPC => ModContent.NPCType(); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { diff --git a/Items/TreasureBags/CalamitasBag.cs b/Items/TreasureBags/CalamitasBag.cs index 2c4360274c..f7de3bafbf 100644 --- a/Items/TreasureBags/CalamitasBag.cs +++ b/Items/TreasureBags/CalamitasBag.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.TreasureBags { public class CalamitasBag : ModItem { - public override int BossBagNPC => ModContent.NPCType(); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { diff --git a/Items/TreasureBags/CrabulonBag.cs b/Items/TreasureBags/CrabulonBag.cs index 406f78ada1..b4fb14ced5 100644 --- a/Items/TreasureBags/CrabulonBag.cs +++ b/Items/TreasureBags/CrabulonBag.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.TreasureBags { public class CrabulonBag : ModItem { - public override int BossBagNPC => ModContent.NPCType(); + public override int BossBagNPC => ModContent.NPCType(); public override void SetStaticDefaults() { diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 1f5e3bb60d..c6ac4e0a05 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -291,7 +291,7 @@ namespace CalamityMod // Crabulon { BossDifficulty.TryGetValue("Crabulon", out float order); - int type = NPCType(); + int type = NPCType(); int summon = ItemType(); List loot = new List() { ItemType(), ItemID.GlowingMushroom, ItemID.MushroomGrassSeeds, ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.LesserHealingPotion }; List collection = new List() { ItemType(), ItemType(), ItemType() }; @@ -377,7 +377,7 @@ namespace CalamityMod // Calamitas { BossDifficulty.TryGetValue("Calamitas", out float order); - int type = NPCType(); + int type = NPCType(); int summon = ItemType(); List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemID.BrokenHeroSword, ItemID.GreaterHealingPotion }; List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; @@ -452,7 +452,7 @@ namespace CalamityMod // Astrum Deus { BossDifficulty.TryGetValue("AstrumDeus", out float order); - List segments = new List() { NPCType(), NPCType(), NPCType() }; + List segments = new List() { NPCType(), NPCType(), NPCType() }; int summon1 = ItemType(); int summon2 = ItemType(); int altar = ItemType(); @@ -625,7 +625,7 @@ namespace CalamityMod // Adult Eidolon Wyrm { BossDifficulty.TryGetValue("AdultEidolonWyrm", out float order); - int type = NPCType(); + int type = NPCType(); int summon = ItemID.RodofDiscord; List loot = new List() { ItemType(), ItemType(), ItemID.Ectoplasm, ItemType(), ItemType(), ItemType(), ItemType() }; List collection = new List() { }; diff --git a/NPCs/Abyss/EidolonWyrmHead.cs b/NPCs/Abyss/EidolonWyrmHead.cs index 78d02434cc..1835670dd3 100644 --- a/NPCs/Abyss/EidolonWyrmHead.cs +++ b/NPCs/Abyss/EidolonWyrmHead.cs @@ -486,7 +486,7 @@ namespace CalamityMod.NPCs.Abyss public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (spawnInfo.Player.Calamity().ZoneAbyssLayer3 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType()) && - !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) + !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.3f; } @@ -500,7 +500,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(EidolonWyrmHeadHuge.CanMinionsDropThings); + var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings); // 30-40 Voidstone aewMinionCondition.Add(ModContent.ItemType(), 1, 30, 40); diff --git a/NPCs/Abyss/Reaper.cs b/NPCs/Abyss/ReaperShark.cs similarity index 99% rename from NPCs/Abyss/Reaper.cs rename to NPCs/Abyss/ReaperShark.cs index 6acae3ceb7..cb2ec32683 100644 --- a/NPCs/Abyss/Reaper.cs +++ b/NPCs/Abyss/ReaperShark.cs @@ -16,7 +16,7 @@ using Terraria.Audio; namespace CalamityMod.NPCs.Abyss { - public class Reaper : ModNPC + public class ReaperShark : ModNPC { public static readonly SoundStyle SearchRoarSound = new("CalamityMod/Sounds/Custom/ReaperSearchRoar"); public static readonly SoundStyle EnragedRoarSound = new("CalamityMod/Sounds/Custom/ReaperEnragedRoar"); @@ -647,12 +647,12 @@ namespace CalamityMod.NPCs.Abyss public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.Player.Calamity().ZoneAbyssLayer3 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType()) && + if (spawnInfo.Player.Calamity().ZoneAbyssLayer3 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 0.6f; } - if (spawnInfo.Player.Calamity().ZoneAbyssLayer4 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType())) + if (spawnInfo.Player.Calamity().ZoneAbyssLayer4 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType())) { return SpawnCondition.CaveJellyfish.Chance * 1.2f; } diff --git a/NPCs/Abyss/Reaper.png b/NPCs/Abyss/ReaperShark.png similarity index 100% rename from NPCs/Abyss/Reaper.png rename to NPCs/Abyss/ReaperShark.png diff --git a/NPCs/AdultEidolonWyrm/AEWScreenShaderData.cs b/NPCs/AdultEidolonWyrm/AEWScreenShaderData.cs index e7b510fa5d..2beb8bea05 100644 --- a/NPCs/AdultEidolonWyrm/AEWScreenShaderData.cs +++ b/NPCs/AdultEidolonWyrm/AEWScreenShaderData.cs @@ -17,7 +17,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm private void UpdateAEWIndex() { - int AEWType = ModContent.NPCType(); + int AEWType = ModContent.NPCType(); if (AEWIndex >= 0 && Main.npc[AEWIndex].active && Main.npc[AEWIndex].type == AEWType) { return; diff --git a/NPCs/AdultEidolonWyrm/AEWSky.cs b/NPCs/AdultEidolonWyrm/AEWSky.cs index 177e0d607c..79c171874f 100644 --- a/NPCs/AdultEidolonWyrm/AEWSky.cs +++ b/NPCs/AdultEidolonWyrm/AEWSky.cs @@ -49,7 +49,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm private bool UpdateAEWIndex() { - int AEWType = ModContent.NPCType(); + int AEWType = ModContent.NPCType(); if (AEWIndex >= 0 && Main.npc[AEWIndex].active && Main.npc[AEWIndex].type == AEWType) { return true; diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs similarity index 93% rename from NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.cs rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs index 9c92717668..f083f03729 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs @@ -10,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.AdultEidolonWyrm { - public class EidolonWyrmBodyHuge : ModNPC + public class AdultEidolonWyrmBody : ModNPC { public override void SetStaticDefaults() { @@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm bool shouldDespawn = true; for (int i = 0; i < Main.maxNPCs; i++) { - if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) + if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) { shouldDespawn = false; break; @@ -97,8 +97,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f; float lightningChargePhaseGateValue = malice ? 90f : 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)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge); - bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge; + 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 invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f; if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase) { @@ -116,8 +116,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm NPC.Opacity = 0f; } - bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) || - (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 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); if (spawnAncientLights && Main.netMode != NetmodeID.MultiplayerClient) { if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f) diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmBodyHuge.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.png diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs similarity index 90% rename from NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.cs rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs index e9b65c4995..b4bbb65c17 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs @@ -10,7 +10,7 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.AdultEidolonWyrm { - public class EidolonWyrmBodyAltHuge : ModNPC + public class AdultEidolonWyrmBodyAlt : ModNPC { public override void SetStaticDefaults() { @@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm bool shouldDespawn = true; for (int i = 0; i < Main.maxNPCs; i++) { - if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) + if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) { shouldDespawn = false; break; @@ -97,8 +97,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f; float lightningChargePhaseGateValue = malice ? 90f : 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)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge); - bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge; + 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 invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f; if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase) { @@ -116,8 +116,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm NPC.Opacity = 0f; } - bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) || - (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 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); if (shootShadowFireballs && Main.netMode != NetmodeID.MultiplayerClient) { if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f) @@ -185,9 +185,9 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm Vector2 center = new Vector2(NPC.Center.X, NPC.Center.Y); Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2); Vector2 vector = center - screenPos; - vector -= new Vector2(ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value.Width, ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value.Height) * 0.5f; + vector -= new Vector2(ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value.Width, ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value.Height) * 0.5f; vector += vector11 * 1f + new Vector2(0f, 4f + NPC.gfxOffY); - Main.spriteBatch.Draw(ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value, vector, + Main.spriteBatch.Draw(ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value, vector, new Microsoft.Xna.Framework.Rectangle?(NPC.frame), Color.White, NPC.rotation, vector11, 1f, spriteEffects, 0f); } diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltHuge.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.png diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow.png diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmBodyGlowHuge.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyGlow.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmBodyGlowHuge.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyGlow.png diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs similarity index 99% rename from NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs index 9148237502..0b895b4ba6 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs @@ -23,7 +23,7 @@ using CalamityMod.Sounds; namespace CalamityMod.NPCs.AdultEidolonWyrm { [AutoloadBossHead] - public class EidolonWyrmHeadHuge : ModNPC + public class AdultEidolonWyrmHead : ModNPC { public enum Phase { @@ -225,12 +225,12 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (i >= 0 && i < minLength) { if (i % 2 == 0) - lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); + lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); else - lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); + lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); } else - lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); + lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType(), NPC.whoAmI); Main.npc[lol].realLife = NPC.whoAmI; Main.npc[lol].ai[2] = NPC.whoAmI; @@ -272,7 +272,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; } } @@ -1367,7 +1367,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm return; } - Texture2D texture = ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmHeadGlowHuge").Value; + Texture2D texture = ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow").Value; SpriteEffects spriteEffects = NPC.spriteDirection == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; Vector2 center = NPC.Center; Main.spriteBatch.Draw(texture, center - screenPos, NPC.frame, Color.White, NPC.rotation, texture.Size() * 0.5f, NPC.scale, spriteEffects, 0f); diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.png diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadGlowHuge.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmHeadGlowHuge.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow.png diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge_Head_Boss.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead_Head_Boss.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmHeadHuge_Head_Boss.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead_Head_Boss.png diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs similarity index 91% rename from NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.cs rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs index cb7f3c3640..6c7965a47f 100644 --- a/NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs @@ -9,7 +9,7 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.AdultEidolonWyrm { - public class EidolonWyrmTailHuge : ModNPC + public class AdultEidolonWyrmTail : ModNPC { public override void SetStaticDefaults() { @@ -60,7 +60,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm bool shouldDespawn = true; for (int i = 0; i < Main.maxNPCs; i++) { - if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) + if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType()) { shouldDespawn = false; break; @@ -86,8 +86,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f; float lightningChargePhaseGateValue = malice ? 90f : 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)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge); - bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge; + 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 invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f; if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase) { @@ -150,9 +150,9 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm Vector2 center = new Vector2(NPC.Center.X, NPC.Center.Y); Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2); Vector2 vector = center - screenPos; - vector -= new Vector2(ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value.Width, ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value.Height) * 0.5f; + vector -= new Vector2(ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value.Width, ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value.Height) * 0.5f; vector += vector11 * 1f + new Vector2(0f, 4f + NPC.gfxOffY); - Main.spriteBatch.Draw(ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value, vector, + Main.spriteBatch.Draw(ModContent.Request("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value, vector, new Microsoft.Xna.Framework.Rectangle?(NPC.frame), Color.White, NPC.rotation, vector11, 1f, spriteEffects, 0f); } diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmTailHuge.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.png diff --git a/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge.png b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow.png similarity index 100% rename from NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge.png rename to NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow.png diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs similarity index 98% rename from NPCs/AstrumDeus/AstrumDeusBodySpectral.cs rename to NPCs/AstrumDeus/AstrumDeusBody.cs index 953a28d476..789537679d 100644 --- a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -12,7 +12,7 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.AstrumDeus { - public class AstrumDeusBodySpectral : ModNPC + public class AstrumDeusBody : ModNPC { public override void SetStaticDefaults() { @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.AstrumDeus NPC.noTileCollide = true; NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit4; - NPC.DeathSound = AstrumDeusHeadSpectral.DeathSound; + NPC.DeathSound = AstrumDeusHead.DeathSound; NPC.netAlways = true; NPC.boss = true; Music = CalamityMod.Instance.GetMusicFromMusicMod("AstrumDeus") ?? MusicID.Boss3; diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.png b/NPCs/AstrumDeus/AstrumDeusBody.png similarity index 100% rename from NPCs/AstrumDeus/AstrumDeusBodySpectral.png rename to NPCs/AstrumDeus/AstrumDeusBody.png diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs similarity index 98% rename from NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs rename to NPCs/AstrumDeus/AstrumDeusHead.cs index a586ee0ec5..01b22ac416 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -28,7 +28,7 @@ using Terraria.Audio; namespace CalamityMod.NPCs.AstrumDeus { [AutoloadBossHead] - public class AstrumDeusHeadSpectral : ModNPC + public class AstrumDeusHead : ModNPC { public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeusSpawn"); public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeusSplit"); @@ -236,9 +236,9 @@ namespace CalamityMod.NPCs.AstrumDeus return false; int closestSegmentID = DropHelper.FindClosestWormSegment(NPC, - ModContent.NPCType(), - ModContent.NPCType(), - ModContent.NPCType()); + ModContent.NPCType(), + ModContent.NPCType(), + ModContent.NPCType()); NPC.position = Main.npc[closestSegmentID].position; return false; diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.png b/NPCs/AstrumDeus/AstrumDeusHead.png similarity index 100% rename from NPCs/AstrumDeus/AstrumDeusHeadSpectral.png rename to NPCs/AstrumDeus/AstrumDeusHead.png diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral_Head_Boss.png b/NPCs/AstrumDeus/AstrumDeusHead_Head_Boss.png similarity index 100% rename from NPCs/AstrumDeus/AstrumDeusHeadSpectral_Head_Boss.png rename to NPCs/AstrumDeus/AstrumDeusHead_Head_Boss.png diff --git a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs similarity index 98% rename from NPCs/AstrumDeus/AstrumDeusTailSpectral.cs rename to NPCs/AstrumDeus/AstrumDeusTail.cs index 99b32af018..4cfa1c796a 100644 --- a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -12,7 +12,7 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.AstrumDeus { - public class AstrumDeusTailSpectral : ModNPC + public class AstrumDeusTail : ModNPC { public override void SetStaticDefaults() { @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.AstrumDeus NPC.noTileCollide = true; NPC.canGhostHeal = false; NPC.HitSound = SoundID.NPCHit4; - NPC.DeathSound = AstrumDeusHeadSpectral.DeathSound; + NPC.DeathSound = AstrumDeusHead.DeathSound; NPC.netAlways = true; NPC.boss = true; Music = CalamityMod.Instance.GetMusicFromMusicMod("AstrumDeus") ?? MusicID.Boss3; diff --git a/NPCs/AstrumDeus/AstrumDeusTailSpectral.png b/NPCs/AstrumDeus/AstrumDeusTail.png similarity index 100% rename from NPCs/AstrumDeus/AstrumDeusTailSpectral.png rename to NPCs/AstrumDeus/AstrumDeusTail.png diff --git a/NPCs/Calamitas/CalScreenShaderData.cs b/NPCs/Calamitas/CalScreenShaderData.cs index e3dc3c7227..06d67cc3d3 100644 --- a/NPCs/Calamitas/CalScreenShaderData.cs +++ b/NPCs/Calamitas/CalScreenShaderData.cs @@ -18,7 +18,7 @@ namespace CalamityMod.NPCs.Calamitas private void UpdateCalIndex() { - int CalType = ModContent.NPCType(); + int CalType = ModContent.NPCType(); if (CalIndex >= 0 && Main.npc[CalIndex].active && Main.npc[CalIndex].type == CalType) { return; diff --git a/NPCs/Calamitas/CalSky.cs b/NPCs/Calamitas/CalSky.cs index 7028a629d9..d600366d0f 100644 --- a/NPCs/Calamitas/CalSky.cs +++ b/NPCs/Calamitas/CalSky.cs @@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.Calamitas private bool UpdateCalIndex() { - int CalType = ModContent.NPCType(); + int CalType = ModContent.NPCType(); if (CalIndex >= 0 && Main.npc[CalIndex].active && Main.npc[CalIndex].type == CalType) { return true; diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasClone.cs similarity index 99% rename from NPCs/Calamitas/CalamitasRun3.cs rename to NPCs/Calamitas/CalamitasClone.cs index cf0fd8d50d..77d6b7fe24 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasClone.cs @@ -28,7 +28,7 @@ using CalamityMod.Sounds; namespace CalamityMod.NPCs.Calamitas { [AutoloadBossHead] - public class CalamitasRun3 : ModNPC + public class CalamitasClone : ModNPC { public override void SetStaticDefaults() { @@ -161,7 +161,7 @@ namespace CalamityMod.NPCs.Calamitas npcOffset += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture, npcOffset, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, origin, NPC.scale, spriteEffects, 0f); - texture = ModContent.Request("CalamityMod/NPCs/Calamitas/CalamitasRun3Glow").Value; + texture = ModContent.Request("CalamityMod/NPCs/Calamitas/CalamitasCloneGlow").Value; Color color = Color.Lerp(Color.White, Color.Red, 0.5f); if (CalamityConfig.Instance.Afterimages) diff --git a/NPCs/Calamitas/CalamitasRun3.png b/NPCs/Calamitas/CalamitasClone.png similarity index 100% rename from NPCs/Calamitas/CalamitasRun3.png rename to NPCs/Calamitas/CalamitasClone.png diff --git a/NPCs/Calamitas/CalamitasRun3Glow.png b/NPCs/Calamitas/CalamitasCloneGlow.png similarity index 100% rename from NPCs/Calamitas/CalamitasRun3Glow.png rename to NPCs/Calamitas/CalamitasCloneGlow.png diff --git a/NPCs/Calamitas/CalamitasRun3_Head_Boss.png b/NPCs/Calamitas/CalamitasClone_Head_Boss.png similarity index 100% rename from NPCs/Calamitas/CalamitasRun3_Head_Boss.png rename to NPCs/Calamitas/CalamitasClone_Head_Boss.png diff --git a/NPCs/Calamitas/CalamitasRun.cs b/NPCs/Calamitas/Cataclysm.cs similarity index 99% rename from NPCs/Calamitas/CalamitasRun.cs rename to NPCs/Calamitas/Cataclysm.cs index 9fe741515f..04f17fde46 100644 --- a/NPCs/Calamitas/CalamitasRun.cs +++ b/NPCs/Calamitas/Cataclysm.cs @@ -16,7 +16,7 @@ using System.IO; namespace CalamityMod.NPCs.Calamitas { [AutoloadBossHead] - public class CalamitasRun : ModNPC + public class Cataclysm : ModNPC { public override void SetStaticDefaults() { @@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.Calamitas public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) { - int associatedNPCType = ModContent.NPCType(); + int associatedNPCType = ModContent.NPCType(); bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true); bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { @@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.Calamitas vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - texture2D15 = ModContent.Request("CalamityMod/NPCs/Calamitas/CalamitasRunGlow").Value; + texture2D15 = ModContent.Request("CalamityMod/NPCs/Calamitas/CataclysmGlow").Value; Color color37 = Color.Lerp(Color.White, Color.Red, 0.5f); if (CalamityConfig.Instance.Afterimages) diff --git a/NPCs/Calamitas/CalamitasRun.png b/NPCs/Calamitas/Cataclysm.png similarity index 100% rename from NPCs/Calamitas/CalamitasRun.png rename to NPCs/Calamitas/Cataclysm.png diff --git a/NPCs/Calamitas/CalamitasRunGlow.png b/NPCs/Calamitas/CataclysmGlow.png similarity index 100% rename from NPCs/Calamitas/CalamitasRunGlow.png rename to NPCs/Calamitas/CataclysmGlow.png diff --git a/NPCs/Calamitas/CalamitasRun_Head_Boss.png b/NPCs/Calamitas/Cataclysm_Head_Boss.png similarity index 100% rename from NPCs/Calamitas/CalamitasRun_Head_Boss.png rename to NPCs/Calamitas/Cataclysm_Head_Boss.png diff --git a/NPCs/Calamitas/CalamitasRun2.cs b/NPCs/Calamitas/Catastrophe.cs similarity index 99% rename from NPCs/Calamitas/CalamitasRun2.cs rename to NPCs/Calamitas/Catastrophe.cs index 22b8b83526..caffba572b 100644 --- a/NPCs/Calamitas/CalamitasRun2.cs +++ b/NPCs/Calamitas/Catastrophe.cs @@ -16,7 +16,7 @@ using System.IO; namespace CalamityMod.NPCs.Calamitas { [AutoloadBossHead] - public class CalamitasRun2 : ModNPC + public class Catastrophe : ModNPC { public override void SetStaticDefaults() { @@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.Calamitas public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) { - int associatedNPCType = ModContent.NPCType(); + int associatedNPCType = ModContent.NPCType(); bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true); bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { @@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.Calamitas vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - texture2D15 = ModContent.Request("CalamityMod/NPCs/Calamitas/CalamitasRun2Glow").Value; + texture2D15 = ModContent.Request("CalamityMod/NPCs/Calamitas/CatastropheGlow").Value; Color color37 = Color.Lerp(Color.White, Color.Red, 0.5f); if (CalamityConfig.Instance.Afterimages) diff --git a/NPCs/Calamitas/CalamitasRun2.png b/NPCs/Calamitas/Catastrophe.png similarity index 100% rename from NPCs/Calamitas/CalamitasRun2.png rename to NPCs/Calamitas/Catastrophe.png diff --git a/NPCs/Calamitas/CalamitasRun2Glow.png b/NPCs/Calamitas/CatastropheGlow.png similarity index 100% rename from NPCs/Calamitas/CalamitasRun2Glow.png rename to NPCs/Calamitas/CatastropheGlow.png diff --git a/NPCs/Calamitas/CalamitasRun2_Head_Boss.png b/NPCs/Calamitas/Catastrophe_Head_Boss.png similarity index 100% rename from NPCs/Calamitas/CalamitasRun2_Head_Boss.png rename to NPCs/Calamitas/Catastrophe_Head_Boss.png diff --git a/NPCs/Calamitas/SoulSeeker.cs b/NPCs/Calamitas/SoulSeeker.cs index e130276f96..dd1e98be0e 100644 --- a/NPCs/Calamitas/SoulSeeker.cs +++ b/NPCs/Calamitas/SoulSeeker.cs @@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.Calamitas public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) { - int associatedNPCType = ModContent.NPCType(); + int associatedNPCType = ModContent.NPCType(); bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true); bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 2c162a18e2..5fbf12795d 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -1201,8 +1201,8 @@ namespace CalamityMod.NPCs } else if (calamityGlobalNPC.newAI[0] <= (float)npc.lifeMax * 0.4) { - NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI); - NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI); + NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI); + NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI); string key = "Mods.CalamityMod.CalamitasBossText2"; Color messageColor = Color.Orange; @@ -1957,7 +1957,7 @@ namespace CalamityMod.NPCs if (npc.localAI[1] > 12f) { npc.localAI[1] = 0f; - float num867 = NPC.AnyNPCs(ModContent.NPCType()) ? 4f : 6f; + float num867 = NPC.AnyNPCs(ModContent.NPCType()) ? 4f : 6f; num867 += enrageScale; int type = ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(type); @@ -2265,7 +2265,7 @@ namespace CalamityMod.NPCs SoundEngine.PlaySound(SoundID.Roar, npc.position); npc.rotation = num842; - float num870 = (NPC.AnyNPCs(ModContent.NPCType()) ? 12f : 16f) + (death ? 4f * (1f - lifeRatio) : 0f); + float num870 = (NPC.AnyNPCs(ModContent.NPCType()) ? 12f : 16f) + (death ? 4f * (1f - lifeRatio) : 0f); num870 += 4f * enrageScale; if (expertMode) num870 += 2f; @@ -3197,20 +3197,20 @@ namespace CalamityMod.NPCs if (head) { float splitAnimationTime = 180f; - bool oneWormAlive = NPC.CountNPCS(ModContent.NPCType()) < 2; + bool oneWormAlive = NPC.CountNPCS(ModContent.NPCType()) < 2; bool deathModeFinalWormEnrage = death && doubleWormPhase && oneWormAlive && calamityGlobalNPC.newAI[1] >= resistanceTime; if (deathModeFinalWormEnrage) { if (calamityGlobalNPC.newAI[0] != 3f) { - SoundEngine.PlaySound(AstrumDeusHeadSpectral.SplitSound, player.Center); + SoundEngine.PlaySound(AstrumDeusHead.SplitSound, player.Center); calamityGlobalNPC.newAI[0] = 3f; npc.defense = 12; calamityGlobalNPC.DR = 0.075f; // Despawns the other deus worm segments - int bodyID = ModContent.NPCType(); - int tailID = ModContent.NPCType(); + int bodyID = ModContent.NPCType(); + int tailID = ModContent.NPCType(); for (int i = 0; i < Main.maxNPCs; i++) { NPC wormseg = Main.npc[i]; @@ -3256,8 +3256,8 @@ namespace CalamityMod.NPCs return; // Mark all existing body and tail segments as inactive. This instantly frees up their NPC slots for the freshly spawned worms. - int bodyID = ModContent.NPCType(); - int tailID = ModContent.NPCType(); + int bodyID = ModContent.NPCType(); + int tailID = ModContent.NPCType(); for (int i = 0; i < Main.maxNPCs; i++) { NPC wormseg = Main.npc[i]; @@ -3320,7 +3320,7 @@ namespace CalamityMod.NPCs netMessage.Send(); } - SoundEngine.PlaySound(AstrumDeusHeadSpectral.SplitSound, player.Center); + SoundEngine.PlaySound(AstrumDeusHead.SplitSound, player.Center); } return; } @@ -3358,10 +3358,10 @@ namespace CalamityMod.NPCs } // Check if other segments are still alive, if not, die - if (npc.type != ModContent.NPCType()) + if (npc.type != ModContent.NPCType()) { bool shouldDespawn = true; - int headType = ModContent.NPCType(); + int headType = ModContent.NPCType(); for (int i = 0; i < Main.maxNPCs; i++) { if (Main.npc[i].type != headType || !Main.npc[i].active) @@ -3398,8 +3398,8 @@ namespace CalamityMod.NPCs if (npc.ai[0] == 0f) { int Previous = npc.whoAmI; - int bodyType = ModContent.NPCType(); - int tailType = ModContent.NPCType(); + int bodyType = ModContent.NPCType(); + int tailType = ModContent.NPCType(); for (int num36 = 0; num36 < maxLength; num36++) { int lol; @@ -3522,9 +3522,9 @@ namespace CalamityMod.NPCs npc.velocity.Y -= velocity; } - int headType = ModContent.NPCType(); - int bodyType = ModContent.NPCType(); - int tailType = ModContent.NPCType(); + int headType = ModContent.NPCType(); + int bodyType = ModContent.NPCType(); + int tailType = ModContent.NPCType(); if ((double)npc.position.Y < Main.topWorld + 16f) { for (int num957 = 0; num957 < Main.maxNPCs; num957++) @@ -3742,7 +3742,7 @@ namespace CalamityMod.NPCs else { // Shoot lasers - if (npc.type == ModContent.NPCType() && Main.netMode != NetmodeID.MultiplayerClient) + if (npc.type == ModContent.NPCType() && Main.netMode != NetmodeID.MultiplayerClient) { int shootTime = (doubleWormPhase && expertMode) ? 2 : 1; npc.localAI[0] += 1f; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 3408a41220..11a53160e6 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -478,9 +478,9 @@ namespace CalamityMod.NPCs ResetSavedIndex(ref primeVice, NPCID.PrimeVice); ResetSavedIndex(ref primeSaw, NPCID.PrimeSaw); ResetSavedIndex(ref brimstoneElemental, NPCType()); - ResetSavedIndex(ref cataclysm, NPCType()); - ResetSavedIndex(ref catastrophe, NPCType()); - ResetSavedIndex(ref calamitas, NPCType()); + ResetSavedIndex(ref cataclysm, NPCType()); + ResetSavedIndex(ref catastrophe, NPCType()); + ResetSavedIndex(ref calamitas, NPCType()); ResetSavedIndex(ref leviathan, NPCType()); ResetSavedIndex(ref siren, NPCType()); ResetSavedIndex(ref scavenger, NPCType()); @@ -509,7 +509,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; @@ -2759,7 +2759,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); } @@ -4175,7 +4175,7 @@ namespace CalamityMod.NPCs if (CalamityLists.DesertScourgeIDs.Contains(npc.type) || CalamityLists.EaterofWorldsIDs.Contains(npc.type) || npc.type == NPCID.Creeper || CalamityLists.PerforatorIDs.Contains(npc.type) || CalamityLists.AquaticScourgeIDs.Contains(npc.type) || CalamityLists.DestroyerIDs.Contains(npc.type) || CalamityLists.AstrumDeusIDs.Contains(npc.type) || CalamityLists.StormWeaverIDs.Contains(npc.type) || CalamityLists.ThanatosIDs.Contains(npc.type) || - npc.type == NPCType() || npc.type == NPCType() || CalamityLists.AresIDs.Contains(npc.type) || npc.type == NPCType()) + npc.type == NPCType() || npc.type == NPCType() || CalamityLists.AresIDs.Contains(npc.type) || npc.type == NPCType()) { double damageMult = CalamityLists.ThanatosIDs.Contains(npc.type) ? 0.35 : 0.5; if (item.CountsAsClass() && item.type != ItemType() && item.type != ItemType()) @@ -5651,7 +5651,7 @@ namespace CalamityMod.NPCs { return DownedBossSystem.downedDesertScourge; } - else if (type == NPCType()) + else if (type == NPCType()) { return DownedBossSystem.downedCrabulon; } @@ -5679,7 +5679,7 @@ namespace CalamityMod.NPCs { return DownedBossSystem.downedBrimstoneElemental; } - else if (type == NPCType()) + else if (type == NPCType()) { return DownedBossSystem.downedCalamitas; } @@ -5691,7 +5691,7 @@ namespace CalamityMod.NPCs { return DownedBossSystem.downedAstrumAureus; } - else if (type == NPCType() || type == NPCType() || type == NPCType()) + else if (type == NPCType() || type == NPCType() || type == NPCType()) { return DownedBossSystem.downedAstrumDeus; } @@ -5751,7 +5751,7 @@ namespace CalamityMod.NPCs { return DownedBossSystem.downedSCal; } - else if (type == NPCType()) + else if (type == NPCType()) { return DownedBossSystem.downedAdultEidolonWyrm; } @@ -5821,8 +5821,8 @@ 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 != 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)) { return true; } diff --git a/NPCs/Crabulon/CrabShroom.cs b/NPCs/Crabulon/CrabShroom.cs index 5f36bced93..6f6cd51f4b 100644 --- a/NPCs/Crabulon/CrabShroom.cs +++ b/NPCs/Crabulon/CrabShroom.cs @@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.Crabulon public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) { - int associatedNPCType = ModContent.NPCType(); + int associatedNPCType = ModContent.NPCType(); bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true); bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { diff --git a/NPCs/Crabulon/CrabulonIdle.cs b/NPCs/Crabulon/Crabulon.cs similarity index 99% rename from NPCs/Crabulon/CrabulonIdle.cs rename to NPCs/Crabulon/Crabulon.cs index 4ee2fcb410..4dde5168ee 100644 --- a/NPCs/Crabulon/CrabulonIdle.cs +++ b/NPCs/Crabulon/Crabulon.cs @@ -26,7 +26,7 @@ using Terraria.GameContent.ItemDropRules; namespace CalamityMod.NPCs.Crabulon { [AutoloadBossHead] - public class CrabulonIdle : ModNPC + public class Crabulon : ModNPC { private int biomeEnrageTimer = CalamityGlobalNPC.biomeEnrageTimerMax; private int shotSpacing = 1000; @@ -746,9 +746,9 @@ namespace CalamityMod.NPCs.Crabulon if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; - Texture2D glow = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonIdleGlow").Value; - Texture2D texture = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonIdleAlt").Value; - Texture2D textureGlow = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonIdleAltGlow").Value; + Texture2D glow = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonGlow").Value; + Texture2D texture = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonAlt").Value; + Texture2D textureGlow = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonAltGlow").Value; Texture2D textureAttack = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonAttack").Value; Texture2D textureAttackGlow = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonAttackGlow").Value; diff --git a/NPCs/Crabulon/CrabulonIdle.png b/NPCs/Crabulon/Crabulon.png similarity index 100% rename from NPCs/Crabulon/CrabulonIdle.png rename to NPCs/Crabulon/Crabulon.png diff --git a/NPCs/Crabulon/CrabulonIdleAlt.png b/NPCs/Crabulon/CrabulonAlt.png similarity index 100% rename from NPCs/Crabulon/CrabulonIdleAlt.png rename to NPCs/Crabulon/CrabulonAlt.png diff --git a/NPCs/Crabulon/CrabulonIdleAltGlow.png b/NPCs/Crabulon/CrabulonAltGlow.png similarity index 100% rename from NPCs/Crabulon/CrabulonIdleAltGlow.png rename to NPCs/Crabulon/CrabulonAltGlow.png diff --git a/NPCs/Crabulon/CrabulonIdleGlow.png b/NPCs/Crabulon/CrabulonGlow.png similarity index 100% rename from NPCs/Crabulon/CrabulonIdleGlow.png rename to NPCs/Crabulon/CrabulonGlow.png diff --git a/NPCs/Crabulon/CrabulonIdle_Head_Boss.png b/NPCs/Crabulon/Crabulon_Head_Boss.png similarity index 100% rename from NPCs/Crabulon/CrabulonIdle_Head_Boss.png rename to NPCs/Crabulon/Crabulon_Head_Boss.png diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index ae1f92c364..79b6e05bf9 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.Cryogen if (NPC.ai[2] == 0f && NPC.localAI[1] == 0f && Main.netMode != NetmodeID.MultiplayerClient && (NPC.ai[0] < 3f || BossRushEvent.BossRushActive || (death && NPC.ai[0] > 3f))) //spawn shield for phase 0 1 2, not 3 4 5 { - int num6 = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); + int num6 = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); NPC.ai[2] = num6 + 1; NPC.localAI[1] = -1f; NPC.netUpdate = true; @@ -180,7 +180,7 @@ namespace CalamityMod.NPCs.Cryogen } int num7 = (int)NPC.ai[2] - 1; - if (num7 != -1 && Main.npc[num7].active && Main.npc[num7].type == ModContent.NPCType()) + if (num7 != -1 && Main.npc[num7].active && Main.npc[num7].type == ModContent.NPCType()) { NPC.dontTakeDamage = true; } diff --git a/NPCs/Cryogen/CryogenIce.cs b/NPCs/Cryogen/CryogenShield.cs similarity index 98% rename from NPCs/Cryogen/CryogenIce.cs rename to NPCs/Cryogen/CryogenShield.cs index b8d1d52c4b..ba4c27be62 100644 --- a/NPCs/Cryogen/CryogenIce.cs +++ b/NPCs/Cryogen/CryogenShield.cs @@ -9,7 +9,7 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.Cryogen { - public class CryogenIce : ModNPC + public class CryogenShield : ModNPC { public override void SetStaticDefaults() { @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.Cryogen NPC.rotation += 0.15f; - if (NPC.type == ModContent.NPCType()) + if (NPC.type == ModContent.NPCType()) { int num989 = (int)NPC.ai[0]; if (Main.npc[num989].active && Main.npc[num989].type == ModContent.NPCType()) diff --git a/NPCs/Cryogen/CryogenIce.png b/NPCs/Cryogen/CryogenShield.png similarity index 100% rename from NPCs/Cryogen/CryogenIce.png rename to NPCs/Cryogen/CryogenShield.png diff --git a/NPCs/NormalNPCs/Eidolist.cs b/NPCs/NormalNPCs/Eidolist.cs index 7ab9784eba..512759deab 100644 --- a/NPCs/NormalNPCs/Eidolist.cs +++ b/NPCs/NormalNPCs/Eidolist.cs @@ -345,7 +345,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(EidolonWyrmHeadHuge.CanMinionsDropThings); + var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.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 21625ba6e3..013102b40d 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -988,7 +988,7 @@ namespace CalamityMod.NPCs.Polterghast if (!DownedBossSystem.downedPolterghast) { if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) - SoundEngine.PlaySound(Reaper.SearchRoarSound, Main.player[Main.myPlayer].position); + SoundEngine.PlaySound(ReaperShark.SearchRoarSound, Main.player[Main.myPlayer].position); string key = "Mods.CalamityMod.GhostBossText"; Color messageColor = Color.RoyalBlue; diff --git a/NPCs/VanillaNPCOverrides/Bosses/BrainOfCthulhuAI.cs b/NPCs/VanillaNPCOverrides/Bosses/BrainOfCthulhuAI.cs index 045b48e6bc..8812a4f670 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/BrainOfCthulhuAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/BrainOfCthulhuAI.cs @@ -135,6 +135,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses float velocityScale = death ? 4f : 2f; float velocityBoost = velocityScale * (1f - lifeRatio); float num798 = 8f + velocityBoost + 3f * enrageScale; + if (Main.getGoodWorld) + num798 *= 1.15f; + num797 = num798 / num797; num795 *= num797; num796 *= num797; @@ -168,6 +171,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses // Velocity npc.velocity = Vector2.Normalize(Main.player[npc.target].Center + (malice ? Main.player[npc.target].velocity * 20f : Vector2.Zero) - npc.Center) * ((death ? 20f : 16f) + 4f * enrageScale); + if (Main.getGoodWorld) + npc.velocity *= 1.15f; } } @@ -226,6 +231,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses { npc.ai[2] -= 1f; npc.velocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center) * ((death ? -10f : -8f) - 2f * enrageScale); + if (Main.getGoodWorld) + npc.velocity *= 1.15f; } } @@ -436,6 +443,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses float num804 = Main.player[npc.target].Center.Y - vector99.Y; float num805 = (float)Math.Sqrt(num803 * num803 + num804 * num804); float num806 = (death ? 2f : 1f) + (creeperScale * 0.1f); + if (Main.getGoodWorld) + num806 *= 3f; if (num805 < num806) { @@ -637,8 +646,16 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses chargeVelocity += 4f * enrageScale; Vector2 value2 = Main.player[npc.target].Center - npc.Center; value2.Normalize(); - value2 *= chargeVelocity; - npc.velocity = (npc.velocity * 99f + value2) / 100f; + if (Main.getGoodWorld) + { + value2 *= 12f; + npc.velocity = (npc.velocity * 49f + value2) / 50f; + } + else + { + value2 *= chargeVelocity; + npc.velocity = (npc.velocity * 99f + value2) / 100f; + } Vector2 vector101 = new Vector2(npc.Center.X, npc.Center.Y); float num815 = Main.npc[NPC.crimsonBoss].Center.X - vector101.X; @@ -682,7 +699,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses public static int GetBrainOfCthuluCreepersCountRevDeath() { - return (CalamityWorld.death || BossRushEvent.BossRushActive) ? 30 : 25; + return Main.getGoodWorld ? 40 : (CalamityWorld.death || BossRushEvent.BossRushActive) ? 30 : 25; } private static float GetCrimsonBossKnockBack(NPC npc, int numPlayers, float lifeScale, float baseKnockBackResist) diff --git a/NPCs/VanillaNPCOverrides/Bosses/CultistAI.cs b/NPCs/VanillaNPCOverrides/Bosses/CultistAI.cs index 065a1d4436..fee1ff0b3d 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/CultistAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/CultistAI.cs @@ -75,6 +75,18 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses idleTime = 30; } + if (Main.getGoodWorld) + { + iceMistFireRate = 30; + iceMistSpeed = 15f; + fireballFireRate = 6; + fireballSpeed *= 1.25f; + lightningOrbPhaseTime = 60; + ancientLightSpawnRate = 10; + ancientLightAmt = 5; + idleTime = 20; + } + npc.Calamity().CurrentlyEnraged = !BossRushEvent.BossRushActive && malice; // Get a target @@ -1078,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; @@ -1094,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 @@ -1116,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); @@ -1169,7 +1181,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses int damage = npc.GetProjectileDamage(type); // Triple damage if the Adult Eidolon Wyrm is alive - if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) + if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType()) damage *= 3; kill = true; diff --git a/NPCs/VanillaNPCOverrides/Bosses/DestroyerAI.cs b/NPCs/VanillaNPCOverrides/Bosses/DestroyerAI.cs index a41e975391..964dca00bb 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/DestroyerAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/DestroyerAI.cs @@ -145,6 +145,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses int index = npc.whoAmI; int totalSegments = death ? 60 : 80; + if (Main.getGoodWorld) + totalSegments *= 2; + for (int j = 0; j <= totalSegments; j++) { int type = NPCID.TheDestroyerBody; @@ -387,6 +390,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses speed *= increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f; turnSpeed *= increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f; + if (Main.getGoodWorld) + { + speed *= 1.2f; + turnSpeed *= 1.2f; + } + Vector2 vector3 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); float num20 = player.position.X + (player.width / 2); float num21 = player.position.Y + (player.height / 2); diff --git a/NPCs/VanillaNPCOverrides/Bosses/EaterOfWorldsAI.cs b/NPCs/VanillaNPCOverrides/Bosses/EaterOfWorldsAI.cs index 86d9c9f032..64ec67a3cd 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/EaterOfWorldsAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/EaterOfWorldsAI.cs @@ -73,7 +73,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses // Vile spit if (npc.type == NPCID.EaterofWorldsBody) { - if (Main.rand.NextBool(900) && phase2) + if (Main.rand.NextBool(Main.getGoodWorld ? 600 : 900) && phase2) { npc.TargetClosest(); if (Collision.CanHitLine(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1)) @@ -310,6 +310,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num38 += 0.015f * enrageScale; } + if (Main.getGoodWorld) + { + num37 += 4f; + num38 += 0.05f; + } + Vector2 vector2 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); float num39 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2); float num40 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2); @@ -339,6 +345,10 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num52 = (float)Math.Sqrt(num39 * num39 + num40 * num40); int num53 = npc.width; num53 = (int)(num53 * npc.scale); + + if (Main.getGoodWorld) + num53 = 62; + num52 = (num52 - num53) / num52; num39 *= num52; num40 *= num52; diff --git a/NPCs/VanillaNPCOverrides/Bosses/EyeOfCthulhuAI.cs b/NPCs/VanillaNPCOverrides/Bosses/EyeOfCthulhuAI.cs index 0edaa7650b..1d3a0449e8 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/EyeOfCthulhuAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/EyeOfCthulhuAI.cs @@ -121,6 +121,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses hoverAcceleration += 0.17f * (1f - lifeRatio); } + if (Main.getGoodWorld) + { + hoverSpeed += 1f; + hoverAcceleration += 0.05f; + } + Vector2 hoverDestination = Main.player[npc.target].Center - Vector2.UnitY * 200f; Vector2 idealVelocity = npc.SafeDirectionTo(hoverDestination) * hoverSpeed; npc.SimpleFlyMovement(idealVelocity, hoverAcceleration); @@ -140,7 +146,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (!Main.player[npc.target].dead) npc.ai[3] += 1f; - if (npc.ai[3] >= 40f) + float servantSpawnGateValue = 40f; + if (Main.getGoodWorld) + servantSpawnGateValue *= 0.8f; + + if (npc.ai[3] >= servantSpawnGateValue) { npc.ai[3] = 0f; npc.rotation = num8; @@ -174,6 +184,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses chargeSpeed += 5f * enrageScale; if (death) chargeSpeed += 8.5f * (1f - lifeRatio); + if (Main.getGoodWorld) + chargeSpeed += 1f; + npc.velocity = npc.SafeDirectionTo(Main.player[npc.target].Center) * chargeSpeed; npc.ai[1] = 2f; @@ -188,6 +201,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (npc.ai[2] >= 40f) { npc.velocity *= 0.975f; + if (Main.getGoodWorld) + npc.velocity *= 0.99f; + if (npc.velocity.X > -0.1 && npc.velocity.X < 0.1) npc.velocity.X = 0f; if (npc.velocity.Y > -0.1 && npc.velocity.Y < 0.1) @@ -199,6 +215,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses int num28 = 90; if (death) num28 -= (int)Math.Round(120f * (1f - lifeRatio)); + if (Main.getGoodWorld) + num28 -= 15; if (npc.ai[2] >= num28) { @@ -349,6 +367,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses } } + if (Main.getGoodWorld) + { + hoverSpeed += 1f; + hoverAcceleration += 0.1f; + } + Vector2 idealHoverVelocity = npc.SafeDirectionTo(hoverDestination) * hoverSpeed; npc.SimpleFlyMovement(idealHoverVelocity, hoverAcceleration); @@ -381,6 +405,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses chargeSpeed *= 1.15f; if (npc.ai[3] == 2f) chargeSpeed *= 1.3f; + if (Main.getGoodWorld) + chargeSpeed *= 1.2f; npc.velocity = npc.SafeDirectionTo(Main.player[npc.target].Center) * chargeSpeed; npc.ai[1] = 2f; diff --git a/NPCs/VanillaNPCOverrides/Bosses/GolemAI.cs b/NPCs/VanillaNPCOverrides/Bosses/GolemAI.cs index c2dbc8be8c..3bfb7b23e7 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/GolemAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/GolemAI.cs @@ -54,7 +54,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses } // Enrage if the target isn't inside the temple - // Turbo enrage if target isn't inside the temple and it's malice mode + // Turbo enrage if target isn't inside the temple and it's malice mode or for the worthy bool enrage = true; bool turboEnrage = false; if (Main.player[npc.target].Center.Y > Main.worldSurface * 16.0) @@ -66,12 +66,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (tile.WallType == WallID.LihzahrdBrickUnsafe) enrage = false; else - turboEnrage = malice; + turboEnrage = malice || Main.getGoodWorld; } else - turboEnrage = malice; + turboEnrage = malice || Main.getGoodWorld; - if (malice) + if (malice || Main.getGoodWorld) enrage = true; npc.Calamity().CurrentlyEnraged = !BossRushEvent.BossRushActive && (enrage || turboEnrage); @@ -202,6 +202,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (npc.ai[1] > 0f) { npc.ai[1] += 1f; + if (Main.getGoodWorld) + npc.ai[1] += 100f; if (enrage || death) npc.ai[1] += 18f; else @@ -409,7 +411,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses bool death = CalamityWorld.death || BossRushEvent.BossRushActive; // Enrage if the target isn't inside the temple - // Turbo enrage if target isn't inside the temple and it's malice mode + // Turbo enrage if target isn't inside the temple and it's malice mode or for the worthy bool enrage = true; bool turboEnrage = false; if (Main.player[npc.target].Center.Y > Main.worldSurface * 16.0) @@ -421,12 +423,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (tile.WallType == WallID.LihzahrdBrickUnsafe) enrage = false; else - turboEnrage = malice; + turboEnrage = malice || Main.getGoodWorld; } else - turboEnrage = malice; + turboEnrage = malice || Main.getGoodWorld; - if (malice) + if (malice || Main.getGoodWorld) enrage = true; float aggression = turboEnrage ? 3f : enrage ? 2f : death ? 1.5f : 1f; @@ -458,6 +460,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses float num725 = Main.npc[NPC.golemBoss].Center.Y - vector80.Y; num725 -= 9f; num724 = (npc.type != NPCID.GolemFistLeft) ? (num724 + 78f) : (num724 - 84f); + if (Main.getGoodWorld) + num724 = (npc.type != NPCID.GolemFistLeft) ? (num724 - 40f) : (num724 + 40f); + float num726 = (float)Math.Sqrt(num724 * num724 + num725 * num725); if (num726 < 12f + num723) { @@ -662,7 +667,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses npc.dontTakeDamage = flag41 || flag42; // Stay in position on top of body - npc.Center = Main.npc[NPC.golemBoss].Center - new Vector2(3f, 57f); + npc.Center = Main.npc[NPC.golemBoss].Center - new Vector2(Main.getGoodWorld ? 2f : 3f, Main.getGoodWorld ? 37f : 57f); // Enrage if the target isn't inside the temple bool enrage = true; @@ -676,12 +681,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (tile.WallType == WallID.LihzahrdBrickUnsafe) enrage = false; else - turboEnrage = malice; + turboEnrage = malice || Main.getGoodWorld; } else - turboEnrage = malice; + turboEnrage = malice || Main.getGoodWorld; - if (malice) + if (malice || Main.getGoodWorld) enrage = true; // Alpha @@ -912,12 +917,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (tile.WallType == WallID.LihzahrdBrickUnsafe) enrage = false; else - turboEnrage = malice; + turboEnrage = malice || Main.getGoodWorld; } else - turboEnrage = malice; + turboEnrage = malice || Main.getGoodWorld; - if (malice) + if (malice || Main.getGoodWorld) enrage = true; if (turboEnrage && NPC.golemBoss >= 0) @@ -1108,6 +1113,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses for (int num713 = 0; num713 < 2; num713++) { Vector2 vector89 = new Vector2(npc.Center.X, npc.Center.Y - 50f); + if (Main.getGoodWorld) + vector89.Y += 30f; if (num713 == 0) vector89.X -= 14f; else if (num713 == 1) diff --git a/NPCs/VanillaNPCOverrides/Bosses/KingSlimeAI.cs b/NPCs/VanillaNPCOverrides/Bosses/KingSlimeAI.cs index 17e9650318..06f3b6f77f 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/KingSlimeAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/KingSlimeAI.cs @@ -14,11 +14,20 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses { public static bool BuffedKingSlimeAI(NPC npc, Mod mod) { + // Percent life remaining + float lifeRatio = npc.life / (float)npc.lifeMax; + // Variables float num234 = 1f; bool teleporting = false; bool flag9 = false; npc.aiAction = 0; + float num237 = 2f; + if (Main.getGoodWorld) + { + num237 -= 1f - lifeRatio; + num234 *= num237; + } // Reset damage npc.damage = npc.defDamage; @@ -35,9 +44,6 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) npc.TargetClosest(); - // Percent life remaining - float lifeRatio = npc.life / (float)npc.lifeMax; - // Phases based on life percentage bool phase2 = lifeRatio < 0.75f; bool phase3 = lifeRatio < 0.5f; @@ -155,6 +161,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses npc.ai[0] += 1f; num234 = MathHelper.Clamp((60f - npc.ai[0]) / 60f, 0f, 1f); num234 = 0.5f + num234 * 0.5f; + if (Main.getGoodWorld) + num234 *= num237; if (npc.ai[0] >= 60f) flag9 = true; @@ -199,6 +207,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses npc.ai[0] += 1f; num234 = MathHelper.Clamp(npc.ai[0] / 30f, 0f, 1f); num234 = 0.5f + num234 * 0.5f; + if (Main.getGoodWorld) + num234 *= num237; if (npc.ai[0] >= 30f && Main.netMode != NetmodeID.MultiplayerClient) { @@ -307,12 +317,19 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses } // Change jump velocity - else if (npc.target < Main.maxPlayers && ((npc.direction == 1 && npc.velocity.X < 3f) || (npc.direction == -1 && npc.velocity.X > -3f))) + else if (npc.target < Main.maxPlayers) { - if ((npc.direction == -1 && npc.velocity.X < 0.1) || (npc.direction == 1 && npc.velocity.X > -0.1)) - npc.velocity.X += (malice ? 0.4f : death ? 0.25f : 0.2f) * npc.direction; - else - npc.velocity.X *= malice ? 0.9f : death ? 0.92f : 0.93f; + float num252 = 3f; + if (Main.getGoodWorld) + num252 = 6f; + + if ((npc.direction == 1 && npc.velocity.X < num252) || (npc.direction == -1 && npc.velocity.X > 0f - num252)) + { + if ((npc.direction == -1 && npc.velocity.X < 0.1) || (npc.direction == 1 && npc.velocity.X > -0.1)) + npc.velocity.X += (malice ? 0.4f : death ? 0.25f : 0.2f) * npc.direction; + else + npc.velocity.X *= malice ? 0.9f : death ? 0.92f : 0.93f; + } } // Spawn dust diff --git a/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs b/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs index 07000a2ab5..65e2ee99d9 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs @@ -181,6 +181,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses velocity *= tileEnrageMult; acceleration *= tileEnrageMult; + if (Main.getGoodWorld) + { + velocity *= 1.15f; + acceleration *= 1.15f; + } + // Velocity ranges from 4 to 7.2, Acceleration ranges from 0.04 to 0.072, non-enraged phase 1 // Velocity ranges from 7 to 12.6, Acceleration ranges from 0.07 to 0.126, non-enraged phase 2 // Velocity ranges from 9 to 16.2, Acceleration ranges from 0.07 to 0.126, non-enraged phase 3 @@ -288,6 +294,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (enrage) npc.localAI[1] += 2f; + if (Main.getGoodWorld) + npc.localAI[1] += 1f; + // If hit, fire projectiles even if target is behind tiles if (npc.justHit) npc.localAI[3] = 1f; @@ -370,9 +379,25 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses npc.localAI[0] = 3f; int baseTentacles = death ? 10 : 8; int totalTentacles = (int)(baseTentacles * tileEnrageMult); + if (Main.getGoodWorld) + totalTentacles += 6; + for (int i = 0; i < totalTentacles; i++) - { NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.PlanterasTentacle, npc.whoAmI, 0f, 0f, tentacleEnrageMult); + + if (Main.getGoodWorld) + { + for (int i = 0; i < Main.maxNPCs; i++) + { + if (Main.npc[i].active && Main.npc[i].aiStyle == 52) + { + for (int j = 0; j < totalTentacles / 2 - 1; j++) + { + int num800 = NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.PlanterasTentacle, npc.whoAmI, 0f, 0f, tentacleEnrageMult); + Main.npc[num800].ai[3] = i + 1; + } + } + } } } } @@ -812,6 +837,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses float num780 = 100f + (num781 * 150f); float deceleration = (death ? 0.5f : 0.8f) / (1f + num781); + if (Main.getGoodWorld) + num779 += 4f; + // Despawn if Plantera is gone if (!Main.npc[num778].active || num778 < 0) { diff --git a/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs b/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs index 6283cddd9a..6bc9ba1a8c 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs @@ -35,6 +35,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (enrageScale > 1f) enrageScale = 1f; + if (Main.getGoodWorld) + enrageScale += 0.5f; + if (BossRushEvent.BossRushActive) enrageScale = 2f; diff --git a/NPCs/VanillaNPCOverrides/Bosses/SkeletronAI.cs b/NPCs/VanillaNPCOverrides/Bosses/SkeletronAI.cs index 70e0001fcb..a17b44c0d9 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/SkeletronAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/SkeletronAI.cs @@ -279,6 +279,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (handsDead && npc.ai[1] == 0f) { float num158 = BossRushEvent.BossRushActive ? 10f : malice ? 15f : phase2 ? (60f - (death ? 30f * (1f - lifeRatio) : 0f)) : 75f; + if (Main.getGoodWorld) + num158 *= 0.8f; + if (Main.netMode != NetmodeID.MultiplayerClient && calamityGlobalNPC.newAI[1] >= num158) { calamityGlobalNPC.newAI[1] = 0f; @@ -338,6 +341,13 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses float num170 = 3.5f - (death ? 1f - lifeRatio : 0f); float num171 = 0.08f + (death ? 0.04f * (1f - lifeRatio) : 0f); float num172 = 8.5f - (death ? 2f * (1f - lifeRatio) : 0f); + if (Main.getGoodWorld) + { + num169 += 0.01f; + num170 += 1f; + num171 += 0.05f; + num172 += 2f; + } if (malice) { num169 *= 1.25f; @@ -424,6 +434,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num176 *= baseDistanceVelocityMult; } + if (Main.getGoodWorld) + num176 *= 1.3f; + num175 = num176 / num175; npc.velocity.X = num173 * num175; npc.velocity.Y = num174 * num175; diff --git a/NPCs/VanillaNPCOverrides/Bosses/TwinsAI.cs b/NPCs/VanillaNPCOverrides/Bosses/TwinsAI.cs index 862f143b04..eeeb770292 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/TwinsAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/TwinsAI.cs @@ -107,6 +107,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num421 = 9.5f; num422 = 0.175f; } + if (Main.getGoodWorld) + { + num421 *= 1.15f; + num422 *= 1.15f; + } // Reduce acceleration if target is holding a true melee weapon if (Main.player[npc.target].HoldingTrueMeleeWeapon()) { @@ -218,6 +223,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num430 = 9.5f; num431 = 0.25f; } + if (Main.getGoodWorld) + { + num430 *= 1.15f; + num431 *= 1.15f; + } // Reduce acceleration if target is holding a true melee weapon if (Main.player[npc.target].HoldingTrueMeleeWeapon()) { @@ -438,6 +448,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num383 += 0.1f * (1f - lifeRatio); } + if (Main.getGoodWorld) + { + num382 *= 1.15f; + num383 *= 1.15f; + } + int num384 = 1; if (npc.position.X + (npc.width / 2) < Main.player[npc.target].position.X + Main.player[npc.target].width) num384 = -1; @@ -490,7 +506,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses else if (npc.position.Y + npc.height < Main.player[npc.target].position.Y && num388 < 400f) { if (!Main.player[npc.target].dead) + { npc.ai[3] += 1f; + if (Main.getGoodWorld) + npc.ai[3] += 0.5f; + } if (npc.ai[3] >= 30f) { @@ -526,6 +546,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num393 += 10f * enrageScale; if (death) num393 += 12f * (1f - lifeRatio); + if (Main.getGoodWorld) + num393 += 2f; Vector2 vector41 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); float num394 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector41.X; @@ -664,6 +686,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num399 += 4.5f * enrageScale; num400 += 0.075f * enrageScale; + if (Main.getGoodWorld) + { + num399 *= 1.15f; + num400 *= 1.15f; + } + // Reduce acceleration if target is holding a true melee weapon if (Main.player[npc.target].HoldingTrueMeleeWeapon()) { @@ -765,6 +793,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num409 += 4.5f * enrageScale; num410 += 0.15f * enrageScale; + if (Main.getGoodWorld) + { + num409 *= 1.15f; + num410 *= 1.15f; + } + // Reduce acceleration if target is holding a true melee weapon if (Main.player[npc.target].HoldingTrueMeleeWeapon()) { @@ -864,6 +898,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (!spazAlive) num450 += 2f; + if (Main.getGoodWorld) + num450 += 2f; + Vector2 vector47 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); float num451 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector47.X; float num452 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - vector47.Y; @@ -936,7 +973,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses // Charge four times float chargeGateValue = 30f; chargeGateValue -= chargeGateValue / 4 * enrageScale; - if (npc.ai[2] >= chargeTime + 30f) + if (npc.ai[2] >= chargeTime + chargeGateValue) { npc.ai[2] = 0f; npc.ai[3] += 1f; @@ -966,6 +1003,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num64 *= 0.75f; } + if (Main.getGoodWorld) + { + num63 *= 1.15f; + num64 *= 1.15f; + } + int num408 = 1; if (npc.position.X + (npc.width / 2) < Main.player[npc.target].position.X + Main.player[npc.target].width) num408 = -1; @@ -1066,6 +1109,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses // Velocity float chargeVelocity = 20f + (death ? 6f * (0.7f - lifeRatio) : 0f); chargeVelocity += 10f * enrageScale; + if (Main.getGoodWorld) + chargeVelocity += 2f; if (npc.ai[2] == -1f || (!retAlive && npc.ai[3] == 4f)) chargeVelocity *= 1.3f; @@ -1155,6 +1200,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num425 += 0.3f * (1f - lifeRatio); } + if (Main.getGoodWorld) + { + num424 *= 1.15f; + num425 *= 1.15f; + } + int num426 = 1; if (npc.position.X + (npc.width / 2) < Main.player[npc.target].position.X + Main.player[npc.target].width) num426 = -1; @@ -1208,7 +1259,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses { // Fire cursed flame every half second if (!Main.player[npc.target].dead) + { npc.ai[3] += 1f; + if (Main.getGoodWorld) + npc.ai[3] += 0.4f; + } if (npc.ai[3] >= 30f) { @@ -1247,6 +1302,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num434 += 8f * enrageScale; if (death) num434 += 12f * (1f - lifeRatio); + if (Main.getGoodWorld) + num434 *= 1.2f; Vector2 vector45 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); float num435 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector45.X; @@ -1417,6 +1474,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (num445 > 400f) num440 += 0.5f; + if (Main.getGoodWorld) + { + num440 *= 1.15f; + num441 *= 1.15f; + } + num445 = num440 / num445; num443 *= num445; num444 *= num445; @@ -1520,6 +1583,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses npc.rotation = num420; float num450 = 16.75f + (death ? 5f * (0.7f - lifeRatio) : 0f); num450 += 8f * enrageScale; + if (Main.getGoodWorld) + num450 *= 1.2f; Vector2 distanceVector = Main.player[npc.target].Center - npc.Center; npc.velocity = Vector2.Normalize(distanceVector) * num450; @@ -1591,6 +1656,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num48 += 10f * enrageScale; if (npc.ai[2] == -1f || (!retAlive && npc.ai[3] == secondFastCharge)) num48 *= 1.3f; + if (Main.getGoodWorld) + num48 *= 1.2f; Vector2 distanceVector = Main.player[npc.target].Center + (!retAlive && malice ? Main.player[npc.target].velocity * 20f : Vector2.Zero) - npc.Center; npc.velocity = Vector2.Normalize(distanceVector) * num48; @@ -1682,6 +1749,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num64 *= 0.75f; } + if (Main.getGoodWorld) + { + num63 *= 1.15f; + num64 *= 1.15f; + } + Vector2 vector11 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); float num65 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector11.X; float num66 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) + num62 - vector11.Y; diff --git a/NPCs/VanillaNPCOverrides/Bosses/WallOfFleshAI.cs b/NPCs/VanillaNPCOverrides/Bosses/WallOfFleshAI.cs index c69eed8792..e4bf58d8e5 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/WallOfFleshAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/WallOfFleshAI.cs @@ -254,12 +254,19 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (malice) speedMult += 0.2f; - // NOTE: Max velocity is 8 in expert mode + // NOTE: Max velocity is 8 in Expert Mode + // NOTE: Max velocity is 9 in For The Worthy float velocityBoost = 4f * (1f - lifeRatio); float velocityX = (BossRushEvent.BossRushActive ? 7f : death ? 3.5f : 2f) + velocityBoost; velocityX *= speedMult; + if (Main.getGoodWorld) + { + velocityX *= 1.1f; + velocityX += 0.2f; + } + // NOTE: Values below are based on Rev Mode only! // Max velocity without enrage is 12 // Min velocity is 1.5 diff --git a/Projectiles/Boss/BrimstoneBarrage.cs b/Projectiles/Boss/BrimstoneBarrage.cs index b8b6d51d09..e440597889 100644 --- a/Projectiles/Boss/BrimstoneBarrage.cs +++ b/Projectiles/Boss/BrimstoneBarrage.cs @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Boss Projectile.localAI[0] = 1f; if (Projectile.ai[0] == 0f) - Projectile.damage = NPC.AnyNPCs(ModContent.NPCType()) ? Projectile.GetProjectileDamage(ModContent.NPCType()) : Projectile.GetProjectileDamage(ModContent.NPCType()); + Projectile.damage = NPC.AnyNPCs(ModContent.NPCType()) ? Projectile.GetProjectileDamage(ModContent.NPCType()) : Projectile.GetProjectileDamage(ModContent.NPCType()); } Lighting.AddLight(Projectile.Center, 0.75f * Projectile.Opacity, 0f, 0f); diff --git a/Projectiles/Boss/DeusRitualDrama.cs b/Projectiles/Boss/DeusRitualDrama.cs index 49ab0df458..77f83affa2 100644 --- a/Projectiles/Boss/DeusRitualDrama.cs +++ b/Projectiles/Boss/DeusRitualDrama.cs @@ -46,10 +46,10 @@ namespace CalamityMod.Projectiles.Boss Time++; if (Time == TotalRitualTime - PulseTime) { - int idx = NPC.NewNPC(Projectile.GetSource_FromThis(), (int)Projectile.Center.X, (int)Projectile.Center.Y - (int)MaxUpwardRise, ModContent.NPCType(), 1); + int idx = NPC.NewNPC(Projectile.GetSource_FromThis(), (int)Projectile.Center.X, (int)Projectile.Center.Y - (int)MaxUpwardRise, ModContent.NPCType(), 1); if (idx != -1) { - SoundEngine.PlaySound(AstrumDeusHeadSpectral.SpawnSound, Projectile.Center); + SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, Projectile.Center); if (Main.netMode != NetmodeID.MultiplayerClient) { CalamityUtils.BossAwakenMessage(idx); diff --git a/Projectiles/Magic/VehemenceHoldout.cs b/Projectiles/Magic/VehemenceHoldout.cs index 34e84b6164..56ba667d66 100644 --- a/Projectiles/Magic/VehemenceHoldout.cs +++ b/Projectiles/Magic/VehemenceHoldout.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Magic public ref float Time => ref Projectile.ai[0]; public ref float ChargeTime => ref Projectile.ai[1]; - public override string Texture => "CalamityMod/Items/Weapons/Magic/Vehemenc"; + public override string Texture => "CalamityMod/Items/Weapons/Magic/Vehemence"; public override void SetStaticDefaults() { DisplayName.SetDefault("Vehemence"); diff --git a/Projectiles/Melee/DivineHatchetBoomerang.cs b/Projectiles/Melee/DivineHatchetBoomerang.cs index da92e91b59..0b8044eccb 100644 --- a/Projectiles/Melee/DivineHatchetBoomerang.cs +++ b/Projectiles/Melee/DivineHatchetBoomerang.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee { public class DivineHatchetBoomerang : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Melee/DivineHatchet"; + public override string Texture => "CalamityMod/Items/Weapons/Melee/SeekingScorcher"; private bool hasHitEnemy = false; private static int Lifetime = 300; diff --git a/Projectiles/Melee/FallenPaladinsHammerProj.cs b/Projectiles/Melee/FallenPaladinsHammerProj.cs index 2200feba09..645e59d2a4 100644 --- a/Projectiles/Melee/FallenPaladinsHammerProj.cs +++ b/Projectiles/Melee/FallenPaladinsHammerProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using System; @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee { public class FallenPaladinsHammerProj : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Melee/TruePaladinsHammerMelee"; + public override string Texture => "CalamityMod/Items/Weapons/Melee/FallenPaladinsHammer"; public override void SetStaticDefaults() { diff --git a/Projectiles/Melee/GalaxySmasherHammer.cs b/Projectiles/Melee/GalaxySmasherHammer.cs index 168239179f..5fc0e06ff3 100644 --- a/Projectiles/Melee/GalaxySmasherHammer.cs +++ b/Projectiles/Melee/GalaxySmasherHammer.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee { public class GalaxySmasherHammer : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Melee/GalaxySmasherMelee"; + public override string Texture => "CalamityMod/Items/Weapons/Melee/GalaxySmasher"; private static float RotationIncrement = 0.22f; private static int Lifetime = 240; diff --git a/Projectiles/Melee/ProfanedSwordProj.cs b/Projectiles/Melee/ProfanedSwordProj.cs index e12882b403..2b6c201e17 100644 --- a/Projectiles/Melee/ProfanedSwordProj.cs +++ b/Projectiles/Melee/ProfanedSwordProj.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Melee { public class ProfanedSwordProj : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Melee/ProfanedSword"; + public override string Texture => "CalamityMod/Items/Weapons/Melee/BrimstoneSword"; private int explosionCount = 0; public override void SetStaticDefaults() diff --git a/Projectiles/Melee/PwnagehammerProj.cs b/Projectiles/Melee/PwnagehammerProj.cs index 8c23710dac..d57d5cc981 100644 --- a/Projectiles/Melee/PwnagehammerProj.cs +++ b/Projectiles/Melee/PwnagehammerProj.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Melee { public class PwnagehammerProj : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Melee/PwnagehammerMelee"; + public override string Texture => "CalamityMod/Items/Weapons/Melee/Pwnagehammer"; public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/PwnagehammerSound") { Volume = 0.16f, PitchVariance = 0.16f }; public static readonly SoundStyle HomingSound = new("CalamityMod/Sounds/Item/PwnagehammerHoming") { Volume = 0.3f }; diff --git a/Projectiles/Ranged/StarfleetMK2Gun.cs b/Projectiles/Ranged/StarfleetMK2Gun.cs index 5ff46a8284..dbed31199e 100644 --- a/Projectiles/Ranged/StarfleetMK2Gun.cs +++ b/Projectiles/Ranged/StarfleetMK2Gun.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Ranged { public class StarfleetMK2Gun : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Ranged/StarfleetMK2"; + public override string Texture => "CalamityMod/Items/Weapons/Ranged/Starmada"; public override void SetStaticDefaults() { diff --git a/Projectiles/Rogue/AccretionDisk2.cs b/Projectiles/Rogue/AccretionDisk2.cs index 672d17e72c..49daead8d9 100644 --- a/Projectiles/Rogue/AccretionDisk2.cs +++ b/Projectiles/Rogue/AccretionDisk2.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Projectiles.Rogue { public class AccretionDisk2 : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Rogue/AccretionDisk"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/ElementalDisk"; public override void SetStaticDefaults() { diff --git a/Projectiles/Rogue/AccretionDiskProj.cs b/Projectiles/Rogue/AccretionDiskProj.cs index 5ce80d92d0..d53a0db45b 100644 --- a/Projectiles/Rogue/AccretionDiskProj.cs +++ b/Projectiles/Rogue/AccretionDiskProj.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Rogue { public class AccretionDiskProj : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Rogue/AccretionDisk"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/ElementalDisk"; private int Lifetime = 400; private int ReboundTime = 30; diff --git a/Projectiles/Rogue/AntumbraShardProjectile.cs b/Projectiles/Rogue/AntumbraShardProjectile.cs index 31732c8fc1..83272bdfb4 100644 --- a/Projectiles/Rogue/AntumbraShardProjectile.cs +++ b/Projectiles/Rogue/AntumbraShardProjectile.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Projectiles.Rogue { public class AntumbraShardProjectile : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Rogue/XerocPitchfork"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/ShardofAntumbra"; public override void SetStaticDefaults() { diff --git a/Projectiles/Rogue/DuneHopperProjectile.cs b/Projectiles/Rogue/DuneHopperProjectile.cs index 31a7047485..fdba0d84ba 100644 --- a/Projectiles/Rogue/DuneHopperProjectile.cs +++ b/Projectiles/Rogue/DuneHopperProjectile.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -6,7 +6,7 @@ namespace CalamityMod.Projectiles.Rogue { public class DuneHopperProjectile : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Rogue/DuneHopper"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/WaveSkipper"; public override void SetStaticDefaults() { diff --git a/Projectiles/Rogue/FlameScytheProjectile.cs b/Projectiles/Rogue/FlameScytheProjectile.cs index 1cf6fb0fe4..b71f26e921 100644 --- a/Projectiles/Rogue/FlameScytheProjectile.cs +++ b/Projectiles/Rogue/FlameScytheProjectile.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Rogue { public class FlameScytheProjectile : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Rogue/FlameScythe"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/SubductionSlicer"; public override void SetStaticDefaults() { diff --git a/Projectiles/Rogue/NanoblackMain.cs b/Projectiles/Rogue/NanoblackMain.cs index 228cfd4ae4..d00137691d 100644 --- a/Projectiles/Rogue/NanoblackMain.cs +++ b/Projectiles/Rogue/NanoblackMain.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Rogue { public class NanoblackMain : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Rogue/NanoblackReaperRogue"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/NanoblackReaper"; private const float RotationIncrement = 0.22f; private const int Lifetime = 240; diff --git a/Projectiles/Rogue/NanoblackStealthSplit.cs b/Projectiles/Rogue/NanoblackStealthSplit.cs index 1a11371992..42e3546f63 100644 --- a/Projectiles/Rogue/NanoblackStealthSplit.cs +++ b/Projectiles/Rogue/NanoblackStealthSplit.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Projectiles.Rogue { public class NanoblackStealthSplit : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Rogue/NanoblackReaperRogue"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/NanoblackReaper"; private static int Lifetime = 300; private static float MaxSpeed = 40f; diff --git a/Projectiles/Typeless/AeroExplosive.cs b/Projectiles/Typeless/AeroExplosive.cs index ec5467fa2c..8a97f870e7 100644 --- a/Projectiles/Typeless/AeroExplosive.cs +++ b/Projectiles/Typeless/AeroExplosive.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Typeless { public class AeroExplosive : ModProjectile { - public override string Texture => "CalamityMod/Items/Weapons/Typeless/AeroDynamite"; + public override string Texture => "CalamityMod/Items/Weapons/Typeless/Skynamite"; public override void SetStaticDefaults() { diff --git a/Projectiles/Typeless/TerminusHoldout.cs b/Projectiles/Typeless/TerminusHoldout.cs index dfed86817b..b9d8479e49 100644 --- a/Projectiles/Typeless/TerminusHoldout.cs +++ b/Projectiles/Typeless/TerminusHoldout.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Typeless public Player Owner => Main.player[Projectile.owner]; public ref float Time => ref Projectile.ai[0]; public const int Lifetime = 300; - public override string Texture => "CalamityMod/Items/SummonItems/BossRush"; + public override string Texture => "CalamityMod/Items/SummonItems/Terminus"; public override void SetDefaults() { Projectile.width = 50; diff --git a/Projectiles/Typeless/TrueBattleSpawn.cs b/Projectiles/Typeless/TrueBattleSpawn.cs index 04b6b1c462..4582e1bca6 100644 --- a/Projectiles/Typeless/TrueBattleSpawn.cs +++ b/Projectiles/Typeless/TrueBattleSpawn.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Typeless if (Projectile.ai[1] >= 0) { - NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); + NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType()); Projectile.ai[1] = -30; } } diff --git a/Projectiles/Typeless/YanmeisKnifeSlash.cs b/Projectiles/Typeless/YanmeisKnifeSlash.cs index 4d11042c92..d4e14ef5b7 100644 --- a/Projectiles/Typeless/YanmeisKnifeSlash.cs +++ b/Projectiles/Typeless/YanmeisKnifeSlash.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Projectiles.Typeless { bool validBoss = npc.boss && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() - && npc.type != ModContent.NPCType() + && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() && npc.type != ModContent.NPCType() diff --git a/Scenes/AEWBackgroundScene.cs b/Scenes/AEWBackgroundScene.cs index 8eab961383..cc93756223 100644 --- a/Scenes/AEWBackgroundScene.cs +++ b/Scenes/AEWBackgroundScene.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Systems { public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; - public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); + public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); public override void SpecialVisuals(Player player) { diff --git a/Scenes/CalamitasCloneBackgroundScene.cs b/Scenes/CalamitasCloneBackgroundScene.cs index f2e40832e2..c7f72c6291 100644 --- a/Scenes/CalamitasCloneBackgroundScene.cs +++ b/Scenes/CalamitasCloneBackgroundScene.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Systems { public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium; - public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); + public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); public override void SpecialVisuals(Player player) { diff --git a/Systems/WorldMiscUpdateSystem.cs b/Systems/WorldMiscUpdateSystem.cs index e7bddbcd1c..5722837ed7 100644 --- a/Systems/WorldMiscUpdateSystem.cs +++ b/Systems/WorldMiscUpdateSystem.cs @@ -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/Tiles/Astral/AstralBeacon.cs b/Tiles/Astral/AstralBeacon.cs index 51fbbd1eac..af6c5918f2 100644 --- a/Tiles/Astral/AstralBeacon.cs +++ b/Tiles/Astral/AstralBeacon.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Tiles.Astral !Main.LocalPlayer.HasItem(ModContent.ItemType())) return true; - if (NPC.AnyNPCs(ModContent.NPCType()) || BossRushEvent.BossRushActive) + if (NPC.AnyNPCs(ModContent.NPCType()) || BossRushEvent.BossRushActive) return true; if (CalamityUtils.CountProjectiles(ModContent.ProjectileType()) > 0) diff --git a/UI/BossHealthBarManager.cs b/UI/BossHealthBarManager.cs index b98d0217af..03556e6940 100644 --- a/UI/BossHealthBarManager.cs +++ b/UI/BossHealthBarManager.cs @@ -189,8 +189,8 @@ namespace CalamityMod.UI NPCType(), NPCType(), NPCType(), - NPCType(), - NPCType(), + NPCType(), + NPCType(), NPCType(), NPCType(), NPCType(), @@ -256,8 +256,8 @@ namespace CalamityMod.UI NPCType(), NPCType(), NPCType(), - NPCType(), //Clone's brothers - NPCType(), + NPCType(), //Clone's brothers + NPCType(), // Post-ML Modded. NPCType(), diff --git a/UI/SpeedrunTimerUI.cs b/UI/SpeedrunTimerUI.cs index b0bec532bf..13687a1c15 100644 --- a/UI/SpeedrunTimerUI.cs +++ b/UI/SpeedrunTimerUI.cs @@ -94,7 +94,7 @@ namespace CalamityMod.UI 1 => TextureAssets.NpcHeadBoss[7].Value, // King Slime 2 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 3 => TextureAssets.NpcHeadBoss[1].Value, // Eye of Cthulhu - 4 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, + 4 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 5 => TextureAssets.NpcHeadBoss[2].Value, // Eater of Worlds 6 => TextureAssets.NpcHeadBoss[23].Value, // Brain of Cthulhu 7 => ModContent.Request("CalamityMod/NPCs/HiveMind/HiveMindP2_Head_Boss").Value, @@ -109,7 +109,7 @@ namespace CalamityMod.UI 16 => TextureAssets.NpcHeadBoss[25].Value, // The Destroyer 17 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 18 => TextureAssets.NpcHeadBoss[18].Value, // Skeletron Prime - 19 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, + 19 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 20 => TextureAssets.NpcHeadBoss[12].Value, // Plantera 21 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 22 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, @@ -118,7 +118,7 @@ namespace CalamityMod.UI 25 => TextureAssets.NpcHeadBoss[4].Value, // Duke Fishron 26 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 27 => TextureAssets.NpcHeadBoss[31].Value, // Lunatic Cultist - 28 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, + 28 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 29 => TextureAssets.NpcHeadBoss[8].Value, // Moon Lord 30 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, 31 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType()]].Value, @@ -132,7 +132,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/MiscUtils.cs b/Utilities/MiscUtils.cs index 305de5815d..b10627353f 100644 --- a/Utilities/MiscUtils.cs +++ b/Utilities/MiscUtils.cs @@ -948,7 +948,7 @@ namespace CalamityMod npc = ModContent.NPCType(); break; case 96: - npc = ModContent.NPCType(); + npc = ModContent.NPCType(); break; case 97: npc = ModContent.NPCType(); diff --git a/Utilities/NPCDebuffs.cs b/Utilities/NPCDebuffs.cs index 58f7293fae..89c585ef81 100644 --- a/Utilities/NPCDebuffs.cs +++ b/Utilities/NPCDebuffs.cs @@ -92,7 +92,7 @@ namespace CalamityMod { ModContent.NPCType(), new Tuple(false, CalamityMod.slimeEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.iceEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.iceEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.iceEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, @@ -102,9 +102,9 @@ 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) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, { NPCID.Plantera, new Tuple(false, new int[] { BuffID.Venom }) }, @@ -124,9 +124,9 @@ namespace CalamityMod { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.astralEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.astralEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.astralEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.astralEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.astralEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.astralEnemyImmunities) }, { NPCID.MoonLordCore, new Tuple(false, new int[] { ModContent.BuffType() }) }, { NPCID.MoonLordHand, new Tuple(false, new int[] { ModContent.BuffType() }) }, @@ -186,10 +186,10 @@ namespace CalamityMod { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.abyssEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(true, new int[] { }) }, - { ModContent.NPCType(), new Tuple(true, new int[] { }) }, - { ModContent.NPCType(), new Tuple(true, new int[] { }) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.abyssEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(true, new int[] { }) }, + { ModContent.NPCType(), new Tuple(true, new int[] { }) }, + { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, @@ -255,7 +255,7 @@ namespace CalamityMod { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(true, new int[] { }) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.abyssEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.abyssEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.abyssEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.cragEnemyImmunities) },