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

◆ PlatformProperTopFrame()

static bool Terraria.WorldGen.PlatformProperTopFrame ( short frameX)
inlinestatic

Definition at line 60708 of file WorldGen.cs.

60709 {
60710 int num = frameX / TileObjectData.PlatformFrameWidth();
60711 if ((num < 0 || num > 7) && (num < 12 || num > 16))
60712 {
60713 if (num >= 25)
60714 {
60715 return num <= 26;
60716 }
60717 return false;
60718 }
60719 return true;
60720 }

References Terraria.ObjectData.TileObjectData.PlatformFrameWidth().

Referenced by Terraria.TileObject.CanPlace().