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

◆ SpreadHoney()

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

Definition at line 730 of file DelegateMethods.cs.

731 {
732 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
733 //IL_0009: Unknown result type (might be due to invalid IL or missing references)
734 //IL_004c: Unknown result type (might be due to invalid IL or missing references)
735 //IL_005e: Unknown result type (might be due to invalid IL or missing references)
736 //IL_0082: Unknown result type (might be due to invalid IL or missing references)
737 //IL_008c: Unknown result type (might be due to invalid IL or missing references)
738 //IL_0091: Unknown result type (might be due to invalid IL or missing references)
739 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
740 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
741 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
742 //IL_00d6: Unknown result type (might be due to invalid IL or missing references)
743 //IL_00db: Unknown result type (might be due to invalid IL or missing references)
744 if (Vector2.Distance(v2_1, new Vector2((float)x, (float)y)) > f_1)
745 {
746 return false;
747 }
748 if (WorldGen.PlaceLiquid(x, y, 2, byte.MaxValue))
749 {
750 Vector2 position = default(Vector2);
751 ((Vector2)(ref position))._002Ector((float)(x * 16), (float)(y * 16));
752 int type = 152;
753 for (int i = 0; i < 3; i++)
754 {
755 Dust dust = Dust.NewDustDirect(position, 16, 16, type, 0f, 0f, 100, Color.Transparent, 2.2f);
756 dust.velocity.Y -= 1.2f;
757 dust.velocity *= 7f;
758 Dust dust2 = Dust.NewDustDirect(position, 16, 16, type, 0f, 0f, 100, Color.Transparent, 1.3f);
759 dust2.velocity.Y -= 1.2f;
760 dust2.velocity *= 4f;
761 }
762 return true;
763 }
764 return false;
765 }

References Terraria.DelegateMethods.f_1, Terraria.Dust.NewDustDirect(), Terraria.WorldGen.PlaceLiquid(), and Terraria.DelegateMethods.v2_1.

Referenced by Terraria.Projectile.Kill().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: