48819 {
48820 if (Type < 0)
48821 {
48823 return;
48824 }
48825 if (Main.netMode == 1 || Main.netMode == 2)
48826 {
48828 }
48829 else
48830 {
48832 }
48835 {
48837 }
48839 {
48841 }
48844 {
48847 }
48849 {
48851 }
48852 else if (
type <= 1000)
48853 {
48855 }
48856 else if (
type <= 2001)
48857 {
48859 }
48860 else if (
type <= 3000)
48861 {
48863 }
48864 else if (
type <= 3989)
48865 {
48867 }
48868 else
48869 {
48871 }
48875 {
48877 }
48880 {
48882 }
48884 {
48886 }
48888 {
48890 }
48892 {
48894 }
48896 {
48898 }
48900 {
48902 }
48904 {
48906 }
48908 {
48910 }
48912 {
48914 }
48916 {
48918 }
48920 {
48922 }
48924 {
48926 }
48928 {
48930 }
48932 {
48934 }
48936 {
48938 }
48940 {
48942 }
48944 {
48946 }
48948 {
48950 }
48952 {
48954 }
48956 {
48958 }
48960 {
48962 }
48964 {
48966 }
48968 {
48970 }
48972 {
48974 }
48976 {
48978 }
48980 {
48982 }
48984 {
48986 }
48988 {
48990 }
48992 {
48994 }
48996 {
48998 }
49000 {
49002 }
49004 {
49006 {
49008 }
49009 else if (
bait >= 30)
49010 {
49012 }
49013 else if (
bait >= 15)
49014 {
49016 }
49017 }
49019 {
49022 {
49024 }
49026 {
49028 }
49030 {
49032 }
49034 {
49036 }
49038 {
49040 }
49042 {
49044 }
49046 {
49048 }
49050 {
49052 }
49053 }
49055 {
49057 }
49058 if (Main.projHook[
shoot])
49059 {
49063 }
49065 {
49068 {
49070 }
49073 {
49075 }
49077 }
49079 {
49081 }
49083 {
49085 }
49087 {
49089 }
49091 {
49093 }
49097 {
49099 }
49102 {
49104 }
49105 }
static ItemVariant SelectVariant(int itemId)
Determines which T:Terraria.GameContent.Items.ItemVariant should be applied to an item of type itemId...
static bool HasVariant(int itemId, ItemVariant variant)
Determines if an F:Terraria.Item.type has a particular T:Terraria.GameContent.Items....
Handles conditional variants for T:Terraria.Items, commonly used for secret seeds.
static HairShaderDataSet Hair
static ArmorShaderDataSet Armor
static bool[] IsAMaterial
Indicates that an item should show the material tooltip. Typically this means that the item is used i...
static bool[] Deprecated
If true for a given item type (F:Terraria.Item.type), then that item cannot exist normally: It will b...
static bool[] IsChainsaw
If true for a given item type (F:Terraria.Item.type), then that item is a chainsaw....
static bool[] IsFood
If true for a given item type (F:Terraria.Item.type), then that item is food. Food items can be pla...
static bool[] IsDrill
If true for a given item type (F:Terraria.Item.type), then that item is a drill. Drills have 40% fa...
static readonly short Count
int hairDye
The numerical ID of the hair shader in F:Terraria.Graphics.Shaders.GameShaders.Hair this item will ap...
int useAnimation
The time span of the using animation for the item in ticks. This is independent of the time it takes ...
void SetDefaults2(int type)
int dye
The numerical ID of the armor shader in F:Terraria.Graphics.Shaders.GameShaders.Armor this item activ...
bool material
Indicates that an item should show the material tooltip. Typically this means that the item is used i...
void SetDefaults3(int type)
void netDefaults(int type)
void ResetStats(int Type)
int value
The number of copper coins this item is worth (aka, cost to buy from a merchant). Setting it to 10462...
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
int rare
Indicates the rarity of an item. Assign to a T:Terraria.ID.ItemRarityID value. Vanilla values range f...
int shoot
The ID of the projectile that is fired by this item on use. Either a T:Terraria.ID....
int maxStack
The maximum number of items that can be contained within a single stack. F:Terraria....
int createTile
The ID of the tile this item places on use. Either a T:Terraria.ID.TileID entry or M:Terraria....
int useStyle
Assign to an T:Terraria.ID.ItemUseStyleID value to give this item a specific animation while in use....
static int sellPrice(int platinum=0, int gold=0, int silver=0, int copper=0)
Converts the provided sell value into copper coins. This value is five times larger than M:Terraria....
static int CommonMaxStack
The default stack size for stackable items: 9999.
void SetFoodDefaults(int type)
int tileBoost
Additional tile range provided by this tool or tile. Copper Pickaxe has a value of -1,...
int playerIndexTheItemIsReservedFor
void RestoreMeleeSpeedBehaviorOnVanillaItems()
int holdStyle
Assign to an T:Terraria.ID.ItemHoldStyleID value to give this item a specific animation while the pla...
int useTime
The time span of using the item in ticks. This is independent of the time it takes for the item anima...
void ApplyItemAnimationCompensationsToVanillaItems()
void TurnToAir(bool fullReset=false)
void SetDefaults4(int type)
void SetDefaults(int Type=0)
void SetDefaults5(int type)
void SetDefaults1(int type)
int bait
The numerical value this item adds to a player's fishing skill when used as bait. If greater than 0,...
bool master
If true, then the given item is automatically given the Master rarity, causing its name to be drawn i...
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
static void SetDefaults(Item item, bool createModItem=true)
This serves as the central class from which item-related functions are carried out....