Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Terraria;
- using Terraria.ID;
- using Terraria.ModLoader;
- namespace Cataclysm.NPCs.TheHallow
- {
- public class SpectralPixie : ModNPC
- {
- public override void SetStaticDefaults()
- {
- Main.npcFrameCount[npc.type] = Main.npcFrameCount[NPCID.Pixie];
- }
- public override void SetDefaults()
- {
- npc.width = 18;
- npc.height = 40;
- npc.damage = 160;
- npc.defense = 40;
- npc.lifeMax = 400;
- npc.HitSound = SoundID.NPCHit5;
- npc.DeathSound = SoundID.NPCDeath7;
- npc.value = 60f;
- npc.knockBackResist = 0.5f;
- npc.aiStyle = 75;
- aiType = NPCID.Pixie;
- animationType = NPCID.Pixie;
- }
- //public override float SpawnChance(NPCSpawnInfo spawnInfo)
- //=> Main.hardMode && spawnInfo.player.ZoneHallow && spawnInfo.spawnTileY ? 0.01f : 0f;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement