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

◆ GetPalmTreeVariant()

int Terraria.GameContent.Drawing.TileDrawing.GetPalmTreeVariant ( int x,
int y )
inlineprivate

Definition at line 2667 of file TileDrawing.cs.

2668 {
2669 int num = -1;
2670 if (Main.tile[x, y].active() && Main.tile[x, y].type == 53)
2671 {
2672 num = 0;
2673 }
2674 if (Main.tile[x, y].active() && Main.tile[x, y].type == 234)
2675 {
2676 num = 1;
2677 }
2678 if (Main.tile[x, y].active() && Main.tile[x, y].type == 116)
2679 {
2680 num = 2;
2681 }
2682 if (Main.tile[x, y].active() && Main.tile[x, y].type == 112)
2683 {
2684 num = 3;
2685 }
2686 if (WorldGen.IsPalmOasisTree(x))
2687 {
2688 num += 4;
2689 }
2690 return num;
2691 }

References Terraria.WorldGen.IsPalmOasisTree(), and Terraria.Main.tile.

Referenced by Terraria.GameContent.Drawing.TileDrawing.GetPalmTreeBiome().