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

◆ SpreadLava()

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

Definition at line 767 of file DelegateMethods.cs.

768 {
769 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
770 //IL_0009: Unknown result type (might be due to invalid IL or missing references)
771 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
772 //IL_0058: Unknown result type (might be due to invalid IL or missing references)
773 //IL_0068: Unknown result type (might be due to invalid IL or missing references)
774 //IL_0072: Unknown result type (might be due to invalid IL or missing references)
775 //IL_0077: Unknown result type (might be due to invalid IL or missing references)
776 //IL_007c: Unknown result type (might be due to invalid IL or missing references)
777 //IL_008e: Unknown result type (might be due to invalid IL or missing references)
778 //IL_009e: Unknown result type (might be due to invalid IL or missing references)
779 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
780 //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
781 if (Vector2.Distance(v2_1, new Vector2((float)x, (float)y)) > f_1)
782 {
783 return false;
784 }
785 if (WorldGen.PlaceLiquid(x, y, 1, byte.MaxValue))
786 {
787 Vector2 position = default(Vector2);
788 ((Vector2)(ref position))._002Ector((float)(x * 16), (float)(y * 16));
789 int type = 35;
790 for (int i = 0; i < 3; i++)
791 {
792 Dust dust = Dust.NewDustDirect(position, 16, 16, type, 0f, 0f, 100, Color.Transparent, 1.2f);
793 dust.velocity *= 7f;
794 Dust dust2 = Dust.NewDustDirect(position, 16, 16, type, 0f, 0f, 100, Color.Transparent, 0.8f);
795 dust2.velocity *= 4f;
796 }
797 return true;
798 }
799 return false;
800 }

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: