35702 {
35703 Main.LocalPlayer.creativeInterface = false;
35705 bool flag = false;
35707 {
35709 {
35711 nPC.SetDefaults(664);
35712 Main.BestiaryTracker.Kills.RegisterKill(
nPC);
35713 }
35715 {
35718 {
35719 flag = true;
35720 }
35721 }
35722 }
35724 if (
whoAmI == Main.myPlayer)
35725 {
35727 }
35728 if (
whoAmI == Main.myPlayer)
35729 {
35730 if (Main.mapTime < 5)
35731 {
35732 Main.mapTime = 5;
35733 }
35734 Main.instantBGTransitionCounter = 10;
35737 {
35740 }
35741 Main.maxQ = true;
35742 NPC.ResetNetOffsets();
35743 }
35744 if (Main.netMode == 1 &&
whoAmI == Main.myPlayer)
35745 {
35746 NetMessage.SendData(12, -1, -1, null, Main.myPlayer, (int)(byte)context);
35747 }
35756 if (!flag)
35757 {
35759 {
35763 {
35765 }
35768 {
35771 }
35772 }
35776 }
35780 {
35784 }
35785 else
35786 {
35788 }
35794 velocity.X = 0f;
35795 velocity.Y = 0f;
35797 for (
int i = 0;
i < 3;
i++)
35798 {
35800 }
35803 if (
whoAmI == Main.myPlayer)
35804 {
35805 Main.npcChatCornerItem = 0;
35806 }
35807 if (!flag)
35808 {
35810 {
35814 }
35816 {
35818 }
35819 else
35820 {
35822 }
35824 {
35826 }
35827 }
35828 if (
whoAmI == Main.myPlayer)
35829 {
35832 {
35833 Main.SetCameraLerp(0.1f, 0);
35835 }
35836 else
35837 {
35838 Main.BlackFadeIn = 255;
35840 Main.screenLastPosition = Main.screenPosition;
35841 Main.instantBGTransitionCounter = 10;
35842 }
35844 {
35845 Main.renderNow = true;
35846 }
35847 if (Main.netMode == 1)
35848 {
35849 Netplay.AddCurrentServerToRecentList();
35850 }
35851 if (
true && !
flag2)
35852 {
35853 Main.screenPosition.X = position.X + (float)(
width / 2) - (float)(Main.screenWidth / 2);
35854 Main.screenPosition.Y = position.Y + (float)(
height / 2) - (float)(Main.screenHeight / 2);
35856 }
35857 }
35858 if (flag)
35859 {
35861 }
35864 {
35866 }
35868 {
35869 Main.ReleaseHostAndPlayProcess();
35872 Main.LocalGolfState.SetScoreTime();
35873 Main.ActivePlayerFileData.StartPlayTimer();
35874 Hooks.EnterWorld(
whoAmI);
35875 }
35876 }
void SetTalkNPC(int npcIndex, bool fromNet=false)
RabbitOrderFrameHelper rabbitOrderFrame
void UpdateGraveyard(bool now=false)
bool unlockedBiomeTorches
void Spawn_SetPosition(int floorX, int floorY)
void RefreshItems(bool onlyIfVariantChanged=true)
static bool CheckSpawn(int x, int y)
int _funkytownAchievementCheckCooldown
void SetPlayerDataToOutOfClassFields()
void StopVanityActions(bool multiplayerBroadcast=true)
void UpdateSocialShadow()
Vector2 BlehOldPositionFixer
void Spawn_SetPositionAtWorldSpawn()
static void AdjustRespawnTimerForWorldJoining(Player newPlayer)
void ResetAdvancedShadows()
static float Distance(Vector2 value1, Vector2 value2)