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

◆ TryGetContainerIndex()

bool Terraria.Projectile.TryGetContainerIndex ( out int containerIndex)
inline

Definition at line 67147 of file Projectile.cs.

67148 {
67149 containerIndex = -1;
67150 if (type == 525 || type == 960)
67151 {
67152 containerIndex = -2;
67153 return true;
67154 }
67155 if (type == 734)
67156 {
67157 containerIndex = -5;
67158 return true;
67159 }
67160 return false;
67161 }

References System.type.

Referenced by Terraria.Player.GetNearbyContainerProjectilesList(), and Terraria.Player.QuickStackAllChests().