57 int num = configuration.Get<
int>(
"FlatBeachPadding");
58 progress.Message =
Lang.
gen[0].Value;
80 num2 = GenVars.leftBeachEnd + num;
136 if (num4 > (
double)Main.maxTilesY * 0.7)
157 surfaceHistory.
Record(num3);
166 num2 = Main.maxTilesX - i;
169 Main.worldSurface = (int)(num6 + 25.0);
170 Main.rockLayer = num8;
180 if (num7 < num6 + (
double)num14)
182 double num15 = (num7 + num6) / 2.0;
183 double num16 =
Math.
Abs(num7 - num6);
184 if (num16 < (
double)num14)
188 num7 = num15 + num16 / 2.0;
189 num6 = num15 - num16 / 2.0;
191 GenVars.rockLayer = num4;
192 GenVars.rockLayerHigh = num8;
193 GenVars.rockLayerLow = num7;
194 GenVars.worldSurface = num3;
195 GenVars.worldSurfaceHigh = num6;
196 GenVars.worldSurfaceLow = num5;
197 GenVars.waterLine = num13;
198 GenVars.lavaLine = lavaLine;
360 for (
int i = 0; i < history.Length / 2; i++)
362 if (history[history.
Length - 1] <= targetHeight)
366 for (
int j = 0; j < history.Length - i * 2; j++)
368 double num = history[history.Length - j - 1];
370 history[history.Length - j - 1] = num;
371 if (num <= targetHeight)
377 for (
int k = 0; k < history.
Length; k++)
379 double worldSurface = history[history.Length - k - 1];