35568 {
35569 try
35570 {
35573 if (Style != 10)
35574 {
35576 }
35579 {
35584 }
35586 if (Style == 4)
35587 {
35589 }
35590 if (Style == 9)
35591 {
35594 }
35601 if (Style == 8)
35602 {
35605 }
35607 if (
whoAmI == Main.myPlayer)
35608 {
35609 bool flag = false;
35610 if (
num2 <
new Vector2(Main.screenWidth, Main.screenHeight).
Length() / 2f + 100f)
35611 {
35612 int time = 0;
35613 if (Style == 1)
35614 {
35615 time = 10;
35616 }
35617 Main.SetCameraLerp(0.1f, time);
35618 flag = true;
35619 }
35620 else
35621 {
35622 NPC.ResetNetOffsets();
35623 Main.BlackFadeIn = 255;
35624 Lighting.Clear();
35625 Main.screenLastPosition = Main.screenPosition;
35626 Main.screenPosition.X = position.X + (float)(
width / 2) - (float)(Main.screenWidth / 2);
35627 Main.screenPosition.Y = position.Y + (float)(
height / 2) - (float)(Main.screenHeight / 2);
35628 Main.instantBGTransitionCounter = 10;
35630 }
35631 if (num > 0.1f || !flag || Style != 0)
35632 {
35633 if (Main.mapTime < 5)
35634 {
35635 Main.mapTime = 5;
35636 }
35637 Main.maxQ = true;
35638 Main.renderNow = true;
35639 }
35640 }
35641 if (Style == 4)
35642 {
35647 }
35650 for (
int i = 0;
i < 3;
i++)
35651 {
35653 }
35658 }
35659 catch
35660 {
35661 }
35662 }
static float Clamp(float value, float min, float max)
static void PlaySound(int type, Vector2 position, int style=1)
static void UpdatePlayerPosition(Player player)
static readonly LegacySoundStyle Item6
int environmentBuffImmunityTimer
int lastTeleportPylonStyleUsed
int _funkytownAchievementCheckCooldown
void RemoveAllGrapplingHooks()
void StopVanityActions(bool multiplayerBroadcast=true)
void UpdateSocialShadow()
Vector2 BlehOldPositionFixer
void ResetAdvancedShadows()
static float Distance(Vector2 value1, Vector2 value2)