MelonMann
Terrarian
i'm making infinite versions of some items for my mod and i've come across the weirdest bug, when using one of the infinite clentaminator solutions, it will use the inferno fork projectile for some reason
i provided a video in a zip file if you wanna see it, but here's my code:
this is in the 1.4-stable branch btw
i provided a video in a zip file if you wanna see it, but here's my code:
C#:
using Terraria;
using Terraria.ID;
using Terraria.GameContent.Creative;
using Terraria.ModLoader;
namespace SandboxMod.Content.Ammo
{
public class InfiniteBlueSolution : ModItem
{
public override void SetStaticDefaults() {
Tooltip.SetDefault("Used by the Clentaminator\nSpreads the hallow");
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
}
public override void SetDefaults() {
Item.shoot = ProjectileID.HallowSpray;
Item.ammo = AmmoID.Solution;
Item.width = 10;
Item.height = 12;
Item.value = Item.buyPrice(0, 0, 25);
Item.rare = ItemRarityID.Orange;
Item.maxStack = 1;
Item.consumable = false;
}
public override void AddRecipes()
{
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ItemID.BlueSolution, 20);
recipe.AddIngredient(ModContent.ItemType<Content.Items.Materials.EmptyPouch>(), 1);
recipe.AddTile(TileID.CrystalBall);
recipe.Register();
}
}
}
this is in the 1.4-stable branch btw