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
BestiaryDatabaseNPCsPopulator.cs
Go to the documentation of this file.
1using System;
3using System.Linq;
6
8{
9 // Token: 0x0200091A RID: 2330
11 {
12 // Token: 0x060046E7 RID: 18151 RVA: 0x0025B408 File Offset: 0x00259608
16
17 // Token: 0x060046E8 RID: 18152 RVA: 0x0025B41C File Offset: 0x0025961C
19 {
20 return this._currentDatabase.FindEntryByNPCID(npcNetId);
21 }
22
23 // Token: 0x060046E9 RID: 18153 RVA: 0x0025B438 File Offset: 0x00259638
25 {
26 return this._currentDatabase.Register(entry);
27 }
28
29 // Token: 0x060046EA RID: 18154 RVA: 0x0025B454 File Offset: 0x00259654
31 {
32 return this._currentDatabase.Register(filter);
33 }
34
35 // Token: 0x060046EB RID: 18155 RVA: 0x0025B470 File Offset: 0x00259670
48
49 // Token: 0x060046EC RID: 18156 RVA: 0x0025B4B4 File Offset: 0x002596B4
55
56 // Token: 0x060046ED RID: 18157 RVA: 0x0025B4D0 File Offset: 0x002596D0
57 private void RegisterSortSteps()
58 {
59 }
60
61 // Token: 0x060046EE RID: 18158 RVA: 0x0025B504 File Offset: 0x00259704
72
73 // Token: 0x060046EF RID: 18159 RVA: 0x000021DB File Offset: 0x000003DB
75 {
76 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
77 }
78
79 // Token: 0x060046F0 RID: 18160 RVA: 0x000021DB File Offset: 0x000003DB
81 {
82 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
83 }
84
85 // Token: 0x060046F1 RID: 18161 RVA: 0x0025B550 File Offset: 0x00259750
87 {
88 int lifeMax = element.LifeMax;
89 if (!true)
90 {
91 }
93 }
94
95 // Token: 0x060046F2 RID: 18162 RVA: 0x0025B574 File Offset: 0x00259774
97 {
98 if (!true)
99 {
100 }
101 if (!true)
102 {
103 }
104 element.LifeMax = 1;
105 }
106
107 // Token: 0x060046F3 RID: 18163 RVA: 0x000021DB File Offset: 0x000003DB
109 {
110 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
111 }
112
113 // Token: 0x060046F4 RID: 18164 RVA: 0x0025B590 File Offset: 0x00259790
114 private void AddTownNPCs_Manual()
115 {
196 }
197
198 // Token: 0x060046F5 RID: 18165 RVA: 0x0025B9B0 File Offset: 0x00259BB0
204
205 // Token: 0x060046F6 RID: 18166 RVA: 0x0025B9D4 File Offset: 0x00259BD4
212
213 // Token: 0x060046F7 RID: 18167 RVA: 0x0025BA30 File Offset: 0x00259C30
215 {
216 if (!true)
217 {
218 }
219 throw new OutOfMemoryException();
220 }
221
222 // Token: 0x060046F8 RID: 18168 RVA: 0x0025BA60 File Offset: 0x00259C60
224 {
225 List<IBestiaryInfoElement> <Info>k__BackingField = this._currentDatabase.FindEntryByNPCID(357).<Info>k__BackingField;
227 List<IBestiaryInfoElement> <Info>k__BackingField2 = bestiaryEntry.<Info>k__BackingField;
229 List<IBestiaryInfoElement> <Info>k__BackingField3 = bestiaryEntry2.<Info>k__BackingField;
231 List<IBestiaryInfoElement> <Info>k__BackingField4 = bestiaryEntry3.<Info>k__BackingField;
233 List<IBestiaryInfoElement> <Info>k__BackingField5 = bestiaryEntry4.<Info>k__BackingField;
235 List<IBestiaryInfoElement> <Info>k__BackingField6 = bestiaryEntry5.<Info>k__BackingField;
237 List<IBestiaryInfoElement> <Info>k__BackingField7 = bestiaryEntry6.<Info>k__BackingField;
239 List<IBestiaryInfoElement> <Info>k__BackingField8 = bestiaryEntry7.<Info>k__BackingField;
241 List<IBestiaryInfoElement> <Info>k__BackingField9 = bestiaryEntry8.<Info>k__BackingField;
243 List<IBestiaryInfoElement> <Info>k__BackingField10 = bestiaryEntry9.<Info>k__BackingField;
452 if (false)
453 {
822 if (false)
823 {
876 if (false)
877 {
884 if (false)
885 {
1012 if (false)
1013 {
1070 if (false)
1071 {
1114 if (false)
1115 {
1124 if (false)
1125 {
1230 if (false)
1231 {
1360 if (false)
1361 {
1368 if (false)
1369 {
1384 if (false)
1385 {
1398 if (!false || false)
1399 {
1400 return;
1401 }
1402 }
1403 }
1404 }
1405 }
1406 }
1407 }
1408 }
1409 }
1410 }
1411 }
1412 }
1413 }
1414 throw new ArrayTypeMismatchException();
1415 }
1416
1417 // Token: 0x060046F9 RID: 18169 RVA: 0x0025D5FC File Offset: 0x0025B7FC
1419 {
1420 List<IBestiaryInfoElement> <Info>k__BackingField = this._currentDatabase.FindEntryByNPCID(628).<Info>k__BackingField;
1422 List<IBestiaryInfoElement> <Info>k__BackingField2 = bestiaryEntry.<Info>k__BackingField;
1423 if (!false)
1424 {
1425 }
1426 if (!false || false)
1427 {
1429 List<IBestiaryInfoElement> <Info>k__BackingField3 = bestiaryEntry2.<Info>k__BackingField;
1430 if (!false || false)
1431 {
1433 List<IBestiaryInfoElement> <Info>k__BackingField4 = bestiaryEntry3.<Info>k__BackingField;
1435 List<IBestiaryInfoElement> <Info>k__BackingField5 = bestiaryEntry4.<Info>k__BackingField;
1437 List<IBestiaryInfoElement> <Info>k__BackingField6 = bestiaryEntry5.<Info>k__BackingField;
1439 List<IBestiaryInfoElement> <Info>k__BackingField7 = bestiaryEntry6.<Info>k__BackingField;
1441 List<IBestiaryInfoElement> <Info>k__BackingField8 = bestiaryEntry7.<Info>k__BackingField;
1443 List<IBestiaryInfoElement> <Info>k__BackingField9 = bestiaryEntry8.<Info>k__BackingField;
1445 List<IBestiaryInfoElement> <Info>k__BackingField10 = bestiaryEntry9.<Info>k__BackingField;
1447 List<IBestiaryInfoElement> <Info>k__BackingField11 = bestiaryEntry10.<Info>k__BackingField;
1449 List<IBestiaryInfoElement> <Info>k__BackingField12 = bestiaryEntry11.<Info>k__BackingField;
1451 List<IBestiaryInfoElement> <Info>k__BackingField13 = bestiaryEntry12.<Info>k__BackingField;
1453 List<IBestiaryInfoElement> <Info>k__BackingField14 = bestiaryEntry13.<Info>k__BackingField;
1455 List<IBestiaryInfoElement> <Info>k__BackingField15 = bestiaryEntry14.<Info>k__BackingField;
1457 List<IBestiaryInfoElement> <Info>k__BackingField16 = bestiaryEntry15.<Info>k__BackingField;
1459 List<IBestiaryInfoElement> <Info>k__BackingField17 = bestiaryEntry16.<Info>k__BackingField;
1461 List<IBestiaryInfoElement> <Info>k__BackingField18 = bestiaryEntry17.<Info>k__BackingField;
1463 List<IBestiaryInfoElement> <Info>k__BackingField19 = bestiaryEntry18.<Info>k__BackingField;
1465 List<IBestiaryInfoElement> <Info>k__BackingField20 = bestiaryEntry19.<Info>k__BackingField;
1467 List<IBestiaryInfoElement> <Info>k__BackingField21 = bestiaryEntry20.<Info>k__BackingField;
1469 List<IBestiaryInfoElement> <Info>k__BackingField22 = bestiaryEntry21.<Info>k__BackingField;
1471 List<IBestiaryInfoElement> <Info>k__BackingField23 = bestiaryEntry22.<Info>k__BackingField;
1473 List<IBestiaryInfoElement> <Info>k__BackingField24 = bestiaryEntry23.<Info>k__BackingField;
1475 List<IBestiaryInfoElement> <Info>k__BackingField25 = bestiaryEntry24.<Info>k__BackingField;
1477 List<IBestiaryInfoElement> <Info>k__BackingField26 = bestiaryEntry25.<Info>k__BackingField;
1479 List<IBestiaryInfoElement> <Info>k__BackingField27 = bestiaryEntry26.<Info>k__BackingField;
1481 List<IBestiaryInfoElement> <Info>k__BackingField28 = bestiaryEntry27.<Info>k__BackingField;
1483 List<IBestiaryInfoElement> <Info>k__BackingField29 = bestiaryEntry28.<Info>k__BackingField;
1485 List<IBestiaryInfoElement> <Info>k__BackingField30 = bestiaryEntry29.<Info>k__BackingField;
1487 List<IBestiaryInfoElement> <Info>k__BackingField31 = bestiaryEntry30.<Info>k__BackingField;
1489 List<IBestiaryInfoElement> <Info>k__BackingField32 = bestiaryEntry31.<Info>k__BackingField;
1491 List<IBestiaryInfoElement> <Info>k__BackingField33 = bestiaryEntry32.<Info>k__BackingField;
1493 List<IBestiaryInfoElement> <Info>k__BackingField34 = bestiaryEntry33.<Info>k__BackingField;
1495 List<IBestiaryInfoElement> <Info>k__BackingField35 = bestiaryEntry34.<Info>k__BackingField;
1497 List<IBestiaryInfoElement> <Info>k__BackingField36 = bestiaryEntry35.<Info>k__BackingField;
1499 List<IBestiaryInfoElement> <Info>k__BackingField37 = bestiaryEntry36.<Info>k__BackingField;
1501 List<IBestiaryInfoElement> <Info>k__BackingField38 = bestiaryEntry37.<Info>k__BackingField;
1503 List<IBestiaryInfoElement> <Info>k__BackingField39 = bestiaryEntry38.<Info>k__BackingField;
1505 List<IBestiaryInfoElement> <Info>k__BackingField40 = bestiaryEntry39.<Info>k__BackingField;
1507 List<IBestiaryInfoElement> <Info>k__BackingField41 = bestiaryEntry40.<Info>k__BackingField;
1509 List<IBestiaryInfoElement> <Info>k__BackingField42 = bestiaryEntry41.<Info>k__BackingField;
1511 List<IBestiaryInfoElement> <Info>k__BackingField43 = bestiaryEntry42.<Info>k__BackingField;
1513 List<IBestiaryInfoElement> <Info>k__BackingField44 = bestiaryEntry43.<Info>k__BackingField;
1515 List<IBestiaryInfoElement> <Info>k__BackingField45 = bestiaryEntry44.<Info>k__BackingField;
1517 List<IBestiaryInfoElement> <Info>k__BackingField46 = bestiaryEntry45.<Info>k__BackingField;
1519 List<IBestiaryInfoElement> <Info>k__BackingField47 = bestiaryEntry46.<Info>k__BackingField;
1521 List<IBestiaryInfoElement> <Info>k__BackingField48 = bestiaryEntry47.<Info>k__BackingField;
1523 List<IBestiaryInfoElement> <Info>k__BackingField49 = bestiaryEntry48.<Info>k__BackingField;
1525 List<IBestiaryInfoElement> <Info>k__BackingField50 = bestiaryEntry49.<Info>k__BackingField;
1527 List<IBestiaryInfoElement> <Info>k__BackingField51 = bestiaryEntry50.<Info>k__BackingField;
1529 List<IBestiaryInfoElement> <Info>k__BackingField52 = bestiaryEntry51.<Info>k__BackingField;
1531 List<IBestiaryInfoElement> <Info>k__BackingField53 = bestiaryEntry52.<Info>k__BackingField;
1533 List<IBestiaryInfoElement> <Info>k__BackingField54 = bestiaryEntry53.<Info>k__BackingField;
1535 List<IBestiaryInfoElement> <Info>k__BackingField55 = bestiaryEntry54.<Info>k__BackingField;
1537 List<IBestiaryInfoElement> <Info>k__BackingField56 = bestiaryEntry55.<Info>k__BackingField;
1539 List<IBestiaryInfoElement> <Info>k__BackingField57 = bestiaryEntry56.<Info>k__BackingField;
1541 List<IBestiaryInfoElement> <Info>k__BackingField58 = bestiaryEntry57.<Info>k__BackingField;
1543 List<IBestiaryInfoElement> <Info>k__BackingField59 = bestiaryEntry58.<Info>k__BackingField;
1545 List<IBestiaryInfoElement> <Info>k__BackingField60 = bestiaryEntry59.<Info>k__BackingField;
1547 List<IBestiaryInfoElement> <Info>k__BackingField61 = bestiaryEntry60.<Info>k__BackingField;
1549 List<IBestiaryInfoElement> <Info>k__BackingField62 = bestiaryEntry61.<Info>k__BackingField;
1551 List<IBestiaryInfoElement> <Info>k__BackingField63 = bestiaryEntry62.<Info>k__BackingField;
1553 List<IBestiaryInfoElement> <Info>k__BackingField64 = bestiaryEntry63.<Info>k__BackingField;
1555 List<IBestiaryInfoElement> <Info>k__BackingField65 = bestiaryEntry64.<Info>k__BackingField;
1557 List<IBestiaryInfoElement> <Info>k__BackingField66 = bestiaryEntry65.<Info>k__BackingField;
1559 List<IBestiaryInfoElement> <Info>k__BackingField67 = bestiaryEntry66.<Info>k__BackingField;
1561 List<IBestiaryInfoElement> <Info>k__BackingField68 = bestiaryEntry67.<Info>k__BackingField;
1563 List<IBestiaryInfoElement> <Info>k__BackingField69 = bestiaryEntry68.<Info>k__BackingField;
1565 List<IBestiaryInfoElement> <Info>k__BackingField70 = bestiaryEntry69.<Info>k__BackingField;
1567 List<IBestiaryInfoElement> <Info>k__BackingField71 = bestiaryEntry70.<Info>k__BackingField;
1569 List<IBestiaryInfoElement> <Info>k__BackingField72 = bestiaryEntry71.<Info>k__BackingField;
1571 List<IBestiaryInfoElement> <Info>k__BackingField73 = bestiaryEntry72.<Info>k__BackingField;
1573 List<IBestiaryInfoElement> <Info>k__BackingField74 = bestiaryEntry73.<Info>k__BackingField;
1575 List<IBestiaryInfoElement> <Info>k__BackingField75 = bestiaryEntry74.<Info>k__BackingField;
1577 List<IBestiaryInfoElement> <Info>k__BackingField76 = bestiaryEntry75.<Info>k__BackingField;
1579 List<IBestiaryInfoElement> <Info>k__BackingField77 = bestiaryEntry76.<Info>k__BackingField;
1581 List<IBestiaryInfoElement> <Info>k__BackingField78 = bestiaryEntry77.<Info>k__BackingField;
1583 List<IBestiaryInfoElement> <Info>k__BackingField79 = bestiaryEntry78.<Info>k__BackingField;
1585 List<IBestiaryInfoElement> <Info>k__BackingField80 = bestiaryEntry79.<Info>k__BackingField;
1587 List<IBestiaryInfoElement> <Info>k__BackingField81 = bestiaryEntry80.<Info>k__BackingField;
1589 List<IBestiaryInfoElement> <Info>k__BackingField82 = bestiaryEntry81.<Info>k__BackingField;
1591 List<IBestiaryInfoElement> <Info>k__BackingField83 = bestiaryEntry82.<Info>k__BackingField;
1593 List<IBestiaryInfoElement> <Info>k__BackingField84 = bestiaryEntry83.<Info>k__BackingField;
1595 List<IBestiaryInfoElement> <Info>k__BackingField85 = bestiaryEntry84.<Info>k__BackingField;
1597 List<IBestiaryInfoElement> <Info>k__BackingField86 = bestiaryEntry85.<Info>k__BackingField;
1599 List<IBestiaryInfoElement> <Info>k__BackingField87 = bestiaryEntry86.<Info>k__BackingField;
1601 List<IBestiaryInfoElement> <Info>k__BackingField88 = bestiaryEntry87.<Info>k__BackingField;
1603 List<IBestiaryInfoElement> <Info>k__BackingField89 = bestiaryEntry88.<Info>k__BackingField;
1605 List<IBestiaryInfoElement> <Info>k__BackingField90 = bestiaryEntry89.<Info>k__BackingField;
1607 List<IBestiaryInfoElement> <Info>k__BackingField91 = bestiaryEntry90.<Info>k__BackingField;
1609 List<IBestiaryInfoElement> <Info>k__BackingField92 = bestiaryEntry91.<Info>k__BackingField;
1611 List<IBestiaryInfoElement> <Info>k__BackingField93 = bestiaryEntry92.<Info>k__BackingField;
1613 List<IBestiaryInfoElement> <Info>k__BackingField94 = bestiaryEntry93.<Info>k__BackingField;
1615 List<IBestiaryInfoElement> <Info>k__BackingField95 = bestiaryEntry94.<Info>k__BackingField;
1617 List<IBestiaryInfoElement> <Info>k__BackingField96 = bestiaryEntry95.<Info>k__BackingField;
1619 List<IBestiaryInfoElement> <Info>k__BackingField97 = bestiaryEntry96.<Info>k__BackingField;
1621 List<IBestiaryInfoElement> <Info>k__BackingField98 = bestiaryEntry97.<Info>k__BackingField;
1623 List<IBestiaryInfoElement> <Info>k__BackingField99 = bestiaryEntry98.<Info>k__BackingField;
1728 if ((!false || false) && (!false || false))
1729 {
1730 return;
1731 }
1732 }
1733 }
1734 throw new ArrayTypeMismatchException();
1735 }
1736
1737 // Token: 0x060046FA RID: 18170 RVA: 0x0025DBE4 File Offset: 0x0025BDE4
1739 {
1740 if (!true)
1741 {
1742 }
1744 List<IBestiaryInfoElement> <Info>k__BackingField = bestiaryEntry.<Info>k__BackingField;
1745 if (!false)
1746 {
1747 }
1748 List<IBestiaryInfoElement> <Info>k__BackingField2 = bestiaryEntry.<Info>k__BackingField;
1749 if (!false)
1750 {
1751 }
1752 if (<Info>k__BackingField2 == null)
1753 {
1754 }
1755 }
1756
1757 // Token: 0x060046FB RID: 18171 RVA: 0x0025DCC4 File Offset: 0x0025BEC4
1759 {
1760 List<IBestiaryInfoElement> <Info>k__BackingField = this._currentDatabase.FindEntryByNPCID(121).<Info>k__BackingField;
1761 IEnumerable enumerable = Enumerable.OfType(this._currentDatabase.FindEntryByNPCID(81).<Info>k__BackingField);
1762 }
1763
1764 // Token: 0x040082BD RID: 33469
1766
1767 // Token: 0x0200091B RID: 2331
1768 public static class CommonTags
1769 {
1770 // Token: 0x060046FC RID: 18172 RVA: 0x0025DCFC File Offset: 0x0025BEFC
1772 {
1773 /*
1774An exception occurred when decompiling this method (060046FC)
1775
1776ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.List`1<Terraria.GameContent.Bestiary.IBestiaryInfoElement> Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator/CommonTags::GetCommonInfoElementsForFilters()
1777
1778 ---> System.Exception: Basic block has to end with unconditional control flow.
1779{
1780 IL_0000:
1781 brtrue(IL_0000, ldc.i4:bool(1))
1782}
1783
1784 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
1785 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
1786 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
1787 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
1788 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
1789 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
1790 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
1791 --- End of inner exception stack trace ---
1792 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
1793 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
1794*/;
1795 }
1796
1797 // Token: 0x0200091C RID: 2332
1798 public static class SpawnConditions
1799 {
1800 // Token: 0x0200091D RID: 2333
1801 public static class Invasions
1802 {
1803 // Token: 0x060046FD RID: 18173 RVA: 0x00003BB6 File Offset: 0x00001DB6
1804 // Note: this type is marked as 'beforefieldinit'.
1805 static Invasions()
1806 {
1807 }
1808
1809 // Token: 0x040082BE RID: 33470
1811
1812 // Token: 0x040082BF RID: 33471
1814
1815 // Token: 0x040082C0 RID: 33472
1817
1818 // Token: 0x040082C1 RID: 33473
1820
1821 // Token: 0x040082C2 RID: 33474
1823
1824 // Token: 0x040082C3 RID: 33475
1826
1827 // Token: 0x040082C4 RID: 33476
1829 }
1830
1831 // Token: 0x0200091E RID: 2334
1832 public static class Events
1833 {
1834 // Token: 0x060046FE RID: 18174 RVA: 0x00003BB6 File Offset: 0x00001DB6
1835 // Note: this type is marked as 'beforefieldinit'.
1836 static Events()
1837 {
1838 }
1839
1840 // Token: 0x040082C5 RID: 33477
1842
1843 // Token: 0x040082C6 RID: 33478
1845
1846 // Token: 0x040082C7 RID: 33479
1848
1849 // Token: 0x040082C8 RID: 33480
1851
1852 // Token: 0x040082C9 RID: 33481
1854
1855 // Token: 0x040082CA RID: 33482
1857
1858 // Token: 0x040082CB RID: 33483
1860
1861 // Token: 0x040082CC RID: 33484
1863
1864 // Token: 0x040082CD RID: 33485
1866
1867 // Token: 0x040082CE RID: 33486
1869 }
1870
1871 // Token: 0x0200091F RID: 2335
1872 public static class Biomes
1873 {
1874 // Token: 0x060046FF RID: 18175 RVA: 0x00003BB6 File Offset: 0x00001DB6
1875 // Note: this type is marked as 'beforefieldinit'.
1876 static Biomes()
1877 {
1878 }
1879
1880 // Token: 0x040082CF RID: 33487
1882
1883 // Token: 0x040082D0 RID: 33488
1885
1886 // Token: 0x040082D1 RID: 33489
1888
1889 // Token: 0x040082D2 RID: 33490
1891
1892 // Token: 0x040082D3 RID: 33491
1894
1895 // Token: 0x040082D4 RID: 33492
1897
1898 // Token: 0x040082D5 RID: 33493
1900
1901 // Token: 0x040082D6 RID: 33494
1903
1904 // Token: 0x040082D7 RID: 33495
1906
1907 // Token: 0x040082D8 RID: 33496
1909
1910 // Token: 0x040082D9 RID: 33497
1912
1913 // Token: 0x040082DA RID: 33498
1915
1916 // Token: 0x040082DB RID: 33499
1918
1919 // Token: 0x040082DC RID: 33500
1921
1922 // Token: 0x040082DD RID: 33501
1924
1925 // Token: 0x040082DE RID: 33502
1927
1928 // Token: 0x040082DF RID: 33503
1930
1931 // Token: 0x040082E0 RID: 33504
1933
1934 // Token: 0x040082E1 RID: 33505
1936
1937 // Token: 0x040082E2 RID: 33506
1939
1940 // Token: 0x040082E3 RID: 33507
1942
1943 // Token: 0x040082E4 RID: 33508
1945
1946 // Token: 0x040082E5 RID: 33509
1948
1949 // Token: 0x040082E6 RID: 33510
1951
1952 // Token: 0x040082E7 RID: 33511
1954
1955 // Token: 0x040082E8 RID: 33512
1957
1958 // Token: 0x040082E9 RID: 33513
1960
1961 // Token: 0x040082EA RID: 33514
1963
1964 // Token: 0x040082EB RID: 33515
1966
1967 // Token: 0x040082EC RID: 33516
1969
1970 // Token: 0x040082ED RID: 33517
1972
1973 // Token: 0x040082EE RID: 33518
1975
1976 // Token: 0x040082EF RID: 33519
1978
1979 // Token: 0x040082F0 RID: 33520
1981
1982 // Token: 0x040082F1 RID: 33521
1984
1985 // Token: 0x040082F2 RID: 33522
1987
1988 // Token: 0x040082F3 RID: 33523
1990
1991 // Token: 0x040082F4 RID: 33524
1993
1994 // Token: 0x040082F5 RID: 33525
1996
1997 // Token: 0x040082F6 RID: 33526
1999
2000 // Token: 0x040082F7 RID: 33527
2002 }
2003
2004 // Token: 0x02000920 RID: 2336
2005 public static class Times
2006 {
2007 // Token: 0x06004700 RID: 18176 RVA: 0x00003BB6 File Offset: 0x00001DB6
2008 // Note: this type is marked as 'beforefieldinit'.
2009 static Times()
2010 {
2011 }
2012
2013 // Token: 0x040082F8 RID: 33528
2015
2016 // Token: 0x040082F9 RID: 33529
2018 }
2019
2020 // Token: 0x02000921 RID: 2337
2021 public static class Visuals
2022 {
2023 // Token: 0x06004701 RID: 18177 RVA: 0x00003BB6 File Offset: 0x00001DB6
2024 // Note: this type is marked as 'beforefieldinit'.
2025 static Visuals()
2026 {
2027 }
2028
2029 // Token: 0x040082FA RID: 33530
2031
2032 // Token: 0x040082FB RID: 33531
2034
2035 // Token: 0x040082FC RID: 33532
2037
2038 // Token: 0x040082FD RID: 33533
2040
2041 // Token: 0x040082FE RID: 33534
2043
2044 // Token: 0x040082FF RID: 33535
2046
2047 // Token: 0x04008300 RID: 33536
2049
2050 // Token: 0x04008301 RID: 33537
2052 }
2053 }
2054 }
2055
2056 // Token: 0x02000922 RID: 2338
2057 public static class Conditions
2058 {
2059 // Token: 0x06004702 RID: 18178 RVA: 0x0025DD0C File Offset: 0x0025BF0C
2060 public static bool ReachHardMode()
2061 {
2062 /*
2063An exception occurred when decompiling this method (06004702)
2064
2065ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Bestiary.BestiaryDatabaseNPCsPopulator/Conditions::ReachHardMode()
2066
2067 ---> System.Exception: Basic block has to end with unconditional control flow.
2068{
2069 IL_0000:
2070 brtrue(IL_0000, ldc.i4:bool(1))
2071}
2072
2073 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
2074 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
2075 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
2076 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
2077 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
2078 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
2079 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
2080 --- End of inner exception stack trace ---
2081 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
2082 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
2083*/;
2084 }
2085 }
2086
2087 // Token: 0x02000923 RID: 2339
2088 public static class CrownosIconIndexes
2089 {
2090 // Token: 0x04008302 RID: 33538
2091 public const int Surface = 0;
2092
2093 // Token: 0x04008303 RID: 33539
2094 public const int Underground = 1;
2095
2096 // Token: 0x04008304 RID: 33540
2097 public const int Cave = 2;
2098
2099 // Token: 0x04008305 RID: 33541
2100 public const int Desert = 3;
2101
2102 // Token: 0x04008306 RID: 33542
2103 public const int UndergroundDesert = 4;
2104
2105 // Token: 0x04008307 RID: 33543
2106 public const int Snow = 5;
2107
2108 // Token: 0x04008308 RID: 33544
2109 public const int UndergroundIce = 6;
2110
2111 // Token: 0x04008309 RID: 33545
2112 public const int Corruption = 7;
2113
2114 // Token: 0x0400830A RID: 33546
2115 public const int CorruptionUnderground = 8;
2116
2117 // Token: 0x0400830B RID: 33547
2118 public const int CorruptionDesert = 9;
2119
2120 // Token: 0x0400830C RID: 33548
2121 public const int CorruptionUndergroundDesert = 10;
2122
2123 // Token: 0x0400830D RID: 33549
2124 public const int CorruptionIce = 11;
2125
2126 // Token: 0x0400830E RID: 33550
2127 public const int Crimson = 12;
2128
2129 // Token: 0x0400830F RID: 33551
2130 public const int CrimsonUnderground = 13;
2131
2132 // Token: 0x04008310 RID: 33552
2133 public const int CrimsonDesert = 14;
2134
2135 // Token: 0x04008311 RID: 33553
2136 public const int CrimsonUndergroundDesert = 15;
2137
2138 // Token: 0x04008312 RID: 33554
2139 public const int CrimsonIce = 16;
2140
2141 // Token: 0x04008313 RID: 33555
2142 public const int Hallow = 17;
2143
2144 // Token: 0x04008314 RID: 33556
2145 public const int HallowUnderground = 18;
2146
2147 // Token: 0x04008315 RID: 33557
2148 public const int HallowDesert = 19;
2149
2150 // Token: 0x04008316 RID: 33558
2151 public const int HallowUndergroundDesert = 20;
2152
2153 // Token: 0x04008317 RID: 33559
2154 public const int HallowIce = 21;
2155
2156 // Token: 0x04008318 RID: 33560
2157 public const int Jungle = 22;
2158
2159 // Token: 0x04008319 RID: 33561
2160 public const int UndergroundJungle = 23;
2161
2162 // Token: 0x0400831A RID: 33562
2163 public const int SurfaceMushroom = 24;
2164
2165 // Token: 0x0400831B RID: 33563
2166 public const int UndergroundMushroom = 25;
2167
2168 // Token: 0x0400831C RID: 33564
2169 public const int Sky = 26;
2170
2171 // Token: 0x0400831D RID: 33565
2172 public const int Oasis = 27;
2173
2174 // Token: 0x0400831E RID: 33566
2175 public const int Ocean = 28;
2176
2177 // Token: 0x0400831F RID: 33567
2178 public const int Marble = 29;
2179
2180 // Token: 0x04008320 RID: 33568
2181 public const int Granite = 30;
2182
2183 // Token: 0x04008321 RID: 33569
2184 public const int JungleTemple = 31;
2185
2186 // Token: 0x04008322 RID: 33570
2187 public const int Dungeon = 32;
2188
2189 // Token: 0x04008323 RID: 33571
2190 public const int Underworld = 33;
2191
2192 // Token: 0x04008324 RID: 33572
2193 public const int SpiderNest = 34;
2194
2195 // Token: 0x04008325 RID: 33573
2196 public const int Graveyard = 35;
2197
2198 // Token: 0x04008326 RID: 33574
2199 public const int Day = 36;
2200
2201 // Token: 0x04008327 RID: 33575
2202 public const int Night = 37;
2203
2204 // Token: 0x04008328 RID: 33576
2205 public const int BloodMoon = 38;
2206
2207 // Token: 0x04008329 RID: 33577
2208 public const int Eclipse = 39;
2209
2210 // Token: 0x0400832A RID: 33578
2211 public const int Rain = 40;
2212
2213 // Token: 0x0400832B RID: 33579
2214 public const int WindyDay = 41;
2215
2216 // Token: 0x0400832C RID: 33580
2217 public const int Blizzard = 42;
2218
2219 // Token: 0x0400832D RID: 33581
2220 public const int Sandstorm = 43;
2221
2222 // Token: 0x0400832E RID: 33582
2223 public const int Meteor = 44;
2224
2225 // Token: 0x0400832F RID: 33583
2226 public const int Halloween = 45;
2227
2228 // Token: 0x04008330 RID: 33584
2229 public const int Christmas = 46;
2230
2231 // Token: 0x04008331 RID: 33585
2232 public const int SlimeRain = 47;
2233
2234 // Token: 0x04008332 RID: 33586
2235 public const int Party = 48;
2236
2237 // Token: 0x04008333 RID: 33587
2238 public const int GoblinInvasion = 49;
2239
2240 // Token: 0x04008334 RID: 33588
2241 public const int PirateInvasion = 50;
2242
2243 // Token: 0x04008335 RID: 33589
2244 public const int PumpkinMoon = 51;
2245
2246 // Token: 0x04008336 RID: 33590
2247 public const int FrostMoon = 52;
2248
2249 // Token: 0x04008337 RID: 33591
2250 public const int AlienInvasion = 53;
2251
2252 // Token: 0x04008338 RID: 33592
2253 public const int FrostLegion = 54;
2254
2255 // Token: 0x04008339 RID: 33593
2256 public const int OldOnesArmy = 55;
2257
2258 // Token: 0x0400833A RID: 33594
2259 public const int SolarTower = 56;
2260
2261 // Token: 0x0400833B RID: 33595
2262 public const int VortexTower = 57;
2263
2264 // Token: 0x0400833C RID: 33596
2265 public const int NebulaTower = 58;
2266
2267 // Token: 0x0400833D RID: 33597
2268 public const int StardustTower = 59;
2269
2270 // Token: 0x0400833E RID: 33598
2271 public const int Hardmode = 60;
2272
2273 // Token: 0x0400833F RID: 33599
2274 public const int ItemSpawn = 61;
2275 }
2276
2277 // Token: 0x02000924 RID: 2340
2279 [Serializable]
2280 private sealed class <>c
2281 {
2282 // Token: 0x06004703 RID: 18179 RVA: 0x0025DD1C File Offset: 0x0025BF1C
2283 // Note: this type is marked as 'beforefieldinit'.
2284 static <>c()
2285 {
2286 }
2287
2288 // Token: 0x06004704 RID: 18180 RVA: 0x0025DD2C File Offset: 0x0025BF2C
2289 public <>c()
2290 {
2291 }
2292
2293 // Token: 0x06004705 RID: 18181 RVA: 0x0025DD40 File Offset: 0x0025BF40
2294 internal bool <ModifyEntriesThatNeedIt_NameOverride>b__12_0(IBestiaryInfoElement x)
2295 {
2296 if (x != null)
2297 {
2298 return;
2299 }
2300 }
2301
2302 // Token: 0x06004706 RID: 18182 RVA: 0x0025DD54 File Offset: 0x0025BF54
2303 internal bool <ModifyEntriesThatNeedIt>b__13_0(IBestiaryInfoElement x)
2304 {
2305 if (x != null)
2306 {
2307 return;
2308 }
2309 }
2310
2311 // Token: 0x06004707 RID: 18183 RVA: 0x0025DD68 File Offset: 0x0025BF68
2312 internal bool <ModifyEntriesThatNeedIt>b__13_1(IBestiaryInfoElement x)
2313 {
2314 if (x != null)
2315 {
2316 return;
2317 }
2318 }
2319
2320 // Token: 0x06004708 RID: 18184 RVA: 0x0025DD7C File Offset: 0x0025BF7C
2321 internal bool <ModifyEntriesThatNeedIt>b__13_2(IBestiaryInfoElement x)
2322 {
2323 if (x != null)
2324 {
2325 return;
2326 }
2327 }
2328
2329 // Token: 0x06004709 RID: 18185 RVA: 0x0025DD90 File Offset: 0x0025BF90
2330 internal NPCStatsReportInfoElement <ModifyEntriesThatNeedIt>b__13_3(IBestiaryInfoElement x)
2331 {
2332 if (x != null)
2333 {
2334 return;
2335 }
2336 }
2337
2338 // Token: 0x0600470A RID: 18186 RVA: 0x000021DB File Offset: 0x000003DB
2339 internal bool <ModifyEntriesThatNeedIt>b__13_4(NPCStatsReportInfoElement x)
2340 {
2341 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2342 }
2343
2344 // Token: 0x0600470B RID: 18187 RVA: 0x0025DDA4 File Offset: 0x0025BFA4
2345 internal NPCStatsReportInfoElement <ModifyEntriesThatNeedIt>b__13_5(IBestiaryInfoElement x)
2346 {
2347 if (x != null)
2348 {
2349 return;
2350 }
2351 }
2352
2353 // Token: 0x0600470C RID: 18188 RVA: 0x000021DB File Offset: 0x000003DB
2354 internal bool <ModifyEntriesThatNeedIt>b__13_6(NPCStatsReportInfoElement x)
2355 {
2356 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
2357 }
2358
2359 // Token: 0x0600470D RID: 18189 RVA: 0x0025DDB8 File Offset: 0x0025BFB8
2360 internal bool <TryGivingEntryFlavorTextIfItIsMissing>b__16_0(IBestiaryInfoElement x)
2361 {
2362 if (x != null)
2363 {
2364 return;
2365 }
2366 }
2367
2368 // Token: 0x04008340 RID: 33600
2370
2371 // Token: 0x04008341 RID: 33601
2372 public static Predicate<IBestiaryInfoElement> <>9__12_0;
2373
2374 // Token: 0x04008342 RID: 33602
2375 public static Predicate<IBestiaryInfoElement> <>9__13_0;
2376
2377 // Token: 0x04008343 RID: 33603
2378 public static Predicate<IBestiaryInfoElement> <>9__13_1;
2379
2380 // Token: 0x04008344 RID: 33604
2381 public static Predicate<IBestiaryInfoElement> <>9__13_2;
2382
2383 // Token: 0x04008345 RID: 33605
2385
2386 // Token: 0x04008346 RID: 33606
2388
2389 // Token: 0x04008347 RID: 33607
2391
2392 // Token: 0x04008348 RID: 33608
2394
2395 // Token: 0x04008349 RID: 33609
2397 }
2398 }
2399}
class f__AnonymousType0<< Count > j__TPar
IBestiaryEntryFilter Register(IBestiaryEntryFilter filter)
BestiaryEntry Register(BestiaryEntry entry)
static BestiaryEntry Critter(int npcNetId)
static BestiaryEntry TownNPC(int npcNetId)
static BestiaryEntry Enemy(int npcNetId)
static int GameMode
Definition Main.cs:4141
static int GetEaterOfWorldsSegmentsCountByGamemode(int gamemode)
Definition NPC.cs:3232