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
CreativeItemSacrificesCatalog.cs
Go to the documentation of this file.
1using System;
5using UnityEngine;
6
8{
9 // Token: 0x02000A0D RID: 2573
11 {
12 // Token: 0x17000873 RID: 2163
13 // (get) Token: 0x06004BFC RID: 19452 RVA: 0x00270BB4 File Offset: 0x0026EDB4
15 {
16 get
17 {
19 }
20 }
21
22 // Token: 0x06004BFD RID: 19453 RVA: 0x00270BC8 File Offset: 0x0026EDC8
23 public void Initialize()
24 {
26 string[] array = Regex.Split(Resources.Load<TextAsset>("Content/Sacrifices").text, "\r\n|\r|\n");
27 string text;
28 uint num = <PrivateImplementationDetails>.ComputeStringHash(text);
29 bool flag = text == "e";
30 }
31
32 // Token: 0x06004BFE RID: 19454 RVA: 0x00270D90 File Offset: 0x0026EF90
34 {
35 /*
36An exception occurred when decompiling this method (06004BFE)
37
38ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Creative.CreativeItemSacrificesCatalog::TryGetSacrificeCountCapToUnlockInfiniteItems(System.Int32,System.Int32)
39
40 ---> System.Exception: Basic block has to end with unconditional control flow.
41{
42 IL_0003:
43 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(var_0_09, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(CreativeItemSacrificesCatalog::_sacrificeCountNeededByItemId, ldloc:CreativeItemSacrificesCatalog(this)))
44}
45
46 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
47 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
48 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
49 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
50 --- End of inner exception stack trace ---
51 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
52 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
53*/;
54 }
55
56 // Token: 0x06004BFF RID: 19455 RVA: 0x00270DA8 File Offset: 0x0026EFA8
60
61 // Token: 0x06004C00 RID: 19456 RVA: 0x00270DBC File Offset: 0x0026EFBC
62 // Note: this type is marked as 'beforefieldinit'.
66
67 // Token: 0x0400861D RID: 34333
69
70 // Token: 0x0400861E RID: 34334
72 }
73}
class f__AnonymousType0<< Count > j__TPar
static string[] Split(string input, string pattern)
Definition Regex.cs:366
bool TryGetSacrificeCountCapToUnlockInfiniteItems(int itemId, [Out] int amountNeeded)
static Object Load(string path)
Definition Resources.cs:20