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.
1
using
System
;
2
using
Terraria
;
3
using
Terraria.Localization
;
4
5
// Token: 0x020002F6 RID: 758
6
public
class
TutorialStep_07_Armour
:
TutorialStep
7
{
8
// Token: 0x06001192 RID: 4498 RVA: 0x00056798 File Offset: 0x00054998
9
public
override
TutorialStep.GuideOverLoadState
GetGuideState
()
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;
23
XNAUnityRunner.ForcedInputMode
primaryInputMode
=
XNAUnityRunner
.
PrimaryInputMode
;
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 = 0
L
;
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
;
90
this.armourBody
=
flag2
;
91
bool
flag3
= this.
armourLegs
;
92
long
num = 0
L
;
93
this.armourLegs
= num != 0
L
;
94
long
num2
= 0
L
;
95
bool
flag4
= this.
collectedBars
;
96
bool
flag5
= this.
complete
;
97
this.collectedBars
= num2 != 0
L
;
98
return
flag5
;
99
}
100
101
// Token: 0x06001198 RID: 4504 RVA: 0x000569A4 File Offset: 0x00054BA4
102
public
TutorialStep_07_Armour
()
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
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Terraria.Localization.Language.GetText
static LocalizedText GetText(string key)
Definition
Language.cs:44
Terraria.Localization.Language.GetTextValue
static string GetTextValue(string key)
Definition
Language.cs:54
Terraria.Localization.Language
Definition
Language.cs:11
Terraria.Main.myPlayer
static int myPlayer
Definition
Main.cs:2337
Terraria.Main
Definition
Main.cs:67
TutorialStep_07_Armour.GetGuideString
override string GetGuideString()
Definition
TutorialStep_07_Armour.cs:15
TutorialStep_07_Armour.anvilPlaced
bool anvilPlaced
Definition
TutorialStep_07_Armour.cs:113
TutorialStep_07_Armour.armourHead
bool armourHead
Definition
TutorialStep_07_Armour.cs:119
TutorialStep_07_Armour.furnacePlaced
bool furnacePlaced
Definition
TutorialStep_07_Armour.cs:107
TutorialStep_07_Armour.TutorialStep_07_Armour
TutorialStep_07_Armour()
Definition
TutorialStep_07_Armour.cs:102
TutorialStep_07_Armour.armourBody
bool armourBody
Definition
TutorialStep_07_Armour.cs:122
TutorialStep_07_Armour.copperGiven
bool copperGiven
Definition
TutorialStep_07_Armour.cs:116
TutorialStep_07_Armour.GetGuideState
override TutorialStep.GuideOverLoadState GetGuideState()
Definition
TutorialStep_07_Armour.cs:9
TutorialStep_07_Armour.Reset
override void Reset()
Definition
TutorialStep_07_Armour.cs:45
TutorialStep_07_Armour.armourLegs
bool armourLegs
Definition
TutorialStep_07_Armour.cs:125
TutorialStep_07_Armour.complete
bool complete
Definition
TutorialStep_07_Armour.cs:128
TutorialStep_07_Armour.OnGuideDialogueOpen
override void OnGuideDialogueOpen()
Definition
TutorialStep_07_Armour.cs:56
TutorialStep_07_Armour.Update
override bool Update()
Definition
TutorialStep_07_Armour.cs:81
TutorialStep_07_Armour.collectedBars
bool collectedBars
Definition
TutorialStep_07_Armour.cs:110
TutorialStep_07_Armour.OnItemPlaced
override void OnItemPlaced(int itemId, int tileId)
Definition
TutorialStep_07_Armour.cs:50
TutorialStep_07_Armour
Definition
TutorialStep_07_Armour.cs:7
TutorialStep.GuideOverLoadState
GuideOverLoadState
Definition
TutorialStep.cs:80
TutorialStep
Definition
TutorialStep.cs:8
XNAUnityRunner.PrimaryInputMode
static XNAUnityRunner.ForcedInputMode PrimaryInputMode
Definition
XNAUnityRunner.cs:26
XNAUnityRunner.ForcedInputMode
ForcedInputMode
Definition
XNAUnityRunner.cs:912
XNAUnityRunner
Definition
XNAUnityRunner.cs:12
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
Terraria.Localization
Definition
GameCulture.cs:7
Terraria
Definition
Achievement.cs:10
source
TutorialStep_07_Armour.cs
Generated by
1.10.0