Advertisement
Omega_Nightfueled

Untitled

Oct 22nd, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. using Terraria;
  2. using Terraria.ID;
  3. using Terraria.ModLoader;
  4. using Terraria.GameContent.Generation;
  5. using Terraria.World.Generation;
  6. using System.Collections.Generic;
  7.  
  8. using System;
  9. using Terraria.ModLoader.IO;
  10. using System.IO;
  11.  
  12. namespace OmegasArsenal.Enemies
  13. {
  14. public class EnchantedCopperPickaxe : ModNPC // ModNPC is used for Custom NPCs
  15. {
  16. public override void SetStaticDefaults()
  17. {
  18. DisplayName.SetDefault("Enchanted Copper Pickaxe");
  19. }
  20.  
  21. public override void SetDefaults()
  22. {
  23. /* Removed as of 0.10
  24. //npc.name = "Tutorial Zombie";
  25. //npc.displayName = "Tutorial Zombie";
  26. */
  27. npc.width = 68;
  28. npc.height = 82;
  29. npc.damage = 9;
  30. npc.defense = 24;
  31. npc.lifeMax = 200;
  32. npc.HitSound = SoundID.NPCHit4;
  33. npc.DeathSound = SoundID.NPCDeath6;
  34. npc.value = 100f;
  35. npc.boss = false;
  36. npc.knockBackResist = 0.35f;
  37. npc.aiStyle = 23;
  38. aiType = NPCID.EnchantedSword; // aiType = 3;
  39. }
  40.  
  41. public override float SpawnChance(NPCSpawnInfo spawnInfo) {
  42. return Main.hardMode SpawnCondition.Overworld.Chance * 0.15f;
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement