public override void SetDefaults() { npc.aiStyle = -1; npc.lifeMax = 6000; npc.damage = 30; npc.defense = 10; npc.knockBackResist = 0f; npc.width = 140; npc.height = 120; npc.value = Item.buyPrice(0, 40, 0, 0); npc.npcSlots = 100f; npc.dontTakeDamage = true; npc.friendly = false; npc.boss = true; npc.lavaImmune = true; npc.noGravity = true; npc.noTileCollide = true; npc.dontTakeDamageFromHostiles = true; npc.behindTiles = true; bossBag = ItemType <VitricBossBag>(); npc.HitSound = mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/VitricBoss/ceramicimpact"); music = mod.GetSoundSlot(SoundType.Music, "Sounds/Music/VitricBoss1"); if (Main.netMode != NetmodeID.Server) { swooshes = new List <VitricBossSwoosh>() { new VitricBossSwoosh(new Vector2(-16, -40), 6, this), new VitricBossSwoosh(new Vector2(16, -40), 6, this), new VitricBossSwoosh(new Vector2(-46, -34), 10, this), new VitricBossSwoosh(new Vector2(46, -34), 10, this) }; body = new BodyHandler(this); } }
public override bool Autoload(ref string name) { BodyHandler.LoadGores(); return(base.Autoload(ref name)); }