Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HairstyleUnlocksHelper.cs
Go to the documentation of this file.
2
4
6{
8
9 private bool _defeatedMartians;
10
11 private bool _defeatedMoonlord;
12
13 private bool _defeatedPlantera;
14
15 private bool _isAtStylist;
16
18
19 public void UpdateUnlocks()
20 {
22 {
24 }
25 }
26
27 private bool ListWarrantsRemake()
28 {
29 bool flag = NPC.downedMartians && !Main.gameMenu;
30 bool flag2 = NPC.downedMoonlord && !Main.gameMenu;
31 bool flag3 = NPC.downedPlantBoss && !Main.gameMenu;
32 bool flag4 = Main.hairWindow && !Main.gameMenu;
33 bool gameMenu = Main.gameMenu;
34 bool result = false;
36 {
37 result = true;
38 }
39 _defeatedMartians = flag;
43 _isAtCharacterCreation = gameMenu;
44 return result;
45 }
46
47 private void RebuildList()
48 {
52 {
53 for (int i = 0; i < 51; i++)
54 {
56 }
76 }
77 for (int j = 51; j < 123; j++)
78 {
80 }
90 {
95 }
97 {
98 availableHairstyles.AddRange(new int[10] { 132, 131, 130, 129, 128, 127, 126, 125, 124, 123 });
99 }
101 {
103 }
104 }
105}
void AddRange(IEnumerable< KeyValuePair< TKey, TValue > > collection)
void Add(TKey key, TValue value)
static bool gameMenu
Definition Main.cs:1926