using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace catmod.NPCs.bomblord
{
public class bomblord : ModNPC
{
public override void SetDefaults()
{
npc.name = "bomblord";
npc.displayName = "bombious, the master of all things explosive";
aiType = NPCID.Zombie; //5 is the flying AI
npc.lifeMax = 250000; //boss life
npc.damage = 20; //boss damage
npc.defense = 1000; //boss defense
npc.knockBackResist = 0f;
npc.width = 110;
npc.height = 110; //this boss will behavior like the DemonEyen
npc.value = Item.buyPrice(0, 40, 75, 45);
npc.npcSlots = 1f;
npc.boss = true;
npc.lavaImmune = true;
npc.noGravity = false;
npc.noTileCollide = true;
npc.soundHit = 8;
npc.soundKilled = 14;
npc.buffImmune[24] = true;
music = MusicID.Boss2;
npc.netAlways = true;
}
public override void AutoloadHead(ref string headTexture, ref string bossHeadTexture)
{
bossHeadTexture = "catmod/NPCs/bomblord/bomblord_Head_Boss"; //the boss head texture
}
public override void BossLoot(ref string name, ref int potionType)
{
potionType = ItemID.LesserHealingPotion; //boss drops
}
public override void ScaleExpertStats(int numPlayers, float bossLifeScale)
{
npc.lifeMax = (int)(npc.lifeMax * 0.900f * bossLifeScale); //boss life scale in expertmode
npc.damage = (int)(npc.damage * 0.90f); //boss damage increase in expermode
}
}
}