36666 {
36668 {
36669 return;
36670 }
36673 {
36675 }
36677 {
36679 }
36681 {
36683 }
36684 if (
whoAmI == Main.myPlayer)
36685 {
36687 }
36689 {
36691 }
36692 else
36693 {
36695 }
36701 if (Main.myPlayer ==
whoAmI)
36702 {
36705 }
36706 if (Main.myPlayer ==
whoAmI)
36707 {
36709 }
36710 if (Main.myPlayer ==
whoAmI)
36711 {
36712 Main.mapFullscreen = false;
36713 }
36714 if (Main.myPlayer ==
whoAmI)
36715 {
36718 {
36719 for (
int i = 0;
i < 59;
i++)
36720 {
36722 {
36724 Main.item[num].netDefaults(
inventory[i].netID);
36727 Main.item[num].velocity.Y = (float)Main.rand.Next(-20, 1) * 0.2f;
36728 Main.item[num].velocity.X = (float)Main.rand.Next(-20, 21) * 0.2f;
36729 Main.item[num].noGrabDelay = 100;
36730 Main.item[num].favorited = false;
36731 Main.item[num].newAndShiny = false;
36732 if (Main.netMode == 1)
36733 {
36734 NetMessage.SendData(21, -1, -1, null, num);
36735 }
36737 }
36738 }
36739 }
36741 {
36743 }
36745 {
36748 }
36749 }
36750 if (Main.dontStarveWorld || Main.tenthAnniversaryWorld)
36751 {
36753 }
36754 else
36755 {
36757 }
36758 if (Main.tenthAnniversaryWorld)
36759 {
36760 for (
int j = 0;
j < 85;
j++)
36761 {
36762 int type = Main.rand.Next(139, 143);
36764 Main.dust[
num2].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
36765 Main.dust[
num2].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
36766 Main.dust[
num2].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
36767 Main.dust[
num2].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
36768 Main.dust[
num2].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
36769 Main.dust[
num2].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
36770 Main.dust[
num2].scale *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f;
36771 }
36772 for (
int k = 0;
k < 40;
k++)
36773 {
36774 int type2 = Main.rand.Next(276, 283);
36776 Main.gore[
num3].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
36777 Main.gore[
num3].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
36778 Main.gore[
num3].velocity.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
36779 Main.gore[
num3].velocity.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
36780 Main.gore[
num3].scale *= 1f + (float)Main.rand.Next(-20, 21) * 0.01f;
36781 Main.gore[
num3].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
36782 Main.gore[
num3].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
36783 }
36784 }
36785 headVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
36786 bodyVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
36787 legVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
36788 headVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 *
hitDirection);
36789 bodyVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 *
hitDirection);
36790 legVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 *
hitDirection);
36792 {
36796 }
36797 for (
int l = 0;
l < 100;
l++)
36798 {
36800 {
36802 }
36804 {
36807 }
36809 {
36812 }
36813 else
36814 {
36816 }
36817 }
36823 {
36825 }
36830 if (Main.netMode == 2)
36831 {
36833 }
36834 else if (Main.netMode == 0)
36835 {
36836 Main.NewText(
deathText.ToString(), 225, 25, 25);
36837 }
36838 if (Main.netMode == 1 &&
whoAmI == Main.myPlayer)
36839 {
36841 }
36843 {
36845 {
36847 }
36848 else
36849 {
36852 }
36853 }
36855 if (
whoAmI != Main.myPlayer)
36856 {
36857 return;
36858 }
36859 try
36860 {
36862 }
36863 catch
36864 {
36865 }
36866 }
static void PlaySound(int type, Vector2 position, int style=1)
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
static void HandleSpecialEvent(Player player, int eventID)
static ArmorShaderDataSet Armor
static readonly LegacySoundStyle DSTMaleHurt
void SetDefaults(int Type=0)
void Dismount(Player mountedPlayer)
int GetRespawnTime(bool pvp)
int _framesLeftEligibleForDeadmansChestDeathAchievement
void EndOngoingTorchGodEvent()
IEntitySource GetItemSource_Death()
void DropTombstone(long coinsOwned, NetworkText deathText, int hitDirection)
void StopVanityActions(bool multiplayerBroadcast=true)