Terraria v1.4.4.9
Terraria 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 45532 of file WorldGen.cs.

45533 {
45534 style = -1;
45535 if (style == -1 && SolidTileAllowBottomSlope(x, y + 1))
45536 {
45537 style = 0;
45538 }
45539 if (style == -1 && SolidTileAllowBottomSlope(x, y - 1))
45540 {
45541 style = 1;
45542 }
45543 if (style == -1 && SolidTileAllowBottomSlope(x + 1, y))
45544 {
45545 style = 2;
45546 }
45547 if (style == -1 && SolidTileAllowBottomSlope(x - 1, y))
45548 {
45549 style = 3;
45550 }
45551 if (style == -1 && wall > 0)
45552 {
45553 style = 4;
45554 }
45555 return style > -1;
45556 }
static bool SolidTileAllowBottomSlope(int i, int j)