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
NPCKillCounterInfoElement.cs
Go to the documentation of this file.
1using System;
3using Terraria.UI;
4
6{
7 // Token: 0x0200096D RID: 2413
9 {
10 // Token: 0x0600482D RID: 18477 RVA: 0x0025FF68 File Offset: 0x0025E168
12 {
13 if (!true)
14 {
15 }
16 }
17
18 // Token: 0x0600482E RID: 18478 RVA: 0x0025FF80 File Offset: 0x0025E180
20 {
21 int? killCount = this.GetKillCount();
22 int num = 17114;
23 if (num != 0)
24 {
25 }
26 long num2 = 0L;
27 string text;
28 int stringLength = text._stringLength;
29 if (num == 0)
30 {
31 }
32 int num3 = Math.Max(0, (int)num2);
33 if (num == 0)
34 {
35 return;
36 }
37 }
38
39 // Token: 0x0600482F RID: 18479 RVA: 0x0025FFD4 File Offset: 0x0025E1D4
40 private void ShowDescription(UIElement element)
41 {
42 bool <IsMouseHovering>k__BackingField = element.<IsMouseHovering>k__BackingField;
43 if (<IsMouseHovering>k__BackingField)
44 {
45 if (!<IsMouseHovering>k__BackingField)
46 {
47 }
48 string textValue = Language.GetTextValue("BestiaryInfo.Slain");
49 }
50 }
51
52 // Token: 0x06004830 RID: 18480 RVA: 0x0025FFFC File Offset: 0x0025E1FC
53 private int? GetKillCount()
54 {
55 /*
56An exception occurred when decompiling this method (06004830)
57
58ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Nullable`1<System.Int32> Terraria.GameContent.Bestiary.NPCKillCounterInfoElement::GetKillCount()
59
60 ---> System.Exception: Basic block has to end with unconditional control flow.
61{
62 IL_0003:
63 stloc:string(var_0_0E, call:string(NPC::GetBestiaryCreditId, ldfld:NPC(NPCKillCounterInfoElement::_instance, ldloc:NPCKillCounterInfoElement(this))))
64}
65
66 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
67 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
68 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
69 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
70 --- End of inner exception stack trace ---
71 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
72 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
73*/;
74 }
75
76 // Token: 0x040083B2 RID: 33714
77 private NPC _instance;
78 }
79}
class f__AnonymousType0<< Count > j__TPar
static byte Max(byte val1, byte val2)
Definition Math.cs:111
static string GetTextValue(string key)
Definition Language.cs:54