terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
TutorialStep_07_Armour.cs
Go to the documentation of this file.
1using System;
2using Terraria;
4
5// Token: 0x020002F6 RID: 758
7{
8 // Token: 0x06001192 RID: 4498 RVA: 0x00056798 File Offset: 0x00054998
10 {
11 return TutorialStep.GuideOverLoadState.StepInProgessDialogue;
12 }
13
14 // Token: 0x06001193 RID: 4499 RVA: 0x000567A8 File Offset: 0x000549A8
15 public override string GetGuideString()
16 {
17 if (this.copperGiven)
18 {
19 string textValue;
20 if (this.armourHead && this.armourLegs && this.armourBody)
21 {
22 string <Value>k__BackingField = Language.GetText("Tutorial.EquipArmour").<Value>k__BackingField;
24 textValue = Language.GetTextValue("TutorialTouch.EquipArmour");
25 return textValue;
26 }
27 return textValue;
28 }
29 else
30 {
31 string textValue;
32 if ("Tutorial.CraftCopperArmour2" != null)
33 {
34 return textValue;
35 }
36 if ("Tutorial.CraftCopperArmour" != null)
37 {
38 return textValue;
39 }
40 return Language.GetText("Tutorial.FurnaceSmelt2").<Value>k__BackingField;
41 }
42 }
43
44 // Token: 0x06001194 RID: 4500 RVA: 0x000568B4 File Offset: 0x00054AB4
45 public override void Reset()
46 {
47 }
48
49 // Token: 0x06001195 RID: 4501 RVA: 0x000568C4 File Offset: 0x00054AC4
50 public override void OnItemPlaced(int itemId, int tileId)
51 {
52 this.furnacePlaced = true;
53 }
54
55 // Token: 0x06001196 RID: 4502 RVA: 0x000568E0 File Offset: 0x00054AE0
56 public override void OnGuideDialogueOpen()
57 {
58 bool flag = this.anvilPlaced;
59 bool flag2 = this.copperGiven;
60 if (flag)
61 {
62 if (!flag2)
63 {
64 this.copperGiven = true;
65 return;
66 }
67 }
68 else if (!true)
69 {
70 return;
71 }
72 if (this.armourHead && this.armourLegs && this.armourBody)
73 {
74 long num = 0L;
75 base.SetTime(19, (int)num, true);
76 this.complete = true;
77 }
78 }
79
80 // Token: 0x06001197 RID: 4503 RVA: 0x00056938 File Offset: 0x00054B38
81 public override bool Update()
82 {
83 if (!true)
84 {
85 }
86 int myPlayer = Main.myPlayer;
87 bool flag = this.armourHead;
88 this.armourHead = flag;
89 bool flag2 = this.armourBody;
91 bool flag3 = this.armourLegs;
92 long num = 0L;
93 this.armourLegs = num != 0L;
94 long num2 = 0L;
95 bool flag4 = this.collectedBars;
96 bool flag5 = this.complete;
97 this.collectedBars = num2 != 0L;
98 return flag5;
99 }
100
101 // Token: 0x06001198 RID: 4504 RVA: 0x000569A4 File Offset: 0x00054BA4
103 {
104 }
105
106 // Token: 0x04002142 RID: 8514
107 private bool furnacePlaced;
108
109 // Token: 0x04002143 RID: 8515
110 private bool collectedBars;
111
112 // Token: 0x04002144 RID: 8516
113 private bool anvilPlaced;
114
115 // Token: 0x04002145 RID: 8517
116 private bool copperGiven;
117
118 // Token: 0x04002146 RID: 8518
119 private bool armourHead;
120
121 // Token: 0x04002147 RID: 8519
122 private bool armourBody;
123
124 // Token: 0x04002148 RID: 8520
125 private bool armourLegs;
126
127 // Token: 0x04002149 RID: 8521
128 private bool complete;
129}
class f__AnonymousType0<< Count > j__TPar
static LocalizedText GetText(string key)
Definition Language.cs:44
static string GetTextValue(string key)
Definition Language.cs:54
static int myPlayer
Definition Main.cs:2337
override TutorialStep.GuideOverLoadState GetGuideState()
override void OnItemPlaced(int itemId, int tileId)
static XNAUnityRunner.ForcedInputMode PrimaryInputMode