Advertisement
Guest User

I keep messing up and I don't know why

a guest
Apr 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. using Terraria;
  2. using Terraria.ID;
  3. using Terraria.ModLoader;
  4.  
  5. namespace GoodMod.NPCs
  6. {
  7. [AutoloadBossHead]
  8. class Cataridocy : ModNPC
  9. {
  10. public override void SetStaticDefaults()
  11. {
  12. DisplayName.SetDefault("Cataridocy");
  13. }
  14.  
  15. public override void SetDefaults()
  16. {
  17. npc.CloneDefaults(NPCID.Retinazer);
  18. aiType = NPCID.Retinazer;
  19. npc.width = 42;
  20. npc.height = 76;
  21. npc.damage = 170;
  22. item.shoot = mod.ProjectileType ("BlueBall");
  23. }
  24. public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
  25. {
  26. npc.lifeMax = (int)(npc.lifeMax * 0.5f * bossLifeScale);
  27. npc.damage = (int)(npc.damage * 0.55f);
  28. }
  29.  
  30. public override float SpawnChance(NPCSpawnInfo spawnInfo)
  31. {
  32. if(NPC.downedMoonlord == true)
  33. {
  34. SpawnCondition.(npc.getRect(), mod.ItemType("TheThirdEye"));
  35. SpawnCondition.OverworldNight.Chance * 0.0f;
  36. return true;
  37. }
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement