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
Recipe.cs
Go to the documentation of this file.
1using System;
9
10namespace Terraria
11{
12 // Token: 0x02000455 RID: 1109
13 public class Recipe
14 {
15 // Token: 0x0600298A RID: 10634 RVA: 0x0019BEF0 File Offset: 0x0019A0F0
16 public void RequireGroup(string name)
17 {
18 if (!true)
19 {
20 }
21 int[] array = this.acceptedGroups;
22 }
23
24 // Token: 0x0600298B RID: 10635 RVA: 0x0019BF0C File Offset: 0x0019A10C
25 public void RequireGroup(int id)
26 {
27 int[] array = this.acceptedGroups;
28 }
29
30 // Token: 0x0600298C RID: 10636 RVA: 0x0019BF24 File Offset: 0x0019A124
31 public bool ProcessGroupsForText(int type, [Out] string theText)
32 {
33 if (this.acceptedGroups == null)
34 {
35 }
36 if ("" == null)
37 {
38 return;
39 }
40 }
41
42 // Token: 0x0600298D RID: 10637 RVA: 0x0019BF48 File Offset: 0x0019A148
43 public bool AcceptsGroup(int groupId)
44 {
45 /*
46An exception occurred when decompiling this method (0600298D)
47
48ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Recipe::AcceptsGroup(System.Int32)
49
50 ---> System.Exception: Basic block has to end with unconditional control flow.
51{
52 Block_0:
53 stloc:int32[](var_0_06, ldfld:int32[](Recipe::acceptedGroups, ldloc:Recipe(this)))
54}
55
56 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
57 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
58 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
59 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
60 --- End of inner exception stack trace ---
61 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
62 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
63*/;
64 }
65
66 // Token: 0x0600298E RID: 10638 RVA: 0x0019BF64 File Offset: 0x0019A164
67 public bool AcceptedByItemGroups(int invType, int reqType)
68 {
69 int[] array = this.acceptedGroups;
70 if (array == null)
71 {
72 }
73 if (array == null)
74 {
75 return;
76 }
77 }
78
79 // Token: 0x0600298F RID: 10639 RVA: 0x000021DB File Offset: 0x000003DB
80 public Item AddCustomShimmerResult(int itemType, int itemStack = 1)
81 {
82 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
83 }
84
85 // Token: 0x06002990 RID: 10640 RVA: 0x0019BF84 File Offset: 0x0019A184
86 public Recipe()
87 {
88 Item[] array = this.requiredItem;
89 int[] array2 = this.requiredTile;
90 int[] array3 = this.acceptedGroups;
91 }
92
93 // Token: 0x06002991 RID: 10641 RVA: 0x0019BFC4 File Offset: 0x0019A1C4
94 public void Create()
95 {
96 Item[] array = this.requiredItem;
97 Vector2 position = array.position;
98 if (array != null)
99 {
100 bool flag = this.alchemy;
101 if (flag)
102 {
103 if (!flag)
104 {
105 }
106 int myPlayer = Main.myPlayer;
107 if (flag)
108 {
109 if (!flag)
110 {
111 }
112 int num;
113 if (num == 0)
114 {
115 return;
116 }
117 }
118 }
119 if (!flag)
120 {
121 }
122 int myPlayer2 = Main.myPlayer;
123 if (this.anyFragment || this.anyIronBar)
124 {
125 }
126 return;
127 }
129 int myPlayer3 = Main.myPlayer;
130 Item item = this.createItem;
131 Recipe.FindRecipes(false);
132 }
133
134 // Token: 0x06002992 RID: 10642 RVA: 0x0019C188 File Offset: 0x0019A388
135 public bool useWood(int invType, int reqType)
136 {
137 if (this.anyWood)
138 {
139 return;
140 }
141 }
142
143 // Token: 0x06002993 RID: 10643 RVA: 0x0019C1AC File Offset: 0x0019A3AC
144 public bool useIronBar(int invType, int reqType)
145 {
146 if (this.anyIronBar)
147 {
148 return true;
149 }
150 }
151
152 // Token: 0x06002994 RID: 10644 RVA: 0x0019C1C4 File Offset: 0x0019A3C4
153 public bool useSand(int invType, int reqType)
154 {
155 if (this.anySand)
156 {
157 return;
158 }
159 }
160
161 // Token: 0x06002995 RID: 10645 RVA: 0x0019C1E0 File Offset: 0x0019A3E0
162 public bool useFragment(int invType, int reqType)
163 {
164 /*
165An exception occurred when decompiling this method (06002995)
166
167ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Recipe::useFragment(System.Int32,System.Int32)
168
169 ---> System.Exception: Basic block has to end with unconditional control flow.
170{
171 Block_0:
172 stloc:bool(var_0_06, ldfld:bool(Recipe::anyFragment, ldloc:Recipe(this)))
173}
174
175 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
176 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
177 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
178 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
179 --- End of inner exception stack trace ---
180 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
181 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
182*/;
183 }
184
185 // Token: 0x06002996 RID: 10646 RVA: 0x0019C1F8 File Offset: 0x0019A3F8
186 public bool usePressurePlate(int invType, int reqType)
187 {
188 if (this.anyPressurePlate)
189 {
190 return;
191 }
192 }
193
194 // Token: 0x06002997 RID: 10647 RVA: 0x0019C220 File Offset: 0x0019A420
195 public static void GetThroughDelayedFindRecipes()
196 {
197 if (!true)
198 {
199 }
200 Recipe.FindRecipes(false);
201 }
202
203 // Token: 0x06002998 RID: 10648 RVA: 0x0019C238 File Offset: 0x0019A438
204 public static void FindRecipes(bool canDelayCheck = false)
205 {
206 if (!true)
207 {
208 }
209 }
210
211 // Token: 0x06002999 RID: 10649 RVA: 0x0019C2AC File Offset: 0x0019A4AC
212 private static void AddToAvailableRecipes(int recipeIndex)
213 {
214 if (!true)
215 {
216 }
217 int[] availableRecipe = Main.availableRecipe;
218 int numAvailableRecipes = Main.numAvailableRecipes;
220 }
221
222 // Token: 0x0600299A RID: 10650 RVA: 0x0019C2DC File Offset: 0x0019A4DC
224 {
225 int num = 1;
226 if (num != 0)
227 {
228 if (num == 0)
229 {
230 }
231 throw new OutOfMemoryException();
232 }
233 if (!false)
234 {
235 }
236 throw new OutOfMemoryException();
237 }
238
239 // Token: 0x0600299B RID: 10651 RVA: 0x0019C308 File Offset: 0x0019A508
241 {
242 }
243
244 // Token: 0x0600299C RID: 10652 RVA: 0x0019C31C File Offset: 0x0019A51C
246 {
247 /*
248An exception occurred when decompiling this method (0600299C)
249
250ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Recipe::PlayerMeetsEnvironmentConditions(Terraria.Player,Terraria.Recipe)
251
252 ---> System.Exception: Basic block has to end with unconditional control flow.
253{
254 Block_3:
255 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_0C))
256}
257
258 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
259 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
260 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
261 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
262 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
263 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
264 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
265 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
266 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
267 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
268 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
269 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
270 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
271 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
272 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
273 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
274 --- End of inner exception stack trace ---
275 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
276 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
277*/;
278 }
279
280 // Token: 0x0600299D RID: 10653 RVA: 0x0019C34C File Offset: 0x0019A54C
282 {
283 /*
284An exception occurred when decompiling this method (0600299D)
285
286ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Recipe::PlayerMeetsTileRequirements(Terraria.Player,Terraria.Recipe)
287
288 ---> System.Exception: Basic block has to end with unconditional control flow.
289{
290 Block_0:
291 stloc:Vector2(var_0_06, ldfld:Vector2(Entity::position, ldloc:Player[exp:Entity](player)))
292}
293
294 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
295 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
296 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
297 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
298 --- End of inner exception stack trace ---
299 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
300 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
301*/;
302 }
303
304 // Token: 0x0600299E RID: 10654 RVA: 0x0019C368 File Offset: 0x0019A568
305 private static void CollectItemsToCraftWithFrom(Player player)
306 {
307 if (!true)
308 {
309 }
310 Item[] inventory = player.inventory;
311 int num = 58;
312 Recipe.CollectItems(inventory, num);
313 bool flag = player.useVoidBag();
314 int chest = player.chest;
315 Item[] item = player.bank4.item;
316 int num2 = 40;
318 int chest2 = player.chest;
319 int chest3 = player.chest;
321 }
322
323 // Token: 0x0600299F RID: 10655 RVA: 0x0019C3CC File Offset: 0x0019A5CC
324 private static void AddFakeCountsForItemGroups()
325 {
326 int num = 1;
327 if (num == 0)
328 {
329 }
330 if (num == 0)
331 {
332 }
333 }
334
335 // Token: 0x060029A0 RID: 10656 RVA: 0x0019C3F8 File Offset: 0x0019A5F8
336 private static void CollectItems(Item[] currentInventory, int slotCap)
337 {
338 if (!true)
339 {
340 }
341 }
342
343 // Token: 0x060029A1 RID: 10657 RVA: 0x0019C408 File Offset: 0x0019A608
344 private static void CollectGuideRecipes()
345 {
346 int num = 1;
347 if (num == 0)
348 {
349 }
350 int type = Main.guideItem.type;
351 if (num == 0)
352 {
353 }
354 if (num != 0 && num != 0)
355 {
356 if (num == 0)
357 {
358 }
359 Item guideItem = Main.guideItem;
360 if (num != 0)
361 {
362 }
363 if (num == 0)
364 {
365 return;
366 }
367 if (num == 0)
368 {
369 }
370 int[] availableRecipe = Main.availableRecipe;
371 int numAvailableRecipes = Main.numAvailableRecipes;
373 }
374 }
375
376 // Token: 0x060029A2 RID: 10658 RVA: 0x0019C474 File Offset: 0x0019A674
377 public static void ClearAvailableRecipes()
378 {
379 if (!true)
380 {
381 }
382 int[] availableRecipe = Main.availableRecipe;
383 }
384
385 // Token: 0x060029A3 RID: 10659 RVA: 0x0019C498 File Offset: 0x0019A698
386 private static void VisuallyRepositionRecipes(float focusY)
387 {
388 int num = 1;
389 if (num == 0)
390 {
391 }
392 int focusRecipe = Main.focusRecipe;
393 if (num == 0)
394 {
395 }
396 }
397
398 // Token: 0x060029A4 RID: 10660 RVA: 0x0019C4B8 File Offset: 0x0019A6B8
399 private static void TryRefocusingRecipe(int oldRecipe)
400 {
401 int num = 1;
402 if (num == 0)
403 {
404 }
405 int numAvailableRecipes = Main.numAvailableRecipes;
406 if (num == 0)
407 {
408 }
409 int[] availableRecipe = Main.availableRecipe;
410 }
411
412 // Token: 0x060029A5 RID: 10661 RVA: 0x0019C528 File Offset: 0x0019A728
413 public static void SetupRecipeGroups()
414 {
415 if (!true)
416 {
417 }
418 if (!true)
419 {
420 }
421 int num;
422 if (num == 0)
423 {
424 }
425 int num2;
426 if (num2 == 0)
427 {
428 }
429 int num3;
430 if (num3 == 0)
431 {
432 }
433 int num4;
434 if (num4 == 0)
435 {
436 }
437 int num5;
438 if (num5 == 0)
439 {
440 }
441 int num6;
442 if (num6 == 0)
443 {
444 }
445 int num7;
446 if (num7 == 0)
447 {
448 }
449 int num8;
450 if (num8 == 0)
451 {
452 }
453 int num9;
454 if (num9 == 0)
455 {
456 }
457 int num10;
458 if (num10 == 0)
459 {
460 }
461 int num11;
462 if (num11 == 0)
463 {
464 }
465 int num12;
466 if (num12 == 0)
467 {
468 }
469 int num13;
470 if (num13 == 0)
471 {
472 }
473 int num14;
474 if (num14 == 0)
475 {
476 }
477 int num15;
478 if (num15 == 0)
479 {
480 }
481 int num16;
482 if (num16 == 0)
483 {
484 }
485 int num17;
486 if (num17 == 0)
487 {
488 }
489 int num18;
490 if (num18 == 0)
491 {
492 }
493 int num19;
494 if (num19 == 0)
495 {
496 }
497 int num20;
498 if (num20 == 0)
499 {
500 }
501 int num21;
502 if (num21 == 0)
503 {
504 }
505 int num22;
506 if (num22 == 0)
507 {
508 }
509 int num23;
510 if (num23 == 0)
511 {
512 }
513 }
514
515 // Token: 0x060029A6 RID: 10662 RVA: 0x0019C594 File Offset: 0x0019A794
516 public static void UpdateItemVariants()
517 {
518 if (!true)
519 {
520 }
521 }
522
523 // Token: 0x060029A7 RID: 10663 RVA: 0x0019C5B8 File Offset: 0x0019A7B8
524 public static void SetupRecipes()
525 {
526 /*
527An exception occurred when decompiling this method (060029A7)
528
529ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Terraria.Recipe::SetupRecipes()
530
531 ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
532 at ICSharpCode.Decompiler.ILAst.ILAstBuilder.VariableSlot.CloneVariableState(VariableSlot[] state) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 78
533 at ICSharpCode.Decompiler.ILAst.ILAstBuilder.StackAnalysis(MethodDef methodDef) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 407
534 at ICSharpCode.Decompiler.ILAst.ILAstBuilder.Build(MethodDef methodDef, Boolean optimize, DecompilerContext context) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstBuilder.cs:line 278
535 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 117
536 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
537 --- End of inner exception stack trace ---
538 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
539 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
540*/;
541 }
542
543 // Token: 0x060029A8 RID: 10664 RVA: 0x001B018C File Offset: 0x001AE38C
545 {
546 int num = 1;
547 if (num == 0)
548 {
549 }
550 if (num == 0)
551 {
552 }
553 }
554
555 // Token: 0x060029A9 RID: 10665 RVA: 0x001B01C0 File Offset: 0x001AE3C0
556 private void ReplaceItemUseFlagWithGroup(bool flag, int groupId)
557 {
558 int[] array = this.acceptedGroups;
559 }
560
561 // Token: 0x060029AA RID: 10666 RVA: 0x001B01D8 File Offset: 0x001AE3D8
562 private static void CreateRequiredItemQuickLookups()
563 {
564 int num = 1;
565 if (num == 0)
566 {
567 }
568 if (num == 0)
569 {
570 }
571 if (num == 0)
572 {
573 }
574 }
575
576 // Token: 0x060029AB RID: 10667 RVA: 0x001B0200 File Offset: 0x001AE400
578 {
579 int num = 1;
580 if (num == 0)
581 {
582 }
583 if (num == 0)
584 {
585 }
586 if (num == 0)
587 {
588 }
589 }
590
591 // Token: 0x060029AC RID: 10668 RVA: 0x001B0220 File Offset: 0x001AE420
592 public static void UpdateWhichItemsAreMaterials()
593 {
594 }
595
596 // Token: 0x060029AD RID: 10669 RVA: 0x001B0230 File Offset: 0x001AE430
597 public static void UpdateWhichItemsAreCrafted()
598 {
599 int num = 1;
600 if (num == 0)
601 {
602 }
603 if (num == 0)
604 {
605 }
606 if (num == 0)
607 {
608 }
609 }
610
611 // Token: 0x060029AE RID: 10670 RVA: 0x001B024C File Offset: 0x001AE44C
612 private static void AddSolarFurniture()
613 {
614 if (!true)
615 {
616 }
638 }
639
640 // Token: 0x060029AF RID: 10671 RVA: 0x001B03D8 File Offset: 0x001AE5D8
641 private static void AddVortexFurniture()
642 {
643 if (!true)
644 {
645 }
667 }
668
669 // Token: 0x060029B0 RID: 10672 RVA: 0x001B0564 File Offset: 0x001AE764
670 private static void AddNebulaFurniture()
671 {
672 if (!true)
673 {
674 }
696 }
697
698 // Token: 0x060029B1 RID: 10673 RVA: 0x001B06F0 File Offset: 0x001AE8F0
699 private static void AddStardustFurniture()
700 {
701 if (!true)
702 {
703 }
725 }
726
727 // Token: 0x060029B2 RID: 10674 RVA: 0x001B087C File Offset: 0x001AEA7C
728 private static void AddSpiderFurniture()
729 {
730 if (!true)
731 {
732 }
754 }
755
756 // Token: 0x060029B3 RID: 10675 RVA: 0x001B0A04 File Offset: 0x001AEC04
757 private static void AddLesionFurniture()
758 {
759 if (!true)
760 {
761 }
783 }
784
785 // Token: 0x060029B4 RID: 10676 RVA: 0x001B0BA0 File Offset: 0x001AEDA0
786 private static void AddSandstoneFurniture()
787 {
788 if (!true)
789 {
790 }
811 }
812
813 // Token: 0x060029B5 RID: 10677 RVA: 0x001B0D14 File Offset: 0x001AEF14
814 private static void AddBambooFurniture()
815 {
816 if (!true)
817 {
818 }
838 }
839
840 // Token: 0x060029B6 RID: 10678 RVA: 0x001B0E78 File Offset: 0x001AF078
841 private static void AddCoralFurniture()
842 {
843 if (!true)
844 {
845 }
865 }
866
867 // Token: 0x060029B7 RID: 10679 RVA: 0x001B0FDC File Offset: 0x001AF1DC
868 private static void AddBalloonFurniture()
869 {
870 if (!true)
871 {
872 }
873 }
874
875 // Token: 0x060029B8 RID: 10680 RVA: 0x001B1190 File Offset: 0x001AF390
877 {
878 if (!true)
879 {
880 }
906 }
907
908 // Token: 0x060029B9 RID: 10681 RVA: 0x001B1360 File Offset: 0x001AF560
909 private static void CreateReversePlatformRecipes()
910 {
911 int num = 1;
912 if (num == 0)
913 {
914 }
915 if (num == 0)
916 {
917 }
918 }
919
920 // Token: 0x060029BA RID: 10682 RVA: 0x001B1394 File Offset: 0x001AF594
921 private static void CreateReverseWallRecipes()
922 {
923 int num = 1;
924 if (num == 0)
925 {
926 }
927 if (num == 0)
928 {
929 }
930 if (num == 0)
931 {
932 }
933 if (num == 0)
934 {
935 if (num == 0)
936 {
937 }
938 return;
939 }
940 }
941
942 // Token: 0x060029BB RID: 10683 RVA: 0x001B13D0 File Offset: 0x001AF5D0
944 {
945 Item[] array = this.requiredItem;
946 Vector2 position = array.position;
947 Item[] array2 = this.requiredItem;
948 }
949
950 // Token: 0x060029BC RID: 10684 RVA: 0x001B13FC File Offset: 0x001AF5FC
952 {
953 int[] array = this.requiredTile;
954 }
955
956 // Token: 0x060029BD RID: 10685 RVA: 0x001B1414 File Offset: 0x001AF614
957 private static void AddRecipe()
958 {
959 int num = 1;
960 if (num == 0)
961 {
962 }
963 if (num == 0)
964 {
965 }
966 if (num == 0)
967 {
968 }
969 }
970
971 // Token: 0x060029BE RID: 10686 RVA: 0x001B143C File Offset: 0x001AF63C
972 public static int GetRequiredTileStyle(int tileID)
973 {
974 if (!true)
975 {
976 return;
977 }
978 }
979
980 // Token: 0x060029BF RID: 10687 RVA: 0x001B1450 File Offset: 0x001AF650
981 public bool ContainsIngredient(int itemType)
982 {
983 /*
984An exception occurred when decompiling this method (060029BF)
985
986ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Recipe::ContainsIngredient(System.Int32)
987
988 ---> System.Exception: Basic block has to end with unconditional control flow.
989{
990 Block_0:
991 stloc:valuetype Terraria.Recipe/RequiredItemEntry[](var_0_06, ldfld:valuetype Terraria.Recipe/RequiredItemEntry[](Recipe::requiredItemQuickLookup, ldloc:Recipe(this)))
992}
993
994 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
995 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
996 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
997 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
998 --- End of inner exception stack trace ---
999 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
1000 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
1001*/;
1002 }
1003
1004 // Token: 0x060029C0 RID: 10688 RVA: 0x001B146C File Offset: 0x001AF66C
1005 // Note: this type is marked as 'beforefieldinit'.
1006 static Recipe()
1007 {
1008 }
1009
1010 // Token: 0x040036BB RID: 14011
1011 public const int maxRequirements = 15;
1012
1013 // Token: 0x040036BC RID: 14012
1014 public const int maxRecipes = 3000;
1015
1016 // Token: 0x040036BD RID: 14013
1017 public static int numRecipes;
1018
1019 // Token: 0x040036BE RID: 14014
1020 private static Recipe currentRecipe;
1021
1022 // Token: 0x040036BF RID: 14015
1024
1025 // Token: 0x040036C0 RID: 14016
1027
1028 // Token: 0x040036C1 RID: 14017
1029 public int[] requiredTile;
1030
1031 // Token: 0x040036C2 RID: 14018
1032 public int[] acceptedGroups;
1033
1034 // Token: 0x040036C3 RID: 14019
1036
1037 // Token: 0x040036C4 RID: 14020
1039
1040 // Token: 0x040036C5 RID: 14021
1041 public bool needHoney;
1042
1043 // Token: 0x040036C6 RID: 14022
1044 public bool needWater;
1045
1046 // Token: 0x040036C7 RID: 14023
1047 public bool needLava;
1048
1049 // Token: 0x040036C8 RID: 14024
1050 public bool anyWood;
1051
1052 // Token: 0x040036C9 RID: 14025
1053 public bool anyIronBar;
1054
1055 // Token: 0x040036CA RID: 14026
1056 public bool anyPressurePlate;
1057
1058 // Token: 0x040036CB RID: 14027
1059 public bool anySand;
1060
1061 // Token: 0x040036CC RID: 14028
1062 public bool anyFragment;
1063
1064 // Token: 0x040036CD RID: 14029
1065 public bool alchemy;
1066
1067 // Token: 0x040036CE RID: 14030
1068 public bool needSnowBiome;
1069
1070 // Token: 0x040036CF RID: 14031
1072
1073 // Token: 0x040036D0 RID: 14032
1075
1076 // Token: 0x040036D1 RID: 14033
1077 public bool notDecraftable;
1078
1079 // Token: 0x040036D2 RID: 14034
1080 public bool crimson;
1081
1082 // Token: 0x040036D3 RID: 14035
1083 public bool corruption;
1084
1085 // Token: 0x040036D4 RID: 14036
1086 private static Item defaultRecipeItem;
1087
1088 // Token: 0x040036D5 RID: 14037
1089 private static bool _hasDelayedFindRecipes;
1090
1091 // Token: 0x040036D6 RID: 14038
1093
1094 // Token: 0x02000456 RID: 1110
1095 private struct RequiredItemEntry
1096 {
1097 // Token: 0x040036D7 RID: 14039
1099
1100 // Token: 0x040036D8 RID: 14040
1101 public int stack;
1102 }
1103
1104 // Token: 0x02000457 RID: 1111
1106 [Serializable]
1107 private sealed class <>c
1108 {
1109 // Token: 0x060029C1 RID: 10689 RVA: 0x001B147C File Offset: 0x001AF67C
1110 // Note: this type is marked as 'beforefieldinit'.
1111 static <>c()
1112 {
1113 }
1114
1115 // Token: 0x060029C2 RID: 10690 RVA: 0x001B148C File Offset: 0x001AF68C
1116 public <>c()
1117 {
1118 }
1119
1120 // Token: 0x060029C3 RID: 10691 RVA: 0x001B14A0 File Offset: 0x001AF6A0
1122 {
1123 if (!true)
1124 {
1125 }
1126 string npcnameValue = Lang.GetNPCNameValue(74);
1127 string text;
1128 return text;
1129 }
1130
1131 // Token: 0x060029C4 RID: 10692 RVA: 0x001B14BC File Offset: 0x001AF6BC
1133 {
1134 if (!true)
1135 {
1136 }
1137 string npcnameValue = Lang.GetNPCNameValue(367);
1138 string text;
1139 return text;
1140 }
1141
1142 // Token: 0x060029C5 RID: 10693 RVA: 0x001B14D8 File Offset: 0x001AF6D8
1144 {
1145 if (!true)
1146 {
1147 }
1148 string npcnameValue = Lang.GetNPCNameValue(299);
1149 string text;
1150 return text;
1151 }
1152
1153 // Token: 0x060029C6 RID: 10694 RVA: 0x001B14F4 File Offset: 0x001AF6F4
1155 {
1156 if (!true)
1157 {
1158 }
1159 string text;
1160 return text;
1161 }
1162
1163 // Token: 0x060029C7 RID: 10695 RVA: 0x001B1508 File Offset: 0x001AF708
1165 {
1166 if (!true)
1167 {
1168 }
1169 string text;
1170 return text;
1171 }
1172
1173 // Token: 0x060029C8 RID: 10696 RVA: 0x001B151C File Offset: 0x001AF71C
1175 {
1176 if (!true)
1177 {
1178 }
1179 string text;
1180 return text;
1181 }
1182
1183 // Token: 0x060029C9 RID: 10697 RVA: 0x001B1530 File Offset: 0x001AF730
1185 {
1186 if (!true)
1187 {
1188 }
1189 string text;
1190 return text;
1191 }
1192
1193 // Token: 0x060029CA RID: 10698 RVA: 0x001B1544 File Offset: 0x001AF744
1195 {
1196 if (!true)
1197 {
1198 }
1199 string text;
1200 return text;
1201 }
1202
1203 // Token: 0x060029CB RID: 10699 RVA: 0x001B1558 File Offset: 0x001AF758
1205 {
1206 if (!true)
1207 {
1208 }
1209 string text;
1210 return text;
1211 }
1212
1213 // Token: 0x060029CC RID: 10700 RVA: 0x001B156C File Offset: 0x001AF76C
1215 {
1216 if (!true)
1217 {
1218 }
1219 string npcnameValue = Lang.GetNPCNameValue(616);
1220 string text;
1221 return text;
1222 }
1223
1224 // Token: 0x060029CD RID: 10701 RVA: 0x001B1588 File Offset: 0x001AF788
1226 {
1227 if (!true)
1228 {
1229 }
1230 string textValue = Language.GetTextValue("Misc.Macaw");
1231 string text;
1232 return text;
1233 }
1234
1235 // Token: 0x060029CE RID: 10702 RVA: 0x001B15A4 File Offset: 0x001AF7A4
1237 {
1238 if (!true)
1239 {
1240 }
1241 string textValue = Language.GetTextValue("Misc.Cockatiel");
1242 string text;
1243 return text;
1244 }
1245
1246 // Token: 0x060029CF RID: 10703 RVA: 0x001B15C0 File Offset: 0x001AF7C0
1248 {
1249 if (!true)
1250 {
1251 }
1252 string textValue = Language.GetTextValue("Misc.CloudBalloon");
1253 string text;
1254 return text;
1255 }
1256
1257 // Token: 0x060029D0 RID: 10704 RVA: 0x001B15DC File Offset: 0x001AF7DC
1259 {
1260 if (!true)
1261 {
1262 }
1263 string textValue = Language.GetTextValue("Misc.BlizzardBalloon");
1264 string text;
1265 return text;
1266 }
1267
1268 // Token: 0x060029D1 RID: 10705 RVA: 0x001B15F8 File Offset: 0x001AF7F8
1270 {
1271 if (!true)
1272 {
1273 }
1274 string textValue = Language.GetTextValue("Misc.SandstormBalloon");
1275 string text;
1276 return text;
1277 }
1278
1279 // Token: 0x060029D2 RID: 10706 RVA: 0x001B1614 File Offset: 0x001AF814
1281 {
1282 if (!true)
1283 {
1284 }
1285 string textValue = Language.GetTextValue("Misc.CritterGuides");
1286 string text;
1287 return text;
1288 }
1289
1290 // Token: 0x060029D3 RID: 10707 RVA: 0x001B1630 File Offset: 0x001AF830
1292 {
1293 if (!true)
1294 {
1295 }
1296 string textValue = Language.GetTextValue("Misc.NatureGuides");
1297 string text;
1298 return text;
1299 }
1300
1301 // Token: 0x060029D4 RID: 10708 RVA: 0x001B164C File Offset: 0x001AF84C
1303 {
1304 if (!true)
1305 {
1306 }
1307 string textValue = Language.GetTextValue("Misc.Fruit");
1308 string text;
1309 return text;
1310 }
1311
1312 // Token: 0x060029D5 RID: 10709 RVA: 0x001B1668 File Offset: 0x001AF868
1314 {
1315 if (!true)
1316 {
1317 }
1318 string textValue = Language.GetTextValue("Misc.Balloon");
1319 string text;
1320 return text;
1321 }
1322
1323 // Token: 0x060029D6 RID: 10710 RVA: 0x001B1684 File Offset: 0x001AF884
1325 {
1326 return "replaceme wood";
1327 }
1328
1329 // Token: 0x060029D7 RID: 10711 RVA: 0x001B1698 File Offset: 0x001AF898
1331 {
1332 return "replaceme sand";
1333 }
1334
1335 // Token: 0x060029D8 RID: 10712 RVA: 0x001B16AC File Offset: 0x001AF8AC
1337 {
1338 return "replaceme ironbar";
1339 }
1340
1341 // Token: 0x060029D9 RID: 10713 RVA: 0x001B16C0 File Offset: 0x001AF8C0
1343 {
1344 return "replaceme fragment";
1345 }
1346
1347 // Token: 0x060029DA RID: 10714 RVA: 0x001B16D4 File Offset: 0x001AF8D4
1349 {
1350 return "replaceme pressureplate";
1351 }
1352
1353 // Token: 0x040036D9 RID: 14041
1354 public static readonly Recipe.<>c <>9;
1355
1356 // Token: 0x040036DA RID: 14042
1357 public static Func<string> <>9__56_0;
1358
1359 // Token: 0x040036DB RID: 14043
1360 public static Func<string> <>9__56_1;
1361
1362 // Token: 0x040036DC RID: 14044
1363 public static Func<string> <>9__56_2;
1364
1365 // Token: 0x040036DD RID: 14045
1366 public static Func<string> <>9__56_3;
1367
1368 // Token: 0x040036DE RID: 14046
1369 public static Func<string> <>9__56_4;
1370
1371 // Token: 0x040036DF RID: 14047
1372 public static Func<string> <>9__56_5;
1373
1374 // Token: 0x040036E0 RID: 14048
1375 public static Func<string> <>9__56_6;
1376
1377 // Token: 0x040036E1 RID: 14049
1378 public static Func<string> <>9__56_7;
1379
1380 // Token: 0x040036E2 RID: 14050
1381 public static Func<string> <>9__56_8;
1382
1383 // Token: 0x040036E3 RID: 14051
1384 public static Func<string> <>9__56_9;
1385
1386 // Token: 0x040036E4 RID: 14052
1387 public static Func<string> <>9__56_10;
1388
1389 // Token: 0x040036E5 RID: 14053
1390 public static Func<string> <>9__56_11;
1391
1392 // Token: 0x040036E6 RID: 14054
1393 public static Func<string> <>9__56_12;
1394
1395 // Token: 0x040036E7 RID: 14055
1396 public static Func<string> <>9__56_13;
1397
1398 // Token: 0x040036E8 RID: 14056
1399 public static Func<string> <>9__56_14;
1400
1401 // Token: 0x040036E9 RID: 14057
1402 public static Func<string> <>9__56_15;
1403
1404 // Token: 0x040036EA RID: 14058
1405 public static Func<string> <>9__56_16;
1406
1407 // Token: 0x040036EB RID: 14059
1408 public static Func<string> <>9__56_17;
1409
1410 // Token: 0x040036EC RID: 14060
1411 public static Func<string> <>9__56_18;
1412
1413 // Token: 0x040036ED RID: 14061
1414 public static Func<string> <>9__56_19;
1415
1416 // Token: 0x040036EE RID: 14062
1417 public static Func<string> <>9__56_20;
1418
1419 // Token: 0x040036EF RID: 14063
1420 public static Func<string> <>9__56_21;
1421
1422 // Token: 0x040036F0 RID: 14064
1423 public static Func<string> <>9__56_22;
1424
1425 // Token: 0x040036F1 RID: 14065
1426 public static Func<string> <>9__56_23;
1427 }
1428 }
1429}
class f__AnonymousType0<< Count > j__TPar
Item[] item
Definition Chest.cs:1344
static string GetNPCNameValue(int netID)
Definition Lang.cs:93
static string GetTextValue(string key)
Definition Language.cs:54
static int myPlayer
Definition Main.cs:2337
static int focusRecipe
Definition Main.cs:2323
static int numAvailableRecipes
Definition Main.cs:2309
static int[] availableRecipe
Definition Main.cs:2281
static Item guideItem
Definition Main.cs:2225
bool useVoidBag()
Definition Player.cs:7241
Item[] inventory
Definition Player.cs:21263
List< Item > customShimmerResults
Definition Recipe.cs:1038
int[] requiredTile
Definition Recipe.cs:1029
static void CollectGuideRecipes()
Definition Recipe.cs:344
static bool CollectedEnoughItemsToCraftRecipeOld(Recipe tempRec)
Definition Recipe.cs:223
static void AddSolarFurniture()
Definition Recipe.cs:612
static void AddBalloonFurniture()
Definition Recipe.cs:868
bool AcceptedByItemGroups(int invType, int reqType)
Definition Recipe.cs:67
static void GetThroughDelayedFindRecipes()
Definition Recipe.cs:195
static void CreateRequiredItemQuickLookups()
Definition Recipe.cs:562
static void SetupRecipeGroups()
Definition Recipe.cs:413
static void CollectItems(Item[] currentInventory, int slotCap)
Definition Recipe.cs:336
static void VisuallyRepositionRecipes(float focusY)
Definition Recipe.cs:386
static void CreateReverseWallRecipes()
Definition Recipe.cs:921
void SetIngredients(params int[] ingredients)
Definition Recipe.cs:943
const int maxRecipes
Definition Recipe.cs:1014
static void ReplaceItemUseFlagsWithRecipeGroups()
Definition Recipe.cs:544
bool useWood(int invType, int reqType)
Definition Recipe.cs:135
Recipe.RequiredItemEntry[] requiredItemQuickLookup
Definition Recipe.cs:1035
static Dictionary< int, int > _ownedItems
Definition Recipe.cs:1092
void SetCraftingStation(params int[] tileIDs)
Definition Recipe.cs:951
static void AddRecipe()
Definition Recipe.cs:957
Item AddCustomShimmerResult(int itemType, int itemStack=1)
Definition Recipe.cs:80
int[] acceptedGroups
Definition Recipe.cs:1032
static void UpdateWhichItemsAreCrafted()
Definition Recipe.cs:597
static int GetRequiredTileStyle(int tileID)
Definition Recipe.cs:972
static bool CollectedEnoughItemsToCraftRecipeNew(Recipe tempRec)
Definition Recipe.cs:240
static void AddFakeCountsForItemGroups()
Definition Recipe.cs:324
bool notDecraftable
Definition Recipe.cs:1077
bool needSnowBiome
Definition Recipe.cs:1068
void RequireGroup(int id)
Definition Recipe.cs:25
static void UpdateItemVariants()
Definition Recipe.cs:516
void ReplaceItemUseFlagWithGroup(bool flag, int groupId)
Definition Recipe.cs:556
bool anyPressurePlate
Definition Recipe.cs:1056
static void CreateReversePlatformRecipes()
Definition Recipe.cs:909
static void AddNebulaFurniture()
Definition Recipe.cs:670
static void AddSpiderFurniture()
Definition Recipe.cs:728
static void SetupRecipes()
Definition Recipe.cs:524
bool ProcessGroupsForText(int type, [Out] string theText)
Definition Recipe.cs:31
static bool PlayerMeetsTileRequirements(Player player, Recipe tempRec)
Definition Recipe.cs:281
bool usePressurePlate(int invType, int reqType)
Definition Recipe.cs:186
void Create()
Definition Recipe.cs:94
static void AddSandstoneFurniture()
Definition Recipe.cs:786
static void AddAshWoodFurnitureArmorAndItems()
Definition Recipe.cs:876
static bool PlayerMeetsEnvironmentConditions(Player player, Recipe tempRec)
Definition Recipe.cs:245
static void AddVortexFurniture()
Definition Recipe.cs:641
bool AcceptsGroup(int groupId)
Definition Recipe.cs:43
static void AddBambooFurniture()
Definition Recipe.cs:814
static void ClearAvailableRecipes()
Definition Recipe.cs:377
static void UpdateMaterialFieldForAllRecipes()
Definition Recipe.cs:577
static void AddCoralFurniture()
Definition Recipe.cs:841
static int numRecipes
Definition Recipe.cs:1017
static void AddStardustFurniture()
Definition Recipe.cs:699
bool needGraveyardBiome
Definition Recipe.cs:1071
static Recipe currentRecipe
Definition Recipe.cs:1020
bool useFragment(int invType, int reqType)
Definition Recipe.cs:162
static void UpdateWhichItemsAreMaterials()
Definition Recipe.cs:592
bool needEverythingSeed
Definition Recipe.cs:1074
static void AddLesionFurniture()
Definition Recipe.cs:757
bool ContainsIngredient(int itemType)
Definition Recipe.cs:981
static void FindRecipes(bool canDelayCheck=false)
Definition Recipe.cs:204
bool useSand(int invType, int reqType)
Definition Recipe.cs:153
const int maxRequirements
Definition Recipe.cs:1011
static void TryRefocusingRecipe(int oldRecipe)
Definition Recipe.cs:399
static void CollectItemsToCraftWithFrom(Player player)
Definition Recipe.cs:305
static void AddToAvailableRecipes(int recipeIndex)
Definition Recipe.cs:212
static bool _hasDelayedFindRecipes
Definition Recipe.cs:1089
static Recipe()
Definition Recipe.cs:1006
Item[] requiredItem
Definition Recipe.cs:1026
void RequireGroup(string name)
Definition Recipe.cs:16
static Item defaultRecipeItem
Definition Recipe.cs:1086
bool useIronBar(int invType, int reqType)
Definition Recipe.cs:144