diff --git a/Items/TreasureBags/AstrageldonBag.cs b/Items/TreasureBags/AstrageldonBag.cs index 96195471c8..5452c84b67 100644 --- a/Items/TreasureBags/AstrageldonBag.cs +++ b/Items/TreasureBags/AstrageldonBag.cs @@ -59,7 +59,7 @@ namespace CalamityMod.Items.TreasureBags ); // Equipment - DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge && NPC.downedMoonlord); + DropHelper.DropItemCondition(player, ModContent.ItemType(), NPC.downedMoonlord); DropHelper.DropItem(player, ModContent.ItemType()); // Vanity diff --git a/Items/TreasureBags/BrimstoneWaifuBag.cs b/Items/TreasureBags/BrimstoneWaifuBag.cs index 92cd4116b1..aaa2dffc91 100644 --- a/Items/TreasureBags/BrimstoneWaifuBag.cs +++ b/Items/TreasureBags/BrimstoneWaifuBag.cs @@ -59,7 +59,7 @@ namespace CalamityMod.Items.TreasureBags DropHelper.DropItem(player, ModContent.ItemType()); DropHelper.DropItem(player, ModContent.ItemType()); DropHelper.DropItemChance(player, ModContent.ItemType(), 5); - DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge && CalamityWorld.downedProvidence); + DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.downedProvidence); // Vanity DropHelper.DropItemCondition(player, ModContent.ItemType(), CalamityWorld.revenge); diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index b8c0bad11e..d954cc06b2 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -3,6 +3,7 @@ using CalamityMod.Dusts; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; +using CalamityMod.Items.Mounts; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.Potions; using CalamityMod.Items.TreasureBags; @@ -46,7 +47,7 @@ namespace CalamityMod.NPCs.AstrumAureus npc.height = 280; npc.defense = 40; npc.DR_NERD(0.15f); - npc.LifeMaxNERB(84000, NPC.downedMoonlord ? 292500 : 107000, 740000); // 30 seconds in boss rush + npc.LifeMaxNERB(NPC.downedMoonlord ? 230000 : 84000, NPC.downedMoonlord ? 292500 : 107000, 740000); // 30 seconds in boss rush npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; @@ -55,7 +56,7 @@ namespace CalamityMod.NPCs.AstrumAureus npc.DeathSound = SoundID.NPCDeath14; music = CalamityMod.Instance.GetMusicFromMusicMod("Astrageldon") ?? MusicID.Boss3; bossBag = ModContent.ItemType(); - if (NPC.downedMoonlord && CalamityWorld.revenge) + if (NPC.downedMoonlord) { npc.value = Item.buyPrice(0, 25, 0, 0); } @@ -345,8 +346,11 @@ namespace CalamityMod.NPCs.AstrumAureus DropHelper.WeightStack(w) ); - // Vanity - DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + // Equipment + DropHelper.DropItemCondition(npc, ModContent.ItemType(), NPC.downedMoonlord); + + // Vanity + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); // Other DropHelper.DropItem(npc, ModContent.ItemType(), 9, 12); diff --git a/NPCs/AstrumAureus/AureusSpawn.cs b/NPCs/AstrumAureus/AureusSpawn.cs index 542c154698..2150d249cb 100644 --- a/NPCs/AstrumAureus/AureusSpawn.cs +++ b/NPCs/AstrumAureus/AureusSpawn.cs @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.AstrumAureus npc.height = 60; npc.alpha = 255; npc.defense = 10; - npc.lifeMax = 3000; + npc.lifeMax = NPC.downedMoonlord ? 8250 : 3000; npc.knockBackResist = 0f; npc.noGravity = true; npc.noTileCollide = true; @@ -310,7 +310,7 @@ namespace CalamityMod.NPCs.AstrumAureus Main.PlaySound(SoundID.Item, (int)npc.position.X, (int)npc.position.Y, 14); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); - npc.damage = npc.defDamage; + npc.damage = (NPC.downedMoonlord && !BossRushEvent.BossRushActive) ? npc.defDamage * 2 : npc.defDamage; npc.width = npc.height = 432; npc.position.X = npc.position.X - (float)(npc.width / 2); npc.position.Y = npc.position.Y - (float)(npc.height / 2); diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index b3d2ff17cf..020fd8ec06 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; +using CalamityMod.Items.Mounts; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; @@ -174,9 +175,10 @@ namespace CalamityMod.NPCs.BrimstoneElemental // Equipment DropHelper.DropItemChance(npc, ModContent.ItemType(), 5); DropHelper.DropItemChance(npc, ModContent.ItemType(), 2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedProvidence); - // Vanity - DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + // Vanity + DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); } //if brimmy hasn't been killed, you can mine charred ore diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 6125036f3c..c92021857b 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -2584,6 +2584,9 @@ namespace CalamityMod.NPCs CalamityGlobalNPC calamityGlobalNPC = npc.Calamity(); + bool postMoonLordBuff = NPC.downedMoonlord && !BossRushEvent.BossRushActive; + npc.damage = postMoonLordBuff ? npc.defDamage * 2 : npc.defDamage; + // Percent life remaining float lifeRatio = npc.life / (float)npc.lifeMax; @@ -2694,8 +2697,9 @@ namespace CalamityMod.NPCs float velocity = death ? 8f : 7f; int type = ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(type); - if (NPC.downedMoonlord && revenge && !BossRushEvent.BossRushActive) + if (postMoonLordBuff) damage *= 2; + float spreadLimit = (phase3 ? 100f : 50f) + enrageScale * 50f; float randomSpread = (Main.rand.NextFloat() - 0.5f) * spreadLimit; Vector2 spawnVector = new Vector2(npc.Center.X, npc.Center.Y - 80f); @@ -2737,7 +2741,7 @@ namespace CalamityMod.NPCs int type = ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(type); - if (NPC.downedMoonlord && revenge && !BossRushEvent.BossRushActive) + if (postMoonLordBuff) damage *= 2; for (int i = 0; i < maxProjectiles; i++) @@ -3023,8 +3027,9 @@ namespace CalamityMod.NPCs num182 *= num183; int type = ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(type); - if (NPC.downedMoonlord && revenge && !BossRushEvent.BossRushActive) + if (postMoonLordBuff) damage *= 2; + value9.X += num180; value9.Y += num182; for (int i = 0; i < maxProjectiles; i++)