DraLUSAD
Skeletron Prime
Hi guys, i'm looking for a few ways on some of my accessories and how they should work, at the moment they are coded like this
BUT, its not what i want, infact, i'm hoping if anyone can help me change the code to doing this:
Code:
using System;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Industrialization.Accessories
{
public class itebattlestoken : ModItem
{
public override void SetDefaults()
{
item.name = "Battle's Token";
item.width = 24;
item.height = 28;
item.toolTip = "Increases enemy spawn rate";
item.value = 0;
item.rare = 1;
item.accessory = true;
}
public override void UpdateAccessory(Player player)
{
player.enemySpawns = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(null, "itediskbattleset", 1);
recipe.AddIngredient(null, "iteemptytoken", 1);
recipe.AddIngredient(null, "itecredit", 250);
recipe.AddIngredient(300, 30);
recipe.AddTile(114);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
BUT, its not what i want, infact, i'm hoping if anyone can help me change the code to doing this:
- Doesn't work in the accessories slot, instead, works only in the Accessory vanity slot
- Works just like that of a "Compass", "Watch", "Rader" ect, just by sitting in your inventory