112170 {
112171
112172
112173
112174
112176 if (Main.netMode != 1)
112177 {
112179 {
112181 {
112185 {
112189 if (
life % 24 < 2)
112190 {
112192 }
112194 {
112197 if (Main.netMode != 0)
112198 {
112199 NetMessage.SendData(28, -1, -1,
null,
whoAmI, 2
f);
112200 }
112201 }
112202 }
112203 }
112204 }
112205 else
112206 {
112209 {
112211 }
112213 }
112214 }
112216 {
112220 {
112222 }
112224 }
112225 }
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.
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
int life
The current life of the NPC. Automatically set to the value of F:Terraria.NPC.lifeMax at the end of S...
int StrikeNPCNoInteraction(int Damage, float knockBack, int hitDirection)