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

◆ TryGetFromTreeId()

static bool Terraria.WorldGen.GrowTreeSettings.Profiles.TryGetFromTreeId ( int tileType,
out GrowTreeSettings profile )
inlinestatic

Definition at line 766 of file WorldGen.cs.

767 {
768 switch (tileType)
769 {
770 default:
771 profile = default(GrowTreeSettings);
772 return false;
773 case 589:
775 return true;
776 case 584:
778 return true;
779 case 588:
781 return true;
782 case 586:
784 return true;
785 case 587:
787 return true;
788 case 585:
790 return true;
791 case 583:
793 return true;
794 case 616:
796 return true;
797 case 596:
799 return true;
800 case 634:
802 return true;
803 }
804 }
static GrowTreeSettings GemTree_Emerald
Definition WorldGen.cs:674
static GrowTreeSettings GemTree_Sappphire
Definition WorldGen.cs:663
static GrowTreeSettings VanityTree_Willow
Definition WorldGen.cs:707
static GrowTreeSettings GemTree_Diamond
Definition WorldGen.cs:630
static GrowTreeSettings GemTree_Topaz
Definition WorldGen.cs:641
static GrowTreeSettings VanityTree_Sakura
Definition WorldGen.cs:696
static GrowTreeSettings GemTree_Amethyst
Definition WorldGen.cs:652
static GrowTreeSettings GemTree_Amber
Definition WorldGen.cs:685

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.GetGemTreeFoliageData(), and Terraria.WorldGen.TryKillingTreesAboveIfTheyWouldBecomeInvalid().