53294 {
53296 {
53297 return;
53298 }
53299 if (
sItem.useStyle == 0)
53300 {
53302 }
53304 {
53305 return;
53306 }
53309 if (!Main.tile[
num,
num2].active() || (Main.tile[
num,
num2].type != 128 && Main.tile[
num,
num2].type != 269))
53310 {
53311 return;
53312 }
53313 int frameY = Main.tile[
num,
num2].frameY;
53315 if (
sItem.bodySlot >= 0)
53316 {
53318 }
53319 if (
sItem.legSlot >= 0)
53320 {
53322 }
53323 frameY /= 18;
53324 while (
num3 > frameY)
53325 {
53327 frameY = Main.tile[
num,
num2].frameY;
53328 frameY /= 18;
53329 }
53330 while (
num3 < frameY)
53331 {
53333 frameY = Main.tile[
num,
num2].frameY;
53334 frameY /= 18;
53335 }
53338 {
53339 }
53341 {
53343 }
53347 if (Main.netMode == 1)
53348 {
53349 NetMessage.SendData(17, -1, -1,
null, 0,
num,
num2, 1
f);
53350 }
53351 while (
num5 >= 100)
53352 {
53354 }
53355 if (frameY == 0 &&
sItem.headSlot >= 0)
53356 {
53357 Main.blockMouse = true;
53359 if (Main.netMode == 1)
53360 {
53361 NetMessage.SendTileSquare(-1,
num,
num2);
53362 }
53364 if (
sItem.stack <= 0)
53365 {
53366 sItem.SetDefaults();
53367 Main.mouseItem.SetDefaults();
53368 }
53370 {
53371 Main.mouseItem =
sItem.Clone();
53372 }
53375 }
53376 else if (frameY == 1 &&
sItem.bodySlot >= 0)
53377 {
53378 Main.blockMouse = true;
53380 if (Main.netMode == 1)
53381 {
53382 NetMessage.SendTileSquare(-1,
num,
num2);
53383 }
53385 if (
sItem.stack <= 0)
53386 {
53387 sItem.SetDefaults();
53388 Main.mouseItem.SetDefaults();
53389 }
53391 {
53392 Main.mouseItem =
sItem.Clone();
53393 }
53396 }
53398 {
53399 Main.blockMouse = true;
53401 if (Main.netMode == 1)
53402 {
53403 NetMessage.SendTileSquare(-1,
num,
num2);
53404 }
53406 if (
sItem.stack <= 0)
53407 {
53408 sItem.SetDefaults();
53409 Main.mouseItem.SetDefaults();
53410 }
53412 {
53413 Main.mouseItem =
sItem.Clone();
53414 }
53417 }
53418 }
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 List< int > MannequinIncompatible
Unused. Used for old (Womm)annequins (F:Terraria.ID.TileID.Mannequin).