bropower125
Official Terrarian
Um okay, new problem, (I took the other thing out of the mod so I could test something else and I went longer without an error than last time!)
So basically whenever I use my modded throwing weapon it shoots out overpowered shurikens... no clue why... oh also the shurikens drop too which makes no sense since I never even programmed that in, I'm not even really using shuriken ai either which bother's me even more... My images are working for this one except for the projectile even though it should work just fine since I put the projectile image in so no clue there...
And finally folder structure as well as a few photos of what the heck is happening(Also no clue where the little white barrier thing came from, must be from one of the mods I have installed):
So basically whenever I use my modded throwing weapon it shoots out overpowered shurikens... no clue why... oh also the shurikens drop too which makes no sense since I never even programmed that in, I'm not even really using shuriken ai either which bother's me even more... My images are working for this one except for the projectile even though it should work just fine since I put the projectile image in so no clue there...
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Drom.Items.Weapons
{
public class NightKunai : ModItem
{
public override void SetDefaults()
{
item.name = "Nights Kunai";
item.damage = 34;
item.thrown = true;
item.width = 40;
item.height = 40;
item.useTime = 8;
item.autoReuse = true;
item.useAnimation = 15;
item.noMelee = true;
item.useStyle = 1;
item.maxStack = 1;
item.toolTip = "A True Ninjas Kunai";
item.knockBack = 1f;
item.value = Item.sellPrice(0, 1, 0, 0);
item.rare = 8;
item.shoot = mod.ProjectileType("NightKunai");
item.shoot = 3;
item.shootSpeed = 9;
item.noUseGraphic = true;
}
public override void AddRecipes()
{
NightKunaiRecipe recipe = new NightKunaiRecipe(mod);
recipe.AddIngredient(ItemID.Shuriken);
recipe.AddIngredient(ItemID.Flamarang);
recipe.AddIngredient(ItemID.SpikyBall);
recipe.AddIngredient(ItemID.Bone);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this, 1);
recipe.AddRecipe();
}
}
public class NightKunaiRecipe : ModRecipe
{
public NightKunaiRecipe(Mod mod) : base(mod)
{
}
}
}
using Terraria.ID;
using Terraria.ModLoader;
namespace Drom.Items.Weapons
{
public class NightKunai : ModItem
{
public override void SetDefaults()
{
item.name = "Nights Kunai";
item.damage = 34;
item.thrown = true;
item.width = 40;
item.height = 40;
item.useTime = 8;
item.autoReuse = true;
item.useAnimation = 15;
item.noMelee = true;
item.useStyle = 1;
item.maxStack = 1;
item.toolTip = "A True Ninjas Kunai";
item.knockBack = 1f;
item.value = Item.sellPrice(0, 1, 0, 0);
item.rare = 8;
item.shoot = mod.ProjectileType("NightKunai");
item.shoot = 3;
item.shootSpeed = 9;
item.noUseGraphic = true;
}
public override void AddRecipes()
{
NightKunaiRecipe recipe = new NightKunaiRecipe(mod);
recipe.AddIngredient(ItemID.Shuriken);
recipe.AddIngredient(ItemID.Flamarang);
recipe.AddIngredient(ItemID.SpikyBall);
recipe.AddIngredient(ItemID.Bone);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this, 1);
recipe.AddRecipe();
}
}
public class NightKunaiRecipe : ModRecipe
{
public NightKunaiRecipe(Mod mod) : base(mod)
{
}
}
}
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Drom.Projectiles
{
public class NightKunai : ModProjectile
{
public override void SetDefaults()
{
projectile.name = "NightKunai";
projectile.width = 40;
projectile.height = 40;
projectile.alpha = 255;
projectile.friendly = true;
projectile.tileCollide = true;
projectile.ignoreWater = true;
projectile.thrown = true;
projectile.aiStyle = 27;
projectile.penetrate = 7;
projectile.light = 0.5f;
}
}
}
using Terraria.ID;
using Terraria.ModLoader;
namespace Drom.Projectiles
{
public class NightKunai : ModProjectile
{
public override void SetDefaults()
{
projectile.name = "NightKunai";
projectile.width = 40;
projectile.height = 40;
projectile.alpha = 255;
projectile.friendly = true;
projectile.tileCollide = true;
projectile.ignoreWater = true;
projectile.thrown = true;
projectile.aiStyle = 27;
projectile.penetrate = 7;
projectile.light = 0.5f;
}
}
}
And finally folder structure as well as a few photos of what the heck is happening(Also no clue where the little white barrier thing came from, must be from one of the mods I have installed):