From ec9a815080879f44fa98fcebd8b52f735586ff92 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Thu, 5 May 2022 02:32:42 -0500 Subject: [PATCH] 1 - Many debuff immunity accessories are now available prior to the bosses that inflict those respective debuffs. 2 - Adjusted various debuff durations. --- CalPlayer/CalamityPlayer.cs | 12 ++--- CalPlayer/CalamityPlayerMiscEffects.cs | 2 + CalamityMod.cs | 4 +- Items/Accessories/Abaddon.cs | 20 +++++++- Items/Accessories/AlchemicalFlask.cs | 3 +- Items/Accessories/AmbrosialAmpoule.cs | 2 +- Items/Accessories/AsgardianAegis.cs | 1 + Items/Accessories/AsgardsValor.cs | 4 +- Items/Accessories/CorruptFlask.cs | 4 +- Items/Accessories/CrimsonFlask.cs | 7 ++- Items/Accessories/ElysianAegis.cs | 2 +- Items/Accessories/Nucleogenesis.cs | 5 +- Items/Accessories/PlagueHive.cs | 3 +- Items/Accessories/StatisCurse.cs | 7 ++- Items/Accessories/TheFirstShadowflame.cs | 11 +++-- Items/CalamityGlobalItem.cs | 28 ++++++++++- Items/CalamityGlobalItemTooltip.cs | 17 ++++++- Items/Materials/BeetleJuice.cs | 4 +- NPCs/Abyss/ToxicMinnow.cs | 2 +- NPCs/AquaticScourge/AquaticScourgeBody.cs | 2 +- NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs | 2 +- NPCs/AquaticScourge/AquaticScourgeHead.cs | 2 +- NPCs/AquaticScourge/AquaticScourgeTail.cs | 2 +- NPCs/AstrumAureus/AstrumAureus.cs | 2 +- NPCs/AstrumAureus/AureusSpawn.cs | 2 +- NPCs/AstrumDeus/AstrumDeusBodySpectral.cs | 2 +- NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs | 2 +- NPCs/AstrumDeus/AstrumDeusTailSpectral.cs | 2 +- NPCs/BrimstoneElemental/BrimstoneElemental.cs | 2 +- NPCs/Calamitas/CalamitasRun.cs | 2 +- NPCs/Calamitas/CalamitasRun2.cs | 2 +- NPCs/Calamitas/CalamitasRun3.cs | 2 +- NPCs/CalamityGlobalNPC.cs | 49 +++++++++++-------- NPCs/CalamityGlobalNPCLoot.cs | 8 ++- NPCs/Cryogen/Cryogen.cs | 4 +- NPCs/Cryogen/CryogenIce.cs | 4 +- NPCs/DesertScourge/DesertScourgeBody.cs | 2 +- NPCs/DesertScourge/DesertScourgeHead.cs | 2 +- NPCs/DesertScourge/DesertScourgeTail.cs | 2 +- NPCs/GreatSandShark/GreatSandShark.cs | 2 +- NPCs/Leviathan/AquaticAberration.cs | 2 +- NPCs/Leviathan/Leviathan.cs | 2 +- NPCs/NormalNPCs/CrimulanBlightSlime.cs | 2 +- NPCs/NormalNPCs/EbonianBlightSlime.cs | 2 +- NPCs/NormalNPCs/ScornEater.cs | 1 - .../PlagueHomingMissile.cs | 2 +- NPCs/PlaguebringerGoliath/PlagueMine.cs | 2 +- .../PlaguebringerGoliath.cs | 2 +- NPCs/Ravager/RavagerBody.cs | 2 +- NPCs/Ravager/RavagerClawLeft.cs | 2 +- NPCs/Ravager/RavagerClawRight.cs | 2 +- NPCs/Ravager/RockPillar.cs | 2 +- NPCs/SlimeGod/SlimeGodCore.cs | 4 +- NPCs/SlimeGod/SlimeGodRunSplit.cs | 2 +- NPCs/SlimeGod/SlimeGodSplit.cs | 2 +- Projectiles/Boss/AbyssBallVolley.cs | 4 +- Projectiles/Boss/AbyssBallVolley2.cs | 4 +- Projectiles/Boss/AstralGodRay.cs | 4 +- Projectiles/Boss/BrimstoneBall.cs | 4 +- Projectiles/Boss/BrimstoneBarrage.cs | 2 +- Projectiles/Boss/BrimstoneFire.cs | 4 +- Projectiles/Boss/BrimstoneHellblast.cs | 2 +- Projectiles/Boss/BrimstoneHellblast2.cs | 2 +- Projectiles/Boss/BrimstoneHellfireball.cs | 2 +- Projectiles/Boss/FrostMist.cs | 4 +- Projectiles/Boss/HellfireExplosion.cs | 4 +- Projectiles/Boss/HiveBombGoliath.cs | 2 +- Projectiles/Boss/HolyBlast.cs | 2 +- Projectiles/Boss/HolyBomb.cs | 2 +- Projectiles/Boss/HolyFlare.cs | 2 +- Projectiles/Boss/IceBlast.cs | 4 +- Projectiles/Boss/IceBomb.cs | 2 +- Projectiles/Boss/IceRain.cs | 6 +-- Projectiles/Boss/MoltenBlob.cs | 2 +- Projectiles/Boss/ProvidenceHolyRay.cs | 2 +- Projectiles/Boss/ShadeNimbusHostile.cs | 2 +- Projectiles/Boss/ShaderainHostile.cs | 4 +- Projectiles/Boss/ShadowflameFireball.cs | 9 +--- Projectiles/Boss/Shadowflamethrower.cs | 9 +--- Projectiles/Boss/SporeGasPlantera.cs | 2 +- Projectiles/Boss/ToxicCloud.cs | 6 +-- Projectiles/Enemy/ToxicMinnowCloud.cs | 6 +-- Tiles/Ores/AstralOre.cs | 2 +- Utilities/CalamityRecipes.cs | 10 ++-- 84 files changed, 229 insertions(+), 149 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index b5c629a554..27c168bbd8 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -6126,19 +6126,19 @@ namespace CalamityMod.CalPlayer } else if (npc.type == NPCID.Spazmatism && npc.ai[0] != 1f && npc.ai[0] != 2f && npc.ai[0] != 0f) { - Player.AddBuff(BuffID.Bleeding, 300); + Player.AddBuff(BuffID.Bleeding, 600); } else if (npc.type == NPCID.Plantera && npc.life < npc.lifeMax / 2) { - Player.AddBuff(BuffID.Poisoned, 300); + Player.AddBuff(BuffID.Poisoned, 600); } else if (npc.type == NPCID.PlanterasTentacle) { - Player.AddBuff(BuffID.Poisoned, 180); + Player.AddBuff(BuffID.Poisoned, 300); } else if (npc.type == NPCID.AncientDoom) { - Player.AddBuff(ModContent.BuffType(), 120); + Player.AddBuff(ModContent.BuffType(), 180); } else if (npc.type == NPCID.AncientLight) { @@ -6183,11 +6183,11 @@ namespace CalamityMod.CalPlayer } else if (proj.type == ProjectileID.Skull) { - Player.AddBuff(BuffID.Weak, 180); + Player.AddBuff(BuffID.Weak, 300); } else if (proj.type == ProjectileID.ThornBall) { - Player.AddBuff(BuffID.Poisoned, 240); + Player.AddBuff(BuffID.Poisoned, 480); } else if (proj.type == ProjectileID.CultistBossIceMist) { diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 7f7f07a400..7403e1124c 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1375,6 +1375,8 @@ namespace CalamityMod.CalPlayer Player.buffImmune[BuffID.Frozen] = true; Player.buffImmune[BuffID.Chilled] = true; Player.buffImmune[BuffID.Frostburn] = true; + Player.buffImmune[BuffID.CursedInferno] = true; + Player.buffImmune[ModContent.BuffType()] = true; } if (cFreeze) { diff --git a/CalamityMod.cs b/CalamityMod.cs index f4fa52f41e..4559fcf0fc 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -118,10 +118,10 @@ namespace CalamityMod public static int[] sulphurEnemyImmunities = new int[4] { BuffID.Poisoned, BuffID.Venom, ModContent.BuffType(), ModContent.BuffType() }; public static int[] sunkenSeaEnemyImmunities = new int[2] { ModContent.BuffType(), ModContent.BuffType() }; public static int[] abyssEnemyImmunities = new int[1] { ModContent.BuffType() }; - public static int[] cragEnemyImmunities = new int[3] { BuffID.OnFire, ModContent.BuffType(), ModContent.BuffType() }; + public static int[] cragEnemyImmunities = new int[4] { BuffID.OnFire, BuffID.OnFire3, ModContent.BuffType(), ModContent.BuffType() }; public static int[] astralEnemyImmunities = new int[2] { BuffID.Poisoned, ModContent.BuffType() }; public static int[] plagueEnemyImmunities = new int[3] { BuffID.Poisoned, BuffID.Venom, ModContent.BuffType() }; - public static int[] holyEnemyImmunities = new int[3] { BuffID.OnFire, ModContent.BuffType(), ModContent.BuffType() }; + public static int[] holyEnemyImmunities = new int[4] { BuffID.OnFire, BuffID.OnFire3, ModContent.BuffType(), ModContent.BuffType() }; internal static CalamityMod Instance; internal Mod musicMod = null; // This is Calamity's official music mod, CalamityModMusic diff --git a/Items/Accessories/Abaddon.cs b/Items/Accessories/Abaddon.cs index 897a28c1bc..241b5eb172 100644 --- a/Items/Accessories/Abaddon.cs +++ b/Items/Accessories/Abaddon.cs @@ -1,4 +1,5 @@ -using Terraria; +using CalamityMod.Items.Materials; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.GameContent.Creative; @@ -25,5 +26,22 @@ namespace CalamityMod.Items.Accessories } public override void UpdateAccessory(Player player, bool hideVisual) => player.Calamity().abaddon = true; + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(ItemID.GoldCrown). + AddIngredient(5). + AddIngredient(10). + AddTile(TileID.MythrilAnvil). + Register(); + + CreateRecipe(). + AddIngredient(ItemID.PlatinumCrown). + AddIngredient(5). + AddIngredient(10). + AddTile(TileID.MythrilAnvil). + Register(); + } } } diff --git a/Items/Accessories/AlchemicalFlask.cs b/Items/Accessories/AlchemicalFlask.cs index e63a3a5efe..bdcf17d2f3 100644 --- a/Items/Accessories/AlchemicalFlask.cs +++ b/Items/Accessories/AlchemicalFlask.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Alchemical Flask"); - Tooltip.SetDefault("All attacks inflict the Plague debuff\n" + + Tooltip.SetDefault("All attacks inflict the Plague and reduces the damage caused by the Plague\n" + "Projectiles spawn plague seekers on enemy hits"); } @@ -30,6 +30,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.alchFlask = true; + modPlayer.reducedPlagueDmg = true; } public override void AddRecipes() diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index 27a66bb111..e3e10d230d 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories DisplayName.SetDefault("Ambrosial Ampoule"); Tooltip.SetDefault("You emit light\n" + "7% increased damage reduction and increased life regen\n" + - "Freeze, chill and frostburn immunity"); + "Grants immunity to the Frozen, Chilled, Frostburn, Cursed Inferno and Burning Blood debuffs"); } public override void SetDefaults() diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index 48944674a8..faa5351d4a 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -78,6 +78,7 @@ namespace CalamityMod.Items.Accessories player.buffImmune[ModContent.BuffType()] = true; player.buffImmune[ModContent.BuffType()] = true; player.buffImmune[ModContent.BuffType()] = true; + player.buffImmune[ModContent.BuffType()] = true; if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { player.statDefense += 20; } } diff --git a/Items/Accessories/AsgardsValor.cs b/Items/Accessories/AsgardsValor.cs index f623a1490d..fe2ed0c3be 100644 --- a/Items/Accessories/AsgardsValor.cs +++ b/Items/Accessories/AsgardsValor.cs @@ -1,4 +1,5 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -54,6 +55,7 @@ namespace CalamityMod.Items.Accessories player.buffImmune[BuffID.Cursed] = true; player.buffImmune[BuffID.Darkness] = true; player.buffImmune[BuffID.WindPushed] = true; + player.buffImmune[ModContent.BuffType()] = true; player.statLifeMax2 += 20; if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { player.statDefense += 16; } diff --git a/Items/Accessories/CorruptFlask.cs b/Items/Accessories/CorruptFlask.cs index 5e03237e14..588c4e7e1e 100644 --- a/Items/Accessories/CorruptFlask.cs +++ b/Items/Accessories/CorruptFlask.cs @@ -11,7 +11,8 @@ namespace CalamityMod.Items.Accessories { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Corrupt Flask"); - Tooltip.SetDefault("7% increased damage reduction and +3 defense while in the corruption"); + Tooltip.SetDefault("7% increased damage reduction and +3 defense while in the corruption\n" + + "Grants immunity to the Cursed Inferno debuff"); } public override void SetDefaults() @@ -25,6 +26,7 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { + player.buffImmune[BuffID.CursedInferno] = true; if (player.ZoneCorrupt) { player.statDefense += 6; diff --git a/Items/Accessories/CrimsonFlask.cs b/Items/Accessories/CrimsonFlask.cs index 80afc9f14d..b6ac570953 100644 --- a/Items/Accessories/CrimsonFlask.cs +++ b/Items/Accessories/CrimsonFlask.cs @@ -1,4 +1,5 @@ -using Terraria; +using CalamityMod.Buffs.DamageOverTime; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.GameContent.Creative; @@ -11,7 +12,8 @@ namespace CalamityMod.Items.Accessories { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Crimson Flask"); - Tooltip.SetDefault("7% increased damage reduction and +3 defense while in the crimson"); + Tooltip.SetDefault("7% increased damage reduction and +3 defense while in the crimson\n" + + "Grants immunity to the Burning Blood debuff"); } public override void SetDefaults() @@ -25,6 +27,7 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { + player.buffImmune[ModContent.BuffType()] = true; if (player.ZoneCrimson) { player.statDefense += 6; diff --git a/Items/Accessories/ElysianAegis.cs b/Items/Accessories/ElysianAegis.cs index 3fd50b9bf3..6d87a3f3e2 100644 --- a/Items/Accessories/ElysianAegis.cs +++ b/Items/Accessories/ElysianAegis.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Elysian Aegis"); Tooltip.SetDefault("Blessed by the Profaned Flame\n" + - "Grants immunity to knockback, and the Burning, On Fire!, and Holy Flames debuffs\n" + + "Grants immunity to knockback and the Burning, On Fire!, and Holy Flames debuffs\n" + "+30 max life\n" + "Grants a supreme holy flame dash\n" + "Can be used to ram enemies\n" + diff --git a/Items/Accessories/Nucleogenesis.cs b/Items/Accessories/Nucleogenesis.cs index 9fc3358f84..c1c3730443 100644 --- a/Items/Accessories/Nucleogenesis.cs +++ b/Items/Accessories/Nucleogenesis.cs @@ -1,4 +1,5 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Tiles.Furniture.CraftingStations; using Terraria; @@ -15,6 +16,7 @@ namespace CalamityMod.Items.Accessories CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Nucleogenesis"); Tooltip.SetDefault("Increases max minions by 4, does not stack with downgrades\n" + + "Grants immunity to Shadowflame\n" + "15% increased minion damage\n" + "Increased minion knockback\n" + "Minions inflict a variety of debuffs\n" + @@ -40,6 +42,7 @@ namespace CalamityMod.Items.Accessories modPlayer.starTaintedGenerator = true; //astral infection and irradiated player.GetKnockback() += 3f; player.GetDamage(DamageClass.Summon) += 0.15f; + player.buffImmune[ModContent.BuffType()] = true; } public override void AddRecipes() diff --git a/Items/Accessories/PlagueHive.cs b/Items/Accessories/PlagueHive.cs index 4f205e9008..329cc96992 100644 --- a/Items/Accessories/PlagueHive.cs +++ b/Items/Accessories/PlagueHive.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("Plague Hive"); - Tooltip.SetDefault("All attacks inflict the Plague debuff\n" + + Tooltip.SetDefault("All attacks inflict the Plague and reduces the damage caused by the Plague\n" + "Releases bees when damaged that inflict the Plague\n" + "Projectiles spawn plague seekers on enemy hits"); } @@ -41,6 +41,7 @@ namespace CalamityMod.Items.Accessories player.strongBees = true; modPlayer.uberBees = true; modPlayer.alchFlask = true; + modPlayer.reducedPlagueDmg = true; } } } diff --git a/Items/Accessories/StatisCurse.cs b/Items/Accessories/StatisCurse.cs index a4574072b0..a6de9c2406 100644 --- a/Items/Accessories/StatisCurse.cs +++ b/Items/Accessories/StatisCurse.cs @@ -1,4 +1,5 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -17,7 +18,8 @@ namespace CalamityMod.Items.Accessories Tooltip.SetDefault("Increases max minions by 3, does not stack with downgrades\n" + "10% increased minion damage\n" + "Increased minion knockback\n" + - "Minions inflict holy flames and shadowflames on hit"); + "Minions inflict holy flames and shadowflames on hit\n" + + "Grants immunity to Shadowflame"); Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4)); } @@ -37,6 +39,7 @@ namespace CalamityMod.Items.Accessories modPlayer.holyMinions = true; player.GetKnockback() += 2.75f; player.GetDamage(DamageClass.Summon) += 0.1f; + player.buffImmune[ModContent.BuffType()] = true; } public override void AddRecipes() diff --git a/Items/Accessories/TheFirstShadowflame.cs b/Items/Accessories/TheFirstShadowflame.cs index 078ac64a6e..ed308da6b9 100644 --- a/Items/Accessories/TheFirstShadowflame.cs +++ b/Items/Accessories/TheFirstShadowflame.cs @@ -1,4 +1,5 @@ -using CalamityMod.CalPlayer; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; using Terraria; using Terraria.DataStructures; using Terraria.ModLoader; @@ -13,9 +14,10 @@ namespace CalamityMod.Items.Accessories { CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1; DisplayName.SetDefault("The First Shadowflame"); - Tooltip.SetDefault("It is said that in the past, Prometheus descended from the heavens to grant man fire.\n" + - "If that were true, then it is surely the demons of hell that would have risen from below to do the same.\n" + - "Increases max minions by 1 and minions inflict the Shadowflame debuff on enemies."); + Tooltip.SetDefault("It is said that in the past, Prometheus descended from the heavens to grant man fire\n" + + "If that were true, then it is surely the demons of hell that would have risen from below to do the same\n" + + "Increases max minions by 1 and minions inflict the Shadowflame debuff on enemies\n" + + "Grants immunity to Shadowflame"); Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6)); } @@ -32,6 +34,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.shadowMinions = true; + player.buffImmune[ModContent.BuffType()] = true; } } } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 8bd9e31901..18185630fd 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1,5 +1,7 @@ -using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.Potions; using CalamityMod.Buffs.StatBuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Events; using CalamityMod.Items.Accessories; @@ -1119,7 +1121,7 @@ namespace CalamityMod.Items } // Obsidian Skull and its upgrades make you immune to On Fire! - if (item.type == ItemID.ObsidianSkull || item.type == ItemID.ObsidianHorseshoe || item.type == ItemID.ObsidianShield || item.type == ItemID.AnkhShield || item.type == ItemID.ObsidianWaterWalkingBoots || item.type == ItemID.LavaWaders || item.type == ItemID.ObsidianSkullRose || item.type == ItemID.MoltenCharm || item.type == ItemID.LavaSkull || item.type == ItemID.MoltenSkullRose) + if (item.type == ItemID.ObsidianSkull || item.type == ItemID.ObsidianHorseshoe || item.type == ItemID.ObsidianShield || item.type == ItemID.ObsidianWaterWalkingBoots || item.type == ItemID.LavaWaders || item.type == ItemID.ObsidianSkullRose || item.type == ItemID.MoltenCharm || item.type == ItemID.LavaSkull || item.type == ItemID.MoltenSkullRose) player.buffImmune[BuffID.OnFire] = true; if (item.type == ItemID.HellfireTreads) @@ -1128,6 +1130,28 @@ namespace CalamityMod.Items player.buffImmune[BuffID.OnFire] = true; } + // Armor Crunch immunity pre-Golem. + if (item.type == ItemID.ArmorPolish || item.type == ItemID.ArmorBracing || item.type == ItemID.AnkhCharm) + player.buffImmune[ModContent.BuffType()] = true; + + // Ankh Shield extra immunities + if (item.type == ItemID.AnkhShield) + { + player.buffImmune[BuffID.OnFire] = true; + player.buffImmune[ModContent.BuffType()] = true; + } + + // Nightwither immunity pre-Moon Lord and Holy Flames immunity pre-Profaned Guardians. + if (item.type == ItemID.MoonStone) + player.buffImmune[ModContent.BuffType()] = true; + if (item.type == ItemID.SunStone) + player.buffImmune[ModContent.BuffType()] = true; + if (item.type == ItemID.CelestialStone || item.type == ItemID.CelestialShell) + { + player.buffImmune[ModContent.BuffType()] = true; + player.buffImmune[ModContent.BuffType()] = true; + } + if (item.type == ItemID.FairyBoots) modPlayer.fairyBoots = true; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index c6278283b8..d636daec15 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -514,6 +514,20 @@ namespace CalamityMod.Items "Nearby fairies grant increased life regen, defense and movement speed\n" + "Fairies are immune to damage and will no longer flee"); + // Armor Crunch immunity pre-Golem. + if (item.type == ItemID.ArmorPolish || item.type == ItemID.ArmorBracing) + EditTooltipByNum(0, (line) => line.Text += " and Armor Crunch"); + + // Nightwither immunity pre-Moon Lord and Holy Flames immunity pre-Profaned Guardians. + if (item.type == ItemID.MoonStone) + EditTooltipByNum(0, (line) => line.Text += "\nGrants immunity to Nightwither"); + if (item.type == ItemID.SunStone) + EditTooltipByNum(0, (line) => line.Text += "\nGrants immunity to Holy Flames"); + if (item.type == ItemID.CelestialStone) + EditTooltipByNum(0, (line) => line.Text += "\nGrants immunity to Nightwither and Holy Flames"); + if (item.type == ItemID.CelestialShell) + EditTooltipByNum(1, (line) => line.Text += "\nGrants immunity to Nightwither and Holy Flames"); + // Arcane and Magnet Flower buffs. if (item.type == ItemID.ArcaneFlower || item.type == ItemID.MagnetFlower) EditTooltipByNum(0, (line) => line.Text = "20% reduced mana usage"); @@ -651,6 +665,7 @@ namespace CalamityMod.Items EditTooltipByNum(1, (line) => line.Text += "\n10% increased true melee damage"); if (item.type == ItemID.FireGauntlet) { + EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("fire damage", "Hellfire")); string extraLine = "\n10% increased true melee damage"; EditTooltipByNum(1, (line) => line.Text = "14% increased melee damage and speed" + extraLine); } @@ -663,7 +678,7 @@ namespace CalamityMod.Items EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("fire blocks", "the Burning and On Fire! debuffs")); // IT'S HELLFIRE!!! - if (item.type == ItemID.MagmaStone || item.type == ItemID.FireGauntlet || item.type == ItemID.LavaSkull || item.type == ItemID.MoltenSkullRose) + if (item.type == ItemID.MagmaStone || item.type == ItemID.LavaSkull || item.type == ItemID.MoltenSkullRose) EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("fire damage", "Hellfire")); // Yoyo Glove/Bag apply a 0.66x damage multiplier on yoyos diff --git a/Items/Materials/BeetleJuice.cs b/Items/Materials/BeetleJuice.cs index 05214705d5..2d3a4d9b9d 100644 --- a/Items/Materials/BeetleJuice.cs +++ b/Items/Materials/BeetleJuice.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Materials Item.width = 20; Item.height = 20; Item.maxStack = 999; - Item.value = Item.sellPrice(silver: 16); - Item.rare = ItemRarityID.LightRed; + Item.value = Item.sellPrice(silver: 1); + Item.rare = ItemRarityID.Blue; } } } diff --git a/NPCs/Abyss/ToxicMinnow.cs b/NPCs/Abyss/ToxicMinnow.cs index 39f25ba2ee..6e9dfbba5c 100644 --- a/NPCs/Abyss/ToxicMinnow.cs +++ b/NPCs/Abyss/ToxicMinnow.cs @@ -139,7 +139,7 @@ namespace CalamityMod.NPCs.Abyss public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Poisoned, 120, true); + player.AddBuff(BuffID.Poisoned, 240, true); } public override void FindFrame(int frameHeight) diff --git a/NPCs/AquaticScourge/AquaticScourgeBody.cs b/NPCs/AquaticScourge/AquaticScourgeBody.cs index 83a1e825df..527ead22c7 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBody.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBody.cs @@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.AquaticScourge public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs index 697f8c7b06..22a94ce0df 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs @@ -154,7 +154,7 @@ namespace CalamityMod.NPCs.AquaticScourge public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index 666bdc13ef..3efffa20bd 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.AquaticScourge public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 360, true); + player.AddBuff(ModContent.BuffType(), 480, true); } } } diff --git a/NPCs/AquaticScourge/AquaticScourgeTail.cs b/NPCs/AquaticScourge/AquaticScourgeTail.cs index 5532bfc5ba..f3ef2629a1 100644 --- a/NPCs/AquaticScourge/AquaticScourgeTail.cs +++ b/NPCs/AquaticScourge/AquaticScourgeTail.cs @@ -153,7 +153,7 @@ namespace CalamityMod.NPCs.AquaticScourge public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 120, true); + player.AddBuff(ModContent.BuffType(), 180, true); } } } diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index fedd86a473..af3f7d1992 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -498,7 +498,7 @@ namespace CalamityMod.NPCs.AstrumAureus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 240, true); + player.AddBuff(ModContent.BuffType(), 480, true); } } } diff --git a/NPCs/AstrumAureus/AureusSpawn.cs b/NPCs/AstrumAureus/AureusSpawn.cs index e4192c0c57..8e3287d506 100644 --- a/NPCs/AstrumAureus/AureusSpawn.cs +++ b/NPCs/AstrumAureus/AureusSpawn.cs @@ -360,7 +360,7 @@ namespace CalamityMod.NPCs.AstrumAureus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 120, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override bool CheckDead() diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs index 8616d18416..d01958fbc9 100644 --- a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs @@ -211,7 +211,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 300, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index db980941fc..e4c6060367 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -305,7 +305,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 240, true); + player.AddBuff(ModContent.BuffType(), 480, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs index c98a65b6c1..db230001c9 100644 --- a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs @@ -192,7 +192,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 120, true); + player.AddBuff(ModContent.BuffType(), 180, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index a81eb1c5f6..b10324c574 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -99,7 +99,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); } public override void FindFrame(int frameHeight) // 9 total frames diff --git a/NPCs/Calamitas/CalamitasRun.cs b/NPCs/Calamitas/CalamitasRun.cs index 227cb93150..52bf5f0916 100644 --- a/NPCs/Calamitas/CalamitasRun.cs +++ b/NPCs/Calamitas/CalamitasRun.cs @@ -205,7 +205,7 @@ namespace CalamityMod.NPCs.Calamitas public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); } } } diff --git a/NPCs/Calamitas/CalamitasRun2.cs b/NPCs/Calamitas/CalamitasRun2.cs index 64c53994a3..afdd6f8f2f 100644 --- a/NPCs/Calamitas/CalamitasRun2.cs +++ b/NPCs/Calamitas/CalamitasRun2.cs @@ -204,7 +204,7 @@ namespace CalamityMod.NPCs.Calamitas public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); } } } diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index 7714484315..de8959db1c 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -292,7 +292,7 @@ namespace CalamityMod.NPCs.Calamitas public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index bfff094fcd..ddb82e365a 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -699,11 +699,11 @@ namespace CalamityMod.NPCs CalamityLists.AquaticScourgeIDs.Contains(npc.type) || CalamityLists.AstrumDeusIDs.Contains(npc.type) || CalamityLists.StormWeaverIDs.Contains(npc.type); bool slimeGod = CalamityLists.SlimeGodIDs.Contains(npc.type); - double heatDamageMult = npc.drippingSlime ? ((wormBoss || slimeGod) ? 3D : 5D) : 1D; + double heatDamageMult = npc.drippingSlime ? ((wormBoss || slimeGod) ? 2D : 5D) : 1D; if (VulnerableToHeat.HasValue) { if (VulnerableToHeat.Value) - heatDamageMult *= npc.drippingSlime ? ((wormBoss || slimeGod) ? 1.5 : 2D) : ((wormBoss || slimeGod) ? 3D : 5D); + heatDamageMult *= npc.drippingSlime ? ((wormBoss || slimeGod) ? 1.5 : 2D) : ((wormBoss || slimeGod) ? 2D : 5D); else heatDamageMult *= npc.drippingSlime ? 0.2 : 0.5; } @@ -712,26 +712,26 @@ namespace CalamityMod.NPCs if (VulnerableToCold.HasValue) { if (VulnerableToCold.Value) - coldDamageMult *= wormBoss ? 3D : 5D; + coldDamageMult *= wormBoss ? 2D : 5D; else coldDamageMult *= 0.5; } - double sicknessDamageMult = irradiated > 0 ? (wormBoss ? 3D : 5D) : 1D; + double sicknessDamageMult = irradiated > 0 ? (wormBoss ? 2D : 5D) : 1D; if (VulnerableToSickness.HasValue) { if (VulnerableToSickness.Value) - sicknessDamageMult *= irradiated > 0 ? (wormBoss ? 1.5 : 2D) : (wormBoss ? 3D : 5D); + sicknessDamageMult *= irradiated > 0 ? (wormBoss ? 1.5 : 2D) : (wormBoss ? 2D : 5D); else sicknessDamageMult *= irradiated > 0 ? 0.2 : 0.5; } bool increasedElectricityDamage = npc.wet || npc.honeyWet || npc.lavaWet || npc.dripping; - double electricityDamageMult = increasedElectricityDamage ? (wormBoss ? 3D : 5D) : 1D; + double electricityDamageMult = increasedElectricityDamage ? (wormBoss ? 2D : 5D) : 1D; if (VulnerableToElectricity.HasValue) { if (VulnerableToElectricity.Value) - electricityDamageMult *= increasedElectricityDamage ? (wormBoss ? 1.5 : 2D) : (wormBoss ? 3D : 5D); + electricityDamageMult *= increasedElectricityDamage ? (wormBoss ? 1.5 : 2D) : (wormBoss ? 2D : 5D); else electricityDamageMult *= increasedElectricityDamage ? 0.2 : 0.5; } @@ -740,7 +740,7 @@ namespace CalamityMod.NPCs if (VulnerableToWater.HasValue) { if (VulnerableToWater.Value) - waterDamageMult *= wormBoss ? 3D : 5D; + waterDamageMult *= wormBoss ? 2D : 5D; else waterDamageMult *= 0.5; } @@ -765,7 +765,7 @@ namespace CalamityMod.NPCs // On Fire if (npc.onFire) { - int baseOnFireDoTValue = (int)((npc.oiled ? 28 : 8) * vanillaHeatDamageMult); + int baseOnFireDoTValue = (int)((npc.oiled ? 58 : 8) * vanillaHeatDamageMult); npc.lifeRegen -= baseOnFireDoTValue; if (damage < baseOnFireDoTValue / 4) damage = baseOnFireDoTValue / 4; @@ -774,16 +774,25 @@ namespace CalamityMod.NPCs // Cursed Inferno if (npc.onFire2) { - int baseCursedInfernoDoTValue = (int)((npc.oiled ? 36 : 12) * vanillaHeatDamageMult); + int baseCursedInfernoDoTValue = (int)((npc.oiled ? 62 : 12) * vanillaHeatDamageMult); npc.lifeRegen -= baseCursedInfernoDoTValue; if (damage < baseCursedInfernoDoTValue / 4) damage = baseCursedInfernoDoTValue / 4; } + // Hellfire + if (npc.onFire3) + { + int baseHellfireDoTValue = (int)((npc.oiled ? 80 : 30) * vanillaHeatDamageMult); + npc.lifeRegen -= baseHellfireDoTValue; + if (damage < baseHellfireDoTValue / 4) + damage = baseHellfireDoTValue / 4; + } + // Shadowflame if (npc.shadowFlame) { - int baseShadowFlameDoTValue = (int)((npc.oiled ? 58 : 30) * vanillaHeatDamageMult); + int baseShadowFlameDoTValue = (int)((npc.oiled ? 80 : 30) * vanillaHeatDamageMult); npc.lifeRegen -= baseShadowFlameDoTValue; if (damage < baseShadowFlameDoTValue / 4) damage = baseShadowFlameDoTValue / 4; @@ -792,21 +801,21 @@ namespace CalamityMod.NPCs // Brimstone Flames if (bFlames > 0) { - int baseBrimstoneFlamesDoTValue = (int)((npc.oiled ? 92 : 40) * heatDamageMult); + int baseBrimstoneFlamesDoTValue = (int)((npc.oiled ? 90 : 40) * heatDamageMult); ApplyDPSDebuff(baseBrimstoneFlamesDoTValue, baseBrimstoneFlamesDoTValue / 5, ref npc.lifeRegen, ref damage); } // Holy Flames if (hFlames > 0) { - int baseHolyFlamesDoTValue = (int)((npc.oiled ? 114 : 50) * heatDamageMult); + int baseHolyFlamesDoTValue = (int)((npc.oiled ? 100 : 50) * heatDamageMult); ApplyDPSDebuff(baseHolyFlamesDoTValue, baseHolyFlamesDoTValue / 5, ref npc.lifeRegen, ref damage); } // God Slayer Inferno if (gsInferno > 0) { - int baseGodSlayerInfernoDoTValue = (int)((npc.oiled ? 514 : 250) * heatDamageMult); + int baseGodSlayerInfernoDoTValue = (int)((npc.oiled ? 500 : 250) * heatDamageMult); ApplyDPSDebuff(baseGodSlayerInfernoDoTValue, baseGodSlayerInfernoDoTValue / 5, ref npc.lifeRegen, ref damage); } @@ -820,14 +829,14 @@ namespace CalamityMod.NPCs // Demon Flames if (dFlames > 0) { - int baseDemonFlamesDoTValue = (int)((npc.oiled ? 5012 : 2500) * heatDamageMult); + int baseDemonFlamesDoTValue = (int)((npc.oiled ? 5000 : 2500) * heatDamageMult); ApplyDPSDebuff(baseDemonFlamesDoTValue, baseDemonFlamesDoTValue / 5, ref npc.lifeRegen, ref damage); } // Banishing Fire if (banishingFire > 0) { - int baseBanishingFireDoTValue = (int)((npc.oiled ? (npc.lifeMax >= 1000000 ? (npc.lifeMax / 500) + 1512 : 5512) : (npc.lifeMax >= 1000000 ? npc.lifeMax / 500 : 4000)) * heatDamageMult); + int baseBanishingFireDoTValue = (int)((npc.oiled ? (npc.lifeMax >= 1000000 ? (npc.lifeMax / 500) + 1500 : 5500) : (npc.lifeMax >= 1000000 ? npc.lifeMax / 500 : 4000)) * heatDamageMult); ApplyDPSDebuff(baseBanishingFireDoTValue, baseBanishingFireDoTValue / 5, ref npc.lifeRegen, ref damage); } @@ -841,7 +850,7 @@ namespace CalamityMod.NPCs // Frostburn if (npc.onFrostBurn) { - int baseFrostBurnDoTValue = (int)((npc.oiled ? 44 : 16) * vanillaColdDamageMult); + int baseFrostBurnDoTValue = (int)((npc.oiled ? 66 : 16) * vanillaColdDamageMult); npc.lifeRegen -= baseFrostBurnDoTValue; if (damage < baseFrostBurnDoTValue / 4) damage = baseFrostBurnDoTValue / 4; @@ -937,7 +946,7 @@ namespace CalamityMod.NPCs if (npc.lifeRegen > -1) npc.lifeRegen = -1; - // Every other EoW body segment and the head segments are immune to DoT + // Every other EoW body segment and the head segments are immune to DoT. if (((npc.ai[2] % 2f == 0f && npc.type == NPCID.EaterofWorldsBody) || npc.type == NPCID.EaterofWorldsHead) && (CalamityWorld.death || BossRushEvent.BossRushActive)) npc.lifeRegen = 0; } @@ -4012,14 +4021,14 @@ namespace CalamityMod.NPCs switch (npc.type) { case NPCID.Golem: - target.AddBuff(BuffType(), 300); + target.AddBuff(BuffType(), 480); break; case NPCID.GolemHead: case NPCID.GolemHeadFree: case NPCID.GolemFistRight: case NPCID.GolemFistLeft: - target.AddBuff(BuffType(), 180); + target.AddBuff(BuffType(), 240); break; case NPCID.Lavabat: diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index c6eebb8170..2773b5a27f 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -307,8 +307,9 @@ namespace CalamityMod.NPCs #endregion #region Jungle - // Spiked Jungle Slime, Arapaima + // Jungle Slime, Spiked Jungle Slime, Arapaima // Murky Paste @ 33.33% Normal, 50% Expert+ + case NPCID.JungleSlime: case NPCID.SpikedJungleSlime: case NPCID.Arapaima: npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType(), 3, 2)); @@ -326,9 +327,12 @@ namespace CalamityMod.NPCs npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType(), 2, 1)); break; - // Derpling + // Derpling, Cochineal Beetle, Cyan Beetle, Lac Beetle // Beetle Juice @ 33.33% Normal, 50% Expert+ case NPCID.Derpling: + case NPCID.CochinealBeetle: + case NPCID.CyanBeetle: + case NPCID.LacBeetle: npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType(), 3, 2)); break; diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 1a3d4734e6..e41643ab7d 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -1138,8 +1138,8 @@ namespace CalamityMod.NPCs.Cryogen public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Frostburn, 120, true); - player.AddBuff(BuffID.Chilled, 90, true); + player.AddBuff(BuffID.Frostburn, 240, true); + player.AddBuff(BuffID.Chilled, 120, true); } } } diff --git a/NPCs/Cryogen/CryogenIce.cs b/NPCs/Cryogen/CryogenIce.cs index b49df189c9..238579e87e 100644 --- a/NPCs/Cryogen/CryogenIce.cs +++ b/NPCs/Cryogen/CryogenIce.cs @@ -90,8 +90,8 @@ namespace CalamityMod.NPCs.Cryogen public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Frostburn, 90, true); - player.AddBuff(BuffID.Chilled, 60, true); + player.AddBuff(BuffID.Frostburn, 240, true); + player.AddBuff(BuffID.Chilled, 120, true); } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index 04b7008725..490b795e1b 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -207,7 +207,7 @@ namespace CalamityMod.NPCs.DesertScourge public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Bleeding, 120, true); + player.AddBuff(BuffID.Bleeding, 240, true); } } } diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 83e2bcdb8e..70deab877c 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -676,7 +676,7 @@ namespace CalamityMod.NPCs.DesertScourge public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Bleeding, 300, true); + player.AddBuff(BuffID.Bleeding, 600, true); } } } diff --git a/NPCs/DesertScourge/DesertScourgeTail.cs b/NPCs/DesertScourge/DesertScourgeTail.cs index ce210b5371..d241b41404 100644 --- a/NPCs/DesertScourge/DesertScourgeTail.cs +++ b/NPCs/DesertScourge/DesertScourgeTail.cs @@ -170,7 +170,7 @@ namespace CalamityMod.NPCs.DesertScourge public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Bleeding, 90, true); + player.AddBuff(BuffID.Bleeding, 180, true); } } } diff --git a/NPCs/GreatSandShark/GreatSandShark.cs b/NPCs/GreatSandShark/GreatSandShark.cs index 8a8809fe5c..8c90df0afb 100644 --- a/NPCs/GreatSandShark/GreatSandShark.cs +++ b/NPCs/GreatSandShark/GreatSandShark.cs @@ -621,7 +621,7 @@ namespace CalamityMod.NPCs.GreatSandShark public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Bleeding, 300, true); + player.AddBuff(BuffID.Bleeding, 600, true); } } } diff --git a/NPCs/Leviathan/AquaticAberration.cs b/NPCs/Leviathan/AquaticAberration.cs index 195be18c16..7c1e53fc04 100644 --- a/NPCs/Leviathan/AquaticAberration.cs +++ b/NPCs/Leviathan/AquaticAberration.cs @@ -249,7 +249,7 @@ namespace CalamityMod.NPCs.Leviathan public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Bleeding, 120, true); + player.AddBuff(BuffID.Bleeding, 240, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 5a91e66bf7..89b0d281ee 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -782,7 +782,7 @@ namespace CalamityMod.NPCs.Leviathan public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(BuffID.Bleeding, 240, true); + target.AddBuff(BuffID.Bleeding, 600, true); } public override bool CheckActive() diff --git a/NPCs/NormalNPCs/CrimulanBlightSlime.cs b/NPCs/NormalNPCs/CrimulanBlightSlime.cs index eca78c1547..4d824e41c8 100644 --- a/NPCs/NormalNPCs/CrimulanBlightSlime.cs +++ b/NPCs/NormalNPCs/CrimulanBlightSlime.cs @@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Cursed, 60, true); + player.AddBuff(BuffID.Darkness, 240, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/NormalNPCs/EbonianBlightSlime.cs b/NPCs/NormalNPCs/EbonianBlightSlime.cs index abb3cdfce7..8c3279d2f9 100644 --- a/NPCs/NormalNPCs/EbonianBlightSlime.cs +++ b/NPCs/NormalNPCs/EbonianBlightSlime.cs @@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Weak, 120, true); + player.AddBuff(BuffID.Weak, 240, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/NormalNPCs/ScornEater.cs b/NPCs/NormalNPCs/ScornEater.cs index 1ce4dab53c..2249b22849 100644 --- a/NPCs/NormalNPCs/ScornEater.cs +++ b/NPCs/NormalNPCs/ScornEater.cs @@ -200,7 +200,6 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyNPCLoot(NPCLoot npcLoot) { - npcLoot.Add(ItemID.AdhesiveBandage, 50); npcLoot.Add(ModContent.ItemType(), 1, 2, 4); } } diff --git a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs index c6a755316c..c13949bdd1 100644 --- a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs +++ b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs @@ -245,7 +245,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/PlaguebringerGoliath/PlagueMine.cs b/NPCs/PlaguebringerGoliath/PlagueMine.cs index 6114092e5e..306adfb115 100644 --- a/NPCs/PlaguebringerGoliath/PlagueMine.cs +++ b/NPCs/PlaguebringerGoliath/PlagueMine.cs @@ -129,7 +129,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 240, true); + player.AddBuff(ModContent.BuffType(), 300, true); } public override bool CheckDead() diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index e09f8a0547..cfd776cf61 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -1263,7 +1263,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 300, true); + player.AddBuff(ModContent.BuffType(), 480, true); } } } diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index a056f22133..dd02574f11 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -782,7 +782,7 @@ namespace CalamityMod.NPCs.Ravager public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 300, true); + player.AddBuff(ModContent.BuffType(), 480, true); } public override void BossLoot(ref string name, ref int potionType) diff --git a/NPCs/Ravager/RavagerClawLeft.cs b/NPCs/Ravager/RavagerClawLeft.cs index 84cc75147e..8e97005578 100644 --- a/NPCs/Ravager/RavagerClawLeft.cs +++ b/NPCs/Ravager/RavagerClawLeft.cs @@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.Ravager public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/Ravager/RavagerClawRight.cs b/NPCs/Ravager/RavagerClawRight.cs index 4b41a07fa0..2df0fbec92 100644 --- a/NPCs/Ravager/RavagerClawRight.cs +++ b/NPCs/Ravager/RavagerClawRight.cs @@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.Ravager public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/Ravager/RockPillar.cs b/NPCs/Ravager/RockPillar.cs index 39a0c93322..25bfda9a41 100644 --- a/NPCs/Ravager/RockPillar.cs +++ b/NPCs/Ravager/RockPillar.cs @@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.Ravager public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(ModContent.BuffType(), 180, true); + player.AddBuff(ModContent.BuffType(), 240, true); SoundEngine.PlaySound(SoundID.Item14, NPC.position); NPC.ai[0] = 0f; NPC.life = 0; diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 830a50065f..11d0dcbe06 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -708,8 +708,8 @@ namespace CalamityMod.NPCs.SlimeGod public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.VortexDebuff, 120, true); - player.AddBuff(BuffID.Weak, 120, true); - player.AddBuff(BuffID.Darkness, 120, true); + player.AddBuff(BuffID.Weak, 240, true); + player.AddBuff(BuffID.Darkness, 240, true); } } } diff --git a/NPCs/SlimeGod/SlimeGodRunSplit.cs b/NPCs/SlimeGod/SlimeGodRunSplit.cs index c730f411b7..c2325657c5 100644 --- a/NPCs/SlimeGod/SlimeGodRunSplit.cs +++ b/NPCs/SlimeGod/SlimeGodRunSplit.cs @@ -593,7 +593,7 @@ namespace CalamityMod.NPCs.SlimeGod public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Darkness, 120, true); + player.AddBuff(BuffID.Darkness, 240, true); } } } diff --git a/NPCs/SlimeGod/SlimeGodSplit.cs b/NPCs/SlimeGod/SlimeGodSplit.cs index f7abbdc1eb..537aa1b9b5 100644 --- a/NPCs/SlimeGod/SlimeGodSplit.cs +++ b/NPCs/SlimeGod/SlimeGodSplit.cs @@ -590,7 +590,7 @@ namespace CalamityMod.NPCs.SlimeGod public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Weak, 120, true); + player.AddBuff(BuffID.Weak, 240, true); } } } diff --git a/Projectiles/Boss/AbyssBallVolley.cs b/Projectiles/Boss/AbyssBallVolley.cs index cf2a59118a..b5d9a58001 100644 --- a/Projectiles/Boss/AbyssBallVolley.cs +++ b/Projectiles/Boss/AbyssBallVolley.cs @@ -1,4 +1,4 @@ -using CalamityMod.Events; +using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.timeLeft < 60) return; - target.AddBuff(BuffID.Weak, 120); + target.AddBuff(BuffID.Weak, 180); } } } diff --git a/Projectiles/Boss/AbyssBallVolley2.cs b/Projectiles/Boss/AbyssBallVolley2.cs index 6fb91d2eda..f3c3e62f94 100644 --- a/Projectiles/Boss/AbyssBallVolley2.cs +++ b/Projectiles/Boss/AbyssBallVolley2.cs @@ -1,4 +1,4 @@ -using CalamityMod.Events; +using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.timeLeft < 60) return; - target.AddBuff(BuffID.Darkness, 120); + target.AddBuff(BuffID.Darkness, 180); } } } diff --git a/Projectiles/Boss/AstralGodRay.cs b/Projectiles/Boss/AstralGodRay.cs index 761f405f26..89afb6b5af 100644 --- a/Projectiles/Boss/AstralGodRay.cs +++ b/Projectiles/Boss/AstralGodRay.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 180); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Boss/BrimstoneBall.cs b/Projectiles/Boss/BrimstoneBall.cs index fe32c26c7e..c2e3c60aa9 100644 --- a/Projectiles/Boss/BrimstoneBall.cs +++ b/Projectiles/Boss/BrimstoneBall.cs @@ -1,4 +1,4 @@ -using CalamityMod.Dusts; +using CalamityMod.Dusts; using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; @@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Boss/BrimstoneBarrage.cs b/Projectiles/Boss/BrimstoneBarrage.cs index 38586ed524..a60ca266d6 100644 --- a/Projectiles/Boss/BrimstoneBarrage.cs +++ b/Projectiles/Boss/BrimstoneBarrage.cs @@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Boss target.AddBuff(ModContent.BuffType(), 120); } else - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 180); } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Boss/BrimstoneFire.cs b/Projectiles/Boss/BrimstoneFire.cs index 5a97d54c76..ea54e65550 100644 --- a/Projectiles/Boss/BrimstoneFire.cs +++ b/Projectiles/Boss/BrimstoneFire.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using Terraria; using Terraria.ModLoader; @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Boss/BrimstoneHellblast.cs b/Projectiles/Boss/BrimstoneHellblast.cs index 72df4e6d1b..e3b80f91ee 100644 --- a/Projectiles/Boss/BrimstoneHellblast.cs +++ b/Projectiles/Boss/BrimstoneHellblast.cs @@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Boss target.AddBuff(ModContent.BuffType(), 120); } else - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 180); } public override void Kill(int timeLeft) diff --git a/Projectiles/Boss/BrimstoneHellblast2.cs b/Projectiles/Boss/BrimstoneHellblast2.cs index de381751c1..3d6fc75883 100644 --- a/Projectiles/Boss/BrimstoneHellblast2.cs +++ b/Projectiles/Boss/BrimstoneHellblast2.cs @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Boss target.AddBuff(ModContent.BuffType(), 120); } else - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 180); } public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit) diff --git a/Projectiles/Boss/BrimstoneHellfireball.cs b/Projectiles/Boss/BrimstoneHellfireball.cs index 8845460165..e0431980b1 100644 --- a/Projectiles/Boss/BrimstoneHellfireball.cs +++ b/Projectiles/Boss/BrimstoneHellfireball.cs @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 300); } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Boss/FrostMist.cs b/Projectiles/Boss/FrostMist.cs index 4127fec475..a2d566d7e9 100644 --- a/Projectiles/Boss/FrostMist.cs +++ b/Projectiles/Boss/FrostMist.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; @@ -129,7 +129,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.Opacity != 1f) return; - target.AddBuff(BuffID.Frostburn, 120, true); + target.AddBuff(BuffID.Frostburn, 180, true); target.AddBuff(BuffID.Chilled, 90, true); } } diff --git a/Projectiles/Boss/HellfireExplosion.cs b/Projectiles/Boss/HellfireExplosion.cs index 62c273c0d2..aad9929c86 100644 --- a/Projectiles/Boss/HellfireExplosion.cs +++ b/Projectiles/Boss/HellfireExplosion.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; using System; using System.IO; @@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 300); } } } diff --git a/Projectiles/Boss/HiveBombGoliath.cs b/Projectiles/Boss/HiveBombGoliath.cs index e9db006a8e..910215d170 100644 --- a/Projectiles/Boss/HiveBombGoliath.cs +++ b/Projectiles/Boss/HiveBombGoliath.cs @@ -167,7 +167,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Boss/HolyBlast.cs b/Projectiles/Boss/HolyBlast.cs index 4983cdf4f3..1c942768a2 100644 --- a/Projectiles/Boss/HolyBlast.cs +++ b/Projectiles/Boss/HolyBlast.cs @@ -132,7 +132,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { int buffType = (Main.dayTime && !CalamityWorld.malice) ? ModContent.BuffType() : ModContent.BuffType(); - target.AddBuff(buffType, 240); + target.AddBuff(buffType, 480); } public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit) diff --git a/Projectiles/Boss/HolyBomb.cs b/Projectiles/Boss/HolyBomb.cs index 036b4b9f33..5cdc9dcde7 100644 --- a/Projectiles/Boss/HolyBomb.cs +++ b/Projectiles/Boss/HolyBomb.cs @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { int buffType = ((Main.dayTime && !CalamityWorld.malice) || !NPC.AnyNPCs(ModContent.NPCType())) ? ModContent.BuffType() : ModContent.BuffType(); - target.AddBuff(buffType, 180); + target.AddBuff(buffType, 240); } public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit) diff --git a/Projectiles/Boss/HolyFlare.cs b/Projectiles/Boss/HolyFlare.cs index a5be085661..a37f53143d 100644 --- a/Projectiles/Boss/HolyFlare.cs +++ b/Projectiles/Boss/HolyFlare.cs @@ -117,7 +117,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { int buffType = ((Main.dayTime && !CalamityWorld.malice) || !NPC.AnyNPCs(ModContent.NPCType())) ? ModContent.BuffType() : ModContent.BuffType(); - target.AddBuff(buffType, 120); + target.AddBuff(buffType, 180); } public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit) diff --git a/Projectiles/Boss/IceBlast.cs b/Projectiles/Boss/IceBlast.cs index 6a6557b02d..27045f6b87 100644 --- a/Projectiles/Boss/IceBlast.cs +++ b/Projectiles/Boss/IceBlast.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; @@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(BuffID.Frostburn, 90, true); + target.AddBuff(BuffID.Frostburn, 120, true); target.AddBuff(BuffID.Chilled, 60, true); } diff --git a/Projectiles/Boss/IceBomb.cs b/Projectiles/Boss/IceBomb.cs index 80784a4380..89e46d8d04 100644 --- a/Projectiles/Boss/IceBomb.cs +++ b/Projectiles/Boss/IceBomb.cs @@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles.Boss { if (Projectile.ai[0] >= 120f) { - target.AddBuff(BuffID.Frostburn, 120, true); + target.AddBuff(BuffID.Frostburn, 180, true); target.AddBuff(BuffID.Chilled, 90, true); target.AddBuff(ModContent.BuffType(), 60); } diff --git a/Projectiles/Boss/IceRain.cs b/Projectiles/Boss/IceRain.cs index 43ca4f59d8..d035ccb360 100644 --- a/Projectiles/Boss/IceRain.cs +++ b/Projectiles/Boss/IceRain.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; @@ -116,8 +116,8 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(BuffID.Frostburn, 60, true); - target.AddBuff(BuffID.Chilled, 30, true); + target.AddBuff(BuffID.Frostburn, 120, true); + target.AddBuff(BuffID.Chilled, 60, true); } } } diff --git a/Projectiles/Boss/MoltenBlob.cs b/Projectiles/Boss/MoltenBlob.cs index c9430cdf27..8fbc0eafe3 100644 --- a/Projectiles/Boss/MoltenBlob.cs +++ b/Projectiles/Boss/MoltenBlob.cs @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { int buffType = (Main.dayTime && !CalamityWorld.malice) ? ModContent.BuffType() : ModContent.BuffType(); - target.AddBuff(buffType, 90); + target.AddBuff(buffType, 120); } public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit) diff --git a/Projectiles/Boss/ProvidenceHolyRay.cs b/Projectiles/Boss/ProvidenceHolyRay.cs index e4b87e1d92..b2358b7074 100644 --- a/Projectiles/Boss/ProvidenceHolyRay.cs +++ b/Projectiles/Boss/ProvidenceHolyRay.cs @@ -211,7 +211,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { int buffType = (Main.dayTime && !CalamityWorld.malice) ? ModContent.BuffType() : ModContent.BuffType(); - target.AddBuff(buffType, 420); + target.AddBuff(buffType, 600); } public override bool CanHitPlayer(Player target) => Projectile.scale >= 0.5f; diff --git a/Projectiles/Boss/ShadeNimbusHostile.cs b/Projectiles/Boss/ShadeNimbusHostile.cs index ee495c594a..401f4f8d70 100644 --- a/Projectiles/Boss/ShadeNimbusHostile.cs +++ b/Projectiles/Boss/ShadeNimbusHostile.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(ModContent.BuffType(), 60); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/ShaderainHostile.cs b/Projectiles/Boss/ShaderainHostile.cs index a6cbd0eab9..1ca242bdd9 100644 --- a/Projectiles/Boss/ShaderainHostile.cs +++ b/Projectiles/Boss/ShaderainHostile.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - target.AddBuff(ModContent.BuffType(), 60); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/ShadowflameFireball.cs b/Projectiles/Boss/ShadowflameFireball.cs index 0938d964af..fb94a20b62 100644 --- a/Projectiles/Boss/ShadowflameFireball.cs +++ b/Projectiles/Boss/ShadowflameFireball.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -90,12 +90,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - if (Main.rand.NextBool(6)) - target.AddBuff(ModContent.BuffType(), 180, true); - else if (Main.rand.NextBool(4)) - target.AddBuff(ModContent.BuffType(), 120, true); - else if (Main.rand.NextBool(2)) - target.AddBuff(ModContent.BuffType(), 60, true); + target.AddBuff(ModContent.BuffType(), 180, true); } public override void Kill(int timeLeft) diff --git a/Projectiles/Boss/Shadowflamethrower.cs b/Projectiles/Boss/Shadowflamethrower.cs index ab6b03e9f7..47efc4b6cb 100644 --- a/Projectiles/Boss/Shadowflamethrower.cs +++ b/Projectiles/Boss/Shadowflamethrower.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; @@ -71,12 +71,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { - if (Main.rand.NextBool(6)) - target.AddBuff(ModContent.BuffType(), 240, true); - else if (Main.rand.NextBool(4)) - target.AddBuff(ModContent.BuffType(), 150, true); - else if (Main.rand.NextBool(2)) - target.AddBuff(ModContent.BuffType(), 90, true); + target.AddBuff(ModContent.BuffType(), 300, true); } } } diff --git a/Projectiles/Boss/SporeGasPlantera.cs b/Projectiles/Boss/SporeGasPlantera.cs index e6a388d98d..a5f4419057 100644 --- a/Projectiles/Boss/SporeGasPlantera.cs +++ b/Projectiles/Boss/SporeGasPlantera.cs @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Boss public override void OnHitPlayer(Player target, int damage, bool crit) { if (Projectile.ai[1] <= 1800f && Projectile.ai[1] > 120f) - target.AddBuff(BuffID.Poisoned, 240); + target.AddBuff(BuffID.Poisoned, 480); } } } diff --git a/Projectiles/Boss/ToxicCloud.cs b/Projectiles/Boss/ToxicCloud.cs index d375f8fde1..f960e5e72c 100644 --- a/Projectiles/Boss/ToxicCloud.cs +++ b/Projectiles/Boss/ToxicCloud.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -91,8 +91,8 @@ namespace CalamityMod.Projectiles.Boss { if (Projectile.Opacity == 0.9f) { - target.AddBuff(BuffID.Poisoned, 120); - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(BuffID.Poisoned, 240); + target.AddBuff(ModContent.BuffType(), 240); } } } diff --git a/Projectiles/Enemy/ToxicMinnowCloud.cs b/Projectiles/Enemy/ToxicMinnowCloud.cs index 356937253b..d3700f8851 100644 --- a/Projectiles/Enemy/ToxicMinnowCloud.cs +++ b/Projectiles/Enemy/ToxicMinnowCloud.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Enemy public override void OnHitPlayer(Player target, int damage, bool crit) { if (Projectile.alpha == 80) - target.AddBuff(BuffID.Poisoned, 120); + target.AddBuff(BuffID.Poisoned, 240); } public override bool? CanHitNPC(NPC target) => Projectile.alpha == 80; @@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Enemy public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { if (Projectile.alpha == 80) - target.AddBuff(BuffID.Poisoned, 120); + target.AddBuff(BuffID.Poisoned, 240); } } } diff --git a/Tiles/Ores/AstralOre.cs b/Tiles/Ores/AstralOre.cs index 81e3e09744..580fd8ce0f 100644 --- a/Tiles/Ores/AstralOre.cs +++ b/Tiles/Ores/AstralOre.cs @@ -68,7 +68,7 @@ namespace CalamityMod.Tiles.Ores public override void FloorVisuals(Player player) { - player.AddBuff(ModContent.BuffType(), 1); + player.AddBuff(ModContent.BuffType(), 2); base.FloorVisuals(player); } diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index 104ae765a1..eb38a0b62a 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -1307,8 +1307,8 @@ namespace CalamityMod r = CreateRecipe(ItemID.AdhesiveBandage); r.AddIngredient(ItemID.Silk, 10); r.AddIngredient(ItemID.Gel, 50); - r.AddIngredient(ItemID.GreaterHealingPotion); - r.AddTile(TileID.MythrilAnvil); + r.AddIngredient(ItemID.HealingPotion); + r.AddTile(TileID.Anvils); r.Register(); // Bezoar (poison) @@ -1332,14 +1332,14 @@ namespace CalamityMod r.AddIngredient(ItemID.Blinkroot, 5); r.AddIngredient(ItemID.Daybloom, 5); r.AddIngredient(ModContent.ItemType(), 3); - r.AddTile(TileID.MythrilAnvil); + r.AddTile(TileID.Anvils); r.Register(); // Blindfold (darkness) r = CreateRecipe(ItemID.Blindfold); r.AddIngredient(ItemID.Silk, 30); - r.AddIngredient(ItemID.SoulofNight, 5); - r.AddTile(TileID.MythrilAnvil); + r.AddIngredient(ItemID.TatteredCloth, 3); + r.AddTile(TileID.Anvils); r.Register(); // Trifold Map (confusion)