From e9a1ab7afe720abd99892a2de5c90b228f6a4826 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:28:56 -0400 Subject: [PATCH 01/24] brimlance now gets melee speed boosts --- Items/Weapons/Melee/Brimlance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/Brimlance.cs b/Items/Weapons/Melee/Brimlance.cs index 5c64aa424d..37f1be2241 100644 --- a/Items/Weapons/Melee/Brimlance.cs +++ b/Items/Weapons/Melee/Brimlance.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 56; Item.damage = 58; - Item.DamageType = TrueMeleeNoSpeedDamageClass.Instance; + Item.DamageType = TrueMeleeDamageClass.Instance; Item.noMelee = true; Item.useTurn = true; Item.noUseGraphic = true; From 49e1b6b7b60d05f2c03a6c1bb186e4d434e17783 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:30:10 -0400 Subject: [PATCH 02/24] undertaker now can point blank fire --- Items/CalamityGlobalItemTweaks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 47dc13d52e..8440a5c949 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -500,7 +500,7 @@ namespace CalamityMod.Items { ItemID.TheEyeOfCthulhu, autoReuse }, { ItemID.TheHorsemansBlade, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(95)) }, { ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) }, - { ItemID.TheUndertaker, Do(AutoReuse, UseExact(21)) }, + { ItemID.TheUndertaker, Do(AutoReuse, UseExact(21), pointBlank) }, { ItemID.ThornChakram, Do(DamageExact(32)) }, { ItemID.ThornWhip, autoReuse }, { ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear From 780c1a8d5f849fcf2a64b5ef571275b78c60c0e0 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:30:57 -0400 Subject: [PATCH 03/24] boss effects no longer disable teleporters --- Buffs/StatBuffs/BossEffects.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Buffs/StatBuffs/BossEffects.cs b/Buffs/StatBuffs/BossEffects.cs index b29f9dc14d..9bf16179c9 100644 --- a/Buffs/StatBuffs/BossEffects.cs +++ b/Buffs/StatBuffs/BossEffects.cs @@ -30,7 +30,6 @@ namespace CalamityMod.Buffs.StatBuffs sb.Append("The nearby boss is:\n"); if (CalamityConfig.Instance.BossZen) sb.Append("Greatly reducing enemy spawn rates\n"); - sb.Append("Disabling teleportation effects\n"); sb.Append("Increasing Nurse healing cost by 400%\n"); sb.Append("Disabling Target and Super Dummy hitboxes"); From 32fc8fc7fcb1ca90782b1d10de860e4abfe156e0 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:36:58 -0400 Subject: [PATCH 04/24] fixed ty painting not dropping from vanilla bags --- Items/CalamityGlobalItemLoot.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index 4ee35ad5e9..212b7e5fe2 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Materials; using CalamityMod.Items.PermanentBoosters; +using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Potions; using CalamityMod.Items.Weapons.Melee; @@ -37,12 +38,14 @@ namespace CalamityMod.Items case ItemID.KingSlimeBossBag: loot.Add(new CommonDrop(ModContent.ItemType(), 10)); // 10% Crown Jewel loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.EyeOfCthulhuBossBag: loot.Add(ModContent.ItemType(), DropHelper.BagWeaponDropRateInt); // 33% Deathstare Rod loot.Add(ModContent.ItemType(), 10); // 10% Teardrop Cleaver loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; // On Rev+, Eater of Worlds segments don't drop partial loot. As such, the bag needs to drop all materials. @@ -53,6 +56,7 @@ namespace CalamityMod.Items eowRevLCR.Add(ItemID.DemoniteOre, 1, 120, 240); // 100% 120-240 Demonite Ore eowRevLCR.Add(ItemID.ShadowScale, 1, 60, 120); // 100% 60-120 Shadow Scale loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; @@ -64,6 +68,7 @@ namespace CalamityMod.Items bocRevLCR.Add(ItemID.CrimtaneOre, 1, 100, 180); // 100% 100-180 Crimtane Ore bocRevLCR.Add(ItemID.TissueSample, 1, 60, 120); // 100% 60-120 Tissue Sample loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.DeerclopsBossBag: @@ -77,6 +82,7 @@ namespace CalamityMod.Items }; loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, deerclopsWeapons)); loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.QueenBeeBossBag: @@ -92,6 +98,7 @@ namespace CalamityMod.Items loot.Add(ItemID.Stinger, 1, 8, 12); // 100% 8-12 Stinger loot.Add(ModContent.ItemType(), 1, 50, 75); // 100% 50-75 Hardened Honeycomb loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.WallOfFleshBossBag: @@ -120,17 +127,20 @@ namespace CalamityMod.Items }; loot.Add(DropHelper.CalamityStyle(new Fraction(1, 4), emblems)); // Emblems remain 25% loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.QueenSlimeBossBag: loot.Add(ItemID.SoulofLight, 1, 15, 20); // 100% 15-20 Soul of Light loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.DestroyerBossBag: loot.Remove(FindHallowedBars(loot)); loot.AddIf(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 20, 35); loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.TwinsBossBag: @@ -138,12 +148,14 @@ namespace CalamityMod.Items loot.AddIf(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 20, 35); loot.Add(ModContent.ItemType(), 10); // 10% Arbalest loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.SkeletronPrimeBossBag: loot.Remove(FindHallowedBars(loot)); loot.AddIf(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 20, 35); loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.PlanteraBossBag: @@ -163,6 +175,7 @@ namespace CalamityMod.Items loot.Add(ModContent.ItemType(), DropHelper.BagWeaponDropRateFraction); loot.Add(ModContent.ItemType(), 1, 30, 35); loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.GolemBossBag: @@ -181,6 +194,7 @@ namespace CalamityMod.Items loot.Add(ModContent.ItemType(), 10); // 10% Aegis Blade loot.Add(ModContent.ItemType(), 1, 8, 13); // 100% 8-13 Essence of Sunlight loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.BossBagBetsy: @@ -210,6 +224,7 @@ namespace CalamityMod.Items loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, dukeItems)); loot.Add(ModContent.ItemType(), 10); // 10% Briny Baron loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.FairyQueenBossBag: @@ -226,6 +241,7 @@ namespace CalamityMod.Items }; loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, empressItems)); loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); break; case ItemID.MoonLordBossBag: @@ -245,6 +261,7 @@ namespace CalamityMod.Items }; loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, moonLordWeapons)); loot.AddRevBagAccessories(); + loot.Add(ModContent.ItemType(), ThankYouPainting.DropInt); // The Celestial Onion only drops if the player hasn't used one. loot.AddIf((info) => !info.player.Calamity().extraAccessoryML, ModContent.ItemType()); From 7b51434a9b0bfedf9cdd784b9adf9d5d9dabef5a Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:39:30 -0400 Subject: [PATCH 05/24] fixed eow painting drop quirk --- NPCs/CalamityGlobalNPCLoot.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index aca78636b5..b7a6fc97b2 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -860,14 +860,12 @@ namespace CalamityMod.NPCs break; case NPCID.EaterofWorldsHead: - // Expert+ drops are also available on Normal + // Expert+ drops are also available on Normal, also stuff that would be in the bag otherwise LeadingConditionRule EoWKill = new(DropHelper.If((info) => info.npc.boss)); EoWKill.Add(DropHelper.PerPlayer(ItemID.WormScarf)); + EoWKill.Add(ModContent.ItemType(), ThankYouPainting.DropInt); npcLoot.AddNormalOnly(EoWKill); - // Would be in the bag otherwise - npcLoot.AddIf((info) => info.npc.boss, ModContent.ItemType(), ThankYouPainting.DropInt); - // Master items drop in Revengeance rev.AddIf((info) => info.npc.boss, ItemID.EaterofWorldsMasterTrophy); rev.AddIf((info) => info.npc.boss, ItemID.EaterOfWorldsPetItem, 4); From 0ed1af824ebc795717236a0137b89b06a5464b63 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 18:40:09 -0400 Subject: [PATCH 06/24] commented out beetle might bufftip changes --- Buffs/CalamityGlobalBuff.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index f0608ffc31..4d64a6cd28 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -135,7 +135,7 @@ namespace CalamityMod.Buffs tip = "22.5% increased damage"; break; - case BuffID.BeetleMight1: + /*case BuffID.BeetleMight1: tip = "Melee damage increased by 10%"; break; @@ -145,7 +145,7 @@ namespace CalamityMod.Buffs case BuffID.BeetleMight3: tip = "Melee damage increased by 30%"; - break; + break;*/ case BuffID.BeetleEndurance1: tip = "Damage taken reduced by 10%"; From 6c8abd4fe3d9f4de09bcbeb2a24b6ad25595d1ae Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 19:02:37 -0400 Subject: [PATCH 07/24] fixed fishron wings? and deerclops weapons not getting blocked properly in classic --- NPCs/CalamityGlobalNPCLoot.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index b7a6fc97b2..0cd01d5351 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -916,7 +916,7 @@ namespace CalamityMod.NPCs if (notExpert is LeadingConditionRule LCR_NotExpert) { LCR_NotExpert.ChainedRules.RemoveAll((chainAttempt) => - chainAttempt is Chains.TryIfSucceeded c && c.RuleToChain is OneFromOptionsNotScaledWithLuckDropRule weapons && weapons.dropIds[0] == ItemID.LucyTheAxe); + chainAttempt is Chains.TryIfSucceeded c && c.RuleToChain is OneFromOptionsNotScaledWithLuckDropRule weapons && weapons.dropIds[0] == ItemID.PewMaticHorn); // Define a replacement rule which drops the weapons Calamity style. var deerWeapons = new int[] @@ -1353,11 +1353,11 @@ namespace CalamityMod.NPCs ItemID.FishronWings, }; LCR_NotExpert.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, dukeItems)); - } - // Remove the vanilla loot rule for Fishron Wings because it's part of the Calamity Style set. - dukeRootRules.RemoveAll((rule) => - rule is ItemDropWithConditionRule conditionalRule && conditionalRule.condition is Conditions.NotExpert && conditionalRule.itemId == ItemID.FishronWings); + // Remove the vanilla loot rule for Fishron Wings because it's part of the Calamity Style set. + dukeRootRules.RemoveAll((rule) => + rule is ItemDropWithConditionRule conditionalRule && conditionalRule.condition is Conditions.NotExpert && conditionalRule.itemId == ItemID.FishronWings); + } } catch (ArgumentNullException) { } From 985200d75a7c07dbd3a9ea587d530396e2e7d933 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 19:12:50 -0400 Subject: [PATCH 08/24] fixed teal mushroom not growing with bloom stone or plaguebringer pistons --- Items/Accessories/BloomStone.cs | 4 ++-- Items/Armor/Plaguebringer/PlaguebringerPistons.cs | 4 ++-- Items/CalamityGlobalItemTweaks.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Accessories/BloomStone.cs b/Items/Accessories/BloomStone.cs index 997a2d8af2..4842f01bb2 100644 --- a/Items/Accessories/BloomStone.cs +++ b/Items/Accessories/BloomStone.cs @@ -56,9 +56,9 @@ namespace CalamityMod.Items.Accessories { walkTile.Get().HasTile = true; walkTile.TileType = TileID.DyePlants; - walkTile.TileFrameX = (short)(34 * Main.rand.Next(1, 13)); + walkTile.TileFrameX = (short)(34 * Main.rand.Next(0, 13)); while (walkTile.TileFrameX == 144) - walkTile.TileFrameX = (short)(34 * Main.rand.Next(1, 13)); + walkTile.TileFrameX = (short)(34 * Main.rand.Next(0, 13)); } if (Main.netMode == NetmodeID.MultiplayerClient) diff --git a/Items/Armor/Plaguebringer/PlaguebringerPistons.cs b/Items/Armor/Plaguebringer/PlaguebringerPistons.cs index 6bba4fc251..b72e0d9efd 100644 --- a/Items/Armor/Plaguebringer/PlaguebringerPistons.cs +++ b/Items/Armor/Plaguebringer/PlaguebringerPistons.cs @@ -56,10 +56,10 @@ namespace CalamityMod.Items.Armor.Plaguebringer { tile.Get().HasTile = true; tile.TileType = TileID.DyePlants; - tile.TileFrameX = (short)(34 * Main.rand.Next(1, 13)); + tile.TileFrameX = (short)(34 * Main.rand.Next(0, 13)); while (tile.TileFrameX == 144) { - tile.TileFrameX = (short)(34 * Main.rand.Next(1, 13)); + tile.TileFrameX = (short)(34 * Main.rand.Next(0, 13)); } } if (Main.netMode == NetmodeID.MultiplayerClient) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 8440a5c949..d4a6227d7b 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -500,7 +500,7 @@ namespace CalamityMod.Items { ItemID.TheEyeOfCthulhu, autoReuse }, { ItemID.TheHorsemansBlade, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(95)) }, { ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) }, - { ItemID.TheUndertaker, Do(AutoReuse, UseExact(21), pointBlank) }, + { ItemID.TheUndertaker, Do(PointBlank, AutoReuse, UseExact(21)) }, { ItemID.ThornChakram, Do(DamageExact(32)) }, { ItemID.ThornWhip, autoReuse }, { ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear From 1f729ca5bfecdce9ac8574d1c2d90dbef29add68 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 19:28:12 -0400 Subject: [PATCH 09/24] well fed buff tips now reflect the nerf --- Buffs/CalamityGlobalBuff.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index 4d64a6cd28..591a1f8241 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -188,6 +188,18 @@ namespace CalamityMod.Buffs case BuffID.Daybreak: tip = "Incinerated by solar rays"; break; + + case BuffID.WellFed: + tip = "Minor improvements to all stats"; + break; + + case BuffID.WellFed2: + tip = "Medium improvements to all stats"; + break; + + case BuffID.WellFed3: + tip = "Major improvements to all stats"; + break; } } } From df68101c2bf9e281efdee7c4be827a1fb88c8941 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 22:54:54 -0400 Subject: [PATCH 10/24] removed seraphim resist comments --- Balancing/BalancingChangesManager.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 9e40b1bf48..a84756aafb 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -274,9 +274,6 @@ namespace CalamityMod.Balancing // 15% resist to Enforcer projectiles. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType())))); - // 10% resist to Seraphim lasers - // NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.9f, ProjectileType())))); - #endregion Ares #region Artemis and Apollo @@ -293,9 +290,6 @@ namespace CalamityMod.Balancing #region Thanatos - // 50% resist to Seraphim lasers (what the actual fuck?). - // NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); - // 85% resist to Dynamic Pursuer (the whole thing lol). NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.15f, ProjectileType(), ProjectileType(), ProjectileType())))); @@ -373,9 +367,6 @@ namespace CalamityMod.Balancing // 20% resist to Executioner's Blade stealth strikes. NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.8f, ProjectileType()))); - // 15% resist to Seraphim lasers. - // NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.85f, ProjectileType()))); - #endregion #region Supreme Calamitas / Soul Seekers From da31efee1af9518000f6955e38eaecb7f8f00855 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 14 Oct 2022 23:07:02 -0400 Subject: [PATCH 11/24] glove of recklessness nerf --- Items/Accessories/GloveOfRecklessness.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Accessories/GloveOfRecklessness.cs b/Items/Accessories/GloveOfRecklessness.cs index 282e9e5180..0bf8509182 100644 --- a/Items/Accessories/GloveOfRecklessness.cs +++ b/Items/Accessories/GloveOfRecklessness.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { SacrificeTotal = 1; DisplayName.SetDefault("Glove of Recklessness"); - Tooltip.SetDefault("Increases rogue attack speed by 15% but decreases damage by 10%\n" + + Tooltip.SetDefault("Increases rogue attack speed by 15% but decreases damage by 12%\n" + "15% increased stealth regeneration\n" + "Adds inaccuracy to rogue weapons"); } @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories modPlayer.gloveOfRecklessness = true; modPlayer.stealthGenStandstill += 0.15f; modPlayer.stealthGenMoving += 0.15f; - player.GetDamage() -= 0.1f; + player.GetDamage() -= 0.12f; player.GetAttackSpeed() += 0.15f; } } From 677162285cf485ca5e628e956b7187be6a7d6646 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 15 Oct 2022 07:24:00 -0500 Subject: [PATCH 12/24] Boss rush reorder based on progression --- Events/BossRushEvent.cs | 275 ++++++++++++++++++++-------------------- 1 file changed, 139 insertions(+), 136 deletions(-) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index fab4a3f01f..9a761951e9 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -134,66 +134,9 @@ namespace CalamityMod.Events // TODO -- Multiple different lists might be ideal for this at some point instead of a god-struct? This is a lot of parameters. Bosses = new List() { - new Boss(NPCID.QueenBee), - - new Boss(NPCID.BrainofCthulhu, permittedNPCs: NPCID.Creeper), - new Boss(NPCID.KingSlime, permittedNPCs: new int[] { NPCID.BlueSlime, NPCID.YellowSlime, NPCID.PurpleSlime, NPCID.RedSlime, NPCID.GreenSlime, NPCID.RedSlime, NPCID.IceSlime, NPCID.UmbrellaSlime, NPCID.Pinky, NPCID.SlimeSpiked, NPCID.RainbowSlime, ModContent.NPCType() }), - new Boss(NPCID.EyeofCthulhu, TimeChangeContext.Night, permittedNPCs: NPCID.ServantofCthulhu), - - new Boss(NPCID.SkeletronPrime, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.PrimeCannon, NPCID.PrimeSaw, NPCID.PrimeVice, NPCID.PrimeLaser, NPCID.Probe }), - - new Boss(NPCID.Golem, TimeChangeContext.Day, type => - { - int shittyStatueBoss = NPC.NewNPC(Source, (int)(Main.player[ClosestPlayerToWorldCenter].position.X + Main.rand.Next(-100, 101)), (int)(Main.player[ClosestPlayerToWorldCenter].position.Y - 400f), type, 1); - Main.npc[shittyStatueBoss].timeLeft *= 20; - CalamityUtils.BossAwakenMessage(shittyStatueBoss); - }, permittedNPCs: new int[] { NPCID.GolemFistLeft, NPCID.GolemFistRight, NPCID.GolemHead, NPCID.GolemHeadFree }), - - new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), - - new Boss(NPCID.EaterofWorldsHead, permittedNPCs: new int[] { NPCID.EaterofWorldsBody, NPCID.EaterofWorldsTail, NPCID.VileSpit }), - - new Boss(ModContent.NPCType(), TimeChangeContext.Night, permittedNPCs: ModContent.NPCType()), - - new Boss(NPCID.TheDestroyer, TimeChangeContext.Night, specialSpawnCountdown: 300, permittedNPCs: new int[] { NPCID.TheDestroyerBody, NPCID.TheDestroyerTail, NPCID.Probe }), - - new Boss(NPCID.Spazmatism, TimeChangeContext.Night, type => - { - NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Spazmatism); - NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Retinazer); - }, permittedNPCs: NPCID.Retinazer), - - new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), NPCID.Spazmatism, NPCID.Retinazer }), - - new Boss(NPCID.WallofFlesh, spawnContext: type => - { - Player player = Main.player[ClosestPlayerToWorldCenter]; - NPC.SpawnWOF(player.position); - }, permittedNPCs: new int[] { NPCID.WallofFleshEye, NPCID.LeechHead, NPCID.LeechBody, NPCID.LeechTail, NPCID.TheHungry, NPCID.TheHungryII }), - - new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - - new Boss(NPCID.SkeletronHead, TimeChangeContext.Night, type => - { - Player player = Main.player[ClosestPlayerToWorldCenter]; - int sans = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1); - Main.npc[sans].timeLeft *= 20; - CalamityUtils.BossAwakenMessage(sans); - }, permittedNPCs: NPCID.SkeletronHand), - - new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => - { - Player player = Main.player[ClosestPlayerToWorldCenter]; - - SoundEngine.PlaySound(RuneofKos.StormSound, player.Center); - NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); - }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), }), - - new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), spawnContext: type => { NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType()); @@ -202,15 +145,7 @@ namespace CalamityMod.Events }, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - new Boss(NPCID.CultistBoss, spawnContext: type => - { - Player player = Main.player[ClosestPlayerToWorldCenter]; - int doctorLooneyTunes = NPC.NewNPC(Source, (int)player.Center.X, (int)player.Center.Y - 400, type, 1); - Main.npc[doctorLooneyTunes].direction = Main.npc[doctorLooneyTunes].spriteDirection = Math.Sign(player.Center.X - player.Center.X - 90f); - Main.npc[doctorLooneyTunes].timeLeft *= 20; - CalamityUtils.BossAwakenMessage(doctorLooneyTunes); - }, 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(NPCID.EyeofCthulhu, TimeChangeContext.Night, permittedNPCs: NPCID.ServantofCthulhu), new Boss(ModContent.NPCType(), spawnContext: type => { @@ -231,31 +166,83 @@ namespace CalamityMod.Events CalamityUtils.BossAwakenMessage(thePefectOne); }, specialSpawnCountdown: 300, permittedNPCs: ModContent.NPCType()), - new Boss(NPCID.Plantera, permittedNPCs: new int[] { NPCID.PlanterasTentacle, NPCID.PlanterasHook, NPCID.Spore }), + new Boss(NPCID.EaterofWorldsHead, permittedNPCs: new int[] { NPCID.EaterofWorldsBody, NPCID.EaterofWorldsTail, NPCID.VileSpit }), - new Boss(ModContent.NPCType(), spawnContext: type => - { - Player player = Main.player[ClosestPlayerToWorldCenter]; + new Boss(NPCID.BrainofCthulhu, permittedNPCs: NPCID.Creeper), - SoundEngine.PlaySound(RuneofKos.CVSound, player.Center); - NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); - }, usesSpecialSound: true, permittedNPCs: ModContent.NPCType()), + new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() ,ModContent.NPCType() }), + new Boss(NPCID.QueenBee), + + new Boss(NPCID.SkeletronHead, TimeChangeContext.Night, type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + int sans = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1); + Main.npc[sans].timeLeft *= 20; + CalamityUtils.BossAwakenMessage(sans); + }, permittedNPCs: NPCID.SkeletronHand), + + new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), + ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + + new Boss(NPCID.WallofFlesh, spawnContext: type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + NPC.SpawnWOF(player.position); + }, permittedNPCs: new int[] { NPCID.WallofFleshEye, NPCID.LeechHead, NPCID.LeechBody, NPCID.LeechTail, NPCID.TheHungry, NPCID.TheHungryII }), + new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), + new Boss(NPCID.Spazmatism, TimeChangeContext.Night, type => + { + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Spazmatism); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Retinazer); + }, permittedNPCs: NPCID.Retinazer), + new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), - new Boss(ModContent.NPCType(), spawnContext: type => + new Boss(NPCID.TheDestroyer, TimeChangeContext.Night, specialSpawnCountdown: 300, permittedNPCs: new int[] { NPCID.TheDestroyerBody, NPCID.TheDestroyerTail, NPCID.Probe }), + + new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + + new Boss(NPCID.SkeletronPrime, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.PrimeCannon, NPCID.PrimeSaw, NPCID.PrimeVice, NPCID.PrimeLaser, NPCID.Probe }), + + new Boss(ModContent.NPCType(), TimeChangeContext.Night, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), + ModContent.NPCType() }), + + new Boss(NPCID.Plantera, permittedNPCs: new int[] { NPCID.PlanterasTentacle, NPCID.PlanterasHook, NPCID.Spore }), + + new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), + ModContent.NPCType(), NPCID.DetonatingBubble}), + + new Boss(ModContent.NPCType(), TimeChangeContext.Night, permittedNPCs: ModContent.NPCType()), + + new Boss(NPCID.Golem, TimeChangeContext.Day, type => + { + int shittyStatueBoss = NPC.NewNPC(Source, (int)(Main.player[ClosestPlayerToWorldCenter].position.X + Main.rand.Next(-100, 101)), (int)(Main.player[ClosestPlayerToWorldCenter].position.Y - 400f), type, 1); + Main.npc[shittyStatueBoss].timeLeft *= 20; + CalamityUtils.BossAwakenMessage(shittyStatueBoss); + }, permittedNPCs: new int[] { NPCID.GolemFistLeft, NPCID.GolemFistRight, NPCID.GolemHead, NPCID.GolemHeadFree }), + + new Boss(ModContent.NPCType(), spawnContext: type => { Player player = Main.player[ClosestPlayerToWorldCenter]; - SoundEngine.PlaySound(RuneofKos.SignutSound, player.Center); + SoundEngine.PlaySound(Abombination.UseSound, 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(NPCID.DukeFishron, spawnContext: type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + int dukeFishron = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1); + Main.npc[dukeFishron].timeLeft *= 20; + CalamityUtils.BossAwakenMessage(dukeFishron); + }, permittedNPCs: new int[] { NPCID.DetonatingBubble, NPCID.Sharkron, NPCID.Sharkron2 }), new Boss(ModContent.NPCType(), spawnContext: type => { @@ -268,19 +255,15 @@ namespace CalamityMod.Events }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - new Boss(NPCID.DukeFishron, spawnContext: type => + new Boss(NPCID.CultistBoss, spawnContext: type => { Player player = Main.player[ClosestPlayerToWorldCenter]; - int dukeFishron = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1); - Main.npc[dukeFishron].timeLeft *= 20; - CalamityUtils.BossAwakenMessage(dukeFishron); - }, permittedNPCs: new int[] { NPCID.DetonatingBubble, NPCID.Sharkron, NPCID.Sharkron2 }), - - new Boss(NPCID.MoonLordCore, spawnContext: type => - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierThreeEndText2", XerocTextColor); - NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); - }, permittedNPCs: new int[] { NPCID.MoonLordLeechBlob, NPCID.MoonLordHand, NPCID.MoonLordHead, NPCID.MoonLordFreeEye }), + int doctorLooneyTunes = NPC.NewNPC(Source, (int)player.Center.X, (int)player.Center.Y - 400, type, 1); + Main.npc[doctorLooneyTunes].direction = Main.npc[doctorLooneyTunes].spriteDirection = Math.Sign(player.Center.X - player.Center.X - 90f); + Main.npc[doctorLooneyTunes].timeLeft *= 20; + CalamityUtils.BossAwakenMessage(doctorLooneyTunes); + }, 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(), TimeChangeContext.Night, type => { @@ -290,39 +273,18 @@ namespace CalamityMod.Events NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => + new Boss(NPCID.MoonLordCore, spawnContext: type => { - Player player = Main.player[ClosestPlayerToWorldCenter]; - - SoundEngine.PlaySound(Polterghast.SpawnSound, player.Center); NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, permittedNPCs: new int[] { NPCID.MoonLordLeechBlob, NPCID.MoonLordHand, NPCID.MoonLordHead, NPCID.MoonLordFreeEye }), - }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - - new Boss(ModContent.NPCType(), spawnContext: type => + new Boss(ModContent.NPCType(), TimeChangeContext.Day, spawnContext: type => { - Player player = Main.player[ClosestPlayerToWorldCenter]; - - SoundEngine.PlaySound(Abombination.UseSound, player.Center); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierThreeEndText2", XerocTextColor); NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); - }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), 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(), - ModContent.NPCType() }), - - new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), - ModContent.NPCType(), NPCID.DetonatingBubble}), - - new Boss(ModContent.NPCType(), spawnContext: type => - { - Player player = Main.player[ClosestPlayerToWorldCenter]; - int boomerDuke = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1); - Main.npc[boomerDuke].timeLeft *= 20; - CalamityUtils.BossAwakenMessage(boomerDuke); - }, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), - - new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), - ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), NPCID.Spazmatism, NPCID.Retinazer }), new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => { @@ -334,9 +296,66 @@ namespace CalamityMod.Events CalamityUtils.BossAwakenMessage(prov); }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), spawnContext: type => + new Boss(ModContent.NPCType(), spawnContext: type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(RuneofKos.CVSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true, permittedNPCs: ModContent.NPCType()), + + new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(RuneofKos.StormSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), }), + + new Boss(ModContent.NPCType(), spawnContext: type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(RuneofKos.SignutSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), + + new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => { CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierFourEndText2", XerocTextColor); + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(Polterghast.SpawnSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + + new Boss(ModContent.NPCType(), spawnContext: type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + int boomerDuke = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1); + Main.npc[boomerDuke].timeLeft *= 20; + CalamityUtils.BossAwakenMessage(boomerDuke); + }, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), + + new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(DevourerofGodsHead.SpawnSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), + + new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(Yharon.FireSound, player.Center); + NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); + }, usesSpecialSound: true), + + new Boss(ModContent.NPCType(), spawnContext: type => + { for (int playerIndex = 0; playerIndex < Main.maxPlayers; playerIndex++) { if (Main.player[playerIndex].active) @@ -350,47 +369,31 @@ namespace CalamityMod.Events CalamityUtils.SpawnBossBetter(Main.player[ClosestPlayerToWorldCenter].Top - new Vector2(42f, 84f), type); }, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - - new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => - { - Player player = Main.player[ClosestPlayerToWorldCenter]; - - SoundEngine.PlaySound(Yharon.FireSound, player.Center); - NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); - }, usesSpecialSound: true), - - new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => - { - Player player = Main.player[ClosestPlayerToWorldCenter]; - - SoundEngine.PlaySound(DevourerofGodsHead.SpawnSound, player.Center); - NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); - }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }) }; BossDeathEffects = new Dictionary>() { - [NPCID.TheDestroyer] = npc => + [NPCID.SkeletronHead] = npc => { CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierOneEndText", XerocTextColor); CreateTierAnimation(2); }, - [NPCID.CultistBoss] = npc => + [NPCID.Plantera] = npc => { CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierTwoEndText", XerocTextColor); CreateTierAnimation(3); }, - [NPCID.DukeFishron] = npc => + [NPCID.MoonLordCore] = npc => { CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierThreeEndText", XerocTextColor); CreateTierAnimation(4); }, - [ModContent.NPCType()] = npc => + [ModContent.NPCType()] = npc => { CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierFourEndText", XerocTextColor); CreateTierAnimation(5); }, - [ModContent.NPCType()] = npc => + [ModContent.NPCType()] = npc => { CalamityUtils.KillAllHostileProjectiles(); HostileProjectileKillCounter = 3; From 3cb1a39ca38b5a62be40d71cda0cba0b7b34af31 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 13:08:48 -0400 Subject: [PATCH 13/24] storm weaver no longer makes it rain in boss rush --- NPCs/StormWeaver/StormWeaverHead.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index 309356401c..4890c22d55 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -167,7 +167,7 @@ namespace CalamityMod.NPCs.StormWeaver bool revenge = CalamityWorld.revenge || bossRush; bool expertMode = Main.expertMode || bossRush; - if (!Main.raining) + if (!Main.raining && !bossRush) CalamityUtils.StartRain(); float lifeRatio = NPC.life / (float)NPC.lifeMax; From 9a89e4acf77c8f273bcf3ab8547d0888441abf22 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 13:44:52 -0400 Subject: [PATCH 14/24] aew shits the fan less in boss rush --- NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs index a662bd849c..2910c9a7b5 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Events; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Furniture.DevPaintings; @@ -107,7 +108,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm NPC.height = 138; NPC.defense = 100; NPC.DR_NERD(0.4f); - NPC.LifeMaxNERB(2415000, 2898000); + NPC.LifeMaxNERB(2415000, 2898000, 800000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; @@ -197,7 +198,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm // Target variable Player player = Main.player[NPC.target]; - bool targetDownDeep = player.Calamity().ZoneAbyssLayer4; + bool targetDownDeep = player.Calamity().ZoneAbyssLayer4 || BossRushEvent.BossRushActive; bool targetOnMount = player.mount.Active; // Check whether enraged for the sake of the HP bar UI From 55f1cba9b0938016b294b09dafb34b01709dda6c Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 13:45:16 -0400 Subject: [PATCH 15/24] gave deerclops, qs, and eol boosted health in br --- CalamityLists.cs | 68 +++++++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/CalamityLists.cs b/CalamityLists.cs index 24bdaaf761..beefecb65b 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -2188,11 +2188,6 @@ namespace CalamityMod BossRushHPChanges = new SortedDictionary { // Tier 1 - { NPCID.QueenBee, 315000 }, // 30 seconds - - { NPCID.BrainofCthulhu, 100000 }, // 30 seconds with creepers - { NPCID.Creeper, 10000 }, - { NPCID.KingSlime, 300000 }, // 30 seconds { NPCID.BlueSlime, 3600 }, { NPCID.SlimeSpiked, 7200 }, @@ -2208,38 +2203,57 @@ namespace CalamityMod { NPCID.EyeofCthulhu, 450000 }, // 30 seconds { NPCID.ServantofCthulhu, 6000 }, + { NPCID.EaterofWorldsHead, 10000 }, // 30 seconds + immunity timer at start + { NPCID.EaterofWorldsBody, 10000 }, + { NPCID.EaterofWorldsTail, 10000 }, + + { NPCID.BrainofCthulhu, 100000 }, // 30 seconds with creepers + { NPCID.Creeper, 10000 }, + + { NPCID.QueenBee, 315000 }, // 30 seconds + + { NPCID.Deerclops, 315000 }, // 30 seconds + + { NPCID.SkeletronHead, 160000 }, // 30 seconds + { NPCID.SkeletronHand, 60000 }, + + { NPCID.WallofFlesh, 450000 }, // 30 seconds + { NPCID.WallofFleshEye, 450000 }, + + // Tier 2 + { NPCID.QueenSlimeBoss, 100000 }, // 30 seconds + { NPCID.QueenSlimeMinionBlue, 6000 }, + { NPCID.QueenSlimeMinionPink, 6000 }, + { NPCID.QueenSlimeMinionPurple, 5000 }, + + { NPCID.Spazmatism, 150000 }, // 30 seconds + { NPCID.Retinazer, 125000 }, + + { NPCID.TheDestroyer, 250000 }, // 30 seconds + immunity timer at start + { NPCID.TheDestroyerBody, 250000 }, + { NPCID.TheDestroyerTail, 250000 }, + { NPCID.Probe, 10000 }, + { NPCID.SkeletronPrime, 110000 }, // 30 seconds { NPCID.PrimeVice, 54000 }, { NPCID.PrimeCannon, 45000 }, { NPCID.PrimeSaw, 45000 }, { NPCID.PrimeLaser, 38000 }, + { NPCID.Plantera, 160000 }, // 30 seconds + { NPCID.PlanterasTentacle, 40000 }, + + // Tier 3 { NPCID.Golem, 50000 }, // 30 seconds { NPCID.GolemHead, 30000 }, { NPCID.GolemHeadFree, 30000 }, { NPCID.GolemFistLeft, 25000 }, { NPCID.GolemFistRight, 25000 }, - { NPCID.EaterofWorldsHead, 10000 }, // 30 seconds + immunity timer at start - { NPCID.EaterofWorldsBody, 10000 }, - { NPCID.EaterofWorldsTail, 10000 }, + { NPCID.HallowBoss, 180000 }, // 30 seconds - // Tier 2 - { NPCID.TheDestroyer, 250000 }, // 30 seconds + immunity timer at start - { NPCID.TheDestroyerBody, 250000 }, - { NPCID.TheDestroyerTail, 250000 }, - { NPCID.Probe, 10000 }, + { NPCID.DukeFishron, 290000 }, // 30 seconds - { NPCID.Spazmatism, 150000 }, // 30 seconds - { NPCID.Retinazer, 125000 }, - - { NPCID.WallofFlesh, 450000 }, // 30 seconds - { NPCID.WallofFleshEye, 450000 }, - - { NPCID.SkeletronHead, 160000 }, // 30 seconds - { NPCID.SkeletronHand, 60000 }, - - // Tier 3 { NPCID.CultistBoss, 220000 }, // 30 seconds { NPCID.CultistDragonHead, 60000 }, { NPCID.CultistDragonBody1, 60000 }, @@ -2249,18 +2263,12 @@ namespace CalamityMod { NPCID.CultistDragonTail, 60000 }, { NPCID.AncientCultistSquidhead, 50000 }, - { NPCID.Plantera, 160000 }, // 30 seconds - { NPCID.PlanterasTentacle, 40000 }, - - // Tier 4 - { NPCID.DukeFishron, 290000 }, // 30 seconds - { NPCID.MoonLordCore, 160000 }, // 1 minute { NPCID.MoonLordHand, 45000 }, { NPCID.MoonLordHead, 60000 }, { NPCID.MoonLordLeechBlob, 800 } - // 8 minutes in total for vanilla Boss Rush bosses + // 9.5 minutes in total for vanilla Boss Rush bosses }; BossValues = new SortedDictionary From 349097ebe38b8c2871d13725321e23fef91efb67 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 14:03:33 -0400 Subject: [PATCH 16/24] loot no longer drops in boss rush --- NPCs/CalamityGlobalNPCLoot.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 0cd01d5351..8cff0336db 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1548,6 +1548,19 @@ namespace CalamityMod.NPCs } #endregion + #region Pre Kill + public override bool PreKill(NPC npc) + { + // Boss Rush pre-kill effects + if (BossRushEvent.BossRushActive) + { + // Block anything except the Rock from dropping + DropHelper.BlockEverything(ModContent.ItemType()); + } + return true; + } + #endregion + #region On Kill Main Hook public override void OnKill(NPC npc) { @@ -1556,9 +1569,6 @@ namespace CalamityMod.NPCs { // Progress the Boss Rush event BossRushEvent.OnBossKill(npc, Mod); - - // Block anything except the Rock from dropping - DropHelper.BlockEverything(ModContent.ItemType()); } // Acid Rain on-kill effects From 7426c77a4ee5f3c1ce0709e7c026f634a9f3dd58 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 14:17:47 -0400 Subject: [PATCH 17/24] Added Deerclops, Queen Slime, Empress of Light, Exo Mechs, and AEW to the Boss Rush --- Events/BossRushEvent.cs | 86 ++++++++++----- NPCs/ExoMechs/Draedon.cs | 232 +++++++++++++++++++++++---------------- 2 files changed, 196 insertions(+), 122 deletions(-) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index 9a761951e9..487570ad9b 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.SummonItems; +using CalamityMod.NPCs.AdultEidolonWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumAureus; using CalamityMod.NPCs.AstrumDeus; @@ -12,6 +13,11 @@ using CalamityMod.NPCs.Crabulon; using CalamityMod.NPCs.Cryogen; using CalamityMod.NPCs.DesertScourge; using CalamityMod.NPCs.DevourerofGods; +using CalamityMod.NPCs.ExoMechs; +using CalamityMod.NPCs.ExoMechs.Ares; +using CalamityMod.NPCs.ExoMechs.Thanatos; +using ApolloBoss = CalamityMod.NPCs.ExoMechs.Apollo.Apollo; +using ArtemisBoss = CalamityMod.NPCs.ExoMechs.Artemis.Artemis; using CalamityMod.NPCs.HiveMind; using CalamityMod.NPCs.Leviathan; using CalamityMod.NPCs.NormalNPCs; @@ -28,17 +34,19 @@ using CalamityMod.NPCs.StormWeaver; using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.Yharon; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Skies; +using CalamityMod.UI.DraedonSummoning; +using CalamityMod.World; using Microsoft.Xna.Framework; using System; using System.Collections.Generic; using System.Linq; using Terraria; -using Terraria.ID; -using Terraria.ModLoader; using Terraria.Audio; using Terraria.DataStructures; using Terraria.GameContent.Events; -using CalamityMod.Skies; +using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Events { @@ -150,17 +158,6 @@ namespace CalamityMod.Events new Boss(ModContent.NPCType(), spawnContext: type => { Player player = Main.player[ClosestPlayerToWorldCenter]; - - // Delete the pillars spawned by the cultist. - for (int doom = 0; doom < Main.maxNPCs; doom++) - { - bool isPillar = Main.npc[doom].type == NPCID.LunarTowerStardust || Main.npc[doom].type == NPCID.LunarTowerVortex || Main.npc[doom].type == NPCID.LunarTowerNebula || Main.npc[doom].type == NPCID.LunarTowerSolar; - if (Main.npc[doom].active && isPillar) - { - Main.npc[doom].active = false; - Main.npc[doom].netUpdate = true; - } - } int thePefectOne = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1); Main.npc[thePefectOne].timeLeft *= 20; CalamityUtils.BossAwakenMessage(thePefectOne); @@ -178,6 +175,8 @@ namespace CalamityMod.Events new Boss(NPCID.QueenBee), + new Boss(NPCID.Deerclops), + new Boss(NPCID.SkeletronHead, TimeChangeContext.Night, type => { Player player = Main.player[ClosestPlayerToWorldCenter]; @@ -195,6 +194,8 @@ namespace CalamityMod.Events NPC.SpawnWOF(player.position); }, permittedNPCs: new int[] { NPCID.WallofFleshEye, NPCID.LeechHead, NPCID.LeechBody, NPCID.LeechTail, NPCID.TheHungry, NPCID.TheHungryII }), + new Boss(NPCID.QueenSlimeBoss, permittedNPCs: new int[] { NPCID.QueenSlimeMinionBlue, NPCID.QueenSlimeMinionPink, NPCID.QueenSlimeMinionPurple }), + new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), new Boss(NPCID.Spazmatism, TimeChangeContext.Night, type => @@ -203,15 +204,15 @@ namespace CalamityMod.Events NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Retinazer); }, permittedNPCs: NPCID.Retinazer), - new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), + new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), new Boss(NPCID.TheDestroyer, TimeChangeContext.Night, specialSpawnCountdown: 300, permittedNPCs: new int[] { NPCID.TheDestroyerBody, NPCID.TheDestroyerTail, NPCID.Probe }), - new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + new Boss(ModContent.NPCType(), permittedNPCs: ModContent.NPCType()), new Boss(NPCID.SkeletronPrime, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.PrimeCannon, NPCID.PrimeSaw, NPCID.PrimeVice, NPCID.PrimeLaser, NPCID.Probe }), - 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: 300, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), new Boss(NPCID.Plantera, permittedNPCs: new int[] { NPCID.PlanterasTentacle, NPCID.PlanterasHook, NPCID.Spore }), @@ -236,7 +237,9 @@ namespace CalamityMod.Events NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), - new Boss(NPCID.DukeFishron, spawnContext: type => + new Boss(NPCID.HallowBoss, TimeChangeContext.Night), + + new Boss(NPCID.DukeFishron, TimeChangeContext.Day, spawnContext: type => { Player player = Main.player[ClosestPlayerToWorldCenter]; int dukeFishron = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1); @@ -269,6 +272,17 @@ namespace CalamityMod.Events { Player player = Main.player[ClosestPlayerToWorldCenter]; + // Delete the pillars spawned by the cultist. + for (int doom = 0; doom < Main.maxNPCs; doom++) + { + bool isPillar = Main.npc[doom].type == NPCID.LunarTowerStardust || Main.npc[doom].type == NPCID.LunarTowerVortex || Main.npc[doom].type == NPCID.LunarTowerNebula || Main.npc[doom].type == NPCID.LunarTowerSolar; + if (Main.npc[doom].active && isPillar) + { + Main.npc[doom].active = false; + Main.npc[doom].netUpdate = true; + } + } + SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, player.Center); NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), @@ -354,6 +368,19 @@ namespace CalamityMod.Events NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); }, usesSpecialSound: true), + new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => + { + if (!NPC.AnyNPCs(ModContent.NPCType())) + { + Player player = Main.player[ClosestPlayerToWorldCenter]; + + SoundEngine.PlaySound(CodebreakerUI.SummonSound, player.Center); + Vector2 spawnPos = player.Center + new Vector2(-8f, -100f); + int draedon = NPC.NewNPC(Source, (int)spawnPos.X, (int)spawnPos.Y, ModContent.NPCType()); + Main.npc[draedon].timeLeft *= 20; + } + }, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + new Boss(ModContent.NPCType(), spawnContext: type => { for (int playerIndex = 0; playerIndex < Main.maxPlayers; playerIndex++) @@ -367,13 +394,15 @@ namespace CalamityMod.Events } SoundEngine.PlaySound(SupremeCalamitas.SpawnSound, Main.player[ClosestPlayerToWorldCenter].Center); CalamityUtils.SpawnBossBetter(Main.player[ClosestPlayerToWorldCenter].Top - new Vector2(42f, 84f), type); - }, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), + }, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + + new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), }; BossDeathEffects = new Dictionary>() { - [NPCID.SkeletronHead] = npc => + [NPCID.WallofFlesh] = npc => { CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierOneEndText", XerocTextColor); CreateTierAnimation(2); @@ -388,12 +417,12 @@ namespace CalamityMod.Events CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierThreeEndText", XerocTextColor); CreateTierAnimation(4); }, - [ModContent.NPCType()] = npc => + [ModContent.NPCType()] = npc => { CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierFourEndText", XerocTextColor); CreateTierAnimation(5); }, - [ModContent.NPCType()] = npc => + [ModContent.NPCType()] = npc => { CalamityUtils.KillAllHostileProjectiles(); HostileProjectileKillCounter = 3; @@ -417,9 +446,13 @@ namespace CalamityMod.Events { get { - if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.CultistBoss)) + if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == ModContent.NPCType())) + return 5; + if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.MoonLordCore)) + return 4; + if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.Plantera)) return 3; - if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.TheDestroyer)) + if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.WallofFlesh)) return 2; return 1; } @@ -430,7 +463,10 @@ namespace CalamityMod.Events get { if (CalamityMod.Instance.musicMod != null) - return CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{CurrentTier}") ?? 0; + { + if (CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{CurrentTier}") is not null) + return (int)CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{CurrentTier}"); + } switch (CurrentTier) { diff --git a/NPCs/ExoMechs/Draedon.cs b/NPCs/ExoMechs/Draedon.cs index 68f030d103..0881a6e169 100644 --- a/NPCs/ExoMechs/Draedon.cs +++ b/NPCs/ExoMechs/Draedon.cs @@ -1,4 +1,5 @@ -using CalamityMod.NPCs.ExoMechs.Ares; +using CalamityMod.Events; +using CalamityMod.NPCs.ExoMechs.Ares; using CalamityMod.NPCs.ExoMechs.Thanatos; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -64,6 +65,7 @@ namespace CalamityMod.NPCs.ExoMechs return false; } } + public ref float BossRushCounter => ref NPC.Calamity().newAI[0]; public static readonly Color TextColor = new(155, 255, 255); public static readonly Color TextColorEdgy = new(213, 4, 11); public const int HologramFadeinTime = 45; @@ -133,6 +135,7 @@ namespace CalamityMod.NPCs.ExoMechs writer.Write(KillReappearDelay); writer.Write(ShouldStartStandingUp); writer.Write(HasBeenKilled); + writer.Write(BossRushCounter); } public override void ReceiveExtraAI(BinaryReader reader) @@ -146,6 +149,7 @@ namespace CalamityMod.NPCs.ExoMechs KillReappearDelay = reader.ReadSingle(); ShouldStartStandingUp = reader.ReadBoolean(); HasBeenKilled = reader.ReadBoolean(); + BossRushCounter = reader.ReadSingle(); } public override void AI() @@ -161,6 +165,9 @@ namespace CalamityMod.NPCs.ExoMechs // Prevent stupid natural despawns. NPC.timeLeft = 3600; + // Check if Boss Rush is active + bool bossRush = BossRushEvent.BossRushActive; + // Emit music. If the battle is ongoing, Draedon emits the battle theme. // Otherwise, he emits his trademark ambience. // This takes priority over anything except Moon Lord's music fadeout. @@ -231,7 +238,7 @@ namespace CalamityMod.NPCs.ExoMechs ShouldStartStandingUp = true; // Gloss over the arbitrary details and just get to the Exo Mech selection if Draedon has already been talked to. - if (CalamityWorld.TalkedToDraedon && TalkTimer > 70 && TalkTimer < TalkDelay * 4f - 25f) + if ((CalamityWorld.TalkedToDraedon || bossRush) && TalkTimer > 70 && TalkTimer < TalkDelay * 4f - 25f) { TalkTimer = TalkDelay * 4f - 25f; NPC.netUpdate = true; @@ -264,7 +271,7 @@ namespace CalamityMod.NPCs.ExoMechs // Inform the player who summoned draedon they may choose the first mech and cause a selection UI to appear over their head. if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == TalkDelay + DelayPerDialogLine * 4f) { - if (CalamityWorld.TalkedToDraedon) + if ((CalamityWorld.TalkedToDraedon || bossRush)) CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonResummonText", TextColorEdgy); else CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonIntroductionText5", TextColorEdgy); @@ -284,6 +291,23 @@ namespace CalamityMod.NPCs.ExoMechs { PlayerToFollow.Calamity().AbleToSelectExoMech = true; TalkTimer = ExoMechChooseDelay; + if (bossRush) + { + // Summon a random exo mech if you wait too long + BossRushCounter++; + if (BossRushCounter > 600 && CalamityWorld.DraedonMechToSummon == ExoMech.None) + { + CalamityWorld.DraedonMechToSummon = (ExoMech)Main.rand.Next(1,4); + + if (Main.netMode != NetmodeID.SinglePlayer) + { + var netMessage = CalamityMod.Instance.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.ExoMechSelection); + netMessage.Write((int)CalamityWorld.DraedonMechToSummon); + netMessage.Send(); + } + } + } } // Fly around once the exo mechs have been spawned. @@ -313,123 +337,126 @@ namespace CalamityMod.NPCs.ExoMechs } } - // Dialogue lines depending on what phase the exo mechs are at. - switch ((int)DialogueType) - { - case 1: + if (!bossRush) + { + // Dialogue lines depending on what phase the exo mechs are at. + switch ((int)DialogueType) + { + case 1: - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase1Text1", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase1Text1", TextColor); + NPC.netUpdate = true; + } - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase1Text2", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase1Text2", TextColor); + NPC.netUpdate = true; + } - break; + break; - case 2: + case 2: - if (TalkTimer == ExoMechPhaseDialogueTime) - { - SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); - if (Main.netMode != NetmodeID.MultiplayerClient) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase2Text1", TextColor); - NPC.netUpdate = true; - } - } + if (TalkTimer == ExoMechPhaseDialogueTime) + { + SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); + if (Main.netMode != NetmodeID.MultiplayerClient) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase2Text1", TextColor); + NPC.netUpdate = true; + } + } - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase2Text2", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase2Text2", TextColor); + NPC.netUpdate = true; + } - break; + break; - case 3: + case 3: - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase3Text1", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase3Text1", TextColor); + NPC.netUpdate = true; + } - if (TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) - { - SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); - if (Main.netMode != NetmodeID.MultiplayerClient) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase3Text2", TextColor); - NPC.netUpdate = true; - } - } + if (TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) + { + SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); + if (Main.netMode != NetmodeID.MultiplayerClient) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase3Text2", TextColor); + NPC.netUpdate = true; + } + } - break; + break; - case 4: + case 4: - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase4Text1", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase4Text1", TextColor); + NPC.netUpdate = true; + } - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase4Text2", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase4Text2", TextColor); + NPC.netUpdate = true; + } - break; + break; - case 5: + case 5: - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase5Text1", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase5Text1", TextColor); + NPC.netUpdate = true; + } - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase5Text2", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase5Text2", TextColor); + NPC.netUpdate = true; + } - break; + break; - case 6: + case 6: - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text1", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text1", TextColor); + NPC.netUpdate = true; + } - if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text2", TextColor); - NPC.netUpdate = true; - } + if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text2", TextColor); + NPC.netUpdate = true; + } - if (TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine * 2f) - { - SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); - if (Main.netMode != NetmodeID.MultiplayerClient) - { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text3", TextColor); - NPC.netUpdate = true; - } - } + if (TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine * 2f) + { + SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); + if (Main.netMode != NetmodeID.MultiplayerClient) + { + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text3", TextColor); + NPC.netUpdate = true; + } + } - break; - } + break; + } + } if (TalkTimer > ExoMechChooseDelay + 10f && !ExoMechIsPresent) { @@ -528,8 +555,9 @@ namespace CalamityMod.NPCs.ExoMechs NPC.dontTakeDamage = DefeatTimer < TalkDelay * 2f + 50f || HasBeenKilled; NPC.Calamity().CanHaveBossHealthBar = !NPC.dontTakeDamage; NPC.Calamity().ShouldCloseHPBar = HasBeenKilled; + NPC.chaseable = BossRushEvent.BossRushActive; - bool leaving = DefeatTimer > DelayBeforeDefeatStandup + TalkDelay * 8f + 200f; + bool leaving = (DefeatTimer > DelayBeforeDefeatStandup + TalkDelay * 8f + 200f) || BossRushEvent.BossRushActive; // Fade away and disappear when leaving. if (leaving) @@ -542,6 +570,13 @@ namespace CalamityMod.NPCs.ExoMechs { Main.BestiaryTracker.Kills.RegisterKill(NPC); NPC.active = false; + // Die you lil piece of shit stop creating endless loop in BR + if (BossRushEvent.BossRushActive) + { + NPC.HitEffect(); + NPC.NPCLoot(); + NPC.netUpdate = true; + } } } @@ -690,6 +725,9 @@ namespace CalamityMod.NPCs.ExoMechs public override bool CheckDead() { + if (BossRushEvent.BossRushActive) + return true; + if (!HasBeenKilled) { HologramEffectTimer = 0f; From f21db081278be71ff3e4798b65eec3502f626b48 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 14:35:49 -0400 Subject: [PATCH 18/24] removed dragonfolly enabling twins --- Events/BossRushEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index 487570ad9b..d3a71d1fd6 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -298,7 +298,7 @@ namespace CalamityMod.Events NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type); }, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType(), NPCID.Spazmatism, NPCID.Retinazer }), + new Boss(ModContent.NPCType(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType() }), new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => { From 6e26be41004d6264aee36f7e340d84c648e038d1 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 14:37:17 -0400 Subject: [PATCH 19/24] cosmic guardians are now allowed to exist --- Events/BossRushEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index d3a71d1fd6..3dca2e95ee 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -358,7 +358,7 @@ namespace CalamityMod.Events SoundEngine.PlaySound(DevourerofGodsHead.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(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), new Boss(ModContent.NPCType(), TimeChangeContext.Day, type => { From 8c99d97d2c09f056551b36a45e524f517e4800c2 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 14:47:28 -0400 Subject: [PATCH 20/24] aew now permits baby eidolons and eidolists --- Events/BossRushEvent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index 3dca2e95ee..0a612c18cd 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.SummonItems; +using CalamityMod.NPCs.Abyss; using CalamityMod.NPCs.AdultEidolonWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumAureus; @@ -397,7 +398,7 @@ namespace CalamityMod.Events }, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), }; BossDeathEffects = new Dictionary>() From 35879a2f1916e6a1964c6198bafa4233cc7a4ded Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 16:19:19 -0400 Subject: [PATCH 21/24] fixed boss rush music --- Events/BossRushEvent.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index 0a612c18cd..b54b5aae7c 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -463,10 +463,13 @@ namespace CalamityMod.Events { get { + int tier = CurrentTier; if (CalamityMod.Instance.musicMod != null) { - if (CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{CurrentTier}") is not null) - return (int)CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{CurrentTier}"); + // Boss Rush music for tiers 4 and 5 don't exist + if (tier > 3) + tier = 3; + return CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{tier}") ?? 0; } switch (CurrentTier) From 63cf0c7621dd5f1bbcaf28b83d4b385a12d7afba Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 21:40:16 -0400 Subject: [PATCH 22/24] Commented out AEW from Boss Rush --- Events/BossRushEvent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index b54b5aae7c..c60f91356e 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -398,7 +398,7 @@ namespace CalamityMod.Events }, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), - new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), + // new Boss(ModContent.NPCType(), permittedNPCs: new int[] { ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() }), }; BossDeathEffects = new Dictionary>() @@ -423,7 +423,7 @@ namespace CalamityMod.Events CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierFourEndText", XerocTextColor); CreateTierAnimation(5); }, - [ModContent.NPCType()] = npc => + [ModContent.NPCType()] = npc => { CalamityUtils.KillAllHostileProjectiles(); HostileProjectileKillCounter = 3; From a356cb1f5a76cdabb42d88ad941971380115ea69 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 21:59:56 -0400 Subject: [PATCH 23/24] Rebalanced some health and damage values for boss rush --- CalamityLists.cs | 2 +- NPCs/ExoMechs/Apollo/Apollo.cs | 2 +- NPCs/ExoMechs/Ares/AresBody.cs | 2 +- NPCs/ExoMechs/Ares/AresGaussNuke.cs | 2 +- NPCs/ExoMechs/Ares/AresLaserCannon.cs | 2 +- NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs | 2 +- NPCs/ExoMechs/Ares/AresTeslaCannon.cs | 2 +- NPCs/ExoMechs/Artemis/Artemis.cs | 2 +- NPCs/ExoMechs/Thanatos/ThanatosBody1.cs | 2 +- NPCs/ExoMechs/Thanatos/ThanatosBody2.cs | 2 +- NPCs/ExoMechs/Thanatos/ThanatosHead.cs | 2 +- NPCs/ExoMechs/Thanatos/ThanatosTail.cs | 2 +- NPCs/Signus/Signus.cs | 2 +- NPCs/StormWeaver/StormWeaverBody.cs | 2 +- NPCs/StormWeaver/StormWeaverHead.cs | 2 +- NPCs/StormWeaver/StormWeaverTail.cs | 2 +- NPCs/SupremeCalamitas/BrimstoneHeart.cs | 2 +- NPCs/SupremeCalamitas/SoulSeekerSupreme.cs | 2 ++ NPCs/SupremeCalamitas/SupremeCalamitas.cs | 12 +++++++++++- NPCs/SupremeCalamitas/SupremeCataclysm.cs | 6 +++++- NPCs/SupremeCalamitas/SupremeCatastrophe.cs | 6 +++++- NPCs/Yharon/Yharon.cs | 2 +- 22 files changed, 41 insertions(+), 21 deletions(-) diff --git a/CalamityLists.cs b/CalamityLists.cs index beefecb65b..4d9a20c91e 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -2234,7 +2234,7 @@ namespace CalamityMod { NPCID.TheDestroyerTail, 250000 }, { NPCID.Probe, 10000 }, - { NPCID.SkeletronPrime, 110000 }, // 30 seconds + { NPCID.SkeletronPrime, 150000 }, // 30 seconds { NPCID.PrimeVice, 54000 }, { NPCID.PrimeCannon, 45000 }, { NPCID.PrimeSaw, 45000 }, diff --git a/NPCs/ExoMechs/Apollo/Apollo.cs b/NPCs/ExoMechs/Apollo/Apollo.cs index da5449aed0..15d67fbabb 100644 --- a/NPCs/ExoMechs/Apollo/Apollo.cs +++ b/NPCs/ExoMechs/Apollo/Apollo.cs @@ -147,7 +147,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo NPC.height = 226; NPC.defense = 80; NPC.DR_NERD(0.25f); - NPC.LifeMaxNERB(1250000, 1495000, 500000); + NPC.LifeMaxNERB(1250000, 1495000, 650000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index bb4d4f1d27..6264fe40d2 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -162,7 +162,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares NPC.height = 252; NPC.defense = 100; NPC.DR_NERD(0.35f); - NPC.LifeMaxNERB(1250000, 1495000, 500000); + NPC.LifeMaxNERB(1250000, 1495000, 650000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Ares/AresGaussNuke.cs b/NPCs/ExoMechs/Ares/AresGaussNuke.cs index c80cfe24de..f9e6fc0d37 100644 --- a/NPCs/ExoMechs/Ares/AresGaussNuke.cs +++ b/NPCs/ExoMechs/Ares/AresGaussNuke.cs @@ -84,7 +84,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares NPC.height = 120; NPC.defense = 80; NPC.DR_NERD(0.35f); - NPC.LifeMaxNERB(1250000, 1495000, 500000); + NPC.LifeMaxNERB(1250000, 1495000, 650000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Ares/AresLaserCannon.cs b/NPCs/ExoMechs/Ares/AresLaserCannon.cs index aa440437f2..79d082bfad 100644 --- a/NPCs/ExoMechs/Ares/AresLaserCannon.cs +++ b/NPCs/ExoMechs/Ares/AresLaserCannon.cs @@ -83,7 +83,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares NPC.height = 90; NPC.defense = 80; NPC.DR_NERD(0.35f); - NPC.LifeMaxNERB(1250000, 1495000, 500000); + NPC.LifeMaxNERB(1250000, 1495000, 650000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs index 9746aab762..b4aac9efce 100644 --- a/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs +++ b/NPCs/ExoMechs/Ares/AresPlasmaFlamethrower.cs @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares NPC.height = 90; NPC.defense = 80; NPC.DR_NERD(0.35f); - NPC.LifeMaxNERB(1250000, 1495000, 500000); + NPC.LifeMaxNERB(1250000, 1495000, 650000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs index 5de7eb299a..44ee1d28be 100644 --- a/NPCs/ExoMechs/Ares/AresTeslaCannon.cs +++ b/NPCs/ExoMechs/Ares/AresTeslaCannon.cs @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares NPC.height = 108; NPC.defense = 80; NPC.DR_NERD(0.35f); - NPC.LifeMaxNERB(1250000, 1495000, 500000); + NPC.LifeMaxNERB(1250000, 1495000, 650000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Artemis/Artemis.cs b/NPCs/ExoMechs/Artemis/Artemis.cs index b8e8dddf5b..d034c785f5 100644 --- a/NPCs/ExoMechs/Artemis/Artemis.cs +++ b/NPCs/ExoMechs/Artemis/Artemis.cs @@ -166,7 +166,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis NPC.height = 226; NPC.defense = 80; NPC.DR_NERD(0.25f); - NPC.LifeMaxNERB(1250000, 1495000, 500000); + NPC.LifeMaxNERB(1250000, 1495000, 650000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs b/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs index 4624fd8689..7fe2c871b1 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosBody1.cs @@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos NPC.defense = 100; NPC.DR_NERD(0.9999f); NPC.Calamity().unbreakableDR = true; - NPC.LifeMaxNERB(960000, 1150000, 500000); + NPC.LifeMaxNERB(960000, 1150000, 600000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs b/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs index a2a4fdd8e8..f368121947 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosBody2.cs @@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos NPC.defense = 100; NPC.DR_NERD(0.9999f); NPC.Calamity().unbreakableDR = true; - NPC.LifeMaxNERB(960000, 1150000, 500000); + NPC.LifeMaxNERB(960000, 1150000, 600000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Thanatos/ThanatosHead.cs b/NPCs/ExoMechs/Thanatos/ThanatosHead.cs index 9db8c4dab4..f5d26ed255 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosHead.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosHead.cs @@ -143,7 +143,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos NPC.defense = 80; NPC.DR_NERD(0.9999f); NPC.Calamity().unbreakableDR = true; - NPC.LifeMaxNERB(960000, 1150000, 500000); + NPC.LifeMaxNERB(960000, 1150000, 600000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/ExoMechs/Thanatos/ThanatosTail.cs b/NPCs/ExoMechs/Thanatos/ThanatosTail.cs index 1b482a61d9..d1bcf7a5e2 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosTail.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosTail.cs @@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos NPC.defense = 120; NPC.DR_NERD(0.9999f); NPC.Calamity().unbreakableDR = true; - NPC.LifeMaxNERB(960000, 1150000, 500000); + NPC.LifeMaxNERB(960000, 1150000, 600000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; diff --git a/NPCs/Signus/Signus.cs b/NPCs/Signus/Signus.cs index 972dbcc5cf..2d50ffd80f 100644 --- a/NPCs/Signus/Signus.cs +++ b/NPCs/Signus/Signus.cs @@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.Signus NPC.width = 130; NPC.height = 130; NPC.defense = 60; - NPC.LifeMaxNERB(297000, 356400, 240000); + NPC.LifeMaxNERB(297000, 356400, 320000); NPC.value = Item.buyPrice(2, 0, 0, 0); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); diff --git a/NPCs/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index 4e7f00b67e..0fee142566 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.StormWeaver NPC.width = 40; NPC.height = 40; NPC.lifeMax = 825500; - NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 475000); + NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 500000); // Phase one settings CalamityGlobalNPC global = NPC.Calamity(); diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index 4890c22d55..33106d54fb 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -81,7 +81,7 @@ namespace CalamityMod.NPCs.StormWeaver NPC.width = 74; NPC.height = 74; NPC.lifeMax = 825500; - NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 475000); + NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 500000); NPC.value = Item.buyPrice(2, 0, 0, 0); // Phase one settings diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index 55b6bb7944..f50b4a7a8a 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.StormWeaver NPC.width = 48; NPC.height = 80; NPC.lifeMax = 825500; - NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 475000); + NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 500000); // Phase one settings NPC.takenDamageMultiplier = 2f; diff --git a/NPCs/SupremeCalamitas/BrimstoneHeart.cs b/NPCs/SupremeCalamitas/BrimstoneHeart.cs index 48f40cd04e..59ddc60b73 100644 --- a/NPCs/SupremeCalamitas/BrimstoneHeart.cs +++ b/NPCs/SupremeCalamitas/BrimstoneHeart.cs @@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.width = 24; NPC.height = 24; NPC.defense = 0; - NPC.LifeMaxNERB(24550, 29440, 10000); + NPC.LifeMaxNERB(24550, 29440, 20000); NPC.aiStyle = -1; AIType = -1; NPC.knockBackResist = 0f; diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs index f6fba36d7f..0e9c002a82 100644 --- a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs +++ b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs @@ -148,6 +148,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas { int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); + if (BossRushEvent.BossRushActive) + damage /= 2; Vector2 shootVelocity = (Target.Center - EyePosition).SafeNormalize(Vector2.UnitY) * 9f; Projectile.NewProjectile(NPC.GetSource_FromAI(), EyePosition, shootVelocity, type, damage, 1f, Main.myPlayer); } diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 73012b73aa..d047b55813 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -208,7 +208,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.defense = 100; NPC.DR_NERD(normalDR); NPC.value = Item.buyPrice(30, 0, 0, 0); - NPC.LifeMaxNERB(960000, 1150000, 500000); + NPC.LifeMaxNERB(960000, 1150000, 900000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; @@ -399,6 +399,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas int monsterDamage = NPC.GetProjectileDamage(ModContent.ProjectileType()); int waveDamage = NPC.GetProjectileDamage(ModContent.ProjectileType()); int hellblastDamage = NPC.GetProjectileDamage(ModContent.ProjectileType()); + if (bossRush) + { + bulletHellblastDamage /= 2; + barrageDamage /= 2; + gigablastDamage /= 2; + fireblastDamage /= 2; + monsterDamage /= 2; + waveDamage /= 2; + hellblastDamage /= 2; + } int bodyWidth = 44; int bodyHeight = 42; int baseBulletHellProjectileGateValue = revenge ? 8 : expertMode ? 9 : 10; diff --git a/NPCs/SupremeCalamitas/SupremeCataclysm.cs b/NPCs/SupremeCalamitas/SupremeCataclysm.cs index 92c631187a..b5efb1b703 100644 --- a/NPCs/SupremeCalamitas/SupremeCataclysm.cs +++ b/NPCs/SupremeCalamitas/SupremeCataclysm.cs @@ -62,7 +62,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.height = 120; NPC.defense = 80; NPC.DR_NERD(NormalBrothersDR); - NPC.LifeMaxNERB(230000, 276000, 100000); + NPC.LifeMaxNERB(230000, 276000, 200000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; @@ -215,6 +215,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas SoundEngine.PlaySound(SupremeCalamitas.HellblastSound, NPC.Center); int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); + if (bossRush) + damage /= 2; if (Main.netMode != NetmodeID.MultiplayerClient) { Vector2 fistSpawnPosition = NPC.Center + Vector2.UnitX * -74f; @@ -234,6 +236,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); + if (bossRush) + damage /= 2; int totalProjectiles = bossRush ? 20 : death ? 16 : revenge ? 14 : expertMode ? 12 : 8; float radians = MathHelper.TwoPi / totalProjectiles; float velocity = 7f; diff --git a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs index 4caec51105..e7b5f96cb8 100644 --- a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs +++ b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs @@ -54,7 +54,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.height = 120; NPC.defense = 80; NPC.DR_NERD(SupremeCataclysm.NormalBrothersDR); - NPC.LifeMaxNERB(230000, 276000, 100000); + NPC.LifeMaxNERB(230000, 276000, 200000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.aiStyle = -1; @@ -212,6 +212,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); + if (bossRush) + damage /= 2; Vector2 slashSpawnPosition = NPC.Center + Vector2.UnitX * 125f; if (Main.netMode != NetmodeID.MultiplayerClient) Projectile.NewProjectile(NPC.GetSource_FromAI(), slashSpawnPosition, Vector2.UnitX * 4f, type, damage, 0f, Main.myPlayer, 0f, SlashingFromRight.ToInt()); @@ -229,6 +231,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); + if (bossRush) + damage /= 2; int totalProjectiles = bossRush ? 20 : death ? 16 : revenge ? 14 : expertMode ? 12 : 8; float radians = MathHelper.TwoPi / totalProjectiles; float velocity = 7f; diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 244a899196..f6e258cb8a 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -95,7 +95,7 @@ namespace CalamityMod.NPCs.Yharon NPC.width = 200; NPC.height = 200; NPC.defense = 90; - NPC.LifeMaxNERB(1302000, 1562400, 370000); + NPC.LifeMaxNERB(1302000, 1562400, 740000); double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01; NPC.lifeMax += (int)(NPC.lifeMax * HPBoost); NPC.knockBackResist = 0f; From ac124c16ae5db767637cb831c91766e96de17847 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 15 Oct 2022 22:00:45 -0400 Subject: [PATCH 24/24] Nerfed Guidelight of Oblivion and Yharon's Kindle Staff --- Items/Weapons/Summon/GuidelightofOblivion.cs | 2 +- Items/Weapons/Summon/YharonsKindleStaff.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Summon/GuidelightofOblivion.cs b/Items/Weapons/Summon/GuidelightofOblivion.cs index 6906b230de..0413883acc 100644 --- a/Items/Weapons/Summon/GuidelightofOblivion.cs +++ b/Items/Weapons/Summon/GuidelightofOblivion.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - Item.damage = 188; + Item.damage = 75; Item.DamageType = DamageClass.Summon; Item.sentry = true; Item.mana = 10; diff --git a/Items/Weapons/Summon/YharonsKindleStaff.cs b/Items/Weapons/Summon/YharonsKindleStaff.cs index 46bff3bb0f..07fb7b8fd6 100644 --- a/Items/Weapons/Summon/YharonsKindleStaff.cs +++ b/Items/Weapons/Summon/YharonsKindleStaff.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Summon [LegacyName("AngryChickenStaff")] public class YharonsKindleStaff : ModItem { - public const int Damage = 340; + public const int Damage = 300; public const float ReboundRamDamageFactor = 2f; public override void SetStaticDefaults() {