TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ UpdateBuffs()

void Terraria.Player.UpdateBuffs ( int i)
inline

Definition at line 7901 of file Player.cs.

7902 {
7903 //IL_08b5: Unknown result type (might be due to invalid IL or missing references)
7904 //IL_08c7: Unknown result type (might be due to invalid IL or missing references)
7905 //IL_0c0b: Unknown result type (might be due to invalid IL or missing references)
7906 //IL_0c1a: Unknown result type (might be due to invalid IL or missing references)
7907 //IL_096b: Unknown result type (might be due to invalid IL or missing references)
7908 //IL_0972: Unknown result type (might be due to invalid IL or missing references)
7909 //IL_0a32: Unknown result type (might be due to invalid IL or missing references)
7910 //IL_0a39: Unknown result type (might be due to invalid IL or missing references)
7911 //IL_126d: Unknown result type (might be due to invalid IL or missing references)
7912 //IL_127f: Unknown result type (might be due to invalid IL or missing references)
7913 //IL_17df: Unknown result type (might be due to invalid IL or missing references)
7914 //IL_17e4: Unknown result type (might be due to invalid IL or missing references)
7915 //IL_4454: Unknown result type (might be due to invalid IL or missing references)
7916 //IL_4459: Unknown result type (might be due to invalid IL or missing references)
7917 //IL_4447: Unknown result type (might be due to invalid IL or missing references)
7918 //IL_444c: Unknown result type (might be due to invalid IL or missing references)
7919 if (soulDrain > 0 && whoAmI == Main.myPlayer)
7920 {
7921 AddBuff(151, 2);
7922 }
7923 if (Main.dontStarveWorld)
7924 {
7926 }
7927 for (int j = 0; j < maxBuffs; j++)
7928 {
7929 if (buffType[j] <= 0 || buffTime[j] <= 0)
7930 {
7931 continue;
7932 }
7933 if (whoAmI == Main.myPlayer && !BuffID.Sets.TimeLeftDoesNotDecrease[buffType[j]])
7934 {
7935 buffTime[j]--;
7936 }
7937 int originalIndex = j;
7938 if (buffType[j] == 1)
7939 {
7940 lavaImmune = true;
7941 fireWalk = true;
7942 buffImmune[24] = true;
7943 }
7944 else if (BuffID.Sets.BasicMountData[buffType[j]] != null)
7945 {
7947 mount.SetMount(buffMountData.mountID, this, buffMountData.faceLeft);
7948 buffTime[j] = 10;
7949 }
7950 else if (buffType[j] == 158)
7951 {
7952 manaRegenDelayBonus += 0.5f;
7953 manaRegenBonus += 10;
7954 }
7955 else if (buffType[j] == 159)
7956 {
7958 }
7959 else if (buffType[j] == 192)
7960 {
7961 pickSpeed -= 0.2f;
7962 moveSpeed += 0.2f;
7963 }
7964 else if (buffType[j] == 321)
7965 {
7966 int num = 10;
7967 allCrit += num;
7968 minionDamage += (float)num / 100f;
7969 }
7970 else if (buffType[j] == 2)
7971 {
7972 lifeRegen += 4;
7973 }
7974 else if (buffType[j] == 3)
7975 {
7976 moveSpeed += 0.25f;
7977 }
7978 else if (buffType[j] == 4)
7979 {
7980 gills = true;
7981 }
7982 else if (buffType[j] == 5)
7983 {
7984 statDefense += 8;
7985 }
7986 else if (buffType[j] == 6)
7987 {
7988 manaRegenBuff = true;
7989 }
7990 else if (buffType[j] == 7)
7991 {
7992 magicDamage += 0.2f;
7993 }
7994 else if (buffType[j] == 8)
7995 {
7996 slowFall = true;
7997 }
7998 else if (buffType[j] == 9)
7999 {
8000 findTreasure = true;
8001 }
8002 else if (buffType[j] == 343)
8003 {
8004 biomeSight = true;
8005 }
8006 else if (buffType[j] == 10)
8007 {
8008 invis = true;
8009 }
8010 else if (buffType[j] == 11)
8011 {
8012 Lighting.AddLight((int)(position.X + (float)(width / 2)) / 16, (int)(position.Y + (float)(height / 2)) / 16, 0.8f, 0.95f, 1f);
8013 }
8014 else if (buffType[j] == 12)
8015 {
8016 nightVision = true;
8017 }
8018 else if (buffType[j] == 13)
8019 {
8020 enemySpawns = true;
8021 }
8022 else if (buffType[j] == 14)
8023 {
8024 if (thorns < 1f)
8025 {
8026 thorns = 1f;
8027 }
8028 }
8029 else if (buffType[j] == 15)
8030 {
8031 waterWalk = true;
8032 }
8033 else if (buffType[j] == 16)
8034 {
8035 archery = true;
8036 arrowDamage *= 1.1f;
8037 }
8038 else if (buffType[j] == 17)
8039 {
8040 detectCreature = true;
8041 }
8042 else if (buffType[j] == 18)
8043 {
8044 gravControl = true;
8045 }
8046 else if (buffType[j] == 30)
8047 {
8048 bleed = true;
8049 }
8050 else if (buffType[j] == 31)
8051 {
8052 confused = true;
8053 }
8054 else if (buffType[j] == 32)
8055 {
8056 slow = true;
8057 }
8058 else if (buffType[j] == 35)
8059 {
8060 silence = true;
8061 }
8062 else if (buffType[j] == 160)
8063 {
8064 dazed = true;
8065 }
8066 else if (buffType[j] == 46)
8067 {
8068 chilled = true;
8069 }
8070 else if (buffType[j] == 47)
8071 {
8072 frozen = true;
8073 }
8074 else if (buffType[j] == 156)
8075 {
8076 stoned = true;
8077 }
8078 else if (buffType[j] == 69)
8079 {
8080 ichor = true;
8081 statDefense -= 15;
8082 }
8083 else if (buffType[j] == 36)
8084 {
8085 brokenArmor = true;
8086 }
8087 else if (buffType[j] == 48)
8088 {
8089 honey = true;
8090 }
8091 else if (buffType[j] == 59)
8092 {
8093 shadowDodge = true;
8094 }
8095 else if (buffType[j] == 93)
8096 {
8097 ammoBox = true;
8098 }
8099 else if (buffType[j] == 58)
8100 {
8101 palladiumRegen = true;
8102 }
8103 else if (buffType[j] == 306)
8104 {
8105 hasTitaniumStormBuff = true;
8106 }
8107 else if (buffType[j] == 88)
8108 {
8109 chaosState = true;
8110 }
8111 else if (buffType[j] == 215)
8112 {
8113 statDefense += 5;
8114 }
8115 else if (buffType[j] == 311)
8116 {
8117 summonerWeaponSpeedBonus += 0.35f;
8118 }
8119 else if (buffType[j] == 308)
8120 {
8121 summonerWeaponSpeedBonus += 0.25f;
8122 }
8123 else if (buffType[j] == 314)
8124 {
8125 summonerWeaponSpeedBonus += 0.12f;
8126 }
8127 else if (buffType[j] == 312)
8128 {
8129 coolWhipBuff = true;
8130 }
8131 else if (buffType[j] == 63)
8132 {
8133 moveSpeed += 1f;
8134 }
8135 else if (buffType[j] == 104)
8136 {
8137 pickSpeed -= 0.25f;
8138 }
8139 else if (buffType[j] == 105)
8140 {
8141 lifeMagnet = true;
8142 }
8143 else if (buffType[j] == 106)
8144 {
8145 calmed = true;
8146 }
8147 else if (buffType[j] == 121)
8148 {
8149 fishingSkill += 15;
8150 }
8151 else if (buffType[j] == 122)
8152 {
8153 sonarPotion = true;
8154 }
8155 else if (buffType[j] == 123)
8156 {
8157 cratePotion = true;
8158 }
8159 else if (buffType[j] == 107)
8160 {
8161 tileSpeed += 0.25f;
8162 wallSpeed += 0.25f;
8163 blockRange++;
8164 }
8165 else if (buffType[j] == 108)
8166 {
8167 kbBuff = true;
8168 }
8169 else if (buffType[j] == 109)
8170 {
8171 ignoreWater = true;
8172 accFlipper = true;
8173 }
8174 else if (buffType[j] == 110)
8175 {
8176 maxMinions++;
8177 }
8178 else if (buffType[j] == 150)
8179 {
8180 maxMinions++;
8181 }
8182 else if (buffType[j] == 348)
8183 {
8184 maxTurrets++;
8185 }
8186 else if (buffType[j] == 111)
8187 {
8188 dangerSense = true;
8189 }
8190 else if (buffType[j] == 112)
8191 {
8192 ammoPotion = true;
8193 }
8194 else if (buffType[j] == 113)
8195 {
8196 lifeForce = true;
8197 statLifeMax2 += statLifeMax / 5 / 20 * 20;
8198 }
8199 else if (buffType[j] == 114)
8200 {
8201 endurance += 0.1f;
8202 }
8203 else if (buffType[j] == 115)
8204 {
8205 allCrit += 10f;
8206 }
8207 else if (buffType[j] == 116)
8208 {
8209 inferno = true;
8210 Lighting.AddLight((int)(base.Center.X / 16f), (int)(base.Center.Y / 16f), 0.65f, 0.4f, 0.1f);
8211 int num12 = 323;
8212 float num20 = 200f;
8213 bool flag = infernoCounter % 60 == 0;
8214 int damage = 20;
8215 if (whoAmI != Main.myPlayer)
8216 {
8217 continue;
8218 }
8219 for (int k = 0; k < 200; k++)
8220 {
8221 NPC nPC = Main.npc[k];
8222 if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && !nPC.buffImmune[num12] && CanNPCBeHitByPlayerOrPlayerProjectile(nPC) && Vector2.Distance(base.Center, nPC.Center) <= num20)
8223 {
8224 if (nPC.FindBuffIndex(num12) == -1)
8225 {
8226 nPC.AddBuff(num12, 120);
8227 }
8228 if (flag)
8229 {
8230 ApplyDamageToNPC(nPC, damage, 0f, 0);
8231 }
8232 }
8233 }
8234 if (!hostile)
8235 {
8236 continue;
8237 }
8238 for (int l = 0; l < 255; l++)
8239 {
8240 Player player = Main.player[l];
8241 if (player == this || !player.active || player.dead || !player.hostile || player.buffImmune[num12] || (player.team == team && player.team != 0) || !(Vector2.Distance(base.Center, player.Center) <= num20))
8242 {
8243 continue;
8244 }
8245 if (player.FindBuffIndex(num12) == -1)
8246 {
8247 player.AddBuff(num12, 120);
8248 }
8249 if (flag)
8250 {
8252 player.Hurt(reason, damage, 0, pvp: true);
8253 if (Main.netMode != 0)
8254 {
8255 NetMessage.SendPlayerHurt(l, reason, damage, 0, critical: false, pvp: true, -1);
8256 }
8257 }
8258 }
8259 }
8260 else if (buffType[j] == 117)
8261 {
8262 allDamage += 0.1f;
8263 }
8264 else if (buffType[j] == 119)
8265 {
8266 loveStruck = true;
8267 }
8268 else if (buffType[j] == 120)
8269 {
8270 stinky = true;
8271 }
8272 else if (buffType[j] == 124)
8273 {
8274 resistCold = true;
8275 }
8276 else if (buffType[j] == 257)
8277 {
8278 if (Main.myPlayer == whoAmI)
8279 {
8280 if (buffTime[j] > 36000)
8281 {
8282 luckPotion = 3;
8283 }
8284 else if (buffTime[j] > 18000)
8285 {
8286 luckPotion = 2;
8287 }
8288 else
8289 {
8290 luckPotion = 1;
8291 }
8292 }
8293 }
8294 else if (buffType[j] == 165)
8295 {
8296 lifeRegen += 6;
8297 statDefense += 8;
8298 dryadWard = true;
8299 if (thorns < 1f)
8300 {
8301 thorns += 0.5f;
8302 }
8303 }
8304 else if (buffType[j] == 144)
8305 {
8306 electrified = true;
8307 Lighting.AddLight((int)base.Center.X / 16, (int)base.Center.Y / 16, 0.3f, 0.8f, 1.1f);
8308 }
8309 else if (buffType[j] == 94)
8310 {
8311 manaSick = true;
8313 }
8314 else if (buffType[j] >= 95 && buffType[j] <= 97)
8315 {
8316 buffTime[j] = 5;
8317 int num21 = (byte)(1 + buffType[j] - 95);
8318 if (beetleOrbs > 0 && beetleOrbs != num21)
8319 {
8320 if (beetleOrbs > num21)
8321 {
8322 DelBuff(j);
8323 j--;
8324 }
8325 else
8326 {
8327 for (int m = 0; m < maxBuffs; m++)
8328 {
8329 if (buffType[m] >= 95 && buffType[m] <= 95 + num21 - 1)
8330 {
8331 DelBuff(m);
8332 m--;
8333 }
8334 }
8335 }
8336 }
8337 beetleOrbs = num21;
8338 if (!beetleDefense)
8339 {
8340 beetleOrbs = 0;
8341 DelBuff(j);
8342 j--;
8343 }
8344 else
8345 {
8346 beetleBuff = true;
8347 }
8348 }
8349 else if (buffType[j] >= 170 && buffType[j] <= 172)
8350 {
8351 buffTime[j] = 5;
8352 int num22 = (byte)(1 + buffType[j] - 170);
8353 if (solarShields > 0 && solarShields != num22)
8354 {
8355 if (solarShields > num22)
8356 {
8357 DelBuff(j);
8358 j--;
8359 }
8360 else
8361 {
8362 for (int n = 0; n < maxBuffs; n++)
8363 {
8364 if (buffType[n] >= 170 && buffType[n] <= 170 + num22 - 1)
8365 {
8366 DelBuff(n);
8367 n--;
8368 }
8369 }
8370 }
8371 }
8373 if (!setSolar)
8374 {
8375 solarShields = 0;
8376 DelBuff(j);
8377 j--;
8378 }
8379 }
8380 else if (buffType[j] >= 98 && buffType[j] <= 100)
8381 {
8382 int num23 = (byte)(1 + buffType[j] - 98);
8383 if (beetleOrbs > 0 && beetleOrbs != num23)
8384 {
8385 if (beetleOrbs > num23)
8386 {
8387 DelBuff(j);
8388 j--;
8389 }
8390 else
8391 {
8392 for (int num24 = 0; num24 < maxBuffs; num24++)
8393 {
8394 if (buffType[num24] >= 98 && buffType[num24] <= 98 + num23 - 1)
8395 {
8396 DelBuff(num24);
8397 num24--;
8398 }
8399 }
8400 }
8401 }
8402 beetleOrbs = num23;
8403 meleeDamage += 0.1f * (float)beetleOrbs;
8404 meleeSpeed += 0.1f * (float)beetleOrbs;
8405 if (!beetleOffense)
8406 {
8407 beetleOrbs = 0;
8408 DelBuff(j);
8409 j--;
8410 }
8411 else
8412 {
8413 beetleBuff = true;
8414 }
8415 }
8416 else if (buffType[j] >= 176 && buffType[j] <= 178)
8417 {
8418 int num25 = nebulaLevelMana;
8419 int num26 = (byte)(1 + buffType[j] - 176);
8420 if (num25 > 0 && num25 != num26)
8421 {
8422 if (num25 > num26)
8423 {
8424 DelBuff(j);
8425 j--;
8426 }
8427 else
8428 {
8429 for (int num2 = 0; num2 < maxBuffs; num2++)
8430 {
8431 if (buffType[num2] >= 176 && buffType[num2] <= 178 + num26 - 1)
8432 {
8433 DelBuff(num2);
8434 num2--;
8435 }
8436 }
8437 }
8438 }
8440 if (buffTime[j] == 2 && nebulaLevelMana > 1)
8441 {
8443 buffType[j]--;
8444 buffTime[j] = 480;
8445 }
8446 }
8447 else if (buffType[j] >= 173 && buffType[j] <= 175)
8448 {
8449 int num3 = nebulaLevelLife;
8450 int num4 = (byte)(1 + buffType[j] - 173);
8451 if (num3 > 0 && num3 != num4)
8452 {
8453 if (num3 > num4)
8454 {
8455 DelBuff(j);
8456 j--;
8457 }
8458 else
8459 {
8460 for (int num5 = 0; num5 < maxBuffs; num5++)
8461 {
8462 if (buffType[num5] >= 173 && buffType[num5] <= 175 + num4 - 1)
8463 {
8464 DelBuff(num5);
8465 num5--;
8466 }
8467 }
8468 }
8469 }
8471 if (buffTime[j] == 2 && nebulaLevelLife > 1)
8472 {
8474 buffType[j]--;
8475 buffTime[j] = 480;
8476 }
8478 }
8479 else if (buffType[j] >= 179 && buffType[j] <= 181)
8480 {
8481 int num6 = nebulaLevelDamage;
8482 int num7 = (byte)(1 + buffType[j] - 179);
8483 if (num6 > 0 && num6 != num7)
8484 {
8485 if (num6 > num7)
8486 {
8487 DelBuff(j);
8488 j--;
8489 }
8490 else
8491 {
8492 for (int num8 = 0; num8 < maxBuffs; num8++)
8493 {
8494 if (buffType[num8] >= 179 && buffType[num8] <= 181 + num7 - 1)
8495 {
8496 DelBuff(num8);
8497 num8--;
8498 }
8499 }
8500 }
8501 }
8503 if (buffTime[j] == 2 && nebulaLevelDamage > 1)
8504 {
8506 buffType[j]--;
8507 buffTime[j] = 480;
8508 }
8509 float num9 = 0.15f * (float)nebulaLevelDamage;
8510 allDamage += num9;
8511 }
8512 else if (buffType[j] == 62)
8513 {
8514 if ((double)statLife <= (double)statLifeMax2 * 0.5)
8515 {
8516 Lighting.AddLight((int)(base.Center.X / 16f), (int)(base.Center.Y / 16f), 0.1f, 0.2f, 0.45f);
8517 iceBarrier = true;
8518 endurance += 0.25f;
8520 if (iceBarrierFrameCounter > 2)
8521 {
8524 if (iceBarrierFrame >= 12)
8525 {
8526 iceBarrierFrame = 0;
8527 }
8528 }
8529 }
8530 else
8531 {
8532 DelBuff(j);
8533 j--;
8534 }
8535 }
8536 else if (buffType[j] == 49)
8537 {
8538 for (int num10 = 191; num10 <= 194; num10++)
8539 {
8541 {
8542 pygmy = true;
8543 }
8544 }
8545 if (!pygmy)
8546 {
8547 DelBuff(j);
8548 j--;
8549 }
8550 else
8551 {
8552 buffTime[j] = 18000;
8553 }
8554 }
8555 else if (buffType[j] == 83)
8556 {
8557 if (ownedProjectileCounts[317] > 0)
8558 {
8559 raven = true;
8560 }
8561 if (!raven)
8562 {
8563 DelBuff(j);
8564 j--;
8565 }
8566 else
8567 {
8568 buffTime[j] = 18000;
8569 }
8570 }
8571 else if (buffType[j] == 64)
8572 {
8573 if (ownedProjectileCounts[266] > 0)
8574 {
8575 slime = true;
8576 }
8577 if (!slime)
8578 {
8579 DelBuff(j);
8580 j--;
8581 }
8582 else
8583 {
8584 buffTime[j] = 18000;
8585 }
8586 }
8587 else if (buffType[j] == 125)
8588 {
8589 if (ownedProjectileCounts[373] > 0)
8590 {
8591 hornetMinion = true;
8592 }
8593 if (!hornetMinion)
8594 {
8595 DelBuff(j);
8596 j--;
8597 }
8598 else
8599 {
8600 buffTime[j] = 18000;
8601 }
8602 }
8603 else if (buffType[j] == 126)
8604 {
8605 if (ownedProjectileCounts[375] > 0)
8606 {
8607 impMinion = true;
8608 }
8609 if (!impMinion)
8610 {
8611 DelBuff(j);
8612 j--;
8613 }
8614 else
8615 {
8616 buffTime[j] = 18000;
8617 }
8618 }
8619 else if (buffType[j] == 133)
8620 {
8621 if (ownedProjectileCounts[390] > 0 || ownedProjectileCounts[391] > 0 || ownedProjectileCounts[392] > 0)
8622 {
8623 spiderMinion = true;
8624 }
8625 if (!spiderMinion)
8626 {
8627 DelBuff(j);
8628 j--;
8629 }
8630 else
8631 {
8632 buffTime[j] = 18000;
8633 }
8634 }
8635 else if (buffType[j] == 134)
8636 {
8637 if (ownedProjectileCounts[387] > 0 || ownedProjectileCounts[388] > 0)
8638 {
8639 twinsMinion = true;
8640 }
8641 if (!twinsMinion)
8642 {
8643 DelBuff(j);
8644 j--;
8645 }
8646 else
8647 {
8648 buffTime[j] = 18000;
8649 }
8650 }
8651 else if (buffType[j] == 135)
8652 {
8653 if (ownedProjectileCounts[393] > 0 || ownedProjectileCounts[394] > 0 || ownedProjectileCounts[395] > 0)
8654 {
8655 pirateMinion = true;
8656 }
8657 if (!pirateMinion)
8658 {
8659 DelBuff(j);
8660 j--;
8661 }
8662 else
8663 {
8664 buffTime[j] = 18000;
8665 }
8666 }
8667 else if (buffType[j] == 214)
8668 {
8669 if (ownedProjectileCounts[758] > 0)
8670 {
8671 vampireFrog = true;
8672 }
8673 if (!vampireFrog)
8674 {
8675 DelBuff(j);
8676 j--;
8677 }
8678 else
8679 {
8680 buffTime[j] = 18000;
8681 }
8682 }
8683 else if (buffType[j] == 139)
8684 {
8685 if (ownedProjectileCounts[407] > 0)
8686 {
8687 sharknadoMinion = true;
8688 }
8689 if (!sharknadoMinion)
8690 {
8691 DelBuff(j);
8692 j--;
8693 }
8694 else
8695 {
8696 buffTime[j] = 18000;
8697 }
8698 }
8699 else if (buffType[j] == 140)
8700 {
8701 if (ownedProjectileCounts[423] > 0)
8702 {
8703 UFOMinion = true;
8704 }
8705 if (!UFOMinion)
8706 {
8707 DelBuff(j);
8708 j--;
8709 }
8710 else
8711 {
8712 buffTime[j] = 18000;
8713 }
8714 }
8715 else if (buffType[j] == 182)
8716 {
8717 if (ownedProjectileCounts[613] > 0)
8718 {
8719 stardustMinion = true;
8720 }
8721 if (!stardustMinion)
8722 {
8723 DelBuff(j);
8724 j--;
8725 }
8726 else
8727 {
8728 buffTime[j] = 18000;
8729 }
8730 }
8731 else if (buffType[j] == 213)
8732 {
8733 if (ownedProjectileCounts[755] > 0)
8734 {
8735 batsOfLight = true;
8736 }
8737 if (!batsOfLight)
8738 {
8739 DelBuff(j);
8740 j--;
8741 }
8742 else
8743 {
8744 buffTime[j] = 18000;
8745 }
8746 }
8747 else if (buffType[j] == 216)
8748 {
8749 bool flag12 = true;
8750 if (ownedProjectileCounts[759] > 0)
8751 {
8752 babyBird = true;
8753 }
8754 else if (whoAmI == Main.myPlayer)
8755 {
8756 if (numMinions < maxMinions)
8757 {
8758 int num11 = FindItem(4281);
8759 if (num11 != -1)
8760 {
8761 Item item = inventory[num11];
8762 int num13 = Projectile.NewProjectile(GetProjectileSource_Item(item), base.Top, Vector2.Zero, item.shoot, item.damage, item.knockBack, whoAmI);
8763 Main.projectile[num13].originalDamage = item.damage;
8764 babyBird = true;
8765 }
8766 }
8767 if (!babyBird)
8768 {
8769 DelBuff(j);
8770 j--;
8771 flag12 = false;
8772 }
8773 }
8774 if (flag12)
8775 {
8776 buffTime[j] = 18000;
8777 }
8778 }
8779 else if (buffType[j] == 325)
8780 {
8781 if (ownedProjectileCounts[951] > 0)
8782 {
8783 flinxMinion = true;
8784 }
8785 if (!flinxMinion)
8786 {
8787 DelBuff(j);
8788 j--;
8789 }
8790 else
8791 {
8792 buffTime[j] = 18000;
8793 }
8794 }
8795 else if (buffType[j] == 335)
8796 {
8797 if (ownedProjectileCounts[970] > 0)
8798 {
8799 abigailMinion = true;
8800 }
8801 if (!abigailMinion)
8802 {
8803 DelBuff(j);
8804 j--;
8805 }
8806 else
8807 {
8808 buffTime[j] = 18000;
8809 }
8810 if (whoAmI == Main.myPlayer)
8811 {
8813 }
8814 }
8815 else if (buffType[j] == 263)
8816 {
8817 if (ownedProjectileCounts[831] > 0)
8818 {
8819 stormTiger = true;
8820 }
8821 if (!stormTiger)
8822 {
8823 DelBuff(j);
8824 j--;
8825 }
8826 else
8827 {
8828 buffTime[j] = 18000;
8829 }
8830 if (whoAmI == Main.myPlayer)
8831 {
8833 }
8834 }
8835 else if (buffType[j] == 271)
8836 {
8837 if (ownedProjectileCounts[864] > 0)
8838 {
8839 smolstar = true;
8840 }
8841 if (!smolstar)
8842 {
8843 DelBuff(j);
8844 j--;
8845 }
8846 else
8847 {
8848 buffTime[j] = 18000;
8849 }
8850 }
8851 else if (buffType[j] == 322)
8852 {
8853 if (ownedProjectileCounts[946] > 0)
8854 {
8855 empressBlade = true;
8856 }
8857 if (!empressBlade)
8858 {
8859 DelBuff(j);
8860 j--;
8861 }
8862 else
8863 {
8864 buffTime[j] = 18000;
8865 }
8866 }
8867 else if (buffType[j] == 187)
8868 {
8869 if (ownedProjectileCounts[623] > 0)
8870 {
8871 stardustGuardian = true;
8872 }
8873 if (!stardustGuardian)
8874 {
8875 DelBuff(j);
8876 j--;
8877 }
8878 else
8879 {
8880 buffTime[j] = 18000;
8881 }
8882 }
8883 else if (buffType[j] == 188)
8884 {
8885 if (ownedProjectileCounts[625] > 0)
8886 {
8887 stardustDragon = true;
8888 }
8889 if (!stardustDragon)
8890 {
8891 DelBuff(j);
8892 j--;
8893 }
8894 else
8895 {
8896 buffTime[j] = 18000;
8897 }
8898 }
8899 else if (buffType[j] == 161)
8900 {
8901 if (ownedProjectileCounts[533] > 0)
8902 {
8903 DeadlySphereMinion = true;
8904 }
8905 if (!DeadlySphereMinion)
8906 {
8907 DelBuff(j);
8908 j--;
8909 }
8910 else
8911 {
8912 buffTime[j] = 18000;
8913 }
8914 }
8915 else if (buffType[j] == 90)
8916 {
8917 mount.SetMount(0, this);
8918 buffTime[j] = 10;
8919 }
8920 else if (buffType[j] == 128)
8921 {
8922 mount.SetMount(1, this);
8923 buffTime[j] = 10;
8924 }
8925 else if (buffType[j] == 129)
8926 {
8927 mount.SetMount(2, this);
8928 buffTime[j] = 10;
8929 }
8930 else if (buffType[j] == 130)
8931 {
8932 mount.SetMount(3, this);
8933 buffTime[j] = 10;
8934 }
8935 else if (buffType[j] == 131)
8936 {
8937 ignoreWater = true;
8938 accFlipper = true;
8939 mount.SetMount(4, this);
8940 buffTime[j] = 10;
8941 }
8942 else if (buffType[j] == 132)
8943 {
8944 mount.SetMount(5, this);
8945 buffTime[j] = 10;
8946 }
8947 else if (buffType[j] == 168)
8948 {
8949 ignoreWater = true;
8950 accFlipper = true;
8951 mount.SetMount(12, this);
8952 buffTime[j] = 10;
8953 }
8954 else if (buffType[j] == 141)
8955 {
8956 mount.SetMount(7, this);
8957 buffTime[j] = 10;
8958 }
8959 else if (buffType[j] == 142)
8960 {
8961 mount.SetMount(8, this);
8962 buffTime[j] = 10;
8963 }
8964 else if (buffType[j] == 143)
8965 {
8966 mount.SetMount(9, this);
8967 buffTime[j] = 10;
8968 }
8969 else if (buffType[j] == 162)
8970 {
8971 mount.SetMount(10, this);
8972 buffTime[j] = 10;
8973 }
8974 else if (buffType[j] == 193)
8975 {
8976 mount.SetMount(14, this);
8977 buffTime[j] = 10;
8978 }
8979 else if (buffType[j] == 212)
8980 {
8981 mount.SetMount(17, this);
8982 buffTime[j] = 10;
8983 }
8984 else if (buffType[j] == 230)
8985 {
8986 mount.SetMount(23, this);
8987 buffTime[j] = 10;
8988 }
8989 else if (buffType[j] == 265)
8990 {
8991 canFloatInWater = true;
8992 accFlipper = true;
8993 mount.SetMount(37, this);
8994 buffTime[j] = 10;
8995 }
8996 else if (buffType[j] == 275)
8997 {
8998 mount.SetMount(40, this);
8999 buffTime[j] = 10;
9000 }
9001 else if (buffType[j] == 276)
9002 {
9003 mount.SetMount(41, this);
9004 buffTime[j] = 10;
9005 }
9006 else if (buffType[j] == 277)
9007 {
9008 mount.SetMount(42, this);
9009 buffTime[j] = 10;
9010 }
9011 else if (buffType[j] == 278)
9012 {
9013 mount.SetMount(43, this);
9014 buffTime[j] = 10;
9015 }
9016 else if (buffType[j] == 279)
9017 {
9018 ignoreWater = true;
9019 accFlipper = true;
9020 mount.SetMount(44, this);
9021 buffTime[j] = 10;
9022 }
9023 else if (buffType[j] == 280)
9024 {
9025 mount.SetMount(45, this);
9026 buffTime[j] = 10;
9027 }
9028 else if (buffType[j] == 281)
9029 {
9030 mount.SetMount(46, this);
9031 buffTime[j] = 10;
9032 }
9033 else if (buffType[j] == 282)
9034 {
9035 mount.SetMount(47, this);
9036 buffTime[j] = 10;
9037 }
9038 else if (buffType[j] == 283)
9039 {
9040 mount.SetMount(48, this);
9041 buffTime[j] = 10;
9042 }
9043 else if (buffType[j] == 305)
9044 {
9045 ignoreWater = true;
9046 accFlipper = true;
9047 lavaImmune = true;
9048 mount.SetMount(49, this);
9049 buffTime[j] = 10;
9050 }
9051 else if (buffType[j] == 318)
9052 {
9053 mount.SetMount(50, this);
9054 buffTime[j] = 10;
9055 }
9056 else if (buffType[j] == 342)
9057 {
9058 mount.SetMount(52, this);
9059 buffTime[j] = 10;
9060 }
9061 else if (buffType[j] == 37)
9062 {
9063 if (Main.wofNPCIndex >= 0 && Main.npc[Main.wofNPCIndex].type == 113)
9064 {
9065 gross = true;
9066 buffTime[j] = 10;
9067 }
9068 else
9069 {
9070 DelBuff(j);
9071 j--;
9072 }
9073 }
9074 else if (buffType[j] == 38)
9075 {
9076 buffTime[j] = 10;
9077 tongued = true;
9078 }
9079 else if (buffType[j] == 146)
9080 {
9081 moveSpeed += 0.1f;
9082 moveSpeed *= 1.1f;
9083 sunflower = true;
9084 }
9085 else if (buffType[j] == 19)
9086 {
9087 buffTime[j] = 18000;
9088 lightOrb = true;
9089 bool flag23 = true;
9090 if (ownedProjectileCounts[18] > 0)
9091 {
9092 flag23 = false;
9093 }
9094 if (flag23 && whoAmI == Main.myPlayer)
9095 {
9096 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 18, 0, 0f, whoAmI);
9097 }
9098 }
9099 else if (buffType[j] == 155)
9100 {
9101 buffTime[j] = 18000;
9102 crimsonHeart = true;
9103 bool flag27 = true;
9104 if (ownedProjectileCounts[500] > 0)
9105 {
9106 flag27 = false;
9107 }
9108 if (flag27 && whoAmI == Main.myPlayer)
9109 {
9110 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 500, 0, 0f, whoAmI);
9111 }
9112 }
9113 else if (buffType[j] == 191)
9114 {
9116 }
9117 else if (buffType[j] == 202)
9118 {
9120 }
9121 else if (buffType[j] == 217)
9122 {
9124 }
9125 else if (buffType[j] == 219)
9126 {
9128 }
9129 else if (buffType[j] == 258)
9130 {
9132 }
9133 else if (buffType[j] == 259)
9134 {
9136 }
9137 else if (buffType[j] == 260)
9138 {
9140 }
9141 else if (buffType[j] == 261)
9142 {
9144 }
9145 else if (buffType[j] == 262)
9146 {
9148 }
9149 else if (buffType[j] == 264)
9150 {
9152 }
9153 else if (buffType[j] == 266)
9154 {
9156 }
9157 else if (buffType[j] == 267)
9158 {
9160 }
9161 else if (buffType[j] == 268)
9162 {
9164 }
9165 else if (buffType[j] == 274)
9166 {
9168 }
9169 else if (buffType[j] == 284)
9170 {
9172 }
9173 else if (buffType[j] == 285)
9174 {
9176 }
9177 else if (buffType[j] == 286)
9178 {
9180 }
9181 else if (buffType[j] == 287)
9182 {
9184 }
9185 else if (buffType[j] == 288)
9186 {
9188 }
9189 else if (buffType[j] == 289)
9190 {
9192 }
9193 else if (buffType[j] == 290)
9194 {
9196 }
9197 else if (buffType[j] == 291)
9198 {
9200 }
9201 else if (buffType[j] == 292)
9202 {
9204 }
9205 else if (buffType[j] == 293)
9206 {
9208 }
9209 else if (buffType[j] == 294)
9210 {
9212 }
9213 else if (buffType[j] == 295)
9214 {
9216 }
9217 else if (buffType[j] == 296)
9218 {
9220 }
9221 else if (buffType[j] == 297)
9222 {
9224 }
9225 else if (buffType[j] == 298)
9226 {
9228 }
9229 else if (buffType[j] == 299)
9230 {
9232 }
9233 else if (buffType[j] == 300)
9234 {
9236 }
9237 else if (buffType[j] == 301)
9238 {
9240 }
9241 else if (buffType[j] == 302)
9242 {
9244 }
9245 else if (buffType[j] == 303)
9246 {
9248 }
9249 else if (buffType[j] == 304)
9250 {
9252 }
9253 else if (buffType[j] == 317)
9254 {
9256 }
9257 else if (buffType[j] == 327)
9258 {
9260 }
9261 else if (buffType[j] == 328)
9262 {
9264 }
9265 else if (buffType[j] == 329)
9266 {
9268 }
9269 else if (buffType[j] == 330)
9270 {
9272 }
9273 else if (buffType[j] == 331)
9274 {
9276 }
9277 else if (buffType[j] == 341)
9278 {
9281 }
9282 else if (buffType[j] == 345)
9283 {
9285 }
9286 else if (buffType[j] == 349)
9287 {
9289 }
9290 else if (buffType[j] == 351)
9291 {
9293 }
9294 else if (buffType[j] == 352)
9295 {
9297 }
9298 else if (buffType[j] == 354)
9299 {
9301 }
9302 else if (buffType[j] == 200)
9303 {
9305 }
9306 else if (buffType[j] == 201)
9307 {
9309 }
9310 else if (buffType[j] == 218)
9311 {
9313 }
9314 else if (buffType[j] == 190)
9315 {
9316 buffTime[j] = 18000;
9318 bool flag28 = true;
9319 if (ownedProjectileCounts[650] > 0)
9320 {
9321 flag28 = false;
9322 }
9323 if (flag28 && whoAmI == Main.myPlayer)
9324 {
9325 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 650, 0, 0f, whoAmI);
9326 }
9327 }
9328 else if (buffType[j] == 27 || buffType[j] == 101 || buffType[j] == 102)
9329 {
9330 buffTime[j] = 18000;
9331 bool flag29 = true;
9332 int num14 = 72;
9333 if (buffType[j] == 27)
9334 {
9335 blueFairy = true;
9336 }
9337 if (buffType[j] == 101)
9338 {
9339 num14 = 86;
9340 redFairy = true;
9341 }
9342 if (buffType[j] == 102)
9343 {
9344 num14 = 87;
9345 greenFairy = true;
9346 }
9347 if (head == 45 && body == 26 && legs == 25)
9348 {
9349 num14 = 72;
9350 }
9352 {
9353 flag29 = false;
9354 }
9355 if (flag29 && whoAmI == Main.myPlayer)
9356 {
9357 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, num14, 0, 0f, whoAmI);
9358 }
9359 }
9360 else if (buffType[j] == 40)
9361 {
9362 buffTime[j] = 18000;
9363 bunny = true;
9364 bool flag30 = true;
9365 if (ownedProjectileCounts[111] > 0)
9366 {
9367 flag30 = false;
9368 }
9369 if (flag30 && whoAmI == Main.myPlayer)
9370 {
9371 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 111, 0, 0f, whoAmI);
9372 }
9373 }
9374 else if (buffType[j] == 148)
9375 {
9376 rabid = true;
9377 if (Main.rand.Next(1200) == 0)
9378 {
9379 int num15 = Main.rand.Next(6);
9380 float num16 = (float)Main.rand.Next(60, 100) * 0.01f;
9381 switch (num15)
9382 {
9383 case 0:
9384 AddBuff(22, (int)(60f * num16 * 3f));
9385 break;
9386 case 1:
9387 AddBuff(23, (int)(60f * num16 * 0.75f));
9388 break;
9389 case 2:
9390 AddBuff(31, (int)(60f * num16 * 1.5f));
9391 break;
9392 case 3:
9393 AddBuff(32, (int)(60f * num16 * 3.5f));
9394 break;
9395 case 4:
9396 AddBuff(33, (int)(60f * num16 * 5f));
9397 break;
9398 case 5:
9399 AddBuff(35, (int)(60f * num16 * 1f));
9400 break;
9401 }
9402 }
9403 allDamage += 0.2f;
9404 }
9405 else if (buffType[j] == 41)
9406 {
9407 buffTime[j] = 18000;
9408 penguin = true;
9409 bool flag31 = true;
9410 if (ownedProjectileCounts[112] > 0)
9411 {
9412 flag31 = false;
9413 }
9414 if (flag31 && whoAmI == Main.myPlayer)
9415 {
9416 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 112, 0, 0f, whoAmI);
9417 }
9418 }
9419 else if (buffType[j] == 152)
9420 {
9421 buffTime[j] = 18000;
9422 magicLantern = true;
9423 if (ownedProjectileCounts[492] == 0 && whoAmI == Main.myPlayer)
9424 {
9425 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 492, 0, 0f, whoAmI);
9426 }
9427 }
9428 else if (buffType[j] == 91)
9429 {
9430 buffTime[j] = 18000;
9431 puppy = true;
9432 bool flag32 = true;
9433 if (ownedProjectileCounts[334] > 0)
9434 {
9435 flag32 = false;
9436 }
9437 if (flag32 && whoAmI == Main.myPlayer)
9438 {
9439 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 334, 0, 0f, whoAmI);
9440 }
9441 }
9442 else if (buffType[j] == 92)
9443 {
9444 buffTime[j] = 18000;
9445 grinch = true;
9446 bool flag2 = true;
9447 if (ownedProjectileCounts[353] > 0)
9448 {
9449 flag2 = false;
9450 }
9451 if (flag2 && whoAmI == Main.myPlayer)
9452 {
9453 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 353, 0, 0f, whoAmI);
9454 }
9455 }
9456 else if (buffType[j] == 84)
9457 {
9458 buffTime[j] = 18000;
9459 blackCat = true;
9460 bool flag3 = true;
9461 if (ownedProjectileCounts[319] > 0)
9462 {
9463 flag3 = false;
9464 }
9465 if (flag3 && whoAmI == Main.myPlayer)
9466 {
9467 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 319, 0, 0f, whoAmI);
9468 }
9469 }
9470 else if (buffType[j] == 61)
9471 {
9472 buffTime[j] = 18000;
9473 dino = true;
9474 bool flag4 = true;
9475 if (ownedProjectileCounts[236] > 0)
9476 {
9477 flag4 = false;
9478 }
9479 if (flag4 && whoAmI == Main.myPlayer)
9480 {
9481 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 236, 0, 0f, whoAmI);
9482 }
9483 }
9484 else if (buffType[j] == 154)
9485 {
9486 buffTime[j] = 18000;
9487 babyFaceMonster = true;
9488 bool flag5 = true;
9489 if (ownedProjectileCounts[499] > 0)
9490 {
9491 flag5 = false;
9492 }
9493 if (flag5 && whoAmI == Main.myPlayer)
9494 {
9495 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 499, 0, 0f, whoAmI);
9496 }
9497 }
9498 else if (buffType[j] == 65)
9499 {
9500 buffTime[j] = 18000;
9501 eyeSpring = true;
9502 bool flag6 = true;
9503 if (ownedProjectileCounts[268] > 0)
9504 {
9505 flag6 = false;
9506 }
9507 if (flag6 && whoAmI == Main.myPlayer)
9508 {
9509 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 268, 0, 0f, whoAmI);
9510 }
9511 }
9512 else if (buffType[j] == 66)
9513 {
9514 buffTime[j] = 18000;
9515 snowman = true;
9516 bool flag7 = true;
9517 if (ownedProjectileCounts[269] > 0)
9518 {
9519 flag7 = false;
9520 }
9521 if (flag7 && whoAmI == Main.myPlayer)
9522 {
9523 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 269, 0, 0f, whoAmI);
9524 }
9525 }
9526 else if (buffType[j] == 42)
9527 {
9528 buffTime[j] = 18000;
9529 turtle = true;
9530 bool flag8 = true;
9531 if (ownedProjectileCounts[127] > 0)
9532 {
9533 flag8 = false;
9534 }
9535 if (flag8 && whoAmI == Main.myPlayer)
9536 {
9537 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 127, 0, 0f, whoAmI);
9538 }
9539 }
9540 else if (buffType[j] == 45)
9541 {
9542 buffTime[j] = 18000;
9543 eater = true;
9544 bool flag9 = true;
9545 if (ownedProjectileCounts[175] > 0)
9546 {
9547 flag9 = false;
9548 }
9549 if (flag9 && whoAmI == Main.myPlayer)
9550 {
9551 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 175, 0, 0f, whoAmI);
9552 }
9553 }
9554 else if (buffType[j] == 50)
9555 {
9556 buffTime[j] = 18000;
9557 skeletron = true;
9558 bool flag10 = true;
9559 if (ownedProjectileCounts[197] > 0)
9560 {
9561 flag10 = false;
9562 }
9563 if (flag10 && whoAmI == Main.myPlayer)
9564 {
9565 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 197, 0, 0f, whoAmI);
9566 }
9567 }
9568 else if (buffType[j] == 51)
9569 {
9570 buffTime[j] = 18000;
9571 hornet = true;
9572 bool flag11 = true;
9573 if (ownedProjectileCounts[198] > 0)
9574 {
9575 flag11 = false;
9576 }
9577 if (flag11 && whoAmI == Main.myPlayer)
9578 {
9579 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 198, 0, 0f, whoAmI);
9580 }
9581 }
9582 else if (buffType[j] == 52)
9583 {
9584 buffTime[j] = 18000;
9585 tiki = true;
9586 bool flag13 = true;
9587 if (ownedProjectileCounts[199] > 0)
9588 {
9589 flag13 = false;
9590 }
9591 if (flag13 && whoAmI == Main.myPlayer)
9592 {
9593 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 199, 0, 0f, whoAmI);
9594 }
9595 }
9596 else if (buffType[j] == 53)
9597 {
9598 buffTime[j] = 18000;
9599 lizard = true;
9600 bool flag14 = true;
9601 if (ownedProjectileCounts[200] > 0)
9602 {
9603 flag14 = false;
9604 }
9605 if (flag14 && whoAmI == Main.myPlayer)
9606 {
9607 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 200, 0, 0f, whoAmI);
9608 }
9609 }
9610 else if (buffType[j] == 54)
9611 {
9612 buffTime[j] = 18000;
9613 parrot = true;
9614 bool flag15 = true;
9615 if (ownedProjectileCounts[208] > 0)
9616 {
9617 flag15 = false;
9618 }
9619 if (flag15 && whoAmI == Main.myPlayer)
9620 {
9621 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 208, 0, 0f, whoAmI);
9622 }
9623 }
9624 else if (buffType[j] == 55)
9625 {
9626 buffTime[j] = 18000;
9627 truffle = true;
9628 bool flag16 = true;
9629 if (ownedProjectileCounts[209] > 0)
9630 {
9631 flag16 = false;
9632 }
9633 if (flag16 && whoAmI == Main.myPlayer)
9634 {
9635 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 209, 0, 0f, whoAmI);
9636 }
9637 }
9638 else if (buffType[j] == 56)
9639 {
9640 buffTime[j] = 18000;
9641 sapling = true;
9642 bool flag17 = true;
9643 if (ownedProjectileCounts[210] > 0)
9644 {
9645 flag17 = false;
9646 }
9647 if (flag17 && whoAmI == Main.myPlayer)
9648 {
9649 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 210, 0, 0f, whoAmI);
9650 }
9651 }
9652 else if (buffType[j] == 85)
9653 {
9654 buffTime[j] = 18000;
9655 cSapling = true;
9656 bool flag18 = true;
9657 if (ownedProjectileCounts[324] > 0)
9658 {
9659 flag18 = false;
9660 }
9661 if (flag18 && whoAmI == Main.myPlayer)
9662 {
9663 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 324, 0, 0f, whoAmI);
9664 }
9665 }
9666 else if (buffType[j] == 81)
9667 {
9668 buffTime[j] = 18000;
9669 spider = true;
9670 bool flag19 = true;
9671 if (ownedProjectileCounts[313] > 0)
9672 {
9673 flag19 = false;
9674 }
9675 if (flag19 && whoAmI == Main.myPlayer)
9676 {
9677 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 313, 0, 0f, whoAmI);
9678 }
9679 }
9680 else if (buffType[j] == 82)
9681 {
9682 buffTime[j] = 18000;
9683 squashling = true;
9684 bool flag20 = true;
9685 if (ownedProjectileCounts[314] > 0)
9686 {
9687 flag20 = false;
9688 }
9689 if (flag20 && whoAmI == Main.myPlayer)
9690 {
9691 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 314, 0, 0f, whoAmI);
9692 }
9693 }
9694 else if (buffType[j] == 57)
9695 {
9696 buffTime[j] = 18000;
9697 wisp = true;
9698 bool flag21 = true;
9699 if (ownedProjectileCounts[211] > 0)
9700 {
9701 flag21 = false;
9702 }
9703 if (flag21 && whoAmI == Main.myPlayer)
9704 {
9705 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 211, 0, 0f, whoAmI);
9706 }
9707 }
9708 else if (buffType[j] == 60)
9709 {
9710 buffTime[j] = 18000;
9711 crystalLeaf = true;
9712 bool flag22 = true;
9713 for (int num17 = 0; num17 < 1000; num17++)
9714 {
9715 if (Main.projectile[num17].active && Main.projectile[num17].owner == whoAmI && Main.projectile[num17].type == 226)
9716 {
9717 if (!flag22)
9718 {
9719 Main.projectile[num17].Kill();
9720 }
9721 flag22 = false;
9722 }
9723 }
9724 if (flag22 && whoAmI == Main.myPlayer)
9725 {
9726 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 226, 0, 0f, whoAmI);
9727 }
9728 }
9729 else if (buffType[j] == 127)
9730 {
9731 buffTime[j] = 18000;
9732 zephyrfish = true;
9733 bool flag24 = true;
9734 if (ownedProjectileCounts[380] > 0)
9735 {
9736 flag24 = false;
9737 }
9738 if (flag24 && whoAmI == Main.myPlayer)
9739 {
9740 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 380, 0, 0f, whoAmI);
9741 }
9742 }
9743 else if (buffType[j] == 136)
9744 {
9745 buffTime[j] = 18000;
9746 miniMinotaur = true;
9747 bool flag25 = true;
9748 if (ownedProjectileCounts[398] > 0)
9749 {
9750 flag25 = false;
9751 }
9752 if (flag25 && whoAmI == Main.myPlayer)
9753 {
9754 Projectile.NewProjectile(GetProjectileSource_Buff(j), position.X + (float)(width / 2), position.Y + (float)(height / 2), 0f, 0f, 398, 0, 0f, whoAmI);
9755 }
9756 }
9757 else if (buffType[j] == 70)
9758 {
9759 venom = true;
9760 }
9761 else if (buffType[j] == 20)
9762 {
9763 poisoned = true;
9764 }
9765 else if (buffType[j] == 21)
9766 {
9768 }
9769 else if (buffType[j] == 22)
9770 {
9771 blind = true;
9772 }
9773 else if (buffType[j] == 80)
9774 {
9775 blackout = true;
9776 }
9777 else if (buffType[j] == 23)
9778 {
9779 noItems = true;
9780 cursed = true;
9781 }
9782 else if (buffType[j] == 24)
9783 {
9784 onFire = true;
9785 }
9786 else if (buffType[j] == 103)
9787 {
9788 dripping = true;
9789 }
9790 else if (buffType[j] == 137)
9791 {
9792 drippingSlime = true;
9793 }
9794 else if (buffType[j] == 320)
9795 {
9796 drippingSparkleSlime = true;
9797 }
9798 else if (buffType[j] == 67)
9799 {
9800 burned = true;
9801 }
9802 else if (buffType[j] == 68)
9803 {
9804 suffocating = true;
9805 }
9806 else if (buffType[j] == 39)
9807 {
9808 onFire2 = true;
9809 }
9810 else if (buffType[j] == 323)
9811 {
9812 onFire3 = true;
9813 }
9814 else if (buffType[j] == 44)
9815 {
9816 onFrostBurn = true;
9817 }
9818 else if (buffType[j] == 324)
9819 {
9820 onFrostBurn2 = true;
9821 }
9822 else if (buffType[j] == 353)
9823 {
9824 shimmering = true;
9825 frozen = true;
9826 fallStart = (int)(position.Y / 16f);
9827 if (Main.myPlayer != whoAmI)
9828 {
9829 continue;
9830 }
9831 if (position.Y / 16f > (float)Main.UnderworldLayer)
9832 {
9833 if (Main.myPlayer == whoAmI)
9834 {
9835 DelBuff(j);
9836 }
9837 continue;
9838 }
9839 if (shimmerWet)
9840 {
9841 buffTime[j] = 60;
9842 continue;
9843 }
9844 bool flag26 = false;
9845 for (int num18 = (int)(position.X / 16f); (float)num18 <= (position.X + (float)width) / 16f; num18++)
9846 {
9847 for (int num19 = (int)(position.Y / 16f); (float)num19 <= (position.Y + (float)height) / 16f; num19++)
9848 {
9849 if (WorldGen.SolidTile3(num18, num19))
9850 {
9851 flag26 = true;
9852 }
9853 }
9854 }
9855 if (flag26)
9856 {
9857 buffTime[j] = 6;
9858 }
9859 else
9860 {
9861 DelBuff(j);
9862 }
9863 }
9864 else if (buffType[j] == 163)
9865 {
9866 headcovered = true;
9867 bleed = true;
9868 }
9869 else if (buffType[j] == 164)
9870 {
9871 vortexDebuff = true;
9872 }
9873 else if (buffType[j] == 194)
9874 {
9875 windPushed = true;
9876 }
9877 else if (buffType[j] == 195)
9878 {
9879 witheredArmor = true;
9880 }
9881 else if (buffType[j] == 205)
9882 {
9883 ballistaPanic = true;
9884 }
9885 else if (buffType[j] == 196)
9886 {
9887 witheredWeapon = true;
9888 }
9889 else if (buffType[j] == 197)
9890 {
9891 slowOgreSpit = true;
9892 }
9893 else if (buffType[j] == 198)
9894 {
9895 parryDamageBuff = true;
9896 }
9897 else if (buffType[j] == 145)
9898 {
9899 moonLeech = true;
9900 }
9901 else if (buffType[j] == 149)
9902 {
9903 webbed = true;
9904 if (velocity.Y != 0f)
9905 {
9906 velocity = new Vector2(0f, 1E-06f);
9907 }
9908 else
9909 {
9910 velocity = Vector2.Zero;
9911 }
9912 jumpHeight = 0;
9913 gravity = 0f;
9914 moveSpeed = 0f;
9915 dash = 0;
9916 dashType = 0;
9917 noKnockback = true;
9919 }
9920 else if (buffType[j] == 43)
9921 {
9922 defendedByPaladin = true;
9923 }
9924 else if (buffType[j] == 29)
9925 {
9926 magicCrit += 2f;
9927 magicDamage += 0.05f;
9928 statManaMax2 += 20;
9929 manaCost -= 0.02f;
9930 }
9931 else if (buffType[j] == 28)
9932 {
9933 if (!Main.dayTime && wolfAcc && !merman)
9934 {
9935 lifeRegen++;
9936 wereWolf = true;
9937 meleeCrit += 2f;
9938 meleeDamage += 0.051f;
9939 meleeSpeed += 0.051f;
9940 statDefense += 3;
9941 moveSpeed += 0.05f;
9942 }
9943 else
9944 {
9945 DelBuff(j);
9946 j--;
9947 }
9948 }
9949 else if (buffType[j] == 33)
9950 {
9951 meleeDamage -= 0.051f;
9952 meleeSpeed -= 0.051f;
9953 statDefense -= 4;
9954 moveSpeed -= 0.1f;
9955 }
9956 else if (buffType[j] == 25)
9957 {
9958 tipsy = true;
9959 statDefense -= 4;
9960 meleeCrit += 2f;
9961 meleeDamage += 0.1f;
9962 meleeSpeed += 0.1f;
9963 }
9964 else if (buffType[j] == 26)
9965 {
9966 wellFed = true;
9967 statDefense += 2;
9968 allCrit += 2f;
9969 allDamage += 0.05f;
9970 meleeSpeed += 0.05f;
9971 minionKB += 0.5f;
9972 moveSpeed += 0.2f;
9973 pickSpeed -= 0.05f;
9974 }
9975 else if (buffType[j] == 206)
9976 {
9977 wellFed = true;
9978 statDefense += 3;
9979 allCrit += 3f;
9980 allDamage += 0.075f;
9981 meleeSpeed += 0.075f;
9982 minionKB += 0.75f;
9983 moveSpeed += 0.3f;
9984 pickSpeed -= 0.1f;
9985 }
9986 else if (buffType[j] == 207)
9987 {
9988 wellFed = true;
9989 statDefense += 4;
9990 allCrit += 4f;
9991 allDamage += 0.1f;
9992 meleeSpeed += 0.1f;
9993 minionKB += 1f;
9994 moveSpeed += 0.4f;
9995 pickSpeed -= 0.15f;
9996 }
9997 else if (buffType[j] == 333)
9998 {
9999 hungry = true;
10000 statDefense -= 2;
10001 allCrit -= 2f;
10002 allDamage -= 0.05f;
10003 meleeSpeed -= 0.05f;
10004 minionKB -= 0.5f;
10005 pickSpeed += 0.05f;
10006 }
10007 else if (buffType[j] == 334)
10008 {
10009 starving = true;
10010 statDefense -= 4;
10011 allCrit -= 4f;
10012 allDamage -= 0.1f;
10013 meleeSpeed -= 0.1f;
10014 minionKB -= 1f;
10015 pickSpeed += 0.15f;
10016 }
10017 else if (buffType[j] == 336)
10018 {
10019 heartyMeal = true;
10020 }
10021 else if (buffType[j] == 71)
10022 {
10023 meleeEnchant = 1;
10024 }
10025 else if (buffType[j] == 73)
10026 {
10027 meleeEnchant = 2;
10028 }
10029 else if (buffType[j] == 74)
10030 {
10031 meleeEnchant = 3;
10032 }
10033 else if (buffType[j] == 75)
10034 {
10035 meleeEnchant = 4;
10036 }
10037 else if (buffType[j] == 76)
10038 {
10039 meleeEnchant = 5;
10040 }
10041 else if (buffType[j] == 77)
10042 {
10043 meleeEnchant = 6;
10044 }
10045 else if (buffType[j] == 78)
10046 {
10047 meleeEnchant = 7;
10048 }
10049 else if (buffType[j] == 79)
10050 {
10051 meleeEnchant = 8;
10052 }
10053 if (j == originalIndex)
10054 {
10055 BuffLoader.Update(buffType[j], this, ref j);
10056 }
10057 }
10059 if (whoAmI == Main.myPlayer && luckPotion != oldLuckPotion)
10060 {
10061 luckNeedsSync = true;
10063 }
10064 }
static PlayerDeathReason ByOther(int type, int playerIndex=-1)
bool shimmerWet
Definition Entity.cs:59
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
Stores data for mount buffs.
Definition BuffID.cs:15
static BuffMountData[] BasicMountData
If not null for a given T:Terraria.ID.BuffID, then that buff is linked to a T:Terraria....
Definition BuffID.cs:85
static bool[] TimeLeftDoesNotDecrease
If true for a given T:Terraria.ID.BuffID, then that buff will never run out. Useful for buffs that ...
Definition BuffID.cs:55
static void Update(int buff, Player player, ref int buffIndex)
This serves as the central class from which buff-related functions are supported and carried out.
Definition BuffLoader.cs:18
T:Terraria.ModLoader.DamageClass is used to determine the application of item effects,...
void SetMount(int m, Player mountedPlayer, bool faceLeft=false)
Definition Mount.cs:6395
float moveSpeed
The multiplier on this player's F:Terraria.Player.maxRunSpeed and F:Terraria.Player....
Definition Player.cs:2614
int nebulaLevelLife
Definition Player.cs:1115
bool[] buffImmune
Indexed by T:Terraria.ID.BuffID. If true for a given T:Terraria.ID.BuffID, then this player cannot be...
Definition Player.cs:1699
bool petFlagDynamiteKitten
Definition Player.cs:2355
int statLifeMax2
The maximum health this player can have, adjusted by buffs and equipment.
Definition Player.cs:2092
bool petFlagDD2Dragon
Definition Player.cs:2335
int dashType
The current vanilla dash that the player is using. The following values correspond to vanilla dashes...
Definition Player.cs:1228
bool parryDamageBuff
Definition Player.cs:2599
bool magicLantern
Definition Player.cs:2277
int FindItem(int netid)
Definition Player.cs:56652
ref StatModifier meleeDamage
Definition Player.cs:3396
static int manaSickTime
Definition Player.cs:1161
bool petFlagFairyQueenPet
Definition Player.cs:2391
bool abigailMinion
Definition Player.cs:1492
bool petFlagChesterPet
Definition Player.cs:2415
bool petFlagDukeFishronPet
Definition Player.cs:2385
int statManaMax2
The maximum mana this player can have, adjusted by buffs and equipment.
Definition Player.cs:2122
bool palladiumRegen
Definition Player.cs:1390
bool coolWhipBuff
Definition Player.cs:2301
bool babyFaceMonster
Definition Player.cs:2429
bool petFlagLilHarpy
Definition Player.cs:2343
bool petFlagPumpkingPet
Definition Player.cs:2393
void BuffHandle_SpawnPetIfNeededAndSetTime(int buffIndex, ref bool petBool, int petProjID, int buffTimeToGive=18000)
A helper method that handles code common to pet buffs. Can be used during the buff update code....
Definition Player.cs:10219
float wallSpeed
Definition Player.cs:2618
ref float summonerWeaponSpeedBonus
Definition Player.cs:3414
float pickSpeed
Definition Player.cs:2616
bool empressBlade
Definition Player.cs:1488
bool onFrostBurn2
Definition Player.cs:2485
bool petFlagKingSlimePet
Definition Player.cs:2363
bool DeadlySphereMinion
Definition Player.cs:1468
int nebulaLevelDamage
Definition Player.cs:1121
bool petFlagBabyRedPanda
Definition Player.cs:2351
bool beetleOffense
Definition Player.cs:1095
bool drippingSparkleSlime
Definition Player.cs:2505
bool petFlagGlitteryButterfly
Definition Player.cs:2347
bool petFlagMoonLordPet
Definition Player.cs:2389
bool petFlagDeerclopsPet
Definition Player.cs:2411
int statLife
The current health of this player. Capped at F:Terraria.Player.statLifeMax2. If you increase this v...
Definition Player.cs:2102
ref float GetArmorPenetration(DamageClass damageClass)
Gets the armor penetration modifier for this damage type on this player. This returns a reference,...
Definition Player.cs:58357
bool detectCreature
Definition Player.cs:2895
bool petFlagQueenSlimePet
Definition Player.cs:2405
StatModifier arrowDamage
Definition Player.cs:2605
bool petFlagBabyImp
Definition Player.cs:2349
bool petFlagBabyWerewolf
Definition Player.cs:2357
void UpdateAbigailStatus()
Definition Player.cs:10257
bool petFlagEyeOfCthulhuPet
Definition Player.cs:2365
float tileSpeed
Definition Player.cs:2620
bool companionCube
Definition Player.cs:2427
byte iceBarrierFrameCounter
Definition Player.cs:1384
bool stardustGuardian
Definition Player.cs:1472
bool suspiciouslookingTentacle
Definition Player.cs:2255
byte oldLuckPotion
Definition Player.cs:1353
bool CanNPCBeHitByPlayerOrPlayerProjectile(NPC npc, Projectile projectile=null)
Definition Player.cs:19013
bool petFlagGlommerPet
Definition Player.cs:2409
ref float meleeCrit
Definition Player.cs:3388
bool slowOgreSpit
Definition Player.cs:2597
bool petFlagPlanteraPet
Definition Player.cs:2381
int nebulaLevelMana
Definition Player.cs:1117
bool petFlagShadowMimic
Definition Player.cs:2359
void UpdateStormTigerStatus()
Definition Player.cs:10279
bool petFlagDD2OgrePet
Definition Player.cs:2401
bool petFlagQueenBeePet
Definition Player.cs:2373
bool petFlagPlantero
Definition Player.cs:2353
bool stardustMinion
Definition Player.cs:1470
bool witheredWeapon
Definition Player.cs:2595
bool witheredArmor
Definition Player.cs:2593
ref StatModifier magicDamage
Definition Player.cs:3398
bool ballistaPanic
Definition Player.cs:2601
bool petFlagDD2Ghost
Definition Player.cs:2333
bool vortexDebuff
Definition Player.cs:2589
bool stardustDragon
Definition Player.cs:1474
bool petFlagEaterOfWorldsPet
Definition Player.cs:2367
int dash
The current vanilla dash that the player is VISIBLY using. Unlike F:Terraria.Player....
Definition Player.cs:1234
byte iceBarrierFrame
Definition Player.cs:1382
DefenseStat statDefense
The defense value of this player. The Defense wiki pageteaches how player defense affects incoming d...
Definition Player.cs:2075
IEntitySource GetProjectileSource_Item(Item item)
Definition Player.cs:7831
bool crimsonHeart
Definition Player.cs:2257
void RemoveAllGrapplingHooks()
Definition Player.cs:31755
int maxMinions
The maximum value of minions this player can have summoned at once. A minion's value is stored as F...
Definition Player.cs:1433
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
Definition Player.cs:2323
int[] buffTime
The remaining durations in ticks of all buffs this player has active. A value of 0 means that buff ...
Definition Player.cs:1692
byte meleeEnchant
The vanilla flask effect which the player currently has active; these affect all melee weapons and wh...
Definition Player.cs:1281
bool petFlagLunaticCultistPet
Definition Player.cs:2387
bool petFlagBabyShark
Definition Player.cs:2341
bool petFlagBrainOfCthulhuPet
Definition Player.cs:2369
bool spiderMinion
Definition Player.cs:1458
IEntitySource GetProjectileSource_Buff(int buffIndex)
Definition Player.cs:7825
bool petFlagEverscreamPet
Definition Player.cs:2395
bool petFlagTwinsPet
Definition Player.cs:2377
ref float magicCrit
Definition Player.cs:3390
bool luckNeedsSync
Definition Player.cs:3213
bool petFlagSkeletronPrimePet
Definition Player.cs:2379
bool petFlagBlueChickenPet
Definition Player.cs:2419
bool petFlagVoltBunny
Definition Player.cs:2361
static int jumpHeight
Definition Player.cs:2656
float manaRegenDelayBonus
Definition Player.cs:1217
ref StatModifier minionDamage
Definition Player.cs:3404
bool petFlagDirtiestBlock
Definition Player.cs:2425
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
Definition Player.cs:1684
void UpdateStarvingState(bool withEmote)
Definition Player.cs:10136
bool pirateMinion
Definition Player.cs:1462
bool drippingSlime
Definition Player.cs:2503
bool sharknadoMinion
Definition Player.cs:1464
bool petFlagMartianPet
Definition Player.cs:2399
float manaSickReduction
Definition Player.cs:1167
bool findTreasure
Definition Player.cs:2889
bool petFlagFennecFox
Definition Player.cs:2345
ref StatModifier allDamage
Definition Player.cs:3394
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Gives the player the provided buff. This accounts for if the player is immune to the buff....
Definition Player.cs:5700
float endurance
The percent of damage this player should resist. Has a soft cap of 1f. Cannot reduce taken damage b...
Definition Player.cs:1359
void ApplyDamageToNPC(NPC npc, int damage, float knockback, int direction, bool crit=false, DamageClass? damageType=null, bool damageVariation=false)
Deals damage to an NPC (and syncs the hit in multiplayer). The damage will be affected by modifiers...
Definition Player.cs:18941
bool petFlagBerniePet
Definition Player.cs:2407
bool manaRegenBuff
Definition Player.cs:2154
bool petFlagDD2Gato
Definition Player.cs:2331
int statLifeMax
The maximum health this player can have without adjustment. You should not modify this value....
Definition Player.cs:2087
static int maxBuffs
Definition Player.cs:3380
bool petFlagJunimoPet
Definition Player.cs:2417
bool petFlagPigPet
Definition Player.cs:2413
bool resistCold
If true, this player will take 30% less damage from any NPC with F:Terraria.NPC.coldDamage set and an...
Definition Player.cs:1370
void UpdateHungerBuffs()
Definition Player.cs:10083
bool petFlagUpbeatStar
Definition Player.cs:2337
ref float minionKB
Definition Player.cs:3408
bool petFlagDestroyerPet
Definition Player.cs:2375
static float manaSickLessDmg
Definition Player.cs:1165
float manaCost
The percent of mana actually used when mana is consumed. Cannot reduce an item's mana cost below 0.
Definition Player.cs:2032
bool petFlagGolemPet
Definition Player.cs:2383
bool petFlagSugarGlider
Definition Player.cs:2339
bool petFlagDD2BetsyPet
Definition Player.cs:2403
void DelBuff(int b)
Removes the buff at the provided index in F:Terraria.Player.buffType and F:Terraria....
Definition Player.cs:5868
int lifeRegen
The rate of this player's life regeneration in health/ticks, divided by 120. For example,...
Definition Player.cs:2130
int[] ownedProjectileCounts
Provides efficient access to the number of projectiles of the specified type owned by this player cur...
Definition Player.cs:3105
ref float allCrit
Definition Player.cs:3386
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767
bool petFlagSkeletronPet
Definition Player.cs:2371
bool beetleDefense
Definition Player.cs:1093
int numMinions
The current number of minions this player has summoned. Note that F:Terraria.Player....
Definition Player.cs:1438
bool petFlagIceQueenPet
Definition Player.cs:2397
bool hornetMinion
Definition Player.cs:1452
bool petFlagSpiffo
Definition Player.cs:2421
bool petFlagCaveling
Definition Player.cs:2423
bool hasTitaniumStormBuff
Definition Player.cs:1402
bool miniMinotaur
Definition Player.cs:2289
bool canFloatInWater
Definition Player.cs:2828
bool defendedByPaladin
Definition Player.cs:1560
ref float meleeSpeed
Definition Player.cs:3410

