40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using Decimation.Content.Buffs.Debuffs;
|
|
using Decimation.Lib.Util;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.NPCs
|
|
{
|
|
public class TinyLivingMagma : ModNPC
|
|
{
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Tiny Living Magma");
|
|
Main.npcFrameCount[npc.type] = 3;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
npc.CloneDefaults(ModContent.NPCType<LivingMagma>());
|
|
npc.width = 30;
|
|
npc.height = 24;
|
|
npc.damage = 36;
|
|
npc.defense = 14;
|
|
npc.lifeMax = 240;
|
|
aiType = NPCID.ToxicSludge;
|
|
animationType = NPCID.ToxicSludge;
|
|
}
|
|
|
|
public override void HitEffect(int hitDirection, double damage)
|
|
{
|
|
Main.LocalPlayer.AddBuff(ModContent.BuffType<Singed>(), 600);
|
|
}
|
|
|
|
public override void AI()
|
|
{
|
|
Lighting.AddLight(npc.Center, LightingUtils.Rgb255ToRgb1(255, 155, 48));
|
|
}
|
|
}
|
|
} |