diff --git a/NPCs/NormalNPCs/Cnidrion.cs b/NPCs/NormalNPCs/Cnidrion.cs index b6d08b66cc..f2446dc5d4 100644 --- a/NPCs/NormalNPCs/Cnidrion.cs +++ b/NPCs/NormalNPCs/Cnidrion.cs @@ -1,5 +1,4 @@ using CalamityMod.Items.Accessories; -using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Projectiles.Enemy; using CalamityMod.World; @@ -8,6 +7,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.NPCs.NormalNPCs { public class Cnidrion : ModNPC @@ -45,7 +45,17 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !spawnInfo.player.ZoneDesert || !spawnInfo.player.ZoneOverworldHeight || NPC.AnyNPCs(ModContent.NPCType())) + if (spawnInfo.player.PillarZone() || + spawnInfo.player.InAstral() || + spawnInfo.player.ZoneDungeon || + spawnInfo.player.ZoneOldOneArmy || + spawnInfo.player.ZoneSkyHeight || + spawnInfo.playerSafe || + !spawnInfo.player.ZoneDesert || + !spawnInfo.player.ZoneOverworldHeight || + Main.snowMoon || + Main.pumpkinMoon || + NPC.AnyNPCs(ModContent.NPCType())) { return 0f; } diff --git a/NPCs/NormalNPCs/Cryocore.cs b/NPCs/NormalNPCs/Cryocore.cs index fdab14dfca..a4ee621b13 100644 --- a/NPCs/NormalNPCs/Cryocore.cs +++ b/NPCs/NormalNPCs/Cryocore.cs @@ -24,7 +24,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.lifeMax = 220; npc.aiStyle = -1; aiType = -1; - npc.knockBackResist = 0.75f; + npc.value = Item.buyPrice(0, 0, 3, 50); + npc.knockBackResist = 0.75f; npc.noGravity = true; npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath15; diff --git a/NPCs/NormalNPCs/Cryocore2.cs b/NPCs/NormalNPCs/Cryocore2.cs index 91211dadd4..64601d51f7 100644 --- a/NPCs/NormalNPCs/Cryocore2.cs +++ b/NPCs/NormalNPCs/Cryocore2.cs @@ -24,7 +24,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.lifeMax = 300; npc.aiStyle = -1; aiType = -1; - npc.knockBackResist = 0.5f; + npc.value = Item.buyPrice(0, 0, 5, 0); + npc.knockBackResist = 0.5f; npc.noGravity = true; npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath15; diff --git a/NPCs/NormalNPCs/IceMass.cs b/NPCs/NormalNPCs/IceMass.cs index 4a653e0a43..c70afb4fda 100644 --- a/NPCs/NormalNPCs/IceMass.cs +++ b/NPCs/NormalNPCs/IceMass.cs @@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.defense = 8; npc.alpha = 100; npc.lifeMax = 50; - npc.knockBackResist = 0f; + npc.value = Item.buyPrice(0, 0, 1, 0); + npc.knockBackResist = 0f; npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath15; npc.Calamity().VulnerableToHeat = true; diff --git a/NPCs/NormalNPCs/Parasea.cs b/NPCs/NormalNPCs/Parasea.cs index 3e95a47665..ea431e0479 100644 --- a/NPCs/NormalNPCs/Parasea.cs +++ b/NPCs/NormalNPCs/Parasea.cs @@ -24,9 +24,10 @@ namespace CalamityMod.NPCs.NormalNPCs npc.damage = 50; npc.width = npc.height = 30; npc.defense = 8; - npc.lifeMax = 450; + npc.lifeMax = 400; npc.knockBackResist = 0f; - npc.HitSound = SoundID.NPCHit1; + npc.value = Item.buyPrice(0, 0, 6, 0); + npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; bannerItem = ModContent.ItemType();