1 - Many debuff immunity accessories are now available prior to the bosses that inflict those respective debuffs.

2 - Adjusted various debuff durations.
This commit is contained in:
mountaindrew10 committed 2022-05-05 02:32:42 -05:00
1 parent 4b973a8fd9
commit ec9a815080
84 files changed
+229 -149

No files matched your search

+6 -6
View File
@@ -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<Shadowflame>(), 120);
Player.AddBuff(ModContent.BuffType<Shadowflame>(), 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)
{
+2
View File
@@ -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<BurningBlood>()] = true;
}
if (cFreeze)
{
+2 -2
View File
@@ -118,10 +118,10 @@ namespace CalamityMod
public static int[] sulphurEnemyImmunities = new int[4] { BuffID.Poisoned, BuffID.Venom, ModContent.BuffType<SulphuricPoisoning>(), ModContent.BuffType<Irradiated>() };
public static int[] sunkenSeaEnemyImmunities = new int[2] { ModContent.BuffType<Eutrophication>(), ModContent.BuffType<PearlAura>() };
public static int[] abyssEnemyImmunities = new int[1] { ModContent.BuffType<CrushDepth>() };
public static int[] cragEnemyImmunities = new int[3] { BuffID.OnFire, ModContent.BuffType<AbyssalFlames>(), ModContent.BuffType<BrimstoneFlames>() };
public static int[] cragEnemyImmunities = new int[4] { BuffID.OnFire, BuffID.OnFire3, ModContent.BuffType<AbyssalFlames>(), ModContent.BuffType<BrimstoneFlames>() };
public static int[] astralEnemyImmunities = new int[2] { BuffID.Poisoned, ModContent.BuffType<AstralInfectionDebuff>() };
public static int[] plagueEnemyImmunities = new int[3] { BuffID.Poisoned, BuffID.Venom, ModContent.BuffType<Plague>() };
public static int[] holyEnemyImmunities = new int[3] { BuffID.OnFire, ModContent.BuffType<HolyFlames>(), ModContent.BuffType<Nightwither>() };
public static int[] holyEnemyImmunities = new int[4] { BuffID.OnFire, BuffID.OnFire3, ModContent.BuffType<HolyFlames>(), ModContent.BuffType<Nightwither>() };
internal static CalamityMod Instance;
internal Mod musicMod = null; // This is Calamity's official music mod, CalamityModMusic
+19 -1
View File
@@ -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<UnholyCore>(5).
AddIngredient<EssenceofChaos>(10).
AddTile(TileID.MythrilAnvil).
Register();
CreateRecipe().
AddIngredient(ItemID.PlatinumCrown).
AddIngredient<UnholyCore>(5).
AddIngredient<EssenceofChaos>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}
+2 -1
View File
@@ -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()
+1 -1
View File
@@ -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()
+1
View File
@@ -78,6 +78,7 @@ namespace CalamityMod.Items.Accessories
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
player.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = true;
player.buffImmune[ModContent.BuffType<ArmorCrunch>()] = true;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
{ player.statDefense += 20; }
}
+3 -1
View File
@@ -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<ArmorCrunch>()] = true;
player.statLifeMax2 += 20;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
{ player.statDefense += 16; }
+3 -1
View File
@@ -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;
+5 -2
View File
@@ -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<BurningBlood>()] = true;
if (player.ZoneCrimson)
{
player.statDefense += 6;
+1 -1
View File
@@ -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" +
+4 -1
View File
@@ -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<SummonDamageClass>() += 3f;
player.GetDamage(DamageClass.Summon) += 0.15f;
player.buffImmune[ModContent.BuffType<Shadowflame>()] = true;
}
public override void AddRecipes()
+2 -1
View File
@@ -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;
}
}
}
+5 -2
View File
@@ -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<SummonDamageClass>() += 2.75f;
player.GetDamage(DamageClass.Summon) += 0.1f;
player.buffImmune[ModContent.BuffType<Shadowflame>()] = true;
}
public override void AddRecipes()
+7 -4
View File
@@ -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<Shadowflame>()] = true;
}
}
}
+26 -2
View File
@@ -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<ArmorCrunch>()] = true;
// Ankh Shield extra immunities
if (item.type == ItemID.AnkhShield)
{
player.buffImmune[BuffID.OnFire] = true;
player.buffImmune[ModContent.BuffType<ArmorCrunch>()] = true;
}
// Nightwither immunity pre-Moon Lord and Holy Flames immunity pre-Profaned Guardians.
if (item.type == ItemID.MoonStone)
player.buffImmune[ModContent.BuffType<Nightwither>()] = true;
if (item.type == ItemID.SunStone)
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
if (item.type == ItemID.CelestialStone || item.type == ItemID.CelestialShell)
{
player.buffImmune[ModContent.BuffType<Nightwither>()] = true;
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
}
if (item.type == ItemID.FairyBoots)
modPlayer.fairyBoots = true;
+16 -1
View File
@@ -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
+2 -2
View File
@@ -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;
}
}
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.AquaticScourge
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<Irradiated>(), 180, true);
player.AddBuff(ModContent.BuffType<Irradiated>(), 300, true);
}
}
}
+1 -1
View File
@@ -154,7 +154,7 @@ namespace CalamityMod.NPCs.AquaticScourge
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<Irradiated>(), 180, true);
player.AddBuff(ModContent.BuffType<Irradiated>(), 300, true);
}
}
}
+1 -1
View File
@@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.AquaticScourge
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<Irradiated>(), 360, true);
player.AddBuff(ModContent.BuffType<Irradiated>(), 480, true);
}
}
}
+1 -1
View File
@@ -153,7 +153,7 @@ namespace CalamityMod.NPCs.AquaticScourge
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<Irradiated>(), 120, true);
player.AddBuff(ModContent.BuffType<Irradiated>(), 180, true);
}
}
}
+1 -1
View File
@@ -498,7 +498,7 @@ namespace CalamityMod.NPCs.AstrumAureus
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 240, true);
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 480, true);
}
}
}
+1 -1
View File
@@ -360,7 +360,7 @@ namespace CalamityMod.NPCs.AstrumAureus
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 120, true);
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 180, true);
}
public override bool CheckDead()
+1 -1
View File
@@ -211,7 +211,7 @@ namespace CalamityMod.NPCs.AstrumDeus
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 180, true);
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 300, true);
}
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
+1 -1
View File
@@ -305,7 +305,7 @@ namespace CalamityMod.NPCs.AstrumDeus
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 240, true);
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 480, true);
}
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
+1 -1
View File
@@ -192,7 +192,7 @@ namespace CalamityMod.NPCs.AstrumDeus
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 120, true);
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 180, true);
}
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
@@ -99,7 +99,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180, true);
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240, true);
}
public override void FindFrame(int frameHeight) // 9 total frames
+1 -1
View File
@@ -205,7 +205,7 @@ namespace CalamityMod.NPCs.Calamitas
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180, true);
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240, true);
}
}
}
+1 -1
View File
@@ -204,7 +204,7 @@ namespace CalamityMod.NPCs.Calamitas
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180, true);
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240, true);
}
}
}
+1 -1
View File
@@ -292,7 +292,7 @@ namespace CalamityMod.NPCs.Calamitas
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180, true);
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 300, true);
}
}
}
+29 -20
View File
@@ -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<ArmorCrunch>(), 300);
target.AddBuff(BuffType<ArmorCrunch>(), 480);
break;
case NPCID.GolemHead:
case NPCID.GolemHeadFree:
case NPCID.GolemFistRight:
case NPCID.GolemFistLeft:
target.AddBuff(BuffType<ArmorCrunch>(), 180);
target.AddBuff(BuffType<ArmorCrunch>(), 240);
break;
case NPCID.Lavabat:
+6 -2
View File
@@ -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<MurkyPaste>(), 3, 2));
@@ -326,9 +327,12 @@ namespace CalamityMod.NPCs
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<TrapperBulb>(), 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<BeetleJuice>(), 3, 2));
break;
+2 -2
View File
@@ -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);
}
}
}
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
-1
View File
@@ -200,7 +200,6 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
npcLoot.Add(ItemID.AdhesiveBandage, 50);
npcLoot.Add(ModContent.ItemType<UnholyEssence>(), 1, 2, 4);
}
}
@@ -245,7 +245,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<Plague>(), 180, true);
player.AddBuff(ModContent.BuffType<Plague>(), 240, true);
}
public override void HitEffect(int hitDirection, double damage)
+1 -1
View File
@@ -129,7 +129,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<Plague>(), 240, true);
player.AddBuff(ModContent.BuffType<Plague>(), 300, true);
}
public override bool CheckDead()
@@ -1263,7 +1263,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<Plague>(), 300, true);
player.AddBuff(ModContent.BuffType<Plague>(), 480, true);
}
}
}
+1 -1
View File
@@ -782,7 +782,7 @@ namespace CalamityMod.NPCs.Ravager
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<ArmorCrunch>(), 300, true);
player.AddBuff(ModContent.BuffType<ArmorCrunch>(), 480, true);
}
public override void BossLoot(ref string name, ref int potionType)
+1 -1
View File
@@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.Ravager
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<ArmorCrunch>(), 180, true);
player.AddBuff(ModContent.BuffType<ArmorCrunch>(), 240, true);
}
public override void HitEffect(int hitDirection, double damage)
+1 -1
View File
@@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.Ravager
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<ArmorCrunch>(), 180, true);
player.AddBuff(ModContent.BuffType<ArmorCrunch>(), 240, true);
}
public override void HitEffect(int hitDirection, double damage)
+1 -1
View File
@@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.Ravager
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(ModContent.BuffType<ArmorCrunch>(), 180, true);
player.AddBuff(ModContent.BuffType<ArmorCrunch>(), 240, true);
SoundEngine.PlaySound(SoundID.Item14, NPC.position);
NPC.ai[0] = 0f;
NPC.life = 0;
+2 -2
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
}
}
}
+2 -2
View File
@@ -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);
}
}
}
+2 -2
View File
@@ -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);
}
}
}
+2 -2
View File
@@ -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<AstralInfectionDebuff>(), 120);
target.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 180);
}
public override Color? GetAlpha(Color lightColor)
+2 -2
View File
@@ -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<BrimstoneFlames>(), 120);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
}
}
}
+1 -1
View File
@@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles.Boss
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120);
}
else
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
}
public override bool PreDraw(ref Color lightColor)
+2 -2
View File
@@ -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<BrimstoneFlames>(), 120);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 300);
}
}
}
+1 -1
View File
@@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.Boss
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120);
}
else
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
}
public override void Kill(int timeLeft)
+1 -1
View File
@@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Boss
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120);
}
else
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
}
public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit)
+1 -1
View File
@@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Boss
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 300);
}
public override bool PreDraw(ref Color lightColor)
+2 -2
View File
@@ -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);
}
}
+2 -2
View File
@@ -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<BrimstoneFlames>(), 180);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 300);
}
}
}
+1 -1
View File
@@ -167,7 +167,7 @@ namespace CalamityMod.Projectiles.Boss
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(ModContent.BuffType<Plague>(), 180);
target.AddBuff(ModContent.BuffType<Plague>(), 240);
}
}
}
+1 -1
View File
@@ -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<HolyFlames>() : ModContent.BuffType<Nightwither>();
target.AddBuff(buffType, 240);
target.AddBuff(buffType, 480);
}
public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit)
+1 -1
View File
@@ -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<Providence>())) ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>();
target.AddBuff(buffType, 180);
target.AddBuff(buffType, 240);
}
public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit)
+1 -1
View File
@@ -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<Providence>())) ? ModContent.BuffType<HolyFlames>() : ModContent.BuffType<Nightwither>();
target.AddBuff(buffType, 120);
target.AddBuff(buffType, 180);
}
public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit)
+2 -2
View File
@@ -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);
}
+1 -1
View File
@@ -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<GlacialState>(), 60);
}
+3 -3
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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<HolyFlames>() : ModContent.BuffType<Nightwither>();
target.AddBuff(buffType, 90);
target.AddBuff(buffType, 120);
}
public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit)
+1 -1
View File
@@ -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<HolyFlames>() : ModContent.BuffType<Nightwither>();
target.AddBuff(buffType, 420);
target.AddBuff(buffType, 600);
}
public override bool CanHitPlayer(Player target) => Projectile.scale >= 0.5f;
+1 -1
View File
@@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Boss
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(ModContent.BuffType<Shadowflame>(), 60);
target.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
}
}
}
+2 -2
View File
@@ -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<Shadowflame>(), 60);
target.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
}
}
}
+2 -7
View File
@@ -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<Shadowflame>(), 180, true);
else if (Main.rand.NextBool(4))
target.AddBuff(ModContent.BuffType<Shadowflame>(), 120, true);
else if (Main.rand.NextBool(2))
target.AddBuff(ModContent.BuffType<Shadowflame>(), 60, true);
target.AddBuff(ModContent.BuffType<Shadowflame>(), 180, true);
}
public override void Kill(int timeLeft)
+2 -7
View File
@@ -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<Shadowflame>(), 240, true);
else if (Main.rand.NextBool(4))
target.AddBuff(ModContent.BuffType<Shadowflame>(), 150, true);
else if (Main.rand.NextBool(2))
target.AddBuff(ModContent.BuffType<Shadowflame>(), 90, true);
target.AddBuff(ModContent.BuffType<Shadowflame>(), 300, true);
}
}
}
+1 -1
View File
@@ -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);
}
}
}
+3 -3
View File
@@ -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<Irradiated>(), 120);
target.AddBuff(BuffID.Poisoned, 240);
target.AddBuff(ModContent.BuffType<Irradiated>(), 240);
}
}
}
+3 -3
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -68,7 +68,7 @@ namespace CalamityMod.Tiles.Ores
public override void FloorVisuals(Player player)
{
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 1);
player.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 2);
base.FloorVisuals(player);
}
+5 -5
View File
@@ -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<BeetleJuice>(), 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)