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

◆ setFireFlyChance()

static void Terraria.NPC.setFireFlyChance ( )
inlinestatic

Definition at line 9580 of file NPC.cs.

9581 {
9582 if (!true)
9583 {
9584 }
9585 long ticks = DateTime.Now.Ticks;
9586 if (WorldGen.genRand.Next(9) == 0)
9587 {
9588 return;
9589 }
9590 if (WorldGen.genRand.Next(3) != 0)
9591 {
9592 return;
9593 }
9594 if (16959 == 0)
9595 {
9596 }
9597 int num;
9598 if (num != 0)
9599 {
9600 if (WorldGen.genRand.Next(5) == 0)
9601 {
9602 return;
9603 }
9604 }
9605 else if (WorldGen.genRand.Next(5) == 0)
9606 {
9607 }
9608 int num2 = Math.Max(1, 5);
9609 int num3 = Math.Max(1, 5);
9610 }
class f__AnonymousType0<< Count > j__TPar
static byte Max(byte val1, byte val2)
Definition Math.cs:111
static DateTime Now
Definition DateTime.cs:530

References Terraria.WorldGen.genRand, j__TPar, System.Math.Max(), Terraria.Utilities.UnifiedRandom.Next(), System.DateTime.Now, and System.DateTime.Ticks.

Referenced by Terraria.Main.UpdateTime_StartNight().