110541 {
110542
110545 {
110547 }
110549 {
110552 {
110554 if (Main.remixWorld && !
friendly)
110555 {
110557 }
110558 else
110559 {
110562 if (Main.netMode == 2)
110563 {
110564 NetMessage.SendData(28, -1, -1,
null,
whoAmI, 50
f);
110565 }
110566 }
110567 }
110568 }
110570 }
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[] immune
This determines if an NPC can be hit by a item or projectile owned by a particular player (it is an a...
bool friendly
Indicates that an NPC is friendly to players. If true, a player won't damage the NPC and the NPC won'...
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
int StrikeNPCNoInteraction(int Damage, float knockBack, int hitDirection)
void AddBuff(int type, int time, bool quiet=false)
Gives this NPC the provided buff. This accounts for if the NPC is immune to the buff....