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

◆ DoRoot()

bool Terraria.GameContent.Generation.ShapeRoot.DoRoot ( Point origin,
GenAction action,
double angle,
double distance,
double startingSize )
inlineprivate

Definition at line 18 of file ShapeRoot.cs.

19 {
20 double endingSize = this._endingSize;
21 double num = Utils.Lerp(startingSize, endingSize, startingSize);
22 float num2 = GenBase._random.NextFloat();
23 float num3 = GenBase._random.NextFloat();
24 double angle2 = this._angle;
25 double angle3 = this._angle;
26 double num4 = Utils.Lerp(angle3, angle3, angle2);
27 if (!this._quitOnFail)
28 {
29 return;
30 }
31 }
class f__AnonymousType0<< Count > j__TPar
static UnifiedRandom _random
Definition GenBase.cs:13

References Terraria.GameContent.Generation.ShapeRoot._angle, Terraria.GameContent.Generation.ShapeRoot._endingSize, Terraria.WorldBuilding.GenShape._quitOnFail, Terraria.WorldBuilding.GenBase._random, j__TPar, and Terraria.Utils.Lerp().