21299 {
21300 if (Main.wofNPCIndex < 0 || !Main.npc[Main.wofNPCIndex].active)
21301 {
21302 return;
21303 }
21304 float num = Main.npc[Main.wofNPCIndex].position.X + 40f;
21305 if (Main.npc[Main.wofNPCIndex].direction > 0)
21306 {
21307 num -= 96f;
21308 }
21310 {
21314 }
21316 {
21318 SoundEngine.
PlaySound(4, (
int)Main.npc[Main.wofNPCIndex].position.X, (
int)Main.npc[Main.wofNPCIndex].position.Y, 10);
21319 }
21321 {
21322 if (
position.
Y < (
float)(Main.UnderworldLayer * 16))
21323 {
21325 }
21326 if (Main.npc[Main.wofNPCIndex].direction < 0)
21327 {
21328 if (
position.
X + (
float)(
width / 2) > Main.npc[Main.wofNPCIndex].position.X + (
float)(Main.npc[Main.wofNPCIndex].width / 2) + 40f)
21329 {
21331 }
21332 }
21333 else if (
position.
X + (
float)(
width / 2) < Main.npc[Main.wofNPCIndex].position.X + (
float)(Main.npc[Main.wofNPCIndex].width / 2) - 40f)
21334 {
21336 }
21337 }
21339 {
21340 return;
21341 }
21344 for (
int i = 0;
i < 1000;
i++)
21345 {
21346 if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].aiStyle == 7)
21347 {
21348 Main.projectile[
i].Kill();
21349 }
21350 }
21352 float num2 = Main.npc[Main.wofNPCIndex].position.X + (float)(Main.npc[Main.wofNPCIndex].width / 2) -
center.X;
21353 float num3 = Main.npc[Main.wofNPCIndex].position.Y + (float)(Main.npc[Main.wofNPCIndex].height / 2) -
center.Y;
21355 {
21357 }
21358 else if (Main.npc[Main.wofNPCIndex].position.X < 608f || Main.npc[Main.wofNPCIndex].position.X > (float)((Main.maxTilesX - 38) * 16))
21359 {
21361 }
21362 }
static double Sqrt(double d)
static void PlaySound(int type, Vector2 position, int style=1)
static PlayerDeathReason LegacyDefault()
static PlayerDeathReason ByOther(int type)
void KillMe(PlayerDeathReason damageSource, double dmg, int hitDirection, bool pvp=false)
double Hurt(PlayerDeathReason damageSource, int Damage, int hitDirection, bool pvp=false, bool quiet=false, bool Crit=false, int cooldownCounter=-1, bool dodgeable=true)
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)