public void UpdateDead()
{
this._portalPhysicsTime = 0;
this.MountFishronSpecialCounter = 0.0f;
this.gem = -1;
this.slippy = false;
this.slippy2 = false;
this.powerrun = false;
this.wings = 0;
this.wingsLogic = 0;
this.face = this.neck = this.back = this.front = this.handoff = this.handon = this.shoe = this.waist = this.balloon = this.shield = (sbyte)0;
this.poisoned = false;
this.venom = false;
this.onFire = false;
this.dripping = false;
this.drippingSlime = false;
this.burned = false;
this.suffocating = false;
this.onFire2 = false;
this.onFrostBurn = false;
this.blind = false;
this.blackout = false;
this.loveStruck = false;
this.dryadWard = false;
this.stinky = false;
this.resistCold = false;
this.electrified = false;
this.moonLeech = false;
this.headcovered = false;
this.vortexDebuff = false;
this.setSolar = this.setVortex = this.setNebula = this.setStardust = false;
this.nebulaLevelDamage = this.nebulaLevelLife = this.nebulaLevelMana = 0;
this.trapDebuffSource = false;
this.yoraiz0rEye = 0;
this.yoraiz0rDarkness = false;
this.gravDir = 1f;
for (int index = 0; index < 22; ++index)
{
if (this.buffType[index] <= 0 || !Main.persistentBuff[this.buffType[index]])
{
this.buffTime[index] = 0;
this.buffType[index] = 0;
}
}
if (this.whoAmI == Main.myPlayer)
{
Main.npcChatText = "";
Main.editSign = false;
}
this.grappling[0] = -1;
this.grappling[1] = -1;
this.grappling[2] = -1;
this.sign = -1;
this.talkNPC = -1;
Main.npcChatCornerItem = 0;
this.statLife = 0;
this.channel = false;
this.potionDelay = 0;
this.chest = -1;
this.changeItem = -1;
this.itemAnimation = 0;
this.immuneAlpha += 2;
if (this.immuneAlpha > (int)byte.MaxValue)
this.immuneAlpha = (int)byte.MaxValue;
this.headPosition += this.headVelocity;
this.bodyPosition += this.bodyVelocity;
this.legPosition += this.legVelocity;
this.headRotation += this.headVelocity.X * 0.1f;
this.bodyRotation += this.bodyVelocity.X * 0.1f;
this.legRotation += this.legVelocity.X * 0.1f;
this.headVelocity.Y += 0.1f;
this.bodyVelocity.Y += 0.1f;
this.legVelocity.Y += 0.1f;
this.headVelocity.X *= 0.99f;
this.bodyVelocity.X *= 0.99f;
this.legVelocity.X *= 0.99f;
for (int index = 0; index < this.npcTypeNoAggro.Length; ++index)
this.npcTypeNoAggro[index] = false;
if ((int)this.difficulty == 2)
{
if (this.respawnTimer > 0)
{
--this.respawnTimer;
}
else
{
if (this.whoAmI != Main.myPlayer && Main.netMode != 2)
return;
this.ghost = true;
}
}
else
{
--this.respawnTimer;
if (this.respawnTimer > 0 || Main.myPlayer != this.whoAmI)
return;
if (Main.mouseItem.itemId > 0)
Main.playerInventory = true;
this.Spawn();
}
}