23306    {
23307        if (i == Main.myPlayer && Main.netMode != 2)
23308        {
23310        }
23311        if (i == Main.myPlayer && Main.dontStarveWorld)
23312        {
23314        }
23324        {
23326        }
23330        {
23332        }
23334        {
23336            {
23339            }
23340            else
23341            {
23345            }
23346        }
23348        {
23350            {
23353            }
23355            {
23358            }
23360            {
23366                {
23369                }
23370            }
23371            else
23372            {
23377            }
23378        }
23380        {
23382        }
23384        bool flag = false;
23385        if (Main.myPlayer == i)
23386        {
23387            if (Main.mapFullscreen)
23388            {
23390            }
23392            {
23394            }
23395            TileObject.objectPreview.Reset();
23397            {
23399            }
23401        }
23403        {
23404            NPC.freeCake = false;
23405            if (Main.netMode != 1)
23406            {
23408            }
23409        }
23411        {
23413        }
23415        {
23417        }
23419        {
23421        }
23422        if (Main.expertMode)
23423        {
23425            {
23427            }
23429            {
23431            }
23432        }
23433        else
23434        {
23436            {
23438            }
23440            {
23442            }
23443        }
23446        {
23449            Lighting.AddLight(num, 
j, 0.5f, 0.2f, 0.05f);
 
23450            Lighting.AddLight(num + 
direction, 
j, 0.5f, 0.2f, 0.05f);
 
23451            Lighting.AddLight(num + 
direction * 2, 
j, 0.5f, 0.2f, 0.05f);
 
23452        }
23454        if (
whoAmI != Main.myPlayer)
 
23455        {
23459            {
23460                flag = true;
23461            }
23462            else if (Main.tile[
num2, 
num3] == 
null)
 
23463            {
23464                flag = true;
23465            }
23466            else if (Main.tile[
num2 - 3, 
num3] == 
null)
 
23467            {
23468                flag = true;
23469            }
23470            else if (Main.tile[
num2 + 3, 
num3] == 
null)
 
23471            {
23472                flag = true;
23473            }
23474            else if (Main.tile[
num2, 
num3 - 3] == 
null)
 
23475            {
23476                flag = true;
23477            }
23478            else if (Main.tile[
num2, 
num3 + 3] == 
null)
 
23479            {
23480                flag = true;
23481            }
23482            if (flag)
23483            {
23490            }
23491        }
23493        {
23495            {
23497            }
23498            else
23499            {
23501            }
23502        }
23503        if (i == Main.myPlayer)
23504        {
23506        }
23508        {
23510        }
23512        {
23514        }
23516        if (flag)
23517        {
23518            return;
23519        }
23524        {
23526        }
23529        {
23531        }
23534        {
23536        }
23538        {
23540        }
23542        {
23544            if (Main.rand.Next(5) == 0)
23545            {
23546                for (
int k = 0; 
k < 2; 
k++)
 
23547                {
23548                    Dust dust = Dust.NewDustDirect(
position, 
width, 
height, 45, 0f, 0f, 255, 
default(
Color), (
float)Main.rand.Next(20, 26) * 0.1f);
 
23549                    dust.noLight = true;
23550                    dust.noGravity = true;
23551                    dust.velocity *= 0.5f;
23552                    dust.velocity.X = 0f;
23553                    dust.velocity.Y -= 0.5f;
23554                }
23555            }
23557            {
23559            }
23560        }
23563        {
23565        }
23566        float num4 = (float)Main.maxTilesX / 4200f;
 
23568        float num5 = (float)((
double)(position.Y / 16f - (60f + 10f * 
num4)) / (Main.worldSurface / 6.0));
 
23569        if (Main.remixWorld)
23570        {
23571            num5 = (float)((
double)(position.Y / 16f - (60f + 10f * 
num4)) / (Main.worldSurface / 1.0));
 
23572        }
23573        if (Main.remixWorld)
23574        {
23575            if ((
double)
num5 < 0.1)
 
23576            {
23578            }
23579        }
23580        else if ((
double)
num5 < 0.25)
 
23581        {
23583        }
23585        {
23587        }
23594        if (
whoAmI == Main.myPlayer)
 
23595        {
23597            {
23599            }
23601            if (
whoAmI == Main.myPlayer)
 
23602            {
23604            }
23605        }
23607        {
23609        }
23611        {
23613        }
23615        {
23617        }
23619        {
23621        }
23622        if (i == Main.myPlayer)
23623        {
23625            {
23627            }
23629            {
23631            }
23634        }
23636        {
23638            return;
23639        }
23641        {
23645            return;
23646        }
23649        {
23651        }
23653        {
23655        }
23657        {
23659            if (Main.hasFocus)
23660            {
23661                if (!Main.drawingPlayerChat && !Main.editSign && !Main.editChest && !Main.blockInput)
23662                {
23665                    if (Main.mapFullscreen)
23666                    {
23668                        {
23669                            Main.mapFullscreenPos.Y -= 1f * (16f / Main.mapFullscreenScale);
23670                        }
23672                        {
23673                            Main.mapFullscreenPos.Y += 1f * (16f / Main.mapFullscreenScale);
23674                        }
23676                        {
23677                            Main.mapFullscreenPos.X -= 1f * (16f / Main.mapFullscreenScale);
23678                        }
23680                        {
23681                            Main.mapFullscreenPos.X += 1f * (16f / Main.mapFullscreenScale);
23682                        }
23695                    }
23697                    {
23699                    }
23701                    {
23703                        {
23705                        }
23707                    }
23708                    else
23709                    {
23711                    }
23713                    {
23715                        {
23717                        }
23719                    }
23720                    else
23721                    {
23723                    }
23725                    {
23727                        {
23729                        }
23731                    }
23732                    else
23733                    {
23735                    }
23737                    {
23740                    }
23742                    {
23744                        {
23746                        }
23748                        {
23750                        }
23751                        else
23752                        {
23754                        }
23755                    }
23757                    {
23759                    }
23760                    else
23761                    {
23763                    }
23765                    {
23767                        {
23769                        }
23771                    }
23772                    else
23773                    {
23775                    }
23776                    if (Main.mapFullscreen)
23777                    {
23779                        {
23780                            Main.mapFullscreenScale *= 1.05f;
23781                        }
23783                        {
23784                            Main.mapFullscreenScale *= 0.95f;
23785                        }
23786                    }
23787                    else
23788                    {
23789                        if (Main.mapStyle == 1)
23790                        {
23792                            {
23793                                Main.mapMinimapScale *= 1.025f;
23794                            }
23796                            {
23797                                Main.mapMinimapScale *= 0.975f;
23798                            }
23800                            {
23801                                Main.mapMinimapAlpha += 0.015f;
23802                            }
23804                            {
23805                                Main.mapMinimapAlpha -= 0.015f;
23806                            }
23807                        }
23808                        else if (Main.mapStyle == 2)
23809                        {
23811                            {
23812                                Main.mapOverlayScale *= 1.05f;
23813                            }
23815                            {
23816                                Main.mapOverlayScale *= 0.95f;
23817                            }
23819                            {
23820                                Main.mapOverlayAlpha += 0.015f;
23821                            }
23823                            {
23824                                Main.mapOverlayAlpha -= 0.015f;
23825                            }
23826                        }
23828                        {
23830                            {
23832                                Main.mapStyle++;
23833                                if (Main.mapStyle > 2)
23834                                {
23835                                    Main.mapStyle = 0;
23836                                }
23837                            }
23839                        }
23840                        else
23841                        {
23843                        }
23844                    }
23846                    {
23848                        {
23849                            if (Main.mapFullscreen)
23850                            {
23852                                Main.mapFullscreen = false;
23853                            }
23854                            else
23855                            {
23857                            }
23858                        }
23860                    }
23861                    else
23862                    {
23864                    }
23865                }
23867                {
23869                }
23871                {
23878                }
23880                {
23882                    {
23886                    }
23887                    else
23888                    {
23890                    }
23891                }
23893                {
23896                    {
23898                    }
23899                }
23900                for (
int m = 0; 
m < 4; 
m++)
 
23901                {
23902                    bool flag5 = 
false;
 
23903                    bool flag6 = 
false;
 
23905                    {
23906                    case 0:
23909                        break;
23910                    case 1:
23913                        break;
23914                    case 2:
23917                        break;
23918                    case 3:
23921                        break;
23922                    }
23924                    {
23926                        {
23928                        }
23929                        else
23930                        {
23932                        }
23933                    }
23935                    {
23938                    }
23939                    else
23940                    {
23942                    }
23943                }
23946                {
23948                    {
23950                    }
23952                }
23953                else
23954                {
23956                }
23958                {
23960                    {
23962                    }
23964                }
23966                {
23969                    bool flag7 = 
false;
 
23970                    if (!Main.drawingPlayerChat && 
selectedItem != 58 && !Main.editSign && !Main.editChest)
 
23971                    {
23973                        {
23976                        }
23978                        {
23981                        }
23983                        {
23986                        }
23988                        {
23991                        }
23993                        {
23996                        }
23998                        {
24001                        }
24003                        {
24006                        }
24008                        {
24011                        }
24013                        {
24016                        }
24018                        {
24021                        }
24029                        {
24031                        }
24033                        {
24035                        }
24037                        {
24039                            {
24040                            case 0:
24042                                break;
24043                            case 1:
24045                                break;
24046                            case 2:
24048                                break;
24049                            case 3:
24051                                break;
24052                            }
24053                        }
24055                        {
24058                        }
24060                        {
24062                            {
24064                            }
24068                        }
24069                    }
24070                    bool flag8 = Main.hairWindow;
 
24072                    {
24073                        int y = Main.screenHeight / 2 + 60;
24075                    }
24077                    {
24078                        CaptureManager.Instance.Active = false;
24079                    }
24081                    {
24083                    }
24084                    if (Main.mapFullscreen)
24085                    {
24086                        float num7 = PlayerInput.ScrollWheelDelta / 120;
 
24088                        {
24090                        }
24091                        Main.mapFullscreenScale *= 1f + 
num7 * 0.3f;
 
24092                    }
24094                    {
24096                    }
24098                    {
24099                        if (!Main.playerInventory)
24100                        {
24102                        }
24103                        else
24104                        {
24107                            if (Main.recBigList)
24108                            {
24116                                {
24120                                    {
24122                                        {
24123                                            Main.recStart -= 
num12;
 
24124                                            if (Main.recStart < 0)
24125                                            {
24126                                                Main.recStart = 0;
24127                                            }
24128                                        }
24129                                        else
24130                                        {
24131                                            Main.recStart += 
num12;
 
24132                                            if (Main.recStart > Main.numAvailableRecipes - 
num12)
 
24133                                            {
24134                                                Main.recStart = Main.numAvailableRecipes - 
num12;
 
24135                                            }
24136                                        }
24138                                    }
24139                                }
24141                            }
24143                            {
24144                                Main.focusRecipe += 
num8;
 
24145                                if (Main.focusRecipe > Main.numAvailableRecipes - 1)
24146                                {
24147                                    Main.focusRecipe = Main.numAvailableRecipes - 1;
24148                                }
24149                                if (Main.focusRecipe < 0)
24150                                {
24151                                    Main.focusRecipe = 0;
24152                                }
24153                            }
24154                        }
24155                    }
24156                }
24157                else
24158                {
24160                    if (!Main.drawingPlayerChat && 
selectedItem != 58 && !Main.editSign && !Main.editChest)
 
24161                    {
24163                        if (Main.keyState.IsKeyDown(Keys.D1))
24164                        {
24167                        }
24168                        if (Main.keyState.IsKeyDown(Keys.D2))
24169                        {
24172                        }
24173                        if (Main.keyState.IsKeyDown(Keys.D3))
24174                        {
24177                        }
24178                        if (Main.keyState.IsKeyDown(Keys.D4))
24179                        {
24182                        }
24183                        if (Main.keyState.IsKeyDown(Keys.D5))
24184                        {
24187                        }
24188                        if (Main.keyState.IsKeyDown(Keys.D6))
24189                        {
24192                        }
24193                        if (Main.keyState.IsKeyDown(Keys.D7))
24194                        {
24197                        }
24198                        if (Main.keyState.IsKeyDown(Keys.D8))
24199                        {
24202                        }
24203                        if (Main.keyState.IsKeyDown(Keys.D9))
24204                        {
24207                        }
24208                        if (Main.keyState.IsKeyDown(Keys.D0))
24209                        {
24212                        }
24214                        {
24216                            {
24218                            }
24220                        }
24221                    }
24222                }
24223            }
24225            {
24227            }
24229            {
24231                {
24232                    int damage = (int)(20.0 * (double)Main.GameModeInfo.EnemyDamageMultiplier);
24234                }
24236                for (
int n = 0; 
n < 20; 
n++)
 
24237                {
24239                    if (Main.rand.Next(2) == 0)
24240                    {
24241                        Main.dust[
num16].noGravity = 
true;
 
24242                    }
24243                }
24244            }
24247            {
24257            }
24259            {
24261            }
24262            else
24263            {
24265            }
24267            {
24269                {
24271                }
24272                else
24273                {
24275                }
24276            }
24278            {
24280                {
24282                }
24283                else
24284                {
24286                }
24287            }
24289            {
24292            }
24294            {
24297            }
24299            if (Main.playerInventory)
24300            {
24302            }
24305        }
24306        if (i == Main.myPlayer)
24307        {
24309            {
24311            }
24313            {
24318                {
24320                }
24322                {
24324                }
24326                {
24328                }
24330                {
24335                    {
24337                    }
24339                    {
24341                        {
24343                            break;
24344                        }
24345                    }
24346                }
24349                {
24351                    {
24353                    }
24354                }
24356                {
24359                    {
24362                    }
24363                }
24365                {
24369                    {
24371                    }
24374                    {
24376                    }
24377                }
24379            }
24381            {
24383            }
24384        }
24385        if (Main.netMode != 1)
24386        {
24388            {
24391                NPC.BigMimicSummonCheck(x, 
y2, 
this);
 
24392            }
24394            {
24395                int x2 = Main.chest[
chest].x;
 
24396                int y3 = Main.chest[
chest].y;
 
24397                Projectile.GasTrapCheck(
x2, 
y3, 
this);
 
24398                ItemSlot.forceClearGlowsOnChest = true;
24399            }
24401        }
24403        {
24405        }
24406        tileTargetX = (int)(((
float)Main.mouseX + Main.screenPosition.X) / 16f);
 
24407        tileTargetY = (int)(((
float)Main.mouseY + Main.screenPosition.Y) / 16f);
 
24409        {
24410            tileTargetY = (int)((Main.screenPosition.Y + (
float)Main.screenHeight - (float)Main.mouseY) / 16f);
 
24411        }
24413        {
24415        }
24417        {
24419        }
24421        {
24423        }
24425        {
24427        }
24429        {
24431        }
24433        {
24435        }
24437        {
24439        }
24441        {
24443            {
24445                {
24447                }
24448            }
24450            {
24452            }
24453        }
24454        if (i == Main.myPlayer)
24455        {
24457        }
24458        try
24459        {
24460            if (
whoAmI == Main.myPlayer && Main.instance.IsActive)
 
24461            {
24464            }
24465        }
24466        catch
24467        {
24468            Main.SmartCursorWanted_GamePad = false;
24469            Main.SmartCursorWanted_Mouse = false;
24470        }
24473        {
24475        }
24477        {
24479        }
24481        {
24483        }
24485        {
24487        }
24489        {
24491        }
24497        {
24501        }
24503        {
24505        }
24509        {
24511        }
24513        {
24515        }
24516        else
24517        {
24519        }
24523        if (
whoAmI == Main.myPlayer)
 
24524        {
24525            Main.musicBox2 = -1;
24526            if (Main.SceneMetrics.WaterCandleCount > 0)
24527            {
24529            }
24530            if (Main.SceneMetrics.PeaceCandleCount > 0)
24531            {
24533            }
24534            if (Main.SceneMetrics.ShadowCandleCount > 0)
24535            {
24537            }
24538            if (Main.SceneMetrics.HasCampfire)
24539            {
24541            }
24542            if (Main.SceneMetrics.HasCatBast)
24543            {
24545            }
24546            if (Main.SceneMetrics.HasStarInBottle)
24547            {
24549            }
24550            if (Main.SceneMetrics.HasHeartLantern)
24551            {
24553            }
24554            if (Main.SceneMetrics.HasSunflower)
24555            {
24557            }
24558            if (Main.SceneMetrics.hasBanner)
24559            {
24561            }
24563            {
24565            }
24566        }
24568        {
24570        }
24573        if (
whoAmI == Main.myPlayer)
 
24574        {
24576            {
24578            }
24582        }
24585        {
24591        }
24592        else
24593        {
24595        }
24597        {
24599        }
24601        {
24603        }
24608        {
24610        }
24614        if (
whoAmI == Main.myPlayer)
 
24615        {
24617            {
24619                {
24621                }
24622            }
24623        }
24632        {
24634        }
24636        {
24638        }
24640        if (Main.npcShop <= 0)
24641        {
24643        }
24645        {
24647        }
24653        {
24655        }
24657        {
24659        }
24661        {
24663        }
24666        {
24671            {
24673                {
24675                }
24677                {
24680                }
24682                {
24685                }
24686            }
24687        }
24691        {
24693        }
24695        {
24698        }
24700        {
24702        }
24704        {
24706        }
24708        {
24710            {
24712            }
24713            else if (
aggro > -250)
 
24714            {
24716            }
24717        }
24719        {
24721            {
24724                {
24726                }
24727            }
24729            {
24731                {
24734                    {
24736                        if (Main.netMode == 1)
24737                        {
24738                            NetMessage.SendData(84, -1, -1, 
null, 
whoAmI);
 
24739                        }
24740                    }
24741                }
24742            }
24743            else
24744            {
24746                {
24748                }
24750                {
24752                }
24753            }
24755            {
24757            }
24761            {
24763            }
24766            {
24768            }
24769        }
24771        {
24773            {
24775            }
24777            {
24779                {
24782                    {
24784                        if (Main.netMode == 1)
24785                        {
24786                            NetMessage.SendData(84, -1, -1, 
null, 
whoAmI);
 
24787                        }
24788                    }
24789                }
24790            }
24791            else
24792            {
24796                {
24798                }
24800                {
24802                }
24803            }
24808            {
24810            }
24811        }
24813        {
24816            {
24820                {
24822                }
24823                else
24824                {
24826                }
24828                {
24829                    NetMessage.SendData(84, -1, -1, 
null, 
whoAmI);
 
24830                }
24837                {
24839                }
24840            }
24841            else
24842            {
24846                {
24848                }
24849                else
24850                {
24852                }
24854                {
24855                    NetMessage.SendData(84, -1, -1, 
null, 
whoAmI);
 
24856                }
24857            }
24859            {
24860                if (Main.rand.Next(2) == 0)
24861                {
24863                    Dust 
obj2 = Main.dust[Dust.NewDust(
base.Center - 
vector * 30f, 0, 0, 229)];
 
24864                    obj2.noGravity = true;
24865                    obj2.position = base.Center - 
vector * Main.rand.Next(5, 11);
 
24866                    obj2.velocity = 
vector.RotatedBy(1.5707963705062866) * 4f;
 
24867                    obj2.scale = 0.5f + Main.rand.NextFloat();
24868                    obj2.fadeIn = 0.5f;
24869                }
24870                if (Main.rand.Next(2) == 0)
24871                {
24873                    Dust 
obj3 = Main.dust[Dust.NewDust(
base.Center - 
vector2 * 30f, 0, 0, 240)];
 
24874                    obj3.noGravity = true;
24875                    obj3.position = base.Center - 
vector2 * 12f;
 
24876                    obj3.velocity = 
vector2.RotatedBy(-1.5707963705062866) * 2f;
 
24877                    obj3.scale = 0.5f + Main.rand.NextFloat();
24878                    obj3.fadeIn = 0.5f;
24879                }
24880            }
24881        }
24882        else
24883        {
24885        }
24887        {
24889        }
24894        {
24896        }
24899        {
24901        }
24904        {
24906        }
24908        {
24910        }
24912        {
24915            {
24916                velocity.X /= 2f;
24917            }
24918        }
24920        {
24922        }
24924        {
24926        }
24928        {
24930        }
24932        {
24935            {
24936                velocity.X /= 2f;
24937            }
24938        }
24940        {
24943            {
24946            }
24947        }
24949        {
24951        }
24957        {
24959        }
24961        {
24963        }
24968        {
24970            {
24972            }
24973        }
24975        {
24977        }
24979        {
24981        }
24983        {
24989        }
24993        {
24995        }
24996        else
24997        {
24999        }
25001        {
25011        }
25013        {
25015        }
25016        else
25017        {
25019            {
25021            }
25023            {
25025            }
25027            {
25029            }
25031            {
25033            }
25035            {
25037            }
25039            {
25041            }
25043            {
25045            }
25047            {
25049            }
25051            {
25053            }
25054        }
25056        {
25059        }
25061        {
25066        }
25068        {
25070        }
25072        {
25074        }
25076        {
25078        }
25084        {
25086            {
25088            }
25095            {
25097            }
25099            {
25101                {
25104                }
25106                {
25109                }
25110                else
25111                {
25113                    {
25116                    }
25118                    {
25121                    }
25122                }
25123            }
25125            {
25127                {
25130                    {
25134                    }
25135                }
25137                {
25140                    {
25144                    }
25145                }
25146            }
25149            {
25151            }
25154            {
25155                instantMovementAccumulatedThisFrame.X += -1f;
25156            }
25158            {
25159                instantMovementAccumulatedThisFrame.X += 1f;
25160            }
25163            {
25166                {
25173                    {
25175                    }
25177                    {
25179                    }
25181                    {
25183                    }
25185                    {
25189                    }
25190                    if (i == Main.myPlayer)
25191                    {
25192                        Main.cameraX = Main.cameraX + position.X - (float)
num38;
 
25193                    }
25194                    position.X = 
num38;
 
25198                }
25199            }
25201            {
25204                {
25205                    velocity.X = -1f;
25206                }
25208                {
25209                    velocity.X = 1f;
25210                }
25211            }
25213            {
25215            }
25217            {
25219            }
25221            {
25223            }
25225            {
25227            }
25229            {
25231            }
25233            {
25235            }
25237            {
25241            }
25242        }
25244        {
25246        }
25247        if (
NPC.brainOfGravity >= 0 && 
NPC.brainOfGravity < 200 && 
Vector2.
Distance(
base.Center, Main.npc[
NPC.brainOfGravity].Center) < 4000f)
 
25248        {
25250        }
25252        {
25254        }
25256        {
25260            {
25262            }
25269            {
25271            }
25273            {
25275            }
25277            {
25280                {
25281                    velocity.Y = 0f;
25282                }
25283            }
25285            {
25287                {
25291                    {
25294                        {
25295                            if (i == Main.myPlayer)
25296                            {
25297                                Main.cameraX = Main.cameraX + position.X - 
x3;
 
25298                            }
25302                            velocity.X = 0f;
25303                        }
25304                        else
25305                        {
25308                            {
25309                                if (i == Main.myPlayer)
25310                                {
25311                                    Main.cameraX = Main.cameraX + position.X - 
x3;
 
25312                                }
25316                                velocity.X = 0f;
25317                            }
25318                        }
25319                    }
25321                    {
25322                        velocity.Y *= 0.7f;
25323                    }
25325                    {
25326                        velocity.Y -= 0.2f;
25327                    }
25328                    else
25329                    {
25330                        velocity.Y -= 0.02f;
25331                    }
25333                    {
25334                        velocity.Y = -8f;
25335                    }
25336                }
25338                {
25342                    {
25345                        {
25346                            if (i == Main.myPlayer)
25347                            {
25348                                Main.cameraX = Main.cameraX + position.X - 
x4;
 
25349                            }
25353                            velocity.X = 0f;
25354                        }
25355                        else
25356                        {
25359                            {
25360                                if (i == Main.myPlayer)
25361                                {
25362                                    Main.cameraX = Main.cameraX + position.X - 
x4;
 
25363                                }
25367                                velocity.X = 0f;
25368                            }
25369                        }
25370                    }
25372                    {
25373                        velocity.Y *= 0.7f;
25374                    }
25376                    {
25377                        velocity.Y += 0.2f;
25378                    }
25379                    else
25380                    {
25381                        velocity.Y += 0.1f;
25382                    }
25384                    {
25386                    }
25387                }
25388                else
25389                {
25390                    velocity.Y *= 0.7f;
25392                    {
25393                        velocity.Y = 0f;
25394                    }
25395                }
25396            }
25398            {
25401                velocity.Y = 1f;
25402            }
25403            else
25404            {
25405                velocity.Y = 0f;
25406                position.Y = 
num40 * 16 + 22;
 
25407            }
25410            {
25412            }
25414            {
25416            }
25417            if (i == Main.myPlayer)
25418            {
25419                Main.cameraX += position.X - 
num42;
 
25421            }
25422            position.X = 
num42;
 
25425            {
25427            }
25429            {
25432            }
25434            {
25436            }
25447        }
25449        {
25451            {
25453            }
25455            {
25457            }
25459            {
25464            }
25466            {
25471            }
25473            {
25475            }
25477            {
25482                {
25484                }
25486                {
25488                }
25489            }
25491            {
25495            }
25497            {
25498                float num43 = 1.75f;
 
25503            }
25505            {
25509                {
25512                }
25513            }
25515            {
25518                {
25521                }
25522                else
25523                {
25525                }
25526            }
25528            {
25531            }
25533            {
25536            }
25538            {
25541            }
25543            {
25546            }
25548            {
25551            }
25553            {
25556            }
25558            {
25561            }
25563            {
25566            }
25568            {
25571            }
25573            {
25577            }
25579            {
25588                {
25591                }
25594                {
25596                    {
25601                        {
25603                        }
25604                    }
25605                    else
25606                    {
25609                    }
25610                }
25612                {
25614                }
25615            }
25619            {
25621            }
25623            {
25625                {
25627                    {
25632                    }
25633                    else
25634                    {
25639                    }
25640                }
25641            }
25643            {
25645                {
25647                    {
25652                    }
25653                    else
25654                    {
25659                    }
25660                }
25661            }
25662            else
25663            {
25665            }
25667            {
25668                velocity.Y = 0f - (mount.Acceleration + 
gravity + 0.001f);
 
25669            }
25674            {
25676            }
25678            {
25680            }
25682            {
25684            }
25690            {
25692            }
25694            {
25696            }
25699            {
25702            }
25704            {
25706            }
25708            {
25710            }
25712            {
25714                {
25716                }
25719                {
25721                }
25724            }
25725            else
25726            {
25728                {
25731                }
25734                {
25739                    {
25741                    }
25743                }
25745                {
25748                    {
25750                    }
25752                    {
25754                        {
25756                        }
25758                    }
25759                    else
25760                    {
25762                    }
25763                }
25765                {
25767                }
25769                {
25771                }
25773                {
25775                    {
25779                        {
25781                            {
25783                            }
25785                            {
25787                            }
25788                        }
25790                        {
25792                            {
25795                            }
25797                            {
25800                            }
25801                        }
25802                    }
25803                    else
25804                    {
25806                    }
25807                }
25809                {
25811                }
25813                {
25815                }
25817                {
25819                }
25821                {
25825                    {
25827                    }
25829                    velocity.Y -= 0.1f * 
gravDir;
 
25831                    {
25833                        {
25834                            velocity.Y -= 0.5f;
25835                        }
25837                        {
25838                            velocity.Y -= 0.1f;
25839                        }
25841                        {
25843                        }
25844                    }
25845                    else
25846                    {
25848                        {
25849                            velocity.Y += 0.5f;
25850                        }
25851                        else if ((
double)velocity.Y < (double)
jumpSpeed * 0.5)
 
25852                        {
25853                            velocity.Y += 0.1f;
25854                        }
25856                        {
25858                        }
25859                    }
25860                }
25862                {
25864                    {
25866                    }
25868                    {
25870                        {
25872                            {
25873                                velocity.Y *= 0.9f;
25874                                if (
velocity.
Y > -1f && (
double)velocity.Y < 0.5)
 
25875                                {
25876                                    velocity.Y = 1
E-05f;
 
25877                                }
25878                            }
25879                            else
25880                            {
25883                                {
25885                                }
25887                                {
25888                                    velocity.Y -= 0.5f;
25889                                }
25890                                else if ((
double)velocity.Y > (double)(0f - 
num47) * 1.5)
 
25891                                {
25892                                    velocity.Y -= 0.1f;
25893                                }
25895                                {
25896                                    velocity.Y = (0f - 
num47) * 1.5f;
 
25897                                }
25898                            }
25899                        }
25900                        else
25901                        {
25904                            {
25906                                {
25908                                }
25909                            }
25911                            {
25913                            }
25914                        }
25915                    }
25917                    {
25919                        {
25921                        }
25922                        else
25923                        {
25925                        }
25927                    }
25929                    {
25933                        {
25934                            if (
wings == 10 && Main.rand.Next(3) == 0)
 
25935                            {
25938                                {
25940                                }
25942                                Main.dust[
num49].fadeIn = 1.1f;
 
25943                                Main.dust[
num49].noGravity = 
true;
 
25944                                Main.dust[
num49].noLight = 
true;
 
25945                                Main.dust[
num49].velocity *= 0.3f;
 
25947                            }
25949                            {
25952                                {
25954                                }
25956                                Main.dust[
num51].fadeIn = 1.1f;
 
25957                                Main.dust[
num51].noGravity = 
true;
 
25958                                Main.dust[
num51].noLight = 
true;
 
25959                                Main.dust[
num51].noLightEmittence = noLightEmittence;
 
25960                                Main.dust[
num51].velocity *= 0.3f;
 
25962                            }
25964                            {
25966                            }
25968                            {
25970                            }
25971                            if (
wings == 9 && Main.rand.Next(3) == 0)
 
25972                            {
25975                                {
25977                                }
25979                                Main.dust[
num53].noGravity = 
true;
 
25980                                Main.dust[
num53].velocity *= 0.3f;
 
25981                                Main.dust[
num53].noLightEmittence = noLightEmittence;
 
25983                            }
25984                            if (
wings == 29 && Main.rand.Next(3) == 0)
 
25985                            {
25988                                {
25990                                }
25992                                Main.dust[
num55].noGravity = 
true;
 
25993                                Main.dust[
num55].velocity *= 0.3f;
 
25994                                Main.dust[
num55].noLightEmittence = noLightEmittence;
 
25995                                if (Main.rand.Next(10) == 0)
25996                                {
25997                                    Main.dust[
num55].fadeIn = 2f;
 
25998                                }
26000                            }
26002                            {
26003                                if (Main.rand.Next(10) == 0)
26004                                {
26007                                    {
26009                                    }
26011                                    Main.dust[
num57].noLightEmittence = noLightEmittence;
 
26012                                    Main.dust[
num57].velocity *= 0.3f;
 
26014                                }
26015                            }
26016                            else if (
wings == 5 && Main.rand.Next(6) == 0)
 
26017                            {
26020                                {
26022                                }
26024                                Main.dust[
num59].velocity *= 0.3f;
 
26025                                Main.dust[
num59].noLightEmittence = noLightEmittence;
 
26027                            }
26029                            {
26032                                {
26035                                }
26037                                float scale = 1.5f;
26038                                int alpha = 100;
26039                                float x5 = position.X + (float)(
width / 2) + 16f;
 
26041                                {
26042                                    x5 = position.X + (float)(
width / 2) - 26f;
 
26043                                }
26045                                if (Main.rand.Next(2) == 1)
26046                                {
26047                                    x5 = position.X + (float)(
width / 2) + 8f;
 
26049                                    {
26050                                        x5 = position.X + (float)(
width / 2) - 20f;
 
26051                                    }
26053                                }
26055                                Main.dust[
num61].velocity.X *= 0.3f;
 
26056                                Main.dust[
num61].velocity.Y += 10f;
 
26057                                Main.dust[
num61].noGravity = 
true;
 
26058                                Main.dust[
num61].noLightEmittence = noLightEmittence;
 
26062                                {
26066                                    {
26068                                    }
26069                                }
26070                            }
26072                            {
26074                                {
26078                                    {
26080                                    }
26082                                }
26083                                else if (
wings == 34)
 
26084                                {
26088                                    {
26090                                    }
26092                                }
26093                                else if (
wings != 45)
 
26094                                {
26096                                    {
26098                                    }
26099                                    else if (
wings == 44)
 
26100                                    {
26102                                    }
26103                                    else if (
wings == 39)
 
26104                                    {
26108                                        {
26110                                        }
26112                                    }
26113                                    else if (
wings == 26)
 
26114                                    {
26117                                        {
26119                                        }
26121                                        Main.dust[
num66].noGravity = 
true;
 
26122                                        Main.dust[
num66].noLight = 
true;
 
26123                                        Main.dust[
num66].velocity /= 4f;
 
26126                                        if (Main.rand.Next(2) == 0)
26127                                        {
26130                                            {
26132                                            }
26135                                            {
26137                                            }
26139                                            Main.dust[
num66].noGravity = 
true;
 
26140                                            Main.dust[
num66].noLight = 
true;
 
26141                                            Main.dust[
num66].velocity /= 4f;
 
26144                                        }
26146                                    }
26147                                    else if (
wings == 37)
 
26148                                    {
26152                                        {
26154                                        }
26155                                        int num69 = Dust.NewDust(
new Vector2(
position.
X + (
float)(
width / 2) + (
float)
num68, 
position.
Y), 24, 
height, Utils.SelectRandom<
int>(Main.rand, 31, 31, 31), 0f, 0f, 100, 
default(
Color), 0.7f);
 
26156                                        Main.dust[
num69].noGravity = 
true;
 
26157                                        Main.dust[
num69].noLight = 
true;
 
26158                                        Main.dust[
num69].velocity /= 4f;
 
26161                                        if (Main.dust[
num69].type == 55)
 
26162                                        {
26163                                            Main.dust[
num69].color = color;
 
26164                                        }
26165                                        if (Main.rand.Next(3) == 0)
26166                                        {
26169                                            {
26171                                            }
26174                                            {
26176                                            }
26177                                            num69 = Dust.NewDust(
new Vector2(
position.
X + (
float)(
width / 2) + (
float)
num68, 
num70), 12, 
height / 2, Utils.SelectRandom<
int>(Main.rand, 31, 31, 31), 0f, 0f, 140, 
default(
Color), 0.7f);
 
26178                                            Main.dust[
num69].noGravity = 
true;
 
26179                                            Main.dust[
num69].noLight = 
true;
 
26180                                            Main.dust[
num69].velocity /= 4f;
 
26183                                            if (Main.dust[
num69].type == 55)
 
26184                                            {
26185                                                Main.dust[
num69].color = color;
 
26186                                            }
26187                                        }
26189                                    }
26190                                    else if (
wings != 24)
 
26191                                    {
26193                                        {
26195                                        }
26196                                        else if (
wings == 12)
 
26197                                        {
26199                                        }
26200                                        else
26201                                        {
26203                                        }
26204                                    }
26205                                }
26206                            }
26207                        }
26210                        {
26212                            {
26214                            }
26215                        }
26217                        {
26219                        }
26220                    }
26222                    {
26224                    }
26225                    else
26226                    {
26228                    }
26229                }
26231                {
26233                    {
26235                        {
26237                        }
26239                        {
26241                        }
26243                        {
26245                        }
26246                    }
26247                    else
26248                    {
26250                        {
26252                        }
26254                        {
26256                        }
26258                        {
26260                        }
26261                    }
26262                }
26263            }
26264        }
26265        else
26266        {
26268        }
26270        {
26272        }
26274        {
26275            float num71 = 0.9f;
 
26277            {
26279            }
26280            velocity.Y *= 
num71;
 
26282            {
26283                velocity.Y = 1
E-05f;
 
26284            }
26285        }
26287        {
26288            velocity.Y *= 0.92f;
26290            {
26291                velocity.Y = 1
E-05f;
 
26292            }
26293        }
26297        {
26300            if (Main.wofNPCIndex >= 0)
26301            {
26302                NPC nPC = Main.npc[Main.wofNPCIndex];
 
26303                float num72 = nPC.Center.X + (float)(
nPC.direction * 200);
 
26304                float y7 = 
nPC.Center.Y;
 
26310                if (Main.expertMode)
26311                {
26315                }
26318                {
26320                }
26321                else
26322                {
26325                }
26328                velocity.X = 
num73;
 
26329                velocity.Y = 
num74;
 
26330            }
26331            else
26332            {
26334            }
26336            {
26338                {
26340                    {
26342                    }
26343                }
26344            }
26345        }
26346        if (Main.myPlayer == 
whoAmI)
 
26347        {
26350            {
26352                {
26354                }
26356            }
26357            else
26358            {
26360            }
26362            {
26366                {
26368                    {
26370                    }
26372                    Main.npcChatCornerItem = 0;
26373                    Main.npcChatText = "";
26374                }
26375            }
26377            {
26379                try
26380                {
26382                    if (Main.sign[
sign] == 
null)
 
26383                    {
26385                    }
26387                    {
26389                    }
26391                    {
26394                        Main.editSign = false;
26395                        Main.npcChatText = "";
26396                    }
26397                }
26398                catch
26399                {
26402                    Main.editSign = false;
26403                    Main.npcChatText = "";
26404                }
26405            }
26406            if (Main.editSign)
26407            {
26409                {
26410                    Main.editSign = false;
26411                }
26412                else
26413                {
26414                    Main.InputTextSign();
26415                }
26416            }
26417            else if (Main.editChest)
26418            {
26419                Main.InputTextChest();
26420                if (Main.player[Main.myPlayer].chest == -1)
26421                {
26422                    Main.editChest = false;
26423                }
26424            }
26426            {
26429                {
26430                    rectangle2.X -= 15;
26431                }
26433                {
26434                    rectangle2.Width += 15;
26435                }
26437                {
26438                    rectangle2.X -= 10;
26439                }
26441                {
26442                    rectangle2.Width += 10;
26443                }
26445                {
26446                    rectangle2.Y -= 10;
26447                }
26449                {
26450                    rectangle2.Height += 10;
26451                }
26453                {
26455                    {
26458                        {
26460                        }
26462                        {
26464                        }
26465                        bool crit = false;
26466                        if ((
float)Main.rand.Next(1, 101) <= 
num80)
 
26467                        {
26468                            crit = true;
26469                        }
26474                        {
26476                        }
26477                        if (Main.npc[
num79].knockBackResist < 1f && Main.npc[
num79].knockBackResist > 0f)
 
26478                        {
26480                        }
26481                        if (
whoAmI == Main.myPlayer)
 
26482                        {
26484                        }
26485                        Main.npc[
num79].immune[
i] = 30;
 
26486                        if (!Main.npc[
num79].active)
 
26487                        {
26489                        }
26490                    }
26491                }
26492            }
26495            {
26498                {
26500                }
26501            }
26503        }
26505        {
26507        }
26508        else
26509        {
26512        }
26514        {
26516        }
26517        else
26518        {
26521        }
26524        {
26526        }
26528        {
26530        }
26532        {
26534        }
26536        {
26538        }
26543        {
26546        }
26549        {
26551        }
26554        {
26556        }
26558        {
26560            {
26562                {
26564                }
26565                else
26566                {
26569                    if (Main.remixWorld)
26570                    {
26573                    }
26575                    {
26577                        {
26578                            if (Main.remixWorld)
26579                            {
26581                            }
26584                        }
26586                        {
26589                        }
26591                        {
26593                        }
26595                        {
26597                        }
26598                    }
26599                }
26600            }
26602        }
26603        else
26604        {
26607            {
26609            }
26610        }
26612        {
26614        }
26616        {
26618        }
26620        bool flag26 = Collision.honey;
 
26621        bool shimmer = Collision.shimmer;
26622        if (shimmer)
26623        {
26626            {
26627                int num86 = (int)(
base.Center.X / 16f);
 
26629                if (Main.tile[
num86, 
num87] != 
null && Main.tile[
num86, 
num87].shimmer() && Main.tile[
num86, 
num87].liquid >= 0 && position.Y / 16f < (float)Main.UnderworldLayer)
 
26630                {
26632                }
26633            }
26634        }
26636        {
26639        }
26641        {
26643            {
26645                {
26648                    {
26650                    }
26651                }
26652            }
26654            {
26656                {
26659                    {
26661                        {
26663                            {
26665                                {
26667                                    Main.dust[
num91].velocity.Y -= 4f;
 
26668                                    Main.dust[
num91].velocity.X *= 2.5f;
 
26669                                    Main.dust[
num91].scale = 0.8f;
 
26670                                    Main.dust[
num91].noGravity = 
true;
 
26671                                    switch (Main.rand.Next(6))
26672                                    {
26673                                    case 0:
26674                                        Main.dust[
num91].color = 
new Color(255, 255, 210);
 
26675                                        break;
26676                                    case 1:
26677                                        Main.dust[
num91].color = 
new Color(190, 245, 255);
 
26678                                        break;
26679                                    case 2:
26680                                        Main.dust[
num91].color = 
new Color(255, 150, 255);
 
26681                                        break;
26682                                    default:
26683                                        Main.dust[
num91].color = 
new Color(190, 175, 255);
 
26684                                        break;
26685                                    }
26686                                }
26688                            }
26690                            {
26692                                {
26694                                    Main.dust[
num93].velocity.Y -= 1f;
 
26695                                    Main.dust[
num93].velocity.X *= 2.5f;
 
26696                                    Main.dust[
num93].scale = 1.3f;
 
26697                                    Main.dust[
num93].alpha = 100;
 
26698                                    Main.dust[
num93].noGravity = 
true;
 
26699                                }
26701                            }
26702                            else
26703                            {
26705                                {
26707                                    Main.dust[
num95].velocity.Y -= 3f;
 
26708                                    Main.dust[
num95].velocity.X *= 2.5f;
 
26709                                    Main.dust[
num95].scale = 0.8f;
 
26710                                    Main.dust[
num95].alpha = 100;
 
26711                                    Main.dust[
num95].noGravity = 
true;
 
26712                                }
26714                            }
26715                        }
26716                        else
26717                        {
26719                            {
26721                                Main.dust[
num97].velocity.Y -= 1.5f;
 
26722                                Main.dust[
num97].velocity.X *= 2.5f;
 
26723                                Main.dust[
num97].scale = 1.3f;
 
26724                                Main.dust[
num97].alpha = 100;
 
26725                                Main.dust[
num97].noGravity = 
true;
 
26726                            }
26728                        }
26729                    }
26730                }
26733                {
26734                    velocity.Y /= 2f;
26736                    {
26737                        velocity.Y = 3f;
26738                    }
26739                }
26740            }
26741        }
26743        {
26746            {
26748            }
26750            {
26753                {
26755                    {
26757                        {
26759                            {
26761                                Main.dust[
num99].velocity.Y -= 4f;
 
26762                                Main.dust[
num99].velocity.X *= 2.5f;
 
26763                                Main.dust[
num99].scale = 0.75f;
 
26764                                Main.dust[
num99].noGravity = 
true;
 
26765                                switch (Main.rand.Next(6))
26766                                {
26767                                case 0:
26768                                    Main.dust[
num99].color = 
new Color(255, 255, 210);
 
26769                                    break;
26770                                case 1:
26771                                    Main.dust[
num99].color = 
new Color(190, 245, 255);
 
26772                                    break;
26773                                case 2:
26774                                    Main.dust[
num99].color = 
new Color(255, 150, 255);
 
26775                                    break;
26776                                default:
26777                                    Main.dust[
num99].color = 
new Color(190, 175, 255);
 
26778                                    break;
26779                                }
26780                            }
26782                        }
26784                        {
26786                            {
26788                                Main.dust[
num101].velocity.Y -= 1f;
 
26789                                Main.dust[
num101].velocity.X *= 2.5f;
 
26790                                Main.dust[
num101].scale = 1.3f;
 
26791                                Main.dust[
num101].alpha = 100;
 
26792                                Main.dust[
num101].noGravity = 
true;
 
26793                            }
26795                        }
26796                        else
26797                        {
26799                            {
26801                                Main.dust[
num103].velocity.Y -= 4f;
 
26802                                Main.dust[
num103].velocity.X *= 2.5f;
 
26803                                Main.dust[
num103].scale = 0.8f;
 
26804                                Main.dust[
num103].alpha = 100;
 
26805                                Main.dust[
num103].noGravity = 
true;
 
26806                            }
26808                        }
26809                    }
26810                    else
26811                    {
26813                        {
26815                            Main.dust[
num105].velocity.Y -= 1.5f;
 
26816                            Main.dust[
num105].velocity.X *= 2.5f;
 
26817                            Main.dust[
num105].scale = 1.3f;
 
26818                            Main.dust[
num105].alpha = 100;
 
26819                            Main.dust[
num105].noGravity = 
true;
 
26820                        }
26822                    }
26823                }
26824            }
26825        }
26827        {
26829        }
26830        if (!shimmer)
26831        {
26833        }
26835        {
26839        }
26841        {
26843        }
26845        {
26847        }
26849        {
26851            {
26852            case 5:
26853            case 7:
26854                if (
whoAmI == Main.myPlayer)
 
26855                {
26857                }
26858                break;
26859            case 3:
26860            case 50:
26863                {
26864                    velocity.Y *= 0.9f;
26865                }
26866                velocity.Y -= 0.5f;
26868                {
26869                    velocity.Y = -4f;
26870                }
26871                break;
26872            }
26873        }
26875        {
26877        }
26880        {
26883            {
26885            }
26886        }
26888        {
26891            {
26893            }
26894        }
26896        {
26898        }
26900        {
26902        }
26903        if (Main.myPlayer == i)
26904        {
26906            {
26908            }
26910        }
26912        {
26914            bool flag27 = mount.Type == 7 || mount.Type == 8 || mount.Type == 12 || mount.Type == 44 || mount.Type == 49;
 
26916            {
26918            }
26920            {
26922                {
26924                }
26925            }
26927            {
26929            }
26930        }
26933        bool falling = false;
26935        {
26936            falling = true;
26937        }
26939        {
26940            falling = true;
26941        }
26947        {
26950        }
26955        {
26961            BitsByte 
bitsByte = Minecart.TrackCollision(
this, 
ref position, 
ref velocity, 
ref lastBoost, 
width, 
height, 
controlDown, 
controlUp, 
fallStart2, 
trackOnly: 
false, 
mount.Delegations);
 
26963            {
26967            }
26969            {
26971            }
26973            {
26975                {
26977                    {
26979                    }
26980                    else
26981                    {
26983                    }
26984                }
26986                {
26988                }
26990                {
26992                }
26994            }
26997            {
26999            }
27001            {
27003            }
27005            {
27007            }
27009            {
27011            }
27012        }
27016        {
27017            velocity.Y = velocity.Y * 0.8f + (float)
Math.
Cos(
base.Center.X % 120f / 120f * ((
float)Math.PI * 2f)) * 5f * 0.2f;
 
27018        }
27020        {
27023        }
27025        {
27027        }
27029        {
27031        }
27033        {
27035        }
27036        else
27037        {
27040            {
27042                velocity.X = 0f;
27045            }
27047            {
27049                velocity.X = 0f;
27052            }
27053        }
27058        {
27061            {
27062                Collision.StepConveyorBelt(
this, 
gravDir);
 
27063            }
27064        }
27066        {
27068        }
27070        {
27071            NetMessage.SendData(13, -1, -1, 
null, 
whoAmI);
 
27073        }
27075        {
27077            {
27079            }
27081            {
27083            }
27084        }
27085        if (
gravDir == 1f && Collision.up)
 
27086        {
27087            velocity.Y = 0.01f;
27089            {
27091            }
27092        }
27093        else if (
gravDir == -1f && Collision.down)
 
27094        {
27095            velocity.Y = -0.01f;
27097            {
27099            }
27100        }
27102        {
27104        }
27106        {
27108        }
27113        if (Main.netMode != 2 && 
mount.
Type != 8)
 
27114        {
27116        }
27120        {
27122        }
27124        {
27126        }
27128        {
27130        }
27135    }
static float Lerp(float value1, float value2, float amount)
static float Clamp(float value, float min, float max)
static double Cos(double d)
static byte Min(byte val1, byte val2)
static double Sqrt(double d)
static double Abs(double value)
static int Sign(decimal value)
static byte Max(byte val1, byte val2)
static void PlaySound(int type, Vector2 position, int style=1)
static PlayerDeathReason ByOther(int type)
virtual void OnPlayerUpdate(Player player)
static void HandleSpecialEvent(Player player, int eventID)
static void HandleRunning(float pixelsMoved)
static readonly CreativePowerManager Instance
bool IsEnabledForPlayer(int playerIndex)
static void Update(Player player)
void Update(Player player)
static bool DownedInvasionAnyDifficulty
static bool ShouldBlockBuilding(Vector2 worldPosition)
static void FindArenaHitbox()
static void TryPlayingIdleMessage()
static void UpdatePlayerPosition(Player player)
static void SmartCursorLookup(Player player)
static Asset< Texture2D > HairStyleBack
static CaptureManager Instance
static ArmorShaderDataSet Armor
static readonly int Count
static float[] BonusMeleeSpeedMultiplier
static readonly LegacySoundStyle Item32
static readonly LegacySoundStyle Item24
static readonly LegacySoundStyle Item13
static readonly LegacySoundStyle Item8
void TurnToAir(bool fullReset=false)
void SetDefaults(int Type=0)
Action< Player, Vector2, int, int > MinecartJumpingSound
Action< Player, Vector2, int, int > MinecartBumperSound
bool IsConsideredASlimeMount
void Dismount(Player mountedPlayer)
MountDelegatesData Delegations
bool Hover(Player mountedPlayer)
void UpdateEffects(Player mountedPlayer)
void UpdateDrill(Player mountedPlayer, bool controlUp, bool controlDown)
void UseDrill(Player mountedPlayer)
void ResetFlightTime(float xVelocity)
void ChangeSelection(int to)
DoorOpeningHelper doorHelper
int _quickGrappleCooldown
void SetTalkNPC(int npcIndex, bool fromNet=false)
void WingAirLogicTweaks()
bool releaseMapFullscreen
void Update_NPCCollision()
OverheadMessage chatOverhead
bool canJumpAgain_Sandstorm
bool hasJumpOption_Sandstorm
SelectionRadial DpadRadial
void UpdateMinionTarget()
bool IsStandingStillForSpecialEffects
void HandleBeingInChestRange()
void ToggleCreativeMenu()
PlayerSleepingHelper sleeping
int[] doubleTapCardinalTimer
int _timeSinceLastImmuneGet
bool PortalPhysicsEnabled
void UpdateProjectileCaches(int i)
bool downedDD2EventAnyDifficulty
bool tryKeepingHoveringDown
static readonly int maxBuffs
Collision.HurtTile GetHurtTile()
SelectionRadial QuicksRadial
bool hasJumpOption_Santank
int _framesLeftEligibleForDeadmansChestDeathAchievement
void GamepadEnableGrappleCooldown()
void GetMinecartDamage(float currentSpeed, out int damage, out float knockback)
PlayerSittingHelper sitting
void CancelAllJumpVisualEffects()
bool canJumpAgain_Basilisk
void KeyHoldDown(int keyDir, int holdTime)
bool isPerformingJump_Blizzard
static readonly float PhilosopherStoneDurationMultiplier
bool isPerformingJump_Basilisk
static int GetMouseScrollDelta()
void PurgeDD2EnergyCrystals()
void SmartInteractLookup()
void TryToShimmerUnstuck()
void LookForTileInteractions()
bool isPerformingJump_Santank
void ApplyTouchDamage(int tileId, int x, int y)
bool CanNPCBeHitByPlayerOrPlayerProjectile(NPC npc, Projectile projectile=null)
void UpdatePettingAnimal()
int environmentBuffImmunityTimer
void ResetVisibleAccessories()
float MountFishronSpecialCounter
bool canJumpAgain_Blizzard
void HorizontalMovement()
void ItemCheckWrapped(int i)
int snowBallLauncherInteractionCooldown
void UpdatePetLight(int i)
void AdjustRemainingPotionSickness()
bool GoingDownWithGrapple
ShimmerUnstuckHelper shimmerUnstuckHelper
bool hasJumpOption_Unicorn
void TrySpawningFaelings()
bool isPerformingJump_Fart
double Hurt(PlayerDeathReason damageSource, int Damage, int hitDirection, bool pvp=false, bool quiet=false, bool Crit=false, int cooldownCounter=-1, bool dodgeable=true)
bool CanMoveForwardOnRope(int dir, int x, int y)
bool canJumpAgain_Unicorn
bool tryKeepingHoveringUp
void ApplyDamageToNPC(NPC npc, int damage, float knockback, int direction, bool crit)
bool isPerformingJump_Sail
bool ShouldDrawWingsThatAreAlwaysAnimated()
PlayerMovementAccsCache movementAbilitiesCache
void KeyDoubleTap(int keyDir)
void UpdateArmorSets(int i)
void TryToToggleSmartCursor(ref bool smartCursorWanted)
int titaniumStormCooldown
bool canJumpAgain_Santank
bool hasJumpOption_WallOfFleshGoat
void SlopingCollision(bool fallThrough, bool ignorePlats)
void WaterCollision(bool fallThrough, bool ignorePlats)
void UpdatePortableStoolUsage()
void HoneyCollision(bool fallThrough, bool ignorePlats)
void ItemCheck_ManageRightClickFeatures()
bool hasJumpOption_Basilisk
void UpdateTouchingTiles()
static float defaultGravity
void StopVanityActions(bool multiplayerBroadcast=true)
void CheckCrackedBrickBreak()
bool isOperatingAnotherEntity
int timeSinceLastDashStarted
bool isPerformingJump_WallOfFleshGoat
void UpdatePermanentBoosters()
void UpdateReleaseUseTile()
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
void UpdateControlHolds()
Vector2 instantMovementAccumulatedThisFrame
void ResetProjectileCaches()
PlayerEyeHelper eyeHelper
void TryBouncingBlocks(bool Falling)
void DryCollision(bool fallThrough, bool ignorePlats)
void TryOpeningFullscreenMap()
void FloorVisuals(bool Falling)
void UpdateSocialShadow()
SelectionRadial CircularRadial
void TryLandingOnDetonator()
void ShimmerCollision(bool fallThrough, bool ignorePlats, bool noCollision)
DirectionalInputSyncCache LocalInputCache
void UpdateNearbyInteractibleProjectilesList()
void UpdateAdvancedShadows()
int[] ownedProjectileCounts
bool hasJumpOption_Blizzard
void UpdateTeleportVisuals()
int[] holdDownCardinalTimer
Vector2 fullRotationOrigin
void RefreshDoubleJumps()
void WingFrame(bool wingFlap)
bool isPerformingJump_Unicorn
bool canJumpAgain_WallOfFleshGoat
PlayerInteractionAnchor tileEntityAnchor
static bool DisableLeftShiftTrashCan
static Color Lerp(Color value1, Color value2, float amount)
bool Intersects(Rectangle value)
bool Contains(int x, int y)
static float Distance(Vector2 value1, Vector2 value2)
TileEntity GetTileEntity()
void CopyFrom(Player player)
void PasteInto(Player player)
void Update(Player player)
void UpdateSitting(Player player)
void UpdateState(Player player)
void Update(Player player)