54080 {
54086 {
54088 if (item.ammo ==
sItem.useAmmo)
54089 {
54091 }
54092 }
54094 {
54095 return;
54096 }
54100 {
54102 }
54104 {
54106 }
54108 {
54110 }
54111 ammoDamage.Base = 0
f;
54116 {
54118 }
54119 else if (
sItem.type == 1946)
54120 {
54122 }
54123 else if (
sItem.type == 3930)
54124 {
54126 }
54128 {
54130 }
54132 {
54134 }
54135 else if (item.shoot > 0)
54136 {
54138 }
54140 {
54142 }
54143 if (
sItem.type == 3052)
54144 {
54146 }
54148 {
54150 }
54151 if (
sItem.type == 4381)
54152 {
54154 }
54156 {
54158 }
54160 {
54161 if (item.type == 370)
54162 {
54165 }
54166 else if (item.type == 408)
54167 {
54170 }
54171 else if (item.type == 1246)
54172 {
54175 }
54176 }
54178 {
54180 }
54182 {
54185 }
54186 speed += item.shootSpeed;
54188 {
54191 }
54193 {
54196 {
54198 }
54199 }
54204 {
54206 item.stack--;
54207 if (item.stack <= 0)
54208 {
54209 item.active = false;
54210 item.TurnToAir();
54211 }
54212 }
54213 }
static bool[] IsArrow
If true for a given item type (F:Terraria.Item.type), then items of that type are counted as arrows f...
static bool[] IsSpecialist
If true for a given item type (F:Terraria.Item.type), then items of that type are counted as speciali...
static bool[] IsBullet
If true for a given item type (F:Terraria.Item.type), then items of that type are counted as bullets ...
AmmoID entries represent ammo types. Ammo items that share the same AmmoID value assigned to F:Terrar...
static Dictionary< int, Item > ItemsByType
The default T:Terraria.Item for a given item type (F:Terraria.Item.type).
This class stores instances of various content types in a number of dictionaries. These instances ser...
static void OnConsumeAmmo(Player player, Item weapon, Item ammo)
static void PickAmmo(Item weapon, Item ammo, Player player, ref int type, ref float speed, ref StatModifier damage, ref float knockback)
Calls ModItem.PickAmmo, then all GlobalItem.PickAmmo hooks.
static bool NeedsAmmo(Item weapon, Player player)
Calls ModItem.NeedsAmmo, then all GlobalItem.NeedsAmmo hooks, until any of them returns false.
This serves as the central class from which item-related functions are carried out....
StatModifier GetTotalDamage(DamageClass damageClass)
Calculates a total damage modifier for the player for the provided T:Terraria.ModLoader....
bool PickAmmo_TryFindingSpecificMatches(int launcher, int ammo, out int pickedProjectileId)
StatModifier bulletDamage
StatModifier specialistDamage
bool IsAmmoFreeThisShot(Item weapon, Item ammo, int projToShoot)
Determines whether or not the given ammunition should be conserved, based on the given weapon as wiel...
Item ChooseAmmo(Item weapon)
Attempts to select an ammo item stack from this player's inventory to shoot with the given weapon.
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...