Terraria.Player.pumpkinSword C# (CSharp) Method

pumpkinSword() private method

private pumpkinSword ( int i, int dmg, float kb ) : void
i int
dmg int
kb float
return void
        private void pumpkinSword(int i, int dmg, float kb)
        {
            int num1 = Main.rand.Next(100, 300);
            int num2 = Main.rand.Next(100, 300);
            int num3 = Main.rand.Next(2) != 0 ? num1 + (Main.maxScreenW / 2 - num1) : num1 - (Main.maxScreenW / 2 + num1);
            int num4 = Main.rand.Next(2) != 0 ? num2 + (Main.maxScreenH / 2 - num2) : num2 - (Main.maxScreenH / 2 + num2);
            int num5 = num3 + (int)this.position.X;
            int num6 = num4 + (int)this.position.Y;
            float num7 = 8f;
            Vector2 vector2 = new Vector2((float)num5, (float)num6);
            float num8 = Main.npc[i].position.X - vector2.X;
            float num9 = Main.npc[i].position.Y - vector2.Y;
            float num10 = (float)Math.Sqrt((double)num8 * (double)num8 + (double)num9 * (double)num9);
            float num11 = num7 / num10;
            float SpeedX = num8 * num11;
            float SpeedY = num9 * num11;
            Projectile.NewProjectile((float)num5, (float)num6, SpeedX, SpeedY, 321, dmg, kb, this.whoAmI, (float)i, 0.0f);
        }
Player