public void StatusPlayer(NPC npc)
{
if (Main.expertMode && (npc.type == 266 && Main.rand.Next(3) == 0 || npc.type == 267))
{
int num1 = Main.rand.Next(9);
switch (num1)
{
case 2:
case 4:
num1 = Main.rand.Next(9);
break;
}
float num2 = (float)Main.rand.Next(75, 150) * 0.01f;
if (num1 == 0)
this.AddBuff(20, (int)(60.0 * (double)num2 * 3.5), true);
else if (num1 == 1)
this.AddBuff(22, (int)(60.0 * (double)num2 * 2.0), true);
else if (num1 == 2)
this.AddBuff(23, (int)(60.0 * (double)num2 * 0.5), true);
else if (num1 == 3)
this.AddBuff(30, (int)(60.0 * (double)num2 * 5.0), true);
else if (num1 == 4)
this.AddBuff(31, (int)(60.0 * (double)num2 * 1.0), true);
else if (num1 == 5)
this.AddBuff(32, (int)(60.0 * (double)num2 * 3.5), true);
else if (num1 == 6)
this.AddBuff(33, (int)(60.0 * (double)num2 * 7.5), true);
else if (num1 == 7)
this.AddBuff(35, (int)(60.0 * (double)num2 * 1.0), true);
else if (num1 == 8)
this.AddBuff(36, (int)(60.0 * (double)num2 * 6.5), true);
}
if (npc.type == 159 || npc.type == 158)
this.AddBuff(30, Main.rand.Next(300, 600), true);
if (npc.type == 525)
this.AddBuff(39, 420, true);
if (npc.type == 526)
this.AddBuff(69, 420, true);
if (npc.type == 527)
this.AddBuff(31, 840, true);
if (Main.expertMode && (npc.type == 49 || npc.type == 93 || (npc.type == 51 || npc.type == 152)) && Main.rand.Next(10) == 0)
this.AddBuff(148, Main.rand.Next(1800, 5400), true);
if (Main.expertMode && npc.type == 222)
this.AddBuff(20, Main.rand.Next(60, 240), true);
if (Main.expertMode && (npc.type == 210 || npc.type == 211))
this.AddBuff(20, Main.rand.Next(60, 180), true);
if (Main.expertMode && npc.type == 35)
this.AddBuff(30, Main.rand.Next(180, 300), true);
if (Main.expertMode && npc.type == 36 && Main.rand.Next(2) == 0)
this.AddBuff(32, Main.rand.Next(30, 60), true);
if (npc.type >= 269 && npc.type <= 272)
{
if (Main.rand.Next(3) == 0)
this.AddBuff(30, 600, true);
else if (Main.rand.Next(3) == 0)
this.AddBuff(32, 300, true);
}
if (npc.type >= 273 && npc.type <= 276 && Main.rand.Next(2) == 0)
this.AddBuff(36, 600, true);
if (npc.type >= 277 && npc.type <= 280)
this.AddBuff(24, 600, true);
if (npc.type == 371)
this.AddBuff(103, 60 * Main.rand.Next(3, 8), true);
if (npc.type == 370 && Main.expertMode)
{
int type = Utils.SelectRandom<int>(Main.rand, 0, 148, 30);
if (type != 0)
this.AddBuff(type, 60 * Main.rand.Next(3, 11), true);
}
if ((npc.type == 1 && npc.name == "Black Slime" || (npc.type == 81 || npc.type == 79)) && Main.rand.Next(4) == 0)
this.AddBuff(22, 900, true);
if ((npc.type == 23 || npc.type == 25) && Main.rand.Next(3) == 0)
this.AddBuff(24, 420, true);
if ((npc.type == 34 || npc.type == 83 || npc.type == 84) && Main.rand.Next(3) == 0)
this.AddBuff(23, 240, true);
if ((npc.type == 104 || npc.type == 102) && Main.rand.Next(8) == 0)
this.AddBuff(30, 2700, true);
if (npc.type == 75 && Main.rand.Next(10) == 0)
this.AddBuff(35, 420, true);
if ((npc.type == 163 || npc.type == 238) && Main.rand.Next(10) == 0)
this.AddBuff(70, 480, true);
if ((npc.type == 79 || npc.type == 103) && Main.rand.Next(5) == 0)
this.AddBuff(35, 420, true);
if ((npc.type == 75 || npc.type == 78 || npc.type == 82) && Main.rand.Next(8) == 0)
this.AddBuff(32, 900, true);
if ((npc.type == 93 || npc.type == 109 || npc.type == 80) && Main.rand.Next(14) == 0)
this.AddBuff(31, 300, true);
if (npc.type >= 305 && npc.type <= 314 && Main.rand.Next(10) == 0)
this.AddBuff(33, 3600, true);
if (npc.type == 77 && Main.rand.Next(6) == 0)
this.AddBuff(36, 7200, true);
if (npc.type == 112 && Main.rand.Next(20) == 0)
this.AddBuff(33, 18000, true);
if (npc.type == 182 && Main.rand.Next(25) == 0)
this.AddBuff(33, 7200, true);
if (npc.type == 141 && Main.rand.Next(2) == 0)
this.AddBuff(20, 600, true);
if (npc.type == 147 && !this.frozen && Main.rand.Next(12) == 0)
this.AddBuff(46, 600, true);
if (npc.type == 150)
{
if (Main.rand.Next(2) == 0)
this.AddBuff(46, 900, true);
if (!this.frozen && Main.rand.Next(35) == 0)
this.AddBuff(47, 60, true);
else if (!this.frozen && Main.expertMode && Main.rand.Next(35) == 0)
this.AddBuff(47, 60, true);
}
if (npc.type != 184)
return;
this.AddBuff(46, 1200, true);
if (!this.frozen && Main.rand.Next(15) == 0)
{
this.AddBuff(47, 60, true);
}
else
{
if (this.frozen || !Main.expertMode || Main.rand.Next(25) != 0)
return;
this.AddBuff(47, 60, true);
}
}