2 - Yharim's Stims increase pick speed. 3 - Crumbling Potions no longer require Forbidden Fragments. 4 - Penumbra Potions no longer require Essence of Chaos and take 1 Solar Tablet Fragment instead of 2. 5 - Photosynthesis Potions no longer require Vines and take 1 Beetle Juice instead of 2. 6 - Revivify Potions last 3 seconds intead of 2. 7 - Soaring Potions no longer require Feathers. 8 - Triumph Potions no longer require Stormlion Mandibles. 9 - Yharim's Stimulants no longer require Archery and Magic Power Potions, but they now require Any Food item. 10 - Caustic Edge now requires Shadow Scales or Tissue Samples to craft. 11 - Draconic Swarmers deal 20% less damage if they naturally spawn in the jungle. 12 - Increased normal, small and medium Phantom Spirit HP. 13 - Decreased large Phantom Spirit HP. 14 - Increased Profaned Energy HP. 15 - Added Warmth Potions to Permafrost's shop. 16 - Added Heartreach, Lifeforce and Love Potoins to Cirrus' shop. 17 - Added Gills, Water Walking and Flipper Potions to Amidias' shop. 18 - Added Invisibility, Night Owl and Dangersense Potions to Bandit's shop. 19 - Added Wormhole, Archery, Healing, Mana and Titan Potions to Merchant's shop. 20 - Added Mining, Ironskin, Shine, Spelunker, Obsidian Skin and Endurance Potions to Demolitionist's shop. 21 - Added Ammo Reservation, Hunter and Battle Potions to Arms Dealer's shop. 22 - Added Thorns, Featherfall, Regeneration and Swiftness Potions to Dryad's shop. 23 - Added Stink Potions to Goblin Tinkerer's shop because he's the worst NPC and reprogramming his shit was annoying as fuck. 24 - Added Builder Potions to Mechanic's shop. 25 - Added Mana Regen, Magic Power and Gravitation Potions to Wizard's shop. 26 - Added Calming, Rage, Wrath and Inferno Potions to Witch Doctor's shop. 27 - Added Gender Change Potions to Party Girl's shop. 28 - Added Calcium Potions to Skeleton Merchant's shop.
87 lines
2.7 KiB
C#
87 lines
2.7 KiB
C#
using CalamityMod.Dusts;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Items.Placeables.Banners;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.NPCs.NormalNPCs
|
|
{
|
|
public class ProfanedEnergyBody : ModNPC
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Profaned Energy");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
npc.aiStyle = -1;
|
|
npc.damage = 0;
|
|
npc.npcSlots = 3f;
|
|
npc.width = 72;
|
|
npc.height = 36;
|
|
npc.defense = 50;
|
|
npc.DR_NERD(0.1f);
|
|
npc.lifeMax = 6000;
|
|
npc.knockBackResist = 0f;
|
|
aiType = -1;
|
|
npc.value = Item.buyPrice(0, 0, 50, 0);
|
|
npc.lavaImmune = true;
|
|
npc.noGravity = true;
|
|
npc.HitSound = SoundID.NPCHit52;
|
|
npc.DeathSound = SoundID.NPCDeath55;
|
|
banner = npc.type;
|
|
bannerItem = ModContent.ItemType<ProfanedEnergyBanner>();
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
CalamityGlobalNPC.energyFlame = npc.whoAmI;
|
|
if (Main.netMode != NetmodeID.MultiplayerClient)
|
|
{
|
|
if (npc.localAI[0] == 0f)
|
|
{
|
|
npc.localAI[0] = 1f;
|
|
for (int num723 = 0; num723 < 2; num723++)
|
|
{
|
|
NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, ModContent.NPCType<ProfanedEnergyLantern>(), npc.whoAmI, 0f, 0f, 0f, 0f, 255);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
|
{
|
|
if (spawnInfo.playerSafe || !NPC.downedMoonlord || NPC.AnyNPCs(npc.type))
|
|
{
|
|
return 0f;
|
|
}
|
|
if (SpawnCondition.Underworld.Chance > 0f)
|
|
{
|
|
return SpawnCondition.Underworld.Chance / 6f;
|
|
}
|
|
return SpawnCondition.OverworldHallow.Chance / 6f;
|
|
}
|
|
|
|
public override void HitEffect(int hitDirection, double damage)
|
|
{
|
|
for (int k = 0; k < 5; k++)
|
|
{
|
|
Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.ProfanedFire, hitDirection, -1f, 0, default, 1f);
|
|
}
|
|
if (npc.life <= 0)
|
|
{
|
|
for (int k = 0; k < 50; k++)
|
|
{
|
|
Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.ProfanedFire, hitDirection, -1f, 0, default, 1f);
|
|
}
|
|
}
|
|
}
|
|
|
|
public override void NPCLoot()
|
|
{
|
|
DropHelper.DropItem(npc, ModContent.ItemType<UnholyEssence>(), 2, 4);
|
|
}
|
|
}
|
|
}
|