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

◆ TileMergeAttemptWeird()

static void Terraria.WorldGen.TileMergeAttemptWeird ( int myType,
int changeTo,
bool[] exclude,
ref int up,
ref int down,
ref int left,
ref int right,
ref int upLeft,
ref int upRight,
ref int downLeft,
ref int downRight )
inlinestatic

Definition at line 71323 of file WorldGen.cs.

71324 {
71325 if (up > -1 && !exclude[up] && up != myType)
71326 {
71327 up = changeTo;
71328 }
71329 if (down > -1 && !exclude[down] && down != myType)
71330 {
71331 down = changeTo;
71332 }
71333 if (left > -1 && !exclude[left] && left != myType)
71334 {
71335 left = changeTo;
71336 }
71337 if (right > -1 && !exclude[right] && right != myType)
71338 {
71339 right = changeTo;
71340 }
71341 if (upLeft > -1 && !exclude[upLeft] && upLeft != myType)
71342 {
71343 upLeft = changeTo;
71344 }
71345 if (upRight > -1 && !exclude[upRight] && upRight != myType)
71346 {
71347 upRight = changeTo;
71348 }
71349 if (downLeft > -1 && !exclude[downLeft] && downLeft != myType)
71350 {
71352 }
71353 if (downRight > -1 && !exclude[downRight] && downRight != myType)
71354 {
71356 }
71357 }