diff --git a/NPCs/AcidRain/Radiator.cs b/NPCs/AcidRain/Radiator.cs index 54e09b8fbb..3222aa67cf 100644 --- a/NPCs/AcidRain/Radiator.cs +++ b/NPCs/AcidRain/Radiator.cs @@ -8,6 +8,7 @@ using CalamityMod.Items.Placeables.Banners; using Terraria; using Terraria.GameContent.Bestiary; using Terraria.GameContent.ItemDropRules; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -17,7 +18,7 @@ namespace CalamityMod.NPCs.AcidRain { public override void SetStaticDefaults() { - Main.npcFrameCount[Type] = 4; + Main.npcFrameCount[Type] = 8; } public override void SetDefaults() @@ -52,7 +53,6 @@ namespace CalamityMod.NPCs.AcidRain AIType = NPCID.GlowingSnail; Banner = NPC.type; BannerItem = ModContent.ItemType(); - NPC.catchItem = (short)ModContent.ItemType(); NPC.Calamity().VulnerableToHeat = false; NPC.Calamity().VulnerableToSickness = false; NPC.Calamity().VulnerableToElectricity = true; @@ -68,8 +68,24 @@ namespace CalamityMod.NPCs.AcidRain }); } + public override void OnSpawn(IEntitySource source) + { + if (Main.rand.NextBool(10)) + { + NPC.frame.Y = NPC.height * 4; + NPC.catchItem = (short)ModContent.ItemType(); + NPC.damage = 0; + } + } + public override void AI() { + if (NPC.damage == 0) + { + Lighting.AddLight(NPC.Center, 0.7f, 0.7f, 0.7f); + return; + } + Lighting.AddLight(NPC.Center, 0.3f, 1.5f, 0.3f); if (!Main.dedServ) @@ -96,7 +112,11 @@ namespace CalamityMod.NPCs.AcidRain { NPC.frameCounter = 0; NPC.frame.Y += frameHeight; - if (NPC.frame.Y > frameHeight * 2) + if (NPC.frame.Y > frameHeight * 6) + { + NPC.frame.Y = frameHeight * 4; + } + else if (NPC.frame.Y > frameHeight * 2 && NPC.frame.Y < frameHeight * 4) { NPC.frame.Y = 0; } diff --git a/NPCs/AcidRain/Radiator.png b/NPCs/AcidRain/Radiator.png index cab779ed68..e980f0ad82 100644 Binary files a/NPCs/AcidRain/Radiator.png and b/NPCs/AcidRain/Radiator.png differ diff --git a/Projectiles/Pets/RadiatorPet.cs b/Projectiles/Pets/RadiatorPet.cs index 406c8e749d..3cce2aaf4b 100644 --- a/Projectiles/Pets/RadiatorPet.cs +++ b/Projectiles/Pets/RadiatorPet.cs @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Pets Projectile.frame = 0; } } - Lighting.AddLight(Projectile.Center, 0.4f, 1f, 0.5f); + Lighting.AddLight(Projectile.Center, 0.6f, 0.6f, 0.6f); Vector2 vector46 = Projectile.position; if (!fly) {