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
ActionVines.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x020008D3 RID: 2259
9 public class ActionVines : GenAction
10 {
11 // Token: 0x06004599 RID: 17817 RVA: 0x00255058 File Offset: 0x00253258
12 public ActionVines(int minLength = 6, int maxLength = 10, int vineId = 52)
13 {
14 this._minLength = minLength;
15 this._vineId = maxLength;
17 }
18
19 // Token: 0x0600459A RID: 17818 RVA: 0x00255080 File Offset: 0x00253280
20 public override bool Apply(Point origin, int x, int y, params object[] args)
21 {
23 int minLength = this._minLength;
24 int vineId = this._vineId;
25 int num = random.Next(minLength, x);
26 Tile tile;
27 bool flag = tile.active();
28 int vineId2 = this._vineId;
29 return base.UnitApply(origin, x, y, args);
30 }
31
32 // Token: 0x04008203 RID: 33283
33 private int _minLength;
34
35 // Token: 0x04008204 RID: 33284
36 private int _maxLength;
37
38 // Token: 0x04008205 RID: 33285
39 private int _vineId;
40 }
41}
class f__AnonymousType0<< Count > j__TPar
override bool Apply(Point origin, int x, int y, params object[] args)
ActionVines(int minLength=6, int maxLength=10, int vineId=52)
static UnifiedRandom _random
Definition GenBase.cs:13
bool active()
Definition Tile.cs:1241