tModLoader v2024.03
A mod to make and play Terraria mods
AmmoID Class Reference

AmmoID entries represent ammo types. Ammo items that share the same AmmoID value assigned to Item.ammo can all be used as ammo for weapons using that same value for Item.useAmmo. AmmoID values are actually equivalent to the ItemID value of the iconic ammo item.
The Basic Ammo Guideteaches more about ammo. More...

Classes

class  Sets
 

Static Public Attributes

static int Arrow = 40
 
static int Bullet = 97
 
static int CandyCorn = 1783
 
static int Coin = 71
 
static int Dart = 283
 
static int FallenStar = 75
 
static int Flare = 931
 
static int Gel = 23
 
static int JackOLantern = 1785
 
static int NailFriendly = 3108
 
static int None = 0
 
static int Rocket = 771
 
static int Sand = 169
 Items using this as Item.ammo can use ItemID.Sets.SandgunAmmoProjectileData to customize the projectile and bonus damage of this ammo.
 
static int Snowball = 949
 
static int Solution = 780
 
static int Stake = 1836
 
static int StyngerBolt = 1261
 

Detailed Description

AmmoID entries represent ammo types. Ammo items that share the same AmmoID value assigned to Item.ammo can all be used as ammo for weapons using that same value for Item.useAmmo. AmmoID values are actually equivalent to the ItemID value of the iconic ammo item.
The Basic Ammo Guide

teaches more about ammo.