SHARE
TWEET

why

a guest Apr 21st, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.             frameCount = NPCID.Retinazer;
  20.             npc.width = 42;
  21.             npc.height = 76;
  22.             npc.damage = 170;
  23.             item.shoot = mod.ProjectileType ("BlueBall");
  24.         }
  25.         public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
  26.         {
  27.             npc.lifeMax = (int)(npc.lifeMax * 0.5f * bossLifeScale);
  28.             npc.damage = (int)(npc.damage * 0.55f);
  29.         }
  30.  
  31.         public override float SpawnChance(NPCSpawnInfo spawnInfo)
  32.         {
  33.             if(NPC.downedMoonlord == true)
  34.             SpawnCondition.itemUse."TheThirdEye" * 1.0f;
  35.             SpawnCondition.OverworldNight.Chance * 0.0f;
  36.             return true;
  37.         }
  38.     }
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top