23189 {
23190 double num = 0.1 +
genRand.NextDouble() * 0.35;
23193 int num4 = (int)Main.worldSurface;
23195 {
23196 for (
int i = 1;
i < Main.maxTilesX - 1;
i++)
23197 {
23199 {
23200 if (i < 380)
23201 {
23202 if (
genRand.NextDouble() < num && Main.tile[i,
j].liquid == 0)
23203 {
23205 }
23206 }
23207 else if (i > Main.maxTilesX - 380 &&
genRand.NextDouble() <
num2 && Main.tile[i,
j].liquid == 0)
23208 {
23210 }
23213 {
23215 }
23217 {
23219 }
23220 if (Main.tile[i,
j].type == 2 && (Main.tenthAnniversaryWorld ||
genRand.Next(
num5) == 0))
23221 {
23223 {
23225 }
23226 else
23227 {
23229 }
23230 }
23231 else
23232 {
23234 }
23235 }
23237 {
23239 }
23241 {
23243 }
23244 }
23245 }
23247 {
23248 return;
23249 }
23250 num3 = (int)Main.worldSurface;
23251 num4 = Main.maxTilesY - 300;
23252 for (
int k = 1;
k < Main.maxTilesX - 1;
k++)
23253 {
23255 {
23257 if (Main.tile[
k,
l].type == 2 && (Main.tenthAnniversaryWorld ||
genRand.Next(
maxValue) == 0))
23258 {
23260 {
23262 }
23263 else
23264 {
23266 }
23267 }
23268 else
23269 {
23271 }
23272 }
23273 }
23274 }
static bool remixWorldGen
static bool GrowTreeWithSettings(int checkedX, int checkedY, GrowTreeSettings settings)
static bool GrowPalmTree(int i, int y)
static UnifiedRandom genRand
static bool GrowTree(int i, int y)
static bool drunkWorldGen