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
CommonDropWithRerolls.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x0200087C RID: 2172
10 {
11 // Token: 0x060043F7 RID: 17399 RVA: 0x0024EEE4 File Offset: 0x0024D0E4
17
18 // Token: 0x060043F8 RID: 17400 RVA: 0x0024EF00 File Offset: 0x0024D100
20 {
21 int num = this.timesToRoll;
22 Player player = info.player;
24 long num2 = 0L;
25 int num3 = player.RollLuck(chanceDenominator);
27 int num4 = this.timesToRoll;
28 if (chanceNumerator != 0)
29 {
32 UnifiedRandom rng = info.rng;
33 int itemId = this.itemId;
34 int num5 = rng.Next(amountDroppedMinimum, (int)num2);
35 return;
36 }
37 }
38
39 // Token: 0x060043F9 RID: 17401 RVA: 0x000021DB File Offset: 0x000003DB
41 {
42 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
43 }
44
45 // Token: 0x040081C4 RID: 33220
46 public int timesToRoll;
47 }
48}
class f__AnonymousType0<< Count > j__TPar
override void ReportDroprates(List< DropRateInfo > drops, DropRateInfoChainFeed ratesInfo)
override ItemDropAttemptResult TryDroppingItem(DropAttemptInfo info)
CommonDropWithRerolls(int itemId, int chanceDenominator, int amountDroppedMinimum, int amountDroppedMaximum, int rerolls)
int RollLuck(int range)
Definition Player.cs:5616