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

◆ SpreadDry()

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

Definition at line 553 of file DelegateMethods.cs.

554 {
555 if (Vector2.Distance(v2_1, new Vector2(x, y)) > f_1)
556 {
557 return false;
558 }
559 if (WorldGen.EmptyLiquid(x, y))
560 {
561 Vector2 position = new Vector2(x * 16, y * 16);
562 int type = 31;
563 for (int i = 0; i < 3; i++)
564 {
565 Dust dust = Dust.NewDustDirect(position, 16, 16, type, 0f, 0f, 100, Color.Transparent, 1.2f);
566 dust.noGravity = true;
567 dust.velocity *= 7f;
568 Dust.NewDustDirect(position, 16, 16, type, 0f, 0f, 100, Color.Transparent, 0.8f).velocity *= 4f;
569 }
570 return true;
571 }
572 return false;
573 }
static Color Transparent
Definition Color.cs:76
static float Distance(Vector2 value1, Vector2 value2)
Definition Vector2.cs:91

References Microsoft.Xna.Framework.Vector2.Distance(), Terraria.WorldGen.EmptyLiquid(), Terraria.DelegateMethods.f_1, Terraria.Dust.NewDustDirect(), Microsoft.Xna.Framework.Color.Transparent, System.type, and Terraria.DelegateMethods.v2_1.

Referenced by Terraria.Projectile.Kill().