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

◆ TestDust()

static bool Terraria.DelegateMethods.TestDust ( int x,
int y )
inlinestatic

Definition at line 586 of file DelegateMethods.cs.

587 {
588 if (x < 0 || x >= Main.maxTilesX || y < 0 || y >= Main.maxTilesY)
589 {
590 return false;
591 }
592 int num = Dust.NewDust(new Vector2(x, y) * 16f + new Vector2(8f), 0, 0, 6);
593 Main.dust[num].noGravity = true;
594 Main.dust[num].noLight = true;
595 return true;
596 }

References Terraria.Main.dust, Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, and Terraria.Dust.NewDust().