Terraria_player
Terrarian
For some reason whenever I use this slime sprite it cuts in half. Here is the code:
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;
namespace Upgrade_weapons.Items
{
public class copperslime : ModNPC
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Copper Slime");
Main.npcFrameCount[npc.type] = Main.npcFrameCount[NPCID.BlueSlime];
}
public override void SetDefaults()
{
npc.width = 32;
npc.height = 22;
npc.HitSound = SoundID.NPCHit1;
npc.damage = 3;
npc.defense = 15;
npc.DeathSound = SoundID.NPCDeath1;
npc.value = 500f;
npc.knockBackResist = 0.9f;
npc.lifeMax = 40;
npc.aiStyle = 1;
aiType = NPCID.BlueSlime;
banner = Item.NPCtoBanner(NPCID.Zombie);
bannerItem = Item.BannerToItem(banner);
npc.alpha = 175;
}
public override float SpawnChance(NPCSpawnInfo spawnInfo)
{
return 0.2f;
float chance = 0.2f;
if (!Main.dayTime)
{
chance += .2f;
if (spawnInfo.spawnTileY <= Main.rockLayer && spawnInfo.spawnTileY >= Main.worldSurface * 15)
{
chance += .3f;
}
}
}
public override void NPCLoot()
{
if (Main.rand.Next(1) == 0)
{
Item.NewItem(npc.position, ItemID.CopperOre, 9);
}
if(Main.hardMode)
{
Item.NewItem(npc.position, ItemID.CopperBar, 5);
}
}
}
}
I will attach the sprite.
The screenshot is blurry but it cuts the bottom half of this sprite.
My mod is called Upgraded weapons.
Thank you for taking the time to look at this post!
using Terraria.ID;
using Terraria.ModLoader;
using Terraria;
namespace Upgrade_weapons.Items
{
public class copperslime : ModNPC
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Copper Slime");
Main.npcFrameCount[npc.type] = Main.npcFrameCount[NPCID.BlueSlime];
}
public override void SetDefaults()
{
npc.width = 32;
npc.height = 22;
npc.HitSound = SoundID.NPCHit1;
npc.damage = 3;
npc.defense = 15;
npc.DeathSound = SoundID.NPCDeath1;
npc.value = 500f;
npc.knockBackResist = 0.9f;
npc.lifeMax = 40;
npc.aiStyle = 1;
aiType = NPCID.BlueSlime;
banner = Item.NPCtoBanner(NPCID.Zombie);
bannerItem = Item.BannerToItem(banner);
npc.alpha = 175;
}
public override float SpawnChance(NPCSpawnInfo spawnInfo)
{
return 0.2f;
float chance = 0.2f;
if (!Main.dayTime)
{
chance += .2f;
if (spawnInfo.spawnTileY <= Main.rockLayer && spawnInfo.spawnTileY >= Main.worldSurface * 15)
{
chance += .3f;
}
}
}
public override void NPCLoot()
{
if (Main.rand.Next(1) == 0)
{
Item.NewItem(npc.position, ItemID.CopperOre, 9);
}
if(Main.hardMode)
{
Item.NewItem(npc.position, ItemID.CopperBar, 5);
}
}
}
}
I will attach the sprite.
The screenshot is blurry but it cuts the bottom half of this sprite.
My mod is called Upgraded weapons.
Thank you for taking the time to look at this post!