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_08_KillZombies.cs
Go to the documentation of this file.
1using System;
2using Terraria;
4
5// Token: 0x020002F7 RID: 759
7{
8 // Token: 0x06001199 RID: 4505 RVA: 0x000569B8 File Offset: 0x00054BB8
10 {
11 return TutorialStep.GuideOverLoadState.StepInProgessDialogue;
12 }
13
14 // Token: 0x0600119A RID: 4506 RVA: 0x000569C8 File Offset: 0x00054BC8
15 public override string GetGuideString()
16 {
17 while ((!this.armourHead || !this.armourBody || !this.armourLegs) && !this.killing)
18 {
19 string <Value>k__BackingField = Language.GetText("Tutorial.EquipArmour").<Value>k__BackingField;
21 if ((!this.armourHead || !this.armourBody || !this.armourLegs) && !this.killing)
22 {
23 return Language.GetTextValue("TutorialTouch.EquipArmour");
24 }
25 }
26 return Language.GetText("Tutorial.KillZombies").<Value>k__BackingField;
27 }
28
29 // Token: 0x0600119B RID: 4507 RVA: 0x00056AD8 File Offset: 0x00054CD8
30 public override void Reset()
31 {
32 }
33
34 // Token: 0x0600119C RID: 4508 RVA: 0x00056AE8 File Offset: 0x00054CE8
35 public override void OnItemPlaced(int itemId, int tileId)
36 {
37 }
38
39 // Token: 0x0600119D RID: 4509 RVA: 0x00056AF8 File Offset: 0x00054CF8
40 public override void OnGuideDialogueOpen()
41 {
42 if (this.killing)
43 {
44 return;
45 }
46 if (this.armourHead && this.armourBody)
47 {
48 bool flag = this.armourLegs;
49 if (flag)
50 {
51 this.killing = true;
52 if (!flag)
53 {
54 }
57 return;
58 }
59 }
60 }
61
62 // Token: 0x0600119E RID: 4510 RVA: 0x00056B4C File Offset: 0x00054D4C
63 public override bool Update()
64 {
65 int num = 1;
66 if (num == 0)
67 {
68 }
69 int myPlayer = Main.myPlayer;
70 this.armourHead = num != 0;
73 if (this.killing)
74 {
76 DateTime dateTime = this.killStart;
77 double totalSeconds = (now - dateTime).TotalSeconds;
78 int num2 = 1;
79 this.complete = num2 != 0;
80 }
81 return this.complete;
82 }
83
84 // Token: 0x0600119F RID: 4511 RVA: 0x00056BBC File Offset: 0x00054DBC
86 {
87 }
88
89 // Token: 0x0400214A RID: 8522
90 private bool armourHead;
91
92 // Token: 0x0400214B RID: 8523
93 private bool armourBody;
94
95 // Token: 0x0400214C RID: 8524
96 private bool armourLegs;
97
98 // Token: 0x0400214D RID: 8525
99 private bool complete;
100
101 // Token: 0x0400214E RID: 8526
102 private bool killing;
103
104 // Token: 0x0400214F RID: 8527
106}
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
static DateTime Now
Definition DateTime.cs:530