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

◆ TryGrowingTreeByType()

static bool Terraria.WorldGen.TryGrowingTreeByType ( int treeTileType,
int checkedX,
int checkedY )
inlinestatic

Definition at line 22170 of file WorldGen.cs.

22171 {
22172 bool result = false;
22173 switch (treeTileType)
22174 {
22175 case 5:
22176 result = GrowTree(checkedX, checkedY);
22177 break;
22178 case 587:
22179 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.GemTree_Ruby);
22180 break;
22181 case 588:
22182 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.GemTree_Diamond);
22183 break;
22184 case 583:
22185 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.GemTree_Topaz);
22186 break;
22187 case 584:
22188 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.GemTree_Amethyst);
22189 break;
22190 case 589:
22191 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.GemTree_Amber);
22192 break;
22193 case 586:
22194 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.GemTree_Emerald);
22195 break;
22196 case 585:
22197 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.GemTree_Sappphire);
22198 break;
22199 case 596:
22200 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.VanityTree_Sakura);
22201 break;
22202 case 616:
22203 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.VanityTree_Willow);
22204 break;
22205 case 634:
22206 result = GrowTreeWithSettings(checkedX, checkedY, GrowTreeSettings.Profiles.Tree_Ash);
22207 break;
22208 }
22209 return result;
22210 }
static bool GrowTreeWithSettings(int checkedX, int checkedY, GrowTreeSettings settings)
static bool GrowTree(int i, int y)

References Terraria.WorldGen.GrowTreeSettings.Profiles.GemTree_Amber, Terraria.WorldGen.GrowTreeSettings.Profiles.GemTree_Amethyst, Terraria.WorldGen.GrowTreeSettings.Profiles.GemTree_Diamond, Terraria.WorldGen.GrowTreeSettings.Profiles.GemTree_Emerald, Terraria.WorldGen.GrowTreeSettings.Profiles.GemTree_Ruby, Terraria.WorldGen.GrowTreeSettings.Profiles.GemTree_Sappphire, Terraria.WorldGen.GrowTreeSettings.Profiles.GemTree_Topaz, Terraria.WorldGen.GrowTreeSettings.Profiles.Tree_Ash, Terraria.WorldGen.GrowTreeSettings.Profiles.VanityTree_Sakura, and Terraria.WorldGen.GrowTreeSettings.Profiles.VanityTree_Willow.

Referenced by Terraria.WorldGen.GenerateWorld().