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

◆ DefaultToTorch() [2/2]

void Terraria.Item.DefaultToTorch ( int tileStyleToPlace,
bool allowWaterPlacement = false )
inlinepackage

Definition at line 48558 of file Item.cs.

48559 {
48560 flame = true;
48562 holdStyle = 1;
48563 autoReuse = true;
48565 consumable = true;
48566 createTile = 4;
48568 width = 10;
48569 height = 12;
48570 value = 60;
48571 useStyle = 1;
48572 useTurn = true;
48573 useAnimation = 15;
48574 useTime = 10;
48575 }
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 useTurn
Whether the player can turn around while the using animation of this item is happening....
Definition Item.cs:500
int useAnimation
The time span of the using animation for the item in ticks. This is independent of the time it takes ...
Definition Item.cs:384
int value
The number of copper coins this item is worth (aka, cost to buy from a merchant). Setting it to 10462...
Definition Item.cs:655
int maxStack
The maximum number of items that can be contained within a single stack. F:Terraria....
Definition Item.cs:402
int createTile
The ID of the tile this item places on use. Either a T:Terraria.ID.TileID entry or M:Terraria....
Definition Item.cs:435
bool consumable
Whether the item is consumed after use. If consumed, the item stack will decrease by 1....
Definition Item.cs:488
int useStyle
Assign to an T:Terraria.ID.ItemUseStyleID value to give this item a specific animation while in use....
Definition Item.cs:366
bool noWet
If true, the item won't be drawn while the holding player is wet. The player will also not be in the ...
Definition Item.cs:676
static int CommonMaxStack
The default stack size for stackable items: 9999.
Definition Item.cs:94
int placeStyle
The style of the tile being placed. Used for tiles that have a different look depending on the item u...
Definition Item.cs:448
int holdStyle
Assign to an T:Terraria.ID.ItemHoldStyleID value to give this item a specific animation while the pla...
Definition Item.cs:360
int useTime
The time span of using the item in ticks. This is independent of the time it takes for the item anima...
Definition Item.cs:391
bool autoReuse
Whether the item is in continuous use while the mouse button is held down. Defaults to false.
Definition Item.cs:494
bool flame
If true, will cause the corresponding flame texture to be drawn while this item is held....
Definition Item.cs:169

References Terraria.Item.autoReuse, Terraria.Item.CommonMaxStack, Terraria.Item.consumable, Terraria.Item.createTile, Terraria.Item.flame, Terraria.Entity.height, Terraria.Item.holdStyle, Terraria.Item.maxStack, Terraria.Item.noWet, Terraria.Item.placeStyle, Terraria.Item.useAnimation, Terraria.Item.useStyle, Terraria.Item.useTime, Terraria.Item.useTurn, Terraria.Item.value, and Terraria.Entity.width.