Definition at line 232 of file DesertHive.cs.
233 {
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
262 ((
Vector2D)(
ref val)).
_002Ector((
double)description.Hive.Width, (double)description.Hive.Height);
267 {
269 {
270 byte liquid = Main.tile[
i,
j].liquid;
272 {
273 continue;
274 }
275 double num = 0.0;
280 {
282 }
283 int num4 =
i - description.Hive.X;
284 int num5 =
j - description.Hive.Y;
287 {
290 {
291 continue;
292 }
295 {
297 }
299 {
301 {
303 }
306 }
308 {
310 }
311 }
313 Tile tile = Main.tile[
i,
j];
319 {
321 tile.ClearEverything();
322 if (!
WorldGen.remixWorldGen || !((
double)
j > Main.rockLayer + (
double)
WorldGen.genRand.Next(-1, 2)))
323 {
324 tile.wall = 187;
326 {
327 tile.ResetToType(404);
328 }
329 }
330 }
332 {
333 if (!
WorldGen.remixWorldGen || !((
double)
j > Main.rockLayer + (
double)
WorldGen.genRand.Next(-1, 2)))
334 {
335 tile.wall = 187;
336 }
337 if ((
double)
j < Main.worldSurface)
338 {
339 tile.liquid = 0;
340 }
342 {
343 tile.lava(lava:
true);
344 }
345 if (!flag || tile.active())
346 {
347 tile.ResetToType(396);
349 }
350 }
351 else if (
num7 > 0.7 || !flag)
352 {
353 if (!
WorldGen.remixWorldGen || !((
double)
j > Main.rockLayer + (
double)
WorldGen.genRand.Next(-1, 2)))
354 {
355 tile.wall = 216;
356 tile.liquid = 0;
357 }
358 if (!flag || tile.active())
359 {
360 tile.ResetToType(
type);
362 }
363 }
364 else if (
num7 > 0.25)
365 {
369 {
370 if (!
WorldGen.remixWorldGen || !((
double)
j > Main.rockLayer + (
double)
WorldGen.genRand.Next(-1, 2)))
371 {
372 tile.wall = 187;
373 }
374 if ((
double)
j < Main.worldSurface)
375 {
376 tile.liquid = 0;
377 }
379 {
380 tile.lava(lava:
true);
381 }
382 if (tile.active())
383 {
384 tile.ResetToType(
type);
386 }
387 }
388 }
389 else
390 {
392 }
394 {
396 }
399 {
400 Main.tile[
i,
j].liquid = liquid;
401 }
402 }
403 }
404 }
static double Abs(double value)
static double DistanceSquared(Vector2D value1, Vector2D value2)
FastRandom WithModifier(ulong modifier)
References System.Math.Abs(), Terraria.Tile.active(), Terraria.Main.ActiveWorldFileData, Terraria.Tile.ClearEverything(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, ReLogic.Utilities.Vector2D.DistanceSquared(), Terraria.WorldGen.genRand, Microsoft.Xna.Framework.Rectangle.Height, Terraria.GameContent.Biomes.Desert.DesertDescription.Hive, Terraria.WorldGen.InWorld(), System.item, Terraria.Tile.lava(), ReLogic.Utilities.Vector2D.One, Terraria.WorldGen.remixWorldGen, Terraria.Tile.ResetToType(), Terraria.Main.rockLayer, Terraria.Main.tile, System.type, Terraria.WorldGen.UpdateDesertHiveBounds(), Microsoft.Xna.Framework.Rectangle.Width, Terraria.Utilities.FastRandom.WithModifier(), Terraria.Main.worldSurface, Microsoft.Xna.Framework.Rectangle.X, and Microsoft.Xna.Framework.Rectangle.Y.
Referenced by Terraria.GameContent.Biomes.Desert.DesertHive.PlaceClusters().