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

◆ GetSparkleGuitarTarget()

bool Terraria.Player.GetSparkleGuitarTarget ( out List< NPC > validTargets)
inlineprivate

Definition at line 44414 of file Player.cs.

44415 {
44416 validTargets = new List<NPC>();
44417 Rectangle value = Utils.CenteredRectangle(base.Center, new Vector2(1000f, 800f));
44418 for (int i = 0; i < 200; i++)
44419 {
44420 NPC nPC = Main.npc[i];
44421 if (nPC.CanBeChasedBy(this) && nPC.Hitbox.Intersects(value))
44422 {
44424 }
44425 }
44426 if (validTargets.Count == 0)
44427 {
44428 return false;
44429 }
44430 return true;
44431 }
void Add(TKey key, TValue value)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), Terraria.Utils.CenteredRectangle(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, Terraria.Main.npc, and System.value.