107820 {
107821
107822
107823
107824
107825
107826
107827
107828
107829
107830
107831
107832
107833
107834
107835
107836
107838 {
107839 return;
107840 }
107842 for (int i = 0; i < 255; i++)
107843 {
107844 if (!Main.player[i].active || Main.player[i].dead)
107845 {
107846 continue;
107847 }
107848 Vector2
val = base.Center - Main.player[i].position;
107849 if (((Vector2)(
ref val)).Length() < (
float)
num && Main.player[i].inventory[Main.player[i].selectedItem].type == 3006 && Main.player[i].itemAnimation > 0)
107850 {
107851 if (i == Main.myPlayer)
107852 {
107853 Main.player[i].soulDrain++;
107854 }
107855 if (Main.rand.Next(3) != 0)
107856 {
107858 center.X += (float)Main.rand.Next(-100, 100) * 0.05f;
107859 center.Y += (float)Main.rand.Next(-100, 100) * 0.05f;
107861 int num2 = Dust.NewDust(
center, 1, 1, 235);
107863 obj.velocity *= 0
f;
107864 Main.dust[
num2].scale = (float)Main.rand.Next(70, 85) * 0.01f;
107865 Main.dust[
num2].fadeIn = i + 1;
107866 }
107867 }
107868 }
107869 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.