87736 {
87738 {
87739 return;
87740 }
87741 int num = 1100;
87742 for (
int i = 0;
i < 255;
i++)
87743 {
87744 if (Main.player[i].active && !Main.player[i].dead && (
base.Center - Main.player[i].position).Length() < (
float)num && Main.player[i].inventory[Main.player[i].selectedItem].type == 3006 && Main.player[i].itemAnimation > 0)
87745 {
87746 if (i == Main.myPlayer)
87747 {
87748 Main.player[
i].soulDrain++;
87749 }
87750 if (Main.rand.Next(3) != 0)
87751 {
87753 center.X += (float)Main.rand.Next(-100, 100) * 0.05f;
87754 center.Y += (float)Main.rand.Next(-100, 100) * 0.05f;
87757 Main.dust[
num2].velocity *= 0f;
87758 Main.dust[
num2].scale = (float)Main.rand.Next(70, 85) * 0.01f;
87759 Main.dust[
num2].fadeIn =
i + 1;
87760 }
87761 }
87762 }
87763 }