37627 {
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
37640
37641
37642
37643
37644
37645
37646
37647
37648
37649
37650
37651
37652
37653
37654
37656 {
37657 return;
37658 }
37663 {
37664 return;
37665 }
37667 {
37669 }
37671 {
37673 }
37675 {
37677 }
37678 if (
whoAmI == Main.myPlayer)
37679 {
37681 }
37683 {
37685 }
37686 else
37687 {
37689 }
37695 if (Main.myPlayer ==
whoAmI)
37696 {
37699 }
37700 if (Main.myPlayer ==
whoAmI)
37701 {
37703 }
37704 if (Main.myPlayer ==
whoAmI)
37705 {
37706 Main.mapFullscreen = false;
37707 }
37708 if (Main.myPlayer ==
whoAmI)
37709 {
37712 {
37713 for (int i = 0; i < 59; i++)
37714 {
37716 {
37721 Main.item[
num].velocity.Y = (float)Main.rand.Next(-20, 1) * 0.2f;
37722 Main.item[
num].velocity.X = (float)Main.rand.Next(-20, 21) * 0.2f;
37723 Main.item[
num].noGrabDelay = 100;
37724 Main.item[
num].favorited =
false;
37725 Main.item[
num].newAndShiny =
false;
37726 if (Main.netMode == 1)
37727 {
37728 NetMessage.SendData(21, -1, -1,
null,
num);
37729 }
37731 }
37732 }
37733 }
37735 {
37737 }
37739 {
37742 }
37743 }
37745 {
37746 if (Main.dontStarveWorld || Main.tenthAnniversaryWorld)
37747 {
37750 }
37751 else
37752 {
37754 }
37755 }
37756 if (Main.tenthAnniversaryWorld)
37757 {
37758 for (
int j = 0;
j < 85;
j++)
37759 {
37760 int type = Main.rand.Next(139, 143);
37762 Main.dust[
num2].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
37763 Main.dust[
num2].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
37764 Main.dust[
num2].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
37765 Main.dust[
num2].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
37766 Main.dust[
num2].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
37767 Main.dust[
num2].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
37768 Main.dust[
num2].scale *= 1
f + (float)Main.rand.Next(-30, 31) * 0.01f;
37769 }
37770 for (
int k = 0;
k < 40;
k++)
37771 {
37772 int type2 = Main.rand.Next(276, 283);
37774 Main.gore[
num3].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
37775 Main.gore[
num3].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
37776 Main.gore[
num3].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
37777 Main.gore[
num3].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
37778 Main.gore[
num3].scale *= 1
f + (float)Main.rand.Next(-20, 21) * 0.01f;
37779 Main.gore[
num3].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
37780 Main.gore[
num3].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
37781 }
37782 }
37783 headVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
37784 bodyVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
37785 legVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f;
37786 headVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 *
hitDirection);
37787 bodyVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 *
hitDirection);
37788 legVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 *
hitDirection);
37790 {
37794 }
37796 {
37797 for (
int l = 0;
l < 100;
l++)
37798 {
37800 {
37802 }
37804 {
37807 }
37809 {
37812 }
37813 else
37814 {
37816 }
37817 }
37818 }
37825 {
37827 }
37832 if (Main.netMode == 2)
37833 {
37835 }
37836 else if (Main.netMode == 0)
37837 {
37838 Main.NewText(
deathText.ToString(), 225, 25, 25);
37839 }
37840 if (Main.netMode == 1 &&
whoAmI == Main.myPlayer)
37841 {
37843 }
37845 {
37847 {
37849 }
37850 else
37851 {
37854 }
37855 }
37857 if (
whoAmI != Main.myPlayer)
37858 {
37859 return;
37860 }
37861 try
37862 {
37864 }
37865 catch
37866 {
37867 }
37868 }
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 ...
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
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 HandleSpecialEvent(Player player, int eventID)
static ArmorShaderDataSet Armor
static readonly SoundStyle DSTFemaleHurt
int stack
The current stack of the item. F:Terraria.Item.maxStack indicates the max possible stack.
void SetDefaults(int Type=0)
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Represents text that will be sent over the network in multiplayer and displayed to the receiving user...
static bool PreKill(Player player, double damage, int hitDirection, bool pvp, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource)
static void Kill(Player player, double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource)
This is where all ModPlayer hooks are gathered and called.
void Dismount(Player mountedPlayer)
string name
This player's displayed name. Usually capped at 20 characters.
int GetRespawnTime(bool pvp)
int _framesLeftEligibleForDeadmansChestDeathAchievement
void EndOngoingTorchGodEvent()
IEntitySource GetItemSource_Death()
void DropTombstone(long coinsOwned, NetworkText deathText, int hitDirection)
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
void StopVanityActions(bool multiplayerBroadcast=true)
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
This data type describes in detail how a sound should be played. Passable to the M:Terraria....