References Terraria.Player.abigailMinion, Terraria.Player.accFlipper, Terraria.Entity.active, Terraria.Player.AddBuff(), Terraria.Lighting.AddLight(), Terraria.Player.allCrit, Terraria.Player.allDamage, Terraria.Player.ammoBox, Terraria.Player.ammoPotion, Terraria.Player.ApplyDamageToNPC(), Terraria.Player.archery, Terraria.Player.arrowDamage, Terraria.Player.babyBird, Terraria.Player.babyFaceMonster, Terraria.Player.ballistaPanic, Terraria.ID.BuffID.Sets.BasicMountData, Terraria.Player.batsOfLight, Terraria.Player.beetleBuff, Terraria.Player.beetleDefense, Terraria.Player.beetleOffense, Terraria.Player.beetleOrbs, Terraria.Player.biomeSight, Terraria.Player.blackCat, Terraria.Player.blackout, Terraria.Player.bleed, Terraria.Player.blind, Terraria.Player.blockRange, Terraria.Player.blueFairy, Terraria.Player.body, Terraria.Player.brokenArmor, Terraria.Player.BuffHandle_SpawnPetIfNeededAndSetTime(), Terraria.Player.buffImmune, Terraria.Player.buffTime, Terraria.Player.buffType, Terraria.Player.bunny, Terraria.Player.burned, Terraria.DataStructures.PlayerDeathReason.ByOther(), Terraria.Player.calmed, Terraria.Player.canFloatInWater, Terraria.Player.CanNPCBeHitByPlayerOrPlayerProjectile(), Terraria.Entity.Center, Terraria.Player.chaosState, Terraria.Player.chilled, Terraria.Player.companionCube, Terraria.Player.confused, Terraria.Player.coolWhipBuff, Terraria.Player.cratePotion, Terraria.Player.crimsonHeart, Terraria.Player.crystalLeaf, Terraria.Player.cSapling, Terraria.Player.cursed, Terraria.Item.damage, Terraria.Player.dangerSense, Terraria.Player.dash, Terraria.Player.dashType, Terraria.Main.dayTime, Terraria.Player.dazed, Terraria.Player.dead, Terraria.Player.DeadlySphereMinion, Terraria.Player.defendedByPaladin, Terraria.Player.DelBuff(), Terraria.Player.detectCreature, Terraria.Player.dino, Terraria.Main.dontStarveWorld, Terraria.Player.dripping, Terraria.Player.drippingSlime, Terraria.Player.drippingSparkleSlime, Terraria.Player.dryadWard, Terraria.Player.eater, Terraria.Player.electrified, Terraria.Player.empressBlade, Terraria.Player.endurance, Terraria.Player.enemySpawns, Terraria.Player.eyeSpring, Terraria.Player.fallStart, Terraria.Player.FindBuffIndex(), Terraria.Player.FindItem(), Terraria.Player.findTreasure, Terraria.Player.fireWalk, Terraria.Player.fishingSkill, Terraria.Player.flinxMinion, Terraria.Player.frozen, Terraria.Player.GetArmorPenetration(), Terraria.Player.GetProjectileSource_Buff(), Terraria.Player.GetProjectileSource_Item(), Terraria.Player.gills, Terraria.Player.gravControl, Terraria.Player.gravity, Terraria.Player.greenFairy, Terraria.Player.grinch, Terraria.Player.gross, Terraria.Player.hasTitaniumStormBuff, Terraria.Player.head, Terraria.Player.headcovered, Terraria.Player.heartyMeal, Terraria.Entity.height, Terraria.Player.honey, Terraria.Player.hornet, Terraria.Player.hornetMinion, Terraria.Player.hostile, Terraria.Player.hungry, Terraria.Player.Hurt(), Terraria.Player.iceBarrier, Terraria.Player.iceBarrierFrame, Terraria.Player.iceBarrierFrameCounter, Terraria.Player.ichor, Terraria.Player.ignoreWater, Terraria.Player.impMinion, Terraria.Player.inferno, Terraria.Player.infernoCounter, Terraria.Player.inventory, Terraria.Player.invis, Terraria.Player.jumpHeight, Terraria.Player.kbBuff, Terraria.Item.knockBack, Terraria.Player.lavaImmune, Terraria.Player.legs, Terraria.Player.lifeForce, Terraria.Player.lifeMagnet, Terraria.Player.lifeRegen, Terraria.Player.lightOrb, Terraria.Player.lizard, Terraria.Player.loveStruck, Terraria.Player.luckNeedsSync, Terraria.Player.luckPotion, Terraria.Player.magicCrit, Terraria.Player.magicDamage, Terraria.Player.magicLantern, Terraria.Player.manaCost, Terraria.Player.manaRegenBonus, Terraria.Player.manaRegenBuff, Terraria.Player.manaRegenDelayBonus, Terraria.Player.manaSick, Terraria.Player.manaSickLessDmg, Terraria.Player.manaSickReduction, Terraria.Player.manaSickTime, Terraria.Player.maxBuffs, Terraria.Player.maxMinions, Terraria.Player.maxTurrets, Terraria.ModLoader.DamageClass.Melee, Terraria.Player.meleeCrit, Terraria.Player.meleeDamage, Terraria.Player.meleeEnchant, Terraria.Player.meleeSpeed, Terraria.Player.merman, Terraria.Player.miniMinotaur, Terraria.Player.minionDamage, Terraria.Player.minionKB, Terraria.Player.moonLeech, Terraria.Player.mount, Terraria.Player.moveSpeed, Terraria.Main.myPlayer, Terraria.Player.nebulaLevelDamage, Terraria.Player.nebulaLevelLife, Terraria.Player.nebulaLevelMana, Terraria.Main.netMode, Terraria.Projectile.NewProjectile(), Terraria.Player.nightVision, Terraria.Player.noItems, Terraria.Player.noKnockback, Terraria.Main.npc, Terraria.Player.numMinions, Terraria.Player.oldLuckPotion, Terraria.Player.onFire, Terraria.Player.onFire2, Terraria.Player.onFire3, Terraria.Player.onFrostBurn, Terraria.Player.onFrostBurn2, Terraria.Player.ownedProjectileCounts, Terraria.Player.palladiumRegen, Terraria.Player.parrot, Terraria.Player.parryDamageBuff, Terraria.Player.penguin, Terraria.Player.petFlagBabyImp, Terraria.Player.petFlagBabyRedPanda, Terraria.Player.petFlagBabyShark, Terraria.Player.petFlagBabyWerewolf, Terraria.Player.petFlagBerniePet, Terraria.Player.petFlagBlueChickenPet, Terraria.Player.petFlagBrainOfCthulhuPet, Terraria.Player.petFlagCaveling, Terraria.Player.petFlagChesterPet, Terraria.Player.petFlagDD2BetsyPet, Terraria.Player.petFlagDD2Dragon, Terraria.Player.petFlagDD2Gato, Terraria.Player.petFlagDD2Ghost, Terraria.Player.petFlagDD2OgrePet, Terraria.Player.petFlagDeerclopsPet, Terraria.Player.petFlagDestroyerPet, Terraria.Player.petFlagDirtiestBlock, Terraria.Player.petFlagDukeFishronPet, Terraria.Player.petFlagDynamiteKitten, Terraria.Player.petFlagEaterOfWorldsPet, Terraria.Player.petFlagEverscreamPet, Terraria.Player.petFlagEyeOfCthulhuPet, Terraria.Player.petFlagFairyQueenPet, Terraria.Player.petFlagFennecFox, Terraria.Player.petFlagGlitteryButterfly, Terraria.Player.petFlagGlommerPet, Terraria.Player.petFlagGolemPet, Terraria.Player.petFlagIceQueenPet, Terraria.Player.petFlagJunimoPet, Terraria.Player.petFlagKingSlimePet, Terraria.Player.petFlagLilHarpy, Terraria.Player.petFlagLunaticCultistPet, Terraria.Player.petFlagMartianPet, Terraria.Player.petFlagMoonLordPet, Terraria.Player.petFlagPigPet, Terraria.Player.petFlagPlanteraPet, Terraria.Player.petFlagPlantero, Terraria.Player.petFlagPumpkingPet, Terraria.Player.petFlagQueenBeePet, Terraria.Player.petFlagQueenSlimePet, Terraria.Player.petFlagShadowMimic, Terraria.Player.petFlagSkeletronPet, Terraria.Player.petFlagSkeletronPrimePet, Terraria.Player.petFlagSpiffo, Terraria.Player.petFlagSugarGlider, Terraria.Player.petFlagTwinsPet, Terraria.Player.petFlagUpbeatStar, Terraria.Player.petFlagVoltBunny, Terraria.Player.pickSpeed, Terraria.Player.pirateMinion, Terraria.Main.player, Terraria.Player.poisoned, Terraria.Entity.position, Terraria.Player.potionDelay, Terraria.Main.projectile, Terraria.Player.puppy, Terraria.Player.pygmy, Terraria.Player.rabid, Terraria.Main.rand, Terraria.Player.raven, Terraria.Player.redFairy, Terraria.Player.RemoveAllGrapplingHooks(), Terraria.Player.resistCold, Terraria.Player.sapling, Terraria.NetMessage.SendPlayerHurt(), Terraria.Mount.SetMount(), Terraria.Player.setSolar, Terraria.Player.shadowDodge, Terraria.Player.sharknadoMinion, Terraria.Player.shimmering, Terraria.Entity.shimmerWet, Terraria.Item.shoot, Terraria.Player.silence, Terraria.Player.skeletron, Terraria.Player.slime, Terraria.Player.slow, Terraria.Player.slowFall, Terraria.Player.slowOgreSpit, Terraria.Player.smolstar, Terraria.Player.snowman, Terraria.Player.solarShields, Terraria.WorldGen.SolidTile3(), Terraria.Player.sonarPotion, Terraria.Player.soulDrain, Terraria.Player.spider, Terraria.Player.spiderMinion, Terraria.Player.squashling, Terraria.Player.stardustDragon, Terraria.Player.stardustGuardian, Terraria.Player.stardustMinion, Terraria.Player.starving, Terraria.Player.statDefense, Terraria.Player.statLife, Terraria.Player.statLifeMax, Terraria.Player.statLifeMax2, Terraria.Player.statManaMax2, Terraria.Player.stinky, Terraria.Player.stoned, Terraria.Player.stormTiger, Terraria.Player.suffocating, Terraria.Player.summonerWeaponSpeedBonus, Terraria.Player.sunflower, Terraria.Player.suspiciouslookingTentacle, Terraria.Player.team, Terraria.Player.thorns, Terraria.Player.tiki, Terraria.Player.tileSpeed, Terraria.ID.BuffID.Sets.TimeLeftDoesNotDecrease, Terraria.Player.tipsy, Terraria.Player.tongued, Terraria.Player.truffle, Terraria.Player.turtle, Terraria.Player.twinsMinion, Terraria.Player.UFOMinion, Terraria.Main.UnderworldLayer, Terraria.ModLoader.BuffLoader.Update(), Terraria.Player.UpdateAbigailStatus(), Terraria.Player.UpdateHungerBuffs(), Terraria.Player.UpdateStarvingState(), Terraria.Player.UpdateStormTigerStatus(), Terraria.Player.vampireFrog, Terraria.Entity.velocity, Terraria.Player.venom, Terraria.Player.vortexDebuff, Terraria.Player.wallSpeed, Terraria.Player.waterWalk, Terraria.Player.webbed, Terraria.Player.wellFed, Terraria.Player.wereWolf, Terraria.Entity.whoAmI, Terraria.Entity.width, Terraria.Player.windPushed, Terraria.Player.wisp, Terraria.Player.witheredArmor, Terraria.Player.witheredWeapon, Terraria.Main.wofNPCIndex, Terraria.Player.wolfAcc, and Terraria.Player.zephyrfish.

Referenced by Terraria.Player.Update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: