125 for (
int i = 0; i < 300; i++)
138 for (
int l = -1;
l <= 1;
l++)
140 for (
int m = -1;
m <= 1;
m++)
142 if (
l == 0 &&
m == 0)
202 for (
int i = -50; i < 50; i++)
204 for (
int j = -50;
j < 50;
j++)
239 double num =
Math.
Sin((
double)(tileOrigin.Y +
j) * 0.4) * 0.7 + 1.2;
253 else if (
magma.Resistance < 0.01)
258 if (tile.
liquid > 0 && flag)
289 for (
int k = -1;
k <= 1;
k++)
291 for (
int l = -1;
l <= 1;
l++)
static double Sqrt(double d)
static double Sin(double a)
static byte Max(byte val1, byte val2)
bool ShouldUseLava(Point tileOrigin)
const int MAX_MAGMA_ITERATIONS
override bool Place(Point origin, StructureMap structures)
void BuildMagmaMap(Point tileOrigin)
static bool CanPlace(Point origin, StructureMap structures)
static Vector2D[] _normalisedVectors
void CleanupTiles(Point tileOrigin, Rectangle magmaMapArea)
void SimulatePressure(out Rectangle effectedMapArea)
void PlaceGranite(Point tileOrigin, Rectangle magmaMapArea)
void PlaceDecorations(Point tileOrigin, Rectangle magmaMapArea)
static WorldFileData ActiveWorldFileData
static void SmoothSlope(int x, int y, bool applyToNeighbors=true, bool sync=false)
void liquidType(int liquidType)
void ResetToType(ushort type)
void AddStructure(Rectangle area, int padding=0)
static void TileFrame(int x, int y, bool frameNeighbors=false)
static void ClearTile(int x, int y, bool frameNeighbors=false)
static bool BiomeTileCheck(int x, int y)
static bool SolidTile(Tile testTile)
static void SquareWallFrame(int i, int j, bool resetFrame=true)
static void PlaceUncheckedStalactite(int x, int y, bool preferSmall, int variation, bool spiders)
static bool drunkWorldGen
readonly double Resistance
Magma(double pressure, double resistance, bool active)
static Magma CreateEmpty(double resistance=0.0)
static Magma CreateFlow(double pressure, double resistance=0.0)
FastRandom WithModifier(ulong modifier)