Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ ChlorophyteDefense()

static void Terraria.WorldGen.ChlorophyteDefense ( int x,
int y )
inlinestatic

Definition at line 59914 of file WorldGen.cs.

59915 {
59916 if (!Main.remixWorld)
59917 {
59918 return;
59919 }
59920 if (Main.tile[x, y].type == 23 || Main.tile[x, y].type == 199 || Main.tile[x, y].type == 661 || Main.tile[x, y].type == 662)
59921 {
59922 Main.tile[x, y].type = 60;
59923 SquareTileFrame(x, y);
59924 if (Main.netMode == 2)
59925 {
59926 NetMessage.SendTileSquare(-1, x, y);
59927 }
59928 }
59929 else if (Main.tile[x, y].type == 25 || Main.tile[x, y].type == 203)
59930 {
59931 Main.tile[x, y].type = 1;
59932 SquareTileFrame(x, y);
59933 if (Main.netMode == 2)
59934 {
59935 NetMessage.SendTileSquare(-1, x, y);
59936 }
59937 }
59938 else if (Main.tile[x, y].type == 112 || Main.tile[x, y].type == 234)
59939 {
59940 Main.tile[x, y].type = 53;
59941 SquareTileFrame(x, y);
59942 if (Main.netMode == 2)
59943 {
59944 NetMessage.SendTileSquare(-1, x, y);
59945 }
59946 }
59947 else if (Main.tile[x, y].type == 398 || Main.tile[x, y].type == 399)
59948 {
59949 Main.tile[x, y].type = 397;
59950 SquareTileFrame(x, y);
59951 if (Main.netMode == 2)
59952 {
59953 NetMessage.SendTileSquare(-1, x, y);
59954 }
59955 }
59956 else if (Main.tile[x, y].type == 400 || Main.tile[x, y].type == 401)
59957 {
59958 Main.tile[x, y].type = 396;
59959 SquareTileFrame(x, y);
59960 if (Main.netMode == 2)
59961 {
59962 NetMessage.SendTileSquare(-1, x, y);
59963 }
59964 }
59965 else if (Main.tile[x, y].type == 24 || Main.tile[x, y].type == 201 || Main.tile[x, y].type == 32 || Main.tile[x, y].type == 352 || Main.tile[x, y].type == 636 || Main.tile[x, y].type == 205)
59966 {
59967 KillTile(x, y);
59968 if (Main.netMode == 2)
59969 {
59970 NetMessage.SendTileSquare(-1, x, y);
59971 }
59972 }
59973 }
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static void SquareTileFrame(int i, int j, bool resetFrame=true)

References Terraria.Main.netMode, Terraria.Main.remixWorld, Terraria.NetMessage.SendTileSquare(), and Terraria.Main.tile.