TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ PlantSeaOat()

static bool Terraria.WorldGen.PlantSeaOat ( int x,
int y )
inlinestaticprivate

Definition at line 52447 of file WorldGen.cs.

52448 {
52449 if (Main.tile[x, y].wall > 0 || Main.tile[x, y].active() || Main.tile[x, y].liquid > 0 || !SolidTileAllowBottomSlope(x, y + 1) || !TileID.Sets.Conversion.Sand[Main.tile[x, y + 1].type])
52450 {
52451 return false;
52452 }
52453 if (!SeaOatWaterCheck(x, y))
52454 {
52455 return false;
52456 }
52457 Main.tile[x, y].active(active: true);
52458 Main.tile[x, y].slope(0);
52459 Main.tile[x, y].halfBrick(halfBrick: false);
52460 Main.tile[x, y].type = 529;
52461 Main.tile[x, y].frameX = (short)(genRand.Next(5) * 18);
52462 int num = 0;
52463 Main.tile[x, y].frameY = (short)(num * 34);
52464 if (Main.netMode == 2)
52465 {
52466 NetMessage.SendTileSquare(-1, x, y);
52467 }
52468 return true;
52469 }
static UnifiedRandom genRand
Definition WorldGen.cs:1455
static bool SeaOatWaterCheck(int x, int y)
static bool SolidTileAllowBottomSlope(int i, int j)

References Terraria.Main.netMode, Terraria.ID.TileID.Sets.Conversion.Sand, Terraria.NetMessage.SendTileSquare(), and Terraria.Main.tile.

+ Here is the call graph for this function: