Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UpdateDead()

void Terraria.Player.UpdateDead ( )
inline

Definition at line 16766 of file Player.cs.

16767 {
16769 timeShimmering = 0;
16770 forcedGravity = 0;
16773 gem = -1;
16774 ownedLargeGems = (byte)0;
16777 wings = 0;
16778 wingsLogic = 0;
16780 poisoned = false;
16781 venom = false;
16782 onFire = false;
16783 dripping = false;
16784 drippingSlime = false;
16785 drippingSparkleSlime = false;
16786 hungry = false;
16787 heartyMeal = false;
16788 starving = false;
16789 burned = false;
16790 suffocating = false;
16791 onFire2 = false;
16792 onFire3 = false;
16793 onFrostBurn = false;
16794 onFrostBurn2 = false;
16795 shimmering = false;
16796 blind = false;
16797 blackout = false;
16798 loveStruck = false;
16799 dryadWard = false;
16800 stinky = false;
16801 resistCold = false;
16802 electrified = false;
16803 moonLeech = false;
16804 headcovered = false;
16805 vortexDebuff = false;
16806 windPushed = false;
16807 setForbidden = false;
16808 setMonkT3 = false;
16809 setHuntressT3 = false;
16810 setApprenticeT3 = false;
16811 setSquireT3 = false;
16813 setSolar = (setVortex = (setNebula = (setStardust = false)));
16815 trapDebuffSource = false;
16816 yoraiz0rEye = 0;
16817 yoraiz0rDarkness = false;
16818 hasFloatingTube = false;
16819 hasUnicornHorn = false;
16820 hasAngelHalo = false;
16821 hasRainbowCursor = false;
16822 leinforsHair = false;
16824 gravDir = 1f;
16825 for (int i = 0; i < maxBuffs; i++)
16826 {
16827 if (buffType[i] <= 0 || !Main.persistentBuff[buffType[i]])
16828 {
16829 buffTime[i] = 0;
16830 buffType[i] = 0;
16831 }
16832 }
16833 if (whoAmI == Main.myPlayer)
16834 {
16835 Main.npcChatText = "";
16836 Main.editSign = false;
16837 Main.npcChatCornerItem = 0;
16838 }
16839 numMinions = 0;
16840 grappling[0] = -1;
16841 grappling[1] = -1;
16842 grappling[2] = -1;
16843 sign = -1;
16844 SetTalkNPC(-1);
16845 statLife = 0;
16846 channel = false;
16847 potionDelay = 0;
16848 chest = -1;
16850 changeItem = -1;
16851 itemAnimation = 0;
16852 immuneAlpha += 2;
16853 if (immuneAlpha > 255)
16854 {
16855 immuneAlpha = 255;
16856 }
16860 headRotation += headVelocity.X * 0.1f;
16861 bodyRotation += bodyVelocity.X * 0.1f;
16862 legRotation += legVelocity.X * 0.1f;
16863 headVelocity.Y += 0.1f;
16864 bodyVelocity.Y += 0.1f;
16865 legVelocity.Y += 0.1f;
16866 headVelocity.X *= 0.99f;
16867 bodyVelocity.X *= 0.99f;
16868 legVelocity.X *= 0.99f;
16869 for (int j = 0; j < npcTypeNoAggro.Length; j++)
16870 {
16871 npcTypeNoAggro[j] = false;
16872 }
16873 if (difficulty == 2)
16874 {
16875 if (respawnTimer > 0)
16876 {
16877 respawnTimer = Utils.Clamp(respawnTimer - 1, 0, 3600);
16878 }
16879 else if (whoAmI == Main.myPlayer || Main.netMode == 2)
16880 {
16881 ghost = true;
16882 }
16883 }
16884 else
16885 {
16886 respawnTimer = Utils.Clamp(respawnTimer - 1, 0, 3600);
16887 if (respawnTimer <= 0 && Main.myPlayer == whoAmI)
16888 {
16889 if (Main.mouseItem.type > 0)
16890 {
16891 Main.playerInventory = true;
16892 }
16893 Spawn(PlayerSpawnContext.ReviveFromDeath);
16894 }
16895 }
16896 if (whoAmI == Main.myPlayer && !Main.drawingPlayerChat && !Main.editSign && !Main.editChest && !Main.blockInput)
16897 {
16898 PlayerInput.Triggers.Current.CopyInto(this);
16900 }
16901 }
static TriggersPack Triggers
Vector2 bodyVelocity
Definition Player.cs:1287
int nebulaLevelLife
Definition Player.cs:703
Vector2 headVelocity
Definition Player.cs:1285
void SetTalkNPC(int npcIndex, bool fromNet=false)
Definition Player.cs:3725
bool setApprenticeT3
Definition Player.cs:2395
bool electrified
Definition Player.cs:911
bool loveStruck
Definition Player.cs:905
BitsByte ownedLargeGems
Definition Player.cs:829
static readonly int maxBuffs
Definition Player.cs:1191
float bodyRotation
Definition Player.cs:1275
bool onFrostBurn2
Definition Player.cs:1897
int nebulaLevelDamage
Definition Player.cs:709
bool drippingSparkleSlime
Definition Player.cs:1917
Vector2 bodyPosition
Definition Player.cs:1281
int brainOfConfusionDodgeAnimationCounter
Definition Player.cs:919
bool hasFloatingTube
Definition Player.cs:2295
bool setForbiddenCooldownLocked
Definition Player.cs:2389
bool[] npcTypeNoAggro
Definition Player.cs:2547
bool trapDebuffSource
Definition Player.cs:2003
float legRotation
Definition Player.cs:1277
bool hasUnicornHorn
Definition Player.cs:1639
Vector2 legVelocity
Definition Player.cs:1289
void ResetVisibleAccessories()
Definition Player.cs:28887
float MountFishronSpecialCounter
Definition Player.cs:2557
void TryOpeningInGameOptionsBasedOnInput()
Definition Player.cs:16903
int nebulaLevelMana
Definition Player.cs:705
void ResetFloorFlags()
Definition Player.cs:22794
ShimmerUnstuckHelper shimmerUnstuckHelper
Definition Player.cs:1907
bool setHuntressT3
Definition Player.cs:2393
bool vortexDebuff
Definition Player.cs:2001
bool leinforsHair
Definition Player.cs:1645
int _portalPhysicsTime
Definition Player.cs:2551
Vector2 legPosition
Definition Player.cs:1283
int[] grappling
Definition Player.cs:2305
bool hasAngelHalo
Definition Player.cs:1641
float headRotation
Definition Player.cs:1273
bool drippingSlime
Definition Player.cs:1915
Vector2 headPosition
Definition Player.cs:1279
bool setForbidden
Definition Player.cs:2387
void Spawn(PlayerSpawnContext context)
Definition Player.cs:35701
bool resistCold
Definition Player.cs:909
bool yoraiz0rDarkness
Definition Player.cs:1637
bool hasRainbowCursor
Definition Player.cs:1643
int overrideFishingBobber
Definition Player.cs:1661
PlayerInteractionAnchor tileEntityAnchor
Definition Player.cs:2469

References Terraria.Main.blockInput, System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), Terraria.Main.drawingPlayerChat, Terraria.Main.editChest, Terraria.Main.editSign, Terraria.Main.mouseItem, Terraria.Main.myPlayer, Terraria.Main.netMode, Terraria.Main.persistentBuff, and Terraria.GameInput.PlayerInput.Triggers.