Definition at line 36320 of file Player.cs.
36321 {
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338
36339
36340
36341
36342 try
36343 {
36346 if (Style != 10)
36347 {
36349 }
36352 {
36357 }
36359 if (Style == 4)
36360 {
36362 }
36363 if (Style == 9)
36364 {
36367 }
36374 if (Style == 8)
36375 {
36378 }
36380 if (
whoAmI == Main.myPlayer)
36381 {
36383 Vector2
val =
new Vector2((
float)Main.screenWidth, (
float)Main.screenHeight);
36385 {
36386 int time = 0;
36387 if (Style == 1)
36388 {
36389 time = 10;
36390 }
36391 Main.SetCameraLerp(0.1
f, time);
36393 }
36394 else
36395 {
36396 NPC.ResetNetOffsets();
36397 Main.BlackFadeIn = 255;
36398 Lighting.Clear();
36399 Main.screenLastPosition = Main.screenPosition;
36400 Main.screenPosition.X = position.X + (float)(
width / 2) - (float)(Main.screenWidth / 2);
36401 Main.screenPosition.Y = position.Y + (float)(
height / 2) - (float)(Main.screenHeight / 2);
36402 Main.instantBGTransitionCounter = 10;
36404 }
36405 if (
num > 0.1
f || !
flag || Style != 0)
36406 {
36407 if (Main.mapTime < 5)
36408 {
36409 Main.mapTime = 5;
36410 }
36411 Main.maxQ = true;
36412 Main.renderNow = true;
36413 }
36414 }
36415 if (Style == 4)
36416 {
36421 }
36424 for (int i = 0; i < 3; i++)
36425 {
36427 }
36432 }
36433 catch
36434 {
36435 }
36436 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static void UpdatePlayerPosition(Player player)
static readonly SoundStyle Item6
int environmentBuffImmunityTimer
int lastTeleportPylonStyleUsed
int _funkytownAchievementCheckCooldown
void RemoveAllGrapplingHooks()
void StopVanityActions(bool multiplayerBroadcast=true)
void UpdateSocialShadow()
Vector2 BlehOldPositionFixer
void ResetAdvancedShadows()
void ClearBuff(int type)
Removes the provided buff type from the player and shuffles the remaining buff indexes down to fill t...
References Terraria.Player._funkytownAchievementCheckCooldown, Terraria.Player.BlehOldPositionFixer, Terraria.Lighting.Clear(), Terraria.Player.ClearBuff(), Terraria.Player.environmentBuffImmunityTimer, Terraria.Player.fallStart, Terraria.Player.ForceUpdateBiomes(), Terraria.Player.getRect(), Terraria.Player.gravity, Terraria.Entity.height, Terraria.ID.SoundID.Item6, Terraria.Player.lastPortalColorIndex, Terraria.Player.lastTeleportPylonStyleUsed, Terraria.Main.mapTime, Terraria.Main.myPlayer, Terraria.Entity.oldPosition, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Player.portalPhysicsFlag, Terraria.Entity.position, Terraria.Player.RemoveAllGrapplingHooks(), Terraria.Player.ResetAdvancedShadows(), Terraria.NPC.ResetNetOffsets(), Terraria.Main.screenHeight, Terraria.Main.screenPosition, Terraria.Main.screenWidth, Terraria.Main.SetCameraLerp(), Terraria.Player.shimmering, Terraria.Entity.shimmerWet, Terraria.Player.StopVanityActions(), Terraria.Main.TeleportEffect(), Terraria.Player.teleportStyle, Terraria.Player.teleportTime, Terraria.GameContent.PressurePlateHelper.UpdatePlayerPosition(), Terraria.Player.UpdateSocialShadow(), Terraria.Entity.wet, Terraria.Entity.whoAmI, and Terraria.Entity.width.
Referenced by Terraria.Player.DemonConch(), Terraria.Player.DoPotionOfReturnReturnToOriginalUsePosition(), Terraria.Player.DoQueenSlimeHookTeleport(), Terraria.GameContent.TeleportPylonsSystem.HandleTeleportRequest(), Terraria.Player.ItemCheck_UseTeleportRod(), Terraria.Player.MagicConch(), Terraria.Player.Shellphone_Spawn(), Terraria.Player.ShimmerUnstuck(), Terraria.Player.TeleportationPotion(), Terraria.GameContent.PortalHelper.TryGoingThroughPortals(), and Terraria.Player.UnityTeleport().