Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetAdjustedFloorPosition()

static Point Terraria.WorldGen.GetAdjustedFloorPosition ( int x,
int y )
inlinestaticprivate

Definition at line 16793 of file WorldGen.cs.

16794 {
16795 int num = x - 1;
16796 int num2 = y - 2;
16797 bool isEmpty = false;
16798 bool hasFloor = false;
16799 while (!isEmpty && num2 > Main.spawnTileY - 10)
16800 {
16802 if (!isEmpty)
16803 {
16804 num2--;
16805 }
16806 }
16807 while (!hasFloor && num2 < Main.spawnTileY + 10)
16808 {
16810 if (!hasFloor)
16811 {
16812 num2++;
16813 }
16814 }
16815 return new Point(num + 1, num2 + 2);
16816 }
static void Scan3By3(int topLeftX, int topLeftY, out bool isEmpty, out bool hasFloor)

References Terraria.Main.spawnTileY.