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

◆ Torches

bool [] Terraria.ID.ItemID.Sets.Torches = Factory.CreateBoolSet(8, 427, 3004, 523, 433, 429, 974, 1333, 1245, 3114, 430, 3045, 428, 2274, 431, 432, 4383, 4384, 4385, 4386, 4387, 4388, 5293, 5353)
static

If true for a given item type (F:Terraria.Item.type), then that item is a torch.
Torches can be auto-selected by Smart Cursor.
Vanilla torches have an associated T:Terraria.ID.TorchID, which determines what color light they produce when held.
Defaults to false.

To make a torch placable underwater, use F:Terraria.ID.ItemID.Sets.WaterTorches as well.

Definition at line 1539 of file ItemID.cs.

Referenced by Terraria.Player.ItemCheck_EmitHeldItemLight(), Terraria.Player.SmartSelect_PickToolForStrategy(), and Terraria.Item.UpdateItem_VisualEffects().