diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 042a5892f1..89c1af9aa3 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5850,12 +5850,19 @@ namespace CalamityMod.CalPlayer proj.velocity *= -1f; proj.damage = damage2; proj.penetrate = 1; - player.immune = true; - player.immuneNoBlink = true; - player.immuneTime += 4; + bool isImmune = false; for (int j = 0; j < player.hurtCooldowns.Length; j++) { - player.hurtCooldowns[j] = player.immuneTime; + if (player.hurtCooldowns[j] > 0) + isImmune = true; + } + if (!isImmune) + { + player.immune = true; + player.immuneNoBlink = true; + player.immuneTime += 4; + for (int j = 0; j < player.hurtCooldowns.Length; j++) + player.hurtCooldowns[j] = player.immuneTime; } damage = 0; return; @@ -8000,12 +8007,19 @@ namespace CalamityMod.CalPlayer if (npc.immune[player.whoAmI] < 6) npc.immune[player.whoAmI] = 6; npc.AddBuff(ModContent.BuffType(), 300); - player.immune = true; - player.immuneNoBlink = true; - player.immuneTime += 4; - for (int k = 0; k < player.hurtCooldowns.Length; k++) + bool isImmune = false; + for (int j = 0; j < player.hurtCooldowns.Length; j++) { - player.hurtCooldowns[k] = player.immuneTime; + if (player.hurtCooldowns[j] > 0) + isImmune = true; + } + if (!isImmune) + { + player.immune = true; + player.immuneNoBlink = true; + player.immuneTime += 4; + for (int k = 0; k < player.hurtCooldowns.Length; k++) + player.hurtCooldowns[k] = player.immuneTime; } } } @@ -8054,12 +8068,19 @@ namespace CalamityMod.CalPlayer } if (npc.immune[player.whoAmI] < 6) npc.immune[player.whoAmI] = 6; - player.immune = true; - player.immuneNoBlink = true; - player.immuneTime += 4; - for (int k = 0; k < player.hurtCooldowns.Length; k++) + bool isImmune = false; + for (int j = 0; j < player.hurtCooldowns.Length; j++) { - player.hurtCooldowns[k] = player.immuneTime; + if (player.hurtCooldowns[j] > 0) + isImmune = true; + } + if (!isImmune) + { + player.immune = true; + player.immuneNoBlink = true; + player.immuneTime += 4; + for (int k = 0; k < player.hurtCooldowns.Length; k++) + player.hurtCooldowns[k] = player.immuneTime; } } } @@ -8107,12 +8128,19 @@ namespace CalamityMod.CalPlayer } if (npc.immune[player.whoAmI] < 6) npc.immune[player.whoAmI] = 6; - player.immune = true; - player.immuneNoBlink = true; - player.immuneTime += 4; - for (int k = 0; k < player.hurtCooldowns.Length; k++) + bool isImmune = false; + for (int j = 0; j < player.hurtCooldowns.Length; j++) { - player.hurtCooldowns[k] = player.immuneTime; + if (player.hurtCooldowns[j] > 0) + isImmune = true; + } + if (!isImmune) + { + player.immune = true; + player.immuneNoBlink = true; + player.immuneTime += 4; + for (int k = 0; k < player.hurtCooldowns.Length; k++) + player.hurtCooldowns[k] = player.immuneTime; } } } @@ -8148,12 +8176,19 @@ namespace CalamityMod.CalPlayer if (npc.immune[player.whoAmI] < 6) npc.immune[player.whoAmI] = 6; npc.AddBuff(ModContent.BuffType(), 300); - player.immune = true; - player.immuneNoBlink = true; - player.immuneTime += 4; - for (int k = 0; k < player.hurtCooldowns.Length; k++) + bool isImmune = false; + for (int j = 0; j < player.hurtCooldowns.Length; j++) { - player.hurtCooldowns[k] = player.immuneTime; + if (player.hurtCooldowns[j] > 0) + isImmune = true; + } + if (!isImmune) + { + player.immune = true; + player.immuneNoBlink = true; + player.immuneTime += 4; + for (int k = 0; k < player.hurtCooldowns.Length; k++) + player.hurtCooldowns[k] = player.immuneTime; } } } @@ -8714,12 +8749,19 @@ namespace CalamityMod.CalPlayer player.ApplyDamageToNPC(nPC, (int)Damage, Knockback, direction, false); } nPC.immune[player.whoAmI] = NPCImmuneTime; - player.immune = true; - player.immuneNoBlink = true; - player.immuneTime += PlayerImmuneTime; + bool isImmune = false; for (int j = 0; j < player.hurtCooldowns.Length; j++) { - player.hurtCooldowns[j] = player.immuneTime; + if (player.hurtCooldowns[j] > 0) + isImmune = true; + } + if (!isImmune) + { + player.immune = true; + player.immuneNoBlink = true; + player.immuneTime += PlayerImmuneTime; + for (int j = 0; j < player.hurtCooldowns.Length; j++) + player.hurtCooldowns[j] = player.immuneTime; } num++; break; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index b2b3de5882..e3c7a49deb 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2398,6 +2398,7 @@ namespace CalamityMod.CalPlayer { player.endurance += 0.06f; player.statDefense += 8; + player.pickSpeed -= 0.05f; player.allDamage += 0.06f; modPlayer.AllCritBoost(2); player.minionKB += 1f; diff --git a/Items/Potions/CrumblingPotion.cs b/Items/Potions/CrumblingPotion.cs index 3db18b670a..00af49f227 100644 --- a/Items/Potions/CrumblingPotion.cs +++ b/Items/Potions/CrumblingPotion.cs @@ -37,7 +37,6 @@ namespace CalamityMod.Items.Potions ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.BottledWater, 5); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ItemID.AncientBattleArmorMaterial); recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.AlchemyTable); recipe.SetResult(this, 5); diff --git a/Items/Potions/PenumbraPotion.cs b/Items/Potions/PenumbraPotion.cs index 2ba845b1bc..dc80a9b2a4 100644 --- a/Items/Potions/PenumbraPotion.cs +++ b/Items/Potions/PenumbraPotion.cs @@ -38,8 +38,7 @@ namespace CalamityMod.Items.Potions ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.BottledWater); recipe.AddIngredient(ModContent.ItemType(), 3); - recipe.AddIngredient(ItemID.LunarTabletFragment, 2); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ItemID.LunarTabletFragment); recipe.AddTile(TileID.AlchemyTable); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Potions/PhotosynthesisPotion.cs b/Items/Potions/PhotosynthesisPotion.cs index d2000b6afd..d0c0c1ee60 100644 --- a/Items/Potions/PhotosynthesisPotion.cs +++ b/Items/Potions/PhotosynthesisPotion.cs @@ -36,8 +36,7 @@ namespace CalamityMod.Items.Potions { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.BottledWater); - recipe.AddIngredient(ModContent.ItemType(), 2); - recipe.AddIngredient(ItemID.Vine); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.AlchemyTable); diff --git a/Items/Potions/RevivifyPotion.cs b/Items/Potions/RevivifyPotion.cs index 8dea978eb8..9a959eb9bc 100644 --- a/Items/Potions/RevivifyPotion.cs +++ b/Items/Potions/RevivifyPotion.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Potions item.UseSound = SoundID.Item3; item.consumable = true; item.buffType = ModContent.BuffType(); - item.buffTime = CalamityUtils.SecondsToFrames(120f); + item.buffTime = CalamityUtils.SecondsToFrames(180f); item.value = Item.buyPrice(0, 2, 0, 0); } diff --git a/Items/Potions/SoaringPotion.cs b/Items/Potions/SoaringPotion.cs index f280fd0c88..6a1299313d 100644 --- a/Items/Potions/SoaringPotion.cs +++ b/Items/Potions/SoaringPotion.cs @@ -38,7 +38,6 @@ namespace CalamityMod.Items.Potions { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.BottledWater); - recipe.AddIngredient(ItemID.Feather); recipe.AddIngredient(ItemID.SoulofFlight); recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.AlchemyTable); diff --git a/Items/Potions/TitanScalePotion.cs b/Items/Potions/TitanScalePotion.cs index e7bcffb883..3b86cf2891 100644 --- a/Items/Potions/TitanScalePotion.cs +++ b/Items/Potions/TitanScalePotion.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Potions public override void SetStaticDefaults() { DisplayName.SetDefault("Titan Scale Potion"); - Tooltip.SetDefault("Increases knockback, defense by 5, and damage reduction by 5%\n" + + Tooltip.SetDefault("Increases knockback, defense by 5 and damage reduction by 5%\n" + "Increases defense by 25 and damage reduction by 10% for a few seconds after a true melee strike"); } diff --git a/Items/Potions/TriumphPotion.cs b/Items/Potions/TriumphPotion.cs index eba449afb1..bc9e4f7e6b 100644 --- a/Items/Potions/TriumphPotion.cs +++ b/Items/Potions/TriumphPotion.cs @@ -35,7 +35,6 @@ namespace CalamityMod.Items.Potions { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.BottledWater); - recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType(), 3); recipe.AddTile(TileID.Bottles); recipe.SetResult(this); diff --git a/Items/Potions/YharimsStimulants.cs b/Items/Potions/YharimsStimulants.cs index 2348e81a72..67e12c88b9 100644 --- a/Items/Potions/YharimsStimulants.cs +++ b/Items/Potions/YharimsStimulants.cs @@ -34,11 +34,10 @@ namespace CalamityMod.Items.Potions public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); + recipe.AddRecipeGroup("AnyFood"); recipe.AddIngredient(ItemID.EndurancePotion); recipe.AddIngredient(ItemID.IronskinPotion); recipe.AddIngredient(ItemID.SwiftnessPotion); - recipe.AddIngredient(ItemID.ArcheryPotion); - recipe.AddIngredient(ItemID.MagicPowerPotion); recipe.AddIngredient(ItemID.TitanPotion); recipe.AddTile(TileID.AlchemyTable); recipe.SetResult(this); diff --git a/Items/Weapons/Melee/CausticEdge.cs b/Items/Weapons/Melee/CausticEdge.cs index b8fe273830..5888ac9d6d 100644 --- a/Items/Weapons/Melee/CausticEdge.cs +++ b/Items/Weapons/Melee/CausticEdge.cs @@ -36,19 +36,11 @@ namespace CalamityMod.Items.Weapons.Melee ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.BladeofGrass); recipe.AddIngredient(ItemID.LavaBucket); - recipe.AddIngredient(ItemID.ShadowScale, 3); + recipe.AddRecipeGroup("Boss2Material", 3); recipe.AddIngredient(ItemID.Deathweed, 5); recipe.AddTile(TileID.DemonAltar); recipe.SetResult(this); recipe.AddRecipe(); - recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.BladeofGrass); - recipe.AddIngredient(ItemID.LavaBucket); - recipe.AddIngredient(ItemID.TissueSample, 3); - recipe.AddIngredient(ItemID.Deathweed, 5); - recipe.AddTile(TileID.DemonAltar); - recipe.SetResult(this); - recipe.AddRecipe(); } public override void MeleeEffects(Player player, Rectangle hitbox) diff --git a/NPCs/Bumblebirb/Bumblefuck2.cs b/NPCs/Bumblebirb/Bumblefuck2.cs index 1516697b20..2cee269829 100644 --- a/NPCs/Bumblebirb/Bumblefuck2.cs +++ b/NPCs/Bumblebirb/Bumblefuck2.cs @@ -50,6 +50,8 @@ namespace CalamityMod.NPCs.Bumblebirb public override void AI() { + npc.damage = CalamityPlayer.areThereAnyDamnBosses ? npc.defDamage : (int)(npc.defDamage * 0.8); + Player player = Main.player[npc.target]; Vector2 vector = npc.Center; diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index ea1957055d..a7d887b8eb 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Dyes.HairDye; using CalamityMod.Items.Pets; using CalamityMod.Items.Placeables.Furniture.Fountains; using CalamityMod.Items.Placeables.Walls; +using CalamityMod.Items.Potions; using CalamityMod.Items.SummonItems; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; @@ -1154,8 +1155,15 @@ namespace CalamityMod.NPCs #region Shop Stuff public static void ShopSetup(int type, Mod mod, ref Chest shop, ref int nextSlot) { + int goldCost = NPC.downedMoonlord ? 8 : Main.hardMode ? 4 : 2; + if (type == NPCID.Merchant) { + SetShopItem(ref shop, ref nextSlot, ItemID.WormholePotion, true, Item.buyPrice(0, 0, 25, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.ArcheryPotion, NPC.downedBoss1, Item.buyPrice(0, goldCost, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.HealingPotion, NPC.downedBoss2); + SetShopItem(ref shop, ref nextSlot, ItemID.ManaPotion, NPC.downedBoss2); + SetShopItem(ref shop, ref nextSlot, ItemID.TitanPotion, NPC.downedBoss3, Item.buyPrice(0, 2, 0, 0)); SetShopItem(ref shop, ref nextSlot, ItemID.Flare, (Main.LocalPlayer.HasItem(ItemType()) || Main.LocalPlayer.HasItem(ItemType())) && !Main.LocalPlayer.HasItem(ItemID.FlareGun)); SetShopItem(ref shop, ref nextSlot, ItemID.BlueFlare, (Main.LocalPlayer.HasItem(ItemType()) || Main.LocalPlayer.HasItem(ItemType())) && !Main.LocalPlayer.HasItem(ItemID.FlareGun)); SetShopItem(ref shop, ref nextSlot, ItemID.ApprenticeBait, NPC.downedBoss1); @@ -1173,8 +1181,21 @@ namespace CalamityMod.NPCs SetShopItem(ref shop, ref nextSlot, ItemType(), Main.hardMode && CalamityWorld.defiled, Item.buyPrice(0, 10)); } + if (type == NPCID.Demolitionist) + { + SetShopItem(ref shop, ref nextSlot, ItemID.MiningPotion, NPC.downedBoss1, Item.buyPrice(0, 1, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.IronskinPotion, NPC.downedBoss1, Item.buyPrice(0, 1, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.ShinePotion, NPC.downedBoss1, Item.buyPrice(0, 1, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.SpelunkerPotion, NPC.downedBoss2, Item.buyPrice(0, 2, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.ObsidianSkinPotion, NPC.downedBoss3, Item.buyPrice(0, 2, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.EndurancePotion, NPC.downedBoss3, Item.buyPrice(0, goldCost, 0, 0)); + } + if (type == NPCID.ArmsDealer) { + SetShopItem(ref shop, ref nextSlot, ItemID.AmmoReservationPotion, true, Item.buyPrice(0, 1, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.HunterPotion, true, Item.buyPrice(0, 2, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.BattlePotion, NPC.downedBoss2, Item.buyPrice(0, 2, 0, 0)); SetShopItem(ref shop, ref nextSlot, ItemID.Stake, Main.LocalPlayer.HasItem(ItemType())); SetShopItem(ref shop, ref nextSlot, WorldGen.crimson ? ItemID.Musket : ItemID.TheUndertaker, WorldGen.shadowOrbSmashed || NPC.downedBoss2); SetShopItem(ref shop, ref nextSlot, ItemID.Boomstick, NPC.downedQueenBee, price: Item.buyPrice(0, 20, 0, 0)); @@ -1203,6 +1224,10 @@ namespace CalamityMod.NPCs if (type == NPCID.Dryad) { + SetShopItem(ref shop, ref nextSlot, ItemID.ThornsPotion, true, Item.buyPrice(0, 1, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.FeatherfallPotion, true, Item.buyPrice(0, 1, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.RegenerationPotion, NPC.downedBoss2, Item.buyPrice(0, 2, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.SwiftnessPotion, NPC.downedBoss2, Item.buyPrice(0, goldCost, 0, 0)); SetShopItem(ref shop, ref nextSlot, ItemID.JungleRose, price: Item.buyPrice(0, 2)); SetShopItem(ref shop, ref nextSlot, ItemID.NaturesGift, price: Item.buyPrice(0, 10)); SetShopItem(ref shop, ref nextSlot, ItemID.SlimeCrown, NPC.downedSlimeKing && CalamityConfig.Instance.SellVanillaSummons, Item.buyPrice(0, 2)); @@ -1222,6 +1247,7 @@ namespace CalamityMod.NPCs if (type == NPCID.GoblinTinkerer) { + SetShopItem(ref shop, ref nextSlot, ItemID.StinkPotion, true, Item.buyPrice(0, 1, 0, 0)); SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(0, 5)); SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(0, 5)); SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(0, 5)); @@ -1231,6 +1257,11 @@ namespace CalamityMod.NPCs SetShopItem(ref shop, ref nextSlot, ItemID.GoblinBattleStandard, price: Item.buyPrice(0, 1)); } + if (type == NPCID.Mechanic) + { + SetShopItem(ref shop, ref nextSlot, ItemID.BuilderPotion, true, Item.buyPrice(0, 1, 0, 0)); + } + if (type == NPCID.Clothier) { SetShopItem(ref shop, ref nextSlot, ItemType(), price: Item.buyPrice(copper: 10)); @@ -1262,6 +1293,9 @@ namespace CalamityMod.NPCs if (type == NPCID.Wizard) { + SetShopItem(ref shop, ref nextSlot, ItemID.ManaRegenerationPotion, true, Item.buyPrice(0, goldCost, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.MagicPowerPotion, true, Item.buyPrice(0, goldCost, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.GravitationPotion, true, Item.buyPrice(0, 2, 0, 0)); SetShopItem(ref shop, ref nextSlot, ItemType()); SetShopItem(ref shop, ref nextSlot, ItemType(), CalamityWorld.downedBrimstoneElemental, Item.buyPrice(0, 20)); SetShopItem(ref shop, ref nextSlot, ItemType(), CalamityWorld.downedAstrageldon, Item.buyPrice(0, 25)); @@ -1276,6 +1310,10 @@ namespace CalamityMod.NPCs if (type == NPCID.WitchDoctor) { + SetShopItem(ref shop, ref nextSlot, ItemID.CalmingPotion, true, Item.buyPrice(0, 1, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.RagePotion, true, Item.buyPrice(0, goldCost, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.WrathPotion, true, Item.buyPrice(0, goldCost, 0, 0)); + SetShopItem(ref shop, ref nextSlot, ItemID.InfernoPotion, true, Item.buyPrice(0, 2, 0, 0)); SetShopItem(ref shop, ref nextSlot, ItemType()); SetShopItem(ref shop, ref nextSlot, ItemType()); SetShopItem(ref shop, ref nextSlot, ItemType(), Main.hardMode); @@ -1290,8 +1328,14 @@ namespace CalamityMod.NPCs SetShopItem(ref shop, ref nextSlot, ItemType(), CalamityWorld.downedBumble, Item.buyPrice(5)); } + if (type == NPCID.PartyGirl) + { + SetShopItem(ref shop, ref nextSlot, ItemID.GenderChangePotion, true, Item.buyPrice(0, 1, 0, 0)); + } + if (type == NPCID.SkeletonMerchant) { + SetShopItem(ref shop, ref nextSlot, ItemType(), true, Item.buyPrice(0, 1, 0, 0)); SetShopItem(ref shop, ref nextSlot, ItemID.Marrow, Main.hardMode, Item.buyPrice(0, 36)); } } diff --git a/NPCs/NormalNPCs/PhantomSpirit.cs b/NPCs/NormalNPCs/PhantomSpirit.cs index 7802974d05..e66a369c14 100644 --- a/NPCs/NormalNPCs/PhantomSpirit.cs +++ b/NPCs/NormalNPCs/PhantomSpirit.cs @@ -24,7 +24,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 16; npc.height = 16; npc.defense = 10; - npc.lifeMax = 750; + npc.lifeMax = 1000; npc.knockBackResist = 0.1f; animationType = NPCID.DungeonSpirit; aiType = -1; diff --git a/NPCs/NormalNPCs/PhantomSpiritL.cs b/NPCs/NormalNPCs/PhantomSpiritL.cs index 2a4693f156..ab69fef5fd 100644 --- a/NPCs/NormalNPCs/PhantomSpiritL.cs +++ b/NPCs/NormalNPCs/PhantomSpiritL.cs @@ -27,7 +27,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.height = 32; npc.scale = 1.2f; npc.defense = 30; - npc.lifeMax = 5000; + npc.lifeMax = 3000; npc.knockBackResist = 0f; aiType = -1; npc.value = Item.buyPrice(0, 0, 60, 0); diff --git a/NPCs/NormalNPCs/PhantomSpiritM.cs b/NPCs/NormalNPCs/PhantomSpiritM.cs index a645dc3876..a07e784202 100644 --- a/NPCs/NormalNPCs/PhantomSpiritM.cs +++ b/NPCs/NormalNPCs/PhantomSpiritM.cs @@ -25,7 +25,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.height = 32; npc.scale = 1.1f; npc.defense = 25; - npc.lifeMax = 1575; + npc.lifeMax = 2000; npc.knockBackResist = 0.1f; aiType = -1; npc.value = Item.buyPrice(0, 0, 40, 0); diff --git a/NPCs/NormalNPCs/PhantomSpiritS.cs b/NPCs/NormalNPCs/PhantomSpiritS.cs index 5f8a45f7f8..041f23bcd7 100644 --- a/NPCs/NormalNPCs/PhantomSpiritS.cs +++ b/NPCs/NormalNPCs/PhantomSpiritS.cs @@ -24,7 +24,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 32; npc.height = 32; npc.defense = 20; - npc.lifeMax = 1125; + npc.lifeMax = 1500; npc.knockBackResist = 0.1f; aiType = -1; npc.value = Item.buyPrice(0, 0, 30, 0); diff --git a/NPCs/NormalNPCs/ProfanedEnergyBody.cs b/NPCs/NormalNPCs/ProfanedEnergyBody.cs index 3ee0d6541e..5309eb2b05 100644 --- a/NPCs/NormalNPCs/ProfanedEnergyBody.cs +++ b/NPCs/NormalNPCs/ProfanedEnergyBody.cs @@ -22,7 +22,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.height = 36; npc.defense = 50; npc.DR_NERD(0.1f); - npc.lifeMax = 4500; + npc.lifeMax = 6000; npc.knockBackResist = 0f; aiType = -1; npc.value = Item.buyPrice(0, 0, 50, 0); diff --git a/NPCs/TownNPCs/DILF.cs b/NPCs/TownNPCs/DILF.cs index f042fc5f0c..a6c895266a 100644 --- a/NPCs/TownNPCs/DILF.cs +++ b/NPCs/TownNPCs/DILF.cs @@ -144,7 +144,10 @@ namespace CalamityMod.NPCs.TownNPCs public override void SetupShop(Chest shop, ref int nextSlot) { - shop.item[nextSlot].SetDefaults(ModContent.ItemType()); + shop.item[nextSlot].SetDefaults(ItemID.WarmthPotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; @@ -183,8 +186,8 @@ namespace CalamityMod.NPCs.TownNPCs shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); - shop.item[nextSlot].shopCustomPrice = 1000000; //I think this is 5 platinum - nextSlot++; + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(5, 0, 0, 0); + nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 15, 0, 0); nextSlot++; diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index 88f432dc9d..924caed933 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -239,7 +239,20 @@ namespace CalamityMod.NPCs.TownNPCs public override void SetupShop(Chest shop, ref int nextSlot) //charges 50% extra than the original item value { - shop.item[nextSlot].SetDefaults(ModContent.ItemType()); + shop.item[nextSlot].SetDefaults(ItemID.HeartreachPotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0); + nextSlot++; + + shop.item[nextSlot].SetDefaults(ItemID.LifeforcePotion); + int goldCost = NPC.downedMoonlord ? 8 : 4; + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, goldCost, 0, 0); + nextSlot++; + + shop.item[nextSlot].SetDefaults(ItemID.LovePotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); + nextSlot++; + + shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); nextSlot++; diff --git a/NPCs/TownNPCs/SEAHOE.cs b/NPCs/TownNPCs/SEAHOE.cs index 6ca6b7ac25..8d37fcb1a2 100644 --- a/NPCs/TownNPCs/SEAHOE.cs +++ b/NPCs/TownNPCs/SEAHOE.cs @@ -374,7 +374,16 @@ namespace CalamityMod.NPCs.TownNPCs nextSlot++; shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; - if (CalamityWorld.downedDesertScourge) + shop.item[nextSlot].SetDefaults(ItemID.GillsPotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.WaterWalkingPotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.FlipperPotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); + nextSlot++; + if (CalamityWorld.downedDesertScourge) { shop.item[nextSlot].SetDefaults(ModContent.ItemType()); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0); diff --git a/NPCs/TownNPCs/THIEF.cs b/NPCs/TownNPCs/THIEF.cs index c4fd80531d..259da327ed 100644 --- a/NPCs/TownNPCs/THIEF.cs +++ b/NPCs/TownNPCs/THIEF.cs @@ -259,7 +259,16 @@ namespace CalamityMod.NPCs.TownNPCs nextSlot++; shop.item[nextSlot].SetDefaults(ItemID.TigerClimbingGear); nextSlot++; - if (CalamityWorld.downedSlimeGod) + shop.item[nextSlot].SetDefaults(ItemID.InvisibilityPotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.NightOwlPotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.TrapsightPotion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); + nextSlot++; + if (CalamityWorld.downedSlimeGod) { shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index bf1b1e6813..9abe8ace3d 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -1031,7 +1031,7 @@ namespace CalamityMod }); RecipeGroup.RegisterGroup("AnyIceBlock", group); - group = new RecipeGroup(() => "Any Snow Block", new int[] + group = new RecipeGroup(() => "Any Snow Block", new int[] { ItemID.SnowBlock, ModContent.ItemType()