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

◆ SpreadHoney()

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

Definition at line 509 of file DelegateMethods.cs.

510 {
511 if (Vector2.Distance(v2_1, new Vector2(x, y)) > f_1)
512 {
513 return false;
514 }
515 if (WorldGen.PlaceLiquid(x, y, 2, byte.MaxValue))
516 {
517 Vector2 position = new Vector2(x * 16, y * 16);
518 int type = 152;
519 for (int i = 0; i < 3; i++)
520 {
521 Dust dust = Dust.NewDustDirect(position, 16, 16, type, 0f, 0f, 100, Color.Transparent, 2.2f);
522 dust.velocity.Y -= 1.2f;
523 dust.velocity *= 7f;
524 Dust dust2 = Dust.NewDustDirect(position, 16, 16, type, 0f, 0f, 100, Color.Transparent, 1.3f);
525 dust2.velocity.Y -= 1.2f;
526 dust2.velocity *= 4f;
527 }
528 return true;
529 }
530 return false;
531 }
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.DelegateMethods.f_1, Terraria.Dust.NewDustDirect(), Terraria.WorldGen.PlaceLiquid(), Microsoft.Xna.Framework.Color.Transparent, System.type, and Terraria.DelegateMethods.v2_1.

Referenced by Terraria.Projectile.Kill().