TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DefaultToAccessory()

void Terraria.Item.DefaultToAccessory ( int newwidth = 24,
int newheight = 24 )
inline

Definition at line 48738 of file Item.cs.

48739 {
48740 width = newwidth;
48741 height = newheight;
48742 accessory = true;
48743 }
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
bool accessory
Whether the item is an accessory. Defaults to false.
Definition Item.cs:378

References Terraria.Item.accessory, Terraria.Entity.height, and Terraria.Entity.width.

Referenced by Terraria.Item.SetDefaults5().

+ Here is the caller graph for this function: