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

◆ HelpText()

static void Terraria.Main.HelpText ( )
inlinestaticprivate

Definition at line 35624 of file Main.cs.

35625 {
35626 bool flag = false;
35627 if (player[myPlayer].statLifeMax > 100)
35628 {
35629 flag = true;
35630 }
35631 bool flag2 = false;
35632 if (player[myPlayer].statManaMax > 20)
35633 {
35634 flag2 = true;
35635 }
35636 bool flag3 = true;
35637 bool flag4 = false;
35638 bool flag5 = false;
35639 bool flag6 = false;
35640 bool flag7 = false;
35641 bool flag8 = false;
35642 bool flag9 = false;
35643 bool flag10 = false;
35644 bool flag11 = false;
35645 bool flag12 = false;
35646 bool flag13 = false;
35647 for (int i = 0; i < 58; i++)
35648 {
35649 if (player[myPlayer].inventory[i].pick > 0 && player[myPlayer].inventory[i].Name != "Copper Pickaxe")
35650 {
35651 flag3 = false;
35652 }
35653 if (player[myPlayer].inventory[i].axe > 0 && player[myPlayer].inventory[i].Name != "Copper Axe")
35654 {
35655 flag3 = false;
35656 }
35657 if (player[myPlayer].inventory[i].hammer > 0)
35658 {
35659 flag3 = false;
35660 }
35661 if (player[myPlayer].inventory[i].type == 11 || player[myPlayer].inventory[i].type == 12 || player[myPlayer].inventory[i].type == 13 || player[myPlayer].inventory[i].type == 14 || player[myPlayer].inventory[i].type == 699 || player[myPlayer].inventory[i].type == 700 || player[myPlayer].inventory[i].type == 701 || player[myPlayer].inventory[i].type == 702)
35662 {
35663 flag4 = true;
35664 }
35665 if (player[myPlayer].inventory[i].type == 19 || player[myPlayer].inventory[i].type == 20 || player[myPlayer].inventory[i].type == 21 || player[myPlayer].inventory[i].type == 22 || player[myPlayer].inventory[i].type == 703 || player[myPlayer].inventory[i].type == 704 || player[myPlayer].inventory[i].type == 705 || player[myPlayer].inventory[i].type == 706)
35666 {
35667 flag5 = true;
35668 }
35669 if (player[myPlayer].inventory[i].type == 75)
35670 {
35671 flag6 = true;
35672 }
35673 if (player[myPlayer].inventory[i].type == 38)
35674 {
35675 flag7 = true;
35676 }
35677 if (player[myPlayer].inventory[i].type == 68 || player[myPlayer].inventory[i].type == 70 || player[myPlayer].inventory[i].type == 1330 || player[myPlayer].inventory[i].type == 1331 || player[myPlayer].inventory[i].type == 67 || player[myPlayer].inventory[i].type == 2886)
35678 {
35679 flag8 = true;
35680 }
35681 if (player[myPlayer].inventory[i].type == 84 || player[myPlayer].inventory[i].type == 1236 || player[myPlayer].inventory[i].type == 1237 || player[myPlayer].inventory[i].type == 1238 || player[myPlayer].inventory[i].type == 1239 || player[myPlayer].inventory[i].type == 1240 || player[myPlayer].inventory[i].type == 1241 || player[myPlayer].inventory[i].type == 939 || player[myPlayer].inventory[i].type == 1273 || player[myPlayer].inventory[i].type == 2585 || player[myPlayer].inventory[i].type == 2360 || player[myPlayer].inventory[i].type == 185 || player[myPlayer].inventory[i].type == 1800 || player[myPlayer].inventory[i].type == 1915)
35682 {
35683 flag9 = true;
35684 }
35685 if (player[myPlayer].inventory[i].type == 3347)
35686 {
35687 flag10 = true;
35688 }
35689 if (player[myPlayer].inventory[i].type == 174)
35690 {
35691 flag11 = true;
35692 }
35693 if (player[myPlayer].inventory[i].type == 1141)
35694 {
35695 flag12 = true;
35696 }
35697 if (player[myPlayer].inventory[i].type == 1533 || player[myPlayer].inventory[i].type == 1534 || player[myPlayer].inventory[i].type == 1535 || player[myPlayer].inventory[i].type == 1536 || player[myPlayer].inventory[i].type == 1537 || player[myPlayer].inventory[i].type == 4714)
35698 {
35699 flag13 = true;
35700 }
35701 }
35702 bool flag14 = false;
35703 bool flag15 = false;
35704 bool flag16 = false;
35705 bool flag17 = false;
35706 bool flag18 = false;
35707 bool flag19 = false;
35708 bool flag20 = false;
35709 bool flag21 = false;
35710 bool flag22 = false;
35711 bool flag23 = false;
35712 bool flag24 = false;
35713 bool flag25 = false;
35714 bool flag26 = false;
35715 bool flag27 = false;
35716 bool flag28 = false;
35717 bool flag29 = false;
35718 bool flag30 = false;
35719 bool flag31 = false;
35720 bool flag32 = false;
35721 bool flag33 = false;
35722 bool flag34 = false;
35723 bool flag35 = false;
35724 bool flag36 = false;
35725 bool flag37 = false;
35726 bool flag38 = false;
35727 int num = 0;
35728 for (int j = 0; j < 200; j++)
35729 {
35730 if (npc[j].active)
35731 {
35732 if (npc[j].townNPC && npc[j].type != 37)
35733 {
35734 num++;
35735 }
35736 if (npc[j].type == 17)
35737 {
35738 flag14 = true;
35739 }
35740 if (npc[j].type == 18)
35741 {
35742 flag15 = true;
35743 }
35744 if (npc[j].type == 19)
35745 {
35746 flag17 = true;
35747 }
35748 if (npc[j].type == 20)
35749 {
35750 flag16 = true;
35751 }
35752 if (npc[j].type == 54)
35753 {
35754 flag22 = true;
35755 }
35756 if (npc[j].type == 124)
35757 {
35758 flag19 = true;
35759 }
35760 if (npc[j].type == 38)
35761 {
35762 flag18 = true;
35763 }
35764 if (npc[j].type == 108)
35765 {
35766 flag20 = true;
35767 }
35768 if (npc[j].type == 107)
35769 {
35770 flag21 = true;
35771 }
35772 if (npc[j].type == 228)
35773 {
35774 flag23 = true;
35775 }
35776 if (npc[j].type == 178)
35777 {
35778 flag24 = true;
35779 }
35780 if (npc[j].type == 209)
35781 {
35782 flag25 = true;
35783 }
35784 if (npc[j].type == 353)
35785 {
35786 flag26 = true;
35787 }
35788 if (npc[j].type == 633)
35789 {
35790 flag38 = true;
35791 }
35792 if (npc[j].type == 369)
35793 {
35794 flag27 = true;
35795 }
35796 if (npc[j].type == 441)
35797 {
35798 flag28 = true;
35799 }
35800 if (npc[j].type == 229)
35801 {
35802 flag29 = true;
35803 }
35804 if (npc[j].type == 207)
35805 {
35806 flag30 = true;
35807 }
35808 if (npc[j].type == 160)
35809 {
35810 flag31 = true;
35811 }
35812 if (npc[j].type == 588)
35813 {
35814 flag32 = true;
35815 }
35816 if (npc[j].type == 227)
35817 {
35818 flag33 = true;
35819 }
35820 if (npc[j].type == 208)
35821 {
35822 flag34 = true;
35823 }
35824 if (npc[j].type == 550)
35825 {
35826 flag35 = true;
35827 }
35828 if (npc[j].type == 368)
35829 {
35830 flag36 = true;
35831 }
35832 if (npc[j].type == 453)
35833 {
35834 flag37 = true;
35835 }
35836 }
35837 }
35838 object obj = Lang.CreateDialogSubstitutionObject();
35839 while (true)
35840 {
35841 helpText++;
35842 if (Language.Exists("GuideHelpText.Help_" + helpText))
35843 {
35844 LocalizedText text = Language.GetText("GuideHelpText.Help_" + helpText);
35845 if (text.CanFormatWith(obj))
35846 {
35847 npcChatText = text.FormatWith(obj);
35848 return;
35849 }
35850 }
35851 if (flag3)
35852 {
35853 if (helpText == 1)
35854 {
35855 npcChatText = Lang.dialog(177);
35856 return;
35857 }
35858 if (helpText == 2)
35859 {
35860 npcChatText = Lang.dialog(178);
35861 return;
35862 }
35863 if (helpText == 3)
35864 {
35865 npcChatText = Lang.dialog(179);
35866 return;
35867 }
35868 if (helpText == 4)
35869 {
35870 npcChatText = Lang.dialog(180);
35871 return;
35872 }
35873 if (helpText == 5)
35874 {
35875 npcChatText = Lang.dialog(181);
35876 return;
35877 }
35878 if (helpText == 6)
35879 {
35880 npcChatText = Lang.dialog(182);
35881 return;
35882 }
35883 }
35884 if (flag3 && !flag4 && !flag5 && helpText == 11)
35885 {
35886 npcChatText = Lang.dialog(183);
35887 return;
35888 }
35889 if (flag3 && flag4 && !flag5)
35890 {
35891 if (helpText == 21)
35892 {
35893 npcChatText = Lang.dialog(184);
35894 return;
35895 }
35896 if (helpText == 22)
35897 {
35898 npcChatText = Lang.dialog(185);
35899 return;
35900 }
35901 }
35902 if (flag3 && flag5)
35903 {
35904 if (helpText == 31)
35905 {
35906 npcChatText = Lang.dialog(186);
35907 return;
35908 }
35909 if (helpText == 32)
35910 {
35911 npcChatText = Lang.dialog(187);
35912 return;
35913 }
35914 }
35915 if (!flag && helpText == 41)
35916 {
35917 npcChatText = Lang.dialog(188);
35918 return;
35919 }
35920 if (!flag2 && helpText == 42)
35921 {
35922 npcChatText = Lang.dialog(189);
35923 return;
35924 }
35925 if (!flag2 && !flag6 && helpText == 43)
35926 {
35927 npcChatText = Lang.dialog(190);
35928 return;
35929 }
35930 if (!flag14 && !flag15)
35931 {
35932 if (helpText == 51)
35933 {
35934 npcChatText = Lang.dialog(191);
35935 return;
35936 }
35937 if (helpText == 52)
35938 {
35939 npcChatText = Lang.dialog(192);
35940 return;
35941 }
35942 if (helpText == 53)
35943 {
35944 npcChatText = Lang.dialog(193);
35945 return;
35946 }
35947 if (helpText == 54)
35948 {
35949 npcChatText = Lang.dialog(194);
35950 return;
35951 }
35952 if (helpText == 55)
35953 {
35954 npcChatText = Language.GetTextValue("GuideHelpText.Help_1065");
35955 return;
35956 }
35957 }
35958 if (!flag14 && helpText == 61)
35959 {
35960 npcChatText = Lang.dialog(195);
35961 return;
35962 }
35963 if (!flag15 && helpText == 62)
35964 {
35965 npcChatText = Lang.dialog(196);
35966 return;
35967 }
35968 if (!flag17 && helpText == 63)
35969 {
35970 npcChatText = Lang.dialog(197);
35971 return;
35972 }
35973 if (!flag16 && helpText == 64)
35974 {
35975 npcChatText = Lang.dialog(198);
35976 return;
35977 }
35978 if (!flag19 && helpText == 65 && NPC.downedBoss3)
35979 {
35980 npcChatText = Lang.dialog(199);
35981 return;
35982 }
35983 if (!flag22 && helpText == 66 && NPC.downedBoss3)
35984 {
35985 npcChatText = Lang.dialog(200);
35986 return;
35987 }
35988 if (!flag18 && helpText == 67)
35989 {
35990 npcChatText = Lang.dialog(201);
35991 return;
35992 }
35993 if (!flag21 && NPC.downedBoss2 && helpText == 68)
35994 {
35995 npcChatText = Lang.dialog(202);
35996 return;
35997 }
35998 if (!flag20 && hardMode && helpText == 69)
35999 {
36000 npcChatText = Lang.dialog(203);
36001 return;
36002 }
36003 if (!flag23 && helpText == 70 && NPC.downedBoss2)
36004 {
36005 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1100");
36006 return;
36007 }
36008 if (!flag24 && helpText == 71 && hardMode)
36009 {
36010 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1101");
36011 return;
36012 }
36013 if (!flag25 && helpText == 72 && NPC.downedMechBoss1 && NPC.downedMechBoss2 && NPC.downedMechBoss3)
36014 {
36015 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1102");
36016 return;
36017 }
36018 if (!flag26 && helpText == 73)
36019 {
36020 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1103");
36021 return;
36022 }
36023 if (!flag27 && helpText == 74)
36024 {
36025 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1104");
36026 return;
36027 }
36028 if (!flag28 && helpText == 75 && hardMode)
36029 {
36030 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1105");
36031 return;
36032 }
36033 if (!flag29 && helpText == 76 && hardMode)
36034 {
36035 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1106");
36036 return;
36037 }
36038 if (!flag30 && helpText == 77)
36039 {
36040 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1107");
36041 return;
36042 }
36043 if (!flag31 && helpText == 78 && hardMode)
36044 {
36045 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1108");
36046 return;
36047 }
36048 if (!flag32 && helpText == 79)
36049 {
36050 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1109");
36051 return;
36052 }
36053 if (!flag33 && helpText == 80 && num >= 5)
36054 {
36055 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1110");
36056 return;
36057 }
36058 if (!flag34 && helpText == 81 && num >= 11)
36059 {
36060 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1111");
36061 return;
36062 }
36063 if (!flag35 && NPC.downedBoss2 && helpText == 82)
36064 {
36065 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1112");
36066 return;
36067 }
36068 if (!flag36 && helpText == 83 && flag14)
36069 {
36070 npcChatText = Language.GetTextValueWith("GuideHelpTextSpecific.Help_1113", obj);
36071 return;
36072 }
36073 if (!flag37 && helpText == 84 && !hardMode)
36074 {
36075 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1114");
36076 return;
36077 }
36078 if (!flag38 && helpText == 85 && !hardMode)
36079 {
36080 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1115");
36081 return;
36082 }
36083 if (flag7 && !WorldGen.crimson && helpText == 100)
36084 {
36085 npcChatText = Lang.dialog(204);
36086 return;
36087 }
36088 if (flag8 && helpText == 101)
36089 {
36090 npcChatText = Lang.dialog(WorldGen.crimson ? 403 : 205);
36091 return;
36092 }
36093 if ((flag7 || flag8) && helpText == 102)
36094 {
36095 npcChatText = Lang.dialog(WorldGen.crimson ? 402 : 206);
36096 return;
36097 }
36098 if (flag7 && WorldGen.crimson && helpText == 103)
36099 {
36100 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1159");
36101 return;
36102 }
36103 if (!flag9 && LocalPlayer.miscEquips[4].IsAir && helpText == 201 && !hardMode && !NPC.downedBoss3 && !NPC.downedBoss2)
36104 {
36105 npcChatText = Lang.dialog(207);
36106 return;
36107 }
36108 if (helpText == 202 && !hardMode && player[myPlayer].statLifeMax >= 140)
36109 {
36110 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1120");
36111 return;
36112 }
36113 if (helpText == 203 && hardMode && NPC.downedMechBossAny)
36114 {
36115 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1121");
36116 return;
36117 }
36118 if (helpText == 204 && !NPC.downedGoblins && player[myPlayer].statLifeMax >= 200 && WorldGen.shadowOrbSmashed)
36119 {
36120 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1122");
36121 return;
36122 }
36123 if (helpText == 205 && hardMode && !NPC.downedPirates && player[myPlayer].statLifeMax >= 200)
36124 {
36125 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1123");
36126 return;
36127 }
36128 if (helpText == 206 && hardMode && NPC.downedGolemBoss && !NPC.downedMartians)
36129 {
36130 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1124");
36131 return;
36132 }
36133 if (helpText == 207 && (NPC.downedBoss1 || NPC.downedBoss2 || NPC.downedBoss3))
36134 {
36135 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1125");
36136 return;
36137 }
36138 if (helpText == 208 && !hardMode)
36139 {
36140 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1130");
36141 return;
36142 }
36143 if (helpText == 209 && !hardMode)
36144 {
36145 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1131");
36146 return;
36147 }
36148 if (helpText == 210 && !hardMode)
36149 {
36150 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1132");
36151 return;
36152 }
36153 if (helpText == 211 && !hardMode)
36154 {
36155 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1133");
36156 return;
36157 }
36158 if (helpText == 212 && !hardMode)
36159 {
36160 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1134");
36161 return;
36162 }
36163 if (helpText == 213 && !hardMode)
36164 {
36165 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1135");
36166 return;
36167 }
36168 if (helpText == 214 && !hardMode && (flag4 || flag5))
36169 {
36170 npcChatText = Language.GetTextValueWith("GuideHelpTextSpecific.Help_1136", obj);
36171 return;
36172 }
36173 if (helpText == 215 && LocalPlayer.anglerQuestsFinished < 1)
36174 {
36175 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1137");
36176 return;
36177 }
36178 if (helpText == 216 && !hardMode)
36179 {
36180 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1138");
36181 return;
36182 }
36183 if (helpText == 1000 && !NPC.downedBoss1 && !NPC.downedBoss2)
36184 {
36185 npcChatText = Lang.dialog(208);
36186 return;
36187 }
36188 if (helpText == 1001 && !NPC.downedBoss1 && !NPC.downedBoss2)
36189 {
36190 npcChatText = Lang.dialog(209);
36191 return;
36192 }
36193 if (helpText == 1002 && !NPC.downedBoss2)
36194 {
36195 if (WorldGen.crimson)
36196 {
36197 npcChatText = Lang.dialog(331);
36198 }
36199 else
36200 {
36201 npcChatText = Lang.dialog(210);
36202 }
36203 return;
36204 }
36205 if (helpText == 1050 && !NPC.downedBoss1 && player[myPlayer].statLifeMax < 200)
36206 {
36207 npcChatText = Lang.dialog(211);
36208 return;
36209 }
36210 if (helpText == 1051 && !NPC.downedBoss1 && player[myPlayer].statDefense <= 10)
36211 {
36212 npcChatText = Lang.dialog(212);
36213 return;
36214 }
36215 if (helpText == 1052 && !NPC.downedBoss1 && player[myPlayer].statLifeMax >= 200 && player[myPlayer].statDefense > 10)
36216 {
36217 npcChatText = Lang.dialog(WorldGen.crimson ? 404 : 213);
36218 return;
36219 }
36220 if (helpText == 1053 && NPC.downedBoss1 && !NPC.downedBoss2 && player[myPlayer].statLifeMax < 300)
36221 {
36222 npcChatText = Lang.dialog(214);
36223 return;
36224 }
36225 if (helpText == 1054 && NPC.downedBoss1 && !NPC.downedBoss2 && !WorldGen.crimson && player[myPlayer].statLifeMax >= 300)
36226 {
36227 npcChatText = Lang.dialog(215);
36228 return;
36229 }
36230 if (helpText == 1055 && NPC.downedBoss1 && !NPC.downedBoss2 && !WorldGen.crimson && player[myPlayer].statLifeMax >= 300)
36231 {
36232 npcChatText = Lang.dialog(216);
36233 return;
36234 }
36235 if (helpText == 1056 && NPC.downedBoss1 && NPC.downedBoss2 && !NPC.downedBoss3)
36236 {
36237 npcChatText = Lang.dialog(217);
36238 return;
36239 }
36240 if (helpText == 1057 && NPC.downedBoss1 && NPC.downedBoss2 && NPC.downedBoss3 && !hardMode && player[myPlayer].statLifeMax < 400)
36241 {
36242 npcChatText = Lang.dialog(218);
36243 return;
36244 }
36245 if (helpText == 1058 && NPC.downedBoss1 && NPC.downedBoss2 && NPC.downedBoss3 && !hardMode && player[myPlayer].statLifeMax >= 400)
36246 {
36247 npcChatText = Lang.dialog(219);
36248 return;
36249 }
36250 if (helpText == 1059 && NPC.downedBoss1 && NPC.downedBoss2 && NPC.downedBoss3 && !hardMode && player[myPlayer].statLifeMax >= 400)
36251 {
36252 npcChatText = Lang.dialog(220);
36253 return;
36254 }
36255 if (helpText == 1060 && NPC.downedBoss1 && NPC.downedBoss2 && NPC.downedBoss3 && !hardMode && player[myPlayer].statLifeMax >= 400)
36256 {
36257 npcChatText = Lang.dialog(221);
36258 return;
36259 }
36260 if (helpText == 1061 && hardMode && !NPC.downedPlantBoss)
36261 {
36262 npcChatText = Lang.dialog(WorldGen.crimson ? 401 : 222);
36263 return;
36264 }
36265 if (helpText == 1062 && hardMode && !NPC.downedPlantBoss)
36266 {
36267 npcChatText = Lang.dialog(223);
36268 return;
36269 }
36270 if (helpText == 1140 && NPC.downedBoss1 && !NPC.downedBoss2 && WorldGen.crimson && player[myPlayer].statLifeMax >= 300)
36271 {
36272 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1140");
36273 return;
36274 }
36275 if (helpText == 1141 && NPC.downedBoss1 && !NPC.downedBoss2 && WorldGen.crimson && player[myPlayer].statLifeMax >= 300)
36276 {
36277 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1141");
36278 return;
36279 }
36280 if (helpText == 1142 && NPC.downedBoss2 && !hardMode)
36281 {
36282 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1142");
36283 return;
36284 }
36285 if (helpText == 1143 && NPC.downedBoss2 && !NPC.downedQueenBee && player[myPlayer].statLifeMax >= 300)
36286 {
36287 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1143");
36288 return;
36289 }
36290 if (helpText == 1144 && flag10)
36291 {
36292 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1144");
36293 return;
36294 }
36295 if (helpText == 1145 && flag11 && !hardMode)
36296 {
36297 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1145");
36298 return;
36299 }
36300 if (helpText == 1146 && hardMode && player[myPlayer].wingsLogic == 0 && !LocalPlayer.mount.Active && !NPC.downedPlantBoss)
36301 {
36302 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1146");
36303 return;
36304 }
36305 if (helpText == 1147 && hardMode && WorldGen.SavedOreTiers.Adamantite == 111 && !NPC.downedMechBossAny)
36306 {
36307 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1147");
36308 return;
36309 }
36310 if (helpText == 1148 && hardMode && WorldGen.SavedOreTiers.Adamantite == 223 && !NPC.downedMechBossAny)
36311 {
36312 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1148");
36313 return;
36314 }
36315 if (helpText == 1149 && hardMode && NPC.downedMechBossAny && player[myPlayer].statLifeMax < 500)
36316 {
36317 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1149");
36318 return;
36319 }
36320 if (helpText == 1150 && hardMode && NPC.downedMechBoss1 && NPC.downedMechBoss2 && NPC.downedMechBoss3 && !NPC.downedPlantBoss)
36321 {
36322 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1150");
36323 return;
36324 }
36325 if (helpText == 1151 && hardMode && NPC.downedPlantBoss && !NPC.downedGolemBoss && flag12)
36326 {
36327 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1151");
36328 return;
36329 }
36330 if (helpText == 1152 && hardMode && NPC.downedPlantBoss && !NPC.downedGolemBoss && !flag12)
36331 {
36332 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1152");
36333 return;
36334 }
36335 if (helpText == 1153 && hardMode && flag13)
36336 {
36337 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1153");
36338 return;
36339 }
36340 if (helpText == 1154 && hardMode && !NPC.downedFishron)
36341 {
36342 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1154");
36343 return;
36344 }
36345 if (helpText == 1155 && hardMode && NPC.downedGolemBoss && !NPC.downedHalloweenTree && !NPC.downedHalloweenKing)
36346 {
36347 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1155");
36348 return;
36349 }
36350 if (helpText == 1156 && hardMode && NPC.downedGolemBoss && !NPC.downedChristmasIceQueen && !NPC.downedChristmasTree && !NPC.downedChristmasSantank)
36351 {
36352 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1156");
36353 return;
36354 }
36355 if (helpText == 1157 && hardMode && NPC.downedGolemBoss && NPC.AnyNPCs(437) && !NPC.downedMoonlord)
36356 {
36357 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1157");
36358 return;
36359 }
36360 if (helpText == 1158 && hardMode && NPC.LunarApocalypseIsUp && !NPC.downedMoonlord)
36361 {
36362 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1158");
36363 return;
36364 }
36365 if (helpText == 1159 && NPC.downedBoss1 && NPC.downedBoss2 && !NPC.downedDeerclops)
36366 {
36367 break;
36368 }
36369 if (helpText > 1200)
36370 {
36371 helpText = 0;
36372 }
36373 }
36374 npcChatText = Language.GetTextValue("GuideHelpTextSpecific.Help_1160");
36375 }
static LocalizedText GetText(string key)
Definition Language.cs:10
static bool Exists(string key)
Definition Language.cs:45
static string GetTextValue(string key)
Definition Language.cs:15
static string GetTextValueWith(string key, object obj)
Definition Language.cs:40
static string npcChatText
Definition Main.cs:1825
static int myPlayer
Definition Main.cs:1801
static NPC[] npc
Definition Main.cs:1685
static int helpText
Definition Main.cs:1318
static Player LocalPlayer
Definition Main.cs:2829
static bool hardMode
Definition Main.cs:1022
static Player[] player
Definition Main.cs:1803

References Terraria.WorldGen.SavedOreTiers.Adamantite, Terraria.NPC.AnyNPCs(), Terraria.Lang.CreateDialogSubstitutionObject(), Terraria.WorldGen.crimson, Terraria.Lang.dialog(), Terraria.NPC.downedBoss1, Terraria.NPC.downedBoss2, Terraria.NPC.downedBoss3, Terraria.NPC.downedChristmasIceQueen, Terraria.NPC.downedChristmasSantank, Terraria.NPC.downedChristmasTree, Terraria.NPC.downedDeerclops, Terraria.NPC.downedFishron, Terraria.NPC.downedGoblins, Terraria.NPC.downedGolemBoss, Terraria.NPC.downedHalloweenKing, Terraria.NPC.downedHalloweenTree, Terraria.NPC.downedMartians, Terraria.NPC.downedMechBoss1, Terraria.NPC.downedMechBoss2, Terraria.NPC.downedMechBoss3, Terraria.NPC.downedMechBossAny, Terraria.NPC.downedMoonlord, Terraria.NPC.downedPirates, Terraria.NPC.downedPlantBoss, Terraria.NPC.downedQueenBee, Terraria.Localization.Language.Exists(), Terraria.Localization.Language.GetText(), Terraria.Localization.Language.GetTextValue(), Terraria.Localization.Language.GetTextValueWith(), Terraria.Main.hardMode, Terraria.Main.helpText, System.Text.RegularExpressions.i, Terraria.Main.LocalPlayer, Terraria.NPC.LunarApocalypseIsUp, Terraria.Main.myPlayer, System.Reflection.Name, Terraria.Main.npc, Terraria.Main.npcChatText, System.obj, Terraria.Main.player, Terraria.WorldGen.shadowOrbSmashed, System.text, and System.type.

Referenced by Terraria.Main.GUIChatDrawInner().