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_05_Torches.cs
Go to the documentation of this file.
1using System;
3using Terraria;
5using UnityEngine;
6
7// Token: 0x020002F4 RID: 756
9{
10 // Token: 0x06001184 RID: 4484 RVA: 0x000564A4 File Offset: 0x000546A4
12 {
13 return TutorialStep.GuideOverLoadState.StepInProgessDialogue;
14 }
15
16 // Token: 0x06001185 RID: 4485 RVA: 0x000564B4 File Offset: 0x000546B4
17 public override string GetGuideString()
18 {
19 LocalizedText text = Language.GetText("Tutorial.CraftLightsKillSlimes2");
20 if (this.givenSword && !this.torchesPlaced)
21 {
22 KeyCode keyCode;
23 while (keyCode == KeyCode.None)
24 {
25 }
26 string text2;
27 return text2;
28 }
29 string <Value>k__BackingField = Language.GetText("Tutorial.CraftLightsKillSlimes").<Value>k__BackingField;
30 if ("Tutorial.CraftLightsKillSlimes" == null)
31 {
32 }
34 string textValue = Language.GetTextValue("TutorialTouch.CraftLightsKillSlimes2");
35 if (!this.givenSword || this.torchesPlaced)
36 {
37 return Language.GetTextValue("TutorialTouch.CraftLightsKillSlimes");
38 }
39 if ("Tutorial.CraftLightsCraftTorches" != null)
40 {
41 return "TutorialTouch.CraftLightsCraftTorches";
42 }
43 string text3;
44 return text3;
45 }
46
47 // Token: 0x06001186 RID: 4486 RVA: 0x000565AC File Offset: 0x000547AC
48 public override void Reset()
49 {
50 }
51
52 // Token: 0x06001187 RID: 4487 RVA: 0x000565BC File Offset: 0x000547BC
53 public override void OnItemPlaced(int itemId, int tileId)
54 {
55 int num = 1;
56 if (num == 0)
57 {
58 }
59 if (num != 0)
60 {
61 int num2 = 1;
63 }
64 }
65
66 // Token: 0x06001188 RID: 4488 RVA: 0x000565DC File Offset: 0x000547DC
67 public override void OnGuideDialogueOpen()
68 {
69 while (this.givenSword)
70 {
71 if (this.torchesPlaced)
72 {
73 return;
74 }
75 if (this.collectedGels)
76 {
77 long num = 0L;
78 base.SetTime(14, (int)num, true);
79 return;
80 }
81 }
82 long num2 = 0L;
83 base.SetTime(13, (int)num2, true);
84 this.givenSword = true;
85 }
86
87 // Token: 0x06001189 RID: 4489 RVA: 0x00056624 File Offset: 0x00054824
88 public override bool Update()
89 {
90 if (!true)
91 {
92 }
93 int myPlayer = Main.myPlayer;
94 int num = 1;
95 this.collectedGels = num != 0;
96 this.craftedTorches = num != 0;
97 int worldMouseX = Main.worldMouseX;
99 int worldMouseY = Main.worldMouseY;
101 int num2 = 32640;
102 if (num2 == 0)
103 {
104 }
105 if (num2 == 0)
106 {
107 }
108 bool flag = WorldGen.RoomNeeds(22);
109 Debug.Log("Room complete");
110 int num3 = 1;
112 return this.torchesPlaced;
113 }
114
115 // Token: 0x0600118A RID: 4490 RVA: 0x000566AC File Offset: 0x000548AC
117 {
118 }
119
120 // Token: 0x0400213B RID: 8507
121 private bool givenSword;
122
123 // Token: 0x0400213C RID: 8508
124 private bool collectedGels;
125
126 // Token: 0x0400213D RID: 8509
127 private bool craftedTorches;
128
129 // Token: 0x0400213E RID: 8510
130 private bool torchesPlaced;
131}
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
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int worldMouseY
Definition Main.cs:629
static int worldMouseX
Definition Main.cs:615
static bool RoomNeeds(int npcType)
Definition WorldGen.cs:715
override TutorialStep.GuideOverLoadState GetGuideState()
override void OnItemPlaced(int itemId, int tileId)
static void Log(object message)
Definition Debug.cs:51
static XNAUnityRunner.ForcedInputMode PrimaryInputMode