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

◆ TryRecalculatingTorchLuck()

void Terraria.Player.TryRecalculatingTorchLuck ( )
inlineprivate

Definition at line 5324 of file Player.cs.

5325 {
5326 if (this.happyFunTorchTime)
5327 {
5328 this.TorchAttack();
5329 return;
5330 }
5331 int num = this.torchGodCooldown;
5333 float x = this._nextTorchLuckCheckCenter.X;
5334 float y = this._nextTorchLuckCheckCenter.Y;
5335 if (num == 0)
5336 {
5337 }
5338 bool flag = this.dead;
5339 if (flag)
5340 {
5342 return;
5343 }
5344 if (this.name == null)
5345 {
5346 }
5347 if (!flag)
5348 {
5349 }
5350 int num2 = this.luckyTorchCounter;
5351 if (num2 == 0)
5352 {
5353 }
5354 int num3 = 1;
5355 if (num2 == 0)
5356 {
5357 }
5358 Tile tile;
5359 bool isLoaded = tile.IsLoaded;
5360 int num4 = this.nearbyTorches;
5362 if (!flag)
5363 {
5364 }
5365 bool[] array = this.nearbyTorch;
5366 this.dryCoralTorch = num3 != 0;
5367 }
class f__AnonymousType0<< Count > j__TPar
int luckyTorchCounter
Definition Player.cs:23360
bool happyFunTorchTime
Definition Player.cs:23372
void UpdateTorchLuck_ConsumeCountersAndCalculate()
Definition Player.cs:5404
bool[] nearbyTorch
Definition Player.cs:23354
void TorchAttack()
Definition Player.cs:5388
Microsoft.Xna.Framework.Vector2 _nextTorchLuckCheckCenter
Definition Player.cs:23369

References Terraria.Player._nextTorchLuckCheckCenter, System.array, Terraria.Player.dead, Terraria.Player.happyFunTorchTime, Terraria.Tile.IsLoaded, j__TPar, Terraria.Player.luckyTorchCounter, Terraria.Player.name, Terraria.Player.nearbyTorch, Terraria.Player.nearbyTorches, Terraria.Player.TorchAttack(), Terraria.Player.torchGodCooldown, and Terraria.Player.UpdateTorchLuck_ConsumeCountersAndCalculate().

Referenced by Terraria.Player.UpdateLuckFactors().