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

◆ AttemptReorientingStinkbugBlocker()

static bool Terraria.WorldGen.AttemptReorientingStinkbugBlocker ( int x,
int y,
int wall,
ref int style )
inlinestatic

Definition at line 47957 of file WorldGen.cs.

47958 {
47959 style = -1;
47960 if (style == -1 && SolidTileAllowBottomSlope(x, y + 1))
47961 {
47962 style = 0;
47963 }
47964 if (style == -1 && SolidTileAllowBottomSlope(x, y - 1))
47965 {
47966 style = 1;
47967 }
47968 if (style == -1 && SolidTileAllowBottomSlope(x + 1, y))
47969 {
47970 style = 2;
47971 }
47972 if (style == -1 && SolidTileAllowBottomSlope(x - 1, y))
47973 {
47974 style = 3;
47975 }
47976 if (style == -1 && wall > 0)
47977 {
47978 style = 4;
47979 }
47980 return style > -1;
47981 }
static bool SolidTileAllowBottomSlope(int i, int j)