Definition at line 78331 of file NPC.cs.
78332 {
78334 {
78335 return;
78336 }
78338 int num = 800;
78339 if (
vector.Length() < (
float)num)
78340 {
78341 if (
vector.Length() < 30f)
78342 {
78344 }
78345 double x = 1.0 - (double)
vector.Length() / (double)num;
78348 if (GoldLadyBug)
78349 {
78351 }
78352 if (
num2 > Main.player[
plr].ladyBugLuckTimeLeft)
78353 {
78354 Main.player[
plr].ladyBugLuckTimeLeft =
num2;
78355 Main.player[
plr].luckNeedsSync =
true;
78356 }
78357 }
78358 }
static double Pow(double x, double y)
static int ladyBugGoodLuckTime
References Terraria.Main.player, and System.Math.Pow().
Referenced by Terraria.NPC.CheckActive().