public void UpdateEquips(int i)
{
for (int index = 0; index < 58; ++index)
{
int num = this.inventory[index].itemId;
if ((num == 15 || num == 707) && this.accWatch < 1)
this.accWatch = 1;
if ((num == 16 || num == 708) && this.accWatch < 2)
this.accWatch = 2;
if ((num == 17 || num == 709) && this.accWatch < 3)
this.accWatch = 3;
if (num == 393)
this.accCompass = 1;
if (num == 18)
this.accDepthMeter = 1;
if (num == 395 || num == 3123 || num == 3124)
{
this.accWatch = 3;
this.accDepthMeter = 1;
this.accCompass = 1;
}
if (num == 3120 || num == 3036 || (num == 3123 || num == 3124))
this.accFishFinder = true;
if (num == 3037 || num == 3036 || (num == 3123 || num == 3124))
this.accWeatherRadio = true;
if (num == 3096 || num == 3036 || (num == 3123 || num == 3124))
this.accCalendar = true;
if (num == 3084 || num == 3122 || (num == 3123 || num == 3124))
this.accThirdEye = true;
if (num == 3095 || num == 3122 || (num == 3123 || num == 3124))
this.accJarOfSouls = true;
if (num == 3118 || num == 3122 || (num == 3123 || num == 3124))
this.accCritterGuide = true;
if (num == 3099 || num == 3121 || (num == 3123 || num == 3124))
this.accStopwatch = true;
if (num == 3102 || num == 3121 || (num == 3123 || num == 3124))
this.accOreFinder = true;
if (num == 3119 || num == 3121 || (num == 3123 || num == 3124))
this.accDreamCatcher = true;
}
for (int index1 = 0; index1 < 8 + this.extraAccessorySlots; ++index1)
{
if (!this.armor[index1].expertOnly || Main.expertMode)
{
int num = this.armor[index1].itemId;
if ((num == 15 || num == 707) && this.accWatch < 1)
this.accWatch = 1;
if ((num == 16 || num == 708) && this.accWatch < 2)
this.accWatch = 2;
if ((num == 17 || num == 709) && this.accWatch < 3)
this.accWatch = 3;
if (num == 393)
this.accCompass = 1;
if (num == 18)
this.accDepthMeter = 1;
if (num == 395 || num == 3123 || num == 3124)
{
this.accWatch = 3;
this.accDepthMeter = 1;
this.accCompass = 1;
}
if (num == 3120 || num == 3036 || (num == 3123 || num == 3124))
this.accFishFinder = true;
if (num == 3037 || num == 3036 || (num == 3123 || num == 3124))
this.accWeatherRadio = true;
if (num == 3096 || num == 3036 || (num == 3123 || num == 3124))
this.accCalendar = true;
if (num == 3084 || num == 3122 || (num == 3123 || num == 3124))
this.accThirdEye = true;
if (num == 3095 || num == 3122 || (num == 3123 || num == 3124))
this.accJarOfSouls = true;
if (num == 3118 || num == 3122 || (num == 3123 || num == 3124))
this.accCritterGuide = true;
if (num == 3099 || num == 3121 || (num == 3123 || num == 3124))
this.accStopwatch = true;
if (num == 3102 || num == 3121 || (num == 3123 || num == 3124))
this.accOreFinder = true;
if (num == 3119 || num == 3121 || (num == 3123 || num == 3124))
this.accDreamCatcher = true;
if (this.armor[index1].itemId == 3017 && this.whoAmI == Main.myPlayer && ((double)this.velocity.Y == 0.0 && this.grappling[0] == -1))
{
int index2 = (int)this.Center.X / 16;
int tileY = (int)((double)this.position.Y + (double)this.height - 1.0) / 16;
if (Main.tile[index2, tileY] == null)
Main.tile[index2, tileY] = new Tile();
if (!Main.tile[index2, tileY].active() && (int)Main.tile[index2, tileY].liquid == 0 && (Main.tile[index2, tileY + 1] != null && WorldGen.SolidTile(index2, tileY + 1)))
{
Main.tile[index2, tileY].frameY = (short)0;
Main.tile[index2, tileY].slope((byte)0);
Main.tile[index2, tileY].halfBrick(false);
if ((int)Main.tile[index2, tileY + 1].type == 2)
{
if (Main.rand.Next(2) == 0)
{
Main.tile[index2, tileY].active(true);
Main.tile[index2, tileY].type = (ushort)3;
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(6, 11));
while ((int)Main.tile[index2, tileY].frameX == 144)
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(6, 11));
}
else
{
Main.tile[index2, tileY].active(true);
Main.tile[index2, tileY].type = (ushort)73;
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(6, 21));
while ((int)Main.tile[index2, tileY].frameX == 144)
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(6, 21));
}
if (Main.netMode == 1)
NetMessage.SendTileSquare(-1, index2, tileY, 1);
}
else if ((int)Main.tile[index2, tileY + 1].type == 109)
{
if (Main.rand.Next(2) == 0)
{
Main.tile[index2, tileY].active(true);
Main.tile[index2, tileY].type = (ushort)110;
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(4, 7));
while ((int)Main.tile[index2, tileY].frameX == 90)
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(4, 7));
}
else
{
Main.tile[index2, tileY].active(true);
Main.tile[index2, tileY].type = (ushort)113;
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(2, 8));
while ((int)Main.tile[index2, tileY].frameX == 90)
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(2, 8));
}
if (Main.netMode == 1)
NetMessage.SendTileSquare(-1, index2, tileY, 1);
}
else if ((int)Main.tile[index2, tileY + 1].type == 60)
{
Main.tile[index2, tileY].active(true);
Main.tile[index2, tileY].type = (ushort)74;
Main.tile[index2, tileY].frameX = (short)(18 * Main.rand.Next(9, 17));
if (Main.netMode == 1)
NetMessage.SendTileSquare(-1, index2, tileY, 1);
}
}
}
this.statDefense += this.armor[index1].defense;
this.lifeRegen += this.armor[index1].lifeRegen;
if (this.armor[index1].itemId == 268)
this.accDivingHelm = true;
if (this.armor[index1].itemId == 238)
this.magicDamage += 0.15f;
if (this.armor[index1].itemId == 3212)
this.armorPenetration += 5;
if (this.armor[index1].itemId == 2277)
{
this.magicDamage += 0.05f;
this.meleeDamage += 0.05f;
this.rangedDamage += 0.05f;
this.thrownDamage += 0.05f;
this.magicCrit += 5;
this.rangedCrit += 5;
this.meleeCrit += 5;
this.thrownCrit += 5;
this.meleeSpeed += 0.1f;
this.moveSpeed += 0.1f;
}
if (this.armor[index1].itemId == 2279)
{
this.magicDamage += 0.06f;
this.magicCrit += 6;
this.manaCost -= 0.1f;
}
if (this.armor[index1].itemId == 3109)
this.nightVision = true;
if (this.armor[index1].itemId == 256)
this.thrownVelocity += 0.15f;
if (this.armor[index1].itemId == 257)
this.thrownDamage += 0.15f;
if (this.armor[index1].itemId == 258)
this.thrownCrit += 10;
if (this.armor[index1].itemId == 3374)
this.thrownVelocity += 0.2f;
if (this.armor[index1].itemId == 3375)
this.thrownDamage += 0.2f;
if (this.armor[index1].itemId == 3376)
this.thrownCrit += 15;
if (this.armor[index1].itemId == 2275)
{
this.magicDamage += 0.07f;
this.magicCrit += 7;
}
if (this.armor[index1].itemId == 123 || this.armor[index1].itemId == 124 || this.armor[index1].itemId == 125)
this.magicDamage += 0.07f;
if (this.armor[index1].itemId == 151 || this.armor[index1].itemId == 152 || (this.armor[index1].itemId == 153 || this.armor[index1].itemId == 959))
this.rangedDamage += 0.05f;
if (this.armor[index1].itemId == 111 || this.armor[index1].itemId == 228 || (this.armor[index1].itemId == 229 || this.armor[index1].itemId == 230) || (this.armor[index1].itemId == 960 || this.armor[index1].itemId == 961 || this.armor[index1].itemId == 962))
this.statManaMax2 += 20;
if (this.armor[index1].itemId == 228 || this.armor[index1].itemId == 960)
this.statManaMax2 += 20;
if (this.armor[index1].itemId == 228 || this.armor[index1].itemId == 229 || (this.armor[index1].itemId == 230 || this.armor[index1].itemId == 960) || (this.armor[index1].itemId == 961 || this.armor[index1].itemId == 962))
this.magicCrit += 4;
if (this.armor[index1].itemId == 100 || this.armor[index1].itemId == 101 || this.armor[index1].itemId == 102)
this.meleeSpeed += 0.07f;
if (this.armor[index1].itemId == 956 || this.armor[index1].itemId == 957 || this.armor[index1].itemId == 958)
this.meleeSpeed += 0.07f;
if (this.armor[index1].itemId == 792 || this.armor[index1].itemId == 793 || this.armor[index1].itemId == 794)
{
this.meleeDamage += 0.02f;
this.rangedDamage += 0.02f;
this.magicDamage += 0.02f;
this.thrownDamage += 0.02f;
}
if (this.armor[index1].itemId == 371)
{
this.magicCrit += 9;
this.statManaMax2 += 40;
}
if (this.armor[index1].itemId == 372)
{
this.moveSpeed += 0.07f;
this.meleeSpeed += 0.12f;
}
if (this.armor[index1].itemId == 373)
{
this.rangedDamage += 0.1f;
this.rangedCrit += 6;
}
if (this.armor[index1].itemId == 374)
{
this.magicCrit += 3;
this.meleeCrit += 3;
this.rangedCrit += 3;
}
if (this.armor[index1].itemId == 375)
this.moveSpeed += 0.1f;
if (this.armor[index1].itemId == 376)
{
this.magicDamage += 0.15f;
this.statManaMax2 += 60;
}
if (this.armor[index1].itemId == 377)
{
this.meleeCrit += 5;
this.meleeDamage += 0.1f;
}
if (this.armor[index1].itemId == 378)
{
this.rangedDamage += 0.12f;
this.rangedCrit += 7;
}
if (this.armor[index1].itemId == 379)
{
this.rangedDamage += 0.05f;
this.meleeDamage += 0.05f;
this.magicDamage += 0.05f;
}
if (this.armor[index1].itemId == 380)
{
this.magicCrit += 3;
this.meleeCrit += 3;
this.rangedCrit += 3;
}
if (this.armor[index1].itemId >= 2367 && this.armor[index1].itemId <= 2369)
this.fishingSkill += 5;
if (this.armor[index1].itemId == 400)
{
this.magicDamage += 0.11f;
this.magicCrit += 11;
this.statManaMax2 += 80;
}
if (this.armor[index1].itemId == 401)
{
this.meleeCrit += 7;
this.meleeDamage += 0.14f;
}
if (this.armor[index1].itemId == 402)
{
this.rangedDamage += 0.14f;
this.rangedCrit += 8;
}
if (this.armor[index1].itemId == 403)
{
this.rangedDamage += 0.06f;
this.meleeDamage += 0.06f;
this.magicDamage += 0.06f;
}
if (this.armor[index1].itemId == 404)
{
this.magicCrit += 4;
this.meleeCrit += 4;
this.rangedCrit += 4;
this.moveSpeed += 0.05f;
}
if (this.armor[index1].itemId == 1205)
{
this.meleeDamage += 0.08f;
this.meleeSpeed += 0.12f;
}
if (this.armor[index1].itemId == 1206)
{
this.rangedDamage += 0.09f;
this.rangedCrit += 9;
}
if (this.armor[index1].itemId == 1207)
{
this.magicDamage += 0.07f;
this.magicCrit += 7;
this.statManaMax2 += 60;
}
if (this.armor[index1].itemId == 1208)
{
this.meleeDamage += 0.03f;
this.rangedDamage += 0.03f;
this.magicDamage += 0.03f;
this.magicCrit += 2;
this.meleeCrit += 2;
this.rangedCrit += 2;
}
if (this.armor[index1].itemId == 1209)
{
this.meleeDamage += 0.02f;
this.rangedDamage += 0.02f;
this.magicDamage += 0.02f;
++this.magicCrit;
++this.meleeCrit;
++this.rangedCrit;
}
if (this.armor[index1].itemId == 1210)
{
this.meleeDamage += 0.07f;
this.meleeSpeed += 0.07f;
this.moveSpeed += 0.07f;
}
if (this.armor[index1].itemId == 1211)
{
this.rangedCrit += 15;
this.moveSpeed += 0.08f;
}
if (this.armor[index1].itemId == 1212)
{
this.magicCrit += 18;
this.statManaMax2 += 80;
}
if (this.armor[index1].itemId == 1213)
{
this.magicCrit += 6;
this.meleeCrit += 6;
this.rangedCrit += 6;
}
if (this.armor[index1].itemId == 1214)
this.moveSpeed += 0.11f;
if (this.armor[index1].itemId == 1215)
{
this.meleeDamage += 0.08f;
this.meleeCrit += 8;
this.meleeSpeed += 0.08f;
}
if (this.armor[index1].itemId == 1216)
{
this.rangedDamage += 0.16f;
this.rangedCrit += 7;
}
if (this.armor[index1].itemId == 1217)
{
this.magicDamage += 0.16f;
this.magicCrit += 7;
this.statManaMax2 += 100;
}
if (this.armor[index1].itemId == 1218)
{
this.meleeDamage += 0.04f;
this.rangedDamage += 0.04f;
this.magicDamage += 0.04f;
this.magicCrit += 3;
this.meleeCrit += 3;
this.rangedCrit += 3;
}
if (this.armor[index1].itemId == 1219)
{
this.meleeDamage += 0.03f;
this.rangedDamage += 0.03f;
this.magicDamage += 0.03f;
this.magicCrit += 3;
this.meleeCrit += 3;
this.rangedCrit += 3;
this.moveSpeed += 0.06f;
}
if (this.armor[index1].itemId == 558)
{
this.magicDamage += 0.12f;
this.magicCrit += 12;
this.statManaMax2 += 100;
}
if (this.armor[index1].itemId == 559)
{
this.meleeCrit += 10;
this.meleeDamage += 0.1f;
this.meleeSpeed += 0.1f;
}
if (this.armor[index1].itemId == 553)
{
this.rangedDamage += 0.15f;
this.rangedCrit += 8;
}
if (this.armor[index1].itemId == 551)
{
this.magicCrit += 7;
this.meleeCrit += 7;
this.rangedCrit += 7;
}
if (this.armor[index1].itemId == 552)
{
this.rangedDamage += 0.07f;
this.meleeDamage += 0.07f;
this.magicDamage += 0.07f;
this.moveSpeed += 0.08f;
}
if (this.armor[index1].itemId == 1001)
{
this.meleeDamage += 0.16f;
this.meleeCrit += 6;
}
if (this.armor[index1].itemId == 1002)
{
this.rangedDamage += 0.16f;
this.ammoCost80 = true;
}
if (this.armor[index1].itemId == 1003)
{
this.statManaMax2 += 80;
this.manaCost -= 0.17f;
this.magicDamage += 0.16f;
}
if (this.armor[index1].itemId == 1004)
{
this.meleeDamage += 0.05f;
this.magicDamage += 0.05f;
this.rangedDamage += 0.05f;
this.magicCrit += 7;
this.meleeCrit += 7;
this.rangedCrit += 7;
}
if (this.armor[index1].itemId == 1005)
{
this.magicCrit += 8;
this.meleeCrit += 8;
this.rangedCrit += 8;
this.moveSpeed += 0.05f;
}
if (this.armor[index1].itemId == 2189)
{
this.statManaMax2 += 60;
this.manaCost -= 0.13f;
this.magicDamage += 0.05f;
this.magicCrit += 5;
}
if (this.armor[index1].itemId == 1503)
this.magicDamage -= 0.4f;
if (this.armor[index1].itemId == 1504)
{
this.magicDamage += 0.07f;
this.magicCrit += 7;
}
if (this.armor[index1].itemId == 1505)
{
this.magicDamage += 0.08f;
this.moveSpeed += 0.08f;
}
if (this.armor[index1].itemId == 1546)
{
this.rangedCrit += 5;
this.arrowDamage += 0.15f;
}
if (this.armor[index1].itemId == 1547)
{
this.rangedCrit += 5;
this.bulletDamage += 0.15f;
}
if (this.armor[index1].itemId == 1548)
{
this.rangedCrit += 5;
this.rocketDamage += 0.15f;
}
if (this.armor[index1].itemId == 1549)
{
this.rangedCrit += 13;
this.rangedDamage += 0.13f;
this.ammoCost80 = true;
}
if (this.armor[index1].itemId == 1550)
{
this.rangedCrit += 7;
this.moveSpeed += 0.12f;
}
if (this.armor[index1].itemId == 1282)
{
this.statManaMax2 += 20;
this.manaCost -= 0.05f;
}
if (this.armor[index1].itemId == 1283)
{
this.statManaMax2 += 40;
this.manaCost -= 0.07f;
}
if (this.armor[index1].itemId == 1284)
{
this.statManaMax2 += 40;
this.manaCost -= 0.09f;
}
if (this.armor[index1].itemId == 1285)
{
this.statManaMax2 += 60;
this.manaCost -= 0.11f;
}
if (this.armor[index1].itemId == 1286)
{
this.statManaMax2 += 60;
this.manaCost -= 0.13f;
}
if (this.armor[index1].itemId == 1287)
{
this.statManaMax2 += 80;
this.manaCost -= 0.15f;
}
if (this.armor[index1].itemId == 1316 || this.armor[index1].itemId == 1317 || this.armor[index1].itemId == 1318)
this.aggro += 250;
if (this.armor[index1].itemId == 1316)
this.meleeDamage += 0.06f;
if (this.armor[index1].itemId == 1317)
{
this.meleeDamage += 0.08f;
this.meleeCrit += 8;
}
if (this.armor[index1].itemId == 1318)
this.meleeCrit += 4;
if (this.armor[index1].itemId == 2199 || this.armor[index1].itemId == 2202)
this.aggro += 250;
if (this.armor[index1].itemId == 2201)
this.aggro += 400;
if (this.armor[index1].itemId == 2199)
this.meleeDamage += 0.06f;
if (this.armor[index1].itemId == 2200)
{
this.meleeDamage += 0.08f;
this.meleeCrit += 8;
this.meleeSpeed += 0.06f;
this.moveSpeed += 0.06f;
}
if (this.armor[index1].itemId == 2201)
{
this.meleeDamage += 0.05f;
this.meleeCrit += 5;
}
if (this.armor[index1].itemId == 2202)
{
this.meleeSpeed += 0.06f;
this.moveSpeed += 0.06f;
}
if (this.armor[index1].itemId == 684)
{
this.rangedDamage += 0.16f;
this.meleeDamage += 0.16f;
}
if (this.armor[index1].itemId == 685)
{
this.meleeCrit += 11;
this.rangedCrit += 11;
}
if (this.armor[index1].itemId == 686)
{
this.moveSpeed += 0.08f;
this.meleeSpeed += 0.07f;
}
if (this.armor[index1].itemId == 2361)
{
++this.maxMinions;
this.minionDamage += 0.04f;
}
if (this.armor[index1].itemId == 2362)
{
++this.maxMinions;
this.minionDamage += 0.04f;
}
if (this.armor[index1].itemId == 2363)
this.minionDamage += 0.05f;
if (this.armor[index1].itemId >= 1158 && this.armor[index1].itemId <= 1161)
++this.maxMinions;
if (this.armor[index1].itemId >= 1159 && this.armor[index1].itemId <= 1161)
this.minionDamage += 0.1f;
if (this.armor[index1].itemId >= 2370 && this.armor[index1].itemId <= 2371)
{
this.minionDamage += 0.05f;
++this.maxMinions;
}
if (this.armor[index1].itemId == 2372)
{
this.minionDamage += 0.06f;
++this.maxMinions;
}
if (this.armor[index1].itemId == 3381 || this.armor[index1].itemId == 3382 || this.armor[index1].itemId == 3383)
{
if (this.armor[index1].itemId != 3381)
++this.maxMinions;
++this.maxMinions;
this.minionDamage += 0.22f;
}
if (this.armor[index1].itemId == 2763)
{
this.aggro += 300;
this.meleeCrit += 17;
}
if (this.armor[index1].itemId == 2764)
{
this.aggro += 300;
this.meleeDamage += 0.22f;
}
if (this.armor[index1].itemId == 2765)
{
this.aggro += 300;
this.meleeSpeed += 0.15f;
this.moveSpeed += 0.15f;
}
if (this.armor[index1].itemId == 2757)
{
this.rangedCrit += 7;
this.rangedDamage += 0.16f;
}
if (this.armor[index1].itemId == 2758)
{
this.ammoCost75 = true;
this.rangedCrit += 12;
this.rangedDamage += 0.12f;
}
if (this.armor[index1].itemId == 2759)
{
this.rangedCrit += 8;
this.rangedDamage += 0.08f;
this.moveSpeed += 0.1f;
}
if (this.armor[index1].itemId == 2760)
{
this.statManaMax2 += 60;
this.manaCost -= 0.15f;
this.magicCrit += 7;
this.magicDamage += 0.07f;
}
if (this.armor[index1].itemId == 2761)
{
this.magicDamage += 0.09f;
this.magicCrit += 9;
}
if (this.armor[index1].itemId == 2762)
{
this.moveSpeed += 0.1f;
this.magicDamage += 0.1f;
}
if (this.armor[index1].itemId >= 1832 && this.armor[index1].itemId <= 1834)
++this.maxMinions;
if (this.armor[index1].itemId >= 1832 && this.armor[index1].itemId <= 1834)
this.minionDamage += 0.11f;
if ((int)this.armor[index1].prefix == 62)
++this.statDefense;
if ((int)this.armor[index1].prefix == 63)
this.statDefense += 2;
if ((int)this.armor[index1].prefix == 64)
this.statDefense += 3;
if ((int)this.armor[index1].prefix == 65)
this.statDefense += 4;
if ((int)this.armor[index1].prefix == 66)
this.statManaMax2 += 20;
if ((int)this.armor[index1].prefix == 67)
{
this.meleeCrit += 2;
this.rangedCrit += 2;
this.magicCrit += 2;
this.thrownCrit += 2;
}
if ((int)this.armor[index1].prefix == 68)
{
this.meleeCrit += 4;
this.rangedCrit += 4;
this.magicCrit += 4;
this.thrownCrit += 4;
}
if ((int)this.armor[index1].prefix == 69)
{
this.meleeDamage += 0.01f;
this.rangedDamage += 0.01f;
this.magicDamage += 0.01f;
this.minionDamage += 0.01f;
this.thrownDamage += 0.01f;
}
if ((int)this.armor[index1].prefix == 70)
{
this.meleeDamage += 0.02f;
this.rangedDamage += 0.02f;
this.magicDamage += 0.02f;
this.minionDamage += 0.02f;
this.thrownDamage += 0.02f;
}
if ((int)this.armor[index1].prefix == 71)
{
this.meleeDamage += 0.03f;
this.rangedDamage += 0.03f;
this.magicDamage += 0.03f;
this.minionDamage += 0.03f;
this.thrownDamage += 0.03f;
}
if ((int)this.armor[index1].prefix == 72)
{
this.meleeDamage += 0.04f;
this.rangedDamage += 0.04f;
this.magicDamage += 0.04f;
this.minionDamage += 0.04f;
this.thrownDamage += 0.04f;
}
if ((int)this.armor[index1].prefix == 73)
this.moveSpeed += 0.01f;
if ((int)this.armor[index1].prefix == 74)
this.moveSpeed += 0.02f;
if ((int)this.armor[index1].prefix == 75)
this.moveSpeed += 0.03f;
if ((int)this.armor[index1].prefix == 76)
this.moveSpeed += 0.04f;
if ((int)this.armor[index1].prefix == 77)
this.meleeSpeed += 0.01f;
if ((int)this.armor[index1].prefix == 78)
this.meleeSpeed += 0.02f;
if ((int)this.armor[index1].prefix == 79)
this.meleeSpeed += 0.03f;
if ((int)this.armor[index1].prefix == 80)
this.meleeSpeed += 0.04f;
}
}
bool flag1 = false;
bool flag2 = false;
bool flag3 = false;
for (int index1 = 3; index1 < 8 + this.extraAccessorySlots; ++index1)
{
if (!this.armor[index1].expertOnly || Main.expertMode)
{
if (this.armor[index1].itemId == 3015)
{
this.aggro -= 400;
this.meleeCrit += 5;
this.magicCrit += 5;
this.rangedCrit += 5;
this.thrownCrit += 5;
this.meleeDamage += 0.05f;
this.magicDamage += 0.05f;
this.rangedDamage += 0.05f;
this.thrownDamage += 0.05f;
this.minionDamage += 0.05f;
}
if (this.armor[index1].itemId == 3016)
this.aggro += 400;
if (this.armor[index1].itemId == 2373)
this.accFishingLine = true;
if (this.armor[index1].itemId == 2374)
this.fishingSkill += 10;
if (this.armor[index1].itemId == 2375)
this.accTackleBox = true;
if (this.armor[index1].itemId == 3090)
{
this.npcTypeNoAggro[1] = true;
this.npcTypeNoAggro[16] = true;
this.npcTypeNoAggro[59] = true;
this.npcTypeNoAggro[71] = true;
this.npcTypeNoAggro[81] = true;
this.npcTypeNoAggro[138] = true;
this.npcTypeNoAggro[121] = true;
this.npcTypeNoAggro[122] = true;
this.npcTypeNoAggro[141] = true;
this.npcTypeNoAggro[147] = true;
this.npcTypeNoAggro[183] = true;
this.npcTypeNoAggro[184] = true;
this.npcTypeNoAggro[204] = true;
this.npcTypeNoAggro[225] = true;
this.npcTypeNoAggro[244] = true;
this.npcTypeNoAggro[302] = true;
this.npcTypeNoAggro[333] = true;
this.npcTypeNoAggro[335] = true;
this.npcTypeNoAggro[334] = true;
this.npcTypeNoAggro[336] = true;
this.npcTypeNoAggro[537] = true;
}
if (this.armor[index1].stringColor > 0)
this.yoyoString = true;
if (this.armor[index1].itemId == 3366)
{
this.counterWeight = 556 + Main.rand.Next(6);
this.yoyoGlove = true;
this.yoyoString = true;
}
if (this.armor[index1].itemId >= 3309 && this.armor[index1].itemId <= 3314)
this.counterWeight = 556 + this.armor[index1].itemId - 3309;
if (this.armor[index1].itemId == 3334)
this.yoyoGlove = true;
if (this.armor[index1].itemId == 3337)
this.shinyStone = true;
if (this.armor[index1].itemId == 3336)
{
this.SporeSac();
this.sporeSac = true;
}
if (this.armor[index1].itemId == 2423)
{
this.autoJump = true;
this.jumpSpeedBoost += 2.4f;
this.extraFall += 15;
}
if (this.armor[index1].itemId == 857)
this.doubleJumpSandstorm = true;
if (this.armor[index1].itemId == 983)
{
this.doubleJumpSandstorm = true;
this.jumpBoost = true;
}
if (this.armor[index1].itemId == 987)
this.doubleJumpBlizzard = true;
if (this.armor[index1].itemId == 1163)
{
this.doubleJumpBlizzard = true;
this.jumpBoost = true;
}
if (this.armor[index1].itemId == 1724)
this.doubleJumpFart = true;
if (this.armor[index1].itemId == 1863)
{
this.doubleJumpFart = true;
this.jumpBoost = true;
}
if (this.armor[index1].itemId == 1164)
{
this.doubleJumpCloud = true;
this.doubleJumpSandstorm = true;
this.doubleJumpBlizzard = true;
this.jumpBoost = true;
}
if (this.armor[index1].itemId == 1250)
{
this.jumpBoost = true;
this.doubleJumpCloud = true;
this.noFallDmg = true;
}
if (this.armor[index1].itemId == 1252)
{
this.doubleJumpSandstorm = true;
this.jumpBoost = true;
this.noFallDmg = true;
}
if (this.armor[index1].itemId == 1251)
{
this.doubleJumpBlizzard = true;
this.jumpBoost = true;
this.noFallDmg = true;
}
if (this.armor[index1].itemId == 3250)
{
this.doubleJumpFart = true;
this.jumpBoost = true;
this.noFallDmg = true;
}
if (this.armor[index1].itemId == 3252)
{
this.doubleJumpSail = true;
this.jumpBoost = true;
this.noFallDmg = true;
}
if (this.armor[index1].itemId == 3251)
{
this.jumpBoost = true;
this.bee = true;
this.noFallDmg = true;
}
if (this.armor[index1].itemId == 1249)
{
this.jumpBoost = true;
this.bee = true;
}
if (this.armor[index1].itemId == 3241)
{
this.jumpBoost = true;
this.doubleJumpSail = true;
}
if (this.armor[index1].itemId == 1253 && (double)this.statLife <= (double)this.statLifeMax2 * 0.5)
this.AddBuff(62, 5, true);
if (this.armor[index1].itemId == 1290)
this.panic = true;
if ((this.armor[index1].itemId == 1300 || this.armor[index1].itemId == 1858) && (this.inventory[this.selectedItem].useAmmo == 14 || this.inventory[this.selectedItem].useAmmo == 311 || (this.inventory[this.selectedItem].useAmmo == 323 || this.inventory[this.selectedItem].useAmmo == 23)))
this.scope = true;
if (this.armor[index1].itemId == 1858)
{
this.rangedCrit += 10;
this.rangedDamage += 0.1f;
}
if (this.armor[index1].itemId == 1303 && this.wet)
Lighting.AddLight((int)this.Center.X / 16, (int)this.Center.Y / 16, 0.9f, 0.2f, 0.6f);
if (this.armor[index1].itemId == 1301)
{
this.meleeCrit += 8;
this.rangedCrit += 8;
this.magicCrit += 8;
this.thrownCrit += 8;
this.meleeDamage += 0.1f;
this.rangedDamage += 0.1f;
this.magicDamage += 0.1f;
this.minionDamage += 0.1f;
this.thrownDamage += 0.1f;
}
if (this.armor[index1].itemId == 982)
{
this.statManaMax2 += 20;
++this.manaRegenDelayBonus;
this.manaRegenBonus += 25;
}
if (this.armor[index1].itemId == 1595)
{
this.statManaMax2 += 20;
this.magicCuffs = true;
}
if (this.armor[index1].itemId == 2219)
this.manaMagnet = true;
if (this.armor[index1].itemId == 2220)
{
this.manaMagnet = true;
this.magicDamage += 0.15f;
}
if (this.armor[index1].itemId == 2221)
{
this.manaMagnet = true;
this.magicCuffs = true;
}
if (this.whoAmI == Main.myPlayer && this.armor[index1].itemId == 1923)
{
++Player.tileRangeX;
++Player.tileRangeY;
}
if (this.armor[index1].itemId == 1247)
{
this.starCloak = true;
this.bee = true;
}
if (this.armor[index1].itemId == 1248)
{
this.meleeCrit += 10;
this.rangedCrit += 10;
this.magicCrit += 10;
this.thrownCrit += 10;
}
if (this.armor[index1].itemId == 854)
this.discount = true;
if (this.armor[index1].itemId == 855)
this.coins = true;
if (this.armor[index1].itemId == 3033)
this.goldRing = true;
if (this.armor[index1].itemId == 3034)
{
this.goldRing = true;
this.coins = true;
}
if (this.armor[index1].itemId == 3035)
{
this.goldRing = true;
this.coins = true;
this.discount = true;
}
if (this.armor[index1].itemId == 53)
this.doubleJumpCloud = true;
if (this.armor[index1].itemId == 3201)
this.doubleJumpSail = true;
if (this.armor[index1].itemId == 54)
this.accRunSpeed = 6f;
if (this.armor[index1].itemId == 3068)
this.cordage = true;
if (this.armor[index1].itemId == 1579)
{
this.accRunSpeed = 6f;
this.coldDash = true;
}
if (this.armor[index1].itemId == 3200)
{
this.accRunSpeed = 6f;
this.sailDash = true;
}
if (this.armor[index1].itemId == 128)
this.rocketBoots = 1;
if (this.armor[index1].itemId == 156)
this.noKnockback = true;
if (this.armor[index1].itemId == 158)
this.noFallDmg = true;
if (this.armor[index1].itemId == 934)
this.carpet = true;
if (this.armor[index1].itemId == 953)
++this.spikedBoots;
if (this.armor[index1].itemId == 975)
++this.spikedBoots;
if (this.armor[index1].itemId == 976)
this.spikedBoots += 2;
if (this.armor[index1].itemId == 977)
this.dash = 1;
if (this.armor[index1].itemId == 3097)
this.dash = 2;
if (this.armor[index1].itemId == 963)
this.blackBelt = true;
if (this.armor[index1].itemId == 984)
{
this.blackBelt = true;
this.dash = 1;
this.spikedBoots = 2;
}
if (this.armor[index1].itemId == 1131)
this.gravControl2 = true;
if (this.armor[index1].itemId == 1132)
this.bee = true;
if (this.armor[index1].itemId == 1578)
{
this.bee = true;
this.panic = true;
}
if (this.armor[index1].itemId == 3224)
this.endurance += 0.17f;
if (this.armor[index1].itemId == 3223)
this.brainOfConfusion = true;
if (this.armor[index1].itemId == 950)
this.iceSkate = true;
if (this.armor[index1].itemId == 159)
this.jumpBoost = true;
if (this.armor[index1].itemId == 3225)
this.jumpBoost = true;
if (this.armor[index1].itemId == 187)
this.accFlipper = true;
if (this.armor[index1].itemId == 211)
this.meleeSpeed += 0.12f;
if (this.armor[index1].itemId == 223)
this.manaCost -= 0.06f;
if (this.armor[index1].itemId == 285)
this.moveSpeed += 0.05f;
if (this.armor[index1].itemId == 212)
this.moveSpeed += 0.1f;
if (this.armor[index1].itemId == 267)
this.killGuide = true;
if (this.armor[index1].itemId == 1307)
this.killClothier = true;
if (this.armor[index1].itemId == 193)
this.fireWalk = true;
if (this.armor[index1].itemId == 861)
{
this.accMerman = true;
this.wolfAcc = true;
}
if (this.armor[index1].itemId == 862)
{
this.starCloak = true;
this.longInvince = true;
}
if (this.armor[index1].itemId == 860)
this.pStone = true;
if (this.armor[index1].itemId == 863)
this.waterWalk2 = true;
if (this.armor[index1].itemId == 907)
{
this.waterWalk2 = true;
this.fireWalk = true;
}
if (this.armor[index1].itemId == 908)
{
this.waterWalk = true;
this.fireWalk = true;
this.lavaMax += 420;
}
if (this.armor[index1].itemId == 906)
this.lavaMax += 420;
if (this.armor[index1].itemId == 485)
this.wolfAcc = true;
if (this.armor[index1].itemId == 486 && !this.hideVisual[index1])
this.rulerLine = true;
if (this.armor[index1].itemId == 2799 && !this.hideVisual[index1])
this.rulerGrid = true;
if (this.armor[index1].itemId == 394)
{
this.accFlipper = true;
this.accDivingHelm = true;
}
if (this.armor[index1].itemId == 396)
{
this.noFallDmg = true;
this.fireWalk = true;
}
if (this.armor[index1].itemId == 397)
{
this.noKnockback = true;
this.fireWalk = true;
}
if (this.armor[index1].itemId == 399)
{
this.jumpBoost = true;
this.doubleJumpCloud = true;
}
if (this.armor[index1].itemId == 405)
{
this.accRunSpeed = 6f;
this.rocketBoots = 2;
}
if (this.armor[index1].itemId == 1860)
{
this.accFlipper = true;
this.accDivingHelm = true;
if (this.wet)
Lighting.AddLight((int)this.Center.X / 16, (int)this.Center.Y / 16, 0.9f, 0.2f, 0.6f);
}
if (this.armor[index1].itemId == 1861)
{
this.arcticDivingGear = true;
this.accFlipper = true;
this.accDivingHelm = true;
this.iceSkate = true;
if (this.wet)
Lighting.AddLight((int)this.Center.X / 16, (int)this.Center.Y / 16, 0.2f, 0.8f, 0.9f);
}
if (this.armor[index1].itemId == 2214)
flag2 = true;
if (this.armor[index1].itemId == 2215)
flag3 = true;
if (this.armor[index1].itemId == 2216)
this.autoPaint = true;
if (this.armor[index1].itemId == 2217)
flag1 = true;
if (this.armor[index1].itemId == 3061)
{
flag1 = true;
flag2 = true;
this.autoPaint = true;
flag3 = true;
}
if (this.armor[index1].itemId == 897)
{
this.kbGlove = true;
this.meleeSpeed += 0.12f;
}
if (this.armor[index1].itemId == 1343)
{
this.kbGlove = true;
this.meleeSpeed += 0.1f;
this.meleeDamage += 0.1f;
this.magmaStone = true;
}
if (this.armor[index1].itemId == 1167)
{
this.minionKB += 2f;
this.minionDamage += 0.15f;
}
if (this.armor[index1].itemId == 1864)
{
this.minionKB += 2f;
this.minionDamage += 0.15f;
++this.maxMinions;
}
if (this.armor[index1].itemId == 1845)
{
this.minionDamage += 0.1f;
++this.maxMinions;
}
if (this.armor[index1].itemId == 1321)
{
this.magicQuiver = true;
this.arrowDamage += 0.1f;
}
if (this.armor[index1].itemId == 1322)
this.magmaStone = true;
if (this.armor[index1].itemId == 1323)
this.lavaRose = true;
if (this.armor[index1].itemId == 3333)
this.strongBees = true;
if (this.armor[index1].itemId == 938)
{
this.noKnockback = true;
if ((double)this.statLife > (double)this.statLifeMax2 * 0.25)
{
if (i == Main.myPlayer)
this.paladinGive = true;
else if (this.miscCounter % 5 == 0)
{
int index2 = Main.myPlayer;
if (Main.player[index2].team == this.team && this.team != 0)
{
float num1 = this.position.X - Main.player[index2].position.X;
float num2 = this.position.Y - Main.player[index2].position.Y;
if (Math.Sqrt((double)num1 * (double)num1 + (double)num2 * (double)num2) < 800.0)
Main.player[index2].AddBuff(43, 10, true);
}
}
}
}
if (this.armor[index1].itemId == 936)
{
this.kbGlove = true;
this.meleeSpeed += 0.12f;
this.meleeDamage += 0.12f;
}
if (this.armor[index1].itemId == 898)
{
this.accRunSpeed = 6.75f;
this.rocketBoots = 2;
this.moveSpeed += 0.08f;
}
if (this.armor[index1].itemId == 1862)
{
this.accRunSpeed = 6.75f;
this.rocketBoots = 3;
this.moveSpeed += 0.08f;
this.iceSkate = true;
}
if (this.armor[index1].itemId == 3110)
{
this.accMerman = true;
this.wolfAcc = true;
}
if (this.armor[index1].itemId == 1865 || this.armor[index1].itemId == 3110)
{
this.lifeRegen += 2;
this.statDefense += 4;
this.meleeSpeed += 0.1f;
this.meleeDamage += 0.1f;
this.meleeCrit += 2;
this.rangedDamage += 0.1f;
this.rangedCrit += 2;
this.magicDamage += 0.1f;
this.magicCrit += 2;
this.pickSpeed -= 0.15f;
this.minionDamage += 0.1f;
this.minionKB += 0.5f;
this.thrownDamage += 0.1f;
this.thrownCrit += 2;
}
if (this.armor[index1].itemId == 899 && Main.dayTime)
{
this.lifeRegen += 2;
this.statDefense += 4;
this.meleeSpeed += 0.1f;
this.meleeDamage += 0.1f;
this.meleeCrit += 2;
this.rangedDamage += 0.1f;
this.rangedCrit += 2;
this.magicDamage += 0.1f;
this.magicCrit += 2;
this.pickSpeed -= 0.15f;
this.minionDamage += 0.1f;
this.minionKB += 0.5f;
this.thrownDamage += 0.1f;
this.thrownCrit += 2;
}
if (this.armor[index1].itemId == 900 && (!Main.dayTime || Main.eclipse))
{
this.lifeRegen += 2;
this.statDefense += 4;
this.meleeSpeed += 0.1f;
this.meleeDamage += 0.1f;
this.meleeCrit += 2;
this.rangedDamage += 0.1f;
this.rangedCrit += 2;
this.magicDamage += 0.1f;
this.magicCrit += 2;
this.pickSpeed -= 0.15f;
this.minionDamage += 0.1f;
this.minionKB += 0.5f;
this.thrownDamage += 0.1f;
this.thrownCrit += 2;
}
if (this.armor[index1].itemId == 407)
this.blockRange = 1;
if (this.armor[index1].itemId == 489)
this.magicDamage += 0.15f;
if (this.armor[index1].itemId == 490)
this.meleeDamage += 0.15f;
if (this.armor[index1].itemId == 491)
this.rangedDamage += 0.15f;
if (this.armor[index1].itemId == 2998)
this.minionDamage += 0.15f;
if (this.armor[index1].itemId == 935)
{
this.magicDamage += 0.12f;
this.meleeDamage += 0.12f;
this.rangedDamage += 0.12f;
this.minionDamage += 0.12f;
this.thrownDamage += 0.12f;
}
if (this.armor[index1].itemId == 492)
this.wingTimeMax = 100;
if (this.armor[index1].itemId == 493)
this.wingTimeMax = 100;
if (this.armor[index1].itemId == 748)
this.wingTimeMax = 115;
if (this.armor[index1].itemId == 749)
this.wingTimeMax = 130;
if (this.armor[index1].itemId == 761)
this.wingTimeMax = 130;
if (this.armor[index1].itemId == 785)
this.wingTimeMax = 140;
if (this.armor[index1].itemId == 786)
this.wingTimeMax = 140;
if (this.armor[index1].itemId == 821)
this.wingTimeMax = 160;
if (this.armor[index1].itemId == 822)
this.wingTimeMax = 160;
if (this.armor[index1].itemId == 823)
this.wingTimeMax = 160;
if (this.armor[index1].itemId == 2280)
this.wingTimeMax = 160;
if (this.armor[index1].itemId == 2494)
this.wingTimeMax = 100;
if (this.armor[index1].itemId == 2609)
{
this.wingTimeMax = 180;
this.ignoreWater = true;
}
if (this.armor[index1].itemId == 948)
this.wingTimeMax = 180;
if (this.armor[index1].itemId == 1162)
this.wingTimeMax = 160;
if (this.armor[index1].itemId == 1165)
this.wingTimeMax = 140;
if (this.armor[index1].itemId == 1515)
this.wingTimeMax = 130;
if (this.armor[index1].itemId == 665)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 1583)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 1584)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 1585)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 1586)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 3228)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 3580)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 3582)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 3588)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 3592)
this.wingTimeMax = 150;
if (this.armor[index1].itemId == 1797)
this.wingTimeMax = 180;
if (this.armor[index1].itemId == 1830)
this.wingTimeMax = 180;
if (this.armor[index1].itemId == 1866)
this.wingTimeMax = 170;
if (this.armor[index1].itemId == 1871)
this.wingTimeMax = 170;
if (this.armor[index1].itemId == 2770)
this.wingTimeMax = 160;
if (this.armor[index1].itemId == 3468)
this.wingTimeMax = 180;
if (this.armor[index1].itemId == 3469)
this.wingTimeMax = 160;
if (this.armor[index1].itemId == 3470)
this.wingTimeMax = 180;
if (this.armor[index1].itemId == 3471)
this.wingTimeMax = 220;
if (this.armor[index1].itemId == 885)
this.buffImmune[30] = true;
if (this.armor[index1].itemId == 886)
this.buffImmune[36] = true;
if (this.armor[index1].itemId == 887)
this.buffImmune[20] = true;
if (this.armor[index1].itemId == 888)
this.buffImmune[22] = true;
if (this.armor[index1].itemId == 889)
this.buffImmune[32] = true;
if (this.armor[index1].itemId == 890)
this.buffImmune[35] = true;
if (this.armor[index1].itemId == 891)
this.buffImmune[23] = true;
if (this.armor[index1].itemId == 892)
this.buffImmune[33] = true;
if (this.armor[index1].itemId == 893)
this.buffImmune[31] = true;
if (this.armor[index1].itemId == 901)
{
this.buffImmune[33] = true;
this.buffImmune[36] = true;
}
if (this.armor[index1].itemId == 902)
{
this.buffImmune[30] = true;
this.buffImmune[20] = true;
}
if (this.armor[index1].itemId == 903)
{
this.buffImmune[32] = true;
this.buffImmune[31] = true;
}
if (this.armor[index1].itemId == 904)
{
this.buffImmune[35] = true;
this.buffImmune[23] = true;
}
if (this.armor[index1].itemId == 1921)
{
this.buffImmune[46] = true;
this.buffImmune[47] = true;
}
if (this.armor[index1].itemId == 1612)
{
this.buffImmune[33] = true;
this.buffImmune[36] = true;
this.buffImmune[30] = true;
this.buffImmune[20] = true;
this.buffImmune[32] = true;
this.buffImmune[31] = true;
this.buffImmune[35] = true;
this.buffImmune[23] = true;
this.buffImmune[22] = true;
}
if (this.armor[index1].itemId == 1613)
{
this.buffImmune[46] = true;
this.noKnockback = true;
this.fireWalk = true;
this.buffImmune[33] = true;
this.buffImmune[36] = true;
this.buffImmune[30] = true;
this.buffImmune[20] = true;
this.buffImmune[32] = true;
this.buffImmune[31] = true;
this.buffImmune[35] = true;
this.buffImmune[23] = true;
this.buffImmune[22] = true;
}
if (this.armor[index1].itemId == 497)
this.accMerman = true;
if (this.armor[index1].itemId == 535)
this.pStone = true;
if (this.armor[index1].itemId == 536)
this.kbGlove = true;
if (this.armor[index1].itemId == 532)
this.starCloak = true;
if (this.armor[index1].itemId == 554)
this.longInvince = true;
if (this.armor[index1].itemId == 555)
{
this.manaFlower = true;
this.manaCost -= 0.08f;
}
if (Main.myPlayer == this.whoAmI)
{
if (this.armor[index1].itemId == 576 && Main.rand.Next(10800) == 0 && (Main.curMusic > 0 && Main.curMusic <= 39))
{
int num = 0;
if (Main.curMusic == 1)
num = 0;
if (Main.curMusic == 2)
num = 1;
if (Main.curMusic == 3)
num = 2;
if (Main.curMusic == 4)
num = 4;
if (Main.curMusic == 5)
num = 5;
if (Main.curMusic == 6)
num = 3;
if (Main.curMusic == 7)
num = 6;
if (Main.curMusic == 8)
num = 7;
if (Main.curMusic == 9)
num = 9;
if (Main.curMusic == 10)
num = 8;
if (Main.curMusic == 11)
num = 11;
if (Main.curMusic == 12)
num = 10;
if (Main.curMusic == 13)
num = 12;
if (Main.curMusic == 28)
this.armor[index1].SetDefaults(1963, false);
else if (Main.curMusic == 29)
this.armor[index1].SetDefaults(1610, false);
else if (Main.curMusic == 30)
this.armor[index1].SetDefaults(1963, false);
else if (Main.curMusic == 31)
this.armor[index1].SetDefaults(1964, false);
else if (Main.curMusic == 32)
this.armor[index1].SetDefaults(1965, false);
else if (Main.curMusic == 33)
this.armor[index1].SetDefaults(2742, false);
else if (Main.curMusic == 34)
this.armor[index1].SetDefaults(3370, false);
else if (Main.curMusic == 35)
this.armor[index1].SetDefaults(3236, false);
else if (Main.curMusic == 36)
this.armor[index1].SetDefaults(3237, false);
else if (Main.curMusic == 37)
this.armor[index1].SetDefaults(3235, false);
else if (Main.curMusic == 38)
this.armor[index1].SetDefaults(3044, false);
else if (Main.curMusic == 39)
this.armor[index1].SetDefaults(3371, false);
else if (Main.curMusic > 13)
this.armor[index1].SetDefaults(1596 + Main.curMusic - 14, false);
else
this.armor[index1].SetDefaults(num + 562, false);
}
if (this.armor[index1].itemId >= 562 && this.armor[index1].itemId <= 574)
Main.musicBox2 = this.armor[index1].itemId - 562;
if (this.armor[index1].itemId >= 1596 && this.armor[index1].itemId <= 1609)
Main.musicBox2 = this.armor[index1].itemId - 1596 + 13;
if (this.armor[index1].itemId == 1610)
Main.musicBox2 = 27;
if (this.armor[index1].itemId == 1963)
Main.musicBox2 = 28;
if (this.armor[index1].itemId == 1964)
Main.musicBox2 = 29;
if (this.armor[index1].itemId == 1965)
Main.musicBox2 = 30;
if (this.armor[index1].itemId == 2742)
Main.musicBox2 = 31;
if (this.armor[index1].itemId == 3044)
Main.musicBox2 = 32;
if (this.armor[index1].itemId == 3235)
Main.musicBox2 = 33;
if (this.armor[index1].itemId == 3236)
Main.musicBox2 = 34;
if (this.armor[index1].itemId == 3237)
Main.musicBox2 = 35;
if (this.armor[index1].itemId == 3370)
Main.musicBox2 = 36;
if (this.armor[index1].itemId == 3371)
Main.musicBox2 = 37;
}
}
}
for (int index = 3; index < 8 + this.extraAccessorySlots; ++index)
{
if ((int)this.armor[index].wingSlot > 0)
{
if (!this.hideVisual[index] || (double)this.velocity.Y != 0.0 && !this.mount.Active)
this.wings = (int)this.armor[index].wingSlot;
this.wingsLogic = (int)this.armor[index].wingSlot;
}
}
for (int index = 13; index < 18 + this.extraAccessorySlots; ++index)
{
if ((int)this.armor[index].wingSlot > 0)
this.wings = (int)this.armor[index].wingSlot;
}
if (this.whoAmI == Main.myPlayer && Main.clock && this.accWatch < 3)
++this.accWatch;
if (flag2)
this.tileSpeed += 0.5f;
if (flag1)
this.wallSpeed += 0.5f;
if (flag3 && this.whoAmI == Main.myPlayer)
{
Player.tileRangeX += 3;
Player.tileRangeY += 2;
}
if (!this.accThirdEye)
this.accThirdEyeCounter = (byte)0;
if (Main.netMode == 1 && this.whoAmI == Main.myPlayer)
{
for (int index = 0; index < (int)byte.MaxValue; ++index)
{
if (index != this.whoAmI && Main.player[index].active && (!Main.player[index].dead && Main.player[index].team == this.team) && Main.player[index].team != 0)
{
int num = 800;
if ((double)(Main.player[index].Center - this.Center).Length() < (double)num)
{
if (Main.player[index].accWatch > this.accWatch)
this.accWatch = Main.player[index].accWatch;
if (Main.player[index].accCompass > this.accCompass)
this.accCompass = Main.player[index].accCompass;
if (Main.player[index].accDepthMeter > this.accDepthMeter)
this.accDepthMeter = Main.player[index].accDepthMeter;
if (Main.player[index].accFishFinder)
this.accFishFinder = true;
if (Main.player[index].accWeatherRadio)
this.accWeatherRadio = true;
if (Main.player[index].accThirdEye)
this.accThirdEye = true;
if (Main.player[index].accJarOfSouls)
this.accJarOfSouls = true;
if (Main.player[index].accCalendar)
this.accCalendar = true;
if (Main.player[index].accStopwatch)
this.accStopwatch = true;
if (Main.player[index].accOreFinder)
this.accOreFinder = true;
if (Main.player[index].accCritterGuide)
this.accCritterGuide = true;
if (Main.player[index].accDreamCatcher)
this.accDreamCatcher = true;
}
}
}
}
if (this.accDreamCatcher || !this.dpsStarted)
return;
this.dpsStarted = false;
this.dpsEnd = DateTime.Now;
}