36460 {
36464 {
36465 zero.X = (float)player.direction * 6f;
36466 zero.Y = player.gravDir * -14f;
36467 bool flag = true;
36469 if (!player.dead)
36470 {
36472 }
36474 {
36476 }
36478 {
36480 {
36482 }
36484 {
36486 }
36489 {
36492 {
36494 }
36495 }
36496 }
36498 {
36501 {
36503 }
36504 }
36507 if (player.gravDir == -1f)
36508 {
36509 vector.Y = (float)(Main.screenHeight - Main.mouseY) + Main.screenPosition.Y -
center.Y;
36510 }
36513 {
36515 }
36518 {
36520 }
36522 if (Main.myPlayer ==
owner)
36523 {
36525 if (!player.channel)
36526 {
36528 return;
36529 }
36530 if (!
flag2 ||
ai[0] % 15f == 0f)
36531 {
36532 bool flag3 =
false;
36533 for (
int i = 0;
i < 200;
i++)
36534 {
36537 {
36539 break;
36540 }
36541 }
36543 {
36544 bool flag4 =
false;
36545 if (!flag || player.CheckMana(player.inventory[player.selectedItem].mana,
pay:
true))
36546 {
36552 for (
int j = 0;
j < 200;
j++)
36553 {
36557 {
36559 }
36560 }
36562 for (
int k = 0;
k < _medusaHeadTargetList.Count &&
k < 3;
k++)
36563 {
36567 num3 += v.ToRotation();
36570 Main.projectile[
num5].Center =
nPC3.Center;
36571 Main.projectile[
num5].damage = num;
36572 Main.projectile[
num5].Damage();
36573 Main.projectile[
num5].damage = 0;
36576 }
36578 for (
int l = 0;
l < 4;
l++)
36579 {
36581 zero2 = ((Main.rand.Next(4) == 0) ? (
Vector2.
UnitX.RotatedByRandom(6.2831854820251465) *
new Vector2(200f, 50f) * (Main.rand.NextFloat() * 0.7f + 0.3f)) : (
Vector2.
UnitX.RotatedByRandom(3.1415927410125732).RotatedBy(
num3) *
new Vector2(200f, 50f) * (Main.rand.NextFloat() * 0.7f + 0.3f)));
36583 }
36586 }
36587 }
36588 }
36589 }
36590 Lighting.AddLight(
base.Center, 0.9f, 0.75f, 0.1f);
36591 }
36595 Vector2 vector3 = Main.OffsetsPlayerOnhand[player.bodyFrame.Y / 56] * 2f;
36596 if (player.direction != 1)
36597 {
36598 vector3.X = (float)player.bodyFrame.Width -
vector3.X;
36599 }
36600 vector3 -= (player.bodyFrame.Size() -
new Vector2(player.width, 42f)) / 2f;
36603 player.heldProj =
whoAmI;
36604 player.SetDummyItemTime(2);
36605 }
static int Sign(decimal value)
static void PlaySound(int type, Vector2 position, int style=1)
float Distance(Vector2 Other)
static List< Tuple< int, float > > _medusaHeadTargetList
static NPCDistanceByIndexComparator _medusaTargetComparer
IEntitySource GetProjectileSource_FromThis()
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)