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

◆ TryDroppingItem()

ItemDropAttemptResult Terraria.GameContent.ItemDropRules.FromOptionsWithoutRepeatsDropRule.TryDroppingItem ( DropAttemptInfo info)
inline

Implements Terraria.GameContent.ItemDropRules.IItemDropRule.

Definition at line 42 of file FromOptionsWithoutRepeatsDropRule.cs.

43 {
44 /*
45An exception occurred when decompiling this method (06004442)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.ItemDropRules.ItemDropAttemptResult Terraria.GameContent.ItemDropRules.FromOptionsWithoutRepeatsDropRule::TryDroppingItem(Terraria.GameContent.ItemDropRules.DropAttemptInfo)
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 Block_0:
52 stloc:class [mscorlib]System.Collections.Generic.List`1<int32>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>(FromOptionsWithoutRepeatsDropRule::_temporaryAvailableItems, ldloc:FromOptionsWithoutRepeatsDropRule(this)))
53 stloc:int32(var_1_0D, ldfld:int32(List`1::_version, ldloc:class [mscorlib]System.Collections.Generic.List`1<int32>[exp:List`1](var_0_06)))
54 stfld:object(List`1::_syncRoot, ldloc:class [mscorlib]System.Collections.Generic.List`1<int32>[exp:List`1](var_0_06), ldloc:int32[exp:object](var_1_0D))
55 stloc:int32[](var_2_1B, ldfld:int32[](FromOptionsWithoutRepeatsDropRule::dropIds, ldloc:FromOptionsWithoutRepeatsDropRule(this)))
56 stloc:int32(var_3_22, ldfld:int32(FromOptionsWithoutRepeatsDropRule::dropCount, ldloc:FromOptionsWithoutRepeatsDropRule(this)))
57 stloc:int32(var_5_31, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>[exp:List`1](FromOptionsWithoutRepeatsDropRule::_temporaryAvailableItems, ldloc:FromOptionsWithoutRepeatsDropRule(this))))
58 stloc:int32(var_6_40, call:int32(UnifiedRandom::Next, ldfld:UnifiedRandom(DropAttemptInfo::rng, ldloc:DropAttemptInfo[exp:valuetype Terraria.GameContent.ItemDropRules.DropAttemptInfo&](info)), ldloc:int32(var_5_31)))
59 stloc:class [mscorlib]System.Collections.Generic.List`1<int32>(var_7_48, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>(FromOptionsWithoutRepeatsDropRule::_temporaryAvailableItems, ldloc:FromOptionsWithoutRepeatsDropRule(this)))
60 stloc:class [mscorlib]System.Collections.Generic.List`1<int32>(var_8_50, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>(FromOptionsWithoutRepeatsDropRule::_temporaryAvailableItems, ldloc:FromOptionsWithoutRepeatsDropRule(this)))
61 stloc:int32(var_9_58, ldfld:int32(FromOptionsWithoutRepeatsDropRule::dropCount, ldloc:FromOptionsWithoutRepeatsDropRule(this)))
62}
63
64 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
65 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
66 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
67 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
68 --- End of inner exception stack trace ---
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 92
70 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
71*/;
72 }