9343 {
9345 {
9347 }
9348 if (Main.dontStarveWorld)
9349 {
9351 }
9353 {
9355 {
9356 continue;
9357 }
9359 {
9361 }
9363 {
9367 }
9369 {
9373 }
9375 {
9378 }
9380 {
9382 }
9384 {
9387 }
9389 {
9390 int num = 10;
9395 }
9397 {
9399 }
9401 {
9403 }
9405 {
9407 }
9409 {
9411 }
9413 {
9415 }
9417 {
9419 }
9421 {
9423 }
9425 {
9427 }
9429 {
9431 }
9433 {
9435 }
9437 {
9438 Lighting.AddLight((
int)(position.X + (float)(
width / 2)) / 16, (
int)(position.Y + (float)(
height / 2)) / 16, 0.8f, 0.95f, 1f);
9439 }
9441 {
9443 }
9445 {
9447 }
9449 {
9451 {
9453 }
9454 }
9456 {
9458 }
9460 {
9462 }
9464 {
9466 }
9468 {
9470 }
9472 {
9474 }
9476 {
9478 }
9480 {
9482 }
9484 {
9486 }
9488 {
9490 }
9492 {
9494 }
9496 {
9498 }
9500 {
9502 }
9504 {
9507 }
9509 {
9511 }
9513 {
9515 }
9517 {
9519 }
9521 {
9523 }
9525 {
9527 }
9529 {
9531 }
9533 {
9535 }
9537 {
9539 }
9541 {
9543 }
9545 {
9547 }
9549 {
9551 }
9553 {
9555 }
9557 {
9559 }
9561 {
9563 }
9565 {
9567 }
9569 {
9571 }
9573 {
9575 }
9577 {
9579 }
9581 {
9583 }
9585 {
9589 }
9591 {
9593 }
9595 {
9598 }
9600 {
9602 }
9604 {
9606 }
9608 {
9610 }
9612 {
9614 }
9616 {
9618 }
9620 {
9623 }
9625 {
9627 }
9629 {
9633 }
9635 {
9637 Lighting.AddLight((int)(base.Center.X / 16f), (int)(base.Center.Y / 16f), 0.65f, 0.4f, 0.1f);
9641 int damage = 20;
9642 if (
whoAmI != Main.myPlayer)
9643 {
9644 continue;
9645 }
9646 for (
int k = 0;
k < 200;
k++)
9647 {
9650 {
9651 if (
nPC.FindBuffIndex(
num2) == -1)
9652 {
9654 }
9655 if (flag)
9656 {
9658 }
9659 }
9660 }
9662 {
9663 continue;
9664 }
9665 for (
int l = 0;
l < 255;
l++)
9666 {
9667 Player player = Main.player[
l];
9668 if (player ==
this || !player.active || player.dead || !player.hostile || player.buffImmune[
num2] || (player.team ==
team && player.team != 0) || !(
Vector2.
Distance(
base.Center, player.Center) <=
num3))
9669 {
9670 continue;
9671 }
9672 if (player.FindBuffIndex(
num2) == -1)
9673 {
9674 player.AddBuff(
num2, 120);
9675 }
9676 if (flag)
9677 {
9679 if (Main.netMode != 0)
9680 {
9683 }
9684 }
9685 }
9686 }
9688 {
9693 }
9695 {
9697 }
9699 {
9701 }
9703 {
9705 }
9707 {
9708 if (Main.myPlayer ==
whoAmI)
9709 {
9711 {
9713 }
9715 {
9717 }
9718 else
9719 {
9721 }
9722 }
9723 }
9725 {
9730 {
9732 }
9733 }
9735 {
9737 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.3f, 0.8f, 1.1f);
9738 }
9740 {
9743 }
9745 {
9749 {
9751 {
9754 }
9755 else
9756 {
9758 {
9760 {
9763 }
9764 }
9765 }
9766 }
9769 {
9773 }
9774 else
9775 {
9777 }
9778 }
9780 {
9784 {
9786 {
9789 }
9790 else
9791 {
9793 {
9795 {
9798 }
9799 }
9800 }
9801 }
9804 {
9808 }
9809 }
9811 {
9814 {
9816 {
9819 }
9820 else
9821 {
9823 {
9825 {
9828 }
9829 }
9830 }
9831 }
9836 {
9840 }
9841 else
9842 {
9844 }
9845 }
9847 {
9851 {
9853 {
9856 }
9857 else
9858 {
9860 {
9862 {
9865 }
9866 }
9867 }
9868 }
9871 {
9875 }
9876 }
9878 {
9882 {
9884 {
9887 }
9888 else
9889 {
9891 {
9893 {
9896 }
9897 }
9898 }
9899 }
9902 {
9906 }
9908 }
9910 {
9914 {
9916 {
9919 }
9920 else
9921 {
9923 {
9925 {
9928 }
9929 }
9930 }
9931 }
9934 {
9938 }
9944 }
9946 {
9948 {
9949 Lighting.AddLight((int)(base.Center.X / 16f), (int)(base.Center.Y / 16f), 0.1f, 0.2f, 0.45f);
9954 {
9958 {
9960 }
9961 }
9962 }
9963 else
9964 {
9967 }
9968 }
9970 {
9972 {
9974 {
9976 }
9977 }
9979 {
9982 }
9983 else
9984 {
9986 }
9987 }
9989 {
9991 {
9993 }
9995 {
9998 }
9999 else
10000 {
10002 }
10003 }
10005 {
10007 {
10009 }
10011 {
10014 }
10015 else
10016 {
10018 }
10019 }
10021 {
10023 {
10025 }
10027 {
10030 }
10031 else
10032 {
10034 }
10035 }
10037 {
10039 {
10041 }
10043 {
10046 }
10047 else
10048 {
10050 }
10051 }
10053 {
10055 {
10057 }
10059 {
10062 }
10063 else
10064 {
10066 }
10067 }
10069 {
10071 {
10073 }
10075 {
10078 }
10079 else
10080 {
10082 }
10083 }
10085 {
10087 {
10089 }
10091 {
10094 }
10095 else
10096 {
10098 }
10099 }
10101 {
10103 {
10105 }
10107 {
10110 }
10111 else
10112 {
10114 }
10115 }
10117 {
10119 {
10121 }
10123 {
10126 }
10127 else
10128 {
10130 }
10131 }
10133 {
10135 {
10137 }
10139 {
10142 }
10143 else
10144 {
10146 }
10147 }
10149 {
10151 {
10153 }
10155 {
10158 }
10159 else
10160 {
10162 }
10163 }
10165 {
10167 {
10169 }
10171 {
10174 }
10175 else
10176 {
10178 }
10179 }
10181 {
10184 {
10186 }
10187 else if (
whoAmI == Main.myPlayer)
10188 {
10190 {
10193 {
10196 Main.projectile[
num20].originalDamage =
item.damage;
10198 }
10199 }
10201 {
10205 }
10206 }
10208 {
10210 }
10211 }
10213 {
10215 {
10217 }
10219 {
10222 }
10223 else
10224 {
10226 }
10227 }
10229 {
10231 {
10233 }
10235 {
10238 }
10239 else
10240 {
10242 }
10243 if (
whoAmI == Main.myPlayer)
10244 {
10246 }
10247 }
10249 {
10251 {
10253 }
10255 {
10258 }
10259 else
10260 {
10262 }
10263 if (
whoAmI == Main.myPlayer)
10264 {
10266 }
10267 }
10269 {
10271 {
10273 }
10275 {
10278 }
10279 else
10280 {
10282 }
10283 }
10285 {
10287 {
10289 }
10291 {
10294 }
10295 else
10296 {
10298 }
10299 }
10301 {
10303 {
10305 }
10307 {
10310 }
10311 else
10312 {
10314 }
10315 }
10317 {
10319 {
10321 }
10323 {
10326 }
10327 else
10328 {
10330 }
10331 }
10333 {
10335 {
10337 }
10339 {
10342 }
10343 else
10344 {
10346 }
10347 }
10349 {
10352 }
10354 {
10357 }
10359 {
10362 }
10364 {
10367 }
10369 {
10374 }
10376 {
10379 }
10381 {
10386 }
10388 {
10391 }
10393 {
10396 }
10398 {
10401 }
10403 {
10406 }
10408 {
10411 }
10413 {
10416 }
10418 {
10421 }
10423 {
10428 }
10430 {
10433 }
10435 {
10438 }
10440 {
10443 }
10445 {
10448 }
10450 {
10455 }
10457 {
10460 }
10462 {
10465 }
10467 {
10470 }
10472 {
10475 }
10477 {
10483 }
10485 {
10488 }
10490 {
10493 }
10495 {
10496 if (Main.wofNPCIndex >= 0 && Main.npc[Main.wofNPCIndex].type == 113)
10497 {
10500 }
10501 else
10502 {
10505 }
10506 }
10508 {
10511 }
10513 {
10517 }
10519 {
10524 {
10526 }
10528 {
10530 }
10531 }
10533 {
10538 {
10540 }
10542 {
10544 }
10545 }
10547 {
10549 }
10551 {
10553 }
10555 {
10557 }
10559 {
10561 }
10563 {
10565 }
10567 {
10569 }
10571 {
10573 }
10575 {
10577 }
10579 {
10581 }
10583 {
10585 }
10587 {
10589 }
10591 {
10593 }
10595 {
10597 }
10599 {
10601 }
10603 {
10605 }
10607 {
10609 }
10611 {
10613 }
10615 {
10617 }
10619 {
10621 }
10623 {
10625 }
10627 {
10629 }
10631 {
10633 }
10635 {
10637 }
10639 {
10641 }
10643 {
10645 }
10647 {
10649 }
10651 {
10653 }
10655 {
10657 }
10659 {
10661 }
10663 {
10665 }
10667 {
10669 }
10671 {
10673 }
10675 {
10677 }
10679 {
10681 }
10683 {
10685 }
10687 {
10689 }
10691 {
10693 }
10695 {
10697 }
10699 {
10701 }
10703 {
10705 }
10707 {
10709 }
10711 {
10714 }
10716 {
10718 }
10720 {
10722 }
10724 {
10726 }
10728 {
10730 }
10732 {
10734 }
10736 {
10738 }
10740 {
10742 }
10744 {
10746 }
10748 {
10753 {
10755 }
10757 {
10759 }
10760 }
10762 {
10767 {
10769 }
10771 {
10774 }
10776 {
10779 }
10781 {
10783 }
10785 {
10787 }
10789 {
10791 }
10792 }
10794 {
10799 {
10801 }
10803 {
10805 }
10806 }
10808 {
10810 if (Main.rand.Next(1200) == 0)
10811 {
10812 int num22 = Main.rand.Next(6);
10813 float num23 = (float)Main.rand.Next(60, 100) * 0.01f;
10815 {
10816 case 0:
10818 break;
10819 case 1:
10821 break;
10822 case 2:
10824 break;
10825 case 3:
10827 break;
10828 case 4:
10830 break;
10831 case 5:
10833 break;
10834 }
10835 }
10840 }
10842 {
10847 {
10849 }
10851 {
10853 }
10854 }
10856 {
10860 {
10862 }
10863 }
10865 {
10870 {
10872 }
10874 {
10876 }
10877 }
10879 {
10884 {
10886 }
10888 {
10890 }
10891 }
10893 {
10898 {
10900 }
10902 {
10904 }
10905 }
10907 {
10912 {
10914 }
10916 {
10918 }
10919 }
10921 {
10926 {
10928 }
10930 {
10932 }
10933 }
10935 {
10940 {
10942 }
10944 {
10946 }
10947 }
10949 {
10954 {
10956 }
10958 {
10960 }
10961 }
10963 {
10968 {
10970 }
10972 {
10974 }
10975 }
10977 {
10982 {
10984 }
10986 {
10988 }
10989 }
10991 {
10996 {
10998 }
11000 {
11002 }
11003 }
11005 {
11010 {
11012 }
11014 {
11016 }
11017 }
11019 {
11024 {
11026 }
11028 {
11030 }
11031 }
11033 {
11038 {
11040 }
11042 {
11044 }
11045 }
11047 {
11052 {
11054 }
11056 {
11058 }
11059 }
11061 {
11066 {
11068 }
11070 {
11072 }
11073 }
11075 {
11080 {
11082 }
11084 {
11086 }
11087 }
11089 {
11094 {
11096 }
11098 {
11100 }
11101 }
11103 {
11108 {
11110 }
11112 {
11114 }
11115 }
11117 {
11122 {
11124 }
11126 {
11128 }
11129 }
11131 {
11136 {
11138 }
11140 {
11142 }
11143 }
11145 {
11150 {
11151 if (Main.projectile[
num24].active && Main.projectile[
num24].owner ==
whoAmI && Main.projectile[
num24].type == 226)
11152 {
11154 {
11155 Main.projectile[
num24].Kill();
11156 }
11158 }
11159 }
11161 {
11163 }
11164 }
11166 {
11171 {
11173 }
11175 {
11177 }
11178 }
11180 {
11185 {
11187 }
11189 {
11191 }
11192 }
11194 {
11196 }
11198 {
11200 }
11202 {
11204 }
11206 {
11208 }
11210 {
11212 }
11214 {
11217 }
11219 {
11221 }
11223 {
11225 }
11227 {
11229 }
11231 {
11233 }
11235 {
11237 }
11239 {
11241 }
11243 {
11245 }
11247 {
11249 }
11251 {
11253 }
11255 {
11257 }
11259 {
11263 if (Main.myPlayer !=
whoAmI)
11264 {
11265 continue;
11266 }
11267 if (
position.
Y / 16f > (
float)Main.UnderworldLayer)
11268 {
11269 if (Main.myPlayer ==
whoAmI)
11270 {
11272 }
11273 continue;
11274 }
11276 {
11278 continue;
11279 }
11282 {
11284 {
11286 {
11288 }
11289 }
11290 }
11292 {
11294 }
11295 else
11296 {
11298 }
11299 }
11301 {
11304 }
11306 {
11308 }
11310 {
11312 }
11314 {
11316 }
11318 {
11320 }
11322 {
11324 }
11326 {
11328 }
11330 {
11332 }
11334 {
11336 }
11338 {
11341 {
11343 }
11344 else
11345 {
11347 }
11355 }
11357 {
11359 }
11361 {
11366 }
11368 {
11370 {
11378 }
11379 else
11380 {
11383 }
11384 }
11386 {
11391 }
11393 {
11399 }
11401 {
11415 }
11417 {
11431 }
11433 {
11447 }
11449 {
11462 }
11464 {
11477 }
11479 {
11481 }
11483 {
11485 }
11487 {
11489 }
11491 {
11493 }
11495 {
11497 }
11499 {
11501 }
11503 {
11505 }
11507 {
11509 }
11511 {
11513 }
11514 }
11517 {
11520 }
11521 }
static PlayerDeathReason ByOther(int type)
static PlayerDeathReason LegacyEmpty()
static BuffMountData[] BasicMountData
static bool[] TimeLeftDoesNotDecrease
void SetMount(int m, Player mountedPlayer, bool faceLeft=false)
bool petFlagDynamiteKitten
bool petFlagFairyQueenPet
bool petFlagDukeFishronPet
static readonly int maxBuffs
void BuffHandle_SpawnPetIfNeededAndSetTime(int buffIndex, ref bool petBool, int petProjID, int buffTimeToGive=18000)
bool drippingSparkleSlime
bool petFlagGlitteryButterfly
bool petFlagQueenSlimePet
void UpdateAbigailStatus()
bool petFlagEyeOfCthulhuPet
byte iceBarrierFrameCounter
bool suspiciouslookingTentacle
bool CanNPCBeHitByPlayerOrPlayerProjectile(NPC npc, Projectile projectile=null)
void UpdateStormTigerStatus()
bool petFlagEaterOfWorldsPet
IEntitySource GetProjectileSource_Item(Item item)
void RemoveAllGrapplingHooks()
void ApplyDamageToNPC(NPC npc, int damage, float knockback, int direction, bool crit)
bool petFlagLunaticCultistPet
bool petFlagBrainOfCthulhuPet
IEntitySource GetProjectileSource_Buff(int buffIndex)
bool petFlagEverscreamPet
bool petFlagSkeletronPrimePet
bool petFlagBlueChickenPet
float manaRegenDelayBonus
bool petFlagDirtiestBlock
void UpdateStarvingState(bool withEmote)
float summonerWeaponSpeedBonus
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
static float manaSickLessDmg
int[] ownedProjectileCounts
bool hasTitaniumStormBuff
static float Distance(Vector2 value1, Vector2 value2)