Definition at line 64090 of file WorldGen.cs.
64091 {
64092 bool num = (double)Main.dungeonX > (double)Main.maxTilesX * 0.5;
64093 int num2 = (int)(num ? ((
double)Main.maxTilesX * 0.15) : ((double)Main.maxTilesX * 0.65));
64094 int num3 = (int)(num ? ((
double)Main.maxTilesX * 0.35) : ((double)Main.maxTilesX * 0.85));
64095 int num4 = (int)Main.worldSurface;
64102 {
64103 bool flag =
num5 < 500;
64107 Tile tile = Main.tile[point.
X, point.
Y];
64109 bool flag3 =
false;
64111 {
64114 {
64116 }
64119 {
64120 break;
64121 }
64122 tile = Main.tile[point.
X, point.
Y];
64123 if (tile !=
null && (
flag2 || tile.active()))
64124 {
64125 if (tile.type == 60)
64126 {
64128 }
64129 else if (flag && tile.type == 59)
64130 {
64132 }
64133 }
64134 }
64135 if (tile == null)
64136 {
64137 continue;
64138 }
64140 bool flag4 = tile.type == 60 || (flag && tile.type == 59);
64142 {
64144 {
64145 return true;
64146 }
64148 {
64149 return true;
64150 }
64152 {
64153 return true;
64154 }
64155 }
64156 }
64157 return false;
64158 }
static bool AttemptToGeneratePlanteraBulbAt(int i, int j, bool forceBulb)
static UnifiedRandom genRand
References Terraria.Tile.active(), Terraria.Main.dungeonX, Terraria.Main.maxTilesX, Terraria.Main.tile, Terraria.Tile.type, Terraria.Main.UnderworldLayer, Terraria.Main.worldSurface, Microsoft.Xna.Framework.Point.X, and Microsoft.Xna.Framework.Point.Y.
Referenced by Terraria.NPC.OnGameEventClearedForTheFirstTime().