60963 {
60965 {
60966 return;
60967 }
60968 int num =
genRand.Next(6, 12);
60973 {
60974 return;
60975 }
60976 int num5 =
j - num;
60978 for (
int k = 0;
k < 2;
k++)
60979 {
60980 bool flag = true;
60986 {
60990 }
60991 while (flag)
60992 {
60994 {
60996 }
60998 {
61000 }
61001 for (
int l = 0;
l < 2;
l++)
61002 {
61008 {
61012 }
61014 {
61016 {
61019 }
61021 {
61023 }
61025 {
61027 }
61029 {
61032 {
61034 }
61036 {
61038 }
61040 {
61042 }
61044 {
61046 }
61048 {
61050 }
61051 else
61052 {
61055 }
61056 }
61057 else
61058 {
61062 }
61066 {
61068 {
61071 }
61073 }
61074 }
61075 }
61079 {
61085 {
61089 {
61092 }
61094 {
61096 }
61097 }
61101 {
61105 {
61108 }
61110 {
61112 }
61113 }
61115 {
61117 {
61119 }
61120 else
61121 {
61123 }
61124 }
61125 else if (
num15 > num)
61126 {
61128 }
61129 else
61130 {
61132 }
61133 }
61135 {
61136 flag = false;
61137 }
61138 }
61139 }
61145 {
61147 {
61148 if (Main.tile[
m,
n].wall == 27 && !Main.tile[
m,
n].active())
61149 {
61150 if (Main.tile[
m - 1,
n].wall != 27 &&
m < i && !
SolidTile(
m - 1,
n))
61151 {
61153 Main.tile[
m,
n].wall = 0;
61154 }
61155 if (Main.tile[
m + 1,
n].wall != 27 &&
m > i && !
SolidTile(
m + 1,
n))
61156 {
61158 Main.tile[
m,
n].wall = 0;
61159 }
61161 {
61163 {
61165 {
61167 }
61168 }
61169 }
61170 }
61171 if (Main.tile[
m,
n].type == 30 && Main.tile[
m - 1,
n].wall == 27 && Main.tile[
m + 1,
n].wall == 27 && (Main.tile[
m,
n - 1].wall == 27 || Main.tile[
m,
n - 1].active()) && (Main.tile[
m,
n + 1].wall == 27 || Main.tile[
m,
n + 1].active()))
61172 {
61173 Main.tile[
m,
n].active(active:
false);
61174 Main.tile[
m,
n].wall = 27;
61175 }
61176 }
61177 }
61179 {
61181 {
61183 {
61185 {
61188 }
61190 {
61195 }
61197 {
61200 }
61201 }
61202 }
61203 }
61205 {
61207 {
61208 bool flag4 =
false;
61210 {
61213 {
61215 {
61220 {
61223 }
61227 {
61229 {
61233 {
61235 {
61237 {
61239 }
61240 }
61241 }
61243 {
61249 }
61250 }
61252 {
61254 {
61256 }
61257 }
61258 }
61259 }
61261 }
61262 }
61264 {
61265 break;
61266 }
61267 }
61268 }
61271 {
61273 }
61275 {
61277 }
61279 {
61281 }
61283 {
61288 {
61291 {
61292 break;
61293 }
61296 }
61298 {
61299 break;
61300 }
61307 {
61311 {
61313 }
61316 {
61317 }
61323 {
61325 }
61328 {
61329 }
61332 }
61336 {
61338 }
61341 {
61342 }
61347 {
61349 }
61352 {
61353 }
61360 {
61361 continue;
61362 }
61365 {
61367 }
61369 {
61372 {
61374 }
61375 }
61376 }
61379 {
61382 {
61384 {
61386 {
61388 }
61389 }
61390 }
61392 {
61394 {
61396 {
61398 }
61399 }
61400 }
61402 }
61404 {
61408 {
61411 }
61413 {
61415 }
61417 {
61418 }
61421 {
61422 continue;
61423 }
61425 {
61428 {
61430 }
61432 {
61434 }
61436 {
61438 }
61440 {
61442 }
61444 {
61446 }
61448 {
61450 }
61452 {
61454 }
61456 {
61458 }
61460 {
61462 }
61464 }
61466 {
61469 }
61470 }
61472 {
61476 {
61479 }
61481 {
61483 }
61485 {
61486 }
61489 {
61490 int style =
genRand.Next(22, 26);
61492 }
61493 }
61495 {
61499 {
61502 }
61504 {
61506 }
61508 {
61509 }
61512 {
61513 int x =
genRand.Next(31, 34);
61515 }
61516 }
61518 {
61522 {
61525 }
61527 {
61529 }
61531 {
61533 }
61535 {
61536 continue;
61537 }
61541 {
61543 }
61544 else
61545 {
61548 }
61550 {
61551 continue;
61552 }
61555 {
61556 continue;
61557 }
61559 {
61561 continue;
61562 }
61568 {
61570 }
61574 {
61576 }
61578 {
61580 {
61582 }
61583 }
61584 }
61585 }
static Point16[] statueList
static bool nearPicture(int x, int y)
static bool PlaceSmallPile(int i, int j, int X, int Y, ushort type=185)
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static UnifiedRandom genRand
static bool nearPicture2(int x, int y)
static PaintingEntry RandHousePicture()