88285 {
88287 {
88288 return;
88289 }
88292 {
88294 {
88296 }
88298 }
88300 {
88302 {
88304 }
88306 }
88308 {
88310 {
88312 }
88314 if (num < 5)
88315 {
88316 num = 5;
88317 }
88318 }
88320 {
88322 {
88324 }
88326 if (num < 2)
88327 {
88328 num = 2;
88329 }
88330 }
88332 {
88334 {
88336 }
88338 if (num < 10)
88339 {
88340 num = 10;
88341 }
88342 }
88344 {
88346 {
88348 }
88350 if (num < 10)
88351 {
88352 num = 10;
88353 }
88354 }
88356 {
88358 {
88360 }
88362 if (num < 15)
88363 {
88364 num = 15;
88365 }
88366 }
88368 {
88370 {
88372 }
88374 if (num < 5)
88375 {
88376 num = 5;
88377 }
88378 }
88380 {
88382 {
88384 }
88386 if (num < 10)
88387 {
88388 num = 10;
88389 }
88390 }
88392 {
88394 {
88396 }
88399 for (
int i = 0;
i < 1000;
i++)
88400 {
88401 if (Main.projectile[i].active && Main.projectile[i].type == 598 && Main.projectile[i].ai[0] == 1f && Main.projectile[i].ai[1] == (
float)
whoAmI)
88402 {
88404 }
88405 }
88408 {
88410 }
88411 }
88413 {
88415 {
88417 }
88420 for (
int j = 0;
j < 1000;
j++)
88421 {
88422 if (Main.projectile[
j].active && Main.projectile[
j].type == 971 && Main.projectile[
j].ai[0] == 1f && Main.projectile[
j].ai[1] == (
float)
whoAmI)
88423 {
88425 }
88426 }
88429 {
88431 }
88432 }
88434 {
88436 {
88438 }
88441 for (
int k = 0;
k < 1000;
k++)
88442 {
88443 if (Main.projectile[
k].active && Main.projectile[
k].type == 975 && Main.projectile[
k].ai[0] == 1f && Main.projectile[
k].ai[1] == (
float)
whoAmI)
88444 {
88446 }
88447 }
88450 {
88452 }
88453 }
88455 {
88457 {
88459 }
88462 for (
int l = 0;
l < 1000;
l++)
88463 {
88464 if (Main.projectile[
l].active && Main.projectile[
l].type == 636 && Main.projectile[
l].ai[0] == 1f && Main.projectile[
l].ai[1] == (
float)
whoAmI)
88465 {
88467 }
88468 }
88470 {
88472 }
88475 {
88477 }
88478 }
88480 {
88482 {
88484 }
88486 for (
int m = 0;
m < 1000;
m++)
88487 {
88488 if (Main.projectile[
m].active && Main.projectile[
m].type == 614 && Main.projectile[
m].ai[0] == 1f && Main.projectile[
m].ai[1] == (
float)
whoAmI)
88489 {
88491 }
88492 }
88494 if (num <
num10 * 20)
88495 {
88496 num =
num10 * 20 / 2;
88497 }
88498 }
88500 {
88504 {
88506 }
88508 {
88510 }
88512 {
88514 }
88516 {
88518 }
88520 {
88522 }
88523 if (Main.hardMode)
88524 {
88526 }
88528 {
88530 }
88532 {
88534 }
88536 {
88538 }
88540 {
88542 }
88544 {
88546 }
88548 {
88550 }
88551 if (Main.expertMode)
88552 {
88553 num12 *= Main.GameModeInfo.TownNPCDamageMultiplier;
88554 }
88558 {
88560 }
88561 }
88563 {
88565 {
88567 }
88569 if (num < 5)
88570 {
88571 num = 5;
88572 }
88573 }
88575 {
88576 num = 2;
88577 }
88580 {
88583 {
88585 {
88587 }
88589 {
88591 }
88592 }
88593 }
88594 if (num > 0)
88595 {
88597 {
88601 {
88603 }
88604 if (!Main.npc[
num13].immortal)
88605 {
88606 Main.npc[
num13].life -= num;
88607 }
88609 if (Main.npc[
num13].life > 0 || Main.npc[
num13].immortal)
88610 {
88611 continue;
88612 }
88613 Main.npc[
num13].life = 1;
88614 if (Main.netMode != 1)
88615 {
88616 Main.npc[
num13].StrikeNPCNoInteraction(9999, 0f, 0);
88617 if (Main.netMode == 2)
88618 {
88619 NetMessage.SendData(28, -1, -1,
null,
num13, 9999f);
88620 }
88621 }
88622 }
88623 return;
88624 }
88626 {
88630 {
88632 }
88633 if (!Main.npc[
num14].immortal)
88634 {
88635 Main.npc[
num14].life--;
88636 }
88638 if (Main.npc[
num14].life > 0 || Main.npc[
num14].immortal)
88639 {
88640 continue;
88641 }
88642 Main.npc[
num14].life = 1;
88643 if (Main.netMode != 1)
88644 {
88645 Main.npc[
num14].StrikeNPCNoInteraction(9999, 0f, 0);
88646 if (Main.netMode == 2)
88647 {
88648 NetMessage.SendData(28, -1, -1,
null,
num14, 9999f);
88649 }
88650 }
88651 }
88652 }
static bool downedMechBoss2
int lifeRegenExpectedLossPerSecond
static bool downedMechBoss3
static bool downedQueenBee
static bool downedGolemBoss
static bool downedAncientCultist
static bool downedPlantBoss
static bool downedMechBoss1