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

◆ PickAmmo_TryFindingSpecificMatches()

bool Terraria.Player.PickAmmo_TryFindingSpecificMatches ( int launcher,
int ammo,
out int pickedProjectileId )
inlineprivate

Definition at line 53992 of file Player.cs.

53993 {
53995 if (AmmoID.Sets.SpecificLauncherAmmoProjectileMatches.TryGetValue(launcher, out var value) && value.TryGetValue(ammo, out pickedProjectileId))
53996 {
53997 return true;
53998 }
53999 return false;
54000 }
static Dictionary< int, Dictionary< int, int > > SpecificLauncherAmmoProjectileMatches
Associates a launcher's item type (F:Terraria.Item.type) and an ammo's item type (F:Terraria....
Definition AmmoID.cs:18
AmmoID entries represent ammo types. Ammo items that share the same AmmoID value assigned to F:Terrar...
Definition AmmoID.cs:11

References Terraria.ID.AmmoID.Sets.SpecificLauncherAmmoProjectileMatches.

Referenced by Terraria.Player.PickAmmo().

+ Here is the caller graph for this function: