Terraria.Player.StatusPvP C# (CSharp) Method

StatusPvP() public method

public StatusPvP ( int type, int i ) : void
type int
i int
return void
        public void StatusPvP(int type, int i)
        {
            if ((int)this.meleeEnchant > 0)
            {
                if ((int)this.meleeEnchant == 1)
                    Main.player[i].AddBuff(70, 60 * Main.rand.Next(5, 10), true);
                if ((int)this.meleeEnchant == 2)
                    Main.player[i].AddBuff(39, 60 * Main.rand.Next(3, 7), true);
                if ((int)this.meleeEnchant == 3)
                    Main.player[i].AddBuff(24, 60 * Main.rand.Next(3, 7), true);
                if ((int)this.meleeEnchant == 5)
                    Main.player[i].AddBuff(69, 60 * Main.rand.Next(10, 20), true);
                if ((int)this.meleeEnchant == 6)
                    Main.player[i].AddBuff(31, 60 * Main.rand.Next(1, 4), true);
                if ((int)this.meleeEnchant == 8)
                    Main.player[i].AddBuff(20, 60 * Main.rand.Next(5, 10), true);
            }
            if (this.frostBurn)
                Main.player[i].AddBuff(44, 60 * Main.rand.Next(1, 8), true);
            if (this.magmaStone)
            {
                if (Main.rand.Next(7) == 0)
                    Main.player[i].AddBuff(24, 360, true);
                else if (Main.rand.Next(3) == 0)
                    Main.player[i].AddBuff(24, 120, true);
                else
                    Main.player[i].AddBuff(24, 60, true);
            }
            if (type == 121)
            {
                if (Main.rand.Next(2) != 0)
                    return;
                Main.player[i].AddBuff(24, 180, false);
            }
            else if (type == 122)
            {
                if (Main.rand.Next(10) != 0)
                    return;
                Main.player[i].AddBuff(24, 180, false);
            }
            else if (type == 190)
            {
                if (Main.rand.Next(4) != 0)
                    return;
                Main.player[i].AddBuff(20, 420, false);
            }
            else if (type == 217)
            {
                if (Main.rand.Next(5) != 0)
                    return;
                Main.player[i].AddBuff(24, 180, false);
            }
            else
            {
                if (type != 1123 || Main.rand.Next(9) == 0)
                    return;
                Main.player[i].AddBuff(31, 120, false);
            }
        }
Player