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

◆ UpdateTorchLuck_ConsumeCountersAndCalculate()

void Terraria.Player.UpdateTorchLuck_ConsumeCountersAndCalculate ( )
inlineprivate

Definition at line 5404 of file Player.cs.

5405 {
5406 bool[] array3;
5407 bool[] array4;
5408 int num2;
5409 for (;;)
5410 {
5411 Microsoft.Xna.Framework.Vector2 center = base.Center;
5414 bool[] array = this.nearbyTorch;
5415 int num = 1;
5416 bool[] array2 = this.nearbyTorch;
5417 if (num != 0)
5418 {
5419 break;
5420 }
5421 if (array3 != null)
5422 {
5423 return;
5424 }
5425 array4 = this.nearbyTorch;
5426 if (array4 != null)
5427 {
5428 goto Block_2;
5429 }
5430 if (this.nearbyTorch != null)
5431 {
5432 return;
5433 }
5434 if (this.nearbyTorch != null)
5435 {
5436 return;
5437 }
5438 if (this.nearbyTorch != null)
5439 {
5440 return;
5441 }
5442 bool[] array5 = this.nearbyTorch;
5443 if (num2 != 0)
5444 {
5445 if (this.nearbyTorch != null)
5446 {
5447 return;
5448 }
5449 bool[] array6 = this.nearbyTorch;
5450 if (num2 != 0)
5451 {
5452 goto Block_8;
5453 }
5454 }
5455 }
5456 array3 = this.nearbyTorch;
5457 return;
5458 Block_2:
5460 long num3 = 0L;
5462 if (array4 == null)
5463 {
5464 }
5465 num2 = 32640;
5466 bool flag = WorldGen.oceanDepths(0, (int)num3);
5467 return;
5468 Block_8:
5469 if (this.nearbyTorch != null)
5470 {
5471 return;
5472 }
5473 if (this.nearbyTorch != null)
5474 {
5475 }
5476 bool[] array7 = this.nearbyTorch;
5477 if (array7 != null)
5478 {
5479 return;
5480 }
5481 float num4 = this.torchLuck;
5483 float num5 = this.torchLuck;
5484 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
bool[] nearbyTorch
Definition Player.cs:23354
Item[] inventory
Definition Player.cs:21263

References System.array, Terraria.Player.inventory, j__TPar, System.L, Terraria.Player.nearbyTorch, Terraria.WorldGen.oceanDepths(), Terraria.Entity.position, and Terraria.Player.torchLuck.

Referenced by Terraria.Player.TryRecalculatingTorchLuck().