1 - Cnidrion spawn edits.

2 - Added values to some enemies.
This commit is contained in:
Andrew Marheine committed 2021-12-28 08:59:55 -06:00
1 parent ea2bc572d6
commit 3777f35ccf
5 files changed
+21 -7

No files matched your search

+12 -2
View File
@@ -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<Cnidrion>()))
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<Cnidrion>()))
{
return 0f;
}
+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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;
+3 -2
View File
@@ -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<ParaseaBanner>();