56169 {
56170
56171
56172
56173
56174
56175
56176
56177
56178
56179
56180
56181
56182
56183
56184
56185
56189 {
56191 }
56193 {
56194 flag &= tile.type != 15 || tile.frameY < 1080 || tile.frameY > 1098;
56195 }
56197 {
56198 Point point = (base.Bottom + Vector2.UnitY * -2
f).ToTileCoordinates();
56199 for (int i = 0; i < 200; i++)
56200 {
56201 if (Main.npc[i].active && Main.npc[i].aiStyle == 7 && Main.npc[i].townNPC && Main.npc[i].ai[0] == 5
f && (Main.npc[i].Bottom + Vector2.UnitY * -2
f).ToTileCoordinates() == point)
56202 {
56204 break;
56205 }
56206 }
56207 }
56209 {
56211 ai[1] = 900 + Main.rand.Next(10800);
56214 base.Bottom = bottom;
56218 }
56219 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
static bool[] IsTownSlime
If true for a given NPC type (F:Terraria.NPC.type), then that NPC is categorized as a town slime....
static bool[] CannotSitOnFurniture
Whether or not a given NPC can sit on suitable furniture (F:Terraria.ID.TileID.Sets....
static bool[] CanBeSatOnForNPCs
float[] localAI
Acts like F:Terraria.NPC.ai, but does not sync to the server. Many vanilla T:Terraria....
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
void SitDown(Point anchorTilePosition, out int direction, out Vector2 bottom)
Helper method for getting the parameters for seating a town NPC. Assumes the tile at anchorTilePositi...
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....