Omega_Nightfueled

Untitled

Oct 22nd, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. using Terraria;
  2. using Terraria.ModLoader;
  3. using Terraria.ID;
  4.  
  5. namespace OmegasArsenal.Enemies
  6. {
  7. public class AlphaZombie : ModNPC // ModNPC is used for Custom NPCs
  8. {
  9. public override void SetStaticDefaults()
  10. {
  11. DisplayName.SetDefault("Alpha Zombie");
  12. }
  13.  
  14. public override void SetDefaults()
  15. {
  16. /* Removed as of 0.10
  17. //npc.name = "Tutorial Zombie";
  18. //npc.displayName = "Tutorial Zombie";
  19. */
  20. npc.width = 60;
  21. npc.height = 60;
  22. npc.damage = 36;
  23. npc.defense = 15;
  24. npc.lifeMax = 1200;
  25. npc.HitSound = SoundID.NPCHit1;
  26. npc.DeathSound = SoundID.NPCDeath1;
  27. npc.value = 100f;
  28. npc.knockBackResist = 0.15f;
  29. npc.aiStyle = 3;
  30. Main.npcFrameCount[npc.type] = Main.npcFrameCount[NPCID.Zombie]; //Main.npcFrameCount[3];
  31. aiType = NPCID.Zombie; // aiType = 3;
  32. animationType = NPCID.Zombie; // animationType = 3;
  33. }
  34.  
  35. public override float SpawnChance(NPCSpawnInfo spawnInfo)
  36. {
  37. return TutorialWorld.biomeTiles > 20 ? 20f : 0f;
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment