Definition at line 92131 of file NPC.cs.
92132 {
92133
92134
92135
92136
92137
92138 if (
releaseOwner != 255 || Main.player[
plr].ladyBugLuckTimeLeft < 0.0)
92139 {
92140 return;
92141 }
92142 Vector2
vector = base.Center - Main.player[
plr].Center;
92145 {
92147 {
92148 vector =
default(Vector2);
92149 }
92150 double x = 1.0 - (double)((Vector2)(
ref vector)).Length() / (double)
num;
92151 x =
Math.Pow(x, 6.0);
92153 if (GoldLadyBug)
92154 {
92156 }
92157 if ((
double)
num2 > Main.player[
plr].ladyBugLuckTimeLeft)
92158 {
92159 Main.player[
plr].ladyBugLuckTimeLeft =
num2;
92160 Main.player[
plr].luckNeedsSync =
true;
92161 }
92162 }
92163 }
short releaseOwner
Identifies the player who released this NPC into the world. Used mainly for released critters....
static int ladyBugGoodLuckTime
References Terraria.Main.player.
Referenced by Terraria.NPC.CheckActive().