56 Point coords = (player.Bottom +
new Vector2(0f, -2f)).ToTileCoordinates();
57 if (!
GetSittingTargetInfo(player, coords.
X, coords.
Y, out var targetDirection, out var _, out var seatDownOffset, out var extraInfo))
95 if (!
GetSittingTargetInfo(player, x, y, out var targetDirection, out var playerSittingPosition, out var seatDownOffset, out var extraInfo))
103 flag &=
Main.
sittingManager.GetNextPlayerStackIndexInCoords((playerSittingPosition +
new Vector2(0f, -2f)).ToTileCoordinates()) < 2;
120 player.Bottom = playerSittingPosition;
142 playerSittingPosition =
default(
Vector2);
151 switch (tileSafely.
type)
156 bool num6 = tileSafely.type == 15 && (tileSafely.frameY / 40 == 1 || tileSafely.frameY / 40 == 20);
157 bool value = tileSafely.type == 15 && tileSafely.frameY / 40 == 27;
158 seatDownOffset.Y = value.ToInt() * 4;
159 if (tileSafely.
frameY % 40 != 0)
163 targetDirection = -1;
164 if (tileSafely.
frameX != 0)
168 if (num6 || tileSafely.
type == 497)
170 extraInfo.IsAToilet =
true;
176 int num4 = tileSafely.frameX / 18;
185 int num5 = tileSafely.frameY / 18;
204 int num7 = tileSafely.frameX % 72 / 18;
213 if (tileSafely.
frameY / 18 != 0)
217 targetDirection = (num7 <= 1).ToDirectionInt();
219 seatDownOffset.Y -= 1f;
232 switch (tileSafely.
frameX / 54)
235 vector3.Y = (vector.Y = (vector2.Y = 1f));
259 vector3.Y = (vector.Y = (vector2.Y = 1f));
275 vector3.Y = (vector.Y = (vector2.Y = 0f));
278 vector3.Y = (vector.Y = (vector2.Y = -1f));
288 if (tileSafely.
frameY % 40 != 0)
292 if ((tileSafely.
frameX % 54 == 0 && targetDirection == -1) || (tileSafely.frameX % 54 == 36 && targetDirection == 1))
294 seatDownOffset = vector;
296 else if ((tileSafely.
frameX % 54 == 0 && targetDirection == 1) || (tileSafely.frameX % 54 == 36 && targetDirection == -1))
298 seatDownOffset = vector2;
302 seatDownOffset = vector3;
304 seatDownOffset += zero2;
308 playerSittingPosition =
new Point(num, num2 + 1).ToWorldCoordinates(8f, 16f);
309 playerSittingPosition.X += targetDirection * num3;
310 playerSittingPosition += zero;