diff --git a/Buffs/Pets/RadiatorBuff.png b/Buffs/Pets/RadiatorBuff.png index ff2660a432..9d2c1038ca 100644 Binary files a/Buffs/Pets/RadiatorBuff.png and b/Buffs/Pets/RadiatorBuff.png differ diff --git a/Buffs/Potions/BloodfinBoost.png b/Buffs/Potions/BloodfinBoost.png index e3349a8e38..281e5f6abd 100644 Binary files a/Buffs/Potions/BloodfinBoost.png and b/Buffs/Potions/BloodfinBoost.png differ diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 7c0b2494d3..43525deca8 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -384,6 +384,7 @@ namespace CalamityMod.CalPlayer public bool fabledTortoise = false; public bool manaOverloader = false; public bool royalGel = false; + public bool handWarmer = false; public bool oldDie = false; public bool ursaSergeant = false; public bool thiefsDime = false; @@ -432,6 +433,7 @@ namespace CalamityMod.CalPlayer public bool camper = false; // Armor Set + public bool eskimoSet = false; //vanilla armor public bool victideSet = false; public bool sulfurSet = false; public bool aeroSet = false; @@ -1197,6 +1199,7 @@ namespace CalamityMod.CalPlayer fabledTortoise = false; manaOverloader = false; royalGel = false; + handWarmer = false; lol = false; raiderTalisman = false; gSabaton = false; @@ -1241,6 +1244,8 @@ namespace CalamityMod.CalPlayer astralStarRain = false; + eskimoSet = false; //vanilla armor + victideSet = false; sulfurSet = false; @@ -1752,6 +1757,7 @@ namespace CalamityMod.CalPlayer ataxiaFire = false; ataxiaVolley = false; ataxiaBlaze = false; + eskimoSet = false; //vanilla armor victideSet = false; aeroSet = false; statigelSet = false; @@ -3321,11 +3327,15 @@ namespace CalamityMod.CalPlayer { damageSource = PlayerDeathReason.ByCustomReason(player.name + " vaporized into thin air."); } + if (everclear && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8) + { + damageSource = PlayerDeathReason.ByCustomReason(player.name + " succumbed to alcohol sickness."); + } if (manaOverloader && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8) { damageSource = PlayerDeathReason.ByCustomReason(player.name + "'s life was completely converted into mana."); } - if ((bloodyMary || everclear || evergreenGin || fireball || margarita || moonshine || moscowMule || redWine || screwdriver || starBeamRye || tequila || tequilaSunrise || vodka || whiteWine) + if ((bloodyMary || evergreenGin || fireball || margarita || moonshine || moscowMule || redWine || screwdriver || starBeamRye || tequila || tequilaSunrise || vodka || whiteWine) && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8) { damageSource = PlayerDeathReason.ByCustomReason(player.name + " succumbed to alcohol sickness."); @@ -3418,6 +3428,10 @@ namespace CalamityMod.CalPlayer add += 0.15f; } if (fireball && CalamityMod.fireWeaponList.Contains(item.type)) + { + add += 0.1f; + } + if (eskimoSet && CalamityMod.iceWeaponList.Contains(item.type)) { add += 0.1f; } diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index cffec71ef8..db47c8ac9c 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -647,6 +647,10 @@ namespace CalamityMod.CalPlayer player.lifeRegen += 16; } if (modPlayer.camper) + { + player.lifeRegen += 2; + } + if (modPlayer.handWarmer && modPlayer.eskimoSet) { player.lifeRegen += 2; } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 5f9ddd40b9..c21bd0a59f 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -446,15 +446,11 @@ namespace CalamityMod.CalPlayer // Immunity bools bool hasMoltenSet = player.head == ArmorIDs.Head.MoltenHelmet && player.body == ArmorIDs.Body.MoltenBreastplate && player.legs == ArmorIDs.Legs.MoltenGreaves; - // Normal and Pink Eskimo set can be mixed and matched - bool hasEskimoSet = (player.head == ArmorIDs.Head.EskimoHood || player.head == ArmorIDs.Head.PinkEskimoHood) - && (player.body == ArmorIDs.Body.EskimoCoat || player.body == ArmorIDs.Body.PinkEskimoCoat) - && (player.legs == ArmorIDs.Legs.EskimoPants || player.legs == ArmorIDs.Legs.PinkEskimoPants); bool immunityToHotAndCold = hasMoltenSet || player.magmaStone || player.frostArmor || modPlayer.fBulwark || modPlayer.fBarrier || modPlayer.frostFlare || modPlayer.rampartOfDeities || modPlayer.cryogenSoul || modPlayer.snowman || modPlayer.blazingCore || modPlayer.permafrostsConcoction; - bool immunityToCold = player.HasBuff(BuffID.Campfire) || Main.campfire || player.resistCold || hasEskimoSet || player.buffImmune[BuffID.Frozen] || + bool immunityToCold = player.HasBuff(BuffID.Campfire) || Main.campfire || player.resistCold || modPlayer.eskimoSet || player.buffImmune[BuffID.Frozen] || player.HasBuff(BuffID.Inferno) || immunityToHotAndCold || modPlayer.externalColdImmunity; bool immunityToHot = player.lavaImmune || player.lavaRose || player.lavaMax > 0 || immunityToHotAndCold || modPlayer.externalHeatImmunity; diff --git a/Items/Accessories/AlluringBait.png b/Items/Accessories/AlluringBait.png index 0613840036..16069fcd2c 100644 Binary files a/Items/Accessories/AlluringBait.png and b/Items/Accessories/AlluringBait.png differ diff --git a/Items/Accessories/HoneyDew.png b/Items/Accessories/HoneyDew.png index 0f4cd8b947..ae540d0562 100644 Binary files a/Items/Accessories/HoneyDew.png and b/Items/Accessories/HoneyDew.png differ diff --git a/Items/Ammo/EnhancedNanoRound.png b/Items/Ammo/EnhancedNanoRound.png index 4ac538c0ec..5360301646 100644 Binary files a/Items/Ammo/EnhancedNanoRound.png and b/Items/Ammo/EnhancedNanoRound.png differ diff --git a/Items/Ammo/RubberMortarRound.png b/Items/Ammo/RubberMortarRound.png index a7e8a177e1..b8057deb9e 100644 Binary files a/Items/Ammo/RubberMortarRound.png and b/Items/Ammo/RubberMortarRound.png differ diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index e938a4ff71..1c2c1897de 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.Potions; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Items.Accessories; using CalamityMod.Items.DifficultyItems; @@ -1167,6 +1168,17 @@ Provides heat and cold protection in Death Mode"; } } } + if (item.type == ItemID.HandWarmer) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Provides immunity to chilling and freezing effects\n" + + "Provides a regeneration boost while wearing the Eskimo armor"; + } + } + } if (item.type == ItemID.AngelWings) { foreach (TooltipLine line2 in tooltips) @@ -1427,9 +1439,9 @@ Provides heat and cold protection in Death Mode"; "Acceleration multiplier: 0\n" + "Average vertical speed\n" + "Flight time: 140\n" + - "10% increased movement speed and 100% increased jump speed\n" + - "+20 defense, 15% increased damage, 7% increased critical strike chance\n" + - "and 10% increased movement speed at night"; + "At night or during an eclipse, you will gain the following boosts:\n" + + "10% increased movement speed, 100% increased jump speed,\n" + + "+15 defense, 10% increased damage, and 5% increased critical strike chance"; } } } @@ -2186,13 +2198,15 @@ Provides heat and cold protection in Death Mode"; return "Obsidian"; if (head.type == ItemID.MoltenHelmet && body.type == ItemID.MoltenBreastplate && legs.type == ItemID.MoltenGreaves) return "Molten"; - if (head.type == (ItemID.EskimoHood | ItemID.PinkEskimoHood) && body.type == (ItemID.EskimoCoat | ItemID.PinkEskimoCoat) && legs.type == (ItemID.EskimoPants | ItemID.PinkEskimoPants)) + // Normal and Pink Eskimo set can be mixed and matched + if ((head.type == ItemID.EskimoHood || head.type == ItemID.PinkEskimoHood) && (body.type == ItemID.EskimoCoat || body.type == ItemID.PinkEskimoCoat) && (legs.type == ItemID.EskimoPants || legs.type == ItemID.PinkEskimoPants)) return "Eskimo"; return ""; } public override void UpdateArmorSet(Player player, string set) { + CalamityPlayer modPlayer = player.Calamity(); if (set == "Copper") player.pickSpeed -= 0.15f; else if (set == "Tin") @@ -2211,7 +2225,6 @@ Provides heat and cold protection in Death Mode"; player.pickSpeed -= 0.4f; else if (set == "Gladiator") { - CalamityPlayer modPlayer = player.Calamity(); modPlayer.rogueStealthMax += 0.7f; modPlayer.wearingRogueArmor = true; player.Calamity().throwingDamage += 0.05f; @@ -2226,7 +2239,6 @@ Provides heat and cold protection in Death Mode"; } else if (set == "Obsidian") { - CalamityPlayer modPlayer = player.Calamity(); modPlayer.rogueStealthMax += 0.8f; modPlayer.wearingRogueArmor = true; player.Calamity().throwingDamage += 0.05f; @@ -2248,9 +2260,15 @@ Provides heat and cold protection in Death Mode"; player.fireWalk = true; player.lavaMax += 300; } - else if (set == "Eskimo" && CalamityWorld.death) + else if (set == "Eskimo") { - player.setBonus = "Provides cold immunity in Death Mode"; + modPlayer.eskimoSet = true; + player.buffImmune[BuffID.Frostburn] = true; + player.buffImmune[ModContent.BuffType()] = true; + player.setBonus = "All ice-themed weapons receive a 10% damage bonus\n" + + "Cold enemies will deal reduced contact damage to the player\n" + + "Provides immunity to the Frostburn and Glacial State debuffs\n" + + "Provides cold immunity in Death Mode"; } } #endregion @@ -2258,21 +2276,15 @@ Provides heat and cold protection in Death Mode"; #region Equip Changes public override void UpdateEquip(Item item, Player player) { - if (item.type == ItemID.FireGauntlet) - { - player.meleeDamage += 0.04f; - player.meleeSpeed += 0.04f; - } - #region Head if (item.type == ItemID.SpectreHood) player.magicDamage += 0.2f; - else if (item.type == ItemID.GladiatorHelmet || item.type == ItemID.ObsidianHelm) + else if (item.type == (ItemID.GladiatorHelmet | ItemID.ObsidianHelm)) player.Calamity().throwingDamage += 0.03f; #endregion #region Body - if (item.type == ItemID.GladiatorBreastplate || item.type == ItemID.ObsidianShirt) + if (item.type == (ItemID.GladiatorBreastplate | ItemID.ObsidianShirt)) player.Calamity().throwingCrit += 3; else if (item.type == ItemID.PalladiumBreastplate) player.Calamity().throwingCrit += 2; @@ -2291,7 +2303,7 @@ Provides heat and cold protection in Death Mode"; #endregion #region Legs - if (item.type == ItemID.GladiatorLeggings || item.type == ItemID.ObsidianPants) + if (item.type == (ItemID.GladiatorLeggings | ItemID.ObsidianPants)) player.Calamity().throwingVelocity += 0.03f; else if (item.type == ItemID.PalladiumLeggings) player.Calamity().throwingCrit += 1; @@ -2312,6 +2324,12 @@ Provides heat and cold protection in Death Mode"; { CalamityPlayer modPlayer = player.Calamity(); + if (item.type == ItemID.FireGauntlet) + { + player.meleeDamage += 0.04f; + player.meleeSpeed += 0.04f; + } + if (item.type == ItemID.AngelWings) // Boost to max life, defense, and life regen { player.statLifeMax2 += 20; @@ -2358,14 +2376,13 @@ Provides heat and cold protection in Death Mode"; } else if (item.type == ItemID.BatWings) // Stronger at night { - player.moveSpeed += 0.1f; - player.jumpSpeedBoost += 1.0f; player.noFallDmg = true; if (!Main.dayTime || Main.eclipse) { - player.statDefense += 20; - player.allDamage += 0.15f; - modPlayer.AllCritBoost(7); + player.jumpSpeedBoost += 1.0f; + player.statDefense += 15; + player.allDamage += 0.1f; + modPlayer.AllCritBoost(5); player.moveSpeed += 0.1f; } } @@ -2514,16 +2531,13 @@ Provides heat and cold protection in Death Mode"; player.minionDamage += 0.05f; } } - else if (item.type == ItemID.FishronWings || item.type == ItemID.BetsyWings || item.type == ItemID.Yoraiz0rWings || - item.type == ItemID.JimsWings || item.type == ItemID.SkiphsWings || item.type == ItemID.LokisWings || - item.type == ItemID.ArkhalisWings || item.type == ItemID.LeinforsWings || item.type == ItemID.BejeweledValkyrieWing || - item.type == ItemID.RedsWings || item.type == ItemID.DTownsWings || item.type == ItemID.WillsWings || - item.type == ItemID.CrownosWings || item.type == ItemID.CenxsWings || item.type == ItemID.Hoverboard || item.type == ItemID.LeafWings) + else if (item.type == (ItemID.FishronWings | ItemID.BetsyWings | ItemID.Yoraiz0rWings | ItemID.JimsWings | ItemID.SkiphsWings | + ItemID.LokisWings | ItemID.ArkhalisWings | ItemID.LeinforsWings | ItemID.BejeweledValkyrieWing | ItemID.RedsWings | ItemID.DTownsWings | + ItemID.WillsWings | ItemID.CrownosWings | ItemID.CenxsWings | ItemID.Hoverboard | ItemID.LeafWings)) { player.noFallDmg = true; } - // Arctic Diving Gear counts as a Jellyfish Necklace in code, but overrides its abyss light level because it's an upgrade. if (item.type == ItemID.JellyfishNecklace || item.type == ItemID.JellyfishDivingGear || item.type == ItemID.ArcticDivingGear) modPlayer.jellyfishNecklace = true; @@ -2533,6 +2547,9 @@ Provides heat and cold protection in Death Mode"; if (item.type == ItemID.RoyalGel) modPlayer.royalGel = true; + if (item.type == ItemID.HandWarmer) + modPlayer.handWarmer = true; + if (item.type == ItemID.CelestialStone || item.type == ItemID.CelestialShell || (item.type == ItemID.MoonStone && !Main.dayTime) || (item.type == ItemID.SunStone && Main.dayTime)) { @@ -2546,7 +2563,7 @@ Provides heat and cold protection in Death Mode"; player.Calamity().throwingCrit += 5; // Hard / Guarding / Armored / Warding give 0.25% / 0.5% / 0.75% / 1% DR - if (item.prefix == 62) + if (item.prefix == PrefixID.Hard) { if (NPC.downedMoonlord) player.statDefense += 2; @@ -2555,7 +2572,7 @@ Provides heat and cold protection in Death Mode"; player.endurance += 0.0025f; } - if (item.prefix == 63) + if (item.prefix == PrefixID.Guarding) { if (NPC.downedMoonlord) player.statDefense += 2; @@ -2564,7 +2581,7 @@ Provides heat and cold protection in Death Mode"; player.endurance += 0.005f; } - if (item.prefix == 64) + if (item.prefix == PrefixID.Armored) { if (NPC.downedMoonlord) player.statDefense += 3; @@ -2573,7 +2590,7 @@ Provides heat and cold protection in Death Mode"; player.endurance += 0.0075f; } - if (item.prefix == 65) + if (item.prefix == PrefixID.Warding) { if (NPC.downedMoonlord) player.statDefense += 4; @@ -2584,13 +2601,13 @@ Provides heat and cold protection in Death Mode"; } // Precise only gives 1% crit and Lucky only gives 3% crit - if (item.prefix == 67 || item.prefix == 68) + if (item.prefix == (PrefixID.Precise | PrefixID.Lucky)) { player.meleeCrit -= 1; player.rangedCrit -= 1; player.magicCrit -= 1; player.thrownCrit -= 1; - player.Calamity().throwingCrit += item.prefix == 68 ? 3 : 1; + player.Calamity().throwingCrit += item.prefix == PrefixID.Lucky ? 3 : 1; } } #endregion diff --git a/Items/Fishing/BrimstoneCragCatches/Bloodfin.png b/Items/Fishing/BrimstoneCragCatches/Bloodfin.png index c3466af72a..50d1992734 100644 Binary files a/Items/Fishing/BrimstoneCragCatches/Bloodfin.png and b/Items/Fishing/BrimstoneCragCatches/Bloodfin.png differ diff --git a/Items/Materials/DemonicBoneAsh.png b/Items/Materials/DemonicBoneAsh.png index 443bd79461..c00a297f79 100644 Binary files a/Items/Materials/DemonicBoneAsh.png and b/Items/Materials/DemonicBoneAsh.png differ diff --git a/Items/Materials/EndothermicEnergy.cs b/Items/Materials/EndothermicEnergy.cs index d8a95728ff..08255e51e2 100644 --- a/Items/Materials/EndothermicEnergy.cs +++ b/Items/Materials/EndothermicEnergy.cs @@ -1,5 +1,7 @@ using Terraria; using Terraria.ModLoader; +using Microsoft.Xna.Framework; +using Terraria.DataStructures; namespace CalamityMod.Items.Materials { @@ -9,6 +11,7 @@ namespace CalamityMod.Items.Materials { DisplayName.SetDefault("Endothermic Energy"); Tooltip.SetDefault("Great for preventing heat stroke"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/EndothermicEnergy.png b/Items/Materials/EndothermicEnergy.png index 2bd4629779..c0de87300f 100644 Binary files a/Items/Materials/EndothermicEnergy.png and b/Items/Materials/EndothermicEnergy.png differ diff --git a/Items/Materials/NightmareFuel.cs b/Items/Materials/NightmareFuel.cs index be84815272..f0111964ef 100644 --- a/Items/Materials/NightmareFuel.cs +++ b/Items/Materials/NightmareFuel.cs @@ -1,5 +1,7 @@ using Terraria; using Terraria.ModLoader; +using Microsoft.Xna.Framework; +using Terraria.DataStructures; namespace CalamityMod.Items.Materials { @@ -9,6 +11,7 @@ namespace CalamityMod.Items.Materials { DisplayName.SetDefault("Nightmare Fuel"); Tooltip.SetDefault("May drain your sanity"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/Materials/NightmareFuel.png b/Items/Materials/NightmareFuel.png index b58f4759c6..23deaea5f8 100644 Binary files a/Items/Materials/NightmareFuel.png and b/Items/Materials/NightmareFuel.png differ diff --git a/Items/PermanentBoosters/EtherealCore.png b/Items/PermanentBoosters/EtherealCore.png index 31e343aac5..5b9c9e1e70 100644 Binary files a/Items/PermanentBoosters/EtherealCore.png and b/Items/PermanentBoosters/EtherealCore.png differ diff --git a/Items/Potions/ZergPotion.png b/Items/Potions/ZergPotion.png index fae8690dab..97f584e5cd 100644 Binary files a/Items/Potions/ZergPotion.png and b/Items/Potions/ZergPotion.png differ diff --git a/Items/Tools/BeastialPickaxe.cs b/Items/Tools/BeastialPickaxe.cs index d61a7266b7..e9a72e87e4 100644 --- a/Items/Tools/BeastialPickaxe.cs +++ b/Items/Tools/BeastialPickaxe.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Items.Tools item.useAnimation = 15; item.useTurn = true; item.pick = 200; + item.tileBoost += 1; item.useStyle = 1; item.knockBack = 4.5f; item.value = Item.buyPrice(0, 60, 0, 0); diff --git a/Items/Tools/Gelpick.cs b/Items/Tools/Gelpick.cs index b7a8ea9575..e4f193d785 100644 --- a/Items/Tools/Gelpick.cs +++ b/Items/Tools/Gelpick.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Tools item.melee = true; item.width = 46; item.height = 46; - item.useTime = 20; + item.useTime = 16; item.useAnimation = 20; item.pick = 100; item.useStyle = 1; diff --git a/Items/Tools/SkyfringePickaxe.cs b/Items/Tools/SkyfringePickaxe.cs index 55fd2f1bc1..c25fdeaf57 100644 --- a/Items/Tools/SkyfringePickaxe.cs +++ b/Items/Tools/SkyfringePickaxe.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Tools item.melee = true; item.width = 44; item.height = 44; - item.useTime = 16; + item.useTime = 14; item.useAnimation = 16; item.useTurn = true; item.pick = 95; diff --git a/Items/Tools/WulfrumPickaxe.cs b/Items/Tools/WulfrumPickaxe.cs index 4491b34ad1..083c548e2e 100644 --- a/Items/Tools/WulfrumPickaxe.cs +++ b/Items/Tools/WulfrumPickaxe.cs @@ -28,6 +28,7 @@ namespace CalamityMod.Items.Tools item.rare = 1; item.UseSound = SoundID.Item1; item.autoReuse = true; + item.tileBoost += 1; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Aftershock.png b/Items/Weapons/Melee/Aftershock.png index 5020a31a1d..3a6a2d76a2 100644 Binary files a/Items/Weapons/Melee/Aftershock.png and b/Items/Weapons/Melee/Aftershock.png differ diff --git a/Items/Weapons/Melee/EarthenPike.png b/Items/Weapons/Melee/EarthenPike.png index 3daddf654d..5d64b3e5d0 100644 Binary files a/Items/Weapons/Melee/EarthenPike.png and b/Items/Weapons/Melee/EarthenPike.png differ diff --git a/Items/Weapons/Ranged/BarracudaGun.png b/Items/Weapons/Ranged/BarracudaGun.png index 5c0137b4f4..7730f53d5f 100644 Binary files a/Items/Weapons/Ranged/BarracudaGun.png and b/Items/Weapons/Ranged/BarracudaGun.png differ diff --git a/Items/Weapons/Ranged/ClockworkBow.png b/Items/Weapons/Ranged/ClockworkBow.png index 8f08853dca..0cafd2a8c9 100644 Binary files a/Items/Weapons/Ranged/ClockworkBow.png and b/Items/Weapons/Ranged/ClockworkBow.png differ diff --git a/Items/Weapons/Ranged/HeavenlyGale.cs b/Items/Weapons/Ranged/HeavenlyGale.cs index f85f6880f0..0e58b19233 100644 --- a/Items/Weapons/Ranged/HeavenlyGale.cs +++ b/Items/Weapons/Ranged/HeavenlyGale.cs @@ -87,6 +87,7 @@ namespace CalamityMod.Items.Weapons.Ranged } return false; } + public override bool ConsumeAmmo(Player player) { if (Main.rand.Next(0, 100) < 66) diff --git a/Items/Weapons/Ranged/Interfacer.png b/Items/Weapons/Ranged/Interfacer.png index 2c008f984f..204c17b26b 100644 Binary files a/Items/Weapons/Ranged/Interfacer.png and b/Items/Weapons/Ranged/Interfacer.png differ diff --git a/Items/Weapons/Ranged/SlagMagnum.png b/Items/Weapons/Ranged/SlagMagnum.png index d0120c23c4..9e6859f27e 100644 Binary files a/Items/Weapons/Ranged/SlagMagnum.png and b/Items/Weapons/Ranged/SlagMagnum.png differ diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index ceec56c2c8..e5a7139704 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1221,18 +1221,27 @@ namespace CalamityMod.NPCs #region Modify Hit Player public override void ModifyHitPlayer(NPC npc, Player target, ref int damage, ref bool crit) { + CalamityPlayer modTarget = target.Calamity(); if (tSad > 0) { damage /= 2; } - if (target.Calamity().beeResist) + if (modTarget.beeResist) { if (CalamityMod.beeEnemyList.Contains(npc.type)) { damage = (int)(damage * 0.75); } } + + if (modTarget.eskimoSet) + { + if (npc.coldDamage) + { + damage = (int)(damage * 0.9); + } + } } #endregion diff --git a/NPCs/NormalNPCs/PlaguedTortoise.png b/NPCs/NormalNPCs/PlaguedTortoise.png index e0e0cb40d4..0129b9df6a 100644 Binary files a/NPCs/NormalNPCs/PlaguedTortoise.png and b/NPCs/NormalNPCs/PlaguedTortoise.png differ diff --git a/Projectiles/Magic/SparklingBeam.cs b/Projectiles/Magic/SparklingBeam.cs index 848bc32ce1..b536965a93 100644 --- a/Projectiles/Magic/SparklingBeam.cs +++ b/Projectiles/Magic/SparklingBeam.cs @@ -22,13 +22,15 @@ namespace CalamityMod.Projectiles.Magic // The actual distance is stored in the ai0 field // By making a property to handle this it makes our life easier, and the accessibility more readable - public float Distance { + public float Distance + { get => projectile.ai[0]; set => projectile.ai[0] = value; } // The actual charge value is stored in the localAI0 field - public float Charge { + public float Charge + { get => projectile.localAI[0]; set => projectile.localAI[0] = value; } @@ -107,7 +109,8 @@ namespace CalamityMod.Projectiles.Magic { if (target.life <= 0) { - int shardDamage = SparklingEmpress.BaseDamage / 5; + Player player = Main.player[projectile.owner]; + int shardDamage = (int)((SparklingEmpress.BaseDamage / 5) * (player.allDamage + player.magicDamage - 1f)); int num251 = Main.rand.Next(2, 4); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Melee/AftershockRock.cs b/Projectiles/Melee/AftershockRock.cs index d22ee200d8..9475d9e490 100644 --- a/Projectiles/Melee/AftershockRock.cs +++ b/Projectiles/Melee/AftershockRock.cs @@ -18,6 +18,8 @@ namespace CalamityMod.Projectiles.Melee projectile.melee = true; projectile.ignoreWater = true; aiType = 261; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; } } } diff --git a/Projectiles/Melee/AftershockRock.png b/Projectiles/Melee/AftershockRock.png index 4928a0203a..62cce98752 100644 Binary files a/Projectiles/Melee/AftershockRock.png and b/Projectiles/Melee/AftershockRock.png differ diff --git a/Projectiles/Melee/Spears/EarthenPikeSpear.png b/Projectiles/Melee/Spears/EarthenPikeSpear.png index ff2c93587a..eba945b832 100644 Binary files a/Projectiles/Melee/Spears/EarthenPikeSpear.png and b/Projectiles/Melee/Spears/EarthenPikeSpear.png differ diff --git a/Projectiles/Ranged/MechanicalBarracuda.png b/Projectiles/Ranged/MechanicalBarracuda.png index a08bcffa93..6d8695df07 100644 Binary files a/Projectiles/Ranged/MechanicalBarracuda.png and b/Projectiles/Ranged/MechanicalBarracuda.png differ diff --git a/Projectiles/Ranged/RubberMortarRoundProj.png b/Projectiles/Ranged/RubberMortarRoundProj.png index a7e8a177e1..b8057deb9e 100644 Binary files a/Projectiles/Ranged/RubberMortarRoundProj.png and b/Projectiles/Ranged/RubberMortarRoundProj.png differ diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index a394e2819a..94afe1c8b0 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -35,6 +35,7 @@ namespace CalamityMod AddProgressionRecipes(); AddEarlyGameWeaponRecipes(); AddEarlyGameAccessoryRecipes(); + AddArmorRecipes(); AddAnkhShieldRecipes(); AddAlternateHardmodeRecipes(); @@ -609,9 +610,49 @@ namespace CalamityMod r.AddTile(TileID.MythrilAnvil); r.SetResult(ItemID.MetalDetector); r.AddRecipe(); + + // Hand Warmer + r = GetNewRecipe(); + r.AddIngredient(ItemID.Silk, 5); + r.AddIngredient(ItemID.Shiverthorn); + r.AddRecipeGroup("AnySnowBlock", 10); + r.AddTile(TileID.Loom); + r.SetResult(ItemID.HandWarmer); + r.AddRecipe(); } #endregion + #region Armor + // Rare uncraftable armors like Eskimo armor + private static void AddArmorRecipes() + { + // Eskimo armor + ModRecipe r = GetNewRecipe(); + r.AddIngredient(ItemID.Silk, 4); + r.AddIngredient(ItemID.Leather); + r.AddIngredient(ItemID.BorealWood, 12); + r.AddTile(TileID.Loom); + r.SetResult(ItemID.EskimoHood); + r.AddRecipe(); + + r = GetNewRecipe(); + r.AddIngredient(ItemID.Silk, 8); + r.AddIngredient(ItemID.Leather); + r.AddIngredient(ItemID.BorealWood, 18); + r.AddTile(TileID.Loom); + r.SetResult(ItemID.EskimoCoat); + r.AddRecipe(); + + r = GetNewRecipe(); + r.AddIngredient(ItemID.Silk, 6); + r.AddIngredient(ItemID.Leather); + r.AddIngredient(ItemID.BorealWood, 15); + r.AddTile(TileID.Loom); + r.SetResult(ItemID.EskimoPants); + r.AddRecipe(); + } + #endregion + #region AnkhShield // Every base component for the Ankh Shield private static void AddAnkhShieldRecipes()