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
ContentSamples.cs
Go to the documentation of this file.
1using System;
3using System.Linq;
8
9namespace Terraria.ID
10{
11 // Token: 0x020005BD RID: 1469
12 public static class ContentSamples
13 {
14 // Token: 0x06003512 RID: 13586 RVA: 0x0020ABE4 File Offset: 0x00208DE4
15 public static void Initialize()
16 {
17 if (!true)
18 {
19 }
21 }
22
23 // Token: 0x06003513 RID: 13587 RVA: 0x0020AC28 File Offset: 0x00208E28
24 public static void ResetItemTooltips()
25 {
26 if (!true)
27 {
28 }
29 }
30
31 // Token: 0x06003514 RID: 13588 RVA: 0x0020AC4C File Offset: 0x00208E4C
32 public static void RefreshItemsOnWorldLoad()
33 {
34 if (!true)
35 {
36 }
37 }
38
39 // Token: 0x06003515 RID: 13589 RVA: 0x0020AC70 File Offset: 0x00208E70
40 private static void FillResearchItemOverrides()
41 {
42 if (5325 == 0)
43 {
44 }
45 }
46
47 // Token: 0x06003516 RID: 13590 RVA: 0x0020AC84 File Offset: 0x00208E84
55
56 // Token: 0x06003517 RID: 13591 RVA: 0x0020ACA4 File Offset: 0x00208EA4
58 {
59 if (!true)
60 {
61 }
62 }
63
64 // Token: 0x06003518 RID: 13592 RVA: 0x0020ACB4 File Offset: 0x00208EB4
65 public static void FixItemsAfterRecipesAreAdded()
66 {
67 int num = 1;
68 if (num == 0)
69 {
70 }
71 if (num == 0)
72 {
73 }
74 }
75
76 // Token: 0x06003519 RID: 13593 RVA: 0x0020ACE0 File Offset: 0x00208EE0
84
85 // Token: 0x0600351A RID: 13594 RVA: 0x0020ACF8 File Offset: 0x00208EF8
87 {
88 if (!true)
89 {
90 }
92 }
93
94 // Token: 0x0600351B RID: 13595 RVA: 0x0020AD10 File Offset: 0x00208F10
95 private static void ModifyNPCIds()
96 {
97 if (!true)
98 {
99 }
100 }
101
102 // Token: 0x0600351C RID: 13596 RVA: 0x0020AD28 File Offset: 0x00208F28
111
112 // Token: 0x0600351D RID: 13597 RVA: 0x0020AD58 File Offset: 0x00208F58
113 private static void FillNpcRarities()
114 {
115 int num = 1;
116 if (num == 0)
117 {
118 }
119 if (num == 0)
120 {
121 }
122 if (num == 0)
123 {
124 }
125 }
126
127 // Token: 0x0600351E RID: 13598 RVA: 0x0020AD70 File Offset: 0x00208F70
128 private static int GetNPCBestiaryRarityStarsCount(NPC npc)
129 {
130 }
131
132 // Token: 0x0600351F RID: 13599 RVA: 0x0020AD88 File Offset: 0x00208F88
133 private static void CreateCreativeItemSortingIds()
134 {
135 if (!true)
136 {
137 }
139 }
140
141 // Token: 0x06003520 RID: 13600 RVA: 0x0020ADA0 File Offset: 0x00208FA0
142 // Note: this type is marked as 'beforefieldinit'.
144 {
145 }
146
147 // Token: 0x0400476E RID: 18286
149
150 // Token: 0x0400476F RID: 18287
152
153 // Token: 0x04004770 RID: 18288
155
156 // Token: 0x04004771 RID: 18289
158
159 // Token: 0x04004772 RID: 18290
161
162 // Token: 0x04004773 RID: 18291
164
165 // Token: 0x04004774 RID: 18292
167
168 // Token: 0x04004775 RID: 18293
170
171 // Token: 0x04004776 RID: 18294
173
174 // Token: 0x04004777 RID: 18295
176
177 // Token: 0x04004778 RID: 18296
179
180 // Token: 0x020005BE RID: 1470
181 public static class CommonlyUsedContentSamples
182 {
183 // Token: 0x06003521 RID: 13601 RVA: 0x0020ADB0 File Offset: 0x00208FB0
185 {
186 if (!true)
187 {
188 }
189 }
190
191 // Token: 0x06003522 RID: 13602 RVA: 0x0020ADC0 File Offset: 0x00208FC0
192 // Note: this type is marked as 'beforefieldinit'.
194 {
195 }
196
197 // Token: 0x04004779 RID: 18297
198 public static int TeamDyeShaderIndex;
199
200 // Token: 0x0400477A RID: 18298
201 public static int ColorOnlyShaderIndex;
202 }
203
204 // Token: 0x020005BF RID: 1471
205 public static class CreativeHelper
206 {
207 // Token: 0x06003523 RID: 13603 RVA: 0x0020ADD0 File Offset: 0x00208FD0
209 {
210 int num = 1;
211 if (num == 0)
212 {
213 }
214 if (num == 0)
215 {
216 }
217 if (4410 == 0)
218 {
219 }
220 int num2 = 720;
221 int num3 = 710;
222 if (num2 == 0)
223 {
224 }
225 int num4;
226 if (num2 != 0)
227 {
228 if (num2 == 0)
229 {
230 }
231 if (num3 == 0)
232 {
233 if (num3 == 0)
234 {
235 }
236 num4 = 50;
237 if (num4 != 0)
238 {
239 goto IL_011D;
240 }
241 }
242 }
243 if (num4 == 0)
244 {
245 }
246 int num5 = 10;
247 int num6 = 5;
248 if (20 == 0)
249 {
250 }
251 IL_011D:
252 int num7 = 40;
253 if (num7 == 0)
254 {
255 }
256 if (num5 == 0)
257 {
258 }
259 int num8;
260 if (num5 != 0)
261 {
262 if (num7 == 0)
263 {
264 goto IL_017A;
265 }
266 num8 = 20;
267 if (num8 != 0)
268 {
269 if (num5 == 0)
270 {
271 }
272 if (num8 != 0)
273 {
274 }
275 }
276 }
277 int num9 = 4870;
278 if (num8 == 0)
279 {
280 goto IL_01C4;
281 }
282 if (num9 == 0)
283 {
284 }
285 if (num6 == 0)
286 {
287 goto IL_01B1;
288 }
289 IL_017A:
290 if (19 == 0)
291 {
292 goto IL_01B9;
293 }
294 if (72 != 0 && 40 != 0)
295 {
296 if (50 == 0 || 80 == 0 || 70 == 0)
297 {
298 goto IL_01B9;
299 }
300 int num10 = 30;
301 if (num10 == 0 || num10 == 0)
302 {
303 goto IL_01B9;
304 }
305 }
306 IL_01B1:
307 if (num9 != 0)
308 {
309 }
310 IL_01B9:
311 if (num9 == 0)
312 {
313 }
314 IL_01C4:
315 int num11;
316 if (num9 != 0)
317 {
318 num11 = 34464;
319 }
320 int num12;
321 if (num11 != 0)
322 {
323 num12 = 34464;
324 }
325 if (num12 != 0)
326 {
327 }
328 int num13 = true.ToInt();
329 int num14 = true.ToInt();
330 if (62144 != 0)
331 {
332 }
333 if (2 == 0)
334 {
335 }
336 int num15 = 1;
337 if (num15 != 0)
338 {
339 }
340 int num16;
341 if (num15 != 0)
342 {
343 num16 = 10;
344 }
345 if (num16 != 0)
346 {
347 }
348 if (num16 != 0)
349 {
350 }
351 if (num16 != 0)
352 {
353 return;
354 }
355 }
356
357 // Token: 0x06003524 RID: 13604 RVA: 0x0020B084 File Offset: 0x00209284
358 public static void SetCreativeMenuOrder()
359 {
360 }
361
362 // Token: 0x06003525 RID: 13605 RVA: 0x0020B100 File Offset: 0x00209300
363 public static bool ShouldRemoveFromList(Item item)
364 {
365 /*
366An exception occurred when decompiling this method (06003525)
367
368ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.ID.ContentSamples/CreativeHelper::ShouldRemoveFromList(Terraria.Item)
369
370 ---> System.Exception: Basic block has to end with unconditional control flow.
371{
372 IL_0000:
373 brtrue(IL_0000, ldc.i4:bool(1))
374}
375
376 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
377 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
378 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
379 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
380 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
381 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
382 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
383 --- End of inner exception stack trace ---
384 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
385 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
386*/;
387 }
388
389 // Token: 0x06003526 RID: 13606 RVA: 0x0020B110 File Offset: 0x00209310
390 // Note: this type is marked as 'beforefieldinit'.
392 {
393 }
394
395 // Token: 0x0400477B RID: 18299
397
398 // Token: 0x0400477C RID: 18300
400
401 // Token: 0x0400477D RID: 18301
403
404 // Token: 0x0400477E RID: 18302
406
407 // Token: 0x020005C0 RID: 1472
408 public enum ItemGroup
409 {
410 // Token: 0x04004780 RID: 18304
411 Coin = 10,
412 // Token: 0x04004781 RID: 18305
414 // Token: 0x04004782 RID: 18306
415 Torches = 20,
416 // Token: 0x04004783 RID: 18307
417 Glowsticks = 25,
418 // Token: 0x04004784 RID: 18308
419 Wood = 30,
420 // Token: 0x04004785 RID: 18309
421 Bombs = 40,
422 // Token: 0x04004786 RID: 18310
423 LifePotions = 50,
424 // Token: 0x04004787 RID: 18311
426 // Token: 0x04004788 RID: 18312
428 // Token: 0x04004789 RID: 18313
429 Flask,
430 // Token: 0x0400478A RID: 18314
431 Food,
432 // Token: 0x0400478B RID: 18315
433 Crates = 60,
434 // Token: 0x0400478C RID: 18316
435 BossBags = 70,
436 // Token: 0x0400478D RID: 18317
437 GoodieBags = 80,
438 // Token: 0x0400478E RID: 18318
439 AlchemyPlants = 83,
440 // Token: 0x0400478F RID: 18319
442 // Token: 0x04004790 RID: 18320
443 DyeMaterial = 87,
444 // Token: 0x04004791 RID: 18321
445 BossItem = 90,
446 // Token: 0x04004792 RID: 18322
447 EventItem,
448 // Token: 0x04004793 RID: 18323
450 // Token: 0x04004794 RID: 18324
451 Solutions,
452 // Token: 0x04004795 RID: 18325
453 Ammo,
454 // Token: 0x04004796 RID: 18326
456 // Token: 0x04004797 RID: 18327
457 PlacableObjects = 100,
458 // Token: 0x04004798 RID: 18328
459 Blocks = 120,
460 // Token: 0x04004799 RID: 18329
461 Wands = 130,
462 // Token: 0x0400479A RID: 18330
463 Rope = 140,
464 // Token: 0x0400479B RID: 18331
465 Walls = 150,
466 // Token: 0x0400479C RID: 18332
467 Wiring = 200,
468 // Token: 0x0400479D RID: 18333
469 Pickaxe = 500,
470 // Token: 0x0400479E RID: 18334
471 Axe = 510,
472 // Token: 0x0400479F RID: 18335
473 Hammer = 520,
474 // Token: 0x040047A0 RID: 18336
475 MeleeWeapon = 530,
476 // Token: 0x040047A1 RID: 18337
477 RangedWeapon = 540,
478 // Token: 0x040047A2 RID: 18338
479 MagicWeapon = 550,
480 // Token: 0x040047A3 RID: 18339
481 SummonWeapon = 560,
482 // Token: 0x040047A4 RID: 18340
483 Headgear = 600,
484 // Token: 0x040047A5 RID: 18341
485 Torso = 610,
486 // Token: 0x040047A6 RID: 18342
487 Pants = 620,
488 // Token: 0x040047A7 RID: 18343
489 Accessories = 630,
490 // Token: 0x040047A8 RID: 18344
491 Hook = 700,
492 // Token: 0x040047A9 RID: 18345
493 Mount = 710,
494 // Token: 0x040047AA RID: 18346
495 Minecart = 720,
496 // Token: 0x040047AB RID: 18347
497 VanityPet = 800,
498 // Token: 0x040047AC RID: 18348
499 LightPet = 810,
500 // Token: 0x040047AD RID: 18349
501 Golf = 900,
502 // Token: 0x040047AE RID: 18350
504 // Token: 0x040047AF RID: 18351
505 Dye = 910,
506 // Token: 0x040047B0 RID: 18352
507 HairDye = 920,
508 // Token: 0x040047B1 RID: 18353
509 Paint = 930,
510 // Token: 0x040047B2 RID: 18354
511 FishingRods = 1000,
512 // Token: 0x040047B3 RID: 18355
513 FishingQuestFish = 1010,
514 // Token: 0x040047B4 RID: 18356
515 Fish = 1015,
516 // Token: 0x040047B5 RID: 18357
517 FishingBait = 1020,
518 // Token: 0x040047B6 RID: 18358
519 Critters = 1030,
520 // Token: 0x040047B7 RID: 18359
521 Keys = 2000,
522 // Token: 0x040047B8 RID: 18360
523 RemainingUseItems = 5000,
524 // Token: 0x040047B9 RID: 18361
525 Material = 10000,
526 // Token: 0x040047BA RID: 18362
527 EverythingElse = 11000
528 }
529
530 // Token: 0x020005C1 RID: 1473
532 {
533 // Token: 0x06003527 RID: 13607 RVA: 0x00003BB6 File Offset: 0x00001DB6
535 {
536 }
537
538 // Token: 0x040047BB RID: 18363
539 public int ItemType;
540
541 // Token: 0x040047BC RID: 18364
543
544 // Token: 0x040047BD RID: 18365
545 public int OrderInGroup;
546 }
547
548 // Token: 0x020005C2 RID: 1474
550 [Serializable]
551 private sealed class <>c
552 {
553 // Token: 0x06003528 RID: 13608 RVA: 0x00003BB6 File Offset: 0x00001DB6
554 // Note: this type is marked as 'beforefieldinit'.
555 static <>c()
556 {
557 }
558
559 // Token: 0x06003529 RID: 13609 RVA: 0x00003BB6 File Offset: 0x00001DB6
560 public <>c()
561 {
562 }
563
564 // Token: 0x0600352A RID: 13610 RVA: 0x0020B194 File Offset: 0x00209394
566 {
568 }
569
570 // Token: 0x0600352B RID: 13611 RVA: 0x0020B1AC File Offset: 0x002093AC
571 internal ContentSamples.CreativeHelper.ItemGroup <SetCreativeMenuOrder>b__7_1(ContentSamples.CreativeHelper.ItemGroupAndOrderInGroup x)
572 {
573 return (ContentSamples.CreativeHelper.ItemGroup)0;
574 }
575
576 // Token: 0x0600352C RID: 13612 RVA: 0x0020B1C4 File Offset: 0x002093C4
578 {
579 return 0;
580 }
581
582 // Token: 0x0600352D RID: 13613 RVA: 0x00003B83 File Offset: 0x00001D83
584 {
585 return null;
586 }
587
588 // Token: 0x040047BE RID: 18366
589 public static readonly ContentSamples.CreativeHelper.<>c <>9;
590
591 // Token: 0x040047BF RID: 18367
592 public static Func<Item, ContentSamples.CreativeHelper.ItemGroupAndOrderInGroup> <>9__7_0;
593
594 // Token: 0x040047C0 RID: 18368
595 public static Func<ContentSamples.CreativeHelper.ItemGroupAndOrderInGroup, ContentSamples.CreativeHelper.ItemGroup> <>9__7_1;
596
597 // Token: 0x040047C1 RID: 18369
598 public static Func<IGrouping<ContentSamples.CreativeHelper.ItemGroup, ContentSamples.CreativeHelper.ItemGroupAndOrderInGroup>, int> <>9__7_2;
599
600 // Token: 0x040047C2 RID: 18370
601 public static Func<IGrouping<ContentSamples.CreativeHelper.ItemGroup, ContentSamples.CreativeHelper.ItemGroupAndOrderInGroup>, IEnumerable<ContentSamples.CreativeHelper.ItemGroupAndOrderInGroup>> <>9__7_3;
602 }
603 }
604
605 // Token: 0x020005C3 RID: 1475
606 public static class BestiaryHelper
607 {
608 // Token: 0x0600352E RID: 13614 RVA: 0x0020B1DC File Offset: 0x002093DC
621
622 // Token: 0x0600352F RID: 13615 RVA: 0x0020B200 File Offset: 0x00209400
624 {
625 /*
626An exception occurred when decompiling this method (0600352F)
627
628ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.ID.ContentSamples/BestiaryHelper::GetLowestBiomeGroupIndex(Terraria.NPC,Terraria.GameContent.Bestiary.BestiaryDatabase,System.Collections.Generic.List`1<Terraria.GameContent.Bestiary.IBestiaryInfoElement>)
629
630 ---> System.Exception: Basic block has to end with unconditional control flow.
631{
632 Block_0:
633 stloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.IBestiaryInfoElement>(var_1_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.IBestiaryInfoElement>(BestiaryEntry::<Info>k__BackingField, ldloc:BestiaryEntry(var_0)))
634 stloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.IBestiaryEntryFilter>(var_2_0D, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Terraria.GameContent.Bestiary.IBestiaryEntryFilter>(BestiaryDatabase::_filters, ldloc:BestiaryDatabase(database)))
635}
636
637 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
638 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
639 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
640 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
641 --- End of inner exception stack trace ---
642 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
643 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
644*/;
645 }
646
647 // Token: 0x06003530 RID: 13616 RVA: 0x0020B21C File Offset: 0x0020941C
648 public static bool ShouldHideBestiaryEntry(NPC npc)
649 {
650 if (!true)
651 {
652 return;
653 }
654 }
655
656 // Token: 0x06003531 RID: 13617 RVA: 0x000021DB File Offset: 0x000003DB
657 public static float GetBestiaryPowerLevel(NPC npc)
658 {
659 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
660 }
661
662 // Token: 0x06003532 RID: 13618 RVA: 0x0020B230 File Offset: 0x00209430
663 public static int GetBestiaryTownPriority(NPC npc)
664 {
665 /*
666An exception occurred when decompiling this method (06003532)
667
668ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.ID.ContentSamples/BestiaryHelper::GetBestiaryTownPriority(Terraria.NPC)
669
670 ---> System.Exception: Basic block has to end with unconditional control flow.
671{
672 IL_0000:
673 brtrue(IL_0000, ldc.i4:bool(1))
674}
675
676 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
677 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
678 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
679 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
680 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
681 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
682 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
683 --- End of inner exception stack trace ---
684 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
685 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
686*/;
687 }
688
689 // Token: 0x06003533 RID: 13619 RVA: 0x0020B240 File Offset: 0x00209440
691 {
692 /*
693An exception occurred when decompiling this method (06003533)
694
695ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.ID.ContentSamples/BestiaryHelper::GetBestiaryNormalGoldCritterPriority(Terraria.NPC)
696
697 ---> System.Exception: Basic block has to end with unconditional control flow.
698{
699 IL_0000:
700 brtrue(IL_0000, ldc.i4:bool(1))
701}
702
703 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
704 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
705 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
706 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
707 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
708 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
709 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
710 --- End of inner exception stack trace ---
711 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
712 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
713*/;
714 }
715
716 // Token: 0x06003534 RID: 13620 RVA: 0x0020B250 File Offset: 0x00209450
717 public static int GetBestiaryBossPriority(NPC npc)
718 {
719 if ("AnyAtomicType" == null)
720 {
721 }
722 return 41730048;
723 }
724
725 // Token: 0x06003535 RID: 13621 RVA: 0x0020B26C File Offset: 0x0020946C
726 public static int GetBestiaryStarsPriority(NPC npc)
727 {
728 /*
729An exception occurred when decompiling this method (06003535)
730
731ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.ID.ContentSamples/BestiaryHelper::GetBestiaryStarsPriority(Terraria.NPC)
732
733 ---> System.Exception: Basic block has to end with unconditional control flow.
734{
735 IL_0000:
736 brtrue(IL_0000, ldc.i4:bool(1))
737}
738
739 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
740 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
741 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
742 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
743 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
744 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
745 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
746 --- End of inner exception stack trace ---
747 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
748 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
749*/;
750 }
751
752 // Token: 0x020005C4 RID: 1476
754 private sealed class <>c__DisplayClass0_0
755 {
756 // Token: 0x06003536 RID: 13622 RVA: 0x00003BB6 File Offset: 0x00001DB6
757 public <>c__DisplayClass0_0()
758 {
759 }
760
761 // Token: 0x06003537 RID: 13623 RVA: 0x0020B27C File Offset: 0x0020947C
763 {
764 return 0;
765 }
766
767 // Token: 0x040047C3 RID: 18371
769
770 // Token: 0x040047C4 RID: 18372
772 }
773
774 // Token: 0x020005C5 RID: 1477
776 [Serializable]
777 private sealed class <>c
778 {
779 // Token: 0x06003538 RID: 13624 RVA: 0x00003BB6 File Offset: 0x00001DB6
780 // Note: this type is marked as 'beforefieldinit'.
781 static <>c()
782 {
783 }
784
785 // Token: 0x06003539 RID: 13625 RVA: 0x00003BB6 File Offset: 0x00001DB6
786 public <>c()
787 {
788 }
789
790 // Token: 0x0600353A RID: 13626 RVA: 0x0020B294 File Offset: 0x00209494
792 {
793 return 0;
794 }
795
796 // Token: 0x0600353B RID: 13627 RVA: 0x0020B2AC File Offset: 0x002094AC
798 {
799 return default(bool);
800 }
801
802 // Token: 0x0600353C RID: 13628 RVA: 0x0020B2C4 File Offset: 0x002094C4
804 {
805 return 0;
806 }
807
808 // Token: 0x0600353D RID: 13629 RVA: 0x0020B2DC File Offset: 0x002094DC
810 {
811 return default(bool);
812 }
813
814 // Token: 0x0600353E RID: 13630 RVA: 0x0020B2F4 File Offset: 0x002094F4
816 {
817 return 0;
818 }
819
820 // Token: 0x0600353F RID: 13631 RVA: 0x0020B30C File Offset: 0x0020950C
822 {
823 return default(bool);
824 }
825
826 // Token: 0x06003540 RID: 13632 RVA: 0x0020B324 File Offset: 0x00209524
828 {
829 return 0;
830 }
831
832 // Token: 0x06003541 RID: 13633 RVA: 0x0020B33C File Offset: 0x0020953C
834 {
835 return 0f;
836 }
837
838 // Token: 0x06003542 RID: 13634 RVA: 0x0020B354 File Offset: 0x00209554
840 {
841 return 0;
842 }
843
844 // Token: 0x06003543 RID: 13635 RVA: 0x0020B36C File Offset: 0x0020956C
846 {
847 return default(bool);
848 }
849
850 // Token: 0x040047C5 RID: 18373
851 public static readonly ContentSamples.BestiaryHelper.<>c <>9;
852
853 // Token: 0x040047C6 RID: 18374
854 public static Func<KeyValuePair<int, NPC>, int> <>9__0_0;
855
856 // Token: 0x040047C7 RID: 18375
857 public static Func<KeyValuePair<int, NPC>, bool> <>9__0_1;
858
859 // Token: 0x040047C8 RID: 18376
860 public static Func<KeyValuePair<int, NPC>, int> <>9__0_2;
861
862 // Token: 0x040047C9 RID: 18377
863 public static Func<KeyValuePair<int, NPC>, bool> <>9__0_3;
864
865 // Token: 0x040047CA RID: 18378
866 public static Func<KeyValuePair<int, NPC>, int> <>9__0_4;
867
868 // Token: 0x040047CB RID: 18379
869 public static Func<KeyValuePair<int, NPC>, bool> <>9__0_5;
870
871 // Token: 0x040047CC RID: 18380
872 public static Func<KeyValuePair<int, NPC>, int> <>9__0_7;
873
874 // Token: 0x040047CD RID: 18381
875 public static Func<KeyValuePair<int, NPC>, float> <>9__0_8;
876
877 // Token: 0x040047CE RID: 18382
878 public static Func<KeyValuePair<int, NPC>, int> <>9__0_9;
879
880 // Token: 0x040047CF RID: 18383
882 }
883 }
884 }
885}
class f__AnonymousType0<< Count > j__TPar
static List< KeyValuePair< int, NPC > > GetSortedBestiaryEntriesList(BestiaryDatabase database)
static int GetLowestBiomeGroupIndex(NPC npc, BestiaryDatabase database, List< IBestiaryInfoElement > commonElements)
static int GetBestiaryNormalGoldCritterPriority(NPC npc)
static ContentSamples.CreativeHelper.ItemGroup GetItemGroup(Item item, [Out] int orderInGroup)
static int GetNPCBestiaryRarityStarsCount(NPC npc)
static Dictionary< int, string > NpcBestiaryCreditIdsByNpcNetIds
static void RebuildItemCreativeSortingIDsAfterRecipesAreSetUp()
static void AddItemResearchOverride_Inner(int itemTypeToSacrifice, int itemTypeToUnlock)
static Dictionary< int, ContentSamples.CreativeHelper.ItemGroupAndOrderInGroup > ItemCreativeSortingId
static Dictionary< int, string > NpcPersistentIdsByNetIds
static void CreateCreativeItemSortingIds()
static void FixItemsAfterRecipesAreAdded()
static void RebuildBestiarySortingIDsByBestiaryDatabaseContents(BestiaryDatabase database)
static void CreateBestiarySortingIds(BestiaryDatabase database)
static Dictionary< string, int > NpcNetIdsByPersistentIds
static Dictionary< int, int > NpcBestiaryRarityStars
static void RefreshItemsOnWorldLoad()
static Dictionary< int, Item > ItemsByType
static Dictionary< int, NPC > NpcsByNetId
static Dictionary< int, string > ItemPersistentIdsByNetIds
static void FillResearchItemOverrides()
static Dictionary< int, int > CreativeResearchItemPersistentIdOverride
static void AddItemResearchOverride(int itemTypeToUnlock, params int[] itemsThatWillResearchTheItemToUnlock)
static Dictionary< string, int > ItemNetIdsByPersistentIds
static Dictionary< int, int > NpcBestiarySortingId