91591 {
91592
91593
91594
91595
91596 if (Main.netMode != 1)
91597 {
91601 {
91603 }
91606 for (
int i = 0; i <
maxBuffs; i++)
91607 {
91610 }
91627 {
91630 }
91632 {
91634 }
91636 {
91638 }
91641 {
91642 case 107:
91643 case 108:
91644 case 124:
91645 case 353:
91646 case 369:
91647 case 550:
91648 case 588:
91649 case 679:
91650 case 680:
91651 case 683:
91652 case 684:
91654 break;
91655 }
91657 if (Main.netMode == 2)
91658 {
91660 NetMessage.SendData(23, -1, -1,
null,
whoAmI);
91661 NetMessage.SendData(54, -1, -1,
null,
whoAmI);
91662 }
91666 {
91668 WorldGen.CheckAchievement_RealEstateAndTownSlimes();
91669 }
91671 }
91672 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
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 GiveTownUniqueDataToNPCsThatNeedIt(int Type, int nextNPC)
static readonly int maxBuffs
int lifeMax
The maximum life of this NPC.
void TargetClosest(bool faceTarget=true)
void UpdateHomeTileState(bool homeless, int x, int y)
float value
How many copper coins the NPC will drop when killed (100 copper coins = 1 silver coin etc....
void SetDefaultsKeepPlayerInteraction(int Type)
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
void TransformVisuals(int oldType, int newType)
float shimmerTransparency
int life
The current life of the NPC. Automatically set to the value of F:Terraria.NPC.lifeMax at the end of S...