From 3c85ba27abd082a52715b269187351277dc67232 Mon Sep 17 00:00:00 2001 From: SheerExpanse Date: Fri, 8 Mar 2019 21:40:21 -0500 Subject: [PATCH] 1.4.2.001 source update from zip --- Buffs/Amidias/AmidiasBlessing.cs | 28 + Buffs/Amidias/AmidiasBlessing.png | Bin 0 -> 752 bytes Buffs/Amidias/HermitCrab.cs | 34 + Buffs/Amidias/HermitCrab.png | Bin 0 -> 618 bytes Buffs/Amidias/SnapClamDebuff.cs | 26 + Buffs/Amidias/SnapClamDebuff.png | Bin 0 -> 501 bytes Buffs/BearBuff.cs | 58 +- Buffs/BrimstoneWaifu.cs | 2 +- Buffs/BurntOut.cs | 54 +- Buffs/CalamityGlobalBuff.cs | 55 +- Buffs/ChaosCandle.cs | 28 + Buffs/ChaosCandle.png | Bin 0 -> 627 bytes Buffs/ChaosSpirit.png | Bin 418 -> 497 bytes Buffs/ChibiiBuff.cs | 8 - Buffs/CloudyWaifu.cs | 2 +- Buffs/DannyDevito.cs | 30 + Buffs/DannyDevito.png | Bin 0 -> 432 bytes Buffs/DrewsSandyWaifu.cs | 4 +- Buffs/Fabsol/BlueSpeedCandle.cs | 29 + Buffs/Fabsol/BlueSpeedCandle.png | Bin 0 -> 490 bytes Buffs/Fabsol/PinkHealthCandle.cs | 29 + Buffs/Fabsol/PinkHealthCandle.png | Bin 0 -> 570 bytes Buffs/Fabsol/PurpleDefenseCandle.cs | 29 + Buffs/Fabsol/PurpleDefenseCandle.png | Bin 0 -> 591 bytes Buffs/Fabsol/Trippy.cs | 27 + Buffs/Fabsol/Trippy.png | Bin 0 -> 683 bytes Buffs/Fabsol/YellowDamageCandle.cs | 34 + Buffs/Fabsol/YellowDamageCandle.png | Bin 0 -> 550 bytes Buffs/GuardianDefense.cs | 66 +- Buffs/GuardianHealer.cs | 66 +- Buffs/GuardianOffense.cs | 66 +- Buffs/LethalLavaBurn.cs | 27 + Buffs/LethalLavaBurn.png | Bin 0 -> 672 bytes Buffs/Mechworm.png | Bin 702 -> 704 bytes Buffs/Permafrost/Popo.cs | 70 +- Buffs/Permafrost/PopoNoseless.cs | 70 +- Buffs/SandyWaifu.cs | 2 +- Buffs/SilvaRevival.cs | 42 +- Buffs/SirenBobs.cs | 4 +- Buffs/SirenBobs.png | Bin 3773 -> 3694 bytes Buffs/SirenBobsAlt.cs | 4 +- Buffs/SirenBobsAlt.png | Bin 3791 -> 3695 bytes Buffs/SirenLure.cs | 4 +- Buffs/StrangeOrb.png | Bin 526 -> 3684 bytes Buffs/SunkenSea/Clamity.cs | 29 + Buffs/SunkenSea/Clamity.png | Bin 0 -> 501 bytes Buffs/SunkenSea/PearlAura.cs | 26 + Buffs/SunkenSea/PearlAura.png | Bin 0 -> 582 bytes Buffs/SunkenSea/Shellfish.cs | 34 + Buffs/SunkenSea/Shellfish.png | Bin 0 -> 688 bytes Buffs/SunkenSea/ShellfishEating.cs | 26 + Buffs/SunkenSea/ShellfishEating.png | Bin 0 -> 525 bytes Buffs/TranquilityCandle.cs | 28 + Buffs/TranquilityCandle.png | Bin 0 -> 540 bytes Buffs/Valkyrie.png | Bin 621 -> 455 bytes Buffs/WhisperingDeath.png | Bin 3347 -> 432 bytes CalamityCollision.cs | 88 + CalamityLocalization.cs | 134 + CalamityMod.cs | 4473 ++-- CalamityPlayer.cs | 15376 ++++++----- CalamityRecipes.cs | 725 + CalamityWorld.cs | 9733 ++++--- CustomTileFraming.cs | 1884 +- ExtraTextures/AmidiasBubble.png | Bin 0 -> 384 bytes ExtraTextures/Chains/ClamCrusherChain.png | Bin 0 -> 457 bytes ExtraTextures/Chains/UrchinFlailChain.png | Bin 0 -> 161 bytes Gores/Amidias/Amidias.png | Bin 0 -> 413 bytes Gores/Amidias/Amidias2.png | Bin 0 -> 314 bytes Gores/Amidias/Amidias3.png | Bin 0 -> 370 bytes Gores/Amidias/Amidias4.png | Bin 0 -> 367 bytes Gores/AquaticScourgeGores/ASBody.png | Bin 0 -> 2107 bytes Gores/AquaticScourgeGores/ASBody2.png | Bin 0 -> 440 bytes Gores/AquaticScourgeGores/ASBody3.png | Bin 0 -> 2104 bytes Gores/AquaticScourgeGores/ASBody4.png | Bin 0 -> 557 bytes Gores/AquaticScourgeGores/ASBodyAlt.png | Bin 0 -> 1395 bytes Gores/AquaticScourgeGores/ASBodyAlt2.png | Bin 0 -> 550 bytes Gores/AquaticScourgeGores/ASBodyAlt3.png | Bin 0 -> 1215 bytes Gores/AquaticScourgeGores/ASHead.png | Bin 0 -> 3405 bytes Gores/AquaticScourgeGores/ASTail.png | Bin 0 -> 1171 bytes Gores/AquaticScourgeGores/ASTail2.png | Bin 0 -> 601 bytes .../AquaticScourgeGores/AquaticParasite1.png | Bin 0 -> 472 bytes .../AquaticScourgeGores/AquaticParasite2.png | Bin 0 -> 299 bytes .../AquaticScourgeGores/AquaticSeekerBody.png | Bin 0 -> 404 bytes .../AquaticScourgeGores/AquaticSeekerHead.png | Bin 0 -> 507 bytes .../AquaticScourgeGores/AquaticSeekerTail.png | Bin 0 -> 468 bytes Gores/AquaticScourgeGores/AquaticUrchin.png | Bin 0 -> 445 bytes Gores/AquaticScourgeGores/AquaticUrchin2.png | Bin 0 -> 401 bytes Gores/AquaticScourgeGores/AquaticUrchin3.png | Bin 0 -> 290 bytes Gores/BlindedAngler/BlindAnglerGore1.png | Bin 0 -> 642 bytes Gores/BlindedAngler/BlindAnglerGore2.png | Bin 0 -> 337 bytes Gores/BlindedAngler/BlindAnglerGore3.png | Bin 0 -> 440 bytes Gores/BlindedAngler/BlindAnglerGore4.png | Bin 0 -> 554 bytes Gores/CalamitasGores/Calamitas.png | Bin 0 -> 304 bytes Gores/CalamitasGores/Calamitas2.png | Bin 0 -> 460 bytes Gores/CalamitasGores/Calamitas3.png | Bin 0 -> 305 bytes Gores/CalamitasGores/Calamitas4.png | Bin 0 -> 271 bytes Gores/CalamitasGores/Calamitas5.png | Bin 0 -> 306 bytes Gores/CalamitasGores/Calamitas6.png | Bin 0 -> 409 bytes Gores/CalamitasGores/Cataclysm.png | Bin 0 -> 263 bytes Gores/CalamitasGores/Cataclysm2.png | Bin 0 -> 547 bytes Gores/CalamitasGores/Cataclysm3.png | Bin 0 -> 372 bytes Gores/CalamitasGores/Cataclysm4.png | Bin 0 -> 423 bytes Gores/CalamitasGores/Cataclysm5.png | Bin 0 -> 270 bytes Gores/CalamitasGores/Catastrophe.png | Bin 0 -> 231 bytes Gores/CalamitasGores/Catastrophe2.png | Bin 0 -> 430 bytes Gores/CalamitasGores/Catastrophe3.png | Bin 0 -> 375 bytes Gores/CalamitasGores/Catastrophe4.png | Bin 0 -> 347 bytes Gores/CalamitasGores/Catastrophe5.png | Bin 0 -> 297 bytes Gores/CalamitasGores/LifeSeeker.png | Bin 0 -> 335 bytes Gores/CalamitasGores/LifeSeeker2.png | Bin 0 -> 246 bytes Gores/CalamitasGores/LifeSeeker3.png | Bin 0 -> 232 bytes Gores/CalamitasGores/SoulSlurper.png | Bin 0 -> 345 bytes Gores/CalamitasGores/SoulSlurper2.png | Bin 0 -> 500 bytes Gores/CalamitasGores/SoulSlurper3.png | Bin 0 -> 587 bytes Gores/CalamitasGores/SoulSlurper4.png | Bin 0 -> 314 bytes Gores/Clam/Clam1.png | Bin 0 -> 556 bytes Gores/Clam/Clam2.png | Bin 0 -> 276 bytes Gores/Clam/Clam3.png | Bin 0 -> 480 bytes Gores/EutrophicRay/RayGore1.png | Bin 0 -> 546 bytes Gores/EutrophicRay/RayGore2.png | Bin 0 -> 565 bytes Gores/EutrophicRay/RayGore3.png | Bin 0 -> 574 bytes Gores/EutrophicRay/RayGore4.png | Bin 0 -> 528 bytes Gores/GiantClam/GiantClam1.png | Bin 0 -> 847 bytes Gores/GiantClam/GiantClam2.png | Bin 0 -> 1448 bytes Gores/GiantClam/GiantClam3.png | Bin 0 -> 1846 bytes Gores/GiantClam/GiantClam4.png | Bin 0 -> 1845 bytes Gores/GiantClam/GiantClam5.png | Bin 0 -> 1079 bytes Gores/HiveMindGores/DankCreeperGore.png | Bin 0 -> 858 bytes Gores/HiveMindGores/DankCreeperGore2.png | Bin 0 -> 425 bytes Gores/HiveMindGores/DankCreeperGore3.png | Bin 0 -> 577 bytes Gores/HiveMindGores/HiveMindGore.png | Bin 0 -> 285 bytes Gores/HiveMindGores/HiveMindGore2.png | Bin 0 -> 319 bytes Gores/HiveMindGores/HiveMindGore3.png | Bin 0 -> 484 bytes Gores/HiveMindGores/HiveMindGore4.png | Bin 0 -> 491 bytes Gores/HiveMindGores/HiveMindP2Gore.png | Bin 0 -> 1711 bytes Gores/HiveMindGores/HiveMindP2Gore2.png | Bin 0 -> 853 bytes Gores/HiveMindGores/HiveMindP2Gore3.png | Bin 0 -> 556 bytes Gores/HiveMindGores/HiveMindP2Gore4.png | Bin 0 -> 1149 bytes Gores/HiveMindGores/HiveMindP2Gore5.png | Bin 0 -> 406 bytes Gores/HiveMindGores/HiveMindP2Gore6.png | Bin 0 -> 627 bytes Gores/{Polt Gore 1.png => Polt.png} | Bin Gores/{Polt gore 2.png => Polt2.png} | Bin Gores/{Polt gore 3.png => Polt3.png} | Bin Gores/{Polt gore 4.png => Polt4.png} | Bin Gores/{Polt gore 5.png => Polt5.png} | Bin Gores/PrismTurtle/PrismTurtleGore1.png | Bin 0 -> 998 bytes Gores/PrismTurtle/PrismTurtleGore2.png | Bin 0 -> 501 bytes Gores/PrismTurtle/PrismTurtleGore3.png | Bin 0 -> 1238 bytes Gores/PrismTurtle/PrismTurtleGore4.png | Bin 0 -> 1051 bytes Gores/PrismTurtle/PrismTurtleGore5.png | Bin 0 -> 234 bytes .../ProfanedGuardianBossA.png | Bin 0 -> 1083 bytes .../ProfanedGuardianBossA2.png | Bin 0 -> 879 bytes .../ProfanedGuardianBossA3.png | Bin 0 -> 685 bytes .../ProfanedGuardianBossA4.png | Bin 0 -> 1324 bytes .../ProfanedGuardianBossH.png | Bin 0 -> 857 bytes .../ProfanedGuardianBossH2.png | Bin 0 -> 1558 bytes .../ProfanedGuardianBossH3.png | Bin 0 -> 910 bytes .../ProfanedGuardianBossH4.png | Bin 0 -> 674 bytes .../ProfanedGuardianBossH5.png | Bin 0 -> 852 bytes .../ProfanedGuardianBossT.png | Bin 0 -> 1335 bytes .../ProfanedGuardianBossT2.png | Bin 0 -> 997 bytes .../ProfanedGuardianBossT3.png | Bin 0 -> 631 bytes Gores/ScavengerGores/ScavengerBody.png | Bin 0 -> 2264 bytes Gores/ScavengerGores/ScavengerBody2.png | Bin 0 -> 707 bytes Gores/ScavengerGores/ScavengerBody3.png | Bin 0 -> 1900 bytes Gores/ScavengerGores/ScavengerBody4.png | Bin 0 -> 1467 bytes Gores/ScavengerGores/ScavengerBody5.png | Bin 0 -> 2009 bytes Gores/ScavengerGores/ScavengerClawLeft.png | Bin 0 -> 408 bytes Gores/ScavengerGores/ScavengerClawLeft2.png | Bin 0 -> 638 bytes Gores/ScavengerGores/ScavengerClawLeft3.png | Bin 0 -> 449 bytes Gores/ScavengerGores/ScavengerClawRight.png | Bin 0 -> 220 bytes Gores/ScavengerGores/ScavengerClawRight2.png | Bin 0 -> 1390 bytes Gores/ScavengerGores/ScavengerHead.png | Bin 0 -> 1011 bytes Gores/ScavengerGores/ScavengerHead2.png | Bin 0 -> 2573 bytes Gores/ScavengerGores/ScavengerHead3.png | Bin 0 -> 2719 bytes Gores/ScavengerGores/ScavengerLegLeft.png | Bin 0 -> 988 bytes Gores/ScavengerGores/ScavengerLegLeft2.png | Bin 0 -> 1026 bytes Gores/ScavengerGores/ScavengerLegRight.png | Bin 0 -> 1034 bytes Gores/ScavengerGores/ScavengerLegRight2.png | Bin 0 -> 1011 bytes Gores/SeaFloaty/SeaFloatyGore1.png | Bin 0 -> 431 bytes Gores/SeaFloaty/SeaFloatyGore2.png | Bin 0 -> 280 bytes Gores/SeaFloaty/SeaFloatyGore3.png | Bin 0 -> 199 bytes Gores/SeaSerpent/SeaSerpentGore1.png | Bin 0 -> 867 bytes Gores/SeaSerpent/SeaSerpentGore2.png | Bin 0 -> 872 bytes Gores/SeaSerpent/SeaSerpentGore3.png | Bin 0 -> 650 bytes Gores/SeaSerpent/SeaSerpentGore4.png | Bin 0 -> 585 bytes Gores/SeaSerpent/SeaSerpentGore5.png | Bin 0 -> 747 bytes Gores/SirenGores/Siren.png | Bin 0 -> 868 bytes Gores/SirenGores/Siren2.png | Bin 0 -> 1904 bytes Gores/SirenGores/Siren3.png | Bin 0 -> 1073 bytes Gores/SirenGores/Siren4.png | Bin 0 -> 764 bytes Gores/SirenGores/Siren5.png | Bin 0 -> 1640 bytes Gores/Viruling.png | Bin 0 -> 891 bytes Gores/Viruling2.png | Bin 0 -> 962 bytes Gores/Viruling3.png | Bin 0 -> 471 bytes Items/AbyssItems/CloakingGland.cs | 4 +- Items/AbyssItems/DepthCells.cs | 4 +- Items/AbyssItems/Lumenite.cs | 4 +- Items/AbyssItems/LumenousAmulet.cs | 2 +- Items/AbyssItems/ReaperTooth.cs | 4 +- Items/AbyssItems/StrangeOrb.png | Bin 2988 -> 284 bytes Items/AbyssItems/SunkenStew.cs | 2 +- Items/Accessories/AncientFossil.cs | 2 +- Items/Accessories/AngelTreads.cs | 2 +- Items/Accessories/ArcanumoftheVoid.cs | 14 +- Items/Accessories/AsgardianAegis.cs | 16 +- Items/Accessories/AsgardianAegis.png | Bin 3639 -> 4557 bytes Items/Accessories/AsgardianAegis_Shield.png | Bin 5145 -> 3805 bytes Items/Accessories/AsgardsValor.cs | 4 +- Items/Accessories/AureateWings.cs | 4 +- Items/Accessories/BadgeofBravery.cs | 16 +- Items/Accessories/BurdenBreaker.cs | 2 +- Items/Accessories/CelestialTracers.cs | 16 +- Items/Accessories/ChaosAmulet.png | Bin 462 -> 644 bytes Items/Accessories/CoreOfTheBloodGod.cs | 2 +- Items/Accessories/DarkSunRing.cs | 22 +- Items/Accessories/DiscordianWings.png | Bin 534 -> 630 bytes Items/Accessories/DiscordianWings_Wings.png | Bin 2314 -> 3414 bytes Items/Accessories/DraedonsHeart.cs | 25 +- Items/Accessories/ElementalGauntlet.cs | 16 +- Items/Accessories/ElementalQuiver.cs | 14 +- Items/Accessories/ElysianTracers.cs | 16 +- Items/Accessories/EtherealTalisman.cs | 14 +- Items/Accessories/EyeoftheStorm.cs | 2 +- Items/Accessories/FrigidBulwark.cs | 28 +- Items/Accessories/FrostFlare.cs | 18 +- Items/Accessories/FungalCarapace.cs | 4 +- Items/Accessories/HadarianWings.cs | 82 + Items/Accessories/HadarianWings.png | Bin 0 -> 504 bytes Items/Accessories/HadarianWings_Wings.png | Bin 0 -> 2031 bytes Items/Accessories/HeartofDarkness.cs | 2 + Items/Accessories/HeartoftheElements.cs | 30 +- Items/Accessories/InfinityBoots.cs | 16 +- Items/Accessories/Laudanum.cs | 2 +- Items/Accessories/MOAB.cs | 2 +- Items/Accessories/MagicLevelMeter.cs | 264 +- Items/Accessories/MeleeLevelMeter.cs | 264 +- Items/Accessories/Nanotech.cs | 19 +- Items/Accessories/NecklaceofVexation.cs | 12 +- Items/Accessories/OrnateShield.cs | 11 +- Items/Accessories/PlagueHive.cs | 9 +- Items/Accessories/RampartofDeities.cs | 49 +- Items/Accessories/RangedLevelMeter.cs | 264 +- Items/Accessories/RogueEmblem.cs | 68 +- Items/Accessories/RogueLevelMeter.cs | 264 +- Items/Accessories/SeaShell.cs | 1 + Items/Accessories/Sponge.cs | 14 +- Items/Accessories/StatisBeltOfCurses.cs | 14 +- Items/Accessories/StressPills.cs | 4 +- Items/Accessories/SummonLevelMeter.cs | 260 +- Items/Accessories/TheAmalgam.cs | 9 +- Items/Accessories/TheCommunity.cs | 14 +- Items/Accessories/VoidofExtinction.cs | 7 +- Items/Accessories/WifeinaBottle.cs | 4 +- Items/Accessories/WifeinaBottlewithBoobs.cs | 7 +- Items/Accessories/YharimsInsignia.cs | 20 +- Items/AerialiteBar.cs | 48 +- Items/Amidias/AmidiasTrident.cs | 53 + Items/Amidias/AmidiasTrident.png | Bin 0 -> 669 bytes Items/Amidias/CoralCannon.cs | 58 + Items/Amidias/CoralCannon.png | Bin 0 -> 1111 bytes Items/Amidias/MagicalConch.cs | 81 + Items/Amidias/MagicalConch.png | Bin 0 -> 518 bytes Items/Amidias/Shellshooter.cs | 47 + Items/Amidias/Shellshooter.png | Bin 0 -> 541 bytes Items/Amidias/UrchinFlail.cs | 41 + Items/Amidias/UrchinFlail.png | Bin 0 -> 744 bytes Items/Amidias/Waywasher.cs | 49 + Items/Amidias/Waywasher.png | Bin 0 -> 463 bytes Items/AncientBoneDust.cs | 4 +- Items/AnechoicCoating.cs | 2 +- Items/AquaticScourge/AquaticEmblem.cs | 4 +- Items/AquaticScourge/AquaticScourgeBag.cs | 19 + Items/Armageddon.cs | 2 +- Items/Armor/AbyssalDivingSuit.cs | 3 +- Items/Armor/AerospecBreastplate.cs | 4 +- Items/Armor/AerospecHat.cs | 4 +- Items/Armor/AerospecHeadgear.cs | 14 +- Items/Armor/AerospecHelm.cs | 4 +- Items/Armor/AerospecHelmet.cs | 6 +- Items/Armor/AerospecHood.cs | 4 +- Items/Armor/AerospecLeggings.cs | 4 +- Items/Armor/AstralBreastplate.cs | 4 +- Items/Armor/AstralHelm.cs | 4 +- Items/Armor/AstralLeggings.cs | 4 +- Items/Armor/AtaxiaArmor.cs | 4 +- Items/Armor/AtaxiaArmor.png | Bin 465 -> 791 bytes Items/Armor/AtaxiaArmor_Arms.png | Bin 4608 -> 1729 bytes Items/Armor/AtaxiaArmor_Body.png | Bin 6009 -> 3144 bytes Items/Armor/AtaxiaArmor_FemaleBody.png | Bin 5916 -> 2965 bytes Items/Armor/AtaxiaHeadgear.cs | 14 +- Items/Armor/AtaxiaHeadgear.png | Bin 297 -> 397 bytes Items/Armor/AtaxiaHeadgear_Head.png | Bin 3045 -> 1024 bytes Items/Armor/AtaxiaHelm.cs | 14 +- Items/Armor/AtaxiaHelm.png | Bin 436 -> 454 bytes Items/Armor/AtaxiaHelm_Head.png | Bin 3343 -> 1182 bytes Items/Armor/AtaxiaHelmet.cs | 16 +- Items/Armor/AtaxiaHelmet.png | Bin 381 -> 442 bytes Items/Armor/AtaxiaHelmet_Head.png | Bin 3057 -> 1139 bytes Items/Armor/AtaxiaHood.cs | 20 +- Items/Armor/AtaxiaHood.png | Bin 345 -> 391 bytes Items/Armor/AtaxiaHood_Head.png | Bin 2979 -> 992 bytes Items/Armor/AtaxiaMask.cs | 14 +- Items/Armor/AtaxiaMask.png | Bin 408 -> 463 bytes Items/Armor/AtaxiaMask_Head.png | Bin 3354 -> 1122 bytes Items/Armor/AtaxiaSubligar.cs | 4 +- Items/Armor/AtaxiaSubligar.png | Bin 378 -> 395 bytes Items/Armor/AtaxiaSubligar_Legs.png | Bin 4134 -> 2080 bytes Items/Armor/AureusMask.cs | 27 + Items/Armor/AureusMask.png | Bin 0 -> 779 bytes Items/Armor/AureusMask_Head.png | Bin 0 -> 5184 bytes Items/Armor/AuricTeslaBodyArmor.cs | 18 +- Items/Armor/AuricTeslaCuisses.cs | 18 +- Items/Armor/AuricTeslaHelm.cs | 22 +- Items/Armor/AuricTeslaHoodedFacemask.cs | 22 +- Items/Armor/AuricTeslaPlumedHelm.cs | 30 +- Items/Armor/AuricTeslaSpaceHelmet.cs | 24 +- Items/Armor/AuricTeslaWireHemmedVisage.cs | 22 +- Items/Armor/BloodflareBodyArmor.cs | 18 +- Items/Armor/BloodflareCuisses.cs | 18 +- Items/Armor/BloodflareHelm.cs | 32 +- Items/Armor/BloodflareHelmet.cs | 24 +- Items/Armor/BloodflareHornedHelm.cs | 24 +- Items/Armor/BloodflareHornedMask.cs | 24 +- Items/Armor/BloodflareMask.cs | 24 +- Items/Armor/DaedalusBreastplate.cs | 4 +- Items/Armor/DaedalusHat.cs | 4 +- Items/Armor/DaedalusHeadgear.cs | 6 +- Items/Armor/DaedalusHelm.cs | 4 +- Items/Armor/DaedalusHelmet.cs | 4 +- Items/Armor/DaedalusLeggings.cs | 4 +- Items/Armor/DaedalusVisor.cs | 12 +- Items/Armor/DemonshadeBreastplate.cs | 18 +- Items/Armor/DemonshadeGreaves.cs | 18 +- Items/Armor/DemonshadeHelm.cs | 132 +- Items/Armor/GodSlayerChestplate.cs | 18 +- Items/Armor/GodSlayerHelm.cs | 18 +- Items/Armor/GodSlayerHelmet.cs | 18 +- Items/Armor/GodSlayerHornedHelm.cs | 18 +- Items/Armor/GodSlayerLeggings.cs | 18 +- Items/Armor/GodSlayerMask.cs | 26 +- Items/Armor/GodSlayerVisage.cs | 18 +- Items/Armor/MolluskShelleggings.cs | 56 + Items/Armor/MolluskShelleggings.png | Bin 0 -> 347 bytes Items/Armor/MolluskShelleggings_Legs.png | Bin 0 -> 2090 bytes Items/Armor/MolluskShellmet.cs | 88 + Items/Armor/MolluskShellmet.png | Bin 0 -> 415 bytes Items/Armor/MolluskShellmet_Head.png | Bin 0 -> 3406 bytes Items/Armor/MolluskShellplate.cs | 56 + Items/Armor/MolluskShellplate.png | Bin 0 -> 596 bytes Items/Armor/MolluskShellplate_Arms.png | Bin 0 -> 1558 bytes Items/Armor/MolluskShellplate_Body.png | Bin 0 -> 3786 bytes Items/Armor/MolluskShellplate_FemaleBody.png | Bin 0 -> 3954 bytes Items/Armor/OmegaBlueChestplate.cs | 123 +- Items/Armor/OmegaBlueHelmet.cs | 229 +- Items/Armor/OmegaBlueLeggings.cs | 119 +- Items/Armor/ReaverCap.cs | 7 +- Items/Armor/ReaverCuisses.cs | 4 +- Items/Armor/ReaverHelm.cs | 4 +- Items/Armor/ReaverHelmet.cs | 6 +- Items/Armor/ReaverMask.cs | 4 +- Items/Armor/ReaverScaleMail.cs | 4 +- Items/Armor/ReaverVisage.cs | 4 +- Items/Armor/ShroomiteVisage.cs | 84 +- Items/Armor/SilvaArmor.cs | 18 +- Items/Armor/SilvaHelm.cs | 20 +- Items/Armor/SilvaHelmet.cs | 20 +- Items/Armor/SilvaHornedHelm.cs | 18 +- Items/Armor/SilvaLeggings.cs | 18 +- Items/Armor/SilvaMask.cs | 28 +- Items/Armor/SilvaMaskedCap.cs | 18 +- Items/Armor/SirenTransAlt_Arms.png | Bin 1858 -> 3417 bytes Items/Armor/SirenTransAlt_Body.png | Bin 2808 -> 4771 bytes Items/Armor/SirenTransAlt_Head.png | Bin 2192 -> 4072 bytes Items/Armor/SirenTransAlt_Legs.png | Bin 2131 -> 4834 bytes Items/Armor/SirenTrans_Arms.png | Bin 1858 -> 4256 bytes Items/Armor/SirenTrans_Body.png | Bin 2849 -> 4736 bytes Items/Armor/SirenTrans_Head.png | Bin 2235 -> 4353 bytes Items/Armor/SirenTrans_Legs.png | Bin 2134 -> 4739 bytes Items/Armor/SirensHeart.png | Bin 3576 -> 1001 bytes Items/Armor/SirensHeartAlt.png | Bin 3576 -> 1001 bytes Items/Armor/StatigelArmor.cs | 4 +- Items/Armor/StatigelCap.cs | 4 +- Items/Armor/StatigelGreaves.cs | 4 +- Items/Armor/StatigelHeadgear.cs | 4 +- Items/Armor/StatigelHelm.cs | 4 +- Items/Armor/StatigelHood.cs | 8 +- Items/Armor/StatigelMask.cs | 12 +- Items/Armor/TarragonBreastplate.cs | 18 +- Items/Armor/TarragonHelm.cs | 24 +- Items/Armor/TarragonHelmet.cs | 32 +- Items/Armor/TarragonHornedHelm.cs | 24 +- Items/Armor/TarragonLeggings.cs | 18 +- Items/Armor/TarragonMask.cs | 24 +- Items/Armor/TarragonVisage.cs | 24 +- Items/Armor/VictideBreastplate.cs | 4 +- Items/Armor/VictideHeadgear.cs | 12 +- Items/Armor/VictideHelm.cs | 4 +- Items/Armor/VictideHelmet.cs | 6 +- Items/Armor/VictideLeggings.cs | 4 +- Items/Armor/VictideMask.cs | 4 +- Items/Armor/VictideVisage.cs | 4 +- Items/Armor/WulfrumArmor.cs | 4 +- Items/Armor/WulfrumHeadgear.cs | 4 +- Items/Armor/WulfrumHelm.cs | 4 +- Items/Armor/WulfrumHelmet.cs | 4 +- Items/Armor/WulfrumHood.cs | 4 +- Items/Armor/WulfrumLeggings.cs | 4 +- Items/Armor/WulfrumMask.cs | 4 +- Items/Armor/XerocCuisses.cs | 4 +- Items/Armor/XerocMask.cs | 18 +- Items/Armor/XerocPlateMail.cs | 4 +- Items/AshenKey.cs | 3 +- Items/Astrageldon/AstrageldonBag.cs | 35 +- Items/Astrageldon/AstralJelly.cs | 4 +- Items/AstrumDeus/AstrumDeusBag.cs | 67 +- Items/BarofLife.cs | 52 +- Items/BearEye.cs | 80 +- Items/BeetleJuice.cs | 30 +- Items/BlightedLens.cs | 30 +- Items/BloodOrb.cs | 4 +- Items/BloodlettingEssence.cs | 4 +- Items/Bloodstone.cs | 18 +- Items/BloodstoneCore.cs | 16 +- Items/BlossomPickaxe.cs | 14 +- Items/Brimrose.cs | 4 +- Items/BrimstoneKey.cs | 4 +- Items/BrimstoneWaifu/BrimstoneWaifuBag.cs | 68 +- Items/BrimstoneWaifu/RoseStone.cs | 2 +- Items/BulbofDoom.cs | 10 +- Items/Bumblefuck/BumblebirbBag.cs | 56 +- Items/Bumblefuck/EffulgentFeather.cs | 44 +- Items/CadencePotion.cs | 2 +- Items/Calamitas/CalamitasBag.cs | 27 +- Items/Calamitas/CalamityDust.cs | 4 +- Items/CalamitasBrew.cs | 2 +- Items/CalamitousEssence.cs | 18 +- .../AccretionDisk.cs | 96 +- .../AdamantiteThrowingAxe.cs | 88 +- .../BallisticPoisonBomb.cs | 88 +- .../BrackishFlask.cs | 98 +- .../CalamityCustomThrowingDamage/Brimblade.cs | 84 +- .../CalamityCustomThrowingDamagePlayer.cs | 82 +- .../CalamityDamageItem.cs | 172 +- .../CalamityCustomThrowingDamage/Celestus.cs | 118 +- .../CalamityCustomThrowingDamage/Celestus.png | Bin 3472 -> 3380 bytes .../CobaltKunai.cs | 90 +- .../CosmicKunai.cs | 70 +- .../CrushsawCrasher.cs | 82 +- .../CrystalPiercer.cs | 88 +- .../Crystalline.cs | 90 +- .../Crystalline.png | Bin 741 -> 1009 bytes .../CursedDagger.cs | 66 +- .../DuststormInABottle.cs | 100 +- .../EmpyreanKnivesThrown.cs | 224 +- .../Eradicator.cs | 85 +- .../Eradicator.png | Bin 722 -> 1791 bytes .../EradicatorGlow.png | Bin 0 -> 1381 bytes .../ExecutionersBlade.cs | 86 +- .../FeatherKnife.cs | 88 +- .../FlameScythe.cs | 84 +- .../FlameScythe.png | Bin 789 -> 1032 bytes .../FrostyFlare.cs | 78 +- Items/CalamityCustomThrowingDamage/GelDart.cs | 98 +- .../GhoulishGouger.cs | 66 +- .../HeavenfallenStardisk.cs | 48 + .../HeavenfallenStardisk.png | Bin 0 -> 979 bytes Items/CalamityCustomThrowingDamage/IceStar.cs | 102 +- .../IchorSpear.cs | 66 +- .../CalamityCustomThrowingDamage/Lionfish.cs | 66 +- .../CalamityCustomThrowingDamage/Malachite.cs | 144 +- .../MangroveChakram.cs | 82 +- .../MoltenAmputator.cs | 78 +- .../CalamityCustomThrowingDamage/Mycoroot.cs | 84 +- .../MythrilKnife.cs | 88 +- .../OrichalcumSpikedGemstone.cs | 90 +- .../PalladiumJavelin.cs | 90 +- .../Prismalline.cs | 52 + .../Prismalline.png | Bin 0 -> 1056 bytes .../ProfanedTrident.cs | 78 +- .../Pwnagehammer.cs | 92 +- .../RadiantStar.cs | 53 + .../RadiantStar.png | Bin 0 -> 1331 bytes Items/CalamityCustomThrowingDamage/RotBall.cs | 98 +- .../RoyalKnives.cs | 222 +- .../SandDollar.cs | 53 + .../SandDollar.png | Bin 0 -> 522 bytes .../ScourgeoftheCosmosThrown.cs | 104 +- .../ScourgeoftheCosmosThrown.png | Bin 724 -> 1291 bytes .../ScourgeoftheDesert.cs | 68 +- .../SeafoamBomb.cs | 50 + .../SeafoamBomb.png | Bin 0 -> 747 bytes .../SeashellBoomerang.cs | 92 +- .../ShatteredSun.cs | 52 + .../ShatteredSun.png | Bin 0 -> 1619 bytes .../CalamityCustomThrowingDamage/SnapClam.cs | 40 + .../CalamityCustomThrowingDamage/SnapClam.png | Bin 0 -> 341 bytes .../SpearofPaleolith.cs | 110 +- .../StellarKnife.cs | 42 + .../StellarKnife.png | Bin 0 -> 893 bytes .../TarragonThrowingDart.cs | 98 +- .../TitaniumShuriken.cs | 100 +- .../CalamityCustomThrowingDamage/ToothBall.cs | 96 +- ...TriactisTruePaladinianMageHammerofMight.cs | 100 +- .../TruePaladinsHammer.cs | 100 +- .../UrchinStinger.cs | 70 +- .../Valediction.cs | 66 +- .../WulfrumKnife.cs | 88 +- .../XerocPitchfork.cs | 98 +- Items/CalamityGlobalItem.cs | 2773 +- Items/ChaoswarpedSlashaxe.cs | 4 +- Items/ChaoswarpedSlashaxe.png | Bin 681 -> 1094 bytes Items/CoreofCalamity.cs | 62 +- Items/CoreofChaos.cs | 66 +- Items/CoreofCinder.cs | 66 +- Items/CoreofEleum.cs | 66 +- Items/CosmicPlushie.cs | 2 +- Items/Cosmolight.cs | 18 +- Items/Crabulon/CrabulonBag.cs | 43 +- Items/Crabulon/FungalClump.cs | 2 +- Items/CruptixBar.cs | 8 +- Items/CruptixBar.png | Bin 495 -> 611 bytes Items/Cryogen/CryoBar.cs | 8 +- Items/Cryogen/CryogenBag.cs | 55 +- Items/Cryogen/SoulofCryogen.cs | 2 +- Items/CrystylCrusher.cs | 14 +- Items/DarksunFragment.cs | 58 +- Items/DefiledRune.cs | 2 +- Items/DemonicBoneAsh.cs | 30 +- Items/DesertFeather.cs | 30 +- Items/DesertScourge/AeroStone.cs | 20 +- Items/DesertScourge/DesertScourgeBag.cs | 161 +- Items/DesertScourge/VictoryShard.cs | 30 +- Items/DevourerMunsters/ArmoredShell.cs | 40 +- Items/DevourerMunsters/DarkPlasma.cs | 16 +- Items/DevourerMunsters/RuneofCos.cs | 12 +- Items/DevourerMunsters/TwistingNether.cs | 58 +- Items/DimensionalSoulArtifact.cs | 18 +- Items/DraedonBar.cs | 8 +- Items/Dragonfruit.cs | 14 +- Items/EbonianGel.cs | 30 +- Items/Ectoblood.cs | 30 +- Items/Ectoblood.png | Bin 366 -> 417 bytes Items/Ectoheart.cs | 12 +- Items/EidolonTablet.cs | 2 +- Items/EldritchSoulArtifact.cs | 18 +- Items/EndothermicEnergy.cs | 58 +- Items/EssenceofChaos.cs | 49 +- Items/EssenceofCinder.cs | 48 +- Items/EssenceofEleum.cs | 48 +- Items/Fabsol.cs | 4 +- Items/FabsolStuff/BloodyMary.cs | 2 +- Items/FabsolStuff/BlueCandle.cs | 32 + Items/FabsolStuff/BlueCandle.png | Bin 704 -> 704 bytes Items/FabsolStuff/Everclear.cs | 2 +- Items/FabsolStuff/EvergreenGin.cs | 2 +- Items/FabsolStuff/FabsolsVodka.cs | 2 +- Items/FabsolStuff/Fireball.cs | 2 +- Items/FabsolStuff/GrapeBeer.cs | 2 +- Items/FabsolStuff/Margarita.cs | 2 +- Items/FabsolStuff/Moonshine.cs | 2 +- Items/FabsolStuff/MoscowMule.cs | 4 +- Items/FabsolStuff/OddMushroom.cs | 36 + Items/FabsolStuff/PinkCandle.cs | 33 + Items/FabsolStuff/PurpleCandle.cs | 32 + Items/FabsolStuff/PurpleCandle.png | Bin 685 -> 683 bytes Items/FabsolStuff/RedWine.cs | 2 +- Items/FabsolStuff/Screwdriver.cs | 2 +- Items/FabsolStuff/StarBeamRye.cs | 2 +- Items/FabsolStuff/Tequila.cs | 4 +- Items/FabsolStuff/TequilaSunrise.cs | 4 +- Items/FabsolStuff/Vodka.cs | 4 +- Items/FabsolStuff/WhiteWine.cs | 2 +- Items/FabsolStuff/YellowCandle.cs | 32 + Items/FetidEssence.cs | 32 +- Items/FlamebeakHampick.cs | 4 +- Items/FlamebeakHampick.png | Bin 570 -> 986 bytes Items/GalacticaSingularity.cs | 6 +- Items/GallantPickaxe.cs | 14 +- Items/GodlySoulArtifact.cs | 18 +- Items/GreatSandShark/GrandScale.cs | 4 +- Items/GreatSandShark/SandstormsCore.cs | 2 +- Items/GreatbayPickaxe.cs | 2 +- Items/GypsyPowder.cs | 30 +- Items/GypsyPowder.png | Bin 582 -> 466 bytes Items/HadarianMembrane.cs | 29 + Items/HadarianMembrane.png | Bin 0 -> 387 bytes Items/HiveMind/HiveMindBag.cs | 40 +- Items/HiveMind/RottenBrain.cs | 14 +- Items/HiveMind/TrueShadowScale.cs | 30 +- Items/Leviathan/EnchantedPearl.png | Bin 645 -> 3118 bytes Items/Leviathan/IOU.cs | 30 +- Items/Leviathan/LeviathanAmbergris.cs | 43 +- Items/Leviathan/LeviathanBag.cs | 100 +- Items/LivingShard.cs | 30 +- Items/ManeaterBulb.cs | 30 +- Items/MeldBlob.cs | 30 +- Items/MeldiateBar.cs | 4 +- Items/MurkyPaste.cs | 30 +- Items/MurkySludge.cs | 30 +- Items/NightmareFuel.cs | 58 +- Items/OmegaHealingPotion.cs | 16 +- Items/Patreon/ApronOfAffection.cs | 41 + Items/Patreon/ApronOfAffection.png | Bin 0 -> 506 bytes Items/Patreon/ApronOfAffection_Arms.png | Bin 0 -> 2197 bytes Items/Patreon/ApronOfAffection_Body.png | Bin 0 -> 3213 bytes Items/Patreon/Ataraxia.cs | 146 + Items/Patreon/Ataraxia.png | Bin 0 -> 2582 bytes Items/Patreon/DarkSpark.cs | 122 +- Items/Patreon/DivineRetribution.cs | 212 +- Items/Patreon/FaceMelter.cs | 102 + Items/Patreon/FaceMelter.png | Bin 0 -> 996 bytes Items/Patreon/HandheldTank.cs | 67 + Items/Patreon/HandheldTank.png | Bin 0 -> 1552 bytes Items/Patreon/Keelhaul.cs | 42 + Items/Patreon/Keelhaul.png | Bin 0 -> 1034 bytes Items/Patreon/LightGodsBrilliance.cs | 160 +- Items/Patreon/NormalityRelocator.cs | 51 + Items/Patreon/NormalityRelocator.png | Bin 0 -> 1872 bytes Items/Patreon/ProfanedSoulArtifact.cs | 114 +- Items/Patreon/ThePack.cs | 65 + Items/Patreon/ThePack.png | Bin 0 -> 762 bytes Items/Perforator/BloodSample.cs | 31 +- Items/Perforator/BloodyWormTooth.cs | 14 +- Items/Perforator/PerforatorBag.cs | 36 +- Items/Permafrost/ArcticBearPaw.cs | 2 +- Items/Permafrost/Popo.cs | 130 +- Items/PhantomHeart.cs | 12 +- Items/PhantomHeart.png | Bin 684 -> 717 bytes Items/Phantoplasm.cs | 52 +- Items/Placeables/AbyssBath.cs | 2 +- Items/Placeables/AbyssGravel.cs | 2 - Items/Placeables/AerialiteOre.cs | 4 +- Items/Placeables/AstralBar.cs | 3 +- Items/Placeables/AstralChest.cs | 27 + Items/Placeables/AstralChest.png | Bin 0 -> 806 bytes Items/Placeables/AstralOre.cs | 6 +- Items/Placeables/AuricOre.cs | 16 +- Items/Placeables/Banners/AeroSlimeBanner.cs | 25 + Items/Placeables/Banners/AeroSlimeBanner.png | Bin 0 -> 198 bytes .../Placeables/Banners/AmberCrawlerBanner.cs | 25 + .../Placeables/Banners/AmberCrawlerBanner.png | Bin 0 -> 312 bytes .../Banners/AmethystCrawlerBanner.cs | 25 + .../Banners/AmethystCrawlerBanner.png | Bin 0 -> 306 bytes Items/Placeables/Banners/AngryDogBanner.cs | 25 + Items/Placeables/Banners/AngryDogBanner.png | Bin 0 -> 297 bytes .../Banners/AquaticAberrationBanner.cs | 25 + .../Banners/AquaticAberrationBanner.png | Bin 0 -> 291 bytes .../Banners/AquaticParasiteBanner.cs | 25 + .../Banners/AquaticParasiteBanner.png | Bin 0 -> 321 bytes .../Placeables/Banners/AquaticSeekerBanner.cs | 25 + .../Banners/AquaticSeekerBanner.png | Bin 0 -> 312 bytes .../Placeables/Banners/AquaticUrchinBanner.cs | 25 + .../Banners/AquaticUrchinBanner.png | Bin 0 -> 261 bytes Items/Placeables/Banners/AriesBanner.cs | 25 + Items/Placeables/Banners/AriesBanner.png | Bin 0 -> 321 bytes .../Placeables/Banners/ArmoredDiggerBanner.cs | 25 + .../Banners/ArmoredDiggerBanner.png | Bin 0 -> 255 bytes Items/Placeables/Banners/AstralProbeBanner.cs | 25 + .../Placeables/Banners/AstralProbeBanner.png | Bin 0 -> 342 bytes Items/Placeables/Banners/AstralSlimeBanner.cs | 25 + .../Placeables/Banners/AstralSlimeBanner.png | Bin 0 -> 228 bytes .../Placeables/Banners/AstralachneaBanner.cs | 25 + .../Placeables/Banners/AstralachneaBanner.png | Bin 0 -> 342 bytes Items/Placeables/Banners/AtlasBanner.cs | 25 + Items/Placeables/Banners/AtlasBanner.png | Bin 0 -> 315 bytes Items/Placeables/Banners/BOHLDOHRBanner.cs | 25 + Items/Placeables/Banners/BOHLDOHRBanner.png | Bin 0 -> 306 bytes .../Placeables/Banners/BigSightseerBanner.cs | 25 + .../Placeables/Banners/BigSightseerBanner.png | Bin 0 -> 318 bytes Items/Placeables/Banners/BlightedEyeBanner.cs | 25 + .../Placeables/Banners/BlightedEyeBanner.png | Bin 0 -> 288 bytes .../Placeables/Banners/BlindedAnglerBanner.cs | 25 + .../Banners/BlindedAnglerBanner.png | Bin 0 -> 348 bytes Items/Placeables/Banners/BloatfishBanner.cs | 25 + Items/Placeables/Banners/BloatfishBanner.png | Bin 0 -> 294 bytes Items/Placeables/Banners/BloomSlimeBanner.cs | 25 + Items/Placeables/Banners/BloomSlimeBanner.png | Bin 0 -> 198 bytes Items/Placeables/Banners/BobbitWormBanner.cs | 25 + Items/Placeables/Banners/BobbitWormBanner.png | Bin 0 -> 270 bytes .../Placeables/Banners/BoxJellyfishBanner.cs | 25 + .../Placeables/Banners/BoxJellyfishBanner.png | Bin 0 -> 258 bytes Items/Placeables/Banners/CalamityEyeBanner.cs | 25 + .../Placeables/Banners/CalamityEyeBanner.png | Bin 0 -> 315 bytes Items/Placeables/Banners/CatfishBanner.cs | 25 + Items/Placeables/Banners/CatfishBanner.png | Bin 0 -> 318 bytes .../Placeables/Banners/ChaoticPufferBanner.cs | 25 + .../Banners/ChaoticPufferBanner.png | Bin 0 -> 324 bytes .../Placeables/Banners/CharredSlimeBanner.cs | 25 + .../Placeables/Banners/CharredSlimeBanner.png | Bin 0 -> 198 bytes Items/Placeables/Banners/ClamBanner.cs | 25 + Items/Placeables/Banners/ClamBanner.png | Bin 0 -> 249 bytes .../Banners/CloudElementalBanner.cs | 25 + .../Banners/CloudElementalBanner.png | Bin 0 -> 342 bytes Items/Placeables/Banners/CnidrionBanner.cs | 25 + Items/Placeables/Banners/CnidrionBanner.png | Bin 0 -> 327 bytes .../Placeables/Banners/ColossalSquidBanner.cs | 25 + .../Banners/ColossalSquidBanner.png | Bin 0 -> 303 bytes .../Banners/CosmicElementalBanner.cs | 25 + .../Banners/CosmicElementalBanner.png | Bin 0 -> 291 bytes .../Banners/CrimulanBlightSlimeBanner.cs | 25 + .../Banners/CrimulanBlightSlimeBanner.png | Bin 0 -> 198 bytes Items/Placeables/Banners/CryoSlimeBanner.cs | 25 + Items/Placeables/Banners/CryoSlimeBanner.png | Bin 0 -> 270 bytes Items/Placeables/Banners/CryonBanner.cs | 25 + Items/Placeables/Banners/CryonBanner.png | Bin 0 -> 282 bytes .../Banners/CrystalCrawlerBanner.cs | 25 + .../Banners/CrystalCrawlerBanner.png | Bin 0 -> 306 bytes .../Banners/CultistAssassinBanner.cs | 25 + .../Banners/CultistAssassinBanner.png | Bin 0 -> 312 bytes Items/Placeables/Banners/CuttlefishBanner.cs | 25 + Items/Placeables/Banners/CuttlefishBanner.png | Bin 0 -> 315 bytes .../Placeables/Banners/DespairStoneBanner.cs | 25 + .../Placeables/Banners/DespairStoneBanner.png | Bin 0 -> 312 bytes Items/Placeables/Banners/DevilFishBanner.cs | 25 + Items/Placeables/Banners/DevilFishBanner.png | Bin 0 -> 342 bytes .../Banners/DiamondCrawlerBanner.cs | 25 + .../Banners/DiamondCrawlerBanner.png | Bin 0 -> 315 bytes .../Banners/EarthElementalBanner.cs | 25 + .../Banners/EarthElementalBanner.png | Bin 0 -> 285 bytes .../Banners/EbonianBlightSlimeBanner.cs | 25 + .../Banners/EbonianBlightSlimeBanner.png | Bin 0 -> 198 bytes Items/Placeables/Banners/EidolistBanner.cs | 25 + Items/Placeables/Banners/EidolistBanner.png | Bin 0 -> 276 bytes .../Banners/EidolonWyrmJuvenileBanner.cs | 25 + .../Banners/EidolonWyrmJuvenileBanner.png | Bin 0 -> 333 bytes .../Banners/EmeraldCrawlerBanner.cs | 25 + .../Banners/EmeraldCrawlerBanner.png | Bin 0 -> 291 bytes .../Placeables/Banners/EutrophicRayBanner.cs | 25 + .../Placeables/Banners/EutrophicRayBanner.png | Bin 0 -> 303 bytes Items/Placeables/Banners/FlounderBanner.cs | 25 + Items/Placeables/Banners/FlounderBanner.png | Bin 0 -> 294 bytes Items/Placeables/Banners/FrogfishBanner.cs | 25 + Items/Placeables/Banners/FrogfishBanner.png | Bin 0 -> 285 bytes .../Placeables/Banners/FusionFeederBanner.cs | 25 + .../Placeables/Banners/FusionFeederBanner.png | Bin 0 -> 345 bytes Items/Placeables/Banners/GhostBellBanner.cs | 25 + Items/Placeables/Banners/GhostBellBanner.png | Bin 0 -> 306 bytes .../Banners/GhostBellSmallBanner.cs | 25 + .../Banners/GhostBellSmallBanner.png | Bin 0 -> 312 bytes Items/Placeables/Banners/GiantClamBanner.cs | 25 + Items/Placeables/Banners/GiantClamBanner.png | Bin 0 -> 249 bytes Items/Placeables/Banners/GiantSquidBanner.cs | 25 + Items/Placeables/Banners/GiantSquidBanner.png | Bin 0 -> 309 bytes Items/Placeables/Banners/GnasherBanner.cs | 25 + Items/Placeables/Banners/GnasherBanner.png | Bin 0 -> 261 bytes .../Banners/GreatSandSharkBanner.cs | 25 + .../Banners/GreatSandSharkBanner.png | Bin 0 -> 315 bytes Items/Placeables/Banners/GulperEelBanner.cs | 25 + Items/Placeables/Banners/GulperEelBanner.png | Bin 0 -> 354 bytes Items/Placeables/Banners/HadarianBanner.cs | 25 + Items/Placeables/Banners/HadarianBanner.png | Bin 0 -> 330 bytes Items/Placeables/Banners/HeatSpiritBanner.cs | 25 + Items/Placeables/Banners/HeatSpiritBanner.png | Bin 0 -> 324 bytes Items/Placeables/Banners/HiveBanner.cs | 25 + Items/Placeables/Banners/HiveBanner.png | Bin 0 -> 339 bytes Items/Placeables/Banners/IceClasperBanner.cs | 25 + Items/Placeables/Banners/IceClasperBanner.png | Bin 0 -> 285 bytes .../Banners/ImpiousImmolatorBanner.cs | 25 + .../Banners/ImpiousImmolatorBanner.png | Bin 0 -> 351 bytes .../Banners/IrradiatedSlimeBanner.cs | 25 + .../Banners/IrradiatedSlimeBanner.png | Bin 0 -> 288 bytes Items/Placeables/Banners/LaserfishBanner.cs | 25 + Items/Placeables/Banners/LaserfishBanner.png | Bin 0 -> 348 bytes .../Banners/LuminousCorvinaBanner.cs | 25 + .../Banners/LuminousCorvinaBanner.png | Bin 0 -> 327 bytes Items/Placeables/Banners/MantisBanner.cs | 25 + Items/Placeables/Banners/MantisBanner.png | Bin 0 -> 333 bytes .../Placeables/Banners/MantisShrimpBanner.cs | 25 + .../Placeables/Banners/MantisShrimpBanner.png | Bin 0 -> 306 bytes Items/Placeables/Banners/MaulerBanner.cs | 25 + Items/Placeables/Banners/MaulerBanner.png | Bin 0 -> 321 bytes Items/Placeables/Banners/MelterBanner.cs | 25 + Items/Placeables/Banners/MelterBanner.png | Bin 0 -> 168 bytes Items/Placeables/Banners/MirageJellyBanner.cs | 25 + .../Placeables/Banners/MirageJellyBanner.png | Bin 0 -> 315 bytes Items/Placeables/Banners/MorayEelBanner.cs | 25 + Items/Placeables/Banners/MorayEelBanner.png | Bin 0 -> 345 bytes Items/Placeables/Banners/NovaBanner.cs | 25 + Items/Placeables/Banners/NovaBanner.png | Bin 0 -> 321 bytes Items/Placeables/Banners/OarfishBanner.cs | 25 + Items/Placeables/Banners/OarfishBanner.png | Bin 0 -> 258 bytes .../Banners/OverloadedSoldierBanner.cs | 25 + .../Banners/OverloadedSoldierBanner.png | Bin 0 -> 381 bytes Items/Placeables/Banners/ParaseaBanner.cs | 25 + Items/Placeables/Banners/ParaseaBanner.png | Bin 0 -> 288 bytes .../Banners/PerennialSlimeBanner.cs | 25 + .../Banners/PerennialSlimeBanner.png | Bin 0 -> 198 bytes .../Banners/PestilentSlimeBanner.cs | 25 + .../Banners/PestilentSlimeBanner.png | Bin 0 -> 168 bytes .../Placeables/Banners/PhantomDebrisBanner.cs | 25 + .../Banners/PhantomDebrisBanner.png | Bin 0 -> 327 bytes .../Placeables/Banners/PhantomSpiritBanner.cs | 25 + .../Banners/PhantomSpiritBanner.png | Bin 0 -> 240 bytes Items/Placeables/Banners/PitbullBanner.cs | 25 + Items/Placeables/Banners/PitbullBanner.png | Bin 0 -> 321 bytes .../Placeables/Banners/PlagueChargerBanner.cs | 25 + .../Banners/PlagueChargerBanner.png | Bin 0 -> 168 bytes .../Placeables/Banners/PlaguebringerBanner.cs | 25 + .../Banners/PlaguebringerBanner.png | Bin 0 -> 168 bytes Items/Placeables/Banners/PlagueshellBanner.cs | 25 + .../Placeables/Banners/PlagueshellBanner.png | Bin 0 -> 168 bytes Items/Placeables/Banners/PrismTurtleBanner.cs | 25 + .../Placeables/Banners/PrismTurtleBanner.png | Bin 0 -> 294 bytes .../Banners/ProfanedEnergyBanner.cs | 25 + .../Banners/ProfanedEnergyBanner.png | Bin 0 -> 348 bytes Items/Placeables/Banners/ReaperSharkBanner.cs | 25 + .../Placeables/Banners/ReaperSharkBanner.png | Bin 0 -> 306 bytes Items/Placeables/Banners/RubyCrawlerBanner.cs | 25 + .../Placeables/Banners/RubyCrawlerBanner.png | Bin 0 -> 294 bytes .../Placeables/Banners/SandTortoiseBanner.cs | 25 + .../Placeables/Banners/SandTortoiseBanner.png | Bin 0 -> 270 bytes .../Banners/SapphireCrawlerBanner.cs | 25 + .../Banners/SapphireCrawlerBanner.png | Bin 0 -> 306 bytes Items/Placeables/Banners/ScornEaterBanner.cs | 25 + Items/Placeables/Banners/ScornEaterBanner.png | Bin 0 -> 321 bytes Items/Placeables/Banners/ScryllarBanner.cs | 25 + Items/Placeables/Banners/ScryllarBanner.png | Bin 0 -> 318 bytes Items/Placeables/Banners/SeaFloatyBanner.cs | 25 + Items/Placeables/Banners/SeaFloatyBanner.png | Bin 0 -> 258 bytes Items/Placeables/Banners/SeaMinnowBanner.cs | 25 + Items/Placeables/Banners/SeaMinnowBanner.png | Bin 0 -> 351 bytes Items/Placeables/Banners/SeaSerpentBanner.cs | 25 + Items/Placeables/Banners/SeaSerpentBanner.png | Bin 0 -> 300 bytes Items/Placeables/Banners/SeaUrchinBanner.cs | 25 + Items/Placeables/Banners/SeaUrchinBanner.png | Bin 0 -> 261 bytes .../Banners/ShockstormShuttleBanner.cs | 25 + .../Banners/ShockstormShuttleBanner.png | Bin 0 -> 324 bytes .../Banners/SmallSightseerBanner.cs | 25 + .../Banners/SmallSightseerBanner.png | Bin 0 -> 333 bytes Items/Placeables/Banners/SoulSluperBanner.cs | 25 + .../Placeables/Banners/SoulSlurperBanner.png | Bin 0 -> 330 bytes .../Placeables/Banners/StellarCulexBanner.cs | 25 + .../Placeables/Banners/StellarCulexBanner.png | Bin 0 -> 336 bytes Items/Placeables/Banners/StormlionBanner.cs | 25 + Items/Placeables/Banners/StormlionBanner.png | Bin 0 -> 327 bytes Items/Placeables/Banners/SunBatBanner.cs | 25 + Items/Placeables/Banners/SunBatBanner.png | Bin 0 -> 276 bytes Items/Placeables/Banners/SunskaterBanner.cs | 25 + Items/Placeables/Banners/SunskaterBanner.png | Bin 0 -> 252 bytes .../Placeables/Banners/TopazCrawlerBanner.cs | 25 + .../Placeables/Banners/TopazCrawlerBanner.png | Bin 0 -> 267 bytes Items/Placeables/Banners/ToxicMinnowBanner.cs | 25 + .../Placeables/Banners/ToxicMinnowBanner.png | Bin 0 -> 348 bytes Items/Placeables/Banners/TrasherBanner.cs | 25 + Items/Placeables/Banners/TrasherBanner.png | Bin 0 -> 246 bytes Items/Placeables/Banners/ViperfishBanner.cs | 25 + Items/Placeables/Banners/ViperfishBanner.png | Bin 0 -> 351 bytes Items/Placeables/Banners/VirulingBanner.cs | 25 + Items/Placeables/Banners/VirulingBanner.png | Bin 0 -> 168 bytes .../Placeables/Banners/WulfrumDroneBanner.cs | 25 + .../Placeables/Banners/WulfrumDroneBanner.png | Bin 0 -> 237 bytes .../Placeables/Banners/WulfrumSlimeBanner.cs | 25 + .../Placeables/Banners/WulfrumSlimeBanner.png | Bin 0 -> 198 bytes Items/Placeables/ChaosCandle.cs | 48 + Items/Placeables/ChaosCandle.png | Bin 0 -> 273 bytes Items/Placeables/ChaoticBrick.png | Bin 2976 -> 326 bytes Items/Placeables/ChaoticBrickWall.png | Bin 3175 -> 414 bytes Items/Placeables/ChaoticOre.cs | 4 +- Items/Placeables/ChaoticOre.png | Bin 354 -> 423 bytes Items/Placeables/CharredOre.cs | 4 +- Items/Placeables/Cinderplate.cs | 16 +- Items/Placeables/CosmiliteBasin.cs | 74 +- Items/Placeables/CosmiliteSconce.cs | 72 +- Items/Placeables/CryonicOre.cs | 4 +- Items/Placeables/DraedonsForge.cs | 12 +- Items/Placeables/EutrophicSand.cs | 33 + Items/Placeables/EutrophicSand.png | Bin 0 -> 2455 bytes Items/Placeables/EutrophicSandWall.cs | 33 + Items/Placeables/EutrophicSandWall.png | Bin 0 -> 2163 bytes Items/Placeables/ExodiumClusterOre.cs | 19 +- Items/Placeables/Navystone.cs | 33 + Items/Placeables/Navystone.png | Bin 0 -> 407 bytes Items/Placeables/NavystoneWall.cs | 33 + Items/Placeables/NavystoneWall.png | Bin 0 -> 2149 bytes Items/Placeables/PerennialOre.cs | 4 +- Items/Placeables/PrismShard.cs | 35 + Items/Placeables/PrismShard.png | Bin 0 -> 399 bytes Items/Placeables/SeaPrism.cs | 35 + Items/Placeables/SeaPrism.png | Bin 270 -> 325 bytes Items/Placeables/Tenebris.cs | 4 +- Items/Placeables/TranquilityCandle.cs | 48 + Items/Placeables/TranquilityCandle.png | Bin 0 -> 279 bytes Items/Placeables/UelibloomOre.cs | 4 +- .../PlaguebringerGoliath/PlagueCellCluster.cs | 30 +- .../PlaguebringerGoliathBag.cs | 59 +- Items/PlaguebringerGoliath/ToxicHeart.cs | 9 +- Items/Polterghast/NecroplasmicBeacon.cs | 12 +- Items/Polterghast/PolterghastBag.cs | 35 +- Items/Polterghast/RuinousSoul.cs | 16 +- Items/PotionofOmniscience.cs | 2 +- Items/ProfanedGuardian/ProfanedShard.cs | 12 +- Items/Providence/DivineGeode.cs | 18 +- Items/Providence/ElysianWings.cs | 2 +- Items/Providence/ProfanedCore.cs | 12 +- Items/Providence/ProfanedCoreUnlimited.cs | 14 +- Items/Providence/ProvidenceBag.cs | 32 +- Items/Providence/UnholyEssence.cs | 18 +- Items/PurifiedJam.cs | 4 +- Items/RedLightningContainer.cs | 12 +- Items/RevivifyPotion.cs | 2 +- Items/Rock.cs | 52 +- Items/Scavenger/FleshTotem.cs | 2 +- Items/Scavenger/RavagerBag.cs | 105 +- Items/ShadowspecBar.cs | 16 +- Items/SlimeGod/PurifiedGel.cs | 4 +- Items/SlimeGod/SlimeGodBag.cs | 37 +- Items/SquishyBeanMount.cs | 4 +- Items/Stardust.cs | 30 +- Items/StormlionMandible.cs | 30 +- Items/SunkenSea/AmidiasPendant.cs | 81 + Items/SunkenSea/AmidiasPendant.png | Bin 0 -> 932 bytes Items/SunkenSea/GiantPearl.cs | 37 + Items/SunkenSea/GiantPearl.png | Bin 0 -> 619 bytes Items/SunkenSea/MolluskHusk.cs | 29 + Items/SunkenSea/MolluskHusk.png | Bin 0 -> 691 bytes Items/SuperDummy.cs | 2 +- Items/SupremeCalamitas/EyeofExtinction.cs | 12 +- Items/SupremeHealingPotion.cs | 16 +- Items/SupremeManaPotion.cs | 96 +- Items/TheDevourerofGods/CosmicWorm.cs | 12 +- Items/TheDevourerofGods/CosmiliteBar.cs | 58 +- Items/TheDevourerofGods/DevourerofGodsBag.cs | 68 +- Items/TheDevourerofGods/DevourerofGodsBag.png | Bin 5802 -> 899 bytes .../DevourerofGodsBagGlow.png | Bin 0 -> 691 bytes Items/TheDevourerofGods/NebulousCore.cs | 2 +- Items/TheDevourerofGods/NebulousCore.png | Bin 597 -> 716 bytes Items/TitanScalePotion.cs | 2 +- Items/TrapperBulb.cs | 30 +- Items/TrashmanTrashcan.cs | 40 + Items/UeliaceBar.cs | 16 +- Items/UnholyCore.cs | 4 +- Items/VerstaltiteBar.cs | 8 +- Items/VictideBar.cs | 54 +- Items/Weapons/AMR.cs | 14 +- Items/Weapons/AbyssWeapons/CalamarisLament.cs | 14 +- Items/Weapons/AbyssWeapons/EidolicWail.cs | 14 +- Items/Weapons/AbyssWeapons/HalibutCannon.cs | 6 +- Items/Weapons/AbyssWeapons/SoulEdge.cs | 14 +- .../AbyssWeapons/SulphuricAcidCannon.cs | 14 +- .../AbyssWeapons/UndinesRetribution.cs | 2 +- Items/Weapons/AccretionDiskMelee.cs | 12 +- Items/Weapons/AcidBullet.cs | 2 +- Items/Weapons/AegisBlade.cs | 12 +- Items/Weapons/AethersWhisper.cs | 14 +- Items/Weapons/Alluvion.cs | 20 +- Items/Weapons/AlphaRay.cs | 14 +- Items/Weapons/AncientShiv.png | Bin 351 -> 354 bytes Items/Weapons/Animosity.cs | 2 +- Items/Weapons/Animus.cs | 14 +- Items/Weapons/ApoctosisArray.cs | 12 +- Items/Weapons/Apotheosis.cs | 12 +- Items/Weapons/AquaticDissolution.cs | 14 +- Items/Weapons/AquaticScourge/Downpour.cs | 2 +- Items/Weapons/ArkoftheCosmos.cs | 14 +- Items/Weapons/ArkoftheElements.cs | 12 +- Items/Weapons/ArterialAssault.cs | 20 +- Items/Weapons/AsteroidStaff.cs | 14 +- Items/Weapons/Astral/AstralBlaster.cs | 98 +- Items/Weapons/Astral/AstralPike.cs | 124 +- Items/Weapons/Astral/AstralRepeater.cs | 100 +- Items/Weapons/Astral/AstralScythe.cs | 66 +- Items/Weapons/Astral/AstralScythe.png | Bin 940 -> 1463 bytes Items/Weapons/Astral/AstralStaff.cs | 4 +- Items/Weapons/Astral/AstralachneaStaff.cs | 160 +- Items/Weapons/Astral/HivePod.cs | 124 +- Items/Weapons/Astral/StellarCannon.cs | 84 +- Items/Weapons/Astral/TitanArm.cs | 64 +- Items/Weapons/AstrealDefeat.cs | 6 - Items/Weapons/AstrumDeus/Nebulash.png | Bin 1176 -> 965 bytes Items/Weapons/AuguroftheElements.cs | 14 +- Items/Weapons/Azathoth.cs | 16 +- Items/Weapons/BloodfireArrow.cs | 12 +- Items/Weapons/BloodyEdge.cs | 2 +- Items/Weapons/BlossomFlux.cs | 20 +- Items/Weapons/BlushieStaff.cs | 12 +- Items/Weapons/BrimroseStaff.cs | 2 +- .../BrimstoneWaifu/SeethingDischarge.cs | 2 +- Items/Weapons/BrinyBaron.cs | 12 +- Items/Weapons/Bumblebirb/GildedProboscis.cs | 18 +- Items/Weapons/Bumblebirb/GoldenEagle.cs | 16 +- Items/Weapons/Bumblebirb/RougeSlash.cs | 16 +- Items/Weapons/BurntSienna.cs | 4 +- Items/Weapons/Chaotrix.png | Bin 510 -> 684 bytes Items/Weapons/ClaretCannon.cs | 14 +- Items/Weapons/CleansingBlaze.cs | 14 +- Items/Weapons/Climax.cs | 14 +- Items/Weapons/ClockGatlignum.cs | 2 +- Items/Weapons/ClockGatlignum.png | Bin 1032 -> 1071 bytes Items/Weapons/ClockworkBow.cs | 20 +- Items/Weapons/ConferenceCall.cs | 2 +- Items/Weapons/Contagion.cs | 16 +- Items/Weapons/CosmicDischarge.cs | 12 +- Items/Weapons/CosmicImmaterializer.cs | 22 +- Items/Weapons/Cosmilamp.cs | 16 +- Items/Weapons/Crimsaber.cs | 4 +- Items/Weapons/Cryogen/Avalanche.cs | 210 +- Items/Weapons/CursedCapper.png | Bin 323 -> 771 bytes Items/Weapons/Devastation.cs | 12 +- Items/Weapons/DevilsDevastation.cs | 12 +- .../Weapons/DevourerofGods/DeathhailStaff.cs | 26 +- .../Weapons/DevourerofGods/DeathhailStaff.png | Bin 734 -> 1947 bytes .../DevourerofGods/DeathhailStaffGlow.png | Bin 0 -> 493 bytes Items/Weapons/DevourerofGods/Deathwind.cs | 42 +- Items/Weapons/DevourerofGods/Deathwind.png | Bin 765 -> 1988 bytes .../Weapons/DevourerofGods/DeathwindGlow.png | Bin 0 -> 475 bytes .../Weapons/DevourerofGods/EradicatorMelee.cs | 21 +- .../DevourerofGods/EradicatorMelee.png | Bin 722 -> 1791 bytes .../DevourerofGods/EradicatorMeleeGlow.png | Bin 0 -> 1381 bytes Items/Weapons/DevourerofGods/Excelsus.cs | 50 +- Items/Weapons/DevourerofGods/Excelsus.png | Bin 23180 -> 2271 bytes Items/Weapons/DevourerofGods/ExcelsusGlow.png | Bin 0 -> 1131 bytes .../DevourerofGods/StaffoftheMechworm.cs | 12 +- .../DevourerofGods/StaffoftheMechworm.png | Bin 795 -> 1405 bytes .../Weapons/DevourerofGods/TheObliterator.cs | 14 +- .../Weapons/DevourerofGods/TheObliterator.png | Bin 500 -> 1159 bytes Items/Weapons/DraconicDestruction.cs | 12 +- Items/Weapons/DraedonsExoblade.cs | 20 +- Items/Weapons/Drataliornus.cs | 12 +- Items/Weapons/Earth.cs | 42 +- Items/Weapons/Effervescence.cs | 54 +- Items/Weapons/ElementalAxe.cs | 14 +- Items/Weapons/ElementalBlaster.cs | 12 +- Items/Weapons/ElementalEruption.cs | 14 +- Items/Weapons/ElementalRay.cs | 16 +- Items/Weapons/ElementalShortsword.cs | 14 +- Items/Weapons/ElysianArrow.cs | 12 +- Items/Weapons/EmpyreanKnives.cs | 14 +- Items/Weapons/EnergyStaff.cs | 16 +- Items/Weapons/EssenceFlayer.cs | 12 +- Items/Weapons/ExcaliburShortsword.png | Bin 555 -> 600 bytes Items/Weapons/ExsanguinationLance.png | Bin 717 -> 1272 bytes Items/Weapons/Fabstaff.cs | 16 +- Items/Weapons/FiniteUse/Bazooka.cs | 116 +- Items/Weapons/FiniteUse/ElephantKiller.cs | 112 +- Items/Weapons/FiniteUse/ElephantKiller.png | Bin 608 -> 610 bytes Items/Weapons/FiniteUse/ExplosiveShells.cs | 33 + Items/Weapons/FiniteUse/ExplosiveShells.png | Bin 0 -> 279 bytes Items/Weapons/FiniteUse/GrenadeRounds.cs | 54 +- Items/Weapons/FiniteUse/Hydra.cs | 69 + Items/Weapons/FiniteUse/Hydra.png | Bin 0 -> 1048 bytes Items/Weapons/FiniteUse/LightningHawk.cs | 106 +- Items/Weapons/FiniteUse/LightningHawk.png | Bin 671 -> 660 bytes Items/Weapons/FiniteUse/Magnum.cs | 102 +- Items/Weapons/FiniteUse/Magnum.png | Bin 584 -> 584 bytes Items/Weapons/FiniteUse/MagnumRounds.cs | 56 +- Items/Weapons/FiniteUse/MagnumRounds.png | Bin 390 -> 389 bytes Items/Weapons/FirestormCannon.cs | 2 +- Items/Weapons/FlameScytheMelee.png | Bin 789 -> 1032 bytes Items/Weapons/FlarewingBow.png | Bin 849 -> 672 bytes Items/Weapons/ForbiddenSun.png | Bin 510 -> 649 bytes Items/Weapons/FourSeasonsGalaxia.cs | 12 +- Items/Weapons/GalacticaBlade.cs | 12 +- Items/Weapons/GammaFusillade.cs | 16 +- Items/Weapons/Genisis.cs | 16 +- Items/Weapons/GrandGuardian.cs | 22 +- Items/Weapons/Grax.cs | 16 +- Items/Weapons/GreatbowofTurmoil.png | Bin 606 -> 1204 bytes Items/Weapons/GreatswordofBlah.cs | 12 +- Items/Weapons/GreatswordofJudgement.cs | 12 +- Items/Weapons/HeavenlyGale.cs | 22 +- Items/Weapons/HellfireFlamberge.cs | 4 +- Items/Weapons/HellfireFlamberge.png | Bin 825 -> 1215 bytes Items/Weapons/Hellkite.png | Bin 18657 -> 1880 bytes Items/Weapons/Helstorm.png | Bin 483 -> 689 bytes Items/Weapons/HiveMind/Shadethrower.cs | 2 +- Items/Weapons/InfernalRift.cs | 2 +- Items/Weapons/Interfacer.cs | 16 +- Items/Weapons/IonBlaster.cs | 2 +- Items/Weapons/Judgement.cs | 16 +- Items/Weapons/Lacerator.cs | 18 +- Items/Weapons/Leviathan/Atlantis.png | Bin 1354 -> 1539 bytes Items/Weapons/Leviathan/LureofEnthrallment.cs | 2 +- Items/Weapons/Leviathan/SirensSong.cs | 4 +- Items/Weapons/LifefruitScythe.cs | 16 +- Items/Weapons/LunicEye.png | Bin 555 -> 1107 bytes Items/Weapons/MagneticMeltdown.cs | 14 +- Items/Weapons/MajesticGuard.cs | 6 +- Items/Weapons/MantisClaws.cs | 4 +- Items/Weapons/Megafleet.cs | 16 +- Items/Weapons/Megalodon.cs | 2 +- Items/Weapons/Meowthrower.cs | 2 +- Items/Weapons/Meowthrower.png | Bin 18271 -> 843 bytes Items/Weapons/Minigun.cs | 16 +- Items/Weapons/MirrorBlade.cs | 12 +- Items/Weapons/Mistlestorm.cs | 16 +- Items/Weapons/MolecularManipulator.cs | 20 +- Items/Weapons/Mourningstar.cs | 12 +- Items/Weapons/Murasama.cs | 12 +- Items/Weapons/NeptunesBounty.cs | 12 +- Items/Weapons/NettlelineGreatbow.cs | 20 +- Items/Weapons/NuclearFury.cs | 14 +- Items/Weapons/NullificationRifle.cs | 4 + Items/Weapons/OmegaBiomeBlade.cs | 12 +- Items/Weapons/Omniblade.cs | 2 +- Items/Weapons/OnyxChainBlaster.cs | 16 +- Items/Weapons/Onyxia.cs | 89 + Items/Weapons/Onyxia.png | Bin 0 -> 435 bytes Items/Weapons/P90.cs | 2 +- Items/Weapons/Phangasm.cs | 14 +- Items/Weapons/PhantasmalFury.cs | 18 +- Items/Weapons/PhoenixBlade.cs | 34 +- Items/Weapons/Photoviscerator.cs | 14 +- Items/Weapons/PlagueKeeper.cs | 134 +- Items/Weapons/PlanetaryAnnihilation.cs | 14 +- Items/Weapons/PlasmaRifle.cs | 18 +- Items/Weapons/PlasmaRod.png | Bin 534 -> 534 bytes Items/Weapons/Polterghast/BansheeHook.cs | 14 +- Items/Weapons/Polterghast/DaemonsFlame.cs | 14 +- .../Weapons/Polterghast/EtherealSubjugator.cs | 14 +- Items/Weapons/Polterghast/FatesReveal.cs | 14 +- Items/Weapons/Polterghast/GhastlyVisage.cs | 14 +- Items/Weapons/Polterghast/TerrorBlade.cs | 14 +- Items/Weapons/PrimordialAncient.cs | 14 +- .../Weapons/Providence/BlissfulBombardier.cs | 16 +- Items/Weapons/Providence/HolyCollider.cs | 18 +- Items/Weapons/Providence/PurgeGuzzler.cs | 12 +- Items/Weapons/Providence/SolarFlare.cs | 16 +- Items/Weapons/Providence/TelluricGlare.cs | 20 +- Items/Weapons/Pumpler.cs | 2 +- Items/Weapons/RedSun.cs | 14 +- Items/Weapons/RoyalKnivesMelee.cs | 16 +- Items/Weapons/SDFMG.cs | 16 +- Items/Weapons/SHPC.cs | 14 +- Items/Weapons/SanguineFlare.cs | 16 +- Items/Weapons/Scorpion.cs | 2 +- Items/Weapons/ScourgeoftheCosmos.cs | 12 +- Items/Weapons/ScourgeoftheCosmos.png | Bin 724 -> 1291 bytes Items/Weapons/Seadragon.cs | 18 +- Items/Weapons/ShadowboltStaff.cs | 18 +- Items/Weapons/Shredder.cs | 21 +- Items/Weapons/SlimeGod/OverloadedBlaster.cs | 2 +- Items/Weapons/SolsticeClaymore.cs | 16 +- Items/Weapons/SomaPrime.cs | 18 +- Items/Weapons/SoulHarvester.png | Bin 485 -> 1185 bytes Items/Weapons/SoulPiercer.cs | 14 +- Items/Weapons/SpatialLance.cs | 14 +- Items/Weapons/SpectralstormCannon.cs | 2 +- Items/Weapons/SpectreRifle.cs | 11 +- Items/Weapons/SpectreRifle.png | Bin 18130 -> 792 bytes Items/Weapons/Spyker.cs | 16 +- Items/Weapons/StarCannonEX.png | Bin 762 -> 1044 bytes Items/Weapons/StardustStaff.png | Bin 2153 -> 1361 bytes Items/Weapons/Starfleet.cs | 15 +- Items/Weapons/StarfleetMK2.cs | 14 +- Items/Weapons/StellarStriker.cs | 14 +- Items/Weapons/StormDragoon.cs | 18 +- Items/Weapons/StreamGouge.cs | 14 +- Items/Weapons/SubsumingVortex.cs | 14 +- Items/Weapons/SunSpiritStaff.cs | 2 +- Items/Weapons/SunkenSea/AquamarineStaff.cs | 72 + Items/Weapons/SunkenSea/AquamarineStaff.png | Bin 0 -> 859 bytes Items/Weapons/SunkenSea/AquashardShotgun.cs | 70 + Items/Weapons/SunkenSea/AquashardShotgun.png | Bin 0 -> 999 bytes Items/Weapons/SunkenSea/ClamCrusher.cs | 42 + Items/Weapons/SunkenSea/ClamCrusher.png | Bin 0 -> 1186 bytes Items/Weapons/SunkenSea/ClamorRifle.cs | 51 + Items/Weapons/SunkenSea/ClamorRifle.png | Bin 0 -> 1069 bytes Items/Weapons/SunkenSea/EutrophicScimitar.cs | 47 + Items/Weapons/SunkenSea/EutrophicScimitar.png | Bin 0 -> 1433 bytes Items/Weapons/SunkenSea/EutrophicShank.cs | 59 + Items/Weapons/SunkenSea/EutrophicShank.png | Bin 0 -> 909 bytes Items/Weapons/SunkenSea/Poseidon.cs | 40 + Items/Weapons/SunkenSea/Poseidon.png | Bin 0 -> 755 bytes Items/Weapons/SunkenSea/SeashineSword.cs | 46 + Items/Weapons/SunkenSea/SeashineSword.png | Bin 0 -> 932 bytes Items/Weapons/SunkenSea/Serpentine.cs | 98 + Items/Weapons/SunkenSea/Serpentine.png | Bin 0 -> 618 bytes Items/Weapons/SunkenSea/ShellfishStaff.cs | 82 + Items/Weapons/SunkenSea/ShellfishStaff.png | Bin 0 -> 1052 bytes Items/Weapons/SunkenSea/Whirlpool.cs | 50 + Items/Weapons/SunkenSea/Whirlpool.png | Bin 0 -> 1084 bytes Items/Weapons/Svantechnical.cs | 18 +- Items/Weapons/Svantechnical.png | Bin 606 -> 648 bytes Items/Weapons/T1000.cs | 14 +- Items/Weapons/TerraEdge.cs | 4 +- Items/Weapons/TerraFlameburster.cs | 2 +- Items/Weapons/Terratomere.cs | 4 +- Items/Weapons/TheEmpyrean.cs | 2 +- Items/Weapons/TheEnforcer.cs | 14 +- Items/Weapons/TheMutilator.cs | 16 +- Items/Weapons/TheStorm.cs | 20 +- Items/Weapons/TheWand.cs | 12 +- ...tisTruePaladinianMageHammerofMightMelee.cs | 16 +- Items/Weapons/TrueExcaliburShortsword.cs | 4 +- Items/Weapons/TrueExcaliburShortsword.png | Bin 788 -> 813 bytes Items/Weapons/TrueTyrantYharimsUltisword.cs | 16 +- Items/Weapons/UltraLiquidator.cs | 14 +- Items/Weapons/VanquisherArrow.cs | 12 +- Items/Weapons/VenusianTrident.cs | 18 +- Items/Weapons/Verdant.cs | 14 +- Items/Weapons/Vesuvius.cs | 12 +- Items/Weapons/Viscera.cs | 14 +- Items/Weapons/VividClarity.cs | 14 +- Items/Weapons/YharimsCrystal.cs | 14 +- Items/Weapons/YharimsCrystal.png | Bin 588 -> 1537 bytes Items/Weapons/Yharon/AngryChickenStaff.cs | 14 +- Items/Weapons/Yharon/ChickenCannon.cs | 14 +- Items/Weapons/Yharon/DragonRage.cs | 14 +- Items/Weapons/Yharon/DragonsBreath.cs | 16 +- Items/Weapons/Yharon/PhoenixFlameBarrage.cs | 14 +- Items/Weapons/Yharon/TheBurningSky.cs | 14 +- Items/WulfrumShard.cs | 4 +- Items/YharimsStimulants.cs | 2 +- Items/Yharon/ChickenEgg.cs | 14 +- Items/Yharon/HellcasterFragment.cs | 16 +- Items/Yharon/YharonBag.cs | 35 +- ModSupport.cs | 30 +- NPCs/AbyssNPCs/AquaticParasite.cs | 382 +- NPCs/AbyssNPCs/AquaticScourgeBody.cs | 19 +- NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs | 18 +- NPCs/AbyssNPCs/AquaticScourgeHead.cs | 3 +- NPCs/AbyssNPCs/AquaticScourgeTail.cs | 17 +- NPCs/AbyssNPCs/AquaticSeekerBody.cs | 5 +- NPCs/AbyssNPCs/AquaticSeekerHead.cs | 3 + NPCs/AbyssNPCs/AquaticSeekerTail.cs | 5 +- NPCs/AbyssNPCs/AquaticUrchin.cs | 5 + NPCs/AbyssNPCs/Bloatfish.cs | 11 +- NPCs/AbyssNPCs/BobbitWormHead.cs | 2 + NPCs/AbyssNPCs/BobbitWormSegment.cs | 4 +- NPCs/AbyssNPCs/BoxJellyfish.cs | 6 +- NPCs/AbyssNPCs/Catfish.cs | 4 +- NPCs/AbyssNPCs/ChaoticPuffer.cs | 484 +- NPCs/AbyssNPCs/ColossalSquid.cs | 8 +- NPCs/AbyssNPCs/Cuttlefish.cs | 8 +- NPCs/AbyssNPCs/DevilFish.cs | 672 +- NPCs/AbyssNPCs/EidolonWyrmHead.cs | 12 +- NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs | 8 +- NPCs/AbyssNPCs/Flounder.cs | 4 +- NPCs/AbyssNPCs/Frogfish.cs | 4 +- NPCs/AbyssNPCs/GiantSquid.cs | 12 +- NPCs/AbyssNPCs/Gnasher.cs | 4 +- NPCs/AbyssNPCs/GulperEelBody.cs | 2 + NPCs/AbyssNPCs/GulperEelBodyAlt.cs | 2 + NPCs/AbyssNPCs/GulperEelHead.cs | 10 +- NPCs/AbyssNPCs/GulperEelTail.cs | 2 + NPCs/AbyssNPCs/Laserfish.cs | 12 +- NPCs/AbyssNPCs/LuminousCorvina.cs | 8 +- NPCs/AbyssNPCs/MantisShrimp.cs | 4 +- NPCs/AbyssNPCs/Mauler.cs | 4 +- NPCs/AbyssNPCs/MirageJelly.cs | 8 +- NPCs/AbyssNPCs/MorayEel.cs | 6 +- NPCs/AbyssNPCs/OarfishBody.cs | 2 + NPCs/AbyssNPCs/OarfishHead.cs | 10 +- NPCs/AbyssNPCs/OarfishTail.cs | 2 + NPCs/AbyssNPCs/Reaper.cs | 12 +- NPCs/AbyssNPCs/SeaUrchin.cs | 2 + NPCs/AbyssNPCs/ToxicMinnow.cs | 10 +- NPCs/AbyssNPCs/Trasher.cs | 10 +- NPCs/AbyssNPCs/Viperfish.cs | 10 +- NPCs/Astrageldon/Astrageldon.cs | 37 +- NPCs/Astrageldon/AstrageldonSlime.cs | 5 +- NPCs/AstralBiomeNPCs/Aries.cs | 10 +- NPCs/AstralBiomeNPCs/AstralProbe.cs | 2 + NPCs/AstralBiomeNPCs/AstralSlime.cs | 5 +- NPCs/AstralBiomeNPCs/AstralachneaGround.cs | 5 +- NPCs/AstralBiomeNPCs/AstralachneaWall.cs | 5 +- NPCs/AstralBiomeNPCs/Atlas.cs | 5 +- NPCs/AstralBiomeNPCs/BigSightseer.cs | 4 +- NPCs/AstralBiomeNPCs/FusionFeeder.cs | 5 +- NPCs/AstralBiomeNPCs/Hadarian.cs | 10 +- NPCs/AstralBiomeNPCs/Hive.cs | 4 +- NPCs/AstralBiomeNPCs/Mantis.cs | 4 +- NPCs/AstralBiomeNPCs/Nova.cs | 4 +- NPCs/AstralBiomeNPCs/SmallSightseer.cs | 4 +- NPCs/AstralBiomeNPCs/StellarCulex.cs | 5 +- NPCs/AstrumDeus/AstrumDeusBody.cs | 3 +- NPCs/AstrumDeus/AstrumDeusBodySpectral.cs | 43 +- NPCs/AstrumDeus/AstrumDeusHead.cs | 12 +- NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs | 64 +- NPCs/AstrumDeus/AstrumDeusProbe3.cs | 5 +- NPCs/AstrumDeus/AstrumDeusTail.cs | 11 +- NPCs/AstrumDeus/AstrumDeusTailSpectral.cs | 65 +- NPCs/BrimstoneWaifu/Brimling.cs | 3 +- NPCs/BrimstoneWaifu/BrimstoneElemental.cs | 401 +- NPCs/Bumblefuck/Bumblefuck.cs | 533 +- NPCs/Bumblefuck/Bumblefuck2.cs | 9 +- NPCs/Bumblefuck/Bumblefuck3.cs | 3 +- NPCs/Calamitas/Calamitas.cs | 125 +- NPCs/Calamitas/CalamitasRun.cs | 54 +- NPCs/Calamitas/CalamitasRun2.cs | 54 +- NPCs/Calamitas/CalamitasRun3.cs | 287 +- NPCs/Calamitas/LifeSeeker.cs | 4 + NPCs/Calamitas/SoulSeeker.cs | 5 + NPCs/CalamityBiomeNPCs/CultistAssassin.cs | 6 +- NPCs/CalamityBiomeNPCs/DespairStone.cs | 6 +- NPCs/CalamityBiomeNPCs/Scryllar.cs | 6 +- NPCs/CalamityBiomeNPCs/ScryllarRage.cs | 6 +- NPCs/CalamityBiomeNPCs/SoulSlurper.cs | 10 +- NPCs/CalamityGlobalNPC.cs | 22159 ++++++++-------- NPCs/CeaselessVoid/CeaselessVoid.cs | 449 +- NPCs/CeaselessVoid/DarkEnergy.cs | 14 +- NPCs/CeaselessVoid/DarkEnergy2.cs | 14 +- NPCs/CeaselessVoid/DarkEnergy3.cs | 14 +- NPCs/CosmicWraith/CosmicLantern.cs | 7 +- NPCs/CosmicWraith/CosmicWraith.cs | 812 +- NPCs/Crabulon/CrabShroom.cs | 1 + NPCs/Crabulon/CrabulonIdle.cs | 454 +- NPCs/Cryogen/Cryocore.cs | 1 + NPCs/Cryogen/Cryocore2.cs | 1 + NPCs/Cryogen/Cryogen.cs | 1486 +- NPCs/Cryogen/CryogenIce.cs | 2 +- NPCs/Cryogen/IceMass.cs | 1 + NPCs/DesertScourge/DesertScourgeBody.cs | 11 +- NPCs/DesertScourge/DesertScourgeBodySmall.cs | 1 + NPCs/DesertScourge/DesertScourgeHead.cs | 2 +- NPCs/DesertScourge/DesertScourgeTail.cs | 11 +- NPCs/DesertScourge/DesertScourgeTailSmall.cs | 1 + NPCs/DesertScourge/DriedSeekerBody.cs | 1 + NPCs/DesertScourge/DriedSeekerHead.cs | 1 + NPCs/DesertScourge/DriedSeekerTail.cs | 1 + NPCs/GreatSandShark/GreatSandShark.cs | 55 +- NPCs/HiveMind/DankCreeper.cs | 4 + NPCs/HiveMind/DarkHeart.cs | 2 + NPCs/HiveMind/HiveBlob.cs | 116 +- NPCs/HiveMind/HiveBlob2.cs | 32 + NPCs/HiveMind/HiveMind.cs | 23 +- NPCs/HiveMind/HiveMindP2.cs | 944 +- NPCs/Leviathan/AquaticAberration.cs | 3 + NPCs/Leviathan/Leviathan.cs | 690 +- NPCs/Leviathan/LeviathanStart.cs | 6 +- NPCs/Leviathan/LeviathanStart.png | Bin 2938 -> 2283 bytes NPCs/Leviathan/Parasea.cs | 3 + NPCs/Leviathan/Siren.cs | 604 +- NPCs/Leviathan/Siren.png | Bin 10357 -> 22093 bytes NPCs/Leviathan/SirenAlt.png | Bin 35667 -> 19345 bytes NPCs/Leviathan/SirenAltSinging.png | Bin 0 -> 23963 bytes NPCs/Leviathan/SirenAltStabbing.png | Bin 0 -> 24863 bytes NPCs/Leviathan/SirenClone.cs | 4 +- NPCs/Leviathan/SirenClone.png | Bin 3023 -> 18004 bytes NPCs/Leviathan/SirenIce.cs | 19 +- NPCs/Leviathan/SirenIce.png | Bin 1757 -> 3292 bytes NPCs/Leviathan/SirenSinging.png | Bin 0 -> 21609 bytes NPCs/Leviathan/SirenStabbing.png | Bin 0 -> 22531 bytes NPCs/Leviathan/Siren_Head_Boss.png | Bin 942 -> 527 bytes NPCs/NormalNPCs/AeroSlime.cs | 5 +- NPCs/NormalNPCs/AngryDog.cs | 23 +- NPCs/NormalNPCs/ArmoredDiggerBody.cs | 4 +- NPCs/NormalNPCs/ArmoredDiggerHead.cs | 4 +- NPCs/NormalNPCs/ArmoredDiggerTail.cs | 4 +- NPCs/NormalNPCs/BlightedEye.cs | 2 + NPCs/NormalNPCs/BloomSlime.cs | 5 +- NPCs/NormalNPCs/Bohldohr.cs | 2 + NPCs/NormalNPCs/Bohldohr.png | Bin 1292 -> 1247 bytes NPCs/NormalNPCs/CalamityEye.cs | 8 +- NPCs/NormalNPCs/CharredSlime.cs | 2 + NPCs/NormalNPCs/Cnidrion.cs | 4 +- NPCs/NormalNPCs/CosmicElemental.cs | 4 +- NPCs/NormalNPCs/CrawlerAmber.cs | 208 +- NPCs/NormalNPCs/CrawlerAmber.png | Bin 1066 -> 1689 bytes NPCs/NormalNPCs/CrawlerAmethyst.cs | 210 +- NPCs/NormalNPCs/CrawlerAmethyst.png | Bin 1035 -> 1645 bytes NPCs/NormalNPCs/CrawlerCrystal.cs | 210 +- NPCs/NormalNPCs/CrawlerCrystal.png | Bin 1169 -> 1881 bytes NPCs/NormalNPCs/CrawlerDiamond.cs | 210 +- NPCs/NormalNPCs/CrawlerDiamond.png | Bin 1035 -> 1540 bytes NPCs/NormalNPCs/CrawlerEmerald.cs | 210 +- NPCs/NormalNPCs/CrawlerEmerald.png | Bin 1035 -> 1659 bytes NPCs/NormalNPCs/CrawlerRuby.cs | 210 +- NPCs/NormalNPCs/CrawlerRuby.png | Bin 1035 -> 1646 bytes NPCs/NormalNPCs/CrawlerSapphire.cs | 210 +- NPCs/NormalNPCs/CrawlerSapphire.png | Bin 1035 -> 1657 bytes NPCs/NormalNPCs/CrawlerTopaz.cs | 210 +- NPCs/NormalNPCs/CrawlerTopaz.png | Bin 1035 -> 1712 bytes NPCs/NormalNPCs/CrimulanBlightSlime.cs | 2 + NPCs/NormalNPCs/CryoSlime.cs | 5 +- NPCs/NormalNPCs/Cryon.cs | 10 +- NPCs/NormalNPCs/EbonianBlightSlime.cs | 2 + NPCs/NormalNPCs/Eidolist.cs | 4 +- NPCs/NormalNPCs/HeatSpirit.cs | 4 +- NPCs/NormalNPCs/Horse.cs | 7 +- NPCs/NormalNPCs/IceClasper.cs | 12 +- NPCs/NormalNPCs/ImpiousImmolator.cs | 4 +- NPCs/NormalNPCs/IrradiatedSlime.cs | 6 +- NPCs/NormalNPCs/OverloadedSoldier.cs | 5 +- NPCs/NormalNPCs/PerennialSlime.cs | 5 +- NPCs/NormalNPCs/PhantomDebris.cs | 5 +- NPCs/NormalNPCs/PhantomSpirit.cs | 2 + NPCs/NormalNPCs/PhantomSpiritL.cs | 4 +- NPCs/NormalNPCs/PhantomSpiritM.cs | 2 + NPCs/NormalNPCs/PhantomSpiritS.cs | 2 + NPCs/NormalNPCs/Pitbull.cs | 2 + NPCs/NormalNPCs/PlagueBee.cs | 4 +- NPCs/NormalNPCs/PlagueBeeLarge.cs | 4 +- NPCs/NormalNPCs/PlaguedDerpling.cs | 20 +- NPCs/NormalNPCs/PlaguedDerpling.png | Bin 657 -> 2959 bytes NPCs/NormalNPCs/PlaguedFlyingFox.cs | 11 +- NPCs/NormalNPCs/PlaguedJungleSlime.cs | 6 +- NPCs/NormalNPCs/PlaguedJungleSlime.png | Bin 792 -> 1040 bytes NPCs/NormalNPCs/PlaguedTortoise.cs | 6 +- NPCs/NormalNPCs/ProfanedEnergyBody.cs | 2 + NPCs/NormalNPCs/SandTortoise.cs | 19 +- NPCs/NormalNPCs/SandTortoise.png | Bin 4563 -> 4026 bytes NPCs/NormalNPCs/ScornEater.cs | 2 + NPCs/NormalNPCs/ShockstormShuttle.cs | 8 +- NPCs/NormalNPCs/StormlionCharger.cs | 4 +- NPCs/NormalNPCs/SunBat.cs | 7 +- NPCs/NormalNPCs/Sunskater.cs | 6 +- NPCs/NormalNPCs/ThiccWaifu.cs | 3 + NPCs/NormalNPCs/WulfrumDrone.cs | 2 + NPCs/NormalNPCs/WulfrumSlime.cs | 2 + NPCs/Perforator/PerforatorBodyLarge.cs | 1 + NPCs/Perforator/PerforatorBodyMedium.cs | 1 + NPCs/Perforator/PerforatorBodySmall.cs | 1 + NPCs/Perforator/PerforatorHive.cs | 404 +- NPCs/Perforator/PerforatorTailLarge.cs | 1 + NPCs/Perforator/PerforatorTailMedium.cs | 1 + NPCs/Perforator/PerforatorTailSmall.cs | 1 + NPCs/PlaguebringerGoliath/PlagueBeeG.cs | 1 + NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs | 1 + .../PlagueHomingMissile.cs | 5 +- NPCs/PlaguebringerGoliath/PlagueMine.cs | 3 +- .../PlaguebringerGoliath.cs | 1953 +- NPCs/PlaguebringerShade/PlaguebringerShade.cs | 2 + NPCs/Polterghast/PolterPhantom.cs | 5 +- NPCs/Polterghast/Polterghast.cs | 1220 +- NPCs/Polterghast/PolterghastHook.cs | 2 +- .../ProfanedGuardianBoss.cs | 64 +- .../ProfanedGuardianBoss2.cs | 8 +- .../ProfanedGuardianBoss3.cs | 10 +- NPCs/Providence/ProvSpawnDefense.cs | 7 +- NPCs/Providence/ProvSpawnHealer.cs | 7 +- NPCs/Providence/ProvSpawnOffense.cs | 62 +- NPCs/Providence/Providence.cs | 1681 +- NPCs/Scavenger/FlamePillar.cs | 2 +- NPCs/Scavenger/ScavengerBody.cs | 19 +- NPCs/Scavenger/ScavengerClawLeft.cs | 11 +- NPCs/Scavenger/ScavengerClawRight.cs | 12 +- NPCs/Scavenger/ScavengerHead.cs | 7 +- NPCs/Scavenger/ScavengerHead2.cs | 3 + NPCs/Scavenger/ScavengerLegLeft.cs | 5 +- NPCs/Scavenger/ScavengerLegRight.cs | 5 +- NPCs/SlimeGod/SlimeGod.cs | 4 +- NPCs/SlimeGod/SlimeGodCore.cs | 57 +- NPCs/SlimeGod/SlimeGodRun.cs | 4 +- NPCs/SlimeGod/SlimeGodRunSplit.cs | 4 +- NPCs/SlimeGod/SlimeGodSplit.cs | 4 +- NPCs/SlimeGod/SlimeSpawnCorrupt.cs | 1 + NPCs/SlimeGod/SlimeSpawnCorrupt2.cs | 1 + NPCs/SlimeGod/SlimeSpawnCrimson.cs | 1 + NPCs/SlimeGod/SlimeSpawnCrimson2.cs | 1 + NPCs/StormWeaver/StasisProbe.cs | 1 + NPCs/StormWeaver/StasisProbeNaked.cs | 1 + NPCs/StormWeaver/StormWeaverBody.cs | 1 + NPCs/StormWeaver/StormWeaverBodyNaked.cs | 54 +- NPCs/StormWeaver/StormWeaverHeadNaked.cs | 82 +- NPCs/StormWeaver/StormWeaverTail.cs | 1 + NPCs/StormWeaver/StormWeaverTailNaked.cs | 54 +- NPCs/SunkenSeaNPCs/BlindedAngler.cs | 272 + NPCs/SunkenSeaNPCs/BlindedAngler.png | Bin 0 -> 4065 bytes NPCs/SunkenSeaNPCs/BlindedAnglerGlow.png | Bin 0 -> 2685 bytes NPCs/SunkenSeaNPCs/Clam.cs | 214 + NPCs/SunkenSeaNPCs/Clam.png | Bin 0 -> 830 bytes NPCs/SunkenSeaNPCs/EutrophicRay.cs | 210 + NPCs/SunkenSeaNPCs/EutrophicRay.png | Bin 0 -> 4397 bytes NPCs/SunkenSeaNPCs/EutrophicRayGlow.png | Bin 0 -> 2073 bytes NPCs/SunkenSeaNPCs/GhostBell.cs | 152 + NPCs/SunkenSeaNPCs/GhostBell.png | Bin 0 -> 5517 bytes NPCs/SunkenSeaNPCs/GhostBellGlow.png | Bin 0 -> 5517 bytes NPCs/SunkenSeaNPCs/GhostBellSmall.cs | 127 + NPCs/SunkenSeaNPCs/GhostBellSmall.png | Bin 0 -> 1805 bytes NPCs/SunkenSeaNPCs/GhostBellSmallGlow.png | Bin 0 -> 1805 bytes NPCs/SunkenSeaNPCs/GiantClam.cs | 394 + NPCs/SunkenSeaNPCs/GiantClam.png | Bin 0 -> 68995 bytes NPCs/SunkenSeaNPCs/GiantClamGlow.png | Bin 0 -> 4817 bytes NPCs/SunkenSeaNPCs/PrismTurtle.cs | 279 + NPCs/SunkenSeaNPCs/PrismTurtle.png | Bin 0 -> 6209 bytes NPCs/SunkenSeaNPCs/PrismTurtleGlow.png | Bin 0 -> 2980 bytes NPCs/SunkenSeaNPCs/SeaFloaty.cs | 145 + NPCs/SunkenSeaNPCs/SeaFloaty.png | Bin 0 -> 1756 bytes NPCs/SunkenSeaNPCs/SeaMinnow.cs | 222 + NPCs/SunkenSeaNPCs/SeaMinnow.png | Bin 0 -> 813 bytes NPCs/SunkenSeaNPCs/SeaSerpent1.cs | 432 + NPCs/SunkenSeaNPCs/SeaSerpent1.png | Bin 0 -> 730 bytes NPCs/SunkenSeaNPCs/SeaSerpent2.cs | 298 + NPCs/SunkenSeaNPCs/SeaSerpent2.png | Bin 0 -> 613 bytes NPCs/SunkenSeaNPCs/SeaSerpent3.cs | 298 + NPCs/SunkenSeaNPCs/SeaSerpent3.png | Bin 0 -> 466 bytes NPCs/SunkenSeaNPCs/SeaSerpent4.cs | 298 + NPCs/SunkenSeaNPCs/SeaSerpent4.png | Bin 0 -> 483 bytes NPCs/SunkenSeaNPCs/SeaSerpent5.cs | 298 + NPCs/SunkenSeaNPCs/SeaSerpent5.png | Bin 0 -> 760 bytes NPCs/SupremeCalamitas/SCalWormBody.cs | 1 + NPCs/SupremeCalamitas/SCalWormBodyWeak.cs | 32 +- NPCs/SupremeCalamitas/SCalWormHead.cs | 1 + NPCs/SupremeCalamitas/SCalWormHeart.cs | 3 +- NPCs/SupremeCalamitas/SCalWormTail.cs | 1 + NPCs/SupremeCalamitas/SoulSeekerSupreme.cs | 1 + NPCs/SupremeCalamitas/SupremeCalamitas.cs | 2712 +- NPCs/SupremeCalamitas/SupremeCataclysm.cs | 46 +- NPCs/SupremeCalamitas/SupremeCatastrophe.cs | 46 +- NPCs/TheDevourerofGods/DevourerofGodsBody.cs | 3 +- NPCs/TheDevourerofGods/DevourerofGodsBody2.cs | 3 +- NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs | 19 +- NPCs/TheDevourerofGods/DevourerofGodsHead.cs | 2 +- NPCs/TheDevourerofGods/DevourerofGodsHead2.cs | 5 +- NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs | 51 +- NPCs/TheDevourerofGods/DevourerofGodsTail.cs | 3 +- NPCs/TheDevourerofGods/DevourerofGodsTail2.cs | 5 +- NPCs/TheDevourerofGods/DevourerofGodsTailS.cs | 21 +- NPCs/TownNPCs/FAP.cs | 24 +- NPCs/TownNPCs/SEAHOE.cs | 309 + NPCs/TownNPCs/SEAHOE.png | Bin 0 -> 14235 bytes NPCs/TownNPCs/SEAHOE_Head.png | Bin 0 -> 403 bytes NPCs/Yharon/DetonatingFlare.cs | 1 + NPCs/Yharon/DetonatingFlare2.cs | 1 + NPCs/Yharon/Yharon.cs | 3039 +-- Projectiles/Amidias/AmidiasTridentProj.cs | 72 + Projectiles/Amidias/AmidiasTridentProj.png | Bin 0 -> 879 bytes Projectiles/Amidias/AmidiasWhirlpool.cs | 166 + Projectiles/Amidias/AmidiasWhirlpool.png | Bin 0 -> 1125 bytes Projectiles/Amidias/BigCoral.cs | 59 + Projectiles/Amidias/BigCoral.png | Bin 0 -> 489 bytes Projectiles/Amidias/HermitCrab.cs | 362 + Projectiles/Amidias/HermitCrab.png | Bin 0 -> 2400 bytes Projectiles/Amidias/SandDollarProj.cs | 45 + Projectiles/Amidias/SandDollarProj.png | Bin 0 -> 522 bytes Projectiles/Amidias/Shell.cs | 50 + Projectiles/Amidias/Shell.png | Bin 0 -> 395 bytes Projectiles/Amidias/SmallCoral.cs | 51 + Projectiles/Amidias/SmallCoral.png | Bin 0 -> 351 bytes Projectiles/Amidias/SnapClamProj.cs | 216 + Projectiles/Amidias/SnapClamProj.png | Bin 0 -> 361 bytes Projectiles/Amidias/UrchinBall.cs | 158 + Projectiles/Amidias/UrchinBall.png | Bin 0 -> 589 bytes Projectiles/Amidias/UrchinBallSpike.cs | 190 + Projectiles/Amidias/UrchinBallSpike.png | Bin 0 -> 174 bytes Projectiles/Amidias/WaywasherProj.cs | 77 + .../WaywasherProj.png} | Bin Projectiles/Astral/AstralCannonExplosion.cs | 66 +- Projectiles/Astral/AstralCannonProjectile.cs | 210 +- Projectiles/Astral/AstralScytheProjectile.cs | 130 +- Projectiles/Astral/AstralachneaFang.cs | 188 +- Projectiles/Astral/HeavenfallenEnergy.cs | 51 + .../HeavenfallenEnergy.png} | Bin Projectiles/Astral/HeavenfallenStardisk.cs | 174 + Projectiles/Astral/HeavenfallenStardisk.png | Bin 0 -> 979 bytes Projectiles/Astral/Hive.cs | 124 +- Projectiles/Astral/RadiantExplosion.cs | 82 + Projectiles/Astral/RadiantExplosion.png | Bin 0 -> 1371 bytes Projectiles/Astral/RadiantStar.cs | 77 + Projectiles/Astral/RadiantStar.png | Bin 0 -> 1300 bytes Projectiles/Astral/RadiantStar2.cs | 86 + Projectiles/Astral/RadiantStar2.png | Bin 0 -> 1300 bytes Projectiles/Astral/StellarKnife.cs | 101 + Projectiles/Astral/StellarKnife.png | Bin 0 -> 528 bytes Projectiles/AtlantisSpear.png | Bin 3335 -> 0 bytes Projectiles/AtlantisSpear2.png | Bin 3335 -> 0 bytes Projectiles/BallisticPoisonBomb.png | Bin 368 -> 0 bytes Projectiles/BallisticPoisonBombSpike.png | Bin 181 -> 0 bytes Projectiles/Boss/AbyssBallVolley2.cs | 2 +- Projectiles/Boss/AbyssMine2.cs | 2 +- Projectiles/Boss/AstralFlame.cs | 2 +- Projectiles/Boss/AstralLaser.cs | 2 +- Projectiles/Boss/AstralShot2.cs | 2 +- Projectiles/Boss/BigFlare.cs | 2 +- Projectiles/Boss/BrimDust.cs | 80 - Projectiles/Boss/BrimDust.png | Bin 177 -> 0 bytes Projectiles/Boss/BrimstoneBall.cs | 2 +- Projectiles/{ => Boss}/BrimstoneBall2.cs | 4 +- Projectiles/{ => Boss}/BrimstoneBall2.png | Bin Projectiles/Boss/BrimstoneBarrage.cs | 2 +- Projectiles/Boss/BrimstoneFire.cs | 2 +- Projectiles/Boss/BrimstoneFireblast.cs | 2 +- Projectiles/Boss/BrimstoneGigaBlast.cs | 2 +- Projectiles/Boss/BrimstoneHellblast.cs | 2 +- Projectiles/Boss/BrimstoneHellblast2.cs | 2 +- Projectiles/Boss/BrimstoneHellfireball.cs | 2 +- Projectiles/Boss/BrimstoneLaser.cs | 2 +- Projectiles/Boss/BrimstoneLaserSplit.cs | 2 +- Projectiles/Boss/BrimstoneMonster.cs | 2 +- Projectiles/{ => Boss}/BrimstoneShot.cs | 4 +- Projectiles/{ => Boss}/BrimstoneShot.png | Bin Projectiles/Boss/BrimstoneWave.cs | 2 +- Projectiles/Boss/DarkEnergyBall.cs | 3 +- Projectiles/Boss/DestroyerHomingLaser.cs | 152 +- Projectiles/Boss/DeusMine.cs | 2 +- Projectiles/Boss/DoGBeam.cs | 2 +- Projectiles/Boss/DoGBeamPortal.cs | 2 +- Projectiles/Boss/DoGDeath.cs | 2 +- Projectiles/Boss/DoGNebulaShot.cs | 2 +- Projectiles/Boss/EssenceDust.cs | 2 +- Projectiles/Boss/FlareBomb.cs | 2 +- Projectiles/Boss/FlareDust.cs | 2 +- Projectiles/Boss/FlareDust2.cs | 2 +- Projectiles/{ => Boss}/FlareExplosionHuge.cs | 7 +- Projectiles/{ => Boss}/FlareExplosionHuge.png | Bin Projectiles/Boss/FrostMist.cs | 137 +- Projectiles/Boss/GigaFlare.cs | 2 +- Projectiles/Boss/GreatSandBlast.cs | 146 +- Projectiles/{ => Boss}/HealOrbProv.cs | 2 +- Projectiles/{ => Boss}/HealOrbProv.png | Bin Projectiles/{ => Boss}/HellfireExplosion.cs | 4 +- Projectiles/{ => Boss}/HellfireExplosion.png | Bin .../{ => Boss}/HiveBombExplosionHostile.cs | 4 +- .../{ => Boss}/HiveBombExplosionHostile.png | Bin Projectiles/Boss/HiveBombGoliath.cs | 2 +- Projectiles/Boss/HolyBlast.cs | 2 +- Projectiles/Boss/HolyBomb.cs | 2 +- Projectiles/Boss/HolyBurnOrb.cs | 4 +- Projectiles/Boss/HolyFire.cs | 2 +- Projectiles/Boss/HolyFire2.cs | 2 +- Projectiles/Boss/HolyFlare.cs | 2 +- Projectiles/Boss/HolyLight.cs | 2 +- Projectiles/Boss/HolyShot.cs | 2 +- Projectiles/Boss/HolySpear.cs | 2 +- Projectiles/Boss/IceBlast.cs | 2 +- Projectiles/Boss/IceBomb.cs | 2 +- Projectiles/Boss/IceRain.cs | 2 +- Projectiles/Boss/LeviathanBomb.cs | 2 +- Projectiles/Boss/MoltenBlast.cs | 2 +- Projectiles/Boss/MoltenBlob.cs | 6 +- Projectiles/Boss/MushBomb.cs | 2 +- Projectiles/Boss/MushBombFall.cs | 2 +- Projectiles/Boss/Mushmash.cs | 2 +- Projectiles/Boss/PhantomBlast.cs | 2 +- Projectiles/Boss/PhantomBlast2.cs | 2 +- Projectiles/Boss/PhantomGhostShot.cs | 67 + Projectiles/Boss/PhantomGhostShot.png | Bin 0 -> 273 bytes Projectiles/Boss/PhantomHookShot.cs | 67 + Projectiles/Boss/PhantomHookShot.png | Bin 0 -> 273 bytes Projectiles/Boss/PhantomMine.cs | 2 +- Projectiles/Boss/PhantomShot.cs | 2 +- Projectiles/Boss/PhantomShot2.cs | 2 +- Projectiles/{ => Boss}/PhoenixFire.cs | 5 +- Projectiles/{ => Boss}/PhoenixFire.png | Bin Projectiles/{ => Boss}/PlagueExplosion.cs | 4 +- Projectiles/{ => Boss}/PlagueExplosion.png | Bin Projectiles/Boss/PlagueStingerGoliath.cs | 2 +- Projectiles/Boss/PlagueStingerGoliathV2.cs | 2 +- Projectiles/Boss/ProfanedSpear.cs | 2 +- Projectiles/Boss/ProvidenceCrystal.cs | 4 +- Projectiles/Boss/ProvidenceCrystalShard.cs | 2 +- Projectiles/Boss/RavagerFlame.cs | 2 +- Projectiles/Boss/RedLightningFeather.cs | 3 +- Projectiles/Boss/SandBlast.cs | 2 +- Projectiles/Boss/SandPoisonCloud.cs | 2 +- Projectiles/Boss/SandTooth.cs | 2 +- Projectiles/Boss/ScavengerLaser.cs | 2 +- Projectiles/Boss/ScavengerNuke.cs | 2 +- Projectiles/Boss/ShadeNimbusHostile.cs | 2 +- Projectiles/Boss/ShaderainHostile.cs | 14 +- Projectiles/Boss/SirenSong.cs | 18 +- Projectiles/Boss/SirenSong.png | Bin 3300 -> 3658 bytes Projectiles/{ => Boss}/SkyFlare.cs | 4 +- Projectiles/{ => Boss}/SkyFlare.png | Bin Projectiles/Boss/SkyFlareRevenge.cs | 2 +- Projectiles/Boss/VileClot.cs | 5 +- Projectiles/Boss/WaterSpear.cs | 17 +- Projectiles/Boss/WaterSpear.png | Bin 3172 -> 411 bytes Projectiles/Boss/YharonFireball.cs | 5 +- Projectiles/Boss/YharonFireball2.cs | 5 +- Projectiles/Boss/YharonFireballHoming.cs | 5 +- Projectiles/Boss/desktop.ini | 2 + Projectiles/BrimstoneLaserSummon.cs | 58 - Projectiles/CalamityGlobalProjectile.cs | 1559 +- Projectiles/Celestus.png | Bin 3472 -> 0 bytes Projectiles/ChaosSpirit.png | Bin 2568 -> 0 bytes Projectiles/ChaotrixProjectile.png | Bin 237 -> 0 bytes Projectiles/Crystalline.png | Bin 665 -> 0 bytes Projectiles/Crystalline2.png | Bin 665 -> 0 bytes Projectiles/{ => Enemy}/AstralShot.cs | 2 +- Projectiles/{ => Enemy}/AstralShot.png | Bin Projectiles/{ => Enemy}/CrimsonSpike.cs | 2 +- Projectiles/{ => Enemy}/CrimsonSpike.png | Bin Projectiles/{ => Enemy}/EarthRockBig.cs | 2 +- Projectiles/{ => Enemy}/EarthRockBig.png | Bin Projectiles/{ => Enemy}/EarthRockSmall.cs | 2 +- Projectiles/{ => Enemy}/EarthRockSmall.png | Bin Projectiles/{ => Enemy}/FlameBurstHostile.cs | 2 +- Projectiles/{ => Enemy}/FlameBurstHostile.png | Bin Projectiles/{ => Enemy}/HorsWaterBlast.cs | 2 +- Projectiles/{ => Enemy}/HorsWaterBlast.png | Bin Projectiles/{ => Enemy}/InkBomb.cs | 2 +- Projectiles/{ => Enemy}/InkBomb.png | Bin Projectiles/{ => Enemy}/InkPoisonCloud.cs | 2 +- Projectiles/{ => Enemy}/InkPoisonCloud.png | Bin Projectiles/{ => Enemy}/InkPoisonCloud2.cs | 2 +- Projectiles/{ => Enemy}/InkPoisonCloud2.png | Bin Projectiles/{ => Enemy}/InkPoisonCloud3.cs | 2 +- Projectiles/{ => Enemy}/InkPoisonCloud3.png | Bin Projectiles/{ => Enemy}/LavaChunk.cs | 2 +- Projectiles/{ => Enemy}/LavaChunk.png | Bin Projectiles/{ => Enemy}/MantisRing.cs | 3 +- Projectiles/{ => Enemy}/MantisRing.png | Bin Projectiles/{ => Enemy}/PufferExplosion.cs | 194 +- Projectiles/{ => Enemy}/PufferExplosion.png | Bin Projectiles/{ => Enemy}/StormMarkHostile.cs | 2 +- Projectiles/{ => Enemy}/StormMarkHostile.png | Bin .../{ => Enemy}/SulphuricAcidCannon.cs | 2 +- .../{ => Enemy}/SulphuricAcidCannon.png | Bin Projectiles/{ => Enemy}/SulphuricAcidMist.cs | 2 +- Projectiles/{ => Enemy}/SulphuricAcidMist.png | Bin Projectiles/{ => Enemy}/TornadoHostile.cs | 2 +- Projectiles/{ => Enemy}/TornadoHostile.png | Bin Projectiles/{ => Enemy}/ToxicMinnowCloud.cs | 2 +- Projectiles/{ => Enemy}/ToxicMinnowCloud.png | Bin Projectiles/EradicatorMeleeProjectile.png | Bin 722 -> 0 bytes Projectiles/EradicatorProjectile.png | Bin 722 -> 0 bytes Projectiles/ExsanguinationLanceProjectile.png | Bin 1401 -> 0 bytes Projectiles/FlameScytheProjectile.png | Bin 789 -> 0 bytes Projectiles/FlameScytheProjectileMelee.png | Bin 789 -> 0 bytes Projectiles/GleamingBolt.cs | 79 - Projectiles/GleamingBolt2.cs | 64 - Projectiles/{ => Healing}/AtaxiaHealOrb.cs | 2 +- Projectiles/{ => Healing}/AtaxiaHealOrb.png | Bin Projectiles/{ => Healing}/AuricOrb.cs | 2 +- Projectiles/{ => Healing}/AuricOrb.png | Bin Projectiles/{ => Healing}/BurntSienna.cs | 2 +- Projectiles/{ => Healing}/BurntSienna.png | Bin Projectiles/{ => Healing}/CactusHealOrb.cs | 2 +- Projectiles/{ => Healing}/CactusHealOrb.png | Bin Projectiles/{ => Healing}/EarthHealOrb.cs | 2 +- Projectiles/{ => Healing}/EarthHealOrb.png | Bin Projectiles/{ => Healing}/EssenceFlame.cs | 2 +- Projectiles/{ => Healing}/EssenceFlame.png | Bin Projectiles/{ => Healing}/Exoheal.cs | 2 +- Projectiles/{ => Healing}/Exoheal.png | Bin Projectiles/{ => Healing}/FungalHeal.cs | 2 +- Projectiles/{ => Healing}/FungalHeal.png | Bin Projectiles/{ => Healing}/GodSlayerHealOrb.cs | 2 +- .../{ => Healing}/GodSlayerHealOrb.png | Bin Projectiles/{ => Healing}/PhoenixHeal.cs | 2 +- Projectiles/{ => Healing}/PhoenixHeal.png | Bin Projectiles/{ => Healing}/RainHeal.cs | 2 +- Projectiles/{ => Healing}/RainHeal.png | Bin Projectiles/{ => Healing}/RoyalHeal.cs | 2 +- Projectiles/{ => Healing}/RoyalHeal.png | Bin Projectiles/{ => Healing}/SilvaOrb.cs | 2 +- Projectiles/{ => Healing}/SilvaOrb.png | Bin Projectiles/{ => Healing}/Terracotta.cs | 2 +- Projectiles/{ => Healing}/Terracotta.png | Bin Projectiles/{ => Healing}/TransfusionTrail.cs | 2 +- .../{ => Healing}/TransfusionTrail.png | Bin Projectiles/{ => Healing}/XerocHealOrb.cs | 2 +- Projectiles/{ => Healing}/XerocHealOrb.png | Bin Projectiles/IceBeam.cs | 83 - Projectiles/IceBeam.png | Bin 135 -> 0 bytes Projectiles/LaceratorProjectile.png | Bin 281 -> 0 bytes Projectiles/LaserFountain.cs | 61 - Projectiles/{ => Magic}/AbyssBall.cs | 2 +- Projectiles/{ => Magic}/AbyssBall.png | Bin Projectiles/{ => Magic}/AetherBeam.cs | 2 +- Projectiles/{ => Magic}/AetherBeam.png | Bin Projectiles/{ => Magic}/Ancient.cs | 2 +- Projectiles/{ => Magic}/Ancient.png | Bin Projectiles/{ => Magic}/Ancient2.cs | 2 +- Projectiles/{ => Magic}/Ancient2.png | Bin Projectiles/{ => Magic}/ApothChloro.cs | 2 +- Projectiles/{ => Magic}/ApothChloro.png | Bin Projectiles/{ => Magic}/ApothJaws.cs | 2 +- Projectiles/{ => Magic}/ApothJaws.png | Bin Projectiles/{ => Magic}/ApothMark.cs | 2 +- Projectiles/{ => Magic}/ApothMark.png | Bin Projectiles/{ => Magic}/Asteroid.cs | 2 +- Projectiles/{ => Magic}/Asteroid.png | Bin Projectiles/{ => Magic}/AsteroidMolten.cs | 2 +- Projectiles/{ => Magic}/AsteroidMolten.png | Bin Projectiles/{ => Magic}/AstralCrystal.cs | 2 +- Projectiles/{ => Magic}/AstralCrystal.png | Bin .../AstralCrystalInvisibleExplosion.cs | 2 +- .../AstralCrystalInvisibleExplosion.png | Bin Projectiles/{ => Magic}/AstralStarMagic.cs | 2 +- Projectiles/{ => Magic}/AstralStarMagic.png | Bin Projectiles/{ => Magic}/AtlantisSpear.cs | 11 +- Projectiles/Magic/AtlantisSpear.png | Bin 0 -> 2421 bytes Projectiles/{ => Magic}/AtlantisSpear2.cs | 9 +- Projectiles/Magic/AtlantisSpear2.png | Bin 0 -> 2421 bytes Projectiles/{ => Magic}/AuraRain.cs | 25 +- Projectiles/{ => Magic}/AuraRain.png | Bin Projectiles/{ => Magic}/BeamingBolt.cs | 2 +- Projectiles/{ => Magic}/BeamingBolt.png | Bin Projectiles/{ => Magic}/BeamingBolt2.cs | 2 +- Projectiles/{ => Magic}/BeamingBolt2.png | Bin Projectiles/{ => Magic}/BigBeamofDeath.cs | 2 +- Projectiles/{ => Magic}/BigBeamofDeath.png | Bin Projectiles/{ => Magic}/BigBeamofDeath2.cs | 2 +- Projectiles/{ => Magic}/BigBeamofDeath2.png | Bin Projectiles/{ => Magic}/BlackAnurian.cs | 2 +- Projectiles/{ => Magic}/BlackAnurian.png | Bin .../{ => Magic}/BlackAnurianPlankton.cs | 2 +- .../{ => Magic}/BlackAnurianPlankton.png | Bin Projectiles/{ => Magic}/BloodBeam.cs | 2 +- Projectiles/{ => Magic}/BloodBeam.png | Bin Projectiles/{ => Magic}/BloodBlast.cs | 2 +- Projectiles/{ => Magic}/BloodBlast.png | Bin Projectiles/{ => Magic}/BloodBolt.cs | 2 +- Projectiles/{ => Magic}/BloodBolt.png | Bin Projectiles/{ => Magic}/BloodOrb.cs | 2 +- Projectiles/{ => Magic}/BloodOrb.png | Bin Projectiles/{ => Magic}/BloodRay.cs | 2 +- Projectiles/{ => Magic}/BloodRay.png | Bin Projectiles/{ => Magic}/BlueBubble.cs | 3 +- Projectiles/{ => Magic}/BlueBubble.png | Bin Projectiles/{ => Magic}/BlushieStaffProj.cs | 6 +- Projectiles/{ => Magic}/BlushieStaffProj.png | Bin Projectiles/{ => Magic}/BrimstoneBeam.cs | 2 +- Projectiles/{ => Magic}/BrimstoneBeam.png | Bin Projectiles/{ => Magic}/BrimstoneBeam2.cs | 2 +- Projectiles/{ => Magic}/BrimstoneBeam2.png | Bin Projectiles/{ => Magic}/BrimstoneBeam3.cs | 2 +- Projectiles/{ => Magic}/BrimstoneBeam3.png | Bin Projectiles/{ => Magic}/BrimstoneBeam4.cs | 2 +- Projectiles/{ => Magic}/BrimstoneBeam4.png | Bin Projectiles/{ => Magic}/BrimstoneBeam5.cs | 2 +- Projectiles/{ => Magic}/BrimstoneBeam5.png | Bin Projectiles/{ => Magic}/BrimstoneFireball.cs | 2 +- Projectiles/{ => Magic}/BrimstoneFireball.png | Bin .../BrimstoneHellfireballFriendly.cs | 2 +- .../BrimstoneHellfireballFriendly.png | Bin .../BrimstoneHellfireballFriendly2.cs | 2 +- .../BrimstoneHellfireballFriendly2.png | Bin Projectiles/{ => Magic}/BrimstoneHomer.cs | 3 +- Projectiles/{ => Magic}/BrimstoneHomer.png | Bin Projectiles/{ => Magic}/BrimstoneTentacle.cs | 2 +- Projectiles/{ => Magic}/BrimstoneTentacle.png | Bin Projectiles/{ => Magic}/Climax.cs | 2 +- Projectiles/{ => Magic}/Climax.png | Bin Projectiles/{ => Magic}/ClimaxBeam.cs | 2 +- Projectiles/{ => Magic}/ClimaxBeam.png | Bin Projectiles/{ => Magic}/CoralSpike.cs | 2 +- Projectiles/{ => Magic}/CoralSpike.png | Bin Projectiles/{ => Magic}/CosmicTentacle.cs | 2 +- Projectiles/{ => Magic}/CosmicTentacle.png | Bin Projectiles/{ => Magic}/DemonicPitchfork.cs | 2 +- Projectiles/{ => Magic}/DemonicPitchfork.png | Bin Projectiles/{ => Magic}/DustProjectile.cs | 2 +- Projectiles/{ => Magic}/DustProjectile.png | Bin Projectiles/{ => Magic}/EidolicWail.cs | 2 +- Projectiles/{ => Magic}/EidolicWail.png | Bin Projectiles/{ => Magic}/EldritchTentacle.cs | 2 +- Projectiles/{ => Magic}/EldritchTentacle.png | Bin Projectiles/{ => Magic}/ElementBolt.cs | 2 +- Projectiles/{ => Magic}/ElementBolt.png | Bin Projectiles/{ => Magic}/ElementBolt2.cs | 2 +- Projectiles/{ => Magic}/ElementBolt2.png | Bin Projectiles/{ => Magic}/ElementOrb.cs | 2 +- Projectiles/{ => Magic}/ElementOrb.png | Bin Projectiles/{ => Magic}/ElementOrb2.cs | 2 +- Projectiles/{ => Magic}/ElementOrb2.png | Bin Projectiles/{ => Magic}/ElementRay.cs | 2 +- Projectiles/{ => Magic}/ElementRay.png | Bin Projectiles/{ => Magic}/ElementTentacle.cs | 2 +- Projectiles/{ => Magic}/ElementTentacle.png | Bin .../{ => Magic}/EvergladeSprayProjectile.cs | 2 +- .../{ => Magic}/EvergladeSprayProjectile.png | Bin Projectiles/{ => Magic}/FabBolt.cs | 2 +- Projectiles/{ => Magic}/FabBolt.png | Bin Projectiles/{ => Magic}/FabOrb.cs | 2 +- Projectiles/{ => Magic}/FabOrb.png | Bin Projectiles/{ => Magic}/FabRay.cs | 2 +- Projectiles/{ => Magic}/FabRay.png | Bin Projectiles/{ => Magic}/FatesReveal.cs | 92 +- Projectiles/{ => Magic}/FatesReveal.png | Bin Projectiles/{ => Magic}/FlameBeamTip.cs | 2 +- Projectiles/{ => Magic}/FlameBeamTip.png | Bin Projectiles/{ => Magic}/FlameBeamTip2.cs | 2 +- Projectiles/{ => Magic}/FlameBeamTip2.png | Bin Projectiles/{ => Magic}/FlamePillar.cs | 2 +- Projectiles/{ => Magic}/FlamePillar.png | Bin Projectiles/{ => Magic}/FlamingPumpkin.cs | 2 +- Projectiles/{ => Magic}/FlamingPumpkin.png | Bin .../{ => Magic}/FlareBoltProjectile.cs | 2 +- .../{ => Magic}/FlareBoltProjectile.png | Bin Projectiles/{ => Magic}/ForbiddenAxeBlade.cs | 2 +- Projectiles/{ => Magic}/ForbiddenAxeBlade.png | Bin .../{ => Magic}/ForbiddenSunProjectile.cs | 2 +- .../{ => Magic}/ForbiddenSunProjectile.png | Bin Projectiles/{ => Magic}/ForbiddenSunburst.cs | 2 +- Projectiles/{ => Magic}/ForbiddenSunburst.png | Bin .../{ => Magic}/FrigidflashBoltProjectile.cs | 2 +- .../{ => Magic}/FrigidflashBoltProjectile.png | Bin .../{ => Magic}/FrostBoltProjectile.cs | 2 +- Projectiles/Magic/FrostBoltProjectile.png | Bin 0 -> 133 bytes Projectiles/{ => Magic}/GammaLaser.cs | 2 +- Projectiles/{ => Magic}/GammaLaser.png | Bin Projectiles/{ => Magic}/GhastlyBlast.cs | 2 +- Projectiles/{ => Magic}/GhastlyBlast.png | Bin Projectiles/{ => Magic}/GhastlyExplosion.cs | 2 +- Projectiles/{ => Magic}/GhastlyExplosion.png | Bin .../{ => Magic}/GhastlyExplosionShard.cs | 2 +- .../{ => Magic}/GhastlyExplosionShard.png | Bin Projectiles/{ => Magic}/GhastlySubBlast.cs | 2 +- Projectiles/{ => Magic}/GhastlySubBlast.png | Bin Projectiles/{ => Magic}/GhastlyVisage.cs | 2 +- Projectiles/{ => Magic}/GhastlyVisage.png | Bin Projectiles/Magic/GleamingBolt.cs | 79 + Projectiles/{ => Magic}/GleamingBolt.png | Bin Projectiles/Magic/GleamingBolt2.cs | 64 + Projectiles/{ => Magic}/GleamingBolt2.png | Bin Projectiles/{ => Magic}/GraniteEnergy.cs | 2 +- Projectiles/{ => Magic}/GraniteEnergy.png | Bin Projectiles/{ => Magic}/GranitePulse.cs | 2 +- Projectiles/{ => Magic}/GranitePulse.png | Bin .../{ => Magic}/HellfireExplosionFriendly.cs | 2 +- .../{ => Magic}/HellfireExplosionFriendly.png | Bin .../{ => Magic}/HellfireExplosionFriendly2.cs | 2 +- .../HellfireExplosionFriendly2.png | Bin Projectiles/{ => Magic}/HolyFlame.cs | 2 +- Projectiles/{ => Magic}/HolyFlame.png | Bin Projectiles/{ => Magic}/HolyLaser.cs | 2 +- Projectiles/{ => Magic}/HolyLaser.png | Bin Projectiles/{ => Magic}/IceCluster.cs | 2 +- Projectiles/{ => Magic}/IceCluster.png | Bin Projectiles/{ => Magic}/IceSpike.cs | 2 +- Projectiles/{ => Magic}/IceSpike.png | Bin Projectiles/{ => Magic}/InfernadoFriendly.cs | 2 +- Projectiles/{ => Magic}/InfernadoFriendly.png | Bin .../{ => Magic}/InfernadoMarkFriendly.cs | 3 +- .../{ => Magic}/InfernadoMarkFriendly.png | Bin Projectiles/{ => Magic}/InfernalBlade.cs | 2 +- Projectiles/{ => Magic}/InfernalBlade.png | Bin Projectiles/{ => Magic}/InfernalBlade2.cs | 2 +- Projectiles/{ => Magic}/InfernalBlade2.png | Bin Projectiles/{ => Magic}/IonBlast.cs | 2 +- Projectiles/{ => Magic}/IonBlast.png | Bin Projectiles/{ => Magic}/IonExplosion.cs | 3 +- Projectiles/{ => Magic}/IonExplosion.png | Bin Projectiles/{ => Magic}/LiquidBlade.cs | 2 +- Projectiles/{ => Magic}/LiquidBlade.png | Bin Projectiles/{ => Magic}/LiquidBlade2.cs | 2 +- Projectiles/{ => Magic}/LiquidBlade2.png | Bin Projectiles/{ => Magic}/MagicNebulaShot.cs | 17 +- Projectiles/{ => Magic}/MagicNebulaShot.png | Bin Projectiles/{ => Magic}/MagnaBlast.cs | 2 +- Projectiles/{ => Magic}/MagnaBlast.png | Bin Projectiles/{ => Magic}/MagneticBeam.cs | 2 +- Projectiles/{ => Magic}/MagneticBeam.png | Bin Projectiles/{ => Magic}/MagneticOrb.cs | 2 +- Projectiles/{ => Magic}/MagneticOrb.png | Bin Projectiles/{ => Magic}/ManaBolt.cs | 2 +- Projectiles/{ => Magic}/ManaBolt.png | Bin Projectiles/{ => Magic}/ManaBoltSmall.cs | 2 +- Projectiles/{ => Magic}/ManaBoltSmall.png | Bin Projectiles/{ => Magic}/ManaBoltSmall2.cs | 2 +- Projectiles/{ => Magic}/ManaBoltSmall2.png | Bin Projectiles/{ => Magic}/NightBolt.cs | 2 +- Projectiles/{ => Magic}/NightBolt.png | Bin Projectiles/{ => Magic}/NightOrb.cs | 2 +- Projectiles/{ => Magic}/NightOrb.png | Bin Projectiles/{ => Magic}/NightRay.cs | 2 +- Projectiles/{ => Magic}/NightRay.png | Bin .../{ => Magic}/NuclearFuryProjectile.cs | 2 +- .../{ => Magic}/NuclearFuryProjectile.png | Bin Projectiles/{ => Magic}/ParticleBeamofDoom.cs | 2 +- .../{ => Magic}/ParticleBeamofDoom.png | Bin Projectiles/{ => Magic}/PhantasmalFury.cs | 2 +- Projectiles/{ => Magic}/PhantasmalFury.png | Bin Projectiles/{ => Magic}/Phantom.cs | 2 +- Projectiles/{ => Magic}/Phantom.png | Bin Projectiles/{ => Magic}/PlagueFang.cs | 2 +- Projectiles/{ => Magic}/PlagueFang.png | Bin Projectiles/{ => Magic}/PlasmaBolt.cs | 2 +- Projectiles/{ => Magic}/PlasmaBolt.png | Bin Projectiles/{ => Magic}/PlasmaRay.cs | 2 +- Projectiles/{ => Magic}/PlasmaRay.png | Bin Projectiles/{ => Magic}/PlasmaRay2.cs | 2 +- Projectiles/{ => Magic}/PlasmaRay2.png | Bin Projectiles/{ => Magic}/PlasmaShot.cs | 2 +- Projectiles/{ => Magic}/PlasmaShot.png | Bin Projectiles/{ => Magic}/Purge.cs | 2 +- Projectiles/{ => Magic}/Purge.png | Bin Projectiles/{ => Magic}/PurgeLaser.cs | 2 +- Projectiles/{ => Magic}/PurgeLaser.png | Bin Projectiles/{ => Magic}/RougeSlashLarge.cs | 2 +- Projectiles/{ => Magic}/RougeSlashLarge.png | Bin Projectiles/{ => Magic}/RougeSlashMedium.cs | 2 +- Projectiles/{ => Magic}/RougeSlashMedium.png | Bin Projectiles/{ => Magic}/RougeSlashSmall.cs | 2 +- Projectiles/{ => Magic}/RougeSlashSmall.png | Bin Projectiles/{ => Magic}/SHPB.cs | 2 +- Projectiles/{ => Magic}/SHPB.png | Bin Projectiles/{ => Magic}/SHPExplosion.cs | 2 +- Projectiles/{ => Magic}/SHPExplosion.png | Bin Projectiles/{ => Magic}/SHPL.cs | 2 +- Projectiles/{ => Magic}/SHPL.png | Bin Projectiles/{ => Magic}/SanguineFlare.cs | 4 +- Projectiles/{ => Magic}/SanguineFlare.png | Bin .../SeethingDischargeBrimstoneBarrage.cs | 2 +- .../SeethingDischargeBrimstoneBarrage.png | Bin .../SeethingDischargeBrimstoneHellblast.cs | 2 +- .../SeethingDischargeBrimstoneHellblast.png | Bin Projectiles/{ => Magic}/ShadeNimbus.cs | 2 +- Projectiles/{ => Magic}/ShadeNimbus.png | Bin Projectiles/{ => Magic}/ShadeNimbusCloud.cs | 2 +- Projectiles/{ => Magic}/ShadeNimbusCloud.png | Bin .../{ => Magic}/ShadecrystalProjectile.cs | 2 +- .../{ => Magic}/ShadecrystalProjectile.png | Bin Projectiles/{ => Magic}/Shaderain.cs | 2 +- Projectiles/{ => Magic}/Shaderain.png | Bin Projectiles/{ => Magic}/Shadowbolt.cs | 2 +- Projectiles/{ => Magic}/Shadowbolt.png | Bin Projectiles/{ => Magic}/ShiftingSands.cs | 2 +- Projectiles/{ => Magic}/ShiftingSands.png | Bin Projectiles/{ => Magic}/SirensSong.cs | 18 +- Projectiles/{ => Magic}/SirensSong.png | Bin 3300 -> 3644 bytes Projectiles/{ => Magic}/Snowflake.cs | 2 +- Projectiles/{ => Magic}/Snowflake.png | Bin Projectiles/{ => Magic}/SolarBeam2.cs | 3 +- Projectiles/{ => Magic}/SolarBeam2.png | Bin Projectiles/{ => Magic}/SoulPiercer.cs | 2 +- Projectiles/{ => Magic}/SoulPiercer.png | Bin Projectiles/{ => Magic}/SoulPiercerBolt.cs | 2 +- Projectiles/{ => Magic}/SoulPiercerBolt.png | Bin Projectiles/{ => Magic}/SoulPiercerOrb.cs | 2 +- Projectiles/{ => Magic}/SoulPiercerOrb.png | Bin Projectiles/{ => Magic}/SpiritFlameCurse.cs | 2 +- Projectiles/{ => Magic}/SpiritFlameCurse.png | Bin Projectiles/{ => Magic}/Starblast.cs | 2 +- Projectiles/{ => Magic}/Starblast.png | Bin Projectiles/{ => Magic}/StarfleetMK2.cs | 2 +- Projectiles/{ => Magic}/StarfleetMK2.png | Bin Projectiles/{ => Magic}/StickyFeather.cs | 2 +- Projectiles/{ => Magic}/StickyFeather.png | Bin .../{ => Magic}/SupremeDustFlakProjectile.cs | 2 +- .../{ => Magic}/SupremeDustFlakProjectile.png | Bin .../{ => Magic}/SupremeDustProjectile.cs | 2 +- .../{ => Magic}/SupremeDustProjectile.png | Bin Projectiles/{ => Magic}/T1000.cs | 2 +- Projectiles/{ => Magic}/T1000.png | Bin Projectiles/{ => Magic}/T1000Laser.cs | 2 +- Projectiles/{ => Magic}/T1000Laser.png | Bin .../{ => Magic}/TearsofHeavenProjectile.cs | 2 +- .../{ => Magic}/TearsofHeavenProjectile.png | Bin Projectiles/{ => Magic}/TerraBolt.cs | 2 +- Projectiles/{ => Magic}/TerraBolt.png | Bin Projectiles/{ => Magic}/TerraBolt2.cs | 2 +- Projectiles/{ => Magic}/TerraBolt2.png | Bin Projectiles/{ => Magic}/TerraOrb.cs | 2 +- Projectiles/{ => Magic}/TerraOrb.png | Bin Projectiles/{ => Magic}/TerraOrb2.cs | 2 +- Projectiles/{ => Magic}/TerraOrb2.png | Bin Projectiles/{ => Magic}/TerraRay.cs | 2 +- Projectiles/{ => Magic}/TerraRay.png | Bin .../{ => Magic}/TradewindsProjectile.cs | 2 +- .../{ => Magic}/TradewindsProjectile.png | Bin Projectiles/{ => Magic}/UberBubble.cs | 2 +- Projectiles/{ => Magic}/UberBubble.png | Bin Projectiles/{ => Magic}/UndinesRetribution.cs | 2 +- .../{ => Magic}/UndinesRetribution.png | Bin Projectiles/{ => Magic}/Vehemence.cs | 17 +- Projectiles/Magic/Vehemence.png | Bin 0 -> 1138 bytes Projectiles/{ => Magic}/VenusianBolt.cs | 2 +- Projectiles/{ => Magic}/VenusianBolt.png | Bin Projectiles/{ => Magic}/VenusianExplosion.cs | 2 +- Projectiles/{ => Magic}/VenusianExplosion.png | Bin Projectiles/{ => Magic}/VenusianFlame.cs | 2 +- Projectiles/{ => Magic}/VenusianFlame.png | Bin Projectiles/{ => Magic}/Viscera.cs | 8 +- Projectiles/{ => Magic}/Viscera.png | Bin Projectiles/{ => Magic}/VividBolt.cs | 2 +- Projectiles/{ => Magic}/VividBolt.png | Bin Projectiles/{ => Magic}/VividClarity.cs | 2 +- Projectiles/{ => Magic}/VividClarity.png | Bin Projectiles/{ => Magic}/VividOrb.cs | 2 +- Projectiles/{ => Magic}/VividOrb.png | Bin Projectiles/{ => Magic}/Vortex.cs | 6 +- Projectiles/{ => Magic}/Vortex.png | Bin Projectiles/{ => Magic}/WaterStream.cs | 2 +- Projectiles/{ => Magic}/WaterStream.png | Bin Projectiles/{ => Magic}/WaterStream2.cs | 2 +- Projectiles/{ => Magic}/WaterStream2.png | Bin Projectiles/{ => Magic}/WhiteFlame.cs | 3 +- Projectiles/{ => Magic}/WhiteFlame.png | Bin Projectiles/{ => Magic}/WhiteFlame2.cs | 9 +- Projectiles/{ => Magic}/WhiteFlame2.png | Bin Projectiles/{ => Magic}/WintersFury.cs | 2 +- Projectiles/{ => Magic}/WintersFury.png | Bin Projectiles/{ => Magic}/WulfrumBolt.cs | 2 +- Projectiles/{ => Magic}/WulfrumBolt.png | Bin Projectiles/{ => Magic}/YharimsCrystal.cs | 6 +- Projectiles/Magic/YharimsCrystal.png | Bin 0 -> 4020 bytes Projectiles/{ => Magic}/YharimsCrystalBeam.cs | 2 +- .../{ => Magic}/YharimsCrystalBeam.png | Bin Projectiles/MagicIceBeam.cs | 82 - Projectiles/MagicIceBeam.png | Bin 135 -> 0 bytes Projectiles/MechwormBody.png | Bin 450 -> 0 bytes Projectiles/MechwormBody2.png | Bin 450 -> 0 bytes Projectiles/MechwormHead.png | Bin 795 -> 0 bytes Projectiles/MechwormTail.png | Bin 614 -> 0 bytes .../{ => Melee}/AccretionDisk2Melee.cs | 2 +- .../{ => Melee}/AccretionDisk2Melee.png | Bin Projectiles/{ => Melee}/AccretionDiskMelee.cs | 2 +- .../{ => Melee}/AccretionDiskMelee.png | Bin Projectiles/{ => Melee}/AegisBeam.cs | 2 +- Projectiles/{ => Melee}/AegisBeam.png | Bin Projectiles/{ => Melee}/AegisBlast.cs | 2 +- Projectiles/{ => Melee}/AegisBlast.png | Bin Projectiles/{ => Melee}/AegisBlast2.cs | 2 +- Projectiles/{ => Melee}/AegisBlast2.png | Bin Projectiles/{ => Melee}/AegisFlame.cs | 2 +- Projectiles/{ => Melee}/AegisFlame.png | Bin Projectiles/{ => Melee}/Aftershock.cs | 56 +- Projectiles/{ => Melee}/Aftershock.png | Bin .../{ => Melee}/BalefulHarvesterProjectile.cs | 2 +- .../BalefulHarvesterProjectile.png | Bin Projectiles/{ => Melee}/BallOFugu.cs | 3 +- Projectiles/{ => Melee}/BallOFugu.png | Bin Projectiles/{ => Melee}/BansheeHookBoom.cs | 2 +- Projectiles/{ => Melee}/BansheeHookBoom.png | Bin Projectiles/{ => Melee}/BansheeHookScythe.cs | 2 +- Projectiles/{ => Melee}/BansheeHookScythe.png | Bin Projectiles/{ => Melee}/BiomeOrb.cs | 2 +- Projectiles/{ => Melee}/BiomeOrb.png | Bin .../{ => Melee}/BlazingPhantomBlade.cs | 2 +- .../{ => Melee}/BlazingPhantomBlade.png | Bin Projectiles/{ => Melee}/Blood.cs | 3 +- Projectiles/{ => Melee}/Blood.png | Bin Projectiles/{ => Melee}/BloodBall.cs | 2 +- Projectiles/{ => Melee}/BloodBall.png | Bin Projectiles/{ => Melee}/BloodScythe.cs | 18 +- Projectiles/{ => Melee}/BloodScythe.png | Bin Projectiles/{ => Melee}/BloodyBlade.cs | 2 +- Projectiles/{ => Melee}/BloodyBlade.png | Bin Projectiles/{ => Melee}/BlueAura.cs | 2 +- Projectiles/{ => Melee}/BlueAura.png | Bin Projectiles/{ => Melee}/Brimblast.cs | 3 +- Projectiles/{ => Melee}/Brimblast.png | Bin .../{ => Melee}/BrimlanceHellfireExplosion.cs | 2 +- .../BrimlanceHellfireExplosion.png | Bin .../{ => Melee}/BrimlanceStandingFire.cs | 2 +- .../{ => Melee}/BrimlanceStandingFire.png | Bin Projectiles/{ => Melee}/Brimlash.cs | 2 +- Projectiles/{ => Melee}/Brimlash.png | Bin Projectiles/{ => Melee}/Brimlash2.cs | 2 +- Projectiles/{ => Melee}/Brimlash2.png | Bin Projectiles/{ => Melee}/BrimstoneBoom.cs | 2 +- Projectiles/{ => Melee}/BrimstoneBoom.png | Bin .../{ => Melee}/BrimstoneLaserFriendly.cs | 14 +- .../{ => Melee}/BrimstoneLaserFriendly.png | Bin Projectiles/{ => Melee}/BrinySpout.cs | 2 +- Projectiles/{ => Melee}/BrinySpout.png | Bin Projectiles/{ => Melee}/BrinyTyphoonBubble.cs | 2 +- .../{ => Melee}/BrinyTyphoonBubble.png | Bin Projectiles/{ => Melee}/BurningMeteor.cs | 2 +- Projectiles/{ => Melee}/BurningMeteor.png | Bin Projectiles/{ => Melee}/CalamityAura.cs | 2 +- Projectiles/{ => Melee}/CalamityAura.png | Bin Projectiles/{ => Melee}/CalamityAuraType2.cs | 2 +- Projectiles/{ => Melee}/CalamityAuraType2.png | Bin Projectiles/{ => Melee}/CalamityAuraType3.cs | 2 +- Projectiles/{ => Melee}/CalamityAuraType3.png | Bin Projectiles/{ => Melee}/ChaosFlameLarge.cs | 2 +- Projectiles/{ => Melee}/ChaosFlameLarge.png | Bin Projectiles/{ => Melee}/ChaosFlameMedium.cs | 2 +- Projectiles/{ => Melee}/ChaosFlameMedium.png | Bin Projectiles/{ => Melee}/ChaosFlameSmall.cs | 2 +- Projectiles/{ => Melee}/ChaosFlameSmall.png | Bin Projectiles/{ => Melee}/CosmicBolt.cs | 2 +- Projectiles/{ => Melee}/CosmicBolt.png | Bin Projectiles/{ => Melee}/CosmicDischarge.cs | 2 +- Projectiles/{ => Melee}/CosmicDischarge.png | Bin Projectiles/{ => Melee}/CosmicIceBurst.cs | 2 +- Projectiles/{ => Melee}/CosmicIceBurst.png | Bin Projectiles/{ => Melee}/CosmicOrb.cs | 2 +- Projectiles/{ => Melee}/CosmicOrb.png | Bin Projectiles/{ => Melee}/CosmicSpiritBomb1.cs | 2 +- Projectiles/{ => Melee}/CosmicSpiritBomb1.png | Bin Projectiles/{ => Melee}/CosmicSpiritBomb2.cs | 2 +- Projectiles/{ => Melee}/CosmicSpiritBomb2.png | Bin Projectiles/{ => Melee}/CosmicSpiritBomb3.cs | 2 +- Projectiles/{ => Melee}/CosmicSpiritBomb3.png | Bin Projectiles/{ => Melee}/CrystalDust.cs | 2 +- Projectiles/{ => Melee}/CrystalDust.png | Bin Projectiles/{ => Melee}/DNA.cs | 2 +- Projectiles/{ => Melee}/DNA.png | Bin Projectiles/{ => Melee}/DNA2.cs | 2 +- Projectiles/{ => Melee}/DNA2.png | Bin Projectiles/{ => Melee}/Dark.cs | 2 +- Projectiles/{ => Melee}/Dark.png | Bin Projectiles/{ => Melee}/DarkBall.cs | 2 +- Projectiles/{ => Melee}/DarkBall.png | Bin Projectiles/{ => Melee}/DemonBlast.cs | 2 +- Projectiles/{ => Melee}/DemonBlast.png | Bin Projectiles/{ => Melee}/DemonBlastType2.cs | 2 +- Projectiles/{ => Melee}/DemonBlastType2.png | Bin Projectiles/{ => Melee}/DemonBlastType3.cs | 2 +- Projectiles/{ => Melee}/DemonBlastType3.png | Bin Projectiles/{ => Melee}/DepthOrb.cs | 2 +- Projectiles/{ => Melee}/DepthOrb.png | Bin Projectiles/{ => Melee}/DepthOrb2.cs | 2 +- Projectiles/{ => Melee}/DepthOrb2.png | Bin Projectiles/{ => Melee}/DracoBeam.cs | 2 +- Projectiles/{ => Melee}/DracoBeam.png | Bin Projectiles/{ => Melee}/DracoBeam2.cs | 2 +- Projectiles/{ => Melee}/DracoBeam2.png | Bin Projectiles/{ => Melee}/DragonRage.cs | 2 +- Projectiles/{ => Melee}/DragonRage.png | Bin Projectiles/{ => Melee}/Earth.cs | 2 +- Projectiles/{ => Melee}/Earth.png | Bin Projectiles/{ => Melee}/Earth2.cs | 2 +- Projectiles/{ => Melee}/Earth2.png | Bin Projectiles/{ => Melee}/Earth3.cs | 2 +- Projectiles/{ => Melee}/Earth3.png | Bin Projectiles/{ => Melee}/Earth4.cs | 4 +- Projectiles/{ => Melee}/Earth4.png | Bin Projectiles/{ => Melee}/ElementBall.cs | 2 +- Projectiles/{ => Melee}/ElementBall.png | Bin Projectiles/{ => Melee}/ElementBallShiv.cs | 2 +- Projectiles/{ => Melee}/ElementBallShiv.png | Bin Projectiles/{ => Melee}/EonBeam.cs | 2 +- Projectiles/{ => Melee}/EonBeam.png | Bin Projectiles/{ => Melee}/EonBeamV2.cs | 2 +- Projectiles/{ => Melee}/EonBeamV2.png | Bin Projectiles/{ => Melee}/EonBeamV3.cs | 2 +- Projectiles/{ => Melee}/EonBeamV3.png | Bin Projectiles/{ => Melee}/EonBeamV4.cs | 2 +- Projectiles/{ => Melee}/EonBeamV4.png | Bin .../{ => Melee}/EradicatorMeleeProjectile.cs | 15 +- .../Melee/EradicatorMeleeProjectile.png | Bin 0 -> 1791 bytes .../Melee/EradicatorMeleeProjectileGlow.png | Bin 0 -> 1381 bytes Projectiles/{ => Melee}/EssenceBeam.cs | 2 +- Projectiles/{ => Melee}/EssenceBeam.png | Bin Projectiles/{ => Melee}/EssenceBurst.cs | 2 +- Projectiles/{ => Melee}/EssenceBurst.png | Bin Projectiles/{ => Melee}/EssenceFlame2.cs | 3 +- Projectiles/{ => Melee}/EssenceFlame2.png | Bin Projectiles/{ => Melee}/EssenceScythe.cs | 2 +- Projectiles/{ => Melee}/EssenceScythe.png | Bin Projectiles/Melee/Excelsus.cs | 103 + Projectiles/Melee/Excelsus.png | Bin 0 -> 1988 bytes Projectiles/Melee/ExcelsusBlue.cs | 103 + Projectiles/Melee/ExcelsusBlue.png | Bin 0 -> 1831 bytes Projectiles/Melee/ExcelsusBlueGlow.png | Bin 0 -> 2407 bytes Projectiles/Melee/ExcelsusGlow.png | Bin 0 -> 2808 bytes Projectiles/Melee/ExcelsusPink.cs | 103 + Projectiles/Melee/ExcelsusPink.png | Bin 0 -> 1760 bytes Projectiles/Melee/ExcelsusPinkGlow.png | Bin 0 -> 2326 bytes Projectiles/{ => Melee}/Exobeam.cs | 2 +- Projectiles/{ => Melee}/Exobeam.png | Bin Projectiles/{ => Melee}/Exoboom.cs | 2 +- Projectiles/{ => Melee}/Exoboom.png | Bin Projectiles/{ => Melee}/Exocomet.cs | 2 +- Projectiles/{ => Melee}/Exocomet.png | Bin .../{ => Melee}/FlameScytheProjectileMelee.cs | 6 +- .../Melee/FlameScytheProjectileMelee.png | Bin 0 -> 1032 bytes Projectiles/{ => Melee}/Flarefrost.cs | 2 +- Projectiles/{ => Melee}/Flarefrost.png | Bin Projectiles/{ => Melee}/FossilSpike.cs | 2 +- Projectiles/{ => Melee}/FossilSpike.png | Bin Projectiles/{ => Melee}/GalacticaComet.cs | 2 +- Projectiles/{ => Melee}/GalacticaComet.png | Bin Projectiles/{ => Melee}/Galaxia.cs | 2 +- Projectiles/{ => Melee}/Galaxia.png | Bin Projectiles/{ => Melee}/Galaxia2.cs | 2 +- Projectiles/{ => Melee}/Galaxia2.png | Bin Projectiles/{ => Melee}/GalaxyBlast.cs | 2 +- Projectiles/{ => Melee}/GalaxyBlast.png | Bin Projectiles/{ => Melee}/GalaxyBlastType2.cs | 2 +- Projectiles/{ => Melee}/GalaxyBlastType2.png | Bin Projectiles/{ => Melee}/GalaxyBlastType3.cs | 2 +- Projectiles/{ => Melee}/GalaxyBlastType3.png | Bin Projectiles/{ => Melee}/GelWave.cs | 2 +- Projectiles/{ => Melee}/GelWave.png | Bin Projectiles/{ => Melee}/GhastlySoulLarge.cs | 2 +- Projectiles/{ => Melee}/GhastlySoulLarge.png | Bin Projectiles/{ => Melee}/GhastlySoulMedium.cs | 2 +- Projectiles/{ => Melee}/GhastlySoulMedium.png | Bin Projectiles/{ => Melee}/GhastlySoulSmall.cs | 2 +- Projectiles/{ => Melee}/GhastlySoulSmall.png | Bin Projectiles/{ => Melee}/GreenBall.cs | 2 +- Projectiles/{ => Melee}/GreenBall.png | Bin Projectiles/{ => Melee}/GreenDust.cs | 2 +- Projectiles/{ => Melee}/GreenDust.png | Bin Projectiles/{ => Melee}/GreenWater.cs | 2 +- Projectiles/{ => Melee}/GreenWater.png | Bin Projectiles/{ => Melee}/HellionSpike.cs | 2 +- Projectiles/{ => Melee}/HellionSpike.png | Bin .../{ => Melee}/HolyColliderHolyFire.cs | 2 +- .../{ => Melee}/HolyColliderHolyFire.png | Bin Projectiles/{ => Melee}/HyperBlade.cs | 2 +- Projectiles/{ => Melee}/HyperBlade.png | Bin Projectiles/{ => Melee}/IceBombFriendly.cs | 2 +- Projectiles/{ => Melee}/IceBombFriendly.png | Bin Projectiles/{ => Melee}/Iceberg.cs | 2 +- Projectiles/{ => Melee}/Iceberg.png | Bin Projectiles/{ => Melee}/Icebreaker.cs | 2 +- Projectiles/{ => Melee}/Icebreaker.png | Bin Projectiles/{ => Melee}/Judgement.cs | 2 +- Projectiles/{ => Melee}/Judgement.png | Bin Projectiles/{ => Melee}/JudgementBlah.cs | 2 +- Projectiles/{ => Melee}/JudgementBlah.png | Bin Projectiles/Melee/LaserFountain.cs | 45 + Projectiles/{ => Melee}/LaserFountain.png | Bin Projectiles/{ => Melee}/Leech.cs | 5 +- Projectiles/{ => Melee}/Leech.png | Bin Projectiles/{ => Melee}/LifeScythe.cs | 12 +- Projectiles/{ => Melee}/LifeScythe.png | Bin Projectiles/{ => Melee}/Light.cs | 2 +- Projectiles/{ => Melee}/Light.png | Bin .../MangroveChakramProjectileMelee.cs | 2 +- .../MangroveChakramProjectileMelee.png | Bin Projectiles/{ => Melee}/MarianaProjectile.cs | 2 +- Projectiles/{ => Melee}/MarianaProjectile.png | Bin Projectiles/{ => Melee}/MarniteObliterator.cs | 2 +- .../{ => Melee}/MarniteObliterator.png | Bin Projectiles/{ => Melee}/MeteorFist.cs | 2 +- Projectiles/{ => Melee}/MeteorFist.png | Bin Projectiles/{ => Melee}/MirrorBlast.cs | 2 +- Projectiles/{ => Melee}/MirrorBlast.png | Bin Projectiles/{ => Melee}/Mourningstar.cs | 2 +- Projectiles/{ => Melee}/Mourningstar.png | Bin Projectiles/{ => Melee}/Murasama.cs | 2 +- Projectiles/{ => Melee}/Murasama.png | Bin Projectiles/{ => Melee}/Nebudust.cs | 2 +- Projectiles/{ => Melee}/Nebudust.png | Bin Projectiles/{ => Melee}/Nebulash.cs | 2 +- Projectiles/{ => Melee}/Nebulash.png | Bin Projectiles/{ => Melee}/NeptuneOrb.cs | 2 +- Projectiles/{ => Melee}/NeptuneOrb.png | Bin Projectiles/{ => Melee}/NightStabber.cs | 5 +- Projectiles/{ => Melee}/NightStabber.png | Bin Projectiles/{ => Melee}/OPHammerMelee.cs | 2 +- Projectiles/{ => Melee}/OPHammerMelee.png | Bin Projectiles/{ => Melee}/Oathblade.cs | 2 +- Projectiles/{ => Melee}/Oathblade.png | Bin Projectiles/{ => Melee}/OceanBeam.cs | 2 +- Projectiles/{ => Melee}/OceanBeam.png | Bin Projectiles/{ => Melee}/OmegaBiomeOrb.cs | 2 +- Projectiles/{ => Melee}/OmegaBiomeOrb.png | Bin Projectiles/{ => Melee}/PlagueBeeDust.cs | 212 +- Projectiles/{ => Melee}/PlagueBeeDust.png | Bin Projectiles/{ => Melee}/PlagueDust.cs | 2 +- Projectiles/{ => Melee}/PlagueDust.png | Bin Projectiles/{ => Melee}/PlagueSeeker.cs | 2 +- Projectiles/{ => Melee}/PlagueSeeker.png | Bin Projectiles/{ => Melee}/PlasmaBall.cs | 2 +- Projectiles/{ => Melee}/PlasmaBall.png | Bin Projectiles/{ => Melee}/PwnagehammerMelee.cs | 2 +- Projectiles/{ => Melee}/PwnagehammerMelee.png | Bin Projectiles/{ => Melee}/RainBolt.cs | 2 +- Projectiles/{ => Melee}/RainBolt.png | Bin Projectiles/{ => Melee}/RainbowBoom.cs | 2 +- Projectiles/{ => Melee}/RainbowBoom.png | Bin Projectiles/{ => Melee}/Razorwind.cs | 2 +- Projectiles/{ => Melee}/Razorwind.png | Bin Projectiles/{ => Melee}/RedBall.cs | 2 +- Projectiles/{ => Melee}/RedBall.png | Bin Projectiles/{ => Melee}/RedDust.cs | 2 +- Projectiles/{ => Melee}/RedDust.png | Bin Projectiles/{ => Melee}/RoyalKnifeMelee.cs | 6 +- Projectiles/{ => Melee}/RoyalKnifeMelee.png | Bin Projectiles/{ => Melee}/SHIV.cs | 2 +- Projectiles/{ => Melee}/SHIV.png | Bin Projectiles/{ => Melee}/SandBlade.cs | 2 +- Projectiles/{ => Melee}/SandBlade.png | Bin Projectiles/{ => Melee}/SandFire.cs | 2 +- Projectiles/{ => Melee}/SandFire.png | Bin Projectiles/{ => Melee}/ScourgeoftheCosmos.cs | 11 +- Projectiles/Melee/ScourgeoftheCosmos.png | Bin 0 -> 716 bytes .../{ => Melee}/ScourgeoftheCosmosMini.cs | 23 +- Projectiles/Melee/ScourgeoftheCosmosMini.png | Bin 0 -> 546 bytes .../Melee/ScourgeoftheCosmosMiniGlow.png | Bin 0 -> 236 bytes .../SeashellBoomerangProjectileMelee.cs | 4 +- .../SeashellBoomerangProjectileMelee.png | Bin Projectiles/{ => Melee}/ShortBeam.cs | 2 +- Projectiles/{ => Melee}/ShortBeam.png | Bin Projectiles/{ => Melee}/ShortNightBeam.cs | 2 +- Projectiles/{ => Melee}/ShortNightBeam.png | Bin Projectiles/{ => Melee}/ShortTerraBeam.cs | 2 +- Projectiles/{ => Melee}/ShortTerraBeam.png | Bin Projectiles/{ => Melee}/SolarFlare.cs | 2 +- Projectiles/{ => Melee}/SolarFlare.png | Bin Projectiles/Melee/SolsticeBeam.cs | 201 + Projectiles/{ => Melee}/SolsticeBeam.png | Bin Projectiles/{ => Melee}/SoulScythe.cs | 2 +- Projectiles/{ => Melee}/SoulScythe.png | Bin Projectiles/{ => Melee}/Spark.cs | 6 +- Projectiles/{ => Melee}/Spark.png | Bin Projectiles/{ => Melee}/SpatialSpear.cs | 2 +- Projectiles/{ => Melee}/SpatialSpear.png | Bin Projectiles/{ => Melee}/SpatialSpear2.cs | 2 +- Projectiles/{ => Melee}/SpatialSpear2.png | Bin Projectiles/{ => Melee}/SpatialSpear3.cs | 2 +- Projectiles/{ => Melee}/SpatialSpear3.png | Bin Projectiles/{ => Melee}/SpatialSpear4.cs | 2 +- Projectiles/{ => Melee}/SpatialSpear4.png | Bin Projectiles/{ => Melee/Spears}/AstralPike.cs | 2 +- Projectiles/{ => Melee/Spears}/AstralPike.png | Bin Projectiles/{ => Melee/Spears}/BansheeHook.cs | 6 +- .../{ => Melee/Spears}/BansheeHook.png | Bin .../{ => Melee/Spears}/BansheeHookAlt.png | Bin Projectiles/{ => Melee/Spears}/Brimlance.cs | 2 +- Projectiles/{ => Melee/Spears}/Brimlance.png | Bin .../{ => Melee/Spears}/DiseasedPike.cs | 2 +- .../{ => Melee/Spears}/DiseasedPike.png | Bin Projectiles/{ => Melee/Spears}/EarthenPike.cs | 2 +- .../{ => Melee/Spears}/EarthenPike.png | Bin .../Spears}/ExsanguinationLanceProjectile.cs | 2 +- .../Spears/ExsanguinationLanceProjectile.png | Bin 0 -> 1690 bytes .../{ => Melee/Spears}/GildedProboscis.cs | 6 +- .../{ => Melee/Spears}/GildedProboscis.png | Bin .../Spears}/GoldplumeSpearProjectile.cs | 2 +- .../Spears}/GoldplumeSpearProjectile.png | Bin .../Spears}/HeartRapierProjectile.cs | 14 +- .../Spears}/HeartRapierProjectile.png | Bin .../Spears}/HellionFlowerSpearProjectile.cs | 2 +- .../Spears}/HellionFlowerSpearProjectile.png | Bin .../Spears}/MarniteSpearProjectile.cs | 2 +- .../Spears}/MarniteSpearProjectile.png | Bin .../{ => Melee/Spears}/SausageMaker.cs | 2 +- .../{ => Melee/Spears}/SausageMaker.png | Bin .../Spears}/SpatialLanceProjectile.cs | 2 +- .../Spears}/SpatialLanceProjectile.png | Bin .../Spears}/StarnightLanceProjectile.cs | 2 +- .../Spears}/StarnightLanceProjectile.png | Bin Projectiles/{ => Melee/Spears}/StreamGouge.cs | 2 +- .../{ => Melee/Spears}/StreamGouge.png | Bin .../Spears}/TerraLanceProjectile.cs | 2 +- .../Spears}/TerraLanceProjectile.png | Bin .../Spears}/UrchinSpearProjectile.cs | 2 +- .../Spears}/UrchinSpearProjectile.png | Bin Projectiles/{ => Melee}/StarCrystal.cs | 2 +- Projectiles/{ => Melee}/StarCrystal.png | Bin Projectiles/{ => Melee}/StarnightBeam.cs | 2 +- Projectiles/{ => Melee}/StarnightBeam.png | Bin Projectiles/{ => Melee}/StormBeam.cs | 2 +- Projectiles/{ => Melee}/StormBeam.png | Bin Projectiles/{ => Melee}/StormMark.cs | 2 +- Projectiles/{ => Melee}/StormMark.png | Bin Projectiles/{ => Melee}/StormRuler.cs | 2 +- Projectiles/{ => Melee}/StormRuler.png | Bin Projectiles/{ => Melee}/SunlightBlade.cs | 2 +- Projectiles/{ => Melee}/SunlightBlade.png | Bin .../TemporalFloeSwordProjectile.cs | 2 +- .../TemporalFloeSwordProjectile.png | Bin Projectiles/{ => Melee}/TerraBall.cs | 2 +- Projectiles/{ => Melee}/TerraBall.png | Bin Projectiles/{ => Melee}/TerraEdgeBeam.cs | 10 +- Projectiles/{ => Melee}/TerraEdgeBeam.png | Bin Projectiles/{ => Melee}/TerraSpear.cs | 2 +- Projectiles/{ => Melee}/TerraSpear.png | Bin .../{ => Melee}/TerracottaExplosion.cs | 2 +- .../{ => Melee}/TerracottaExplosion.png | Bin .../{ => Melee}/TerratomereProjectile.cs | 10 +- .../{ => Melee}/TerratomereProjectile.png | Bin Projectiles/{ => Melee}/TerrorBeam.cs | 2 +- Projectiles/{ => Melee}/TerrorBeam.png | Bin Projectiles/{ => Melee}/TerrorBoom.cs | 3 +- Projectiles/{ => Melee}/TerrorBoom.png | Bin Projectiles/{ => Melee}/TinyCrystal.cs | 2 +- Projectiles/{ => Melee}/TinyCrystal.png | Bin Projectiles/{ => Melee}/TinyFlare.cs | 2 +- Projectiles/{ => Melee}/TinyFlare.png | Bin Projectiles/{ => Melee}/Tornado.cs | 2 +- Projectiles/{ => Melee}/Tornado.png | Bin .../{ => Melee}/TriactisOPHammerMelee.cs | 2 +- .../{ => Melee}/TriactisOPHammerMelee.png | Bin Projectiles/{ => Melee}/TrueBiomeOrb.cs | 2 +- Projectiles/{ => Melee}/TrueBiomeOrb.png | Bin .../{ => Melee}/TrueCausticEdgeProjectile.cs | 2 +- .../{ => Melee}/TrueCausticEdgeProjectile.png | Bin Projectiles/{ => Melee}/Tumbleweed.cs | 2 +- Projectiles/{ => Melee}/Tumbleweed.png | Bin Projectiles/{ => Melee}/TumbleweedRolling.cs | 2 +- Projectiles/{ => Melee}/TumbleweedRolling.png | Bin Projectiles/{ => Melee}/TyphonsGreed.cs | 8 +- Projectiles/{ => Melee}/TyphonsGreed.png | Bin Projectiles/{ => Melee}/TyphonsGreedStaff.cs | 2 +- Projectiles/{ => Melee}/TyphonsGreedStaff.png | Bin Projectiles/{ => Melee}/UHFMurasama.png | Bin Projectiles/{ => Melee}/UrchinSpikeFugu.cs | 2 +- Projectiles/{ => Melee}/UrchinSpikeFugu.png | Bin Projectiles/{ => Melee}/WhiteBoltAura.cs | 2 +- Projectiles/{ => Melee}/WhiteBoltAura.png | Bin Projectiles/{ => Melee}/WhiteBoltAuraBlah.cs | 2 +- Projectiles/{ => Melee}/WhiteBoltAuraBlah.png | Bin Projectiles/{ => Melee}/WhiteOrb.cs | 2 +- Projectiles/{ => Melee}/WhiteOrb.png | Bin Projectiles/{ => Melee}/WhiteOrbBlah.cs | 2 +- Projectiles/{ => Melee}/WhiteOrbBlah.png | Bin Projectiles/{ => Melee}/Whiterain.cs | 2 +- Projectiles/{ => Melee}/Whiterain.png | Bin Projectiles/{ => Melee}/WhiterainBlah.cs | 2 +- Projectiles/{ => Melee}/WhiterainBlah.png | Bin .../{ => Melee/Yoyos}/AirSpinnerProjectile.cs | 2 +- .../Yoyos}/AirSpinnerProjectile.png | Bin .../{ => Melee/Yoyos}/AortaProjectile.cs | 2 +- .../{ => Melee/Yoyos}/AortaProjectile.png | Bin .../{ => Melee/Yoyos}/AzathothProjectile.cs | 2 +- .../{ => Melee/Yoyos}/AzathothProjectile.png | Bin .../{ => Melee/Yoyos}/ChaotrixProjectile.cs | 2 +- .../Melee/Yoyos/ChaotrixProjectile.png | Bin 0 -> 298 bytes .../{ => Melee/Yoyos}/CnidarianProjectile.cs | 2 +- .../{ => Melee/Yoyos}/CnidarianProjectile.png | Bin .../{ => Melee/Yoyos}/LaceratorProjectile.cs | 26 +- .../Melee/Yoyos/LaceratorProjectile.png | Bin 0 -> 291 bytes .../{ => Melee/Yoyos}/QuagmireProjectile.cs | 2 +- .../{ => Melee/Yoyos}/QuagmireProjectile.png | Bin .../Yoyos}/ShimmersparkProjectile.cs | 2 +- .../Yoyos}/ShimmersparkProjectile.png | Bin .../{ => Melee/Yoyos}/SolarFlareYoyo.cs | 2 +- .../{ => Melee/Yoyos}/SolarFlareYoyo.png | Bin .../Yoyos}/TheEyeofCalamitasProjectile.cs | 2 +- .../Yoyos}/TheEyeofCalamitasProjectile.png | Bin .../Yoyos}/TheGodsGambitProjectile.cs | 2 +- .../Melee/Yoyos/TheGodsGambitProjectile.png | Bin 0 -> 294 bytes .../{ => Melee/Yoyos}/TheObliterator.cs | 26 +- Projectiles/Melee/Yoyos/TheObliterator.png | Bin 0 -> 418 bytes .../Melee/Yoyos/TheObliteratorGlow.png | Bin 0 -> 128 bytes .../{ => Melee/Yoyos}/ThePlaguebringer.cs | 2 +- .../{ => Melee/Yoyos}/ThePlaguebringer.png | Bin .../{ => Melee/Yoyos}/VerdantProjectile.cs | 2 +- .../{ => Melee/Yoyos}/VerdantProjectile.png | Bin Projectiles/{ => Melee/Yoyos}/YinYo.cs | 2 +- Projectiles/{ => Melee/Yoyos}/YinYo.png | Bin Projectiles/NebulaStar.png | Bin 697 -> 0 bytes Projectiles/OnyxSharkBomb.cs | 77 - Projectiles/Patreon/AtaraxiaHoming.cs | 166 + Projectiles/Patreon/AtaraxiaHoming.png | Bin 0 -> 839 bytes Projectiles/Patreon/AtaraxiaMain.cs | 100 + Projectiles/Patreon/AtaraxiaMain.png | Bin 0 -> 1327 bytes Projectiles/Patreon/AtaraxiaSide.cs | 92 + Projectiles/Patreon/AtaraxiaSide.png | Bin 0 -> 839 bytes Projectiles/Patreon/AtaraxiaSplit.cs | 61 + Projectiles/Patreon/AtaraxiaSplit.png | Bin 0 -> 227 bytes Projectiles/Patreon/DarkSpark.cs | 432 +- Projectiles/Patreon/DarkSparkBeam.cs | 588 +- Projectiles/Patreon/DivineRetribution.cs | 296 +- Projectiles/Patreon/HandheldTankShell.cs | 160 + Projectiles/Patreon/HandheldTankShell.png | Bin 0 -> 221 bytes Projectiles/Patreon/KeelhaulBubble.cs | 31 + Projectiles/Patreon/KeelhaulBubble.png | Bin 0 -> 210 bytes Projectiles/Patreon/KeelhaulGeyserBottom.cs | 47 + Projectiles/Patreon/KeelhaulGeyserBottom.png | Bin 0 -> 5110 bytes Projectiles/Patreon/KeelhaulGeyserTop.cs | 47 + Projectiles/Patreon/KeelhaulGeyserTop.png | Bin 0 -> 2733 bytes Projectiles/Patreon/LightBall.cs | 130 +- Projectiles/Patreon/LightBallExplosion.cs | 58 +- Projectiles/Patreon/LightBead.cs | 218 +- Projectiles/Patreon/LightBeadSplit.cs | 88 +- Projectiles/Patreon/MelterAmp.cs | 117 + Projectiles/Patreon/MelterAmp.png | Bin 0 -> 1221 bytes Projectiles/Patreon/MelterNote1.cs | 58 + Projectiles/Patreon/MelterNote1.png | Bin 0 -> 390 bytes Projectiles/Patreon/MelterNote2.cs | 58 + Projectiles/Patreon/MelterNote2.png | Bin 0 -> 313 bytes Projectiles/Patreon/MiniGuardianAttack.cs | 492 +- Projectiles/Patreon/MiniGuardianDefense.cs | 490 +- Projectiles/Patreon/MiniGuardianHealer.cs | 326 +- Projectiles/Patreon/ThePackMinissile.cs | 88 + Projectiles/Patreon/ThePackMinissile.png | Bin 0 -> 532 bytes Projectiles/Patreon/ThePackMissile.cs | 133 + Projectiles/Patreon/ThePackMissile.png | Bin 0 -> 510 bytes Projectiles/Permafrost/DarkIceZero.cs | 2 +- Projectiles/Permafrost/FrostShardFriendly.cs | 1 + Projectiles/Permafrost/FrostyFlare.cs | 1 + Projectiles/Permafrost/IceSentry.cs | 26 +- Projectiles/{ => Pets}/Bear.cs | 734 +- Projectiles/{ => Pets}/Bear.png | Bin Projectiles/{ => Pets}/Brimling.cs | 2 +- Projectiles/{ => Pets}/Brimling.png | Bin Projectiles/{ => Pets}/ChibiiDoggo.cs | 4 +- Projectiles/{ => Pets}/ChibiiDoggo.png | Bin Projectiles/{ => Pets}/ChibiiDoggoFly.cs | 4 +- Projectiles/{ => Pets}/ChibiiDoggoFly.png | Bin .../{ => Pets}/ChibiiDoggoFlyMonochrome.png | Bin .../{ => Pets}/ChibiiDoggoMonochrome.png | Bin Projectiles/Pets/DannyDevito.cs | 314 + Projectiles/{ => Pets}/DannyDevito.png | Bin Projectiles/{ => Pets}/Fox.cs | 2 +- Projectiles/{ => Pets}/Fox.png | Bin Projectiles/{ => Pets}/Levi.cs | 2 +- Projectiles/{ => Pets}/Levi.png | Bin Projectiles/{ => Pets}/SirenYoung.cs | 2 +- .../Pets/SirenYoung.png | Bin 3530 -> 4499 bytes Projectiles/{ => Ranged}/AMR.cs | 2 +- Projectiles/{ => Ranged}/AMR.png | Bin Projectiles/{ => Ranged}/AMR2.cs | 2 +- Projectiles/{ => Ranged}/AMR2.png | Bin .../{ => Ranged}/AccelerationBullet.cs | 2 +- .../AccelerationBullet.png} | Bin Projectiles/{ => Ranged}/AcidBullet.cs | 2 +- .../{AquaBlast.png => Ranged/AcidBullet.png} | Bin Projectiles/{ => Ranged}/AquaBlast.cs | 2 +- .../AquaBlast.png} | Bin Projectiles/{ => Ranged}/AquaBlastToxic.cs | 2 +- .../AquaBlastToxic.png} | Bin Projectiles/{ => Ranged}/Archerfish.cs | 2 +- .../Archerfish.png} | Bin Projectiles/{ => Ranged}/ArcticArrow.cs | 2 +- Projectiles/{ => Ranged}/ArcticArrow.png | Bin Projectiles/{ => Ranged}/AstralRound.cs | 2 +- .../AstralRound.png} | Bin Projectiles/{ => Ranged}/AstrealArrow.cs | 2 +- Projectiles/{ => Ranged}/AstrealArrow.png | Bin Projectiles/{ => Ranged}/AstrealFlame.cs | 212 +- Projectiles/{ => Ranged}/AstrealFlame.png | Bin .../{ => Ranged}/BallistaGreatArrow.cs | 2 +- .../{ => Ranged}/BallistaGreatArrow.png | Bin Projectiles/{ => Ranged}/BeeRPG.cs | 2 +- Projectiles/{ => Ranged}/BeeRPG.png | Bin Projectiles/{ => Ranged}/BeeRPGExplosion.cs | 5 +- Projectiles/{ => Ranged}/BeeRPGExplosion.png | Bin Projectiles/{ => Ranged}/BigNuke.cs | 2 +- Projectiles/{ => Ranged}/BigNuke.png | Bin Projectiles/{ => Ranged}/BigNukeExplosion.cs | 5 +- Projectiles/{ => Ranged}/BigNukeExplosion.png | Bin Projectiles/{ => Ranged}/BloodClotFriendly.cs | 2 +- .../{ => Ranged}/BloodClotFriendly.png | Bin Projectiles/{ => Ranged}/BloodfireArrow.cs | 6 +- Projectiles/{ => Ranged}/BloodfireArrow.png | Bin Projectiles/{ => Ranged}/BloodfireBullet.cs | 4 +- Projectiles/{ => Ranged}/BloodfireBullet.png | Bin Projectiles/{ => Ranged}/BloodflareSoul.cs | 2 +- Projectiles/{ => Ranged}/BloodflareSoul.png | Bin Projectiles/{ => Ranged}/BlueExoArrow.cs | 2 +- Projectiles/{ => Ranged}/BlueExoArrow.png | Bin Projectiles/{ => Ranged}/BlueExoArrow2.cs | 2 +- Projectiles/{ => Ranged}/BlueExoArrow2.png | Bin Projectiles/{ => Ranged}/Bolt.cs | 2 +- Projectiles/{ => Ranged}/Bolt.png | Bin Projectiles/{ => Ranged}/BoltArrow.cs | 2 +- Projectiles/{ => Ranged}/BoltArrow.png | Bin Projectiles/{ => Ranged}/BoltExplosion.cs | 5 +- Projectiles/{ => Ranged}/BoltExplosion.png | Bin .../{ => Ranged}/BrimstoneBallFriendly.cs | 5 +- .../{ => Ranged}/BrimstoneBallFriendly.png | Bin Projectiles/{ => Ranged}/BrimstoneBolt.cs | 2 +- Projectiles/{ => Ranged}/BrimstoneBolt.png | Bin .../{ => Ranged}/BrimstoneFireFriendly.cs | 2 +- .../{ => Ranged}/BrimstoneFireFriendly.png | Bin Projectiles/{ => Ranged}/Butcher.cs | 2 +- Projectiles/{ => Ranged}/Butcher.png | Bin Projectiles/{ => Ranged}/ChargedBlast.cs | 2 +- Projectiles/{ => Ranged}/ChargedBlast.png | Bin Projectiles/{ => Ranged}/ChargedBlast2.cs | 2 +- Projectiles/{ => Ranged}/ChargedBlast2.png | Bin Projectiles/{ => Ranged}/ChargedBlast3.cs | 2 +- Projectiles/{ => Ranged}/ChargedBlast3.png | Bin Projectiles/{ => Ranged}/Chicken.cs | 2 +- Projectiles/{ => Ranged}/Chicken.png | Bin Projectiles/{ => Ranged}/ChickenExplosion.cs | 2 +- Projectiles/{ => Ranged}/ChickenExplosion.png | Bin Projectiles/{ => Ranged}/Contagion.cs | 2 +- Projectiles/{ => Ranged}/Contagion.png | Bin Projectiles/{ => Ranged}/ContagionArrow.cs | 8 +- Projectiles/{ => Ranged}/ContagionArrow.png | Bin Projectiles/{ => Ranged}/ContagionBall.cs | 2 +- Projectiles/{ => Ranged}/ContagionBall.png | Bin Projectiles/{ => Ranged}/CorossiveFlames.cs | 2 +- Projectiles/{ => Ranged}/CorossiveFlames.png | Bin Projectiles/{ => Ranged}/CosmicFire.cs | 2 +- Projectiles/{ => Ranged}/CosmicFire.png | Bin Projectiles/{ => Ranged}/CursedRound.cs | 2 +- Projectiles/{ => Ranged}/CursedRound.png | Bin Projectiles/{ => Ranged}/DaemonsFlame.cs | 2 +- Projectiles/{ => Ranged}/DaemonsFlame.png | Bin Projectiles/{ => Ranged}/DaemonsFlameArrow.cs | 2 +- .../{ => Ranged}/DaemonsFlameArrow.png | Bin Projectiles/{ => Ranged}/DragonBurst.cs | 2 +- Projectiles/{ => Ranged}/DragonBurst.png | Bin Projectiles/{ => Ranged}/Drataliornus.cs | 2 +- Projectiles/{ => Ranged}/Drataliornus.png | Bin .../{ => Ranged}/DrataliornusExoArrow.cs | 2 +- .../{ => Ranged}/DrataliornusExoArrow.png | Bin Projectiles/{ => Ranged}/DrataliornusFlame.cs | 2 +- .../{ => Ranged}/DrataliornusFlame.png | Bin Projectiles/{ => Ranged}/DrillCannon.png | Bin Projectiles/{ => Ranged}/ElysianArrow.cs | 2 +- Projectiles/{ => Ranged}/ElysianArrow.png | Bin Projectiles/{ => Ranged}/EnhancedNanoRound.cs | 2 +- .../{ => Ranged}/EnhancedNanoRound.png | Bin Projectiles/{ => Ranged}/EssenceFire.cs | 2 +- Projectiles/{ => Ranged}/EssenceFire.png | Bin Projectiles/{ => Ranged}/ExoFire.cs | 2 +- Projectiles/{ => Ranged}/ExoFire.png | Bin Projectiles/{ => Ranged}/ExoMark.cs | 5 +- Projectiles/{ => Ranged}/ExoMark.png | Bin Projectiles/{ => Ranged}/ExoTornado.cs | 2 +- Projectiles/{ => Ranged}/ExoTornado.png | Bin Projectiles/{ => Ranged}/ExplodingStake.cs | 2 +- Projectiles/{ => Ranged}/ExplodingStake.png | Bin Projectiles/Ranged/ExplosiveShellBullet.cs | 62 + Projectiles/Ranged/ExplosiveShellBullet.png | Bin 0 -> 156 bytes Projectiles/{ => Ranged}/FishronRPG.cs | 2 +- Projectiles/{ => Ranged}/FishronRPG.png | Bin Projectiles/{ => Ranged}/FlakKraken.cs | 2 +- Projectiles/{ => Ranged}/FlakKraken.png | Bin Projectiles/{ => Ranged}/FlakKrakenGun.cs | 2 +- Projectiles/{ => Ranged}/FlakKrakenGun.png | Bin Projectiles/{ => Ranged}/FlamingStake.cs | 2 +- Projectiles/{ => Ranged}/FlamingStake.png | Bin Projectiles/{ => Ranged}/FlareBat.cs | 2 +- Projectiles/{ => Ranged}/FlareBat.png | Bin Projectiles/{ => Ranged}/Flash.cs | 5 +- Projectiles/{ => Ranged}/Flash.png | Bin Projectiles/{ => Ranged}/FlashBullet.cs | 2 +- Projectiles/{ => Ranged}/FlashBullet.png | Bin Projectiles/{ => Ranged}/FossilShard.cs | 2 +- Projectiles/{ => Ranged}/FossilShard.png | Bin Projectiles/{ => Ranged}/FrostsparkBullet.cs | 2 +- Projectiles/{ => Ranged}/FrostsparkBullet.png | Bin Projectiles/{ => Ranged}/FungiOrb.cs | 2 +- Projectiles/{ => Ranged}/FungiOrb.png | Bin Projectiles/{ => Ranged}/FungiOrb2.cs | 2 +- Projectiles/{ => Ranged}/FungiOrb2.png | Bin Projectiles/{ => Ranged}/GoliathExplosion.cs | 5 +- Projectiles/{ => Ranged}/GoliathExplosion.png | Bin Projectiles/{ => Ranged}/GoliathRocket.cs | 2 +- Projectiles/{ => Ranged}/GoliathRocket.png | Bin Projectiles/{ => Ranged}/GreenExoArrow.cs | 2 +- Projectiles/{ => Ranged}/GreenExoArrow.png | Bin Projectiles/{ => Ranged}/HiveBomb.cs | 2 +- Projectiles/{ => Ranged}/HiveBomb.png | Bin Projectiles/{ => Ranged}/HiveBombExplosion.cs | 5 +- .../{ => Ranged}/HiveBombExplosion.png | Bin Projectiles/{ => Ranged}/HiveExplosion.cs | 5 +- Projectiles/{ => Ranged}/HiveExplosion.png | Bin Projectiles/{ => Ranged}/HiveMissile.cs | 2 +- Projectiles/{ => Ranged}/HiveMissile.png | Bin Projectiles/{ => Ranged}/HolyFireBullet.cs | 2 +- Projectiles/{ => Ranged}/HolyFireBullet.png | Bin Projectiles/{ => Ranged}/HyperiusBullet.cs | 6 +- Projectiles/{ => Ranged}/HyperiusBullet.png | Bin Projectiles/{ => Ranged}/LeafArrow.cs | 2 +- Projectiles/{ => Ranged}/LeafArrow.png | Bin Projectiles/{ => Ranged}/LunarBolt.cs | 2 +- Projectiles/{ => Ranged}/LunarBolt.png | Bin Projectiles/{ => Ranged}/LunarBolt2.cs | 2 +- Projectiles/{ => Ranged}/LunarBolt2.png | Bin Projectiles/{ => Ranged}/MagnaStrike.cs | 2 +- Projectiles/{ => Ranged}/MagnaStrike.png | Bin .../{ => Ranged}/MechanicalBarracuda.cs | 2 +- .../{ => Ranged}/MechanicalBarracuda.png | Bin Projectiles/{ => Ranged}/MeowFire.cs | 2 +- Projectiles/{ => Ranged}/MeowFire.png | Bin Projectiles/{ => Ranged}/MeowFire2.cs | 2 +- Projectiles/{ => Ranged}/MeowFire2.png | Bin Projectiles/{ => Ranged}/MiniRocket.cs | 2 +- Projectiles/{ => Ranged}/MiniRocket.png | Bin .../{ => Ranged}/MiniRocketExplosion.cs | 5 +- .../{ => Ranged}/MiniRocketExplosion.png | Bin Projectiles/{ => Ranged}/MistArrow.cs | 2 +- Projectiles/{ => Ranged}/MistArrow.png | Bin Projectiles/{ => Ranged}/MortarRound.cs | 2 +- Projectiles/{ => Ranged}/MortarRound.png | Bin Projectiles/{ => Ranged}/Nanomachine.cs | 2 +- Projectiles/{ => Ranged}/Nanomachine.png | Bin Projectiles/{ => Ranged}/NapalmArrow.cs | 2 +- Projectiles/{ => Ranged}/NapalmArrow.png | Bin Projectiles/{ => Ranged}/NebulaShot.cs | 27 +- Projectiles/{ => Ranged}/NebulaShot.png | Bin Projectiles/{ => Ranged}/Needler.cs | 2 +- Projectiles/{ => Ranged}/Needler.png | Bin Projectiles/{ => Ranged}/Nuke.cs | 2 +- Projectiles/{ => Ranged}/Nuke.png | Bin Projectiles/{ => Ranged}/NukeExplosion.cs | 5 +- Projectiles/{ => Ranged}/NukeExplosion.png | Bin Projectiles/{ => Ranged}/NullShot.cs | 2 +- Projectiles/{ => Ranged}/NullShot.png | Bin Projectiles/{ => Ranged}/NullShot2.cs | 2 +- Projectiles/{ => Ranged}/NullShot2.png | Bin Projectiles/{ => Ranged}/OMGWTH.cs | 6 +- Projectiles/{ => Ranged}/OMGWTH.png | Bin Projectiles/{ => Ranged}/OnyxExplosion.cs | 5 +- Projectiles/{ => Ranged}/OnyxExplosion.png | Bin Projectiles/Ranged/OnyxSharkBomb.cs | 77 + Projectiles/{ => Ranged}/OnyxSharkBomb.png | Bin Projectiles/{ => Ranged}/OpalStrike.cs | 2 +- Projectiles/{ => Ranged}/OpalStrike.png | Bin Projectiles/{ => Ranged}/OrangeExoArrow.cs | 2 +- Projectiles/{ => Ranged}/OrangeExoArrow.png | Bin Projectiles/{ => Ranged}/Phangasm.cs | 2 +- Projectiles/{ => Ranged}/Phangasm.png | Bin Projectiles/{ => Ranged}/PlagueArrow.cs | 2 +- Projectiles/{ => Ranged}/PlagueArrow.png | Bin .../{ => Ranged}/PlagueExplosionFriendly.cs | 5 +- .../{ => Ranged}/PlagueExplosionFriendly.png | Bin Projectiles/{ => Ranged}/PlasmaBlast.cs | 2 +- Projectiles/{ => Ranged}/PlasmaBlast.png | Bin Projectiles/{ => Ranged}/PlasmaExplosion.cs | 2 +- Projectiles/{ => Ranged}/PlasmaExplosion.png | Bin Projectiles/{ => Ranged}/ProBolt.cs | 2 +- Projectiles/{ => Ranged}/ProBolt.png | Bin Projectiles/{ => Ranged}/RainbowBlast.cs | 2 +- Projectiles/{ => Ranged}/RainbowBlast.png | Bin Projectiles/{ => Ranged}/RubberMortarRound.cs | 2 +- .../{ => Ranged}/RubberMortarRound.png | Bin Projectiles/{ => Ranged}/SandstormBullet.cs | 2 +- Projectiles/{ => Ranged}/SandstormBullet.png | Bin Projectiles/{ => Ranged}/SandyWaifuShark.cs | 2 +- Projectiles/{ => Ranged}/SandyWaifuShark.png | Bin Projectiles/{ => Ranged}/SeaDragonRocket.cs | 2 +- Projectiles/{ => Ranged}/SeaDragonRocket.png | Bin Projectiles/{ => Ranged}/ShadeFire.cs | 2 +- Projectiles/{ => Ranged}/ShadeFire.png | Bin Projectiles/{ => Ranged}/Shockblast.cs | 5 +- Projectiles/{ => Ranged}/Shockblast.png | Bin Projectiles/{ => Ranged}/ShockblastRound.cs | 4 +- Projectiles/{ => Ranged}/ShockblastRound.png | Bin Projectiles/{ => Ranged}/Shroom.cs | 2 +- Projectiles/{ => Ranged}/Shroom.png | Bin Projectiles/{ => Ranged}/Sickness.cs | 5 +- Projectiles/{ => Ranged}/Sickness.png | Bin Projectiles/{ => Ranged}/SicknessRound.cs | 2 +- Projectiles/{ => Ranged}/SicknessRound.png | Bin Projectiles/{ => Ranged}/SicknessRound2.cs | 2 +- Projectiles/{ => Ranged}/SicknessRound2.png | Bin Projectiles/{ => Ranged}/SlagRound.cs | 2 +- Projectiles/{ => Ranged}/SlagRound.png | Bin Projectiles/{ => Ranged}/SlashRound.cs | 2 +- Projectiles/{ => Ranged}/SlashRound.png | Bin Projectiles/{ => Ranged}/SlimeBolt.cs | 2 +- Projectiles/{ => Ranged}/SlimeBolt.png | Bin Projectiles/{ => Ranged}/SporeBomb.cs | 2 +- Projectiles/{ => Ranged}/SporeBomb.png | Bin Projectiles/{ => Ranged}/Spyker.cs | 2 +- Projectiles/{ => Ranged}/Spyker.png | Bin Projectiles/{ => Ranged}/StormSurge.cs | 2 +- Projectiles/{ => Ranged}/StormSurge.png | Bin .../{ => Ranged}/SulphuricAcidCannon2.cs | 2 +- .../{ => Ranged}/SulphuricAcidCannon2.png | Bin .../{ => Ranged}/SulphuricAcidMist2.cs | 2 +- .../{ => Ranged}/SulphuricAcidMist2.png | Bin Projectiles/{ => Ranged}/SuperballBullet.cs | 2 +- Projectiles/{ => Ranged}/SuperballBullet.png | Bin Projectiles/{ => Ranged}/TealExoArrow.cs | 2 +- Projectiles/{ => Ranged}/TealExoArrow.png | Bin Projectiles/{ => Ranged}/TelluricGlare.cs | 2 +- Projectiles/{ => Ranged}/TelluricGlare.png | Bin Projectiles/{ => Ranged}/TerraArrow.cs | 2 +- Projectiles/{ => Ranged}/TerraArrow.png | Bin Projectiles/{ => Ranged}/TerraArrow2.cs | 2 +- Projectiles/{ => Ranged}/TerraArrow2.png | Bin Projectiles/{ => Ranged}/TerraBallB.cs | 2 +- Projectiles/{ => Ranged}/TerraBallB.png | Bin Projectiles/{ => Ranged}/TerraBallG.cs | 2 +- Projectiles/{ => Ranged}/TerraBallG.png | Bin Projectiles/{ => Ranged}/TerraBallI.cs | 2 +- Projectiles/{ => Ranged}/TerraBallI.png | Bin Projectiles/{ => Ranged}/TerraBallO.cs | 2 +- Projectiles/{ => Ranged}/TerraBallO.png | Bin Projectiles/{ => Ranged}/TerraBallR.cs | 2 +- Projectiles/{ => Ranged}/TerraBallR.png | Bin Projectiles/{ => Ranged}/TerraBallV.cs | 2 +- Projectiles/{ => Ranged}/TerraBallV.png | Bin Projectiles/{ => Ranged}/TerraBallY.cs | 2 +- Projectiles/{ => Ranged}/TerraBallY.png | Bin Projectiles/{ => Ranged}/TerraBullet.cs | 4 +- Projectiles/{ => Ranged}/TerraBullet.png | Bin Projectiles/{ => Ranged}/TerraBulletSplit.cs | 2 +- Projectiles/{ => Ranged}/TerraBulletSplit.png | Bin Projectiles/{ => Ranged}/TerraFireBlue.cs | 2 +- Projectiles/{ => Ranged}/TerraFireBlue.png | Bin Projectiles/{ => Ranged}/TerraFireGreen.cs | 2 +- Projectiles/{ => Ranged}/TerraFireGreen.png | Bin Projectiles/{ => Ranged}/TerraFireGreen2.cs | 2 +- Projectiles/{ => Ranged}/TerraFireGreen2.png | Bin Projectiles/{ => Ranged}/TerraFireRed.cs | 2 +- Projectiles/{ => Ranged}/TerraFireRed.png | Bin Projectiles/{ => Ranged}/TitRail.cs | 2 +- Projectiles/{ => Ranged}/TitRail.png | Bin Projectiles/{ => Ranged}/TorrentialArrow.cs | 2 +- Projectiles/{ => Ranged}/TorrentialArrow.png | Bin Projectiles/{ => Ranged}/Triploon.cs | 2 +- Projectiles/{ => Ranged}/Triploon.png | Bin Projectiles/{ => Ranged}/TyphoonArrow.cs | 2 +- Projectiles/{ => Ranged}/TyphoonArrow.png | Bin Projectiles/{ => Ranged}/TyphoonBubble.cs | 2 +- Projectiles/{ => Ranged}/TyphoonBubble.png | Bin Projectiles/{ => Ranged}/VanquisherArrow.cs | 2 +- Projectiles/{ => Ranged}/VanquisherArrow.png | Bin Projectiles/{ => Ranged}/VeriumBullet.cs | 2 +- Projectiles/{ => Ranged}/VeriumBullet.png | Bin Projectiles/{ => Ranged}/Voidragon.cs | 2 +- Projectiles/{ => Ranged}/Voidragon.png | Bin Projectiles/{ => Ranged}/WaterSpout.cs | 2 +- Projectiles/{ => Ranged}/WaterSpout.png | Bin Projectiles/{ => Rogue}/AccretionDisk.cs | 5 +- Projectiles/{ => Rogue}/AccretionDisk.png | Bin Projectiles/{ => Rogue}/AccretionDisk2.cs | 5 +- Projectiles/{ => Rogue}/AccretionDisk2.png | Bin .../AdamantiteThrowingAxeProjectile.cs | 5 +- .../AdamantiteThrowingAxeProjectile.png | Bin .../{ => Rogue}/BallisticPoisonBomb.cs | 5 +- Projectiles/Rogue/BallisticPoisonBomb.png | Bin 0 -> 431 bytes .../{ => Rogue}/BallisticPoisonBombSpike.cs | 5 +- .../Rogue/BallisticPoisonBombSpike.png | Bin 0 -> 275 bytes Projectiles/{ => Rogue}/BrackishFlask.cs | 5 +- Projectiles/{ => Rogue}/BrackishFlask.png | Bin Projectiles/{ => Rogue}/BrackishWater.cs | 5 +- Projectiles/{ => Rogue}/BrackishWater.png | Bin Projectiles/{ => Rogue}/BrackishWaterBlast.cs | 5 +- .../{ => Rogue}/BrackishWaterBlast.png | Bin Projectiles/{ => Rogue}/Brimblade.cs | 5 +- Projectiles/{ => Rogue}/Brimblade.png | Bin Projectiles/{ => Rogue}/Brimblade2.cs | 5 +- Projectiles/{ => Rogue}/Brimblade2.png | Bin Projectiles/{ => Rogue}/Celestus.cs | 5 +- Projectiles/Rogue/Celestus.png | Bin 0 -> 3380 bytes Projectiles/{ => Rogue}/Celestus2.cs | 5 +- Projectiles/{ => Rogue}/Celestus2.png | Bin .../{ => Rogue}/CobaltKunaiProjectile.cs | 5 +- .../{ => Rogue}/CobaltKunaiProjectile.png | Bin Projectiles/{ => Rogue}/CosmicKunai.cs | 5 +- Projectiles/{ => Rogue}/CosmicKunai.png | Bin Projectiles/{ => Rogue}/Crushax.cs | 5 +- Projectiles/{ => Rogue}/Crushax.png | Bin .../{ => Rogue}/CrystalPiercerProjectile.cs | 5 +- .../{ => Rogue}/CrystalPiercerProjectile.png | Bin Projectiles/{ => Rogue}/Crystalline.cs | 5 +- Projectiles/Rogue/Crystalline.png | Bin 0 -> 946 bytes Projectiles/{ => Rogue}/Crystalline2.cs | 5 +- Projectiles/Rogue/Crystalline2.png | Bin 0 -> 946 bytes Projectiles/{ => Rogue}/CursedDagger.cs | 5 +- Projectiles/{ => Rogue}/CursedDagger.png | Bin Projectiles/{ => Rogue}/DuststormCloud.cs | 5 +- Projectiles/{ => Rogue}/DuststormCloud.png | Bin Projectiles/{ => Rogue}/DuststormInABottle.cs | 5 +- .../{ => Rogue}/DuststormInABottle.png | Bin Projectiles/{ => Rogue}/EmpyreanKnives.cs | 7 +- Projectiles/{ => Rogue}/EmpyreanKnives.png | Bin .../{ => Rogue}/EradicatorProjectile.cs | 18 +- Projectiles/Rogue/EradicatorProjectile.png | Bin 0 -> 1791 bytes .../Rogue/EradicatorProjectileGlow.png | Bin 0 -> 1381 bytes Projectiles/{ => Rogue}/ExecutionersBlade.cs | 5 +- Projectiles/{ => Rogue}/ExecutionersBlade.png | Bin .../{ => Rogue}/FeatherKnifeProjectile.cs | 5 +- .../{ => Rogue}/FeatherKnifeProjectile.png | Bin .../{ => Rogue}/FlameScytheProjectile.cs | 9 +- Projectiles/Rogue/FlameScytheProjectile.png | Bin 0 -> 1032 bytes Projectiles/{ => Rogue}/FossilShardThrown.cs | 91 +- Projectiles/{ => Rogue}/FossilShardThrown.png | Bin Projectiles/{ => Rogue}/GelDartProjectile.cs | 5 +- Projectiles/{ => Rogue}/GelDartProjectile.png | Bin Projectiles/{ => Rogue}/GhoulishGouger.cs | 5 +- Projectiles/{ => Rogue}/GhoulishGouger.png | Bin Projectiles/{ => Rogue}/IceStarProjectile.cs | 5 +- Projectiles/{ => Rogue}/IceStarProjectile.png | Bin Projectiles/{ => Rogue}/IchorSpear.cs | 5 +- Projectiles/{ => Rogue}/IchorSpear.png | Bin Projectiles/{ => Rogue}/Lionfish.cs | 5 +- Projectiles/{ => Rogue}/Lionfish.png | Bin Projectiles/{ => Rogue}/Malachite.cs | 5 +- Projectiles/{ => Rogue}/Malachite.png | Bin Projectiles/{ => Rogue}/MalachiteBolt.cs | 5 +- Projectiles/{ => Rogue}/MalachiteBolt.png | Bin .../{ => Rogue}/MangroveChakramProjectile.cs | 5 +- .../{ => Rogue}/MangroveChakramProjectile.png | Bin Projectiles/{ => Rogue}/MoltenAmputator.cs | 5 +- Projectiles/{ => Rogue}/MoltenAmputator.png | Bin Projectiles/{ => Rogue}/MoltenBlobThrown.cs | 191 +- Projectiles/{ => Rogue}/MoltenBlobThrown.png | Bin Projectiles/{ => Rogue}/Mycoroot.cs | 5 +- Projectiles/{ => Rogue}/Mycoroot.png | Bin .../{ => Rogue}/MythrilKnifeProjectile.cs | 5 +- .../{ => Rogue}/MythrilKnifeProjectile.png | Bin Projectiles/{ => Rogue}/OPHammer.cs | 5 +- Projectiles/{ => Rogue}/OPHammer.png | Bin .../OrichalcumSpikedGemstoneProjectile.cs | 5 +- .../OrichalcumSpikedGemstoneProjectile.png | Bin .../{ => Rogue}/PalladiumJavelinProjectile.cs | 5 +- .../PalladiumJavelinProjectile.png | Bin Projectiles/{ => Rogue}/ProfanedTrident.cs | 5 +- Projectiles/{ => Rogue}/ProfanedTrident.png | Bin Projectiles/{ => Rogue}/Pwnagehammer.cs | 5 +- Projectiles/{ => Rogue}/Pwnagehammer.png | Bin Projectiles/{ => Rogue}/RotBallProjectile.cs | 5 +- Projectiles/{ => Rogue}/RotBallProjectile.png | Bin Projectiles/{ => Rogue}/RoyalKnife.cs | 9 +- Projectiles/{ => Rogue}/RoyalKnife.png | Bin Projectiles/{ => Rogue}/ScourgeoftheDesert.cs | 5 +- .../{ => Rogue}/ScourgeoftheDesert.png | Bin .../SeashellBoomerangProjectile.cs | 7 +- .../SeashellBoomerangProjectile.png | Bin Projectiles/Rogue/ShatteredExplosion.cs | 50 + Projectiles/Rogue/ShatteredExplosion.png | Bin 0 -> 1371 bytes Projectiles/Rogue/ShatteredSun.cs | 95 + Projectiles/Rogue/ShatteredSun.png | Bin 0 -> 1570 bytes Projectiles/Rogue/ShatteredSun2.cs | 83 + Projectiles/Rogue/ShatteredSun2.png | Bin 0 -> 1570 bytes Projectiles/Rogue/ShatteredSun3.cs | 98 + Projectiles/Rogue/ShatteredSun3.png | Bin 0 -> 1570 bytes Projectiles/{ => Rogue}/SpearofPaleolith.cs | 5 +- Projectiles/{ => Rogue}/SpearofPaleolith.png | Bin .../TarragonThrowingDartProjectile.cs | 5 +- .../TarragonThrowingDartProjectile.png | Bin .../{ => Rogue}/TitaniumShurikenProjectile.cs | 5 +- .../TitaniumShurikenProjectile.png | Bin .../{ => Rogue}/ToothBallProjectile.cs | 5 +- .../{ => Rogue}/ToothBallProjectile.png | Bin Projectiles/{ => Rogue}/TriactisOPHammer.cs | 5 +- Projectiles/{ => Rogue}/TriactisOPHammer.png | Bin Projectiles/{ => Rogue}/UrchinStinger.cs | 5 +- Projectiles/{ => Rogue}/UrchinStinger.png | Bin Projectiles/{ => Rogue}/Valediction.cs | 5 +- Projectiles/{ => Rogue}/Valediction.png | Bin Projectiles/{ => Rogue}/WulfrumKnife.cs | 5 +- Projectiles/{ => Rogue}/WulfrumKnife.png | Bin .../{ => Rogue}/XerocPitchforkProjectile.cs | 5 +- .../{ => Rogue}/XerocPitchforkProjectile.png | Bin Projectiles/ScourgeoftheCosmos.png | Bin 496 -> 0 bytes Projectiles/ScourgeoftheCosmosMini.png | Bin 444 -> 0 bytes Projectiles/SirenLure.png | Bin 3023 -> 0 bytes Projectiles/SirenYoung.png | Bin 4824 -> 0 bytes Projectiles/SolsticeBeam.cs | 208 - Projectiles/{ => Summon}/AngryChicken.cs | 15 +- Projectiles/{ => Summon}/AngryChicken.png | Bin Projectiles/{ => Summon}/AquaticStar.cs | 15 +- Projectiles/{ => Summon}/AquaticStar.png | Bin .../{ => Summon}/BabyPlaguebringer.png | Bin Projectiles/{ => Summon}/BigBustyRose.cs | 15 +- Projectiles/{ => Summon}/BigBustyRose.png | Bin Projectiles/{ => Summon}/BloodClotMinion.cs | 15 +- Projectiles/{ => Summon}/BloodClotMinion.png | Bin .../{ => Summon}/BrimstoneFireSummon.cs | 2 +- .../{ => Summon}/BrimstoneFireSummon.png | Bin Projectiles/Summon/BrimstoneLaserSummon.cs | 51 + .../{ => Summon}/BrimstoneLaserSummon.png | Bin Projectiles/{ => Summon}/BrittleStar.cs | 15 +- Projectiles/{ => Summon}/BrittleStar.png | Bin Projectiles/{ => Summon}/Calamari.cs | 26 +- Projectiles/{ => Summon}/Calamari.png | Bin Projectiles/{ => Summon}/CalamariInk.cs | 2 +- Projectiles/{ => Summon}/CalamariInk.png | Bin Projectiles/{ => Summon}/Calamitamini.cs | 22 +- Projectiles/{ => Summon}/Calamitamini.png | Bin Projectiles/{ => Summon}/Cataclymini.cs | 22 +- Projectiles/{ => Summon}/Cataclymini.png | Bin Projectiles/{ => Summon}/Catastromini.cs | 15 +- Projectiles/{ => Summon}/Catastromini.png | Bin Projectiles/{ => Summon}/ChaosFlame.cs | 2 +- Projectiles/{ => Summon}/ChaosFlame.png | Bin Projectiles/{ => Summon}/ChaosSpirit.cs | 34 +- Projectiles/Summon/ChaosSpirit.png | Bin 0 -> 4093 bytes Projectiles/{ => Summon}/CloudyWaifu.cs | 15 +- Projectiles/{ => Summon}/CloudyWaifu.png | Bin .../{ => Summon}/CloudyWaifuAttack.png | Bin Projectiles/{ => Summon}/Corroslime.cs | 15 +- Projectiles/{ => Summon}/Corroslime.png | Bin Projectiles/{ => Summon}/CosmicBlast.cs | 2 +- Projectiles/{ => Summon}/CosmicBlast.png | Bin Projectiles/{ => Summon}/CosmicBlastBig.cs | 2 +- Projectiles/{ => Summon}/CosmicBlastBig.png | Bin Projectiles/{ => Summon}/CosmicEnergy.cs | 32 +- Projectiles/{ => Summon}/CosmicEnergy.png | Bin Projectiles/{ => Summon}/Cosmilamp.cs | 15 +- Projectiles/{ => Summon}/Cosmilamp.png | Bin Projectiles/{ => Summon}/Crimslime.cs | 15 +- Projectiles/{ => Summon}/Crimslime.png | Bin Projectiles/{ => Summon}/DaedalusCrystal.cs | 29 +- Projectiles/{ => Summon}/DaedalusCrystal.png | Bin .../{ => Summon}/DaedalusCrystalShot.cs | 2 +- .../{ => Summon}/DaedalusCrystalShot.png | Bin Projectiles/{ => Summon}/DankCreeper.cs | 15 +- Projectiles/{ => Summon}/DankCreeper.png | Bin Projectiles/{ => Summon}/Dreadmine.cs | 2 +- Projectiles/{ => Summon}/Dreadmine.png | Bin Projectiles/{ => Summon}/DreadmineTurret.cs | 25 +- Projectiles/{ => Summon}/DreadmineTurret.png | Bin Projectiles/{ => Summon}/DrewsSandyWaifu.cs | 15 +- Projectiles/{ => Summon}/DrewsSandyWaifu.png | Bin Projectiles/{ => Summon}/ElementalAxe.cs | 17 +- Projectiles/{ => Summon}/ElementalAxe.png | Bin Projectiles/{ => Summon}/FlameBlast.cs | 2 +- Projectiles/{ => Summon}/FlameBlast.png | Bin Projectiles/{ => Summon}/FlameBurst.cs | 2 +- Projectiles/{ => Summon}/FlameBurst.png | Bin Projectiles/{ => Summon}/FrostMistFriendly.cs | 89 +- .../{ => Summon}/FrostMistFriendly.png | Bin Projectiles/{ => Summon}/FungalClump.cs | 15 +- Projectiles/{ => Summon}/FungalClump.png | Bin Projectiles/{ => Summon}/GhostFire.cs | 2 +- Projectiles/{ => Summon}/GhostFire.png | Bin Projectiles/{ => Summon}/GhostlyMine.cs | 13 +- Projectiles/{ => Summon}/GhostlyMine.png | Bin Projectiles/{ => Summon}/GigaFlareFriendly.cs | 2 +- .../{ => Summon}/GigaFlareFriendly.png | Bin Projectiles/{ => Summon}/Herring.cs | 15 +- Projectiles/{ => Summon}/Herring.png | Bin Projectiles/{ => Summon}/IceClasper.cs | 15 +- Projectiles/{ => Summon}/IceClasper.png | Bin Projectiles/{ => Summon}/MechwormBody.cs | 2 +- Projectiles/Summon/MechwormBody.png | Bin 0 -> 598 bytes Projectiles/{ => Summon}/MechwormBody2.cs | 2 +- Projectiles/Summon/MechwormBody2.png | Bin 0 -> 598 bytes Projectiles/{ => Summon}/MechwormHead.cs | 13 +- Projectiles/Summon/MechwormHead.png | Bin 0 -> 1325 bytes Projectiles/Summon/MechwormHeadGlow.png | Bin 0 -> 679 bytes Projectiles/{ => Summon}/MechwormTail.cs | 2 +- Projectiles/Summon/MechwormTail.png | Bin 0 -> 813 bytes Projectiles/{ => Summon}/MiniSandShark.cs | 2 +- Projectiles/{ => Summon}/MiniSandShark.png | Bin Projectiles/{ => Summon}/PhantomGuy.cs | 22 +- Projectiles/{ => Summon}/PhantomGuy.png | Bin .../{ => Summon}/PhoenixFireFriendly.cs | 2 +- .../{ => Summon}/PhoenixFireFriendly.png | Bin Projectiles/{ => Summon}/ProfanedEnergy.cs | 27 +- Projectiles/{ => Summon}/ProfanedEnergy.png | Bin Projectiles/{ => Summon}/ReaverOrb.cs | 29 +- Projectiles/{ => Summon}/ReaverOrb.png | Bin Projectiles/{ => Summon}/RedDevil.cs | 14 +- Projectiles/{ => Summon}/RedDevil.png | Bin Projectiles/{ => Summon}/SandBolt.cs | 2 +- Projectiles/{ => Summon}/SandBolt.png | Bin Projectiles/{ => Summon}/SandMark.cs | 2 +- Projectiles/{ => Summon}/SandMark.png | Bin Projectiles/{ => Summon}/SandTornado.cs | 2 +- Projectiles/{ => Summon}/SandTornado.png | Bin Projectiles/{ => Summon}/Sandnado.cs | 22 +- Projectiles/{ => Summon}/Sandnado.png | Bin Projectiles/{ => Summon}/SandyWaifu.cs | 15 +- Projectiles/{ => Summon}/SandyWaifu.png | Bin Projectiles/{ => Summon}/Shroomling.png | Bin Projectiles/{ => Summon}/SilvaCrystal.cs | 28 +- Projectiles/{ => Summon}/SilvaCrystal.png | Bin .../{ => Summon}/SilvaCrystalExplosion.cs | 2 +- .../{ => Summon}/SilvaCrystalExplosion.png | Bin Projectiles/{ => Summon}/SirenLure.cs | 42 +- Projectiles/Summon/SirenLure.png | Bin 0 -> 18077 bytes Projectiles/{ => Summon}/SirenSongFriendly.cs | 18 +- .../{ => Summon}/SirenSongFriendly.png | Bin 3300 -> 3658 bytes Projectiles/{ => Summon}/SlimeGod.cs | 15 +- Projectiles/{ => Summon}/SlimeGod.png | Bin Projectiles/{ => Summon}/SlimeGodAlt.cs | 15 +- Projectiles/{ => Summon}/SlimeGodAlt.png | Bin Projectiles/{ => Summon}/SolarBeam.cs | 3 +- Projectiles/{ => Summon}/SolarBeam.png | Bin Projectiles/{ => Summon}/SolarGod.cs | 30 +- Projectiles/{ => Summon}/SolarGod.png | Bin Projectiles/{ => Summon}/SolarPixie.cs | 30 +- Projectiles/{ => Summon}/SolarPixie.png | Bin Projectiles/{ => Summon}/StormMarkSummon.cs | 2 +- Projectiles/{ => Summon}/StormMarkSummon.png | Bin Projectiles/{ => Summon}/Urchin.cs | 29 +- Projectiles/{ => Summon}/Urchin.png | Bin Projectiles/{ => Summon}/UrchinSpike.cs | 2 +- Projectiles/{ => Summon}/UrchinSpike.png | Bin Projectiles/{ => Summon}/Valkyrie.cs | 15 +- Projectiles/{ => Summon}/Valkyrie.png | Bin .../{ => Summon}/WaterSpearFriendly.cs | 9 +- Projectiles/Summon/WaterSpearFriendly.png | Bin 0 -> 411 bytes Projectiles/{ => Summon}/WulfrumDroid.png | Bin Projectiles/Summon/desktop.ini | 2 + Projectiles/SunkenSea/AquaStream.cs | 44 + Projectiles/SunkenSea/AquaStream.png | Bin 0 -> 72 bytes Projectiles/SunkenSea/AquamarineBolt.cs | 56 + .../AquamarineBolt.png} | Bin Projectiles/SunkenSea/Aquashard.cs | 63 + Projectiles/SunkenSea/Aquashard.png | Bin 0 -> 259 bytes Projectiles/SunkenSea/AquashardSplit.cs | 44 + Projectiles/SunkenSea/AquashardSplit.png | Bin 0 -> 259 bytes Projectiles/SunkenSea/ClamCrusherFlail.cs | 205 + Projectiles/SunkenSea/ClamCrusherFlail.png | Bin 0 -> 1599 bytes Projectiles/SunkenSea/ClamorRifleProj.cs | 106 + .../ClamorRifleProj.png} | Bin Projectiles/SunkenSea/ClamorRifleProjSplit.cs | 48 + .../ClamorRifleProjSplit.png} | Bin Projectiles/SunkenSea/CoralBubble.cs | 114 + Projectiles/SunkenSea/CoralBubble.png | Bin 0 -> 390 bytes Projectiles/SunkenSea/CoralBubbleSmall.cs | 114 + Projectiles/SunkenSea/CoralBubbleSmall.png | Bin 0 -> 390 bytes .../SunkenSea/EutrophicScimitarProj.cs | 84 + .../SunkenSea/EutrophicScimitarProj.png | Bin 0 -> 483 bytes Projectiles/SunkenSea/EutrophicSpark.cs | 100 + .../EutrophicSpark.png} | Bin Projectiles/SunkenSea/PearlBurst.cs | 88 + Projectiles/SunkenSea/PearlBurst.png | Bin 0 -> 1452 bytes Projectiles/SunkenSea/PearlRain.cs | 56 + Projectiles/SunkenSea/PearlRain.png | Bin 0 -> 1452 bytes Projectiles/SunkenSea/PendantProjectile1.cs | 42 + Projectiles/SunkenSea/PendantProjectile1.png | Bin 0 -> 246 bytes Projectiles/SunkenSea/PendantProjectile2.cs | 42 + Projectiles/SunkenSea/PendantProjectile2.png | Bin 0 -> 256 bytes Projectiles/SunkenSea/PendantProjectile3.cs | 42 + Projectiles/SunkenSea/PendantProjectile3.png | Bin 0 -> 325 bytes Projectiles/SunkenSea/PoseidonTyphoon.cs | 102 + Projectiles/SunkenSea/PoseidonTyphoon.png | Bin 0 -> 327 bytes Projectiles/SunkenSea/Prismalline.cs | 91 + Projectiles/SunkenSea/Prismalline.png | Bin 0 -> 1035 bytes Projectiles/SunkenSea/Prismalline2.cs | 54 + Projectiles/SunkenSea/Prismalline2.png | Bin 0 -> 1035 bytes Projectiles/SunkenSea/Prismalline3.cs | 86 + Projectiles/SunkenSea/Prismalline3.png | Bin 0 -> 1035 bytes Projectiles/SunkenSea/SeafoamBomb.cs | 76 + Projectiles/SunkenSea/SeafoamBomb.png | Bin 0 -> 339 bytes Projectiles/SunkenSea/SeafoamBubble.cs | 71 + Projectiles/SunkenSea/SeafoamBubble.png | Bin 0 -> 390 bytes Projectiles/SunkenSea/SeashineSwordProj.cs | 49 + Projectiles/SunkenSea/SeashineSwordProj.png | Bin 0 -> 455 bytes Projectiles/SunkenSea/SerpentineBody.cs | 99 + Projectiles/SunkenSea/SerpentineBody.png | Bin 0 -> 183 bytes Projectiles/SunkenSea/SerpentineHead.cs | 176 + Projectiles/SunkenSea/SerpentineHead.png | Bin 0 -> 174 bytes Projectiles/SunkenSea/SerpentineTail.cs | 99 + Projectiles/SunkenSea/SerpentineTail.png | Bin 0 -> 228 bytes Projectiles/SunkenSea/Shellfish.cs | 480 + Projectiles/SunkenSea/Shellfish.png | Bin 0 -> 720 bytes Projectiles/SunkenSea/WhirlpoolProjectile.cs | 65 + Projectiles/SunkenSea/WhirlpoolProjectile.png | Bin 0 -> 292 bytes Projectiles/TheGodsGambitProjectile.png | Bin 318 -> 0 bytes Projectiles/TheObliterator.png | Bin 378 -> 0 bytes .../{ => Typeless}/AstralFallingSand.cs | 2 +- .../{ => Typeless}/AstralFallingSand.png | Bin Projectiles/{ => Typeless}/AstralSpray.cs | 2 +- Projectiles/{ => Typeless}/AstralSpray.png | Bin Projectiles/{ => Typeless}/AstralStar.cs | 6 +- Projectiles/{ => Typeless}/AstralStar.png | Bin Projectiles/{ => Typeless}/AtaxiaOrb.cs | 2 +- Projectiles/{ => Typeless}/AtaxiaOrb.png | Bin .../{ => Typeless}/BallisticPoisonCloud.cs | 2 +- .../{ => Typeless}/BallisticPoisonCloud.png | Bin .../{ => Typeless}/BallisticPoisonCloud2.cs | 2 +- .../{ => Typeless}/BallisticPoisonCloud2.png | Bin .../{ => Typeless}/BallisticPoisonCloud3.cs | 2 +- .../{ => Typeless}/BallisticPoisonCloud3.png | Bin Projectiles/{ => Typeless}/BloodBomb.cs | 3 +- Projectiles/{ => Typeless}/BloodBomb.png | Bin .../{ => Typeless}/BloodBombExplosion.cs | 3 +- .../{ => Typeless}/BloodBombExplosion.png | Bin Projectiles/{ => Typeless}/ChaosBlaze.cs | 2 +- Projectiles/{ => Typeless}/ChaosBlaze.png | Bin Projectiles/{ => Typeless}/ChaosFlare.cs | 3 +- .../ChaosFlare.png} | Bin Projectiles/{ => Typeless}/ChaosFlare2.cs | 2 +- .../ChaosFlare2.png} | Bin Projectiles/{ => Typeless}/ChaosGeyser.cs | 2 +- Projectiles/{ => Typeless}/ChaosGeyser.png | Bin Projectiles/{ => Typeless}/DarkEnergySpawn.cs | 2 +- .../{ => Typeless}/DarkEnergySpawn.png | Bin Projectiles/{ => Typeless}/DragonDust.cs | 2 +- Projectiles/{ => Typeless}/DragonDust.png | Bin Projectiles/{ => Typeless}/FabsolDust.cs | 2 +- Projectiles/{ => Typeless}/FabsolDust.png | Bin Projectiles/{ => Typeless}/FlareExplosion.cs | 2 +- Projectiles/{ => Typeless}/FlareExplosion.png | Bin Projectiles/{ => Typeless}/GhostlyBolt.cs | 3 +- Projectiles/{ => Typeless}/GhostlyBolt.png | Bin Projectiles/{ => Typeless}/GodKiller.cs | 2 +- Projectiles/{ => Typeless}/GodKiller.png | Bin Projectiles/{ => Typeless}/GodSlayerBlaze.cs | 3 +- Projectiles/{ => Typeless}/GodSlayerBlaze.png | Bin Projectiles/{ => Typeless}/GodSlayerOrb.cs | 2 +- Projectiles/{ => Typeless}/GodSlayerOrb.png | Bin .../{ => Typeless}/GodSlayerPhantom.cs | 4 +- .../{ => Typeless}/GodSlayerPhantom.png | Bin .../{ => Typeless}/GodSlayerShrapnel.cs | 2 +- .../GodSlayerShrapnel.png} | Bin .../{ => Typeless}/GodSlayerShrapnelRound.cs | 3 +- .../Typeless/GodSlayerShrapnelRound.png | Bin 0 -> 136 bytes Projectiles/{ => Typeless}/GoldenGun.cs | 6 +- Projectiles/Typeless/GoldenGun.png | Bin 0 -> 136 bytes Projectiles/{ => Typeless}/GraySpawn.cs | 2 +- Projectiles/{ => Typeless}/GraySpawn.png | Bin Projectiles/{ => Typeless}/GrenadeRound.cs | 220 +- Projectiles/{ => Typeless}/GrenadeRound.png | Bin Projectiles/{ => Typeless}/HolyEruption.cs | 2 +- Projectiles/{ => Typeless}/HolyEruption.png | Bin Projectiles/{ => Typeless}/HolyExplosion.cs | 2 +- Projectiles/{ => Typeless}/HolyExplosion.png | Bin .../{ => Typeless}/HolyExplosionSupreme.cs | 2 +- .../{ => Typeless}/HolyExplosionSupreme.png | Bin Projectiles/{ => Typeless}/HolyFlameBomb.cs | 2 +- Projectiles/{ => Typeless}/HolyFlameBomb.png | Bin Projectiles/{ => Typeless}/LunicBeam.cs | 6 +- Projectiles/Typeless/LunicBeam.png | Bin 0 -> 136 bytes Projectiles/{ => Typeless}/MageHammerBoom.cs | 2 +- Projectiles/{ => Typeless}/MageHammerBoom.png | Bin Projectiles/{ => Typeless}/MagnumRound.cs | 100 +- Projectiles/{ => Typeless}/MagnumRound.png | Bin Projectiles/{ => Typeless}/MarkRound.cs | 2 +- Projectiles/{ => Typeless}/MarkRound.png | Bin Projectiles/{ => Typeless}/Nanotech.cs | 2 +- Projectiles/{ => Typeless}/Nanotech.png | Bin Projectiles/{ => Typeless}/NebulaDust.cs | 2 +- Projectiles/{ => Typeless}/NebulaDust.png | Bin Projectiles/{ => Typeless}/NebulaStar.cs | 20 +- Projectiles/Typeless/NebulaStar.png | Bin 0 -> 793 bytes Projectiles/Typeless/NebulaStarGlow.png | Bin 0 -> 848 bytes Projectiles/{ => Typeless}/NobodyKnows.cs | 2 +- Projectiles/{ => Typeless}/NobodyKnows.png | Bin .../{ => Typeless}/OmegaBlueTentacle.cs | 458 +- .../{ => Typeless}/OmegaBlueTentacle.png | Bin .../{ => Typeless}/PoisonousSeawater.cs | 2 +- .../{ => Typeless}/PoisonousSeawater.png | Bin Projectiles/{ => Typeless}/ReaverBlast.cs | 2 +- Projectiles/{ => Typeless}/ReaverBlast.png | Bin Projectiles/{ => Typeless}/RedSpawn.cs | 2 +- Projectiles/{ => Typeless}/RedSpawn.png | Bin Projectiles/{ => Typeless}/Seashell.cs | 2 +- Projectiles/{ => Typeless}/Seashell.png | Bin .../{ => Typeless}/SkyFlareFriendly.cs | 2 +- .../{ => Typeless}/SkyFlareFriendly.png | Bin Projectiles/{ => Typeless}/SparkInfernal.cs | 2 +- Projectiles/{ => Typeless}/SparkInfernal.png | Bin Projectiles/{ => Typeless}/StandingFire.cs | 2 +- .../StandingFire.png} | Bin .../{ => Typeless}/StickyFeatherAero.cs | 2 +- .../{ => Typeless}/StickyFeatherAero.png | Bin Projectiles/{ => Typeless}/StormBolt.cs | 2 +- Projectiles/{ => Typeless}/StormBolt.png | Bin Projectiles/{ => Typeless}/TarraEnergy.cs | 2 +- Projectiles/Typeless/TarraEnergy.png | Bin 0 -> 136 bytes .../TheDeadlyMicrobeProjectile.png | Bin Projectiles/{ => Typeless}/TrueBattleSpawn.cs | 2 +- .../{ => Typeless}/TrueBattleSpawn.png | Bin .../{ => Typeless}/VanquisherArrow2.cs | 2 +- .../{ => Typeless}/VanquisherArrow2.png | Bin Projectiles/{ => Typeless}/XerocBlast.cs | 2 +- Projectiles/{ => Typeless}/XerocBlast.png | Bin Projectiles/{ => Typeless}/XerocBubble.cs | 2 +- Projectiles/{ => Typeless}/XerocBubble.png | Bin Projectiles/{ => Typeless}/XerocFire.cs | 2 +- Projectiles/Typeless/XerocFire.png | Bin 0 -> 136 bytes Projectiles/{ => Typeless}/XerocOrb.cs | 2 +- Projectiles/{ => Typeless}/XerocOrb.png | Bin Projectiles/{ => Typeless}/XerocStar.cs | 2 +- Projectiles/{ => Typeless}/XerocStar.png | Bin Projectiles/Vehemence.png | Bin 770 -> 0 bytes Projectiles/WaterSpearFriendly.png | Bin 3172 -> 0 bytes Projectiles/YharimsCrystal.png | Bin 1617 -> 0 bytes Sounds/Custom/AdrenalineBurnout1.cs | 18 + Sounds/Custom/AdrenalineBurnout1.wav | Bin 0 -> 66888 bytes Sounds/Custom/AdrenalineBurnout2.cs | 18 + Sounds/Custom/AdrenalineBurnout2.wav | Bin 0 -> 71068 bytes Sounds/Custom/BazookaRocket.cs | 34 +- Sounds/Custom/DevilMaskBreak.cs | 36 +- Sounds/Custom/FullAdrenaline.cs | 34 +- Sounds/Custom/FullRage.cs | 34 +- Sounds/Custom/RogueStealth.cs | 18 + Sounds/Custom/RogueStealth.wav | Bin 0 -> 74890 bytes Sounds/Custom/SilvaActivation.cs | 18 + Sounds/Custom/SilvaActivation.wav | Bin 0 -> 424676 bytes Sounds/Custom/SilvaDispel.cs | 18 + Sounds/Custom/SilvaDispel.wav | Bin 0 -> 381332 bytes Sounds/Item/BazookaFull.cs | 36 +- Sounds/Item/ClamImpact.cs | 18 + Sounds/Item/ClamImpact.wav | Bin 0 -> 87028 bytes Sounds/Item/Hydra.cs | 36 +- Sounds/Item/Magnum.cs | 36 +- Sounds/Item/TankCannon.cs | 19 + Sounds/Item/TankCannon.wav | Bin 0 -> 510652 bytes Tiles/Astral/AstralChestLocked.cs | 235 + Tiles/Astral/AstralChestLocked.png | Bin 0 -> 2292 bytes Tiles/Astral/AstralChestLocked_Highlight.png | Bin 0 -> 1251 bytes Tiles/BlueCandle.cs | 55 + Tiles/BlueCandle.png | Bin 0 -> 793 bytes Tiles/BossTrophy.png | Bin 22844 -> 14461 bytes Tiles/CalamityGlobalTile.cs | 1127 +- Tiles/ChaosCandle.cs | 65 + Tiles/ChaosCandle.png | Bin 0 -> 550 bytes Tiles/ChaoticBrick.png | Bin 2443 -> 4479 bytes Tiles/ChaoticBrickWall.png | Bin 0 -> 6022 bytes Tiles/ChaoticOre.png | Bin 14193 -> 24001 bytes Tiles/CosmiliteBasin.cs | 202 +- Tiles/CosmiliteSconce.cs | 176 +- Tiles/EutrophicSand.cs | 36 - Tiles/EutrophicSand.png | Bin 20156 -> 0 bytes Tiles/LumenylCrystals.cs | 105 +- Tiles/LumenylCrystals.png | Bin 5034 -> 3226 bytes Tiles/MonsterBanner.cs | 714 + Tiles/MonsterBanner.png | Bin 0 -> 51606 bytes Tiles/PinkCandle.cs | 55 + Tiles/PinkCandle.png | Bin 0 -> 809 bytes Tiles/PurpleCandle.cs | 55 + Tiles/PurpleCandle.png | Bin 0 -> 297 bytes Tiles/SeaPrism.cs | 41 - Tiles/SeaPrism.png | Bin 23107 -> 0 bytes Tiles/SunkenSea/BrainCoral.cs | 57 + Tiles/SunkenSea/BrainCoral.png | Bin 0 -> 1094 bytes Tiles/SunkenSea/EutrophicSand.cs | 38 + Tiles/SunkenSea/EutrophicSand.png | Bin 0 -> 21062 bytes Tiles/SunkenSea/FanCoral.cs | 44 + Tiles/SunkenSea/FanCoral.png | Bin 0 -> 2639 bytes Tiles/SunkenSea/Navystone.cs | 94 + Tiles/SunkenSea/Navystone.png | Bin 0 -> 21962 bytes Tiles/SunkenSea/SeaAnemone.cs | 52 + Tiles/SunkenSea/SeaAnemone.png | Bin 0 -> 3162 bytes Tiles/SunkenSea/SeaPrism.cs | 95 + Tiles/SunkenSea/SeaPrism.png | Bin 0 -> 19201 bytes Tiles/SunkenSea/SeaPrismCrystals.cs | 82 + Tiles/SunkenSea/SeaPrismCrystals.png | Bin 0 -> 4064 bytes Tiles/SunkenSea/SmallBrainCoral.cs | 57 + Tiles/SunkenSea/SmallBrainCoral.png | Bin 0 -> 667 bytes Tiles/SunkenSea/SmallTubeCoral.cs | 37 + Tiles/SunkenSea/SmallTubeCoral.png | Bin 0 -> 756 bytes Tiles/SunkenSea/SunkenSeaStalactite.cs | 50 + Tiles/SunkenSea/SunkenSeaStalactite.png | Bin 0 -> 2107 bytes Tiles/SunkenSea/TableCoral.cs | 43 + Tiles/SunkenSea/TableCoral.png | Bin 0 -> 1533 bytes Tiles/SunkenSea/TubeCoral.cs | 44 + Tiles/SunkenSea/TubeCoral.png | Bin 0 -> 957 bytes Tiles/Tenebris.cs | 2 +- Tiles/TranquilityCandle.cs | 65 + Tiles/TranquilityCandle.png | Bin 0 -> 718 bytes Tiles/ViperVines.cs | 28 +- Tiles/Voidstone.cs | 29 +- Tiles/YellowCandle.cs | 72 + Tiles/YellowCandle.png | Bin 0 -> 712 bytes UI/BossHealthBarManager.cs | 10 +- UIHandler.cs | 42 +- Walls/EutrophicSandWall.cs | 19 + Walls/EutrophicSandWall.png | Bin 0 -> 11853 bytes Walls/NavystoneWall.cs | 42 + Walls/NavystoneWall.png | Bin 0 -> 12132 bytes Waters/GreatSeaWater.png | Bin 8193 -> 0 bytes Waters/GreatSeaWater_Block.png | Bin 567 -> 0 bytes Waters/GreatSeaWaterflow.png | Bin 1902 -> 0 bytes .../{GreatSeaWater.cs => SunkenSeaWater.cs} | 10 +- Waters/SunkenSeaWater.png | Bin 0 -> 8205 bytes Waters/SunkenSeaWater_Block.png | Bin 0 -> 552 bytes ...tSeaWaterflow.cs => SunkenSeaWaterflow.cs} | 2 +- Waters/SunkenSeaWaterflow.png | Bin 0 -> 1905 bytes WeakReferenceSupport.cs | 63 + World/Planets/MainPlanet.cs | 7 +- World/Planets/Planetoid.cs | 22 +- World/SunkenSea.cs | 610 + build.txt | 3 +- description.txt | 4 +- 3410 files changed, 77976 insertions(+), 55558 deletions(-) create mode 100644 Buffs/Amidias/AmidiasBlessing.cs create mode 100644 Buffs/Amidias/AmidiasBlessing.png create mode 100644 Buffs/Amidias/HermitCrab.cs create mode 100644 Buffs/Amidias/HermitCrab.png create mode 100644 Buffs/Amidias/SnapClamDebuff.cs create mode 100644 Buffs/Amidias/SnapClamDebuff.png create mode 100644 Buffs/ChaosCandle.cs create mode 100644 Buffs/ChaosCandle.png create mode 100644 Buffs/DannyDevito.cs create mode 100644 Buffs/DannyDevito.png create mode 100644 Buffs/Fabsol/BlueSpeedCandle.cs create mode 100644 Buffs/Fabsol/BlueSpeedCandle.png create mode 100644 Buffs/Fabsol/PinkHealthCandle.cs create mode 100644 Buffs/Fabsol/PinkHealthCandle.png create mode 100644 Buffs/Fabsol/PurpleDefenseCandle.cs create mode 100644 Buffs/Fabsol/PurpleDefenseCandle.png create mode 100644 Buffs/Fabsol/Trippy.cs create mode 100644 Buffs/Fabsol/Trippy.png create mode 100644 Buffs/Fabsol/YellowDamageCandle.cs create mode 100644 Buffs/Fabsol/YellowDamageCandle.png create mode 100644 Buffs/LethalLavaBurn.cs create mode 100644 Buffs/LethalLavaBurn.png create mode 100644 Buffs/SunkenSea/Clamity.cs create mode 100644 Buffs/SunkenSea/Clamity.png create mode 100644 Buffs/SunkenSea/PearlAura.cs create mode 100644 Buffs/SunkenSea/PearlAura.png create mode 100644 Buffs/SunkenSea/Shellfish.cs create mode 100644 Buffs/SunkenSea/Shellfish.png create mode 100644 Buffs/SunkenSea/ShellfishEating.cs create mode 100644 Buffs/SunkenSea/ShellfishEating.png create mode 100644 Buffs/TranquilityCandle.cs create mode 100644 Buffs/TranquilityCandle.png create mode 100644 CalamityCollision.cs create mode 100644 CalamityLocalization.cs create mode 100644 CalamityRecipes.cs create mode 100644 ExtraTextures/AmidiasBubble.png create mode 100644 ExtraTextures/Chains/ClamCrusherChain.png create mode 100644 ExtraTextures/Chains/UrchinFlailChain.png create mode 100644 Gores/Amidias/Amidias.png create mode 100644 Gores/Amidias/Amidias2.png create mode 100644 Gores/Amidias/Amidias3.png create mode 100644 Gores/Amidias/Amidias4.png create mode 100644 Gores/AquaticScourgeGores/ASBody.png create mode 100644 Gores/AquaticScourgeGores/ASBody2.png create mode 100644 Gores/AquaticScourgeGores/ASBody3.png create mode 100644 Gores/AquaticScourgeGores/ASBody4.png create mode 100644 Gores/AquaticScourgeGores/ASBodyAlt.png create mode 100644 Gores/AquaticScourgeGores/ASBodyAlt2.png create mode 100644 Gores/AquaticScourgeGores/ASBodyAlt3.png create mode 100644 Gores/AquaticScourgeGores/ASHead.png create mode 100644 Gores/AquaticScourgeGores/ASTail.png create mode 100644 Gores/AquaticScourgeGores/ASTail2.png create mode 100644 Gores/AquaticScourgeGores/AquaticParasite1.png create mode 100644 Gores/AquaticScourgeGores/AquaticParasite2.png create mode 100644 Gores/AquaticScourgeGores/AquaticSeekerBody.png create mode 100644 Gores/AquaticScourgeGores/AquaticSeekerHead.png create mode 100644 Gores/AquaticScourgeGores/AquaticSeekerTail.png create mode 100644 Gores/AquaticScourgeGores/AquaticUrchin.png create mode 100644 Gores/AquaticScourgeGores/AquaticUrchin2.png create mode 100644 Gores/AquaticScourgeGores/AquaticUrchin3.png create mode 100644 Gores/BlindedAngler/BlindAnglerGore1.png create mode 100644 Gores/BlindedAngler/BlindAnglerGore2.png create mode 100644 Gores/BlindedAngler/BlindAnglerGore3.png create mode 100644 Gores/BlindedAngler/BlindAnglerGore4.png create mode 100644 Gores/CalamitasGores/Calamitas.png create mode 100644 Gores/CalamitasGores/Calamitas2.png create mode 100644 Gores/CalamitasGores/Calamitas3.png create mode 100644 Gores/CalamitasGores/Calamitas4.png create mode 100644 Gores/CalamitasGores/Calamitas5.png create mode 100644 Gores/CalamitasGores/Calamitas6.png create mode 100644 Gores/CalamitasGores/Cataclysm.png create mode 100644 Gores/CalamitasGores/Cataclysm2.png create mode 100644 Gores/CalamitasGores/Cataclysm3.png create mode 100644 Gores/CalamitasGores/Cataclysm4.png create mode 100644 Gores/CalamitasGores/Cataclysm5.png create mode 100644 Gores/CalamitasGores/Catastrophe.png create mode 100644 Gores/CalamitasGores/Catastrophe2.png create mode 100644 Gores/CalamitasGores/Catastrophe3.png create mode 100644 Gores/CalamitasGores/Catastrophe4.png create mode 100644 Gores/CalamitasGores/Catastrophe5.png create mode 100644 Gores/CalamitasGores/LifeSeeker.png create mode 100644 Gores/CalamitasGores/LifeSeeker2.png create mode 100644 Gores/CalamitasGores/LifeSeeker3.png create mode 100644 Gores/CalamitasGores/SoulSlurper.png create mode 100644 Gores/CalamitasGores/SoulSlurper2.png create mode 100644 Gores/CalamitasGores/SoulSlurper3.png create mode 100644 Gores/CalamitasGores/SoulSlurper4.png create mode 100644 Gores/Clam/Clam1.png create mode 100644 Gores/Clam/Clam2.png create mode 100644 Gores/Clam/Clam3.png create mode 100644 Gores/EutrophicRay/RayGore1.png create mode 100644 Gores/EutrophicRay/RayGore2.png create mode 100644 Gores/EutrophicRay/RayGore3.png create mode 100644 Gores/EutrophicRay/RayGore4.png create mode 100644 Gores/GiantClam/GiantClam1.png create mode 100644 Gores/GiantClam/GiantClam2.png create mode 100644 Gores/GiantClam/GiantClam3.png create mode 100644 Gores/GiantClam/GiantClam4.png create mode 100644 Gores/GiantClam/GiantClam5.png create mode 100644 Gores/HiveMindGores/DankCreeperGore.png create mode 100644 Gores/HiveMindGores/DankCreeperGore2.png create mode 100644 Gores/HiveMindGores/DankCreeperGore3.png create mode 100644 Gores/HiveMindGores/HiveMindGore.png create mode 100644 Gores/HiveMindGores/HiveMindGore2.png create mode 100644 Gores/HiveMindGores/HiveMindGore3.png create mode 100644 Gores/HiveMindGores/HiveMindGore4.png create mode 100644 Gores/HiveMindGores/HiveMindP2Gore.png create mode 100644 Gores/HiveMindGores/HiveMindP2Gore2.png create mode 100644 Gores/HiveMindGores/HiveMindP2Gore3.png create mode 100644 Gores/HiveMindGores/HiveMindP2Gore4.png create mode 100644 Gores/HiveMindGores/HiveMindP2Gore5.png create mode 100644 Gores/HiveMindGores/HiveMindP2Gore6.png rename Gores/{Polt Gore 1.png => Polt.png} (100%) rename Gores/{Polt gore 2.png => Polt2.png} (100%) rename Gores/{Polt gore 3.png => Polt3.png} (100%) rename Gores/{Polt gore 4.png => Polt4.png} (100%) rename Gores/{Polt gore 5.png => Polt5.png} (100%) create mode 100644 Gores/PrismTurtle/PrismTurtleGore1.png create mode 100644 Gores/PrismTurtle/PrismTurtleGore2.png create mode 100644 Gores/PrismTurtle/PrismTurtleGore3.png create mode 100644 Gores/PrismTurtle/PrismTurtleGore4.png create mode 100644 Gores/PrismTurtle/PrismTurtleGore5.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA2.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA3.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA4.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH2.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH3.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH4.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH5.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT2.png create mode 100644 Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT3.png create mode 100644 Gores/ScavengerGores/ScavengerBody.png create mode 100644 Gores/ScavengerGores/ScavengerBody2.png create mode 100644 Gores/ScavengerGores/ScavengerBody3.png create mode 100644 Gores/ScavengerGores/ScavengerBody4.png create mode 100644 Gores/ScavengerGores/ScavengerBody5.png create mode 100644 Gores/ScavengerGores/ScavengerClawLeft.png create mode 100644 Gores/ScavengerGores/ScavengerClawLeft2.png create mode 100644 Gores/ScavengerGores/ScavengerClawLeft3.png create mode 100644 Gores/ScavengerGores/ScavengerClawRight.png create mode 100644 Gores/ScavengerGores/ScavengerClawRight2.png create mode 100644 Gores/ScavengerGores/ScavengerHead.png create mode 100644 Gores/ScavengerGores/ScavengerHead2.png create mode 100644 Gores/ScavengerGores/ScavengerHead3.png create mode 100644 Gores/ScavengerGores/ScavengerLegLeft.png create mode 100644 Gores/ScavengerGores/ScavengerLegLeft2.png create mode 100644 Gores/ScavengerGores/ScavengerLegRight.png create mode 100644 Gores/ScavengerGores/ScavengerLegRight2.png create mode 100644 Gores/SeaFloaty/SeaFloatyGore1.png create mode 100644 Gores/SeaFloaty/SeaFloatyGore2.png create mode 100644 Gores/SeaFloaty/SeaFloatyGore3.png create mode 100644 Gores/SeaSerpent/SeaSerpentGore1.png create mode 100644 Gores/SeaSerpent/SeaSerpentGore2.png create mode 100644 Gores/SeaSerpent/SeaSerpentGore3.png create mode 100644 Gores/SeaSerpent/SeaSerpentGore4.png create mode 100644 Gores/SeaSerpent/SeaSerpentGore5.png create mode 100644 Gores/SirenGores/Siren.png create mode 100644 Gores/SirenGores/Siren2.png create mode 100644 Gores/SirenGores/Siren3.png create mode 100644 Gores/SirenGores/Siren4.png create mode 100644 Gores/SirenGores/Siren5.png create mode 100644 Gores/Viruling.png create mode 100644 Gores/Viruling2.png create mode 100644 Gores/Viruling3.png create mode 100644 Items/Accessories/HadarianWings.cs create mode 100644 Items/Accessories/HadarianWings.png create mode 100644 Items/Accessories/HadarianWings_Wings.png create mode 100644 Items/Amidias/AmidiasTrident.cs create mode 100644 Items/Amidias/AmidiasTrident.png create mode 100644 Items/Amidias/CoralCannon.cs create mode 100644 Items/Amidias/CoralCannon.png create mode 100644 Items/Amidias/MagicalConch.cs create mode 100644 Items/Amidias/MagicalConch.png create mode 100644 Items/Amidias/Shellshooter.cs create mode 100644 Items/Amidias/Shellshooter.png create mode 100644 Items/Amidias/UrchinFlail.cs create mode 100644 Items/Amidias/UrchinFlail.png create mode 100644 Items/Amidias/Waywasher.cs create mode 100644 Items/Amidias/Waywasher.png create mode 100644 Items/Armor/AureusMask.cs create mode 100644 Items/Armor/AureusMask.png create mode 100644 Items/Armor/AureusMask_Head.png create mode 100644 Items/Armor/MolluskShelleggings.cs create mode 100644 Items/Armor/MolluskShelleggings.png create mode 100644 Items/Armor/MolluskShelleggings_Legs.png create mode 100644 Items/Armor/MolluskShellmet.cs create mode 100644 Items/Armor/MolluskShellmet.png create mode 100644 Items/Armor/MolluskShellmet_Head.png create mode 100644 Items/Armor/MolluskShellplate.cs create mode 100644 Items/Armor/MolluskShellplate.png create mode 100644 Items/Armor/MolluskShellplate_Arms.png create mode 100644 Items/Armor/MolluskShellplate_Body.png create mode 100644 Items/Armor/MolluskShellplate_FemaleBody.png create mode 100644 Items/CalamityCustomThrowingDamage/EradicatorGlow.png create mode 100644 Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.cs create mode 100644 Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.png create mode 100644 Items/CalamityCustomThrowingDamage/Prismalline.cs create mode 100644 Items/CalamityCustomThrowingDamage/Prismalline.png create mode 100644 Items/CalamityCustomThrowingDamage/RadiantStar.cs create mode 100644 Items/CalamityCustomThrowingDamage/RadiantStar.png create mode 100644 Items/CalamityCustomThrowingDamage/SandDollar.cs create mode 100644 Items/CalamityCustomThrowingDamage/SandDollar.png create mode 100644 Items/CalamityCustomThrowingDamage/SeafoamBomb.cs create mode 100644 Items/CalamityCustomThrowingDamage/SeafoamBomb.png create mode 100644 Items/CalamityCustomThrowingDamage/ShatteredSun.cs create mode 100644 Items/CalamityCustomThrowingDamage/ShatteredSun.png create mode 100644 Items/CalamityCustomThrowingDamage/SnapClam.cs create mode 100644 Items/CalamityCustomThrowingDamage/SnapClam.png create mode 100644 Items/CalamityCustomThrowingDamage/StellarKnife.cs create mode 100644 Items/CalamityCustomThrowingDamage/StellarKnife.png create mode 100644 Items/FabsolStuff/BlueCandle.cs create mode 100644 Items/FabsolStuff/OddMushroom.cs create mode 100644 Items/FabsolStuff/PinkCandle.cs create mode 100644 Items/FabsolStuff/PurpleCandle.cs create mode 100644 Items/FabsolStuff/YellowCandle.cs create mode 100644 Items/HadarianMembrane.cs create mode 100644 Items/HadarianMembrane.png create mode 100644 Items/Patreon/ApronOfAffection.cs create mode 100644 Items/Patreon/ApronOfAffection.png create mode 100644 Items/Patreon/ApronOfAffection_Arms.png create mode 100644 Items/Patreon/ApronOfAffection_Body.png create mode 100644 Items/Patreon/Ataraxia.cs create mode 100644 Items/Patreon/Ataraxia.png create mode 100644 Items/Patreon/FaceMelter.cs create mode 100644 Items/Patreon/FaceMelter.png create mode 100644 Items/Patreon/HandheldTank.cs create mode 100644 Items/Patreon/HandheldTank.png create mode 100644 Items/Patreon/Keelhaul.cs create mode 100644 Items/Patreon/Keelhaul.png create mode 100644 Items/Patreon/NormalityRelocator.cs create mode 100644 Items/Patreon/NormalityRelocator.png create mode 100644 Items/Patreon/ThePack.cs create mode 100644 Items/Patreon/ThePack.png create mode 100644 Items/Placeables/AstralChest.cs create mode 100644 Items/Placeables/AstralChest.png create mode 100644 Items/Placeables/Banners/AeroSlimeBanner.cs create mode 100644 Items/Placeables/Banners/AeroSlimeBanner.png create mode 100644 Items/Placeables/Banners/AmberCrawlerBanner.cs create mode 100644 Items/Placeables/Banners/AmberCrawlerBanner.png create mode 100644 Items/Placeables/Banners/AmethystCrawlerBanner.cs create mode 100644 Items/Placeables/Banners/AmethystCrawlerBanner.png create mode 100644 Items/Placeables/Banners/AngryDogBanner.cs create mode 100644 Items/Placeables/Banners/AngryDogBanner.png create mode 100644 Items/Placeables/Banners/AquaticAberrationBanner.cs create mode 100644 Items/Placeables/Banners/AquaticAberrationBanner.png create mode 100644 Items/Placeables/Banners/AquaticParasiteBanner.cs create mode 100644 Items/Placeables/Banners/AquaticParasiteBanner.png create mode 100644 Items/Placeables/Banners/AquaticSeekerBanner.cs create mode 100644 Items/Placeables/Banners/AquaticSeekerBanner.png create mode 100644 Items/Placeables/Banners/AquaticUrchinBanner.cs create mode 100644 Items/Placeables/Banners/AquaticUrchinBanner.png create mode 100644 Items/Placeables/Banners/AriesBanner.cs create mode 100644 Items/Placeables/Banners/AriesBanner.png create mode 100644 Items/Placeables/Banners/ArmoredDiggerBanner.cs create mode 100644 Items/Placeables/Banners/ArmoredDiggerBanner.png create mode 100644 Items/Placeables/Banners/AstralProbeBanner.cs create mode 100644 Items/Placeables/Banners/AstralProbeBanner.png create mode 100644 Items/Placeables/Banners/AstralSlimeBanner.cs create mode 100644 Items/Placeables/Banners/AstralSlimeBanner.png create mode 100644 Items/Placeables/Banners/AstralachneaBanner.cs create mode 100644 Items/Placeables/Banners/AstralachneaBanner.png create mode 100644 Items/Placeables/Banners/AtlasBanner.cs create mode 100644 Items/Placeables/Banners/AtlasBanner.png create mode 100644 Items/Placeables/Banners/BOHLDOHRBanner.cs create mode 100644 Items/Placeables/Banners/BOHLDOHRBanner.png create mode 100644 Items/Placeables/Banners/BigSightseerBanner.cs create mode 100644 Items/Placeables/Banners/BigSightseerBanner.png create mode 100644 Items/Placeables/Banners/BlightedEyeBanner.cs create mode 100644 Items/Placeables/Banners/BlightedEyeBanner.png create mode 100644 Items/Placeables/Banners/BlindedAnglerBanner.cs create mode 100644 Items/Placeables/Banners/BlindedAnglerBanner.png create mode 100644 Items/Placeables/Banners/BloatfishBanner.cs create mode 100644 Items/Placeables/Banners/BloatfishBanner.png create mode 100644 Items/Placeables/Banners/BloomSlimeBanner.cs create mode 100644 Items/Placeables/Banners/BloomSlimeBanner.png create mode 100644 Items/Placeables/Banners/BobbitWormBanner.cs create mode 100644 Items/Placeables/Banners/BobbitWormBanner.png create mode 100644 Items/Placeables/Banners/BoxJellyfishBanner.cs create mode 100644 Items/Placeables/Banners/BoxJellyfishBanner.png create mode 100644 Items/Placeables/Banners/CalamityEyeBanner.cs create mode 100644 Items/Placeables/Banners/CalamityEyeBanner.png create mode 100644 Items/Placeables/Banners/CatfishBanner.cs create mode 100644 Items/Placeables/Banners/CatfishBanner.png create mode 100644 Items/Placeables/Banners/ChaoticPufferBanner.cs create mode 100644 Items/Placeables/Banners/ChaoticPufferBanner.png create mode 100644 Items/Placeables/Banners/CharredSlimeBanner.cs create mode 100644 Items/Placeables/Banners/CharredSlimeBanner.png create mode 100644 Items/Placeables/Banners/ClamBanner.cs create mode 100644 Items/Placeables/Banners/ClamBanner.png create mode 100644 Items/Placeables/Banners/CloudElementalBanner.cs create mode 100644 Items/Placeables/Banners/CloudElementalBanner.png create mode 100644 Items/Placeables/Banners/CnidrionBanner.cs create mode 100644 Items/Placeables/Banners/CnidrionBanner.png create mode 100644 Items/Placeables/Banners/ColossalSquidBanner.cs create mode 100644 Items/Placeables/Banners/ColossalSquidBanner.png create mode 100644 Items/Placeables/Banners/CosmicElementalBanner.cs create mode 100644 Items/Placeables/Banners/CosmicElementalBanner.png create mode 100644 Items/Placeables/Banners/CrimulanBlightSlimeBanner.cs create mode 100644 Items/Placeables/Banners/CrimulanBlightSlimeBanner.png create mode 100644 Items/Placeables/Banners/CryoSlimeBanner.cs create mode 100644 Items/Placeables/Banners/CryoSlimeBanner.png create mode 100644 Items/Placeables/Banners/CryonBanner.cs create mode 100644 Items/Placeables/Banners/CryonBanner.png create mode 100644 Items/Placeables/Banners/CrystalCrawlerBanner.cs create mode 100644 Items/Placeables/Banners/CrystalCrawlerBanner.png create mode 100644 Items/Placeables/Banners/CultistAssassinBanner.cs create mode 100644 Items/Placeables/Banners/CultistAssassinBanner.png create mode 100644 Items/Placeables/Banners/CuttlefishBanner.cs create mode 100644 Items/Placeables/Banners/CuttlefishBanner.png create mode 100644 Items/Placeables/Banners/DespairStoneBanner.cs create mode 100644 Items/Placeables/Banners/DespairStoneBanner.png create mode 100644 Items/Placeables/Banners/DevilFishBanner.cs create mode 100644 Items/Placeables/Banners/DevilFishBanner.png create mode 100644 Items/Placeables/Banners/DiamondCrawlerBanner.cs create mode 100644 Items/Placeables/Banners/DiamondCrawlerBanner.png create mode 100644 Items/Placeables/Banners/EarthElementalBanner.cs create mode 100644 Items/Placeables/Banners/EarthElementalBanner.png create mode 100644 Items/Placeables/Banners/EbonianBlightSlimeBanner.cs create mode 100644 Items/Placeables/Banners/EbonianBlightSlimeBanner.png create mode 100644 Items/Placeables/Banners/EidolistBanner.cs create mode 100644 Items/Placeables/Banners/EidolistBanner.png create mode 100644 Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs create mode 100644 Items/Placeables/Banners/EidolonWyrmJuvenileBanner.png create mode 100644 Items/Placeables/Banners/EmeraldCrawlerBanner.cs create mode 100644 Items/Placeables/Banners/EmeraldCrawlerBanner.png create mode 100644 Items/Placeables/Banners/EutrophicRayBanner.cs create mode 100644 Items/Placeables/Banners/EutrophicRayBanner.png create mode 100644 Items/Placeables/Banners/FlounderBanner.cs create mode 100644 Items/Placeables/Banners/FlounderBanner.png create mode 100644 Items/Placeables/Banners/FrogfishBanner.cs create mode 100644 Items/Placeables/Banners/FrogfishBanner.png create mode 100644 Items/Placeables/Banners/FusionFeederBanner.cs create mode 100644 Items/Placeables/Banners/FusionFeederBanner.png create mode 100644 Items/Placeables/Banners/GhostBellBanner.cs create mode 100644 Items/Placeables/Banners/GhostBellBanner.png create mode 100644 Items/Placeables/Banners/GhostBellSmallBanner.cs create mode 100644 Items/Placeables/Banners/GhostBellSmallBanner.png create mode 100644 Items/Placeables/Banners/GiantClamBanner.cs create mode 100644 Items/Placeables/Banners/GiantClamBanner.png create mode 100644 Items/Placeables/Banners/GiantSquidBanner.cs create mode 100644 Items/Placeables/Banners/GiantSquidBanner.png create mode 100644 Items/Placeables/Banners/GnasherBanner.cs create mode 100644 Items/Placeables/Banners/GnasherBanner.png create mode 100644 Items/Placeables/Banners/GreatSandSharkBanner.cs create mode 100644 Items/Placeables/Banners/GreatSandSharkBanner.png create mode 100644 Items/Placeables/Banners/GulperEelBanner.cs create mode 100644 Items/Placeables/Banners/GulperEelBanner.png create mode 100644 Items/Placeables/Banners/HadarianBanner.cs create mode 100644 Items/Placeables/Banners/HadarianBanner.png create mode 100644 Items/Placeables/Banners/HeatSpiritBanner.cs create mode 100644 Items/Placeables/Banners/HeatSpiritBanner.png create mode 100644 Items/Placeables/Banners/HiveBanner.cs create mode 100644 Items/Placeables/Banners/HiveBanner.png create mode 100644 Items/Placeables/Banners/IceClasperBanner.cs create mode 100644 Items/Placeables/Banners/IceClasperBanner.png create mode 100644 Items/Placeables/Banners/ImpiousImmolatorBanner.cs create mode 100644 Items/Placeables/Banners/ImpiousImmolatorBanner.png create mode 100644 Items/Placeables/Banners/IrradiatedSlimeBanner.cs create mode 100644 Items/Placeables/Banners/IrradiatedSlimeBanner.png create mode 100644 Items/Placeables/Banners/LaserfishBanner.cs create mode 100644 Items/Placeables/Banners/LaserfishBanner.png create mode 100644 Items/Placeables/Banners/LuminousCorvinaBanner.cs create mode 100644 Items/Placeables/Banners/LuminousCorvinaBanner.png create mode 100644 Items/Placeables/Banners/MantisBanner.cs create mode 100644 Items/Placeables/Banners/MantisBanner.png create mode 100644 Items/Placeables/Banners/MantisShrimpBanner.cs create mode 100644 Items/Placeables/Banners/MantisShrimpBanner.png create mode 100644 Items/Placeables/Banners/MaulerBanner.cs create mode 100644 Items/Placeables/Banners/MaulerBanner.png create mode 100644 Items/Placeables/Banners/MelterBanner.cs create mode 100644 Items/Placeables/Banners/MelterBanner.png create mode 100644 Items/Placeables/Banners/MirageJellyBanner.cs create mode 100644 Items/Placeables/Banners/MirageJellyBanner.png create mode 100644 Items/Placeables/Banners/MorayEelBanner.cs create mode 100644 Items/Placeables/Banners/MorayEelBanner.png create mode 100644 Items/Placeables/Banners/NovaBanner.cs create mode 100644 Items/Placeables/Banners/NovaBanner.png create mode 100644 Items/Placeables/Banners/OarfishBanner.cs create mode 100644 Items/Placeables/Banners/OarfishBanner.png create mode 100644 Items/Placeables/Banners/OverloadedSoldierBanner.cs create mode 100644 Items/Placeables/Banners/OverloadedSoldierBanner.png create mode 100644 Items/Placeables/Banners/ParaseaBanner.cs create mode 100644 Items/Placeables/Banners/ParaseaBanner.png create mode 100644 Items/Placeables/Banners/PerennialSlimeBanner.cs create mode 100644 Items/Placeables/Banners/PerennialSlimeBanner.png create mode 100644 Items/Placeables/Banners/PestilentSlimeBanner.cs create mode 100644 Items/Placeables/Banners/PestilentSlimeBanner.png create mode 100644 Items/Placeables/Banners/PhantomDebrisBanner.cs create mode 100644 Items/Placeables/Banners/PhantomDebrisBanner.png create mode 100644 Items/Placeables/Banners/PhantomSpiritBanner.cs create mode 100644 Items/Placeables/Banners/PhantomSpiritBanner.png create mode 100644 Items/Placeables/Banners/PitbullBanner.cs create mode 100644 Items/Placeables/Banners/PitbullBanner.png create mode 100644 Items/Placeables/Banners/PlagueChargerBanner.cs create mode 100644 Items/Placeables/Banners/PlagueChargerBanner.png create mode 100644 Items/Placeables/Banners/PlaguebringerBanner.cs create mode 100644 Items/Placeables/Banners/PlaguebringerBanner.png create mode 100644 Items/Placeables/Banners/PlagueshellBanner.cs create mode 100644 Items/Placeables/Banners/PlagueshellBanner.png create mode 100644 Items/Placeables/Banners/PrismTurtleBanner.cs create mode 100644 Items/Placeables/Banners/PrismTurtleBanner.png create mode 100644 Items/Placeables/Banners/ProfanedEnergyBanner.cs create mode 100644 Items/Placeables/Banners/ProfanedEnergyBanner.png create mode 100644 Items/Placeables/Banners/ReaperSharkBanner.cs create mode 100644 Items/Placeables/Banners/ReaperSharkBanner.png create mode 100644 Items/Placeables/Banners/RubyCrawlerBanner.cs create mode 100644 Items/Placeables/Banners/RubyCrawlerBanner.png create mode 100644 Items/Placeables/Banners/SandTortoiseBanner.cs create mode 100644 Items/Placeables/Banners/SandTortoiseBanner.png create mode 100644 Items/Placeables/Banners/SapphireCrawlerBanner.cs create mode 100644 Items/Placeables/Banners/SapphireCrawlerBanner.png create mode 100644 Items/Placeables/Banners/ScornEaterBanner.cs create mode 100644 Items/Placeables/Banners/ScornEaterBanner.png create mode 100644 Items/Placeables/Banners/ScryllarBanner.cs create mode 100644 Items/Placeables/Banners/ScryllarBanner.png create mode 100644 Items/Placeables/Banners/SeaFloatyBanner.cs create mode 100644 Items/Placeables/Banners/SeaFloatyBanner.png create mode 100644 Items/Placeables/Banners/SeaMinnowBanner.cs create mode 100644 Items/Placeables/Banners/SeaMinnowBanner.png create mode 100644 Items/Placeables/Banners/SeaSerpentBanner.cs create mode 100644 Items/Placeables/Banners/SeaSerpentBanner.png create mode 100644 Items/Placeables/Banners/SeaUrchinBanner.cs create mode 100644 Items/Placeables/Banners/SeaUrchinBanner.png create mode 100644 Items/Placeables/Banners/ShockstormShuttleBanner.cs create mode 100644 Items/Placeables/Banners/ShockstormShuttleBanner.png create mode 100644 Items/Placeables/Banners/SmallSightseerBanner.cs create mode 100644 Items/Placeables/Banners/SmallSightseerBanner.png create mode 100644 Items/Placeables/Banners/SoulSluperBanner.cs create mode 100644 Items/Placeables/Banners/SoulSlurperBanner.png create mode 100644 Items/Placeables/Banners/StellarCulexBanner.cs create mode 100644 Items/Placeables/Banners/StellarCulexBanner.png create mode 100644 Items/Placeables/Banners/StormlionBanner.cs create mode 100644 Items/Placeables/Banners/StormlionBanner.png create mode 100644 Items/Placeables/Banners/SunBatBanner.cs create mode 100644 Items/Placeables/Banners/SunBatBanner.png create mode 100644 Items/Placeables/Banners/SunskaterBanner.cs create mode 100644 Items/Placeables/Banners/SunskaterBanner.png create mode 100644 Items/Placeables/Banners/TopazCrawlerBanner.cs create mode 100644 Items/Placeables/Banners/TopazCrawlerBanner.png create mode 100644 Items/Placeables/Banners/ToxicMinnowBanner.cs create mode 100644 Items/Placeables/Banners/ToxicMinnowBanner.png create mode 100644 Items/Placeables/Banners/TrasherBanner.cs create mode 100644 Items/Placeables/Banners/TrasherBanner.png create mode 100644 Items/Placeables/Banners/ViperfishBanner.cs create mode 100644 Items/Placeables/Banners/ViperfishBanner.png create mode 100644 Items/Placeables/Banners/VirulingBanner.cs create mode 100644 Items/Placeables/Banners/VirulingBanner.png create mode 100644 Items/Placeables/Banners/WulfrumDroneBanner.cs create mode 100644 Items/Placeables/Banners/WulfrumDroneBanner.png create mode 100644 Items/Placeables/Banners/WulfrumSlimeBanner.cs create mode 100644 Items/Placeables/Banners/WulfrumSlimeBanner.png create mode 100644 Items/Placeables/ChaosCandle.cs create mode 100644 Items/Placeables/ChaosCandle.png create mode 100644 Items/Placeables/EutrophicSand.cs create mode 100644 Items/Placeables/EutrophicSand.png create mode 100644 Items/Placeables/EutrophicSandWall.cs create mode 100644 Items/Placeables/EutrophicSandWall.png create mode 100644 Items/Placeables/Navystone.cs create mode 100644 Items/Placeables/Navystone.png create mode 100644 Items/Placeables/NavystoneWall.cs create mode 100644 Items/Placeables/NavystoneWall.png create mode 100644 Items/Placeables/PrismShard.cs create mode 100644 Items/Placeables/PrismShard.png create mode 100644 Items/Placeables/SeaPrism.cs create mode 100644 Items/Placeables/TranquilityCandle.cs create mode 100644 Items/Placeables/TranquilityCandle.png create mode 100644 Items/SunkenSea/AmidiasPendant.cs create mode 100644 Items/SunkenSea/AmidiasPendant.png create mode 100644 Items/SunkenSea/GiantPearl.cs create mode 100644 Items/SunkenSea/GiantPearl.png create mode 100644 Items/SunkenSea/MolluskHusk.cs create mode 100644 Items/SunkenSea/MolluskHusk.png create mode 100644 Items/TheDevourerofGods/DevourerofGodsBagGlow.png create mode 100644 Items/TrashmanTrashcan.cs create mode 100644 Items/Weapons/DevourerofGods/DeathhailStaffGlow.png create mode 100644 Items/Weapons/DevourerofGods/DeathwindGlow.png create mode 100644 Items/Weapons/DevourerofGods/EradicatorMeleeGlow.png create mode 100644 Items/Weapons/DevourerofGods/ExcelsusGlow.png create mode 100644 Items/Weapons/FiniteUse/ExplosiveShells.cs create mode 100644 Items/Weapons/FiniteUse/ExplosiveShells.png create mode 100644 Items/Weapons/FiniteUse/Hydra.cs create mode 100644 Items/Weapons/FiniteUse/Hydra.png create mode 100644 Items/Weapons/Onyxia.cs create mode 100644 Items/Weapons/Onyxia.png create mode 100644 Items/Weapons/SunkenSea/AquamarineStaff.cs create mode 100644 Items/Weapons/SunkenSea/AquamarineStaff.png create mode 100644 Items/Weapons/SunkenSea/AquashardShotgun.cs create mode 100644 Items/Weapons/SunkenSea/AquashardShotgun.png create mode 100644 Items/Weapons/SunkenSea/ClamCrusher.cs create mode 100644 Items/Weapons/SunkenSea/ClamCrusher.png create mode 100644 Items/Weapons/SunkenSea/ClamorRifle.cs create mode 100644 Items/Weapons/SunkenSea/ClamorRifle.png create mode 100644 Items/Weapons/SunkenSea/EutrophicScimitar.cs create mode 100644 Items/Weapons/SunkenSea/EutrophicScimitar.png create mode 100644 Items/Weapons/SunkenSea/EutrophicShank.cs create mode 100644 Items/Weapons/SunkenSea/EutrophicShank.png create mode 100644 Items/Weapons/SunkenSea/Poseidon.cs create mode 100644 Items/Weapons/SunkenSea/Poseidon.png create mode 100644 Items/Weapons/SunkenSea/SeashineSword.cs create mode 100644 Items/Weapons/SunkenSea/SeashineSword.png create mode 100644 Items/Weapons/SunkenSea/Serpentine.cs create mode 100644 Items/Weapons/SunkenSea/Serpentine.png create mode 100644 Items/Weapons/SunkenSea/ShellfishStaff.cs create mode 100644 Items/Weapons/SunkenSea/ShellfishStaff.png create mode 100644 Items/Weapons/SunkenSea/Whirlpool.cs create mode 100644 Items/Weapons/SunkenSea/Whirlpool.png create mode 100644 NPCs/Leviathan/SirenAltSinging.png create mode 100644 NPCs/Leviathan/SirenAltStabbing.png create mode 100644 NPCs/Leviathan/SirenSinging.png create mode 100644 NPCs/Leviathan/SirenStabbing.png create mode 100644 NPCs/SunkenSeaNPCs/BlindedAngler.cs create mode 100644 NPCs/SunkenSeaNPCs/BlindedAngler.png create mode 100644 NPCs/SunkenSeaNPCs/BlindedAnglerGlow.png create mode 100644 NPCs/SunkenSeaNPCs/Clam.cs create mode 100644 NPCs/SunkenSeaNPCs/Clam.png create mode 100644 NPCs/SunkenSeaNPCs/EutrophicRay.cs create mode 100644 NPCs/SunkenSeaNPCs/EutrophicRay.png create mode 100644 NPCs/SunkenSeaNPCs/EutrophicRayGlow.png create mode 100644 NPCs/SunkenSeaNPCs/GhostBell.cs create mode 100644 NPCs/SunkenSeaNPCs/GhostBell.png create mode 100644 NPCs/SunkenSeaNPCs/GhostBellGlow.png create mode 100644 NPCs/SunkenSeaNPCs/GhostBellSmall.cs create mode 100644 NPCs/SunkenSeaNPCs/GhostBellSmall.png create mode 100644 NPCs/SunkenSeaNPCs/GhostBellSmallGlow.png create mode 100644 NPCs/SunkenSeaNPCs/GiantClam.cs create mode 100644 NPCs/SunkenSeaNPCs/GiantClam.png create mode 100644 NPCs/SunkenSeaNPCs/GiantClamGlow.png create mode 100644 NPCs/SunkenSeaNPCs/PrismTurtle.cs create mode 100644 NPCs/SunkenSeaNPCs/PrismTurtle.png create mode 100644 NPCs/SunkenSeaNPCs/PrismTurtleGlow.png create mode 100644 NPCs/SunkenSeaNPCs/SeaFloaty.cs create mode 100644 NPCs/SunkenSeaNPCs/SeaFloaty.png create mode 100644 NPCs/SunkenSeaNPCs/SeaMinnow.cs create mode 100644 NPCs/SunkenSeaNPCs/SeaMinnow.png create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent1.cs create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent1.png create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent2.cs create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent2.png create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent3.cs create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent3.png create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent4.cs create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent4.png create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent5.cs create mode 100644 NPCs/SunkenSeaNPCs/SeaSerpent5.png create mode 100644 NPCs/TownNPCs/SEAHOE.cs create mode 100644 NPCs/TownNPCs/SEAHOE.png create mode 100644 NPCs/TownNPCs/SEAHOE_Head.png create mode 100644 Projectiles/Amidias/AmidiasTridentProj.cs create mode 100644 Projectiles/Amidias/AmidiasTridentProj.png create mode 100644 Projectiles/Amidias/AmidiasWhirlpool.cs create mode 100644 Projectiles/Amidias/AmidiasWhirlpool.png create mode 100644 Projectiles/Amidias/BigCoral.cs create mode 100644 Projectiles/Amidias/BigCoral.png create mode 100644 Projectiles/Amidias/HermitCrab.cs create mode 100644 Projectiles/Amidias/HermitCrab.png create mode 100644 Projectiles/Amidias/SandDollarProj.cs create mode 100644 Projectiles/Amidias/SandDollarProj.png create mode 100644 Projectiles/Amidias/Shell.cs create mode 100644 Projectiles/Amidias/Shell.png create mode 100644 Projectiles/Amidias/SmallCoral.cs create mode 100644 Projectiles/Amidias/SmallCoral.png create mode 100644 Projectiles/Amidias/SnapClamProj.cs create mode 100644 Projectiles/Amidias/SnapClamProj.png create mode 100644 Projectiles/Amidias/UrchinBall.cs create mode 100644 Projectiles/Amidias/UrchinBall.png create mode 100644 Projectiles/Amidias/UrchinBallSpike.cs create mode 100644 Projectiles/Amidias/UrchinBallSpike.png create mode 100644 Projectiles/Amidias/WaywasherProj.cs rename Projectiles/{FrostBoltProjectile.png => Amidias/WaywasherProj.png} (100%) create mode 100644 Projectiles/Astral/HeavenfallenEnergy.cs rename Projectiles/{AccelerationBullet.png => Astral/HeavenfallenEnergy.png} (100%) create mode 100644 Projectiles/Astral/HeavenfallenStardisk.cs create mode 100644 Projectiles/Astral/HeavenfallenStardisk.png create mode 100644 Projectiles/Astral/RadiantExplosion.cs create mode 100644 Projectiles/Astral/RadiantExplosion.png create mode 100644 Projectiles/Astral/RadiantStar.cs create mode 100644 Projectiles/Astral/RadiantStar.png create mode 100644 Projectiles/Astral/RadiantStar2.cs create mode 100644 Projectiles/Astral/RadiantStar2.png create mode 100644 Projectiles/Astral/StellarKnife.cs create mode 100644 Projectiles/Astral/StellarKnife.png delete mode 100644 Projectiles/AtlantisSpear.png delete mode 100644 Projectiles/AtlantisSpear2.png delete mode 100644 Projectiles/BallisticPoisonBomb.png delete mode 100644 Projectiles/BallisticPoisonBombSpike.png delete mode 100644 Projectiles/Boss/BrimDust.cs delete mode 100644 Projectiles/Boss/BrimDust.png rename Projectiles/{ => Boss}/BrimstoneBall2.cs (92%) rename Projectiles/{ => Boss}/BrimstoneBall2.png (100%) rename Projectiles/{ => Boss}/BrimstoneShot.cs (93%) rename Projectiles/{ => Boss}/BrimstoneShot.png (100%) rename Projectiles/{ => Boss}/FlareExplosionHuge.cs (89%) rename Projectiles/{ => Boss}/FlareExplosionHuge.png (100%) rename Projectiles/{ => Boss}/HealOrbProv.cs (96%) rename Projectiles/{ => Boss}/HealOrbProv.png (100%) rename Projectiles/{ => Boss}/HellfireExplosion.cs (93%) rename Projectiles/{ => Boss}/HellfireExplosion.png (100%) rename Projectiles/{ => Boss}/HiveBombExplosionHostile.cs (86%) rename Projectiles/{ => Boss}/HiveBombExplosionHostile.png (100%) create mode 100644 Projectiles/Boss/PhantomGhostShot.cs create mode 100644 Projectiles/Boss/PhantomGhostShot.png create mode 100644 Projectiles/Boss/PhantomHookShot.cs create mode 100644 Projectiles/Boss/PhantomHookShot.png rename Projectiles/{ => Boss}/PhoenixFire.cs (91%) rename Projectiles/{ => Boss}/PhoenixFire.png (100%) rename Projectiles/{ => Boss}/PlagueExplosion.cs (93%) rename Projectiles/{ => Boss}/PlagueExplosion.png (100%) rename Projectiles/{ => Boss}/SkyFlare.cs (95%) rename Projectiles/{ => Boss}/SkyFlare.png (100%) create mode 100644 Projectiles/Boss/desktop.ini delete mode 100644 Projectiles/BrimstoneLaserSummon.cs delete mode 100644 Projectiles/Celestus.png delete mode 100644 Projectiles/ChaosSpirit.png delete mode 100644 Projectiles/ChaotrixProjectile.png delete mode 100644 Projectiles/Crystalline.png delete mode 100644 Projectiles/Crystalline2.png rename Projectiles/{ => Enemy}/AstralShot.cs (96%) rename Projectiles/{ => Enemy}/AstralShot.png (100%) rename Projectiles/{ => Enemy}/CrimsonSpike.cs (94%) rename Projectiles/{ => Enemy}/CrimsonSpike.png (100%) rename Projectiles/{ => Enemy}/EarthRockBig.cs (97%) rename Projectiles/{ => Enemy}/EarthRockBig.png (100%) rename Projectiles/{ => Enemy}/EarthRockSmall.cs (97%) rename Projectiles/{ => Enemy}/EarthRockSmall.png (100%) rename Projectiles/{ => Enemy}/FlameBurstHostile.cs (96%) rename Projectiles/{ => Enemy}/FlameBurstHostile.png (100%) rename Projectiles/{ => Enemy}/HorsWaterBlast.cs (96%) rename Projectiles/{ => Enemy}/HorsWaterBlast.png (100%) rename Projectiles/{ => Enemy}/InkBomb.cs (96%) rename Projectiles/{ => Enemy}/InkBomb.png (100%) rename Projectiles/{ => Enemy}/InkPoisonCloud.cs (93%) rename Projectiles/{ => Enemy}/InkPoisonCloud.png (100%) rename Projectiles/{ => Enemy}/InkPoisonCloud2.cs (93%) rename Projectiles/{ => Enemy}/InkPoisonCloud2.png (100%) rename Projectiles/{ => Enemy}/InkPoisonCloud3.cs (93%) rename Projectiles/{ => Enemy}/InkPoisonCloud3.png (100%) rename Projectiles/{ => Enemy}/LavaChunk.cs (96%) rename Projectiles/{ => Enemy}/LavaChunk.png (100%) rename Projectiles/{ => Enemy}/MantisRing.cs (96%) rename Projectiles/{ => Enemy}/MantisRing.png (100%) rename Projectiles/{ => Enemy}/PufferExplosion.cs (95%) rename Projectiles/{ => Enemy}/PufferExplosion.png (100%) rename Projectiles/{ => Enemy}/StormMarkHostile.cs (96%) rename Projectiles/{ => Enemy}/StormMarkHostile.png (100%) rename Projectiles/{ => Enemy}/SulphuricAcidCannon.cs (96%) rename Projectiles/{ => Enemy}/SulphuricAcidCannon.png (100%) rename Projectiles/{ => Enemy}/SulphuricAcidMist.cs (95%) rename Projectiles/{ => Enemy}/SulphuricAcidMist.png (100%) rename Projectiles/{ => Enemy}/TornadoHostile.cs (96%) rename Projectiles/{ => Enemy}/TornadoHostile.png (100%) rename Projectiles/{ => Enemy}/ToxicMinnowCloud.cs (94%) rename Projectiles/{ => Enemy}/ToxicMinnowCloud.png (100%) delete mode 100644 Projectiles/EradicatorMeleeProjectile.png delete mode 100644 Projectiles/EradicatorProjectile.png delete mode 100644 Projectiles/ExsanguinationLanceProjectile.png delete mode 100644 Projectiles/FlameScytheProjectile.png delete mode 100644 Projectiles/FlameScytheProjectileMelee.png delete mode 100644 Projectiles/GleamingBolt.cs delete mode 100644 Projectiles/GleamingBolt2.cs rename Projectiles/{ => Healing}/AtaxiaHealOrb.cs (96%) rename Projectiles/{ => Healing}/AtaxiaHealOrb.png (100%) rename Projectiles/{ => Healing}/AuricOrb.cs (95%) rename Projectiles/{ => Healing}/AuricOrb.png (100%) rename Projectiles/{ => Healing}/BurntSienna.cs (96%) rename Projectiles/{ => Healing}/BurntSienna.png (100%) rename Projectiles/{ => Healing}/CactusHealOrb.cs (96%) rename Projectiles/{ => Healing}/CactusHealOrb.png (100%) rename Projectiles/{ => Healing}/EarthHealOrb.cs (96%) rename Projectiles/{ => Healing}/EarthHealOrb.png (100%) rename Projectiles/{ => Healing}/EssenceFlame.cs (96%) rename Projectiles/{ => Healing}/EssenceFlame.png (100%) rename Projectiles/{ => Healing}/Exoheal.cs (96%) rename Projectiles/{ => Healing}/Exoheal.png (100%) rename Projectiles/{ => Healing}/FungalHeal.cs (97%) rename Projectiles/{ => Healing}/FungalHeal.png (100%) rename Projectiles/{ => Healing}/GodSlayerHealOrb.cs (96%) rename Projectiles/{ => Healing}/GodSlayerHealOrb.png (100%) rename Projectiles/{ => Healing}/PhoenixHeal.cs (96%) rename Projectiles/{ => Healing}/PhoenixHeal.png (100%) rename Projectiles/{ => Healing}/RainHeal.cs (96%) rename Projectiles/{ => Healing}/RainHeal.png (100%) rename Projectiles/{ => Healing}/RoyalHeal.cs (96%) rename Projectiles/{ => Healing}/RoyalHeal.png (100%) rename Projectiles/{ => Healing}/SilvaOrb.cs (95%) rename Projectiles/{ => Healing}/SilvaOrb.png (100%) rename Projectiles/{ => Healing}/Terracotta.cs (96%) rename Projectiles/{ => Healing}/Terracotta.png (100%) rename Projectiles/{ => Healing}/TransfusionTrail.cs (96%) rename Projectiles/{ => Healing}/TransfusionTrail.png (100%) rename Projectiles/{ => Healing}/XerocHealOrb.cs (96%) rename Projectiles/{ => Healing}/XerocHealOrb.png (100%) delete mode 100644 Projectiles/IceBeam.cs delete mode 100644 Projectiles/IceBeam.png delete mode 100644 Projectiles/LaceratorProjectile.png delete mode 100644 Projectiles/LaserFountain.cs rename Projectiles/{ => Magic}/AbyssBall.cs (96%) rename Projectiles/{ => Magic}/AbyssBall.png (100%) rename Projectiles/{ => Magic}/AetherBeam.cs (96%) rename Projectiles/{ => Magic}/AetherBeam.png (100%) rename Projectiles/{ => Magic}/Ancient.cs (96%) rename Projectiles/{ => Magic}/Ancient.png (100%) rename Projectiles/{ => Magic}/Ancient2.cs (95%) rename Projectiles/{ => Magic}/Ancient2.png (100%) rename Projectiles/{ => Magic}/ApothChloro.cs (97%) rename Projectiles/{ => Magic}/ApothChloro.png (100%) rename Projectiles/{ => Magic}/ApothJaws.cs (95%) rename Projectiles/{ => Magic}/ApothJaws.png (100%) rename Projectiles/{ => Magic}/ApothMark.cs (96%) rename Projectiles/{ => Magic}/ApothMark.png (100%) rename Projectiles/{ => Magic}/Asteroid.cs (96%) rename Projectiles/{ => Magic}/Asteroid.png (100%) rename Projectiles/{ => Magic}/AsteroidMolten.cs (97%) rename Projectiles/{ => Magic}/AsteroidMolten.png (100%) rename Projectiles/{ => Magic}/AstralCrystal.cs (99%) rename Projectiles/{ => Magic}/AstralCrystal.png (100%) rename Projectiles/{ => Magic}/AstralCrystalInvisibleExplosion.cs (95%) rename Projectiles/{ => Magic}/AstralCrystalInvisibleExplosion.png (100%) rename Projectiles/{ => Magic}/AstralStarMagic.cs (96%) rename Projectiles/{ => Magic}/AstralStarMagic.png (100%) rename Projectiles/{ => Magic}/AtlantisSpear.cs (91%) create mode 100644 Projectiles/Magic/AtlantisSpear.png rename Projectiles/{ => Magic}/AtlantisSpear2.cs (88%) create mode 100644 Projectiles/Magic/AtlantisSpear2.png rename Projectiles/{ => Magic}/AuraRain.cs (59%) rename Projectiles/{ => Magic}/AuraRain.png (100%) rename Projectiles/{ => Magic}/BeamingBolt.cs (95%) rename Projectiles/{ => Magic}/BeamingBolt.png (100%) rename Projectiles/{ => Magic}/BeamingBolt2.cs (95%) rename Projectiles/{ => Magic}/BeamingBolt2.png (100%) rename Projectiles/{ => Magic}/BigBeamofDeath.cs (95%) rename Projectiles/{ => Magic}/BigBeamofDeath.png (100%) rename Projectiles/{ => Magic}/BigBeamofDeath2.cs (93%) rename Projectiles/{ => Magic}/BigBeamofDeath2.png (100%) rename Projectiles/{ => Magic}/BlackAnurian.cs (95%) rename Projectiles/{ => Magic}/BlackAnurian.png (100%) rename Projectiles/{ => Magic}/BlackAnurianPlankton.cs (96%) rename Projectiles/{ => Magic}/BlackAnurianPlankton.png (100%) rename Projectiles/{ => Magic}/BloodBeam.cs (95%) rename Projectiles/{ => Magic}/BloodBeam.png (100%) rename Projectiles/{ => Magic}/BloodBlast.cs (95%) rename Projectiles/{ => Magic}/BloodBlast.png (100%) rename Projectiles/{ => Magic}/BloodBolt.cs (93%) rename Projectiles/{ => Magic}/BloodBolt.png (100%) rename Projectiles/{ => Magic}/BloodOrb.cs (95%) rename Projectiles/{ => Magic}/BloodOrb.png (100%) rename Projectiles/{ => Magic}/BloodRay.cs (94%) rename Projectiles/{ => Magic}/BloodRay.png (100%) rename Projectiles/{ => Magic}/BlueBubble.cs (94%) rename Projectiles/{ => Magic}/BlueBubble.png (100%) rename Projectiles/{ => Magic}/BlushieStaffProj.cs (95%) rename Projectiles/{ => Magic}/BlushieStaffProj.png (100%) rename Projectiles/{ => Magic}/BrimstoneBeam.cs (95%) rename Projectiles/{ => Magic}/BrimstoneBeam.png (100%) rename Projectiles/{ => Magic}/BrimstoneBeam2.cs (95%) rename Projectiles/{ => Magic}/BrimstoneBeam2.png (100%) rename Projectiles/{ => Magic}/BrimstoneBeam3.cs (95%) rename Projectiles/{ => Magic}/BrimstoneBeam3.png (100%) rename Projectiles/{ => Magic}/BrimstoneBeam4.cs (95%) rename Projectiles/{ => Magic}/BrimstoneBeam4.png (100%) rename Projectiles/{ => Magic}/BrimstoneBeam5.cs (94%) rename Projectiles/{ => Magic}/BrimstoneBeam5.png (100%) rename Projectiles/{ => Magic}/BrimstoneFireball.cs (96%) rename Projectiles/{ => Magic}/BrimstoneFireball.png (100%) rename Projectiles/{ => Magic}/BrimstoneHellfireballFriendly.cs (95%) rename Projectiles/{ => Magic}/BrimstoneHellfireballFriendly.png (100%) rename Projectiles/{ => Magic}/BrimstoneHellfireballFriendly2.cs (95%) rename Projectiles/{ => Magic}/BrimstoneHellfireballFriendly2.png (100%) rename Projectiles/{ => Magic}/BrimstoneHomer.cs (94%) rename Projectiles/{ => Magic}/BrimstoneHomer.png (100%) rename Projectiles/{ => Magic}/BrimstoneTentacle.cs (95%) rename Projectiles/{ => Magic}/BrimstoneTentacle.png (100%) rename Projectiles/{ => Magic}/Climax.cs (96%) rename Projectiles/{ => Magic}/Climax.png (100%) rename Projectiles/{ => Magic}/ClimaxBeam.cs (93%) rename Projectiles/{ => Magic}/ClimaxBeam.png (100%) rename Projectiles/{ => Magic}/CoralSpike.cs (92%) rename Projectiles/{ => Magic}/CoralSpike.png (100%) rename Projectiles/{ => Magic}/CosmicTentacle.cs (95%) rename Projectiles/{ => Magic}/CosmicTentacle.png (100%) rename Projectiles/{ => Magic}/DemonicPitchfork.cs (95%) rename Projectiles/{ => Magic}/DemonicPitchfork.png (100%) rename Projectiles/{ => Magic}/DustProjectile.cs (95%) rename Projectiles/{ => Magic}/DustProjectile.png (100%) rename Projectiles/{ => Magic}/EidolicWail.cs (95%) rename Projectiles/{ => Magic}/EidolicWail.png (100%) rename Projectiles/{ => Magic}/EldritchTentacle.cs (95%) rename Projectiles/{ => Magic}/EldritchTentacle.png (100%) rename Projectiles/{ => Magic}/ElementBolt.cs (94%) rename Projectiles/{ => Magic}/ElementBolt.png (100%) rename Projectiles/{ => Magic}/ElementBolt2.cs (93%) rename Projectiles/{ => Magic}/ElementBolt2.png (100%) rename Projectiles/{ => Magic}/ElementOrb.cs (95%) rename Projectiles/{ => Magic}/ElementOrb.png (100%) rename Projectiles/{ => Magic}/ElementOrb2.cs (95%) rename Projectiles/{ => Magic}/ElementOrb2.png (100%) rename Projectiles/{ => Magic}/ElementRay.cs (94%) rename Projectiles/{ => Magic}/ElementRay.png (100%) rename Projectiles/{ => Magic}/ElementTentacle.cs (95%) rename Projectiles/{ => Magic}/ElementTentacle.png (100%) rename Projectiles/{ => Magic}/EvergladeSprayProjectile.cs (95%) rename Projectiles/{ => Magic}/EvergladeSprayProjectile.png (100%) rename Projectiles/{ => Magic}/FabBolt.cs (93%) rename Projectiles/{ => Magic}/FabBolt.png (100%) rename Projectiles/{ => Magic}/FabOrb.cs (95%) rename Projectiles/{ => Magic}/FabOrb.png (100%) rename Projectiles/{ => Magic}/FabRay.cs (95%) rename Projectiles/{ => Magic}/FabRay.png (100%) rename Projectiles/{ => Magic}/FatesReveal.cs (74%) rename Projectiles/{ => Magic}/FatesReveal.png (100%) rename Projectiles/{ => Magic}/FlameBeamTip.cs (95%) rename Projectiles/{ => Magic}/FlameBeamTip.png (100%) rename Projectiles/{ => Magic}/FlameBeamTip2.cs (95%) rename Projectiles/{ => Magic}/FlameBeamTip2.png (100%) rename Projectiles/{ => Magic}/FlamePillar.cs (95%) rename Projectiles/{ => Magic}/FlamePillar.png (100%) rename Projectiles/{ => Magic}/FlamingPumpkin.cs (90%) rename Projectiles/{ => Magic}/FlamingPumpkin.png (100%) rename Projectiles/{ => Magic}/FlareBoltProjectile.cs (96%) rename Projectiles/{ => Magic}/FlareBoltProjectile.png (100%) rename Projectiles/{ => Magic}/ForbiddenAxeBlade.cs (94%) rename Projectiles/{ => Magic}/ForbiddenAxeBlade.png (100%) rename Projectiles/{ => Magic}/ForbiddenSunProjectile.cs (95%) rename Projectiles/{ => Magic}/ForbiddenSunProjectile.png (100%) rename Projectiles/{ => Magic}/ForbiddenSunburst.cs (95%) rename Projectiles/{ => Magic}/ForbiddenSunburst.png (100%) rename Projectiles/{ => Magic}/FrigidflashBoltProjectile.cs (96%) rename Projectiles/{ => Magic}/FrigidflashBoltProjectile.png (100%) rename Projectiles/{ => Magic}/FrostBoltProjectile.cs (96%) create mode 100644 Projectiles/Magic/FrostBoltProjectile.png rename Projectiles/{ => Magic}/GammaLaser.cs (94%) rename Projectiles/{ => Magic}/GammaLaser.png (100%) rename Projectiles/{ => Magic}/GhastlyBlast.cs (97%) rename Projectiles/{ => Magic}/GhastlyBlast.png (100%) rename Projectiles/{ => Magic}/GhastlyExplosion.cs (96%) rename Projectiles/{ => Magic}/GhastlyExplosion.png (100%) rename Projectiles/{ => Magic}/GhastlyExplosionShard.cs (95%) rename Projectiles/{ => Magic}/GhastlyExplosionShard.png (100%) rename Projectiles/{ => Magic}/GhastlySubBlast.cs (95%) rename Projectiles/{ => Magic}/GhastlySubBlast.png (100%) rename Projectiles/{ => Magic}/GhastlyVisage.cs (96%) rename Projectiles/{ => Magic}/GhastlyVisage.png (100%) create mode 100644 Projectiles/Magic/GleamingBolt.cs rename Projectiles/{ => Magic}/GleamingBolt.png (100%) create mode 100644 Projectiles/Magic/GleamingBolt2.cs rename Projectiles/{ => Magic}/GleamingBolt2.png (100%) rename Projectiles/{ => Magic}/GraniteEnergy.cs (95%) rename Projectiles/{ => Magic}/GraniteEnergy.png (100%) rename Projectiles/{ => Magic}/GranitePulse.cs (96%) rename Projectiles/{ => Magic}/GranitePulse.png (100%) rename Projectiles/{ => Magic}/HellfireExplosionFriendly.cs (95%) rename Projectiles/{ => Magic}/HellfireExplosionFriendly.png (100%) rename Projectiles/{ => Magic}/HellfireExplosionFriendly2.cs (95%) rename Projectiles/{ => Magic}/HellfireExplosionFriendly2.png (100%) rename Projectiles/{ => Magic}/HolyFlame.cs (95%) rename Projectiles/{ => Magic}/HolyFlame.png (100%) rename Projectiles/{ => Magic}/HolyLaser.cs (94%) rename Projectiles/{ => Magic}/HolyLaser.png (100%) rename Projectiles/{ => Magic}/IceCluster.cs (95%) rename Projectiles/{ => Magic}/IceCluster.png (100%) rename Projectiles/{ => Magic}/IceSpike.cs (96%) rename Projectiles/{ => Magic}/IceSpike.png (100%) rename Projectiles/{ => Magic}/InfernadoFriendly.cs (96%) rename Projectiles/{ => Magic}/InfernadoFriendly.png (100%) rename Projectiles/{ => Magic}/InfernadoMarkFriendly.cs (95%) rename Projectiles/{ => Magic}/InfernadoMarkFriendly.png (100%) rename Projectiles/{ => Magic}/InfernalBlade.cs (97%) rename Projectiles/{ => Magic}/InfernalBlade.png (100%) rename Projectiles/{ => Magic}/InfernalBlade2.cs (97%) rename Projectiles/{ => Magic}/InfernalBlade2.png (100%) rename Projectiles/{ => Magic}/IonBlast.cs (95%) rename Projectiles/{ => Magic}/IonBlast.png (100%) rename Projectiles/{ => Magic}/IonExplosion.cs (86%) rename Projectiles/{ => Magic}/IonExplosion.png (100%) rename Projectiles/{ => Magic}/LiquidBlade.cs (97%) rename Projectiles/{ => Magic}/LiquidBlade.png (100%) rename Projectiles/{ => Magic}/LiquidBlade2.cs (97%) rename Projectiles/{ => Magic}/LiquidBlade2.png (100%) rename Projectiles/{ => Magic}/MagicNebulaShot.cs (73%) rename Projectiles/{ => Magic}/MagicNebulaShot.png (100%) rename Projectiles/{ => Magic}/MagnaBlast.cs (94%) rename Projectiles/{ => Magic}/MagnaBlast.png (100%) rename Projectiles/{ => Magic}/MagneticBeam.cs (93%) rename Projectiles/{ => Magic}/MagneticBeam.png (100%) rename Projectiles/{ => Magic}/MagneticOrb.cs (96%) rename Projectiles/{ => Magic}/MagneticOrb.png (100%) rename Projectiles/{ => Magic}/ManaBolt.cs (96%) rename Projectiles/{ => Magic}/ManaBolt.png (100%) rename Projectiles/{ => Magic}/ManaBoltSmall.cs (94%) rename Projectiles/{ => Magic}/ManaBoltSmall.png (100%) rename Projectiles/{ => Magic}/ManaBoltSmall2.cs (94%) rename Projectiles/{ => Magic}/ManaBoltSmall2.png (100%) rename Projectiles/{ => Magic}/NightBolt.cs (93%) rename Projectiles/{ => Magic}/NightBolt.png (100%) rename Projectiles/{ => Magic}/NightOrb.cs (95%) rename Projectiles/{ => Magic}/NightOrb.png (100%) rename Projectiles/{ => Magic}/NightRay.cs (94%) rename Projectiles/{ => Magic}/NightRay.png (100%) rename Projectiles/{ => Magic}/NuclearFuryProjectile.cs (95%) rename Projectiles/{ => Magic}/NuclearFuryProjectile.png (100%) rename Projectiles/{ => Magic}/ParticleBeamofDoom.cs (93%) rename Projectiles/{ => Magic}/ParticleBeamofDoom.png (100%) rename Projectiles/{ => Magic}/PhantasmalFury.cs (96%) rename Projectiles/{ => Magic}/PhantasmalFury.png (100%) rename Projectiles/{ => Magic}/Phantom.cs (95%) rename Projectiles/{ => Magic}/Phantom.png (100%) rename Projectiles/{ => Magic}/PlagueFang.cs (94%) rename Projectiles/{ => Magic}/PlagueFang.png (100%) rename Projectiles/{ => Magic}/PlasmaBolt.cs (93%) rename Projectiles/{ => Magic}/PlasmaBolt.png (100%) rename Projectiles/{ => Magic}/PlasmaRay.cs (96%) rename Projectiles/{ => Magic}/PlasmaRay.png (100%) rename Projectiles/{ => Magic}/PlasmaRay2.cs (95%) rename Projectiles/{ => Magic}/PlasmaRay2.png (100%) rename Projectiles/{ => Magic}/PlasmaShot.cs (95%) rename Projectiles/{ => Magic}/PlasmaShot.png (100%) rename Projectiles/{ => Magic}/Purge.cs (96%) rename Projectiles/{ => Magic}/Purge.png (100%) rename Projectiles/{ => Magic}/PurgeLaser.cs (96%) rename Projectiles/{ => Magic}/PurgeLaser.png (100%) rename Projectiles/{ => Magic}/RougeSlashLarge.cs (95%) rename Projectiles/{ => Magic}/RougeSlashLarge.png (100%) rename Projectiles/{ => Magic}/RougeSlashMedium.cs (95%) rename Projectiles/{ => Magic}/RougeSlashMedium.png (100%) rename Projectiles/{ => Magic}/RougeSlashSmall.cs (95%) rename Projectiles/{ => Magic}/RougeSlashSmall.png (100%) rename Projectiles/{ => Magic}/SHPB.cs (96%) rename Projectiles/{ => Magic}/SHPB.png (100%) rename Projectiles/{ => Magic}/SHPExplosion.cs (95%) rename Projectiles/{ => Magic}/SHPExplosion.png (100%) rename Projectiles/{ => Magic}/SHPL.cs (96%) rename Projectiles/{ => Magic}/SHPL.png (100%) rename Projectiles/{ => Magic}/SanguineFlare.cs (94%) rename Projectiles/{ => Magic}/SanguineFlare.png (100%) rename Projectiles/{ => Magic}/SeethingDischargeBrimstoneBarrage.cs (95%) rename Projectiles/{ => Magic}/SeethingDischargeBrimstoneBarrage.png (100%) rename Projectiles/{ => Magic}/SeethingDischargeBrimstoneHellblast.cs (95%) rename Projectiles/{ => Magic}/SeethingDischargeBrimstoneHellblast.png (100%) rename Projectiles/{ => Magic}/ShadeNimbus.cs (94%) rename Projectiles/{ => Magic}/ShadeNimbus.png (100%) rename Projectiles/{ => Magic}/ShadeNimbusCloud.cs (94%) rename Projectiles/{ => Magic}/ShadeNimbusCloud.png (100%) rename Projectiles/{ => Magic}/ShadecrystalProjectile.cs (94%) rename Projectiles/{ => Magic}/ShadecrystalProjectile.png (100%) rename Projectiles/{ => Magic}/Shaderain.cs (93%) rename Projectiles/{ => Magic}/Shaderain.png (100%) rename Projectiles/{ => Magic}/Shadowbolt.cs (95%) rename Projectiles/{ => Magic}/Shadowbolt.png (100%) rename Projectiles/{ => Magic}/ShiftingSands.cs (97%) rename Projectiles/{ => Magic}/ShiftingSands.png (100%) rename Projectiles/{ => Magic}/SirensSong.cs (70%) rename Projectiles/{ => Magic}/SirensSong.png (73%) rename Projectiles/{ => Magic}/Snowflake.cs (95%) rename Projectiles/{ => Magic}/Snowflake.png (100%) rename Projectiles/{ => Magic}/SolarBeam2.cs (94%) rename Projectiles/{ => Magic}/SolarBeam2.png (100%) rename Projectiles/{ => Magic}/SoulPiercer.cs (95%) rename Projectiles/{ => Magic}/SoulPiercer.png (100%) rename Projectiles/{ => Magic}/SoulPiercerBolt.cs (94%) rename Projectiles/{ => Magic}/SoulPiercerBolt.png (100%) rename Projectiles/{ => Magic}/SoulPiercerOrb.cs (95%) rename Projectiles/{ => Magic}/SoulPiercerOrb.png (100%) rename Projectiles/{ => Magic}/SpiritFlameCurse.cs (95%) rename Projectiles/{ => Magic}/SpiritFlameCurse.png (100%) rename Projectiles/{ => Magic}/Starblast.cs (95%) rename Projectiles/{ => Magic}/Starblast.png (100%) rename Projectiles/{ => Magic}/StarfleetMK2.cs (97%) rename Projectiles/{ => Magic}/StarfleetMK2.png (100%) rename Projectiles/{ => Magic}/StickyFeather.cs (95%) rename Projectiles/{ => Magic}/StickyFeather.png (100%) rename Projectiles/{ => Magic}/SupremeDustFlakProjectile.cs (95%) rename Projectiles/{ => Magic}/SupremeDustFlakProjectile.png (100%) rename Projectiles/{ => Magic}/SupremeDustProjectile.cs (96%) rename Projectiles/{ => Magic}/SupremeDustProjectile.png (100%) rename Projectiles/{ => Magic}/T1000.cs (96%) rename Projectiles/{ => Magic}/T1000.png (100%) rename Projectiles/{ => Magic}/T1000Laser.cs (96%) rename Projectiles/{ => Magic}/T1000Laser.png (100%) rename Projectiles/{ => Magic}/TearsofHeavenProjectile.cs (96%) rename Projectiles/{ => Magic}/TearsofHeavenProjectile.png (100%) rename Projectiles/{ => Magic}/TerraBolt.cs (94%) rename Projectiles/{ => Magic}/TerraBolt.png (100%) rename Projectiles/{ => Magic}/TerraBolt2.cs (93%) rename Projectiles/{ => Magic}/TerraBolt2.png (100%) rename Projectiles/{ => Magic}/TerraOrb.cs (95%) rename Projectiles/{ => Magic}/TerraOrb.png (100%) rename Projectiles/{ => Magic}/TerraOrb2.cs (95%) rename Projectiles/{ => Magic}/TerraOrb2.png (100%) rename Projectiles/{ => Magic}/TerraRay.cs (94%) rename Projectiles/{ => Magic}/TerraRay.png (100%) rename Projectiles/{ => Magic}/TradewindsProjectile.cs (94%) rename Projectiles/{ => Magic}/TradewindsProjectile.png (100%) rename Projectiles/{ => Magic}/UberBubble.cs (95%) rename Projectiles/{ => Magic}/UberBubble.png (100%) rename Projectiles/{ => Magic}/UndinesRetribution.cs (97%) rename Projectiles/{ => Magic}/UndinesRetribution.png (100%) rename Projectiles/{ => Magic}/Vehemence.cs (75%) create mode 100644 Projectiles/Magic/Vehemence.png rename Projectiles/{ => Magic}/VenusianBolt.cs (95%) rename Projectiles/{ => Magic}/VenusianBolt.png (100%) rename Projectiles/{ => Magic}/VenusianExplosion.cs (95%) rename Projectiles/{ => Magic}/VenusianExplosion.png (100%) rename Projectiles/{ => Magic}/VenusianFlame.cs (95%) rename Projectiles/{ => Magic}/VenusianFlame.png (100%) rename Projectiles/{ => Magic}/Viscera.cs (86%) rename Projectiles/{ => Magic}/Viscera.png (100%) rename Projectiles/{ => Magic}/VividBolt.cs (94%) rename Projectiles/{ => Magic}/VividBolt.png (100%) rename Projectiles/{ => Magic}/VividClarity.cs (95%) rename Projectiles/{ => Magic}/VividClarity.png (100%) rename Projectiles/{ => Magic}/VividOrb.cs (95%) rename Projectiles/{ => Magic}/VividOrb.png (100%) rename Projectiles/{ => Magic}/Vortex.cs (95%) rename Projectiles/{ => Magic}/Vortex.png (100%) rename Projectiles/{ => Magic}/WaterStream.cs (95%) rename Projectiles/{ => Magic}/WaterStream.png (100%) rename Projectiles/{ => Magic}/WaterStream2.cs (95%) rename Projectiles/{ => Magic}/WaterStream2.png (100%) rename Projectiles/{ => Magic}/WhiteFlame.cs (95%) rename Projectiles/{ => Magic}/WhiteFlame.png (100%) rename Projectiles/{ => Magic}/WhiteFlame2.cs (92%) rename Projectiles/{ => Magic}/WhiteFlame2.png (100%) rename Projectiles/{ => Magic}/WintersFury.cs (94%) rename Projectiles/{ => Magic}/WintersFury.png (100%) rename Projectiles/{ => Magic}/WulfrumBolt.cs (95%) rename Projectiles/{ => Magic}/WulfrumBolt.png (100%) rename Projectiles/{ => Magic}/YharimsCrystal.cs (95%) create mode 100644 Projectiles/Magic/YharimsCrystal.png rename Projectiles/{ => Magic}/YharimsCrystalBeam.cs (97%) rename Projectiles/{ => Magic}/YharimsCrystalBeam.png (100%) delete mode 100644 Projectiles/MagicIceBeam.cs delete mode 100644 Projectiles/MagicIceBeam.png delete mode 100644 Projectiles/MechwormBody.png delete mode 100644 Projectiles/MechwormBody2.png delete mode 100644 Projectiles/MechwormHead.png delete mode 100644 Projectiles/MechwormTail.png rename Projectiles/{ => Melee}/AccretionDisk2Melee.cs (95%) rename Projectiles/{ => Melee}/AccretionDisk2Melee.png (100%) rename Projectiles/{ => Melee}/AccretionDiskMelee.cs (96%) rename Projectiles/{ => Melee}/AccretionDiskMelee.png (100%) rename Projectiles/{ => Melee}/AegisBeam.cs (95%) rename Projectiles/{ => Melee}/AegisBeam.png (100%) rename Projectiles/{ => Melee}/AegisBlast.cs (95%) rename Projectiles/{ => Melee}/AegisBlast.png (100%) rename Projectiles/{ => Melee}/AegisBlast2.cs (95%) rename Projectiles/{ => Melee}/AegisBlast2.png (100%) rename Projectiles/{ => Melee}/AegisFlame.cs (96%) rename Projectiles/{ => Melee}/AegisFlame.png (100%) rename Projectiles/{ => Melee}/Aftershock.cs (90%) rename Projectiles/{ => Melee}/Aftershock.png (100%) rename Projectiles/{ => Melee}/BalefulHarvesterProjectile.cs (94%) rename Projectiles/{ => Melee}/BalefulHarvesterProjectile.png (100%) rename Projectiles/{ => Melee}/BallOFugu.cs (96%) rename Projectiles/{ => Melee}/BallOFugu.png (100%) rename Projectiles/{ => Melee}/BansheeHookBoom.cs (96%) rename Projectiles/{ => Melee}/BansheeHookBoom.png (100%) rename Projectiles/{ => Melee}/BansheeHookScythe.cs (94%) rename Projectiles/{ => Melee}/BansheeHookScythe.png (100%) rename Projectiles/{ => Melee}/BiomeOrb.cs (95%) rename Projectiles/{ => Melee}/BiomeOrb.png (100%) rename Projectiles/{ => Melee}/BlazingPhantomBlade.cs (96%) rename Projectiles/{ => Melee}/BlazingPhantomBlade.png (100%) rename Projectiles/{ => Melee}/Blood.cs (94%) rename Projectiles/{ => Melee}/Blood.png (100%) rename Projectiles/{ => Melee}/BloodBall.cs (96%) rename Projectiles/{ => Melee}/BloodBall.png (100%) rename Projectiles/{ => Melee}/BloodScythe.cs (67%) rename Projectiles/{ => Melee}/BloodScythe.png (100%) rename Projectiles/{ => Melee}/BloodyBlade.cs (95%) rename Projectiles/{ => Melee}/BloodyBlade.png (100%) rename Projectiles/{ => Melee}/BlueAura.cs (93%) rename Projectiles/{ => Melee}/BlueAura.png (100%) rename Projectiles/{ => Melee}/Brimblast.cs (95%) rename Projectiles/{ => Melee}/Brimblast.png (100%) rename Projectiles/{ => Melee}/BrimlanceHellfireExplosion.cs (95%) rename Projectiles/{ => Melee}/BrimlanceHellfireExplosion.png (100%) rename Projectiles/{ => Melee}/BrimlanceStandingFire.cs (96%) rename Projectiles/{ => Melee}/BrimlanceStandingFire.png (100%) rename Projectiles/{ => Melee}/Brimlash.cs (95%) rename Projectiles/{ => Melee}/Brimlash.png (100%) rename Projectiles/{ => Melee}/Brimlash2.cs (96%) rename Projectiles/{ => Melee}/Brimlash2.png (100%) rename Projectiles/{ => Melee}/BrimstoneBoom.cs (95%) rename Projectiles/{ => Melee}/BrimstoneBoom.png (100%) rename Projectiles/{ => Melee}/BrimstoneLaserFriendly.cs (77%) rename Projectiles/{ => Melee}/BrimstoneLaserFriendly.png (100%) rename Projectiles/{ => Melee}/BrinySpout.cs (96%) rename Projectiles/{ => Melee}/BrinySpout.png (100%) rename Projectiles/{ => Melee}/BrinyTyphoonBubble.cs (96%) rename Projectiles/{ => Melee}/BrinyTyphoonBubble.png (100%) rename Projectiles/{ => Melee}/BurningMeteor.cs (96%) rename Projectiles/{ => Melee}/BurningMeteor.png (100%) rename Projectiles/{ => Melee}/CalamityAura.cs (92%) rename Projectiles/{ => Melee}/CalamityAura.png (100%) rename Projectiles/{ => Melee}/CalamityAuraType2.cs (92%) rename Projectiles/{ => Melee}/CalamityAuraType2.png (100%) rename Projectiles/{ => Melee}/CalamityAuraType3.cs (92%) rename Projectiles/{ => Melee}/CalamityAuraType3.png (100%) rename Projectiles/{ => Melee}/ChaosFlameLarge.cs (94%) rename Projectiles/{ => Melee}/ChaosFlameLarge.png (100%) rename Projectiles/{ => Melee}/ChaosFlameMedium.cs (94%) rename Projectiles/{ => Melee}/ChaosFlameMedium.png (100%) rename Projectiles/{ => Melee}/ChaosFlameSmall.cs (94%) rename Projectiles/{ => Melee}/ChaosFlameSmall.png (100%) rename Projectiles/{ => Melee}/CosmicBolt.cs (94%) rename Projectiles/{ => Melee}/CosmicBolt.png (100%) rename Projectiles/{ => Melee}/CosmicDischarge.cs (97%) rename Projectiles/{ => Melee}/CosmicDischarge.png (100%) rename Projectiles/{ => Melee}/CosmicIceBurst.cs (97%) rename Projectiles/{ => Melee}/CosmicIceBurst.png (100%) rename Projectiles/{ => Melee}/CosmicOrb.cs (96%) rename Projectiles/{ => Melee}/CosmicOrb.png (100%) rename Projectiles/{ => Melee}/CosmicSpiritBomb1.cs (95%) rename Projectiles/{ => Melee}/CosmicSpiritBomb1.png (100%) rename Projectiles/{ => Melee}/CosmicSpiritBomb2.cs (95%) rename Projectiles/{ => Melee}/CosmicSpiritBomb2.png (100%) rename Projectiles/{ => Melee}/CosmicSpiritBomb3.cs (95%) rename Projectiles/{ => Melee}/CosmicSpiritBomb3.png (100%) rename Projectiles/{ => Melee}/CrystalDust.cs (93%) rename Projectiles/{ => Melee}/CrystalDust.png (100%) rename Projectiles/{ => Melee}/DNA.cs (95%) rename Projectiles/{ => Melee}/DNA.png (100%) rename Projectiles/{ => Melee}/DNA2.cs (95%) rename Projectiles/{ => Melee}/DNA2.png (100%) rename Projectiles/{ => Melee}/Dark.cs (92%) rename Projectiles/{ => Melee}/Dark.png (100%) rename Projectiles/{ => Melee}/DarkBall.cs (96%) rename Projectiles/{ => Melee}/DarkBall.png (100%) rename Projectiles/{ => Melee}/DemonBlast.cs (95%) rename Projectiles/{ => Melee}/DemonBlast.png (100%) rename Projectiles/{ => Melee}/DemonBlastType2.cs (95%) rename Projectiles/{ => Melee}/DemonBlastType2.png (100%) rename Projectiles/{ => Melee}/DemonBlastType3.cs (95%) rename Projectiles/{ => Melee}/DemonBlastType3.png (100%) rename Projectiles/{ => Melee}/DepthOrb.cs (95%) rename Projectiles/{ => Melee}/DepthOrb.png (100%) rename Projectiles/{ => Melee}/DepthOrb2.cs (96%) rename Projectiles/{ => Melee}/DepthOrb2.png (100%) rename Projectiles/{ => Melee}/DracoBeam.cs (96%) rename Projectiles/{ => Melee}/DracoBeam.png (100%) rename Projectiles/{ => Melee}/DracoBeam2.cs (95%) rename Projectiles/{ => Melee}/DracoBeam2.png (100%) rename Projectiles/{ => Melee}/DragonRage.cs (97%) rename Projectiles/{ => Melee}/DragonRage.png (100%) rename Projectiles/{ => Melee}/Earth.cs (96%) rename Projectiles/{ => Melee}/Earth.png (100%) rename Projectiles/{ => Melee}/Earth2.cs (96%) rename Projectiles/{ => Melee}/Earth2.png (100%) rename Projectiles/{ => Melee}/Earth3.cs (97%) rename Projectiles/{ => Melee}/Earth3.png (100%) rename Projectiles/{ => Melee}/Earth4.cs (95%) rename Projectiles/{ => Melee}/Earth4.png (100%) rename Projectiles/{ => Melee}/ElementBall.cs (95%) rename Projectiles/{ => Melee}/ElementBall.png (100%) rename Projectiles/{ => Melee}/ElementBallShiv.cs (96%) rename Projectiles/{ => Melee}/ElementBallShiv.png (100%) rename Projectiles/{ => Melee}/EonBeam.cs (95%) rename Projectiles/{ => Melee}/EonBeam.png (100%) rename Projectiles/{ => Melee}/EonBeamV2.cs (95%) rename Projectiles/{ => Melee}/EonBeamV2.png (100%) rename Projectiles/{ => Melee}/EonBeamV3.cs (95%) rename Projectiles/{ => Melee}/EonBeamV3.png (100%) rename Projectiles/{ => Melee}/EonBeamV4.cs (95%) rename Projectiles/{ => Melee}/EonBeamV4.png (100%) rename Projectiles/{ => Melee}/EradicatorMeleeProjectile.cs (83%) create mode 100644 Projectiles/Melee/EradicatorMeleeProjectile.png create mode 100644 Projectiles/Melee/EradicatorMeleeProjectileGlow.png rename Projectiles/{ => Melee}/EssenceBeam.cs (94%) rename Projectiles/{ => Melee}/EssenceBeam.png (100%) rename Projectiles/{ => Melee}/EssenceBurst.cs (94%) rename Projectiles/{ => Melee}/EssenceBurst.png (100%) rename Projectiles/{ => Melee}/EssenceFlame2.cs (95%) rename Projectiles/{ => Melee}/EssenceFlame2.png (100%) rename Projectiles/{ => Melee}/EssenceScythe.cs (96%) rename Projectiles/{ => Melee}/EssenceScythe.png (100%) create mode 100644 Projectiles/Melee/Excelsus.cs create mode 100644 Projectiles/Melee/Excelsus.png create mode 100644 Projectiles/Melee/ExcelsusBlue.cs create mode 100644 Projectiles/Melee/ExcelsusBlue.png create mode 100644 Projectiles/Melee/ExcelsusBlueGlow.png create mode 100644 Projectiles/Melee/ExcelsusGlow.png create mode 100644 Projectiles/Melee/ExcelsusPink.cs create mode 100644 Projectiles/Melee/ExcelsusPink.png create mode 100644 Projectiles/Melee/ExcelsusPinkGlow.png rename Projectiles/{ => Melee}/Exobeam.cs (96%) rename Projectiles/{ => Melee}/Exobeam.png (100%) rename Projectiles/{ => Melee}/Exoboom.cs (95%) rename Projectiles/{ => Melee}/Exoboom.png (100%) rename Projectiles/{ => Melee}/Exocomet.cs (96%) rename Projectiles/{ => Melee}/Exocomet.png (100%) rename Projectiles/{ => Melee}/FlameScytheProjectileMelee.cs (93%) create mode 100644 Projectiles/Melee/FlameScytheProjectileMelee.png rename Projectiles/{ => Melee}/Flarefrost.cs (97%) rename Projectiles/{ => Melee}/Flarefrost.png (100%) rename Projectiles/{ => Melee}/FossilSpike.cs (93%) rename Projectiles/{ => Melee}/FossilSpike.png (100%) rename Projectiles/{ => Melee}/GalacticaComet.cs (96%) rename Projectiles/{ => Melee}/GalacticaComet.png (100%) rename Projectiles/{ => Melee}/Galaxia.cs (97%) rename Projectiles/{ => Melee}/Galaxia.png (100%) rename Projectiles/{ => Melee}/Galaxia2.cs (97%) rename Projectiles/{ => Melee}/Galaxia2.png (100%) rename Projectiles/{ => Melee}/GalaxyBlast.cs (95%) rename Projectiles/{ => Melee}/GalaxyBlast.png (100%) rename Projectiles/{ => Melee}/GalaxyBlastType2.cs (95%) rename Projectiles/{ => Melee}/GalaxyBlastType2.png (100%) rename Projectiles/{ => Melee}/GalaxyBlastType3.cs (95%) rename Projectiles/{ => Melee}/GalaxyBlastType3.png (100%) rename Projectiles/{ => Melee}/GelWave.cs (95%) rename Projectiles/{ => Melee}/GelWave.png (100%) rename Projectiles/{ => Melee}/GhastlySoulLarge.cs (97%) rename Projectiles/{ => Melee}/GhastlySoulLarge.png (100%) rename Projectiles/{ => Melee}/GhastlySoulMedium.cs (97%) rename Projectiles/{ => Melee}/GhastlySoulMedium.png (100%) rename Projectiles/{ => Melee}/GhastlySoulSmall.cs (97%) rename Projectiles/{ => Melee}/GhastlySoulSmall.png (100%) rename Projectiles/{ => Melee}/GreenBall.cs (95%) rename Projectiles/{ => Melee}/GreenBall.png (100%) rename Projectiles/{ => Melee}/GreenDust.cs (93%) rename Projectiles/{ => Melee}/GreenDust.png (100%) rename Projectiles/{ => Melee}/GreenWater.cs (94%) rename Projectiles/{ => Melee}/GreenWater.png (100%) rename Projectiles/{ => Melee}/HellionSpike.cs (94%) rename Projectiles/{ => Melee}/HellionSpike.png (100%) rename Projectiles/{ => Melee}/HolyColliderHolyFire.cs (96%) rename Projectiles/{ => Melee}/HolyColliderHolyFire.png (100%) rename Projectiles/{ => Melee}/HyperBlade.cs (95%) rename Projectiles/{ => Melee}/HyperBlade.png (100%) rename Projectiles/{ => Melee}/IceBombFriendly.cs (96%) rename Projectiles/{ => Melee}/IceBombFriendly.png (100%) rename Projectiles/{ => Melee}/Iceberg.cs (94%) rename Projectiles/{ => Melee}/Iceberg.png (100%) rename Projectiles/{ => Melee}/Icebreaker.cs (94%) rename Projectiles/{ => Melee}/Icebreaker.png (100%) rename Projectiles/{ => Melee}/Judgement.cs (96%) rename Projectiles/{ => Melee}/Judgement.png (100%) rename Projectiles/{ => Melee}/JudgementBlah.cs (96%) rename Projectiles/{ => Melee}/JudgementBlah.png (100%) create mode 100644 Projectiles/Melee/LaserFountain.cs rename Projectiles/{ => Melee}/LaserFountain.png (100%) rename Projectiles/{ => Melee}/Leech.cs (94%) rename Projectiles/{ => Melee}/Leech.png (100%) rename Projectiles/{ => Melee}/LifeScythe.cs (81%) rename Projectiles/{ => Melee}/LifeScythe.png (100%) rename Projectiles/{ => Melee}/Light.cs (92%) rename Projectiles/{ => Melee}/Light.png (100%) rename Projectiles/{ => Melee}/MangroveChakramProjectileMelee.cs (95%) rename Projectiles/{ => Melee}/MangroveChakramProjectileMelee.png (100%) rename Projectiles/{ => Melee}/MarianaProjectile.cs (95%) rename Projectiles/{ => Melee}/MarianaProjectile.png (100%) rename Projectiles/{ => Melee}/MarniteObliterator.cs (89%) rename Projectiles/{ => Melee}/MarniteObliterator.png (100%) rename Projectiles/{ => Melee}/MeteorFist.cs (97%) rename Projectiles/{ => Melee}/MeteorFist.png (100%) rename Projectiles/{ => Melee}/MirrorBlast.cs (96%) rename Projectiles/{ => Melee}/MirrorBlast.png (100%) rename Projectiles/{ => Melee}/Mourningstar.cs (97%) rename Projectiles/{ => Melee}/Mourningstar.png (100%) rename Projectiles/{ => Melee}/Murasama.cs (95%) rename Projectiles/{ => Melee}/Murasama.png (100%) rename Projectiles/{ => Melee}/Nebudust.cs (95%) rename Projectiles/{ => Melee}/Nebudust.png (100%) rename Projectiles/{ => Melee}/Nebulash.cs (97%) rename Projectiles/{ => Melee}/Nebulash.png (100%) rename Projectiles/{ => Melee}/NeptuneOrb.cs (96%) rename Projectiles/{ => Melee}/NeptuneOrb.png (100%) rename Projectiles/{ => Melee}/NightStabber.cs (94%) rename Projectiles/{ => Melee}/NightStabber.png (100%) rename Projectiles/{ => Melee}/OPHammerMelee.cs (96%) rename Projectiles/{ => Melee}/OPHammerMelee.png (100%) rename Projectiles/{ => Melee}/Oathblade.cs (94%) rename Projectiles/{ => Melee}/Oathblade.png (100%) rename Projectiles/{ => Melee}/OceanBeam.cs (96%) rename Projectiles/{ => Melee}/OceanBeam.png (100%) rename Projectiles/{ => Melee}/OmegaBiomeOrb.cs (96%) rename Projectiles/{ => Melee}/OmegaBiomeOrb.png (100%) rename Projectiles/{ => Melee}/PlagueBeeDust.cs (96%) rename Projectiles/{ => Melee}/PlagueBeeDust.png (100%) rename Projectiles/{ => Melee}/PlagueDust.cs (95%) rename Projectiles/{ => Melee}/PlagueDust.png (100%) rename Projectiles/{ => Melee}/PlagueSeeker.cs (95%) rename Projectiles/{ => Melee}/PlagueSeeker.png (100%) rename Projectiles/{ => Melee}/PlasmaBall.cs (95%) rename Projectiles/{ => Melee}/PlasmaBall.png (100%) rename Projectiles/{ => Melee}/PwnagehammerMelee.cs (94%) rename Projectiles/{ => Melee}/PwnagehammerMelee.png (100%) rename Projectiles/{ => Melee}/RainBolt.cs (96%) rename Projectiles/{ => Melee}/RainBolt.png (100%) rename Projectiles/{ => Melee}/RainbowBoom.cs (95%) rename Projectiles/{ => Melee}/RainbowBoom.png (100%) rename Projectiles/{ => Melee}/Razorwind.cs (96%) rename Projectiles/{ => Melee}/Razorwind.png (100%) rename Projectiles/{ => Melee}/RedBall.cs (95%) rename Projectiles/{ => Melee}/RedBall.png (100%) rename Projectiles/{ => Melee}/RedDust.cs (93%) rename Projectiles/{ => Melee}/RedDust.png (100%) rename Projectiles/{ => Melee}/RoyalKnifeMelee.cs (93%) rename Projectiles/{ => Melee}/RoyalKnifeMelee.png (100%) rename Projectiles/{ => Melee}/SHIV.cs (95%) rename Projectiles/{ => Melee}/SHIV.png (100%) rename Projectiles/{ => Melee}/SandBlade.cs (94%) rename Projectiles/{ => Melee}/SandBlade.png (100%) rename Projectiles/{ => Melee}/SandFire.cs (95%) rename Projectiles/{ => Melee}/SandFire.png (100%) rename Projectiles/{ => Melee}/ScourgeoftheCosmos.cs (93%) create mode 100644 Projectiles/Melee/ScourgeoftheCosmos.png rename Projectiles/{ => Melee}/ScourgeoftheCosmosMini.cs (85%) create mode 100644 Projectiles/Melee/ScourgeoftheCosmosMini.png create mode 100644 Projectiles/Melee/ScourgeoftheCosmosMiniGlow.png rename Projectiles/{ => Melee}/SeashellBoomerangProjectileMelee.cs (89%) rename Projectiles/{ => Melee}/SeashellBoomerangProjectileMelee.png (100%) rename Projectiles/{ => Melee}/ShortBeam.cs (95%) rename Projectiles/{ => Melee}/ShortBeam.png (100%) rename Projectiles/{ => Melee}/ShortNightBeam.cs (95%) rename Projectiles/{ => Melee}/ShortNightBeam.png (100%) rename Projectiles/{ => Melee}/ShortTerraBeam.cs (95%) rename Projectiles/{ => Melee}/ShortTerraBeam.png (100%) rename Projectiles/{ => Melee}/SolarFlare.cs (96%) rename Projectiles/{ => Melee}/SolarFlare.png (100%) create mode 100644 Projectiles/Melee/SolsticeBeam.cs rename Projectiles/{ => Melee}/SolsticeBeam.png (100%) rename Projectiles/{ => Melee}/SoulScythe.cs (96%) rename Projectiles/{ => Melee}/SoulScythe.png (100%) rename Projectiles/{ => Melee}/Spark.cs (93%) rename Projectiles/{ => Melee}/Spark.png (100%) rename Projectiles/{ => Melee}/SpatialSpear.cs (95%) rename Projectiles/{ => Melee}/SpatialSpear.png (100%) rename Projectiles/{ => Melee}/SpatialSpear2.cs (95%) rename Projectiles/{ => Melee}/SpatialSpear2.png (100%) rename Projectiles/{ => Melee}/SpatialSpear3.cs (95%) rename Projectiles/{ => Melee}/SpatialSpear3.png (100%) rename Projectiles/{ => Melee}/SpatialSpear4.cs (92%) rename Projectiles/{ => Melee}/SpatialSpear4.png (100%) rename Projectiles/{ => Melee/Spears}/AstralPike.cs (95%) rename Projectiles/{ => Melee/Spears}/AstralPike.png (100%) rename Projectiles/{ => Melee/Spears}/BansheeHook.cs (93%) rename Projectiles/{ => Melee/Spears}/BansheeHook.png (100%) rename Projectiles/{ => Melee/Spears}/BansheeHookAlt.png (100%) rename Projectiles/{ => Melee/Spears}/Brimlance.cs (96%) rename Projectiles/{ => Melee/Spears}/Brimlance.png (100%) rename Projectiles/{ => Melee/Spears}/DiseasedPike.cs (95%) rename Projectiles/{ => Melee/Spears}/DiseasedPike.png (100%) rename Projectiles/{ => Melee/Spears}/EarthenPike.cs (95%) rename Projectiles/{ => Melee/Spears}/EarthenPike.png (100%) rename Projectiles/{ => Melee/Spears}/ExsanguinationLanceProjectile.cs (95%) create mode 100644 Projectiles/Melee/Spears/ExsanguinationLanceProjectile.png rename Projectiles/{ => Melee/Spears}/GildedProboscis.cs (94%) rename Projectiles/{ => Melee/Spears}/GildedProboscis.png (100%) rename Projectiles/{ => Melee/Spears}/GoldplumeSpearProjectile.cs (95%) rename Projectiles/{ => Melee/Spears}/GoldplumeSpearProjectile.png (100%) rename Projectiles/{ => Melee/Spears}/HeartRapierProjectile.cs (84%) rename Projectiles/{ => Melee/Spears}/HeartRapierProjectile.png (100%) rename Projectiles/{ => Melee/Spears}/HellionFlowerSpearProjectile.cs (96%) rename Projectiles/{ => Melee/Spears}/HellionFlowerSpearProjectile.png (100%) rename Projectiles/{ => Melee/Spears}/MarniteSpearProjectile.cs (95%) rename Projectiles/{ => Melee/Spears}/MarniteSpearProjectile.png (100%) rename Projectiles/{ => Melee/Spears}/SausageMaker.cs (95%) rename Projectiles/{ => Melee/Spears}/SausageMaker.png (100%) rename Projectiles/{ => Melee/Spears}/SpatialLanceProjectile.cs (96%) rename Projectiles/{ => Melee/Spears}/SpatialLanceProjectile.png (100%) rename Projectiles/{ => Melee/Spears}/StarnightLanceProjectile.cs (96%) rename Projectiles/{ => Melee/Spears}/StarnightLanceProjectile.png (100%) rename Projectiles/{ => Melee/Spears}/StreamGouge.cs (96%) rename Projectiles/{ => Melee/Spears}/StreamGouge.png (100%) rename Projectiles/{ => Melee/Spears}/TerraLanceProjectile.cs (96%) rename Projectiles/{ => Melee/Spears}/TerraLanceProjectile.png (100%) rename Projectiles/{ => Melee/Spears}/UrchinSpearProjectile.cs (95%) rename Projectiles/{ => Melee/Spears}/UrchinSpearProjectile.png (100%) rename Projectiles/{ => Melee}/StarCrystal.cs (94%) rename Projectiles/{ => Melee}/StarCrystal.png (100%) rename Projectiles/{ => Melee}/StarnightBeam.cs (95%) rename Projectiles/{ => Melee}/StarnightBeam.png (100%) rename Projectiles/{ => Melee}/StormBeam.cs (95%) rename Projectiles/{ => Melee}/StormBeam.png (100%) rename Projectiles/{ => Melee}/StormMark.cs (96%) rename Projectiles/{ => Melee}/StormMark.png (100%) rename Projectiles/{ => Melee}/StormRuler.cs (94%) rename Projectiles/{ => Melee}/StormRuler.png (100%) rename Projectiles/{ => Melee}/SunlightBlade.cs (94%) rename Projectiles/{ => Melee}/SunlightBlade.png (100%) rename Projectiles/{ => Melee}/TemporalFloeSwordProjectile.cs (96%) rename Projectiles/{ => Melee}/TemporalFloeSwordProjectile.png (100%) rename Projectiles/{ => Melee}/TerraBall.cs (95%) rename Projectiles/{ => Melee}/TerraBall.png (100%) rename Projectiles/{ => Melee}/TerraEdgeBeam.cs (86%) rename Projectiles/{ => Melee}/TerraEdgeBeam.png (100%) rename Projectiles/{ => Melee}/TerraSpear.cs (94%) rename Projectiles/{ => Melee}/TerraSpear.png (100%) rename Projectiles/{ => Melee}/TerracottaExplosion.cs (95%) rename Projectiles/{ => Melee}/TerracottaExplosion.png (100%) rename Projectiles/{ => Melee}/TerratomereProjectile.cs (91%) rename Projectiles/{ => Melee}/TerratomereProjectile.png (100%) rename Projectiles/{ => Melee}/TerrorBeam.cs (96%) rename Projectiles/{ => Melee}/TerrorBeam.png (100%) rename Projectiles/{ => Melee}/TerrorBoom.cs (94%) rename Projectiles/{ => Melee}/TerrorBoom.png (100%) rename Projectiles/{ => Melee}/TinyCrystal.cs (93%) rename Projectiles/{ => Melee}/TinyCrystal.png (100%) rename Projectiles/{ => Melee}/TinyFlare.cs (95%) rename Projectiles/{ => Melee}/TinyFlare.png (100%) rename Projectiles/{ => Melee}/Tornado.cs (96%) rename Projectiles/{ => Melee}/Tornado.png (100%) rename Projectiles/{ => Melee}/TriactisOPHammerMelee.cs (96%) rename Projectiles/{ => Melee}/TriactisOPHammerMelee.png (100%) rename Projectiles/{ => Melee}/TrueBiomeOrb.cs (95%) rename Projectiles/{ => Melee}/TrueBiomeOrb.png (100%) rename Projectiles/{ => Melee}/TrueCausticEdgeProjectile.cs (96%) rename Projectiles/{ => Melee}/TrueCausticEdgeProjectile.png (100%) rename Projectiles/{ => Melee}/Tumbleweed.cs (97%) rename Projectiles/{ => Melee}/Tumbleweed.png (100%) rename Projectiles/{ => Melee}/TumbleweedRolling.cs (96%) rename Projectiles/{ => Melee}/TumbleweedRolling.png (100%) rename Projectiles/{ => Melee}/TyphonsGreed.cs (87%) rename Projectiles/{ => Melee}/TyphonsGreed.png (100%) rename Projectiles/{ => Melee}/TyphonsGreedStaff.cs (97%) rename Projectiles/{ => Melee}/TyphonsGreedStaff.png (100%) rename Projectiles/{ => Melee}/UHFMurasama.png (100%) rename Projectiles/{ => Melee}/UrchinSpikeFugu.cs (96%) rename Projectiles/{ => Melee}/UrchinSpikeFugu.png (100%) rename Projectiles/{ => Melee}/WhiteBoltAura.cs (94%) rename Projectiles/{ => Melee}/WhiteBoltAura.png (100%) rename Projectiles/{ => Melee}/WhiteBoltAuraBlah.cs (94%) rename Projectiles/{ => Melee}/WhiteBoltAuraBlah.png (100%) rename Projectiles/{ => Melee}/WhiteOrb.cs (94%) rename Projectiles/{ => Melee}/WhiteOrb.png (100%) rename Projectiles/{ => Melee}/WhiteOrbBlah.cs (94%) rename Projectiles/{ => Melee}/WhiteOrbBlah.png (100%) rename Projectiles/{ => Melee}/Whiterain.cs (96%) rename Projectiles/{ => Melee}/Whiterain.png (100%) rename Projectiles/{ => Melee}/WhiterainBlah.cs (96%) rename Projectiles/{ => Melee}/WhiterainBlah.png (100%) rename Projectiles/{ => Melee/Yoyos}/AirSpinnerProjectile.cs (91%) rename Projectiles/{ => Melee/Yoyos}/AirSpinnerProjectile.png (100%) rename Projectiles/{ => Melee/Yoyos}/AortaProjectile.cs (91%) rename Projectiles/{ => Melee/Yoyos}/AortaProjectile.png (100%) rename Projectiles/{ => Melee/Yoyos}/AzathothProjectile.cs (93%) rename Projectiles/{ => Melee/Yoyos}/AzathothProjectile.png (100%) rename Projectiles/{ => Melee/Yoyos}/ChaotrixProjectile.cs (93%) create mode 100644 Projectiles/Melee/Yoyos/ChaotrixProjectile.png rename Projectiles/{ => Melee/Yoyos}/CnidarianProjectile.cs (89%) rename Projectiles/{ => Melee/Yoyos}/CnidarianProjectile.png (100%) rename Projectiles/{ => Melee/Yoyos}/LaceratorProjectile.cs (65%) create mode 100644 Projectiles/Melee/Yoyos/LaceratorProjectile.png rename Projectiles/{ => Melee/Yoyos}/QuagmireProjectile.cs (95%) rename Projectiles/{ => Melee/Yoyos}/QuagmireProjectile.png (100%) rename Projectiles/{ => Melee/Yoyos}/ShimmersparkProjectile.cs (95%) rename Projectiles/{ => Melee/Yoyos}/ShimmersparkProjectile.png (100%) rename Projectiles/{ => Melee/Yoyos}/SolarFlareYoyo.cs (94%) rename Projectiles/{ => Melee/Yoyos}/SolarFlareYoyo.png (100%) rename Projectiles/{ => Melee/Yoyos}/TheEyeofCalamitasProjectile.cs (95%) rename Projectiles/{ => Melee/Yoyos}/TheEyeofCalamitasProjectile.png (100%) rename Projectiles/{ => Melee/Yoyos}/TheGodsGambitProjectile.cs (92%) create mode 100644 Projectiles/Melee/Yoyos/TheGodsGambitProjectile.png rename Projectiles/{ => Melee/Yoyos}/TheObliterator.cs (78%) create mode 100644 Projectiles/Melee/Yoyos/TheObliterator.png create mode 100644 Projectiles/Melee/Yoyos/TheObliteratorGlow.png rename Projectiles/{ => Melee/Yoyos}/ThePlaguebringer.cs (95%) rename Projectiles/{ => Melee/Yoyos}/ThePlaguebringer.png (100%) rename Projectiles/{ => Melee/Yoyos}/VerdantProjectile.cs (95%) rename Projectiles/{ => Melee/Yoyos}/VerdantProjectile.png (100%) rename Projectiles/{ => Melee/Yoyos}/YinYo.cs (95%) rename Projectiles/{ => Melee/Yoyos}/YinYo.png (100%) delete mode 100644 Projectiles/NebulaStar.png delete mode 100644 Projectiles/OnyxSharkBomb.cs create mode 100644 Projectiles/Patreon/AtaraxiaHoming.cs create mode 100644 Projectiles/Patreon/AtaraxiaHoming.png create mode 100644 Projectiles/Patreon/AtaraxiaMain.cs create mode 100644 Projectiles/Patreon/AtaraxiaMain.png create mode 100644 Projectiles/Patreon/AtaraxiaSide.cs create mode 100644 Projectiles/Patreon/AtaraxiaSide.png create mode 100644 Projectiles/Patreon/AtaraxiaSplit.cs create mode 100644 Projectiles/Patreon/AtaraxiaSplit.png create mode 100644 Projectiles/Patreon/HandheldTankShell.cs create mode 100644 Projectiles/Patreon/HandheldTankShell.png create mode 100644 Projectiles/Patreon/KeelhaulBubble.cs create mode 100644 Projectiles/Patreon/KeelhaulBubble.png create mode 100644 Projectiles/Patreon/KeelhaulGeyserBottom.cs create mode 100644 Projectiles/Patreon/KeelhaulGeyserBottom.png create mode 100644 Projectiles/Patreon/KeelhaulGeyserTop.cs create mode 100644 Projectiles/Patreon/KeelhaulGeyserTop.png create mode 100644 Projectiles/Patreon/MelterAmp.cs create mode 100644 Projectiles/Patreon/MelterAmp.png create mode 100644 Projectiles/Patreon/MelterNote1.cs create mode 100644 Projectiles/Patreon/MelterNote1.png create mode 100644 Projectiles/Patreon/MelterNote2.cs create mode 100644 Projectiles/Patreon/MelterNote2.png create mode 100644 Projectiles/Patreon/ThePackMinissile.cs create mode 100644 Projectiles/Patreon/ThePackMinissile.png create mode 100644 Projectiles/Patreon/ThePackMissile.cs create mode 100644 Projectiles/Patreon/ThePackMissile.png rename Projectiles/{ => Pets}/Bear.cs (96%) rename Projectiles/{ => Pets}/Bear.png (100%) rename Projectiles/{ => Pets}/Brimling.cs (96%) rename Projectiles/{ => Pets}/Brimling.png (100%) rename Projectiles/{ => Pets}/ChibiiDoggo.cs (96%) rename Projectiles/{ => Pets}/ChibiiDoggo.png (100%) rename Projectiles/{ => Pets}/ChibiiDoggoFly.cs (95%) rename Projectiles/{ => Pets}/ChibiiDoggoFly.png (100%) rename Projectiles/{ => Pets}/ChibiiDoggoFlyMonochrome.png (100%) rename Projectiles/{ => Pets}/ChibiiDoggoMonochrome.png (100%) create mode 100644 Projectiles/Pets/DannyDevito.cs rename Projectiles/{ => Pets}/DannyDevito.png (100%) rename Projectiles/{ => Pets}/Fox.cs (93%) rename Projectiles/{ => Pets}/Fox.png (100%) rename Projectiles/{ => Pets}/Levi.cs (96%) rename Projectiles/{ => Pets}/Levi.png (100%) rename Projectiles/{ => Pets}/SirenYoung.cs (96%) rename Buffs/AquaticEgg.png => Projectiles/Pets/SirenYoung.png (59%) rename Projectiles/{ => Ranged}/AMR.cs (95%) rename Projectiles/{ => Ranged}/AMR.png (100%) rename Projectiles/{ => Ranged}/AMR2.cs (91%) rename Projectiles/{ => Ranged}/AMR2.png (100%) rename Projectiles/{ => Ranged}/AccelerationBullet.cs (95%) rename Projectiles/{AcidBullet.png => Ranged/AccelerationBullet.png} (100%) rename Projectiles/{ => Ranged}/AcidBullet.cs (95%) rename Projectiles/{AquaBlast.png => Ranged/AcidBullet.png} (100%) rename Projectiles/{ => Ranged}/AquaBlast.cs (94%) rename Projectiles/{AquaBlastToxic.png => Ranged/AquaBlast.png} (100%) rename Projectiles/{ => Ranged}/AquaBlastToxic.cs (94%) rename Projectiles/{Archerfish.png => Ranged/AquaBlastToxic.png} (100%) rename Projectiles/{ => Ranged}/Archerfish.cs (96%) rename Projectiles/{AstralRound.png => Ranged/Archerfish.png} (100%) rename Projectiles/{ => Ranged}/ArcticArrow.cs (95%) rename Projectiles/{ => Ranged}/ArcticArrow.png (100%) rename Projectiles/{ => Ranged}/AstralRound.cs (96%) rename Projectiles/{ChaosFlare.png => Ranged/AstralRound.png} (100%) rename Projectiles/{ => Ranged}/AstrealArrow.cs (96%) rename Projectiles/{ => Ranged}/AstrealArrow.png (100%) rename Projectiles/{ => Ranged}/AstrealFlame.cs (96%) rename Projectiles/{ => Ranged}/AstrealFlame.png (100%) rename Projectiles/{ => Ranged}/BallistaGreatArrow.cs (95%) rename Projectiles/{ => Ranged}/BallistaGreatArrow.png (100%) rename Projectiles/{ => Ranged}/BeeRPG.cs (97%) rename Projectiles/{ => Ranged}/BeeRPG.png (100%) rename Projectiles/{ => Ranged}/BeeRPGExplosion.cs (82%) rename Projectiles/{ => Ranged}/BeeRPGExplosion.png (100%) rename Projectiles/{ => Ranged}/BigNuke.cs (97%) rename Projectiles/{ => Ranged}/BigNuke.png (100%) rename Projectiles/{ => Ranged}/BigNukeExplosion.cs (82%) rename Projectiles/{ => Ranged}/BigNukeExplosion.png (100%) rename Projectiles/{ => Ranged}/BloodClotFriendly.cs (92%) rename Projectiles/{ => Ranged}/BloodClotFriendly.png (100%) rename Projectiles/{ => Ranged}/BloodfireArrow.cs (93%) rename Projectiles/{ => Ranged}/BloodfireArrow.png (100%) rename Projectiles/{ => Ranged}/BloodfireBullet.cs (90%) rename Projectiles/{ => Ranged}/BloodfireBullet.png (100%) rename Projectiles/{ => Ranged}/BloodflareSoul.cs (97%) rename Projectiles/{ => Ranged}/BloodflareSoul.png (100%) rename Projectiles/{ => Ranged}/BlueExoArrow.cs (96%) rename Projectiles/{ => Ranged}/BlueExoArrow.png (100%) rename Projectiles/{ => Ranged}/BlueExoArrow2.cs (96%) rename Projectiles/{ => Ranged}/BlueExoArrow2.png (100%) rename Projectiles/{ => Ranged}/Bolt.cs (96%) rename Projectiles/{ => Ranged}/Bolt.png (100%) rename Projectiles/{ => Ranged}/BoltArrow.cs (96%) rename Projectiles/{ => Ranged}/BoltArrow.png (100%) rename Projectiles/{ => Ranged}/BoltExplosion.cs (82%) rename Projectiles/{ => Ranged}/BoltExplosion.png (100%) rename Projectiles/{ => Ranged}/BrimstoneBallFriendly.cs (92%) rename Projectiles/{ => Ranged}/BrimstoneBallFriendly.png (100%) rename Projectiles/{ => Ranged}/BrimstoneBolt.cs (94%) rename Projectiles/{ => Ranged}/BrimstoneBolt.png (100%) rename Projectiles/{ => Ranged}/BrimstoneFireFriendly.cs (95%) rename Projectiles/{ => Ranged}/BrimstoneFireFriendly.png (100%) rename Projectiles/{ => Ranged}/Butcher.cs (96%) rename Projectiles/{ => Ranged}/Butcher.png (100%) rename Projectiles/{ => Ranged}/ChargedBlast.cs (96%) rename Projectiles/{ => Ranged}/ChargedBlast.png (100%) rename Projectiles/{ => Ranged}/ChargedBlast2.cs (96%) rename Projectiles/{ => Ranged}/ChargedBlast2.png (100%) rename Projectiles/{ => Ranged}/ChargedBlast3.cs (97%) rename Projectiles/{ => Ranged}/ChargedBlast3.png (100%) rename Projectiles/{ => Ranged}/Chicken.cs (96%) rename Projectiles/{ => Ranged}/Chicken.png (100%) rename Projectiles/{ => Ranged}/ChickenExplosion.cs (95%) rename Projectiles/{ => Ranged}/ChickenExplosion.png (100%) rename Projectiles/{ => Ranged}/Contagion.cs (96%) rename Projectiles/{ => Ranged}/Contagion.png (100%) rename Projectiles/{ => Ranged}/ContagionArrow.cs (88%) rename Projectiles/{ => Ranged}/ContagionArrow.png (100%) rename Projectiles/{ => Ranged}/ContagionBall.cs (96%) rename Projectiles/{ => Ranged}/ContagionBall.png (100%) rename Projectiles/{ => Ranged}/CorossiveFlames.cs (95%) rename Projectiles/{ => Ranged}/CorossiveFlames.png (100%) rename Projectiles/{ => Ranged}/CosmicFire.cs (95%) rename Projectiles/{ => Ranged}/CosmicFire.png (100%) rename Projectiles/{ => Ranged}/CursedRound.cs (95%) rename Projectiles/{ => Ranged}/CursedRound.png (100%) rename Projectiles/{ => Ranged}/DaemonsFlame.cs (96%) rename Projectiles/{ => Ranged}/DaemonsFlame.png (100%) rename Projectiles/{ => Ranged}/DaemonsFlameArrow.cs (96%) rename Projectiles/{ => Ranged}/DaemonsFlameArrow.png (100%) rename Projectiles/{ => Ranged}/DragonBurst.cs (95%) rename Projectiles/{ => Ranged}/DragonBurst.png (100%) rename Projectiles/{ => Ranged}/Drataliornus.cs (96%) rename Projectiles/{ => Ranged}/Drataliornus.png (100%) rename Projectiles/{ => Ranged}/DrataliornusExoArrow.cs (96%) rename Projectiles/{ => Ranged}/DrataliornusExoArrow.png (100%) rename Projectiles/{ => Ranged}/DrataliornusFlame.cs (97%) rename Projectiles/{ => Ranged}/DrataliornusFlame.png (100%) rename Projectiles/{ => Ranged}/DrillCannon.png (100%) rename Projectiles/{ => Ranged}/ElysianArrow.cs (97%) rename Projectiles/{ => Ranged}/ElysianArrow.png (100%) rename Projectiles/{ => Ranged}/EnhancedNanoRound.cs (96%) rename Projectiles/{ => Ranged}/EnhancedNanoRound.png (100%) rename Projectiles/{ => Ranged}/EssenceFire.cs (95%) rename Projectiles/{ => Ranged}/EssenceFire.png (100%) rename Projectiles/{ => Ranged}/ExoFire.cs (96%) rename Projectiles/{ => Ranged}/ExoFire.png (100%) rename Projectiles/{ => Ranged}/ExoMark.cs (95%) rename Projectiles/{ => Ranged}/ExoMark.png (100%) rename Projectiles/{ => Ranged}/ExoTornado.cs (96%) rename Projectiles/{ => Ranged}/ExoTornado.png (100%) rename Projectiles/{ => Ranged}/ExplodingStake.cs (95%) rename Projectiles/{ => Ranged}/ExplodingStake.png (100%) create mode 100644 Projectiles/Ranged/ExplosiveShellBullet.cs create mode 100644 Projectiles/Ranged/ExplosiveShellBullet.png rename Projectiles/{ => Ranged}/FishronRPG.cs (97%) rename Projectiles/{ => Ranged}/FishronRPG.png (100%) rename Projectiles/{ => Ranged}/FlakKraken.cs (96%) rename Projectiles/{ => Ranged}/FlakKraken.png (100%) rename Projectiles/{ => Ranged}/FlakKrakenGun.cs (96%) rename Projectiles/{ => Ranged}/FlakKrakenGun.png (100%) rename Projectiles/{ => Ranged}/FlamingStake.cs (95%) rename Projectiles/{ => Ranged}/FlamingStake.png (100%) rename Projectiles/{ => Ranged}/FlareBat.cs (96%) rename Projectiles/{ => Ranged}/FlareBat.png (100%) rename Projectiles/{ => Ranged}/Flash.cs (93%) rename Projectiles/{ => Ranged}/Flash.png (100%) rename Projectiles/{ => Ranged}/FlashBullet.cs (96%) rename Projectiles/{ => Ranged}/FlashBullet.png (100%) rename Projectiles/{ => Ranged}/FossilShard.cs (93%) rename Projectiles/{ => Ranged}/FossilShard.png (100%) rename Projectiles/{ => Ranged}/FrostsparkBullet.cs (96%) rename Projectiles/{ => Ranged}/FrostsparkBullet.png (100%) rename Projectiles/{ => Ranged}/FungiOrb.cs (95%) rename Projectiles/{ => Ranged}/FungiOrb.png (100%) rename Projectiles/{ => Ranged}/FungiOrb2.cs (94%) rename Projectiles/{ => Ranged}/FungiOrb2.png (100%) rename Projectiles/{ => Ranged}/GoliathExplosion.cs (82%) rename Projectiles/{ => Ranged}/GoliathExplosion.png (100%) rename Projectiles/{ => Ranged}/GoliathRocket.cs (97%) rename Projectiles/{ => Ranged}/GoliathRocket.png (100%) rename Projectiles/{ => Ranged}/GreenExoArrow.cs (96%) rename Projectiles/{ => Ranged}/GreenExoArrow.png (100%) rename Projectiles/{ => Ranged}/HiveBomb.cs (97%) rename Projectiles/{ => Ranged}/HiveBomb.png (100%) rename Projectiles/{ => Ranged}/HiveBombExplosion.cs (85%) rename Projectiles/{ => Ranged}/HiveBombExplosion.png (100%) rename Projectiles/{ => Ranged}/HiveExplosion.cs (82%) rename Projectiles/{ => Ranged}/HiveExplosion.png (100%) rename Projectiles/{ => Ranged}/HiveMissile.cs (97%) rename Projectiles/{ => Ranged}/HiveMissile.png (100%) rename Projectiles/{ => Ranged}/HolyFireBullet.cs (96%) rename Projectiles/{ => Ranged}/HolyFireBullet.png (100%) rename Projectiles/{ => Ranged}/HyperiusBullet.cs (93%) rename Projectiles/{ => Ranged}/HyperiusBullet.png (100%) rename Projectiles/{ => Ranged}/LeafArrow.cs (94%) rename Projectiles/{ => Ranged}/LeafArrow.png (100%) rename Projectiles/{ => Ranged}/LunarBolt.cs (94%) rename Projectiles/{ => Ranged}/LunarBolt.png (100%) rename Projectiles/{ => Ranged}/LunarBolt2.cs (94%) rename Projectiles/{ => Ranged}/LunarBolt2.png (100%) rename Projectiles/{ => Ranged}/MagnaStrike.cs (94%) rename Projectiles/{ => Ranged}/MagnaStrike.png (100%) rename Projectiles/{ => Ranged}/MechanicalBarracuda.cs (91%) rename Projectiles/{ => Ranged}/MechanicalBarracuda.png (100%) rename Projectiles/{ => Ranged}/MeowFire.cs (96%) rename Projectiles/{ => Ranged}/MeowFire.png (100%) rename Projectiles/{ => Ranged}/MeowFire2.cs (96%) rename Projectiles/{ => Ranged}/MeowFire2.png (100%) rename Projectiles/{ => Ranged}/MiniRocket.cs (97%) rename Projectiles/{ => Ranged}/MiniRocket.png (100%) rename Projectiles/{ => Ranged}/MiniRocketExplosion.cs (82%) rename Projectiles/{ => Ranged}/MiniRocketExplosion.png (100%) rename Projectiles/{ => Ranged}/MistArrow.cs (94%) rename Projectiles/{ => Ranged}/MistArrow.png (100%) rename Projectiles/{ => Ranged}/MortarRound.cs (97%) rename Projectiles/{ => Ranged}/MortarRound.png (100%) rename Projectiles/{ => Ranged}/Nanomachine.cs (96%) rename Projectiles/{ => Ranged}/Nanomachine.png (100%) rename Projectiles/{ => Ranged}/NapalmArrow.cs (97%) rename Projectiles/{ => Ranged}/NapalmArrow.png (100%) rename Projectiles/{ => Ranged}/NebulaShot.cs (63%) rename Projectiles/{ => Ranged}/NebulaShot.png (100%) rename Projectiles/{ => Ranged}/Needler.cs (95%) rename Projectiles/{ => Ranged}/Needler.png (100%) rename Projectiles/{ => Ranged}/Nuke.cs (97%) rename Projectiles/{ => Ranged}/Nuke.png (100%) rename Projectiles/{ => Ranged}/NukeExplosion.cs (84%) rename Projectiles/{ => Ranged}/NukeExplosion.png (100%) rename Projectiles/{ => Ranged}/NullShot.cs (94%) rename Projectiles/{ => Ranged}/NullShot.png (100%) rename Projectiles/{ => Ranged}/NullShot2.cs (95%) rename Projectiles/{ => Ranged}/NullShot2.png (100%) rename Projectiles/{ => Ranged}/OMGWTH.cs (92%) rename Projectiles/{ => Ranged}/OMGWTH.png (100%) rename Projectiles/{ => Ranged}/OnyxExplosion.cs (82%) rename Projectiles/{ => Ranged}/OnyxExplosion.png (100%) create mode 100644 Projectiles/Ranged/OnyxSharkBomb.cs rename Projectiles/{ => Ranged}/OnyxSharkBomb.png (100%) rename Projectiles/{ => Ranged}/OpalStrike.cs (94%) rename Projectiles/{ => Ranged}/OpalStrike.png (100%) rename Projectiles/{ => Ranged}/OrangeExoArrow.cs (96%) rename Projectiles/{ => Ranged}/OrangeExoArrow.png (100%) rename Projectiles/{ => Ranged}/Phangasm.cs (96%) rename Projectiles/{ => Ranged}/Phangasm.png (100%) rename Projectiles/{ => Ranged}/PlagueArrow.cs (95%) rename Projectiles/{ => Ranged}/PlagueArrow.png (100%) rename Projectiles/{ => Ranged}/PlagueExplosionFriendly.cs (93%) rename Projectiles/{ => Ranged}/PlagueExplosionFriendly.png (100%) rename Projectiles/{ => Ranged}/PlasmaBlast.cs (96%) rename Projectiles/{ => Ranged}/PlasmaBlast.png (100%) rename Projectiles/{ => Ranged}/PlasmaExplosion.cs (95%) rename Projectiles/{ => Ranged}/PlasmaExplosion.png (100%) rename Projectiles/{ => Ranged}/ProBolt.cs (95%) rename Projectiles/{ => Ranged}/ProBolt.png (100%) rename Projectiles/{ => Ranged}/RainbowBlast.cs (95%) rename Projectiles/{ => Ranged}/RainbowBlast.png (100%) rename Projectiles/{ => Ranged}/RubberMortarRound.cs (97%) rename Projectiles/{ => Ranged}/RubberMortarRound.png (100%) rename Projectiles/{ => Ranged}/SandstormBullet.cs (96%) rename Projectiles/{ => Ranged}/SandstormBullet.png (100%) rename Projectiles/{ => Ranged}/SandyWaifuShark.cs (96%) rename Projectiles/{ => Ranged}/SandyWaifuShark.png (100%) rename Projectiles/{ => Ranged}/SeaDragonRocket.cs (97%) rename Projectiles/{ => Ranged}/SeaDragonRocket.png (100%) rename Projectiles/{ => Ranged}/ShadeFire.cs (95%) rename Projectiles/{ => Ranged}/ShadeFire.png (100%) rename Projectiles/{ => Ranged}/Shockblast.cs (93%) rename Projectiles/{ => Ranged}/Shockblast.png (100%) rename Projectiles/{ => Ranged}/ShockblastRound.cs (94%) rename Projectiles/{ => Ranged}/ShockblastRound.png (100%) rename Projectiles/{ => Ranged}/Shroom.cs (95%) rename Projectiles/{ => Ranged}/Shroom.png (100%) rename Projectiles/{ => Ranged}/Sickness.cs (93%) rename Projectiles/{ => Ranged}/Sickness.png (100%) rename Projectiles/{ => Ranged}/SicknessRound.cs (96%) rename Projectiles/{ => Ranged}/SicknessRound.png (100%) rename Projectiles/{ => Ranged}/SicknessRound2.cs (95%) rename Projectiles/{ => Ranged}/SicknessRound2.png (100%) rename Projectiles/{ => Ranged}/SlagRound.cs (95%) rename Projectiles/{ => Ranged}/SlagRound.png (100%) rename Projectiles/{ => Ranged}/SlashRound.cs (92%) rename Projectiles/{ => Ranged}/SlashRound.png (100%) rename Projectiles/{ => Ranged}/SlimeBolt.cs (95%) rename Projectiles/{ => Ranged}/SlimeBolt.png (100%) rename Projectiles/{ => Ranged}/SporeBomb.cs (95%) rename Projectiles/{ => Ranged}/SporeBomb.png (100%) rename Projectiles/{ => Ranged}/Spyker.cs (96%) rename Projectiles/{ => Ranged}/Spyker.png (100%) rename Projectiles/{ => Ranged}/StormSurge.cs (95%) rename Projectiles/{ => Ranged}/StormSurge.png (100%) rename Projectiles/{ => Ranged}/SulphuricAcidCannon2.cs (97%) rename Projectiles/{ => Ranged}/SulphuricAcidCannon2.png (100%) rename Projectiles/{ => Ranged}/SulphuricAcidMist2.cs (95%) rename Projectiles/{ => Ranged}/SulphuricAcidMist2.png (100%) rename Projectiles/{ => Ranged}/SuperballBullet.cs (95%) rename Projectiles/{ => Ranged}/SuperballBullet.png (100%) rename Projectiles/{ => Ranged}/TealExoArrow.cs (96%) rename Projectiles/{ => Ranged}/TealExoArrow.png (100%) rename Projectiles/{ => Ranged}/TelluricGlare.cs (95%) rename Projectiles/{ => Ranged}/TelluricGlare.png (100%) rename Projectiles/{ => Ranged}/TerraArrow.cs (96%) rename Projectiles/{ => Ranged}/TerraArrow.png (100%) rename Projectiles/{ => Ranged}/TerraArrow2.cs (96%) rename Projectiles/{ => Ranged}/TerraArrow2.png (100%) rename Projectiles/{ => Ranged}/TerraBallB.cs (95%) rename Projectiles/{ => Ranged}/TerraBallB.png (100%) rename Projectiles/{ => Ranged}/TerraBallG.cs (95%) rename Projectiles/{ => Ranged}/TerraBallG.png (100%) rename Projectiles/{ => Ranged}/TerraBallI.cs (95%) rename Projectiles/{ => Ranged}/TerraBallI.png (100%) rename Projectiles/{ => Ranged}/TerraBallO.cs (95%) rename Projectiles/{ => Ranged}/TerraBallO.png (100%) rename Projectiles/{ => Ranged}/TerraBallR.cs (95%) rename Projectiles/{ => Ranged}/TerraBallR.png (100%) rename Projectiles/{ => Ranged}/TerraBallV.cs (95%) rename Projectiles/{ => Ranged}/TerraBallV.png (100%) rename Projectiles/{ => Ranged}/TerraBallY.cs (95%) rename Projectiles/{ => Ranged}/TerraBallY.png (100%) rename Projectiles/{ => Ranged}/TerraBullet.cs (94%) rename Projectiles/{ => Ranged}/TerraBullet.png (100%) rename Projectiles/{ => Ranged}/TerraBulletSplit.cs (96%) rename Projectiles/{ => Ranged}/TerraBulletSplit.png (100%) rename Projectiles/{ => Ranged}/TerraFireBlue.cs (95%) rename Projectiles/{ => Ranged}/TerraFireBlue.png (100%) rename Projectiles/{ => Ranged}/TerraFireGreen.cs (95%) rename Projectiles/{ => Ranged}/TerraFireGreen.png (100%) rename Projectiles/{ => Ranged}/TerraFireGreen2.cs (95%) rename Projectiles/{ => Ranged}/TerraFireGreen2.png (100%) rename Projectiles/{ => Ranged}/TerraFireRed.cs (95%) rename Projectiles/{ => Ranged}/TerraFireRed.png (100%) rename Projectiles/{ => Ranged}/TitRail.cs (93%) rename Projectiles/{ => Ranged}/TitRail.png (100%) rename Projectiles/{ => Ranged}/TorrentialArrow.cs (96%) rename Projectiles/{ => Ranged}/TorrentialArrow.png (100%) rename Projectiles/{ => Ranged}/Triploon.cs (95%) rename Projectiles/{ => Ranged}/Triploon.png (100%) rename Projectiles/{ => Ranged}/TyphoonArrow.cs (92%) rename Projectiles/{ => Ranged}/TyphoonArrow.png (100%) rename Projectiles/{ => Ranged}/TyphoonBubble.cs (96%) rename Projectiles/{ => Ranged}/TyphoonBubble.png (100%) rename Projectiles/{ => Ranged}/VanquisherArrow.cs (95%) rename Projectiles/{ => Ranged}/VanquisherArrow.png (100%) rename Projectiles/{ => Ranged}/VeriumBullet.cs (96%) rename Projectiles/{ => Ranged}/VeriumBullet.png (100%) rename Projectiles/{ => Ranged}/Voidragon.cs (96%) rename Projectiles/{ => Ranged}/Voidragon.png (100%) rename Projectiles/{ => Ranged}/WaterSpout.cs (96%) rename Projectiles/{ => Ranged}/WaterSpout.png (100%) rename Projectiles/{ => Rogue}/AccretionDisk.cs (94%) rename Projectiles/{ => Rogue}/AccretionDisk.png (100%) rename Projectiles/{ => Rogue}/AccretionDisk2.cs (90%) rename Projectiles/{ => Rogue}/AccretionDisk2.png (100%) rename Projectiles/{ => Rogue}/AdamantiteThrowingAxeProjectile.cs (85%) rename Projectiles/{ => Rogue}/AdamantiteThrowingAxeProjectile.png (100%) rename Projectiles/{ => Rogue}/BallisticPoisonBomb.cs (96%) create mode 100644 Projectiles/Rogue/BallisticPoisonBomb.png rename Projectiles/{ => Rogue}/BallisticPoisonBombSpike.cs (93%) create mode 100644 Projectiles/Rogue/BallisticPoisonBombSpike.png rename Projectiles/{ => Rogue}/BrackishFlask.cs (92%) rename Projectiles/{ => Rogue}/BrackishFlask.png (100%) rename Projectiles/{ => Rogue}/BrackishWater.cs (91%) rename Projectiles/{ => Rogue}/BrackishWater.png (100%) rename Projectiles/{ => Rogue}/BrackishWaterBlast.cs (93%) rename Projectiles/{ => Rogue}/BrackishWaterBlast.png (100%) rename Projectiles/{ => Rogue}/Brimblade.cs (90%) rename Projectiles/{ => Rogue}/Brimblade.png (100%) rename Projectiles/{ => Rogue}/Brimblade2.cs (86%) rename Projectiles/{ => Rogue}/Brimblade2.png (100%) rename Projectiles/{ => Rogue}/Celestus.cs (95%) create mode 100644 Projectiles/Rogue/Celestus.png rename Projectiles/{ => Rogue}/Celestus2.cs (92%) rename Projectiles/{ => Rogue}/Celestus2.png (100%) rename Projectiles/{ => Rogue}/CobaltKunaiProjectile.cs (89%) rename Projectiles/{ => Rogue}/CobaltKunaiProjectile.png (100%) rename Projectiles/{ => Rogue}/CosmicKunai.cs (92%) rename Projectiles/{ => Rogue}/CosmicKunai.png (100%) rename Projectiles/{ => Rogue}/Crushax.cs (91%) rename Projectiles/{ => Rogue}/Crushax.png (100%) rename Projectiles/{ => Rogue}/CrystalPiercerProjectile.cs (92%) rename Projectiles/{ => Rogue}/CrystalPiercerProjectile.png (100%) rename Projectiles/{ => Rogue}/Crystalline.cs (92%) create mode 100644 Projectiles/Rogue/Crystalline.png rename Projectiles/{ => Rogue}/Crystalline2.cs (90%) create mode 100644 Projectiles/Rogue/Crystalline2.png rename Projectiles/{ => Rogue}/CursedDagger.cs (88%) rename Projectiles/{ => Rogue}/CursedDagger.png (100%) rename Projectiles/{ => Rogue}/DuststormCloud.cs (91%) rename Projectiles/{ => Rogue}/DuststormCloud.png (100%) rename Projectiles/{ => Rogue}/DuststormInABottle.cs (90%) rename Projectiles/{ => Rogue}/DuststormInABottle.png (100%) rename Projectiles/{ => Rogue}/EmpyreanKnives.cs (93%) rename Projectiles/{ => Rogue}/EmpyreanKnives.png (100%) rename Projectiles/{ => Rogue}/EradicatorProjectile.cs (81%) create mode 100644 Projectiles/Rogue/EradicatorProjectile.png create mode 100644 Projectiles/Rogue/EradicatorProjectileGlow.png rename Projectiles/{ => Rogue}/ExecutionersBlade.cs (94%) rename Projectiles/{ => Rogue}/ExecutionersBlade.png (100%) rename Projectiles/{ => Rogue}/FeatherKnifeProjectile.cs (91%) rename Projectiles/{ => Rogue}/FeatherKnifeProjectile.png (100%) rename Projectiles/{ => Rogue}/FlameScytheProjectile.cs (90%) create mode 100644 Projectiles/Rogue/FlameScytheProjectile.png rename Projectiles/{ => Rogue}/FossilShardThrown.cs (87%) rename Projectiles/{ => Rogue}/FossilShardThrown.png (100%) rename Projectiles/{ => Rogue}/GelDartProjectile.cs (90%) rename Projectiles/{ => Rogue}/GelDartProjectile.png (100%) rename Projectiles/{ => Rogue}/GhoulishGouger.cs (93%) rename Projectiles/{ => Rogue}/GhoulishGouger.png (100%) rename Projectiles/{ => Rogue}/IceStarProjectile.cs (93%) rename Projectiles/{ => Rogue}/IceStarProjectile.png (100%) rename Projectiles/{ => Rogue}/IchorSpear.cs (91%) rename Projectiles/{ => Rogue}/IchorSpear.png (100%) rename Projectiles/{ => Rogue}/Lionfish.cs (96%) rename Projectiles/{ => Rogue}/Lionfish.png (100%) rename Projectiles/{ => Rogue}/Malachite.cs (94%) rename Projectiles/{ => Rogue}/Malachite.png (100%) rename Projectiles/{ => Rogue}/MalachiteBolt.cs (95%) rename Projectiles/{ => Rogue}/MalachiteBolt.png (100%) rename Projectiles/{ => Rogue}/MangroveChakramProjectile.cs (91%) rename Projectiles/{ => Rogue}/MangroveChakramProjectile.png (100%) rename Projectiles/{ => Rogue}/MoltenAmputator.cs (92%) rename Projectiles/{ => Rogue}/MoltenAmputator.png (100%) rename Projectiles/{ => Rogue}/MoltenBlobThrown.cs (93%) rename Projectiles/{ => Rogue}/MoltenBlobThrown.png (100%) rename Projectiles/{ => Rogue}/Mycoroot.cs (90%) rename Projectiles/{ => Rogue}/Mycoroot.png (100%) rename Projectiles/{ => Rogue}/MythrilKnifeProjectile.cs (90%) rename Projectiles/{ => Rogue}/MythrilKnifeProjectile.png (100%) rename Projectiles/{ => Rogue}/OPHammer.cs (94%) rename Projectiles/{ => Rogue}/OPHammer.png (100%) rename Projectiles/{ => Rogue}/OrichalcumSpikedGemstoneProjectile.cs (91%) rename Projectiles/{ => Rogue}/OrichalcumSpikedGemstoneProjectile.png (100%) rename Projectiles/{ => Rogue}/PalladiumJavelinProjectile.cs (90%) rename Projectiles/{ => Rogue}/PalladiumJavelinProjectile.png (100%) rename Projectiles/{ => Rogue}/ProfanedTrident.cs (94%) rename Projectiles/{ => Rogue}/ProfanedTrident.png (100%) rename Projectiles/{ => Rogue}/Pwnagehammer.cs (90%) rename Projectiles/{ => Rogue}/Pwnagehammer.png (100%) rename Projectiles/{ => Rogue}/RotBallProjectile.cs (88%) rename Projectiles/{ => Rogue}/RotBallProjectile.png (100%) rename Projectiles/{ => Rogue}/RoyalKnife.cs (91%) rename Projectiles/{ => Rogue}/RoyalKnife.png (100%) rename Projectiles/{ => Rogue}/ScourgeoftheDesert.cs (88%) rename Projectiles/{ => Rogue}/ScourgeoftheDesert.png (100%) rename Projectiles/{ => Rogue}/SeashellBoomerangProjectile.cs (83%) rename Projectiles/{ => Rogue}/SeashellBoomerangProjectile.png (100%) create mode 100644 Projectiles/Rogue/ShatteredExplosion.cs create mode 100644 Projectiles/Rogue/ShatteredExplosion.png create mode 100644 Projectiles/Rogue/ShatteredSun.cs create mode 100644 Projectiles/Rogue/ShatteredSun.png create mode 100644 Projectiles/Rogue/ShatteredSun2.cs create mode 100644 Projectiles/Rogue/ShatteredSun2.png create mode 100644 Projectiles/Rogue/ShatteredSun3.cs create mode 100644 Projectiles/Rogue/ShatteredSun3.png rename Projectiles/{ => Rogue}/SpearofPaleolith.cs (92%) rename Projectiles/{ => Rogue}/SpearofPaleolith.png (100%) rename Projectiles/{ => Rogue}/TarragonThrowingDartProjectile.cs (91%) rename Projectiles/{ => Rogue}/TarragonThrowingDartProjectile.png (100%) rename Projectiles/{ => Rogue}/TitaniumShurikenProjectile.cs (88%) rename Projectiles/{ => Rogue}/TitaniumShurikenProjectile.png (100%) rename Projectiles/{ => Rogue}/ToothBallProjectile.cs (88%) rename Projectiles/{ => Rogue}/ToothBallProjectile.png (100%) rename Projectiles/{ => Rogue}/TriactisOPHammer.cs (95%) rename Projectiles/{ => Rogue}/TriactisOPHammer.png (100%) rename Projectiles/{ => Rogue}/UrchinStinger.cs (86%) rename Projectiles/{ => Rogue}/UrchinStinger.png (100%) rename Projectiles/{ => Rogue}/Valediction.cs (96%) rename Projectiles/{ => Rogue}/Valediction.png (100%) rename Projectiles/{ => Rogue}/WulfrumKnife.cs (88%) rename Projectiles/{ => Rogue}/WulfrumKnife.png (100%) rename Projectiles/{ => Rogue}/XerocPitchforkProjectile.cs (91%) rename Projectiles/{ => Rogue}/XerocPitchforkProjectile.png (100%) delete mode 100644 Projectiles/ScourgeoftheCosmos.png delete mode 100644 Projectiles/ScourgeoftheCosmosMini.png delete mode 100644 Projectiles/SirenLure.png delete mode 100644 Projectiles/SirenYoung.png delete mode 100644 Projectiles/SolsticeBeam.cs rename Projectiles/{ => Summon}/AngryChicken.cs (86%) rename Projectiles/{ => Summon}/AngryChicken.png (100%) rename Projectiles/{ => Summon}/AquaticStar.cs (72%) rename Projectiles/{ => Summon}/AquaticStar.png (100%) rename Projectiles/{ => Summon}/BabyPlaguebringer.png (100%) rename Projectiles/{ => Summon}/BigBustyRose.cs (89%) rename Projectiles/{ => Summon}/BigBustyRose.png (100%) rename Projectiles/{ => Summon}/BloodClotMinion.cs (91%) rename Projectiles/{ => Summon}/BloodClotMinion.png (100%) rename Projectiles/{ => Summon}/BrimstoneFireSummon.cs (95%) rename Projectiles/{ => Summon}/BrimstoneFireSummon.png (100%) create mode 100644 Projectiles/Summon/BrimstoneLaserSummon.cs rename Projectiles/{ => Summon}/BrimstoneLaserSummon.png (100%) rename Projectiles/{ => Summon}/BrittleStar.cs (71%) rename Projectiles/{ => Summon}/BrittleStar.png (100%) rename Projectiles/{ => Summon}/Calamari.cs (91%) rename Projectiles/{ => Summon}/Calamari.png (100%) rename Projectiles/{ => Summon}/CalamariInk.cs (97%) rename Projectiles/{ => Summon}/CalamariInk.png (100%) rename Projectiles/{ => Summon}/Calamitamini.cs (86%) rename Projectiles/{ => Summon}/Calamitamini.png (100%) rename Projectiles/{ => Summon}/Cataclymini.cs (86%) rename Projectiles/{ => Summon}/Cataclymini.png (100%) rename Projectiles/{ => Summon}/Catastromini.cs (87%) rename Projectiles/{ => Summon}/Catastromini.png (100%) rename Projectiles/{ => Summon}/ChaosFlame.cs (94%) rename Projectiles/{ => Summon}/ChaosFlame.png (100%) rename Projectiles/{ => Summon}/ChaosSpirit.cs (78%) create mode 100644 Projectiles/Summon/ChaosSpirit.png rename Projectiles/{ => Summon}/CloudyWaifu.cs (87%) rename Projectiles/{ => Summon}/CloudyWaifu.png (100%) rename Projectiles/{ => Summon}/CloudyWaifuAttack.png (100%) rename Projectiles/{ => Summon}/Corroslime.cs (77%) rename Projectiles/{ => Summon}/Corroslime.png (100%) rename Projectiles/{ => Summon}/CosmicBlast.cs (97%) rename Projectiles/{ => Summon}/CosmicBlast.png (100%) rename Projectiles/{ => Summon}/CosmicBlastBig.cs (97%) rename Projectiles/{ => Summon}/CosmicBlastBig.png (100%) rename Projectiles/{ => Summon}/CosmicEnergy.cs (86%) rename Projectiles/{ => Summon}/CosmicEnergy.png (100%) rename Projectiles/{ => Summon}/Cosmilamp.cs (91%) rename Projectiles/{ => Summon}/Cosmilamp.png (100%) rename Projectiles/{ => Summon}/Crimslime.cs (77%) rename Projectiles/{ => Summon}/Crimslime.png (100%) rename Projectiles/{ => Summon}/DaedalusCrystal.cs (79%) rename Projectiles/{ => Summon}/DaedalusCrystal.png (100%) rename Projectiles/{ => Summon}/DaedalusCrystalShot.cs (95%) rename Projectiles/{ => Summon}/DaedalusCrystalShot.png (100%) rename Projectiles/{ => Summon}/DankCreeper.cs (91%) rename Projectiles/{ => Summon}/DankCreeper.png (100%) rename Projectiles/{ => Summon}/Dreadmine.cs (96%) rename Projectiles/{ => Summon}/Dreadmine.png (100%) rename Projectiles/{ => Summon}/DreadmineTurret.cs (82%) rename Projectiles/{ => Summon}/DreadmineTurret.png (100%) rename Projectiles/{ => Summon}/DrewsSandyWaifu.cs (88%) rename Projectiles/{ => Summon}/DrewsSandyWaifu.png (100%) rename Projectiles/{ => Summon}/ElementalAxe.cs (85%) rename Projectiles/{ => Summon}/ElementalAxe.png (100%) rename Projectiles/{ => Summon}/FlameBlast.cs (96%) rename Projectiles/{ => Summon}/FlameBlast.png (100%) rename Projectiles/{ => Summon}/FlameBurst.cs (96%) rename Projectiles/{ => Summon}/FlameBurst.png (100%) rename Projectiles/{ => Summon}/FrostMistFriendly.cs (55%) rename Projectiles/{ => Summon}/FrostMistFriendly.png (100%) rename Projectiles/{ => Summon}/FungalClump.cs (76%) rename Projectiles/{ => Summon}/FungalClump.png (100%) rename Projectiles/{ => Summon}/GhostFire.cs (93%) rename Projectiles/{ => Summon}/GhostFire.png (100%) rename Projectiles/{ => Summon}/GhostlyMine.cs (83%) rename Projectiles/{ => Summon}/GhostlyMine.png (100%) rename Projectiles/{ => Summon}/GigaFlareFriendly.cs (97%) rename Projectiles/{ => Summon}/GigaFlareFriendly.png (100%) rename Projectiles/{ => Summon}/Herring.cs (86%) rename Projectiles/{ => Summon}/Herring.png (100%) rename Projectiles/{ => Summon}/IceClasper.cs (87%) rename Projectiles/{ => Summon}/IceClasper.png (100%) rename Projectiles/{ => Summon}/MechwormBody.cs (95%) create mode 100644 Projectiles/Summon/MechwormBody.png rename Projectiles/{ => Summon}/MechwormBody2.cs (95%) create mode 100644 Projectiles/Summon/MechwormBody2.png rename Projectiles/{ => Summon}/MechwormHead.cs (90%) create mode 100644 Projectiles/Summon/MechwormHead.png create mode 100644 Projectiles/Summon/MechwormHeadGlow.png rename Projectiles/{ => Summon}/MechwormTail.cs (95%) create mode 100644 Projectiles/Summon/MechwormTail.png rename Projectiles/{ => Summon}/MiniSandShark.cs (96%) rename Projectiles/{ => Summon}/MiniSandShark.png (100%) rename Projectiles/{ => Summon}/PhantomGuy.cs (85%) rename Projectiles/{ => Summon}/PhantomGuy.png (100%) rename Projectiles/{ => Summon}/PhoenixFireFriendly.cs (95%) rename Projectiles/{ => Summon}/PhoenixFireFriendly.png (100%) rename Projectiles/{ => Summon}/ProfanedEnergy.cs (80%) rename Projectiles/{ => Summon}/ProfanedEnergy.png (100%) rename Projectiles/{ => Summon}/ReaverOrb.cs (79%) rename Projectiles/{ => Summon}/ReaverOrb.png (100%) rename Projectiles/{ => Summon}/RedDevil.cs (93%) rename Projectiles/{ => Summon}/RedDevil.png (100%) rename Projectiles/{ => Summon}/SandBolt.cs (93%) rename Projectiles/{ => Summon}/SandBolt.png (100%) rename Projectiles/{ => Summon}/SandMark.cs (96%) rename Projectiles/{ => Summon}/SandMark.png (100%) rename Projectiles/{ => Summon}/SandTornado.cs (96%) rename Projectiles/{ => Summon}/SandTornado.png (100%) rename Projectiles/{ => Summon}/Sandnado.cs (91%) rename Projectiles/{ => Summon}/Sandnado.png (100%) rename Projectiles/{ => Summon}/SandyWaifu.cs (88%) rename Projectiles/{ => Summon}/SandyWaifu.png (100%) rename Projectiles/{ => Summon}/Shroomling.png (100%) rename Projectiles/{ => Summon}/SilvaCrystal.cs (88%) rename Projectiles/{ => Summon}/SilvaCrystal.png (100%) rename Projectiles/{ => Summon}/SilvaCrystalExplosion.cs (97%) rename Projectiles/{ => Summon}/SilvaCrystalExplosion.png (100%) rename Projectiles/{ => Summon}/SirenLure.cs (79%) create mode 100644 Projectiles/Summon/SirenLure.png rename Projectiles/{ => Summon}/SirenSongFriendly.cs (73%) rename Projectiles/{ => Summon}/SirenSongFriendly.png (73%) rename Projectiles/{ => Summon}/SlimeGod.cs (74%) rename Projectiles/{ => Summon}/SlimeGod.png (100%) rename Projectiles/{ => Summon}/SlimeGodAlt.cs (73%) rename Projectiles/{ => Summon}/SlimeGodAlt.png (100%) rename Projectiles/{ => Summon}/SolarBeam.cs (93%) rename Projectiles/{ => Summon}/SolarBeam.png (100%) rename Projectiles/{ => Summon}/SolarGod.cs (76%) rename Projectiles/{ => Summon}/SolarGod.png (100%) rename Projectiles/{ => Summon}/SolarPixie.cs (77%) rename Projectiles/{ => Summon}/SolarPixie.png (100%) rename Projectiles/{ => Summon}/StormMarkSummon.cs (96%) rename Projectiles/{ => Summon}/StormMarkSummon.png (100%) rename Projectiles/{ => Summon}/Urchin.cs (80%) rename Projectiles/{ => Summon}/Urchin.png (100%) rename Projectiles/{ => Summon}/UrchinSpike.cs (92%) rename Projectiles/{ => Summon}/UrchinSpike.png (100%) rename Projectiles/{ => Summon}/Valkyrie.cs (86%) rename Projectiles/{ => Summon}/Valkyrie.png (100%) rename Projectiles/{ => Summon}/WaterSpearFriendly.cs (90%) create mode 100644 Projectiles/Summon/WaterSpearFriendly.png rename Projectiles/{ => Summon}/WulfrumDroid.png (100%) create mode 100644 Projectiles/Summon/desktop.ini create mode 100644 Projectiles/SunkenSea/AquaStream.cs create mode 100644 Projectiles/SunkenSea/AquaStream.png create mode 100644 Projectiles/SunkenSea/AquamarineBolt.cs rename Projectiles/{ChaosFlare2.png => SunkenSea/AquamarineBolt.png} (100%) create mode 100644 Projectiles/SunkenSea/Aquashard.cs create mode 100644 Projectiles/SunkenSea/Aquashard.png create mode 100644 Projectiles/SunkenSea/AquashardSplit.cs create mode 100644 Projectiles/SunkenSea/AquashardSplit.png create mode 100644 Projectiles/SunkenSea/ClamCrusherFlail.cs create mode 100644 Projectiles/SunkenSea/ClamCrusherFlail.png create mode 100644 Projectiles/SunkenSea/ClamorRifleProj.cs rename Projectiles/{GodSlayerShrapnelRound.png => SunkenSea/ClamorRifleProj.png} (100%) create mode 100644 Projectiles/SunkenSea/ClamorRifleProjSplit.cs rename Projectiles/{GoldenGun.png => SunkenSea/ClamorRifleProjSplit.png} (100%) create mode 100644 Projectiles/SunkenSea/CoralBubble.cs create mode 100644 Projectiles/SunkenSea/CoralBubble.png create mode 100644 Projectiles/SunkenSea/CoralBubbleSmall.cs create mode 100644 Projectiles/SunkenSea/CoralBubbleSmall.png create mode 100644 Projectiles/SunkenSea/EutrophicScimitarProj.cs create mode 100644 Projectiles/SunkenSea/EutrophicScimitarProj.png create mode 100644 Projectiles/SunkenSea/EutrophicSpark.cs rename Projectiles/{GodSlayerShrapnel.png => SunkenSea/EutrophicSpark.png} (100%) create mode 100644 Projectiles/SunkenSea/PearlBurst.cs create mode 100644 Projectiles/SunkenSea/PearlBurst.png create mode 100644 Projectiles/SunkenSea/PearlRain.cs create mode 100644 Projectiles/SunkenSea/PearlRain.png create mode 100644 Projectiles/SunkenSea/PendantProjectile1.cs create mode 100644 Projectiles/SunkenSea/PendantProjectile1.png create mode 100644 Projectiles/SunkenSea/PendantProjectile2.cs create mode 100644 Projectiles/SunkenSea/PendantProjectile2.png create mode 100644 Projectiles/SunkenSea/PendantProjectile3.cs create mode 100644 Projectiles/SunkenSea/PendantProjectile3.png create mode 100644 Projectiles/SunkenSea/PoseidonTyphoon.cs create mode 100644 Projectiles/SunkenSea/PoseidonTyphoon.png create mode 100644 Projectiles/SunkenSea/Prismalline.cs create mode 100644 Projectiles/SunkenSea/Prismalline.png create mode 100644 Projectiles/SunkenSea/Prismalline2.cs create mode 100644 Projectiles/SunkenSea/Prismalline2.png create mode 100644 Projectiles/SunkenSea/Prismalline3.cs create mode 100644 Projectiles/SunkenSea/Prismalline3.png create mode 100644 Projectiles/SunkenSea/SeafoamBomb.cs create mode 100644 Projectiles/SunkenSea/SeafoamBomb.png create mode 100644 Projectiles/SunkenSea/SeafoamBubble.cs create mode 100644 Projectiles/SunkenSea/SeafoamBubble.png create mode 100644 Projectiles/SunkenSea/SeashineSwordProj.cs create mode 100644 Projectiles/SunkenSea/SeashineSwordProj.png create mode 100644 Projectiles/SunkenSea/SerpentineBody.cs create mode 100644 Projectiles/SunkenSea/SerpentineBody.png create mode 100644 Projectiles/SunkenSea/SerpentineHead.cs create mode 100644 Projectiles/SunkenSea/SerpentineHead.png create mode 100644 Projectiles/SunkenSea/SerpentineTail.cs create mode 100644 Projectiles/SunkenSea/SerpentineTail.png create mode 100644 Projectiles/SunkenSea/Shellfish.cs create mode 100644 Projectiles/SunkenSea/Shellfish.png create mode 100644 Projectiles/SunkenSea/WhirlpoolProjectile.cs create mode 100644 Projectiles/SunkenSea/WhirlpoolProjectile.png delete mode 100644 Projectiles/TheGodsGambitProjectile.png delete mode 100644 Projectiles/TheObliterator.png rename Projectiles/{ => Typeless}/AstralFallingSand.cs (97%) rename Projectiles/{ => Typeless}/AstralFallingSand.png (100%) rename Projectiles/{ => Typeless}/AstralSpray.cs (98%) rename Projectiles/{ => Typeless}/AstralSpray.png (100%) rename Projectiles/{ => Typeless}/AstralStar.cs (94%) rename Projectiles/{ => Typeless}/AstralStar.png (100%) rename Projectiles/{ => Typeless}/AtaxiaOrb.cs (96%) rename Projectiles/{ => Typeless}/AtaxiaOrb.png (100%) rename Projectiles/{ => Typeless}/BallisticPoisonCloud.cs (93%) rename Projectiles/{ => Typeless}/BallisticPoisonCloud.png (100%) rename Projectiles/{ => Typeless}/BallisticPoisonCloud2.cs (93%) rename Projectiles/{ => Typeless}/BallisticPoisonCloud2.png (100%) rename Projectiles/{ => Typeless}/BallisticPoisonCloud3.cs (93%) rename Projectiles/{ => Typeless}/BallisticPoisonCloud3.png (100%) rename Projectiles/{ => Typeless}/BloodBomb.cs (93%) rename Projectiles/{ => Typeless}/BloodBomb.png (100%) rename Projectiles/{ => Typeless}/BloodBombExplosion.cs (94%) rename Projectiles/{ => Typeless}/BloodBombExplosion.png (100%) rename Projectiles/{ => Typeless}/ChaosBlaze.cs (95%) rename Projectiles/{ => Typeless}/ChaosBlaze.png (100%) rename Projectiles/{ => Typeless}/ChaosFlare.cs (95%) rename Projectiles/{LunicBeam.png => Typeless/ChaosFlare.png} (100%) rename Projectiles/{ => Typeless}/ChaosFlare2.cs (95%) rename Projectiles/{TarraEnergy.png => Typeless/ChaosFlare2.png} (100%) rename Projectiles/{ => Typeless}/ChaosGeyser.cs (95%) rename Projectiles/{ => Typeless}/ChaosGeyser.png (100%) rename Projectiles/{ => Typeless}/DarkEnergySpawn.cs (92%) rename Projectiles/{ => Typeless}/DarkEnergySpawn.png (100%) rename Projectiles/{ => Typeless}/DragonDust.cs (95%) rename Projectiles/{ => Typeless}/DragonDust.png (100%) rename Projectiles/{ => Typeless}/FabsolDust.cs (93%) rename Projectiles/{ => Typeless}/FabsolDust.png (100%) rename Projectiles/{ => Typeless}/FlareExplosion.cs (94%) rename Projectiles/{ => Typeless}/FlareExplosion.png (100%) rename Projectiles/{ => Typeless}/GhostlyBolt.cs (94%) rename Projectiles/{ => Typeless}/GhostlyBolt.png (100%) rename Projectiles/{ => Typeless}/GodKiller.cs (96%) rename Projectiles/{ => Typeless}/GodKiller.png (100%) rename Projectiles/{ => Typeless}/GodSlayerBlaze.cs (94%) rename Projectiles/{ => Typeless}/GodSlayerBlaze.png (100%) rename Projectiles/{ => Typeless}/GodSlayerOrb.cs (95%) rename Projectiles/{ => Typeless}/GodSlayerOrb.png (100%) rename Projectiles/{ => Typeless}/GodSlayerPhantom.cs (96%) rename Projectiles/{ => Typeless}/GodSlayerPhantom.png (100%) rename Projectiles/{ => Typeless}/GodSlayerShrapnel.cs (95%) rename Projectiles/{StandingFire.png => Typeless/GodSlayerShrapnel.png} (100%) rename Projectiles/{ => Typeless}/GodSlayerShrapnelRound.cs (93%) create mode 100644 Projectiles/Typeless/GodSlayerShrapnelRound.png rename Projectiles/{ => Typeless}/GoldenGun.cs (94%) create mode 100644 Projectiles/Typeless/GoldenGun.png rename Projectiles/{ => Typeless}/GraySpawn.cs (90%) rename Projectiles/{ => Typeless}/GraySpawn.png (100%) rename Projectiles/{ => Typeless}/GrenadeRound.cs (95%) rename Projectiles/{ => Typeless}/GrenadeRound.png (100%) rename Projectiles/{ => Typeless}/HolyEruption.cs (95%) rename Projectiles/{ => Typeless}/HolyEruption.png (100%) rename Projectiles/{ => Typeless}/HolyExplosion.cs (95%) rename Projectiles/{ => Typeless}/HolyExplosion.png (100%) rename Projectiles/{ => Typeless}/HolyExplosionSupreme.cs (95%) rename Projectiles/{ => Typeless}/HolyExplosionSupreme.png (100%) rename Projectiles/{ => Typeless}/HolyFlameBomb.cs (95%) rename Projectiles/{ => Typeless}/HolyFlameBomb.png (100%) rename Projectiles/{ => Typeless}/LunicBeam.cs (96%) create mode 100644 Projectiles/Typeless/LunicBeam.png rename Projectiles/{ => Typeless}/MageHammerBoom.cs (91%) rename Projectiles/{ => Typeless}/MageHammerBoom.png (100%) rename Projectiles/{ => Typeless}/MagnumRound.cs (89%) rename Projectiles/{ => Typeless}/MagnumRound.png (100%) rename Projectiles/{ => Typeless}/MarkRound.cs (96%) rename Projectiles/{ => Typeless}/MarkRound.png (100%) rename Projectiles/{ => Typeless}/Nanotech.cs (96%) rename Projectiles/{ => Typeless}/Nanotech.png (100%) rename Projectiles/{ => Typeless}/NebulaDust.cs (93%) rename Projectiles/{ => Typeless}/NebulaDust.png (100%) rename Projectiles/{ => Typeless}/NebulaStar.cs (86%) create mode 100644 Projectiles/Typeless/NebulaStar.png create mode 100644 Projectiles/Typeless/NebulaStarGlow.png rename Projectiles/{ => Typeless}/NobodyKnows.cs (88%) rename Projectiles/{ => Typeless}/NobodyKnows.png (100%) rename Projectiles/{ => Typeless}/OmegaBlueTentacle.cs (97%) rename Projectiles/{ => Typeless}/OmegaBlueTentacle.png (100%) rename Projectiles/{ => Typeless}/PoisonousSeawater.cs (94%) rename Projectiles/{ => Typeless}/PoisonousSeawater.png (100%) rename Projectiles/{ => Typeless}/ReaverBlast.cs (95%) rename Projectiles/{ => Typeless}/ReaverBlast.png (100%) rename Projectiles/{ => Typeless}/RedSpawn.cs (90%) rename Projectiles/{ => Typeless}/RedSpawn.png (100%) rename Projectiles/{ => Typeless}/Seashell.cs (92%) rename Projectiles/{ => Typeless}/Seashell.png (100%) rename Projectiles/{ => Typeless}/SkyFlareFriendly.cs (97%) rename Projectiles/{ => Typeless}/SkyFlareFriendly.png (100%) rename Projectiles/{ => Typeless}/SparkInfernal.cs (93%) rename Projectiles/{ => Typeless}/SparkInfernal.png (100%) rename Projectiles/{ => Typeless}/StandingFire.cs (95%) rename Projectiles/{XerocFire.png => Typeless/StandingFire.png} (100%) rename Projectiles/{ => Typeless}/StickyFeatherAero.cs (96%) rename Projectiles/{ => Typeless}/StickyFeatherAero.png (100%) rename Projectiles/{ => Typeless}/StormBolt.cs (93%) rename Projectiles/{ => Typeless}/StormBolt.png (100%) rename Projectiles/{ => Typeless}/TarraEnergy.cs (95%) create mode 100644 Projectiles/Typeless/TarraEnergy.png rename Projectiles/{ => Typeless}/TheDeadlyMicrobeProjectile.png (100%) rename Projectiles/{ => Typeless}/TrueBattleSpawn.cs (90%) rename Projectiles/{ => Typeless}/TrueBattleSpawn.png (100%) rename Projectiles/{ => Typeless}/VanquisherArrow2.cs (95%) rename Projectiles/{ => Typeless}/VanquisherArrow2.png (100%) rename Projectiles/{ => Typeless}/XerocBlast.cs (95%) rename Projectiles/{ => Typeless}/XerocBlast.png (100%) rename Projectiles/{ => Typeless}/XerocBubble.cs (95%) rename Projectiles/{ => Typeless}/XerocBubble.png (100%) rename Projectiles/{ => Typeless}/XerocFire.cs (95%) create mode 100644 Projectiles/Typeless/XerocFire.png rename Projectiles/{ => Typeless}/XerocOrb.cs (96%) rename Projectiles/{ => Typeless}/XerocOrb.png (100%) rename Projectiles/{ => Typeless}/XerocStar.cs (95%) rename Projectiles/{ => Typeless}/XerocStar.png (100%) delete mode 100644 Projectiles/Vehemence.png delete mode 100644 Projectiles/WaterSpearFriendly.png delete mode 100644 Projectiles/YharimsCrystal.png create mode 100644 Sounds/Custom/AdrenalineBurnout1.cs create mode 100644 Sounds/Custom/AdrenalineBurnout1.wav create mode 100644 Sounds/Custom/AdrenalineBurnout2.cs create mode 100644 Sounds/Custom/AdrenalineBurnout2.wav create mode 100644 Sounds/Custom/RogueStealth.cs create mode 100644 Sounds/Custom/RogueStealth.wav create mode 100644 Sounds/Custom/SilvaActivation.cs create mode 100644 Sounds/Custom/SilvaActivation.wav create mode 100644 Sounds/Custom/SilvaDispel.cs create mode 100644 Sounds/Custom/SilvaDispel.wav create mode 100644 Sounds/Item/ClamImpact.cs create mode 100644 Sounds/Item/ClamImpact.wav create mode 100644 Sounds/Item/TankCannon.cs create mode 100644 Sounds/Item/TankCannon.wav create mode 100644 Tiles/Astral/AstralChestLocked.cs create mode 100644 Tiles/Astral/AstralChestLocked.png create mode 100644 Tiles/Astral/AstralChestLocked_Highlight.png create mode 100644 Tiles/BlueCandle.cs create mode 100644 Tiles/BlueCandle.png create mode 100644 Tiles/ChaosCandle.cs create mode 100644 Tiles/ChaosCandle.png create mode 100644 Tiles/ChaoticBrickWall.png delete mode 100644 Tiles/EutrophicSand.cs delete mode 100644 Tiles/EutrophicSand.png create mode 100644 Tiles/MonsterBanner.cs create mode 100644 Tiles/MonsterBanner.png create mode 100644 Tiles/PinkCandle.cs create mode 100644 Tiles/PinkCandle.png create mode 100644 Tiles/PurpleCandle.cs create mode 100644 Tiles/PurpleCandle.png delete mode 100644 Tiles/SeaPrism.cs delete mode 100644 Tiles/SeaPrism.png create mode 100644 Tiles/SunkenSea/BrainCoral.cs create mode 100644 Tiles/SunkenSea/BrainCoral.png create mode 100644 Tiles/SunkenSea/EutrophicSand.cs create mode 100644 Tiles/SunkenSea/EutrophicSand.png create mode 100644 Tiles/SunkenSea/FanCoral.cs create mode 100644 Tiles/SunkenSea/FanCoral.png create mode 100644 Tiles/SunkenSea/Navystone.cs create mode 100644 Tiles/SunkenSea/Navystone.png create mode 100644 Tiles/SunkenSea/SeaAnemone.cs create mode 100644 Tiles/SunkenSea/SeaAnemone.png create mode 100644 Tiles/SunkenSea/SeaPrism.cs create mode 100644 Tiles/SunkenSea/SeaPrism.png create mode 100644 Tiles/SunkenSea/SeaPrismCrystals.cs create mode 100644 Tiles/SunkenSea/SeaPrismCrystals.png create mode 100644 Tiles/SunkenSea/SmallBrainCoral.cs create mode 100644 Tiles/SunkenSea/SmallBrainCoral.png create mode 100644 Tiles/SunkenSea/SmallTubeCoral.cs create mode 100644 Tiles/SunkenSea/SmallTubeCoral.png create mode 100644 Tiles/SunkenSea/SunkenSeaStalactite.cs create mode 100644 Tiles/SunkenSea/SunkenSeaStalactite.png create mode 100644 Tiles/SunkenSea/TableCoral.cs create mode 100644 Tiles/SunkenSea/TableCoral.png create mode 100644 Tiles/SunkenSea/TubeCoral.cs create mode 100644 Tiles/SunkenSea/TubeCoral.png create mode 100644 Tiles/TranquilityCandle.cs create mode 100644 Tiles/TranquilityCandle.png create mode 100644 Tiles/YellowCandle.cs create mode 100644 Tiles/YellowCandle.png create mode 100644 Walls/EutrophicSandWall.cs create mode 100644 Walls/EutrophicSandWall.png create mode 100644 Walls/NavystoneWall.cs create mode 100644 Walls/NavystoneWall.png delete mode 100644 Waters/GreatSeaWater.png delete mode 100644 Waters/GreatSeaWater_Block.png delete mode 100644 Waters/GreatSeaWaterflow.png rename Waters/{GreatSeaWater.cs => SunkenSeaWater.cs} (70%) create mode 100644 Waters/SunkenSeaWater.png create mode 100644 Waters/SunkenSeaWater_Block.png rename Waters/{GreatSeaWaterflow.cs => SunkenSeaWaterflow.cs} (57%) create mode 100644 Waters/SunkenSeaWaterflow.png create mode 100644 WeakReferenceSupport.cs create mode 100644 World/SunkenSea.cs diff --git a/Buffs/Amidias/AmidiasBlessing.cs b/Buffs/Amidias/AmidiasBlessing.cs new file mode 100644 index 0000000000..a001c3d95d --- /dev/null +++ b/Buffs/Amidias/AmidiasBlessing.cs @@ -0,0 +1,28 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs.Amidias +{ + public class AmidiasBlessing : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Amidias' Blessing"); + Description.SetDefault("You are blessed by Amidias\n" + +"Lets you breath underwater, even in the Abyss!\n" + +"Just don't get hit..."); + Main.debuff[Type] = false; + Main.buffNoSave[Type] = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.GetModPlayer(mod).amidiasBlessing = true; + player.breath = player.breathMax + 91; + } + } +} \ No newline at end of file diff --git a/Buffs/Amidias/AmidiasBlessing.png b/Buffs/Amidias/AmidiasBlessing.png new file mode 100644 index 0000000000000000000000000000000000000000..135deaa5fb4ced9b04471e419878d3da199efcb5 GIT binary patch literal 752 zcmVnJ!VIH;3CQ4|q>7AXo+7jY0e zq)>1W5lJ8}R!OSXq97#31f(WuO~rHH`P%nvbu!=Aq37NE?)y3SJMX=lkeI)=ruZ`3 z^}t*;8~VLYLp>Jz+ZrJgCvF99q?K3e@W zc6aYXGup8o_~_DOpzj%ITP=(Sa0D_W*%K+?8Y^O_o(ZPLi^;RHjE}1?`eY$gT8Cv&kPvVlX3Zd279fQ-T*zu zhC%bLPPC|n>3e$4yZV~prxscd>S-#a%|HXbXTUoJy~78vr~FerzfFxXYpbzZ7WT!% zKY^p4&szP=Ky_)>^7oABJns2VPCQ4P?-}qkz&lz*--2j|5?Q#f%&*+uY%v?3x(u6{ zAagRdf>#+_Cuw}a$-t^juGy?i<>8-uxn%X1t9nXe=G>>utN5=>aFXC;z*Q-CNF?*< zewEG8WEZ+JBj120Htf()Q!m`=c?jFhgu9OK8Sw4_zJ{z^l#U2h%hNErt%9y|)j@_R zUi|^&%}3@gV^&(heGT)U^d4w!*E^jwTaLxi95?sE#-V=Ld@bdUMwVsmI)L+XKBDg$ z@NPoxh{$j6e#3kX<-CZgkXS2vnJ^P@9Onss23+;0p1oo+6iuBFyD(tb?yJQ#ELzdz6Z$4Bck0d8(tQMR#pE?0t6s@j!-dSLiNL&uM$#hu ijcD)t|5<_gb^Hs9!s9NR^B6n;0000(mod); + if (player.ownedProjectileCounts[mod.ProjectileType("HermitCrab")] > 0) + { + modPlayer.hCrab = true; + } + if (!modPlayer.hCrab) + { + player.DelBuff(buffIndex); + buffIndex--; + } + else + { + player.buffTime[buffIndex] = 18000; + } + } + } +} \ No newline at end of file diff --git a/Buffs/Amidias/HermitCrab.png b/Buffs/Amidias/HermitCrab.png new file mode 100644 index 0000000000000000000000000000000000000000..95040cdc6079b6a9a9237b77ad1a5bb45856b737 GIT binary patch literal 618 zcmV-w0+s!VP)xFa-4;C=DvA&?z#7#nWs_y##hd~98=BDpU_WsNCQBByk~b1 zj`K_%*$(Y1Szjnd_GoUCW5wUw%B@G&uZyyV{T4mjX3=ZO{xDEk0F1UOE|RTKHLaJz zCuB!rm)QvTfFmh>y?V!I)ZLt$ZAJ04sW2c7z~lBXg>W_VKvo3e3NmIEBdbMoEi!?e zPaQHwc8_n!W+vMB8mJfmlVi_CBRso3qvwGXtA$bnjG!h;G9V4WfXPL{bTzQ*?6!Z9 zMHfI95Ha)tOf(&M=uyHN;7EZ#*uwnKi@X|;4#02gCxrV?8M3oIX^w%FWMQR7SNxX& z(37VF(g7d^Lxy)QhvWCPv>r6@N`_5fM$`wd#Z6n_M>nXR1=0Z^1*m=~-+bd6#|TbK z)C#%=XNAt#$wiKrOEMrG0HoOAeId~8T2}R9O^9a%B8-PWX)5Z2$bf1WNC#jw_7ONS z=jZ~i5ONq2{m~5TmUR4-Ebb53r>ca~0VI4*E*Nydnv>;L9Mc=Rf_^9{9y%AIG_Bvc zAgg*BN(X>8gtDO)(D$Mr5u!%aY6rD|{kUD{orV<)0LVoJgg%H2EGKK|6;UD0CNueQ zqlzf(d*k=JK#hU20kA0SmRhcn$AC-#2wK|5sZ;>pvVPbUYzN=@00000NkvXXu0mjf E0FWmTg#Z8m literal 0 HcmV?d00001 diff --git a/Buffs/Amidias/SnapClamDebuff.cs b/Buffs/Amidias/SnapClamDebuff.cs new file mode 100644 index 0000000000..14040c9307 --- /dev/null +++ b/Buffs/Amidias/SnapClamDebuff.cs @@ -0,0 +1,26 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs.Amidias +{ + public class SnapClamDebuff : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Clammed"); + Description.SetDefault("Clam clap"); + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + } + + public override void Update(NPC npc, ref int buffIndex) + { + npc.GetGlobalNPC(mod).clamDebuff = true; + } + } +} \ No newline at end of file diff --git a/Buffs/Amidias/SnapClamDebuff.png b/Buffs/Amidias/SnapClamDebuff.png new file mode 100644 index 0000000000000000000000000000000000000000..01f38bb96058424947e3f6b1c2a316328521142a GIT binary patch literal 501 zcmV9YSsYfGs}z_8-_CXWv4cldO zfx+Q`S+^h|00XNYqQ*#=JaTM-e1IB2u#h8Gf0`Ov2n@Ibn7VI)9q(kI45mAcAU;O- z8M@EW6ACW%<>w$Fy6?hWF#WGo4K)o6ItSbfbjF(ta7nIyxDQ1N79y}TMRW)Zm;)3V z)4)FX>SY3^4QoYFe009~H3}bH{+;h>u>6}hZ@_fLIn)q=l@~bEz<@bGiN^u#Vi6G$ zF#XU>0mY}?)2vYVvn)=5`DrK2P{d2Kj-iCyEz9j#Ljt257&H!$lCS`~_}3puT>uLS zQ8(1G|Mf1^x&mDu7A$1}Vqj*2!Xz*a%Ox0f0W1UtjRS5Q{Q(mod).bearPet = true; - bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Bear")] <= 0; - if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Bear"), 0, 0f, player.whoAmI, 0f, 0f); - } - } - } +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; + +namespace CalamityMod.Buffs +{ + public class BearBuff : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Bear"); + Description.SetDefault("A guardian angel is following you."); + Main.buffNoTimeDisplay[Type] = true; + Main.vanityPet[Type] = true; + } + + public override void Update(Player player, ref int buffIndex) + { + player.buffTime[buffIndex] = 18000; + player.GetModPlayer(mod).bearPet = true; + bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("Bear")] <= 0; + if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("Bear"), 0, 0f, player.whoAmI, 0f, 0f); + } + } + } } \ No newline at end of file diff --git a/Buffs/BrimstoneWaifu.cs b/Buffs/BrimstoneWaifu.cs index 730eb5e944..a9f40a7278 100644 --- a/Buffs/BrimstoneWaifu.cs +++ b/Buffs/BrimstoneWaifu.cs @@ -7,7 +7,7 @@ namespace CalamityMod.Buffs { public override void SetDefaults() { - DisplayName.SetDefault("Brimstone Waifu"); + DisplayName.SetDefault("Miss Brimmy"); Description.SetDefault("The brimstone elemental will protect you"); Main.buffNoTimeDisplay[Type] = true; Main.buffNoSave[Type] = true; diff --git a/Buffs/BurntOut.cs b/Buffs/BurntOut.cs index f870507598..c4ae2ab4f9 100644 --- a/Buffs/BurntOut.cs +++ b/Buffs/BurntOut.cs @@ -1,28 +1,28 @@ -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod; -using CalamityMod.NPCs; - -namespace CalamityMod.Buffs -{ - public class BurntOut : ModBuff - { - public override void SetDefaults() - { - DisplayName.SetDefault("Burnt Out"); - Description.SetDefault("You've been burnt out and your guardians are less effective"); - Main.debuff[Type] = true; - Main.pvpBuff[Type] = true; - Main.buffNoSave[Type] = true; - longerExpertDebuff = false; - canBeCleared = false; - } - - public override void Update(Player player, ref int buffIndex) - { - player.GetModPlayer(mod).bOut = true; - } - } +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs +{ + public class BurntOut : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Burnt Out"); + Description.SetDefault("You've been burnt out and your guardians are less effective"); + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + longerExpertDebuff = false; + canBeCleared = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.GetModPlayer(mod).bOut = true; + } + } } \ No newline at end of file diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index 0c15461d9e..a21d641c0d 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -21,34 +21,71 @@ namespace CalamityMod.Buffs { player.GetModPlayer(mod).shine = true; } - if (type == BuffID.IceBarrier) + else if (type == BuffID.IceBarrier) { player.endurance -= 0.1f; } - if (type == BuffID.Rage) + else if (type == BuffID.ObsidianSkin) + { + player.lavaMax += 420; + } + else if (type == BuffID.Rage) { CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; } - if (type == BuffID.Wrath) + else if (type == BuffID.Wrath) { CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; } - if (type == BuffID.WellFed) + else if (type == BuffID.WellFed) { CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; } - if (type >= BuffID.NebulaUpDmg1 && type <= BuffID.NebulaUpDmg3) + else if (type >= BuffID.NebulaUpDmg1 && type <= BuffID.NebulaUpDmg3) { - float nebulaDamage = 0.15f * (float)player.nebulaLevelDamage; + float nebulaDamage = 0.075f * (float)player.nebulaLevelDamage; //7.5% to 22.5% CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += nebulaDamage; - } - if (type == BuffID.Warmth) + player.meleeDamage -= nebulaDamage; + player.rangedDamage -= nebulaDamage; + player.magicDamage -= nebulaDamage; + player.minionDamage -= nebulaDamage; + } + else if (type >= BuffID.NebulaUpLife1 && type <= BuffID.NebulaUpLife3) + { + player.lifeRegen -= 5 * player.nebulaLevelLife; //10 to 30 changed to 5 to 15 + } + else if (type == BuffID.Warmth) { player.buffImmune[mod.BuffType("GlacialState")] = true; player.buffImmune[BuffID.Frozen] = true; player.buffImmune[BuffID.Chilled] = true; } } - } + + public override void ModifyBuffTip(int type, ref string tip, ref int rare) + { + if (type == BuffID.NebulaUpDmg1) + tip = "7.5% increased damage"; + if (type == BuffID.NebulaUpDmg2) + tip = "15% increased damage"; + if (type == BuffID.NebulaUpDmg3) + tip = "22.5% increased damage"; + if (type == BuffID.ChaosState) + { + if (CalamityWorld.revenge) + { + int closestPlayer = (int)Player.FindClosest(new Vector2((float)(Main.maxTilesX / 2), (float)Main.worldSurface / 2f) * 16f, 0, 0); + if (!Main.player[closestPlayer].GetModPlayer(mod).normalityRelocator) + tip = "Using the Rod of Discord will take life and damage taken is increased by 50%"; + else + tip = "Using the Rod of Discord or Normality Relocator will take life"; + } + else + { + tip = "Using the Rod of Discord or Normality Relocator will take life"; + } + } + } + } } diff --git a/Buffs/ChaosCandle.cs b/Buffs/ChaosCandle.cs new file mode 100644 index 0000000000..3a0126669b --- /dev/null +++ b/Buffs/ChaosCandle.cs @@ -0,0 +1,28 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs +{ + public class ChaosCandle : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Chaos Candle"); + Description.SetDefault("Spawn rates around the candle are boosted!"); + Main.buffNoTimeDisplay[Type] = true; + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = false; + longerExpertDebuff = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.GetModPlayer(mod).chaosCandle = true; + } + } +} \ No newline at end of file diff --git a/Buffs/ChaosCandle.png b/Buffs/ChaosCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..f5271e8717b512630b72a33949b2447f047484ed GIT binary patch literal 627 zcmV-(0*w8MP)9YSsYfGz&Nv;*Rfv**FoxOw0)x*1WqA-ciio266v|)MzYi>qkrrSf0}BUO z2(Da5Vh9YF1E7f!SDeFqZYIqMR&wg;ca)HTrwLfdp`{^Md4W3(43q=@qgf0qu~3sZ z0|PwnV|Bq&Pxjrx9uiQEaP_c~5SIFJl>=}Kp+zSB9Dr6Apyzk=xR-HKLCx<3LIPf% z5L*`vxC7v609w+mTYMSpV_51Z6asK{uyO&G8;A`7`a6KcTmbVSEFoZ&2k5C6tvtY4 z8xorfsO|uGWrP+I=1VVu-PBX80j6!G&B1i#hAk+5Y!C1O^AA5g38qVWZ-D8O(RwKA zNG=KK?*M3f!2Ay+pX2hma}cDZ1Ot25LF#*)A;AJEF^O&u3>gQ!esv%0vr9*=4@?M9 z%>fv-A+!Ypi;8R~Nd15P4;Pr$v(ZFJ1F#U#WcdabpSlmyPB;mTdj?`##c)&U?f|sf z5SCwItz=k8IN1r~4S{`!-lF&%mg*&7V1MvfpBYy$7NklY6r4NK*s35Fl0r!*7y~wT){0n|+9Cu? z8?mtw(ujXRud`qNuIiX|XpO_HpZ7MA@BY@9p=@+kN{k0PqEe z2wg4?00n+@-{YiI_U`rLj{{FP7YsXZ|H>4SQgQc50kdIkX@B0ZtHr>u$%Kfm_6+;t zsFk{)T*tWr0g_t~p7a5Xm>(}I#&XA!xy1d(x?z`FZ2-W*ow{tD-V*>I-Y)_0K!Jj- zfy}cQXF)0`;hzHXwA(;m)5lrhyq%s|?_2?W3!;8(G|>0*R1=ap`&DKq007)laUY$NzTce+6qCAfuU;NdQ2(c4oAbIon@uKUBY*w?fY| zR_}j+^))0jV)3B?0C>9@stVB_N0)|eixb|xhFSq;G&0kfUY$#|sRVtGnkr=6kc?&K zhyy#KEuvsXf9GUNUkRg31I5#d|`eFj{?xdPvi3!=q^O@1{1 O0000N2bZe?^JG%heMF*7s+TY3Nh0Ut?3K~z{r&6V8=!Y~v@ zi|*qP#qGoe#7&$*d@neH3kX_G+7qr{6O9ioH*g+I?)O8eZGU4{zc7=P8=8}};>P** zj2yaw)vo&rbN|khL$03!)-13+Jw9Onvfe~60;>(6>-TNs-VUJmSAeTRh%o|;ZK#C+ z0{iPRqQT_&FMuEyW+}~SFuwi^aMcJg(tuj<1HT1yFg;8oIrAK);_C0OfDWec!ruwd zDSD1Czx@}$fPVrMqKFpb93RDh0R|uykYEi=1!3H`;Q{scSK!x+NGTS8@!W<6iZ3EJ z1^8$n&?2?L=(mod).trashMan = true; + bool petProjectileNotSpawned = player.ownedProjectileCounts[mod.ProjectileType("DannyDevito")] <= 0; + if (petProjectileNotSpawned && player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2), 0f, 0f, mod.ProjectileType("DannyDevito"), 0, 0f, player.whoAmI, 0f, 0f); + } + } + } +} \ No newline at end of file diff --git a/Buffs/DannyDevito.png b/Buffs/DannyDevito.png new file mode 100644 index 0000000000000000000000000000000000000000..d22e92e9340d25f3702063f2ddb2914f22e3e7b1 GIT binary patch literal 432 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}c0*}aI z1_r)EAj~ML;ne^Xlq_+LC<)F_D=AMbN@XZW%*-p%%S$a$Fwry6Gc-0~j;>;0VAS<= zaSVxYzdB_j?;!&LS7TSU2ENWoU46V68ZT}%%;O7G-pIPhDT!&D$5|x@9ov$hmh2iG zeUsx7fB*S^+)UHwZuPRzxXb#Lp|dRRp6mQtI(?s>8gGeh97Er#RjXX|8l<$}ET3=a_@Pt0!EHvrJLj=^GgY_q|5I;}lVz(?y>=%$ z+_pp7K{~XeK0;L@y7>0==`gAYgVnvT48gh4oLE7=Axy zeb6Bgl+4Q((;Fw4A@B^yXI|)N;N-9|QRfdsNr-tKgOtE0pX@b};!-U0e=t^r%zL4J zqdijCzQInYkB{;Ek)*RaRjfaba35e-7H6>$=Kpn7VtxRlhV@PMwV!6yo!s2@h|%uy Ww7YGACY8X@W$<+Mb6Mw<&;$U+gq<1y literal 0 HcmV?d00001 diff --git a/Buffs/DrewsSandyWaifu.cs b/Buffs/DrewsSandyWaifu.cs index 20c06a78e7..2ac8a75749 100644 --- a/Buffs/DrewsSandyWaifu.cs +++ b/Buffs/DrewsSandyWaifu.cs @@ -7,8 +7,8 @@ namespace CalamityMod.Buffs { public override void SetDefaults() { - DisplayName.SetDefault("Sandy Waifu"); - Description.SetDefault("The sand elemental will protect you"); + DisplayName.SetDefault("Madame Sandy"); + Description.SetDefault("The sand elemental will heal you"); Main.buffNoTimeDisplay[Type] = true; Main.buffNoSave[Type] = true; } diff --git a/Buffs/Fabsol/BlueSpeedCandle.cs b/Buffs/Fabsol/BlueSpeedCandle.cs new file mode 100644 index 0000000000..899566fab4 --- /dev/null +++ b/Buffs/Fabsol/BlueSpeedCandle.cs @@ -0,0 +1,29 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs.Fabsol +{ + public class BlueSpeedCandle : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Limber"); + Description.SetDefault("The floating flame seems to uplift your very spirit"); + Main.buffNoTimeDisplay[Type] = true; + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = false; + longerExpertDebuff = false; + canBeCleared = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.GetModPlayer(mod).blueCandle = true; + } + } +} \ No newline at end of file diff --git a/Buffs/Fabsol/BlueSpeedCandle.png b/Buffs/Fabsol/BlueSpeedCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..49bd55dfe6236b23284675bd78dd6d18b06eeb96 GIT binary patch literal 490 zcmVs^3^a&h_B4p4PDAmDPq)TydkuDaTgt}H8 zx@ZS|h1TKn1@1FvGBpSOmh0uNNxtv?_y1plFscCn9=e?=W=I&-0sxqsnt`M4+n;}IN2^x9=={wEB(2e2x&!n4LFHt3eZ}h6D}mLg60&%{o%w*Zn@_8+ z&+*3rt|66QY#7D*#;Sa;x�?Xm$Vqm4@xa>9QF|;zV!oZjJlnfI{V}*o7)DihmAh zw7cNi@9Z}K0HanPfZGY)w>Pk_m+nBC39p6|Yk+G{r3#~7d41^t03PpJ0D$}97{Kq{ zbXfH*6H+nXG;e=9F~U;^6x~(+I6#_P*~-(5mcZx_FHfxN*ReTYaP9N(#{rE}DnV=- zRm2!k2lDX08n&NorLO9C_L05Dj2+I4<$ii{^2Y&kJ2Ho3tqCsW+#Q-3+2^j(lM(UH z0iw0QrJTD%GiOmscfeTbDmZ|&f_V#Ua`N7 gNa+p)|NiUv2XUXDZN~jVoB#j-07*qoM6N<$g1JZMKmY&$ literal 0 HcmV?d00001 diff --git a/Buffs/Fabsol/PinkHealthCandle.cs b/Buffs/Fabsol/PinkHealthCandle.cs new file mode 100644 index 0000000000..a54c4da03e --- /dev/null +++ b/Buffs/Fabsol/PinkHealthCandle.cs @@ -0,0 +1,29 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs.Fabsol +{ + public class PinkHealthCandle : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Vigor"); + Description.SetDefault("Its brilliant light suffuses those nearby with hope"); + Main.buffNoTimeDisplay[Type] = true; + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = false; + longerExpertDebuff = false; + canBeCleared = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.GetModPlayer(mod).pinkCandle = true; + } + } +} \ No newline at end of file diff --git a/Buffs/Fabsol/PinkHealthCandle.png b/Buffs/Fabsol/PinkHealthCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..93720eb840e90e33db4fb9d1026da2731f4640ee GIT binary patch literal 570 zcmV-A0>%A_P) zziU%b6vscW+WrFyv4N1m5GkTaoeFla1VuVziK$a2BV8Q~2ptQy_8$<_r7ePnETIG; zN*o-Vl%RtebVvg+4*mlMlMe5l7w+jx16J~`-{rk~&%O6>zUSAyPAZ)N;B}=uV1l?E zzv%!>O;TwP9AE(O{#PIO>k3vY-;Uk*B%LtEqt^fV)B~WnHU~g{{j;lh_aa~u15cZM zLr`j&A@T9fY~TSen_XbYoZkOx?@O>^TNpSkKjOosE9U{&oOb}Yl{^Q)&*e7&{LV#< z17eRFX`GI zIs<+TTs`A{b@VTGZkS^;jeTFYbHSGDN-25-_AnsOzAv=4fuXMjx-QJ@c7S0lh~?v8 z4+Glwqi|BowVu!!@aw?TRuh1;8`lCCN=)di7-zY*Sh{ZiK@zZlfg@QUT}x`WWQCy6 zGqXZ>y-`f)8Q!3St6*byI(e*F!TsQXTS;Tb(~6P?06j?0tk|~z?wCKq5uE@07*qo IM6N<$f`W1b_5c6? literal 0 HcmV?d00001 diff --git a/Buffs/Fabsol/PurpleDefenseCandle.cs b/Buffs/Fabsol/PurpleDefenseCandle.cs new file mode 100644 index 0000000000..bd7ff40153 --- /dev/null +++ b/Buffs/Fabsol/PurpleDefenseCandle.cs @@ -0,0 +1,29 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs.Fabsol +{ + public class PurpleDefenseCandle : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Adamant Will"); + Description.SetDefault("Neither rain nor wind can snuff its undying flame"); + Main.buffNoTimeDisplay[Type] = true; + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = false; + longerExpertDebuff = false; + canBeCleared = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.GetModPlayer(mod).purpleCandle = true; + } + } +} \ No newline at end of file diff --git a/Buffs/Fabsol/PurpleDefenseCandle.png b/Buffs/Fabsol/PurpleDefenseCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..b0eccec1a3b851753b77ae9e65c9bff694eb8a98 GIT binary patch literal 591 zcmV-V0p19Hrem8f{++TA(_ndR@Bx98-03UZYk2yn)RjLU< z$60RLP6==fu>1E2YptWU^Zmq$tCibuEK9X9j?qPx^qI$nxidVBLB%oOkX73hTi0 zVe{ZsZ4H1=joqMsYyUNnd;YK2z8@&}1>;`M)PS6X6ki=szP9B3NI1chkmu6eR2hJ! z^*R9QeIq2I$_^pfnHU zBozJ1hP2o0iAQE{yfeF5{}Qa{_lbvqZo|u&-9KfwoILd^r9(h*EGP>a+eSonz`va0 zAs`KI{s!{et^Ae8ih-xA4}sQL7$-Y>!n5};Bq=@uk}9Lu#M|%%q{`_@ki~|^=|$uf z4*~zq_jdw^CoiNJDW!IMDn{hFVrsI>_L+WW^Wq_(GxwEBXYS?4$zw0Qg5|l7t#c=k dT=;*-{{a~ayU`;3%1i(N002ovPDHLkV1hR}ALRf5 literal 0 HcmV?d00001 diff --git a/Buffs/Fabsol/Trippy.cs b/Buffs/Fabsol/Trippy.cs new file mode 100644 index 0000000000..17a9cfaf69 --- /dev/null +++ b/Buffs/Fabsol/Trippy.cs @@ -0,0 +1,27 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs.Fabsol +{ + public class Trippy : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Trippy"); + Description.SetDefault("You see the world for what it truly is...and you also have a 50% increase to all damage"); + Main.debuff[Type] = false; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = false; + longerExpertDebuff = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.GetModPlayer(mod).trippy = true; + } + } +} \ No newline at end of file diff --git a/Buffs/Fabsol/Trippy.png b/Buffs/Fabsol/Trippy.png new file mode 100644 index 0000000000000000000000000000000000000000..641781ec778d67273e9904bb96af83a7273f6a2c GIT binary patch literal 683 zcmV;c0#yBpP)o_lY;@0@eb87H1h0gxX` zFR_Y$5&MitT zs8SjWU&}v%5GYU;1M2gW*S8q&mAOKhYc^ciHV;51S8^?6eTEYC5V!(WF`x=82QMou zTpXDNVEoS<0AK$8Hs-UlaubHH7HBop{MRgq?QaD9XttSm&rAX^(0ssn9~mA2e8yU3 zLst#GEYN?b)yk`8)1pLs@)rOz35o7>t_VQkMHzs5QSo_y`Xk^ox1r}K0$0F`frkDm zpt{qs>$)8qitL2syUpBYtktm6(*}e(mod).yellowCandle = true; + } + + public override void Update(NPC npc, ref int buffIndex) + { + npc.GetGlobalNPC(mod).yellowCandle = true; + } + } +} \ No newline at end of file diff --git a/Buffs/Fabsol/YellowDamageCandle.png b/Buffs/Fabsol/YellowDamageCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..691d19958dd574a0a4c91c0cd2801278def58276 GIT binary patch literal 550 zcmV+>0@?kEP)NNWo`myyZ(~7{1AUfr&$;L0KF|AgZnRKL0Qk7S*P@SDC?*lWgMJ>G zh6rc@TsD8>TK8gg|MOoLzAa99{kzVe$^b2mARAid&CM8qR{4duFfKd-;KNs^glsE@rSZrce^qyi9DVxY?GugyS+LA| zL5u|{B1LoU@t^HBJOyOC`aK=+`l<7kmC7Oj@82DI@550*ajY+v_rH8|48ZZlw}0CB z`Gni&>iY%&aiI#p*13zC%5)%^uu}_0N1Xd+#eKB1ow`AO{R-&jgI>(Ttp$RZ&n@kG z<7bIKZ+34Kfaa#_=O=t`7jr3NYk&}*0>bIRGSFp05~t3)rNp|6b1}CFw;KMco&XRR zo&jAi7R2-{aar6dl+Q?=ma)A#g`(5KyJg?-c~JTFx7~u zC({6|wQGchwYf51t&#o#16Lrk76{7qR*7Eotj%@L5Q3?Ox1vByEEK=FJI=Exjr)H_ o!oU@Xh93?CaD8+AfBqf+0o-7%PQP*Mr~m)}07*qoM6N<$f|T|M1^@s6 literal 0 HcmV?d00001 diff --git a/Buffs/GuardianDefense.cs b/Buffs/GuardianDefense.cs index 62a0e32712..ae37553273 100644 --- a/Buffs/GuardianDefense.cs +++ b/Buffs/GuardianDefense.cs @@ -1,34 +1,34 @@ -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Buffs -{ - public class GuardianDefense : ModBuff - { - public override void SetDefaults() - { - DisplayName.SetDefault("Defensive Guardian"); - Description.SetDefault("The defender will protect you"); - Main.buffNoTimeDisplay[Type] = true; - Main.buffNoSave[Type] = true; - } - - public override void Update(Player player, ref int buffIndex) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianDefense")] > 0) - { - modPlayer.gDefense = true; - } - if (!modPlayer.gDefense) - { - player.DelBuff(buffIndex); - buffIndex--; - } - else - { - player.buffTime[buffIndex] = 18000; - } - } - } +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs +{ + public class GuardianDefense : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Defensive Guardian"); + Description.SetDefault("The defender will protect you"); + Main.buffNoTimeDisplay[Type] = true; + Main.buffNoSave[Type] = true; + } + + public override void Update(Player player, ref int buffIndex) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianDefense")] > 0) + { + modPlayer.gDefense = true; + } + if (!modPlayer.gDefense) + { + player.DelBuff(buffIndex); + buffIndex--; + } + else + { + player.buffTime[buffIndex] = 18000; + } + } + } } \ No newline at end of file diff --git a/Buffs/GuardianHealer.cs b/Buffs/GuardianHealer.cs index e43c3a9bb7..4282cb716d 100644 --- a/Buffs/GuardianHealer.cs +++ b/Buffs/GuardianHealer.cs @@ -1,34 +1,34 @@ -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Buffs -{ - public class GuardianHealer : ModBuff - { - public override void SetDefaults() - { - DisplayName.SetDefault("Healer Guardian"); - Description.SetDefault("The guardian will heal you"); - Main.buffNoTimeDisplay[Type] = true; - Main.buffNoSave[Type] = true; - } - - public override void Update(Player player, ref int buffIndex) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianHealer")] > 0) - { - modPlayer.gHealer = true; - } - if (!modPlayer.gHealer) - { - player.DelBuff(buffIndex); - buffIndex--; - } - else - { - player.buffTime[buffIndex] = 18000; - } - } - } +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs +{ + public class GuardianHealer : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Healer Guardian"); + Description.SetDefault("The guardian will heal you"); + Main.buffNoTimeDisplay[Type] = true; + Main.buffNoSave[Type] = true; + } + + public override void Update(Player player, ref int buffIndex) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianHealer")] > 0) + { + modPlayer.gHealer = true; + } + if (!modPlayer.gHealer) + { + player.DelBuff(buffIndex); + buffIndex--; + } + else + { + player.buffTime[buffIndex] = 18000; + } + } + } } \ No newline at end of file diff --git a/Buffs/GuardianOffense.cs b/Buffs/GuardianOffense.cs index 2c87bce3d6..f7145dfe9a 100644 --- a/Buffs/GuardianOffense.cs +++ b/Buffs/GuardianOffense.cs @@ -1,34 +1,34 @@ -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Buffs -{ - public class GuardianOffense : ModBuff - { - public override void SetDefaults() - { - DisplayName.SetDefault("Offensive Guardian"); - Description.SetDefault("The attacker will protect you"); - Main.buffNoTimeDisplay[Type] = true; - Main.buffNoSave[Type] = true; - } - - public override void Update(Player player, ref int buffIndex) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianAttack")] > 0) - { - modPlayer.gOffense = true; - } - if (!modPlayer.gOffense) - { - player.DelBuff(buffIndex); - buffIndex--; - } - else - { - player.buffTime[buffIndex] = 18000; - } - } - } +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs +{ + public class GuardianOffense : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Offensive Guardian"); + Description.SetDefault("The attacker will protect you"); + Main.buffNoTimeDisplay[Type] = true; + Main.buffNoSave[Type] = true; + } + + public override void Update(Player player, ref int buffIndex) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianAttack")] > 0) + { + modPlayer.gOffense = true; + } + if (!modPlayer.gOffense) + { + player.DelBuff(buffIndex); + buffIndex--; + } + else + { + player.buffTime[buffIndex] = 18000; + } + } + } } \ No newline at end of file diff --git a/Buffs/LethalLavaBurn.cs b/Buffs/LethalLavaBurn.cs new file mode 100644 index 0000000000..a278dd1c5a --- /dev/null +++ b/Buffs/LethalLavaBurn.cs @@ -0,0 +1,27 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs +{ + public class LethalLavaBurn : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Lethal Lava Burn"); + Description.SetDefault("Losing life"); + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + longerExpertDebuff = false; + } + + public override void Update(Player player, ref int buffIndex) + { + player.GetModPlayer(mod).lethalLavaBurn = true; + } + } +} \ No newline at end of file diff --git a/Buffs/LethalLavaBurn.png b/Buffs/LethalLavaBurn.png new file mode 100644 index 0000000000000000000000000000000000000000..76863aee75c0e123b8787659cb9c9794fa6e3260 GIT binary patch literal 672 zcmV;R0$=@!P)@6AGhYMXxmbkSjS z;j^h`ri|t7JOJLcrvUUG`3*pPv|{Xu70N!C?^h3e-M7$izQDPE5r9~7yeb4biW&j$ z*hEVUM*4REFtNG_z>Hf_3A~}qbqEwil=qMl%#$O*USN4I_P5@3h9ss2u{=ni# zHE+hO2C<20-$_rS;O($o&yAmNT0dp4&#-j)(ErtyG0 zs+_T5GvR7h6X+BI0=r~~Mge>0=guBb3lo=K{Ffs+RbE0X932HDM@z=4RWV)cxSoCq zfa~r7VAIBRYW(rd=RlxbZvQraB-@-or%*>g-o0H5${F*{?`$>wbnzPitGZXJd6OGr z03@YW44IurKMx3msYER)(+ux6=f0FLsQEoT>zg_V+j%H~cB4i>s#N@yiT<*0ml`mT z(hG-9UjSfH7dI{!9;tPrfW+3%jJ`odM*)FXGOaVJnaYk1-Z-l4pYm@2*xa|Tp#%GN z94D&xf!?tZ)B1hM+4gsVjW2U|fp7)vQy_jKTn+s%qcD6fzBg^!#KPXS9{_k}^`#cb z&8W@~5mF!q!M9o+GFFRLXx{o~_t(@6ehekY#Sjw$9mOB<*y7r>$OW+g0000E&f5ULsT+o zm!g9@Sfy5rp=bsXr67pXDJn#Z7;JQLP>Wz40=9yKNQ*WoQA8}YLL5YFJBUk&!+YmF z&TZo0ki2h6-uuqE@15_SKlk~T1?mBqoBv*-iip&2_W>-b=6^%W!3UH8HitVDQT+Ao zpN{_JjsInTV(lRS`bG`|9#CMhc|#)E*%=35TWG!FuP4s}5RB{rU^e$$@n;g()b;rE z7XV%jrvSLa1I5=|0VfBV8zO)kK~rpvGEBre0Vwug1mJ4a;xCMS1z<_)zQx-LCbPrJ zevIeW0SK9xqh;|$c18{z{LD>!5x&*-Mp}g{&ny`5P-aCT_vx^(PM#$I O0000Oz5z<(T|C1pU84-Aa-Q9|It zxr<;v%mb?0&XBaymyI<9uRXhfng#~k0Vz3iu*Ui1`F&vVnRyVJSdc!c2&^h#CR|?f_U6zexu-tL^>Sok5FyIb=)rPRRMbF0**Ud*s-PyW+DEz6H zH=*$JgA&1f^l}7NV&bd|2HXMYWjQQPkDogP_R&RSNPjJva28UQ!@vS#NL`|T7EtQ>&(*fiS~?9vB&-hk;DjCx=i=F{nprYIqh zx&Jgu$YlJ#1m-Kah=A$SQxAh_Scu>(2L{3cFdv@`Sm$&=9RL7BF(e})nL@7s0000< MMNUMnLSTXb0G+uqp8x;= diff --git a/Buffs/Permafrost/Popo.cs b/Buffs/Permafrost/Popo.cs index df27ce67fb..6ec7c0773d 100644 --- a/Buffs/Permafrost/Popo.cs +++ b/Buffs/Permafrost/Popo.cs @@ -1,36 +1,36 @@ -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod; -using CalamityMod.NPCs; - -namespace CalamityMod.Buffs.Permafrost -{ - public class Popo : ModBuff - { - public override void SetDefaults() - { - DisplayName.SetDefault("Popo"); - Description.SetDefault("You are a snowman now!"); - Main.debuff[Type] = true; - Main.buffNoSave[Type] = true; - Main.buffNoTimeDisplay[Type] = true; - canBeCleared = false; - } - - public override void Update(Player player, ref int buffIndex) - { - CalamityPlayer modPlayer = player.GetModPlayer(); - if (modPlayer.snowmanPrevious) - { - modPlayer.snowmanPower = true; - } - else - { - player.DelBuff(buffIndex); - buffIndex--; - } - } - } +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs.Permafrost +{ + public class Popo : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Popo"); + Description.SetDefault("You are a snowman now!"); + Main.debuff[Type] = true; + Main.buffNoSave[Type] = true; + Main.buffNoTimeDisplay[Type] = true; + canBeCleared = false; + } + + public override void Update(Player player, ref int buffIndex) + { + CalamityPlayer modPlayer = player.GetModPlayer(); + if (modPlayer.snowmanPrevious) + { + modPlayer.snowmanPower = true; + } + else + { + player.DelBuff(buffIndex); + buffIndex--; + } + } + } } \ No newline at end of file diff --git a/Buffs/Permafrost/PopoNoseless.cs b/Buffs/Permafrost/PopoNoseless.cs index f63dd3851c..e316a2666f 100644 --- a/Buffs/Permafrost/PopoNoseless.cs +++ b/Buffs/Permafrost/PopoNoseless.cs @@ -1,36 +1,36 @@ -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod; -using CalamityMod.NPCs; - -namespace CalamityMod.Buffs.Permafrost -{ - public class PopoNoseless : ModBuff - { - public override void SetDefaults() - { - DisplayName.SetDefault("Noseless Popo"); - Description.SetDefault("Your nose has been stolen!"); - Main.debuff[Type] = true; - Main.buffNoSave[Type] = true; - canBeCleared = false; - } - - public override void Update(Player player, ref int buffIndex) - { - CalamityPlayer modPlayer = player.GetModPlayer(); - if (modPlayer.snowmanPrevious) - { - modPlayer.snowmanPower = true; - modPlayer.snowmanNoseless = true; - } - else - { - player.DelBuff(buffIndex); - buffIndex--; - } - } - } +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs.Permafrost +{ + public class PopoNoseless : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Noseless Popo"); + Description.SetDefault("Your nose has been stolen!"); + Main.debuff[Type] = true; + Main.buffNoSave[Type] = true; + canBeCleared = false; + } + + public override void Update(Player player, ref int buffIndex) + { + CalamityPlayer modPlayer = player.GetModPlayer(); + if (modPlayer.snowmanPrevious) + { + modPlayer.snowmanPower = true; + modPlayer.snowmanNoseless = true; + } + else + { + player.DelBuff(buffIndex); + buffIndex--; + } + } + } } \ No newline at end of file diff --git a/Buffs/SandyWaifu.cs b/Buffs/SandyWaifu.cs index b345cfba66..12694c5816 100644 --- a/Buffs/SandyWaifu.cs +++ b/Buffs/SandyWaifu.cs @@ -7,7 +7,7 @@ namespace CalamityMod.Buffs { public override void SetDefaults() { - DisplayName.SetDefault("Sandy Waifu"); + DisplayName.SetDefault("Miss Sandy"); Description.SetDefault("The sand elemental will protect you"); Main.buffNoTimeDisplay[Type] = true; Main.buffNoSave[Type] = true; diff --git a/Buffs/SilvaRevival.cs b/Buffs/SilvaRevival.cs index 48a8703ef5..ef7e78ecb7 100644 --- a/Buffs/SilvaRevival.cs +++ b/Buffs/SilvaRevival.cs @@ -1,22 +1,22 @@ -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod; -using CalamityMod.NPCs; - -namespace CalamityMod.Buffs -{ - public class SilvaRevival : ModBuff - { - public override void SetDefaults() - { - DisplayName.SetDefault("Silva Invulnerability"); - Description.SetDefault("You are invulnerable"); - Main.debuff[Type] = false; - Main.pvpBuff[Type] = true; - Main.buffNoSave[Type] = false; - longerExpertDebuff = false; - } - } +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod; +using CalamityMod.NPCs; + +namespace CalamityMod.Buffs +{ + public class SilvaRevival : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Silva Invulnerability"); + Description.SetDefault("You are invulnerable"); + Main.debuff[Type] = false; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = false; + longerExpertDebuff = false; + } + } } \ No newline at end of file diff --git a/Buffs/SirenBobs.cs b/Buffs/SirenBobs.cs index baecc4a97e..5bca6c7334 100644 --- a/Buffs/SirenBobs.cs +++ b/Buffs/SirenBobs.cs @@ -27,8 +27,8 @@ namespace CalamityMod.Buffs modPlayer.sirenBoobsPower = true; player.statDefense += 1 + (NPC.downedBoss3 ? 4 : 0) + - (Main.hardMode ? 10 : 0) + - (NPC.downedMoonlord ? 15 : 0); + (Main.hardMode ? 5 : 0) + + (NPC.downedMoonlord ? 5 : 0); player.detectCreature = true; player.lifeRegen += 0 + (NPC.downedBoss3 ? 1 : 0) + diff --git a/Buffs/SirenBobs.png b/Buffs/SirenBobs.png index 11e1933bb47ba13f4f89a843c91a77c536f3e3b8..4792bcfe231fb033c88b6f5972e6f495b8b88125 100644 GIT binary patch delta 957 zcmV;u148`09qt^kzzTnvNkl%r+(&sm#ox>n>`Th13FeQ<@&X>RHkGYy5!g^CIYLWW4!MQVu9Q#(4JXcF2Q;GX8)5-KQ~_|Nen5MwbiV z5=m2&w3K?myZ7SotjzFl;Mvo4V$MX}Z?QU^fdIf7O;z=S`_$vliO-ivr2v;*I+H69 z0DQHgSOWNG6o7Hi29$9+Mp{~Pa&xi)-tiX}@cGp9gP6;;xdpE`V}#eMtE;LOi2%0Q zOs0(uc!f8ej~;&mq}4VyzIsW0J-X*%6o58N>ON|Rh5(L_Pdc3{1X!&O%{Y!{WO%&* z|MC&*aR258hQ&k!-26l;&C3HgRX93gGy+_H`NBn^5bpo#WRqxXZoYM!S`i+Pec57V z6cD}w&={Z4^tQAD%;m~tFrz#^9v7PNRniV@Xz1+xtb>0UO-zIt%|ClG5k9riK>ICL zr*max|9=3ZfJi6sxREh_glk{+`@?56IXN>kHWuK%-q8`OHT*23P^6@!r88&1{uO{a zsrdzip{Hm6j0Xa4_tq9QV;DB6o0%o!P&bTb4GzcQ-0_F+3@0YqUo#2_r2y1BtJUOw zI>tq!f`Wg-Lg*hKuaw*D0273&&1{Cor(qbZ2sS$*AsX@tJ|B;}?T3pOfdKXq80K)o zXA<4>w7p=?fXK3dLQ$twsQ~WkQopUQr{3c@o^%Sw0p9iv3=V!EdwWer0AU7H`h-uT>Tx3w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QT7J7#9*w zO@I0Xw}UrrI(z2D3)HqFzA`Ez0@XjKPR*Y;ngZ~p0Q9!=iWR8xgkt>9pL6H%#kiW9 zwUwwSg8%#1&RzTVBluccmKMmRdRI68T82=&0o^~-r;U~Yl(hrU0eZd8%7!X0Dx#<$ zz>iyhb*-g^lOuw!sqyUD?_UW1wQI*uAltykrmcgl|JyfwE&b72fcm{b^m-k=rT6F0 zW0W%d^_%+-K72$q17C{3rk)Zo+8ZP_1)z_}p!dho+Xdghq4xHeS>C+)fmA9VIdbSQ za=opg@%;JMZ@3+Fyy_N|Jqin=zGzE~Vfly2F_b*u)78Ydn*RP*AfzqG9j?6oG`oRO_ z7=H7{z`)fFxy(>i;pIc{FJJocwo}t z+{pKJ-S8_wFvJ=%=Q<+&Ud>=mJ>q&p{siv?_!_#7j^%NaJ$;BWV|y_TbT z+A^rqU~>Em5RAxbW8WZ{qxa+U(qJAF@h?CSAVMP`=xg*~Oau@cg9slZ{VDtj=p(1_ z{O!)*s6_+;4TMlSLk}`n0*r8R8BC3$qDAsMlH>;#?3-E?g`!pf0000(mod).clamity = true; + } + } +} \ No newline at end of file diff --git a/Buffs/SunkenSea/Clamity.png b/Buffs/SunkenSea/Clamity.png new file mode 100644 index 0000000000000000000000000000000000000000..01f38bb96058424947e3f6b1c2a316328521142a GIT binary patch literal 501 zcmV9YSsYfGs}z_8-_CXWv4cldO zfx+Q`S+^h|00XNYqQ*#=JaTM-e1IB2u#h8Gf0`Ov2n@Ibn7VI)9q(kI45mAcAU;O- z8M@EW6ACW%<>w$Fy6?hWF#WGo4K)o6ItSbfbjF(ta7nIyxDQ1N79y}TMRW)Zm;)3V z)4)FX>SY3^4QoYFe009~H3}bH{+;h>u>6}hZ@_fLIn)q=l@~bEz<@bGiN^u#Vi6G$ zF#XU>0mY}?)2vYVvn)=5`DrK2P{d2Kj-iCyEz9j#Ljt257&H!$lCS`~_}3puT>uLS zQ8(1G|Mf1^x&mDu7A$1}Vqj*2!Xz*a%Ox0f0W1UtjRS5Q{Q(mod).pearlAura = true; + } + } +} \ No newline at end of file diff --git a/Buffs/SunkenSea/PearlAura.png b/Buffs/SunkenSea/PearlAura.png new file mode 100644 index 0000000000000000000000000000000000000000..ff6e7d8dec5d1e4c689d9f48bea09078003ef8d3 GIT binary patch literal 582 zcmV-M0=fN(P)9YSsYfGs}z_8-_CXWv4cldO zfx+Q`S+^h|00XNYqQ*#=JaTM-e1IB2u#h8Gf0`Ov2n@Ibn7VI)9q(kI45mAcAU<|9 za{<$m@>*Ea#Pf&Oz~cK)?LkRHFvYNtDnADa(R~;0g6V&yYN%;o&^h2#hAY^GdVT?5 z+Ra}VB?KPbL`@T`x|&cz0;U+2HehLr=nxn%2k^|uK=FA-S2~K%?;Sk`=I`2g8BA+v z=%L7?hXi`=fRz_G)4+f^0G17VGxESbvJDRb(+)|NC_bD~HWP*a_sTXD{)g9)qV(IR zpD5xmPW6rpU?$FTV89#zs|%t+Q9}UT8#iuT0t>->E+#FGqC`By3>#l zz*!dzxC3A%AFlkryr2y112qFk$@uE&OE3+KdzkkHL?M+0EQBr`I!{~(444C8xuC=o zQuf0_0Oq5&`xk?mFrUGEjP6rd8o2-9IavLz3y``3mMaM6f&p^?tTK|F4$1!<3U**x zR3B1n!BYLRyU)OU13N=7jqYPuTyycUWA!<~l5oHs0BaB2PKWpq77{-m976Fqx=&$g z1xBOCImxx*fI9%zA__7!K=&L`d{}CyxJ5)a2Ml(mod); + if (player.ownedProjectileCounts[mod.ProjectileType("Shellfish")] > 0) + { + modPlayer.shellfish = true; + } + if (!modPlayer.shellfish) + { + player.DelBuff(buffIndex); + buffIndex--; + } + else + { + player.buffTime[buffIndex] = 18000; + } + } + } +} \ No newline at end of file diff --git a/Buffs/SunkenSea/Shellfish.png b/Buffs/SunkenSea/Shellfish.png new file mode 100644 index 0000000000000000000000000000000000000000..3c28db9c53b3fd92956e13456f54ae67c0a6df12 GIT binary patch literal 688 zcmV;h0#E&kP)5nZt=U&)}Ah*m(O+!EzOsNW+(0n#WEMC=Y{ug{&y0$fQ^Cl z_<|@4@{W_|g$HrBhuF6WNRd}ozKZB`aaQQVq9)mgFH6GLA9M;$+yXWRM4f-!%5Pqa zbUQui>}GO@RX+7mD12-GknkPm^wpjlvg&&|VaKoRIqTN{;N9-r!G2%mch9oEShOOAV5g z>F)!N9^0+Pf?2RMIV$p8LC0M>1IXW1be3cya$XYDe}Uf(soBTR9TlZdU(y+Iy}asx zpbl(&+jQjqR6Ka9(RiCzFx}A3195*w`LUZ#wf9-s{Ej)pq(#>a=FjMF$NZmv$A17P WI^o5j-X!h-0000(mod).shellfishVore = true; + } + } +} \ No newline at end of file diff --git a/Buffs/SunkenSea/ShellfishEating.png b/Buffs/SunkenSea/ShellfishEating.png new file mode 100644 index 0000000000000000000000000000000000000000..846f95f87efbe159a894e5e512344c70534efd70 GIT binary patch literal 525 zcmV+o0`mQdP)9YSsYfGxiG7GnR!w-D#_Z@Py!6bk*6P~?eKuP+SIrY{WfJBS<{ z4p?*xH3oJ*LJa_SIaEH(CooZ1$ieu8^v9{8g}{J2z_8~o*zsBhkhm=~g!l#BXXrjh zPbj$5cb$i*ymkSSw$7I*qo#pD=Kxroqx;xJQVr~KE@>_l&wqRR4TZnw`7M+Xgry0h zLtwxhfS$jLbx?imo#=_;(+BrofcbaNUqumrckKfTzxN6xL}29w&NMJ!4uECDT6Y7m zOJQ-UXb(xPCbkf97&vqI0(u4j^FO|Z7Ntn1} z_Hf>O6ux{?B3}8sd}d&I{%f01)5H&TNC=(W2Bu&Cx(%k`b-|!<04&Z$WF){YMECL8 zrgqd2393O2k##K)pKAGm>A&Z0g6ZE+4xpq3oFOn^4uItXSiTq15&*kc*-#s6YKIBF zc>*a1&{IE59+nGWd|2+n2!R220IV{C6-2O*fVmtNBIv<^?n88+qN|r_+W{6LSP~AH z17Pg|^vVcU3*t=>NRm{q4e9QHk=G&`@J8u?J77fjj9|HUz&fV`>Hq*S&#V;7$w%J+ P0000(mod).tranquilityCandle = true; + } + } +} \ No newline at end of file diff --git a/Buffs/TranquilityCandle.png b/Buffs/TranquilityCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..2cf02e775eeaa8a7704900323de490ba9927984b GIT binary patch literal 540 zcmV+%0^|LOP)9YSsYfGs}z_8-_CXWv4cld#=;P3V__yR4GMw5;ec7UARzz)s~)1pNGan1tUePlgoFevv=A6@2QYQt0z2NxKp9MT8bMr)?lV|i!+ee&Ea>WCabA875~BMq+y&GBO4U%) zz@T#gdYr+0g6`ut=OL+|P>8_N6wx6tU=D!gSC~&>KA&h|1{TUcaSBYse2yL>=plig zCSc_Y&NMJ!4nWU_=sr)*Qv`dKCu${%rwOG2m}2yhAXpC2-2v!z0U-yhk8cKhE^uKj z))Ep|`9O4CFyIb2;tfgl=y4D8xu58Fu>7XioJ55LEDaDH0(5r(dM+U3fMzXcu+LAw z-a=GJkemzX?f_V21S^P$bpR~2*IwI;H7$@`5)POHVC?~^EOV^60OsRlKNpm&K6ld| ztmOeL1W2w82b}|MxB>=qGv2+-UCgvtSQ2Sh~Y zqlCbUr4vy?0KHXBa;q3U7tq`RxOzr0v!YOPL;ea#*9lh$TndN2bZe?^JG%heMF*7s+TY3Nh0YpheK~z{r)z&deLqQaU z;fJfR5nO?|0XtoQtqVwz1-JlPcOd8z+<=W>EtY|FHtB5bG=Iv-C(n~SLyCl(fxno! z=bn3<7Y4iDns1qfwM?{0epfqqe*0|POn=zBp8gBnx_WcWtrLLY?BMthrw<Yq~G9ETqZ#N17e^DC?6t&^U8ff zK74m4KpGgB7zldssUIL4H6ZJZk@Z#m^#Y`ks~VzjwkM9>oKgX-{^2%QSj$A449 Y7jc&939SEt{Qv*}07*qoM6N<$f>Iv0X#fBK delta 597 zcmV-b0;>JT1MLKmBYy%iNkl9YSsYfGs}z_8-_CXWv4c zldOfx+Q`S+^h|FvUdz#b;u3pM&{f^2o6T@&Rf9 z!9oruif&HMo);(@($vsGV89)~)O`!=LY>JrV0zayh>zW}Ab)8S<^yz}qbC$tNWeni z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0000000000..8f2fa69768 --- /dev/null +++ b/CalamityCollision.cs @@ -0,0 +1,88 @@ +using System; +using System.Reflection; +using System.Collections.Generic; +using System.Text; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +using Terraria; +using Terraria.UI.Chat; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.UI; +using Terraria.ModLoader; +using Terraria.Graphics.Shaders; +using Terraria.Localization; +using Terraria.GameContent.UI; + +namespace CalamityMod +{ + public class CalamityCollision + { + public static bool HotWetCollision(Vector2 Position, int Width, int Height) + { + Vector2 vector = new Vector2(Position.X + (float)(Width / 2), Position.Y + (float)(Height / 2)); + int num = 10; + int num2 = Height / 2; + if (num > Width) + { + num = Width; + } + if (num2 > Height) + { + num2 = Height; + } + vector = new Vector2(vector.X - (float)(num / 2), vector.Y - (float)(num2 / 2)); + int arg_A3_0 = (int)(Position.X / 16f) - 1; + int num3 = (int)((Position.X + (float)Width) / 16f) + 2; + int num4 = (int)(Position.Y / 16f) - 1; + int num5 = (int)((Position.Y + (float)Height) / 16f) + 2; + int arg_DB_0 = Utils.Clamp(arg_A3_0, 0, Main.maxTilesX - 1); + num3 = Utils.Clamp(num3, 0, Main.maxTilesX - 1); + num4 = Utils.Clamp(num4, 0, Main.maxTilesY - 1); + num5 = Utils.Clamp(num5, 0, Main.maxTilesY - 1); + for (int i = arg_DB_0; i < num3; i++) + { + for (int j = num4; j < num5; j++) + { + if (Main.tile[i, j] != null) + { + if (Main.tile[i, j + 2].lava() || + Main.tile[i, j + 3].lava() || + Main.tile[i, j + 4].lava()) + { + if (Main.tile[i, j].liquid > 0) + { + Vector2 vector2; + vector2.X = (float)(i * 16); + vector2.Y = (float)(j * 16); + int num6 = 16; + float num7 = (float)(256 - (int)Main.tile[i, j].liquid); + num7 /= 32f; + vector2.Y += num7 * 2f; + num6 -= (int)(num7 * 2f); + if (vector.X + (float)num > vector2.X && vector.X < vector2.X + 16f && vector.Y + (float)num2 > vector2.Y && vector.Y < vector2.Y + (float)num6) + { + return true; + } + } + else if (Main.tile[i, j].active() && Main.tile[i, j].slope() != 0 && j > 0 && Main.tile[i, j - 1] != null && Main.tile[i, j - 1].liquid > 0) + { + Vector2 vector2; + vector2.X = (float)(i * 16); + vector2.Y = (float)(j * 16); + int num8 = 16; + if (vector.X + (float)num > vector2.X && vector.X < vector2.X + 16f && vector.Y + (float)num2 > vector2.Y && vector.Y < vector2.Y + (float)num8) + { + return true; + } + } + } + } + } + } + return false; + } + } +} \ No newline at end of file diff --git a/CalamityLocalization.cs b/CalamityLocalization.cs new file mode 100644 index 0000000000..3c2356cddc --- /dev/null +++ b/CalamityLocalization.cs @@ -0,0 +1,134 @@ +using Terraria.ModLoader; + +namespace CalamityMod +{ + public class CalamityLocalization + { + private static string[][] _localizations; + + public static void Load() + { + _localizations = new[] + { + new [] { "SkyOreText", "The ground is glittering with cyan light." }, + new [] { "IceOreText", "The ice caves are crackling with frigid energy." }, + new [] { "PlantOreText", "Energized plant matter has formed in the underground." }, + new [] { "TreeOreText", "Fossilized tree bark is bursting through the jungle's mud." }, + new [] { "AuricOreText", "A godly aura has blessed the world's caverns." }, + new [] { "FutureOreText", "A cold and dark energy has materialized in space." }, + new [] { "UglyBossText", "Calamitous creatures now roam free!" }, + new [] { "UglyBossText2", "The ancient ice spirits have been unbound!" }, + new [] { "SteelSkullBossText", "A blood red inferno lingers in the night..." }, + new [] { "PlantBossText", "The ocean depths are trembling." }, + new [] { "BabyBossText", "A plague has befallen the Jungle." }, + new [] { "BabyBossText2", "An ancient automaton roams the land." }, + new [] { "MoonBossText", "The profaned flame blazes fiercely!" }, + new [] { "MoonBossText2", "Cosmic terrors are watching..." }, + new [] { "MoonBossText3", "The bloody moon beckons..." }, + new [] { "PlagueBossText", "PLAGUE NUKE BARRAGE ARMED, PREPARING FOR LAUNCH!!!" }, + new [] { "PlagueBossText2", "MISSILES LAUNCHED, TARGETING ROUTINE INITIATED!!!" }, + new [] { "ProfanedBossText", "The air is burning..." }, + new [] { "ProfanedBossText2", "Shrieks are echoing from the dungeon." }, + new [] { "ProfanedBossText3", "The calamitous beings have been inundated with bloodstone." }, + new [] { "GhostBossText", "The abyssal spirits have been disturbed." }, + new [] { "SupremeBossText3", "Alright, let's get started. Not sure why you're bothering." }, // start + new [] { "SupremeBossText4", "You seem so confident, even though you are painfully ignorant of what has yet to transpire." }, //75% + new [] { "SupremeBossText5", "Everything was going well until you came along." }, //75% + new [] { "SupremeBossText6", "Brothers, could you assist me for a moment? This ordeal is growing tiresome." }, //45% + new [] { "SupremeBossText", "Don't worry, I still have plenty of tricks left." }, //40% + new [] { "SupremeBossText7", "Hmm...perhaps I should let the little ones out to play for a while." },//30% + new [] { "SupremeBossText8", "Impressive...but still not good enough!" }, //20% + new [] { "SupremeBossText9", "I'm just getting started!" }, //10% + new [] { "SupremeBossText20", "How are you still alive!?" }, //8% + new [] { "SupremeBossText21", "Just stop!" }, //6% + new [] { "SupremeBossText22", "Even if you defeat me you would still have the lord to contend with!" }, //4% + new [] { "SupremeBossText23", "He has never lost a battle!" }, //2% + new [] { "SupremeBossText24", "Not even I could defeat him! What hope do you have!?" }, //1% + new [] { "SupremeBossText25", "He has grown far stronger since we last fought...you stand no chance." }, //1% after 10 seconds + new [] { "SupremeBossText26", "Well...I suppose this is the end..." }, //1% after 15 seconds + new [] { "SupremeBossText27", "Perhaps one of these times I'll change my mind..." }, //1% after first win + new [] { "SupremeBossText28", "You aren't hurting as much as I'd like...are you cheating?" }, //not taking enough damage + new [] { "SupremeBossText2", "Go to hell." }, //cheater + new [] { "SupremeBossText10", "At long last I am free...for a time. I'll keep coming back, just like you. Until we meet again, farewell." }, //end after 20 seconds + new [] { "SupremeBossText11", "Do you enjoy going through hell?" }, //rebattle after killing once + new [] { "SupremeBossText12", "Don't get me wrong, I like pain too, but you're just ridiculous." }, //rebattle after killing four times + new [] { "SupremeBossText13", "You must enjoy dying more than most people, huh?" }, //rebattle five deaths + new [] { "SupremeBossText14", "Do you have a fetish for getting killed or something?" }, //rebattle twenty deaths + new [] { "SupremeBossText15", "Alright, I'm done counting. You probably died this much just to see what I'd say." }, //rebattle fifty deaths + new [] { "SupremeBossText16", "You didn't die at all huh? Welp, you probably cheated. Do it again, for real this time...but here's your reward I guess." }, //die 0 times + new [] { "SupremeBossText17", "One death? That's it? ...I guess you earned this then." }, //die 1 time and win + new [] { "SupremeBossText18", "Two deaths, nice job. Here's your reward." }, //die 2 times and win + new [] { "SupremeBossText19", "Third time's the charm. Here's a special reward." }, //die 3 times and win + new [] { "EdgyBossText", "Don't get cocky, kid!" }, + new [] { "EdgyBossText2", "You think...you can butcher...ME!?" }, + new [] { "EdgyBossText3", "A fatal mistake!" }, + new [] { "EdgyBossText4", "Good luck recovering from that!" }, + new [] { "EdgyBossText5", "Delicious..." }, + new [] { "EdgyBossText6", "Did that hurt?" }, + new [] { "EdgyBossText7", "Nothing personal, kid." }, + new [] { "EdgyBossText8", "Are you honestly that bad at dodging?" }, + new [] { "EdgyBossText9", "Of all my segments to get hit by..." }, + new [] { "EdgyBossText10", "It's not over yet, kid!" }, + new [] { "EdgyBossText11", "A GOD DOES NOT FEAR DEATH!" }, + new [] { "EdgyBossText12", "You are no god...but I shall feast upon your essence regardless!" }, + new [] { "DoGBossText", "The frigid moon shimmers brightly." }, + new [] { "DoGBossText2", "The harvest moon glows eerily." }, + new [] { "AstralText", "A star has fallen from the heavens!" }, + new [] { "AstralBossText", "The seal of the stars has been broken!" }, + new [] { "CalamitasBossText", "You underestimate my power..." }, + new [] { "CalamitasBossText2", "The brothers have awoken!" }, + new [] { "CalamitasBossText3", "Impressive child, most impressive..." }, + new [] { "CalamitasBossText4", "The brothers have been reborn!" }, + new [] { "CryogenBossText", "Cryogen is derping out!" }, + new [] { "BloodMoonText", "The Blood Moon is rising..." }, + new [] { "DargonBossText", "The dark sun awaits." }, + new [] { "DargonBossText2", "My dragon deems you an unworthy opponent. You must acquire the power of the dark sun to witness his true power." }, + new [] { "DargonBossText3", "My dragon deems you an unworthy opponent. Snuff out the profaned flame and destroy the god devourer to witness his true power." }, + new [] { "DeathText", "Death is active, enjoy the fun." }, + new [] { "DeathText2", "Death is not active, not fun enough for you?" }, + new [] { "ArmageddonText", "Bosses will now kill you instantly." }, + new [] { "ArmageddonText2", "Bosses will no longer kill you instantly." }, + new [] { "DefiledText", "Your soul is mine..." }, + new [] { "DefiledText2", "Your soul is yours once more..." }, + new [] { "FlameText", "The air is getting warmer around you." }, + new [] { "BossRushStartText", "Hmm? Ah, another contender. Very well, may the ritual commence!" }, + new [] { "BossRushTierOneEndText", "Hmm? Oh, you're still alive. Unexpected, but don't get complacent just yet." }, + new [] { "BossRushTierTwoEndText", "Hmm? Persistent aren't you? Perhaps you have some hope of prosperity, unlike past challengers." }, + new [] { "BossRushTierThreeEndText", "Hmm? Your perseverance is truly a trait to behold. You've come further than even the demigods in such a short time." }, + new [] { "BossRushTierThreeEndText2", "May your skills remain sharp for the last challenges." }, + new [] { "BossRushTierFourEndText", "Hmm? So you've made it to the final tier, a remarkable feat enviable by even the mightiest of the gods." }, + new [] { "BossRushTierFourEndText2", "Go forth and conquer 'til the ritual's end!" }, + new [] { "BossRushTierFiveEndText", "Hmm? You expected a reward beyond this mere pebble? Patience, the true reward will become apparent in time..." }, + new [] { "BossSpawnText", "Something is approaching..." }, + new [] { "MeleeLevelUp", "Melee weapon proficiency level up!" }, + new [] { "MeleeLevelUpFinal", "Melee weapon proficiency maxed out!" }, + new [] { "RangedLevelUp", "Ranged weapon proficiency level up!" }, + new [] { "RangedLevelUpFinal", "Ranged weapon proficiency maxed out!" }, + new [] { "MagicLevelUp", "Magic weapon proficiency level up!" }, + new [] { "MagicLevelUpFinal", "Magic weapon proficiency maxed out!" }, + new [] { "SummonLevelUp", "Summoner weapon proficiency level up!" }, + new [] { "SummonLevelUpFinal", "Summoner weapon proficiency maxed out!" }, + new [] { "RogueLevelUp", "Rogue weapon proficiency level up!" }, + new [] { "RogueLevelUpFinal", "Rogue weapon proficiency maxed out!" }, + new [] { "OpenSunkenSea", "The depths of the underground desert are rumbling..." } + }; + } + + public static void Unload() + { + _localizations = null; + } + + public static void AddLocalizations() + { + Load(); + foreach (string[] localization in _localizations) + { + ModTranslation text = CalamityMod.Instance.CreateTranslation(localization[0]); + text.SetDefault(localization[1]); + CalamityMod.Instance.AddTranslation(text); + } + Unload(); + } + } +} diff --git a/CalamityMod.cs b/CalamityMod.cs index 86d31bf9ce..d1b8a2f8f7 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -32,1903 +32,1303 @@ using CalamityMod.Skies; namespace CalamityMod { - public class CalamityMod : Mod - { - public static ModHotKey AegisHotKey; + public class CalamityMod : Mod + { + //Hotkeys + public static ModHotKey NormalityRelocatorHotKey; + public static ModHotKey AegisHotKey; + public static ModHotKey TarraHotKey; + public static ModHotKey RageHotKey; + public static ModHotKey AdrenalineHotKey; + public static ModHotKey AstralTeleportHotKey; + public static ModHotKey AstralArcanumUIHotkey; + public static ModHotKey BossBarToggleHotKey; + public static ModHotKey BossBarToggleSmallTextHotKey; - public static ModHotKey TarraHotKey; + //Boss Spawners + public static int ghostKillCount = 0; + public static int sharkKillCount = 0; - public static ModHotKey RageHotKey; + //Textures & Shaders + public static Texture2D heartOriginal2; + public static Texture2D heartOriginal; + public static Texture2D rainOriginal; + public static Texture2D manaOriginal; + public static Texture2D carpetOriginal; + public static Texture2D AstralCactusTexture; + public static Texture2D AstralCactusGlowTexture; + public static Texture2D AstralSky; + public static Effect CustomShader; - public static ModHotKey AdrenalineHotKey; + //Lists + public static IList donatorList; + public static List rangedProjectileExceptionList; + public static List projectileMinionList; + public static List enemyImmunityList; + public static List dungeonEnemyBuffList; + public static List bossScaleList; + public static List beeEnemyList; + public static List beeProjectileList; + public static List hardModeNerfList; + public static List debuffList; + public static List fireWeaponList; + public static List natureWeaponList; + public static List alcoholList; + public static List doubleDamageBuffList; //100% buff + public static List sixtySixDamageBuffList; //66% buff + public static List fiftyDamageBuffList; //50% buff + public static List thirtyThreeDamageBuffList; //33% buff + public static List twentyFiveDamageBuffList; //25% buff + public static List twentyDamageBuffList; //20% buff + public static List weaponAutoreuseList; + public static List quarterDamageNerfList; //25% nerf + public static List pumpkinMoonBuffList; + public static List frostMoonBuffList; + public static List eclipseBuffList; + public static List eventProjectileBuffList; + public static List revengeanceEnemyBuffList; + public static List revengeanceProjectileBuffList; + public static List trapProjectileList; + public static List scopedWeaponList; - public static ModHotKey AstralTeleportHotKey; + public static CalamityMod Instance; - public static ModHotKey AstralArcanumUIHotkey; - - public static ModHotKey BossBarToggleHotKey; - - public static ModHotKey BossBarToggleSmallTextHotKey; - - public static int ghostKillCount = 0; - - public static int sharkKillCount = 0; - - public static Texture2D heartOriginal2; - - public static Texture2D heartOriginal; - - public static Texture2D rainOriginal; - - public static Texture2D manaOriginal; - - public static Texture2D carpetOriginal; - - public static Texture2D AstralCactusTexture; - - public static Texture2D AstralCactusGlowTexture; - - public static Texture2D AstralSky; - - public static Effect CustomShader; - - public static IList donatorList; - - public static List rangedProjectileExceptionList; - - public static List projectileMinionList; - - public static List enemyImmunityList; - - public static List hardModeNerfExceptionList; - - public static List dungeonEnemyBuffList; - - public static List bossScaleList; - - public static List beeEnemyList; - - public static List beeProjectileList; - - public static List hardModeNerfList; - - public static List debuffList; - - public static List fireWeaponList; - - public static List natureWeaponList; - - public static List alcoholList; - - public static List doubleDamageBuffList; //100% buff - - public static List sixtySixDamageBuffList; //66% buff - - public static List fiftyDamageBuffList; //50% buff - - public static List thirtyThreeDamageBuffList; //33% buff - - public static List twentyFiveDamageBuffList; //25% buff - - public static List twentyDamageBuffList; //20% buff - - public static List weaponAutoreuseList; - - public static List quarterDamageNerfList; //25% nerf - - public static List lightGreenThrowingRarityList; - - public static List greenThrowingRarityList; - - public static List blueThrowingRarityList; - - public static List purpleThrowingRarityList; - - public static List throwingProjectileList; - - public static List throwingItemList; - - public static List pumpkinMoonBuffList; - - public static List frostMoonBuffList; - - public static List eclipseBuffList; - - public static List eventProjectileBuffList; - - public static List revengeanceEnemyBuffList; - - public static List revengeanceProjectileBuffList; - - public static List trapProjectileList; - - public static CalamityMod Instance; - - public CalamityMod() - { - Instance = this; - } - - #region Load - public override void Load() + public CalamityMod() { - Main.tile = new Tile[8401, 2601]; - Main.Map = new Terraria.Map.WorldMap(Main.maxTilesX, 2601); - Main.mapTargetY = 3; - Main.instance.mapTarget = new RenderTarget2D[Main.mapTargetX, Main.mapTargetY]; - Main.initMap = new bool[Main.mapTargetX, Main.mapTargetY]; - Main.mapWasContentLost = new bool[Main.mapTargetX, Main.mapTargetY]; - - heartOriginal2 = Main.heartTexture; - heartOriginal = Main.heart2Texture; - rainOriginal = Main.rainTexture; - manaOriginal = Main.manaTexture; - carpetOriginal = Main.flyingCarpetTexture; - - RageHotKey = RegisterHotKey("Rage Mode", "V"); - AdrenalineHotKey = RegisterHotKey("Adrenaline Mode", "B"); - AegisHotKey = RegisterHotKey("Elysian Guard", "N"); - TarraHotKey = RegisterHotKey("Armor Set Bonus", "Y"); - AstralTeleportHotKey = RegisterHotKey("Astral Teleport", "P"); - AstralArcanumUIHotkey = RegisterHotKey("Astral Arcanum UI Toggle", "O"); - BossBarToggleHotKey = RegisterHotKey("Boss Health Bar Toggle", "NumPad0"); - BossBarToggleSmallTextHotKey = RegisterHotKey("Boss Health Bar Small Text Toggle", "NumPad1"); - - if (!Main.dedServ) - { - AddEquipTexture(new Items.Armor.AbyssalDivingSuitHead(), null, EquipType.Head, "AbyssalDivingSuitHead", "CalamityMod/Items/Armor/AbyssalDivingSuit_Head"); - AddEquipTexture(new Items.Armor.AbyssalDivingSuitBody(), null, EquipType.Body, "AbyssalDivingSuitBody", "CalamityMod/Items/Armor/AbyssalDivingSuit_Body", "CalamityMod/Items/Armor/AbyssalDivingSuit_Arms"); - AddEquipTexture(new Items.Armor.AbyssalDivingSuitLegs(), null, EquipType.Legs, "AbyssalDivingSuitLeg", "CalamityMod/Items/Armor/AbyssalDivingSuit_Legs"); - - AddEquipTexture(new Items.Armor.SirenHead(), null, EquipType.Head, "SirenHead", "CalamityMod/Items/Armor/SirenTrans_Head"); - AddEquipTexture(new Items.Armor.SirenBody(), null, EquipType.Body, "SirenBody", "CalamityMod/Items/Armor/SirenTrans_Body", "CalamityMod/Items/Armor/SirenTrans_Arms"); - AddEquipTexture(new Items.Armor.SirenLegs(), null, EquipType.Legs, "SirenLeg", "CalamityMod/Items/Armor/SirenTrans_Legs"); - - AddEquipTexture(new Items.Armor.SirenHeadAlt(), null, EquipType.Head, "SirenHeadAlt", "CalamityMod/Items/Armor/SirenTransAlt_Head"); - AddEquipTexture(new Items.Armor.SirenBodyAlt(), null, EquipType.Body, "SirenBodyAlt", "CalamityMod/Items/Armor/SirenTransAlt_Body", "CalamityMod/Items/Armor/SirenTransAlt_Arms"); - AddEquipTexture(new Items.Armor.SirenLegsAlt(), null, EquipType.Legs, "SirenLegAlt", "CalamityMod/Items/Armor/SirenTransAlt_Legs"); - - AddEquipTexture(new Items.Permafrost.PopoHead(), null, EquipType.Head, "PopoHead", "CalamityMod/Items/Permafrost/Popo_Head"); - AddEquipTexture(new Items.Permafrost.PopoNoselessHead(), null, EquipType.Head, "PopoNoselessHead", "CalamityMod/Items/Permafrost/PopoNoseless_Head"); - AddEquipTexture(new Items.Permafrost.PopoBody(), null, EquipType.Body, "PopoBody", "CalamityMod/Items/Permafrost/Popo_Body", "CalamityMod/Items/Permafrost/Popo_Arms"); - AddEquipTexture(new Items.Permafrost.PopoLegs(), null, EquipType.Legs, "PopoLeg", "CalamityMod/Items/Permafrost/Popo_Legs"); - - AstralCactusTexture = GetTexture("ExtraTextures/Tiles/AstralCactus"); - AstralCactusGlowTexture = GetTexture("ExtraTextures/Tiles/AstralCactusGlow"); - AstralSky = GetTexture("ExtraTextures/AstralSky"); - CustomShader = GetEffect("Effects/CustomShader"); - - Filters.Scene["CalamityMod:DevourerofGodsHead"] = new Filter(new DoGScreenShaderData("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:DevourerofGodsHead"] = new DoGSky(); - - Filters.Scene["CalamityMod:DevourerofGodsHeadS"] = new Filter(new DoGScreenShaderDataS("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:DevourerofGodsHeadS"] = new DoGSkyS(); - - Filters.Scene["CalamityMod:CalamitasRun3"] = new Filter(new CalScreenShaderData("FilterMiniTower").UseColor(1.1f, 0.3f, 0.3f).UseOpacity(0.6f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:CalamitasRun3"] = new CalSky(); - - Filters.Scene["CalamityMod:PlaguebringerGoliath"] = new Filter(new PbGScreenShaderData("FilterMiniTower").UseColor(0.2f, 0.6f, 0.2f).UseOpacity(0.65f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:PlaguebringerGoliath"] = new PbGSky(); - - Filters.Scene["CalamityMod:Yharon"] = new Filter(new YScreenShaderData("FilterMiniTower").UseColor(1f, 0.4f, 0f).UseOpacity(0.75f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:Yharon"] = new YSky(); - - Filters.Scene["CalamityMod:Leviathan"] = new Filter(new LevScreenShaderData("FilterMiniTower").UseColor(0f, 0f, 0.5f).UseOpacity(0.5f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:Leviathan"] = new LevSky(); - - Filters.Scene["CalamityMod:Providence"] = new Filter(new ProvScreenShaderData("FilterMiniTower").UseColor(0.6f, 0.45f, 0f).UseOpacity(0.5f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:Providence"] = new ProvSky(); - - Filters.Scene["CalamityMod:SupremeCalamitas"] = new Filter(new SCalScreenShaderData("FilterMiniTower").UseColor(1.1f, 0.3f, 0.3f).UseOpacity(0.65f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:SupremeCalamitas"] = new SCalSky(); - - Filters.Scene["CalamityMod:Astral"] = new Filter(new AstralScreenShaderData(new Ref(CustomShader), "AstralPass").UseColor(0.18f, 0.08f, 0.24f), EffectPriority.VeryHigh); - SkyManager.Instance["CalamityMod:Astral"] = new AstralSky(); - - Mod mod = ModLoader.GetMod("CalamityMod"); - UIHandler.OnLoad(mod); - - AstralArcanumUI.Load(this); - base.Load(); - } - - BossHealthBarManager.Load(this); - base.Load(); - - SetupLists(); - - #region Text - ModTranslation text = CreateTranslation("SkyOreText"); - text.SetDefault("The ground is glittering with cyan light."); - AddTranslation(text); - - text = CreateTranslation("IceOreText"); - text.SetDefault("The ice caves are crackling with frigid energy."); - AddTranslation(text); - - text = CreateTranslation("PlantOreText"); - text.SetDefault("Energized plant matter has formed in the underground."); - AddTranslation(text); - - text = CreateTranslation("TreeOreText"); - text.SetDefault("Fossilized tree bark is bursting through the jungle's mud."); - AddTranslation(text); - - text = CreateTranslation("AuricOreText"); - text.SetDefault("A godly aura has blessed the world's caverns."); - AddTranslation(text); - - text = CreateTranslation("FutureOreText"); - text.SetDefault("A cold and dark energy has materialized in space."); - AddTranslation(text); - - text = CreateTranslation("UglyBossText"); - text.SetDefault("Calamitous creatures now roam free!"); - AddTranslation(text); - - text = CreateTranslation("UglyBossText2"); - text.SetDefault("The ancient ice spirits have been unbound!"); - AddTranslation(text); - - text = CreateTranslation("SteelSkullBossText"); - text.SetDefault("A blood red inferno lingers in the night..."); - AddTranslation(text); - - text = CreateTranslation("PlantBossText"); - text.SetDefault("The ocean depths are trembling."); - AddTranslation(text); - - text = CreateTranslation("BabyBossText"); - text.SetDefault("A plague has befallen the Jungle."); - AddTranslation(text); - - text = CreateTranslation("BabyBossText2"); - text.SetDefault("An ancient automaton roams the land."); - AddTranslation(text); - - text = CreateTranslation("MoonBossText"); - text.SetDefault("The profaned flame blazes fiercely!"); - AddTranslation(text); - - text = CreateTranslation("MoonBossText2"); - text.SetDefault("Cosmic terrors are watching..."); - AddTranslation(text); - - text = CreateTranslation("MoonBossText3"); - text.SetDefault("The bloody moon beckons..."); - AddTranslation(text); - - text = CreateTranslation("PlagueBossText"); - text.SetDefault("PLAGUE NUKE BARRAGE ARMED, PREPARING FOR LAUNCH!!!"); - AddTranslation(text); - - text = CreateTranslation("PlagueBossText2"); - text.SetDefault("MISSILES LAUNCHED, TARGETING ROUTINE INITIATED!!!"); - AddTranslation(text); - - text = CreateTranslation("ProfanedBossText"); - text.SetDefault("The air is burning..."); - AddTranslation(text); - - text = CreateTranslation("ProfanedBossText2"); - text.SetDefault("Shrieks are echoing from the dungeon."); - AddTranslation(text); - - text = CreateTranslation("ProfanedBossText3"); - text.SetDefault("The calamitous beings have been inundated with bloodstone."); - AddTranslation(text); - - text = CreateTranslation("GhostBossText"); - text.SetDefault("The abyssal spirits have been disturbed."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText3"); //start - text.SetDefault("Alright, let's get started. Not sure why you're bothering."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText4"); //75% - text.SetDefault("You seem so confident...yet painfully ignorant of what has yet to transpire."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText5"); //50% - text.SetDefault("Couldn't leave well enough alone could you? Everything was going well until you came along."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText6"); //45% - text.SetDefault("Brothers, could you assist me for a moment? Dealing with this fool is growing tiresome."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText"); //40% - text.SetDefault("Don't worry, I still have plenty of tricks left."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText7"); //30% - text.SetDefault("Hmm...perhaps I should let the little ones out to play for a while."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText8"); //20% - text.SetDefault("Impressive...but still not good enough!"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText9"); //10% - text.SetDefault("I'm just getting started!"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText20"); //8% - text.SetDefault("What!? How are you still alive!?"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText21"); //6% - text.SetDefault("Just stop!"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText22"); //4% - text.SetDefault("Even if you defeat me you still have my lord to contend with!"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText23"); //2% - text.SetDefault("To this day he has yet to lose a battle!"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText24"); //1% - text.SetDefault("Not even I could defeat him! What hope do YOU have!?"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText25"); //1% after 10 seconds - text.SetDefault("He has grown far stronger since we fought...I can't see you defeating him, at least not with your current strength."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText26"); //1% after 15 seconds - text.SetDefault("Well...I guess this is the end..."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText27"); //1% after first win - text.SetDefault("Perhaps one of these times I'll change my mind after all these deaths..."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText28"); //not taking enough damage - text.SetDefault("You aren't hurting as much as I'd like...are you cheating?"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText2"); //cheater - text.SetDefault("Go to hell."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText10"); //end after 20 seconds - text.SetDefault("At long last I am free...no...wait. I'll just keep coming back, like you. Funny how that works...isn't it?"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText11"); //rebattle after killing once - text.SetDefault("Do you enjoy going through hell?"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText12"); //rebattle after killing four times - text.SetDefault("Don't get me wrong, I like pain too, but you're just ridiculous."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText13"); //rebattle five deaths - text.SetDefault("You must enjoy dying more than most people, huh?"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText14"); //rebattle twenty deaths - text.SetDefault("Do you have a fetish for getting killed or something?"); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText15"); //rebattle fifty deaths - text.SetDefault("Alright, I'm done counting. You probably died this much just to see what I'd say."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText16"); //die 0 times - text.SetDefault("You didn't die at all huh? Welp, you probably cheated then. Do it again, for real this time...but here's your reward I guess."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText17"); //die 1 time and win - text.SetDefault("One death? That's it? ...I guess you earned this then."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText18"); //die 2 times and win - text.SetDefault("Two deaths. Good job. Here's your reward."); - AddTranslation(text); - - text = CreateTranslation("SupremeBossText19"); //die 3 times and win - text.SetDefault("Third time's the charm huh? I guess it is. Here's a special reward."); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText"); - text.SetDefault("Don't get cocky, kid!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText2"); - text.SetDefault("You think...you can butcher...ME!?"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText3"); - text.SetDefault("A fatal mistake!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText4"); - text.SetDefault("Good luck recovering from that!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText5"); - text.SetDefault("Delicious..."); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText6"); - text.SetDefault("Did that hurt?"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText7"); - text.SetDefault("Nothing personal, kid."); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText8"); - text.SetDefault("Are you honestly that bad at dodging?"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText9"); - text.SetDefault("Of all my segments to get hit by..."); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText10"); - text.SetDefault("It's not over yet, kid!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText11"); - text.SetDefault("A GOD DOES NOT FEAR DEATH!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText12"); - text.SetDefault("You are no god...but I shall feast upon your essence regardless!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText13"); - text.SetDefault("SO WEAK!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText14"); - text.SetDefault("YOU FOOL!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText15"); - text.SetDefault("DOES IT HURT!?"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText16"); - text.SetDefault("WHY DIDN'T YOU DODGE!?"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText17"); - text.SetDefault("NO! I AM THE ONE ABOVE ALL! I WILL CONSUME YOUR UNIVERSE!"); - AddTranslation(text); - - text = CreateTranslation("EdgyBossText18"); - text.SetDefault("YOU CAN'T BUTCHER A GOD!"); - AddTranslation(text); - - text = CreateTranslation("DoGBossText"); - text.SetDefault("The frigid moon shimmers brightly."); - AddTranslation(text); - - text = CreateTranslation("DoGBossText2"); - text.SetDefault("The harvest moon glows eerily."); - AddTranslation(text); - - text = CreateTranslation("AstralText"); - text.SetDefault("A star has fallen from the heavens!"); - AddTranslation(text); - - text = CreateTranslation("AstralBossText"); - text.SetDefault("The seal of the stars has been broken! You can now mine Astral Ore!"); - AddTranslation(text); - - text = CreateTranslation("CalamitasBossText"); - text.SetDefault("You underestimate my power..."); - AddTranslation(text); - - text = CreateTranslation("CalamitasBossText2"); - text.SetDefault("The brothers have awoken!"); - AddTranslation(text); - - text = CreateTranslation("CalamitasBossText3"); - text.SetDefault("Impressive child, most impressive..."); - AddTranslation(text); - - text = CreateTranslation("CalamitasBossText4"); - text.SetDefault("The brothers have been reborn!"); - AddTranslation(text); - - text = CreateTranslation("CryogenBossText"); - text.SetDefault("Cryogen is derping out!"); - AddTranslation(text); - - text = CreateTranslation("BloodMoonText"); - text.SetDefault("The Blood Moon is rising..."); - AddTranslation(text); - - text = CreateTranslation("DargonBossText"); - text.SetDefault("The dark sun awaits."); - AddTranslation(text); - - text = CreateTranslation("DargonBossText2"); - text.SetDefault("My dragon deems you an unworthy opponent. You must acquire the power of the dark sun to witness his true power."); - AddTranslation(text); - - text = CreateTranslation("DargonBossText3"); - text.SetDefault("My dragon deems you an unworthy opponent. Snuff out the profaned flame and destroy the god devourer to witness his true power."); - AddTranslation(text); - - text = CreateTranslation("DeathText"); - text.SetDefault("Death is active, enjoy the fun."); - AddTranslation(text); - - text = CreateTranslation("DeathText2"); - text.SetDefault("Death is not active, not fun enough for you?"); - AddTranslation(text); - - text = CreateTranslation("ArmageddonText"); - text.SetDefault("Bosses will now kill you instantly."); - AddTranslation(text); - - text = CreateTranslation("ArmageddonText2"); - text.SetDefault("Bosses will no longer kill you instantly."); - AddTranslation(text); - - text = CreateTranslation("DefiledText"); - text.SetDefault("Your soul is mine..."); - AddTranslation(text); - - text = CreateTranslation("DefiledText2"); - text.SetDefault("Your soul is yours once more..."); - AddTranslation(text); - - text = CreateTranslation("FlameText"); - text.SetDefault("The air is getting warmer around you."); - AddTranslation(text); - - text = CreateTranslation("BossRushStartText"); - text.SetDefault("Hmm? Ah, another contender. Very well, may the ritual commence!"); - AddTranslation(text); - - text = CreateTranslation("BossRushTierOneEndText"); - text.SetDefault("Hmm? Oh, you're still alive. Unexpected and exhilarating, but don't get complacent just yet."); - AddTranslation(text); - - text = CreateTranslation("BossRushTierTwoEndText"); - text.SetDefault("Hmm? Persistent aren't you? Perhaps you have some hope of prosperity, unlike past challengers."); - AddTranslation(text); - - text = CreateTranslation("BossRushTierThreeEndText"); - text.SetDefault("Hmm? Your perseverance is truly a trait to behold. You've come further than even the demigods in such a short time."); - AddTranslation(text); - - text = CreateTranslation("BossRushTierThreeEndText2"); - text.SetDefault("May your skills remain sharp for the last challenges."); - AddTranslation(text); - - text = CreateTranslation("BossRushTierFourEndText"); - text.SetDefault("Hmm? So you've made it to the final tier, a remarkable feat enviable by even the mightiest of the gods."); - AddTranslation(text); - - text = CreateTranslation("BossRushTierFourEndText2"); - text.SetDefault("Go forth and conquer 'til the ritual's end!"); - AddTranslation(text); - - text = CreateTranslation("BossRushTierFiveEndText"); - text.SetDefault("Hmm? You expected a reward beyond this mere pebble? Patience, the true reward will come apparent in time..."); - AddTranslation(text); - - text = CreateTranslation("BossSpawnText"); - text.SetDefault("Something is approaching..."); - AddTranslation(text); - - text = CreateTranslation("MeleeLevelUp"); - text.SetDefault("Melee weapon proficiency level up!"); - AddTranslation(text); - - text = CreateTranslation("MeleeLevelUpFinal"); - text.SetDefault("Melee weapon proficiency maxed out!"); - AddTranslation(text); - - text = CreateTranslation("RangedLevelUp"); - text.SetDefault("Ranged weapon proficiency level up!"); - AddTranslation(text); - - text = CreateTranslation("RangedLevelUpFinal"); - text.SetDefault("Ranged weapon proficiency maxed out!"); - AddTranslation(text); - - text = CreateTranslation("MagicLevelUp"); - text.SetDefault("Magic weapon proficiency level up!"); - AddTranslation(text); - - text = CreateTranslation("MagicLevelUpFinal"); - text.SetDefault("Magic weapon proficiency maxed out!"); - AddTranslation(text); - - text = CreateTranslation("SummonLevelUp"); - text.SetDefault("Summoner weapon proficiency level up!"); - AddTranslation(text); - - text = CreateTranslation("SummonLevelUpFinal"); - text.SetDefault("Summoner weapon proficiency maxed out!"); - AddTranslation(text); - - text = CreateTranslation("RogueLevelUp"); - text.SetDefault("Rogue weapon proficiency level up!"); - AddTranslation(text); - - text = CreateTranslation("RogueLevelUpFinal"); - text.SetDefault("Rogue weapon proficiency maxed out!"); - AddTranslation(text); - #endregion - } - #endregion - - #region Unload - public override void Unload() - { - RageHotKey = null; - AdrenalineHotKey = null; - AegisHotKey = null; - TarraHotKey = null; - AstralTeleportHotKey = null; - AstralArcanumUIHotkey = null; - BossBarToggleHotKey = null; - BossBarToggleSmallTextHotKey = null; - - AstralCactusTexture = null; - AstralCactusGlowTexture = null; - AstralSky = null; - - donatorList = null; - - rangedProjectileExceptionList = null; - projectileMinionList = null; - enemyImmunityList = null; - hardModeNerfExceptionList = null; - dungeonEnemyBuffList = null; - bossScaleList = null; - beeEnemyList = null; - beeProjectileList = null; - hardModeNerfList = null; - debuffList = null; - fireWeaponList = null; - natureWeaponList = null; - alcoholList = null; - doubleDamageBuffList = null; - sixtySixDamageBuffList = null; - fiftyDamageBuffList = null; - thirtyThreeDamageBuffList = null; - twentyFiveDamageBuffList = null; - weaponAutoreuseList = null; - quarterDamageNerfList = null; - lightGreenThrowingRarityList = null; - greenThrowingRarityList = null; - blueThrowingRarityList = null; - purpleThrowingRarityList = null; - throwingProjectileList = null; - throwingItemList = null; - pumpkinMoonBuffList = null; - frostMoonBuffList = null; - eclipseBuffList = null; - eventProjectileBuffList = null; - revengeanceEnemyBuffList = null; - revengeanceProjectileBuffList = null; - trapProjectileList = null; - - BossHealthBarManager.Unload(); - base.Unload(); - - AstralArcanumUI.Unload(); - base.Unload(); - - Instance = null; - - //Injections.Unload(); - //base.Unload(); - - if (!Main.dedServ) - { - Main.music[MusicID.Hell] = Main.soundBank.GetCue("Music_" + MusicID.Hell); //remove in 1.4.1 - - Main.heartTexture = heartOriginal2; - Main.heart2Texture = heartOriginal; - Main.rainTexture = rainOriginal; - Main.manaTexture = manaOriginal; - Main.flyingCarpetTexture = carpetOriginal; - } - } - #endregion - - #region SetupLists - public static void SetupLists() - { - donatorList = new List(); - - donatorList.Add("Vorbis"); - donatorList.Add("SoloMael"); - donatorList.Add("Chaotic Reks"); - donatorList.Add("The Buildmonger"); - donatorList.Add("Yuh"); - donatorList.Add("Littlepiggy"); - donatorList.Add("LompL"); - donatorList.Add("Lilith Saintclaire"); - donatorList.Add("Ben Shapiro"); - donatorList.Add("Frederik Henschel"); - donatorList.Add("Faye"); - donatorList.Add("Gibb50"); - donatorList.Add("Braden Hajer"); - donatorList.Add("Hannes Holmlund"); - donatorList.Add("profoundmango69"); - donatorList.Add("Jack M Sargent"); - donatorList.Add("Hans Volter"); - donatorList.Add("Krankwagon"); - donatorList.Add("MishiroUsui"); - donatorList.Add("pixlgray"); - donatorList.Add("Arkhine"); - donatorList.Add("Lodude"); - donatorList.Add("DevAesthetic"); - donatorList.Add("Mister Winchester"); - donatorList.Add("Zacky"); - donatorList.Add("Veine"); - - rangedProjectileExceptionList = new List(); - - rangedProjectileExceptionList.Add(ProjectileID.Phantasm); - rangedProjectileExceptionList.Add(ProjectileID.VortexBeater); - rangedProjectileExceptionList.Add(ProjectileID.DD2PhoenixBow); - - projectileMinionList = new List(); - - projectileMinionList.Add(ProjectileID.PygmySpear); - projectileMinionList.Add(ProjectileID.UFOMinion); - projectileMinionList.Add(ProjectileID.UFOLaser); - projectileMinionList.Add(ProjectileID.StardustCellMinionShot); - projectileMinionList.Add(ProjectileID.MiniSharkron); - projectileMinionList.Add(ProjectileID.MiniRetinaLaser); - projectileMinionList.Add(ProjectileID.ImpFireball); - projectileMinionList.Add(ProjectileID.HornetStinger); - projectileMinionList.Add(ProjectileID.DD2FlameBurstTowerT1Shot); - projectileMinionList.Add(ProjectileID.DD2FlameBurstTowerT2Shot); - projectileMinionList.Add(ProjectileID.DD2FlameBurstTowerT3Shot); - projectileMinionList.Add(ProjectileID.DD2BallistraProj); - projectileMinionList.Add(ProjectileID.DD2ExplosiveTrapT1Explosion); - projectileMinionList.Add(ProjectileID.DD2ExplosiveTrapT2Explosion); - projectileMinionList.Add(ProjectileID.DD2ExplosiveTrapT3Explosion); - projectileMinionList.Add(ProjectileID.SpiderEgg); - projectileMinionList.Add(ProjectileID.BabySpider); - projectileMinionList.Add(ProjectileID.FrostBlastFriendly); - projectileMinionList.Add(ProjectileID.MoonlordTurretLaser); - projectileMinionList.Add(ProjectileID.RainbowCrystalExplosion); - - enemyImmunityList = new List(); - - enemyImmunityList.Add(NPCID.QueenBee); - enemyImmunityList.Add(NPCID.WallofFlesh); - enemyImmunityList.Add(NPCID.WallofFleshEye); - enemyImmunityList.Add(NPCID.Retinazer); - enemyImmunityList.Add(NPCID.Spazmatism); - enemyImmunityList.Add(NPCID.SkeletronPrime); - enemyImmunityList.Add(NPCID.PrimeCannon); - enemyImmunityList.Add(NPCID.PrimeSaw); - enemyImmunityList.Add(NPCID.PrimeLaser); - enemyImmunityList.Add(NPCID.PrimeVice); - enemyImmunityList.Add(NPCID.Plantera); - enemyImmunityList.Add(NPCID.IceQueen); - enemyImmunityList.Add(NPCID.Pumpking); - enemyImmunityList.Add(NPCID.Mothron); - enemyImmunityList.Add(NPCID.Golem); - enemyImmunityList.Add(NPCID.GolemHead); - enemyImmunityList.Add(NPCID.GolemFistRight); - enemyImmunityList.Add(NPCID.GolemFistLeft); - enemyImmunityList.Add(NPCID.DukeFishron); - enemyImmunityList.Add(NPCID.CultistBoss); - enemyImmunityList.Add(NPCID.MoonLordHead); - enemyImmunityList.Add(NPCID.MoonLordHand); - enemyImmunityList.Add(NPCID.MoonLordCore); - enemyImmunityList.Add(NPCID.MoonLordFreeEye); - - hardModeNerfExceptionList = new List(); - - hardModeNerfExceptionList.Add(NPCID.Probe); - hardModeNerfExceptionList.Add(NPCID.TheHungry); - hardModeNerfExceptionList.Add(NPCID.TheHungryII); - hardModeNerfExceptionList.Add(NPCID.WallofFleshEye); - hardModeNerfExceptionList.Add(NPCID.Creeper); - hardModeNerfExceptionList.Add(NPCID.EaterofWorldsHead); - hardModeNerfExceptionList.Add(NPCID.EaterofWorldsBody); - hardModeNerfExceptionList.Add(NPCID.EaterofWorldsTail); - hardModeNerfExceptionList.Add(NPCID.SkeletronHand); - - dungeonEnemyBuffList = new List(); - - dungeonEnemyBuffList.Add(NPCID.SkeletonSniper); - dungeonEnemyBuffList.Add(NPCID.TacticalSkeleton); - dungeonEnemyBuffList.Add(NPCID.SkeletonCommando); - dungeonEnemyBuffList.Add(NPCID.Paladin); - dungeonEnemyBuffList.Add(NPCID.GiantCursedSkull); - dungeonEnemyBuffList.Add(NPCID.BoneLee); - dungeonEnemyBuffList.Add(NPCID.DiabolistWhite); - dungeonEnemyBuffList.Add(NPCID.DiabolistRed); - dungeonEnemyBuffList.Add(NPCID.NecromancerArmored); - dungeonEnemyBuffList.Add(NPCID.Necromancer); - dungeonEnemyBuffList.Add(NPCID.RaggedCasterOpenCoat); - dungeonEnemyBuffList.Add(NPCID.RaggedCaster); - dungeonEnemyBuffList.Add(NPCID.HellArmoredBonesSword); - dungeonEnemyBuffList.Add(NPCID.HellArmoredBonesMace); - dungeonEnemyBuffList.Add(NPCID.HellArmoredBonesSpikeShield); - dungeonEnemyBuffList.Add(NPCID.HellArmoredBones); - dungeonEnemyBuffList.Add(NPCID.BlueArmoredBonesSword); - dungeonEnemyBuffList.Add(NPCID.BlueArmoredBonesNoPants); - dungeonEnemyBuffList.Add(NPCID.BlueArmoredBonesMace); - dungeonEnemyBuffList.Add(NPCID.BlueArmoredBones); - dungeonEnemyBuffList.Add(NPCID.RustyArmoredBonesSwordNoArmor); - dungeonEnemyBuffList.Add(NPCID.RustyArmoredBonesSword); - dungeonEnemyBuffList.Add(NPCID.RustyArmoredBonesFlail); - dungeonEnemyBuffList.Add(NPCID.RustyArmoredBonesAxe); - - bossScaleList = new List(); - - bossScaleList.Add(NPCID.EaterofWorldsHead); - bossScaleList.Add(NPCID.EaterofWorldsBody); - bossScaleList.Add(NPCID.EaterofWorldsTail); - bossScaleList.Add(NPCID.Creeper); - bossScaleList.Add(NPCID.SkeletronHand); - bossScaleList.Add(NPCID.WallofFleshEye); - bossScaleList.Add(NPCID.TheHungry); - bossScaleList.Add(NPCID.TheHungryII); - bossScaleList.Add(NPCID.TheDestroyerBody); - bossScaleList.Add(NPCID.TheDestroyerTail); - bossScaleList.Add(NPCID.PrimeCannon); - bossScaleList.Add(NPCID.PrimeVice); - bossScaleList.Add(NPCID.PrimeSaw); - bossScaleList.Add(NPCID.PrimeLaser); - bossScaleList.Add(NPCID.PlanterasTentacle); - bossScaleList.Add(NPCID.Pumpking); - bossScaleList.Add(NPCID.IceQueen); - bossScaleList.Add(NPCID.Mothron); - bossScaleList.Add(NPCID.GolemHead); - - beeEnemyList = new List(); - - beeEnemyList.Add(NPCID.GiantMossHornet); - beeEnemyList.Add(NPCID.BigMossHornet); - beeEnemyList.Add(NPCID.LittleMossHornet); - beeEnemyList.Add(NPCID.TinyMossHornet); - beeEnemyList.Add(NPCID.MossHornet); - beeEnemyList.Add(NPCID.VortexHornetQueen); - beeEnemyList.Add(NPCID.VortexHornet); - beeEnemyList.Add(NPCID.Bee); - beeEnemyList.Add(NPCID.BeeSmall); - beeEnemyList.Add(NPCID.QueenBee); - - beeProjectileList = new List(); - - beeProjectileList.Add(ProjectileID.Stinger); - beeProjectileList.Add(ProjectileID.HornetStinger); - - hardModeNerfList = new List(); - - hardModeNerfList.Add(ProjectileID.WebSpit); - hardModeNerfList.Add(ProjectileID.PinkLaser); - hardModeNerfList.Add(ProjectileID.FrostBlastHostile); - hardModeNerfList.Add(ProjectileID.RuneBlast); - hardModeNerfList.Add(ProjectileID.GoldenShowerHostile); - hardModeNerfList.Add(ProjectileID.RainNimbus); - hardModeNerfList.Add(ProjectileID.Stinger); - hardModeNerfList.Add(ProjectileID.FlamingArrow); - hardModeNerfList.Add(ProjectileID.BulletDeadeye); - hardModeNerfList.Add(ProjectileID.CannonballHostile); - - debuffList = new List(); - - debuffList.Add(BuffID.Poisoned); - debuffList.Add(BuffID.Darkness); - debuffList.Add(BuffID.Cursed); - debuffList.Add(BuffID.OnFire); - debuffList.Add(BuffID.Bleeding); - debuffList.Add(BuffID.Confused); - debuffList.Add(BuffID.Slow); - debuffList.Add(BuffID.Weak); - debuffList.Add(BuffID.Silenced); - debuffList.Add(BuffID.BrokenArmor); - debuffList.Add(BuffID.CursedInferno); - debuffList.Add(BuffID.Frostburn); - debuffList.Add(BuffID.Chilled); - debuffList.Add(BuffID.Frozen); - debuffList.Add(BuffID.Burning); - debuffList.Add(BuffID.Suffocation); - debuffList.Add(BuffID.Ichor); - debuffList.Add(BuffID.Venom); - debuffList.Add(BuffID.Blackout); - debuffList.Add(BuffID.Electrified); - debuffList.Add(BuffID.Rabies); - debuffList.Add(BuffID.Webbed); - debuffList.Add(BuffID.Stoned); - debuffList.Add(BuffID.Dazed); - debuffList.Add(BuffID.VortexDebuff); - debuffList.Add(BuffID.WitheredArmor); - debuffList.Add(BuffID.WitheredWeapon); - debuffList.Add(BuffID.OgreSpit); - debuffList.Add(BuffID.BetsysCurse); - - fireWeaponList = new List(); - - fireWeaponList.Add(ItemID.FieryGreatsword); - fireWeaponList.Add(ItemID.DD2SquireDemonSword); - fireWeaponList.Add(ItemID.TheHorsemansBlade); - fireWeaponList.Add(ItemID.DD2SquireBetsySword); - fireWeaponList.Add(ItemID.Cascade); - fireWeaponList.Add(ItemID.HelFire); - fireWeaponList.Add(ItemID.MonkStaffT2); - fireWeaponList.Add(ItemID.Flamarang); - fireWeaponList.Add(ItemID.MoltenFury); - fireWeaponList.Add(ItemID.Sunfury); - fireWeaponList.Add(ItemID.PhoenixBlaster); - fireWeaponList.Add(ItemID.Flamelash); - fireWeaponList.Add(ItemID.SolarEruption); - fireWeaponList.Add(ItemID.DayBreak); - fireWeaponList.Add(ItemID.MonkStaffT3); - fireWeaponList.Add(ItemID.HellwingBow); - fireWeaponList.Add(ItemID.DD2PhoenixBow); - fireWeaponList.Add(ItemID.DD2BetsyBow); - fireWeaponList.Add(ItemID.FlareGun); - fireWeaponList.Add(ItemID.Flamethrower); - fireWeaponList.Add(ItemID.EldMelter); - fireWeaponList.Add(ItemID.FlowerofFire); - fireWeaponList.Add(ItemID.MeteorStaff); - fireWeaponList.Add(ItemID.ApprenticeStaffT3); - fireWeaponList.Add(ItemID.InfernoFork); - fireWeaponList.Add(ItemID.HeatRay); - fireWeaponList.Add(ItemID.BookofSkulls); - fireWeaponList.Add(ItemID.ImpStaff); - fireWeaponList.Add(ItemID.DD2FlameburstTowerT1Popper); - fireWeaponList.Add(ItemID.DD2FlameburstTowerT2Popper); - fireWeaponList.Add(ItemID.DD2FlameburstTowerT3Popper); - fireWeaponList.Add(ItemID.MolotovCocktail); - - natureWeaponList = new List(); - - natureWeaponList.Add(ItemID.BladeofGrass); - natureWeaponList.Add(ItemID.ChlorophyteClaymore); - natureWeaponList.Add(ItemID.ChlorophyteSaber); - natureWeaponList.Add(ItemID.ChlorophytePartisan); - natureWeaponList.Add(ItemID.ChlorophyteShotbow); - natureWeaponList.Add(ItemID.Seedler); - natureWeaponList.Add(ItemID.ChristmasTreeSword); - natureWeaponList.Add(ItemID.TerraBlade); - natureWeaponList.Add(ItemID.JungleYoyo); - natureWeaponList.Add(ItemID.Yelets); - natureWeaponList.Add(ItemID.MushroomSpear); - natureWeaponList.Add(ItemID.ThornChakram); - natureWeaponList.Add(ItemID.Bananarang); - natureWeaponList.Add(ItemID.FlowerPow); - natureWeaponList.Add(ItemID.BeesKnees); - natureWeaponList.Add(ItemID.Toxikarp); - natureWeaponList.Add(ItemID.Bladetongue); - natureWeaponList.Add(ItemID.PoisonStaff); - natureWeaponList.Add(ItemID.VenomStaff); - natureWeaponList.Add(ItemID.StaffofEarth); - natureWeaponList.Add(ItemID.BeeGun); - natureWeaponList.Add(ItemID.LeafBlower); - natureWeaponList.Add(ItemID.WaspGun); - natureWeaponList.Add(ItemID.CrystalSerpent); - natureWeaponList.Add(ItemID.Razorpine); - natureWeaponList.Add(ItemID.HornetStaff); - natureWeaponList.Add(ItemID.QueenSpiderStaff); - natureWeaponList.Add(ItemID.SlimeStaff); - natureWeaponList.Add(ItemID.PygmyStaff); - natureWeaponList.Add(ItemID.RavenStaff); - natureWeaponList.Add(ItemID.BatScepter); - natureWeaponList.Add(ItemID.SpiderStaff); - natureWeaponList.Add(ItemID.Beenade); - natureWeaponList.Add(ItemID.FrostDaggerfish); - - alcoholList = new List(); - - doubleDamageBuffList = new List(); - - doubleDamageBuffList.Add(ItemID.BallOHurt); - doubleDamageBuffList.Add(ItemID.TheMeatball); - doubleDamageBuffList.Add(ItemID.BlueMoon); - doubleDamageBuffList.Add(ItemID.Sunfury); - doubleDamageBuffList.Add(ItemID.DaoofPow); - doubleDamageBuffList.Add(ItemID.FlowerPow); - doubleDamageBuffList.Add(ItemID.Anchor); - doubleDamageBuffList.Add(ItemID.KOCannon); - doubleDamageBuffList.Add(ItemID.GolemFist); - doubleDamageBuffList.Add(ItemID.BreakerBlade); - doubleDamageBuffList.Add(ItemID.SpectreStaff); - doubleDamageBuffList.Add(ItemID.MonkStaffT2); - doubleDamageBuffList.Add(ItemID.ProximityMineLauncher); - doubleDamageBuffList.Add(ItemID.FireworksLauncher); - - sixtySixDamageBuffList = new List(); - - sixtySixDamageBuffList.Add(ItemID.TerraBlade); - sixtySixDamageBuffList.Add(ItemID.TrueNightsEdge); - sixtySixDamageBuffList.Add(ItemID.WandofSparking); - sixtySixDamageBuffList.Add(ItemID.MedusaHead); - sixtySixDamageBuffList.Add(ItemID.StaffofEarth); - sixtySixDamageBuffList.Add(ItemID.ChristmasTreeSword); - sixtySixDamageBuffList.Add(ItemID.MonkStaffT1); - sixtySixDamageBuffList.Add(ItemID.InfernoFork); - sixtySixDamageBuffList.Add(ItemID.VenomStaff); - - fiftyDamageBuffList = new List(); - - fiftyDamageBuffList.Add(ItemID.NightsEdge); - fiftyDamageBuffList.Add(ItemID.EldMelter); - fiftyDamageBuffList.Add(ItemID.Flamethrower); - fiftyDamageBuffList.Add(ItemID.MoonlordTurretStaff); - fiftyDamageBuffList.Add(ItemID.WaspGun); - fiftyDamageBuffList.Add(ItemID.Keybrand); - fiftyDamageBuffList.Add(ItemID.PulseBow); - fiftyDamageBuffList.Add(ItemID.PaladinsHammer); - - thirtyThreeDamageBuffList = new List(); - - thirtyThreeDamageBuffList.Add(ItemID.CrystalVileShard); - thirtyThreeDamageBuffList.Add(ItemID.SoulDrain); - thirtyThreeDamageBuffList.Add(ItemID.ClingerStaff); - thirtyThreeDamageBuffList.Add(ItemID.ChargedBlasterCannon); - thirtyThreeDamageBuffList.Add(ItemID.NettleBurst); - thirtyThreeDamageBuffList.Add(ItemID.Excalibur); - thirtyThreeDamageBuffList.Add(ItemID.AmberStaff); - thirtyThreeDamageBuffList.Add(ItemID.BluePhasesaber); - thirtyThreeDamageBuffList.Add(ItemID.RedPhasesaber); - thirtyThreeDamageBuffList.Add(ItemID.GreenPhasesaber); - thirtyThreeDamageBuffList.Add(ItemID.WhitePhasesaber); - thirtyThreeDamageBuffList.Add(ItemID.YellowPhasesaber); - thirtyThreeDamageBuffList.Add(ItemID.PurplePhasesaber); - thirtyThreeDamageBuffList.Add(ItemID.TheRottedFork); - thirtyThreeDamageBuffList.Add(ItemID.VampireKnives); - - twentyFiveDamageBuffList = new List(); - - twentyFiveDamageBuffList.Add(ItemID.Muramasa); - twentyFiveDamageBuffList.Add(ItemID.StakeLauncher); - - twentyDamageBuffList = new List(); - - twentyDamageBuffList.Add(ItemID.ChainGuillotines); - twentyDamageBuffList.Add(ItemID.FlowerofFrost); - twentyDamageBuffList.Add(ItemID.PoisonStaff); - twentyDamageBuffList.Add(ItemID.Gungnir); - twentyDamageBuffList.Add(ItemID.BookStaff); - - weaponAutoreuseList = new List(); - - weaponAutoreuseList.Add(ItemID.NightsEdge); - weaponAutoreuseList.Add(ItemID.TrueNightsEdge); - weaponAutoreuseList.Add(ItemID.TrueExcalibur); - weaponAutoreuseList.Add(ItemID.PhoenixBlaster); - weaponAutoreuseList.Add(ItemID.VenusMagnum); - weaponAutoreuseList.Add(ItemID.MagicDagger); - weaponAutoreuseList.Add(ItemID.BeamSword); - weaponAutoreuseList.Add(ItemID.MonkStaffT2); - weaponAutoreuseList.Add(ItemID.PaladinsHammer); - - quarterDamageNerfList = new List(); - - quarterDamageNerfList.Add(ItemID.DaedalusStormbow); - quarterDamageNerfList.Add(ItemID.PhoenixBlaster); - quarterDamageNerfList.Add(ItemID.VenusMagnum); - quarterDamageNerfList.Add(ItemID.BlizzardStaff); - - pumpkinMoonBuffList = new List(); - - pumpkinMoonBuffList.Add(NPCID.Scarecrow1); - pumpkinMoonBuffList.Add(NPCID.Scarecrow2); - pumpkinMoonBuffList.Add(NPCID.Scarecrow3); - pumpkinMoonBuffList.Add(NPCID.Scarecrow4); - pumpkinMoonBuffList.Add(NPCID.Scarecrow5); - pumpkinMoonBuffList.Add(NPCID.Scarecrow6); - pumpkinMoonBuffList.Add(NPCID.Scarecrow7); - pumpkinMoonBuffList.Add(NPCID.Scarecrow8); - pumpkinMoonBuffList.Add(NPCID.Scarecrow9); - pumpkinMoonBuffList.Add(NPCID.Scarecrow10); - pumpkinMoonBuffList.Add(NPCID.HeadlessHorseman); - pumpkinMoonBuffList.Add(NPCID.MourningWood); - pumpkinMoonBuffList.Add(NPCID.Splinterling); - pumpkinMoonBuffList.Add(NPCID.Pumpking); - pumpkinMoonBuffList.Add(NPCID.Hellhound); - pumpkinMoonBuffList.Add(NPCID.Poltergeist); - - frostMoonBuffList = new List(); - - frostMoonBuffList.Add(NPCID.ZombieElf); - frostMoonBuffList.Add(NPCID.ZombieElfBeard); - frostMoonBuffList.Add(NPCID.ZombieElfGirl); - frostMoonBuffList.Add(NPCID.PresentMimic); - frostMoonBuffList.Add(NPCID.GingerbreadMan); - frostMoonBuffList.Add(NPCID.Yeti); - frostMoonBuffList.Add(NPCID.Everscream); - frostMoonBuffList.Add(NPCID.IceQueen); - frostMoonBuffList.Add(NPCID.SantaNK1); - frostMoonBuffList.Add(NPCID.ElfCopter); - frostMoonBuffList.Add(NPCID.Nutcracker); - frostMoonBuffList.Add(NPCID.NutcrackerSpinning); - frostMoonBuffList.Add(NPCID.ElfArcher); - frostMoonBuffList.Add(NPCID.Krampus); - frostMoonBuffList.Add(NPCID.Flocko); - - eclipseBuffList = new List(); - - eclipseBuffList.Add(NPCID.Eyezor); - eclipseBuffList.Add(NPCID.Reaper); - eclipseBuffList.Add(NPCID.Frankenstein); - eclipseBuffList.Add(NPCID.SwampThing); - eclipseBuffList.Add(NPCID.Vampire); - eclipseBuffList.Add(NPCID.VampireBat); - eclipseBuffList.Add(NPCID.Butcher); - eclipseBuffList.Add(NPCID.CreatureFromTheDeep); - eclipseBuffList.Add(NPCID.Fritz); - eclipseBuffList.Add(NPCID.Nailhead); - eclipseBuffList.Add(NPCID.Psycho); - eclipseBuffList.Add(NPCID.DeadlySphere); - eclipseBuffList.Add(NPCID.DrManFly); - eclipseBuffList.Add(NPCID.ThePossessed); - eclipseBuffList.Add(NPCID.Mothron); - eclipseBuffList.Add(NPCID.MothronEgg); - eclipseBuffList.Add(NPCID.MothronSpawn); - - eventProjectileBuffList = new List(); - - eventProjectileBuffList.Add(ProjectileID.FlamingWood); - eventProjectileBuffList.Add(ProjectileID.GreekFire1); - eventProjectileBuffList.Add(ProjectileID.GreekFire2); - eventProjectileBuffList.Add(ProjectileID.GreekFire3); - eventProjectileBuffList.Add(ProjectileID.FlamingScythe); - eventProjectileBuffList.Add(ProjectileID.FlamingArrow); - eventProjectileBuffList.Add(ProjectileID.PineNeedleHostile); - eventProjectileBuffList.Add(ProjectileID.OrnamentHostile); - eventProjectileBuffList.Add(ProjectileID.OrnamentHostileShrapnel); - eventProjectileBuffList.Add(ProjectileID.FrostWave); - eventProjectileBuffList.Add(ProjectileID.FrostShard); - eventProjectileBuffList.Add(ProjectileID.Missile); - eventProjectileBuffList.Add(ProjectileID.Present); - eventProjectileBuffList.Add(ProjectileID.Spike); - eventProjectileBuffList.Add(ProjectileID.BulletDeadeye); - eventProjectileBuffList.Add(ProjectileID.EyeLaser); - eventProjectileBuffList.Add(ProjectileID.Nail); - eventProjectileBuffList.Add(ProjectileID.DrManFlyFlask); - - revengeanceEnemyBuffList = new List(); - - revengeanceEnemyBuffList.Add(NPCID.ServantofCthulhu); - revengeanceEnemyBuffList.Add(NPCID.EyeofCthulhu); - revengeanceEnemyBuffList.Add(NPCID.EaterofWorldsHead); - revengeanceEnemyBuffList.Add(NPCID.DevourerHead); - revengeanceEnemyBuffList.Add(NPCID.GiantWormHead); - revengeanceEnemyBuffList.Add(NPCID.MeteorHead); - revengeanceEnemyBuffList.Add(NPCID.SkeletronHead); - revengeanceEnemyBuffList.Add(NPCID.SkeletronHand); - revengeanceEnemyBuffList.Add(NPCID.BoneSerpentHead); - revengeanceEnemyBuffList.Add(NPCID.ManEater); - revengeanceEnemyBuffList.Add(NPCID.KingSlime); - revengeanceEnemyBuffList.Add(NPCID.Snatcher); - revengeanceEnemyBuffList.Add(NPCID.Piranha); - revengeanceEnemyBuffList.Add(NPCID.Shark); - revengeanceEnemyBuffList.Add(NPCID.SpikeBall); - revengeanceEnemyBuffList.Add(NPCID.BlazingWheel); - revengeanceEnemyBuffList.Add(NPCID.Mimic); - revengeanceEnemyBuffList.Add(NPCID.WyvernHead); - revengeanceEnemyBuffList.Add(NPCID.DiggerHead); - revengeanceEnemyBuffList.Add(NPCID.SeekerHead); - revengeanceEnemyBuffList.Add(NPCID.AnglerFish); - revengeanceEnemyBuffList.Add(NPCID.Werewolf); - revengeanceEnemyBuffList.Add(NPCID.Wraith); - revengeanceEnemyBuffList.Add(NPCID.WallofFlesh); - revengeanceEnemyBuffList.Add(NPCID.TheHungry); - revengeanceEnemyBuffList.Add(NPCID.TheHungryII); - revengeanceEnemyBuffList.Add(NPCID.LeechHead); - revengeanceEnemyBuffList.Add(NPCID.Spazmatism); - revengeanceEnemyBuffList.Add(NPCID.Retinazer); - revengeanceEnemyBuffList.Add(NPCID.SkeletronPrime); - revengeanceEnemyBuffList.Add(NPCID.PrimeSaw); - revengeanceEnemyBuffList.Add(NPCID.PrimeVice); - revengeanceEnemyBuffList.Add(NPCID.TheDestroyer); - revengeanceEnemyBuffList.Add(NPCID.Arapaima); - revengeanceEnemyBuffList.Add(NPCID.BlackRecluse); - revengeanceEnemyBuffList.Add(NPCID.WallCreeper); - revengeanceEnemyBuffList.Add(NPCID.WallCreeperWall); - revengeanceEnemyBuffList.Add(NPCID.BlackRecluseWall); - revengeanceEnemyBuffList.Add(NPCID.AngryTrapper); - revengeanceEnemyBuffList.Add(NPCID.Lihzahrd); - revengeanceEnemyBuffList.Add(NPCID.LihzahrdCrawler); - revengeanceEnemyBuffList.Add(NPCID.PirateCaptain); - revengeanceEnemyBuffList.Add(NPCID.QueenBee); - revengeanceEnemyBuffList.Add(NPCID.FlyingSnake); - revengeanceEnemyBuffList.Add(NPCID.Golem); - revengeanceEnemyBuffList.Add(NPCID.GolemFistLeft); - revengeanceEnemyBuffList.Add(NPCID.GolemFistRight); - revengeanceEnemyBuffList.Add(NPCID.Reaper); - revengeanceEnemyBuffList.Add(NPCID.Plantera); - revengeanceEnemyBuffList.Add(NPCID.PlanterasHook); - revengeanceEnemyBuffList.Add(NPCID.PlanterasTentacle); - revengeanceEnemyBuffList.Add(NPCID.BrainofCthulhu); - revengeanceEnemyBuffList.Add(NPCID.Paladin); - revengeanceEnemyBuffList.Add(NPCID.BoneLee); - revengeanceEnemyBuffList.Add(NPCID.MourningWood); - revengeanceEnemyBuffList.Add(NPCID.Pumpking); - revengeanceEnemyBuffList.Add(NPCID.PumpkingBlade); - revengeanceEnemyBuffList.Add(NPCID.PresentMimic); - revengeanceEnemyBuffList.Add(NPCID.Everscream); - revengeanceEnemyBuffList.Add(NPCID.IceQueen); - revengeanceEnemyBuffList.Add(NPCID.SantaNK1); - revengeanceEnemyBuffList.Add(NPCID.DukeFishron); - revengeanceEnemyBuffList.Add(NPCID.MoonLordHand); - revengeanceEnemyBuffList.Add(NPCID.StardustWormHead); - revengeanceEnemyBuffList.Add(NPCID.SolarCrawltipedeHead); - revengeanceEnemyBuffList.Add(NPCID.CultistDragonHead); - revengeanceEnemyBuffList.Add(NPCID.Butcher); - revengeanceEnemyBuffList.Add(NPCID.Psycho); - revengeanceEnemyBuffList.Add(NPCID.DeadlySphere); - revengeanceEnemyBuffList.Add(NPCID.BigMimicCorruption); - revengeanceEnemyBuffList.Add(NPCID.BigMimicCrimson); - revengeanceEnemyBuffList.Add(NPCID.BigMimicHallow); - revengeanceEnemyBuffList.Add(NPCID.Mothron); - revengeanceEnemyBuffList.Add(NPCID.DuneSplicerHead); - revengeanceEnemyBuffList.Add(NPCID.SlimeSpiked); - revengeanceEnemyBuffList.Add(NPCID.SandShark); - revengeanceEnemyBuffList.Add(NPCID.SandsharkCorrupt); - revengeanceEnemyBuffList.Add(NPCID.SandsharkCrimson); - revengeanceEnemyBuffList.Add(NPCID.SandsharkHallow); - revengeanceEnemyBuffList.Add(NPCID.DD2Betsy); - - revengeanceProjectileBuffList = new List(); - - revengeanceProjectileBuffList.Add(ProjectileID.SandBallFalling); - revengeanceProjectileBuffList.Add(ProjectileID.AshBallFalling); - revengeanceProjectileBuffList.Add(ProjectileID.DemonSickle); - revengeanceProjectileBuffList.Add(ProjectileID.EbonsandBallFalling); - revengeanceProjectileBuffList.Add(ProjectileID.PearlSandBallFalling); - revengeanceProjectileBuffList.Add(ProjectileID.CursedFlameHostile); - revengeanceProjectileBuffList.Add(ProjectileID.EyeFire); - revengeanceProjectileBuffList.Add(ProjectileID.Boulder); - revengeanceProjectileBuffList.Add(ProjectileID.DeathLaser); - revengeanceProjectileBuffList.Add(ProjectileID.PoisonDartTrap); - revengeanceProjectileBuffList.Add(ProjectileID.SpikyBallTrap); - revengeanceProjectileBuffList.Add(ProjectileID.SpearTrap); - revengeanceProjectileBuffList.Add(ProjectileID.FlamethrowerTrap); - revengeanceProjectileBuffList.Add(ProjectileID.FlamesTrap); - revengeanceProjectileBuffList.Add(ProjectileID.CrimsandBallFalling); - revengeanceProjectileBuffList.Add(ProjectileID.Fireball); - revengeanceProjectileBuffList.Add(ProjectileID.EyeBeam); - revengeanceProjectileBuffList.Add(ProjectileID.PoisonSeedPlantera); - revengeanceProjectileBuffList.Add(ProjectileID.ThornBall); - revengeanceProjectileBuffList.Add(ProjectileID.PaladinsHammerHostile); - revengeanceProjectileBuffList.Add(ProjectileID.RocketSkeleton); - revengeanceProjectileBuffList.Add(ProjectileID.FlamingWood); - revengeanceProjectileBuffList.Add(ProjectileID.FlamingScythe); - revengeanceProjectileBuffList.Add(ProjectileID.FrostWave); - revengeanceProjectileBuffList.Add(ProjectileID.Present); - revengeanceProjectileBuffList.Add(ProjectileID.Spike); - revengeanceProjectileBuffList.Add(ProjectileID.SaucerDeathray); - revengeanceProjectileBuffList.Add(ProjectileID.PhantasmalEye); - revengeanceProjectileBuffList.Add(ProjectileID.PhantasmalSphere); - revengeanceProjectileBuffList.Add(ProjectileID.PhantasmalDeathray); - revengeanceProjectileBuffList.Add(ProjectileID.CultistBossIceMist); - revengeanceProjectileBuffList.Add(ProjectileID.CultistBossLightningOrbArc); - revengeanceProjectileBuffList.Add(ProjectileID.CultistBossFireBall); - revengeanceProjectileBuffList.Add(ProjectileID.NebulaBolt); - revengeanceProjectileBuffList.Add(ProjectileID.NebulaSphere); - revengeanceProjectileBuffList.Add(ProjectileID.NebulaLaser); - revengeanceProjectileBuffList.Add(ProjectileID.StardustSoldierLaser); - revengeanceProjectileBuffList.Add(ProjectileID.VortexLaser); - revengeanceProjectileBuffList.Add(ProjectileID.VortexVortexLightning); - revengeanceProjectileBuffList.Add(ProjectileID.VortexLightning); - revengeanceProjectileBuffList.Add(ProjectileID.VortexAcid); - revengeanceProjectileBuffList.Add(ProjectileID.GeyserTrap); - revengeanceProjectileBuffList.Add(ProjectileID.SandnadoHostile); - revengeanceProjectileBuffList.Add(ProjectileID.DD2BetsyFireball); - revengeanceProjectileBuffList.Add(ProjectileID.DD2BetsyFlameBreath); - - trapProjectileList = new List(); - - trapProjectileList.Add(ProjectileID.PoisonDartTrap); - trapProjectileList.Add(ProjectileID.SpikyBallTrap); - trapProjectileList.Add(ProjectileID.SpearTrap); - trapProjectileList.Add(ProjectileID.FlamethrowerTrap); - trapProjectileList.Add(ProjectileID.FlamesTrap); - trapProjectileList.Add(ProjectileID.PoisonDart); - trapProjectileList.Add(ProjectileID.GeyserTrap); - - lightGreenThrowingRarityList = new List(); - greenThrowingRarityList = new List(); - blueThrowingRarityList = new List(); - purpleThrowingRarityList = new List(); - - throwingProjectileList = new List(); - throwingItemList = new List(); - - Mod calamity = ModLoader.GetMod("CalamityMod"); - if (calamity != null) - { - rangedProjectileExceptionList.Add(calamity.ProjectileType("Phangasm")); - rangedProjectileExceptionList.Add(calamity.ProjectileType("Contagion")); - rangedProjectileExceptionList.Add(calamity.ProjectileType("DaemonsFlame")); - rangedProjectileExceptionList.Add(calamity.ProjectileType("ExoTornado")); - rangedProjectileExceptionList.Add(calamity.ProjectileType("Drataliornus")); - rangedProjectileExceptionList.Add(calamity.ProjectileType("FlakKrakenGun")); - rangedProjectileExceptionList.Add(calamity.ProjectileType("Butcher")); - rangedProjectileExceptionList.Add(calamity.ProjectileType("StarfleetMK2")); - - beeEnemyList.Add(calamity.NPCType("PlaguebringerGoliath")); - beeEnemyList.Add(calamity.NPCType("PlaguebringerShade")); - beeEnemyList.Add(calamity.NPCType("PlagueBeeLargeG")); - beeEnemyList.Add(calamity.NPCType("PlagueBeeLarge")); - beeEnemyList.Add(calamity.NPCType("PlagueBeeG")); - beeEnemyList.Add(calamity.NPCType("PlagueBee")); - - beeProjectileList.Add(calamity.ProjectileType("PlagueStingerGoliath")); - beeProjectileList.Add(calamity.ProjectileType("PlagueStingerGoliathV2")); - beeProjectileList.Add(calamity.ProjectileType("PlagueExplosion")); - - debuffList.Add(calamity.BuffType("BrimstoneFlames")); - debuffList.Add(calamity.BuffType("BurningBlood")); - debuffList.Add(calamity.BuffType("GlacialState")); - debuffList.Add(calamity.BuffType("GodSlayerInferno")); - debuffList.Add(calamity.BuffType("HolyLight")); - debuffList.Add(calamity.BuffType("Irradiated")); - debuffList.Add(calamity.BuffType("Plague")); - debuffList.Add(calamity.BuffType("AbyssalFlames")); - debuffList.Add(calamity.BuffType("CrushDepth")); - debuffList.Add(calamity.BuffType("Horror")); - debuffList.Add(calamity.BuffType("MarkedforDeath")); - - fireWeaponList.Add(calamity.ItemType("AegisBlade")); - fireWeaponList.Add(calamity.ItemType("BalefulHarvester")); - fireWeaponList.Add(calamity.ItemType("Chaotrix")); - fireWeaponList.Add(calamity.ItemType("CometQuasher")); - fireWeaponList.Add(calamity.ItemType("DraconicDestruction")); - fireWeaponList.Add(calamity.ItemType("Drataliornus")); - fireWeaponList.Add(calamity.ItemType("EnergyStaff")); - fireWeaponList.Add(calamity.ItemType("ExsanguinationLance")); - fireWeaponList.Add(calamity.ItemType("FirestormCannon")); - fireWeaponList.Add(calamity.ItemType("FlameburstShortsword")); - fireWeaponList.Add(calamity.ItemType("FlameScythe")); - fireWeaponList.Add(calamity.ItemType("FlameScytheMelee")); - fireWeaponList.Add(calamity.ItemType("FlareBolt")); - fireWeaponList.Add(calamity.ItemType("FlarefrostBlade")); - fireWeaponList.Add(calamity.ItemType("FlarewingBow")); - fireWeaponList.Add(calamity.ItemType("ForbiddenSun")); - fireWeaponList.Add(calamity.ItemType("FrigidflashBolt")); - fireWeaponList.Add(calamity.ItemType("GreatbowofTurmoil")); - fireWeaponList.Add(calamity.ItemType("HarvestStaff")); - fireWeaponList.Add(calamity.ItemType("HellBurst")); - fireWeaponList.Add(calamity.ItemType("HellfireFlamberge")); - fireWeaponList.Add(calamity.ItemType("Hellkite")); - fireWeaponList.Add(calamity.ItemType("HellwingStaff")); - fireWeaponList.Add(calamity.ItemType("Helstorm")); - fireWeaponList.Add(calamity.ItemType("InfernaCutter")); - fireWeaponList.Add(calamity.ItemType("Lazhar")); - fireWeaponList.Add(calamity.ItemType("MeteorFist")); - fireWeaponList.Add(calamity.ItemType("Mourningstar")); - fireWeaponList.Add(calamity.ItemType("PhoenixBlade")); - fireWeaponList.Add(calamity.ItemType("Photoviscerator")); - fireWeaponList.Add(calamity.ItemType("RedSun")); - fireWeaponList.Add(calamity.ItemType("SpectralstormCannon")); - fireWeaponList.Add(calamity.ItemType("SunGodStaff")); - fireWeaponList.Add(calamity.ItemType("SunSpiritStaff")); - fireWeaponList.Add(calamity.ItemType("TearsofHeaven")); - fireWeaponList.Add(calamity.ItemType("TerraFlameburster")); - fireWeaponList.Add(calamity.ItemType("TheEmpyrean")); - fireWeaponList.Add(calamity.ItemType("TheWand")); - fireWeaponList.Add(calamity.ItemType("VenusianTrident")); - fireWeaponList.Add(calamity.ItemType("Vesuvius")); - fireWeaponList.Add(calamity.ItemType("BlissfulBombardier")); - fireWeaponList.Add(calamity.ItemType("HolyCollider")); - fireWeaponList.Add(calamity.ItemType("MoltenAmputator")); - fireWeaponList.Add(calamity.ItemType("PurgeGuzzler")); - fireWeaponList.Add(calamity.ItemType("SolarFlare")); - fireWeaponList.Add(calamity.ItemType("TelluricGlare")); - fireWeaponList.Add(calamity.ItemType("AngryChickenStaff")); - fireWeaponList.Add(calamity.ItemType("ChickenCannon")); - fireWeaponList.Add(calamity.ItemType("DragonRage")); - fireWeaponList.Add(calamity.ItemType("DragonsBreath")); - fireWeaponList.Add(calamity.ItemType("PhoenixFlameBarrage")); - fireWeaponList.Add(calamity.ItemType("ProfanedTrident")); - fireWeaponList.Add(calamity.ItemType("TheBurningSky")); - - natureWeaponList.Add(calamity.ItemType("DepthBlade")); - natureWeaponList.Add(calamity.ItemType("AbyssBlade")); - natureWeaponList.Add(calamity.ItemType("NeptunesBounty")); - natureWeaponList.Add(calamity.ItemType("AquaticDissolution")); - natureWeaponList.Add(calamity.ItemType("ArchAmaryllis")); - natureWeaponList.Add(calamity.ItemType("BiomeBlade")); - natureWeaponList.Add(calamity.ItemType("TrueBiomeBlade")); - natureWeaponList.Add(calamity.ItemType("OmegaBiomeBlade")); - natureWeaponList.Add(calamity.ItemType("BladedgeGreatbow")); - natureWeaponList.Add(calamity.ItemType("BlossomFlux")); - natureWeaponList.Add(calamity.ItemType("EvergladeSpray")); - natureWeaponList.Add(calamity.ItemType("FeralthornClaymore")); - natureWeaponList.Add(calamity.ItemType("Floodtide")); - natureWeaponList.Add(calamity.ItemType("FourSeasonsGalaxia")); - natureWeaponList.Add(calamity.ItemType("GammaFusillade")); - natureWeaponList.Add(calamity.ItemType("GleamingMagnolia")); - natureWeaponList.Add(calamity.ItemType("HarvestStaff")); - natureWeaponList.Add(calamity.ItemType("HellionFlowerSpear")); - natureWeaponList.Add(calamity.ItemType("Lazhar")); - natureWeaponList.Add(calamity.ItemType("LifefruitScythe")); - natureWeaponList.Add(calamity.ItemType("ManaRose")); - natureWeaponList.Add(calamity.ItemType("MangroveChakram")); - natureWeaponList.Add(calamity.ItemType("MangroveChakramMelee")); - natureWeaponList.Add(calamity.ItemType("MantisClaws")); - natureWeaponList.Add(calamity.ItemType("Mariana")); - natureWeaponList.Add(calamity.ItemType("Mistlestorm")); - natureWeaponList.Add(calamity.ItemType("Monsoon")); - natureWeaponList.Add(calamity.ItemType("Alluvion")); - natureWeaponList.Add(calamity.ItemType("Needler")); - natureWeaponList.Add(calamity.ItemType("NettlelineGreatbow")); - natureWeaponList.Add(calamity.ItemType("Quagmire")); - natureWeaponList.Add(calamity.ItemType("Shroomer")); - natureWeaponList.Add(calamity.ItemType("SolsticeClaymore")); - natureWeaponList.Add(calamity.ItemType("SporeKnife")); - natureWeaponList.Add(calamity.ItemType("Spyker")); - natureWeaponList.Add(calamity.ItemType("StormSaber")); - natureWeaponList.Add(calamity.ItemType("StormRuler")); - natureWeaponList.Add(calamity.ItemType("StormSurge")); - natureWeaponList.Add(calamity.ItemType("TarragonThrowingDart")); - natureWeaponList.Add(calamity.ItemType("TerraEdge")); - natureWeaponList.Add(calamity.ItemType("TerraLance")); - natureWeaponList.Add(calamity.ItemType("TerraRay")); - natureWeaponList.Add(calamity.ItemType("TerraShiv")); - natureWeaponList.Add(calamity.ItemType("Terratomere")); - natureWeaponList.Add(calamity.ItemType("TerraFlameburster")); - natureWeaponList.Add(calamity.ItemType("TheSwarmer")); - natureWeaponList.Add(calamity.ItemType("Verdant")); - natureWeaponList.Add(calamity.ItemType("Barinautical")); - natureWeaponList.Add(calamity.ItemType("DeepseaStaff")); - natureWeaponList.Add(calamity.ItemType("Downpour")); - natureWeaponList.Add(calamity.ItemType("SubmarineShocker")); - natureWeaponList.Add(calamity.ItemType("Archerfish")); - natureWeaponList.Add(calamity.ItemType("BallOFugu")); - natureWeaponList.Add(calamity.ItemType("BlackAnurian")); - natureWeaponList.Add(calamity.ItemType("CalamarisLament")); - natureWeaponList.Add(calamity.ItemType("HerringStaff")); - natureWeaponList.Add(calamity.ItemType("Lionfish")); - - alcoholList.Add(calamity.BuffType("BloodyMary")); - alcoholList.Add(calamity.BuffType("CaribbeanRum")); - alcoholList.Add(calamity.BuffType("CinnamonRoll")); - alcoholList.Add(calamity.BuffType("Everclear")); - alcoholList.Add(calamity.BuffType("EvergreenGin")); - alcoholList.Add(calamity.BuffType("Fireball")); - alcoholList.Add(calamity.BuffType("GrapeBeer")); - alcoholList.Add(calamity.BuffType("Margarita")); - alcoholList.Add(calamity.BuffType("Moonshine")); - alcoholList.Add(calamity.BuffType("MoscowMule")); - alcoholList.Add(calamity.BuffType("RedWine")); - alcoholList.Add(calamity.BuffType("Rum")); - alcoholList.Add(calamity.BuffType("Screwdriver")); - alcoholList.Add(calamity.BuffType("StarBeamRye")); - alcoholList.Add(calamity.BuffType("Tequila")); - alcoholList.Add(calamity.BuffType("TequilaSunrise")); - alcoholList.Add(calamity.BuffType("Vodka")); - alcoholList.Add(calamity.BuffType("Whiskey")); - alcoholList.Add(calamity.BuffType("WhiteWine")); - - lightGreenThrowingRarityList.Add(calamity.ItemType("TarragonThrowingDart")); - lightGreenThrowingRarityList.Add(calamity.ItemType("MoltenAmputator")); - lightGreenThrowingRarityList.Add(calamity.ItemType("AccretionDisk")); - - greenThrowingRarityList.Add(calamity.ItemType("CosmicKunai")); - greenThrowingRarityList.Add(calamity.ItemType("Eradicator")); - greenThrowingRarityList.Add(calamity.ItemType("Valediction")); - greenThrowingRarityList.Add(calamity.ItemType("GhoulishGouger")); - - blueThrowingRarityList.Add(calamity.ItemType("EmpyreanKnivesThrown")); - blueThrowingRarityList.Add(calamity.ItemType("ExecutionersBlade")); - blueThrowingRarityList.Add(calamity.ItemType("ProfanedTrident")); - blueThrowingRarityList.Add(calamity.ItemType("ScourgeoftheCosmosThrown")); - - purpleThrowingRarityList.Add(calamity.ItemType("RoyalKnives")); - purpleThrowingRarityList.Add(calamity.ItemType("TriactisTruePaladinianMageHammerofMight")); - - throwingProjectileList.Add(calamity.ProjectileType("XerocPitchforkProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("WulfrumKnife")); - throwingProjectileList.Add(calamity.ProjectileType("Valediction")); - throwingProjectileList.Add(calamity.ProjectileType("UrchinStinger")); - throwingProjectileList.Add(calamity.ProjectileType("OPHammer")); - throwingProjectileList.Add(calamity.ProjectileType("TriactisOPHammer")); - throwingProjectileList.Add(calamity.ProjectileType("ToothBallProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("TitaniumShurikenProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("TarragonThrowingDartProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("FossilShardThrown")); - throwingProjectileList.Add(calamity.ProjectileType("SpearofPaleolith")); - throwingProjectileList.Add(calamity.ProjectileType("SeashellBoomerangProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("ScourgeoftheDesert")); - throwingProjectileList.Add(calamity.ProjectileType("ScourgeoftheCosmosMini")); - throwingProjectileList.Add(calamity.ProjectileType("ScourgeoftheCosmos")); - throwingProjectileList.Add(calamity.ProjectileType("RoyalKnife")); - throwingProjectileList.Add(calamity.ProjectileType("RotBallProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("Pwnagehammer")); - throwingProjectileList.Add(calamity.ProjectileType("ProfanedTrident")); - throwingProjectileList.Add(calamity.ProjectileType("PalladiumJavelinProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("OrichalcumSpikedGemstoneProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("MythrilKnifeProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("Mycoroot")); - throwingProjectileList.Add(calamity.ProjectileType("MoltenBlobThrown")); - throwingProjectileList.Add(calamity.ProjectileType("MoltenAmputator")); - throwingProjectileList.Add(calamity.ProjectileType("MangroveChakramProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("MalachiteBolt")); - throwingProjectileList.Add(calamity.ProjectileType("Malachite")); - throwingProjectileList.Add(calamity.ProjectileType("Lionfish")); - throwingProjectileList.Add(calamity.ProjectileType("IchorSpear")); - throwingProjectileList.Add(calamity.ProjectileType("IceStarProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("GhoulishGouger")); - throwingProjectileList.Add(calamity.ProjectileType("GelDartProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("FlameScytheProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("FeatherKnifeProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("ExecutionersBlade")); - throwingProjectileList.Add(calamity.ProjectileType("EmpyreanKnives")); - throwingProjectileList.Add(calamity.ProjectileType("EradicatorProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("DuststormCloud")); - throwingProjectileList.Add(calamity.ProjectileType("DuststormInABottle")); - throwingProjectileList.Add(calamity.ProjectileType("CursedDagger")); - throwingProjectileList.Add(calamity.ProjectileType("CrystalPiercerProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("Crystalline2")); - throwingProjectileList.Add(calamity.ProjectileType("Crystalline")); - throwingProjectileList.Add(calamity.ProjectileType("Crushax")); - throwingProjectileList.Add(calamity.ProjectileType("CosmicKunai")); - throwingProjectileList.Add(calamity.ProjectileType("CobaltKunaiProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("Celestus2")); - throwingProjectileList.Add(calamity.ProjectileType("Celestus")); - throwingProjectileList.Add(calamity.ProjectileType("Brimblade2")); - throwingProjectileList.Add(calamity.ProjectileType("Brimblade")); - throwingProjectileList.Add(calamity.ProjectileType("BrackishWaterBlast")); - throwingProjectileList.Add(calamity.ProjectileType("BrackishWater")); - throwingProjectileList.Add(calamity.ProjectileType("BrackishFlask")); - throwingProjectileList.Add(calamity.ProjectileType("BallisticPoisonBombSpike")); - throwingProjectileList.Add(calamity.ProjectileType("BallisticPoisonBomb")); - throwingProjectileList.Add(calamity.ProjectileType("AccretionDisk2")); - throwingProjectileList.Add(calamity.ProjectileType("AccretionDisk")); - throwingProjectileList.Add(calamity.ProjectileType("AdamantiteThrowingAxeProjectile")); - throwingProjectileList.Add(calamity.ProjectileType("FrostyFlare")); - throwingProjectileList.Add(calamity.ProjectileType("FrostShardFriendly")); - - throwingItemList.Add(calamity.ItemType("AccretionDisk")); - throwingItemList.Add(calamity.ItemType("AdamantiteThrowingAxe")); - throwingItemList.Add(calamity.ItemType("BallisticPoisonBomb")); - throwingItemList.Add(calamity.ItemType("BrackishFlask")); - throwingItemList.Add(calamity.ItemType("Brimblade")); - throwingItemList.Add(calamity.ItemType("Celestus")); - throwingItemList.Add(calamity.ItemType("CobaltKunai")); - throwingItemList.Add(calamity.ItemType("CosmicKunai")); - throwingItemList.Add(calamity.ItemType("CrushsawCrasher")); - throwingItemList.Add(calamity.ItemType("Crystalline")); - throwingItemList.Add(calamity.ItemType("CrystalPiercer")); - throwingItemList.Add(calamity.ItemType("CursedDagger")); - throwingItemList.Add(calamity.ItemType("DuststormInABottle")); - throwingItemList.Add(calamity.ItemType("EmpyreanKnivesThrown")); - throwingItemList.Add(calamity.ItemType("Eradicator")); - throwingItemList.Add(calamity.ItemType("ExecutionersBlade")); - throwingItemList.Add(calamity.ItemType("FeatherKnife")); - throwingItemList.Add(calamity.ItemType("FlameScythe")); - throwingItemList.Add(calamity.ItemType("GelDart")); - throwingItemList.Add(calamity.ItemType("GhoulishGouger")); - throwingItemList.Add(calamity.ItemType("IceStar")); - throwingItemList.Add(calamity.ItemType("IchorSpear")); - throwingItemList.Add(calamity.ItemType("Lionfish")); - throwingItemList.Add(calamity.ItemType("Malachite")); - throwingItemList.Add(calamity.ItemType("MangroveChakram")); - throwingItemList.Add(calamity.ItemType("MoltenAmputator")); - throwingItemList.Add(calamity.ItemType("Mycoroot")); - throwingItemList.Add(calamity.ItemType("MythrilKnife")); - throwingItemList.Add(calamity.ItemType("OrichalcumSpikedGemstone")); - throwingItemList.Add(calamity.ItemType("PalladiumJavelin")); - throwingItemList.Add(calamity.ItemType("ProfanedTrident")); - throwingItemList.Add(calamity.ItemType("PwnageHammer")); - throwingItemList.Add(calamity.ItemType("RotBall")); - throwingItemList.Add(calamity.ItemType("RoyalKnives")); - throwingItemList.Add(calamity.ItemType("ScourgeoftheCosmosThrown")); - throwingItemList.Add(calamity.ItemType("ScourgeoftheDesert")); - throwingItemList.Add(calamity.ItemType("SeashellBoomerang")); - throwingItemList.Add(calamity.ItemType("SpearofPaleolith")); - throwingItemList.Add(calamity.ItemType("TarragonThrowingDart")); - throwingItemList.Add(calamity.ItemType("TitaniumShuriken")); - throwingItemList.Add(calamity.ItemType("ToothBall")); - throwingItemList.Add(calamity.ItemType("TriactisTruePaladinianMageHammerofMight")); - throwingItemList.Add(calamity.ItemType("TruePaladinsHammer")); - throwingItemList.Add(calamity.ItemType("UrchinStinger")); - throwingItemList.Add(calamity.ItemType("Valediction")); - throwingItemList.Add(calamity.ItemType("WulfrumKnife")); - throwingItemList.Add(calamity.ItemType("XerocPitchfork")); - throwingItemList.Add(calamity.ItemType("FrostyFlare")); - - revengeanceEnemyBuffList.Add(calamity.NPCType("Astrageldon")); - revengeanceEnemyBuffList.Add(calamity.NPCType("AstrumDeusHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("AstrumDeusHeadSpectral")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Bumblefuck")); - revengeanceEnemyBuffList.Add(calamity.NPCType("CalamitasRun3")); - revengeanceEnemyBuffList.Add(calamity.NPCType("CosmicWraith")); - revengeanceEnemyBuffList.Add(calamity.NPCType("CrabulonIdle")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Cryogen")); - revengeanceEnemyBuffList.Add(calamity.NPCType("DesertScourgeHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("GreatSandShark")); - revengeanceEnemyBuffList.Add(calamity.NPCType("HiveMindP2")); - revengeanceEnemyBuffList.Add(calamity.NPCType("DankCreeper")); - revengeanceEnemyBuffList.Add(calamity.NPCType("AquaticAberration")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Leviathan")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Siren")); - revengeanceEnemyBuffList.Add(calamity.NPCType("PerforatorHeadLarge")); - revengeanceEnemyBuffList.Add(calamity.NPCType("PerforatorHeadMedium")); - revengeanceEnemyBuffList.Add(calamity.NPCType("PerforatorHeadSmall")); - revengeanceEnemyBuffList.Add(calamity.NPCType("PlaguebringerGoliath")); - revengeanceEnemyBuffList.Add(calamity.NPCType("PlagueHomingMissile")); - revengeanceEnemyBuffList.Add(calamity.NPCType("PlagueMine")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Polterghast")); - revengeanceEnemyBuffList.Add(calamity.NPCType("PolterghastHook")); - revengeanceEnemyBuffList.Add(calamity.NPCType("PolterPhantom")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ProfanedGuardianBoss")); - revengeanceEnemyBuffList.Add(calamity.NPCType("RockPillar")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ScavengerBody")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ScavengerClawRight")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ScavengerClawLeft")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ProfanedGuardianBoss2")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ProvSpawnDefense")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ProvSpawnOffense")); - revengeanceEnemyBuffList.Add(calamity.NPCType("SlimeGod")); - revengeanceEnemyBuffList.Add(calamity.NPCType("SlimeGodRun")); - revengeanceEnemyBuffList.Add(calamity.NPCType("SlimeGodCore")); - revengeanceEnemyBuffList.Add(calamity.NPCType("SlimeGodSplit")); - revengeanceEnemyBuffList.Add(calamity.NPCType("SlimeGodRunSplit")); - revengeanceEnemyBuffList.Add(calamity.NPCType("StormWeaverHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("StormWeaverHeadNaked")); - revengeanceEnemyBuffList.Add(calamity.NPCType("SupremeCalamitas")); - revengeanceEnemyBuffList.Add(calamity.NPCType("DevourerofGodsHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("DevourerofGodsHead2")); - revengeanceEnemyBuffList.Add(calamity.NPCType("DevourerofGodsHeadS")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Yharon")); - revengeanceEnemyBuffList.Add(calamity.NPCType("AquaticScourgeHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("BobbitWormHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("AquaticSeekerHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ColossalSquid")); - revengeanceEnemyBuffList.Add(calamity.NPCType("EidolonWyrmHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("EidolonWyrmHeadHuge")); - revengeanceEnemyBuffList.Add(calamity.NPCType("GulperEelHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Mauler")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Reaper")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Atlas")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ArmoredDiggerHead")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Cnidrion")); - revengeanceEnemyBuffList.Add(calamity.NPCType("Horse")); - revengeanceEnemyBuffList.Add(calamity.NPCType("ScornEater")); - revengeanceEnemyBuffList.Add(calamity.NPCType("OldDuke")); - revengeanceEnemyBuffList.Add(calamity.NPCType("DukeUrchin")); - - revengeanceProjectileBuffList.Add(calamity.ProjectileType("AbyssMine")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("AbyssMine2")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("AstralFlame")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BloodGeyser")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneBarrage")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneFireblast")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneGigaBlast")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneHellblast")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneHellblast2")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneHellfireball")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneLaser")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneLaserSplit")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneMonster")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("BrimstoneWave")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("DarkEnergyBall")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("DeusMine")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("DoGDeath")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("DoGFire")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("CosmicFlameBurst")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("FlareBomb")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("Flarenado")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("HiveBombGoliath")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("HolyBlast")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("HolyBomb")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("HolyShot")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("HolySpear")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("IceBomb")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("IchorShot")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("Infernado")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("LeviathanBomb")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("MoltenBlast")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("Mushmash")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("PhantomMine")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("PhantomBlast")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("PhantomBlast2")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("ProfanedSpear")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("ProvidenceCrystalShard")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("ProvidenceHolyRay")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("RedLightningFeather")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("SandPoisonCloud")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("ScavengerNuke")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("SirenSong")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("YharonFireball")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("YharonFireball2")); - revengeanceProjectileBuffList.Add(calamity.ProjectileType("YharonFireballHoming")); - } - } - #endregion - - #region Music - public override void UpdateMusic(ref int music, ref MusicPriority priority) - { - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (Main.musicVolume != 0) - { - if (Main.myPlayer != -1 && !Main.gameMenu && Main.LocalPlayer.active) - { - if (NPC.AnyNPCs(NPCID.CultistBoss)) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Doomsayer"); - else - music = MusicID.Boss4; - priority = MusicPriority.BossMedium; - } - if (Main.LocalPlayer.GetModPlayer(this).ZoneCalamity) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Crag"); - else - music = MusicID.Eerie; - priority = MusicPriority.Environment; - } - } - if (Main.LocalPlayer.GetModPlayer(this).ZoneAstral) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Astral"); - else - music = MusicID.Space; - priority = MusicPriority.Environment; - } - } - if (Main.LocalPlayer.GetModPlayer(this).ZoneAbyssLayer1 || Main.LocalPlayer.GetModPlayer(this).ZoneAbyssLayer2) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/TheAbyss"); - else - music = MusicID.Hell; - priority = MusicPriority.BiomeHigh; - } - } - if (Main.LocalPlayer.GetModPlayer(this).ZoneAbyssLayer3) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/TheDeepAbyss"); - else - music = MusicID.Hell; - priority = MusicPriority.BiomeHigh; - } - } - if (Main.LocalPlayer.GetModPlayer(this).ZoneAbyssLayer4) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/TheVoid"); - else - music = MusicID.Hell; - priority = MusicPriority.BiomeHigh; - } - } - if (Main.LocalPlayer.GetModPlayer(this).ZoneSulphur) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Sulphur"); - else - music = MusicID.Desert; - priority = MusicPriority.BiomeHigh; - } - } - if (CalamityWorld.DoGSecondStageCountdown <= 540 && CalamityWorld.DoGSecondStageCountdown > 60) //8 seconds before DoG spawns - { - if (!CalamityPlayer.areThereAnyDamnBosses) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/UniversalCollapse"); - else - music = MusicID.LunarBoss; - priority = MusicPriority.BossMedium; - } - } - } - } + Instance = this; } - #endregion - #region PostSetupContent - public override void PostSetupContent() - { - Mod mod = ModLoader.GetMod("CalamityMod"); - Mod bossChecklist = ModLoader.GetMod("BossChecklist"); + #region Load + public override void Load() + { + heartOriginal2 = Main.heartTexture; + heartOriginal = Main.heart2Texture; + rainOriginal = Main.rainTexture; + manaOriginal = Main.manaTexture; + carpetOriginal = Main.flyingCarpetTexture; - if (bossChecklist != null) - { - #region NormalModes - // 14 is moonlord, 12 is duke fishron - bossChecklist.Call("AddBossWithInfo", "Desert Scourge", 1.5f, (Func)(() => CalamityWorld.downedDesertScourge), "Use a [i:" + mod.ItemType("DriedSeafood") + "] in the Desert Biome"); //1 - bossChecklist.Call("AddBossWithInfo", "Crabulon", 2.5f, (Func)(() => CalamityWorld.downedCrabulon), "Use a [i:" + mod.ItemType("DecapoditaSprout") + "] in the Mushroom Biome"); //1.5 - bossChecklist.Call("AddBossWithInfo", "Hive Mind / Perforator", 3.5f, (Func)(() => (CalamityWorld.downedPerforator || CalamityWorld.downedHiveMind)), "By killing a Cyst in the World's Evil Biome"); //2 - bossChecklist.Call("AddBossWithInfo", "Slime God", 5.5f, (Func)(() => CalamityWorld.downedSlimeGod), "Use an [i:" + mod.ItemType("OverloadedSludge") + "]"); //4 - bossChecklist.Call("AddBossWithInfo", "Cryogen", 6.5f, (Func)(() => CalamityWorld.downedCryogen), "Use a [i:" + mod.ItemType("CryoKey") + "] in the Snow Biome"); //5 - bossChecklist.Call("AddBossWithInfo", "Brimstone Elemental", 7.5f, (Func)(() => CalamityWorld.downedBrimstoneElemental), "Use a [i:" + mod.ItemType("CharredIdol") + "] in the Hell Crag"); //6 - bossChecklist.Call("AddBossWithInfo", "Aquatic Scourge", 8.5f, (Func)(() => CalamityWorld.downedAquaticScourge), "Use a [i:" + mod.ItemType("Seafood") + "] in the Sulphuric Sea or wait for it to spawn in the Sulphuric Sea"); //6 - bossChecklist.Call("AddBossWithInfo", "Calamitas", 9.7f, (Func)(() => CalamityWorld.downedCalamitas), "Use an [i:" + mod.ItemType("BlightedEyeball") + "] at Night"); //7 - bossChecklist.Call("AddBossWithInfo", "Leviathan", 10.5f, (Func)(() => CalamityWorld.downedLeviathan), "By killing an unknown entity in the Ocean Biome"); //8 - bossChecklist.Call("AddBossWithInfo", "Astrum Aureus", 10.55f, (Func)(() => CalamityWorld.downedAstrageldon), "Use an [i:" + mod.ItemType("AstralChunk") + "] at Night"); //8.25 - bossChecklist.Call("AddBossWithInfo", "Astrum Deus", 10.6f, (Func)(() => CalamityWorld.downedStarGod), "Use a [i:" + mod.ItemType("Starcore") + "] at Night"); //8.5 - bossChecklist.Call("AddBossWithInfo", "Plaguebringer Goliath", 11.5f, (Func)(() => CalamityWorld.downedPlaguebringer), "Use an [i:" + mod.ItemType("Abomination") + "] in the Jungle Biome"); //9 - bossChecklist.Call("AddBossWithInfo", "Ravager", 12.5f, (Func)(() => CalamityWorld.downedScavenger), "Use an [i:" + mod.ItemType("AncientMedallion") + "]"); //9.5 - //bossChecklist.Call("AddBossWithInfo", "The Old Duke", 13.5f, (Func)(() => CalamityWorld.downedOldDuke), "Fishing with some type of bait in the Sulphuric Sea"); //9.6 - bossChecklist.Call("AddBossWithInfo", "Profaned Guardians", 14.5f, (Func)(() => CalamityWorld.downedGuardians), "Use a [i:" + mod.ItemType("ProfanedShard") + "] in the Hallow or Underworld Biomes"); //10 - bossChecklist.Call("AddBossWithInfo", "Providence", 15f, (Func)(() => CalamityWorld.downedProvidence), "Use a [i:" + mod.ItemType("ProfanedCore") + "] in the Hallow or Underworld Biomes"); //11 - bossChecklist.Call("AddBossWithInfo", "Ceaseless Void", 15.1f, (Func)(() => CalamityWorld.downedSentinel1), "Use a [i:" + mod.ItemType("RuneofCos") + "] in the Dungeon"); //12 - bossChecklist.Call("AddBossWithInfo", "Storm Weaver", 15.2f, (Func)(() => CalamityWorld.downedSentinel2), "Use a [i:" + mod.ItemType("RuneofCos") + "] in Space"); //13 - bossChecklist.Call("AddBossWithInfo", "Signus", 15.3f, (Func)(() => CalamityWorld.downedSentinel3), "Use a [i:" + mod.ItemType("RuneofCos") + "] in the Underworld"); //14 - bossChecklist.Call("AddBossWithInfo", "Polterghast", 15.5f, (Func)(() => CalamityWorld.downedPolterghast), "Use a [i:" + mod.ItemType("NecroplasmicBeacon") + "] in the Dungeon or kill 30 phantom spirits"); //11 - bossChecklist.Call("AddBossWithInfo", "Devourer of Gods", 16f, (Func)(() => CalamityWorld.downedDoG), "Use a [i:" + mod.ItemType("CosmicWorm") + "]"); //15 - bossChecklist.Call("AddBossWithInfo", "Bumblebirb", 16.5f, (Func)(() => CalamityWorld.downedBumble), "Use [i:" + mod.ItemType("BirbPheromones") + "] in the Jungle Biome or find it in the Jungle Biome"); //16 - bossChecklist.Call("AddBossWithInfo", "Yharon", 17f, (Func)(() => CalamityWorld.downedYharon), "Use a [i:" + mod.ItemType("ChickenEgg") + "] in the Jungle Biome"); //17 - bossChecklist.Call("AddBossWithInfo", "Supreme Calamitas", 18f, (Func)(() => CalamityWorld.downedSCal), "Use an [i:" + mod.ItemType("EyeofExtinction") + "]"); //18 - //bossChecklist.Call("AddBossWithInfo", "MEME GOD", 19f, (Func)(() => CalamityWorld.downedLORDE), "Use [i:" + mod.ItemType("NO") + "]"); //19 - #endregion - } - } - #endregion + NormalityRelocatorHotKey = RegisterHotKey("Normality Relocator", "Z"); + RageHotKey = RegisterHotKey("Rage Mode", "V"); + AdrenalineHotKey = RegisterHotKey("Adrenaline Mode", "B"); + AegisHotKey = RegisterHotKey("Elysian Guard", "N"); + TarraHotKey = RegisterHotKey("Armor Set Bonus", "Y"); + AstralTeleportHotKey = RegisterHotKey("Astral Teleport", "P"); + AstralArcanumUIHotkey = RegisterHotKey("Astral Arcanum UI Toggle", "O"); + BossBarToggleHotKey = RegisterHotKey("Boss Health Bar Toggle", "NumPad0"); + BossBarToggleSmallTextHotKey = RegisterHotKey("Boss Health Bar Small Text Toggle", "NumPad1"); - #region DrawingStuff - public override void ModifyInterfaceLayers(List layers) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - if (CalamityWorld.revenge) + if (!Main.dedServ) { - UIHandler.ModifyInterfaceLayers(mod, layers); + LoadClient(); } - int index = layers.FindIndex(layer => layer.Name == "Vanilla: Mouse Text"); - if (index != -1) - { - layers.Insert(index, new LegacyGameInterfaceLayer("Boss HP Bars", delegate () - { - if (Main.LocalPlayer.GetModPlayer(mod).drawBossHPBar) - { - BossHealthBarManager.Update(); - BossHealthBarManager.Draw(Main.spriteBatch); - } - return true; - }, InterfaceScaleType.None)); - } - base.ModifyInterfaceLayers(layers); - layers.Insert(index, new LegacyGameInterfaceLayer("Astral Arcanum UI", delegate () - { - AstralArcanumUI.UpdateAndDraw(Main.spriteBatch); - return true; - }, InterfaceScaleType.None)); - } - public static Color GetNPCColor(NPC npc, Vector2? position = null, bool effects = true, float shadowOverride = 0f) - { - return npc.GetAlpha(BuffEffects(npc, GetLightColor(position != null ? (Vector2)position : npc.Center), (shadowOverride != 0f ? shadowOverride : 0f), effects, npc.poisoned, npc.onFire, npc.onFire2, Main.player[Main.myPlayer].detectCreature, false, false, false, npc.venom, npc.midas, npc.ichor, npc.onFrostBurn, false, false, npc.dripping, npc.drippingSlime, npc.loveStruck, npc.stinky)); - } - - public static Color GetLightColor(Vector2 position) - { - return Lighting.GetColor((int)(position.X / 16f), (int)(position.Y / 16f)); - } - - public static Color BuffEffects(Entity codable, Color lightColor, float shadow = 0f, bool effects = true, bool poisoned = false, bool onFire = false, bool onFire2 = false, bool hunter = false, bool noItems = false, bool blind = false, bool bleed = false, bool venom = false, bool midas = false, bool ichor = false, bool onFrostBurn = false, bool burned = false, bool honey = false, bool dripping = false, bool drippingSlime = false, bool loveStruck = false, bool stinky = false) - { - float cr = 1f; float cg = 1f; float cb = 1f; float ca = 1f; + BossHealthBarManager.Load(this); + + SetupLists(); + + CalamityLocalization.AddLocalizations(); + } + + private void LoadClient() + { + AddEquipTexture(new Items.Armor.AbyssalDivingSuitHead(), null, EquipType.Head, "AbyssalDivingSuitHead", "CalamityMod/Items/Armor/AbyssalDivingSuit_Head"); + AddEquipTexture(new Items.Armor.AbyssalDivingSuitBody(), null, EquipType.Body, "AbyssalDivingSuitBody", "CalamityMod/Items/Armor/AbyssalDivingSuit_Body", "CalamityMod/Items/Armor/AbyssalDivingSuit_Arms"); + AddEquipTexture(new Items.Armor.AbyssalDivingSuitLegs(), null, EquipType.Legs, "AbyssalDivingSuitLeg", "CalamityMod/Items/Armor/AbyssalDivingSuit_Legs"); + + AddEquipTexture(new Items.Armor.SirenHead(), null, EquipType.Head, "SirenHead", "CalamityMod/Items/Armor/SirenTrans_Head"); + AddEquipTexture(new Items.Armor.SirenBody(), null, EquipType.Body, "SirenBody", "CalamityMod/Items/Armor/SirenTrans_Body", "CalamityMod/Items/Armor/SirenTrans_Arms"); + AddEquipTexture(new Items.Armor.SirenLegs(), null, EquipType.Legs, "SirenLeg", "CalamityMod/Items/Armor/SirenTrans_Legs"); + + AddEquipTexture(new Items.Armor.SirenHeadAlt(), null, EquipType.Head, "SirenHeadAlt", "CalamityMod/Items/Armor/SirenTransAlt_Head"); + AddEquipTexture(new Items.Armor.SirenBodyAlt(), null, EquipType.Body, "SirenBodyAlt", "CalamityMod/Items/Armor/SirenTransAlt_Body", "CalamityMod/Items/Armor/SirenTransAlt_Arms"); + AddEquipTexture(new Items.Armor.SirenLegsAlt(), null, EquipType.Legs, "SirenLegAlt", "CalamityMod/Items/Armor/SirenTransAlt_Legs"); + + AddEquipTexture(new Items.Permafrost.PopoHead(), null, EquipType.Head, "PopoHead", "CalamityMod/Items/Permafrost/Popo_Head"); + AddEquipTexture(new Items.Permafrost.PopoNoselessHead(), null, EquipType.Head, "PopoNoselessHead", "CalamityMod/Items/Permafrost/PopoNoseless_Head"); + AddEquipTexture(new Items.Permafrost.PopoBody(), null, EquipType.Body, "PopoBody", "CalamityMod/Items/Permafrost/Popo_Body", "CalamityMod/Items/Permafrost/Popo_Arms"); + AddEquipTexture(new Items.Permafrost.PopoLegs(), null, EquipType.Legs, "PopoLeg", "CalamityMod/Items/Permafrost/Popo_Legs"); + + AstralCactusTexture = GetTexture("ExtraTextures/Tiles/AstralCactus"); + AstralCactusGlowTexture = GetTexture("ExtraTextures/Tiles/AstralCactusGlow"); + AstralSky = GetTexture("ExtraTextures/AstralSky"); + CustomShader = GetEffect("Effects/CustomShader"); + + Filters.Scene["CalamityMod:DevourerofGodsHead"] = new Filter(new DoGScreenShaderData("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:DevourerofGodsHead"] = new DoGSky(); + + Filters.Scene["CalamityMod:DevourerofGodsHeadS"] = new Filter(new DoGScreenShaderDataS("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:DevourerofGodsHeadS"] = new DoGSkyS(); + + Filters.Scene["CalamityMod:CalamitasRun3"] = new Filter(new CalScreenShaderData("FilterMiniTower").UseColor(1.1f, 0.3f, 0.3f).UseOpacity(0.6f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:CalamitasRun3"] = new CalSky(); + + Filters.Scene["CalamityMod:PlaguebringerGoliath"] = new Filter(new PbGScreenShaderData("FilterMiniTower").UseColor(0.2f, 0.6f, 0.2f).UseOpacity(0.65f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:PlaguebringerGoliath"] = new PbGSky(); + + Filters.Scene["CalamityMod:Yharon"] = new Filter(new YScreenShaderData("FilterMiniTower").UseColor(1f, 0.4f, 0f).UseOpacity(0.75f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:Yharon"] = new YSky(); + + Filters.Scene["CalamityMod:Leviathan"] = new Filter(new LevScreenShaderData("FilterMiniTower").UseColor(0f, 0f, 0.5f).UseOpacity(0.5f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:Leviathan"] = new LevSky(); + + Filters.Scene["CalamityMod:Providence"] = new Filter(new ProvScreenShaderData("FilterMiniTower").UseColor(0.6f, 0.45f, 0f).UseOpacity(0.5f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:Providence"] = new ProvSky(); + + Filters.Scene["CalamityMod:SupremeCalamitas"] = new Filter(new SCalScreenShaderData("FilterMiniTower").UseColor(1.1f, 0.3f, 0.3f).UseOpacity(0.65f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:SupremeCalamitas"] = new SCalSky(); + + Filters.Scene["CalamityMod:Astral"] = new Filter(new AstralScreenShaderData(new Ref(CustomShader), "AstralPass").UseColor(0.18f, 0.08f, 0.24f), EffectPriority.VeryHigh); + SkyManager.Instance["CalamityMod:Astral"] = new AstralSky(); + + Mod mod = ModLoader.GetMod("CalamityMod"); + UIHandler.OnLoad(mod); + + AstralArcanumUI.Load(this); + } + #endregion + + #region Unload + public override void Unload() + { + NormalityRelocatorHotKey = null; + RageHotKey = null; + AdrenalineHotKey = null; + AegisHotKey = null; + TarraHotKey = null; + AstralTeleportHotKey = null; + AstralArcanumUIHotkey = null; + BossBarToggleHotKey = null; + BossBarToggleSmallTextHotKey = null; + + AstralCactusTexture = null; + AstralCactusGlowTexture = null; + AstralSky = null; + + donatorList = null; + + rangedProjectileExceptionList = null; + projectileMinionList = null; + enemyImmunityList = null; + dungeonEnemyBuffList = null; + bossScaleList = null; + beeEnemyList = null; + beeProjectileList = null; + hardModeNerfList = null; + debuffList = null; + fireWeaponList = null; + natureWeaponList = null; + alcoholList = null; + doubleDamageBuffList = null; + sixtySixDamageBuffList = null; + fiftyDamageBuffList = null; + thirtyThreeDamageBuffList = null; + twentyFiveDamageBuffList = null; + weaponAutoreuseList = null; + quarterDamageNerfList = null; + pumpkinMoonBuffList = null; + frostMoonBuffList = null; + eclipseBuffList = null; + eventProjectileBuffList = null; + revengeanceEnemyBuffList = null; + revengeanceProjectileBuffList = null; + trapProjectileList = null; + scopedWeaponList = null; + + BossHealthBarManager.Unload(); + base.Unload(); + + AstralArcanumUI.Unload(); + base.Unload(); + + Instance = null; + + if (!Main.dedServ) + { + Main.music[MusicID.Hell] = Main.soundBank.GetCue("Music_" + MusicID.Hell); //remove in 1.4.1 + + Main.heartTexture = heartOriginal2; + Main.heart2Texture = heartOriginal; + Main.rainTexture = rainOriginal; + Main.manaTexture = manaOriginal; + Main.flyingCarpetTexture = carpetOriginal; + } + } + #endregion + + #region SetupLists + public static void SetupLists() + { + Mod calamity = ModLoader.GetMod("CalamityMod"); + if (calamity != null) + { + donatorList = new List() + { + "Vorbis", + "SoloMael", + "Chaotic Reks", + "The Buildmonger", + "Yuh", + "Littlepiggy", + "LompL", + "Lilith Saintclaire", + "Ben Shapiro", + "Frederik Henschel", + "Faye", + "Gibb50", + "Braden Hajer", + "Hannes Holmlund", + "profoundmango69", + "Jack M Sargent", + "Hans Volter", + "Krankwagon", + "MishiroUsui", + "pixlgray", + "Arkhine", + "Lodude", + "DevAesthetic", + "Mister Winchester", + "Zacky", + "Veine", + "Javyz", + "Shifter", + "Crysthamyr", + "Elfinlocks", + "Ein", + "2Larry2", + "Jenonen", + "Dodu", + "Arti", + "Tervastator" + }; + + rangedProjectileExceptionList = new List() + { + ProjectileID.Phantasm, + ProjectileID.VortexBeater, + ProjectileID.DD2PhoenixBow, + calamity.ProjectileType("Phangasm"), + calamity.ProjectileType("Contagion"), + calamity.ProjectileType("DaemonsFlame"), + calamity.ProjectileType("ExoTornado"), + calamity.ProjectileType("Drataliornus"), + calamity.ProjectileType("FlakKrakenGun"), + calamity.ProjectileType("Butcher"), + calamity.ProjectileType("StarfleetMK2"), + calamity.ProjectileType("TerraBulletSplit"), + calamity.ProjectileType("TerraArrow2"), + calamity.ProjectileType("OMGWTH") + }; + + projectileMinionList = new List() + { + ProjectileID.PygmySpear, + ProjectileID.UFOMinion, + ProjectileID.UFOLaser, + ProjectileID.StardustCellMinionShot, + ProjectileID.MiniSharkron, + ProjectileID.MiniRetinaLaser, + ProjectileID.ImpFireball, + ProjectileID.HornetStinger, + ProjectileID.DD2FlameBurstTowerT1Shot, + ProjectileID.DD2FlameBurstTowerT2Shot, + ProjectileID.DD2FlameBurstTowerT3Shot, + ProjectileID.DD2BallistraProj, + ProjectileID.DD2ExplosiveTrapT1Explosion, + ProjectileID.DD2ExplosiveTrapT2Explosion, + ProjectileID.DD2ExplosiveTrapT3Explosion, + ProjectileID.SpiderEgg, + ProjectileID.BabySpider, + ProjectileID.FrostBlastFriendly, + ProjectileID.MoonlordTurretLaser, + ProjectileID.RainbowCrystalExplosion + }; + + enemyImmunityList = new List() + { + NPCID.QueenBee, + NPCID.WallofFlesh, + NPCID.WallofFleshEye, + NPCID.Retinazer, + NPCID.Spazmatism, + NPCID.SkeletronPrime, + NPCID.PrimeCannon, + NPCID.PrimeSaw, + NPCID.PrimeLaser, + NPCID.PrimeVice, + NPCID.Plantera, + NPCID.IceQueen, + NPCID.Pumpking, + NPCID.Mothron, + NPCID.Golem, + NPCID.GolemHead, + NPCID.GolemFistRight, + NPCID.GolemFistLeft, + NPCID.DukeFishron, + NPCID.CultistBoss, + NPCID.MoonLordHead, + NPCID.MoonLordHand, + NPCID.MoonLordCore, + NPCID.MoonLordFreeEye, + NPCID.DD2Betsy + }; + + dungeonEnemyBuffList = new List() + { + NPCID.SkeletonSniper, + NPCID.TacticalSkeleton, + NPCID.SkeletonCommando, + NPCID.Paladin, + NPCID.GiantCursedSkull, + NPCID.BoneLee, + NPCID.DiabolistWhite, + NPCID.DiabolistRed, + NPCID.NecromancerArmored, + NPCID.Necromancer, + NPCID.RaggedCasterOpenCoat, + NPCID.RaggedCaster, + NPCID.HellArmoredBonesSword, + NPCID.HellArmoredBonesMace, + NPCID.HellArmoredBonesSpikeShield, + NPCID.HellArmoredBones, + NPCID.BlueArmoredBonesSword, + NPCID.BlueArmoredBonesNoPants, + NPCID.BlueArmoredBonesMace, + NPCID.BlueArmoredBones, + NPCID.RustyArmoredBonesSwordNoArmor, + NPCID.RustyArmoredBonesSword, + NPCID.RustyArmoredBonesFlail, + NPCID.RustyArmoredBonesAxe + }; + + bossScaleList = new List() + { + NPCID.EaterofWorldsHead, + NPCID.EaterofWorldsBody, + NPCID.EaterofWorldsTail, + NPCID.Creeper, + NPCID.SkeletronHand, + NPCID.WallofFleshEye, + NPCID.TheHungry, + NPCID.TheHungryII, + NPCID.TheDestroyerBody, + NPCID.TheDestroyerTail, + NPCID.PrimeCannon, + NPCID.PrimeVice, + NPCID.PrimeSaw, + NPCID.PrimeLaser, + NPCID.PlanterasTentacle, + NPCID.Pumpking, + NPCID.IceQueen, + NPCID.Mothron, + NPCID.GolemHead + }; + + beeEnemyList = new List() + { + NPCID.GiantMossHornet, + NPCID.BigMossHornet, + NPCID.LittleMossHornet, + NPCID.TinyMossHornet, + NPCID.MossHornet, + NPCID.VortexHornetQueen, + NPCID.VortexHornet, + NPCID.Bee, + NPCID.BeeSmall, + NPCID.QueenBee, + calamity.NPCType("PlaguebringerGoliath"), + calamity.NPCType("PlaguebringerShade"), + calamity.NPCType("PlagueBeeLargeG"), + calamity.NPCType("PlagueBeeLarge"), + calamity.NPCType("PlagueBeeG"), + calamity.NPCType("PlagueBee") + }; + + beeProjectileList = new List() + { + ProjectileID.Stinger, + ProjectileID.HornetStinger, + calamity.ProjectileType("PlagueStingerGoliath"), + calamity.ProjectileType("PlagueStingerGoliathV2"), + calamity.ProjectileType("PlagueExplosion") + }; + + hardModeNerfList = new List() + { + ProjectileID.WebSpit, + ProjectileID.PinkLaser, + ProjectileID.FrostBlastHostile, + ProjectileID.RuneBlast, + ProjectileID.GoldenShowerHostile, + ProjectileID.RainNimbus, + ProjectileID.Stinger, + ProjectileID.FlamingArrow, + ProjectileID.BulletDeadeye, + ProjectileID.CannonballHostile + }; + + debuffList = new List() + { + BuffID.Poisoned, + BuffID.Darkness, + BuffID.Cursed, + BuffID.OnFire, + BuffID.Bleeding, + BuffID.Confused, + BuffID.Slow, + BuffID.Weak, + BuffID.Silenced, + BuffID.BrokenArmor, + BuffID.CursedInferno, + BuffID.Frostburn, + BuffID.Chilled, + BuffID.Frozen, + BuffID.Burning, + BuffID.Suffocation, + BuffID.Ichor, + BuffID.Venom, + BuffID.Blackout, + BuffID.Electrified, + BuffID.Rabies, + BuffID.Webbed, + BuffID.Stoned, + BuffID.Dazed, + BuffID.VortexDebuff, + BuffID.WitheredArmor, + BuffID.WitheredWeapon, + BuffID.OgreSpit, + BuffID.BetsysCurse, + calamity.BuffType("BrimstoneFlames"), + calamity.BuffType("BurningBlood"), + calamity.BuffType("GlacialState"), + calamity.BuffType("GodSlayerInferno"), + calamity.BuffType("HolyLight"), + calamity.BuffType("Irradiated"), + calamity.BuffType("Plague"), + calamity.BuffType("AbyssalFlames"), + calamity.BuffType("CrushDepth"), + calamity.BuffType("Horror"), + calamity.BuffType("MarkedforDeath") + }; + + fireWeaponList = new List() + { + ItemID.FieryGreatsword, + ItemID.DD2SquireDemonSword, + ItemID.TheHorsemansBlade, + ItemID.DD2SquireBetsySword, + ItemID.Cascade, + ItemID.HelFire, + ItemID.MonkStaffT2, + ItemID.Flamarang, + ItemID.MoltenFury, + ItemID.Sunfury, + ItemID.PhoenixBlaster, + ItemID.Flamelash, + ItemID.SolarEruption, + ItemID.DayBreak, + ItemID.MonkStaffT3, + ItemID.HellwingBow, + ItemID.DD2PhoenixBow, + ItemID.DD2BetsyBow, + ItemID.FlareGun, + ItemID.Flamethrower, + ItemID.EldMelter, + ItemID.FlowerofFire, + ItemID.MeteorStaff, + ItemID.ApprenticeStaffT3, + ItemID.InfernoFork, + ItemID.HeatRay, + ItemID.BookofSkulls, + ItemID.ImpStaff, + ItemID.DD2FlameburstTowerT1Popper, + ItemID.DD2FlameburstTowerT2Popper, + ItemID.DD2FlameburstTowerT3Popper, + ItemID.MolotovCocktail, + calamity.ItemType("AegisBlade"), + calamity.ItemType("BalefulHarvester"), + calamity.ItemType("Chaotrix"), + calamity.ItemType("CometQuasher"), + calamity.ItemType("DraconicDestruction"), + calamity.ItemType("Drataliornus"), + calamity.ItemType("EnergyStaff"), + calamity.ItemType("ExsanguinationLance"), + calamity.ItemType("FirestormCannon"), + calamity.ItemType("FlameburstShortsword"), + calamity.ItemType("FlameScythe"), + calamity.ItemType("FlameScytheMelee"), + calamity.ItemType("FlareBolt"), + calamity.ItemType("FlarefrostBlade"), + calamity.ItemType("FlarewingBow"), + calamity.ItemType("ForbiddenSun"), + calamity.ItemType("FrigidflashBolt"), + calamity.ItemType("GreatbowofTurmoil"), + calamity.ItemType("HarvestStaff"), + calamity.ItemType("HellBurst"), + calamity.ItemType("HellfireFlamberge"), + calamity.ItemType("Hellkite"), + calamity.ItemType("HellwingStaff"), + calamity.ItemType("Helstorm"), + calamity.ItemType("InfernaCutter"), + calamity.ItemType("Lazhar"), + calamity.ItemType("MeteorFist"), + calamity.ItemType("Mourningstar"), + calamity.ItemType("PhoenixBlade"), + calamity.ItemType("Photoviscerator"), + calamity.ItemType("RedSun"), + calamity.ItemType("SpectralstormCannon"), + calamity.ItemType("SunGodStaff"), + calamity.ItemType("SunSpiritStaff"), + calamity.ItemType("TearsofHeaven"), + calamity.ItemType("TerraFlameburster"), + calamity.ItemType("TheEmpyrean"), + calamity.ItemType("TheWand"), + calamity.ItemType("VenusianTrident"), + calamity.ItemType("Vesuvius"), + calamity.ItemType("BlissfulBombardier"), + calamity.ItemType("HolyCollider"), + calamity.ItemType("MoltenAmputator"), + calamity.ItemType("PurgeGuzzler"), + calamity.ItemType("SolarFlare"), + calamity.ItemType("TelluricGlare"), + calamity.ItemType("AngryChickenStaff"), + calamity.ItemType("ChickenCannon"), + calamity.ItemType("DragonRage"), + calamity.ItemType("DragonsBreath"), + calamity.ItemType("PhoenixFlameBarrage"), + calamity.ItemType("ProfanedTrident"), + calamity.ItemType("TheBurningSky") + }; + + natureWeaponList = new List() + { + ItemID.BladeofGrass, + ItemID.ChlorophyteClaymore, + ItemID.ChlorophyteSaber, + ItemID.ChlorophytePartisan, + ItemID.ChlorophyteShotbow, + ItemID.Seedler, + ItemID.ChristmasTreeSword, + ItemID.TerraBlade, + ItemID.JungleYoyo, + ItemID.Yelets, + ItemID.MushroomSpear, + ItemID.ThornChakram, + ItemID.Bananarang, + ItemID.FlowerPow, + ItemID.BeesKnees, + ItemID.Toxikarp, + ItemID.Bladetongue, + ItemID.PoisonStaff, + ItemID.VenomStaff, + ItemID.StaffofEarth, + ItemID.BeeGun, + ItemID.LeafBlower, + ItemID.WaspGun, + ItemID.CrystalSerpent, + ItemID.Razorpine, + ItemID.HornetStaff, + ItemID.QueenSpiderStaff, + ItemID.SlimeStaff, + ItemID.PygmyStaff, + ItemID.RavenStaff, + ItemID.BatScepter, + ItemID.SpiderStaff, + ItemID.Beenade, + ItemID.FrostDaggerfish, + calamity.ItemType("DepthBlade"), + calamity.ItemType("AbyssBlade"), + calamity.ItemType("NeptunesBounty"), + calamity.ItemType("AquaticDissolution"), + calamity.ItemType("ArchAmaryllis"), + calamity.ItemType("BiomeBlade"), + calamity.ItemType("TrueBiomeBlade"), + calamity.ItemType("OmegaBiomeBlade"), + calamity.ItemType("BladedgeGreatbow"), + calamity.ItemType("BlossomFlux"), + calamity.ItemType("EvergladeSpray"), + calamity.ItemType("FeralthornClaymore"), + calamity.ItemType("Floodtide"), + calamity.ItemType("FourSeasonsGalaxia"), + calamity.ItemType("GammaFusillade"), + calamity.ItemType("GleamingMagnolia"), + calamity.ItemType("HarvestStaff"), + calamity.ItemType("HellionFlowerSpear"), + calamity.ItemType("Lazhar"), + calamity.ItemType("LifefruitScythe"), + calamity.ItemType("ManaRose"), + calamity.ItemType("MangroveChakram"), + calamity.ItemType("MangroveChakramMelee"), + calamity.ItemType("MantisClaws"), + calamity.ItemType("Mariana"), + calamity.ItemType("Mistlestorm"), + calamity.ItemType("Monsoon"), + calamity.ItemType("Alluvion"), + calamity.ItemType("Needler"), + calamity.ItemType("NettlelineGreatbow"), + calamity.ItemType("Quagmire"), + calamity.ItemType("Shroomer"), + calamity.ItemType("SolsticeClaymore"), + calamity.ItemType("SporeKnife"), + calamity.ItemType("Spyker"), + calamity.ItemType("StormSaber"), + calamity.ItemType("StormRuler"), + calamity.ItemType("StormSurge"), + calamity.ItemType("TarragonThrowingDart"), + calamity.ItemType("TerraEdge"), + calamity.ItemType("TerraLance"), + calamity.ItemType("TerraRay"), + calamity.ItemType("TerraShiv"), + calamity.ItemType("Terratomere"), + calamity.ItemType("TerraFlameburster"), + calamity.ItemType("TheSwarmer"), + calamity.ItemType("Verdant"), + calamity.ItemType("Barinautical"), + calamity.ItemType("DeepseaStaff"), + calamity.ItemType("Downpour"), + calamity.ItemType("SubmarineShocker"), + calamity.ItemType("Archerfish"), + calamity.ItemType("BallOFugu"), + calamity.ItemType("BlackAnurian"), + calamity.ItemType("CalamarisLament"), + calamity.ItemType("HerringStaff"), + calamity.ItemType("Lionfish") + }; + + alcoholList = new List() + { + calamity.BuffType("BloodyMary"), + calamity.BuffType("CaribbeanRum"), + calamity.BuffType("CinnamonRoll"), + calamity.BuffType("Everclear"), + calamity.BuffType("EvergreenGin"), + calamity.BuffType("Fireball"), + calamity.BuffType("GrapeBeer"), + calamity.BuffType("Margarita"), + calamity.BuffType("Moonshine"), + calamity.BuffType("MoscowMule"), + calamity.BuffType("RedWine"), + calamity.BuffType("Rum"), + calamity.BuffType("Screwdriver"), + calamity.BuffType("StarBeamRye"), + calamity.BuffType("Tequila"), + calamity.BuffType("TequilaSunrise"), + calamity.BuffType("Vodka"), + calamity.BuffType("Whiskey"), + calamity.BuffType("WhiteWine") + }; + + doubleDamageBuffList = new List() + { + ItemID.BallOHurt, + ItemID.TheMeatball, + ItemID.BlueMoon, + ItemID.Sunfury, + ItemID.DaoofPow, + ItemID.FlowerPow, + ItemID.Anchor, + ItemID.KOCannon, + ItemID.GolemFist, + ItemID.BreakerBlade, + ItemID.SpectreStaff, + ItemID.MonkStaffT2, + ItemID.ProximityMineLauncher, + ItemID.FireworksLauncher + }; + + sixtySixDamageBuffList = new List() + { + ItemID.TerraBlade, + ItemID.TrueNightsEdge, + ItemID.WandofSparking, + ItemID.MedusaHead, + ItemID.StaffofEarth, + ItemID.ChristmasTreeSword, + ItemID.MonkStaffT1, + ItemID.InfernoFork, + ItemID.VenomStaff + }; + + fiftyDamageBuffList = new List() + { + ItemID.NightsEdge, + ItemID.EldMelter, + ItemID.Flamethrower, + ItemID.MoonlordTurretStaff, + ItemID.WaspGun, + ItemID.Keybrand, + ItemID.PulseBow, + ItemID.PaladinsHammer + }; + + thirtyThreeDamageBuffList = new List() + { + ItemID.CrystalVileShard, + ItemID.SoulDrain, + ItemID.ClingerStaff, + ItemID.ChargedBlasterCannon, + ItemID.NettleBurst, + ItemID.Excalibur, + ItemID.AmberStaff, + ItemID.BluePhasesaber, + ItemID.RedPhasesaber, + ItemID.GreenPhasesaber, + ItemID.WhitePhasesaber, + ItemID.YellowPhasesaber, + ItemID.PurplePhasesaber, + ItemID.TheRottedFork, + ItemID.VampireKnives + }; + + twentyFiveDamageBuffList = new List() + { + ItemID.Muramasa, + ItemID.StakeLauncher + }; + + twentyDamageBuffList = new List() + { + ItemID.ChainGuillotines, + ItemID.FlowerofFrost, + ItemID.PoisonStaff, + ItemID.Gungnir, + ItemID.BookStaff + }; + + weaponAutoreuseList = new List() + { + ItemID.NightsEdge, + ItemID.TrueNightsEdge, + ItemID.TrueExcalibur, + ItemID.PhoenixBlaster, + ItemID.VenusMagnum, + ItemID.MagicDagger, + ItemID.BeamSword, + ItemID.MonkStaffT2, + ItemID.PaladinsHammer + }; + + quarterDamageNerfList = new List() + { + ItemID.DaedalusStormbow, + ItemID.PhoenixBlaster, + ItemID.VenusMagnum, + ItemID.BlizzardStaff + }; + + pumpkinMoonBuffList = new List() + { + NPCID.Scarecrow1, + NPCID.Scarecrow2, + NPCID.Scarecrow3, + NPCID.Scarecrow4, + NPCID.Scarecrow5, + NPCID.Scarecrow6, + NPCID.Scarecrow7, + NPCID.Scarecrow8, + NPCID.Scarecrow9, + NPCID.Scarecrow10, + NPCID.HeadlessHorseman, + NPCID.MourningWood, + NPCID.Splinterling, + NPCID.Pumpking, + NPCID.Hellhound, + NPCID.Poltergeist + }; + + frostMoonBuffList = new List() + { + NPCID.ZombieElf, + NPCID.ZombieElfBeard, + NPCID.ZombieElfGirl, + NPCID.PresentMimic, + NPCID.GingerbreadMan, + NPCID.Yeti, + NPCID.Everscream, + NPCID.IceQueen, + NPCID.SantaNK1, + NPCID.ElfCopter, + NPCID.Nutcracker, + NPCID.NutcrackerSpinning, + NPCID.ElfArcher, + NPCID.Krampus, + NPCID.Flocko + }; + + eclipseBuffList = new List() + { + NPCID.Eyezor, + NPCID.Reaper, + NPCID.Frankenstein, + NPCID.SwampThing, + NPCID.Vampire, + NPCID.VampireBat, + NPCID.Butcher, + NPCID.CreatureFromTheDeep, + NPCID.Fritz, + NPCID.Nailhead, + NPCID.Psycho, + NPCID.DeadlySphere, + NPCID.DrManFly, + NPCID.ThePossessed, + NPCID.Mothron, + NPCID.MothronEgg, + NPCID.MothronSpawn + }; + + eventProjectileBuffList = new List() + { + ProjectileID.FlamingWood, + ProjectileID.GreekFire1, + ProjectileID.GreekFire2, + ProjectileID.GreekFire3, + ProjectileID.FlamingScythe, + ProjectileID.FlamingArrow, + ProjectileID.PineNeedleHostile, + ProjectileID.OrnamentHostile, + ProjectileID.OrnamentHostileShrapnel, + ProjectileID.FrostWave, + ProjectileID.FrostShard, + ProjectileID.Missile, + ProjectileID.Present, + ProjectileID.Spike, + ProjectileID.BulletDeadeye, + ProjectileID.EyeLaser, + ProjectileID.Nail, + ProjectileID.DrManFlyFlask + }; + + revengeanceEnemyBuffList = new List() + { + NPCID.ServantofCthulhu, + NPCID.EyeofCthulhu, + NPCID.EaterofWorldsHead, + NPCID.DevourerHead, + NPCID.GiantWormHead, + NPCID.MeteorHead, + NPCID.SkeletronHead, + NPCID.SkeletronHand, + NPCID.BoneSerpentHead, + NPCID.ManEater, + NPCID.KingSlime, + NPCID.Snatcher, + NPCID.Piranha, + NPCID.Shark, + NPCID.SpikeBall, + NPCID.BlazingWheel, + NPCID.Mimic, + NPCID.WyvernHead, + NPCID.DiggerHead, + NPCID.SeekerHead, + NPCID.AnglerFish, + NPCID.Werewolf, + NPCID.Wraith, + NPCID.WallofFlesh, + NPCID.TheHungry, + NPCID.TheHungryII, + NPCID.LeechHead, + NPCID.Spazmatism, + NPCID.Retinazer, + NPCID.SkeletronPrime, + NPCID.PrimeSaw, + NPCID.PrimeVice, + NPCID.TheDestroyer, + NPCID.Arapaima, + NPCID.BlackRecluse, + NPCID.WallCreeper, + NPCID.WallCreeperWall, + NPCID.BlackRecluseWall, + NPCID.AngryTrapper, + NPCID.Lihzahrd, + NPCID.LihzahrdCrawler, + NPCID.PirateCaptain, + NPCID.QueenBee, + NPCID.FlyingSnake, + NPCID.Golem, + NPCID.GolemFistLeft, + NPCID.GolemFistRight, + NPCID.Reaper, + NPCID.Plantera, + NPCID.PlanterasHook, + NPCID.PlanterasTentacle, + NPCID.BrainofCthulhu, + NPCID.Paladin, + NPCID.BoneLee, + NPCID.MourningWood, + NPCID.Pumpking, + NPCID.PumpkingBlade, + NPCID.PresentMimic, + NPCID.Everscream, + NPCID.IceQueen, + NPCID.SantaNK1, + NPCID.DukeFishron, + NPCID.MoonLordHand, + NPCID.StardustWormHead, + NPCID.SolarCrawltipedeHead, + NPCID.CultistDragonHead, + NPCID.Butcher, + NPCID.Psycho, + NPCID.DeadlySphere, + NPCID.BigMimicCorruption, + NPCID.BigMimicCrimson, + NPCID.BigMimicHallow, + NPCID.Mothron, + NPCID.DuneSplicerHead, + NPCID.SlimeSpiked, + NPCID.SandShark, + NPCID.SandsharkCorrupt, + NPCID.SandsharkCrimson, + NPCID.SandsharkHallow, + NPCID.DD2Betsy, + calamity.NPCType("Astrageldon"), + calamity.NPCType("AstrumDeusHead"), + calamity.NPCType("AstrumDeusHeadSpectral"), + calamity.NPCType("Bumblefuck"), + calamity.NPCType("CalamitasRun3"), + calamity.NPCType("CosmicWraith"), + calamity.NPCType("CrabulonIdle"), + calamity.NPCType("Cryogen"), + calamity.NPCType("DesertScourgeHead"), + calamity.NPCType("GreatSandShark"), + calamity.NPCType("HiveMindP2"), + calamity.NPCType("DankCreeper"), + calamity.NPCType("AquaticAberration"), + calamity.NPCType("Leviathan"), + calamity.NPCType("Siren"), + calamity.NPCType("PerforatorHeadLarge"), + calamity.NPCType("PerforatorHeadMedium"), + calamity.NPCType("PerforatorHeadSmall"), + calamity.NPCType("PlaguebringerGoliath"), + calamity.NPCType("PlagueHomingMissile"), + calamity.NPCType("PlagueMine"), + calamity.NPCType("Polterghast"), + calamity.NPCType("PolterghastHook"), + calamity.NPCType("PolterPhantom"), + calamity.NPCType("ProfanedGuardianBoss"), + calamity.NPCType("RockPillar"), + calamity.NPCType("ScavengerBody"), + calamity.NPCType("ScavengerClawRight"), + calamity.NPCType("ScavengerClawLeft"), + calamity.NPCType("ProfanedGuardianBoss2"), + calamity.NPCType("ProvSpawnDefense"), + calamity.NPCType("ProvSpawnOffense"), + calamity.NPCType("SlimeGod"), + calamity.NPCType("SlimeGodRun"), + calamity.NPCType("SlimeGodCore"), + calamity.NPCType("SlimeGodSplit"), + calamity.NPCType("SlimeGodRunSplit"), + calamity.NPCType("StormWeaverHead"), + calamity.NPCType("StormWeaverHeadNaked"), + calamity.NPCType("SupremeCalamitas"), + calamity.NPCType("DevourerofGodsHead"), + calamity.NPCType("DevourerofGodsHead2"), + calamity.NPCType("DevourerofGodsHeadS"), + calamity.NPCType("Yharon"), + calamity.NPCType("AquaticScourgeHead"), + calamity.NPCType("BobbitWormHead"), + calamity.NPCType("AquaticSeekerHead"), + calamity.NPCType("ColossalSquid"), + calamity.NPCType("EidolonWyrmHead"), + calamity.NPCType("EidolonWyrmHeadHuge"), + calamity.NPCType("GulperEelHead"), + calamity.NPCType("Mauler"), + calamity.NPCType("Reaper"), + calamity.NPCType("Atlas"), + calamity.NPCType("ArmoredDiggerHead"), + calamity.NPCType("Cnidrion"), + calamity.NPCType("Horse"), + calamity.NPCType("ScornEater"), + calamity.NPCType("OldDuke"), + calamity.NPCType("DukeUrchin"), + calamity.NPCType("PrismTurtle"), + calamity.NPCType("GhostBell"), + calamity.NPCType("EutrophicRay"), + calamity.NPCType("Clam"), + calamity.NPCType("SeaSerpent1"), + calamity.NPCType("BlindedAngler"), + calamity.NPCType("GiantClam") + }; + + revengeanceProjectileBuffList = new List() + { + ProjectileID.SandBallFalling, + ProjectileID.AshBallFalling, + ProjectileID.DemonSickle, + ProjectileID.EbonsandBallFalling, + ProjectileID.PearlSandBallFalling, + ProjectileID.CursedFlameHostile, + ProjectileID.EyeFire, + ProjectileID.Boulder, + ProjectileID.DeathLaser, + ProjectileID.PoisonDartTrap, + ProjectileID.SpikyBallTrap, + ProjectileID.SpearTrap, + ProjectileID.FlamethrowerTrap, + ProjectileID.FlamesTrap, + ProjectileID.CrimsandBallFalling, + ProjectileID.Fireball, + ProjectileID.EyeBeam, + ProjectileID.PoisonSeedPlantera, + ProjectileID.ThornBall, + ProjectileID.PaladinsHammerHostile, + ProjectileID.RocketSkeleton, + ProjectileID.FlamingWood, + ProjectileID.FlamingScythe, + ProjectileID.FrostWave, + ProjectileID.Present, + ProjectileID.Spike, + ProjectileID.SaucerDeathray, + ProjectileID.PhantasmalEye, + ProjectileID.PhantasmalSphere, + ProjectileID.PhantasmalDeathray, + ProjectileID.CultistBossIceMist, + ProjectileID.CultistBossLightningOrbArc, + ProjectileID.CultistBossFireBall, + ProjectileID.NebulaBolt, + ProjectileID.NebulaSphere, + ProjectileID.NebulaLaser, + ProjectileID.StardustSoldierLaser, + ProjectileID.VortexLaser, + ProjectileID.VortexVortexLightning, + ProjectileID.VortexLightning, + ProjectileID.VortexAcid, + ProjectileID.GeyserTrap, + ProjectileID.SandnadoHostile, + ProjectileID.DD2BetsyFireball, + ProjectileID.DD2BetsyFlameBreath, + calamity.ProjectileType("AbyssMine"), + calamity.ProjectileType("AbyssMine2"), + calamity.ProjectileType("AstralFlame"), + calamity.ProjectileType("BloodGeyser"), + calamity.ProjectileType("BrimstoneBarrage"), + calamity.ProjectileType("BrimstoneFireblast"), + calamity.ProjectileType("BrimstoneGigaBlast"), + calamity.ProjectileType("BrimstoneHellblast"), + calamity.ProjectileType("BrimstoneHellblast2"), + calamity.ProjectileType("BrimstoneHellfireball"), + calamity.ProjectileType("BrimstoneLaser"), + calamity.ProjectileType("BrimstoneLaserSplit"), + calamity.ProjectileType("BrimstoneMonster"), + calamity.ProjectileType("BrimstoneWave"), + calamity.ProjectileType("DarkEnergyBall"), + calamity.ProjectileType("DeusMine"), + calamity.ProjectileType("DoGDeath"), + calamity.ProjectileType("DoGFire"), + calamity.ProjectileType("CosmicFlameBurst"), + calamity.ProjectileType("FlareBomb"), + calamity.ProjectileType("Flarenado"), + calamity.ProjectileType("HiveBombGoliath"), + calamity.ProjectileType("HolyBlast"), + calamity.ProjectileType("HolyBomb"), + calamity.ProjectileType("HolyShot"), + calamity.ProjectileType("HolySpear"), + calamity.ProjectileType("IceBomb"), + calamity.ProjectileType("IchorShot"), + calamity.ProjectileType("Infernado"), + calamity.ProjectileType("LeviathanBomb"), + calamity.ProjectileType("MoltenBlast"), + calamity.ProjectileType("Mushmash"), + calamity.ProjectileType("PhantomMine"), + calamity.ProjectileType("PhantomBlast"), + calamity.ProjectileType("PhantomBlast2"), + calamity.ProjectileType("ProfanedSpear"), + calamity.ProjectileType("ProvidenceCrystalShard"), + calamity.ProjectileType("ProvidenceHolyRay"), + calamity.ProjectileType("RedLightningFeather"), + calamity.ProjectileType("SandPoisonCloud"), + calamity.ProjectileType("ScavengerNuke"), + calamity.ProjectileType("SirenSong"), + calamity.ProjectileType("YharonFireball"), + calamity.ProjectileType("YharonFireball2"), + calamity.ProjectileType("YharonFireballHoming"), + calamity.ProjectileType("PearlBurst"), + calamity.ProjectileType("PearlRain") + }; + + trapProjectileList = new List() + { + ProjectileID.PoisonDartTrap, + ProjectileID.SpikyBallTrap, + ProjectileID.SpearTrap, + ProjectileID.FlamethrowerTrap, + ProjectileID.FlamesTrap, + ProjectileID.PoisonDart, + ProjectileID.GeyserTrap + }; + + scopedWeaponList = new List() + { + calamity.ItemType("AMR"), + calamity.ItemType("Shroomer"), + calamity.ItemType("SpectreRifle"), + calamity.ItemType("Svantechnical") + }; + } + } + #endregion + + #region Music + public override void UpdateMusic(ref int music, ref MusicPriority priority) + { + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (Main.musicVolume != 0) + { + if (Main.myPlayer != -1 && !Main.gameMenu && Main.LocalPlayer.active) + { + if (NPC.AnyNPCs(NPCID.CultistBoss)) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Doomsayer"); + else + music = MusicID.Boss4; + priority = MusicPriority.BossMedium; + } + if (Main.LocalPlayer.GetModPlayer(this).ZoneCalamity) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Crag"); + else + music = MusicID.Eerie; + priority = MusicPriority.Environment; + } + } + if (Main.LocalPlayer.GetModPlayer(this).ZoneSunkenSea) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SunkenSea"); + else + music = MusicID.Temple; + priority = MusicPriority.Environment; + } + } + if (Main.LocalPlayer.GetModPlayer(this).ZoneAstral) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Astral"); + else + music = MusicID.Space; + priority = MusicPriority.Environment; + } + } + if (Main.LocalPlayer.GetModPlayer(this).ZoneAbyssLayer1 || Main.LocalPlayer.GetModPlayer(this).ZoneAbyssLayer2) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/TheAbyss"); + else + music = MusicID.Hell; + priority = MusicPriority.BiomeHigh; + } + } + if (Main.LocalPlayer.GetModPlayer(this).ZoneAbyssLayer3) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/TheDeepAbyss"); + else + music = MusicID.Hell; + priority = MusicPriority.BiomeHigh; + } + } + if (Main.LocalPlayer.GetModPlayer(this).ZoneAbyssLayer4) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/TheVoid"); + else + music = MusicID.Hell; + priority = MusicPriority.BiomeHigh; + } + } + if (Main.LocalPlayer.GetModPlayer(this).ZoneSulphur) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Sulphur"); + else + music = MusicID.Desert; + priority = MusicPriority.BiomeHigh; + } + } + if (CalamityWorld.DoGSecondStageCountdown <= 540 && CalamityWorld.DoGSecondStageCountdown > 60) //8 seconds before DoG spawns + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/UniversalCollapse"); + else + music = MusicID.LunarBoss; + priority = MusicPriority.BossMedium; + } + } + } + } + } + #endregion + + #region ModSupport + public override void PostSetupContent() + { + WeakReferenceSupport.Setup(); + } + + public override object Call(params object[] args) + { + return ModSupport.Call(args); + } + #endregion + + #region DrawingStuff + public override void ModifyInterfaceLayers(List layers) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + if (CalamityWorld.revenge) + { + UIHandler.ModifyInterfaceLayers(mod, layers); + } + int index = layers.FindIndex(layer => layer.Name == "Vanilla: Mouse Text"); + if (index != -1) + { + layers.Insert(index, new LegacyGameInterfaceLayer("Boss HP Bars", delegate () + { + if (Main.LocalPlayer.GetModPlayer(mod).drawBossHPBar) + { + BossHealthBarManager.Update(); + BossHealthBarManager.Draw(Main.spriteBatch); + } + return true; + }, InterfaceScaleType.None)); + } + base.ModifyInterfaceLayers(layers); + layers.Insert(index, new LegacyGameInterfaceLayer("Astral Arcanum UI", delegate () + { + AstralArcanumUI.UpdateAndDraw(Main.spriteBatch); + return true; + }, InterfaceScaleType.None)); + } + + public static Color GetNPCColor(NPC npc, Vector2? position = null, bool effects = true, float shadowOverride = 0f) + { + return npc.GetAlpha(BuffEffects(npc, GetLightColor(position != null ? (Vector2)position : npc.Center), (shadowOverride != 0f ? shadowOverride : 0f), effects, npc.poisoned, npc.onFire, npc.onFire2, Main.player[Main.myPlayer].detectCreature, false, false, false, npc.venom, npc.midas, npc.ichor, npc.onFrostBurn, false, false, npc.dripping, npc.drippingSlime, npc.loveStruck, npc.stinky)); + } + + public static Color GetLightColor(Vector2 position) + { + return Lighting.GetColor((int)(position.X / 16f), (int)(position.Y / 16f)); + } + + public static Color BuffEffects(Entity codable, Color lightColor, float shadow = 0f, bool effects = true, bool poisoned = false, bool onFire = false, bool onFire2 = false, bool hunter = false, bool noItems = false, bool blind = false, bool bleed = false, bool venom = false, bool midas = false, bool ichor = false, bool onFrostBurn = false, bool burned = false, bool honey = false, bool dripping = false, bool drippingSlime = false, bool loveStruck = false, bool stinky = false) + { + float cr = 1f; float cg = 1f; float cb = 1f; float ca = 1f; if (effects && honey && Main.rand.Next(30) == 0) { int dustID = Dust.NewDust(codable.position, codable.width, codable.height, 152, 0f, 0f, 150, default(Color), 1f); @@ -1938,26 +1338,26 @@ namespace CalamityMod Main.dust[dustID].alpha = 100; Main.dust[dustID].noGravity = true; Main.dust[dustID].velocity += codable.velocity * 0.1f; - if (codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } } - if (poisoned) - { + if (poisoned) + { if (effects && Main.rand.Next(30) == 0) { int dustID = Dust.NewDust(codable.position, codable.width, codable.height, 46, 0f, 0f, 120, default(Color), 0.2f); Main.dust[dustID].noGravity = true; Main.dust[dustID].fadeIn = 1.9f; - if (codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } } - cr *= 0.65f; - cb *= 0.75f; - } + cr *= 0.65f; + cb *= 0.75f; + } if (venom) { if (effects && Main.rand.Next(10) == 0) @@ -1965,7 +1365,7 @@ namespace CalamityMod int dustID = Dust.NewDust(codable.position, codable.width, codable.height, 171, 0f, 0f, 100, default(Color), 0.5f); Main.dust[dustID].noGravity = true; Main.dust[dustID].fadeIn = 1.5f; - if (codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } @@ -1980,13 +1380,13 @@ namespace CalamityMod } if (ichor) { - if (codable is NPC) - { - lightColor = new Color(255, 255, 0, 255); - } + if (codable is NPC) + { + lightColor = new Color(255, 255, 0, 255); + } else - { - cb = 0f; + { + cb = 0f; } } if (burned) @@ -1997,7 +1397,7 @@ namespace CalamityMod Main.dust[dustID].noGravity = true; Main.dust[dustID].velocity *= 1.8f; Main.dust[dustID].velocity.Y -= 0.75f; - if (codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } @@ -2037,8 +1437,8 @@ namespace CalamityMod cg *= 0.7f; } } - if (onFire) - { + if (onFire) + { if (effects) { if (Main.rand.Next(4) != 0) @@ -2064,7 +1464,7 @@ namespace CalamityMod cb *= 0.6f; cg *= 0.7f; } - } + } if (dripping && shadow == 0f && Main.rand.Next(4) != 0) { Vector2 position = codable.position; @@ -2072,11 +1472,11 @@ namespace CalamityMod if (Main.rand.Next(2) == 0) { int dustID = Dust.NewDust(position, codable.width + 4, codable.height + 2, 211, 0f, 0f, 50, default(Color), 0.8f); - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(2) == 0) { Main.dust[dustID].alpha += 25; } - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(2) == 0) { Main.dust[dustID].alpha += 25; } @@ -2084,7 +1484,7 @@ namespace CalamityMod Main.dust[dustID].velocity *= 0.2f; Main.dust[dustID].velocity.Y += 0.2f; Main.dust[dustID].velocity += codable.velocity; - if(codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } @@ -2092,11 +1492,11 @@ namespace CalamityMod else { int dustID = Dust.NewDust(position, codable.width + 8, codable.height + 8, 211, 0f, 0f, 50, default(Color), 1.1f); - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(2) == 0) { Main.dust[dustID].alpha += 25; } - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(2) == 0) { Main.dust[dustID].alpha += 25; } @@ -2105,7 +1505,7 @@ namespace CalamityMod Main.dust[dustID].velocity *= 0.2f; Main.dust[dustID].velocity.Y += 1f; Main.dust[dustID].velocity += codable.velocity; - if(codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } @@ -2122,11 +1522,11 @@ namespace CalamityMod Vector2 position2 = codable.position; position2.X -= 2f; position2.Y -= 2f; int dustID = Dust.NewDust(position2, codable.width + 4, codable.height + 2, 4, 0f, 0f, alpha, newColor, 1.4f); - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(2) == 0) { Main.dust[dustID].alpha += 25; } - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(2) == 0) { Main.dust[dustID].alpha += 25; } @@ -2134,7 +1534,7 @@ namespace CalamityMod Main.dust[dustID].velocity *= 0.2f; Main.dust[dustID].velocity.Y += 0.2f; Main.dust[dustID].velocity += codable.velocity; - if(codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } @@ -2143,8 +1543,8 @@ namespace CalamityMod cr *= 0.8f; cg *= 0.8f; } - if (onFire2) - { + if (onFire2) + { if (effects) { if (Main.rand.Next(4) != 0) @@ -2158,7 +1558,7 @@ namespace CalamityMod Main.dust[dustID].noGravity = false; Main.dust[dustID].scale *= 0.5f; } - if (codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } @@ -2170,33 +1570,33 @@ namespace CalamityMod cb *= 0.6f; cg *= 0.7f; } - } - if (noItems) - { - cr *= 0.65f; - cg *= 0.8f; - } - if (blind) - { - cr *= 0.7f; - cg *= 0.65f; - } - if (bleed) - { + } + if (noItems) + { + cr *= 0.65f; + cg *= 0.8f; + } + if (blind) + { + cr *= 0.7f; + cg *= 0.65f; + } + if (bleed) + { bool dead = (codable is Player ? ((Player)codable).dead : codable is NPC ? ((NPC)codable).life <= 0 : false); if (effects && !dead && Main.rand.Next(30) == 0) { int dustID = Dust.NewDust(codable.position, codable.width, codable.height, 5, 0f, 0f, 0, default(Color), 1f); Main.dust[dustID].velocity.Y += 0.5f; Main.dust[dustID].velocity *= 0.25f; - if (codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } } - cg *= 0.9f; - cb *= 0.9f; - } + cg *= 0.9f; + cb *= 0.9f; + } if (loveStruck && effects && shadow == 0f && Main.instance.IsActive && !Main.gamePaused && Main.rand.Next(5) == 0) { Vector2 value = new Vector2((float)Main.rand.Next(-10, 11), (float)Main.rand.Next(-10, 11)); @@ -2206,7 +1606,7 @@ namespace CalamityMod Main.gore[goreID].sticky = false; Main.gore[goreID].velocity *= 0.4f; Main.gore[goreID].velocity.Y -= 0.6f; - if (codable is Player) + if (codable is Player) { Main.playerDrawGore.Add(goreID); } @@ -2223,7 +1623,7 @@ namespace CalamityMod int dustID = Dust.NewDust(codable.position, codable.width, codable.height, 188, vector.X, vector.Y * 0.5f, 100, default(Color), 1.5f); Main.dust[dustID].velocity *= 0.1f; Main.dust[dustID].velocity.Y -= 0.5f; - if (codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } @@ -2232,64 +1632,64 @@ namespace CalamityMod lightColor.R = (byte)((float)lightColor.R * cr); lightColor.G = (byte)((float)lightColor.G * cg); lightColor.B = (byte)((float)lightColor.B * cb); - lightColor.A = (byte)((float)lightColor.A * ca); - if (codable is NPC) + lightColor.A = (byte)((float)lightColor.A * ca); + if (codable is NPC) { NPCLoader.DrawEffects((NPC)codable, ref lightColor); } - if (hunter && (codable is NPC ? ((NPC)codable).lifeMax > 1 : true)) - { + if (hunter && (codable is NPC ? ((NPC)codable).lifeMax > 1 : true)) + { if (effects && !Main.gamePaused && Main.instance.IsActive && Main.rand.Next(50) == 0) { int dustID = Dust.NewDust(codable.position, codable.width, codable.height, 15, 0f, 0f, 150, default(Color), 0.8f); Main.dust[dustID].velocity *= 0.1f; Main.dust[dustID].noLight = true; - if (codable is Player) + if (codable is Player) { Main.playerDrawDust.Add(dustID); } } byte colorR = 50, colorG = 255, colorB = 50; - if(codable is NPC && !(((NPC)codable).friendly || ((NPC)codable).catchItem > 0 || (((NPC)codable).damage == 0 && ((NPC)codable).lifeMax == 5))) + if (codable is NPC && !(((NPC)codable).friendly || ((NPC)codable).catchItem > 0 || (((NPC)codable).damage == 0 && ((NPC)codable).lifeMax == 5))) { colorR = 255; colorG = 50; } - if (!(codable is NPC) && lightColor.R < 150) - { - lightColor.A = Main.mouseTextColor; - } - if (lightColor.R < colorR) - { - lightColor.R = colorR; - } - if (lightColor.G < colorG) - { - lightColor.G = colorG; - } - if (lightColor.B < colorB) - { - lightColor.B = colorB; - } - } - return lightColor; - } - - public static void DrawTexture(object sb, Texture2D texture, int shader, Entity codable, Color? overrideColor = null, bool drawCentered = false) - { - Color lightColor = (overrideColor != null ? (Color)overrideColor : codable is NPC ? GetNPCColor(((NPC)codable), codable.Center, false) : codable is Projectile ? ((Projectile)codable).GetAlpha(GetLightColor(codable.Center)) : GetLightColor(codable.Center)); - int frameCount = (codable is NPC ? Main.npcFrameCount[((NPC)codable).type] : 1); - Rectangle frame = (codable is NPC ? ((NPC)codable).frame : new Rectangle(0, 0, texture.Width, texture.Height)); - float scale = (codable is NPC ? ((NPC)codable).scale : ((Projectile)codable).scale); - float rotation = (codable is NPC ? ((NPC)codable).rotation : ((Projectile)codable).rotation); - int spriteDirection = (codable is NPC ? ((NPC)codable).spriteDirection : ((Projectile)codable).spriteDirection); + if (!(codable is NPC) && lightColor.R < 150) + { + lightColor.A = Main.mouseTextColor; + } + if (lightColor.R < colorR) + { + lightColor.R = colorR; + } + if (lightColor.G < colorG) + { + lightColor.G = colorG; + } + if (lightColor.B < colorB) + { + lightColor.B = colorB; + } + } + return lightColor; + } + + public static void DrawTexture(object sb, Texture2D texture, int shader, Entity codable, Color? overrideColor = null, bool drawCentered = false) + { + Color lightColor = (overrideColor != null ? (Color)overrideColor : codable is NPC ? GetNPCColor(((NPC)codable), codable.Center, false) : codable is Projectile ? ((Projectile)codable).GetAlpha(GetLightColor(codable.Center)) : GetLightColor(codable.Center)); + int frameCount = (codable is NPC ? Main.npcFrameCount[((NPC)codable).type] : 1); + Rectangle frame = (codable is NPC ? ((NPC)codable).frame : new Rectangle(0, 0, texture.Width, texture.Height)); + float scale = (codable is NPC ? ((NPC)codable).scale : ((Projectile)codable).scale); + float rotation = (codable is NPC ? ((NPC)codable).rotation : ((Projectile)codable).rotation); + int spriteDirection = (codable is NPC ? ((NPC)codable).spriteDirection : ((Projectile)codable).spriteDirection); float offsetY = (codable is NPC ? ((NPC)codable).gfxOffY : 0f); - DrawTexture(sb, texture, shader, codable.position + new Vector2(0f, offsetY), codable.width, codable.height, scale, rotation, spriteDirection, frameCount, frame, lightColor, drawCentered); - } - - public static void DrawTexture(object sb, Texture2D texture, int shader, Vector2 position, int width, int height, float scale, float rotation, int direction, int framecount, Rectangle frame, Color? overrideColor = null, bool drawCentered = false) - { - Vector2 origin = new Vector2((float)(texture.Width / 2), (float)(texture.Height / framecount / 2)); - Color lightColor = overrideColor != null ? (Color)overrideColor : GetLightColor(position + new Vector2(width * 0.5f, height * 0.5f)); + DrawTexture(sb, texture, shader, codable.position + new Vector2(0f, offsetY), codable.width, codable.height, scale, rotation, spriteDirection, frameCount, frame, lightColor, drawCentered); + } + + public static void DrawTexture(object sb, Texture2D texture, int shader, Vector2 position, int width, int height, float scale, float rotation, int direction, int framecount, Rectangle frame, Color? overrideColor = null, bool drawCentered = false) + { + Vector2 origin = new Vector2((float)(texture.Width / 2), (float)(texture.Height / framecount / 2)); + Color lightColor = overrideColor != null ? (Color)overrideColor : GetLightColor(position + new Vector2(width * 0.5f, height * 0.5f)); if (sb is List) { DrawData dd = new DrawData(texture, GetDrawPosition(position, origin, width, height, texture.Width, texture.Height, framecount, scale, drawCentered), frame, lightColor, rotation, origin, scale, direction == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 0); @@ -2303,984 +1703,197 @@ namespace CalamityMod { ((SpriteBatch)sb).End(); ((SpriteBatch)sb).Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend); - GameShaders.Armor.ApplySecondary(shader, Main.player[Main.myPlayer], null); + GameShaders.Armor.ApplySecondary(shader, Main.player[Main.myPlayer], null); } - ((SpriteBatch)sb).Draw(texture, GetDrawPosition(position, origin, width, height, texture.Width, texture.Height, framecount, scale, drawCentered), frame, lightColor, rotation, origin, scale, direction == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 0); + ((SpriteBatch)sb).Draw(texture, GetDrawPosition(position, origin, width, height, texture.Width, texture.Height, framecount, scale, drawCentered), frame, lightColor, rotation, origin, scale, direction == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 0); if (applyDye) { ((SpriteBatch)sb).End(); ((SpriteBatch)sb).Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); } } - } - - public static Vector2 GetDrawPosition(Vector2 position, Vector2 origin, int width, int height, int texWidth, int texHeight, int framecount, float scale, bool drawCentered = false) - { + } + + public static Vector2 GetDrawPosition(Vector2 position, Vector2 origin, int width, int height, int texWidth, int texHeight, int framecount, float scale, bool drawCentered = false) + { Vector2 screenPos = new Vector2((int)Main.screenPosition.X, (int)Main.screenPosition.Y); if (drawCentered) { Vector2 texHalf = new Vector2(texWidth / 2, texHeight / framecount / 2); - return (position + new Vector2(width * 0.5f, height * 0.5f)) - (texHalf * scale) + (origin * scale) - screenPos; + return (position + new Vector2(width * 0.5f, height * 0.5f)) - (texHalf * scale) + (origin * scale) - screenPos; } return position - screenPos + new Vector2(width * 0.5f, height) - new Vector2(texWidth * scale / 2f, texHeight * scale / (float)framecount) + (origin * scale) + new Vector2(0f, 5f); - } - #endregion - - #region RecipeGroups - public override void AddRecipeGroups() - { - RecipeGroup group = new RecipeGroup(() => Lang.misc[37] + (" Silt"), new int[] - { - 424, - 1103 - }); - RecipeGroup.RegisterGroup("SiltGroup", group); - - group = new RecipeGroup(() => Lang.misc[37] + (" Lunar Pickaxe"), new int[] - { - 2776, - 2781, - 2786, - 3466 - }); - RecipeGroup.RegisterGroup("LunarPickaxe", group); - - group = new RecipeGroup(() => Lang.misc[37] + (" Lunar Axe"), new int[] - { - 3522, - 3523, - 3524, - 3525 - }); - RecipeGroup.RegisterGroup("LunarAxe", group); - - group = new RecipeGroup(() => Lang.misc[37] + (" Wings"), new int[] - { - 492, - 493, - 665, - 749, - 761, - 785, - 786, - 821, - 822, - 823, - 948, - 1162, - 1165, - 1515, - 1583, - 1584, - 1585, - 1586, - 1797, - 1830, - 1866, - 1871, - 2280, - 2494, - 2609, - 2770, - 3468, - 3469, - 3470, - 3471, - 3580, - 3582, - 3588, - 3592, - 3883, - 3924, - 3928, - ItemType("SkylineWings"), - ItemType("StarlightWings"), - ItemType("AureateWings"), - ItemType("DiscordianWings"), - ItemType("TarragonWings"), - ItemType("XerocWings") - }); - RecipeGroup.RegisterGroup("WingsGroup", group); } - #endregion + #endregion - #region Recipes - public override void AddRecipes() + #region Recipes + public override void AddRecipeGroups() { - ModRecipe recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.SunplateBlock, 10); - recipe.AddIngredient(ItemID.Cloud, 5); - recipe.AddIngredient(ItemID.RainCloud, 3); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.SkyMill); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.IceBlock, 20); - recipe.AddIngredient(ItemID.Leather, 5); - recipe.AddIngredient(ItemID.IronBar, 5); - recipe.anyIronBar = true; - recipe.AddTile(TileID.IceMachine); - recipe.SetResult(ItemID.IceSkates); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.IceBlock, 20); - recipe.AddIngredient(ItemID.Glass, 10); - recipe.AddIngredient(ItemID.FallenStar, 10); - recipe.AddIngredient(ItemID.IronBar, 5); - recipe.anyIronBar = true; - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.IceMirror); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.IronBar, 10); - recipe.AddIngredient(ItemID.Glass, 10); - recipe.AddIngredient(ItemID.FallenStar, 10); - recipe.anyIronBar = true; - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.MagicMirror); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Lens); - recipe.AddIngredient(ItemID.BlackDye); - recipe.AddTile(TileID.DyeVat); - recipe.SetResult(ItemID.BlackLens); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Vertebrae, 5); - recipe.AddTile(TileID.WorkBenches); - recipe.SetResult(ItemID.Leather); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.IceBlock, 25); - recipe.AddIngredient(ItemID.SnowBlock, 15); - recipe.AddIngredient(ItemID.IronBar, 3); - recipe.anyIronBar = true; - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.IceMachine); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.GoldBroadsword); - recipe.AddIngredient(ItemID.FallenStar, 10); - recipe.AddIngredient(null, "VictoryShard", 3); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.Starfury); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.PlatinumBroadsword); - recipe.AddIngredient(ItemID.FallenStar, 10); - recipe.AddIngredient(null, "VictoryShard", 3); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.Starfury); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Feather, 2); - recipe.AddIngredient(ItemID.Bottle); - recipe.AddIngredient(ItemID.Cloud, 25); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.CloudinaBottle); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Feather, 4); - recipe.AddIngredient(ItemID.Bottle); - recipe.AddIngredient(ItemID.SnowBlock, 50); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.BlizzardinaBottle); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "DesertFeather", 10); - recipe.AddIngredient(ItemID.Feather, 6); - recipe.AddIngredient(ItemID.Bottle); - recipe.AddIngredient(ItemID.SandBlock, 70); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.SandstorminaBottle); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.WhiteString); - recipe.AddIngredient(ItemID.Gel, 80); - recipe.AddIngredient(ItemID.Cloud, 40); - recipe.AddTile(TileID.Solidifier); - recipe.SetResult(ItemID.ShinyRedBalloon); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Leather, 5); - recipe.AddIngredient(ItemID.WaterWalkingPotion, 8); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.WaterWalkingBoots); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.LavaBucket, 5); - recipe.AddIngredient(ItemID.Obsidian, 25); - recipe.AddIngredient(ItemID.IronBar, 5); - recipe.anyIronBar = true; - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.LavaCharm); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.GoldenKey); - recipe.AddIngredient(ItemID.Obsidian, 20); - recipe.AddIngredient(ItemID.Bone, 5); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.ShadowKey); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "CryoBar", 6); - recipe.AddIngredient(ItemID.FrostCore); - recipe.AddTile(TileID.IceMachine); - recipe.SetResult(ItemID.FrostHelmet); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "CryoBar", 10); - recipe.AddIngredient(ItemID.FrostCore); - recipe.AddTile(TileID.IceMachine); - recipe.SetResult(ItemID.FrostBreastplate); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "CryoBar", 8); - recipe.AddIngredient(ItemID.FrostCore); - recipe.AddTile(TileID.IceMachine); - recipe.SetResult(ItemID.FrostLeggings); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.CobaltBar, 10); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.CobaltShield); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.PalladiumBar, 10); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.CobaltShield); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.CobaltBar, 15); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.Muramasa); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.PalladiumBar, 15); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.Muramasa); - recipe.AddRecipe(); - - Mod calamity = ModLoader.GetMod("CalamityMod"); - - //Change Terra Blade's recipe to require 7 living shards - List rec = Main.recipe.ToList(); - rec.Where(x => x.createItem.type == ItemID.TerraBlade).ToList().ForEach(s => - { - for (int i = 0; i < s.requiredItem.Length; i++) - { - s.requiredItem[i] = new Item(); - } - s.requiredItem[0].SetDefaults(ItemID.TrueNightsEdge, false); - s.requiredItem[0].stack = 1; - s.requiredItem[1].SetDefaults(ItemID.TrueExcalibur, false); - s.requiredItem[1].stack = 1; - s.requiredItem[2].SetDefaults(calamity.ItemType("LivingShard"), false); - s.requiredItem[2].stack = 7; - - s.createItem.SetDefaults(ItemID.TerraBlade, false); - s.createItem.stack = 1; - }); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "TrueBloodyEdge"); - recipe.AddIngredient(ItemID.TrueExcalibur); - recipe.AddIngredient(null, "LivingShard", 7); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.TerraBlade); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "Ectoblood", 3); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.Ectoplasm); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.EmptyBullet); - recipe.AddIngredient(ItemID.ExplosivePowder, 3); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.RocketI, 5); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "VictoryShard", 10); - recipe.AddIngredient(ItemID.SoulofLight, 15); - recipe.AddIngredient(ItemID.UnicornHorn, 3); - recipe.AddIngredient(ItemID.LightShard); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.EnchantedSword); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.WormholePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.WarmthPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.CratePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.SonarPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.FishingPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.TeleportationPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.StinkPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.LovePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.WrathPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.InfernoPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.RagePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.EndurancePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.LifeforcePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.AmmoReservationPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.TrapsightPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.SummoningPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.FlipperPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.TitanPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.BuilderPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.CalmingPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.HeartreachPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.MiningPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.GenderChangePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.GravitationPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.HunterPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.ArcheryPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.WaterWalkingPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.ThornsPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.BattlePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.NightOwlPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.ShinePotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.InvisibilityPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.SpelunkerPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.FeatherfallPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.MagicPowerPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.ManaRegenerationPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.IronskinPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.GillsPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.SwiftnessPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.RegenerationPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddTile(TileID.AlchemyTable); - recipe.SetResult(ItemID.ObsidianSkinPotion); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.AncientCloth, 10); - recipe.AddIngredient(ItemID.SoulofLight, 10); - recipe.AddIngredient(ItemID.SoulofNight, 10); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.FlyingCarpet); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.LihzahrdBrick, 15); - recipe.AddIngredient(null, "CoreofCinder"); - recipe.AddTile(TileID.LihzahrdFurnace); - recipe.SetResult(ItemID.LihzahrdPowerCell); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.GlowingMushroom, 15); - recipe.AddIngredient(ItemID.Worm); - recipe.AddTile(TileID.Autohammer); - recipe.SetResult(ItemID.TruffleWorm); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.IronBar, 5); - recipe.anyIronBar = true; - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.Aglet); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.JungleSpores, 15); - recipe.AddIngredient(ItemID.Cloud, 15); - recipe.AddIngredient(ItemID.PinkGel, 5); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.AnkletoftheWind); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.SunplateBlock, 10); - recipe.AddIngredient(ItemID.Cloud, 10); - recipe.AddIngredient(ItemID.GoldBar, 5); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.LuckyHorseshoe); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.SunplateBlock, 10); - recipe.AddIngredient(ItemID.Cloud, 10); - recipe.AddIngredient(ItemID.PlatinumBar, 5); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.LuckyHorseshoe); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.SoulofLight, 30); - recipe.AddIngredient(ItemID.ChaosFish, 5); - recipe.AddIngredient(ItemID.PixieDust, 50); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.RodofDiscord); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.TurtleShell, 3); - recipe.AddIngredient(null, "EssenceofEleum", 9); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.FrozenTurtleShell); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "PlantyMush", 10); - recipe.AddIngredient(null, "LivingShard"); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.LifeFruit); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.FallenStar, 20); - recipe.AddIngredient(ItemID.SoulofMight, 10); - recipe.AddIngredient(ItemID.SoulofLight, 5); - recipe.AddIngredient(ItemID.SoulofNight, 5); - recipe.AddIngredient(null, "CryoBar", 3); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.CelestialMagnet); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 1 - recipe.AddIngredient(ItemID.Silk, 20); - recipe.AddIngredient(ItemID.SoulofLight, 3); - recipe.AddIngredient(ItemID.SoulofNight, 3); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.TrifoldMap); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 2 - recipe.AddIngredient(ItemID.Bone, 50); - recipe.AddIngredient(null, "AncientBoneDust", 3); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.ArmorPolish); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 3 - recipe.AddIngredient(ItemID.SoulofNight, 20); - recipe.AddIngredient(ItemID.Lens, 5); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.Nazar); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 4 - recipe.AddIngredient(ItemID.Stinger, 15); - recipe.AddIngredient(null, "MurkyPaste"); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.Bezoar); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 5 - recipe.AddIngredient(ItemID.BottledWater); - recipe.AddIngredient(ItemID.Waterleaf, 5); - recipe.AddIngredient(ItemID.Blinkroot, 5); - recipe.AddIngredient(ItemID.Daybloom, 5); - recipe.AddIngredient(null, "BeetleJuice", 3); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.Vitamins); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 6 - recipe.AddIngredient(ItemID.Silk, 30); - recipe.AddIngredient(ItemID.SoulofNight, 5); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.Blindfold); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 7 - recipe.AddIngredient(ItemID.Timer1Second); - recipe.AddIngredient(ItemID.PixieDust, 15); - recipe.AddIngredient(ItemID.SoulofLight, 5); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.FastClock); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 8 - recipe.AddIngredient(ItemID.Wire, 10); - recipe.AddIngredient(ItemID.HallowedBar, 5); - recipe.AddIngredient(ItemID.Ruby, 3); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.Megaphone); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //ankh 9 - recipe.AddIngredient(ItemID.Silk, 10); - recipe.AddIngredient(ItemID.Gel, 50); - recipe.AddIngredient(ItemID.GreaterHealingPotion); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.AdhesiveBandage); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Frog, 10); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.FrogLeg); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //hermesboots - recipe.AddIngredient(ItemID.Silk, 10); - recipe.AddTile(TileID.Loom); - recipe.SetResult(ItemID.HermesBoots); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); //radar - recipe.AddIngredient(ItemID.IronBar, 5); - recipe.anyIronBar = true; - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.Radar); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Bone, 5); - recipe.AddIngredient(ItemID.PinkGel); - recipe.AddIngredient(ItemID.HealingPotion); - recipe.AddIngredient(ItemID.Ruby); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.LifeCrystal); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Wood, 5); - recipe.AddIngredient(ItemID.Torch, 3); - recipe.AddIngredient(ItemID.FallenStar); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.WandofSparking); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.IronBar); - recipe.anyIronBar = true; - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.ThrowingKnife, 50); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.IronBar); - recipe.anyIronBar = true; - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.Shuriken, 50); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Leather, 10); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(ItemID.FeralClaws); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.Leather, 5); - recipe.AddIngredient(null, "BloodOrb", 10); - recipe.AddTile(TileID.Hellforge); - recipe.SetResult(ItemID.GuideVoodooDoll); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(ItemID.JungleSpores, 15); - recipe.AddIngredient(ItemID.RichMahogany, 15); - recipe.AddIngredient(ItemID.SoulofNight, 15); - recipe.AddIngredient(ItemID.SoulofLight, 15); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(ItemID.TempleKey); - recipe.AddRecipe(); - - recipe = new ModRecipe(this); - recipe.AddIngredient(null, "RogueEmblem"); - recipe.AddIngredient(ItemID.SoulofMight, 5); - recipe.AddIngredient(ItemID.SoulofSight, 5); - recipe.AddIngredient(ItemID.SoulofFright, 5); - recipe.AddTile(TileID.TinkerersWorkbench); - recipe.SetResult(ItemID.AvengerEmblem); - recipe.AddRecipe(); - } - #endregion - - #region Packets - public override void HandlePacket(BinaryReader reader, int whoAmI) + CalamityRecipes.AddRecipeGroups(); + } + + public override void AddRecipes() + { + CalamityRecipes.AddRecipes(); + } + #endregion + + #region Seasons + public static Season season + { + get + { + DateTime date = DateTime.Now; + int day = date.DayOfYear - Convert.ToInt32((DateTime.IsLeapYear(date.Year)) && date.DayOfYear > 59); + + if (day < 80 || day >= 355) + { + return Season.Winter; + } + + else if (day >= 80 && day < 172) + { + return Season.Spring; + } + + else if (day >= 172 && day < 266) + { + return Season.Summer; + } + + else + { + return Season.Fall; + } + } + } + #endregion + + #region Packets + public override void HandlePacket(BinaryReader reader, int whoAmI) { CalamityModMessageType msgType = (CalamityModMessageType)reader.ReadByte(); - switch (msgType) + switch (msgType) { - case CalamityModMessageType.MeleeLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 0); - break; - case CalamityModMessageType.RangedLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 1); - break; - case CalamityModMessageType.MagicLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 2); - break; - case CalamityModMessageType.SummonLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 3); - break; - case CalamityModMessageType.RogueLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 4); - break; - case CalamityModMessageType.ExactMeleeLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 0); - break; - case CalamityModMessageType.ExactRangedLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 1); - break; - case CalamityModMessageType.ExactMagicLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 2); - break; - case CalamityModMessageType.ExactSummonLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 3); - break; - case CalamityModMessageType.ExactRogueLevelSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 4); - break; - case CalamityModMessageType.StressSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleStress(reader); - break; - case CalamityModMessageType.Ravager: - int ravagerAlive = reader.ReadInt32(); - CalamityGlobalNPC.scavenger = ravagerAlive; - break; - case CalamityModMessageType.DoG: - int DoGAlive = reader.ReadInt32(); - CalamityGlobalNPC.DoGHead = DoGAlive; - break; - case CalamityModMessageType.Polterghast: - int polterAlive = reader.ReadInt32(); - CalamityGlobalNPC.ghostBoss = polterAlive; - break; - case CalamityModMessageType.LORDE: - int lordeAlive = reader.ReadInt32(); - CalamityGlobalNPC.lordeBoss = lordeAlive; - break; - case CalamityModMessageType.Providence: - int provAlive = reader.ReadInt32(); - CalamityGlobalNPC.holyBoss = provAlive; - break; - case CalamityModMessageType.BossRushStage: - int stage = reader.ReadInt32(); - CalamityWorld.bossRushStage = stage; - break; - case CalamityModMessageType.AdrenalineSync: - Main.player[reader.ReadInt32()].GetModPlayer().HandleAdrenaline(reader); - break; - case CalamityModMessageType.TeleportPlayer: - Main.player[reader.ReadInt32()].GetModPlayer().HandleTeleport(reader.ReadInt32(), true, whoAmI); - break; - case CalamityModMessageType.SupremeCal: - int SCalAlive = reader.ReadInt32(); - CalamityGlobalNPC.SCal = SCalAlive; - break; - case CalamityModMessageType.DoGCountdownSync: - int countdown = reader.ReadInt32(); - CalamityWorld.DoGSecondStageCountdown = countdown; - break; - case CalamityModMessageType.BossSpawnCountdownSync: - int countdown2 = reader.ReadInt32(); - CalamityWorld.bossSpawnCountdown = countdown2; - break; - case CalamityModMessageType.BossTypeSync: - int type = reader.ReadInt32(); - CalamityWorld.bossType = type; - break; - default: + case CalamityModMessageType.MeleeLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 0); + break; + case CalamityModMessageType.RangedLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 1); + break; + case CalamityModMessageType.MagicLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 2); + break; + case CalamityModMessageType.SummonLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 3); + break; + case CalamityModMessageType.RogueLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleLevels(reader, 4); + break; + case CalamityModMessageType.ExactMeleeLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 0); + break; + case CalamityModMessageType.ExactRangedLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 1); + break; + case CalamityModMessageType.ExactMagicLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 2); + break; + case CalamityModMessageType.ExactSummonLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 3); + break; + case CalamityModMessageType.ExactRogueLevelSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleExactLevels(reader, 4); + break; + case CalamityModMessageType.StressSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleStress(reader); + break; + case CalamityModMessageType.Ravager: + int ravagerAlive = reader.ReadInt32(); + CalamityGlobalNPC.scavenger = ravagerAlive; + break; + case CalamityModMessageType.DoG: + int DoGAlive = reader.ReadInt32(); + CalamityGlobalNPC.DoGHead = DoGAlive; + break; + case CalamityModMessageType.Polterghast: + int polterAlive = reader.ReadInt32(); + CalamityGlobalNPC.ghostBoss = polterAlive; + break; + case CalamityModMessageType.LORDE: + int lordeAlive = reader.ReadInt32(); + CalamityGlobalNPC.lordeBoss = lordeAlive; + break; + case CalamityModMessageType.Providence: + int provAlive = reader.ReadInt32(); + CalamityGlobalNPC.holyBoss = provAlive; + break; + case CalamityModMessageType.BossRushStage: + int stage = reader.ReadInt32(); + CalamityWorld.bossRushStage = stage; + break; + case CalamityModMessageType.AdrenalineSync: + Main.player[reader.ReadInt32()].GetModPlayer().HandleAdrenaline(reader); + break; + case CalamityModMessageType.TeleportPlayer: + Main.player[reader.ReadInt32()].GetModPlayer().HandleTeleport(reader.ReadInt32(), true, whoAmI); + break; + case CalamityModMessageType.SupremeCal: + int SCalAlive = reader.ReadInt32(); + CalamityGlobalNPC.SCal = SCalAlive; + break; + case CalamityModMessageType.DoGCountdownSync: + int countdown = reader.ReadInt32(); + CalamityWorld.DoGSecondStageCountdown = countdown; + break; + case CalamityModMessageType.BossSpawnCountdownSync: + int countdown2 = reader.ReadInt32(); + CalamityWorld.bossSpawnCountdown = countdown2; + break; + case CalamityModMessageType.BossTypeSync: + int type = reader.ReadInt32(); + CalamityWorld.bossType = type; + break; + default: ErrorLogger.Log("CalamityMod: Unknown Message type: " + msgType); break; } - } - #endregion - - public override object Call(params object[] args) - { - return ModSupport.Call(args); } - } - - enum CalamityModMessageType : byte + #endregion + } + + public enum Season : byte { - MeleeLevelSync, - RangedLevelSync, - MagicLevelSync, - SummonLevelSync, - RogueLevelSync, - ExactMeleeLevelSync, - ExactRangedLevelSync, - ExactMagicLevelSync, - ExactSummonLevelSync, - ExactRogueLevelSync, - StressSync, - Ravager, - DoG, - Polterghast, - LORDE, - Providence, - AdrenalineSync, - TeleportPlayer, - BossRushStage, - SupremeCal, - DoGCountdownSync, - BossSpawnCountdownSync, - BossTypeSync - } + Winter, + Spring, + Summer, + Fall + } + + enum CalamityModMessageType : byte + { + MeleeLevelSync, + RangedLevelSync, + MagicLevelSync, + SummonLevelSync, + RogueLevelSync, + ExactMeleeLevelSync, + ExactRangedLevelSync, + ExactMagicLevelSync, + ExactSummonLevelSync, + ExactRogueLevelSync, + StressSync, + Ravager, + DoG, + Polterghast, + LORDE, + Providence, + AdrenalineSync, + TeleportPlayer, + BossRushStage, + SupremeCal, + DoGCountdownSync, + BossSpawnCountdownSync, + BossTypeSync + } } \ No newline at end of file diff --git a/CalamityPlayer.cs b/CalamityPlayer.cs index 3a6558199e..d51d96571a 100644 --- a/CalamityPlayer.cs +++ b/CalamityPlayer.cs @@ -20,6 +20,8 @@ using CalamityMod.NPCs.Calamitas; using CalamityMod.NPCs.PlaguebringerGoliath; using CalamityMod.NPCs.Yharon; using CalamityMod.NPCs.Leviathan; +using CalamityMod.Projectiles; +using CalamityMod.Items; using CalamityMod.Items.Armor; using CalamityMod.UI; using CalamityMod.Items.CalamityCustomThrowingDamage; @@ -29,799 +31,849 @@ namespace CalamityMod { public class CalamityPlayer : ModPlayer { - #region InstanceVars + #region InstanceVars - #region NormalVars - public int meleeLevel = 0; + #region NormalVars + public float rogueStealth = 0f; - public int rangedLevel = 0; + public float rogueStealthMax = 0f; - public int magicLevel = 0; + public bool playRogueStealthSound = false; - public int rogueLevel = 0; + public int nebulaManaNerfCounter = 0; - public int summonLevel = 0; + public int alcoholPoisonLevel = 0; - public int gainLevelCooldown = 120; //120 frames before gaining another stat point, avoiding i-frame nonsense + public static bool areThereAnyDamnBosses = false; - public bool shootFireworksLevelUpMelee = true; + private const int saveVersion = 0; - public bool shootFireworksLevelUpRanged = true; - - public bool shootFireworksLevelUpMagic = true; - - public bool shootFireworksLevelUpSummon = true; - - public bool shootFireworksLevelUpRogue = true; - - public int exactMeleeLevel = 0; - - public int exactRangedLevel = 0; - - public int exactMagicLevel = 0; - - public int exactSummonLevel = 0; - - public int exactRogueLevel = 0; - - public int alcoholPoisonLevel = 0; - - public static bool areThereAnyDamnBosses = false; - - private const int saveVersion = 0; - public int modStealthTimer; - public int hInfernoBoost = 0; + public int hInfernoBoost = 0; + + public int pissWaterBoost = 0; - public int pissWaterBoost = 0; - - public int runCheck = 0; - public int packetTimer = 0; - public int sCalDeathCount = 0; + public int sCalDeathCount = 0; - public int sCalKillCount = 0; + public int sCalKillCount = 0; - public int bloodflareHeartTimer = 180; + public int bloodflareHeartTimer = 180; - public int bloodflareManaTimer = 180; + public int bloodflareManaTimer = 180; public float modStealth = 1f; - public float aquaticBoost = 1f; - + public float aquaticBoost = 1f; + public float shieldInvinc = 5f; - + public int dashMod; - + public int dashTimeMod; public const float defEndurance = 0.33f; - public bool playFullRageSound = true; + public bool playFullRageSound = true; - public bool playFullAdrenalineSound = true; + public bool playFullAdrenalineSound = true; - public bool fab = false; + public bool playAdrenalineBurnoutSound = true; - public bool drawBossHPBar = true; + public bool playFullAdrenalineBurnoutSound = true; - public bool shouldDrawSmallText = true; - #endregion + public bool fab = false; - #region PetStuff - public bool leviPet = false; + public bool drawBossHPBar = true; - public bool sirenPet = false; + public bool shouldDrawSmallText = true; - public bool fox = false; + public float ataraxiaDamageBoost = 0f; - public bool chibii = false; + public int ataraxiaDamageBoostCooldown = 0; - public bool brimling = false; + public int ataraxiaDamageBoostCancelTimer = 1200; + #endregion - public bool bearPet = false; - #endregion + #region ProficiencyStuff + public int meleeLevel = 0; + public int rangedLevel = 0; + public int magicLevel = 0; + public int rogueLevel = 0; + public int summonLevel = 0; - #region StressStuff - public const int stressMax = 10000; + public bool shootFireworksLevelUpMelee = true; + public bool shootFireworksLevelUpRanged = true; + public bool shootFireworksLevelUpMagic = true; + public bool shootFireworksLevelUpSummon = true; + public bool shootFireworksLevelUpRogue = true; - public int stress; + public int exactMeleeLevel = 0; + public int exactRangedLevel = 0; + public int exactMagicLevel = 0; + public int exactSummonLevel = 0; + public int exactRogueLevel = 0; - public int stressCD; + public int gainLevelCooldown = 120; // 120 frames before gaining another stat point, avoiding i-frame nonsense + #endregion - public bool heartOfDarkness = false; + #region PetStuff + public bool leviPet = false; - public bool draedonsHeart = false; + public bool sirenPet = false; + + public bool fox = false; + + public bool chibii = false; + + public bool brimling = false; + + public bool bearPet = false; + + public bool trashMan = false; + + public int trashManChest = -1; + #endregion + + #region StressStuff + public const int stressMax = 10000; + + public int stress; + + public int stressCD; + + public bool heartOfDarkness = false; + + public bool draedonsHeart = false; + + public bool draedonsStressGain = false; - public bool draedonsStressGain = false; - public bool afflicted = false; - + public bool affliction = false; - + public bool afflictedBuff = false; - public bool stressPills = false; + public bool stressPills = false; + + public bool laudanum = false; - public bool laudanum = false; - public bool stressLevel500 = false; - public bool rageMode = false; + public bool rageMode = false; + #endregion - //public bool despawnProj = false; - #endregion + #region AdrenalineStuff + public const int adrenalineMax = 10000; - #region AdrenalineStuff - public const int adrenalineMax = 10000; + public int adrenalineMaxTimer = 300; - public int adrenalineMaxTimer = 180; + public int adrenalineDmgDown = 600; - public int adrenalineDmgDown = 600; + public float adrenalineDmgMult = 1f; - public float adrenalineDmgMult = 1f; + public int adrenaline; - public int adrenaline; + public int adrenalineCD; - public int adrenalineCD; + public bool adrenalineMode = false; + #endregion - public bool adrenalineMode = false; - #endregion + #region PermanentStuff + public bool extraAccessoryML = false; - #region PermanentStuff - public bool extraAccessoryML = false; - public bool eCore = false; - + public bool pHeart = false; - + public bool cShard = false; - + public bool mFruit = false; - + public bool bOrange = false; - + public bool eBerry = false; - + public bool dFruit = false; - public bool revJamDrop = false; + public bool revJamDrop = false; - public bool rageBoostOne = false; + public bool rageBoostOne = false; - public bool rageBoostTwo = false; + public bool rageBoostTwo = false; - public bool rageBoostThree = false; + public bool rageBoostThree = false; - public bool adrenalineBoostOne = false; + public bool adrenalineBoostOne = false; - public bool adrenalineBoostTwo = false; + public bool adrenalineBoostTwo = false; - public bool adrenalineBoostThree = false; - #endregion + public bool adrenalineBoostThree = false; + #endregion - #region AccessoryStuff - public bool fasterMeleeLevel = false; + #region AccessoryStuff + public bool fasterMeleeLevel = false; - public bool fasterRangedLevel = false; + public bool fasterRangedLevel = false; - public bool fasterMagicLevel = false; + public bool fasterMagicLevel = false; - public bool fasterSummonLevel = false; + public bool fasterSummonLevel = false; - public bool fasterRogueLevel = false; + public bool fasterRogueLevel = false; - public bool dodgeScarf = false; + public bool rBrain = false; - public bool badgeOfBravery = false; + public bool bloodyWormTooth = false; - public bool scarfCooldown = false; + public bool rampartOfDeities = false; + + public bool vexation = false; + + public bool fBulwark = false; + + public bool dodgeScarf = false; + + public bool badgeOfBravery = false; + + public bool scarfCooldown = false; + + public bool cryogenSoul = false; - public bool cryogenSoul = false; - public bool yInsignia = false; - + public bool eGauntlet = false; - + public bool eTalisman = false; - public bool statisBeltOfCurses = false; + public bool statisBeltOfCurses = false; - public bool elysianAegis = false; + public bool elysianAegis = false; - public bool elysianGuard = false; + public bool elysianGuard = false; - public bool nCore = false; + public bool nCore = false; - public bool abyssalDivingSuitPlates = false; + public bool abyssalDivingSuitPlates = false; - public bool abyssalDivingSuitCooldown = false; + public bool abyssalDivingSuitCooldown = false; - public int abyssalDivingSuitPlateHits = 0; + public int abyssalDivingSuitPlateHits = 0; - public bool sirenWaterBuff = false; + public bool sirenWaterBuff = false; - public bool sirenIce = false; + public bool sirenIce = false; - public bool sirenIceCooldown = false; + public bool sirenIceCooldown = false; - public bool aSpark = false; + public bool aSpark = false; - public bool aBulwark = false; + public bool aBulwark = false; - public bool dAmulet = false; + public bool dAmulet = false; - public bool fCarapace = false; + public bool fCarapace = false; - public bool gShell = false; + public bool gShell = false; - public bool absorber = false; + public bool absorber = false; - public bool aAmpoule = false; + public bool aAmpoule = false; - public bool pAmulet = false; + public bool pAmulet = false; - public bool fBarrier = false; + public bool fBarrier = false; - public bool aBrain = false; + public bool aBrain = false; - public bool lol = false; + public bool lol = false; - public bool raiderTalisman = false; + public bool raiderTalisman = false; - public int raiderStack = 0; + public int raiderStack = 0; - public bool sGenerator = false; + public bool sGenerator = false; - public bool sDefense = false; + public bool sDefense = false; - public bool sPower = false; + public bool sPower = false; - public bool sRegen = false; + public bool sRegen = false; - public bool IBoots = false; + public bool IBoots = false; - public bool elysianFire = false; + public bool elysianFire = false; - public bool sTracers = false; + public bool sTracers = false; - public bool eTracers = false; + public bool eTracers = false; - public bool cTracers = false; + public bool cTracers = false; - public bool frostFlare = false; + public bool frostFlare = false; - public bool beeResist = false; + public bool beeResist = false; - public bool uberBees = false; + public bool uberBees = false; - public bool projRef = false; + public bool projRef = false; - public bool nanotech = false; + public bool nanotech = false; - public bool eQuiver = false; + public bool eQuiver = false; - public bool shadowMinions = false; + public bool shadowMinions = false; - public bool tearMinions = false; + public bool tearMinions = false; - public bool alchFlask = false; + public bool alchFlask = false; - public bool community = false; + public bool community = false; - public bool fleshTotem = false; + public bool fleshTotem = false; - public int fleshTotemCooldown = 0; + public int fleshTotemCooldown = 0; - public bool bloodPact = false; + public bool bloodPact = false; - public bool bloodflareCore = false; + public bool bloodflareCore = false; - public bool coreOfTheBloodGod = false; + public bool coreOfTheBloodGod = false; - public bool elementalHeart = false; + public bool elementalHeart = false; - public bool crownJewel = false; + public bool crownJewel = false; - public bool celestialJewel = false; + public bool celestialJewel = false; - public bool astralArcanum = false; + public bool astralArcanum = false; - public bool harpyRing = false; + public bool harpyRing = false; - public bool ironBoots = false; + public bool ironBoots = false; - public bool depthCharm = false; + public bool depthCharm = false; - public bool anechoicPlating = false; + public bool anechoicPlating = false; - public bool jellyfishNecklace = false; + public bool jellyfishNecklace = false; - public bool abyssalAmulet = false; + public bool abyssalAmulet = false; - public bool lumenousAmulet = false; + public bool lumenousAmulet = false; - public bool reaperToothNecklace = false; + public bool reaperToothNecklace = false; - public bool aquaticEmblem = false; + public bool aquaticEmblem = false; - public bool darkSunRing = false; + public bool darkSunRing = false; - public bool calamityRing = false; + public bool calamityRing = false; - public bool eArtifact = false; + public bool eArtifact = false; - public bool dArtifact = false; + public bool dArtifact = false; - public bool gArtifact = false; + public bool gArtifact = false; - public bool pArtifact = false; - #endregion + public bool pArtifact = false; - #region ArmorSetStuff - public bool victideSet = false; + public bool giantPearl = false; - public bool aeroSet = false; + public bool normalityRelocator = false; + #endregion + + #region ArmorSetStuff + public bool victideSet = false; + + public bool aeroSet = false; + + public bool statigelSet = false; - public bool statigelSet = false; - public bool tarraSet = false; - public bool tarraMelee = false; + public bool tarraMelee = false; - public bool tarraDefense = false; + public bool tarraDefense = false; - public int tarraCooldown = 0; + public int tarraCooldown = 0; - public int tarraDefenseTime = 600; + public int tarraDefenseTime = 600; - public bool tarraMage = false; + public bool tarraMage = false; - public int tarraMageHealCooldown = 0; + public int tarraMageHealCooldown = 0; - public int tarraCrits = 0; + public int tarraCrits = 0; - public bool tarraRanged = false; + public bool tarraRanged = false; - public bool tarraThrowing = false; + public bool tarraThrowing = false; - public int tarraThrowingCrits = 0; + public int tarraThrowingCrits = 0; - public int tarraThrowingCritTimer = 0; + public int tarraThrowingCritTimer = 0; + + public bool tarraSummon = false; - public bool tarraSummon = false; - public bool bloodflareSet = false; - public bool bloodflareMelee = false; + public bool bloodflareMelee = false; - public int bloodflareMeleeHits = 0; + public int bloodflareMeleeHits = 0; - public int bloodflareFrenzyTimer = 0; + public int bloodflareFrenzyTimer = 0; - public int bloodflareFrenzyCooldown = 0; + public int bloodflareFrenzyCooldown = 0; - public bool bloodflareRanged = false; + public bool bloodflareRanged = false; - public int bloodflareRangedCooldown = 0; + public int bloodflareRangedCooldown = 0; - public bool bloodflareThrowing = false; + public bool bloodflareThrowing = false; - public bool bloodflareMage = false; + public bool bloodflareMage = false; - public int bloodflareMageCooldown = 0; + public int bloodflareMageCooldown = 0; - public bool bloodflareSummon = false; + public bool bloodflareSummon = false; + + public int bloodflareSummonTimer = 0; - public int bloodflareSummonTimer = 0; - public bool godSlayer = false; - + public bool godSlayerDamage = false; - public bool godSlayerMage = false; + public bool godSlayerMage = false; - public bool godSlayerRanged = false; + public bool godSlayerRanged = false; - public bool godSlayerThrowing = false; + public bool godSlayerThrowing = false; - public bool godSlayerSummon = false; + public bool godSlayerSummon = false; - public float godSlayerDmg; + public float godSlayerDmg; + + public bool godSlayerReflect = false; - public bool godSlayerReflect = false; - public bool godSlayerCooldown = false; - + public bool ataxiaBolt = false; - + public bool ataxiaFire = false; - + public bool ataxiaVolley = false; - + public bool ataxiaBlaze = false; - + public bool daedalusAbsorb = false; - + public bool daedalusShard = false; - + public bool reaverSpore = false; - + public bool reaverDoubleTap = false; - public bool flamethrowerBoost = false; + public bool flamethrowerBoost = false; - public bool shadeRegen = false; + public bool shadeRegen = false; - public bool shadowSpeed = false; + public bool shadowSpeed = false; - public bool dsSetBonus = false; + public bool dsSetBonus = false; - public bool auricBoost = false; + public bool auricBoost = false; - public bool daedalusReflect = false; + public bool daedalusReflect = false; - public bool daedalusSplit = false; + public bool daedalusSplit = false; - public bool reaverBlast = false; + public bool reaverBlast = false; - public bool reaverBurst = false; + public bool reaverBurst = false; - public bool astralStarRain = false; + public bool astralStarRain = false; - public int astralStarRainCooldown = 0; + public int astralStarRainCooldown = 0; - public float ataxiaDmg; + public float ataxiaDmg; - public bool ataxiaMage = false; + public bool ataxiaMage = false; - public bool ataxiaGeyser = false; + public bool ataxiaGeyser = false; - public float xerocDmg; + public float xerocDmg; - public bool xerocSet = false; + public bool xerocSet = false; - public bool silvaSet = false; + public bool silvaSet = false; - public bool silvaMelee = false; + public bool silvaMelee = false; - public bool silvaRanged = false; + public bool silvaRanged = false; - public bool silvaThrowing = false; + public bool silvaThrowing = false; - public bool silvaMage = false; + public bool silvaMage = false; - public bool silvaSummon = false; + public bool silvaSummon = false; - public bool hasSilvaEffect = false; + public bool hasSilvaEffect = false; - public int silvaCountdown = 600; + public int silvaCountdown = 600; - public int silvaHitCounter = 0; + public int silvaHitCounter = 0; - public bool auricSet = false; + public bool auricSet = false; - public bool omegaBlueChestplate = false; + public bool omegaBlueChestplate = false; - public bool omegaBlueSet = false; + public bool omegaBlueSet = false; - public bool omegaBlueHentai = false; + public bool omegaBlueHentai = false; - public int omegaBlueCooldown = 0; - #endregion + public int omegaBlueCooldown = 0; - #region DebuffStuff - public bool aCrunch = false; + public bool molluskSet = false; + #endregion + + #region DebuffStuff + public bool lethalLavaBurn = false; + + public bool aCrunch = false; + + public bool NOU = false; - public bool NOU = false; - public bool hAttack = false; - + public bool horror = false; - + public bool irradiated = false; - + public bool bFlames = false; - + public bool aFlames = false; - + public bool gsInferno = false; - + public bool pFlames = false; - + public bool hFlames = false; - public bool hInferno = false; - + public bool hInferno = false; + public bool gState = false; - + public bool bBlood = false; - public bool eGravity = false; + public bool eGravity = false; - public bool weakPetrification = false; + public bool weakPetrification = false; - public bool vHex = false; + public bool vHex = false; - public bool eGrav = false; + public bool eGrav = false; - public bool warped = false; + public bool warped = false; - public bool marked = false; + public bool marked = false; - public bool cDepth = false; + public bool cDepth = false; - public bool fishAlert = false; + public bool fishAlert = false; - public bool bOut = false; - #endregion + public bool bOut = false; + + public bool clamity = false; + #endregion + + #region BuffStuff + public bool rRage = false; - #region BuffStuff - public bool rRage = false; - public bool tRegen = false; - + public bool xRage = false; - + public bool xWrath = false; - + public bool graxDefense = false; - public bool sMeleeBoost = false; + public bool sMeleeBoost = false; - public bool tFury = false; + public bool tFury = false; - public bool cadence = false; + public bool cadence = false; - public bool omniscience = false; + public bool omniscience = false; - public bool zerg = false; + public bool zerg = false; - public bool zen = false; + public bool zen = false; - public bool yPower = false; + public bool yPower = false; - public bool aWeapon = false; + public bool aWeapon = false; - public bool tScale = false; + public bool tScale = false; - public bool fabsolVodka = false; + public bool fabsolVodka = false; - public bool mushy = false; + public bool mushy = false; - public bool molten = false; + public bool molten = false; - public bool shellBoost = false; + public bool shellBoost = false; - public bool cFreeze = false; + public bool cFreeze = false; - public bool invincible = false; + public bool invincible = false; - public bool shine = false; + public bool shine = false; - public bool anechoicCoating = false; + public bool anechoicCoating = false; - public bool enraged = false; + public bool enraged = false; - public int revivifyTimer = 0; + public int revivifyTimer = 0; - public bool permafrostsConcoction; + public bool permafrostsConcoction; - public bool vodka = false; + public bool vodka = false; - public bool redWine = false; + public bool redWine = false; - public bool grapeBeer = false; + public bool grapeBeer = false; - public bool moonshine = false; + public bool moonshine = false; - public bool rum = false; + public bool rum = false; - public bool whiskey = false; + public bool whiskey = false; - public bool fireball = false; + public bool fireball = false; - public bool everclear = false; + public bool everclear = false; - public bool bloodyMary = false; + public bool bloodyMary = false; - public bool tequila = false; + public bool tequila = false; - public bool caribbeanRum = false; + public bool caribbeanRum = false; - public bool cinnamonRoll = false; + public bool cinnamonRoll = false; - public bool tequilaSunrise = false; + public bool tequilaSunrise = false; - public bool margarita = false; + public bool margarita = false; - public bool starBeamRye = false; + public bool starBeamRye = false; - public bool screwdriver = false; + public bool screwdriver = false; - public bool moscowMule = false; + public bool moscowMule = false; - public bool whiteWine = false; + public bool whiteWine = false; - public bool evergreenGin = false; - #endregion + public bool evergreenGin = false; - #region SummonStuff - public bool mWorm = false; + public bool tranquilityCandle = false; - public bool iClasper = false; + public bool chaosCandle = false; - public bool herring = false; + public bool purpleCandle = false; + + public bool blueCandle = false; + + public bool pinkCandle = false; + + public int pinkCandleTimer = 60; + + public bool yellowCandle = false; + + public bool trippy = false; + + public bool amidiasBlessing = false; + #endregion + + #region SummonStuff + public bool mWorm = false; + + public bool iClasper = false; + + public bool herring = false; + + public bool calamari = false; - public bool calamari = false; - public bool cEyes = false; - + public bool cSlime = false; - + public bool cSlime2 = false; - + public bool bStar = false; - public bool aStar = false; - + public bool aStar = false; + public bool SP = false; - + public bool dCreeper = false; - + public bool bClot = false; - + public bool eAxe = false; - + public bool SPG = false; - + public bool aChicken = false; - + public bool cLamp = false; - + public bool pGuy = false; - public bool gDefense = false; + public bool gDefense = false; - public bool gOffense = false; + public bool gOffense = false; - public bool gHealer = false; + public bool gHealer = false; + + public bool cEnergy = false; - public bool cEnergy = false; - public bool sWaifu = false; - + public bool dWaifu = false; - + public bool cWaifu = false; - + public bool bWaifu = false; - + public bool slWaifu = false; - + public bool fClump = false; - + public bool rDevil = false; - + public bool aValkyrie = false; - public bool sCrystal = false; - + public bool sCrystal = false; + public bool sGod = false; - public bool sandnado = false; - + public bool sandnado = false; + public bool vUrchin = false; - + public bool cSpirit = false; - + public bool rOrb = false; - + public bool dCrystal = false; - + public bool sandWaifu = false; - + public bool sandBoobWaifu = false; - + public bool cloudWaifu = false; - + public bool brimstoneWaifu = false; - + public bool sirenWaifu = false; - public bool allWaifus = false; - + public bool allWaifus = false; + public bool fungalClump = false; - + public bool redDevil = false; - + public bool valkyrie = false; - + public bool slimeGod = false; - + public bool urchin = false; - + public bool chaosSpirit = false; - + public bool reaverOrb = false; - + public bool daedalusCrystal = false; - public int healCounter = 300; - #endregion + public int healCounter = 300; + + public bool shellfish = false; + + public bool hCrab = false; + #endregion + + #region BiomeStuff + public bool ZoneCalamity = false; - #region BiomeStuff - public bool ZoneCalamity = false; - public bool ZoneAstral = false; - public bool ZoneGreatSea = false; + public bool ZoneSunkenSea = false; - public bool ZoneSulphur = false; + public bool ZoneSulphur = false; - public bool ZoneAbyss = false; + public bool ZoneAbyss = false; - public bool ZoneAbyssLayer1 = false; + public bool ZoneAbyssLayer1 = false; - public bool ZoneAbyssLayer2 = false; + public bool ZoneAbyssLayer2 = false; - public bool ZoneAbyssLayer3 = false; + public bool ZoneAbyssLayer3 = false; - public bool ZoneAbyssLayer4 = false; + public bool ZoneAbyssLayer4 = false; - public int abyssBreathCD; - #endregion + public int abyssBreathCD; + #endregion - #region TransformationStuff - public bool abyssalDivingSuitPrevious; + #region TransformationStuff + public bool abyssalDivingSuitPrevious; - public bool abyssalDivingSuit; + public bool abyssalDivingSuit; - public bool abyssalDivingSuitHide; + public bool abyssalDivingSuitHide; - public bool abyssalDivingSuitForce; + public bool abyssalDivingSuitForce; - public bool abyssalDivingSuitPower; + public bool abyssalDivingSuitPower; - public bool sirenBoobsPrevious; + public bool sirenBoobsPrevious; - public bool sirenBoobs; + public bool sirenBoobs; - public bool sirenBoobsHide; + public bool sirenBoobsHide; - public bool sirenBoobsForce; + public bool sirenBoobsForce; - public bool sirenBoobsPower; + public bool sirenBoobsPower; - public bool sirenBoobsAltPrevious; + public bool sirenBoobsAltPrevious; - public bool sirenBoobsAlt; + public bool sirenBoobsAlt; - public bool sirenBoobsAltHide; + public bool sirenBoobsAltHide; - public bool sirenBoobsAltForce; + public bool sirenBoobsAltForce; - public bool sirenBoobsAltPower; + public bool sirenBoobsAltPower; - public bool snowmanPrevious; + public bool snowmanPrevious; - public bool snowman; + public bool snowman; - public bool snowmanHide; + public bool snowmanHide; - public bool snowmanForce; + public bool snowmanForce; - public bool snowmanNoseless; + public bool snowmanNoseless; - public bool snowmanPower; - #endregion - #endregion + public bool snowmanPower; + #endregion + #endregion - #region SavingAndLoading - public override void Initialize() + #region SavingAndLoading + public override void Initialize() { extraAccessoryML = false; eCore = false; @@ -831,17 +883,17 @@ namespace CalamityMod dFruit = false; pHeart = false; cShard = false; - revJamDrop = false; - rageBoostOne = false; - rageBoostTwo = false; - rageBoostThree = false; - adrenalineBoostOne = false; - adrenalineBoostTwo = false; - adrenalineBoostThree = false; - drawBossHPBar = true; - shouldDrawSmallText = true; + revJamDrop = false; + rageBoostOne = false; + rageBoostTwo = false; + rageBoostThree = false; + adrenalineBoostOne = false; + adrenalineBoostTwo = false; + adrenalineBoostThree = false; + drawBossHPBar = true; + shouldDrawSmallText = true; } - + public override TagCompound Save() { var boost = new List(); @@ -853,17 +905,17 @@ namespace CalamityMod if (dFruit) boost.Add("dragonFruit"); if (pHeart) boost.Add("phantomHeart"); if (cShard) boost.Add("cometShard"); - if (revJamDrop) boost.Add("revJam"); - if (rageBoostOne) boost.Add("rageOne"); - if (rageBoostTwo) boost.Add("rageTwo"); - if (rageBoostThree) boost.Add("rageThree"); - if (adrenalineBoostOne) boost.Add("adrenalineOne"); - if (adrenalineBoostTwo) boost.Add("adrenalineTwo"); - if (adrenalineBoostThree) boost.Add("adrenalineThree"); - if (drawBossHPBar) boost.Add("bossHPBar"); - if (shouldDrawSmallText) boost.Add("drawSmallText"); + if (revJamDrop) boost.Add("revJam"); + if (rageBoostOne) boost.Add("rageOne"); + if (rageBoostTwo) boost.Add("rageTwo"); + if (rageBoostThree) boost.Add("rageThree"); + if (adrenalineBoostOne) boost.Add("adrenalineOne"); + if (adrenalineBoostTwo) boost.Add("adrenalineTwo"); + if (adrenalineBoostThree) boost.Add("adrenalineThree"); + if (drawBossHPBar) boost.Add("bossHPBar"); + if (shouldDrawSmallText) boost.Add("drawSmallText"); - return new TagCompound + return new TagCompound { { "boost", boost @@ -871,45 +923,45 @@ namespace CalamityMod { "stress", stress }, - { - "adrenaline", adrenaline - }, - { - "sCalDeathCount", sCalDeathCount - }, - { - "sCalKillCount", sCalKillCount - }, - { - "meleeLevel", meleeLevel - }, - { - "exactMeleeLevel", exactMeleeLevel - }, - { - "rangedLevel", rangedLevel - }, - { - "exactRangedLevel", exactRangedLevel - }, - { - "magicLevel", magicLevel - }, - { - "exactMagicLevel", exactMagicLevel - }, - { - "summonLevel", summonLevel - }, - { - "exactSummonLevel", exactSummonLevel - }, - { - "rogueLevel", rogueLevel - }, - { - "exactRogueLevel", exactRogueLevel - } + { + "adrenaline", adrenaline + }, + { + "sCalDeathCount", sCalDeathCount + }, + { + "sCalKillCount", sCalKillCount + }, + { + "meleeLevel", meleeLevel + }, + { + "exactMeleeLevel", exactMeleeLevel + }, + { + "rangedLevel", rangedLevel + }, + { + "exactRangedLevel", exactRangedLevel + }, + { + "magicLevel", magicLevel + }, + { + "exactMagicLevel", exactMagicLevel + }, + { + "summonLevel", summonLevel + }, + { + "exactSummonLevel", exactSummonLevel + }, + { + "rogueLevel", rogueLevel + }, + { + "exactRogueLevel", exactRogueLevel + } }; } @@ -924,53 +976,53 @@ namespace CalamityMod dFruit = boost.Contains("dragonFruit"); pHeart = boost.Contains("phantomHeart"); cShard = boost.Contains("cometShard"); - revJamDrop = boost.Contains("revJam"); - rageBoostOne = boost.Contains("rageOne"); - rageBoostTwo = boost.Contains("rageTwo"); - rageBoostThree = boost.Contains("rageThree"); - adrenalineBoostOne = boost.Contains("adrenalineOne"); - adrenalineBoostTwo = boost.Contains("adrenalineTwo"); - adrenalineBoostThree = boost.Contains("adrenalineThree"); - drawBossHPBar = boost.Contains("bossHPBar"); - shouldDrawSmallText = boost.Contains("drawSmallText"); + revJamDrop = boost.Contains("revJam"); + rageBoostOne = boost.Contains("rageOne"); + rageBoostTwo = boost.Contains("rageTwo"); + rageBoostThree = boost.Contains("rageThree"); + adrenalineBoostOne = boost.Contains("adrenalineOne"); + adrenalineBoostTwo = boost.Contains("adrenalineTwo"); + adrenalineBoostThree = boost.Contains("adrenalineThree"); + drawBossHPBar = boost.Contains("bossHPBar"); + shouldDrawSmallText = boost.Contains("drawSmallText"); - stress = tag.GetInt("stress"); - adrenaline = tag.GetInt("adrenaline"); - sCalDeathCount = tag.GetInt("sCalDeathCount"); - sCalKillCount = tag.GetInt("sCalKillCount"); + stress = tag.GetInt("stress"); + adrenaline = tag.GetInt("adrenaline"); + sCalDeathCount = tag.GetInt("sCalDeathCount"); + sCalKillCount = tag.GetInt("sCalKillCount"); - meleeLevel = tag.GetInt("meleeLevel"); - rangedLevel = tag.GetInt("rangedLevel"); - magicLevel = tag.GetInt("magicLevel"); - summonLevel = tag.GetInt("summonLevel"); - rogueLevel = tag.GetInt("rogueLevel"); - exactMeleeLevel = tag.GetInt("exactMeleeLevel"); - exactRangedLevel = tag.GetInt("exactRangedLevel"); - exactMagicLevel = tag.GetInt("exactMagicLevel"); - exactSummonLevel = tag.GetInt("exactSummonLevel"); - exactRogueLevel = tag.GetInt("exactRogueLevel"); - } + meleeLevel = tag.GetInt("meleeLevel"); + rangedLevel = tag.GetInt("rangedLevel"); + magicLevel = tag.GetInt("magicLevel"); + summonLevel = tag.GetInt("summonLevel"); + rogueLevel = tag.GetInt("rogueLevel"); + exactMeleeLevel = tag.GetInt("exactMeleeLevel"); + exactRangedLevel = tag.GetInt("exactRangedLevel"); + exactMagicLevel = tag.GetInt("exactMagicLevel"); + exactSummonLevel = tag.GetInt("exactSummonLevel"); + exactRogueLevel = tag.GetInt("exactRogueLevel"); + } public override void LoadLegacy(BinaryReader reader) { int loadVersion = reader.ReadInt32(); stress = reader.ReadInt32(); - adrenaline = reader.ReadInt32(); - sCalDeathCount = reader.ReadInt32(); - sCalKillCount = reader.ReadInt32(); + adrenaline = reader.ReadInt32(); + sCalDeathCount = reader.ReadInt32(); + sCalKillCount = reader.ReadInt32(); - meleeLevel = reader.ReadInt32(); - rangedLevel = reader.ReadInt32(); - magicLevel = reader.ReadInt32(); - summonLevel = reader.ReadInt32(); - rogueLevel = reader.ReadInt32(); - exactMeleeLevel = reader.ReadInt32(); - exactRangedLevel = reader.ReadInt32(); - exactMagicLevel = reader.ReadInt32(); - exactSummonLevel = reader.ReadInt32(); - exactRogueLevel = reader.ReadInt32(); + meleeLevel = reader.ReadInt32(); + rangedLevel = reader.ReadInt32(); + magicLevel = reader.ReadInt32(); + summonLevel = reader.ReadInt32(); + rogueLevel = reader.ReadInt32(); + exactMeleeLevel = reader.ReadInt32(); + exactRangedLevel = reader.ReadInt32(); + exactMagicLevel = reader.ReadInt32(); + exactSummonLevel = reader.ReadInt32(); + exactRogueLevel = reader.ReadInt32(); - if (loadVersion == 0) + if (loadVersion == 0) { BitsByte flags = reader.ReadByte(); extraAccessoryML = flags[0]; @@ -982,112 +1034,121 @@ namespace CalamityMod pHeart = flags[6]; cShard = flags[7]; - BitsByte flags2 = reader.ReadByte(); - revJamDrop = flags2[0]; - rageBoostOne = flags2[1]; - rageBoostTwo = flags2[2]; - rageBoostThree = flags2[3]; - adrenalineBoostOne = flags2[4]; - adrenalineBoostTwo = flags2[5]; - adrenalineBoostThree = flags2[6]; - drawBossHPBar = flags2[7]; + BitsByte flags2 = reader.ReadByte(); + revJamDrop = flags2[0]; + rageBoostOne = flags2[1]; + rageBoostTwo = flags2[2]; + rageBoostThree = flags2[3]; + adrenalineBoostOne = flags2[4]; + adrenalineBoostTwo = flags2[5]; + adrenalineBoostThree = flags2[6]; + drawBossHPBar = flags2[7]; - BitsByte flags3 = reader.ReadByte(); - shouldDrawSmallText = flags3[0]; - } + BitsByte flags3 = reader.ReadByte(); + shouldDrawSmallText = flags3[0]; + } else { ErrorLogger.Log("CalamityMod: Unknown loadVersion: " + loadVersion); } } - #endregion + #endregion - #region ResetEffects - public override void ResetEffects() + #region ResetEffects + public override void ResetEffects() { if (extraAccessoryML && player.extraAccessory && (Main.expertMode || Main.gameMenu)) { player.extraAccessorySlots = 2; } - runCheck = 0; + rogueStealthMax = 0f; + dashMod = 0; - alcoholPoisonLevel = 0; + alcoholPoisonLevel = 0; - leviPet = false; - sirenPet = false; - fox = false; - chibii = false; - brimling = false; - bearPet = false; - fab = false; + leviPet = false; + sirenPet = false; + fox = false; + chibii = false; + brimling = false; + bearPet = false; + trashMan = false; + fab = false; - abyssalDivingSuitPlates = false; - abyssalDivingSuitCooldown = false; + abyssalDivingSuitPlates = false; + abyssalDivingSuitCooldown = false; - sirenWaterBuff = false; - sirenIce = false; - sirenIceCooldown = false; + sirenWaterBuff = false; + sirenIce = false; + sirenIceCooldown = false; - draedonsHeart = false; - draedonsStressGain = false; + draedonsHeart = false; + draedonsStressGain = false; afflicted = false; affliction = false; afflictedBuff = false; - fasterMeleeLevel = false; - fasterRangedLevel = false; - fasterMagicLevel = false; - fasterSummonLevel = false; - fasterRogueLevel = false; + fasterMeleeLevel = false; + fasterRangedLevel = false; + fasterMagicLevel = false; + fasterSummonLevel = false; + fasterRogueLevel = false; dodgeScarf = false; - scarfCooldown = false; + scarfCooldown = false; - elysianAegis = false; + elysianAegis = false; nCore = false; - godSlayer = false; - godSlayerDamage = false; - godSlayerMage = false; - godSlayerRanged = false; - godSlayerThrowing = false; - godSlayerSummon = false; + godSlayer = false; + godSlayerDamage = false; + godSlayerMage = false; + godSlayerRanged = false; + godSlayerThrowing = false; + godSlayerSummon = false; godSlayerReflect = false; godSlayerCooldown = false; silvaSet = false; - silvaMelee = false; - silvaRanged = false; - silvaThrowing = false; - silvaMage = false; - silvaSummon = false; + silvaMelee = false; + silvaRanged = false; + silvaThrowing = false; + silvaMage = false; + silvaSummon = false; auricSet = false; - auricBoost = false; + auricBoost = false; - omegaBlueChestplate = false; - omegaBlueSet = false; - omegaBlueHentai = false; + omegaBlueChestplate = false; + omegaBlueSet = false; + omegaBlueHentai = false; - ataxiaBolt = false; + molluskSet = false; + + ataxiaBolt = false; ataxiaGeyser = false; - ataxiaFire = false; - ataxiaVolley = false; - ataxiaBlaze = false; - ataxiaMage = false; + ataxiaFire = false; + ataxiaVolley = false; + ataxiaBlaze = false; + ataxiaMage = false; + + shadeRegen = false; - shadeRegen = false; - flamethrowerBoost = false; shadowSpeed = false; - dsSetBonus = false; + dsSetBonus = false; - badgeOfBravery = false; - aSpark = false; + rBrain = false; + bloodyWormTooth = false; + rampartOfDeities = false; + vexation = false; + fBulwark = false; + badgeOfBravery = false; + aSpark = false; aBulwark = false; dAmulet = false; fCarapace = false; @@ -1103,92 +1164,95 @@ namespace CalamityMod projRef = false; nanotech = false; eQuiver = false; - cryogenSoul = false; - yInsignia = false; - eGauntlet = false; - eTalisman = false; - statisBeltOfCurses = false; - heartOfDarkness = false; - shadowMinions = false; - tearMinions = false; - alchFlask = false; - community = false; - stressPills = false; - laudanum = false; - fleshTotem = false; - bloodPact = false; - bloodflareCore = false; - coreOfTheBloodGod = false; - elementalHeart = false; - crownJewel = false; - celestialJewel = false; - astralArcanum = false; - harpyRing = false; - darkSunRing = false; - calamityRing = false; - eArtifact = false; - dArtifact = false; - gArtifact = false; - pArtifact = false; - lol = false; - raiderTalisman = false; - sGenerator = false; - sDefense = false; - sRegen = false; - sPower = false; - IBoots = false; - elysianFire = false; - sTracers = false; - eTracers = false; - cTracers = false; + cryogenSoul = false; + yInsignia = false; + eGauntlet = false; + eTalisman = false; + statisBeltOfCurses = false; + heartOfDarkness = false; + shadowMinions = false; + tearMinions = false; + alchFlask = false; + community = false; + stressPills = false; + laudanum = false; + fleshTotem = false; + bloodPact = false; + bloodflareCore = false; + coreOfTheBloodGod = false; + elementalHeart = false; + crownJewel = false; + celestialJewel = false; + astralArcanum = false; + harpyRing = false; + darkSunRing = false; + calamityRing = false; + eArtifact = false; + dArtifact = false; + gArtifact = false; + pArtifact = false; + giantPearl = false; + normalityRelocator = false; + lol = false; + raiderTalisman = false; + sGenerator = false; + sDefense = false; + sRegen = false; + sPower = false; + IBoots = false; + elysianFire = false; + sTracers = false; + eTracers = false; + cTracers = false; - daedalusReflect = false; + daedalusReflect = false; daedalusSplit = false; daedalusAbsorb = false; daedalusShard = false; reaverSpore = false; reaverDoubleTap = false; - reaverBlast = false; - reaverBurst = false; + reaverBlast = false; + reaverBurst = false; - ironBoots = false; - depthCharm = false; - anechoicPlating = false; - jellyfishNecklace = false; - abyssalAmulet = false; - lumenousAmulet = false; - reaperToothNecklace = false; - aquaticEmblem = false; + ironBoots = false; + depthCharm = false; + anechoicPlating = false; + jellyfishNecklace = false; + abyssalAmulet = false; + lumenousAmulet = false; + reaperToothNecklace = false; + aquaticEmblem = false; astralStarRain = false; - - victideSet = false; - aeroSet = false; + victideSet = false; - statigelSet = false; + aeroSet = false; + + statigelSet = false; tarraSet = false; - tarraMelee = false; - tarraMage = false; - tarraRanged = false; - tarraThrowing = false; - tarraSummon = false; + tarraMelee = false; + tarraMage = false; + tarraRanged = false; + tarraThrowing = false; + tarraSummon = false; bloodflareSet = false; - bloodflareMelee = false; - bloodflareRanged = false; - bloodflareThrowing = false; - bloodflareMage = false; - bloodflareSummon = false; + bloodflareMelee = false; + bloodflareRanged = false; + bloodflareThrowing = false; + bloodflareMage = false; + bloodflareSummon = false; xerocSet = false; - NOU = false; - weakPetrification = false; + NOU = false; + weakPetrification = false; - aCrunch = false; + lethalLavaBurn = false; + aCrunch = false; hAttack = false; horror = false; irradiated = false; @@ -1197,21 +1261,22 @@ namespace CalamityMod gsInferno = false; pFlames = false; hFlames = false; - hInferno = false; + hInferno = false; gState = false; bBlood = false; - eGravity = false; - vHex = false; - eGrav = false; - warped = false; - marked = false; - cDepth = false; - fishAlert = false; - bOut = false; - enraged = false; - snowmanNoseless = false; + eGravity = false; + vHex = false; + eGrav = false; + warped = false; + marked = false; + cDepth = false; + fishAlert = false; + bOut = false; + clamity = false; + enraged = false; + snowmanNoseless = false; - rRage = false; + rRage = false; xRage = false; xWrath = false; graxDefense = false; @@ -1220,34 +1285,42 @@ namespace CalamityMod cadence = false; omniscience = false; zerg = false; - zen = false; - permafrostsConcoction = false; - vodka = false; - redWine = false; - grapeBeer = false; - moonshine = false; - rum = false; - whiskey = false; - fireball = false; - everclear = false; - bloodyMary = false; - tequila = false; - caribbeanRum = false; - cinnamonRoll = false; - tequilaSunrise = false; - margarita = false; - starBeamRye = false; - screwdriver = false; - moscowMule = false; - whiteWine = false; - evergreenGin = false; - yPower = false; + zen = false; + permafrostsConcoction = false; + vodka = false; + redWine = false; + grapeBeer = false; + moonshine = false; + rum = false; + whiskey = false; + fireball = false; + everclear = false; + bloodyMary = false; + tequila = false; + caribbeanRum = false; + cinnamonRoll = false; + tequilaSunrise = false; + margarita = false; + starBeamRye = false; + screwdriver = false; + moscowMule = false; + whiteWine = false; + evergreenGin = false; + tranquilityCandle = false; + chaosCandle = false; + purpleCandle = false; + blueCandle = false; + pinkCandle = false; + yellowCandle = false; + trippy = false; + amidiasBlessing = false; + yPower = false; aWeapon = false; tScale = false; fabsolVodka = false; - invincible = false; - shine = false; - anechoicCoating = false; + invincible = false; + shine = false; + anechoicCoating = false; mushy = false; molten = false; shellBoost = false; @@ -1255,14 +1328,14 @@ namespace CalamityMod tRegen = false; mWorm = false; - iClasper = false; - herring = false; - calamari = false; + iClasper = false; + herring = false; + calamari = false; cEyes = false; cSlime = false; cSlime2 = false; bStar = false; - aStar = false; + aStar = false; SP = false; dCreeper = false; bClot = false; @@ -1271,10 +1344,10 @@ namespace CalamityMod aChicken = false; cLamp = false; pGuy = false; - cEnergy = false; - gDefense = false; - gOffense = false; - gHealer = false; + cEnergy = false; + gDefense = false; + gOffense = false; + gHealer = false; sWaifu = false; dWaifu = false; cWaifu = false; @@ -1283,9 +1356,9 @@ namespace CalamityMod fClump = false; rDevil = false; aValkyrie = false; - sCrystal = false; + sCrystal = false; sGod = false; - sandnado = false; + sandnado = false; vUrchin = false; cSpirit = false; rOrb = false; @@ -1295,7 +1368,7 @@ namespace CalamityMod cloudWaifu = false; brimstoneWaifu = false; sirenWaifu = false; - allWaifus = false; + allWaifus = false; fungalClump = false; redDevil = false; valkyrie = false; @@ -1304,38 +1377,44 @@ namespace CalamityMod chaosSpirit = false; reaverOrb = false; daedalusCrystal = false; + shellfish = false; + hCrab = false; - abyssalDivingSuitPrevious = abyssalDivingSuit; - abyssalDivingSuit = abyssalDivingSuitHide = abyssalDivingSuitForce = abyssalDivingSuitPower = false; + abyssalDivingSuitPrevious = abyssalDivingSuit; + abyssalDivingSuit = abyssalDivingSuitHide = abyssalDivingSuitForce = abyssalDivingSuitPower = false; - sirenBoobsPrevious = sirenBoobs; - sirenBoobs = sirenBoobsHide = sirenBoobsForce = sirenBoobsPower = false; - sirenBoobsAltPrevious = sirenBoobsAlt; - sirenBoobsAlt = sirenBoobsAltHide = sirenBoobsAltForce = sirenBoobsAltPower = false; + sirenBoobsPrevious = sirenBoobs; + sirenBoobs = sirenBoobsHide = sirenBoobsForce = sirenBoobsPower = false; + sirenBoobsAltPrevious = sirenBoobsAlt; + sirenBoobsAlt = sirenBoobsAltHide = sirenBoobsAltForce = sirenBoobsAltPower = false; - snowmanPrevious = snowman; - snowman = snowmanHide = snowmanForce = snowmanPower = false; + snowmanPrevious = snowman; + snowman = snowmanHide = snowmanForce = snowmanPower = false; - rageMode = false; - adrenalineMode = false; - } - #endregion + rageMode = false; + adrenalineMode = false; + } + #endregion - #region UpdateDead - public override void UpdateDead() + #region UpdateDead + public override void UpdateDead() { - #region Debuffs - stress = 0; - adrenaline = 0; - adrenalineMaxTimer = 180; - adrenalineDmgDown = 600; - adrenalineDmgMult = 1f; + #region Debuffs + stress = 0; + adrenaline = 0; + adrenalineMaxTimer = 300; + adrenalineDmgDown = 600; + adrenalineDmgMult = 1f; raiderStack = 0; - fleshTotemCooldown = 0; - astralStarRainCooldown = 0; - bloodflareMageCooldown = 0; - tarraMageHealCooldown = 0; - aCrunch = false; + fleshTotemCooldown = 0; + astralStarRainCooldown = 0; + bloodflareMageCooldown = 0; + tarraMageHealCooldown = 0; + ataraxiaDamageBoost = 0f; + ataraxiaDamageBoostCooldown = 0; + ataraxiaDamageBoostCancelTimer = 1200; + lethalLavaBurn = false; + aCrunch = false; hAttack = false; horror = false; irradiated = false; @@ -1344,33 +1423,34 @@ namespace CalamityMod gsInferno = false; pFlames = false; hFlames = false; - hInferno = false; + hInferno = false; gState = false; bBlood = false; eGravity = false; vHex = false; eGrav = false; warped = false; - marked = false; - cDepth = false; - fishAlert = false; - bOut = false; - snowmanNoseless = false; - scarfCooldown = false; + marked = false; + cDepth = false; + fishAlert = false; + bOut = false; + clamity = false; + snowmanNoseless = false; + scarfCooldown = false; godSlayerCooldown = false; - abyssalDivingSuitCooldown = false; - abyssalDivingSuitPlateHits = 0; - sirenIceCooldown = false; - #endregion + abyssalDivingSuitCooldown = false; + abyssalDivingSuitPlateHits = 0; + sirenIceCooldown = false; + #endregion - #region Buffs - sDefense = false; - sRegen = false; - sPower = false; - fab = false; - abyssalDivingSuitPlates = false; - sirenWaterBuff = false; - sirenIce = false; + #region Buffs + sDefense = false; + sRegen = false; + sPower = false; + fab = false; + abyssalDivingSuitPlates = false; + sirenWaterBuff = false; + sirenIce = false; afflictedBuff = false; rRage = false; xRage = false; @@ -1381,70 +1461,80 @@ namespace CalamityMod cadence = false; omniscience = false; zerg = false; - zen = false; + zen = false; yPower = false; aWeapon = false; tScale = false; fabsolVodka = false; - invincible = false; - shine = false; - anechoicCoating = false; + invincible = false; + shine = false; + anechoicCoating = false; mushy = false; molten = false; - enraged = false; + enraged = false; shellBoost = false; cFreeze = false; tRegen = false; - rageMode = false; - adrenalineMode = false; - vodka = false; - redWine = false; - grapeBeer = false; - moonshine = false; - rum = false; - whiskey = false; - fireball = false; - everclear = false; - bloodyMary = false; - tequila = false; - caribbeanRum = false; - cinnamonRoll = false; - tequilaSunrise = false; - margarita = false; - starBeamRye = false; - screwdriver = false; - moscowMule = false; - whiteWine = false; - evergreenGin = false; - revivifyTimer = 0; - healCounter = 300; + rageMode = false; + adrenalineMode = false; + vodka = false; + redWine = false; + grapeBeer = false; + moonshine = false; + rum = false; + whiskey = false; + fireball = false; + everclear = false; + bloodyMary = false; + tequila = false; + caribbeanRum = false; + cinnamonRoll = false; + tequilaSunrise = false; + margarita = false; + starBeamRye = false; + screwdriver = false; + moscowMule = false; + whiteWine = false; + evergreenGin = false; + tranquilityCandle = false; + chaosCandle = false; + purpleCandle = false; + blueCandle = false; + pinkCandle = false; + pinkCandleTimer = 60; + yellowCandle = false; + trippy = false; + amidiasBlessing = false; + revivifyTimer = 0; + healCounter = 300; #endregion - + #region Armorbonuses flamethrowerBoost = false; shadowSpeed = false; godSlayer = false; godSlayerDamage = false; - godSlayerMage = false; - godSlayerRanged = false; - godSlayerThrowing = false; - godSlayerSummon = false; + godSlayerMage = false; + godSlayerRanged = false; + godSlayerThrowing = false; + godSlayerSummon = false; godSlayerReflect = false; auricBoost = false; silvaSet = false; - silvaMelee = false; - silvaRanged = false; - silvaThrowing = false; - silvaMage = false; - silvaSummon = false; - hasSilvaEffect = false; - silvaCountdown = 600; - silvaHitCounter = 0; + silvaMelee = false; + silvaRanged = false; + silvaThrowing = false; + silvaMage = false; + silvaSummon = false; + hasSilvaEffect = false; + silvaCountdown = 600; + silvaHitCounter = 0; auricSet = false; - omegaBlueChestplate = false; - omegaBlueSet = false; - omegaBlueCooldown = 0; - daedalusReflect = false; + omegaBlueChestplate = false; + omegaBlueSet = false; + omegaBlueCooldown = 0; + molluskSet = false; + daedalusReflect = false; daedalusSplit = false; daedalusAbsorb = false; daedalusShard = false; @@ -1461,178 +1551,176 @@ namespace CalamityMod ataxiaFire = false; ataxiaVolley = false; ataxiaBlaze = false; - victideSet = false; - aeroSet = false; - statigelSet = false; + victideSet = false; + aeroSet = false; + statigelSet = false; tarraSet = false; - tarraMelee = false; - tarraMage = false; - tarraRanged = false; - tarraThrowing = false; - tarraThrowingCrits = 0; - tarraThrowingCritTimer = 0; - tarraSummon = false; + tarraMelee = false; + tarraMage = false; + tarraRanged = false; + tarraThrowing = false; + tarraThrowingCrits = 0; + tarraThrowingCritTimer = 0; + tarraSummon = false; bloodflareSet = false; - bloodflareMelee = false; - bloodflareMeleeHits = 0; - bloodflareFrenzyTimer = 0; - bloodflareFrenzyCooldown = 0; - bloodflareRanged = false; - bloodflareRangedCooldown = 0; - bloodflareThrowing = false; - bloodflareMage = false; - bloodflareSummon = false; - bloodflareSummonTimer = 0; + bloodflareMelee = false; + bloodflareMeleeHits = 0; + bloodflareFrenzyTimer = 0; + bloodflareFrenzyCooldown = 0; + bloodflareRanged = false; + bloodflareRangedCooldown = 0; + bloodflareThrowing = false; + bloodflareMage = false; + bloodflareSummon = false; + bloodflareSummonTimer = 0; xerocSet = false; IBoots = false; elysianFire = false; elysianAegis = false; elysianGuard = false; - #endregion + #endregion - if (CalamityWorld.bossRushActive) - { - if (!CalamityGlobalNPC.AnyLivingPlayers()) - { - CalamityWorld.bossRushActive = false; - CalamityWorld.bossRushStage = 0; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.BossRushStage); - netMessage.Write(CalamityWorld.bossRushStage); - netMessage.Send(); - } - for (int doom = 0; doom < 200; doom++) - { - if (Main.npc[doom].active && Main.npc[doom].boss) - { - Main.npc[doom].active = false; - Main.npc[doom].netUpdate = true; - } - } - } - } - if (CalamityWorld.armageddon && !areThereAnyDamnBosses) - { - player.respawnTimer -= 5; - } - else if (player.respawnTimer > 300 && Main.expertMode) //600 normal 900 expert - { - player.respawnTimer--; - } - } - #endregion + if (CalamityWorld.bossRushActive) + { + if (!CalamityGlobalNPC.AnyLivingPlayers()) + { + CalamityWorld.bossRushActive = false; + CalamityWorld.bossRushStage = 0; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.BossRushStage); + netMessage.Write(CalamityWorld.bossRushStage); + netMessage.Send(); + } + for (int doom = 0; doom < 200; doom++) + { + if (Main.npc[doom].active && Main.npc[doom].boss) + { + Main.npc[doom].active = false; + Main.npc[doom].netUpdate = true; + } + } + } + } + if (CalamityWorld.armageddon && !areThereAnyDamnBosses) + { + player.respawnTimer -= 5; + } + else if (player.respawnTimer > 300 && Main.expertMode) //600 normal 900 expert + { + player.respawnTimer--; + } + } + #endregion - #region BiomeStuff - public override void UpdateBiomeVisuals() + #region BiomeStuff + public override void UpdateBiomeVisuals() { - Point point = player.Center.ToTileCoordinates(); - bool aboveGround = point.Y > Main.maxTilesY - 320; - bool overworld = player.ZoneOverworldHeight && (point.X < 380 || point.X > Main.maxTilesX - 380); - bool useNebula = NPC.AnyNPCs(mod.NPCType("DevourerofGodsHead")); + Point point = player.Center.ToTileCoordinates(); + bool aboveGround = point.Y > Main.maxTilesY - 320; + bool overworld = player.ZoneOverworldHeight && (point.X < 380 || point.X > Main.maxTilesX - 380); + bool useNebula = NPC.AnyNPCs(mod.NPCType("DevourerofGodsHead")); player.ManageSpecialBiomeVisuals("CalamityMod:DevourerofGodsHead", useNebula); - bool useNebulaS = NPC.AnyNPCs(mod.NPCType("DevourerofGodsHeadS")); - player.ManageSpecialBiomeVisuals("CalamityMod:DevourerofGodsHeadS", useNebulaS); - bool useBrimstone = NPC.AnyNPCs(mod.NPCType("CalamitasRun3")); + bool useNebulaS = NPC.AnyNPCs(mod.NPCType("DevourerofGodsHeadS")); + player.ManageSpecialBiomeVisuals("CalamityMod:DevourerofGodsHeadS", useNebulaS); + bool useBrimstone = NPC.AnyNPCs(mod.NPCType("CalamitasRun3")); player.ManageSpecialBiomeVisuals("CalamityMod:CalamitasRun3", useBrimstone); bool usePlague = NPC.AnyNPCs(mod.NPCType("PlaguebringerGoliath")); player.ManageSpecialBiomeVisuals("CalamityMod:PlaguebringerGoliath", usePlague); bool useFire = NPC.AnyNPCs(mod.NPCType("Yharon")); player.ManageSpecialBiomeVisuals("CalamityMod:Yharon", useFire); - player.ManageSpecialBiomeVisuals("HeatDistortion", Main.UseHeatDistortion && (useFire || - (aboveGround || ((double)point.Y < Main.worldSurface && player.ZoneDesert && !overworld && !Main.raining && !Filters.Scene["Sandstorm"].IsActive())))); - bool useWater = NPC.AnyNPCs(mod.NPCType("Leviathan")); + player.ManageSpecialBiomeVisuals("HeatDistortion", Main.UseHeatDistortion && (useFire || trippy || + (aboveGround || ((double)point.Y < Main.worldSurface && player.ZoneDesert && !overworld && !Main.raining && !Filters.Scene["Sandstorm"].IsActive())))); + bool useWater = NPC.AnyNPCs(mod.NPCType("Leviathan")); player.ManageSpecialBiomeVisuals("CalamityMod:Leviathan", useWater); bool useHoly = NPC.AnyNPCs(mod.NPCType("Providence")); player.ManageSpecialBiomeVisuals("CalamityMod:Providence", useHoly); bool useSBrimstone = NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")); player.ManageSpecialBiomeVisuals("CalamityMod:SupremeCalamitas", useSBrimstone); - bool inAstral = ZoneAstral; - player.ManageSpecialBiomeVisuals("CalamityMod:Astral", inAstral); - } - + bool inAstral = ZoneAstral; + player.ManageSpecialBiomeVisuals("CalamityMod:Astral", inAstral); + } + public override void UpdateBiomes() - { - Point point = player.Center.ToTileCoordinates(); - ZoneCalamity = CalamityWorld.calamityTiles > 50; - ZoneAstral = CalamityWorld.astralTiles > 950 || (player.ZoneSnow && CalamityWorld.astralTiles > 300); - //ZoneGreatSea = CalamityWorld.seaTiles > 30; + { + Point point = player.Center.ToTileCoordinates(); + ZoneCalamity = CalamityWorld.calamityTiles > 50; + ZoneAstral = !player.ZoneDungeon && (CalamityWorld.astralTiles > 950 || (player.ZoneSnow && CalamityWorld.astralTiles > 300)); - int x = Main.maxTilesX; - int y = Main.maxTilesY; - int genLimit = x / 2; - int abyssChasmSteps = y / 4; - int abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.055)); //132 = 1932 large - if (y < 1500) - { - abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.095)); //114 = 1014 small - } - else if (y < 2100) - { - abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.0735)); //132 = 1482 medium - } - int abyssChasmX = (CalamityWorld.abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); + bool inSunkenSea = false; + int playerPosX = (int)player.Center.X / 16; + int playerPosY = (int)player.Center.Y / 16; + Tile tile = Framing.GetTileSafely(playerPosX, playerPosY); + if (tile.wall == mod.WallType("EutrophicSandWall") || tile.wall == mod.WallType("NavystoneWall")) + { + inSunkenSea = true; + } + ZoneSunkenSea = CalamityWorld.sunkenSeaTiles > 300 || inSunkenSea; - bool abyssPosX = false; - bool sulphurPosX = false; - bool abyssPosY = (point.Y <= abyssChasmY); - if (CalamityWorld.abyssSide) - { - if (point.X < 380) - { - sulphurPosX = true; - } - if (point.X < abyssChasmX + 80) - { - abyssPosX = true; - } - } - else - { - if (point.X > Main.maxTilesX - 380) - { - sulphurPosX = true; - } - if (point.X > abyssChasmX - 80) - { - abyssPosX = true; - } - } + int x = Main.maxTilesX; + int y = Main.maxTilesY; + int genLimit = x / 2; + int abyssChasmY = y - 250; + int abyssChasmX = (CalamityWorld.abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); - //0.4 is the lowest location the rocklayer can be, 0.3 is the highest - ZoneAbyss = (((double)point.Y > ((Main.rockLayer - (double)y * 0.05) /*+ 35*/)) && //rocklayer = (0.4 to 0.3) - 0.04 = 0.36 to 0.26 - !player.lavaWet && - !player.honeyWet && - abyssPosY && - abyssPosX); + bool abyssPosX = false; + bool sulphurPosX = false; + bool abyssPosY = (point.Y <= abyssChasmY); + if (CalamityWorld.abyssSide) + { + if (point.X < 380) + { + sulphurPosX = true; + } + if (point.X < abyssChasmX + 80) + { + abyssPosX = true; + } + } + else + { + if (point.X > Main.maxTilesX - 380) + { + sulphurPosX = true; + } + if (point.X > abyssChasmX - 80) + { + abyssPosX = true; + } + } - ZoneAbyssLayer1 = ZoneAbyss && - (double)point.Y <= (Main.rockLayer + (double)y * 0.03); //(0.36 to 0.26) to (0.436 to 0.336) + ZoneAbyss = (((double)point.Y > (Main.rockLayer - (double)y * 0.05)) && + !player.lavaWet && + !player.honeyWet && + abyssPosY && + abyssPosX); - ZoneAbyssLayer2 = ZoneAbyss && - (double)point.Y > (Main.rockLayer + (double)y * 0.03) && - (double)point.Y <= (Main.rockLayer + (double)y * 0.13); //(0.436 to 0.336) to (0.543 to 0.443) + ZoneAbyssLayer1 = ZoneAbyss && + (double)point.Y <= (Main.rockLayer + (double)y * 0.03); - ZoneAbyssLayer3 = ZoneAbyss && - (double)point.Y > (Main.rockLayer + (double)y * 0.13) && - (double)point.Y <= (Main.rockLayer + (double)y * 0.23); //(0.543 to 0.443) to (0.662 to 0.562) + ZoneAbyssLayer2 = ZoneAbyss && + (double)point.Y > (Main.rockLayer + (double)y * 0.03) && + (double)point.Y <= (Main.rockLayer + (double)y * 0.14); - ZoneAbyssLayer4 = ZoneAbyss && - point.Y <= Main.maxTilesY - 200 && - (double)point.Y > (Main.rockLayer + (double)y * 0.23); //(0.662 to 0.562) to just above underworld + ZoneAbyssLayer3 = ZoneAbyss && + (double)point.Y > (Main.rockLayer + (double)y * 0.14) && + (double)point.Y <= (Main.rockLayer + (double)y * 0.26); + + ZoneAbyssLayer4 = ZoneAbyss && + (double)point.Y > (Main.rockLayer + (double)y * 0.26); + + ZoneSulphur = (CalamityWorld.sulphurTiles > 30 || (player.ZoneOverworldHeight && sulphurPosX)) && !ZoneAbyss; + } - ZoneSulphur = (CalamityWorld.sulphurTiles > 30 || (player.ZoneOverworldHeight && sulphurPosX)) && !ZoneAbyss; - } - public override bool CustomBiomesMatch(Player other) { CalamityPlayer modOther = other.GetModPlayer(mod); - return ZoneCalamity == modOther.ZoneCalamity || ZoneAstral == modOther.ZoneAstral || ZoneAbyss == modOther.ZoneAbyss || - ZoneAbyssLayer1 == modOther.ZoneAbyssLayer1 || ZoneAbyssLayer2 == modOther.ZoneAbyssLayer2 || - ZoneAbyssLayer3 == modOther.ZoneAbyssLayer3 || ZoneAbyssLayer4 == modOther.ZoneAbyssLayer4 || - ZoneSulphur == modOther.ZoneSulphur; + return ZoneCalamity == modOther.ZoneCalamity || ZoneAstral == modOther.ZoneAstral || ZoneAbyss == modOther.ZoneAbyss || + ZoneAbyssLayer1 == modOther.ZoneAbyssLayer1 || ZoneAbyssLayer2 == modOther.ZoneAbyssLayer2 || + ZoneAbyssLayer3 == modOther.ZoneAbyssLayer3 || ZoneAbyssLayer4 == modOther.ZoneAbyssLayer4 || + ZoneSulphur == modOther.ZoneSulphur || ZoneSunkenSea == modOther.ZoneSunkenSea; } public override void CopyCustomBiomesTo(Player other) @@ -1640,26 +1728,32 @@ namespace CalamityMod CalamityPlayer modOther = other.GetModPlayer(mod); modOther.ZoneCalamity = ZoneCalamity; modOther.ZoneAstral = ZoneAstral; - modOther.ZoneSulphur = ZoneSulphur; - modOther.ZoneAbyss = ZoneAbyss; - modOther.ZoneAbyssLayer1 = ZoneAbyssLayer1; - modOther.ZoneAbyssLayer2 = ZoneAbyssLayer2; - modOther.ZoneAbyssLayer3 = ZoneAbyssLayer3; - modOther.ZoneAbyssLayer4 = ZoneAbyssLayer4; - } + modOther.ZoneSulphur = ZoneSulphur; + modOther.ZoneSunkenSea = ZoneSunkenSea; + modOther.ZoneAbyss = ZoneAbyss; + modOther.ZoneAbyssLayer1 = ZoneAbyssLayer1; + modOther.ZoneAbyssLayer2 = ZoneAbyssLayer2; + modOther.ZoneAbyssLayer3 = ZoneAbyssLayer3; + modOther.ZoneAbyssLayer4 = ZoneAbyssLayer4; + } public override void SendCustomBiomes(BinaryWriter writer) { BitsByte flags = new BitsByte(); flags[0] = ZoneCalamity; flags[1] = ZoneAstral; - flags[2] = ZoneAbyss; - flags[3] = ZoneAbyssLayer1; - flags[4] = ZoneAbyssLayer2; - flags[5] = ZoneAbyssLayer3; - flags[6] = ZoneAbyssLayer4; - flags[7] = ZoneSulphur; + flags[2] = ZoneAbyss; + flags[3] = ZoneAbyssLayer1; + flags[4] = ZoneAbyssLayer2; + flags[5] = ZoneAbyssLayer3; + flags[6] = ZoneAbyssLayer4; + flags[7] = ZoneSulphur; + + BitsByte flags2 = new BitsByte(); + flags2[0] = ZoneSunkenSea; + writer.Write(flags); + writer.Write(flags2); } public override void ReceiveCustomBiomes(BinaryReader reader) @@ -1667,192 +1761,195 @@ namespace CalamityMod BitsByte flags = reader.ReadByte(); ZoneCalamity = flags[0]; ZoneAstral = flags[1]; - ZoneAbyss = flags[2]; - ZoneAbyssLayer1 = flags[3]; - ZoneAbyssLayer2 = flags[4]; - ZoneAbyssLayer3 = flags[5]; - ZoneAbyssLayer4 = flags[6]; - ZoneSulphur = flags[7]; - } + ZoneAbyss = flags[2]; + ZoneAbyssLayer1 = flags[3]; + ZoneAbyssLayer2 = flags[4]; + ZoneAbyssLayer3 = flags[5]; + ZoneAbyssLayer4 = flags[6]; + ZoneSulphur = flags[7]; - public override Texture2D GetMapBackgroundImage() - { - if (ZoneSulphur) - { - return mod.GetTexture("Backgrounds/MapBackgrounds/SulphurBG"); - } - if (ZoneAstral) - { - return mod.GetTexture("Backgrounds/MapBackgrounds/AstralBG"); - } - return null; - } - #endregion - - #region InventoryStartup - public override void SetupStartInventory(IList items, bool mediumcoreDeath) - { - if (!mediumcoreDeath) - { - player.inventory[9].SetDefaults(mod.ItemType("Revenge")); - player.inventory[8].SetDefaults(mod.ItemType("IronHeart")); - player.inventory[7].SetDefaults(mod.ItemType("StarterBag")); - } - } - #endregion + BitsByte flags2 = reader.ReadByte(); + ZoneSunkenSea = flags[0]; + } - #region LifeRegen - public override void UpdateBadLifeRegen() + public override Texture2D GetMapBackgroundImage() { - #region FirstDebuffs - if (bFlames || aFlames) - { - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= 16; - } - if (gsInferno || (ZoneCalamity && player.lavaWet)) - { - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= 30; - } - if (ZoneSulphur && Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) - { - player.AddBuff(BuffID.Poisoned, 2, true); - pissWaterBoost++; - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - if (pissWaterBoost > 1800) - { - player.lifeRegen -= 6; - } - else if (pissWaterBoost > 1440) - { - player.lifeRegen -= 4; - } - else if (pissWaterBoost > 1080) - { - player.lifeRegen -= 3; - } - else if (pissWaterBoost > 720) - { - player.lifeRegen -= 2; - } - else if (pissWaterBoost > 360) - { - player.lifeRegen -= 1; - } - } - else - { - pissWaterBoost = 0; - } - if (hFlames) - { - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= 20; - } - if (pFlames) - { - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= 20; - player.blind = true; - player.statDefense -= 8; - player.moveSpeed -= 0.15f; - } - if (bBlood) - { - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= 8; - player.blind = true; - player.statDefense -= 3; - player.moveSpeed += 0.2f; - player.meleeSpeed -= 0.025f; - player.meleeDamage += 0.05f; - player.rangedDamage -= 0.1f; - player.magicDamage -= 0.1f; - } - if (horror) - { - player.blind = true; - player.statDefense -= 15; - player.moveSpeed -= 0.15f; - } - if (aCrunch) - { - player.statDefense /= 3; - player.endurance *= 0.33f; - } - if (vHex) - { - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= 16; - player.blind = true; - player.statDefense -= 30; - player.moveSpeed -= 0.1f; - player.endurance -= 0.3f; - if (player.wingTimeMax <= 0) - { - player.wingTimeMax = 0; - } - player.wingTimeMax /= 2; - } - if (cDepth) - { - if (player.statDefense > 0) - { - int depthDamage = depthCharm ? 9 : 18; - int subtractDefense = (int)((double)player.statDefense * 0.05); //240 defense = 0 damage taken with depth charm - int calcDepthDamage = depthDamage - subtractDefense; - if (calcDepthDamage < 0) - { - calcDepthDamage = 0; - } - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= calcDepthDamage; - } - } - #endregion - #region Buffs + if (ZoneSulphur) + { + return mod.GetTexture("Backgrounds/MapBackgrounds/SulphurBG"); + } + if (ZoneAstral) + { + return mod.GetTexture("Backgrounds/MapBackgrounds/AstralBG"); + } + return null; + } + #endregion + + #region InventoryStartup + public override void SetupStartInventory(IList items, bool mediumcoreDeath) + { + if (!mediumcoreDeath) + { + player.inventory[9].SetDefaults(mod.ItemType("Revenge")); + player.inventory[8].SetDefaults(mod.ItemType("IronHeart")); + player.inventory[7].SetDefaults(mod.ItemType("StarterBag")); + } + } + #endregion + + #region LifeRegen + public override void UpdateBadLifeRegen() + { + Point point = player.Center.ToTileCoordinates(); + #region FirstDebuffs + if (bFlames || aFlames) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= 16; + } + if (gsInferno || (ZoneCalamity && player.lavaWet)) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= 30; + } + if (ZoneSulphur && Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) + { + player.AddBuff(BuffID.Poisoned, 2, true); + pissWaterBoost++; + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + if (pissWaterBoost > 1800) + { + player.lifeRegen -= 6; + } + else if (pissWaterBoost > 1440) + { + player.lifeRegen -= 4; + } + else if (pissWaterBoost > 1080) + { + player.lifeRegen -= 3; + } + else if (pissWaterBoost > 720) + { + player.lifeRegen -= 2; + } + else if (pissWaterBoost > 360) + { + player.lifeRegen -= 1; + } + } + else + { + pissWaterBoost = 0; + } + if (hFlames) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= 20; + } + if (pFlames) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= 20; + player.blind = true; + player.statDefense -= 8; + player.moveSpeed -= 0.15f; + } + if (bBlood) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= 8; + player.blind = true; + player.statDefense -= 3; + player.moveSpeed += 0.2f; + player.meleeDamage += 0.05f; + player.rangedDamage -= 0.1f; + player.magicDamage -= 0.1f; + } + if (horror) + { + player.blind = true; + player.statDefense -= 15; + player.moveSpeed -= 0.15f; + } + if (aCrunch) + { + player.statDefense /= 3; + player.endurance *= 0.33f; + } + if (vHex) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= 16; + player.blind = true; + player.statDefense -= 30; + player.moveSpeed -= 0.1f; + player.endurance -= 0.3f; + if (player.wingTimeMax <= 0) + { + player.wingTimeMax = 0; + } + player.wingTimeMax /= 2; + } + if (cDepth) + { + if (player.statDefense > 0) + { + int depthDamage = depthCharm ? 9 : 18; + int subtractDefense = (int)((double)player.statDefense * 0.05); //240 defense = 0 damage taken with depth charm + int calcDepthDamage = depthDamage - subtractDefense; + if (calcDepthDamage < 0) + { + calcDepthDamage = 0; + } + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= calcDepthDamage; + } + } + #endregion + #region Buffs if (tRegen) { player.lifeRegen += 10; } - if (sRegen) - { - player.lifeRegen += 2; - } - if (tarraSet) + if (sRegen) + { + player.lifeRegen += 2; + } + if (tarraSet) { player.calmed = (tarraMelee ? false : true); player.lifeMagnet = true; @@ -1895,3483 +1992,3977 @@ namespace CalamityMod { player.moveSpeed += 0.9f; } - if (celestialJewel || astralArcanum) - { - bool lesserEffect = false; - for (int l = 0; l < 22; l++) - { - int hasBuff = player.buffType[l]; - bool shouldAffect = CalamityMod.alcoholList.Contains(hasBuff); - if (shouldAffect) - { - lesserEffect = true; - } - } - if (lesserEffect) - { - player.lifeRegen += 1; - player.statDefense += 20; - } - else - { - if (player.lifeRegen < 0) - { - if (player.lifeRegenTime < 1800) - { - player.lifeRegenTime = 1800; - } - player.lifeRegen += 4; - player.statDefense += 20; - } - else - { - player.lifeRegen += 2; - } - } - } - else if (crownJewel) - { - bool lesserEffect = false; - for (int l = 0; l < 22; l++) - { - int hasBuff = player.buffType[l]; - bool shouldAffect = CalamityMod.alcoholList.Contains(hasBuff); - if (shouldAffect) - { - lesserEffect = true; - } - } - if (lesserEffect) - { - player.statDefense += 10; - } - else - { - if (player.lifeRegen < 0) - { - if (player.lifeRegenTime < 1800) - { - player.lifeRegenTime = 1800; - } - player.lifeRegen += 2; - player.statDefense += 10; - } - else - { - player.lifeRegen += 1; - } - } - } - if (permafrostsConcoction) - { - if (player.statLife < player.statLifeMax2 / 2) - player.lifeRegen++; - if (player.statLife < player.statLifeMax2 / 4) - player.lifeRegen++; - if (player.statLife < player.statLifeMax2 / 10) - player.lifeRegen += 2; - if (player.poisoned || player.onFire || bFlames) - player.lifeRegen += 4; - } - #endregion - #region LastDebuffs - if (omegaBlueChestplate) - { - if (player.lifeRegen > 0) - player.lifeRegen = 0; + if (celestialJewel || astralArcanum) + { + bool lesserEffect = false; + for (int l = 0; l < 22; l++) + { + int hasBuff = player.buffType[l]; + bool shouldAffect = CalamityMod.alcoholList.Contains(hasBuff); + if (shouldAffect) + { + lesserEffect = true; + } + } + if (lesserEffect) + { + player.lifeRegen += 1; + player.statDefense += 20; + } + else + { + if (player.lifeRegen < 0) + { + if (player.lifeRegenTime < 1800) + { + player.lifeRegenTime = 1800; + } + player.lifeRegen += 4; + player.statDefense += 20; + } + else + { + player.lifeRegen += 2; + } + } + } + else if (crownJewel) + { + bool lesserEffect = false; + for (int l = 0; l < 22; l++) + { + int hasBuff = player.buffType[l]; + bool shouldAffect = CalamityMod.alcoholList.Contains(hasBuff); + if (shouldAffect) + { + lesserEffect = true; + } + } + if (lesserEffect) + { + player.statDefense += 10; + } + else + { + if (player.lifeRegen < 0) + { + if (player.lifeRegenTime < 1800) + { + player.lifeRegenTime = 1800; + } + player.lifeRegen += 2; + player.statDefense += 10; + } + else + { + player.lifeRegen += 1; + } + } + } + if (permafrostsConcoction) + { + if (player.statLife < player.statLifeMax2 / 2) + player.lifeRegen++; + if (player.statLife < player.statLifeMax2 / 4) + player.lifeRegen++; + if (player.statLife < player.statLifeMax2 / 10) + player.lifeRegen += 2; + if (player.poisoned || player.onFire || bFlames) + player.lifeRegen += 4; + } + if (CalamityCollision.HotWetCollision(player.position, player.width, player.height) || (ZoneAbyssLayer4 && point.Y > Main.maxTilesY - 300) || ZoneSunkenSea) + { + if (player.lifeRegen < 0) + { + player.lifeRegen += 2; + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + } + player.lifeRegenTime += 1; + player.lifeRegen += 1; + } + #endregion + #region LastDebuffs + if (omegaBlueChestplate) + { + if (player.lifeRegen > 0) + player.lifeRegen = 0; - player.lifeRegenTime = 0; + player.lifeRegenTime = 0; - if (player.lifeRegenCount > 0) - player.lifeRegenCount = 0; - } - if (hInferno) - { - hInfernoBoost++; - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - if (hInfernoBoost > 240) - { - player.lifeRegen -= 192; - } - else if (hInfernoBoost > 180) - { - player.lifeRegen -= 96; - } - else if (hInfernoBoost > 120) - { - player.lifeRegen -= 48; - } - else if (hInfernoBoost > 60) - { - player.lifeRegen -= 24; - } - else if (hInfernoBoost > 0) - { - player.lifeRegen -= 12; - } - } - else - { - hInfernoBoost = 0; - } - if (gState) - { - player.statDefense /= 2; - player.velocity.Y = 0f; - player.velocity.X = 0f; - } - if (eGravity) - { - player.velocity.X *= 0.99f; - if (player.wingTimeMax < 0) - { - player.wingTimeMax = 0; - } - player.wingTimeMax /= 4; - if (player.wingTimeMax > 400) - { - player.wingTimeMax = 100; - } - } - if (eGrav) - { - if (player.wingTimeMax < 0) - { - player.wingTimeMax = 0; - } - player.wingTimeMax /= 3; - if (player.wingTimeMax > 400) - { - player.wingTimeMax = 200; - } - } - if (warped || caribbeanRum) - { - player.velocity.Y *= 1.01f; - } - if (weakPetrification || CalamityWorld.bossRushActive) - { - if (player.mount.Active) - { - player.mount.Dismount(player); - } - } - if (CalamityGlobalNPC.DoGHead > -1) - { - player.velocity.X *= 0.99f; - } - if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) - { - if (player.lifeRegen < 0) - { - player.lifeRegen = 0; - } - } - #endregion - } + if (player.lifeRegenCount > 0) + player.lifeRegenCount = 0; + } + if (Main.myPlayer == player.whoAmI) + { + if (Collision.LavaCollision(player.position, player.width, (player.waterWalk ? (player.height - 6) : player.height))) + { + if (player.lavaImmune && !player.immune) + { + if (player.lavaTime > 0) + { + player.lavaTime--; + } + } + if (player.lavaTime <= 0) + { + player.AddBuff(mod.BuffType("LethalLavaBurn"), 2, true); + } + } + } + if (lethalLavaBurn) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + int lifeRegenDown = (player.lavaImmune ? 9 : 18); + if (player.lavaRose) + { + lifeRegenDown = 3; + } + player.lifeRegen -= lifeRegenDown; + } + if (hInferno) + { + hInfernoBoost++; + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + if (hInfernoBoost > 240) + { + player.lifeRegen -= 192; + } + else if (hInfernoBoost > 180) + { + player.lifeRegen -= 96; + } + else if (hInfernoBoost > 120) + { + player.lifeRegen -= 48; + } + else if (hInfernoBoost > 60) + { + player.lifeRegen -= 24; + } + else if (hInfernoBoost > 0) + { + player.lifeRegen -= 12; + } + } + else + { + hInfernoBoost = 0; + } + if (gState) + { + player.statDefense /= 2; + player.velocity.Y = 0f; + player.velocity.X = 0f; + } + if (eGravity) + { + player.velocity.X *= 0.99f; + if (player.wingTimeMax < 0) + { + player.wingTimeMax = 0; + } + player.wingTimeMax /= 4; + if (player.wingTimeMax > 400) + { + player.wingTimeMax = 100; + } + } + if (eGrav) + { + if (player.wingTimeMax < 0) + { + player.wingTimeMax = 0; + } + player.wingTimeMax /= 3; + if (player.wingTimeMax > 400) + { + player.wingTimeMax = 200; + } + } + if ((warped || caribbeanRum) && !player.slowFall) + { + player.velocity.Y *= 1.01f; + } + if (weakPetrification || CalamityWorld.bossRushActive) + { + if (player.mount.Active) + { + player.mount.Dismount(player); + } + } + if (CalamityGlobalNPC.DoGHead > -1) + { + player.velocity.X *= 0.99f; + } + if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) + { + if (player.lifeRegen < 0) + { + player.lifeRegen = 0; + } + } + #endregion + } - #region UpdateLifeRegen - public override void UpdateLifeRegen() + #region UpdateLifeRegen + public override void UpdateLifeRegen() { bool shinyStoned = player.shinyStone; float num2 = 0f; - if (player.lifeRegenTime >= 300) - { - num2 += 1f; - } - if (player.lifeRegenTime >= 600) - { - num2 += 1f; - } - if (player.lifeRegenTime >= 900) - { - num2 += 1f; - } - if (player.lifeRegenTime >= 1200) - { - num2 += 1f; - } - if (player.lifeRegenTime >= 1500) - { - num2 += 1f; - } - if (player.lifeRegenTime >= 1800) - { - num2 += 1f; - } - if (player.lifeRegenTime >= 2400) - { - num2 += 1f; - } - if (player.lifeRegenTime >= 3000) - { - num2 += 1f; - } - if (player.lifeRegenTime >= 3600) - { - num2 += 1f; - } - if (player.velocity.X == 0f || player.grappling[0] > 0) - { - num2 *= 1.25f; - } - else - { - num2 *= 0.5f; - } - if (!shinyStoned) - { - if (draedonsHeart && !shadeRegen && !cFreeze && - (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) - { - if (!areThereAnyDamnBosses) - { - if (player.lifeRegen < 0) - { - player.lifeRegen /= 2; - } - if (player.lifeRegenTime > 90 && player.lifeRegenTime < 1800) - { - player.lifeRegenTime = 1800; - } - player.lifeRegenTime += 4; - player.lifeRegen += 4; - float num3 = (float)(player.lifeRegenTime - 3000); - num3 /= 300f; - if (num3 > 0f) - { - if (num3 > 30f) - { - num3 = 30f; - } - num2 += num3; - } - } - else - { - if (player.lifeRegenTime > 90 && player.lifeRegenTime < 360) - { - player.lifeRegenTime = 360; - } - player.lifeRegenTime += 2; - player.lifeRegen += 2; - float num3 = (float)(player.lifeRegenTime - 1800); - num3 /= 180f; - if (num3 > 0f) - { - if (num3 > 5f) - { - num3 = 5f; - } - num2 += num3; - } - } - float num4 = (float)player.statLifeMax2 / 400f * 0.85f + 0.15f; - num2 *= num4; - player.lifeRegen += (int)Math.Round((double)num2); - player.lifeRegenCount += player.lifeRegen; - if (player.lifeRegen > 0 && player.statLife < player.statLifeMax2) - { - player.lifeRegenCount++; - if ((Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.Next(2) == 0)) - { - int num5 = Dust.NewDust(player.position, player.width, player.height, 107, 0f, 0f, 200, default(Color), 1f); - Main.dust[num5].noGravity = true; - Main.dust[num5].velocity *= 0.75f; - Main.dust[num5].fadeIn = 1.3f; - Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - vector.Normalize(); - vector *= (float)Main.rand.Next(50, 100) * 0.04f; - Main.dust[num5].velocity = vector; - vector.Normalize(); - vector *= 34f; - Main.dust[num5].position = player.Center - vector; - } - } - } - if (shadeRegen && !draedonsHeart && !cFreeze && - (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) - { - if (player.lifeRegen < 0) - { - player.lifeRegen /= 2; - } - if (player.lifeRegenTime > 90 && player.lifeRegenTime < 1800) - { - player.lifeRegenTime = 1800; - } - player.lifeRegenTime += 4; - player.lifeRegen += 4; - float num3 = (float)(player.lifeRegenTime - 3000); - num3 /= 300f; - if (num3 > 0f) - { - if (num3 > 30f) - { - num3 = 30f; - } - num2 += num3; - } - float num4 = (float)player.statLifeMax2 / 400f * 0.85f + 0.15f; - num2 *= num4; - player.lifeRegen += (int)Math.Round((double)num2); - player.lifeRegenCount += player.lifeRegen; - if (player.lifeRegen > 0 && player.statLife < player.statLifeMax2) - { - player.lifeRegenCount++; - if ((Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.Next(30) == 0)) - { - int num5 = Dust.NewDust(player.position, player.width, player.height, 173, 0f, 0f, 200, default(Color), 1f); - Main.dust[num5].noGravity = true; - Main.dust[num5].velocity *= 0.75f; - Main.dust[num5].fadeIn = 1.3f; - Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - vector.Normalize(); - vector *= (float)Main.rand.Next(50, 100) * 0.04f; - Main.dust[num5].velocity = vector; - vector.Normalize(); - vector *= 34f; - Main.dust[num5].position = player.Center - vector; - } - } - } - if (cFreeze && !shadeRegen && !draedonsHeart && - (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) - { - if (player.lifeRegen < 0) - { - player.lifeRegen /= 2; - } - if (player.lifeRegenTime > 90 && player.lifeRegenTime < 1800) - { - player.lifeRegenTime = 1800; - } - player.lifeRegenTime += 4; - player.lifeRegen += 4; - float num3 = (float)(player.lifeRegenTime - 3000); - num3 /= 300f; - if (num3 > 0f) - { - if (num3 > 30f) - { - num3 = 30f; - } - num2 += num3; - } - float num4 = (float)player.statLifeMax2 / 400f * 0.85f + 0.15f; - num2 *= num4; - player.lifeRegen += (int)Math.Round((double)num2); - player.lifeRegenCount += player.lifeRegen; - if (player.lifeRegen > 0 && player.statLife < player.statLifeMax2) - { - player.lifeRegenCount++; - if ((Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.Next(30) == 0)) - { - int num5 = Dust.NewDust(player.position, player.width, player.height, 67, 0f, 0f, 200, new Color(150, Main.DiscoG, 255), 0.75f); - Main.dust[num5].noGravity = true; - Main.dust[num5].velocity *= 0.75f; - Main.dust[num5].fadeIn = 1.3f; - Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - vector.Normalize(); - vector *= (float)Main.rand.Next(50, 100) * 0.04f; - Main.dust[num5].velocity = vector; - vector.Normalize(); - vector *= 34f; - Main.dust[num5].position = player.Center - vector; - } - } - } - } - } - #endregion - #endregion + if (player.lifeRegenTime >= 300) + { + num2 += 1f; + } + if (player.lifeRegenTime >= 600) + { + num2 += 1f; + } + if (player.lifeRegenTime >= 900) + { + num2 += 1f; + } + if (player.lifeRegenTime >= 1200) + { + num2 += 1f; + } + if (player.lifeRegenTime >= 1500) + { + num2 += 1f; + } + if (player.lifeRegenTime >= 1800) + { + num2 += 1f; + } + if (player.lifeRegenTime >= 2400) + { + num2 += 1f; + } + if (player.lifeRegenTime >= 3000) + { + num2 += 1f; + } + if (player.lifeRegenTime >= 3600) + { + num2 += 1f; + } + if (player.velocity.X == 0f || player.grappling[0] > 0) + { + num2 *= 1.25f; + } + else + { + num2 *= 0.5f; + } + if (!shinyStoned) + { + if (draedonsHeart && !shadeRegen && !cFreeze && + (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) + { + if (player.lifeRegen < 0) + { + player.lifeRegen /= 2; + } + if (player.lifeRegenTime > 90 && player.lifeRegenTime < 1800) + { + player.lifeRegenTime = 1800; + } + player.lifeRegenTime += 4; + player.lifeRegen += 4; + float num3 = (float)(player.lifeRegenTime - 3000); + num3 /= 300f; + if (num3 > 0f) + { + if (num3 > 30f) + { + num3 = 30f; + } + num2 += num3; + } + float num4 = (float)player.statLifeMax2 / 400f * 0.85f + 0.15f; + num2 *= num4; + player.lifeRegen += (int)Math.Round((double)num2); + player.lifeRegenCount += player.lifeRegen; + if (player.lifeRegen > 0 && player.statLife < player.statLifeMax2) + { + player.lifeRegenCount++; + if ((Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.Next(2) == 0)) + { + int num5 = Dust.NewDust(player.position, player.width, player.height, 107, 0f, 0f, 200, default(Color), 1f); + Main.dust[num5].noGravity = true; + Main.dust[num5].velocity *= 0.75f; + Main.dust[num5].fadeIn = 1.3f; + Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + vector.Normalize(); + vector *= (float)Main.rand.Next(50, 100) * 0.04f; + Main.dust[num5].velocity = vector; + vector.Normalize(); + vector *= 34f; + Main.dust[num5].position = player.Center - vector; + } + } + } + if (shadeRegen && !draedonsHeart && !cFreeze && + (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) + { + if (player.lifeRegen < 0) + { + player.lifeRegen /= 2; + } + if (player.lifeRegenTime > 90 && player.lifeRegenTime < 1800) + { + player.lifeRegenTime = 1800; + } + player.lifeRegenTime += 4; + player.lifeRegen += 4; + float num3 = (float)(player.lifeRegenTime - 3000); + num3 /= 300f; + if (num3 > 0f) + { + if (num3 > 30f) + { + num3 = 30f; + } + num2 += num3; + } + float num4 = (float)player.statLifeMax2 / 400f * 0.85f + 0.15f; + num2 *= num4; + player.lifeRegen += (int)Math.Round((double)num2); + player.lifeRegenCount += player.lifeRegen; + if (player.lifeRegen > 0 && player.statLife < player.statLifeMax2) + { + player.lifeRegenCount++; + if ((Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.Next(30) == 0)) + { + int num5 = Dust.NewDust(player.position, player.width, player.height, 173, 0f, 0f, 200, default(Color), 1f); + Main.dust[num5].noGravity = true; + Main.dust[num5].velocity *= 0.75f; + Main.dust[num5].fadeIn = 1.3f; + Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + vector.Normalize(); + vector *= (float)Main.rand.Next(50, 100) * 0.04f; + Main.dust[num5].velocity = vector; + vector.Normalize(); + vector *= 34f; + Main.dust[num5].position = player.Center - vector; + } + } + } + if (cFreeze && !shadeRegen && !draedonsHeart && + (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) + { + if (player.lifeRegen < 0) + { + player.lifeRegen /= 2; + } + if (player.lifeRegenTime > 90 && player.lifeRegenTime < 1800) + { + player.lifeRegenTime = 1800; + } + player.lifeRegenTime += 4; + player.lifeRegen += 4; + float num3 = (float)(player.lifeRegenTime - 3000); + num3 /= 300f; + if (num3 > 0f) + { + if (num3 > 30f) + { + num3 = 30f; + } + num2 += num3; + } + float num4 = (float)player.statLifeMax2 / 400f * 0.85f + 0.15f; + num2 *= num4; + player.lifeRegen += (int)Math.Round((double)num2); + player.lifeRegenCount += player.lifeRegen; + if (player.lifeRegen > 0 && player.statLife < player.statLifeMax2) + { + player.lifeRegenCount++; + if ((Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.Next(30) == 0)) + { + int num5 = Dust.NewDust(player.position, player.width, player.height, 67, 0f, 0f, 200, new Color(150, Main.DiscoG, 255), 0.75f); + Main.dust[num5].noGravity = true; + Main.dust[num5].velocity *= 0.75f; + Main.dust[num5].fadeIn = 1.3f; + Vector2 vector = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + vector.Normalize(); + vector *= (float)Main.rand.Next(50, 100) * 0.04f; + Main.dust[num5].velocity = vector; + vector.Normalize(); + vector *= 34f; + Main.dust[num5].position = player.Center - vector; + } + } + } + } + } + #endregion + #endregion - #region HotKeys - public override void ProcessTriggers(TriggersSet triggersSet) - { - if (CalamityMod.BossBarToggleHotKey.JustPressed) - { - if (drawBossHPBar) - { - drawBossHPBar = false; - } - else - { - drawBossHPBar = true; - } - } - if (CalamityMod.BossBarToggleSmallTextHotKey.JustPressed) - { - if (shouldDrawSmallText) - { - shouldDrawSmallText = false; - } - else - { - shouldDrawSmallText = true; - } - } - if (CalamityMod.TarraHotKey.JustPressed) - { - if (tarraMelee && tarraCooldown <= 0) - { - tarraDefense = true; - } - if (bloodflareRanged && bloodflareRangedCooldown <= 0) - { - bloodflareRangedCooldown = 1800; - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); - for (int num502 = 0; num502 < 64; num502++) - { - int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 60, 0f, 0f, 0, default(Color), 1f); - Main.dust[dust].velocity *= 3f; - Main.dust[dust].scale *= 1.15f; - } - int num226 = 36; - for (int num227 = 0; num227 < num226; num227++) - { - Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f; - vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + player.Center; - Vector2 vector7 = vector6 - player.Center; - int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 60, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.4f); - Main.dust[num228].noGravity = true; - Main.dust[num228].noLight = true; - Main.dust[num228].velocity = vector7; - } - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int damage = 800; - if (player.whoAmI == Main.myPlayer) - { - for (i = 0; i < 8; i++) - { - float ai1 = (Main.rand.NextFloat() + 0.5f); - float randomSpeed = (float)Main.rand.Next(1, 7); - float randomSpeed2 = (float)Main.rand.Next(1, 7); - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, mod.ProjectileType("BloodflareSoul"), damage, 0f, player.whoAmI, 0f, ai1); - Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, mod.ProjectileType("BloodflareSoul"), damage, 0f, player.whoAmI, 0f, ai1); - } - } - } - if (omegaBlueSet && omegaBlueCooldown <= 0) - { - omegaBlueCooldown = 1800; - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); - for (int i = 0; i < 66; i++) - { - int d = Dust.NewDust(player.position, player.width, player.height, 20, 0, 0, 100, Color.Transparent, 2.6f); - Main.dust[d].noGravity = true; - Main.dust[d].noLight = true; - Main.dust[d].fadeIn = 1f; - Main.dust[d].velocity *= 6.6f; - } - } - if (dsSetBonus) - { - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); - for (int num502 = 0; num502 < 36; num502++) - { - int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default(Color), 1f); - Main.dust[dust].velocity *= 3f; - Main.dust[dust].scale *= 1.15f; - } - int num226 = 36; - for (int num227 = 0; num227 < num226; num227++) - { - Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f; - vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + player.Center; - Vector2 vector7 = vector6 - player.Center; - int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 235, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.4f); - Main.dust[num228].noGravity = true; - Main.dust[num228].noLight = true; - Main.dust[num228].velocity = vector7; - } - if (player.whoAmI == Main.myPlayer) - { - player.AddBuff(mod.BuffType("Enraged"), 600, false); - } - if (Main.netMode != 1) - { - for (int l = 0; l < 200; l++) - { - NPC nPC = Main.npc[l]; - if (nPC.active && !nPC.friendly && !nPC.dontTakeDamage && Vector2.Distance(player.Center, nPC.Center) <= 3000f) - { - nPC.AddBuff(mod.BuffType("Enraged"), 600, false); - } - } - } - } - } - if (CalamityMod.AstralArcanumUIHotkey.JustPressed && astralArcanum) - { - AstralArcanumUI.Toggle(); - } - if (CalamityMod.AstralTeleportHotKey.JustPressed) - { - if (celestialJewel) - { - if (Main.netMode == 0) - { - player.TeleportationPotion(); - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 6); - } - else if (Main.netMode == 1 && player.whoAmI == Main.myPlayer) - { - NetMessage.SendData(73, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - } - if (CalamityMod.AegisHotKey.JustPressed) - { - if (elysianAegis && !player.mount.Active) - { - elysianGuard = !elysianGuard; - } - } - if (CalamityMod.RageHotKey.JustPressed) - { - if (stress == stressMax && !rageMode) - { - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); - for (int num502 = 0; num502 < 64; num502++) - { - int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default(Color), 1f); - Main.dust[dust].velocity *= 3f; - Main.dust[dust].scale *= 1.15f; - } - int num226 = 36; - for (int num227 = 0; num227 < num226; num227++) - { - Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f; - vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + player.Center; - Vector2 vector7 = vector6 - player.Center; - int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 235, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.4f); - Main.dust[num228].noGravity = true; - Main.dust[num228].noLight = true; - Main.dust[num228].velocity = vector7; - } - player.AddBuff(mod.BuffType("RageMode"), 300); - } - } - if (CalamityMod.AdrenalineHotKey.JustPressed) - { - if (adrenaline == adrenalineMax && !adrenalineMode) - { - Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); - for (int num502 = 0; num502 < 64; num502++) - { - int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 206, 0f, 0f, 0, default(Color), 1f); - Main.dust[dust].velocity *= 3f; - Main.dust[dust].scale *= 2f; - } - int num226 = 36; - for (int num227 = 0; num227 < num226; num227++) - { - Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f; - vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + player.Center; - Vector2 vector7 = vector6 - player.Center; - int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 206, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.4f); - Main.dust[num228].noGravity = true; - Main.dust[num228].noLight = true; - Main.dust[num228].velocity = vector7; - } - player.AddBuff(mod.BuffType("AdrenalineMode"), 300); - } - } - } - #endregion + #region HotKeys + public override void ProcessTriggers(TriggersSet triggersSet) + { + if (CalamityMod.NormalityRelocatorHotKey.JustPressed && normalityRelocator && Main.myPlayer == player.whoAmI) + { + Vector2 teleportLocation; + teleportLocation.X = (float)Main.mouseX + Main.screenPosition.X; + if (player.gravDir == 1f) + { + teleportLocation.Y = (float)Main.mouseY + Main.screenPosition.Y - (float)player.height; + } + else + { + teleportLocation.Y = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY; + } + teleportLocation.X -= (float)(player.width / 2); + if (teleportLocation.X > 50f && teleportLocation.X < (float)(Main.maxTilesX * 16 - 50) && teleportLocation.Y > 50f && teleportLocation.Y < (float)(Main.maxTilesY * 16 - 50)) + { + int x = (int)(teleportLocation.X / 16f); + int y = (int)(teleportLocation.Y / 16f); + if (!Collision.SolidCollision(teleportLocation, player.width, player.height)) + { + player.Teleport(teleportLocation, 4, 0); + NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, teleportLocation.X, teleportLocation.Y, 1, 0, 0); + if (player.chaosState) + { + player.statLife -= player.statLifeMax2 / 4; + PlayerDeathReason damageSource = PlayerDeathReason.ByOther(13); + if (Main.rand.Next(2) == 0) + { + damageSource = PlayerDeathReason.ByOther(player.Male ? 14 : 15); + } + if (player.statLife <= 0) + { + player.KillMe(damageSource, 1.0, 0, false); + } + player.lifeRegenCount = 0; + player.lifeRegenTime = 0; + } + player.AddBuff(BuffID.ChaosState, 360, true); + } + } + } + if (CalamityMod.BossBarToggleHotKey.JustPressed) + { + if (drawBossHPBar) + { + drawBossHPBar = false; + } + else + { + drawBossHPBar = true; + } + } + if (CalamityMod.BossBarToggleSmallTextHotKey.JustPressed) + { + if (shouldDrawSmallText) + { + shouldDrawSmallText = false; + } + else + { + shouldDrawSmallText = true; + } + } + if (CalamityMod.TarraHotKey.JustPressed) + { + if (tarraMelee && tarraCooldown <= 0) + { + tarraDefense = true; + } + if (bloodflareRanged && bloodflareRangedCooldown <= 0) + { + bloodflareRangedCooldown = 1800; + Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + for (int num502 = 0; num502 < 64; num502++) + { + int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 60, 0f, 0f, 0, default(Color), 1f); + Main.dust[dust].velocity *= 3f; + Main.dust[dust].scale *= 1.15f; + } + int num226 = 36; + for (int num227 = 0; num227 < num226; num227++) + { + Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f; + vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + player.Center; + Vector2 vector7 = vector6 - player.Center; + int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 60, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.4f); + Main.dust[num228].noGravity = true; + Main.dust[num228].noLight = true; + Main.dust[num228].velocity = vector7; + } + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int damage = 800; + if (player.whoAmI == Main.myPlayer) + { + for (i = 0; i < 8; i++) + { + float ai1 = (Main.rand.NextFloat() + 0.5f); + float randomSpeed = (float)Main.rand.Next(1, 7); + float randomSpeed2 = (float)Main.rand.Next(1, 7); + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, mod.ProjectileType("BloodflareSoul"), damage, 0f, player.whoAmI, 0f, ai1); + Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, mod.ProjectileType("BloodflareSoul"), damage, 0f, player.whoAmI, 0f, ai1); + } + } + } + if (omegaBlueSet && omegaBlueCooldown <= 0) + { + omegaBlueCooldown = 1800; + Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + for (int i = 0; i < 66; i++) + { + int d = Dust.NewDust(player.position, player.width, player.height, 20, 0, 0, 100, Color.Transparent, 2.6f); + Main.dust[d].noGravity = true; + Main.dust[d].noLight = true; + Main.dust[d].fadeIn = 1f; + Main.dust[d].velocity *= 6.6f; + } + } + if (dsSetBonus) + { + Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + for (int num502 = 0; num502 < 36; num502++) + { + int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default(Color), 1f); + Main.dust[dust].velocity *= 3f; + Main.dust[dust].scale *= 1.15f; + } + int num226 = 36; + for (int num227 = 0; num227 < num226; num227++) + { + Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f; + vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + player.Center; + Vector2 vector7 = vector6 - player.Center; + int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 235, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.4f); + Main.dust[num228].noGravity = true; + Main.dust[num228].noLight = true; + Main.dust[num228].velocity = vector7; + } + if (player.whoAmI == Main.myPlayer) + { + player.AddBuff(mod.BuffType("Enraged"), 600, false); + } + if (Main.netMode != 1) + { + for (int l = 0; l < 200; l++) + { + NPC nPC = Main.npc[l]; + if (nPC.active && !nPC.friendly && !nPC.dontTakeDamage && Vector2.Distance(player.Center, nPC.Center) <= 3000f) + { + nPC.AddBuff(mod.BuffType("Enraged"), 600, false); + } + } + } + } + } + if (CalamityMod.AstralArcanumUIHotkey.JustPressed && astralArcanum) + { + AstralArcanumUI.Toggle(); + } + if (CalamityMod.AstralTeleportHotKey.JustPressed) + { + if (celestialJewel) + { + if (Main.netMode == 0) + { + player.TeleportationPotion(); + Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 6); + } + else if (Main.netMode == 1 && player.whoAmI == Main.myPlayer) + { + NetMessage.SendData(73, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + } + if (CalamityMod.AegisHotKey.JustPressed) + { + if (elysianAegis && !player.mount.Active) + { + elysianGuard = !elysianGuard; + } + } + if (CalamityMod.RageHotKey.JustPressed) + { + if (stress == stressMax && !rageMode) + { + Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + for (int num502 = 0; num502 < 64; num502++) + { + int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 235, 0f, 0f, 0, default(Color), 1f); + Main.dust[dust].velocity *= 3f; + Main.dust[dust].scale *= 1.15f; + } + int num226 = 36; + for (int num227 = 0; num227 < num226; num227++) + { + Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f; + vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + player.Center; + Vector2 vector7 = vector6 - player.Center; + int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 235, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.4f); + Main.dust[num228].noGravity = true; + Main.dust[num228].noLight = true; + Main.dust[num228].velocity = vector7; + } + player.AddBuff(mod.BuffType("RageMode"), 300); + } + } + if (CalamityMod.AdrenalineHotKey.JustPressed) + { + if (adrenaline == adrenalineMax && !adrenalineMode) + { + Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); + for (int num502 = 0; num502 < 64; num502++) + { + int dust = Dust.NewDust(new Vector2(player.position.X, player.position.Y + 16f), player.width, player.height - 16, 206, 0f, 0f, 0, default(Color), 1f); + Main.dust[dust].velocity *= 3f; + Main.dust[dust].scale *= 2f; + } + int num226 = 36; + for (int num227 = 0; num227 < num226; num227++) + { + Vector2 vector6 = Vector2.Normalize(player.velocity) * new Vector2((float)player.width / 2f, (float)player.height) * 0.75f; + vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + player.Center; + Vector2 vector7 = vector6 - player.Center; + int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 206, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.4f); + Main.dust[num228].noGravity = true; + Main.dust[num228].noLight = true; + Main.dust[num228].velocity = vector7; + } + player.AddBuff(mod.BuffType("AdrenalineMode"), 300); + } + } + } + #endregion - #region TeleportMethods - public void HandleTeleport(int teleportType, bool forceHandle = false, int whoAmI = 0) - { - bool syncData = forceHandle || Main.netMode == 0; - if (syncData) - { - TeleportPlayer(teleportType, forceHandle, whoAmI); - } - else - { - SyncTeleport(teleportType); - } - } + #region TeleportMethods + public void HandleTeleport(int teleportType, bool forceHandle = false, int whoAmI = 0) + { + bool syncData = forceHandle || Main.netMode == 0; + if (syncData) + { + TeleportPlayer(teleportType, forceHandle, whoAmI); + } + else + { + SyncTeleport(teleportType); + } + } - public static void TeleportPlayer(int teleportType, bool syncData = false, int whoAmI = 0) - { - Player player; - if (!syncData) - { - player = Main.LocalPlayer; - } - else - { - player = Main.player[whoAmI]; - } - switch (teleportType) - { - case 0: UnderworldTeleport(player, syncData); break; - case 1: DungeonTeleport(player, syncData); break; - case 2: JungleTeleport(player, syncData); break; - default: break; - } - } + public static void TeleportPlayer(int teleportType, bool syncData = false, int whoAmI = 0) + { + Player player; + if (!syncData) + { + player = Main.LocalPlayer; + } + else + { + player = Main.player[whoAmI]; + } + switch (teleportType) + { + case 0: UnderworldTeleport(player, syncData); break; + case 1: DungeonTeleport(player, syncData); break; + case 2: JungleTeleport(player, syncData); break; + default: break; + } + } - public void SyncTeleport(int teleportType) - { - ModPacket netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.TeleportPlayer); - netMessage.Write(teleportType); - netMessage.Send(); - } + public void SyncTeleport(int teleportType) + { + ModPacket netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.TeleportPlayer); + netMessage.Write(teleportType); + netMessage.Send(); + } - public static void UnderworldTeleport(Player player, bool syncData = false) - { - int teleportStartX = 100; - int teleportRangeX = Main.maxTilesX - 200; - int teleportStartY = Main.maxTilesY - 200; - int teleportRangeY = 50; - bool flag = false; - int num = 0; - int num2 = 0; - int num3 = 0; - int width = player.width; - Vector2 vector = new Vector2((float)num2, (float)num3) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); - while (!flag && num < 1000) - { - num++; - num2 = teleportStartX + Main.rand.Next(teleportRangeX); - num3 = teleportStartY + Main.rand.Next(teleportRangeY); - vector = new Vector2((float)num2, (float)num3) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); - if (!Collision.SolidCollision(vector, width, player.height)) - { - if (Main.tile[num2, num3] == null) - { - Main.tile[num2, num3] = new Tile(); - } - int i = 0; - while (i < 100) - { - if (Main.tile[num2, num3 + i] == null) - { - Main.tile[num2, num3 + i] = new Tile(); - } - Tile tile = Main.tile[num2, num3 + i]; - vector = new Vector2((float)num2, (float)(num3 + i)) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); - Vector4 vector2 = Collision.SlopeCollision(vector, player.velocity, width, player.height, player.gravDir, false); - bool arg_1FF_0 = !Collision.SolidCollision(vector, width, player.height); - if (vector2.Z == player.velocity.X && vector2.Y == player.velocity.Y && vector2.X == vector.X) - { - bool arg_1FE_0 = vector2.Y == vector.Y; - } - if (arg_1FF_0) - { - i++; - } - else - { - if (tile.active() && !tile.inActive() && Main.tileSolid[(int)tile.type]) - { - break; - } - i++; - } - } - if (!Collision.LavaCollision(vector, width, player.height) && Collision.HurtTiles(vector, player.velocity, width, player.height, false).Y <= 0f) - { - Collision.SlopeCollision(vector, player.velocity, width, player.height, player.gravDir, false); - if (Collision.SolidCollision(vector, width, player.height) && i < 99) - { - Vector2 vector3 = Vector2.UnitX * 16f; - if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) - { - vector3 = -Vector2.UnitX * 16f; - if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) - { - vector3 = Vector2.UnitY * 16f; - if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) - { - vector3 = -Vector2.UnitY * 16f; - if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) - { - flag = true; - num3 += i; - break; - } - } - } - } - } - } - } - } - if (!flag) - { - return; - } - ModTeleport(player, vector, syncData, false); - } + public static void UnderworldTeleport(Player player, bool syncData = false) + { + int teleportStartX = 100; + int teleportRangeX = Main.maxTilesX - 200; + int teleportStartY = Main.maxTilesY - 200; + int teleportRangeY = 50; + bool flag = false; + int num = 0; + int num2 = 0; + int num3 = 0; + int width = player.width; + Vector2 vector = new Vector2((float)num2, (float)num3) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); + while (!flag && num < 1000) + { + num++; + num2 = teleportStartX + Main.rand.Next(teleportRangeX); + num3 = teleportStartY + Main.rand.Next(teleportRangeY); + vector = new Vector2((float)num2, (float)num3) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); + if (!Collision.SolidCollision(vector, width, player.height)) + { + if (Main.tile[num2, num3] == null) + { + Main.tile[num2, num3] = new Tile(); + } + int i = 0; + while (i < 100) + { + if (Main.tile[num2, num3 + i] == null) + { + Main.tile[num2, num3 + i] = new Tile(); + } + Tile tile = Main.tile[num2, num3 + i]; + vector = new Vector2((float)num2, (float)(num3 + i)) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); + Vector4 vector2 = Collision.SlopeCollision(vector, player.velocity, width, player.height, player.gravDir, false); + bool arg_1FF_0 = !Collision.SolidCollision(vector, width, player.height); + if (vector2.Z == player.velocity.X && vector2.Y == player.velocity.Y && vector2.X == vector.X) + { + bool arg_1FE_0 = vector2.Y == vector.Y; + } + if (arg_1FF_0) + { + i++; + } + else + { + if (tile.active() && !tile.inActive() && Main.tileSolid[(int)tile.type]) + { + break; + } + i++; + } + } + if (!Collision.LavaCollision(vector, width, player.height) && Collision.HurtTiles(vector, player.velocity, width, player.height, false).Y <= 0f) + { + Collision.SlopeCollision(vector, player.velocity, width, player.height, player.gravDir, false); + if (Collision.SolidCollision(vector, width, player.height) && i < 99) + { + Vector2 vector3 = Vector2.UnitX * 16f; + if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) + { + vector3 = -Vector2.UnitX * 16f; + if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) + { + vector3 = Vector2.UnitY * 16f; + if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) + { + vector3 = -Vector2.UnitY * 16f; + if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) + { + flag = true; + num3 += i; + break; + } + } + } + } + } + } + } + } + if (!flag) + { + return; + } + ModTeleport(player, vector, syncData, false); + } - public static void DungeonTeleport(Player player, bool syncData = false) - { - ModTeleport(player, new Vector2(Main.dungeonX, Main.dungeonY), syncData, true); - } + public static void DungeonTeleport(Player player, bool syncData = false) + { + ModTeleport(player, new Vector2(Main.dungeonX, Main.dungeonY), syncData, true); + } - public static void JungleTeleport(Player player, bool syncData = false) - { - int jungleSide = CalamityWorld.abyssSide ? ((Main.maxTilesX / 2) + (Main.maxTilesX / 4)) : (Main.maxTilesX / 5); - int teleportStartX = jungleSide; - int teleportRangeX = 200; - int teleportStartY = (int)Main.worldSurface; - int teleportRangeY = 50; - bool flag = false; - int num = 0; - int num2 = 0; - int num3 = 0; - int width = player.width; - Vector2 vector = new Vector2((float)num2, (float)num3) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); - while (!flag && num < 1000) - { - num++; - num2 = teleportStartX + Main.rand.Next(teleportRangeX); - num3 = teleportStartY + Main.rand.Next(teleportRangeY); - vector = new Vector2((float)num2, (float)num3) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); - if (!Collision.SolidCollision(vector, width, player.height)) - { - if (Main.tile[num2, num3] == null) - { - Main.tile[num2, num3] = new Tile(); - } - int i = 0; - while (i < 100) - { - if (Main.tile[num2, num3 + i] == null) - { - Main.tile[num2, num3 + i] = new Tile(); - } - Tile tile = Main.tile[num2, num3 + i]; - vector = new Vector2((float)num2, (float)(num3 + i)) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); - Vector4 vector2 = Collision.SlopeCollision(vector, player.velocity, width, player.height, player.gravDir, false); - bool arg_1FF_0 = !Collision.SolidCollision(vector, width, player.height); - if (vector2.Z == player.velocity.X && vector2.Y == player.velocity.Y && vector2.X == vector.X) - { - bool arg_1FE_0 = vector2.Y == vector.Y; - } - if (arg_1FF_0) - { - i++; - } - else - { - if (tile.active() && !tile.inActive() && Main.tileSolid[(int)tile.type]) - { - break; - } - i++; - } - } - if (!Collision.LavaCollision(vector, width, player.height) && Collision.HurtTiles(vector, player.velocity, width, player.height, false).Y <= 0f) - { - Collision.SlopeCollision(vector, player.velocity, width, player.height, player.gravDir, false); - if (Collision.SolidCollision(vector, width, player.height) && i < 99) - { - Vector2 vector3 = Vector2.UnitX * 16f; - if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) - { - vector3 = -Vector2.UnitX * 16f; - if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) - { - vector3 = Vector2.UnitY * 16f; - if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) - { - vector3 = -Vector2.UnitY * 16f; - if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) - { - flag = true; - num3 += i; - break; - } - } - } - } - } - } - } - } - if (!flag) - { - return; - } - ModTeleport(player, vector, syncData, false); - } + public static void JungleTeleport(Player player, bool syncData = false) + { + int jungleSide = CalamityWorld.abyssSide ? ((Main.maxTilesX / 2) + (Main.maxTilesX / 4)) : (Main.maxTilesX / 5); + int teleportStartX = jungleSide; + int teleportRangeX = 200; + int teleportStartY = (int)Main.worldSurface; + int teleportRangeY = 50; + bool flag = false; + int num = 0; + int num2 = 0; + int num3 = 0; + int width = player.width; + Vector2 vector = new Vector2((float)num2, (float)num3) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); + while (!flag && num < 1000) + { + num++; + num2 = teleportStartX + Main.rand.Next(teleportRangeX); + num3 = teleportStartY + Main.rand.Next(teleportRangeY); + vector = new Vector2((float)num2, (float)num3) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); + if (!Collision.SolidCollision(vector, width, player.height)) + { + if (Main.tile[num2, num3] == null) + { + Main.tile[num2, num3] = new Tile(); + } + int i = 0; + while (i < 100) + { + if (Main.tile[num2, num3 + i] == null) + { + Main.tile[num2, num3 + i] = new Tile(); + } + Tile tile = Main.tile[num2, num3 + i]; + vector = new Vector2((float)num2, (float)(num3 + i)) * 16f + new Vector2((float)(-(float)width / 2 + 8), (float)(-(float)player.height)); + Vector4 vector2 = Collision.SlopeCollision(vector, player.velocity, width, player.height, player.gravDir, false); + bool arg_1FF_0 = !Collision.SolidCollision(vector, width, player.height); + if (vector2.Z == player.velocity.X && vector2.Y == player.velocity.Y && vector2.X == vector.X) + { + bool arg_1FE_0 = vector2.Y == vector.Y; + } + if (arg_1FF_0) + { + i++; + } + else + { + if (tile.active() && !tile.inActive() && Main.tileSolid[(int)tile.type]) + { + break; + } + i++; + } + } + if (!Collision.LavaCollision(vector, width, player.height) && Collision.HurtTiles(vector, player.velocity, width, player.height, false).Y <= 0f) + { + Collision.SlopeCollision(vector, player.velocity, width, player.height, player.gravDir, false); + if (Collision.SolidCollision(vector, width, player.height) && i < 99) + { + Vector2 vector3 = Vector2.UnitX * 16f; + if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) + { + vector3 = -Vector2.UnitX * 16f; + if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) + { + vector3 = Vector2.UnitY * 16f; + if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) + { + vector3 = -Vector2.UnitY * 16f; + if (!(Collision.TileCollision(vector - vector3, vector3, player.width, player.height, false, false, (int)player.gravDir) != vector3)) + { + flag = true; + num3 += i; + break; + } + } + } + } + } + } + } + } + if (!flag) + { + return; + } + ModTeleport(player, vector, syncData, false); + } - public static void ModTeleport(Player player, Vector2 pos, bool syncData = false, bool convertFromTiles = false) - { - bool postImmune = player.immune; - int postImmunteTime = player.immuneTime; - if (convertFromTiles) - { - pos = new Vector2(pos.X * 16 + 8 - player.width / 2, pos.Y * 16 - player.height); - } - player.grappling[0] = -1; - player.grapCount = 0; - for (int index = 0; index < 1000; ++index) - { - if (Main.projectile[index].active && Main.projectile[index].owner == player.whoAmI && Main.projectile[index].aiStyle == 7) - { - Main.projectile[index].Kill(); - } - } - player.Teleport(pos, 2, 0); - player.velocity = Vector2.Zero; - player.immune = postImmune; - player.immuneTime = postImmunteTime; - for (int index = 0; index < 100; ++index) - { - Main.dust[Dust.NewDust(player.position, player.width, player.height, 164, player.velocity.X * 0.2f, player.velocity.Y * 0.2f, 150, Color.Cyan, 1.2f)].velocity *= 0.5f; - } - Main.TeleportEffect(player.getRect(), 1); - Main.TeleportEffect(player.getRect(), 3); - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 6); - if (Main.netMode != 2) - { - return; - } - if (syncData) - { - RemoteClient.CheckSection(player.whoAmI, player.position, 1); - NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, pos.X, pos.Y, 3, 0, 0); - } - } - #endregion + public static void ModTeleport(Player player, Vector2 pos, bool syncData = false, bool convertFromTiles = false) + { + bool postImmune = player.immune; + int postImmunteTime = player.immuneTime; + if (convertFromTiles) + { + pos = new Vector2(pos.X * 16 + 8 - player.width / 2, pos.Y * 16 - player.height); + } + player.grappling[0] = -1; + player.grapCount = 0; + for (int index = 0; index < 1000; ++index) + { + if (Main.projectile[index].active && Main.projectile[index].owner == player.whoAmI && Main.projectile[index].aiStyle == 7) + { + Main.projectile[index].Kill(); + } + } + player.Teleport(pos, 2, 0); + player.velocity = Vector2.Zero; + player.immune = postImmune; + player.immuneTime = postImmunteTime; + for (int index = 0; index < 100; ++index) + { + Main.dust[Dust.NewDust(player.position, player.width, player.height, 164, player.velocity.X * 0.2f, player.velocity.Y * 0.2f, 150, Color.Cyan, 1.2f)].velocity *= 0.5f; + } + Main.TeleportEffect(player.getRect(), 1); + Main.TeleportEffect(player.getRect(), 3); + Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 6); + if (Main.netMode != 2) + { + return; + } + if (syncData) + { + RemoteClient.CheckSection(player.whoAmI, player.position, 1); + NetMessage.SendData(65, -1, -1, null, 0, (float)player.whoAmI, pos.X, pos.Y, 3, 0, 0); + } + } + #endregion - #region UpdateEquips - public override void UpdateVanityAccessories() - { - for (int n = 13; n < 18 + player.extraAccessorySlots; n++) - { - Item item = player.armor[n]; - if (item.type == mod.ItemType()) - { - snowmanHide = false; - snowmanForce = true; - } - else if (item.type == mod.ItemType()) - { - abyssalDivingSuitHide = false; - abyssalDivingSuitForce = true; - } - else if (item.type == mod.ItemType()) - { - sirenBoobsHide = false; - sirenBoobsForce = true; - } - else if (item.type == mod.ItemType()) - { - sirenBoobsAltHide = false; - sirenBoobsAltForce = true; - } - } - } + #region UpdateEquips + public override void UpdateVanityAccessories() + { + for (int n = 13; n < 18 + player.extraAccessorySlots; n++) + { + Item item = player.armor[n]; + if (item.type == mod.ItemType()) + { + snowmanHide = false; + snowmanForce = true; + } + else if (item.type == mod.ItemType()) + { + abyssalDivingSuitHide = false; + abyssalDivingSuitForce = true; + } + else if (item.type == mod.ItemType()) + { + sirenBoobsHide = false; + sirenBoobsForce = true; + } + else if (item.type == mod.ItemType()) + { + sirenBoobsAltHide = false; + sirenBoobsAltForce = true; + } + } + } - public override void UpdateEquips(ref bool wallSpeedBuff, ref bool tileSpeedBuff, ref bool tileRangeBuff) - { - if (snowman) - { - if (player.whoAmI == Main.myPlayer && !snowmanNoseless) - { - player.AddBuff(mod.BuffType(), 60, true); - } - } - if (abyssalDivingSuit) - { - player.AddBuff(mod.BuffType(), 60, true); - if (player.whoAmI == Main.myPlayer) - { - if (abyssalDivingSuitCooldown) - { - for (int l = 0; l < 22; l++) - { - int hasBuff = player.buffType[l]; - if (player.buffTime[l] < 30 && hasBuff == mod.BuffType("AbyssalDivingSuitPlatesBroken")) - { - abyssalDivingSuitPlateHits = 0; - player.DelBuff(l); - l = -1; - } - } - } - else - { - player.AddBuff(mod.BuffType("AbyssalDivingSuitPlates"), 2); - } - } - } - if (sirenBoobs) - { - player.AddBuff(mod.BuffType(), 60, true); - } - else if (sirenBoobsAlt) - { - player.AddBuff(mod.BuffType(), 60, true); - } - if ((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3) - { - if (player.whoAmI == Main.myPlayer && !sirenIceCooldown) - { - player.AddBuff(mod.BuffType("IceShieldBuff"), 2); - } - } - } - #endregion + public override void UpdateEquips(ref bool wallSpeedBuff, ref bool tileSpeedBuff, ref bool tileRangeBuff) + { + #region MeleeSpeed + float meleeSpeedMult = 0f; + if (bBlood) + { + meleeSpeedMult += 0.025f; + } + if (rRage) + { + meleeSpeedMult += 0.05f; + } + if (graxDefense) + { + meleeSpeedMult += 0.05f; + } + if (sMeleeBoost) + { + meleeSpeedMult += 0.05f; + } + if (yPower) + { + meleeSpeedMult += 0.05f; + } + if (darkSunRing) + { + meleeSpeedMult += 0.1f; + } + if (badgeOfBravery) + { + meleeSpeedMult += 0.15f; + } + if (eGauntlet) + { + meleeSpeedMult += 0.15f; + } + if (yInsignia) + { + meleeSpeedMult += 0.1f; + } + if (bloodyMary) + { + if (Main.bloodMoon) + { + meleeSpeedMult += 0.15f; + } + } + if (community) + { + float floatTypeBoost = 0.01f + + (NPC.downedSlimeKing ? 0.01f : 0f) + + (NPC.downedBoss1 ? 0.01f : 0f) + + (NPC.downedBoss2 ? 0.01f : 0f) + + (NPC.downedQueenBee ? 0.01f : 0f) + //0.05 + (NPC.downedBoss3 ? 0.01f : 0f) + + (Main.hardMode ? 0.01f : 0f) + + (NPC.downedMechBossAny ? 0.01f : 0f) + + (NPC.downedPlantBoss ? 0.01f : 0f) + + (NPC.downedGolemBoss ? 0.01f : 0f) + //0.1 + (NPC.downedFishron ? 0.01f : 0f) + + (NPC.downedAncientCultist ? 0.01f : 0f) + + (NPC.downedMoonlord ? 0.01f : 0f) + + (CalamityWorld.downedProvidence ? 0.02f : 0f) + //0.15 + (CalamityWorld.downedDoG ? 0.02f : 0f) + //0.17 + (CalamityWorld.downedYharon ? 0.03f : 0f); //0.2 + meleeSpeedMult += (floatTypeBoost * 0.25f); + } + if (meleeLevel >= 12500) + { + meleeSpeedMult += 0.12f; + } + else if (meleeLevel >= 10500) + { + meleeSpeedMult += 0.1f; + } + else if (meleeLevel >= 9100) + { + meleeSpeedMult += 0.09f; + } + else if (meleeLevel >= 7800) + { + meleeSpeedMult += 0.08f; + } + else if (meleeLevel >= 6600) + { + meleeSpeedMult += 0.07f; + } + else if (meleeLevel >= 5500) //hm limit + { + meleeSpeedMult += 0.06f; + } + else if (meleeLevel >= 4500) + { + meleeSpeedMult += 0.05f; + } + else if (meleeLevel >= 3600) + { + meleeSpeedMult += 0.05f; + } + else if (meleeLevel >= 2800) + { + meleeSpeedMult += 0.04f; + } + else if (meleeLevel >= 2100) + { + meleeSpeedMult += 0.03f; + } + else if (meleeLevel >= 1500) //prehm limit + { + meleeSpeedMult += 0.02f; + } + else if (meleeLevel >= 1000) + { + meleeSpeedMult += 0.01f; + } + else if (meleeLevel >= 600) + { + meleeSpeedMult += 0.01f; + } + if (eArtifact) + { + meleeSpeedMult += 0.1f; + } + player.meleeSpeed += meleeSpeedMult; + #endregion - #region PreUpdateBuffs - public override void PreUpdateBuffs() - { - //Remove the mighty wind buff if the player is in the astral desert. - if (player.ZoneDesert && ZoneAstral && player.HasBuff(BuffID.WindPushed)) - { - player.ClearBuff(BuffID.WindPushed); - } - } - #endregion + if (snowman) + { + if (player.whoAmI == Main.myPlayer && !snowmanNoseless) + { + player.AddBuff(mod.BuffType(), 60, true); + } + } + if (abyssalDivingSuit) + { + player.AddBuff(mod.BuffType(), 60, true); + if (player.whoAmI == Main.myPlayer) + { + if (abyssalDivingSuitCooldown) + { + for (int l = 0; l < 22; l++) + { + int hasBuff = player.buffType[l]; + if (player.buffTime[l] < 30 && hasBuff == mod.BuffType("AbyssalDivingSuitPlatesBroken")) + { + abyssalDivingSuitPlateHits = 0; + player.DelBuff(l); + l = -1; + } + } + } + else + { + player.AddBuff(mod.BuffType("AbyssalDivingSuitPlates"), 2); + } + } + } + if (sirenBoobs) + { + player.AddBuff(mod.BuffType(), 60, true); + } + else if (sirenBoobsAlt) + { + player.AddBuff(mod.BuffType(), 60, true); + } + if ((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3) + { + if (player.whoAmI == Main.myPlayer && !sirenIceCooldown) + { + player.AddBuff(mod.BuffType("IceShieldBuff"), 2); + } + } + } + #endregion + + #region PreUpdateBuffs + public override void PreUpdateBuffs() + { + //Remove the mighty wind buff if the player is in the astral desert. + if (player.ZoneDesert && ZoneAstral && player.HasBuff(BuffID.WindPushed)) + { + player.ClearBuff(BuffID.WindPushed); + } + } + #endregion + + #region PostUpdateEffects + public override void PostUpdateBuffs() + { + if (NOU) + NOULOL(); + + if (CalamityWorld.defiled) + Defiled(); + + if (weakPetrification) + WeakPetrification(); + + if (player.mount.Active || player.mount.Cart) + { + player.dashDelay = 60; + dashMod = 0; + } + + if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) + { + if (player.lifeRegen < 0) + player.lifeRegen = 0; + } + } - #region PostUpdateEffects - public override void PostUpdateBuffs() - { - if (NOU) - NOULOL(); - if (CalamityWorld.defiled) - Defiled(); - if (weakPetrification) - WeakPetrification(); - if (player.mount.Active || player.mount.Cart) - { - player.dashDelay = 60; - dashMod = 0; - } - if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) - { - if (player.lifeRegen < 0) - player.lifeRegen = 0; - } - } - public override void PostUpdateEquips() { - if (NOU) - NOULOL(); - if (CalamityWorld.defiled) - Defiled(); - if (weakPetrification) - WeakPetrification(); - if (player.mount.Active || player.mount.Cart) - { - player.dashDelay = 60; - dashMod = 0; - } - if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) - { - if (player.lifeRegen < 0) - player.lifeRegen = 0; - } - } + if (NOU) + NOULOL(); - private void ExactLevelUp(int levelUpType, int level, bool final) - { - Color messageColor = Color.Orange; - switch (levelUpType) - { - case 0: - exactMeleeLevel = level; - if (shootFireworksLevelUpMelee) - { - string key = (final ? "Mods.CalamityMod.MeleeLevelUpFinal" : "Mods.CalamityMod.MeleeLevelUp"); - shootFireworksLevelUpMelee = false; - if (player.whoAmI == Main.myPlayer) - { - if (final) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 1f); - } - else - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 0f); - } - } - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - break; - case 1: - exactRangedLevel = level; - if (shootFireworksLevelUpRanged) - { - string key = (final ? "Mods.CalamityMod.RangedLevelUpFinal" : "Mods.CalamityMod.RangedLevelUp"); - messageColor = Color.GreenYellow; - shootFireworksLevelUpRanged = false; - if (player.whoAmI == Main.myPlayer) - { - if (final) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 1f); - } - else - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 0f); - } - } - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - break; - case 2: - exactMagicLevel = level; - if (shootFireworksLevelUpMagic) - { - string key = (final ? "Mods.CalamityMod.MagicLevelUpFinal" : "Mods.CalamityMod.MagicLevelUp"); - messageColor = Color.DodgerBlue; - shootFireworksLevelUpMagic = false; - if (player.whoAmI == Main.myPlayer) - { - if (final) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 1f); - } - else - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 0f); - } - } - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - break; - case 3: - exactSummonLevel = level; - if (shootFireworksLevelUpSummon) - { - string key = (final ? "Mods.CalamityMod.SummonLevelUpFinal" : "Mods.CalamityMod.SummonLevelUp"); - messageColor = Color.Aquamarine; - shootFireworksLevelUpSummon = false; - if (player.whoAmI == Main.myPlayer) - { - if (final) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 1f); - } - else - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 0f); - } - } - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - break; - case 4: - exactRogueLevel = level; - if (shootFireworksLevelUpRogue) - { - string key = (final ? "Mods.CalamityMod.RogueLevelUpFinal" : "Mods.CalamityMod.RogueLevelUp"); - messageColor = Color.Orchid; - shootFireworksLevelUpRogue = false; - if (player.whoAmI == Main.myPlayer) - { - if (final) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 1f); - } - else - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), - 0, 0f, Main.myPlayer, 0f, 0f); - } - } - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - break; - } - if (Main.netMode == 1) - { - ExactLevelPacket(false, levelUpType); - } - } + if (CalamityWorld.defiled) + Defiled(); - public override void PostUpdateMiscEffects() - { - Main.expertDebuffTime = 1f; - areThereAnyDamnBosses = CalamityGlobalNPC.AnyBossNPCS(); - #region RevengeanceEffects - if (CalamityWorld.revenge && player.whoAmI == Main.myPlayer) - { - if (player.onHitDodge) - { - for (int l = 0; l < 22; l++) - { - int hasBuff = player.buffType[l]; - if (player.buffTime[l] > 360 && hasBuff == BuffID.ShadowDodge) - { - player.buffTime[l] = 360; - } - } - } - if (player.immuneTime > 120) - { - player.immuneTime = 120; - } - int stressGain = 0; - if (rageMode) - { - stressGain = -2000; - } - else - { - if (draedonsHeart) - { - if (draedonsStressGain) - { - stressGain += 50; - } - } - else if (heartOfDarkness) - { - stressGain += 25; - } - } - stressCD++; - if (stressCD >= 60) - { - stressCD = 0; - stress += stressGain; - if (stress < 0) - { - stress = 0; - } - if (stress >= stressMax) - { - if (playFullRageSound) - { - playFullRageSound = false; - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/FullRage"), (int)player.position.X, (int)player.position.Y); - } - stress = stressMax; - } - else - { - playFullRageSound = true; - } - } - stressLevel500 = stress >= 9800; - if (stressLevel500 && !hAttack) - { - if (Main.rand.Next(10000) == 0) - { - player.AddBuff(mod.BuffType("HeartAttack"), 18000); - } - } - if (adrenaline >= adrenalineMax) - { - adrenalineMaxTimer--; - if (adrenalineMaxTimer <= 0) - { - adrenalineDmgDown--; - if (adrenalineDmgDown < 0) - adrenalineDmgDown = 0; - adrenalineMaxTimer = 0; - } - } - else if (!adrenalineMode && adrenaline <= 0) - { - adrenalineDmgDown = 600; - adrenalineMaxTimer = 180; - adrenalineDmgMult = 1f; - } - adrenalineDmgMult = 0.1f * (float)(adrenalineDmgDown / 60); - if (adrenalineDmgMult < 0.33f) - adrenalineDmgMult = 0.33f; - int adrenalineGain = 0; - if (adrenalineMode) - { - adrenalineGain = (CalamityGlobalNPC.SCal > -1 ? -10000 : -2000); - } - else - { - if (Main.wof >= 0 && player.position.Y < (float)((Main.maxTilesY - 200) * 16)) // > - { - adrenaline = 0; - } - else if (areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0) - { - int adrenalineTickBoost = 0 + - (adrenalineBoostOne ? 63 : 0) + //286 - (adrenalineBoostTwo ? 115 : 0) + //401 - (adrenalineBoostThree ? 100 : 0); //501 - adrenalineGain = 223 + adrenalineTickBoost; //pre-slime god = 45, pre-astrum deus = 35, pre-polterghast = 25, post-polter = 20 - } - else - { - adrenaline = 0; - } - } - adrenalineCD++; - if (adrenalineCD >= (CalamityGlobalNPC.SCal > -1 ? 135 : 60)) - { - adrenalineCD = 0; - adrenaline += adrenalineGain; - if (adrenaline < 0) - { - adrenaline = 0; - } - if (adrenaline >= adrenalineMax) - { - if (playFullAdrenalineSound) - { - playFullAdrenalineSound = false; - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/FullAdrenaline"), (int)player.position.X, (int)player.position.Y); - } - adrenaline = adrenalineMax; - } - else - { - playFullAdrenalineSound = true; - } - } - } - else if (!CalamityWorld.revenge && player.whoAmI == Main.myPlayer) - { - stressCD++; - if (stressCD >= 60) - { - stressCD = 0; - stress += -30; - if (stress < 0) - { - stress = 0; - } - } - adrenalineCD++; - if (adrenalineCD >= 60) - { - adrenalineCD = 0; - adrenaline += -30; - if (adrenaline < 0) - { - adrenaline = 0; - } - } - } - if (player.whoAmI == Main.myPlayer && Main.netMode == 1) - { - packetTimer++; - if (packetTimer == 60) - { - packetTimer = 0; - StressPacket(false); - AdrenalinePacket(false); - } - } - if (CalamityWorld.revenge) - { - if (player.lifeSteal > (CalamityWorld.death ? 30f : 40f)) - { - player.lifeSteal = (CalamityWorld.death ? 30f : 40f); - } - } - #endregion - #region StressTiedEffects - if (stressPills) - { - player.statDefense += 5; - player.meleeDamage += 0.06f; - player.magicDamage += 0.06f; - player.rangedDamage += 0.06f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; - player.minionDamage += 0.06f; - } - if (laudanum) - { - player.statDefense += 8; - player.meleeDamage += 0.06f; - player.magicDamage += 0.06f; - player.rangedDamage += 0.06f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; - player.minionDamage += 0.06f; - } - if (!stressLevel500 && player.FindBuffIndex(mod.BuffType("HeartAttack")) > -1) { player.ClearBuff(mod.BuffType("HeartAttack")); } - if (draedonsHeart && (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) - { - player.statDefense += 50; - } - if (hAttack) - { - if (heartOfDarkness || draedonsHeart) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.rangedDamage += 0.1f; - player.meleeDamage += 0.1f; - player.magicDamage += 0.1f; - player.minionDamage += 0.1f; - } - player.statLifeMax2 += player.statLifeMax / 5 / 20 * 5; - } - if (affliction) - { - player.lifeRegen += 1; - player.endurance += CalamityWorld.revenge ? 0.07f : 0.05f; - player.statDefense += CalamityWorld.revenge ? 20 : 15; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.rangedDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.meleeDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.magicDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.minionDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.statLifeMax2 += CalamityWorld.revenge ? (player.statLifeMax / 5 / 20 * 10) : (player.statLifeMax / 5 / 20 * 5); - } - else if (afflicted) - { - player.lifeRegen += 1; - player.endurance += CalamityWorld.revenge ? 0.07f : 0.05f; - player.statDefense += CalamityWorld.revenge ? 20 : 15; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.rangedDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.meleeDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.magicDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.minionDamage += CalamityWorld.revenge ? 0.12f : 0.1f; - player.statLifeMax2 += CalamityWorld.revenge ? (player.statLifeMax / 5 / 20 * 10) : (player.statLifeMax / 5 / 20 * 5); - } - if (afflictedBuff) { afflicted = true; } - #endregion - #region MaxLifeAndManaBoosts - player.statLifeMax2 += - (mFruit ? 25 : 0) + - (bOrange ? 25 : 0) + - (eBerry ? 25 : 0) + - (dFruit ? 25 : 0); - if (silvaHitCounter > 0) - { - player.statLifeMax2 -= silvaHitCounter * 100; - if (player.statLifeMax2 < 200) - { - player.statLifeMax2 = 200; - } - } - player.statManaMax2 += - (pHeart ? 50 : 0) + - (eCore ? 50 : 0) + - (cShard ? 50 : 0) + - (starBeamRye ? 50 : 0); - if (Main.netMode != 2 && player.whoAmI == Main.myPlayer) - { - Texture2D rain3 = mod.GetTexture("ExtraTextures/Rain3"); - Texture2D rainOriginal = mod.GetTexture("ExtraTextures/RainOriginal"); - Texture2D mana2 = mod.GetTexture("ExtraTextures/Mana2"); - Texture2D mana3 = mod.GetTexture("ExtraTextures/Mana3"); - Texture2D mana4 = mod.GetTexture("ExtraTextures/Mana4"); - Texture2D manaOriginal = mod.GetTexture("ExtraTextures/ManaOriginal"); - Texture2D carpetAuric = mod.GetTexture("ExtraTextures/AuricCarpet"); - Texture2D carpetOriginal = mod.GetTexture("ExtraTextures/Carpet"); - int totalManaBoost = - (pHeart ? 1 : 0) + - (eCore ? 1 : 0) + - (cShard ? 1 : 0); - switch (totalManaBoost) - { - default: - Main.manaTexture = manaOriginal; - break; - case 3: - Main.manaTexture = mana4; - break; - case 2: - Main.manaTexture = mana3; - break; - case 1: - Main.manaTexture = mana2; - break; - } - if (Main.bloodMoon) { Main.rainTexture = rainOriginal; } - else if (Main.raining && ZoneSulphur) { Main.rainTexture = rain3; } - else { Main.rainTexture = rainOriginal; } - if (auricSet) { Main.flyingCarpetTexture = carpetAuric; } - else { Main.flyingCarpetTexture = carpetOriginal; } - } - #endregion - #region MiscEffects - if (gainLevelCooldown > 0) - gainLevelCooldown--; - #region MeleeLevels - switch (meleeLevel) - { - case 100: - ExactLevelUp(0, 1, false); - break; - case 300: - ExactLevelUp(0, 2, false); - break; - case 600: - ExactLevelUp(0, 3, false); - break; - case 1000: - ExactLevelUp(0, 4, false); - break; - case 1500: - ExactLevelUp(0, 5, false); - break; - case 2100: - ExactLevelUp(0, 6, false); - break; - case 2800: - ExactLevelUp(0, 7, false); - break; - case 3600: - ExactLevelUp(0, 8, false); - break; - case 4500: - ExactLevelUp(0, 9, false); - break; - case 5500: - ExactLevelUp(0, 10, false); - break; - case 6600: - ExactLevelUp(0, 11, false); - break; - case 7800: - ExactLevelUp(0, 12, false); - break; - case 9100: - ExactLevelUp(0, 13, false); - break; - case 10500: - ExactLevelUp(0, 14, false); - break; - case 12500: //celebration or some shit for final level, yay - ExactLevelUp(0, 15, true); - break; - default: - break; - } - #endregion - #region RangedLevels - switch (rangedLevel) - { - case 100: - ExactLevelUp(1, 1, false); - break; - case 300: - ExactLevelUp(1, 2, false); - break; - case 600: - ExactLevelUp(1, 3, false); - break; - case 1000: - ExactLevelUp(1, 4, false); - break; - case 1500: - ExactLevelUp(1, 5, false); - break; - case 2100: - ExactLevelUp(1, 6, false); - break; - case 2800: - ExactLevelUp(1, 7, false); - break; - case 3600: - ExactLevelUp(1, 8, false); - break; - case 4500: - ExactLevelUp(1, 9, false); - break; - case 5500: - ExactLevelUp(1, 10, false); - break; - case 6600: - ExactLevelUp(1, 11, false); - break; - case 7800: - ExactLevelUp(1, 12, false); - break; - case 9100: - ExactLevelUp(1, 13, false); - break; - case 10500: - ExactLevelUp(1, 14, false); - break; - case 12500: //celebration or some shit for final level, yay - ExactLevelUp(1, 15, true); - break; - default: - break; - } - #endregion - #region MagicLevels - switch (magicLevel) - { - case 100: - ExactLevelUp(2, 1, false); - break; - case 300: - ExactLevelUp(2, 2, false); - break; - case 600: - ExactLevelUp(2, 3, false); - break; - case 1000: - ExactLevelUp(2, 4, false); - break; - case 1500: - ExactLevelUp(2, 5, false); - break; - case 2100: - ExactLevelUp(2, 6, false); - break; - case 2800: - ExactLevelUp(2, 7, false); - break; - case 3600: - ExactLevelUp(2, 8, false); - break; - case 4500: - ExactLevelUp(2, 9, false); - break; - case 5500: - ExactLevelUp(2, 10, false); - break; - case 6600: - ExactLevelUp(2, 11, false); - break; - case 7800: - ExactLevelUp(2, 12, false); - break; - case 9100: - ExactLevelUp(2, 13, false); - break; - case 10500: - ExactLevelUp(2, 14, false); - break; - case 12500: //celebration or some shit for final level, yay - ExactLevelUp(2, 15, true); - break; - default: - break; - } - #endregion - #region SummonLevels - switch (summonLevel) - { - case 100: - ExactLevelUp(3, 1, false); - break; - case 300: - ExactLevelUp(3, 2, false); - break; - case 600: - ExactLevelUp(3, 3, false); - break; - case 1000: - ExactLevelUp(3, 4, false); - break; - case 1500: - ExactLevelUp(3, 5, false); - break; - case 2100: - ExactLevelUp(3, 6, false); - break; - case 2800: - ExactLevelUp(3, 7, false); - break; - case 3600: - ExactLevelUp(3, 8, false); - break; - case 4500: - ExactLevelUp(3, 9, false); - break; - case 5500: - ExactLevelUp(3, 10, false); - break; - case 6600: - ExactLevelUp(3, 11, false); - break; - case 7800: - ExactLevelUp(3, 12, false); - break; - case 9100: - ExactLevelUp(3, 13, false); - break; - case 10500: - ExactLevelUp(3, 14, false); - break; - case 12500: //celebration or some shit for final level, yay - ExactLevelUp(3, 15, true); - break; - default: - break; - } - #endregion - #region RogueLevels - switch (rogueLevel) - { - case 100: - ExactLevelUp(4, 1, false); - break; - case 300: - ExactLevelUp(4, 2, false); - break; - case 600: - ExactLevelUp(4, 3, false); - break; - case 1000: - ExactLevelUp(4, 4, false); - break; - case 1500: - ExactLevelUp(4, 5, false); - break; - case 2100: - ExactLevelUp(4, 6, false); - break; - case 2800: - ExactLevelUp(4, 7, false); - break; - case 3600: - ExactLevelUp(4, 8, false); - break; - case 4500: - ExactLevelUp(4, 9, false); - break; - case 5500: - ExactLevelUp(4, 10, false); - break; - case 6600: - ExactLevelUp(4, 11, false); - break; - case 7800: - ExactLevelUp(4, 12, false); - break; - case 9100: - ExactLevelUp(4, 13, false); - break; - case 10500: - ExactLevelUp(4, 14, false); - break; - case 12500: //celebration or some shit for final level, yay - ExactLevelUp(4, 15, true); - break; - default: - break; - } - #endregion - if (Main.myPlayer == player.whoAmI) - { - BossHealthBarManager.SHOULD_DRAW_SMALLTEXT_HEALTH = shouldDrawSmallText; - } - if (silvaSet || invincible || margarita) - { - foreach (int debuff in CalamityMod.debuffList) { player.buffImmune[debuff] = true; } - } - if (Main.expertMode && player.ZoneSnow && player.wet && !player.lavaWet && !player.honeyWet && !player.arcticDivingGear) - { - player.buffImmune[BuffID.Chilled] = true; - if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) - { - if (Main.myPlayer == player.whoAmI && !player.gills && !player.merman) - { - if (player.breath > 0) - player.breath--; - } - } - } - if (ZoneAbyss) - { - if (abyssalAmulet) { player.statLifeMax2 += player.statLifeMax2 / 5 / 20 * (lumenousAmulet ? 15 : 10); } - if (Main.myPlayer == player.whoAmI) //4200 total tiles small world - { - int breathLoss = 2; - int lightStrength = 0 + - ((player.lightOrb || player.crimsonHeart || player.magicLantern) ? 1 : 0) + //1 - (player.arcticDivingGear ? 1 : 0) + //2 - (jellyfishNecklace ? 1 : 0) + //3 - ((player.blueFairy || player.greenFairy || player.redFairy || player.petFlagDD2Ghost) ? 2 : 0) + //5 - ((shine || lumenousAmulet) ? 2 : 0) + //7 - ((player.wisp || player.suspiciouslookingTentacle || sirenPet) ? 3 : 0); //10 - bool lightLevelOne = lightStrength > 0; //1+ - bool lightLevelTwo = lightStrength > 2; //3+ - bool lightLevelThree = lightStrength > 4; //5+ - bool lightLevelFour = lightStrength > 6; //7+ - if (ZoneAbyssLayer4) //3200 and below - { - breathLoss = 54; - if (!lightLevelFour) { player.blind = true; } - if (!lightLevelThree) { player.headcovered = true; } - if (!depthCharm) { player.bleed = true; } - player.statDefense -= (anechoicPlating ? 40 : 120); - } - else if (ZoneAbyssLayer3) //2700 to 3200 - { - breathLoss = 18; - if (!lightLevelThree) { player.blind = true; } - if (!lightLevelTwo) { player.headcovered = true; } - if (!depthCharm) { player.bleed = true; } - player.statDefense -= (anechoicPlating ? 20 : 60); - } - else if (ZoneAbyssLayer2) //2100 to 2700 - { - breathLoss = 6; - if (!lightLevelTwo) { player.blind = true; } - if (!depthCharm) { player.bleed = true; } - player.statDefense -= (anechoicPlating ? 10 : 30); - } - else if (ZoneAbyssLayer1) //1500 to 2100 - { - if (!lightLevelOne) { player.blind = true; } - player.statDefense -= (anechoicPlating ? 5 : 15); - } - double breathLossMult = 1.0 - - (player.gills ? 0.2 : 0.0) - //0.8 - (player.accDivingHelm ? 0.25 : 0.0) - //0.75 - (player.arcticDivingGear ? 0.25 : 0.0) - //0.75 - (player.accMerman ? 0.3 : 0.0) - //0.7 - (victideSet ? 0.2 : 0.0) - //0.85 - (((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3) ? 0.3 : 0.0) - //0.7 - (abyssalDivingSuit ? 0.3 : 0.0); //0.7 - if (breathLossMult < 0.05) { breathLossMult = 0.05; } - breathLoss = (int)((double)breathLoss * breathLossMult); - int tick = 6; - double tickMult = 1.0 + - (player.gills ? 4.0 : 0.0) + //5 - (player.ignoreWater ? 5.0 : 0.0) + //10 - (player.accDivingHelm ? 10.0 : 0.0) + //20 - (player.arcticDivingGear ? 10.0 : 0.0) + //30 - (player.accMerman ? 15.0 : 0.0) + //45 - (victideSet ? 5.0 : 0.0) + //50 - (((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3) ? 15.0 : 0.0) + //65 - (abyssalDivingSuit ? 15.0 : 0.0); //80 - if (tickMult > 50.0) { tickMult = 50.0; } - tick = (int)((double)tick * tickMult); - abyssBreathCD++; - if (player.gills || player.merman) - { - if (player.breath > 0) - player.breath -= 3; - } - if (!Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) - { - if (player.statLife > 100) - { - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= 160; - } - } - if (abyssBreathCD >= tick) - { - abyssBreathCD = 0; - if (player.breath > 0) - player.breath -= breathLoss; - if (cDepth) - { - if (player.breath > 0) - player.breath--; - } - if (player.breath <= 0) - { - int lifeLoss = 6 + - (player.bleed ? 6 : 0) - - (depthCharm ? 3 : 0); - player.statLife -= lifeLoss; - if (player.statLife <= 0) - { - KillPlayer(); - } - } - } - } - } - else - { - abyssBreathCD = 0; - } - if ((Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) && ironBoots) || - (aeroSet && !Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))) - { - player.maxFallSpeed = 15f; - } - if (omegaBlueSet) //should apply after rev caps, actually those are gone so AAAAA - { - //add tentacles - if (player.ownedProjectileCounts[mod.ProjectileType("OmegaBlueTentacle")] < 6) - { - bool[] tentaclesPresent = new bool[6]; - for (int i = 0; i < 1000; i++) - { - Projectile projectile = Main.projectile[i]; - if (projectile.active && projectile.type == mod.ProjectileType("OmegaBlueTentacle") && projectile.owner == Main.myPlayer && projectile.ai[1] >= 0f && projectile.ai[1] < 6f) - { - tentaclesPresent[(int)projectile.ai[1]] = true; - } - } - for (int i = 0; i < 6; i++) - { - if (!tentaclesPresent[i]) - { - float modifier = player.meleeDamage + player.magicDamage + player.rangedDamage + - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage + player.minionDamage; - modifier /= 5f; - int damage = (int)(666 * modifier); - Vector2 vel = new Vector2(Main.rand.Next(-13, 14), Main.rand.Next(-13, 14)) * 0.25f; - Projectile.NewProjectile(player.Center, vel, mod.ProjectileType("OmegaBlueTentacle"), damage, 8f, Main.myPlayer, Main.rand.Next(120), i); - } - } - } - float damageUp = 0.1f; - int critUp = 10; - if (omegaBlueHentai) - { - damageUp *= 2f; - critUp *= 2; - } - player.meleeDamage += damageUp; - player.rangedDamage += damageUp; - player.magicDamage += damageUp; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; - player.minionDamage += damageUp; - player.meleeCrit += critUp; - player.rangedCrit += critUp; - player.magicCrit += critUp; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; - } - if (!bOut) - { - if (gHealer) - { - if (healCounter > 0) { healCounter--; } - if (healCounter <= 0) - { - healCounter = 300; - if (player.whoAmI == Main.myPlayer) - { - int healAmount = 5 + - (gDefense ? 5 : 0) + - (gOffense ? 5 : 0); - player.statLife += healAmount; - player.HealEffect(healAmount); - } - } - } - if (gDefense) - { - player.moveSpeed += 0.1f + - (gOffense ? 0.1f : 0f); - player.endurance += 0.025f + - (gOffense ? 0.025f : 0f); - } - if (gOffense) - { - player.minionDamage += 0.1f + - (gDefense ? 0.05f : 0f); - player.maxMinions++; - } - } - if (revivifyTimer > 0) { revivifyTimer--; } - if (fleshTotemCooldown > 0) { fleshTotemCooldown--; } - if (astralStarRainCooldown > 0) { astralStarRainCooldown--; } - if (bloodflareMageCooldown > 0) { bloodflareMageCooldown--; } - if (tarraMageHealCooldown > 0) { tarraMageHealCooldown--; } - if (ataxiaDmg > 0) { ataxiaDmg--; } - if (xerocDmg > 0) { xerocDmg--; } - if (godSlayerDmg > 0) { godSlayerDmg--; } - if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) - { - player.buffImmune[mod.BuffType("VulnerabilityHex")] = true; - silvaCountdown--; - for (int j = 0; j < 2; j++) - { - int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 2f); - Dust expr_A4_cp_0 = Main.dust[num]; - expr_A4_cp_0.position.X = expr_A4_cp_0.position.X + (float)Main.rand.Next(-20, 21); - Dust expr_CB_cp_0 = Main.dust[num]; - expr_CB_cp_0.position.Y = expr_CB_cp_0.position.Y + (float)Main.rand.Next(-20, 21); - Main.dust[num].velocity *= 0.9f; - Main.dust[num].noGravity = true; - Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; - Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player); - if (Main.rand.Next(2) == 0) - { - Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; - } - } - } - if (tarraMelee) - { - if (tarraDefense) - { - tarraDefenseTime--; - if (tarraDefenseTime <= 0) - { - tarraDefenseTime = 600; - tarraCooldown = 1800; - tarraDefense = false; - } - for (int j = 0; j < 2; j++) - { - int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 2f); - Dust expr_A4_cp_0 = Main.dust[num]; - expr_A4_cp_0.position.X = expr_A4_cp_0.position.X + (float)Main.rand.Next(-20, 21); - Dust expr_CB_cp_0 = Main.dust[num]; - expr_CB_cp_0.position.Y = expr_CB_cp_0.position.Y + (float)Main.rand.Next(-20, 21); - Main.dust[num].velocity *= 0.9f; - Main.dust[num].noGravity = true; - Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; - Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player); - if (Main.rand.Next(2) == 0) - { - Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; - } - } - } - if (tarraCooldown > 0) { tarraCooldown--; } - } - if (tarraThrowing) - { - if (tarraThrowingCritTimer > 0) { tarraThrowingCritTimer--; } - if (tarraThrowingCrits >= 25) - { - tarraThrowingCrits = 0; - tarraThrowingCritTimer = 1800; - player.immune = true; - player.immuneTime = 300; - } - for (int l = 0; l < 22; l++) - { - int hasBuff = player.buffType[l]; - bool shouldAffect = CalamityMod.debuffList.Contains(hasBuff); - if (shouldAffect) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - } - } - } - if (bloodflareSet) - { - if (bloodflareHeartTimer > 0) { bloodflareHeartTimer--; } - if (bloodflareManaTimer > 0) { bloodflareManaTimer--; } - } - if (bloodflareMelee) - { - if (bloodflareMeleeHits >= 15) - { - bloodflareMeleeHits = 0; - bloodflareFrenzyTimer = 300; - } - if (bloodflareFrenzyTimer > 0) - { - bloodflareFrenzyTimer--; - if (bloodflareFrenzyTimer <= 0) - { - bloodflareFrenzyCooldown = 1800; - } - player.meleeCrit += 25; - player.meleeDamage += 0.25f; - for (int j = 0; j < 2; j++) - { - int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 5, 0f, 0f, 100, default(Color), 2f); - Dust expr_A4_cp_0 = Main.dust[num]; - expr_A4_cp_0.position.X = expr_A4_cp_0.position.X + (float)Main.rand.Next(-20, 21); - Dust expr_CB_cp_0 = Main.dust[num]; - expr_CB_cp_0.position.Y = expr_CB_cp_0.position.Y + (float)Main.rand.Next(-20, 21); - Main.dust[num].velocity *= 0.9f; - Main.dust[num].noGravity = true; - Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; - Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player); - if (Main.rand.Next(2) == 0) - { - Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; - } - } - } - if (bloodflareFrenzyCooldown > 0) { bloodflareFrenzyCooldown--; } - } - if (bloodflareRanged) - { - if (bloodflareRangedCooldown > 0) { bloodflareRangedCooldown--; } - } - if (Main.raining && ZoneSulphur) - { - if (player.ZoneOverworldHeight || player.ZoneSkyHeight) { player.AddBuff(mod.BuffType("Irradiated"), 2); } - } - if (raiderTalisman) { CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += ((float)raiderStack / 250f) * 0.15f; } - if (silvaCountdown <= 0 && hasSilvaEffect && silvaSummon) - { - player.maxMinions += 2; - } - if (sDefense) - { - player.statDefense += 5; - player.endurance += 0.05f; - } - if (absorber) - { - player.moveSpeed += 0.12f; - player.jumpSpeedBoost += 1.2f; - player.statLifeMax2 += 20; - player.thorns = 0.5f; - player.endurance += 0.05f; - if ((double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) - { - player.lifeRegen += 2; - player.manaRegenBonus += 2; - } - if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) - { - player.statDefense += 5; - player.endurance += 0.05f; - player.moveSpeed += 0.2f; - } - } - if (coreOfTheBloodGod) { player.statLifeMax2 += player.statLifeMax2 / 5 / 20 * 10; } - if (bloodPact) { player.statLifeMax2 += player.statLifeMax2 / 5 / 20 * 100; } - if (aAmpoule) - { - Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 1f, 1f, 0.6f); - player.endurance += 0.05f; - player.pickSpeed -= 0.5f; - player.buffImmune[70] = true; - player.buffImmune[47] = true; - player.buffImmune[46] = true; - player.buffImmune[44] = true; - player.buffImmune[20] = true; - if (!player.honey && player.lifeRegen < 0) - { - player.lifeRegen += 2; - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - } - player.lifeRegenTime += 1; - player.lifeRegen += 2; - } - else if (cFreeze) - { - Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.3f, ((float)Main.DiscoG / 400f), 0.5f); - } - else if (sirenIce) - { - Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 0.35f, 1f, 1.25f); - } - else if (sirenBoobs || sirenBoobsAlt) - { - Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 1.5f, 1f, 0.1f); - } - else if (tarraSummon) - { - Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0f, 3f, 0f); - } - if (cFreeze) - { - int num = mod.BuffType("GlacialState"); - float num2 = 200f; - int random = Main.rand.Next(5); - if (player.whoAmI == Main.myPlayer) - { - if (random == 0) - { - for (int l = 0; l < 200; l++) - { - NPC nPC = Main.npc[l]; - if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && !nPC.buffImmune[num] && Vector2.Distance(player.Center, nPC.Center) <= num2) - { - if (nPC.FindBuffIndex(num) == -1) - { - nPC.AddBuff(num, 120, false); - } - } - } - } - } - } - if (invincible || lol) - { - player.thorns = 0f; - player.turtleThorns = false; - } - if (player.vortexStealthActive) - { - player.rangedDamage -= (1f - player.stealth) * 0.4f; //change 80 to 40 - player.rangedCrit -= (int)((1f - player.stealth) * 5f); //change 20 to 15 - } - #endregion - #region StandingStillEffects - if (aquaticEmblem) - { - if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) && !player.mount.Active) - { - if (aquaticBoost > 0f) - { - aquaticBoost -= 0.0002f; //0.015 - if ((double)aquaticBoost <= 0.0) - { - aquaticBoost = 0f; - if (Main.netMode == 1) - { - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); - } - } - } - } - else - { - aquaticBoost += 0.0002f; - if (aquaticBoost > 1f) - { - aquaticBoost = 1f; - } - if (player.mount.Active) - { - aquaticBoost = 1f; - } - } - player.statDefense += (int)((1f - aquaticBoost) * 40f); - player.moveSpeed -= (1f - aquaticBoost) * 0.15f; - } - if (auricBoost) - { - if (player.itemAnimation > 0) - { - modStealthTimer = 5; - } - if ((double)player.velocity.X > -0.1 && (double)player.velocity.X < 0.1 && (double)player.velocity.Y > -0.1 && (double)player.velocity.Y < 0.1 && !player.mount.Active) - { - if (modStealthTimer == 0 && modStealth > 0f) - { - modStealth -= 0.015f; - if ((double)modStealth <= 0.0) - { - modStealth = 0f; - if (Main.netMode == 1) - { - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); - } - } - } - } - else - { - float num27 = Math.Abs(player.velocity.X) + Math.Abs(player.velocity.Y); - modStealth += num27 * 0.0075f; - if (modStealth > 1f) - { - modStealth = 1f; - } - if (player.mount.Active) - { - modStealth = 1f; - } - } - player.meleeDamage += (1f - modStealth) * 0.2f; - player.meleeCrit += (int)((1f - modStealth) * 10f); - player.rangedDamage += (1f - modStealth) * 0.2f; - player.rangedCrit += (int)((1f - modStealth) * 10f); - player.magicDamage += (1f - modStealth) * 0.2f; - player.magicCrit += (int)((1f - modStealth) * 10f); - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += (1f - modStealth) * 0.2f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += (int)((1f - modStealth) * 10f); - player.minionDamage += (1f - modStealth) * 0.2f; - if (modStealthTimer > 0) - { - modStealthTimer--; - } - } - else if (pAmulet) - { - if (player.itemAnimation > 0) - { - modStealthTimer = 5; - } - if ((double)player.velocity.X > -0.1 && (double)player.velocity.X < 0.1 && (double)player.velocity.Y > -0.1 && (double)player.velocity.Y < 0.1 && !player.mount.Active) - { - if (modStealthTimer == 0 && modStealth > 0f) - { - modStealth -= 0.015f; - if ((double)modStealth <= 0.0) - { - modStealth = 0f; - if (Main.netMode == 1) - { - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); - } - } - } - } - else - { - float num27 = Math.Abs(player.velocity.X) + Math.Abs(player.velocity.Y); - modStealth += num27 * 0.0075f; - if (modStealth > 1f) - { - modStealth = 1f; - } - if (player.mount.Active) - { - modStealth = 1f; - } - } - player.meleeDamage += (1f - modStealth) * 0.2f; - player.meleeCrit += (int)((1f - modStealth) * 10f); - player.aggro -= (int)((1f - modStealth) * 750f); - if (modStealthTimer > 0) - { - modStealthTimer--; - } - } - else - { - modStealth = 1f; - } - #endregion - #region ElysianAegis - if (elysianAegis) - { - bool flag14 = false; - if (elysianGuard) - { - float num29 = shieldInvinc; - shieldInvinc -= 0.08f; - if (shieldInvinc < 0f) - { - shieldInvinc = 0f; - } - else - { - flag14 = true; - } - if (shieldInvinc == 0f && num29 != shieldInvinc && Main.netMode == 1) - { - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); - } - player.rangedDamage += (5f - shieldInvinc) * 0.02f; - player.rangedCrit += (int)((5f - shieldInvinc) * 2f); - player.meleeDamage += (5f - shieldInvinc) * 0.02f; - player.meleeCrit += (int)((5f - shieldInvinc) * 2f); - player.magicDamage += (5f - shieldInvinc) * 0.02f; - player.magicCrit += (int)((5f - shieldInvinc) * 2f); - player.minionDamage += (5f - shieldInvinc) * 0.02f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += (5f - shieldInvinc) * 0.02f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += (int)((5f - shieldInvinc) * 2f); - player.aggro += (int)((5f - shieldInvinc) * 220f); - player.statDefense += (int)((5f - shieldInvinc) * 5f); - player.moveSpeed *= 0.85f; - if (player.mount.Active) - { - elysianGuard = false; - } - } - else - { - float num30 = shieldInvinc; - shieldInvinc += 0.08f; - if (shieldInvinc > 5f) - { - shieldInvinc = 5f; - } - else - { - flag14 = true; - } - if (shieldInvinc == 5f && num30 != shieldInvinc && Main.netMode == 1) - { - NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); - } - } - if (flag14) - { - if (Main.rand.Next(2) == 0) - { - Vector2 vector = Vector2.UnitY.RotatedByRandom(6.2831854820251465); - Dust dust = Main.dust[Dust.NewDust(player.Center - vector * 30f, 0, 0, 244, 0f, 0f, 0, default(Color), 1f)]; - dust.noGravity = true; - dust.position = player.Center - vector * (float)Main.rand.Next(5, 11); - dust.velocity = vector.RotatedBy(1.5707963705062866, default(Vector2)) * 4f; - dust.scale = 0.5f + Main.rand.NextFloat(); - dust.fadeIn = 0.5f; - } - if (Main.rand.Next(2) == 0) - { - Vector2 vector2 = Vector2.UnitY.RotatedByRandom(6.2831854820251465); - Dust dust2 = Main.dust[Dust.NewDust(player.Center - vector2 * 30f, 0, 0, 246, 0f, 0f, 0, default(Color), 1f)]; - dust2.noGravity = true; - dust2.position = player.Center - vector2 * 12f; - dust2.velocity = vector2.RotatedBy(-1.5707963705062866, default(Vector2)) * 2f; - dust2.scale = 0.5f + Main.rand.NextFloat(); - dust2.fadeIn = 0.5f; - } - } - } - else - { - elysianGuard = false; - } - #endregion - #region SeasonalChecks - if (Main.netMode != 2) - { - if (Main.time == 0.0) - { - runCheck = 0; - } - if (runCheck == 0) - { - CalamityWorld.checkSpring(); - CalamityWorld.checkSummer(); - CalamityWorld.checkFall(); - CalamityWorld.checkWinter(); - runCheck++; - } - } - #endregion - #region OtherBuffs - if (irradiated) - { - player.statDefense -= 10; - player.endurance -= 0.1f; - player.meleeDamage += 0.05f; - player.magicDamage += 0.05f; - player.rangedDamage += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - player.minionDamage += 0.05f; - player.minionKB += 0.5f; - player.moveSpeed += 0.05f; - } - if (rRage) - { - player.meleeDamage += 0.05f; - player.magicDamage += 0.05f; - player.rangedDamage += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - player.minionDamage += 0.05f; - player.meleeSpeed -= 0.05f; - player.moveSpeed += 0.05f; - } - if (xRage) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.rangedDamage += 0.1f; - player.meleeDamage += 0.1f; - player.magicDamage += 0.1f; - player.minionDamage += 0.1f; - } - if (xWrath) - { - player.meleeCrit += 5; - player.magicCrit += 5; - player.rangedCrit += 5; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; - } - if (godSlayerCooldown) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.rangedDamage += 0.1f; - player.meleeDamage += 0.1f; - player.magicDamage += 0.1f; - player.minionDamage += 0.1f; - } - if (graxDefense) - { - player.statDefense += 15; - player.endurance += 0.05f; - player.meleeSpeed -= 0.05f; - player.meleeDamage += 0.1f; - } - if (sMeleeBoost) - { - player.meleeSpeed -= 0.05f; - player.meleeDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.rangedDamage += 0.1f; - player.magicDamage += 0.1f; - player.minionDamage += 0.1f; - player.meleeCrit += 5; - player.magicCrit += 5; - player.rangedCrit += 5; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; - } - if (tFury) - { - player.meleeDamage += 0.3f; - player.meleeCrit += 10; - } - if (yPower) - { - player.endurance += 0.05f; - player.statDefense += 5; - player.meleeCrit += 2; - player.meleeDamage += 0.06f; - player.meleeSpeed -= 0.05f; - player.magicCrit += 2; - player.magicDamage += 0.06f; - player.rangedCrit += 2; - player.rangedDamage += 0.06f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; - player.minionDamage += 0.06f; - player.minionKB += 1f; - player.moveSpeed += 0.15f; - } - if (tScale) - { - player.endurance += 0.05f; - player.statDefense += 5; - player.kbBuff = true; - } - if (darkSunRing) - { - player.maxMinions += 1; - player.lifeRegen += 1; - player.statDefense += 8; - player.meleeSpeed -= 0.08f; - player.meleeDamage += 0.08f; - player.rangedDamage += 0.08f; - player.magicDamage += 0.08f; - player.pickSpeed -= 0.3f; - player.minionDamage += 0.08f; - player.minionKB += 1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.08f; - if (Main.dayTime) - { - player.lifeRegen += 1; - } - else - { - player.statDefense += 20; - } - } - if (badgeOfBravery) - { - if (player.statLife <= (player.statLifeMax2 * 0.8f) && player.statLife > (player.statLifeMax2 * 0.6f)) - { - player.meleeSpeed -= 0.05f; - } - else if (player.statLife <= (player.statLifeMax2 * 0.6f) && player.statLife > (player.statLifeMax2 * 0.4f)) - { - player.meleeSpeed -= 0.1f; - } - else if (player.statLife <= (player.statLifeMax2 * 0.4f) && player.statLife > (player.statLifeMax2 * 0.2f)) - { - player.meleeSpeed -= 0.15f; - } - else if (player.statLife <= (player.statLifeMax2 * 0.2f)) - { - player.meleeSpeed -= 0.2f; - } - } - if (eGauntlet) - { - player.longInvince = true; - player.kbGlove = true; - player.meleeDamage += 0.15f; - player.meleeCrit += 5; - player.meleeSpeed -= 0.15f; - player.lavaImmune = true; - } - if (yInsignia) - { - player.longInvince = true; - player.kbGlove = true; - player.meleeDamage += 0.05f; - player.meleeSpeed -= 0.05f; - player.lavaImmune = true; - if (player.statLife <= (player.statLifeMax2 * 0.5f)) - { - player.meleeDamage += 0.1f; - player.magicDamage += 0.1f; - player.rangedDamage += 0.1f; - player.thrownDamage += 0.1f; - player.minionDamage += 0.1f; - } - if (player.statLife <= (player.statLifeMax2 * 0.8f) && player.statLife > (player.statLifeMax2 * 0.6f)) - { - player.meleeSpeed -= 0.05f; - } - else if (player.statLife <= (player.statLifeMax2 * 0.6f) && player.statLife > (player.statLifeMax2 * 0.4f)) - { - player.meleeSpeed -= 0.1f; - } - else if (player.statLife <= (player.statLifeMax2 * 0.4f) && player.statLife > (player.statLifeMax2 * 0.2f)) - { - player.meleeSpeed -= 0.15f; - } - else if (player.statLife <= (player.statLifeMax2 * 0.2f)) - { - player.meleeSpeed -= 0.2f; - } - } - if (fabsolVodka) - { - alcoholPoisonLevel++; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.rangedDamage += 0.1f; - player.meleeDamage += 0.1f; - player.magicDamage += 0.1f; - player.minionDamage += 0.1f; - player.statDefense -= 20; - } - if (vodka) - { - alcoholPoisonLevel++; - player.lifeRegen -= 2; - player.statDefense -= 4; - player.meleeCrit += 2; - player.meleeDamage += 0.08f; - player.magicCrit += 2; - player.magicDamage += 0.08f; - player.rangedCrit += 2; - player.rangedDamage += 0.08f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.08f; - player.minionDamage += 0.08f; - } - if (redWine) - { - alcoholPoisonLevel++; - player.lifeRegen -= 2; - } - if (grapeBeer) - { - alcoholPoisonLevel++; - player.lifeRegen -= 1; - player.statDefense -= 2; - player.moveSpeed -= 0.05f; - } - if (moonshine) - { - alcoholPoisonLevel++; - player.lifeRegen -= 2; - player.statDefense += 10; - player.endurance += 0.05f; - } - if (rum) - { - alcoholPoisonLevel++; - player.lifeRegen += 2; - player.moveSpeed += 0.1f; - player.statDefense -= 8; - } - if (fireball) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - } - if (whiskey) - { - alcoholPoisonLevel++; - player.statDefense -= 8; - player.meleeCrit += 2; - player.meleeDamage += 0.04f; - player.magicCrit += 2; - player.magicDamage += 0.04f; - player.rangedCrit += 2; - player.rangedDamage += 0.04f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; - player.minionDamage += 0.04f; - } - if (everclear) - { - alcoholPoisonLevel += 2; - player.lifeRegen -= 20; - player.statDefense -= 40; - player.meleeDamage += 0.25f; - player.magicDamage += 0.25f; - player.rangedDamage += 0.25f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.25f; - player.minionDamage += 0.25f; - } - if (bloodyMary) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - if (Main.bloodMoon) - { - player.statDefense -= 6; - player.meleeCrit += 7; - player.meleeDamage += 0.15f; - player.meleeSpeed -= 0.15f; - player.magicCrit += 7; - player.magicDamage += 0.15f; - player.rangedCrit += 7; - player.rangedDamage += 0.15f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 7; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; - player.minionDamage += 0.15f; - player.moveSpeed += 0.15f; - } - } - if (tequila) - { - alcoholPoisonLevel++; - player.lifeRegen -= 2; - if (Main.dayTime) - { - player.statDefense += 5; - player.meleeCrit += 2; - player.meleeDamage += 0.04f; - player.magicCrit += 2; - player.magicDamage += 0.04f; - player.rangedCrit += 2; - player.rangedDamage += 0.04f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; - player.minionDamage += 0.04f; - player.endurance += 0.04f; - } - } - if (tequilaSunrise) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - if (Main.dayTime) - { - player.statDefense += 15; - player.meleeCrit += 3; - player.meleeDamage += 0.09f; - player.magicCrit += 3; - player.magicDamage += 0.09f; - player.rangedCrit += 3; - player.rangedDamage += 0.09f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.09f; - player.minionDamage += 0.09f; - player.endurance += 0.09f; - } - } - if (screwdriver) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - } - if (caribbeanRum) - { - alcoholPoisonLevel++; - player.lifeRegen += 2; - player.moveSpeed += 0.2f; - player.statDefense -= 12; - } - if (cinnamonRoll) - { - alcoholPoisonLevel++; - player.statDefense -= 12; - player.manaRegenDelay--; - player.manaRegenBonus += 10; - } - if (margarita) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - player.statDefense -= 6; - } - if (starBeamRye) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - player.statDefense -= 6; - player.magicDamage += 0.08f; - player.manaCost *= 0.9f; - } - if (moscowMule) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - player.meleeCrit += 3; - player.meleeDamage += 0.12f; - player.magicCrit += 3; - player.magicDamage += 0.12f; - player.rangedCrit += 3; - player.rangedDamage += 0.12f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.12f; - player.minionDamage += 0.12f; - } - if (whiteWine) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - player.statDefense -= 6; - player.magicDamage += 0.1f; - } - if (evergreenGin) - { - alcoholPoisonLevel++; - player.lifeRegen -= 3; - player.endurance += 0.05f; - } - if (alcoholPoisonLevel > 3) - { - if (player.lifeRegen > 0) - { - player.lifeRegen = 0; - } - player.lifeRegenTime = 0; - player.lifeRegen -= 3 * alcoholPoisonLevel; - } - if (nanotech) - { - if (CalamityMod.throwingItemList.Contains(player.inventory[player.selectedItem].type)) - { - player.endurance += 0.1f; - player.statDefense += 15; - } - } - if (harpyRing) - { - if (player.wingTimeMax > 0) - { - player.wingTimeMax = (int)((double)player.wingTimeMax * 1.25); - } - player.moveSpeed += 0.2f; - } - if (community) - { - float floatTypeBoost = 0.01f + - (NPC.downedSlimeKing ? 0.01f : 0f) + - (NPC.downedBoss1 ? 0.01f : 0f) + - (NPC.downedBoss2 ? 0.01f : 0f) + - (NPC.downedQueenBee ? 0.01f : 0f) + //0.05 - (NPC.downedBoss3 ? 0.01f : 0f) + - (Main.hardMode ? 0.01f : 0f) + - (NPC.downedMechBossAny ? 0.01f : 0f) + - (NPC.downedPlantBoss ? 0.01f : 0f) + - (NPC.downedGolemBoss ? 0.01f : 0f) + //0.1 - (NPC.downedFishron ? 0.01f : 0f) + - (NPC.downedAncientCultist ? 0.01f : 0f) + - (NPC.downedMoonlord ? 0.01f : 0f) + - (CalamityWorld.downedProvidence ? 0.02f : 0f) + //0.15 - (CalamityWorld.downedDoG ? 0.02f : 0f) + //0.17 - (CalamityWorld.downedYharon ? 0.03f : 0f); //0.2 - int integerTypeBoost = (int)(floatTypeBoost * 50f); - int critBoost = integerTypeBoost / 2; - int regenBoost = 1 + (integerTypeBoost / 5); - float damageBoost = floatTypeBoost * 0.5f; - player.endurance += (floatTypeBoost * 0.25f); - player.statDefense += integerTypeBoost; - player.meleeCrit += critBoost; - player.meleeDamage += damageBoost; - player.meleeSpeed -= (floatTypeBoost * 0.25f); - player.magicCrit += critBoost; - player.magicDamage += damageBoost; - player.rangedCrit += critBoost; - player.rangedDamage += damageBoost; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critBoost; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageBoost; - player.minionDamage += damageBoost; - player.minionKB += floatTypeBoost; - player.moveSpeed += floatTypeBoost; - player.statLifeMax2 += player.statLifeMax / 5 / 20 * integerTypeBoost; - bool lesserEffect = false; - for (int l = 0; l < 22; l++) - { - int hasBuff = player.buffType[l]; - bool shouldAffect = CalamityMod.alcoholList.Contains(hasBuff); - if (shouldAffect) - { - lesserEffect = true; - } - } - if (player.lifeRegen < 0) - { - player.lifeRegen += lesserEffect ? 1 : regenBoost; - } - if (player.wingTimeMax > 0) - { - player.wingTimeMax = (int)((double)player.wingTimeMax * 1.15); - } - } - if (bloodflareThrowing) - { - if (player.statLife > (int)((double)player.statLifeMax2 * 0.8)) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; - player.statDefense += 30; - } - else - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - } - } - if (bloodflareSummon) - { - if (player.statLife >= (int)((double)player.statLifeMax2 * 0.9)) - { - player.minionDamage += 0.1f; - } - else if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) - { - player.statDefense += 20; - player.lifeRegen += 2; - } - if (bloodflareSummonTimer > 0) { bloodflareSummonTimer--; } - if (player.whoAmI == Main.myPlayer && bloodflareSummonTimer <= 0) - { - bloodflareSummonTimer = 900; - for (int I = 0; I < 3; I++) - { - float ai1 = (float)(I * 120); - Projectile.NewProjectile(player.Center.X + (float)(Math.Sin(I * 120) * 550), player.Center.Y + (float)(Math.Cos(I * 120) * 550), 0f, 0f, - mod.ProjectileType("GhostlyMine"), (int)((auricSet ? 15000f : 5000f) * player.minionDamage), 1f, player.whoAmI, ai1, 0f); - } - } - } - if (reaperToothNecklace) - { - player.meleeDamage += 0.25f; - player.magicDamage += 0.25f; - player.rangedDamage += 0.25f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.25f; - player.minionDamage += 0.25f; - player.statDefense /= 2; - } - if (coreOfTheBloodGod) - { - player.endurance += 0.05f; - player.meleeDamage += 0.07f; - player.magicDamage += 0.07f; - player.rangedDamage += 0.07f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.07f; - player.minionDamage += 0.07f; - if (player.statDefense < 100) - { - player.meleeDamage += 0.15f; - player.magicDamage += 0.15f; - player.rangedDamage += 0.15f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; - player.minionDamage += 0.15f; - } - } - else if (bloodflareCore) - { - if (player.statDefense < 100) - { - player.meleeDamage += 0.15f; - player.magicDamage += 0.15f; - player.rangedDamage += 0.15f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; - player.minionDamage += 0.15f; - } - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15)) - { - player.endurance += 0.1f; - player.meleeDamage += 0.2f; - player.magicDamage += 0.2f; - player.rangedDamage += 0.2f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.2f; - player.minionDamage += 0.2f; - } - else if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) - { - player.endurance += 0.05f; - player.meleeDamage += 0.1f; - player.magicDamage += 0.1f; - player.rangedDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.minionDamage += 0.1f; - } - } - if (godSlayerThrowing) - { - if (player.statLife >= player.statLifeMax2) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.1f; - } - } - if (tarraSummon) - { - int lifeCounter = 0; - float num2 = 300f; - bool flag = lifeCounter % 60 == 0; - int num3 = 200; - if (player.whoAmI == Main.myPlayer) - { - for (int l = 0; l < 200; l++) - { - NPC nPC = Main.npc[l]; - if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && Vector2.Distance(player.Center, nPC.Center) <= num2) - { - if (flag) - { - nPC.StrikeNPC(num3, 0f, 0, false, false, false); - if (Main.netMode != 0) - { - NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); - } - } - } - } - } - lifeCounter++; - if (lifeCounter >= 180) - { - lifeCounter = 0; - } - if (player.statLife >= player.statLifeMax2) - { - player.minionDamage += 0.1f; - player.maxMinions += 2; - } - } - #endregion - #region DRLimitAndOtherShit - if (auricSet && silvaMelee) - { - double multiplier = (double)player.statLife / (double)player.statLifeMax2; - player.meleeDamage += (float)(multiplier * 0.5); //ranges from 1.5 times to 1 times - } - if (player.endurance > defEndurance) //0.33 - { - float damageReductionAboveCap = player.endurance - defEndurance; //0.6 - 0.33 = 0.27 - player.endurance = defEndurance + (damageReductionAboveCap * 0.1f); //0.33 + (0.27 * 0.1) = 0.357 - } - #region MeleeLevelBoosts - if (meleeLevel >= 12500) - { - player.meleeDamage += 0.12f; - player.meleeSpeed -= 0.12f; - player.meleeCrit += 6; - } - else if (meleeLevel >= 10500) - { - player.meleeDamage += 0.1f; - player.meleeSpeed -= 0.1f; - player.meleeCrit += 5; - } - else if (meleeLevel >= 9100) - { - player.meleeDamage += 0.09f; - player.meleeSpeed -= 0.09f; - player.meleeCrit += 5; - } - else if (meleeLevel >= 7800) - { - player.meleeDamage += 0.08f; - player.meleeSpeed -= 0.08f; - player.meleeCrit += 4; - } - else if (meleeLevel >= 6600) - { - player.meleeDamage += 0.07f; - player.meleeSpeed -= 0.07f; - player.meleeCrit += 4; - } - else if (meleeLevel >= 5500) //hm limit - { - player.meleeDamage += 0.06f; - player.meleeSpeed -= 0.06f; - player.meleeCrit += 3; - } - else if (meleeLevel >= 4500) - { - player.meleeDamage += 0.05f; - player.meleeSpeed -= 0.05f; - player.meleeCrit += 3; - } - else if (meleeLevel >= 3600) - { - player.meleeDamage += 0.05f; - player.meleeSpeed -= 0.05f; - player.meleeCrit += 2; - } - else if (meleeLevel >= 2800) - { - player.meleeDamage += 0.04f; - player.meleeSpeed -= 0.04f; - player.meleeCrit += 2; - } - else if (meleeLevel >= 2100) - { - player.meleeDamage += 0.04f; - player.meleeSpeed -= 0.03f; - player.meleeCrit += 1; - } - else if (meleeLevel >= 1500) //prehm limit - { - player.meleeDamage += 0.03f; - player.meleeSpeed -= 0.02f; - player.meleeCrit += 1; - } - else if (meleeLevel >= 1000) - { - player.meleeDamage += 0.03f; - player.meleeSpeed -= 0.01f; - player.meleeCrit += 1; - } - else if (meleeLevel >= 600) - { - player.meleeDamage += 0.02f; - player.meleeSpeed -= 0.01f; - } - else if (meleeLevel >= 300) - player.meleeDamage += 0.02f; - else if (meleeLevel >= 100) - player.meleeDamage += 0.01f; - #endregion - #region RangedLevelBoosts - if (rangedLevel >= 12500) - { - player.rangedDamage += 0.12f; - player.moveSpeed += 0.12f; - player.rangedCrit += 6; - } - else if (rangedLevel >= 10500) - { - player.rangedDamage += 0.1f; - player.moveSpeed += 0.1f; - player.rangedCrit += 5; - } - else if (rangedLevel >= 9100) - { - player.rangedDamage += 0.09f; - player.moveSpeed += 0.09f; - player.rangedCrit += 5; - } - else if (rangedLevel >= 7800) - { - player.rangedDamage += 0.08f; - player.moveSpeed += 0.08f; - player.rangedCrit += 4; - } - else if (rangedLevel >= 6600) - { - player.rangedDamage += 0.07f; - player.moveSpeed += 0.07f; - player.rangedCrit += 4; - } - else if (rangedLevel >= 5500) - { - player.rangedDamage += 0.06f; - player.moveSpeed += 0.06f; - player.rangedCrit += 3; - } - else if (rangedLevel >= 4500) - { - player.rangedDamage += 0.05f; - player.moveSpeed += 0.05f; - player.rangedCrit += 3; - } - else if (rangedLevel >= 3600) - { - player.rangedDamage += 0.05f; - player.moveSpeed += 0.05f; - player.rangedCrit += 2; - } - else if (rangedLevel >= 2800) - { - player.rangedDamage += 0.04f; - player.moveSpeed += 0.04f; - player.rangedCrit += 2; - } - else if (rangedLevel >= 2100) - { - player.rangedDamage += 0.04f; - player.moveSpeed += 0.03f; - player.rangedCrit += 1; - } - else if (rangedLevel >= 1500) - { - player.rangedDamage += 0.03f; - player.moveSpeed += 0.02f; - player.rangedCrit += 1; - } - else if (rangedLevel >= 1000) - { - player.rangedDamage += 0.03f; - player.moveSpeed += 0.01f; - player.rangedCrit += 1; - } - else if (rangedLevel >= 600) - { - player.rangedDamage += 0.02f; - player.rangedCrit += 1; - } - else if (rangedLevel >= 300) - player.rangedDamage += 0.02f; - else if (rangedLevel >= 100) - player.rangedDamage += 0.01f; - #endregion - #region MagicLevelBoosts - if (magicLevel >= 12500) - { - player.magicDamage += 0.12f; - player.manaCost *= 0.88f; - player.magicCrit += 6; - } - else if (magicLevel >= 10500) - { - player.magicDamage += 0.1f; - player.manaCost *= 0.9f; - player.magicCrit += 5; - } - else if (magicLevel >= 9100) - { - player.magicDamage += 0.09f; - player.manaCost *= 0.91f; - player.magicCrit += 5; - } - else if (magicLevel >= 7800) - { - player.magicDamage += 0.08f; - player.manaCost *= 0.92f; - player.magicCrit += 4; - } - else if (magicLevel >= 6600) - { - player.magicDamage += 0.07f; - player.manaCost *= 0.93f; - player.magicCrit += 4; - } - else if (magicLevel >= 5500) - { - player.magicDamage += 0.06f; - player.manaCost *= 0.94f; - player.magicCrit += 3; - } - else if (magicLevel >= 4500) - { - player.magicDamage += 0.05f; - player.manaCost *= 0.95f; - player.magicCrit += 3; - } - else if (magicLevel >= 3600) - { - player.magicDamage += 0.05f; - player.manaCost *= 0.95f; - player.magicCrit += 2; - } - else if (magicLevel >= 2800) - { - player.magicDamage += 0.04f; - player.manaCost *= 0.96f; - player.magicCrit += 2; - } - else if (magicLevel >= 2100) - { - player.magicDamage += 0.04f; - player.manaCost *= 0.97f; - player.magicCrit += 1; - } - else if (magicLevel >= 1500) - { - player.magicDamage += 0.03f; - player.manaCost *= 0.98f; - player.magicCrit += 1; - } - else if (magicLevel >= 1000) - { - player.magicDamage += 0.03f; - player.manaCost *= 0.99f; - player.magicCrit += 1; - } - else if (magicLevel >= 600) - { - player.magicDamage += 0.02f; - player.manaCost *= 0.99f; - } - else if (magicLevel >= 300) - player.magicDamage += 0.02f; - else if (magicLevel >= 100) - player.magicDamage += 0.01f; - #endregion - #region SummonLevelBoosts - if (summonLevel >= 12500) - { - player.minionDamage += 0.12f; - player.minionKB += 3.0f; - player.maxMinions += 3; - } - else if (summonLevel >= 10500) - { - player.minionDamage += 0.1f; - player.minionKB += 3.0f; - player.maxMinions += 2; - } - else if (summonLevel >= 9100) - { - player.minionDamage += 0.09f; - player.minionKB += 2.7f; - player.maxMinions += 2; - } - else if (summonLevel >= 7800) - { - player.minionDamage += 0.08f; - player.minionKB += 2.4f; - player.maxMinions += 2; - } - else if (summonLevel >= 6600) - { - player.minionDamage += 0.07f; - player.minionKB += 2.1f; - player.maxMinions += 2; - } - else if (summonLevel >= 5500) - { - player.minionDamage += 0.06f; - player.minionKB += 1.8f; - player.maxMinions += 2; - } - else if (summonLevel >= 4500) - { - player.minionDamage += 0.06f; - player.minionKB += 1.8f; - player.maxMinions++; - } - else if (summonLevel >= 3600) - { - player.minionDamage += 0.05f; - player.minionKB += 1.5f; - player.maxMinions++; - } - else if (summonLevel >= 2800) - { - player.minionDamage += 0.04f; - player.minionKB += 1.2f; - player.maxMinions++; - } - else if (summonLevel >= 2100) - { - player.minionDamage += 0.04f; - player.minionKB += 0.9f; - player.maxMinions++; - } - else if (summonLevel >= 1500) - { - player.minionDamage += 0.03f; - player.minionKB += 0.6f; - } - else if (summonLevel >= 1000) - { - player.minionDamage += 0.03f; - player.minionKB += 0.3f; - } - else if (summonLevel >= 600) - { - player.minionDamage += 0.02f; - player.minionKB += 0.3f; - } - else if (summonLevel >= 300) - player.minionDamage += 0.02f; - else if (summonLevel >= 100) - player.minionDamage += 0.01f; - #endregion - #region RogueLevelBoosts - if (rogueLevel >= 12500) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.12f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.12f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 6; - } - else if (rogueLevel >= 10500) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; - } - else if (rogueLevel >= 9100) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.09f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.09f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; - } - else if (rogueLevel >= 7800) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.08f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.08f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 4; - } - else if (rogueLevel >= 6600) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.07f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.07f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 4; - } - else if (rogueLevel >= 5500) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.06f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; - } - else if (rogueLevel >= 4500) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; - } - else if (rogueLevel >= 3600) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - } - else if (rogueLevel >= 2800) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.04f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - } - else if (rogueLevel >= 2100) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.03f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; - } - else if (rogueLevel >= 1500) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.02f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; - } - else if (rogueLevel >= 1000) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.01f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; - } - else if (rogueLevel >= 600) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.01f; - } - else if (rogueLevel >= 300) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; - else if (rogueLevel >= 100) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.01f; - #endregion - if (dArtifact) - { - player.meleeDamage += 0.25f; - player.magicDamage += 0.25f; - player.rangedDamage += 0.25f; - player.minionDamage += 0.25f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.25f; - } - if (eArtifact) - { - player.meleeSpeed -= 0.1f; - player.manaCost *= 0.85f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; - player.maxMinions += 2; - } - if (gArtifact) - { - player.maxMinions += 8; - if (player.whoAmI == Main.myPlayer) - { - if (player.FindBuffIndex(mod.BuffType("AngryChicken")) == -1) - { - player.AddBuff(mod.BuffType("AngryChicken"), 3600, true); - } - if (player.ownedProjectileCounts[mod.ProjectileType("AngryChicken")] < 2) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("AngryChicken"), (int)(232f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); - } - } - } - if (pArtifact) - { - if (player.whoAmI == Main.myPlayer) - { - if (player.FindBuffIndex(mod.BuffType("GuardianHealer")) == -1) - { - player.AddBuff(mod.BuffType("GuardianHealer"), 3600, true); - } - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianHealer")] < 1) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -6f, mod.ProjectileType("MiniGuardianHealer"), 0, 0f, Main.myPlayer, 0f, 0f); - } - float baseDamage = 150f + - (CalamityWorld.downedDoG ? 100f : 0f) + - (CalamityWorld.downedYharon ? 100f : 0f); - if (player.maxMinions >= 8) - { - if (player.FindBuffIndex(mod.BuffType("GuardianDefense")) == -1) - { - player.AddBuff(mod.BuffType("GuardianDefense"), 3600, true); - } - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianDefense")] < 1) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -3f, mod.ProjectileType("MiniGuardianDefense"), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); - } - } - if (tarraSummon || bloodflareSummon || godSlayerSummon || silvaSummon || dsSetBonus) - { - if (player.FindBuffIndex(mod.BuffType("GuardianOffense")) == -1) - { - player.AddBuff(mod.BuffType("GuardianOffense"), 3600, true); - } - if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianAttack")] < 1) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("MiniGuardianAttack"), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); - } - } - } - } - if (marked || reaperToothNecklace) - { - player.endurance *= 0.5f; - } - #endregion - } + if (weakPetrification) + WeakPetrification(); - public override void PostUpdateRunSpeeds() + if (player.mount.Active || player.mount.Cart) + { + player.dashDelay = 60; + dashMod = 0; + } + + if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) + { + if (player.lifeRegen < 0) + player.lifeRegen = 0; + } + } + + #region ExactLevelUp + private void ExactLevelUp(int levelUpType, int level, bool final) { - #region SpeedBoosts - if (hAttack) + Color messageColor = Color.Orange; + switch (levelUpType) + { + case 0: + exactMeleeLevel = level; + if (shootFireworksLevelUpMelee) + { + string key = (final ? "Mods.CalamityMod.MeleeLevelUpFinal" : "Mods.CalamityMod.MeleeLevelUp"); + shootFireworksLevelUpMelee = false; + if (player.whoAmI == Main.myPlayer) + { + if (final) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 1f); + } + else + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 0f); + } + } + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + break; + case 1: + exactRangedLevel = level; + if (shootFireworksLevelUpRanged) + { + string key = (final ? "Mods.CalamityMod.RangedLevelUpFinal" : "Mods.CalamityMod.RangedLevelUp"); + messageColor = Color.GreenYellow; + shootFireworksLevelUpRanged = false; + if (player.whoAmI == Main.myPlayer) + { + if (final) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 1f); + } + else + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 0f); + } + } + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + break; + case 2: + exactMagicLevel = level; + if (shootFireworksLevelUpMagic) + { + string key = (final ? "Mods.CalamityMod.MagicLevelUpFinal" : "Mods.CalamityMod.MagicLevelUp"); + messageColor = Color.DodgerBlue; + shootFireworksLevelUpMagic = false; + if (player.whoAmI == Main.myPlayer) + { + if (final) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 1f); + } + else + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 0f); + } + } + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + break; + case 3: + exactSummonLevel = level; + if (shootFireworksLevelUpSummon) + { + string key = (final ? "Mods.CalamityMod.SummonLevelUpFinal" : "Mods.CalamityMod.SummonLevelUp"); + messageColor = Color.Aquamarine; + shootFireworksLevelUpSummon = false; + if (player.whoAmI == Main.myPlayer) + { + if (final) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 1f); + } + else + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 0f); + } + } + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + break; + case 4: + exactRogueLevel = level; + if (shootFireworksLevelUpRogue) + { + string key = (final ? "Mods.CalamityMod.RogueLevelUpFinal" : "Mods.CalamityMod.RogueLevelUp"); + messageColor = Color.Orchid; + shootFireworksLevelUpRogue = false; + if (player.whoAmI == Main.myPlayer) + { + if (final) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworkRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 1f); + } + else + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -5f, ProjectileID.RocketFireworksBoxRed + Main.rand.Next(4), + 0, 0f, Main.myPlayer, 0f, 0f); + } + } + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + break; + } + if (Main.netMode == 1) + { + ExactLevelPacket(false, levelUpType); + } + } + #endregion + + public override void PostUpdateMiscEffects() + { + Main.expertDebuffTime = 1f; + areThereAnyDamnBosses = CalamityGlobalNPC.AnyBossNPCS(); + #region RevengeanceEffects + if (CalamityWorld.revenge && player.whoAmI == Main.myPlayer) + { + if (player.onHitDodge) + { + for (int l = 0; l < 22; l++) + { + int hasBuff = player.buffType[l]; + if (player.buffTime[l] > 360 && hasBuff == BuffID.ShadowDodge) + { + player.buffTime[l] = 360; + } + } + } + if (player.immuneTime > (tarraThrowing ? 300 : 120)) + { + player.immuneTime = (tarraThrowing ? 300 : 120); + } + int stressGain = 0; + if (rageMode) + { + stressGain = -2000; + } + else + { + if (draedonsHeart) + { + if (draedonsStressGain) + { + stressGain += 60; + } + } + else if (heartOfDarkness) + { + stressGain += 30; + } + } + stressCD++; + if (stressCD >= 60) + { + stressCD = 0; + stress += stressGain; + if (stress < 0) + { + stress = 0; + } + if (stress >= stressMax) + { + if (playFullRageSound) + { + playFullRageSound = false; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/FullRage"), (int)player.position.X, (int)player.position.Y); + } + stress = stressMax; + } + else + { + playFullRageSound = true; + } + } + stressLevel500 = stress >= 9800; + if (stressLevel500 && !hAttack) + { + int heartAttackChance = ((draedonsHeart || heartOfDarkness) ? 2000 : 10000); + if (Main.rand.Next(heartAttackChance) == 0) + { + player.AddBuff(mod.BuffType("HeartAttack"), 18000); + } + } + if (adrenaline >= adrenalineMax) + { + adrenalineMaxTimer--; + if (adrenalineMaxTimer <= 0) + { + if (playAdrenalineBurnoutSound) + { + playAdrenalineBurnoutSound = false; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AdrenalineBurnout1"), (int)player.position.X, (int)player.position.Y); + } + adrenalineDmgDown--; + if (adrenalineDmgDown < 0) + { + if (playFullAdrenalineBurnoutSound) + { + playFullAdrenalineBurnoutSound = false; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/AdrenalineBurnout2"), (int)player.position.X, (int)player.position.Y); + } + adrenalineDmgDown = 0; + } + adrenalineMaxTimer = 0; + } + } + else if (!adrenalineMode && adrenaline <= 0) + { + playAdrenalineBurnoutSound = true; + playFullAdrenalineBurnoutSound = true; + adrenalineDmgDown = 600; + adrenalineMaxTimer = 300; + adrenalineDmgMult = 1f; + } + adrenalineDmgMult = 0.1f * (float)(adrenalineDmgDown / 60); + if (adrenalineDmgMult < 0.33f) + adrenalineDmgMult = 0.33f; + int adrenalineGain = 0; + if (adrenalineMode) + { + adrenalineGain = (CalamityGlobalNPC.SCal > -1 ? -10000 : -2000); + } + else + { + if (Main.wof >= 0 && player.position.Y < (float)((Main.maxTilesY - 200) * 16)) // > + { + adrenaline = 0; + } + else if (areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0) + { + int adrenalineTickBoost = 0 + + (adrenalineBoostOne ? 63 : 0) + //286 + (adrenalineBoostTwo ? 115 : 0) + //401 + (adrenalineBoostThree ? 100 : 0); //501 + adrenalineGain = 223 + adrenalineTickBoost; //pre-slime god = 45, pre-astrum deus = 35, pre-polterghast = 25, post-polter = 20 + } + else + { + adrenaline = 0; + } + } + adrenalineCD++; + if (adrenalineCD >= (CalamityGlobalNPC.SCal > -1 ? 135 : 60)) + { + adrenalineCD = 0; + adrenaline += adrenalineGain; + if (adrenaline < 0) + { + adrenaline = 0; + } + if (adrenaline >= adrenalineMax) + { + if (playFullAdrenalineSound) + { + playFullAdrenalineSound = false; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/FullAdrenaline"), (int)player.position.X, (int)player.position.Y); + } + adrenaline = adrenalineMax; + } + else + { + playFullAdrenalineSound = true; + } + } + } + else if (!CalamityWorld.revenge && player.whoAmI == Main.myPlayer) + { + stressCD++; + if (stressCD >= 60) + { + stressCD = 0; + stress += -30; + if (stress < 0) + { + stress = 0; + } + } + adrenalineCD++; + if (adrenalineCD >= 60) + { + adrenalineCD = 0; + adrenaline += -30; + if (adrenaline < 0) + { + adrenaline = 0; + } + } + } + if (player.whoAmI == Main.myPlayer && Main.netMode == 1) + { + packetTimer++; + if (packetTimer == 60) + { + packetTimer = 0; + StressPacket(false); + AdrenalinePacket(false); + } + } + if (CalamityWorld.revenge) + { + if (player.lifeSteal > (CalamityWorld.death ? 30f : 40f)) + { + player.lifeSteal = (CalamityWorld.death ? 30f : 40f); + } + } + #endregion + #region StressTiedEffects + if (stressPills) + { + player.statDefense += 8; + player.meleeDamage += 0.08f; + player.magicDamage += 0.08f; + player.rangedDamage += 0.08f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.08f; + player.minionDamage += 0.08f; + } + if (laudanum) + { + player.statDefense += 6; + player.meleeDamage += 0.06f; + player.magicDamage += 0.06f; + player.rangedDamage += 0.06f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; + player.minionDamage += 0.06f; + } + if (draedonsHeart) + { + player.meleeDamage += 0.1f; + player.magicDamage += 0.1f; + player.rangedDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.minionDamage += 0.1f; + } + if (!stressLevel500 && player.FindBuffIndex(mod.BuffType("HeartAttack")) > -1) { player.ClearBuff(mod.BuffType("HeartAttack")); } + if (draedonsHeart && (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) + { + player.statDefense += 25; + } + if (hAttack) + { + if (heartOfDarkness || draedonsHeart) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.rangedDamage += 0.1f; + player.meleeDamage += 0.1f; + player.magicDamage += 0.1f; + player.minionDamage += 0.1f; + } + player.statLifeMax2 += player.statLifeMax / 5 / 20 * 5; + } + if (affliction) + { + player.lifeRegen += 1; + player.endurance += CalamityWorld.revenge ? 0.07f : 0.05f; + player.statDefense += CalamityWorld.revenge ? 20 : 15; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.rangedDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.meleeDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.magicDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.minionDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.statLifeMax2 += CalamityWorld.revenge ? (player.statLifeMax / 5 / 20 * 10) : (player.statLifeMax / 5 / 20 * 5); + } + else if (afflicted) + { + player.lifeRegen += 1; + player.endurance += CalamityWorld.revenge ? 0.07f : 0.05f; + player.statDefense += CalamityWorld.revenge ? 20 : 15; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.rangedDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.meleeDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.magicDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.minionDamage += CalamityWorld.revenge ? 0.12f : 0.1f; + player.statLifeMax2 += CalamityWorld.revenge ? (player.statLifeMax / 5 / 20 * 10) : (player.statLifeMax / 5 / 20 * 5); + } + if (afflictedBuff) { afflicted = true; } + #endregion + #region MaxLifeAndManaBoosts + player.statLifeMax2 += + (mFruit ? 25 : 0) + + (bOrange ? 25 : 0) + + (eBerry ? 25 : 0) + + (dFruit ? 25 : 0); + if (silvaHitCounter > 0) + { + player.statLifeMax2 -= silvaHitCounter * 100; + if (player.statLifeMax2 < 200) + { + player.statLifeMax2 = 200; + } + } + player.statManaMax2 += + (pHeart ? 50 : 0) + + (eCore ? 50 : 0) + + (cShard ? 50 : 0) + + (starBeamRye ? 50 : 0); + if (Main.netMode != 2 && player.whoAmI == Main.myPlayer) + { + Texture2D rain3 = mod.GetTexture("ExtraTextures/Rain3"); + Texture2D rainOriginal = mod.GetTexture("ExtraTextures/RainOriginal"); + Texture2D mana2 = mod.GetTexture("ExtraTextures/Mana2"); + Texture2D mana3 = mod.GetTexture("ExtraTextures/Mana3"); + Texture2D mana4 = mod.GetTexture("ExtraTextures/Mana4"); + Texture2D manaOriginal = mod.GetTexture("ExtraTextures/ManaOriginal"); + Texture2D carpetAuric = mod.GetTexture("ExtraTextures/AuricCarpet"); + Texture2D carpetOriginal = mod.GetTexture("ExtraTextures/Carpet"); + int totalManaBoost = + (pHeart ? 1 : 0) + + (eCore ? 1 : 0) + + (cShard ? 1 : 0); + switch (totalManaBoost) + { + default: + Main.manaTexture = manaOriginal; + break; + case 3: + Main.manaTexture = mana4; + break; + case 2: + Main.manaTexture = mana3; + break; + case 1: + Main.manaTexture = mana2; + break; + } + if (Main.bloodMoon) { Main.rainTexture = rainOriginal; } + else if (Main.raining && ZoneSulphur) { Main.rainTexture = rain3; } + else { Main.rainTexture = rainOriginal; } + if (auricSet) { Main.flyingCarpetTexture = carpetAuric; } + else { Main.flyingCarpetTexture = carpetOriginal; } + } + #endregion + #region MiscEffects + if (gainLevelCooldown > 0) + gainLevelCooldown--; + #region MeleeLevels + switch (meleeLevel) + { + case 100: + ExactLevelUp(0, 1, false); + break; + case 300: + ExactLevelUp(0, 2, false); + break; + case 600: + ExactLevelUp(0, 3, false); + break; + case 1000: + ExactLevelUp(0, 4, false); + break; + case 1500: + ExactLevelUp(0, 5, false); + break; + case 2100: + ExactLevelUp(0, 6, false); + break; + case 2800: + ExactLevelUp(0, 7, false); + break; + case 3600: + ExactLevelUp(0, 8, false); + break; + case 4500: + ExactLevelUp(0, 9, false); + break; + case 5500: + ExactLevelUp(0, 10, false); + break; + case 6600: + ExactLevelUp(0, 11, false); + break; + case 7800: + ExactLevelUp(0, 12, false); + break; + case 9100: + ExactLevelUp(0, 13, false); + break; + case 10500: + ExactLevelUp(0, 14, false); + break; + case 12500: //celebration or some shit for final level, yay + ExactLevelUp(0, 15, true); + break; + default: + break; + } + #endregion + #region RangedLevels + switch (rangedLevel) + { + case 100: + ExactLevelUp(1, 1, false); + break; + case 300: + ExactLevelUp(1, 2, false); + break; + case 600: + ExactLevelUp(1, 3, false); + break; + case 1000: + ExactLevelUp(1, 4, false); + break; + case 1500: + ExactLevelUp(1, 5, false); + break; + case 2100: + ExactLevelUp(1, 6, false); + break; + case 2800: + ExactLevelUp(1, 7, false); + break; + case 3600: + ExactLevelUp(1, 8, false); + break; + case 4500: + ExactLevelUp(1, 9, false); + break; + case 5500: + ExactLevelUp(1, 10, false); + break; + case 6600: + ExactLevelUp(1, 11, false); + break; + case 7800: + ExactLevelUp(1, 12, false); + break; + case 9100: + ExactLevelUp(1, 13, false); + break; + case 10500: + ExactLevelUp(1, 14, false); + break; + case 12500: //celebration or some shit for final level, yay + ExactLevelUp(1, 15, true); + break; + default: + break; + } + #endregion + #region MagicLevels + switch (magicLevel) + { + case 100: + ExactLevelUp(2, 1, false); + break; + case 300: + ExactLevelUp(2, 2, false); + break; + case 600: + ExactLevelUp(2, 3, false); + break; + case 1000: + ExactLevelUp(2, 4, false); + break; + case 1500: + ExactLevelUp(2, 5, false); + break; + case 2100: + ExactLevelUp(2, 6, false); + break; + case 2800: + ExactLevelUp(2, 7, false); + break; + case 3600: + ExactLevelUp(2, 8, false); + break; + case 4500: + ExactLevelUp(2, 9, false); + break; + case 5500: + ExactLevelUp(2, 10, false); + break; + case 6600: + ExactLevelUp(2, 11, false); + break; + case 7800: + ExactLevelUp(2, 12, false); + break; + case 9100: + ExactLevelUp(2, 13, false); + break; + case 10500: + ExactLevelUp(2, 14, false); + break; + case 12500: //celebration or some shit for final level, yay + ExactLevelUp(2, 15, true); + break; + default: + break; + } + #endregion + #region SummonLevels + switch (summonLevel) + { + case 100: + ExactLevelUp(3, 1, false); + break; + case 300: + ExactLevelUp(3, 2, false); + break; + case 600: + ExactLevelUp(3, 3, false); + break; + case 1000: + ExactLevelUp(3, 4, false); + break; + case 1500: + ExactLevelUp(3, 5, false); + break; + case 2100: + ExactLevelUp(3, 6, false); + break; + case 2800: + ExactLevelUp(3, 7, false); + break; + case 3600: + ExactLevelUp(3, 8, false); + break; + case 4500: + ExactLevelUp(3, 9, false); + break; + case 5500: + ExactLevelUp(3, 10, false); + break; + case 6600: + ExactLevelUp(3, 11, false); + break; + case 7800: + ExactLevelUp(3, 12, false); + break; + case 9100: + ExactLevelUp(3, 13, false); + break; + case 10500: + ExactLevelUp(3, 14, false); + break; + case 12500: //celebration or some shit for final level, yay + ExactLevelUp(3, 15, true); + break; + default: + break; + } + #endregion + #region RogueLevels + switch (rogueLevel) + { + case 100: + ExactLevelUp(4, 1, false); + break; + case 300: + ExactLevelUp(4, 2, false); + break; + case 600: + ExactLevelUp(4, 3, false); + break; + case 1000: + ExactLevelUp(4, 4, false); + break; + case 1500: + ExactLevelUp(4, 5, false); + break; + case 2100: + ExactLevelUp(4, 6, false); + break; + case 2800: + ExactLevelUp(4, 7, false); + break; + case 3600: + ExactLevelUp(4, 8, false); + break; + case 4500: + ExactLevelUp(4, 9, false); + break; + case 5500: + ExactLevelUp(4, 10, false); + break; + case 6600: + ExactLevelUp(4, 11, false); + break; + case 7800: + ExactLevelUp(4, 12, false); + break; + case 9100: + ExactLevelUp(4, 13, false); + break; + case 10500: + ExactLevelUp(4, 14, false); + break; + case 12500: //celebration or some shit for final level, yay + ExactLevelUp(4, 15, true); + break; + default: + break; + } + #endregion + if (player.nebulaLevelMana > 0 && player.statMana < player.statManaMax2) + { + int num = 12; + nebulaManaNerfCounter += player.nebulaLevelMana; + if (nebulaManaNerfCounter >= num) + { + nebulaManaNerfCounter -= num; + player.statMana--; + if (player.statMana < 0) + { + player.statMana = 0; + } + } + } + else + { + nebulaManaNerfCounter = 0; + } + if (Main.myPlayer == player.whoAmI) + { + BossHealthBarManager.SHOULD_DRAW_SMALLTEXT_HEALTH = shouldDrawSmallText; + /*if (player.chest != -1) + { + if (player.chest != -2) + { + trashManChest = -1; + } + if (trashManChest >= 0) + { + if (!Main.projectile[trashManChest].active || Main.projectile[trashManChest].type != mod.ProjectileType("DannyDevito")) + { + Main.PlaySound(SoundID.Item11, -1, -1); + player.chest = -1; + Recipe.FindRecipes(); + } + else + { + int num16 = (int)(((double)player.position.X + (double)player.width * 0.5) / 16.0); + int num17 = (int)(((double)player.position.Y + (double)player.height * 0.5) / 16.0); + player.chestX = (int)Main.projectile[trashManChest].Center.X / 16; + player.chestY = (int)Main.projectile[trashManChest].Center.Y / 16; + if (num16 < player.chestX - Player.tileRangeX || num16 > player.chestX + Player.tileRangeX + 1 || num17 < player.chestY - Player.tileRangeY || num17 > player.chestY + Player.tileRangeY + 1) + { + if (player.chest != -1) + { + Main.PlaySound(SoundID.Item11, -1, -1); + } + player.chest = -1; + Recipe.FindRecipes(); + } + } + } + } + else + { + trashManChest = -1; + }*/ + } + if (silvaSet || invincible || margarita) + { + foreach (int debuff in CalamityMod.debuffList) { player.buffImmune[debuff] = true; } + } + if (Main.expertMode && player.ZoneSnow && player.wet && !player.lavaWet && !player.honeyWet && !player.arcticDivingGear) + { + player.buffImmune[BuffID.Chilled] = true; + if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) + { + if (Main.myPlayer == player.whoAmI && !player.gills && !player.merman) + { + if (player.breath > 0) + player.breath--; + } + } + } + if (ZoneAbyss) + { + if (abyssalAmulet) { player.statLifeMax2 += player.statLifeMax2 / 5 / 20 * (lumenousAmulet ? 25 : 10); } + if (Main.myPlayer == player.whoAmI) //4200 total tiles small world + { + int breathLoss = 2; + int lightStrength = 0 + + ((player.lightOrb || player.crimsonHeart || player.magicLantern) ? 1 : 0) + //1 + (aquaticEmblem ? 1 : 0) + //2 + (player.arcticDivingGear ? 1 : 0) + //3 + (jellyfishNecklace ? 1 : 0) + //4 + ((player.blueFairy || player.greenFairy || player.redFairy || player.petFlagDD2Ghost) ? 2 : 0) + //6 + ((shine || lumenousAmulet) ? 2 : 0) + //8 + ((player.wisp || player.suspiciouslookingTentacle || sirenPet) ? 3 : 0); //11 + bool lightLevelOne = lightStrength > 0; //1+ + bool lightLevelTwo = lightStrength > 2; //3+ + bool lightLevelThree = lightStrength > 4; //5+ + bool lightLevelFour = lightStrength > 6; //7+ + if (ZoneAbyssLayer4) //3200 and below + { + breathLoss = 54; + if (!lightLevelFour) { player.blind = true; } + if (!lightLevelThree) { player.headcovered = true; } + if (!depthCharm) { player.bleed = true; } + player.statDefense -= (anechoicPlating ? 40 : 120); + } + else if (ZoneAbyssLayer3) //2700 to 3200 + { + breathLoss = 18; + if (!lightLevelThree) { player.blind = true; } + if (!lightLevelTwo) { player.headcovered = true; } + if (!depthCharm) { player.bleed = true; } + player.statDefense -= (anechoicPlating ? 20 : 60); + } + else if (ZoneAbyssLayer2) //2100 to 2700 + { + breathLoss = 6; + if (!lightLevelTwo) { player.blind = true; } + if (!depthCharm) { player.bleed = true; } + player.statDefense -= (anechoicPlating ? 10 : 30); + } + else if (ZoneAbyssLayer1) //1500 to 2100 + { + if (!lightLevelOne) { player.blind = true; } + player.statDefense -= (anechoicPlating ? 5 : 15); + } + double breathLossMult = 1.0 - + (player.gills ? 0.2 : 0.0) - //0.8 + (player.accDivingHelm ? 0.25 : 0.0) - //0.75 + (player.arcticDivingGear ? 0.25 : 0.0) - //0.75 + (aquaticEmblem ? 0.25 : 0.0) - //0.75 + (player.accMerman ? 0.3 : 0.0) - //0.7 + (victideSet ? 0.2 : 0.0) - //0.85 + (((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3) ? 0.3 : 0.0) - //0.7 + (abyssalDivingSuit ? 0.3 : 0.0); //0.7 + if (breathLossMult < 0.05) { breathLossMult = 0.05; } + breathLoss = (int)((double)breathLoss * breathLossMult); + int tick = 6; + double tickMult = 1.0 + + (player.gills ? 4.0 : 0.0) + //5 + (player.ignoreWater ? 5.0 : 0.0) + //10 + (player.accDivingHelm ? 10.0 : 0.0) + //20 + (player.arcticDivingGear ? 10.0 : 0.0) + //30 + (aquaticEmblem ? 10.0 : 0.0) + //40 + (player.accMerman ? 15.0 : 0.0) + //55 + (victideSet ? 5.0 : 0.0) + //60 + (((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3) ? 15.0 : 0.0) + //75 + (abyssalDivingSuit ? 15.0 : 0.0); //90 + if (tickMult > 50.0) { tickMult = 50.0; } + tick = (int)((double)tick * tickMult); + abyssBreathCD++; + if (player.gills || player.merman) + { + if (player.breath > 0) + player.breath -= 3; + } + if (!Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) + { + if (player.statLife > 100) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= 160; + } + } + if (abyssBreathCD >= tick) + { + abyssBreathCD = 0; + if (player.breath > 0) + player.breath -= breathLoss; + if (cDepth) + { + if (player.breath > 0) + player.breath--; + } + if (player.breath <= 0) + { + int lifeLoss = 6 + + (player.bleed ? 6 : 0) - + (depthCharm ? 3 : 0); + player.statLife -= lifeLoss; + if (player.statLife <= 0) + { + KillPlayer(); + } + } + } + } + } + else + { + abyssBreathCD = 0; + } + if ((Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) && ironBoots) || + (aeroSet && !Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))) + { + player.maxFallSpeed = 15f; + } + if (omegaBlueSet) //should apply after rev caps, actually those are gone so AAAAA + { + //add tentacles + if (player.ownedProjectileCounts[mod.ProjectileType("OmegaBlueTentacle")] < 6) + { + bool[] tentaclesPresent = new bool[6]; + for (int i = 0; i < 1000; i++) + { + Projectile projectile = Main.projectile[i]; + if (projectile.active && projectile.type == mod.ProjectileType("OmegaBlueTentacle") && projectile.owner == Main.myPlayer && projectile.ai[1] >= 0f && projectile.ai[1] < 6f) + { + tentaclesPresent[(int)projectile.ai[1]] = true; + } + } + for (int i = 0; i < 6; i++) + { + if (!tentaclesPresent[i]) + { + float modifier = player.meleeDamage + player.magicDamage + player.rangedDamage + + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage + player.minionDamage; + modifier /= 5f; + int damage = (int)(666 * modifier); + Vector2 vel = new Vector2(Main.rand.Next(-13, 14), Main.rand.Next(-13, 14)) * 0.25f; + Projectile.NewProjectile(player.Center, vel, mod.ProjectileType("OmegaBlueTentacle"), damage, 8f, Main.myPlayer, Main.rand.Next(120), i); + } + } + } + float damageUp = 0.1f; + int critUp = 10; + if (omegaBlueHentai) + { + damageUp *= 2f; + critUp *= 2; + } + player.meleeDamage += damageUp; + player.rangedDamage += damageUp; + player.magicDamage += damageUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; + player.minionDamage += damageUp; + player.meleeCrit += critUp; + player.rangedCrit += critUp; + player.magicCrit += critUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; + } + if (!bOut) + { + if (gHealer) + { + if (healCounter > 0) { healCounter--; } + if (healCounter <= 0) + { + healCounter = 300; + if (player.whoAmI == Main.myPlayer) + { + int healAmount = 5 + + (gDefense ? 5 : 0) + + (gOffense ? 5 : 0); + player.statLife += healAmount; + player.HealEffect(healAmount); + } + } + } + if (gDefense) + { + player.moveSpeed += 0.1f + + (gOffense ? 0.1f : 0f); + player.endurance += 0.025f + + (gOffense ? 0.025f : 0f); + } + if (gOffense) + { + player.minionDamage += 0.1f + + (gDefense ? 0.05f : 0f); + player.maxMinions++; + } + } + if (revivifyTimer > 0) { revivifyTimer--; } + if (fleshTotemCooldown > 0) { fleshTotemCooldown--; } + if (astralStarRainCooldown > 0) { astralStarRainCooldown--; } + if (bloodflareMageCooldown > 0) { bloodflareMageCooldown--; } + if (tarraMageHealCooldown > 0) { tarraMageHealCooldown--; } + if (ataxiaDmg > 0) { ataxiaDmg--; } + if (xerocDmg > 0) { xerocDmg--; } + if (godSlayerDmg > 0) { godSlayerDmg--; } + if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) + { + player.buffImmune[mod.BuffType("VulnerabilityHex")] = true; + silvaCountdown--; + if (silvaCountdown <= 0) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaDispel"), (int)player.position.X, (int)player.position.Y); + } + for (int j = 0; j < 2; j++) + { + int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 2f); + Dust expr_A4_cp_0 = Main.dust[num]; + expr_A4_cp_0.position.X = expr_A4_cp_0.position.X + (float)Main.rand.Next(-20, 21); + Dust expr_CB_cp_0 = Main.dust[num]; + expr_CB_cp_0.position.Y = expr_CB_cp_0.position.Y + (float)Main.rand.Next(-20, 21); + Main.dust[num].velocity *= 0.9f; + Main.dust[num].noGravity = true; + Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; + Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player); + if (Main.rand.Next(2) == 0) + { + Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; + } + } + } + if (tarraMelee) + { + if (tarraDefense) + { + tarraDefenseTime--; + if (tarraDefenseTime <= 0) + { + tarraDefenseTime = 600; + tarraCooldown = 1800; + tarraDefense = false; + } + for (int j = 0; j < 2; j++) + { + int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 2f); + Dust expr_A4_cp_0 = Main.dust[num]; + expr_A4_cp_0.position.X = expr_A4_cp_0.position.X + (float)Main.rand.Next(-20, 21); + Dust expr_CB_cp_0 = Main.dust[num]; + expr_CB_cp_0.position.Y = expr_CB_cp_0.position.Y + (float)Main.rand.Next(-20, 21); + Main.dust[num].velocity *= 0.9f; + Main.dust[num].noGravity = true; + Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; + Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player); + if (Main.rand.Next(2) == 0) + { + Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; + } + } + } + if (tarraCooldown > 0) { tarraCooldown--; } + } + if (tarraThrowing) + { + if (tarraThrowingCritTimer > 0) { tarraThrowingCritTimer--; } + if (tarraThrowingCrits >= 25) + { + tarraThrowingCrits = 0; + tarraThrowingCritTimer = 1800; + player.immune = true; + player.immuneTime = 300; + } + for (int l = 0; l < 22; l++) + { + int hasBuff = player.buffType[l]; + bool shouldAffect = CalamityMod.debuffList.Contains(hasBuff); + if (shouldAffect) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + } + } + } + if (bloodflareSet) + { + if (bloodflareHeartTimer > 0) { bloodflareHeartTimer--; } + if (bloodflareManaTimer > 0) { bloodflareManaTimer--; } + } + if (bloodflareMelee) + { + if (bloodflareMeleeHits >= 15) + { + bloodflareMeleeHits = 0; + bloodflareFrenzyTimer = 300; + } + if (bloodflareFrenzyTimer > 0) + { + bloodflareFrenzyTimer--; + if (bloodflareFrenzyTimer <= 0) + { + bloodflareFrenzyCooldown = 1800; + } + player.meleeCrit += 25; + player.meleeDamage += 0.25f; + for (int j = 0; j < 2; j++) + { + int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 5, 0f, 0f, 100, default(Color), 2f); + Dust expr_A4_cp_0 = Main.dust[num]; + expr_A4_cp_0.position.X = expr_A4_cp_0.position.X + (float)Main.rand.Next(-20, 21); + Dust expr_CB_cp_0 = Main.dust[num]; + expr_CB_cp_0.position.Y = expr_CB_cp_0.position.Y + (float)Main.rand.Next(-20, 21); + Main.dust[num].velocity *= 0.9f; + Main.dust[num].noGravity = true; + Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; + Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player); + if (Main.rand.Next(2) == 0) + { + Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; + } + } + } + if (bloodflareFrenzyCooldown > 0) { bloodflareFrenzyCooldown--; } + } + if (bloodflareRanged) + { + if (bloodflareRangedCooldown > 0) { bloodflareRangedCooldown--; } + } + if (Main.raining && ZoneSulphur) + { + if (player.ZoneOverworldHeight || player.ZoneSkyHeight) { player.AddBuff(mod.BuffType("Irradiated"), 2); } + } + if (raiderTalisman) { CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += ((float)raiderStack / 250f) * 0.15f; } + if (silvaCountdown <= 0 && hasSilvaEffect && silvaSummon) + { + player.maxMinions += 2; + } + if (sDefense) + { + player.statDefense += 5; + player.endurance += 0.05f; + } + if (absorber) + { + player.moveSpeed += 0.12f; + player.jumpSpeedBoost += 1.2f; + player.statLifeMax2 += 20; + player.thorns = 0.5f; + player.endurance += 0.05f; + if ((double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) + { + player.lifeRegen += 2; + player.manaRegenBonus += 2; + } + if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) + { + player.statDefense += 5; + player.endurance += 0.05f; + player.moveSpeed += 0.2f; + } + } + if (coreOfTheBloodGod) { player.statLifeMax2 += player.statLifeMax2 / 5 / 20 * 10; } + if (bloodPact) { player.statLifeMax2 += player.statLifeMax2 / 5 / 20 * 100; } + if (aAmpoule) + { + Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 1f, 1f, 0.6f); + player.endurance += 0.05f; + player.pickSpeed -= 0.5f; + player.buffImmune[70] = true; + player.buffImmune[47] = true; + player.buffImmune[46] = true; + player.buffImmune[44] = true; + player.buffImmune[20] = true; + if (!player.honey && player.lifeRegen < 0) + { + player.lifeRegen += 2; + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + } + player.lifeRegenTime += 1; + player.lifeRegen += 2; + } + else if (cFreeze) + { + Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.3f, ((float)Main.DiscoG / 400f), 0.5f); + } + else if (sirenIce) + { + Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 0.35f, 1f, 1.25f); + } + else if (sirenBoobs || sirenBoobsAlt) + { + Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 1.5f, 1f, 0.1f); + } + else if (tarraSummon) + { + Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0f, 3f, 0f); + } + if (cFreeze) + { + int num = mod.BuffType("GlacialState"); + float num2 = 200f; + int random = Main.rand.Next(5); + if (player.whoAmI == Main.myPlayer) + { + if (random == 0) + { + for (int l = 0; l < 200; l++) + { + NPC nPC = Main.npc[l]; + if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && !nPC.buffImmune[num] && Vector2.Distance(player.Center, nPC.Center) <= num2) + { + if (nPC.FindBuffIndex(num) == -1) + { + nPC.AddBuff(num, 120, false); + } + } + } + } + } + } + if (invincible || lol) + { + player.thorns = 0f; + player.turtleThorns = false; + } + if (player.vortexStealthActive) + { + player.rangedDamage -= (1f - player.stealth) * 0.4f; //change 80 to 40 + player.rangedCrit -= (int)((1f - player.stealth) * 5f); //change 20 to 15 + } + if (player.inventory[player.selectedItem].type != mod.ItemType("Ataraxia")) + { + ataraxiaDamageBoost = 0f; + ataraxiaDamageBoostCancelTimer = 1200; + } + else + { + if (ataraxiaDamageBoostCancelTimer > 0) + ataraxiaDamageBoostCancelTimer--; + if (ataraxiaDamageBoostCancelTimer <= 0) + { + if (ataraxiaDamageBoost > 0f) + ataraxiaDamageBoost -= 0.01f; + if (ataraxiaDamageBoost < 0f) + ataraxiaDamageBoost = 0f; + } + if (ataraxiaDamageBoostCooldown > 0) + ataraxiaDamageBoostCooldown--; + if (ataraxiaDamageBoost > 0.3f) + ataraxiaDamageBoost = 0.3f; + } + #endregion + #region StandingStillEffects + if (rogueStealthMax > 0f) + { + if (rogueStealth >= rogueStealthMax) //full stealth does more damage + { + if (playRogueStealthSound) + { + playRogueStealthSound = false; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/RogueStealth"), (int)player.position.X, (int)player.position.Y); + } + //The first projectile thrown will inherit this damage, not the crit. Crit is calculated on enemy hits and is not tied to the projectile + //The moment you use any item/weapon the crit multiplier from stealth will decrease, meaning you will never get the optimal boost + //To remedy this, make stealth increase crit by a larger amount so that it means more + //If not you risk the crit boost feeling negligible + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += rogueStealth * 1f; //100% max damage boost, 160% with Auric + } + else + { + playRogueStealthSound = true; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += rogueStealth * 0.75f; //0% to 75% damage boost, 120% with Auric + } + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += (int)(rogueStealth * 30f); //0% to 30% crit boost, 48% with Auric + player.moveSpeed += rogueStealth * 0.05f; + player.aggro -= (int)((rogueStealth / rogueStealthMax) * 900f); + if (player.itemAnimation > 0) + { + if (rogueStealth > 0f) + { + rogueStealth -= rogueStealthMax * 0.006f; + if (rogueStealth < 0f) + { + rogueStealth = 0f; + } + } + } + else if ((double)Math.Abs(player.velocity.X) < 0.1 && (double)Math.Abs(player.velocity.Y) < 0.1 && !player.mount.Active) + { + if (rogueStealth < rogueStealthMax) + { + rogueStealth += rogueStealthMax * 0.006f; //180 ticks, 3 seconds to reach full stealth + if (rogueStealth > rogueStealthMax) + { + rogueStealth = rogueStealthMax; + } + } + } + } + else + { + rogueStealth = 0f; + } + if (aquaticEmblem) + { + if ((Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) && player.wet && !player.lavaWet && !player.honeyWet) && + !player.mount.Active) + { + if (aquaticBoost > 0f) + { + aquaticBoost -= 0.0002f; //0.015 + if ((double)aquaticBoost <= 0.0) + { + aquaticBoost = 0f; + if (Main.netMode == 1) + { + NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + } + } + } + } + else + { + aquaticBoost += 0.0002f; + if (aquaticBoost > 1f) + { + aquaticBoost = 1f; + } + if (player.mount.Active) + { + aquaticBoost = 1f; + } + } + player.statDefense += (int)((1f - aquaticBoost) * 30f); + player.moveSpeed -= (1f - aquaticBoost) * 0.1f; + } + if (auricBoost) + { + if (player.itemAnimation > 0) + { + modStealthTimer = 5; + } + if ((double)Math.Abs(player.velocity.X) < 0.1 && (double)Math.Abs(player.velocity.Y) < 0.1 && !player.mount.Active) + { + if (modStealthTimer == 0 && modStealth > 0f) + { + modStealth -= 0.015f; + if ((double)modStealth <= 0.0) + { + modStealth = 0f; + if (Main.netMode == 1) + { + NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + } + } + } + } + else + { + float num27 = Math.Abs(player.velocity.X) + Math.Abs(player.velocity.Y); + modStealth += num27 * 0.0075f; + if (modStealth > 1f) + { + modStealth = 1f; + } + if (player.mount.Active) + { + modStealth = 1f; + } + } + player.meleeDamage += (1f - modStealth) * 0.2f; + player.meleeCrit += (int)((1f - modStealth) * 10f); + player.rangedDamage += (1f - modStealth) * 0.2f; + player.rangedCrit += (int)((1f - modStealth) * 10f); + player.magicDamage += (1f - modStealth) * 0.2f; + player.magicCrit += (int)((1f - modStealth) * 10f); + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += (1f - modStealth) * 0.2f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += (int)((1f - modStealth) * 10f); + player.minionDamage += (1f - modStealth) * 0.2f; + if (modStealthTimer > 0) + { + modStealthTimer--; + } + } + else if (pAmulet) + { + if (player.itemAnimation > 0) + { + modStealthTimer = 5; + } + if ((double)Math.Abs(player.velocity.X) < 0.1 && (double)Math.Abs(player.velocity.Y) < 0.1 && !player.mount.Active) + { + if (modStealthTimer == 0 && modStealth > 0f) + { + modStealth -= 0.015f; + if ((double)modStealth <= 0.0) + { + modStealth = 0f; + if (Main.netMode == 1) + { + NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + } + } + } + } + else + { + float num27 = Math.Abs(player.velocity.X) + Math.Abs(player.velocity.Y); + modStealth += num27 * 0.0075f; + if (modStealth > 1f) + { + modStealth = 1f; + } + if (player.mount.Active) + { + modStealth = 1f; + } + } + player.meleeDamage += (1f - modStealth) * 0.2f; + player.meleeCrit += (int)((1f - modStealth) * 10f); + player.aggro -= (int)((1f - modStealth) * 750f); + if (modStealthTimer > 0) + { + modStealthTimer--; + } + } + else + { + modStealth = 1f; + } + #endregion + #region ElysianAegis + if (elysianAegis) + { + bool flag14 = false; + if (elysianGuard) + { + float num29 = shieldInvinc; + shieldInvinc -= 0.08f; + if (shieldInvinc < 0f) + { + shieldInvinc = 0f; + } + else + { + flag14 = true; + } + if (shieldInvinc == 0f && num29 != shieldInvinc && Main.netMode == 1) + { + NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + } + player.rangedDamage += (5f - shieldInvinc) * 0.03f; + player.rangedCrit += (int)((5f - shieldInvinc) * 2f); + player.meleeDamage += (5f - shieldInvinc) * 0.03f; + player.meleeCrit += (int)((5f - shieldInvinc) * 2f); + player.magicDamage += (5f - shieldInvinc) * 0.03f; + player.magicCrit += (int)((5f - shieldInvinc) * 2f); + player.minionDamage += (5f - shieldInvinc) * 0.03f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += (5f - shieldInvinc) * 0.03f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += (int)((5f - shieldInvinc) * 2f); + player.aggro += (int)((5f - shieldInvinc) * 220f); + player.statDefense += (int)((5f - shieldInvinc) * 4f); + player.moveSpeed *= 0.85f; + if (player.mount.Active) + { + elysianGuard = false; + } + } + else + { + float num30 = shieldInvinc; + shieldInvinc += 0.08f; + if (shieldInvinc > 5f) + { + shieldInvinc = 5f; + } + else + { + flag14 = true; + } + if (shieldInvinc == 5f && num30 != shieldInvinc && Main.netMode == 1) + { + NetMessage.SendData(84, -1, -1, null, player.whoAmI, 0f, 0f, 0f, 0, 0, 0); + } + } + if (flag14) + { + if (Main.rand.Next(2) == 0) + { + Vector2 vector = Vector2.UnitY.RotatedByRandom(6.2831854820251465); + Dust dust = Main.dust[Dust.NewDust(player.Center - vector * 30f, 0, 0, 244, 0f, 0f, 0, default(Color), 1f)]; + dust.noGravity = true; + dust.position = player.Center - vector * (float)Main.rand.Next(5, 11); + dust.velocity = vector.RotatedBy(1.5707963705062866, default(Vector2)) * 4f; + dust.scale = 0.5f + Main.rand.NextFloat(); + dust.fadeIn = 0.5f; + } + if (Main.rand.Next(2) == 0) + { + Vector2 vector2 = Vector2.UnitY.RotatedByRandom(6.2831854820251465); + Dust dust2 = Main.dust[Dust.NewDust(player.Center - vector2 * 30f, 0, 0, 246, 0f, 0f, 0, default(Color), 1f)]; + dust2.noGravity = true; + dust2.position = player.Center - vector2 * 12f; + dust2.velocity = vector2.RotatedBy(-1.5707963705062866, default(Vector2)) * 2f; + dust2.scale = 0.5f + Main.rand.NextFloat(); + dust2.fadeIn = 0.5f; + } + } + } + else + { + elysianGuard = false; + } + #endregion + #region OtherBuffs + if (irradiated) + { + player.statDefense -= 10; + player.endurance -= 0.1f; + player.meleeDamage += 0.05f; + player.magicDamage += 0.05f; + player.rangedDamage += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + player.minionDamage += 0.05f; + player.minionKB += 0.5f; + player.moveSpeed += 0.05f; + } + if (rRage) + { + player.meleeDamage += 0.05f; + player.magicDamage += 0.05f; + player.rangedDamage += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + player.minionDamage += 0.05f; + player.moveSpeed += 0.05f; + } + if (xRage) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.rangedDamage += 0.1f; + player.meleeDamage += 0.1f; + player.magicDamage += 0.1f; + player.minionDamage += 0.1f; + } + if (xWrath) + { + player.meleeCrit += 5; + player.magicCrit += 5; + player.rangedCrit += 5; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + } + if (godSlayerCooldown) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.rangedDamage += 0.1f; + player.meleeDamage += 0.1f; + player.magicDamage += 0.1f; + player.minionDamage += 0.1f; + } + if (graxDefense) + { + player.statDefense += 15; + player.endurance += 0.05f; + player.meleeDamage += 0.1f; + } + if (sMeleeBoost) + { + player.meleeDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.rangedDamage += 0.1f; + player.magicDamage += 0.1f; + player.minionDamage += 0.1f; + player.meleeCrit += 5; + player.magicCrit += 5; + player.rangedCrit += 5; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + } + if (tFury) + { + player.meleeDamage += 0.3f; + player.meleeCrit += 10; + } + if (yPower) + { + player.endurance += 0.05f; + player.statDefense += 5; + player.meleeCrit += 2; + player.meleeDamage += 0.06f; + player.magicCrit += 2; + player.magicDamage += 0.06f; + player.rangedCrit += 2; + player.rangedDamage += 0.06f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; + player.minionDamage += 0.06f; + player.minionKB += 1f; + player.moveSpeed += 0.15f; + } + if (tScale) + { + player.endurance += 0.05f; + player.statDefense += 5; + player.kbBuff = true; + } + if (darkSunRing) + { + player.maxMinions += 2; + player.meleeDamage += 0.1f; + player.rangedDamage += 0.1f; + player.magicDamage += 0.1f; + player.minionDamage += 0.1f; + player.minionKB += 1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.pickSpeed -= 0.3f; + if (Main.dayTime) + { + player.lifeRegen += 2; + } + else + { + player.statDefense += 20; + } + } + if (eGauntlet) + { + player.longInvince = true; + player.kbGlove = true; + player.meleeDamage += 0.15f; + player.meleeCrit += 5; + player.lavaMax += 240; + } + if (yInsignia) + { + player.longInvince = true; + player.kbGlove = true; + player.meleeDamage += 0.05f; + player.lavaMax += 240; + if (player.statLife <= (player.statLifeMax2 * 0.5f)) + { + player.meleeDamage += 0.1f; + player.magicDamage += 0.1f; + player.rangedDamage += 0.1f; + player.thrownDamage += 0.1f; + player.minionDamage += 0.1f; + } + } + if (fabsolVodka) + { + alcoholPoisonLevel++; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.08f; + player.rangedDamage += 0.08f; + player.meleeDamage += 0.08f; + player.magicDamage += 0.08f; + player.minionDamage += 0.08f; + player.statDefense -= 20; + } + if (vodka) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + player.statDefense -= 4; + player.meleeCrit += 2; + player.meleeDamage += 0.06f; + player.magicCrit += 2; + player.magicDamage += 0.06f; + player.rangedCrit += 2; + player.rangedDamage += 0.06f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; + player.minionDamage += 0.06f; + } + if (redWine) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + } + if (grapeBeer) + { + alcoholPoisonLevel++; + player.statDefense -= 2; + player.moveSpeed -= 0.05f; + } + if (moonshine) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + player.statDefense += 10; + player.endurance += 0.05f; + } + if (rum) + { + alcoholPoisonLevel++; + player.lifeRegen += 2; + player.moveSpeed += 0.1f; + player.statDefense -= 8; + } + if (fireball) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + } + if (whiskey) + { + alcoholPoisonLevel++; + player.statDefense -= 8; + player.meleeCrit += 2; + player.meleeDamage += 0.04f; + player.magicCrit += 2; + player.magicDamage += 0.04f; + player.rangedCrit += 2; + player.rangedDamage += 0.04f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; + player.minionDamage += 0.04f; + } + if (everclear) + { + alcoholPoisonLevel += 2; + player.lifeRegen -= 10; + player.statDefense -= 40; + player.meleeDamage += 0.25f; + player.magicDamage += 0.25f; + player.rangedDamage += 0.25f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.25f; + player.minionDamage += 0.25f; + } + if (bloodyMary) + { + alcoholPoisonLevel++; + player.lifeRegen -= 2; + if (Main.bloodMoon) + { + player.statDefense -= 6; + player.meleeCrit += 7; + player.meleeDamage += 0.15f; + player.magicCrit += 7; + player.magicDamage += 0.15f; + player.rangedCrit += 7; + player.rangedDamage += 0.15f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 7; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; + player.minionDamage += 0.15f; + player.moveSpeed += 0.15f; + } + } + if (tequila) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + if (Main.dayTime) + { + player.statDefense += 5; + player.meleeCrit += 2; + player.meleeDamage += 0.03f; + player.magicCrit += 2; + player.magicDamage += 0.03f; + player.rangedCrit += 2; + player.rangedDamage += 0.03f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; + player.minionDamage += 0.03f; + player.endurance += 0.03f; + } + } + if (tequilaSunrise) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + if (Main.dayTime) + { + player.statDefense += 15; + player.meleeCrit += 3; + player.meleeDamage += 0.07f; + player.magicCrit += 3; + player.magicDamage += 0.07f; + player.rangedCrit += 3; + player.rangedDamage += 0.07f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.07f; + player.minionDamage += 0.07f; + player.endurance += 0.07f; + } + } + if (screwdriver) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + } + if (caribbeanRum) + { + alcoholPoisonLevel++; + player.lifeRegen += 2; + player.moveSpeed += 0.2f; + player.statDefense -= 12; + } + if (cinnamonRoll) + { + alcoholPoisonLevel++; + player.statDefense -= 12; + player.manaRegenDelay--; + player.manaRegenBonus += 10; + } + if (margarita) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + player.statDefense -= 6; + } + if (starBeamRye) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + player.statDefense -= 6; + player.magicDamage += 0.08f; + player.manaCost *= 0.9f; + } + if (moscowMule) + { + alcoholPoisonLevel++; + player.lifeRegen -= 2; + player.meleeCrit += 3; + player.meleeDamage += 0.09f; + player.magicCrit += 3; + player.magicDamage += 0.09f; + player.rangedCrit += 3; + player.rangedDamage += 0.09f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.09f; + player.minionDamage += 0.09f; + } + if (whiteWine) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + player.statDefense -= 6; + player.magicDamage += 0.1f; + } + if (evergreenGin) + { + alcoholPoisonLevel++; + player.lifeRegen -= 1; + player.endurance += 0.05f; + } + if (alcoholPoisonLevel > 3) + { + if (player.lifeRegen > 0) + { + player.lifeRegen = 0; + } + player.lifeRegenTime = 0; + player.lifeRegen -= 3 * alcoholPoisonLevel; + } + if (giantPearl) + { + if (Main.netMode != 1) + { + for (int m = 0; m < 200; m++) + { + if (Main.npc[m].active && !Main.npc[m].friendly) + { + float distance = (Main.npc[m].Center - player.Center).Length(); + if (distance < 120f) + { + Main.npc[m].AddBuff(mod.BuffType("PearlAura"), 2, false); + } + } + } + } + } + if (normalityRelocator) + { + player.moveSpeed += 0.1f; + player.maxFallSpeed *= 1.1f; + } + if (CalamityMod.scopedWeaponList.Contains(player.inventory[player.selectedItem].type)) + { + player.scope = true; + } + if (harpyRing) + { + if (player.wingTimeMax > 0) + { + player.wingTimeMax = (int)((double)player.wingTimeMax * 1.25); + } + player.moveSpeed += 0.2f; + } + if (blueCandle) + { + if (player.wingTimeMax > 0) + { + player.wingTimeMax = (int)((double)player.wingTimeMax * 1.1); + } + player.moveSpeed += 0.15f; + } + if (community) + { + float floatTypeBoost = 0.01f + + (NPC.downedSlimeKing ? 0.01f : 0f) + + (NPC.downedBoss1 ? 0.01f : 0f) + + (NPC.downedBoss2 ? 0.01f : 0f) + + (NPC.downedQueenBee ? 0.01f : 0f) + //0.05 + (NPC.downedBoss3 ? 0.01f : 0f) + + (Main.hardMode ? 0.01f : 0f) + + (NPC.downedMechBossAny ? 0.01f : 0f) + + (NPC.downedPlantBoss ? 0.01f : 0f) + + (NPC.downedGolemBoss ? 0.01f : 0f) + //0.1 + (NPC.downedFishron ? 0.01f : 0f) + + (NPC.downedAncientCultist ? 0.01f : 0f) + + (NPC.downedMoonlord ? 0.01f : 0f) + + (CalamityWorld.downedProvidence ? 0.02f : 0f) + //0.15 + (CalamityWorld.downedDoG ? 0.02f : 0f) + //0.17 + (CalamityWorld.downedYharon ? 0.03f : 0f); //0.2 + int integerTypeBoost = (int)(floatTypeBoost * 50f); + int critBoost = integerTypeBoost / 2; + int regenBoost = 1 + (integerTypeBoost / 5); + float damageBoost = floatTypeBoost * 0.5f; + player.endurance += (floatTypeBoost * 0.25f); + player.statDefense += integerTypeBoost; + player.meleeCrit += critBoost; + player.meleeDamage += damageBoost; + player.magicCrit += critBoost; + player.magicDamage += damageBoost; + player.rangedCrit += critBoost; + player.rangedDamage += damageBoost; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critBoost; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageBoost; + player.minionDamage += damageBoost; + player.minionKB += floatTypeBoost; + player.moveSpeed += floatTypeBoost; + player.statLifeMax2 += player.statLifeMax / 5 / 20 * integerTypeBoost; + bool lesserEffect = false; + for (int l = 0; l < 22; l++) + { + int hasBuff = player.buffType[l]; + bool shouldAffect = CalamityMod.alcoholList.Contains(hasBuff); + if (shouldAffect) + { + lesserEffect = true; + } + } + if (player.lifeRegen < 0) + { + player.lifeRegen += lesserEffect ? 1 : regenBoost; + } + if (player.wingTimeMax > 0) + { + player.wingTimeMax = (int)((double)player.wingTimeMax * 1.15); + } + } + if (pinkCandle) + { + if (pinkCandleTimer > 0) { pinkCandleTimer--; } // 1 per second + if (pinkCandleTimer <= 0) + { + if (player.statLife < player.statLifeMax2) + { + float regen = (float)player.statLifeMax2 * 0.004f; + player.statLife += (int)regen; + } + pinkCandleTimer = 60; + } + } + if (rBrain) + { + if (player.statLife <= (int)((double)player.statLifeMax2 * 0.75)) + { + player.meleeDamage += 0.1f; + player.magicDamage += 0.1f; + player.rangedDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.minionDamage += 0.1f; + } + if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + { + player.moveSpeed -= 0.05f; + } + } + if (bloodyWormTooth) + { + if (player.statLife < (int)((double)player.statLifeMax2 * 0.5)) + { + player.meleeDamage += 0.1f; + player.meleeSpeed += 0.1f; + player.endurance += 0.1f; + } + else + { + player.meleeDamage += 0.05f; + player.meleeSpeed += 0.05f; + player.endurance += 0.05f; + } + } + if (rampartOfDeities) + { + player.panic = true; + player.armorPenetration += 50; + player.manaMagnet = true; + player.magicCuffs = true; + if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) + { + Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 1.35f, 0.3f, 0.9f); + } + player.noKnockback = true; + if (player.statLife > (int)((double)player.statLifeMax2 * 0.25)) + { + player.hasPaladinShield = true; + if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0) + { + int myPlayer = Main.myPlayer; + if (Main.player[myPlayer].team == player.team && player.team != 0) + { + float arg = player.position.X - Main.player[myPlayer].position.X; + float num3 = player.position.Y - Main.player[myPlayer].position.Y; + if ((float)Math.Sqrt((double)(arg * arg + num3 * num3)) < 800f) + { + Main.player[myPlayer].AddBuff(43, 20, true); + } + } + } + } + if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + { + player.AddBuff(62, 5, true); + } + if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15)) + { + player.endurance += 0.05f; + } + } + else if (fBulwark) + { + player.noKnockback = true; + if (player.statLife > (int)((double)player.statLifeMax2 * 0.25)) + { + player.hasPaladinShield = true; + if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0) + { + int myPlayer = Main.myPlayer; + if (Main.player[myPlayer].team == player.team && player.team != 0) + { + float arg = player.position.X - Main.player[myPlayer].position.X; + float num3 = player.position.Y - Main.player[myPlayer].position.Y; + if ((float)Math.Sqrt((double)(arg * arg + num3 * num3)) < 800f) + { + Main.player[myPlayer].AddBuff(43, 20, true); + } + } + } + } + if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + { + player.AddBuff(62, 5, true); + } + if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15)) + { + player.endurance += 0.05f; + } + } + if (frostFlare) + { + player.resistCold = true; + player.buffImmune[44] = true; + player.buffImmune[46] = true; + player.buffImmune[47] = true; + if (player.statLife > (int)((double)player.statLifeMax2 * 0.75)) + { + player.meleeDamage += 0.1f; + player.magicDamage += 0.1f; + player.rangedDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.minionDamage += 0.1f; + } + if (player.statLife < (int)((double)player.statLifeMax2 * 0.25)) + { + player.statDefense += 10; + } + } + if (vexation) + { + if (player.statLife < (int)((double)player.statLifeMax2 * 0.5)) + { + player.meleeDamage += 0.15f; + player.magicDamage += 0.15f; + player.rangedDamage += 0.15f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; + player.minionDamage += 0.15f; + } + } + if (ataxiaBlaze) + { + if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + { + player.AddBuff(BuffID.Inferno, 2); + } + } + if (bloodflareThrowing) + { + if (player.statLife > (int)((double)player.statLifeMax2 * 0.8)) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + player.statDefense += 30; + } + else + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + } + } + if (bloodflareSummon) + { + if (player.statLife >= (int)((double)player.statLifeMax2 * 0.9)) + { + player.minionDamage += 0.1f; + } + else if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + { + player.statDefense += 20; + player.lifeRegen += 2; + } + if (bloodflareSummonTimer > 0) { bloodflareSummonTimer--; } + if (player.whoAmI == Main.myPlayer && bloodflareSummonTimer <= 0) + { + bloodflareSummonTimer = 900; + for (int I = 0; I < 3; I++) + { + float ai1 = (float)(I * 120); + Projectile.NewProjectile(player.Center.X + (float)(Math.Sin(I * 120) * 550), player.Center.Y + (float)(Math.Cos(I * 120) * 550), 0f, 0f, + mod.ProjectileType("GhostlyMine"), (int)((auricSet ? 15000f : 5000f) * player.minionDamage), 1f, player.whoAmI, ai1, 0f); + } + } + } + if (reaperToothNecklace) + { + player.meleeDamage += 0.25f; + player.magicDamage += 0.25f; + player.rangedDamage += 0.25f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.25f; + player.minionDamage += 0.25f; + player.statDefense /= 2; + } + if (coreOfTheBloodGod) + { + player.endurance += 0.05f; + player.meleeDamage += 0.07f; + player.magicDamage += 0.07f; + player.rangedDamage += 0.07f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.07f; + player.minionDamage += 0.07f; + if (player.statDefense < 100) + { + player.meleeDamage += 0.15f; + player.magicDamage += 0.15f; + player.rangedDamage += 0.15f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; + player.minionDamage += 0.15f; + } + } + else if (bloodflareCore) + { + if (player.statDefense < 100) + { + player.meleeDamage += 0.15f; + player.magicDamage += 0.15f; + player.rangedDamage += 0.15f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; + player.minionDamage += 0.15f; + } + if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15)) + { + player.endurance += 0.1f; + player.meleeDamage += 0.2f; + player.magicDamage += 0.2f; + player.rangedDamage += 0.2f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.2f; + player.minionDamage += 0.2f; + } + else if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + { + player.endurance += 0.05f; + player.meleeDamage += 0.1f; + player.magicDamage += 0.1f; + player.rangedDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.minionDamage += 0.1f; + } + } + if (godSlayerThrowing) + { + if (player.statLife >= player.statLifeMax2) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.1f; + } + } + if (tarraSummon) + { + int lifeCounter = 0; + float num2 = 300f; + bool flag = lifeCounter % 60 == 0; + int num3 = 200; + if (player.whoAmI == Main.myPlayer) + { + for (int l = 0; l < 200; l++) + { + NPC nPC = Main.npc[l]; + if (nPC.active && !nPC.friendly && nPC.damage > 0 && !nPC.dontTakeDamage && Vector2.Distance(player.Center, nPC.Center) <= num2) + { + if (flag) + { + nPC.StrikeNPC(num3, 0f, 0, false, false, false); + if (Main.netMode != 0) + { + NetMessage.SendData(28, -1, -1, null, l, (float)num3, 0f, 0f, 0, 0, 0); + } + } + } + } + } + lifeCounter++; + if (lifeCounter >= 180) + { + lifeCounter = 0; + } + if (player.statLife >= player.statLifeMax2) + { + player.minionDamage += 0.1f; + player.maxMinions += 2; + } + } + #endregion + #region LimitsAndOtherShit + if (player.meleeSpeed < 0.5f) + { + player.meleeSpeed = 0.5f; + } + if (auricSet && silvaMelee) + { + double multiplier = (double)player.statLife / (double)player.statLifeMax2; + player.meleeDamage += (float)(multiplier * 0.2); //ranges from 1.2 times to 1 times + } + if (player.endurance > defEndurance) //0.33 + { + float damageReductionAboveCap = player.endurance - defEndurance; //0.6 - 0.33 = 0.27 + player.endurance = defEndurance + (damageReductionAboveCap * 0.1f); //0.33 + (0.27 * 0.1) = 0.357 + } + if (player.statLife < player.statLifeMax2 && CalamityWorld.revenge) + { + bool noLifeRegenCap = ((player.shinyStone || draedonsHeart || cFreeze || shadeRegen) && + (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0); + if (!noLifeRegenCap) + { + //Max HP = 400 + //350 HP = 1 - 0.875 * 10 = 1.25 = 1 + //100 HP = 1 - 0.25 * 10 = 7.5 = 7 + //200 HP = 1 - 0.5 * 10 = 5 + int lifeRegenScale = (int)(1f - ((float)player.statLife / (float)player.statLifeMax2)) * 10; //9 to 0 (1% HP to 100%) + if (player.lifeRegen > lifeRegenScale) + { + double lifeRegenScalar = (double)(1f + ((float)player.statLife / (float)player.statLifeMax2)); //1 to 2 (1% HP to 100%) + int defLifeRegen = (int)((double)player.lifeRegen / lifeRegenScalar); + player.lifeRegen = defLifeRegen; + } + } + } + #region MeleeLevelBoosts + if (meleeLevel >= 12500) + { + player.meleeDamage += 0.12f; + player.meleeCrit += 6; + } + else if (meleeLevel >= 10500) + { + player.meleeDamage += 0.1f; + player.meleeCrit += 5; + } + else if (meleeLevel >= 9100) + { + player.meleeDamage += 0.09f; + player.meleeCrit += 5; + } + else if (meleeLevel >= 7800) + { + player.meleeDamage += 0.08f; + player.meleeCrit += 4; + } + else if (meleeLevel >= 6600) + { + player.meleeDamage += 0.07f; + player.meleeCrit += 4; + } + else if (meleeLevel >= 5500) //hm limit + { + player.meleeDamage += 0.06f; + player.meleeCrit += 3; + } + else if (meleeLevel >= 4500) + { + player.meleeDamage += 0.05f; + player.meleeCrit += 3; + } + else if (meleeLevel >= 3600) + { + player.meleeDamage += 0.05f; + player.meleeCrit += 2; + } + else if (meleeLevel >= 2800) + { + player.meleeDamage += 0.04f; + player.meleeCrit += 2; + } + else if (meleeLevel >= 2100) + { + player.meleeDamage += 0.04f; + player.meleeCrit += 1; + } + else if (meleeLevel >= 1500) //prehm limit + { + player.meleeDamage += 0.03f; + player.meleeCrit += 1; + } + else if (meleeLevel >= 1000) + { + player.meleeDamage += 0.03f; + player.meleeCrit += 1; + } + else if (meleeLevel >= 600) + { + player.meleeDamage += 0.02f; + } + else if (meleeLevel >= 300) + player.meleeDamage += 0.02f; + else if (meleeLevel >= 100) + player.meleeDamage += 0.01f; + #endregion + #region RangedLevelBoosts + if (rangedLevel >= 12500) + { + player.rangedDamage += 0.12f; + player.moveSpeed += 0.12f; + player.rangedCrit += 6; + } + else if (rangedLevel >= 10500) + { + player.rangedDamage += 0.1f; + player.moveSpeed += 0.1f; + player.rangedCrit += 5; + } + else if (rangedLevel >= 9100) + { + player.rangedDamage += 0.09f; + player.moveSpeed += 0.09f; + player.rangedCrit += 5; + } + else if (rangedLevel >= 7800) + { + player.rangedDamage += 0.08f; + player.moveSpeed += 0.08f; + player.rangedCrit += 4; + } + else if (rangedLevel >= 6600) + { + player.rangedDamage += 0.07f; + player.moveSpeed += 0.07f; + player.rangedCrit += 4; + } + else if (rangedLevel >= 5500) + { + player.rangedDamage += 0.06f; + player.moveSpeed += 0.06f; + player.rangedCrit += 3; + } + else if (rangedLevel >= 4500) + { + player.rangedDamage += 0.05f; + player.moveSpeed += 0.05f; + player.rangedCrit += 3; + } + else if (rangedLevel >= 3600) + { + player.rangedDamage += 0.05f; + player.moveSpeed += 0.05f; + player.rangedCrit += 2; + } + else if (rangedLevel >= 2800) + { + player.rangedDamage += 0.04f; + player.moveSpeed += 0.04f; + player.rangedCrit += 2; + } + else if (rangedLevel >= 2100) + { + player.rangedDamage += 0.04f; + player.moveSpeed += 0.03f; + player.rangedCrit += 1; + } + else if (rangedLevel >= 1500) + { + player.rangedDamage += 0.03f; + player.moveSpeed += 0.02f; + player.rangedCrit += 1; + } + else if (rangedLevel >= 1000) + { + player.rangedDamage += 0.03f; + player.moveSpeed += 0.01f; + player.rangedCrit += 1; + } + else if (rangedLevel >= 600) + { + player.rangedDamage += 0.02f; + player.rangedCrit += 1; + } + else if (rangedLevel >= 300) + player.rangedDamage += 0.02f; + else if (rangedLevel >= 100) + player.rangedDamage += 0.01f; + #endregion + #region MagicLevelBoosts + if (magicLevel >= 12500) + { + player.magicDamage += 0.12f; + player.manaCost *= 0.88f; + player.magicCrit += 6; + } + else if (magicLevel >= 10500) + { + player.magicDamage += 0.1f; + player.manaCost *= 0.9f; + player.magicCrit += 5; + } + else if (magicLevel >= 9100) + { + player.magicDamage += 0.09f; + player.manaCost *= 0.91f; + player.magicCrit += 5; + } + else if (magicLevel >= 7800) + { + player.magicDamage += 0.08f; + player.manaCost *= 0.92f; + player.magicCrit += 4; + } + else if (magicLevel >= 6600) + { + player.magicDamage += 0.07f; + player.manaCost *= 0.93f; + player.magicCrit += 4; + } + else if (magicLevel >= 5500) + { + player.magicDamage += 0.06f; + player.manaCost *= 0.94f; + player.magicCrit += 3; + } + else if (magicLevel >= 4500) + { + player.magicDamage += 0.05f; + player.manaCost *= 0.95f; + player.magicCrit += 3; + } + else if (magicLevel >= 3600) + { + player.magicDamage += 0.05f; + player.manaCost *= 0.95f; + player.magicCrit += 2; + } + else if (magicLevel >= 2800) + { + player.magicDamage += 0.04f; + player.manaCost *= 0.96f; + player.magicCrit += 2; + } + else if (magicLevel >= 2100) + { + player.magicDamage += 0.04f; + player.manaCost *= 0.97f; + player.magicCrit += 1; + } + else if (magicLevel >= 1500) + { + player.magicDamage += 0.03f; + player.manaCost *= 0.98f; + player.magicCrit += 1; + } + else if (magicLevel >= 1000) + { + player.magicDamage += 0.03f; + player.manaCost *= 0.99f; + player.magicCrit += 1; + } + else if (magicLevel >= 600) + { + player.magicDamage += 0.02f; + player.manaCost *= 0.99f; + } + else if (magicLevel >= 300) + player.magicDamage += 0.02f; + else if (magicLevel >= 100) + player.magicDamage += 0.01f; + #endregion + #region SummonLevelBoosts + if (summonLevel >= 12500) + { + player.minionDamage += 0.12f; + player.minionKB += 3.0f; + player.maxMinions += 3; + } + else if (summonLevel >= 10500) + { + player.minionDamage += 0.1f; + player.minionKB += 3.0f; + player.maxMinions += 2; + } + else if (summonLevel >= 9100) + { + player.minionDamage += 0.09f; + player.minionKB += 2.7f; + player.maxMinions += 2; + } + else if (summonLevel >= 7800) + { + player.minionDamage += 0.08f; + player.minionKB += 2.4f; + player.maxMinions += 2; + } + else if (summonLevel >= 6600) + { + player.minionDamage += 0.07f; + player.minionKB += 2.1f; + player.maxMinions += 2; + } + else if (summonLevel >= 5500) + { + player.minionDamage += 0.06f; + player.minionKB += 1.8f; + player.maxMinions += 2; + } + else if (summonLevel >= 4500) + { + player.minionDamage += 0.06f; + player.minionKB += 1.8f; + player.maxMinions++; + } + else if (summonLevel >= 3600) + { + player.minionDamage += 0.05f; + player.minionKB += 1.5f; + player.maxMinions++; + } + else if (summonLevel >= 2800) + { + player.minionDamage += 0.04f; + player.minionKB += 1.2f; + player.maxMinions++; + } + else if (summonLevel >= 2100) + { + player.minionDamage += 0.04f; + player.minionKB += 0.9f; + player.maxMinions++; + } + else if (summonLevel >= 1500) + { + player.minionDamage += 0.03f; + player.minionKB += 0.6f; + } + else if (summonLevel >= 1000) + { + player.minionDamage += 0.03f; + player.minionKB += 0.3f; + } + else if (summonLevel >= 600) + { + player.minionDamage += 0.02f; + player.minionKB += 0.3f; + } + else if (summonLevel >= 300) + player.minionDamage += 0.02f; + else if (summonLevel >= 100) + player.minionDamage += 0.01f; + #endregion + #region RogueLevelBoosts + if (rogueLevel >= 12500) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.12f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.12f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 6; + } + else if (rogueLevel >= 10500) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + } + else if (rogueLevel >= 9100) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.09f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.09f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + } + else if (rogueLevel >= 7800) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.08f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.08f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 4; + } + else if (rogueLevel >= 6600) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.07f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.07f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 4; + } + else if (rogueLevel >= 5500) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.06f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; + } + else if (rogueLevel >= 4500) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; + } + else if (rogueLevel >= 3600) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + } + else if (rogueLevel >= 2800) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.04f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + } + else if (rogueLevel >= 2100) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.03f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; + } + else if (rogueLevel >= 1500) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.02f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; + } + else if (rogueLevel >= 1000) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.01f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; + } + else if (rogueLevel >= 600) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.01f; + } + else if (rogueLevel >= 300) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; + else if (rogueLevel >= 100) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.01f; + #endregion + if (dArtifact) + { + player.meleeDamage += 0.25f; + player.magicDamage += 0.25f; + player.rangedDamage += 0.25f; + player.minionDamage += 0.25f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.25f; + } + if (trippy) + { + player.meleeDamage += 0.5f; + player.magicDamage += 0.5f; + player.rangedDamage += 0.5f; + player.minionDamage += 0.5f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.5f; + } + if (eArtifact) + { + player.manaCost *= 0.85f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; + player.maxMinions += 2; + } + if (gArtifact) + { + player.maxMinions += 8; + if (player.whoAmI == Main.myPlayer) + { + if (player.FindBuffIndex(mod.BuffType("AngryChicken")) == -1) + { + player.AddBuff(mod.BuffType("AngryChicken"), 3600, true); + } + if (player.ownedProjectileCounts[mod.ProjectileType("AngryChicken")] < 2) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("AngryChicken"), (int)(232f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); + } + } + } + if (pArtifact) + { + if (player.whoAmI == Main.myPlayer) + { + if (player.FindBuffIndex(mod.BuffType("GuardianHealer")) == -1) + { + player.AddBuff(mod.BuffType("GuardianHealer"), 3600, true); + } + if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianHealer")] < 1) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -6f, mod.ProjectileType("MiniGuardianHealer"), 0, 0f, Main.myPlayer, 0f, 0f); + } + float baseDamage = 100f + + (CalamityWorld.downedDoG ? 100f : 0f) + + (CalamityWorld.downedYharon ? 100f : 0f); + if (player.maxMinions >= 8) + { + if (player.FindBuffIndex(mod.BuffType("GuardianDefense")) == -1) + { + player.AddBuff(mod.BuffType("GuardianDefense"), 3600, true); + } + if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianDefense")] < 1) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -3f, mod.ProjectileType("MiniGuardianDefense"), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); + } + } + if (tarraSummon || bloodflareSummon || godSlayerSummon || silvaSummon || dsSetBonus || omegaBlueSet) + { + if (player.FindBuffIndex(mod.BuffType("GuardianOffense")) == -1) + { + player.AddBuff(mod.BuffType("GuardianOffense"), 3600, true); + } + if (player.ownedProjectileCounts[mod.ProjectileType("MiniGuardianAttack")] < 1) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("MiniGuardianAttack"), (int)(baseDamage * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); + } + } + } + } + if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] > 1 || player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] > 1 || + player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] > 1 || player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] > 1 || + player.ownedProjectileCounts[mod.ProjectileType("CloudWaifu")] > 1 || player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] > 1) + { + for (int projIndex = 0; projIndex < 1000; projIndex++) + { + if (Main.projectile[projIndex].active && Main.projectile[projIndex].owner == player.whoAmI) + { + if (Main.projectile[projIndex].type == mod.ProjectileType("BigBustyRose") || Main.projectile[projIndex].type == mod.ProjectileType("SirenLure") || + Main.projectile[projIndex].type == mod.ProjectileType("DrewsSandyWaifu") || Main.projectile[projIndex].type == mod.ProjectileType("SandyWaifu") || + Main.projectile[projIndex].type == mod.ProjectileType("CloudWaifu") || Main.projectile[projIndex].type == mod.ProjectileType("FungalClump")) + { + Main.projectile[projIndex].Kill(); + } + } + } + } + if (marked || reaperToothNecklace) + { + player.endurance *= 0.5f; + } + #endregion + } + + public override void PostUpdateRunSpeeds() + { + #region SpeedBoosts + if (hAttack) { if (!Main.dayTime) { @@ -5379,106 +5970,127 @@ namespace CalamityMod player.maxRunSpeed *= 1.05f; } } - if (stressPills || laudanum) + if (stressPills || laudanum || draedonsHeart) { player.runAcceleration *= 1.05f; player.maxRunSpeed *= 1.05f; } - if (abyssalDivingSuit) - { - player.runAcceleration *= Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) ? 1.05f : 0.4f; - player.maxRunSpeed *= Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) ? 1.05f : 0.4f; - } - if (sirenWaterBuff) - { - player.runAcceleration *= 1.15f; - player.maxRunSpeed *= 1.15f; - } - if (frostFlare && player.statLife < (int)((double)player.statLifeMax2 * 0.25)) - { - player.runAcceleration *= 1.15f; - player.maxRunSpeed *= 1.15f; - } - if (shadowSpeed) - { - player.runAcceleration *= 1.5f; - player.maxRunSpeed *= 1.5f; - } - else if (auricSet) - { - player.runAcceleration *= 1.1f; - player.maxRunSpeed *= 1.1f; - } - else if (silvaSet) + if (abyssalDivingSuit) + { + player.runAcceleration *= Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) ? 1.05f : 0.4f; + player.maxRunSpeed *= Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) ? 1.05f : 0.4f; + } + if (sirenWaterBuff) + { + player.runAcceleration *= 1.15f; + player.maxRunSpeed *= 1.15f; + } + if (frostFlare && player.statLife < (int)((double)player.statLifeMax2 * 0.25)) + { + player.runAcceleration *= 1.15f; + player.maxRunSpeed *= 1.15f; + } + if (shadowSpeed) + { + player.runAcceleration *= 1.5f; + player.maxRunSpeed *= 1.5f; + } + else if (auricSet) + { + player.runAcceleration *= 1.1f; + player.maxRunSpeed *= 1.1f; + } + else if (silvaSet) { player.runAcceleration *= 1.05f; player.maxRunSpeed *= 1.05f; } - if (cTracers) - { - player.runAcceleration *= 1.1f; - player.maxRunSpeed *= 1.1f; - } - else if (eTracers) - { - player.runAcceleration *= 1.05f; - player.maxRunSpeed *= 1.05f; - } - if (horror) - { - player.runAcceleration *= 0.85f; - player.maxRunSpeed *= 0.85f; - } - if (elysianGuard) - { - player.runAcceleration *= 0.5f; - player.maxRunSpeed *= 0.5f; - } - #endregion - #region DashEffects - if (player.pulley && dashMod > 0) - { - ModDashMovement(); - } - else if (player.grappling[0] == -1 && !player.tongued) - { - if (dashMod > 0) - { - ModHorizontalMovement(); - ModDashMovement(); - } - if (pAmulet && modStealth < 1f) - { - float num43 = player.maxRunSpeed / 2f * (1f - modStealth); - player.maxRunSpeed -= num43; - player.accRunSpeed = player.maxRunSpeed; - } - } - #endregion - } - #endregion + if (cTracers) + { + player.runAcceleration *= 1.1f; + player.maxRunSpeed *= 1.1f; + } + else if (eTracers) + { + player.runAcceleration *= 1.05f; + player.maxRunSpeed *= 1.05f; + } + if (blueCandle) + { + player.runAcceleration *= 1.05f; + } + if (horror) + { + player.runAcceleration *= 0.85f; + player.maxRunSpeed *= 0.85f; + } + if (elysianGuard) + { + player.runAcceleration *= 0.5f; + player.maxRunSpeed *= 0.5f; + } + if (player.powerrun) //asphalt + { + player.maxRunSpeed *= 0.6666667f; //base is 3 * 3.5 = 10.5 * 0.6666667 = 7.0 + } + if (rogueStealthMax > 0f) + { + if (rogueStealth >= rogueStealthMax) //full stealth, more speed + { + player.runAcceleration *= 1f + (rogueStealth * 0.05f); + player.maxRunSpeed *= 1f + (rogueStealth * 0.05f); + } + else + { + player.runAcceleration *= 1f + (rogueStealth * 0.025f); + player.maxRunSpeed *= 1f + (rogueStealth * 0.025f); + } + } + #endregion + #region DashEffects + if (player.pulley && dashMod > 0) + { + ModDashMovement(); + } + else if (player.grappling[0] == -1 && !player.tongued) + { + if (dashMod > 0) + { + ModHorizontalMovement(); + ModDashMovement(); + } + if (pAmulet && modStealth < 1f) + { + float num43 = player.maxRunSpeed / 2f * (1f - modStealth); + player.maxRunSpeed -= num43; + player.accRunSpeed = player.maxRunSpeed; + } + } + #endregion + } + #endregion - #region PreKill - public override bool PreKill(double damage, int hitDirection, bool pvp, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource) + #region PreKill + public override bool PreKill(double damage, int hitDirection, bool pvp, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource) { - if (invincible && player.inventory[player.selectedItem].type != mod.ItemType("ColdheartIcicle")) - { - if (player.statLife <= 0) - { - player.statLife = 1; - } - return false; - } - if (hInferno) - { - for (int x = 0; x < 200; x++) - { - if (Main.npc[x].active && Main.npc[x].type == mod.NPCType("Providence")) - { - Main.npc[x].active = false; - } - } - } + if (invincible && player.inventory[player.selectedItem].type != mod.ItemType("ColdheartIcicle")) + { + if (player.statLife <= 0) + { + player.statLife = 1; + } + return false; + } + if (hInferno) + { + for (int x = 0; x < 200; x++) + { + if (Main.npc[x].active && Main.npc[x].type == mod.NPCType("Providence")) + { + Main.npc[x].active = false; + } + } + } if (nCore && Main.rand.Next(10) == 0) { Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 67); @@ -5498,10 +6110,10 @@ namespace CalamityMod } } player.statLife += 100; - player.HealEffect(100); + player.HealEffect(100); return false; } - if (godSlayer && !godSlayerCooldown) + if (godSlayer && !godSlayerCooldown) { Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 67); for (int j = 0; j < 50; j++) @@ -5520,40 +6132,43 @@ namespace CalamityMod } } player.statLife += 150; - player.HealEffect(150); - player.AddBuff(mod.BuffType("GodSlayerCooldown"), 2700); + player.HealEffect(150); + player.AddBuff(mod.BuffType("GodSlayerCooldown"), 2700); return false; } - if (silvaSet && silvaCountdown > 0) - { - if (hasSilvaEffect) - { - silvaHitCounter++; - } - if (player.FindBuffIndex(mod.BuffType("SilvaRevival")) == -1) - player.AddBuff(mod.BuffType("SilvaRevival"), 600); - hasSilvaEffect = true; - if (player.statLife < 1) - { - player.statLife = 1; - } - return false; - } - if (permafrostsConcoction && player.FindBuffIndex(mod.BuffType("ConcoctionCooldown")) == -1) - { - player.AddBuff(mod.BuffType("ConcoctionCooldown"), 10800); - player.AddBuff(mod.BuffType("Encased"), 300); - player.statLife = player.statLifeMax2 * 3 / 10; - Main.PlaySound(SoundID.Item92, player.position); - for (int i = 0; i < 60; i++) - { - int d = Dust.NewDust(player.position, player.width, player.height, 88, 0f, 0f, 0, default(Color), 2.5f); - Main.dust[d].noGravity = true; - Main.dust[d].velocity *= 5f; - } - return false; - } - if (bBlood && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8) + if (silvaSet && silvaCountdown > 0) + { + if (hasSilvaEffect) + { + silvaHitCounter++; + } + if (player.FindBuffIndex(mod.BuffType("SilvaRevival")) == -1) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaActivation"), (int)player.position.X, (int)player.position.Y); + player.AddBuff(mod.BuffType("SilvaRevival"), 600); + } + hasSilvaEffect = true; + if (player.statLife < 1) + { + player.statLife = 1; + } + return false; + } + if (permafrostsConcoction && player.FindBuffIndex(mod.BuffType("ConcoctionCooldown")) == -1) + { + player.AddBuff(mod.BuffType("ConcoctionCooldown"), 10800); + player.AddBuff(mod.BuffType("Encased"), 300); + player.statLife = player.statLifeMax2 * 3 / 10; + Main.PlaySound(SoundID.Item92, player.position); + for (int i = 0; i < 60; i++) + { + int d = Dust.NewDust(player.position, player.width, player.height, 88, 0f, 0f, 0, default(Color), 2.5f); + Main.dust[d].noGravity = true; + Main.dust[d].velocity *= 5f; + } + return false; + } + if (bBlood && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8) { damageSource = PlayerDeathReason.ByCustomReason(player.name + " became a blood geyser."); } @@ -5569,72 +6184,61 @@ namespace CalamityMod { damageSource = PlayerDeathReason.ByCustomReason(player.name + " fell prey to their sins."); } - if (CalamityGlobalNPC.SCal > -1) - { - if (sCalDeathCount < 51) - { - sCalDeathCount++; - } - } - if (CalamityWorld.ironHeart && areThereAnyDamnBosses) - { - KillPlayer(); - return false; - } - return true; + if (CalamityGlobalNPC.SCal > -1) + { + if (sCalDeathCount < 51) + { + sCalDeathCount++; + } + } + if (CalamityWorld.ironHeart && areThereAnyDamnBosses) + { + KillPlayer(); + return false; + } + return true; } - #endregion + #endregion - #region UseTimeMult - public override float UseTimeMultiplier(Item item) - { - if (silvaRanged) - { - if (item.ranged && !CalamityMod.throwingItemList.Contains(item.type) && item.useTime > 3) - return (auricSet ? 1.2f : 1.1f); - } - if (silvaThrowing) - { - if (player.statLife > (int)((double)player.statLifeMax2 * 0.9) && - CalamityMod.throwingItemList.Contains(item.type) && item.useTime > 3) - return 1.1f; - } - return 1f; - } - #endregion - - #region MeleeSpeedMult - public override float MeleeSpeedMultiplier(Item item) - { - if (player.meleeSpeed > 1.5f) - { - return (1.5f / player.meleeSpeed); - } - return 1f; - } - #endregion - - #region GetWeaponDamageAndKB - public override void GetWeaponDamage(Item item, ref int damage) + #region UseTimeMult + public override float UseTimeMultiplier(Item item) { - if (flamethrowerBoost && item.ranged && item.useAmmo == 23) - { - damage = (int)((double)damage * 1.25); - } - if (dodgeScarf && item.melee && item.shoot == 0) - { - damage = (int)((double)damage * 1.2); - } - if ((cinnamonRoll && CalamityMod.fireWeaponList.Contains(item.type)) || (evergreenGin && CalamityMod.natureWeaponList.Contains(item.type))) - { - damage = (int)((double)damage * 1.15); - } - if (fireball && CalamityMod.fireWeaponList.Contains(item.type)) - { - damage = (int)((double)damage * 1.1); - } - } - + if (silvaRanged) + { + if (item.ranged && !item.GetGlobalItem(mod).rogue && item.useTime > 3) + return (auricSet ? 1.2f : 1.1f); + } + if (silvaThrowing) + { + if (player.statLife > (int)((double)player.statLifeMax2 * 0.5) && + item.GetGlobalItem(mod).rogue && item.useTime > 3) + return 1.1f; + } + return 1f; + } + #endregion + + #region GetWeaponDamageAndKB + public override void GetWeaponDamage(Item item, ref int damage) + { + if (flamethrowerBoost && item.ranged && item.useAmmo == 23) + { + damage = (int)((double)damage * 1.25); + } + if (dodgeScarf && item.melee && item.shoot == 0) + { + damage = (int)((double)damage * 1.2); + } + if ((cinnamonRoll && CalamityMod.fireWeaponList.Contains(item.type)) || (evergreenGin && CalamityMod.natureWeaponList.Contains(item.type))) + { + damage = (int)((double)damage * 1.15); + } + if (fireball && CalamityMod.fireWeaponList.Contains(item.type)) + { + damage = (int)((double)damage * 1.1); + } + } + public override void GetWeaponKnockback(Item item, ref float knockback) { if (pAmulet && item.melee) @@ -5645,950 +6249,828 @@ namespace CalamityMod { knockback *= 1f + (1f - modStealth) * 0.5f; } - if (whiskey) - { - knockback *= 1.04f; - } - if (tequila && Main.dayTime) - { - knockback *= 1.04f; - } - if (tequilaSunrise && Main.dayTime) - { - knockback *= 1.09f; - } - if (moscowMule) - { - knockback *= 1.12f; - } - } - #endregion + if (whiskey) + { + knockback *= 1.04f; + } + if (tequila && Main.dayTime) + { + knockback *= 1.03f; + } + if (tequilaSunrise && Main.dayTime) + { + knockback *= 1.07f; + } + if (moscowMule) + { + knockback *= 1.09f; + } + } + #endregion - #region Shoot - public override bool Shoot(Item item, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + #region Shoot + public override bool Shoot(Item item, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - if (CalamityMod.throwingItemList.Contains(item.type)) - { - speedX *= CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity; - speedY *= CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity; - } - if (eArtifact && item.ranged && !CalamityMod.throwingItemList.Contains(item.type)) - { - speedX *= 1.25f; - speedY *= 1.25f; - } - if (bloodflareMage) //0 - 99 - { - if (item.magic && Main.rand.Next(0, 100) >= 95) - { - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("GhostlyBolt"), (int)((double)damage * (auricSet ? 4.2 : 2.6)), 1f, player.whoAmI, 0f, 0f); - } - } - } - if (bloodflareRanged) //0 - 99 - { - if (item.ranged && !CalamityMod.throwingItemList.Contains(item.type) && Main.rand.Next(0, 100) >= 98) - { - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BloodBomb"), (int)((double)damage * (auricSet ? 2.2 : 1.6)), 2f, player.whoAmI, 0f, 0f); - } - } - } - if (tarraMage) - { - if (tarraCrits >= 5 && player.whoAmI == Main.myPlayer) - { - tarraCrits = 0; - int num106 = 9 + Main.rand.Next(3); - for (int num107 = 0; num107 < num106; num107++) - { - float num110 = 0.025f * (float)num107; - float hardar = speedX + (float)Main.rand.Next(-25, 26) * num110; - float hordor = speedY + (float)Main.rand.Next(-25, 26) * num110; - float num84 = (float)Math.Sqrt((double)(speedX * speedX + speedY * speedY)); - num84 = item.shootSpeed / num84; - hardar *= num84; - hordor *= num84; - Projectile.NewProjectile(position.X, position.Y, hardar, hordor, 206, (int)((double)damage * 0.2), knockBack, player.whoAmI, 0.0f, 0.0f); - } - } - } + if (item.GetGlobalItem(mod).rogue) + { + speedX *= CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity; + speedY *= CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity; + } + if (eArtifact && item.ranged && !item.GetGlobalItem(mod).rogue) + { + speedX *= 1.25f; + speedY *= 1.25f; + } + if (bloodflareMage) //0 - 99 + { + if (item.magic && Main.rand.Next(0, 100) >= 95) + { + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("GhostlyBolt"), (int)((double)damage * (auricSet ? 4.2 : 2.6)), 1f, player.whoAmI, 0f, 0f); + } + } + } + if (bloodflareRanged) //0 - 99 + { + if (item.ranged && !item.GetGlobalItem(mod).rogue && Main.rand.Next(0, 100) >= 98) + { + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BloodBomb"), (int)((double)damage * (auricSet ? 2.2 : 1.6)), 2f, player.whoAmI, 0f, 0f); + } + } + } + if (tarraMage) + { + if (tarraCrits >= 5 && player.whoAmI == Main.myPlayer) + { + tarraCrits = 0; + int num106 = 9 + Main.rand.Next(3); + for (int num107 = 0; num107 < num106; num107++) + { + float num110 = 0.025f * (float)num107; + float hardar = speedX + (float)Main.rand.Next(-25, 26) * num110; + float hordor = speedY + (float)Main.rand.Next(-25, 26) * num110; + float num84 = (float)Math.Sqrt((double)(speedX * speedX + speedY * speedY)); + num84 = item.shootSpeed / num84; + hardar *= num84; + hordor *= num84; + Projectile.NewProjectile(position.X, position.Y, hardar, hordor, 206, (int)((double)damage * 0.2), knockBack, player.whoAmI, 0.0f, 0.0f); + } + } + } if (ataxiaBolt) { - if (item.ranged && !CalamityMod.throwingItemList.Contains(item.type) && Main.rand.Next(2) == 0) - { - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("ChaosFlare"), (int)((double)damage * 0.25), 2f, player.whoAmI, 0f, 0f); - } - } + if (item.ranged && !item.GetGlobalItem(mod).rogue && Main.rand.Next(2) == 0) + { + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("ChaosFlare"), (int)((double)damage * 0.25), 2f, player.whoAmI, 0f, 0f); + } + } } - if (godSlayerRanged) //0 - 99 - { - if (item.ranged && !CalamityMod.throwingItemList.Contains(item.type) && Main.rand.Next(0, 100) >= 95) - { - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("GodSlayerShrapnelRound"), (int)((double)damage * (auricSet ? 3.2 : 2.1)), 2f, player.whoAmI, 0f, 0f); - } - } - } - if (ataxiaVolley) + if (godSlayerRanged) //0 - 99 { - if (CalamityMod.throwingItemList.Contains(item.type) && Main.rand.Next(10) == 0) - { - if (player.whoAmI == Main.myPlayer) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 20); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - for (i = 0; i < 4; i++) - { - Vector2 vector2 = new Vector2(player.Center.X, player.Center.Y); - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("ChaosFlare2"), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("ChaosFlare2"), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); - } - } - } + if (item.ranged && !item.GetGlobalItem(mod).rogue && Main.rand.Next(0, 100) >= 95) + { + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("GodSlayerShrapnelRound"), (int)((double)damage * (auricSet ? 3.2 : 2.1)), 2f, player.whoAmI, 0f, 0f); + } + } + } + if (ataxiaVolley) + { + if (item.GetGlobalItem(mod).rogue && Main.rand.Next(10) == 0) + { + if (player.whoAmI == Main.myPlayer) + { + Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 20); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + for (i = 0; i < 4; i++) + { + Vector2 vector2 = new Vector2(player.Center.X, player.Center.Y); + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("ChaosFlare2"), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("ChaosFlare2"), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); + } + } + } } if (reaverDoubleTap) //0 - 99 { - if (item.ranged && !CalamityMod.throwingItemList.Contains(item.type) && Main.rand.Next(0, 100) >= 90) - { - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("MiniRocket"), (int)((double)damage * 1.3), 2f, player.whoAmI, 0f, 0f); - } - } + if (item.ranged && !item.GetGlobalItem(mod).rogue && Main.rand.Next(0, 100) >= 90) + { + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("MiniRocket"), (int)((double)damage * 1.3), 2f, player.whoAmI, 0f, 0f); + } + } + } + if (victideSet) + { + if ((item.ranged || item.melee || item.magic || + item.GetGlobalItem(mod).rogue || + item.summon) && item.rare < 8 && Main.rand.Next(10) == 0) + { + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("Seashell"), damage * 2, 1f, player.whoAmI, 0f, 0f); + } + } } - if (victideSet) - { - if ((item.ranged || item.melee || item.magic || - CalamityMod.throwingItemList.Contains(item.type) || - item.summon) && Main.rand.Next(10) == 0) - { - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, mod.ProjectileType("Seashell"), damage * 2, 1f, player.whoAmI, 0f, 0f); - } - } - } return true; } - #endregion + #endregion - #region MeleeEffects - public override void MeleeEffects(Item item, Rectangle hitbox) + #region MeleeEffects + public override void MeleeEffects(Item item, Rectangle hitbox) { if (aWeapon && item.melee && !item.noMelee && !item.noUseGraphic) { if (Main.rand.Next(3) == 0) - { - int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, mod.DustType("BrimstoneFlame"), player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 0.75f); - } + { + int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, mod.DustType("BrimstoneFlame"), player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 0.75f); + } } if (aChicken && item.melee && !item.noMelee && !item.noUseGraphic) { if (Main.rand.Next(3) == 0) - { - int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 244, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 0.75f); - } + { + int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 244, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 0.75f); + } } if (eGauntlet && item.melee && !item.noMelee && !item.noUseGraphic) { if (Main.rand.Next(3) == 0) - { + { int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 66, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1.25f); - Main.dust[num280].noGravity = true; - } + Main.dust[num280].noGravity = true; + } } if (cryogenSoul && item.melee && !item.noMelee && !item.noUseGraphic) { if (Main.rand.Next(3) == 0) - { - int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 67, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 0.75f); - } + { + int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 67, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 0.75f); + } } if (xerocSet && item.melee && !item.noMelee && !item.noUseGraphic) { if (Main.rand.Next(3) == 0) - { - int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 58, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 1.25f); - } + { + int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 58, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 1.25f); + } } if (reaverBlast && item.melee && !item.noMelee && !item.noUseGraphic) { if (Main.rand.Next(3) == 0) - { - int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 74, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 0.75f); - } + { + int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 74, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 0.75f); + } } if (dsSetBonus && item.melee && !item.noMelee && !item.noUseGraphic) { if (Main.rand.Next(3) == 0) - { - int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 27, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 2.5f); - } + { + int num280 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 27, player.velocity.X * 0.2f + (float)(player.direction * 3), player.velocity.Y * 0.2f, 100, default(Color), 2.5f); + } } } - #endregion + #endregion - #region OnHitNPC - public override void OnHitNPC(Item item, NPC target, int damage, float knockback, bool crit) - { - if (omegaBlueChestplate) - target.AddBuff(mod.BuffType("CrushDepth"), 240); + #region OnHitNPC + public override void OnHitNPC(Item item, NPC target, int damage, float knockback, bool crit) + { + if (omegaBlueChestplate) + target.AddBuff(mod.BuffType("CrushDepth"), 240); - if (eGauntlet) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - target.AddBuff(mod.BuffType("Plague"), 120, false); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); - if (Main.rand.Next(5) == 0) - { - target.AddBuff(mod.BuffType("GlacialState"), 120, false); - } - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); - target.AddBuff(BuffID.Poisoned, 120, false); - target.AddBuff(BuffID.OnFire, 120, false); - target.AddBuff(BuffID.CursedInferno, 120, false); - target.AddBuff(BuffID.Frostburn, 120, false); - target.AddBuff(BuffID.Ichor, 120, false); - target.AddBuff(BuffID.Venom, 120, false); - } - if (aWeapon) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - } - } - if (abyssalAmulet) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("CrushDepth"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("CrushDepth"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("CrushDepth"), 120, false); - } - } - if (dsSetBonus) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("DemonFlames"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("DemonFlames"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("DemonFlames"), 120, false); - } - } - if (cryogenSoul || frostFlare) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(44, 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(44, 240, false); - } - else - { - target.AddBuff(44, 120, false); - } - } - if (yInsignia) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("HolyLight"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("HolyLight"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - } - } - if (ataxiaFire) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(BuffID.OnFire, 720, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(BuffID.OnFire, 480, false); - } - else - { - target.AddBuff(BuffID.OnFire, 240, false); - } - } - if (alchFlask) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("Plague"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("Plague"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("Plague"), 120, false); - } - } - if (ataxiaGeyser && item.melee && !item.noMelee && !item.noUseGraphic) - { - if (player.whoAmI == Main.myPlayer && player.ownedProjectileCounts[mod.ProjectileType("ChaosGeyser")] < 3) - { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("ChaosGeyser"), (int)((double)item.damage * 0.15), 2f, player.whoAmI, 0f, 0f); - } - } - - if (target.type == NPCID.TargetDummy) - return; - - if (bloodflareMelee) - { - if (bloodflareMeleeHits < 15 && bloodflareFrenzyTimer <= 0 && bloodflareFrenzyCooldown <= 0) - { - bloodflareMeleeHits++; - } - if (player.whoAmI == Main.myPlayer) - { - int healAmount = (Main.rand.Next(3) + 1); - player.statLife += healAmount; - player.HealEffect(healAmount); - } - } + if (eGauntlet) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + target.AddBuff(mod.BuffType("HolyLight"), 120, false); + target.AddBuff(mod.BuffType("Plague"), 120, false); + target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); + if (Main.rand.Next(5) == 0) + { + target.AddBuff(mod.BuffType("GlacialState"), 120, false); + } + target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); + target.AddBuff(BuffID.Poisoned, 120, false); + target.AddBuff(BuffID.OnFire, 120, false); + target.AddBuff(BuffID.CursedInferno, 120, false); + target.AddBuff(BuffID.Frostburn, 120, false); + target.AddBuff(BuffID.Ichor, 120, false); + target.AddBuff(BuffID.Venom, 120, false); + } + if (aWeapon) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + } + } + if (abyssalAmulet) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("CrushDepth"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("CrushDepth"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("CrushDepth"), 120, false); + } + } + if (dsSetBonus) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("DemonFlames"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("DemonFlames"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("DemonFlames"), 120, false); + } + } + if (cryogenSoul || frostFlare) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(44, 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(44, 240, false); + } + else + { + target.AddBuff(44, 120, false); + } + } + if (yInsignia) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("HolyLight"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("HolyLight"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("HolyLight"), 120, false); + } + } + if (ataxiaFire) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(BuffID.OnFire, 720, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(BuffID.OnFire, 480, false); + } + else + { + target.AddBuff(BuffID.OnFire, 240, false); + } + } + if (alchFlask) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("Plague"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("Plague"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("Plague"), 120, false); + } + } } - #endregion + #endregion - #region OnHitNPCWithProj - public override void OnHitNPCWithProj(Projectile proj, NPC target, int damage, float knockback, bool crit) - { - if (omegaBlueChestplate && proj.friendly && !target.friendly) - target.AddBuff(mod.BuffType("CrushDepth"), 240); + #region OnHitNPCWithProj + public override void OnHitNPCWithProj(Projectile proj, NPC target, int damage, float knockback, bool crit) + { + if (omegaBlueChestplate && proj.friendly && !target.friendly) + target.AddBuff(mod.BuffType("CrushDepth"), 240); - if (proj.melee && silvaMelee && Main.rand.Next(4) == 0) - target.AddBuff(mod.BuffType("SilvaStun"), 20); + if (proj.melee && silvaMelee && Main.rand.Next(4) == 0) + target.AddBuff(mod.BuffType("SilvaStun"), 20); - if (abyssalAmulet) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("CrushDepth"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("CrushDepth"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("CrushDepth"), 120, false); - } - } - if (dsSetBonus) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("DemonFlames"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("DemonFlames"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("DemonFlames"), 120, false); - } - } - if (alchFlask) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("Plague"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("Plague"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("Plague"), 120, false); - } - } - if (proj.melee) - { - if (eGauntlet) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - target.AddBuff(mod.BuffType("Plague"), 120, false); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); - if (Main.rand.Next(5) == 0) - { - target.AddBuff(mod.BuffType("GlacialState"), 120, false); - } - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); - target.AddBuff(BuffID.Poisoned, 120, false); - target.AddBuff(BuffID.OnFire, 120, false); - target.AddBuff(BuffID.CursedInferno, 120, false); - target.AddBuff(BuffID.Frostburn, 120, false); - target.AddBuff(BuffID.Ichor, 120, false); - target.AddBuff(BuffID.Venom, 120, false); - } - if (aWeapon) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - } - } - if (cryogenSoul || frostFlare) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(44, 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(44, 240, false); - } - else - { - target.AddBuff(44, 120, false); - } - } - if (yInsignia) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("HolyLight"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("HolyLight"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - } - } - if (ataxiaFire) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(BuffID.OnFire, 720, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(BuffID.OnFire, 480, false); - } - else - { - target.AddBuff(BuffID.OnFire, 240, false); - } - } - } - if ((target.damage > 5 || target.boss) && player.whoAmI == Main.myPlayer && !target.SpawnedFromStatue) - { - if (gainLevelCooldown <= 0) //max is 12501 to avoid setting off fireworks forever - { - gainLevelCooldown = 120; //2 seconds - if (proj.melee && meleeLevel <= 12500) - { - if (!Main.hardMode && meleeLevel >= 1500) - { - gainLevelCooldown = 1200; //20 seconds - } - if (!NPC.downedMoonlord && meleeLevel >= 5500) - { - gainLevelCooldown = 2400; //40 seconds - } - meleeLevel++; - if (fasterMeleeLevel && meleeLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 - meleeLevel++; - shootFireworksLevelUpMelee = true; - if (Main.netMode == 1) - { - LevelPacket(false, 0); - } - } - else if (proj.ranged && rangedLevel <= 12500) - { - if (!Main.hardMode && rangedLevel >= 1500) - { - gainLevelCooldown = 1200; //20 seconds - } - if (!NPC.downedMoonlord && rangedLevel >= 5500) - { - gainLevelCooldown = 2400; //40 seconds - } - rangedLevel++; - if (fasterRangedLevel && rangedLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 - rangedLevel++; - shootFireworksLevelUpRanged = true; - if (Main.netMode == 1) - { - LevelPacket(false, 1); - } - } - else if (proj.magic && magicLevel <= 12500) - { - if (!Main.hardMode && magicLevel >= 1500) - { - gainLevelCooldown = 1200; //20 seconds - } - if (!NPC.downedMoonlord && magicLevel >= 5500) - { - gainLevelCooldown = 2400; //40 seconds - } - magicLevel++; - if (fasterMagicLevel && magicLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 - magicLevel++; - shootFireworksLevelUpMagic = true; - if (Main.netMode == 1) - { - LevelPacket(false, 2); - } - } - else if ((proj.minion || proj.sentry || CalamityMod.projectileMinionList.Contains(proj.type)) && summonLevel <= 12500) - { - if (!Main.hardMode && summonLevel >= 1500) - { - gainLevelCooldown = 1200; //20 seconds - } - if (!NPC.downedMoonlord && summonLevel >= 5500) - { - gainLevelCooldown = 2400; //40 seconds - } - summonLevel++; - if (fasterSummonLevel && summonLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 - summonLevel++; - shootFireworksLevelUpSummon = true; - if (Main.netMode == 1) - { - LevelPacket(false, 3); - } - } - else if (CalamityMod.throwingProjectileList.Contains(proj.type) && !proj.melee && rogueLevel <= 12500) - { - if (!Main.hardMode && rogueLevel >= 1500) - { - gainLevelCooldown = 1200; //20 seconds - } - if (!NPC.downedMoonlord && rogueLevel >= 5500) - { - gainLevelCooldown = 2400; //40 seconds - } - rogueLevel++; - if (fasterRogueLevel && rogueLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 - rogueLevel++; - shootFireworksLevelUpRogue = true; - if (Main.netMode == 1) - { - LevelPacket(false, 4); - } - } - } - if (raiderTalisman && raiderStack < 250 && CalamityMod.throwingProjectileList.Contains(proj.type) && !proj.melee && crit) - { - raiderStack++; - } - if (CalamityWorld.revenge) - { - if ((proj.melee && proj.ownerHitCheck) || proj.aiStyle == 15 || (proj.aiStyle == 75 && proj.melee) || - proj.type == mod.ProjectileType("Nebulash") || proj.type == mod.ProjectileType("CosmicDischarge") || - proj.type == mod.ProjectileType("MourningStar")) - { - int stressGain = (int)((double)damage * 0.1); - int stressMaxGain = 10; - if (stressGain < 1) - { - stressGain = 1; - } - if (stressGain > stressMaxGain) - { - stressGain = stressMaxGain; - } - stress += stressGain; - if (stress >= stressMax) - { - stress = stressMax; - } - } - } - } - } - #endregion + if (abyssalAmulet) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("CrushDepth"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("CrushDepth"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("CrushDepth"), 120, false); + } + } + if (dsSetBonus) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("DemonFlames"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("DemonFlames"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("DemonFlames"), 120, false); + } + } + if (alchFlask) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("Plague"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("Plague"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("Plague"), 120, false); + } + } + if (proj.melee) + { + if (eGauntlet) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + target.AddBuff(mod.BuffType("HolyLight"), 120, false); + target.AddBuff(mod.BuffType("Plague"), 120, false); + target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); + if (Main.rand.Next(5) == 0) + { + target.AddBuff(mod.BuffType("GlacialState"), 120, false); + } + target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); + target.AddBuff(BuffID.Poisoned, 120, false); + target.AddBuff(BuffID.OnFire, 120, false); + target.AddBuff(BuffID.CursedInferno, 120, false); + target.AddBuff(BuffID.Frostburn, 120, false); + target.AddBuff(BuffID.Ichor, 120, false); + target.AddBuff(BuffID.Venom, 120, false); + } + if (aWeapon) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + } + } + if (cryogenSoul || frostFlare) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(44, 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(44, 240, false); + } + else + { + target.AddBuff(44, 120, false); + } + } + if (yInsignia) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("HolyLight"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("HolyLight"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("HolyLight"), 120, false); + } + } + if (ataxiaFire) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(BuffID.OnFire, 720, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(BuffID.OnFire, 480, false); + } + else + { + target.AddBuff(BuffID.OnFire, 240, false); + } + } + } + } + #endregion - #region PvP - public override void OnHitPvp(Item item, Player target, int damage, bool crit) - { - if (omegaBlueChestplate) - target.AddBuff(mod.BuffType("CrushDepth"), 240); + #region PvP + public override void OnHitPvp(Item item, Player target, int damage, bool crit) + { + if (omegaBlueChestplate) + target.AddBuff(mod.BuffType("CrushDepth"), 240); - if (eGauntlet) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - target.AddBuff(mod.BuffType("Plague"), 120, false); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); - if (Main.rand.Next(5) == 0) - { - target.AddBuff(mod.BuffType("GlacialState"), 120, false); - } - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); - target.AddBuff(BuffID.Poisoned, 120, false); - target.AddBuff(BuffID.OnFire, 120, false); - target.AddBuff(BuffID.CursedInferno, 120, false); - target.AddBuff(BuffID.Frostburn, 120, false); - target.AddBuff(BuffID.Ichor, 120, false); - target.AddBuff(BuffID.Venom, 120, false); - } - if (aWeapon) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - } - } - if (abyssalAmulet) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("CrushDepth"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("CrushDepth"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("CrushDepth"), 120, false); - } - } - if (cryogenSoul || frostFlare) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(44, 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(44, 240, false); - } - else - { - target.AddBuff(44, 120, false); - } - } - if (yInsignia) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("HolyLight"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("HolyLight"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - } - } - if (ataxiaFire) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(BuffID.OnFire, 720, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(BuffID.OnFire, 480, false); - } - else - { - target.AddBuff(BuffID.OnFire, 240, false); - } - } - if (alchFlask) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("Plague"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("Plague"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("Plague"), 120, false); - } - } - } + if (eGauntlet) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + target.AddBuff(mod.BuffType("HolyLight"), 120, false); + target.AddBuff(mod.BuffType("Plague"), 120, false); + target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); + if (Main.rand.Next(5) == 0) + { + target.AddBuff(mod.BuffType("GlacialState"), 120, false); + } + target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); + target.AddBuff(BuffID.Poisoned, 120, false); + target.AddBuff(BuffID.OnFire, 120, false); + target.AddBuff(BuffID.CursedInferno, 120, false); + target.AddBuff(BuffID.Frostburn, 120, false); + target.AddBuff(BuffID.Ichor, 120, false); + target.AddBuff(BuffID.Venom, 120, false); + } + if (aWeapon) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + } + } + if (abyssalAmulet) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("CrushDepth"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("CrushDepth"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("CrushDepth"), 120, false); + } + } + if (cryogenSoul || frostFlare) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(44, 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(44, 240, false); + } + else + { + target.AddBuff(44, 120, false); + } + } + if (yInsignia) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("HolyLight"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("HolyLight"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("HolyLight"), 120, false); + } + } + if (ataxiaFire) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(BuffID.OnFire, 720, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(BuffID.OnFire, 480, false); + } + else + { + target.AddBuff(BuffID.OnFire, 240, false); + } + } + if (alchFlask) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("Plague"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("Plague"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("Plague"), 120, false); + } + } + } - public override void OnHitPvpWithProj(Projectile proj, Player target, int damage, bool crit) - { - if (omegaBlueChestplate) - target.AddBuff(mod.BuffType("CrushDepth"), 240); + public override void OnHitPvpWithProj(Projectile proj, Player target, int damage, bool crit) + { + if (omegaBlueChestplate) + target.AddBuff(mod.BuffType("CrushDepth"), 240); - if (proj.melee && silvaMelee && Main.rand.Next(4) == 0) - target.AddBuff(mod.BuffType("SilvaStun"), 20); + if (proj.melee && silvaMelee && Main.rand.Next(4) == 0) + target.AddBuff(mod.BuffType("SilvaStun"), 20); - if (abyssalAmulet) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("CrushDepth"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("CrushDepth"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("CrushDepth"), 120, false); - } - } - if (alchFlask) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("Plague"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("Plague"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("Plague"), 120, false); - } - } - if (proj.melee) - { - if (eGauntlet) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - target.AddBuff(mod.BuffType("Plague"), 120, false); - target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); - if (Main.rand.Next(5) == 0) - { - target.AddBuff(mod.BuffType("GlacialState"), 120, false); - } - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); - target.AddBuff(BuffID.Poisoned, 120, false); - target.AddBuff(BuffID.OnFire, 120, false); - target.AddBuff(BuffID.CursedInferno, 120, false); - target.AddBuff(BuffID.Frostburn, 120, false); - target.AddBuff(BuffID.Ichor, 120, false); - target.AddBuff(BuffID.Venom, 120, false); - } - if (aWeapon) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); - } - } - if (cryogenSoul || frostFlare) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(44, 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(44, 240, false); - } - else - { - target.AddBuff(44, 120, false); - } - } - if (yInsignia) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(mod.BuffType("HolyLight"), 360, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(mod.BuffType("HolyLight"), 240, false); - } - else - { - target.AddBuff(mod.BuffType("HolyLight"), 120, false); - } - } - if (ataxiaFire) - { - if (Main.rand.Next(4) == 0) - { - target.AddBuff(BuffID.OnFire, 720, false); - } - else if (Main.rand.Next(2) == 0) - { - target.AddBuff(BuffID.OnFire, 480, false); - } - else - { - target.AddBuff(BuffID.OnFire, 240, false); - } - } - } - } - #endregion + if (abyssalAmulet) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("CrushDepth"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("CrushDepth"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("CrushDepth"), 120, false); + } + } + if (alchFlask) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("Plague"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("Plague"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("Plague"), 120, false); + } + } + if (proj.melee) + { + if (eGauntlet) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + target.AddBuff(mod.BuffType("HolyLight"), 120, false); + target.AddBuff(mod.BuffType("Plague"), 120, false); + target.AddBuff(mod.BuffType("BrimstoneFlames"), 120, false); + if (Main.rand.Next(5) == 0) + { + target.AddBuff(mod.BuffType("GlacialState"), 120, false); + } + target.AddBuff(mod.BuffType("GodSlayerInferno"), 120, false); + target.AddBuff(BuffID.Poisoned, 120, false); + target.AddBuff(BuffID.OnFire, 120, false); + target.AddBuff(BuffID.CursedInferno, 120, false); + target.AddBuff(BuffID.Frostburn, 120, false); + target.AddBuff(BuffID.Ichor, 120, false); + target.AddBuff(BuffID.Venom, 120, false); + } + if (aWeapon) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("AbyssalFlames"), 120, false); + } + } + if (cryogenSoul || frostFlare) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(44, 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(44, 240, false); + } + else + { + target.AddBuff(44, 120, false); + } + } + if (yInsignia) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(mod.BuffType("HolyLight"), 360, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(mod.BuffType("HolyLight"), 240, false); + } + else + { + target.AddBuff(mod.BuffType("HolyLight"), 120, false); + } + } + if (ataxiaFire) + { + if (Main.rand.Next(4) == 0) + { + target.AddBuff(BuffID.OnFire, 720, false); + } + else if (Main.rand.Next(2) == 0) + { + target.AddBuff(BuffID.OnFire, 480, false); + } + else + { + target.AddBuff(BuffID.OnFire, 240, false); + } + } + } + } + #endregion - #region ModifyHitNPC - public override void ModifyHitNPC(Item item, NPC target, ref int damage, ref float knockback, ref bool crit) - { - if (silvaMelee && Main.rand.Next(4) == 0) - { - damage *= 5; - } - if (CalamityWorld.revenge) - { - if (rageMode && adrenalineMode) - { - if (item.melee) - { - damage = (int)((double)damage * (CalamityWorld.death ? 9.0 : 3.0)); - } - } - else if (rageMode) - { - if (item.melee) - { - double rageDamageBoost = 0.0 + - (rageBoostOne ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0) + //3.6 or 1.65 - (rageBoostTwo ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0) + //4.2 or 1.8 - (rageBoostThree ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0); //4.8 or 1.95 - double rageDamage = (CalamityWorld.death ? 3.0 : 1.5) + rageDamageBoost; - damage = (int)((double)damage * rageDamage); - } - } - else if (adrenalineMode) - { - if (item.melee) - { - damage = (int)((double)damage * ((CalamityWorld.death ? 7.0 : 2.5) * adrenalineDmgMult)); - } - } - } - if ((target.damage > 5 || target.boss) && player.whoAmI == Main.myPlayer && !target.SpawnedFromStatue) - { - if (gainLevelCooldown <= 0) - { - gainLevelCooldown = 120; - if (item.melee && meleeLevel <= 12500) - { - if (!Main.hardMode && meleeLevel >= 1500) - { - gainLevelCooldown = 1200; //20 seconds - } - if (!NPC.downedMoonlord && meleeLevel >= 5500) - { - gainLevelCooldown = 2400; //40 seconds - } - meleeLevel++; - if (fasterMeleeLevel && meleeLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 - meleeLevel++; - shootFireworksLevelUpMelee = true; - if (Main.netMode == 1) - { - LevelPacket(false, 0); - } - } - } - if (CalamityWorld.revenge) - { - if (item.shoot == 0 || item.shoot == mod.ProjectileType("NobodyKnows")) - { - int stressGain = (int)((double)damage * 0.1); - int stressMaxGain = 10; - if (stressGain < 1) - { - stressGain = 1; - } - if (stressGain > stressMaxGain) - { - stressGain = stressMaxGain; - } - stress += stressGain; - if (stress >= stressMax) - { - stress = stressMax; - } - } - } - } - if (astralStarRain && crit && astralStarRainCooldown <= 0) + #region ModifyHitNPC + public override void ModifyHitNPC(Item item, NPC target, ref int damage, ref float knockback, ref bool crit) + { + if (silvaMelee && Main.rand.Next(4) == 0) + { + damage *= 5; + } + if (ataxiaGeyser && item.melee && !item.noMelee && !item.noUseGraphic) + { + if (player.whoAmI == Main.myPlayer && player.ownedProjectileCounts[mod.ProjectileType("ChaosGeyser")] < 3) + { + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("ChaosGeyser"), (int)((double)item.damage * 0.15), 2f, player.whoAmI, 0f, 0f); + } + } + if (CalamityWorld.revenge) + { + bool DHorHoD = (draedonsHeart || heartOfDarkness); + if (rageMode && adrenalineMode) + { + if (item.melee) + { + damage = (int)((double)damage * (CalamityWorld.death ? (DHorHoD ? 9.9 : 9.0) : (DHorHoD ? 3.3 : 3.0))); + } + } + else if (rageMode) + { + if (item.melee) + { + double rageDamageBoost = 0.0 + + (rageBoostOne ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0) + //3.6 or 1.65 + (rageBoostTwo ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0) + //4.2 or 1.8 + (rageBoostThree ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0); //4.8 or 1.95 + double rageDamage = (CalamityWorld.death ? (DHorHoD ? 3.3 : 3.0) : (DHorHoD ? 1.65 : 1.5)) + rageDamageBoost; + damage = (int)((double)damage * rageDamage); + } + } + else if (adrenalineMode) + { + if (item.melee) + { + damage = (int)((double)damage * ((CalamityWorld.death ? 7.0 : 2.5) * adrenalineDmgMult)); + } + } + } + if ((target.damage > 5 || target.boss) && player.whoAmI == Main.myPlayer && !target.SpawnedFromStatue) + { + if (item.type == mod.ItemType("Ataraxia")) + { + ataraxiaDamageBoostCancelTimer = 1200; + if (ataraxiaDamageBoostCooldown <= 0) + { + ataraxiaDamageBoostCooldown = 90; + if (ataraxiaDamageBoost < 0.3f) + ataraxiaDamageBoost += 0.01f; + } + } + if (bloodflareMelee) + { + if (bloodflareMeleeHits < 15 && bloodflareFrenzyTimer <= 0 && bloodflareFrenzyCooldown <= 0) + { + bloodflareMeleeHits++; + } + if (player.whoAmI == Main.myPlayer) + { + int healAmount = (Main.rand.Next(3) + 1); + player.statLife += healAmount; + player.HealEffect(healAmount); + } + } + if (gainLevelCooldown <= 0) + { + gainLevelCooldown = 120; + if (item.melee && meleeLevel <= 12500) + { + if (!Main.hardMode && meleeLevel >= 1500) + { + gainLevelCooldown = 1200; //20 seconds + } + if (!NPC.downedMoonlord && meleeLevel >= 5500) + { + gainLevelCooldown = 2400; //40 seconds + } + meleeLevel++; + if (fasterMeleeLevel && meleeLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 + meleeLevel++; + shootFireworksLevelUpMelee = true; + if (Main.netMode == 1) + { + LevelPacket(false, 0); + } + } + } + if (CalamityWorld.revenge) + { + if (item.shoot == 0 || item.shoot == mod.ProjectileType("NobodyKnows")) + { + int stressGain = (int)((double)damage * 0.1); + int stressMaxGain = 10; + if (stressGain < 1) + { + stressGain = 1; + } + if (stressGain > stressMaxGain) + { + stressGain = stressMaxGain; + } + stress += stressGain; + if (stress >= stressMax) + { + stress = stressMax; + } + } + } + } + if (astralStarRain && crit && astralStarRainCooldown <= 0) { if (player.whoAmI == Main.myPlayer) { - astralStarRainCooldown = 60; + astralStarRainCooldown = 60; for (int n = 0; n < 3; n++) { float x = target.position.X + (float)Main.rand.Next(-400, 400); @@ -6622,337 +7104,476 @@ namespace CalamityMod } } - public override void ModifyHitNPCWithProj(Projectile proj, NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - if (auricSet && silvaThrowing && CalamityMod.throwingProjectileList.Contains(proj.type) && !proj.melee && - crit && player.statLife > (int)((double)player.statLifeMax2 * 0.9)) - { - damage = (int)((double)damage * 3.0); - } - if (auricSet && silvaMelee && proj.melee) - { - double multiplier = (double)player.statLife / (double)player.statLifeMax2; - if (multiplier < 0.5) - { - multiplier = 0.5; - } - damage = (int)(((double)damage * multiplier) * 2.0); //ranges from 2.0 times to 1 times - } - if (godSlayerRanged && crit && proj.ranged) - { - int randomChance = 100 - player.rangedCrit; //100 min to 15 max with cap - if (randomChance < 15) - { - randomChance = 15; - } - if (Main.rand.Next(randomChance) == 0) - { - damage *= 2; - } - } - if (tarraMage && crit && proj.magic) - { - tarraCrits++; - } - if (tarraRanged && crit && proj.ranged && player.whoAmI == Main.myPlayer) - { - int num251 = Main.rand.Next(2, 4); - for (int num252 = 0; num252 < num251; num252++) - { - Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - while (value15.X == 0f && value15.Y == 0f) - { - value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - } - value15.Normalize(); - value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - int FUCKYOU = Projectile.NewProjectile(target.position.X + (float)(target.width / 2), target.position.Y + (float)(target.height / 2), - value15.X, value15.Y, 206, (int)((double)damage * (auricSet ? 0.4 : 0.25)), 0f, player.whoAmI, 0f, 0f); - Main.projectile[FUCKYOU].magic = false; - Main.projectile[FUCKYOU].netUpdate = true; - } - } - if (tarraThrowing && tarraThrowingCritTimer <= 0 && tarraThrowingCrits < 25 && crit && - CalamityMod.throwingProjectileList.Contains(proj.type) && !proj.melee) - { - tarraThrowingCrits++; - } - if (bloodflareThrowing && CalamityMod.throwingProjectileList.Contains(proj.type) && !proj.melee && crit && Main.rand.Next(2) == 0) - { - if (player.whoAmI == Main.myPlayer) - { - float num11 = 0.03f; - num11 -= (float)proj.numHits * 0.015f; - if (num11 < 0f) - { - num11 = 0f; - } - float num12 = (float)proj.damage * num11; - if (num12 < 0f) - { - num12 = 0f; - } - if (player.lifeSteal > 0f) - { - player.statLife += 1; - player.HealEffect(1); - player.lifeSteal -= num12 * 2f; - } - } - } - if (bloodflareMage && bloodflareMageCooldown <= 0 && crit && proj.magic && player.whoAmI == Main.myPlayer) - { - bloodflareMageCooldown = 120; - for (int i = 0; i < 3; i++) - { - Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - while (value15.X == 0f && value15.Y == 0f) - { - value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - } - value15.Normalize(); - value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - int fire = Projectile.NewProjectile(target.position.X + (float)(target.width / 2), target.position.Y + (float)(target.height / 2), - value15.X, value15.Y, 15, (int)((double)damage * (auricSet ? 11.0 : 6.0)), 0f, player.whoAmI, 0f, 0f); - Main.projectile[fire].magic = false; - Main.projectile[fire].netUpdate = true; - } - } - if (silvaCountdown > 0 && hasSilvaEffect && silvaRanged && proj.ranged) - { - damage = (int)((double)damage * 1.4); - } - if (silvaCountdown <= 0 && hasSilvaEffect && silvaThrowing && CalamityMod.throwingProjectileList.Contains(proj.type) && !proj.melee) - { - damage = (int)((double)damage * 1.1); - } - if (silvaCountdown <= 0 && hasSilvaEffect && silvaMage && proj.magic) - { - damage = (int)((double)damage * 1.1); - } - if (silvaCountdown <= 0 && hasSilvaEffect && silvaSummon && proj.minion) - { - damage = (int)((double)damage * 1.1); - } - } - #endregion - - #region ModifyHitByNPC - public override void ModifyHitByNPC(NPC npc, ref int damage, ref bool crit) - { - if (fleshTotem && fleshTotemCooldown <= 0) - { - fleshTotemCooldown = 900; //15 seconds - damage /= 2; - } - if (tarraDefense && tarraMelee) - { - damage /= 2; - } - if (bloodflareMelee && bloodflareFrenzyTimer > 0) - { - damage /= 2; - } - if (silvaMelee && silvaCountdown <= 0 && hasSilvaEffect) - { - damage /= 2; - } - if (CalamityWorld.revenge) - { - if (CalamityMod.revengeanceEnemyBuffList.Contains(npc.type)) - damage = (int)((double)damage * 1.25); - } - if (player.whoAmI == Main.myPlayer && !player.immune && !lol && !invincible && !hasSilvaEffect) - { - if (CalamityWorld.revenge && !npc.SpawnedFromStatue) - { - int stressGain = (int)((double)damage * 2.5); - int stressMaxGain = 2500; - if (stressGain < 1) - { - stressGain = 1; - } - if (stressGain > stressMaxGain) - { - stressGain = stressMaxGain; - } - stress += stressGain; - if (stress >= stressMax) - { - stress = stressMax; - } - } - } - } - #endregion - - #region ModifyHitByProj - public override void ModifyHitByProjectile(Projectile proj, ref int damage, ref bool crit) - { - if (proj.type == ProjectileID.Nail) - { - damage = (int)((double)damage * 0.75); - } - if (cEnergy && proj.active && !proj.friendly && proj.hostile && damage > 0) - { - damage = (int)((double)damage * 0.75); - } - if (beeResist) - { - if (CalamityMod.beeProjectileList.Contains(proj.type)) - damage = (int)((double)damage * 0.75); - } - if (Main.hardMode && !CalamityWorld.spawnedHardBoss && proj.active && !proj.friendly && proj.hostile && damage > 0) - { - if (CalamityMod.hardModeNerfList.Contains(proj.type)) - damage = (int)((double)damage * 0.75); - } - if (CalamityWorld.downedDoG && (Main.pumpkinMoon || Main.snowMoon || Main.eclipse)) - { - if (CalamityMod.eventProjectileBuffList.Contains(proj.type)) - damage = (int)((double)damage * 1.5); - } - if (CalamityWorld.revenge) - { - if (CalamityMod.revengeanceProjectileBuffList.Contains(proj.type)) - damage = (int)((double)damage * 1.25); - } - if (player.whoAmI == Main.myPlayer && !player.immune && !lol && !invincible && !hasSilvaEffect) - { - if (CalamityWorld.revenge && !CalamityMod.trapProjectileList.Contains(proj.type)) - { - int stressGain = (int)((double)damage * 2.5); - int stressMaxGain = 2500; - if (stressGain < 1) - { - stressGain = 1; - } - if (stressGain > stressMaxGain) - { - stressGain = stressMaxGain; - } - stress += stressGain; - if (stress >= stressMax) - { - stress = stressMax; - } - } - } - } - #endregion - - #region OnHit - public override void OnHitByNPC(NPC npc, int damage, bool crit) - { - if (CalamityWorld.revenge) - { - if (npc.type == NPCID.SkeletronPrime || npc.type == NPCID.PrimeVice || npc.type == NPCID.PrimeSaw) - { - player.AddBuff(BuffID.Bleeding, 300); - } - else if (npc.type == NPCID.Spazmatism && npc.ai[0] != 1f && npc.ai[0] != 2f && npc.ai[0] != 0f) - { - player.AddBuff(BuffID.Bleeding, 300); - } - else if (npc.type == NPCID.Plantera && npc.life < npc.lifeMax / 2) - { - player.AddBuff(BuffID.Poisoned, 180); - player.AddBuff(BuffID.Bleeding, 300); - } - else if (npc.type == NPCID.PlanterasTentacle) - { - player.AddBuff(BuffID.Poisoned, 90); - player.AddBuff(BuffID.Bleeding, 150); - } - else if (npc.type == NPCID.Golem || npc.type == NPCID.GolemFistLeft || npc.type == NPCID.GolemFistRight || - npc.type == NPCID.GolemHead || npc.type == NPCID.GolemHeadFree) - { - player.AddBuff(BuffID.BrokenArmor, 180); - } - } - } - - public override void OnHitByProjectile(Projectile proj, int damage, bool crit) - { - if (CalamityWorld.revenge && proj.hostile) - { - if (proj.type == ProjectileID.FrostBeam && !player.frozen && !gState) - { - player.AddBuff(mod.BuffType("GlacialState"), 120); - } - else if (proj.type == ProjectileID.DeathLaser) - { - player.AddBuff(BuffID.OnFire, 180); - } - else if (proj.type == ProjectileID.Skull) - { - player.AddBuff(BuffID.Weak, 120); - } - else if (proj.type == ProjectileID.ThornBall) - { - player.AddBuff(BuffID.Poisoned, 180); - } - else if (proj.type == ProjectileID.CultistBossIceMist) - { - player.AddBuff(BuffID.Frozen, 60); - player.AddBuff(BuffID.Chilled, 120); - player.AddBuff(BuffID.Frostburn, 240); - } - else if (proj.type == ProjectileID.CultistBossLightningOrbArc) - { - player.AddBuff(BuffID.Electrified, 120); - } - } - if (projRef && proj.active && !proj.friendly && proj.hostile && damage > 0 && Main.rand.Next(20) == 0) - { - player.statLife += damage; - player.HealEffect(damage); - proj.hostile = false; - proj.friendly = true; - proj.velocity.X = -proj.velocity.X; - proj.velocity.Y = -proj.velocity.Y; - } - if (daedalusReflect && proj.active && !proj.friendly && proj.hostile && damage > 0 && Main.rand.Next(3) == 0) - { - int healAmt = damage / 5; - player.statLife += healAmt; - player.HealEffect(healAmt); - proj.hostile = false; - proj.friendly = true; - proj.velocity.X = -proj.velocity.X; - proj.velocity.Y = -proj.velocity.Y; - } - } - #endregion - - #region Fishing - public override void CatchFish(Item fishingRod, Item bait, int power, int liquidType, int poolSize, int worldLayer, int questFish, ref int caughtType, ref bool junk) + public override void ModifyHitNPCWithProj(Projectile proj, NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - Point point = player.Center.ToTileCoordinates(); - bool abyssPosX = false; - if (CalamityWorld.abyssSide) - { - if (point.X < 380) - { - abyssPosX = true; - } - } - else - { - if (point.X > Main.maxTilesX - 380) - { - abyssPosX = true; - } - } - if (junk) + if (auricSet && silvaThrowing && proj.GetGlobalProjectile(mod).rogue && + crit && player.statLife > (int)((double)player.statLifeMax2 * 0.5)) { - if (abyssPosX && liquidType == 0 && power < 40) - { - caughtType = mod.ItemType("PlantyMush"); - } - return; + damage = (int)((double)damage * 1.25); } - /*if (abyssPosX && liquidType == 0 && (bait.type == ItemID.GoldWorm || bait.type == ItemID.GoldGrasshopper || bait.type == ItemID.GoldButterfly) && power > 150) + if (auricSet && silvaMelee && proj.melee) + { + double multiplier = (double)player.statLife / (double)player.statLifeMax2; + if (multiplier < 0.84) + { + multiplier = 0.84; + } + damage = (int)(((double)damage * multiplier) * 1.2); //ranges from 1.2 times to 1 times + } + if (godSlayerRanged && crit && proj.ranged) + { + int randomChance = 100 - player.rangedCrit; //100 min to 15 max with cap + if (randomChance < 15) + { + randomChance = 15; + } + if (Main.rand.Next(randomChance) == 0) + { + damage *= 2; + } + } + if (tarraMage && crit && proj.magic) + { + tarraCrits++; + } + if (tarraRanged && crit && proj.ranged && player.whoAmI == Main.myPlayer) + { + int num251 = Main.rand.Next(2, 4); + for (int num252 = 0; num252 < num251; num252++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + int FUCKYOU = Projectile.NewProjectile(target.position.X + (float)(target.width / 2), target.position.Y + (float)(target.height / 2), + value15.X, value15.Y, 206, (int)((double)damage * (auricSet ? 0.4 : 0.25)), 0f, player.whoAmI, 0f, 0f); + Main.projectile[FUCKYOU].magic = false; + Main.projectile[FUCKYOU].netUpdate = true; + } + } + if (tarraThrowing && tarraThrowingCritTimer <= 0 && tarraThrowingCrits < 25 && crit && + proj.GetGlobalProjectile(mod).rogue) + { + tarraThrowingCrits++; + } + if (bloodflareThrowing && proj.GetGlobalProjectile(mod).rogue && crit && Main.rand.Next(2) == 0) + { + if (player.whoAmI == Main.myPlayer && target.canGhostHeal) + { + float num11 = 0.03f; + num11 -= (float)proj.numHits * 0.015f; + if (num11 < 0f) + { + num11 = 0f; + } + float num12 = (float)proj.damage * num11; + if (num12 < 0f) + { + num12 = 0f; + } + if (player.lifeSteal > 0f) + { + player.statLife += 1; + player.HealEffect(1); + player.lifeSteal -= num12 * 2f; + } + } + } + if (bloodflareMage && bloodflareMageCooldown <= 0 && crit && proj.magic && player.whoAmI == Main.myPlayer) + { + bloodflareMageCooldown = 120; + for (int i = 0; i < 3; i++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + int fire = Projectile.NewProjectile(target.position.X + (float)(target.width / 2), target.position.Y + (float)(target.height / 2), + value15.X, value15.Y, 15, (int)((double)damage * (auricSet ? 11.0 : 6.0)), 0f, player.whoAmI, 0f, 0f); + Main.projectile[fire].magic = false; + Main.projectile[fire].netUpdate = true; + } + } + if (silvaCountdown > 0 && hasSilvaEffect && silvaRanged && proj.ranged) + { + damage = (int)((double)damage * 1.4); + } + if (silvaCountdown <= 0 && hasSilvaEffect && silvaThrowing && proj.GetGlobalProjectile(mod).rogue) + { + damage = (int)((double)damage * 1.1); + } + if (silvaCountdown <= 0 && hasSilvaEffect && silvaMage && proj.magic) + { + damage = (int)((double)damage * 1.1); + } + if (silvaCountdown <= 0 && hasSilvaEffect && silvaSummon && proj.minion) + { + damage = (int)((double)damage * 1.1); + } + if ((target.damage > 5 || target.boss) && player.whoAmI == Main.myPlayer && !target.SpawnedFromStatue) + { + if (proj.type == mod.ProjectileType("AtaraxiaMain") || proj.type == mod.ProjectileType("AtaraxiaHoming") || + proj.type == mod.ProjectileType("AtaraxiaSplit") || proj.type == mod.ProjectileType("AtaraxiaSide")) + { + ataraxiaDamageBoostCancelTimer = 1200; + if (proj.type == mod.ProjectileType("AtaraxiaMain")) + { + if (ataraxiaDamageBoost < 0.3f) + ataraxiaDamageBoost += 0.0025f; + } + } + if (gainLevelCooldown <= 0) //max is 12501 to avoid setting off fireworks forever + { + gainLevelCooldown = 120; //2 seconds + if (proj.melee && meleeLevel <= 12500) + { + if (!Main.hardMode && meleeLevel >= 1500) + { + gainLevelCooldown = 1200; //20 seconds + } + if (!NPC.downedMoonlord && meleeLevel >= 5500) + { + gainLevelCooldown = 2400; //40 seconds + } + meleeLevel++; + if (fasterMeleeLevel && meleeLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 + meleeLevel++; + shootFireworksLevelUpMelee = true; + if (Main.netMode == 1) + { + LevelPacket(false, 0); + } + } + else if (proj.ranged && rangedLevel <= 12500) + { + if (!Main.hardMode && rangedLevel >= 1500) + { + gainLevelCooldown = 1200; //20 seconds + } + if (!NPC.downedMoonlord && rangedLevel >= 5500) + { + gainLevelCooldown = 2400; //40 seconds + } + rangedLevel++; + if (fasterRangedLevel && rangedLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 + rangedLevel++; + shootFireworksLevelUpRanged = true; + if (Main.netMode == 1) + { + LevelPacket(false, 1); + } + } + else if (proj.magic && magicLevel <= 12500) + { + if (!Main.hardMode && magicLevel >= 1500) + { + gainLevelCooldown = 1200; //20 seconds + } + if (!NPC.downedMoonlord && magicLevel >= 5500) + { + gainLevelCooldown = 2400; //40 seconds + } + magicLevel++; + if (fasterMagicLevel && magicLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 + magicLevel++; + shootFireworksLevelUpMagic = true; + if (Main.netMode == 1) + { + LevelPacket(false, 2); + } + } + else if ((proj.minion || proj.sentry || CalamityMod.projectileMinionList.Contains(proj.type)) && summonLevel <= 12500) + { + if (!Main.hardMode && summonLevel >= 1500) + { + gainLevelCooldown = 1200; //20 seconds + } + if (!NPC.downedMoonlord && summonLevel >= 5500) + { + gainLevelCooldown = 2400; //40 seconds + } + summonLevel++; + if (fasterSummonLevel && summonLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 + summonLevel++; + shootFireworksLevelUpSummon = true; + if (Main.netMode == 1) + { + LevelPacket(false, 3); + } + } + else if (proj.GetGlobalProjectile(mod).rogue && rogueLevel <= 12500) + { + if (!Main.hardMode && rogueLevel >= 1500) + { + gainLevelCooldown = 1200; //20 seconds + } + if (!NPC.downedMoonlord && rogueLevel >= 5500) + { + gainLevelCooldown = 2400; //40 seconds + } + rogueLevel++; + if (fasterRogueLevel && rogueLevel % 100 != 0 && Main.rand.Next(10) == 0) //add only to non-multiples of 100 + rogueLevel++; + shootFireworksLevelUpRogue = true; + if (Main.netMode == 1) + { + LevelPacket(false, 4); + } + } + } + if (raiderTalisman && raiderStack < 250 && proj.GetGlobalProjectile(mod).rogue && crit) + { + raiderStack++; + } + if (CalamityWorld.revenge) + { + if ((proj.melee && proj.ownerHitCheck) || proj.aiStyle == 15 || (proj.aiStyle == 75 && proj.melee) || + proj.type == mod.ProjectileType("Nebulash") || proj.type == mod.ProjectileType("CosmicDischarge") || + proj.type == mod.ProjectileType("MourningStar")) + { + int stressGain = (int)((double)damage * 0.1); + int stressMaxGain = 10; + if (stressGain < 1) + { + stressGain = 1; + } + if (stressGain > stressMaxGain) + { + stressGain = stressMaxGain; + } + stress += stressGain; + if (stress >= stressMax) + { + stress = stressMax; + } + } + } + } + } + #endregion + + #region ModifyHitByNPC + public override void ModifyHitByNPC(NPC npc, ref int damage, ref bool crit) + { + if (fleshTotem && fleshTotemCooldown <= 0) + { + fleshTotemCooldown = 1200; //20 seconds + damage /= 2; + } + if (tarraDefense && tarraMelee) + { + damage /= 2; + } + if (bloodflareMelee && bloodflareFrenzyTimer > 0) + { + damage /= 2; + } + if (silvaMelee && silvaCountdown <= 0 && hasSilvaEffect) + { + damage = (int)((double)damage * 0.8); + } + if (CalamityWorld.revenge) + { + if (CalamityMod.revengeanceEnemyBuffList.Contains(npc.type)) + damage = (int)((double)damage * 1.25); + } + if (player.whoAmI == Main.myPlayer && !player.immune && !lol && !invincible && !hasSilvaEffect) + { + if (CalamityWorld.revenge && !npc.SpawnedFromStatue) + { + int stressGain = (int)((double)damage * 2.0); + int stressMaxGain = 2500; + if (stressGain < 1) + { + stressGain = 1; + } + if (stressGain > stressMaxGain) + { + stressGain = stressMaxGain; + } + stress += stressGain; + if (stress >= stressMax) + { + stress = stressMax; + } + } + } + } + #endregion + + #region ModifyHitByProj + public override void ModifyHitByProjectile(Projectile proj, ref int damage, ref bool crit) + { + if (proj.type == ProjectileID.Nail) + { + damage = (int)((double)damage * 0.75); + } + if (cEnergy && proj.active && !proj.friendly && proj.hostile && damage > 0) + { + damage = (int)((double)damage * 0.75); + } + if (beeResist) + { + if (CalamityMod.beeProjectileList.Contains(proj.type)) + damage = (int)((double)damage * 0.75); + } + if (Main.hardMode && Main.expertMode && !CalamityWorld.spawnedHardBoss && proj.active && !proj.friendly && proj.hostile && damage > 0) + { + if (CalamityMod.hardModeNerfList.Contains(proj.type)) + damage = (int)((double)damage * 0.75); + } + if (CalamityWorld.downedDoG && (Main.pumpkinMoon || Main.snowMoon || Main.eclipse)) + { + if (CalamityMod.eventProjectileBuffList.Contains(proj.type)) + damage = (int)((double)damage * 1.5); + } + if (CalamityWorld.revenge) + { + if (CalamityMod.revengeanceProjectileBuffList.Contains(proj.type)) + damage = (int)((double)damage * 1.25); + } + if (player.whoAmI == Main.myPlayer && !player.immune && !lol && !invincible && !hasSilvaEffect) + { + if (CalamityWorld.revenge && !CalamityMod.trapProjectileList.Contains(proj.type)) + { + int stressGain = (int)((double)damage * 2.0); + int stressMaxGain = 2500; + if (stressGain < 1) + { + stressGain = 1; + } + if (stressGain > stressMaxGain) + { + stressGain = stressMaxGain; + } + stress += stressGain; + if (stress >= stressMax) + { + stress = stressMax; + } + } + } + } + #endregion + + #region OnHit + public override void OnHitByNPC(NPC npc, int damage, bool crit) + { + if (CalamityWorld.revenge) + { + if (npc.type == NPCID.SkeletronPrime || npc.type == NPCID.PrimeVice || npc.type == NPCID.PrimeSaw) + { + player.AddBuff(BuffID.Bleeding, 300); + } + else if (npc.type == NPCID.Spazmatism && npc.ai[0] != 1f && npc.ai[0] != 2f && npc.ai[0] != 0f) + { + player.AddBuff(BuffID.Bleeding, 300); + } + else if (npc.type == NPCID.Plantera && npc.life < npc.lifeMax / 2) + { + player.AddBuff(BuffID.Poisoned, 180); + player.AddBuff(BuffID.Bleeding, 300); + } + else if (npc.type == NPCID.PlanterasTentacle) + { + player.AddBuff(BuffID.Poisoned, 90); + player.AddBuff(BuffID.Bleeding, 150); + } + else if (npc.type == NPCID.Golem || npc.type == NPCID.GolemFistLeft || npc.type == NPCID.GolemFistRight || + npc.type == NPCID.GolemHead || npc.type == NPCID.GolemHeadFree) + { + player.AddBuff(BuffID.BrokenArmor, 180); + } + } + } + + public override void OnHitByProjectile(Projectile proj, int damage, bool crit) + { + if (CalamityWorld.revenge && proj.hostile) + { + if (proj.type == ProjectileID.FrostBeam && !player.frozen && !gState) + { + player.AddBuff(mod.BuffType("GlacialState"), 120); + } + else if (proj.type == ProjectileID.DeathLaser) + { + player.AddBuff(BuffID.OnFire, 180); + } + else if (proj.type == ProjectileID.Skull) + { + player.AddBuff(BuffID.Weak, 120); + } + else if (proj.type == ProjectileID.ThornBall) + { + player.AddBuff(BuffID.Poisoned, 180); + } + else if (proj.type == ProjectileID.CultistBossIceMist) + { + player.AddBuff(BuffID.Frozen, 60); + player.AddBuff(BuffID.Chilled, 120); + player.AddBuff(BuffID.Frostburn, 240); + } + else if (proj.type == ProjectileID.CultistBossLightningOrbArc) + { + player.AddBuff(BuffID.Electrified, 120); + } + } + if (projRef && proj.active && !proj.friendly && proj.hostile && damage > 0 && Main.rand.Next(20) == 0) + { + player.statLife += damage; + player.HealEffect(damage); + proj.hostile = false; + proj.friendly = true; + proj.velocity.X = -proj.velocity.X; + proj.velocity.Y = -proj.velocity.Y; + } + if (daedalusReflect && proj.active && !proj.friendly && proj.hostile && damage > 0 && Main.rand.Next(3) == 0) + { + int healAmt = damage / 5; + player.statLife += healAmt; + player.HealEffect(healAmt); + proj.hostile = false; + proj.friendly = true; + proj.velocity.X = -proj.velocity.X; + proj.velocity.Y = -proj.velocity.Y; + } + } + #endregion + + #region Fishing + public override void CatchFish(Item fishingRod, Item bait, int power, int liquidType, int poolSize, int worldLayer, int questFish, ref int caughtType, ref bool junk) + { + Point point = player.Center.ToTileCoordinates(); + bool abyssPosX = false; + if (CalamityWorld.abyssSide) + { + if (point.X < 380) + { + abyssPosX = true; + } + } + else + { + if (point.X > Main.maxTilesX - 380) + { + abyssPosX = true; + } + } + if (junk) + { + if (abyssPosX && liquidType == 0 && power < 40) + { + caughtType = mod.ItemType("PlantyMush"); + } + return; + } + /*if (abyssPosX && liquidType == 0 && (bait.type == ItemID.GoldWorm || bait.type == ItemID.GoldGrasshopper || bait.type == ItemID.GoldButterfly) && power > 150) { if (Main.netMode != 1) { @@ -6971,306 +7592,306 @@ namespace CalamityMod } return; }*/ - if (power >= 20) - { - if (power >= 40) - { - if (abyssPosX && liquidType == 0 && Main.rand.Next(15) == 0 && power < 80) - { - caughtType = mod.ItemType("PlantyMush"); - } - if (power >= 60) - { - if (player.FindBuffIndex(BuffID.Gills) > -1 && NPC.downedPlantBoss && liquidType == 0 && Main.rand.Next(25) == 0 && power < 160) - { - caughtType = mod.ItemType("Floodtide"); - } - if (abyssPosX && liquidType == 0 && Main.rand.Next(25) == 0 && power < 160) - { - caughtType = mod.ItemType("AlluringBait"); - } - if (power >= 80) - { - if (abyssPosX && Main.hardMode && liquidType == 0 && Main.rand.Next(15) == 0 && power < 210) - { - switch (Main.rand.Next(4)) - { - case 0: caughtType = mod.ItemType("IronBoots"); break; //movement acc - case 1: caughtType = mod.ItemType("DepthCharm"); break; //regen acc - case 2: caughtType = mod.ItemType("AnechoicPlating"); break; //defense acc - case 3: caughtType = mod.ItemType("StrangeOrb"); break; //light pet - } - } - if (power >= 110) - { - if (abyssPosX && liquidType == 0 && Main.rand.Next(25) == 0 && power < 240) - { - caughtType = mod.ItemType("AbyssalAmulet"); - } - } - } - } - } - } - } - #endregion - - #region FrameEffects - public override void FrameEffects() - { - if ((snowmanPower || snowmanForce) && !snowmanHide) - { - player.legs = mod.GetEquipSlot("PopoLeg", EquipType.Legs); - player.body = mod.GetEquipSlot("PopoBody", EquipType.Body); - player.head = (snowmanNoseless ? mod.GetEquipSlot("PopoNoselessHead", EquipType.Head) : mod.GetEquipSlot("PopoHead", EquipType.Head)); - } - else if ((abyssalDivingSuitPower || abyssalDivingSuitForce) && !abyssalDivingSuitHide) - { - player.legs = mod.GetEquipSlot("AbyssalDivingSuitLeg", EquipType.Legs); - player.body = mod.GetEquipSlot("AbyssalDivingSuitBody", EquipType.Body); - player.head = mod.GetEquipSlot("AbyssalDivingSuitHead", EquipType.Head); - } - else if ((sirenBoobsPower || sirenBoobsForce) && !sirenBoobsHide) - { - player.legs = mod.GetEquipSlot("SirenLeg", EquipType.Legs); - player.body = mod.GetEquipSlot("SirenBody", EquipType.Body); - player.head = mod.GetEquipSlot("SirenHead", EquipType.Head); - } - else if ((sirenBoobsAltPower || sirenBoobsAltForce) && !sirenBoobsAltHide) - { - player.legs = mod.GetEquipSlot("SirenLegAlt", EquipType.Legs); - player.body = mod.GetEquipSlot("SirenBodyAlt", EquipType.Body); - player.head = mod.GetEquipSlot("SirenHeadAlt", EquipType.Head); - } - if (NOU) - NOULOL(); - if (CalamityWorld.defiled) - Defiled(); - if (weakPetrification) - WeakPetrification(); - } - #endregion - - #region NOULOL - private void NOULOL() - { - player.ResetEffects(); - player.head = -1; - player.body = -1; - player.legs = -1; - player.handon = -1; - player.handoff = -1; - player.back = -1; - player.front = -1; - player.shoe = -1; - player.waist = -1; - player.shield = -1; - player.neck = -1; - player.face = -1; - player.balloon = -1; - NOU = true; - } - - private void WeakPetrification() - { - player.doubleJumpCloud = false; - player.doubleJumpSandstorm = false; - player.doubleJumpBlizzard = false; - player.rocketBoots = 0; - player.jumpBoost = false; - player.slowFall = false; - player.gravControl = false; - player.gravControl2 = false; - player.jumpSpeedBoost = 0f; - player.wingTimeMax = (int)((double)player.wingTimeMax * 0.5); - player.balloon = -1; - weakPetrification = true; - } - - private void Defiled() - { - player.wingTimeMax = 0; - } - #endregion - - #region HurtMethods - public override bool PreHurt(bool pvp, bool quiet, ref int damage, ref int hitDirection, ref bool crit, ref bool customDamage, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource) - { - if (CalamityWorld.armageddon) - { - if (areThereAnyDamnBosses) - { - KillPlayer(); - } - } - if (lol || (invincible && player.inventory[player.selectedItem].type != mod.ItemType("ColdheartIcicle"))) - { - return false; - } - if (godSlayerReflect && Main.rand.Next(50) == 0) - { - return false; - } - if (player.beetleDefense && player.beetleOrbs > 0) - { - float newMult = 0.05f * (float)player.beetleOrbs; //.05 .1 .15 - damage = (int)((double)(1f + newMult) * (double)damage); //damage added for one orb : 100 damage = 1.05 * 100 = 105 - } - if (CalamityGlobalNPC.DraedonMayhem) - { - damage = (int)((double)damage * 1.2); - } - if (dArtifact) - { - damage = (int)((double)damage * 1.25); - } - if (CalamityWorld.bossRushActive) - { - switch (CalamityWorld.bossRushStage) - { - case 0: - damage = (int)((double)damage * 5.0); //Tier 1 Queen Bee values adjusted for a median of 250 damage - break; - case 1: - damage = (int)((double)damage * 4.0); //BoC - break; - case 2: - damage = (int)((double)damage * 4.0); //King Slime - break; - case 3: - damage = (int)((double)damage * 6.0); //EoC - break; - case 4: - damage = (int)((double)damage * 2.5); //Prime - break; - case 5: - damage = (int)((double)damage * 2.5); //Golem - break; - case 6: - damage = (int)((double)damage * 1.75); //Guardians - break; - case 7: - damage = (int)((double)damage * 5.0); //EoW - break; - case 8: - damage = (int)((double)damage * 2.0); //Tier 2 Astrageldon values adjusted for a median of 300 damage - break; - case 9: - damage = (int)((double)damage * 3.0); //Destroyer - break; - case 10: - damage = (int)((double)damage * 3.0); //Twins - break; - case 11: - damage = (int)((double)damage * 1.0); //Birb - break; - case 12: - damage = (int)((double)damage * 4.0); //WoF - break; - case 13: - damage = (int)((double)damage * 4.5); //Hive Mind - break; - case 14: - damage = (int)((double)damage * 4.0); //Skeletron - break; - case 15: - damage = (int)((double)damage * 1.25); //Storm Weaver - break; - case 16: - damage = (int)((double)damage * 3.0); //Tier 3 Aquatic Scourge values adjusted for a median of 350 damage - break; - case 17: - damage = (int)((double)damage * 6.0); //Desert Scourge - break; - case 18: - damage = (int)((double)damage * 3.5); //Cultist - break; - case 19: - damage = (int)((double)damage * 4.5); //Crabulon - break; - case 20: - damage = (int)((double)damage * 3.5); //Plantera - break; - case 21: - damage = (int)((double)damage * 2.0); //Void - break; - case 22: - damage = (int)((double)damage * 5.0); //Perfs - break; - case 23: - damage = (int)((double)damage * 4.0); //Cryogen - break; - case 24: - damage = (int)((double)damage * 4.0); //Tier 4 Brimstone Elemental values adjusted for a median of 400 damage - break; - case 25: - damage = (int)((double)damage * 2.0); //Signus - break; - case 26: - damage = (int)((double)damage * 2.5); //Ravager - break; - case 27: - damage = (int)((double)damage * 2.0); //Fishron - break; - case 28: - damage = (int)((double)damage * 2.5); //Moon Lord - break; - case 29: - damage = (int)((double)damage * 2.75); //Astrum Deus - break; - case 30: - damage = (int)((double)damage * 2.0); //Polter - break; - case 31: - damage = (int)((double)damage * 2.5); //Plaguebringer - break; - case 32: - damage = (int)((double)damage * 4.0); //Tier 5 Calamitas values adjusted for a median of 450 to 500 damage - break; - case 33: - damage = (int)((double)damage * 3.75); //Levi and Siren - break; - case 34: - damage = (int)((double)damage * 5.25); //Slime God - break; - case 35: - damage = (int)((double)damage * 2.5); //Providence - break; - case 36: - damage = (int)((double)damage * 1.0); //SCal - break; - case 37: - damage = (int)((double)damage * 1.1); //Yharon - break; - case 38: - damage = (int)((double)damage * 2.0); //DoG - break; - } - } - if (enraged) - { - damage = (int)((double)damage * 1.5); - } - if (CalamityWorld.revenge) + if (power >= 20) { - if (player.chaosState) - { - damage = (int)((double)damage * 1.25); - } - if (player.ichor) - { - damage = (int)((double)damage * 1.25); - } - else if (player.onFire2) - { - damage = (int)((double)damage * 1.2); - } - customDamage = true; + if (power >= 40) + { + if (abyssPosX && liquidType == 0 && Main.rand.Next(15) == 0 && power < 80) + { + caughtType = mod.ItemType("PlantyMush"); + } + if (power >= 60) + { + if (player.FindBuffIndex(BuffID.Gills) > -1 && NPC.downedPlantBoss && liquidType == 0 && Main.rand.Next(25) == 0 && power < 160) + { + caughtType = mod.ItemType("Floodtide"); + } + if (abyssPosX && liquidType == 0 && Main.rand.Next(25) == 0 && power < 160) + { + caughtType = mod.ItemType("AlluringBait"); + } + if (power >= 80) + { + if (abyssPosX && Main.hardMode && liquidType == 0 && Main.rand.Next(15) == 0 && power < 210) + { + switch (Main.rand.Next(4)) + { + case 0: caughtType = mod.ItemType("IronBoots"); break; //movement acc + case 1: caughtType = mod.ItemType("DepthCharm"); break; //regen acc + case 2: caughtType = mod.ItemType("AnechoicPlating"); break; //defense acc + case 3: caughtType = mod.ItemType("StrangeOrb"); break; //light pet + } + } + if (power >= 110) + { + if (abyssPosX && liquidType == 0 && Main.rand.Next(25) == 0 && power < 240) + { + caughtType = mod.ItemType("AbyssalAmulet"); + } + } + } + } + } + } + } + #endregion + + #region FrameEffects + public override void FrameEffects() + { + if ((snowmanPower || snowmanForce) && !snowmanHide) + { + player.legs = mod.GetEquipSlot("PopoLeg", EquipType.Legs); + player.body = mod.GetEquipSlot("PopoBody", EquipType.Body); + player.head = (snowmanNoseless ? mod.GetEquipSlot("PopoNoselessHead", EquipType.Head) : mod.GetEquipSlot("PopoHead", EquipType.Head)); + } + else if ((abyssalDivingSuitPower || abyssalDivingSuitForce) && !abyssalDivingSuitHide) + { + player.legs = mod.GetEquipSlot("AbyssalDivingSuitLeg", EquipType.Legs); + player.body = mod.GetEquipSlot("AbyssalDivingSuitBody", EquipType.Body); + player.head = mod.GetEquipSlot("AbyssalDivingSuitHead", EquipType.Head); + } + else if ((sirenBoobsPower || sirenBoobsForce) && !sirenBoobsHide) + { + player.legs = mod.GetEquipSlot("SirenLeg", EquipType.Legs); + player.body = mod.GetEquipSlot("SirenBody", EquipType.Body); + player.head = mod.GetEquipSlot("SirenHead", EquipType.Head); + } + else if ((sirenBoobsAltPower || sirenBoobsAltForce) && !sirenBoobsAltHide) + { + player.legs = mod.GetEquipSlot("SirenLegAlt", EquipType.Legs); + player.body = mod.GetEquipSlot("SirenBodyAlt", EquipType.Body); + player.head = mod.GetEquipSlot("SirenHeadAlt", EquipType.Head); + } + if (NOU) + NOULOL(); + if (CalamityWorld.defiled) + Defiled(); + if (weakPetrification) + WeakPetrification(); + } + #endregion + + #region NOULOL + private void NOULOL() + { + player.ResetEffects(); + player.head = -1; + player.body = -1; + player.legs = -1; + player.handon = -1; + player.handoff = -1; + player.back = -1; + player.front = -1; + player.shoe = -1; + player.waist = -1; + player.shield = -1; + player.neck = -1; + player.face = -1; + player.balloon = -1; + NOU = true; + } + + private void WeakPetrification() + { + player.doubleJumpCloud = false; + player.doubleJumpSandstorm = false; + player.doubleJumpBlizzard = false; + player.rocketBoots = 0; + player.jumpBoost = false; + player.slowFall = false; + player.gravControl = false; + player.gravControl2 = false; + player.jumpSpeedBoost = 0f; + player.wingTimeMax = (int)((double)player.wingTimeMax * 0.5); + player.balloon = -1; + weakPetrification = true; + } + + private void Defiled() + { + player.wingTimeMax = 0; + } + #endregion + + #region HurtMethods + public override bool PreHurt(bool pvp, bool quiet, ref int damage, ref int hitDirection, ref bool crit, ref bool customDamage, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource) + { + if (CalamityWorld.armageddon) + { + if (areThereAnyDamnBosses) + { + KillPlayer(); + } + } + if (lol || (invincible && player.inventory[player.selectedItem].type != mod.ItemType("ColdheartIcicle"))) + { + return false; + } + if (godSlayerReflect && Main.rand.Next(50) == 0) + { + return false; + } + if (player.beetleDefense && player.beetleOrbs > 0) + { + float newMult = 0.05f * (float)player.beetleOrbs; //.05 .1 .15 + damage = (int)((double)(1f + newMult) * (double)damage); //damage added for one orb : 100 damage = 1.05 * 100 = 105 + } + if (CalamityGlobalNPC.DraedonMayhem) + { + damage = (int)((double)damage * 1.2); + } + if (dArtifact) + { + damage = (int)((double)damage * 1.25); + } + if (CalamityWorld.bossRushActive) + { + switch (CalamityWorld.bossRushStage) + { + case 0: + damage = (int)((double)damage * 5.0); //Tier 1 Queen Bee values adjusted for a median of 250 damage + break; + case 1: + damage = (int)((double)damage * 4.0); //BoC + break; + case 2: + damage = (int)((double)damage * 4.0); //King Slime + break; + case 3: + damage = (int)((double)damage * 6.0); //EoC + break; + case 4: + damage = (int)((double)damage * 2.5); //Prime + break; + case 5: + damage = (int)((double)damage * 2.5); //Golem + break; + case 6: + damage = (int)((double)damage * 1.75); //Guardians + break; + case 7: + damage = (int)((double)damage * 5.0); //EoW + break; + case 8: + damage = (int)((double)damage * 2.0); //Tier 2 Astrageldon values adjusted for a median of 300 damage + break; + case 9: + damage = (int)((double)damage * 3.0); //Destroyer + break; + case 10: + damage = (int)((double)damage * 3.0); //Twins + break; + case 11: + damage = (int)((double)damage * 1.0); //Birb + break; + case 12: + damage = (int)((double)damage * 4.0); //WoF + break; + case 13: + damage = (int)((double)damage * 4.5); //Hive Mind + break; + case 14: + damage = (int)((double)damage * 4.0); //Skeletron + break; + case 15: + damage = (int)((double)damage * 1.25); //Storm Weaver + break; + case 16: + damage = (int)((double)damage * 3.0); //Tier 3 Aquatic Scourge values adjusted for a median of 350 damage + break; + case 17: + damage = (int)((double)damage * 6.0); //Desert Scourge + break; + case 18: + damage = (int)((double)damage * 3.5); //Cultist + break; + case 19: + damage = (int)((double)damage * 4.5); //Crabulon + break; + case 20: + damage = (int)((double)damage * 3.5); //Plantera + break; + case 21: + damage = (int)((double)damage * 2.0); //Void + break; + case 22: + damage = (int)((double)damage * 5.0); //Perfs + break; + case 23: + damage = (int)((double)damage * 4.0); //Cryogen + break; + case 24: + damage = (int)((double)damage * 4.0); //Tier 4 Brimstone Elemental values adjusted for a median of 400 damage + break; + case 25: + damage = (int)((double)damage * 2.0); //Signus + break; + case 26: + damage = (int)((double)damage * 2.5); //Ravager + break; + case 27: + damage = (int)((double)damage * 2.0); //Fishron + break; + case 28: + damage = (int)((double)damage * 2.5); //Moon Lord + break; + case 29: + damage = (int)((double)damage * 2.75); //Astrum Deus + break; + case 30: + damage = (int)((double)damage * 2.0); //Polter + break; + case 31: + damage = (int)((double)damage * 2.5); //Plaguebringer + break; + case 32: + damage = (int)((double)damage * 4.0); //Tier 5 Calamitas values adjusted for a median of 450 to 500 damage + break; + case 33: + damage = (int)((double)damage * 3.75); //Levi and Siren + break; + case 34: + damage = (int)((double)damage * 5.25); //Slime God + break; + case 35: + damage = (int)((double)damage * 2.5); //Providence + break; + case 36: + damage = (int)((double)damage * 1.0); //SCal + break; + case 37: + damage = (int)((double)damage * 1.1); //Yharon + break; + case 38: + damage = (int)((double)damage * 2.0); //DoG + break; + } + } + if (enraged) + { + damage = (int)((double)damage * 1.25); + } + if (CalamityWorld.revenge) + { + if (player.chaosState && !normalityRelocator) + { + damage = (int)((double)damage * 1.5); //ono + } + if (player.ichor) + { + damage = (int)((double)damage * 1.25); + } + else if (player.onFire2) + { + damage = (int)((double)damage * 1.2); + } + customDamage = true; float damageMult = CalamityWorld.downedBossAny ? 1f : 0.8f; - if (CalamityWorld.death) - { - damageMult = 1.25f; - } + if (CalamityWorld.death) + { + damageMult = 1.25f; + } damage = (int)((double)damage * damageMult); double newDamage = (double)damage - (double)player.statDefense * (Main.hardMode ? 0.75 : 0.5); double newDamageLimit = 5.0 + (Main.hardMode ? 5.0 : 0.0) + (NPC.downedPlantBoss ? 5.0 : 0.0) + (NPC.downedMoonlord ? 5.0 : 0.0); //5, 10, 15, 20 @@ -7280,381 +7901,401 @@ namespace CalamityMod } damage = (int)newDamage; } - if (bloodPact) - { - if (Main.rand.Next(4) == 0) - { - damage = (int)((double)damage * 3.0); - } - } - if (godSlayerDamage && damage <= 80) - { - damage = 1; - } - if ((abyssalDivingSuitPower || abyssalDivingSuitForce) && !abyssalDivingSuitHide) - { - playSound = false; - Main.PlaySound(3, (int)player.position.X, (int)player.position.Y, 4, 1f, 0f); //metal hit noise - } - else if (((sirenBoobsPower || sirenBoobsForce) && !sirenBoobsHide) || ((sirenBoobsAltPower || sirenBoobsAltForce) && !sirenBoobsAltHide)) - { - playSound = false; - Main.PlaySound(20, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); //female hit noise - } - if (abyssalDivingSuitPlates) - { - damage = (int)((double)damage * 0.85); - } - if (sirenIce) - { - damage = (int)((double)damage * 0.8); - } - if (auricSet || silvaSet) - { - damage = (int)((double)damage * 0.95); - } - if (revivifyTimer > 0) - { - int healAmt = damage / 20; - player.statLife += healAmt; - player.HealEffect(healAmt); - } - if (daedalusAbsorb && Main.rand.Next(10) == 0) + if (CalamityWorld.defiled) + { + if (Main.rand.Next(4) == 0) + { + damage = (int)((double)damage * 3.0); + } + } + if (bloodPact) + { + if (Main.rand.Next(4) == 0) + { + damage = (int)((double)damage * 3.0); + } + } + if (godSlayerDamage && damage <= 80) + { + damage = 1; + } + if ((abyssalDivingSuitPower || abyssalDivingSuitForce) && !abyssalDivingSuitHide) + { + playSound = false; + Main.PlaySound(3, (int)player.position.X, (int)player.position.Y, 4, 1f, 0f); //metal hit noise + } + else if (((sirenBoobsPower || sirenBoobsForce) && !sirenBoobsHide) || ((sirenBoobsAltPower || sirenBoobsAltForce) && !sirenBoobsAltHide)) + { + playSound = false; + Main.PlaySound(20, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); //female hit noise + } + if (abyssalDivingSuitPlates) + { + damage = (int)((double)damage * 0.85); + } + if (sirenIce) + { + damage = (int)((double)damage * 0.8); + } + if (auricSet || silvaSet) + { + damage = (int)((double)damage * 0.95); + } + if (purpleCandle) + { + damage = (int)((double)damage - ((double)player.statDefense * 0.05)); + } + if (revivifyTimer > 0) + { + int healAmt = damage / 20; + player.statLife += healAmt; + player.HealEffect(healAmt); + } + if (daedalusAbsorb && Main.rand.Next(10) == 0) { int healAmt = damage / 2; player.statLife += healAmt; - player.HealEffect(healAmt); + player.HealEffect(healAmt); } if (absorber) { int healAmt = damage / 20; player.statLife += healAmt; - player.HealEffect(healAmt); + player.HealEffect(healAmt); + } + if (CalamityGlobalNPC.SCal > -1) + { + int newDamageLimit = 300; + if (damage < newDamageLimit) + { + damage = newDamageLimit; + } } - if (CalamityGlobalNPC.SCal > -1) - { - int newDamageLimit = 300; - if (damage < newDamageLimit) - { - damage = newDamageLimit; - } - } return true; } - + public override void Hurt(bool pvp, bool quiet, double damage, int hitDirection, bool crit) { modStealth = 1f; - if (player.whoAmI == Main.myPlayer && rageMode) - { - stress = 0; - if (player.FindBuffIndex(mod.BuffType("RageMode")) > -1) { player.ClearBuff(mod.BuffType("RageMode")); } - } - if (player.whoAmI == Main.myPlayer && !adrenalineMode && adrenaline != adrenalineMax) - { - adrenaline = 0; - } - if (player.whoAmI == Main.myPlayer && gShell && !player.panic) + ataraxiaDamageBoost = 0f; + if (player.whoAmI == Main.myPlayer) { - player.AddBuff(mod.BuffType("ShellBoost"), 300); - } - if (player.whoAmI == Main.myPlayer && abyssalDivingSuitPlates && damage > 50) - { - abyssalDivingSuitPlateHits++; - if (abyssalDivingSuitPlateHits >= 3) - { - Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 14); - player.AddBuff(mod.BuffType("AbyssalDivingSuitPlatesBroken"), 10830); - for (int num621 = 0; num621 < 20; num621++) - { - int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 31, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 35; num623++) - { - int num624 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 6, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 6, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - for (int num625 = 0; num625 < 3; num625++) - { - float scaleFactor10 = 0.33f; - if (num625 == 1) - { - scaleFactor10 = 0.66f; - } - if (num625 == 2) - { - scaleFactor10 = 1f; - } - int num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); - Main.gore[num626].velocity *= scaleFactor10; - Gore expr_13AB6_cp_0 = Main.gore[num626]; - expr_13AB6_cp_0.velocity.X = expr_13AB6_cp_0.velocity.X + 1f; - Gore expr_13AD6_cp_0 = Main.gore[num626]; - expr_13AD6_cp_0.velocity.Y = expr_13AD6_cp_0.velocity.Y + 1f; - num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); - Main.gore[num626].velocity *= scaleFactor10; - Gore expr_13B79_cp_0 = Main.gore[num626]; - expr_13B79_cp_0.velocity.X = expr_13B79_cp_0.velocity.X - 1f; - Gore expr_13B99_cp_0 = Main.gore[num626]; - expr_13B99_cp_0.velocity.Y = expr_13B99_cp_0.velocity.Y + 1f; - num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); - Main.gore[num626].velocity *= scaleFactor10; - Gore expr_13C3C_cp_0 = Main.gore[num626]; - expr_13C3C_cp_0.velocity.X = expr_13C3C_cp_0.velocity.X + 1f; - Gore expr_13C5C_cp_0 = Main.gore[num626]; - expr_13C5C_cp_0.velocity.Y = expr_13C5C_cp_0.velocity.Y - 1f; - num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); - Main.gore[num626].velocity *= scaleFactor10; - Gore expr_13CFF_cp_0 = Main.gore[num626]; - expr_13CFF_cp_0.velocity.X = expr_13CFF_cp_0.velocity.X - 1f; - Gore expr_13D1F_cp_0 = Main.gore[num626]; - expr_13D1F_cp_0.velocity.Y = expr_13D1F_cp_0.velocity.Y - 1f; - } - } - } - if (player.whoAmI == Main.myPlayer && sirenIce) - { - Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 7); - player.AddBuff(mod.BuffType("IceShieldBrokenBuff"), 1800); - for (int num621 = 0; num621 < 10; num621++) - { - int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 67, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 15; num623++) - { - int num624 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 67, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 67, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - } - if (tarraMelee && player.whoAmI == Main.myPlayer) - { - if (Main.rand.Next(4) == 0) - { - player.AddBuff(mod.BuffType("TarraLifeRegen"), Main.rand.Next(120, 360)); - } - } - if (player.whoAmI == Main.myPlayer && xerocSet) - { - player.AddBuff(mod.BuffType("XerocRage"), 240); - player.AddBuff(mod.BuffType("XerocWrath"), 240); - } - else if (player.whoAmI == Main.myPlayer && reaverBlast) - { - player.AddBuff(mod.BuffType("ReaverRage"), 180); - } - if ((fBarrier || ((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3)) && Main.myPlayer == player.whoAmI) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 27); - for (int m = 0; m < 200; m++) + if (rageMode) { - if (Main.npc[m].active && !Main.npc[m].friendly) + stress = 0; + if (player.FindBuffIndex(mod.BuffType("RageMode")) > -1) { player.ClearBuff(mod.BuffType("RageMode")); } + } + if (amidiasBlessing) + { + player.ClearBuff(mod.BuffType("AmidiasBlessing")); + Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 96); + } + if (!adrenalineMode && adrenaline != adrenalineMax) + { + adrenaline = 0; + } + if (gShell && !player.panic) + { + player.AddBuff(mod.BuffType("ShellBoost"), 300); + } + if (abyssalDivingSuitPlates && damage > 50) + { + abyssalDivingSuitPlateHits++; + if (abyssalDivingSuitPlateHits >= 3) { - float distance = (Main.npc[m].Center - player.Center).Length(); - float num10 = (float)Main.rand.Next(200 + (int)damage / 2, 301 + (int)damage * 2); - if (num10 > 500f) + Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 14); + player.AddBuff(mod.BuffType("AbyssalDivingSuitPlatesBroken"), 10830); + for (int num621 = 0; num621 < 20; num621++) { - num10 = 500f + (num10 - 500f) * 0.75f; + int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 31, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } } - if (num10 > 700f) + for (int num623 = 0; num623 < 35; num623++) { - num10 = 700f + (num10 - 700f) * 0.5f; + int num624 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 6, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 6, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; } - if (num10 > 900f) + for (int num625 = 0; num625 < 3; num625++) { - num10 = 900f + (num10 - 900f) * 0.25f; - } - if (distance < num10) - { - float num11 = (float)Main.rand.Next(90 + (int)damage / 3, 240 + (int)damage / 2); - Main.npc[m].AddBuff(mod.BuffType("GlacialState"), (int)num11, false); + float scaleFactor10 = 0.33f; + if (num625 == 1) + { + scaleFactor10 = 0.66f; + } + if (num625 == 2) + { + scaleFactor10 = 1f; + } + int num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[num626].velocity *= scaleFactor10; + Gore expr_13AB6_cp_0 = Main.gore[num626]; + expr_13AB6_cp_0.velocity.X = expr_13AB6_cp_0.velocity.X + 1f; + Gore expr_13AD6_cp_0 = Main.gore[num626]; + expr_13AD6_cp_0.velocity.Y = expr_13AD6_cp_0.velocity.Y + 1f; + num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[num626].velocity *= scaleFactor10; + Gore expr_13B79_cp_0 = Main.gore[num626]; + expr_13B79_cp_0.velocity.X = expr_13B79_cp_0.velocity.X - 1f; + Gore expr_13B99_cp_0 = Main.gore[num626]; + expr_13B99_cp_0.velocity.Y = expr_13B99_cp_0.velocity.Y + 1f; + num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[num626].velocity *= scaleFactor10; + Gore expr_13C3C_cp_0 = Main.gore[num626]; + expr_13C3C_cp_0.velocity.X = expr_13C3C_cp_0.velocity.X + 1f; + Gore expr_13C5C_cp_0 = Main.gore[num626]; + expr_13C5C_cp_0.velocity.Y = expr_13C5C_cp_0.velocity.Y - 1f; + num626 = Gore.NewGore(new Vector2(player.position.X + (float)(player.width / 2) - 24f, player.position.Y + (float)(player.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[num626].velocity *= scaleFactor10; + Gore expr_13CFF_cp_0 = Main.gore[num626]; + expr_13CFF_cp_0.velocity.X = expr_13CFF_cp_0.velocity.X - 1f; + Gore expr_13D1F_cp_0 = Main.gore[num626]; + expr_13D1F_cp_0.velocity.Y = expr_13D1F_cp_0.velocity.Y - 1f; } } } - } - if (aBrain && Main.myPlayer == player.whoAmI) - { - for (int m = 0; m < 200; m++) + if (sirenIce) { - if (Main.npc[m].active && !Main.npc[m].friendly) + Main.PlaySound(4, (int)player.position.X, (int)player.position.Y, 7); + player.AddBuff(mod.BuffType("IceShieldBrokenBuff"), 1800); + for (int num621 = 0; num621 < 10; num621++) { - float arg_67A_0 = (Main.npc[m].Center - player.Center).Length(); - float num10 = (float)Main.rand.Next(200 + (int)damage / 2, 301 + (int)damage * 2); - if (num10 > 500f) + int num622 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 67, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + if (Main.rand.Next(2) == 0) { - num10 = 500f + (num10 - 500f) * 0.75f; + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; } - if (num10 > 700f) + } + for (int num623 = 0; num623 < 15; num623++) + { + int num624 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 67, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 67, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + } + } + if (tarraMelee) + { + if (Main.rand.Next(4) == 0) + { + player.AddBuff(mod.BuffType("TarraLifeRegen"), Main.rand.Next(90, 180)); + } + } + else if (xerocSet) + { + player.AddBuff(mod.BuffType("XerocRage"), 240); + player.AddBuff(mod.BuffType("XerocWrath"), 240); + } + else if (reaverBlast) + { + player.AddBuff(mod.BuffType("ReaverRage"), 180); + } + if (fBarrier || ((sirenBoobs || sirenBoobsAlt) && NPC.downedBoss3)) + { + Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 27); + for (int m = 0; m < 200; m++) + { + if (Main.npc[m].active && !Main.npc[m].friendly) { - num10 = 700f + (num10 - 700f) * 0.5f; - } - if (num10 > 900f) - { - num10 = 900f + (num10 - 900f) * 0.25f; - } - if (arg_67A_0 < num10) - { - float num11 = (float)Main.rand.Next(90 + (int)damage / 3, 300 + (int)damage / 2); - Main.npc[m].AddBuff(31, (int)num11, false); + float distance = (Main.npc[m].Center - player.Center).Length(); + float num10 = (float)Main.rand.Next(200 + (int)damage / 2, 301 + (int)damage * 2); + if (num10 > 500f) + { + num10 = 500f + (num10 - 500f) * 0.75f; + } + if (num10 > 700f) + { + num10 = 700f + (num10 - 700f) * 0.5f; + } + if (num10 > 900f) + { + num10 = 900f + (num10 - 900f) * 0.25f; + } + if (distance < num10) + { + float num11 = (float)Main.rand.Next(90 + (int)damage / 3, 240 + (int)damage / 2); + Main.npc[m].AddBuff(mod.BuffType("GlacialState"), (int)num11, false); + } } } } - Projectile.NewProjectile(player.Center.X + (float)Main.rand.Next(-40, 40), player.Center.Y - (float)Main.rand.Next(20, 60), player.velocity.X * 0.3f, player.velocity.Y * 0.3f, 565, 0, 0f, player.whoAmI, 0f, 0f); + if (aBrain) + { + for (int m = 0; m < 200; m++) + { + if (Main.npc[m].active && !Main.npc[m].friendly) + { + float arg_67A_0 = (Main.npc[m].Center - player.Center).Length(); + float num10 = (float)Main.rand.Next(200 + (int)damage / 2, 301 + (int)damage * 2); + if (num10 > 500f) + { + num10 = 500f + (num10 - 500f) * 0.75f; + } + if (num10 > 700f) + { + num10 = 700f + (num10 - 700f) * 0.5f; + } + if (num10 > 900f) + { + num10 = 900f + (num10 - 900f) * 0.25f; + } + if (arg_67A_0 < num10) + { + float num11 = (float)Main.rand.Next(90 + (int)damage / 3, 300 + (int)damage / 2); + Main.npc[m].AddBuff(31, (int)num11, false); + } + } + } + Projectile.NewProjectile(player.Center.X + (float)Main.rand.Next(-40, 40), player.Center.Y - (float)Main.rand.Next(20, 60), player.velocity.X * 0.3f, player.velocity.Y * 0.3f, 565, 0, 0f, player.whoAmI, 0f, 0f); + } } - if (player.ownedProjectileCounts[mod.ProjectileType("Drataliornus")] != 0) - { - for (int i = 0; i < 1000; i++) - { - if (Main.projectile[i].active && Main.projectile[i].type == mod.ProjectileType("Drataliornus") && Main.projectile[i].owner == player.whoAmI) - { - Main.projectile[i].Kill(); - break; - } - } - player.AddBuff(mod.BuffType("Backfire"), 360); - if (player.wingTime > player.wingTimeMax / 2) - player.wingTime = player.wingTimeMax / 2; - } - } - + if (player.ownedProjectileCounts[mod.ProjectileType("Drataliornus")] != 0) + { + for (int i = 0; i < 1000; i++) + { + if (Main.projectile[i].active && Main.projectile[i].type == mod.ProjectileType("Drataliornus") && Main.projectile[i].owner == player.whoAmI) + { + Main.projectile[i].Kill(); + break; + } + } + player.AddBuff(mod.BuffType("Backfire"), 360); + if (player.wingTime > player.wingTimeMax / 2) + player.wingTime = player.wingTimeMax / 2; + } + } + public override void PostHurt(bool pvp, bool quiet, double damage, int hitDirection, bool crit) { - if (pArtifact) - { - player.AddBuff(mod.BuffType("BurntOut"), 300, true); - } - if (CalamityGlobalNPC.SCal > -1 && CalamityWorld.revenge) - { - if (damage < 100) - { - KillPlayer(); - string key = "Mods.CalamityMod.SupremeBossText28"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - } - bool hardMode = Main.hardMode; - if (player.whoAmI == Main.myPlayer) - { - if (cTracers && damage > 200) - { - player.immuneTime += 60; - } - if (godSlayerThrowing && damage > 80) - { - player.immuneTime += 30; - } - if (statigelSet && damage > 100) - { - player.immuneTime += 30; - } - if (dAmulet) - { - if (damage == 1.0) - { - player.immuneTime += 10; - } - else - { - player.immuneTime += 20; - } - } - if (fabsolVodka) - { - if (damage == 1.0) - { - player.immuneTime += 5; - } - else - { - player.immuneTime += 10; - } - } - if (damage > 25) - { - if (aeroSet) - { - for (int n = 0; n < 4; n++) - { - float x = player.position.X + (float)Main.rand.Next(-400, 400); - float y = player.position.Y - (float)Main.rand.Next(500, 800); - Vector2 vector = new Vector2(x, y); - float num13 = player.position.X + (float)(player.width / 2) - vector.X; - float num14 = player.position.Y + (float)(player.height / 2) - vector.Y; - num13 += (float)Main.rand.Next(-100, 101); - int num15 = 20; - float num16 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); - num16 = (float)num15 / num16; - num13 *= num16; - num14 *= num16; - int num17 = Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("StickyFeatherAero"), 20, 1f, player.whoAmI, 0f, 0f); - } - } - } - if (aBulwark) - { - for (int n = 0; n < 4; n++) - { - float x = player.position.X + (float)Main.rand.Next(-400, 400); - float y = player.position.Y - (float)Main.rand.Next(500, 800); - Vector2 vector = new Vector2(x, y); - float num13 = player.position.X + (float)(player.width / 2) - vector.X; - float num14 = player.position.Y + (float)(player.height / 2) - vector.Y; - num13 += (float)Main.rand.Next(-100, 101); - int num15 = 29; - float num16 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); - num16 = (float)num15 / num16; - num13 *= num16; - num14 *= num16; - int num17 = Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("AstralStar"), 320, 5f, player.whoAmI, 0f, 0f); - } - } - if (dAmulet) - { - for (int n = 0; n < 3; n++) - { - float x = player.position.X + (float)Main.rand.Next(-400, 400); - float y = player.position.Y - (float)Main.rand.Next(500, 800); - Vector2 vector = new Vector2(x, y); - float num13 = player.position.X + (float)(player.width / 2) - vector.X; - float num14 = player.position.Y + (float)(player.height / 2) - vector.Y; - num13 += (float)Main.rand.Next(-100, 101); - int num15 = 29; - float num16 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); - num16 = (float)num15 / num16; - num13 *= num16; - num14 *= num16; - int num17 = Projectile.NewProjectile(x, y, num13, num14, 92, 130, 4f, player.whoAmI, 0f, 0f); - Main.projectile[num17].usesLocalNPCImmunity = true; - Main.projectile[num17].localNPCHitCooldown = 5; - Main.projectile[num17].ranged = false; - } - } - } + if (pArtifact) + { + player.AddBuff(mod.BuffType("BurntOut"), 300, true); + } + if (CalamityGlobalNPC.SCal > -1 && CalamityWorld.revenge) + { + if (damage < 100) + { + KillPlayer(); + string key = "Mods.CalamityMod.SupremeBossText28"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + } + bool hardMode = Main.hardMode; + if (player.whoAmI == Main.myPlayer) + { + if (cTracers && damage > 200) + { + player.immuneTime += 60; + } + if (godSlayerThrowing && damage > 80) + { + player.immuneTime += 30; + } + if (statigelSet && damage > 100) + { + player.immuneTime += 30; + } + if (dAmulet) + { + if (damage == 1.0) + { + player.immuneTime += 10; + } + else + { + player.immuneTime += 20; + } + } + if (fabsolVodka) + { + if (damage == 1.0) + { + player.immuneTime += 5; + } + else + { + player.immuneTime += 10; + } + } + if (damage > 25) + { + if (aeroSet) + { + for (int n = 0; n < 4; n++) + { + float x = player.position.X + (float)Main.rand.Next(-400, 400); + float y = player.position.Y - (float)Main.rand.Next(500, 800); + Vector2 vector = new Vector2(x, y); + float num13 = player.position.X + (float)(player.width / 2) - vector.X; + float num14 = player.position.Y + (float)(player.height / 2) - vector.Y; + num13 += (float)Main.rand.Next(-100, 101); + int num15 = 20; + float num16 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); + num16 = (float)num15 / num16; + num13 *= num16; + num14 *= num16; + int num17 = Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("StickyFeatherAero"), 20, 1f, player.whoAmI, 0f, 0f); + } + } + } + if (aBulwark) + { + for (int n = 0; n < 4; n++) + { + float x = player.position.X + (float)Main.rand.Next(-400, 400); + float y = player.position.Y - (float)Main.rand.Next(500, 800); + Vector2 vector = new Vector2(x, y); + float num13 = player.position.X + (float)(player.width / 2) - vector.X; + float num14 = player.position.Y + (float)(player.height / 2) - vector.Y; + num13 += (float)Main.rand.Next(-100, 101); + int num15 = 29; + float num16 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); + num16 = (float)num15 / num16; + num13 *= num16; + num14 *= num16; + int num17 = Projectile.NewProjectile(x, y, num13, num14, mod.ProjectileType("AstralStar"), 320, 5f, player.whoAmI, 0f, 0f); + } + } + if (dAmulet) + { + for (int n = 0; n < 3; n++) + { + float x = player.position.X + (float)Main.rand.Next(-400, 400); + float y = player.position.Y - (float)Main.rand.Next(500, 800); + Vector2 vector = new Vector2(x, y); + float num13 = player.position.X + (float)(player.width / 2) - vector.X; + float num14 = player.position.Y + (float)(player.height / 2) - vector.Y; + num13 += (float)Main.rand.Next(-100, 101); + int num15 = 29; + float num16 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); + num16 = (float)num15 / num16; + num13 *= num16; + num14 *= num16; + int num17 = Projectile.NewProjectile(x, y, num13, num14, 92, 130, 4f, player.whoAmI, 0f, 0f); + Main.projectile[num17].usesLocalNPCImmunity = true; + Main.projectile[num17].localNPCHitCooldown = 5; + Main.projectile[num17].ranged = false; + } + } + } if (fCarapace) { if (damage > 0) @@ -7668,13 +8309,13 @@ namespace CalamityMod int fDamage = 56; if (player.whoAmI == Main.myPlayer) { - for (i = 0; i < 4; i++) + for (i = 0; i < 4; i++) { float xPos = Main.rand.Next(2) == 0 ? player.Center.X + 100 : player.Center.X - 100; - Vector2 vector2 = new Vector2(xPos, player.Center.Y + Main.rand.Next(-100, 101)); + Vector2 vector2 = new Vector2(xPos, player.Center.Y + Main.rand.Next(-100, 101)); offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; int spore1 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), 590, fDamage, 1.25f, player.whoAmI, 0f, 0f); - int spore2 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)( -Math.Sin(offsetAngle) * 5f ), (float)( -Math.Cos(offsetAngle) * 5f ), 590, fDamage, 1.25f, player.whoAmI, 0f, 0f); + int spore2 = Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), 590, fDamage, 1.25f, player.whoAmI, 0f, 0f); Main.projectile[spore1].timeLeft = 120; Main.projectile[spore2].timeLeft = 120; } @@ -7694,80 +8335,80 @@ namespace CalamityMod int sDamage = hardMode ? 36 : 6; if (player.whoAmI == Main.myPlayer) { - for (i = 0; i < 4; i++) + for (i = 0; i < 4; i++) { offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; int spark1 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("Spark"), sDamage, 1.25f, player.whoAmI, 0f, 0f); - int spark2 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)( -Math.Sin(offsetAngle) * 5f ), (float)( -Math.Cos(offsetAngle) * 5f ), mod.ProjectileType("Spark"), sDamage, 1.25f, player.whoAmI, 0f, 0f); + int spark2 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("Spark"), sDamage, 1.25f, player.whoAmI, 0f, 0f); Main.projectile[spark1].timeLeft = 120; Main.projectile[spark2].timeLeft = 120; } } } } - if (ataxiaBlaze && Main.rand.Next(5) == 0) - { - if (damage > 0) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 74); - int eDamage = 100; - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("ChaosBlaze"), eDamage, 1f, player.whoAmI, 0f, 0f); - } - } - } - else if (daedalusShard) - { - if (damage > 0) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 27); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int sDamage = 27; - if (player.whoAmI == Main.myPlayer) - { - for (i = 0; i < 8; i++) - { - float randomSpeed = (float)Main.rand.Next(1, 7); - float randomSpeed2 = (float)Main.rand.Next(1, 7); - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - int shard = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, 90, sDamage, 1f, player.whoAmI, 0f, 0f); - int shard2 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, 90, sDamage, 1f, player.whoAmI, 0f, 0f); - Main.projectile[shard].ranged = false; - Main.projectile[shard2].ranged = false; - } - } - } - } - else if (reaverSpore) - { - if (damage > 0) - { - Main.PlaySound(3, (int)player.position.X, (int)player.position.Y, 1); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int rDamage = 58; - if (player.whoAmI == Main.myPlayer) - { - for (i = 0; i < 4; i++) - { - float xPos = Main.rand.Next(2) == 0 ? player.Center.X + 100 : player.Center.X - 100; - Vector2 vector2 = new Vector2(xPos, player.Center.Y + Main.rand.Next(-100, 101)); - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), 567, rDamage, 2f, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), 568, rDamage, 2f, player.whoAmI, 0f, 0f); - } - } - } - } - else if (godSlayerDamage) + if (ataxiaBlaze && Main.rand.Next(5) == 0) + { + if (damage > 0) + { + Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 74); + int eDamage = 100; + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("ChaosBlaze"), eDamage, 1f, player.whoAmI, 0f, 0f); + } + } + } + else if (daedalusShard) + { + if (damage > 0) + { + Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 27); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int sDamage = 27; + if (player.whoAmI == Main.myPlayer) + { + for (i = 0; i < 8; i++) + { + float randomSpeed = (float)Main.rand.Next(1, 7); + float randomSpeed2 = (float)Main.rand.Next(1, 7); + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + int shard = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f) + randomSpeed, 90, sDamage, 1f, player.whoAmI, 0f, 0f); + int shard2 = Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f) + randomSpeed2, 90, sDamage, 1f, player.whoAmI, 0f, 0f); + Main.projectile[shard].ranged = false; + Main.projectile[shard2].ranged = false; + } + } + } + } + else if (reaverSpore) + { + if (damage > 0) + { + Main.PlaySound(3, (int)player.position.X, (int)player.position.Y, 1); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(player.velocity.X, player.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int rDamage = 58; + if (player.whoAmI == Main.myPlayer) + { + for (i = 0; i < 4; i++) + { + float xPos = Main.rand.Next(2) == 0 ? player.Center.X + 100 : player.Center.X - 100; + Vector2 vector2 = new Vector2(xPos, player.Center.Y + Main.rand.Next(-100, 101)); + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), 567, rDamage, 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), 568, rDamage, 2f, player.whoAmI, 0f, 0f); + } + } + } + } + else if (godSlayerDamage) { if (damage > 80) { @@ -7779,30 +8420,30 @@ namespace CalamityMod int i; if (player.whoAmI == Main.myPlayer) { - for (i = 0; i < 4; i++) + for (i = 0; i < 4; i++) { offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("GodKiller"), 900, 5f, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)( -Math.Sin(offsetAngle) * 5f ), (float)( -Math.Cos(offsetAngle) * 5f ), mod.ProjectileType("GodKiller"), 900, 5f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("GodKiller"), 900, 5f, player.whoAmI, 0f, 0f); } } } } - else if (godSlayerMage) - { - if (damage > 0) - { - Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 74); - if (player.whoAmI == Main.myPlayer) - { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("GodSlayerBlaze"), (auricSet ? 2400 : 1200), 1f, player.whoAmI, 0f, 0f); - } - } - } - else if (dsSetBonus) + else if (godSlayerMage) + { + if (damage > 0) + { + Main.PlaySound(2, (int)player.position.X, (int)player.position.Y, 74); + if (player.whoAmI == Main.myPlayer) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("GodSlayerBlaze"), (auricSet ? 2400 : 1200), 1f, player.whoAmI, 0f, 0f); + } + } + } + else if (dsSetBonus) { if (player.whoAmI == Main.myPlayer) - { + { for (int l = 0; l < 2; l++) { float x = player.position.X + (float)Main.rand.Next(-400, 400); @@ -7819,7 +8460,7 @@ namespace CalamityMod int num19 = Projectile.NewProjectile(x, y, num15, num16, 294, 3000, 7f, player.whoAmI, 0f, 0f); Main.projectile[num19].ai[1] = player.position.Y; } - for (int l = 0; l < 5; l++) + for (int l = 0; l < 5; l++) { float x = player.position.X + (float)Main.rand.Next(-400, 400); float y = player.position.Y - (float)Main.rand.Next(500, 800); @@ -7838,137 +8479,137 @@ namespace CalamityMod } } } - #endregion + #endregion - #region KillPlayer - public void KillPlayer() - { - player.lastDeathPostion = player.Center; - player.lastDeathTime = DateTime.Now; - player.showLastDeath = true; - bool specialDeath = CalamityWorld.ironHeart && areThereAnyDamnBosses; - bool flag; - int coinsOwned = (int)Utils.CoinsCount(out flag, player.inventory, new int[0]); - if (Main.myPlayer == player.whoAmI) - { - player.lostCoins = coinsOwned; - player.lostCoinString = Main.ValueToCoins(player.lostCoins); - } - if (Main.myPlayer == player.whoAmI) - { - Main.mapFullscreen = false; - } - if (Main.myPlayer == player.whoAmI) - { - player.trashItem.SetDefaults(0, false); - if (specialDeath) - { - player.difficulty = 2; - player.DropItems(); - player.KillMeForGood(); - } - else if (player.difficulty == 0) - { - for (int i = 0; i < 59; i++) - { - if (player.inventory[i].stack > 0 && ((player.inventory[i].type >= 1522 && player.inventory[i].type <= 1527) || player.inventory[i].type == 3643)) - { - int num = Item.NewItem((int)player.position.X, (int)player.position.Y, player.width, player.height, player.inventory[i].type, 1, false, 0, false, false); - Main.item[num].netDefaults(player.inventory[i].netID); - Main.item[num].Prefix((int)player.inventory[i].prefix); - Main.item[num].stack = player.inventory[i].stack; - Main.item[num].velocity.Y = (float)Main.rand.Next(-20, 1) * 0.2f; - Main.item[num].velocity.X = (float)Main.rand.Next(-20, 21) * 0.2f; - Main.item[num].noGrabDelay = 100; - Main.item[num].favorited = false; - Main.item[num].newAndShiny = false; - if (Main.netMode == 1) - { - NetMessage.SendData(21, -1, -1, null, num, 0f, 0f, 0f, 0, 0, 0); - } - player.inventory[i].SetDefaults(0, false); - } - } - } - else if (player.difficulty == 1) - { - player.DropItems(); - } - else if (player.difficulty == 2) - { - player.DropItems(); - player.KillMeForGood(); - } - } - if (specialDeath) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/IronHeartDeath"), (int)player.position.X, (int)player.position.Y); - } - else - { - Main.PlaySound(5, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); - } - player.headVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f; - player.bodyVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f; - player.legVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f; - player.headVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 * 0); - player.bodyVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 * 0); - player.legVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 * 0); - if (player.stoned) - { - player.headPosition = Vector2.Zero; - player.bodyPosition = Vector2.Zero; - player.legPosition = Vector2.Zero; - } - for (int j = 0; j < 100; j++) - { - Dust.NewDust(player.position, player.width, player.height, (specialDeath ? 91 : 235), (float)(2 * 0), -2f, 0, default(Color), 1f); - } - player.mount.Dismount(player); - player.dead = true; - player.respawnTimer = 600; - if (Main.expertMode) - { - player.respawnTimer = (int)((double)player.respawnTimer * 1.5); - } - player.immuneAlpha = 0; - player.palladiumRegen = false; - player.iceBarrier = false; - player.crystalLeaf = false; - PlayerDeathReason damageSource = PlayerDeathReason.ByOther(player.Male ? 14 : 15); - NetworkText deathText = damageSource.GetDeathText(player.name); - if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(deathText, new Color(225, 25, 25), -1); - } - else if (Main.netMode == 0) - { - Main.NewText(deathText.ToString(), 225, 25, 25, false); - } - if (Main.netMode == 1 && player.whoAmI == Main.myPlayer) - { - NetMessage.SendPlayerDeath(player.whoAmI, damageSource, (int)1000.0, 0, false, -1, -1); - } - if (player.whoAmI == Main.myPlayer && player.difficulty == 0) - { - player.DropCoins(); - } - player.DropTombstone(coinsOwned, deathText, 0); - if (player.whoAmI == Main.myPlayer) - { - try - { - WorldGen.saveToonWhilePlaying(); - } - catch - { - } - } - } - #endregion + #region KillPlayer + public void KillPlayer() + { + player.lastDeathPostion = player.Center; + player.lastDeathTime = DateTime.Now; + player.showLastDeath = true; + bool specialDeath = CalamityWorld.ironHeart && areThereAnyDamnBosses; + bool flag; + int coinsOwned = (int)Utils.CoinsCount(out flag, player.inventory, new int[0]); + if (Main.myPlayer == player.whoAmI) + { + player.lostCoins = coinsOwned; + player.lostCoinString = Main.ValueToCoins(player.lostCoins); + } + if (Main.myPlayer == player.whoAmI) + { + Main.mapFullscreen = false; + } + if (Main.myPlayer == player.whoAmI) + { + player.trashItem.SetDefaults(0, false); + if (specialDeath) + { + player.difficulty = 2; + player.DropItems(); + player.KillMeForGood(); + } + else if (player.difficulty == 0) + { + for (int i = 0; i < 59; i++) + { + if (player.inventory[i].stack > 0 && ((player.inventory[i].type >= 1522 && player.inventory[i].type <= 1527) || player.inventory[i].type == 3643)) + { + int num = Item.NewItem((int)player.position.X, (int)player.position.Y, player.width, player.height, player.inventory[i].type, 1, false, 0, false, false); + Main.item[num].netDefaults(player.inventory[i].netID); + Main.item[num].Prefix((int)player.inventory[i].prefix); + Main.item[num].stack = player.inventory[i].stack; + Main.item[num].velocity.Y = (float)Main.rand.Next(-20, 1) * 0.2f; + Main.item[num].velocity.X = (float)Main.rand.Next(-20, 21) * 0.2f; + Main.item[num].noGrabDelay = 100; + Main.item[num].favorited = false; + Main.item[num].newAndShiny = false; + if (Main.netMode == 1) + { + NetMessage.SendData(21, -1, -1, null, num, 0f, 0f, 0f, 0, 0, 0); + } + player.inventory[i].SetDefaults(0, false); + } + } + } + else if (player.difficulty == 1) + { + player.DropItems(); + } + else if (player.difficulty == 2) + { + player.DropItems(); + player.KillMeForGood(); + } + } + if (specialDeath) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/IronHeartDeath"), (int)player.position.X, (int)player.position.Y); + } + else + { + Main.PlaySound(5, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); + } + player.headVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f; + player.bodyVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f; + player.legVelocity.Y = (float)Main.rand.Next(-40, -10) * 0.1f; + player.headVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 * 0); + player.bodyVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 * 0); + player.legVelocity.X = (float)Main.rand.Next(-20, 21) * 0.1f + (float)(2 * 0); + if (player.stoned) + { + player.headPosition = Vector2.Zero; + player.bodyPosition = Vector2.Zero; + player.legPosition = Vector2.Zero; + } + for (int j = 0; j < 100; j++) + { + Dust.NewDust(player.position, player.width, player.height, (specialDeath ? 91 : 235), (float)(2 * 0), -2f, 0, default(Color), 1f); + } + player.mount.Dismount(player); + player.dead = true; + player.respawnTimer = 600; + if (Main.expertMode) + { + player.respawnTimer = (int)((double)player.respawnTimer * 1.5); + } + player.immuneAlpha = 0; + player.palladiumRegen = false; + player.iceBarrier = false; + player.crystalLeaf = false; + PlayerDeathReason damageSource = PlayerDeathReason.ByOther(player.Male ? 14 : 15); + NetworkText deathText = damageSource.GetDeathText(player.name); + if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(deathText, new Color(225, 25, 25), -1); + } + else if (Main.netMode == 0) + { + Main.NewText(deathText.ToString(), 225, 25, 25, false); + } + if (Main.netMode == 1 && player.whoAmI == Main.myPlayer) + { + NetMessage.SendPlayerDeath(player.whoAmI, damageSource, (int)1000.0, 0, false, -1, -1); + } + if (player.whoAmI == Main.myPlayer && player.difficulty == 0) + { + player.DropCoins(); + } + player.DropTombstone(coinsOwned, deathText, 0); + if (player.whoAmI == Main.myPlayer) + { + try + { + WorldGen.saveToonWhilePlaying(); + } + catch + { + } + } + } + #endregion - #region DashStuff - public void ModDashMovement() + #region DashStuff + public void ModDashMovement() { if (dashMod == 4 && player.dashDelay < 0 && player.whoAmI == Main.myPlayer) { @@ -8013,8 +8654,8 @@ namespace CalamityMod Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, mod.ProjectileType("HolyEruption"), 780, 5f, Main.myPlayer, 0f, 0f); } nPC.immune[player.whoAmI] = 6; - nPC.AddBuff(mod.BuffType("GodSlayerInferno"), 300); - player.immune = true; + nPC.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + player.immune = true; player.immuneNoBlink = true; player.immuneTime = 4; } @@ -8123,33 +8764,33 @@ namespace CalamityMod if (dashMod == 1 && player.dashDelay < 0 && player.whoAmI == Main.myPlayer) { Rectangle rectangle = new Rectangle((int)((double)player.position.X + (double)player.velocity.X * 0.5 - 4.0), (int)((double)player.position.Y + (double)player.velocity.Y * 0.5 - 4.0), player.width + 8, player.height + 8); - for (int i = 0; i < 200; i++) - { - if ((Main.npc[i].active && !Main.npc[i].dontTakeDamage && !Main.npc[i].friendly && !Main.npc[i].townNPC && Main.npc[i].immune[player.whoAmI] <= 0 && Main.npc[i].damage > 0)) - { - NPC nPC = Main.npc[i]; - Rectangle rect = nPC.getRect(); - if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC))) - { - OnDodge(); - break; - } - } - } - for (int i = 0; i < 1000; i++) - { - if ((Main.projectile[i].active && !Main.projectile[i].friendly && Main.projectile[i].hostile && Main.projectile[i].damage > 0)) - { - Projectile proj = Main.projectile[i]; - Rectangle rect = proj.getRect(); - if (rectangle.Intersects(rect)) - { - OnDodge(); - break; - } - } - } - } + for (int i = 0; i < 200; i++) + { + if ((Main.npc[i].active && !Main.npc[i].dontTakeDamage && !Main.npc[i].friendly && !Main.npc[i].townNPC && Main.npc[i].immune[player.whoAmI] <= 0 && Main.npc[i].damage > 0)) + { + NPC nPC = Main.npc[i]; + Rectangle rect = nPC.getRect(); + if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC))) + { + OnDodge(); + break; + } + } + } + for (int i = 0; i < 1000; i++) + { + if ((Main.projectile[i].active && !Main.projectile[i].friendly && Main.projectile[i].hostile && Main.projectile[i].damage > 0)) + { + Projectile proj = Main.projectile[i]; + Rectangle rect = proj.getRect(); + if (rectangle.Intersects(rect)) + { + OnDodge(); + break; + } + } + } + } if (player.dashDelay > 0) { return; @@ -8208,8 +8849,8 @@ namespace CalamityMod Main.dust[num14].fadeIn = 0.5f; } } - num7 = 14f; //14 - } + num7 = 14f; //14 + } else if (dashMod == 4) { for (int m = 0; m < 24; m++) @@ -8224,8 +8865,8 @@ namespace CalamityMod Main.dust[num14].fadeIn = 0.5f; } } - num7 = 16f; //14 - } + num7 = 16f; //14 + } if (dashMod > 0) { player.vortexStealthActive = false; @@ -8508,51 +9149,51 @@ namespace CalamityMod } } - private void OnDodge() - { - if (player.whoAmI == Main.myPlayer && dodgeScarf && !scarfCooldown) - { - player.AddBuff(mod.BuffType("ScarfMeleeBoost"), Main.rand.Next(480, 561)); - player.AddBuff(mod.BuffType("ScarfCooldown"), (player.chaosState ? 1800 : 900)); - player.immune = true; - player.immuneTime = 60; - if (player.longInvince) - { - player.immuneTime += 40; - } - for (int k = 0; k < player.hurtCooldowns.Length; k++) - { - player.hurtCooldowns[k] = player.immuneTime; - } - for (int j = 0; j < 100; j++) - { - int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 235, 0f, 0f, 100, default(Color), 2f); - Dust expr_A4_cp_0 = Main.dust[num]; - expr_A4_cp_0.position.X = expr_A4_cp_0.position.X + (float)Main.rand.Next(-20, 21); - Dust expr_CB_cp_0 = Main.dust[num]; - expr_CB_cp_0.position.Y = expr_CB_cp_0.position.Y + (float)Main.rand.Next(-20, 21); - Main.dust[num].velocity *= 0.4f; - Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; - Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player); - if (Main.rand.Next(2) == 0) - { - Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; - Main.dust[num].noGravity = true; - } - } - if (player.whoAmI == Main.myPlayer) - { - NetMessage.SendData(62, -1, -1, null, player.whoAmI, 1f, 0f, 0f, 0, 0, 0); - } - } - } + private void OnDodge() + { + if (player.whoAmI == Main.myPlayer && dodgeScarf && !scarfCooldown) + { + player.AddBuff(mod.BuffType("ScarfMeleeBoost"), Main.rand.Next(480, 561)); + player.AddBuff(mod.BuffType("ScarfCooldown"), (player.chaosState ? 1800 : 900)); + player.immune = true; + player.immuneTime = 60; + if (player.longInvince) + { + player.immuneTime += 40; + } + for (int k = 0; k < player.hurtCooldowns.Length; k++) + { + player.hurtCooldowns[k] = player.immuneTime; + } + for (int j = 0; j < 100; j++) + { + int num = Dust.NewDust(new Vector2(player.position.X, player.position.Y), player.width, player.height, 235, 0f, 0f, 100, default(Color), 2f); + Dust expr_A4_cp_0 = Main.dust[num]; + expr_A4_cp_0.position.X = expr_A4_cp_0.position.X + (float)Main.rand.Next(-20, 21); + Dust expr_CB_cp_0 = Main.dust[num]; + expr_CB_cp_0.position.Y = expr_CB_cp_0.position.Y + (float)Main.rand.Next(-20, 21); + Main.dust[num].velocity *= 0.4f; + Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; + Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(player.cWaist, player); + if (Main.rand.Next(2) == 0) + { + Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f; + Main.dust[num].noGravity = true; + } + } + if (player.whoAmI == Main.myPlayer) + { + NetMessage.SendData(62, -1, -1, null, player.whoAmI, 1f, 0f, 0f, 0, 0, 0); + } + } + } - public void ModHorizontalMovement() + public void ModHorizontalMovement() { float num = (player.accRunSpeed + player.maxRunSpeed) / 2f; if (player.controlLeft && player.velocity.X > -player.accRunSpeed && player.dashDelay >= 0) { - if (player.velocity.X < -num && player.velocity.Y == 0f && !player.mount.Active) + if (player.velocity.X < -num && player.velocity.Y == 0f && !player.mount.Active) { int num3 = 0; if (player.gravDir == -1f) @@ -8591,7 +9232,7 @@ namespace CalamityMod } else if (player.controlRight && player.velocity.X < player.accRunSpeed && player.dashDelay >= 0) { - if (player.velocity.X > num && player.velocity.Y == 0f && !player.mount.Active) + if (player.velocity.X > num && player.velocity.Y == 0f && !player.mount.Active) { int num8 = 0; if (player.gravDir == -1f) @@ -8629,122 +9270,282 @@ namespace CalamityMod } } } - #endregion + #endregion - #region Drawing - public static readonly PlayerLayer MiscEffectsBack = new PlayerLayer("CalamityMod", "MiscEffectsBack", PlayerLayer.MiscEffectsBack, delegate (PlayerDrawInfo drawInfo) - { - if (drawInfo.shadow != 0f) - { - return; - } - Player drawPlayer = drawInfo.drawPlayer; - Mod mod = ModLoader.GetMod("CalamityMod"); - CalamityPlayer modPlayer = drawPlayer.GetModPlayer(mod); - if (modPlayer.sirenIce) - { - Texture2D texture = mod.GetTexture("ExtraTextures/IceShield"); - int drawX = (int)(drawInfo.position.X + drawPlayer.width / 2f - Main.screenPosition.X); - int drawY = (int)(drawInfo.position.Y + drawPlayer.height / 2f - Main.screenPosition.Y); //4 - DrawData data = new DrawData(texture, new Vector2(drawX, drawY), null, Color.Cyan, 0f, new Vector2(texture.Width / 2f, texture.Height / 2f), 1f, SpriteEffects.None, 0); - Main.playerDrawData.Add(data); - } - }); - - public override void ModifyDrawLayers(List list) - { - MiscEffectsBack.visible = true; - list.Insert(0, MiscEffectsBack); - if (fab) { AddPlayerLayer(list, clAfterAll, list[list.Count - 1], false); } - } - - public PlayerLayer clAfterAll = new PlayerLayer("Calamity", "clAfterAll", PlayerLayer.MiscEffectsFront, delegate (PlayerDrawInfo edi) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - Player drawPlayer = edi.drawPlayer; - if (drawPlayer.mount != null && drawPlayer.GetModPlayer(mod).fab) { drawPlayer.mount.Draw(Main.playerDrawData, 3, drawPlayer, edi.position, edi.mountColor, edi.spriteEffects, edi.shadow); } - }); - - public static void AddPlayerLayer(List list, PlayerLayer layer, PlayerLayer parent, bool first) - { - int insertAt = -1; - for (int m = 0; m < list.Count; m++) - { - PlayerLayer dl = list[m]; - if (dl.Name.Equals(parent.Name)) { insertAt = m; break; } - } - if (insertAt == -1) list.Add(layer); else list.Insert(first ? insertAt : insertAt + 1, layer); - } - - public override void DrawEffects(PlayerDrawInfo drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright) + #region Drawing + public static readonly PlayerLayer MiscEffectsBack = new PlayerLayer("CalamityMod", "MiscEffectsBack", PlayerLayer.MiscEffectsBack, delegate (PlayerDrawInfo drawInfo) { - if (CalamityWorld.ironHeart && !Main.gameMenu) - { - Texture2D ironHeart = mod.GetTexture("ExtraTextures/IronHeart"); - Main.heartTexture = Main.heart2Texture = ironHeart; - } - else - { - Texture2D heart3 = mod.GetTexture("ExtraTextures/Heart3"); - Texture2D heart4 = mod.GetTexture("ExtraTextures/Heart4"); - Texture2D heart5 = mod.GetTexture("ExtraTextures/Heart5"); - Texture2D heart6 = mod.GetTexture("ExtraTextures/Heart6"); - Texture2D heartOriginal = mod.GetTexture("ExtraTextures/HeartOriginal"); - Texture2D heartOriginal2 = mod.GetTexture("ExtraTextures/HeartOriginal2"); - - int totalFruit = - (mFruit ? 1 : 0) + - (bOrange ? 1 : 0) + - (eBerry ? 1 : 0) + - (dFruit ? 1 : 0); - switch (totalFruit) - { - default: - Main.heart2Texture = heartOriginal; Main.heartTexture = heartOriginal2; - break; - case 4: - Main.heart2Texture = heart6; Main.heartTexture = heartOriginal2; - break; - case 3: - Main.heart2Texture = heart5; Main.heartTexture = heartOriginal2; - break; - case 2: - Main.heart2Texture = heart4; Main.heartTexture = heartOriginal2; - break; - case 1: - Main.heart2Texture = heart3; Main.heartTexture = heartOriginal2; - break; - } - } - if (revivifyTimer > 0) - { - if (Main.rand.Next(2) == 0 && drawInfo.shadow == 0f) - { - int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 91, player.velocity.X * 0.2f, player.velocity.Y * 0.2f, 100, default(Color), 1f); - Main.dust[dust].noGravity = true; - Main.dust[dust].velocity.Y -= 0.5f; - Main.playerDrawDust.Add(dust); - } - } - if (tRegen) + if (drawInfo.shadow != 0f) { - if (Main.rand.Next(10) == 0 && drawInfo.shadow == 0f) - { - int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 107, player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 1f); - Main.dust[dust].noGravity = true; - Main.dust[dust].velocity *= 0.75f; - Main.dust[dust].velocity.Y -= 0.35f; - Main.playerDrawDust.Add(dust); - } - r *= 0.025f; - g *= 0.15f; - b *= 0.035f; - fullBright = true; + return; + } + Player drawPlayer = drawInfo.drawPlayer; + Mod mod = ModLoader.GetMod("CalamityMod"); + CalamityPlayer modPlayer = drawPlayer.GetModPlayer(mod); + if (modPlayer.sirenIce) + { + Texture2D texture = mod.GetTexture("ExtraTextures/IceShield"); + int drawX = (int)(drawInfo.position.X + drawPlayer.width / 2f - Main.screenPosition.X); + int drawY = (int)(drawInfo.position.Y + drawPlayer.height / 2f - Main.screenPosition.Y); //4 + DrawData data = new DrawData(texture, new Vector2(drawX, drawY), null, Color.Cyan, 0f, new Vector2(texture.Width / 2f, texture.Height / 2f), 1f, SpriteEffects.None, 0); + Main.playerDrawData.Add(data); + } + if (modPlayer.amidiasBlessing) + { + Texture2D texture = mod.GetTexture("ExtraTextures/AmidiasBubble"); + int drawX = (int)(drawInfo.position.X + drawPlayer.width / 2f - Main.screenPosition.X); + int drawY = (int)(drawInfo.position.Y + drawPlayer.height / 2f - Main.screenPosition.Y); //4 + DrawData data = new DrawData(texture, new Vector2(drawX, drawY), null, Color.White, 0f, new Vector2(texture.Width / 2f, texture.Height / 2f), 1f, SpriteEffects.None, 0); + Main.playerDrawData.Add(data); + } + }); + + public static readonly PlayerLayer MiscEffects = new PlayerLayer("CalamityMod", "MiscEffects", PlayerLayer.MiscEffectsFront, delegate (PlayerDrawInfo drawInfo) + { + if (drawInfo.shadow != 0f) + { + return; + } + Player drawPlayer = drawInfo.drawPlayer; + Mod mod = ModLoader.GetMod("CalamityMod"); + Item item = drawPlayer.inventory[drawPlayer.selectedItem]; + if (!drawPlayer.frozen && + ((drawPlayer.itemAnimation > 0 && item.useStyle != 0) || (item.holdStyle > 0 && !drawPlayer.pulley)) && + item.type > 0 && + !drawPlayer.dead && + !item.noUseGraphic && + (!drawPlayer.wet || !item.noWet)) + { + Vector2 vector = drawPlayer.position + (drawPlayer.itemLocation - drawPlayer.position); + SpriteEffects effect = SpriteEffects.FlipHorizontally; + if (drawPlayer.gravDir == 1f) + { + if (drawPlayer.direction == 1) + { + effect = SpriteEffects.None; + } + else + { + effect = SpriteEffects.FlipHorizontally; + } + } + else + { + if (drawPlayer.direction == 1) + { + effect = SpriteEffects.FlipVertically; + } + else + { + effect = (SpriteEffects.FlipHorizontally | SpriteEffects.FlipVertically); + } + } + if (item.type == mod.ItemType("DeathhailStaff")) + { + Texture2D texture = mod.GetTexture("Items/Weapons/DevourerofGods/DeathhailStaffGlow"); + float num104 = drawPlayer.itemRotation + 0.785f * (float)drawPlayer.direction; + int num105 = 0; + int num106 = 0; + Vector2 zero3 = new Vector2(0f, (float)Main.itemTexture[item.type].Height); + if (drawPlayer.gravDir == -1f) + { + if (drawPlayer.direction == -1) + { + num104 += 1.57f; + zero3 = new Vector2((float)Main.itemTexture[item.type].Width, 0f); + num105 -= Main.itemTexture[item.type].Width; + } + else + { + num104 -= 1.57f; + zero3 = Vector2.Zero; + } + } + else if (drawPlayer.direction == -1) + { + zero3 = new Vector2((float)Main.itemTexture[item.type].Width, (float)Main.itemTexture[item.type].Height); + num105 -= Main.itemTexture[item.type].Width; + } + DrawData data = new DrawData(texture, + new Vector2((float)((int)(vector.X - Main.screenPosition.X + zero3.X + (float)num105)), (float)((int)(vector.Y - Main.screenPosition.Y + (float)num106))), + new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)), + Color.White, + num104, + zero3, + item.scale, + effect, + 0); + Main.playerDrawData.Add(data); + } + else if (item.type == mod.ItemType("Deathwind")) + { + Texture2D texture = mod.GetTexture("Items/Weapons/DevourerofGods/DeathwindGlow"); + Vector2 vector13 = new Vector2((float)(Main.itemTexture[item.type].Width / 2), (float)(Main.itemTexture[item.type].Height / 2)); + Vector2 vector14 = new Vector2((float)(Main.itemTexture[item.type].Width / 2), (float)(Main.itemTexture[item.type].Height / 2)); + int num107 = (int)vector14.X; + vector13.Y = vector14.Y; + Vector2 origin4 = new Vector2((float)(-(float)num107), (float)(Main.itemTexture[item.type].Height / 2)); + if (drawPlayer.direction == -1) + { + origin4 = new Vector2((float)(Main.itemTexture[item.type].Width + num107), (float)(Main.itemTexture[item.type].Height / 2)); + } + DrawData data = new DrawData(texture, + new Vector2((float)((int)(vector.X - Main.screenPosition.X + vector13.X)), (float)((int)(vector.Y - Main.screenPosition.Y + vector13.Y))), + new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)), + Color.White, + drawPlayer.itemRotation, + origin4, + item.scale, + effect, + 0); + Main.playerDrawData.Add(data); + } + else if (item.type == mod.ItemType("Excelsus")) + { + Vector2 zero2 = Vector2.Zero; + Texture2D texture = mod.GetTexture("Items/Weapons/DevourerofGods/ExcelsusGlow"); + if (drawPlayer.gravDir == -1f) + { + DrawData data = new DrawData(texture, + new Vector2((float)((int)(vector.X - Main.screenPosition.X)), (float)((int)(vector.Y - Main.screenPosition.Y))), + new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)), + Color.White, + drawPlayer.itemRotation, + new Vector2((float)Main.itemTexture[item.type].Width * 0.5f - (float)Main.itemTexture[item.type].Width * 0.5f * (float)drawPlayer.direction, 0f) + zero2, + item.scale, + effect, + 0); + Main.playerDrawData.Add(data); + } + else + { + DrawData data = new DrawData(texture, + new Vector2((float)((int)(vector.X - Main.screenPosition.X)), (float)((int)(vector.Y - Main.screenPosition.Y))), + new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, 0, Main.itemTexture[item.type].Width, Main.itemTexture[item.type].Height)), + Color.White, + drawPlayer.itemRotation, + new Vector2((float)Main.itemTexture[item.type].Width * 0.5f - (float)Main.itemTexture[item.type].Width * 0.5f * (float)drawPlayer.direction, (float)Main.itemTexture[item.type].Height) + zero2, + item.scale, + effect, + 0); + Main.playerDrawData.Add(data); + } + } + } + }); + + public override void ModifyDrawLayers(List list) + { + MiscEffectsBack.visible = true; + list.Insert(0, MiscEffectsBack); + MiscEffects.visible = true; + list.Add(MiscEffects); + if (fab) { AddPlayerLayer(list, clAfterAll, list[list.Count - 1], false); } + } + + public PlayerLayer clAfterAll = new PlayerLayer("Calamity", "clAfterAll", PlayerLayer.MiscEffectsFront, delegate (PlayerDrawInfo edi) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Player drawPlayer = edi.drawPlayer; + if (drawPlayer.mount != null && drawPlayer.GetModPlayer(mod).fab) { drawPlayer.mount.Draw(Main.playerDrawData, 3, drawPlayer, edi.position, edi.mountColor, edi.spriteEffects, edi.shadow); } + }); + + public static void AddPlayerLayer(List list, PlayerLayer layer, PlayerLayer parent, bool first) + { + int insertAt = -1; + for (int m = 0; m < list.Count; m++) + { + PlayerLayer dl = list[m]; + if (dl.Name.Equals(parent.Name)) { insertAt = m; break; } + } + if (insertAt == -1) list.Add(layer); else list.Insert(first ? insertAt : insertAt + 1, layer); + } + + public override void DrawEffects(PlayerDrawInfo drawInfo, ref float r, ref float g, ref float b, ref float a, ref bool fullBright) + { + bool noRogueStealth = rogueStealth == 0f || player.townNPCs > 2f; + if (rogueStealth > 0f && rogueStealthMax > 0f && player.townNPCs < 3f) + { + //A translucent orchid color, the rogue class color + float colorValue = (rogueStealth / rogueStealthMax) * 0.9f; //0 to 0.9 + r *= 1f - (colorValue * 0.89f); //255 to 50 + g *= 1f - colorValue; //255 to 25 + b *= 1f - (colorValue * 0.89f); //255 to 50 + a *= 1f - colorValue; //255 to 25 + player.armorEffectDrawOutlines = false; + player.armorEffectDrawShadow = false; + player.armorEffectDrawShadowSubtle = false; + } + if (CalamityWorld.ironHeart && !Main.gameMenu) + { + Texture2D ironHeart = mod.GetTexture("ExtraTextures/IronHeart"); + Main.heartTexture = Main.heart2Texture = ironHeart; + } + else + { + Texture2D heart3 = mod.GetTexture("ExtraTextures/Heart3"); + Texture2D heart4 = mod.GetTexture("ExtraTextures/Heart4"); + Texture2D heart5 = mod.GetTexture("ExtraTextures/Heart5"); + Texture2D heart6 = mod.GetTexture("ExtraTextures/Heart6"); + Texture2D heartOriginal = mod.GetTexture("ExtraTextures/HeartOriginal"); + Texture2D heartOriginal2 = mod.GetTexture("ExtraTextures/HeartOriginal2"); + + int totalFruit = + (mFruit ? 1 : 0) + + (bOrange ? 1 : 0) + + (eBerry ? 1 : 0) + + (dFruit ? 1 : 0); + switch (totalFruit) + { + default: + Main.heart2Texture = heartOriginal; Main.heartTexture = heartOriginal2; + break; + case 4: + Main.heart2Texture = heart6; Main.heartTexture = heartOriginal2; + break; + case 3: + Main.heart2Texture = heart5; Main.heartTexture = heartOriginal2; + break; + case 2: + Main.heart2Texture = heart4; Main.heartTexture = heartOriginal2; + break; + case 1: + Main.heart2Texture = heart3; Main.heartTexture = heartOriginal2; + break; + } + } + if (revivifyTimer > 0) + { + if (Main.rand.Next(2) == 0 && drawInfo.shadow == 0f) + { + int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 91, player.velocity.X * 0.2f, player.velocity.Y * 0.2f, 100, default(Color), 1f); + Main.dust[dust].noGravity = true; + Main.dust[dust].velocity.Y -= 0.5f; + Main.playerDrawDust.Add(dust); + } + } + if (tRegen) + { + if (Main.rand.Next(10) == 0 && drawInfo.shadow == 0f) + { + int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 107, player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 1f); + Main.dust[dust].noGravity = true; + Main.dust[dust].velocity *= 0.75f; + Main.dust[dust].velocity.Y -= 0.35f; + Main.playerDrawDust.Add(dust); + } + if (noRogueStealth) + { + r *= 0.025f; + g *= 0.15f; + b *= 0.035f; + fullBright = true; + } } if (IBoots) { if (((double)Math.Abs(player.velocity.X) > 0.05 || (double)Math.Abs(player.velocity.Y) > 0.05) && !player.mount.Active) - { + { if (Main.rand.Next(2) == 0 && drawInfo.shadow == 0f) { int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 229, player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 1f); @@ -8752,16 +9553,19 @@ namespace CalamityMod Main.dust[dust].velocity *= 0.5f; Main.playerDrawDust.Add(dust); } - r *= 0.05f; - g *= 0.05f; - b *= 0.05f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.05f; + g *= 0.05f; + b *= 0.05f; + fullBright = true; + } } } if (elysianFire) { if (((double)Math.Abs(player.velocity.X) > 0.05 || (double)Math.Abs(player.velocity.Y) > 0.05) && !player.mount.Active) - { + { if (Main.rand.Next(2) == 0 && drawInfo.shadow == 0f) { int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 246, player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 1f); @@ -8769,16 +9573,19 @@ namespace CalamityMod Main.dust[dust].velocity *= 0.5f; Main.playerDrawDust.Add(dust); } - r *= 0.75f; - g *= 0.55f; - b *= 0f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.75f; + g *= 0.55f; + b *= 0f; + fullBright = true; + } } } if (dsSetBonus) { if (((double)Math.Abs(player.velocity.X) > 0.05 || (double)Math.Abs(player.velocity.Y) > 0.05) && !player.mount.Active) - { + { if (Main.rand.Next(2) == 0 && drawInfo.shadow == 0f) { int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 27, player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 1.5f); @@ -8786,16 +9593,19 @@ namespace CalamityMod Main.dust[dust].velocity *= 0.5f; Main.playerDrawDust.Add(dust); } - r *= 0.15f; - g *= 0.025f; - b *= 0.1f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.15f; + g *= 0.025f; + b *= 0.1f; + fullBright = true; + } } } if (auricSet) { if (((double)Math.Abs(player.velocity.X) > 0.05 || (double)Math.Abs(player.velocity.Y) > 0.05) && !player.mount.Active) - { + { if (drawInfo.shadow == 0f) { int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, Main.rand.Next(2) == 0 ? 57 : 244, player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 1.5f); @@ -8803,10 +9613,13 @@ namespace CalamityMod Main.dust[dust].velocity *= 0.5f; Main.playerDrawDust.Add(dust); } - r *= 0.15f; - g *= 0.025f; - b *= 0.1f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.15f; + g *= 0.025f; + b *= 0.1f; + fullBright = true; + } } } if (bFlames || aFlames || rageMode) @@ -8819,26 +9632,32 @@ namespace CalamityMod Main.dust[dust].velocity.Y -= 0.5f; Main.playerDrawDust.Add(dust); } - r *= 0.25f; - g *= 0.01f; - b *= 0.01f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.25f; + g *= 0.01f; + b *= 0.01f; + fullBright = true; + } } - if (adrenalineMode) - { - if (Main.rand.Next(4) == 0 && drawInfo.shadow == 0f) - { - int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 206, player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 3f); - Main.dust[dust].velocity *= 1.8f; - Main.dust[dust].velocity.Y -= 0.5f; - Main.playerDrawDust.Add(dust); - } - r *= 0.01f; - g *= 0.15f; - b *= 0.1f; - fullBright = true; - } - if (gsInferno) + if (adrenalineMode) + { + if (Main.rand.Next(4) == 0 && drawInfo.shadow == 0f) + { + int dust = Dust.NewDust(drawInfo.position - new Vector2(2f, 2f), player.width + 4, player.height + 4, 206, player.velocity.X * 0.4f, player.velocity.Y * 0.4f, 100, default(Color), 3f); + Main.dust[dust].velocity *= 1.8f; + Main.dust[dust].velocity.Y -= 0.5f; + Main.playerDrawDust.Add(dust); + } + if (noRogueStealth) + { + r *= 0.01f; + g *= 0.15f; + b *= 0.1f; + fullBright = true; + } + } + if (gsInferno) { if (Main.rand.Next(4) == 0 && drawInfo.shadow == 0f) { @@ -8848,10 +9667,13 @@ namespace CalamityMod Main.dust[dust].velocity.Y -= 0.5f; Main.playerDrawDust.Add(dust); } - r *= 0.25f; - g *= 0.01f; - b *= 0.01f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.25f; + g *= 0.01f; + b *= 0.01f; + fullBright = true; + } } if (hFlames || hInferno) { @@ -8863,10 +9685,13 @@ namespace CalamityMod Main.dust[dust].velocity.Y -= 0.5f; Main.playerDrawDust.Add(dust); } - r *= 0.25f; - g *= 0.25f; - b *= 0.1f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.25f; + g *= 0.25f; + b *= 0.1f; + fullBright = true; + } } if (pFlames) { @@ -8878,26 +9703,35 @@ namespace CalamityMod Main.dust[dust].velocity.Y -= 0.15f; Main.playerDrawDust.Add(dust); } - r *= 0.07f; - g *= 0.15f; - b *= 0.01f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.07f; + g *= 0.15f; + b *= 0.01f; + fullBright = true; + } } if (gState || cDepth) { - r *= 0f; - g *= 0.05f; - b *= 0.3f; - fullBright = true; + if (noRogueStealth) + { + r *= 0f; + g *= 0.05f; + b *= 0.3f; + fullBright = true; + } } - if (draedonsHeart && !shadeRegen && !cFreeze && (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) - { - r *= 0f; - g *= 0.5f; - b *= 0f; - fullBright = true; - } - if (bBlood) + if (draedonsHeart && !shadeRegen && !cFreeze && (double)Math.Abs(player.velocity.X) < 0.05 && (double)Math.Abs(player.velocity.Y) < 0.05 && player.itemAnimation == 0) + { + if (noRogueStealth) + { + r *= 0f; + g *= 0.5f; + b *= 0f; + fullBright = true; + } + } + if (bBlood) { if (Main.rand.Next(6) == 0 && drawInfo.shadow == 0f) { @@ -8907,10 +9741,13 @@ namespace CalamityMod Main.dust[dust].velocity.Y -= 0.5f; Main.playerDrawDust.Add(dust); } - r *= 0.15f; - g *= 0.01f; - b *= 0.01f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.15f; + g *= 0.01f; + b *= 0.01f; + fullBright = true; + } } if (mushy) { @@ -8922,217 +9759,220 @@ namespace CalamityMod Main.dust[dust].velocity.Y -= 0.1f; Main.playerDrawDust.Add(dust); } - r *= 0.15f; - g *= 0.01f; - b *= 0.01f; - fullBright = true; + if (noRogueStealth) + { + r *= 0.15f; + g *= 0.01f; + b *= 0.01f; + fullBright = true; + } } } - #endregion + #endregion - #region PacketStuff - private void ExactLevelPacket(bool server, int levelType) - { - ModPacket packet = mod.GetPacket(256); - switch (levelType) - { - case 0: - packet.Write((byte)CalamityModMessageType.ExactMeleeLevelSync); - packet.Write(player.whoAmI); - packet.Write(exactMeleeLevel); - break; - case 1: - packet.Write((byte)CalamityModMessageType.ExactRangedLevelSync); - packet.Write(player.whoAmI); - packet.Write(exactRangedLevel); - break; - case 2: - packet.Write((byte)CalamityModMessageType.ExactMagicLevelSync); - packet.Write(player.whoAmI); - packet.Write(exactMagicLevel); - break; - case 3: - packet.Write((byte)CalamityModMessageType.ExactSummonLevelSync); - packet.Write(player.whoAmI); - packet.Write(exactSummonLevel); - break; - case 4: - packet.Write((byte)CalamityModMessageType.ExactRogueLevelSync); - packet.Write(player.whoAmI); - packet.Write(exactRogueLevel); - break; - } - if (!server) - { - packet.Send(); - } - else - { - packet.Send(-1, player.whoAmI); - } - } - - private void LevelPacket(bool server, int levelType) - { - ModPacket packet = mod.GetPacket(256); - switch (levelType) - { - case 0: - packet.Write((byte)CalamityModMessageType.MeleeLevelSync); - packet.Write(player.whoAmI); - packet.Write(meleeLevel); - break; - case 1: - packet.Write((byte)CalamityModMessageType.RangedLevelSync); - packet.Write(player.whoAmI); - packet.Write(rangedLevel); - break; - case 2: - packet.Write((byte)CalamityModMessageType.MagicLevelSync); - packet.Write(player.whoAmI); - packet.Write(magicLevel); - break; - case 3: - packet.Write((byte)CalamityModMessageType.SummonLevelSync); - packet.Write(player.whoAmI); - packet.Write(summonLevel); - break; - case 4: - packet.Write((byte)CalamityModMessageType.RogueLevelSync); - packet.Write(player.whoAmI); - packet.Write(rogueLevel); - break; - } - if (!server) - { - packet.Send(); - } - else - { - packet.Send(-1, player.whoAmI); - } - } - - private void StressPacket(bool server) + #region PacketStuff + private void ExactLevelPacket(bool server, int levelType) { - ModPacket packet = mod.GetPacket(256); - packet.Write((byte)CalamityModMessageType.StressSync); - packet.Write(player.whoAmI); - packet.Write(stress); - if (!server) - { - packet.Send(); - } - else - { - packet.Send(-1, player.whoAmI); - } + ModPacket packet = mod.GetPacket(256); + switch (levelType) + { + case 0: + packet.Write((byte)CalamityModMessageType.ExactMeleeLevelSync); + packet.Write(player.whoAmI); + packet.Write(exactMeleeLevel); + break; + case 1: + packet.Write((byte)CalamityModMessageType.ExactRangedLevelSync); + packet.Write(player.whoAmI); + packet.Write(exactRangedLevel); + break; + case 2: + packet.Write((byte)CalamityModMessageType.ExactMagicLevelSync); + packet.Write(player.whoAmI); + packet.Write(exactMagicLevel); + break; + case 3: + packet.Write((byte)CalamityModMessageType.ExactSummonLevelSync); + packet.Write(player.whoAmI); + packet.Write(exactSummonLevel); + break; + case 4: + packet.Write((byte)CalamityModMessageType.ExactRogueLevelSync); + packet.Write(player.whoAmI); + packet.Write(exactRogueLevel); + break; + } + if (!server) + { + packet.Send(); + } + else + { + packet.Send(-1, player.whoAmI); + } } - private void AdrenalinePacket(bool server) - { - ModPacket packet = mod.GetPacket(256); - packet.Write((byte)CalamityModMessageType.AdrenalineSync); - packet.Write(player.whoAmI); - packet.Write(adrenaline); - if (!server) - { - packet.Send(); - } - else - { - packet.Send(-1, player.whoAmI); - } - } - - internal void HandleExactLevels(BinaryReader reader, int levelType) - { - switch (levelType) - { - case 0: - exactMeleeLevel = reader.ReadInt32(); - break; - case 1: - exactRangedLevel = reader.ReadInt32(); - break; - case 2: - exactMagicLevel = reader.ReadInt32(); - break; - case 3: - exactSummonLevel = reader.ReadInt32(); - break; - case 4: - exactRogueLevel = reader.ReadInt32(); - break; - } - if (Main.netMode == 2) - { - ExactLevelPacket(true, levelType); - } - } - - internal void HandleLevels(BinaryReader reader, int levelType) - { - switch (levelType) - { - case 0: - meleeLevel = reader.ReadInt32(); - break; - case 1: - rangedLevel = reader.ReadInt32(); - break; - case 2: - magicLevel = reader.ReadInt32(); - break; - case 3: - summonLevel = reader.ReadInt32(); - break; - case 4: - rogueLevel = reader.ReadInt32(); - break; - } - if (Main.netMode == 2) - { - LevelPacket(true, levelType); - } - } - - internal void HandleStress(BinaryReader reader) + private void LevelPacket(bool server, int levelType) { - stress = reader.ReadInt32(); - if (Main.netMode == 2) - { - StressPacket(true); - } + ModPacket packet = mod.GetPacket(256); + switch (levelType) + { + case 0: + packet.Write((byte)CalamityModMessageType.MeleeLevelSync); + packet.Write(player.whoAmI); + packet.Write(meleeLevel); + break; + case 1: + packet.Write((byte)CalamityModMessageType.RangedLevelSync); + packet.Write(player.whoAmI); + packet.Write(rangedLevel); + break; + case 2: + packet.Write((byte)CalamityModMessageType.MagicLevelSync); + packet.Write(player.whoAmI); + packet.Write(magicLevel); + break; + case 3: + packet.Write((byte)CalamityModMessageType.SummonLevelSync); + packet.Write(player.whoAmI); + packet.Write(summonLevel); + break; + case 4: + packet.Write((byte)CalamityModMessageType.RogueLevelSync); + packet.Write(player.whoAmI); + packet.Write(rogueLevel); + break; + } + if (!server) + { + packet.Send(); + } + else + { + packet.Send(-1, player.whoAmI); + } } - internal void HandleAdrenaline(BinaryReader reader) - { - adrenaline = reader.ReadInt32(); - if (Main.netMode == 2) - { - AdrenalinePacket(true); - } - } - - public override void OnEnterWorld(Player player) + private void StressPacket(bool server) { - if (Main.netMode == 1) - { - ExactLevelPacket(false, 0); - ExactLevelPacket(false, 1); - ExactLevelPacket(false, 2); - ExactLevelPacket(false, 3); - ExactLevelPacket(false, 4); - LevelPacket(false, 0); - LevelPacket(false, 1); - LevelPacket(false, 2); - LevelPacket(false, 3); - LevelPacket(false, 4); - StressPacket(false); - AdrenalinePacket(false); - } + ModPacket packet = mod.GetPacket(256); + packet.Write((byte)CalamityModMessageType.StressSync); + packet.Write(player.whoAmI); + packet.Write(stress); + if (!server) + { + packet.Send(); + } + else + { + packet.Send(-1, player.whoAmI); + } } - #endregion - } + + private void AdrenalinePacket(bool server) + { + ModPacket packet = mod.GetPacket(256); + packet.Write((byte)CalamityModMessageType.AdrenalineSync); + packet.Write(player.whoAmI); + packet.Write(adrenaline); + if (!server) + { + packet.Send(); + } + else + { + packet.Send(-1, player.whoAmI); + } + } + + internal void HandleExactLevels(BinaryReader reader, int levelType) + { + switch (levelType) + { + case 0: + exactMeleeLevel = reader.ReadInt32(); + break; + case 1: + exactRangedLevel = reader.ReadInt32(); + break; + case 2: + exactMagicLevel = reader.ReadInt32(); + break; + case 3: + exactSummonLevel = reader.ReadInt32(); + break; + case 4: + exactRogueLevel = reader.ReadInt32(); + break; + } + if (Main.netMode == 2) + { + ExactLevelPacket(true, levelType); + } + } + + internal void HandleLevels(BinaryReader reader, int levelType) + { + switch (levelType) + { + case 0: + meleeLevel = reader.ReadInt32(); + break; + case 1: + rangedLevel = reader.ReadInt32(); + break; + case 2: + magicLevel = reader.ReadInt32(); + break; + case 3: + summonLevel = reader.ReadInt32(); + break; + case 4: + rogueLevel = reader.ReadInt32(); + break; + } + if (Main.netMode == 2) + { + LevelPacket(true, levelType); + } + } + + internal void HandleStress(BinaryReader reader) + { + stress = reader.ReadInt32(); + if (Main.netMode == 2) + { + StressPacket(true); + } + } + + internal void HandleAdrenaline(BinaryReader reader) + { + adrenaline = reader.ReadInt32(); + if (Main.netMode == 2) + { + AdrenalinePacket(true); + } + } + + public override void OnEnterWorld(Player player) + { + if (Main.netMode == 1) + { + ExactLevelPacket(false, 0); + ExactLevelPacket(false, 1); + ExactLevelPacket(false, 2); + ExactLevelPacket(false, 3); + ExactLevelPacket(false, 4); + LevelPacket(false, 0); + LevelPacket(false, 1); + LevelPacket(false, 2); + LevelPacket(false, 3); + LevelPacket(false, 4); + StressPacket(false); + AdrenalinePacket(false); + } + } + #endregion + } } diff --git a/CalamityRecipes.cs b/CalamityRecipes.cs new file mode 100644 index 0000000000..44a298b45b --- /dev/null +++ b/CalamityRecipes.cs @@ -0,0 +1,725 @@ +using System.Collections.Generic; +using System.Linq; +using Terraria; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; + +namespace CalamityMod +{ + internal class CalamityRecipes + { + private static ModRecipe GetNewRecipe() + { + return new ModRecipe(CalamityMod.Instance); + } + + public static void AddRecipes() + { + EditTerraBladeRecipe(); + AddPotionRecipes(); + AddToolRecipes(); + AddProgressionRecipes(); + AddEarlyGameWeaponRecipes(); + AddEarlyGameAccessoryRecipes(); + AddAnkhShieldRecipes(); + AddAlternateHardmodeRecipes(); + + // Leather from Vertebrae, for Crimson worlds + ModRecipe r = GetNewRecipe(); + r.AddIngredient(ItemID.Vertebrae, 5); + r.AddTile(TileID.WorkBenches); + r.SetResult(ItemID.Leather); + r.AddRecipe(); + + // Black Lens + r = GetNewRecipe(); + r.AddIngredient(ItemID.Lens); + r.AddIngredient(ItemID.BlackDye); + r.AddTile(TileID.DyeVat); + r.SetResult(ItemID.BlackLens); + r.AddRecipe(); + + // Ectoplasm from Ectoblood + r = GetNewRecipe(); + r.AddIngredient(null, "Ectoblood", 3); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.Ectoplasm); + r.AddRecipe(); + + // Rocket I from Empty Bullet + r = GetNewRecipe(); + r.AddIngredient(ItemID.EmptyBullet, 20); + r.AddIngredient(ItemID.ExplosivePowder, 1); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.RocketI, 20); + r.AddRecipe(); + + // Life Crystal + r = GetNewRecipe(); + r.AddIngredient(ItemID.Bone, 5); + r.AddIngredient(ItemID.PinkGel); + r.AddIngredient(ItemID.HealingPotion); + r.AddIngredient(ItemID.Ruby); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.LifeCrystal); + r.AddRecipe(); + + // Life Fruit + r = GetNewRecipe(); + r.AddIngredient(null, "PlantyMush", 10); + r.AddIngredient(null, "LivingShard"); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.LifeFruit); + r.AddRecipe(); + } + + // Change Terra Blade's recipe to require 7 Living Shards (forces the Blade to be post-Plantera) + private static void EditTerraBladeRecipe() + { + List rec = Main.recipe.ToList(); + rec.Where(x => x.createItem.type == ItemID.TerraBlade).ToList().ForEach(s => + { + for (int i = 0; i < s.requiredItem.Length; i++) + { + s.requiredItem[i] = new Item(); + } + s.requiredItem[0].SetDefaults(ItemID.TrueNightsEdge, false); + s.requiredItem[0].stack = 1; + s.requiredItem[1].SetDefaults(ItemID.TrueExcalibur, false); + s.requiredItem[1].stack = 1; + s.requiredItem[2].SetDefaults(CalamityMod.Instance.ItemType("LivingShard"), false); + s.requiredItem[2].stack = 7; + + s.createItem.SetDefaults(ItemID.TerraBlade, false); + s.createItem.stack = 1; + }); + } + + #region Potions + // Equivalent Blood Orb recipes for almost all vanilla potions + private static void AddPotionRecipes() + { + short[] potions = new[] + { + ItemID.WormholePotion, + ItemID.TeleportationPotion, + ItemID.SwiftnessPotion, + ItemID.FeatherfallPotion, + ItemID.GravitationPotion, + ItemID.ShinePotion, + ItemID.InvisibilityPotion, + ItemID.NightOwlPotion, + ItemID.SpelunkerPotion, + ItemID.HunterPotion, + ItemID.TrapsightPotion, + ItemID.BattlePotion, + ItemID.CalmingPotion, + ItemID.WrathPotion, + ItemID.RagePotion, + ItemID.ThornsPotion, + ItemID.IronskinPotion, + ItemID.EndurancePotion, + ItemID.RegenerationPotion, + ItemID.LifeforcePotion, + ItemID.HeartreachPotion, + ItemID.TitanPotion, + ItemID.ArcheryPotion, + ItemID.AmmoReservationPotion, + ItemID.MagicPowerPotion, + ItemID.ManaRegenerationPotion, + ItemID.SummoningPotion, + ItemID.InfernoPotion, + ItemID.WarmthPotion, + ItemID.ObsidianSkinPotion, + ItemID.GillsPotion, + ItemID.WaterWalkingPotion, + ItemID.FlipperPotion, + ItemID.BuilderPotion, + ItemID.MiningPotion, + ItemID.FishingPotion, + ItemID.CratePotion, + ItemID.SonarPotion, + ItemID.GenderChangePotion, + ItemID.LovePotion, + ItemID.StinkPotion + }; + ModRecipe r; + + foreach (var potion in potions) + { + r = GetNewRecipe(); + r.AddIngredient(null, "BloodOrb", 10); + r.AddIngredient(ItemID.BottledWater); + r.AddTile(TileID.AlchemyTable); + r.SetResult(potion); + r.AddRecipe(); + } + } + #endregion + + #region Tools + // Essential tools such as the Magic Mirror and Rod of Discord + private static void AddToolRecipes() + { + // Magic Mirror + ModRecipe r = GetNewRecipe(); + r.AddIngredient(ItemID.IronBar, 10); + r.AddIngredient(ItemID.Glass, 10); + r.AddIngredient(ItemID.FallenStar, 10); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.MagicMirror); + r.AddRecipe(); + + // Ice Mirror + r = GetNewRecipe(); + r.AddIngredient(ItemID.IceBlock, 20); + r.AddIngredient(ItemID.Glass, 10); + r.AddIngredient(ItemID.FallenStar, 10); + r.AddIngredient(ItemID.IronBar, 5); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.IceMirror); + r.AddRecipe(); + + // Shadow Key + r = GetNewRecipe(); + r.AddIngredient(ItemID.GoldenKey); + r.AddIngredient(ItemID.Obsidian, 20); + r.AddIngredient(ItemID.Bone, 5); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.ShadowKey); + r.AddRecipe(); + + // Rod of Discord + r = GetNewRecipe(); + r.AddIngredient(ItemID.SoulofLight, 30); + r.AddIngredient(ItemID.ChaosFish, 5); + r.AddIngredient(ItemID.PixieDust, 50); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.RodofDiscord); + r.AddRecipe(); + + // Sky Mill + r = GetNewRecipe(); + r.AddIngredient(ItemID.SunplateBlock, 10); + r.AddIngredient(ItemID.Cloud, 5); + r.AddIngredient(ItemID.RainCloud, 3); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.SkyMill); + r.AddRecipe(); + + // Ice Machine + r = GetNewRecipe(); + r.AddIngredient(ItemID.IceBlock, 25); + r.AddIngredient(ItemID.SnowBlock, 15); + r.AddIngredient(ItemID.IronBar, 3); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.IceMachine); + r.AddRecipe(); + } + #endregion + + #region ProgressionItems + // Boss summon and progression items + private static void AddProgressionRecipes() + { + // Guide Voodoo Doll + ModRecipe r = GetNewRecipe(); + r.AddIngredient(ItemID.Leather, 5); + r.AddIngredient(null, "BloodOrb", 10); + r.AddTile(TileID.Hellforge); + r.SetResult(ItemID.GuideVoodooDoll); + r.AddRecipe(); + + // Temple Key + r = GetNewRecipe(); + r.AddIngredient(ItemID.JungleSpores, 15); + r.AddIngredient(ItemID.RichMahogany, 15); + r.AddIngredient(ItemID.SoulofNight, 15); + r.AddIngredient(ItemID.SoulofLight, 15); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.TempleKey); + r.AddRecipe(); + + // Lihzahrd Power Cell (NOT Calamity's Old Power Cell) + r = GetNewRecipe(); + r.AddIngredient(ItemID.LihzahrdBrick, 15); + r.AddIngredient(null, "CoreofCinder"); + r.AddTile(TileID.LihzahrdFurnace); + r.SetResult(ItemID.LihzahrdPowerCell); + r.AddRecipe(); + + // Truffle Worm + r = GetNewRecipe(); + r.AddIngredient(ItemID.GlowingMushroom, 15); + r.AddIngredient(ItemID.Worm); + r.AddTile(TileID.Autohammer); + r.SetResult(ItemID.TruffleWorm); + r.AddRecipe(); + } + #endregion + + #region EarlyGameWeapons + // Early game weapons such as Enchanted Sword + private static void AddEarlyGameWeaponRecipes() + { + // Shuriken + ModRecipe r = GetNewRecipe(); + r.AddIngredient(ItemID.IronBar); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.Shuriken, 50); + r.AddRecipe(); + + // Throwing Knife + r = GetNewRecipe(); + r.AddIngredient(ItemID.IronBar); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.ThrowingKnife, 50); + r.AddRecipe(); + + // Wand of Sparking + r = GetNewRecipe(); + r.AddIngredient(ItemID.Wood, 5); + r.AddIngredient(ItemID.Torch, 3); + r.AddIngredient(ItemID.FallenStar); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.WandofSparking); + r.AddRecipe(); + + // Starfury w/ Gold Broadsword + r = GetNewRecipe(); + r.AddIngredient(ItemID.GoldBroadsword); + r.AddIngredient(ItemID.FallenStar, 10); + r.AddIngredient(null, "VictoryShard", 3); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.Starfury); + r.AddRecipe(); + + // Starfury w/ Platinum Broadsword + r = GetNewRecipe(); + r.AddIngredient(ItemID.PlatinumBroadsword); + r.AddIngredient(ItemID.FallenStar, 10); + r.AddIngredient(null, "VictoryShard", 3); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.Starfury); + r.AddRecipe(); + + // Enchanted Sword (requires Hardmode materials) + r = GetNewRecipe(); + r.AddIngredient(null, "VictoryShard", 10); + r.AddIngredient(ItemID.SoulofLight, 15); + r.AddIngredient(ItemID.UnicornHorn, 3); + r.AddIngredient(ItemID.LightShard); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.EnchantedSword); + r.AddRecipe(); + + // Muramasa w/ Cobalt Bars + r = GetNewRecipe(); + r.AddIngredient(ItemID.CobaltBar, 15); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.Muramasa); + r.AddRecipe(); + + // Muramasa w/ Palladium Bars + r = GetNewRecipe(); + r.AddIngredient(ItemID.PalladiumBar, 15); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.Muramasa); + r.AddRecipe(); + } + #endregion + + #region EarlyGameAccessories + // Early game accessories such as Cloud in a Bottle + private static void AddEarlyGameAccessoryRecipes() + { + // Cloud in a Bottle + ModRecipe r = GetNewRecipe(); + r.AddIngredient(ItemID.Feather, 2); + r.AddIngredient(ItemID.Bottle); + r.AddIngredient(ItemID.Cloud, 25); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.CloudinaBottle); + r.AddRecipe(); + + // Hermes Boots + r = GetNewRecipe(); + r.AddIngredient(ItemID.Silk, 10); + r.AddTile(TileID.Loom); + r.SetResult(ItemID.HermesBoots); + r.AddRecipe(); + + // Blizzard in a Bottle + r = GetNewRecipe(); + r.AddIngredient(ItemID.Feather, 4); + r.AddIngredient(ItemID.Bottle); + r.AddIngredient(ItemID.SnowBlock, 50); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.BlizzardinaBottle); + r.AddRecipe(); + + // Sandstorm in a Bottle + r = GetNewRecipe(); + r.AddIngredient(null, "DesertFeather", 10); + r.AddIngredient(ItemID.Feather, 6); + r.AddIngredient(ItemID.Bottle); + r.AddIngredient(ItemID.SandBlock, 70); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.SandstorminaBottle); + r.AddRecipe(); + + // Frog Leg + r = GetNewRecipe(); + r.AddIngredient(ItemID.Frog, 10); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.FrogLeg); + r.AddRecipe(); + + // Flying Carpet + r = GetNewRecipe(); + r.AddIngredient(ItemID.AncientCloth, 10); + r.AddIngredient(ItemID.SoulofLight, 10); + r.AddIngredient(ItemID.SoulofNight, 10); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.FlyingCarpet); + r.AddRecipe(); + + // Aglet + r = GetNewRecipe(); + r.AddIngredient(ItemID.IronBar, 5); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.Aglet); + r.AddRecipe(); + + // Anklet of the Wind + r = GetNewRecipe(); + r.AddIngredient(ItemID.JungleSpores, 15); + r.AddIngredient(ItemID.Cloud, 15); + r.AddIngredient(ItemID.PinkGel, 5); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.AnkletoftheWind); + r.AddRecipe(); + + // Water Walking Boots + r = GetNewRecipe(); + r.AddIngredient(ItemID.Leather, 5); + r.AddIngredient(ItemID.WaterWalkingPotion, 8); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.WaterWalkingBoots); + r.AddRecipe(); + + // Ice Skates + r = GetNewRecipe(); + r.AddIngredient(ItemID.IceBlock, 20); + r.AddIngredient(ItemID.Leather, 5); + r.AddIngredient(ItemID.IronBar, 5); + r.anyIronBar = true; + r.AddTile(TileID.IceMachine); + r.SetResult(ItemID.IceSkates); + r.AddRecipe(); + + // Lucky Horseshoe w/ Gold Bars + r = GetNewRecipe(); + r.AddIngredient(ItemID.SunplateBlock, 10); + r.AddIngredient(ItemID.Cloud, 10); + r.AddIngredient(ItemID.GoldBar, 5); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.LuckyHorseshoe); + r.AddRecipe(); + + // Lucky Horseshoe w/ Platinum Bars + r = GetNewRecipe(); + r.AddIngredient(ItemID.SunplateBlock, 10); + r.AddIngredient(ItemID.Cloud, 10); + r.AddIngredient(ItemID.PlatinumBar, 5); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.LuckyHorseshoe); + r.AddRecipe(); + + // Shiny Red Balloon + r = GetNewRecipe(); + r.AddIngredient(ItemID.WhiteString); + r.AddIngredient(ItemID.Gel, 80); + r.AddIngredient(ItemID.Cloud, 40); + r.AddTile(TileID.Solidifier); + r.SetResult(ItemID.ShinyRedBalloon); + r.AddRecipe(); + + // Lava Charm + r = GetNewRecipe(); + r.AddIngredient(ItemID.LavaBucket, 5); + r.AddIngredient(ItemID.Obsidian, 25); + r.AddIngredient(ItemID.IronBar, 5); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.LavaCharm); + r.AddRecipe(); + + // Feral Claws + r = GetNewRecipe(); + r.AddIngredient(ItemID.Leather, 10); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.FeralClaws); + r.AddRecipe(); + + // Radar + r = GetNewRecipe(); + r.AddIngredient(ItemID.IronBar, 5); + r.anyIronBar = true; + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.Radar); + r.AddRecipe(); + } + #endregion + + #region AnkhShield + // Every base component for the Ankh Shield + private static void AddAnkhShieldRecipes() + { + // Cobalt Shield w/ Cobalt + ModRecipe r = GetNewRecipe(); + r.AddIngredient(ItemID.CobaltBar, 10); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.CobaltShield); + r.AddRecipe(); + + // Cobalt Shield w/ Palladium + r = GetNewRecipe(); + r.AddIngredient(ItemID.PalladiumBar, 10); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.CobaltShield); + r.AddRecipe(); + + // Armor Polish (broken armor) + r = GetNewRecipe(); + r.AddIngredient(ItemID.Bone, 50); + r.AddIngredient(null, "AncientBoneDust", 3); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.ArmorPolish); + r.AddRecipe(); + + // Adhesive Bandage (bleeding) + r = GetNewRecipe(); + r.AddIngredient(ItemID.Silk, 10); + r.AddIngredient(ItemID.Gel, 50); + r.AddIngredient(ItemID.GreaterHealingPotion); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.AdhesiveBandage); + r.AddRecipe(); + + // Bezoar (poison) + r = GetNewRecipe(); + r.AddIngredient(ItemID.Stinger, 15); + r.AddIngredient(null, "MurkyPaste"); + r.AddTile(TileID.Anvils); + r.SetResult(ItemID.Bezoar); + r.AddRecipe(); + + // Nazar (curse) + r = GetNewRecipe(); + r.AddIngredient(ItemID.SoulofNight, 20); + r.AddIngredient(ItemID.Lens, 5); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.Nazar); + r.AddRecipe(); + + // Vitamins (weakness) + r = GetNewRecipe(); + r.AddIngredient(ItemID.BottledWater); + r.AddIngredient(ItemID.Waterleaf, 5); + r.AddIngredient(ItemID.Blinkroot, 5); + r.AddIngredient(ItemID.Daybloom, 5); + r.AddIngredient(null, "BeetleJuice", 3); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.Vitamins); + r.AddRecipe(); + + // Blindfold (darkness) + r = GetNewRecipe(); + r.AddIngredient(ItemID.Silk, 30); + r.AddIngredient(ItemID.SoulofNight, 5); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.Blindfold); + r.AddRecipe(); + + // Trifold Map (confusion) + r = GetNewRecipe(); + r.AddIngredient(ItemID.Silk, 20); + r.AddIngredient(ItemID.SoulofLight, 3); + r.AddIngredient(ItemID.SoulofNight, 3); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.TrifoldMap); + r.AddRecipe(); + + // Fast Clock (slow) + r = GetNewRecipe(); + r.AddIngredient(ItemID.Timer1Second); + r.AddIngredient(ItemID.PixieDust, 15); + r.AddIngredient(ItemID.SoulofLight, 5); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.FastClock); + r.AddRecipe(); + + // Megaphone (silence) + r = GetNewRecipe(); + r.AddIngredient(ItemID.Wire, 10); + r.AddIngredient(ItemID.HallowedBar, 5); + r.AddIngredient(ItemID.Ruby, 3); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.Megaphone); + r.AddRecipe(); + } + #endregion + + #region HardmodeEquipment + // Alternate recipes for vanilla Hardmode equipment + private static void AddAlternateHardmodeRecipes() + { + // Avenger Emblem made with Rogue Emblem + ModRecipe r = GetNewRecipe(); + r.AddIngredient(null, "RogueEmblem"); + r.AddIngredient(ItemID.SoulofMight, 5); + r.AddIngredient(ItemID.SoulofSight, 5); + r.AddIngredient(ItemID.SoulofFright, 5); + r.AddTile(TileID.TinkerersWorkbench); + r.SetResult(ItemID.AvengerEmblem); + r.AddRecipe(); + + // Celestial Magnet + r = GetNewRecipe(); + r.AddIngredient(ItemID.FallenStar, 20); + r.AddIngredient(ItemID.SoulofMight, 10); + r.AddIngredient(ItemID.SoulofLight, 5); + r.AddIngredient(ItemID.SoulofNight, 5); + r.AddIngredient(null, "CryoBar", 3); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.CelestialMagnet); + r.AddRecipe(); + + // Frozen Turtle Shell + r = GetNewRecipe(); + r.AddIngredient(ItemID.TurtleShell, 3); + r.AddIngredient(null, "EssenceofEleum", 9); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.FrozenTurtleShell); + r.AddRecipe(); + + // Frost Helmet w/ Frigid Bars + r = GetNewRecipe(); + r.AddIngredient(null, "CryoBar", 6); + r.AddIngredient(ItemID.FrostCore); + r.AddTile(TileID.IceMachine); + r.SetResult(ItemID.FrostHelmet); + r.AddRecipe(); + + // Frost Breastplate w/ Frigid Bars + r = GetNewRecipe(); + r.AddIngredient(null, "CryoBar", 10); + r.AddIngredient(ItemID.FrostCore); + r.AddTile(TileID.IceMachine); + r.SetResult(ItemID.FrostBreastplate); + r.AddRecipe(); + + // Frost Leggings w/ Frigid Bars + r = GetNewRecipe(); + r.AddIngredient(null, "CryoBar", 8); + r.AddIngredient(ItemID.FrostCore); + r.AddTile(TileID.IceMachine); + r.SetResult(ItemID.FrostLeggings); + r.AddRecipe(); + + // Terra Blade w/ True Bloody Edge + r = GetNewRecipe(); + r.AddIngredient(null, "TrueBloodyEdge"); + r.AddIngredient(ItemID.TrueExcalibur); + r.AddIngredient(null, "LivingShard", 7); + r.AddTile(TileID.MythrilAnvil); + r.SetResult(ItemID.TerraBlade); + r.AddRecipe(); + } + #endregion + + public static void AddRecipeGroups() + { + RecipeGroup group = new RecipeGroup(() => Lang.misc[37] + (" Silt"), new int[] + { + ItemID.SiltBlock, + ItemID.SlushBlock + }); + RecipeGroup.RegisterGroup("SiltGroup", group); + + group = new RecipeGroup(() => Lang.misc[37] + (" Lunar Pickaxe"), new int[] + { + ItemID.SolarFlarePickaxe, + ItemID.VortexPickaxe, + ItemID.NebulaPickaxe, + ItemID.StardustPickaxe + }); + RecipeGroup.RegisterGroup("LunarPickaxe", group); + + group = new RecipeGroup(() => Lang.misc[37] + (" Lunar Hamaxe"), new int[] + { + ItemID.LunarHamaxeSolar, + ItemID.LunarHamaxeVortex, + ItemID.LunarHamaxeNebula, + ItemID.LunarHamaxeStardust + }); + RecipeGroup.RegisterGroup("LunarHamaxe", group); + + group = new RecipeGroup(() => Lang.misc[37] + (" Wings"), new int[] + { + ItemID.DemonWings, + ItemID.AngelWings, + ItemID.RedsWings, + ItemID.ButterflyWings, + ItemID.FairyWings, + ItemID.HarpyWings, + ItemID.BoneWings, + ItemID.FlameWings, + ItemID.FrozenWings, + ItemID.GhostWings, + ItemID.SteampunkWings, + ItemID.LeafWings, + ItemID.BatWings, + ItemID.BeeWings, + ItemID.DTownsWings, + ItemID.WillsWings, + ItemID.CrownosWings, + ItemID.CenxsWings, + ItemID.TatteredFairyWings, + ItemID.SpookyWings, + ItemID.Hoverboard, + ItemID.FestiveWings, + ItemID.BeetleWings, + ItemID.FinWings, + ItemID.FishronWings, + ItemID.MothronWings, + ItemID.WingsSolar, + ItemID.WingsVortex, + ItemID.WingsNebula, + ItemID.WingsStardust, + ItemID.Yoraiz0rWings, + ItemID.JimsWings, + ItemID.SkiphsWings, + ItemID.LokisWings, + ItemID.BetsyWings, + ItemID.ArkhalisWings, + ItemID.LeinforsWings, + CalamityMod.Instance.ItemType("SkylineWings"), + CalamityMod.Instance.ItemType("StarlightWings"), + CalamityMod.Instance.ItemType("AureateWings"), + CalamityMod.Instance.ItemType("DiscordianWings"), + CalamityMod.Instance.ItemType("TarragonWings"), + CalamityMod.Instance.ItemType("XerocWings") + }); + RecipeGroup.RegisterGroup("WingsGroup", group); + } + } +} diff --git a/CalamityWorld.cs b/CalamityWorld.cs index ab37f130d1..0f90a02f33 100644 --- a/CalamityWorld.cs +++ b/CalamityWorld.cs @@ -16,219 +16,157 @@ using Terraria.GameContent.Events; using Terraria.ModLoader.IO; using CalamityMod.Tiles; using CalamityMod.NPCs; +using CalamityMod.World; using CalamityMod.World.Planets; namespace CalamityMod { public class CalamityWorld : ModWorld { - #region InstanceVars + #region InstanceVars + //private const int ExpandWorldBy = 200; - #region NormalVars - public static int DoGSecondStageCountdown = 0; + public static int DoGSecondStageCountdown = 0; - public static bool bossRushActive = false; + private const int saveVersion = 0; - public static bool deactivateStupidFuckingBullshit = false; + //Boss Rush + public static bool bossRushActive = false; //Whether Boss Rush is active or not + public static bool deactivateStupidFuckingBullshit = false; //Force Boss Rush to inactive + public static int bossRushStage = 0; //Boss Rush Stage + public static int bossRushSpawnCountdown = 180; //Delay before another Boss Rush boss can spawn - public static int bossRushStage = 0; + //Death Mode natural boss spawns + public static int bossSpawnCountdown = 0; //Death Mode natural boss spawn countdown + public static int bossType = 0; //Death Mmode natural boss spawn type - public static int bossRushSpawnCountdown = 180; + //Modes + public static bool demonMode = false; //Spawn rate boost + public static bool onionMode = false; //Extra accessory from Moon Lord + public static bool revenge = false; //Revengeance Mode + public static bool death = false; //Death Mode + public static bool defiled = false; //Defiled Mode + public static bool armageddon = false; //Armageddon Mode + public static bool ironHeart = false; //Iron Heart Mode - public static int bossSpawnCountdown = 0; + //Evil Islands + private static int fehX = 0; + private static int fehY = 0; - public static int bossType = 0; + //Brimstone Crag + private static int fuhX = 0; + private static int fuhY = 0; + public static int calamityTiles = 0; - private const int ExpandWorldBy = 200; + //Abyss & Sulphur + private static int numAbyssIslands = 0; + private static int[] AbyssIslandX = new int[20]; + private static int[] AbyssIslandY = new int[20]; + private static int[] AbyssItemArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; + public static int sulphurTiles = 0; + public static int abyssTiles = 0; + public static bool abyssSide = false; + public static int abyssChasmBottom = 0; - private const int saveVersion = 0; - - private static int fehX = 0; - - private static int fehY = 0; - - private static int fuhX = 0; - - private static int fuhY = 0; - - private static int numAbyssIslands = 0; - - private static int[] AbyssIslandX = new int[20]; - - private static int[] AbyssIslandY = new int[20]; - - private static int[] AbyssItemArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; - - private static bool genIcePyramid = true; - - private static int[] SChestX = new int[10]; - - private static int[] SChestY = new int[10]; - - private static bool genHellHut = true; - - private static bool genSandHut = true; - - private static bool genEvilHut = true; - - private static bool genPureHut = true; //forest - - private static bool genIceHut = true; - - private static bool genMushroomHut = true; - - private static bool genGraniteHut = true; - - private static bool genMarbleHut = true; - - private static bool genSwordHut = true; - - private static bool genAbyssHut = true; - - public static int calamityTiles = 0; - + //Astral public static int astralTiles = 0; - - public static int seaTiles = 0; - - public static int sulphurTiles = 0; - - public static int abyssTiles = 0; - - public static bool abyssSide = false; - - public static bool spring = false; - - public static bool summer = false; - - public static bool fall = false; - - public static bool winter = false; - - public static bool downedDesertScourge = false; - - public static bool downedAquaticScourge = false; - - public static bool downedHiveMind = false; - - public static bool downedPerforator = false; - - public static bool downedSlimeGod = false; - - public static bool downedCryogen = false; - - public static bool downedBrimstoneElemental = false; - - public static bool downedCalamitas = false; - - public static bool downedLeviathan = false; - - public static bool downedDoG = false; - - public static bool downedPlaguebringer = false; - - public static bool downedYharon = false; - - public static bool buffedEclipse = false; - - public static bool downedProvidence = false; - - public static bool downedGuardians = false; - - public static bool downedSentinel1 = false; - - public static bool downedSentinel2 = false; - - public static bool downedSentinel3 = false; - - public static bool downedSCal = false; - - public static bool downedBumble = false; - - public static bool downedCrabulon = false; - - public static bool downedBetsy = false; - - public static bool downedScavenger = false; - - public static bool downedWhar = false; //boss 2 - - public static bool downedSkullHead = false; //boss 3 - - public static bool downedUgly = false; //Wall - - public static bool downedSkeletor = false; //Skele of tron Prime - - public static bool downedPlantThing = false; //planter - - public static bool downedGolemBaby = false; //Baby - - public static bool downedMoonDude = false; //Moon guy - - public static bool downedBossAny = false; //Any boss - - public static bool spawnedHardBoss = false; //Hardmode boss spawned - - public static bool demonMode = false; - - public static bool onionMode = false; - - public static bool revenge = false; - - public static bool death = false; - - public static bool defiled = false; - - public static bool armageddon = false; - - public static bool downedStarGod = false; - - public static bool downedAstrageldon = false; - - public static bool spawnAstralMeteor = false; - + public static bool spawnAstralMeteor = false; public static bool spawnAstralMeteor2 = false; - public static bool spawnAstralMeteor3 = false; - + + //Sunken Sea + public static int sunkenSeaTiles = 0; + public static Rectangle SunkenSeaLocation = Rectangle.Empty; + + //Ice Tomb + private static bool genIcePyramid = true; + + //Shrines + private static int[] SChestX = new int[10]; + private static int[] SChestY = new int[10]; + private static bool genHellHut = true; + private static bool genSandHut = true; + private static bool genEvilHut = true; + private static bool genPureHut = true; //forest + private static bool genIceHut = true; + private static bool genMushroomHut = true; + private static bool genGraniteHut = true; + private static bool genMarbleHut = true; + private static bool genSwordHut = true; + private static bool genAbyssHut = true; + + #region Downed Bools + public static bool downedBossAny = false; //Any boss + public static bool downedDesertScourge = false; + public static bool downedCrabulon = false; + public static bool downedHiveMind = false; + public static bool downedPerforator = false; + public static bool downedSlimeGod = false; + public static bool spawnedHardBoss = false; //Hardmode boss spawned + public static bool downedCryogen = false; + public static bool downedAquaticScourge = false; + public static bool downedBrimstoneElemental = false; + public static bool downedCalamitas = false; + public static bool downedLeviathan = false; + public static bool downedAstrageldon = false; + public static bool downedStarGod = false; + public static bool downedPlaguebringer = false; + public static bool downedScavenger = false; + public static bool downedOldDuke = false; + public static bool downedGuardians = false; + public static bool downedProvidence = false; + public static bool downedSentinel1 = false; + public static bool downedSentinel2 = false; + public static bool downedSentinel3 = false; public static bool downedPolterghast = false; + public static bool downedDoG = false; + public static bool downedBumble = false; + public static bool buffedEclipse = false; + public static bool downedBuffedMothron = false; + public static bool downedYharon = false; + public static bool downedSCal = false; + public static bool downedLORDE = false; + public static bool downedCLAM = false; - public static bool downedLORDE = false; + //Vanilla + public static bool downedWhar = false; //BoC or EoW + public static bool downedSkullHead = false; //Skeletron + public static bool downedUgly = false; //Wall of Flesh + public static bool downedSkeletor = false; //Skeletron Prime + public static bool downedPlantThing = false; //Plantera + public static bool downedGolemBaby = false; //Golem + public static bool downedMoonDude = false; //Moon Lord + public static bool downedBetsy = false; //Betsy + #endregion - public static bool downedBuffedMothron = false; + #endregion - public static bool downedOldDuke = false; - - public static bool ironHeart = false; - #endregion - - #endregion - - #region Initialize - public override void Initialize() + #region Initialize + public override void Initialize() { - NPC.LunarShieldPowerExpert = 100; - bossRushStage = 0; - DoGSecondStageCountdown = 0; - CalamityGlobalNPC.holyBoss = -1; - CalamityGlobalNPC.doughnutBoss = -1; - CalamityGlobalNPC.voidBoss = -1; - CalamityGlobalNPC.energyFlame = -1; - CalamityGlobalNPC.hiveMind = -1; - CalamityGlobalNPC.hiveMind2 = -1; - CalamityGlobalNPC.scavenger = -1; - CalamityGlobalNPC.DoGHead = -1; - CalamityGlobalNPC.ghostBoss = -1; - CalamityGlobalNPC.laserEye = -1; - CalamityGlobalNPC.fireEye = -1; - CalamityGlobalNPC.brimstoneElemental = -1; - bossRushActive = false; - bossRushSpawnCountdown = 180; - bossSpawnCountdown = 0; - bossType = 0; - abyssSide = false; - downedDesertScourge = false; - downedAquaticScourge = false; + NPC.LunarShieldPowerExpert = 100; + bossRushStage = 0; + DoGSecondStageCountdown = 0; + CalamityGlobalNPC.holyBoss = -1; + CalamityGlobalNPC.doughnutBoss = -1; + CalamityGlobalNPC.voidBoss = -1; + CalamityGlobalNPC.energyFlame = -1; + CalamityGlobalNPC.hiveMind = -1; + CalamityGlobalNPC.hiveMind2 = -1; + CalamityGlobalNPC.scavenger = -1; + CalamityGlobalNPC.DoGHead = -1; + CalamityGlobalNPC.ghostBoss = -1; + CalamityGlobalNPC.laserEye = -1; + CalamityGlobalNPC.fireEye = -1; + CalamityGlobalNPC.brimstoneElemental = -1; + bossRushActive = false; + bossRushSpawnCountdown = 180; + bossSpawnCountdown = 0; + bossType = 0; + abyssChasmBottom = 0; + abyssSide = false; + downedDesertScourge = false; + downedAquaticScourge = false; downedHiveMind = false; downedPerforator = false; downedSlimeGod = false; @@ -244,8 +182,9 @@ namespace CalamityMod downedSentinel2 = false; downedSentinel3 = false; downedYharon = false; - buffedEclipse = false; + buffedEclipse = false; downedSCal = false; + downedCLAM = false; downedBumble = false; downedCrabulon = false; downedBetsy = false; @@ -263,28 +202,28 @@ namespace CalamityMod onionMode = false; revenge = false; downedStarGod = false; - downedAstrageldon = false; + downedAstrageldon = false; spawnAstralMeteor = false; spawnAstralMeteor2 = false; spawnAstralMeteor3 = false; downedPolterghast = false; - downedLORDE = false; - downedBuffedMothron = false; - downedOldDuke = false; - death = false; - defiled = false; - armageddon = false; - ironHeart = false; - } - #endregion + downedLORDE = false; + downedBuffedMothron = false; + downedOldDuke = false; + death = false; + defiled = false; + armageddon = false; + ironHeart = false; + } + #endregion - #region Save - public override TagCompound Save() + #region Save + public override TagCompound Save() { var downed = new List(); if (downedDesertScourge) downed.Add("desertScourge"); - if (downedAquaticScourge) downed.Add("aquaticScourge"); - if (downedHiveMind) downed.Add("hiveMind"); + if (downedAquaticScourge) downed.Add("aquaticScourge"); + if (downedHiveMind) downed.Add("hiveMind"); if (downedPerforator) downed.Add("perforator"); if (downedSlimeGod) downed.Add("slimeGod"); if (downedCryogen) downed.Add("cryogen"); @@ -299,7 +238,7 @@ namespace CalamityMod if (downedSentinel2) downed.Add("stormWeaver"); if (downedSentinel3) downed.Add("signus"); if (downedYharon) downed.Add("yharon"); - if (buffedEclipse) downed.Add("eclipse"); + if (buffedEclipse) downed.Add("eclipse"); if (downedSCal) downed.Add("supremeCalamitas"); if (downedBumble) downed.Add("bumblebirb"); if (downedCrabulon) downed.Add("crabulon"); @@ -317,38 +256,42 @@ namespace CalamityMod if (onionMode) downed.Add("onionMode"); if (revenge) downed.Add("revenge"); if (downedStarGod) downed.Add("starGod"); - if (downedAstrageldon) downed.Add("astrageldon"); + if (downedAstrageldon) downed.Add("astrageldon"); if (spawnAstralMeteor) downed.Add("astralMeteor"); if (spawnAstralMeteor2) downed.Add("astralMeteor2"); if (spawnAstralMeteor3) downed.Add("astralMeteor3"); if (spawnedHardBoss) downed.Add("hardBoss"); if (downedPolterghast) downed.Add("polterghast"); - if (downedLORDE) downed.Add("lorde"); - if (downedBuffedMothron) downed.Add("moth"); - if (downedOldDuke) downed.Add("oldDuke"); - if (death) downed.Add("death"); - if (defiled) downed.Add("defiled"); - if (armageddon) downed.Add("armageddon"); - if (ironHeart) downed.Add("ironHeart"); - if (abyssSide) downed.Add("abyssSide"); - if (bossRushActive) downed.Add("bossRushActive"); + if (downedLORDE) downed.Add("lorde"); + if (downedBuffedMothron) downed.Add("moth"); + if (downedOldDuke) downed.Add("oldDuke"); + if (death) downed.Add("death"); + if (defiled) downed.Add("defiled"); + if (armageddon) downed.Add("armageddon"); + if (ironHeart) downed.Add("ironHeart"); + if (abyssSide) downed.Add("abyssSide"); + if (bossRushActive) downed.Add("bossRushActive"); + if (downedCLAM) downed.Add("clam"); return new TagCompound { { "downed", downed + }, + { + "abyssChasmBottom", abyssChasmBottom } }; } - #endregion + #endregion - #region Load - public override void Load(TagCompound tag) + #region Load + public override void Load(TagCompound tag) { var downed = tag.GetList("downed"); downedDesertScourge = downed.Contains("desertScourge"); - downedAquaticScourge = downed.Contains("aquaticScourge"); - downedHiveMind = downed.Contains("hiveMind"); + downedAquaticScourge = downed.Contains("aquaticScourge"); + downedHiveMind = downed.Contains("hiveMind"); downedPerforator = downed.Contains("perforator"); downedSlimeGod = downed.Contains("slimeGod"); downedCryogen = downed.Contains("cryogen"); @@ -363,7 +306,7 @@ namespace CalamityMod downedSentinel2 = downed.Contains("stormWeaver"); downedSentinel3 = downed.Contains("signus"); downedYharon = downed.Contains("yharon"); - buffedEclipse = downed.Contains("eclipse"); + buffedEclipse = downed.Contains("eclipse"); downedSCal = downed.Contains("supremeCalamitas"); downedBumble = downed.Contains("bumblebirb"); downedCrabulon = downed.Contains("crabulon"); @@ -381,29 +324,34 @@ namespace CalamityMod onionMode = downed.Contains("onionMode"); revenge = downed.Contains("revenge"); downedStarGod = downed.Contains("starGod"); - downedAstrageldon = downed.Contains("astrageldon"); + downedAstrageldon = downed.Contains("astrageldon"); spawnAstralMeteor = downed.Contains("astralMeteor"); spawnAstralMeteor2 = downed.Contains("astralMeteor2"); spawnAstralMeteor3 = downed.Contains("astralMeteor3"); spawnedHardBoss = downed.Contains("hardBoss"); downedPolterghast = downed.Contains("polterghast"); - downedLORDE = downed.Contains("lorde"); - downedBuffedMothron = downed.Contains("moth"); - downedOldDuke = downed.Contains("oldDuke"); - death = downed.Contains("death"); - defiled = downed.Contains("defiled"); - armageddon = downed.Contains("armageddon"); - ironHeart = downed.Contains("ironHeart"); - abyssSide = downed.Contains("abyssSide"); - bossRushActive = downed.Contains("bossRushActive"); - } - #endregion + downedLORDE = downed.Contains("lorde"); + downedBuffedMothron = downed.Contains("moth"); + downedOldDuke = downed.Contains("oldDuke"); + death = downed.Contains("death"); + defiled = downed.Contains("defiled"); + armageddon = downed.Contains("armageddon"); + ironHeart = downed.Contains("ironHeart"); + abyssSide = downed.Contains("abyssSide"); + bossRushActive = downed.Contains("bossRushActive"); + downedCLAM = downed.Contains("clam"); - #region LoadLegacy - public override void LoadLegacy(BinaryReader reader) + abyssChasmBottom = tag.GetInt("abyssChasmBottom"); + } + #endregion + + #region LoadLegacy + public override void LoadLegacy(BinaryReader reader) { int loadVersion = reader.ReadInt32(); - if (loadVersion == 0) + abyssChasmBottom = reader.ReadInt32(); + + if (loadVersion == 0) { BitsByte flags = reader.ReadByte(); downedDesertScourge = flags[0]; @@ -414,7 +362,7 @@ namespace CalamityMod downedBrimstoneElemental = flags[5]; downedCalamitas = flags[6]; downedLeviathan = flags[7]; - + BitsByte flags2 = reader.ReadByte(); downedDoG = flags2[0]; downedPlaguebringer = flags2[1]; @@ -424,7 +372,7 @@ namespace CalamityMod downedSentinel2 = flags2[5]; downedSentinel3 = flags2[6]; downedYharon = flags2[7]; - + BitsByte flags3 = reader.ReadByte(); downedSCal = flags3[0]; downedBumble = flags3[1]; @@ -434,7 +382,7 @@ namespace CalamityMod downedWhar = flags3[5]; downedSkullHead = flags3[6]; downedUgly = flags3[7]; - + BitsByte flags4 = reader.ReadByte(); downedSkeletor = flags4[0]; downedPlantThing = flags4[1]; @@ -444,7 +392,7 @@ namespace CalamityMod demonMode = flags4[5]; onionMode = flags4[6]; revenge = flags4[7]; - + BitsByte flags5 = reader.ReadByte(); downedStarGod = flags5[0]; spawnAstralMeteor = flags5[1]; @@ -452,34 +400,35 @@ namespace CalamityMod spawnAstralMeteor3 = flags5[3]; spawnedHardBoss = flags5[4]; downedPolterghast = flags5[5]; - death = flags5[6]; - downedLORDE = flags5[7]; + death = flags5[6]; + downedLORDE = flags5[7]; - BitsByte flags6 = reader.ReadByte(); - abyssSide = flags6[0]; - downedAquaticScourge = flags6[1]; - downedAstrageldon = flags6[2]; - buffedEclipse = flags6[3]; - armageddon = flags6[4]; - defiled = flags6[5]; - downedBuffedMothron = flags6[6]; - ironHeart = flags6[7]; + BitsByte flags6 = reader.ReadByte(); + abyssSide = flags6[0]; + downedAquaticScourge = flags6[1]; + downedAstrageldon = flags6[2]; + buffedEclipse = flags6[3]; + armageddon = flags6[4]; + defiled = flags6[5]; + downedBuffedMothron = flags6[6]; + ironHeart = flags6[7]; - BitsByte flags7 = reader.ReadByte(); - bossRushActive = flags7[0]; - downedOldDuke = flags7[1]; - } + BitsByte flags7 = reader.ReadByte(); + bossRushActive = flags7[0]; + downedOldDuke = flags7[1]; + downedCLAM = flags7[2]; + } else { ErrorLogger.Log("CalamityMod: Unknown loadVersion: " + loadVersion); } } - #endregion + #endregion - #region NetSend - public override void NetSend(BinaryWriter writer) + #region NetSend + public override void NetSend(BinaryWriter writer) { - BitsByte flags = new BitsByte(); + BitsByte flags = new BitsByte(); flags[0] = downedDesertScourge; flags[1] = downedHiveMind; flags[2] = downedPerforator; @@ -488,7 +437,7 @@ namespace CalamityMod flags[5] = downedBrimstoneElemental; flags[6] = downedCalamitas; flags[7] = downedLeviathan; - + BitsByte flags2 = new BitsByte(); flags2[0] = downedDoG; flags2[1] = downedPlaguebringer; @@ -498,7 +447,7 @@ namespace CalamityMod flags2[5] = downedSentinel2; flags2[6] = downedSentinel3; flags2[7] = downedYharon; - + BitsByte flags3 = new BitsByte(); flags3[0] = downedSCal; flags3[1] = downedBumble; @@ -508,7 +457,7 @@ namespace CalamityMod flags3[5] = downedWhar; flags3[6] = downedSkullHead; flags3[7] = downedUgly; - + BitsByte flags4 = new BitsByte(); flags4[0] = downedSkeletor; flags4[1] = downedPlantThing; @@ -518,7 +467,7 @@ namespace CalamityMod flags4[5] = demonMode; flags4[6] = onionMode; flags4[7] = revenge; - + BitsByte flags5 = new BitsByte(); flags5[0] = downedStarGod; flags5[1] = spawnAstralMeteor; @@ -526,37 +475,39 @@ namespace CalamityMod flags5[3] = spawnAstralMeteor3; flags5[4] = spawnedHardBoss; flags5[5] = downedPolterghast; - flags5[6] = death; - flags5[7] = downedLORDE; + flags5[6] = death; + flags5[7] = downedLORDE; - BitsByte flags6 = new BitsByte(); - flags6[0] = abyssSide; - flags6[1] = downedAquaticScourge; - flags6[2] = downedAstrageldon; - flags6[3] = buffedEclipse; - flags6[4] = armageddon; - flags6[5] = defiled; - flags6[6] = downedBuffedMothron; - flags6[7] = ironHeart; + BitsByte flags6 = new BitsByte(); + flags6[0] = abyssSide; + flags6[1] = downedAquaticScourge; + flags6[2] = downedAstrageldon; + flags6[3] = buffedEclipse; + flags6[4] = armageddon; + flags6[5] = defiled; + flags6[6] = downedBuffedMothron; + flags6[7] = ironHeart; - BitsByte flags7 = new BitsByte(); - flags7[0] = bossRushActive; - flags7[1] = downedOldDuke; + BitsByte flags7 = new BitsByte(); + flags7[0] = bossRushActive; + flags7[1] = downedOldDuke; + flags7[2] = downedCLAM; - writer.Write(flags); + writer.Write(flags); writer.Write(flags2); writer.Write(flags3); writer.Write(flags4); writer.Write(flags5); - writer.Write(flags6); - writer.Write(flags7); - } - #endregion + writer.Write(flags6); + writer.Write(flags7); + writer.Write(abyssChasmBottom); + } + #endregion - #region NetReceive - public override void NetReceive(BinaryReader reader) + #region NetReceive + public override void NetReceive(BinaryReader reader) { - BitsByte flags = reader.ReadByte(); + BitsByte flags = reader.ReadByte(); downedDesertScourge = flags[0]; downedHiveMind = flags[1]; downedPerforator = flags[2]; @@ -565,7 +516,7 @@ namespace CalamityMod downedBrimstoneElemental = flags[5]; downedCalamitas = flags[6]; downedLeviathan = flags[7]; - + BitsByte flags2 = reader.ReadByte(); downedDoG = flags2[0]; downedPlaguebringer = flags2[1]; @@ -575,7 +526,7 @@ namespace CalamityMod downedSentinel2 = flags2[5]; downedSentinel3 = flags2[6]; downedYharon = flags2[7]; - + BitsByte flags3 = reader.ReadByte(); downedSCal = flags3[0]; downedBumble = flags3[1]; @@ -585,7 +536,7 @@ namespace CalamityMod downedWhar = flags3[5]; downedSkullHead = flags3[6]; downedUgly = flags3[7]; - + BitsByte flags4 = reader.ReadByte(); downedSkeletor = flags4[0]; downedPlantThing = flags4[1]; @@ -595,7 +546,7 @@ namespace CalamityMod demonMode = flags4[5]; onionMode = flags4[6]; revenge = flags4[7]; - + BitsByte flags5 = reader.ReadByte(); downedStarGod = flags5[0]; spawnAstralMeteor = flags5[1]; @@ -603,1043 +554,1053 @@ namespace CalamityMod spawnAstralMeteor3 = flags5[3]; spawnedHardBoss = flags5[4]; downedPolterghast = flags5[5]; - death = flags5[6]; - downedLORDE = flags5[7]; + death = flags5[6]; + downedLORDE = flags5[7]; - BitsByte flags6 = reader.ReadByte(); - abyssSide = flags6[0]; - downedAquaticScourge = flags6[1]; - downedAstrageldon = flags6[2]; - buffedEclipse = flags6[3]; - armageddon = flags6[4]; - defiled = flags6[5]; - downedBuffedMothron = flags6[6]; - ironHeart = flags6[7]; + BitsByte flags6 = reader.ReadByte(); + abyssSide = flags6[0]; + downedAquaticScourge = flags6[1]; + downedAstrageldon = flags6[2]; + buffedEclipse = flags6[3]; + armageddon = flags6[4]; + defiled = flags6[5]; + downedBuffedMothron = flags6[6]; + ironHeart = flags6[7]; - BitsByte flags7 = reader.ReadByte(); - bossRushActive = flags7[0]; - downedOldDuke = flags7[1]; - } - #endregion + BitsByte flags7 = reader.ReadByte(); + bossRushActive = flags7[0]; + downedOldDuke = flags7[1]; + downedCLAM = flags7[2]; - #region Tiles - public override void ResetNearbyTileEffects() + abyssChasmBottom = reader.ReadInt32(); + } + #endregion + + #region Tiles + public override void ResetNearbyTileEffects() { calamityTiles = 0; astralTiles = 0; - seaTiles = 0; - sulphurTiles = 0; - abyssTiles = 0; + sunkenSeaTiles = 0; + sulphurTiles = 0; + abyssTiles = 0; } - + public override void TileCountsAvailable(int[] tileCounts) { calamityTiles = tileCounts[mod.TileType("CharredOre")] + tileCounts[mod.TileType("BrimstoneSlag")]; - seaTiles = tileCounts[mod.TileType("EutrophicSand")] + tileCounts[mod.TileType("SeaPrism")]; - abyssTiles = tileCounts[mod.TileType("AbyssGravel")]; - sulphurTiles = tileCounts[mod.TileType("SulphurousSand")]; + sunkenSeaTiles = tileCounts[mod.TileType("EutrophicSand")] + tileCounts[mod.TileType("Navystone")] + tileCounts[mod.TileType("SeaPrism")]; + abyssTiles = tileCounts[mod.TileType("AbyssGravel")]; + sulphurTiles = tileCounts[mod.TileType("SulphurousSand")]; - #region Astral Stuff - int astralDesertTiles = tileCounts[mod.TileType("AstralSand")] + tileCounts[mod.TileType("AstralSandstone")] + tileCounts[mod.TileType("HardenedAstralSand")]; - int astralSnowTiles = tileCounts[mod.TileType("AstralIce")]; - - Main.sandTiles += astralDesertTiles; - Main.snowTiles += astralSnowTiles; - - astralTiles = astralDesertTiles + astralSnowTiles + tileCounts[mod.TileType("AstralDirt")] + tileCounts[mod.TileType("AstralStone")] + tileCounts[mod.TileType("AstralGrass")] + tileCounts[mod.TileType("AstralOre")]; - #endregion - } - #endregion + #region Astral Stuff + int astralDesertTiles = tileCounts[mod.TileType("AstralSand")] + tileCounts[mod.TileType("AstralSandstone")] + tileCounts[mod.TileType("HardenedAstralSand")]; + int astralSnowTiles = tileCounts[mod.TileType("AstralIce")]; - #region PreWorldGen - public override void PreWorldGen() - { - CalamityWorld.numAbyssIslands = 0; - CalamityWorld.genIcePyramid = true; - CalamityWorld.genHellHut = true; - CalamityWorld.genSandHut = true; - CalamityWorld.genEvilHut = true; - CalamityWorld.genPureHut = true; - CalamityWorld.genIceHut = true; - CalamityWorld.genMushroomHut = true; - CalamityWorld.genGraniteHut = true; - CalamityWorld.genMarbleHut = true; - } - #endregion + Main.sandTiles += astralDesertTiles; + Main.snowTiles += astralSnowTiles; - #region ModifyWorldGenTasks - public override void ModifyWorldGenTasks(List tasks, ref float totalWeight) + astralTiles = astralDesertTiles + astralSnowTiles + tileCounts[mod.TileType("AstralDirt")] + tileCounts[mod.TileType("AstralStone")] + tileCounts[mod.TileType("AstralGrass")] + tileCounts[mod.TileType("AstralOre")]; + #endregion + } + #endregion + + #region PreWorldGen + public override void PreWorldGen() { - int ShiniesIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Shinies")); + CalamityWorld.numAbyssIslands = 0; + CalamityWorld.genIcePyramid = true; + CalamityWorld.genHellHut = true; + CalamityWorld.genSandHut = true; + CalamityWorld.genEvilHut = true; + CalamityWorld.genPureHut = true; + CalamityWorld.genIceHut = true; + CalamityWorld.genMushroomHut = true; + CalamityWorld.genGraniteHut = true; + CalamityWorld.genMarbleHut = true; + CalamityWorld.genSwordHut = true; + CalamityWorld.genAbyssHut = true; + } + #endregion + + #region ModifyWorldGenTasks + public override void ModifyWorldGenTasks(List tasks, ref float totalWeight) + { + int ShiniesIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Shinies")); if (ShiniesIndex != -1) { tasks.Insert(ShiniesIndex + 1, new PassLegacy("CalamityOres", delegate (GenerationProgress progress) - { - progress.Message = "Ice Tomb"; - int x = Main.maxTilesX; - int y = Main.maxTilesY; - int genLimit = x / 2; - int generateBack = genLimit - 80; //Small = 2020 - int generateForward = genLimit + 80; //Small = 2180 - #region IceTomb - for (int k = 0; k < (int)((double)(x * y) * 50E-05); k++) - { - int tilesX = WorldGen.genRand.Next(0, generateBack); - int tilesX2 = WorldGen.genRand.Next(generateForward, x); - int tilesY2 = WorldGen.genRand.Next((int)(y * .4f), (int)(y * .5f)); - if ((Main.tile[tilesX, tilesY2].type == 147 || Main.tile[tilesX, tilesY2].type == 161) && CalamityWorld.genIcePyramid) - { - CalamityWorld.genIcePyramid = false; - IcePyramid(tilesX, tilesY2); - } - if ((Main.tile[tilesX2, tilesY2].type == 147 || Main.tile[tilesX2, tilesY2].type == 161) && CalamityWorld.genIcePyramid) - { - CalamityWorld.genIcePyramid = false; - IcePyramid(tilesX2, tilesY2); - } - } - #endregion - #region EvilIslandGen - int xIslandGen = WorldGen.crimson ? - WorldGen.genRand.Next((int)((double)x * 0.1), (int)((double)x * 0.4)) : - WorldGen.genRand.Next((int)((double)x * 0.6), (int)((double)x * 0.9)); - int yIslandGen = WorldGen.genRand.Next(90, 151); - yIslandGen = Math.Min(yIslandGen, (int)WorldGen.worldSurfaceLow - 50); - int tileXLookup = xIslandGen; - if (WorldGen.crimson) - { - while (Main.tile[tileXLookup, yIslandGen].active()) - { - tileXLookup++; - } - } - else - { - while (Main.tile[tileXLookup, yIslandGen].active()) - { - tileXLookup--; - } - } - xIslandGen = tileXLookup; - CalamityWorld.fehX = xIslandGen; - CalamityWorld.fehY = yIslandGen; - EvilIsland(xIslandGen, yIslandGen); - EvilIslandHouse(CalamityWorld.fehX, CalamityWorld.fehY); - #endregion - })); + { + progress.Message = "Ice Tomb"; + int x = Main.maxTilesX; + int y = Main.maxTilesY; + int genLimit = x / 2; + int generateBack = genLimit - 80; //Small = 2020 + int generateForward = genLimit + 80; //Small = 2180 + + #region IceTomb + for (int k = 0; k < (int)((double)(x * y) * 50E-05); k++) + { + int tilesX = WorldGen.genRand.Next(0, generateBack); + int tilesX2 = WorldGen.genRand.Next(generateForward, x); + int tilesY2 = WorldGen.genRand.Next((int)(y * .4f), (int)(y * .5f)); + if ((Main.tile[tilesX, tilesY2].type == TileID.SnowBlock || Main.tile[tilesX, tilesY2].type == TileID.IceBlock) && CalamityWorld.genIcePyramid) + { + CalamityWorld.genIcePyramid = false; + IcePyramid(tilesX, tilesY2); + } + if ((Main.tile[tilesX2, tilesY2].type == TileID.SnowBlock || Main.tile[tilesX2, tilesY2].type == TileID.IceBlock) && CalamityWorld.genIcePyramid) + { + CalamityWorld.genIcePyramid = false; + IcePyramid(tilesX2, tilesY2); + } + } + #endregion + + #region EvilIslandGen + int xIslandGen = WorldGen.crimson ? + WorldGen.genRand.Next((int)((double)x * 0.15), (int)((double)x * 0.2)) : + WorldGen.genRand.Next((int)((double)x * 0.8), (int)((double)x * 0.85)); + int yIslandGen = WorldGen.genRand.Next(90, 151); + yIslandGen = Math.Min(yIslandGen, (int)WorldGen.worldSurfaceLow - 50); + int tileXLookup = xIslandGen; + if (WorldGen.crimson) + { + while (Main.tile[tileXLookup, yIslandGen].active()) + { + tileXLookup++; + } + } + else + { + while (Main.tile[tileXLookup, yIslandGen].active()) + { + tileXLookup--; + } + } + xIslandGen = tileXLookup; + CalamityWorld.fehX = xIslandGen; + CalamityWorld.fehY = yIslandGen; + EvilIsland(xIslandGen, yIslandGen); + EvilIslandHouse(CalamityWorld.fehX, CalamityWorld.fehY); + #endregion + + })); } - int SulphurIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Micro Biomes")); - if (SulphurIndex != -1) - { - tasks.Insert(SulphurIndex + 1, new PassLegacy("Sulphur", delegate (GenerationProgress progress) - { - progress.Message = "Sulphur Beach"; - int x = Main.maxTilesX; - int y = Main.maxTilesY; - int genLimit = x / 2; - if (WorldGen.dungeonX < genLimit) { abyssSide = true; } - int abyssChasmX = (abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); //2100 - 1965 = 135 : 2100 + 1965 = 4065 - if (abyssSide) - { - for (int abyssIndexSand = 0; abyssIndexSand < abyssChasmX + 240; abyssIndexSand++) - { - for (int abyssIndexSand2 = 0; abyssIndexSand2 < y - 200; abyssIndexSand2++) - { - Tile tile = Framing.GetTileSafely(abyssIndexSand, abyssIndexSand2); - if (abyssIndexSand > abyssChasmX + 225) - { - if (tile.active() && - tile.type == 53 && - WorldGen.genRand.Next(4) == 0) - { - tile.type = (ushort)mod.TileType("SulphurousSand"); - } - else if (tile.active() && - tile.type == 323) - { - tile.active(false); - } - } - else if (abyssIndexSand > abyssChasmX + 210) - { - if (tile.active() && - tile.type == 53 && - WorldGen.genRand.Next(2) == 0) - { - tile.type = (ushort)mod.TileType("SulphurousSand"); - } - else if (tile.active() && - tile.type == 323) - { - tile.active(false); - } - } - else - { - if (tile.active() && - tile.type == 53) - { - tile.type = (ushort)mod.TileType("SulphurousSand"); - } - else if (tile.active() && - tile.type == 323) - { - tile.active(false); - } - } - } - } - } - else - { - for (int abyssIndexSand = abyssChasmX - 240; abyssIndexSand < x; abyssIndexSand++) - { - for (int abyssIndexSand2 = 0; abyssIndexSand2 < y - 200; abyssIndexSand2++) - { - Tile tile = Framing.GetTileSafely(abyssIndexSand, abyssIndexSand2); - if (abyssIndexSand < abyssChasmX - 225) - { - if (tile.active() && - tile.type == 53 && - WorldGen.genRand.Next(4) == 0) - { - tile.type = (ushort)mod.TileType("SulphurousSand"); - } - else if (tile.active() && - tile.type == 323) - { - tile.active(false); - } - } - else if (abyssIndexSand < abyssChasmX - 210) - { - if (tile.active() && - tile.type == 53 && - WorldGen.genRand.Next(2) == 0) - { - tile.type = (ushort)mod.TileType("SulphurousSand"); - } - else if (tile.active() && - tile.type == 323) - { - tile.active(false); - } - } - else - { - if (tile.active() && - tile.type == 53) - { - tile.type = (ushort)mod.TileType("SulphurousSand"); - } - else if (tile.active() && - tile.type == 323) - { - tile.active(false); - } - } - } - } - } - })); - } - int CragIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Final Cleanup")); - if (CragIndex != -1) + int dungeonChestIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Dungeon")); + if (dungeonChestIndex != -1) { - tasks.Insert(CragIndex + 1, new PassLegacy("HellCrag", delegate(GenerationProgress progress) + tasks.Insert(dungeonChestIndex + 1, new PassLegacy("Calamity Mod: Biome Chests", GenerateBiomeChests)); + } + int SulphurIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Micro Biomes")); + if (SulphurIndex != -1) + { + tasks.Insert(SulphurIndex + 1, new PassLegacy("Sulphur", delegate (GenerationProgress progress) + { + progress.Message = "Sulphur Beach"; + int x = Main.maxTilesX; + int y = Main.maxTilesY; + int genLimit = x / 2; + + if (WorldGen.dungeonX < genLimit) + abyssSide = true; + + int abyssChasmX = (abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); //2100 - 1965 = 135 : 2100 + 1965 = 4065 + + #region SulphurGen + if (abyssSide) + { + for (int abyssIndexSand = 0; abyssIndexSand < abyssChasmX + 240; abyssIndexSand++) + { + for (int abyssIndexSand2 = 0; abyssIndexSand2 < y - 200; abyssIndexSand2++) + { + Tile tile = Framing.GetTileSafely(abyssIndexSand, abyssIndexSand2); + if (abyssIndexSand > abyssChasmX + 225) + { + if (tile.active() && + tile.type == TileID.Sand && + WorldGen.genRand.Next(4) == 0) + { + tile.type = (ushort)mod.TileType("SulphurousSand"); + } + else if (tile.active() && + tile.type == TileID.PalmTree) + { + tile.active(false); + } + } + else if (abyssIndexSand > abyssChasmX + 210) + { + if (tile.active() && + tile.type == TileID.Sand && + WorldGen.genRand.Next(2) == 0) + { + tile.type = (ushort)mod.TileType("SulphurousSand"); + } + else if (tile.active() && + tile.type == TileID.PalmTree) + { + tile.active(false); + } + } + else + { + if (tile.active() && + tile.type == TileID.Sand) + { + tile.type = (ushort)mod.TileType("SulphurousSand"); + } + else if (tile.active() && + tile.type == TileID.PalmTree) + { + tile.active(false); + } + } + } + } + } + else + { + for (int abyssIndexSand = abyssChasmX - 240; abyssIndexSand < x; abyssIndexSand++) + { + for (int abyssIndexSand2 = 0; abyssIndexSand2 < y - 200; abyssIndexSand2++) + { + Tile tile = Framing.GetTileSafely(abyssIndexSand, abyssIndexSand2); + if (abyssIndexSand < abyssChasmX - 225) + { + if (tile.active() && + tile.type == TileID.Sand && + WorldGen.genRand.Next(4) == 0) + { + tile.type = (ushort)mod.TileType("SulphurousSand"); + } + else if (tile.active() && + tile.type == TileID.PalmTree) + { + tile.active(false); + } + } + else if (abyssIndexSand < abyssChasmX - 210) + { + if (tile.active() && + tile.type == TileID.Sand && + WorldGen.genRand.Next(2) == 0) + { + tile.type = (ushort)mod.TileType("SulphurousSand"); + } + else if (tile.active() && + tile.type == TileID.PalmTree) + { + tile.active(false); + } + } + else + { + if (tile.active() && + tile.type == TileID.Sand) + { + tile.type = (ushort)mod.TileType("SulphurousSand"); + } + else if (tile.active() && + tile.type == TileID.PalmTree) + { + tile.active(false); + } + } + } + } + } + #endregion + + })); + } + int FinalIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Final Cleanup")); + if (FinalIndex != -1) + { + tasks.Insert(FinalIndex + 1, new PassLegacy("HellCrag", delegate (GenerationProgress progress) { progress.Message = "Brimstone Crag, Abyss, and Structures"; - int x = Main.maxTilesX; - int y = Main.maxTilesY; - int genLimit = x / 2; - int generateBack = genLimit - 80; //Small = 2020 - int generateForward = genLimit + 80; //Small = 2180 - int rockLayer = (int)Main.rockLayer; - #region AbyssGen - int abyssChasmSteps = y / 4; - int abyssChasmY = (y - abyssChasmSteps) + 100; // (y / 12) - int abyssChasmX = (abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); //2100 - 1965 = 135 : 2100 + 1965 = 4065 - bool tenebrisSide = true; - if (abyssChasmX < genLimit) { tenebrisSide = false; } - if (abyssSide) - { - for (int abyssIndex = 0; abyssIndex < abyssChasmX + 80; abyssIndex++) //235 - { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) - { - Tile tile = Framing.GetTileSafely(abyssIndex, abyssIndex2); - if (abyssIndex > abyssChasmX + 75) - { - if (WorldGen.genRand.Next(4) == 0) - { - if (tile.active() && - tile.type != 227 && //dye plants - tile.type != 323 && //trees - tile.type != 53 && //sand - tile.type != 21 && //chests - tile.type != 81 && //coral - tile.type != 324 && //seashells and starfish - tile.type != (ushort)mod.TileType("SulphurousSand")) - { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - else if (!tile.active() && - abyssIndex2 > rockLayer) - { - tile.active(true); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - } - } - else if (abyssIndex > abyssChasmX + 70) - { - if (WorldGen.genRand.Next(2) == 0) - { - if (tile.active() && - tile.type != 227 && //dye plants - tile.type != 323 && //trees - tile.type != 53 && //sand - tile.type != 21 && //chests - tile.type != 81 && //coral - tile.type != 324 && //seashells and starfish - tile.type != (ushort)mod.TileType("SulphurousSand")) - { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - else if (!tile.active() && - abyssIndex2 > rockLayer) - { - tile.active(true); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - } - } - else - { - if (tile.active() && - tile.type != 227 && //dye plants - tile.type != 323 && //trees - tile.type != 53 && //sand - tile.type != 21 && //chests - tile.type != 81 && //coral - tile.type != 324 && //seashells and starfish - tile.type != (ushort)mod.TileType("SulphurousSand")) - { - if (abyssIndex2 > (rockLayer + y * 0.262)) - { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); - } - else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) - { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); - } - else - { - tile.type = (ushort)mod.TileType("AbyssGravel"); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - } - } - else if (!tile.active() && - abyssIndex2 > rockLayer) - { - tile.active(true); - if (abyssIndex2 > (rockLayer + y * 0.262)) - { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); - } - else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) - { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); - } - else - { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - } - } - } - } - } - else - { - for (int abyssIndex = abyssChasmX - 80; abyssIndex < x; abyssIndex++) //3965 - { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) - { - Tile tile = Framing.GetTileSafely(abyssIndex, abyssIndex2); - if (abyssIndex < abyssChasmX - 75) - { - if (WorldGen.genRand.Next(4) == 0) - { - if (tile.active() && - tile.type != 227 && //dye plants - tile.type != 323 && //trees - tile.type != 53 && //sand - tile.type != 21 && //chests - tile.type != 81 && //coral - tile.type != 324 && //seashells and starfish - tile.type != (ushort)mod.TileType("SulphurousSand")) - { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - else if (!tile.active() && - abyssIndex2 > rockLayer) - { - tile.active(true); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - } - } - else if (abyssIndex < abyssChasmX - 70) - { - if (WorldGen.genRand.Next(2) == 0) - { - if (tile.active() && - tile.type != 227 && //dye plants - tile.type != 323 && //trees - tile.type != 53 && //sand - tile.type != 21 && //chests - tile.type != 81 && //coral - tile.type != 324 && //seashells and starfish - tile.type != (ushort)mod.TileType("SulphurousSand")) - { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - else if (!tile.active() && - abyssIndex2 > rockLayer) - { - tile.active(true); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - } - } - else - { - if (tile.active() && - tile.type != 227 && //dye plants - tile.type != 323 && //trees - tile.type != 53 && //sand - tile.type != 21 && //chests - tile.type != 81 && //coral - tile.type != 324 && //seashells and starfish - tile.type != (ushort)mod.TileType("SulphurousSand")) - { - if (abyssIndex2 > (rockLayer + y * 0.262)) - { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); - } - else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) - { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); - } - else - { - tile.type = (ushort)mod.TileType("AbyssGravel"); - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - } - } - else if (!tile.active() && - abyssIndex2 > rockLayer) - { - tile.active(true); - if (abyssIndex2 > (rockLayer + y * 0.262)) - { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); - } - else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) - { - tile.type = (ushort)mod.TileType("Voidstone"); - tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); - } - else - { - tile.wall = (ushort)mod.WallType("AbyssGravelWall"); - tile.type = (ushort)mod.TileType("AbyssGravel"); - } - } - } - } - } - } - ChasmGenerator(abyssChasmX, (int)WorldGen.worldSurfaceLow, abyssChasmSteps, true); - int maxAbyssIslands = 11; - if (y > 1500) { maxAbyssIslands = 16; if (y > 2100) { maxAbyssIslands = 20; } } - int islandLocationOffset = 30; - int islandLocationY = rockLayer; - if (CalamityWorld.genAbyssHut) - { - int shrineDepthBoost = 60; - if (y > 1500) { shrineDepthBoost = 120; if (y > 2100) { shrineDepthBoost = 240; } } - CalamityWorld.genAbyssHut = false; - SpecialHut((ushort)mod.TileType("SmoothVoidstone"), (ushort)mod.TileType("Voidstone"), - (ushort)mod.WallType("VoidstoneWallUnsafe"), 9, abyssChasmX, (islandLocationY + (30 * maxAbyssIslands) + shrineDepthBoost)); - } - for (int islands = 0; islands < maxAbyssIslands; islands++) - { - int islandLocationX = abyssChasmX; - int randomIsland = WorldGen.genRand.Next(5); //0 1 2 3 4 - bool hasVoidstone = islandLocationY > (rockLayer + y * 0.143); - CalamityWorld.AbyssIslandY[CalamityWorld.numAbyssIslands] = islandLocationY; - switch (randomIsland) - { - case 0: - AbyssIsland(islandLocationX, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX + 40, islandLocationY + 15, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); - AbyssIsland(islandLocationX - 40, islandLocationY + 15, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); - break; - case 1: - AbyssIsland(islandLocationX + 30, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX, islandLocationY + 15, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); - AbyssIsland(islandLocationX - 40, islandLocationY + 10, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); - islandLocationX += 30; - break; - case 2: - AbyssIsland(islandLocationX - 30, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX + 30, islandLocationY + 10, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); - AbyssIsland(islandLocationX, islandLocationY + 15, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); - islandLocationX -= 30; - break; - case 3: - AbyssIsland(islandLocationX + 25, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX - 5, islandLocationY + 5, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); - AbyssIsland(islandLocationX - 35, islandLocationY + 15, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); - islandLocationX += 25; - break; - case 4: - AbyssIsland(islandLocationX - 25, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX + 5, islandLocationY + 15, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); - AbyssIsland(islandLocationX + 35, islandLocationY + 5, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); - islandLocationX -= 25; - break; - } - CalamityWorld.AbyssIslandX[CalamityWorld.numAbyssIslands] = islandLocationX; - CalamityWorld.numAbyssIslands++; - islandLocationY += islandLocationOffset; - } - CalamityWorld.AbyssItemArray = ShuffleArray(CalamityWorld.AbyssItemArray); - for (int abyssHouse = 0; abyssHouse < CalamityWorld.numAbyssIslands; abyssHouse++) //11 15 19 - { - if (abyssHouse != 20) - AbyssIslandHouse(CalamityWorld.AbyssIslandX[abyssHouse], - CalamityWorld.AbyssIslandY[abyssHouse], - CalamityWorld.AbyssItemArray[(abyssHouse > 9 ? (abyssHouse - 10) : abyssHouse)], //10 choices 0 to 9 - CalamityWorld.AbyssIslandY[abyssHouse] > (rockLayer + y * 0.143)); - } - if (abyssSide) - { - for (int abyssIndex = 0; abyssIndex < abyssChasmX + 80; abyssIndex++) //235 - { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) - { - if (!Main.tile[abyssIndex, abyssIndex2].active()) - { - if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && - abyssIndex2 > rockLayer) - { - if (WorldGen.genRand.Next(5) == 0) - { - int style = WorldGen.genRand.Next(13, 16); - WorldGen.PlacePot(abyssIndex, abyssIndex2, 28, style); - SafeSquareTileFrame(abyssIndex, abyssIndex2, true); - } - } - else if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && - abyssIndex2 < (int)Main.worldSurface) - { - if (WorldGen.genRand.Next(3) == 0) - { - int style = WorldGen.genRand.Next(25, 28); - WorldGen.PlacePot(abyssIndex, abyssIndex2, 28, style); - SafeSquareTileFrame(abyssIndex, abyssIndex2, true); - } - } - } - } - } - } - else - { - for (int abyssIndex = abyssChasmX - 80; abyssIndex < x; abyssIndex++) //3965 - { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) - { - if (!Main.tile[abyssIndex, abyssIndex2].active()) - { - if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && - abyssIndex2 > rockLayer) - { - if (WorldGen.genRand.Next(5) == 0) - { - int style = WorldGen.genRand.Next(13, 16); - WorldGen.PlacePot(abyssIndex, abyssIndex2, 28, style); - SafeSquareTileFrame(abyssIndex, abyssIndex2, true); - } - } - else if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && - abyssIndex2 < (int)Main.worldSurface) - { - if (WorldGen.genRand.Next(3) == 0) - { - int style = WorldGen.genRand.Next(25, 28); - WorldGen.PlacePot(abyssIndex, abyssIndex2, 28, style); - SafeSquareTileFrame(abyssIndex, abyssIndex2, true); - } - } - } - } - } - } - #endregion - #region Shrines - for (int k = 0; k < (int)((double)(x * y) * 50E-05); k++) - { - int tilesX = WorldGen.genRand.Next(0, generateBack); - int tilesX2 = WorldGen.genRand.Next(generateForward, x); - int tilesX3 = WorldGen.genRand.Next((int)((double)x * 0.3), generateBack); - int tilesX4 = WorldGen.genRand.Next(generateForward, (int)((double)x * 0.6)); - int tilesX5 = WorldGen.genRand.Next((int)((double)x * 0.97), (int)((double)x * 0.98)); - int tilesY3 = WorldGen.genRand.Next((int)(y * .3f), (int)(y * .35f)); - int tilesY4 = WorldGen.genRand.Next((int)(y * .35f), (int)(y * .5f)); - int tilesY5 = WorldGen.genRand.Next((int)(y * .55f), (int)(y * .8f)); - int tilesY6 = y - 60; - if ((Main.tile[tilesX3, tilesY3].type == 0 || Main.tile[tilesX3, tilesY3].type == 1) && CalamityWorld.genPureHut) - { - CalamityWorld.genPureHut = false; - SpecialHut((ushort)39, (ushort)0, (byte)6, 0, tilesX3, tilesY3); //red brick, dirt, red brick wall - } - if ((Main.tile[tilesX4, tilesY3].type == 0 || Main.tile[tilesX4, tilesY3].type == 1) && CalamityWorld.genPureHut) - { - CalamityWorld.genPureHut = false; - SpecialHut((ushort)39, (ushort)0, (byte)6, 0, tilesX4, tilesY3); - } - if (Main.tile[tilesX, tilesY3].type == (ushort)(WorldGen.crimson ? 203 : 25) && CalamityWorld.genEvilHut) - { - CalamityWorld.genEvilHut = false; - SpecialHut((ushort)(WorldGen.crimson ? 347 : 140), (ushort)(WorldGen.crimson ? 203 : 25), (byte)(WorldGen.crimson ? 174 : 33), 1, tilesX, tilesY3); //crimstone brick, crimstone, crimstone brick wall - } - if (Main.tile[tilesX2, tilesY3].type == (ushort)(WorldGen.crimson ? 203 : 25) && CalamityWorld.genEvilHut) - { - CalamityWorld.genEvilHut = false; - SpecialHut((ushort)(WorldGen.crimson ? 347 : 140), (ushort)(WorldGen.crimson ? 203 : 25), (byte)(WorldGen.crimson ? 174 : 33), 1, tilesX2, tilesY3); - } - if (Main.tile[tilesX3, tilesY5].type == 1 && CalamityWorld.genHellHut) - { - CalamityWorld.genHellHut = false; - SpecialHut((ushort)75, (ushort)56, (byte)20, 2, tilesX3, tilesY5); //obsidian brick, obsidian, obsidian brick wall - } - if (Main.tile[tilesX4, tilesY5].type == 1 && CalamityWorld.genHellHut) - { - CalamityWorld.genHellHut = false; - SpecialHut((ushort)75, (ushort)56, (byte)20, 2, tilesX4, tilesY5); - } - if (Main.tile[tilesX, tilesY4].type == 161 && CalamityWorld.genIceHut) - { - CalamityWorld.genIceHut = false; - SpecialHut((ushort)206, (ushort)161, (byte)84, 3, tilesX, tilesY4); //ice brick, ice, ice brick wall - } - if (Main.tile[tilesX2, tilesY4].type == 161 && CalamityWorld.genIceHut) - { - CalamityWorld.genIceHut = false; - SpecialHut((ushort)206, (ushort)161, (byte)84, 3, tilesX2, tilesY4); - } - if (Main.tile[tilesX, tilesY4].type == 404 && CalamityWorld.genSandHut) - { - CalamityWorld.genSandHut = false; - SpecialHut((ushort)404, (ushort)396, (byte)223, 4, tilesX, tilesY4); //fossil, sand, fossil wall - } - if (Main.tile[tilesX2, tilesY4].type == 404 && CalamityWorld.genSandHut) - { - CalamityWorld.genSandHut = false; - SpecialHut((ushort)404, (ushort)396, (byte)223, 4, tilesX2, tilesY4); - } - if (Main.tile[tilesX3, tilesY4].type == 59 && CalamityWorld.genMushroomHut) - { - CalamityWorld.genMushroomHut = false; - SpecialHut((ushort)190, (ushort)59, (byte)74, 5, tilesX3, tilesY4); //mushroom block, mud, mushroom wall - } - if (Main.tile[tilesX4, tilesY4].type == 59 && CalamityWorld.genMushroomHut) - { - CalamityWorld.genMushroomHut = false; - SpecialHut((ushort)190, (ushort)59, (byte)74, 5, tilesX4, tilesY4); - } - if (Main.tile[tilesX, tilesY4].type == 368 && CalamityWorld.genGraniteHut) - { - CalamityWorld.genGraniteHut = false; - SpecialHut((ushort)369, (ushort)368, (byte)181, 6, tilesX, tilesY4); //granite brick, granite, granite brick wall - } - if (Main.tile[tilesX2, tilesY4].type == 368 && CalamityWorld.genGraniteHut) - { - CalamityWorld.genGraniteHut = false; - SpecialHut((ushort)369, (ushort)368, (byte)181, 6, tilesX2, tilesY4); - } - if (Main.tile[tilesX, tilesY4].type == 367 && CalamityWorld.genMarbleHut) - { - CalamityWorld.genMarbleHut = false; - SpecialHut((ushort)357, (ushort)367, (byte)179, 7, tilesX, tilesY4); //marble brick, marble, marble brick wall - } - if (Main.tile[tilesX2, tilesY4].type == 367 && CalamityWorld.genMarbleHut) - { - CalamityWorld.genMarbleHut = false; - SpecialHut((ushort)357, (ushort)367, (byte)179, 7, tilesX2, tilesY4); - } - if (CalamityWorld.genSwordHut) - { - CalamityWorld.genSwordHut = false; - SpecialHut((ushort)76, (ushort)58, (byte)177, 8, tilesX5, tilesY6); - } - } - #endregion - #region Crag - int xUnderworldGen = WorldGen.genRand.Next((int)((double)x * 0.1), (int)((double)x * 0.15)); - int yUnderworldGen = y - 100; - CalamityWorld.fuhX = xUnderworldGen; - CalamityWorld.fuhY = yUnderworldGen; - UnderworldIsland(xUnderworldGen, yUnderworldGen, 180, 201, 120, 136); - UnderworldIsland(xUnderworldGen - 50, yUnderworldGen - 30, 100, 111, 60, 71); - UnderworldIsland(xUnderworldGen + 50, yUnderworldGen - 30, 100, 111, 60, 71); - ChasmGenerator(CalamityWorld.fuhX - 110, CalamityWorld.fuhY - 10, WorldGen.genRand.Next(150) + 150); - ChasmGenerator(CalamityWorld.fuhX + 110, CalamityWorld.fuhY - 10, WorldGen.genRand.Next(150) + 150); - UnderworldIsland(xUnderworldGen - 150, yUnderworldGen - 30, 60, 66, 35, 41); - UnderworldIsland(xUnderworldGen + 150, yUnderworldGen - 30, 60, 66, 35, 41); - UnderworldIsland(xUnderworldGen - 180, yUnderworldGen - 20, 60, 66, 35, 41); - UnderworldIsland(xUnderworldGen + 180, yUnderworldGen - 20, 60, 66, 35, 41); - UnderworldIslandHouse(CalamityWorld.fuhX, CalamityWorld.fuhY + 30, 1323); - UnderworldIslandHouse(CalamityWorld.fuhX - 22, CalamityWorld.fuhY + 15, 1322); - UnderworldIslandHouse(CalamityWorld.fuhX + 22, CalamityWorld.fuhY + 15, 535); - UnderworldIslandHouse(CalamityWorld.fuhX - 50, CalamityWorld.fuhY - 30, 112); - UnderworldIslandHouse(CalamityWorld.fuhX + 50, CalamityWorld.fuhY - 30, 906); - UnderworldIslandHouse(CalamityWorld.fuhX - 150, CalamityWorld.fuhY - 30, 218); - UnderworldIslandHouse(CalamityWorld.fuhX + 150, CalamityWorld.fuhY - 30, 3019); - UnderworldIslandHouse(CalamityWorld.fuhX - 180, CalamityWorld.fuhY - 20, 274); - UnderworldIslandHouse(CalamityWorld.fuhX + 180, CalamityWorld.fuhY - 20, 220); - #endregion - })); + int x = Main.maxTilesX; + int y = Main.maxTilesY; + int genLimit = x / 2; + int generateBack = genLimit - 80; //Small = 2020 + int generateForward = genLimit + 80; //Small = 2180 + int rockLayer = (int)Main.rockLayer; + + #region AbyssGen + int abyssChasmY = y - 250; //Underworld = y - 200 + abyssChasmBottom = abyssChasmY - 100; //850 small 1450 medium 2050 large + int abyssChasmX = (abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); //2100 - 1965 = 135 : 2100 + 1965 = 4065 + bool tenebrisSide = true; + if (abyssChasmX < genLimit) { tenebrisSide = false; } + if (abyssSide) + { + for (int abyssIndex = 0; abyssIndex < abyssChasmX + 80; abyssIndex++) //235 + { + for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) + { + Tile tile = Framing.GetTileSafely(abyssIndex, abyssIndex2); + bool canConvert = tile.active() && + tile.type < TileID.Count && + tile.type != TileID.DyePlants && + tile.type != TileID.Trees && + tile.type != TileID.PalmTree && + tile.type != TileID.Sand && + tile.type != TileID.Containers && + tile.type != TileID.Coral && + tile.type != TileID.BeachPiles; + if (abyssIndex > abyssChasmX + 75) + { + if (WorldGen.genRand.Next(4) == 0) + { + if (canConvert) + { + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + else if (!tile.active() && + abyssIndex2 > rockLayer) + { + tile.active(true); + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + } + } + else if (abyssIndex > abyssChasmX + 70) + { + if (WorldGen.genRand.Next(2) == 0) + { + if (canConvert) + { + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + else if (!tile.active() && + abyssIndex2 > rockLayer) + { + tile.active(true); + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + } + } + else + { + if (canConvert) + { + if (abyssIndex2 > (rockLayer + y * 0.262)) + { + tile.type = (ushort)mod.TileType("Voidstone"); + tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + } + else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) + { + tile.type = (ushort)mod.TileType("Voidstone"); + tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + } + else + { + tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + } + } + else if (!tile.active() && + abyssIndex2 > rockLayer) + { + tile.active(true); + if (abyssIndex2 > (rockLayer + y * 0.262)) + { + tile.type = (ushort)mod.TileType("Voidstone"); + tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + } + else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) + { + tile.type = (ushort)mod.TileType("Voidstone"); + tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + } + else + { + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + } + } + } + } + } + else + { + for (int abyssIndex = abyssChasmX - 80; abyssIndex < x; abyssIndex++) //3965 + { + for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) + { + Tile tile = Framing.GetTileSafely(abyssIndex, abyssIndex2); + bool canConvert = tile.active() && + tile.type < TileID.Count && + tile.type != TileID.DyePlants && + tile.type != TileID.Trees && + tile.type != TileID.PalmTree && + tile.type != TileID.Sand && + tile.type != TileID.Containers && + tile.type != TileID.Coral && + tile.type != TileID.BeachPiles; + if (abyssIndex < abyssChasmX - 75) + { + if (WorldGen.genRand.Next(4) == 0) + { + if (canConvert) + { + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + else if (!tile.active() && + abyssIndex2 > rockLayer) + { + tile.active(true); + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + } + } + else if (abyssIndex < abyssChasmX - 70) + { + if (WorldGen.genRand.Next(2) == 0) + { + if (canConvert) + { + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + else if (!tile.active() && + abyssIndex2 > rockLayer) + { + tile.active(true); + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + } + } + else + { + if (canConvert) + { + if (abyssIndex2 > (rockLayer + y * 0.262)) + { + tile.type = (ushort)mod.TileType("Voidstone"); + tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + } + else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) + { + tile.type = (ushort)mod.TileType("Voidstone"); + tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + } + else + { + tile.type = (ushort)mod.TileType("AbyssGravel"); + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + } + } + else if (!tile.active() && + abyssIndex2 > rockLayer) + { + tile.active(true); + if (abyssIndex2 > (rockLayer + y * 0.262)) + { + tile.type = (ushort)mod.TileType("Voidstone"); + tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + } + else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.Next(3) == 0) + { + tile.type = (ushort)mod.TileType("Voidstone"); + tile.wall = (ushort)mod.WallType("VoidstoneWallUnsafe"); + } + else + { + tile.wall = (ushort)mod.WallType("AbyssGravelWall"); + tile.type = (ushort)mod.TileType("AbyssGravel"); + } + } + } + } + } + } + ChasmGenerator(abyssChasmX, (int)WorldGen.worldSurfaceLow, abyssChasmBottom, true); + int maxAbyssIslands = 11; + if (y > 1500) { maxAbyssIslands = 16; if (y > 2100) { maxAbyssIslands = 20; } } + int islandLocationOffset = 30; + int islandLocationY = rockLayer; + if (CalamityWorld.genAbyssHut) //sometimes it works, sometimes it doesn't, wtf + { + CalamityWorld.genAbyssHut = false; + SpecialHut((ushort)mod.TileType("SmoothVoidstone"), (ushort)mod.TileType("Voidstone"), + (ushort)mod.WallType("VoidstoneWallUnsafe"), 9, abyssChasmX, abyssChasmBottom); + } + for (int islands = 0; islands < maxAbyssIslands; islands++) + { + int islandLocationX = abyssChasmX; + int randomIsland = WorldGen.genRand.Next(5); //0 1 2 3 4 + bool hasVoidstone = islandLocationY > (rockLayer + y * 0.143); + CalamityWorld.AbyssIslandY[CalamityWorld.numAbyssIslands] = islandLocationY; + switch (randomIsland) + { + case 0: + AbyssIsland(islandLocationX, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); + AbyssIsland(islandLocationX + 40, islandLocationY + 15, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); + AbyssIsland(islandLocationX - 40, islandLocationY + 15, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); + break; + case 1: + AbyssIsland(islandLocationX + 30, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); + AbyssIsland(islandLocationX, islandLocationY + 15, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); + AbyssIsland(islandLocationX - 40, islandLocationY + 10, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); + islandLocationX += 30; + break; + case 2: + AbyssIsland(islandLocationX - 30, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); + AbyssIsland(islandLocationX + 30, islandLocationY + 10, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); + AbyssIsland(islandLocationX, islandLocationY + 15, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); + islandLocationX -= 30; + break; + case 3: + AbyssIsland(islandLocationX + 25, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); + AbyssIsland(islandLocationX - 5, islandLocationY + 5, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); + AbyssIsland(islandLocationX - 35, islandLocationY + 15, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); + islandLocationX += 25; + break; + case 4: + AbyssIsland(islandLocationX - 25, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); + AbyssIsland(islandLocationX + 5, islandLocationY + 15, 60, 66, 30, 36, false, tenebrisSide, hasVoidstone); + AbyssIsland(islandLocationX + 35, islandLocationY + 5, 60, 66, 30, 36, false, !tenebrisSide, hasVoidstone); + islandLocationX -= 25; + break; + } + CalamityWorld.AbyssIslandX[CalamityWorld.numAbyssIslands] = islandLocationX; + CalamityWorld.numAbyssIslands++; + islandLocationY += islandLocationOffset; + } + CalamityWorld.AbyssItemArray = ShuffleArray(CalamityWorld.AbyssItemArray); + for (int abyssHouse = 0; abyssHouse < CalamityWorld.numAbyssIslands; abyssHouse++) //11 15 19 + { + if (abyssHouse != 20) + AbyssIslandHouse(CalamityWorld.AbyssIslandX[abyssHouse], + CalamityWorld.AbyssIslandY[abyssHouse], + CalamityWorld.AbyssItemArray[(abyssHouse > 9 ? (abyssHouse - 10) : abyssHouse)], //10 choices 0 to 9 + CalamityWorld.AbyssIslandY[abyssHouse] > (rockLayer + y * 0.143)); + } + if (abyssSide) + { + for (int abyssIndex = 0; abyssIndex < abyssChasmX + 80; abyssIndex++) //235 + { + for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) + { + if (!Main.tile[abyssIndex, abyssIndex2].active()) + { + if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && + abyssIndex2 > rockLayer) + { + if (WorldGen.genRand.Next(5) == 0) + { + int style = WorldGen.genRand.Next(13, 16); + WorldGen.PlacePot(abyssIndex, abyssIndex2, 28, style); + SafeSquareTileFrame(abyssIndex, abyssIndex2, true); + } + } + else if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && + abyssIndex2 < (int)Main.worldSurface) + { + if (WorldGen.genRand.Next(3) == 0) + { + int style = WorldGen.genRand.Next(25, 28); + WorldGen.PlacePot(abyssIndex, abyssIndex2, 28, style); + SafeSquareTileFrame(abyssIndex, abyssIndex2, true); + } + } + } + } + } + } + else + { + for (int abyssIndex = abyssChasmX - 80; abyssIndex < x; abyssIndex++) //3965 + { + for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) + { + if (!Main.tile[abyssIndex, abyssIndex2].active()) + { + if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && + abyssIndex2 > rockLayer) + { + if (WorldGen.genRand.Next(5) == 0) + { + int style = WorldGen.genRand.Next(13, 16); + WorldGen.PlacePot(abyssIndex, abyssIndex2, 28, style); + SafeSquareTileFrame(abyssIndex, abyssIndex2, true); + } + } + else if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && + abyssIndex2 < (int)Main.worldSurface) + { + if (WorldGen.genRand.Next(3) == 0) + { + int style = WorldGen.genRand.Next(25, 28); + WorldGen.PlacePot(abyssIndex, abyssIndex2, 28, style); + SafeSquareTileFrame(abyssIndex, abyssIndex2, true); + } + } + } + } + } + } + #endregion + + #region Shrines + for (int k = 0; k < (int)((double)(x * y) * 50E-05); k++) + { + int tilesX = WorldGen.genRand.Next(0, generateBack); + int tilesX2 = WorldGen.genRand.Next(generateForward, x); + int tilesX3 = WorldGen.genRand.Next((int)((double)x * 0.3), generateBack); + int tilesX4 = WorldGen.genRand.Next(generateForward, (int)((double)x * 0.6)); + int tilesX5 = WorldGen.genRand.Next((int)((double)x * 0.97), (int)((double)x * 0.98)); + int tilesY3 = WorldGen.genRand.Next((int)(y * .3f), (int)(y * .35f)); + int tilesY4 = WorldGen.genRand.Next((int)(y * .35f), (int)(y * .5f)); + int tilesY5 = WorldGen.genRand.Next((int)(y * .55f), (int)(y * .8f)); + int tilesY6 = y - 60; + if ((Main.tile[tilesX3, tilesY3].type == TileID.Dirt || Main.tile[tilesX3, tilesY3].type == TileID.Stone) && CalamityWorld.genPureHut) + { + CalamityWorld.genPureHut = false; + SpecialHut(TileID.RedBrick, TileID.Dirt, WallID.RedBrick, 0, tilesX3, tilesY3); //red brick, dirt, red brick wall + } + if ((Main.tile[tilesX4, tilesY3].type == TileID.Dirt || Main.tile[tilesX4, tilesY3].type == TileID.Stone) && CalamityWorld.genPureHut) + { + CalamityWorld.genPureHut = false; + SpecialHut(TileID.RedBrick, TileID.Dirt, WallID.RedBrick, 0, tilesX4, tilesY3); + } + if (Main.tile[tilesX, tilesY3].type == (WorldGen.crimson ? TileID.Crimstone : TileID.Ebonstone) && CalamityWorld.genEvilHut) + { + CalamityWorld.genEvilHut = false; + SpecialHut(WorldGen.crimson ? TileID.CrimtaneBrick : TileID.DemoniteBrick, + WorldGen.crimson ? TileID.Crimstone : TileID.Ebonstone, + WorldGen.crimson ? WallID.CrimtaneBrick : WallID.DemoniteBrick, 1, tilesX, tilesY3); //crimstone brick, crimstone, crimstone brick wall + } + if (Main.tile[tilesX2, tilesY3].type == (WorldGen.crimson ? TileID.Crimstone : TileID.Ebonstone) && CalamityWorld.genEvilHut) + { + CalamityWorld.genEvilHut = false; + SpecialHut(WorldGen.crimson ? TileID.CrimtaneBrick : TileID.DemoniteBrick, + WorldGen.crimson ? TileID.Crimstone : TileID.Ebonstone, + WorldGen.crimson ? WallID.CrimtaneBrick : WallID.DemoniteBrick, 1, tilesX2, tilesY3); + } + if (Main.tile[tilesX3, tilesY5].type == TileID.Stone && CalamityWorld.genHellHut) + { + CalamityWorld.genHellHut = false; + SpecialHut(TileID.ObsidianBrick, TileID.Obsidian, WallID.ObsidianBrick, 2, tilesX3, tilesY5); //obsidian brick, obsidian, obsidian brick wall + } + if (Main.tile[tilesX4, tilesY5].type == TileID.Stone && CalamityWorld.genHellHut) + { + CalamityWorld.genHellHut = false; + SpecialHut(TileID.ObsidianBrick, TileID.Obsidian, WallID.ObsidianBrick, 2, tilesX4, tilesY5); + } + if (Main.tile[tilesX, tilesY4].type == TileID.IceBlock && CalamityWorld.genIceHut) + { + CalamityWorld.genIceHut = false; + SpecialHut(TileID.IceBrick, TileID.IceBlock, WallID.IceBrick, 3, tilesX, tilesY4); + } + if (Main.tile[tilesX2, tilesY4].type == TileID.IceBlock && CalamityWorld.genIceHut) + { + CalamityWorld.genIceHut = false; + SpecialHut(TileID.IceBrick, TileID.IceBlock, WallID.IceBrick, 3, tilesX2, tilesY4); + } + if (Main.tile[tilesX, tilesY4].type == TileID.DesertFossil && CalamityWorld.genSandHut) + { + CalamityWorld.genSandHut = false; + SpecialHut(TileID.DesertFossil, TileID.Sandstone, WallID.DesertFossil, 4, tilesX, tilesY4); + } + if (Main.tile[tilesX2, tilesY4].type == TileID.DesertFossil && CalamityWorld.genSandHut) + { + CalamityWorld.genSandHut = false; + SpecialHut(TileID.DesertFossil, TileID.Sandstone, WallID.DesertFossil, 4, tilesX2, tilesY4); + } + if (Main.tile[tilesX3, tilesY4].type == TileID.MushroomGrass && CalamityWorld.genMushroomHut) + { + CalamityWorld.genMushroomHut = false; + SpecialHut(TileID.MushroomBlock, TileID.Mud, WallID.MushroomUnsafe, 5, tilesX3, tilesY4); + } + if (Main.tile[tilesX4, tilesY4].type == TileID.MushroomGrass && CalamityWorld.genMushroomHut) + { + CalamityWorld.genMushroomHut = false; + SpecialHut(TileID.MushroomBlock, TileID.Mud, WallID.MushroomUnsafe, 5, tilesX4, tilesY4); + } + if (Main.tile[tilesX, tilesY4].type == TileID.Granite && CalamityWorld.genGraniteHut) + { + CalamityWorld.genGraniteHut = false; + SpecialHut(TileID.GraniteBlock, TileID.Granite, WallID.GraniteUnsafe, 6, tilesX, tilesY4); + } + if (Main.tile[tilesX2, tilesY4].type == TileID.Granite && CalamityWorld.genGraniteHut) + { + CalamityWorld.genGraniteHut = false; + SpecialHut(TileID.GraniteBlock, TileID.Granite, WallID.GraniteUnsafe, 6, tilesX2, tilesY4); + } + if (Main.tile[tilesX, tilesY4].type == TileID.Marble && CalamityWorld.genMarbleHut) + { + CalamityWorld.genMarbleHut = false; + SpecialHut(TileID.MarbleBlock, TileID.Marble, WallID.MarbleUnsafe, 7, tilesX, tilesY4); + } + if (Main.tile[tilesX2, tilesY4].type == TileID.Marble && CalamityWorld.genMarbleHut) + { + CalamityWorld.genMarbleHut = false; + SpecialHut(TileID.MarbleBlock, TileID.Marble, WallID.MarbleUnsafe, 7, tilesX2, tilesY4); + } + if (CalamityWorld.genSwordHut) + { + CalamityWorld.genSwordHut = false; + SpecialHut(TileID.HellstoneBrick, TileID.Hellstone, WallID.HellstoneBrick, 8, tilesX5, tilesY6); + } + } + #endregion + + #region Crag + int xUnderworldGen = WorldGen.genRand.Next((int)((double)x * 0.1), (int)((double)x * 0.15)); + int yUnderworldGen = y - 100; + CalamityWorld.fuhX = xUnderworldGen; + CalamityWorld.fuhY = yUnderworldGen; + UnderworldIsland(xUnderworldGen, yUnderworldGen, 180, 201, 120, 136); + UnderworldIsland(xUnderworldGen - 50, yUnderworldGen - 30, 100, 111, 60, 71); + UnderworldIsland(xUnderworldGen + 50, yUnderworldGen - 30, 100, 111, 60, 71); + ChasmGenerator(CalamityWorld.fuhX - 110, CalamityWorld.fuhY - 10, WorldGen.genRand.Next(150) + 150); + ChasmGenerator(CalamityWorld.fuhX + 110, CalamityWorld.fuhY - 10, WorldGen.genRand.Next(150) + 150); + UnderworldIsland(xUnderworldGen - 150, yUnderworldGen - 30, 60, 66, 35, 41); + UnderworldIsland(xUnderworldGen + 150, yUnderworldGen - 30, 60, 66, 35, 41); + UnderworldIsland(xUnderworldGen - 180, yUnderworldGen - 20, 60, 66, 35, 41); + UnderworldIsland(xUnderworldGen + 180, yUnderworldGen - 20, 60, 66, 35, 41); + UnderworldIslandHouse(CalamityWorld.fuhX, CalamityWorld.fuhY + 30, 1323); + UnderworldIslandHouse(CalamityWorld.fuhX - 22, CalamityWorld.fuhY + 15, 1322); + UnderworldIslandHouse(CalamityWorld.fuhX + 22, CalamityWorld.fuhY + 15, 535); + UnderworldIslandHouse(CalamityWorld.fuhX - 50, CalamityWorld.fuhY - 30, 112); + UnderworldIslandHouse(CalamityWorld.fuhX + 50, CalamityWorld.fuhY - 30, 906); + UnderworldIslandHouse(CalamityWorld.fuhX - 150, CalamityWorld.fuhY - 30, 218); + UnderworldIslandHouse(CalamityWorld.fuhX + 150, CalamityWorld.fuhY - 30, 3019); + UnderworldIslandHouse(CalamityWorld.fuhX - 180, CalamityWorld.fuhY - 20, 274); + UnderworldIslandHouse(CalamityWorld.fuhX + 180, CalamityWorld.fuhY - 20, 220); + #endregion + + })); + tasks.Insert(FinalIndex + 2, new PassLegacy("SunkenSea", delegate (GenerationProgress progress) + { + progress.Message = "Making the world more wet"; + SunkenSea.Place(new Point(WorldGen.UndergroundDesertLocation.Left, WorldGen.UndergroundDesertLocation.Bottom)); + })); } - //RE-ENABLE IF YOU WANT QUICK TESTING FOR WORLD GEN C: - //RemoveMostTasks(tasks); + + tasks.Add(new PassLegacy("Planetoid Test", Planetoids)); - tasks.Add(new PassLegacy("Expand World", ExpandWorld)); - //EVERYTHING THAT WILL SPAWN IN EXPANDED HEIGHT AREA MUST BE DONE AFTER THIS SO: - tasks.Add(new PassLegacy("Planetoid Test", Planetoids)); - - //FIX THE POTS BEING A PROBLEM USING A CUSTOM FIX - int pots = tasks.FindIndex(task => task.Name == "Pots"); - if (pots != -1) - { - tasks.RemoveAt(pots); - tasks.Insert(pots, new PassLegacy("Pots", PotFix)); - } - } - #endregion - - #region SafeTileFrame - public static void SafeSquareTileFrame(int i, int j, bool resetFrame = true) - { - if (Main.tile[i, j] != null) - { - for (int x = i - 1; x <= i + 1; x++) - { - for (int y = j - 1; y <= j + 1; y++) - { - if (x < 0 || y < 0 || x >= Main.maxTilesX || y >= Main.maxTilesY) continue; - if (x == i && y == j) - { - WorldGen.TileFrame(i, j, resetFrame, false); - } - else - { - WorldGen.TileFrame(x, y, false, false); - } - } - } - } - } - #endregion - - #region ShuffleArray - public static int[] ShuffleArray(int[] array) - { - Random random = new Random(); - for (int index = array.Length; index > 0; index--) - { - int j = random.Next(index); - int k = array[j]; - array[j] = array[index - 1]; - array[index - 1] = k; - } - return array; - } - #endregion - - #region Seasons - public static void checkSpring() - { - DateTime now = DateTime.Now; - int day = now.Day; - int month = now.Month; - if (month >= 3 && month <= 6) - { - if (month == 3 && day >= 20) - { - spring = true; - return; - } - if (month == 4) - { - spring = true; - return; - } - if (month == 5) - { - spring = true; - return; - } - if (month == 6 && day <= 20) - { - spring = true; - return; - } - } - spring = false; } - - public static void checkSummer() + #endregion + + #region BiomeChests + private void GenerateBiomeChests(GenerationProgress progress) { - DateTime now = DateTime.Now; - int day = now.Day; - int month = now.Month; - if (month >= 6 && month <= 9) + Mod mod = ModLoader.GetMod("CalamityMod"); + // Get dungeon size field infos. These fields are private for some reason + int MinX = (int)typeof(WorldGen).GetField("dMinX", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null) + 25; + int MaxX = (int)typeof(WorldGen).GetField("dMaxX", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null) - 25; + int MaxY = (int)typeof(WorldGen).GetField("dMaxY", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null) - 25; + int[] ChestTypes = new int[] { mod.TileType("AstralChestLocked") }; + int[] ItemTypes = new int[] { mod.ItemType("HeavenfallenStardisk") }; + + progress.Message = "Calamity Mod: Biome Chests"; + + int rounds = 1; + for (int i = 0; i < ChestTypes.Length * rounds; i++) { - if (month == 6 && day >= 21) + Chest chest = null; + int attempts = 0; + while (chest == null && attempts < 1000) { - summer = true; - return; + attempts++; + int x = WorldGen.genRand.Next(MinX, MaxX); + int y = WorldGen.genRand.Next((int)Main.worldSurface, MaxY); + if (Main.wallDungeon[Main.tile[x, y].wall] && !Main.tile[x, y].active()) + { + chest = AddChestWithDefaultLoot(x, y, (ushort)ChestTypes[i % ChestTypes.Length], 1, 2); + } } - if (month == 7) + if (chest != null) { - summer = true; - return; - } - if (month == 8) - { - summer = true; - return; - } - if (month == 9 && day <= 21) - { - summer = true; - return; + chest.item[0].SetDefaults(ItemTypes[i % ChestTypes.Length]); + chest.item[0].Prefix(-1); } } - summer = false; } - - public static void checkFall() + + internal static Chest AddChestWithDefaultLoot(int i, int j, ushort type = TileID.Containers, uint emptySlots = 1, int Style = 0) { - DateTime now = DateTime.Now; - int day = now.Day; - int month = now.Month; - if (month >= 9 && month <= 12) + Chest chest = null; + while (j < Main.maxTilesY - 210) { - if (month == 9 && day >= 22) + if (!WorldGen.SolidTile(i, j)) { - fall = true; - return; + j++; + continue; } - if (month == 10) + int chestIndex = WorldGen.PlaceChest(i - 1, j - 1, type, false, Style); + if (chestIndex < 0) { - fall = true; - return; + break; } - if (month == 11) + chest = Main.chest[chestIndex]; + uint itemIndex = emptySlots; + while (itemIndex == emptySlots) { - fall = true; - return; - } - if (month == 12 && day <= 20) - { - fall = true; - return; + Mod mod = ModLoader.GetMod("CalamityMod"); + bool AstralChest = type == mod.TileType("AstralChestLocked"); + int cItem; + cItem = WorldGen.genRand.NextBool() ? WorldGen.goldBar : WorldGen.silverBar; + int addAmount = 0; + if (AstralChest) + { + cItem = mod.ItemType("AstralBar"); + addAmount = 4; + } + chest.item[itemIndex].SetDefaults(cItem, false); + chest.item[itemIndex].stack = WorldGen.genRand.Next(3 + addAmount, 11 + addAmount * 2); + itemIndex++; + if (WorldGen.genRand.NextBool()) + { + cItem = ItemID.HolyArrow; + int addAmount2 = 0; + if (AstralChest) + addAmount2 = 25; + chest.item[itemIndex].SetDefaults(cItem, false); + chest.item[itemIndex].stack = WorldGen.genRand.Next(25 + addAmount2, 51 + addAmount2 * 2); + itemIndex++; + } + if (AstralChest) + { + chest.item[itemIndex].SetDefaults(mod.ItemType("AstralJelly"), false); + chest.item[itemIndex].stack = WorldGen.genRand.Next(3, 6); + itemIndex++; + } + if (WorldGen.genRand.NextBool()) + { + int[] items = new int[] { + ItemID.SpelunkerPotion, ItemID.FeatherfallPotion, ItemID.NightOwlPotion, + ItemID.WaterWalkingPotion, ItemID.ArcheryPotion, ItemID.GravitationPotion + }; + if (AstralChest) + { + items[1] = mod.ItemType("RevivifyPotion"); + items[4] = ItemID.ShinePotion; + items[5] = ItemID.HunterPotion; + } + chest.item[itemIndex].SetDefaults(WorldGen.genRand.Next(items), false); + chest.item[itemIndex].stack = WorldGen.genRand.Next(1, 3); + itemIndex++; + } + if (WorldGen.genRand.NextBool()) + { + int[] items = new int[] { + ItemID.ThornsPotion, ItemID.WaterWalkingPotion, ItemID.InvisibilityPotion, + ItemID.ManaRegenerationPotion, ItemID.TeleportationPotion, ItemID.TrapsightPotion, ItemID.TrapsightPotion // yes, dangersense potions have double the chance as other potions in vanilla for some reason + }; + if (AstralChest) + { + items[1] = ItemID.MagicPowerPotion; + items[2] = mod.ItemType("ZenPotion"); + items[5] = mod.ItemType("CadencePotion"); + } + chest.item[itemIndex].SetDefaults(WorldGen.genRand.Next(items), false); + chest.item[itemIndex].stack = WorldGen.genRand.Next(1, 3); + itemIndex++; + } + if (WorldGen.genRand.NextBool()) + { + cItem = ItemID.RecallPotion; + int addAmount2 = 0; + if (AstralChest) + { + cItem = ItemID.BouncyDynamite; + addAmount2 = 2; + } + chest.item[itemIndex].SetDefaults(cItem, false); + chest.item[itemIndex].stack = WorldGen.genRand.Next(1, 3) * addAmount2; + itemIndex++; + } + if (AstralChest) + addAmount = 2; + chest.item[itemIndex].SetDefaults(ItemID.GoldCoin, false); + chest.item[itemIndex].stack = WorldGen.genRand.Next(1, 3) * addAmount; + itemIndex++; } } - fall = false; + return chest; } - - public static void checkWinter() + #endregion + + #region SafeTileFrame + public static void SafeSquareTileFrame(int i, int j, bool resetFrame = true) { - DateTime now = DateTime.Now; - int day = now.Day; - int month = now.Month; - if (month == 12 || (month >= 1 && month <= 3)) + if (Main.tile[i, j] != null) { - if (month == 12 && day >= 21) + for (int x = i - 1; x <= i + 1; x++) { - winter = true; - return; - } - if (month == 1) - { - winter = true; - return; - } - if (month == 2) - { - winter = true; - return; - } - if (month == 3 && day <= 19) - { - winter = true; - return; + for (int y = j - 1; y <= j + 1; y++) + { + if (x < 0 || y < 0 || x >= Main.maxTilesX || y >= Main.maxTilesY) continue; + if (x == i && y == j) + { + WorldGen.TileFrame(i, j, resetFrame, false); + } + else + { + WorldGen.TileFrame(x, y, false, false); + } + } } } - winter = false; } - #endregion + #endregion - #region OreSpawn - public static void spawnOre(int type, double frequency, float depth, float depthLimit) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - bool genCenter = false; - int x = Main.maxTilesX; - int y = Main.maxTilesY; - int genLimit = x / 2; - int generateBack = genLimit - 80; //Small = 2020 - int generateForward = genLimit + 80; //Small = 2180 - if (type == mod.TileType("ExodiumOre")) - { - genCenter = true; - depthLimit = 0.14f; - if (y > 1500) { depthLimit = 0.1f; if (y > 2100) { depthLimit = 0.07f; } } - } - if (Main.netMode != 1) - { - for (int k = 0; k < (int)((double)(x * y) * frequency); k++) - { - int tilesX = WorldGen.genRand.Next(0, (genCenter ? genLimit : generateBack)); - int tilesX2 = WorldGen.genRand.Next((genCenter ? genLimit : generateForward), x); - int tilesY = WorldGen.genRand.Next((int)(y * depth), (int)(y * depthLimit)); - if (type == mod.TileType("AuricOre")) - { - WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(12, 18), WorldGen.genRand.Next(12, 18), (ushort)type); - WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(12, 18), WorldGen.genRand.Next(12, 18), (ushort)type); - } - else if (type == mod.TileType("UelibloomOre")) - { - if (Main.tile[tilesX, tilesY].type == 59) - { - WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); - } - if (Main.tile[tilesX2, tilesY].type == 59) - { - WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); - } - } - else if (type == mod.TileType("PerennialOre")) - { - if (Main.tile[tilesX, tilesY].type == 0 || Main.tile[tilesX, tilesY].type == 1) - { - WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); - } - if (Main.tile[tilesX2, tilesY].type == 0 || Main.tile[tilesX2, tilesY].type == 1) - { - WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); - } - } - else if (type == mod.TileType("CryonicOre")) - { - if (Main.tile[tilesX, tilesY].type == 147 || Main.tile[tilesX, tilesY].type == 161 || Main.tile[tilesX, tilesY].type == 163 || Main.tile[tilesX, tilesY].type == 164 || Main.tile[tilesX, tilesY].type == 200) - { - WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); - } - if (Main.tile[tilesX2, tilesY].type == 147 || Main.tile[tilesX2, tilesY].type == 161 || Main.tile[tilesX2, tilesY].type == 163 || Main.tile[tilesX2, tilesY].type == 164 || Main.tile[tilesX2, tilesY].type == 200) - { - WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); - } - } - else - { - WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); - WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); - } - } - } - } - #endregion + #region ShuffleArray + public static int[] ShuffleArray(int[] array) + { + Random random = new Random(); + for (int index = array.Length; index > 0; index--) + { + int j = random.Next(index); + int k = array[j]; + array[j] = array[index - 1]; + array[index - 1] = k; + } + return array; + } + #endregion - #region AstralMeteor - public static bool checkAstralMeteor() - { - Mod mod = ModLoader.GetMod("CalamityMod"); - int num = 0; - float num2 = (float)(Main.maxTilesX / 4200); - int num3 = (int)(200f * num2); //Small = 201 Medium = 305 Large = 401 - for (int j = 5; j < Main.maxTilesX - 5; j++) - { - int num4 = 5; - while ((double)num4 < Main.worldSurface) - { - if (Main.tile[j, num4].active() && Main.tile[j, num4].type == mod.TileType("AstralOre")) - { - num++; - if (num > num3) - { - return false; - } - } - num4++; - } - } - return true; - } + #region OreSpawn + public static void spawnOre(int type, double frequency, float depth, float depthLimit) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + bool genCenter = false; + int x = Main.maxTilesX; + int y = Main.maxTilesY; + int genLimit = x / 2; + int generateBack = genLimit - 80; //Small = 2020 + int generateForward = genLimit + 80; //Small = 2180 + if (type == mod.TileType("ExodiumOre")) + { + genCenter = true; + depthLimit = 0.14f; + if (y > 1500) { depthLimit = 0.1f; if (y > 2100) { depthLimit = 0.07f; } } + } + if (Main.netMode != 1) + { + for (int k = 0; k < (int)((double)(x * y) * frequency); k++) + { + int tilesX = WorldGen.genRand.Next(0, (genCenter ? genLimit : generateBack)); + int tilesX2 = WorldGen.genRand.Next((genCenter ? genLimit : generateForward), x); + int tilesY = WorldGen.genRand.Next((int)(y * depth), (int)(y * depthLimit)); + if (type == mod.TileType("AuricOre")) + { + WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(12, 18), WorldGen.genRand.Next(12, 18), (ushort)type); + WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(12, 18), WorldGen.genRand.Next(12, 18), (ushort)type); + } + else if (type == mod.TileType("UelibloomOre")) + { + if (Main.tile[tilesX, tilesY].type == 59) + { + WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); + } + if (Main.tile[tilesX2, tilesY].type == 59) + { + WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); + } + } + else if (type == mod.TileType("PerennialOre")) + { + if (Main.tile[tilesX, tilesY].type == 0 || Main.tile[tilesX, tilesY].type == 1) + { + WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); + } + if (Main.tile[tilesX2, tilesY].type == 0 || Main.tile[tilesX2, tilesY].type == 1) + { + WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); + } + } + else if (type == mod.TileType("CryonicOre")) + { + if (Main.tile[tilesX, tilesY].type == 147 || Main.tile[tilesX, tilesY].type == 161 || Main.tile[tilesX, tilesY].type == 163 || Main.tile[tilesX, tilesY].type == 164 || Main.tile[tilesX, tilesY].type == 200) + { + WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); + } + if (Main.tile[tilesX2, tilesY].type == 147 || Main.tile[tilesX2, tilesY].type == 161 || Main.tile[tilesX2, tilesY].type == 163 || Main.tile[tilesX2, tilesY].type == 164 || Main.tile[tilesX2, tilesY].type == 200) + { + WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); + } + } + else + { + WorldGen.OreRunner(tilesX, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); + WorldGen.OreRunner(tilesX2, tilesY, (double)WorldGen.genRand.Next(3, 8), WorldGen.genRand.Next(3, 8), (ushort)type); + } + } + } + } + #endregion - public static bool checkAstralBiomeSpawn() - { - Mod mod = ModLoader.GetMod("CalamityMod"); - int num = 0; - float num2 = (float)(Main.maxTilesX / 4200); - int num3 = (int)(400f * num2); //Small = 401 Medium = 605 Large = 801 - for (int j = 5; j < Main.maxTilesX - 5; j++) - { - int num4 = 5; - while ((double)num4 < Main.worldSurface) - { - if (Main.tile[j, num4].active() && - (Main.tile[j, num4].type == mod.TileType("AstralSand") || Main.tile[j, num4].type == mod.TileType("AstralSandstone") || - Main.tile[j, num4].type == mod.TileType("HardenedAstralSand") || Main.tile[j, num4].type == mod.TileType("AstralIce") || - Main.tile[j, num4].type == mod.TileType("AstralDirt") || Main.tile[j, num4].type == mod.TileType("AstralStone") || - Main.tile[j, num4].type == mod.TileType("AstralGrass"))) - { - num++; - if (num > num3) - { - return false; - } - } - num4++; - } - } - return true; - } + #region AstralMeteor + public static bool checkAstralMeteor() + { + Mod mod = ModLoader.GetMod("CalamityMod"); + int num = 0; + float num2 = (float)(Main.maxTilesX / 4200); + int num3 = (int)(200f * num2); //Small = 201 Medium = 305 Large = 401 + for (int j = 5; j < Main.maxTilesX - 5; j++) + { + int num4 = 5; + while ((double)num4 < Main.worldSurface) + { + if (Main.tile[j, num4].active() && Main.tile[j, num4].type == mod.TileType("AstralOre")) + { + num++; + if (num > num3) + { + return false; + } + } + num4++; + } + } + return true; + } - public static void dropAstralMeteor() + public static bool checkAstralBiomeSpawn() + { + Mod mod = ModLoader.GetMod("CalamityMod"); + int num = 0; + float num2 = (float)(Main.maxTilesX / 4200); + int num3 = (int)(400f * num2); //Small = 401 Medium = 605 Large = 801 + for (int j = 5; j < Main.maxTilesX - 5; j++) + { + int num4 = 5; + while ((double)num4 < Main.worldSurface) + { + if (Main.tile[j, num4].active() && + (Main.tile[j, num4].type == mod.TileType("AstralSand") || Main.tile[j, num4].type == mod.TileType("AstralSandstone") || + Main.tile[j, num4].type == mod.TileType("HardenedAstralSand") || Main.tile[j, num4].type == mod.TileType("AstralIce") || + Main.tile[j, num4].type == mod.TileType("AstralDirt") || Main.tile[j, num4].type == mod.TileType("AstralStone") || + Main.tile[j, num4].type == mod.TileType("AstralGrass"))) + { + num++; + if (num > num3) + { + return false; + } + } + num4++; + } + } + return true; + } + + public static void dropAstralMeteor() { Mod mod = ModLoader.GetMod("CalamityMod"); bool flag = true; @@ -1655,21 +1616,21 @@ namespace CalamityMod break; } } - if (!checkAstralMeteor()) - { - return; - } + if (!checkAstralMeteor()) + { + return; + } float num5 = 600f; while (!flag) { float num6 = (float)Main.maxTilesX * 0.08f; - int xLimit = Main.maxTilesX / 2; + int xLimit = Main.maxTilesX / 2; int num7 = (abyssSide ? Main.rand.Next(150, xLimit) : Main.rand.Next(xLimit, Main.maxTilesX - 150)); while ((float)num7 > (float)Main.spawnTileX - num6 && (float)num7 < (float)Main.spawnTileX + num6) { num7 = (abyssSide ? Main.rand.Next(150, xLimit) : Main.rand.Next(xLimit, Main.maxTilesX - 150)); } - //world surface = 920 large 740 medium 560 small + //world surface = 920 large 740 medium 560 small int k = (int)(Main.worldSurface * 0.6); //Large = 522, Medium = 444, Small = 336 while (k < Main.maxTilesY) { @@ -1718,7 +1679,7 @@ namespace CalamityMod } } } - + public static bool astralMeteor(int i, int j) { Mod mod = ModLoader.GetMod("CalamityMod"); @@ -1776,14 +1737,14 @@ namespace CalamityMod float num6 = (float)Math.Sqrt((double)(num4 * num4 + num5 * num5)); if ((double)num6 < (double)num * 0.9 + (double)Main.rand.Next(-4, 5)) { - if (Main.tile[num2, num3] != null) - { - if (!Main.tileSolid[(int)Main.tile[num2, num3].type]) - { - Main.tile[num2, num3].active(false); - } - Main.tile[num2, num3].type = (ushort)mod.TileType("AstralOre"); - } + if (Main.tile[num2, num3] != null) + { + if (!Main.tileSolid[(int)Main.tile[num2, num3].type]) + { + Main.tile[num2, num3].active(false); + } + Main.tile[num2, num3].type = (ushort)mod.TileType("AstralOre"); + } } } } @@ -1800,8 +1761,8 @@ namespace CalamityMod float num11 = (float)Math.Sqrt((double)(num9 * num9 + num10 * num10)); if ((double)num11 < (double)num * 0.8 + (double)Main.rand.Next(-3, 4)) { - if (Main.tile[num7, num8] != null) - Main.tile[num7, num8].active(false); + if (Main.tile[num7, num8] != null) + Main.tile[num7, num8].active(false); } } } @@ -1814,30 +1775,30 @@ namespace CalamityMod float num14 = (float)Math.Abs(i - num12); float num15 = (float)Math.Abs(j - num13); float num16 = (float)Math.Sqrt((double)(num14 * num14 + num15 * num15)); - if (Main.tile[num12, num13] != null) - { - if ((double)num16 < (double)num * 0.7) - { - if (Main.tile[num12, num13].type == 5 || Main.tile[num12, num13].type == 32 || Main.tile[num12, num13].type == 352) - { - WorldGen.KillTile(num12, num13, false, false, false); - } - Main.tile[num12, num13].liquid = 0; - } - if (Main.tile[num12, num13].type == (ushort)mod.TileType("AstralOre")) - { - if (!WorldGen.SolidTile(num12 - 1, num13) && !WorldGen.SolidTile(num12 + 1, num13) && !WorldGen.SolidTile(num12, num13 - 1) && !WorldGen.SolidTile(num12, num13 + 1)) - { - Main.tile[num12, num13].active(false); - } - else if ((Main.tile[num12, num13].halfBrick() || Main.tile[num12 - 1, num13].topSlope()) && !WorldGen.SolidTile(num12, num13 + 1)) - { - Main.tile[num12, num13].active(false); - } - } - WorldGen.SquareTileFrame(num12, num13, true); - WorldGen.SquareWallFrame(num12, num13, true); - } + if (Main.tile[num12, num13] != null) + { + if ((double)num16 < (double)num * 0.7) + { + if (Main.tile[num12, num13].type == 5 || Main.tile[num12, num13].type == 32 || Main.tile[num12, num13].type == 352) + { + WorldGen.KillTile(num12, num13, false, false, false); + } + Main.tile[num12, num13].liquid = 0; + } + if (Main.tile[num12, num13].type == (ushort)mod.TileType("AstralOre")) + { + if (!WorldGen.SolidTile(num12 - 1, num13) && !WorldGen.SolidTile(num12 + 1, num13) && !WorldGen.SolidTile(num12, num13 - 1) && !WorldGen.SolidTile(num12, num13 + 1)) + { + Main.tile[num12, num13].active(false); + } + else if ((Main.tile[num12, num13].halfBrick() || Main.tile[num12 - 1, num13].topSlope()) && !WorldGen.SolidTile(num12, num13 + 1)) + { + Main.tile[num12, num13].active(false); + } + } + WorldGen.SquareTileFrame(num12, num13, true); + WorldGen.SquareWallFrame(num12, num13, true); + } } } num = WorldGen.genRand.Next(23, 32); @@ -1852,15 +1813,15 @@ namespace CalamityMod float num21 = (float)Math.Sqrt((double)(num19 * num19 + num20 * num20)); if ((double)num21 < (double)num * 0.8) { - if (Main.tile[num17, num18] != null) - { - if (Main.tile[num17, num18].type == 5 || Main.tile[num17, num18].type == 32 || Main.tile[num17, num18].type == 352) - { - WorldGen.KillTile(num17, num18, false, false, false); - } - Main.tile[num17, num18].type = (ushort)mod.TileType("AstralOre"); - WorldGen.SquareTileFrame(num17, num18, true); - } + if (Main.tile[num17, num18] != null) + { + if (Main.tile[num17, num18].type == 5 || Main.tile[num17, num18].type == 32 || Main.tile[num17, num18].type == 352) + { + WorldGen.KillTile(num17, num18, false, false, false); + } + Main.tile[num17, num18].type = (ushort)mod.TileType("AstralOre"); + WorldGen.SquareTileFrame(num17, num18, true); + } } } } @@ -1877,15 +1838,15 @@ namespace CalamityMod float num26 = (float)Math.Sqrt((double)(num24 * num24 + num25 * num25)); if ((double)num26 < (double)num * 0.85) { - if (Main.tile[num22, num23] != null) - { - if (Main.tile[num22, num23].type == 5 || Main.tile[num22, num23].type == 32 || Main.tile[num22, num23].type == 352) - { - WorldGen.KillTile(num22, num23, false, false, false); - } - Main.tile[num22, num23].type = (ushort)mod.TileType("AstralOre"); - WorldGen.SquareTileFrame(num22, num23, true); - } + if (Main.tile[num22, num23] != null) + { + if (Main.tile[num22, num23].type == 5 || Main.tile[num22, num23].type == 32 || Main.tile[num22, num23].type == 352) + { + WorldGen.KillTile(num22, num23, false, false, false); + } + Main.tile[num22, num23].type = (ushort)mod.TileType("AstralOre"); + WorldGen.SquareTileFrame(num22, num23, true); + } } } } @@ -1893,3645 +1854,3519 @@ namespace CalamityMod if (Main.netMode != 1) { NetMessage.SendTileSquare(-1, i, j, 40, TileChangeType.None); - if (checkAstralBiomeSpawn()) - DoAstralConversion(new Point(i, j)); - } + if (checkAstralBiomeSpawn()) + DoAstralConversion(new Point(i, j)); + } return true; } - public static void DoAstralConversion(object obj) - { - //Pre-calculate all variables necessary for elliptical area checking - Point origin = (Point)obj; - Vector2 center = origin.ToVector2() * 16f + new Vector2(8f); - - float angle = MathHelper.Pi * 0.15f; - float otherAngle = MathHelper.PiOver2 - angle; - - int distanceInTiles = 150 + ((Main.maxTilesX - 4200) / 4200) * 200; - float distance = distanceInTiles * 16f; - float constant = (distance * 2f) / (float)Math.Sin(angle); - - float fociSpacing = ((distance * (float)Math.Sin(otherAngle)) / (float)Math.Sin(angle)); - int verticalRadius = (int)(constant / 16f); - - Vector2 fociOffset = Vector2.UnitY * fociSpacing; - Vector2 topFoci = center - fociOffset; - Vector2 bottomFoci = center + fociOffset; - - for (int x = origin.X - distanceInTiles - 2; x <= origin.X + distanceInTiles + 2; x++) - { - for (int y = (int)(origin.Y - verticalRadius * 0.4f) - 3; y <= origin.Y + verticalRadius + 3; y++) - { - float dist; - if (CheckInEllipse(new Point(x, y), topFoci, bottomFoci, constant, center, out dist, y < origin.Y)) - { - //If we're in the outer blurPercent% of the ellipse - float percent = dist / constant; - float blurPercent = 0.98f; - if (percent > blurPercent) - { - float outerEdgePercent = (percent - blurPercent) / (1f - blurPercent); - if (Main.rand.NextFloat(1f) > outerEdgePercent) - { - ConvertToAstral(x, y); - } - } - else - { - ConvertToAstral(x, y); - } - } - } - } - } - - public static void ConvertToAstral(int startX, int endX, int startY, int endY) - { - for (int x = startX; x <= endX; x++) - { - for (int y = startY; y <= endY; y++) - { - ConvertToAstral(x, y); - } - } - } - - public static void ConvertToAstral(int x, int y, bool tileframe = true) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - if (WorldGen.InWorld(x, y, 1)) - { - int type = Main.tile[x, y].type; - int wallType = Main.tile[x, y].wall; - - if (Main.tile[x, y] != null) - { - if (WallID.Sets.Conversion.Grass[wallType]) - { - Main.tile[x, y].wall = (ushort)mod.WallType("AstralGrassWallUnsafe"); - } - else if (WallID.Sets.Conversion.HardenedSand[wallType]) - { - Main.tile[x, y].wall = (ushort)mod.WallType("HardenedAstralSandWallUnsafe"); - } - else if (WallID.Sets.Conversion.Sandstone[wallType]) - { - Main.tile[x, y].wall = (ushort)mod.WallType("AstralSandstoneWallUnsafe"); - } - else if (WallID.Sets.Conversion.Stone[wallType]) - { - Main.tile[x, y].wall = (ushort)mod.WallType("AstralStoneWallUnsafe"); - } - else - { - switch (wallType) - { - case WallID.DirtUnsafe: - case WallID.DirtUnsafe1: - case WallID.DirtUnsafe2: - case WallID.DirtUnsafe3: - case WallID.DirtUnsafe4: - case WallID.Cave6Unsafe: - case WallID.Dirt: - Main.tile[x, y].wall = (ushort)mod.WallType("AstralDirtWallUnsafe"); - break; - case WallID.IceUnsafe: - Main.tile[x, y].wall = (ushort)mod.WallType("AstralIceWallUnsafe"); - break; - } - } - if (TileID.Sets.Conversion.Grass[type] && !TileID.Sets.GrassSpecial[type]) - { - Main.tile[x, y].type = (ushort)mod.TileType("AstralGrass"); - } - else if (TileID.Sets.Conversion.Stone[type] || Main.tileMoss[type]) - { - Main.tile[x, y].type = (ushort)mod.TileType("AstralStone"); - } - else if (TileID.Sets.Conversion.Sand[type]) - { - Main.tile[x, y].type = (ushort)mod.TileType("AstralSand"); - } - else if (TileID.Sets.Conversion.HardenedSand[type]) - { - Main.tile[x, y].type = (ushort)mod.TileType("HardenedAstralSand"); - } - else if (TileID.Sets.Conversion.Sandstone[type]) - { - Main.tile[x, y].type = (ushort)mod.TileType("AstralSandstone"); - } - else if (TileID.Sets.Conversion.Ice[type]) - { - Main.tile[x, y].type = (ushort)mod.TileType("AstralIce"); - } - else - { - Tile tile = Main.tile[x, y]; - switch (type) - { - case TileID.Dirt: - Main.tile[x, y].type = (ushort)mod.TileType("AstralDirt"); - break; - case TileID.Vines: - Main.tile[x, y].type = (ushort)mod.TileType("AstralVines"); - break; - case TileID.LargePiles: - if (tile.frameX <= 1170) - { - RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 0, 1170, 0, 18); - } - if (tile.frameX >= 1728) - { - RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 1728, 1872, 0, 18); - } - if (tile.frameX >= 1404 && tile.frameX <= 1710) - { - RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralIceLargePiles"), x, y, 324, 1404, 1710, 0, 18); - } - break; - case TileID.LargePiles2: - if (tile.frameX >= 1566 && tile.frameY < 36) - { - RecursiveReplaceToAstral(TileID.LargePiles2, (ushort)mod.TileType("AstralDesertLargePiles"), x, y, 324, 1566, 1872, 0, 18); - } - if (tile.frameX >= 756 && tile.frameX <= 900) - { - RecursiveReplaceToAstral(TileID.LargePiles2, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 756, 900, 0, 18); - } - break; - case TileID.SmallPiles: - if (tile.frameY == 18) - { - ushort newType = 9999; - if (tile.frameX >= 1476 && tile.frameX <= 1674) - { - newType = (ushort)mod.TileType("AstralDesertMediumPiles"); - } - else if (tile.frameX <= 558 || (tile.frameX >= 1368 && tile.frameX <= 1458)) - { - newType = (ushort)mod.TileType("AstralNormalMediumPiles"); - } - else if (tile.frameX >= 900 && tile.frameX <= 1098) - { - newType = (ushort)mod.TileType("AstralIceMediumPiles"); - } - else - { - break; - } - int leftMost = x; - if (tile.frameX % 36 != 0) //this means it's the right tile of the two - { - leftMost--; - } - if (Main.tile[leftMost, y] != null) - Main.tile[leftMost, y].type = newType; - if (Main.tile[leftMost + 1, y] != null) - Main.tile[leftMost + 1, y].type = newType; - while (Main.tile[leftMost, y].frameX >= 216) - { - if (Main.tile[leftMost, y] != null) - Main.tile[leftMost, y].frameX -= 216; - if (Main.tile[leftMost + 1, y] != null) - Main.tile[leftMost + 1, y].frameX -= 216; - } - } - else if (tile.frameY == 0) - { - ushort newType3 = 9999; - if (tile.frameX >= 972 && tile.frameX <= 1062) - { - newType3 = (ushort)mod.TileType("AstralDesertSmallPiles"); - } - else if (tile.frameX <= 486) - { - newType3 = (ushort)mod.TileType("AstralNormalSmallPiles"); - } - else if (tile.frameX >= 648 && tile.frameX <= 846) - { - newType3 = (ushort)mod.TileType("AstralIceSmallPiles"); - } - else - { - break; - } - Main.tile[x, y].type = newType3; - while (Main.tile[x, y].frameX >= 108) //REFRAME IT - { - Main.tile[x, y].frameX -= 108; - } - } - break; - case TileID.Stalactite: - int topMost = tile.frameY <= 54 ? (tile.frameY % 36 == 0 ? y : y - 1) : y; - bool twoTall = tile.frameY <= 54; - bool hanging = tile.frameY <= 18 || tile.frameY == 72; - ushort newType2 = 9999; - if (tile.frameX >= 378 && tile.frameX <= 414) //DESERT - { - newType2 = (ushort)mod.TileType("AstralDesertStalactite"); - } - else if ((tile.frameX >= 54 && tile.frameX <= 90) || (tile.frameX >= 216 && tile.frameX <= 360)) - { - newType2 = (ushort)mod.TileType("AstralNormalStalactite"); - } - else if (tile.frameX <= 36) - { - newType2 = (ushort)mod.TileType("AstralIceStalactite"); - } - else - { - break; - } - - //Set types - if (Main.tile[x, topMost] != null) - Main.tile[x, topMost].type = newType2; - if (twoTall) - { - if (Main.tile[x, topMost + 1] != null) - Main.tile[x, topMost + 1].type = newType2; - } - - //Fix frames - while (Main.tile[x, topMost].frameX >= 54) - { - if (Main.tile[x, topMost] != null) - Main.tile[x, topMost].frameX -= 54; - if (twoTall) - { - if (Main.tile[x, topMost + 1] != null) - Main.tile[x, topMost + 1].frameX -= 54; - } - } - - if (hanging) - { - ConvertToAstral(x, topMost - 1); - break; - } - else - { - if (twoTall) - { - ConvertToAstral(x, topMost + 2); - break; - } - ConvertToAstral(x, topMost + 1); - break; - } - } - } - if (tileframe) - { - if (Main.netMode == 0) - { - WorldGen.SquareTileFrame(x, y, true); - } - else if (Main.netMode == 2) - { - NetMessage.SendTileSquare(-1, x, y, 1); - } - } - } - } - } - - public static void ConvertFromAstral(int x, int y, ConvertType convert) - { - Tile tile = Main.tile[x, y]; - int type = tile.type; - int wallType = tile.wall; - Mod mod = CalamityMod.Instance; - - if (WorldGen.InWorld(x, y, 1)) - { - #region WALL - if (Main.tile[x, y] != null) - { - if (wallType == mod.WallType("AstralDirtWall")) - { - Main.tile[x, y].wall = WallID.DirtUnsafe; - } - else if (wallType == mod.WallType("AstralGrassWall")) - { - switch (convert) - { - case ConvertType.Corrupt: - Main.tile[x, y].wall = WallID.CorruptGrassUnsafe; - break; - case ConvertType.Crimson: - Main.tile[x, y].wall = WallID.CrimsonGrassUnsafe; - break; - case ConvertType.Hallow: - Main.tile[x, y].wall = WallID.HallowedGrassUnsafe; - break; - case ConvertType.Pure: - Main.tile[x, y].wall = WallID.GrassUnsafe; - break; - } - } - else if (wallType == mod.WallType("AstralIceWall")) - { - Main.tile[x, y].wall = WallID.IceUnsafe; - } - else if (wallType == mod.WallType("AstralStoneWall")) - { - switch (convert) - { - case ConvertType.Corrupt: - Main.tile[x, y].wall = WallID.EbonstoneUnsafe; - break; - case ConvertType.Crimson: - Main.tile[x, y].wall = WallID.CrimstoneUnsafe; - break; - case ConvertType.Hallow: - Main.tile[x, y].wall = WallID.PearlstoneBrickUnsafe; - break; - case ConvertType.Pure: - Main.tile[x, y].wall = WallID.Stone; - break; - } - } - } - #endregion - - #region TILE - if (Main.tile[x, y] != null) - { - if (type == mod.TileType("AstralDirt")) - { - tile.type = TileID.Dirt; - } - else if (type == mod.TileType("AstralGrass")) - { - SetTileFromConvert(x, y, convert, TileID.CorruptGrass, TileID.FleshGrass, TileID.HallowedGrass, TileID.Grass); - } - else if (type == mod.TileType("AstralStone")) - { - SetTileFromConvert(x, y, convert, TileID.Ebonstone, TileID.Crimstone, TileID.Pearlstone, TileID.Stone); - } - else if (type == mod.TileType("AstralSand")) - { - SetTileFromConvert(x, y, convert, TileID.Ebonsand, TileID.Crimsand, TileID.Pearlsand, TileID.Sand); - } - else if (type == mod.TileType("AstralSandstone")) - { - SetTileFromConvert(x, y, convert, TileID.CorruptSandstone, TileID.CrimsonSandstone, TileID.HallowSandstone, TileID.Sandstone); - } - else if (type == mod.TileType("HardenedAstralSand")) - { - SetTileFromConvert(x, y, convert, TileID.CorruptHardenedSand, TileID.CrimsonHardenedSand, TileID.HallowHardenedSand, TileID.HardenedSand); - } - else if (type == mod.TileType("AstralIce")) - { - SetTileFromConvert(x, y, convert, TileID.CorruptIce, TileID.FleshIce, TileID.HallowedIce, TileID.IceBlock); - } - else if (type == mod.TileType("AstralVines")) - { - SetTileFromConvert(x, y, convert, ushort.MaxValue, TileID.CrimsonVines, TileID.HallowedVines, TileID.Vines); - } - else if (type == mod.TileType("AstralShortPlants")) - { - SetTileFromConvert(x, y, convert, TileID.CorruptPlants, ushort.MaxValue, TileID.HallowedPlants, TileID.Plants); - } - else if (type == mod.TileType("AstralTallPlants")) - { - SetTileFromConvert(x, y, convert, ushort.MaxValue, ushort.MaxValue, TileID.HallowedPlants2, TileID.Plants2); - } - else if (type == mod.TileType("AstralNormalLargePiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles, x, y, 378, 0); - } - else if (type == mod.TileType("AstralNormalMediumPiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 0, 18); - } - else if (type == mod.TileType("AstralNormalSmallPiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 0, 0); - } - else if (type == mod.TileType("AstralDesertLargePiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles2, x, y, 1566, 0); - } - else if (type == mod.TileType("AstralDesertMediumPiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 1476, 18); - } - else if (type == mod.TileType("AstralDesertSmallPiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 972, 0); - } - else if (type == mod.TileType("AstralIceLargePiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles, x, y, 1404, 0); - } - else if (type == mod.TileType("AstralIceMediumPiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 900, 18); - } - else if (type == mod.TileType("AstralIceSmallPiles")) - { - RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 648, 0); - } - else if (type == mod.TileType("AstralNormalStalactite")) - { - ushort originType = TileID.Stone; - int frameXAdd = 54; - switch (convert) - { - case ConvertType.Corrupt: - originType = TileID.Ebonstone; - frameXAdd = 324; - break; - case ConvertType.Crimson: - originType = TileID.Crimstone; - frameXAdd = 270; - break; - case ConvertType.Hallow: - originType = TileID.Pearlstone; - frameXAdd = 216; - break; - } - ReplaceAstralStalactite((ushort)type, TileID.Stalactite, originType, x, y, frameXAdd, 0); - } - else if (type == mod.TileType("AstralDesertStalactite")) - { - ushort originType = TileID.Sandstone; - int frameXAdd = 378; - switch (convert) - { - case ConvertType.Corrupt: - originType = TileID.CorruptSandstone; - frameXAdd = 324; - break; - case ConvertType.Crimson: - originType = TileID.CrimsonSandstone; - frameXAdd = 270; - break; - case ConvertType.Hallow: - originType = TileID.HallowSandstone; - frameXAdd = 216; - break; - } - ReplaceAstralStalactite((ushort)type, TileID.Stalactite, originType, x, y, frameXAdd, 0); - } - else if (type == mod.TileType("AstralIceStalactite")) - { - ReplaceAstralStalactite((ushort)type, TileID.Stalactite, TileID.IceBlock, x, y, 0, 0); - } - if (TileID.Sets.Conversion.Grass[type] || type == TileID.Dirt) - { - WorldGen.SquareTileFrame(x, y); - } - } - #endregion - } - } - - private static void SetTileFromConvert(int x, int y, ConvertType convert, ushort corrupt, ushort crimson, ushort hallow, ushort pure) - { - switch (convert) - { - case ConvertType.Corrupt: - if (corrupt != ushort.MaxValue) - { - Main.tile[x, y].type = corrupt; - WorldGen.SquareTileFrame(x, y); - } - break; - case ConvertType.Crimson: - if (crimson != ushort.MaxValue) - { - Main.tile[x, y].type = crimson; - WorldGen.SquareTileFrame(x, y); - } - break; - case ConvertType.Hallow: - if (hallow != ushort.MaxValue) - { - Main.tile[x, y].type = hallow; - WorldGen.SquareTileFrame(x, y); - } - break; - case ConvertType.Pure: - if (pure != ushort.MaxValue) - { - Main.tile[x, y].type = pure; - WorldGen.SquareTileFrame(x, y); - } - break; - } - } - - private static void RecursiveReplaceToAstral(ushort checkType, ushort replaceType, int x, int y, int replaceTextureWidth, int minFrameX = 0, int maxFrameX = int.MaxValue, int minFrameY = 0, int maxFrameY = int.MaxValue) - { - Tile tile = Main.tile[x, y]; - if (tile == null || !tile.active() || tile.type != checkType || tile.frameX < minFrameX || tile.frameX > maxFrameX || tile.frameY < minFrameY || tile.frameY > maxFrameY) - return; - - Main.tile[x, y].type = replaceType; - while (Main.tile[x, y].frameX >= replaceTextureWidth) - { - Main.tile[x, y].frameX -= (short)replaceTextureWidth; - } - - if (Main.tile[x - 1, y] != null) - RecursiveReplaceToAstral(checkType, replaceType, x - 1, y, replaceTextureWidth, minFrameX, maxFrameX, minFrameY, maxFrameY); - if (Main.tile[x + 1, y] != null) - RecursiveReplaceToAstral(checkType, replaceType, x + 1, y, replaceTextureWidth, minFrameX, maxFrameX, minFrameY, maxFrameY); - if (Main.tile[x, y - 1] != null) - RecursiveReplaceToAstral(checkType, replaceType, x, y - 1, replaceTextureWidth, minFrameX, maxFrameX, minFrameY, maxFrameY); - if (Main.tile[x, y + 1] != null) - RecursiveReplaceToAstral(checkType, replaceType, x, y + 1, replaceTextureWidth, minFrameX, maxFrameX, minFrameY, maxFrameY); - } - - private static void RecursiveReplaceFromAstral(ushort checkType, ushort replaceType, int x, int y, int addFrameX, int addFrameY) - { - Tile tile = Main.tile[x, y]; - if (tile == null || !tile.active() || tile.type != checkType) - return; - - Main.tile[x, y].type = replaceType; - Main.tile[x, y].frameX += (short)addFrameX; - Main.tile[x, y].frameY += (short)addFrameY; - - if (Main.tile[x - 1, y] != null) - RecursiveReplaceFromAstral(checkType, replaceType, x - 1, y, addFrameX, addFrameY); - if (Main.tile[x + 1, y] != null) - RecursiveReplaceFromAstral(checkType, replaceType, x + 1, y, addFrameX, addFrameY); - if (Main.tile[x, y - 1] != null) - RecursiveReplaceFromAstral(checkType, replaceType, x, y - 1, addFrameX, addFrameY); - if (Main.tile[x, y + 1] != null) - RecursiveReplaceFromAstral(checkType, replaceType, x, y + 1, addFrameX, addFrameY); - } - - private static void ReplaceAstralStalactite(ushort checkType, ushort replaceType, ushort replaceOriginTile, int x, int y, int addFrameX, int addFrameY) - { - Tile tile = Main.tile[x, y]; - - int topMost = tile.frameY <= 54 ? (tile.frameY % 36 == 0 ? y : y - 1) : y; - bool twoTall = tile.frameY <= 54; - bool hanging = tile.frameY <= 18 || tile.frameY == 72; - - int yOriginTile = (hanging ? topMost - 1 : (twoTall ? topMost + 2 : y + 1)); - - if (Main.tile[x, topMost++] != null) - Main.tile[x, topMost++].type = replaceType; - if (twoTall) - { - if (Main.tile[x, topMost] != null) - Main.tile[x, topMost].type = replaceType; - } - if (Main.tile[x, yOriginTile] != null) - Main.tile[x, yOriginTile].type = replaceOriginTile; - } - - private static bool CheckInEllipse(Point tile, Vector2 focus1, Vector2 focus2, float distanceConstant, Vector2 center, out float distance, bool collapse = false) - { - Vector2 point = tile.ToVector2() * 16f + new Vector2(8f); - if (collapse) //Collapse ensures the ellipse is shrunk down a lot in terms of distance. - { - float distY = center.Y - point.Y; - point.Y -= distY * 8f; - } - float distance1 = Vector2.Distance(point, focus1); - float distance2 = Vector2.Distance(point, focus2); - distance = distance1 + distance2; - return distance <= distanceConstant; - } - #endregion - - #region EvilIsland - public static void EvilIsland(int i, int j) - { - double num = (double)WorldGen.genRand.Next(100, 150); //100 150 - float num2 = (float)WorldGen.genRand.Next(20, 30); //20 30 - int num3 = i; - int num4 = i; - int num5 = i; - int num6 = j; - Vector2 vector; - vector.X = (float)i; - vector.Y = (float)j; - Vector2 vector2; - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - while (vector2.X > -2f && vector2.X < 2f) - { - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - } - vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; - while (num > 0.0 && num2 > 0f) - { - num -= (double)WorldGen.genRand.Next(4); - num2 -= 1f; - int num7 = (int)((double)vector.X - num * 0.5); - int num8 = (int)((double)vector.X + num * 0.5); - int num9 = (int)((double)vector.Y - num * 0.5); - int num10 = (int)((double)vector.Y + num * 0.5); - if (num7 < 0) - { - num7 = 0; - } - if (num8 > Main.maxTilesX) - { - num8 = Main.maxTilesX; - } - if (num9 < 0) - { - num9 = 0; - } - if (num10 > Main.maxTilesY) - { - num10 = Main.maxTilesY; - } - double num11 = num * (double)WorldGen.genRand.Next(80, 120) * 0.01; //80 120 - float num12 = vector.Y + 1f; - for (int k = num7; k < num8; k++) - { - if (WorldGen.genRand.Next(2) == 0) - { - num12 += (float)WorldGen.genRand.Next(-1, 2); - } - if (num12 < vector.Y) - { - num12 = vector.Y; - } - if (num12 > vector.Y + 2f) - { - num12 = vector.Y + 2f; - } - for (int l = num9; l < num10; l++) - { - if ((float)l > num12) - { - float arg_218_0 = Math.Abs((float)k - vector.X); - float num13 = Math.Abs((float)l - vector.Y) * 3f; - if (Math.Sqrt((double)(arg_218_0 * arg_218_0 + num13 * num13)) < num11 * 0.4) - { - if (k < num3) - { - num3 = k; - } - if (k > num4) - { - num4 = k; - } - if (l < num5) - { - num5 = l; - } - if (l > num6) - { - num6 = l; - } - Main.tile[k, l].active(true); - Main.tile[k, l].type = (ushort)(WorldGen.crimson ? 400 : 401); //ebonstone or crimstone - WorldGen.SquareTileFrame(k, l, true); - } - } - } - } - vector += vector2; - vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; - if (vector2.X > 1f) - { - vector2.X = 1f; - } - if (vector2.X < -1f) - { - vector2.X = -1f; - } - if ((double)vector2.Y > 0.2) - { - vector2.Y = -0.2f; - } - if ((double)vector2.Y < -0.2) - { - vector2.Y = -0.2f; - } - } - int m = num3; - int num15; - for (m += WorldGen.genRand.Next(5); m < num4; m += WorldGen.genRand.Next(num15, (int)((double)num15 * 1.5))) - { - int num14 = num6; - while (!Main.tile[m, num14].active()) - { - num14--; - } - num14 += WorldGen.genRand.Next(-3, 4); - num15 = WorldGen.genRand.Next(4, 8); - int num16 = (WorldGen.crimson ? 400 : 401); - if (WorldGen.genRand.Next(4) == 0) - { - num16 = (WorldGen.crimson ? 398 : 399); - } - for (int n = m - num15; n <= m + num15; n++) - { - for (int num17 = num14 - num15; num17 <= num14 + num15; num17++) - { - if (num17 > num5) - { - float arg_409_0 = (float)Math.Abs(n - m); - float num18 = (float)(Math.Abs(num17 - num14) * 2); - if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2))) - { - Main.tile[n, num17].active(true); - Main.tile[n, num17].type = (ushort)num16; - WorldGen.SquareTileFrame(n, num17, true); - } - } - } - } - } - num = (double)WorldGen.genRand.Next(80, 95); - num2 = (float)WorldGen.genRand.Next(10, 15); - vector.X = (float)i; - vector.Y = (float)num5; - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - while (vector2.X > -2f && vector2.X < 2f) - { - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - } - vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; - while (num > 0.0 && num2 > 0f) - { - num -= (double)WorldGen.genRand.Next(4); - num2 -= 1f; - int num7 = (int)((double)vector.X - num * 0.5); - int num8 = (int)((double)vector.X + num * 0.5); - int num9 = num5 - 1; - int num10 = (int)((double)vector.Y + num * 0.5); - if (num7 < 0) - { - num7 = 0; - } - if (num8 > Main.maxTilesX) - { - num8 = Main.maxTilesX; - } - if (num9 < 0) - { - num9 = 0; - } - if (num10 > Main.maxTilesY) - { - num10 = Main.maxTilesY; - } - double num11 = num * (double)WorldGen.genRand.Next(80, 120) * 0.01; - float num19 = vector.Y + 1f; - for (int num20 = num7; num20 < num8; num20++) - { - if (WorldGen.genRand.Next(2) == 0) - { - num19 += (float)WorldGen.genRand.Next(-1, 2); - } - if (num19 < vector.Y) - { - num19 = vector.Y; - } - if (num19 > vector.Y + 2f) - { - num19 = vector.Y + 2f; - } - for (int num21 = num9; num21 < num10; num21++) - { - if ((float)num21 > num19) - { - float arg_69E_0 = Math.Abs((float)num20 - vector.X); - float num22 = Math.Abs((float)num21 - vector.Y) * 3f; - if (Math.Sqrt((double)(arg_69E_0 * arg_69E_0 + num22 * num22)) < num11 * 0.4 && - Main.tile[num20, num21].type == (WorldGen.crimson ? 400 : 401)) - { - Main.tile[num20, num21].type = (ushort)(WorldGen.crimson ? 22 : 204); //ore - WorldGen.SquareTileFrame(num20, num21, true); - } - } - } - } - vector += vector2; - vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; - if (vector2.X > 1f) - { - vector2.X = 1f; - } - if (vector2.X < -1f) - { - vector2.X = -1f; - } - if ((double)vector2.Y > 0.2) - { - vector2.Y = -0.2f; - } - if ((double)vector2.Y < -0.2) - { - vector2.Y = -0.2f; - } - } - int num23 = num3; - num23 += WorldGen.genRand.Next(5); - while (num23 < num4) - { - int num24 = num6; - while ((!Main.tile[num23, num24].active() || Main.tile[num23, num24].type != 0) && num23 < num4) - { - num24--; - if (num24 < num5) - { - num24 = num6; - num23 += WorldGen.genRand.Next(1, 4); - } - } - if (num23 < num4) - { - num24 += WorldGen.genRand.Next(0, 4); - int num25 = WorldGen.genRand.Next(2, 5); - int num26 = (WorldGen.crimson ? 400 : 401); - for (int num27 = num23 - num25; num27 <= num23 + num25; num27++) - { - for (int num28 = num24 - num25; num28 <= num24 + num25; num28++) - { - if (num28 > num5) - { - float arg_890_0 = (float)Math.Abs(num27 - num23); - float num29 = (float)(Math.Abs(num28 - num24) * 2); - if (Math.Sqrt((double)(arg_890_0 * arg_890_0 + num29 * num29)) < (double)num25) - { - Main.tile[num27, num28].type = (ushort)num26; - WorldGen.SquareTileFrame(num27, num28, true); - } - } - } - } - num23 += WorldGen.genRand.Next(num25, (int)((double)num25 * 1.5)); - } - } - for (int num30 = num3 - 20; num30 <= num4 + 20; num30++) - { - for (int num31 = num5 - 20; num31 <= num6 + 20; num31++) - { - bool flag = true; - for (int num32 = num30 - 1; num32 <= num30 + 1; num32++) - { - for (int num33 = num31 - 1; num33 <= num31 + 1; num33++) - { - if (!Main.tile[num32, num33].active()) - { - flag = false; - } - } - } - if (flag) - { - Main.tile[num30, num31].wall = (ushort)(WorldGen.crimson ? 220 : 221); - WorldGen.SquareWallFrame(num30, num31, true); - } - } - } - for (int num34 = num3; num34 <= num4; num34++) - { - int num35 = num5 - 10; - while (!Main.tile[num34, num35 + 1].active()) - { - num35++; - } - if (num35 < num6 && Main.tile[num34, num35 + 1].type == (WorldGen.crimson ? 400 : 401)) - { - if (WorldGen.genRand.Next(10) == 0) - { - int num36 = WorldGen.genRand.Next(1, 3); - for (int num37 = num34 - num36; num37 <= num34 + num36; num37++) - { - if (Main.tile[num37, num35].type == (WorldGen.crimson ? 400 : 401)) - { - Main.tile[num37, num35].active(false); - Main.tile[num37, num35].liquid = 255; - Main.tile[num37, num35].lava(false); - WorldGen.SquareTileFrame(num34, num35, true); - } - if (Main.tile[num37, num35 + 1].type == (WorldGen.crimson ? 400 : 401)) - { - Main.tile[num37, num35 + 1].active(false); - Main.tile[num37, num35 + 1].liquid = 255; - Main.tile[num37, num35 + 1].lava(false); - WorldGen.SquareTileFrame(num34, num35 + 1, true); - } - if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (WorldGen.crimson ? 400 : 401)) - { - Main.tile[num37, num35 + 2].active(false); - Main.tile[num37, num35 + 2].liquid = 255; - Main.tile[num37, num35 + 2].lava(false); - WorldGen.SquareTileFrame(num34, num35 + 2, true); - } - } - } - if (WorldGen.genRand.Next(5) == 0) - { - Main.tile[num34, num35].liquid = 255; - } - Main.tile[num34, num35].lava(false); - WorldGen.SquareTileFrame(num34, num35, true); - } - } - int num38 = WorldGen.genRand.Next(4); - for (int num39 = 0; num39 <= num38; num39++) - { - int num40 = WorldGen.genRand.Next(num3 - 5, num4 + 5); - int num41 = num5 - WorldGen.genRand.Next(20, 40); - int num42 = WorldGen.genRand.Next(4, 8); - int num43 = (WorldGen.crimson ? 400 : 401); - if (WorldGen.genRand.Next(2) == 0) - { - num43 = (WorldGen.crimson ? 398 : 399); - } - for (int num44 = num40 - num42; num44 <= num40 + num42; num44++) - { - for (int num45 = num41 - num42; num45 <= num41 + num42; num45++) - { - float arg_C74_0 = (float)Math.Abs(num44 - num40); - float num46 = (float)(Math.Abs(num45 - num41) * 2); - if (Math.Sqrt((double)(arg_C74_0 * arg_C74_0 + num46 * num46)) < (double)(num42 + WorldGen.genRand.Next(-1, 2))) - { - Main.tile[num44, num45].active(true); - Main.tile[num44, num45].type = (ushort)num43; - WorldGen.SquareTileFrame(num44, num45, true); - } - } - } - for (int num47 = num40 - num42 + 2; num47 <= num40 + num42 - 2; num47++) - { - int num48 = num41 - num42; - while (!Main.tile[num47, num48].active()) - { - num48++; - } - Main.tile[num47, num48].active(false); - Main.tile[num47, num48].liquid = 255; - WorldGen.SquareTileFrame(num47, num48, true); - } - } - } - #endregion - - #region EvilIslandHouse - public static void EvilIslandHouse(int i, int j) - { - ushort type = (ushort)(WorldGen.crimson ? 152 : 347); //tile - byte wall = (byte)(WorldGen.crimson ? 35 : 174); //wall - Vector2 vector = new Vector2((float)i, (float)j); - int num = 1; - if (WorldGen.genRand.Next(2) == 0) - { - num = -1; - } - int num2 = WorldGen.genRand.Next(7, 12); - int num3 = WorldGen.genRand.Next(5, 7); - vector.X = (float)(i + (num2 + 2) * num); - for (int k = j - 15; k < j + 30; k++) - { - if (Main.tile[(int)vector.X, k].active()) - { - vector.Y = (float)(k - 1); - break; - } - } - vector.X = (float)i; - int num4 = (int)(vector.X - (float)num2 - 1f); - int num5 = (int)(vector.X + (float)num2 + 1f); - int num6 = (int)(vector.Y - (float)num3 - 1f); - int num7 = (int)(vector.Y + 2f); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX) - { - num5 = Main.maxTilesX; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int l = num4; l <= num5; l++) - { - for (int m = num6 - 1; m < num7 + 1; m++) - { - if (m != num6 - 1 || (l != num4 && l != num5)) - { - Main.tile[l, m].active(true); - Main.tile[l, m].liquid = 0; - Main.tile[l, m].type = type; - Main.tile[l, m].wall = 0; - Main.tile[l, m].halfBrick(false); - Main.tile[l, m].slope(0); - } - } - } - num4 = (int)(vector.X - (float)num2); - num5 = (int)(vector.X + (float)num2); - num6 = (int)(vector.Y - (float)num3); - num7 = (int)(vector.Y + 1f); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX) - { - num5 = Main.maxTilesX; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int n = num4; n <= num5; n++) - { - for (int num8 = num6; num8 < num7; num8++) - { - if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].wall == 0) - { - Main.tile[n, num8].active(false); - Main.tile[n, num8].wall = wall; - } - } - } - int num9 = i + (num2 + 1) * num; - int num10 = (int)vector.Y; - for (int num11 = num9 - 2; num11 <= num9 + 2; num11++) - { - Main.tile[num11, num10].active(false); - Main.tile[num11, num10 - 1].active(false); - Main.tile[num11, num10 - 2].active(false); - } - WorldGen.PlaceTile(num9, num10, 10, true, false, -1, (WorldGen.crimson ? 1 : 10)); //door - num9 = i + (num2 + 1) * -num - num; - for (int num12 = num6; num12 <= num7 + 1; num12++) - { - Main.tile[num9, num12].active(true); - Main.tile[num9, num12].liquid = 0; - Main.tile[num9, num12].type = type; - Main.tile[num9, num12].wall = 0; - Main.tile[num9, num12].halfBrick(false); - Main.tile[num9, num12].slope(0); - } - int contain = 0; - if (WorldGen.crimson) - { - contain = 1571; //scourge - } - else - { - contain = 1569; //vampire - } - WorldGen.AddBuriedChest(i, num10 - 3, contain, false, (WorldGen.crimson ? 19 : 20)); //chest - int num14 = i - num2 / 2 + 1; - int num15 = i + num2 / 2 - 1; - int num16 = 1; - if (num2 > 10) - { - num16 = 2; - } - int num17 = (num6 + num7) / 2 - 1; - for (int num18 = num14 - num16; num18 <= num14 + num16; num18++) - { - for (int num19 = num17 - 1; num19 <= num17 + 1; num19++) - { - Main.tile[num18, num19].wall = 21; //glass - } - } - for (int num20 = num15 - num16; num20 <= num15 + num16; num20++) - { - for (int num21 = num17 - 1; num21 <= num17 + 1; num21++) - { - Main.tile[num20, num21].wall = 21; //glass - } - } - int num22 = i + (num2 / 2 + 1) * -num; - WorldGen.PlaceTile(num22, num7 - 1, 14, true, false, -1, (WorldGen.crimson ? 1 : 8)); //table - WorldGen.PlaceTile(num22 - 2, num7 - 1, 15, true, false, 0, (WorldGen.crimson ? 2 : 11)); //chair - Tile expr_510 = Main.tile[num22 - 2, num7 - 1]; - expr_510.frameX += 18; - Tile expr_531 = Main.tile[num22 - 2, num7 - 2]; - expr_531.frameX += 18; - WorldGen.PlaceTile(num22 + 2, num7 - 1, 15, true, false, 0, (WorldGen.crimson ? 2 : 11)); //chair - } - #endregion - - #region UnderworldIsland - public static void UnderworldIsland(int i, int j, int sizeMin, int sizeMax, int sizeMin2, int sizeMax2) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - double num = (double)WorldGen.genRand.Next(sizeMin, sizeMax); //100 150 - float num2 = (float)WorldGen.genRand.Next(sizeMin / 5, sizeMax / 5); //20 30 - int num3 = i; - int num4 = i; - int num5 = i; - int num6 = j; - Vector2 vector; - vector.X = (float)i; - vector.Y = (float)j; - Vector2 vector2; - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - while (vector2.X > -2f && vector2.X < 2f) - { - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - } - vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; - while (num > 0.0 && num2 > 0f) - { - num -= (double)WorldGen.genRand.Next(4); - num2 -= 1f; - int num7 = (int)((double)vector.X - num * 0.5); - int num8 = (int)((double)vector.X + num * 0.5); - int num9 = (int)((double)vector.Y - num * 0.5); - int num10 = (int)((double)vector.Y + num * 0.5); - if (num7 < 0) - { - num7 = 0; - } - if (num8 > Main.maxTilesX) - { - num8 = Main.maxTilesX; - } - if (num9 < 0) - { - num9 = 0; - } - if (num10 > Main.maxTilesY) - { - num10 = Main.maxTilesY; - } - double num11 = num * (double)WorldGen.genRand.Next(sizeMin, sizeMax) * 0.01; //80 120 - float num12 = vector.Y + 1f; - for (int k = num7; k < num8; k++) - { - if (WorldGen.genRand.Next(2) == 0) - { - num12 += (float)WorldGen.genRand.Next(-1, 2); - } - if (num12 < vector.Y) - { - num12 = vector.Y; - } - if (num12 > vector.Y + 2f) - { - num12 = vector.Y + 2f; - } - for (int l = num9; l < num10; l++) - { - if ((float)l > num12) - { - float arg_218_0 = Math.Abs((float)k - vector.X); - float num13 = Math.Abs((float)l - vector.Y) * 3f; - if (Math.Sqrt((double)(arg_218_0 * arg_218_0 + num13 * num13)) < num11 * 0.4) - { - if (k < num3) - { - num3 = k; - } - if (k > num4) - { - num4 = k; - } - if (l < num5) - { - num5 = l; - } - if (l > num6) - { - num6 = l; - } - Main.tile[k, l].active(true); - Main.tile[k, l].type = (ushort)mod.TileType("BrimstoneSlag"); - WorldGen.SquareTileFrame(k, l, true); - } - } - } - } - vector += vector2; - vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; - if (vector2.X > 1f) - { - vector2.X = 1f; - } - if (vector2.X < -1f) - { - vector2.X = -1f; - } - if ((double)vector2.Y > 0.2) - { - vector2.Y = -0.2f; - } - if ((double)vector2.Y < -0.2) - { - vector2.Y = -0.2f; - } - } - int m = num3; - int num15; - for (m += WorldGen.genRand.Next(5); m < num4; m += WorldGen.genRand.Next(num15, (int)((double)num15 * 1.5))) - { - int num14 = num6; - while (!Main.tile[m, num14].active()) - { - num14--; - } - num14 += WorldGen.genRand.Next(-3, 4); - num15 = WorldGen.genRand.Next(4, 8); - int num16 = mod.TileType("BrimstoneSlag"); - if (WorldGen.genRand.Next(4) == 0) - { - num16 = mod.TileType("CharredOre"); - } - for (int n = m - num15; n <= m + num15; n++) - { - for (int num17 = num14 - num15; num17 <= num14 + num15; num17++) - { - if (num17 > num5) - { - float arg_409_0 = (float)Math.Abs(n - m); - float num18 = (float)(Math.Abs(num17 - num14) * 2); - if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2))) - { - Main.tile[n, num17].active(true); - Main.tile[n, num17].type = (ushort)num16; - WorldGen.SquareTileFrame(n, num17, true); - } - } - } - } - } - num = (double)WorldGen.genRand.Next(sizeMin2, sizeMax2); - num2 = (float)WorldGen.genRand.Next(sizeMin2 / 8, sizeMax2 / 8); - vector.X = (float)i; - vector.Y = (float)num5; - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - while (vector2.X > -2f && vector2.X < 2f) - { - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - } - vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; - while (num > 0.0 && num2 > 0f) - { - num -= (double)WorldGen.genRand.Next(4); - num2 -= 1f; - vector += vector2; - vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; - if (vector2.X > 1f) - { - vector2.X = 1f; - } - if (vector2.X < -1f) - { - vector2.X = -1f; - } - if ((double)vector2.Y > 0.2) - { - vector2.Y = -0.2f; - } - if ((double)vector2.Y < -0.2) - { - vector2.Y = -0.2f; - } - } - int num23 = num3; - num23 += WorldGen.genRand.Next(5); - while (num23 < num4) - { - int num24 = num6; - while ((!Main.tile[num23, num24].active() || Main.tile[num23, num24].type != 0) && num23 < num4) - { - num24--; - if (num24 < num5) - { - num24 = num6; - num23 += WorldGen.genRand.Next(1, 4); - } - } - if (num23 < num4) - { - num24 += WorldGen.genRand.Next(0, 4); - int num25 = WorldGen.genRand.Next(2, 5); - int num26 = mod.TileType("BrimstoneSlag"); - for (int num27 = num23 - num25; num27 <= num23 + num25; num27++) - { - for (int num28 = num24 - num25; num28 <= num24 + num25; num28++) - { - if (num28 > num5) - { - float arg_890_0 = (float)Math.Abs(num27 - num23); - float num29 = (float)(Math.Abs(num28 - num24) * 2); - if (Math.Sqrt((double)(arg_890_0 * arg_890_0 + num29 * num29)) < (double)num25) - { - Main.tile[num27, num28].type = (ushort)num26; - WorldGen.SquareTileFrame(num27, num28, true); - } - } - } - } - num23 += WorldGen.genRand.Next(num25, (int)((double)num25 * 1.5)); - } - } - for (int num34 = num3; num34 <= num4; num34++) - { - int num35 = num5 - 10; - while (!Main.tile[num34, num35 + 1].active()) - { - num35++; - } - if (num35 < num6 && Main.tile[num34, num35 + 1].type == (ushort)mod.TileType("BrimstoneSlag")) - { - if (WorldGen.genRand.Next(10) == 0) - { - int num36 = WorldGen.genRand.Next(1, 3); - for (int num37 = num34 - num36; num37 <= num34 + num36; num37++) - { - if (Main.tile[num37, num35].type == (ushort)mod.TileType("BrimstoneSlag")) - { - Main.tile[num37, num35].active(false); - Main.tile[num37, num35].liquid = 255; - Main.tile[num37, num35].lava(false); - WorldGen.SquareTileFrame(num34, num35, true); - } - if (Main.tile[num37, num35 + 1].type == (ushort)mod.TileType("BrimstoneSlag")) - { - Main.tile[num37, num35 + 1].active(false); - Main.tile[num37, num35 + 1].liquid = 255; - Main.tile[num37, num35 + 1].lava(false); - WorldGen.SquareTileFrame(num34, num35 + 1, true); - } - if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (ushort)mod.TileType("BrimstoneSlag")) - { - Main.tile[num37, num35 + 2].active(false); - Main.tile[num37, num35 + 2].liquid = 255; - Main.tile[num37, num35 + 2].lava(false); - WorldGen.SquareTileFrame(num34, num35 + 2, true); - } - } - } - if (WorldGen.genRand.Next(5) == 0) - { - Main.tile[num34, num35].liquid = 255; - } - Main.tile[num34, num35].lava(false); - WorldGen.SquareTileFrame(num34, num35, true); - } - } - } - #endregion - - #region UnderworldIslandHouse - public static void UnderworldIslandHouse(int i, int j, int item) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - ushort type = (ushort)mod.TileType("BrimstoneSlag"); //tile - byte wall = (byte)14; //wall - Vector2 vector = new Vector2((float)i, (float)j); - int num = 1; - if (WorldGen.genRand.Next(2) == 0) - { - num = -1; - } - int num2 = WorldGen.genRand.Next(7, 12); - int num3 = WorldGen.genRand.Next(5, 7); - vector.X = (float)(i + (num2 + 2) * num); - for (int k = j - 15; k < j + 30; k++) - { - if (Main.tile[(int)vector.X, k].active()) - { - vector.Y = (float)(k - 1); - break; - } - } - vector.X = (float)i; - int num4 = (int)(vector.X - (float)num2 - 1f); - int num5 = (int)(vector.X + (float)num2 + 1f); - int num6 = (int)(vector.Y - (float)num3 - 1f); - int num7 = (int)(vector.Y + 2f); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX) - { - num5 = Main.maxTilesX; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int l = num4; l <= num5; l++) - { - for (int m = num6 - 1; m < num7 + 1; m++) - { - if (m != num6 - 1 || (l != num4 && l != num5)) - { - Main.tile[l, m].active(true); - Main.tile[l, m].liquid = 0; - Main.tile[l, m].type = type; - Main.tile[l, m].wall = 0; - Main.tile[l, m].halfBrick(false); - Main.tile[l, m].slope(0); - } - } - } - num4 = (int)(vector.X - (float)num2); - num5 = (int)(vector.X + (float)num2); - num6 = (int)(vector.Y - (float)num3); - num7 = (int)(vector.Y + 1f); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX) - { - num5 = Main.maxTilesX; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int n = num4; n <= num5; n++) - { - for (int num8 = num6; num8 < num7; num8++) - { - if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].wall == 0) - { - Main.tile[n, num8].active(false); - Main.tile[n, num8].wall = wall; - } - } - } - int num9 = i + (num2 + 1) * num; - int num10 = (int)vector.Y; - for (int num11 = num9 - 2; num11 <= num9 + 2; num11++) - { - Main.tile[num11, num10].active(false); - Main.tile[num11, num10 - 1].active(false); - Main.tile[num11, num10 - 2].active(false); - } - WorldGen.PlaceTile(num9, num10, 10, true, false, -1, 19); //door - num9 = i + (num2 + 1) * -num - num; - for (int num12 = num6; num12 <= num7 + 1; num12++) - { - Main.tile[num9, num12].active(true); - Main.tile[num9, num12].liquid = 0; - Main.tile[num9, num12].type = type; - Main.tile[num9, num12].wall = 0; - Main.tile[num9, num12].halfBrick(false); - Main.tile[num9, num12].slope(0); - } - WorldGen.AddBuriedChest(i, num10 - 3, item, false, 4); //chest - int num22 = i + (num2 / 2 + 1) * -num; - WorldGen.PlaceTile(num22, num7 - 1, 14, true, false, -1, 13); //table - WorldGen.PlaceTile(num22 - 2, num7 - 1, 15, true, false, 0, 16); //chair - Tile expr_510 = Main.tile[num22 - 2, num7 - 1]; - expr_510.frameX += 18; - Tile expr_531 = Main.tile[num22 - 2, num7 - 2]; - expr_531.frameX += 18; - WorldGen.PlaceTile(num22 + 2, num7 - 1, 15, true, false, 0, 16); //chair - } - #endregion - - #region AbyssIsland - public static void AbyssIsland(int i, int j, int sizeMin, int sizeMax, int sizeMin2, int sizeMax2, bool hasChest, bool hasTenebris, bool isVoid) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - int sizeMinSmall = sizeMin / 5; - int sizeMaxSmall = sizeMax / 5; - double num = (double)WorldGen.genRand.Next(sizeMin, sizeMax); //100 150 - float num2 = (float)WorldGen.genRand.Next(sizeMinSmall, sizeMaxSmall); //20 30 - int num3 = i; - int num4 = i; - int num5 = i; - int num6 = j; - Vector2 vector; - vector.X = (float)i; - vector.Y = (float)j; - Vector2 vector2; - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - while (vector2.X > -2f && vector2.X < 2f) - { - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - } - vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; - while (num > 0.0 && num2 > 0f) - { - num -= (double)WorldGen.genRand.Next(4); - num2 -= 1f; - int num7 = (int)((double)vector.X - num * 0.5); - int num8 = (int)((double)vector.X + num * 0.5); - int num9 = (int)((double)vector.Y - num * 0.5); - int num10 = (int)((double)vector.Y + num * 0.5); - if (num7 < 0) - { - num7 = 0; - } - if (num8 > Main.maxTilesX) - { - num8 = Main.maxTilesX; - } - if (num9 < 0) - { - num9 = 0; - } - if (num10 > Main.maxTilesY) - { - num10 = Main.maxTilesY; - } - double num11 = num * (double)WorldGen.genRand.Next(sizeMin, sizeMax) * 0.01; //80 120 - float num12 = vector.Y + 1f; - for (int k = num7; k < num8; k++) - { - if (WorldGen.genRand.Next(2) == 0) - { - num12 += (float)WorldGen.genRand.Next(-1, 2); - } - if (num12 < vector.Y) - { - num12 = vector.Y; - } - if (num12 > vector.Y + 2f) - { - num12 = vector.Y + 2f; - } - for (int l = num9; l < num10; l++) - { - if ((float)l > num12) - { - float arg_218_0 = Math.Abs((float)k - vector.X); - float num13 = Math.Abs((float)l - vector.Y) * 3f; - if (Math.Sqrt((double)(arg_218_0 * arg_218_0 + num13 * num13)) < num11 * 0.4) - { - if (k < num3) - { - num3 = k; - } - if (k > num4) - { - num4 = k; - } - if (l < num5) - { - num5 = l; - } - if (l > num6) - { - num6 = l; - } - Main.tile[k, l].active(true); - Main.tile[k, l].type = (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); - SafeSquareTileFrame(k, l, true); - } - } - } - } - vector += vector2; - vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; - if (vector2.X > 1f) - { - vector2.X = 1f; - } - if (vector2.X < -1f) - { - vector2.X = -1f; - } - if ((double)vector2.Y > 0.2) - { - vector2.Y = -0.2f; - } - if ((double)vector2.Y < -0.2) - { - vector2.Y = -0.2f; - } - } - int m = num3; - int num15; - for (m += WorldGen.genRand.Next(5); m < num4; m += WorldGen.genRand.Next(num15, (int)((double)num15 * 1.5))) - { - int num14 = num6; - while (!Main.tile[m, num14].active()) - { - num14--; - } - num14 += WorldGen.genRand.Next(-3, 4); - num15 = WorldGen.genRand.Next(4, 8); - int num16 = (isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); - if (WorldGen.genRand.Next(4) == 0) - { - num16 = (hasChest ? mod.TileType("ChaoticOre") : mod.TileType("PlantyMush")); - } - for (int n = m - num15; n <= m + num15; n++) - { - for (int num17 = num14 - num15; num17 <= num14 + num15; num17++) - { - if (num17 > num5) - { - float arg_409_0 = (float)Math.Abs(n - m); - float num18 = (float)(Math.Abs(num17 - num14) * 2); - if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2))) - { - Main.tile[n, num17].active(true); - Main.tile[n, num17].type = (ushort)num16; - SafeSquareTileFrame(n, num17, true); - } - } - } - } - } - if (hasTenebris) - { - int p = num3; - int num150; - for (p += WorldGen.genRand.Next(5); p < num4; p += WorldGen.genRand.Next(num150, (int)((double)num150 * 1.5))) - { - int num14 = num6; - while (!Main.tile[p, num14].active()) - { - num14--; - } - num14 += WorldGen.genRand.Next(-3, 4); //-3 4 - num150 = 1; //4 8 - int num16 = mod.TileType("Tenebris"); - for (int n = p - num150; n <= p + num150; n++) - { - for (int num17 = num14 - num150; num17 <= num14 + num150; num17++) - { - if (num17 > num5) - { - float arg_409_0 = (float)Math.Abs(n - p); - float num18 = (float)(Math.Abs(num17 - num14) * 2); - if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num150 + WorldGen.genRand.Next(2))) - { - Main.tile[n, num17].active(true); - Main.tile[n, num17].type = (ushort)num16; - SafeSquareTileFrame(n, num17, true); - } - } - } - } - } - } - int sizeMinSmall2 = sizeMin2 / 8; - int sizeMaxSmall2 = sizeMax2 / 8; - num = (double)WorldGen.genRand.Next(sizeMin2, sizeMax2); - num2 = (float)WorldGen.genRand.Next(sizeMinSmall2, sizeMaxSmall2); - vector.X = (float)i; - vector.Y = (float)num5; - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - while (vector2.X > -2f && vector2.X < 2f) - { - vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; - } - vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; - while (num > 0.0 && num2 > 0f) - { - num -= (double)WorldGen.genRand.Next(4); - num2 -= 1f; - vector += vector2; - vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; - if (vector2.X > 1f) - { - vector2.X = 1f; - } - if (vector2.X < -1f) - { - vector2.X = -1f; - } - if ((double)vector2.Y > 0.2) - { - vector2.Y = -0.2f; - } - if ((double)vector2.Y < -0.2) - { - vector2.Y = -0.2f; - } - } - int num23 = num3; - num23 += WorldGen.genRand.Next(5); - while (num23 < num4) - { - int num24 = num6; - while ((!Main.tile[num23, num24].active() || Main.tile[num23, num24].type != 0) && num23 < num4) - { - num24--; - if (num24 < num5) - { - num24 = num6; - num23 += WorldGen.genRand.Next(1, 4); - } - } - if (num23 < num4) - { - num24 += WorldGen.genRand.Next(0, 4); - int num25 = WorldGen.genRand.Next(2, 5); - int num26 = (isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); - for (int num27 = num23 - num25; num27 <= num23 + num25; num27++) - { - for (int num28 = num24 - num25; num28 <= num24 + num25; num28++) - { - if (num28 > num5) - { - float arg_890_0 = (float)Math.Abs(num27 - num23); - float num29 = (float)(Math.Abs(num28 - num24) * 2); - if (Math.Sqrt((double)(arg_890_0 * arg_890_0 + num29 * num29)) < (double)num25) - { - Main.tile[num27, num28].type = (ushort)num26; - SafeSquareTileFrame(num27, num28, true); - } - } - } - } - num23 += WorldGen.genRand.Next(num25, (int)((double)num25 * 1.5)); - } - } - for (int num30 = num3 - 20; num30 <= num4 + 20; num30++) - { - for (int num31 = num5 - 20; num31 <= num6 + 20; num31++) - { - bool flag = true; - for (int num32 = num30 - 1; num32 <= num30 + 1; num32++) - { - for (int num33 = num31 - 1; num33 <= num31 + 1; num33++) - { - if (!Main.tile[num32, num33].active()) - { - flag = false; - } - } - } - if (flag) - { - Main.tile[num30, num31].wall = (ushort)(isVoid ? mod.WallType("VoidstoneWallUnsafe") : mod.WallType("AbyssGravelWall")); - WorldGen.SquareWallFrame(num30, num31, true); - } - } - } - for (int num34 = num3; num34 <= num4; num34++) - { - int num35 = num5 - 10; - while (!Main.tile[num34, num35 + 1].active()) - { - num35++; - } - if (num35 < num6 && Main.tile[num34, num35 + 1].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) - { - if (WorldGen.genRand.Next(10) == 0) - { - int num36 = WorldGen.genRand.Next(1, 3); - for (int num37 = num34 - num36; num37 <= num34 + num36; num37++) - { - if (Main.tile[num37, num35].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) - { - Main.tile[num37, num35].active(false); - Main.tile[num37, num35].liquid = 255; - Main.tile[num37, num35].lava(false); - SafeSquareTileFrame(num34, num35, true); - } - if (Main.tile[num37, num35 + 1].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) - { - Main.tile[num37, num35 + 1].active(false); - Main.tile[num37, num35 + 1].liquid = 255; - Main.tile[num37, num35 + 1].lava(false); - SafeSquareTileFrame(num34, num35 + 1, true); - } - if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) - { - Main.tile[num37, num35 + 2].active(false); - Main.tile[num37, num35 + 2].liquid = 255; - Main.tile[num37, num35 + 2].lava(false); - SafeSquareTileFrame(num34, num35 + 2, true); - } - } - } - if (WorldGen.genRand.Next(5) == 0) - { - Main.tile[num34, num35].liquid = 255; - } - Main.tile[num34, num35].lava(false); - SafeSquareTileFrame(num34, num35, true); - } - } - } - #endregion - - #region AbyssIslandHouse - public static void AbyssIslandHouse(int i, int j, int itemChoice, bool isVoid) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - ushort type = (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); //tile - ushort wall = (ushort)(isVoid ? mod.WallType("VoidstoneWallUnsafe") : mod.WallType("AbyssGravelWall")); //wall - Vector2 vector = new Vector2((float)i, (float)j); - int num = 1; - if (WorldGen.genRand.Next(2) == 0) - { - num = -1; - } - int num2 = WorldGen.genRand.Next(5, 9); - int num3 = 3; - vector.X = (float)(i + (num2 + 2) * num); - for (int k = j - 15; k < j + 30; k++) - { - if (Main.tile[(int)vector.X, k].active()) - { - vector.Y = (float)(k - 1); - break; - } - } - vector.X = (float)i; - int num4 = (int)(vector.X - (float)num2 - 1f); - int num5 = (int)(vector.X + (float)num2 + 1f); - int num6 = (int)(vector.Y - (float)num3 - 1f); - int num7 = (int)(vector.Y + 2f); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX) - { - num5 = Main.maxTilesX; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int l = num4; l <= num5; l++) - { - for (int m = num6 - 1; m < num7 + 1; m++) - { - if (m != num6 - 1 || (l != num4 && l != num5)) - { - Main.tile[l, m].active(true); - Main.tile[l, m].type = type; - Main.tile[l, m].wall = wall; - Main.tile[l, m].halfBrick(false); - Main.tile[l, m].slope(0); - } - } - } - num4 = (int)(vector.X - (float)num2); - num5 = (int)(vector.X + (float)num2); - num6 = (int)(vector.Y - (float)num3); - num7 = (int)(vector.Y + 1f); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX) - { - num5 = Main.maxTilesX; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int n = num4; n <= num5; n++) - { - for (int num8 = num6; num8 < num7; num8++) - { - if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].wall == wall) - { - Main.tile[n, num8].active(false); - } - } - } - int num9 = i + (num2 + 1) * num; - int num10 = (int)vector.Y; - for (int num11 = num9 - 2; num11 <= num9 + 2; num11++) - { - Main.tile[num11, num10].active(false); - Main.tile[num11, num10 - 1].active(false); - Main.tile[num11, num10 - 2].active(false); - } - switch (itemChoice) - { - case 0: itemChoice = mod.ItemType("TorrentialTear"); break; //rain item - case 1: itemChoice = mod.ItemType("IronBoots"); break; //movement acc - case 2: itemChoice = mod.ItemType("DepthCharm"); break; //regen acc - case 3: itemChoice = mod.ItemType("Archerfish"); break; //ranged - case 4: itemChoice = mod.ItemType("AnechoicPlating"); break; //defense acc - case 5: itemChoice = mod.ItemType("BallOFugu"); break; //melee - case 6: itemChoice = mod.ItemType("StrangeOrb"); break; //light pet - case 7: itemChoice = mod.ItemType("HerringStaff"); break; //summon - case 8: itemChoice = mod.ItemType("BlackAnurian"); break; //magic - case 9: itemChoice = mod.ItemType("Lionfish"); break; //throwing - default: itemChoice = 497; break; - } - WorldGen.AddBuriedChest(i, num10 - 3, itemChoice, false, 4); //chest - } - #endregion - - #region IcePyramid - public static bool IcePyramid(int i, int j) - { - ushort num = 161; - int arg_36_0 = j - WorldGen.genRand.Next(0, 7); - int num2 = WorldGen.genRand.Next(9, 13); - int num3 = 1; - int num4 = j + WorldGen.genRand.Next(75, 125); //75 125 - for (int k = arg_36_0; k < num4; k++) - { - for (int l = i - num3; l < i + num3 - 1; l++) - { - Main.tile[l, k].type = num; - Main.tile[l, k].active(true); - Main.tile[l, k].halfBrick(false); - Main.tile[l, k].slope(0); - } - num3++; - } - for (int m = i - num3 - 5; m <= i + num3 + 5; m++) - { - for (int n = j - 1; n <= num4 + 1; n++) - { - bool flag = true; - for (int num5 = m - 1; num5 <= m + 1; num5++) - { - for (int num6 = n - 1; num6 <= n + 1; num6++) - { - if (Main.tile[num5, num6].type != num) - { - flag = false; - } - } - } - if (flag) - { - Main.tile[m, n].wall = 71; - WorldGen.SquareWallFrame(m, n, true); - } - } - } - int num7 = 1; - if (WorldGen.genRand.Next(2) == 0) - { - num7 = -1; - } - int num8 = i - num2 * num7; - int num9 = j + num2; - int num10 = WorldGen.genRand.Next(5, 8); - bool flag2 = true; - int num11 = WorldGen.genRand.Next(20, 30); - while (flag2) - { - flag2 = false; - bool flag3 = false; - for (int num12 = num9; num12 <= num9 + num10; num12++) - { - int num13 = num8; - if (Main.tile[num13, num12 - 1].type == 161) - { - flag3 = true; - } - if (Main.tile[num13, num12].type == num) - { - Main.tile[num13, num12 + 1].wall = 71; - Main.tile[num13 + num7, num12].wall = 71; - Main.tile[num13, num12].active(false); - flag2 = true; - } - if (flag3) - { - Main.tile[num13, num12].type = 161; - Main.tile[num13, num12].active(true); - Main.tile[num13, num12].halfBrick(false); - Main.tile[num13, num12].slope(0); - } - } - num8 -= num7; - } - num8 = i - num2 * num7; - bool flag4 = true; - bool flag5 = false; - flag2 = true; - while (flag2) - { - for (int num14 = num9; num14 <= num9 + num10; num14++) - { - int num15 = num8; - Main.tile[num15, num14].active(false); - } - num8 += num7; - num9++; - num11--; - if (num9 >= num4 - num10 * 2) - { - num11 = 10; - } - if (num11 <= 0) - { - bool flag6 = false; - if (!flag4 && !flag5) - { - flag5 = true; - flag6 = true; - int num16 = WorldGen.genRand.Next(7, 13); - int num17 = WorldGen.genRand.Next(23, 28); - int num18 = num17; - int num19 = num8; - while (num17 > 0) - { - for (int num20 = num9 - num16 + num10; num20 <= num9 + num10; num20++) - { - if (num17 == num18 || num17 == 1) - { - if (num20 >= num9 - num16 + num10 + 2) - { - Main.tile[num8, num20].active(false); - } - } - else if (num17 == num18 - 1 || num17 == 2 || num17 == num18 - 2 || num17 == 3) - { - if (num20 >= num9 - num16 + num10 + 1) - { - Main.tile[num8, num20].active(false); - } - } - else - { - Main.tile[num8, num20].active(false); - } - } - num17--; - num8 += num7; - } - int num21 = num8 - num7; - int num22 = num21; - int num23 = num19; - if (num21 > num19) - { - num22 = num19; - num23 = num21; - } - int num24 = WorldGen.genRand.Next(3); - if (num24 == 0) - { - num24 = 1861; //diving gear - } - else if (num24 == 1) - { - num24 = 1163; //balloon - } - else if (num24 == 2) - { - num24 = 1253; //shell - } - WorldGen.AddBuriedChest((num22 + num23) / 2, num9, num24, false, 22); - int num25 = WorldGen.genRand.Next(1, 10); - for (int num26 = 0; num26 < num25; num26++) - { - int arg_49B_0 = WorldGen.genRand.Next(num22, num23); - int j2 = num9 + num10; - WorldGen.PlaceSmallPile(arg_49B_0, j2, WorldGen.genRand.Next(16, 19), 1, 185); - } - for (int num27 = num22; num27 <= num23; num27++) - { - WorldGen.PlacePot(num27, num9 + num10, 28, WorldGen.genRand.Next(4, 7)); - } - } - if (flag4) - { - flag4 = false; - num7 *= -1; - num11 = WorldGen.genRand.Next(15, 20); - } - else if (flag6) - { - num11 = WorldGen.genRand.Next(10, 15); - } - else - { - num7 *= -1; - num11 = WorldGen.genRand.Next(20, 40); - } - } - if (num9 >= num4 - num10) - { - flag2 = false; - } - } - int num28 = WorldGen.genRand.Next(20, 40); //100 200 - int num29 = WorldGen.genRand.Next(100, 160); //500 800 - flag2 = true; - int num30 = num10; - num11 = WorldGen.genRand.Next(10, 50); - if (num7 == 1) - { - num8 -= num30; - } - int num31 = WorldGen.genRand.Next(5, 10); - while (flag2) - { - num28--; - num29--; - num11--; - for (int num32 = num8 - num31 - WorldGen.genRand.Next(0, 2); num32 <= num8 + num30 + num31 + WorldGen.genRand.Next(0, 2); num32++) - { - int num33 = num9; - if (num32 >= num8 && num32 <= num8 + num30) - { - Main.tile[num32, num33].active(false); - } - else - { - Main.tile[num32, num33].type = num; - Main.tile[num32, num33].active(true); - Main.tile[num32, num33].halfBrick(false); - Main.tile[num32, num33].slope(0); - } - if (num32 >= num8 - 1 && num32 <= num8 + 1 + num30) - { - Main.tile[num32, num33].wall = 71; - } - } - num9++; - num8 += num7; - if (num28 <= 0) - { - flag2 = false; - for (int num34 = num8 + 1; num34 <= num8 + num30 - 1; num34++) - { - if (Main.tile[num34, num9].active()) - { - flag2 = true; - } - } - } - if (num11 < 0) - { - num11 = WorldGen.genRand.Next(10, 50); - num7 *= -1; - } - if (num29 <= 0) - { - flag2 = false; - } - } - return true; - } - #endregion - - #region SpecialHut - public static void SpecialHut(ushort tile, ushort tile2, ushort wall, int hutType, int chestX, int chestY) - { - int m = WorldGen.genRand.Next(2, 4); - int num6 = WorldGen.genRand.Next(2, 4); - for (int n = chestX - m - 1; n <= chestX + m + 1; n++) - { - for (int num8 = chestY - num6 - 1; num8 <= chestY + num6 + 1; num8++) - { - Main.tile[n, num8].active(true); - Main.tile[n, num8].type = tile; //change - Main.tile[n, num8].liquid = 0; - Main.tile[n, num8].lava(false); - } - } - for (int num9 = chestX - m; num9 <= chestX + m; num9++) - { - for (int num10 = chestY - num6; num10 <= chestY + num6; num10++) - { - Main.tile[num9, num10].active(false); - Main.tile[num9, num10].wall = wall; //change - } - } - for (int num14 = chestX - m - 1; num14 <= chestX + m + 1; num14++) - { - for (int num15 = chestY + num6 - 2; num15 <= chestY + num6; num15++) - { - Main.tile[num14, num15].active(false); - } - } - for (int num16 = chestX - m - 1; num16 <= chestX + m + 1; num16++) - { - for (int num17 = chestY + num6 - 2; num17 <= chestY + num6 - 1; num17++) - { - Main.tile[num16, num17].active(false); - } - } - for (int num18 = chestX - m - 1; num18 <= chestX + m + 1; num18++) - { - int num19 = 4; - int num20 = chestY + num6 + 2; - while (!Main.tile[num18, num20].active() && num20 < Main.maxTilesY && num19 > 0) - { - Main.tile[num18, num20].active(true); - Main.tile[num18, num20].type = tile2; //change - num20++; - num19--; - } - } - m -= WorldGen.genRand.Next(1, 3); - int num21 = chestY - num6 - 2; - while (m > -1) - { - for (int num22 = chestX - m - 1; num22 <= chestX + m + 1; num22++) - { - Main.tile[num22, num21].active(true); - Main.tile[num22, num21].type = tile; //change - } - m -= WorldGen.genRand.Next(1, 3); - num21--; - } - CalamityWorld.SChestX[hutType] = chestX; - CalamityWorld.SChestY[hutType] = chestY; - SpecialChest(hutType); - } - #endregion - - #region SpecialChest - public static void SpecialChest(int itemChoice) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - int item = 0; - int chestType = 0; - switch (itemChoice) //0 to 9 - { - case 0: item = 976; break; //climbing gear - case 1: item = (WorldGen.crimson ? 3016 : 3015); chestType = (WorldGen.crimson ? 43 : 3); break; //flesh knuckles or putrid scent - case 2: item = 908; chestType = 44; break; //lava waders - case 3: item = 1595; chestType = 47; break; //cuffs - case 4: item = 899; chestType = 30; break; //sun stone - case 5: item = 1864; chestType = 32; break; //scarab - case 6: item = 532; chestType = 50; break; //fuck you, star cloak - case 7: item = 554; chestType = 51; break; //fuck you, cross necklace - case 8: item = mod.ItemType("Murasama"); chestType = 44; break; - case 9: item = mod.ItemType("BossRush"); chestType = 4; break; - } - for (int j = CalamityWorld.SChestX[itemChoice] - 1; j <= CalamityWorld.SChestX[itemChoice] + 1; j++) - { - for (int k = CalamityWorld.SChestY[itemChoice]; k <= CalamityWorld.SChestY[itemChoice] + 2; k++) - { - WorldGen.KillTile(j, k, false, false, false); - } - } - for (int l = CalamityWorld.SChestX[itemChoice] - 1; l <= CalamityWorld.SChestX[itemChoice] + 1; l++) - { - for (int m = CalamityWorld.SChestY[itemChoice]; m <= CalamityWorld.SChestY[itemChoice] + 3; m++) - { - if (m < Main.maxTilesY) - { - Main.tile[l, m].slope(0); - Main.tile[l, m].halfBrick(false); - } - } - } - WorldGen.AddBuriedChest(CalamityWorld.SChestX[itemChoice], CalamityWorld.SChestY[itemChoice], item, false, chestType); - } - #endregion - - #region ChasmGenerator - public static void ChasmGenerator(int i, int j, int steps, bool ocean = false) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - float num = (float)steps; //y / 4, small = 300, medium = 450, large = 600 - if (Main.maxTilesY > 1500) { num += 100f; if (Main.maxTilesY > 2100) { num += 100f; } } //small = 300, medium = 550, large = 800 - if (ocean) - { - int tileYLookup = j; - if (abyssSide) - { - while (!Main.tile[i + 125, tileYLookup].active()) - { - tileYLookup++; - } - } - else - { - while (!Main.tile[i - 125, tileYLookup].active()) - { - tileYLookup++; - } - } - j = tileYLookup; - } - Vector2 vector; - vector.X = (float)i; - vector.Y = (float)j; - Vector2 vector2; - vector2.X = (float)WorldGen.genRand.Next(-1, 2) * 0.1f; - vector2.Y = (float)WorldGen.genRand.Next(3, 8) * 0.2f + 0.5f; - int num2 = 5; - double num3 = (double)(WorldGen.genRand.Next(5, 7) + 40); //start width - while (num3 > 0.0) - { - if (num > 0f) - { - num3 += (double)WorldGen.genRand.Next(2); - num3 -= (double)WorldGen.genRand.Next(2); - float smallHoleLimit = 240f; //small - if (Main.maxTilesY > 1500) { smallHoleLimit = 460f; if (Main.maxTilesY > 2100) { smallHoleLimit = 700f; } } - if (ocean && num > smallHoleLimit) //dig small hole, small = 225, medium = 450, large = 675, 80% of first number - { - if (num3 < 4.0) //min width - { - num3 = 4.0; //min width - } - if (num3 > 6.0) //max width - { - num3 = 6.0; //max width - } - } - else //dig large hole - { - if (num3 < (ocean ? 42.0 : 14.0)) //min width - { - num3 = (ocean ? 42.0 : 14.0); //min width - } - if (num3 > (ocean ? 60.0 : 40.0)) //max width - { - num3 = (ocean ? 60.0 : 40.0); //max width - } - if (num == 1f && num3 < (ocean ? 50.0 : 20.0)) - { - num3 = (ocean ? 50.0 : 20.0); - } - } - } - else - { - if (Main.maxTilesY > 2100) - { - if ((double)vector.Y > (Main.rockLayer + (double)Main.maxTilesY * 0.35)) //960 + 840 = 1800 - { - num3 -= (double)(WorldGen.genRand.Next(5) + 8); - } - } - else if (Main.maxTilesY > 1500) - { - if ((double)vector.Y > (Main.rockLayer + (double)Main.maxTilesY * 0.331)) - { - num3 -= (double)(WorldGen.genRand.Next(5) + 8); - } - } - else - { - if ((double)vector.Y > (Main.rockLayer + (double)Main.maxTilesY * 0.312)) //960 - { - num3 -= (double)(WorldGen.genRand.Next(5) + 8); - } - } - } - if (Main.maxTilesY > 2100) - { - if (((double)vector.Y > (Main.rockLayer + (double)Main.maxTilesY * 0.38) && num > 0f && ocean) || //960 + 912 = 1872 limit is 1944 - ((double)vector.Y >= (double)Main.maxTilesY && num > 0f && !ocean)) - { - num = 0f; - } - } - else if (Main.maxTilesY > 1500) - { - if (((double)vector.Y > (Main.rockLayer + (double)Main.maxTilesY * 0.34) && num > 0f && ocean) || - ((double)vector.Y >= (double)Main.maxTilesY && num > 0f && !ocean)) - { - num = 0f; - } - } - else - { - if (((double)vector.Y > (Main.rockLayer + (double)Main.maxTilesY * 0.3) && num > 0f && ocean) || - ((double)vector.Y >= (double)Main.maxTilesY && num > 0f && !ocean)) - { - num = 0f; - } - } - num -= 1f; - int num4; - int num5; - int num6; - int num7; - if (num > (float)num2) - { - num4 = (int)((double)vector.X - num3 * 0.5); - num5 = (int)((double)vector.X + num3 * 0.5); - num6 = (int)((double)vector.Y - num3 * 0.5); - num7 = (int)((double)vector.Y + num3 * 0.5); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX - 1) - { - num5 = Main.maxTilesX - 1; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int k = num4; k < num5; k++) - { - for (int l = num6; l < num7; l++) - { - if ((double)(Math.Abs((float)k - vector.X) + Math.Abs((float)l - vector.Y)) < num3 * 0.5 * (1.0 + (double)WorldGen.genRand.Next(-5, 6) * 0.015)) - { - if (ocean) - { - Main.tile[k, l].active(false); - Main.tile[k, l].liquid = 255; - Main.tile[k, l].lava(false); - } - else - { - Main.tile[k, l].active(false); - Main.tile[k, l].liquid = 255; - Main.tile[k, l].lava(true); - } - } - } - } - } - if (num <= 2f && (double)vector.Y < (Main.rockLayer + (double)Main.maxTilesY * 0.312)) //1260 - { - num = 2f; - } - vector += vector2; - vector2.X += (float)WorldGen.genRand.Next(-1, 2) * 0.01f; - if ((double)vector2.X > 0.02) - { - vector2.X = 0.02f; - } - if ((double)vector2.X < -0.02) - { - vector2.X = -0.02f; - } - num4 = (int)((double)vector.X - num3 * 1.1); - num5 = (int)((double)vector.X + num3 * 1.1); - num6 = (int)((double)vector.Y - num3 * 1.1); - num7 = (int)((double)vector.Y + num3 * 1.1); - if (num4 < 1) - { - num4 = 1; - } - if (num5 > Main.maxTilesX - 1) - { - num5 = Main.maxTilesX - 1; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int m = num4; m < num5; m++) - { - for (int n = num6; n < num7; n++) - { - if ((double)(Math.Abs((float)m - vector.X) + Math.Abs((float)n - vector.Y)) < num3 * 1.1 * (1.0 + (double)WorldGen.genRand.Next(-5, 6) * 0.015)) - { - if (n > j + WorldGen.genRand.Next(7, 16)) - { - Main.tile[m, n].active(false); - } - if (steps <= num2) - { - Main.tile[m, n].active(false); - } - if (ocean) - { - Main.tile[m, n].liquid = 255; - Main.tile[m, n].lava(false); - } - else - { - Main.tile[m, n].liquid = 255; - Main.tile[m, n].lava(true); - } - } - } - } - for (int num11 = num4; num11 < num5; num11++) - { - for (int num12 = num6; num12 < num7; num12++) - { - if ((double)(Math.Abs((float)num11 - vector.X) + Math.Abs((float)num12 - vector.Y)) < num3 * 1.1 * (1.0 + (double)WorldGen.genRand.Next(-5, 6) * 0.015)) - { - if (ocean) - { - Main.tile[num11, num12].liquid = 255; - Main.tile[num11, num12].lava(false); - } - else - { - Main.tile[num11, num12].liquid = 255; - Main.tile[num11, num12].lava(true); - } - if (steps <= num2) - { - Main.tile[num11, num12].active(false); - } - } - } - } - } - } - #endregion - - #region PlanetoidMethods - //WORLD GENERATION PASSES - private static void ExpandWorld(GenerationProgress progress) - { - int newHeight = Main.maxTilesY + ExpandWorldBy; - - //--------------------- - //MISC. FIXES - //--------------------- - - //TILES - FieldInfo worldSizeY = typeof(WorldFileData).GetField("WorldSizeY", BindingFlags.Instance | BindingFlags.Public); - worldSizeY.SetValue(Main.ActiveWorldFileData, newHeight); - - FieldInfo lastMaxTilesY = typeof(WorldGen).GetField("lastMaxTilesY", BindingFlags.Static | BindingFlags.NonPublic); - lastMaxTilesY.SetValue(null, newHeight); - - Main.maxTilesY = newHeight; - - Main.bottomWorld = newHeight * 16; - Main.maxSectionsY = Main.maxTilesY / 150; - // - - //MAP - MethodInfo methodInfo = typeof(Main).GetMethod("InitMap", BindingFlags.NonPublic | BindingFlags.Instance); - methodInfo.Invoke(Main.instance, null); - // - - //MOVING THE TILES DOWN - Tile[,] newTiles = new Tile[8401, 2401 + ExpandWorldBy]; - for (int x = 0; x < Main.maxTilesX; x++) - { - for (int y = 0; y < Main.maxTilesY; y++) - { - newTiles[x, y] = new Tile(); - if (y >= ExpandWorldBy) - { - newTiles[x, y].CopyFrom(Main.tile[x, y - ExpandWorldBy]); - Main.tile[x, y - ExpandWorldBy] = null; - } - } - } - - Main.tile = newTiles; - - for (int i = 0; i < Main.chest.Length; i++) - { - if (Main.chest[i] != null) - Main.chest[i].y += ExpandWorldBy; - } - // - - //FIXING VARIABLES - Main.worldSurface += ExpandWorldBy; - Main.rockLayer += ExpandWorldBy; - WorldGen.worldSurface += ExpandWorldBy; - WorldGen.worldSurfaceHigh += ExpandWorldBy; - WorldGen.worldSurfaceLow += ExpandWorldBy; - WorldGen.rockLayer += ExpandWorldBy; - WorldGen.rockLayerHigh += ExpandWorldBy; - WorldGen.rockLayerLow += ExpandWorldBy; - Main.spawnTileY += ExpandWorldBy; - Main.dungeonY += ExpandWorldBy; - // - - //FIXING THE GUIDE'S CURRENT POSITION - for (int i = 0; i < Main.npc.Length; i++) - { - if (Main.npc[i].type == NPCID.Guide) - { - Main.npc[i].homeTileY = Main.spawnTileY; - Main.npc[i].position.Y += ExpandWorldBy * 16f; - break; - } - } - // - } - - private static void Planetoids(GenerationProgress progress) - { - progress.Message = "Generating Planetoids..."; - - int GrassPlanetoidCount = Main.maxTilesX / 1100; - int LCPlanetoidCount = Main.maxTilesX / 800; - int MudPlanetoidCount = Main.maxTilesX / 1100; - - //It might seem scary but fuck making an extra boolean - while (true) - { - if (Biomes.Place(new Point(WorldGen.genRand.Next(Main.maxTilesX / 2 - 100, Main.maxTilesX / 2 + 100), WorldGen.genRand.Next(128, 134)), WorldGen.structures)) - { - break; - } - } - while (LCPlanetoidCount > 0) - { - int x = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.2), (int)(Main.maxTilesX * 0.8)); - int y = WorldGen.genRand.Next(70, ExpandWorldBy); - - bool placed = Biomes.Place(x, y, WorldGen.structures); - - if (placed) - LCPlanetoidCount--; - } - while (GrassPlanetoidCount > 0) - { - int x = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.333), (int)(Main.maxTilesX * 0.666)); - int y = WorldGen.genRand.Next(100, ExpandWorldBy); - - - bool placed = Biomes.Place(x, y, WorldGen.structures); - - if (placed) - GrassPlanetoidCount--; - } - while (MudPlanetoidCount > 0) - { - int x = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.3f), (int)(Main.maxTilesX * 0.7f)); - int y = WorldGen.genRand.Next(100, ExpandWorldBy); - - bool placed = Biomes.Place(x, y, WorldGen.structures); - - if (placed) - MudPlanetoidCount--; - } - } - - private static void PotFix(GenerationProgress progress) - { - Main.tileSolid[137] = true; - Main.tileSolid[130] = true; - progress.Message = Lang.gen[35].Value; - for (int i = 0; i < (int)((double)(Main.maxTilesX * Main.maxTilesY) * 0.0008); i++) - { - float num = (float)((double)i / ((double)(Main.maxTilesX * Main.maxTilesY) * 0.0008)); - progress.Set(num); - bool flag = false; - int num2 = 0; - while (!flag) - { - int num3 = WorldGen.genRand.Next((int)WorldGen.worldSurfaceHigh, Main.maxTilesY - 10); - if ((double)num > 0.93) - { - num3 = Main.maxTilesY - 150; - } - else if ((double)num > 0.75) - { - num3 = (int)WorldGen.worldSurfaceLow; - } - int num4 = WorldGen.genRand.Next(1, Main.maxTilesX - 1); - bool flag2 = false; - for (int j = num3; j < Main.maxTilesY; j++) - { - if (!flag2) - { - if (Main.tile[num4, j].active() && Main.tileSolid[(int)Main.tile[num4, j].type] && !Main.tile[num4, j - 1].lava()) - { - flag2 = true; - } - } - else - { - int style = WorldGen.genRand.Next(0, 4); - int num5 = 0; - if (j < Main.maxTilesY - 5) - { - num5 = (int)Main.tile[num4, j + 1].type; - } - if (num5 == 147 || num5 == 161 || num5 == 162) - { - style = WorldGen.genRand.Next(4, 7); - } - if (num5 == 60) - { - style = WorldGen.genRand.Next(7, 10); - } - if (Main.wallDungeon[(int)Main.tile[num4, j].wall]) - { - style = WorldGen.genRand.Next(10, 13); - } - if (num5 == 41 || num5 == 43 || num5 == 44) - { - style = WorldGen.genRand.Next(10, 13); - } - if (num5 == 22 || num5 == 23 || num5 == 25) - { - style = WorldGen.genRand.Next(16, 19); - } - if (num5 == 199 || num5 == 203 || num5 == 204 || num5 == 200) - { - style = WorldGen.genRand.Next(22, 25); - } - if (num5 == 367) - { - style = WorldGen.genRand.Next(31, 34); - } - if (num5 == 226) - { - style = WorldGen.genRand.Next(28, 31); - } - if (j > Main.maxTilesY - 200) - { - style = WorldGen.genRand.Next(13, 16); - } - if (WorldGen.PlacePot(num4, j, 28, style)) - { - flag = true; - break; - } - num2++; - if (num2 >= 10000) - { - flag = true; - break; - } - } - } - } - } - } - - private static void RemoveMostTasks(List tasks) - { - int value = 15; - while (tasks.Count > value) - { - if (tasks[value].Name == "Spawn Point") - { - value++; - } - tasks.RemoveAt(value); - } - } - #endregion - - #region PostUpdate - public override void PostUpdate() + public static void DoAstralConversion(object obj) { - int closestPlayer = (int)Player.FindClosest(new Vector2((float)(Main.maxTilesX / 2), (float)Main.worldSurface / 2f) * 16f, 0, 0); - #region BossRush - if (!deactivateStupidFuckingBullshit) - { - deactivateStupidFuckingBullshit = true; - bossRushActive = false; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - if (bossRushActive) - { - if (NPC.MoonLordCountdown > 0) - { - NPC.MoonLordCountdown = 0; - } - if (!CalamityPlayer.areThereAnyDamnBosses) - { - if (bossRushSpawnCountdown > 0) - { - bossRushSpawnCountdown--; - if (bossRushSpawnCountdown == 180 && bossRushStage == 26) - { - string key = "Mods.CalamityMod.BossRushTierThreeEndText2"; - Color messageColor = Color.LightCoral; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - if (bossRushSpawnCountdown == 210 && bossRushStage == 33) - { - string key = "Mods.CalamityMod.BossRushTierFourEndText2"; - Color messageColor = Color.LightCoral; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - } - if (bossRushSpawnCountdown <= 0) - { - bossRushSpawnCountdown = 60; - if (bossRushStage > 25) - { - bossRushSpawnCountdown += 120; //3 seconds - } - if (bossRushStage > 32) - { - bossRushSpawnCountdown += 180; //6 seconds - } - switch (bossRushStage) - { - case 9: - bossRushSpawnCountdown = 240; - break; - case 18: - bossRushSpawnCountdown = 300; - break; - case 25: - bossRushSpawnCountdown = 360; - break; - case 32: - bossRushSpawnCountdown = 420; - break; - default: - break; - } - if (bossRushStage == 13) - { - for (int playerIndex = 0; playerIndex < 255; playerIndex++) - { - if (Main.player[playerIndex].active) - { - Player player = Main.player[playerIndex]; - player.Spawn(); - } - } - } - else if (bossRushStage == 36) - { - for (int playerIndex = 0; playerIndex < 255; playerIndex++) - { - if (Main.player[playerIndex].active) - { - Player player = Main.player[playerIndex]; - if (player.FindBuffIndex(mod.BuffType("ExtremeGravity")) > -1) - { - player.ClearBuff(mod.BuffType("ExtremeGravity")); - } - } - } - } - if (Main.netMode != 1) - { - Main.PlaySound(SoundID.Roar, Main.player[closestPlayer].position, 0); - switch (bossRushStage) - { - case 0: - NPC.SpawnOnPlayer(closestPlayer, NPCID.QueenBee); - break; - case 1: - NPC.SpawnOnPlayer(closestPlayer, NPCID.BrainofCthulhu); - break; - case 2: - NPC.SpawnOnPlayer(closestPlayer, NPCID.KingSlime); - break; - case 3: - ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, NPCID.EyeofCthulhu); - break; - case 4: - ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, NPCID.SkeletronPrime); - break; - case 5: - NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)(Main.rand.Next(-100, 101))), - (int)(Main.player[closestPlayer].position.Y - 400f), - NPCID.Golem, 0, 0f, 0f, 0f, 0f, 255); - break; - case 6: - ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss2")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss3")); - break; - case 7: - NPC.SpawnOnPlayer(closestPlayer, NPCID.EaterofWorldsHead); - break; - case 8: - ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Astrageldon")); - break; - case 9: - ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, NPCID.TheDestroyer); - break; - case 10: - ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, NPCID.Spazmatism); - NPC.SpawnOnPlayer(closestPlayer, NPCID.Retinazer); - break; - case 11: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Bumblefuck")); - break; - case 12: - NPC.SpawnWOF(Main.player[closestPlayer].position); - break; - case 13: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("HiveMind")); - break; - case 14: - ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, NPCID.SkeletronHead); - break; - case 15: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("StormWeaverHead")); - break; - case 16: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AquaticScourgeHead")); - break; - case 17: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHead")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); - break; - case 18: - int num1302 = NPC.NewNPC((int)Main.player[closestPlayer].Center.X, (int)Main.player[closestPlayer].Center.Y - 400, NPCID.CultistBoss, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num1302].direction = (Main.npc[num1302].spriteDirection = Math.Sign(Main.player[closestPlayer].Center.X - (float)Main.player[closestPlayer].Center.X - 90f)); - break; - case 19: - for (int doom = 0; doom < 200; doom++) - { - if (Main.npc[doom].active && (Main.npc[doom].type == 493 || Main.npc[doom].type == 422 || Main.npc[doom].type == 507 || - Main.npc[doom].type == 517)) - { - Main.npc[doom].active = false; - Main.npc[doom].netUpdate = true; - } - } - NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)(Main.rand.Next(-100, 101))), (int)(Main.player[closestPlayer].position.Y - 400f), mod.NPCType("CrabulonIdle"), 0, 0f, 0f, 0f, 0f, 255); - break; - case 20: - NPC.SpawnOnPlayer(closestPlayer, NPCID.Plantera); - break; - case 21: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CeaselessVoid")); - break; - case 22: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("PerforatorHive")); - break; - case 23: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Cryogen")); - break; - case 24: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("BrimstoneElemental")); - break; - case 25: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CosmicWraith")); - break; - case 26: - NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)(Main.rand.Next(-100, 101))), (int)(Main.player[closestPlayer].position.Y - 400f), mod.NPCType("ScavengerBody"), 0, 0f, 0f, 0f, 0f, 255); - break; - case 27: - NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)(Main.rand.Next(-100, 101))), (int)(Main.player[closestPlayer].position.Y - 400f), NPCID.DukeFishron, 0, 0f, 0f, 0f, 0f, 255); - break; - case 28: - NPC.SpawnOnPlayer(closestPlayer, NPCID.MoonLordCore); - break; - case 29: - ChangeTime(false); - for (int x = 0; x < 10; x++) - { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AstrumDeusHead")); - } - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AstrumDeusHeadSpectral")); - break; - case 30: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Polterghast")); - break; - case 31: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("PlaguebringerGoliath")); - break; - case 32: - ChangeTime(false); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Calamitas")); - break; - case 33: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Siren")); - break; - case 34: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGod")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGodRun")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGodCore")); - break; - case 35: - ChangeTime(true); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Providence")); - break; - case 36: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SupremeCalamitas")); - break; - case 37: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Yharon")); - break; - case 38: - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DevourerofGodsHeadS")); - break; - } - } - } - } - } - else - { - bossRushSpawnCountdown = 180; - if (bossRushStage != 0) - { - bossRushStage = 0; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.BossRushStage); - netMessage.Write(bossRushStage); - netMessage.Send(); - } - } - } - #endregion - #region SpawnDoG - if (DoGSecondStageCountdown > 0) //works - { - DoGSecondStageCountdown--; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); - netMessage.Write(DoGSecondStageCountdown); - netMessage.Send(); - } - if (Main.netMode != 1) - { - if (DoGSecondStageCountdown == 21540) - { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CeaselessVoid")); - } - if (DoGSecondStageCountdown == 14340) - { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("StormWeaverHead")); - } - if (DoGSecondStageCountdown == 7140) - { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CosmicWraith")); - } - if (DoGSecondStageCountdown <= 60) - { - if (!NPC.AnyNPCs(mod.NPCType("DevourerofGodsHeadS"))) - { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DevourerofGodsHeadS")); - string key = "Mods.CalamityMod.EdgyBossText10"; - Color messageColor = Color.Cyan; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - } - } - } - #endregion - if (Main.player[closestPlayer].ZoneDungeon && !NPC.downedBoss3) - { - if (!NPC.AnyNPCs(NPCID.DungeonGuardian) && Main.netMode != 1) - NPC.SpawnOnPlayer(closestPlayer, NPCID.DungeonGuardian); //your hell is as vast as my bonergrin, pray your life ends quickly - } - if (Main.player[closestPlayer].ZoneRockLayerHeight && - !Main.player[closestPlayer].ZoneUnderworldHeight && - !Main.player[closestPlayer].ZoneDungeon && - !CalamityPlayer.areThereAnyDamnBosses) //works - { - if (NPC.downedPlantBoss && - !Main.player[closestPlayer].GetModPlayer(mod).ZoneAbyss && - Main.player[closestPlayer].townNPCs < 3f) - { - if ((Main.player[closestPlayer].GetModPlayer(mod).zerg && Main.rand.Next(2000) == 0) || - (Main.rand.Next(50000) == 0 && !Main.player[closestPlayer].GetModPlayer(mod).zen)) - { - if (!NPC.AnyNPCs(mod.NPCType("ArmoredDiggerHead")) && Main.netMode != 1) - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ArmoredDiggerHead")); - } - } - } - if (Main.dayTime && Main.hardMode) //works - { - if (Main.player[closestPlayer].townNPCs >= 2f) - { - if (Main.rand.Next(2000) == 0) - { - int steamGril = NPC.FindFirstNPC(NPCID.Steampunker); - if (steamGril == -1 && Main.netMode != 1) - NPC.SpawnOnPlayer(closestPlayer, NPCID.Steampunker); - } - } - } - if (Main.player[closestPlayer].GetModPlayer(mod).ZoneAbyss) - { - if (Main.player[closestPlayer].chaosState) - { - if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge")) && Main.netMode != 1) - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("EidolonWyrmHeadHuge")); - } - } - #region DeathModeBossSpawns - if (death && !CalamityPlayer.areThereAnyDamnBosses) - { - if (bossSpawnCountdown <= 0) //check for countdown being 0 - { - if (Main.rand.Next(50000) == 0) - { - if (!NPC.downedBoss1 && bossType == 0) //only set countdown and boss type if conditions are met - if (!Main.dayTime && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) - { - BossText(); - bossType = NPCID.EyeofCthulhu; - bossSpawnCountdown = 3600; //1 minute - } + //Pre-calculate all variables necessary for elliptical area checking + Point origin = (Point)obj; + Vector2 center = origin.ToVector2() * 16f + new Vector2(8f); - if (!NPC.downedBoss2 && bossType == 0) - if (Main.player[closestPlayer].ZoneCorrupt) - { - BossText(); - bossType = NPCID.EaterofWorldsHead; - bossSpawnCountdown = 3600; - } + float angle = MathHelper.Pi * 0.15f; + float otherAngle = MathHelper.PiOver2 - angle; - if (!NPC.downedBoss2 && bossType == 0) - if (Main.player[closestPlayer].ZoneCrimson) - { - BossText(); - bossType = NPCID.BrainofCthulhu; - bossSpawnCountdown = 3600; - } + int distanceInTiles = 150 + ((Main.maxTilesX - 4200) / 4200) * 200; + float distance = distanceInTiles * 16f; + float constant = (distance * 2f) / (float)Math.Sin(angle); - if (!NPC.downedQueenBee && bossType == 0) - if (Main.player[closestPlayer].ZoneJungle && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) - { - BossText(); - bossType = NPCID.QueenBee; - bossSpawnCountdown = 3600; - } + float fociSpacing = ((distance * (float)Math.Sin(otherAngle)) / (float)Math.Sin(angle)); + int verticalRadius = (int)(constant / 16f); - if (!downedDesertScourge && bossType == 0) - if (Main.player[closestPlayer].ZoneDesert) - { - BossText(); - bossType = mod.NPCType("DesertScourgeHead"); - bossSpawnCountdown = 3600; - } + Vector2 fociOffset = Vector2.UnitY * fociSpacing; + Vector2 topFoci = center - fociOffset; + Vector2 bottomFoci = center + fociOffset; - if (!downedPerforator && bossType == 0) - if (Main.player[closestPlayer].ZoneCrimson) - { - BossText(); - bossType = mod.NPCType("PerforatorHive"); - bossSpawnCountdown = 3600; - } + for (int x = origin.X - distanceInTiles - 2; x <= origin.X + distanceInTiles + 2; x++) + { + for (int y = (int)(origin.Y - verticalRadius * 0.4f) - 3; y <= origin.Y + verticalRadius + 3; y++) + { + float dist; + if (CheckInEllipse(new Point(x, y), topFoci, bottomFoci, constant, center, out dist, y < origin.Y)) + { + //If we're in the outer blurPercent% of the ellipse + float percent = dist / constant; + float blurPercent = 0.98f; + if (percent > blurPercent) + { + float outerEdgePercent = (percent - blurPercent) / (1f - blurPercent); + if (Main.rand.NextFloat(1f) > outerEdgePercent) + { + ConvertToAstral(x, y); + } + } + else + { + ConvertToAstral(x, y); + } + } + } + } + } - if (!downedHiveMind && bossType == 0) - if (Main.player[closestPlayer].ZoneCorrupt) - { - BossText(); - bossType = mod.NPCType("HiveMind"); - bossSpawnCountdown = 3600; - } + public static void ConvertToAstral(int startX, int endX, int startY, int endY) + { + for (int x = startX; x <= endX; x++) + { + for (int y = startY; y <= endY; y++) + { + ConvertToAstral(x, y); + } + } + } - if (!downedCrabulon && bossType == 0) - if (Main.player[closestPlayer].ZoneGlowshroom) - { - BossText(); - bossType = mod.NPCType("CrabulonIdle"); - bossSpawnCountdown = 3600; - } + public static void ConvertToAstral(int x, int y, bool tileframe = true) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + if (WorldGen.InWorld(x, y, 1)) + { + int type = Main.tile[x, y].type; + int wallType = Main.tile[x, y].wall; - if (Main.hardMode) - { - if (!NPC.downedMechBoss1 && bossType == 0) - if (!Main.dayTime && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) - { - BossText(); - bossType = NPCID.TheDestroyer; - bossSpawnCountdown = 3600; - } + if (Main.tile[x, y] != null) + { + if (WallID.Sets.Conversion.Grass[wallType]) + { + Main.tile[x, y].wall = (ushort)mod.WallType("AstralGrassWallUnsafe"); + } + else if (WallID.Sets.Conversion.HardenedSand[wallType]) + { + Main.tile[x, y].wall = (ushort)mod.WallType("HardenedAstralSandWallUnsafe"); + } + else if (WallID.Sets.Conversion.Sandstone[wallType]) + { + Main.tile[x, y].wall = (ushort)mod.WallType("AstralSandstoneWallUnsafe"); + } + else if (WallID.Sets.Conversion.Stone[wallType]) + { + Main.tile[x, y].wall = (ushort)mod.WallType("AstralStoneWallUnsafe"); + } + else + { + switch (wallType) + { + case WallID.DirtUnsafe: + case WallID.DirtUnsafe1: + case WallID.DirtUnsafe2: + case WallID.DirtUnsafe3: + case WallID.DirtUnsafe4: + case WallID.Cave6Unsafe: + case WallID.Dirt: + Main.tile[x, y].wall = (ushort)mod.WallType("AstralDirtWallUnsafe"); + break; + case WallID.IceUnsafe: + Main.tile[x, y].wall = (ushort)mod.WallType("AstralIceWallUnsafe"); + break; + } + } + if (TileID.Sets.Conversion.Grass[type] && !TileID.Sets.GrassSpecial[type]) + { + Main.tile[x, y].type = (ushort)mod.TileType("AstralGrass"); + } + else if (TileID.Sets.Conversion.Stone[type] || Main.tileMoss[type]) + { + Main.tile[x, y].type = (ushort)mod.TileType("AstralStone"); + } + else if (TileID.Sets.Conversion.Sand[type]) + { + Main.tile[x, y].type = (ushort)mod.TileType("AstralSand"); + } + else if (TileID.Sets.Conversion.HardenedSand[type]) + { + Main.tile[x, y].type = (ushort)mod.TileType("HardenedAstralSand"); + } + else if (TileID.Sets.Conversion.Sandstone[type]) + { + Main.tile[x, y].type = (ushort)mod.TileType("AstralSandstone"); + } + else if (TileID.Sets.Conversion.Ice[type]) + { + Main.tile[x, y].type = (ushort)mod.TileType("AstralIce"); + } + else + { + Tile tile = Main.tile[x, y]; + switch (type) + { + case TileID.Dirt: + Main.tile[x, y].type = (ushort)mod.TileType("AstralDirt"); + break; + case TileID.Vines: + Main.tile[x, y].type = (ushort)mod.TileType("AstralVines"); + break; + case TileID.LargePiles: + if (tile.frameX <= 1170) + { + RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 0, 1170, 0, 18); + } + if (tile.frameX >= 1728) + { + RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 1728, 1872, 0, 18); + } + if (tile.frameX >= 1404 && tile.frameX <= 1710) + { + RecursiveReplaceToAstral(TileID.LargePiles, (ushort)mod.TileType("AstralIceLargePiles"), x, y, 324, 1404, 1710, 0, 18); + } + break; + case TileID.LargePiles2: + if (tile.frameX >= 1566 && tile.frameY < 36) + { + RecursiveReplaceToAstral(TileID.LargePiles2, (ushort)mod.TileType("AstralDesertLargePiles"), x, y, 324, 1566, 1872, 0, 18); + } + if (tile.frameX >= 756 && tile.frameX <= 900) + { + RecursiveReplaceToAstral(TileID.LargePiles2, (ushort)mod.TileType("AstralNormalLargePiles"), x, y, 324, 756, 900, 0, 18); + } + break; + case TileID.SmallPiles: + if (tile.frameY == 18) + { + ushort newType = 9999; + if (tile.frameX >= 1476 && tile.frameX <= 1674) + { + newType = (ushort)mod.TileType("AstralDesertMediumPiles"); + } + else if (tile.frameX <= 558 || (tile.frameX >= 1368 && tile.frameX <= 1458)) + { + newType = (ushort)mod.TileType("AstralNormalMediumPiles"); + } + else if (tile.frameX >= 900 && tile.frameX <= 1098) + { + newType = (ushort)mod.TileType("AstralIceMediumPiles"); + } + else + { + break; + } + int leftMost = x; + if (tile.frameX % 36 != 0) //this means it's the right tile of the two + { + leftMost--; + } + if (Main.tile[leftMost, y] != null) + Main.tile[leftMost, y].type = newType; + if (Main.tile[leftMost + 1, y] != null) + Main.tile[leftMost + 1, y].type = newType; + while (Main.tile[leftMost, y].frameX >= 216) + { + if (Main.tile[leftMost, y] != null) + Main.tile[leftMost, y].frameX -= 216; + if (Main.tile[leftMost + 1, y] != null) + Main.tile[leftMost + 1, y].frameX -= 216; + } + } + else if (tile.frameY == 0) + { + ushort newType3 = 9999; + if (tile.frameX >= 972 && tile.frameX <= 1062) + { + newType3 = (ushort)mod.TileType("AstralDesertSmallPiles"); + } + else if (tile.frameX <= 486) + { + newType3 = (ushort)mod.TileType("AstralNormalSmallPiles"); + } + else if (tile.frameX >= 648 && tile.frameX <= 846) + { + newType3 = (ushort)mod.TileType("AstralIceSmallPiles"); + } + else + { + break; + } + Main.tile[x, y].type = newType3; + while (Main.tile[x, y].frameX >= 108) //REFRAME IT + { + Main.tile[x, y].frameX -= 108; + } + } + break; + case TileID.Stalactite: + int topMost = tile.frameY <= 54 ? (tile.frameY % 36 == 0 ? y : y - 1) : y; + bool twoTall = tile.frameY <= 54; + bool hanging = tile.frameY <= 18 || tile.frameY == 72; + ushort newType2 = 9999; + if (tile.frameX >= 378 && tile.frameX <= 414) //DESERT + { + newType2 = (ushort)mod.TileType("AstralDesertStalactite"); + } + else if ((tile.frameX >= 54 && tile.frameX <= 90) || (tile.frameX >= 216 && tile.frameX <= 360)) + { + newType2 = (ushort)mod.TileType("AstralNormalStalactite"); + } + else if (tile.frameX <= 36) + { + newType2 = (ushort)mod.TileType("AstralIceStalactite"); + } + else + { + break; + } - if (!NPC.downedMechBoss2 && bossType == 0) - if (!Main.dayTime && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) - { - BossText(); - bossType = NPCID.Spazmatism; - bossSpawnCountdown = 3600; - } + //Set types + if (Main.tile[x, topMost] != null) + Main.tile[x, topMost].type = newType2; + if (twoTall) + { + if (Main.tile[x, topMost + 1] != null) + Main.tile[x, topMost + 1].type = newType2; + } - if (!NPC.downedMechBoss3 && bossType == 0) - if (!Main.dayTime && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) - { - BossText(); - bossType = NPCID.SkeletronPrime; - bossSpawnCountdown = 3600; - } + //Fix frames + while (Main.tile[x, topMost].frameX >= 54) + { + if (Main.tile[x, topMost] != null) + Main.tile[x, topMost].frameX -= 54; + if (twoTall) + { + if (Main.tile[x, topMost + 1] != null) + Main.tile[x, topMost + 1].frameX -= 54; + } + } - if (!NPC.downedPlantBoss && bossType == 0) - if (Main.player[closestPlayer].ZoneJungle && !Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight) - { - BossText(); - bossType = NPCID.Plantera; - bossSpawnCountdown = 3600; - } + if (hanging) + { + ConvertToAstral(x, topMost - 1); + break; + } + else + { + if (twoTall) + { + ConvertToAstral(x, topMost + 2); + break; + } + ConvertToAstral(x, topMost + 1); + break; + } + } + } + if (tileframe) + { + if (Main.netMode == 0) + { + WorldGen.SquareTileFrame(x, y, true); + } + else if (Main.netMode == 2) + { + NetMessage.SendTileSquare(-1, x, y, 1); + } + } + } + } + } - if (!NPC.downedFishron && bossType == 0) - if (Main.player[closestPlayer].ZoneBeach) - { - BossText(); - bossType = NPCID.DukeFishron; - bossSpawnCountdown = 3600; - } + public static void ConvertFromAstral(int x, int y, ConvertType convert) + { + Tile tile = Main.tile[x, y]; + int type = tile.type; + int wallType = tile.wall; + Mod mod = CalamityMod.Instance; - if (!downedCryogen && bossType == 0) - if (Main.player[closestPlayer].ZoneSnow && Main.player[closestPlayer].ZoneOverworldHeight) - { - BossText(); - bossType = mod.NPCType("Cryogen"); - bossSpawnCountdown = 3600; - } + if (WorldGen.InWorld(x, y, 1)) + { + #region WALL + if (Main.tile[x, y] != null) + { + if (wallType == mod.WallType("AstralDirtWall")) + { + Main.tile[x, y].wall = WallID.DirtUnsafe; + } + else if (wallType == mod.WallType("AstralGrassWall")) + { + switch (convert) + { + case ConvertType.Corrupt: + Main.tile[x, y].wall = WallID.CorruptGrassUnsafe; + break; + case ConvertType.Crimson: + Main.tile[x, y].wall = WallID.CrimsonGrassUnsafe; + break; + case ConvertType.Hallow: + Main.tile[x, y].wall = WallID.HallowedGrassUnsafe; + break; + case ConvertType.Pure: + Main.tile[x, y].wall = WallID.GrassUnsafe; + break; + } + } + else if (wallType == mod.WallType("AstralIceWall")) + { + Main.tile[x, y].wall = WallID.IceUnsafe; + } + else if (wallType == mod.WallType("AstralStoneWall")) + { + switch (convert) + { + case ConvertType.Corrupt: + Main.tile[x, y].wall = WallID.EbonstoneUnsafe; + break; + case ConvertType.Crimson: + Main.tile[x, y].wall = WallID.CrimstoneUnsafe; + break; + case ConvertType.Hallow: + Main.tile[x, y].wall = WallID.PearlstoneBrickUnsafe; + break; + case ConvertType.Pure: + Main.tile[x, y].wall = WallID.Stone; + break; + } + } + } + #endregion - if (!downedCalamitas && bossType == 0) - if (!Main.dayTime && Main.player[closestPlayer].ZoneOverworldHeight) - { - BossText(); - bossType = mod.NPCType("Calamitas"); - bossSpawnCountdown = 3600; - } + #region TILE + if (Main.tile[x, y] != null) + { + if (type == mod.TileType("AstralDirt")) + { + tile.type = TileID.Dirt; + } + else if (type == mod.TileType("AstralGrass")) + { + SetTileFromConvert(x, y, convert, TileID.CorruptGrass, TileID.FleshGrass, TileID.HallowedGrass, TileID.Grass); + } + else if (type == mod.TileType("AstralStone")) + { + SetTileFromConvert(x, y, convert, TileID.Ebonstone, TileID.Crimstone, TileID.Pearlstone, TileID.Stone); + } + else if (type == mod.TileType("AstralSand")) + { + SetTileFromConvert(x, y, convert, TileID.Ebonsand, TileID.Crimsand, TileID.Pearlsand, TileID.Sand); + } + else if (type == mod.TileType("AstralSandstone")) + { + SetTileFromConvert(x, y, convert, TileID.CorruptSandstone, TileID.CrimsonSandstone, TileID.HallowSandstone, TileID.Sandstone); + } + else if (type == mod.TileType("HardenedAstralSand")) + { + SetTileFromConvert(x, y, convert, TileID.CorruptHardenedSand, TileID.CrimsonHardenedSand, TileID.HallowHardenedSand, TileID.HardenedSand); + } + else if (type == mod.TileType("AstralIce")) + { + SetTileFromConvert(x, y, convert, TileID.CorruptIce, TileID.FleshIce, TileID.HallowedIce, TileID.IceBlock); + } + else if (type == mod.TileType("AstralVines")) + { + SetTileFromConvert(x, y, convert, ushort.MaxValue, TileID.CrimsonVines, TileID.HallowedVines, TileID.Vines); + } + else if (type == mod.TileType("AstralShortPlants")) + { + SetTileFromConvert(x, y, convert, TileID.CorruptPlants, ushort.MaxValue, TileID.HallowedPlants, TileID.Plants); + } + else if (type == mod.TileType("AstralTallPlants")) + { + SetTileFromConvert(x, y, convert, ushort.MaxValue, ushort.MaxValue, TileID.HallowedPlants2, TileID.Plants2); + } + else if (type == mod.TileType("AstralNormalLargePiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles, x, y, 378, 0); + } + else if (type == mod.TileType("AstralNormalMediumPiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 0, 18); + } + else if (type == mod.TileType("AstralNormalSmallPiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 0, 0); + } + else if (type == mod.TileType("AstralDesertLargePiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles2, x, y, 1566, 0); + } + else if (type == mod.TileType("AstralDesertMediumPiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 1476, 18); + } + else if (type == mod.TileType("AstralDesertSmallPiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 972, 0); + } + else if (type == mod.TileType("AstralIceLargePiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.LargePiles, x, y, 1404, 0); + } + else if (type == mod.TileType("AstralIceMediumPiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 900, 18); + } + else if (type == mod.TileType("AstralIceSmallPiles")) + { + RecursiveReplaceFromAstral((ushort)type, TileID.SmallPiles, x, y, 648, 0); + } + else if (type == mod.TileType("AstralNormalStalactite")) + { + ushort originType = TileID.Stone; + int frameXAdd = 54; + switch (convert) + { + case ConvertType.Corrupt: + originType = TileID.Ebonstone; + frameXAdd = 324; + break; + case ConvertType.Crimson: + originType = TileID.Crimstone; + frameXAdd = 270; + break; + case ConvertType.Hallow: + originType = TileID.Pearlstone; + frameXAdd = 216; + break; + } + ReplaceAstralStalactite((ushort)type, TileID.Stalactite, originType, x, y, frameXAdd, 0); + } + else if (type == mod.TileType("AstralDesertStalactite")) + { + ushort originType = TileID.Sandstone; + int frameXAdd = 378; + switch (convert) + { + case ConvertType.Corrupt: + originType = TileID.CorruptSandstone; + frameXAdd = 324; + break; + case ConvertType.Crimson: + originType = TileID.CrimsonSandstone; + frameXAdd = 270; + break; + case ConvertType.Hallow: + originType = TileID.HallowSandstone; + frameXAdd = 216; + break; + } + ReplaceAstralStalactite((ushort)type, TileID.Stalactite, originType, x, y, frameXAdd, 0); + } + else if (type == mod.TileType("AstralIceStalactite")) + { + ReplaceAstralStalactite((ushort)type, TileID.Stalactite, TileID.IceBlock, x, y, 0, 0); + } + if (TileID.Sets.Conversion.Grass[type] || type == TileID.Dirt) + { + WorldGen.SquareTileFrame(x, y); + } + } + #endregion + } + } - if (!downedAstrageldon && bossType == 0) - if (Main.player[closestPlayer].GetModPlayer(mod).ZoneAstral && - !Main.dayTime && Main.player[closestPlayer].ZoneOverworldHeight) - { - BossText(); - bossType = mod.NPCType("Astrageldon"); - bossSpawnCountdown = 3600; - } + private static void SetTileFromConvert(int x, int y, ConvertType convert, ushort corrupt, ushort crimson, ushort hallow, ushort pure) + { + switch (convert) + { + case ConvertType.Corrupt: + if (corrupt != ushort.MaxValue) + { + Main.tile[x, y].type = corrupt; + WorldGen.SquareTileFrame(x, y); + } + break; + case ConvertType.Crimson: + if (crimson != ushort.MaxValue) + { + Main.tile[x, y].type = crimson; + WorldGen.SquareTileFrame(x, y); + } + break; + case ConvertType.Hallow: + if (hallow != ushort.MaxValue) + { + Main.tile[x, y].type = hallow; + WorldGen.SquareTileFrame(x, y); + } + break; + case ConvertType.Pure: + if (pure != ushort.MaxValue) + { + Main.tile[x, y].type = pure; + WorldGen.SquareTileFrame(x, y); + } + break; + } + } - if (!downedPlaguebringer && bossType == 0) - if (Main.player[closestPlayer].ZoneJungle && NPC.downedGolemBoss && Main.player[closestPlayer].ZoneOverworldHeight) - { - BossText(); - bossType = mod.NPCType("PlaguebringerGoliath"); - bossSpawnCountdown = 3600; - } + private static void RecursiveReplaceToAstral(ushort checkType, ushort replaceType, int x, int y, int replaceTextureWidth, int minFrameX = 0, int maxFrameX = int.MaxValue, int minFrameY = 0, int maxFrameY = int.MaxValue) + { + Tile tile = Main.tile[x, y]; + if (tile == null || !tile.active() || tile.type != checkType || tile.frameX < minFrameX || tile.frameX > maxFrameX || tile.frameY < minFrameY || tile.frameY > maxFrameY) + return; - if (NPC.downedMoonlord) - { - if (!downedGuardians && bossType == 0) - if (Main.player[closestPlayer].ZoneUnderworldHeight || - (Main.player[closestPlayer].ZoneHoly && Main.player[closestPlayer].ZoneOverworldHeight)) - { - BossText(); - bossType = mod.NPCType("ProfanedGuardianBoss"); - bossSpawnCountdown = 3600; - } + Main.tile[x, y].type = replaceType; + while (Main.tile[x, y].frameX >= replaceTextureWidth) + { + Main.tile[x, y].frameX -= (short)replaceTextureWidth; + } - if (!downedBumble && bossType == 0) - if (Main.player[closestPlayer].ZoneJungle && Main.player[closestPlayer].ZoneOverworldHeight) - { - BossText(); - bossType = mod.NPCType("Bumblefuck"); - bossSpawnCountdown = 3600; - } - } - } - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.BossSpawnCountdownSync); - netMessage.Write(bossSpawnCountdown); - netMessage.Send(); - var netMessage2 = mod.GetPacket(); - netMessage2.Write((byte)CalamityModMessageType.BossTypeSync); - netMessage2.Write(bossType); - netMessage2.Send(); - } - } - } - else - { - bossSpawnCountdown--; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.BossSpawnCountdownSync); - netMessage.Write(bossSpawnCountdown); - netMessage.Send(); - } - if (bossSpawnCountdown <= 0) - { - bool canSpawn = true; - switch (bossType) - { - case NPCID.EyeofCthulhu: - if (Main.dayTime || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) - canSpawn = false; - break; - case NPCID.EaterofWorldsHead: - if (!Main.player[closestPlayer].ZoneCorrupt) - canSpawn = false; - break; - case NPCID.BrainofCthulhu: - if (!Main.player[closestPlayer].ZoneCrimson) - canSpawn = false; - break; - case NPCID.QueenBee: - if (!Main.player[closestPlayer].ZoneJungle || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) - canSpawn = false; - break; - case NPCID.TheDestroyer: - if (Main.dayTime || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) - canSpawn = false; - break; - case NPCID.Spazmatism: - if (Main.dayTime || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) - canSpawn = false; - break; - case NPCID.SkeletronPrime: - if (Main.dayTime || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) - canSpawn = false; - break; - case NPCID.Plantera: - if (!Main.player[closestPlayer].ZoneJungle || Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight) - canSpawn = false; - break; - case NPCID.DukeFishron: - if (!Main.player[closestPlayer].ZoneBeach) - canSpawn = false; - break; - } + if (Main.tile[x - 1, y] != null) + RecursiveReplaceToAstral(checkType, replaceType, x - 1, y, replaceTextureWidth, minFrameX, maxFrameX, minFrameY, maxFrameY); + if (Main.tile[x + 1, y] != null) + RecursiveReplaceToAstral(checkType, replaceType, x + 1, y, replaceTextureWidth, minFrameX, maxFrameX, minFrameY, maxFrameY); + if (Main.tile[x, y - 1] != null) + RecursiveReplaceToAstral(checkType, replaceType, x, y - 1, replaceTextureWidth, minFrameX, maxFrameX, minFrameY, maxFrameY); + if (Main.tile[x, y + 1] != null) + RecursiveReplaceToAstral(checkType, replaceType, x, y + 1, replaceTextureWidth, minFrameX, maxFrameX, minFrameY, maxFrameY); + } - if (bossType == mod.NPCType("DesertScourgeHead")) - { - if (!Main.player[closestPlayer].ZoneDesert) - canSpawn = false; - } - else if (bossType == mod.NPCType("PerforatorHive")) - { - if (!Main.player[closestPlayer].ZoneCrimson) - canSpawn = false; - } - else if (bossType == mod.NPCType("HiveMind")) - { - if (!Main.player[closestPlayer].ZoneCorrupt) - canSpawn = false; - } - else if (bossType == mod.NPCType("CrabulonIdle")) - { - if (!Main.player[closestPlayer].ZoneGlowshroom) - canSpawn = false; - } - else if (bossType == mod.NPCType("Cryogen")) - { - if (!Main.player[closestPlayer].ZoneSnow || !Main.player[closestPlayer].ZoneOverworldHeight) - canSpawn = false; - } - else if (bossType == mod.NPCType("Calamitas")) - { - if (Main.dayTime || !Main.player[closestPlayer].ZoneOverworldHeight) - canSpawn = false; - } - else if (bossType == mod.NPCType("Astrageldon")) - { - if (!Main.player[closestPlayer].GetModPlayer(mod).ZoneAstral || - Main.dayTime || !Main.player[closestPlayer].ZoneOverworldHeight) - canSpawn = false; - } - else if (bossType == mod.NPCType("PlaguebringerGoliath")) - { - if (!Main.player[closestPlayer].ZoneJungle || !Main.player[closestPlayer].ZoneOverworldHeight) - canSpawn = false; - } - else if (bossType == mod.NPCType("ProfanedGuardianBoss")) - { - if (!Main.player[closestPlayer].ZoneUnderworldHeight && - (!Main.player[closestPlayer].ZoneHoly || !Main.player[closestPlayer].ZoneOverworldHeight)) - canSpawn = false; - } - else if (bossType == mod.NPCType("Bumblefuck")) - { - if (!Main.player[closestPlayer].ZoneJungle || !Main.player[closestPlayer].ZoneOverworldHeight) - canSpawn = false; - } + private static void RecursiveReplaceFromAstral(ushort checkType, ushort replaceType, int x, int y, int addFrameX, int addFrameY) + { + Tile tile = Main.tile[x, y]; + if (tile == null || !tile.active() || tile.type != checkType) + return; - if (canSpawn && Main.netMode != 1) - { - if (bossType == NPCID.Spazmatism) - NPC.SpawnOnPlayer(closestPlayer, NPCID.Retinazer); - else if (bossType == mod.NPCType("ProfanedGuardianBoss")) - { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss2")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss3")); - } - else if (bossType == mod.NPCType("DesertScourgeHead")) - { - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); - NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); - } - NPC.SpawnOnPlayer(closestPlayer, bossType); - } - bossType = 0; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.BossTypeSync); - netMessage.Write(bossType); - netMessage.Send(); - } - } - } - } - #endregion - if (!NPC.downedBoss3 && revenge) - { - if (Main.netMode != 1) - { - if (Sandstorm.Happening) - { - Sandstorm.Happening = false; - Sandstorm.TimeLeft = 0; - } - } - } - if (CalamityGlobalNPC.holyBoss >= 0 && !Main.npc[CalamityGlobalNPC.holyBoss].active) - { - CalamityGlobalNPC.holyBoss = -1; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.Providence); - netMessage.Write(CalamityGlobalNPC.holyBoss); - netMessage.Send(); - } - } - if (CalamityGlobalNPC.doughnutBoss >= 0 && !Main.npc[CalamityGlobalNPC.doughnutBoss].active) - { - CalamityGlobalNPC.doughnutBoss = -1; - } - if (CalamityGlobalNPC.voidBoss >= 0 && !Main.npc[CalamityGlobalNPC.voidBoss].active) - { - CalamityGlobalNPC.voidBoss = -1; - } - if (CalamityGlobalNPC.energyFlame >= 0 && !Main.npc[CalamityGlobalNPC.energyFlame].active) - { - CalamityGlobalNPC.energyFlame = -1; - } - if (CalamityGlobalNPC.hiveMind >= 0 && !Main.npc[CalamityGlobalNPC.hiveMind].active) - { - CalamityGlobalNPC.hiveMind = -1; - } - if (CalamityGlobalNPC.hiveMind2 >= 0 && !Main.npc[CalamityGlobalNPC.hiveMind2].active) - { - CalamityGlobalNPC.hiveMind2 = -1; - } - if (CalamityGlobalNPC.scavenger >= 0 && !Main.npc[CalamityGlobalNPC.scavenger].active) - { - CalamityGlobalNPC.scavenger = -1; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.Ravager); - netMessage.Write(CalamityGlobalNPC.scavenger); - netMessage.Send(); - } - } - if (CalamityGlobalNPC.DoGHead >= 0 && !Main.npc[CalamityGlobalNPC.DoGHead].active) - { - CalamityGlobalNPC.DoGHead = -1; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.DoG); - netMessage.Write(CalamityGlobalNPC.DoGHead); - netMessage.Send(); - } - } - if (CalamityGlobalNPC.SCal >= 0 && !Main.npc[CalamityGlobalNPC.SCal].active) - { - CalamityGlobalNPC.SCal = -1; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.SupremeCal); - netMessage.Write(CalamityGlobalNPC.SCal); - netMessage.Send(); - } - } - if (CalamityGlobalNPC.ghostBoss >= 0 && !Main.npc[CalamityGlobalNPC.ghostBoss].active) - { - CalamityGlobalNPC.ghostBoss = -1; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.Polterghast); - netMessage.Write(CalamityGlobalNPC.ghostBoss); - netMessage.Send(); - } - } - if (CalamityGlobalNPC.laserEye >= 0 && !Main.npc[CalamityGlobalNPC.laserEye].active) - { - CalamityGlobalNPC.laserEye = -1; - } - if (CalamityGlobalNPC.fireEye >= 0 && !Main.npc[CalamityGlobalNPC.fireEye].active) - { - CalamityGlobalNPC.fireEye = -1; - } - if (CalamityGlobalNPC.lordeBoss >= 0 && !Main.npc[CalamityGlobalNPC.lordeBoss].active) - { - CalamityGlobalNPC.lordeBoss = -1; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.LORDE); - netMessage.Write(CalamityGlobalNPC.lordeBoss); - netMessage.Send(); - } - } - if (Main.netMode != 1) - { - if (revenge) - { - CultistRitual.delay -= Main.dayRate * 10; - if (CultistRitual.delay < 0) - { - CultistRitual.delay = 0; - } - CultistRitual.recheck -= Main.dayRate * 10; - if (CultistRitual.recheck < 0) - { - CultistRitual.recheck = 0; - } - } - } - } - #endregion + Main.tile[x, y].type = replaceType; + Main.tile[x, y].frameX += (short)addFrameX; + Main.tile[x, y].frameY += (short)addFrameY; - #region ChangeTime - public static void ChangeTime(bool day) - { - if (day) - { - Main.time = 0.0; - Main.dayTime = true; - } - else - { - Main.time = 0.0; - Main.dayTime = false; - } - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - #endregion + if (Main.tile[x - 1, y] != null) + RecursiveReplaceFromAstral(checkType, replaceType, x - 1, y, addFrameX, addFrameY); + if (Main.tile[x + 1, y] != null) + RecursiveReplaceFromAstral(checkType, replaceType, x + 1, y, addFrameX, addFrameY); + if (Main.tile[x, y - 1] != null) + RecursiveReplaceFromAstral(checkType, replaceType, x, y - 1, addFrameX, addFrameY); + if (Main.tile[x, y + 1] != null) + RecursiveReplaceFromAstral(checkType, replaceType, x, y + 1, addFrameX, addFrameY); + } - #region BossText - public void BossText() - { - string key = "Mods.CalamityMod.BossSpawnText"; - Color messageColor = Color.Crimson; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - #endregion - } + private static void ReplaceAstralStalactite(ushort checkType, ushort replaceType, ushort replaceOriginTile, int x, int y, int addFrameX, int addFrameY) + { + Tile tile = Main.tile[x, y]; + + int topMost = tile.frameY <= 54 ? (tile.frameY % 36 == 0 ? y : y - 1) : y; + bool twoTall = tile.frameY <= 54; + bool hanging = tile.frameY <= 18 || tile.frameY == 72; + + int yOriginTile = (hanging ? topMost - 1 : (twoTall ? topMost + 2 : y + 1)); + + if (Main.tile[x, topMost++] != null) + Main.tile[x, topMost++].type = replaceType; + if (twoTall) + { + if (Main.tile[x, topMost] != null) + Main.tile[x, topMost].type = replaceType; + } + if (Main.tile[x, yOriginTile] != null) + Main.tile[x, yOriginTile].type = replaceOriginTile; + } + + private static bool CheckInEllipse(Point tile, Vector2 focus1, Vector2 focus2, float distanceConstant, Vector2 center, out float distance, bool collapse = false) + { + Vector2 point = tile.ToVector2() * 16f + new Vector2(8f); + if (collapse) //Collapse ensures the ellipse is shrunk down a lot in terms of distance. + { + float distY = center.Y - point.Y; + point.Y -= distY * 8f; + } + float distance1 = Vector2.Distance(point, focus1); + float distance2 = Vector2.Distance(point, focus2); + distance = distance1 + distance2; + return distance <= distanceConstant; + } + #endregion + + #region EvilIsland + public static void EvilIsland(int i, int j) + { + double num = (double)WorldGen.genRand.Next(100, 150); //100 150 + float num2 = (float)WorldGen.genRand.Next(20, 30); //20 30 + int num3 = i; + int num4 = i; + int num5 = i; + int num6 = j; + Vector2 vector; + vector.X = (float)i; + vector.Y = (float)j; + Vector2 vector2; + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + while (vector2.X > -2f && vector2.X < 2f) + { + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + } + vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; + while (num > 0.0 && num2 > 0f) + { + num -= (double)WorldGen.genRand.Next(4); + num2 -= 1f; + int num7 = (int)((double)vector.X - num * 0.5); + int num8 = (int)((double)vector.X + num * 0.5); + int num9 = (int)((double)vector.Y - num * 0.5); + int num10 = (int)((double)vector.Y + num * 0.5); + if (num7 < 0) + { + num7 = 0; + } + if (num8 > Main.maxTilesX) + { + num8 = Main.maxTilesX; + } + if (num9 < 0) + { + num9 = 0; + } + if (num10 > Main.maxTilesY) + { + num10 = Main.maxTilesY; + } + double num11 = num * (double)WorldGen.genRand.Next(80, 120) * 0.01; //80 120 + float num12 = vector.Y + 1f; + for (int k = num7; k < num8; k++) + { + if (WorldGen.genRand.Next(2) == 0) + { + num12 += (float)WorldGen.genRand.Next(-1, 2); + } + if (num12 < vector.Y) + { + num12 = vector.Y; + } + if (num12 > vector.Y + 2f) + { + num12 = vector.Y + 2f; + } + for (int l = num9; l < num10; l++) + { + if ((float)l > num12) + { + float arg_218_0 = Math.Abs((float)k - vector.X); + float num13 = Math.Abs((float)l - vector.Y) * 3f; + if (Math.Sqrt((double)(arg_218_0 * arg_218_0 + num13 * num13)) < num11 * 0.4) + { + if (k < num3) + { + num3 = k; + } + if (k > num4) + { + num4 = k; + } + if (l < num5) + { + num5 = l; + } + if (l > num6) + { + num6 = l; + } + Main.tile[k, l].active(true); + Main.tile[k, l].type = (ushort)(WorldGen.crimson ? 400 : 401); //ebonstone or crimstone + WorldGen.SquareTileFrame(k, l, true); + } + } + } + } + vector += vector2; + vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; + if (vector2.X > 1f) + { + vector2.X = 1f; + } + if (vector2.X < -1f) + { + vector2.X = -1f; + } + if ((double)vector2.Y > 0.2) + { + vector2.Y = -0.2f; + } + if ((double)vector2.Y < -0.2) + { + vector2.Y = -0.2f; + } + } + int m = num3; + int num15; + for (m += WorldGen.genRand.Next(5); m < num4; m += WorldGen.genRand.Next(num15, (int)((double)num15 * 1.5))) + { + int num14 = num6; + while (!Main.tile[m, num14].active()) + { + num14--; + } + num14 += WorldGen.genRand.Next(-3, 4); + num15 = WorldGen.genRand.Next(4, 8); + int num16 = (WorldGen.crimson ? 400 : 401); + if (WorldGen.genRand.Next(4) == 0) + { + num16 = (WorldGen.crimson ? 398 : 399); + } + for (int n = m - num15; n <= m + num15; n++) + { + for (int num17 = num14 - num15; num17 <= num14 + num15; num17++) + { + if (num17 > num5) + { + float arg_409_0 = (float)Math.Abs(n - m); + float num18 = (float)(Math.Abs(num17 - num14) * 2); + if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2))) + { + Main.tile[n, num17].active(true); + Main.tile[n, num17].type = (ushort)num16; + WorldGen.SquareTileFrame(n, num17, true); + } + } + } + } + } + num = (double)WorldGen.genRand.Next(80, 95); + num2 = (float)WorldGen.genRand.Next(10, 15); + vector.X = (float)i; + vector.Y = (float)num5; + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + while (vector2.X > -2f && vector2.X < 2f) + { + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + } + vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; + while (num > 0.0 && num2 > 0f) + { + num -= (double)WorldGen.genRand.Next(4); + num2 -= 1f; + int num7 = (int)((double)vector.X - num * 0.5); + int num8 = (int)((double)vector.X + num * 0.5); + int num9 = num5 - 1; + int num10 = (int)((double)vector.Y + num * 0.5); + if (num7 < 0) + { + num7 = 0; + } + if (num8 > Main.maxTilesX) + { + num8 = Main.maxTilesX; + } + if (num9 < 0) + { + num9 = 0; + } + if (num10 > Main.maxTilesY) + { + num10 = Main.maxTilesY; + } + double num11 = num * (double)WorldGen.genRand.Next(80, 120) * 0.01; + float num19 = vector.Y + 1f; + for (int num20 = num7; num20 < num8; num20++) + { + if (WorldGen.genRand.Next(2) == 0) + { + num19 += (float)WorldGen.genRand.Next(-1, 2); + } + if (num19 < vector.Y) + { + num19 = vector.Y; + } + if (num19 > vector.Y + 2f) + { + num19 = vector.Y + 2f; + } + for (int num21 = num9; num21 < num10; num21++) + { + if ((float)num21 > num19) + { + float arg_69E_0 = Math.Abs((float)num20 - vector.X); + float num22 = Math.Abs((float)num21 - vector.Y) * 3f; + if (Math.Sqrt((double)(arg_69E_0 * arg_69E_0 + num22 * num22)) < num11 * 0.4 && + Main.tile[num20, num21].type == (WorldGen.crimson ? 400 : 401)) + { + Main.tile[num20, num21].type = (ushort)(WorldGen.crimson ? 22 : 204); //ore + WorldGen.SquareTileFrame(num20, num21, true); + } + } + } + } + vector += vector2; + vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; + if (vector2.X > 1f) + { + vector2.X = 1f; + } + if (vector2.X < -1f) + { + vector2.X = -1f; + } + if ((double)vector2.Y > 0.2) + { + vector2.Y = -0.2f; + } + if ((double)vector2.Y < -0.2) + { + vector2.Y = -0.2f; + } + } + int num23 = num3; + num23 += WorldGen.genRand.Next(5); + while (num23 < num4) + { + int num24 = num6; + while ((!Main.tile[num23, num24].active() || Main.tile[num23, num24].type != 0) && num23 < num4) + { + num24--; + if (num24 < num5) + { + num24 = num6; + num23 += WorldGen.genRand.Next(1, 4); + } + } + if (num23 < num4) + { + num24 += WorldGen.genRand.Next(0, 4); + int num25 = WorldGen.genRand.Next(2, 5); + int num26 = (WorldGen.crimson ? 400 : 401); + for (int num27 = num23 - num25; num27 <= num23 + num25; num27++) + { + for (int num28 = num24 - num25; num28 <= num24 + num25; num28++) + { + if (num28 > num5) + { + float arg_890_0 = (float)Math.Abs(num27 - num23); + float num29 = (float)(Math.Abs(num28 - num24) * 2); + if (Math.Sqrt((double)(arg_890_0 * arg_890_0 + num29 * num29)) < (double)num25) + { + Main.tile[num27, num28].type = (ushort)num26; + WorldGen.SquareTileFrame(num27, num28, true); + } + } + } + } + num23 += WorldGen.genRand.Next(num25, (int)((double)num25 * 1.5)); + } + } + for (int num30 = num3 - 20; num30 <= num4 + 20; num30++) + { + for (int num31 = num5 - 20; num31 <= num6 + 20; num31++) + { + bool flag = true; + for (int num32 = num30 - 1; num32 <= num30 + 1; num32++) + { + for (int num33 = num31 - 1; num33 <= num31 + 1; num33++) + { + if (!Main.tile[num32, num33].active()) + { + flag = false; + } + } + } + if (flag) + { + Main.tile[num30, num31].wall = (ushort)(WorldGen.crimson ? 220 : 221); + WorldGen.SquareWallFrame(num30, num31, true); + } + } + } + for (int num34 = num3; num34 <= num4; num34++) + { + int num35 = num5 - 10; + while (!Main.tile[num34, num35 + 1].active()) + { + num35++; + } + if (num35 < num6 && Main.tile[num34, num35 + 1].type == (WorldGen.crimson ? 400 : 401)) + { + if (WorldGen.genRand.Next(10) == 0) + { + int num36 = WorldGen.genRand.Next(1, 3); + for (int num37 = num34 - num36; num37 <= num34 + num36; num37++) + { + if (Main.tile[num37, num35].type == (WorldGen.crimson ? 400 : 401)) + { + Main.tile[num37, num35].active(false); + Main.tile[num37, num35].liquid = 255; + Main.tile[num37, num35].lava(false); + WorldGen.SquareTileFrame(num34, num35, true); + } + if (Main.tile[num37, num35 + 1].type == (WorldGen.crimson ? 400 : 401)) + { + Main.tile[num37, num35 + 1].active(false); + Main.tile[num37, num35 + 1].liquid = 255; + Main.tile[num37, num35 + 1].lava(false); + WorldGen.SquareTileFrame(num34, num35 + 1, true); + } + if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (WorldGen.crimson ? 400 : 401)) + { + Main.tile[num37, num35 + 2].active(false); + Main.tile[num37, num35 + 2].liquid = 255; + Main.tile[num37, num35 + 2].lava(false); + WorldGen.SquareTileFrame(num34, num35 + 2, true); + } + } + } + if (WorldGen.genRand.Next(5) == 0) + { + Main.tile[num34, num35].liquid = 255; + } + Main.tile[num34, num35].lava(false); + WorldGen.SquareTileFrame(num34, num35, true); + } + } + int num38 = WorldGen.genRand.Next(4); + for (int num39 = 0; num39 <= num38; num39++) + { + int num40 = WorldGen.genRand.Next(num3 - 5, num4 + 5); + int num41 = num5 - WorldGen.genRand.Next(20, 40); + int num42 = WorldGen.genRand.Next(4, 8); + int num43 = (WorldGen.crimson ? 400 : 401); + if (WorldGen.genRand.Next(2) == 0) + { + num43 = (WorldGen.crimson ? 398 : 399); + } + for (int num44 = num40 - num42; num44 <= num40 + num42; num44++) + { + for (int num45 = num41 - num42; num45 <= num41 + num42; num45++) + { + float arg_C74_0 = (float)Math.Abs(num44 - num40); + float num46 = (float)(Math.Abs(num45 - num41) * 2); + if (Math.Sqrt((double)(arg_C74_0 * arg_C74_0 + num46 * num46)) < (double)(num42 + WorldGen.genRand.Next(-1, 2))) + { + Main.tile[num44, num45].active(true); + Main.tile[num44, num45].type = (ushort)num43; + WorldGen.SquareTileFrame(num44, num45, true); + } + } + } + for (int num47 = num40 - num42 + 2; num47 <= num40 + num42 - 2; num47++) + { + int num48 = num41 - num42; + while (!Main.tile[num47, num48].active()) + { + num48++; + } + Main.tile[num47, num48].active(false); + Main.tile[num47, num48].liquid = 255; + WorldGen.SquareTileFrame(num47, num48, true); + } + } + } + #endregion + + #region EvilIslandHouse + public static void EvilIslandHouse(int i, int j) + { + ushort type = (ushort)(WorldGen.crimson ? 152 : 347); //tile + byte wall = (byte)(WorldGen.crimson ? 35 : 174); //wall + Vector2 vector = new Vector2((float)i, (float)j); + int num = 1; + if (WorldGen.genRand.Next(2) == 0) + { + num = -1; + } + int num2 = WorldGen.genRand.Next(7, 12); + int num3 = WorldGen.genRand.Next(5, 7); + vector.X = (float)(i + (num2 + 2) * num); + for (int k = j - 15; k < j + 30; k++) + { + if (Main.tile[(int)vector.X, k].active()) + { + vector.Y = (float)(k - 1); + break; + } + } + vector.X = (float)i; + int num4 = (int)(vector.X - (float)num2 - 1f); + int num5 = (int)(vector.X + (float)num2 + 1f); + int num6 = (int)(vector.Y - (float)num3 - 1f); + int num7 = (int)(vector.Y + 2f); + if (num4 < 0) + { + num4 = 0; + } + if (num5 > Main.maxTilesX) + { + num5 = Main.maxTilesX; + } + if (num6 < 0) + { + num6 = 0; + } + if (num7 > Main.maxTilesY) + { + num7 = Main.maxTilesY; + } + for (int l = num4; l <= num5; l++) + { + for (int m = num6 - 1; m < num7 + 1; m++) + { + if (m != num6 - 1 || (l != num4 && l != num5)) + { + Main.tile[l, m].active(true); + Main.tile[l, m].liquid = 0; + Main.tile[l, m].type = type; + Main.tile[l, m].wall = 0; + Main.tile[l, m].halfBrick(false); + Main.tile[l, m].slope(0); + } + } + } + num4 = (int)(vector.X - (float)num2); + num5 = (int)(vector.X + (float)num2); + num6 = (int)(vector.Y - (float)num3); + num7 = (int)(vector.Y + 1f); + if (num4 < 0) + { + num4 = 0; + } + if (num5 > Main.maxTilesX) + { + num5 = Main.maxTilesX; + } + if (num6 < 0) + { + num6 = 0; + } + if (num7 > Main.maxTilesY) + { + num7 = Main.maxTilesY; + } + for (int n = num4; n <= num5; n++) + { + for (int num8 = num6; num8 < num7; num8++) + { + if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].wall == 0) + { + Main.tile[n, num8].active(false); + Main.tile[n, num8].wall = wall; + } + } + } + int num9 = i + (num2 + 1) * num; + int num10 = (int)vector.Y; + for (int num11 = num9 - 2; num11 <= num9 + 2; num11++) + { + Main.tile[num11, num10].active(false); + Main.tile[num11, num10 - 1].active(false); + Main.tile[num11, num10 - 2].active(false); + } + WorldGen.PlaceTile(num9, num10, 10, true, false, -1, (WorldGen.crimson ? 1 : 10)); //door + num9 = i + (num2 + 1) * -num - num; + for (int num12 = num6; num12 <= num7 + 1; num12++) + { + Main.tile[num9, num12].active(true); + Main.tile[num9, num12].liquid = 0; + Main.tile[num9, num12].type = type; + Main.tile[num9, num12].wall = 0; + Main.tile[num9, num12].halfBrick(false); + Main.tile[num9, num12].slope(0); + } + int contain = 0; + if (WorldGen.crimson) + { + contain = 1571; //scourge + } + else + { + contain = 1569; //vampire + } + WorldGen.AddBuriedChest(i, num10 - 3, contain, false, (WorldGen.crimson ? 19 : 20)); //chest + int num14 = i - num2 / 2 + 1; + int num15 = i + num2 / 2 - 1; + int num16 = 1; + if (num2 > 10) + { + num16 = 2; + } + int num17 = (num6 + num7) / 2 - 1; + for (int num18 = num14 - num16; num18 <= num14 + num16; num18++) + { + for (int num19 = num17 - 1; num19 <= num17 + 1; num19++) + { + Main.tile[num18, num19].wall = 21; //glass + } + } + for (int num20 = num15 - num16; num20 <= num15 + num16; num20++) + { + for (int num21 = num17 - 1; num21 <= num17 + 1; num21++) + { + Main.tile[num20, num21].wall = 21; //glass + } + } + int num22 = i + (num2 / 2 + 1) * -num; + WorldGen.PlaceTile(num22, num7 - 1, 14, true, false, -1, (WorldGen.crimson ? 1 : 8)); //table + WorldGen.PlaceTile(num22 - 2, num7 - 1, 15, true, false, 0, (WorldGen.crimson ? 2 : 11)); //chair + Tile expr_510 = Main.tile[num22 - 2, num7 - 1]; + expr_510.frameX += 18; + Tile expr_531 = Main.tile[num22 - 2, num7 - 2]; + expr_531.frameX += 18; + WorldGen.PlaceTile(num22 + 2, num7 - 1, 15, true, false, 0, (WorldGen.crimson ? 2 : 11)); //chair + } + #endregion + + #region UnderworldIsland + public static void UnderworldIsland(int i, int j, int sizeMin, int sizeMax, int sizeMin2, int sizeMax2) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + double num = (double)WorldGen.genRand.Next(sizeMin, sizeMax); //100 150 + float num2 = (float)WorldGen.genRand.Next(sizeMin / 5, sizeMax / 5); //20 30 + int num3 = i; + int num4 = i; + int num5 = i; + int num6 = j; + Vector2 vector; + vector.X = (float)i; + vector.Y = (float)j; + Vector2 vector2; + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + while (vector2.X > -2f && vector2.X < 2f) + { + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + } + vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; + while (num > 0.0 && num2 > 0f) + { + num -= (double)WorldGen.genRand.Next(4); + num2 -= 1f; + int num7 = (int)((double)vector.X - num * 0.5); + int num8 = (int)((double)vector.X + num * 0.5); + int num9 = (int)((double)vector.Y - num * 0.5); + int num10 = (int)((double)vector.Y + num * 0.5); + if (num7 < 0) + { + num7 = 0; + } + if (num8 > Main.maxTilesX) + { + num8 = Main.maxTilesX; + } + if (num9 < 0) + { + num9 = 0; + } + if (num10 > Main.maxTilesY) + { + num10 = Main.maxTilesY; + } + double num11 = num * (double)WorldGen.genRand.Next(sizeMin, sizeMax) * 0.01; //80 120 + float num12 = vector.Y + 1f; + for (int k = num7; k < num8; k++) + { + if (WorldGen.genRand.Next(2) == 0) + { + num12 += (float)WorldGen.genRand.Next(-1, 2); + } + if (num12 < vector.Y) + { + num12 = vector.Y; + } + if (num12 > vector.Y + 2f) + { + num12 = vector.Y + 2f; + } + for (int l = num9; l < num10; l++) + { + if ((float)l > num12) + { + float arg_218_0 = Math.Abs((float)k - vector.X); + float num13 = Math.Abs((float)l - vector.Y) * 3f; + if (Math.Sqrt((double)(arg_218_0 * arg_218_0 + num13 * num13)) < num11 * 0.4) + { + if (k < num3) + { + num3 = k; + } + if (k > num4) + { + num4 = k; + } + if (l < num5) + { + num5 = l; + } + if (l > num6) + { + num6 = l; + } + Main.tile[k, l].active(true); + Main.tile[k, l].type = (ushort)mod.TileType("BrimstoneSlag"); + WorldGen.SquareTileFrame(k, l, true); + } + } + } + } + vector += vector2; + vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; + if (vector2.X > 1f) + { + vector2.X = 1f; + } + if (vector2.X < -1f) + { + vector2.X = -1f; + } + if ((double)vector2.Y > 0.2) + { + vector2.Y = -0.2f; + } + if ((double)vector2.Y < -0.2) + { + vector2.Y = -0.2f; + } + } + int m = num3; + int num15; + for (m += WorldGen.genRand.Next(5); m < num4; m += WorldGen.genRand.Next(num15, (int)((double)num15 * 1.5))) + { + int num14 = num6; + while (!Main.tile[m, num14].active()) + { + num14--; + } + num14 += WorldGen.genRand.Next(-3, 4); + num15 = WorldGen.genRand.Next(4, 8); + int num16 = mod.TileType("BrimstoneSlag"); + if (WorldGen.genRand.Next(4) == 0) + { + num16 = mod.TileType("CharredOre"); + } + for (int n = m - num15; n <= m + num15; n++) + { + for (int num17 = num14 - num15; num17 <= num14 + num15; num17++) + { + if (num17 > num5) + { + float arg_409_0 = (float)Math.Abs(n - m); + float num18 = (float)(Math.Abs(num17 - num14) * 2); + if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2))) + { + Main.tile[n, num17].active(true); + Main.tile[n, num17].type = (ushort)num16; + WorldGen.SquareTileFrame(n, num17, true); + } + } + } + } + } + num = (double)WorldGen.genRand.Next(sizeMin2, sizeMax2); + num2 = (float)WorldGen.genRand.Next(sizeMin2 / 8, sizeMax2 / 8); + vector.X = (float)i; + vector.Y = (float)num5; + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + while (vector2.X > -2f && vector2.X < 2f) + { + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + } + vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; + while (num > 0.0 && num2 > 0f) + { + num -= (double)WorldGen.genRand.Next(4); + num2 -= 1f; + vector += vector2; + vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; + if (vector2.X > 1f) + { + vector2.X = 1f; + } + if (vector2.X < -1f) + { + vector2.X = -1f; + } + if ((double)vector2.Y > 0.2) + { + vector2.Y = -0.2f; + } + if ((double)vector2.Y < -0.2) + { + vector2.Y = -0.2f; + } + } + int num23 = num3; + num23 += WorldGen.genRand.Next(5); + while (num23 < num4) + { + int num24 = num6; + while ((!Main.tile[num23, num24].active() || Main.tile[num23, num24].type != 0) && num23 < num4) + { + num24--; + if (num24 < num5) + { + num24 = num6; + num23 += WorldGen.genRand.Next(1, 4); + } + } + if (num23 < num4) + { + num24 += WorldGen.genRand.Next(0, 4); + int num25 = WorldGen.genRand.Next(2, 5); + int num26 = mod.TileType("BrimstoneSlag"); + for (int num27 = num23 - num25; num27 <= num23 + num25; num27++) + { + for (int num28 = num24 - num25; num28 <= num24 + num25; num28++) + { + if (num28 > num5) + { + float arg_890_0 = (float)Math.Abs(num27 - num23); + float num29 = (float)(Math.Abs(num28 - num24) * 2); + if (Math.Sqrt((double)(arg_890_0 * arg_890_0 + num29 * num29)) < (double)num25) + { + Main.tile[num27, num28].type = (ushort)num26; + WorldGen.SquareTileFrame(num27, num28, true); + } + } + } + } + num23 += WorldGen.genRand.Next(num25, (int)((double)num25 * 1.5)); + } + } + for (int num34 = num3; num34 <= num4; num34++) + { + int num35 = num5 - 10; + while (!Main.tile[num34, num35 + 1].active()) + { + num35++; + } + if (num35 < num6 && Main.tile[num34, num35 + 1].type == (ushort)mod.TileType("BrimstoneSlag")) + { + if (WorldGen.genRand.Next(10) == 0) + { + int num36 = WorldGen.genRand.Next(1, 3); + for (int num37 = num34 - num36; num37 <= num34 + num36; num37++) + { + if (Main.tile[num37, num35].type == (ushort)mod.TileType("BrimstoneSlag")) + { + Main.tile[num37, num35].active(false); + Main.tile[num37, num35].liquid = 255; + Main.tile[num37, num35].lava(false); + WorldGen.SquareTileFrame(num34, num35, true); + } + if (Main.tile[num37, num35 + 1].type == (ushort)mod.TileType("BrimstoneSlag")) + { + Main.tile[num37, num35 + 1].active(false); + Main.tile[num37, num35 + 1].liquid = 255; + Main.tile[num37, num35 + 1].lava(false); + WorldGen.SquareTileFrame(num34, num35 + 1, true); + } + if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (ushort)mod.TileType("BrimstoneSlag")) + { + Main.tile[num37, num35 + 2].active(false); + Main.tile[num37, num35 + 2].liquid = 255; + Main.tile[num37, num35 + 2].lava(false); + WorldGen.SquareTileFrame(num34, num35 + 2, true); + } + } + } + if (WorldGen.genRand.Next(5) == 0) + { + Main.tile[num34, num35].liquid = 255; + } + Main.tile[num34, num35].lava(false); + WorldGen.SquareTileFrame(num34, num35, true); + } + } + } + #endregion + + #region UnderworldIslandHouse + public static void UnderworldIslandHouse(int i, int j, int item) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + ushort type = (ushort)mod.TileType("BrimstoneSlag"); //tile + byte wall = (byte)14; //wall + Vector2 vector = new Vector2((float)i, (float)j); + int num = 1; + if (WorldGen.genRand.Next(2) == 0) + { + num = -1; + } + int num2 = WorldGen.genRand.Next(7, 12); + int num3 = WorldGen.genRand.Next(5, 7); + vector.X = (float)(i + (num2 + 2) * num); + for (int k = j - 15; k < j + 30; k++) + { + if (Main.tile[(int)vector.X, k].active()) + { + vector.Y = (float)(k - 1); + break; + } + } + vector.X = (float)i; + int num4 = (int)(vector.X - (float)num2 - 1f); + int num5 = (int)(vector.X + (float)num2 + 1f); + int num6 = (int)(vector.Y - (float)num3 - 1f); + int num7 = (int)(vector.Y + 2f); + if (num4 < 0) + { + num4 = 0; + } + if (num5 > Main.maxTilesX) + { + num5 = Main.maxTilesX; + } + if (num6 < 0) + { + num6 = 0; + } + if (num7 > Main.maxTilesY) + { + num7 = Main.maxTilesY; + } + for (int l = num4; l <= num5; l++) + { + for (int m = num6 - 1; m < num7 + 1; m++) + { + if (m != num6 - 1 || (l != num4 && l != num5)) + { + Main.tile[l, m].active(true); + Main.tile[l, m].liquid = 0; + Main.tile[l, m].type = type; + Main.tile[l, m].wall = 0; + Main.tile[l, m].halfBrick(false); + Main.tile[l, m].slope(0); + } + } + } + num4 = (int)(vector.X - (float)num2); + num5 = (int)(vector.X + (float)num2); + num6 = (int)(vector.Y - (float)num3); + num7 = (int)(vector.Y + 1f); + if (num4 < 0) + { + num4 = 0; + } + if (num5 > Main.maxTilesX) + { + num5 = Main.maxTilesX; + } + if (num6 < 0) + { + num6 = 0; + } + if (num7 > Main.maxTilesY) + { + num7 = Main.maxTilesY; + } + for (int n = num4; n <= num5; n++) + { + for (int num8 = num6; num8 < num7; num8++) + { + if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].wall == 0) + { + Main.tile[n, num8].active(false); + Main.tile[n, num8].wall = wall; + } + } + } + int num9 = i + (num2 + 1) * num; + int num10 = (int)vector.Y; + for (int num11 = num9 - 2; num11 <= num9 + 2; num11++) + { + Main.tile[num11, num10].active(false); + Main.tile[num11, num10 - 1].active(false); + Main.tile[num11, num10 - 2].active(false); + } + WorldGen.PlaceTile(num9, num10, 10, true, false, -1, 19); //door + num9 = i + (num2 + 1) * -num - num; + for (int num12 = num6; num12 <= num7 + 1; num12++) + { + Main.tile[num9, num12].active(true); + Main.tile[num9, num12].liquid = 0; + Main.tile[num9, num12].type = type; + Main.tile[num9, num12].wall = 0; + Main.tile[num9, num12].halfBrick(false); + Main.tile[num9, num12].slope(0); + } + WorldGen.AddBuriedChest(i, num10 - 3, item, false, 4); //chest + int num22 = i + (num2 / 2 + 1) * -num; + WorldGen.PlaceTile(num22, num7 - 1, 14, true, false, -1, 13); //table + WorldGen.PlaceTile(num22 - 2, num7 - 1, 15, true, false, 0, 16); //chair + Tile expr_510 = Main.tile[num22 - 2, num7 - 1]; + expr_510.frameX += 18; + Tile expr_531 = Main.tile[num22 - 2, num7 - 2]; + expr_531.frameX += 18; + WorldGen.PlaceTile(num22 + 2, num7 - 1, 15, true, false, 0, 16); //chair + } + #endregion + + #region AbyssIsland + public static void AbyssIsland(int i, int j, int sizeMin, int sizeMax, int sizeMin2, int sizeMax2, bool hasChest, bool hasTenebris, bool isVoid) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + int sizeMinSmall = sizeMin / 5; + int sizeMaxSmall = sizeMax / 5; + double num = (double)WorldGen.genRand.Next(sizeMin, sizeMax); //100 150 + float num2 = (float)WorldGen.genRand.Next(sizeMinSmall, sizeMaxSmall); //20 30 + int num3 = i; + int num4 = i; + int num5 = i; + int num6 = j; + Vector2 vector; + vector.X = (float)i; + vector.Y = (float)j; + Vector2 vector2; + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + while (vector2.X > -2f && vector2.X < 2f) + { + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + } + vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; + while (num > 0.0 && num2 > 0f) + { + num -= (double)WorldGen.genRand.Next(4); + num2 -= 1f; + int num7 = (int)((double)vector.X - num * 0.5); + int num8 = (int)((double)vector.X + num * 0.5); + int num9 = (int)((double)vector.Y - num * 0.5); + int num10 = (int)((double)vector.Y + num * 0.5); + if (num7 < 0) + { + num7 = 0; + } + if (num8 > Main.maxTilesX) + { + num8 = Main.maxTilesX; + } + if (num9 < 0) + { + num9 = 0; + } + if (num10 > Main.maxTilesY) + { + num10 = Main.maxTilesY; + } + double num11 = num * (double)WorldGen.genRand.Next(sizeMin, sizeMax) * 0.01; //80 120 + float num12 = vector.Y + 1f; + for (int k = num7; k < num8; k++) + { + if (WorldGen.genRand.Next(2) == 0) + { + num12 += (float)WorldGen.genRand.Next(-1, 2); + } + if (num12 < vector.Y) + { + num12 = vector.Y; + } + if (num12 > vector.Y + 2f) + { + num12 = vector.Y + 2f; + } + for (int l = num9; l < num10; l++) + { + if ((float)l > num12) + { + float arg_218_0 = Math.Abs((float)k - vector.X); + float num13 = Math.Abs((float)l - vector.Y) * 3f; + if (Math.Sqrt((double)(arg_218_0 * arg_218_0 + num13 * num13)) < num11 * 0.4) + { + if (k < num3) + { + num3 = k; + } + if (k > num4) + { + num4 = k; + } + if (l < num5) + { + num5 = l; + } + if (l > num6) + { + num6 = l; + } + Main.tile[k, l].active(true); + Main.tile[k, l].type = (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); + SafeSquareTileFrame(k, l, true); + } + } + } + } + vector += vector2; + vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; + if (vector2.X > 1f) + { + vector2.X = 1f; + } + if (vector2.X < -1f) + { + vector2.X = -1f; + } + if ((double)vector2.Y > 0.2) + { + vector2.Y = -0.2f; + } + if ((double)vector2.Y < -0.2) + { + vector2.Y = -0.2f; + } + } + int m = num3; + int num15; + for (m += WorldGen.genRand.Next(5); m < num4; m += WorldGen.genRand.Next(num15, (int)((double)num15 * 1.5))) + { + int num14 = num6; + while (!Main.tile[m, num14].active()) + { + num14--; + } + num14 += WorldGen.genRand.Next(-3, 4); + num15 = WorldGen.genRand.Next(4, 8); + int num16 = (isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); + if (WorldGen.genRand.Next(4) == 0) + { + num16 = (hasChest ? mod.TileType("ChaoticOre") : mod.TileType("PlantyMush")); + } + for (int n = m - num15; n <= m + num15; n++) + { + for (int num17 = num14 - num15; num17 <= num14 + num15; num17++) + { + if (num17 > num5) + { + float arg_409_0 = (float)Math.Abs(n - m); + float num18 = (float)(Math.Abs(num17 - num14) * 2); + if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2))) + { + Main.tile[n, num17].active(true); + Main.tile[n, num17].type = (ushort)num16; + SafeSquareTileFrame(n, num17, true); + } + } + } + } + } + if (hasTenebris) + { + int p = num3; + int num150; + for (p += WorldGen.genRand.Next(5); p < num4; p += WorldGen.genRand.Next(num150, (int)((double)num150 * 1.5))) + { + int num14 = num6; + while (!Main.tile[p, num14].active()) + { + num14--; + } + num14 += WorldGen.genRand.Next(-3, 4); //-3 4 + num150 = 1; //4 8 + int num16 = mod.TileType("Tenebris"); + for (int n = p - num150; n <= p + num150; n++) + { + for (int num17 = num14 - num150; num17 <= num14 + num150; num17++) + { + if (num17 > num5) + { + float arg_409_0 = (float)Math.Abs(n - p); + float num18 = (float)(Math.Abs(num17 - num14) * 2); + if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num150 + WorldGen.genRand.Next(2))) + { + Main.tile[n, num17].active(true); + Main.tile[n, num17].type = (ushort)num16; + SafeSquareTileFrame(n, num17, true); + } + } + } + } + } + } + int sizeMinSmall2 = sizeMin2 / 8; + int sizeMaxSmall2 = sizeMax2 / 8; + num = (double)WorldGen.genRand.Next(sizeMin2, sizeMax2); + num2 = (float)WorldGen.genRand.Next(sizeMinSmall2, sizeMaxSmall2); + vector.X = (float)i; + vector.Y = (float)num5; + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + while (vector2.X > -2f && vector2.X < 2f) + { + vector2.X = (float)WorldGen.genRand.Next(-20, 21) * 0.2f; + } + vector2.Y = (float)WorldGen.genRand.Next(-20, -10) * 0.02f; + while (num > 0.0 && num2 > 0f) + { + num -= (double)WorldGen.genRand.Next(4); + num2 -= 1f; + vector += vector2; + vector2.X += (float)WorldGen.genRand.Next(-20, 21) * 0.05f; + if (vector2.X > 1f) + { + vector2.X = 1f; + } + if (vector2.X < -1f) + { + vector2.X = -1f; + } + if ((double)vector2.Y > 0.2) + { + vector2.Y = -0.2f; + } + if ((double)vector2.Y < -0.2) + { + vector2.Y = -0.2f; + } + } + int num23 = num3; + num23 += WorldGen.genRand.Next(5); + while (num23 < num4) + { + int num24 = num6; + while ((!Main.tile[num23, num24].active() || Main.tile[num23, num24].type != 0) && num23 < num4) + { + num24--; + if (num24 < num5) + { + num24 = num6; + num23 += WorldGen.genRand.Next(1, 4); + } + } + if (num23 < num4) + { + num24 += WorldGen.genRand.Next(0, 4); + int num25 = WorldGen.genRand.Next(2, 5); + int num26 = (isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); + for (int num27 = num23 - num25; num27 <= num23 + num25; num27++) + { + for (int num28 = num24 - num25; num28 <= num24 + num25; num28++) + { + if (num28 > num5) + { + float arg_890_0 = (float)Math.Abs(num27 - num23); + float num29 = (float)(Math.Abs(num28 - num24) * 2); + if (Math.Sqrt((double)(arg_890_0 * arg_890_0 + num29 * num29)) < (double)num25) + { + Main.tile[num27, num28].type = (ushort)num26; + SafeSquareTileFrame(num27, num28, true); + } + } + } + } + num23 += WorldGen.genRand.Next(num25, (int)((double)num25 * 1.5)); + } + } + for (int num30 = num3 - 20; num30 <= num4 + 20; num30++) + { + for (int num31 = num5 - 20; num31 <= num6 + 20; num31++) + { + bool flag = true; + for (int num32 = num30 - 1; num32 <= num30 + 1; num32++) + { + for (int num33 = num31 - 1; num33 <= num31 + 1; num33++) + { + if (!Main.tile[num32, num33].active()) + { + flag = false; + } + } + } + if (flag) + { + Main.tile[num30, num31].wall = (ushort)(isVoid ? mod.WallType("VoidstoneWallUnsafe") : mod.WallType("AbyssGravelWall")); + WorldGen.SquareWallFrame(num30, num31, true); + } + } + } + for (int num34 = num3; num34 <= num4; num34++) + { + int num35 = num5 - 10; + while (!Main.tile[num34, num35 + 1].active()) + { + num35++; + } + if (num35 < num6 && Main.tile[num34, num35 + 1].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) + { + if (WorldGen.genRand.Next(10) == 0) + { + int num36 = WorldGen.genRand.Next(1, 3); + for (int num37 = num34 - num36; num37 <= num34 + num36; num37++) + { + if (Main.tile[num37, num35].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) + { + Main.tile[num37, num35].active(false); + Main.tile[num37, num35].liquid = 255; + Main.tile[num37, num35].lava(false); + SafeSquareTileFrame(num34, num35, true); + } + if (Main.tile[num37, num35 + 1].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) + { + Main.tile[num37, num35 + 1].active(false); + Main.tile[num37, num35 + 1].liquid = 255; + Main.tile[num37, num35 + 1].lava(false); + SafeSquareTileFrame(num34, num35 + 1, true); + } + if (num37 > num34 - num36 && num37 < num34 + 2 && Main.tile[num37, num35 + 2].type == (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel"))) + { + Main.tile[num37, num35 + 2].active(false); + Main.tile[num37, num35 + 2].liquid = 255; + Main.tile[num37, num35 + 2].lava(false); + SafeSquareTileFrame(num34, num35 + 2, true); + } + } + } + if (WorldGen.genRand.Next(5) == 0) + { + Main.tile[num34, num35].liquid = 255; + } + Main.tile[num34, num35].lava(false); + SafeSquareTileFrame(num34, num35, true); + } + } + } + #endregion + + #region AbyssIslandHouse + public static void AbyssIslandHouse(int i, int j, int itemChoice, bool isVoid) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + ushort type = (ushort)(isVoid ? mod.TileType("Voidstone") : mod.TileType("AbyssGravel")); //tile + ushort wall = (ushort)(isVoid ? mod.WallType("VoidstoneWallUnsafe") : mod.WallType("AbyssGravelWall")); //wall + Vector2 vector = new Vector2((float)i, (float)j); + int num = 1; + if (WorldGen.genRand.Next(2) == 0) + { + num = -1; + } + int num2 = WorldGen.genRand.Next(5, 9); + int num3 = 3; + vector.X = (float)(i + (num2 + 2) * num); + for (int k = j - 15; k < j + 30; k++) + { + if (Main.tile[(int)vector.X, k].active()) + { + vector.Y = (float)(k - 1); + break; + } + } + vector.X = (float)i; + int num4 = (int)(vector.X - (float)num2 - 1f); + int num5 = (int)(vector.X + (float)num2 + 1f); + int num6 = (int)(vector.Y - (float)num3 - 1f); + int num7 = (int)(vector.Y + 2f); + if (num4 < 0) + { + num4 = 0; + } + if (num5 > Main.maxTilesX) + { + num5 = Main.maxTilesX; + } + if (num6 < 0) + { + num6 = 0; + } + if (num7 > Main.maxTilesY) + { + num7 = Main.maxTilesY; + } + for (int l = num4; l <= num5; l++) + { + for (int m = num6 - 1; m < num7 + 1; m++) + { + if (m != num6 - 1 || (l != num4 && l != num5)) + { + Main.tile[l, m].active(true); + Main.tile[l, m].type = type; + Main.tile[l, m].wall = wall; + Main.tile[l, m].halfBrick(false); + Main.tile[l, m].slope(0); + } + } + } + num4 = (int)(vector.X - (float)num2); + num5 = (int)(vector.X + (float)num2); + num6 = (int)(vector.Y - (float)num3); + num7 = (int)(vector.Y + 1f); + if (num4 < 0) + { + num4 = 0; + } + if (num5 > Main.maxTilesX) + { + num5 = Main.maxTilesX; + } + if (num6 < 0) + { + num6 = 0; + } + if (num7 > Main.maxTilesY) + { + num7 = Main.maxTilesY; + } + for (int n = num4; n <= num5; n++) + { + for (int num8 = num6; num8 < num7; num8++) + { + if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].wall == wall) + { + Main.tile[n, num8].active(false); + } + } + } + int num9 = i + (num2 + 1) * num; + int num10 = (int)vector.Y; + for (int num11 = num9 - 2; num11 <= num9 + 2; num11++) + { + Main.tile[num11, num10].active(false); + Main.tile[num11, num10 - 1].active(false); + Main.tile[num11, num10 - 2].active(false); + } + switch (itemChoice) + { + case 0: itemChoice = mod.ItemType("TorrentialTear"); break; //rain item + case 1: itemChoice = mod.ItemType("IronBoots"); break; //movement acc + case 2: itemChoice = mod.ItemType("DepthCharm"); break; //regen acc + case 3: itemChoice = mod.ItemType("Archerfish"); break; //ranged + case 4: itemChoice = mod.ItemType("AnechoicPlating"); break; //defense acc + case 5: itemChoice = mod.ItemType("BallOFugu"); break; //melee + case 6: itemChoice = mod.ItemType("StrangeOrb"); break; //light pet + case 7: itemChoice = mod.ItemType("HerringStaff"); break; //summon + case 8: itemChoice = mod.ItemType("BlackAnurian"); break; //magic + case 9: itemChoice = mod.ItemType("Lionfish"); break; //throwing + default: itemChoice = 497; break; + } + WorldGen.AddBuriedChest(i, num10 - 3, itemChoice, false, 4); //chest + } + #endregion + + #region IcePyramid + public static bool IcePyramid(int i, int j) + { + ushort num = 161; + int arg_36_0 = j - WorldGen.genRand.Next(0, 7); + int num2 = WorldGen.genRand.Next(9, 13); + int num3 = 1; + int num4 = j + WorldGen.genRand.Next(75, 125); //75 125 + for (int k = arg_36_0; k < num4; k++) + { + for (int l = i - num3; l < i + num3 - 1; l++) + { + Main.tile[l, k].type = num; + Main.tile[l, k].active(true); + Main.tile[l, k].halfBrick(false); + Main.tile[l, k].slope(0); + } + num3++; + } + for (int m = i - num3 - 5; m <= i + num3 + 5; m++) + { + for (int n = j - 1; n <= num4 + 1; n++) + { + bool flag = true; + for (int num5 = m - 1; num5 <= m + 1; num5++) + { + for (int num6 = n - 1; num6 <= n + 1; num6++) + { + if (Main.tile[num5, num6].type != num) + { + flag = false; + } + } + } + if (flag) + { + Main.tile[m, n].wall = 71; + WorldGen.SquareWallFrame(m, n, true); + } + } + } + int num7 = 1; + if (WorldGen.genRand.Next(2) == 0) + { + num7 = -1; + } + int num8 = i - num2 * num7; + int num9 = j + num2; + int num10 = WorldGen.genRand.Next(5, 8); + bool flag2 = true; + int num11 = WorldGen.genRand.Next(20, 30); + while (flag2) + { + flag2 = false; + bool flag3 = false; + for (int num12 = num9; num12 <= num9 + num10; num12++) + { + int num13 = num8; + if (Main.tile[num13, num12 - 1].type == 161) + { + flag3 = true; + } + if (Main.tile[num13, num12].type == num) + { + Main.tile[num13, num12 + 1].wall = 71; + Main.tile[num13 + num7, num12].wall = 71; + Main.tile[num13, num12].active(false); + flag2 = true; + } + if (flag3) + { + Main.tile[num13, num12].type = 161; + Main.tile[num13, num12].active(true); + Main.tile[num13, num12].halfBrick(false); + Main.tile[num13, num12].slope(0); + } + } + num8 -= num7; + } + num8 = i - num2 * num7; + bool flag4 = true; + bool flag5 = false; + flag2 = true; + while (flag2) + { + for (int num14 = num9; num14 <= num9 + num10; num14++) + { + int num15 = num8; + Main.tile[num15, num14].active(false); + } + num8 += num7; + num9++; + num11--; + if (num9 >= num4 - num10 * 2) + { + num11 = 10; + } + if (num11 <= 0) + { + bool flag6 = false; + if (!flag4 && !flag5) + { + flag5 = true; + flag6 = true; + int num16 = WorldGen.genRand.Next(7, 13); + int num17 = WorldGen.genRand.Next(23, 28); + int num18 = num17; + int num19 = num8; + while (num17 > 0) + { + for (int num20 = num9 - num16 + num10; num20 <= num9 + num10; num20++) + { + if (num17 == num18 || num17 == 1) + { + if (num20 >= num9 - num16 + num10 + 2) + { + Main.tile[num8, num20].active(false); + } + } + else if (num17 == num18 - 1 || num17 == 2 || num17 == num18 - 2 || num17 == 3) + { + if (num20 >= num9 - num16 + num10 + 1) + { + Main.tile[num8, num20].active(false); + } + } + else + { + Main.tile[num8, num20].active(false); + } + } + num17--; + num8 += num7; + } + int num21 = num8 - num7; + int num22 = num21; + int num23 = num19; + if (num21 > num19) + { + num22 = num19; + num23 = num21; + } + int num24 = WorldGen.genRand.Next(3); + if (num24 == 0) + { + num24 = 1861; //diving gear + } + else if (num24 == 1) + { + num24 = 1163; //balloon + } + else if (num24 == 2) + { + num24 = 1253; //shell + } + WorldGen.AddBuriedChest((num22 + num23) / 2, num9, num24, false, 22); + int num25 = WorldGen.genRand.Next(1, 10); + for (int num26 = 0; num26 < num25; num26++) + { + int arg_49B_0 = WorldGen.genRand.Next(num22, num23); + int j2 = num9 + num10; + WorldGen.PlaceSmallPile(arg_49B_0, j2, WorldGen.genRand.Next(16, 19), 1, 185); + } + for (int num27 = num22; num27 <= num23; num27++) + { + WorldGen.PlacePot(num27, num9 + num10, 28, WorldGen.genRand.Next(4, 7)); + } + } + if (flag4) + { + flag4 = false; + num7 *= -1; + num11 = WorldGen.genRand.Next(15, 20); + } + else if (flag6) + { + num11 = WorldGen.genRand.Next(10, 15); + } + else + { + num7 *= -1; + num11 = WorldGen.genRand.Next(20, 40); + } + } + if (num9 >= num4 - num10) + { + flag2 = false; + } + } + int num28 = WorldGen.genRand.Next(20, 40); //100 200 + int num29 = WorldGen.genRand.Next(100, 160); //500 800 + flag2 = true; + int num30 = num10; + num11 = WorldGen.genRand.Next(10, 50); + if (num7 == 1) + { + num8 -= num30; + } + int num31 = WorldGen.genRand.Next(5, 10); + while (flag2) + { + num28--; + num29--; + num11--; + for (int num32 = num8 - num31 - WorldGen.genRand.Next(0, 2); num32 <= num8 + num30 + num31 + WorldGen.genRand.Next(0, 2); num32++) + { + int num33 = num9; + if (num32 >= num8 && num32 <= num8 + num30) + { + Main.tile[num32, num33].active(false); + } + else + { + Main.tile[num32, num33].type = num; + Main.tile[num32, num33].active(true); + Main.tile[num32, num33].halfBrick(false); + Main.tile[num32, num33].slope(0); + } + if (num32 >= num8 - 1 && num32 <= num8 + 1 + num30) + { + Main.tile[num32, num33].wall = 71; + } + } + num9++; + num8 += num7; + if (num28 <= 0) + { + flag2 = false; + for (int num34 = num8 + 1; num34 <= num8 + num30 - 1; num34++) + { + if (Main.tile[num34, num9].active()) + { + flag2 = true; + } + } + } + if (num11 < 0) + { + num11 = WorldGen.genRand.Next(10, 50); + num7 *= -1; + } + if (num29 <= 0) + { + flag2 = false; + } + } + return true; + } + #endregion + + #region SpecialHut + public static void SpecialHut(ushort tile, ushort tile2, ushort wall, int hutType, int chestX, int chestY) + { + int m = WorldGen.genRand.Next(2, 4); + int num6 = WorldGen.genRand.Next(2, 4); + for (int n = chestX - m - 1; n <= chestX + m + 1; n++) + { + for (int num8 = chestY - num6 - 1; num8 <= chestY + num6 + 1; num8++) + { + Main.tile[n, num8].active(true); + Main.tile[n, num8].type = tile; + Main.tile[n, num8].liquid = 0; + Main.tile[n, num8].lava(false); + } + } + for (int num9 = chestX - m; num9 <= chestX + m; num9++) + { + for (int num10 = chestY - num6; num10 <= chestY + num6; num10++) + { + Main.tile[num9, num10].active(false); + Main.tile[num9, num10].wall = wall; + } + } + for (int num14 = chestX - m - 1; num14 <= chestX + m + 1; num14++) + { + for (int num15 = chestY + num6 - 2; num15 <= chestY + num6; num15++) + { + Main.tile[num14, num15].active(false); + } + } + for (int num16 = chestX - m - 1; num16 <= chestX + m + 1; num16++) + { + for (int num17 = chestY + num6 - 2; num17 <= chestY + num6 - 1; num17++) + { + Main.tile[num16, num17].active(false); + } + } + for (int num18 = chestX - m - 1; num18 <= chestX + m + 1; num18++) + { + int num19 = 4; + int num20 = chestY + num6 + 2; + while (!Main.tile[num18, num20].active() && num20 < Main.maxTilesY && num19 > 0) + { + Main.tile[num18, num20].active(true); + Main.tile[num18, num20].type = tile2; + num20++; + num19--; + } + } + m -= WorldGen.genRand.Next(1, 3); + int num21 = chestY - num6 - 2; + while (m > -1) + { + for (int num22 = chestX - m - 1; num22 <= chestX + m + 1; num22++) + { + Main.tile[num22, num21].active(true); + Main.tile[num22, num21].type = tile; + } + m -= WorldGen.genRand.Next(1, 3); + num21--; + } + CalamityWorld.SChestX[hutType] = chestX; + CalamityWorld.SChestY[hutType] = chestY; + SpecialChest(hutType); + } + #endregion + + #region SpecialChest + public static void SpecialChest(int itemChoice) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + int item = 0; + int chestType = 0; + switch (itemChoice) //0 to 9 + { + case 0: item = ItemID.TigerClimbingGear; break; + case 1: item = (WorldGen.crimson ? ItemID.FleshKnuckles : ItemID.PutridScent); chestType = (WorldGen.crimson ? 43 : 3); break; + case 2: item = ItemID.LavaWaders; chestType = 44; break; + case 3: item = ItemID.MagicCuffs; chestType = 47; break; + case 4: item = ItemID.SunStone; chestType = 30; break; + case 5: item = ItemID.PapyrusScarab; chestType = 32; break; + case 6: item = ItemID.StarCloak; chestType = 50; break; + case 7: item = ItemID.CrossNecklace; chestType = 51; break; + case 8: item = mod.ItemType("Murasama"); chestType = 44; break; + case 9: item = mod.ItemType("BossRush"); chestType = 4; break; + } + for (int j = CalamityWorld.SChestX[itemChoice] - 1; j <= CalamityWorld.SChestX[itemChoice] + 1; j++) + { + for (int k = CalamityWorld.SChestY[itemChoice]; k <= CalamityWorld.SChestY[itemChoice] + 2; k++) + { + WorldGen.KillTile(j, k, false, false, false); + } + } + for (int l = CalamityWorld.SChestX[itemChoice] - 1; l <= CalamityWorld.SChestX[itemChoice] + 1; l++) + { + for (int m = CalamityWorld.SChestY[itemChoice]; m <= CalamityWorld.SChestY[itemChoice] + 3; m++) + { + if (m < Main.maxTilesY) + { + Main.tile[l, m].slope(0); + Main.tile[l, m].halfBrick(false); + } + } + } + WorldGen.AddBuriedChest(CalamityWorld.SChestX[itemChoice], CalamityWorld.SChestY[itemChoice], item, false, chestType); + } + #endregion + + #region ChasmGenerator + public static void ChasmGenerator(int i, int j, int steps, bool ocean = false) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + float num = (float)steps; //850 small 1450 medium 2050 large + if (ocean) + { + int tileYLookup = j; + if (abyssSide) + { + while (!Main.tile[i + 125, tileYLookup].active()) + { + tileYLookup++; + } + } + else + { + while (!Main.tile[i - 125, tileYLookup].active()) + { + tileYLookup++; + } + } + j = tileYLookup; + } + Vector2 vector; + vector.X = (float)i; + vector.Y = (float)j; + Vector2 vector2; + vector2.X = (float)WorldGen.genRand.Next(-1, 2) * 0.1f; + vector2.Y = (float)WorldGen.genRand.Next(3, 8) * 0.2f + 0.5f; + int num2 = 5; + double num3 = (double)(WorldGen.genRand.Next(5, 7) + 40); //start width + while (num3 > 0.0) + { + if (num > 0f) + { + num3 += (double)WorldGen.genRand.Next(2); + num3 -= (double)WorldGen.genRand.Next(2); + float smallHoleLimit = 790f; //small + if (Main.maxTilesY > 1500) { smallHoleLimit = 1360f; if (Main.maxTilesY > 2100) { smallHoleLimit = 1950f; } } + if (ocean && num > smallHoleLimit) + { + if (num3 < 4.0) //min width + { + num3 = 4.0; //min width + } + if (num3 > 6.0) //max width + { + num3 = 6.0; //max width + } + } + else //dig large hole + { + if (num3 < (ocean ? 42.0 : 14.0)) //min width + { + num3 = (ocean ? 42.0 : 14.0); //min width + } + if (num3 > (ocean ? 60.0 : 40.0)) //max width + { + num3 = (ocean ? 60.0 : 40.0); //max width + } + if (num == 1f && num3 < (ocean ? 50.0 : 20.0)) + { + num3 = (ocean ? 50.0 : 20.0); + } + } + } + else + { + if ((double)vector.Y > abyssChasmBottom) + { + num3 -= (double)(WorldGen.genRand.Next(5) + 8); + } + } + if (Main.maxTilesY > 2100) + { + if (((double)vector.Y > abyssChasmBottom && num > 0f && ocean) || + ((double)vector.Y >= (double)Main.maxTilesY && num > 0f && !ocean)) + { + num = 0f; + } + } + else if (Main.maxTilesY > 1500) + { + if (((double)vector.Y > abyssChasmBottom && num > 0f && ocean) || + ((double)vector.Y > (double)Main.maxTilesY && num > 0f && !ocean)) + { + num = 0f; + } + } + else + { + if (((double)vector.Y > abyssChasmBottom && num > 0f && ocean) || + ((double)vector.Y > (double)Main.maxTilesY && num > 0f && !ocean)) + { + num = 0f; + } + } + num -= 1f; + int num4; + int num5; + int num6; + int num7; + if (num > (float)num2) + { + num4 = (int)((double)vector.X - num3 * 0.5); + num5 = (int)((double)vector.X + num3 * 0.5); + num6 = (int)((double)vector.Y - num3 * 0.5); + num7 = (int)((double)vector.Y + num3 * 0.5); + if (num4 < 0) + { + num4 = 0; + } + if (num5 > Main.maxTilesX - 1) + { + num5 = Main.maxTilesX - 1; + } + if (num6 < 0) + { + num6 = 0; + } + if (num7 > Main.maxTilesY) + { + num7 = Main.maxTilesY; + } + for (int k = num4; k < num5; k++) + { + for (int l = num6; l < num7; l++) + { + if ((double)(Math.Abs((float)k - vector.X) + Math.Abs((float)l - vector.Y)) < num3 * 0.5 * (1.0 + (double)WorldGen.genRand.Next(-5, 6) * 0.015)) + { + if (ocean) + { + Main.tile[k, l].active(false); + Main.tile[k, l].liquid = 255; + Main.tile[k, l].lava(false); + } + else + { + Main.tile[k, l].active(false); + Main.tile[k, l].liquid = 255; + Main.tile[k, l].lava(true); + } + } + } + } + } + if (num <= 2f && (double)vector.Y < (Main.rockLayer + (double)Main.maxTilesY * 0.3)) + { + num = 2f; + } + vector += vector2; + vector2.X += (float)WorldGen.genRand.Next(-1, 2) * 0.01f; + if ((double)vector2.X > 0.02) + { + vector2.X = 0.02f; + } + if ((double)vector2.X < -0.02) + { + vector2.X = -0.02f; + } + num4 = (int)((double)vector.X - num3 * 1.1); + num5 = (int)((double)vector.X + num3 * 1.1); + num6 = (int)((double)vector.Y - num3 * 1.1); + num7 = (int)((double)vector.Y + num3 * 1.1); + if (num4 < 1) + { + num4 = 1; + } + if (num5 > Main.maxTilesX - 1) + { + num5 = Main.maxTilesX - 1; + } + if (num6 < 0) + { + num6 = 0; + } + if (num7 > Main.maxTilesY) + { + num7 = Main.maxTilesY; + } + for (int m = num4; m < num5; m++) + { + for (int n = num6; n < num7; n++) + { + if ((double)(Math.Abs((float)m - vector.X) + Math.Abs((float)n - vector.Y)) < num3 * 1.1 * (1.0 + (double)WorldGen.genRand.Next(-5, 6) * 0.015)) + { + if (n > j + WorldGen.genRand.Next(7, 16)) + { + Main.tile[m, n].active(false); + } + if (steps <= num2) + { + Main.tile[m, n].active(false); + } + if (ocean) + { + Main.tile[m, n].liquid = 255; + Main.tile[m, n].lava(false); + } + else + { + Main.tile[m, n].liquid = 255; + Main.tile[m, n].lava(true); + } + } + } + } + for (int num11 = num4; num11 < num5; num11++) + { + for (int num12 = num6; num12 < num7; num12++) + { + if ((double)(Math.Abs((float)num11 - vector.X) + Math.Abs((float)num12 - vector.Y)) < num3 * 1.1 * (1.0 + (double)WorldGen.genRand.Next(-5, 6) * 0.015)) + { + if (ocean) + { + Main.tile[num11, num12].liquid = 255; + Main.tile[num11, num12].lava(false); + } + else + { + Main.tile[num11, num12].liquid = 255; + Main.tile[num11, num12].lava(true); + } + if (steps <= num2) + { + Main.tile[num11, num12].active(false); + } + } + } + } + } + } + #endregion + + #region PlaceTits + public static void PlaceTit(int x, int y, ushort type = 165) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + if (Main.tile[x, y - 1] == null) + { + Main.tile[x, y - 1] = new Tile(); + } + if (Main.tile[x, y] == null) + { + Main.tile[x, y] = new Tile(); + } + if (Main.tile[x, y + 1] == null) + { + Main.tile[x, y + 1] = new Tile(); + } + if (WorldGen.SolidTile(x, y - 1) && !Main.tile[x, y].active() && !Main.tile[x, y + 1].active()) + { + if (Main.tile[x, y - 1].type == (ushort)mod.TileType("Navystone")) + { + if (WorldGen.genRand.Next(2) == 0 || Main.tile[x, y + 2].active()) + { + int num2 = WorldGen.genRand.Next(3) * 18; + Main.tile[x, y].type = type; + Main.tile[x, y].active(true); + Main.tile[x, y].frameX = (short)num2; + Main.tile[x, y].frameY = 72; + } + else + { + int num3 = WorldGen.genRand.Next(3) * 18; + Main.tile[x, y].type = type; + Main.tile[x, y].active(true); + Main.tile[x, y].frameX = (short)num3; + Main.tile[x, y].frameY = 0; + Main.tile[x, y + 1].type = type; + Main.tile[x, y + 1].active(true); + Main.tile[x, y + 1].frameX = (short)num3; + Main.tile[x, y + 1].frameY = 18; + } + } + } + else + { + if (WorldGen.SolidTile(x, y + 1) && !Main.tile[x, y].active() && !Main.tile[x, y - 1].active()) + { + if (Main.tile[x, y + 1].type == (ushort)mod.TileType("Navystone")) + { + if (WorldGen.genRand.Next(2) == 0 || Main.tile[x, y - 2].active()) + { + int num13 = WorldGen.genRand.Next(3) * 18; + Main.tile[x, y].type = type; + Main.tile[x, y].active(true); + Main.tile[x, y].frameX = (short)num13; + Main.tile[x, y].frameY = 90; + } + else + { + int num14 = WorldGen.genRand.Next(3) * 18; + Main.tile[x, y - 1].type = type; + Main.tile[x, y - 1].active(true); + Main.tile[x, y - 1].frameX = (short)num14; + Main.tile[x, y - 1].frameY = 36; + Main.tile[x, y].type = type; + Main.tile[x, y].active(true); + Main.tile[x, y].frameX = (short)num14; + Main.tile[x, y].frameY = 54; + } + } + } + } + } + #endregion + + #region Planetoids + private static void Planetoids(GenerationProgress progress) + { + progress.Message = "Generating Planetoids..."; + + int GrassPlanetoidCount = Main.maxTilesX / 1100; + int LCPlanetoidCount = Main.maxTilesX / 800; + int MudPlanetoidCount = Main.maxTilesX / 1100; + + while (true) + { + if (Biomes.Place(new Point(WorldGen.genRand.Next(Main.maxTilesX / 2 - 300, Main.maxTilesX / 2 + 300), WorldGen.genRand.Next(128, 134)), WorldGen.structures)) + { + break; + } + } + while (LCPlanetoidCount > 0) + { + int x = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.2), (int)(Main.maxTilesX * 0.8)); + int y = WorldGen.genRand.Next(70, 101); + + bool placed = Biomes.Place(x, y, WorldGen.structures); + + if (placed) + LCPlanetoidCount--; + } + while (GrassPlanetoidCount > 0) + { + int x = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.333), (int)(Main.maxTilesX * 0.666)); + int y = WorldGen.genRand.Next(100, 131); + + + bool placed = Biomes.Place(x, y, WorldGen.structures); + + if (placed) + GrassPlanetoidCount--; + } + while (MudPlanetoidCount > 0) + { + int x = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.3f), (int)(Main.maxTilesX * 0.7f)); + int y = WorldGen.genRand.Next(100, 131); + + bool placed = Biomes.Place(x, y, WorldGen.structures); + + if (placed) + MudPlanetoidCount--; + } + } + #endregion + + #region PostUpdate + public override void PostUpdate() + { + SunkenSeaLocation = new Rectangle(WorldGen.UndergroundDesertLocation.Left, WorldGen.UndergroundDesertLocation.Bottom, + WorldGen.UndergroundDesertLocation.Width, WorldGen.UndergroundDesertLocation.Height / 2); + int closestPlayer = (int)Player.FindClosest(new Vector2((float)(Main.maxTilesX / 2), (float)Main.worldSurface / 2f) * 16f, 0, 0); + #region BossRush + if (!deactivateStupidFuckingBullshit) + { + deactivateStupidFuckingBullshit = true; + bossRushActive = false; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + if (bossRushActive) + { + if (NPC.MoonLordCountdown > 0) + { + NPC.MoonLordCountdown = 0; + } + if (!CalamityPlayer.areThereAnyDamnBosses) + { + if (bossRushSpawnCountdown > 0) + { + bossRushSpawnCountdown--; + if (bossRushSpawnCountdown == 180 && bossRushStage == 26) + { + string key = "Mods.CalamityMod.BossRushTierThreeEndText2"; + Color messageColor = Color.LightCoral; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + if (bossRushSpawnCountdown == 210 && bossRushStage == 33) + { + string key = "Mods.CalamityMod.BossRushTierFourEndText2"; + Color messageColor = Color.LightCoral; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + } + if (bossRushSpawnCountdown <= 0) + { + bossRushSpawnCountdown = 60; + if (bossRushStage > 25) + { + bossRushSpawnCountdown += 120; //3 seconds + } + if (bossRushStage > 32) + { + bossRushSpawnCountdown += 180; //6 seconds + } + switch (bossRushStage) + { + case 9: + bossRushSpawnCountdown = 240; + break; + case 18: + bossRushSpawnCountdown = 300; + break; + case 25: + bossRushSpawnCountdown = 360; + break; + case 32: + bossRushSpawnCountdown = 420; + break; + default: + break; + } + if (bossRushStage == 13) + { + for (int playerIndex = 0; playerIndex < 255; playerIndex++) + { + if (Main.player[playerIndex].active) + { + Player player = Main.player[playerIndex]; + player.Spawn(); + } + } + } + else if (bossRushStage == 36) + { + for (int playerIndex = 0; playerIndex < 255; playerIndex++) + { + if (Main.player[playerIndex].active) + { + Player player = Main.player[playerIndex]; + if (player.FindBuffIndex(mod.BuffType("ExtremeGravity")) > -1) + { + player.ClearBuff(mod.BuffType("ExtremeGravity")); + } + } + } + } + if (Main.netMode != 1) + { + Main.PlaySound(SoundID.Roar, Main.player[closestPlayer].position, 0); + switch (bossRushStage) + { + case 0: + NPC.SpawnOnPlayer(closestPlayer, NPCID.QueenBee); + break; + case 1: + NPC.SpawnOnPlayer(closestPlayer, NPCID.BrainofCthulhu); + break; + case 2: + NPC.SpawnOnPlayer(closestPlayer, NPCID.KingSlime); + break; + case 3: + ChangeTime(false); + NPC.SpawnOnPlayer(closestPlayer, NPCID.EyeofCthulhu); + break; + case 4: + ChangeTime(false); + NPC.SpawnOnPlayer(closestPlayer, NPCID.SkeletronPrime); + break; + case 5: + NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)(Main.rand.Next(-100, 101))), + (int)(Main.player[closestPlayer].position.Y - 400f), + NPCID.Golem, 0, 0f, 0f, 0f, 0f, 255); + break; + case 6: + ChangeTime(true); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss")); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss2")); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss3")); + break; + case 7: + NPC.SpawnOnPlayer(closestPlayer, NPCID.EaterofWorldsHead); + break; + case 8: + ChangeTime(false); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Astrageldon")); + break; + case 9: + ChangeTime(false); + NPC.SpawnOnPlayer(closestPlayer, NPCID.TheDestroyer); + break; + case 10: + ChangeTime(false); + NPC.SpawnOnPlayer(closestPlayer, NPCID.Spazmatism); + NPC.SpawnOnPlayer(closestPlayer, NPCID.Retinazer); + break; + case 11: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Bumblefuck")); + break; + case 12: + NPC.SpawnWOF(Main.player[closestPlayer].position); + break; + case 13: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("HiveMind")); + break; + case 14: + ChangeTime(false); + NPC.SpawnOnPlayer(closestPlayer, NPCID.SkeletronHead); + break; + case 15: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("StormWeaverHead")); + break; + case 16: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AquaticScourgeHead")); + break; + case 17: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHead")); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); + break; + case 18: + int num1302 = NPC.NewNPC((int)Main.player[closestPlayer].Center.X, (int)Main.player[closestPlayer].Center.Y - 400, NPCID.CultistBoss, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num1302].direction = (Main.npc[num1302].spriteDirection = Math.Sign(Main.player[closestPlayer].Center.X - (float)Main.player[closestPlayer].Center.X - 90f)); + break; + case 19: + for (int doom = 0; doom < 200; doom++) + { + if (Main.npc[doom].active && (Main.npc[doom].type == 493 || Main.npc[doom].type == 422 || Main.npc[doom].type == 507 || + Main.npc[doom].type == 517)) + { + Main.npc[doom].active = false; + Main.npc[doom].netUpdate = true; + } + } + NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)(Main.rand.Next(-100, 101))), (int)(Main.player[closestPlayer].position.Y - 400f), mod.NPCType("CrabulonIdle"), 0, 0f, 0f, 0f, 0f, 255); + break; + case 20: + NPC.SpawnOnPlayer(closestPlayer, NPCID.Plantera); + break; + case 21: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CeaselessVoid")); + break; + case 22: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("PerforatorHive")); + break; + case 23: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Cryogen")); + break; + case 24: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("BrimstoneElemental")); + break; + case 25: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CosmicWraith")); + break; + case 26: + NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)(Main.rand.Next(-100, 101))), (int)(Main.player[closestPlayer].position.Y - 400f), mod.NPCType("ScavengerBody"), 0, 0f, 0f, 0f, 0f, 255); + break; + case 27: + NPC.NewNPC((int)(Main.player[closestPlayer].position.X + (float)(Main.rand.Next(-100, 101))), (int)(Main.player[closestPlayer].position.Y - 400f), NPCID.DukeFishron, 0, 0f, 0f, 0f, 0f, 255); + break; + case 28: + NPC.SpawnOnPlayer(closestPlayer, NPCID.MoonLordCore); + break; + case 29: + ChangeTime(false); + for (int x = 0; x < 10; x++) + { + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AstrumDeusHead")); + } + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("AstrumDeusHeadSpectral")); + break; + case 30: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Polterghast")); + break; + case 31: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("PlaguebringerGoliath")); + break; + case 32: + ChangeTime(false); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Calamitas")); + break; + case 33: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Siren")); + break; + case 34: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGod")); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGodRun")); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SlimeGodCore")); + break; + case 35: + ChangeTime(true); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Providence")); + break; + case 36: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("SupremeCalamitas")); + break; + case 37: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("Yharon")); + break; + case 38: + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DevourerofGodsHeadS")); + break; + } + } + } + } + } + else + { + bossRushSpawnCountdown = 180; + if (bossRushStage != 0) + { + bossRushStage = 0; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.BossRushStage); + netMessage.Write(bossRushStage); + netMessage.Send(); + } + } + } + #endregion + #region SpawnDoG + if (DoGSecondStageCountdown > 0) //works + { + DoGSecondStageCountdown--; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); + netMessage.Write(DoGSecondStageCountdown); + netMessage.Send(); + } + if (Main.netMode != 1) + { + if (DoGSecondStageCountdown == 21540) + { + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CeaselessVoid")); + } + if (DoGSecondStageCountdown == 14340) + { + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("StormWeaverHead")); + } + if (DoGSecondStageCountdown == 7140) + { + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("CosmicWraith")); + } + if (DoGSecondStageCountdown <= 60) + { + if (!NPC.AnyNPCs(mod.NPCType("DevourerofGodsHeadS"))) + { + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DevourerofGodsHeadS")); + string key = "Mods.CalamityMod.EdgyBossText10"; + Color messageColor = Color.Cyan; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + } + } + } + #endregion + if (Main.player[closestPlayer].ZoneDungeon && !NPC.downedBoss3) + { + if (!NPC.AnyNPCs(NPCID.DungeonGuardian) && Main.netMode != 1) + NPC.SpawnOnPlayer(closestPlayer, NPCID.DungeonGuardian); //your hell is as vast as my bonergrin, pray your life ends quickly + } + if (Main.player[closestPlayer].ZoneRockLayerHeight && + !Main.player[closestPlayer].ZoneUnderworldHeight && + !Main.player[closestPlayer].ZoneDungeon && + !Main.player[closestPlayer].ZoneJungle && + !Main.player[closestPlayer].GetModPlayer(mod).ZoneSunkenSea && + !CalamityPlayer.areThereAnyDamnBosses) + { + if (NPC.downedPlantBoss && + !Main.player[closestPlayer].GetModPlayer(mod).ZoneAbyss && + Main.player[closestPlayer].townNPCs < 3f) + { + if ((Main.player[closestPlayer].GetModPlayer(mod).zerg && Main.rand.Next(2000) == 0) || + (Main.rand.Next(100000) == 0 && !Main.player[closestPlayer].GetModPlayer(mod).zen)) + { + if (!NPC.AnyNPCs(mod.NPCType("ArmoredDiggerHead")) && Main.netMode != 1) + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ArmoredDiggerHead")); + } + } + } + if (Main.dayTime && Main.hardMode) + { + if (Main.player[closestPlayer].townNPCs >= 2f) + { + if (Main.rand.Next(2000) == 0) + { + int steamGril = NPC.FindFirstNPC(NPCID.Steampunker); + if (steamGril == -1 && Main.netMode != 1) + NPC.SpawnOnPlayer(closestPlayer, NPCID.Steampunker); + } + } + } + if (Main.player[closestPlayer].GetModPlayer(mod).ZoneAbyss) + { + if (Main.player[closestPlayer].chaosState) + { + if (!NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge")) && Main.netMode != 1) + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("EidolonWyrmHeadHuge")); + } + } + #region DeathModeBossSpawns + if (death && !CalamityPlayer.areThereAnyDamnBosses && Main.player[closestPlayer].statLifeMax2 >= 300) + { + if (bossSpawnCountdown <= 0) //check for countdown being 0 + { + if (Main.rand.Next(50000) == 0) + { + if (!NPC.downedBoss1 && bossType == 0) //only set countdown and boss type if conditions are met + if (!Main.dayTime && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) + { + BossText(); + bossType = NPCID.EyeofCthulhu; + bossSpawnCountdown = 3600; //1 minute + } + + if (!NPC.downedBoss2 && bossType == 0) + if (Main.player[closestPlayer].ZoneCorrupt) + { + BossText(); + bossType = NPCID.EaterofWorldsHead; + bossSpawnCountdown = 3600; + } + + if (!NPC.downedBoss2 && bossType == 0) + if (Main.player[closestPlayer].ZoneCrimson) + { + BossText(); + bossType = NPCID.BrainofCthulhu; + bossSpawnCountdown = 3600; + } + + if (!NPC.downedQueenBee && bossType == 0) + if (Main.player[closestPlayer].ZoneJungle && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) + { + BossText(); + bossType = NPCID.QueenBee; + bossSpawnCountdown = 3600; + } + + if (!downedDesertScourge && bossType == 0) + if (Main.player[closestPlayer].ZoneDesert) + { + BossText(); + bossType = mod.NPCType("DesertScourgeHead"); + bossSpawnCountdown = 3600; + } + + if (!downedPerforator && bossType == 0) + if (Main.player[closestPlayer].ZoneCrimson) + { + BossText(); + bossType = mod.NPCType("PerforatorHive"); + bossSpawnCountdown = 3600; + } + + if (!downedHiveMind && bossType == 0) + if (Main.player[closestPlayer].ZoneCorrupt) + { + BossText(); + bossType = mod.NPCType("HiveMind"); + bossSpawnCountdown = 3600; + } + + if (!downedCrabulon && bossType == 0) + if (Main.player[closestPlayer].ZoneGlowshroom) + { + BossText(); + bossType = mod.NPCType("CrabulonIdle"); + bossSpawnCountdown = 3600; + } + + if (Main.hardMode) + { + if (!NPC.downedMechBoss1 && bossType == 0) + if (!Main.dayTime && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) + { + BossText(); + bossType = NPCID.TheDestroyer; + bossSpawnCountdown = 3600; + } + + if (!NPC.downedMechBoss2 && bossType == 0) + if (!Main.dayTime && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) + { + BossText(); + bossType = NPCID.Spazmatism; + bossSpawnCountdown = 3600; + } + + if (!NPC.downedMechBoss3 && bossType == 0) + if (!Main.dayTime && (Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight)) + { + BossText(); + bossType = NPCID.SkeletronPrime; + bossSpawnCountdown = 3600; + } + + if (!NPC.downedPlantBoss && bossType == 0) + if (Main.player[closestPlayer].ZoneJungle && !Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight) + { + BossText(); + bossType = NPCID.Plantera; + bossSpawnCountdown = 3600; + } + + if (!NPC.downedFishron && bossType == 0) + if (Main.player[closestPlayer].ZoneBeach) + { + BossText(); + bossType = NPCID.DukeFishron; + bossSpawnCountdown = 3600; + } + + if (!downedCryogen && bossType == 0) + if (Main.player[closestPlayer].ZoneSnow && Main.player[closestPlayer].ZoneOverworldHeight) + { + BossText(); + bossType = mod.NPCType("Cryogen"); + bossSpawnCountdown = 3600; + } + + if (!downedCalamitas && bossType == 0) + if (!Main.dayTime && Main.player[closestPlayer].ZoneOverworldHeight) + { + BossText(); + bossType = mod.NPCType("Calamitas"); + bossSpawnCountdown = 3600; + } + + if (!downedAstrageldon && bossType == 0) + if (Main.player[closestPlayer].GetModPlayer(mod).ZoneAstral && + !Main.dayTime && Main.player[closestPlayer].ZoneOverworldHeight) + { + BossText(); + bossType = mod.NPCType("Astrageldon"); + bossSpawnCountdown = 3600; + } + + if (!downedPlaguebringer && bossType == 0) + if (Main.player[closestPlayer].ZoneJungle && NPC.downedGolemBoss && Main.player[closestPlayer].ZoneOverworldHeight) + { + BossText(); + bossType = mod.NPCType("PlaguebringerGoliath"); + bossSpawnCountdown = 3600; + } + + if (NPC.downedMoonlord) + { + if (!downedGuardians && bossType == 0) + if (Main.player[closestPlayer].ZoneUnderworldHeight || + (Main.player[closestPlayer].ZoneHoly && Main.player[closestPlayer].ZoneOverworldHeight)) + { + BossText(); + bossType = mod.NPCType("ProfanedGuardianBoss"); + bossSpawnCountdown = 3600; + } + + if (!downedBumble && bossType == 0) + if (Main.player[closestPlayer].ZoneJungle && Main.player[closestPlayer].ZoneOverworldHeight) + { + BossText(); + bossType = mod.NPCType("Bumblefuck"); + bossSpawnCountdown = 3600; + } + } + } + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.BossSpawnCountdownSync); + netMessage.Write(bossSpawnCountdown); + netMessage.Send(); + var netMessage2 = mod.GetPacket(); + netMessage2.Write((byte)CalamityModMessageType.BossTypeSync); + netMessage2.Write(bossType); + netMessage2.Send(); + } + } + } + else + { + bossSpawnCountdown--; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.BossSpawnCountdownSync); + netMessage.Write(bossSpawnCountdown); + netMessage.Send(); + } + if (bossSpawnCountdown <= 0) + { + bool canSpawn = true; + switch (bossType) + { + case NPCID.EyeofCthulhu: + if (Main.dayTime || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) + canSpawn = false; + break; + case NPCID.EaterofWorldsHead: + if (!Main.player[closestPlayer].ZoneCorrupt) + canSpawn = false; + break; + case NPCID.BrainofCthulhu: + if (!Main.player[closestPlayer].ZoneCrimson) + canSpawn = false; + break; + case NPCID.QueenBee: + if (!Main.player[closestPlayer].ZoneJungle || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) + canSpawn = false; + break; + case NPCID.TheDestroyer: + if (Main.dayTime || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) + canSpawn = false; + break; + case NPCID.Spazmatism: + if (Main.dayTime || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) + canSpawn = false; + break; + case NPCID.SkeletronPrime: + if (Main.dayTime || (!Main.player[closestPlayer].ZoneOverworldHeight && !Main.player[closestPlayer].ZoneSkyHeight)) + canSpawn = false; + break; + case NPCID.Plantera: + if (!Main.player[closestPlayer].ZoneJungle || Main.player[closestPlayer].ZoneOverworldHeight || Main.player[closestPlayer].ZoneSkyHeight) + canSpawn = false; + break; + case NPCID.DukeFishron: + if (!Main.player[closestPlayer].ZoneBeach) + canSpawn = false; + break; + } + + if (bossType == mod.NPCType("DesertScourgeHead")) + { + if (!Main.player[closestPlayer].ZoneDesert) + canSpawn = false; + } + else if (bossType == mod.NPCType("PerforatorHive")) + { + if (!Main.player[closestPlayer].ZoneCrimson) + canSpawn = false; + } + else if (bossType == mod.NPCType("HiveMind")) + { + if (!Main.player[closestPlayer].ZoneCorrupt) + canSpawn = false; + } + else if (bossType == mod.NPCType("CrabulonIdle")) + { + if (!Main.player[closestPlayer].ZoneGlowshroom) + canSpawn = false; + } + else if (bossType == mod.NPCType("Cryogen")) + { + if (!Main.player[closestPlayer].ZoneSnow || !Main.player[closestPlayer].ZoneOverworldHeight) + canSpawn = false; + } + else if (bossType == mod.NPCType("Calamitas")) + { + if (Main.dayTime || !Main.player[closestPlayer].ZoneOverworldHeight) + canSpawn = false; + } + else if (bossType == mod.NPCType("Astrageldon")) + { + if (!Main.player[closestPlayer].GetModPlayer(mod).ZoneAstral || + Main.dayTime || !Main.player[closestPlayer].ZoneOverworldHeight) + canSpawn = false; + } + else if (bossType == mod.NPCType("PlaguebringerGoliath")) + { + if (!Main.player[closestPlayer].ZoneJungle || !Main.player[closestPlayer].ZoneOverworldHeight) + canSpawn = false; + } + else if (bossType == mod.NPCType("ProfanedGuardianBoss")) + { + if (!Main.player[closestPlayer].ZoneUnderworldHeight && + (!Main.player[closestPlayer].ZoneHoly || !Main.player[closestPlayer].ZoneOverworldHeight)) + canSpawn = false; + } + else if (bossType == mod.NPCType("Bumblefuck")) + { + if (!Main.player[closestPlayer].ZoneJungle || !Main.player[closestPlayer].ZoneOverworldHeight) + canSpawn = false; + } + + if (canSpawn && Main.netMode != 1) + { + if (bossType == NPCID.Spazmatism) + NPC.SpawnOnPlayer(closestPlayer, NPCID.Retinazer); + else if (bossType == mod.NPCType("ProfanedGuardianBoss")) + { + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss2")); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("ProfanedGuardianBoss3")); + } + else if (bossType == mod.NPCType("DesertScourgeHead")) + { + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); + NPC.SpawnOnPlayer(closestPlayer, mod.NPCType("DesertScourgeHeadSmall")); + } + NPC.SpawnOnPlayer(closestPlayer, bossType); + } + bossType = 0; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.BossTypeSync); + netMessage.Write(bossType); + netMessage.Send(); + } + } + } + } + #endregion + if (!NPC.downedBoss3 && revenge) + { + if (Main.netMode != 1) + { + if (Sandstorm.Happening) + { + Sandstorm.Happening = false; + Sandstorm.TimeLeft = 0; + } + } + } + if (CalamityGlobalNPC.holyBoss >= 0 && !Main.npc[CalamityGlobalNPC.holyBoss].active) + { + CalamityGlobalNPC.holyBoss = -1; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.Providence); + netMessage.Write(CalamityGlobalNPC.holyBoss); + netMessage.Send(); + } + } + if (CalamityGlobalNPC.doughnutBoss >= 0 && !Main.npc[CalamityGlobalNPC.doughnutBoss].active) + { + CalamityGlobalNPC.doughnutBoss = -1; + } + if (CalamityGlobalNPC.voidBoss >= 0 && !Main.npc[CalamityGlobalNPC.voidBoss].active) + { + CalamityGlobalNPC.voidBoss = -1; + } + if (CalamityGlobalNPC.energyFlame >= 0 && !Main.npc[CalamityGlobalNPC.energyFlame].active) + { + CalamityGlobalNPC.energyFlame = -1; + } + if (CalamityGlobalNPC.hiveMind >= 0 && !Main.npc[CalamityGlobalNPC.hiveMind].active) + { + CalamityGlobalNPC.hiveMind = -1; + } + if (CalamityGlobalNPC.hiveMind2 >= 0 && !Main.npc[CalamityGlobalNPC.hiveMind2].active) + { + CalamityGlobalNPC.hiveMind2 = -1; + } + if (CalamityGlobalNPC.scavenger >= 0 && !Main.npc[CalamityGlobalNPC.scavenger].active) + { + CalamityGlobalNPC.scavenger = -1; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.Ravager); + netMessage.Write(CalamityGlobalNPC.scavenger); + netMessage.Send(); + } + } + if (CalamityGlobalNPC.DoGHead >= 0 && !Main.npc[CalamityGlobalNPC.DoGHead].active) + { + CalamityGlobalNPC.DoGHead = -1; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DoG); + netMessage.Write(CalamityGlobalNPC.DoGHead); + netMessage.Send(); + } + } + if (CalamityGlobalNPC.SCal >= 0 && !Main.npc[CalamityGlobalNPC.SCal].active) + { + CalamityGlobalNPC.SCal = -1; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.SupremeCal); + netMessage.Write(CalamityGlobalNPC.SCal); + netMessage.Send(); + } + } + if (CalamityGlobalNPC.ghostBoss >= 0 && !Main.npc[CalamityGlobalNPC.ghostBoss].active) + { + CalamityGlobalNPC.ghostBoss = -1; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.Polterghast); + netMessage.Write(CalamityGlobalNPC.ghostBoss); + netMessage.Send(); + } + } + if (CalamityGlobalNPC.laserEye >= 0 && !Main.npc[CalamityGlobalNPC.laserEye].active) + { + CalamityGlobalNPC.laserEye = -1; + } + if (CalamityGlobalNPC.fireEye >= 0 && !Main.npc[CalamityGlobalNPC.fireEye].active) + { + CalamityGlobalNPC.fireEye = -1; + } + if (CalamityGlobalNPC.lordeBoss >= 0 && !Main.npc[CalamityGlobalNPC.lordeBoss].active) + { + CalamityGlobalNPC.lordeBoss = -1; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.LORDE); + netMessage.Write(CalamityGlobalNPC.lordeBoss); + netMessage.Send(); + } + } + if (Main.netMode != 1) + { + if (revenge) + { + CultistRitual.delay -= Main.dayRate * 10; + if (CultistRitual.delay < 0) + { + CultistRitual.delay = 0; + } + CultistRitual.recheck -= Main.dayRate * 10; + if (CultistRitual.recheck < 0) + { + CultistRitual.recheck = 0; + } + } + } + } + #endregion + + #region ChangeTime + public static void ChangeTime(bool day) + { + Main.time = 0.0; + if (day) + { + Main.dayTime = true; + } + else + { + Main.dayTime = false; + } + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + #endregion + + #region BossText + public void BossText() + { + string key = "Mods.CalamityMod.BossSpawnText"; + Color messageColor = Color.Crimson; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + #endregion + } } diff --git a/CustomTileFraming.cs b/CustomTileFraming.cs index b80211a29f..de1afc0f90 100644 --- a/CustomTileFraming.cs +++ b/CustomTileFraming.cs @@ -12,950 +12,950 @@ using Terraria.ModLoader; using CalamityMod.Tiles; namespace CalamityMod -{ - public static class CustomTileFraming - { - private static int[][] PlantCheckAgainst; - private static Dictionary VineToGrass; - public static bool[] tileMergeAstralDirt; - - static CustomTileFraming() - { - Setup(); - } +{ + public static class CustomTileFraming + { + private static int[][] PlantCheckAgainst; + private static Dictionary VineToGrass; + public static bool[] tileMergeAstralDirt; - private static void Setup() - { - Mod mod = CalamityMod.Instance; - - int size = CalamityGlobalTile.PlantTypes.Length; - PlantCheckAgainst = new int[TileLoader.TileCount][]; - - PlantCheckAgainst[TileID.Plants] = new int[3] { TileID.Grass, TileID.PlanterBox, TileID.ClayPot }; - PlantCheckAgainst[TileID.CorruptPlants] = new int[1] { TileID.CorruptGrass }; - PlantCheckAgainst[TileID.JunglePlants] = new int[1] { TileID.JungleGrass }; - PlantCheckAgainst[TileID.MushroomPlants] = new int[1] { TileID.MushroomGrass }; - PlantCheckAgainst[TileID.Plants2] = new int[3] { TileID.Grass, TileID.PlanterBox, TileID.ClayPot }; - PlantCheckAgainst[TileID.JunglePlants2] = new int[1]{ TileID.JungleGrass }; - PlantCheckAgainst[TileID.HallowedPlants] = new int[1] { TileID.HallowedGrass }; - PlantCheckAgainst[TileID.HallowedPlants2] = new int[1] { TileID.HallowedGrass }; - PlantCheckAgainst[TileID.FleshWeeds] = new int[1] { TileID.FleshWeeds }; - PlantCheckAgainst[CalamityMod.Instance.TileType("AstralShortPlants")] = new int[1] { mod.TileType("AstralGrass") }; - PlantCheckAgainst[CalamityMod.Instance.TileType("AstralTallPlants")] = new int[1] { mod.TileType("AstralGrass") }; - - VineToGrass = new Dictionary(); - VineToGrass[TileID.Vines] = TileID.Grass; - VineToGrass[TileID.CrimsonVines] = TileID.FleshGrass; - VineToGrass[TileID.HallowedVines] = TileID.HallowedGrass; - VineToGrass[(ushort)mod.TileType("AstralVines")] = (ushort)mod.TileType("AstralGrass"); - - tileMergeAstralDirt = new bool[TileLoader.TileCount]; - //TODO: REST OF THESE - tileMergeAstralDirt[mod.TileType("AstralOre")] = true; - tileMergeAstralDirt[mod.TileType("AstralStone")] = true; - tileMergeAstralDirt[mod.TileType("AstralSand")] = true; - } - - private static bool PlantNeedsUpdate(int plantType, int checkType) - { - if (PlantCheckAgainst[plantType] == null) return false; - int size = PlantCheckAgainst[plantType].Length; - for (int i = 0; i < size; i++) - { - if (PlantCheckAgainst[plantType][i] == checkType) - { - return false; - } - } - return true; - } - - public static void CheckPlants(int x, int y) - { - int checkType = -1; - int plantType = Main.tile[x, y].type; - - if (y + 1 >= Main.maxTilesY) - checkType = plantType; - - Tile tile = Main.tile[x, y]; - Tile below = Main.tile[x, y + 1]; - if (y + 1 < Main.maxTilesY && below != null && below.nactive() && !below.halfBrick() && below.slope() == 0) - checkType = below.type; - - if (checkType == -1 || checkType == null) return; - - //Check if this plant needs an update - if (PlantNeedsUpdate(plantType, checkType)) - { - if ((plantType == TileID.Plants || plantType == TileID.Plants2) && checkType != TileID.Grass && tile.frameX >= 162) - { - Main.tile[x, y].frameX = 126; - } - if (plantType == TileID.JunglePlants2 && checkType != TileID.JungleGrass && tile.frameX >= 162) - { - Main.tile[x, y].frameX = 126; - } - - if (checkType == TileID.CorruptGrass) - { - plantType = TileID.CorruptPlants; - if (tile.frameX >= 162) - { - Main.tile[x, y].frameX = 126; - } - } - else if (checkType == TileID.Grass) - { - if (plantType == TileID.HallowedPlants2) - { - plantType = TileID.Plants2; - } - else - { - plantType = TileID.Plants; - } - } - else if (checkType == TileID.HallowedGrass) - { - if (plantType == TileID.Plants2) - { - plantType = TileID.HallowedPlants2; - } - else - { - plantType = TileID.HallowedPlants; - } - } - else if (checkType == TileID.FleshGrass) - { - plantType = TileID.FleshWeeds; - } - else if (checkType == TileID.MushroomGrass) - { - plantType = TileID.MushroomPlants; - while (Main.tile[x, y].frameX > 72) - { - Main.tile[x, y].frameX -= 72; - } - } - else if (checkType == CalamityMod.Instance.TileType("AstralGrass")) //ASTRAL - { - if (plantType == TileID.Plants || plantType == TileID.CorruptPlants || - plantType == TileID.FleshWeeds || plantType == TileID.HallowedPlants || - plantType == TileID.MushroomPlants || plantType == TileID.JunglePlants) - { - plantType = CalamityMod.Instance.TileType("AstralShortPlants"); - } - else - { - plantType = CalamityMod.Instance.TileType("AstralTallPlants"); - } - } - if (plantType != Main.tile[x, y].type) - { - Main.tile[x, y].type = (ushort)plantType; - return; - } - WorldGen.KillTile(x, y, false, false, false); - } - } - - public static void VineFrame(int x, int y) - { - Tile tile = Main.tile[x, y]; - int myType = tile.type; - Tile tile2 = Main.tile[x, y - 1]; - Tile tile3 = Main.tile[x, y + 1]; - Tile tile4 = Main.tile[x - 1, y]; - Tile tile5 = Main.tile[x + 1, y]; - Tile tile6 = Main.tile[x - 1, y + 1]; - Tile tile7 = Main.tile[x + 1, y + 1]; - Tile tile8 = Main.tile[x - 1, y - 1]; - Tile tile9 = Main.tile[x + 1, y - 1]; - int num52 = -1; - int num53 = -1; - int num54 = -1; - int num55 = -1; - int num56 = -1; - int num57 = -1; - int num58 = -1; - int num59 = -1; - if (tile4 != null && tile4.active()) - { - if (Main.tileStone[(int)tile4.type]) - { - num55 = 1; - } - else - { - num55 = (int)tile4.type; - } - if (tile4.slope() == 1 || tile4.slope() == 3) - { - num55 = -1; - } - } - if (tile5 != null && tile5.active()) - { - if (Main.tileStone[(int)tile5.type]) - { - num56 = 1; - } - else - { - num56 = (int)tile5.type; - } - if (tile5.slope() == 2 || tile5.slope() == 4) - { - num56 = -1; - } - } - if (tile2 != null && tile2.active()) - { - if (Main.tileStone[(int)tile2.type]) - { - num53 = 1; - } - else - { - num53 = (int)tile2.type; - } - if (tile2.slope() == 3 || tile2.slope() == 4) - { - num53 = -1; - } - } - if (tile3 != null && tile3.active()) - { - if (Main.tileStone[(int)tile3.type]) - { - num58 = 1; - } - else - { - num58 = (int)tile3.type; - } - if (tile3.slope() == 1 || tile3.slope() == 2) - { - num58 = -1; - } - } - if (tile8 != null && tile8.active()) - { - if (Main.tileStone[(int)tile8.type]) - { - num52 = 1; - } - else - { - num52 = (int)tile8.type; - } - } - if (tile9 != null && tile9.active()) - { - if (Main.tileStone[(int)tile9.type]) - { - num54 = 1; - } - else - { - num54 = (int)tile9.type; - } - } - if (tile6 != null && tile6.active()) - { - if (Main.tileStone[(int)tile6.type]) - { - num57 = 1; - } - else - { - num57 = (int)tile6.type; - } - } - if (tile7 != null && tile7.active()) - { - if (Main.tileStone[(int)tile7.type]) - { - num59 = 1; - } - else - { - num59 = (int)tile7.type; - } - } - if (tile.slope() == 2) - { - num53 = -1; - num55 = -1; - } - if (tile.slope() == 1) - { - num53 = -1; - num56 = -1; - } - if (tile.slope() == 4) - { - num58 = -1; - num55 = -1; - } - if (tile.slope() == 3) - { - num58 = -1; - num56 = -1; - } - - if (tile2 != null) - { - if (!tile2.active()) - { - num53 = -1; - } - else if (tile2.bottomSlope()) - { - num53 = -1; - } - else - { - num53 = (int)tile2.type; - } - } - else - { - num53 = myType; - } - - ushort[] vines = VineToGrass.Keys.ToArray(); - - for (int i = 0; i < vines.Length; i++) - { - ushort myGrassType = VineToGrass[(ushort)vines[i]]; - if (myType != vines[i] && (num53 == myGrassType || num53 == vines[i])) - { - Main.tile[x, y].type = vines[i]; - WorldGen.SquareTileFrame(x, y, true); - return; - } - } - - if (num53 != myType) - { - bool flag17 = false; - if (num53 == -1) - { - flag17 = true; - } - else - { - for (int i = 0; i < vines.Length; i++) - { - if (myType != TileID.Vines) - { - if (myType == vines[i] && num53 != VineToGrass[vines[i]]) - { - flag17 = true; - } - } - else if (num53 != TileID.Grass && num53 != TileID.LeafBlock) - { - flag17 = true; - } - } - } - if (flag17) - { - WorldGen.KillTile(x, y, false, false, false); - } - } - return; - } - - enum Similarity - { - Same, - MergeLink, - None - } - - public static void FrameTileForCustomMerge(int x, int y, int myType, int mergeType, bool forceSameDown = false, bool forceSameUp = false, bool forceSameLeft = false, bool forceSameRight = false, bool resetFrame = true) - { - bool tmp; - FrameTileForCustomMerge(x, y, myType, mergeType, out tmp, out tmp, out tmp, out tmp, forceSameDown, forceSameUp, forceSameLeft, forceSameRight, resetFrame); - } - - public static void FrameTileForCustomMerge(int x, int y, int myType, int mergeType, out bool mergedUp, out bool mergedLeft, out bool mergedRight, out bool mergedDown, bool forceSameDown = false, bool forceSameUp = false, bool forceSameLeft = false, bool forceSameRight = false, bool resetFrame = true) - { - Tile tileLeft = Main.tile[x - 1, y]; - Tile tileRight = Main.tile[x + 1, y]; - Tile tileUp = Main.tile[x, y - 1]; - Tile tileDown = Main.tile[x, y + 1]; - Tile tileTopLeft = Main.tile[x - 1, y - 1]; - Tile tileTopRight = Main.tile[x + 1, y - 1]; - Tile tileBottomLeft = Main.tile[x - 1, y + 1]; - Tile tileBottomRight = Main.tile[x + 1, y + 1]; - - //CARDINAL - Similarity leftSim = GetSimilarity(tileLeft, myType, mergeType); - if (forceSameLeft) leftSim = Similarity.Same; - Similarity rightSim = GetSimilarity(tileRight, myType, mergeType); - if (forceSameRight) rightSim = Similarity.Same; - Similarity upSim = GetSimilarity(tileUp, myType, mergeType); - if (forceSameUp) upSim = Similarity.Same; - Similarity downSim = GetSimilarity(tileDown, myType, mergeType); - if (forceSameDown) downSim = Similarity.Same; - - //DIAGONAL - Similarity topLeftSim = GetSimilarity(tileTopLeft, myType, mergeType); - Similarity topRightSim = GetSimilarity(tileTopRight, myType, mergeType); - Similarity bottomLeftSim = GetSimilarity(tileBottomLeft, myType, mergeType); - Similarity bottomRightSim = GetSimilarity(tileBottomRight, myType, mergeType); - - int randomFrame; - if (resetFrame) - { - randomFrame = WorldGen.genRand.Next(3); - Main.tile[x, y].frameNumber((byte)randomFrame); - } - else - { - randomFrame = Main.tile[x, y].frameNumber(); - } - - /* DEBUGGING + static CustomTileFraming() + { + Setup(); + } + + private static void Setup() + { + Mod mod = CalamityMod.Instance; + + int size = CalamityGlobalTile.PlantTypes.Length; + PlantCheckAgainst = new int[TileLoader.TileCount][]; + + PlantCheckAgainst[TileID.Plants] = new int[3] { TileID.Grass, TileID.PlanterBox, TileID.ClayPot }; + PlantCheckAgainst[TileID.CorruptPlants] = new int[1] { TileID.CorruptGrass }; + PlantCheckAgainst[TileID.JunglePlants] = new int[1] { TileID.JungleGrass }; + PlantCheckAgainst[TileID.MushroomPlants] = new int[1] { TileID.MushroomGrass }; + PlantCheckAgainst[TileID.Plants2] = new int[3] { TileID.Grass, TileID.PlanterBox, TileID.ClayPot }; + PlantCheckAgainst[TileID.JunglePlants2] = new int[1] { TileID.JungleGrass }; + PlantCheckAgainst[TileID.HallowedPlants] = new int[1] { TileID.HallowedGrass }; + PlantCheckAgainst[TileID.HallowedPlants2] = new int[1] { TileID.HallowedGrass }; + PlantCheckAgainst[TileID.FleshWeeds] = new int[1] { TileID.FleshWeeds }; + PlantCheckAgainst[CalamityMod.Instance.TileType("AstralShortPlants")] = new int[1] { mod.TileType("AstralGrass") }; + PlantCheckAgainst[CalamityMod.Instance.TileType("AstralTallPlants")] = new int[1] { mod.TileType("AstralGrass") }; + + VineToGrass = new Dictionary(); + VineToGrass[TileID.Vines] = TileID.Grass; + VineToGrass[TileID.CrimsonVines] = TileID.FleshGrass; + VineToGrass[TileID.HallowedVines] = TileID.HallowedGrass; + VineToGrass[(ushort)mod.TileType("AstralVines")] = (ushort)mod.TileType("AstralGrass"); + + tileMergeAstralDirt = new bool[TileLoader.TileCount]; + //TODO: REST OF THESE + tileMergeAstralDirt[mod.TileType("AstralOre")] = true; + tileMergeAstralDirt[mod.TileType("AstralStone")] = true; + tileMergeAstralDirt[mod.TileType("AstralSand")] = true; + } + + private static bool PlantNeedsUpdate(int plantType, int checkType) + { + if (PlantCheckAgainst[plantType] == null) return false; + int size = PlantCheckAgainst[plantType].Length; + for (int i = 0; i < size; i++) + { + if (PlantCheckAgainst[plantType][i] == checkType) + { + return false; + } + } + return true; + } + + public static void CheckPlants(int x, int y) + { + int checkType = -1; + int plantType = Main.tile[x, y].type; + + if (y + 1 >= Main.maxTilesY) + checkType = plantType; + + Tile tile = Main.tile[x, y]; + Tile below = Main.tile[x, y + 1]; + if (y + 1 < Main.maxTilesY && below != null && below.nactive() && !below.halfBrick() && below.slope() == 0) + checkType = below.type; + + if (checkType == -1) return; + + //Check if this plant needs an update + if (PlantNeedsUpdate(plantType, checkType)) + { + if ((plantType == TileID.Plants || plantType == TileID.Plants2) && checkType != TileID.Grass && tile.frameX >= 162) + { + Main.tile[x, y].frameX = 126; + } + if (plantType == TileID.JunglePlants2 && checkType != TileID.JungleGrass && tile.frameX >= 162) + { + Main.tile[x, y].frameX = 126; + } + + if (checkType == TileID.CorruptGrass) + { + plantType = TileID.CorruptPlants; + if (tile.frameX >= 162) + { + Main.tile[x, y].frameX = 126; + } + } + else if (checkType == TileID.Grass) + { + if (plantType == TileID.HallowedPlants2) + { + plantType = TileID.Plants2; + } + else + { + plantType = TileID.Plants; + } + } + else if (checkType == TileID.HallowedGrass) + { + if (plantType == TileID.Plants2) + { + plantType = TileID.HallowedPlants2; + } + else + { + plantType = TileID.HallowedPlants; + } + } + else if (checkType == TileID.FleshGrass) + { + plantType = TileID.FleshWeeds; + } + else if (checkType == TileID.MushroomGrass) + { + plantType = TileID.MushroomPlants; + while (Main.tile[x, y].frameX > 72) + { + Main.tile[x, y].frameX -= 72; + } + } + else if (checkType == CalamityMod.Instance.TileType("AstralGrass")) //ASTRAL + { + if (plantType == TileID.Plants || plantType == TileID.CorruptPlants || + plantType == TileID.FleshWeeds || plantType == TileID.HallowedPlants || + plantType == TileID.MushroomPlants || plantType == TileID.JunglePlants) + { + plantType = CalamityMod.Instance.TileType("AstralShortPlants"); + } + else + { + plantType = CalamityMod.Instance.TileType("AstralTallPlants"); + } + } + if (plantType != Main.tile[x, y].type) + { + Main.tile[x, y].type = (ushort)plantType; + return; + } + WorldGen.KillTile(x, y, false, false, false); + } + } + + public static void VineFrame(int x, int y) + { + Tile tile = Main.tile[x, y]; + int myType = tile.type; + Tile tile2 = Main.tile[x, y - 1]; + Tile tile3 = Main.tile[x, y + 1]; + Tile tile4 = Main.tile[x - 1, y]; + Tile tile5 = Main.tile[x + 1, y]; + Tile tile6 = Main.tile[x - 1, y + 1]; + Tile tile7 = Main.tile[x + 1, y + 1]; + Tile tile8 = Main.tile[x - 1, y - 1]; + Tile tile9 = Main.tile[x + 1, y - 1]; + int num52 = -1; + int num53 = -1; + int num54 = -1; + int num55 = -1; + int num56 = -1; + int num57 = -1; + int num58 = -1; + int num59 = -1; + if (tile4 != null && tile4.active()) + { + if (Main.tileStone[(int)tile4.type]) + { + num55 = 1; + } + else + { + num55 = (int)tile4.type; + } + if (tile4.slope() == 1 || tile4.slope() == 3) + { + num55 = -1; + } + } + if (tile5 != null && tile5.active()) + { + if (Main.tileStone[(int)tile5.type]) + { + num56 = 1; + } + else + { + num56 = (int)tile5.type; + } + if (tile5.slope() == 2 || tile5.slope() == 4) + { + num56 = -1; + } + } + if (tile2 != null && tile2.active()) + { + if (Main.tileStone[(int)tile2.type]) + { + num53 = 1; + } + else + { + num53 = (int)tile2.type; + } + if (tile2.slope() == 3 || tile2.slope() == 4) + { + num53 = -1; + } + } + if (tile3 != null && tile3.active()) + { + if (Main.tileStone[(int)tile3.type]) + { + num58 = 1; + } + else + { + num58 = (int)tile3.type; + } + if (tile3.slope() == 1 || tile3.slope() == 2) + { + num58 = -1; + } + } + if (tile8 != null && tile8.active()) + { + if (Main.tileStone[(int)tile8.type]) + { + num52 = 1; + } + else + { + num52 = (int)tile8.type; + } + } + if (tile9 != null && tile9.active()) + { + if (Main.tileStone[(int)tile9.type]) + { + num54 = 1; + } + else + { + num54 = (int)tile9.type; + } + } + if (tile6 != null && tile6.active()) + { + if (Main.tileStone[(int)tile6.type]) + { + num57 = 1; + } + else + { + num57 = (int)tile6.type; + } + } + if (tile7 != null && tile7.active()) + { + if (Main.tileStone[(int)tile7.type]) + { + num59 = 1; + } + else + { + num59 = (int)tile7.type; + } + } + if (tile.slope() == 2) + { + num53 = -1; + num55 = -1; + } + if (tile.slope() == 1) + { + num53 = -1; + num56 = -1; + } + if (tile.slope() == 4) + { + num58 = -1; + num55 = -1; + } + if (tile.slope() == 3) + { + num58 = -1; + num56 = -1; + } + + if (tile2 != null) + { + if (!tile2.active()) + { + num53 = -1; + } + else if (tile2.bottomSlope()) + { + num53 = -1; + } + else + { + num53 = (int)tile2.type; + } + } + else + { + num53 = myType; + } + + ushort[] vines = VineToGrass.Keys.ToArray(); + + for (int i = 0; i < vines.Length; i++) + { + ushort myGrassType = VineToGrass[(ushort)vines[i]]; + if (myType != vines[i] && (num53 == myGrassType || num53 == vines[i])) + { + Main.tile[x, y].type = vines[i]; + WorldGen.SquareTileFrame(x, y, true); + return; + } + } + + if (num53 != myType) + { + bool flag17 = false; + if (num53 == -1) + { + flag17 = true; + } + else + { + for (int i = 0; i < vines.Length; i++) + { + if (myType != TileID.Vines) + { + if (myType == vines[i] && num53 != VineToGrass[vines[i]]) + { + flag17 = true; + } + } + else if (num53 != TileID.Grass && num53 != TileID.LeafBlock) + { + flag17 = true; + } + } + } + if (flag17) + { + WorldGen.KillTile(x, y, false, false, false); + } + } + return; + } + + enum Similarity + { + Same, + MergeLink, + None + } + + public static void FrameTileForCustomMerge(int x, int y, int myType, int mergeType, bool forceSameDown = false, bool forceSameUp = false, bool forceSameLeft = false, bool forceSameRight = false, bool resetFrame = true) + { + bool tmp; + FrameTileForCustomMerge(x, y, myType, mergeType, out tmp, out tmp, out tmp, out tmp, forceSameDown, forceSameUp, forceSameLeft, forceSameRight, resetFrame); + } + + public static void FrameTileForCustomMerge(int x, int y, int myType, int mergeType, out bool mergedUp, out bool mergedLeft, out bool mergedRight, out bool mergedDown, bool forceSameDown = false, bool forceSameUp = false, bool forceSameLeft = false, bool forceSameRight = false, bool resetFrame = true) + { + Tile tileLeft = Main.tile[x - 1, y]; + Tile tileRight = Main.tile[x + 1, y]; + Tile tileUp = Main.tile[x, y - 1]; + Tile tileDown = Main.tile[x, y + 1]; + Tile tileTopLeft = Main.tile[x - 1, y - 1]; + Tile tileTopRight = Main.tile[x + 1, y - 1]; + Tile tileBottomLeft = Main.tile[x - 1, y + 1]; + Tile tileBottomRight = Main.tile[x + 1, y + 1]; + + //CARDINAL + Similarity leftSim = GetSimilarity(tileLeft, myType, mergeType); + if (forceSameLeft) leftSim = Similarity.Same; + Similarity rightSim = GetSimilarity(tileRight, myType, mergeType); + if (forceSameRight) rightSim = Similarity.Same; + Similarity upSim = GetSimilarity(tileUp, myType, mergeType); + if (forceSameUp) upSim = Similarity.Same; + Similarity downSim = GetSimilarity(tileDown, myType, mergeType); + if (forceSameDown) downSim = Similarity.Same; + + //DIAGONAL + Similarity topLeftSim = GetSimilarity(tileTopLeft, myType, mergeType); + Similarity topRightSim = GetSimilarity(tileTopRight, myType, mergeType); + Similarity bottomLeftSim = GetSimilarity(tileBottomLeft, myType, mergeType); + Similarity bottomRightSim = GetSimilarity(tileBottomRight, myType, mergeType); + + int randomFrame; + if (resetFrame) + { + randomFrame = WorldGen.genRand.Next(3); + Main.tile[x, y].frameNumber((byte)randomFrame); + } + else + { + randomFrame = Main.tile[x, y].frameNumber(); + } + + /* DEBUGGING if (Player.tileTargetX == x && Player.tileTargetY == y) { Main.NewText(StringWriter(leftSim, rightSim, upSim, downSim, topLeftSim, topRightSim, bottomLeftSim, bottomRightSim, forceSameDown, forceSameUp, forceSameLeft, forceSameRight)); - }*/ - - mergedDown = mergedLeft = mergedRight = mergedUp = false; - - if (leftSim == Similarity.None) - { - if (upSim == Similarity.Same) - { - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 0, 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedRight = true; - SetFrameAt(x, y, 234 + 18 * randomFrame, 36); - return; - } - SetFrameAt(x, y, 90, 18 * randomFrame); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - mergedDown = true; - SetFrameAt(x, y, 72, 90 + 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 108 + 18 * randomFrame, 54); - return; - } - mergedDown = true; - SetFrameAt(x, y, 126, 90 + 18 * randomFrame); - return; - } - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 36 * randomFrame, 72); - return; - } - SetFrameAt(x, y, 108 + 18 * randomFrame, 54); - return; - } - else if (upSim == Similarity.MergeLink) - { - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - mergedUp = true; - SetFrameAt(x, y, 72, 144 + 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 108 + 18 * randomFrame, 0); - return; - } - mergedUp = true; - SetFrameAt(x, y, 126, 144 + 18 * randomFrame); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 162, 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 162 + 18 * randomFrame, 54); - return; - } - mergedUp = true; - mergedDown = true; - SetFrameAt(x, y, 108, 216 + 18 * randomFrame); - return; - } - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 162, 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 162 + 18 * randomFrame, 54); - return; - } - mergedUp = true; - SetFrameAt(x, y, 108, 144 + 18 * randomFrame); - return; - } - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 36 * randomFrame, 54); - return; - } - else if (rightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 108 + 18 * randomFrame, 0); - return; - } - SetFrameAt(x, y, 108 + 18 * randomFrame, 0); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 162, 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 162 + 18 * randomFrame, 54); - return; - } - mergedDown = true; - SetFrameAt(x, y, 108, 90 + 18 * randomFrame); - return; - } - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 162, 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedRight = true; - SetFrameAt(x, y, 54 + 18 * randomFrame, 234); - return; - } - SetFrameAt(x, y, 162 + 18 * randomFrame, 54); - return; - } - else if (leftSim == Similarity.MergeLink) - { - if (upSim == Similarity.Same) - { - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - mergedLeft = true; - SetFrameAt(x, y, 162, 126 + 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedLeft = true; - mergedRight = true; - SetFrameAt(x, y, 180, 126 + 18 * randomFrame); - return; - } - mergedLeft = true; - SetFrameAt(x, y, 234 + 18 * randomFrame, 54); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - mergedLeft = mergedDown = true; - SetFrameAt(x, y, 36, 108 + 36 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedLeft = mergedRight = mergedDown = true; - SetFrameAt(x, y, 198, 144 + 18 * randomFrame); - return; - } - SetFrameAt(x, y, 108 + 18 * randomFrame, 54); - return; - } - if (rightSim == Similarity.Same) - { - mergedLeft = true; - SetFrameAt(x, y, 18 * randomFrame, 216); - return; - } - SetFrameAt(x, y, 108 + 18 * randomFrame, 54); - return; - } - else if (upSim == Similarity.MergeLink) - { - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - mergedUp = mergedLeft = true; - SetFrameAt(x, y, 36, 90 + 36 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedLeft = mergedRight = mergedUp = true; - SetFrameAt(x, y, 198, 90 + 18 * randomFrame); - return; - } - SetFrameAt(x, y, 108 + 18 * randomFrame, 0); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - mergedUp = mergedLeft = mergedDown = true; - SetFrameAt(x, y, 216, 90 + 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedDown = mergedLeft = mergedRight = mergedUp = true; - SetFrameAt(x, y, 108 + 18 * randomFrame, 198); - return; - } - SetFrameAt(x, y, 162 + 18 * randomFrame, 54); - return; - } - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 162, 18 * randomFrame); - return; - } - SetFrameAt(x, y, 162 + 18 * randomFrame, 54); - return; - } - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - mergedLeft = true; - SetFrameAt(x, y, 18 * randomFrame, 198); - return; - } - else if (rightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 108 + 18 * randomFrame, 0); - return; - } - SetFrameAt(x, y, 108 + 18 * randomFrame, 0); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 162, 18 * randomFrame); - return; - } - else if (rightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 162 + 18 * randomFrame, 54); - return; - } - SetFrameAt(x, y, 162 + 18 * randomFrame, 54); - return; - } - if (rightSim == Similarity.Same) - { - mergedLeft = true; - SetFrameAt(x, y, 18 * randomFrame, 252); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedRight = mergedLeft = true; - SetFrameAt(x, y, 162 + 18 * randomFrame, 198); - return; - } - mergedLeft = true; - SetFrameAt(x, y, 18 * randomFrame, 234); - return; - } - if (upSim == Similarity.Same) - { - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - #region FULL TILE STUFF - if (topLeftSim == Similarity.MergeLink || topRightSim == Similarity.MergeLink || bottomLeftSim == Similarity.MergeLink || bottomRightSim == Similarity.MergeLink) - { - if (bottomRightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 0, 90 + 36 * randomFrame); - return; - } - else if (bottomLeftSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 18, 90 + 36 * randomFrame); - return; - } - else if (topRightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 0, 108 + 36 * randomFrame); - return; - } - SetFrameAt(x, y, 18, 108 + 36 * randomFrame); - return; - } - if (topLeftSim == Similarity.Same) - { - if (topRightSim == Similarity.Same) - { - if (bottomLeftSim == Similarity.Same) - { - SetFrameAt(x, y, 18 + 18 * randomFrame, 18); - return; - } - if (bottomRightSim == Similarity.Same) - { - SetFrameAt(x, y, 18 + 18 * randomFrame, 18); - return; - } - SetFrameAt(x, y, 108 + 18 * randomFrame, 36); - return; - } - if (bottomLeftSim == Similarity.Same) - { - if (bottomRightSim == Similarity.Same) - { - if (topRightSim == Similarity.MergeLink) - { - SetFrameAt(x, y, 0, 108 + 36 * randomFrame); - return; - } - SetFrameAt(x, y, 18 + 18 * randomFrame, 18); - return; - } - SetFrameAt(x, y, 198, 18 * randomFrame); - return; - } - } - else if (topLeftSim == Similarity.None) - { - if (topRightSim == Similarity.Same) - { - if (bottomRightSim == Similarity.Same) - { - if (bottomLeftSim == Similarity.Same) - { - SetFrameAt(x, y, 18 + 18 * randomFrame, 18); - return; - } - SetFrameAt(x, y, 18 + 18 * randomFrame, 18); - return; - } - if (bottomLeftSim == Similarity.Same) - { - SetFrameAt(x, y, 18 + 18 * randomFrame, 18); - return; - } - } - SetFrameAt(x, y, 18 + 18 * randomFrame, 18); - return; - } - SetFrameAt(x, y, 18 + 18 * randomFrame, 18); - return; - #endregion - } - else if (rightSim == Similarity.MergeLink) - { - mergedRight = true; - SetFrameAt(x, y, 144, 126 + 18 * randomFrame); - return; - } - SetFrameAt(x, y, 72, 18 * randomFrame); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - mergedDown = true; - SetFrameAt(x, y, 144 + 18 * randomFrame, 90); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedDown = mergedRight = true; - SetFrameAt(x, y, 54, 108 + 36 * randomFrame); - return; - } - mergedDown = true; - SetFrameAt(x, y, 90, 90 + 18 * randomFrame); - return; - } - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 18 + 18 * randomFrame, 36); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedRight = true; - SetFrameAt(x, y, 54 + 18 * randomFrame, 216); - return; - } - SetFrameAt(x, y, 18 + 36 * randomFrame, 72); - return; - } - else if (upSim == Similarity.MergeLink) - { - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - mergedUp = true; - SetFrameAt(x, y, 144 + 18 * randomFrame, 108); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedRight = mergedUp = true; - SetFrameAt(x, y, 54, 90 + 36 * randomFrame); - return; - } - mergedUp = true; - SetFrameAt(x, y, 90, 144 + 18 * randomFrame); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - mergedUp = mergedDown = true; - SetFrameAt(x, y, 144 + 18 * randomFrame, 180); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedUp = mergedRight = mergedDown = true; - SetFrameAt(x, y, 216, 144 + 18 * randomFrame); - return; - } - SetFrameAt(x, y, 216, 18 * randomFrame); - return; - } - if (rightSim == Similarity.Same) - { - mergedUp = true; - SetFrameAt(x, y, 234 + 18 * randomFrame, 18); - return; - } - SetFrameAt(x, y, 216, 18 * randomFrame); - return; - } - if (downSim == Similarity.Same) - { - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 18 + 18 * randomFrame, 0); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedRight = true; - SetFrameAt(x, y, 54 + 18 * randomFrame, 198); - return; - } - SetFrameAt(x, y, 18 + 36 * randomFrame, 54); - return; - } - else if (downSim == Similarity.MergeLink) - { - if (rightSim == Similarity.Same) - { - mergedDown = true; - SetFrameAt(x, y, 234 + 18 * randomFrame, 0); - return; - } - SetFrameAt(x, y, 216, 18 * randomFrame); - return; - } - if (rightSim == Similarity.Same) - { - SetFrameAt(x, y, 108 + 18 * randomFrame, 72); - return; - } - else if (rightSim == Similarity.MergeLink) - { - mergedRight = true; - SetFrameAt(x, y, 54 + 18 * randomFrame, 252); - return; - } - SetFrameAt(x, y, 216, 18 * randomFrame); - return; - } - - private static void SetFrameAt(int x, int y, int frameX, int frameY) - { - Main.tile[x, y].frameX = (short)frameX; - Main.tile[x, y].frameY = (short)frameY; - } - - private static Similarity GetSimilarity(Tile check, int myType, int mergeType) - { - if (!check.active()) return Similarity.None; - - if (check.type == myType || Main.tileMerge[myType][check.type]) - return Similarity.Same; - else if (check.type == mergeType) - return Similarity.MergeLink; - - return Similarity.None; - } - - private static string StringWriter(params object[] strings) - { - string s = ""; - for (int i = 0; i < strings.Length; i++) - { - s += strings[i].ToString(); - if (i != strings.Length - 1) - { - s += ", "; - } - } - return s; - } - } + }*/ + + mergedDown = mergedLeft = mergedRight = mergedUp = false; + + if (leftSim == Similarity.None) + { + if (upSim == Similarity.Same) + { + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 0, 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedRight = true; + SetFrameAt(x, y, 234 + 18 * randomFrame, 36); + return; + } + SetFrameAt(x, y, 90, 18 * randomFrame); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + mergedDown = true; + SetFrameAt(x, y, 72, 90 + 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 108 + 18 * randomFrame, 54); + return; + } + mergedDown = true; + SetFrameAt(x, y, 126, 90 + 18 * randomFrame); + return; + } + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 36 * randomFrame, 72); + return; + } + SetFrameAt(x, y, 108 + 18 * randomFrame, 54); + return; + } + else if (upSim == Similarity.MergeLink) + { + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + mergedUp = true; + SetFrameAt(x, y, 72, 144 + 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 108 + 18 * randomFrame, 0); + return; + } + mergedUp = true; + SetFrameAt(x, y, 126, 144 + 18 * randomFrame); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 162, 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 162 + 18 * randomFrame, 54); + return; + } + mergedUp = true; + mergedDown = true; + SetFrameAt(x, y, 108, 216 + 18 * randomFrame); + return; + } + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 162, 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 162 + 18 * randomFrame, 54); + return; + } + mergedUp = true; + SetFrameAt(x, y, 108, 144 + 18 * randomFrame); + return; + } + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 36 * randomFrame, 54); + return; + } + else if (rightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 108 + 18 * randomFrame, 0); + return; + } + SetFrameAt(x, y, 108 + 18 * randomFrame, 0); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 162, 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 162 + 18 * randomFrame, 54); + return; + } + mergedDown = true; + SetFrameAt(x, y, 108, 90 + 18 * randomFrame); + return; + } + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 162, 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedRight = true; + SetFrameAt(x, y, 54 + 18 * randomFrame, 234); + return; + } + SetFrameAt(x, y, 162 + 18 * randomFrame, 54); + return; + } + else if (leftSim == Similarity.MergeLink) + { + if (upSim == Similarity.Same) + { + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + mergedLeft = true; + SetFrameAt(x, y, 162, 126 + 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedLeft = true; + mergedRight = true; + SetFrameAt(x, y, 180, 126 + 18 * randomFrame); + return; + } + mergedLeft = true; + SetFrameAt(x, y, 234 + 18 * randomFrame, 54); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + mergedLeft = mergedDown = true; + SetFrameAt(x, y, 36, 108 + 36 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedLeft = mergedRight = mergedDown = true; + SetFrameAt(x, y, 198, 144 + 18 * randomFrame); + return; + } + SetFrameAt(x, y, 108 + 18 * randomFrame, 54); + return; + } + if (rightSim == Similarity.Same) + { + mergedLeft = true; + SetFrameAt(x, y, 18 * randomFrame, 216); + return; + } + SetFrameAt(x, y, 108 + 18 * randomFrame, 54); + return; + } + else if (upSim == Similarity.MergeLink) + { + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + mergedUp = mergedLeft = true; + SetFrameAt(x, y, 36, 90 + 36 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedLeft = mergedRight = mergedUp = true; + SetFrameAt(x, y, 198, 90 + 18 * randomFrame); + return; + } + SetFrameAt(x, y, 108 + 18 * randomFrame, 0); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + mergedUp = mergedLeft = mergedDown = true; + SetFrameAt(x, y, 216, 90 + 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedDown = mergedLeft = mergedRight = mergedUp = true; + SetFrameAt(x, y, 108 + 18 * randomFrame, 198); + return; + } + SetFrameAt(x, y, 162 + 18 * randomFrame, 54); + return; + } + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 162, 18 * randomFrame); + return; + } + SetFrameAt(x, y, 162 + 18 * randomFrame, 54); + return; + } + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + mergedLeft = true; + SetFrameAt(x, y, 18 * randomFrame, 198); + return; + } + else if (rightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 108 + 18 * randomFrame, 0); + return; + } + SetFrameAt(x, y, 108 + 18 * randomFrame, 0); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 162, 18 * randomFrame); + return; + } + else if (rightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 162 + 18 * randomFrame, 54); + return; + } + SetFrameAt(x, y, 162 + 18 * randomFrame, 54); + return; + } + if (rightSim == Similarity.Same) + { + mergedLeft = true; + SetFrameAt(x, y, 18 * randomFrame, 252); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedRight = mergedLeft = true; + SetFrameAt(x, y, 162 + 18 * randomFrame, 198); + return; + } + mergedLeft = true; + SetFrameAt(x, y, 18 * randomFrame, 234); + return; + } + if (upSim == Similarity.Same) + { + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + #region FULL TILE STUFF + if (topLeftSim == Similarity.MergeLink || topRightSim == Similarity.MergeLink || bottomLeftSim == Similarity.MergeLink || bottomRightSim == Similarity.MergeLink) + { + if (bottomRightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 0, 90 + 36 * randomFrame); + return; + } + else if (bottomLeftSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 18, 90 + 36 * randomFrame); + return; + } + else if (topRightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 0, 108 + 36 * randomFrame); + return; + } + SetFrameAt(x, y, 18, 108 + 36 * randomFrame); + return; + } + if (topLeftSim == Similarity.Same) + { + if (topRightSim == Similarity.Same) + { + if (bottomLeftSim == Similarity.Same) + { + SetFrameAt(x, y, 18 + 18 * randomFrame, 18); + return; + } + if (bottomRightSim == Similarity.Same) + { + SetFrameAt(x, y, 18 + 18 * randomFrame, 18); + return; + } + SetFrameAt(x, y, 108 + 18 * randomFrame, 36); + return; + } + if (bottomLeftSim == Similarity.Same) + { + if (bottomRightSim == Similarity.Same) + { + if (topRightSim == Similarity.MergeLink) + { + SetFrameAt(x, y, 0, 108 + 36 * randomFrame); + return; + } + SetFrameAt(x, y, 18 + 18 * randomFrame, 18); + return; + } + SetFrameAt(x, y, 198, 18 * randomFrame); + return; + } + } + else if (topLeftSim == Similarity.None) + { + if (topRightSim == Similarity.Same) + { + if (bottomRightSim == Similarity.Same) + { + if (bottomLeftSim == Similarity.Same) + { + SetFrameAt(x, y, 18 + 18 * randomFrame, 18); + return; + } + SetFrameAt(x, y, 18 + 18 * randomFrame, 18); + return; + } + if (bottomLeftSim == Similarity.Same) + { + SetFrameAt(x, y, 18 + 18 * randomFrame, 18); + return; + } + } + SetFrameAt(x, y, 18 + 18 * randomFrame, 18); + return; + } + SetFrameAt(x, y, 18 + 18 * randomFrame, 18); + return; + #endregion + } + else if (rightSim == Similarity.MergeLink) + { + mergedRight = true; + SetFrameAt(x, y, 144, 126 + 18 * randomFrame); + return; + } + SetFrameAt(x, y, 72, 18 * randomFrame); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + mergedDown = true; + SetFrameAt(x, y, 144 + 18 * randomFrame, 90); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedDown = mergedRight = true; + SetFrameAt(x, y, 54, 108 + 36 * randomFrame); + return; + } + mergedDown = true; + SetFrameAt(x, y, 90, 90 + 18 * randomFrame); + return; + } + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 18 + 18 * randomFrame, 36); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedRight = true; + SetFrameAt(x, y, 54 + 18 * randomFrame, 216); + return; + } + SetFrameAt(x, y, 18 + 36 * randomFrame, 72); + return; + } + else if (upSim == Similarity.MergeLink) + { + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + mergedUp = true; + SetFrameAt(x, y, 144 + 18 * randomFrame, 108); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedRight = mergedUp = true; + SetFrameAt(x, y, 54, 90 + 36 * randomFrame); + return; + } + mergedUp = true; + SetFrameAt(x, y, 90, 144 + 18 * randomFrame); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + mergedUp = mergedDown = true; + SetFrameAt(x, y, 144 + 18 * randomFrame, 180); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedUp = mergedRight = mergedDown = true; + SetFrameAt(x, y, 216, 144 + 18 * randomFrame); + return; + } + SetFrameAt(x, y, 216, 18 * randomFrame); + return; + } + if (rightSim == Similarity.Same) + { + mergedUp = true; + SetFrameAt(x, y, 234 + 18 * randomFrame, 18); + return; + } + SetFrameAt(x, y, 216, 18 * randomFrame); + return; + } + if (downSim == Similarity.Same) + { + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 18 + 18 * randomFrame, 0); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedRight = true; + SetFrameAt(x, y, 54 + 18 * randomFrame, 198); + return; + } + SetFrameAt(x, y, 18 + 36 * randomFrame, 54); + return; + } + else if (downSim == Similarity.MergeLink) + { + if (rightSim == Similarity.Same) + { + mergedDown = true; + SetFrameAt(x, y, 234 + 18 * randomFrame, 0); + return; + } + SetFrameAt(x, y, 216, 18 * randomFrame); + return; + } + if (rightSim == Similarity.Same) + { + SetFrameAt(x, y, 108 + 18 * randomFrame, 72); + return; + } + else if (rightSim == Similarity.MergeLink) + { + mergedRight = true; + SetFrameAt(x, y, 54 + 18 * randomFrame, 252); + return; + } + SetFrameAt(x, y, 216, 18 * randomFrame); + return; + } + + private static void SetFrameAt(int x, int y, int frameX, int frameY) + { + Main.tile[x, y].frameX = (short)frameX; + Main.tile[x, y].frameY = (short)frameY; + } + + private static Similarity GetSimilarity(Tile check, int myType, int mergeType) + { + if (!check.active()) return Similarity.None; + + if (check.type == myType || Main.tileMerge[myType][check.type]) + return Similarity.Same; + else if (check.type == mergeType) + return Similarity.MergeLink; + + return Similarity.None; + } + + private static string StringWriter(params object[] strings) + { + string s = ""; + for (int i = 0; i < strings.Length; i++) + { + s += strings[i].ToString(); + if (i != strings.Length - 1) + { + s += ", "; + } + } + return s; + } + } } diff --git a/ExtraTextures/AmidiasBubble.png b/ExtraTextures/AmidiasBubble.png new file mode 100644 index 0000000000000000000000000000000000000000..fbadc406dc6873765783c0714e772e4f7f0f7473 GIT binary patch literal 384 zcmV-`0e}99P)yrujxZe)O9@&Nl zdncP#kXAU`@u)aL&P^z)kf=Dcpf)i}0?mH=+?&r#$eVx_BKF>VP>=-9CW3@p>)1z- zwIisr(a%v`Dk0<;U8pr4s_RP-a#!%= zwIGU6a>MEH>l2!FGthRsqXf}YKE^@76rnNw=Cc$bzGq`SiqP18^Vy0J-?OnE>k?|O zUVnW<%5q)*v|WVQnMk&;kxOoHcX*Z1Y-?%1o6{oHJ^g(F%p>>jq|l|#`fu>i?S9{& z_`MMsiM-ESaE+9FpM5G%`{PBsNh~7>5%UUdNqFO!*O0c1qY8Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0bWT&K~zXfwUseT z!$25@@2;4HqHR%&ih~xMbPzX3o&2T#kPc1`;-HI`R1jJTN?Ib+v=Hxo$yd^ZY?lY# ze3u@jPw$fNw8}XdT;`)S87@KB4kMMOIgdi2Ad-C zxw|#Wt2!MVGWdnUGgASkVq3($QJFMOH6n(=zORvdxySZ$&)RZKxYX05t4i+8In&|aBn0? zzo|nEXVEt!I5X1Mw|5*&##8=(>Cs>B6ISU{kM|F(Vk;d&dbc|xIYs>Kfb}m~Z0tf4F%}28J29*~C-V}>iS~4H43U_c zoT9+6Wy+lY#s)wj7{tNc^TJA0Ws9T)5LB2v0n_VbZX9!%)%im0;DKiGaEQ>|+owGy wb?UrOd%*PMcT`8~^hO|fcz6E!Cp!fhzONKJQz~Se4YY>A)78&qol`;+0O|-eUjP6A literal 0 HcmV?d00001 diff --git a/Gores/Amidias/Amidias.png b/Gores/Amidias/Amidias.png new file mode 100644 index 0000000000000000000000000000000000000000..2831024732e48f013b71c4b0809c5504a74c5e07 GIT binary patch literal 413 zcmeAS@N?(olHy`uVBq!ia0vp^Qa~)j!3HGjh1XvOQY`6?zK#qG8~eHcB(eheoCO|{ z#S9F5hd`K7RKu$QC@5Lt8c`CQpH@=2z`!Ww z>EamT;eB^|eQZhVzW(Ff$Rl_=2YlANW zva7i`3)>gi{0x3Gec2XHzL)y7&41tgpFD@fx46jU#J0pf)AP%Uq>I{4gx1Rid z}4gE_)y7Z1&VwVrS{tt-Ywibf4(HwC~cAZrqHD_Uwn^kFM>u z({pEP{d<|6eVz~Z!~d>4J1Rc!5Yu>)*|1YAl&iyBP+DNWu53x*RhbutUtM!N{X#F! z@BHHaOo@s2dqn%*^2XZW_?E_U!G{Od1*~E9e_r0SQunyt&DL9sRuvT1)vBg=D&4pw z^X#s;U~Gdx<4wJ}x2@N9mI%yTx_^t>CI4r-zdM^Au-jHB`YjR9Y5@i%gQu&X%Q~lo FCIFJZnh^j1 literal 0 HcmV?d00001 diff --git a/Gores/Amidias/Amidias2.png b/Gores/Amidias/Amidias2.png new file mode 100644 index 0000000000000000000000000000000000000000..bb1ef79ddd174e1d92a8c0df830b867fc12da067 GIT binary patch literal 314 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eL!3HGH8OdY;DaPU;cPEB*=VV?2IV|apzK#qG z8~eHcB(eheoCO|{#S9F5he4R}c>anMprB-lYeY$Kep*R+Vo@qXL1JcJiC$i6iGqoq zfu5nU33GH6P|+$+7sn6_|Kx_ou*DnxEATu`V&JLVWcsFjBU|zcgTw!yJOK$RF*}&-V&2@as*<_6Xo|JGg$^ z@&-d6xm9zRcnw$$crJ5^p-bh%WOI6JazH{##luw`DKD?emmJp)E6XQ zGCk15yG)=hk?nx!A%>Gu2@J~w+Y-4nuN*kQ!0=9N|AZ9=Jg z4D<|*O_-yrfQlY@x;Tb-c;B6{m-mo?fSWCYDYF5SuFxU|vj(NyV+-15O=6N_OK6?K z-=Vr35?9l%X%_~Rebl;A< zaKG7kq24o@*frr*d*-*iSba_{ZRy{$VGeh8PEZlwFSIG?onpm=H%Yn`W*p!5>$@#* zJdtqFX_C(w=NbCvn2s(8=i2w|^NU62j{ag)n6-8t)AMchvisis-7?i;QRnKHC#)(W zWc2tIa;91T`TTxzOwWaBOE<{rv36~}V9)Juwvn&-1>>LR6`smw%h&?A%O-oTPhtW3 Omci52&t;ucLK6V{Qj%f- literal 0 HcmV?d00001 diff --git a/Gores/Amidias/Amidias4.png b/Gores/Amidias/Amidias4.png new file mode 100644 index 0000000000000000000000000000000000000000..d0c7cf81e3920da2d29b17db8752a300c97750f5 GIT binary patch literal 367 zcmeAS@N?(olHy`uVBq!ia0vp^Qa~)h!3HFsG`&3vq!^2X+?^QKos)S9a~60+7BevL9R^{>-}Tm5o1}U}~jy{@V2vS%==$Y4g|ozQMobsGxyCe9R=%f>LXh`R|^af8V}4<=)Kc zKbGHd=wReslora8+)y=D=(nc1z$r$~YuZcVc^sZ8)QZfpcKF4Td|;1vOkAGAUsc9S zj8|@b`V;+3VV@GO7N5pcYmZaM13iA)?`({iIi+k9W9tQ`+={St6&?TQK(8`*y85}S Ib4q9e0JnyNaR2}S literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/ASBody.png b/Gores/AquaticScourgeGores/ASBody.png new file mode 100644 index 0000000000000000000000000000000000000000..fe7f109e87dc8ea75142e91a3ca3a4d1e3e019b4 GIT binary patch literal 2107 zcmV-B2*me^P)y<)o#Fl~-izLR(gP){noY5JaXw}3RzhX>KCq9fiA1`KR z!bC~N2ct7u6RmNQQ9F)7V+@nASS>>pklYmNwMYxrQn<9WMep%p?RCrE_ndMM^v&~s zIX!3Zv-jF}|IdG|z4or>`#!UQ`r20g(+5bby40=W1-;k(&Yxzb|BbIc4#4P-1;g>^X}Ap6Zy01~4I1K(Hslrd`m=@2t4 zBD}NJFx4*q;ze>jdDI7sS->eXdfhbuBz6{N-UImLKYzCBUvcAOK(WTv|Mpn`Dh_-L zK-uVo4=}d&A^=kLhX5FE&vWYY{I>U*$u4j1A`ig(>L?JdWii7dV%9Xw`%0MQ-6;&h zFv!)iq%vSrvnO@EgL+M|r;rT6ty3-soS zm|+nyYYbDUhEOkak^8IMs+NrHk^2O}-YWps%>U3k?gOOS#2sgmc2yG-m)IOo#??Hu zSsrW?hN)Lha>%q(8e)b;#H=xF{;H%0Fx;NEyjEq>cq>yc;b_je3nT(>{pHWC=YuDT zy0F}Nc8|na%IFO(W7Y<50 z=TudC#(p4&26QDK$qOe&NqMeUq_9ss=~CcVJQ!1^xJ+=zY! zzXG6d>lUEcJG%BLmgGgdj#LZ;mMdb0MZ_61OqsRpyea_tPYn0~_pVxP)q8GO{F58$ ztCvy@>U~e#qB3p!QkzLGv)r|##&_D@*xJojxf|)Bs(0}5X4{&!{m{qrCzE%JJU2=WJX-Ao&kvi9Il=geJ1JleXlpDCr za^o>KzS0#(!5+gb*Uq~U`(McP`euBAOp6&75ofGnN5@b208OcMN%b2hGXU&vm--O&P>mQ_vpl4PA|LvmmK9+iSW|d+HDk z>lzX--rOQ_AD!Ywdz|s=?-MgDB1+biiW_U^1^9pV<(1ZK({>=P$e7&taB6UlS6^KYf=h z9UlLOL|E!Id$PR%9DZKB;--79v))s$uUZx}EFy{+rp#(?mNiv(ccvt-*tuPp_5I|E zz>YTEET?Qb{uxX)^?FaVidOycEj#irMDEUgp}uA{cG_NA<0`dV&ju;e)Lyk;8Kw2z z@x}~`hyugHnAP6?=!^~Md(}zV?K$|hy?^-d)sidk9g+JmrcGxdY^`$Fn(pZwTFb2G zySl{tg=v{G<`-to`>#QX_>&8ldS*P9)|gh}ffeXSPf7Tp72uL+5m1bD2OsnSqVunS8*SLIT zpk^tfx{Wu{IHf*aE9coWQm!*}(}TYQ;Hd{BqCPw^?4GxB|I>qF=9J1XtDb7v7v1(* lRn;OFVa!tKIAVrH#E%a?aFl%UW^(`l002ovPDHLkV1injIbZ+) literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/ASBody2.png b/Gores/AquaticScourgeGores/ASBody2.png new file mode 100644 index 0000000000000000000000000000000000000000..7dc2cbe1555ce5b50ba3118c6a67f79cfae292aa GIT binary patch literal 440 zcmV;p0Z0CcP)&&eHh^{YM)?L-AfR_%W@>x~S`0OGl0CqQ`9r-eQsXXW# z@OYEe=`jHE#j-)Ud1^|RWdQth6AHk1`VoMarao=%JCNB20>c0-FGPUu%IiY^YK~5h z0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JI=u?lcmC+!KX^I{+5* oMe|7kJn@C>{pQYtft(Tj0S$McwD%%?B>(^b07*qoM6N<$g2nOp@&Et; literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/ASBodyAlt3.png b/Gores/AquaticScourgeGores/ASBodyAlt3.png new file mode 100644 index 0000000000000000000000000000000000000000..83588fe446c560e9ee64ce83689ae75b72ef4f71 GIT binary patch literal 1215 zcmV;w1VH%wZ1H+n@C~`1y{ZSD#L@$Y095x=fysy3_3TvvIL;3Q02xEF(&Yuu zFF{r2(K-PB?1cDArRD+jj!3?s8WP2~F_!CTI(f~C5 zYN&xfI{|c(tQm79r*cV>#l7FkyVCb5T)HXwv-IY_P_pS)#W!ZA0H~Coh8l*D1Yor| z23X{*`&|1d>GS<3PXklr!FeFq&A|1s@}uzjZX~<46Q%P^n>UdQ{KwMYN9ItVH$^^xYnqFfZNhBnahwOL90qNGa5Rja++ROs_u#h>8N zM8X5uHRF$86rXSjl;@jrF>5!VzLvX{u}uLn|6KhlBDq`_}Zl-00#RmNXgsJ0C;GkO~)zU+@Rx`D|dWz zrNk0Qs$~B(Ur0&mp2#yx?f4TM?6Zf${^o!OFg7Xq(!yc@@aiWr4r(;ItCPr8%e<6N z-YQx5ucCIp0c~!3JljweUPmI(jTRwD82xt^G&3aOa zw@A&OzAnt>!q=nmCpem)wh9)1m3V!ADBH0c;}YG=riZzL?Mn$~{L;MEw|vixgYL|; z%KvCJ69DY&H{@)jBqs~Sl5ESeIWhX+vh?XI!sk|3uD!cHRH^T&FZ!GI_!wKY2>!9N z;Q<^qdQ6F=+9Ov=LZeoFPsg)%v~F4VxqBA%Nj;7h#a{rpXl9iB zP(1+nz4VG@s6^&gY~OKbm{xR}mG#_8xbL|$Pu4_vttzXl<8?{nPf#zO9|^hZLo)7N ze^YvJe@UasK1pzQai89mrj(f0x941uJD00n<3hg&(2w}uI(qgy7ml!WoM*sMX8x%xohu9Tte-c!(I>S4AXN^3w^=Z6ZG!fp0Q4oGD#W#{CXn@ zyJ30jT`M28I&shcl%PsU_l{tl#QyxlmzG`Z2_`Y*RDQi-8E91hw3hY&DrMO}XPuJ) z_Y5a$*XQn!m0XnKPw<=Xo>&EUZqEQPlIl~k0YLru^wrDfH)YP9TM4fZ+4b39F2a}N zPcR7VVAVfF@9)h4@ObwCfP-4fveO>xX%?4-pnKY-(X45GFeU#0|2ll37mPo_sEX~w zBfazh_QMDI7MZz-lhqSC6FJrSCAc*95zzkcJN<_I`SC6eOY}XE69>%y4L3@=`CPaE dCaTyI{0EB@_nkT=%+~+_002ovPDHLkV1hBtYR3Qo literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/ASHead.png b/Gores/AquaticScourgeGores/ASHead.png new file mode 100644 index 0000000000000000000000000000000000000000..5e71d8d1cc555881d18930397b37687a5d2af334 GIT binary patch literal 3405 zcmV-T4YKlyP) zZERL&8OML8JglWq+Kw*J2G+oqX1wgJUBE@%hdHM)3oM$reLayq}Bt}eTfDk{hxesIuLdMHBI!ps%Wl}m?N+~TZgFb$^&;LBVujky)^AyTF zAI|?vxzBT-`|Vu+`?{|Cy3Qdg7K;Gv{LS;sB_93m&*rqfYS28s{e?#XIDLK?fPvBB z;>>zIom~L5cQyb}KffUY7&?0qfQzG70C?@KofZ4L>$cSZ{QQ~6=3w+C)XiyYIj$Sg zTruRQTebu6{)uDPJ*aDe<{^B!=kow`v@9tCZ2H>0srMat*Nu0ee-eOIT}vW>OH<Lx##0$^m~qF1k0#^emi7^*VFGNQF{5db3-7mKE9G_!EMOwnE( zf+TL!)6b>;Zs${h*+9uZku|pR-W33Be{~N~u2W={H8eVzo}8F20vzn`^Ezp5Togg= zjL8|2F%)X8Xqh32njsOMF1c2S8SB@(_75EBtH{J!A;zkGN$#p!I=uFGzJ3^h@5c<0 zHFn@#XQef_Hb($s=bcA?ar8Yt<#HzqZRsrkJs9+YbQPy!n?kwNnim&zHJC2f*0mL((C9Hmx%ey%ey{feH@dTmsDhU&X9~D$Pig2ol9>4pr^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ac>&woj%K? zP=ru>tuhjmy*5VZ49f2DsyATTm!xl9>wDJ3v2~TVo;dB*w zahNkTJ3gypl#8tQL<;rCz4>cBt`#{$GKQLSd$mV~zC9uj^y(+eQW<4q(^Sc1w7Nuo zLkY6hroH-GjqVBESMBsyP=qqc$1=Zbz9SQ7NJFjPY7ugVWDJr0-mRc7LyH;qdsZ{s zm|2kSD8?THDmFQ$SP#1FY{{TJ{^4Nv`nj$j8iyc;M`Lc@QJfMjT`~jSI<4(m5drk} zImXDZlOHJL49OTGeVJLXPfYJ1R>OP8UGA;EIUluL z+52p}p`72ccHna{^VbZcHMJ^WDJQPB1YIJ zCWM#}f+T0n>X<3+18R)nXO)M}uB<0*_jtj^SCaUJL9OlCT;hbuv1fjDkz>Y(0cHrZ zT`#SF&X9~D=!eV|q)Vn-;tLCE^Gib3lhqX}>r6|Yd)b>&)!qjQ^qZV4T#CQebKVt0 zy5oA0GbCfE`7G;NAxT=j-Z7=2siWfQ@oXVou+_v_q${o$8t-J>e(wi2h8aT6kc{Dm zGsI$k{bKzy0=UxRV$$AjNwyb z$gu-%?_K|uA9~jh{i*W*4yXE;+g+@>q3^7Is!0bm^qr03`vJIV;KHo>6*T@EjhrDF z!wvUC<{DOViJ6j;t?tEX4*c!qYwBmV_gyb?hGYz%x|L-yTS-(s-8Z@NX3wutx#8rw jS+#4&^Z!E5kc{DfwR-8<`#f;d00000NkvXXu0mjf_o&dy literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/ASTail.png b/Gores/AquaticScourgeGores/ASTail.png new file mode 100644 index 0000000000000000000000000000000000000000..9dd55e5611c829c93edf0a00aee2c45abd265d55 GIT binary patch literal 1171 zcmV;E1Z?|>P)7%Q6vuy?rfzJ=_U$UoUUdLQpI!tY z8fdow);6yL+sTOij%Wmczt&2c{lqVO0f@v708lC}0CgYP9j+ScBSL~#o&sQa{R;px z%Vh`P&z0TUx|fJ35)$G2)y#*xivUcx^{I{X033{|crp{I0x*?ba=bcH$%+kFT6 zRb-3@RlJyRD{3=#&k>?}w!JK<+-eS1Hn*-R&EXvZ^09(MPU2t`KNk571Hv*{`8w~yIf%nfXoHuYvvG<-Br#V zxoh3>_2>8*cz0W`9)9p%E&s!h=d}D(R-M=q(H^bb93n!ZFBq@@W`6fyJ+<$VXVfWQ z&K<2*k4RRF-PdaYWb*~B-W($0BkOHyZ&EM!qrk z-kZMdjUi&a`sA}feFk1KM@Q5>NB?a-4!~q-3xLD!x2>GYMdBO9^%c!G;2 z65=b8dbMz^XaNMu%ML&yrTd1EXtk#_k~u`=-Mx0?Id7fz|4OC2?Aw8m5Dmr>7Qm&V zx=3y18zOUv$Pcft;PcOgpTtf`bcNLoG{sy)8$TIC#B!Xbn=8Y2C%r|QK_V8l0CGk3 logzd}p8e`y4a68Ce*>4%hmA`g)3yKr002ovPDHLkV1lZWEKvXe literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/ASTail2.png b/Gores/AquaticScourgeGores/ASTail2.png new file mode 100644 index 0000000000000000000000000000000000000000..1c34bea8784075e74bcba9bb46c334ef263eb9fa GIT binary patch literal 601 zcmV-f0;c_mP)550006YNkl8f40b>q%Q@FDsPE?l{B?*sS*?kWvN7cEF@ z844YOk!kSXn5yIA<{)#;WX8fB&n7VUfL8`9*s7FFN<4gchecT5?{rn7on!6VQlnVn2U^nH)_K4#agq+Ts{P}wb!1UNl zAX)3|i7VAS0QE0gYp->9C#|z5mNK>WPmWS;oE@?Fm%9EjwJtt+nrh?hHEul9(NQs; zhwT7J_Om@=NiWHS`H$0)hRf$K0I1ea0a)ww0jk%=R?`iDw-X~m5Xt4yH^b3?EbjnN z%=h=)*uE?J9_9e>T>aI{PA<|YpVUKv{$2R~LKFk5PPu8#P-@pyAyh&~I zprl+z zXP0j6;0l0RBdWEyLn_J7*%8NSy@e(bS0wq_KJmrkl76th3dCz2SEf6x5vwrN5>0(x zi7W`YGc*W5DOc?3Ye~aq;41*PagY(QS+B<@0Vo#+G+F2FX3j(@$qu>OWlt<6xUiT8IumYFD8S4!o`{UdIw+b2$|wM=pU6P)Nkl6-8yCBw0$K zS&N7?9hjUJ(@5jYs37#N?!BDz-sc?7y#gj03x)xdhGQX-NtuNM&~0KsAmAgLEm|hE zH2Rg2%@*0&nFk;i+iKsaT@o#>QHe}SM`TJ82>65sb3^X{YyhImZAtOhWUyZ}jfo6R zszjozj}h;nrI|*Oe|=|dZW@5)?Ogz5DWuei{9aE}huXI_v8HYShpP+GYX{)*^2vx& zb0f{phAGR{<~51_wuqFI>rB1&vvd9Q%2G%{`h?jD0G6UJ z04&U?Bo2SCP%V_z9(AH>q0G}=+&I~VoLc6_)HnbSS6=`ej^=+O%6i>&-oY_Y!A1xyK~jeZ zDmDp|ViVa}XWau++_`7IId>QlNMB=0tfDn(IcGaSAbkSq+l@-~P^t%@|5iTHMiz-H z^gkJ(+Z`I29b0gl+^oiZ{SJVy!;V$7zMK)jD_88q_vHrw)p`+tXH?KSf?OOmQub*)zG>y3#lSBcq-+ps_#?%4B_zTi-IxsPR&Ab2r002ovPDHLkV1llec%uLS literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/AquaticSeekerBody.png b/Gores/AquaticScourgeGores/AquaticSeekerBody.png new file mode 100644 index 0000000000000000000000000000000000000000..fb1978fced873eb5c393ce12eb2f050c6786d672 GIT binary patch literal 404 zcmV;F0c-w=P)YcGtb4j*LbddXYolR3#`mnWT+6-=$fnZtKuP`=D{nfiisV!tWE>|J#`gvX0Nz|Pzg zaN19AF#4G4&^<^*Z@+`8rD%pQC!Je&Qx=44f8T>QdyhiS>$?Z|@8#gihRqRPjhWdc z@X9Cf_1CDjzSDmV#tVBvwjX!V9O0i)+}4+)XGz%v%e{w*IMkz`-@u@E2!^}i?WyR$ ze!^-xz8}HMpqDLM_gi?vCdC{Fo`p1>Yq&Jd%f4K=Bv^T-M z*#>yHItB*Tc0j9_AHF4B9&xU1Jg-1-?PjAF(mXLS#|;hd1{ka+#!u2+l-kFIZg}_V zX(8b1qucm<`_l`%Nk4y9h^w8grau3DR4#G#^pGUEJD$8x_UHOsfTiwsgg0N?5oRxp z|EE6Al53jf_+`yD3wHPQW`y>{RDhYjpWxzXJE-3x9`;WJ=!|>>`Fo`i{{e;9mxq)-Fc1I$002ovPDHLkV1gAf_HzIL literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/AquaticSeekerTail.png b/Gores/AquaticScourgeGores/AquaticSeekerTail.png new file mode 100644 index 0000000000000000000000000000000000000000..f4da7fb3a7fddf36f0831091c145ec1e31773877 GIT binary patch literal 468 zcmV;_0W1EAP)pz;rBWnpV#;~%i%FKBCLPvHX}jYf$D z!JrxJN{ll|bo~Q>F}JG$T9>x~ zga)quhgc&qTbaxnfMQ<%UJxl)0cfqJ3xe(4MVZ+~D!%1IRf(DQN8s-XewXvRn4 zk-1H&iPCYYmnb+Q&rpUWG!<3= zZc}ctb)5&G*OXhbOuYBn2EhBH;E8$*hA2KMx-2I~qNa~bZCI6fZ@leGG=x5KlA=2` z4G`Pj0l>Yx0Ki_#0q}l&Bpb()(npnAutb)%k_MoAb*}+bQEq8^b`5|#L*)7Hy7-jN zyqOGk)+~?2KJeG1UvBode7KL=7=gXt9aL!o(6Q8wwslAHrxawGUt~k6>X#g{29Ff1%JA5+rIi z6tG4jn_Y|93Cy|>6J0pf%>A2l=HAJOo&2%K0A{iXfUi0uaea9@I>1NlS5bd}p%&?V zd6rdjJ%IF5R{&UVaZTZ8_eB7hxk6~c+SP@&AD@DQHF;Lie()`(2XJ^ILyAXtl2I}x z-8PyskiFZ=NdHZCZ{UMJeEue0HZAx&L&L&cJii{Ke-+R5u6q^O^W$2j88#u zTGU?MeRiV>^rveWRGwAx^Z$wHPzW;ZKAfJ9 nI8KK_^j;qUxb=Uw$Q678?Rs_xwh))E00000NkvXXu0mjf9Pz-e literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/AquaticUrchin2.png b/Gores/AquaticScourgeGores/AquaticUrchin2.png new file mode 100644 index 0000000000000000000000000000000000000000..44a021dbe469070c3548909aa549c5f6783ab910 GIT binary patch literal 401 zcmV;C0dD?@P)3g-%90`oB58tJh+wIe78d#j+KLZgDcCEv+xrR@Hde6|?39265haKT z8py`zn#@?t&YE3pBy+3TJKxSZ-2D;6s=T@txgINy1Mpe@PyiFTG5~F_3P2)$z<(>b zvUvc&^~G^~PX%NE=Jw|Sc)Ts@-HIgxVHUX9 z@$LlVLL_L&@fzMBT(r6hptC#!fI}UC2lq|~P8I<;t4RiP!yEXSJ^-oi2mrGSQF3B! zJ&5WVn5U7wdA4Nm)wovx-vO!ZUPc1O$gm8#pGyln24*2Enw-c@3jpc8DS+LQW|--R z`Br1VYe)kTY54lgbnxAqGSioyHch1*I|d@&SlZYFU^JOm0M3qPgm0u%(DyW7?HDBE v4Jm!#_n+5xbw69m3xG~dldD(fb_{+1nV4>O+0;ZF00000NkvXXu0mjfH?pYA literal 0 HcmV?d00001 diff --git a/Gores/AquaticScourgeGores/AquaticUrchin3.png b/Gores/AquaticScourgeGores/AquaticUrchin3.png new file mode 100644 index 0000000000000000000000000000000000000000..8d8532f28877c65d968a75bb0ebee2b649a469fe GIT binary patch literal 290 zcmV+-0p0$IP)CeIIw)ljj*T$&y2fOa?A zH64u8qP(Y9lBq#xCLvi o?3}zR$$8fQ6aSL)-&0xq1>wa<@!-KRvH$=807*qoM6N<$g1QEQO#lD@ literal 0 HcmV?d00001 diff --git a/Gores/BlindedAngler/BlindAnglerGore1.png b/Gores/BlindedAngler/BlindAnglerGore1.png new file mode 100644 index 0000000000000000000000000000000000000000..8becc53bd05d863584a125dc333945111f6d7bac GIT binary patch literal 642 zcmV-|0)737P)Nkl6o9{J9&OXSY7;b&nwDBBR3f^Ug7p_@-S{V5`9s{haOFk|Zrs&E6$(XETttX< z(=-xFY92O;CQZ05=AOj4y(BxCvzf;^b7s!RIWwb}AlL3Z20$fa062{^$77-ZzQ2F! zyM8Wr4}kX3&e(mXCLQE|Nl-fJ@G1c3(F6eDcuKd42mn2oMBw%s0E16O0DgCxzK(_D zP_C{6P$?CFi-fEpqJ%{HrjE4wrRV^3GC2S;ZX~xJJp|zMi>)X&#vQ~eB1RQ#y?y3uxcf>IXcV@M`PQKss1OwCv}y_{!FQTRKv;Py%54-3I`otDXS6x{(~h&5=y>5^%BVaC65RBEuXJBIP$NU&GD& zn`0dbA+IFY9{`ZQo(D!%*9$ocAbhTK%pM|3D>ndWA9o#q<&6~pn$@2GG*WS6LGtt$ zFd|g!9vJ#c$&76&xCp@BZrSvc$|`^#AD;sj5ec@ByS|D$wG9p4~loS532)Vtw zNkZ-!?;B+g5$Oc7R}?_uTVL0`d-A}>nz10})_>q^-bY z^2#zW74_DM0{HW~U_>CK%60v^Mk+_zQ6#7U`klVvN1f;#o0?w+MmKIWkv8n?A>uQq zNz_hF!_c$>sFX}X-DFB%jSX#I?H&4VG}p`-{#(tep|^&Jl3%un{3X5f|A_C8Ytk=$ cl2}9JFDE~-eY+&yJ^%m!07*qoM6N<$f}#o?`~Uy| literal 0 HcmV?d00001 diff --git a/Gores/BlindedAngler/BlindAnglerGore2.png b/Gores/BlindedAngler/BlindAnglerGore2.png new file mode 100644 index 0000000000000000000000000000000000000000..833c94b6014937111d57eccb773bbc861007fc57 GIT binary patch literal 337 zcmV-X0j~auP)_ACo2W&*z*Rf(U-bL@7j9h%?OK#8Z<5jnQIK$r8W+>yGUFr{ z!t1-4GaqL-&zzT0m8h>VQh4+^9r~6ttMISv3{sV-FR^y_wk2jI%auUnl5FJo7XKpJ zIYCi^!%_giDp>+>99~!l=kcwC7GXK48KU2pa7prakz4t}<+(TU`{oWv$=X$|06y+x z0G?M9AkQ9%q@rLx1)zKS4#3N7VIM4;;jGsIU_2OUfO^<8Jux7A=t1EtQ2>pj9{`pQ zPa2?meFZ>rV#rF5k@v#!U<9Njd-;nLq&=vIO#t5FSIhq{kx0mdBv%(%e~kE8+#vha jRt-p9v#FUi+d07+fhtu$lg&Y+00000NkvXXu0mjfBmR*! literal 0 HcmV?d00001 diff --git a/Gores/BlindedAngler/BlindAnglerGore3.png b/Gores/BlindedAngler/BlindAnglerGore3.png new file mode 100644 index 0000000000000000000000000000000000000000..a4c5766fdb6c9f79952a12f4e4a4e07f53005919 GIT binary patch literal 440 zcmV;p0Z0CcP)lY{*)Iz@epRvZ*PAhU$-KZEWbzXsuD2+9MkJLA4k(NGQUU zW_47emR`f_3tm_@oIcC@-re&)e0bh_UqO!;^G*XW5+4QNrBJcD<+*wl`frHwxpmu% zce4zD-^h2B%x^B*@-OyJofUaPdej0i3RwV#LqP%H_e9&0l1-AkmU*dkN{ZTroD-?Z z#A+IV;$g-D5Jrhk$y4#+&qB_LL?k2tnpbxgz{>Ux0Qt;rSBdJ)<;hKdL?W@Y1%Oxg z1JE$57C>@i4SD&qwyWq%^Y=-l!d0)yU5Eq#c)opYOJy&cp#=b{G5M?scmG5J zpyks5Xc>G-bxa^rx$XbqyM6U#OXMYBD0Ni1DW7e#u)hQdC=w}2bmjT;J i7;uk%3nc@b6@3HT(0{YA!NigP0000gWt$ zAzuKmpWd~WShpti8lpO0oPTl~jNBUlgFU?=)HH4iAd~9`vy+eh>*DegPxtqOq0z|W zL+8$bzMI!W$Q|Avz~qYlU*zQ{j^pf|%UJdL;)848{)HPM>^adDz<6Jz{~LMviSsY3 zz}BPDerR+Ev}*@f-#i4jb{-EQ6I2I~PVEMt7hhF|IEXv1_2j9Da9?{u5R)&z7)#{8 zJ&#OIZCW3|Vxfpt^2$|3OnB^cG&`1i#!4li;Xpl@8TlGQu{Ik-iRiq19yfMg0`pTJ z5?;riR(0%6?!P|+*`_UEczh|!&(8)>m>wuIaXhs)Zf{AD$MZRk;`_&7TU#@jS%_W| z&+pWRbW|Nb=E_VQFJkgc5EV)|H4#F(B@Jq_DX?631gq0;u%|acUYl(SDnlGc(@O8# zTnFZA8p2=COaI2wD*BRtS6<@ZI&ZEySDK1n6+-^gL}DM47OTVPSD!0{RD!sz>&hPm sv6oiJi;D}OzOgkyzEmhAbY&y{2~fzWVWw7~od5s;07*qoM6N<$f}#-rqW}N^ literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Calamitas.png b/Gores/CalamitasGores/Calamitas.png new file mode 100644 index 0000000000000000000000000000000000000000..de7a52955ad3670c4f14a826475b001a3afa8611 GIT binary patch literal 304 zcmeAS@N?(olHy`uVBq!ia0vp^DnKm5!3-qrzQ4@^QU(D&A+A6=QOvSS!Czkg$^iiIIn*2cYTb}#JaV;HzQuo_H@|xcA-$!wK$;#L0K=@g%uRUW+gGT zoJf;1`rV`NpmF_`A4eOrPeaFnHKye?yatR+4HqPB^0x%%-8<_t7M=HOu+Vlndm;Vpw=$*@ gSO1g^`;0T#SN~=``lorb3DBtwp00i_>zopr0Ds?f`~Uy| literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Calamitas2.png b/Gores/CalamitasGores/Calamitas2.png new file mode 100644 index 0000000000000000000000000000000000000000..4fc180848dc741fae1845859a3da9a2683d47dbf GIT binary patch literal 460 zcmeAS@N?(olHy`uVBq!ia0vp^8bEBv!3-qx)~~z?qznRlLR^7#qL^iug27r7x5xhe z|0fpzI@RNA>6R9l)|8#Sc6zR@hOLH#0a%$ikZfO{(gdUgN`m}?8UCY!0|DL63=E9c zo-U3d9-V8adNUnT;BmR@xb(aI`r5wal_I`Zbg~rJx7F;7VauG|vs+z=C3^L2mJ13u zqBKvdEv<2AR>-?jb(iIF{sn~&uEPyRc8<*nnk%L)4V&}O^5=eq4&ert=yN_z^B4@- zGt&RDKI%BI(m3r&5n2$UAhdoT zbLtd<)ir-tt4x{1e)pSO5C38X#vm@PjfWp67HB+B=unj0cx(Qf-ri=diGx(l-n!-23z<}SUcdUfYu=eokrkI-9X$C|j!pE5 qTupU+yTb)#i-ST6uRiK>-eWMkWD>}FuS5?R#0;LUelF{r5}E+ZP{TL? literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Calamitas3.png b/Gores/CalamitasGores/Calamitas3.png new file mode 100644 index 0000000000000000000000000000000000000000..6c145d969e9406fecbe183f452433eedaba604aa GIT binary patch literal 305 zcmeAS@N?(olHy`uVBq!ia0vp^3P5bY!3-qbi#lRKoB*E?S0J4zX4$1+u-3%wvA_TS ziN(K8_4r!4r3I!nWoNIQo@=XNt07?kR%Q+)+t;Tw0V#o!AirRS|ES&Dtp*${7v3$n^n3nw1-~mltbZ78+Fbe4VfL+CE02Zc#sv$UP7XP^@sAdmuiyLG=C^sjaya4%7hM%HZkh=d#Wzp$Py#VR<$H literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Calamitas4.png b/Gores/CalamitasGores/Calamitas4.png new file mode 100644 index 0000000000000000000000000000000000000000..bec0c8d05a3e892a3ef557cdd839170d31bccd35 GIT binary patch literal 271 zcmeAS@N?(olHy`uVBq!ia0vp^GC-`v!3-p;7kgF%DT4r?5LY0bC}!EEV6fK2?XkcA z|B1!FPWAX&x}^oCHDzb7ot|r}VXGlw09IxWB-_`gGyy4rk|4iehX1JGKtQ)MP_E9? z#W6%<;?&FDd<_abECFS*cHiySUs>kVu+2jIYwJVt;8~aUEwSa(x-zdr}WyZyw3 zV$B1G7`aZS*X=%jt%G6VQw66dtuLniQ%IQ7rg3}1oyF5GNhiB8Fa1&wtCzKMW03gH zF9kV_eXAcm&z;lV@Uec!iKScR+*>owh&^PM`!4*_;N6lEpi3A$UHx3vIVCg!04>aJ AE&u=k literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Calamitas5.png b/Gores/CalamitasGores/Calamitas5.png new file mode 100644 index 0000000000000000000000000000000000000000..add2bf90814ce266d1dd080f68097cbcdb837a69 GIT binary patch literal 306 zcmeAS@N?(olHy`uVBq!ia0vp^VnA%c!3-qNo%!JpqznRlLR^7#qL^iug27r7x5xhe z|0fpzI@RNA>6R9l)|8#Sc6zR@hOLH#0a%$ikZfO{(gdUgN`m}?8UCY!0|DL6K)HpU zE{-7M%2n3yae8(u?&Qs9@$(i>nbW>&cA<>7 z>1=P+o#kztKV$?M9ZR%qGf%eQQcBx?Rc>ebyy;i-EZw4x=~qhrKd@sS&*FyH*XG?U kvQv=RzvYGzmufx3!SC|17OyHxfsSSHboFyt=akR{0Fw)SeEWnnzFOkPS3T~u+@+-04p;GlI`nLnt+r*NswPK!+%t8AfVfsfq{|3 z)5S5wqjTw1M?Pjn4%UEjt#ALH=bq$u?R{J`amnmYRvIr%md4jC^C;fK@ORbLIo>CC zZe^`xoVRYPi1TuW%!yIFr7a9=6?+4OnB}6L@FYx3E^*aJ=zX=lifhgdr~j@V4QKlb zxpGqCT39o-<%&hmb#r5upFL6Hgyh?6361f#cQvMU3H|4GV9qsQTYlZWnbob}h{iX>Race^5MHz=riDH)k<0ycj%P{an^LB{Ts5Q5l_r literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Cataclysm.png b/Gores/CalamitasGores/Cataclysm.png new file mode 100644 index 0000000000000000000000000000000000000000..99035c01e23d05190dc1ad2f4df93eaed84475e3 GIT binary patch literal 263 zcmeAS@N?(olHy`uVBq!ia0vp^d_b(j!3-pmK2_cWQd$8%A+A9BvA=(!m}QrO!CDiy z{}YQNMRjZS^cF@MNeikS>I%Gfpx8`Y6R50W^`}lC#a9yK7tHV<8H9V?76HoCdAc}; zXiS`X;Wpn91rC;ge94wC|M!<$Z#7)^K<)J8<322&FINU#imKmu&Di_r(Wq$a&3CtM zDLPYGnWHTIR3>=Iebd>wZ|?SlubQ{YhDphg(YWE^>rWxF57qZgOzvP%es|KKIh{#H x{aMDRe;Nvh-xtXo4_2S$%Q7dLXXk_2@|x|Ot_-i<9|F3B!PC{xWt~$(698w6YDNG6 literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Cataclysm2.png b/Gores/CalamitasGores/Cataclysm2.png new file mode 100644 index 0000000000000000000000000000000000000000..3d481b899c3f83707954565916510716156c5d98 GIT binary patch literal 547 zcmeAS@N?(olHy`uVBq!ia0vp^20$FZ!3-obG}zt)DXjpX5LY1m*xx@<%(6?tV6BPU z|B1zsqPn$udJ7|sqy^Oubp_r#P;4fy2~<|G`co&6;wuUA3ugF_48px`i!d-S&hm6| z4DsmPI{o#!Lk2v}Kew(8zW=}Syy3K`eOskZda39o{X5`!mudZV*QrINUo8VpZEBgI z!0>a|KQ@i`O@F+-85x{r-ZVQAY0TK6ao@}-qozZZAtvrVE5lK92_6fMDNfuI-dVq! z{{PV93jq=nL{DUPetH<-%rGli#v&krq5Y!=!&a|%8{>}Xa~ud*8>4jZzMlrmhD4?= zGu^Yy3TjRn_eJ+gGCa|^C3wi!ggc<;>MAztEmIg&t_AGOX@0@Vc#<)IMRJj?!BmDV zF`HOdUWjB6kYG%+RIbaiW>hHYV`*RY%z9Z6gZIV@j*FkJ{%U#PtY>G6)vHdE0H%V| zT-%t>r`k$*Gic=3%NuN1_V)G+FUGB0na(Gk%RBorORVjycD>+S%ck*Q$AQ^=Ui{y` zNG2Z8&7Qd@L*|IPMG%AZ_rNo*PhQV0Xkk$9X!g;#*24GDgE`8fKGXA_<(Z}i=XHTu zlV6?wWO?DXN7wh>l>!I4#j1B0H;8>I^i25CY|Arew)!D^w#^KQS#ge6?)OI?xHyY{ j$4rOroq11eAMo?s^St`SboFUq{4sdC`njxgN@xNA!Di$O literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Cataclysm3.png b/Gores/CalamitasGores/Cataclysm3.png new file mode 100644 index 0000000000000000000000000000000000000000..7bc87fb841991d566979a922f1abad2acbef644e GIT binary patch literal 372 zcmeAS@N?(olHy`uVBq!ia0vp^20(1V!3-pO`nzucDXjpX5LY1m*xx@<%(6?tV6BPU z|B1zsqPn$udJ7|sqy^Oubp_r#P;4fy2~<|G`co&6;wuUA3ugF_48px`ivVR_d%8G= zcyykfa+Zt5kfZr|O8tkw^UKXy3jM;oxr1lePO0g>c;mU}ypQ&gZ}}Ef$!jRhXAa@@ z0Fnw~lFlp_WF3~6o_Nn7(8-XPxSVm?W$Ovj4Bmn-=PvVSPTs<%SfBY@lpks8w z#c6~BL^TXQ+%sk3=Wgmg0lh9 z8e(@f8TM?OD)_OK^WSccJ@RXgNJp`)(XekUVgJE+iBr|KnQx{G(Ax~2u6{1-oD!M< Dx4VpQ literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Cataclysm4.png b/Gores/CalamitasGores/Cataclysm4.png new file mode 100644 index 0000000000000000000000000000000000000000..92d0c64320488ce8f64c893d2e55be6726a47e4c GIT binary patch literal 423 zcmeAS@N?(olHy`uVBq!ia0vp^IzVj4!3-qRT{ss5DXjpX5LY1m*xx@<%(6?tV6BPU z|B1zsqPn$udJ7|sqy^Oubp_r#P;4fy2~<|G`co&6;wuUA3ugF_48px`i!d-S%6Ymt zhIn+Yy?QY3uz~I%Gfpx8`Y6R50W^`}lC#a9yK7tHV<8H9V?76Hn%db&7< zXiV&#;K+AGfrr^rb>h$e_2sep-lD2oED!diI3L@gc4)uxrzsXp8ZMo88I#WWPPs8R zJn_KYH=OG^MCWhh3ifF}+hE!F^+bF?cj=u+Eyq=rBut*Kdi(L8kf>{v!=W^h>VxTL zB>KGmpUyQ*{&K;5hSO1=lK=n! literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Catastrophe.png b/Gores/CalamitasGores/Catastrophe.png new file mode 100644 index 0000000000000000000000000000000000000000..6348aa4404e098b3173b077a1e9b93a8c5a2ff8c GIT binary patch literal 231 zcmeAS@N?(olHy`uVBq!ia0vp^JV30(!3-p0cu!0QQU(D&A+A6=QOvSS!C_Q{SQP*O literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Catastrophe2.png b/Gores/CalamitasGores/Catastrophe2.png new file mode 100644 index 0000000000000000000000000000000000000000..2c02f2fa981d3efa13fc17c54c21a3290fb7f9ef GIT binary patch literal 430 zcmeAS@N?(olHy`uVBq!ia0vp^CP3`K!3-pmM3?XZDT4r?5LY0bC}!EEV6fK2?XkcA z|B1!FPWAX&x}^oCHDzb7ot|r}VXGlw09IxWB-_`gGyy4rk|4iehX1JGKtQ)M0|TS1 zr;B5VN9W#aclnwXcvutOYuLa4zvpwsr7I~NTe?(s-+02k^un&(;=XPC>pK@*3;M;> zxW?VX!E5U}m$iZ&Yup(srpxg6*2(V_9<>w~u;^5@{FFPytZm64 zrzw1ICpY7f)y?j+V)n)Gls0oK=6<|k*2s49{dDUhjEj<%)G-MrRaD3~jLVM0sb z+OCSyH80p|&-MOmzPy30_P61tm*)8k4Xpgj{^XY^AAh3$g8gNNWn#?kgvG!>WbkzL Kb6Mw<&;$U&(zHzg literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Catastrophe3.png b/Gores/CalamitasGores/Catastrophe3.png new file mode 100644 index 0000000000000000000000000000000000000000..bd008ee9a1e26300e3c6e238572bd81965f32ed8 GIT binary patch literal 375 zcmeAS@N?(olHy`uVBq!ia0vp^N6R9l)|8#Sc6zR@hOLH#0a%$ikZfO{(gdUgN`m}?8UCY!0|DL6K)Gk0 zE{-7qX=<~yvw(f07~B$FU~lXq{XHalimH{HZ`SEuvy5C;y6l;-TwBw{W2vjvnaNu( z+Fm@mR92ztt43opSLE&PlXn%Do%nY&P(A94vc)9%Sz9$#->MwB1oSb3r>mdKI;Vst E0C9$!Z~y=R literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/Catastrophe4.png b/Gores/CalamitasGores/Catastrophe4.png new file mode 100644 index 0000000000000000000000000000000000000000..7687a4557ab12d016183b7c0c53b769a3e500855 GIT binary patch literal 347 zcmeAS@N?(olHy`uVBq!ia0vp^S|H593?x6vT4n+%g8-ipS0J4zX4$1+u-3%wvA_TS ziN(K8_4r!4r3I!nWoNIQo@=XNt07?kR%Q+)+t;Tw0V#o!AirRS|ES*>xc|TM>mE~ww#i0%H_vS1@7^kN+@Ngvl#lyghb)Pi86mLb z$Qiz@X_K@z>i?KNYvnQ*p051Op;_}86kY0K7wgPkUr{(|%D!y|zS=5f8i(4W7dCX{ zABfg}^wc#;6R9l)|8#Sc6zR@hOLH#0a%$ikZfO{(gdUgN`m}?8UCY!0|DL6K)D&7 zE{-7uv>PI@V_X?8}?Qx%c764f0kZ8I}$JZCZ}t@rOS zU|w}#zh{HOy$AjwYR9)VS?qI3O*+8VExE{5FQ8fGwDITHEK@u8ZgW{#>k?Z3jJIx~ z5#yS*8Zq{sX`EX-PTZ=wmum3L#WRp(MX11QV-22{k_KUW> an;7F#B{|t%W<>+t$l&Sf=d#Wzp$Pz#BXs=$ literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/LifeSeeker.png b/Gores/CalamitasGores/LifeSeeker.png new file mode 100644 index 0000000000000000000000000000000000000000..398861be36348a24240bd3111022236414db7ace GIT binary patch literal 335 zcmV-V0kHmwP)DuSDMdxI(hv)YS_my8C}`6?bQ4}$yKW+gpjFGDMG;XUW%eN&E^HBlc{rh) zI6bRj-ud8}|I0+CuvOm%rD6_z^gc(^_CO(@ji5gmCf4U>Ipi;h!k~57nkbx{oyXUX zpt)HCyE{#AcmHkl@OU$^`0BcycwwoSi}(-5Ap;jn7?w-<2r`*@q-dO3saC+#b7!J!XEjXdeo(JfBd9DD zL8sdTmyZ`nIpYx=?C)W0cyxT~=X@ZZ-C}tmg4ehA#0!F9ob-+3tT$>A+}^bl>){9b h=zZdMv)@R~_zO?ZSM&+BOeO#T002ovPDHLkV1l)0mPr5r literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/LifeSeeker2.png b/Gores/CalamitasGores/LifeSeeker2.png new file mode 100644 index 0000000000000000000000000000000000000000..d51c94f12d227058946f469b2c7faac6d199685f GIT binary patch literal 246 zcmVTZ%|AeY_Jb9oWe6*?!Cj| zcdu}5FQtI4V+nwRe<_?Bx*`CAFb1GfwDb>ESxmV!XxqJ<;V=F%0bse_P_B_{djJ@^0zeSPxhwq|%8Z_m2!Oh( wm7I|*q?trhvuvVQQus$^L;sj$E~Od00j^Ljg_|nx3jhEB07*qoM6N<$g4v*4{{R30 literal 0 HcmV?d00001 diff --git a/Gores/CalamitasGores/LifeSeeker3.png b/Gores/CalamitasGores/LifeSeeker3.png new file mode 100644 index 0000000000000000000000000000000000000000..dd3f95427d2c34b8b2cd67cfc850c18a17b6cad2 GIT binary patch literal 232 zcmVP)ce9O(-UJ+ z;>6@o76g1v)7urOat;PNVs@;Xltj6gCzJO~E*a~X}wLl1(sw^ky5XLlcsp4_En zbdw-xqqG4&e1Np_98Fp1O&~ZrKEuzR1d{F(1U28NTwgD!zrANf`+&x#H! zO-lk%6hP0@u~9TMwXl+?g^;@l3flB@+w~`c2wJr>Xi-ETQff+yO`}eW@uG8a%qWOC ztC{!aJ>H!AF=O~6c1wFR$L)j#fa4B4HD#u6iiJD?jb_UODCDySpxNr^bpXVEbJ+jH z=z%bE!fI|AfZm4#z;HMMz;OrihzDRVSq8xQ^i9jU*Y-OARy<|^jPZ})4u&4U@zEgw zXBU?MRCd+?STAh{#v^Ool8YIp1G$y3;s#(e9!@814<-gRVp@#d+`a$-^MUB=nATMs))l@(o0NS8T@z9(x_d}YYoc#lf3b4ei~(qOx*k9}WgCEA zKiGA2qy#Z4kqSdc^gGi+^o{E`XU2cbG^wQDP5K}1+z3bn^?rJNChbSG+jAB=c=U}6 qKYeo{ECP$>tme9YHFrL;#=ig{W57z%UBxv30000 zKTq307{-5>*l|LLj0PKG`0pM}ivkp3q`!m=5R;gHg zeh$FJ=n{av<6WSR3IGL6n1qiyz%+ANf4cMxfR$z2<_Cuv08tbH6NLibGXQCp19ebf zbNw9v8wVxBDj(3c6=)@nj=usB{}@{PG8ZKzYMd+J$w0hPe8For3_w1bRG9Z?{YD{3ZN00032Nkl_yWx^iO`KjrLJib;7J{LcEQo!8aO*YN%`vs&?#f&kBD;w zc#W&z&US>Wc5=u5@!{M?d4f(k#*&G%rWK7FA^A3I+Z!fr-SqL3yf=KSyq8Km*9|#8 zt|e{rZx2R~pfx3&@o~!khmR|9`_TYxFO|tUWgak*=3OzEEO}Ra1J{d6{*$x7&;S4c M07*qoM6N<$f&eColK=n! literal 0 HcmV?d00001 diff --git a/Gores/Clam/Clam1.png b/Gores/Clam/Clam1.png new file mode 100644 index 0000000000000000000000000000000000000000..ba0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>UDho7qMo9o0D7VuxNj)4FwC=V767lJ85^cUlOq5W9}kNLKN`P;pF7mb z9qs-G+RF629u;}P=1={-V+tL@iep}SGXY#@T-`qet}`_7B8u%z)J44aTUFP!{O&7Y z_v3#qzo4VdEy2+RV>+-Z70u){hh(L4u6oBtv{@mCg z`X0nh%g)9Y0Qtpt0QlvEOo19J&4$q4c^v-Ti5AAKC(${LCYHQb3bh?D<-B-XY41?Qn kSEVLjt;U6nBFUJ7zwr~Ga*U~=*8l(j07*qoM6N<$f})}G*Z=?k literal 0 HcmV?d00001 diff --git a/Gores/EutrophicRay/RayGore2.png b/Gores/EutrophicRay/RayGore2.png new file mode 100644 index 0000000000000000000000000000000000000000..3ff64c48fd98061a741cec3d91dad63f7619c129 GIT binary patch literal 565 zcmV-50?Pe~P){* zfa%Fp*!|nSST{Tj7v^<*M*&1(l!U9Xo~d)ougE{?eFdMQ~g<_ZNldFl$U6|@dN;OI7sHAnI~0wR0H7j z^RbA_B4uQV<;4$gPQ}>du}Pmc8wz0TRfYY}-ZoH1qE|Pb1F%wE1>o<=P@l#29xzYx ze>ECRfc#t5mYuhMy(aw2-@5>G<3QT|ngSSw`U@xz(YsGy12FRRyZC$eYXZ=E@lpi# z-o6pz#>2XvcSg!qQF6*r3LuH(m0;iUMp<8$*@xSD20(lN%XtbYBT*m$s64(8z~+NZ z06x9n5)(|N%-J={tF$4!pfgf%@ebPWc@|+?mGzeH$X2fD{NZr|B_q19LaR3dUFjdY z08Ed50uXf%0H{pHsq@VlHn(KGoBsaI?gg@Y*Q|~$OW~~zF)j^JC&ebZrQxp*0EZvn ziJ+MZi+IP^OZIm9XQVa3UQV7o75$fTzQ48{mxky+ZV0&0xwWrg00000NkvXXu0mjf DcMJ;< literal 0 HcmV?d00001 diff --git a/Gores/EutrophicRay/RayGore3.png b/Gores/EutrophicRay/RayGore3.png new file mode 100644 index 0000000000000000000000000000000000000000..777469c5cd54af2ca622262571eb885b7a445629 GIT binary patch literal 574 zcmV-E0>S->P)Es#M{VzJGy==tACJgz^;rz>T*#5WD^l%w=2ju>{XVG z^}`@Eekc66zL}f>;M4pIX95?8OFEIXrvPG&Jpj7DeAMsh(`RY<<)ZWX&NpDs0hKEP za1e_bMx;`<5#gtqHpa3EeXSPi=6?2``J&fP0Pyn{bbP40VEA3n6MHUnz5#nd`neGA zIqK)NufLoZL(_MGRuki6<3`--=Bg1VNVgKCYqiT&Oq@LfHntI)o?H%qTDj~rBxlF2 zaPFF(1LZXjI5uM&YcY}P)j3zc0sn)6lW1oskxT=S85{y&XM4lh)oe3jV(Na$Sbz0= z9cVo}=LSx~HWby2bTQk6oSB8WS>W8j={fDZ5ej2h^}pIbo!H;z2m8923}*U0ApigX M07*qoM6N<$f>u=u>i_@% literal 0 HcmV?d00001 diff --git a/Gores/EutrophicRay/RayGore4.png b/Gores/EutrophicRay/RayGore4.png new file mode 100644 index 0000000000000000000000000000000000000000..8764f519819a00ccc55a0d69d8e8a7935c8862e4 GIT binary patch literal 528 zcmV+r0`L8aP)px**5GxTB8&g?C z2pSR)#ILv}X3ZuW&4-(@m>o8=u7VJloaW8kch7t8+%xx0aQy5|b%eGc=3iI^^fekgRstxm4mK+fA=BOtD)S2;LCI8EZH=rw<&BLV!J{fvgv80jnC*MA=53q??xo(fx2S|dLYd0CyC2h~b6HY<&hn&RKWE}pJN SbWlqG0000F|9LGOTw{3S@|B{h^$b(5`Ar(Xgnh|#KB$1bhpj%$DI&}$zAi6~->l8#qV2GzK zK@>04)V-ZyVk!T*7bJs>isxBvj>=e&nV{^30U)bFha zVEciT=la>9d;kVV2LVXE`{=!4ae+z41=f=aE}?DJ%>b0_-UmQrInROhL^hJhNFt;- z>Mw;?4Zx329{{-U=mro(LLw816#}rd@XGT z0s$lxiWijuker)w0Lpjm_e{umV$^N?ykvXl)LA!9J?{MXPr3m(bgs>v(CRjc-W~@a zUQ}ivfP_p<^JVwow{aj_7bJP1?$Ys`0lxM1dHOG(4FlP1$`DD*_LRsaQ^{Zw3Vj_L za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_u;b=&j=a jKsWTC2-mBOsFeB}yHg>rl`rKa00000NkvXXu0mjfzL1!> literal 0 HcmV?d00001 diff --git a/Gores/GiantClam/GiantClam5.png b/Gores/GiantClam/GiantClam5.png new file mode 100644 index 0000000000000000000000000000000000000000..71705c31f0c4bcc5b849537f0579817fcdc3aa11 GIT binary patch literal 1079 zcmV-71jze|P)lt_pMi69VHp&-CO zz+eI)vAw$#cHYcJ0ONUMui4-C0AAC;d^?Kym^mFCT zNDnEEB)yF>rY8n4Aez-0%(S2j4kmp2oeUKr97Z$)rPwGWO){UREoP!p6ai$ZTV9x0 zIB>$6ufKT=K()RCz~+v*2q2l98tos*d;ig{ZHRsw$pF&CD0ZS&ac{kv-|80CbuO;I|dA4Pk8Wkp<@iM1#%yw=>s#eCC)X|Mu2R z0IKyBOMZP}$y~c$P%t&OKZ1Z5iTW6EezV#pd`#$honuKn@#S1%QvzY8C`XgbASgzL zVnU!buWd+sIh}K9hBSnkQ^!vMu>5ox=rOdovk5@s$+!GJKwykm6GPM^fZt1L#suZX z3)WaOBAOPw{aPEi9xNkcE3Y3~6MYOxWVLcH?Y;C^pz9MKw5EOYMfVAYkuABFMyYK6 zYuZkoS#go~65EgnF5X8lS6a39YcKinW!)N!T(~ykn6tc9+BUhDuZ94mtAB!K#91-sUSqss);C)gbD}9>E}1zGY|Ux(^Q-%5PM7xpaOv7rYoBDPTJtiN+)Bp{L0;E9GMbN1&RXmFdD)X!W_{9}Ey#IT zxQz6{nf;1p2 z>Do9vXW!?QVP^f^y4gQzN?5Ux;Jnr!bx^@szgYE(Fj0z4k5M{dT3%4pArnUEzO(M9 z{AWbqJEb`M%OtGdAkpyypy1)>l+LszX3(L%amxJo@D?4002ovPDHLkV1gds0LK6T literal 0 HcmV?d00001 diff --git a/Gores/HiveMindGores/DankCreeperGore.png b/Gores/HiveMindGores/DankCreeperGore.png new file mode 100644 index 0000000000000000000000000000000000000000..459b5ba81f1abffdfba49181d175965e9061683d GIT binary patch literal 858 zcmV-g1Eu_lP)G3=O&VJM76i5%oEr4pR zabmy7X(s&_M1^@SlLjDveFA`ZZcpjhSWW;?DsBR>uv&2e5(7gPz+Q7VbO(B_z{+2| z0YJ=(C=4btiO>NXWlvejsVVQTO+N%6Gcp3e+~O=?!Ui$RTcdH%wgBQ$+wEkU8jJ(r z_}(JSb;g47)|T?zdmBjOQpP(EyUml&gU)<);|l<(vsnO~-z5OnetZK=*gzV)&89Rh zt&a-U^sc<#0AVLkiEC<7y#{d3kbYp>dGSk78YIu0dx6(z49q^0rNI! zw_7g2xzuRr0Pz-KzEpg#{BPSa%by46rx#6*-UNcZEp+K8N_U(J5HOc>)jtJ-ZhkK3 zVyWmc*Y{q~a|QoxfuZCuL&@RZEzk{JZP4vx3MBVFxb+x-xy4z@gcbym!MpHzyA_|x%uZnkgN4-LeP5!V(qkF!BuMwr7n^fgCAU9 zyvhM^@Afm`cytBB3M^58Z~elIM^&$)B{vIGJx70BnFj*J;*I9LC_6pww>Fjc;vG|C z-gCDqqa#1K&<_PiceA4RBliP*TZj^=NhR~?c|&Z`|BU8n_uxpxR$|qX<5d;1_qr1E z3gkX4&~0G*!Sc|LmQo3dqN9`V!@Pp8pEp7~W>bRzl$@Fp?>nNeelr40Do74QEr8{6 z)rEkuK(|G5z#Cd`9soflr^DPmS&yosAfL+su(Q1lz_xP;z;d|?KqBfX-#Z9bV&02{ zk$B79J3faG=lvd@l59=&Dj6p`VXV47=DWgR@^T7*_3w_7qs2DezQV|y{Zk<5@G1b} kwhcg|-TvFxNwW(60Ejj?f@$A7vj6}907*qoM6N<$g6JHNB>(^b literal 0 HcmV?d00001 diff --git a/Gores/HiveMindGores/DankCreeperGore2.png b/Gores/HiveMindGores/DankCreeperGore2.png new file mode 100644 index 0000000000000000000000000000000000000000..b1191eeed5f7e7d2926c865c8fed1b2c22fa6228 GIT binary patch literal 425 zcmV;a0apHrP)OfUeH&#l_8`PDKQV>q|RY z|4g9_K*wu^gSrk7dEIp#Lxhr+Wn}>ff*t_#r4j&-?Y1^xZ}$v9}M&Si6ela>rxbwazi4&lQkL~6 z63_0P8z4$GP8Q!=%&)_a*8;Q@foRuDBNLe;6tc88;J5wQJfV>N^$#IUBPaX>?M1r;P)@LjlgGLo2xK_JAMkVYU4 zk`|@47BSXCyMe8>N@7~(@_joyJG1|9=G&cQdTL%bnHtN0QuV0O)v!%Q)2Re%-+x5< zfwMUIACf}HosXo)6DU;=8?Z1x4RUi=LFVSS$o^<^1gx)agUw>8-ETsl2*KjLN1#|P zgSD-tXosIGKbtRGyRBz;$GPkn*r`+_eg6mp*_Fx3*7G-FkgGO#o^4fcrFs;N+huZi zIDvA#j(!qWzV1X5VLU&3yQO)E6H;xt3FDBvRB9lB(N>7}yLt41Fqyr42h@*i4Y)Pe zB>A|%0wzW;f$W7`v@np)-JbxZ^;!arYO}bT zZln*nTUdAkip%BJOtV@C2ZunoU-wJ-jsg2eIF!mH@TIcffVIj}WO#k1vxAG-<~E8@akvBN$4D#FW zKw)nqvJbsa=nyuGrD*>A63$G_g1v+7GxewKvCbc1kS-m1$NuwA(sROJE61(wn;l`x P00000NkvXXu0mjfn$i)n literal 0 HcmV?d00001 diff --git a/Gores/HiveMindGores/HiveMindGore.png b/Gores/HiveMindGores/HiveMindGore.png new file mode 100644 index 0000000000000000000000000000000000000000..e3f549d02be7ae9b5bd20b377670faacb7910b1b GIT binary patch literal 285 zcmV+&0pk9NP)?^ps`BuJ!PvZ*|brmXz4k{EytwRZtl2S3fDd8^s z5^`sd5&qoIO2q)BtZZHwKS;6ajK0`v3<0P&%K&&|Taqr}-2iw!-sp)!vP=_z==n^) zNqNh^MKdjR99vnqzuu(%|6*El>?#2Lt}Bb{T|uH)2x+otN(HOs1_0Nw41n`BDoD%= zAstWKg2j7aDGO_rq*Qd8R?;Jt|c3Q z=i6KWdQk$v%i_+DDE20P)>u)XlmHZ~l^;>njl;0x3_j@Gd?zYDhQ4!Ruyc*=6Th+mrSOaupQ Ra0LJW002ovPDHLkV1l*jh}8f9 literal 0 HcmV?d00001 diff --git a/Gores/HiveMindGores/HiveMindGore3.png b/Gores/HiveMindGores/HiveMindGore3.png new file mode 100644 index 0000000000000000000000000000000000000000..abd2e50ff2472341fbfd7470845fa0a3129e6e25 GIT binary patch literal 484 zcmV^B8pceek{cu2|x7oQ#q#EhgD`4Xkg6lCQ4s4PYiMfgk-t zFk22Mxze~>F!818dC*CZatlwNeRJ{zQT^8;u2v0qGM~NQ?WWO12}Kfj(xb61s9gv( zi#2`!vJD#^RT9{K^Aof`{s!~4D!6^~BIxZ;PFy^( z>^7V29)_e*_g5CPS@3PQ^(%~NZ*1bJ5M$W2;ukck51$V}b0>_unHwslQUbl>&^rnx zPR@)ntZB711DXyd#uwL*Pg{sJuGeNkt9v+L=;u+zTE{LoJy%4Css-a+tiJ`SXDxd@Us!86Tp+4#^;3GrtqspiV3Wl9{S9vkGdQLlmJyVt?a`4)Kj zbPL>iTmf+*A3@R!I~`3)_8w2t&8ug@=YjVhUvxla;S5;3cOhaZ6__P)(hVs{+Pk1Q zc=v-xi{RPXThRIP3$zyY)1_&^`^Z30KXt5 literal 0 HcmV?d00001 diff --git a/Gores/HiveMindGores/HiveMindP2Gore.png b/Gores/HiveMindGores/HiveMindP2Gore.png new file mode 100644 index 0000000000000000000000000000000000000000..eb2c3706bb06d510f9b0f56594963dae0fc38c05 GIT binary patch literal 1711 zcmV;g22lBlP)uw zO43BJ(h(^_io%cO!WIg~i4+|cv7F=1zMPFIcHi#J+nd`xdz?sUUSsd>?EKukec#W_ z1o)q0(R?srz9g%lt_ZmkhP8!$y zhlc?Gv$rlAj2$eG1+CXv{r8M?gdH=IOf2;d008QZhc*ogEcc%X$Ux%$g9iYB>Eox3 z>$yAEwt@W2^o(?bt{G`#;`rE00D#qcX!X{rD*%9=o}%&IZDVyC zNLy=y3|+kbDFEQ+%`X9T&rHuqM`)*!hV|_$mI451{@VlqG&dXJ%=C`{NEoPi{m2Ob z!0fHdj=H)#sI^vb9M#&rw$I6EG86KJc}6-yf!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d00001 diff --git a/Gores/HiveMindGores/HiveMindP2Gore2.png b/Gores/HiveMindGores/HiveMindP2Gore2.png new file mode 100644 index 0000000000000000000000000000000000000000..6890121fb5dcc19d809adee207d33b93904703df GIT binary patch literal 853 zcmV-b1FHOqP)loqu}qamgV35gOe8b882aHTKd)A$l_b)c!^B zFXS?emdZ-SkAi$IMLw4z%>H*4`lsR;_I{xAzm$q;HO{16fc5IW(JoA^AxeZPCNd)c zoVG6ks5gGP0Hv99*p#q*IS?hH=Sz11Sg-E808%YszWP~L%lv#U z1(?ld0LW(4nX}Vq{*lA^Vjh52TUFh+RvWOHqp?K7@m5yIJjJu}v}SnHx-vSL%<8e$ z8>;FAiTJnQN2z!mfKI=!m6_yjVZLZ|u(i_wh6qGbamD(bzGD68PuO4;{x~@?+KFCr zE64}sBrQ#R>@x@U9GG9iG4&sZ72_`pH%)V*^;OpKtU=xub33jyf zL)Pn`N3X|?4r;4s+C15j(@s~jvtMU;ew2OtsGW1oAl09fuL01Bls2jKl$-N@d;bp@uhcd5EdS0UW0eF9+q=@S4By}u%R zhz^>&-eXz5IRGQE0e87D>=O~G(jd3V`6fujzx_Uvl_jE)go@#^t5;W8H9CQihdZSt z`V;o7+cUDdFoC>_Uiy%bTYB_}M8a5Is&Jrh-0bK7K_vYmk>|ZzMt}1{)88i1BN|U8 zG*+K&d;fWXlU0~O?9aMAqd$B9-eC%12)rAiuy{~>|J>>h8(;*H=yN1;?f&E;3*LXu fd*J2?ei^hKi>Ei6RA36e}Q6fRPoD zk>O4@HU?Ad4d-192NWCs&G~lc&hzce&5Xl4wY;`Ga6Okz0&pGN_WIXH-up*yl@n($ zQJB~6$37{KbDz@yWb(=0lZSwnrAYwxew_ouKqMsIhZF$*O-J*5=Et~ZF9aeXDU7Eb zut{XbKs1_i0cdu*J%Dnt0DvE~0jT-`0P7oH0a%(S{@w}3?=7Z{i| z%}y7HNb=rDc+F^bKR5rXA0e4YNcMO30n0=He4C%pHX8mt5XHnK@v`bWDuwq#w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5.png new file mode 100644 index 0000000000000000000000000000000000000000..8ef7210733691f0acf110d2256c24c2fd2ed984b GIT binary patch literal 406 zcmV;H0crk;P)fH(Tm2)fEa-79lMLXyiAgd_wwZ(IXVIl2Piv)@iw zB+^OT?>DnV)~-`0>JTm}u(L%A{=YLJ5g8-;1<13BD<~n%^Z)<=07*qoM6N<$g40&8 AO8@`> literal 0 HcmV?d00001 diff --git a/Gores/HiveMindGores/HiveMindP2Gore6.png b/Gores/HiveMindGores/HiveMindP2Gore6.png new file mode 100644 index 0000000000000000000000000000000000000000..b7e821b1a772c458627c1a58c7c56b73e84ee4a8 GIT binary patch literal 627 zcmV-(0*w8MP)7Qo8`;3t6+}#^ zHL1m$U(;sjPYc+ai7d_9UVJr+s3 zO!PYk>=XO+#=n#HUB6H_RTC_g%SLp1_OszcdnC9a2kaAv0=mXutBof8Vc8iHC@=5=mg;I&?6%*PR!41C&Ynza%;p& z23Jp>mZ4Fjo_H4kvDkK?Mk?yRH`p}6%`?3Kj85nt2?kmeY=s)H1l9lutmwU@E}sWr zB(1w}U?>N`r4#!BINY^+LkYyG#I7JvJNNc#oJ=JF*w^L)@M@{z0mMt%3?Uauw@=Qz z0U+j&05I@4XUvoC7Nzr(0F*y!XYCPRxpfwR_lsXVfZI3X0A#0hb7vpCGZx5gB{i<^ za&bh?@zmT5P$O-1u-nxtnM!&9r;hCeU_ATQm{1@07yoXrLMnHG{c|ij*sZ^*7mtTM zfct}U#`|j2Qvl9_s$bevLOPaD16zUkd0}DwFS6BYn} zJ$SNBQDb5cnrNgYg^)E6*f=PxuvwtH)5G_^S>C{cBsA^tUEa)l-#7E}d;j-;v+Hoc zaq6=l^fEN9vs?c3!|{DRKehiU{kM_%7oHhzy~%d_0MyDs7|Yv{{FW60wy!|q2s=f0 z2mrUM4SmIvZ~F_n1Zr~Xx+OAz?&yVvnMwIC=H6= zdS*QR?y(e3nAY^i-Q?`)vp`ehPQh~k!sT~6PB?jl^+L%u9=rlz*7V0+V`W&#RA0RW zAcySsLQpYzMuS<&FHg&Zvj}NjA=T3L6la>2Mj=a5Lt zTR&qJE}IiB3bA3bGqM+yc)n$Mej%I^RK>g#4)^Vjy6aPkQ6l`!|y zT>!qjeI0;bb-=8Ej&sGXQ-6=#V)ADhFj`hkH$zAlUD-6b59Mnn)$KC-_(_zN2*Lvw zKaH-Pj{Y&dwoaOM-**5CMbUWqk5UM5>6&O%wW=xm=$514T& Un9~lzZU6uP07*qoM6N<$f**nIx&QzG literal 0 HcmV?d00001 diff --git a/Gores/PrismTurtle/PrismTurtleGore2.png b/Gores/PrismTurtle/PrismTurtleGore2.png new file mode 100644 index 0000000000000000000000000000000000000000..b2fd0ca3809f8c7c78eb623b3c5bc8a6a2f893c4 GIT binary patch literal 501 zcmV?FsF+|0Tvc;$%kw|^$l$j#9 zMDQeJ+A?kL;ocUJ+1SHH0*H820AL5zpi{w5?)1RuXEydejrj@m{N@LIx45x^h)0Ep zM@3*UEdz^bDV>UxPDK*2A!0*lM16d8v+1kBcZ&lE-N^3l10bD>1Q=Rd2H^ed!kCad zJrHzZc3}sA#$5q`(%U5f)*pg4xXmB7+sR68jsO^q1@&YJ z5Sj=JfO@fJMBGW=a^T0mnT1>bxcO*R%K(gzJpqu|UNt7ilJ@}QkFN}q^y>-$&F5x& zlVmVE7z6O~VBuAgI?48w+f@eTf{HjXlQN!csmDXkQMoFr$iqoxR4b|649q~|FH^%L ze|!bN!qyVtnP^^8Zp5hs0F(E_xbq}5z&vGi5BG zO*9eD1o%&bPA0PJ09e&J0K@M8L%mp&-QEvu&H>OmxiQE45agHiH0Z>Cff*!JZbVr9 r_F_IJ0b1u}0l&CSyIp2IH}&xW!FrHl4y5wU00000NkvXXu0mjf+wSFf literal 0 HcmV?d00001 diff --git a/Gores/PrismTurtle/PrismTurtleGore3.png b/Gores/PrismTurtle/PrismTurtleGore3.png new file mode 100644 index 0000000000000000000000000000000000000000..45487321c747783d128978bb129d603dcbf9c4be GIT binary patch literal 1238 zcmV;{1S$K8P)m`fFB*OIhH5<`n?d6iz_(; zU@n!kUB_m%mt%-@?A-sf*73);Z|DYFx&Y`KxDKcvt)h}A%Bn}AlHtol)sN<6e#3Ydc@0^J?3EM-h=TsGZTJ zT+#qoonHXJ6V-h{qK){@p>JLTs!>cxNE8!0s}4S-`X#T3{WbCZ20-G&&jA?dza9XW z*A2jIBCD;}QA9LJJ}AC5rv2j7+A09Y4y&EElCa(oi=Q1W{}s{ZwN}Yia^5a=LMGo; zcAg_&>)$)PSC4X; z4VR_jbJpHu7JaCQG9)ztdiV)p^CV6K`_jY5(i+^NZi zUf{nquC*naNnWWp?`8z7atx80TB~zd)%!im>Nm;`#>;u*)GJSE_FJNNX>Ex{A{lSJ zqYDX_(XOg&m#S(zipqEL=kq{)0#-Sfh+Dp21${v6PP*<_H#zGWx865|RJ}X8*B>ze z@;Q~47B2pLNk7CfL@H5B?&@trJJf@q&xGoZy0(W^b$lVCs#8n!$^9?}fcvUl20*(< z5$%a7Qu&#*RxvCV)OW0Ix2hPdUvC$mb1Fue$%eMSviKtzn3)8+Bg$)X#fBK07*qoM6N<$f|?ap AQ2+n{ literal 0 HcmV?d00001 diff --git a/Gores/PrismTurtle/PrismTurtleGore4.png b/Gores/PrismTurtle/PrismTurtleGore4.png new file mode 100644 index 0000000000000000000000000000000000000000..be6c48587880fba1815838e0ce09d585b743a987 GIT binary patch literal 1051 zcmV+$1mydPP)>`onqRMGMc>jHrBCu0B<^QL`0bmL#=XE(160EX^7bjHu7hIbnEKWI*^3*S8b z1%SV9-2&kH$-WRGQt4&c0ANAp0P%k5$fZ*NTs(Xxgcvz{eKvCSM@*!aY}*Dv&%qP` zslkr{DF5~-1Q^L126NKs0N_ob;LQ84gAfS!ZIwkfPJ}krDsFVf zjXX0k*xtF`Ij@kk`u)mJRJ%{HTnqpT&y7zNYl$URaiuc7borC7O`Z}F+pjm?|HE;O zBR)>LJ9rm}+$<>uJ9e8`Ekte(;^UG}%$MAkyJzy1V#L>>o8JL5$ti}GShCRfUJsUB zVykv+4Iqjsk zUdpy+yof8)>$>mS*_2pff!5098`c5v=4If-n%=mjs|-XWbiKdVtv)nflAC>E{z`$( zW696_dcyHcD=;(GB$4qYcd7cQMXq_otc95^yMWp;r++ZH#B?B1AFf;)KvZd}@?_AR z=(|m8sWQFtpIltB<4U#N>8zQ_C#F~%D{KOwxtIr__w!@Ugi?DJfFAZa{eH|S|NZ#Y zd8c1hg{q90>a@COw4@prx0(NXUK)U=j*mi!V#HrFC9REearc^T0Lq=ly>fA^_6J~b z=L!H`J~Mlc#1aeq4&{+WtJeb1G~M9r2`X#lzy;IpIO?2tAO9YRh)!NJF_wF4@}x4p z?jxci*VMc)*{-Zf44YTvB1vx2n@b|FYT^z6xnZ-%&X4^Kz+`^f^jmV0e;>KKeu+ux z>`Jr$8~W2B=~tqu!fgODtsel;($NOMK>u*n2dKnUgIP&R#qkglOswWE2}`r7c_9D| zWdl$#AvY64Br3% literal 0 HcmV?d00001 diff --git a/Gores/PrismTurtle/PrismTurtleGore5.png b/Gores/PrismTurtle/PrismTurtleGore5.png new file mode 100644 index 0000000000000000000000000000000000000000..55d6e76bee967ac22fa3815d54fa4ea7929f1711 GIT binary patch literal 234 zcmVJP00027Nklsq@RNTnJW#h~HD;Q75U_YEi*d>3VoT1Tt0!cFsF#7n6 zXQo4N`89~;4EcNlYDpdZ{_H??+67rJ1K$S984ypK3--eqjyDvPGK9k%IsW6)be93t k)5ie$d=jq(i~Y@pe};rH!aDdr%>V!Z07*qoM6N<$f=qE=a{vGU literal 0 HcmV?d00001 diff --git a/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA.png b/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA.png new file mode 100644 index 0000000000000000000000000000000000000000..378884b4973274c3f7d96ad272043c3a67becf8b GIT binary patch literal 1083 zcmV-B1jPG^P)g{@<7~1V#!ogg^$>4BLc8I)Sl*f0KfitEeP`b>WYjAco&%r~ zl>lhPodlrS=m7BY+0y__K3Q?b)gQJ1SbJ0lV5V9z0Dm-EPQS0d{h{Y|2eRJiely%yH@$DMrx zu)m);$4liwAV)-_WaVnlhVR!l0Ql(Bn+d>lm#j$5pFabngl^Xw09<*0!8y;DHy=3t zB)tiFwptkm;P?Am3BYL8&Vfo)GLR#pCRw?f9NjIIPe>%?O<#HgKGCI>U!4CUyD)ba zcsxqvhGiW1AUb=$8?Qg7yVw}1YK z-nq90fHAQF`1q6M1X6GLgrNq6$@<6jCW6F$lHPb_yxb5y$V}I+ybHkWjD51fA=~uD z(pm!W-rJX)fg#WOvp>`xiWWL9?~V%Rf;!89cpMW9}mEOF30f5bx^-K~aJy-U={FT1%NzLw4Lb0tyKkTNb>5$h|TdE z+xD9%wEGcKZixP4kB*gX##yedJGtMlDXCpGdA*T-$rhieNF4GiaHs~=B`UIqYVsnV zX?_%+s4vsmGmsLStl1U6)~AXB`f80k`S=VxaC*nDVr{1jJJnU+VDv9!n8 zuTBn8Dc-f7o0zg>MR3X6ftz?@*k-8BKQo;_H$;z}>!m~AP(b<(rIo!rssFm>|GEAs z`6PX{TXtu#Tsht)PaaXpuSBb6rKphAn^JCw{soql-y@AjWV!$V002ovPDHLkV1fy! B5>WsE literal 0 HcmV?d00001 diff --git a/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA2.png b/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA2.png new file mode 100644 index 0000000000000000000000000000000000000000..cf6fea2514ad154fc8ed09162309af048fbe4bb1 GIT binary patch literal 879 zcmV-#1CacQP)|k-*;vw5r@>3*4e4!dMN^+JIpeGMmdTAI%x*L zYWoWSrNegouZsV*p-3BLN7zXnVRz`ruGHP5SG!3zY7$Mh|9^;YE*%>+OaRzU;|#`x z(rP!E`<&tvKUls1K)LMRb$#=vBV9TPz;f#}0Bh}UwrONfKtST$x0#ekCzQdMP!g%U zt(RQ>D$13=Qt>=i^vcsT9cGi)MQF(-AE{IvVv*J=6<{2_cdlQ{eSpZ@TidQ(ybuBO z7HV@lE)KEO+uO?kTBAI@dZ{&a{o|+h)baXm4}epPDFBURFt_9I#PYTpyHowd<)fnZ z;tlur^Bd=>MnE2)KeF#>?rdZgo>=N9$y{$Oxy@rmw?b`KqK5u<`_V_h0 zI}3?aBh}v8&H!qaN(8gy;XStAN;Y5bJzN3C9_#x3+bg;Ei=4u*x$KHU(QQdJ0+PcT;_*b(7c2UI?kr{JUCFLGpRR2H&>$UoS_TTV>$6W>FS|GErfKdP?4Vi4 zuC4lUH3E3|V>7qo@H=}VZyrAm!0)&^wJYn}$&>6VQeU0+yI2ZetH1x=1K>pLDobt9 zivZeNgWSDKpMH(%-&+r<6rNa8zFj_A2ViI5yz+fX$Xm@maXNp0ODYbrB+{jNEdqGC z@%68~PRa{^)p7BN73I?M>1G7*bZx`^g4XLCs^eh9e*k^vkwLdb-Ddy*002ovPDHLk FV1gUMvq%5{ literal 0 HcmV?d00001 diff --git a/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA3.png b/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA3.png new file mode 100644 index 0000000000000000000000000000000000000000..127eb77b7557e1fbb1e41d05962601d5a370ca69 GIT binary patch literal 685 zcmV;e0#f~nP)>@joS`AWhTclR`tdowf4eK_xV?~LPEoz)nCc54lQ;o&$TqxEL&0Dc`! zDAJF=#q*0QI+44apjNip=K)Bf1_1rve-eQ0E0?_!cl-MZ1rj-{Wr+nx$nA740x+IT z5`b>|f_K73_mVgMI{5C5cl-O^xZPTF0K>yEusEsU2(4H$B68z;xAH=fdUW@;H4rV!5M=D%GQk{3c>l zf+LjcE9%Ats?00vsj}X7@77Jg+k<=05*(pi4%y_)5c8^0E3*W&a?RVfnRlN)S3Xd1 zgy!1kf=8;b`jqJMh?T8A>mhw32#!$BL(59}WP4s&_qV$VCHI*iRN4D%)zy7Hu?mjR z+*KwOBza}kN%p&wNXmQqT5|dcN%QtRtIT^E0CD6Tz+{?Uc6JC^ElVt;Fg^4S=0FuP TuXDLk00000NkvXXu0mjf%LYpH literal 0 HcmV?d00001 diff --git a/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA4.png b/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA4.png new file mode 100644 index 0000000000000000000000000000000000000000..baea77123d4a2b685272556844b7a7f450027314 GIT binary patch literal 1324 zcmV+{1=IS8P)xlu?{VL+`#$g7bH3*c9xvEN z2Zyxl?;k(b*X02`Ui!E0b$9=I_`mm!J^$2Rjuw zvfq96DFFFf1pw|9$^cBw&iMen-JKr5STYCHemQ4|dLnu1SPuXX9zXK|J{lVV;H_MD zO2^OSA}3Bv&H}Jn zu9yqs_21E6wa0snPshq8eiFptfovB5ADlfNy>asL$7B%fQhNw5p^RH@>Rt*t-|(r%mWzi&jJU>VVk7=9GSf~q+i`3`cK)c zy2@r12;V4-cZJBfa&anl1gIscI6VE^5>Ts_=2uEU_=PmC)qiJU5eRi^v23D?J48iN zdQds`0*0sveR=6RQ0uE&-8xTZla!sz^hVDM;%Icx~V{kRWd4z_*J zUe&TjBp=QhLZ6&_KQbQM_B?=|4wdQ4tZkY#V0Qx>nL9)kFT3JN02YfY5t6nJt*xnyNln=`kW6tjS@n%#3!+K0 z<_uA9Y$OLjBH89csKD*IUW9(Uaz1hcTbJ5(yGX_s&3S&(Xoz1P63ELFNuo?I;6HSY5Zh9#N316P>0Lyt@-9^Nd;LcNP{Sm4NyJYdeR_ zM7B9Y)EgZfiu@X)cq&tdk?K*do-Qo|VP%l8^ku96dvcIDMHGP4k)W2@sziNl$0+iR iqKTU#`LfL!qW=NntzXVND3M420000 literal 0 HcmV?d00001 diff --git a/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH.png b/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH.png new file mode 100644 index 0000000000000000000000000000000000000000..181189a78e690116fc6be5caaba51cf283594241 GIT binary patch literal 857 zcmV-f1E&0mP)0009ZNkl zaH!FQddz$K&H#{2{{UcS!NkkuB_E*rx5WeKI(Zp@wQryIT|c=BheC?GS>iD9=*@r@u}Io576G0GIdr*iR3AuoShyX1fWow_W|BNH_va38V1=1edY`K z*ZVGfVZii>;-cvjJ)Iraajp`{Q9#Vw+fo3$ee=l&D6P!`kQ@I9ggF*+g=0=UVU@`h zOpWv|d;#j$MEnYfc~55t04wX8K7={!wmBYKC&bp#IZQ^iGFtK(=?GZw>Kg6%Vc6HaOdNIkST|cYp#a#2ERX<`~Aq9il3HpPX zUwknEBtZdvkdM{t)%ycKTLdo1+%YkxPskOTpUul1u2O+ZERv&uASD9-+nkD-n232$ z1EzfhH8O{JE;s1x7)9&~co)y#2H<$>Vduo7T}?_%MEXFWM9>Lw<_qd0T37M+oj(cL z3x5Bq0#K}MI0Kc;Qy{E?T){jSwxw-$t`|D{ZE(cGML?ucK3)vawHJgKNhkKKC) z)YgJ_Jym_w-(nuP#=1he7q)&H<>OZ%IH!jvBM-teoEQZRY^;-#cEibOch?ki^?^OP z_aH$E)ZC7BMjRgK2cWe0)!8khHzVcx(Ixk0Buvfbfm-ItyB7$0vyzRY?hv%!4`CFD zb~@!;HMO$7>8vj#PXQt7j;Io1+#R_aMytIZb0N732+j5hRePhHM-jUMP5(+J)aw(& j1O1+jfyT^**cJE(iJ*4yN@E>V00000NkvXXu0mjf*=3SI literal 0 HcmV?d00001 diff --git a/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH2.png b/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH2.png new file mode 100644 index 0000000000000000000000000000000000000000..e6df4d36ae0b17a717d65015c5b40ddebbfc8780 GIT binary patch literal 1558 zcmV+x2I={UP)t~#~znrvb%Pms!zz(7jIfm6mQ_8FI&+`rsG2-H@(lv ziKbOct-Hk3!rc-?Bt!92KnDQWoadnHkXaOsc(a!oOtBiNdP)uJmT%I+f<01A^@H7A;2VW_l=@Xs5S1JKC)zrAzw({SX9ipVPMO%eP zHYc^2j8#&cwcE1kr}w@ML>+nhKK1U?YH)fs&y0ZR8#?-?>)lve3e8-Hs)gOdRf^eDuw1ZL$b$(G9XJ%t4}Opoo74qnl0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 diff --git a/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH4.png b/Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH4.png new file mode 100644 index 0000000000000000000000000000000000000000..f454bed3d3b727821ed151815e3c3e2d2d214472 GIT binary patch literal 674 zcmV;T0$u%yP)f%Phb;`J6-Ss>JzZg#046v zi7v!Q(AJm~#fB<{(s3~y$9oBGWX7|BVJ?#&=lkyYE)JG1ohbpZc&Y$E{oRHSP%h>j zfI)8vKw^;e|NNfoCLMr;{lI@!YSImnt*%@LU}g1*L9~4J8~|^d9RS*2xBYktrOOu& z10iW`t!a}1@L{XX{~>(-ViO2SE062OeUYV;shF!Q$ukj3@=odvcY!zwk9t`Lpi+J1 z1Khf~1i&A7zH;gC`Cy~iJ zk=Z#oNz*5sHajxr06|Vm2K~&?#>P{P9{yC zQ2nH;PLgtOx4-w-bxpR9Stc`Fij6HDf_-%`>jG?ueIj z02VMwr%$Mkmy|L(%g9S;j$X?KsnSNCMpxxhVa@@#|EOl1_C*>hAgwinzU+4T(VlG_ zy^#l{!W;naH@^7*XHOmj;L3#}5PEv&;WHr2$H)kOduVrjcAx8v2n z%TE(g6oX6A{3Aqs1$8^6&x4W!#LA6l@iGHx9QC7ottyN`JHp_7)>={073yj0Q2#L z2@tIC0?-%^8327BrU3XnGtF+QU{_bqLq&2SWZGMf0?^sf0>G^YugpJFjJ*g*KSBZj zJ^Xi4~i7MCZ;{09LkD1@;4wTHgeAFWdAZBp0#oNdU$i z6CU2Z1X$Tt>~-xZ+pb<{1z>S)*)|?uQy$ijP>IiD0E|TEl$Xksm);L90O?*j7A^x| zbvXs(_L6jh1Es1H)P|K8nZ^Y8@*@U7OGA|bIucsl+yKBIa08Z?28JgAi%@U(bpVcE zeqsWgKV4%06nkAjIx!(rUljyk;_IRb5S{)Bz>BU9z zXe2rZr0+mTU2AKyjrR`CngHVq>baA(l|VWfk*qs58Mlq=M<~OXRALjLcW5@_gR*1U z>HQlQ0gIqhPR|ILfypQUL9b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dd4k7&(+QF9hu%DY4uD<1g+!7TIcwf-2wIBW%P(88 z1vLwbm`6ZCaw%7Hg^ph)SakG3tSTpf^t(fHUM>858$}b24EsOrUpshyet6lcA?-~;NAP8k5uNHBd)uew2++yp!VkkfbH^u z2QZhvdoJnHioRxUj4Ob4xNDeLYBK*K5A=6;n1VGG(#l~IfN#GlfJq-ur!yYFgUOo! zEWUo`8xVYh9j5`nTImM>)|C+ju(kKoH_lv*qjp$9-vvS#biwj!>7N!hM||YA0LZ1{ z3Seoa=u0gjFK)(wevKtFY)fAyb2h&2nk80pBe|PRYqILGK9Qe3ECBHFbG1kA_{fV+ z8Gx&vr2uM2u32JBZsf#B?SgvpIO%)dakNYBj3b+R+ zrJgg;1iKOl*wW@pOgrF;i$sDneCS%tCs8+RqgDEFI7EUMl@Am1U9V$y*m9Yw~7{{ja2=6aX5 Rzj*)v002ovPDHLkV1ght9-{yN literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerBody.png b/Gores/ScavengerGores/ScavengerBody.png new file mode 100644 index 0000000000000000000000000000000000000000..6b04b7d16e8cbc8eef74cae7480aa3b44c0000bb GIT binary patch literal 2264 zcmV;}2q*W6P) z&uC*|OiVl)uUw6Pfd{>C@nTOV zBqf2yX!PKrN<&Bp2NG=yDA+ z*#u7*$MziJKkG&N$418z09aaH0sze2`MW3M>g&l>B2Fs&2Q6jek!>g&RrCJpgM}Ur zt9P7!cM&CwTfIqHWt^*Ba97~Vuwlbn30--`BjE#-~0G5`Q>HtuEumJ$rIWlN0 zW7r(mt9xd*8K2mf0KkRwGj#y?;*&Gheky~ zqNh3l?B27>vP4N)3tw4X0iZ{35?LF9P^yM&T>PHLeFoh@q9OtzQv@wcgH=kxj8ntc z!kaAHI*#$XWOm+IY(Z4lmhuR%FUQp@q9Ou8jheJPg3xzJ#t)c#w6t&{Eq#{%xME&t ziPPz8Q_ZX8c=ipN^WI)J$H|&mS#k=#($;CbiHZmW)kn|*Y5A^uCY6v`Qffh$fBV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ztuc|Ph(M^oGyc^qiatSFzQp61ffiDME+xqI7Np(h)~-|^Bmgi{8P;k^^6wUFO^*X@ zuc4D@c?2z+wIsqjC^PEA>3ilA+@JNhg%ad*pGqj9tmRtKr0aZTeFKS#2!!0cCfBno ze76(V{3O?Y*_$R*j#Pp+4hYNjT}Ry_TC!+Y2_z~a5Hdv!?JybS+M|coY;dCa0Qoc; z->1&_D#Evx((eU72V{@R&6o6%p|#ms!(d3Z7sF0I1e#h1)&Qj&He&Rd(vMHGQOD{?oSj)v&0D zKu~K<-M*JAmi5XIj`7eg9C42ppu(W4|#QXv`&{$eE3pfu1#!ZAuig~Ufd!Uh^5`xH~0AD4Z( z**Q$Z_%)VyXLs%2?Y`OFE6`E9{T(fu=i&$3HwysxG5HAqIGatg{l6W5%+{|tzwf_M zxkQ_U2c=Zkd zFgzJqUCaSs^V()jc2THg;}TVZy|NCOR#kSDlN|Wzh;y4yWOy=S|3zDTJfb9db-f1w zIGau905Gj801W}^bTVFQKlx1{p=2-Ax6akL zL@CWQN|YkW?Rz(}16l3aj-RK`U$(}@C;IjMHvr8)C1IA65bHHFeK9Z$Epk}0h^;NdlaSobX zzhXo!LKext^-*hoYPmufqDyBcO828&{ao#olJdT*!VtYQN4NUd0RWTn_fESgs_UG# z;xj}GAP~_@bCe|MZ|a{aUG)_E)>$Og@61*246LWz)j2cm_IFzS z(%a=wB+JvKC2i;RrwT*Vy(#Is>Q#Ef?B(*6$xJ1h?3Bz^C29Gb-s)*N<&n$~51yGQ z-A4`_pQF4p7S(khO2sFt|M=)=m^R#4OX93sy3G3}PeIR2-dp49*Es;-N^gB}Cp4>r p&hu}VN!$`o5>(53teCfXzX7BCXh?%POLqVO002ovPDHLkV1lekS#$sZ literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerBody3.png b/Gores/ScavengerGores/ScavengerBody3.png new file mode 100644 index 0000000000000000000000000000000000000000..82cd094abf27ff94fa98e3a844eba51fc644fde6 GIT binary patch literal 1900 zcmV-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H0^Vgu$5gGT_ye+Nc#Kx78S0S+fPvHAuooo%r- z!lW|mbv4F1BVw&WFvk_1zQ>wR(D9Cy&!1HJBsm~56TdM_-=$zF-^!kT@$pyA?Zh`X zORTwJVy$1YMy|e@tkWVnATl8i@Qv`C_||&*awe97baM m&J}lkH1_{r6t5%)MCM=L7Z^z<8WOMo0000&aS}# literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerBody4.png b/Gores/ScavengerGores/ScavengerBody4.png new file mode 100644 index 0000000000000000000000000000000000000000..c7acc1c9424803ef81fe3f79b1bdf7f8514fe8f6 GIT binary patch literal 1467 zcmV;s1w{IZP)Ts?Ch>xVNTgty~AIJspqd=S*ZZv-!~@!fM5F0 zll`w=S;4qnr{gT?e@ak7Z`Lm$myd6*)*kO4_Gw1d)Q<+q{$AtkANB!+k!~!Eks7__ zWdOC9Iu&vpjz2g(ZR{6DIu%j18F#Svyr~&5o-NQs z#zyx4=#vjd_kZ*RKp5%9!Wc#vnneM$@f40Hu{A>4LF`OkJ+C0;p+<{otRrAxeBu}e!SA_Rlvo(Q5s1sGcB~5 zoN!#eo}*Vs0K!N&8moYLLatBBO2evDG=p>d$=HbTza8H>VWbmt8zU`brJ|W7Yhw+q zzpSJtDxn%-q!SBkq^xx0>JSa%^IB!|^LRYA*9?~PNl6&##KLE7BIk|Pd{Dz0C$e_O zEL@C~6^;hYk@HPSVt$w$N8bNrFsNM*Bb`_{BXiMAWHx3Nme04X(Zfh57S70%!Jw$t zHs_JM{aSySr4zMw@?=IB>BP+Eku6S03<2Pq@4l*CloidiXcf-mi&{J8kzFve7@07! zab76d`srEnx>lLAok!*x9!5Ix){V?P0c(*v-;=S9*_+u~8&4ZQDw~dZYgt<}v2>ND zV0EUkU1@u^ySe&)1ptTrzW_wmcBiu#sm%{H6H9mbIFGdEkJ`D$#5v1kfA-@F{NqPY zqO$1{cOy%)vbH)Sk;chAoAZ8ReyL{drWb|FyOi3V4gcOS(h0Y$otu^0uJ=i-RT_ES zLhC25CtiP?M)SnoNEo|()^)9&Y)^9UGws+DNa@09s~Rdo!i0L6)JVEAC;W6RnN3R=A}h*8Z~moD2JFpS+UKYb)K> zIJ__45j(qo005po-2?#KUHdROt|W|fqIe!@nb=h&qoEm@I~&m24UW%hk9*fHITyQ# zT`*17u9+y!AXdeaTghnVSi69PhDoz56B8ug#bKlq*+yFPMR^8Wi&@$y@U<0e_Sa60 zX~t@X(l};g$v*N7mER8(Mmk|;?a~twjFluehLxhlyo?wJ;KE32-BI4>>~vTG!1mE@ zt$i5jglc5&e35$_Jd2~nL|H*dto>!p5LuB-3&+*WUg}jNBmWK~JE5m#@6AMmkY#tllZg z!ZOxrF;eT-mVzvuyMB;sW^KG*kN1*|!bm61jm-UQpUlD%Ykjb^)@BTBk)@Nu;o#-9xzvS;SCL|4&t0dNAiS`*nYo)q$<=QeS z*R)*1NGHz!7p-ripB3IFc10NJL~73_87teKYb-tQn30W>@0eMcNWw@b%oTF&(+O=) z)V5eZ%p#2ZpOC$aI6NH*SuIydGc^-i)XH;_g-Zz|oyd+u>+h}s0L})(uIHIq>woh` z80kdz*`JBsv(ht_Sq4{2qj86M2PNi?Fw%+6zCj>ky>AFioT+&;OrBs^6v9X+{sZO9 VSh?5_z#aeq002ovPDHLkV1fu3*B<}? literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerBody5.png b/Gores/ScavengerGores/ScavengerBody5.png new file mode 100644 index 0000000000000000000000000000000000000000..db67b9c1d1b940b2656dad1978d4277263323db0 GIT binary patch literal 2009 zcmV;~2PXK5P)MV4LPTM=IvVO9i~!(ac`5a|jx-6NPf#1f_7+(bk9$~m=R4Lr6aheOvmO8qo7SrL z@q~yvCZx7m2LSX{dNcRujdZ8&Zr0QLm)9Rh01%YX7Ac+(QQKaI-+U$P0RU`nJMR+q zx$pS=;IUMD%ezpPSF$v@@Bn+yr`oRV0su;35CFiv$8&}H^@NBzCIrQEmO{!Sg=ARA zkwB8OyAwG=Ry-kXscUhFHL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mclYpSi<*X;?( zQZhGD^cP~9<~xLpo^lufz}C)o=3KCna{ApD008g5cL@M6`>o4iXj7QeSpDS9=UA&6 zc^rR#ge$Q$#}a#XSO0>-#4B}1^}S9l75dyBSwxOy$s2qG`GpCwyUkstX(UB zN`{}8F_gQirs(@H6u;@Q!FZmd9HeZKR`kb{HKdbEh)n@=S=QQ*(Bxd!I%YLm|sFI@X_T)AJ;8ze8 zR@dI!wM1*a@MtMzODr-hv2H>V@_vs*X9|nT6C!$QHiV)r=?VMdzx@#aoIK^c*U^{U zFVwJ7W_cN^Ra=rFZ$nzqQzwLaV!*F`m&ZmdYSy-}r;_govKH zm&s5706i5)!tDL|2xxd4)Fi#F00000NkvXXu0mjf9=*{Y literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerClawLeft.png b/Gores/ScavengerGores/ScavengerClawLeft.png new file mode 100644 index 0000000000000000000000000000000000000000..4ccbef32e8f73420097b27071a9552b910c953ef GIT binary patch literal 408 zcmV;J0cZY+P)Ccwh=_oN9acA!bj+n32yojqFb%F5JX&Pv@{hg)Y_zp zi)oBgGObaeSo3efWX>Un|Kps@X#BFav+DpjZUca}=K$b&t{)XYo-s54J)H)i*=mWW z(~{yYYxj}gOZ~Xw0ZZ$C5jYrE##jb`(TNcNY^&}AG@5qLyxGYqY5n+I>sup)ME*Vj zmE$T$`zg0L2f)md$gAFn9(b`HfY9NM)io*4oSz1uawmwLUzL?Le_jj)fu7EGJGyHw z08l!;1|Yw)5}9{Wxs}!d38Q0R;IN8B`RoFS?1_)sVF(E5#lw97a(nTnPq7n!bX)?U zaFCbw3&{K31fQ(vxxSedQ%TtYp?nwu0!a@HTFHN4(26`~K>RaNKupgFP<8t)ISYM7 zN&?^2mbnaoAec&B|nwkR!*d~Pl0000`lL&*)tr;j}zbL0_fAB`&0A z=Vk!7apf!ktIf9ntUY<3xI;~Kqn?rH*!(yESIcMgxJA15blrH4#MP>eOuZg1ak&se zA|bUk7mrMkM%I>1dTVoZexJf8E)rr79xej|qC&G!lxY3>p}abK?q z*;Pz}%bTx({d>bEJXtD=J0!5*b?i9XU3PzT6~MWvlK{MIeE|Lk;8l5H>MEVBlk-GY*_B%bCtrlcC{$hdo5Vvzf09C+g%*Wx`&K42LG+{ Y6AYf+%f+-!v;Y7A07*qoM6N<$g36jHTmS$7 literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerClawLeft3.png b/Gores/ScavengerGores/ScavengerClawLeft3.png new file mode 100644 index 0000000000000000000000000000000000000000..ad1f87dfa3666a57ed946c1900b3bf7ae54a6c94 GIT binary patch literal 449 zcmV;y0Y3hTP)hh>D7ihK7bu@CH6XO+!Zo4WfY(h?Is32?!u1JRuav zaPhJmCxC2E<9Kg<=eb#roy*`sD{siqz%wM%f)(F`{tML!avdi1ncTVf`q5YOh$I;S zD4EPJ{Ll_S$&7jI$77^anFEUn<3n0GNJ1l4kGd`_NDbp@G(sC^UCb@ds!8vUy^#-! zs*$>~r4vYy>0PI-UQeRx{sdNAZE89LLNcqXV$tsKQb=Fyc-gfcz&i4(kUoalap={hi?xf-sd$=OE9x00000NkvXXu0mjfZlu6s literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerClawRight.png b/Gores/ScavengerGores/ScavengerClawRight.png new file mode 100644 index 0000000000000000000000000000000000000000..23c0e711391da93395254e0fa4e61b17202e849b GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^LO{&L!3HFEdh;y=Qj0xZ978lFCi846Oius;ft2(_ z5WS=3@5g#J6$PD>r%xO>aNxt+%lT|T(DpvQ-XMY5C&Kk4gHF`3O*|lQ{hU+GB-z~a zKy?QSzFe&ZD>N^!{|_>;;`blRxaJkl7lq5mIm86XH7N<6Ti`y0(Vs7N(WdSrEGiO` z5)u;2%GUh^>3@*F^4Ng`4MJ`Lv)^CT?2%xPwPIrUFKKpa^*OnRK<6@ey85}Sb4q9e E0CqQ1H~;_u literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerClawRight2.png b/Gores/ScavengerGores/ScavengerClawRight2.png new file mode 100644 index 0000000000000000000000000000000000000000..e0e44eb98ee09aeffe2fd624510fdfb685ac8abb GIT binary patch literal 1390 zcmV-!1(EuRP)A!p=6OycKDCnY4 z5X`0)N=2w%jRdT1#1NA$T>I zUAK5R2f)T^HHhlptSkeL7**SdIbAvyI{$6u@7VsdvgfgF%kh&(0eEUW1Hk!_X8}0= zYS<%VY2OZLq<`n|2 zV~99^&9n4qer7{RTnt{KoC5Vcq5V& z`;LO?7jhn~KJWnMr?vus`zNDGux*S@n2@B6cf=@4P0Z`#69B9{TnC`mXaG7X(r(+D zM$<%`*-SCizMYhCyLgMWWwU;9c-W9LyBKu$YijpjFoz`D&Y2 zurz!yfJm>?lO!j(HDiwJi>1hM_B#2j@oMX9raj{irShzWVe@yCr{)5H$xFr?N&F)= ztZ*Rjfg?s$o0y0QH~^^BO}2WdShV{A7L1(;mQ`xqkphjH;+yDK?^=c)9hT{~^9o)+S&kdLCP6#=`yO zg+v<`0A&2aj%rFDy!SBx6K79(0Mj>b1Dy(>BSw)gUZ+y8MUv7cq)*8_Vtam>nFcyu zM{I~F$?FZ}4UzT6X0MkLBFrX5OX|3)!3pp*jbk$2Cbg&B39eR-L3NO#vjw zIb9KQY=yA-$PkpvwsWOD*|Fh>QRHvcs*$;p$gZr(`P8>pBPU$njLvqaTlE{6->%@j z@yc_d@j}?r_6i=*sTs?g&E1wGMvi|Oz7>Bkw=36?Bu9**HZivK7aNjdZ(Uk>0G?;=h3w>({Vif^Y(je7zq?y< z#3=I7Bi5vSFgwa>e_k?g{?7UFafFbP_8WoSmLo=yAM>q1Dk9QGo@vKvr0n$~9i0c>JV@95IUi1E%9i`3mSVr2qf`07*qoM6N<$f@Q~{y8r+H literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerHead.png b/Gores/ScavengerGores/ScavengerHead.png new file mode 100644 index 0000000000000000000000000000000000000000..1f42183c6389f5320e741e28a04fa93b0bd27c74 GIT binary patch literal 1011 zcmV1wra-vC?6CDj`+ypg&Feq+>DCjSchzKGsUAl0iKSFfl;w)W?8xh5&D+LqC z##;zDUIL;9#1S1Q$wZ^=qWYaa{Uw#2i4%~D?`EbeRn?t(>buo+#44+_wGV*ejvfFi z)1Tv3#&7QIiU8(jXEN;*pWZFme_iX3_-89xt%*fuu-|sllvn`l7bSrP;k8JC| zOE-a(h$UmCc}97ZX%CK2BM#-|T(SwRT&s~@8G>}`H39BNJ{r+RwB@9wk&TaiInwzK5yppsw2Y#K)M5@ z@CoIq+4|*oWmn#|H!_99dn)S=pOF4zj=2x(t?XXTYj0NS-?)Dw*_geLyyakjUj*=c zD$t5GI<$8XfNG_di9;{OCo>%zb%9LWuI-+;(!92xCHMCAGywH)Um}2?KNpsN@A3 zdp9Y3LaDcNvZQRLfazD6{tTqv&8LOAc>uDT}O literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerHead2.png b/Gores/ScavengerGores/ScavengerHead2.png new file mode 100644 index 0000000000000000000000000000000000000000..acbd513841457f28e15ac32fe5b8693a19f3b453 GIT binary patch literal 2573 zcmV+o3i9=dP) zZHQb~8OQ&3clKp6lih5xn{762iiy=Cjfn`QbwN`lf}j-Cl8W?8zXU9nB7*djpQIF_ z6(vGG=ocyYQVT&r$odj1X<8B8nlz*hNom~dTV6IhPO>wzGjsj$-2c6Eo|&`f&g^WG z;`x7>%)NK+y_@r!=lMV9+;b+theQuge3JhR(;UBLd{Y1bHx_OI0RBGv?~bn9)6u8? zkCeI7H_(BC=rsg@XTJG4W9P}m_W=OYQgw)Q0Kl!{N=Mi81UYoq5Y*svT1sahzGrsQy7#lu_EYZx05;{b9o?5F$e}w< zkS!}U=#FMuPmn_!PLM0MP$Y-W_{b}N-ME`-L!KaqZf6WKV#}UgV*vonEG`28%B2c` zhV0`Yh-BtR1^@uXrE(WBFPB005S+-ZaP=-P4!qI*fts)_k5IhdL%GZA%mj1pvVH#T&+c zO$dpg;+S#}sg8?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Left2.png b/Gores/ScavengerGores/ScavengerLegLeft2.png new file mode 100644 index 0000000000000000000000000000000000000000..45f682c182586c146ce60c74884d853141fa0732 GIT binary patch literal 1026 zcmV+d1pWJoP)zq}6(qE3Q-4FN*8K?)tqWWPEov8TS_=IF0~e8& zgp?IVKeg1NUp9`f#ho)V_s%=>9*RMCz8mMgd+vSL^Ev0<`_2paN9t(YrZt5zU4!C_ zv6**ejaMa~(*L0#-o&Vkhb@T*mqA2RB2tw@XbB$H#!5t_rJ)gkkFzszre#U_Pbh-S zQe!@mgp4QwAyFhL?+8_wX|u>2Xzz?P8h!Q@D9wSBr;Y(IHTfmdUetM{%evl@v+wKO z3&7=T199^Upb%O964F*RH^xQHJ2#p34|coQyJR$b&2IZqL#}1u9#A&7EK>dvO1i3v z=ekq2hX-?>b92be4e4iRkUp-arq#x7dcK5M2p$p&iU_UfezRN&8Bqiwz(YbM`%u!I z+l^&yHFW!HIS|*sqpk{ovESK9JCS#U)Ev@Cxv?xtN-8cFwC5h*&}7}e`*qrVgs1yZ z(Qi4uhM?z;7R%!K?9XWX{W%Y7{X|;MC6#xC^6wOJCkFA&unty)?n$o--mvfhilBb3jfh-!_MQ?4`*rcSH_AdPvS8OxD$Nu}FNI|@l@A9Er> zBU(9ctS+gVpgI7Uo}aNuxgKg4Pn@9&tLk=ziuo_5C(x#P)oI>A2!l|U$8 zfm~&p78gyd{s_#$VR(Mg7&@^o(md}<%Nh4MYn^dL8>?!p`FeX&DEa!()4T_O%)+k_ zpuR3w$=towvYUPRK61c@)>P#EZSOt-`c5zXHn$qje}0((;O(mqmfhjihJl>6YpT}- z0FS3801pY}bLddYR62L=X$D|&VhVunlRK;q;yFzkx!HshN;mH^Kg=}Pe&GxNZy!7X z;L6SWKp}E!>vBxYbp0a~2${}4bng{_d_Mf*5#Y5L`+>0DYt7N*0s}Z=lB*f%v zgy_npTL5foS|0#>nf?a&NT{#p2mo`Rep+ON$k5bl03P0c3?#2H$0=@{eeE6A_37Sy zfKDpQyq|Ts;83b7gu-ejF)L(72HyZsTelbh%+1ZN$X5z^zp1S^r|&RZ6+&VEb8|}M w&eLB)aazcl82yv^zM>P7{e>ldukw!2U!3)l3^7KqO8@`>07*qoM6N<$g3$fv$^ZZW literal 0 HcmV?d00001 diff --git a/Gores/ScavengerGores/ScavengerLegRight.png b/Gores/ScavengerGores/ScavengerLegRight.png new file mode 100644 index 0000000000000000000000000000000000000000..9451b88995a84dc39c121aae6eecab8561f8d8e1 GIT binary patch literal 1034 zcmV+l1oiugP)mid%TX{cxG(R77#4WEdT)evwZ--;An8FZH6eMY_+p6 z5&8FryHP^?|IS3d?7unn_>Cm`N$c%@A%wwl~Or0s`?)c;+ zO0G9G1pxSUeB9XnV5li%J~Q4CBgX09LQ%20QT{hpPMIgBd*#qW$F2T8GhRWBiQ898 zhPFQ+*2)LQnp6L+{rGIUB~Rw(_r^4aafDNYrhB~t7}t!= zGUGPZUw;4qJh*$k{<}m}>Tf9rJ_V{F%KW+^r?526(m=i^Gwy@Mz$gZfgvzyz!7YvR zAzj9;SeFb~Yh_ZkgaqB&N>bQMKnsEU3OzX^A?a82) zeKE84t7TtIPw>2cKF~WP%XqOgx8OX%&^6aKmi|}r*4^FA`I)p&V2Vnt-pKs@hbsWa zcRzZkWwleNO=v40J3izyHv_uHIg{KCF-Bfp+YM^RvpS2(w(=^+y#w2;W)aCUUO4vS zjcYv?T{9!vLdSjX>~sMD-+%r9kTB!k{kRo5`64}E%v!c>v-0_<;r$jZt%2)_JGgIh|ilq^4`&VSft+j4pb!`*CpPW_AYO=DWta`$i z^+fC4)kb8-9cauS8(Gh-dTtAUfA)M0K!ricX7*)MMPxkzh`)8sj1#eI-SV5dR@EyI z)@>&>VsTj3tSQQ|9qTuOMx8L@&hJS8C*!eS2?Zh6FNdB7!1I+-vW%Nn-Lcjit$bTp z3_g9l0$|*#?+2T%;}P(E6RP!==V;V~QBJH8 zgZt`zNS1NakNeLU;3KA*;iGpaW zMZ~fw(n`xB%CuFti`ld59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100644 index 0000000000000000000000000000000000000000..f168424afd64732cb411bfdffdff8304927833cd GIT binary patch literal 431 zcmV;g0Z{&lP)fQ~ghjRj+^DX2hnB37gUeZ>g)$4lMmU9NgK04v8x$j79XSH# zuW?QR)9CIPdLbIJcMe`3p?Dt)2UiHfl;R3Wm^_Te6|zGnL|I@yfzeq%Z-AN8*fogC zr7(T4G^nSc2Nn|1`3sW*)37wTqF^SNj~>F;W*i5LYh^&vE>aAG-7$1R6qdWzIH!PJ z4hvBj4fE-x8<$W*2%Q59Nw_*l#4tSBunw%W}i8 z83;XeLKNn1SjfWCCM=D>(u~Lv)HDav_vQ*SmSO~)8CFLOHCM-9@#CKOgLOS{o zBu&E9!9q4}Ni9q%m>zl|3UfXzWMOF*ChjnCK8y*bVIc?;#1)b-c~}U-_%Iq4(jQN5 z0}FA%B+%#~6QWpKDrlYobJ1%aY-%VGgT*Aw9#|fM)%`;zL@5abn(76GEG%?E77dvY Z1puB|hM91Ba%%tp002ovPDHLkV1hwoqzwQ7 literal 0 HcmV?d00001 diff --git a/Gores/SeaFloaty/SeaFloatyGore2.png b/Gores/SeaFloaty/SeaFloatyGore2.png new file mode 100644 index 0000000000000000000000000000000000000000..2d117496cd3510d28d6636d9acde84965bda8f8e GIT binary patch literal 280 zcmV+z0q6dSP)dj0D*BeFOXGKU;CifJGNU^Y8UoDVinE5j1S+-d9@U_Q(x)N=vMW}(bN zunm9D-2~Iohx$-l@ao7BFn^763Yezc1u&aoe!g_$5{iv5m$ literal 0 HcmV?d00001 diff --git a/Gores/SeaFloaty/SeaFloatyGore3.png b/Gores/SeaFloaty/SeaFloatyGore3.png new file mode 100644 index 0000000000000000000000000000000000000000..e6d79b947c0b9752fe69acb4200d2a824813bb44 GIT binary patch literal 199 zcmeAS@N?(olHy`uVBq!ia0vp^5 zJxo(k6o9|i_Ek#xk)I~~g`e;vK_y~Hi~~VY7#N5lx;VJ1la4MX#zhAc2M6P>#zaGy zSX82eCSn9bl>AI`yLCsto%F;U}xkf@IMjqxoZK~&d3B{E6=CIMxeI`fMdE-1K3O?4S*Xj z?*nGcSjh~J4=dxy^QX#Q>`O=z(X({`94?{ST;5XZN$$B$Wr5(VAW`U8ROT~s-NN2i z0KmdzFs(i^x}xmGeuN|$ca9*lwVE&hGD}75Sidy7xCFpPbn8%hz3hVWLg(67MIW1s z?d}C^NXX^&c>!2oTsHvn8;%3!7Z;WlrFE=sNokDv zcoMK9AxWmHwHh#q{GQAOV5DDUQE|CAlj>@OkNIfHY@W z*G&MDGFw*0G=S)YKW*jT@2rb{>jP{^$mR5i=#I_B41n;C4>0?i@GmE@x1W)AovDi4 zm+BzBnn+x4Ww{2B%syoR_&*B*)<4mB{TcwD>`G|2A4+72?9#P_(5%JM-aH)zSsH-1 z<}?5cv-9dbYkU+ivox_J$m#{f2EgXbfCjJ;3L9W{ptg;nJ+}@?>>!C1SEQY{-qq!u tU&=<{4*)yyH2@NkkO83Q7umB8{RJSNCjqLXFiZdd002ovPDHLkV1m5DgjxUq literal 0 HcmV?d00001 diff --git a/Gores/SeaSerpent/SeaSerpentGore2.png b/Gores/SeaSerpent/SeaSerpentGore2.png new file mode 100644 index 0000000000000000000000000000000000000000..e34333cc3a11f9b729a2208fcc0c1e8a25e86a73 GIT binary patch literal 872 zcmV-u1DE`XP)i=I3gkKT;&z`+=<9zA)|i%CN~ zaM2h!Xrd-yh!BhtXj23O6icC&LRk;9!!o5Hie~%2?9Tk(?#}zad2ion>=H$d=asS3 z?E%2y^8t{U3hSHs>gE;=U}kI-faUPZobN5z?E?N6?AsC2<6>_m09vsdFg;Br7Xk29 z900(3=`sMV&8-0R_x4Cdw4D}^e+o#?UA1)pEPb2O0cyNK!1Po?dMwf3+XFyZgI@!P zMJ9J#K>jEoJ+E$V0bpiqR0pUxJnp(86nJqr1i*y{Qi%)zbDwO=i`UXC$~ZfVWL8+N zfL2*}2!MiM8vskO1s$OKj)-N&QQ@KVy#3l$WnOwd^z@m+%e{~dr`w}}nMIZ>U|%iv z0^k_=C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MliGhRysQI~6^C!ekMUIe?K4kwa0btd4LTBrL kRhvwy1_ZNnH${%nZ;ChB! zv1=1y7{-5BlTeK2q$UvC*ro(Y8%k(JDhQ>8Y#kf~7jbcNc5@WExH(F}$v>e(rwW3T zrPvZ|sM=yHu}wJ>a^l61n#AGF7yZt&?a(UsPIuq)yx-mZ?z!(iBRMb*fMYpr{$qtA zK?A^Podw|F`~^>6&%e8+lc|6rJ3O5NV1IK@GxVAv0L<9MQ`IYlY8xOtmNEdU<+Aq1 zhbBi2@F8I%7P`^~=*viE6baiZ1CYJ{1c3bf15dqfH-JA$9;s(;0#JD>^Vcp7X*V|e z@DTvfu_ge|@6G`}Bpgr&xm!5^wm+6MgR}fh4yNw`5dFHW>8Xi00LkIFXTMv2Q62=q zEGz)fygn=E9silDX}L~^th@Y6c;(d^0N19*HN)2GIsj%&$R+=xe<_v@?N@qkO2)Sn zLfnp|HGg&_EB?1~zW7+O?B7*l@bV1+zVBOY0JD>+zTS5LL=)Z_Rm7CO6`9l~RvC5o zyEClx_nVU9y-(}fJn@l?0Z`f~0DdH_)?r0feWlGeLinKg5;%ID4JKx^epU5_`D69} z_Q#X!o-+;jwWn})mH;0T?yeFOcWwia-^c@Czh2agwa+yG>H`gJyi2Z=d7HGie$2f_ z1tA>#W&=>ItZ07U5$cZ7ce X`g6tPJfv0f00000NkvXXu0mjf1HBDB literal 0 HcmV?d00001 diff --git a/Gores/SeaSerpent/SeaSerpentGore5.png b/Gores/SeaSerpent/SeaSerpentGore5.png new file mode 100644 index 0000000000000000000000000000000000000000..c39cf0143497647b5ba22fd18a62108650a127db GIT binary patch literal 747 zcmVLBgk_aS-p%!ex)?#g;?YOu-sdpR^7AA8xGxxst%-nhAJ?AQR7%lx5jB#W0E&!~y zHURR;MR%KzQUE^|Ul^02oo?uVN911%ghg)2{j0@0X4+C`)=dS9p5RftWlWFSRqX2$>N&0Rm zxP*j^RLy!W?E_j!Ep>S-s+MF9-;ohV*r#~T`lctaU_F-x>cj#^NC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}+KNn99!sl~)tE1HfII-lKJ6nCku` rq$-w$h+3h(?&2e});UNOI6{8|e>7@Azm#eJ00000NkvXXu0mjfcvuD7 literal 0 HcmV?d00001 diff --git a/Gores/SirenGores/Siren4.png b/Gores/SirenGores/Siren4.png new file mode 100644 index 0000000000000000000000000000000000000000..d819fb0058f99dda52626c54ae6ddffb208a1aa3 GIT binary patch literal 764 zcmV(n*_^|<=REh^@BKZ$a}rtn^ySB3 zqjC)VKE0U28|Tj?(3h0J`=5U0Nkq>R$$EfD@=i_!DV%!uEihY~2ggr8pFsMc0j~Xa z7tG8ogCB3Tz)J0h18t-*L`n}247^lLV74}&!iy8t{80*?>Ibh)-2~rcBsv300+oqN zcziO2A+oKJ$^KWt=!GEgOeMa2?T^1x82;h|(7P}PKDxdMHv8J3wD?~nD)&Ur%?|cY zrZ7ZG+axjqcYY0R^o_U{Ph<}@t$O()L4<%U( zmfKlX40I=WVIrzy`p@q1v9&eud8Wa=;z~0X7Kg}IvYEo%%4#=(Mtsrb+c!Yv!iTY< z-UO|GLmPKzbFK7tCEn;el6OG56OxcB&=c!{H_J$c=8L*+u5m%Y$I(bll_~_KUst uaCnL2u@{-W;@RPH0{0u6yFM=rk^cdlJL%cv{nAwc00009(E6vuyWrZfE-Xoq5@wNnvF`I1Nj$U+E>QAp4b76f8KOpIY65JgQiAt5orxWKs3 zs2g=>Vlb`%Nic>K#T97^DW*!G1&4m5v`oL~*L3E&IPc8#z0S15Oh|73o7Z{o-P?P9 z_ndRjy)za$>f~F80NA|#830OSLpDI^>WBp}He~^@|JWzFcIlEYuU1b$MUUIydPlbn zaOlWx0J_?uw)4m;WFU)=NL?rZ!0K&l)p8r4DiXE;2BWcp2D12wL_$FTraQXCCmL!2 z7>vf|^^qS}Z35tMXZyVUFFqp4r4;}ysb1>xk#M-!0*J+?3L1#HM5%niGG#Fv!RnKcm`z(3>5 zYZW$#$Y|UKu!{Yz2TJ12J?jDZs!0gEd$KKKN5LssofGkRUIQ_Qi1&t)D6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EOU{PG zat5eQCZFHvg#L&Spg1=tqwZY*>>Vh`c%TD-ukV_yMQbIKYTs%A{2k2z?5X@dyK)Jy$DwO0+EQ}5eu+Fv%s>_5aOx=+D zd_&G!s9mK#1;y)9W`a`ET1J%hiwYLM%IV4)`>-VhrCy(+G z@3Pejl#E7GSF<(l>z6x!e%W59-RkXcuGIYk;K?J~zmmzA0m$Wo5H=E_mJaEjiF-e+ zyb?NfPRN`%Dk3}aMSgGIeF?yov(whPTi3;BlBvJ|1c<+t3IPC#I;o2;A${f=+6@n{ z+Jw|cMn~ihM|l9i@I`yQI{o;4TZ5U(-j(i>dOtm@Q_<`)m z-lTh*l3BrTtZ_Dz5F&ATNXaepK$HpTUZ&2f{^7nEUVC~NfT7)ERzBX@YK^rEHC#ee zG;`g(} literal 0 HcmV?d00001 diff --git a/Gores/Viruling2.png b/Gores/Viruling2.png new file mode 100644 index 0000000000000000000000000000000000000000..b43c026fbbd24ccf4e3a12ef89f1a49c186be488 GIT binary patch literal 962 zcmV;z13mnSP)eoE`GMm_yQvh4e zeg(kPi>v~e{-a=wZ|>d-Kt+{}`OCTWnat<2#yX-%G#WL=RZ}ET3Ml8-259S?1)#XB z+h70C3c#~iGXQfFv&KS|i75a=UE7Ryqh&Jbh1f+YuOgvPy`hL#i4CuSu#QBd?!5&7 z8pA69?CuHK0OMm71&|t91|T^!V*_m390MS7Q2T%=Cz!ZpMi;^2+`_sqwnh=aRiaYS zJ|;>8M*+c^E8hUH{mTX$;N?(30i^%Zij=HYy_n0b=}py%5qUwi)Lzw5r3 zDD;0y1XqE--7>MBGr_Lx3?(>f&vnKnj$*7 zG)Id7Sex{KQn_pcj9f|r)#G|w-%hjb_{Ndmh|&LSIB&Ga9ybB5V*NjUXV_n-CVlrC zx&HtNfCBY6nRhAQ2taJ>A^;_)q!9*>^!6ANg-Ms;qQ~yPp)lUsZ2@rM=aatU9t}VB z?HA?+flxpJG&Gd}$Rt~gTIl*Yv-arvDOA(K61{F~*Wo~P2LOEsbi3Nw7Ut6}zX7nA z)$5c~x(bfBw*fFeodE)%zz4OE71Om)c3hw7;#ApDq{EoFxOv%V4-A?$@3w>5;{8F%H;>}vozTmCf0OJ>eEaeHQ7 zpW#!#XeCo)mI8R=+$#nKi^jd;pH!X0ytbe3e^}E81XlqoUXVu{pqOh^0EdoBzw-Sb zNur9J?csY%3ZVCU8NQl&jJwDeiH~Dm5L^Y;Kmmj;oq0PFW__PYmkl4;wpT}y`Ltwe kU45SKH}lM=!iHDiJtuZe>%EzWLjV8(07*qoM6N<$f~)PxE&u=k literal 0 HcmV?d00001 diff --git a/Gores/Viruling3.png b/Gores/Viruling3.png new file mode 100644 index 0000000000000000000000000000000000000000..f3fd3a073ff8748cc0adc8713b9ef2986d37e12c GIT binary patch literal 471 zcmV;|0Vw{7P)uc0004=NklYF%^qNX*66O1C!TFV0NU0-c{>7V^2! zSvz;83u`YwBpwWxPJ)TbBq&_{mazA>=pbS}eOe6+5F#1zOk_sF|DqIkGF$x>Jnogj z{DYO$0Ij97;M3AuP+xxoYO#I#?o}V!xh$(KpZ0LF6#H`S1p4*28Rd+F^EfTG`&sia0`u`~eR%ZKW56AkF{) N002ovPDHLkV1o11*unq+ literal 0 HcmV?d00001 diff --git a/Items/AbyssItems/CloakingGland.cs b/Items/AbyssItems/CloakingGland.cs index f33b552236..0e973e99db 100644 --- a/Items/AbyssItems/CloakingGland.cs +++ b/Items/AbyssItems/CloakingGland.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items.AbyssItems item.width = 26; item.height = 26; item.maxStack = 999; - item.value = 3000; - item.rare = 3; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 3; } } } \ No newline at end of file diff --git a/Items/AbyssItems/DepthCells.cs b/Items/AbyssItems/DepthCells.cs index 6081e51df4..21f87db438 100644 --- a/Items/AbyssItems/DepthCells.cs +++ b/Items/AbyssItems/DepthCells.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.AbyssItems item.width = 26; item.height = 26; item.maxStack = 999; - item.value = 10000; - item.rare = 3; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 3; } } } \ No newline at end of file diff --git a/Items/AbyssItems/Lumenite.cs b/Items/AbyssItems/Lumenite.cs index 1be1a07380..dfbc77b1d6 100644 --- a/Items/AbyssItems/Lumenite.cs +++ b/Items/AbyssItems/Lumenite.cs @@ -29,8 +29,8 @@ namespace CalamityMod.Items.AbyssItems item.width = 26; item.height = 26; item.maxStack = 999; - item.value = 10000; - item.rare = 3; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 3; } } } \ No newline at end of file diff --git a/Items/AbyssItems/LumenousAmulet.cs b/Items/AbyssItems/LumenousAmulet.cs index 18a053234d..b71fbfef95 100644 --- a/Items/AbyssItems/LumenousAmulet.cs +++ b/Items/AbyssItems/LumenousAmulet.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.AbyssItems { DisplayName.SetDefault("Lumenous Amulet"); Tooltip.SetDefault("Attacks inflict the Crush Depth debuff\n" + - "While in the abyss you gain 15% increased max life\n" + + "While in the abyss you gain 25% increased max life\n" + "Provides a moderate amount of light in the abyss"); } diff --git a/Items/AbyssItems/ReaperTooth.cs b/Items/AbyssItems/ReaperTooth.cs index b9888ba420..a703dd1086 100644 --- a/Items/AbyssItems/ReaperTooth.cs +++ b/Items/AbyssItems/ReaperTooth.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.AbyssItems item.width = 26; item.height = 26; item.maxStack = 999; - item.value = 100000; - item.rare = 8; + item.value = Item.buyPrice(0, 6, 0, 0); + item.rare = 10; } } } \ No newline at end of file diff --git a/Items/AbyssItems/StrangeOrb.png b/Items/AbyssItems/StrangeOrb.png index 7e552ad1b105e6955061d595f1d538762c1a95f9..2debd5f5995471b0d298cc3c0f5830e1f1d7fb01 100644 GIT binary patch delta 256 zcmV+b0ssE27n}l+B!A;cL_t(|+GAnB0cJ$m{KqDK^1%x*J^$DpMr`sd3{(azxLjuC z%L(QSs>`9sTixV@G5=$8DeYV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9dm`4cXeX4c}I@?e+FW+b@^R zDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i&_B8C(+grT%{XWUQ z+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?SIDu(gXbmBM!FLxzyDi(mhmCkJc;e zM-ImyzW$x>cP$Mz4ONYt#^NJzM0w=t_X*$k9t}F$c8q(h;Rn+nb{%IOFKR-X@|s4Q zQ=0o*Vq3aT%s$c9>fU<%N829{oHRUHc}nwC$!Xf@g42^{^3RN&m7RTlF8SPG+oHC6 z=YM0)-)awU@466l;nGF_i|0GMJI-A4xODQe+vO8ixL2C5I$v$-bm~0*lhaSfyPUh4 zuDM)mx$b(swR>jw=^LIm&fWCAdGQwi*43UlJ>9+YdT;l|_x0Zv-F|W>{m#p~*>@-I zt-MdXU-UrjLD@syht)q@{@mE_+<$7ocYmPs(cDM(28Dyq{*m>M4?_iynUBkc4TkHU zI6gT!;y-fz>HMcd&t%Ugo)`Y2{>!cx7B7DI)$7;J(U{Spm-3gBzioV_{p!H$8L!*M z!p0uH$#^p{Ui4P`?ZJ24cOCDe-w#jZd?0@)|7iKK^;6KN`;!@ylm7$*nDhK&Gk-1H z0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F}0002jNkl1_pLXcB~rY&3~mB7#J8BV$k%#TuS{gOtex#aTz)=D@a1&e|WH; zfq{X6;pg+8Si_WdVR-w_FYGEN%tLW0y35e@(awc1psK=#!dDAWWME)mV0d|a2a3yZ z0ouC|7A7#4!oqCN(g#EtNV~iYOY!Ck5?I3$mrqVUc)>v1oPw*gfw>eHKp%G*{mR2Z cS7HMO0E}K@Md*mPPXGV_07*qoM6N<$f+%^A`~Uy| diff --git a/Items/AbyssItems/SunkenStew.cs b/Items/AbyssItems/SunkenStew.cs index 6a103291ee..a22fc85053 100644 --- a/Items/AbyssItems/SunkenStew.cs +++ b/Items/AbyssItems/SunkenStew.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.AbyssItems item.consumable = true; item.buffType = BuffID.WellFed; item.buffTime = 216000; - item.value = 10000; + item.value = Item.buyPrice(0, 2, 0, 0); } public override bool CanUseItem(Player player) diff --git a/Items/Accessories/AncientFossil.cs b/Items/Accessories/AncientFossil.cs index ae8a9287f4..b77190e189 100644 --- a/Items/Accessories/AncientFossil.cs +++ b/Items/Accessories/AncientFossil.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories item.width = 26; item.height = 26; item.value = Item.buyPrice(0, 3, 0, 0); - item.rare = 2; + item.rare = 1; item.accessory = true; } diff --git a/Items/Accessories/AngelTreads.cs b/Items/Accessories/AngelTreads.cs index 1d7def2f8e..f6d962eb5d 100644 --- a/Items/Accessories/AngelTreads.cs +++ b/Items/Accessories/AngelTreads.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Accessories player.iceSkate = true; player.waterWalk = true; player.fireWalk = true; - player.lavaMax += 420; + player.lavaMax += 240; } public override void AddRecipes() diff --git a/Items/Accessories/ArcanumoftheVoid.cs b/Items/Accessories/ArcanumoftheVoid.cs index c8b0b4bf55..6a0a94d36c 100644 --- a/Items/Accessories/ArcanumoftheVoid.cs +++ b/Items/Accessories/ArcanumoftheVoid.cs @@ -24,18 +24,8 @@ namespace CalamityMod.Items.Accessories item.height = 26; item.value = Item.buyPrice(0, 60, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index 0c99816098..9c0738fcd1 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories "Press N to activate buffs to all damage, crit chance, and defense\n" + "Activating this buff will reduce your movement speed and increase enemy aggro\n" + "10% damage reduction while submerged in liquid\n" + - "Increased defense by 10 when below 25% life\n" + "Toggle visibility of this accessory to enable/disable the dash"); } @@ -34,18 +33,8 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 90, 0, 0); //30 gold reforge item.defense = 10; item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void UpdateAccessory(Player player, bool hideVisual) { @@ -69,7 +58,6 @@ namespace CalamityMod.Items.Accessories player.buffImmune[mod.BuffType("BrimstoneFlames")] = true; player.buffImmune[mod.BuffType("HolyLight")] = true; player.buffImmune[mod.BuffType("GlacialState")] = true; - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.25)) { player.statDefense += 10; } if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { player.endurance += 0.1f; } } diff --git a/Items/Accessories/AsgardianAegis.png b/Items/Accessories/AsgardianAegis.png index 652538ff9d8de7808ace5a771e24c560590e0fc9..ecb50c3ce143ae2eec5fbbe5cdb999e0ac4a9604 100644 GIT binary patch delta 1863 zcmV-N2e|mR9L*ykiBL{Q4GJ0x0000DNk~Le0000k0000u2nGNE0D?Bkv9TeZ3V#Op zNkl3$g6vuzBwJq&TTR^%}YFS!r3jzf}2%^wnO%zP3L_r8(6pXScxDX;* zVgsw^SdDYRBmdkp(Z&J09RSH z4N%vqoglGyKLDBChMC(@cM*X7mAicQmyy_4;A|IVJU>x)K-!}+Er4_NO*TO1@DS^2 z6AwJZRZa~}1R%|G8Gy#J8UQN7qiuku^W^}fru8upQsfos)U-YT96I=y4Sx{ap$h=L z!!KI^SskJQINwkQz_Ho}ZY;!A$J0E5$e>iW4Y1=-yamv-^-lnvne`q3?=N`PZjF3h zQ#}AFJu(fXTfGlJT;fmw#wI1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VjrIjaRosawD?cPwxUS{9qzw z$K2xw&+Gk2{uuwBqLhxLD@u6UnzRX78DHiTaYY3yIX4>MI4WK!BHo^9ynmG_5$o&G zi1>+&pG%%L|72(~Q*LdZW;^1AX)=oTUi7OLGwUzo3rW$ZFQ`OKZx@oLZOV!poVaK9 zGs&1cVG>*4G1C{uy=#Kt+NeoLRwg1D%CxbI1x;Gcmgk3wA*JZ_k2R|I5*<>iF=M{q z<@)l{sGY8EG;{r*_GSRGdVdEra;*hL0PKvaOpX-&x-7~Ay54@xjwjY)H2#^ zuM8z}t44Y4&0ai7ipXqLwX!_-hUr(`ip*6n(EB! z92cH5)31*o0BG(#1Hg-xBmjF3VOHdxna0d)tMAnBslEsR1MSZM*tfq#)0>@-Yu^_9 zn-W>s%33Y}gNZc&W|rRra6P{PfU)sco>daYjvTK&0l@9o!)n|_DFAanR{_Xg8VTv$ z)9id)%T$HMZ8pHnoqs0^)UktlB|eUKh3>SEIYgzsdQs^oobmkT4G&Q>3KW&JTjqJ& zP4Mf|C(Twb*S2ZT^4>gyL9Vq?>txkRPH{#pmO)~ zVpSWQpH{U&e?`QS+O#9y6k?(qb=Zjbxg(EMT+PW=w5}*yjon)i;_GugetW_HLo92X zdcEJSh^>m33(3lyY|BM;%d&lJ)McyMy+D6O#1fBBXPcq3(SHK~K48Zl#I%(e00000 LNkvXXu0mjfuw=}U diff --git a/Items/Accessories/AsgardianAegis_Shield.png b/Items/Accessories/AsgardianAegis_Shield.png index 463df651271199fbcbcc181a17b02313444feca2..cc76866851c39250ca23e605e0d087f8fdf5eea3 100644 GIT binary patch literal 3805 zcmai1XIPV27G_)^NDG1pE=?eSND~8wY7F8sp^hL(5oADvv=G365FsmJK#ITsiV%u3 z(whXNFERmXN~qFouzJ@biTlycpN)-2h;{wImXZT zu}Tji^i@IC>=!rD$@V#D(hr(k9xkS4vHR~t-KjPgjg?P4kBNxp7HKGhCEk?t;PE@p zk#l-l{qc|eqM8Ocf;yqnEh05Dwes!AlK#Z{r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=93O-a zw%yxmCJ4$qBYMuV!zb*bsxEX!p*Z6<;?di6pZN>cJl2^u%dPr7uS2b38+wXUW46 z{#e9dZJSn5>**c*DxlXz_arUd3QTu2BGySKW{LNA{7>W7cTzqD_uDAYDWDH;g7*V$ z>StlO9jvzwUF-9SVbw_%C5VzH;^O(!UMw5`70H>8I3f|rKTS~+E$F_IP^~19yIcXm z=TvIhL*G*3-Rdh0*CR?H_*$zB7Z(oGrKk5l9&g-9ys(zz{}^hsNibW~zyxnhj+;qg zNd&Cy;#?9aR35e4)D%npog zBOp!9L7Q%ZV{U*TGU7>_1b|-nM-5+)eEdz{NO)T?FAcF0sTV(e|9`1XK7yG2LaTMA zQC!7Hb3@=j$<2QLc*J~Uf!n^mQZc8_WW}&0DYC5m9gjcz%HF0DoFG6K|69Oz4q!_$57%wHZ&@zHiuWjHsUnM1pk$tj h)_sTaFW&_ATWw8 list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/BurdenBreaker.cs b/Items/Accessories/BurdenBreaker.cs index 0cfdb925b4..2a68a2154b 100644 --- a/Items/Accessories/BurdenBreaker.cs +++ b/Items/Accessories/BurdenBreaker.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { player.lavaImmune = false; - if (Collision.LavaCollision(player.position, player.width, player.height)) + if (Collision.LavaCollision(player.position, player.width, (player.waterWalk ? (player.height - 6) : player.height))) { player.GetModPlayer(mod).KillPlayer(); } diff --git a/Items/Accessories/CelestialTracers.cs b/Items/Accessories/CelestialTracers.cs index 8902d0ffb2..02806a5166 100644 --- a/Items/Accessories/CelestialTracers.cs +++ b/Items/Accessories/CelestialTracers.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(1, 20, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override void UpdateAccessory(Player player, bool hideVisual) { @@ -73,7 +63,7 @@ namespace CalamityMod.Items.Accessories player.iceSkate = true; player.waterWalk = true; player.fireWalk = true; - player.lavaMax += 920; + player.lavaMax += 240; player.wingTimeMax = 280; modPlayer.IBoots = !hideVisual; modPlayer.elysianFire = !hideVisual; diff --git a/Items/Accessories/ChaosAmulet.png b/Items/Accessories/ChaosAmulet.png index 23ed2a3e96eb8464a9efbf65d0378eb2aa22b4e4..7a2a18356ce90b740902803aa38c31e783d440f6 100644 GIT binary patch delta 620 zcmV-y0+apD1B3;TBYy%*NklMs1ekHwNMXI@CT@W zLBXqd6tCX=1N;ZP2)%jhK?wcBiK;W-gC? z^JeC|^S(3l6hp%71^}_c7=Ir{5`B>|k$r&jg=qjT z&Q66IuC06oz*=ARjlJsEM~1i;WwKleAl-tcu>~9)DG-DUtDD2>9c<$7XJQ^-0OU1 zVTexrjYK>%bAJPXc1vGozF6Y%i#H>KD~XUVmc)S%aBKbn087=^y|ZQw)#r;P)ej(g zR!AffsjS|?L=phkbwc%GA9=6nuRP#j&yWg}3LN|%dv{aAczi6TbGqMke1H>f3V=>x zPxQ*@L+!`XD*_WElg%oCl&!Df(Rux6ufCcb7BT?rcYmD0NfU8*OLpS`I57_hRFuvw zI=6FI3I?$@-0Ik&6)66qM4a$-q+maiNix6d2KFV_)pYQ@um*Ei(ee1|#FP*4^8PFU zm+zcAlA}-Wz5(#$?FtYj;)m0704z7{03YK;&4S7wy?yiKDFEL8{sllIqxtQ%?101T z6NQL*yk*?f5uKQ;^y=yNg?TU3TeSe<`gR+D+}TS2SfJz1f(@`~L?30000ITCMRMa;GyWsxC)5HWZ1G;*c%i%7jxxp1( zjbN8{l+|MmJD4|M4#A}!!^Jc+7?v7v#WuQ&ajC~}G1U!5cYg`4*v1vfM5p6XgW`Jvj(BqV3=27E(qw#MJbQx>f3_(-50Ne=~8`7 zFr9qyFqnoFvws`PCZhy5Bh3w-mkM!7(rk#!VBpZfR50_-k|SVRCB_C!+u6@XQHQP{ z?qaGN46_y%B(N~_orLN#n9E@16b;TrwXbYjNU-`xaJ_(1?VnB4=Qwd z{t$bxK3HAJNOObHt0MFa0ta8YX+D+E^(MSINNUM f3eYVk)?fgLyo#cMO#2f60000 list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/DiscordianWings.png b/Items/Accessories/DiscordianWings.png index 724f184a9195ff34f1b796052981794e5d4c58f3..810d842519c813ec667faf8888cd139428442e46 100644 GIT binary patch delta 618 zcmV-w0+s!i1oi}w7k?lK1^@s61whDu0006#Nkl#Pe>F|9LGN+?YbuDDy3k? zmIR6#6kZl=4|xnPK~NCZDZGg!1YQIWUIZ_J2dj%gu!jXNT_s{S*h{d`8UyHn_5qOHNCV*WHvw=^$^+0JG3!BM zB?f>$&CfRUClZGm`+keEh<8-sr?#0N%&n z0#=sm^7RN{op0G0sROQhEYFJ9_Z|!Y)#ReZ?b>c8Qp1J($-`;D zi|1HKmmWow_EfkBfN*aZsLp;F|NQA10E@q~S(p1Bhnmc)eal8r`m3dPl{%R&>@M0N_ihpyYr^C)IaCawU`7 z1H446%c-&np-3l{KN2VXKg6}FvoT-*>=X;Oao32C05w9`3tw$f=Kufz07*qoM6N<$ Ef_iu+#{d8T delta 522 zcmV+l0`>j&1eOGl7k?%Q1^@s6(-|vb0005qNklY5Y3gTA`(PQC1?={ zrZRqDV=0J*3MuRa1%H6SPV7W~LLi-mpjLvVpn@8!h!8=+Dq?YnsZuJ;)l{J$wBAqT@%In1PlGxj$W3gZc#+tt)^>b-o=y8xL8Ft!fN)d;Oq>5RBGO6xxsEVM_4Q2ng6%D88M5eS&G z=Bz0))89V3G4s%jBM0Wrg>9v!Uh7PlM`qsJr`4w05Pz4tkMUvTzyQ)3NhfCP=RN?< z1B|T$a{w4adoA@^MtJ|LjI9GR13m_$wQ5XRW2{353w`yp2CQX3J2GK?z3RPPyG^mU zeTHUi9hffwQ|XiuQ?}p@SIgeHoFCjif6drBaM(_!-LJc5{8!*FH3ft&PlIvl00000 MNkvXXt^-0~f_OXkTmS$7 diff --git a/Items/Accessories/DiscordianWings_Wings.png b/Items/Accessories/DiscordianWings_Wings.png index 32e387a8c1fe42afdc5099fcbd0a19a522f9b38f..5bb88eb5027ada8c38023ac299d69ed9d09a8373 100644 GIT binary patch literal 3414 zcmYjUcT^ME7k=!zibzoqTsn#(tbi*eh%^^aN+^Q#ss<7y3GpYGpb)@@iwnAlfDl4k z0g)0zhtR|o5E7c0kOtO(bPX+H;5T~qoZUa>%{w#qy}9q+@B8kZlv8dFGEyp1000>$ zM|)4`?gL$Gl3Sq>e|*<@=()O+{cm2ed2{5@)F5y5o{q*@455*46GMO(!HW#Uh?0G# zS5KBW#tz%t{;qPp)VlnLN9voaH@3wOZBx)pJ@UEh`r*G#PRbPPSpNK1lGgJi*a63? zIz>)E1hmN$8lR7kKe|pPuXE$(tq910*_L>l!!OCrt90@_Dq)pZJDDJ-bz`Tkb|?s0i4`N!^72P z#pQM+2LSdAw6XFi0KT%g1gn`2=&Oi(pTwn{OW=V z0BZ3o2f!Z!d2avI^hdbT9l7H|LEo5TU6t?g)3_#)59n;*zBGLq;xRl*-UdT8I7FK* zL9p0!a1!X}_KEXvpeGB@PcX-8%R>J8WFS)NA9J*)P(zy-!J^jqjdSz$ap^_xLkG!D zV#{OZB+z*VhpMMsvXJjm6R^7n!lbIznVXh}v zD3;S)3!1*1`<0#&ZD4MwteP^_9knq1)04VQe`Zi%AbY&G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#Bl3XEsY0*}aI1_r*vAk26?e?qM&&cqjLgrLp0h8qE;uum9_jXoe(QE?&R_SEnSO5RV zf1kEo+Q6e>_NxWPw`Q_T*fDkDhU9xsuCM0u%{Ezkaf{n!Dc|gzto=P(ek*Q_YKf2k zUhTJf-&@ATTenBwU;b<2l|)|RDBNPRzc=xP)wjlPZ#z4#E}Bpx zG2xsf+sgHeOEZnuPOzFgM=^@~UaroNaZ{PL<9_c>Gp zUmMg&hhJLs!FwLdC8b)Mb<13v4lQpmE9pOePvl58<3ha(q19izq9&yHZ+@cl_CC~C zaPOI{60dSB`EakseY*7MbRxsG-K?< zJL_WoS{DAhGC|SpG_!qUr;~|VVx-^wIvI)OtiCM58+b0gP?SkJab=34)9J&Tw{*y6 zmaw@S@W&S)$(UT+CRQM~b=gI;CC@Ww@`dm$SP^>h!nebvJ!MgwI72eO_v#k*e5;k} zSbk}pXG8b*ZJW2+@oG(RQwrB8SzKOy@zItC(>vJy-pJHQ`1~*^xlQA((S{oRYXTYD znGZ^=J+k7otNWqT7HdyM%(}9r!Fb!!!l;0UaWBOt-kN_I5|waIi)^*&_#sx4|K^Tr zn6+z8i>Tb16<<57oLp*nfT>n%MzZq|FBXa0Tk+(0BL8=dyEJyrODtA1QVw-+%TXCinPZQNgHv8lTtuzfX+fYt!MET3BkRC}nsm zti?^gcByLLrB5$>)*KVj_~AX**rJ)!s-!ve%BO}kr=KfbTtB^cgVWz#iou_y1ET^I ze_Zmp;GW|e!}>g1PqvI+W^~UWlGi0MpGb{@lJ#=5BF>CG>&A2 list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override void UpdateAccessory(Player player, bool hideVisual) { @@ -55,8 +47,9 @@ namespace CalamityMod.Items.Accessories recipe.AddIngredient(null, "HeartofDarkness"); recipe.AddIngredient(null, "StressPills"); recipe.AddIngredient(null, "Laudanum"); - recipe.AddIngredient(ItemID.LunarBar, 30); - recipe.AddTile(TileID.LunarCraftingStation); + recipe.AddIngredient(null, "CosmiliteBar", 5); + recipe.AddIngredient(null, "Phantoplasm", 5); + recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Accessories/ElementalGauntlet.cs b/Items/Accessories/ElementalGauntlet.cs index 141ff473fa..5881823117 100644 --- a/Items/Accessories/ElementalGauntlet.cs +++ b/Items/Accessories/ElementalGauntlet.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories Tooltip.SetDefault("Melee attacks and projectiles inflict most debuffs\n" + "15% increased melee speed, damage, and 5% increased melee critical strike chance\n" + "Increased invincibility after taking damage\n" + - "You are immune to lava\n" + + "Temporary immunity to lava\n" + "Increased melee knockback\n" + "Melee attacks have a chance to instantly kill normal enemies"); } @@ -28,18 +28,8 @@ namespace CalamityMod.Items.Accessories item.height = 38; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/ElementalQuiver.cs b/Items/Accessories/ElementalQuiver.cs index c7fce59f1e..da6600030f 100644 --- a/Items/Accessories/ElementalQuiver.cs +++ b/Items/Accessories/ElementalQuiver.cs @@ -26,18 +26,8 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/ElysianTracers.cs b/Items/Accessories/ElysianTracers.cs index ef616921eb..a2399045fe 100644 --- a/Items/Accessories/ElysianTracers.cs +++ b/Items/Accessories/ElysianTracers.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void UpdateAccessory(Player player, bool hideVisual) { @@ -72,7 +62,7 @@ namespace CalamityMod.Items.Accessories player.iceSkate = true; player.waterWalk = true; player.fireWalk = true; - player.lavaMax += 920; + player.lavaMax += 240; player.wingTimeMax = 160; modPlayer.IBoots = !hideVisual; modPlayer.elysianFire = !hideVisual; diff --git a/Items/Accessories/EtherealTalisman.cs b/Items/Accessories/EtherealTalisman.cs index a55d76a01e..d598b01636 100644 --- a/Items/Accessories/EtherealTalisman.cs +++ b/Items/Accessories/EtherealTalisman.cs @@ -28,18 +28,8 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/EyeoftheStorm.cs b/Items/Accessories/EyeoftheStorm.cs index b6fa077cb9..40594d7f24 100644 --- a/Items/Accessories/EyeoftheStorm.cs +++ b/Items/Accessories/EyeoftheStorm.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Accessories } if (player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("CloudyWaifu"), 45, 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("CloudyWaifu"), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Accessories/FrigidBulwark.cs b/Items/Accessories/FrigidBulwark.cs index 46ccedc37b..e45239cf28 100644 --- a/Items/Accessories/FrigidBulwark.cs +++ b/Items/Accessories/FrigidBulwark.cs @@ -33,32 +33,8 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - player.noKnockback = true; - if ((float)player.statLife > (float)player.statLifeMax2 * 0.25f) - { - player.hasPaladinShield = true; - if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0) - { - int myPlayer = Main.myPlayer; - if (Main.player[myPlayer].team == player.team && player.team != 0) - { - float arg = player.position.X - Main.player[myPlayer].position.X; - float num3 = player.position.Y - Main.player[myPlayer].position.Y; - if ((float)Math.Sqrt((double)(arg * arg + num3 * num3)) < 800f) - { - Main.player[myPlayer].AddBuff(43, 20, true); - } - } - } - } - if ((double)player.statLife <= (double)player.statLifeMax2 * 0.5) - { - player.AddBuff(62, 5, true); - } - if ((double)player.statLife <= (double)player.statLifeMax2 * 0.15) - { - player.endurance += 0.05f; - } + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.fBulwark = true; } public override void AddRecipes() diff --git a/Items/Accessories/FrostFlare.cs b/Items/Accessories/FrostFlare.cs index 2dd4bfa057..71979dfb6e 100644 --- a/Items/Accessories/FrostFlare.cs +++ b/Items/Accessories/FrostFlare.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories "Immunity to frostburn, chilled, and frozen\n" + "Resistant to cold attacks and +1 life regen\n" + "Being above 75% life grants the player 10% increased damage\n" + - "Being below 25% life grants the player 20 defense and 15% increased max movement speed and acceleration\n" + + "Being below 25% life grants the player 10 defense and 15% increased max movement speed and acceleration\n" + "Revengeance drop"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 10)); } @@ -38,22 +38,6 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.frostFlare = true; - player.resistCold = true; - player.buffImmune[44] = true; - player.buffImmune[46] = true; - player.buffImmune[47] = true; - if (player.statLife > (player.statLifeMax2 * 0.75f)) - { - player.meleeDamage += 0.1f; - player.magicDamage += 0.1f; - player.rangedDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.minionDamage += 0.1f; - } - if (player.statLife < (player.statLifeMax2 * 0.25f)) - { - player.statDefense += 20; - } } } } \ No newline at end of file diff --git a/Items/Accessories/FungalCarapace.cs b/Items/Accessories/FungalCarapace.cs index c9d2f578a1..264df94a9a 100644 --- a/Items/Accessories/FungalCarapace.cs +++ b/Items/Accessories/FungalCarapace.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Accessories item.defense = 2; item.width = 20; item.height = 24; - item.value = Item.buyPrice(0, 9, 0, 0); - item.rare = 1; + item.value = Item.buyPrice(0, 15, 0, 0); + item.rare = 5; item.accessory = true; } diff --git a/Items/Accessories/HadarianWings.cs b/Items/Accessories/HadarianWings.cs new file mode 100644 index 0000000000..311a9095f7 --- /dev/null +++ b/Items/Accessories/HadarianWings.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.Graphics.Shaders; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Accessories +{ + [AutoloadEquip(EquipType.Wings)] + public class HadarianWings : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Hadarian Wings"); + Tooltip.SetDefault("Powered by the Astral Infection itself\n" + + "Horizontal speed: 9\n" + + "Acceleration multiplier: 1.75\n" + + "Good vertical speed\n" + + "Flight time: 60"); + } + + public override void SetDefaults() + { + item.width = 24; + item.height = 36; + item.value = Item.buyPrice(0, 39, 99, 99); + item.rare = 7; + item.accessory = true; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + if (player.controlJump && player.wingTime > 0f && !player.jumpAgainCloud && player.jump == 0 && player.velocity.Y != 0f && !hideVisual) + { + int num59 = 4; + if (player.direction == 1) + { + num59 = -40; + } + int num60 = Dust.NewDust(new Vector2(player.position.X + (float)(player.width / 2) + (float)num59, player.position.Y + (float)(player.height / 2) - 15f), 30, 30, mod.DustType("AstralOrange"), 0f, 0f, 100, default(Color), 1.75f); + Main.dust[num60].noGravity = true; + Main.dust[num60].velocity *= 0.3f; + if (Main.rand.Next(10) == 0) + { + Main.dust[num60].fadeIn = 2f; + } + Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player); + } + player.wingTimeMax = 60; + } + + public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend) + { + ascentWhenFalling = 0.8f; + ascentWhenRising = 0.155f; + maxCanAscendMultiplier = 1.05f; + maxAscentMultiplier = 2.55f; + constantAscend = 0.13f; + } + + public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration) + { + speed = 9f; + acceleration *= 1.75f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "AstralBar", 8); + recipe.AddIngredient(null, "HadarianMembrane", 10); + recipe.AddIngredient(ItemID.SoulofFlight, 20); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Accessories/HadarianWings.png b/Items/Accessories/HadarianWings.png new file mode 100644 index 0000000000000000000000000000000000000000..cbaa2fc603ec429928942713bf27ecf025b6f9bc GIT binary patch literal 504 zcmVk&qr_d4h`RW`S?BJ=kHJYY&2HVtqoi52$7VdXS)px00U$Sm@rS z3q<(@!v}P;02U-LA6z~C5zKsZ^$D1M*D@7vVtVrG64>!LeLyn{V9r7hsz1wDqPRHT zHw4UQm6bse|NR)^!-bpIfN7kmh~^f+oFyZs2hPd!kL?EwC0aRxX)#?>ym9dA@@f1& zpt%L;F28kP9oWvf%TIvmU?u@DZSnUZicd~3%cJmd#sSSNfEirbmJ4>t>nF@$deh;f zC@zON6XpX0X_P{j;lfjh+cA7VGYg0{I78wAN*Kdj>XgI<7Js+%E11Uc0o^TtrIzmh zkTM88jD_5}QCy79C+GvJSwJXg(0u@NDJ&vjVUF$t;l*nqr77Jlz?D;BsRVBUgp`VK z`haE@q+}If&9Sg_j~@28d;*IT3?Iq)6jPLl$^ZZW07*qoM6N<$f&c)Fr`T}- literal 0 HcmV?d00001 diff --git a/Items/Accessories/HadarianWings_Wings.png b/Items/Accessories/HadarianWings_Wings.png new file mode 100644 index 0000000000000000000000000000000000000000..b7d1c331610e15cf5392e6c650636162ad974dbb GIT binary patch literal 2031 zcmVWBC;+jup(~^ zVfP|r$%-Xfkjkz0#!^=O`g2VvFoF<+ne!~o^XS>HoKwdVN<<$+yf^ed!OA0LU1yVsMSI%*o+nW*f?cb^}@&1EL3D z;HCSFr#P34kp6Pagf#fPU|ojR9c5ipDat|JnGM*~0Swo@tu>&%ZtDFs18a z02mM*0Pr#RG%UxxzyoX7I}8{a*z8!oe{hr8=NM4b_e+lf34ja%Fkr_kPn#oqcD`Y@ z`)^%kwnIN0x7*C}7#}QeEH}rQ0ousX=^{LKN*@U(0J5>X#sEZr_Q~2-%mAquz({fBop(9ofp+x< zr7<7@phW*QH`$4vzQaG7EsqGd_4S+MZ%vHO8Y8-n0XzVT76ABu&!g`Y}21E}4hF?W3#%()EJ`RW$ zfY7md)#XZKK-CQiy7Fax3mfGN)+sCLcN_%eiNit=iRax)-W z0MKw)eB{M1jFI4b=U;x)?1wUd*9G!2V99NE75VJ&!=dzq&|$&G z`NjxPeK8YYA@mxs9QtqgJYoX+b0|mH!YB_V3C^#*Xk!v9P??cng2;eq0no%vKz!%W zv_bm(;R|L91{`_sZ^r^`Iqb6rNYe;$JU@X${eyM^c+70QhI{;>JY-CSG#tb|#>GJmWMoCm1~d@Eu-pxpCbMvoe8~ z$5CEeh1GmC^t>d|(I$9WW`&~%06%jvcZPX=X2PbQ_BqCaPJk`gZbnGVgGTAxq|G`5 zodRd0k={O^83-i+ve{Q@Wo4w#uF+w2`1qC`W*?dy950$LP>KaC%3_P7oMd@S?eSb; z3j?AB00_br7zmu_H9uZI2pu>0YJ_-1$2rHO^$cEzKzmw#3`GwBkiq=BwARMH$|EhD z*BHUwua+xB>)&x-tYl$dT8|Ka4o43Fko)7Yhn=-K9Ou_?Nl*{;0jv;#K7g6V zdO(~3_yP#VuyRAv2=TJKrVP=1o}W|g z1*C>W4*&;8^a>0ZERJ!5G&0Mp5zA{czP{Hf*Az!_9f<*<$knA> zVnAIi8QPA*47l8BbkOk7=STqLr4A$ADS3oKpCdN|q6MJrBr18Ci0fG~!e67qb&_h$ zn*j*`$|8f0ry-Y!rtHux?5h#tdQgsa1HKuhf*BAU0PJ)8^*GM_;HwQny=CPQ(lSbU zGavzwA;1Y1-aRmG&U8v1p}b$G3uXX5o)!%NT2dAE<;#^v2s#7bFH?ClAORqJIf@f3 zNcnrfkap)0LN*yzocMm1D3}3wsVV`GeG`oH3bAgGM{q^+2(dDhm8+FAptb;LiIw1k ztQ_TiFaVZf^|q!F@>PrR*Xy+2K#c(j0Oh-ZoKJ{-9l6Dd<`0s7O+w5KW{7Y0I$A82LR91NN-@4ZOO9gS7Si*004Pyj;|~Wm0hpOfVu6y>tKo literal 0 HcmV?d00001 diff --git a/Items/Accessories/HeartofDarkness.cs b/Items/Accessories/HeartofDarkness.cs index 1ce2a526ff..6c6ae6084a 100644 --- a/Items/Accessories/HeartofDarkness.cs +++ b/Items/Accessories/HeartofDarkness.cs @@ -15,6 +15,8 @@ namespace CalamityMod.Items.Accessories { DisplayName.SetDefault("Heart of Darkness"); Tooltip.SetDefault("Gives 10% increased damage while you have the heart attack debuff\n" + + "Increases your chance of getting the heart attack debuff\n" + + "Rage mode does more damage\n" + "You gain rage over time\n" + "Revengeance drop"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 4)); diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index bcca46495d..d125c8f599 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -21,9 +21,9 @@ namespace CalamityMod.Items.Accessories "Increases damage reduction by 5%\n" + "Increases max mana by 50 and reduces mana usage by 5%\n" + "You grow flowers on the grass beneath you, chance to grow very random dye plants on grassless dirt\n" + - "Summons all waifus to protect you\n" + - "Toggling the visibility of this accessory also toggles the waifus on and off\n" + - "Stat increases are slightly higher if the waifus are turned off"); + "Summons all elementals to protect you\n" + + "Toggling the visibility of this accessory also toggles the elementals on and off\n" + + "Stat increases are slightly higher if the elementals are turned off"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 8)); } @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 60, 0, 0); item.defense = 9; item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override bool CanEquipAccessory(Player player, int slot) { @@ -91,23 +81,23 @@ namespace CalamityMod.Items.Accessories } if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("BigBustyRose"), (int)((float)damage * damageMult), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("BigBustyRose"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } if (player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SirenLure"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SirenLure"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } if (player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DrewsSandyWaifu"), (int)((float)damage * damageMult), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DrewsSandyWaifu"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } if (player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SandyWaifu"), (int)((float)damage * damageMult), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SandyWaifu"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } if (player.ownedProjectileCounts[mod.ProjectileType("CloudyWaifu")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("CloudyWaifu"), (int)((float)damage * damageMult), 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("CloudyWaifu"), (int)((float)damage * damageMult * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } else diff --git a/Items/Accessories/InfinityBoots.cs b/Items/Accessories/InfinityBoots.cs index d465a3ce83..3845467497 100644 --- a/Items/Accessories/InfinityBoots.cs +++ b/Items/Accessories/InfinityBoots.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 60, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void UpdateAccessory(Player player, bool hideVisual) { @@ -72,7 +62,7 @@ namespace CalamityMod.Items.Accessories player.iceSkate = true; player.waterWalk = true; player.fireWalk = true; - player.lavaMax += 920; + player.lavaMax += 240; player.wingTimeMax = 120; modPlayer.IBoots = !hideVisual; modPlayer.sTracers = true; diff --git a/Items/Accessories/Laudanum.cs b/Items/Accessories/Laudanum.cs index ea4bb047f2..c34d04db4f 100644 --- a/Items/Accessories/Laudanum.cs +++ b/Items/Accessories/Laudanum.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { DisplayName.SetDefault("Laudanum"); Tooltip.SetDefault("Boosts your damage by 6%,\n" + - "defense by 8, and max movement speed and acceleration by 5%\n" + + "defense by 6, and max movement speed and acceleration by 5%\n" + "Makes you immune to The Horror debuff\n" + "Revengeance drop"); } diff --git a/Items/Accessories/MOAB.cs b/Items/Accessories/MOAB.cs index 12e6ef8799..de793afda7 100644 --- a/Items/Accessories/MOAB.cs +++ b/Items/Accessories/MOAB.cs @@ -95,7 +95,7 @@ namespace CalamityMod.Items.Accessories player.jumpBoost = true; player.autoJump = true; player.noFallDmg = true; - player.jumpSpeedBoost += 1.4f; + player.jumpSpeedBoost += 0.8f; player.wingTimeMax = 60; } diff --git a/Items/Accessories/MagicLevelMeter.cs b/Items/Accessories/MagicLevelMeter.cs index f837846595..8e83020e4b 100644 --- a/Items/Accessories/MagicLevelMeter.cs +++ b/Items/Accessories/MagicLevelMeter.cs @@ -1,133 +1,133 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Accessories -{ - public class MagicLevelMeter : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Magic Level Meter"); - Tooltip.SetDefault("Tells you how high your magic proficiency is"); - } - - public override void SetDefaults() - { - item.width = 26; - item.height = 26; - item.value = Item.buyPrice(0, 6, 0, 0); - item.rare = 1; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - int level = Main.player[Main.myPlayer].GetModPlayer(mod).magicLevel; - int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactMagicLevel; - int damageGain = 0; - int manaUsage = 0; - int critGain = 0; - switch (exactLevel) - { - case 0: - break; - case 1: - damageGain = 1; - break; - case 2: - damageGain = 2; - break; - case 3: - damageGain = 2; - manaUsage = 1; - break; - case 4: - damageGain = 3; - manaUsage = 1; - critGain = 1; - break; - case 5: - damageGain = 3; - manaUsage = 2; - critGain = 1; - break; - case 6: - damageGain = 4; - manaUsage = 3; - critGain = 1; - break; - case 7: - damageGain = 4; - manaUsage = 4; - critGain = 2; - break; - case 8: - damageGain = 5; - manaUsage = 5; - critGain = 2; - break; - case 9: - damageGain = 5; - manaUsage = 5; - critGain = 3; - break; - case 10: - damageGain = 6; - manaUsage = 6; - critGain = 3; - break; - case 11: - damageGain = 7; - manaUsage = 7; - critGain = 4; - break; - case 12: - damageGain = 8; - manaUsage = 8; - critGain = 4; - break; - case 13: - damageGain = 9; - manaUsage = 9; - critGain = 5; - break; - case 14: - damageGain = 10; - manaUsage = 10; - critGain = 5; - break; - case 15: - damageGain = 12; - manaUsage = 12; - critGain = 6; - break; - } - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Tells you how high your magic proficiency is\n" + - "While equipped you will gain magic proficiency faster\n" + - "The higher your magic level the higher your magic damage, critical strike chance, and the lower your mana cost\n" + - "Magic proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + - "Magic level (max of 15): " + exactLevel + "\n" + - "Magic damage increase: " + damageGain + "%\n" + - "Mana usage decrease: " + manaUsage + "%\n" + - "Magic crit increase: " + critGain + "%"; - } - } - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - modPlayer.fasterMagicLevel = true; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Accessories +{ + public class MagicLevelMeter : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Magic Level Meter"); + Tooltip.SetDefault("Tells you how high your magic proficiency is"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 26; + item.value = Item.buyPrice(0, 6, 0, 0); + item.rare = 1; + item.accessory = true; + } + + public override void ModifyTooltips(List list) + { + int level = Main.player[Main.myPlayer].GetModPlayer(mod).magicLevel; + int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactMagicLevel; + int damageGain = 0; + int manaUsage = 0; + int critGain = 0; + switch (exactLevel) + { + case 0: + break; + case 1: + damageGain = 1; + break; + case 2: + damageGain = 2; + break; + case 3: + damageGain = 2; + manaUsage = 1; + break; + case 4: + damageGain = 3; + manaUsage = 1; + critGain = 1; + break; + case 5: + damageGain = 3; + manaUsage = 2; + critGain = 1; + break; + case 6: + damageGain = 4; + manaUsage = 3; + critGain = 1; + break; + case 7: + damageGain = 4; + manaUsage = 4; + critGain = 2; + break; + case 8: + damageGain = 5; + manaUsage = 5; + critGain = 2; + break; + case 9: + damageGain = 5; + manaUsage = 5; + critGain = 3; + break; + case 10: + damageGain = 6; + manaUsage = 6; + critGain = 3; + break; + case 11: + damageGain = 7; + manaUsage = 7; + critGain = 4; + break; + case 12: + damageGain = 8; + manaUsage = 8; + critGain = 4; + break; + case 13: + damageGain = 9; + manaUsage = 9; + critGain = 5; + break; + case 14: + damageGain = 10; + manaUsage = 10; + critGain = 5; + break; + case 15: + damageGain = 12; + manaUsage = 12; + critGain = 6; + break; + } + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Tells you how high your magic proficiency is\n" + + "While equipped you will gain magic proficiency faster\n" + + "The higher your magic level the higher your magic damage, critical strike chance, and the lower your mana cost\n" + + "Magic proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + + "Magic level (max of 15): " + exactLevel + "\n" + + "Magic damage increase: " + damageGain + "%\n" + + "Mana usage decrease: " + manaUsage + "%\n" + + "Magic crit increase: " + critGain + "%"; + } + } + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.fasterMagicLevel = true; + } + } } \ No newline at end of file diff --git a/Items/Accessories/MeleeLevelMeter.cs b/Items/Accessories/MeleeLevelMeter.cs index acdb4abe49..b05f36a5a8 100644 --- a/Items/Accessories/MeleeLevelMeter.cs +++ b/Items/Accessories/MeleeLevelMeter.cs @@ -1,133 +1,133 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Accessories -{ - public class MeleeLevelMeter : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Melee Level Meter"); - Tooltip.SetDefault("Tells you how high your melee proficiency is"); - } - - public override void SetDefaults() - { - item.width = 26; - item.height = 26; - item.value = Item.buyPrice(0, 6, 0, 0); - item.rare = 1; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - int level = Main.player[Main.myPlayer].GetModPlayer(mod).meleeLevel; - int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactMeleeLevel; - int damageGain = 0; - int meleeSpeed = 0; - int critGain = 0; - switch (exactLevel) - { - case 0: - break; - case 1: - damageGain = 1; - break; - case 2: - damageGain = 2; - break; - case 3: - damageGain = 2; - meleeSpeed = 1; - break; - case 4: - damageGain = 3; - meleeSpeed = 1; - critGain = 1; - break; - case 5: - damageGain = 3; - meleeSpeed = 2; - critGain = 1; - break; - case 6: - damageGain = 4; - meleeSpeed = 3; - critGain = 1; - break; - case 7: - damageGain = 4; - meleeSpeed = 4; - critGain = 2; - break; - case 8: - damageGain = 5; - meleeSpeed = 5; - critGain = 2; - break; - case 9: - damageGain = 5; - meleeSpeed = 5; - critGain = 3; - break; - case 10: - damageGain = 6; - meleeSpeed = 6; - critGain = 3; - break; - case 11: - damageGain = 7; - meleeSpeed = 7; - critGain = 4; - break; - case 12: - damageGain = 8; - meleeSpeed = 8; - critGain = 4; - break; - case 13: - damageGain = 9; - meleeSpeed = 9; - critGain = 5; - break; - case 14: - damageGain = 10; - meleeSpeed = 10; - critGain = 5; - break; - case 15: - damageGain = 12; - meleeSpeed = 12; - critGain = 6; - break; - } - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Tells you how high your melee proficiency is\n" + - "While equipped you will gain melee proficiency faster\n" + - "The higher your melee level the higher your melee damage, speed, and critical strike chance\n" + - "Melee proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + - "Melee level (max of 15): " + exactLevel + "\n" + - "Melee damage increase: " + damageGain + "%\n" + - "Melee speed increase: " + meleeSpeed + "%\n" + - "Melee crit increase: " + critGain + "%"; - } - } - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - modPlayer.fasterMeleeLevel = true; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Accessories +{ + public class MeleeLevelMeter : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Melee Level Meter"); + Tooltip.SetDefault("Tells you how high your melee proficiency is"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 26; + item.value = Item.buyPrice(0, 6, 0, 0); + item.rare = 1; + item.accessory = true; + } + + public override void ModifyTooltips(List list) + { + int level = Main.player[Main.myPlayer].GetModPlayer(mod).meleeLevel; + int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactMeleeLevel; + int damageGain = 0; + int meleeSpeed = 0; + int critGain = 0; + switch (exactLevel) + { + case 0: + break; + case 1: + damageGain = 1; + break; + case 2: + damageGain = 2; + break; + case 3: + damageGain = 2; + meleeSpeed = 1; + break; + case 4: + damageGain = 3; + meleeSpeed = 1; + critGain = 1; + break; + case 5: + damageGain = 3; + meleeSpeed = 2; + critGain = 1; + break; + case 6: + damageGain = 4; + meleeSpeed = 3; + critGain = 1; + break; + case 7: + damageGain = 4; + meleeSpeed = 4; + critGain = 2; + break; + case 8: + damageGain = 5; + meleeSpeed = 5; + critGain = 2; + break; + case 9: + damageGain = 5; + meleeSpeed = 5; + critGain = 3; + break; + case 10: + damageGain = 6; + meleeSpeed = 6; + critGain = 3; + break; + case 11: + damageGain = 7; + meleeSpeed = 7; + critGain = 4; + break; + case 12: + damageGain = 8; + meleeSpeed = 8; + critGain = 4; + break; + case 13: + damageGain = 9; + meleeSpeed = 9; + critGain = 5; + break; + case 14: + damageGain = 10; + meleeSpeed = 10; + critGain = 5; + break; + case 15: + damageGain = 12; + meleeSpeed = 12; + critGain = 6; + break; + } + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Tells you how high your melee proficiency is\n" + + "While equipped you will gain melee proficiency faster\n" + + "The higher your melee level the higher your melee damage, speed, and critical strike chance\n" + + "Melee proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + + "Melee level (max of 15): " + exactLevel + "\n" + + "Melee damage increase: " + damageGain + "%\n" + + "Melee speed increase: " + meleeSpeed + "%\n" + + "Melee crit increase: " + critGain + "%"; + } + } + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.fasterMeleeLevel = true; + } + } } \ No newline at end of file diff --git a/Items/Accessories/Nanotech.cs b/Items/Accessories/Nanotech.cs index c6c8717502..b630fab2dd 100644 --- a/Items/Accessories/Nanotech.cs +++ b/Items/Accessories/Nanotech.cs @@ -16,9 +16,8 @@ namespace CalamityMod.Items.Accessories { DisplayName.SetDefault("Nanotech"); Tooltip.SetDefault("Rogue projectiles leave behind nanoblades as they travel\n" + - "While holding a rogue weapon your defense is boosted by 15 and your damage reduction is boosted by 10%\n" + "Rogue weapons have a chance to instantly kill normal enemies\n" + - "15% increased rogue damage, 5% increased rogue crit chance, and 15% increased rogue velocity"); + "15% increased rogue damage, 10% increased rogue crit chance, and 15% increased rogue velocity"); } public override void SetDefaults() @@ -27,25 +26,15 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.nanotech = true; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.15f; } diff --git a/Items/Accessories/NecklaceofVexation.cs b/Items/Accessories/NecklaceofVexation.cs index a0a711db82..666b924e94 100644 --- a/Items/Accessories/NecklaceofVexation.cs +++ b/Items/Accessories/NecklaceofVexation.cs @@ -30,15 +30,9 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - if (player.statLife < (player.statLifeMax2 * 0.5f)) - { - player.meleeDamage += 0.15f; - player.magicDamage += 0.15f; - player.rangedDamage += 0.15f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; - player.minionDamage += 0.15f; - } - } + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.vexation = true; + } public override void AddRecipes() { diff --git a/Items/Accessories/OrnateShield.cs b/Items/Accessories/OrnateShield.cs index d672b10d66..c217e51aba 100644 --- a/Items/Accessories/OrnateShield.cs +++ b/Items/Accessories/OrnateShield.cs @@ -14,7 +14,6 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Ornate Shield"); - Tooltip.SetDefault("Increased defense by 8 when below 25% life"); } public override void SetDefaults() @@ -23,18 +22,10 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 12, 0, 0); item.rare = 5; - item.defense = 4; + item.defense = 6; item.accessory = true; } - public override void UpdateAccessory(Player player, bool hideVisual) - { - if (player.statLife <= (player.statLifeMax2 * 0.25f)) - { - player.statDefense += 8; - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Accessories/PlagueHive.cs b/Items/Accessories/PlagueHive.cs index 3478299366..58481075de 100644 --- a/Items/Accessories/PlagueHive.cs +++ b/Items/Accessories/PlagueHive.cs @@ -14,8 +14,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Plague Hive"); - Tooltip.SetDefault("Blinds and weakens the player if above 90% life\n" + - "Summons a damaging plague aura around the player to destroy nearby enemies\n" + + Tooltip.SetDefault("Summons a damaging plague aura around the player to destroy nearby enemies\n" + "Releases bees when damaged\n" + "Friendly bees inflict the plague\n" + "All of your attacks inflict the plague\n" + @@ -53,12 +52,6 @@ namespace CalamityMod.Items.Accessories modPlayer.uberBees = true; player.strongBees = true; modPlayer.alchFlask = true; - if (player.statLife >= (player.statLifeMax * 0.9f)) - { - player.blind = true; - player.statDefense -= 5; - player.moveSpeed -= 0.05f; - } int plagueCounter = 0; Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.1f, 2f, 0.2f); int num = mod.BuffType("Plague"); diff --git a/Items/Accessories/RampartofDeities.cs b/Items/Accessories/RampartofDeities.cs index b3071013f1..3ae09b9366 100644 --- a/Items/Accessories/RampartofDeities.cs +++ b/Items/Accessories/RampartofDeities.cs @@ -32,57 +32,14 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 90, 0, 0); item.defense = 12; item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.dAmulet = true; - player.panic = true; - player.armorPenetration += 50; - player.manaMagnet = true; - player.magicCuffs = true; - if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) - { - Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 1.35f, 0.3f, 0.9f); - } - player.noKnockback = true; - if ((float)player.statLife > (float)player.statLifeMax2 * 0.25f) - { - player.hasPaladinShield = true; - if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0) - { - int myPlayer = Main.myPlayer; - if (Main.player[myPlayer].team == player.team && player.team != 0) - { - float arg = player.position.X - Main.player[myPlayer].position.X; - float num3 = player.position.Y - Main.player[myPlayer].position.Y; - if ((float)Math.Sqrt((double)(arg * arg + num3 * num3)) < 800f) - { - Main.player[myPlayer].AddBuff(43, 20, true); - } - } - } - } - if ((double)player.statLife <= (double)player.statLifeMax2 * 0.5) - { - player.AddBuff(62, 5, true); - } - if ((double)player.statLife <= (double)player.statLifeMax2 * 0.15) - { - player.endurance += 0.05f; - } + modPlayer.rampartOfDeities = true; } public override void AddRecipes() diff --git a/Items/Accessories/RangedLevelMeter.cs b/Items/Accessories/RangedLevelMeter.cs index 5477b5a3fc..682658a5a1 100644 --- a/Items/Accessories/RangedLevelMeter.cs +++ b/Items/Accessories/RangedLevelMeter.cs @@ -1,133 +1,133 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Accessories -{ - public class RangedLevelMeter : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Ranged Level Meter"); - Tooltip.SetDefault("Tells you how high your ranged proficiency is"); - } - - public override void SetDefaults() - { - item.width = 26; - item.height = 26; - item.value = Item.buyPrice(0, 6, 0, 0); - item.rare = 1; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - int level = Main.player[Main.myPlayer].GetModPlayer(mod).rangedLevel; - int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactRangedLevel; - int damageGain = 0; - int moveSpeed = 0; - int critGain = 0; - switch (exactLevel) - { - case 0: - break; - case 1: - damageGain = 1; - break; - case 2: - damageGain = 2; - break; - case 3: - damageGain = 2; - critGain = 1; - break; - case 4: - damageGain = 3; - critGain = 1; - moveSpeed = 1; - break; - case 5: - damageGain = 3; - moveSpeed = 2; - critGain = 1; - break; - case 6: - damageGain = 4; - moveSpeed = 3; - critGain = 1; - break; - case 7: - damageGain = 4; - moveSpeed = 4; - critGain = 2; - break; - case 8: - damageGain = 5; - moveSpeed = 5; - critGain = 2; - break; - case 9: - damageGain = 5; - moveSpeed = 5; - critGain = 3; - break; - case 10: - damageGain = 6; - moveSpeed = 6; - critGain = 3; - break; - case 11: - damageGain = 7; - moveSpeed = 7; - critGain = 4; - break; - case 12: - damageGain = 8; - moveSpeed = 8; - critGain = 4; - break; - case 13: - damageGain = 9; - moveSpeed = 9; - critGain = 5; - break; - case 14: - damageGain = 10; - moveSpeed = 10; - critGain = 5; - break; - case 15: - damageGain = 12; - moveSpeed = 12; - critGain = 6; - break; - } - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Tells you how high your ranged proficiency is\n" + - "While equipped you will gain ranged proficiency faster\n" + - "The higher your ranged level the higher your ranged damage, critical strike chance, and movement speed\n" + - "Ranged proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + - "Ranged level (max of 15): " + exactLevel + "\n" + - "Ranged damage increase: " + damageGain + "%\n" + - "Movement speed increase: " + moveSpeed + "%\n" + - "Ranged crit increase: " + critGain + "%"; - } - } - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - modPlayer.fasterRangedLevel = true; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Accessories +{ + public class RangedLevelMeter : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Ranged Level Meter"); + Tooltip.SetDefault("Tells you how high your ranged proficiency is"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 26; + item.value = Item.buyPrice(0, 6, 0, 0); + item.rare = 1; + item.accessory = true; + } + + public override void ModifyTooltips(List list) + { + int level = Main.player[Main.myPlayer].GetModPlayer(mod).rangedLevel; + int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactRangedLevel; + int damageGain = 0; + int moveSpeed = 0; + int critGain = 0; + switch (exactLevel) + { + case 0: + break; + case 1: + damageGain = 1; + break; + case 2: + damageGain = 2; + break; + case 3: + damageGain = 2; + critGain = 1; + break; + case 4: + damageGain = 3; + critGain = 1; + moveSpeed = 1; + break; + case 5: + damageGain = 3; + moveSpeed = 2; + critGain = 1; + break; + case 6: + damageGain = 4; + moveSpeed = 3; + critGain = 1; + break; + case 7: + damageGain = 4; + moveSpeed = 4; + critGain = 2; + break; + case 8: + damageGain = 5; + moveSpeed = 5; + critGain = 2; + break; + case 9: + damageGain = 5; + moveSpeed = 5; + critGain = 3; + break; + case 10: + damageGain = 6; + moveSpeed = 6; + critGain = 3; + break; + case 11: + damageGain = 7; + moveSpeed = 7; + critGain = 4; + break; + case 12: + damageGain = 8; + moveSpeed = 8; + critGain = 4; + break; + case 13: + damageGain = 9; + moveSpeed = 9; + critGain = 5; + break; + case 14: + damageGain = 10; + moveSpeed = 10; + critGain = 5; + break; + case 15: + damageGain = 12; + moveSpeed = 12; + critGain = 6; + break; + } + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Tells you how high your ranged proficiency is\n" + + "While equipped you will gain ranged proficiency faster\n" + + "The higher your ranged level the higher your ranged damage, critical strike chance, and movement speed\n" + + "Ranged proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + + "Ranged level (max of 15): " + exactLevel + "\n" + + "Ranged damage increase: " + damageGain + "%\n" + + "Movement speed increase: " + moveSpeed + "%\n" + + "Ranged crit increase: " + critGain + "%"; + } + } + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.fasterRangedLevel = true; + } + } } \ No newline at end of file diff --git a/Items/Accessories/RogueEmblem.cs b/Items/Accessories/RogueEmblem.cs index 0f620f85fe..8636360c8e 100644 --- a/Items/Accessories/RogueEmblem.cs +++ b/Items/Accessories/RogueEmblem.cs @@ -1,35 +1,35 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items.CalamityCustomThrowingDamage; - -namespace CalamityMod.Items.Accessories -{ - public class RogueEmblem : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Rogue Emblem"); - Tooltip.SetDefault("15% increased rogue damage"); - } - - public override void SetDefaults() - { - item.width = 24; - item.height = 24; - item.value = 100000; - item.rare = 4; - item.accessory = true; - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityCustomThrowingDamagePlayer modPlayer2 = CalamityCustomThrowingDamagePlayer.ModPlayer(player); - modPlayer2.throwingDamage += 0.15f; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.CalamityCustomThrowingDamage; + +namespace CalamityMod.Items.Accessories +{ + public class RogueEmblem : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Rogue Emblem"); + Tooltip.SetDefault("15% increased rogue damage"); + } + + public override void SetDefaults() + { + item.width = 24; + item.height = 24; + item.value = 100000; + item.rare = 4; + item.accessory = true; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityCustomThrowingDamagePlayer modPlayer2 = CalamityCustomThrowingDamagePlayer.ModPlayer(player); + modPlayer2.throwingDamage += 0.15f; + } + } } \ No newline at end of file diff --git a/Items/Accessories/RogueLevelMeter.cs b/Items/Accessories/RogueLevelMeter.cs index 636045ddf7..1c0b78dabc 100644 --- a/Items/Accessories/RogueLevelMeter.cs +++ b/Items/Accessories/RogueLevelMeter.cs @@ -1,133 +1,133 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Accessories -{ - public class RogueLevelMeter : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Rogue Level Meter"); - Tooltip.SetDefault("Tells you how high your rogue proficiency is"); - } - - public override void SetDefaults() - { - item.width = 26; - item.height = 26; - item.value = Item.buyPrice(0, 6, 0, 0); - item.rare = 1; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - int level = Main.player[Main.myPlayer].GetModPlayer(mod).rogueLevel; - int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactRogueLevel; - int damageGain = 0; - int velocityGain = 0; - int critGain = 0; - switch (exactLevel) - { - case 0: - break; - case 1: - damageGain = 1; - break; - case 2: - damageGain = 2; - break; - case 3: - damageGain = 2; - velocityGain = 1; - break; - case 4: - damageGain = 3; - critGain = 1; - velocityGain = 1; - break; - case 5: - damageGain = 3; - velocityGain = 2; - critGain = 1; - break; - case 6: - damageGain = 4; - velocityGain = 3; - critGain = 1; - break; - case 7: - damageGain = 4; - velocityGain = 4; - critGain = 2; - break; - case 8: - damageGain = 5; - velocityGain = 5; - critGain = 2; - break; - case 9: - damageGain = 5; - velocityGain = 5; - critGain = 3; - break; - case 10: - damageGain = 6; - velocityGain = 6; - critGain = 3; - break; - case 11: - damageGain = 7; - velocityGain = 7; - critGain = 4; - break; - case 12: - damageGain = 8; - velocityGain = 8; - critGain = 4; - break; - case 13: - damageGain = 9; - velocityGain = 9; - critGain = 5; - break; - case 14: - damageGain = 10; - velocityGain = 10; - critGain = 5; - break; - case 15: - damageGain = 12; - velocityGain = 12; - critGain = 6; - break; - } - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Tells you how high your rogue proficiency is\n" + - "While equipped you will gain rogue proficiency faster\n" + - "The higher your rogue level the higher your rogue damage, critical strike chance, and velocity\n" + - "Rogue proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + - "Rogue level (max of 15): " + exactLevel + "\n" + - "Rogue damage increase: " + damageGain + "%\n" + - "Rogue velocity increase: " + velocityGain + "%\n" + - "Rogue crit increase: " + critGain + "%"; - } - } - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - modPlayer.fasterRogueLevel = true; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Accessories +{ + public class RogueLevelMeter : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Rogue Level Meter"); + Tooltip.SetDefault("Tells you how high your rogue proficiency is"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 26; + item.value = Item.buyPrice(0, 6, 0, 0); + item.rare = 1; + item.accessory = true; + } + + public override void ModifyTooltips(List list) + { + int level = Main.player[Main.myPlayer].GetModPlayer(mod).rogueLevel; + int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactRogueLevel; + int damageGain = 0; + int velocityGain = 0; + int critGain = 0; + switch (exactLevel) + { + case 0: + break; + case 1: + damageGain = 1; + break; + case 2: + damageGain = 2; + break; + case 3: + damageGain = 2; + velocityGain = 1; + break; + case 4: + damageGain = 3; + critGain = 1; + velocityGain = 1; + break; + case 5: + damageGain = 3; + velocityGain = 2; + critGain = 1; + break; + case 6: + damageGain = 4; + velocityGain = 3; + critGain = 1; + break; + case 7: + damageGain = 4; + velocityGain = 4; + critGain = 2; + break; + case 8: + damageGain = 5; + velocityGain = 5; + critGain = 2; + break; + case 9: + damageGain = 5; + velocityGain = 5; + critGain = 3; + break; + case 10: + damageGain = 6; + velocityGain = 6; + critGain = 3; + break; + case 11: + damageGain = 7; + velocityGain = 7; + critGain = 4; + break; + case 12: + damageGain = 8; + velocityGain = 8; + critGain = 4; + break; + case 13: + damageGain = 9; + velocityGain = 9; + critGain = 5; + break; + case 14: + damageGain = 10; + velocityGain = 10; + critGain = 5; + break; + case 15: + damageGain = 12; + velocityGain = 12; + critGain = 6; + break; + } + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Tells you how high your rogue proficiency is\n" + + "While equipped you will gain rogue proficiency faster\n" + + "The higher your rogue level the higher your rogue damage, critical strike chance, and velocity\n" + + "Rogue proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + + "Rogue level (max of 15): " + exactLevel + "\n" + + "Rogue damage increase: " + damageGain + "%\n" + + "Rogue velocity increase: " + velocityGain + "%\n" + + "Rogue crit increase: " + critGain + "%"; + } + } + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.fasterRogueLevel = true; + } + } } \ No newline at end of file diff --git a/Items/Accessories/SeaShell.cs b/Items/Accessories/SeaShell.cs index abe5e85085..ba075a1c29 100644 --- a/Items/Accessories/SeaShell.cs +++ b/Items/Accessories/SeaShell.cs @@ -35,6 +35,7 @@ namespace CalamityMod.Items.Accessories player.statDefense += 3; player.endurance += 0.05f; player.moveSpeed += 0.15f; + player.ignoreWater = true; } } } diff --git a/Items/Accessories/Sponge.cs b/Items/Accessories/Sponge.cs index 1f40a550fa..03cdd1b4ad 100644 --- a/Items/Accessories/Sponge.cs +++ b/Items/Accessories/Sponge.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Accessories item.height = 20; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/StatisBeltOfCurses.cs b/Items/Accessories/StatisBeltOfCurses.cs index 3f86d7e359..ad5ab56d31 100644 --- a/Items/Accessories/StatisBeltOfCurses.cs +++ b/Items/Accessories/StatisBeltOfCurses.cs @@ -32,18 +32,8 @@ namespace CalamityMod.Items.Accessories item.height = 32; item.value = Item.buyPrice(0, 90, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/StressPills.cs b/Items/Accessories/StressPills.cs index ae77a535c0..c93b4242de 100644 --- a/Items/Accessories/StressPills.cs +++ b/Items/Accessories/StressPills.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Stress Pills"); - Tooltip.SetDefault("Boosts your damage by 6%, \n" + - "defense by 5, and max movement speed and acceleration by 5%\n" + + Tooltip.SetDefault("Boosts your damage by 8%,\n" + + "defense by 8, and max movement speed and acceleration by 5%\n" + "Revengeance drop"); } diff --git a/Items/Accessories/SummonLevelMeter.cs b/Items/Accessories/SummonLevelMeter.cs index d5049ae095..da6be47ba2 100644 --- a/Items/Accessories/SummonLevelMeter.cs +++ b/Items/Accessories/SummonLevelMeter.cs @@ -1,131 +1,131 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Accessories -{ - public class SummonLevelMeter : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Summon Level Meter"); - Tooltip.SetDefault("Tells you how high your summon proficiency is"); - } - - public override void SetDefaults() - { - item.width = 26; - item.height = 26; - item.value = Item.buyPrice(0, 6, 0, 0); - item.rare = 1; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - int level = Main.player[Main.myPlayer].GetModPlayer(mod).summonLevel; - int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactSummonLevel; - int damageGain = 0; - int minionKB = 0; - int minionSlots = 0; - switch (exactLevel) - { - case 0: - break; - case 1: - damageGain = 1; - break; - case 2: - damageGain = 2; - break; - case 3: - damageGain = 2; - minionKB = 30; - break; - case 4: - damageGain = 3; - minionKB = 30; - break; - case 5: - damageGain = 3; - minionKB = 60; - break; - case 6: - damageGain = 4; - minionKB = 90; - minionSlots = 1; - break; - case 7: - damageGain = 4; - minionKB = 120; - minionSlots = 1; - break; - case 8: - damageGain = 5; - minionKB = 150; - minionSlots = 1; - break; - case 9: - damageGain = 6; - minionKB = 180; - minionSlots = 1; - break; - case 10: - damageGain = 6; - minionKB = 180; - minionSlots = 2; - break; - case 11: - damageGain = 7; - minionKB = 210; - minionSlots = 2; - break; - case 12: - damageGain = 8; - minionKB = 240; - minionSlots = 2; - break; - case 13: - damageGain = 9; - minionKB = 270; - minionSlots = 2; - break; - case 14: - damageGain = 10; - minionKB = 300; - minionSlots = 2; - break; - case 15: - damageGain = 12; - minionKB = 300; - minionSlots = 3; - break; - } - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Tells you how high your summon proficiency is\n" + - "While equipped you will gain summon proficiency faster\n" + - "The higher your summon level the higher your minion damage, knockback, and slots\n" + - "Summon proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + - "Summon level (max of 15): " + exactLevel + "\n" + - "Minion damage increase: " + damageGain + "%\n" + - "Minion knockback increase: " + minionKB + "%\n" + - "Minion slot increase: " + minionSlots; - } - } - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - modPlayer.fasterSummonLevel = true; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Accessories +{ + public class SummonLevelMeter : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Summon Level Meter"); + Tooltip.SetDefault("Tells you how high your summon proficiency is"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 26; + item.value = Item.buyPrice(0, 6, 0, 0); + item.rare = 1; + item.accessory = true; + } + + public override void ModifyTooltips(List list) + { + int level = Main.player[Main.myPlayer].GetModPlayer(mod).summonLevel; + int exactLevel = Main.player[Main.myPlayer].GetModPlayer(mod).exactSummonLevel; + int damageGain = 0; + int minionKB = 0; + int minionSlots = 0; + switch (exactLevel) + { + case 0: + break; + case 1: + damageGain = 1; + break; + case 2: + damageGain = 2; + break; + case 3: + damageGain = 2; + minionKB = 30; + break; + case 4: + damageGain = 3; + minionKB = 30; + break; + case 5: + damageGain = 3; + minionKB = 60; + break; + case 6: + damageGain = 4; + minionKB = 90; + minionSlots = 1; + break; + case 7: + damageGain = 4; + minionKB = 120; + minionSlots = 1; + break; + case 8: + damageGain = 5; + minionKB = 150; + minionSlots = 1; + break; + case 9: + damageGain = 6; + minionKB = 180; + minionSlots = 1; + break; + case 10: + damageGain = 6; + minionKB = 180; + minionSlots = 2; + break; + case 11: + damageGain = 7; + minionKB = 210; + minionSlots = 2; + break; + case 12: + damageGain = 8; + minionKB = 240; + minionSlots = 2; + break; + case 13: + damageGain = 9; + minionKB = 270; + minionSlots = 2; + break; + case 14: + damageGain = 10; + minionKB = 300; + minionSlots = 2; + break; + case 15: + damageGain = 12; + minionKB = 300; + minionSlots = 3; + break; + } + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Tells you how high your summon proficiency is\n" + + "While equipped you will gain summon proficiency faster\n" + + "The higher your summon level the higher your minion damage, knockback, and slots\n" + + "Summon proficiency (max of 12500): " + (level - (level > 12500 ? 1 : 0)) + "\n" + + "Summon level (max of 15): " + exactLevel + "\n" + + "Minion damage increase: " + damageGain + "%\n" + + "Minion knockback increase: " + minionKB + "%\n" + + "Minion slot increase: " + minionSlots; + } + } + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.fasterSummonLevel = true; + } + } } \ No newline at end of file diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index b4af0d93a5..8aba437f68 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories "You will confuse nearby enemies when you are struck\n" + "Drops brimstone fireballs from the sky occasionally\n" + "Brimstone fire rains down while invincibility is active\n" + - "Immunity to lava and 15% increased damage while in lava\n" + + "Temporary immunity to lava, greatly reduces lava burn damage, and 15% increased damage while in lava\n" + "Summons a fungal clump to fight for you\n" + "You leave behind poisonous seawater as you move\n" + "75% increased movement speed, 10% increase to all damage, and plus 40 defense while submerged in liquid\n" + @@ -64,7 +64,7 @@ namespace CalamityMod.Items.Accessories } if (player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("FungalClump"), 250, 1f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("FungalClump"), (int)(250f * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); } } player.meleeDamage += 0.15f; @@ -73,8 +73,9 @@ namespace CalamityMod.Items.Accessories player.magicDamage += 0.15f; player.minionDamage += 0.15f; player.ignoreWater = true; - player.lavaImmune = true; - if (player.lavaWet) + player.lavaRose = true; + player.lavaMax += 240; + if (player.lavaWet) { player.meleeDamage += 0.15f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; diff --git a/Items/Accessories/TheCommunity.cs b/Items/Accessories/TheCommunity.cs index d526409ddc..c3aeb430a8 100644 --- a/Items/Accessories/TheCommunity.cs +++ b/Items/Accessories/TheCommunity.cs @@ -31,18 +31,8 @@ namespace CalamityMod.Items.Accessories item.height = 20; item.value = Item.buyPrice(0, 60, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/Accessories/VoidofExtinction.cs b/Items/Accessories/VoidofExtinction.cs index 1d1f6cdcd7..2848a294cd 100644 --- a/Items/Accessories/VoidofExtinction.cs +++ b/Items/Accessories/VoidofExtinction.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories "Drops brimstone fireballs from the sky occasionally\n" + "15% increase to all damage\n" + "Brimstone fire rains down while invincibility is active\n" + - "Immunity to lava and 25% increased damage while in lava"); + "Temporary immunity to lava, greatly reduces lava burn damage, and 25% increased damage while in lava"); } public override void SetDefaults() @@ -60,8 +60,9 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.calamityRing = true; - player.lavaImmune = true; - player.meleeDamage += 0.15f; + player.lavaRose = true; + player.lavaMax += 240; + player.meleeDamage += 0.15f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.15f; player.rangedDamage += 0.15f; player.magicDamage += 0.15f; diff --git a/Items/Accessories/WifeinaBottle.cs b/Items/Accessories/WifeinaBottle.cs index e9025461ce..d7ac62eca5 100644 --- a/Items/Accessories/WifeinaBottle.cs +++ b/Items/Accessories/WifeinaBottle.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories { public override void SetStaticDefaults() { - DisplayName.SetDefault("Waifu in a Bottle"); + DisplayName.SetDefault("Lady in a Bottle"); Tooltip.SetDefault("Summons a sand elemental to fight for you"); } @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Accessories } if (player.ownedProjectileCounts[mod.ProjectileType("SandyWaifu")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SandyWaifu"), 45, 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SandyWaifu"), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Accessories/WifeinaBottlewithBoobs.cs b/Items/Accessories/WifeinaBottlewithBoobs.cs index a39f3a2974..8c34c49c3b 100644 --- a/Items/Accessories/WifeinaBottlewithBoobs.cs +++ b/Items/Accessories/WifeinaBottlewithBoobs.cs @@ -19,8 +19,9 @@ namespace CalamityMod.Items.Accessories { public override void SetStaticDefaults() { - DisplayName.SetDefault("Rare Waifu in a Bottle"); - Tooltip.SetDefault("Summons a sand elemental to fight for you\n;D"); + DisplayName.SetDefault("Madame in a Bottle"); + Tooltip.SetDefault("Summons a sand elemental to heal you\n" + + ";D"); } public override void SetDefaults() @@ -54,7 +55,7 @@ namespace CalamityMod.Items.Accessories } if (player.ownedProjectileCounts[mod.ProjectileType("DrewsSandyWaifu")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DrewsSandyWaifu"), 45, 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DrewsSandyWaifu"), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Accessories/YharimsInsignia.cs b/Items/Accessories/YharimsInsignia.cs index ff2bd1ba49..b9eb39813b 100644 --- a/Items/Accessories/YharimsInsignia.cs +++ b/Items/Accessories/YharimsInsignia.cs @@ -15,11 +15,11 @@ namespace CalamityMod.Items.Accessories { DisplayName.SetDefault("Yharim's Insignia"); Tooltip.SetDefault("10% increased damage when under 50% life\n" + - "Increased melee speed as health lowers\n" + - "5% increased melee speed and damage\n" + + "10% increased melee speed\n" + + "5% increased melee damage\n" + "Melee attacks and melee projectiles inflict holy fire\n" + "Increased invincibility after taking damage\n" + - "You are immune to lava\n" + + "Temporary immunity to lava\n" + "Increased melee knockback"); } @@ -29,18 +29,8 @@ namespace CalamityMod.Items.Accessories item.height = 38; item.value = Item.buyPrice(0, 30, 0, 0); item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/AerialiteBar.cs b/Items/AerialiteBar.cs index 6bfa7a823f..16cb486966 100644 --- a/Items/AerialiteBar.cs +++ b/Items/AerialiteBar.cs @@ -7,29 +7,31 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class AerialiteBar : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Aerialite Bar"); - } - - public override void SetDefaults() + public class AerialiteBar : ModItem { - item.width = 15; - item.height = 12; - item.maxStack = 999; - item.value = 18750; - item.rare = 2; + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Aerialite Bar"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 24; + item.maxStack = 999; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 3; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "AerialiteOre", 4); + recipe.AddTile(TileID.Furnaces); + recipe.SetResult(this); + recipe.AddRecipe(); + } } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "AerialiteOre", 4); - recipe.AddTile(TileID.Furnaces); - recipe.SetResult(this); - recipe.AddRecipe(); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Amidias/AmidiasTrident.cs b/Items/Amidias/AmidiasTrident.cs new file mode 100644 index 0000000000..2f9fd5fe4a --- /dev/null +++ b/Items/Amidias/AmidiasTrident.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Amidias +{ + public class AmidiasTrident : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Amidias' Trident"); + Tooltip.SetDefault("Gains the power to shoot whirlpools after Skeletron has been defeated"); + } + + public override void SetDefaults() + { + item.width = 44; + item.damage = 20; + item.melee = true; + item.noMelee = true; + item.useTurn = true; + item.noUseGraphic = true; + item.useAnimation = 17; + item.useStyle = 5; + item.useTime = 17; + item.knockBack = 4.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 44; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.shoot = mod.ProjectileType("AmidiasTridentProj"); + item.shootSpeed = 6f; + } + + public override bool CanUseItem(Player player) + { + for (int i = 0; i < 1000; ++i) + { + if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot) + { + return false; + } + } + return true; + } + } +} diff --git a/Items/Amidias/AmidiasTrident.png b/Items/Amidias/AmidiasTrident.png new file mode 100644 index 0000000000000000000000000000000000000000..757e56c1e26546eadffad29ceab080b911359658 GIT binary patch literal 669 zcmV;O0%HA%P)JUdt@Fn=EZB@ckE@FnP=Po{Pvk={xc5EqEAz{@AczP&z%MxJSjAe8x)N- zC?gn!4o##0m!6JWXenV)T+|6GBbW+Z>bnE7ZIJ~A8paLOKEr(PN-XmaM2+yj5xjr> z!tC+pv`6UATsgV9Z8>4v2rhCrFm*OJM(<*7uJ6S|zkDZ?Av~OS#wCkEe@0jt!6?)< zTLn-uJaG)cc5ev!ftFEd$I=I(ecZm`R)s%5>68_G-de^z;e)GT81Ju~gw}C<0j>99 zgd6YeOM-Dc5lzowBy4-ZvQ*GED%f0}?qvGzVm;TL)v3%l^%|xTR#q@K5j9OqY8+>B z_AoyJ{VIPVvXF6eJ1XH2Zb@@Vij^^yuKpURDX9%B^Y(f9veDO<&rV&m`y26r6mSvp*#$`<|4rGJH&-rl*Kue6)f6Z^UJzV#aBdhT^R44 z+BM{|WaNy_zY|tQu&5dY>z`n%u};4s&|Edk8yF?~$*oZVwik>h2H$79F7=y$RnBbW-smv5`9fsnAWf^kLkrNydhASJAd;5YXC^4wuj-hJ000CYNkl9(E6vuyWm@fqFmq4)<%Y@)4G1mBj#E=-%geD@1DaHggAjSoexWEk|vXHnjuu@rR zbR&sT7K$b%8eI_6)Q=3rR7%q{wU&aEN{OYNcBb=OoOj-EZ{Kug2t=LdfAf0oJNMq# z^Lyvqd*3*_QeAj*sX%Q_t^+VU;TY{74V^ITC)&1GGTefBTOM8M09^R_vf=c@@Mo2d zXDD)0z5YXTY=UpU*I+ozp1NY#Z+x-Du$yBA2jEi9jMc9NpRhq_`7_N9z|^;wjQg+t zv;%;5A3M%s{?(EUAHgSA$p5_g>-!AHyABN+_Hb_=fDisi80~8l^A5mwGeUYA#|2o| z(+R-frf!+|o@EYzJ9gb5`2H`Fd#&lH;U7SLQ7P%#C;04IAy_8?BR(%A_pF))pz&1N z=unEJN{LQIq}q<;BY}jnyT38|DdEmoqv20m%0K9$58bYuX)v+{hUq3cRMyfzqUGlHIvK0T}J~ z-jLUq0+39tH=c7vY8rs?p*w&g$=WBVRkX2Aa^w8uxC_O1TqBho8USEN^h;xa4UriD z+BQm#B(~fQ6p8LU{e0lWO0r}3a--cR zZjox)H+I10Z7Yp$r;Ga~?8 z$%uXCkzN4Oo22?`E+&s{^m+^!{gvEY-mB)Hyd&2GdknwYC)hV8d&R@s<^f1-k?J`9 zRK3{WPXciMP1ytb#5^6(Z#8Tsr?SbNT_$fvdasbu9833`{~hczfsZhF4f7;foPLN zGA~<-oBegj)(vk|;G3c3Li1(2YJ&bA)2gEOY2sFsQ~m$zlBJ3XYIVv^oOI>7xS!_2 dKdqW4_%|*SqTLP^NrnIb002ovPDHLkV1oA~CPx4O literal 0 HcmV?d00001 diff --git a/Items/Amidias/MagicalConch.cs b/Items/Amidias/MagicalConch.cs new file mode 100644 index 0000000000..847f4d3709 --- /dev/null +++ b/Items/Amidias/MagicalConch.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.GameContent; +using Terraria.IO; +using Terraria.ObjectData; +using Terraria.Utilities; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Amidias +{ + public class MagicalConch : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Magical Conch"); + Tooltip.SetDefault("Summons a hermit crab to fight for you"); + } + + public override void SetDefaults() + { + item.damage = 20; + item.mana = 10; + item.width = 34; + item.height = 24; + item.useTime = 36; + item.useAnimation = 36; + item.useStyle = 1; + item.noMelee = true; + item.knockBack = 2f; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.UseSound = SoundID.Item44; + item.autoReuse = true; + item.shoot = mod.ProjectileType("HermitCrab"); + item.shootSpeed = 10f; + item.summon = true; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + int i = Main.myPlayer; + float num72 = item.shootSpeed; + int num73 = damage; + float num74 = knockBack; + num74 = player.GetWeaponKnockback(item, num74); + player.itemTime = item.useTime; + Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); + float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; + float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; + if (player.gravDir == -1f) + { + num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y; + } + float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); + float num81 = num80; + if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) + { + num78 = (float)player.direction; + num79 = 0f; + num80 = num72; + } + else + { + num80 = num72 / num80; + } + num78 = 0f; + num79 = 0f; + vector2.X = (float)Main.mouseX + Main.screenPosition.X; + vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; + Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, mod.ProjectileType("HermitCrab"), num73, num74, i, 0f, 0f); + return false; + } + } +} \ No newline at end of file diff --git a/Items/Amidias/MagicalConch.png b/Items/Amidias/MagicalConch.png new file mode 100644 index 0000000000000000000000000000000000000000..dae5fd2da2ca36a06d69e84e928eb7a821232b6b GIT binary patch literal 518 zcmV+h0{Q)kP)Px$z)3_wR7i={mQO20Q5eR5Gw8Cja2s}$#VFITurNNsER?2v1Cy1FQg$SJHGBC8 zBxT_fa2FPcG7H%uN>)P{7Uw>0=lC~6>UcNzo_}xW`Q7(C=cf3h7$Nu4%KY?SZKTym z{WgKCye&HfzGvRrTW&c8c@J_=l7#L`=1% zQ}$dv1bimq`UBLhsZuOO3tMeKaw_s^GcIR!BPjI(aJqbH_4`LeBnth7xW`oWaihyL zBSU6jvDZpaiHtJ&2;tZBMdB@Q9R3lJV-`bG-Kv3Xd|DQ^V#V>@kvOH489&i!Qfw^U z0g2y05U;m4;tvtk##F|TkfO;=;{)zpA!V-ee8xOgEAHLmhP&P$B6`sd<%lA2ban(l zF*FXVJ3`9UR!vo+kH=jHE>~-SkGJo4f7{w|tAFLqhId3>0is}yVve7;rT_o{07*qo IM6N<$f^IzRy#N3J literal 0 HcmV?d00001 diff --git a/Items/Amidias/Shellshooter.cs b/Items/Amidias/Shellshooter.cs new file mode 100644 index 0000000000..40829892f8 --- /dev/null +++ b/Items/Amidias/Shellshooter.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Amidias +{ + public class Shellshooter : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shellshooter"); + Tooltip.SetDefault("Shoots slow, powerful shells"); + } + + public override void SetDefaults() + { + item.damage = 30; + item.ranged = true; + item.width = 30; + item.height = 38; + item.crit += 15; + item.useTime = 70; + item.useAnimation = 70; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 6f; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.UseSound = SoundID.Item5; + item.autoReuse = true; + item.shoot = mod.ProjectileType("Shell"); + item.shootSpeed = 1.5f; + item.useAmmo = 40; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Shell"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + } +} \ No newline at end of file diff --git a/Items/Amidias/Shellshooter.png b/Items/Amidias/Shellshooter.png new file mode 100644 index 0000000000000000000000000000000000000000..20dafc686774356a946e7e4582b89a7cddd47e6a GIT binary patch literal 541 zcmV+&0^Px$*GWV{R9J=Om_089Q5c0EGErEGAuHKzBt%eYY{W;W5QR?X2Pl+E1-(+K@B?%@ zlC6}8Y^6d(A+pJAVkK)U3B|o<$JyERUG2NLCm07lGkmO{@zuEImb5jH7c^gx=IJx` z5tpg_c#PXAxm~zkIC17@kMY#O{u{v6`o_08R}k~wy)~!Z*E)5LgSd`io3XAEE+p;7 zHch;iOD2Bh_QK|&GcJ3Ke~XUmZKf*kn)a~dX0ZG)mb;bvo6BxSd#M_C=ZA5}-N#1D zu;xCZUC(M9{}$5NkK=ac<5-nNQuw*LY1@^nBkOW$pS`bBZokJJjg!_~%C&JdS6d6N zdNo&OH1>0=>SDQCt`z(o5L2C{KGoH>E?0Fbq|aFJ&rYgD;&wpp6|=ZHIy0xm|93u4 fR5L@4{sVajQ#s!%M;q6-00000NkvXXu0mjf+n@mG literal 0 HcmV?d00001 diff --git a/Items/Amidias/UrchinFlail.cs b/Items/Amidias/UrchinFlail.cs new file mode 100644 index 0000000000..e07a093f6c --- /dev/null +++ b/Items/Amidias/UrchinFlail.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Amidias +{ + public class UrchinFlail : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Urchin Flail"); + Tooltip.SetDefault("Launch an urchin ball, which shoots a spike on contact with an enemy"); + } + + public override void SetDefaults() + { + item.damage = 20; + item.melee = true; + item.width = 44; + item.height = 36; + item.useTime = 25; + item.useAnimation = 25; + item.useStyle = 5; + item.noMelee = true; + item.noUseGraphic = true; + item.knockBack = 6f; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.channel = true; + item.shoot = mod.ProjectileType("UrchinBall"); + item.shootSpeed = 12f; + } + } +} \ No newline at end of file diff --git a/Items/Amidias/UrchinFlail.png b/Items/Amidias/UrchinFlail.png new file mode 100644 index 0000000000000000000000000000000000000000..3079ad4adb4082e60b65f0af4c86d5626da61513 GIT binary patch literal 744 zcmVP)Px%qDe$SR9J=Gn89ijQ5c24sX@AkL8J@m!ble)sgKZt(4B6?rw|{>eYfhy?g{|| z?i9oZaZy?=Rcr}q(n=`NagiJ|_hfDw=|Zk&)0savH`DK)Iscu>h-mH3qtbe3*w3w$ z0o{VtK+Z-0)>6Vx?dZE3VZG4hgoIz7ULybL}Nq26&w zPGns2cIFFQ>tB==bPPp@YkZ-5;!|ds-`_v`CMz4!rY7>S!@JQTL#yjO3nn z#k`*$;TTybC4wUEolWC?Tul0YA#Y1Pt@$)AUBXgq@1UG@sl(}Wk(IY4?{qPF{wp<- zO^FJ&?^O=RI-R_#JU(oNbsAw_%d30M5veOIWB@<;Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E-^DS16z6k00BQqL_t(YOU;upN&`_4hTj2Fdw?KbU@IXk zHnFm>vDw-KSPJP=r%YjruczC+`ttzp;HE&;(E;4S3PfeG+$#mMe{cYIFpDqe zSBXZa_fgg2Ezx-L5ygBrj^OesPkM9fG5*g)av^&5qtfC zDH<5^jd4!w0phe8p!VeMV2VL5fSw#<1##N!-${!FcQD1G20$2cLZo2!&9=UH;0~sE zsHXlLJ}0j2-|002ovPDHLk FV1i(Cz&!u} literal 0 HcmV?d00001 diff --git a/Items/AncientBoneDust.cs b/Items/AncientBoneDust.cs index 99c6607017..28f013dd47 100644 --- a/Items/AncientBoneDust.cs +++ b/Items/AncientBoneDust.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items item.width = 20; item.height = 20; item.maxStack = 999; - item.value = 5000; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; } } } \ No newline at end of file diff --git a/Items/AnechoicCoating.cs b/Items/AnechoicCoating.cs index 1d1f04c77c..dbb62c27f5 100644 --- a/Items/AnechoicCoating.cs +++ b/Items/AnechoicCoating.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items item.consumable = true; item.buffType = mod.BuffType("AnechoicCoating"); item.buffTime = 7200; - item.value = 5000; + item.value = Item.buyPrice(0, 2, 0, 0); } public override void AddRecipes() diff --git a/Items/AquaticScourge/AquaticEmblem.cs b/Items/AquaticScourge/AquaticEmblem.cs index d00d8850ba..0bbfaa8eb3 100644 --- a/Items/AquaticScourge/AquaticEmblem.cs +++ b/Items/AquaticScourge/AquaticEmblem.cs @@ -17,7 +17,9 @@ namespace CalamityMod.Items.AquaticScourge Tooltip.SetDefault("Most ocean enemies become friendly and provides waterbreathing\n" + "Being underwater slowly boosts your defense over time but also slows movement speed\n" + "The defense boost and movement speed reduction slowly vanish while outside of water\n" + - "Maximum defense boost is 40, maximum movement speed reduction is 15%"); + "Maximum defense boost is 30, maximum movement speed reduction is 5%\n" + + "Provides a small amount of light in the abyss\n" + + "Moderately reduces breath loss in the abyss"); } public override void SetDefaults() diff --git a/Items/AquaticScourge/AquaticScourgeBag.cs b/Items/AquaticScourge/AquaticScourgeBag.cs index d8c5b96139..ec299aa587 100644 --- a/Items/AquaticScourge/AquaticScourgeBag.cs +++ b/Items/AquaticScourge/AquaticScourgeBag.cs @@ -30,6 +30,25 @@ namespace CalamityMod.Items.AquaticScourge public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } + player.TryGettingDevArmor(); if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("DeepseaStaff")); diff --git a/Items/Armageddon.cs b/Items/Armageddon.cs index e882fbd383..2edfe05642 100644 --- a/Items/Armageddon.cs +++ b/Items/Armageddon.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items Tooltip.SetDefault("Makes any hit while a boss is alive instantly kill you\n" + "Effect can be toggled on and off\n" + "Using this while a boss is alive will instantly kill you and despawn the boss\n" + - "If a boss is defeated with this effect active it will drop 11 treasure bags, 10 in normal mode\n" + + "If a boss is defeated with this effect active it will drop 6 treasure bags, 5 in normal mode\n" + "If any player dies while a boss is alive the boss will instantly despawn"); } diff --git a/Items/Armor/AbyssalDivingSuit.cs b/Items/Armor/AbyssalDivingSuit.cs index f40151dbe5..1a385f382b 100644 --- a/Items/Armor/AbyssalDivingSuit.cs +++ b/Items/Armor/AbyssalDivingSuit.cs @@ -53,7 +53,8 @@ namespace CalamityMod.Items.Armor recipe.AddIngredient(null, "Lumenite", 40); recipe.AddIngredient(null, "DepthCells", 40); recipe.AddIngredient(null, "Tenebris", 15); - recipe.AddTile(TileID.MythrilAnvil); + recipe.AddIngredient(ItemID.LunarBar, 5); + recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Armor/AerospecBreastplate.cs b/Items/Armor/AerospecBreastplate.cs index 4242818411..436545343c 100644 --- a/Items/Armor/AerospecBreastplate.cs +++ b/Items/Armor/AerospecBreastplate.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 65000; - item.rare = 3; + item.value = Item.buyPrice(0, 4, 0, 0); + item.rare = 3; item.defense = 7; } diff --git a/Items/Armor/AerospecHat.cs b/Items/Armor/AerospecHat.cs index d26fe29f73..4a32e2c374 100644 --- a/Items/Armor/AerospecHat.cs +++ b/Items/Armor/AerospecHat.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 50000; - item.rare = 3; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 3; item.defense = 3; //15 } diff --git a/Items/Armor/AerospecHeadgear.cs b/Items/Armor/AerospecHeadgear.cs index 0ec17be458..ff0bfa92dd 100644 --- a/Items/Armor/AerospecHeadgear.cs +++ b/Items/Armor/AerospecHeadgear.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 50000; - item.rare = 3; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 3; item.defense = 4; //17 } @@ -48,17 +48,21 @@ namespace CalamityMod.Items.Armor { player.setBonus = "5% increased movement speed and rogue critical strike chance\n" + "Taking over 25 damage in one hit will cause a spread of homing feathers to fall\n" + - "Allows you to fall more quickly and disables fall damage"; + "Allows you to fall more quickly and disables fall damage\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 100\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.aeroSet = true; - player.noFallDmg = true; + modPlayer.rogueStealthMax = 1f; + player.noFallDmg = true; player.moveSpeed += 0.05f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; } public override void UpdateEquip(Player player) { - player.thrownDamage += 0.08f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.08f; } public override void AddRecipes() diff --git a/Items/Armor/AerospecHelm.cs b/Items/Armor/AerospecHelm.cs index 5abe814f04..f531b427b1 100644 --- a/Items/Armor/AerospecHelm.cs +++ b/Items/Armor/AerospecHelm.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 50000; - item.rare = 3; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 3; item.defense = 7; //20 } diff --git a/Items/Armor/AerospecHelmet.cs b/Items/Armor/AerospecHelmet.cs index 1d494ee5a3..d2a6787d21 100644 --- a/Items/Armor/AerospecHelmet.cs +++ b/Items/Armor/AerospecHelmet.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 50000; - item.rare = 3; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 3; item.defense = 2; //13 } @@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor } if (player.ownedProjectileCounts[mod.ProjectileType("Valkyrie")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("Valkyrie"), 25, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("Valkyrie"), (int)(25f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.16f; diff --git a/Items/Armor/AerospecHood.cs b/Items/Armor/AerospecHood.cs index c68379c918..be31ecfdb5 100644 --- a/Items/Armor/AerospecHood.cs +++ b/Items/Armor/AerospecHood.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 50000; - item.rare = 3; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 3; item.defense = 5; //18 } diff --git a/Items/Armor/AerospecLeggings.cs b/Items/Armor/AerospecLeggings.cs index 5f12ec5228..552ab8bfdf 100644 --- a/Items/Armor/AerospecLeggings.cs +++ b/Items/Armor/AerospecLeggings.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 57500; - item.rare = 3; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 3; item.defense = 6; } diff --git a/Items/Armor/AstralBreastplate.cs b/Items/Armor/AstralBreastplate.cs index 8f0933a58e..eee2fb8565 100644 --- a/Items/Armor/AstralBreastplate.cs +++ b/Items/Armor/AstralBreastplate.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 470000; - item.rare = 7; + item.value = Item.buyPrice(0, 24, 0, 0); + item.rare = 7; item.defense = 23; } diff --git a/Items/Armor/AstralHelm.cs b/Items/Armor/AstralHelm.cs index 49b965c807..a0030af0c2 100644 --- a/Items/Armor/AstralHelm.cs +++ b/Items/Armor/AstralHelm.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 500000; - item.rare = 7; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 7; item.defense = 13; //53 } diff --git a/Items/Armor/AstralLeggings.cs b/Items/Armor/AstralLeggings.cs index f38f4cba34..04a0cac581 100644 --- a/Items/Armor/AstralLeggings.cs +++ b/Items/Armor/AstralLeggings.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 450000; - item.rare = 7; + item.value = Item.buyPrice(0, 18, 0, 0); + item.rare = 7; item.defense = 17; } diff --git a/Items/Armor/AtaxiaArmor.cs b/Items/Armor/AtaxiaArmor.cs index c147f15b2f..5724556f75 100644 --- a/Items/Armor/AtaxiaArmor.cs +++ b/Items/Armor/AtaxiaArmor.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 400000; - item.rare = 8; + item.value = Item.buyPrice(0, 24, 0, 0); + item.rare = 8; item.defense = 20; } diff --git a/Items/Armor/AtaxiaArmor.png b/Items/Armor/AtaxiaArmor.png index aa3ba89f66e7bb17d4698590a91928dc40eb56b0..525fb6b485ef8d269a8a5edd570cdd40f1a4b22c 100644 GIT binary patch literal 791 z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oj!Cd5qo zeb3=Q&YulHEYdannubkUGy8Rb*`lWWk|AUs+JBB=KPgJLOn_^xHGy72v0R3ySP=2BI06fdFG7BqGZ;tq@^4@z^zuK6WfK9#PV_wPO1d z&OY{W&Uao^AU9LD$-r|-dX%JjkAxnvg35nO3uAsIZDA=jIRtzE0H(hIgMVB>`;&9z zKr-C00Z_bVR~5o_A{<~#5?WBlN+nT`t>$z1`O^c4a6h3bU&%W_@&umEM)`9_!vLA3 z8pfS38s2R|O6tZxvALj~@hYZ7?0=|os%4Oyaq8e;nh*bqItaxX4GfoeL3CD;9e5ed zupPr!x9zA1JGykO{f+W3B^u|8cNS~O_iXSzkj^V%AM**yKxX(l{9@okQzSoZ?^T&X z!P!p=*#E!@sm14HpELBb5e?(5sZqdA3NJ2GKR^8nZ87nU-m8!+c40Iob`OwJeL@^neUT0&Ic zh14FNa}lXJJ~ojw5cZ+d(2HY+!8O(Pvxb<#N231m`N%8TRd+}{oq6WYGd|CVvN#Zm zaON8{k->TQA#B`VukC&>B7D%aKrALz#CZXv3N!6h z}RWfM})s diff --git a/Items/Armor/AtaxiaArmor_Body.png b/Items/Armor/AtaxiaArmor_Body.png index 3e1a44d881a6386016a2ccbf57ffd9cb02f8e593..f890e0b41408ba60512791e1f52bf6e7c32770fa 100644 GIT binary patch literal 3144 zcma)8c~p|=9`@d9niw5tDl04W+(b>B$}%s5hDVlJhkmbgqN#^m6L`^sE8jfs}I zC!m)5ik2EK37M1IfEz?^XsLjjprYakf)}Uk%suy>IrsbL{m%J*-+7<+`906`dlN4? z+Gqd{1Ju;iG!V8{&Z_men%Yj^Pd`z;k(>A9)zs8A5mx72BPk-DQ<cbG+ynS>@8C;lU-GiIPakx-W!xe_ARlJtHVN~X88fM}$|NXdr|fa9_?J`h5iKChW`>}?KveB(E}b{5 z)J+39c+-dKypZ~G;BPy8+O%t4)NuT;?KDPsC-7P5yaR$q^!ACY6Rusf^aNqh{Dcz1 z@aabUTr!j&=$2Wj5?OBr#z2p~~S~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j4uZ zK^r#uU1OXhTGKhfX$q&b*ed`E=;mH$o~TDR(9zEi{S+kJM0naWuc{ENSpgj}%N zF+@vul&N}?M1ZbzENMCP)(juMEgnOFCKW#a>U+wrnX`6TBd&q(BDQ6XopCV&c8`TK k=XLr79MwPQ;%(mod); modPlayer.ataxiaBlaze = true; modPlayer.ataxiaBolt = true; - if (player.statLife <= (player.statLifeMax2 * 0.5f)) - { - player.AddBuff(BuffID.Inferno, 2); - } player.rangedDamage += 0.05f; } @@ -66,8 +62,8 @@ namespace CalamityMod.Items.Armor player.ammoCost75 = true; player.rangedDamage += 0.12f; player.rangedCrit += 10; - player.lavaImmune = true; - player.buffImmune[BuffID.OnFire] = true; + player.lavaMax += 240; + player.buffImmune[BuffID.OnFire] = true; } public override void AddRecipes() diff --git a/Items/Armor/AtaxiaHeadgear.png b/Items/Armor/AtaxiaHeadgear.png index 8ef0bc79b0aaa51d8793a579cc1163f3b29b90fe..01ce905cb82dac344c5084e37e1091c5e480c1a3 100644 GIT binary patch literal 397 zcmV;80doF{P)rx`UibLo1m3s-MCy( z!HCkxG_`DT?@%L`i$b?|HO!fF=9%}L5!lKmrvYea?Jj*NKAI2!?~l&_6e{-s`1(m6 zL?V~SIugxqtphN-vY_ne&#wWvI5`GjxD!(1-VyGkCjnTTi2-m`r~+{LVtJ(3YmNnE z-eJ-3hR~l0M}&QY?WIb(y_$0^aCcU+3Gs$dhjol8i1!#QSmf2F{hk=)vZ4q z)O_N92&E*cR3JD6K)coK0z_j;0BY5WMfjz;6Pjg%-Glvs3H@%twYLZM%7!DcBnt#W r0-)9Y09>Bjt6v3`Cdq=jc?-Zd=Wb&nQQ$Dg00000NkvXXu0mjfQ>n8` literal 297 zcmV+^0oMMBP)@*QRMU>fFfctla%V3>gwU5#KHS1#Rx64tOF5>u4}i^E)q?v4GY zE}{4k9>!ER7(I+}g&nT+4D(TVv=2&HV}vo)4aSu^=IYymr8Lb@-K-L%3KkIaoCl`S zlPgB{MNb`6GZ^MB3kDgKG6W`WqoM_7T8i+4Y2OZ1mt&-3^vI!^!MIWZx`l@h#DSIC vIV=LxCm5c9gO}tYl4b@I3No@?Osv5G={$)u`&?i@00000NkvXXu0mjfVh(tC diff --git a/Items/Armor/AtaxiaHeadgear_Head.png b/Items/Armor/AtaxiaHeadgear_Head.png index 571817dfba0b02b8ca909f59e76562e93027a306..641731d4b327fd47b8d25c4a917a8a3897a563e5 100644 GIT binary patch literal 1024 zcmeAS@N?(olHy`uVBq!ia0vp^8Vn392^?%d*6dv(^$ZNm$30yfLn`LHy=B`SlPb~h z@VJ0SqQXTdMHUkUjblz51pjEf(Pg>(YW>Id9Pxk+0)H4MF6dp5(3GLVvS>l8nh>|* z2CGP`+Ym>IWx7kzk?(NK(l^=V;L`q zcAnbr7d{0~|6Wc{OM7e>F+E5l#AERnK^Uq>)*c{*z204;}`$?xcc75JCD_YCT>-q z7gPQBQU3mOXWmK0zFS|BYT9^J_UYI1dvj;ref{vd_4R}6?f#^sm8tKJ2Woz4_p`kG z{%n8S-5T~R~ai9BX zMUY(Rsl{HEA)5VKPXm|QteWDE-!!l+CBfHl7@H4)-i8D&CBerqI}pP+Q$b#Y7)^ex ce)#Z*wX^Bdx2I=T>;VOUr>mdKI;Vst05!GQ3jhEB literal 3045 zcmds(X;4#F6vq=oc|{>CYE>jeDruz@(Sm|3Mg$Rwq5`rAl8jQI8Vn#HA&|tRpjIg~ zl`w*`bijo*iV0Q;i-HspWD$XgAtng2L3k>!xPb9gT zn)MzuIB}~0swGiqHksqmi zyuaYf*OKQWcQsLi?bD-y{Xtc@%id|&;o8#60R5|$DS*o?W8rtLi>`9cX1x|Qn6uLi zduXF&_qiPC z&aB?3S^*!@o9rHx#wU$><7vG5TBGV?7KD+z5t9>wvDVa5$HX*J=GVIodTy54Jq{h@ zZt_VhK57+?;GMwQ#ZHR!pJu8QW0ZzU>V!O_LDGL5xuY15(P6oFXl|q3S~s1~&}{m+wk|+E8OU|QtZ{Iq_eJet zoP#wEWviLM(>vx}QUHK)(P%D5x~Ax5lTqhZVYZCh+_bGe=7IapI7k&Ns&rn*W4E%c zqpNsM@*tb*$jNHOe%EPwy933dwl;^^{uFvm3W+nrP^*Nyz*_)US00i`N)*zY`Yu}y zb}ep}pxz_=JiXee8&(!u%F_u%vs$6%0Wmw-OkUIBE(Qv5MAD_Wki<6xWlHVr2cnbY zh=~j#Ukj6Q&ne)hz7&fI_C+xK;n+J}<%lM|f;!xLYY02ekO!%sI*Ggog)r6e!<|O2 zt6=M42?q{REWX7Xykth9lS=Yxv^!5hdxj54ARS)U9xg~!VK0=KjlV!)DIE&PxT%Hw6|oI&<83Q9*gqo*;lZcd zCGSm)BM=&|sZ;VrC$&CLc^yaTnZlW+#*EzL;%GAfk#@BxxhcIQ;GiGcPs0n`x`gEj zn7&rHZ=0rr++6(}u27 zJIBuLdyq2<1Er14e$nY!!YczB!Q)74T%n=)U(~91h`>fR_qD)ehZ!@i`%dJ%1b@azGKCfBwfa1t6oPvzZa@G};u&VL@*E5G56CD6iIo z4MmjKR?y(bkC9J^%v3S2-&9jP#Zpmhw;&IzLhvddJ>DMN=xu(jD7i?jfXUmuus(;G z8V8~3JV)xtetmrYDKv-0eRWM<5n3X-WHrcFAK;fD+{JoxZS)=1oEuKw2CDla$OT-S z!<6Bj!RGR@k@;_PGB=cLF=rJ1{Xao6<5iXqPM8i-_=Wh_V;IAtw{z{XV@#!O( z0e%6uBBB*d^X91dNU1q&Mx{=?AUoD?8$Py8ocY7*3ySpQ&`~e4%@NK&8c`RfdPa44yB`s AX#fBK diff --git a/Items/Armor/AtaxiaHelm.cs b/Items/Armor/AtaxiaHelm.cs index cc5814eff8..50fc506c69 100644 --- a/Items/Armor/AtaxiaHelm.cs +++ b/Items/Armor/AtaxiaHelm.cs @@ -17,15 +17,15 @@ namespace CalamityMod.Items.Armor DisplayName.SetDefault("Ataxia Helm"); Tooltip.SetDefault("12% increased melee damage and 10% increased melee critical strike chance\n" + "Melee attacks and melee projectiles inflict on fire\n" + - "Immune to lava and fire damage"); + "Temporary immunity to lava and immunity to fire damage"); } public override void SetDefaults() { item.width = 18; item.height = 18; - item.value = 450000; - item.rare = 8; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 8; item.defense = 25; //67 } @@ -48,10 +48,6 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.ataxiaBlaze = true; modPlayer.ataxiaGeyser = true; - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) - { - player.AddBuff(BuffID.Inferno, 2); - } player.meleeDamage += 0.05f; } @@ -61,8 +57,8 @@ namespace CalamityMod.Items.Armor modPlayer.ataxiaFire = true; player.meleeDamage += 0.12f; player.meleeCrit += 10; - player.lavaImmune = true; - player.buffImmune[BuffID.OnFire] = true; + player.lavaMax += 240; + player.buffImmune[BuffID.OnFire] = true; } public override void AddRecipes() diff --git a/Items/Armor/AtaxiaHelm.png b/Items/Armor/AtaxiaHelm.png index 186a7141d4f385aa4ddec2c533a88650ec8fe18c..24ad176f65e074c90d88ec366e789872818efa99 100644 GIT binary patch literal 454 zcmV;%0XhDOP)9>)r7V-*c-7|`~m(zu^0rSg9R-P-9!gLaPc1~IOrm{C{7(6#oa|LWY9G@ zw1Nm)9R!O)5p*zUn@W|IRIbBKnxuMwMhlTd55?7MCLU)Lh@+?^R*+`+Z)(4Ib4uMCv$2OCJ(@7k`+eR}m(ZPL(Q#gO+YR|!mu`}THod@7t zc^4Qx9)pSc?0S!&M1_tg@18zG*PACVropwzTi|7zY*d`vD4a)?WF)1V=#Dyhdc3lj zk=?zCu4kWrFM)xi9N44f!Ya7&ejZ%!FQfZA=CY;LelS0f1^d*+%V4H9m4+oM7W*Pt zYJN|lc4!#XzGQPKSzG|6={I079?oqPG})kk$4;>F=T{0t@t$0QBh_r8&eW#B?)?YC w{@VI%>5vtRS<+jr)inQ!9+Ds5z6wh84;rm$|AnMTn*aa+07*qoM6N<$f{4}CNdN!< literal 436 zcmV;l0ZaagP)Z3?k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rPu34M0nyxBdbeN-YjP@2g1hX09|S_1gR9g=>YMA5x0(q{v^3JOv==9h$$eD1Xmx{7367b zYUlsjfnAd}Oz0~i+&&1H0$y2R4M__M`4^D09yI$N^sd}c z!b($y;98D)?auNrwfH<}Ig+hBoitwn(`SeQ)n~{Tu{74@R9&q55V}}1po_6Cryhi( z0WV{X1}w&U59w8`E3hL%eXJQ!VhRKLuH2A6_Wu@Y&$M8dEvf=?UutiF1k-i+W1m4W z8X!iZV~&WAiBOKm_L&_M7Tv=OO9l#=%`YT0xku`y6ZqJnhwO{nY;wWx>r-QO=$qVR@ny7V9O9! z590Brm0aHO_n^N&YHxExvQ-u+PUw0SC_3Pdvh(Yx6?yUVt7qk#$%YJ(3?s|IEy)lX zpc`2^Ri7c!;>gf|YKpc63?pMeUu8(Kb1_4K&3$c#43ValDAN0pE!jifW@Oq`sm=$h z*sLitzEaBN6tTDD-t4>r?Z{_{T01)1X^@UG+m2T7rS4V)6NpJ4-=DqC%ayu2!Wf*7 zfM3-vMi7gai;*i8XR2)haDB`6_K#4G&e!Y2(1gTgI}(q(Zi5 GQvL$f&}h~G diff --git a/Items/Armor/AtaxiaHelmet.cs b/Items/Armor/AtaxiaHelmet.cs index a1c5161757..2139b51470 100644 --- a/Items/Armor/AtaxiaHelmet.cs +++ b/Items/Armor/AtaxiaHelmet.cs @@ -17,15 +17,15 @@ namespace CalamityMod.Items.Armor DisplayName.SetDefault("Ataxia Helmet"); Tooltip.SetDefault("5% increased minion damage and increased minion knockback\n" + "+2 max minions\n" + - "Immune to lava and fire damage"); + "Temporary immunity to lava and immunity to fire damage"); } public override void SetDefaults() { item.width = 18; item.height = 18; - item.value = 450000; - item.rare = 8; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 8; item.defense = 6; //40 } @@ -56,13 +56,9 @@ namespace CalamityMod.Items.Armor } if (player.ownedProjectileCounts[mod.ProjectileType("ChaosSpirit")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("ChaosSpirit"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("ChaosSpirit"), (int)(190f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } - if (player.statLife <= (player.statLifeMax2 * 0.5f)) - { - player.AddBuff(BuffID.Inferno, 2); - } player.minionDamage += 0.4f; } @@ -71,8 +67,8 @@ namespace CalamityMod.Items.Armor player.minionDamage += 0.05f; player.minionKB += 1.5f; player.maxMinions += 2; - player.lavaImmune = true; - player.buffImmune[BuffID.OnFire] = true; + player.lavaMax += 240; + player.buffImmune[BuffID.OnFire] = true; } public override void AddRecipes() diff --git a/Items/Armor/AtaxiaHelmet.png b/Items/Armor/AtaxiaHelmet.png index 8a4ee9689719bfc1af3f0b50bdc348abe16ef6f9..93c34cfe64aa228668f75885f1ce08a0ddc35e92 100644 GIT binary patch literal 442 zcmV;r0Y(0aP)CpLCWj1+;e|$?w9ABdlLiAR^~#O8q##NmcVYa0k(Ix zjMCW1)k7#*oH+vy3OUf}wNtos{RVimvJ48vasu5>Yb04_L^%Ub#=1RFnLi5_>KDM~ z`UkM{`CU3p7Ca4PnR=AM?OOkaXN~?1<@uA~+P#}#_0fw!W|%B^mOatqE9aw)hi^B* z)?@-NaPqHPNt<0rR>P;9XJGE2=&!4^rYd?R0jrM+&;KZ@we1qw^HXBhDTN|J7_bmp6H(46bXWU022xNs~8FV|X$g|M- kf6h-HO z*H1wLr-k7M-mu2$VyYR8ZV)Va!6FY9hUhL&zIYg{M1w&DOrQ9E1?*V3i>YofdioSo zl>^&+ma>JcX1A zFhHo3!|7t084Pn7%z{#VO|a1MHy^>;G*yYqlS^Mh_sFqBEJyruSgakjxuw1TGk7}+NKXvmjNovRik4PQn10OR!UTni zMvi+5b2o_XX5Ykk@Qihl+3U|H>3oNOp8Zg$XZ+zD!=L?kgT*cC-aI+C_V@k&CARA; zS66S}d87W}zFgfef3(-X+qdJx&2wk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Hood.cs @@ -18,15 +18,15 @@ namespace CalamityMod.Items.Armor DisplayName.SetDefault("Ataxia Hood"); Tooltip.SetDefault("12% increased rogue damage and 10% increased rogue critical strike chance\n" + "50% chance to not consume rogue items\n" + - "Immune to lava and fire damage"); + "Temporary immunity to lava and immunity to fire damage"); } public override void SetDefaults() { item.width = 18; item.height = 18; - item.value = 450000; - item.rare = 8; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 8; item.defense = 12; //49 } @@ -45,14 +45,14 @@ namespace CalamityMod.Items.Armor player.setBonus = "5% increased rogue damage\n" + "Inferno effect when below 50% life\n" + "Rogue weapons have a 10% chance to unleash a volley of chaos flames around the player that chase enemies when used\n" + - "You have a 20% chance to emit a blazing explosion when you are hit"; + "You have a 20% chance to emit a blazing explosion when you are hit\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 120\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.ataxiaBlaze = true; modPlayer.ataxiaVolley = true; - if (player.statLife <= (player.statLifeMax2 * 0.5f)) - { - player.AddBuff(BuffID.Inferno, 2); - } + modPlayer.rogueStealthMax = 1.2f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; } @@ -61,8 +61,8 @@ namespace CalamityMod.Items.Armor CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingAmmoCost50 = true; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.12f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; - player.lavaImmune = true; - player.buffImmune[BuffID.OnFire] = true; + player.lavaMax += 240; + player.buffImmune[BuffID.OnFire] = true; } public override void AddRecipes() diff --git a/Items/Armor/AtaxiaHood.png b/Items/Armor/AtaxiaHood.png index f458d6a40886789aaa3307a287e9f8ab1dec71e0..7f066ab82a4a6e2d0d4a232c756740c28028ec7b 100644 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+$R58Qb-BKL+$avq$YhXG0j`|wPCBU++7DFXTj;dJ;>R#)q z;ZpU6TF;rjcw<68PI%UHx(xe3pTKFvbX$O`X6c3}h9;S}P~dGG?wZifyAg$5iOLiJ z6zg=NUKRCvJL0*H=v#@Cwj?xp7x>&ONRat8r zQp-Vh1+rTGq9dNyZ^|jGYcIxrd$w6{1eyP}qxWFpIOGM=J0LHd`vw-NwLKegfNoM3 zkb-v_zL&yq>eufv+((99w|i$%wHT9&*<XiWD4+l$zZWj8{xm%eOMKB39dqL{!1yAtUoF@MLYF`7uJ+%0WtKs`V1 zI)zkZ^ZSRCTcN19FLZRg?7;@U=RUG{O8 zXOqv5wMi1hviz$VX_k*yfE2Iqw)3P#yBClgh`D0EB+EwFt+X=HLBbMU%!lb+p%9%&fa%1YxaJ92$VdA7 zByZ|GTn=|$^sA|J)nT~vr)X2^QMjelOSy3Bnd_m{wVUA7wZ2g2XFjI>-t$gHdt9M0 zEAGKNzB|mc<45GsjvvjHIaA74yKUtzljm_JSlMLkN*nvj9=b*w=!ZfasLhxJF(mod); modPlayer.ataxiaBlaze = true; modPlayer.ataxiaMage = true; - if (player.statLife <= (player.statLifeMax2 * 0.5f)) - { - player.AddBuff(BuffID.Inferno, 2); - } player.magicDamage += 0.05f; } @@ -61,8 +57,8 @@ namespace CalamityMod.Items.Armor player.statManaMax2 += 100; player.magicDamage += 0.12f; player.magicCrit += 10; - player.lavaImmune = true; - player.buffImmune[BuffID.OnFire] = true; + player.lavaMax += 240; + player.buffImmune[BuffID.OnFire] = true; } public override void AddRecipes() diff --git a/Items/Armor/AtaxiaMask.png b/Items/Armor/AtaxiaMask.png index e19479f6ce24810ec878fcbd6e3ae993622e98b3..6f1e5446b2366f9fc13dfead8eae949ca077825d 100644 GIT binary patch literal 463 zcmV;=0WkiFP);&_Heh2?6qEyjAxOnOWSg5V_;K{XVaC>e(;O(DhrZ`6LZ-j-~8koC(9Xx;f4osDf zg1a-5;LV3-urE`OdvJ4f0?eFEUjNLMk$`yX;VZDzZrRI!{o{KuA1{`oY!zP}y8u?# zH+%f??()!a@NA_TY{(5KH`-YZJsr#qM6kKjm8s(R%SH#R$J?Nq6iMSy4312l29wia z-apR22ld(_C>F|~vwL24in~z~KnLm?+%!K{4!9!{|5EiV%mpnQxOk# z6EDlTd<0AFR+8(XB&RPPJPMQ_gw*R4+2uI>NdI!<#S&QVw1Y;b4QrgNfOa!^gI4n^ z7#CG+Ka($vfp{|5X6e}wt$^%(#F002ovPDHLk FV1m#_-rWEI literal 408 zcmV;J0cZY+P)KVPe>5m^zpoOg%1fxM4K20A{dxNHEw@C)cb+aX7kTY#PeVPWZLriYRr_Mf_hHJ=bl zP4IjGGmT~z@QX-;?GTcdLUB1PH7V+wg2lyD<-jz|hcKU^^I>rU_W{i;fH~KKQwLm{ z!hj9bCr6$>0}I_?c!T0I7zgGvm``Ei8Vn*}COj3<+yZpx;j++DgdatzZ-*+Fe`noo zFr75}I+#B3{R-IeI4c*LTY$?)rTUs+DNQqo3Y8#;4>ngoe9(Q7NFUJM0+@xcpgXkP z4{zAR)Z?w-(R~5p)7%1dpTPLARD002ovPDHLkV1fYV CTd`^Y diff --git a/Items/Armor/AtaxiaMask_Head.png b/Items/Armor/AtaxiaMask_Head.png index af7fc7a2ab496ed7727f9af109daf56f3e3497b3..7efd79c7400fd9c77ad8c0c356c80cee46a325e2 100644 GIT binary patch literal 1122 zcmeAS@N?(olHy`uVBq!ia0vp^8Vn392^?%d*6dv(^+1lMr;B4q#hkad?7KtC8CoAE zD@k~ENV#w<3;e?#R_3J8ySCQrbb|T~cBLhrqL-FjaJ!hFkgcltGDk^+C0vnX-6Cxb zMFGR31&fV06kgkGRDJ#V%d&4qF?{=X8Xuj_;E;TJch%#?)qQ(v{=T1mdi%CN_g}C6 zneaD1w|4FCro&G5^DU;SSk}HhcIAJ1y!_v$=;wP2zP(xV>{hw@WR>aX?)yxV`BC9M z>B*aqe?2GN&s)FdC7b!5rsDYr6AuQ*zww?VW537Pv*^X@y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9Be}5Ly&+risK6&W>6-lKMC-yJ zspek=ZP8I6x`Y3{ms5ZMw4(hfob_xPHwbw4v5GOE;l7AC7R?tC5zf5*l{6}5=a&$2 z@*Eq|HIRIy2Fx{n>uwrtX^yYXp9kr$3HyZ{2o8=R5Z}$Xc3D&ygQ)n00+8;RvbP6Z zJ0yw8zfb`6EKndK$|zug1lFY#&Rg(vO2OK zqmE3g-E}}~LIqJju8K-2I`iXDd&aYjT8U%B1bj*Hi#@Ak&Eql$&9n zuaE+JEn8OYok`D~XSN)fmW!~?i_c91drGt7wLkDkNpP{)QhbOX`qi>SVzS)>Jj>gkjpI~u;YaJydsUBPWk>Dd1Jl=?(3M5 z?vGVpVL_3?AgI7%%SwIVc}2Y|ejxOm(@7MLg5+KvV8x-D*%rnW>bcRA%0AEdpq{hA zEP~(!@P diff --git a/Items/Armor/AtaxiaSubligar.cs b/Items/Armor/AtaxiaSubligar.cs index b0edc5d6a1..0bfe5baa96 100644 --- a/Items/Armor/AtaxiaSubligar.cs +++ b/Items/Armor/AtaxiaSubligar.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 412500; - item.rare = 8; + item.value = Item.buyPrice(0, 18, 0, 0); + item.rare = 8; item.defense = 14; } diff --git a/Items/Armor/AtaxiaSubligar.png b/Items/Armor/AtaxiaSubligar.png index f9127a0acd8be5e5ac895a1f45ff224a1ad861f1..677ffd9a46317cbd6eaa1037c4fc8f130d851d48 100644 GIT binary patch literal 395 zcmV;60d)R}P)ivC^XVkh>9Pj>L6VL){3~g2;JJ^?9#=-zrn%9rE{s>1Q*v*S}kNL z4i&*t`~W{tK_eKjBE-Qygg3U-!Pk2{=jQM`=eckoK=kADQp9*#JOB;p=19G7 zco3D1g5oC*w=ETq!0Wn3knc`|iBBuw-AF$utQW!D`3Xp+AEI*W_=r2(uSqY?OJ(>l zl#du@3LD^8=@fLN8o*?}J>q-wr2rn(rQ*%;4dVLC+P@mllE2-iA3Jd}kcL!D=juV% zi^t&S*IiU@7*bK)pV~eHdt0mJScwxonI~l!Z@K>EzMUL{!$+BjG2}CB7L?gP1Otst p;Qh{~`ysAYc;)};Unz-=_zK3dWx9$N+-m>;002ovPDHLkV1mxsw=Dnw literal 378 zcmV-=0fqjFP)(7xf@zqKU?Fm6-EFY=^-~aa$KQNJ z2^n;sW5n@*TRbn%62*tGID+{sY0`195V7ir_A#*r6044Ai_zma`Ql-)59jLJg6ZxP z5FeLXKtcvxo@#MSH;d7IVjdC<_SwlbYr(X}cNQ>xgYyrVMwdqq8KQ%lZWar0N}!a@ ziu$HtpNOf-f$3MbAAxBYxPS39mi_@% diff --git a/Items/Armor/AtaxiaSubligar_Legs.png b/Items/Armor/AtaxiaSubligar_Legs.png index 09e2907d2b2cca04b97cf0c3c71a4c461513464a..2de451694786410cac79ddd8a839cf97d5b1247c 100644 GIT binary patch literal 2080 zcmaJ>eK-?p8&|o?ic@bYq|iAtQCOzNk?EukJH`ql-y$2zc6{e^y{L|eY#r=_Q9hb{ ztBsL&LnQu3Ww6kN5uPd7kUO?)!f3-|u(diC1ha6!sq7D}a&@CT5Al%3q zKqFijth+gi=UYpS03cvzOIH0K8}a4`K+Y!<@fS8Srj&o%+g)k2 z6k>`~V@8avrUVN~^BB9;?5J0ZYXx~T2MSG9GzY2G*oeF>t5Li8$ za9rbR3eazh$tC24QqEZsQq*BUcwNw(?GWvg*NpyJ1EOnlhicd@T~mqAsv{xKQ4L81 za?OG&myH|*ipj9}Q#@VuKlAb-XgGn*j6e|#mwB@T0+@L5F>tzVSjmd;gKHxYF5YA_ z;E}ttsEPnZRhZe2@SoQfN`cdo#}@t3$DWG-=V1G7Ub~ZBfJWXcH}i)BBG+n{IhcOT zN^5)+flO-`0(~XB=>yA4r4Yc*Zym{GDlemh{-$(Y#(|U?Nv>ZWJGQ;x%&ES~Cs1P2 zC_*n1!uayowe9r;|07VE@v<$6bF&yHVRUhU?2!arTn=Ht4 z_u##!2j>ra)JHqmE=drA`7n0a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xje%IyiNLB}(M+59 zcsOnf&kZ|LK@BoP%wM9w^qEDyS~azK6^Fe#vEG^M;m!xJkcsXD+~E#%>lzxcTsQaN zvi{APnWIu@1f$u2*b!2ZY4NJc?Lf(>*__ru&OG4q?LI!w;1%!568$dFkMB(xwYp_j z#d>?&xf85RgVz7I!T5YgFc)i!689`9j$XFHNS#NcwAs(&;UsLh8h7S}mb7z2q*RVU zPadP&2YRXjAkZ`7?)17lo#U+on(THPqvlx~1||UysyUE-tz7`S90w21v6wS+-tYi5 zm|_9kE~m*4XpV=n2-3zM{4B`}Er`Gi*m0MQc>(4xKbCXky0Z>}Cd*cmfzv_6~xPW8)z?S9J(?ABnW+A1H&#q4zV6 zz140oIJ`BppOBsW=|`mG6Q6wv)>oI1YMo>#KaImJ8w03~PleDw@D#YbBhuu++WWxv zmv%3EK%!wK);1wZGIaB|4YB7~CN4jXx9oi#6y~mnaP8q<&>L%68=nGQ-$i}+;w!^Q zHTyK~-`dPHsLw2a)Adw)GVl4{)i+9QVD-XchP<@t-b_II@vre;vcA!yVE(;G%ek{r zm7jTbGt&M~;_|EN$!|Xfw~z<0?p!T|xzW!v0guIBqr?(|Z6l|_!oN3Q;t@?M&9xoT zYwpC!Lo0b>`cmfW)LNBEpC-hWZBf5hPFw(``y>CUU!w`7b%M*EII)Dh+VLnT7K#DX zXX;_AFKH%{zD_Nw?o-nd@!Xkjz^b| zN16Y;eTiEw$v|SoLNT*;bwpF<{GWehGICF)9KhrcKO;xte*gp!;&ck*F6jUO002ov JPDHLkV1ikaez*Vt literal 0 HcmV?d00001 diff --git a/Items/Armor/AureusMask_Head.png b/Items/Armor/AureusMask_Head.png new file mode 100644 index 0000000000000000000000000000000000000000..8c0bedb1919cdbfaaaf0cc63c5767cbad073cd12 GIT binary patch literal 5184 zcmeI0Ydq9x8^?!cdd5s@1{o?c*b>Vat(0h*X+mpNgw!xjD;DEijYBhJ@C&pR*v_x-*Ct|+DrYUnQaO6IMCEIbWQ$n6 zA2h6PMRD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Color = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(1, 44, 0, 0); + item.defense = 48; + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/AuricTeslaCuisses.cs b/Items/Armor/AuricTeslaCuisses.cs index 748b15c4c9..7c8407ff60 100644 --- a/Items/Armor/AuricTeslaCuisses.cs +++ b/Items/Armor/AuricTeslaCuisses.cs @@ -25,20 +25,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 8750000; - item.defense = 44; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(1, 8, 0, 0); + item.defense = 44; + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/AuricTeslaHelm.cs b/Items/Armor/AuricTeslaHelm.cs index 256533acb3..9154471758 100644 --- a/Items/Armor/AuricTeslaHelm.cs +++ b/Items/Armor/AuricTeslaHelm.cs @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 10000000; - item.defense = 54; //132 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(1, 80, 0, 0); + item.defense = 54; //132 + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -66,8 +56,8 @@ namespace CalamityMod.Items.Armor modPlayer.silvaMelee = true; modPlayer.auricSet = true; player.thorns += 3f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.crimsonRegen = true; player.aggro += 1200; if (player.lavaWet) diff --git a/Items/Armor/AuricTeslaHoodedFacemask.cs b/Items/Armor/AuricTeslaHoodedFacemask.cs index 4d851600fd..ff7dc9010c 100644 --- a/Items/Armor/AuricTeslaHoodedFacemask.cs +++ b/Items/Armor/AuricTeslaHoodedFacemask.cs @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 10000000; - item.defense = 40; //132 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(1, 80, 0, 0); + item.defense = 40; //132 + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -65,8 +55,8 @@ namespace CalamityMod.Items.Armor modPlayer.silvaRanged = true; modPlayer.auricSet = true; player.thorns += 3f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.crimsonRegen = true; if (player.lavaWet) { diff --git a/Items/Armor/AuricTeslaPlumedHelm.cs b/Items/Armor/AuricTeslaPlumedHelm.cs index 00fe6bb849..38604aed1c 100644 --- a/Items/Armor/AuricTeslaPlumedHelm.cs +++ b/Items/Armor/AuricTeslaPlumedHelm.cs @@ -24,20 +24,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 10000000; - item.defense = 34; //132 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(1, 80, 0, 0); + item.defense = 34; //132 + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -55,7 +45,10 @@ namespace CalamityMod.Items.Armor "Reduces all damage taken by 5%, this is calculated separately from damage reduction\n" + "All projectiles spawn healing auric orbs on enemy hits\n" + "Max run speed and acceleration boosted by 10%\n" + - "Rogue weapon critical strikes will do 3 times damage while you are above 90% HP"; + "Rogue weapon critical strikes will do 1.25 times damage while you are above 50% HP\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 160\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.tarraSet = true; modPlayer.tarraThrowing = true; @@ -66,9 +59,10 @@ namespace CalamityMod.Items.Armor modPlayer.silvaSet = true; modPlayer.silvaThrowing = true; modPlayer.auricSet = true; - player.thorns += 3f; - player.lavaImmune = true; - player.ignoreWater = true; + modPlayer.rogueStealthMax = 1.6f; + player.thorns += 3f; + player.lavaMax += 240; + player.ignoreWater = true; player.crimsonRegen = true; if (player.lavaWet) { diff --git a/Items/Armor/AuricTeslaSpaceHelmet.cs b/Items/Armor/AuricTeslaSpaceHelmet.cs index 45b05383d5..707f0d4e6a 100644 --- a/Items/Armor/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/AuricTeslaSpaceHelmet.cs @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 10000000; - item.defense = 12; //132 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(1, 80, 0, 0); + item.defense = 12; //132 + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -66,8 +56,8 @@ namespace CalamityMod.Items.Armor modPlayer.silvaSummon = true; modPlayer.auricSet = true; player.thorns += 3f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.crimsonRegen = true; player.minionDamage += 1.2f; if (player.lavaWet) @@ -83,7 +73,7 @@ namespace CalamityMod.Items.Armor } if (player.ownedProjectileCounts[mod.ProjectileType("SilvaCrystal")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SilvaCrystal"), (int)((double)3000 * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SilvaCrystal"), (int)(3000f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } if (player.FindBuffIndex(mod.BuffType("Mechworm")) == -1) { diff --git a/Items/Armor/AuricTeslaWireHemmedVisage.cs b/Items/Armor/AuricTeslaWireHemmedVisage.cs index 0d41ca69a8..641ebd3986 100644 --- a/Items/Armor/AuricTeslaWireHemmedVisage.cs +++ b/Items/Armor/AuricTeslaWireHemmedVisage.cs @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 10000000; - item.defense = 24; //132 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(1, 80, 0, 0); + item.defense = 24; //132 + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -65,8 +55,8 @@ namespace CalamityMod.Items.Armor modPlayer.silvaMage = true; modPlayer.auricSet = true; player.thorns += 3f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.crimsonRegen = true; if (player.lavaWet) { diff --git a/Items/Armor/BloodflareBodyArmor.cs b/Items/Armor/BloodflareBodyArmor.cs index 92a8a63e3c..11dad65f7c 100644 --- a/Items/Armor/BloodflareBodyArmor.cs +++ b/Items/Armor/BloodflareBodyArmor.cs @@ -25,20 +25,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1900000; - item.defense = 35; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 48, 0, 0); + item.defense = 35; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/BloodflareCuisses.cs b/Items/Armor/BloodflareCuisses.cs index eeb57cec64..cde79c94e3 100644 --- a/Items/Armor/BloodflareCuisses.cs +++ b/Items/Armor/BloodflareCuisses.cs @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1762500; - item.defense = 29; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 36, 0, 0); + item.defense = 29; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/BloodflareHelm.cs b/Items/Armor/BloodflareHelm.cs index ed7285c84c..2fa9adf0ea 100644 --- a/Items/Armor/BloodflareHelm.cs +++ b/Items/Armor/BloodflareHelm.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Bloodflare Helm"); - Tooltip.SetDefault("You can move freely through liquids and you are immune to lava\n" + + Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + "10% increased rogue damage and critical strike chance"); } @@ -24,20 +24,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1750000; - item.defense = 28; //85 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 60, 0, 0); + item.defense = 28; //85 + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -54,20 +44,24 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.bloodflareSet = true; modPlayer.bloodflareThrowing = true; - player.setBonus = "Greatly increases life regen\n" + + modPlayer.rogueStealthMax = 1.35f; + player.setBonus = "Greatly increases life regen\n" + "Enemies below 50% life have a chance to drop hearts when struck\n" + "Enemies above 50% life have a chance to drop mana stars when struck\n" + "Enemies killed during a Blood Moon have a much higher chance to drop Blood Orbs\n" + "Being over 80% life boosts your defense by 30 and rogue crit by 5%\n" + "Being below 80% life boosts your rogue damage by 10%\n" + - "Rogue critical strikes have a 50% chance to heal you"; + "Rogue critical strikes have a 50% chance to heal you\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 135\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; player.crimsonRegen = true; } public override void UpdateEquip(Player player) { - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; } diff --git a/Items/Armor/BloodflareHelmet.cs b/Items/Armor/BloodflareHelmet.cs index ee4288556e..828cc0ef9d 100644 --- a/Items/Armor/BloodflareHelmet.cs +++ b/Items/Armor/BloodflareHelmet.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Bloodflare Helmet"); - Tooltip.SetDefault("You can move freely through liquids and you are immune to lava\n" + + Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + "+3 max minions"); } @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1750000; - item.defense = 16; //85 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 60, 0, 0); + item.defense = 16; //85 + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -67,8 +57,8 @@ namespace CalamityMod.Items.Armor public override void UpdateEquip(Player player) { - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.maxMinions += 3; } diff --git a/Items/Armor/BloodflareHornedHelm.cs b/Items/Armor/BloodflareHornedHelm.cs index 53baa11cd7..c8ec9eeabb 100644 --- a/Items/Armor/BloodflareHornedHelm.cs +++ b/Items/Armor/BloodflareHornedHelm.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Bloodflare Horned Helm"); - Tooltip.SetDefault("You can move freely through liquids and you are immune to lava\n" + + Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + "10% increased ranged damage and critical strike chance"); } @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1750000; - item.defense = 34; //85 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 60, 0, 0); + item.defense = 34; //85 + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -65,8 +55,8 @@ namespace CalamityMod.Items.Armor public override void UpdateEquip(Player player) { - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.rangedDamage += 0.1f; player.rangedCrit += 10; } diff --git a/Items/Armor/BloodflareHornedMask.cs b/Items/Armor/BloodflareHornedMask.cs index 656a91f7c0..a0ea126773 100644 --- a/Items/Armor/BloodflareHornedMask.cs +++ b/Items/Armor/BloodflareHornedMask.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Bloodflare Horned Mask"); - Tooltip.SetDefault("You can move freely through liquids and you are immune to lava\n" + + Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + "10% increased magic damage and critical strike chance"); } @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1750000; - item.defense = 22; //85 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 60, 0, 0); + item.defense = 22; //85 + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -64,8 +54,8 @@ namespace CalamityMod.Items.Armor public override void UpdateEquip(Player player) { - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.magicDamage += 0.1f; player.magicCrit += 10; } diff --git a/Items/Armor/BloodflareMask.cs b/Items/Armor/BloodflareMask.cs index bd625c8315..0ca2e20a69 100644 --- a/Items/Armor/BloodflareMask.cs +++ b/Items/Armor/BloodflareMask.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Bloodflare Mask"); - Tooltip.SetDefault("You can move freely through liquids and you are immune to lava\n" + + Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + "10% increased melee damage and critical strike chance"); } @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1750000; - item.defense = 49; //85 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 60, 0, 0); + item.defense = 49; //85 + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -68,8 +58,8 @@ namespace CalamityMod.Items.Armor public override void UpdateEquip(Player player) { - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.meleeDamage += 0.1f; player.meleeCrit += 10; } diff --git a/Items/Armor/DaedalusBreastplate.cs b/Items/Armor/DaedalusBreastplate.cs index d4134736a4..1746b2ad96 100644 --- a/Items/Armor/DaedalusBreastplate.cs +++ b/Items/Armor/DaedalusBreastplate.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 250000; - item.rare = 5; + item.value = Item.buyPrice(0, 20, 0, 0); + item.rare = 5; item.defense = 17; //41 } diff --git a/Items/Armor/DaedalusHat.cs b/Items/Armor/DaedalusHat.cs index dab231d441..e00b5ad473 100644 --- a/Items/Armor/DaedalusHat.cs +++ b/Items/Armor/DaedalusHat.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 300000; - item.rare = 5; + item.value = Item.buyPrice(0, 25, 0, 0); + item.rare = 5; item.defense = 5; //35 } diff --git a/Items/Armor/DaedalusHeadgear.cs b/Items/Armor/DaedalusHeadgear.cs index 1a77a65d33..4f78a41bbe 100644 --- a/Items/Armor/DaedalusHeadgear.cs +++ b/Items/Armor/DaedalusHeadgear.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 300000; - item.rare = 5; + item.value = Item.buyPrice(0, 25, 0, 0); + item.rare = 5; item.defense = 3; //33 } @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Armor } if (player.ownedProjectileCounts[mod.ProjectileType("DaedalusCrystal")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DaedalusCrystal"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("DaedalusCrystal"), (int)(95f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.2f; diff --git a/Items/Armor/DaedalusHelm.cs b/Items/Armor/DaedalusHelm.cs index 4a06f121ff..db679bc5a4 100644 --- a/Items/Armor/DaedalusHelm.cs +++ b/Items/Armor/DaedalusHelm.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 300000; - item.rare = 5; + item.value = Item.buyPrice(0, 25, 0, 0); + item.rare = 5; item.defense = 21; //51 } diff --git a/Items/Armor/DaedalusHelmet.cs b/Items/Armor/DaedalusHelmet.cs index 30ed1d5059..ea555861d0 100644 --- a/Items/Armor/DaedalusHelmet.cs +++ b/Items/Armor/DaedalusHelmet.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 300000; - item.rare = 5; + item.value = Item.buyPrice(0, 25, 0, 0); + item.rare = 5; item.defense = 9; //39 } diff --git a/Items/Armor/DaedalusLeggings.cs b/Items/Armor/DaedalusLeggings.cs index 3e2b640afc..5548860ee6 100644 --- a/Items/Armor/DaedalusLeggings.cs +++ b/Items/Armor/DaedalusLeggings.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 262500; - item.rare = 5; + item.value = Item.buyPrice(0, 15, 0, 0); + item.rare = 5; item.defense = 13; //41 } diff --git a/Items/Armor/DaedalusVisor.cs b/Items/Armor/DaedalusVisor.cs index a666dcc5fe..5882d2dba8 100644 --- a/Items/Armor/DaedalusVisor.cs +++ b/Items/Armor/DaedalusVisor.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 300000; - item.rare = 5; + item.value = Item.buyPrice(0, 25, 0, 0); + item.rare = 5; item.defense = 7; //37 } @@ -49,10 +49,14 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { player.setBonus = "5% increased rogue damage\n" + - "Rogue projectiles throw out crystal shards as they travel"; + "Rogue projectiles throw out crystal shards as they travel\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 110\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.daedalusSplit = true; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + modPlayer.rogueStealthMax = 1.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/DemonshadeBreastplate.cs b/Items/Armor/DemonshadeBreastplate.cs index 076f78d22c..b727393f9a 100644 --- a/Items/Armor/DemonshadeBreastplate.cs +++ b/Items/Armor/DemonshadeBreastplate.cs @@ -26,20 +26,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 10000000; - item.defense = 50; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.value = Item.buyPrice(4, 0, 0, 0); + item.defense = 50; + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/DemonshadeGreaves.cs b/Items/Armor/DemonshadeGreaves.cs index e6d1bf7c62..33d6a0cd93 100644 --- a/Items/Armor/DemonshadeGreaves.cs +++ b/Items/Armor/DemonshadeGreaves.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 10000000; - item.defense = 50; //15 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.value = Item.buyPrice(3, 0, 0, 0); + item.defense = 50; //15 + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/DemonshadeHelm.cs b/Items/Armor/DemonshadeHelm.cs index d23cac0641..9f7dd85a81 100644 --- a/Items/Armor/DemonshadeHelm.cs +++ b/Items/Armor/DemonshadeHelm.cs @@ -8,93 +8,83 @@ using Terraria.ModLoader; using CalamityMod.Items.Armor; using CalamityMod.Items.CalamityCustomThrowingDamage; -namespace CalamityMod.Items.Armor +namespace CalamityMod.Items.Armor { [AutoloadEquip(EquipType.Head)] public class DemonshadeHelm : ModItem { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Demonshade Helm"); - Tooltip.SetDefault("30% increased damage and 15% increased critical strike chance, +10 max minions"); - } + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Demonshade Helm"); + Tooltip.SetDefault("30% increased damage and 15% increased critical strike chance, +10 max minions"); + } - public override void SetDefaults() - { - item.width = 18; - item.height = 18; - item.value = 10000000; - item.defense = 50; //15 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } - - public override bool IsArmorSet(Item head, Item body, Item legs) - { - return body.type == mod.ItemType("DemonshadeBreastplate") && legs.type == mod.ItemType("DemonshadeGreaves"); - } - - public override void ArmorSetShadows(Player player) - { - player.armorEffectDrawShadow = true; - player.armorEffectDrawOutlines = true; - } - - public override void UpdateArmorSet(Player player) - { - player.setBonus = "100% increased minion damage\n" + - "All attacks inflict the demon flame debuff\n" + - "Shadowbeams and demon scythes will fire down when you are hit\n" + - "A friendly red devil follows you around\n" + - "Press Y to enrage nearby enemies with a dark magic spell for 10 seconds\n" + - "This makes them do 1.5 times more damage but they also take five times as much damage"; - CalamityPlayer modPlayer = player.GetModPlayer(mod); - modPlayer.dsSetBonus = true; - modPlayer.redDevil = true; - if (player.whoAmI == Main.myPlayer) + public override void SetDefaults() + { + item.width = 18; + item.height = 18; + item.value = Item.buyPrice(5, 0, 0, 0); + item.defense = 50; //15 + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } + + public override bool IsArmorSet(Item head, Item body, Item legs) + { + return body.type == mod.ItemType("DemonshadeBreastplate") && legs.type == mod.ItemType("DemonshadeGreaves"); + } + + public override void ArmorSetShadows(Player player) + { + player.armorEffectDrawShadow = true; + player.armorEffectDrawOutlines = true; + } + + public override void UpdateArmorSet(Player player) + { + player.setBonus = "100% increased minion damage\n" + + "All attacks inflict the demon flame debuff\n" + + "Shadowbeams and demon scythes will fire down when you are hit\n" + + "A friendly red devil follows you around\n" + + "Press Y to enrage nearby enemies with a dark magic spell for 10 seconds\n" + + "This makes them do 25% more damage but they also take 125% more damage"; + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.dsSetBonus = true; + if (player.whoAmI == Main.myPlayer && !modPlayer.chibii) { + modPlayer.redDevil = true; if (player.FindBuffIndex(mod.BuffType("RedDevil")) == -1) { player.AddBuff(mod.BuffType("RedDevil"), 3600, true); } if (player.ownedProjectileCounts[mod.ProjectileType("RedDevil")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("RedDevil"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("RedDevil"), 10000, 0f, Main.myPlayer, 0f, 0f); } } - player.minionDamage += 1f; - } - - public override void UpdateEquip(Player player) - { - player.maxMinions += 10; + player.minionDamage += 1f; + } + + public override void UpdateEquip(Player player) + { + player.maxMinions += 10; player.meleeDamage += 0.3f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.3f; - player.rangedDamage += 0.3f; - player.magicDamage += 0.3f; - player.minionDamage += 0.3f; - player.meleeCrit += 15; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.3f; + player.rangedDamage += 0.3f; + player.magicDamage += 0.3f; + player.minionDamage += 0.3f; + player.meleeCrit += 15; player.magicCrit += 15; player.rangedCrit += 15; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 15; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "ShadowspecBar", 8); - recipe.AddTile(null, "DraedonsForge"); - recipe.SetResult(this); - recipe.AddRecipe(); - } + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 15; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "ShadowspecBar", 8); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } } } \ No newline at end of file diff --git a/Items/Armor/GodSlayerChestplate.cs b/Items/Armor/GodSlayerChestplate.cs index de7e2858e0..3fc92c3092 100644 --- a/Items/Armor/GodSlayerChestplate.cs +++ b/Items/Armor/GodSlayerChestplate.cs @@ -27,20 +27,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 4250000; - item.defense = 41; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.value = Item.buyPrice(0, 60, 0, 0); + item.defense = 41; + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/GodSlayerHelm.cs b/Items/Armor/GodSlayerHelm.cs index d78fc93f51..f75d882057 100644 --- a/Items/Armor/GodSlayerHelm.cs +++ b/Items/Armor/GodSlayerHelm.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 5000000; - item.defense = 48; //96 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.value = Item.buyPrice(0, 75, 0, 0); + item.defense = 48; //96 + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool IsArmorSet(Item head, Item body, Item legs) { diff --git a/Items/Armor/GodSlayerHelmet.cs b/Items/Armor/GodSlayerHelmet.cs index 9a505a7620..35e63b7e6b 100644 --- a/Items/Armor/GodSlayerHelmet.cs +++ b/Items/Armor/GodSlayerHelmet.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 5000000; - item.defense = 35; //96 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.value = Item.buyPrice(0, 75, 0, 0); + item.defense = 35; //96 + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool IsArmorSet(Item head, Item body, Item legs) { diff --git a/Items/Armor/GodSlayerHornedHelm.cs b/Items/Armor/GodSlayerHornedHelm.cs index be786e7763..602a3d60c4 100644 --- a/Items/Armor/GodSlayerHornedHelm.cs +++ b/Items/Armor/GodSlayerHornedHelm.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 5000000; - item.defense = 12; //96 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.value = Item.buyPrice(0, 75, 0, 0); + item.defense = 12; //96 + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool IsArmorSet(Item head, Item body, Item legs) { diff --git a/Items/Armor/GodSlayerLeggings.cs b/Items/Armor/GodSlayerLeggings.cs index f0ab1941c7..431580380f 100644 --- a/Items/Armor/GodSlayerLeggings.cs +++ b/Items/Armor/GodSlayerLeggings.cs @@ -24,20 +24,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 3750000; - item.defense = 35; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.value = Item.buyPrice(0, 45, 0, 0); + item.defense = 35; + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/GodSlayerMask.cs b/Items/Armor/GodSlayerMask.cs index 6d0c26d74c..660cb460f9 100644 --- a/Items/Armor/GodSlayerMask.cs +++ b/Items/Armor/GodSlayerMask.cs @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 5000000; - item.defense = 29; //96 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.value = Item.buyPrice(0, 75, 0, 0); + item.defense = 29; //96 + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -53,11 +43,15 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.godSlayer = true; modPlayer.godSlayerThrowing = true; - player.setBonus = "You will survive fatal damage and will be healed 150 HP if an attack would have killed you\n" + + modPlayer.rogueStealthMax = 1.4f; + player.setBonus = "You will survive fatal damage and will be healed 150 HP if an attack would have killed you\n" + "This effect can only occur once every 45 seconds\n" + "While the cooldown for this effect is active you gain a 10% increase to all damage\n" + "While at full HP all of your rogue stats are boosted by 10%\n" + - "If you take over 80 damage in one hit you will be given extra immunity frames"; + "If you take over 80 damage in one hit you will be given extra immunity frames\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 140\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/GodSlayerVisage.cs b/Items/Armor/GodSlayerVisage.cs index 75c00188b5..e894cd6257 100644 --- a/Items/Armor/GodSlayerVisage.cs +++ b/Items/Armor/GodSlayerVisage.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 5000000; - item.defense = 21; //96 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.value = Item.buyPrice(0, 75, 0, 0); + item.defense = 21; //96 + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool IsArmorSet(Item head, Item body, Item legs) { diff --git a/Items/Armor/MolluskShelleggings.cs b/Items/Armor/MolluskShelleggings.cs new file mode 100644 index 0000000000..2c941ef087 --- /dev/null +++ b/Items/Armor/MolluskShelleggings.cs @@ -0,0 +1,56 @@ +using Microsoft.Xna.Framework; +using System.Collections.Generic; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.CalamityCustomThrowingDamage; + +namespace CalamityMod.Items.Armor +{ + [AutoloadEquip(EquipType.Legs)] + public class MolluskShelleggings : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Mollusk Shelleggings"); + Tooltip.SetDefault("5% increased damage and 4% increased critical strike chance\n" + + "5% decreased movement speed"); + } + + public override void SetDefaults() + { + item.width = 22; + item.height = 18; + item.value = Item.buyPrice(0, 15, 0, 0); + item.rare = 5; + item.defense = 15; + } + + public override void UpdateEquip(Player player) + { + const float damageUp = 0.12f; + const int critUp = 4; + player.meleeDamage += damageUp; + player.rangedDamage += damageUp; + player.magicDamage += damageUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; + player.minionDamage += damageUp; + player.meleeCrit += critUp; + player.rangedCrit += critUp; + player.magicCrit += critUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; + player.moveSpeed -= 0.07f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(mod.ItemType("SeaPrism"), 20); + recipe.AddIngredient(mod.ItemType("MolluskHusk"), 10); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Armor/MolluskShelleggings.png b/Items/Armor/MolluskShelleggings.png new file mode 100644 index 0000000000000000000000000000000000000000..86e05a51bd523e237e65c093b90dd5be15c19365 GIT binary patch literal 347 zcmV-h0i^zkP)@#7lG*vQ ze9274OS)r>8a60Q_dS65^lM`t-~sGxN&2^Te>>uf0|27r(DJ|BJU0Nx*C&?0_?Q8Z z-+x+ucf|gl4?w-BfgjSr=m>yp@&-VE*tZHbuF4T&z0W;yFYc`+(QjD3mU50}R-QiJ zhf@Gni2-!57nv2 t0;$)X;*8i!y5k1^?gAy;rnWj~#NTudW7O4LPe}j(002ovPDHLkV1m@XptAq~ literal 0 HcmV?d00001 diff --git a/Items/Armor/MolluskShelleggings_Legs.png b/Items/Armor/MolluskShelleggings_Legs.png new file mode 100644 index 0000000000000000000000000000000000000000..877fcb84d258b93299da0d8003b5fb605f04fa3b GIT binary patch literal 2090 zcmds2`&&|Z9)<%VUPw%t@q&0Nb4{~cpR}>OkrG-{YHBJP>Z(PBw;W0l6==$$3C$fZ z<*YchW4A#ZV!UfO=IWC+=B}D4nW5k~MkWOYX6~seX8(qLo^zhh`TX#Gzwi6`zVG>- z58qG5nA(}bU@%N*Nbmuuy1-z_Bs2>8s&2I|f(kt60C^Xz{#X1Q)F6)#_Yq;RpGwT$ zCL2M$NmfW)4h*)Y`~3^=&AgEcgBjlq4JJnAQdKe{eTL^mOv~ zrGV93w^7}W`CL{fzLqXsDAdg#vdywM-Kox6b#AbVxj_}9*GbXy`2-H z2MY2W(v`{KIyQ1WD7xIAxZT{v@gw<%|;qF^?A=LCK}?_gnK8oq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_TX&A9H2{`TjjB0xky16*{t?qBwJX^aaoAj5 zisYc1{Q?&cS`M?#r`&#kNKZ13Q64G)_4IWn{8a(V-}g69I5|cVP(Q*7CgmGO{600( z_Ky2Zy>`9^?;`3)&V-Ywk*EQidzS3>x-a-A#(%P&3C!Dfh~QDg_;C~edu-M6)d#*l y;nc`VW2Zo>Rq3OFIZ^e8rGGm6s5ngU&gjmlHRzT3n>lp9!$L{>gX?!CasLaRT(Q9b literal 0 HcmV?d00001 diff --git a/Items/Armor/MolluskShellmet.cs b/Items/Armor/MolluskShellmet.cs new file mode 100644 index 0000000000..f7be7e691e --- /dev/null +++ b/Items/Armor/MolluskShellmet.cs @@ -0,0 +1,88 @@ +using Microsoft.Xna.Framework; +using System.Collections.Generic; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.CalamityCustomThrowingDamage; + +namespace CalamityMod.Items.Armor +{ + [AutoloadEquip(EquipType.Head)] + public class MolluskShellmet : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Mollusk Shellmet"); + Tooltip.SetDefault("5% increased damage and 4% increased critical strike chance\n" + + "7% decreased movement speed\n" + + "You can move freely through liquids"); + } + + public override void SetDefaults() + { + item.width = 22; + item.height = 22; + item.value = Item.buyPrice(0, 25, 0, 0); + item.rare = 5; + item.defense = 18; + } + + public override void UpdateEquip(Player player) + { + player.ignoreWater = true; + const float damageUp = 0.05f; + const int critUp = 4; + player.meleeDamage += damageUp; + player.rangedDamage += damageUp; + player.magicDamage += damageUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; + player.minionDamage += damageUp; + player.meleeCrit += critUp; + player.rangedCrit += critUp; + player.magicCrit += critUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; + player.moveSpeed -= 0.07f; + } + + public override bool IsArmorSet(Item head, Item body, Item legs) + { + return body.type == mod.ItemType("MolluskShellplate") && legs.type == mod.ItemType("MolluskShelleggings"); + } + + public override void UpdateArmorSet(Player player) + { + player.setBonus = "Two shellfishes aid you in combat\n" + + "10% increased damage"; + const float damageUp = 0.10f; + player.meleeDamage += damageUp; + player.rangedDamage += damageUp; + player.magicDamage += damageUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; + player.minionDamage += damageUp; + player.GetModPlayer().molluskSet = true; + player.maxMinions += 4; + if (player.whoAmI == Main.myPlayer) + { + if (player.FindBuffIndex(mod.BuffType("Shellfish")) == -1) + { + player.AddBuff(mod.BuffType("Shellfish"), 3600, true); + } + if (player.ownedProjectileCounts[mod.ProjectileType("Shellfish")] < 2) + { + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("Shellfish"), (int)((double)1500 * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + } + } + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(mod.ItemType("SeaPrism"), 15); + recipe.AddIngredient(mod.ItemType("MolluskHusk"), 6); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Armor/MolluskShellmet.png b/Items/Armor/MolluskShellmet.png new file mode 100644 index 0000000000000000000000000000000000000000..5b026e70e556487195d6a073a89258a7e1b3fd6a GIT binary patch literal 415 zcmV;Q0bu@#P)0w*W+6$A$-2PeB|iHM>St*y{f zDiVjAle96`L2m!)=5p@6-#Pa`xdx#ebA>eJ3ONA!oqmuS5XyFJ1EA}70hk&W{2v)Y zYCAUJiK%36tqMSCaeid}_2C%+@4Ol92^xtrG7wTB6Ah67(7d_^pt`vR#2I*~xQwN? z)K4tx_-_CdoFWis@N)YEz})fz5R=z;>*{-T8h}=#9cU*`b%Bs4Ybm6ENvn?ofUUjl z)PST5e$(aA1pt;~O~}X6K~h_}?TV{vd%S-Nz|O%T0HyUW0M1TSMs6+YK)tRoD&-B} zXXho!?>t2m)v{~>(0lALyiPiG@_)D4u#-gM3b~7bs>AlzFzO zSrjmzCd-XE^EA%58sprrG~In_vHZ>iz#O`~QosyBwbU?c&m^KJH~6ddvR33*Z0G ztLswu<7<-#0jkxfW!V$GDwct^Hn9El%a z#GNlPtmu94=CuEd--qx2|2p;k|DXNqYra3Y8%-Y!3Zhz12m0l})d3OtHHTSaPTS4ZGC<9 zs<$%AE9Yh1KA-VZxKGidP9bLb`eSbvdw-P?_n8>uGnd`6WuMgcc_NCHe|IP_#eU*E zzW&OW!WeG?uKxT#Ep60!qoFsN_AoLunOIw=3j);X#p;N3T@!IKEh2_}Wu&()E6Br3>c+!35 zchM&kpTu{4c;WWFYR2cU5n-RC4&IzT|HAY7+A|3sd`#q3?X7=WzLMJA7gI7 zlY-KfJNNb2u5&weDY^ANIDYg&m7_z#v@Gl69;=q$a)E;@h_;6(1bB0xwH-mGZOL%?_xn1XWdj1EYxznGwy#8`^Ms3N; zd5@bkCv~sZ0B7*2Y%W-dH&*c8(*Jrz0S$REug}ob{6 zY0y&67hbTq+&lf^Yra3UHS=3ixBieJ%W-~m=P9(KIq%2RS$2Kd1f6&P%VF!)##e?jaa_&o2(|;2X?|?@4ma?{D(AE-hj<@v-^=>;o}) My85}Sb4q9e0DeY4qW}N^ literal 0 HcmV?d00001 diff --git a/Items/Armor/MolluskShellplate.cs b/Items/Armor/MolluskShellplate.cs new file mode 100644 index 0000000000..4460f5b742 --- /dev/null +++ b/Items/Armor/MolluskShellplate.cs @@ -0,0 +1,56 @@ +using Microsoft.Xna.Framework; +using System.Collections.Generic; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.CalamityCustomThrowingDamage; + +namespace CalamityMod.Items.Armor +{ + [AutoloadEquip(EquipType.Body)] + public class MolluskShellplate : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Mollusk Shellplate"); + Tooltip.SetDefault("10% increased damage and 6% increased critical strike chance\n" + + "15% decreased movement speed"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 22; + item.value = Item.buyPrice(0, 20, 0, 0); + item.rare = 5; + item.defense = 22; + } + + public override void UpdateEquip(Player player) + { + const float damageUp = 0.1f; + const int critUp = 6; + player.meleeDamage += damageUp; + player.rangedDamage += damageUp; + player.magicDamage += damageUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; + player.minionDamage += damageUp; + player.meleeCrit += critUp; + player.rangedCrit += critUp; + player.magicCrit += critUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; + player.moveSpeed -= 0.15f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(mod.ItemType("SeaPrism"), 25); + recipe.AddIngredient(mod.ItemType("MolluskHusk"), 15); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Armor/MolluskShellplate.png b/Items/Armor/MolluskShellplate.png new file mode 100644 index 0000000000000000000000000000000000000000..06c81e4c82c9cf27c9fab9b693602a52b4afe19c GIT binary patch literal 596 zcmV-a0;~OrP)~EkO~`{tG-@8iJU2QPv%~HztB4kxe=~E>z31HXKd+e}+j$wJ>oQ<(cPmta=8moa zRu<+;#Wv@kfmpxfyu$f}opfC$DA)%zs)Q86Qcv1C`oZAM8(@5NB;k2eYCC{T`V6Q` zZG+YQ`jBE|uHGF1laC&QrG;F=PSqF(+0M%$MGudi{Q;go$$^310Wd#yAIwh7fV#$X z0K02@A#`8t0iDD5z|^}baOrv!!LM%)f$`Dkp6W5~xpEtPdiOSjQ`d%3WIFZm4(J(- zJfE42BC+yz4K(*PR@@)B^&rwOFkgH+22S+$1yni5;Ba#j_?dg1$XPi)PcK!JA3xnz zQ6ASsP5-$7zOSrC>wk9nKM}+)Erq_!v}PkgZ5TrT&|pQy+>1$nvo9Y6u(iAizU+NK zl_yuilat$hAitakUl%`t^B2w~6yHw|fv)cQg#6XZ*I?^oGzn{u)F$l5s6OKu`HhHa zrZpSD?8Hn6>tDX1*snBzx!EWp<^3J&$GI)X!C_pEOnda5ZfH4*BD4JZUbNmwC-!&R zBf0#a?H)YFTg#gjC)iGbXi{J=rkg8t_K0000J+@Om_5M*o9y$GuhIQPbn{`nSeUw3C>6%Wv;1JhUhKJ>!Fc3*t>J0R)b^@RJh;db%6+aCOu zudnKA3J+3X0ZPHjoNAY5}I3LHb(4I0J)c8P2QhPwkwZ+e|<_8NP13;`O&j;?~6^W#RXyP zMJHE0m?|@a`@M>5@ym+aPagw?1NhFZIxypm>et8l`s{k)2JF56e+HY(49nP(b8vH# z=f5>R`eL`m_Po`V%?&olfBH86Wya5@iB6|QyPtA1fo){?9`VnpaCXz_HB3FzbZ00% z4m!F+%3xXDpSMpByya4hRFl5`W#07KdB3)|^dFeBo(m}eB0umUM*)R1{`>s6xUHTM6 zE;;e#_kH)=c!Qm5L1wWY<9?;G{(e{q(4kC~r-OA~YdlW!|9ivcw0Mt*h4zfUGjDeR z!!}5PHCX3A>nFus5M7_9EuYcUAM|1C64YpWzTh_#a63H*Yo$=d&TWv`@)QMbI5F+;F8--k)2YDAIy}gnJP7Zz4qm$ z$H2*wq2YXJdEkwu$DY4FRkHHq&me{Hzo*wQ95G`(9@>!Fl^4AsdWpp%Ol=Gmk>yWs zA!+j#KCKfB(zdhIAdO2pfdY%BV@|BROd$dSAd+m3c&btGN=#&FNAJn}A5e7{yZy=EaO zzDuV-;`^9*#d`n% literal 0 HcmV?d00001 diff --git a/Items/Armor/MolluskShellplate_Body.png b/Items/Armor/MolluskShellplate_Body.png new file mode 100644 index 0000000000000000000000000000000000000000..e01233469b304dd61c17578831b1255bdc69320b GIT binary patch literal 3786 zcmd^?dpOhkAHc`iv<-)4a!GtyiG-okgP%5I8OJ4;ayf(vaU79;I;=?+QO9L2F>;Mk za;yj`Q>Me1T+-=+ii37ERK}Jw)9))zzjJwhw?EEbzt8h*pU?N%^Xz$l-g~`Y@AuBS zx{&0N>PQF#BJW^NbO(1m2m~4km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A_^sUbbcc literal 0 HcmV?d00001 diff --git a/Items/Armor/OmegaBlueChestplate.cs b/Items/Armor/OmegaBlueChestplate.cs index cb00826630..7dd92b7300 100644 --- a/Items/Armor/OmegaBlueChestplate.cs +++ b/Items/Armor/OmegaBlueChestplate.cs @@ -1,61 +1,62 @@ -using Microsoft.Xna.Framework; -using System.Collections.Generic; -using Terraria; -using Terraria.Audio; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items.CalamityCustomThrowingDamage; - -namespace CalamityMod.Items.Armor -{ - [AutoloadEquip(EquipType.Body)] - public class OmegaBlueChestplate : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Omega Blue Chestplate"); - Tooltip.SetDefault(@"12% increased damage and 8% increased critical strike chance -Your attacks inflict Crush Depth -No positive life regen"); - } - - public override void SetDefaults() - { - item.width = 18; - item.height = 18; - item.value = Item.sellPrice(0, 38, 0, 0); - item.rare = 13; - item.defense = 28; - } - - public override void UpdateEquip(Player player) - { - const float damageUp = 0.12f; - const int critUp = 8; - player.meleeDamage += damageUp; - player.rangedDamage += damageUp; - player.magicDamage += damageUp; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; - player.minionDamage += damageUp; - player.meleeCrit += critUp; - player.rangedCrit += critUp; - player.magicCrit += critUp; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; - - //insert enable crush depth, disable positive life regen - player.GetModPlayer().omegaBlueChestplate = true; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("ReaperTooth"), 16); - recipe.AddIngredient(mod.ItemType("Lumenite"), 8); - recipe.AddIngredient(mod.ItemType("Tenebris"), 8); - recipe.AddIngredient(mod.ItemType("RuinousSoul"), 4); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} +using Microsoft.Xna.Framework; +using System.Collections.Generic; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.CalamityCustomThrowingDamage; + +namespace CalamityMod.Items.Armor +{ + [AutoloadEquip(EquipType.Body)] + public class OmegaBlueChestplate : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Omega Blue Chestplate"); + Tooltip.SetDefault(@"12% increased damage and 8% increased critical strike chance +Your attacks inflict Crush Depth +No positive life regen"); + } + + public override void SetDefaults() + { + item.width = 18; + item.height = 18; + item.value = Item.sellPrice(0, 38, 0, 0); + item.rare = 10; + item.defense = 28; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + + public override void UpdateEquip(Player player) + { + const float damageUp = 0.12f; + const int critUp = 8; + player.meleeDamage += damageUp; + player.rangedDamage += damageUp; + player.magicDamage += damageUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; + player.minionDamage += damageUp; + player.meleeCrit += critUp; + player.rangedCrit += critUp; + player.magicCrit += critUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; + + //insert enable crush depth, disable positive life regen + player.GetModPlayer().omegaBlueChestplate = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(mod.ItemType("ReaperTooth"), 16); + recipe.AddIngredient(mod.ItemType("Lumenite"), 8); + recipe.AddIngredient(mod.ItemType("Tenebris"), 8); + recipe.AddIngredient(mod.ItemType("RuinousSoul"), 4); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Armor/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlueHelmet.cs index cf11fc15d1..f69ccbc51e 100644 --- a/Items/Armor/OmegaBlueHelmet.cs +++ b/Items/Armor/OmegaBlueHelmet.cs @@ -1,114 +1,115 @@ -using Microsoft.Xna.Framework; -using System.Collections.Generic; -using Terraria; -using Terraria.Audio; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items.CalamityCustomThrowingDamage; - -namespace CalamityMod.Items.Armor -{ - [AutoloadEquip(EquipType.Head)] - public class OmegaBlueHelmet : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Omega Blue Helmet"); - Tooltip.SetDefault(@"You can move freely through liquids -12% increased damage and 8% increased critical strike chance -+2 max minions"); - } - - public override void SetDefaults() - { - item.width = 18; - item.height = 18; - item.value = Item.sellPrice(0, 35, 0, 0); - item.rare = 13; - item.defense = 19; - } - - public override void UpdateEquip(Player player) - { - player.ignoreWater = true; - - const float damageUp = 0.12f; - const int critUp = 8; - player.meleeDamage += damageUp; - player.rangedDamage += damageUp; - player.magicDamage += damageUp; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; - player.minionDamage += damageUp; - player.meleeCrit += critUp; - player.rangedCrit += critUp; - player.magicCrit += critUp; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; - - player.maxMinions += 2; - } - - public override bool IsArmorSet(Item head, Item body, Item legs) - { - return body.type == mod.ItemType("OmegaBlueChestplate") && legs.type == mod.ItemType("OmegaBlueLeggings"); - } - - public override void ArmorSetShadows(Player player) - { - player.armorEffectDrawOutlines = true; - } - - public override void UpdateArmorSet(Player player) - { - player.setBonus = @"Increases armor penetration by 50 -10% increased damage and critical strike chance -Short-ranged tentacles heal you by sucking enemy life -Press Y to activate abyssal madness for 5 seconds -Abyssal madness increases damage, critical strike chance, and tentacle aggression/range -This effect has a 30 second cooldown"; - - player.armorPenetration += 50; - - //raise rev caps - player.GetModPlayer().omegaBlueSet = true; - - if (player.GetModPlayer().omegaBlueCooldown > 0) - { - if (player.GetModPlayer().omegaBlueCooldown == 1) //dust when ready to use again - { - for (int i = 0; i < 66; i++) - { - int d = Dust.NewDust(player.position, player.width, player.height, 20, 0, 0, 100, Color.Transparent, 2.6f); - Main.dust[d].noGravity = true; - Main.dust[d].noLight = true; - Main.dust[d].fadeIn = 1f; - Main.dust[d].velocity *= 6.6f; - } - } - player.GetModPlayer().omegaBlueCooldown--; - } - - if (player.GetModPlayer().omegaBlueCooldown > 1500) - { - player.GetModPlayer().omegaBlueHentai = true; - - int d = Dust.NewDust(player.position, player.width, player.height, 20, 0, 0, 100, Color.Transparent, 1.6f); - Main.dust[d].noGravity = true; - Main.dust[d].noLight = true; - Main.dust[d].fadeIn = 1f; - Main.dust[d].velocity *= 3f; - } - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("ReaperTooth"), 11); - recipe.AddIngredient(mod.ItemType("Lumenite"), 5); - recipe.AddIngredient(mod.ItemType("Tenebris"), 5); - recipe.AddIngredient(mod.ItemType("RuinousSoul"), 2); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} +using Microsoft.Xna.Framework; +using System.Collections.Generic; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.CalamityCustomThrowingDamage; + +namespace CalamityMod.Items.Armor +{ + [AutoloadEquip(EquipType.Head)] + public class OmegaBlueHelmet : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Omega Blue Helmet"); + Tooltip.SetDefault(@"You can move freely through liquids +12% increased damage and 8% increased critical strike chance ++2 max minions"); + } + + public override void SetDefaults() + { + item.width = 18; + item.height = 18; + item.value = Item.sellPrice(0, 35, 0, 0); + item.rare = 10; + item.defense = 19; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + + public override void UpdateEquip(Player player) + { + player.ignoreWater = true; + + const float damageUp = 0.12f; + const int critUp = 8; + player.meleeDamage += damageUp; + player.rangedDamage += damageUp; + player.magicDamage += damageUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; + player.minionDamage += damageUp; + player.meleeCrit += critUp; + player.rangedCrit += critUp; + player.magicCrit += critUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; + + player.maxMinions += 2; + } + + public override bool IsArmorSet(Item head, Item body, Item legs) + { + return body.type == mod.ItemType("OmegaBlueChestplate") && legs.type == mod.ItemType("OmegaBlueLeggings"); + } + + public override void ArmorSetShadows(Player player) + { + player.armorEffectDrawOutlines = true; + } + + public override void UpdateArmorSet(Player player) + { + player.setBonus = @"Increases armor penetration by 50 +10% increased damage and critical strike chance +Short-ranged tentacles heal you by sucking enemy life +Press Y to activate abyssal madness for 5 seconds +Abyssal madness increases damage, critical strike chance, and tentacle aggression/range +This effect has a 30 second cooldown"; + + player.armorPenetration += 50; + + //raise rev caps + player.GetModPlayer().omegaBlueSet = true; + + if (player.GetModPlayer().omegaBlueCooldown > 0) + { + if (player.GetModPlayer().omegaBlueCooldown == 1) //dust when ready to use again + { + for (int i = 0; i < 66; i++) + { + int d = Dust.NewDust(player.position, player.width, player.height, 20, 0, 0, 100, Color.Transparent, 2.6f); + Main.dust[d].noGravity = true; + Main.dust[d].noLight = true; + Main.dust[d].fadeIn = 1f; + Main.dust[d].velocity *= 6.6f; + } + } + player.GetModPlayer().omegaBlueCooldown--; + } + + if (player.GetModPlayer().omegaBlueCooldown > 1500) + { + player.GetModPlayer().omegaBlueHentai = true; + + int d = Dust.NewDust(player.position, player.width, player.height, 20, 0, 0, 100, Color.Transparent, 1.6f); + Main.dust[d].noGravity = true; + Main.dust[d].noLight = true; + Main.dust[d].fadeIn = 1f; + Main.dust[d].velocity *= 3f; + } + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(mod.ItemType("ReaperTooth"), 11); + recipe.AddIngredient(mod.ItemType("Lumenite"), 5); + recipe.AddIngredient(mod.ItemType("Tenebris"), 5); + recipe.AddIngredient(mod.ItemType("RuinousSoul"), 2); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Armor/OmegaBlueLeggings.cs b/Items/Armor/OmegaBlueLeggings.cs index 689491e8f4..458b6a7502 100644 --- a/Items/Armor/OmegaBlueLeggings.cs +++ b/Items/Armor/OmegaBlueLeggings.cs @@ -1,59 +1,60 @@ -using Microsoft.Xna.Framework; -using System.Collections.Generic; -using Terraria; -using Terraria.Audio; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items.CalamityCustomThrowingDamage; - -namespace CalamityMod.Items.Armor -{ - [AutoloadEquip(EquipType.Legs)] - public class OmegaBlueLeggings : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Omega Blue Leggings"); - Tooltip.SetDefault(@"30% increased movement speed -12% increased damage and 8% increased critical strike chance"); - } - - public override void SetDefaults() - { - item.width = 18; - item.height = 18; - item.value = Item.sellPrice(0, 35, 25, 0); - item.rare = 13; - item.defense = 22; - } - - public override void UpdateEquip(Player player) - { - const float damageUp = 0.12f; - const int critUp = 8; - player.meleeDamage += damageUp; - player.rangedDamage += damageUp; - player.magicDamage += damageUp; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; - player.minionDamage += damageUp; - player.meleeCrit += critUp; - player.rangedCrit += critUp; - player.magicCrit += critUp; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; - - player.moveSpeed += 0.3f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(mod.ItemType("ReaperTooth"), 13); - recipe.AddIngredient(mod.ItemType("Lumenite"), 6); - recipe.AddIngredient(mod.ItemType("Tenebris"), 6); - recipe.AddIngredient(mod.ItemType("RuinousSoul"), 3); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} +using Microsoft.Xna.Framework; +using System.Collections.Generic; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.CalamityCustomThrowingDamage; + +namespace CalamityMod.Items.Armor +{ + [AutoloadEquip(EquipType.Legs)] + public class OmegaBlueLeggings : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Omega Blue Leggings"); + Tooltip.SetDefault(@"30% increased movement speed +12% increased damage and 8% increased critical strike chance"); + } + + public override void SetDefaults() + { + item.width = 18; + item.height = 18; + item.value = Item.sellPrice(0, 35, 25, 0); + item.rare = 10; + item.defense = 22; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + + public override void UpdateEquip(Player player) + { + const float damageUp = 0.12f; + const int critUp = 8; + player.meleeDamage += damageUp; + player.rangedDamage += damageUp; + player.magicDamage += damageUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += damageUp; + player.minionDamage += damageUp; + player.meleeCrit += critUp; + player.rangedCrit += critUp; + player.magicCrit += critUp; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += critUp; + + player.moveSpeed += 0.3f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(mod.ItemType("ReaperTooth"), 13); + recipe.AddIngredient(mod.ItemType("Lumenite"), 6); + recipe.AddIngredient(mod.ItemType("Tenebris"), 6); + recipe.AddIngredient(mod.ItemType("RuinousSoul"), 3); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Armor/ReaverCap.cs b/Items/Armor/ReaverCap.cs index 4faf0ec107..fd8d1e576b 100644 --- a/Items/Armor/ReaverCap.cs +++ b/Items/Armor/ReaverCap.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 350000; - item.rare = 7; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 7; item.defense = 10; //43 } @@ -44,7 +44,8 @@ namespace CalamityMod.Items.Armor { CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.reaverSpore = true; - player.setBonus = "5% increased rogue damage\n" + + modPlayer.rogueStealthMax = 1.15f; + player.setBonus = "5% increased rogue damage\n" + "You emit a cloud of spores when you are hit\n" + "Rage activates when you are damaged"; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; diff --git a/Items/Armor/ReaverCuisses.cs b/Items/Armor/ReaverCuisses.cs index fb2659a129..5034b378d4 100644 --- a/Items/Armor/ReaverCuisses.cs +++ b/Items/Armor/ReaverCuisses.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 312500; - item.rare = 7; + item.value = Item.buyPrice(0, 18, 0, 0); + item.rare = 7; item.defense = 14; } diff --git a/Items/Armor/ReaverHelm.cs b/Items/Armor/ReaverHelm.cs index 3e64dd1c28..1e424c196c 100644 --- a/Items/Armor/ReaverHelm.cs +++ b/Items/Armor/ReaverHelm.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 350000; - item.rare = 7; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 7; item.defense = 25; //58 } diff --git a/Items/Armor/ReaverHelmet.cs b/Items/Armor/ReaverHelmet.cs index 1f3b94dc3c..45e85a5339 100644 --- a/Items/Armor/ReaverHelmet.cs +++ b/Items/Armor/ReaverHelmet.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 350000; - item.rare = 7; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 7; item.defense = 3; //36 } @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Armor } if (player.ownedProjectileCounts[mod.ProjectileType("ReaverOrb")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("ReaverOrb"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("ReaverOrb"), (int)(80f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.16f; diff --git a/Items/Armor/ReaverMask.cs b/Items/Armor/ReaverMask.cs index 8441b058c5..858273295f 100644 --- a/Items/Armor/ReaverMask.cs +++ b/Items/Armor/ReaverMask.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 350000; - item.rare = 7; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 7; item.defense = 7; //40 } diff --git a/Items/Armor/ReaverScaleMail.cs b/Items/Armor/ReaverScaleMail.cs index b8ddd45dbe..521de6601b 100644 --- a/Items/Armor/ReaverScaleMail.cs +++ b/Items/Armor/ReaverScaleMail.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 300000; - item.rare = 7; + item.value = Item.buyPrice(0, 24, 0, 0); + item.rare = 7; item.defense = 19; } diff --git a/Items/Armor/ReaverVisage.cs b/Items/Armor/ReaverVisage.cs index e66eb8dc0e..4d3fa04ee3 100644 --- a/Items/Armor/ReaverVisage.cs +++ b/Items/Armor/ReaverVisage.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 350000; - item.rare = 7; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 7; item.defense = 13; //46 } diff --git a/Items/Armor/ShroomiteVisage.cs b/Items/Armor/ShroomiteVisage.cs index bca07a4b53..cfe768f120 100644 --- a/Items/Armor/ShroomiteVisage.cs +++ b/Items/Armor/ShroomiteVisage.cs @@ -7,49 +7,51 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.Armor { -[AutoloadEquip(EquipType.Head)] -public class ShroomiteVisage : ModItem +namespace CalamityMod.Items.Armor { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Shroomite Visage"); - Tooltip.SetDefault("25% increased ranged damage for flamethrowers"); - } + [AutoloadEquip(EquipType.Head)] + public class ShroomiteVisage : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shroomite Visage"); + Tooltip.SetDefault("25% increased ranged damage for flamethrowers"); + } - public override void SetDefaults() - { - item.width = 18; - item.height = 18; - item.value = 375000; - item.rare = 8; - item.defense = 11; //62 - } + public override void SetDefaults() + { + item.width = 18; + item.height = 18; + item.value = Item.buyPrice(0, 30, 0, 0); + item.rare = 8; + item.defense = 11; //62 + } - public override bool IsArmorSet(Item head, Item body, Item legs) - { - return body.type == ItemID.ShroomiteBreastplate && legs.type == ItemID.ShroomiteLeggings; - } + public override bool IsArmorSet(Item head, Item body, Item legs) + { + return body.type == ItemID.ShroomiteBreastplate && legs.type == ItemID.ShroomiteLeggings; + } - public override void UpdateArmorSet(Player player) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - player.shroomiteStealth = true; - player.setBonus = "Ranged stealth while standing still"; - } - - public override void UpdateEquip(Player player) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - modPlayer.flamethrowerBoost = true; - } + public override void UpdateArmorSet(Player player) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + player.shroomiteStealth = true; + player.setBonus = "Ranged stealth while standing still"; + } - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.ShroomiteBar, 12); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } -}} \ No newline at end of file + public override void UpdateEquip(Player player) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.flamethrowerBoost = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.ShroomiteBar, 12); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Armor/SilvaArmor.cs b/Items/Armor/SilvaArmor.cs index e4864381cd..2a5008f24a 100644 --- a/Items/Armor/SilvaArmor.cs +++ b/Items/Armor/SilvaArmor.cs @@ -25,20 +25,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 8250000; - item.defense = 44; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.value = Item.buyPrice(0, 72, 0, 0); + item.defense = 44; + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/SilvaHelm.cs b/Items/Armor/SilvaHelm.cs index 757d8b281a..58ca2b21c3 100644 --- a/Items/Armor/SilvaHelm.cs +++ b/Items/Armor/SilvaHelm.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 9000000; - item.defense = 52; //110 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.value = Item.buyPrice(0, 90, 0, 0); + item.defense = 52; //110 + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -61,7 +51,7 @@ namespace CalamityMod.Items.Armor "This effect only triggers once per life\n" + "Your max life will return to normal if you die\n" + "True melee strikes have a 25% chance to do five times damage\n" + - "After the silva invincibility is over you will take halved contact damage\n" + + "After the silva invincibility is over you will take 20% less contact damage\n" + "Melee projectiles have a 25% chance to stun enemies for a very brief moment"; } diff --git a/Items/Armor/SilvaHelmet.cs b/Items/Armor/SilvaHelmet.cs index b00d3c073f..9b7e697322 100644 --- a/Items/Armor/SilvaHelmet.cs +++ b/Items/Armor/SilvaHelmet.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 9000000; - item.defense = 13; //110 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.value = Item.buyPrice(0, 90, 0, 0); + item.defense = 13; //110 + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -71,7 +61,7 @@ namespace CalamityMod.Items.Armor } if (player.ownedProjectileCounts[mod.ProjectileType("SilvaCrystal")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SilvaCrystal"), (int)((double)1500 * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SilvaCrystal"), (int)(1500f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.minionDamage += 0.75f; diff --git a/Items/Armor/SilvaHornedHelm.cs b/Items/Armor/SilvaHornedHelm.cs index dbfd9d2f55..3dc5874c23 100644 --- a/Items/Armor/SilvaHornedHelm.cs +++ b/Items/Armor/SilvaHornedHelm.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 9000000; - item.defense = 36; //110 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.value = Item.buyPrice(0, 90, 0, 0); + item.defense = 36; //110 + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool IsArmorSet(Item head, Item body, Item legs) { diff --git a/Items/Armor/SilvaLeggings.cs b/Items/Armor/SilvaLeggings.cs index ad73fc399f..1683c9da79 100644 --- a/Items/Armor/SilvaLeggings.cs +++ b/Items/Armor/SilvaLeggings.cs @@ -24,20 +24,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 7750000; - item.defense = 39; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.value = Item.buyPrice(0, 54, 0, 0); + item.defense = 39; + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/SilvaMask.cs b/Items/Armor/SilvaMask.cs index ff6ab7fdee..398d42b34e 100644 --- a/Items/Armor/SilvaMask.cs +++ b/Items/Armor/SilvaMask.cs @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 9000000; - item.defense = 30; //110 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.value = Item.buyPrice(0, 90, 0, 0); + item.defense = 30; //110 + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -53,7 +43,8 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.silvaSet = true; modPlayer.silvaThrowing = true; - player.setBonus = "You are immune to almost all debuffs\n" + + modPlayer.rogueStealthMax = 1.5f; + player.setBonus = "You are immune to almost all debuffs\n" + "Reduces all damage taken by 5%, this is calculated separately from damage reduction\n" + "All projectiles spawn healing leaf orbs on enemy hits\n" + "Max run speed and acceleration boosted by 5%\n" + @@ -61,8 +52,11 @@ namespace CalamityMod.Items.Armor "If you get reduced to 0 HP again while this effect is active you will lose 100 max life\n" + "This effect only triggers once per life\n" + "Your max life will return to normal if you die\n" + - "Rogue weapons have a faster throwing rate while you are above 90% life\n" + - "After the silva invulnerability time your rogue weapons will do 10% more damage"; + "Rogue weapons have a faster throwing rate while you are above 50% life\n" + + "After the silva invulnerability time your rogue weapons will do 10% more damage\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 150\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/SilvaMaskedCap.cs b/Items/Armor/SilvaMaskedCap.cs index b548edaaf1..9df90156c8 100644 --- a/Items/Armor/SilvaMaskedCap.cs +++ b/Items/Armor/SilvaMaskedCap.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 9000000; - item.defense = 21; //110 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.value = Item.buyPrice(0, 90, 0, 0); + item.defense = 21; //110 + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool IsArmorSet(Item head, Item body, Item legs) { diff --git a/Items/Armor/SirenTransAlt_Arms.png b/Items/Armor/SirenTransAlt_Arms.png index 06431b524d5ceb628fb891e59d2d0276641c1b14..30e0af12cd505270ed580aaddcde73dc8d7ec453 100644 GIT binary patch literal 3417 zcmb7H3s6&68oo)OK~brrU0D&i6S^)|liZtku0(l17Et8jV~om8?g_a|k{j>6NCM{c=vg%kLEbEpv9kse!aRoCiK4=*`3S~>R^;KJ~doF<#5xVY~NzUs( z|Ns5p|NrMCZ|BZWA3t{LSOh`FXJ(}2!9ET_LW;s(f}@&~lh?v-j5}i~halmTgpUZR zem@dHq*-*q5`IZeHeqF)3X)tCfV)3pOT?8Ws)t{ z=3qJQWMHQ=ye!D~&M&ZfORPppHg7H(?;)T9C*Voc<8-(m}e=SXRo=ei6RJ zBuf+wqDyje(PV}Ns8*qqTXBsR)f*MKPOUK-XQL_%Hz+ZK5?9M{9ihPpl?okbGH8vZ zY(!p4+JG%MGs)~c?Q&z&puuc;COgqV9 zpme*6WoVE|BAIb8EHn(!sfVs-CMV~zjE#1{4K6P|3C&DR*5O8-POehmLj^Nv4pLG+ z#5ssqMc^2L8v}@E#CnW#1fVoJV^t}`&&j7*;6igs6li89n$7|^i6dDjH&X$@1w_zd zaJtE6a{(TnPMi}YZa5o5bf*yJbkgYs<|Nud0oI%aEfzB@4LEZ$<8;y-2UB^}F^cKs z(2CxiOgcy>&6k_A!D^c1?WD_`M!QG{8bF=zW@#R(?4NOH1|V4;T|~Oz36!$~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Uo9-gLX3dD=T-tuaF%+!*K3EK{QfbAarBp|iqsV9_(A`}&kaf{_4>D(e=}nu#GS%?;t~!rd(JmS0Jd9y zk3&0VLN!~?y2lMlb4x3+Jg`$ae%<|l_>t2d@nDwWUIps)V`+QC>ojO48ndBevW|8F z^b-9^wO_d<)jYh8A-4*z`}&Kvp8z55`#-trjKvt=ZqC&!x@PXDbThNIjNurD=3qSv z%tVQN#W&yA))y5WR!6DI-L3BE-S-+^^e5s7^K^09rAQ{Fqv4)Mjilkv?tO@SJJE+? zzTUeqc#Q^4l{$VI}X3Hr3o#i(Q@$^0V5G_p2F zdk^BDTblwW0$YT*wKjO%B@jL5AxI3b`j!wk*cBIRA^G=4rAbMIE5OFk4e@_@6KQkS Ky41@1*8c%J_jOwU diff --git a/Items/Armor/SirenTransAlt_Head.png b/Items/Armor/SirenTransAlt_Head.png index 3278a8408aec1a1542e337119b125872f99a96f4..43736c44661a9fe3b0403e82d1cf4c8fb5400e18 100644 GIT binary patch literal 4072 zcmd5bHmJd?)s?g$Y31FO zUupbkr$a~sB$LLZb|GX^9tojfNT4C*(NZAs;333N2w*a;p%e-w&_Lo)L$4kdvSbI^ zKgpf3_uk#}_|A9EJ@;y*wP^n1BPWhT5ae-lzNr{KXClbZiV?%$taa~%2Kac)pIc$5L zRH)!EsGg=RgvDEYyIh<^?z~ow=!qs3tIjzrv z3CO%8_!U9)p+SqBT?{A&6+{{i!RwEj^~n*MAYph7=f_Dk5ez9L=-{Jr{($5OId||l z@BlCHDKeBLqq2UtsED##9K>|=b3X@=T8ky>V?ZokZ`6gXYQmZWFF{{#^hwTKSESsN!xm695k*0Y+7exk5y9Gt>ERM^3@PEqo5FlNEa zxd86>xm0MBN!BQOLBI!vP`V+HdC8B$Uk z6I=)}Nw6dnMm#;OhM5xtDxlLV1EMmgM38_FwJcYoW-~fp0&p?Y4LC=-8iEUppe}G| zx6|nZ3e?V?6D2Nen_=k)aWS?{tj$`I9Z8Htvd!nbb-=cCP;WHB5E_Qg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&kS$!og2H$9;vPi*MqtD)fZX~t)) zsARQN?}W}NkFZ9ySc8SefZ^Vj_sgA$V0W*!qv@0`I?o|OK4>xmQPOHfxJ0~3RLh#j z2H?i3LUf?8qKgKz>073b{*!lgXFG40wG@*Ee%8re#ZMwxYpJn>=0)Scfvf^)h`4tW zxg1Rvv!c}NmJ0lpth1@rjDxhyDWnTVW0Lr^?m!EYTH>)bXsHXeXx#r5>SKHDDg%Dc z$=?q6D%X)}jp}E9bg6?V$*-^2QQ(EXY$btwENd==Tu#)QOBzX ztwT(^8~u96O^G6%=HeVd&dA4=;VIc2U-5i@zA+O&!R>y$s9$*X*&z2%BqK!dq2(0Z z%JR1@UsO>e7UbsUo;$f$Pu!#B+!aQg(W^4d*^^-n%4i!H;)B$}Z}{6T z9=?5>!?#PD^%%_?Yy$eIt~r?Ph*2iv1MALUSwyQoPCjc&>_4jO5A7Hm4qhC}-GR9Ot&C`VMu z4Ax-aBc^ru+OL(qTJGlGitJ9OBx^zk_A|%@sZzR*U>j5kYEKt?FjrO>7bqoqPNs|f zEjwTRvohHrD5OqLnt6RYlcvcaH!tPqDx3_5xG^;u2fwEG!HY~mHdq6dd`5??fpToxA` zYqMDN5V|(L4aMVMRm3-Om4@@E{SizwqEfmKb+O2go?ZG-Sd@JjgUqLj zs{@Ue(*N%wfTgs5wo>J<+fsjn{PgDI0k_>oUT20HbLj>H{^+PKTxkVM zIp+b-P*`w0{TP@6S~RZsz8iG}o{>v`&u0gZ$8wpHw#575(&=jMpTdV3(miI{;&o5J_Iaok zC&HswlfofFvaE#(=Riw?UoTEkk<9-T^G~8TtWZZ2xDGI>CTFFtGWcv9Wo;-7y}cw^ kp-Kd*+R$A9KzjYwj`(vb#-I8&4YyUYwQ{ngU+_uzAEW$viU0rr diff --git a/Items/Armor/SirenTrans_Head.png b/Items/Armor/SirenTrans_Head.png index a7dab5908bf14f16f247c739a7a414f613689406..e85af53dc38751bc945be58fe91100bd5930de18 100644 GIT binary patch literal 4353 zcmb_f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%T(%Y4tj{+b}vJcE}1UVwb5j^#SiOGeibKD_HY;s>_gPgP7@JD+O_ zTBRxeH9@F(CclnF6}m;x6EI5mS{)K3Ifc)5h5N}s8VJBanP30`d}yv^G!0j6Zz~I* ztmFJ}Y(nn%Lh=vN+qr9BtDx)QBJQKjbGOp4t`grPaVe&hpACuJEaey2<_ui*{&6EN zYm#!$HOk8t?oXA@ZzX$0&p+m~ml^R20`?8Wx1{=y5)Hu*$z6UjXZ&l<uATy;sk~$-IA9%^T}%hx_;G zw~24P8*%m26^Sk4b$WhKlCTJYJ_pXMnn{{q>?bK3v_ diff --git a/Items/Armor/SirenTrans_Legs.png b/Items/Armor/SirenTrans_Legs.png index a20136af422e3aa25e6535a0ae3ab91969752388..9978833f30d7ed0c7a83c1deb04c033aa8bbec64 100644 GIT binary patch literal 4739 zcmaJ@XH-*7w7nrnZz4siAVolW6{Po$Gzm?bBot`^B0Z5_1QDf0B8Z`jbg2?SieTuy zN+%%rNkBTheBWAcy+8Q&S~GL*k2`11zWeMu3HOY3s3}+}005xY)73O1tO5W)>_|pJ zh>%STk%WcZSJ&Df0GRmx9Uwh3-hTjq!o*!eXvJq-;m-^V^s_eZV( z@N_!Y9A;sTV^TVp-%~e;hrcrLF=Hg-GE+~2GoO$8+aTF`9n4s-;ED){_?x zPDz0$GnxuhB~nb1u5iCgi7JRs>^)fwE$|#~IatG<*G(v|m*aD521qevR2jNbrZRA< z5_Qh2Kcc$7b}g=msv;~R;g zo9fwiAb2zg6OeYtfDFz6sD`Ad7XqrLc%A~$*#Lv~u9f2N+ZA-{LIkF=s}&o0<+TvDWFmf~R#u{%0{wc- zw;5!eh@5g%Mcae3StJqCv_J6Q0U$4pkx(uE>}fwuMSs6+N->{_bM z=_ksIQ;w0FU-g_DAwmqxru2R(nmNgMN%YMG^_PO3e8U$HmllLiz{(3UK&6K=C^Su^ z*xm*F$KVznBmlE?006tqK3_%!$iQ&7sKtSxi(e{dI(d8m9IE%y4*(u$@`_sY)~Ixo z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WFdYb Q{CPPjDj17wI&|{V@0(sg+5i9m diff --git a/Items/Armor/SirensHeart.png b/Items/Armor/SirensHeart.png index 6ff2787a677ad8f8b6c552918150bae4cdb859b4..eb1eb7b206ec32c694d54477d05345bdecc88470 100644 GIT binary patch literal 1001 zcmV0Xn~ppmQ963MMMRWo2W%WwW=Vph*m-SqCkkCphc}Bs719J zDF~!R53$A`5WOHXYZj(t)|idX*W%oBulMFFBDnrnckXw-$NA0q&N(y2S_?pY=?WZK zhG}r|Oaox=w*rv+{2hSKw*5hS1F&HEB}P(g{&X=~vkHLd>u)w-VgRzwp8yaUag`7# zst@^rJ^&(xGXTh)*&ze_PKjqLs||RbcQzjpyKEN#pI!|CkZN4#+u(3>8_s+H?EO{? zkh^>WfY|XHzWr6=#xJ|~L_1yKpyapf=FZCTPw8V_w%EF3rc~Q0qfT359Ex`Jw;{e>t6aZdK zoUMriu>1T$0KT?212B*g@^`Pc190p`7J&H9EdcZ;r^(LyP61F*E#H9ccrWwceE=o{ zv0xtSuiFa1$3q$4gjowWOlV;x7*uW3JOH}eg-KCMlY17J40%jRMdp+MknidNU}M7+ z0BTd>VfOlM0A8Gy7%EH@0v^F2q48oZy1hsYTk!4gp68!k`%m&Re^-wM&m)zR+BM_b zgcej%LFxQ!&Uz%Jvgm%<>$iP1H~hpVst+wv8OrPC1MroR^Ovf!LSnVW|Js#%I|J`S zOUxA2B;{eQWaM8j(-xq(;V9r`YR&i>D|%SGwkW~jR*5nZT(aLo~C{Rp68nHCc5sFCCPAi7bcn*`}X`XAtrr*&Gn0?$$A-Z z@|@-=(kZn!j{RTl6IxKLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oC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Uw3%X@3BoynI|{Nc7%m z17Kk)2|#B@1pq6FgAU9yV7*c2b?)cQasC zO{(0`LPOhM*Y!fi(><%RySDQ)4@}P(Hz3gg*PA#;Oy?$<`*mx&t=9$eo`yHS^a9}s zZbZZ;!a>*jVOM7;TF4QMzbd#6&l8bv-{8ed<~yV|3qZ4-u>tP(wix|J`0*!$jF6bU zQD?-NT-X30Wd$vO*bnnlD)WBHqy31S%sCBkey>PBk_(Xf;_A1adnX}e^**IO4G@z# z$l#-Mh8BiiBwV#2{m5~xbcobcRap6Rj^32&(7LX-D-x`^YC|SQvi|4ZL5UNQS(meV y7LMp$oxQ49F%qR)H8LH{&BUhM{Yrk$`fmVtv{yu$_#8O^0000(mod); modPlayer.statigelSet = true; - player.doubleJumpSail = true; + modPlayer.rogueStealthMax = 1.05f; + player.doubleJumpSail = true; player.jumpBoost = true; } diff --git a/Items/Armor/TarragonBreastplate.cs b/Items/Armor/TarragonBreastplate.cs index d480e06a9f..8a6ce8ded0 100644 --- a/Items/Armor/TarragonBreastplate.cs +++ b/Items/Armor/TarragonBreastplate.cs @@ -27,20 +27,10 @@ namespace CalamityMod.Items.Armor item.width = 18; item.height = 18; item.lifeRegen = 2; - item.value = 1500000; - item.defense = 37; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.value = Item.buyPrice(0, 40, 0, 0); + item.defense = 37; + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/TarragonHelm.cs b/Items/Armor/TarragonHelm.cs index 3818d8db25..ecc4e74763 100644 --- a/Items/Armor/TarragonHelm.cs +++ b/Items/Armor/TarragonHelm.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Tarragon Helm"); - Tooltip.SetDefault("Immune to lava, cursed inferno, fire, cursed, and chilled debuffs\n" + + Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids\n" + "5% increased damage reduction\n" + "10% increased melee damage and critical strike chance\n" + @@ -26,20 +26,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1550000; - item.defense = 33; //98 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.value = Item.buyPrice(0, 50, 0, 0); + item.defense = 33; //98 + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -69,8 +59,8 @@ namespace CalamityMod.Items.Armor player.meleeDamage += 0.1f; player.meleeCrit += 10; player.endurance += 0.05f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.buffImmune[BuffID.CursedInferno] = true; player.buffImmune[BuffID.OnFire] = true; player.buffImmune[BuffID.Cursed] = true; diff --git a/Items/Armor/TarragonHelmet.cs b/Items/Armor/TarragonHelmet.cs index 5d6767cf1c..574fe52c47 100644 --- a/Items/Armor/TarragonHelmet.cs +++ b/Items/Armor/TarragonHelmet.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Tarragon Helmet"); - Tooltip.SetDefault("Immune to lava, cursed inferno, fire, cursed, and chilled debuffs\n" + + Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids\n" + "10% increased rogue damage and critical strike chance\n" + "5% increased damage reduction"); @@ -26,20 +26,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1550000; - item.defense = 15; //98 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.value = Item.buyPrice(0, 50, 0, 0); + item.defense = 15; //98 + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -57,12 +47,16 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.tarraSet = true; modPlayer.tarraThrowing = true; - player.setBonus = "Reduces enemy spawn rates\n" + + modPlayer.rogueStealthMax = 1.3f; + player.setBonus = "Reduces enemy spawn rates\n" + "Increased heart pickup range\n" + "Enemies have a chance to drop extra hearts on death\n" + "After every 25 rogue critical hits you will gain 5 seconds of damage immunity\n" + "This effect can only occur once every 30 seconds\n" + - "While under the effects of a debuff you gain 10% increased rogue damage"; + "While under the effects of a debuff you gain 10% increased rogue damage\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 130\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; } public override void UpdateEquip(Player player) @@ -70,8 +64,8 @@ namespace CalamityMod.Items.Armor CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; player.endurance += 0.05f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.buffImmune[BuffID.CursedInferno] = true; player.buffImmune[BuffID.OnFire] = true; player.buffImmune[BuffID.Cursed] = true; diff --git a/Items/Armor/TarragonHornedHelm.cs b/Items/Armor/TarragonHornedHelm.cs index 8dec5cc86b..aa2f4ae415 100644 --- a/Items/Armor/TarragonHornedHelm.cs +++ b/Items/Armor/TarragonHornedHelm.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Tarragon Horned Helm"); - Tooltip.SetDefault("Immune to lava, cursed inferno, fire, cursed, and chilled debuffs\n" + + Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids\n" + "5% increased damage reduction and +3 max minions"); } @@ -24,20 +24,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1550000; - item.defense = 3; //98 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.value = Item.buyPrice(0, 50, 0, 0); + item.defense = 3; //98 + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -68,8 +58,8 @@ namespace CalamityMod.Items.Armor { player.maxMinions += 3; player.endurance += 0.05f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.buffImmune[BuffID.CursedInferno] = true; player.buffImmune[BuffID.OnFire] = true; player.buffImmune[BuffID.Cursed] = true; diff --git a/Items/Armor/TarragonLeggings.cs b/Items/Armor/TarragonLeggings.cs index f6e549dab7..21f20033e5 100644 --- a/Items/Armor/TarragonLeggings.cs +++ b/Items/Armor/TarragonLeggings.cs @@ -25,20 +25,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1462500; - item.defense = 32; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.value = Item.buyPrice(0, 30, 0, 0); + item.defense = 32; + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/TarragonMask.cs b/Items/Armor/TarragonMask.cs index 742f9afbc8..62b9350168 100644 --- a/Items/Armor/TarragonMask.cs +++ b/Items/Armor/TarragonMask.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Tarragon Mask"); - Tooltip.SetDefault("Immune to lava, cursed inferno, fire, cursed, and chilled debuffs\n" + + Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids\n" + "10% increased magic damage and critical strike chance\n" + "5% increased damage reduction"); @@ -25,20 +25,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1550000; - item.defense = 10; //98 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.value = Item.buyPrice(0, 50, 0, 0); + item.defense = 10; //98 + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -69,8 +59,8 @@ namespace CalamityMod.Items.Armor player.magicDamage += 0.1f; player.magicCrit += 10; player.endurance += 0.05f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.buffImmune[BuffID.CursedInferno] = true; player.buffImmune[BuffID.OnFire] = true; player.buffImmune[BuffID.Cursed] = true; diff --git a/Items/Armor/TarragonVisage.cs b/Items/Armor/TarragonVisage.cs index cae96559c5..7b7a51e428 100644 --- a/Items/Armor/TarragonVisage.cs +++ b/Items/Armor/TarragonVisage.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Tarragon Visage"); - Tooltip.SetDefault("Immune to lava, cursed inferno, fire, cursed, and chilled debuffs\n" + + Tooltip.SetDefault("Temporary immunity to lava and immunity to cursed inferno, fire, cursed, and chilled debuffs\n" + "Can move freely through liquids\n" + "10% increased ranged damage and critical strike chance\n" + "5% increased damage reduction"); @@ -25,20 +25,10 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 1550000; - item.defense = 21; //98 - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.value = Item.buyPrice(0, 50, 0, 0); + item.defense = 21; //98 + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool IsArmorSet(Item head, Item body, Item legs) { @@ -68,8 +58,8 @@ namespace CalamityMod.Items.Armor player.rangedDamage += 0.1f; player.rangedCrit += 10; player.endurance += 0.05f; - player.lavaImmune = true; - player.ignoreWater = true; + player.lavaMax += 240; + player.ignoreWater = true; player.buffImmune[BuffID.CursedInferno] = true; player.buffImmune[BuffID.OnFire] = true; player.buffImmune[BuffID.Cursed] = true; diff --git a/Items/Armor/VictideBreastplate.cs b/Items/Armor/VictideBreastplate.cs index 1b8576e36f..979dc3c149 100644 --- a/Items/Armor/VictideBreastplate.cs +++ b/Items/Armor/VictideBreastplate.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 38000; - item.rare = 2; + item.value = Item.buyPrice(0, 1, 0, 0); + item.rare = 2; item.defense = 5; //9 } diff --git a/Items/Armor/VictideHeadgear.cs b/Items/Armor/VictideHeadgear.cs index 8d55c50e60..c0890303d2 100644 --- a/Items/Armor/VictideHeadgear.cs +++ b/Items/Armor/VictideHeadgear.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 40000; - item.rare = 2; + item.value = Item.buyPrice(0, 1, 50, 0); + item.rare = 2; item.defense = 3; //10 } @@ -38,10 +38,14 @@ namespace CalamityMod.Items.Armor player.setBonus = "Increased life regen and rogue damage while submerged in liquid\n" + "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + "This seashell does true damage and does not benefit from any damage class\n" + - "Slightly reduces breath loss in the abyss"; + "Slightly reduces breath loss in the abyss\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 100\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.victideSet = true; - player.ignoreWater = true; + modPlayer.rogueStealthMax = 1f; + player.ignoreWater = true; if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; diff --git a/Items/Armor/VictideHelm.cs b/Items/Armor/VictideHelm.cs index 93297c8c12..467101fbf4 100644 --- a/Items/Armor/VictideHelm.cs +++ b/Items/Armor/VictideHelm.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 40000; - item.rare = 2; + item.value = Item.buyPrice(0, 1, 50, 0); + item.rare = 2; item.defense = 4; //11 } diff --git a/Items/Armor/VictideHelmet.cs b/Items/Armor/VictideHelmet.cs index 2c670f0df4..51ded7feae 100644 --- a/Items/Armor/VictideHelmet.cs +++ b/Items/Armor/VictideHelmet.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 40000; - item.rare = 2; + item.value = Item.buyPrice(0, 1, 50, 0); + item.rare = 2; item.defense = 1; //8 } @@ -51,7 +51,7 @@ namespace CalamityMod.Items.Armor } if (player.ownedProjectileCounts[mod.ProjectileType("Urchin")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("Urchin"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("Urchin"), (int)(7f * player.minionDamage), 0f, Main.myPlayer, 0f, 0f); } } player.ignoreWater = true; diff --git a/Items/Armor/VictideLeggings.cs b/Items/Armor/VictideLeggings.cs index d04c28a621..ba5e4bab36 100644 --- a/Items/Armor/VictideLeggings.cs +++ b/Items/Armor/VictideLeggings.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 37500; - item.rare = 2; + item.value = Item.buyPrice(0, 0, 50, 0); + item.rare = 2; item.defense = 4; //9 } diff --git a/Items/Armor/VictideMask.cs b/Items/Armor/VictideMask.cs index a9888a6a91..36966cdbf9 100644 --- a/Items/Armor/VictideMask.cs +++ b/Items/Armor/VictideMask.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 40000; - item.rare = 2; + item.value = Item.buyPrice(0, 1, 50, 0); + item.rare = 2; item.defense = 2; //9 } diff --git a/Items/Armor/VictideVisage.cs b/Items/Armor/VictideVisage.cs index 5c23b2d649..06ec86ae2e 100644 --- a/Items/Armor/VictideVisage.cs +++ b/Items/Armor/VictideVisage.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 40000; - item.rare = 2; + item.value = Item.buyPrice(0, 1, 50, 0); + item.rare = 2; item.defense = 3; //10 } diff --git a/Items/Armor/WulfrumArmor.cs b/Items/Armor/WulfrumArmor.cs index 3b262999bf..dfdab1577a 100644 --- a/Items/Armor/WulfrumArmor.cs +++ b/Items/Armor/WulfrumArmor.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 18000; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 50, 0); + item.rare = 1; item.defense = 2; } diff --git a/Items/Armor/WulfrumHeadgear.cs b/Items/Armor/WulfrumHeadgear.cs index aeac07b7ec..1ef0d43fed 100644 --- a/Items/Armor/WulfrumHeadgear.cs +++ b/Items/Armor/WulfrumHeadgear.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 20000; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 75, 0); + item.rare = 1; item.defense = 2; //7 } diff --git a/Items/Armor/WulfrumHelm.cs b/Items/Armor/WulfrumHelm.cs index 0282d634cd..52e3f55404 100644 --- a/Items/Armor/WulfrumHelm.cs +++ b/Items/Armor/WulfrumHelm.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 20000; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 75, 0); + item.rare = 1; item.defense = 3; //8 } diff --git a/Items/Armor/WulfrumHelmet.cs b/Items/Armor/WulfrumHelmet.cs index a00f1e303d..cb3bacdf4d 100644 --- a/Items/Armor/WulfrumHelmet.cs +++ b/Items/Armor/WulfrumHelmet.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 20000; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 75, 0); + item.rare = 1; } public override bool IsArmorSet(Item head, Item body, Item legs) diff --git a/Items/Armor/WulfrumHood.cs b/Items/Armor/WulfrumHood.cs index bf820311f6..d099b50575 100644 --- a/Items/Armor/WulfrumHood.cs +++ b/Items/Armor/WulfrumHood.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 20000; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 75, 0); + item.rare = 1; item.defense = 1; //6 } diff --git a/Items/Armor/WulfrumLeggings.cs b/Items/Armor/WulfrumLeggings.cs index afbf36189b..23b4abf057 100644 --- a/Items/Armor/WulfrumLeggings.cs +++ b/Items/Armor/WulfrumLeggings.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 17500; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 25, 0); + item.rare = 1; item.defense = 1; } diff --git a/Items/Armor/WulfrumMask.cs b/Items/Armor/WulfrumMask.cs index cd09751a52..6c78277da8 100644 --- a/Items/Armor/WulfrumMask.cs +++ b/Items/Armor/WulfrumMask.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 20000; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 75, 0); + item.rare = 1; item.defense = 1; //6 } diff --git a/Items/Armor/XerocCuisses.cs b/Items/Armor/XerocCuisses.cs index 3cd579498d..d5cbd84b01 100644 --- a/Items/Armor/XerocCuisses.cs +++ b/Items/Armor/XerocCuisses.cs @@ -25,8 +25,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 375000; - item.rare = 9; + item.value = Item.buyPrice(0, 24, 0, 0); + item.rare = 9; item.defense = 24; } diff --git a/Items/Armor/XerocMask.cs b/Items/Armor/XerocMask.cs index 588cf60985..091c7dc7b6 100644 --- a/Items/Armor/XerocMask.cs +++ b/Items/Armor/XerocMask.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor { DisplayName.SetDefault("Xeroc Mask"); Tooltip.SetDefault("11% increased rogue damage and critical strike chance\n" + - "Immune to lava, cursed, fire, cursed inferno, and chilled\n" + + "Temporary immunity to lava and immunity to cursed, fire, cursed inferno, and chilled\n" + "Wrath of the cosmos"); } @@ -25,8 +25,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 500000; - item.rare = 9; + item.value = Item.buyPrice(0, 40, 0, 0); + item.rare = 9; item.defense = 20; //71 } @@ -45,9 +45,13 @@ namespace CalamityMod.Items.Armor { CalamityPlayer modPlayer = player.GetModPlayer(mod); modPlayer.xerocSet = true; - player.setBonus = "9% increased rogue damage and velocity\n" + + modPlayer.rogueStealthMax = 1.25f; + player.setBonus = "9% increased rogue damage and velocity\n" + "All projectile types have special effects on enemy hits\n" + - "Imbued with cosmic wrath and rage when you are damaged"; + "Imbued with cosmic wrath and rage when you are damaged\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 125\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) { player.AddBuff(BuffID.Wrath, 2); @@ -61,8 +65,8 @@ namespace CalamityMod.Items.Armor { CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.11f; CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 11; - player.lavaImmune = true; - player.buffImmune[BuffID.OnFire] = true; + player.lavaMax += 240; + player.buffImmune[BuffID.OnFire] = true; player.buffImmune[BuffID.CursedInferno] = true; player.buffImmune[BuffID.Cursed] = true; player.buffImmune[BuffID.Chilled] = true; diff --git a/Items/Armor/XerocPlateMail.cs b/Items/Armor/XerocPlateMail.cs index 97a61cfa52..a0636f480b 100644 --- a/Items/Armor/XerocPlateMail.cs +++ b/Items/Armor/XerocPlateMail.cs @@ -26,8 +26,8 @@ namespace CalamityMod.Items.Armor { item.width = 18; item.height = 18; - item.value = 425000; - item.rare = 9; + item.value = Item.buyPrice(0, 32, 0, 0); + item.rare = 9; item.defense = 27; } diff --git a/Items/AshenKey.cs b/Items/AshenKey.cs index 81878aa556..9e0e0c8b0a 100644 --- a/Items/AshenKey.cs +++ b/Items/AshenKey.cs @@ -1,3 +1,4 @@ +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -15,7 +16,7 @@ namespace CalamityMod.Items item.width = 20; item.height = 20; item.maxStack = 99; - item.value = 100; + item.value = Item.buyPrice(0, 0, 10, 0); item.rare = 1; } diff --git a/Items/Astrageldon/AstrageldonBag.cs b/Items/Astrageldon/AstrageldonBag.cs index ba8e9edcaa..715c56c745 100644 --- a/Items/Astrageldon/AstrageldonBag.cs +++ b/Items/Astrageldon/AstrageldonBag.cs @@ -30,17 +30,36 @@ namespace CalamityMod.Items.Astrageldon public override void OpenBossBag(Player player) { - player.TryGettingDevArmor(); + if (CalamityWorld.revenge) + { + if (NPC.downedMoonlord) + { + player.QuickSpawnItem(mod.ItemType("SquishyBeanMount")); + } + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } + player.TryGettingDevArmor(); player.QuickSpawnItem(mod.ItemType("AstralJelly"), Main.rand.Next(12, 17)); player.QuickSpawnItem(mod.ItemType("Stardust"), Main.rand.Next(30, 41)); player.QuickSpawnItem(ItemID.FallenStar, Main.rand.Next(30, 51)); - if (NPC.downedMoonlord) - { - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("SquishyBeanMount")); - } - } + if (Main.rand.Next(7) == 0) + { + player.QuickSpawnItem(mod.ItemType("AureusMask")); + } } } } \ No newline at end of file diff --git a/Items/Astrageldon/AstralJelly.cs b/Items/Astrageldon/AstralJelly.cs index 4e2ec08473..4292dc0bfb 100644 --- a/Items/Astrageldon/AstralJelly.cs +++ b/Items/Astrageldon/AstralJelly.cs @@ -29,8 +29,8 @@ namespace CalamityMod.Items.Astrageldon item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.value = 50000; - item.buffType = BuffID.WellFed; + item.value = Item.buyPrice(0, 4, 50, 0); + item.buffType = BuffID.WellFed; item.buffTime = 108000; } diff --git a/Items/AstrumDeus/AstrumDeusBag.cs b/Items/AstrumDeus/AstrumDeusBag.cs index 195f22d488..68e7d954f4 100644 --- a/Items/AstrumDeus/AstrumDeusBag.cs +++ b/Items/AstrumDeus/AstrumDeusBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.AstrumDeus public class AstrumDeusBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,25 +30,44 @@ namespace CalamityMod.Items.AstrumDeus public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("StarlightFuelCell")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); - player.QuickSpawnItem(mod.ItemType("Stardust"), Main.rand.Next(60, 91)); - if (Main.rand.Next(4) == 0) - { - player.QuickSpawnItem(mod.ItemType("Starfall")); - } - if (Main.rand.Next(4) == 0) - { - player.QuickSpawnItem(mod.ItemType("Nebulash")); - } - player.QuickSpawnItem(mod.ItemType("AstralBulwark")); - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("StarlightFuelCell")); - } - if (Main.rand.Next(7) == 0) - { - player.QuickSpawnItem(mod.ItemType("AstrumDeusMask")); - } - } + player.QuickSpawnItem(mod.ItemType("Stardust"), Main.rand.Next(60, 91)); + if (Main.rand.Next(4) == 0) + { + player.QuickSpawnItem(mod.ItemType("Starfall")); + } + if (Main.rand.Next(4) == 0) + { + player.QuickSpawnItem(mod.ItemType("Nebulash")); + } + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.HallowedKey); + } + player.QuickSpawnItem(mod.ItemType("AstralBulwark")); + if (Main.rand.Next(7) == 0) + { + player.QuickSpawnItem(mod.ItemType("AstrumDeusMask")); + } + } } } \ No newline at end of file diff --git a/Items/BarofLife.cs b/Items/BarofLife.cs index c7204df670..8a0eb877c3 100644 --- a/Items/BarofLife.cs +++ b/Items/BarofLife.cs @@ -7,31 +7,33 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class BarofLife : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class BarofLife : ModItem { - DisplayName.SetDefault("Bar of Life"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Bar of Life"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 24; + item.maxStack = 999; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 8; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "VerstaltiteBar"); + recipe.AddIngredient(null, "DraedonBar"); + recipe.AddIngredient(null, "CruptixBar"); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } } - - public override void SetDefaults() - { - item.width = 15; - item.height = 12; - item.maxStack = 999; - item.value = 900000; - item.rare = 10; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "VerstaltiteBar"); - recipe.AddIngredient(null, "DraedonBar"); - recipe.AddIngredient(null, "CruptixBar"); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/BearEye.cs b/Items/BearEye.cs index 13a8fb7d43..8a4a2924cc 100644 --- a/Items/BearEye.cs +++ b/Items/BearEye.cs @@ -1,40 +1,40 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Audio; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items -{ - public class BearEye : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Bear's Eye"); - Tooltip.SetDefault("Summons a pet guardian angel"); - } - public override void SetDefaults() - { - item.damage = 0; - item.useStyle = 1; - item.useAnimation = 20; - item.useTime = 20; - item.noMelee = true; - item.width = 30; - item.height = 30; - item.value = Item.sellPrice(1, 0, 0, 0); - item.shoot = mod.ProjectileType("Bear"); - item.buffType = mod.BuffType("BearBuff"); - item.rare = 5; - item.UseSound = new Terraria.Audio.LegacySoundStyle(SoundID.Meowmere, 5); - } - - public override void UseStyle(Player player) - { - if (player.whoAmI == Main.myPlayer && player.itemTime == 0) - { - player.AddBuff(item.buffType, 15, true); - } - } - } -} +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items +{ + public class BearEye : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Bear's Eye"); + Tooltip.SetDefault("Summons a pet guardian angel"); + } + public override void SetDefaults() + { + item.damage = 0; + item.useStyle = 1; + item.useAnimation = 20; + item.useTime = 20; + item.noMelee = true; + item.width = 30; + item.height = 30; + item.value = Item.sellPrice(1, 0, 0, 0); + item.shoot = mod.ProjectileType("Bear"); + item.buffType = mod.BuffType("BearBuff"); + item.rare = 5; + item.UseSound = new Terraria.Audio.LegacySoundStyle(SoundID.Meowmere, 5); + } + + public override void UseStyle(Player player) + { + if (player.whoAmI == Main.myPlayer && player.itemTime == 0) + { + player.AddBuff(item.buffType, 15, true); + } + } + } +} diff --git a/Items/BeetleJuice.cs b/Items/BeetleJuice.cs index 340cbbf426..f8fbbf2085 100644 --- a/Items/BeetleJuice.cs +++ b/Items/BeetleJuice.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class BeetleJuice : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class BeetleJuice : ModItem { - DisplayName.SetDefault("Beetle Juice"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Beetle Juice"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; + } } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 10000; - item.rare = 5; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/BlightedLens.cs b/Items/BlightedLens.cs index eb8bbdf629..1e20680285 100644 --- a/Items/BlightedLens.cs +++ b/Items/BlightedLens.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class BlightedLens : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class BlightedLens : ModItem { - DisplayName.SetDefault("Blighted Lens"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Blighted Lens"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 22; + item.maxStack = 999; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; + } } - - public override void SetDefaults() - { - item.width = 16; - item.height = 22; - item.maxStack = 999; - item.value = 5000; - item.rare = 2; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/BloodOrb.cs b/Items/BloodOrb.cs index de60afb9c9..7c6407e85b 100644 --- a/Items/BloodOrb.cs +++ b/Items/BloodOrb.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items item.width = 10; item.height = 10; item.maxStack = 999; - item.value = 37500; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/BloodlettingEssence.cs b/Items/BloodlettingEssence.cs index 296f5759e3..4fd720bc2f 100644 --- a/Items/BloodlettingEssence.cs +++ b/Items/BloodlettingEssence.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items item.width = 20; item.height = 20; item.maxStack = 999; - item.value = 5000; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; } } } \ No newline at end of file diff --git a/Items/Bloodstone.cs b/Items/Bloodstone.cs index 0d759d7990..b3f102a48d 100644 --- a/Items/Bloodstone.cs +++ b/Items/Bloodstone.cs @@ -21,19 +21,9 @@ namespace CalamityMod.Items item.width = 13; item.height = 10; item.maxStack = 999; - item.value = 37500; - item.rare = 10; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 10; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } } } \ No newline at end of file diff --git a/Items/BloodstoneCore.cs b/Items/BloodstoneCore.cs index 47b3601702..912406ad75 100644 --- a/Items/BloodstoneCore.cs +++ b/Items/BloodstoneCore.cs @@ -21,19 +21,9 @@ namespace CalamityMod.Items item.width = 15; item.height = 12; item.maxStack = 999; - item.value = 187500; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 7, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void AddRecipes() { diff --git a/Items/BlossomPickaxe.cs b/Items/BlossomPickaxe.cs index d41a869fc2..fe72156820 100644 --- a/Items/BlossomPickaxe.cs +++ b/Items/BlossomPickaxe.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items item.UseSound = SoundID.Item1; item.autoReuse = true; item.tileBoost += 6; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Brimrose.cs b/Items/Brimrose.cs index ea243e906c..15d064d0b3 100644 --- a/Items/Brimrose.cs +++ b/Items/Brimrose.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items item.useTime = 20; item.useAnimation = 20; item.useStyle = 1; - item.value = 1000000; - item.expert = true; + item.value = Item.buyPrice(1, 50, 0, 0); + item.expert = true; item.UseSound = SoundID.Item3; item.noMelee = true; item.mountType = mod.MountType("PhuppersChair"); diff --git a/Items/BrimstoneKey.cs b/Items/BrimstoneKey.cs index 67ca5a5881..57c15dc4e2 100644 --- a/Items/BrimstoneKey.cs +++ b/Items/BrimstoneKey.cs @@ -1,3 +1,4 @@ +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -14,8 +15,7 @@ namespace CalamityMod.Items { item.width = 20; item.height = 20; - item.maxStack = 1; - item.value = 100; + item.value = Item.buyPrice(0, 0, 10, 0); item.rare = 1; } diff --git a/Items/BrimstoneWaifu/BrimstoneWaifuBag.cs b/Items/BrimstoneWaifu/BrimstoneWaifuBag.cs index 81b5f96691..6ee75e48cf 100644 --- a/Items/BrimstoneWaifu/BrimstoneWaifuBag.cs +++ b/Items/BrimstoneWaifu/BrimstoneWaifuBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.BrimstoneWaifu public class BrimstoneWaifuBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,31 +30,55 @@ namespace CalamityMod.Items.BrimstoneWaifu public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("CharredRelic")); + if (CalamityWorld.downedProvidence) + { + player.QuickSpawnItem(mod.ItemType("Brimrose")); + } + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); - int choice = Main.rand.Next(3); - if (choice == 0) + switch (Main.rand.Next(3)) { - player.QuickSpawnItem(mod.ItemType("Abaddon")); + case 0: + player.QuickSpawnItem(mod.ItemType("Abaddon")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Abaddon")); + player.QuickSpawnItem(mod.ItemType("Brimlance")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("Abaddon")); + player.QuickSpawnItem(mod.ItemType("SeethingDischarge")); + break; } - else if (choice == 1) + if (CalamityWorld.downedProvidence) { - player.QuickSpawnItem(mod.ItemType("Brimlance")); + player.QuickSpawnItem(mod.ItemType("Bloodstone"), Main.rand.Next(25, 36)); } - else + if (Main.rand.Next(10) == 0) { - player.QuickSpawnItem(mod.ItemType("SeethingDischarge")); + player.QuickSpawnItem(mod.ItemType("RoseStone")); } - player.QuickSpawnItem(ItemID.SoulofFright, Main.rand.Next(25, 41)); - player.QuickSpawnItem(mod.ItemType("EssenceofChaos"), Main.rand.Next(3, 5)); + player.QuickSpawnItem(ItemID.SoulofFright, Main.rand.Next(25, 41)); + player.QuickSpawnItem(mod.ItemType("EssenceofChaos"), Main.rand.Next(5, 10)); player.QuickSpawnItem(mod.ItemType("Gehenna")); - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("CharredRelic")); - if (CalamityWorld.downedProvidence) - { - player.QuickSpawnItem(mod.ItemType("Brimrose")); - } - } } } } \ No newline at end of file diff --git a/Items/BrimstoneWaifu/RoseStone.cs b/Items/BrimstoneWaifu/RoseStone.cs index fed4ba183e..e46997f3c0 100644 --- a/Items/BrimstoneWaifu/RoseStone.cs +++ b/Items/BrimstoneWaifu/RoseStone.cs @@ -59,7 +59,7 @@ namespace CalamityMod.Items.BrimstoneWaifu } if (player.ownedProjectileCounts[mod.ProjectileType("BigBustyRose")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("BigBustyRose"), 45, 2f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("BigBustyRose"), (int)(45f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/BulbofDoom.cs b/Items/BulbofDoom.cs index b6ce9ea7c9..a050bd73e7 100644 --- a/Items/BulbofDoom.cs +++ b/Items/BulbofDoom.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items { public override void SetStaticDefaults() { - DisplayName.SetDefault("Portable Bulb"); + DisplayName.SetDefault("Portabulb"); Tooltip.SetDefault("Summons Plantera"); } @@ -44,8 +44,12 @@ namespace CalamityMod.Items public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "BarofLife", 3); - recipe.AddIngredient(null, "LivingShard"); + recipe.AddIngredient(ItemID.JungleSpores, 15); + recipe.AddIngredient(ItemID.SoulofNight, 10); + recipe.AddIngredient(ItemID.SoulofLight, 10); + recipe.AddIngredient(null, "MurkyPaste", 3); + recipe.AddIngredient(null, "ManeaterBulb"); + recipe.AddIngredient(null, "TrapperBulb"); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Bumblefuck/BumblebirbBag.cs b/Items/Bumblefuck/BumblebirbBag.cs index a99c212f34..828f8c32c6 100644 --- a/Items/Bumblefuck/BumblebirbBag.cs +++ b/Items/Bumblefuck/BumblebirbBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Bumblefuck public class BumblebirbBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,21 +30,39 @@ namespace CalamityMod.Items.Bumblefuck public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("RedLightningContainer")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); - player.QuickSpawnItem(mod.ItemType("EffulgentFeather"), Main.rand.Next(9, 15)); - int choice = Main.rand.Next(3); - if (choice == 0) - { - player.QuickSpawnItem(mod.ItemType("RougeSlash")); - } - else if (choice == 1) - { - player.QuickSpawnItem(mod.ItemType("GildedProboscis")); - } - else - { - player.QuickSpawnItem(mod.ItemType("GoldenEagle")); - } + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("RougeSlash")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("GildedProboscis")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("GoldenEagle")); + break; + } + player.QuickSpawnItem(mod.ItemType("EffulgentFeather"), Main.rand.Next(9, 15)); } } } \ No newline at end of file diff --git a/Items/Bumblefuck/EffulgentFeather.cs b/Items/Bumblefuck/EffulgentFeather.cs index 01321d8373..010efe4bdf 100644 --- a/Items/Bumblefuck/EffulgentFeather.cs +++ b/Items/Bumblefuck/EffulgentFeather.cs @@ -7,32 +7,24 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.Bumblefuck { -public class EffulgentFeather : ModItem +namespace CalamityMod.Items.Bumblefuck { - public override void SetStaticDefaults() + public class EffulgentFeather : ModItem { - DisplayName.SetDefault("Effulgent Feather"); - Tooltip.SetDefault("It vibrates with fluffy golden energy"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(3, 12)); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Effulgent Feather"); + Tooltip.SetDefault("It vibrates with fluffy golden energy"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(3, 12)); + } + + public override void SetDefaults() + { + item.width = 24; + item.height = 24; + item.maxStack = 999; + item.value = Item.buyPrice(0, 7, 50, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } } - - public override void SetDefaults() - { - item.width = 24; - item.height = 24; - item.maxStack = 999; - item.value = 150000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/CadencePotion.cs b/Items/CadencePotion.cs index d0ca29648c..133cb46b35 100644 --- a/Items/CadencePotion.cs +++ b/Items/CadencePotion.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items item.consumable = true; item.buffType = mod.BuffType("Cadence"); item.buffTime = 18000; - item.value = 10000; + item.value = Item.buyPrice(0, 2, 0, 0); } public override void AddRecipes() diff --git a/Items/Calamitas/CalamitasBag.cs b/Items/Calamitas/CalamitasBag.cs index 46f1c3e70d..69fb025e45 100644 --- a/Items/Calamitas/CalamitasBag.cs +++ b/Items/Calamitas/CalamitasBag.cs @@ -30,6 +30,25 @@ namespace CalamityMod.Items.Calamitas public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("Animosity")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); if (Main.rand.Next(3) == 0) { @@ -49,18 +68,14 @@ namespace CalamityMod.Items.Calamitas } if (CalamityWorld.downedProvidence) { - player.QuickSpawnItem(mod.ItemType("Bloodstone"), Main.rand.Next(30, 41)); + player.QuickSpawnItem(mod.ItemType("Bloodstone"), Main.rand.Next(35, 46)); } if (Main.rand.Next(10) == 0) { player.QuickSpawnItem(mod.ItemType("ChaosStone")); } - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("Animosity")); - } player.QuickSpawnItem(mod.ItemType("CalamityDust"), Main.rand.Next(14, 19)); - player.QuickSpawnItem(mod.ItemType("EssenceofChaos"), Main.rand.Next(4, 6)); + player.QuickSpawnItem(mod.ItemType("EssenceofChaos"), Main.rand.Next(5, 10)); player.QuickSpawnItem(mod.ItemType("BlightedLens"), Main.rand.Next(1, 4)); player.QuickSpawnItem(mod.ItemType("CalamityRing")); } diff --git a/Items/Calamitas/CalamityDust.cs b/Items/Calamitas/CalamityDust.cs index a81a088731..e0cf8058ef 100644 --- a/Items/Calamitas/CalamityDust.cs +++ b/Items/Calamitas/CalamityDust.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items.Calamitas item.width = 26; item.height = 20; item.maxStack = 999; - item.value = 20000; - item.rare = 7; + item.value = Item.buyPrice(0, 4, 50, 0); + item.rare = 7; } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/CalamitasBrew.cs b/Items/CalamitasBrew.cs index 44fd3c74ce..8830cb1cc4 100644 --- a/Items/CalamitasBrew.cs +++ b/Items/CalamitasBrew.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items item.consumable = true; item.buffType = mod.BuffType("AbyssalWeapon"); item.buffTime = 36000; - item.value = 2000; + item.value = Item.buyPrice(0, 2, 0, 0); } public override void AddRecipes() diff --git a/Items/CalamitousEssence.cs b/Items/CalamitousEssence.cs index 4d78528899..e63a01b1cd 100644 --- a/Items/CalamitousEssence.cs +++ b/Items/CalamitousEssence.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items public override void Update(ref float gravity, ref float maxFallSpeed) { - maxFallSpeed *= 0f; + maxFallSpeed = 0f; float num = (float)Main.rand.Next(90, 111) * 0.01f; num *= Main.essScale; Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.1f * num, 0.1f * num, 0.1f * num); @@ -30,18 +30,8 @@ namespace CalamityMod.Items item.width = 10; item.height = 14; item.maxStack = 999; - item.value = 125000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(0, 10, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } } } \ No newline at end of file diff --git a/Items/CalamityCustomThrowingDamage/AccretionDisk.cs b/Items/CalamityCustomThrowingDamage/AccretionDisk.cs index 031521150f..fa0e3424fe 100644 --- a/Items/CalamityCustomThrowingDamage/AccretionDisk.cs +++ b/Items/CalamityCustomThrowingDamage/AccretionDisk.cs @@ -1,53 +1,55 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class AccretionDisk : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class AccretionDisk : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Elemental Disk"); Tooltip.SetDefault("Shred the fabric of reality!"); } - public override void SafeSetDefaults() - { - item.width = 38; - item.damage = 157; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 15; - item.useStyle = 1; - item.useTime = 15; - item.knockBack = 9f; - item.UseSound = SoundID.Item1; - item.height = 38; - item.value = Item.buyPrice(1, 20, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("AccretionDisk"); - item.shootSpeed = 13f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "MangroveChakram"); - recipe.AddIngredient(null, "FlameScythe"); - recipe.AddIngredient(null, "SeashellBoomerang"); - recipe.AddIngredient(null, "GalacticaSingularity", 5); - recipe.AddIngredient(null, "BarofLife", 5); - recipe.AddIngredient(ItemID.LunarBar, 5); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 38; + item.damage = 157; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useStyle = 1; + item.useTime = 15; + item.knockBack = 9f; + item.UseSound = SoundID.Item1; + item.height = 38; + item.value = Item.buyPrice(1, 20, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("AccretionDisk"); + item.shootSpeed = 13f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "MangroveChakram"); + recipe.AddIngredient(null, "FlameScythe"); + recipe.AddIngredient(null, "SeashellBoomerang"); + recipe.AddIngredient(null, "GalacticaSingularity", 5); + recipe.AddIngredient(null, "BarofLife", 5); + recipe.AddIngredient(ItemID.LunarBar, 5); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/AdamantiteThrowingAxe.cs b/Items/CalamityCustomThrowingDamage/AdamantiteThrowingAxe.cs index 1d437df246..c5844a93ee 100644 --- a/Items/CalamityCustomThrowingDamage/AdamantiteThrowingAxe.cs +++ b/Items/CalamityCustomThrowingDamage/AdamantiteThrowingAxe.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class AdamantiteThrowingAxe : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class AdamantiteThrowingAxe : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Adamantite Throwing Axe"); } - public override void SafeSetDefaults() - { - item.width = 26; - item.damage = 37; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 12; - item.useStyle = 1; - item.useTime = 12; - item.knockBack = 3.25f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 30; - item.maxStack = 999; - item.value = 1600; - item.rare = 4; - item.shoot = mod.ProjectileType("AdamantiteThrowingAxeProjectile"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.AdamantiteBar); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 25); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 26; + item.damage = 37; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 12; + item.useStyle = 1; + item.useTime = 12; + item.knockBack = 3.25f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 30; + item.maxStack = 999; + item.value = 1600; + item.rare = 4; + item.shoot = mod.ProjectileType("AdamantiteThrowingAxeProjectile"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.AdamantiteBar); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this, 25); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/BallisticPoisonBomb.cs b/Items/CalamityCustomThrowingDamage/BallisticPoisonBomb.cs index 5c7a3358d0..b1b2c10adb 100644 --- a/Items/CalamityCustomThrowingDamage/BallisticPoisonBomb.cs +++ b/Items/CalamityCustomThrowingDamage/BallisticPoisonBomb.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class BallisticPoisonBomb : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class BallisticPoisonBomb : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Ballistic Poison Bomb"); } - public override void SafeSetDefaults() - { - item.width = 30; - item.damage = 55; - item.noMelee = true; - item.noUseGraphic = true; - item.useAnimation = 22; - item.useStyle = 1; - item.useTime = 22; - item.knockBack = 6.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 38; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; - item.shoot = mod.ProjectileType("BallisticPoisonBomb"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "DepthCells", 10); - recipe.AddIngredient(null, "SulphurousSand", 20); - recipe.AddIngredient(null, "Tenebris", 10); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 30; + item.damage = 55; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 22; + item.useStyle = 1; + item.useTime = 22; + item.knockBack = 6.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 38; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.shoot = mod.ProjectileType("BallisticPoisonBomb"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "DepthCells", 10); + recipe.AddIngredient(null, "SulphurousSand", 20); + recipe.AddIngredient(null, "Tenebris", 10); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/BrackishFlask.cs b/Items/CalamityCustomThrowingDamage/BrackishFlask.cs index b4b6351b17..ff1de3b762 100644 --- a/Items/CalamityCustomThrowingDamage/BrackishFlask.cs +++ b/Items/CalamityCustomThrowingDamage/BrackishFlask.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class BrackishFlask : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Brackish Flask"); - Tooltip.SetDefault("Full of poisonous saltwater"); - } - - public override void SafeSetDefaults() - { - item.width = 28; - item.damage = 40; - item.noMelee = true; - item.noUseGraphic = true; - item.useAnimation = 35; - item.useStyle = 1; - item.useTime = 35; - item.knockBack = 6.5f; - item.UseSound = SoundID.Item106; - item.autoReuse = true; - item.height = 30; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; - item.shoot = mod.ProjectileType("BrackishFlask"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "IOU"); - recipe.AddIngredient(null, "LivingShard"); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class BrackishFlask : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Brackish Flask"); + Tooltip.SetDefault("Full of poisonous saltwater"); + } + + public override void SafeSetDefaults() + { + item.width = 28; + item.damage = 40; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 35; + item.useStyle = 1; + item.useTime = 35; + item.knockBack = 6.5f; + item.UseSound = SoundID.Item106; + item.autoReuse = true; + item.height = 30; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.shoot = mod.ProjectileType("BrackishFlask"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "IOU"); + recipe.AddIngredient(null, "LivingShard"); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Brimblade.cs b/Items/CalamityCustomThrowingDamage/Brimblade.cs index f81e0760eb..5d27872a5d 100644 --- a/Items/CalamityCustomThrowingDamage/Brimblade.cs +++ b/Items/CalamityCustomThrowingDamage/Brimblade.cs @@ -1,47 +1,47 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class Brimblade : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class Brimblade : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Brimblade"); } - public override void SafeSetDefaults() - { - item.width = 26; - item.damage = 37; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 18; - item.useStyle = 1; - item.useTime = 18; - item.knockBack = 6.5f; - item.UseSound = SoundID.Item1; - item.height = 26; - item.value = Item.buyPrice(0, 48, 0, 0); - item.rare = 6; - item.shoot = mod.ProjectileType("Brimblade"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "UnholyCore", 4); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 26; + item.damage = 32; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 18; + item.useStyle = 1; + item.useTime = 18; + item.knockBack = 6.5f; + item.UseSound = SoundID.Item1; + item.height = 26; + item.value = Item.buyPrice(0, 48, 0, 0); + item.rare = 6; + item.shoot = mod.ProjectileType("Brimblade"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "UnholyCore", 4); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/CalamityCustomThrowingDamagePlayer.cs b/Items/CalamityCustomThrowingDamage/CalamityCustomThrowingDamagePlayer.cs index 14ff6633fb..d683967c10 100644 --- a/Items/CalamityCustomThrowingDamage/CalamityCustomThrowingDamagePlayer.cs +++ b/Items/CalamityCustomThrowingDamage/CalamityCustomThrowingDamagePlayer.cs @@ -1,42 +1,42 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class CalamityCustomThrowingDamagePlayer : ModPlayer - { - public static CalamityCustomThrowingDamagePlayer ModPlayer(Player player) - { - return player.GetModPlayer(); - } - - public float throwingDamage = 1f; - public float throwingVelocity = 1f; - public int throwingCrit = 4; - public bool throwingAmmoCost66 = false; - public bool throwingAmmoCost50 = false; - - public override void ResetEffects() - { - ResetVariables(); - } - - public override void UpdateDead() - { - ResetVariables(); - } - - private void ResetVariables() - { - throwingDamage = 1f; - throwingVelocity = 1f; - throwingCrit = 4; - throwingAmmoCost66 = false; - throwingAmmoCost50 = false; - } - } +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class CalamityCustomThrowingDamagePlayer : ModPlayer + { + public static CalamityCustomThrowingDamagePlayer ModPlayer(Player player) + { + return player.GetModPlayer(); + } + + public float throwingDamage = 1f; + public float throwingVelocity = 1f; + public int throwingCrit = 4; + public bool throwingAmmoCost66 = false; + public bool throwingAmmoCost50 = false; + + public override void ResetEffects() + { + ResetVariables(); + } + + public override void UpdateDead() + { + ResetVariables(); + } + + private void ResetVariables() + { + throwingDamage = 1f; + throwingVelocity = 1f; + throwingCrit = 4; + throwingAmmoCost66 = false; + throwingAmmoCost50 = false; + } + } } \ No newline at end of file diff --git a/Items/CalamityCustomThrowingDamage/CalamityDamageItem.cs b/Items/CalamityCustomThrowingDamage/CalamityDamageItem.cs index cfc91c6637..b2ec42eba9 100644 --- a/Items/CalamityCustomThrowingDamage/CalamityDamageItem.cs +++ b/Items/CalamityCustomThrowingDamage/CalamityDamageItem.cs @@ -1,94 +1,80 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ModLoader; -using CalamityMod.Items.CalamityCustomThrowingDamage; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public abstract class CalamityDamageItem : ModItem - { - public virtual void SafeSetDefaults() - { - } - - public sealed override void SetDefaults() - { - SafeSetDefaults(); - item.melee = false; - item.ranged = true; - item.magic = false; - item.thrown = false; - item.summon = false; - } - - public override void GetWeaponDamage(Player player, ref int damage) - { - //damage = (int)((float)damage / (player.rangedDamage + 5E-06f)); //change base damage back to normal after all ranged boosts - damage = (int)((double)item.damage * (double)(CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage + 5E-06f)); //plus one otherwise weird shit happens - } - - public override void GetWeaponCrit(Player player, ref int crit) - { - crit = (item.crit + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit); //change crit back to normal - } - - public override void GetWeaponKnockback(Player player, ref float knockback) - { - if (player.shroomiteStealth) - { - knockback /= 1f + (1f - player.stealth) * 0.5f; - } - if (player.setVortex) - { - knockback /= 1f + (1f - player.stealth) * 0.5f; - } - } - - public override void ModifyTooltips(List tooltips) - { - TooltipLine tt = tooltips.FirstOrDefault(x => x.Name == "Damage" && x.mod == "Terraria"); - if (tt != null) - { - string[] splitText = tt.text.Split(' '); - string damageValue = splitText.First(); - string damageWord = splitText.Last(); - tt.text = damageValue + " rogue " + damageWord; - } - TooltipLine tt2 = tooltips.FirstOrDefault(x => x.Name == "ItemName" && x.mod == "Terraria"); - if (tt2 != null) - { - if (CalamityMod.lightGreenThrowingRarityList.Contains(item.type)) - tt2.overrideColor = new Color(0, 255, 200); - else if (CalamityMod.greenThrowingRarityList.Contains(item.type)) - tt2.overrideColor = new Color(0, 255, 0); - else if (CalamityMod.blueThrowingRarityList.Contains(item.type)) - tt2.overrideColor = new Color(43, 96, 222); - else if (item.type == mod.ItemType("Celestus")) - tt2.overrideColor = new Color(108, 45, 199); - else if (CalamityMod.purpleThrowingRarityList.Contains(item.type)) - tt2.overrideColor = new Color(255, 0, 255); - else if (item.type == mod.ItemType("Malachite")) - tt2.overrideColor = new Color(Main.DiscoR, 203, 103); - } - } - - public override bool ConsumeItem(Player player) - { - if (CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingAmmoCost50) - { - if (Main.rand.Next(1, 101) > 50) - return false; - } - if (CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingAmmoCost66) - { - if (Main.rand.Next(1, 101) > 66) - return false; - } - return true; - } - } +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.IO; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ModLoader.IO; +using CalamityMod.Items.CalamityCustomThrowingDamage; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public abstract class CalamityDamageItem : ModItem + { + public virtual void SafeSetDefaults() + { + } + + public sealed override void SetDefaults() + { + SafeSetDefaults(); + item.melee = false; + item.ranged = true; + item.magic = false; + item.thrown = false; + item.summon = false; + } + + public override void GetWeaponDamage(Player player, ref int damage) + { + //damage = (int)((float)damage / (player.rangedDamage + 5E-06f)); //change base damage back to normal after all ranged boosts + damage = (int)((double)item.damage * (double)(CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage + 5E-06f)); //plus one otherwise weird shit happens + } + + public override void GetWeaponCrit(Player player, ref int crit) + { + crit = (item.crit + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit); //change crit back to normal + } + + public override void GetWeaponKnockback(Player player, ref float knockback) + { + if (player.shroomiteStealth) + { + knockback /= 1f + (1f - player.stealth) * 0.5f; + } + if (player.setVortex) + { + knockback /= 1f + (1f - player.stealth) * 0.5f; + } + } + + public override void ModifyTooltips(List tooltips) + { + TooltipLine tt = tooltips.FirstOrDefault(x => x.Name == "Damage" && x.mod == "Terraria"); + if (tt != null) + { + string[] splitText = tt.text.Split(' '); + string damageValue = splitText.First(); + string damageWord = splitText.Last(); + tt.text = damageValue + " rogue " + damageWord; + } + } + + public override bool ConsumeItem(Player player) + { + if (CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingAmmoCost50) + { + if (Main.rand.Next(1, 101) > 50) + return false; + } + if (CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingAmmoCost66) + { + if (Main.rand.Next(1, 101) > 66) + return false; + } + return true; + } + } } \ No newline at end of file diff --git a/Items/CalamityCustomThrowingDamage/Celestus.cs b/Items/CalamityCustomThrowingDamage/Celestus.cs index cbc06ca2ed..b0c74d086e 100644 --- a/Items/CalamityCustomThrowingDamage/Celestus.cs +++ b/Items/CalamityCustomThrowingDamage/Celestus.cs @@ -1,58 +1,60 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class Celestus : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Celestus"); - } - - public override void SafeSetDefaults() - { - item.width = 20; - item.damage = 150; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 10; - item.useStyle = 1; - item.useTime = 10; - item.knockBack = 6f; - item.UseSound = SoundID.Item1; - item.height = 20; - item.value = Item.buyPrice(2, 50, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("Celestus"); - item.shootSpeed = 25f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "AccretionDisk"); - recipe.AddIngredient(null, "Crystalline"); - recipe.AddIngredient(null, "ExecutionersBlade"); - recipe.AddIngredient(null, "Pwnagehammer"); - recipe.AddIngredient(null, "SpearofPaleolith"); - recipe.AddIngredient(null, "NightmareFuel", 5); - recipe.AddIngredient(null, "EndothermicEnergy", 5); - recipe.AddIngredient(null, "CosmiliteBar", 5); - recipe.AddIngredient(null, "DarksunFragment", 5); - recipe.AddIngredient(null, "HellcasterFragment", 3); - recipe.AddIngredient(null, "Phantoplasm", 5); - recipe.AddIngredient(null, "AuricOre", 25); - recipe.AddTile(null, "DraedonsForge"); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class Celestus : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Celestus"); + } + + public override void SafeSetDefaults() + { + item.width = 20; + item.damage = 480; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 10; + item.useStyle = 1; + item.useTime = 10; + item.knockBack = 6f; + item.UseSound = SoundID.Item1; + item.height = 20; + item.value = Item.buyPrice(2, 50, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("Celestus"); + item.shootSpeed = 25f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "AccretionDisk"); + recipe.AddIngredient(null, "ShatteredSun"); + recipe.AddIngredient(null, "ExecutionersBlade"); + recipe.AddIngredient(null, "Pwnagehammer"); + recipe.AddIngredient(null, "SpearofPaleolith"); + recipe.AddIngredient(null, "NightmareFuel", 5); + recipe.AddIngredient(null, "EndothermicEnergy", 5); + recipe.AddIngredient(null, "CosmiliteBar", 5); + recipe.AddIngredient(null, "DarksunFragment", 5); + recipe.AddIngredient(null, "HellcasterFragment", 3); + recipe.AddIngredient(null, "Phantoplasm", 5); + recipe.AddIngredient(null, "AuricOre", 25); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Celestus.png b/Items/CalamityCustomThrowingDamage/Celestus.png index 418c08931742849ed52ffbd04d4fda4c818b50d2..cc5385f89fb38635a313472c954cbf8c164ec6ec 100644 GIT binary patch literal 3380 zcmX9>c|6qH8~$3#q`0yqO9*2bYsHjZjAh1_eVuVF*%fYMP1}tcyD_%Ll6}TDj11Xt zVJyiKV~kJ~MYe=c{7k<;&N=_QpXc+O_j%vvJqL5c(u9jsm=gd1F1RVo=J*UaUMSGX z<9%@8p&|gBIe^2i+ePNB<_Ct@PY6)&Kau7!eV`Arl0U^O50Z~(I2n~03e8UV8kvTN~6Ja^R7V zR*6{>TN|?A)L8u0Df%{M&f|zoLj|tJinip)e41s~pPMZ)#Jn#od^gD=SLM(CoU*0{ z;1k5Z;&$>?wy(``f%prt!x3z4cAx0yQ;pkxlWq>ESA&Q_gdH@ zOIN4&3D_RYviRz~E9(ylRIhEig(DJ8+Y(o&05`69$^k03l>TCQueTZwEY3mM{mkf} zXr91w#0z2S?Wlm$JQu47)zI4TaCIh3{&ifmZ*Rjlu`229K~vTbTMSx5G@5##$=&s~ zTo+JOs!{EORMx82s`QDTgguQ}`nLpd(@^Dmnx=lOJ)14$#mCaA4rNOxeVo;JE=*`x zR4jn?L!i7m;FcdH`k+7-ZwLr3RrF6xu3cG2;e)^3BbRMfuR1Y~!o1x3pZ!k04z#)3 za_L(T)wU*-IFeRkd_f+v0j*FE7HeH=-{@HD;J4MZe*yEMUuQOCg0pnE-NgbDnwP zccwt~H+#Yk-7?PceC9(7TYFhevV?eq=>YvoMLe)R#to(Pco7+z7O-t1Y_UFUzbsBQ zjvdZuS_007+0}z=qS8yxrr7hvux|JrQIogys$2p6ncXAS7ht7-EdOQO@NbVy-hN^U zg!uKimr$gvnN%;x4A3H|=4=vDd;EaX#jmG_E;h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TyL_Dc`HXmW5+I40Vo=x0lwyh#R5KnB_g49Br z+iX=Ni0M}N4JF*k_9NN^x&Gwf?!b1FG}lX*XL3*b7&_>>y;ae~ z;^snM2}VGD@|^@0X-{AeKRj>p9%(x?f`62-=v(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/CrushsawCrasher.cs b/Items/CalamityCustomThrowingDamage/CrushsawCrasher.cs index d33cde04b5..9c6f5af94c 100644 --- a/Items/CalamityCustomThrowingDamage/CrushsawCrasher.cs +++ b/Items/CalamityCustomThrowingDamage/CrushsawCrasher.cs @@ -1,41 +1,41 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class CrushsawCrasher : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Crushsaw Crasher"); - } - - public override void SafeSetDefaults() - { - item.width = 38; - item.damage = 65; - item.useAnimation = 18; - item.useStyle = 1; - item.useTime = 18; - item.knockBack = 7f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 22; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; - item.shoot = mod.ProjectileType("Crushax"); - item.shootSpeed = 11f; - } - - public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class CrushsawCrasher : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Crushsaw Crasher"); + } + + public override void SafeSetDefaults() + { + item.width = 38; + item.damage = 65; + item.useAnimation = 18; + item.useStyle = 1; + item.useTime = 18; + item.knockBack = 7f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 22; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.shoot = mod.ProjectileType("Crushax"); + item.shootSpeed = 11f; + } + + public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/CrystalPiercer.cs b/Items/CalamityCustomThrowingDamage/CrystalPiercer.cs index 2a7799f1e1..234475bbeb 100644 --- a/Items/CalamityCustomThrowingDamage/CrystalPiercer.cs +++ b/Items/CalamityCustomThrowingDamage/CrystalPiercer.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class CrystalPiercer : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class CrystalPiercer : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Crystal Piercer"); } - public override void SafeSetDefaults() - { - item.width = 62; - item.damage = 43; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 20; - item.useStyle = 1; - item.useTime = 20; - item.knockBack = 6f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 62; - item.maxStack = 999; - item.value = 2500; - item.rare = 5; - item.shoot = mod.ProjectileType("CrystalPiercerProjectile"); - item.shootSpeed = 20f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "VerstaltiteBar"); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 20); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 62; + item.damage = 43; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 20; + item.useStyle = 1; + item.useTime = 20; + item.knockBack = 6f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 62; + item.maxStack = 999; + item.value = 2500; + item.rare = 5; + item.shoot = mod.ProjectileType("CrystalPiercerProjectile"); + item.shootSpeed = 20f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "VerstaltiteBar"); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this, 20); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Crystalline.cs b/Items/CalamityCustomThrowingDamage/Crystalline.cs index 9558f797f8..5c9aaea81f 100644 --- a/Items/CalamityCustomThrowingDamage/Crystalline.cs +++ b/Items/CalamityCustomThrowingDamage/Crystalline.cs @@ -1,50 +1,50 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class Crystalline : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class Crystalline : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Crystalline"); } - public override void SafeSetDefaults() - { - item.width = 44; - item.damage = 18; - item.crit += 4; - item.noMelee = true; - item.noUseGraphic = true; - item.useAnimation = 18; - item.useStyle = 1; - item.useTime = 18; - item.knockBack = 3f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 44; - item.value = Item.buyPrice(0, 2, 0, 0); - item.rare = 2; - item.shoot = mod.ProjectileType("Crystalline"); - item.shootSpeed = 10f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.ThrowingKnife, 50); - recipe.AddIngredient(ItemID.Diamond, 3); - recipe.AddIngredient(ItemID.FallenStar, 3); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 44; + item.damage = 18; + item.crit += 4; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 18; + item.useStyle = 1; + item.useTime = 18; + item.knockBack = 3f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 44; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.shoot = mod.ProjectileType("Crystalline"); + item.shootSpeed = 10f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.ThrowingKnife, 50); + recipe.AddIngredient(ItemID.Diamond, 3); + recipe.AddIngredient(ItemID.FallenStar, 3); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Crystalline.png b/Items/CalamityCustomThrowingDamage/Crystalline.png index f96d923ad79725870e1545b26656b5b4fc3f06f0..36c2b34b8fb1038df423fc212e849a71f6fa310f 100644 GIT binary patch literal 1009 zcmV8 zy69?w(1n4xKw)JF1H(VVUF4Jv#bFyd|842%;@R z=kxuZb8`M;z23Y%H7={H0VT`J!T88v;eP8MTcUj}nM(f0*Dk>AYa^hxxdl|z)PvT} zO{vL;c6QkDA?@JS?Ijq2Ea4hh*v{_@#y z%-7ZBNGf7f<_OR0;cZPDXFWe@d3cb|gRz0rDep!PM(@t0m;!6tUdoZGh@kiEkE!{Y zBRsE%XAqwCo4~c)Q%Fcg4;FV}(aTYD^}BIT#bl#0NBAG-@R$2nf$@CXMLtSAUJw8|7&Zo=~Ua*H>SzijC9tmD<`#6v+Yk5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player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + float num72 = item.shootSpeed; + Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); + Vector2 value = Vector2.UnitX.RotatedBy((double)player.fullRotation, default(Vector2)); + Vector2 vector3 = Main.MouseWorld - vector2; + float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; + float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; + if (player.gravDir == -1f) + { + num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y; + } + float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); + float num81 = num80; + if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) + { + num78 = (float)player.direction; + num79 = 0f; + num80 = num72; + } + else + { + num80 = num72 / num80; + } + num78 *= num80; + num79 *= num80; + int num146 = 4; + if (Main.rand.Next(2) == 0) + { + num146++; + } + if (Main.rand.Next(4) == 0) + { + num146++; + } + if (Main.rand.Next(8) == 0) + { + num146++; + } + if (Main.rand.Next(16) == 0) + { + num146++; + } + for (int num147 = 0; num147 < num146; num147++) + { + float num148 = num78; + float num149 = num79; + float num150 = 0.05f * (float)num147; + num148 += (float)Main.rand.Next(-25, 26) * num150; + num149 += (float)Main.rand.Next(-25, 26) * num150; + num80 = (float)Math.Sqrt((double)(num148 * num148 + num149 * num149)); + num80 = num72 / num80; + num148 *= num80; + num149 *= num80; + float x4 = vector2.X; + float y4 = vector2.Y; + Projectile.NewProjectile(x4, y4, num148, num149, type, damage, knockBack, player.whoAmI, 0f, 1f); + } + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.VampireKnives); + recipe.AddIngredient(null, "CosmiliteBar", 10); + recipe.AddIngredient(null, "DarksunFragment", 10); + recipe.AddIngredient(null, "TheEmpyrean"); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Eradicator.cs b/Items/CalamityCustomThrowingDamage/Eradicator.cs index 7e3d384195..7976934519 100644 --- a/Items/CalamityCustomThrowingDamage/Eradicator.cs +++ b/Items/CalamityCustomThrowingDamage/Eradicator.cs @@ -1,38 +1,47 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class Eradicator : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Eradicator"); - } - - public override void SafeSetDefaults() - { - item.width = 38; - item.damage = 300; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 19; - item.useStyle = 1; - item.useTime = 19; - item.knockBack = 7f; - item.UseSound = SoundID.Item1; - item.height = 54; - item.value = Item.buyPrice(1, 40, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("EradicatorProjectile"); - item.shootSpeed = 12f; - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class Eradicator : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Eradicator"); + } + + public override void SafeSetDefaults() + { + item.width = 38; + item.damage = 300; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 19; + item.useStyle = 1; + item.useTime = 19; + item.knockBack = 7f; + item.UseSound = SoundID.Item1; + item.height = 54; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("EradicatorProjectile"); + item.shootSpeed = 12f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Vector2 origin = new Vector2(31f, 29f); + spriteBatch.Draw(mod.GetTexture("Items/CalamityCustomThrowingDamage/EradicatorGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Eradicator.png b/Items/CalamityCustomThrowingDamage/Eradicator.png index e12958fc93b433864df352c33f73e8a35be2ccfe..e028ca0e83772ee36bc93200fcf9e0282489ca1b 100644 GIT binary patch literal 1791 zcmVe)#>839un+#*pmqtf>UxnFpsC03H4w0It{F z0-(fy9e}qFtcl3(h#@`A|3F5h9dyE^C=(@BEjF?-PsZMr2h`R3lOisjuqelR0CoGY zJ-{PAn0hvz1fa4#0KlQ9t6>q=34KxX-GKLbJ?jO+vFm1k)!cLgAm>H`0I}N_JNEO4 zyGclg$aHEKF45s?Fpm%qFwzYJz-&~HtCRPL>l%!-8{yv8OLynVEX9nUHsEzP4-oQb zf1{B1i0cX=9ueuK&%On~;>?_3J=n?GDgcW2?XaDX)B{A7?EwSeP}5bwBi>)5lE|57q&&ZR;jmf44E^&4TxV zAo;$PUQ)6F9`XJ<{?ac1l=!ck0Apj~41l`M4giwl)aY5&dd}LO2cX)2e&8F990S0( zlym^vu2$Q|5Fxp7-FrZP575caobxaM6LRx_;FutGPOaQ*>tE7(J-UgzE`%k^!Safm zy|)3V45;ll#V<#6qx{M905H2d0cg8gZL=?)ke)aWfNfhhnE*>`)hzMc8!LgJ2grFD z8-6}`!12Bk+Y;;I!5(opMOxX=C8RS7@&TwXtI*f_20(e;aUkdsDN|+`0LA-u*xCzu zAuaR$#qz^Ia5R^7hHN)vZML?GyhmKu-6EYjU6B#eYj$n{VDE-4j{PbcPOJXb@wn6} zHuCz4@Y?yaj&@`PC&cww_lS#x)KDd(bK=BF05sQCnE=aQSwCQVxBK5QZ`+O~r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u15JpiXq9ko1vx%WH(Mr;;;RA?o;NfjXKW41?c;?XqK=Qr0dW))O=Tu4W ze)v5AA}+`0UE(Lvd{jVCCTJo%bs``ncL zK7Yd}8D_?A8URb4%TnGYt`78A_xDYkVqIm;wVJuP{Yu)DJTz6AcrY7)!rw*#`19bs z0OX9!E^E)b#8oU$ZZEcs^|G@A20+;Zr2-&a{TYzV0UI!P7Xa~m>8x2ZaRZX1mF7$H zmNnv8;)|JY+u>vSIRoJRr)mIr_q$#onG2K$^i0Sdi|ge9Dz`+d1EzMBgOq13ktv)1 z@%oFFcGJX_6#4tg(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "CosmiliteBar", 11); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/FeatherKnife.cs b/Items/CalamityCustomThrowingDamage/FeatherKnife.cs index c39aee5b80..1320185c68 100644 --- a/Items/CalamityCustomThrowingDamage/FeatherKnife.cs +++ b/Items/CalamityCustomThrowingDamage/FeatherKnife.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class FeatherKnife : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class FeatherKnife : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Feather Knife"); } - public override void SafeSetDefaults() - { - item.width = 18; - item.damage = 20; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 13; - item.useStyle = 1; - item.useTime = 13; - item.knockBack = 2f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 32; - item.maxStack = 999; - item.value = 300; - item.rare = 3; - item.shoot = mod.ProjectileType("FeatherKnifeProjectile"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "AerialiteBar"); - recipe.AddTile(TileID.SkyMill); - recipe.SetResult(this, 30); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 18; + item.damage = 20; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 13; + item.useStyle = 1; + item.useTime = 13; + item.knockBack = 2f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 32; + item.maxStack = 999; + item.value = 300; + item.rare = 3; + item.shoot = mod.ProjectileType("FeatherKnifeProjectile"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "AerialiteBar"); + recipe.AddTile(TileID.SkyMill); + recipe.SetResult(this, 30); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/FlameScythe.cs b/Items/CalamityCustomThrowingDamage/FlameScythe.cs index 1f37ee8552..c9aa3be5e5 100644 --- a/Items/CalamityCustomThrowingDamage/FlameScythe.cs +++ b/Items/CalamityCustomThrowingDamage/FlameScythe.cs @@ -1,47 +1,47 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class FlameScythe : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class FlameScythe : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Flame Scythe"); } - public override void SafeSetDefaults() - { - item.width = 50; - item.damage = 145; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 19; - item.useStyle = 1; - item.useTime = 19; - item.knockBack = 8.5f; - item.UseSound = SoundID.Item1; - item.height = 48; - item.value = Item.buyPrice(0, 80, 0, 0); - item.rare = 8; - item.shoot = mod.ProjectileType("FlameScytheProjectile"); - item.shootSpeed = 16f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "CruptixBar", 9); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 50; + item.damage = 145; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 19; + item.useStyle = 1; + item.useTime = 19; + item.knockBack = 8.5f; + item.UseSound = SoundID.Item1; + item.height = 48; + item.value = Item.buyPrice(0, 80, 0, 0); + item.rare = 8; + item.shoot = mod.ProjectileType("FlameScytheProjectile"); + item.shootSpeed = 16f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "CruptixBar", 9); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/FlameScythe.png b/Items/CalamityCustomThrowingDamage/FlameScythe.png index 6df15cd5671dfccb7c59c9ce5bd8fc56cef7c334..d6577c12b47cf583cb6d087e8436056aec7fc2f5 100644 GIT binary patch literal 1032 zcmV+j1o!)iP)Dnf}~ z(1Z$#YEnfbY^&{Vx4RvOH@|M**x9lDw`)4z%gnr)_vY<>_V?%g-Wn{in&La<)XaCk zp|aWl7)Xu-&^!EgPVcFhQ?LI(!BS7)YI_R+-R}|rbPV>JkRyjhxL9&NvBlD*?oR+* zJJ+TfuB(HPtBr&WfX4NW0Awnrwf+M`{dvdri7m9Efsg_4VSK~{ICZfLa3+@tPTPkt z3XShsVg*0-VoKs!Wkmph}d zHL-O7>}uNwXv7N2CpKR-)Nj_VlV)0-WW$t1biD?IMr_0XaGF9ch|IzKrUX{ZR^!Tl|vqn ztOlUR8mDn(H2@!ftCjZlgB#QhpV$J)p3{ZG5d&ZhPIk0CZly4Z!B4a(1oF zF{`JtRmu9rw(RnW%~#?TLm?H1gjD^e-N4_Z;$Mfg{!T0H8QZeSCpK68MQUo&gq#-? z?4y-T$GTE$pv8n2bZu?-; zKC2F?k#mwy%q}NV;{C*?LLo&eJ*8?J1K;ykZrx-j=O&++=wC@itPCPGF$y@>*cVI7 zmze!Govl#cMY2puiIyKRA=OZ+szC$EaT6erRu$NqT0NsE7gD0-L(GZP$&LDM$(3&^ zu1K6J7g8ec6DyWfV`QZP@GH9 zWm_z2fR~9mk$U>;Cji5BajnBpdO|&4BAe<-?^8oUAW<)$) zey|~yLqD4+ zM%@);JG2r_BN~8tAii=vq@A7mR>BvrW*j3&t`x=U{v*bc2v>HDd< z>i1n=a_8ZR#PgytVjhSuwnLp=XyQaG$6mXv2P4t4mRTTrX4YAzT_*IrLcc$%%yK-X5jp53R7e;6?j1OQ~G1N9%N&h54~^!v$< z^yncb8jNHP2(kI?&)?Ku&l`AF|1@ni0`hw1HV;G#BlZm5X_nLXHyE)F(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.cs b/Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.cs new file mode 100644 index 0000000000..ceba1b6522 --- /dev/null +++ b/Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class HeavenfallenStardisk : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Heavenfallen Stardisk"); + Tooltip.SetDefault("Throws a stardisk upwards which then launches itself towards your mouse cursor,\n" + + "explodes into several astral energy bolts if the thrower is moving vertically when throwing it and during its impact"); + } + + public override void SafeSetDefaults() + { + item.width = 38; + item.height = 34; + item.damage = 150; + item.crit += 20; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 23; + item.useStyle = 1; + item.useTime = 23; + item.knockBack = 8f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.shoot = mod.ProjectileType("HeavenfallenStardisk"); + item.shootSpeed = 10f; + item.GetGlobalItem(mod).rogue = true; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, 0f, -10f, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.png b/Items/CalamityCustomThrowingDamage/HeavenfallenStardisk.png new file mode 100644 index 0000000000000000000000000000000000000000..beedd16af7e5d97357200db54021563cb481b1cb GIT binary patch literal 979 zcmV;^11$WBP)voLUKKLNy41G#CSds4-fDF)lO#d@P8sg|5Wt!bDsc6Qc%Q zD1r~-LL>n0B@zRqXd#x;+KMegfpKx>Fx-#X%-nm=Id|rp^Z)nH zWR!_lmpu=1=lVg-wN;>_drG0)oC~9QY<~v+J{69;#?*ipx4$u(>Bfv|)c+8fktd>5 zb3T04{fEaFp!Muwu;j5xmtC;$t3j~$NLaePDi5-S!3^|eu0mzG)QVNdH|3<(tn3K` z9(ih13ub)?<`m@|3DWIV`2zF~9?Zb3d@C3_IdsW&(koV3>e1wkPlL$Fy%b~4bs=f9 zcZI!VeGplFO($sEceX%zDaC!CTCvRLC!WS-q$&tiiYWNmqPxMY#SbK||N6}r;I%bx zpZ`pxSgg97RNsnsaA7@a4A-kJy-=)k8zxT=$8B@KxhPbW`RKWq6Z5`q-vydmW@cc2 z#{r~S?EJg3QlWAW4IR%w=kPGt+1XKm+gon~!*lNet+}(Hrz_BIdT14B%3Y6=P>lL) zT|%ns*iX13#ERMX-XD#ic|zz8a;HLfvHsXmaB!eIAr<%1rgd8q3rC^Fx6B6{w|x$3 zrcTR1|6c=OsCpb|xG9Wl5MI+SwsvDZXwIJszxm-}fWgmFvn1clnkC`sMAB~*oPmxsNcTCww5xrUoTeYOtt z^c_$9<}nKob^QjGwJi_hN7St-8S7PjK2-GKx~svs(+ben(gd1{S-oRP=#1yx@d;8a zRvo39TV{g&9S0J1Dn_hVD;B?kQdiKvbuZX;!wire{0F71BM6N<9S+XizW_AN&Y>jr z?1{07`=wSa6U7w2*$Zo*LHWLEb5Z8_zOMgtqq?Hd?D-+f-CmX^u zZ$hy<$o%sAsQxdTw4f-|8M1idu|ILKRE*S${R_^?SFwm-g>nD@002ovPDHLkV1n)P B(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 17; + } + + public override bool AltFunctionUse(Player player) + { + return true; + } + + public override bool CanUseItem(Player player) + { + if (player.altFunctionUse == 2) + { + item.useTime = 10; + item.useAnimation = 10; + item.UseSound = SoundID.Item109; + } + else + { + item.useTime = 5; + item.useAnimation = 5; + item.UseSound = SoundID.Item1; + } + return base.CanUseItem(player); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + if (player.altFunctionUse == 2) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("MalachiteBolt"), (int)((double)damage * 2.0), knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + else + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Malachite"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/MangroveChakram.cs b/Items/CalamityCustomThrowingDamage/MangroveChakram.cs index fe3fbc6541..92357e4599 100644 --- a/Items/CalamityCustomThrowingDamage/MangroveChakram.cs +++ b/Items/CalamityCustomThrowingDamage/MangroveChakram.cs @@ -1,46 +1,46 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class MangroveChakram : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class MangroveChakram : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Mangrove Chakram"); } - public override void SafeSetDefaults() - { - item.width = 38; - item.damage = 84; - item.noMelee = true; - item.noUseGraphic = true; - item.useAnimation = 14; - item.useStyle = 1; - item.useTime = 14; - item.knockBack = 7.5f; - item.UseSound = SoundID.Item1; - item.height = 38; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; - item.shoot = mod.ProjectileType("MangroveChakramProjectile"); - item.shootSpeed = 15.5f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "DraedonBar", 7); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 38; + item.damage = 84; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 14; + item.useStyle = 1; + item.useTime = 14; + item.knockBack = 7.5f; + item.UseSound = SoundID.Item1; + item.height = 38; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.shoot = mod.ProjectileType("MangroveChakramProjectile"); + item.shootSpeed = 15.5f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "DraedonBar", 7); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/MoltenAmputator.cs b/Items/CalamityCustomThrowingDamage/MoltenAmputator.cs index 1850fc1834..286ad95083 100644 --- a/Items/CalamityCustomThrowingDamage/MoltenAmputator.cs +++ b/Items/CalamityCustomThrowingDamage/MoltenAmputator.cs @@ -1,38 +1,40 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class MoltenAmputator : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Molten Amputator"); - } - - public override void SafeSetDefaults() - { - item.width = 60; - item.damage = 250; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 18; - item.useStyle = 1; - item.useTime = 18; - item.knockBack = 9f; - item.UseSound = SoundID.Item1; - item.height = 60; - item.value = Item.buyPrice(1, 20, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("MoltenAmputator"); - item.shootSpeed = 12f; - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class MoltenAmputator : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Molten Amputator"); + } + + public override void SafeSetDefaults() + { + item.width = 60; + item.damage = 250; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 18; + item.useStyle = 1; + item.useTime = 18; + item.knockBack = 9f; + item.UseSound = SoundID.Item1; + item.height = 60; + item.value = Item.buyPrice(1, 20, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("MoltenAmputator"); + item.shootSpeed = 12f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Mycoroot.cs b/Items/CalamityCustomThrowingDamage/Mycoroot.cs index edcfec3b68..3d573a25f5 100644 --- a/Items/CalamityCustomThrowingDamage/Mycoroot.cs +++ b/Items/CalamityCustomThrowingDamage/Mycoroot.cs @@ -1,47 +1,47 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class Mycoroot : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class Mycoroot : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Mycoroot"); Tooltip.SetDefault("Fires a stream of short-range fungal roots"); } - - public override void SafeSetDefaults() - { - item.width = 32; - item.damage = 10; - item.noMelee = true; - item.noUseGraphic = true; - item.useTime = 5; - item.useAnimation = 5; - item.useStyle = 1; - item.knockBack = 1.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 32; - item.rare = 2; - item.value = Item.buyPrice(0, 2, 0, 0); - item.shoot = mod.ProjectileType("Mycoroot"); - item.shootSpeed = 20f; - } - - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) - { - float SpeedX = speedX + (float) Main.rand.Next(-30, 31) * 0.05f; - float SpeedY = speedY + (float) Main.rand.Next(-30, 31) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); - return false; - } - } -} + + public override void SafeSetDefaults() + { + item.width = 32; + item.damage = 10; + item.noMelee = true; + item.noUseGraphic = true; + item.useTime = 5; + item.useAnimation = 5; + item.useStyle = 1; + item.knockBack = 1.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 32; + item.rare = 2; + item.value = Item.buyPrice(0, 2, 0, 0); + item.shoot = mod.ProjectileType("Mycoroot"); + item.shootSpeed = 20f; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + float SpeedX = speedX + (float) Main.rand.Next(-30, 31) * 0.05f; + float SpeedY = speedY + (float) Main.rand.Next(-30, 31) * 0.05f; + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/MythrilKnife.cs b/Items/CalamityCustomThrowingDamage/MythrilKnife.cs index 869c9998de..e7844dd355 100644 --- a/Items/CalamityCustomThrowingDamage/MythrilKnife.cs +++ b/Items/CalamityCustomThrowingDamage/MythrilKnife.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class MythrilKnife : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class MythrilKnife : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Mythril Knife"); } - public override void SafeSetDefaults() - { - item.width = 12; - item.damage = 32; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 10; - item.useStyle = 1; - item.useTime = 10; - item.knockBack = 1.75f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 30; - item.maxStack = 999; - item.value = 1100; - item.rare = 4; - item.shoot = mod.ProjectileType("MythrilKnifeProjectile"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.MythrilBar); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 40); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 12; + item.damage = 32; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 10; + item.useStyle = 1; + item.useTime = 10; + item.knockBack = 1.75f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 30; + item.maxStack = 999; + item.value = 1100; + item.rare = 4; + item.shoot = mod.ProjectileType("MythrilKnifeProjectile"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.MythrilBar); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this, 40); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/OrichalcumSpikedGemstone.cs b/Items/CalamityCustomThrowingDamage/OrichalcumSpikedGemstone.cs index 84d1a0c9c9..140a953df0 100644 --- a/Items/CalamityCustomThrowingDamage/OrichalcumSpikedGemstone.cs +++ b/Items/CalamityCustomThrowingDamage/OrichalcumSpikedGemstone.cs @@ -1,50 +1,50 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class OrichalcumSpikedGemstone : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class OrichalcumSpikedGemstone : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Orichalcum Spiked Gemstone"); } - public override void SafeSetDefaults() - { - item.width = 14; - item.damage = 25; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 13; - item.useStyle = 1; - item.useTime = 13; - item.knockBack = 2f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 24; - item.shoot = 330; - item.maxStack = 999; - item.value = 1200; - item.rare = 4; - item.shoot = mod.ProjectileType("OrichalcumSpikedGemstoneProjectile"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.OrichalcumBar); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 50); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 14; + item.damage = 25; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 13; + item.useStyle = 1; + item.useTime = 13; + item.knockBack = 2f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 24; + item.shoot = 330; + item.maxStack = 999; + item.value = 1200; + item.rare = 4; + item.shoot = mod.ProjectileType("OrichalcumSpikedGemstoneProjectile"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.OrichalcumBar); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this, 50); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/PalladiumJavelin.cs b/Items/CalamityCustomThrowingDamage/PalladiumJavelin.cs index 72167ee984..9ddc9882a6 100644 --- a/Items/CalamityCustomThrowingDamage/PalladiumJavelin.cs +++ b/Items/CalamityCustomThrowingDamage/PalladiumJavelin.cs @@ -1,50 +1,50 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class PalladiumJavelin : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class PalladiumJavelin : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Palladium Javelin"); } - public override void SafeSetDefaults() - { - item.width = 44; - item.damage = 41; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 19; - item.useStyle = 1; - item.useTime = 19; - item.knockBack = 5.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 44; - item.shoot = 330; - item.maxStack = 999; - item.value = 1200; - item.rare = 4; - item.shoot = mod.ProjectileType("PalladiumJavelinProjectile"); - item.shootSpeed = 16f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.PalladiumBar); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(this, 20); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 44; + item.damage = 41; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 19; + item.useStyle = 1; + item.useTime = 19; + item.knockBack = 5.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 44; + item.shoot = 330; + item.maxStack = 999; + item.value = 1200; + item.rare = 4; + item.shoot = mod.ProjectileType("PalladiumJavelinProjectile"); + item.shootSpeed = 16f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.PalladiumBar); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this, 20); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Prismalline.cs b/Items/CalamityCustomThrowingDamage/Prismalline.cs new file mode 100644 index 0000000000..09bc67d704 --- /dev/null +++ b/Items/CalamityCustomThrowingDamage/Prismalline.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class Prismalline : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Prismalline"); + Tooltip.SetDefault("Throws daggers that split after a while"); + } + + public override void SafeSetDefaults() + { + item.width = 46; + item.damage = 22; + item.crit += 4; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 14; + item.useStyle = 1; + item.useTime = 14; + item.knockBack = 5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 46; + item.value = Item.buyPrice(0, 36, 0, 0); + item.rare = 5; + item.shoot = mod.ProjectileType("Prismalline"); + item.shootSpeed = 16f; + item.GetGlobalItem(mod).rogue = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "Crystalline"); + recipe.AddIngredient(null, "EssenceofEleum", 5); + recipe.AddIngredient(null, "SeaPrism", 5); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Prismalline.png b/Items/CalamityCustomThrowingDamage/Prismalline.png new file mode 100644 index 0000000000000000000000000000000000000000..ebc98156a4e6f8503f01292bbd400b003e9067f8 GIT binary patch literal 1056 zcmV+*1mF9KP)+KDAm-XhDhs`h*vxk(S;R>kXVR?C1Qbuhz$#gEs4Yik&wo! ziBL3%1R-gtcj_@s>1#~sXv?@3XFhk%olZNmDDKpM)82FLz323IzWe{ab87IH<*r-@ zz^wWe0K9CxZN~SPPn)aV-|_w_09k)xa$_N5tOpRH$z&(J@9k9pI`7;8pk(=S?fw(f z*8>hFp7RIC(qebk%4G(mPTH>j#8cJwbB6%9cCf(&sNa7?>%VbXxyBY7@r%1pYuDqK z_-L+?U*H8`Akqg|v0Jw_8-SMQEdT^qsy$~XJilf>06`jnOeXGk%^a~mV*RSQ#?;z? z0bu@6*U>&bWe91z)@;%=d#}9Flr?e1&pE*$zpmat#0L2w$08Fnc8}>cs z>J0!~JJ_JLi+e;Ly#Op1N;cPVMO^c7PkEsM@U`QM2{18Gq&?^Jt8Ze_idq2PwyAHx zy=13$pTw}QqRIdm?Ck-p+Qu%&6Hl5slhr8V*KN&j6zRpa20%1xvI&+Ci(5QAdQ4r% zz5%IG#BF33Z|1254aZ0e*<{K*;&IYqJKWWybq0f>*q-sC)-FCR_X}~F&jQe0a}uyt zsPXs_87HNahm0l;BxcI$I`z};5+bQJvSZiw%-V8#4*9uO z-uIt_KqBdUpG$kLU`m13E-~)%sGZF3j2m0I-u6gZ{w;DW@r1upNW1-R0Q$T7N8D?Q z;%b-?$8vdd0W0S1{TUzQhMfI*e0~6mr>GrHXVXp11%#xWr+n>JRa~x15gZ5)3`;Ow zWjyhm$|Z9Ecz6Gq2~g-O0bo(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Pwnagehammer.cs b/Items/CalamityCustomThrowingDamage/Pwnagehammer.cs index 5e520a8aff..0273eae73f 100644 --- a/Items/CalamityCustomThrowingDamage/Pwnagehammer.cs +++ b/Items/CalamityCustomThrowingDamage/Pwnagehammer.cs @@ -1,51 +1,51 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class Pwnagehammer : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class Pwnagehammer : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Pwnagehammer"); } - public override void SafeSetDefaults() - { - item.width = 68; - item.damage = 90; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 15; - item.useStyle = 1; - item.useTime = 15; - item.knockBack = 10f; - item.UseSound = SoundID.Item1; - item.height = 68; - item.value = Item.buyPrice(0, 48, 0, 0); - item.rare = 6; - item.shoot = mod.ProjectileType("Pwnagehammer"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.Pwnhammer); - recipe.AddIngredient(ItemID.HallowedBar, 7); - recipe.AddIngredient(ItemID.SoulofMight, 3); - recipe.AddIngredient(ItemID.SoulofSight, 3); - recipe.AddIngredient(ItemID.SoulofFright, 3); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 68; + item.damage = 90; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useStyle = 1; + item.useTime = 15; + item.knockBack = 10f; + item.UseSound = SoundID.Item1; + item.height = 68; + item.value = Item.buyPrice(0, 48, 0, 0); + item.rare = 6; + item.shoot = mod.ProjectileType("Pwnagehammer"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.Pwnhammer); + recipe.AddIngredient(ItemID.HallowedBar, 7); + recipe.AddIngredient(ItemID.SoulofMight, 3); + recipe.AddIngredient(ItemID.SoulofSight, 3); + recipe.AddIngredient(ItemID.SoulofFright, 3); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/RadiantStar.cs b/Items/CalamityCustomThrowingDamage/RadiantStar.cs new file mode 100644 index 0000000000..818905c630 --- /dev/null +++ b/Items/CalamityCustomThrowingDamage/RadiantStar.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class RadiantStar : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Radiant Star"); + Tooltip.SetDefault("Throws daggers that explode and split after a while"); + } + + public override void SafeSetDefaults() + { + item.width = 52; + item.damage = 33; + item.crit += 8; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 12; + item.useStyle = 1; + item.useTime = 12; + item.knockBack = 5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 48; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.shoot = mod.ProjectileType("RadiantStar"); + item.shootSpeed = 20f; + item.GetGlobalItem(mod).rogue = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "Prismalline"); + recipe.AddIngredient(null, "AstralBar", 10); + recipe.AddIngredient(null, "Stardust", 15); + recipe.AddIngredient(ItemID.FallenStar, 10); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/RadiantStar.png b/Items/CalamityCustomThrowingDamage/RadiantStar.png new file mode 100644 index 0000000000000000000000000000000000000000..e29e6807b2c55dff8bb032dbe409d0364368f9a5 GIT binary patch literal 1331 zcmV-31ah^BgSxr&?3K3xJGu%K;c{>j~b^d2w?$r1_CGUw>E$IBE0qxd1f(cqs@_dhAUA zTE6lDuwh3L0G}+J0N|O;hX5B6il6TR07h)&R1{bM%_qBp0KYW90l=y{A@keb0=uV> zdFMugaj_Voxst|6YxO}RW|WM^jFM4lOzDlp2!*S3O=Z;fvBlXDk58l~0gx~{4urB* zdF@tnzsPIsYs@sh-vU5>)oK6&$A1Q5grdsGR%HbV7Ql%sLSQm6$!L!+&b0viqj!yq z4EXxw$0o^UMQaxUQ2xU(0No88091ak0f5%(g8(EHK59XX(9HVj-NgVr_tB6LNl7x? zNV**(-3=W<2*p6S!t0BY0_m@0GS)4(00!H7fEb~WG`kh22!PI8k{YUkcFk_?|D(ZEb%Y#etkVcZoy+HW^NfA1 zL;e$^0KB?mCos(c*a~H{wx|P4i z`3eBv_w*Y5tJaqSaMU9+OpOh#Co1)3uQiH?J2E9PmuktF#>dC(5y}uJ6J>@Qi=lA! zUB77m5>h!CSr$Nj>reO`qr2%7VO?r13;E{((Kpw2oQSm`QBWkJ={@je0nY5OwtpdEbDc5 z$0D{rbcEt@h>`qMSDMUzJn0?_ zLNi|_GZP6XxsnhN$~GNWB=PMF2)V15W!)?LNqP76&DN||-*^~+^t445K)|k3>1ne5 zcBcKD;V8o84~S#9*mZUmZpY1pl+31`DY8Yj+rE_;(TcB9GI>kA7C`S+@o?eZPutb| z?S8Cg)^B3E+()P=LEP-V!0jM}$fyd(WFGQI|33hnX+H-zZ@pm-z)9hxnB)ImaUG%mo|byLC5a0FxOV5J p)4OiC-kH|GofLuGtjKkQ{sms7xk3>Bn$iFO002ovPDHLkV1l?Dhw}gc literal 0 HcmV?d00001 diff --git a/Items/CalamityCustomThrowingDamage/RotBall.cs b/Items/CalamityCustomThrowingDamage/RotBall.cs index aaaa086a92..783fd1e2d1 100644 --- a/Items/CalamityCustomThrowingDamage/RotBall.cs +++ b/Items/CalamityCustomThrowingDamage/RotBall.cs @@ -1,52 +1,52 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class RotBall : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class RotBall : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Rot Ball"); - } - - public override void SafeSetDefaults() - { - item.width = 26; - item.damage = 20; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 13; - item.crit = 8; - item.useStyle = 1; - item.useTime = 13; - item.knockBack = 2.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 26; - item.maxStack = 999; - item.value = 1000; - item.rare = 3; - item.shoot = mod.ProjectileType("RotBallProjectile"); - item.shootSpeed = 16f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "TrueShadowScale"); - recipe.AddIngredient(ItemID.RottenChunk); - recipe.AddIngredient(ItemID.DemoniteBar); - recipe.AddTile(TileID.DemonAltar); - recipe.SetResult(this, 100); - recipe.AddRecipe(); - } - } -} + } + + public override void SafeSetDefaults() + { + item.width = 26; + item.damage = 20; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 13; + item.crit = 8; + item.useStyle = 1; + item.useTime = 13; + item.knockBack = 2.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 26; + item.maxStack = 999; + item.value = 1000; + item.rare = 3; + item.shoot = mod.ProjectileType("RotBallProjectile"); + item.shootSpeed = 16f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "TrueShadowScale"); + recipe.AddIngredient(ItemID.RottenChunk); + recipe.AddIngredient(ItemID.DemoniteBar); + recipe.AddTile(TileID.DemonAltar); + recipe.SetResult(this, 100); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/RoyalKnives.cs b/Items/CalamityCustomThrowingDamage/RoyalKnives.cs index 8138975cd3..1b1bba20c7 100644 --- a/Items/CalamityCustomThrowingDamage/RoyalKnives.cs +++ b/Items/CalamityCustomThrowingDamage/RoyalKnives.cs @@ -1,110 +1,112 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class RoyalKnives : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Illustrious Knives"); - } - - public override void SafeSetDefaults() - { - item.width = 18; - item.damage = 1320; - item.noMelee = true; - item.noUseGraphic = true; - item.useAnimation = 12; - item.useStyle = 1; - item.useTime = 12; - item.knockBack = 3f; - item.UseSound = SoundID.Item39; - item.autoReuse = true; - item.height = 20; - item.value = Item.buyPrice(5, 0, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("RoyalKnife"); - item.shootSpeed = 9f; - } - - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) - { - float num72 = item.shootSpeed; - Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); - Vector2 value = Vector2.UnitX.RotatedBy((double)player.fullRotation, default(Vector2)); - Vector2 vector3 = Main.MouseWorld - vector2; - float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; - float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; - if (player.gravDir == -1f) - { - num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y; - } - float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); - float num81 = num80; - if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) - { - num78 = (float)player.direction; - num79 = 0f; - num80 = num72; - } - else - { - num80 = num72 / num80; - } - num78 *= num80; - num79 *= num80; - int num146 = 4; - if (Main.rand.Next(2) == 0) - { - num146++; - } - if (Main.rand.Next(4) == 0) - { - num146++; - } - if (Main.rand.Next(8) == 0) - { - num146++; - } - if (Main.rand.Next(16) == 0) - { - num146++; - } - for (int num147 = 0; num147 < num146; num147++) - { - float num148 = num78; - float num149 = num79; - float num150 = 0.05f * (float)num147; - num148 += (float)Main.rand.Next(-35, 36) * num150; - num149 += (float)Main.rand.Next(-35, 36) * num150; - num80 = (float)Math.Sqrt((double)(num148 * num148 + num149 * num149)); - num80 = num72 / num80; - num148 *= num80; - num149 *= num80; - float x4 = vector2.X; - float y4 = vector2.Y; - Projectile.NewProjectile(x4, y4, num148, num149, mod.ProjectileType("RoyalKnife"), damage, knockBack, player.whoAmI, 0f, 0f); - } - return false; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "ShadowspecBar", 5); - recipe.AddIngredient(null, "CoreofCalamity", 3); - recipe.AddIngredient(null, "EmpyreanKnivesThrown"); - recipe.AddTile(null, "DraedonsForge"); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class RoyalKnives : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Illustrious Knives"); + } + + public override void SafeSetDefaults() + { + item.width = 18; + item.damage = 1600; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 12; + item.useStyle = 1; + item.useTime = 12; + item.knockBack = 3f; + item.UseSound = SoundID.Item39; + item.autoReuse = true; + item.height = 20; + item.value = Item.buyPrice(5, 0, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("RoyalKnife"); + item.shootSpeed = 9f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + float num72 = item.shootSpeed; + Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); + Vector2 value = Vector2.UnitX.RotatedBy((double)player.fullRotation, default(Vector2)); + Vector2 vector3 = Main.MouseWorld - vector2; + float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; + float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; + if (player.gravDir == -1f) + { + num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y; + } + float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); + float num81 = num80; + if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) + { + num78 = (float)player.direction; + num79 = 0f; + num80 = num72; + } + else + { + num80 = num72 / num80; + } + num78 *= num80; + num79 *= num80; + int num146 = 4; + if (Main.rand.Next(2) == 0) + { + num146++; + } + if (Main.rand.Next(4) == 0) + { + num146++; + } + if (Main.rand.Next(8) == 0) + { + num146++; + } + if (Main.rand.Next(16) == 0) + { + num146++; + } + for (int num147 = 0; num147 < num146; num147++) + { + float num148 = num78; + float num149 = num79; + float num150 = 0.05f * (float)num147; + num148 += (float)Main.rand.Next(-35, 36) * num150; + num149 += (float)Main.rand.Next(-35, 36) * num150; + num80 = (float)Math.Sqrt((double)(num148 * num148 + num149 * num149)); + num80 = num72 / num80; + num148 *= num80; + num149 *= num80; + float x4 = vector2.X; + float y4 = vector2.Y; + Projectile.NewProjectile(x4, y4, num148, num149, mod.ProjectileType("RoyalKnife"), damage, knockBack, player.whoAmI, 0f, 0f); + } + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "ShadowspecBar", 5); + recipe.AddIngredient(null, "CoreofCalamity", 3); + recipe.AddIngredient(null, "EmpyreanKnivesThrown"); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/SandDollar.cs b/Items/CalamityCustomThrowingDamage/SandDollar.cs new file mode 100644 index 0000000000..eba731e2f2 --- /dev/null +++ b/Items/CalamityCustomThrowingDamage/SandDollar.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class SandDollar : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sand Dollar"); + Tooltip.SetDefault("Stacks up to 2"); + } + + public override void SafeSetDefaults() + { + item.width = 30; + item.height = 28; + item.damage = 30; + item.thrown = true; + item.noMelee = true; + item.noUseGraphic = true; + item.useTime = 15; + item.useAnimation = 15; + item.useStyle = 1; + item.maxStack = 2; + item.knockBack = 3.5f; + item.autoReuse = true; + item.UseSound = SoundID.Item1; + item.value = Item.buyPrice(0, 1, 0, 0); + item.rare = 2; + item.shoot = mod.ProjectileType("SandDollarProj"); + item.shootSpeed = 14f; + } + + public override bool CanUseItem(Player player) + { + int MAX = item.stack; + int launched = 0; + foreach (Projectile projectile in Main.projectile) + if (projectile.type == item.shoot && projectile.owner == item.owner && projectile.active) + { + launched++; + } + return (launched >= MAX) ? false : true; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/SandDollar.png b/Items/CalamityCustomThrowingDamage/SandDollar.png new file mode 100644 index 0000000000000000000000000000000000000000..69e288ef07db4d3d17f31d6d91e314a995dbad8c GIT binary patch literal 522 zcmV+l0`>igP)Px$#7RU!R7i=@X?_84)|~_3VPGMDJAq)tIo}}C`c^5nd;oAi zn0NNgZ7+&Vv$ysE3u{LY`lIM08lO@2TJpg;*1cs6V(n>hVW>uUC#169YY-*nO@=Pl^7Y+hPh&tRCxEw@#v1?K^hmP`Opr zSGq=~P9~jqht4`Y@m|4*MW{DE-8E8?DVMsR<+xWX_ovuNTt-*Fh7Zsu{1u3xDtUcosch`z|_oKzs}Wv)zr<^-zBA}$Zk}#d;kCd M07*qoM6N<$f|Wb)RsaA1 literal 0 HcmV?d00001 diff --git a/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.cs b/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.cs index 41c2ff7bcd..546fd7f39e 100644 --- a/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.cs +++ b/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.cs @@ -1,56 +1,58 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class ScourgeoftheCosmosThrown : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class ScourgeoftheCosmosThrown : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Scourge of the Cosmos"); } - public override void SafeSetDefaults() - { - item.width = 18; - item.damage = 1500; - item.noMelee = true; - item.noUseGraphic = true; - item.useAnimation = 20; - item.useStyle = 5; - item.useTime = 20; - item.knockBack = 5f; - item.UseSound = SoundID.Item109; - item.autoReuse = true; - item.height = 20; - item.value = Item.buyPrice(1, 80, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("ScourgeoftheCosmos"); - item.shootSpeed = 15f; - } - - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) - { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f); - return false; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.ScourgeoftheCorruptor); - recipe.AddIngredient(null, "CosmiliteBar", 10); - recipe.AddIngredient(null, "DarksunFragment", 10); - recipe.AddIngredient(null, "XerocPitchfork", 200); - recipe.AddTile(null, "DraedonsForge"); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 18; + item.damage = 1500; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 20; + item.useStyle = 5; + item.useTime = 20; + item.knockBack = 5f; + item.UseSound = SoundID.Item109; + item.autoReuse = true; + item.height = 20; + item.value = Item.buyPrice(1, 80, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("ScourgeoftheCosmos"); + item.shootSpeed = 15f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f); + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.ScourgeoftheCorruptor); + recipe.AddIngredient(null, "CosmiliteBar", 10); + recipe.AddIngredient(null, "DarksunFragment", 10); + recipe.AddIngredient(null, "XerocPitchfork", 200); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.png b/Items/CalamityCustomThrowingDamage/ScourgeoftheCosmosThrown.png index bc1fc66277f605e8c2854dbaaae21f0c6c2bf14c..f5b527abdf6acc9f2ed30ba00f63e66556f8d325 100644 GIT binary patch delta 1272 zcmVF0>;wS(Mw@1Z}%CsXe3Mlmi{2&SdJj@Gz8u=4|78~ATe^me%`eS zfa|GAAR~6zA;Ku2{1s4BrvPd~5er~_?>4|?{)bbi0ceePD}XzRD*!ZyM=xM z6j163=#c2&7V8Dz=Gc%0Za&|3;3WXgov?je?x$w$H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v#z&HmH+`28&U2s|f1OPz<$U%$+ zRnO)Dip%z2WdR8E_Uv=>-}kr8hexlQqin9z@`3`F*H-}h3c!Q02mbo|w)x`brg{7Q zXY;G0>t+FS@VM$Sv-W145lG;x!q!=~v|ePzJyN2(I;40HXj9 zP+%ZfV27Wr5SRC_G5|cd))hP-c2PdpXUB4X5}+&q(%MVGhgVqug6G4|mWZ-(RTh92 z&%tAPK7Z_DIG)M^5WMVZUlxEC*Yah8QyBmbFR!s2+&Id|Q+WU+sKc&Ia4HKx(A@I2 zM3jxIG5{QQ?6tPk^6FyPzy1wBxeNfU?8nIb<0KGKKAy?~5L_!i`1IwT{XsEIt7nx5 z@a)O?cCyzSAU;L06;=SF0eJfI<94!E7trTu#x{V&W#ecC5CF6~`y_SP;8Y%fPfoLA jd3@~(KRK2M*Jg7E`cJf`gqobj00000NkvXXu0mjfV{SK6 diff --git a/Items/CalamityCustomThrowingDamage/ScourgeoftheDesert.cs b/Items/CalamityCustomThrowingDamage/ScourgeoftheDesert.cs index f5af03c99a..537e57b9e4 100644 --- a/Items/CalamityCustomThrowingDamage/ScourgeoftheDesert.cs +++ b/Items/CalamityCustomThrowingDamage/ScourgeoftheDesert.cs @@ -1,39 +1,39 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class ScourgeoftheDesert : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class ScourgeoftheDesert : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Scourge of the Desert"); - Tooltip.SetDefault("Revengeance drop"); + Tooltip.SetDefault("Revengeance drop"); } - public override void SafeSetDefaults() - { - item.width = 44; - item.damage = 16; - item.noMelee = true; - item.noUseGraphic = true; - item.useAnimation = 20; - item.useStyle = 1; - item.useTime = 20; - item.knockBack = 3.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 44; - item.value = Item.buyPrice(0, 2, 0, 0); - item.rare = 2; - item.shoot = mod.ProjectileType("ScourgeoftheDesert"); - item.shootSpeed = 12f; - } - } -} + public override void SafeSetDefaults() + { + item.width = 44; + item.damage = 16; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 20; + item.useStyle = 1; + item.useTime = 20; + item.knockBack = 3.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 44; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.shoot = mod.ProjectileType("ScourgeoftheDesert"); + item.shootSpeed = 12f; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/SeafoamBomb.cs b/Items/CalamityCustomThrowingDamage/SeafoamBomb.cs new file mode 100644 index 0000000000..255bad9736 --- /dev/null +++ b/Items/CalamityCustomThrowingDamage/SeafoamBomb.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class SeafoamBomb : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Seafoam Bomb"); + Tooltip.SetDefault("Throws a bomb that explodes into a bubble which deals extra damage to enemies"); + } + + public override void SafeSetDefaults() + { + item.width = 26; + item.height = 44; + item.damage = 18; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 18; + item.useStyle = 1; + item.useTime = 18; + item.knockBack = 8f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.shoot = mod.ProjectileType("SeafoamBomb"); + item.shootSpeed = 8f; + item.GetGlobalItem(mod).rogue = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.Bomb, 25); + recipe.AddIngredient(null, "SeaPrism", 10); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/SeafoamBomb.png b/Items/CalamityCustomThrowingDamage/SeafoamBomb.png new file mode 100644 index 0000000000000000000000000000000000000000..33dfca0d191d36128d351d7816c06a8589811a92 GIT binary patch literal 747 zcmV z&1(}u7>A$9$F@yPv(%`Fp&&(4Y7bHn!9(=ywfG10Bzn<(SsXztqwmIrWHVIeHDOoqiL0n*V=J` z`PtV%9J@|5!H})Je@J&-tl5(Wpue`U+uRDEc;+k+rAG3jc>N9lUUdloCszoQ0pPCw z*m9z^{J?hY3gRFV6SDep834awB3$_bY~F32qh(IHx=bH)0s#N59;b4tn2Ex6#5uKd zhkOQrzM|IXP{FZwX;5v(OcW+aI69WL*ABvct$w8;tA6;nF1<=CCL$q8_UZe_-|#Jh z%n7YUeK-$5wlQW+RDJc>stcid0ypV0RM9f$oJ#-ERE#NA`Ut7X5wX*D3)(?%XA-L#^i>04|zHNJ?XDq~&){PXL=qFk10u9)R9Y`i-$}#>Gd} z(WGYkJG;yfg-Luv(p-AB!O)rp%>&+0(-r@Ts{BD!FXxb}8RS)>B4N<@AHfM%> zMgg>E76X8aaVJWeKq4k@4--wql6^@9;BV-EEC0?bh+K~@tBsvsL1x#sy|(3F@jmMI dKaX*5_6sjB@Z@%D9#a4S002ovPDHLkV1fb-X(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "RadiantStar"); + recipe.AddIngredient(null, "DivineGeode", 6); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/ShatteredSun.png b/Items/CalamityCustomThrowingDamage/ShatteredSun.png new file mode 100644 index 0000000000000000000000000000000000000000..3b8a52b8c4411b51ac5154aaceb193fd829ab4bc GIT binary patch literal 1619 zcmV-Z2CVssP){Xc2>76Z_#mJX42h8-m`EVL z2uTCcm_Q8%DI$cANZO#F6+%g{p|ES&VoOVHZMPqk_2JCv^iFsCfl$e||CiaBxpQac z{^ozqxpyrdbET%d2*A>L82}tT?+Fa#`iO`BNROAS|N8;lQeqR6;sMCb91FmYzj^}z zzJqT9aI7>Dfa6!o0NA}I)95E{*#Te(5R4k^8!92Ul19e?kd>MWz{QHn06=JI}8QdVEr5763n2+yaIG!G~7KgvxK-WJJxm*%JY0#MN7>!=IS_sYl&; zPNn&A&92=5q(3pvf?zS)N6{%`Isv%(cVy7{*z|Fo7C^0CS}3Xf&8Lj^ z>-XINoJwTYCLyHWQnIt`8dIaCMpwP=SgCwb`UR+zT=i{<%3)71qz6++#2EXz6J%ai zkTWg-@Ycr30F)Is0&tV;mS^$Nm7Xsjr%*jp%puD0AIWHr-cF7?C@;3{y8PV4Pcx{HX zKkuIo^sFs4KdO|Fo7}X?=@!76UAz0WJ{tA}d*nfP{)>%}F-RUIt6sjQ<^aHRlVvuL z|H88XWX(Y3f7LMiMCc12OQ_f(&)%m@1Rm_}30 zle%5IdLz&?s_OYk^Iiga)~HG_Eh)(Y@YUB3=*3iFPcWnhpU#jddD(L-0FDRU-U}5) zmF%9PtheQ%ykPhf)F0}V!qN*ygIAWDl}hY2 z$$L8DC$Gy$mw3(m<(_?bn*GMU)}pGdXDR?#=*=1EJM^ldLr}?Ok59G$PG7nb0B59? zuo69aO0c=TBj^n@`l|dLLO6M3oIz4m-6$*Qzt#NpfUjgK z>;-5MDgX#uo!cIu&^?P4P$WXixr>;J=39Zxwm@ Rfw2Gp002ovPDHLkV1fX26T1Ka literal 0 HcmV?d00001 diff --git a/Items/CalamityCustomThrowingDamage/SnapClam.cs b/Items/CalamityCustomThrowingDamage/SnapClam.cs new file mode 100644 index 0000000000..f205dda4a1 --- /dev/null +++ b/Items/CalamityCustomThrowingDamage/SnapClam.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class SnapClam : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Snap Clam"); + Tooltip.SetDefault("Can latch on enemies and deal damage over time"); + } + + public override void SafeSetDefaults() + { + item.width = 26; + item.height = 16; + item.damage = 15; + item.thrown = true; + item.noMelee = true; + item.noUseGraphic = true; + item.useTime = 25; + item.useAnimation = 25; + item.useStyle = 1; + item.knockBack = 3f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.shoot = mod.ProjectileType("SnapClamProj"); + item.shootSpeed = 12f; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/SnapClam.png b/Items/CalamityCustomThrowingDamage/SnapClam.png new file mode 100644 index 0000000000000000000000000000000000000000..ce1dee8e7d911f8935371cd9ce20a2753fbfc4af GIT binary patch literal 341 zcmeAS@N?(olHy`uVBq!ia0vp^Qa~)g!3HEbF6OTQQjEnx?oJHr&dIz4viUt-978O6 zlT#d+y=?gYUp(5u_>piyo~?lGiA3K{w^*q5+EQqOLKw7i+O3Shvugib~OTl;@cLPEUzDe%Ar<$2SMwqF>Ftf17(hDM z+Spn>flgqa_$q(mod).rogue = true; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/StellarKnife.png b/Items/CalamityCustomThrowingDamage/StellarKnife.png new file mode 100644 index 0000000000000000000000000000000000000000..85c64dfe8ca0e5391e72b87dc9fb5e3e3d685369 GIT binary patch literal 893 zcmV-@1A_dCP)=*IF8p z=N1fqQ&$9lm4aPy1?0JflC?L+%l*JoU0+=LYD;{@6maT#D{Kk~2J7M7#LJTLQb!m) zrhtXHsJ#_sS3r*`NNr87 zZwX+Hxq!9y0$Y9;=QPoR|wpR!3)hzV>QH)d4Q_odukk&(C-O$WG4yF!u37eql?u zTbT=#>;W~SI%ez^b<3KoIAa$?Lfrslt30NF@X=NP-aUE&KroU6KzToF8ds+C@hAIF z128%=Y&|hc!lpnrokFhhxyrsAkOlMlZ2=aSk^s7vQ3)N)cmKmD z{X0tE`%W+vSX@ftudUnA180lHD`W(HpK-SgW|7kpL?{d z T;%#em00000NkvXXu0mjfLawRn literal 0 HcmV?d00001 diff --git a/Items/CalamityCustomThrowingDamage/TarragonThrowingDart.cs b/Items/CalamityCustomThrowingDamage/TarragonThrowingDart.cs index 01603bf8d2..9010098d24 100644 --- a/Items/CalamityCustomThrowingDamage/TarragonThrowingDart.cs +++ b/Items/CalamityCustomThrowingDamage/TarragonThrowingDart.cs @@ -1,48 +1,50 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class TarragonThrowingDart : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Tarragon Throwing Dart"); - } - - public override void SafeSetDefaults() - { - item.width = 34; - item.damage = 230; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 11; - item.useStyle = 1; - item.useTime = 11; - item.knockBack = 4.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 34; - item.maxStack = 999; - item.value = 25000; - item.shoot = mod.ProjectileType("TarragonThrowingDartProjectile"); - item.shootSpeed = 24f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "UeliaceBar"); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this, 100); - recipe.AddRecipe(); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class TarragonThrowingDart : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Tarragon Throwing Dart"); + } + + public override void SafeSetDefaults() + { + item.width = 34; + item.damage = 380; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 11; + item.useStyle = 1; + item.useTime = 11; + item.knockBack = 4.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 34; + item.maxStack = 999; + item.value = 25000; + item.shoot = mod.ProjectileType("TarragonThrowingDartProjectile"); + item.shootSpeed = 24f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "UeliaceBar"); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this, 100); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/TitaniumShuriken.cs b/Items/CalamityCustomThrowingDamage/TitaniumShuriken.cs index 3d77ce19e2..1d5ef541eb 100644 --- a/Items/CalamityCustomThrowingDamage/TitaniumShuriken.cs +++ b/Items/CalamityCustomThrowingDamage/TitaniumShuriken.cs @@ -1,50 +1,50 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class TitaniumShuriken : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Titanium Shuriken"); - } - - public override void SafeSetDefaults() - { - item.width = 38; - item.damage = 31; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 9; - item.crit = 10; - item.useStyle = 1; - item.useTime = 9; - item.knockBack = 3f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 38; - item.maxStack = 999; - item.value = 2000; - item.rare = 4; - item.shoot = mod.ProjectileType("TitaniumShurikenProjectile"); - item.shootSpeed = 16f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.TitaniumBar); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 30); - recipe.AddRecipe(); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class TitaniumShuriken : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Titanium Shuriken"); + } + + public override void SafeSetDefaults() + { + item.width = 38; + item.damage = 31; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 9; + item.crit = 10; + item.useStyle = 1; + item.useTime = 9; + item.knockBack = 3f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 38; + item.maxStack = 999; + item.value = 2000; + item.rare = 4; + item.shoot = mod.ProjectileType("TitaniumShurikenProjectile"); + item.shootSpeed = 16f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.TitaniumBar); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this, 30); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/ToothBall.cs b/Items/CalamityCustomThrowingDamage/ToothBall.cs index 53e35152d7..9c2a2a594b 100644 --- a/Items/CalamityCustomThrowingDamage/ToothBall.cs +++ b/Items/CalamityCustomThrowingDamage/ToothBall.cs @@ -1,52 +1,52 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class ToothBall : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class ToothBall : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Tooth Ball"); } - - public override void SafeSetDefaults() - { - item.width = 30; - item.damage = 20; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 13; - item.crit = 8; - item.useStyle = 1; - item.useTime = 13; - item.knockBack = 2.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 30; - item.maxStack = 999; - item.value = 1000; - item.rare = 3; - item.shoot = mod.ProjectileType("ToothBallProjectile"); - item.shootSpeed = 16f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "BloodSample"); - recipe.AddIngredient(ItemID.Vertebrae); - recipe.AddIngredient(ItemID.CrimtaneBar); - recipe.AddTile(TileID.DemonAltar); - recipe.SetResult(this, 100); - recipe.AddRecipe(); - } - } -} + + public override void SafeSetDefaults() + { + item.width = 30; + item.damage = 20; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 13; + item.crit = 8; + item.useStyle = 1; + item.useTime = 13; + item.knockBack = 2.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 30; + item.maxStack = 999; + item.value = 1000; + item.rare = 3; + item.shoot = mod.ProjectileType("ToothBallProjectile"); + item.shootSpeed = 16f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "BloodSample"); + recipe.AddIngredient(ItemID.Vertebrae); + recipe.AddIngredient(ItemID.CrimtaneBar); + recipe.AddTile(TileID.DemonAltar); + recipe.SetResult(this, 100); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/TriactisTruePaladinianMageHammerofMight.cs b/Items/CalamityCustomThrowingDamage/TriactisTruePaladinianMageHammerofMight.cs index 11b35a2a56..51ee418b6a 100644 --- a/Items/CalamityCustomThrowingDamage/TriactisTruePaladinianMageHammerofMight.cs +++ b/Items/CalamityCustomThrowingDamage/TriactisTruePaladinianMageHammerofMight.cs @@ -1,49 +1,51 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class TriactisTruePaladinianMageHammerofMight : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Triactis' True Paladinian Mage-Hammer of Might"); - } - - public override void SafeSetDefaults() - { - item.width = 160; - item.damage = 5000; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 10; - item.useStyle = 1; - item.useTime = 10; - item.knockBack = 50f; - item.UseSound = SoundID.Item1; - item.height = 160; - item.value = Item.buyPrice(5, 0, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("TriactisOPHammer"); - item.shootSpeed = 25f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "TruePaladinsHammer"); - recipe.AddIngredient(ItemID.SoulofMight, 30); - recipe.AddIngredient(null, "ShadowspecBar", 5); - recipe.AddTile(null, "DraedonsForge"); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class TriactisTruePaladinianMageHammerofMight : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Triactis' True Paladinian Mage-Hammer of Might"); + } + + public override void SafeSetDefaults() + { + item.width = 160; + item.damage = 10000; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 10; + item.useStyle = 1; + item.useTime = 10; + item.knockBack = 50f; + item.UseSound = SoundID.Item1; + item.height = 160; + item.value = Item.buyPrice(5, 0, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("TriactisOPHammer"); + item.shootSpeed = 25f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "TruePaladinsHammer"); + recipe.AddIngredient(ItemID.SoulofMight, 30); + recipe.AddIngredient(null, "ShadowspecBar", 5); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/TruePaladinsHammer.cs b/Items/CalamityCustomThrowingDamage/TruePaladinsHammer.cs index 6557f78c28..47b849ea31 100644 --- a/Items/CalamityCustomThrowingDamage/TruePaladinsHammer.cs +++ b/Items/CalamityCustomThrowingDamage/TruePaladinsHammer.cs @@ -1,50 +1,50 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class TruePaladinsHammer : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("True Paladin's Hammer"); - } - - public override void SafeSetDefaults() - { - item.width = 14; - item.damage = 180; - item.noMelee = true; - item.noUseGraphic = true; - item.autoReuse = true; - item.useAnimation = 13; - item.useStyle = 1; - item.useTime = 13; - item.knockBack = 20f; - item.UseSound = SoundID.Item1; - item.height = 28; - item.value = Item.buyPrice(0, 80, 0, 0); - item.rare = 8; - item.shoot = mod.ProjectileType("OPHammer"); - item.shootSpeed = 14f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.PaladinsHammer); - recipe.AddIngredient(null, "CalamityDust", 5); - recipe.AddIngredient(null, "CoreofChaos", 5); - recipe.AddIngredient(null, "CruptixBar", 5); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class TruePaladinsHammer : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("True Paladin's Hammer"); + } + + public override void SafeSetDefaults() + { + item.width = 14; + item.damage = 180; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 13; + item.useStyle = 1; + item.useTime = 13; + item.knockBack = 20f; + item.UseSound = SoundID.Item1; + item.height = 28; + item.value = Item.buyPrice(0, 80, 0, 0); + item.rare = 8; + item.shoot = mod.ProjectileType("OPHammer"); + item.shootSpeed = 14f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.PaladinsHammer); + recipe.AddIngredient(null, "CalamityDust", 5); + recipe.AddIngredient(null, "CoreofChaos", 5); + recipe.AddIngredient(null, "CruptixBar", 5); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/UrchinStinger.cs b/Items/CalamityCustomThrowingDamage/UrchinStinger.cs index 300fec2edf..94cdf62a89 100644 --- a/Items/CalamityCustomThrowingDamage/UrchinStinger.cs +++ b/Items/CalamityCustomThrowingDamage/UrchinStinger.cs @@ -1,40 +1,40 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class UrchinStinger : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class UrchinStinger : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Urchin Stinger"); } - public override void SafeSetDefaults() - { - item.width = 10; - item.damage = 15; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 14; - item.useStyle = 1; - item.useTime = 14; - item.knockBack = 1.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 26; - item.maxStack = 999; - item.value = 200; - item.rare = 1; - item.shoot = mod.ProjectileType("UrchinStinger"); - item.shootSpeed = 12f; - } - } -} + public override void SafeSetDefaults() + { + item.width = 10; + item.damage = 15; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 14; + item.useStyle = 1; + item.useTime = 14; + item.knockBack = 1.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 26; + item.maxStack = 999; + item.value = 200; + item.rare = 1; + item.shoot = mod.ProjectileType("UrchinStinger"); + item.shootSpeed = 12f; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/Valediction.cs b/Items/CalamityCustomThrowingDamage/Valediction.cs index 045ddf0e6f..6b5cbd1131 100644 --- a/Items/CalamityCustomThrowingDamage/Valediction.cs +++ b/Items/CalamityCustomThrowingDamage/Valediction.cs @@ -1,38 +1,40 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class Valediction : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class Valediction : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Valediction"); Tooltip.SetDefault("Throws a homing reaper scythe"); } - public override void SafeSetDefaults() - { - item.width = 80; - item.damage = 405; - item.noMelee = true; - item.noUseGraphic = true; - item.useAnimation = 15; - item.useTime = 15; - item.useStyle = 1; - item.knockBack = 7f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 64; - item.value = Item.buyPrice(1, 40, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("Valediction"); - item.shootSpeed = 20f; - } - } -} + public override void SafeSetDefaults() + { + item.width = 80; + item.damage = 405; + item.noMelee = true; + item.noUseGraphic = true; + item.useAnimation = 15; + item.useTime = 15; + item.useStyle = 1; + item.knockBack = 7f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 64; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("Valediction"); + item.shootSpeed = 20f; + item.GetGlobalItem(mod).rogue = true; + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/WulfrumKnife.cs b/Items/CalamityCustomThrowingDamage/WulfrumKnife.cs index 86cc8dae2d..3c81fc04fe 100644 --- a/Items/CalamityCustomThrowingDamage/WulfrumKnife.cs +++ b/Items/CalamityCustomThrowingDamage/WulfrumKnife.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class WulfrumKnife : CalamityDamageItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class WulfrumKnife : CalamityDamageItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Wulfrum Knife"); } - public override void SafeSetDefaults() - { - item.width = 22; - item.damage = 8; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 15; - item.useStyle = 1; - item.useTime = 15; - item.knockBack = 1f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 38; - item.maxStack = 999; - item.value = 100; - item.rare = 1; - item.shoot = mod.ProjectileType("WulfrumKnife"); - item.shootSpeed = 12f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "WulfrumShard"); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(this, 50); - recipe.AddRecipe(); - } - } -} + public override void SafeSetDefaults() + { + item.width = 22; + item.damage = 8; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 15; + item.useStyle = 1; + item.useTime = 15; + item.knockBack = 1f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 38; + item.maxStack = 999; + item.value = 100; + item.rare = 1; + item.shoot = mod.ProjectileType("WulfrumKnife"); + item.shootSpeed = 12f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "WulfrumShard"); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this, 50); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityCustomThrowingDamage/XerocPitchfork.cs b/Items/CalamityCustomThrowingDamage/XerocPitchfork.cs index 34775f5fd2..af4593cd9e 100644 --- a/Items/CalamityCustomThrowingDamage/XerocPitchfork.cs +++ b/Items/CalamityCustomThrowingDamage/XerocPitchfork.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.CalamityCustomThrowingDamage -{ - public class XerocPitchfork : CalamityDamageItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Xeroc Pitchfork"); - } - - public override void SafeSetDefaults() - { - item.width = 48; - item.damage = 180; - item.noMelee = true; - item.consumable = true; - item.noUseGraphic = true; - item.useAnimation = 19; - item.useStyle = 1; - item.useTime = 19; - item.knockBack = 8f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 48; - item.maxStack = 999; - item.value = 10000; - item.rare = 9; - item.shoot = mod.ProjectileType("XerocPitchforkProjectile"); - item.shootSpeed = 16f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "MeldiateBar"); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this, 20); - recipe.AddRecipe(); - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.CalamityCustomThrowingDamage +{ + public class XerocPitchfork : CalamityDamageItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Xeroc Pitchfork"); + } + + public override void SafeSetDefaults() + { + item.width = 48; + item.damage = 180; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 19; + item.useStyle = 1; + item.useTime = 19; + item.knockBack = 8f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 48; + item.maxStack = 999; + item.value = 10000; + item.rare = 9; + item.shoot = mod.ProjectileType("XerocPitchforkProjectile"); + item.shootSpeed = 16f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "MeldiateBar"); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this, 20); + recipe.AddRecipe(); + } + } +} diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 77edda95fd..0ef21e89a9 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.IO; +using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -17,1082 +18,1734 @@ namespace CalamityMod.Items { public class CalamityGlobalItem : GlobalItem { - public override void SetDefaults(Item item) - { - if (item.maxStack == 99 || item.type == ItemID.Dynamite || item.type == ItemID.StickyDynamite || - item.type == ItemID.BouncyDynamite || item.type == ItemID.StickyBomb || item.type == ItemID.BouncyBomb) - item.maxStack = 999; + #region Instances + public override bool InstancePerEntity + { + get + { + return true; + } + } - if (item.type >= ItemID.GreenSolution && item.type <= ItemID.RedSolution) - item.value = Item.buyPrice(0, 0, 5, 0); + public override bool CloneNewInstances + { + get + { + return true; + } + } + #endregion - if (CalamityMod.weaponAutoreuseList.Contains(item.type)) - item.autoReuse = true; + public bool rogue = false; - if (item.type == ItemID.PsychoKnife) - item.damage *= 4; - else if (CalamityMod.doubleDamageBuffList.Contains(item.type)) - item.damage *= 2; - else if (CalamityMod.sixtySixDamageBuffList.Contains(item.type)) - item.damage = (int)((double)item.damage * 1.66); - else if (CalamityMod.fiftyDamageBuffList.Contains(item.type)) - item.damage = (int)((double)item.damage * 1.5); - else if (CalamityMod.thirtyThreeDamageBuffList.Contains(item.type)) - item.damage = (int)((double)item.damage * 1.33); - else if (CalamityMod.twentyFiveDamageBuffList.Contains(item.type)) - item.damage = (int)((double)item.damage * 1.25); - else if (CalamityMod.twentyDamageBuffList.Contains(item.type)) - item.damage = (int)((double)item.damage * 1.2); - else if (item.type == ItemID.Frostbrand || item.type == ItemID.MagnetSphere) - item.damage = (int)((double)item.damage * 1.1); - else if (item.type == ItemID.Razorpine) - item.damage = (int)((double)item.damage * 0.95); - else if (CalamityMod.quarterDamageNerfList.Contains(item.type)) - item.damage = (int)((double)item.damage * 0.75); + public int postMoonLordRarity = 0; - if (item.type == ItemID.BookStaff) - item.mana = 10; - else if (item.type == ItemID.UnholyTrident) - item.mana = 14; - else if (item.type == ItemID.FrostStaff) - item.mana = 9; - else if (item.type == ItemID.BookofSkulls) - item.mana = 12; - else if (item.type == ItemID.BlizzardStaff) - item.mana = 7; - else if (item.type == ItemID.SolarFlareHelmet) //total defense pre-buff = 78 post-buff = 94 - item.defense = 29; //5 more defense - else if (item.type == ItemID.SolarFlareBreastplate) - item.defense = 41; //7 more defense - else if (item.type == ItemID.SolarFlareLeggings) - item.defense = 24; //4 more defense - else if (item.type == ItemID.GladiatorHelmet) //total defense pre-buff = 7 post-buff = 21 - item.defense = 4; //2 more defense - else if (item.type == ItemID.GladiatorBreastplate) - item.defense = 7; //4 more defense - else if (item.type == ItemID.GladiatorLeggings) - item.defense = 5; //3 more defense - else if (item.type == ItemID.HallowedPlateMail) //total defense pre-buff = 31, 50, 35 post-buff = 36, 55, 40 - item.defense = 18; //3 more defense - else if (item.type == ItemID.HallowedGreaves) - item.defense = 13; //2 more defense - } + #region SetDefaults + public override void SetDefaults(Item item) + { + if (postMoonLordRarity != 0 && item.rare != 10) + item.rare = 10; - public override bool OnPickup(Item item, Player player) - { - if (item.type == ItemID.Heart || item.type == ItemID.CandyApple || item.type == ItemID.CandyCane) - { - if (NPC.AnyNPCs(mod.NPCType("SupremeCalamitas"))) - { - player.statLife -= 10; - if (Main.myPlayer == player.whoAmI) - { - player.HealEffect(-10, true); - } - } - } - return true; - } + if (item.maxStack == 99 || item.type == ItemID.Dynamite || item.type == ItemID.StickyDynamite || + item.type == ItemID.BouncyDynamite || item.type == ItemID.StickyBomb || item.type == ItemID.BouncyBomb) + item.maxStack = 999; - public override bool CanUseItem(Item item, Player player) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - if (item.type == ItemID.MonkStaffT1) - { - for (int i = 0; i < 1000; ++i) - { - if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot) - { - return false; - } - } - return true; - } - if (item.type == ItemID.SpaceGun && player.spaceGun) - { - if (player.statMana >= (int)((float)3 * player.manaCost)) - { - player.manaRegenDelay = (int)player.maxRegenDelay; - player.statMana -= (int)((float)3 * player.manaCost); - } - else if (player.manaFlower) - { - player.QuickMana(); - if (player.statMana >= (int)((float)3 * player.manaCost)) - { - player.manaRegenDelay = (int)player.maxRegenDelay; - player.statMana -= (int)((float)3 * player.manaCost); - } - else - { - return false; - } - } - else - { - return false; - } - return true; - } - if ((item.type == ItemID.SuperAbsorbantSponge || item.type == ItemID.EmptyBucket) && modPlayer.ZoneAbyss) - { - return false; - } - if (item.type == ItemID.MagicMirror || item.type == ItemID.IceMirror || item.type == ItemID.CellPhone || item.type == ItemID.RecallPotion) - { - return !NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")); - } - if (item.type == ItemID.RodofDiscord && modPlayer.scarfCooldown) - { - player.AddBuff(BuffID.ChaosState, 720); - } - return true; - } + if (item.type >= ItemID.GreenSolution && item.type <= ItemID.RedSolution) + item.value = Item.buyPrice(0, 0, 5, 0); - public override void ModifyTooltips(Item item, List tooltips) - { - if (item.type == ItemID.SuperAbsorbantSponge) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Capable of soaking up an endless amount of water\n" + - "Cannot be used in the Abyss"; - } - } - } - if (item.type == ItemID.EmptyBucket) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Defense") - { - line2.text = "1 defense\n" + - "Cannot be used in the Abyss"; - } - } - } - if (item.type == ItemID.CrimsonHeart) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Summons a heart to provide light\n" + - "Provides a small amount of light in the abyss"; - } - } - } - if (item.type == ItemID.ShadowOrb) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Creates a magical shadow orb\n" + - "Provides a small amount of light in the abyss"; - } - } - } - if (item.type == ItemID.MagicLantern) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Summons a magic lantern that exposes nearby treasure\n" + - "Provides a small amount of light in the abyss"; - } - } - } - if (item.type == ItemID.ArcticDivingGear) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip1") - { - line2.text = "Provides light under water and extra mobility on ice\n" + - "Provides a small amount of light in the abyss\n" + - "Moderately reduces breath loss in the abyss"; - } - } - } - if (item.type == ItemID.JellyfishNecklace) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Provides light under water\n" + - "Provides a small amount of light in the abyss"; - } - } - } - if (item.type == ItemID.JellyfishDivingGear) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip1") - { - line2.text = "Provides light under water\n" + - "Provides a small amount of light in the abyss"; - } - } - } - if (item.type == ItemID.FairyBell) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Summons a magical fairy\n" + - "Provides a moderate amount of light in the abyss"; - } - } - } - if (item.type == ItemID.DD2PetGhost) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Summons a pet flickerwick to provide light\n" + - "Provides a moderate amount of light in the abyss"; - } - } - } - if (item.type == ItemID.ShinePotion) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "BuffTime") - { - line2.text = "5 minute duration\n" + - "Provides a moderate amount of light in the abyss"; - } - } - } - if (item.type == ItemID.WispinaBottle) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Summons a Wisp to provide light\n" + - "Provides a large amount of light in the abyss"; - } - } - } - if (item.type == ItemID.SuspiciousLookingTentacle) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip1") - { - line2.text = "'I know what you're thinking...'\n" + - "Provides a large amount of light in the abyss"; - } - } - } - if (item.type == ItemID.GillsPotion) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "BuffTime") - { - line2.text = "2 minute duration\n" + - "Greatly reduces breath loss in the abyss"; - } - } - } - if (item.type == ItemID.DivingHelmet) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Greatly extends underwater breathing\n" + - "Moderately reduces breath loss in the abyss"; - } - } - } - if (item.type == ItemID.NeptunesShell) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Transforms the holder into merfolk when entering water\n" + - "Greatly reduces breath loss in the abyss"; - } - } - } - if (item.type == ItemID.MoonShell) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Turns the holder into a werewolf at night and a merfolk when entering water\n" + - "Greatly reduces breath loss in the abyss"; - } - } - } - if (item.type == ItemID.CelestialShell) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip1") - { - line2.text = "Minor increases to all stats\n" + - "Greatly reduces breath loss in the abyss"; - } - } - } - if (item.type == ItemID.WormScarf) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Reduces damage taken by 10%"; - } - } - } - if (item.type == ItemID.SpectreHood) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "20% decreased magic damage"; - } - } - } - if (item.type == ItemID.MeteorHelmet || item.type == ItemID.MeteorSuit || item.type == ItemID.MeteorLeggings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: Reduces the mana cost of the Space Gun by 50%"; - } - } - } - if (item.type == ItemID.CopperHelmet || item.type == ItemID.CopperChainmail || item.type == ItemID.CopperGreaves) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: +2 defense and 15% increased mining speed"; - } - } - } - if (item.type == ItemID.TinHelmet || item.type == ItemID.TinChainmail || item.type == ItemID.TinGreaves) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: +2 defense and 10% increased mining speed"; - } - } - } - if (item.type == ItemID.IronHelmet || item.type == ItemID.IronChainmail || item.type == ItemID.IronGreaves) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: +2 defense and 25% increased mining speed"; - } - } - } - if (item.type == ItemID.LeadHelmet || item.type == ItemID.LeadChainmail || item.type == ItemID.LeadGreaves) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: +3 defense and 20% increased mining speed"; - } - } - } - if (item.type == ItemID.SilverHelmet || item.type == ItemID.SilverChainmail || item.type == ItemID.SilverGreaves) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: +3 defense and 35% increased mining speed"; - } - } - } - if (item.type == ItemID.TungstenHelmet || item.type == ItemID.TungstenChainmail || item.type == ItemID.TungstenGreaves) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: +3 defense and 30% increased mining speed"; - } - } - } - if (item.type == ItemID.GoldHelmet || item.type == ItemID.GoldChainmail || item.type == ItemID.GoldGreaves) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: +3 defense and 45% increased mining speed"; - } - } - } - if (item.type == ItemID.PlatinumHelmet || item.type == ItemID.PlatinumChainmail || item.type == ItemID.PlatinumGreaves) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "SetBonus") - { - line2.text = "Set Bonus: +4 defense and 40% increased mining speed"; - } - } - } - if (item.type == ItemID.GladiatorHelmet) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Defense") - { - line2.text = "4 defense\n" + - "5% increased rogue damage"; - } - } - } - if (item.type == ItemID.GladiatorBreastplate) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Defense") - { - line2.text = "7 defense\n" + - "5% increased rogue critical strike chance"; - } - } - } - if (item.type == ItemID.GladiatorLeggings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Defense") - { - line2.text = "5 defense\n" + - "5% increased rogue velocity"; - } - } - } - if (item.type == ItemID.ObsidianHelm) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Defense") - { - line2.text = "4 defense\n" + - "5% increased rogue damage"; - } - } - } - if (item.type == ItemID.ObsidianShirt) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Defense") - { - line2.text = "5 defense\n" + - "5% increased rogue critical strike chance"; - } - } - } - if (item.type == ItemID.ObsidianPants) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Defense") - { - line2.text = "4 defense\n" + - "5% increased rogue velocity"; - } - } - } - if (item.type == ItemID.MagicQuiver) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Increases arrow damage by 10% and greatly increases arrow speed"; - } - } - } - if (item.type == ItemID.AngelWings || item.type == ItemID.DemonWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 6.25\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 100"; - } - } - } - if (item.type == ItemID.Jetpack) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 6.5\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 115"; - } - } - } - if (item.type == ItemID.ButterflyWings || item.type == ItemID.FairyWings || item.type == ItemID.BeeWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 6.75\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 130"; - } - } - } - if (item.type == ItemID.HarpyWings || item.type == ItemID.BoneWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 7\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 140"; - } - } - } - if (item.type == ItemID.FlameWings || item.type == ItemID.FrozenWings || item.type == ItemID.GhostWings || - item.type == ItemID.BeetleWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 7.5\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 160"; - } - } - } - if (item.type == ItemID.FinWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 0\n" + - "Acceleration multiplier: 0\n" + - "Average vertical speed\n" + - "Flight time: 100"; - } - } - } - if (item.type == ItemID.FishronWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 8\n" + - "Acceleration multiplier: 2\n" + - "Good vertical speed\n" + - "Flight time: 180"; - } - } - } - if (item.type == ItemID.SteampunkWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 7.75\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 180"; - } - } - } - if (item.type == ItemID.LeafWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 6.75\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 160"; - } - } - } - if (item.type == ItemID.BatWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 0\n" + - "Acceleration multiplier: 0\n" + - "Average vertical speed\n" + - "Flight time: 140"; - } - } - } - if (item.type == ItemID.Yoraiz0rWings || item.type == ItemID.JimsWings || item.type == ItemID.SkiphsWings || - item.type == ItemID.LokisWings || item.type == ItemID.ArkhalisWings || item.type == ItemID.LeinforsWings || - item.type == ItemID.BejeweledValkyrieWing || item.type == ItemID.RedsWings || item.type == ItemID.DTownsWings || - item.type == ItemID.WillsWings || item.type == ItemID.CrownosWings || item.type == ItemID.CenxsWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "'Great for impersonating devs!'\n" + - "Horizontal speed: 7\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 150"; - } - } - } - if (item.type == ItemID.TatteredFairyWings || item.type == ItemID.SpookyWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 7.5\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 180"; - } - } - } - if (item.type == ItemID.Hoverboard) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 6.25\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 170"; - } - } - } - if (item.type == ItemID.FestiveWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 7.5\n" + - "Acceleration multiplier: 1\n" + - "Average vertical speed\n" + - "Flight time: 170"; - } - } - } - if (item.type == ItemID.MothronWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 0\n" + - "Acceleration multiplier: 0\n" + - "Average vertical speed\n" + - "Flight time: 160"; - } - } - } - if (item.type == ItemID.WingsSolar || item.type == ItemID.WingsStardust) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 9\n" + - "Acceleration multiplier: 2.5\n" + - "Great vertical speed\n" + - "Flight time: 180"; - } - } - } - if (item.type == ItemID.WingsVortex || item.type == ItemID.WingsNebula) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") - { - line2.text = "Allows flight and slow fall\n" + - "Horizontal speed: 6.5\n" + - "Acceleration multiplier: 1.5\n" + - "Good vertical speed\n" + - "Flight time: 160"; - } - } - } - if (item.type == ItemID.BetsyWings) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "Equipable") - { - line2.text = "Equipable\n" + - "Allows flight and slow fall\n" + - "Horizontal speed: 6\n" + - "Acceleration multiplier: 2.5\n" + - "Good vertical speed\n" + - "Flight time: 150"; - } - } - } - if (item.accessory) - { - if (item.prefix == 67) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "PrefixAccCritChance") - { - line2.text = "+1% critical strike chance"; - } - } - } - if (item.prefix == 68) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "PrefixAccCritChance") - { - line2.text = "+2% critical strike chance"; - } - } - } - if (item.prefix == 62) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "PrefixAccDefense") - { - line2.text = "+1 defense\n" + - "+0.25% damage reduction"; - } - } - } - if (item.prefix == 63) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "PrefixAccDefense") - { - line2.text = "+2 defense\n" + - "+0.5% damage reduction"; - } - } - } - if (item.prefix == 64) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "PrefixAccDefense") - { - line2.text = "+3 defense\n" + - "+0.75% damage reduction"; - } - } - } - if (item.prefix == 65) - { - foreach (TooltipLine line2 in tooltips) - { - if (line2.mod == "Terraria" && line2.Name == "PrefixAccDefense") - { - line2.text = "+4 defense\n" + - "+1% damage reduction"; - } - } - } - } - } + if (CalamityMod.weaponAutoreuseList.Contains(item.type)) + item.autoReuse = true; - public override string IsArmorSet(Item head, Item body, Item legs) - { - if (head.type == ItemID.CopperHelmet && body.type == ItemID.CopperChainmail && legs.type == ItemID.CopperGreaves) - return "Copper"; - if (head.type == ItemID.TinHelmet && body.type == ItemID.TinChainmail && legs.type == ItemID.TinGreaves) - return "Tin"; - if (head.type == ItemID.IronHelmet && body.type == ItemID.IronChainmail && legs.type == ItemID.IronGreaves) - return "Iron"; - if (head.type == ItemID.LeadHelmet && body.type == ItemID.LeadChainmail && legs.type == ItemID.LeadGreaves) - return "Lead"; - if (head.type == ItemID.SilverHelmet && body.type == ItemID.SilverChainmail && legs.type == ItemID.SilverGreaves) - return "Silver"; - if (head.type == ItemID.TungstenHelmet && body.type == ItemID.TungstenChainmail && legs.type == ItemID.TungstenGreaves) - return "Tungsten"; - if (head.type == ItemID.GoldHelmet && body.type == ItemID.GoldChainmail && legs.type == ItemID.GoldGreaves) - return "Gold"; - if (head.type == ItemID.PlatinumHelmet && body.type == ItemID.PlatinumChainmail && legs.type == ItemID.PlatinumGreaves) - return "Platinum"; - if (head.type == ItemID.GladiatorHelmet && body.type == ItemID.GladiatorBreastplate && legs.type == ItemID.GladiatorLeggings) - return "Gladiator"; - if (head.type == ItemID.ObsidianHelm && body.type == ItemID.ObsidianShirt && legs.type == ItemID.ObsidianPants) - return "Obsidian"; - if (head.type == ItemID.PumpkinHelmet && body.type == ItemID.PumpkinBreastplate && legs.type == ItemID.PumpkinLeggings) - return "PumpMyAssFull"; - return ""; - } + if (item.type == ItemID.PsychoKnife) + item.damage *= 4; + else if (CalamityMod.doubleDamageBuffList.Contains(item.type)) + item.damage *= 2; + else if (CalamityMod.sixtySixDamageBuffList.Contains(item.type)) + item.damage = (int)((double)item.damage * 1.66); + else if (CalamityMod.fiftyDamageBuffList.Contains(item.type)) + item.damage = (int)((double)item.damage * 1.5); + else if (CalamityMod.thirtyThreeDamageBuffList.Contains(item.type)) + item.damage = (int)((double)item.damage * 1.33); + else if (CalamityMod.twentyFiveDamageBuffList.Contains(item.type)) + item.damage = (int)((double)item.damage * 1.25); + else if (CalamityMod.twentyDamageBuffList.Contains(item.type)) + item.damage = (int)((double)item.damage * 1.2); + else if (item.type == ItemID.Frostbrand || item.type == ItemID.MagnetSphere) + item.damage = (int)((double)item.damage * 1.1); + else if (item.type == ItemID.Razorpine) + item.damage = (int)((double)item.damage * 0.95); + else if (item.type == ItemID.LastPrism) + item.damage = (int)((double)item.damage * 0.85); + else if (CalamityMod.quarterDamageNerfList.Contains(item.type)) + item.damage = (int)((double)item.damage * 0.75); - public override void UpdateArmorSet(Player player, string set) - { - if (set == "Copper") - player.pickSpeed -= 0.15f; - else if (set == "Tin") - player.pickSpeed -= 0.1f; - else if (set == "Iron") - player.pickSpeed -= 0.25f; - else if (set == "Lead") - player.pickSpeed -= 0.2f; - else if (set == "Silver") - player.pickSpeed -= 0.35f; - else if (set == "Tungsten") - player.pickSpeed -= 0.3f; - else if (set == "Gold") - player.pickSpeed -= 0.45f; - else if (set == "Platinum") - player.pickSpeed -= 0.4f; - else if (set == "Gladiator") - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.1f; - player.statDefense += 5; - player.setBonus = "+5 defense\n" + - "10% increased rogue damage and velocity"; - } - else if (set == "Obsidian") - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; - player.statDefense += 3; - player.fireWalk = true; - player.lavaMax += 300; - player.setBonus = "+3 defense\n" + - "10% increased rogue damage and critical strike chance\n" + - "Grants immunity to fire blocks and temporary immunity to lava"; - } - else if (set == "PumpMyAssFull") - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - } + if (item.type == ItemID.BookStaff) + item.mana = 10; + else if (item.type == ItemID.UnholyTrident) + item.mana = 14; + else if (item.type == ItemID.FrostStaff) + item.mana = 9; + else if (item.type == ItemID.BookofSkulls) + item.mana = 12; + else if (item.type == ItemID.BlizzardStaff) + item.mana = 7; + else if (item.type == ItemID.SolarFlareHelmet) //total defense pre-buff = 78 post-buff = 94 + item.defense = 29; //5 more defense + else if (item.type == ItemID.SolarFlareBreastplate) + item.defense = 41; //7 more defense + else if (item.type == ItemID.SolarFlareLeggings) + item.defense = 24; //4 more defense + else if (item.type == ItemID.GladiatorHelmet) //total defense pre-buff = 7 post-buff = 21 + item.defense = 4; //2 more defense + else if (item.type == ItemID.GladiatorBreastplate) + item.defense = 7; //4 more defense + else if (item.type == ItemID.GladiatorLeggings) + item.defense = 5; //3 more defense + else if (item.type == ItemID.HallowedPlateMail) //total defense pre-buff = 31, 50, 35 post-buff = 36, 55, 40 + item.defense = 18; //3 more defense + else if (item.type == ItemID.HallowedGreaves) + item.defense = 13; //2 more defense + } + #endregion - public override void UpdateEquip(Item item, Player player) - { - if (item.type == ItemID.SpectreHood) - player.magicDamage += 0.2f; - else if (item.type == ItemID.GladiatorHelmet || item.type == ItemID.ObsidianHelm) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - else if (item.type == ItemID.CrimsonHelmet) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; + #region SavingAndLoading + public override bool NeedsSaving(Item item) + { + return true; + } - if (item.type == ItemID.GladiatorBreastplate || item.type == ItemID.ObsidianShirt) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; - else if (item.type == ItemID.CrimsonScalemail) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; - else if (item.type == ItemID.PalladiumBreastplate) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - } - else if (item.type == ItemID.CobaltBreastplate) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; - else if (item.type == ItemID.MythrilChainmail) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - else if (item.type == ItemID.OrichalcumBreastplate) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 6; - else if (item.type == ItemID.AdamantiteBreastplate) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; - else if (item.type == ItemID.TitaniumBreastplate) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; - } - else if (item.type == ItemID.HallowedPlateMail) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 7; - else if (item.type == ItemID.ChlorophytePlateMail) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 7; - } - else if (item.type == ItemID.Gi) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; - } + public override TagCompound Save(Item item) + { + return new TagCompound + { + { + "rogue", rogue + }, + { + "rarity", postMoonLordRarity + } + }; + } - if (item.type == ItemID.GladiatorLeggings || item.type == ItemID.ObsidianPants) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.05f; - else if (item.type == ItemID.CrimsonGreaves) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; - else if (item.type == ItemID.PalladiumLeggings) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; - } - else if (item.type == ItemID.MythrilGreaves) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; - else if (item.type == ItemID.AdamantiteLeggings) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 4; - else if (item.type == ItemID.TitaniumLeggings) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; - } - else if (item.type == ItemID.HallowedGreaves) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.07f; - else if (item.type == ItemID.ChlorophyteGreaves) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 8; - } + public override void Load(Item item, TagCompound tag) + { + rogue = tag.GetBool("rogue"); + postMoonLordRarity = tag.GetInt("rarity"); + } - public override void UpdateAccessory(Item item, Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); + public override void LoadLegacy(Item item, BinaryReader reader) + { + int loadVersion = reader.ReadInt32(); + postMoonLordRarity = reader.ReadInt32(); - if (item.type == ItemID.JellyfishNecklace || item.type == ItemID.JellyfishDivingGear || item.type == ItemID.ArcticDivingGear) - modPlayer.jellyfishNecklace = true; + if (loadVersion == 0) + { + BitsByte flags = reader.ReadByte(); + rogue = flags[0]; + } + else + { + ErrorLogger.Log("CalamityMod: Unknown loadVersion: " + loadVersion); + } + } - if (item.type == ItemID.WormScarf) - player.endurance -= 0.07f; + public override void NetSend(Item item, BinaryWriter writer) + { + BitsByte flags = new BitsByte(); + flags[0] = rogue; - if (item.type == ItemID.AvengerEmblem) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.12f; - if (item.type == ItemID.CelestialStone || item.type == ItemID.CelestialShell || (item.type == ItemID.MoonStone && !Main.dayTime) || - (item.type == ItemID.SunStone && Main.dayTime)) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - } - if (item.type == ItemID.DestroyerEmblem) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 8; - } - if (item.type == ItemID.EyeoftheGolem) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; - if (item.type == ItemID.PutridScent) - { - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; - } + writer.Write(flags); + writer.Write(postMoonLordRarity); + } - if (item.prefix == 62) - player.endurance += 0.0025f; - if (item.prefix == 63) - player.endurance += 0.005f; - if (item.prefix == 64) - player.endurance += 0.0075f; - if (item.prefix == 65) - player.endurance += 0.01f; - if (item.prefix == 67) - { - player.meleeCrit -= 1; - player.rangedCrit -= 1; - player.magicCrit -= 1; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; - } - if (item.prefix == 68) - { - player.meleeCrit -= 2; - player.rangedCrit -= 2; - player.magicCrit -= 2; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; - } - if (item.prefix == 69) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.01f; - if (item.prefix == 70) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; - if (item.prefix == 71) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; - if (item.prefix == 72) - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; - } + public override void NetReceive(Item item, BinaryReader reader) + { + BitsByte flags = reader.ReadByte(); + rogue = flags[0]; - /// - /// Dust helper to spawn dust for an item. Allows you to specify where on the item to spawn the dust, essentially. (ONLY WORKS FOR SWINGING WEAPONS?) - /// - /// The player using the item. - /// The type of dust to use. - /// The chance per frame to spawn the dust (0f-1f) - /// The minimum distance between the player and the dust - /// The maximum distance between the player and the dust - /// The minimum random rotation offset for the dust - /// The maximum random rotation offset for the dust - /// The minimum speed that the dust should travel - /// The maximum speed that the dust should travel - public static Dust MeleeDustHelper(Player player, int dustType, float chancePerFrame, float minDistance, float maxDistance, float minRandRot = -0.2f, float maxRandRot = 0.2f, float minSpeed = 0.9f, float maxSpeed = 1.1f) - { - if (Main.rand.NextFloat(1f) < chancePerFrame) - { - //Calculate values - //distance from player, - //the vector offset from the player center - //the vector between the pos and the player - float distance = Main.rand.NextFloat(minDistance, maxDistance); - Vector2 offset = (player.itemRotation - (MathHelper.PiOver4 * player.direction) + Main.rand.NextFloat(minRandRot, maxRandRot)).ToRotationVector2() * distance * player.direction; - Vector2 pos = player.Center + offset; - Vector2 vec = pos - player.Center; - //spawn the dust - Dust d = Dust.NewDustPerfect(pos, dustType); - //normalise vector and multiply by velocity magnitude - vec.Normalize(); - d.velocity = vec * Main.rand.NextFloat(minSpeed, maxSpeed); - return d; - } - return null; - } - } + postMoonLordRarity = reader.ReadInt32(); + } + #endregion + + #region Pickup Item Changes + public override bool OnPickup(Item item, Player player) + { + if (item.type == ItemID.Heart || item.type == ItemID.CandyApple || item.type == ItemID.CandyCane) + { + if (NPC.AnyNPCs(mod.NPCType("SupremeCalamitas"))) + { + player.statLife -= 10; + if (Main.myPlayer == player.whoAmI) + { + player.HealEffect(-10, true); + } + } + } + return true; + } + #endregion + + #region Use Item Changes + public override bool CanUseItem(Item item, Player player) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (item.type == ItemID.MonkStaffT1) + { + for (int i = 0; i < 1000; ++i) + { + if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot) + { + return false; + } + } + return true; + } + if (item.type == ItemID.SpaceGun && player.spaceGun) + { + if (player.statMana >= (int)((float)3 * player.manaCost)) + { + player.manaRegenDelay = (int)player.maxRegenDelay; + player.statMana -= (int)((float)3 * player.manaCost); + } + else if (player.manaFlower) + { + player.QuickMana(); + if (player.statMana >= (int)((float)3 * player.manaCost)) + { + player.manaRegenDelay = (int)player.maxRegenDelay; + player.statMana -= (int)((float)3 * player.manaCost); + } + else + { + return false; + } + } + else + { + return false; + } + return true; + } + if ((item.type == ItemID.SuperAbsorbantSponge || item.type == ItemID.EmptyBucket) && modPlayer.ZoneAbyss) + { + return false; + } + if (item.type == ItemID.MagicMirror || item.type == ItemID.IceMirror || item.type == ItemID.CellPhone || item.type == ItemID.RecallPotion) + { + return !NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")); + } + if (item.type == ItemID.RodofDiscord && modPlayer.scarfCooldown) + { + player.AddBuff(BuffID.ChaosState, 720); + } + return true; + } + #endregion + + #region Modify Tooltips + public override void ModifyTooltips(Item item, List tooltips) + { + TooltipLine tt2 = tooltips.FirstOrDefault(x => x.Name == "ItemName" && x.mod == "Terraria"); + if (tt2 != null) + { + switch (postMoonLordRarity) + { + case 12: + tt2.overrideColor = new Color(0, 255, 200); + break; + case 13: + tt2.overrideColor = new Color(0, 255, 0); + break; + case 14: + tt2.overrideColor = new Color(43, 96, 222); + break; + case 15: + tt2.overrideColor = new Color(108, 45, 199); + break; + case 16: + tt2.overrideColor = new Color(255, 0, 255); + break; + case 17: //Legendary Weapons + if (item.type == mod.ItemType("Malachite")) + tt2.overrideColor = new Color(Main.DiscoR, 203, 103); + if (item.type == mod.ItemType("AegisBlade") || item.type == mod.ItemType("YharimsCrystal")) + tt2.overrideColor = new Color(255, Main.DiscoG, 53); + if (item.type == mod.ItemType("BrinyBaron")) + tt2.overrideColor = new Color(53, Main.DiscoG, 255); + if (item.type == mod.ItemType("CosmicDischarge")) + tt2.overrideColor = new Color(150, Main.DiscoG, 255); + if (item.type == mod.ItemType("BlossomFlux")) + tt2.overrideColor = new Color(Main.DiscoR, 203, 103); + if (item.type == mod.ItemType("SHPC")) + tt2.overrideColor = new Color(255, Main.DiscoG, 155); + if (item.type == mod.ItemType("Vesuvius")) + tt2.overrideColor = new Color(255, Main.DiscoG, 0); + break; + case 18: //Fabstaff + tt2.overrideColor = new Color(Main.DiscoR, 100, 255); + break; + case 19: //Blushie Staff + tt2.overrideColor = new Color(0, 0, 255); + break; + case 20: //Non-Expert Rainbow + tt2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); + break; + case 21: //Patreon + tt2.overrideColor = new Color(139, 0, 0); + break; + default: + break; + } + } + if (item.type == ItemID.SuperAbsorbantSponge) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Capable of soaking up an endless amount of water\n" + + "Cannot be used in the Abyss"; + } + } + } + if (item.type == ItemID.EmptyBucket) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Defense") + { + line2.text = "1 defense\n" + + "Cannot be used in the Abyss"; + } + } + } + if (item.type == ItemID.CrimsonHeart) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Summons a heart to provide light\n" + + "Provides a small amount of light in the abyss"; + } + } + } + if (item.type == ItemID.ShadowOrb) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Creates a magical shadow orb\n" + + "Provides a small amount of light in the abyss"; + } + } + } + if (item.type == ItemID.MagicLantern) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Summons a magic lantern that exposes nearby treasure\n" + + "Provides a small amount of light in the abyss"; + } + } + } + if (item.type == ItemID.ArcticDivingGear) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + { + line2.text = "Provides light under water and extra mobility on ice\n" + + "Provides a small amount of light in the abyss\n" + + "Moderately reduces breath loss in the abyss"; + } + } + } + if (item.type == ItemID.JellyfishNecklace) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Provides light under water\n" + + "Provides a small amount of light in the abyss"; + } + } + } + if (item.type == ItemID.JellyfishDivingGear) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + { + line2.text = "Provides light under water\n" + + "Provides a small amount of light in the abyss"; + } + } + } + if (item.type == ItemID.FairyBell) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Summons a magical fairy\n" + + "Provides a moderate amount of light in the abyss"; + } + } + } + if (item.type == ItemID.DD2PetGhost) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Summons a pet flickerwick to provide light\n" + + "Provides a moderate amount of light in the abyss"; + } + } + } + if (item.type == ItemID.ShinePotion) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "BuffTime") + { + line2.text = "5 minute duration\n" + + "Provides a moderate amount of light in the abyss"; + } + } + } + if (item.type == ItemID.WispinaBottle) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Summons a Wisp to provide light\n" + + "Provides a large amount of light in the abyss"; + } + } + } + if (item.type == ItemID.SuspiciousLookingTentacle) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + { + line2.text = "'I know what you're thinking...'\n" + + "Provides a large amount of light in the abyss"; + } + } + } + if (item.type == ItemID.GillsPotion) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "BuffTime") + { + line2.text = "2 minute duration\n" + + "Greatly reduces breath loss in the abyss"; + } + } + } + if (item.type == ItemID.DivingHelmet) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Greatly extends underwater breathing\n" + + "Moderately reduces breath loss in the abyss"; + } + } + } + if (item.type == ItemID.NeptunesShell) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Transforms the holder into merfolk when entering water\n" + + "Greatly reduces breath loss in the abyss"; + } + } + } + if (item.type == ItemID.MoonShell) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Turns the holder into a werewolf at night and a merfolk when entering water\n" + + "Greatly reduces breath loss in the abyss"; + } + } + } + if (item.type == ItemID.CelestialShell) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + { + line2.text = "Minor increases to all stats\n" + + "Greatly reduces breath loss in the abyss"; + } + } + } + if (item.type == ItemID.WormScarf) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Reduces damage taken by 10%"; + } + } + } + if (item.type == ItemID.SpectreHood) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% decreased magic damage"; + } + } + } + if (item.type == ItemID.ApprenticeHat) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Increases your max number of sentries and reduces mana costs by 10%\n" + + "30% increased minion damage"; + } + } + } + if (item.type == ItemID.ApprenticeRobe) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "10% increased magic damage"; + } + } + } + if (item.type == ItemID.ApprenticeTrousers) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% increased movement speed"; + } + } + } + if (item.type == ItemID.SquireGreatHelm) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Increases your max number of sentries and increases your life regeneration\n" + + "30% increased minion damage and 20% increased melee critical strike chance"; + } + } + } + if (item.type == ItemID.SquirePlating) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "15% increased melee damage"; + } + } + } + if (item.type == ItemID.SquireGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% increased movement speed"; + } + } + } + if (item.type == ItemID.HuntressWig) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Increases your max number of sentries and increases ranged critical strike chance by 10%\n" + + "30% increased minion damage"; + } + } + } + if (item.type == ItemID.HuntressJerkin) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% increased ranged damage"; + } + } + } + if (item.type == ItemID.HuntressPants) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% increased movement speed"; + } + } + } + if (item.type == ItemID.MonkBrows) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Increases your max number of sentries and increases melee attack speed by 20%\n" + + "30% increased minion damage and 10% increased melee critical strike chance"; + } + } + } + if (item.type == ItemID.MonkShirt) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% increased melee damage"; + } + } + } + if (item.type == ItemID.MonkPants) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% increased movement speed"; + } + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + { + line2.text = ""; + } + } + } + if (item.type == ItemID.ApprenticeAltHead) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + { + line2.text = "60% increased minion damage and 25% increased magic damage and critical strike chance"; + } + } + } + if (item.type == ItemID.ApprenticeAltShirt) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = ""; + } + } + } + if (item.type == ItemID.ApprenticeAltPants) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = ""; + } + } + } + if (item.type == ItemID.MonkAltHead) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Increases your max number of sentries\n" + + "Increases melee damage, speed, and critical strike chance by 20% and minion damage by 60%"; + } + } + } + if (item.type == ItemID.MonkAltShirt) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = ""; + } + } + } + if (item.type == ItemID.MonkAltPants) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% increased movement speed"; + } + } + } + if (item.type == ItemID.HuntressAltHead) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + { + line2.text = "60% increased minion damage and 10% increased ranged critical strike chance\n" + + "25% increased ranged damage"; + } + } + } + if (item.type == ItemID.HuntressAltShirt) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = ""; + } + } + } + if (item.type == ItemID.HuntressAltPants) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "20% increased movement speed"; + } + } + } + if (item.type == ItemID.SquireAltHead) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Increases your max number of sentries and grants you 60% minion damage\n" + + "20% increased melee critical strike chance"; + } + } + } + if (item.type == ItemID.SquireAltShirt) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Massively increased life regeneration"; + } + } + } + if (item.type == ItemID.SquireAltPants) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "30% increased movement speed"; + } + } + } + if (item.type == ItemID.ObsidianSkinPotion) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Provides immunity to direct damage from touching lava\n" + + "Provides temporary immunity to lava burn damage\n" + + "Reduces lava burn damage"; + } + } + } + if (item.type == ItemID.ObsidianRose) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Reduced direct damage from touching lava\n" + + "Greatly reduces lava burn damage"; + } + } + } + if (item.type == ItemID.MeteorHelmet || item.type == ItemID.MeteorSuit || item.type == ItemID.MeteorLeggings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: Reduces the mana cost of the Space Gun by 50%"; + } + } + } + if (item.type == ItemID.CopperHelmet || item.type == ItemID.CopperChainmail || item.type == ItemID.CopperGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: +2 defense and 15% increased mining speed"; + } + } + } + if (item.type == ItemID.TinHelmet || item.type == ItemID.TinChainmail || item.type == ItemID.TinGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: +2 defense and 10% increased mining speed"; + } + } + } + if (item.type == ItemID.IronHelmet || item.type == ItemID.IronChainmail || item.type == ItemID.IronGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: +2 defense and 25% increased mining speed"; + } + } + } + if (item.type == ItemID.LeadHelmet || item.type == ItemID.LeadChainmail || item.type == ItemID.LeadGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: +3 defense and 20% increased mining speed"; + } + } + } + if (item.type == ItemID.SilverHelmet || item.type == ItemID.SilverChainmail || item.type == ItemID.SilverGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: +3 defense and 35% increased mining speed"; + } + } + } + if (item.type == ItemID.TungstenHelmet || item.type == ItemID.TungstenChainmail || item.type == ItemID.TungstenGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: +3 defense and 30% increased mining speed"; + } + } + } + if (item.type == ItemID.GoldHelmet || item.type == ItemID.GoldChainmail || item.type == ItemID.GoldGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: +3 defense and 45% increased mining speed"; + } + } + } + if (item.type == ItemID.PlatinumHelmet || item.type == ItemID.PlatinumChainmail || item.type == ItemID.PlatinumGreaves) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "SetBonus") + { + line2.text = "Set Bonus: +4 defense and 40% increased mining speed"; + } + } + } + if (item.type == ItemID.GladiatorHelmet) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Defense") + { + line2.text = "4 defense\n" + + "5% increased rogue damage"; + } + } + } + if (item.type == ItemID.GladiatorBreastplate) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Defense") + { + line2.text = "7 defense\n" + + "5% increased rogue critical strike chance"; + } + } + } + if (item.type == ItemID.GladiatorLeggings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Defense") + { + line2.text = "5 defense\n" + + "5% increased rogue velocity"; + } + } + } + if (item.type == ItemID.ObsidianHelm) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Defense") + { + line2.text = "4 defense\n" + + "5% increased rogue damage"; + } + } + } + if (item.type == ItemID.ObsidianShirt) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Defense") + { + line2.text = "5 defense\n" + + "5% increased rogue critical strike chance"; + } + } + } + if (item.type == ItemID.ObsidianPants) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Defense") + { + line2.text = "4 defense\n" + + "5% increased rogue velocity"; + } + } + } + if (item.type == ItemID.MagicQuiver) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Increases arrow damage by 10% and greatly increases arrow speed"; + } + } + } + if (item.type == ItemID.AngelWings || item.type == ItemID.DemonWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 6.25\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 100"; + } + } + } + if (item.type == ItemID.Jetpack) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 6.5\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 115"; + } + } + } + if (item.type == ItemID.ButterflyWings || item.type == ItemID.FairyWings || item.type == ItemID.BeeWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 6.75\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 130"; + } + } + } + if (item.type == ItemID.HarpyWings || item.type == ItemID.BoneWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 7\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 140"; + } + } + } + if (item.type == ItemID.FlameWings || item.type == ItemID.FrozenWings || item.type == ItemID.GhostWings || + item.type == ItemID.BeetleWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 7.5\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 160"; + } + } + } + if (item.type == ItemID.FinWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 0\n" + + "Acceleration multiplier: 0\n" + + "Average vertical speed\n" + + "Flight time: 100"; + } + } + } + if (item.type == ItemID.FishronWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 8\n" + + "Acceleration multiplier: 2\n" + + "Good vertical speed\n" + + "Flight time: 180"; + } + } + } + if (item.type == ItemID.SteampunkWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 7.75\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 180"; + } + } + } + if (item.type == ItemID.LeafWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 6.75\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 160"; + } + } + } + if (item.type == ItemID.BatWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 0\n" + + "Acceleration multiplier: 0\n" + + "Average vertical speed\n" + + "Flight time: 140"; + } + } + } + if (item.type == ItemID.Yoraiz0rWings || item.type == ItemID.JimsWings || item.type == ItemID.SkiphsWings || + item.type == ItemID.LokisWings || item.type == ItemID.ArkhalisWings || item.type == ItemID.LeinforsWings || + item.type == ItemID.BejeweledValkyrieWing || item.type == ItemID.RedsWings || item.type == ItemID.DTownsWings || + item.type == ItemID.WillsWings || item.type == ItemID.CrownosWings || item.type == ItemID.CenxsWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "'Great for impersonating devs!'\n" + + "Horizontal speed: 7\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 150"; + } + } + } + if (item.type == ItemID.TatteredFairyWings || item.type == ItemID.SpookyWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 7.5\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 180"; + } + } + } + if (item.type == ItemID.Hoverboard) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 6.25\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 170"; + } + } + } + if (item.type == ItemID.FestiveWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 7.5\n" + + "Acceleration multiplier: 1\n" + + "Average vertical speed\n" + + "Flight time: 170"; + } + } + } + if (item.type == ItemID.MothronWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 0\n" + + "Acceleration multiplier: 0\n" + + "Average vertical speed\n" + + "Flight time: 160"; + } + } + } + if (item.type == ItemID.WingsSolar || item.type == ItemID.WingsStardust) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 9\n" + + "Acceleration multiplier: 2.5\n" + + "Great vertical speed\n" + + "Flight time: 180"; + } + } + } + if (item.type == ItemID.WingsVortex || item.type == ItemID.WingsNebula) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + { + line2.text = "Allows flight and slow fall\n" + + "Horizontal speed: 6.5\n" + + "Acceleration multiplier: 1.5\n" + + "Good vertical speed\n" + + "Flight time: 160"; + } + } + } + if (item.type == ItemID.BetsyWings) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Allows flight and slow fall\n" + + "Horizontal speed: 6\n" + + "Acceleration multiplier: 2.5\n" + + "Good vertical speed\n" + + "Flight time: 150"; + } + } + } + if (item.accessory) + { + if (item.prefix == 67) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "PrefixAccCritChance") + { + line2.text = "+1% critical strike chance"; + } + } + } + if (item.prefix == 68) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "PrefixAccCritChance") + { + line2.text = "+2% critical strike chance"; + } + } + } + if (item.prefix == 62) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "PrefixAccDefense") + { + line2.text = "+1 defense\n" + + "+0.25% damage reduction"; + } + } + } + if (item.prefix == 63) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "PrefixAccDefense") + { + line2.text = "+2 defense\n" + + "+0.5% damage reduction"; + } + } + } + if (item.prefix == 64) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "PrefixAccDefense") + { + line2.text = "+3 defense\n" + + "+0.75% damage reduction"; + } + } + } + if (item.prefix == 65) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "PrefixAccDefense") + { + line2.text = "+4 defense\n" + + "+1% damage reduction"; + } + } + } + } + } + #endregion + + #region BossBagChanges + public override void OpenVanillaBag(string context, Player player, int arg) + { + bool revenge = CalamityWorld.revenge; + bool defiled = CalamityWorld.defiled; + if (context == "bossBag") + { + switch (arg) + { + case ItemID.KingSlimeBossBag: + if (revenge) + player.QuickSpawnItem(mod.ItemType("CrownJewel")); + break; + case ItemID.EyeOfCthulhuBossBag: + player.QuickSpawnItem(mod.ItemType("VictoryShard"), Main.rand.Next(3, 6)); + if (Main.rand.Next(3) == 0) + player.QuickSpawnItem(mod.ItemType("TeardropCleaver")); + if (revenge) + player.QuickSpawnItem(mod.ItemType("CounterScarf")); + break; + case ItemID.WallOfFleshBossBag: + player.QuickSpawnItem(mod.ItemType("MLGRune")); + if (Main.rand.Next(3) == 0) + player.QuickSpawnItem(mod.ItemType("Meowthrower")); + if (Main.rand.Next(8) == 0) + player.QuickSpawnItem(mod.ItemType("RogueEmblem")); + if (Main.rand.Next(5) == 0) + { + switch (Main.rand.Next(2)) + { + case 0: + player.QuickSpawnItem(ItemID.CrimsonKey); + break; + case 1: + player.QuickSpawnItem(ItemID.CorruptionKey); + break; + } + } + break; + case ItemID.DestroyerBossBag: + if (Main.rand.Next(100) == 0) + player.QuickSpawnItem(mod.ItemType("SHPC")); + else if (defiled) + { + if (Main.rand.Next(20) == 0) + player.QuickSpawnItem(mod.ItemType("SHPC")); + } + break; + case ItemID.PlanteraBossBag: + player.QuickSpawnItem(mod.ItemType("LivingShard"), Main.rand.Next(8, 12)); + if (Main.rand.Next(5) == 0) + player.QuickSpawnItem(ItemID.JungleKey); + if (Main.rand.Next(100) == 0) + player.QuickSpawnItem(mod.ItemType("BlossomFlux")); + else if (defiled) + { + if (Main.rand.Next(20) == 0) + player.QuickSpawnItem(mod.ItemType("BlossomFlux")); + } + break; + case ItemID.GolemBossBag: + if (Main.rand.Next(100) == 0) + player.QuickSpawnItem(mod.ItemType("AegisBlade")); + else if (defiled) + { + if (Main.rand.Next(20) == 0) + player.QuickSpawnItem(mod.ItemType("AegisBlade")); + } + break; + case ItemID.FishronBossBag: + if (Main.rand.Next(100) == 0) + player.QuickSpawnItem(mod.ItemType("BrinyBaron")); + else if (defiled) + { + if (Main.rand.Next(20) == 0) + player.QuickSpawnItem(mod.ItemType("BrinyBaron")); + } + break; + case ItemID.BossBagBetsy: + if (Main.rand.Next(100) == 0) + player.QuickSpawnItem(mod.ItemType("Vesuvius")); + else if (defiled) + { + if (Main.rand.Next(20) == 0) + player.QuickSpawnItem(mod.ItemType("Vesuvius")); + } + break; + case ItemID.CultistBossBag: + player.QuickSpawnItem(mod.ItemType("MeldBlob"), Main.rand.Next(25, 31)); + if (Main.rand.Next(3) == 0) + player.QuickSpawnItem(mod.ItemType("StardustStaff")); + break; + case ItemID.MoonLordBossBag: + player.QuickSpawnItem(mod.ItemType("MLGRune2")); + break; + } + if (revenge) + { + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } + } + } + #endregion + + #region Armor Set Changes + public override string IsArmorSet(Item head, Item body, Item legs) + { + if (head.type == ItemID.CopperHelmet && body.type == ItemID.CopperChainmail && legs.type == ItemID.CopperGreaves) + return "Copper"; + if (head.type == ItemID.TinHelmet && body.type == ItemID.TinChainmail && legs.type == ItemID.TinGreaves) + return "Tin"; + if (head.type == ItemID.IronHelmet && body.type == ItemID.IronChainmail && legs.type == ItemID.IronGreaves) + return "Iron"; + if (head.type == ItemID.LeadHelmet && body.type == ItemID.LeadChainmail && legs.type == ItemID.LeadGreaves) + return "Lead"; + if (head.type == ItemID.SilverHelmet && body.type == ItemID.SilverChainmail && legs.type == ItemID.SilverGreaves) + return "Silver"; + if (head.type == ItemID.TungstenHelmet && body.type == ItemID.TungstenChainmail && legs.type == ItemID.TungstenGreaves) + return "Tungsten"; + if (head.type == ItemID.GoldHelmet && body.type == ItemID.GoldChainmail && legs.type == ItemID.GoldGreaves) + return "Gold"; + if (head.type == ItemID.PlatinumHelmet && body.type == ItemID.PlatinumChainmail && legs.type == ItemID.PlatinumGreaves) + return "Platinum"; + if (head.type == ItemID.GladiatorHelmet && body.type == ItemID.GladiatorBreastplate && legs.type == ItemID.GladiatorLeggings) + return "Gladiator"; + if (head.type == ItemID.ObsidianHelm && body.type == ItemID.ObsidianShirt && legs.type == ItemID.ObsidianPants) + return "Obsidian"; + if (head.type == ItemID.PumpkinHelmet && body.type == ItemID.PumpkinBreastplate && legs.type == ItemID.PumpkinLeggings) + return "PumpMyAssFull"; + return ""; + } + + public override void UpdateArmorSet(Player player, string set) + { + if (set == "Copper") + player.pickSpeed -= 0.15f; + else if (set == "Tin") + player.pickSpeed -= 0.1f; + else if (set == "Iron") + player.pickSpeed -= 0.25f; + else if (set == "Lead") + player.pickSpeed -= 0.2f; + else if (set == "Silver") + player.pickSpeed -= 0.35f; + else if (set == "Tungsten") + player.pickSpeed -= 0.3f; + else if (set == "Gold") + player.pickSpeed -= 0.45f; + else if (set == "Platinum") + player.pickSpeed -= 0.4f; + else if (set == "Gladiator") + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.rogueStealthMax = 1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.1f; + player.statDefense += 5; + player.setBonus = "+5 defense\n" + + "10% increased rogue damage and velocity\n" + + "Rogue stealth builds while not attacking and not moving, up to a max of 100\n" + + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + + "The higher your rogue stealth the higher your rogue damage, crit, and movement speed"; + } + else if (set == "Obsidian") + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.rogueStealthMax = 1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; + player.statDefense += 3; + player.fireWalk = true; + player.lavaMax += 300; + player.setBonus = "+3 defense\n" + + "10% increased rogue damage and critical strike chance\n" + + "Grants immunity to fire blocks and temporary immunity to lava"; + } + else if (set == "PumpMyAssFull") + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + } + #endregion + + #region Equip Changes + public override void UpdateEquip(Item item, Player player) + { + #region Head + if (item.type == ItemID.SpectreHood) + player.magicDamage += 0.2f; + else if (item.type == ItemID.GladiatorHelmet || item.type == ItemID.ObsidianHelm) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + else if (item.type == ItemID.CrimsonHelmet) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; + else if (item.type == ItemID.ApprenticeHat) + player.minionDamage += 0.3f; + else if (item.type == ItemID.SquireGreatHelm) + { + player.minionDamage += 0.3f; + player.meleeCrit += 20; + } + else if (item.type == ItemID.HuntressWig) + player.minionDamage += 0.3f; + else if (item.type == ItemID.MonkBrows) + { + player.minionDamage += 0.3f; + player.meleeCrit += 10; + } + else if (item.type == ItemID.ApprenticeAltHead) + { + player.minionDamage += 0.5f; + player.magicDamage += 0.15f; + player.magicCrit += 25; + } + else if (item.type == ItemID.MonkAltHead) + { + player.minionDamage += 0.4f; + player.meleeSpeed += 0.2f; + player.meleeCrit += 20; + } + else if (item.type == ItemID.HuntressAltHead) + { + player.minionDamage += 0.5f; + player.rangedDamage += 0.25f; + } + else if (item.type == ItemID.SquireAltHead) + { + player.minionDamage += 0.5f; + player.meleeCrit += 20; + } + #endregion + + #region Body + if (item.type == ItemID.GladiatorBreastplate || item.type == ItemID.ObsidianShirt) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + else if (item.type == ItemID.CrimsonScalemail) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; + else if (item.type == ItemID.PalladiumBreastplate) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + } + else if (item.type == ItemID.CobaltBreastplate) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; + else if (item.type == ItemID.MythrilChainmail) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + else if (item.type == ItemID.OrichalcumBreastplate) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 6; + else if (item.type == ItemID.AdamantiteBreastplate) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.06f; + else if (item.type == ItemID.TitaniumBreastplate) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; + } + else if (item.type == ItemID.HallowedPlateMail) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 7; + else if (item.type == ItemID.ChlorophytePlateMail) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 7; + } + else if (item.type == ItemID.Gi) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + } + else if (item.type == ItemID.ApprenticeRobe) + player.minionDamage -= 0.2f; + else if (item.type == ItemID.SquirePlating) + player.minionDamage -= 0.15f; + else if (item.type == ItemID.HuntressJerkin) + player.minionDamage -= 0.2f; + else if (item.type == ItemID.MonkShirt) + player.minionDamage -= 0.2f; + else if (item.type == ItemID.ApprenticeAltShirt) + { + player.minionDamage -= 0.3f; + player.magicDamage -= 0.15f; + } + else if (item.type == ItemID.MonkAltShirt) + { + player.minionDamage -= 0.2f; + player.meleeSpeed -= 0.2f; + } + else if (item.type == ItemID.HuntressAltShirt) + { + player.minionDamage -= 0.25f; + player.meleeSpeed -= 0.2f; + } + else if (item.type == ItemID.SquireAltShirt) + player.minionDamage -= 0.3f; + #endregion + + #region Legs + if (item.type == ItemID.GladiatorLeggings || item.type == ItemID.ObsidianPants) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingVelocity += 0.05f; + else if (item.type == ItemID.CrimsonGreaves) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; + else if (item.type == ItemID.PalladiumLeggings) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; + } + else if (item.type == ItemID.MythrilGreaves) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; + else if (item.type == ItemID.AdamantiteLeggings) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 4; + else if (item.type == ItemID.TitaniumLeggings) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 3; + } + else if (item.type == ItemID.HallowedGreaves) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.07f; + else if (item.type == ItemID.ChlorophyteGreaves) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 8; + else if (item.type == ItemID.ApprenticeTrousers) + { + player.magicCrit -= 20; + player.moveSpeed += 0.2f; + } + else if (item.type == ItemID.SquireGreaves) + { + player.minionDamage -= 0.15f; + player.meleeCrit -= 20; + } + else if (item.type == ItemID.HuntressPants) + player.minionDamage -= 0.1f; + else if (item.type == ItemID.MonkPants) + { + player.minionDamage -= 0.1f; + player.meleeCrit -= 10; + } + else if (item.type == ItemID.ApprenticeAltPants) + { + player.minionDamage -= 0.2f; + player.magicCrit -= 25; + } + else if (item.type == ItemID.MonkAltPants) + { + player.minionDamage -= 0.2f; + player.meleeCrit -= 20; + } + else if (item.type == ItemID.HuntressAltPants) + player.minionDamage -= 0.25f; + if (item.type == ItemID.SquireAltPants) + { + player.minionDamage -= 0.2f; + player.meleeCrit -= 20; + } + #endregion + } + #endregion + + #region Accessory Changes + public override void UpdateAccessory(Item item, Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + + if (item.type == ItemID.JellyfishNecklace || item.type == ItemID.JellyfishDivingGear || item.type == ItemID.ArcticDivingGear) + modPlayer.jellyfishNecklace = true; + + if (item.type == ItemID.WormScarf) + player.endurance -= 0.07f; + + if (item.type == ItemID.AvengerEmblem) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.12f; + if (item.type == ItemID.CelestialStone || item.type == ItemID.CelestialShell || (item.type == ItemID.MoonStone && !Main.dayTime) || + (item.type == ItemID.SunStone && Main.dayTime)) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + } + if (item.type == ItemID.DestroyerEmblem) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 8; + } + if (item.type == ItemID.EyeoftheGolem) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 10; + if (item.type == ItemID.PutridScent) + { + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 5; + } + + if (item.prefix == 62) + player.endurance += 0.0025f; + if (item.prefix == 63) + player.endurance += 0.005f; + if (item.prefix == 64) + player.endurance += 0.0075f; + if (item.prefix == 65) + player.endurance += 0.01f; + if (item.prefix == 67) + { + player.meleeCrit -= 1; + player.rangedCrit -= 1; + player.magicCrit -= 1; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 1; + } + if (item.prefix == 68) + { + player.meleeCrit -= 2; + player.rangedCrit -= 2; + player.magicCrit -= 2; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingCrit += 2; + } + if (item.prefix == 69) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.01f; + if (item.prefix == 70) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.02f; + if (item.prefix == 71) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.03f; + if (item.prefix == 72) + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.04f; + } + #endregion + + /// + /// Dust helper to spawn dust for an item. Allows you to specify where on the item to spawn the dust, essentially. (ONLY WORKS FOR SWINGING WEAPONS?) + /// + /// The player using the item. + /// The type of dust to use. + /// The chance per frame to spawn the dust (0f-1f) + /// The minimum distance between the player and the dust + /// The maximum distance between the player and the dust + /// The minimum random rotation offset for the dust + /// The maximum random rotation offset for the dust + /// The minimum speed that the dust should travel + /// The maximum speed that the dust should travel + public static Dust MeleeDustHelper(Player player, int dustType, float chancePerFrame, float minDistance, float maxDistance, float minRandRot = -0.2f, float maxRandRot = 0.2f, float minSpeed = 0.9f, float maxSpeed = 1.1f) + { + if (Main.rand.NextFloat(1f) < chancePerFrame) + { + //Calculate values + //distance from player, + //the vector offset from the player center + //the vector between the pos and the player + float distance = Main.rand.NextFloat(minDistance, maxDistance); + Vector2 offset = (player.itemRotation - (MathHelper.PiOver4 * player.direction) + Main.rand.NextFloat(minRandRot, maxRandRot)).ToRotationVector2() * distance * player.direction; + Vector2 pos = player.Center + offset; + Vector2 vec = pos - player.Center; + //spawn the dust + Dust d = Dust.NewDustPerfect(pos, dustType); + //normalise vector and multiply by velocity magnitude + vec.Normalize(); + d.velocity = vec * Main.rand.NextFloat(minSpeed, maxSpeed); + return d; + } + return null; + } + } } diff --git a/Items/ChaoswarpedSlashaxe.cs b/Items/ChaoswarpedSlashaxe.cs index e469575548..bc322a1807 100644 --- a/Items/ChaoswarpedSlashaxe.cs +++ b/Items/ChaoswarpedSlashaxe.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items { item.damage = 68; item.melee = true; - item.width = 42; - item.height = 42; + item.width = 50; + item.height = 50; item.useTime = 31; item.useAnimation = 31; item.useTurn = true; diff --git a/Items/ChaoswarpedSlashaxe.png b/Items/ChaoswarpedSlashaxe.png index d1a24fcf593932996986fdacafecf114f4ae3a07..c9b99190cf58195462c38b457dfa8127a712b267 100644 GIT binary patch literal 1094 zcmV-M1iAZ(P)rS|Q!Rku?323oi`6yyGgjNjUQkJF?a2UeKbvy_Msj%o&hFjxWL6=LV9q$*qnN`T54V*Y8$Co900o_N2w=x z>HIJNw+tBlS*7A{C2U z0Ml`?p?q$_1z7p@CIB`LeFykN(wXG|tlc6uF#hZj08T{?Uh5epaqZVVfS)zDh?p`- zOi`3Ck{$AQrdV~}o#z&4b?)zeo3^VDnY>*x+V*9<`SF*65Mi-<~XBN2~T03~n5a=GXNEXjNcd`LpQ zl1j&!QWEEW845ht98Bw(77>j4VA>V0H0wEjJz7|M6g3x`~95&qmyje<8@s4!S`7$^ZZW M07*qoM6N<$g8vN)lmGw# literal 681 zcmV;a0#^NrP)bkR5Vns4M9;Y(Gp>QK#$=V%GvMs%SvS-m)br>}r&>621-C(j~Fi7J*UmMw#*+mtTqO_%z z1q^ExACwlT=r5nn+!1qipPC&S8KCju`K3yuC!sDHBfoa{L}*-bMokA4fB9)PM~v(h zUdSR}y1eZ)zE53{4E+j!XJ~Oic|2q=n+J} zi0QTPx{68Ozv^c6-vC8liu{ZI|49^Qk=*<&=k+lh8dL} zD6c%okD}eBs4e6SiV6tkbu%h0P+oB!9W}JbQupbVI@-}>R63v>5TcGBFc>{M5|!Rk z=ZlO=50nGMUT8I?oVxL`R&45UnxP{>ZTC}KA=w+l_|01KN0g4r4)3&_Z zPgDC-%1JRat97DLE_0&iziCujpnL_QyjiVi7uI^y0p(0rOPiXE$_DfuE4Ux2Z(Bjn P00000NkvXXu0mjfk8L|d diff --git a/Items/CoreofCalamity.cs b/Items/CoreofCalamity.cs index 8c773da19c..1118aa06ed 100644 --- a/Items/CoreofCalamity.cs +++ b/Items/CoreofCalamity.cs @@ -7,36 +7,38 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class CoreofCalamity : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class CoreofCalamity : ModItem { - DisplayName.SetDefault("Core of Calamity"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Core of Calamity"); + } + + public override void SetDefaults() + { + item.width = 40; + item.height = 40; + item.maxStack = 99; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 8; + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "CoreofCinder", 5); + recipe.AddIngredient(null, "CoreofEleum", 5); + recipe.AddIngredient(null, "CoreofChaos", 5); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } } - - public override void SetDefaults() - { - item.width = 40; - item.height = 40; - item.maxStack = 69; - item.value = 500000; - item.rare = 10; - } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "CoreofCinder", 5); - recipe.AddIngredient(null, "CoreofEleum", 5); - recipe.AddIngredient(null, "CoreofChaos", 5); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/CoreofChaos.cs b/Items/CoreofChaos.cs index dabcf5b3d1..0c00683ad9 100644 --- a/Items/CoreofChaos.cs +++ b/Items/CoreofChaos.cs @@ -7,38 +7,40 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class CoreofChaos : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class CoreofChaos : ModItem { - DisplayName.SetDefault("Core of Chaos"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Core of Chaos"); + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.3f * num, 0.05f * num); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 16; + item.maxStack = 999; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 8; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "EssenceofChaos"); + recipe.AddIngredient(ItemID.Ectoplasm); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this, 3); + recipe.AddRecipe(); + } } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.3f * num, 0.05f * num); - } - - public override void SetDefaults() - { - item.width = 16; - item.height = 16; - item.maxStack = 999; - item.value = 50000; - item.rare = 8; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "EssenceofChaos"); - recipe.AddIngredient(ItemID.Ectoplasm); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 3); - recipe.AddRecipe(); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/CoreofCinder.cs b/Items/CoreofCinder.cs index b69b6a6f91..083f12d93c 100644 --- a/Items/CoreofCinder.cs +++ b/Items/CoreofCinder.cs @@ -7,38 +7,40 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class CoreofCinder : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class CoreofCinder : ModItem { - DisplayName.SetDefault("Core of Cinder"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Core of Sunlight"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 16; + item.maxStack = 999; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 8; + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.3f * num, 0.3f * num, 0.05f * num); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "EssenceofCinder"); + recipe.AddIngredient(ItemID.Ectoplasm); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this, 3); + recipe.AddRecipe(); + } } - - public override void SetDefaults() - { - item.width = 16; - item.height = 16; - item.maxStack = 999; - item.value = 50000; - item.rare = 8; - } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.3f * num, 0.3f * num, 0.05f * num); - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "EssenceofCinder"); - recipe.AddIngredient(ItemID.Ectoplasm); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 3); - recipe.AddRecipe(); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/CoreofEleum.cs b/Items/CoreofEleum.cs index 5d3dad1aa8..53120799ec 100644 --- a/Items/CoreofEleum.cs +++ b/Items/CoreofEleum.cs @@ -7,38 +7,40 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class CoreofEleum : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class CoreofEleum : ModItem { - DisplayName.SetDefault("Core of Eleum"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Core of Eleum"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 16; + item.maxStack = 999; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 8; + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.15f * num, 0.05f * num, 0.5f * num); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "EssenceofEleum"); + recipe.AddIngredient(ItemID.Ectoplasm); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this, 3); + recipe.AddRecipe(); + } } - - public override void SetDefaults() - { - item.width = 16; - item.height = 16; - item.maxStack = 999; - item.value = 50000; - item.rare = 8; - } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.15f * num, 0.05f * num, 0.5f * num); - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "EssenceofEleum"); - recipe.AddIngredient(ItemID.Ectoplasm); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 3); - recipe.AddRecipe(); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/CosmicPlushie.cs b/Items/CosmicPlushie.cs index 03115b8cad..00636ee773 100644 --- a/Items/CosmicPlushie.cs +++ b/Items/CosmicPlushie.cs @@ -25,8 +25,8 @@ namespace CalamityMod.Items item.value = Item.sellPrice(0, 7, 0, 0); item.shoot = mod.ProjectileType("ChibiiDoggo"); item.buffType = mod.BuffType("ChibiiBuff"); - item.rare = 14; item.UseSound = new Terraria.Audio.LegacySoundStyle(SoundID.Meowmere, 5); + item.GetGlobalItem(mod).postMoonLordRarity = 14; } public override void UseStyle(Player player) diff --git a/Items/Cosmolight.cs b/Items/Cosmolight.cs index b8bbe774bf..9c0fb938ea 100644 --- a/Items/Cosmolight.cs +++ b/Items/Cosmolight.cs @@ -37,22 +37,16 @@ namespace CalamityMod.Items public override bool UseItem(Player player) { - if (!Main.dayTime) + Main.time = 0.0; + Main.dayTime = !Main.dayTime; + if (Main.dayTime) { - Main.time = 0.0; - Main.dayTime = true; - } - else - { - Main.time = 0.0; - Main.dayTime = false; - Main.moonPhase++; - if (Main.moonPhase >= 8) + if (++Main.moonPhase >= 8) { Main.moonPhase = 0; } - } - if (Main.netMode == 2) + } + if (Main.netMode == 2) { NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); } diff --git a/Items/Crabulon/CrabulonBag.cs b/Items/Crabulon/CrabulonBag.cs index cccd33534b..a3189f2430 100644 --- a/Items/Crabulon/CrabulonBag.cs +++ b/Items/Crabulon/CrabulonBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Crabulon public class CrabulonBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,11 +30,30 @@ namespace CalamityMod.Items.Crabulon public override void OpenBossBag(Player player) { - if (Main.rand.Next(7) == 0) - { - player.QuickSpawnItem(mod.ItemType("CrabulonMask")); - } - if (Main.rand.Next(3) == 0) + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("MushroomPlasmaRoot")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } + if (Main.rand.Next(7) == 0) + { + player.QuickSpawnItem(mod.ItemType("CrabulonMask")); + } + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("HyphaeRod")); } @@ -53,10 +72,6 @@ namespace CalamityMod.Items.Crabulon player.QuickSpawnItem(ItemID.GlowingMushroom, Main.rand.Next(25, 36)); player.QuickSpawnItem(ItemID.MushroomGrassSeeds, Main.rand.Next(5, 11)); player.QuickSpawnItem(mod.ItemType("FungalClump")); - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("MushroomPlasmaRoot")); - } } } } \ No newline at end of file diff --git a/Items/Crabulon/FungalClump.cs b/Items/Crabulon/FungalClump.cs index 89d1d0779d..fa7ab25f3b 100644 --- a/Items/Crabulon/FungalClump.cs +++ b/Items/Crabulon/FungalClump.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Items.Crabulon } if (player.ownedProjectileCounts[mod.ProjectileType("FungalClump")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("FungalClump"), 10, 1f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("FungalClump"), (int)(10f * player.minionDamage), 1f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/CruptixBar.cs b/Items/CruptixBar.cs index f4ec9c027b..a888c8f527 100644 --- a/Items/CruptixBar.cs +++ b/Items/CruptixBar.cs @@ -18,11 +18,11 @@ namespace CalamityMod.Items public override void SetDefaults() { - item.width = 15; - item.height = 12; + item.width = 30; + item.height = 24; item.maxStack = 999; - item.value = 150000; - item.rare = 8; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 8; } public override void AddRecipes() diff --git a/Items/CruptixBar.png b/Items/CruptixBar.png index 28ecb825d759779c29214545bf6b70c356b7150c..54b3da421cc474ca90f5eabe26c50d78e966163e 100644 GIT binary patch delta 587 zcmV-R0<`__1LFjcBYy%aNklFuH~+~ZM&j^y09hwB8v{{LG6dm^9S%gIJ5-Me=i6x{54Yh68)pYmuFz=%~G~wB=?TEt)^A=E>!@K$!*yH zcaz=P!sTfdo3&rx0BA3-Inzc$9*x&p;3aWaq62`HT-FANG&TW{-QED;!O(Nf;p2=NVEJczNa$+LyV=UR6dej2I`*(A$ z4stTh_v!&y{JaXl)7hWeI+IY8Uitx)LX73UB|oSNm4E7Ob9Lx@HK96F%fNArO+xej zie@|~&Xnx|aILdLYx@RA0C+Rdsm2be5Sn_K2m{5j)`_Lo%YNPwH{85o0le)Wv;pd_ zTn8X&keQ^C-J&OB(*XFZl>O_tIw6U@ylR1ph{vy!{5--zr$YVP(Q3Dl4LeyZ@2aVI zWyk`UPegCJ{!D~)cP9;$!kfD%6iX; Z4*}XWr*$5S7GD4W002ovPDHLkV1kjCBTE1P delta 470 zcmV;{0V)3D1n&coBYy$4Nkle=$Wc!$A7Q+m_!SDtpJHNl>kr78xdU)_F$)l<%Ieqt3*@`A)M3|v12VZnS3_kS_nErwaBsBenm!lh;$ zV7}-2dtf@VEDc4zqpTjxPm$IG(`|E1P~`8dyA9@B%|47ZL>LF$VwlVKim+pKA-drG zi>JXtueK+FX_yb^ZTkr3!}4+RMTn1KAqvw6_wj&P%r7Dhc3CL9FqmHb^DUSbf|f)u zm%@Aw^XcXaNPk=&e*^I;I)Ir26aV<;DVPcOG2JbO6%??1t7!&tn@W%>isNB%2+NN! zbud0GE@7Hrar*A*GZb^+J|1w3pQEMb?SV>Qm*UEYbMP3(958q#a z3oS;NkLhkP%tf$*1U-?7h($ diff --git a/Items/Cryogen/CryoBar.cs b/Items/Cryogen/CryoBar.cs index 2f6e3b319f..3fb48cf8ea 100644 --- a/Items/Cryogen/CryoBar.cs +++ b/Items/Cryogen/CryoBar.cs @@ -19,11 +19,11 @@ namespace CalamityMod.Items.Cryogen public override void SetDefaults() { - item.width = 15; - item.height = 12; + item.width = 30; + item.height = 24; item.maxStack = 999; - item.value = 28750; - item.rare = 5; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; } } } \ No newline at end of file diff --git a/Items/Cryogen/CryogenBag.cs b/Items/Cryogen/CryogenBag.cs index 44940542e6..1fe387e736 100644 --- a/Items/Cryogen/CryogenBag.cs +++ b/Items/Cryogen/CryogenBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Cryogen public class CryogenBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,6 +30,25 @@ namespace CalamityMod.Items.Cryogen public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("FrostFlare")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); if (Main.rand.Next(7) == 0) { @@ -63,21 +82,17 @@ namespace CalamityMod.Items.Cryogen { player.QuickSpawnItem(mod.ItemType("SnowstormStaff")); } - if (Main.rand.Next(5) == 0) - { - player.QuickSpawnItem(ItemID.FrozenKey); - } - if (Main.rand.Next(10) == 0) - { - player.QuickSpawnItem(mod.ItemType("CryoStone")); - } - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("FrostFlare")); - } - player.QuickSpawnItem(ItemID.SoulofMight, Main.rand.Next(25, 41)); - player.QuickSpawnItem(mod.ItemType("CryoBar"), Main.rand.Next(20, 41)); - player.QuickSpawnItem(mod.ItemType("EssenceofEleum"), Main.rand.Next(4, 6)); + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.FrozenKey); + } + if (Main.rand.Next(10) == 0) + { + player.QuickSpawnItem(mod.ItemType("CryoStone")); + } + player.QuickSpawnItem(ItemID.SoulofMight, Main.rand.Next(25, 41)); + player.QuickSpawnItem(mod.ItemType("CryoBar"), Main.rand.Next(20, 41)); + player.QuickSpawnItem(mod.ItemType("EssenceofEleum"), Main.rand.Next(5, 10)); player.QuickSpawnItem(mod.ItemType("SoulofCryogen")); player.QuickSpawnItem(ItemID.FrostCore); } diff --git a/Items/Cryogen/SoulofCryogen.cs b/Items/Cryogen/SoulofCryogen.cs index 6e92722f5e..41b8e1bb61 100644 --- a/Items/Cryogen/SoulofCryogen.cs +++ b/Items/Cryogen/SoulofCryogen.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Cryogen "Average vertical speed\n" + "Flight time: 100\n" + "5% increase to all damage and pick speed\n" + - "Frost damage added to melee projectiles and melee attacks"); + "All melee attacks and projectiles inflict frostburn"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(8, 4)); } diff --git a/Items/CrystylCrusher.cs b/Items/CrystylCrusher.cs index a6993783f6..3276103879 100644 --- a/Items/CrystylCrusher.cs +++ b/Items/CrystylCrusher.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items item.UseSound = SoundID.Item1; item.autoReuse = true; item.tileBoost += 50; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void AddRecipes() { diff --git a/Items/DarksunFragment.cs b/Items/DarksunFragment.cs index 7a44d07fbe..729623620b 100644 --- a/Items/DarksunFragment.cs +++ b/Items/DarksunFragment.cs @@ -8,39 +8,31 @@ using Terraria.ModLoader; using CalamityMod.NPCs; using CalamityMod.Items; -namespace CalamityMod.Items { -public class DarksunFragment : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class DarksunFragment : ModItem { - DisplayName.SetDefault("Darksun Fragment"); - Tooltip.SetDefault("A shard of lunar and solar energy"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Darksun Fragment"); + Tooltip.SetDefault("A shard of lunar and solar energy"); + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.5f * num, 0.5f * num); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 8, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.5f * num, 0.5f * num); - } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 80000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/DefiledRune.cs b/Items/DefiledRune.cs index ae641e4742..49aaafe04d 100644 --- a/Items/DefiledRune.cs +++ b/Items/DefiledRune.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items public override void SetStaticDefaults() { DisplayName.SetDefault("Defiled Rune"); - Tooltip.SetDefault("Wings do nothing\n" + + Tooltip.SetDefault("Wings do nothing and enemies can critically hit you\n" + "Increases most rare item drop chances and enemies drop 50% more cash\n" + "Using this while a boss is alive will instantly kill you and despawn the boss\n" + "Can only be used in revengeance and death mode\n" + diff --git a/Items/DemonicBoneAsh.cs b/Items/DemonicBoneAsh.cs index c058e85e5e..af3c0d7464 100644 --- a/Items/DemonicBoneAsh.cs +++ b/Items/DemonicBoneAsh.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class DemonicBoneAsh : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class DemonicBoneAsh : ModItem { - DisplayName.SetDefault("Demonic Bone Ash"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Demonic Bone Ash"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 3; + } } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 20000; - item.rare = 3; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/DesertFeather.cs b/Items/DesertFeather.cs index 83e433d560..b5a294b974 100644 --- a/Items/DesertFeather.cs +++ b/Items/DesertFeather.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class DesertFeather : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class DesertFeather : ModItem { - DisplayName.SetDefault("Desert Feather"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Desert Feather"); + } + + public override void SetDefaults() + { + item.width = 24; + item.height = 24; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 24; - item.height = 24; - item.maxStack = 999; - item.value = 5000; - item.rare = 2; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/DesertScourge/AeroStone.cs b/Items/DesertScourge/AeroStone.cs index 87de3e5497..51e2f669ce 100644 --- a/Items/DesertScourge/AeroStone.cs +++ b/Items/DesertScourge/AeroStone.cs @@ -4,6 +4,7 @@ using Terraria.ID; using Terraria.DataStructures; using Terraria.ModLoader; using CalamityMod; +using CalamityMod.Items.CalamityCustomThrowingDamage; namespace CalamityMod.Items.DesertScourge { @@ -13,7 +14,7 @@ namespace CalamityMod.Items.DesertScourge { DisplayName.SetDefault("Aero Stone"); Tooltip.SetDefault("One of the ancient relics\n" + - "Increases movement speed by 10%, jump speed by 200%, and all damage and crit chance by 2%"); + "Increases movement speed by 10%, jump speed by 200%, and all damage by 3%"); Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(4, 8)); } @@ -28,18 +29,15 @@ namespace CalamityMod.Items.DesertScourge public override void UpdateAccessory(Player player, bool hideVisual) { - Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0f, 0.425f, 0.425f); + CalamityCustomThrowingDamagePlayer modPlayer = CalamityCustomThrowingDamagePlayer.ModPlayer(player); + Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0f, 0.425f, 0.425f); player.moveSpeed += 0.1f; player.jumpSpeedBoost += 2.0f; - player.meleeCrit += 2; - player.meleeDamage += 0.02f; - player.magicCrit += 2; - player.magicDamage += 0.02f; - player.rangedCrit += 2; - player.rangedDamage += 0.02f; - player.thrownCrit += 2; - player.thrownDamage += 0.02f; - player.minionDamage += 0.02f; + player.meleeDamage += 0.03f; + player.magicDamage += 0.03f; + player.rangedDamage += 0.03f; + modPlayer.throwingDamage += 0.03f; + player.minionDamage += 0.03f; } } } diff --git a/Items/DesertScourge/DesertScourgeBag.cs b/Items/DesertScourge/DesertScourgeBag.cs index b9484be2a6..cae8924c92 100644 --- a/Items/DesertScourge/DesertScourgeBag.cs +++ b/Items/DesertScourge/DesertScourgeBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.DesertScourge public class DesertScourgeBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,6 +30,25 @@ namespace CalamityMod.Items.DesertScourge public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("ScourgeoftheDesert")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } if (Main.rand.Next(7) == 0) { player.QuickSpawnItem(mod.ItemType("DesertScourgeMask")); @@ -50,74 +69,70 @@ namespace CalamityMod.Items.DesertScourge { player.QuickSpawnItem(mod.ItemType("AquaticDischarge")); } - if (Main.rand.Next(15) == 0) - { - player.QuickSpawnItem(ItemID.HighTestFishingLine); - } - if (Main.rand.Next(30) == 0) - { - player.QuickSpawnItem(ItemID.AnglerTackleBag); - } - if (Main.rand.Next(15) == 0) - { - player.QuickSpawnItem(ItemID.TackleBox); - } - if (Main.rand.Next(10) == 0) - { - player.QuickSpawnItem(ItemID.AnglerEarring); - } - if (Main.rand.Next(10) == 0) - { - player.QuickSpawnItem(ItemID.FishermansGuide); - } - if (Main.rand.Next(10) == 0) - { - player.QuickSpawnItem(ItemID.WeatherRadio); - } - if (Main.rand.Next(10) == 0) - { - player.QuickSpawnItem(ItemID.Sextant); - } - if (Main.rand.Next(5) == 0) - { - player.QuickSpawnItem(ItemID.AnglerHat); - } - if (Main.rand.Next(5) == 0) - { - player.QuickSpawnItem(ItemID.AnglerVest); - } - if (Main.rand.Next(5) == 0) - { - player.QuickSpawnItem(ItemID.AnglerPants); - } - if (Main.rand.Next(5) == 0) - { - player.QuickSpawnItem(ItemID.CratePotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(5) == 0) - { - player.QuickSpawnItem(ItemID.FishingPotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(5) == 0) - { - player.QuickSpawnItem(ItemID.SonarPotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(10) == 0) - { - player.QuickSpawnItem(mod.ItemType("AeroStone")); - } - if (NPC.downedBoss3) - { - if (Main.rand.Next(20) == 0) - { - player.QuickSpawnItem(ItemID.GoldenBugNet); - } - } - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("ScourgeoftheDesert")); - } - player.QuickSpawnItem(mod.ItemType("OceanCrest")); + if (Main.rand.Next(15) == 0) + { + player.QuickSpawnItem(ItemID.HighTestFishingLine); + } + if (Main.rand.Next(30) == 0) + { + player.QuickSpawnItem(ItemID.AnglerTackleBag); + } + if (Main.rand.Next(15) == 0) + { + player.QuickSpawnItem(ItemID.TackleBox); + } + if (Main.rand.Next(10) == 0) + { + player.QuickSpawnItem(ItemID.AnglerEarring); + } + if (Main.rand.Next(10) == 0) + { + player.QuickSpawnItem(ItemID.FishermansGuide); + } + if (Main.rand.Next(10) == 0) + { + player.QuickSpawnItem(ItemID.WeatherRadio); + } + if (Main.rand.Next(10) == 0) + { + player.QuickSpawnItem(ItemID.Sextant); + } + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.AnglerHat); + } + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.AnglerVest); + } + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.AnglerPants); + } + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.CratePotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.FishingPotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.SonarPotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(10) == 0) + { + player.QuickSpawnItem(mod.ItemType("AeroStone")); + } + if (NPC.downedBoss3) + { + if (Main.rand.Next(20) == 0) + { + player.QuickSpawnItem(ItemID.GoldenBugNet); + } + } + player.QuickSpawnItem(mod.ItemType("OceanCrest")); player.QuickSpawnItem(mod.ItemType("VictoryShard"), Main.rand.Next(10, 17)); player.QuickSpawnItem(ItemID.Coral, Main.rand.Next(7, 12)); player.QuickSpawnItem(ItemID.Seashell, Main.rand.Next(7, 12)); diff --git a/Items/DesertScourge/VictoryShard.cs b/Items/DesertScourge/VictoryShard.cs index 682cdc5f6c..b8bc40ef5a 100644 --- a/Items/DesertScourge/VictoryShard.cs +++ b/Items/DesertScourge/VictoryShard.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.DesertScourge { -public class VictoryShard : ModItem +namespace CalamityMod.Items.DesertScourge { - public override void SetStaticDefaults() + public class VictoryShard : ModItem { - DisplayName.SetDefault("Victory Shard"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Victory Shard"); + } + + public override void SetDefaults() + { + item.width = 14; + item.height = 14; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 14; - item.height = 14; - item.maxStack = 999; - item.value = 5000; - item.rare = 2; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/DevourerMunsters/ArmoredShell.cs b/Items/DevourerMunsters/ArmoredShell.cs index ddce8b586b..7ece9551bd 100644 --- a/Items/DevourerMunsters/ArmoredShell.cs +++ b/Items/DevourerMunsters/ArmoredShell.cs @@ -7,30 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.DevourerMunsters { -public class ArmoredShell : ModItem +namespace CalamityMod.Items.DevourerMunsters { - public override void SetStaticDefaults() + public class ArmoredShell : ModItem { - DisplayName.SetDefault("Armored Shell"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Armored Shell"); + } + + public override void SetDefaults() + { + item.width = 24; + item.height = 30; + item.maxStack = 999; + item.value = Item.buyPrice(0, 7, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } } - - public override void SetDefaults() - { - item.width = 24; - item.height = 30; - item.maxStack = 999; - item.value = 15000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/DevourerMunsters/DarkPlasma.cs b/Items/DevourerMunsters/DarkPlasma.cs index 465807a1ba..787677adfb 100644 --- a/Items/DevourerMunsters/DarkPlasma.cs +++ b/Items/DevourerMunsters/DarkPlasma.cs @@ -22,19 +22,9 @@ namespace CalamityMod.Items.DevourerMunsters item.width = 15; item.height = 12; item.maxStack = 999; - item.value = 508750; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 7, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void Update(ref float gravity, ref float maxFallSpeed) { diff --git a/Items/DevourerMunsters/RuneofCos.cs b/Items/DevourerMunsters/RuneofCos.cs index c6bae0d777..f0830ee3f0 100644 --- a/Items/DevourerMunsters/RuneofCos.cs +++ b/Items/DevourerMunsters/RuneofCos.cs @@ -29,19 +29,9 @@ namespace CalamityMod.Items.DevourerMunsters item.UseSound = SoundID.Item44; item.consumable = false; item.shoot = mod.ProjectileType("VoidSpawn"); + item.GetGlobalItem(mod).postMoonLordRarity = 13; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - public override bool CanUseItem(Player player) { return (player.ZoneSkyHeight || player.ZoneUnderworldHeight || player.ZoneDungeon) && diff --git a/Items/DevourerMunsters/TwistingNether.cs b/Items/DevourerMunsters/TwistingNether.cs index fb1481c85e..d1deeec6ff 100644 --- a/Items/DevourerMunsters/TwistingNether.cs +++ b/Items/DevourerMunsters/TwistingNether.cs @@ -7,39 +7,31 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.DevourerMunsters { -public class TwistingNether : ModItem +namespace CalamityMod.Items.DevourerMunsters { - public override void SetStaticDefaults() + public class TwistingNether : ModItem { - DisplayName.SetDefault("Twisting Nether"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Twisting Nether"); + } + + public override void SetDefaults() + { + item.width = 15; + item.height = 12; + item.maxStack = 999; + item.rare = 10; + item.value = Item.buyPrice(0, 7, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.1f * num, 0.7f * num); + } } - - public override void SetDefaults() - { - item.width = 15; - item.height = 12; - item.maxStack = 999; - item.rare = 9; - item.value = 508750; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed = 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.1f * num, 0.7f * num); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/DimensionalSoulArtifact.cs b/Items/DimensionalSoulArtifact.cs index 60f8fadaf3..763b3bcf28 100644 --- a/Items/DimensionalSoulArtifact.cs +++ b/Items/DimensionalSoulArtifact.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items { item.width = 28; item.height = 28; - item.value = 5000000; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.value = Item.buyPrice(1, 50, 0, 0); + item.accessory = true; + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/DraedonBar.cs b/Items/DraedonBar.cs index 9118e3d053..0f3e8d69cf 100644 --- a/Items/DraedonBar.cs +++ b/Items/DraedonBar.cs @@ -18,11 +18,11 @@ namespace CalamityMod.Items public override void SetDefaults() { - item.width = 15; - item.height = 12; + item.width = 30; + item.height = 24; item.maxStack = 999; - item.value = 120000; - item.rare = 7; + item.value = Item.buyPrice(0, 4, 50, 0); + item.rare = 7; } public override void AddRecipes() diff --git a/Items/Dragonfruit.cs b/Items/Dragonfruit.cs index 60425e83e9..715fbad68a 100644 --- a/Items/Dragonfruit.cs +++ b/Items/Dragonfruit.cs @@ -28,19 +28,9 @@ namespace CalamityMod.Items item.useStyle = 4; item.UseSound = SoundID.Item4; item.consumable = true; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override bool CanUseItem(Player player) { CalamityPlayer modPlayer = player.GetModPlayer(mod); @@ -72,7 +62,7 @@ namespace CalamityMod.Items recipe.AddIngredient(ItemID.LifeFruit, 5); recipe.AddIngredient(null, "Phantoplasm", 5); recipe.AddIngredient(null, "CosmiliteBar", 5); - recipe.AddIngredient(null, "EffulgentFeather", 10); + recipe.AddIngredient(null, "DarksunFragment", 10); recipe.AddIngredient(ItemID.FragmentSolar, 15); recipe.AddIngredient(null, "NightmareFuel", 5); recipe.AddIngredient(null, "EndothermicEnergy", 5); diff --git a/Items/EbonianGel.cs b/Items/EbonianGel.cs index 1661b02884..c493819692 100644 --- a/Items/EbonianGel.cs +++ b/Items/EbonianGel.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class EbonianGel : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class EbonianGel : ModItem { - DisplayName.SetDefault("Blighted Gel"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Blighted Gel"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 14; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 16; - item.height = 14; - item.maxStack = 999; - item.value = 1000; - item.rare = 2; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Ectoblood.cs b/Items/Ectoblood.cs index 2b29c11d62..6345f86b3e 100644 --- a/Items/Ectoblood.cs +++ b/Items/Ectoblood.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class Ectoblood : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class Ectoblood : ModItem { - DisplayName.SetDefault("Ectoblood"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Ectoblood"); + } + + public override void SetDefaults() + { + item.width = 24; + item.height = 32; + item.maxStack = 999; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 8; + } } - - public override void SetDefaults() - { - item.width = 24; - item.height = 32; - item.maxStack = 999; - item.value = 3500; - item.rare = 8; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Ectoblood.png b/Items/Ectoblood.png index cabab923fbb369803b011c0bf33f9c17a15f9ba2..566ee2f22ddacfc4c5b70ef7a74e073e548690cb 100644 GIT binary patch delta 390 zcmV;10eSxJ0-*ztB!6g0L_t(YOJiif0SxTQ{v%6WIMl_6OD(cEPDL~`(4ja2?0^Hk zE5J0&rMN64=t8O+m^`Bb?6S>u>%jD@SGT}4E{h1dkYWR2VFPnPf|nuKMO_`c!L((t z379^<_6(T5wtEjs*kZVlY6ij#f_c$aRS<0R;oI*~T!ijIF@HS~lvDtBA zLzG3%Md5cXPX_a0;=WBmVE){U4ls@3LW&JU_v+o-4ElR=A?N6fM@_E~L4E zu-JvAyD~JF!NN`})(FMLu)NNQD|X2?5M~X`U|6KU(jUyl3$~p{30qitgoPcf6v7$H z6dQ={QY}{(uzwINC&2PFOkIL=IZ7UeiQ~-66dQ;ua$sRcvI}WuAS^75a%Dg~QtVo9i^L?yHnbUP!|xY?0}&VSLU-cIjckBcDp39SV= z)Z}&+E`$7f+DSr3?h)Dv=7hSPCZbW`I_L67XeQ`{uoLPIxdRs5#u|iN_+e1BAnFRl zt?pRl4(=k7^?okg_6W@c`K)7CK>}j0gWM^U5!wl|k~2xGJ3RMJAFWg1dU-)AA9fcf zw%W^C4iR$If=nnM?gXw+o;6-CbF&v0q|mYSh7?x?O+odbTM l+&>39L3X|L-&aAw52oG{AdY2oWB>pF07*qoM6N<$f&hS|pzi(mod).postMoonLordRarity = 13; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - public override bool CanUseItem(Player player) { CalamityPlayer modPlayer = player.GetModPlayer(mod); diff --git a/Items/EidolonTablet.cs b/Items/EidolonTablet.cs index 2a646c52d6..01a04f8409 100644 --- a/Items/EidolonTablet.cs +++ b/Items/EidolonTablet.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items { if (Main.netMode != 1) { - int num1302 = NPC.NewNPC((int)player.Center.X + 30, (int)player.Center.Y - 2, NPCID.CultistBoss, 0, 0f, 0f, 0f, 0f, 255); + int num1302 = NPC.NewNPC((int)player.Center.X + 30, (int)player.Center.Y - 90, NPCID.CultistBoss, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num1302].direction = (Main.npc[num1302].spriteDirection = Math.Sign(player.Center.X - (float)player.Center.X - 30f)); } return true; diff --git a/Items/EldritchSoulArtifact.cs b/Items/EldritchSoulArtifact.cs index f864126f1f..f2ba4d7bce 100644 --- a/Items/EldritchSoulArtifact.cs +++ b/Items/EldritchSoulArtifact.cs @@ -21,20 +21,10 @@ namespace CalamityMod.Items { item.width = 28; item.height = 28; - item.value = 5000000; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.value = Item.buyPrice(1, 50, 0, 0); + item.accessory = true; + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/EndothermicEnergy.cs b/Items/EndothermicEnergy.cs index 8cee90732f..6fb6396154 100644 --- a/Items/EndothermicEnergy.cs +++ b/Items/EndothermicEnergy.cs @@ -8,39 +8,31 @@ using Terraria.ModLoader; using CalamityMod.NPCs; using CalamityMod.Items; -namespace CalamityMod.Items { -public class EndothermicEnergy : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class EndothermicEnergy : ModItem { - DisplayName.SetDefault("Endothermic Energy"); - Tooltip.SetDefault("Great for preventing heat stroke"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Endothermic Energy"); + Tooltip.SetDefault("Great for preventing heat stroke"); + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0f * num, 0f * num, 1.2f * num); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 7, 50, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0f * num, 0f * num, 1.2f * num); - } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 50000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/EssenceofChaos.cs b/Items/EssenceofChaos.cs index 9429947e94..ace10277a3 100644 --- a/Items/EssenceofChaos.cs +++ b/Items/EssenceofChaos.cs @@ -8,30 +8,31 @@ using Terraria.ModLoader; using CalamityMod.Items; using CalamityMod.NPCs; -namespace CalamityMod.Items { -public class EssenceofChaos : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class EssenceofChaos : ModItem { - DisplayName.SetDefault("Essence of Chaos"); - Tooltip.SetDefault("The essence of underworld creatures"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Essence of Chaos"); + Tooltip.SetDefault("The essence of chaotic creatures"); + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.3f * num, 0.05f * num); + } + + public override void SetDefaults() + { + item.width = 8; + item.height = 10; + item.maxStack = 999; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; + } } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0.3f * num, 0.05f * num); - } - - public override void SetDefaults() - { - item.width = 8; - item.height = 10; - item.scale = 1.25f; - item.maxStack = 999; - item.value = 25000; - item.rare = 5; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/EssenceofCinder.cs b/Items/EssenceofCinder.cs index 03620d9fd0..6524d24bff 100644 --- a/Items/EssenceofCinder.cs +++ b/Items/EssenceofCinder.cs @@ -8,29 +8,31 @@ using Terraria.ModLoader; using CalamityMod.Items; using CalamityMod.NPCs; -namespace CalamityMod.Items { -public class EssenceofCinder : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class EssenceofCinder : ModItem { - DisplayName.SetDefault("Essence of Cinder"); - Tooltip.SetDefault("The essence of sky and storm creatures"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Essence of Sunlight"); + Tooltip.SetDefault("The essence of sky, light, and storm creatures"); + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.3f * num, 0.3f * num, 0.05f * num); + } + + public override void SetDefaults() + { + item.width = 8; + item.height = 22; + item.maxStack = 999; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; + } } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.3f * num, 0.3f * num, 0.05f * num); - } - - public override void SetDefaults() - { - item.width = 8; - item.height = 22; - item.maxStack = 999; - item.value = 25000; - item.rare = 5; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/EssenceofEleum.cs b/Items/EssenceofEleum.cs index 7ba7f1f9d3..02c3bdc969 100644 --- a/Items/EssenceofEleum.cs +++ b/Items/EssenceofEleum.cs @@ -8,29 +8,31 @@ using Terraria.ModLoader; using CalamityMod.NPCs; using CalamityMod.Items; -namespace CalamityMod.Items { -public class EssenceofEleum : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class EssenceofEleum : ModItem { - DisplayName.SetDefault("Essence of Eleum"); - Tooltip.SetDefault("The essence of cold creatures"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Essence of Eleum"); + Tooltip.SetDefault("The essence of cold creatures"); + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.15f * num, 0.05f * num, 0.5f * num); + } + + public override void SetDefaults() + { + item.width = 8; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; + } } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.15f * num, 0.05f * num, 0.5f * num); - } - - public override void SetDefaults() - { - item.width = 8; - item.height = 20; - item.maxStack = 999; - item.value = 25000; - item.rare = 5; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Fabsol.cs b/Items/Fabsol.cs index 45399e9438..59c596458f 100644 --- a/Items/Fabsol.cs +++ b/Items/Fabsol.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items item.useTime = 20; item.useAnimation = 20; item.useStyle = 1; - item.value = 100000000; - item.expert = true; + item.value = Item.buyPrice(3, 0, 0, 0); + item.expert = true; item.UseSound = SoundID.Item3; item.noMelee = true; item.mountType = mod.MountType("Fab"); diff --git a/Items/FabsolStuff/BloodyMary.cs b/Items/FabsolStuff/BloodyMary.cs index 23a46d9eda..de6e649b3d 100644 --- a/Items/FabsolStuff/BloodyMary.cs +++ b/Items/FabsolStuff/BloodyMary.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.FabsolStuff { DisplayName.SetDefault("Bloody Mary"); Tooltip.SetDefault(@"Boosts damage, movement speed, and melee speed by 15% and crit chance by 7% during a Blood Moon -Reduces life regen by 3 and defense by 6 +Reduces life regen by 2 and defense by 6 Extra spicy and bloody!"); } diff --git a/Items/FabsolStuff/BlueCandle.cs b/Items/FabsolStuff/BlueCandle.cs new file mode 100644 index 0000000000..9e91c6a42f --- /dev/null +++ b/Items/FabsolStuff/BlueCandle.cs @@ -0,0 +1,32 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.FabsolStuff +{ + public class BlueCandle: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Weightless Candle"); + Tooltip.SetDefault("When placed down nearby players have their movement speed increased by 15%, wing time by 10%, and acceleration by 5%"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 40; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = Item.buyPrice(0, 50, 0, 0); + item.rare = 6; + item.createTile = mod.TileType("BlueCandle"); + } + } +} \ No newline at end of file diff --git a/Items/FabsolStuff/BlueCandle.png b/Items/FabsolStuff/BlueCandle.png index 4acebe2e8939f4dd1dc6ffa319d25d669b017fd8..c0168bcadaefc93c9786e086a4c3e04e85bca0d0 100644 GIT binary patch delta 639 zcmV-_0)YL%1;7Q6OnfqFuRuH@;VCZzwn5zfwcB4%=t57QpipdjRN}m|<;O)PFNEqmvs>@#;=!95XIB z8XCQ=02It-02+SS0LI)Kg=FsbWyMeKz)E(}0Jxt#s@Pr4q0HO>SjnX=fQ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^{4(?Rj!(APuLvTVF1J@VirKeG3e`WwbIGr6EOh9k0(36 zL;yf0JFmPvL=K)>(}Y4K60%Ho9`J%t{^;)(exH4o$$!qeezhnkzb{}oULJshN Z@E3h|$ESP52Xp`c002ovPDHLkV1lutIzs>e diff --git a/Items/FabsolStuff/Everclear.cs b/Items/FabsolStuff/Everclear.cs index 9773845c64..b097d1cb4c 100644 --- a/Items/FabsolStuff/Everclear.cs +++ b/Items/FabsolStuff/Everclear.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.FabsolStuff { DisplayName.SetDefault("Everclear"); Tooltip.SetDefault(@"Boosts damage by 25% -Reduces life regen by 20 and defense by 40 +Reduces life regen by 10 and defense by 40 This is the most potent booze I have, be careful with it"); } diff --git a/Items/FabsolStuff/EvergreenGin.cs b/Items/FabsolStuff/EvergreenGin.cs index c06f3359ea..0d7f25ded8 100644 --- a/Items/FabsolStuff/EvergreenGin.cs +++ b/Items/FabsolStuff/EvergreenGin.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.FabsolStuff { DisplayName.SetDefault("Evergreen Gin"); Tooltip.SetDefault(@"Boosts nature-based weapon damage by 15% and damage reduction by 5% -Reduces life regen by 3 +Reduces life regen by 1 It tastes like a Christmas tree if you can imagine that"); } diff --git a/Items/FabsolStuff/FabsolsVodka.cs b/Items/FabsolStuff/FabsolsVodka.cs index 8913069435..fb7eb0de46 100644 --- a/Items/FabsolStuff/FabsolsVodka.cs +++ b/Items/FabsolStuff/FabsolsVodka.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.FabsolStuff public override void SetStaticDefaults() { DisplayName.SetDefault("Fabsol's Vodka"); - Tooltip.SetDefault("Boosts all damage stats by 10% but lowers defense by 20\n" + + Tooltip.SetDefault("Boosts all damage stats by 8% but lowers defense by 20\n" + "Increases immune time after being struck"); } diff --git a/Items/FabsolStuff/Fireball.cs b/Items/FabsolStuff/Fireball.cs index a226063359..80d695bc12 100644 --- a/Items/FabsolStuff/Fireball.cs +++ b/Items/FabsolStuff/Fireball.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.FabsolStuff Tooltip.SetDefault(@"Boosts all fire-based weapon damage by 10% Cursed flame, shadowflame, god slayer inferno, brimstone flame, and frostburn weapons will not receive this benefit The weapon must be more fire-related than anything else -Reduces life regen by 3 +Reduces life regen by 1 A great-tasting cinnamon whiskey"); } diff --git a/Items/FabsolStuff/GrapeBeer.cs b/Items/FabsolStuff/GrapeBeer.cs index cce27c3272..ae065bdd7c 100644 --- a/Items/FabsolStuff/GrapeBeer.cs +++ b/Items/FabsolStuff/GrapeBeer.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.FabsolStuff public override void SetStaticDefaults() { DisplayName.SetDefault("Grape Beer"); - Tooltip.SetDefault(@"Reduces life regen by 1, defense by 2, and movement speed by 5% + Tooltip.SetDefault(@"Reduces defense by 2 and movement speed by 5% This crap is abhorrent but you might like it Restores 100 life and mana"); } diff --git a/Items/FabsolStuff/Margarita.cs b/Items/FabsolStuff/Margarita.cs index 082d061357..ad44a15723 100644 --- a/Items/FabsolStuff/Margarita.cs +++ b/Items/FabsolStuff/Margarita.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.FabsolStuff { DisplayName.SetDefault("Margarita"); Tooltip.SetDefault(@"Makes you immune to most debuffs -Reduces defense by 6 and life regen by 3 +Reduces defense by 6 and life regen by 1 One of the best drinks ever created, enjoy it while it lasts Restores 200 life and mana"); } diff --git a/Items/FabsolStuff/Moonshine.cs b/Items/FabsolStuff/Moonshine.cs index 76a9b2ae07..4bde3d9e4b 100644 --- a/Items/FabsolStuff/Moonshine.cs +++ b/Items/FabsolStuff/Moonshine.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.FabsolStuff { DisplayName.SetDefault("Moonshine"); Tooltip.SetDefault(@"Increases defense by 10 and damage reduction by 5% -Reduces life regen by 2 +Reduces life regen by 1 This stuff is pretty strong but I'm sure you can handle it"); } diff --git a/Items/FabsolStuff/MoscowMule.cs b/Items/FabsolStuff/MoscowMule.cs index 32593e3459..ff7fc82aa7 100644 --- a/Items/FabsolStuff/MoscowMule.cs +++ b/Items/FabsolStuff/MoscowMule.cs @@ -11,8 +11,8 @@ namespace CalamityMod.Items.FabsolStuff public override void SetStaticDefaults() { DisplayName.SetDefault("Moscow Mule"); - Tooltip.SetDefault(@"Boosts damage and knockback by 12% and critical strike chance by 3% -Reduces life regen by 3 + Tooltip.SetDefault(@"Boosts damage and knockback by 9% and critical strike chance by 3% +Reduces life regen by 2 I once heard the copper mug can be toxic and I told 'em 'listen dummy, I'm already poisoning myself'"); } diff --git a/Items/FabsolStuff/OddMushroom.cs b/Items/FabsolStuff/OddMushroom.cs new file mode 100644 index 0000000000..7a511c584b --- /dev/null +++ b/Items/FabsolStuff/OddMushroom.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.DataStructures; + +namespace CalamityMod.Items.FabsolStuff +{ + public class OddMushroom : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Odd Mushroom"); + Tooltip.SetDefault("Trippy"); + } + + public override void SetDefaults() + { + item.width = 42; + item.height = 48; + item.useTurn = true; + item.maxStack = 30; + item.useAnimation = 17; + item.useTime = 17; + item.rare = 3; + item.useStyle = 2; + item.UseSound = SoundID.Item2; + item.consumable = true; + item.buffType = mod.BuffType("Trippy"); + item.buffTime = 216000; + item.value = Item.buyPrice(1, 0, 0, 0); + } + } +} \ No newline at end of file diff --git a/Items/FabsolStuff/PinkCandle.cs b/Items/FabsolStuff/PinkCandle.cs new file mode 100644 index 0000000000..7e9553cb23 --- /dev/null +++ b/Items/FabsolStuff/PinkCandle.cs @@ -0,0 +1,33 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.FabsolStuff +{ + public class PinkCandle: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Vigorous Candle"); + Tooltip.SetDefault("When placed down nearby players regenerate 0.4% of their maximum health per second\n" + + "This is separate from normal life regeneration, bypassing caps and not being affected by damage taken or current movement"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 40; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = Item.buyPrice(0, 50, 0, 0); + item.rare = 6; + item.createTile = mod.TileType("PinkCandle"); + } + } +} \ No newline at end of file diff --git a/Items/FabsolStuff/PurpleCandle.cs b/Items/FabsolStuff/PurpleCandle.cs new file mode 100644 index 0000000000..1689920ec4 --- /dev/null +++ b/Items/FabsolStuff/PurpleCandle.cs @@ -0,0 +1,32 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.FabsolStuff +{ + public class PurpleCandle: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Resilient Candle"); + Tooltip.SetDefault("When placed down nearby players have the effectiveness of their defense increased by 5%"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 40; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = Item.buyPrice(0, 50, 0, 0); + item.rare = 6; + item.createTile = mod.TileType("PurpleCandle"); + } + } +} \ No newline at end of file diff --git a/Items/FabsolStuff/PurpleCandle.png b/Items/FabsolStuff/PurpleCandle.png index 6cf43cd1298572791536ad9f5dc201294c7a41d0..d05ce51406c216c3df7705f2f8278b6add5abee8 100644 GIT binary patch delta 659 zcmV;E0&M-Q1*-*+B!6;AL_t(oh25ACw97>lL_@~3D`p~G1*0-Ff;I~qno6yqeAe5TCQ-%Zd4dT^nd%EqIta|tXWqJz=nlg095~Iu&;}L3n0{T1c2__+q48iI`H-|0F4a+ z1u*?Osl~nj^bYWXP{^9wI{;>TESQP*x zcOMl^JUnA}Xoarq`B~@X-D)ZQL8Z0zl$^1n_dVsF|>@tYY zQ2(eGQIACkRJ@2HqP=onM`VH&<{W|ny>(N1^37{0PPJM?K!PF z!o$7&O0{h`UI1Y1SX#-8rpJ`_Oms#7Z1HUaU^@LqiC3IZI0Y{4jsdV~XA=NBPOMj| z)`|3EO-2BW|9==Q>1&R#eoX@a>%MOXpzde0eVzAO06||L0DZT8ih(2@dV2tXmS(>I z$i7Y}dG9~H156M~vbN4H0A9Wrw*WdmpH>p}^(d=W>Q?dr0K=gHrN6DSOB8(p6YEeX zI}^SEK>TE~C z^l?e!`_p!nb_6y93v+9Zu;)-nc_OKn)T*)!_jUIw?ZL=p0OI$;fXUsWe$u{9kWw== z;!|snx*CprxU00Kuar5$y*+kSK8dUEK%ICb;BJ_^mU4}o-|^31KL^0mI}d@y#JNd# zf~91hP=BhsfB&)!^j|>Mf>XSD2&E*coKwBuDek0-6aN1<{5^+yH7&PFb?H93Do^P3 zv00000NkvXXu0mjfN-;G` diff --git a/Items/FabsolStuff/RedWine.cs b/Items/FabsolStuff/RedWine.cs index 0efd07b1b6..b01e87013c 100644 --- a/Items/FabsolStuff/RedWine.cs +++ b/Items/FabsolStuff/RedWine.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.FabsolStuff public override void SetStaticDefaults() { DisplayName.SetDefault("Red Wine"); - Tooltip.SetDefault(@"Reduces life regen by 2 + Tooltip.SetDefault(@"Reduces life regen by 1 Too dry for my taste 15 second duration Restores 200 life"); diff --git a/Items/FabsolStuff/Screwdriver.cs b/Items/FabsolStuff/Screwdriver.cs index 579cb35c4c..d68f4bc548 100644 --- a/Items/FabsolStuff/Screwdriver.cs +++ b/Items/FabsolStuff/Screwdriver.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.FabsolStuff { DisplayName.SetDefault("Screwdriver"); Tooltip.SetDefault(@"Boosts piercing projectile damage by 10% -Reduces life regen by 3 +Reduces life regen by 1 Do you have a screw loose?"); } diff --git a/Items/FabsolStuff/StarBeamRye.cs b/Items/FabsolStuff/StarBeamRye.cs index be847f605f..7c0be1206c 100644 --- a/Items/FabsolStuff/StarBeamRye.cs +++ b/Items/FabsolStuff/StarBeamRye.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.FabsolStuff DisplayName.SetDefault("Star Beam Rye"); Tooltip.SetDefault(@"Boosts max mana by 50, magic damage by 8%, and reduces mana usage by 10% -Reduces defense by 6 and life regen by 3 +Reduces defense by 6 and life regen by 1 Made from some stuff I found near the Astral Meteor crash site, don't worry it's safe, trust me"); } diff --git a/Items/FabsolStuff/Tequila.cs b/Items/FabsolStuff/Tequila.cs index c94ab55a14..6dfad6258e 100644 --- a/Items/FabsolStuff/Tequila.cs +++ b/Items/FabsolStuff/Tequila.cs @@ -11,8 +11,8 @@ namespace CalamityMod.Items.FabsolStuff public override void SetStaticDefaults() { DisplayName.SetDefault("Tequila"); - Tooltip.SetDefault(@"Boosts damage, damage reduction, and knockback by 4%, crit chance by 2%, and defense by 5 during daytime -Reduces life regen by 2 + Tooltip.SetDefault(@"Boosts damage, damage reduction, and knockback by 3%, crit chance by 2%, and defense by 5 during daytime +Reduces life regen by 1 Great for mixing up daytime drinks"); } diff --git a/Items/FabsolStuff/TequilaSunrise.cs b/Items/FabsolStuff/TequilaSunrise.cs index d3a626eb47..3bf377be31 100644 --- a/Items/FabsolStuff/TequilaSunrise.cs +++ b/Items/FabsolStuff/TequilaSunrise.cs @@ -11,8 +11,8 @@ namespace CalamityMod.Items.FabsolStuff public override void SetStaticDefaults() { DisplayName.SetDefault("Tequila Sunrise"); - Tooltip.SetDefault(@"Boosts damage, damage reduction, and knockback by 9%, crit chance by 3%, and defense by 15 during daytime -Reduces life regen by 3 + Tooltip.SetDefault(@"Boosts damage, damage reduction, and knockback by 7%, crit chance by 3%, and defense by 15 during daytime +Reduces life regen by 1 The greatest daytime drink I've ever had"); } diff --git a/Items/FabsolStuff/Vodka.cs b/Items/FabsolStuff/Vodka.cs index 2a60580dd6..a8cef3c37b 100644 --- a/Items/FabsolStuff/Vodka.cs +++ b/Items/FabsolStuff/Vodka.cs @@ -11,8 +11,8 @@ namespace CalamityMod.Items.FabsolStuff public override void SetStaticDefaults() { DisplayName.SetDefault("Vodka"); - Tooltip.SetDefault(@"Boosts damage by 8% and critical strike chance by 2% -Reduces life regen by 2 and defense by 4 + Tooltip.SetDefault(@"Boosts damage by 6% and critical strike chance by 2% +Reduces life regen by 1 and defense by 4 The number one alcohol for creating great mixed drinks"); } diff --git a/Items/FabsolStuff/WhiteWine.cs b/Items/FabsolStuff/WhiteWine.cs index a5d8cbd9a4..18c0a054ae 100644 --- a/Items/FabsolStuff/WhiteWine.cs +++ b/Items/FabsolStuff/WhiteWine.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.FabsolStuff { DisplayName.SetDefault("White Wine"); Tooltip.SetDefault(@"Boosts magic damage by 10% -Reduces defense by 6 and life regen by 3 +Reduces defense by 6 and life regen by 1 I drank a full barrel of this stuff once in one night, I couldn't remember who I was the next day"); } diff --git a/Items/FabsolStuff/YellowCandle.cs b/Items/FabsolStuff/YellowCandle.cs new file mode 100644 index 0000000000..3e73d07b30 --- /dev/null +++ b/Items/FabsolStuff/YellowCandle.cs @@ -0,0 +1,32 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.FabsolStuff +{ + public class YellowCandle: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Spiteful Candle"); + Tooltip.SetDefault("When placed down nearby enemies take 5% more damage, this bypasses enemy DR"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 40; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = Item.buyPrice(0, 50, 0, 0); + item.rare = 6; + item.createTile = mod.TileType("YellowCandle"); + } + } +} \ No newline at end of file diff --git a/Items/FetidEssence.cs b/Items/FetidEssence.cs index 9a9f4e1335..58494f98ee 100644 --- a/Items/FetidEssence.cs +++ b/Items/FetidEssence.cs @@ -7,21 +7,23 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class FetidEssence : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class FetidEssence : ModItem { - DisplayName.SetDefault("Fetid Essence"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Fetid Essence"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 5000; - item.rare = 1; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/FlamebeakHampick.cs b/Items/FlamebeakHampick.cs index 6ebe747a4a..f70fa58d31 100644 --- a/Items/FlamebeakHampick.cs +++ b/Items/FlamebeakHampick.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items { item.damage = 58; item.melee = true; - item.width = 36; - item.height = 36; + item.width = 52; + item.height = 50; item.useTime = 6; item.useAnimation = 15; item.useTurn = true; diff --git a/Items/FlamebeakHampick.png b/Items/FlamebeakHampick.png index eca12bd7431bc1909d3106bdf88fb74564c0e209..2a132ea30e083125781ffdb6708155d018b460c9 100644 GIT binary patch literal 986 zcmV<0110>4P)B*w<;u8lf8SyQFCCkcS!Iu^XT><0H2l(R)8srP6WWC;)@kE&%Z0`c3Vc z?MmGBIs#{CE7p(&P_=66O}rI=*-EM2IOFT3JOEeU=s%M7bQXYvC)}(4NL?Lo<~t!Y zZ?|HP8EgP~WzoH$P9ynDkShNCt%pFkhW=uLn#w;3Yh|jcrRAZ?r23JFna{8EwJ2sz z@7$%0Oa3wm4Xqc+nj$3sKSkeaS5nF1iU zP;xbsO78}oXf{`v0l?nTW&tD@D*#NC=GGM@h0u@}US?#!BULm@>P3tQu~^&!C@#;d zftp%_$(D!(jwy3LW%Bdan&SFhcR z|JP6hTGYwfst1spcQ@0uVkWns%;fU!-5S3L4GB^mfBiC62e{Iye(PRl{CcWkB2O`d z;2ZLaW+qY{XQoweV7ttiRkrL@d(*ZBK{h025B#|qg-Bc z-5FllqgMbD&5A`8RsIz-LhuZU8R`1VUjO)WwRXfzHm>r}%#zAO+hqo$yX$2}2%I6S ztD{?6JCbi!qngu8_T|5&wwmA>G6(uHhjn8T)v9G6G_>vf2DE8%bEqBp6951J07*qo IM6N<$f-N84*Z=?k literal 570 zcmV-A0>%A_P)~2X>=25HKo&nE_h=Xu|osM_Pv{bN8_^Mi?iTkuc<3wsuS-7>fL9uH^LI={D z9HLCxie)9k)nr166Dc#y8Iv@kuXGwc6yF>j`%@$|AV?dXawO7Ecg$$KTTvt(Gfxwg z$rL^*=AG7ajfjIN>HY*L-aaj+OmSth)21?b&}YzbT`Lkg5GWCi#fhy}t#C#qUW%Lj z1Ih%ZNa#Rtj2AL9mWrGg?&v-G#a?nuIYm&$bB#a|F_2~e+=)RRfTC~UbY0|UX$ky_ zYemFC_+^JZheyRN$~`GJ)4mlE2jN?Ry+#edp+TW$E*aS)Ir6L?N!%=g|& z39iWgvgunK`-nIQ064MJe~Ily^J|j(mdna3&Hm{l;vjr0c!ohK!fOR_LlJQh0Kk32 zTXMh9Y7KZ@r-uflndc0;CY+SgLk9xlRy(9qhHmE@ib#We1HjyEK7DhGy#N3J07*qo IM6N<$f+PC*0RR91 diff --git a/Items/GalacticaSingularity.cs b/Items/GalacticaSingularity.cs index 82b5683b23..8156974477 100644 --- a/Items/GalacticaSingularity.cs +++ b/Items/GalacticaSingularity.cs @@ -23,8 +23,8 @@ namespace CalamityMod.Items item.width = 28; item.height = 28; item.maxStack = 999; - item.value = 500000; - item.rare = 10; + item.value = Item.buyPrice(0, 6, 0, 0); + item.rare = 10; } public override void AddRecipes() @@ -41,7 +41,7 @@ namespace CalamityMod.Items public override void Update(ref float gravity, ref float maxFallSpeed) { - maxFallSpeed *= 0.0001f; + maxFallSpeed = 0f; float num = (float)Main.rand.Next(90, 111) * 0.01f; num *= Main.essScale; Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 1f * num, 0.3f * num, 0.3f * num); diff --git a/Items/GallantPickaxe.cs b/Items/GallantPickaxe.cs index 61a66fd714..eff76a9669 100644 --- a/Items/GallantPickaxe.cs +++ b/Items/GallantPickaxe.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items item.UseSound = SoundID.Item1; item.autoReuse = true; item.tileBoost += 5; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/GodlySoulArtifact.cs b/Items/GodlySoulArtifact.cs index 494b211ae7..a62b793423 100644 --- a/Items/GodlySoulArtifact.cs +++ b/Items/GodlySoulArtifact.cs @@ -21,20 +21,10 @@ namespace CalamityMod.Items { item.width = 28; item.height = 28; - item.value = 5000000; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.value = Item.buyPrice(1, 50, 0, 0); + item.accessory = true; + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void UpdateAccessory(Player player, bool hideVisual) { diff --git a/Items/GreatSandShark/GrandScale.cs b/Items/GreatSandShark/GrandScale.cs index 262030e3de..72246aa677 100644 --- a/Items/GreatSandShark/GrandScale.cs +++ b/Items/GreatSandShark/GrandScale.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.GreatSandShark item.width = 15; item.height = 12; item.maxStack = 999; - item.value = 50000; - item.rare = 7; + item.value = Item.buyPrice(0, 4, 50, 0); + item.rare = 7; } } } \ No newline at end of file diff --git a/Items/GreatSandShark/SandstormsCore.cs b/Items/GreatSandShark/SandstormsCore.cs index 3aa86aaeee..928d0d271d 100644 --- a/Items/GreatSandShark/SandstormsCore.cs +++ b/Items/GreatSandShark/SandstormsCore.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.GreatSandShark item.width = 20; item.height = 20; item.maxStack = 20; - item.rare = 8; + item.rare = 7; item.useAnimation = 45; item.useTime = 45; item.useStyle = 4; diff --git a/Items/GreatbayPickaxe.cs b/Items/GreatbayPickaxe.cs index e6e11862e0..3480a3812a 100644 --- a/Items/GreatbayPickaxe.cs +++ b/Items/GreatbayPickaxe.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items item.useTurn = true; item.pick = 60; item.useStyle = 1; - item.knockBack = 2; + item.knockBack = 2f; item.value = Item.buyPrice(0, 2, 0, 0); item.rare = 2; item.UseSound = SoundID.Item1; diff --git a/Items/GypsyPowder.cs b/Items/GypsyPowder.cs index bbd9d9470c..c38b0535d4 100644 --- a/Items/GypsyPowder.cs +++ b/Items/GypsyPowder.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class GypsyPowder : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class GypsyPowder : ModItem { - DisplayName.SetDefault("Gypsy Powder"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Gypsy Powder"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; + } } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 50000; - item.rare = 5; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/GypsyPowder.png b/Items/GypsyPowder.png index 227736b310835440e86a74517ee98352bcdc72bb..cead4fc26ff78616f5faa6b183771efb42aed9fb 100644 GIT binary patch delta 440 zcmV;p0Z0DE1kwYLB!2;OQb$4nuFf3k00004XF*Lt006O%3;baP00009a7bBm000id z000id0mpBsWB>pF8FWQhbW?9;ba!ELWdLwtX>N2bZe?^JG%heMF*7s+TY3Nh0YXVc zK~zXf)sj7K!ax*+eTmQ^rAR{x(nS>M+#pfW(twl$L}_w>G=HSy094$76VP)TdJ0Eg zy^pL1R%=_fvWzsv+n<>aFIin}e@;c|!~X2dY}?t#=dmblV}D8p1OOW^QXp05fXRSR z7%Nr*()3F_-U9IzHK@9Cyy#Q5Q?-AagO5e*R?Zq=$?uk z8~?os0ic}V+wb(jWZzm^U9fhi@ExNwE<8vAV@&~z{~NMGe8OgfQ{|d zJ4oyk5lDdo@Dw@&RvRc85Cjkhc>)dASpoDuX5H$-N(N-`@L2e!hyZ4u2rC%t%rB$2 zipjUyYxxkR3HmpXd@`?CgS3d5CsKgL^u1zogFwlF=rKi107cBPbqrV#03`#0IM|o1 iCaznTyR_Aavg{WWV^>X}bCwqX0000;U?uk7n~-KQciI5kIj^L!#W~wu@K_kuH1}600000NkvXXu0mjfbHe@! diff --git a/Items/HadarianMembrane.cs b/Items/HadarianMembrane.cs new file mode 100644 index 0000000000..589dcd3d56 --- /dev/null +++ b/Items/HadarianMembrane.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items +{ + public class HadarianMembrane : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Hadarian Membrane"); + Tooltip.SetDefault("The membrane of an astral creature's wings"); + } + + public override void SetDefaults() + { + item.width = 22; + item.height = 22; + item.maxStack = 999; + item.value = Item.buyPrice(0, 4, 50, 0); + item.rare = 7; + } + } +} \ No newline at end of file diff --git a/Items/HadarianMembrane.png b/Items/HadarianMembrane.png new file mode 100644 index 0000000000000000000000000000000000000000..dc3213df17ac27a010be34082d04ed8897e1d22a GIT binary patch literal 387 zcmV-}0et?6P)NklYU6vls7+Ss%P+X^BGf|G?VA#1ldbn504DEI(^tAlIb#?8TJXcs3pu^5SaXie5Cx0B-VrwPllwY;x)6OSKKS z^!R*7kFW7WWw7K~0hzo(k>`?`JCE<;69AgNCQZ`Slge*p7SX|fE9$pQcX002ovPDHLkV1jd(wHN>Z literal 0 HcmV?d00001 diff --git a/Items/HiveMind/HiveMindBag.cs b/Items/HiveMind/HiveMindBag.cs index a0e2d84970..362d14daae 100644 --- a/Items/HiveMind/HiveMindBag.cs +++ b/Items/HiveMind/HiveMindBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.HiveMind public class HiveMindBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,6 +30,24 @@ namespace CalamityMod.Items.HiveMind public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("ShaderainStaff")); @@ -46,7 +64,7 @@ namespace CalamityMod.Items.HiveMind { player.QuickSpawnItem(mod.ItemType("HiveMindMask")); } - if(Main.rand.Next(3) == 0) + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("PerfectDark")); } @@ -66,10 +84,10 @@ namespace CalamityMod.Items.HiveMind player.QuickSpawnItem(ItemID.RottenChunk, Main.rand.Next(10, 21)); player.QuickSpawnItem(ItemID.DemoniteBar, Main.rand.Next(9, 15)); player.QuickSpawnItem(mod.ItemType("TrueShadowScale"), Main.rand.Next(30, 41)); - if (Main.hardMode) - { - player.QuickSpawnItem(ItemID.CursedFlame, Main.rand.Next(15, 31)); - } - } + if (Main.hardMode) + { + player.QuickSpawnItem(ItemID.CursedFlame, Main.rand.Next(15, 31)); + } + } } } \ No newline at end of file diff --git a/Items/HiveMind/RottenBrain.cs b/Items/HiveMind/RottenBrain.cs index 53c7a3783f..c6cb1ef54b 100644 --- a/Items/HiveMind/RottenBrain.cs +++ b/Items/HiveMind/RottenBrain.cs @@ -55,18 +55,8 @@ namespace CalamityMod.Items.HiveMind } } } - if (player.statLife <= (player.statLifeMax2 * 0.75f)) - { - player.meleeDamage += 0.1f; - player.magicDamage += 0.1f; - player.rangedDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.minionDamage += 0.1f; - } - if (player.statLife <= (player.statLifeMax2 * 0.5f)) - { - player.moveSpeed -= 0.05f; - } + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.rBrain = true; } } } \ No newline at end of file diff --git a/Items/HiveMind/TrueShadowScale.cs b/Items/HiveMind/TrueShadowScale.cs index 8c80a7a68e..59cd811cdc 100644 --- a/Items/HiveMind/TrueShadowScale.cs +++ b/Items/HiveMind/TrueShadowScale.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.HiveMind { -public class TrueShadowScale : ModItem +namespace CalamityMod.Items.HiveMind { - public override void SetStaticDefaults() + public class TrueShadowScale : ModItem { - DisplayName.SetDefault("True Shadow Scale"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("True Shadow Scale"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 22; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 50, 0); + item.rare = 2; + } } - - public override void SetDefaults() - { - item.width = 16; - item.height = 22; - item.maxStack = 999; - item.value = 2500; - item.rare = 2; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Leviathan/EnchantedPearl.png b/Items/Leviathan/EnchantedPearl.png index b633ed63cbd14a3d23b34f8b05a345a366b9a45c..a036b0d1260ef86214e30417bbce05e5a4619dcf 100644 GIT binary patch delta 3114 zcmV+_4At|61+Ey7BYyx1a7bBm000XU000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+< zLqi~Na&Km7Y-Iodc-oy)XH-+^7Crag^g>IBfRsybQWXdwQbLP>6pAqfylh#{fb z6;Z(vMMVS~$e@S=j*ftg6;Uh>2n?1;Gf_2w45>mM5#WQz#Kz&|EGkvK~TfD`~gdX7S-06<0ofSs5oQvjd@0AR~w zV&ec%EdXFAe}CrF0DztNnR@{MTa+Oc0iclpAQNSXL;z?z0IbheibVieFaQ*0OT;+< z*ew7sNmph_0I;_Jz|Ig0vH%DS05DOAg((08djMd_BO`bKgqZ*oM)FrY@hh$n=PCdI zc$u<1xgb(Nf#>=Hemu`nm{hXd4HK1GJ!M?;PcD?0HBc-5#WRK z{dmp}uFlRjj{U%*%WZ25jX{P*?X zzTzZ-GJjoxM+Erb!p!tcr5w+a34~(Y=8s4Gw+sLL9n&JjNn*KJDiq^U5^;`1nvC-@ zr6P$!k}1U{(*I=Q-z@tBKHoI}uxdU5dyy@uU1J0GOD7Ombim^G008p4Z^6_k2m^p< zgW=D2|L;HjN1!DDfM!XOaR2~bL?kX$%CkSm2!8+oM4*8xut6L2!5A#S1{}c!+`$X{ zU^aw8B*el(5JC!MfE;pQDXfA*D2C0j9V%ci)Ic3Hz)@(1lW-0$!d18qJ#Y{DVF;eV zD7=9Q1VP9M6Ja6Rhyh}XSR;-I7nz0lA;Cxl5{o1t$%qtDB1@4qNHJ21R3KGI9r8VL z0)IJ&Tt>Q)JIDYsg8YWOM=_LvvQa(M47EeKs5csfMxqPQWOOl_j~1Yt&~mgIJ&ZP? z=g_NY5897DL&q?{=okkx#B4Aw#=}CfI4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cL%A;d-rEF^gKbx}eh zs@Mk1-*V&un0{KBg*O-B43RJmrv2yaSjVPm^ivQwOh`kgak|-My?q!hj8i|Va+YV z*CA;_j+X^Yo2g5HX?+P%Fn#gGYcPH4<_n_aVIlce6MvFs&;jG1bBNWV02D_a^y&oj zC0=u*h{MtbEMyoJAnla@4_rSpc1rp2mmW%!Os6wu?7GD002ovPDHLk HV1fVuYMB$} diff --git a/Items/Leviathan/IOU.cs b/Items/Leviathan/IOU.cs index 766b5c2122..c8f784edfc 100644 --- a/Items/Leviathan/IOU.cs +++ b/Items/Leviathan/IOU.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.Leviathan { -public class IOU : ModItem +namespace CalamityMod.Items.Leviathan { - public override void SetStaticDefaults() + public class IOU : ModItem { - DisplayName.SetDefault("IOU an item"); - Tooltip.SetDefault("Use to craft any Leviathan weapon you want\nCombine with Living Shards from Plantera to get your item!"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("IOU an item"); + Tooltip.SetDefault("Use to craft any Leviathan weapon you want\nCombine with Living Shards from Plantera to get your item!"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 26; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 26; - item.height = 26; - item.value = 100; - item.rare = 1; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Leviathan/LeviathanAmbergris.cs b/Items/Leviathan/LeviathanAmbergris.cs index cb21970376..2ac69dc57f 100644 --- a/Items/Leviathan/LeviathanAmbergris.cs +++ b/Items/Leviathan/LeviathanAmbergris.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Leviathan Tooltip.SetDefault("You leave behind poisonous seawater as you move\n" + "75% increased movement speed, 10% increase to all damage, and plus 20 defense while submerged in liquid\n" + "If you are damaged while submerged in liquid you will gain a damaging aura for a short time\n" + - "Being outside of liquid decreases all damage done by 5% but increases damage reduction by 5%"); + "Being outside of liquid increases all damage by 5% and increases damage reduction by 5%"); } public override void SetDefaults() @@ -33,25 +33,28 @@ namespace CalamityMod.Items.Leviathan public override void UpdateAccessory(Player player, bool hideVisual) { player.ignoreWater = true; - if (!Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) - { - player.endurance += 0.05f; - player.meleeDamage -= 0.05f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage -= 0.05f; - player.rangedDamage -= 0.05f; - player.magicDamage -= 0.05f; - player.minionDamage -= 0.05f; - } - else - { - player.meleeDamage += 0.1f; - CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; - player.rangedDamage += 0.1f; - player.magicDamage += 0.1f; - player.minionDamage += 0.1f; - player.statDefense += 20; - player.moveSpeed += 0.75f; - } + if (!player.lavaWet && !player.honeyWet) + { + if (!Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) + { + player.endurance += 0.05f; + player.meleeDamage += 0.05f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.05f; + player.rangedDamage += 0.05f; + player.magicDamage += 0.05f; + player.minionDamage += 0.05f; + } + else + { + player.meleeDamage += 0.1f; + CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.1f; + player.rangedDamage += 0.1f; + player.magicDamage += 0.1f; + player.minionDamage += 0.1f; + player.statDefense += 20; + player.moveSpeed += 0.75f; + } + } if (((double)player.velocity.X > 0 || (double)player.velocity.Y > 0 || (double)player.velocity.X < -0.1 || (double)player.velocity.Y < -0.1)) { if (player.whoAmI == Main.myPlayer) diff --git a/Items/Leviathan/LeviathanBag.cs b/Items/Leviathan/LeviathanBag.cs index f9b154a20d..6619919162 100644 --- a/Items/Leviathan/LeviathanBag.cs +++ b/Items/Leviathan/LeviathanBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Leviathan public class LeviathanBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,36 +30,98 @@ namespace CalamityMod.Items.Leviathan public override void OpenBossBag(Player player) { - player.TryGettingDevArmor(); - if (Main.rand.Next(3) == 0) + bool hardMode = Main.hardMode; + if (CalamityWorld.revenge) { - player.QuickSpawnItem(mod.ItemType("Atlantis")); //done + if (Main.rand.Next(100) == 0) + { + player.QuickSpawnItem(mod.ItemType("TheCommunity")); + } + else if (CalamityWorld.defiled) + { + if (Main.rand.Next(20) == 0) + { + player.QuickSpawnItem(mod.ItemType("TheCommunity")); + } + } + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } } - if (Main.rand.Next(3) == 0) + player.QuickSpawnItem(mod.ItemType("EnchantedPearl")); + if (Main.rand.Next(10) == 0) { - player.QuickSpawnItem(mod.ItemType("BrackishFlask")); //done + player.QuickSpawnItem(ItemID.HotlineFishingHook); } - if (Main.rand.Next(3) == 0) + if (Main.rand.Next(10) == 0) { - player.QuickSpawnItem(mod.ItemType("Leviatitan")); //done + player.QuickSpawnItem(ItemID.BottomlessBucket); } - if (Main.rand.Next(3) == 0) + if (Main.rand.Next(10) == 0) { - player.QuickSpawnItem(mod.ItemType("LureofEnthrallment")); + player.QuickSpawnItem(ItemID.SuperAbsorbantSponge); } - if (Main.rand.Next(3) == 0) + if (Main.rand.Next(5) == 0) { - player.QuickSpawnItem(mod.ItemType("SirensSong")); //done + player.QuickSpawnItem(ItemID.CratePotion, Main.rand.Next(5, 9)); } - if (Main.rand.Next(3) == 0) + if (Main.rand.Next(5) == 0) { - player.QuickSpawnItem(mod.ItemType("Greentide")); //done + player.QuickSpawnItem(ItemID.FishingPotion, Main.rand.Next(5, 9)); + } + if (Main.rand.Next(5) == 0) + { + player.QuickSpawnItem(ItemID.SonarPotion, Main.rand.Next(5, 9)); + } + if (!hardMode) + { + player.QuickSpawnItem(mod.ItemType("IOU")); } if (Main.rand.Next(7) == 0) { player.QuickSpawnItem(mod.ItemType("LeviathanMask")); } - player.QuickSpawnItem(mod.ItemType("LeviathanAmbergris")); //done + if (hardMode) + { + player.TryGettingDevArmor(); + if (Main.rand.Next(3) == 0) + { + player.QuickSpawnItem(mod.ItemType("Atlantis")); //done + } + if (Main.rand.Next(3) == 0) + { + player.QuickSpawnItem(mod.ItemType("BrackishFlask")); //done + } + if (Main.rand.Next(3) == 0) + { + player.QuickSpawnItem(mod.ItemType("Leviatitan")); //done + } + if (Main.rand.Next(3) == 0) + { + player.QuickSpawnItem(mod.ItemType("LureofEnthrallment")); + } + if (Main.rand.Next(3) == 0) + { + player.QuickSpawnItem(mod.ItemType("SirensSong")); //done + } + if (Main.rand.Next(3) == 0) + { + player.QuickSpawnItem(mod.ItemType("Greentide")); //done + } + player.QuickSpawnItem(mod.ItemType("LeviathanAmbergris")); //done + } } } } \ No newline at end of file diff --git a/Items/LivingShard.cs b/Items/LivingShard.cs index 2bd277f7fb..142ff02c00 100644 --- a/Items/LivingShard.cs +++ b/Items/LivingShard.cs @@ -8,20 +8,22 @@ using Terraria.ModLoader; using CalamityMod.Items; using CalamityMod.NPCs; -namespace CalamityMod.Items { -public class LivingShard : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class LivingShard : ModItem { - DisplayName.SetDefault("Living Shard"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Living Shard"); + } + + public override void SetDefaults() + { + item.width = 14; + item.height = 14; + item.maxStack = 999; + item.value = Item.buyPrice(0, 4, 50, 0); + item.rare = 7; + } } - - public override void SetDefaults() - { - item.width = 14; - item.height = 14; - item.maxStack = 999; - item.value = 15000; - item.rare = 7; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/ManeaterBulb.cs b/Items/ManeaterBulb.cs index 95e0ee3afb..fd59f0c5f5 100644 --- a/Items/ManeaterBulb.cs +++ b/Items/ManeaterBulb.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class ManeaterBulb : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class ManeaterBulb : ModItem { - DisplayName.SetDefault("Maneater Bulb"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Maneater Bulb"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 10000; - item.rare = 2; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/MeldBlob.cs b/Items/MeldBlob.cs index 797c50c1f4..f4184e7482 100644 --- a/Items/MeldBlob.cs +++ b/Items/MeldBlob.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class MeldBlob : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class MeldBlob : ModItem { - DisplayName.SetDefault("Meld Blob"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Meld Blob"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 14; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 9; + } } - - public override void SetDefaults() - { - item.width = 16; - item.height = 14; - item.maxStack = 999; - item.value = 23750; - item.rare = 8; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/MeldiateBar.cs b/Items/MeldiateBar.cs index 40f75d3900..465676ed84 100644 --- a/Items/MeldiateBar.cs +++ b/Items/MeldiateBar.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items item.width = 15; item.height = 12; item.maxStack = 999; - item.value = 75000; - item.rare = 9; + item.value = Item.buyPrice(0, 5, 50, 0); + item.rare = 9; } public override void AddRecipes() diff --git a/Items/MurkyPaste.cs b/Items/MurkyPaste.cs index 66e0b39343..71a6c849f6 100644 --- a/Items/MurkyPaste.cs +++ b/Items/MurkyPaste.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class MurkyPaste : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class MurkyPaste : ModItem { - DisplayName.SetDefault("Murky Paste"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Murky Paste"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 5000; - item.rare = 1; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/MurkySludge.cs b/Items/MurkySludge.cs index 95e3201c0d..2fb35bdb49 100644 --- a/Items/MurkySludge.cs +++ b/Items/MurkySludge.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class MurkySludge : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class MurkySludge : ModItem { - DisplayName.SetDefault("Murky Sludge"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Murky Sludge"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 20000; - item.rare = 1; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/NightmareFuel.cs b/Items/NightmareFuel.cs index bd7602cf0f..b07fe76265 100644 --- a/Items/NightmareFuel.cs +++ b/Items/NightmareFuel.cs @@ -8,39 +8,31 @@ using Terraria.ModLoader; using CalamityMod.Items; using CalamityMod.NPCs; -namespace CalamityMod.Items { -public class NightmareFuel : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class NightmareFuel : ModItem { - DisplayName.SetDefault("Nightmare Fuel"); - Tooltip.SetDefault("May drain your sanity"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Nightmare Fuel"); + Tooltip.SetDefault("May drain your sanity"); + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + maxFallSpeed = 0f; + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.7f * num, 0.7f * num, 0f * num); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 7, 50, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - maxFallSpeed *= 0f; - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.7f * num, 0.7f * num, 0f * num); - } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 50000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/OmegaHealingPotion.cs b/Items/OmegaHealingPotion.cs index a7faf7ad34..5a93a94ff2 100644 --- a/Items/OmegaHealingPotion.cs +++ b/Items/OmegaHealingPotion.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items item.width = 28; item.height = 18; item.useTurn = true; - item.maxStack = 30; + item.maxStack = 999; item.healLife = 300; item.useAnimation = 17; item.useTime = 17; @@ -28,19 +28,9 @@ namespace CalamityMod.Items item.UseSound = SoundID.Item3; item.consumable = true; item.potion = true; - item.value = 100000; + item.value = Item.buyPrice(0, 7, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 13; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } public override void AddRecipes() { diff --git a/Items/Patreon/ApronOfAffection.cs b/Items/Patreon/ApronOfAffection.cs new file mode 100644 index 0000000000..0e453e4acf --- /dev/null +++ b/Items/Patreon/ApronOfAffection.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.Patreon; + +namespace CalamityMod.Items.Patreon +{ + [AutoloadEquip(EquipType.Body)] + public class ApronOfAffection : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Ace's Apron of Affection"); + Tooltip.SetDefault("Great for hugging people"); + } + + public override void SetDefaults() + { + item.width = 18; + item.height = 18; + item.rare = 5; + item.GetGlobalItem(mod).postMoonLordRarity = 21; + item.value = Item.buyPrice(0, 15, 0, 0); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.Robe); + recipe.AddIngredient(ItemID.LovePotion, 10); + recipe.AddIngredient(ItemID.LifeCrystal); + recipe.AddTile(TileID.Loom); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Patreon/ApronOfAffection.png b/Items/Patreon/ApronOfAffection.png new file mode 100644 index 0000000000000000000000000000000000000000..14f3648cfccd438ff69c49014c57283f75e7cc01 GIT binary patch literal 506 zcmVXt;@h6aw6oNvq5(_)A(Fd^e5$pt?LrCW%r1JsPLhLNG2#BDCkPwLq zYAn>KI2Oqv*rY^hH+r0}Z&OOIsVE7fwoL3y@xzF#yfv7yx~P0RUfbEdWN+qX0Co z>lPrtx)`ccJ2bf13)4(6`B9Iy{EU1tDEyn0BQ%Pz<(fK z+uIH$E_ROqC~mGqE^Hp(09}&o{9Gs>7e6VL0iRtRmuOU~02H0Lyq1^p%q7!$H!k@n zmS=8P$HnE9Bu_=^N_ojYu_QuCWNXXqu2=WVYwb|-Ql4wxT~f(EvB>nNiGB>g2iT~E zE~zW?`ECFjm8ymA&L(*!HUK7QpEjRQ&j19I$sZT~Hm6vtdZGHZ)jrMq5$i?~cN1|> z8@KD-Jz3tn=dW%a`kw!;mRwTpSRy?u9|ACzn+SES9+)ZOV wKWzY>YIgt(CWirdYraIzd(ZqD_y-<;15=*Av$Q~8JOBUy07*qoM6N<$g8D(+v;Y7A literal 0 HcmV?d00001 diff --git a/Items/Patreon/ApronOfAffection_Arms.png b/Items/Patreon/ApronOfAffection_Arms.png new file mode 100644 index 0000000000000000000000000000000000000000..99ebab743152f01f6e4daa7cb54fdac8cf84871f GIT binary patch literal 2197 zcmc(hdsLEX9>-A-BuztWgpmnPx*iu@6m2Xs6`8y>O~;v8Z>0ngI*Ad8moyAfyLkaB zFF2kuXJ^{ogJ$ZeILs(r7EsJ+wz4CYCYpI6MNJ`1_k~i=*+2H2`D_1p-{*PW^PcDV zet)0u?>+Cu=z|fPH+{MZ1Ojc2irn`NFnWMM5VAECnAQBUl?x0O>~A87pqqW@abN*S z3H>S*1Zoo4EK{t2HJlllzy^Wr?wT$O#mRph10JF>!s0W&J(--5O-ZMLn3Us;3><@& z;j$CwgTwpn1Ru@?fvl~f_J#iS6iGMGRCY{(3VZqXwFlVZ=dJnZjvm7Pfk%! zuiBrFB@7t`85NY(6b_zE?Ia3aHH>z3ojh~;w*}r)s~0Pp z5-QmEQ%BIegmA}}vyF!;uNfpwiwHym_?q;qB|`lV@`3n&m6^`F>^AOr_~t>%siI%>jewltaF!9u zZSm0AOCaKywm)zO(+gaCwol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}Bvv53C((GtEA*%Kdi4IfI>)kZQ-xS$V zmtkfgPdHw@wQ_D|JGVKA2#8z}+}SW|{rpaH?jgKmKF=Xdp>H;|lBr%pd=PbQ2fFM9 z5qOgKqaEFffm<+7+f2~^lOJB2TF9I3x=?F<(LsYY&u?mX`>J+2Si78_Ae5LjLc|>S{Ya_u0 z28ew}z`=I)f(!ORQ(nbw*Y>+N=CA$_bB=m8(NAfE>5Kaiu=y(q;PNnIE>^et%8p12 zJti@;K+c?;ICB+xgPo}n?B%;omwqZ3Sk&qLfq|+S*94u2)Sff&*nw}PPx)H<>v$Zo z0KGB$K0+twFvSxev`}%w`?h9Acsz6yIETf)jbYVu?GXx9`|t@mUCl7{#_q1KO}KAz zk=VeLGv$@^bJh3JZBJW)B{oA{g kuE(GU`3wJ=pPAV6>}1{R^KQp&<$s9oRId#cF56Q604W9J(EtDd literal 0 HcmV?d00001 diff --git a/Items/Patreon/Ataraxia.cs b/Items/Patreon/Ataraxia.cs new file mode 100644 index 0000000000..3f015e091c --- /dev/null +++ b/Items/Patreon/Ataraxia.cs @@ -0,0 +1,146 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Patreon +{ + public class Ataraxia : ModItem + { + public static int BaseDamage = 3120; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Ataraxia"); + Tooltip.SetDefault("Equanimity"); + } + + public override void SetDefaults() + { + item.width = 94; + item.height = 92; + item.melee = true; + item.damage = BaseDamage; + item.knockBack = 2.5f; + item.useAnimation = 18; + item.useTime = 18; + item.autoReuse = true; + item.useTurn = true; + + item.useStyle = 1; + item.UseSound = SoundID.Item1; + + item.rare = 10; + item.GetGlobalItem(mod).postMoonLordRarity = 21; + item.value = Item.buyPrice(2, 50, 0, 0); + + item.shoot = mod.ProjectileType("AtaraxiaMain"); + item.shootSpeed = 9f; + } + + public override void GetWeaponDamage(Player player, ref int damage) + { + float damageBoost = (float)BaseDamage * player.GetModPlayer(mod).ataraxiaDamageBoost; + float damageAdd = damageBoost + (float)BaseDamage; + damage = (int)(damageAdd * player.meleeDamage); + } + + // Fires one large and two small projectiles which stay together in formation. + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + // Play the Terra Blade sound upon firing + Main.PlaySound(SoundID.Item60, position); + + // Center projectile + int centerID = mod.ProjectileType("AtaraxiaMain"); + int centerDamage = damage; + Vector2 centerVec = new Vector2(speedX, speedY); + int center = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, centerID, centerDamage, knockBack, player.whoAmI, 0.0f, 0.0f); + + // Side projectiles (these deal 75% damage) + int sideID = mod.ProjectileType("AtaraxiaSide"); + int sideDamage = (int)(0.75f * centerDamage); + Vector2 speed = new Vector2(speedX, speedY); + speed.Normalize(); + speed *= 22f; + Vector2 rrp = player.RotatedRelativePoint(player.MountedCenter, true); + Vector2 leftOffset = speed.RotatedBy((double)(MathHelper.PiOver4), default(Vector2)); + Vector2 rightOffset = speed.RotatedBy((double)(-MathHelper.PiOver4), default(Vector2)); + leftOffset -= 1.4f * speed; + rightOffset -= 1.4f * speed; + Projectile.NewProjectile(rrp.X + leftOffset.X, rrp.Y + leftOffset.Y, speedX, speedY, sideID, sideDamage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(rrp.X + rightOffset.X, rrp.Y + rightOffset.Y, speedX, speedY, sideID, sideDamage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + + // On-hit, tosses out five homing projectiles. This is not like Holy Collider. + public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(BuffID.ShadowFlame, 480); + target.AddBuff(BuffID.Ichor, 480); + + // Does not summon extra projectiles versus dummies. + if (target.type == NPCID.TargetDummy) + return; + + // Individual true melee homing missiles deal 10% of the weapon's base damage. + int numSplits = 5; + int trueMeleeID = mod.ProjectileType("AtaraxiaHoming"); + int trueMeleeDamage = (int)(0.1f * damage); + float angleVariance = MathHelper.TwoPi / (float)numSplits; + float spinOffsetAngle = MathHelper.Pi / (2f * numSplits); + Vector2 posVec = new Vector2(8f, 0f).RotatedByRandom(MathHelper.TwoPi); + + for (int i = 0; i < numSplits; ++i) + { + posVec = posVec.RotatedBy(angleVariance); + Vector2 velocity = new Vector2(posVec.X, posVec.Y).RotatedBy(spinOffsetAngle); + velocity.Normalize(); + velocity *= 8f; + Projectile.NewProjectile(target.Center + posVec, velocity, trueMeleeID, trueMeleeDamage, knockback, player.whoAmI, 0.0f, 0.0f); + } + } + + // Spawn some fancy dust while swinging + public override void MeleeEffects(Player player, Rectangle hitbox) + { + int dustCount = Main.rand.Next(3, 6); + Vector2 corner = new Vector2(hitbox.X + hitbox.Width / 4, hitbox.Y + hitbox.Height / 4); + for (int i = 0; i < dustCount; ++i) + { + // Pick a random dust to spawn + int dustID = -1; + switch (Main.rand.Next(5)) + { + case 0: + case 1: dustID = 70; break; + case 2: dustID = 71; break; + default: dustID = 86; break; + } + int idx = Dust.NewDust(corner, hitbox.Width / 2, hitbox.Height / 2, dustID); + Main.dust[idx].noGravity = true; + } + } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.AddIngredient(ItemID.BrokenHeroSword); + r.AddIngredient(null, "CosmiliteBar", 25); + r.AddIngredient(null, "Phantoplasm", 35); + r.AddIngredient(null, "NightmareFuel", 90); + r.AddIngredient(null, "EndothermicEnergy", 90); + r.AddIngredient(null, "DarksunFragment", 65); + r.AddIngredient(null, "BarofLife", 15); + r.AddIngredient(null, "CoreofCalamity", 5); + r.AddIngredient(null, "HellcasterFragment", 10); + r.AddTile(null, "DraedonsForge"); + r.SetResult(this); + r.AddRecipe(); + } + } +} diff --git a/Items/Patreon/Ataraxia.png b/Items/Patreon/Ataraxia.png new file mode 100644 index 0000000000000000000000000000000000000000..662e12fe8ea9e7a6fc52cd328d6083c8b74b584c GIT binary pat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1MT@i;f4x)1;)$A`3UdWZ zvL?x5QkibfFEX{Oz{DAEiBaQC{$JCDu)ZC^G~IkoSPdytO&6T;miQmK!!OSeXUq=( s000tnMObu2SV=}YPjYExZggREX>V=-F@#v`?*IS*07*qoM6N<$f_Zfm*Z=?k literal 0 HcmV?d00001 diff --git a/Items/Patreon/DarkSpark.cs b/Items/Patreon/DarkSpark.cs index 769edee43e..c889c356df 100644 --- a/Items/Patreon/DarkSpark.cs +++ b/Items/Patreon/DarkSpark.cs @@ -1,73 +1,63 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Patreon -{ - public class DarkSpark : ModItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Patreon +{ + public class DarkSpark : ModItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Dark Spark"); - Tooltip.SetDefault("And everything under the sun is in tune,\n" + + Tooltip.SetDefault("And everything under the sun is in tune,\n" + "But the sun is eclipsed by the moon."); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 4)); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 4)); } - public override void SetDefaults() - { - item.damage = 100; - item.magic = true; - item.mana = 10; - item.width = 16; - item.height = 16; - item.useTime = 10; - item.useAnimation = 10; - item.reuseDelay = 5; - item.useStyle = 4; - item.UseSound = SoundID.Item13; - item.noMelee = true; - item.noUseGraphic = true; - item.channel = true; - item.knockBack = 0f; - item.value = Item.buyPrice(1, 40, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("DarkSpark"); - item.shootSpeed = 30f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(139, 0, 0); - } - } - } - - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) - { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("DarkSpark"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); - return false; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.LastPrism); - recipe.AddIngredient(null, "DarkPlasma", 10); - recipe.AddIngredient(null, "RuinousSoul", 20); - recipe.AddIngredient(null, "DivineGeode", 30); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } + public override void SetDefaults() + { + item.damage = 100; + item.magic = true; + item.mana = 10; + item.width = 16; + item.height = 16; + item.useTime = 10; + item.useAnimation = 10; + item.reuseDelay = 5; + item.useStyle = 4; + item.UseSound = SoundID.Item13; + item.noMelee = true; + item.noUseGraphic = true; + item.channel = true; + item.knockBack = 0f; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("DarkSpark"); + item.shootSpeed = 30f; + item.GetGlobalItem(mod).postMoonLordRarity = 21; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("DarkSpark"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.LastPrism); + recipe.AddIngredient(null, "DarkPlasma", 10); + recipe.AddIngredient(null, "RuinousSoul", 20); + recipe.AddIngredient(null, "DivineGeode", 30); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Patreon/DivineRetribution.cs b/Items/Patreon/DivineRetribution.cs index bc114465e0..4c72794f51 100644 --- a/Items/Patreon/DivineRetribution.cs +++ b/Items/Patreon/DivineRetribution.cs @@ -1,112 +1,102 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Patreon -{ - public class DivineRetribution : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Divine Retribution"); - Tooltip.SetDefault("Mage is superior to rogue; look, we got a donor weapon to prove it!"); - Item.staff[item.type] = true; - } - - public override void SetDefaults() - { - item.damage = 60; - item.magic = true; - item.mana = 15; - item.width = 66; - item.height = 88; - item.useTime = 12; - item.useAnimation = 12; - item.useStyle = 5; - item.noMelee = true; - item.knockBack = 3.5f; - item.value = Item.buyPrice(1, 40, 0, 0); - item.rare = 10; - item.UseSound = SoundID.Item73; - item.autoReuse = true; - item.shootSpeed = 19f; - item.shoot = mod.ProjectileType("DivineRetribution"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(139, 0, 0); - } - } - } - - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) - { - float num72 = item.shootSpeed; - Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); - float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; - float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; - if (player.gravDir == -1f) - { - num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y; - } - float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); - if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) - { - num78 = (float)player.direction; - num79 = 0f; - num80 = num72; - } - else - { - num80 = num72 / num80; - } - int num107 = Main.rand.Next(5, 7); - for (int num108 = 0; num108 < num107; num108++) - { - vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(51) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - /* - */ player.position.X), player.MountedCenter.Y + 600f); //- - vector2.X = (vector2.X + player.Center.X) / 2f + (float)Main.rand.Next(-50, 51); //200 - vector2.Y += (float)(100 * num108); //-= - num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; //+ - - num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; //+ - - if (num79 < 0f) - { - num79 *= -1f; - } - if (num79 < 20f) - { - num79 = 20f; - } - num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); - num80 = num72 / num80; - num78 *= num80; - num79 *= num80; - float speedX6 = num78 + (float)Main.rand.Next(-60, 61) * 0.02f; - float speedY7 = num79 + (float)Main.rand.Next(-60, 61) * 0.02f; - float ai1 = (Main.rand.NextFloat() + 0.5f); - int bullet2 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX6, -speedY7, type, damage, knockBack, player.whoAmI, 0.0f, ai1); - } - return false; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "DivineGeode", 8); - recipe.AddIngredient(null, "UndinesRetribution"); - recipe.AddIngredient(null, "UeliaceBar", 6); - recipe.AddIngredient(null, "UnholyEssence", 10); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Patreon +{ + public class DivineRetribution : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Divine Retribution"); + Tooltip.SetDefault("Mage is superior to rogue; look, we got a donor weapon to prove it!"); + Item.staff[item.type] = true; + } + + public override void SetDefaults() + { + item.damage = 60; + item.magic = true; + item.mana = 15; + item.width = 66; + item.height = 88; + item.useTime = 12; + item.useAnimation = 12; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 3.5f; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 10; + item.UseSound = SoundID.Item73; + item.autoReuse = true; + item.shootSpeed = 19f; + item.shoot = mod.ProjectileType("DivineRetribution"); + item.GetGlobalItem(mod).postMoonLordRarity = 21; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + float num72 = item.shootSpeed; + Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); + float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; + float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; + if (player.gravDir == -1f) + { + num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y; + } + float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); + if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) + { + num78 = (float)player.direction; + num79 = 0f; + num80 = num72; + } + else + { + num80 = num72 / num80; + } + int num107 = Main.rand.Next(5, 7); + for (int num108 = 0; num108 < num107; num108++) + { + vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(51) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - /* - */ player.position.X), player.MountedCenter.Y + 600f); //- + vector2.X = (vector2.X + player.Center.X) / 2f + (float)Main.rand.Next(-50, 51); //200 + vector2.Y += (float)(100 * num108); //-= + num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; //+ - + num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; //+ - + if (num79 < 0f) + { + num79 *= -1f; + } + if (num79 < 20f) + { + num79 = 20f; + } + num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); + num80 = num72 / num80; + num78 *= num80; + num79 *= num80; + float speedX6 = num78 + (float)Main.rand.Next(-60, 61) * 0.02f; + float speedY7 = num79 + (float)Main.rand.Next(-60, 61) * 0.02f; + float ai1 = (Main.rand.NextFloat() + 0.5f); + int bullet2 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX6, -speedY7, type, damage, knockBack, player.whoAmI, 0.0f, ai1); + } + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "DivineGeode", 8); + recipe.AddIngredient(null, "UndinesRetribution"); + recipe.AddIngredient(null, "UeliaceBar", 6); + recipe.AddIngredient(null, "UnholyEssence", 10); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Patreon/FaceMelter.cs b/Items/Patreon/FaceMelter.cs new file mode 100644 index 0000000000..6e49f9b371 --- /dev/null +++ b/Items/Patreon/FaceMelter.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Patreon +{ + public class FaceMelter : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Face Melter"); + Tooltip.SetDefault("Fires music notes\n" + + "Right click summons an amplifier that shoots towards your mouse\n" + + "WOOO!! FAAAAAAANTASYY WORLDDDDD!"); + } + + public override void SetDefaults() + { + item.damage = 250; + item.magic = true; + item.mana = 5; + item.width = 56; + item.height = 50; + item.useTime = 5; + item.useAnimation = 5; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 5f; + item.rare = 10; + item.GetGlobalItem(mod).postMoonLordRarity = 21; + item.value = Item.buyPrice(1, 80, 0, 0); + item.shoot = mod.ProjectileType("MelterNote1"); + item.UseSound = SoundID.Item47; + item.autoReuse = true; + item.shootSpeed = 20f; + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-15, 0); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.TheAxe); + recipe.AddIngredient(ItemID.MagicalHarp); + recipe.AddIngredient(null, "SirensSong"); + recipe.AddIngredient(null, "CosmiliteBar", 10); + recipe.AddIngredient(null, "NightmareFuel", 10); + recipe.AddIngredient(null, "EndothermicEnergy", 10); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } + + public override bool AltFunctionUse(Player player) + { + return true; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + if (player.altFunctionUse == 2) + { + position = Main.MouseWorld; + speedX = 0; + speedY = 0; + item.useTime = 20; + item.useAnimation = 20; + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("MelterAmp"), damage, knockBack, player.whoAmI); + return false; + } + else + { + item.useTime = 5; + item.useAnimation = 5; + float SpeedX = speedX; + float SpeedY = speedY; + int note = Main.rand.Next(0, 2); + if (note == 0) + { + damage = (int)(damage * 1.5f); + type = mod.ProjectileType("MelterNote1"); + } + else + { + SpeedX *= 1.5f; + SpeedY *= 1.5f; + type = mod.ProjectileType("MelterNote2"); + } + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + } + } +} \ No newline at end of file diff --git a/Items/Patreon/FaceMelter.png b/Items/Patreon/FaceMelter.png new file mode 100644 index 0000000000000000000000000000000000000000..ed88f45965bd377c897883d35909b4b5ed37cbbc GIT binary patch literal 996 zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D19?eAK~!i%?V4Rk zQ(+j#&pw*7EsZRyrM1YWrdvS-iC#nz?V^hch7t5}5nYzlZmf%Z%Y*f^LLv zBIqXQA~C3oENW$unluVD)O|G9);jP1-LpI|oY>~X~{tMD6&UM93sEEb8o)5(}+L|20BdD7B)W8d+<$NG#MO z)=JboEwRv=bX6m$4eI6|_b)iz@cyTL@En=NPEIBsMLyqT^w&pd!kx0F;G?NYka9SeAty5L2SV`h@MpMI$moYi z)^l>NTMxHbIiYka2{JBsJ@QSPo8Vd_qhBH~8&j#sln)V7zGTD+;Fiq=f0pf2eG}vGCW{q6JCx>q zYqn&{j|fSP3{3#l%ehaEaU%Xq6`Y-EX6i~T0{7bNSi^*wFJ&~rr|&`ul`j!eOKk(Z z%C#CE{xPB;b3Awf{-J*q?tI=07s-gVQ!F8ah;E z@>%TqrAKga7bD%Z@h2=kd8!#v^mQ~L7(_%7nTA$=+hTHV0GYFwJCKw1`}e_VChH2v z;bKkDE=Ho7P?JGKO?%r9!^gf1DEiBxz;5{MJxAc;?>-R_pM0IY5^Id7)5z&$Das(C zCaRTM-&VMDWwWAIKJGjSCsA!2eaBCV4vPhAie(9qjOll_5^II}iudXn_K1x1t-!$0M(h7b@Klne#UylR&VO9Sb(q z(qubRtYfQn?R;bq$yaRmVZqMWELgu_!OjzOrYMDsU8_)0Uzw}_X4MH1N%{+D+qpA0 SasW2~0000(mod).postMoonLordRarity = 21; + + item.shoot = mod.ProjectileType("HandheldTankShell"); + item.shootSpeed = 6f; + item.useAmmo = AmmoID.Rocket; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("HandheldTankShell"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-33, 0); + } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.AddIngredient(null, "Shroomer"); + r.AddIngredient(ItemID.IronBar, 50); + r.anyIronBar = true; + r.AddIngredient(null, "DivineGeode", 5); + r.AddIngredient(ItemID.TigerSkin); + r.AddTile(TileID.LunarCraftingStation); + r.SetResult(this); + r.AddRecipe(); + } + } +} diff --git a/Items/Patreon/HandheldTank.png b/Items/Patreon/HandheldTank.png new file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4YGKzPu(jrrQ=83dsYHo9&`>Ipl8t5ZrrtoEx7Hg=+O>>$W zBY=Va>R>E`RGD@^^*#-dm2TIO*k1xv<^_u51uDCQFC+T}h8v}jquGsPz5H{0? zjMaU$j%c&Zsrpq|Zd^tg|IG;i)27E8cy8Xfk!oL@U5B&A*zuk(OSRdj*7HJU+PTxv zx}mM7m}{3~+j8M7Sk(v6HnRXpe zW>&60?e@c(sF@J`o~+sH$tO21qg3qyPyM}LsiZ$T``SVV3OjzY=2bLur!NxRQH;%gYs!tZVaTz7@{XZx5V!ybxJ4=O~p;5LdtU1<5OK8=?SI@@Crb4`@ zKyQ+%l0Ev!jmsz#W}L+uID2-y609$#E&Bda``@gIJ`!S7DiXfXo>Jqq5V>&~r7EkO zD5}PXL&@XAS&a_@Fj9_pzu2tw|H8(!tdSd+QT_$k^z|WKJ;bO00000(mod).postMoonLordRarity = 21; + item.value = Item.buyPrice(0, 80, 0, 0); + item.shoot = mod.ProjectileType("KeelhaulBubble"); + item.shootSpeed = 15f; + } + } +} diff --git a/Items/Patreon/Keelhaul.png b/Items/Patreon/Keelhaul.png new file mode 100644 index 0000000000000000000000000000000000000000..02b6e2f6b8d9d131684d760cf15a56080777b487 GIT binary patch literal 1034 zcmV+l1oiugP)AQ?hLL75Oy^rIw>QIJ#9SfUAbTb%nkopGj8%(&CL znYs6#b7pwvJ@5IxahM>js;t#pH`nuUilB%LyMq9H9eNAE{_EEOXnAPv4>VnI0lL3E03bNK+5t%Swz&X{KACkY z4qpObOU*O@&h6X<_=u=8UXrEZl>qdoo*5#cx}4*8T-;+_-#TNw`KIkC09Dne0T_OL z&l;~^;$=fUP>4kHkra__N8;A_8+$GSP_%Rt0D;;C*7J2uy8(E-?}~MQpvk`Oi}X2A z$VBmSQY5oUX}3!9q&#@y*b4wY-Tq*WJHMt0fT32C8uDq=isR0L|Xt>7(sGAuE zV9T*3);cYxIsmxG4(tB(ea53o4dt-!a`cZq`n0PRfK{1W)~_*(j{tn}uGg*)z}%r?7e*6pf0PEGxi1Ak^pMHhY)?w6 zq6)trm6QUJh}ZL^?z;d-H!lW86O@8;&56_XKH);96Ocr7Bj@tFP#z6iPXR_oQ zqCWt;C`)Ko^jF&e000tnMObu2SV=}YPjYExZggREX>V=-F@#v`?*IS*07*qoM6N<$ Ef^KQ&6aWAK literal 0 HcmV?d00001 diff --git a/Items/Patreon/LightGodsBrilliance.cs b/Items/Patreon/LightGodsBrilliance.cs index 1a95c92c05..1b414ee78e 100644 --- a/Items/Patreon/LightGodsBrilliance.cs +++ b/Items/Patreon/LightGodsBrilliance.cs @@ -1,86 +1,76 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Patreon -{ - public class LightGodsBrilliance : ModItem - { - - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Light God's Brilliance"); - Tooltip.SetDefault("Casts small, homing light beads along with explosive light balls"); - } - - public override void SetDefaults() - { - item.damage = 100; - item.magic = true; - item.mana = 4; - item.width = 34; - item.height = 36; - item.useTime = 3; - item.useAnimation = 3; - item.useStyle = 5; - item.noMelee = true; - item.knockBack = 3f; - item.value = Item.buyPrice(1, 80, 0, 0); - item.rare = 10; - item.UseSound = SoundID.Item9; - item.autoReuse = true; - item.shoot = mod.ProjectileType("LightBead"); - item.shootSpeed = 25f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(139, 0, 0); - } - } - } - - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) - { - int num6 = Main.rand.Next(2, 5); - for (int index = 0; index < num6; ++index) - { - float num7 = speedX; - float num8 = speedY; - float SpeedX = speedX + (float) Main.rand.Next(-50, 51) * 0.05f; - float SpeedY = speedY + (float) Main.rand.Next(-50, 51) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)((double)damage), knockBack, player.whoAmI, 0.0f, 0.0f); - } - if (Main.rand.Next(3) == 0) - { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("LightBall"), (int)((double)damage * 2.0), knockBack, player.whoAmI, 0.0f, 0.0f); - } - - return false; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "ShadecrystalTome"); - recipe.AddIngredient(null, "AbyssalTome"); - recipe.AddIngredient(ItemID.HolyWater, 10); - recipe.AddIngredient(null, "EndothermicEnergy", 5); - recipe.AddIngredient(null, "NightmareFuel", 5); - recipe.AddIngredient(ItemID.SoulofLight, 30); - recipe.AddIngredient(null, "EffulgentFeather", 5); - recipe.AddTile(TileID.Bookcases); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Patreon +{ + public class LightGodsBrilliance : ModItem + { + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Light God's Brilliance"); + Tooltip.SetDefault("Casts small, homing light beads along with explosive light balls"); + } + + public override void SetDefaults() + { + item.damage = 100; + item.magic = true; + item.mana = 4; + item.width = 34; + item.height = 36; + item.useTime = 3; + item.useAnimation = 3; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 3f; + item.value = Item.buyPrice(1, 80, 0, 0); + item.rare = 10; + item.UseSound = SoundID.Item9; + item.autoReuse = true; + item.shoot = mod.ProjectileType("LightBead"); + item.shootSpeed = 25f; + item.GetGlobalItem(mod).postMoonLordRarity = 21; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + int num6 = Main.rand.Next(2, 5); + for (int index = 0; index < num6; ++index) + { + float num7 = speedX; + float num8 = speedY; + float SpeedX = speedX + (float) Main.rand.Next(-50, 51) * 0.05f; + float SpeedY = speedY + (float) Main.rand.Next(-50, 51) * 0.05f; + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)((double)damage), knockBack, player.whoAmI, 0.0f, 0.0f); + } + if (Main.rand.Next(3) == 0) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("LightBall"), (int)((double)damage * 2.0), knockBack, player.whoAmI, 0.0f, 0.0f); + } + + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "ShadecrystalTome"); + recipe.AddIngredient(null, "AbyssalTome"); + recipe.AddIngredient(ItemID.HolyWater, 10); + recipe.AddIngredient(null, "EndothermicEnergy", 5); + recipe.AddIngredient(null, "NightmareFuel", 5); + recipe.AddIngredient(ItemID.SoulofLight, 30); + recipe.AddIngredient(null, "EffulgentFeather", 5); + recipe.AddTile(TileID.Bookcases); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Patreon/NormalityRelocator.cs b/Items/Patreon/NormalityRelocator.cs new file mode 100644 index 0000000000..50b5a299ed --- /dev/null +++ b/Items/Patreon/NormalityRelocator.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.NPCs; + +namespace CalamityMod.Items.Patreon +{ + public class NormalityRelocator : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Normality Relocator"); + Tooltip.SetDefault("I'll be there in the blink of an eye\n" + + "Press Z to teleport to the position of the mouse\n" + + "Boosts movement and fall speed by 10%\n" + + "Works while in the inventory"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 7)); + } + + public override void SetDefaults() + { + item.width = 38; + item.height = 38; + item.value = Item.buyPrice(1, 20, 0, 0); + item.rare = 10; + item.GetGlobalItem(mod).postMoonLordRarity = 21; + } + + public override void UpdateInventory(Player player) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.normalityRelocator = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.RodofDiscord); + recipe.AddIngredient(ItemID.FragmentStardust, 30); + recipe.AddIngredient(null, "ExodiumClusterOre", 10); + recipe.AddIngredient(null, "Cinderplate", 5); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Patreon/NormalityRelocator.png b/Items/Patreon/NormalityRelocator.png new file mode 100644 index 0000000000000000000000000000000000000000..d856aea2206817113e206936dd0546109d711fb9 GIT binary patch literal 1872 zcmV-W2e0^vP)Px+3Q0skRCt{2ok3_^MHt8bTPhI|si)AQEh0VSU=^{|f{1Ba5NZ!L;5C*W#9GlF zgb>hBg^*i3M1!YV)RQJ2Y(X$>ikDgi(SYO-L|VntQ>&C>Dfm2O|GRl#_Up{N_mZ7A z`~5E4_wshL`SqJ`=gl{>0~ld6k(0HFW+iq31VA?@p~+~CHTt&=W&rT!+b;uHYewSw96Yh*-n;&M>c+nv&);77 z0RZshho=D4!I;Lbf$bg7FD_ll9S=8jH}18C&l2CM>eB1RyqCK1~XS5&xhVI);o;NUC88Ee>brhGkO-QC4~}QEh+lmMddx%vg7-# zET?O%s#=mHJ!4i&^2KUNt_!S|B(PdiC{{}f#cD~RSS=|Ot0jeEwWLt2mK2KBl0vas zQYiMux{lS748t%Yr}A17=WURp^EaZ+{FU{`XzI=@BLLcC7ez_m7~%NXbjjCA*BI-R zawL+mHqjhw4Q-w28KWtVAWF){S~|uwQ?0!9)~f)3$*;Zx0E{+|5g2RrH74g#sHPN( znv361ytn zb7*aZqKUPP|loey+uutbc_*cPRn;iNzWK*n_FqE{bgUUNxH@)%wJ`R)|kDqu5(~$ zBy;ugeCQoxhG7^ROy#wtQ|B(`vi^~wz1HXN2u%&|TbY43d;Zd0uXhoxF?(a7l#Vg3 zRlD-!dmMk88d&MYkFgV7ARy7+VMnAJD7I<{6h(&+l8@%kE* z(4c0H#u#HX75ZK5(HaZxkFm-x&B@kV)D%g_7?I}SSjienddA2abExJXAYEe;ZB=t9 z(HgTi)^#SPW-{3$DMIfUGYrGnU@EI6aUU8v_VGYtQ(Arg%8dP!{nzpHF*#$Ud$6nb zII5ELjQN^k?1jc!w8ny4j5HNGX6tLN{>I9hlDN#(&zRQgs;&cQ=HfTDQHEU5V6?_I zv+CCE8WQ3ET)f8k53RPNt?ZJOj?mczu5q+zjX5*Ft0pc@YvwdVau-HYUt`4AoIEd0 zX@(^AH%2sba%M_VQzRW@M4FTHGiWT-6p7YY;kzVRhinxr`Kwx0BZ)ST75?iqQ`&isN!0!>sc;XLvo&d;XVxVJ8!K8n;@#7@=k@hB zCQUK6eAgur-`Y}rjk!$ujwI3$jk(OlZ%k%v88a?Z>bfKmYrf{-`E^N^ zujJB5<{LsP$JQkohOxmE?!m4%(dIGlxz@ft&)(ZFsjMmA{gPbOxcH5+^_Bgeisbi8 zDxH(KKMD6Ek+VD*YqE99wQ}_t=P&xivil`z6%v|G$5_?-CDph3reXUf32eWlP#T90 z4rc)H*wHrt*nUY)TE;XUeq?9I^MCxloIBpTe?I`*FA0!FX@*>!pU)kCe&!1RwqH^k z8q~}^_1UKYY`>&7U!R@L?fOG=vh~`2NfK#J%XdYokFn6P2byDRExKQl99621G5IZj zeDoc)3EeMA8-J^hF|zji5!V+vRuZkT$~km!ICJ&!eCQox$@4!WeNdj3YBG!f0000< KMNUMnLSTX*1+FXr literal 0 HcmV?d00001 diff --git a/Items/Patreon/ProfanedSoulArtifact.cs b/Items/Patreon/ProfanedSoulArtifact.cs index 7d0e1c73c8..ccad5441ae 100644 --- a/Items/Patreon/ProfanedSoulArtifact.cs +++ b/Items/Patreon/ProfanedSoulArtifact.cs @@ -1,63 +1,53 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.NPCs; - -namespace CalamityMod.Items.Patreon -{ - public class ProfanedSoulArtifact : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Profaned Soul Artifact"); - Tooltip.SetDefault("Profanation\n" + //idk what tooltip haha - "Summons a healer guardian which heals for a certain amount of health every few seconds\n" + - "Summons a defensive guardian if you have at least 8 minion slots, which boosts your movement speed and your damage resistance\n" + - "Summons an offensive guardian if you are wearing the tarragon summon set (or stronger), which boosts your summon damage and your minion slots\n" + - "If you get hit their effects will disappear for 5 seconds"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); - } - - public override void SetDefaults() - { - item.width = 32; - item.height = 40; - item.value = Item.buyPrice(1, 40, 0, 0); - item.rare = 10; - item.accessory = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(139, 0, 0); - } - } - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.GetModPlayer(mod); - modPlayer.pArtifact = true; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "Cinderplate", 5); - recipe.AddIngredient(null, "CoreofCinder"); - recipe.AddIngredient(null, "DivineGeode", 5); - recipe.AddIngredient(null, "ExodiumClusterOre", 15); - recipe.AddTile(TileID.DemonAltar); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.NPCs; + +namespace CalamityMod.Items.Patreon +{ + public class ProfanedSoulArtifact : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Profaned Soul Artifact"); + Tooltip.SetDefault("Profanation\n" + //idk what tooltip haha + "Summons a healer guardian which heals for a certain amount of health every few seconds\n" + + "Summons a defensive guardian if you have at least 8 minion slots, which boosts your movement speed and your damage resistance\n" + + "Summons an offensive guardian if you are wearing the tarragon summon set (or stronger), which boosts your summon damage and your minion slots\n" + + "If you get hit their effects will disappear for 5 seconds"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); + } + + public override void SetDefaults() + { + item.width = 32; + item.height = 40; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 10; + item.accessory = true; + item.GetGlobalItem(mod).postMoonLordRarity = 21; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.pArtifact = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "Cinderplate", 5); + recipe.AddIngredient(null, "CoreofCinder"); + recipe.AddIngredient(null, "DivineGeode", 5); + recipe.AddIngredient(null, "ExodiumClusterOre", 15); + recipe.AddTile(TileID.DemonAltar); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Patreon/ThePack.cs b/Items/Patreon/ThePack.cs new file mode 100644 index 0000000000..c51ddf1192 --- /dev/null +++ b/Items/Patreon/ThePack.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Patreon +{ + public class ThePack : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("The Pack"); + Tooltip.SetDefault("Fires large homing rockets that explode into more homing mini rockets when in proximity to an enemy"); + } + + public override void SetDefaults() + { + item.damage = 3000; + item.crit += 10; + item.ranged = true; + item.width = 142; + item.height = 62; + item.useTime = 50; + item.useAnimation = 50; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 7.5f; + item.value = Item.buyPrice(1, 80, 0, 0); + item.rare = 10; + item.GetGlobalItem(mod).postMoonLordRarity = 21; + item.UseSound = SoundID.Item11; + item.autoReuse = true; + item.shootSpeed = 24f; + item.shoot = mod.ProjectileType("ThePackMissile"); + item.useAmmo = 771; + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-70, 0); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ThePackMissile"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "Scorpion"); + recipe.AddIngredient(ItemID.MarbleBlock, 50); + recipe.AddIngredient(null, "CosmiliteBar", 10); + recipe.AddIngredient(null, "ArmoredShell", 4); + recipe.AddTile(null, "DraedonsForge"); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Patreon/ThePack.png b/Items/Patreon/ThePack.png new file mode 100644 index 0000000000000000000000000000000000000000..00a6cffcc3b3b205d1a9a0ac38e0c0e655f48a19 GIT binary patch literal 762 zcmVUeYc(za00000 z02zlt=l}o!6LeBeQvm<}|NsC0|NsC0|NsC0|NsC0K0n+o0007ANklHmN1F^+4@HRGy^vC*kA`g{!_tq0RSC z!I3-D_o9YT*nSdD&i$yA;#Dd2H^I5uAq-a$6z?HC3CI;r&RrKHfgrSE?7EcTIHhh> z-`4?qS~|PJ0Sw$BNZnNkTHnuc&|@Ajh3&y*(G^b4OkcVe4)NeV1hmx00>(5~I(r%U1t2gaFT`;71f z1f^_@Z9f9GTTUT@?!e_#veb0hg5QF6rM~Q5U z02C>N;T{Z*LU}{$G)czMXBhDLK8}{F97rB<)`GPq^sIXW0;hr#65e_$m$qcdAC3k( z3-xcMfldcX%jJn++mC#PK zT$RDF%uEE%aJI#vsDg#CViJI0R!h;o5f||xq*O1&==$JV*%=NFyj;$cE|)qTTbI05 zHYk(b7VpMzietAj(7BOKhUStefN2N!Aq2-b1nO=Q1cgAhF7*IvDbVkSQv=DU+`$o- zDBN4ZmM9N<+~f?W1QJf|P7edh0NJ-%;Jqh~4R{!rTa`s?m3wP(Y4)Bt0nbwT;cp(IGHE^ sGP+03aO}qB)f_iD!*TJygHkol4_9T(t&fctrvLx|07*qoM6N<$f?Xb5Z~y=R literal 0 HcmV?d00001 diff --git a/Items/Perforator/BloodSample.cs b/Items/Perforator/BloodSample.cs index 4078ca4772..47a9cba72f 100644 --- a/Items/Perforator/BloodSample.cs +++ b/Items/Perforator/BloodSample.cs @@ -7,21 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.Perforator { -public class BloodSample : ModItem +namespace CalamityMod.Items.Perforator { - public override void SetStaticDefaults() + public class BloodSample : ModItem { - DisplayName.SetDefault("Blood Sample"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Blood Sample"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 22; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 50, 0); + item.rare = 2; + } } - - public override void SetDefaults() - { - item.width = 16; - item.height = 22; - item.scale = 0.5f; - item.maxStack = 999; - item.value = 2500; - item.rare = 2; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Perforator/BloodyWormTooth.cs b/Items/Perforator/BloodyWormTooth.cs index 7b04957cd5..7be0cf257d 100644 --- a/Items/Perforator/BloodyWormTooth.cs +++ b/Items/Perforator/BloodyWormTooth.cs @@ -29,18 +29,8 @@ namespace CalamityMod.Items.Perforator public override void UpdateAccessory(Player player, bool hideVisual) { - if (player.statLife < (int)((double)player.statLifeMax2 * 0.5)) - { - player.meleeDamage += 0.1f; - player.meleeSpeed += 0.1f; - player.endurance += 0.1f; - } - else - { - player.meleeDamage += 0.05f; - player.meleeSpeed += 0.05f; - player.endurance += 0.05f; - } + CalamityPlayer modPlayer = player.GetModPlayer(mod); + modPlayer.bloodyWormTooth = true; } } } \ No newline at end of file diff --git a/Items/Perforator/PerforatorBag.cs b/Items/Perforator/PerforatorBag.cs index 72f869a800..97ceac0fab 100644 --- a/Items/Perforator/PerforatorBag.cs +++ b/Items/Perforator/PerforatorBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Perforator public class PerforatorBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,6 +30,24 @@ namespace CalamityMod.Items.Perforator public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } if (Main.rand.Next(7) == 0) { player.QuickSpawnItem(mod.ItemType("PerforatorMask")); @@ -70,10 +88,10 @@ namespace CalamityMod.Items.Perforator player.QuickSpawnItem(ItemID.Vertebrae, Main.rand.Next(10, 21)); player.QuickSpawnItem(ItemID.CrimtaneBar, Main.rand.Next(9, 15)); player.QuickSpawnItem(mod.ItemType("BloodSample"), Main.rand.Next(30, 41)); - if (Main.hardMode) - { - player.QuickSpawnItem(ItemID.Ichor, Main.rand.Next(15, 31)); - } + if (Main.hardMode) + { + player.QuickSpawnItem(ItemID.Ichor, Main.rand.Next(15, 31)); + } } } } \ No newline at end of file diff --git a/Items/Permafrost/ArcticBearPaw.cs b/Items/Permafrost/ArcticBearPaw.cs index f8e04bf3a6..98d907b334 100644 --- a/Items/Permafrost/ArcticBearPaw.cs +++ b/Items/Permafrost/ArcticBearPaw.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Permafrost } public override void SetDefaults() { - item.damage = 77; + item.damage = 70; item.magic = true; item.mana = 18; item.width = 34; diff --git a/Items/Permafrost/Popo.cs b/Items/Permafrost/Popo.cs index 600164b6e5..bf38d0b79b 100644 --- a/Items/Permafrost/Popo.cs +++ b/Items/Permafrost/Popo.cs @@ -1,66 +1,66 @@ -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Permafrost -{ - public class Popo : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Magic Scarf and Hat"); - Tooltip.SetDefault("Transforms the holder into a snowman\n" + - "Don't let the demons steal your nose"); - } - - public override void SetDefaults() - { - item.width = 26; - item.height = 30; - item.accessory = true; - item.value = 1000000; - item.rare = 5; - } - - public override void UpdateAccessory(Player player, bool hideVisual) - { - CalamityPlayer modPlayer = player.GetModPlayer(); - modPlayer.snowman = true; - if (hideVisual) - { - modPlayer.snowmanHide = true; - } - } - } - - public class PopoHead : EquipTexture - { - public override bool DrawHead() - { - return false; - } - } - - public class PopoNoselessHead : EquipTexture - { - public override bool DrawHead() - { - return false; - } - } - - public class PopoBody : EquipTexture - { - public override bool DrawBody() - { - return false; - } - } - - public class PopoLegs : EquipTexture - { - public override bool DrawLegs() - { - return false; - } - } +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Permafrost +{ + public class Popo : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Magic Scarf and Hat"); + Tooltip.SetDefault("Transforms the holder into a snowman\n" + + "Don't let the demons steal your nose"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 30; + item.accessory = true; + item.value = 1000000; + item.rare = 5; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(); + modPlayer.snowman = true; + if (hideVisual) + { + modPlayer.snowmanHide = true; + } + } + } + + public class PopoHead : EquipTexture + { + public override bool DrawHead() + { + return false; + } + } + + public class PopoNoselessHead : EquipTexture + { + public override bool DrawHead() + { + return false; + } + } + + public class PopoBody : EquipTexture + { + public override bool DrawBody() + { + return false; + } + } + + public class PopoLegs : EquipTexture + { + public override bool DrawLegs() + { + return false; + } + } } \ No newline at end of file diff --git a/Items/PhantomHeart.cs b/Items/PhantomHeart.cs index 91004871fe..692702bb74 100644 --- a/Items/PhantomHeart.cs +++ b/Items/PhantomHeart.cs @@ -27,19 +27,9 @@ namespace CalamityMod.Items item.useStyle = 4; item.UseSound = SoundID.Item29; item.consumable = true; + item.GetGlobalItem(mod).postMoonLordRarity = 13; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - public override bool CanUseItem(Player player) { CalamityPlayer modPlayer = player.GetModPlayer(mod); diff --git a/Items/PhantomHeart.png b/Items/PhantomHeart.png index fe6f71ebfda376d1a384f4b170317bb7db548ae9..62dccdd13fee632f18fa8e8f6c5692acff259f70 100644 GIT binary patch literal 717 zcmV;;0y6!HP)>^60007%NklK*AcFRaa4GBsOTpg4Krnp-@ddO>BMMfQ7M4~P@daXT zGv6ec+UQk8%Lt$ zdt}opJXqW9WgnDUJMB8|2+dn1Mg2@^UQFxhrjq%gM8AH29{jz%i!iUAH+jTY9zu{n z;fRQ_Cdw<<$AQGyV86pU)=!^tzQ;cyGENtlf{55NXB?&0>N@*7VW`o*9SdQ6%-Qew zC-nUJI!Iaw*gh&zq(l_D{%W%=x2aAVMI!$NJ?BabiC6 zBDQ>lB0`34$V5o7i@4o~6Z2c{2<84BAI+VUn>&Z|$DTVn$GjOri220fXIJAdA0aZ2 zk|F?WYKmP35yG&4hY*S^Dg0VnIE=NVEE&Sx)zFXs$EeEWmo2*o0w^saMx3?fCxoIH zDaI`^{6*Fsp~928NRb_97g|4kC5yvYcZ9wGXh$e;c=may00000NkvXXu0mjfN3u`I literal 684 zcmV;d0#p5oP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E-^DS16z6k00JCIL_t(&L+zA7N&`U&yGm ztgY;Dig1JX4)}I*wvM*#6(EnduSIii<$tH{02OHc^6~4Nhtcc<^8WNSI>HS;K0pV$ zxcapLIbZ?`pn}Ff&R~F9TkL!-1`tocuw8&U1p|b&I%Y&0MlNkA!VNwYpo&HZ5JO$PP`h9hE{ zXuuvI!JO|6&;uB#L23!8^--s`__}DQ1-Y$mZXb1Oi_b-27QhqgzT5g@=s2%ZXYqCU zKpUWgy9NAy{@ii~%IC(<1;ppupM$l<*X09x1N24-#02vJ29$jaSiH<&fSSS3ascIN z)qnu1VA;OUJsv=H0;uLZUTUK4$!0O#fvxprtyVw%N0`(M S7Pwyk0000(mod).postMoonLordRarity = 13; + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, 0); + } } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - - public override Color? GetAlpha(Color lightColor) - { - return new Color(200, 200, 200, 0); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Placeables/AbyssBath.cs b/Items/Placeables/AbyssBath.cs index f338ef95b1..958b429c9e 100644 --- a/Items/Placeables/AbyssBath.cs +++ b/Items/Placeables/AbyssBath.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Placeables { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "SmoothAbyssGravel", 14); - recipe.SetResult(this, 1); + recipe.SetResult(this); recipe.AddTile(null, "VoidCondenser"); recipe.AddRecipe(); } diff --git a/Items/Placeables/AbyssGravel.cs b/Items/Placeables/AbyssGravel.cs index ac52f5e258..8323c6400a 100644 --- a/Items/Placeables/AbyssGravel.cs +++ b/Items/Placeables/AbyssGravel.cs @@ -28,8 +28,6 @@ namespace CalamityMod.Items.Placeables item.width = 13; item.height = 10; item.maxStack = 999; - item.value = 1000; - item.rare = 0; } } } \ No newline at end of file diff --git a/Items/Placeables/AerialiteOre.cs b/Items/Placeables/AerialiteOre.cs index d93f43ac46..36c232fbc3 100644 --- a/Items/Placeables/AerialiteOre.cs +++ b/Items/Placeables/AerialiteOre.cs @@ -28,8 +28,8 @@ namespace CalamityMod.Items.Placeables item.width = 13; item.height = 10; item.maxStack = 999; - item.value = 3750; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 3; } } } \ No newline at end of file diff --git a/Items/Placeables/AstralBar.cs b/Items/Placeables/AstralBar.cs index 531cc98a8e..c6a5908c2c 100644 --- a/Items/Placeables/AstralBar.cs +++ b/Items/Placeables/AstralBar.cs @@ -29,7 +29,8 @@ namespace CalamityMod.Items.Placeables item.height = 16; item.maxStack = 99; item.rare = 7; - } + item.value = Item.buyPrice(0, 4, 50, 0); + } public override void AddRecipes() { diff --git a/Items/Placeables/AstralChest.cs b/Items/Placeables/AstralChest.cs new file mode 100644 index 0000000000..c67b8789e8 --- /dev/null +++ b/Items/Placeables/AstralChest.cs @@ -0,0 +1,27 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class AstralChest : ModItem + { + public override void SetStaticDefaults() + { + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 22; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = 500; + item.createTile = mod.TileType("AstralChestLocked"); + } + } +} \ No newline at end of file diff --git a/Items/Placeables/AstralChest.png b/Items/Placeables/AstralChest.png new file mode 100644 index 0000000000000000000000000000000000000000..5d4ffcc928df38c990390df18526c885fd5c01d7 GIT binary patch literal 806 zcmV+>1KIqEP)09oE_ z07|F=;EnlW-(pw`&ny!m5rqU zgv@nSO;f@^MdmYPDpP5$hfDm)_1~U>v|Vn^-XG|}{Eh+O%yI&DP$0vjDtIMT&Fi_*Q2@qYjR5gJ zfLopFiyhq?1`H2Kr&Col6j1Rb=i5qEyo_~q&q%rgzsv%eirGFrhcXkq<@idYco}O3J({-~|v&-F6ree|+aHM9g zX?MaEvm*+u{XlZ;wJ0DvmNO#${+de~PpToeqReK~@Q8UEmK|6jolGDdPhjnkR^R literal 0 HcmV?d00001 diff --git a/Items/Placeables/AstralOre.cs b/Items/Placeables/AstralOre.cs index 3897f6aa3d..277fb7aa47 100644 --- a/Items/Placeables/AstralOre.cs +++ b/Items/Placeables/AstralOre.cs @@ -26,9 +26,9 @@ namespace CalamityMod.Items.Placeables item.consumable = true; item.width = 20; item.height = 20; - item.maxStack = 999; - item.value = 3750; - item.rare = 7; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 7; } } } \ No newline at end of file diff --git a/Items/Placeables/AuricOre.cs b/Items/Placeables/AuricOre.cs index 927d847f73..3b0c39ee06 100644 --- a/Items/Placeables/AuricOre.cs +++ b/Items/Placeables/AuricOre.cs @@ -28,18 +28,8 @@ namespace CalamityMod.Items.Placeables item.width = 10; item.height = 10; item.maxStack = 999; - item.value = 50000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.value = Item.buyPrice(0, 0, 10, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } } } \ No newline at end of file diff --git a/Items/Placeables/Banners/AeroSlimeBanner.cs b/Items/Placeables/Banners/AeroSlimeBanner.cs new file mode 100644 index 0000000000..d7335f6d3f --- /dev/null +++ b/Items/Placeables/Banners/AeroSlimeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AeroSlimeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 90; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AeroSlimeBanner.png b/Items/Placeables/Banners/AeroSlimeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..319d6776a4934a0a760a1ae3e8f64c08732fbb8a GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsUA-k#}EtuBAX^yN0%cI-1SaU8-%$y#Ov*F|==FjHa&oW-_ zNy!c{{=`0e!8^sSq{C-r*B|^7{oHKPEr%^^UlL;XE)hA}c40=|pM@>~%s1z$Sw?hz xGdbhwk}bijnj~~TLt~<_*A6fHP2P44%-;{{9xA^g3v?HQr>mdKI;Vst1_0%aN+$pS literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/AmberCrawlerBanner.cs b/Items/Placeables/Banners/AmberCrawlerBanner.cs new file mode 100644 index 0000000000..5f165e9209 --- /dev/null +++ b/Items/Placeables/Banners/AmberCrawlerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AmberCrawlerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 72; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AmberCrawlerBanner.png b/Items/Placeables/Banners/AmberCrawlerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..a382b8f34071e8acfa4845e4dd08bb9f5e38cb7a GIT binary patch literal 312 zcmV-80muG{P)f00030Nkl3O>$USp(K!_tzIV3VSI%)vCwMw~VftwDp~EsDu7jj*7)!61z42a+|w!XIWL zy4zvm7@rt=&p>CwlMqvOLRnQfQ1gsWP&kGv<8?H zU}**xyf{ONWDPKr{(D5BoDZ9!R*uK#U6{2m0q- zgrruAHRN~xLa||DIU9Z(2x@>C2Xh*V@kpFoH!pz`7ra~|Rs#Ua4ATc&9g@rd0000< KMNUMnLSTaRfq-NH literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/AmethystCrawlerBanner.cs b/Items/Placeables/Banners/AmethystCrawlerBanner.cs new file mode 100644 index 0000000000..00adb22d79 --- /dev/null +++ b/Items/Placeables/Banners/AmethystCrawlerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AmethystCrawlerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 66; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AmethystCrawlerBanner.png b/Items/Placeables/Banners/AmethystCrawlerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..12513547aaa777fe89089a03861dfb90d95fe625 GIT binary patch literal 306 zcmV-20nPr2P)f0002^NklQdsD*XpfaT#fkgNgb*8ZYmlz4#g zF>D}N1I(?kc!-OJ_z4CuY@nJ3n2oSt#u*PVClS;DOQqtCoRH+ID3Piiuu2Az*%DTNEU$)00000NkvXXu0mjf E0AJF6p8x;= literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/AngryDogBanner.cs b/Items/Placeables/Banners/AngryDogBanner.cs new file mode 100644 index 0000000000..6dbd070e22 --- /dev/null +++ b/Items/Placeables/Banners/AngryDogBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AngryDogBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 59; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AngryDogBanner.png b/Items/Placeables/Banners/AngryDogBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..b8cfc63af3a8f5af94115d6cd856cbc9d689b0f9 GIT binary patch literal 297 zcmV+^0oMMBP)f0002)NklrvETDHhS&eI!2H;r6ww`29e#1_c3#1;5{Y2GdWO zc=6jnw1)cs$H68o4+=r?L*%+OV16T`C2A;zBDzFJ`#VKH#RS4qtuhsn!znFxf z+CZ`fMSDIJx1)3JAN+)B1IZc$l_53=$e^12;R%HQ{w|sgBx``BCGJO%7>0qbas*f0002!Nklh|EXffF#J);NR^IHh5#{PB0C#38xJNHNcz#Q+WOKN3hAaR-M3Z z!ywimr=`&AtvAW1hEk#reX0w zvIey<3zYOrFs2D=fH?&goQ8>V=vf3M)iRQ;p=(_R*rcO(?}O>Eom0T{D)$`hHju5M zENBMUM40DOA`HNMm^j=IFdK;005eh36p~6|c^N&c!fha111u6?F%09w(-JHmaK$i& p2ABYP0fw#+#)p?n#A*Nl>{ZMCA}*Ew00000NkvXXu0mjf003#pbHo4u literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/AquaticParasiteBanner.cs b/Items/Placeables/Banners/AquaticParasiteBanner.cs new file mode 100644 index 0000000000..6df33a6440 --- /dev/null +++ b/Items/Placeables/Banners/AquaticParasiteBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AquaticParasiteBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 0; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AquaticParasiteBanner.png b/Items/Placeables/Banners/AquaticParasiteBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..6867326e6e767ffe52a48d875f900e9f1ae96560 GIT binary patch literal 321 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5wFfg)vx;Tbd_$Q}0Fh?2f`#-UD zo$bvt9cSDhHmG!5V+hu`zqB>!`Qc6333g}HcJR7nH)yVjUCnH^vT`y@7w^_OeT7E{ z!w;A!-;_!?b|@#R?x{zJ0~YZk85kjW{Ez3&ARU`%_nbocc@F7t>52cA4M6Ijj2kbL68UN!b_uE3CC O@O1TaS?83{!~g&rGldZV literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/AquaticSeekerBanner.cs b/Items/Placeables/Banners/AquaticSeekerBanner.cs new file mode 100644 index 0000000000..ea3aee661b --- /dev/null +++ b/Items/Placeables/Banners/AquaticSeekerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AquaticSeekerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 6; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AquaticSeekerBanner.png b/Items/Placeables/Banners/AquaticSeekerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..fcf4dfd28412c9c6b958119f1a820cffc67a3ef1 GIT binary patch literal 312 zcmV-80muG{P)f0002}Nklf0002XNklG0o}8U?*0Rt`0%O}nErQY4@zh;lB@w16zHCQ zvlwF2=Px%0atv${DP5M ziPnIgC1Dz2ISf00039Nkl*9X^WU z2R~bDFn`Xp31FI$Yz<<%reG5~XLh03P@Y}}=D)gp8r24pHNgB}9pjH;!_g%h@%w>j z4e~PbV3VS<{7`IIHfz20bLw!1JN2_#=$&~VmuP(+}^q1A_-nD5vu_J(S^oY TogNaP00000NkvXXu0mjfaf0002SNkl zDH}|~Z6H|#%vh)VC=?s^OgcmE5RhQ$v&l8DxT z9&sDyMWVPlAZa;%KM<_}=Gi=dYZMbFZ9EF*!$J!lNz}Yk*}@Sl)$MgD#Gdr-{}8Gm+{g9{|`8!~Z*mH6;K5002ovPDHLk FV1kn=UlRZT literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/AstralProbeBanner.cs b/Items/Placeables/Banners/AstralProbeBanner.cs new file mode 100644 index 0000000000..490e544f11 --- /dev/null +++ b/Items/Placeables/Banners/AstralProbeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AstralProbeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 31; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AstralProbeBanner.png b/Items/Placeables/Banners/AstralProbeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..004b4221696dd3cdd1ded7d0396861abb3b200b9 GIT binary patch literal 342 zcmV-c0jd6pP)f0003SNkl06PNU>ar<+y;s@99(b}Z1TI7 zsl?fUQv=K?juy6Hlb+^#f$29_pMYuoJ(s}r{u776G$Yv>)Rwn{O|U!s5+!C1*@~lt z7TgAsHC%L81)C(~&W&QjyPaPle%W~&)ej_VfQ6ErD8$V$@aQ$fPdGz~paz&p=!p)+ z8hmL9T_KDQPkbLy2q+)-nEIlNJ@#p|}ns zlwdXxts&kw1Z<*1Wj2^T&<@E5IOBn64e0Su*_I0ydUpIdm|nPf4VcE6r%BcTbJ~IP or%}Qmrwv4Fz?G&bF8Kh&M&nNjBFt3)0000 literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/AstralSlimeBanner.cs b/Items/Placeables/Banners/AstralSlimeBanner.cs new file mode 100644 index 0000000000..a813161c90 --- /dev/null +++ b/Items/Placeables/Banners/AstralSlimeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AstralSlimeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 35; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AstralSlimeBanner.png b/Items/Placeables/Banners/AstralSlimeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..f0b29d9d7ef70d0571dc2fdb908feb414b22d9b2 GIT binary patch literal 228 zcmVf00020Nklaa`Hv075IgB82FaZK&Yw%$bK(S!UzYkzOP8$enfH`Ho*QAJ?TFvHe7nj0_N8<38LCSv(fJdwTA)60qB^pZ)}<@3yVSA4)hi45v`?Ss#xQDn0XOf%!Po644rlQz+3dEumyL eBo5gn9{{-b+09vO$NB&O002ovPDHLkV1fXzwOY#n literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/AstralachneaBanner.cs b/Items/Placeables/Banners/AstralachneaBanner.cs new file mode 100644 index 0000000000..1a4e46b847 --- /dev/null +++ b/Items/Placeables/Banners/AstralachneaBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class AstralachneaBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 39; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/AstralachneaBanner.png b/Items/Placeables/Banners/AstralachneaBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..bd9aa27f2782c8063dfb3661ed311c93ed41ef14 GIT binary patch literal 342 zcmV-c0jd6pP)f0003UNklf00031Nkl%clN{rU+rn4U9j0+@!|K(dCEtOBqJ)-nEI`sk94 zC_clmfn*Kwz9C=}r7R^;-2VIV6EJ__<~68(AX$T$t|{1rTG*n5&i)gJ!Tcw$E-`}RVF+k|c^>9eSm@yN13?Y2(19flSj@s~ zV3n1@o?1!PfSxp9Ho#(>U|J$tLyO}bu-bP!zk=yLHhui5m1qsHG_)w}GuXs^^S*)U z1w7(l8kVNud75ku6Zl_%O}y|Fk}e6_Ku`mE@f0002@Nkl5xbffu}BKFlV#4Mb~zDGZZ`m@LMI>Z!$y z5HmmC;sMi)6l-|m&V^!y%+7CM{;G!%zhKxvw1ym2h#wSH1yF35^!+24|8PH=AE>6` z{_PK78>ZYw^8+p$aBBFr3gU<93m|^@{tjYtQ4z#TTw!Q7kgnmOHrS-T@DnJZRJ76p zVuSou)Oh$d_%y)sfr|pf3oqV6=qu3d0m~Qgv_!H7dB-nc6Qxx-!L-qSNGgQ^jF=`_ z1FjtR>KDWgocRGgi(+Vixsm8XfNTxu8ex2jOFjU9$FISg8;xlI0000P)f00034NklZVAYJep^n5X4L#Zf}((d(D^Ly2e&@-p&ZlO8^Kh++e} zI6NLm)&MhBs3sf5hIcJfQTT8hh}K}_oD424tk)-k^;|vu5lp|i`UFhdCuoD|qk;1w zX^CtNFeeFA1)f0002zNklsMfU52HAkhS>zSfou)4^w_{Ao_Y2Y zOwW1)F%zc^WNTP;@iB3JfZ0H@2HN?7e(^xEr-{};J3pvP7=n|jt)&@C4mo`M6qtYW z#d&a|f~QuZHNX_sON)R_x@Dn;VuRX=TVQ_U(>Gw6k!%exx64SepxE%_*&i?;<`=jP zBx_Jn6a|~qUc(Ber#ycGrk~D*f0003YNklx$w8whHE z83*&ckd^?74ezdf0P|s?2M?9FV@h4 z+d#GkSlThJs|4GCGp1oS5Ul~0MHLhwISd9K+=t{qSYF4-aYSoSv{we3WMXT8V#Ark u7r=as{6Mq@^rV4eJQ4?Io+hLL0J6lzha0Ct`~Uy|07*qoM6N<$f&c({lZ|`; literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/BloatfishBanner.cs b/Items/Placeables/Banners/BloatfishBanner.cs new file mode 100644 index 0000000000..d0370d60ee --- /dev/null +++ b/Items/Placeables/Banners/BloatfishBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class BloatfishBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 28; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/BloatfishBanner.png b/Items/Placeables/Banners/BloatfishBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..4365c707e475ce70f05c4a78f1c81f8af119a861 GIT binary patch literal 294 zcmV+>0oneEP)f0002(NkllZN1NU;Vde{U2U_HEpX-v**JXoU2GO;TZlgbEDY z`2`8J8*2(t{XnvYtg8pWCaiOhN3kJj=Rz=lnzjR~4J2!T8H+0|!Q|obK(Ypyr(vN1 zGXPy2ZUf009A<6-8>(dkNmDRz?Fb|d9Z2^<4JDE_z?|gNXozCNzWVd{W164_m~rUI s93~FS2RQRIEF%p94d{M>@hL9(07@ja?d=3U9{>OV07*qoM6N<$f7dnefWNpoa1ST0qHV$QiVX>N{&*^wRpnLb-jyT@?3 zCnfuX(N)IT3zmOlKicNKJ>tNh+~w;R+;Z5$_9fx!D>Ijk52IdI{#ob}zis!2lkGc+a&d+qSD-{ft_z literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/BobbitWormBanner.cs b/Items/Placeables/Banners/BobbitWormBanner.cs new file mode 100644 index 0000000000..04d0b5da4f --- /dev/null +++ b/Items/Placeables/Banners/BobbitWormBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class BobbitWormBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 29; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/BobbitWormBanner.png b/Items/Placeables/Banners/BobbitWormBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..8bffb68f49b16219ba763f385c24a5301d200244 GIT binary patch literal 270 zcmV+p0rCEcP)f0002fNkl{cOQ6{B=IskG9~K{Q z8;I5bGY;l?g276%2C{<{W)sm7M{=-|tbyoYMb8HWBMv=SVNQdI!_pAW97j+C%t;P5 zfnY=5et3?OmV^Z)!TbY9)}y9YvNga=f>{GI2&WB1Yk--EUeckbHHNCN<&;ISi4 UWobPC0000f0002UNkl=N){x!Yh+<+_U`XdDT(II00000NkvXX Iu0mjf0Cvl1(*OVf literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/CalamityEyeBanner.cs b/Items/Placeables/Banners/CalamityEyeBanner.cs new file mode 100644 index 0000000000..ba053dcb22 --- /dev/null +++ b/Items/Placeables/Banners/CalamityEyeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class CalamityEyeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 55; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/CalamityEyeBanner.png b/Items/Placeables/Banners/CalamityEyeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..e2dfb40f2c34486d190df8c8617f10958d7b452b GIT binary patch literal 315 zcmV-B0mS}^P)f00032Nkl{cg6Svw?ttlL zCUG!*==dox4Yz@04Wa@Nlb5Lrf$8NJAA;%491!u>A3menK(YpyrzIs6P(tbXiw7v7 zhY?DHNCV8%nwpv@ez<=9I{r{1r~zgiED^#&3nmUrTd-6NPs$`~Xpz$g=Zhu3P_hF< z3>zf7)I7QfmVnEWtO4fc?-L48av*2H1QaV#?Pp+MAXx)SBrq^AJofho+bFwnBdQU005-2FGK_sb^rhX N07*qoM6N<$f&i;}co+Zx literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/CatfishBanner.cs b/Items/Placeables/Banners/CatfishBanner.cs new file mode 100644 index 0000000000..bc3f3ed818 --- /dev/null +++ b/Items/Placeables/Banners/CatfishBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class CatfishBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 4; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/CatfishBanner.png b/Items/Placeables/Banners/CatfishBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..2062064f498ffd3c0971bce22d31994f97672534 GIT binary patch literal 318 zcmV-E0m1%>P)f00035Nkl&g7``>4G$%f0003BNklkd0mH{PPr&kw6l)NcmO`=V?bByqK295m z)?gJ90ygQz?MEm!NT|wz`N!6*LG=U48Xm8F0X9J=+XTgiD^t&a`Lf{>s5X$S;oY|` zun8uX5Vyj>nd1<@32~L7+CZ`fl08kbhU3Rqg54OM(Tm~-8(CQ}f6!<5cC zunER?+F<(Zp{ro})L{sXVFSq;VEJLkW{4kPHdJ@d1M_jFR+2RkoxEXAB3eW3cSveo zYT<_x578$!f%(mxXsMNC4Ib>uV3UsX{zS3C@-sV_zvJg!)R-n(1I#$03o=qQ003LR W!kv2UT7Lil002ovPDHLkV1fYEVTy+U literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/CharredSlimeBanner.cs b/Items/Placeables/Banners/CharredSlimeBanner.cs new file mode 100644 index 0000000000..6f9846c771 --- /dev/null +++ b/Items/Placeables/Banners/CharredSlimeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class CharredSlimeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 93; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/CharredSlimeBanner.png b/Items/Placeables/Banners/CharredSlimeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..cd27ab325c808def0c347f1cc7ec643ebeb57a2a GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsUA-k#}EtuD<*zBpKQMD8lv>}CP!f;J&X-jwQDPZCsb yT{ch`T$^YzrNgsk@j@3rjfYx)Pw4$*Shsdht?Uo!w?KC>c)I$ztaD0eVgLZM*Gzo? literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/ClamBanner.cs b/Items/Placeables/Banners/ClamBanner.cs new file mode 100644 index 0000000000..03d60bc316 --- /dev/null +++ b/Items/Placeables/Banners/ClamBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class ClamBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 99; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/ClamBanner.png b/Items/Placeables/Banners/ClamBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..74b65932d9b778325a3cc9c56c6305b94d0346b0 GIT binary patch literal 249 zcmVf0002KNklar<+y@+Z_B6>FNRBwNHBdjt z!IC6;Appy9Yn&l@n_#IyPy@P6Fh0d49{_jh;R&s9Dcb-5002ovPDHLkV1fVu`CMWX literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/CloudElementalBanner.cs b/Items/Placeables/Banners/CloudElementalBanner.cs new file mode 100644 index 0000000000..bd2d25bbae --- /dev/null +++ b/Items/Placeables/Banners/CloudElementalBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class CloudElementalBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 58; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/CloudElementalBanner.png b/Items/Placeables/Banners/CloudElementalBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..390ffda5a980fba55d865669b5f1a0d17b56df41 GIT binary patch literal 342 zcmV-c0jd6pP)f0003SNkl0cxX@cLb0K8_BIqgBiS0fobwZg)X zYz?dDXMxQKO`Ha%JA(|tG%V-Aa~#YDf*R0s-24MKz$RW@@&Qb1#|VJw8|%s-F-^7x onCD@o1I&pqaSR)X)c^pvZP*PYzSJZD0000f0003DNklELoxaAB}hDc`S}ag2C_B8cuS(h^pdU5@!LSO2039~h#!==QEa$+?<<)9 z=m#jOD>IafF zG*)Fih5FlFvx<(kE;*t*l ZJ%`Gf0002=NklFaZKYYk(AKmvxE8J0jt0?BiR~KQoX}{wv5Ul~-)9n-e!9wV6#~DflHNZR#b5drCCyF1Y&)JUO4}(yH zt2Ylyj1!CpqBZDfNPta_&NN2}rKQtPg85f&yg-d6vT6`0l%JpraG^EaZ}K(q#2sTC#;Gnrs&C0YY4Z|~mv1tpc@ zw1H#|Fwdi>A%cD&r~y5+V0@U#Fh0EGBUS?dCUn<57ba`!00000NkvXXu0mjf006QY Bc(ecj literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/CosmicElementalBanner.cs b/Items/Placeables/Banners/CosmicElementalBanner.cs new file mode 100644 index 0000000000..4bab83e559 --- /dev/null +++ b/Items/Placeables/Banners/CosmicElementalBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class CosmicElementalBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 75; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/CosmicElementalBanner.png b/Items/Placeables/Banners/CosmicElementalBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..90ef0d5ef13a9a41b7c9ab19e7909b776f7a6523 GIT binary patch literal 291 zcmV+;0o?wHP)f0002$Nklar<+y=5Wl;s=*o49#* z7jZTa)PU|3eRDss$rn#V3Q{0b)vZ4*4G@&|8nU9#1CX^;0{Ov zn{Z^}bQBwG@-xBwuN&r}+Ca1h^icY$rUe%IuVh4AC=t{EOBzH+9N8LRIgR?M6&6Y` prxDCR6l*h)36=hzlS8n9k_G%+@58;CEAg4U1Xk^Nr^<%yvY7Z2H-k{k}2N zZIh{vQOgXK)h(~ukAGLF>#*kED4EB6QR+hT*EdPtBK8u;<&MjHv6xPHn>nd@YKH&e xIWAk;E(R#6ee7)$vRv4*`it`JC(I1buWZb<__|dH=qv_LS3j3^P6 zx^&jIN1@PwktrqnL8`Fh#s{C*nq3P2KvK;)S z^rruB@ZIv&jQR3Hf0002rNklr& zDD;>|=fgvZkV2R|MzF#pU@`5fBL)_N#SiHkaD@^~92Ua_Ly2e&)K9JGet@MNm^dsA z;q(JR4d`j8Hct~J$DP^t7JGhxr6Hm<;7Z=;;_#RzSpzKm(epIAIKe!Pp#eP}&`Ua4 gDB_Ff0002_Nkl~tRZ8^3zX;}=m(-Tpob338k{zetO4D#*ET-^ zTjI2@0ed`9tf8@R9oXdQ4BLpafuIJv>@$!=?kfYPsi%P}JqB#zmfI>|diB0jV7k6P z2zy#0Sp$Q%9oVF5FA0=1^sf60_D~{PgPOV?I4?(S*Z?-^_q;_YHsngVf%$ebG9d9l zv4&&Wl_)kW^3BI@13?Wi<6urhF&>F?>*giYa*0?C0JXEk=Wgki1^@s607*qoM6N<$ Ef@<%3Pyhe` literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/CultistAssassinBanner.cs b/Items/Placeables/Banners/CultistAssassinBanner.cs new file mode 100644 index 0000000000..c7d9b4aa9d --- /dev/null +++ b/Items/Placeables/Banners/CultistAssassinBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class CultistAssassinBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 95; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/CultistAssassinBanner.png b/Items/Placeables/Banners/CultistAssassinBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..c020feaa27d612d4ef20bbd0de0a5f4e65c99a4e GIT binary patch literal 312 zcmV-80muG{P)f00030Nkl-M<%1&-;NAEr?JeTLY?jm^^qW5mE?~ zC#V4y+!*nI%LbA)pc_QcNjNpYQY$P~!W5#5W29E1HADqlgAIN1>^F)lWTaTZ{AFv8 zqUHyZHNf0zYNU!{!|8Lk!F-%Kj-UpZap(mYdT`<_mvF^6OalPSKd8wUi_y>k0000< KMNUMnLSTZgP=7E0 literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/CuttlefishBanner.cs b/Items/Placeables/Banners/CuttlefishBanner.cs new file mode 100644 index 0000000000..2f475f2553 --- /dev/null +++ b/Items/Placeables/Banners/CuttlefishBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class CuttlefishBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 16; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/CuttlefishBanner.png b/Items/Placeables/Banners/CuttlefishBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..4dbfb38999e313fe8d5f4d57d5c9bd5c5310e2d1 GIT binary patch literal 315 zcmV-B0mS}^P)f00032Nkl;fJg$m=E&{BiS0vf+D~s{n@%0#ReAdSTO(8x)op=ZUfmGMD{I2vEhwV zJboL9)&PrPqmP$RY&gfShd-1EYJeFB3tl7k->5eHWW^uT1U0}+b}1AVy{>IVLjV8( N07*qoM6N<$f&ht~fJguU literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/DespairStoneBanner.cs b/Items/Placeables/Banners/DespairStoneBanner.cs new file mode 100644 index 0000000000..b597dc4022 --- /dev/null +++ b/Items/Placeables/Banners/DespairStoneBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class DespairStoneBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 46; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/DespairStoneBanner.png b/Items/Placeables/Banners/DespairStoneBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..ea39642e8a5ccf45366d0e659ac2c529eb9e67b7 GIT binary patch literal 312 zcmV-80muG{P)f0002~Nkl2tSH`~tIyk!%g30=!@o zH8nL+{P5xZcQF6;htH5ug4sZ}23Kc2ut`sz{RY$5uV2S+1JN2dE6fiBW146U zu+%Ckp@5Q>U`ZBdY9*)vW&+U}h-3}0Vut8KfNTvgr%}D+0{|gL`OUEGSt9@d002ov KPDHLkV1fW+0fCf0003UNkl{08?R*&6soWKjI@@y!$bHW1VRa|%qMwu1$V4Ob7G0P|rs!9$5;4NCfEV3Q`08H||`;Zv)X9iNg0Ly8+9OF@JaNEBS%x~tDK=lLB8eqo3@&(NEFmYJu;LOuR oYe2UN#z!v+QHn*7B0?o00H=A+-N7o@O#lD@07*qoM6N<$f<|tW(*OVf literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/DiamondCrawlerBanner.cs b/Items/Placeables/Banners/DiamondCrawlerBanner.cs new file mode 100644 index 0000000000..b3e4b5488b --- /dev/null +++ b/Items/Placeables/Banners/DiamondCrawlerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class DiamondCrawlerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 71; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/DiamondCrawlerBanner.png b/Items/Placeables/Banners/DiamondCrawlerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..c3e063cdb54650ea72ed78955ca495169e7f7b37 GIT binary patch literal 315 zcmV-B0mS}^P)f00031NklrIXg9gdoXB#~*ofOsxreWf+(1P1QvIdx^(L)Co^DrAR{6Mq@^t1#s5oR-n4PKy&>^~5f4ObP*c|fmlEf%UIgoDtAxZb3{2a*3C=cA_-nD5vu_JK~mb)Phior00000 NNkvXXu0mjf003J2cOC!$ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/EarthElementalBanner.cs b/Items/Placeables/Banners/EarthElementalBanner.cs new file mode 100644 index 0000000000..0599229fee --- /dev/null +++ b/Items/Placeables/Banners/EarthElementalBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class EarthElementalBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 76; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/EarthElementalBanner.png b/Items/Placeables/Banners/EarthElementalBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..75373670a4ca88a8657e5ea34927879a4d61122e GIT binary patch literal 285 zcmV+&0pk9NP)f0002wNklI_C*gRl)gPW2j(w71+f_;wGyoXmiVkJ48SHmxDN>>f@z6l4P+-in9m71iFP@T jQ;jPnC?It&EaK8NeZa4(ZQ zc`YF`kIl?6%vtPc+i`Qb=AXy?=Q(X{%;0@-Fsigvy^A;Z*1I3hoeS7D+4>f35PF+A wV{*qe11YZ~D*G-5D5*~=m|B-Iy@uh!?EP=IPSAA$x{JZn)z4*}Q$iC100M$X00000 literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/EidolistBanner.cs b/Items/Placeables/Banners/EidolistBanner.cs new file mode 100644 index 0000000000..adf7ce2006 --- /dev/null +++ b/Items/Placeables/Banners/EidolistBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class EidolistBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 25; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/EidolistBanner.png b/Items/Placeables/Banners/EidolistBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..8d57c83e9fc2616a8206091e98d1c503e9b5ed6d GIT binary patch literal 276 zcmV+v0qg#WP)f0002mNkl9_1IZem-17mOV4Nrprd2Fe!1T(rqhMM_X$z_iWNQeY zWsTwof;J2y4X|L1K6@O+4@-?L@y7$v8eqW+^YoqLcfcl}o&OSlJP@scafKuu=q8Ucn13k~N^)1mmNZgeb)#ND-lu a5CDuo%Z)rYxAy=5002ovPDHLkV1fWC_H0xD literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs b/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs new file mode 100644 index 0000000000..6b8d4dae36 --- /dev/null +++ b/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class EidolonWyrmJuvenileBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 27; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.png b/Items/Placeables/Banners/EidolonWyrmJuvenileBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..2cdad57ffb63a906dbdb727070f0238a8a5e65b6 GIT binary patch literal 333 zcmV-T0kZyyP)f0003KNklHmr!a4W>)4tU$3D z!v>-?n3Qb+n>0__3QW6o8-i(>sHtH3OqUOshTA~02AHQmKAiwINnBbIO#fgA$L|NC zHNc$o`(O*$#65H0fN9S~5F2s&fn*KaD~^Fpe7?8@OeZ~s@NwEev;wnBMNDh8hoKYdD|e3N{G_4Cn2}Zv)914h9;5O+3-|2uzo2LgE9bA4t}a zxsn%bV#EqnFm1p79DW;!){yw(0obI=eOFLINw-J`%%3lzfEo{EYk-*qvj%1mP8*2U f05g&5B_9A%Slr1|X;&ct0000f0002!Nkl-z&6kjq9Vhym+Id}0r*v-$OG|X=>KHLu!Yk-AT%CwCrHsZ8_paxiA zqsKIQe86oOgc@MsZ3InI==lVerZCbH(HhVr4i>Di`~b6&U_9W|05c)i*cHY3lh5wP zo*#(Tpr)<|E+yt}$p!1#G3zOci5_XvV1BaCWH8N0v4-aKJt#KR&UC?V13?Wi<6urh pk6{@9*3C=cA_-nD5vu_J4Ti(HR8$5c00000NkvXXu0mjf003&7c60y$ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/EutrophicRayBanner.cs b/Items/Placeables/Banners/EutrophicRayBanner.cs new file mode 100644 index 0000000000..b57ea2e16d --- /dev/null +++ b/Items/Placeables/Banners/EutrophicRayBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class EutrophicRayBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 100; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/EutrophicRayBanner.png b/Items/Placeables/Banners/EutrophicRayBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..29f9d317d9ed5022b52ca0aae55acfb8ed52ad4e GIT binary patch literal 303 zcmV+~0nq-5P)f0002=Nklk-6HXgQ)?gZK4L14o(xb%LKu`nB zvqD+|U=x)Mwej09h%}%_6wI@C&tC=m;oY?lC~1L_Yz+<*=YvgpxUL0E^P2qx(?T-M zVERCQBAABTK(dCAy>q}O+}hCqrmvi20@FeDbzpjpa|)^rWNSD$s|h7k?9&L?K(q!} za)yP@=Tqz`Ho@`*Jd{Y*z$MKEHc{Kb5XI!H2hM}}-=2O$4JDE_z#{JJDM)<40Jj+= z{Bg!KK@BjIV2Kdsd6+oPQiEg-=r+Ol6qkGeXSczR!Xodm00000NkvXXu0mjf002y_ Bf^`4@ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/FlounderBanner.cs b/Items/Placeables/Banners/FlounderBanner.cs new file mode 100644 index 0000000000..1e03b53038 --- /dev/null +++ b/Items/Placeables/Banners/FlounderBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class FlounderBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 1; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/FlounderBanner.png b/Items/Placeables/Banners/FlounderBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..52bb853e0a10a2c3cacf23b9af6cf08cd0b4e2c3 GIT binary patch literal 294 zcmV+>0oneEP)f0002&Nkl=IGEGSwd7E2ICT_%6QAGuNSqBsYmijqM~RPv zJ73_pfoKh|@HaCNL-}v<6sk!aPFI2BI~f0002vNklex%2sX(=ff-E8 z8?u7wmFs_i>0965gK0*xHNf0%4l@}RAI;02quM~S2K1PQ*+4Lq&^?P& z11#c%MSh{A*0*oi@W(XK8eqYSVmuNDXFL$C0p^F>U%sR0QRU&p?+2na&@LWe4ko$~ jAX@{vMi`&sk`DlJNWXRX?ADn80000f0003XNklA}f(CU_cj#+d#Aim~k+trDPSL*f3|>1TY`w zH@FAM)==4&i(*52)nxoO5Y&L~6j7PKC^o!)!VKoa`~nXpm}iOB01MWir87}%VDC;x zi64x3AX-DlFf~k1p8=rq>Dm z2Gj3arlQ(FvIcn>1+WQGS-xNz7XG_8Z2f0002@Nklar<+yFyr^Fxr$;FEXLt}fZ0G$gL?inaO#AaAStJfV)FAx z5Sw7Z&PcL`(CJ6OHo#&MS89ccGm@+U=3rPNME5)_{Bh<7qBY>M38xJdYk-9cEc7t^ zfNldp4X{vx#VC4d0W%Pz)F4>{%p~*@52p=;GynijDAW@|Goq6K0000f00030Nkl}w}EU8 zFgL@jaSG7}GZ)1)qlOa92BI~@EvW^Yux||{ykS63Ll4Z{)&cP&Jd{Y*0CSRv&R-N8 z-dthEZo?qdASnk4Zx}F)3I#J^e!_?cs%gNPT5;Kcp&@ko5pXF1i%ArZAaP*9&PcL` z%){nGtU57)>50000< KMNUMnLSTXvs(E<; literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/GiantClamBanner.cs b/Items/Placeables/Banners/GiantClamBanner.cs new file mode 100644 index 0000000000..81e47e013c --- /dev/null +++ b/Items/Placeables/Banners/GiantClamBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class GiantClamBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 107; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/GiantClamBanner.png b/Items/Placeables/Banners/GiantClamBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..74b65932d9b778325a3cc9c56c6305b94d0346b0 GIT binary patch literal 249 zcmVf0002KNklar<+y@+Z_B6>FNRBwNHBdjt z!IC6;Appy9Yn&l@n_#IyPy@P6Fh0d49{_jh;R&s9Dcb-5002ovPDHLkV1fVu`CMWX literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/GiantSquidBanner.cs b/Items/Placeables/Banners/GiantSquidBanner.cs new file mode 100644 index 0000000000..a6664bc4e7 --- /dev/null +++ b/Items/Placeables/Banners/GiantSquidBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class GiantSquidBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 20; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/GiantSquidBanner.png b/Items/Placeables/Banners/GiantSquidBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..e1cf0cf416ad2d45dd7ce673299100e7b9903ef6 GIT binary patch literal 309 zcmV-50m}Y~P)f0002|NklQ`(Xa5b?d-1BiR~Y#%fqO zpxAKZ*Z~wi+ye?gh)i zCeEAF1E#MZISZy?p#={mk~N@v7Ck+|LJMvK$r?)Y{J@5GPuhfHIJ!9829h)Ny8Uo9T!G^By>O~19 zbaA*1Bx`^r4R#(L6dQhi`2yzSOiKhcpyz4yR0`vhUGf0{h|9cFs?}nH00000NkvXX Hu0mjf9SwdB literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/GnasherBanner.cs b/Items/Placeables/Banners/GnasherBanner.cs new file mode 100644 index 0000000000..2be5f1b6b5 --- /dev/null +++ b/Items/Placeables/Banners/GnasherBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class GnasherBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 2; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/GnasherBanner.png b/Items/Placeables/Banners/GnasherBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..cb0bf666d547d28b2a92ea5c0b402fc70101298a GIT binary patch literal 261 zcmV+g0s8)lP)f0002XNklar<+y=5W=!uJ?`0CQj zm-uZUr~&2_m_mDZ2^1R+?tB5}!)#(CTSIP~KG>vN_rIgqpr*(P=1*R95lq8vAX$UC zmK@jwGZR4+8%~{hj}jkn8wQ~Ul08kb2HJZXmX;*d_)+5F`K^!m(-O%VIEC3!Z2126 zCw?0UYJeGso<(8eI}hI?E>9D!0Tv%H4FpRKqBWrV1;(eif00033NklbHu}ZqPmCaOFaZKYYk(WPr>}yx>aDBk!%eC##Uex zv=sPIY`FH|6PUl@>@iduh}MAa>0?_8QEagC=?C+1h7v&yFi$&t+5f8>;NQ z!TbY!E~tJWS%c=H4PXc=1DZJ829h->8v24wZVKc?v7v7LcQF6{`OT>D zK(YoM=QywlSN1MKu>oBi?uS9Bf#irIS_3RdU^x$#cX5ehlzfCV006AZ#A!k)tj_=d N002ovPDHLkV1iyue3AeF literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/GulperEelBanner.cs b/Items/Placeables/Banners/GulperEelBanner.cs new file mode 100644 index 0000000000..50b165d501 --- /dev/null +++ b/Items/Placeables/Banners/GulperEelBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class GulperEelBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 26; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/GulperEelBanner.png b/Items/Placeables/Banners/GulperEelBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..763910b3b18dafa99777a0a19340cdcae3f7db4c GIT binary patch literal 354 zcmV-o0iFJdP)f0003eNkl*E+(Hg)CLkk?h`qVW4g6Y=u!!QfLh9lcRv<9$3LmwlsNnXC(VEWc| zW-xu{&L=Q^e#<#94YGkU4eu^8p#+kU{y+RS5TgNRBG_q07Jeu;oI9}ze<%^70mbCE zPoIHJl;sft)8F{nz%PA~P^; zr?m`B^O>lC>1~UrpvE-G8j@=#fK9OYa|BE$w?X0~weB65p4(i2Y6ICCW;Y2zOss;$ zaD?R=FwF~10PuK#*+8@gn5P3}UZD8FC+-yfP$F6bENPrM9)jWrf-y~u2C#{+tU9|A zVgoE5m>A<=^4LoaQZ%601mmC;MJVMGQ5pdETe1tz)HBln0000f0003GNklar<+y=5WoN!Y_@s-7{ z`}l1jSwp;U2-w6&uU``92Z9<9o-F{IIA_`f6hEY7p^7t-twCN!0c>)^s`+60)`4|k zdfBwiVEW;c2Vfd*1IZd3Eo{Li+(P zJ{E3XgX#yOHNYGU3tll@QxreEx_lacS|X?cW^!d)F4&~(lvI>VHFeHxa1Ly*nvCiP zk~P56%f0003CNklf4)+7m8eqo3l8C2E4_F92{9$Pfp3unF081jU2;9D>1Z*Qt8;I7>$G`y2 z7ma+77>9xSPmmZcVqgF}AMOXTH5C3w$$$*~j1V(%+Ca1hn45p@$^~1&<~j*1^xhMa zhJf0003QNklar<+y=5WRJP@!_^Q2X zGJYEfYJfS#(ZUvNl7*iEiVbs@p8)e;T|Nz_8OhcV?;C<*GOMf%n1A=&Sunl-#9>q$ zNY()JY!(N^q<1^Ng6V>f64-4ZSpzJF>+0oD{1WfK9=i=BYk+yWd5#r|4NZ-Y!2CJW zCSVUGqBX!``f0uw*rYdCA*nU!9V>Pl$krgRBob`m!39^rwC}~2U>cS$Fwzpy8epOH zsox1~;?>h1!L;=81w=R l#dv(>61qYdA6Ae70KN*_iNey1%K!iX07*qoM6N<$f&gUykb?jK literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/IceClasperBanner.cs b/Items/Placeables/Banners/IceClasperBanner.cs new file mode 100644 index 0000000000..0df885ee80 --- /dev/null +++ b/Items/Placeables/Banners/IceClasperBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class IceClasperBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 61; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/IceClasperBanner.png b/Items/Placeables/Banners/IceClasperBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..f15f42d01b5a000e3f34261e9d63349419456996 GIT binary patch literal 285 zcmV+&0pk9NP)f0002wNklf0003dNkl9sdt`oP62U^+U|0ZdO` zc@otRBx`^L>z`LIz$QKW^aV`Isi@$O2ck8Q9jqir94uI2q14xzNL)M+)Bp>mM|bXk xO@sl0p+ryv%p_PwLNOkRbLaI-)N+Yf4FH5x+h3=Y-1`6k002ovPDHLkV1k7zk(>Yk literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/IrradiatedSlimeBanner.cs b/Items/Placeables/Banners/IrradiatedSlimeBanner.cs new file mode 100644 index 0000000000..bd088fa9dd --- /dev/null +++ b/Items/Placeables/Banners/IrradiatedSlimeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class IrradiatedSlimeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 97; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/IrradiatedSlimeBanner.png b/Items/Placeables/Banners/IrradiatedSlimeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..a7176895d4f9cf2b508b5b8509d2e39e09377161 GIT binary patch literal 288 zcmV+*0pI?KP)f0002zNklvtNVxyAEtXwSj02{;B5R&?%qg0XE_6wPz?c7;8y^`JHJy zAU2S#0T$jU#v^fH@dLMkXbrGno!(;%3GWkDD3+L690T*Gu78CZN+fH51#5SuFp3SO z?QikN1JN2_X-Qkd6vc+CH%{YEOC)Qk$>2w^p=HKL{5BBO081J~M;zH2XqQ@HX^H3z mM79Rnl^U>UCAuIZRRaJu&c@Y-wl*vP0000f0003YNkl=IGEFfjQCJ&cz5m-nE&wc z8Ah-TBx|r!_W_5J9G?{4uzK|A8N?41Yp^wQ2b*LO#tNppOSXV%oHh`x!Aj8*Y*J*U zE|@-j;vSg3v;QlYK6d{&svjuUFnhvgu!%h16^OHeXbmck++Y*`K9U8~_wU}oZv)X9 zU@;8~R+!08-aaHQ9tdi9&H5c|62FiTN}Brk?j4vf`kNCq9*EZP_e(1{wchBM3pOG7 zkTHr4N4FV(`7n7#k~LhdQG(#IQUCw|07*qoM6N<$f&c)Ka*g%? literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/LuminousCorvinaBanner.cs b/Items/Placeables/Banners/LuminousCorvinaBanner.cs new file mode 100644 index 0000000000..01b9b98b2a --- /dev/null +++ b/Items/Placeables/Banners/LuminousCorvinaBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class LuminousCorvinaBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 19; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/LuminousCorvinaBanner.png b/Items/Placeables/Banners/LuminousCorvinaBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..342691b4afeefcbc004e0df1f17e272c1b14390d GIT binary patch literal 327 zcmV-N0l5B&P)f0003FNkl!kFl@ha3(QX|r~}h*8wQ~USW-# z0c_HX*~ut2OkJ}U%!kP{lB^+g*?X`J1{OSElP)ypqu9XU+6v~wgU|o~ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/MantisBanner.cs b/Items/Placeables/Banners/MantisBanner.cs new file mode 100644 index 0000000000..dbe2d77187 --- /dev/null +++ b/Items/Placeables/Banners/MantisBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class MantisBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 37; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/MantisBanner.png b/Items/Placeables/Banners/MantisBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..f124499656bc1f4f91c4811a4b981e614b22894e GIT binary patch literal 333 zcmV-T0kZyyP)!}m002ovPDHLkV1fVuEkBCV literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/MantisShrimpBanner.cs b/Items/Placeables/Banners/MantisShrimpBanner.cs new file mode 100644 index 0000000000..6f257652f7 --- /dev/null +++ b/Items/Placeables/Banners/MantisShrimpBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class MantisShrimpBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 9; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/MantisShrimpBanner.png b/Items/Placeables/Banners/MantisShrimpBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..c516b223d79bb653895c78af849d8ba51677ce3a GIT binary patch literal 306 zcmV-20nPr2P)f0002@Nkl-@sUPiG&s$LhrABfgKaf00037Nkl z|LicBhTA~22AFX$&zB~fqu9_r_avAP3q5!c60HHI@WIP)ut}BCw@_?oU#bS?D~PW| z^#j=&G&QcG*l_)ZHhvq3))47p2sUZjuA3+}WVxw>`OEj5NA&~A8aM@Yz$QFYfch zEpjEU9yoBoK+21Uhex6_-$I4=%N(}HljlE9P!ovdn6Q>HR=LN&@FY7!<%RWk%_b?& R2inZw>FVdQ&MBdZ0RXLII=cV> literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/MirageJellyBanner.cs b/Items/Placeables/Banners/MirageJellyBanner.cs new file mode 100644 index 0000000000..f31a81c548 --- /dev/null +++ b/Items/Placeables/Banners/MirageJellyBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class MirageJellyBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 24; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/MirageJellyBanner.png b/Items/Placeables/Banners/MirageJellyBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..af5e3cf3886f631edfe8b910977fa252a66e9944 GIT binary patch literal 315 zcmV-B0mS}^P)f00033Nkl>U z@%A||UD2C?)h0%=H3TN7LEOA*vk_({LNe)?i_+hGN5sqqp$eK(q!y zK^2tHfmzd0JOj*p|NaiDAIR3AuWE$i2Uxt|w1J=om~rS42ooommS9PQpavdR6>vUq zmx)F3!_Fs*!Tc}3?|>63JhhUoK}k&mY@&s^E|^}ncr|_-h}HmeILv8Lv7z{FAXx*< zWNRBMu->Cbj-j|6W*|l=k*opc>3g?s5N89?8qhrrf0003WNklZVAY7i0E1&4~PsS4O6-zQ(eG)%+PKOA8Gyo(&bCfFW_m;?idEg?2< z?K^;K1IZc;g3ZAuL_B+nV#5k4X)yo7+LNd@kgNgSNsk`<1)KOVQk^(IkgVbS85Xd~ zUvd?Qvw@%nn5V6dJp!8uORYEk#PNp`$r@5z#8Bd4&YoBJZ6I31$<3Z%lTJT@gboat z%KQN{&3(6{#x%(qrsXI@!kbMN#Rl(RkHP$`DR)tAAX)>=IP{DJ6NlxrH!m-P3k-Ov rL9zyPn_zsH$uK@f$p^Cumj(b$gVH-ATSs#M0000f00039NklR1KE-`{=Fo6t+)&Nsj*_I2|ujUX0rW36k!8C>qWNVmzY(G|$Va|s8 z0cHb14KRf%Sp{H2tYiG~+d#GkT%m&=?2Lp$hhz82GjK_2f%dPDqb+X|HNTbKai{e7D0QTuS7`=`tPi)#XE(Td za}%$R@uanhzlDl7aI!CpXS@8oY;(iQMWwR@q?7#?-E!E(HbY+S+gsMzCBE^}Nt-sa z)Y%JMVc;%V)I2qXH-%mMq@a7zhDmD@EsinkIB_mhjbKw+!MKbed|unh!^JWur4rOm zuR3w~OVi8a<#J7#5ic3HH)im@I4OO!LWS>KQRf6UhUd>uU;Mk9K>+9{22WQ%mvv4F GO$-1m=w?O$ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/OverloadedSoldierBanner.cs b/Items/Placeables/Banners/OverloadedSoldierBanner.cs new file mode 100644 index 0000000000..34570f44a0 --- /dev/null +++ b/Items/Placeables/Banners/OverloadedSoldierBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class OverloadedSoldierBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 85; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/OverloadedSoldierBanner.png b/Items/Placeables/Banners/OverloadedSoldierBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..7975b395ae9a6b189f990bf333572b96b81bdf3f GIT binary patch literal 381 zcmV-@0fPRCP)f0003(Nkl}3jdLX-oAdoh|EXffFy|408^->q6IckKvWV;pF6%6Ov7w~+d#Ain8Meq!=8 zR2xXv@FuMe5=zJSgXy~TbO?XuOzeIjT>~^8Vm4KROGyN>Cg){xF3ks b001Cm-o+zh@b~}#002ovPDHLkV1fVu*)^T= literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/ParaseaBanner.cs b/Items/Placeables/Banners/ParaseaBanner.cs new file mode 100644 index 0000000000..221a2fd96d --- /dev/null +++ b/Items/Placeables/Banners/ParaseaBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class ParaseaBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 11; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/ParaseaBanner.png b/Items/Placeables/Banners/ParaseaBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..aa91173ee8c40b66291666f3f5a80ff6a2c8ce59 GIT binary patch literal 288 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5Asb`)pjv*HQ$te!Zla96hpV&HY zzU}#rGwu%?R64FP1g{WFV>J74ZIy6>)N<{nD*k|wASfXBNHet=e>{zxNPc|)( zJaW@vTbre}UIMRfh0Osc&NSwWQVH|+)%{WiDPw%567kECUw2O3ft8HUZlQ7>>$~c&-5XpRopSNkIhMCEp`F;2KU9vX_ zTxFVF^60Cni1dY{59<^nojny)_EcY6e2jUQ#T~XurY=&I&AAbEdD>m_Km{Oc({!pV iTjDkVO$%dY&{%cm>Gasm4}d;q@O1TaS?83{!~g*NFLq-9 literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PerennialSlimeBanner.cs b/Items/Placeables/Banners/PerennialSlimeBanner.cs new file mode 100644 index 0000000000..54a6ca2f24 --- /dev/null +++ b/Items/Placeables/Banners/PerennialSlimeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PerennialSlimeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 92; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PerennialSlimeBanner.png b/Items/Placeables/Banners/PerennialSlimeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..68a8e7ba6aa2b3004fb58b6da9d1e28c5344219d GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsUA-k#}EtuY2(S)1EdV!_It@DJM8pW0uO_RF!A=Bd|A@%i~Bt&|M6ku6{1-oD!NC0P*fe-~a#s literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PestilentSlimeBanner.cs b/Items/Placeables/Banners/PestilentSlimeBanner.cs new file mode 100644 index 0000000000..6ea94ab658 --- /dev/null +++ b/Items/Placeables/Banners/PestilentSlimeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PestilentSlimeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 79; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PestilentSlimeBanner.png b/Items/Placeables/Banners/PestilentSlimeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..f8e887a54e11efd072297cb431deff2ea8df7185 GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsXR{?#}EtuYfch zEpjEU9yoBoK+21Uhex6_-$I4=%N(}HljlE9P!ovdn6Q>HR=LN&@FY7!<%RWk%_b?& R2inZw>FVdQ&MBdZ0RXLII=cV> literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PhantomDebrisBanner.cs b/Items/Placeables/Banners/PhantomDebrisBanner.cs new file mode 100644 index 0000000000..acfac18416 --- /dev/null +++ b/Items/Placeables/Banners/PhantomDebrisBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PhantomDebrisBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 86; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PhantomDebrisBanner.png b/Items/Placeables/Banners/PhantomDebrisBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..759974293339ed2af42622a7ef9897fe8b561454 GIT binary patch literal 327 zcmV-N0l5B&P)f0003FNklar<+y?6?uR;(HFQ=&Ofc0#wc+$Nhz;fKXf_b50Tv{%;H}@c7{vy3akwP0 Z8UW9o)9nK!d7c0O002ovPDHLkV1jxSgSY?y literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PhantomSpiritBanner.cs b/Items/Placeables/Banners/PhantomSpiritBanner.cs new file mode 100644 index 0000000000..6e585cd466 --- /dev/null +++ b/Items/Placeables/Banners/PhantomSpiritBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PhantomSpiritBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 84; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PhantomSpiritBanner.png b/Items/Placeables/Banners/PhantomSpiritBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..97041f4898b52970f59b94ca5cb430257725b312 GIT binary patch literal 240 zcmVf0002BNklm_8W=V~1t>200GU>#y#{PHm;e9(07*qoM6N<$f&c)BepBB7 literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PitbullBanner.cs b/Items/Placeables/Banners/PitbullBanner.cs new file mode 100644 index 0000000000..7fca34ce0c --- /dev/null +++ b/Items/Placeables/Banners/PitbullBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PitbullBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 53; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PitbullBanner.png b/Items/Placeables/Banners/PitbullBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..9e55ae89464c46f0c29f3856bc46741e32d44b05 GIT binary patch literal 321 zcmV-H0lxl;P)f00039NklB=dGP;6+=u>l zU=era!8;TibQFZ}$28FzVEF)MBFq|?0XS1D(HdlBl);8ResUMZ59s3X)Jn1jT|EP^ z$#M#^C^kHL@EFX$eCYyeS|VBl%s5z9_4e~cv0>|`&0s#xQiEs>=r+Ol6qkGe1HZiC TD76~300000NkvXXu0mjfa>Is+ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PlagueChargerBanner.cs b/Items/Placeables/Banners/PlagueChargerBanner.cs new file mode 100644 index 0000000000..0f84268cee --- /dev/null +++ b/Items/Placeables/Banners/PlagueChargerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PlagueChargerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 81; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PlagueChargerBanner.png b/Items/Placeables/Banners/PlagueChargerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..f8e887a54e11efd072297cb431deff2ea8df7185 GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsXR{?#}EtuYfch zEpjEU9yoBoK+21Uhex6_-$I4=%N(}HljlE9P!ovdn6Q>HR=LN&@FY7!<%RWk%_b?& R2inZw>FVdQ&MBdZ0RXLII=cV> literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PlaguebringerBanner.cs b/Items/Placeables/Banners/PlaguebringerBanner.cs new file mode 100644 index 0000000000..9a4f613066 --- /dev/null +++ b/Items/Placeables/Banners/PlaguebringerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PlaguebringerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 83; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PlaguebringerBanner.png b/Items/Placeables/Banners/PlaguebringerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..f8e887a54e11efd072297cb431deff2ea8df7185 GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsXR{?#}EtuYfch zEpjEU9yoBoK+21Uhex6_-$I4=%N(}HljlE9P!ovdn6Q>HR=LN&@FY7!<%RWk%_b?& R2inZw>FVdQ&MBdZ0RXLII=cV> literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PlagueshellBanner.cs b/Items/Placeables/Banners/PlagueshellBanner.cs new file mode 100644 index 0000000000..c905cc130e --- /dev/null +++ b/Items/Placeables/Banners/PlagueshellBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PlagueshellBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 80; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PlagueshellBanner.png b/Items/Placeables/Banners/PlagueshellBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..f8e887a54e11efd072297cb431deff2ea8df7185 GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsXR{?#}EtuYfch zEpjEU9yoBoK+21Uhex6_-$I4=%N(}HljlE9P!ovdn6Q>HR=LN&@FY7!<%RWk%_b?& R2inZw>FVdQ&MBdZ0RXLII=cV> literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/PrismTurtleBanner.cs b/Items/Placeables/Banners/PrismTurtleBanner.cs new file mode 100644 index 0000000000..af96a13038 --- /dev/null +++ b/Items/Placeables/Banners/PrismTurtleBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class PrismTurtleBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 98; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/PrismTurtleBanner.png b/Items/Placeables/Banners/PrismTurtleBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..1f467b4d74d76aa35b937eb6b889f5ccbe1eb447 GIT binary patch literal 294 zcmV+>0oneEP)f0002&Nkls+`|8U-X?0z6w1Gf0003YNklKmuSSTZ4fh7ucRZ;*Ul4X z1JN3^WMsj9P*Ze7iHBSF_k;P@o;*hN1KAoJ3{=1-YAQhDVfuzM_-!Cr!`%81u!$4q z9|hBwA3eu!1IZd-PI~+9D{(dutwEB54IB@NR;DQNF#p(TNLu>w3oR`Xs{!5Q)>=M@ z4Gz9ws@i!en1GP!!liM~u1Jg$zJq6Qn8;I5b3lf;qU>afK uFq3hH644saZG!P(Cd2sfJWZ?y0CFnUkAblX+5i9m07*qoM6N<$f&c&(`I5%~ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/ReaperSharkBanner.cs b/Items/Placeables/Banners/ReaperSharkBanner.cs new file mode 100644 index 0000000000..4ed2ff6b28 --- /dev/null +++ b/Items/Placeables/Banners/ReaperSharkBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class ReaperSharkBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 96; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/ReaperSharkBanner.png b/Items/Placeables/Banners/ReaperSharkBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..f4025cc100e6b10852d1b8eea0b8c2207cca28aa GIT binary patch literal 306 zcmV-20nPr2P)f0002^NklpQv!K+KYR5Q1s}#d;#;fEL(|c z1KAqRuSZR-hJldOiqi(7HNZmY&81%`eh|@PgZK?sC=sneLPj2JlDM=aiVZKHKF6L~ zN!9@K1I(>3YtY5vd3q3OfVmZxw_&9NE^&-fgOCOQ72eC$-=`T900000NkvXXu0mjf E0P7`x`2YX_ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/RubyCrawlerBanner.cs b/Items/Placeables/Banners/RubyCrawlerBanner.cs new file mode 100644 index 0000000000..3e23d64dc0 --- /dev/null +++ b/Items/Placeables/Banners/RubyCrawlerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class RubyCrawlerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 70; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/RubyCrawlerBanner.png b/Items/Placeables/Banners/RubyCrawlerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..e9b079cc2a150058343251027b17b3b2ac00433c GIT binary patch literal 294 zcmV+>0oneEP)f0002&NklL_|?kIHLGYL0&*`Ny&^g?B>`bDD4Z`{+kryiHOU{xUrdj`_sMAnta^cfGj* RGthqwp00i_>zopr7yw?YZVCVZ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/SapphireCrawlerBanner.cs b/Items/Placeables/Banners/SapphireCrawlerBanner.cs new file mode 100644 index 0000000000..8ea18ab606 --- /dev/null +++ b/Items/Placeables/Banners/SapphireCrawlerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class SapphireCrawlerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 68; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/SapphireCrawlerBanner.png b/Items/Placeables/Banners/SapphireCrawlerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..83093601b5bc5ddbd11af2df0455979e9b387f4f GIT binary patch literal 306 zcmV-20nPr2P)f0002^Nkl{4=m-#(lKFlV#4Mc0er4VM#qje9!O!k9o zz%(P(G{8)j3sL}^4D$<48whInX&-_TIxv%Q`hjE(e|S{DHvBaF?>*ghJkpwT7h}8f9d8NaJi+~(v00000NkvXXu0mjf E03C{TGynhq literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/ScornEaterBanner.cs b/Items/Placeables/Banners/ScornEaterBanner.cs new file mode 100644 index 0000000000..3ef0fee62a --- /dev/null +++ b/Items/Placeables/Banners/ScornEaterBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class ScornEaterBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 49; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/ScornEaterBanner.png b/Items/Placeables/Banners/ScornEaterBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..566d9fbc7c1d47c97882e371c550d6a100e0b695 GIT binary patch literal 321 zcmV-H0lxl;P)f00037NklNlQ6|f1*S4yGyAu=3dqjvZmR2xXv0P};Esx*q*Vb!6vNc3Sdx1^baZDIY zzq`K}OyjhHXbm2oSzwcT6Lx{=b6bCc>7}oIAvSKGhUy2BHNf)0+M5L^@er&&0nCTx z3wUZJSp(U@3d=Ascj1gUn3GgxQ1b&U2jcVtK@Bjgi7o`l)_|@N#;3UC0{{P)f00034NklSlLuQP&ZFo6t+)&Ntu)ddBs;$6$^R{iMHju2LTvisvWSAeWf8zv;UuFD& zY6H<4V8+(!>49T7agr-o=*g*jV0!nGyI{Kc(k0ZGCRzioU^SD5xV`Q;Bt9_wfF5xK zHK3=VQ%}F6#5hJwldJ*eBv`n^LeEEz7tHK@{1|&$B3gs?e*v%wFcV>(hS>zm7x2_d zv<8?7=}7pI>dvVO|;1X Q0000f0002VNklN0(CF{p6dOcz{(||7Vw%A;+yI?huUAC_iVfR3AbeQ-z$1xl4Ke{iC^kIV zunxZs1U0~%0*kn7GmfL!pp{{XKOTtIKyS@3gyaZD#dVCPA0hYti%PEZf0JDK;4Y1HcHyI|5VFMuz0C?iK?T=4hZU6uP07*qo IM6N<$g2?b>@Bjb+ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/SeaMinnowBanner.cs b/Items/Placeables/Banners/SeaMinnowBanner.cs new file mode 100644 index 0000000000..640e7e7dc3 --- /dev/null +++ b/Items/Placeables/Banners/SeaMinnowBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class SeaMinnowBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 105; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/SeaMinnowBanner.png b/Items/Placeables/Banners/SeaMinnowBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..aa6eebf84f97bcc7e36573d96c3176d1917d05a7 GIT binary patch literal 351 zcmV-l0igbgP)f0003bNklc|nW$!nZbh_eBw z2AETXG7G^bMNCKs(=ZMD)?5Yi-%ala(~J~r(9_UE38hOnF5$Ok4W{$vg88r*hldi$8bbC$+rnkbv<8@4VV?i`a1V+N=;ClmVl@B&|HaN7Gz>D300000NkvXXu0mjf001FgmXQDe literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/SeaSerpentBanner.cs b/Items/Placeables/Banners/SeaSerpentBanner.cs new file mode 100644 index 0000000000..6b72bfe987 --- /dev/null +++ b/Items/Placeables/Banners/SeaSerpentBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class SeaSerpentBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 106; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/SeaSerpentBanner.png b/Items/Placeables/Banners/SeaSerpentBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..e384093d740a47c861fe476170b44ea8fb4b0004 GIT binary patch literal 300 zcmV+{0n`48P)f0002;Nklc4!OfyofA>#ZA6dP6;T0m^L_5r&M zL~C%EI3H|+R)!@?JnYLY!EOV|8iXf0002YNklef0003ANkl4{?J_U+rje3(se8;I5bQ&?PF3^qwuR~N;G z%a<>M`MtfpV49I^4gOOgCI|9BY=VKJQ>kF)yJ^2sZ6H|#EOfNAv`}ogcI_IN4+|~0 zAIR1aP*sCs!-lpN{5BA+VdmkZV3R^;Yy{KcdWK+n<)!mrT4-q(YABJdVa>5eC?>DY z@CWnLZLP7}K(q!}ur3vX#5l}kf}upR2HM56nxYZd?N#-8C^6mEI0?+Zb^jb{D3Ppz z?8HaV(=Z3GE0G14M|!3xUSPO%8p03ic?>Qv;H3u18qjTm@nI&z_!uQ0%qCnK0N*ps W!E88>KL7v#07*qoM6N<$f&c)x@{0`s literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/SmallSightseerBanner.cs b/Items/Placeables/Banners/SmallSightseerBanner.cs new file mode 100644 index 0000000000..1f62408018 --- /dev/null +++ b/Items/Placeables/Banners/SmallSightseerBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class SmallSightseerBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 32; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/SmallSightseerBanner.png b/Items/Placeables/Banners/SmallSightseerBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..7904588742bd9a26c16d6cd20538e326b04338ab GIT binary patch literal 333 zcmV-T0kZyyP)f0003KNkl+ie`reP@n zBc@5#kdjq^;)glYCg8V$paxjdfO%R@R2;>IN3UPv4<({C$jiusO?vp`A&L#?;_!GN zSp&>ip_*(I8{V}{Md8D3AX$!URBba`3^$D1^PtXR_M+4_W(h}Jk zU`~SBba25{un^0}Q>cD`*+8@gm_l4m`_Q%ytmNF@x!{BfPpu?tK(`6ThnWoHqZErE fL3BT%YXAV2snV-vLm=4z00007Aa literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/SoulSluperBanner.cs b/Items/Placeables/Banners/SoulSluperBanner.cs new file mode 100644 index 0000000000..6a23e735ab --- /dev/null +++ b/Items/Placeables/Banners/SoulSluperBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class SoulSlurperBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 47; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/SoulSlurperBanner.png b/Items/Placeables/Banners/SoulSlurperBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..00c5bee7cfc6fa238d83621c00402a54096653bc GIT binary patch literal 330 zcmV-Q0k!^#P)f0003HNklIV7fGCc~l~mI5$rAX)<~ zl%BtUq*j>I2&PuDH6;9oxPGUs0{;8}vjL|DSSY|UQW6J51U>w5=4qletTk~1mm1Yi zP;*?X3?!z5&+I}iHAvR**xw&)gY3qQV3S}51jXt?a$0^bstqJ-fSCw$D=hTT4T6_^ c#A*NlRW#e{xepzt00000NkvXXu0mjf0IVy1rvLx| literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/StellarCulexBanner.cs b/Items/Placeables/Banners/StellarCulexBanner.cs new file mode 100644 index 0000000000..16c0e35a23 --- /dev/null +++ b/Items/Placeables/Banners/StellarCulexBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class StellarCulexBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 41; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/StellarCulexBanner.png b/Items/Placeables/Banners/StellarCulexBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..ddfc9652b52bdf5c42dbf6dee27431057e2134d9 GIT binary patch literal 336 zcmV-W0k8gvP)f0003MNklKCxYyzvSEQ$@kA3p~37j9mIY6Hm{U};EBR2;>IN3UOk z`LHwv_XE)yV8+2bPju2CS_4d>+VXa=Ww>JcR%9h=D3PoI7Sr2KZ9@qqFEcOvF-^3F z%C=mvNm(3_JPZTVen9egd(~uAKai|p{;~aF6I@OdqS&yf0003ENkl5D({+6-!StoO*TGQ$j|ZYPz=Bo2OABn$o5lZ7+%6K!1m-_1 zyM`JMBx|T$s{=Nnd6NW+4YhtRAmYJSP;DSu1A4G38p?uAijD07(>`{3U>avU5Ul~- zBwXaLjV8(07*qoM6N<$f&i<2gNFbB literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/SunBatBanner.cs b/Items/Placeables/Banners/SunBatBanner.cs new file mode 100644 index 0000000000..4290a51ea8 --- /dev/null +++ b/Items/Placeables/Banners/SunBatBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class SunBatBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 74; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/SunBatBanner.png b/Items/Placeables/Banners/SunBatBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..0a01b56e46dd7e4fd711f46de94d70c142f9ee28 GIT binary patch literal 276 zcmV+v0qg#WP)f0002nNkl_f;Wm)0q4`n^*rYuPMPS-xK_3eL;5jZZA8rH58epDA2_gmthVuunf`u?_AX)>= zL|6pc8+}8u1ZFZU1;CR5*&5KD28(%|HW1VRa|%o$EL05bwZVQN7)nHIfF+HN&=X*j z(US^BJPbk&=ott-)NrOHSVR%j082wKlW?Uecz&Ro28`5-o=VZ3L@;@y=Q#9|5Ff3zw90000f0002PNkl#T-0000f0002dNkl1kVkfoYgca2tr$fUXeTPv|x= zQeDI3k}F_KZ+!U)rU}}BQ$vcDER?bC}n4yMe!Cq9;l{) zdhvknB=l4Y^9W8q5Y(W-!wxn?)ZGOoR1UA*ianHw)}W@Y2QDSnPPPJ@v|_geiir`f zFTniZ++&dZK(U76j`t`w^i~Msw}GGrm~k+tq2~t}|JKb*;35fLE)lB%07f0003ZNklar<+yH`S^J- zjbQ`H8uA`o1)FpxqW~oye0Hn=^Cu~2qxykl4T{O?SVKo7L>Mf7f9_3G8%WlG66kn1 z@OU6u1A4H+40!$gIdSoTQ-hG24mgK#e*THqRo{8pA)!RJhWKMFkTk@53QTX>Di1Lc zntHFTdVp#J$r>~}AnD)F`yq-AW_IFW{z9uis5TI-0Twhc&%>N{dV&mC3g-5Ax2}K- u40x$QvIcaUV0@U#Fg`}f2eS#61^^F8$d5(!YMuZ9002ovPDHLkV1fYpkdUJQ literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/TrasherBanner.cs b/Items/Placeables/Banners/TrasherBanner.cs new file mode 100644 index 0000000000..da31316c1b --- /dev/null +++ b/Items/Placeables/Banners/TrasherBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class TrasherBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 3; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/TrasherBanner.png b/Items/Placeables/Banners/TrasherBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..1d2b3363e4feda8b542dca81ecb808c12e22979a GIT binary patch literal 246 zcmVf0002HNklJIlv~WDRP48Q)k}e zw}E60L)j0o2$NLfM~Ug@w?2aTuo#EO1IZe43$p-*K8OK43xg9+K0000f0003dNkl`nov|EW_)^z=*5_g#(fxS_4cWx{Y(IHi3mw+t+{%huc81hR>TAz;5UE zT?94}W^#n(8Wg|4Z6H}gjC~~7279aDU=v{`XZA*d`AZHiNA&~Q8a#q+!6u$Md=*T; zd-V>#4Mb}Y;FJLSfnP)hB`Q9?c>?Bt`2GUb4@7G~S12qkg<`|or_aEAm`#jiYk2pq z3v7~4+$j_rwk$FO^M$y|z%<+jk~P3WN87;y#fGZ~PT=Yfch zEpjEU9yoBoK+21Uhex6_-$I4=%N(}HljlE9P!ovdn6Q>HR=LN&@FY7!<%RWk%_b?& R2inZw>FVdQ&MBdZ0RXLII=cV> literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/WulfrumDroneBanner.cs b/Items/Placeables/Banners/WulfrumDroneBanner.cs new file mode 100644 index 0000000000..d97a7185b6 --- /dev/null +++ b/Items/Placeables/Banners/WulfrumDroneBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class WulfrumDroneBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 52; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/WulfrumDroneBanner.png b/Items/Placeables/Banners/WulfrumDroneBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..42706a4b587037952ebd4685f951179be878273f GIT binary patch literal 237 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsZE|Pjv*HQ$tev?p|;!q8 z`nEK-N1@Pwk;x^yLDS@`7<2ZOYtNlGK6rK1KjGiYwd)UoSeyv+&3J!if}I~wX~E|l&KoK- zIt{YZ&VOMxK3o&F;8&tRRs*Z{nX?A=OP1vylJ`={J|KE`%5jsEo&71i8*F?_*p#A~ lzk2gd;x-C0Wng%EV_j_g-5u;e*E4v!`njxgN@!wW001w8U912A literal 0 HcmV?d00001 diff --git a/Items/Placeables/Banners/WulfrumSlimeBanner.cs b/Items/Placeables/Banners/WulfrumSlimeBanner.cs new file mode 100644 index 0000000000..792b46bf67 --- /dev/null +++ b/Items/Placeables/Banners/WulfrumSlimeBanner.cs @@ -0,0 +1,25 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Banners +{ + public class WulfrumSlimeBanner : ModItem + { + public override void SetDefaults() + { + item.width = 10; + item.height = 24; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.createTile = mod.TileType("MonsterBanner"); + item.placeStyle = 51; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Banners/WulfrumSlimeBanner.png b/Items/Placeables/Banners/WulfrumSlimeBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..5ee1d8364bb502e57571175ac262a7f72b48e163 GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eN!3HEl7su5AsUA-k#}EtuTk$& z+hnQ|va-Q9;L%ivjSufV7f<-tw9R^jnZQ~`+lc&mx{ezi@9to)*ATqoux+^~U)UmB x-eRGPQf|(jGme-`c|BFVdQ&MBdZ0RRx9Ny-2K literal 0 HcmV?d00001 diff --git a/Items/Placeables/ChaosCandle.cs b/Items/Placeables/ChaosCandle.cs new file mode 100644 index 0000000000..8c4bdd7665 --- /dev/null +++ b/Items/Placeables/ChaosCandle.cs @@ -0,0 +1,48 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class ChaosCandle: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Chaos Candle"); + Tooltip.SetDefault("The mere presence of this candle enrages surrounding enemies drastically"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 20; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = 500; + item.createTile = mod.TileType("ChaosCandle"); + } + + public override void HoldItem(Player player) + { + player.GetModPlayer().chaosCandle = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.WaterCandle, 3); + recipe.AddIngredient(ItemID.SoulofNight, 3); + recipe.AddIngredient(null, "CoreofChaos", 6); + recipe.AddIngredient(null, "ZergPotion"); + recipe.SetResult(this, 1); + recipe.AddTile(18); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Placeables/ChaosCandle.png b/Items/Placeables/ChaosCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..8ac874e206cfff3b3e4e3f7f736d2fc79f1e9fef GIT binary patch literal 273 zcmV+s0q*{ZP)oe{nqa?XJ3&%j{PJ^Po0d&XMF|6#3l>HifyJlp zgQQGGiVcAI8D@~XI4ibn4;S0{@;4-9zPt{0DLh~(HUQlvxSRpA877aB8(}UX)&Kx* Xc$_!iQ)f#60000Fv(;0qFemaBtd8hY%`o6v2=Y5_h=*{M9 z8mvrPBKUrOtW+CvO^t$oS&8~)YitMrgL3j_vI1vjgCaX%aa0_YR!P1yHY#`U!7R*u(RR=I6XXw yfP=|w$PJ`F4JE{55d1cc%?Xide6RYSY5V|EVL@hbcB>Wu0000pPPiaF#P*7-ZbZ>KLZ*U+< zLqi~Na&Km7Y-Iodc-oy)XH-+^7Crag^g>IBfRsybQWXdwQbLP>6pAqfylh#{fb z6;Z(vMMVS~$e@S=j*ftg6;Uh>2n?1;Gf_2w45>mM5#WQz#Kz&|EGkv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Qn{*%*B$Ge=n zny$HAYq{=vy|sI0_vss+H_qMky?OB#|JK!>IX&II^LlUh#rO5!7TtbwC;iULyV-Xq z?ybB}ykGP{?LpZ?-G|jbTmIbG@7#ZCz<+n3^U>T#_XdT7&;F71j}JoykC~6lh7E@6 zo;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|zrTyx_>lv@x z#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fdMgRZ+%Sl8* zRCwCNlQ9ayFc^iuh**M)7K9ECx`=}gE*?Q}=;jR+4<#PKtwR@2;NoBhaZzXoQ7CSu zUFwi#sOTUDd{cNKc^~gj1ce&X$$$AmkK`%1NI!WuRgBN)> z+`-CC0oZw`QtLsgIyl-j0GeS|y1*R4r{sav2EYx~{MW_1Fh(H${u`eI02E6qI%)Pt R@(}<4002ovPDHLkV1llNij@EW diff --git a/Items/Placeables/ChaoticBrickWall.png b/Items/Placeables/ChaoticBrickWall.png index 0b2e28f760c0a5dea554c8d34e07ee0bfdf9e7f3..229c02d89cd0e221586e3fea84be0913ed482ccf 100644 GIT binary patch literal 414 zcmV;P0b%}$P)! zKTE?<6vcm07p1L@c8IYwSQ@B{7#&<3L}x#dv!AH5A~-on#YM#;v_zYs+J90fsY82P z-fM^oCg7P8a^89G=AN7zW5aZYgkU|lY5>&QLFjWq$+QfB=hkZ|Z!T)_UtmElPWCnd zxUKgAs098HVEgD0fTCAc7Cu$)0eCpO90D9$c>uPYGytbpcR&Ia7}A6MVhRBN<6R-l zXH$^^pB%`xKthsCe`0cLZ0y+6oW(5G-b(DoKk97bB<9n$@PApPPiaF#P*7-ZbZ>KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|m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&iTumN`_x1USuGU3>3CD062InS#Nx$l5ttDUOSQe=@KW*b&xLQqzZV=SLbSg*f+j^&r=;KN(n*EuI5%F)s&>>00-1qgMc0 z)SUC;*B=dJ^?6?n$>W4Xm?q&h^CVka{$ya93Gv#drliIad3wE= zbVpmdO!;;m_*SFH)Y_J+NBa?bz& N002ovPDHLkV1n6S?koTR diff --git a/Items/Placeables/ChaoticOre.cs b/Items/Placeables/ChaoticOre.cs index 6ed59038ae..c7e4c7a6bc 100644 --- a/Items/Placeables/ChaoticOre.cs +++ b/Items/Placeables/ChaoticOre.cs @@ -28,8 +28,8 @@ namespace CalamityMod.Items.Placeables item.width = 10; item.height = 10; item.maxStack = 999; - item.value = 8750; - item.rare = 8; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 8; } } } \ No newline at end of file diff --git a/Items/Placeables/ChaoticOre.png b/Items/Placeables/ChaoticOre.png index 1e820f53f18b770b7bb397a379b9731b0d45dfc8..97e5bd9674b153a4d4286a9d7ce296d004a6583b 100644 GIT binary patch delta 397 zcmV;80doH00;dCzB!6y6L_t(IjlI;rOO{a>#_`W%N|G=27HZ{dm_Nu67i)1){{Xk3 z-JwAmngag_p+6v+a&QvF#X*Qb8yrLt5lqBM5#Ay-d^Jsd8XgaE;+^E7YdHtbxzGLO zJ{MQg*3u3dOReDh?oO(T3g?P<8TVN zORY)1L}61o_!b?spJbo+WT=!8eLaYXg92IpL=D9z@M?bv)LqSFbUd5Y`>{bVG5#?l z8yg8k@+At6ZGYY?gX7g=bm47(M^&=TnHey7Ri7JC()X|joLyX|(A97!>OApb9rSl+ zr0*8DqX)JshdC29w8zM3S`0QVJ6R- riwP{3Gsovo6mlt~!N2-%3Hb+%n|sLOZ+xWy0000u<(iRR~WI$V+c}g5X=Dc zkYKQduWmm=v3RK&2biBU`#M&a!CgeLK`;Xp^-aMxg-83Kxa7^mwP1eR91}2YUU3;r z-@kYoOn>gnDRmvGKy?^@WTQIHRU;(C2u7S81 z?joug1Ph}Y21x82fAbMc;{tm{*uhe;u)+uJpgqF(mod).postMoonLordRarity = 20; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Placeables/EutrophicSand.cs b/Items/Placeables/EutrophicSand.cs new file mode 100644 index 0000000000..1a3af8c3e7 --- /dev/null +++ b/Items/Placeables/EutrophicSand.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Placeables +{ + public class EutrophicSand : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Eutrophic Sand"); + } + + public override void SetDefaults() + { + item.createTile = mod.TileType("EutrophicSand"); + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.width = 13; + item.height = 10; + item.maxStack = 999; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/EutrophicSand.png b/Items/Placeables/EutrophicSand.png new file mode 100644 index 0000000000000000000000000000000000000000..2a2a517f1e3af778d78599333bc6697ec0e8a0f1 GIT binary patch literal 2455 zcmc&$O>Em#9Cw-2jl!VS4s6rJEEg(9=lC;@?JlfY9M(up>6&cqq(FIo?oqB;qa{T<>|NZ{I z|L1#e&d!|PKXiDAVVM2dDQk|thofiTApJl3+h2gb9`>fr2MqJbf#?}v-v8hr!|c1} z6c)mT+_VWvEd~&=ajaSMs5HZzIN9_7T*4u1xjSENajb)q+!KBGL$sMWi}=umwV#JJxsPh2H2?g3vgmJmWi|)4wtVbS< z_O~+^5lAt5PBIk(YML$sJ`tBy9*L^X>ynCi8LE2Rjw>oM+E!Au7kq~n52*H|MywD; z1d4)0Ox+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O>6_(_IbHBz~=DT6WOedeTq$V-IzN` z({)r}h? zv4jzFJd-V#T!g88&%qYVWA|1HTB_$p1vQ(7OB|C_GJ_?14BPA=2AN(T7rjiXTd;$o!ibjfWave z=U}jXFyiXN)-8&1e(A5#mh+gB-k6t`s5H!YB)tUTXC8; z#%sMsVrcm6w+9nT&xrS?yk){DVb2}yKWJwf!1ljW zhc{2(_w?mUuX}w@w7>AM@NxO=-<5Yo=ESu_3Fe5>D3DJ$zQu4 z8E3ET-t$>%B))HE(bNOu;_}Fu=XdVi!(9F9)cKvKW?yQXoCevXcYN>2-qp;kGV{%s ztEz2lA7TzIesKNe9k1z?H~#$jt|R-u-}*rZnmxAUor;~ic<|`gyH+n8{cX$ikF!^pXWp5< VdcE_##go)|rZ?4R9P1w4_b=}~$L0V4 literal 0 HcmV?d00001 diff --git a/Items/Placeables/ExodiumClusterOre.cs b/Items/Placeables/ExodiumClusterOre.cs index 354601f42b..ee832dd46e 100644 --- a/Items/Placeables/ExodiumClusterOre.cs +++ b/Items/Placeables/ExodiumClusterOre.cs @@ -29,8 +29,21 @@ namespace CalamityMod.Items.Placeables item.width = 13; item.height = 10; item.maxStack = 999; - item.value = 5000; - item.rare = 3; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 10; } - } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.LunarOre, 3); + recipe.AddIngredient(ItemID.FragmentStardust); + recipe.AddIngredient(ItemID.FragmentSolar); + recipe.AddIngredient(ItemID.FragmentVortex); + recipe.AddIngredient(ItemID.FragmentNebula); + recipe.SetResult(this); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Placeables/Navystone.cs b/Items/Placeables/Navystone.cs new file mode 100644 index 0000000000..676c10d3dd --- /dev/null +++ b/Items/Placeables/Navystone.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Placeables +{ + public class Navystone : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Navystone"); + } + + public override void SetDefaults() + { + item.createTile = mod.TileType("Navystone"); + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.width = 13; + item.height = 10; + item.maxStack = 999; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/Navystone.png b/Items/Placeables/Navystone.png new file mode 100644 index 0000000000000000000000000000000000000000..12fccc4cfa6f2b58c9ddf71f4142425ace95b38d GIT binary patch literal 407 zcmV;I0cie-P)1gh6o%nvacmPWP7q{85I7=AND-;7x2wPc$9jv7o zkD?8((41zqXTP)a&YAB_W)(%}K4@*W!1C9!wkBGet!(ujl#93E$~y7?L>5UpTWzqI zp4ZU3(*swxJK*O_s>kWeK;^s>F9psO8K>6%r z4efqAOG^|}wGGH4XsI=l_eoHz0bdvw&#pgJAbTkF@q zLNCkYM5-{w@-Wr$6r!)jpGIKkZfM@53=Y3=d}5+(fA0x68+`zmXK(-UL8BlN{dn^; zY^2E3&RTXk5$~tG$U#+BYj4WVR+#$5H25hQ(O*AGY>6uwec}KB002ovPDHLkV1j4_ BxuXC8 literal 0 HcmV?d00001 diff --git a/Items/Placeables/NavystoneWall.cs b/Items/Placeables/NavystoneWall.cs new file mode 100644 index 0000000000..5e7cf1aaed --- /dev/null +++ b/Items/Placeables/NavystoneWall.cs @@ -0,0 +1,33 @@ +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class NavystoneWall : ModItem + { + public override void SetDefaults() + { + item.width = 12; + item.height = 12; + item.maxStack = 999; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 7; + item.useStyle = 1; + item.consumable = true; + item.createWall = mod.WallType("NavystoneWall"); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "Navystone"); + recipe.AddTile(18); + recipe.SetResult(this, 4); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Placeables/NavystoneWall.png b/Items/Placeables/NavystoneWall.png new file mode 100644 index 0000000000000000000000000000000000000000..8aa8a01f48dd3718423d4430665cd4c623f1c900 GIT binary patch literal 2149 zcmcImYiJx*6rNCDZEO*Xtw>GBNn32~?7Vm9PP&boout|7rZL&lh^zJP%$?mKyK|>A zv)N64NFP#Ltb!F$q=-KhqL_kUTcJpc6-2}zg47BH9}%KIss*KmRHApX54SZf`QyUu z+_`h^cfRwTbMKkMg9F=^FMD7aMN!LB{rV8O)8Td39pvAinD~?2mb(2<`V`f^GQ8TT zH;>&VX1DH(rR(eZSBLF27K)PBgI=)toGxN9_8HdvxL(iK8qj4q? zI;2O^gLD#mh*ly|)(~Wcj)8~}m1F=m(;_dZ9ItYM#0pVO<~32I>pzBg^Gr({();SZ z$Wxpt1c9q@T%}TpRHO*@@|*ww;CPV}MV45w{24FnzehG)BhjU75fggIOe z;tXM03!&sTVI99N6A_H7LYEUFd>B&0FrB`&X{pq-_JiIr;-$`aL0~^K?jmjo`MB&E zsCNuGL1)96X*AcmWv@6NscCSih)TrFC&YxNE4P3H>=*D&;%L5ZM&oKp55WL?8H|gK zL=84j=wvcX44@z0WjiLW_!~n~^)*O`0g5wW;#fgoB|alaniACn*N{wUpD==Px3T=qvC?BDN;@G4V_ic6{=^`8}^iO(6!UaAqP56z{<4=I*-nsv@8b& z#5U1&eeMLH$-;k-bS*nLoG1r)2pM<`dD(5SG=Z|aTd+Yi(JRY5NJx60qQ*o?Rdq>H z6wsprRgk2J>*wf7*)tLG@4Lu03dmcCK}+?t#6lRZ77f&u?W7 z8sP~NXN+*`Ad{(2+Y1!r;!XbICg9H zi`!2BFZ;Tgg=;AN`edg8euWa78e)_iezF6LI z^et}3ukU{Q&M|-Xo9ALPyWfAQvgeH*kh=VX_sM+^4$LqeKJ)T{%td+ai+p#-+4Vz@ zUY(hKY-+AbtvNLHlkoE@Z%(DM&tDi?XLjD(^VgYB6XFI~8@ z|2OL5!PBRvUFxY*#&<^!woNjb)px%(dFATX$llZX+_j5OKl8$p4^qjM$?ae=5q=1y MdI$95J6vy$;zusmMggu>nwwRi{!9fxXLaV_Y=?&xf`mC3}n#QJ^+6kpKmU^ z=Z-4H&5wI}!Nutbc(b+uR%e%T=#Dv6m%q+(n4Vt*okRb?`QCj{ zTW;pBNDjZHAt*g4KLHOPm2ce;BtceNUd-X?@MxBVAnT}17HV(T;M-BK@$Mt2_E*8q z`lciVr3j+dFQ4`c8#?RF{KU-j*7`2^e!8ECAiN%q3kL>CjITb-HBYn=CV2%=85sbL z?SmZNpKO7j^*ShzjTPprvrCBxA_$Vc>6hTB_O(FLu9e=YGz3>Zi2r?56C_#dro!t) tFGA^h(5~pov+)<;_wk>cYX>GH_zy4wX}}!`W(fcQ002ovPDHLkV1f*?x1|68 literal 0 HcmV?d00001 diff --git a/Items/Placeables/SeaPrism.cs b/Items/Placeables/SeaPrism.cs new file mode 100644 index 0000000000..72378701b3 --- /dev/null +++ b/Items/Placeables/SeaPrism.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Placeables +{ + public class SeaPrism : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sea Prism"); + } + + public override void SetDefaults() + { + item.createTile = mod.TileType("SeaPrism"); + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.width = 13; + item.height = 10; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 2; + } + } +} \ No newline at end of file diff --git a/Items/Placeables/SeaPrism.png b/Items/Placeables/SeaPrism.png index 71fb29ca28fa608f58546edaa02fa5482bcb68ab..f9ca3762cef4d0d8eef9eb7dea4825a3d7c41e1f 100644 GIT binary patch literal 325 zcmV-L0lNN)P)zDb7!6vw(XgO}5U|Vzh>%7^Z^OpQI}u4ENG>3yRT@F!Pirty#8y&; zwV6ZMQ8uu%Uo{7I=9wL4jzT9{cmkkMy9Z$NzVdXfbPd31^9DeSkhu{lk1vA~D0vX+qFgZB)1X$z<)CDm0)N{e-dwap*ab*)~{A=ET#0D&V z*o23|EC+`f#V&xy0?b$#4T}{RU&k*H#st%_*r1&YP^@EMU_f_~q`Veb3B@h|0FjS5 U+mV@*MF0Q*07*qoM6N<$f|vShC;$Ke diff --git a/Items/Placeables/Tenebris.cs b/Items/Placeables/Tenebris.cs index de9c40c62f..3f01076672 100644 --- a/Items/Placeables/Tenebris.cs +++ b/Items/Placeables/Tenebris.cs @@ -28,8 +28,8 @@ namespace CalamityMod.Items.Placeables item.width = 13; item.height = 10; item.maxStack = 999; - item.value = 2750; - item.rare = 6; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 7; } } } \ No newline at end of file diff --git a/Items/Placeables/TranquilityCandle.cs b/Items/Placeables/TranquilityCandle.cs new file mode 100644 index 0000000000..181af803e5 --- /dev/null +++ b/Items/Placeables/TranquilityCandle.cs @@ -0,0 +1,48 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class TranquilityCandle: ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Tranquility Candle"); + Tooltip.SetDefault("The mere presence of this candle calms surrounding enemies drastically"); + } + + public override void SetDefaults() + { + item.width = 16; + item.height = 20; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = 500; + item.createTile = mod.TileType("TranquilityCandle"); + } + + public override void HoldItem(Player player) + { + player.GetModPlayer().tranquilityCandle = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.PeaceCandle, 3); + recipe.AddIngredient(ItemID.SoulofLight, 3); + recipe.AddIngredient(ItemID.PixieDust, 4); + recipe.AddIngredient(null, "ZenPotion"); + recipe.SetResult(this, 1); + recipe.AddTile(18); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Placeables/TranquilityCandle.png b/Items/Placeables/TranquilityCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..998233ea259e51ba71bbeabf05f06a2c5ea1be53 GIT binary patch literal 279 zcmV+y0qFjTP)vH>s+ab^MFbN~a3 zPHjMmdYmqxngJ^}A4PFNxUV&7E+A+C+^Nt!085Fm^w2SFBiIFsvLaxm7%rfj0Wgay zvi!keaBy-c*kw5L0=gFn8i4K<6ZN0ySs#Ue<|aFskFz`=+W>Tz;Bp46#KKxkfi%H# dDIo&@wTr0HE5L0;00000NkvXXu0mjf000eZX{7)F literal 0 HcmV?d00001 diff --git a/Items/Placeables/UelibloomOre.cs b/Items/Placeables/UelibloomOre.cs index 347a235535..e790e41bc7 100644 --- a/Items/Placeables/UelibloomOre.cs +++ b/Items/Placeables/UelibloomOre.cs @@ -28,8 +28,8 @@ namespace CalamityMod.Items.Placeables item.width = 10; item.height = 10; item.maxStack = 999; - item.value = 8750; - } + item.value = Item.buyPrice(0, 0, 10, 0); + } public override void ModifyTooltips(List list) { diff --git a/Items/PlaguebringerGoliath/PlagueCellCluster.cs b/Items/PlaguebringerGoliath/PlagueCellCluster.cs index f2cb96cb86..45279cda89 100644 --- a/Items/PlaguebringerGoliath/PlagueCellCluster.cs +++ b/Items/PlaguebringerGoliath/PlagueCellCluster.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.PlaguebringerGoliath { -public class PlagueCellCluster : ModItem +namespace CalamityMod.Items.PlaguebringerGoliath { - public override void SetStaticDefaults() + public class PlagueCellCluster : ModItem { - DisplayName.SetDefault("Plague Cell Canister"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Plague Cell Canister"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.maxStack = 999; + item.value = Item.buyPrice(0, 5, 0, 0); + item.rare = 8; + } } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.maxStack = 999; - item.value = 3000; - item.rare = 8; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/PlaguebringerGoliath/PlaguebringerGoliathBag.cs b/Items/PlaguebringerGoliath/PlaguebringerGoliathBag.cs index 101c7e6038..a27e942bfd 100644 --- a/Items/PlaguebringerGoliath/PlaguebringerGoliathBag.cs +++ b/Items/PlaguebringerGoliath/PlaguebringerGoliathBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.PlaguebringerGoliath public class PlaguebringerGoliathBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,36 +30,65 @@ namespace CalamityMod.Items.PlaguebringerGoliath public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + if (Main.rand.Next(100) == 0) + { + player.QuickSpawnItem(mod.ItemType("Malachite")); + } + else if (CalamityWorld.defiled) + { + if (Main.rand.Next(20) == 0) + { + player.QuickSpawnItem(mod.ItemType("Malachite")); + } + } + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); - if(Main.rand.Next(3) == 0) + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("PestilentDefiler")); } - if(Main.rand.Next(3) == 0) + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("ThePlaguebringer")); } - if(Main.rand.Next(7) == 0) + if (Main.rand.Next(7) == 0) { player.QuickSpawnItem(mod.ItemType("PlaguebringerGoliathMask")); } - if(Main.rand.Next(3) == 0) + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("TheHive")); } - if(Main.rand.Next(3) == 0) + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("Malevolence")); } - if(Main.rand.Next(3) == 0) + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("DiseasedPike")); } - if(Main.rand.Next(3) == 0) + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("VirulentKatana")); } - if(Main.rand.Next(3) == 0) + if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("MepheticSprayer")); } @@ -67,6 +96,10 @@ namespace CalamityMod.Items.PlaguebringerGoliath { player.QuickSpawnItem(mod.ItemType("PlagueStaff")); } + if (Main.rand.Next(10) == 0) + { + player.QuickSpawnItem(mod.ItemType("BloomStone")); + } player.QuickSpawnItem(mod.ItemType("ToxicHeart")); player.QuickSpawnItem(mod.ItemType("PlagueCellCluster"), Main.rand.Next(13, 18)); } diff --git a/Items/PlaguebringerGoliath/ToxicHeart.cs b/Items/PlaguebringerGoliath/ToxicHeart.cs index ba7f5c2111..f02cc6d085 100644 --- a/Items/PlaguebringerGoliath/ToxicHeart.cs +++ b/Items/PlaguebringerGoliath/ToxicHeart.cs @@ -14,8 +14,7 @@ namespace CalamityMod.Items.PlaguebringerGoliath public override void SetStaticDefaults() { DisplayName.SetDefault("Toxic Heart"); - Tooltip.SetDefault("Blinds and weakens the player if above 85% life\n" + - "Summons a damaging plague aura around the player to destroy nearby enemies"); + Tooltip.SetDefault("Summons a damaging plague aura around the player to destroy nearby enemies"); } public override void SetDefaults() @@ -29,12 +28,6 @@ namespace CalamityMod.Items.PlaguebringerGoliath public override void UpdateAccessory(Player player, bool hideVisual) { - if (player.statLife >= (player.statLifeMax * 0.85f)) - { - player.blind = true; - player.statDefense -= 5; - player.moveSpeed -= 0.05f; - } int plagueCounter = 0; Lighting.AddLight((int)(player.Center.X / 16f), (int)(player.Center.Y / 16f), 0.05f, 1f, 0.1f); int num = mod.BuffType("Plague"); diff --git a/Items/Polterghast/NecroplasmicBeacon.cs b/Items/Polterghast/NecroplasmicBeacon.cs index 5602e87ff1..0be83b2936 100644 --- a/Items/Polterghast/NecroplasmicBeacon.cs +++ b/Items/Polterghast/NecroplasmicBeacon.cs @@ -25,19 +25,9 @@ namespace CalamityMod.Items.Polterghast item.useTime = 45; item.useStyle = 4; item.consumable = false; + item.GetGlobalItem(mod).postMoonLordRarity = 13; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - public override bool CanUseItem(Player player) { return player.ZoneDungeon && !NPC.AnyNPCs(mod.NPCType("Polterghast")); diff --git a/Items/Polterghast/PolterghastBag.cs b/Items/Polterghast/PolterghastBag.cs index eeab4b1c32..8f5acbfb92 100644 --- a/Items/Polterghast/PolterghastBag.cs +++ b/Items/Polterghast/PolterghastBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Polterghast public class PolterghastBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,7 +30,26 @@ namespace CalamityMod.Items.Polterghast public override void OpenBossBag(Player player) { - player.TryGettingDevArmor(); + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("Ectoheart")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } + player.TryGettingDevArmor(); if (Main.rand.Next(3) == 0) { player.QuickSpawnItem(mod.ItemType("BansheeHook")); @@ -61,10 +80,6 @@ namespace CalamityMod.Items.Polterghast } player.QuickSpawnItem(mod.ItemType("RuinousSoul"), Main.rand.Next(6, 11)); player.QuickSpawnItem(mod.ItemType("Affliction")); - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("Ectoheart")); - } } } } \ No newline at end of file diff --git a/Items/Polterghast/RuinousSoul.cs b/Items/Polterghast/RuinousSoul.cs index 0fc92dd6d1..00566d8051 100644 --- a/Items/Polterghast/RuinousSoul.cs +++ b/Items/Polterghast/RuinousSoul.cs @@ -22,18 +22,8 @@ namespace CalamityMod.Items.Polterghast item.width = 20; item.height = 20; item.maxStack = 999; - item.value = 100000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.value = Item.buyPrice(0, 7, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } } } \ No newline at end of file diff --git a/Items/PotionofOmniscience.cs b/Items/PotionofOmniscience.cs index f0a532767a..499193fdbc 100644 --- a/Items/PotionofOmniscience.cs +++ b/Items/PotionofOmniscience.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items item.consumable = true; item.buffType = mod.BuffType("Omniscience"); item.buffTime = 18000; - item.value = 10000; + item.value = Item.buyPrice(0, 2, 0, 0); } public override void AddRecipes() diff --git a/Items/ProfanedGuardian/ProfanedShard.cs b/Items/ProfanedGuardian/ProfanedShard.cs index 13f1b02cdd..62ab5d2f81 100644 --- a/Items/ProfanedGuardian/ProfanedShard.cs +++ b/Items/ProfanedGuardian/ProfanedShard.cs @@ -27,19 +27,9 @@ namespace CalamityMod.Items.ProfanedGuardian item.useTime = 45; item.useStyle = 4; item.consumable = true; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool CanUseItem(Player player) { return !NPC.AnyNPCs(mod.NPCType("ProfanedGuardianBoss")) && Main.dayTime && (player.ZoneHoly || player.ZoneUnderworldHeight); diff --git a/Items/Providence/DivineGeode.cs b/Items/Providence/DivineGeode.cs index c0ac06d5fe..8bcce99127 100644 --- a/Items/Providence/DivineGeode.cs +++ b/Items/Providence/DivineGeode.cs @@ -22,20 +22,10 @@ namespace CalamityMod.Items.Providence item.width = 15; item.height = 12; item.maxStack = 999; - item.rare = 11; - item.value = 120000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.rare = 10; + item.value = Item.buyPrice(0, 6, 50, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void Update(ref float gravity, ref float maxFallSpeed) { diff --git a/Items/Providence/ElysianWings.cs b/Items/Providence/ElysianWings.cs index bb05147403..b3f2ff1e8a 100644 --- a/Items/Providence/ElysianWings.cs +++ b/Items/Providence/ElysianWings.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Providence { CalamityPlayer modPlayer = player.GetModPlayer(mod); player.moveSpeed += 0.4f; - player.lavaMax += 920; + player.lavaMax += 240; player.wingTimeMax = 180; modPlayer.elysianFire = true; if (hideVisual) diff --git a/Items/Providence/ProfanedCore.cs b/Items/Providence/ProfanedCore.cs index 7c5609fb05..177d4023a0 100644 --- a/Items/Providence/ProfanedCore.cs +++ b/Items/Providence/ProfanedCore.cs @@ -28,6 +28,7 @@ namespace CalamityMod.Items.Providence item.useStyle = 4; item.consumable = true; item.rare = 9; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } public override bool CanUseItem(Player player) @@ -41,16 +42,5 @@ namespace CalamityMod.Items.Providence Main.PlaySound(SoundID.Roar, player.position, 0); return true; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } } } \ No newline at end of file diff --git a/Items/Providence/ProfanedCoreUnlimited.cs b/Items/Providence/ProfanedCoreUnlimited.cs index ddca60bb9b..e8cbcb708e 100644 --- a/Items/Providence/ProfanedCoreUnlimited.cs +++ b/Items/Providence/ProfanedCoreUnlimited.cs @@ -28,6 +28,7 @@ namespace CalamityMod.Items.Providence item.useStyle = 4; item.consumable = false; item.rare = 9; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } public override bool CanUseItem(Player player) @@ -41,23 +42,12 @@ namespace CalamityMod.Items.Providence Main.PlaySound(SoundID.Roar, player.position, 0); return true; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "ProfanedCore"); - recipe.AddIngredient(null, "DivineGeode", 5); + recipe.AddIngredient(null, "UnholyEssence", 50); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Providence/ProvidenceBag.cs b/Items/Providence/ProvidenceBag.cs index afe0c299f0..414510d459 100644 --- a/Items/Providence/ProvidenceBag.cs +++ b/Items/Providence/ProvidenceBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Providence public class ProvidenceBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,6 +30,24 @@ namespace CalamityMod.Items.Providence public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); if (Main.rand.Next(3) == 0) { @@ -60,8 +78,8 @@ namespace CalamityMod.Items.Providence player.QuickSpawnItem(mod.ItemType("ProvidenceMask")); } player.QuickSpawnItem(mod.ItemType("UnholyEssence"), Main.rand.Next(25, 36)); - player.QuickSpawnItem(mod.ItemType("DivineGeode"), Main.rand.Next(15, 26)); - player.QuickSpawnItem(mod.ItemType("RuneofCos")); + player.QuickSpawnItem(mod.ItemType("DivineGeode"), Main.rand.Next(15, 26)); + player.QuickSpawnItem(mod.ItemType("RuneofCos")); } } } \ No newline at end of file diff --git a/Items/Providence/UnholyEssence.cs b/Items/Providence/UnholyEssence.cs index 385c10aea5..2a1ea80bd8 100644 --- a/Items/Providence/UnholyEssence.cs +++ b/Items/Providence/UnholyEssence.cs @@ -23,20 +23,10 @@ namespace CalamityMod.Items.Providence item.width = 15; item.height = 12; item.maxStack = 999; - item.rare = 9; - item.value = 58750; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.rare = 10; + item.value = Item.buyPrice(0, 6, 50, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void Update(ref float gravity, ref float maxFallSpeed) { diff --git a/Items/PurifiedJam.cs b/Items/PurifiedJam.cs index 75e2e10f6b..91d41b6fab 100644 --- a/Items/PurifiedJam.cs +++ b/Items/PurifiedJam.cs @@ -21,13 +21,13 @@ namespace CalamityMod.Items item.height = 18; item.useTurn = true; item.maxStack = 30; - item.rare = 5; + item.rare = 3; item.useAnimation = 17; item.useTime = 17; item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.value = 2000; + item.value = Item.buyPrice(0, 2, 0, 0); } public override bool CanUseItem(Player player) diff --git a/Items/RedLightningContainer.cs b/Items/RedLightningContainer.cs index 653d40bb6b..cbcb09501a 100644 --- a/Items/RedLightningContainer.cs +++ b/Items/RedLightningContainer.cs @@ -29,19 +29,9 @@ namespace CalamityMod.Items item.useStyle = 4; item.UseSound = SoundID.Item122; item.consumable = true; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override bool CanUseItem(Player player) { CalamityPlayer modPlayer = player.GetModPlayer(mod); diff --git a/Items/RevivifyPotion.cs b/Items/RevivifyPotion.cs index 6867c98322..e69d9afef3 100644 --- a/Items/RevivifyPotion.cs +++ b/Items/RevivifyPotion.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items item.useStyle = 2; item.UseSound = SoundID.Item3; item.consumable = true; - item.value = 20000; + item.value = Item.buyPrice(0, 2, 0, 0); } public override bool UseItem(Player player) diff --git a/Items/Rock.cs b/Items/Rock.cs index 21b5d51ed6..04126246a3 100644 --- a/Items/Rock.cs +++ b/Items/Rock.cs @@ -1,27 +1,27 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items -{ - public class Rock : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Rock"); - Tooltip.SetDefault("The first object Xeroc ever created"); - } - - public override void SetDefaults() - { - item.width = 20; - item.height = 20; - item.value = 1; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items +{ + public class Rock : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Rock"); + Tooltip.SetDefault("The first object Xeroc ever created"); + } + + public override void SetDefaults() + { + item.width = 20; + item.height = 20; + item.value = Item.buyPrice(0, 0, 0, 1); + } + } } \ No newline at end of file diff --git a/Items/Scavenger/FleshTotem.cs b/Items/Scavenger/FleshTotem.cs index ad1d6b3c6e..3c7dc77c0b 100644 --- a/Items/Scavenger/FleshTotem.cs +++ b/Items/Scavenger/FleshTotem.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Scavenger { DisplayName.SetDefault("Flesh Totem"); Tooltip.SetDefault("Halves enemy contact damage\n" + - "When you take contact damage this effect has a 15 second cooldown"); + "When you take contact damage this effect has a 20 second cooldown"); } public override void SetDefaults() diff --git a/Items/Scavenger/RavagerBag.cs b/Items/Scavenger/RavagerBag.cs index f9da9c3329..419283d816 100644 --- a/Items/Scavenger/RavagerBag.cs +++ b/Items/Scavenger/RavagerBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Scavenger public class RavagerBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,44 +30,63 @@ namespace CalamityMod.Items.Scavenger public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("InfernalBlood")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); - if (CalamityWorld.downedProvidence) - { - player.QuickSpawnItem(mod.ItemType("Bloodstone"), Main.rand.Next(60, 71)); - player.QuickSpawnItem(mod.ItemType("VerstaltiteBar"), Main.rand.Next(7, 13)); - player.QuickSpawnItem(mod.ItemType("DraedonBar"), Main.rand.Next(7, 13)); - player.QuickSpawnItem(mod.ItemType("CruptixBar"), Main.rand.Next(7, 13)); - player.QuickSpawnItem(mod.ItemType("CoreofCinder"), Main.rand.Next(2, 5)); - player.QuickSpawnItem(mod.ItemType("CoreofEleum"), Main.rand.Next(2, 5)); - player.QuickSpawnItem(mod.ItemType("CoreofChaos"), Main.rand.Next(2, 5)); - player.QuickSpawnItem(mod.ItemType("BarofLife")); - if (Main.rand.Next(2) == 0) - { - player.QuickSpawnItem(mod.ItemType("CoreofCalamity")); - } - player.QuickSpawnItem(mod.ItemType("BloodflareCore")); - } - else - { - player.QuickSpawnItem(mod.ItemType("VerstaltiteBar"), Main.rand.Next(2, 4)); - player.QuickSpawnItem(mod.ItemType("DraedonBar"), Main.rand.Next(2, 4)); - player.QuickSpawnItem(mod.ItemType("CruptixBar"), Main.rand.Next(2, 4)); - player.QuickSpawnItem(mod.ItemType("CoreofCinder"), Main.rand.Next(1, 4)); - player.QuickSpawnItem(mod.ItemType("CoreofEleum"), Main.rand.Next(1, 4)); - player.QuickSpawnItem(mod.ItemType("CoreofChaos"), Main.rand.Next(1, 4)); - } - if (Main.rand.Next(2) == 0) - { - player.QuickSpawnItem(mod.ItemType("BloodPact")); - } - if (Main.rand.Next(2) == 0) - { - player.QuickSpawnItem(mod.ItemType("FleshTotem")); - } - if (Main.rand.Next(2) == 0) - { - player.QuickSpawnItem(mod.ItemType("Hematemesis")); - } - } + if (CalamityWorld.downedProvidence) + { + player.QuickSpawnItem(mod.ItemType("Bloodstone"), Main.rand.Next(60, 71)); + player.QuickSpawnItem(mod.ItemType("VerstaltiteBar"), Main.rand.Next(7, 13)); + player.QuickSpawnItem(mod.ItemType("DraedonBar"), Main.rand.Next(7, 13)); + player.QuickSpawnItem(mod.ItemType("CruptixBar"), Main.rand.Next(7, 13)); + player.QuickSpawnItem(mod.ItemType("CoreofCinder"), Main.rand.Next(2, 5)); + player.QuickSpawnItem(mod.ItemType("CoreofEleum"), Main.rand.Next(2, 5)); + player.QuickSpawnItem(mod.ItemType("CoreofChaos"), Main.rand.Next(2, 5)); + player.QuickSpawnItem(mod.ItemType("BarofLife")); + if (Main.rand.Next(2) == 0) + { + player.QuickSpawnItem(mod.ItemType("CoreofCalamity")); + } + player.QuickSpawnItem(mod.ItemType("BloodflareCore")); + } + else + { + player.QuickSpawnItem(mod.ItemType("VerstaltiteBar"), Main.rand.Next(2, 4)); + player.QuickSpawnItem(mod.ItemType("DraedonBar"), Main.rand.Next(2, 4)); + player.QuickSpawnItem(mod.ItemType("CruptixBar"), Main.rand.Next(2, 4)); + player.QuickSpawnItem(mod.ItemType("CoreofCinder"), Main.rand.Next(1, 4)); + player.QuickSpawnItem(mod.ItemType("CoreofEleum"), Main.rand.Next(1, 4)); + player.QuickSpawnItem(mod.ItemType("CoreofChaos"), Main.rand.Next(1, 4)); + } + if (Main.rand.Next(2) == 0) + { + player.QuickSpawnItem(mod.ItemType("BloodPact")); + } + if (Main.rand.Next(2) == 0) + { + player.QuickSpawnItem(mod.ItemType("FleshTotem")); + } + if (Main.rand.Next(2) == 0) + { + player.QuickSpawnItem(mod.ItemType("Hematemesis")); + } + } } } \ No newline at end of file diff --git a/Items/ShadowspecBar.cs b/Items/ShadowspecBar.cs index 9304dde398..ef14e93eb1 100644 --- a/Items/ShadowspecBar.cs +++ b/Items/ShadowspecBar.cs @@ -22,19 +22,9 @@ namespace CalamityMod.Items item.width = 15; item.height = 12; item.maxStack = 999; - item.value = 1000000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.value = Item.buyPrice(0, 10, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override void AddRecipes() { diff --git a/Items/SlimeGod/PurifiedGel.cs b/Items/SlimeGod/PurifiedGel.cs index d48d294594..ee71ab43bb 100644 --- a/Items/SlimeGod/PurifiedGel.cs +++ b/Items/SlimeGod/PurifiedGel.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items.SlimeGod item.width = 16; item.height = 14; item.maxStack = 999; - item.value = 3750; - item.rare = 4; + item.value = Item.buyPrice(0, 2, 50, 0); + item.rare = 4; } } } \ No newline at end of file diff --git a/Items/SlimeGod/SlimeGodBag.cs b/Items/SlimeGod/SlimeGodBag.cs index 702c7259c1..391a6b01b3 100644 --- a/Items/SlimeGod/SlimeGodBag.cs +++ b/Items/SlimeGod/SlimeGodBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.SlimeGod public class SlimeGodBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,6 +30,25 @@ namespace CalamityMod.Items.SlimeGod public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("ElectrolyteGelPack")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } int maskChoice = Main.rand.Next(2); if (Main.rand.Next(3) == 0) { @@ -66,14 +85,10 @@ namespace CalamityMod.Items.SlimeGod { player.QuickSpawnItem(mod.ItemType("GelDart"), Main.rand.Next(100, 126)); } - player.QuickSpawnItem(mod.ItemType("StaticRefiner")); - player.QuickSpawnItem(mod.ItemType("ManaOverloader")); + player.QuickSpawnItem(mod.ItemType("StaticRefiner")); + player.QuickSpawnItem(mod.ItemType("ManaOverloader")); player.QuickSpawnItem(ItemID.Gel, Main.rand.Next(150, 201)); player.QuickSpawnItem(mod.ItemType("PurifiedGel"), Main.rand.Next(30, 51)); - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("ElectrolyteGelPack")); - } } } } \ No newline at end of file diff --git a/Items/SquishyBeanMount.cs b/Items/SquishyBeanMount.cs index b0b7c1ce00..730efde911 100644 --- a/Items/SquishyBeanMount.cs +++ b/Items/SquishyBeanMount.cs @@ -19,8 +19,8 @@ namespace CalamityMod.Items item.useTime = 20; item.useAnimation = 20; item.useStyle = 1; - item.value = 100000000; - item.expert = true; + item.value = Item.buyPrice(1, 0, 0, 0); + item.expert = true; item.UseSound = SoundID.Item3; item.noMelee = true; item.mountType = mod.MountType("SquishyBean"); diff --git a/Items/Stardust.cs b/Items/Stardust.cs index c1e703ba07..679c9fed43 100644 --- a/Items/Stardust.cs +++ b/Items/Stardust.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class Stardust : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class Stardust : ModItem { - DisplayName.SetDefault("Stardust"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Stardust"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 18; + item.maxStack = 999; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; + } } - - public override void SetDefaults() - { - item.width = 26; - item.height = 18; - item.maxStack = 999; - item.value = 5000; - item.rare = 5; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/StormlionMandible.cs b/Items/StormlionMandible.cs index 65c0fd89e1..6fbc8c97a0 100644 --- a/Items/StormlionMandible.cs +++ b/Items/StormlionMandible.cs @@ -7,20 +7,22 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class StormlionMandible : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class StormlionMandible : ModItem { - DisplayName.SetDefault("Stormlion Mandible"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Stormlion Mandible"); + } + + public override void SetDefaults() + { + item.width = 12; + item.height = 24; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; + } } - - public override void SetDefaults() - { - item.width = 12; - item.height = 24; - item.maxStack = 999; - item.value = 3000; - item.rare = 2; - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/SunkenSea/AmidiasPendant.cs b/Items/SunkenSea/AmidiasPendant.cs new file mode 100644 index 0000000000..921ae2a276 --- /dev/null +++ b/Items/SunkenSea/AmidiasPendant.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.SunkenSea +{ + public class AmidiasPendant : ModItem + { + public const int ShardProjectiles = 2; + public const float ShardAngleSpread = 120; + public int ShardCountdown = 0; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Amidias' Pendant"); + Tooltip.SetDefault("Periodically rains down prism shards"); + } + + public override void SetDefaults() + { + item.width = 26; + item.height = 46; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 2; + item.accessory = true; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (ShardCountdown == 0) + { + ShardCountdown = 120; + } + if (ShardCountdown > 0) + { + ShardCountdown--; + if (ShardCountdown == 0) + { + if (player.whoAmI == Main.myPlayer) + { + int speed2 = 25; + float spawnX = Main.rand.Next(1000) - 500 + player.Center.X; + float spawnY = -1000 + player.Center.Y; + Vector2 baseSpawn = new Vector2(spawnX, spawnY); + Vector2 baseVelocity = player.Center - baseSpawn; + baseVelocity.Normalize(); + baseVelocity = baseVelocity * speed2; + for (int i = 0; i < ShardProjectiles; i++) + { + Vector2 spawn = baseSpawn; + spawn.X = spawn.X + i * 30 - (ShardProjectiles * 15); + Vector2 velocity = baseVelocity; + velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-ShardAngleSpread / 2 + (ShardAngleSpread * i / (float)ShardProjectiles))); + velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; + int type = 0; + int damage = 0; + switch (Main.rand.Next(3)) + { + case 0: type = mod.ProjectileType("PendantProjectile1"); + damage = 15; break; + case 1: type = mod.ProjectileType("PendantProjectile2"); + damage = 15; break; + case 2: type = mod.ProjectileType("PendantProjectile3"); + damage = 30; break; + } + int projectile = Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X / 3, velocity.Y / 2, type, damage, 5f, Main.myPlayer, 0f, 0f); + Main.projectile[projectile].tileCollide = false; + Main.projectile[projectile].timeLeft = 220; + } + } + } + } + } + } +} \ No newline at end of file diff --git a/Items/SunkenSea/AmidiasPendant.png b/Items/SunkenSea/AmidiasPendant.png new file mode 100644 index 0000000000000000000000000000000000000000..d594f73781d47bf47aa89614f8679194294acc4a GIT binary patch literal 932 zcmV;V16%xwP)9h26o9|SXr?U6@Jvf}Iw?~fKT(Q^pTtii#HwP0upnV6V&Ojxf`wSKupo%UPpm59 zFa9Dyj1l7fXveljbPLH0|0z}J>1n{duKZU zJ=d=RMKbS+N|6YG$hnP&T^&``Ow;t?v+IE(nP)@+=YW&s)?T%vzU&(S!VM7vAlH!r zV02Zr%v%7fceet?Sc&*YBr<-{A^`fbDkkB0Opzp00EB940mx_58cEynR?Uz9zq;7! z#Q>z*9$Emq(l-G(QM=OBfs-UuQ)>X^vuSOecSL5{6m4KII1+%WWeWkwBvKmLg(W)y zXg=Bk6!XdqR~i5Vov#206uxVIJtcCj#=&sN04R^Ds@ly2^BjPvsg@e|ZU9hWjs>8nssez`Tbcl{mabC%4jt28Ccdp&h>_?)A#J`6`-v_nW%x$c;r_@tOi|exybKhpwN!??S5yptzj$k}->R(-+5Yl& zth^`czTX8v#r*mq8P1$K6M%$G{=UBx66R6CabPC8JDjm(dm z{#)z;C^uF2WAuA`n+Wv(d+8a? zC;+)sw`&g`o2)Wk^3B-|g=0~}wg=!_<~HDG?=2*9-;oNi;lW7&F6}sN>)SM4*7v2} zNDraiCjE;M;M$kTj)hD*R>_-EzWt98j_argQJ-7@0000(mod); + modPlayer.giantPearl = true; + Lighting.AddLight((int)(player.position.X + (float)(player.width / 2)) / 16, (int)(player.position.Y + (float)(player.height / 2)) / 16, 0.45f, 0.8f, 0.8f); + } + } +} \ No newline at end of file diff --git a/Items/SunkenSea/GiantPearl.png b/Items/SunkenSea/GiantPearl.png new file mode 100644 index 0000000000000000000000000000000000000000..80ef815d2044663284f932f424742fc9e94e3863 GIT binary patch literal 619 zcmV-x0+juUP)Px%B}qg2FPvRBUWe+^?Noi@7HLT0U%v@ZTXyl8p$C&dvY; z&Ug02IzM-x+Yfax{R_BHRFm|EJODuNNKNc}EX4o-#jB#&*DTrY0b%_>)f;m(l68h? zhhFGPPKmEbLL`POxgHSq*EuIa?Pca!W(AU?NcfAiIgh(UDMm3#PEH#Ved#m+;Gs|u zbI+jRveCaF!0FoKG@2O(0Bw5Z& z&$=J=HZfl^s_D($rA@IfyD;yMOunQiNm3KkByBx`Gem>aGk-GA>53HOQH!!`hU9i; z8NhdvCaN__su4-b8KND!5-~cfIYXqDFwx7rO6i(Uk`zf&BpFY<0|3f-&%aauO+m{Y zq8zY7u=WNOeZDuIE}a?{BjcK+QL~-Ddqn9W)>e|O`X18RfYRPQSX}`C zq~_#vwQO&(HaSBy!l<|9J6(Gz-B;4n^kU^M>hF`@X4rS1^rfMip1COZg)Rji-WGg1-|NoTe9w4k*C8*^L(N7Kx@uVD*j>G@}002ovPDHLk FV1jSU8gBpq literal 0 HcmV?d00001 diff --git a/Items/SunkenSea/MolluskHusk.cs b/Items/SunkenSea/MolluskHusk.cs new file mode 100644 index 0000000000..574c17fe23 --- /dev/null +++ b/Items/SunkenSea/MolluskHusk.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.SunkenSea +{ + public class MolluskHusk : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Mollusk Husk"); + Tooltip.SetDefault("The remains of a mollusk"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 28; + item.maxStack = 999; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; + } + } +} \ No newline at end of file diff --git a/Items/SunkenSea/MolluskHusk.png b/Items/SunkenSea/MolluskHusk.png new file mode 100644 index 0000000000000000000000000000000000000000..a5f0c8f7b248a7839e6dd0497f63685a4a1b68a1 GIT binary patch literal 691 zcmV;k0!;mhP)_fKW>SaIjG{ z0fOg(bffmO2Eb@CA^`rjTL66D{>&g48feuCz|++i0G*KE1ZZZ<09;?WrF~G&7iDK& zHalAd6Cf}=EC9|%7XfG;N)MEpUynW5HO9iJu|jlOwz~z{UY(f%V0JDJz{j_r0GLQf zd-L@gU~3x@0l0mU>Di^>6ufYMB9Pcj79d8-&JTUE65l?#Af*&>(10!{;C z#q_8mD~qwDGc@9(+Puosw)LITRxwrDChkek%s(6lV0|?&@BI@XGZ1<-4n%xFSH-ay zPFeOJYu&6z-d0&8GsQ4-Kcm@)@BILTZ#1-X++*wsdIZ4Umjf-ImF7+;kMx7m`hQkf zSYOR+wyTv(^|cqs_~IDQ`{zA*-UrT?NvCcKfTO)Sa7vgdG`%7# z(ue2ov<;m#U#<6sWmdTV=5h}7(_FooynY$gl^^@syf5Sz0L^Mc8$Xkb3V{8bj1AWr Z{{!aJ{EH+_{;2=}002ovPDHLkV1l$pKV|>` literal 0 HcmV?d00001 diff --git a/Items/SuperDummy.cs b/Items/SuperDummy.cs index 9376c8b1ac..7b191a0794 100644 --- a/Items/SuperDummy.cs +++ b/Items/SuperDummy.cs @@ -62,7 +62,7 @@ namespace CalamityMod.Items { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.TargetDummy); - recipe.AddTile(null, "DraedonsForge"); + recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/SupremeCalamitas/EyeofExtinction.cs b/Items/SupremeCalamitas/EyeofExtinction.cs index e5a4aa466f..eae4647343 100644 --- a/Items/SupremeCalamitas/EyeofExtinction.cs +++ b/Items/SupremeCalamitas/EyeofExtinction.cs @@ -27,19 +27,9 @@ namespace CalamityMod.Items.SupremeCalamitas item.useTime = 45; item.useStyle = 4; item.consumable = false; + item.GetGlobalItem(mod).postMoonLordRarity = 15; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } - public override bool CanUseItem(Player player) { return !NPC.AnyNPCs(mod.NPCType("SupremeCalamitas")); diff --git a/Items/SupremeHealingPotion.cs b/Items/SupremeHealingPotion.cs index e4125ec92c..5c1dfa0698 100644 --- a/Items/SupremeHealingPotion.cs +++ b/Items/SupremeHealingPotion.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items item.width = 28; item.height = 18; item.useTurn = true; - item.maxStack = 30; + item.maxStack = 999; item.healLife = 250; item.useAnimation = 17; item.useTime = 17; @@ -28,19 +28,9 @@ namespace CalamityMod.Items item.UseSound = SoundID.Item3; item.consumable = true; item.potion = true; - item.value = 10000; + item.value = Item.buyPrice(0, 6, 50, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override void AddRecipes() { diff --git a/Items/SupremeManaPotion.cs b/Items/SupremeManaPotion.cs index 89437a0da0..04fe361560 100644 --- a/Items/SupremeManaPotion.cs +++ b/Items/SupremeManaPotion.cs @@ -1,54 +1,44 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.DataStructures; - -namespace CalamityMod.Items -{ - public class SupremeManaPotion : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Supreme Mana Potion"); - } - - public override void SetDefaults() - { - item.width = 28; - item.height = 18; - item.useTurn = true; - item.maxStack = 30; - item.healMana = 400; - item.useAnimation = 17; - item.useTime = 17; - item.useStyle = 2; - item.UseSound = SoundID.Item3; - item.consumable = true; - item.value = 10000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.SuperManaPotion); - recipe.AddIngredient(null, "Phantoplasm"); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.DataStructures; + +namespace CalamityMod.Items +{ + public class SupremeManaPotion : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Supreme Mana Potion"); + } + + public override void SetDefaults() + { + item.width = 28; + item.height = 18; + item.useTurn = true; + item.maxStack = 999; + item.healMana = 400; + item.useAnimation = 17; + item.useTime = 17; + item.useStyle = 2; + item.UseSound = SoundID.Item3; + item.consumable = true; + item.value = Item.buyPrice(0, 6, 50, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.SuperManaPotion); + recipe.AddIngredient(null, "Phantoplasm"); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/TheDevourerofGods/CosmicWorm.cs b/Items/TheDevourerofGods/CosmicWorm.cs index 47eacf520b..3e5af1fd0d 100644 --- a/Items/TheDevourerofGods/CosmicWorm.cs +++ b/Items/TheDevourerofGods/CosmicWorm.cs @@ -28,19 +28,9 @@ namespace CalamityMod.Items.TheDevourerofGods item.useTime = 45; item.useStyle = 4; item.consumable = false; + item.GetGlobalItem(mod).postMoonLordRarity = 13; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - public override bool CanUseItem(Player player) { return !NPC.AnyNPCs(mod.NPCType("DevourerofGodsHead")) && !NPC.AnyNPCs(mod.NPCType("DevourerofGodsHeadS")) && CalamityWorld.DoGSecondStageCountdown <= 0; diff --git a/Items/TheDevourerofGods/CosmiliteBar.cs b/Items/TheDevourerofGods/CosmiliteBar.cs index 818e22073b..393b8a7631 100644 --- a/Items/TheDevourerofGods/CosmiliteBar.cs +++ b/Items/TheDevourerofGods/CosmiliteBar.cs @@ -7,39 +7,31 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items.TheDevourerofGods { -public class CosmiliteBar : ModItem +namespace CalamityMod.Items.TheDevourerofGods { - public override void SetStaticDefaults() + public class CosmiliteBar : ModItem { - DisplayName.SetDefault("Cosmilite Bar"); - Tooltip.SetDefault("A chunk of highly-resistant cosmic steel"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Cosmilite Bar"); + Tooltip.SetDefault("A chunk of highly-resistant cosmic steel"); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6)); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 24; + item.maxStack = 999; + item.value = Item.buyPrice(0, 7, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } + + public override void Update(ref float gravity, ref float maxFallSpeed) + { + float num = (float)Main.rand.Next(90, 111) * 0.01f; + num *= Main.essScale; + Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0f * num, 0.5f * num); + } } - - public override void SetDefaults() - { - item.width = 15; - item.height = 12; - item.maxStack = 999; - item.value = 698750; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - - public override void Update(ref float gravity, ref float maxFallSpeed) - { - float num = (float)Main.rand.Next(90, 111) * 0.01f; - num *= Main.essScale; - Lighting.AddLight((int)((item.position.X + (float)(item.width / 2)) / 16f), (int)((item.position.Y + (float)(item.height / 2)) / 16f), 0.5f * num, 0f * num, 0.5f * num); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/TheDevourerofGods/DevourerofGodsBag.cs b/Items/TheDevourerofGods/DevourerofGodsBag.cs index 62af74581f..dfaf9bbbc3 100644 --- a/Items/TheDevourerofGods/DevourerofGodsBag.cs +++ b/Items/TheDevourerofGods/DevourerofGodsBag.cs @@ -1,17 +1,19 @@ using Terraria; using Terraria.ModLoader; using Terraria.ID; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; namespace CalamityMod.Items.TheDevourerofGods { public class DevourerofGodsBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -23,6 +25,12 @@ namespace CalamityMod.Items.TheDevourerofGods bossBagNPC = mod.NPCType("DevourerofGodsHeadS"); } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Vector2 origin = new Vector2(18f, 17f); + spriteBatch.Draw(mod.GetTexture("Items/TheDevourerofGods/DevourerofGodsBagGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f); + } + public override bool CanRightClick() { return true; @@ -30,6 +38,43 @@ namespace CalamityMod.Items.TheDevourerofGods public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + if (player.GetModPlayer(mod).fabsolVodka) + { + player.QuickSpawnItem(mod.ItemType("Fabsol")); + } + if (CalamityWorld.death && player.difficulty == 2) + { + player.QuickSpawnItem(mod.ItemType("CosmicPlushie")); + } + if (Main.rand.Next(100) == 0) + { + player.QuickSpawnItem(mod.ItemType("CosmicDischarge")); + } + else if (CalamityWorld.defiled) + { + if (Main.rand.Next(20) == 0) + { + player.QuickSpawnItem(mod.ItemType("CosmicDischarge")); + } + } + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); if (Main.rand.Next(3) == 0) { @@ -63,18 +108,7 @@ namespace CalamityMod.Items.TheDevourerofGods { player.QuickSpawnItem(mod.ItemType("StaffoftheMechworm")); } - if (CalamityWorld.revenge) - { - if (player.GetModPlayer(mod).fabsolVodka) - { - player.QuickSpawnItem(mod.ItemType("Fabsol")); - } - if (CalamityWorld.death && player.difficulty == 2) - { - player.QuickSpawnItem(mod.ItemType("CosmicPlushie")); - } - } - player.QuickSpawnItem(mod.ItemType("CosmiliteBar"), Main.rand.Next(30, 40)); + player.QuickSpawnItem(mod.ItemType("CosmiliteBar"), Main.rand.Next(30, 40)); player.QuickSpawnItem(mod.ItemType("NebulousCore")); } } diff --git a/Items/TheDevourerofGods/DevourerofGodsBag.png b/Items/TheDevourerofGods/DevourerofGodsBag.png index 58fd0adf49063869a1be3cd664311804cd6d0089..fa51fe7f445be1ffb0cd9162c310a568f4af633c 100644 GIT binary patch literal 899 zcmV-}1AP36P)8{$eP=v4`A&ZQJ zd|4Sd&t*0^HHhZ$xGm26-}T)0ZUnWs|K{8?{r8;j{KL7|z(I07yR^Cy5e-08YytrD zGh?RH+`kk9plkfC*0|~)mHu}Lw>Jox#BJ#SOpXqk0Ory>0E=p4r0qMS&D)%tsLH~P zAzw81@(TbhcW(W0LGC9cB4iGfT>yf2o|EGVIj_5W9I%Ltbxi^=sp98=!aQ>EgH5D2!RWx%qb*n>U*KE3Kw zdOMqyzLWw3VC35<09{>8fEx+fvpQe`T)KQ!Yit`C1T0ebsu}?2ICQqM6aepy=Kv&S z=V;?v8>$0qSlRA6LgDy{ILX$cZK_0-^|em`i-0|+ZSPhDh0MvKQ(C`}ULo51T}cSA zylJAh8?bgFWJC&5RE}$Vtok<$tke3vO`&Z@MD&NnZ2=(7lLc7b=Uzgxa{HN!%?KG0 z@sd^t#X?9(i+*XB^5xU}+C29Wii}!g0Q7e@n*eS8m7gv@0t9=PkU77n5`c=-3{9cr zxSED405bEA0>R`THa!5W+(}r30d6F;@av}*2jr~lYgJurM@q37A!E;F6^*LB=C!Ij z+0xK>pS}{`k_m1kBo9uxOU_zE;)lrfYdu=sZc}zIlDJcNxI}9g+jJcvqvTK-5Pbg; zFB5s+r0y+3Od_k?Bt_(AC?ti1J&xJ+BqV3J)5`+)A^RO##GZ4+YXbL~*m(WhZg$!P zEB=T#1>%iOV%Kgk0A_!D1>8tT9-RIMMaQUYKKK2z)4j?5^&5Izc%&M)yb!Wmz6V`L Z=r?TlFkFV#)lvWe002ovPDHLkV1ib;o%H|! literal 5802 zcmds(Ye*DP6vxkISh@K@%(XU4G1N96SYc8`uxh$eYhnu37mbLN1f>vSqp*S~2%}ok zROs=sLMRK8LL;)U2t%?>O-nOD4UNz!NVdD@&VOl!^+kPXT-f>FbM9m2{N~KL_iT1n zMqq$BfQSM!ZD~0|vCG%~?Lr36W3+#6 zo$_hsP1*Y&cFv#eGfhS^GAU2BRM?s&Y=s{H*e;>C+!|JyIDJuh#u&h#>O34`pG z{33<{au$o(Cmfe+fc;vc80_kh{g$LW&fV!qC&Xp(RNWDtag`8+0f(yrNWR?#thjcs?erKf)l3+(FPUK6azYTIgVe$xdKEwJt9>5vEiq~R5k|ns9Yi?X;X)TH z?EP{}rz%4N`z!59s&ODc)Gc$`+o|k?raoC^VuFlv-R~pbA)W^A1LwAk?cBt-q+h~_ zDEB~$(v;fQAhSzLekaK{5aPD*cn}9+tcRTrMBxX?kQh0?sNx{HShe>>r+x|FZ@4Fe zXpn-)5t%o~6$c1G3u9ylstD#yM;34N_LW9VVa2*Cr!e$KSe%A<2hrAJMA$PR>myI#z+kLaxe!>xdZqO5A=GLsVx|D*G FzX43}ZW90i diff --git a/Items/TheDevourerofGods/DevourerofGodsBagGlow.png b/Items/TheDevourerofGods/DevourerofGodsBagGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..eaef349d7d9e42246698e709f6825d84b586b911 GIT binary patch literal 691 zcmV;k0!;mhP)gQs76l;lDeE}st|8%`@YB$NuJZsSObdYP`3E*Y zD_a%+QHB6GSlcN8uFO2N0glIZ0??lu1fapF69ALe6aeERmw|tQAqmNpShER$He&+- zwiUAhF19=KWj(44i?!Ga_Lyz*ZP-6bNIQl~8j_kxtZxS3*4<0M;<@vy8cLX! z0C+V&Bf_l9}{u&IUNS zHm=zFrn7QgDE5=9QhhMFnI;xD% z^iC*asVVompwN$@-P;ZWi~UbfoO?GW0Qz(Hlnzi-Y!Lt_Rbn z=;8E@K#sEN`yptR?`YfsK;gqQpd&-_!tZ}jq-rSuk6#Spg`gd0a&@P3vGCc`F8#D) Z=nFLSzeve9MrHs2002ovPDHLkV1lsuNCE%= literal 0 HcmV?d00001 diff --git a/Items/TheDevourerofGods/NebulousCore.cs b/Items/TheDevourerofGods/NebulousCore.cs index d6a9311d93..19cd164e67 100644 --- a/Items/TheDevourerofGods/NebulousCore.cs +++ b/Items/TheDevourerofGods/NebulousCore.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Items.TheDevourerofGods CalamityCustomThrowingDamagePlayer.ModPlayer(player).throwingDamage += 0.12f; player.rangedDamage += 0.12f; player.minionDamage += 0.12f; - int damage = 300; + int damage = 1500; float knockBack = 3f; if (Main.rand.Next(15) == 0) { diff --git a/Items/TheDevourerofGods/NebulousCore.png b/Items/TheDevourerofGods/NebulousCore.png index 9a89d296f17e880e25f0130bee40b01d65aba1f7..17ac03804ff7381bee37af0a5982f84a7f7427b7 100644 GIT binary patch literal 716 zcmV;-0yF)IP)#*1|YG|1HhHmjmj_Zxm=AGhJFLkANvSEd~U)3coKV&H_wv4+xNeN z;qx?Qia9LwTvX$lS8)JR@AQc}>P`aCS+`l)cRV^%bOY{TU~iyHO(Z|O2Vg2P3_#hc z^+f~y>S_mIY3MEh3v*up*wT0afa+~t0^ZMN<0GOHlrUHrG9DktJ6*{@(b)Erv zksU3stTh14cr*ixyV-TVHQ8tLT4kRZ`wDIqP)71Q{00009a7bBm000XU z000XU0RWnu7ytkOAY({UO#lFTB>(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ-+et)0RCwCVmb*(_K@^9-Q7c^#7GtqlFuN|AbumE%U)XG)Wy>hoh@D_#87zdX ze}Qcvc3KItg@`YZ4L(4VVq+5V`eIRh#B@Qya4p7>J=d$m#_=?B@60)e`R@6hJEQnd z>*@I97Qg?#EO=cM!1Vg?gLz7LVpHa!F_Cip*4|d8U4XIXHvl9W_5rBQ9SY~b&p#rr zaIx;2&pzQm?;rq6lMcmXrKvIz_%C|}K=ORqm-J~04_GPLrbt6fc{8K1e%(@b{wHvZw*g>{QzL+a0|ON zG-PH+ROn&;Qjh(_L?5ETZpnft2YMoi$Yb)_Cp4~KI*;;yc6qRzRdwp zpG?a?#tN&)g0Qf8 z20*x>3V{7>L|pV9Qu~Bvhpox9DkjclM_qt$Yex9zvZGquv2F!W`uE)Aas5c`5qkT@ zkU2*)E list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.value = Item.buyPrice(0, 6, 50, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/UnholyCore.cs b/Items/UnholyCore.cs index 274ca88382..80f94fcb64 100644 --- a/Items/UnholyCore.cs +++ b/Items/UnholyCore.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items item.width = 15; item.height = 12; item.maxStack = 999; - item.value = 58750; - item.rare = 5; + item.value = Item.buyPrice(0, 4, 0, 0); + item.rare = 6; } public override void AddRecipes() diff --git a/Items/VerstaltiteBar.cs b/Items/VerstaltiteBar.cs index a224bc4539..d7a4395f40 100644 --- a/Items/VerstaltiteBar.cs +++ b/Items/VerstaltiteBar.cs @@ -18,11 +18,11 @@ namespace CalamityMod.Items public override void SetDefaults() { - item.width = 15; - item.height = 12; + item.width = 30; + item.height = 24; item.maxStack = 999; - item.value = 100000; - item.rare = 5; + item.value = Item.buyPrice(0, 3, 0, 0); + item.rare = 5; } public override void AddRecipes() diff --git a/Items/VictideBar.cs b/Items/VictideBar.cs index b99189ebdf..8604bd219a 100644 --- a/Items/VictideBar.cs +++ b/Items/VictideBar.cs @@ -7,32 +7,34 @@ using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -namespace CalamityMod.Items { -public class VictideBar : ModItem +namespace CalamityMod.Items { - public override void SetStaticDefaults() + public class VictideBar : ModItem { - DisplayName.SetDefault("Victide Bar"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Victide Bar"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 24; + item.maxStack = 999; + item.value = Item.buyPrice(0, 0, 50, 0); + item.rare = 2; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "VictoryShard"); + recipe.AddIngredient(ItemID.Coral); + recipe.AddIngredient(ItemID.Starfish); + recipe.AddIngredient(ItemID.Seashell); + recipe.AddTile(TileID.Furnaces); + recipe.SetResult(this); + recipe.AddRecipe(); + } } - - public override void SetDefaults() - { - item.width = 15; - item.height = 12; - item.maxStack = 999; - item.value = 15750; - item.rare = 2; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "VictoryShard"); - recipe.AddIngredient(ItemID.Coral); - recipe.AddIngredient(ItemID.Starfish); - recipe.AddIngredient(ItemID.Seashell); - recipe.AddTile(TileID.Furnaces); - recipe.SetResult(this); - recipe.AddRecipe(); - } -}} \ No newline at end of file +} \ No newline at end of file diff --git a/Items/Weapons/AMR.cs b/Items/Weapons/AMR.cs index b0bcbd1c0a..e7492632d2 100644 --- a/Items/Weapons/AMR.cs +++ b/Items/Weapons/AMR.cs @@ -37,24 +37,14 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 12f; item.useAmmo = 97; - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override Vector2? HoldoutOffset() { return new Vector2(-10, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/AbyssWeapons/CalamarisLament.cs b/Items/Weapons/AbyssWeapons/CalamarisLament.cs index b7bd42ba86..1fe44dd387 100644 --- a/Items/Weapons/AbyssWeapons/CalamarisLament.cs +++ b/Items/Weapons/AbyssWeapons/CalamarisLament.cs @@ -41,18 +41,8 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.shoot = mod.ProjectileType("Calamari"); item.shootSpeed = 10f; item.summon = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/AbyssWeapons/EidolicWail.cs b/Items/Weapons/AbyssWeapons/EidolicWail.cs index 8337e7333e..120b0b41d4 100644 --- a/Items/Weapons/AbyssWeapons/EidolicWail.cs +++ b/Items/Weapons/AbyssWeapons/EidolicWail.cs @@ -35,22 +35,12 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.autoReuse = true; item.shootSpeed = 5f; item.shoot = mod.ProjectileType("EidolicWail"); - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override Vector2? HoldoutOffset() { return new Vector2(-5, 0); } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } } } \ No newline at end of file diff --git a/Items/Weapons/AbyssWeapons/HalibutCannon.cs b/Items/Weapons/AbyssWeapons/HalibutCannon.cs index 692f4091cd..cabc236590 100644 --- a/Items/Weapons/AbyssWeapons/HalibutCannon.cs +++ b/Items/Weapons/AbyssWeapons/HalibutCannon.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons public override void SetDefaults() { - item.damage = 3; + item.damage = 6; item.ranged = true; item.width = 108; item.height = 54; @@ -44,8 +44,8 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - if (Main.hardMode) { item.damage = 6; } - if (NPC.downedMoonlord) { item.damage = 12; } + if (Main.hardMode) { item.damage = 12; } + if (NPC.downedMoonlord) { item.damage = 24; } int num6 = Main.rand.Next(25, 36); for (int index = 0; index < num6; ++index) { diff --git a/Items/Weapons/AbyssWeapons/SoulEdge.cs b/Items/Weapons/AbyssWeapons/SoulEdge.cs index 527945b4ae..1a55332fa3 100644 --- a/Items/Weapons/AbyssWeapons/SoulEdge.cs +++ b/Items/Weapons/AbyssWeapons/SoulEdge.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.rare = 10; item.shoot = mod.ProjectileType("GhastlySoulLarge"); item.shootSpeed = 12f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/AbyssWeapons/SulphuricAcidCannon.cs b/Items/Weapons/AbyssWeapons/SulphuricAcidCannon.cs index 7661d9d7e9..960148a9f8 100644 --- a/Items/Weapons/AbyssWeapons/SulphuricAcidCannon.cs +++ b/Items/Weapons/AbyssWeapons/SulphuricAcidCannon.cs @@ -33,18 +33,8 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons item.UseSound = SoundID.Item95; item.shoot = mod.ProjectileType("SulphuricAcidCannon2"); item.shootSpeed = 7f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override Vector2? HoldoutOffset() { diff --git a/Items/Weapons/AbyssWeapons/UndinesRetribution.cs b/Items/Weapons/AbyssWeapons/UndinesRetribution.cs index 6345866b72..77c10d14cc 100644 --- a/Items/Weapons/AbyssWeapons/UndinesRetribution.cs +++ b/Items/Weapons/AbyssWeapons/UndinesRetribution.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons public override void SetDefaults() { - item.damage = 36; + item.damage = 30; item.magic = true; item.mana = 15; item.width = 64; diff --git a/Items/Weapons/AccretionDiskMelee.cs b/Items/Weapons/AccretionDiskMelee.cs index f2412828da..3115685e2c 100644 --- a/Items/Weapons/AccretionDiskMelee.cs +++ b/Items/Weapons/AccretionDiskMelee.cs @@ -35,19 +35,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("AccretionDiskMelee"); item.shootSpeed = 13f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/AcidBullet.cs b/Items/Weapons/AcidBullet.cs index 89bf6cc90b..6205b18031 100644 --- a/Items/Weapons/AcidBullet.cs +++ b/Items/Weapons/AcidBullet.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 36; + item.damage = 28; item.ranged = true; item.width = 8; item.height = 8; diff --git a/Items/Weapons/AegisBlade.cs b/Items/Weapons/AegisBlade.cs index 41ae006489..0649249212 100644 --- a/Items/Weapons/AegisBlade.cs +++ b/Items/Weapons/AegisBlade.cs @@ -36,19 +36,9 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(0, 60, 0, 0); item.shootSpeed = 9f; item.shoot = mod.ProjectileType("NobodyKnows"); + item.GetGlobalItem(mod).postMoonLordRarity = 17; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, Main.DiscoG, 53); - } - } - } - public override bool AltFunctionUse(Player player) { return true; diff --git a/Items/Weapons/AethersWhisper.cs b/Items/Weapons/AethersWhisper.cs index e4d8154069..fee9d99b21 100644 --- a/Items/Weapons/AethersWhisper.cs +++ b/Items/Weapons/AethersWhisper.cs @@ -37,24 +37,14 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shootSpeed = 12f; item.shoot = mod.ProjectileType("AetherBeam"); - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override Vector2? HoldoutOffset() { return new Vector2(-10, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - public override bool AltFunctionUse(Player player) { return true; diff --git a/Items/Weapons/Alluvion.cs b/Items/Weapons/Alluvion.cs index 6c8e637549..6453e5b906 100644 --- a/Items/Weapons/Alluvion.cs +++ b/Items/Weapons/Alluvion.cs @@ -6,7 +6,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -//using TerrariaOverhaul; namespace CalamityMod.Items.Weapons { @@ -39,23 +38,8 @@ namespace CalamityMod.Items.Weapons item.shoot = 1; item.shootSpeed = 17f; item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/AlphaRay.cs b/Items/Weapons/AlphaRay.cs index 3cba38f7c9..fbc7b6997d 100644 --- a/Items/Weapons/AlphaRay.cs +++ b/Items/Weapons/AlphaRay.cs @@ -36,23 +36,13 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shootSpeed = 6f; item.shoot = mod.ProjectileType("ParticleBeamofDoom"); - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override Vector2? HoldoutOffset() { return new Vector2(-5, 0); } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } public override bool AltFunctionUse(Player player) { diff --git a/Items/Weapons/AncientShiv.png b/Items/Weapons/AncientShiv.png index 132c07448ce4969ebeee4a30e6c53afdeba73808..baa82de97cd9e6d06197d2f96c36c74ba686aca7 100644 GIT binary patch delta 328 zcmV-O0k{6&0^$OYBYyw^b5ch_0Itp)=>Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi z!vFvd!vV){sAK>D02p*dSaefwW^{L9a%BK;VQFr3E^cLXAT%y9E-_;&oJ#-z0MkiC zK~zXf)zGmC0znXk;cdeX3`_+<3=B+d!UilrFfyARpicl5p69tZnu2c42TB%s>n3v0u{RFp%WH arMv-0K3ubyi=Jr!0000gL)dc%YN?Hd@{}(Vo ziCe1snC=!63fecXuY-O3_0wjQXr(xg>25KhpuK#c8mmuX1%DRVKBl|HxGaR_Q(SS1 zUNn>JW4c>REelDGW4c>RZ3~I^G2JXS(GWmsDZKujhEn#DntE|HG%!;2fLpv{LoV2{ z)%B0S^o}#)V4B!`ip!@s;~3`S0kb$Nz#Qy23rkTjomajEOrN>&f#gC5o9}VPG2JYN z1u@LRWgAXnjXox-` list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void AddRecipes() { diff --git a/Items/Weapons/ApoctosisArray.cs b/Items/Weapons/ApoctosisArray.cs index 85f4fed1d7..cd2af6c3fd 100644 --- a/Items/Weapons/ApoctosisArray.cs +++ b/Items/Weapons/ApoctosisArray.cs @@ -34,19 +34,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("IonBlast"); item.shootSpeed = 8f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override Vector2? HoldoutOffset() { return new Vector2(-25, 0); diff --git a/Items/Weapons/Apotheosis.cs b/Items/Weapons/Apotheosis.cs index 2b227e643d..80f5d24bcb 100644 --- a/Items/Weapons/Apotheosis.cs +++ b/Items/Weapons/Apotheosis.cs @@ -34,19 +34,9 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("ApothMark"); item.shootSpeed = 15; + item.GetGlobalItem(mod).postMoonLordRarity = 16; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/AquaticDissolution.cs b/Items/Weapons/AquaticDissolution.cs index a803639d36..43ec0d29b9 100644 --- a/Items/Weapons/AquaticDissolution.cs +++ b/Items/Weapons/AquaticDissolution.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 50; - item.damage = 154; + item.damage = 165; item.melee = true; item.useAnimation = 16; item.useTime = 16; @@ -33,19 +33,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("OceanBeam"); item.shootSpeed = 12f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { for (int x = 0; x < 3; x++) diff --git a/Items/Weapons/AquaticScourge/Downpour.cs b/Items/Weapons/AquaticScourge/Downpour.cs index 79400ec77c..6962ee8937 100644 --- a/Items/Weapons/AquaticScourge/Downpour.cs +++ b/Items/Weapons/AquaticScourge/Downpour.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.AquaticScourge public override void SetDefaults() { - item.damage = 48; + item.damage = 43; item.magic = true; item.mana = 10; item.width = 42; diff --git a/Items/Weapons/ArkoftheCosmos.cs b/Items/Weapons/ArkoftheCosmos.cs index 7cc188ab92..d94bc8bf19 100644 --- a/Items/Weapons/ArkoftheCosmos.cs +++ b/Items/Weapons/ArkoftheCosmos.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 100; - item.damage = 350; + item.damage = 680; item.melee = true; item.useAnimation = 15; item.useTime = 15; @@ -36,19 +36,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("EonBeam"); item.shootSpeed = 28f; + item.GetGlobalItem(mod).postMoonLordRarity = 15; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { switch (Main.rand.Next(4)) diff --git a/Items/Weapons/ArkoftheElements.cs b/Items/Weapons/ArkoftheElements.cs index 9bbef70f64..aad2d7abac 100644 --- a/Items/Weapons/ArkoftheElements.cs +++ b/Items/Weapons/ArkoftheElements.cs @@ -34,19 +34,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("EonBeam"); item.shootSpeed = 16f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { switch (Main.rand.Next(4)) diff --git a/Items/Weapons/ArterialAssault.cs b/Items/Weapons/ArterialAssault.cs index a43abae6b9..d3e2eb681d 100644 --- a/Items/Weapons/ArterialAssault.cs +++ b/Items/Weapons/ArterialAssault.cs @@ -6,7 +6,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -//using TerrariaOverhaul; namespace CalamityMod.Items.Weapons { @@ -37,23 +36,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("BloodfireArrow"); item.shootSpeed = 30f; item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void AddRecipes() { diff --git a/Items/Weapons/AsteroidStaff.cs b/Items/Weapons/AsteroidStaff.cs index 7bf7b1c81f..84d23c91a2 100644 --- a/Items/Weapons/AsteroidStaff.cs +++ b/Items/Weapons/AsteroidStaff.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("Asteroid"); item.shootSpeed = 20f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/Astral/AstralBlaster.cs b/Items/Weapons/Astral/AstralBlaster.cs index cf7ff60ff4..f4117969f6 100644 --- a/Items/Weapons/Astral/AstralBlaster.cs +++ b/Items/Weapons/Astral/AstralBlaster.cs @@ -1,55 +1,55 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Weapons.Astral -{ - public class AstralBlaster : ModItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.Astral +{ + public class AstralBlaster : ModItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Astral Blaster"); } - public override void SetDefaults() - { - item.damage = 100; - item.crit += 25; - item.ranged = true; - item.width = 40; - item.height = 24; - item.useTime = 11; - item.useAnimation = 11; - item.useStyle = 5; - item.noMelee = true; - item.knockBack = 2.75f; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; - item.UseSound = SoundID.Item41; - item.autoReuse = true; - item.shootSpeed = 14f; - item.shoot = mod.ProjectileType("AstralRound"); - item.useAmmo = 97; - } - - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) - { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("AstralRound"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); - return false; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "AstralBar", 6); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } + public override void SetDefaults() + { + item.damage = 100; + item.crit += 25; + item.ranged = true; + item.width = 40; + item.height = 24; + item.useTime = 11; + item.useAnimation = 11; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 2.75f; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.UseSound = SoundID.Item41; + item.autoReuse = true; + item.shootSpeed = 14f; + item.shoot = mod.ProjectileType("AstralRound"); + item.useAmmo = 97; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("AstralRound"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "AstralBar", 6); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Weapons/Astral/AstralPike.cs b/Items/Weapons/Astral/AstralPike.cs index e15a9beeac..c886c71bc6 100644 --- a/Items/Weapons/Astral/AstralPike.cs +++ b/Items/Weapons/Astral/AstralPike.cs @@ -1,62 +1,62 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Weapons.Astral -{ - public class AstralPike : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Astral Pike"); - } - - public override void SetDefaults() - { - item.width = 44; - item.damage = 85; - item.crit += 25; - item.melee = true; - item.noMelee = true; - item.useTurn = true; - item.noUseGraphic = true; - item.useAnimation = 13; - item.useStyle = 5; - item.useTime = 13; - item.knockBack = 8.5f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 50; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; - item.shoot = mod.ProjectileType("AstralPike"); - item.shootSpeed = 9f; - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "AstralBar", 8); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - - public override bool CanUseItem(Player player) - { - for (int i = 0; i < 1000; ++i) - { - if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot) - { - return false; - } - } - return true; - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.Astral +{ + public class AstralPike : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Astral Pike"); + } + + public override void SetDefaults() + { + item.width = 44; + item.damage = 85; + item.crit += 25; + item.melee = true; + item.noMelee = true; + item.useTurn = true; + item.noUseGraphic = true; + item.useAnimation = 13; + item.useStyle = 5; + item.useTime = 13; + item.knockBack = 8.5f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 50; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.shoot = mod.ProjectileType("AstralPike"); + item.shootSpeed = 9f; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "AstralBar", 8); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + + public override bool CanUseItem(Player player) + { + for (int i = 0; i < 1000; ++i) + { + if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot) + { + return false; + } + } + return true; + } + } +} diff --git a/Items/Weapons/Astral/AstralRepeater.cs b/Items/Weapons/Astral/AstralRepeater.cs index e86bdd7453..eb286da3cc 100644 --- a/Items/Weapons/Astral/AstralRepeater.cs +++ b/Items/Weapons/Astral/AstralRepeater.cs @@ -1,56 +1,56 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; -//using TerrariaOverhaul; - -namespace CalamityMod.Items.Weapons.Astral -{ - public class AstralRepeater : ModItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; +//using TerrariaOverhaul; + +namespace CalamityMod.Items.Weapons.Astral +{ + public class AstralRepeater : ModItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Astral Bow"); } - public override void SetDefaults() - { - item.damage = 65; - item.crit += 25; - item.ranged = true; - item.width = 38; - item.height = 78; - item.useTime = 4; - item.reuseDelay = 15; - item.useAnimation = 12; - item.useStyle = 5; - item.noMelee = true; - item.knockBack = 2.5f; - item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; - item.UseSound = SoundID.Item5; - item.autoReuse = true; - item.shoot = 10; - item.shootSpeed = 16f; - item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("crossbow"); - }*/ - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "AstralBar", 7); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } + public override void SetDefaults() + { + item.damage = 65; + item.crit += 25; + item.ranged = true; + item.width = 38; + item.height = 78; + item.useTime = 4; + item.reuseDelay = 15; + item.useAnimation = 12; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 2.5f; + item.value = Item.buyPrice(0, 60, 0, 0); + item.rare = 7; + item.UseSound = SoundID.Item5; + item.autoReuse = true; + item.shoot = 10; + item.shootSpeed = 16f; + item.useAmmo = 40; + } + + /*public void OverhaulInit() + { + this.SetTag("crossbow"); + }*/ + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "AstralBar", 7); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Weapons/Astral/AstralScythe.cs b/Items/Weapons/Astral/AstralScythe.cs index ef7ef4d7b6..d17b810ccf 100644 --- a/Items/Weapons/Astral/AstralScythe.cs +++ b/Items/Weapons/Astral/AstralScythe.cs @@ -1,39 +1,39 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Weapons.Astral -{ - public class AstralScythe : ModItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.Astral +{ + public class AstralScythe : ModItem + { public override void SetStaticDefaults() { - DisplayName.SetDefault("Astral Scythe"); + DisplayName.SetDefault("Astral Scythe"); Tooltip.SetDefault("Shoots a scythe ring that accelerates over time"); } - public override void SetDefaults() - { - item.width = 62; - item.height = 54; - item.damage = 95; - item.melee = true; - item.useTurn = true; - item.useAnimation = 20; - item.useStyle = 1; - item.useTime = 20; - item.knockBack = 6f; - item.UseSound = SoundID.Item71; - item.autoReuse = true; + public override void SetDefaults() + { + item.width = 56; + item.height = 60; + item.damage = 95; + item.melee = true; + item.useTurn = true; + item.useAnimation = 20; + item.useStyle = 1; + item.useTime = 20; + item.knockBack = 6f; + item.UseSound = SoundID.Item71; + item.autoReuse = true; item.value = Item.buyPrice(0, 60, 0, 0); - item.rare = 7; - item.shoot = mod.ProjectileType("AstralScytheProjectile"); - item.shootSpeed = 5f; - } - } -} + item.rare = 7; + item.shoot = mod.ProjectileType("AstralScytheProjectile"); + item.shootSpeed = 5f; + } + } +} diff --git a/Items/Weapons/Astral/AstralScythe.png b/Items/Weapons/Astral/AstralScythe.png index 3191313a9c649f0e593baefa326c2d2064dad4ec..9a950eaffaad0a80032c7e825f34aab1c011b9ba 100644 GIT binary patch literal 1463 zcmV;o1xWgdP)7$5GOPVaQLTf2)X)BV3}XYSmc z>HPM8?m1`1AW3?1)dm3OULQ2a?)Q~HYyezt_;bSfO)ZC$bt#%=-H~sdMw*kXFEVG( z2H;v|4gjU!yaqr^`3EL|r#ROD7;5j<2)Ha z)|&uXd0qp+A1(nP-1B=<&YvPUSsAx(0g!g72Y|Md{Qv})djYs-*Bb!bc;_>1o{+5F zvBv~>Wa)zjfcKo5=gaU#J>O)#>Ux64R40~(RMZ=ppANvRo5SieN8NEF(rW??Y<>=a zML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s%t6$0Yh RgMX literal 940 zcmV;d15^BoP)pB5&IjrCeVwc5L1SS;FSoCBqTfZ4)9J$&}2l$ zi{)gZFAs2j{}BM5{$2*wCqU3i5Zn@RfA^~Ke(-CJ@!l;NUI~bd2SrT3x>0M4k3Rek z!0qK9#`sEY1K^$n!E2V#3D8I)QUi|wck`h&Ui3V!S$gpefUZOKfK}?8Ioe~KH#R;2 zz{>Q-36NUN4q=Q-5|Z}kNFsCsZ z@x@#<0IMHz0F1qz1lIQeFLV;z5^(tXYXIKgyA>ISB8=;9uDiIH)@buWxe^fX?*d@t z+%980IcojB<-5-Sr`AJjyy&hjU3{Xt)gGBKj*G$h#g72YrmgX|L^t3hppb-EBLKZk z1IG1*S->L!G8+u`oCcg)m)cLM^FwRAD%#2b!VwbG2&)gu z_N$n8>+;?9d6Ds;NX-el`$}z>idRw!=Z#niNnq8mnAf!~M8<>ic=(C0^ZXhs7qS)? z^Vn;6y;m0*_lq_tU0&v0zg_%)@hM~V9Mm3OWIQO^bfqD+F3;*Tk?~@Y6`ai5l~UV+ zJXy(1b{XT5@t{a;%L?x0#CUmrQJHb(b&OgMt?|J1DBb+*@l$|P+o|+$Mb)+!p*3Fe z-C3p9wil6cFQm4w^j!j+-OfszxBU_scSD;N^#1r(Becd{>(kA&?7VE%+7`lVT+C{= zt7##$#tU6tKdX`_A+j>tE~bU>8ee15sP#(QEiE_UH7 list) { foreach (TooltipLine line2 in list) diff --git a/Items/Weapons/AstrumDeus/Nebulash.png b/Items/Weapons/AstrumDeus/Nebulash.png index be06352ad14aca0f38059627329bbcb532c7e167..5d4ea22c2c6d176e45f31a450a83b0d2dc9c8382 100644 GIT binary patch literal 965 zcmV;$13LVPP)v_UXhcOs z;TDk@WT>zdTM7kXB&i#u(v7f;5~KgjPnyHdx=x`myWfM~oa@Y z*;cW6^O%`Zb#3th>%WSb6i$gx6mGk7Q#e%RA|A5}l&Va6tM{;6{-RX%gL45Dz*}Xy z*XD|dV*d-XDFsrUsq!>DK5FU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y0y#|XL$79+hVvM;rv6_JVN60$*%eOK#E6L$p_}r6pwHGBr1!zu#VIZYs)YY<^By4 zgFlRS3tf##+({IExzc$NhLBaiLz&7vVd8j%z_4jf@*Ux>tjEcY6gBQ37m zR^8LIXBavL|BDU+Isvk3B6N`N9O$wPVXRZ%^n`}`t@LQi29X@BG~a=?5uULO^Pf!y zvbU3j`wA}`K;l^p{4)@-+F9V04q3#eTGN6pFtyU!FbqZ$s>DASIJ}AH=v3xE&C0J_ zcV%7x^B^0O#pFPm?;vgqkj0;~tf<77`sZ~y=R07*qoM6N<$f&c*W)-%We diff --git a/Items/Weapons/AuguroftheElements.cs b/Items/Weapons/AuguroftheElements.cs index f5826826e3..cf814460a7 100644 --- a/Items/Weapons/AuguroftheElements.cs +++ b/Items/Weapons/AuguroftheElements.cs @@ -37,18 +37,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("ElementTentacle"); item.shootSpeed = 30f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/Azathoth.cs b/Items/Weapons/Azathoth.cs index 1a9aa0237a..5afb6a5d12 100644 --- a/Items/Weapons/Azathoth.cs +++ b/Items/Weapons/Azathoth.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.CloneDefaults(ItemID.Kraken); - item.damage = 240; + item.damage = 200; item.useTime = 20; item.useAnimation = 20; item.useStyle = 5; @@ -31,18 +31,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.autoReuse = true; item.shoot = mod.ProjectileType("AzathothProjectile"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/BloodfireArrow.cs b/Items/Weapons/BloodfireArrow.cs index fd7f3972f1..b9b24637e4 100644 --- a/Items/Weapons/BloodfireArrow.cs +++ b/Items/Weapons/BloodfireArrow.cs @@ -29,18 +29,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("BloodfireArrow"); item.shootSpeed = 10f; item.ammo = 40; + item.GetGlobalItem(mod).postMoonLordRarity = 13; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/BloodyEdge.cs b/Items/Weapons/BloodyEdge.cs index 62bf7d674a..2947996b36 100644 --- a/Items/Weapons/BloodyEdge.cs +++ b/Items/Weapons/BloodyEdge.cs @@ -63,7 +63,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - if (target.type == NPCID.TargetDummy) + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { return; } diff --git a/Items/Weapons/BlossomFlux.cs b/Items/Weapons/BlossomFlux.cs index 97b1f6f03a..28f9b6f65e 100644 --- a/Items/Weapons/BlossomFlux.cs +++ b/Items/Weapons/BlossomFlux.cs @@ -6,7 +6,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -//using TerrariaOverhaul; namespace CalamityMod.Items.Weapons { @@ -39,23 +38,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("LeafArrow"); item.shootSpeed = 10f; item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, 203, 103); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 17; + } public override bool AltFunctionUse(Player player) { diff --git a/Items/Weapons/BlushieStaff.cs b/Items/Weapons/BlushieStaff.cs index 7ddbfceaf6..56fe5467aa 100644 --- a/Items/Weapons/BlushieStaff.cs +++ b/Items/Weapons/BlushieStaff.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("BlushieStaffProj"); item.mana = 200; item.shootSpeed = 0f; + item.GetGlobalItem(mod).postMoonLordRarity = 19; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 0, 255); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/BrimroseStaff.cs b/Items/Weapons/BrimroseStaff.cs index 5f51b4b026..d71b3a0dab 100644 --- a/Items/Weapons/BrimroseStaff.cs +++ b/Items/Weapons/BrimroseStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 27; + item.damage = 20; item.magic = true; item.mana = 14; item.width = 36; diff --git a/Items/Weapons/BrimstoneWaifu/SeethingDischarge.cs b/Items/Weapons/BrimstoneWaifu/SeethingDischarge.cs index 78a4a00902..7ad85b7b6d 100644 --- a/Items/Weapons/BrimstoneWaifu/SeethingDischarge.cs +++ b/Items/Weapons/BrimstoneWaifu/SeethingDischarge.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.BrimstoneWaifu public override void SetDefaults() { - item.damage = 62; + item.damage = 58; item.magic = true; item.mana = 15; item.width = 28; diff --git a/Items/Weapons/BrinyBaron.cs b/Items/Weapons/BrinyBaron.cs index c5ef1a2e09..626250d2ee 100644 --- a/Items/Weapons/BrinyBaron.cs +++ b/Items/Weapons/BrinyBaron.cs @@ -36,19 +36,9 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.shootSpeed = 4f; item.shoot = mod.ProjectileType("NobodyKnows"); + item.GetGlobalItem(mod).postMoonLordRarity = 17; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(53, Main.DiscoG, 255); - } - } - } - public override bool AltFunctionUse(Player player) { return true; diff --git a/Items/Weapons/Bumblebirb/GildedProboscis.cs b/Items/Weapons/Bumblebirb/GildedProboscis.cs index c3ef1f903f..ec4350b186 100644 --- a/Items/Weapons/Bumblebirb/GildedProboscis.cs +++ b/Items/Weapons/Bumblebirb/GildedProboscis.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Bumblebirb public override void SetDefaults() { item.width = 66; - item.damage = 320; + item.damage = 160; item.melee = true; item.noMelee = true; item.useTurn = true; @@ -32,22 +32,12 @@ namespace CalamityMod.Items.Weapons.Bumblebirb item.UseSound = SoundID.Item1; item.autoReuse = true; item.height = 66; - item.value = Item.buyPrice(1, 80, 0, 0); + item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.shoot = mod.ProjectileType("GildedProboscis"); item.shootSpeed = 13f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool CanUseItem(Player player) { diff --git a/Items/Weapons/Bumblebirb/GoldenEagle.cs b/Items/Weapons/Bumblebirb/GoldenEagle.cs index e581aae713..427a641af8 100644 --- a/Items/Weapons/Bumblebirb/GoldenEagle.cs +++ b/Items/Weapons/Bumblebirb/GoldenEagle.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Bumblebirb public override void SetDefaults() { - item.damage = 160; + item.damage = 40; item.ranged = true; item.noMelee = true; item.width = 46; @@ -28,25 +28,15 @@ namespace CalamityMod.Items.Weapons.Bumblebirb item.useAnimation = 7; item.useStyle = 5; item.knockBack = 3f; - item.value = Item.buyPrice(1, 80, 0, 0); + item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.UseSound = SoundID.Item41; item.autoReuse = true; item.shoot = 10; item.shootSpeed = 20f; item.useAmmo = 97; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Bumblebirb/RougeSlash.cs b/Items/Weapons/Bumblebirb/RougeSlash.cs index 3a9d42f538..11a0489813 100644 --- a/Items/Weapons/Bumblebirb/RougeSlash.cs +++ b/Items/Weapons/Bumblebirb/RougeSlash.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Bumblebirb public override void SetDefaults() { - item.damage = 370; + item.damage = 90; item.magic = true; item.mana = 30; item.width = 28; @@ -30,24 +30,14 @@ namespace CalamityMod.Items.Weapons.Bumblebirb item.noMelee = true; item.knockBack = 7.5f; item.UseSound = SoundID.Item91; - item.value = Item.buyPrice(1, 80, 0, 0); + item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.autoReuse = true; item.shoot = mod.ProjectileType("RougeSlashLarge"); item.shootSpeed = 24f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("RougeSlashLarge"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); diff --git a/Items/Weapons/BurntSienna.cs b/Items/Weapons/BurntSienna.cs index de73e53836..70d65f39af 100644 --- a/Items/Weapons/BurntSienna.cs +++ b/Items/Weapons/BurntSienna.cs @@ -49,8 +49,8 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { float spread = 180f * 0.0174f; - double startAngle = Math.Atan2(item.shootSpeed, item.shootSpeed)- spread/2; - double deltaAngle = spread/8f; + double startAngle = Math.Atan2(item.shootSpeed, item.shootSpeed) - spread / 2; + double deltaAngle = spread / 8f; double offsetAngle; int i; if (target.life <= 0) diff --git a/Items/Weapons/Chaotrix.png b/Items/Weapons/Chaotrix.png index 5c28f0f4f5e962881185bd1204f23a95f0585895..d0616350be3e626598e6f6a4df0d3ecc88aa2b27 100644 GIT binary patch delta 661 zcmV;G0&4yK1FQv*BYy&ONklSfgeaxAlxjf) z58k}1J&6}R3H}Ej6g>4HMK4wV1`pn>N^+|K3kE}i5RpV_8)8w>0}!{SyGb zzb%@3_F&we{u@RnepWNM8M&DV%*hx4;n+z4;@|23EFC`qzzMSC;`OIQ^BJzR-HLA~|7zhm4KP%)I*g z)wTgl`xOpq1931A^WJLA1s{rJk`u3i&D3hF>pyb$7j(;RC1$(-u!{Bkgtj3F~-i5hj zyF`kh3hthzLg^i2*@2wh0ZI+6E7|JCb%*);ooxWJ8(#riA8z34}w~}Pz&(dcAR?egV zC@ktq=6{ZWK&nCN{KlI+0H!tJtyWu|R#P)Hc57oDpc14CrtLg8foXK{JL_(v`0)BE6fT3N87d!U9!y`- zY)A+(4w%L0iRxIYE!agcm!ZcIEGnGe`~<5z^7I*s7j2}a!2G=;>|px-#nUMAur$Ir z;1ipU!y-sb66LmJeZkSlJBYqnF(zm({QWf?jSGqo;0Ienzj4VNrA05>mFq zfbMZfSq@9xB-h8V)J=1XQJf9r5Ni6s(n5H&4~o{6OSgde==qmwZ7!Nwj2;5$e3~_H bX>Bn8 list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override Vector2? HoldoutOffset() { diff --git a/Items/Weapons/CleansingBlaze.cs b/Items/Weapons/CleansingBlaze.cs index 509872f10d..d45c601486 100644 --- a/Items/Weapons/CleansingBlaze.cs +++ b/Items/Weapons/CleansingBlaze.cs @@ -35,19 +35,9 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("EssenceFire"); item.shootSpeed = 14f; item.useAmmo = 23; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { int num6 = Main.rand.Next(2, 4); @@ -67,7 +57,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 90) + if (Main.rand.Next(0, 100) < 90) return false; return true; } diff --git a/Items/Weapons/Climax.cs b/Items/Weapons/Climax.cs index f0b778524e..849ca8b4dd 100644 --- a/Items/Weapons/Climax.cs +++ b/Items/Weapons/Climax.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("Climax"); item.shootSpeed = 12f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/ClockGatlignum.cs b/Items/Weapons/ClockGatlignum.cs index 70d38b9607..48dc8713bd 100644 --- a/Items/Weapons/ClockGatlignum.cs +++ b/Items/Weapons/ClockGatlignum.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 33) + if (Main.rand.Next(0, 100) < 33) return false; return true; } diff --git a/Items/Weapons/ClockGatlignum.png b/Items/Weapons/ClockGatlignum.png index 98ad7faa68cc348175d54436f515c25a7f7b09fc..b3ec2327346e7e8f086f318f5b5724e18b9a14d6 100644 GIT binary patch delta 1050 zcmV+#1m*jP2(Ji`B!BivL_t(&L+x5yNK{c2%`78dS(&D$F*TT)nP6IoXp{C(tRO#% zG%6$zN_u@1SRhm%1!WO}VL?F%efX910y8BfDZ$Kq)Z{Zwr!32?w6b8IS;jftU-ZN{jv-UoB#%aobel1xP`%7sFP0f`~6S=ery?>d~7t=iu03ajxAcxQO z+&uDi!w3Tid;Y~O@#NVl`eenj9DOnZ`(n}pF*erB0iI?t#v26@u9LZvPZI5)$omC<6zS10#-eW>T}8N+FPz6kAFfU*DNImj8dC?zW5!5K+9Aa zp&KB?dMhFsZT6(0d2X&`9}dkY3$+&GEuEKW2-ToBIh_kZ21JcORk@m6)qC|aeL{6(FWG_MO=O`F&S zN9N*>Z=sISR{5S=r>i&XV*(z1AltcWHs`-IGk+CmEPbFT2L=#!I7fiUN;Pqr2i#F1 zbLnkCNeh<&IH)G@<6OGwZEHZ1V!W)65H(_Z7^@y8FQ!d*`#+L}M#OCX#$CU@fyHgJ z4wJoI$(R96fMz7eGNwRt{?Z5o2>U5b1Oip!)>D>Yu}6o@mU!0|?T7Msr zc9yyWLhIf`l|TmyCir@=Mh#U$_5?_L*nbO#;F+at9mpu=`=+xFSbPmuOy!245t~JHC=Ht2W5!dXHHYhf`%^{UG`19Az2Ae9K988eZw=Mi!^e zvSX}o!AmO>5N`lsN5Wwsv~DGtR%~3Dp!k1?n{DNzu0{5P(pVWFeh&i(J0iaURTEfb UU^&W}%m4rY07*qoM6N<$f>*!iegFUf delta 1010 zcmVB;Z1}hlCWR|iyBs}iwM+7S49M-kVJ@rQAh?M!h-&oLr4gXED8dP-q&Y%4xa7% z7Pjj9&ds}X&UgNv_c_mb&smx!#mQ!~{a87LNFK?J5Rw1@kfEU=V=@AG{PRFy0ocoOUaRu!1!AqlHEE47JP-h&xw)B~ z9twrX`u%>gU0q$Ps=n;WM2wM74YaSQsGz1*RaJ4vE6&dp;*;mE7vnlzHzN!WgbIM^ zYm8;#S$2TT41aije0-dKJ`NrsTd-pz*-UFG*>%Mo0!hls%7i?aFgiLal*`Nnlfa0c zGX?bhsbH9_iW!<2VFIy?zr4r0>mpQh{L(Pl&ktJ#X2==`u2vzyEBFbOBdOj{A zP>FG?5ATdSo;INV_Y~B(zI%?UDl03=TCG;$)AWds@{UX{e(o3S+o&)VUaq}27#t6d$0RZj{HD1ZzSs0!e=FbUG>aPxKyf`(DqgPXjrne8(u@ ztAnM(&9~3MeSWV9FCQ{shE^tEIhx-il3ahRnF)l1AOMjyLd68x0bqt)J~zR)&ScYX gHBM&GzZHm|5ML!Qh;(|&00000NkvXXu0mjf011WHD*ylh diff --git a/Items/Weapons/ClockworkBow.cs b/Items/Weapons/ClockworkBow.cs index a571243629..8a1f5c2856 100644 --- a/Items/Weapons/ClockworkBow.cs +++ b/Items/Weapons/ClockworkBow.cs @@ -6,7 +6,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -//using TerrariaOverhaul; namespace CalamityMod.Items.Weapons { @@ -36,23 +35,8 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 30f; item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/ConferenceCall.cs b/Items/Weapons/ConferenceCall.cs index b63b373cca..bc1033bce6 100644 --- a/Items/Weapons/ConferenceCall.cs +++ b/Items/Weapons/ConferenceCall.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 50) + if (Main.rand.Next(0, 100) < 50) return false; return true; } diff --git a/Items/Weapons/Contagion.cs b/Items/Weapons/Contagion.cs index 1474da8191..1c36173bb6 100644 --- a/Items/Weapons/Contagion.cs +++ b/Items/Weapons/Contagion.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 600; + item.damage = 4000; item.ranged = true; item.width = 22; item.height = 50; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("Contagion"); item.shootSpeed = 20f; item.useAmmo = 40; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void AddRecipes() { diff --git a/Items/Weapons/CosmicDischarge.cs b/Items/Weapons/CosmicDischarge.cs index 7bc6cb8b30..50ecaff71b 100644 --- a/Items/Weapons/CosmicDischarge.cs +++ b/Items/Weapons/CosmicDischarge.cs @@ -38,19 +38,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shootSpeed = 24f; item.shoot = mod.ProjectileType("CosmicDischarge"); + item.GetGlobalItem(mod).postMoonLordRarity = 17; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(150, Main.DiscoG, 255); - } - } - } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { float ai3 = (Main.rand.NextFloat() - 0.75f) * 0.7853982f; //0.5 diff --git a/Items/Weapons/CosmicImmaterializer.cs b/Items/Weapons/CosmicImmaterializer.cs index 10afc879d7..13db14c623 100644 --- a/Items/Weapons/CosmicImmaterializer.cs +++ b/Items/Weapons/CosmicImmaterializer.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.mana = 100; - item.damage = 0; + item.damage = 3000; item.useStyle = 1; item.width = 74; item.height = 72; @@ -46,18 +46,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("CosmicEnergy"); item.shootSpeed = 10f; item.summon = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool CanUseItem(Player player) { @@ -74,7 +64,9 @@ namespace CalamityMod.Items.Weapons public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - player.itemTime = item.useTime; + CalamityPlayer modPlayer = player.GetModPlayer(mod); + bool hasSummonerSet = modPlayer.tarraSummon || modPlayer.bloodflareSummon || modPlayer.godSlayerSummon || modPlayer.silvaSummon; + player.itemTime = item.useTime; Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; @@ -98,7 +90,7 @@ namespace CalamityMod.Items.Weapons num79 = 0f; vector2.X = (float)Main.mouseX + Main.screenPosition.X; vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; - Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, type, damage, knockBack, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, num78, num79, type, (int)((double)damage * (hasSummonerSet ? 1.0 : 0.66)), knockBack, player.whoAmI, 0f, 0f); return false; } diff --git a/Items/Weapons/Cosmilamp.cs b/Items/Weapons/Cosmilamp.cs index 6725b22572..54dbe81f0c 100644 --- a/Items/Weapons/Cosmilamp.cs +++ b/Items/Weapons/Cosmilamp.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 200; //80 + item.damage = 180; item.mana = 10; item.width = 42; item.height = 60; @@ -42,18 +42,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("Cosmilamp"); item.shootSpeed = 10f; item.summon = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Crimsaber.cs b/Items/Weapons/Crimsaber.cs index 1bcdfd92ad..a1a83e53cc 100644 --- a/Items/Weapons/Crimsaber.cs +++ b/Items/Weapons/Crimsaber.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 45; + item.damage = 54; item.melee = true; item.width = 56; item.height = 70; @@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons } num78 *= num80; num79 *= num80; - int num107 = 8; + int num107 = 4; for (int num108 = 0; num108 < num107; num108++) { vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f); diff --git a/Items/Weapons/Cryogen/Avalanche.cs b/Items/Weapons/Cryogen/Avalanche.cs index fd86bc6406..af0d60cb9d 100644 --- a/Items/Weapons/Cryogen/Avalanche.cs +++ b/Items/Weapons/Cryogen/Avalanche.cs @@ -1,105 +1,105 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Weapons.Cryogen -{ - public class Avalanche : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Avalanche"); - Tooltip.SetDefault("Spawns ice bombs that explode after 2 seconds into ice shards on enemy hits"); - } - - public override void SetDefaults() - { - item.width = 64; - item.damage = 60; - item.melee = true; - item.useAnimation = 30; - item.useTime = 30; - item.useTurn = true; - item.useStyle = 1; - item.knockBack = 7.25f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 64; - item.value = Item.buyPrice(0, 36, 0, 0); - item.rare = 5; - } - - public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) - { - int i = Main.myPlayer; - float num72 = 6f; - float num74 = 5f; - player.itemTime = item.useTime; - Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); - float num78 = (float)Main.mouseX + Main.screenPosition.X + vector2.X; - float num79 = (float)Main.mouseY + Main.screenPosition.Y + vector2.Y; - if (player.gravDir == -1f) - { - num79 = Main.screenPosition.Y + (float)Main.screenHeight + (float)Main.mouseY + vector2.Y; - } - float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); - float num81 = num80; - if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) - { - num78 = (float)player.direction; - num79 = 0f; - num80 = num72; - } - else - { - num80 = num72 / num80; - } - num78 *= num80; - num79 *= num80; - int num107 = 2; - for (int num108 = 0; num108 < num107; num108++) - { - vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y); - vector2.X = (vector2.X + player.Center.X) / 2f + (float)Main.rand.Next(-200, 201); - vector2.Y -= (float)(100 * num108); - num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; - num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; - if (num79 < 0f) - { - num79 *= -1f; - } - if (num79 < 20f) - { - num79 = 20f; - } - num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); - num80 = num72 / num80; - num78 *= num80; - num79 *= num80; - Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, mod.ProjectileType("IceBombFriendly"), (int)((float)item.damage * player.meleeDamage), num74, i, 0f, (float)Main.rand.Next(3)); - } - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "CryoBar", 12); - recipe.AddTile(TileID.IceMachine); - recipe.SetResult(this); - recipe.AddRecipe(); - } - - public override void MeleeEffects(Player player, Rectangle hitbox) - { - if (Main.rand.Next(3) == 0) - { - int num250 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 67, (float)(player.direction * 2), 0f, 150, default(Color), 1.5f); - Main.dust[num250].velocity *= 0.2f; - } - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Cryogen +{ + public class Avalanche : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Avalanche"); + Tooltip.SetDefault("Spawns ice bombs that explode after 2 seconds into ice shards on enemy hits"); + } + + public override void SetDefaults() + { + item.width = 64; + item.damage = 60; + item.melee = true; + item.useAnimation = 30; + item.useTime = 30; + item.useTurn = true; + item.useStyle = 1; + item.knockBack = 7.25f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 64; + item.value = Item.buyPrice(0, 36, 0, 0); + item.rare = 5; + } + + public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) + { + int i = Main.myPlayer; + float num72 = 6f; + float num74 = 5f; + player.itemTime = item.useTime; + Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); + float num78 = (float)Main.mouseX + Main.screenPosition.X + vector2.X; + float num79 = (float)Main.mouseY + Main.screenPosition.Y + vector2.Y; + if (player.gravDir == -1f) + { + num79 = Main.screenPosition.Y + (float)Main.screenHeight + (float)Main.mouseY + vector2.Y; + } + float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); + float num81 = num80; + if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) + { + num78 = (float)player.direction; + num79 = 0f; + num80 = num72; + } + else + { + num80 = num72 / num80; + } + num78 *= num80; + num79 *= num80; + int num107 = 2; + for (int num108 = 0; num108 < num107; num108++) + { + vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y); + vector2.X = (vector2.X + player.Center.X) / 2f + (float)Main.rand.Next(-200, 201); + vector2.Y -= (float)(100 * num108); + num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; + num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; + if (num79 < 0f) + { + num79 *= -1f; + } + if (num79 < 20f) + { + num79 = 20f; + } + num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); + num80 = num72 / num80; + num78 *= num80; + num79 *= num80; + Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, mod.ProjectileType("IceBombFriendly"), (int)((float)item.damage * player.meleeDamage), num74, i, 0f, (float)Main.rand.Next(3)); + } + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "CryoBar", 12); + recipe.AddTile(TileID.IceMachine); + recipe.SetResult(this); + recipe.AddRecipe(); + } + + public override void MeleeEffects(Player player, Rectangle hitbox) + { + if (Main.rand.Next(3) == 0) + { + int num250 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 67, (float)(player.direction * 2), 0f, 150, default(Color), 1.5f); + Main.dust[num250].velocity *= 0.2f; + } + } + } +} diff --git a/Items/Weapons/CursedCapper.png b/Items/Weapons/CursedCapper.png index e957e82c706f08bfbef8464978cd67db5f44daaf..7b0eef953548074177242401970e50a285a5ca78 100644 GIT binary patch literal 771 zcmV+e1N{7nP)A#sEv=RhK^pu(i4Dj_(+Fu|j9=lPi5jDccfFGs{}%rOPkJ%&qES3>keHa5 zU>fjHA&m%%D3*^>+EVCxC~w=DZlR`XGQZ32zVFV?^qJo~J6#p-iLxUH7qtgl6~Jmb z<(95niTU>pwQp*u^?#Jt3|zTz1AxV^(*VR0aR;EQy+Z*ktuAZiySol6fW@T+3AyGW z%5K_=xV=P07l&^H(0z0YfSJiL2ViL@FXUg3KX(8+TG|xA^7@)v!&J{R#P|wx9wCow*8F zL{x=)qMCOi;Q^qUOyB8YpqiWziN~kv%FB#Q_eKDC5WVD@kNE;x|Mn5Bs6wDj(DY<$ z=P{r*@t14Aw0Qq)Ov{fCwrTm^!FR3$o1Hidz>mkT0Go+Q6-yP?s&?^M%jFYV+$41G zr0zA*qfc1?o(vDU=11p00x)v(J75#h^O0)+1h&%-l&e(q;%RaH6K_tmc4~R?pyWm7 zeS@i_b}b&4nGu;YWS>We`bxVN?OiQZDysG7G4C_IyjNbdaQBvWEhPQN4=J#TsO(Y# z-r|_ETLq15t##A%WWD*s%7z{f>0TBI$=nyqs=l;)@_7BlldTL;CL-&o98Is9gi2b8 zyM_baCIyi46ub83HjCZ*o3;Cd_%RfXEjd z*@dayI?Qer0GRvy_KyZ?57BgfTdQ*O-EQupDm-a^SRL$vBYQ!NF39tDujZv+31TrF8c^f!~lK$|kY6yve;BCi6bS>0p7L~Y46*24I{7x=VFe!N z*)6yK{cmr7y=+R>s}s-Kxh6Urs^#2nUh;b7KBnmDWt9_WblhxbWsKPR#w)fjamg&9 zG<6$>#RdryhnS2XDGAH9ga#IcOm#oH#^apQbmz8&M>>Vc|GTclu3df2;?2eLMK4NU z9AGwR{+t__bJl(HBLh~O=TYwyvh&oq^3#>%WOaKlEHkNVxapzna^@LN^19Ql`iDEt zuMsg3jQ;;HlszGidzOfr*gxrp#K!*T*Iv{g&Z(XCW0At14Ye|L%;FPy6}1b0{s;Ps N!PC{xWt~$(69B5AhRy&0 diff --git a/Items/Weapons/Devastation.cs b/Items/Weapons/Devastation.cs index 6ec117ea25..1c6ac9b180 100644 --- a/Items/Weapons/Devastation.cs +++ b/Items/Weapons/Devastation.cs @@ -33,19 +33,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("GalaxyBlast"); item.shootSpeed = 16f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { switch (Main.rand.Next(6)) diff --git a/Items/Weapons/DevilsDevastation.cs b/Items/Weapons/DevilsDevastation.cs index 71398d152a..6eda6cca5e 100644 --- a/Items/Weapons/DevilsDevastation.cs +++ b/Items/Weapons/DevilsDevastation.cs @@ -33,19 +33,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("Oathblade"); item.shootSpeed = 28f; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { int numProj = 2; diff --git a/Items/Weapons/DevourerofGods/DeathhailStaff.cs b/Items/Weapons/DevourerofGods/DeathhailStaff.cs index 3235969d8a..8791ddbbed 100644 --- a/Items/Weapons/DevourerofGods/DeathhailStaff.cs +++ b/Items/Weapons/DevourerofGods/DeathhailStaff.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -23,8 +24,8 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.damage = 180; item.magic = true; item.mana = 12; - item.width = 62; - item.height = 62; + item.width = 80; + item.height = 84; item.useTime = 6; item.useAnimation = 12; item.useStyle = 5; @@ -36,20 +37,16 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.autoReuse = true; item.shoot = mod.ProjectileType("MagicNebulaShot"); item.shootSpeed = 18f; - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Vector2 origin = new Vector2(40f, 42f); + spriteBatch.Draw(mod.GetTexture("Items/Weapons/DevourerofGods/DeathhailStaffGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f); + } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { int i = Main.myPlayer; float num72 = item.shootSpeed; @@ -103,7 +100,6 @@ namespace CalamityMod.Items.Weapons.DevourerofGods float speedX4 = num78 + (float)Main.rand.Next(-50, 51) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-50, 51) * 0.02f; Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, num73, num74, i, 0f, (float)Main.rand.Next(10)); - Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("MagicIceBeam"), num73, num74, i, 0f, (float)Main.rand.Next(5)); } return false; } diff --git a/Items/Weapons/DevourerofGods/DeathhailStaff.png b/Items/Weapons/DevourerofGods/DeathhailStaff.png index 38a03e9ed2d4198696a8ff795299c36385ba08a9..9fab0e65f25ffcac115940c4cda7ced6e132f5af 100644 GIT binary patch literal 1947 zcmV;M2W0q(P)Z+C03zsM2kX)mO`hLrKK(1pw#i<%s%3#lod6VOW;g&N2JRMzC(iA@f!mFkH!CL> zfYTlAVStS@0|4x<4aU7rOtc0XGV*rc!0o0yzYu`RmgczT6=!8T01e$;0ED`FiFtv*SO9{-t8vW}^c*;l zo9O@q+poLEt$~INSp#MEEh#Al;CyQv0MnPxP$%qgpC8RQf-2+Kyyfn=@7sIuhCbu~ z6lSXbs(lsDxDHwa4Hv zaOJwnF#Kj+9c!Q=Nyotc8kQ*f?CNKn&g^*)0Z`L$Dh#n4d2d6d1MqI`_W*>uRpxS{ z;ZLLcwFVlJvKXkFDX*P5>UZRfjeKCS`*&7fuj*{eU*04`uDYHdV%&te_W&_t#n4M9 z{{f(;;S>P9SIz-2X53^4psTZ0eQ3l~AyG4}frca;1N$5MGBz(v=)69?jre~RBh;;C z<*IdHcUw~!pt|ZCAZFO5;yFOf$VZp20OA_yijjRt>aWroXh_O35ic`)cl`=@$G~}O z*QxPH=8-*GRf0QP8{M(+Kb1N3WT@jyRzBrAEV0ikC!UUs$Io1L?${dlIzOy|hNLYQ z79;2G`B)7|sEI7!GG2QffZV)^0JOJV385lJ$!pRL!x?anyE9U9O>3n|pP(q)pulICvi%J}T4y~If<|Uh%SOX17 zxq+W=KLWruE(154=Y_22Nv`qwqZa`9VecLpav=5Q z3D!VE2COfvXB>LvSh{IKX}Np-SW~Gon+Mix0N|0e_W|(LhkpR@(`PDE@ybBbg*DKS z0pFP*8HD7v`s^u&31XHYF;C2sSeHL_rUTI0?#^-3jWy7aL9;hTH&4upuIIFFotP=+ zwba)FkhNwD0F%B{I}(aUPX*va!}_$`w>8j^0XIevv{g-q0DgZNTbAZ^hZK=i@XoztPET5-^>hS+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wJZ`_j+J7GI+ZBxvX(mod).postMoonLordRarity = 13; + } - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Vector2 origin = new Vector2(20f, 41f); + spriteBatch.Draw(mod.GetTexture("Items/Weapons/DevourerofGods/DeathwindGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f); + } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { float SpeedA = speedX; float SpeedB = speedY; @@ -66,18 +57,11 @@ namespace CalamityMod.Items.Weapons.DevourerofGods float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f; if (type == ProjectileID.WoodenArrowFriendly) { - if (Main.rand.Next(3) == 0) - { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("IceBeam"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); - } - else - { - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("NebulaShot"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); - } + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("NebulaShot"), damage, knockBack, player.whoAmI, 0f, 0f); } else { - int num121 = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + int num121 = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[num121].noDropItem = true; } } diff --git a/Items/Weapons/DevourerofGods/Deathwind.png b/Items/Weapons/DevourerofGods/Deathwind.png index 9f440ea148ee2c9d6073a94e67168c7dfed25054..875f2d2b71c30a771e15be562e422f75c3509938 100644 GIT binary patch literal 1988 zcmV;#2RrzQP)R zFD875sytv7Reh=o1u9Xhwo(yoQ&L2mIDj_|ZId{`8z=U5ZD+l9s|zisMs z8aDORe^FUo{AKPU0FU4I8vyS4`JHuN5V`h_J^;$4nFy(+#W?_m^PdEu_qx3Ry!_P9 z0Pq@H-q#ElJi^YM%EYp43O~z8`?%KmQKEsp%;In%1fwz~cP*y5n0Vo?v!( z&-DNlrrwCylGoVc0gUE91AxE02*BFql6zpa3WVfD%1ZrGVe)w&Ah%=40~iVJ$B|4v zL6Q5$!#@Jx@c2Ujw6tvnpc2@cx24s+u`pYAAWQ1Vi%$daz`=*zjca!U@LFiA&W86~ z@72C%NhY44H`0GYgy3s$zXgP|QBuDo(sBLIJp21d`_TB;BkgyeeJ3)GNEW8v078=K zA*glhb6>qJ@_@dn$lCrVAAKRxj_cPfzZyxexx)jPJoOTg27(9n-wi;yQuP5=FP#QL z4~GjC4VPiqvZ9ya(WAw&*<{pb)%2 zc;n|I;~yGxvsxrG6KxP+4p6A+)KR0w4Qw zK!|J;0RGwv5R(1qXWcI|aPtQNcy+?fQrVse-u#I>+<1YnPCmi;^QR)7#I9${!5(8d z*ri#IV?D{bRw|Ko^~{M2KuB<4qz4FR?fBSJK+P`_43m6v$n6U}%0JQh*^8j+0As=AgF9KoQX7|^c?dOgx0fFzV_x(0LmTC$2OJPHXK;dj*SZ?ySr=a>h)^d zQt}DvVs~3R0Bt%Tr+kQyq<7+cuV(MUTv0Cv_VYpmw2B7)EW!LU;?Z5uu-pGLY#`OptfbBsP zquKoAqwYDoC$UP+zIfdRhld;~|C}FbOO+m%87+ON8-S(@OLYenIZ4sWpMUFYQE{gA zxl-zKGuhETx1M?ZZt^sII0Jw`y%yYe-(h>Q85#xICfO&o?*uLGsPH-T@Eb@c2V< zRe*?+Pf!;k71x%&f16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B*fj$h3{ z@G97Hw&&$+pLHl5G0GAE?X-TX2Zk>INY_H`XazY`RQ%JPj8ECGN6p`Ndg6fF$IHh zwZSMJPH8#YJ0%@7fFKzZtPB_= zlPbnC^*`>yTQE5ZG(fqyLo%EyZAtPDOf%_k!yd;rvEpD_Xbn>$U@RJ1S0Btsa#&zx zZ{P5uYG~~(*p<+_)D%JC?c2@49Hzvy_9H*$Ets6Pd8tl$2zJFC{7tIU8!#*#vZK6o zIa@9Nic13H~tbe0sHN-pphIY?a0PkFl*CL^ys;fU{6r}}t^J`kZfPD`DKP@o)k@w*700000NkvXXu0mjfDA-7M diff --git a/Items/Weapons/DevourerofGods/DeathwindGlow.png b/Items/Weapons/DevourerofGods/DeathwindGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..5942e0583831abb4a06a5613cad71091b123f71c GIT binary patch literal 475 zcmV<10VMv3P)HK%+3OHk5qs%wcYVQzLQLx;+~4y_w&bm*B=^9)QYg0|47j0MKlxTO6%6gX#@1 zF+t7FCtT}~R1AQ6A*l+7{x$WJc?k|Ks8Z+Q3jiyleuJHu0N~>BEvViA6BE>Qa$Y<0 zIRKXZ>8FRe33|_HCHPrXbD)*hgeE+1D&i`Rh%u7%!S6%>^&Wr*u zRDB0v?CKeSYri{ln3v$*Z3XDggH~Cc#h|Ac&AbG)8)qKOqo$fry#)k6S(}@nelA`* z*aRRwvjRZexy3;-FTvBAn)kA?u&W;F-r_*sC}{saK_P??LI@#*5JHIleFKx{QW+sj R21x(_002ovPDHLkV1oB=&d2}& literal 0 HcmV?d00001 diff --git a/Items/Weapons/DevourerofGods/EradicatorMelee.cs b/Items/Weapons/DevourerofGods/EradicatorMelee.cs index 9ca9b436d3..cb549f0796 100644 --- a/Items/Weapons/DevourerofGods/EradicatorMelee.cs +++ b/Items/Weapons/DevourerofGods/EradicatorMelee.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -34,17 +35,13 @@ namespace CalamityMod.Items.Weapons.DevourerofGods item.rare = 10; item.shoot = mod.ProjectileType("EradicatorMeleeProjectile"); item.shootSpeed = 12f; - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Vector2 origin = new Vector2(31f, 29f); + spriteBatch.Draw(mod.GetTexture("Items/Weapons/DevourerofGods/EradicatorMeleeGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f); + } + } } diff --git a/Items/Weapons/DevourerofGods/EradicatorMelee.png b/Items/Weapons/DevourerofGods/EradicatorMelee.png index e12958fc93b433864df352c33f73e8a35be2ccfe..e028ca0e83772ee36bc93200fcf9e0282489ca1b 100644 GIT binary patch literal 1791 zcmVe)#>839un+#*pmqtf>UxnFpsC03H4w0It{F z0-(fy9e}qFtcl3(h#@`A|3F5h9dyE^C=(@BEjF?-PsZMr2h`R3lOisjuqelR0CoGY zJ-{PAn0hvz1fa4#0KlQ9t6>q=34KxX-GKLbJ?jO+vFm1k)!cLgAm>H`0I}N_JNEO4 zyGclg$aHEKF45s?Fpm%qFwzYJz-&~HtCRPL>l%!-8{yv8OLynVEX9nUHsEzP4-oQb zf1{B1i0cX=9ueuK&%On~;>?_3J=n?GDgcW2?XaDX)B{A7?EwSeP}5bwBi>)5lE|57q&&ZR;jmf44E^&4TxV zAo;$PUQ)6F9`XJ<{?ac1l=!ck0Apj~41l`M4giwl)aY5&dd}LO2cX)2e&8F990S0( zlym^vu2$Q|5Fxp7-FrZP575caobxaM6LRx_;FutGPOaQ*>tE7(J-UgzE`%k^!Safm zy|)3V45;ll#V<#6qx{M905H2d0cg8gZL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$Rf|F<8>!Y+C%LUAiagpgD)MRKx|R^PBwg&w769Y11=D?NP1;T?^#G-=XhZ7?SmOJhq@`ch|GP)yS?Y)cOkqz@eTl6L~f7P&vu7 z#BC{^fB7^3Z4+Y#Kp<1bbnmR3VTH1-o#m7E50>xHmj^(wq+IsXe!|^|9i+#8LvhID znQh}^Y2ubrznrcMW0Lrn=MK8+sJ`N%x~0-r7WN>W)TCv979; zXNfy5npazw73u15JpiXq9ko1vx%WH(Mr;;;RA?o;NfjXKW41?c;?XqK=Qr0dW))O=Tu4W ze)v5AA}+`0UE(Lvd{jVCCTJo%bs``ncL zK7Yd}8D_?A8URb4%TnGYt`78A_xDYkVqIm;wVJuP{Yu)DJTz6AcrY7)!rw*#`19bs z0OX9!E^E)b#8oU$ZZEcs^|G@A20+;Zr2-&a{TYzV0UI!P7Xa~m>8x2ZaRZX1mF7$H zmNnv8;)|JY+u>vSIRoJRr)mIr_q$#onG2K$^i0Sdi|ge9Dz`+d1EzMBgOq13ktv)1 z@%oFFcGJX_6#4tg(mod).postMoonLordRarity = 13; + } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Vector2 origin = new Vector2(39f, 47f); + spriteBatch.Draw(mod.GetTexture("Items/Weapons/DevourerofGods/ExcelsusGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - int num6 = Main.rand.Next(5, 9); - for (int index = 0; index < num6; ++index) + for (int index = 0; index < 3; ++index) { float SpeedX = speedX + (float)Main.rand.Next(-30, 31) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-30, 31) * 0.05f; + switch (index) + { + case 0: + type = mod.ProjectileType("Excelsus"); + break; + case 1: + type = mod.ProjectileType("ExcelsusBlue"); + break; + case 2: + type = mod.ProjectileType("ExcelsusPink"); + break; + } Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); } return false; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - - public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) + public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("LaserFountain"), 0, 0, Main.myPlayer); } diff --git a/Items/Weapons/DevourerofGods/Excelsus.png b/Items/Weapons/DevourerofGods/Excelsus.png index 5f43b4abc62417ef0e21c03c633f8b6448269532..077d762192366b21f2e796861e57ce40e8dfe473 100644 GIT binary patch literal 2271 zcmV<52q5=~P) zYiyKN8i1dV(n?F|OfQr&Eg-GRf-xcyTyz%$UNBiNQFIgchc1bGfu%0`!yj%)cC*?2 zVImSCdvQ(J-6+Pm!F9z%MKN9$m6{dSR1|3oQcJh?PA^m_vp>$foqnhD&6zo!wj-S9 z5B)l)GhfTo_dV}<&zX8$;4FzOl@Fr;ImPn;sEJg007vTI2jJ6|gTAkuHc9t)-Z6cu zZy?*KUH>ou+qOOw1*i@$@&JCm>=6JS-18&A8E1_%PGkPs1?q#X>Ytmd?}!2{50`kO z$2sFHF&cNa_CRJ|aQljkKA$a;O}*TF0HS9G6OP-s@Dc#(x;g=P^448|GtL^LaqB*N z9)N<_G;)3fQw{7vHzO-BK!eegQ~6dY1N zGH0A6M&n-nq|tXh(5imNn;Y8zXgJsaKwDRbdb~qr&uop2GJi`ooBpNgIRI+;4FE5` zeIg3ZIBSf?-ExKcpLt-@(*RV4ivcK|7Y5+^yH)~Y=W!eOh3{JCaZ_D6cr%KC)U&CM zWLIaLB`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j_Q{s`?a<2-5jjB{hoYF?V_2H@$g zE(377WhwxOr(*zQ=9>YS|J9ncH`N}>w&3<405HGX=B8u$(D%zYPc~A<8Gur@EdUrP zS|^@AcOHOzMC^1^{=*o2@~{W?Lc_ zbGxi+nj^|Ihm7;2;f?DVt7KJE3jl573jsjuvOTrQa@hdvh}$ZBohA>%x0 z*y}jAI+Yo(%yJCQ8Gw98;+p#nP0s;v=uZ3mLOzoQZrn77jPs=7jU(b7w$3kq10b77 z2LR0_`>|Nj8oDrJPyNJKFM9pHjPs=7jB{htVt)pJ&ZMoD3+D<3pm6^ktM2Cv-1k^- z0C2V4R^iXaiU9od@{?;i4jJc3-CW02&vKmp;FVB&DQjnFJJa?qBF@`+wo4Vm+`4Ea z5A?Wq2H>?*<8IsQUnk={sT<>1sg41_zE|G^pj2s0PFyhn-&f4Lo?*@?mu*ixw(mod).postMoonLordRarity = 13; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } public override bool CanUseItem(Player player) { diff --git a/Items/Weapons/DevourerofGods/StaffoftheMechworm.png b/Items/Weapons/DevourerofGods/StaffoftheMechworm.png index 553ccdf76a3b9dfceec290c39afa06d9bdb909db..ffcc7066c041095c029a4ac8652a4ae994d0611d 100644 GIT binary patch literal 1405 zcmV-@1%mpCP)@W;98YG}@S@Niel3wi+Q17LDM7R7G&XAc(X^sRex$9|fU`mKH^5 zDku~eT>2sY^EYrlXnO+~x{B!4?ncJZyvxW1$40D;extDzN zZ|7W#B}PNp-2hlO8g z?Qveg7@}dN`U2u1|G}d2Y5*>r8?phm?|2`8%C_6D`Tfx!&j9ej&Nl$4sak|OlPy7x*@8B+%8A8wD?*Pazt+K!v5=F)t63!Nln*sQG?K1!be^>xu z_s9?c$1ctR(7B-rfTq*x`x1M^u;8V$0L+AXA7h9{+8Pqovn=yj09pB~Y=GP9>H&E2 z)P4Xquh;;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mv@+pe=6h$f&Q{JFO9Vc#o#%_NWL*=s+C;2%62~S{ndK5%2ONNGjwWuuhJKoP6~@tDyX2;4A)%HJ{Qvz8PWeB45ymZAvRuP&4fZOCTO zXG687{Lc6@Gd1x6{_WjQg+U)(japj^Zq(ZBxE?#M7dHZlph0IrG76C!%}dRUkxXV7 z^dF(zsI_@A-|=L=WBDvFjJzAxQWHUWEvP~N0L=tCu1AjRkp}%m3wbw14f-e)fy*G^ zWe~(btw list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/DevourerofGods/TheObliterator.png b/Items/Weapons/DevourerofGods/TheObliterator.png index 25f0d6d3a4baca2478103d42f59193cf642a6d43..655753210f0813637da1903c6a1b17f4a63ad99c 100644 GIT binary patch literal 1159 zcmV;21bF+2P)?000C|Nkl6vuxTSJI{puq{$T=t7qk%PwjK`{5cJ8$TafOiWB;lhzu);zy0?gKs9A7~`91 zim|CRQZ%U#CQVAw7}1baO9~B5i!5M;h002hLirFBE6w#`?%_I0XSZLCtwrN&3UUdL!@XE0M4=;&7QS97l0e%g8+05 zU0hO!4+qyf0C%;&=K^%bU-wF?0N5M9-~yCK=A@qLe@VUl4+;dcv(py1vr{g>Ey1+_ zRNPbQ0CYADYW41j?gHTZ#Obu}kr{FaIso`;xDSA`wIK(fGJePfxZCr|PvVNK*dK{( zaKIv>&fI}E00OmJ0G|Nfe)m@M2LQae;{^cnOUfL8(JOt6zxdYW0OYPI1Yjc7?=Du~ zRO0wY093{g0TvMr^v+CYRB`*$F9C3-{)h{ZU$W67+mn`*`{(Zf{5mtIwJ+Yf27ro+ zqO|?U%$c%>==k;PfaaTNmFgM=d@^Sn8eM=5(FXyz?e>ba?XLdN4frHQb#F8&dn6x# zGxbLRs47(v>&EFht-duxoqg4>0MMWH3jkw3_i8@3=l!_W;9Ok-fSUVbn!Rm6?E*qD zIdoYo4;Phd_WNpf0zOHnRK;}30VEWf-VsxLBEYe8?W_5vZ< z+I%Xb4u$NGiEq>ZJd!W2dJKT0*S-XNl1<~ifJHcv-c2&&HruZ)MLo0IAt_&2G-zQO_REF4Ra$j$jYb$>F5to1sTb07%xU z)wy-Y?68VJ-_ZLz$dr2e+A&5 z9*_0w^(7~eT_aQ3M^wHrgtzKFA2jVE@!_^>zX3j3(f;<1wDra3YwO+xV0Ea{0T}zK z6Yy8LdCIkiXl`NH0cdSL<%0jkLO>#qx%$P|r2Nw4;vGr-3u9`gO4e@!AbI{X$<`cL z_`bj%qEizpb9ZN_0N*DiyOHdv;ae3$BoCd>35+~bBr{@?mpoK5`{en>2PlN?Au12$ zF?Ea9a#Gz12}wCCZF@$=@)49X4t%Zb3!RljLQ;HEva#K7KdUO#XEsp#i1u|4YBwXM zy1P{@PqnJERco^%Be#1CDW^bX>ax1So1a|LKc1c-UXK5x+dXTD Z{sj&`h}WR;<;4I1002ovPDHLkV1oWPDB%DA literal 500 zcmV(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ-dPzhG8G8*j~4a5%$Rz!YKv>;_&_oRV^ zUeeR&f_#0SdqOaAxY+D@vDvpka{uQLx&$I(KPdR}X!!DI41?lO-s8CW^2qb$kq_G& zAGS9G1ns#8f=e$U(HvmX%J?*|IL)he+-$Pu*<@{e2tIcgL<|XlIFJdl)Z%D2J@IaO zGR7m2%)|NagV;iXOa5Fn{9HB6*E{p|ZUET;jB<7kL<*XjXXu0000(mod).postMoonLordRarity = 16; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/DraedonsExoblade.cs b/Items/Weapons/DraedonsExoblade.cs index 20dc31c942..f240cbda34 100644 --- a/Items/Weapons/DraedonsExoblade.cs +++ b/Items/Weapons/DraedonsExoblade.cs @@ -24,13 +24,13 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 80; - item.damage = 3500; + item.damage = 6700; item.useAnimation = 14; item.useStyle = 1; item.useTime = 14; item.useTurn = true; item.melee = true; - item.knockBack = 6f; + item.knockBack = 9f; item.UseSound = SoundID.Item1; item.autoReuse = true; item.height = 114; @@ -38,18 +38,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("Exobeam"); item.shootSpeed = 19f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override void GetWeaponDamage(Player player, ref int damage) { @@ -118,7 +108,7 @@ namespace CalamityMod.Items.Weapons Projectile.NewProjectile(vector2.X, vector2.Y, speedX, speedY, mod.ProjectileType("Exocomet"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0.0f, ai1); } } - if (target.type == NPCID.TargetDummy) + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { return; } diff --git a/Items/Weapons/Drataliornus.cs b/Items/Weapons/Drataliornus.cs index c6b5ed2c9c..460cb377bd 100644 --- a/Items/Weapons/Drataliornus.cs +++ b/Items/Weapons/Drataliornus.cs @@ -41,19 +41,9 @@ Right click to fire two devastating barrages of five empowered fireballs. item.useTurn = false; item.useAmmo = AmmoID.Arrow; item.autoReuse = true; + item.GetGlobalItem(mod).postMoonLordRarity = 16; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } - public override bool AltFunctionUse(Player player) { return true; diff --git a/Items/Weapons/Earth.cs b/Items/Weapons/Earth.cs index 26f8282438..905156011b 100644 --- a/Items/Weapons/Earth.cs +++ b/Items/Weapons/Earth.cs @@ -37,35 +37,14 @@ namespace CalamityMod.Items.Weapons item.height = 104; item.value = Item.buyPrice(5, 0, 0, 0); item.rare = 10; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - if (target.type == NPCID.TargetDummy) - { - return; - } - if (Main.rand.Next(3) == 0) - { - target.defense -= 50; - } - int heal = Main.rand.Next(1, 69); - player.statLife += heal; - player.HealEffect(heal); float num72 = 25f; - Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); - float num78 = (float)Main.mouseX - Main.screenPosition.X - vector2.X; + Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); + float num78 = (float)Main.mouseX - Main.screenPosition.X - vector2.X; float num79 = (float)Main.mouseY - Main.screenPosition.Y - vector2.Y; if (player.gravDir == -1f) { @@ -83,7 +62,7 @@ namespace CalamityMod.Items.Weapons { num80 = num72 / num80; } - num78 *= num80; + num78 *= num80; num79 *= num80; int num107 = 3; for (int num108 = 0; num108 < num107; num108++) @@ -109,6 +88,17 @@ namespace CalamityMod.Items.Weapons float speedY5 = num79 + (float)Main.rand.Next(-180, 181) * 0.02f; Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, mod.ProjectileType("Earth"), (int)((float)item.damage * player.meleeDamage), knockback, player.whoAmI, 0f, (float)Main.rand.Next(10)); } + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) + { + return; + } + if (Main.rand.Next(2) == 0) + { + target.defense -= 50; + } + int heal = Main.rand.Next(1, 69); + player.statLife += heal; + player.HealEffect(heal); } public override void AddRecipes() diff --git a/Items/Weapons/Effervescence.cs b/Items/Weapons/Effervescence.cs index cb4feacab2..677ba2d911 100644 --- a/Items/Weapons/Effervescence.cs +++ b/Items/Weapons/Effervescence.cs @@ -14,38 +14,28 @@ namespace CalamityMod.Items.Weapons public override void SetStaticDefaults() { DisplayName.SetDefault("Effervescence"); - } - - public override void SetDefaults() - { - item.damage = 24; - item.magic = true; - item.mana = 17; - item.width = 56; - item.height = 26; - item.useTime = 12; - item.useAnimation = 12; - item.useStyle = 5; - item.noMelee = true; - item.knockBack = 3.75f; - item.value = Item.buyPrice(1, 20, 0, 0); - item.rare = 10; - item.UseSound = SoundID.Item95; - item.autoReuse = true; - item.shootSpeed = 13f; - item.shoot = mod.ProjectileType("UberBubble"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + } + + public override void SetDefaults() + { + item.damage = 24; + item.magic = true; + item.mana = 17; + item.width = 56; + item.height = 26; + item.useTime = 12; + item.useAnimation = 12; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 3.75f; + item.value = Item.buyPrice(1, 20, 0, 0); + item.rare = 10; + item.UseSound = SoundID.Item95; + item.autoReuse = true; + item.shootSpeed = 13f; + item.shoot = mod.ProjectileType("UberBubble"); + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/ElementalAxe.cs b/Items/Weapons/ElementalAxe.cs index 3227679ca6..bcfb5266f2 100644 --- a/Items/Weapons/ElementalAxe.cs +++ b/Items/Weapons/ElementalAxe.cs @@ -43,18 +43,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("ElementalAxe"); item.shootSpeed = 10f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/ElementalBlaster.cs b/Items/Weapons/ElementalBlaster.cs index ad9b3968b0..3cc0b56467 100644 --- a/Items/Weapons/ElementalBlaster.cs +++ b/Items/Weapons/ElementalBlaster.cs @@ -34,23 +34,13 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("RainbowBlast"); item.shootSpeed = 18f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } public override Vector2? HoldoutOffset() { return new Vector2(-15, 0); } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/ElementalEruption.cs b/Items/Weapons/ElementalEruption.cs index 8f218896a8..df9af9190a 100644 --- a/Items/Weapons/ElementalEruption.cs +++ b/Items/Weapons/ElementalEruption.cs @@ -35,19 +35,9 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("TerraFireGreen2"); item.shootSpeed = 10f; item.useAmmo = 23; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { int num6 = Main.rand.Next(3, 6); @@ -69,7 +59,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 90) + if (Main.rand.Next(0, 100) < 90) return false; return true; } diff --git a/Items/Weapons/ElementalRay.cs b/Items/Weapons/ElementalRay.cs index a2d4f4c9a2..54f464947b 100644 --- a/Items/Weapons/ElementalRay.cs +++ b/Items/Weapons/ElementalRay.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 178; + item.damage = 150; item.magic = true; item.mana = 18; item.width = 62; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("ElementRay"); item.shootSpeed = 6f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/ElementalShortsword.cs b/Items/Weapons/ElementalShortsword.cs index 843835dbdc..f1c14e5ead 100644 --- a/Items/Weapons/ElementalShortsword.cs +++ b/Items/Weapons/ElementalShortsword.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.shootSpeed = 14f; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/ElysianArrow.cs b/Items/Weapons/ElysianArrow.cs index eddf644f8f..2bcaa662b8 100644 --- a/Items/Weapons/ElysianArrow.cs +++ b/Items/Weapons/ElysianArrow.cs @@ -29,18 +29,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("ElysianArrow"); item.shootSpeed = 10f; item.ammo = 40; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/EmpyreanKnives.cs b/Items/Weapons/EmpyreanKnives.cs index 608a708e79..9beefb6ccb 100644 --- a/Items/Weapons/EmpyreanKnives.cs +++ b/Items/Weapons/EmpyreanKnives.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("EmpyreanKnives"); item.shootSpeed = 15f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/EnergyStaff.cs b/Items/Weapons/EnergyStaff.cs index 99d2c0525f..c7e750f29e 100644 --- a/Items/Weapons/EnergyStaff.cs +++ b/Items/Weapons/EnergyStaff.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 231; + item.damage = 170; item.summon = true; item.sentry = true; item.mana = 25; @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.autoReuse = true; item.shoot = mod.ProjectileType("ProfanedEnergy"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/EssenceFlayer.cs b/Items/Weapons/EssenceFlayer.cs index 0a69bc88a7..40da27d236 100644 --- a/Items/Weapons/EssenceFlayer.cs +++ b/Items/Weapons/EssenceFlayer.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("EssenceScythe"); item.shootSpeed = 21f; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/ExcaliburShortsword.png b/Items/Weapons/ExcaliburShortsword.png index f7050a8f03f035f03bf8b6e28275db6496be0ec9..810e46bd8da6864a15771eae526ef81615955143 100644 GIT binary patch delta 576 zcmV-G0>AyM1lRMpIK0Oe?X*fN2A>-SiEyLFX`Z2X(Iq0Eb9$a0r;b ze*HR__SS2qZ-@;#hY@nn+O=!IAygW%0VSj^zW4&pkTlDcgMZFplsX7jxKTaC2A#uT z4r(^G2YXsP=nt5FEe^?T*REZ~o2JmKMyiF_pmP{{)WPaJvuonuKscrK5=@)9a$(JV z=pjY5G)8xap*KrlT)3s+0f@ySfNDi?<@32{|)?iP;+DR}U z!rD{B)_uf=6o0`q1`Dx4=dg5pRdAbp#$p|m+yryz!M9Ohaab#XP~C?sEs>nY2A#vu zqYzg9_*k3+drn`3A52@d%>&bjbyI7ffIXQl0%@CXzVQ}JpLqNj zO#A0cqU2gqb05)Z487nSG!BFL0Omj$CSkBpx*;TY`hRLb_&&=aCHa$okPw6cnuXY) zcbJb?1h^c_$SMK5b$VJbnD%rPgQU4;8I+Jh?@3b{ayZ*#gT`UrQt~LHFPXE}fq`1_}msS4a=>t5Sq8>9$5Uu&F552Yw!>obPj_#2v@G#`s^V}bQ5Y0p#&QR9L7QK zuq~00-Z>4dWS@Ed3Yd=`ViW`dNm}6{HfSA&?wx@ODVRIpAvV|?1^|I{!p3$CyFUN` O002ovPDHLkV1fYkng=QX delta 531 zcmV+u0_^?R1giv)BYyw}VoOIv0RI600RN!9r;`8x010qNS#tmY3ljhU3ljkVnw%H_ z000McNliru;0hfUBNAum|0)0g0k}y-K~z}7?U+4F!%!54--2{*C9zxvQrmPj$7>hYNE zXf~r5oa2 z;;%6#Chqv)zwu0RS?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pN~~1wasqqIWaDGjo!MqGyLUD@_sl)_&P>9gf4cf3UGMe2`t z`;oC->HEfr@j!Tv&nF#5zyzxk?1$p5Vz;v1<6>YhT+tMO7Fixdjobk0YVhs>5kx2H| zjE&6dvfR%uEJ?eO9F|s9TVegunQ~mjD@kptWgQSqvFF!EaT>?W)6JcjG!;tHvRtD! zLoDEZzSUaz!PWrbSm2o9OwLs(jFtm0YL&p?S#C6Jb@|3Q_X9mP8AdUzCUBc zcpzN+U`;)kI})cst=NNq-TyTs)&Wt~Kq{39EF;DOLBivzwNaG`3?s$^;aUlK!Y_4F zG5KxPG6o1|TBuG?0f3<|j2I6D095-2c>|scp*nhk@!8 zRhMUf`raxd#sh%|ymm8!rc$1nT}5rsfqVc~Z list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, 100, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 18; + } public override void AddRecipes() { diff --git a/Items/Weapons/FiniteUse/Bazooka.cs b/Items/Weapons/FiniteUse/Bazooka.cs index 427cd486d2..dc482a143b 100644 --- a/Items/Weapons/FiniteUse/Bazooka.cs +++ b/Items/Weapons/FiniteUse/Bazooka.cs @@ -1,65 +1,65 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Weapons.FiniteUse -{ - public class Bazooka : ModItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.FiniteUse +{ + public class Bazooka : ModItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Bazooka"); - Tooltip.SetDefault("Uses Grenade Shells\n" + + Tooltip.SetDefault("Uses Grenade Shells\n" + "Does more damage to inorganic enemies"); } - public override void SetDefaults() - { - item.damage = 500; - item.width = 66; - item.height = 26; - item.useTime = 30; - item.useAnimation = 30; - item.useStyle = 5; - item.noMelee = true; - item.knockBack = 10f; - item.value = Item.buyPrice(0, 36, 0, 0); - item.rare = 5; - item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/BazookaFull"); - item.autoReuse = true; - item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("GrenadeRound"); - item.useAmmo = mod.ItemType("GrenadeRounds"); - } - - public override Vector2? HoldoutOffset() - { - return new Vector2(-10, 0); - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.IronBar, 20); - recipe.anyIronBar = true; - recipe.AddIngredient(ItemID.IllegalGunParts); - recipe.AddIngredient(ItemID.AdamantiteBar, 15); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.IronBar, 20); - recipe.anyIronBar = true; - recipe.AddIngredient(ItemID.IllegalGunParts); - recipe.AddIngredient(ItemID.TitaniumBar, 15); - recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } + public override void SetDefaults() + { + item.damage = 500; + item.width = 66; + item.height = 26; + item.useTime = 30; + item.useAnimation = 30; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 10f; + item.value = Item.buyPrice(0, 36, 0, 0); + item.rare = 5; + item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/BazookaFull"); + item.autoReuse = true; + item.shootSpeed = 12f; + item.shoot = mod.ProjectileType("GrenadeRound"); + item.useAmmo = mod.ItemType("GrenadeRounds"); + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-10, 0); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.IronBar, 20); + recipe.anyIronBar = true; + recipe.AddIngredient(ItemID.IllegalGunParts); + recipe.AddIngredient(ItemID.AdamantiteBar, 15); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.IronBar, 20); + recipe.anyIronBar = true; + recipe.AddIngredient(ItemID.IllegalGunParts); + recipe.AddIngredient(ItemID.TitaniumBar, 15); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Weapons/FiniteUse/ElephantKiller.cs b/Items/Weapons/FiniteUse/ElephantKiller.cs index 1d625ae080..fb12e59566 100644 --- a/Items/Weapons/FiniteUse/ElephantKiller.cs +++ b/Items/Weapons/FiniteUse/ElephantKiller.cs @@ -1,68 +1,58 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Weapons.FiniteUse -{ - public class ElephantKiller : ModItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.FiniteUse +{ + public class ElephantKiller : ModItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Elephant Killer"); - Tooltip.SetDefault("Uses Magnum Rounds\n" + + Tooltip.SetDefault("Uses Magnum Rounds\n" + "Does more damage to organic enemies"); } - public override void SetDefaults() - { - item.damage = 2000; - item.crit += 66; - item.width = 46; - item.height = 26; - item.useTime = 19; - item.useAnimation = 19; - item.useStyle = 5; - item.noMelee = true; - item.knockBack = 8f; - item.value = Item.buyPrice(1, 20, 0, 0); - item.rare = 10; - item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Magnum"); - item.autoReuse = true; - item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("MagnumRound"); - item.useAmmo = mod.ItemType("MagnumRounds"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - - public override Vector2? HoldoutOffset() - { - return new Vector2(-5, 0); - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "LightningHawk"); - recipe.AddIngredient(ItemID.LunarBar, 30); - recipe.AddIngredient(ItemID.IllegalGunParts); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } + public override void SetDefaults() + { + item.damage = 2000; + item.crit += 66; + item.width = 46; + item.height = 26; + item.useTime = 19; + item.useAnimation = 19; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 8f; + item.value = Item.buyPrice(1, 20, 0, 0); + item.rare = 10; + item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Magnum"); + item.autoReuse = true; + item.shootSpeed = 12f; + item.shoot = mod.ProjectileType("MagnumRound"); + item.useAmmo = mod.ItemType("MagnumRounds"); + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-5, 0); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "LightningHawk"); + recipe.AddIngredient(ItemID.LunarBar, 30); + recipe.AddIngredient(ItemID.IllegalGunParts); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Weapons/FiniteUse/ElephantKiller.png b/Items/Weapons/FiniteUse/ElephantKiller.png index 559922674b5331ad1edfc713c70ae093c00e7d6e..3b05169cb0dd687692872c44b17813c9757f4754 100644 GIT binary patch delta 585 zcmV-P0=E6&1mXmcB!4MML_t(oh3%M6YZE~jho6aQXzS%n@dk3-qf442qFZJQmcq34J36dnhYzxiqf_!o(LsSE&qv#uc|YZ4o~Y$yKU zP9>5bmsiRiw12iQEPb=aqpbnFLm6wwBe|22Yx5lt-MjxB2)!!W zuGgjCQZ1-z6BA{(>-Yxo(a{0`-`lMS>GWWfc;j~XBvg-vkhBmkT^a{q;n@p*kN2ept$zaxVbh~Kl}UQ}{kz~kcQx8y zpkz;PKL9O%MFSkojsTrrHuY&)c89_7+SE)WE-T#eTwVcq>0j$YWAkxMnWRO|5?A>` z5$N=G;Y=O~J-yK(u^xEt>k0sRea*T%jPvH7lC#8# zE-uyGL2z-<*+~bNqC@wZrIScE9i>GOAvj8{B2F4e>N6$Up2PE>dYAV|+M42t-|}AW z{&yF?_v3Oe3XAN>sN8D158&8|F$M7P!`rCtJu~R10N4l`k$>w03Lw#!)%O9fTfu|J z6#!P2RsdM6%xQq)WKjWBUsvPI?23(`0YI)e1;CBlHvzbHbyi9=IBZ9ehGYTN6 zhwHm*T(Ujn9|jAZ5zxNNOhK)KqyMJ~@cZzL#?ftv(d+utszW{F_ zIRrp6Sl0kYvtveqooV6Inw$>9>y_E?Oko>7p35r$KmF@>p&mV79JXn}S>q~SC<2|? zwlm!xkk|?{_jMfry|o#6I*iNapTb$=o}Fzw)1?d306cs0RGMtV9p@eBpJ~Ba<0?Bc z+S6|0B|wz|sMo$kPSh{6aX4$d{mwaEz8F~`Zyd7U@3+}FoHgFgcpUcsDF2P`k)M`~ Vy32G1LE``b002ovPDHLkV1hA2AfEsL diff --git a/Items/Weapons/FiniteUse/ExplosiveShells.cs b/Items/Weapons/FiniteUse/ExplosiveShells.cs new file mode 100644 index 0000000000..3ebe0c076d --- /dev/null +++ b/Items/Weapons/FiniteUse/ExplosiveShells.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.FiniteUse +{ + public class ExplosiveShells : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Explosive Shotgun Shell"); + } + + public override void SetDefaults() + { + item.damage = 30; + item.width = 18; + item.height = 18; + item.maxStack = 6; + item.consumable = true; + item.knockBack = 10f; + item.value = 15000; + item.rare = 8; + item.shoot = mod.ProjectileType("ExplosiveShellBullet"); + item.shootSpeed = 12f; + item.ammo = mod.ItemType("ExplosiveShells"); + } + } +} \ No newline at end of file diff --git a/Items/Weapons/FiniteUse/ExplosiveShells.png b/Items/Weapons/FiniteUse/ExplosiveShells.png new file mode 100644 index 0000000000000000000000000000000000000000..51da0ee1c80a6c3b7b2f9e4d9e9da4b5d3727a16 GIT binary patch literal 279 zcmV+y0qFjTP)^qKHmKv0bzvE`qaT2UqcdoP7!3LRSvUM^ON z`)<3z$Y52kB>?)f5P)VY7j2v@0Hg2(K%jf+4e{YY)``i!W(In0Zg?mEin(DOUJ?uc z2g}?r=k}Ex&&>^uTwVYKQbzy4wiAUwN&w&RsaLL41B)0A4c<`JSroD=(uh5 dzxGUO!yTyPJuLaE#AN^g002ovPDHLkV1npbb20z` literal 0 HcmV?d00001 diff --git a/Items/Weapons/FiniteUse/GrenadeRounds.cs b/Items/Weapons/FiniteUse/GrenadeRounds.cs index b4e2d8e609..7d09eba57d 100644 --- a/Items/Weapons/FiniteUse/GrenadeRounds.cs +++ b/Items/Weapons/FiniteUse/GrenadeRounds.cs @@ -1,33 +1,33 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Weapons.FiniteUse -{ - public class GrenadeRounds : ModItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.FiniteUse +{ + public class GrenadeRounds : ModItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Grenade Shells"); } - public override void SetDefaults() - { - item.damage = 200; - item.width = 18; - item.height = 18; - item.maxStack = 3; - item.consumable = true; - item.knockBack = 10f; - item.value = 15000; - item.rare = 8; - item.shoot = mod.ProjectileType("GrenadeRound"); - item.shootSpeed = 12f; - item.ammo = mod.ItemType("GrenadeRounds"); - } - } + public override void SetDefaults() + { + item.damage = 200; + item.width = 18; + item.height = 18; + item.maxStack = 9; + item.consumable = true; + item.knockBack = 10f; + item.value = 15000; + item.rare = 8; + item.shoot = mod.ProjectileType("GrenadeRound"); + item.shootSpeed = 12f; + item.ammo = mod.ItemType("GrenadeRounds"); + } + } } \ No newline at end of file diff --git a/Items/Weapons/FiniteUse/Hydra.cs b/Items/Weapons/FiniteUse/Hydra.cs new file mode 100644 index 0000000000..a90f1371a4 --- /dev/null +++ b/Items/Weapons/FiniteUse/Hydra.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.FiniteUse +{ + public class Hydra : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Hydra"); + Tooltip.SetDefault("Uses Explosive Shotgun Shells\n" + + "Does more damage to everything"); + } + + public override void SetDefaults() + { + item.damage = 120; + item.width = 66; + item.height = 30; + item.useTime = 33; + item.useAnimation = 33; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 10f; + item.value = Item.buyPrice(0, 80, 0, 0); + item.rare = 8; + item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Hydra"); + item.autoReuse = true; + item.shootSpeed = 12f; + item.shoot = mod.ProjectileType("ExplosiveShellBullet"); + item.useAmmo = mod.ItemType("ExplosiveShells"); + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-5, 0); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + for (int index = 0; index < 15; ++index) + { + float SpeedX = speedX + (float)Main.rand.Next(-15, 16) * 0.05f; + float SpeedY = speedY + (float)Main.rand.Next(-15, 16) * 0.05f; + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + } + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.Shotgun); + recipe.AddIngredient(ItemID.IronBar, 20); + recipe.anyIronBar = true; + recipe.AddIngredient(ItemID.IllegalGunParts); + recipe.AddIngredient(ItemID.Ectoplasm, 20); + recipe.AddTile(TileID.MythrilAnvil); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Weapons/FiniteUse/Hydra.png b/Items/Weapons/FiniteUse/Hydra.png new file mode 100644 index 0000000000000000000000000000000000000000..8dff41dfc2c303f317ba666f9a723dce3be46892 GIT binary patch literal 1048 zcmV+z1n2vSP)9@p000BuNklA$n8rvbEjgz#dQpi`WC{0UyK&ncsA|Y-dj$GOs6{kvEI3N{?|9}f8B!tAJ zz4VCS1{_eKs?-A^P1MwK`VmoF5<5k8?RD*44(oTFnf1nYlBSOPT-Gx?yE~ru_x@&Q zR8=n{mUoPJ$BCI4=5NgbxJFY25ZT4P?J5;)F=Q0{jc#Ly9mJ%?ka{~>C?)WzW)w@&(5FI>N{3MA-6)M{1m%dWh{Mc8(r)! zqOBT;5=O_;tlZB4xW&hLQsdJAe01(p08V{y3V^q#UIpNf>{9@~`r=FNerHatSp0IR=UZhBt&ef7%MKnIFgxt}39ba1=<>skUH@m6|PE4zJt7p|`6?QX(K_$$e4Cwcmfzt_$-B@s_P3o+QZg2Xnt@^)nw| z($0765xq`JMWhn?Sd}N=)XItFzW_)LCIHB-m$i1{5ydBY0H%&V-`T=M`X@-gI`)W{ zg@7VXPtRgIKwS~XU)OV2A}$>L@B+}7ug&x8!-oKPyy_`Jlp*vF3;~VVWT$2k@via0 z9j$)k?0K!csYk?LLY?@E5N}8(ES#D{!cy9-apt7H+PrpSSu0=o=3AiQ#=_mBR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G-T>uFT$h^4PjyTDuf-uaoA9G+eI;e-tSU zjRLUzeldc$8fXpA&p)*WOitbZr}i`t&FuC|tA?6~ye1{)X3hA*(5QcJcFPmWn4Vl2 z5vn3CTKhudR8>THV!(>?r%b%@Z9Op-%`H2Y5-XpV0Dm795%P%8+Ew*Z#)LAbDy6mG z`mq)OtbJ_&u+wTr0NGq$0I<{Ejv!VjO_@gBWITJk*NpqwvhH91^bzn#kqo>0`7m!X z@O^bf#|UCixJn3lL!Oc+vb`Y?E1~;HiPOWTT8>>Tbu`gNeaX6xlo0+X5ieYU zSSA2yZhx&uknRoly&zmAT(tIe>=u6%>9nI;*R>mUy^#z11BkzC5=d02Tl`n#&+lJW zop*7+9M2R>0l=4971&=@4jTUz5%Pk&J9YO`CkG3_;VU7$QDk2Q+4DbFNB?Vu`2q93 g*)Ub@zam}o7lHK(H$QvzDF6Tf07*qoM6N<$g4nt)YybcN diff --git a/Items/Weapons/FiniteUse/Magnum.cs b/Items/Weapons/FiniteUse/Magnum.cs index 4b6af8d27f..cd7ce71f09 100644 --- a/Items/Weapons/FiniteUse/Magnum.cs +++ b/Items/Weapons/FiniteUse/Magnum.cs @@ -1,58 +1,58 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Weapons.FiniteUse -{ - public class Magnum : ModItem - { +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.FiniteUse +{ + public class Magnum : ModItem + { public override void SetStaticDefaults() { DisplayName.SetDefault("Magnum"); - Tooltip.SetDefault("Uses Magnum Rounds\n" + + Tooltip.SetDefault("Uses Magnum Rounds\n" + "Does more damage to organic enemies"); } - public override void SetDefaults() - { - item.damage = 80; - item.crit += 46; - item.width = 46; - item.height = 24; - item.useTime = 25; - item.useAnimation = 25; - item.useStyle = 5; - item.noMelee = true; - item.knockBack = 8f; - item.value = Item.buyPrice(0, 2, 0, 0); - item.rare = 2; - item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Magnum"); - item.autoReuse = true; - item.shootSpeed = 12f; - item.shoot = mod.ProjectileType("MagnumRound"); - item.useAmmo = mod.ItemType("MagnumRounds"); - } - - public override Vector2? HoldoutOffset() - { - return new Vector2(-5, 0); - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.FlintlockPistol); - recipe.AddIngredient(ItemID.IronBar, 10); - recipe.anyIronBar = true; - recipe.AddIngredient(ItemID.Diamond, 5); - recipe.AddTile(TileID.Anvils); - recipe.SetResult(this); - recipe.AddRecipe(); - } - } + public override void SetDefaults() + { + item.damage = 80; + item.crit += 46; + item.width = 46; + item.height = 24; + item.useTime = 25; + item.useAnimation = 25; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 8f; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/Magnum"); + item.autoReuse = true; + item.shootSpeed = 12f; + item.shoot = mod.ProjectileType("MagnumRound"); + item.useAmmo = mod.ItemType("MagnumRounds"); + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-5, 0); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.FlintlockPistol); + recipe.AddIngredient(ItemID.IronBar, 10); + recipe.anyIronBar = true; + recipe.AddIngredient(ItemID.Diamond, 5); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } } \ No newline at end of file diff --git a/Items/Weapons/FiniteUse/Magnum.png b/Items/Weapons/FiniteUse/Magnum.png index 9d052dce03c05a2eec0b2ba5d6f458dd1a07b028..10f48dd4ebe499a24bb07b016455d55aced210ef 100644 GIT binary patch delta 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^>@`U8q>Wzv=Bh}!@F002ov JPDHLkV1jn}xTF98 diff --git a/Items/Weapons/FirestormCannon.cs b/Items/Weapons/FirestormCannon.cs index 3ae36bfb2c..7912490cb9 100644 --- a/Items/Weapons/FirestormCannon.cs +++ b/Items/Weapons/FirestormCannon.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 70) + if (Main.rand.Next(0, 100) < 70) return false; return true; } diff --git a/Items/Weapons/FlameScytheMelee.png b/Items/Weapons/FlameScytheMelee.png index 6df15cd5671dfccb7c59c9ce5bd8fc56cef7c334..d6577c12b47cf583cb6d087e8436056aec7fc2f5 100644 GIT binary patch literal 1032 zcmV+j1o!)iP)Dnf}~ z(1Z$#YEnfbY^&{Vx4RvOH@|M**x9lDw`)4z%gnr)_vY<>_V?%g-Wn{in&La<)XaCk zp|aWl7)Xu-&^!EgPVcFhQ?LI(!BS7)YI_R+-R}|rbPV>JkRyjhxL9&NvBlD*?oR+* zJJ+TfuB(HPtBr&WfX4NW0Awnrwf+M`{dvdri7m9Efsg_4VSK~{ICZfLa3+@tPTPkt z3XShsVg*0-VoKs!Wkmph}d zHL-O7>}uNwXv7N2CpKR-)Nj_VlV)0-WW$t1biD?IMr_0XaGF9ch|IzKrUX{ZR^!Tl|vqn ztOlUR8mDn(H2@!ftCjZlgB#QhpV$J)p3{ZG5d&ZhPIk0CZly4Z!B4a(1oF zF{`JtRmu9rw(RnW%~#?TLm?H1gjD^e-N4_Z;$Mfg{!T0H8QZeSCpK68MQUo&gq#-? z?4y-T$GTE$pv8n2bZu?-; zKC2F?k#mwy%q}NV;{C*?LLo&eJ*8?J1K;ykZrx-j=O&++=wC@itPCPGF$y@>*cVI7 zmze!Govl#cMY2puiIyKRA=OZ+szC$EaT6erRu$NqT0NsE7gD0-L(GZP$&LDM$(3&^ zu1K6J7g8ec6DyWfV`QZP@GH9 zWm_z2fR~9mk$U>;Cji5BajnBpdO|&4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K_9Uyt$ zE79|L`+?%4<_haDK%WK@DiefIUuIayw8JUWc-Kl(?4QdC^Ihf^jk(uYgnn%xR3^xU z-Yc(^T+OXeTz@pY>fAh-qR73QDJ%)Zhx;cqE<3jraTEE3$^^L(GD5n@Y&qk3cj?wB zmVQnE>ymkszE+=J1hNZjoW`hPy={WX6d9okaW`TfeTHfT5$171L3gW9s9X?L2yfuo z^p4kWyw5kHh?`~1K3=Ei{05SFhW!!!K2$EqN#Wsw zBa+4SERe8mf-+&u%c_x+HF(Guz*By-EfWkPO=rCs+>NsLP^pJ9(v}NyQjFu0Nj(fA b{jcCRM`n6Hk_B0N00000NkvXXu0mjfgNEj0 diff --git a/Items/Weapons/FourSeasonsGalaxia.cs b/Items/Weapons/FourSeasonsGalaxia.cs index af1fc468bd..ee52fd8035 100644 --- a/Items/Weapons/FourSeasonsGalaxia.cs +++ b/Items/Weapons/FourSeasonsGalaxia.cs @@ -33,19 +33,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("Galaxia"); item.shootSpeed = 24f; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/GalacticaBlade.cs b/Items/Weapons/GalacticaBlade.cs index b29eae8f84..a3cec0604f 100644 --- a/Items/Weapons/GalacticaBlade.cs +++ b/Items/Weapons/GalacticaBlade.cs @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("GalacticaComet"); item.shootSpeed = 23f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/GammaFusillade.cs b/Items/Weapons/GammaFusillade.cs index ed5227a255..921fcdda07 100644 --- a/Items/Weapons/GammaFusillade.cs +++ b/Items/Weapons/GammaFusillade.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 67; + item.damage = 110; item.magic = true; item.mana = 4; item.width = 28; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("GammaLaser"); item.shootSpeed = 20f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/Genisis.cs b/Items/Weapons/Genisis.cs index dc629c627c..51f0efcf48 100644 --- a/Items/Weapons/Genisis.cs +++ b/Items/Weapons/Genisis.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 52; + item.damage = 48; item.magic = true; item.mana = 4; item.width = 74; @@ -34,23 +34,13 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shootSpeed = 6f; item.shoot = mod.ProjectileType("BigBeamofDeath"); - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override Vector2? HoldoutOffset() { return new Vector2(-5, 0); } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/GrandGuardian.cs b/Items/Weapons/GrandGuardian.cs index 0b917d1c0c..f3b150742b 100644 --- a/Items/Weapons/GrandGuardian.cs +++ b/Items/Weapons/GrandGuardian.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons public override void SetStaticDefaults() { DisplayName.SetDefault("Grand Guardian"); - Tooltip.SetDefault("Has a chance to lower enemy defense by 30 when striking them\n" + + Tooltip.SetDefault("Has a chance to lower enemy defense by 15 when striking them\n" + "If enemy defense is 0 or below your attacks will heal you\n" + "Striking enemies causes a large explosion\n" + "Striking enemies that have under half life will make you release rainbow bolts\n" + @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 124; - item.damage = 200; + item.damage = 160; item.melee = true; item.useAnimation = 22; item.useStyle = 1; @@ -40,21 +40,17 @@ namespace CalamityMod.Items.Weapons } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) - { - if (target.type == mod.NPCType("DevourerofGodsBodyS") || target.type == mod.NPCType("DevourerofGodsBody")) + { + if (Main.rand.Next(5) == 0) { - return; + target.defense -= 15; } - if (Main.rand.Next(2) == 0) + if (target.defense <= 0 && target.canGhostHeal) { - target.defense -= 30; + player.statLife += 4; + player.HealEffect(4); } - if (target.defense <= 0) - { - player.statLife += 6; - player.HealEffect(6); - } - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("RainbowBoom"), (int)((double)((float)item.damage * player.meleeDamage) * 0.5), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("RainbowBoom"), (int)((double)((float)item.damage * player.meleeDamage) * 0.5), 0f, Main.myPlayer); float spread = 180f * 0.0174f; double startAngle = Math.Atan2(item.shootSpeed, item.shootSpeed) - spread / 2; double deltaAngle = spread / 8f; diff --git a/Items/Weapons/Grax.cs b/Items/Weapons/Grax.cs index 2806e58c5a..805167c940 100644 --- a/Items/Weapons/Grax.cs +++ b/Items/Weapons/Grax.cs @@ -34,25 +34,15 @@ namespace CalamityMod.Items.Weapons item.height = 60; item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "FellerofEvergreens"); recipe.AddIngredient(null, "DraedonBar", 5); - recipe.AddRecipeGroup("LunarAxe"); + recipe.AddRecipeGroup("LunarHamaxe"); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/GreatbowofTurmoil.png b/Items/Weapons/GreatbowofTurmoil.png index 038bbf3f05a938f143a36f36d014950cf494016a..c2701d189ef95ef0dbb7c03ea2c7951f34e328a8 100644 GIT binary patch literal 1204 zcmV;l1WWsgP)jWyg)}5-eztEinV-+ac_)*5^Ij(eg*%w<=DqvwJ8$0ozH`s{-gC#` zU}SjIy#&B3K>>h`ay?4Cp$$%TbsK=?%1&Z`<}eTaFJSaUnFxX|0BW^L;>f=k8V6wF zjlKi@z|4b90Hzk^6Z_v8>@(mKBWX+=>pKNNq3>j(VQKRz0H1Upx2{ibtOIam;xz!y zPM%J*pS}GAfX{E;1$<&;Y(&0!8WW3;?;YqtZ+8s>@c!|BU_Ue8%sjICU7zuWk(|qf zLYc^S7Ysn7ybXYfjCEhH2>_TYZCSId9TRR`@rMyT+1gyTI)b1}hQ2Lte9}l{4VyJ< zRuxK^tIpzU8~W!9V<9JdVgn=2!=sA)0fBF#5k_`}FRJ`ccn zu?WCwwR#}K?0{rnceW`svMSPiL*XAI3b*Y-M|%FFNdSKT@eTkhac)YRE$!eBBmFN) zu2_Fw13=p@irK(GE2m^*CeD9w0cbIEGiGMcv9D(8KuZb!z36N9JrOf-c35)B+H-r> zsF%M!G$sZ`iNxXNas(|Vl$l3&<^K5|NkL(yqK}FIx_e(Xu%8*97_n!G+g4OF4LR;S zivWgSeaq@sW-fm9rFH#}JHG-grWPOHivR{rpRuyGH;kCumoMwN>I?%gdHuR|1g-Urt^j9#mh62k_MNnx zr06_G+(@W8MRms1!h8fUy&<|pmDw+c(Jjjr z$vvN*k^bGt8f#Zo`>J0O(D}J00%#Z+V3?Cgd2MGyj=#xKv+u?B*%#<=Mu7baO{>4=t1FDA62)g#`U+(dcQ2$awsSD5pD14kGgH(Rtp1@u_{R} zRHx{=hm_jAH;kB(;nBpA=kd}4k^BSdQ?9QlGdhdBVdQ9+)5XzFxQnBIOSsq<_y70*sQCwb!V1^> SjQ_6y0000D z;MDogfCrrTeuWVvjjj$Rj!!R0j*)H_llKO4`^lq z%(>`6g>K=UB}c$YlV)GX8tk}y1dc##kw|q5N>tpysj27AE|gUBQ(qD6fcqCugXvcX zE3w8AK_AfEg0&W*U>^jZSPk}p0H*|)U(wYFc5z2pJ(xb0YKsyVgi;ec4hGzU{iiO0 zU4C-ST9i2W@cjkck=T+K(LSKqf@^t@IMA8|i31owj|-SMx`nuW0yk{HEI{`OdN?cU zn}UU4`2^i31bsj^3t$$(%B*>*kkZ#`_F=rKifA8DY{9Qn6Tzv7%`6{px<VKsO7}QxPm@!}3G&Mbw;4vJdEH0eYDPYcEkfC&LQ8Q44SuK|?PU5i0c1TY@C# z1DaU?GZorU(mod).postMoonLordRarity = 14; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/GreatswordofJudgement.cs b/Items/Weapons/GreatswordofJudgement.cs index b599d24a66..181c890301 100644 --- a/Items/Weapons/GreatswordofJudgement.cs +++ b/Items/Weapons/GreatswordofJudgement.cs @@ -37,18 +37,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("Judgement"); item.shootSpeed = 10f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/HeavenlyGale.cs b/Items/Weapons/HeavenlyGale.cs index e418c27dde..6a31fcd5e7 100644 --- a/Items/Weapons/HeavenlyGale.cs +++ b/Items/Weapons/HeavenlyGale.cs @@ -6,7 +6,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -//using TerrariaOverhaul; namespace CalamityMod.Items.Weapons { @@ -24,7 +23,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 600; + item.damage = 700; item.ranged = true; item.width = 44; item.height = 58; @@ -40,23 +39,8 @@ namespace CalamityMod.Items.Weapons item.shoot = 1; item.shootSpeed = 17f; item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/HellfireFlamberge.cs b/Items/Weapons/HellfireFlamberge.cs index 20f77ae324..18d13ccd59 100644 --- a/Items/Weapons/HellfireFlamberge.cs +++ b/Items/Weapons/HellfireFlamberge.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.width = 50; + item.width = 60; item.damage = 102; item.melee = true; item.useAnimation = 20; @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons item.knockBack = 7.75f; item.UseSound = SoundID.Item1; item.autoReuse = true; - item.height = 50; + item.height = 60; item.value = Item.buyPrice(0, 80, 0, 0); item.rare = 8; item.shoot = mod.ProjectileType("ChaosFlameSmall"); diff --git a/Items/Weapons/HellfireFlamberge.png b/Items/Weapons/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_1~q7Mpb~ zOeMo^72VcJ_Djk~R2~ct5%sY+CwJCrS%)ToR466@<|8utyePZ@yc0P}{^-(g1&+uc XJs`-U_;+_%00000NkvXXu0mjfQJ5@+ literal 483 zcmV<90UZ8`P)ioy1^u+foj6@nikust!8E}W9I{-a|VDg8y`+-B`&br%RI%)QGFnxpJ4c3tQ z@cjkRfj~@9GY&b2+DJ=*J$B^jGZYV&>T81enr0ATl^|6xE#^57OjmR@qNwjEs|WL8 zAu7Nrfi-Ot6N<=c;2}Eb9SU_2r0EOc_sS}+Yy@I%I-=phT^!$SD@n~x|V1(Sz` z7%U_$Mfkx|urz)B6htMin86yHNP@7mj!}f5mjZ*1g3xLD}rfQTGn6?ArzQkd6<1T3uTzagVv!i2cj2O=phLU4)hR(c??$G z!a@|i2AivIi;|XM>S5-h*MKw0cjI-Uxc&?U@?NLaYHD< zVw9sp#-Xs>86NEe_9S}UO~~hj8aagY list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override Vector2? HoldoutOffset() { @@ -55,7 +45,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 101) <= 50) + if (Main.rand.Next(0, 100) < 50) return false; return true; } diff --git a/Items/Weapons/IonBlaster.cs b/Items/Weapons/IonBlaster.cs index 536c23bdd3..e0df6999a1 100644 --- a/Items/Weapons/IonBlaster.cs +++ b/Items/Weapons/IonBlaster.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 44; - item.damage = 25; + item.damage = 20; item.magic = true; item.mana = 8; item.useAnimation = 10; diff --git a/Items/Weapons/Judgement.cs b/Items/Weapons/Judgement.cs index 1573f6adab..2520febd8a 100644 --- a/Items/Weapons/Judgement.cs +++ b/Items/Weapons/Judgement.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 515; + item.damage = 500; item.magic = true; item.mana = 9; item.width = 28; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("WhiteFlame"); item.shootSpeed = 30f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void AddRecipes() { diff --git a/Items/Weapons/Lacerator.cs b/Items/Weapons/Lacerator.cs index cb7b7540f5..d507a7715f 100644 --- a/Items/Weapons/Lacerator.cs +++ b/Items/Weapons/Lacerator.cs @@ -14,14 +14,14 @@ namespace CalamityMod.Items.Weapons public override void SetStaticDefaults() { DisplayName.SetDefault("Lacerator"); - Tooltip.SetDefault("Enemies that are close to the yoyo will have their life drained\n" + + Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\n" + "Someone thought this was a viable weapon against DoG at one point lol"); } public override void SetDefaults() { item.CloneDefaults(ItemID.TheEyeOfCthulhu); - item.damage = 900; + item.damage = 150; item.useTime = 20; item.useAnimation = 20; item.useStyle = 5; @@ -32,18 +32,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.autoReuse = true; item.shoot = mod.ProjectileType("LaceratorProjectile"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void AddRecipes() { diff --git a/Items/Weapons/Leviathan/Atlantis.png b/Items/Weapons/Leviathan/Atlantis.png index 1ef12fd08054cb0fbb221b85d9d3f0587531d281..bb16c851091b7274fbba4b9c6772d0a20d0ee735 100644 GIT binary patch literal 1539 zcmV+e2K@PnP)zYA#H#{OMrrF<4i@686; zY?e~6HPuv-`y^#Y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C}J)%^mo*rwybdB4N(NciBW4o~`dO#lD@ M07*qoM6N<$g4olXD*ylh diff --git a/Items/Weapons/Leviathan/LureofEnthrallment.cs b/Items/Weapons/Leviathan/LureofEnthrallment.cs index e1cd9daf3d..ec60e971d4 100644 --- a/Items/Weapons/Leviathan/LureofEnthrallment.cs +++ b/Items/Weapons/Leviathan/LureofEnthrallment.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Leviathan } if (player.ownedProjectileCounts[mod.ProjectileType("SirenLure")] < 1) { - Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SirenLure"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, mod.ProjectileType("SirenLure"), (int)(65f * player.minionDamage), 2f, Main.myPlayer, 0f, 0f); } } } diff --git a/Items/Weapons/Leviathan/SirensSong.cs b/Items/Weapons/Leviathan/SirensSong.cs index 5be9214697..d40fc81790 100644 --- a/Items/Weapons/Leviathan/SirensSong.cs +++ b/Items/Weapons/Leviathan/SirensSong.cs @@ -31,7 +31,6 @@ namespace CalamityMod.Items.Weapons.Leviathan item.knockBack = 6.5f; item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 7; - item.UseSound = SoundID.Item26; item.autoReuse = true; item.shoot = mod.ProjectileType("SirensSong"); item.shootSpeed = 13f; @@ -56,7 +55,8 @@ namespace CalamityMod.Items.Weapons.Leviathan { float SpeedX = speedX + (float)Main.rand.Next(-15, 16) * 0.05f; float SpeedY = speedY + (float)Main.rand.Next(-15, 16) * 0.05f; - Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + float soundPitch = (Main.rand.NextFloat() - 0.5f) * 0.5f; + Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, soundPitch, 0f); return false; } } diff --git a/Items/Weapons/LifefruitScythe.cs b/Items/Weapons/LifefruitScythe.cs index 79220c7f23..79db765280 100644 --- a/Items/Weapons/LifefruitScythe.cs +++ b/Items/Weapons/LifefruitScythe.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 60; - item.damage = 115; + item.damage = 250; item.melee = true; item.useAnimation = 18; item.useStyle = 1; @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("LifeScythe"); item.shootSpeed = 9f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override void AddRecipes() { @@ -66,7 +56,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - if (target.type == NPCID.TargetDummy) + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { return; } diff --git a/Items/Weapons/LunicEye.png b/Items/Weapons/LunicEye.png index f80d56e5f0b9a727c119dcf28f1990605ca0298c..e54e7dc7890ba2a79ca5ef060d16de79d65fe65a 100644 GIT binary patch literal 1107 zcmV-Z1g!gsP)uMG2wOd=&lC4Svb*SEpUbi1Gx70f^pNnZj#jy|?>=7Ej?+dvjWX8OdVVnidrA>R>AZ!|ER^eH}yxg*C zlI6$Bq?Ow1&QW{p+kh6Cw3G~=WnPDYacK)&?$Tn4zxV|v@K=)S^<*rguJs3MNw$7I zBdJtGF2rP9cy>AB4X!L+*Z4r%6aPGDB1@mHGLuz2G!ERK1D;VaZt>@S&>d9E2} znhT~aaM&p)FNcU7ahS>p^tT9`!mq&}O|-f3GJ-P+?aW_$r6n*w*FXNGg}PR3DkAym z^$^KB+eN=I<1BD-+Bj7*jmj##oXYm_T(K+EMR$<%uz_TCV3cHYhmYj=u8?$xC5MFV ziM;(va;&#mNS0%AZ;g2|8J}OpJkHRm1#M=Gv%t9oPL)ifzU8aGCNV`7vBS32ObTY* zth^zOTND<#B`(BwXseh8@3{5UHfj8`>rbUNes9VWjOWagl>ceOZR4D(5EeKU)X{z( z0GG?VZy+{(o@QvGYtCvr8<$HQ8$G0z!Q)d=K{-u=&GGG}>D z6ZOC8+$}Mp(NjQe*dTZ{&fIxtoCVJCRRwUcG1$paY1I2@G7oVR;xv_sMBIhnc~#_R z-6d)0iO!P};}FNGDz!YrNSIf(z=?3hI2-|hh~Tm9PIWP!dm=7_x57LNOZ({0wRycH z^EZfZ13X7{${><1bFjdPVgfD@LObQ+HUbl&&c$sPDyL3NgO^s-(~w!HswD8Hy7e*+ z0NM$wj#%Kt=SkzTl2iSQGlY9(m9gcY|5C03Y=LuGI(MqraxaYfnJU7Etx-k#rrw;} z-v9oU%K{hsFpgF}Ii{ICx~BW%0000G zbW%=J0RR90|NsC0|NsC0|NsC0z)*`r0004+Nkl^Xzv8lTxR5h{kF zc*N3f0rY7gU_la=b4oc2z7~r5>v0~rO1e7G1$` zd$}rPo(aP6-Qwn1UPrbB`gR0{&ioVbbukYN!GltAAKsMi^j8(A=@>^P42%wb{YJ{w zfi4*#=#-K#`7+sD<=z0umdeucbTxP_w*M|Ye7`AI2Mz^E+jY`}}Xcdu#l?{0(w!Lh;18nkoPQ002ovPDHLkV1fgU0dfEU diff --git a/Items/Weapons/MagneticMeltdown.cs b/Items/Weapons/MagneticMeltdown.cs index 162ea7feb7..97cdef9d20 100644 --- a/Items/Weapons/MagneticMeltdown.cs +++ b/Items/Weapons/MagneticMeltdown.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("MagneticOrb"); item.shootSpeed = 12f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/MajesticGuard.cs b/Items/Weapons/MajesticGuard.cs index d9b8d4eede..81e18a5ce8 100644 --- a/Items/Weapons/MajesticGuard.cs +++ b/Items/Weapons/MajesticGuard.cs @@ -40,10 +40,10 @@ namespace CalamityMod.Items.Weapons { target.defense -= 10; } - if (target.defense <= 0) + if (target.defense <= 0 && target.canGhostHeal) { - player.statLife += 4; - player.HealEffect(4); + player.statLife += 3; + player.HealEffect(3); } } diff --git a/Items/Weapons/MantisClaws.cs b/Items/Weapons/MantisClaws.cs index 47ad7aebaf..1d07645ed2 100644 --- a/Items/Weapons/MantisClaws.cs +++ b/Items/Weapons/MantisClaws.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 26; - item.damage = 90; + item.damage = 120; item.melee = true; item.useAnimation = 6; item.useStyle = 1; @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, (int)((float)item.damage * player.meleeDamage), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, 0, knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/Megafleet.cs b/Items/Weapons/Megafleet.cs index 3b1ba4ecc6..9ed0114596 100644 --- a/Items/Weapons/Megafleet.cs +++ b/Items/Weapons/Megafleet.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 480; + item.damage = 1000; item.ranged = true; item.width = 96; item.height = 38; @@ -34,27 +34,17 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 18f; item.useAmmo = 97; + item.GetGlobalItem(mod).postMoonLordRarity = 16; } public override Vector2? HoldoutOffset() { return new Vector2(-5, 0); } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 95) + if (Main.rand.Next(0, 100) < 95) return false; return true; } diff --git a/Items/Weapons/Megalodon.cs b/Items/Weapons/Megalodon.cs index 0d682d47d8..7895e38b23 100644 --- a/Items/Weapons/Megalodon.cs +++ b/Items/Weapons/Megalodon.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 50) + if (Main.rand.Next(0, 100) < 50) return false; return true; } diff --git a/Items/Weapons/Meowthrower.cs b/Items/Weapons/Meowthrower.cs index 5e1fb8e659..5227169600 100644 --- a/Items/Weapons/Meowthrower.cs +++ b/Items/Weapons/Meowthrower.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 50) + if (Main.rand.Next(0, 100) < 50) return false; return true; } diff --git a/Items/Weapons/Meowthrower.png b/Items/Weapons/Meowthrower.png index d76908c34e33b62bb75c9216ff664a59de31ab9e..d56d0de42c6ce0b06803fdc76fbd2b81367f4330 100644 GIT binary patch delta 822 zcmV-61Ihf~jseRCkRyKs5lKWrR9HvtSX)R`Q50>!z#u~=qv>7rP_YLV$b>Rh5J6={ zG8I;SNLm<^Q1mbn0D7bn4JCRUso@>TPJvkQZ1xJ1X zqbg?96GH;zFyu~OfT=sfDXI~AHz=wL6_8QYiSfSc<*I**IqR&z{KErjKq{s#eJ#em z(jDTwA`kGZ|CZuhDp$UYD>VaCnKNuat9>FcaQ_Q%TZ`}`=N2l4xrj;)DaIs5Bxy}z zs1PzQN5=QTkExo0C-M@;tU7aTB4YCQ#xEksen(!PohbU6)p1?Gy1pJ@$J-mKfA-P( z75dleTd04SANL-^wChzpFibHfF%mIkmJwj}k(r#DkOHF(>cHI_n+^XIcLl~_qp%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WpjCLb4XJ|Hh27YGP%laGrxACQ-i3j~C> z$;ZW;56H{M1p>m`25fq?Kf`M7xV0eShjKtOn#JaLIm z-3Cgcaqs;M=HBF~x=$a$y+IU0z}Z^^K&T1;gzo}?(Qn+>UH}N>`d)i-?=3wB05bF= z9{0Ha;zZEa!qmtyq^UpN2IpueRkj`OXD2CqUBpUORx0J zkqy;1dIk$LdeCj7i=PBOn;XcwQV1}a2FdH+)308`lOBJlhIUn7wmFG=>bw0aCakdS zW5TgSx!_gE4Mqp8T%Y895>}O9S-5|yw7#~!Wt+ZW>4~vmpp2%6{-B@wty}QD!r|5N z$NVDdmVJ8_Fe|*QY&pqrjew>%ZFcvYMmMlq z62lV=%$>1#gix!1Hei-e)KYO>V5-FW29j;*hRp3HaUhC6u=!BW=Rfclm zQFH@&{a25#2LY|YDu-g-i=48OJwiT7hF2JIbQc)RD6LDPmTh@80@LgiI9AdcN&al@ zv&`~@eURFon2co}N~iK~D27*c7NGWb?ezdQZh2wtNzc5u8m_+gUHp;V$(=hc16Arp zLXa<=3xPW>@L8LRHm(zG=H!dPkX?Ff!pMo9LEe^1(73g79uF5&-$u9%M!0#vRt~4C zl}jCYAG%6fZGj171wMB3DUtQpItF4z)>=W3#t(>?tWJrR)nlsZu|edtIpGNzic<3z z*k`J9Wahtngo8@HQfRQ$v%Z!-eC)yoi&|L63S*pZenO!l8CtAv`qAQTcC^8TT^ZvsGQ#F)W-7nOPAcPd+$ LtuxIt_T2e@zLj~N diff --git a/Items/Weapons/Minigun.cs b/Items/Weapons/Minigun.cs index 2bdf5d006c..0734cc8359 100644 --- a/Items/Weapons/Minigun.cs +++ b/Items/Weapons/Minigun.cs @@ -35,24 +35,14 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 22f; item.useAmmo = 97; - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override Vector2? HoldoutOffset() { return new Vector2(-10, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { float SpeedX = speedX + (float) Main.rand.Next(-15, 16) * 0.05f; @@ -63,7 +53,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 80) + if (Main.rand.Next(0, 100) < 80) return false; return true; } diff --git a/Items/Weapons/MirrorBlade.cs b/Items/Weapons/MirrorBlade.cs index b180c5a2df..f08e08c244 100644 --- a/Items/Weapons/MirrorBlade.cs +++ b/Items/Weapons/MirrorBlade.cs @@ -36,19 +36,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shootSpeed = 16f; item.shoot = mod.ProjectileType("MirrorBlast"); + item.GetGlobalItem(mod).postMoonLordRarity = 13; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); diff --git a/Items/Weapons/Mistlestorm.cs b/Items/Weapons/Mistlestorm.cs index 71b7d2890d..39d05f9cc5 100644 --- a/Items/Weapons/Mistlestorm.cs +++ b/Items/Weapons/Mistlestorm.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 99; + item.damage = 60; item.magic = true; item.mana = 5; item.width = 48; @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = 336; item.shootSpeed = 24f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/MolecularManipulator.cs b/Items/Weapons/MolecularManipulator.cs index acb9172250..ba5073756b 100644 --- a/Items/Weapons/MolecularManipulator.cs +++ b/Items/Weapons/MolecularManipulator.cs @@ -34,28 +34,22 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shootSpeed = 25f; item.shoot = mod.ProjectileType("NullShot2"); - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override Vector2? HoldoutOffset() { return new Vector2(-5, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { player.statLife -= 5; - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("NullShot2"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + if (player.statLife <= 0) + { + player.KillMe(PlayerDeathReason.ByOther(10), 1000.0, 0, false); + } + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("NullShot2"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Weapons/Mourningstar.cs b/Items/Weapons/Mourningstar.cs index 138f5b1e5d..d9e6805b7f 100644 --- a/Items/Weapons/Mourningstar.cs +++ b/Items/Weapons/Mourningstar.cs @@ -34,19 +34,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shootSpeed = 24f; item.shoot = 611; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/Murasama.cs b/Items/Weapons/Murasama.cs index db20710245..c04d681ca3 100644 --- a/Items/Weapons/Murasama.cs +++ b/Items/Weapons/Murasama.cs @@ -37,18 +37,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("Murasama"); item.shootSpeed = 15f; + item.GetGlobalItem(mod).postMoonLordRarity = 15; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/NeptunesBounty.cs b/Items/Weapons/NeptunesBounty.cs index d8f6c09ca3..5ee3dd5707 100644 --- a/Items/Weapons/NeptunesBounty.cs +++ b/Items/Weapons/NeptunesBounty.cs @@ -33,19 +33,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("NeptuneOrb"); item.shootSpeed = 25f; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/NettlelineGreatbow.cs b/Items/Weapons/NettlelineGreatbow.cs index 34d6041212..9bbcb85cbe 100644 --- a/Items/Weapons/NettlelineGreatbow.cs +++ b/Items/Weapons/NettlelineGreatbow.cs @@ -6,7 +6,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -//using TerrariaOverhaul; namespace CalamityMod.Items.Weapons { @@ -35,23 +34,8 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 16f; item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/NuclearFury.cs b/Items/Weapons/NuclearFury.cs index 38b897b30e..e9f506f701 100644 --- a/Items/Weapons/NuclearFury.cs +++ b/Items/Weapons/NuclearFury.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("NuclearFuryProjectile"); item.shootSpeed = 16f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/NullificationRifle.cs b/Items/Weapons/NullificationRifle.cs index 84ecee601b..7129137166 100644 --- a/Items/Weapons/NullificationRifle.cs +++ b/Items/Weapons/NullificationRifle.cs @@ -44,6 +44,10 @@ namespace CalamityMod.Items.Weapons public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { player.statLife -= 5; + if (player.statLife <= 0) + { + player.KillMe(PlayerDeathReason.ByOther(10), 1000.0, 0, false); + } Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("NullShot"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); return false; } diff --git a/Items/Weapons/OmegaBiomeBlade.cs b/Items/Weapons/OmegaBiomeBlade.cs index fb43cadabf..e0e1a4bd14 100644 --- a/Items/Weapons/OmegaBiomeBlade.cs +++ b/Items/Weapons/OmegaBiomeBlade.cs @@ -33,19 +33,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("OmegaBiomeOrb"); item.shootSpeed = 15f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { for (int projectiles = 0; projectiles <= 2; projectiles++) diff --git a/Items/Weapons/Omniblade.cs b/Items/Weapons/Omniblade.cs index 56fbac2795..b7cbfbc49e 100644 --- a/Items/Weapons/Omniblade.cs +++ b/Items/Weapons/Omniblade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 100; - item.damage = 84; + item.damage = 63; item.crit += 45; item.melee = true; item.useAnimation = 10; diff --git a/Items/Weapons/OnyxChainBlaster.cs b/Items/Weapons/OnyxChainBlaster.cs index efa05531cb..9f43b0452b 100644 --- a/Items/Weapons/OnyxChainBlaster.cs +++ b/Items/Weapons/OnyxChainBlaster.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 24f; item.useAmmo = 97; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override Vector2? HoldoutOffset() { @@ -69,7 +59,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 50) + if (Main.rand.Next(0, 100) < 50) return false; return true; } diff --git a/Items/Weapons/Onyxia.cs b/Items/Weapons/Onyxia.cs new file mode 100644 index 0000000000..fccba6623e --- /dev/null +++ b/Items/Weapons/Onyxia.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons +{ + class Onyxia : ModItem + { + const int NotConsumeAmmo = 50; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Onyxia"); + Tooltip.SetDefault(NotConsumeAmmo.ToString() + "% chance to not consume ammo"); + } + + public override void SetDefaults() + { + item.damage = 235; + item.ranged = true; + item.width = 84; + item.height = 34; + item.useTime = 8; + item.useAnimation = 8; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 4.5f; + item.value = Item.buyPrice(1, 80, 0, 0); + item.rare = 10; + item.UseSound = SoundID.Item36; + item.autoReuse = true; + item.shoot = 10; + item.shootSpeed = 28f; + item.useAmmo = 97; + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-11, 3); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + // Fire the Onyx Shard that is characteristic of the Onyx Blaster + // The shard deals triple damage and double knockback + int shardDamage = 3 * damage; + float shardKB = 2f * knockBack; + float shardVelocityX = (speedX + (float)Main.rand.Next(-25, 26) * 0.05f) * 0.9f; + float shardVelocityY = (speedY + (float)Main.rand.Next(-25, 26) * 0.05f) * 0.9f; + Projectile.NewProjectile(position.X, position.Y, shardVelocityX, shardVelocityY, 661, shardDamage, shardKB, player.whoAmI, 0.0f, 0.0f); + + // Fire three symmetric pairs of bullets alongside it + Vector2 baseVelocity = new Vector2(speedX, speedY); + for (int i = 0; i < 3; i++) + { + float randAngle = Main.rand.NextFloat(0.035f); + float randVelMultiplier = Main.rand.NextFloat(0.92f, 1.08f); + Vector2 left = baseVelocity.RotatedBy(-randAngle) * randVelMultiplier; + Vector2 right = baseVelocity.RotatedBy(randAngle) * randVelMultiplier; + Projectile.NewProjectile(position.X, position.Y, left.X, left.Y, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, right.X, right.Y, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + } + return false; + } + + public override bool ConsumeAmmo(Player player) + { + if (Main.rand.Next(0, 100) < NotConsumeAmmo) + return false; + return true; + } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.AddIngredient(null, "OnyxChainBlaster"); + r.AddIngredient(null, "CosmiliteBar", 10); + r.AddIngredient(null, "DarksunFragment", 10); + r.AddTile(null, "DraedonsForge"); + r.SetResult(this); + r.AddRecipe(); + } + } +} diff --git a/Items/Weapons/Onyxia.png b/Items/Weapons/Onyxia.png new file mode 100644 index 0000000000000000000000000000000000000000..4834c9f936ea0a08a71d873b001fe6738426d521 GIT binary patch literal 435 zcmeAS@N?(olHy`uVBq!ia0vp^AwaCe!3-q7o#WF7QtAOdA+A7Lm|Ij=!%|9I!^JT) zKCiY`@ai7f&p!>G{a=5{@U#gZ3S+8DtjaR2LmaMTa^K)Q z6{G!`~ zP28l^Yd19i9@xixWrI|+11r<#jLNP3m%g`keY_UL7jX2}#IxVFp1kI~OCs2OMG~W! z2A|uRp71jj9)FLT-(8*;kg)aR**!Je4c$bvb list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/PhantasmalFury.cs b/Items/Weapons/PhantasmalFury.cs index de7804ac95..f837d8ad1f 100644 --- a/Items/Weapons/PhantasmalFury.cs +++ b/Items/Weapons/PhantasmalFury.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 363; + item.damage = 320; item.magic = true; item.mana = 20; item.width = 62; @@ -36,24 +36,14 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("PhantasmalFury"); item.shootSpeed = 12f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.SpectreStaff); - recipe.AddIngredient(null, "Phantoplasm", 5); + recipe.AddIngredient(null, "RuinousSoul", 2); recipe.AddIngredient(null, "DarkPlasma"); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); diff --git a/Items/Weapons/PhoenixBlade.cs b/Items/Weapons/PhoenixBlade.cs index 440043704b..37f7b09d3a 100644 --- a/Items/Weapons/PhoenixBlade.cs +++ b/Items/Weapons/PhoenixBlade.cs @@ -14,36 +14,37 @@ namespace CalamityMod.Items.Weapons public override void SetStaticDefaults() { DisplayName.SetDefault("Phoenix Blade"); + Tooltip.SetDefault("Enemies explode and emit healing flames on death"); } public override void SetDefaults() { item.width = 106; - item.damage = 35; + item.damage = 95; item.melee = true; - item.useAnimation = 30; + item.useAnimation = 29; item.useStyle = 1; - item.useTime = 30; + item.useTime = 29; item.useTurn = true; - item.knockBack = 7f; + item.knockBack = 8f; item.UseSound = SoundID.Item1; item.autoReuse = true; item.height = 106; - item.value = Item.buyPrice(0, 36, 0, 0); - item.rare = 5; + item.value = Item.buyPrice(0, 48, 0, 0); + item.rare = 6; item.shootSpeed = 12f; } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, damage, knockback, Main.myPlayer); - float spread = 180f * 0.0174f; - double startAngle = Math.Atan2(item.shootSpeed, item.shootSpeed)- spread/2; - double deltaAngle = spread/8f; - double offsetAngle; - int i; - if (Main.rand.Next(4) == 0) + if (target.life <= 0) { + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, damage, knockback, Main.myPlayer); + float spread = 180f * 0.0174f; + double startAngle = Math.Atan2(item.shootSpeed, item.shootSpeed) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; for (i = 0; i < 1; i++ ) { float randomSpeedX = (float)Main.rand.Next(5); @@ -72,8 +73,11 @@ namespace CalamityMod.Items.Weapons ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.BreakerBlade); recipe.AddIngredient(ItemID.HellstoneBar, 10); - recipe.AddIngredient(null, "EssenceofCinder", 2); - recipe.AddTile(TileID.Anvils); + recipe.AddIngredient(null, "EssenceofCinder"); + recipe.AddIngredient(ItemID.SoulofMight, 3); + recipe.AddIngredient(ItemID.SoulofSight, 3); + recipe.AddIngredient(ItemID.SoulofFright, 3); + recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Weapons/Photoviscerator.cs b/Items/Weapons/Photoviscerator.cs index b622ced261..7c338978ff 100644 --- a/Items/Weapons/Photoviscerator.cs +++ b/Items/Weapons/Photoviscerator.cs @@ -36,6 +36,7 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("ExoFire"); item.shootSpeed = 6f; item.useAmmo = 23; + item.GetGlobalItem(mod).postMoonLordRarity = 15; } public override Vector2? HoldoutOffset() @@ -43,17 +44,6 @@ namespace CalamityMod.Items.Weapons return new Vector2(-15, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { float SpeedX = speedX + (float)Main.rand.Next(-5, 6) * 0.05f; @@ -64,7 +54,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 90) + if (Main.rand.Next(0, 100) < 90) return false; return true; } diff --git a/Items/Weapons/PlagueKeeper.cs b/Items/Weapons/PlagueKeeper.cs index d186de1663..5e9bf7cd51 100644 --- a/Items/Weapons/PlagueKeeper.cs +++ b/Items/Weapons/PlagueKeeper.cs @@ -1,72 +1,62 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items; - -namespace CalamityMod.Items.Weapons -{ - public class PlagueKeeper : ModItem - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Plague Keeper"); - } - - public override void SetDefaults() - { - item.width = 74; - item.damage = 110; - item.melee = true; - item.useAnimation = 18; - item.useStyle = 1; - item.useTime = 18; - item.useTurn = true; - item.knockBack = 6f; - item.UseSound = SoundID.Item1; - item.autoReuse = true; - item.height = 92; - item.value = Item.buyPrice(1, 20, 0, 0); - item.rare = 10; - item.shoot = mod.ProjectileType("PlagueBeeDust"); - item.shootSpeed = 9f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - - public override void AddRecipes() - { - ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(null, "VirulentKatana"); - recipe.AddIngredient(ItemID.BeeKeeper); - recipe.AddIngredient(ItemID.FragmentSolar, 10); - recipe.AddIngredient(ItemID.LunarBar, 5); - recipe.AddTile(TileID.LunarCraftingStation); - recipe.SetResult(this); - recipe.AddRecipe(); - } - - public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(mod.BuffType("Plague"), 300); - for (int i = 0; i < 3; i++) - { - int bee = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, player.beeType(), - player.beeDamage(item.damage / 3), player.beeKB(0f), player.whoAmI, 0f, 0f); - Main.projectile[bee].penetrate = 1; - } - } - } -} +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons +{ + public class PlagueKeeper : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Plague Keeper"); + } + + public override void SetDefaults() + { + item.width = 74; + item.damage = 110; + item.melee = true; + item.useAnimation = 18; + item.useStyle = 1; + item.useTime = 18; + item.useTurn = true; + item.knockBack = 6f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 92; + item.value = Item.buyPrice(1, 20, 0, 0); + item.rare = 10; + item.shoot = mod.ProjectileType("PlagueBeeDust"); + item.shootSpeed = 9f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "VirulentKatana"); + recipe.AddIngredient(ItemID.BeeKeeper); + recipe.AddIngredient(ItemID.FragmentSolar, 10); + recipe.AddIngredient(ItemID.LunarBar, 5); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + + public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("Plague"), 300); + for (int i = 0; i < 3; i++) + { + int bee = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, player.beeType(), + player.beeDamage(item.damage / 3), player.beeKB(0f), player.whoAmI, 0f, 0f); + Main.projectile[bee].penetrate = 1; + } + } + } +} diff --git a/Items/Weapons/PlanetaryAnnihilation.cs b/Items/Weapons/PlanetaryAnnihilation.cs index f22b17b925..93c506fe80 100644 --- a/Items/Weapons/PlanetaryAnnihilation.cs +++ b/Items/Weapons/PlanetaryAnnihilation.cs @@ -35,24 +35,14 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("TerraBall"); item.shootSpeed = 16f; item.useAmmo = 40; - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override Vector2? HoldoutOffset() { return new Vector2(-5, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { float num72 = Main.rand.Next(19, 35); diff --git a/Items/Weapons/PlasmaRifle.cs b/Items/Weapons/PlasmaRifle.cs index a424a1cb71..eed039a8a4 100644 --- a/Items/Weapons/PlasmaRifle.cs +++ b/Items/Weapons/PlasmaRifle.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 422; + item.damage = 460; item.mana = 40; item.magic = true; item.width = 48; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shootSpeed = 20f; item.shoot = mod.ProjectileType("PlasmaShot"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool AltFunctionUse(Player player) { @@ -81,7 +71,7 @@ namespace CalamityMod.Items.Weapons } else { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("PlasmaBolt"), (int)((double)damage * 0.75f), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("PlasmaBolt"), (int)((double)damage * 0.75), knockBack, player.whoAmI, 0.0f, 0.0f); return false; } } diff --git a/Items/Weapons/PlasmaRod.png b/Items/Weapons/PlasmaRod.png index bd48a173f6cb18aad2b9bcc7faa85de874cccd9d..89b1a5781b5a6c2ff529f74ce1ca62286f4dd9cd 100644 GIT binary patch literal 534 zcmV+x0_pvUP)N2bZe?^J zG%heMGBNQWX_Wu~0h38YK~!i%?U%7l13?f)uLwE-(Ex$v8mNN65g}ASL`+H_u7z$u zcg#b>_pVuUKHtpgzVw6L+1dHeT3d2Aw{EZQK2Nc=#ZxKlFMgv>2QYL zTZ2*O$KtQ^XA^@K1G3va4Q36<&Gr3Y4W_p1R*=zRkb+>I6v1%qsj=pq)+ZB#76-zY zUcm^?Q)6GvxfP^UeyBGA-(TK-S%LTwzy!Y-0AheT4G0(O)4}X32>bN6+Qyz=3?Nu~ z5H&#+h^OXZy*bA{HfDPH@ZJQ{fMG#Y1khltskhp$y}Sqz9;7tPo8Y>yAa>n+^5IHO z2SPBc0CxQ6e62p42$CKIX+VH9C~MshBZ8#`ArJtpYan4o(6k@~Q~)c-eL^Y%rUTJn zHGuH)5WT~K_>d(NJS+h6p-WB&!XF(qb!=_%M8Fb6Zx7Mi+TuzBV=L!T38J@^gRASl Y05UTs+-KvEYXATM07*qoM6N<$g2Ct9!vFvP literal 534 zcmV+x0_pvUP)NR@7T2sOcM$@Vp}n=U?w{R2dx8PK0}XcX;~?hGzU{BcFzta&Cxsrhnxc~tu4TA zK7RBBn1=CTY4XaIDjII>i_@% diff --git a/Items/Weapons/Polterghast/BansheeHook.cs b/Items/Weapons/Polterghast/BansheeHook.cs index 5e1575d900..42d1b6c3f4 100644 --- a/Items/Weapons/Polterghast/BansheeHook.cs +++ b/Items/Weapons/Polterghast/BansheeHook.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons.Polterghast item.rare = 10; item.shoot = mod.ProjectileType("BansheeHook"); item.shootSpeed = 42f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool CanUseItem(Player player) { diff --git a/Items/Weapons/Polterghast/DaemonsFlame.cs b/Items/Weapons/Polterghast/DaemonsFlame.cs index 2b6f86ba7b..3ed55ff6da 100644 --- a/Items/Weapons/Polterghast/DaemonsFlame.cs +++ b/Items/Weapons/Polterghast/DaemonsFlame.cs @@ -37,18 +37,8 @@ namespace CalamityMod.Items.Weapons.Polterghast item.shoot = mod.ProjectileType("DaemonsFlame"); item.shootSpeed = 20f; item.useAmmo = 40; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Polterghast/EtherealSubjugator.cs b/Items/Weapons/Polterghast/EtherealSubjugator.cs index 11183aeaee..fdf7fdbad3 100644 --- a/Items/Weapons/Polterghast/EtherealSubjugator.cs +++ b/Items/Weapons/Polterghast/EtherealSubjugator.cs @@ -41,18 +41,8 @@ namespace CalamityMod.Items.Weapons.Polterghast item.shoot = mod.ProjectileType("PhantomGuy"); item.shootSpeed = 10f; item.summon = true; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Polterghast/FatesReveal.cs b/Items/Weapons/Polterghast/FatesReveal.cs index 10a7e92b0e..24ad635bf4 100644 --- a/Items/Weapons/Polterghast/FatesReveal.cs +++ b/Items/Weapons/Polterghast/FatesReveal.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons.Polterghast item.autoReuse = true; item.shoot = mod.ProjectileType("FatesReveal"); item.shootSpeed = 1f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Polterghast/GhastlyVisage.cs b/Items/Weapons/Polterghast/GhastlyVisage.cs index d310d908dc..6e35c08123 100644 --- a/Items/Weapons/Polterghast/GhastlyVisage.cs +++ b/Items/Weapons/Polterghast/GhastlyVisage.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons.Polterghast item.rare = 10; item.shootSpeed = 9f; item.shoot = mod.ProjectileType("GhastlyVisage"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Polterghast/TerrorBlade.cs b/Items/Weapons/Polterghast/TerrorBlade.cs index 24ff0cdf8b..433053511e 100644 --- a/Items/Weapons/Polterghast/TerrorBlade.cs +++ b/Items/Weapons/Polterghast/TerrorBlade.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Polterghast public override void SetDefaults() { item.width = 88; - item.damage = 262; + item.damage = 250; item.melee = true; item.useAnimation = 18; item.useTime = 18; @@ -33,18 +33,8 @@ namespace CalamityMod.Items.Weapons.Polterghast item.rare = 10; item.shoot = mod.ProjectileType("TerrorBeam"); item.shootSpeed = 20f; + item.GetGlobalItem(mod).postMoonLordRarity = 13; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } public override void MeleeEffects(Player player, Rectangle hitbox) { diff --git a/Items/Weapons/PrimordialAncient.cs b/Items/Weapons/PrimordialAncient.cs index 6cdd9b3f8f..4a00479911 100644 --- a/Items/Weapons/PrimordialAncient.cs +++ b/Items/Weapons/PrimordialAncient.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("Ancient"); item.shootSpeed = 8f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void AddRecipes() { diff --git a/Items/Weapons/Providence/BlissfulBombardier.cs b/Items/Weapons/Providence/BlissfulBombardier.cs index 3e8887447f..b76043617d 100644 --- a/Items/Weapons/Providence/BlissfulBombardier.cs +++ b/Items/Weapons/Providence/BlissfulBombardier.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Providence public override void SetDefaults() { - item.damage = 85; + item.damage = 62; item.ranged = true; item.width = 76; item.height = 30; @@ -35,24 +35,14 @@ namespace CalamityMod.Items.Weapons.Providence item.shootSpeed = 24f; item.shoot = mod.ProjectileType("Nuke"); item.useAmmo = 771; - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override Vector2? HoldoutOffset() { return new Vector2(-10, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("Nuke"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); diff --git a/Items/Weapons/Providence/HolyCollider.cs b/Items/Weapons/Providence/HolyCollider.cs index 33dfe3ac33..556a26cd7f 100644 --- a/Items/Weapons/Providence/HolyCollider.cs +++ b/Items/Weapons/Providence/HolyCollider.cs @@ -33,18 +33,8 @@ namespace CalamityMod.Items.Weapons.Providence item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.shootSpeed = 10f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { @@ -56,8 +46,8 @@ namespace CalamityMod.Items.Weapons.Providence for (i = 0; i < 4; i++) { offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - Projectile.NewProjectile(target.Center.X, target.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("HolyColliderHolyFire"), (int)((double)((float)item.damage * player.meleeDamage) * 0.4), knockback, Main.myPlayer); - Projectile.NewProjectile(target.Center.X, target.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("HolyColliderHolyFire"), (int)((double)((float)item.damage * player.meleeDamage) * 0.4), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("HolyColliderHolyFire"), (int)((double)((float)item.damage * player.meleeDamage) * 0.3), knockback, Main.myPlayer); + Projectile.NewProjectile(target.Center.X, target.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("HolyColliderHolyFire"), (int)((double)((float)item.damage * player.meleeDamage) * 0.3), knockback, Main.myPlayer); } } } diff --git a/Items/Weapons/Providence/PurgeGuzzler.cs b/Items/Weapons/Providence/PurgeGuzzler.cs index 263d8f322b..bd9dd1601d 100644 --- a/Items/Weapons/Providence/PurgeGuzzler.cs +++ b/Items/Weapons/Providence/PurgeGuzzler.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons.Providence item.autoReuse = true; item.shoot = mod.ProjectileType("HolyLaser"); item.shootSpeed = 6f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Providence/SolarFlare.cs b/Items/Weapons/Providence/SolarFlare.cs index 21321b37f0..0feafa0cc9 100644 --- a/Items/Weapons/Providence/SolarFlare.cs +++ b/Items/Weapons/Providence/SolarFlare.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Providence public override void SetDefaults() { item.CloneDefaults(ItemID.TheEyeOfCthulhu); - item.damage = 50; + item.damage = 60; item.useTime = 20; item.useAnimation = 20; item.useStyle = 5; @@ -31,18 +31,8 @@ namespace CalamityMod.Items.Weapons.Providence item.rare = 10; item.autoReuse = true; item.shoot = mod.ProjectileType("SolarFlareYoyo"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Providence/TelluricGlare.cs b/Items/Weapons/Providence/TelluricGlare.cs index ebe385106e..c2522e6c96 100644 --- a/Items/Weapons/Providence/TelluricGlare.cs +++ b/Items/Weapons/Providence/TelluricGlare.cs @@ -6,7 +6,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -//using TerrariaOverhaul; namespace CalamityMod.Items.Weapons.Providence { @@ -35,23 +34,8 @@ namespace CalamityMod.Items.Weapons.Providence item.shoot = mod.ProjectileType("TelluricGlare"); item.shootSpeed = 12f; item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Pumpler.cs b/Items/Weapons/Pumpler.cs index 9eb7ff8194..7159feb74b 100644 --- a/Items/Weapons/Pumpler.cs +++ b/Items/Weapons/Pumpler.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 33) + if (Main.rand.Next(0, 100) < 33) return false; return true; } diff --git a/Items/Weapons/RedSun.cs b/Items/Weapons/RedSun.cs index d7dd54f197..5402460f1b 100644 --- a/Items/Weapons/RedSun.cs +++ b/Items/Weapons/RedSun.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("SolarFlare"); item.shootSpeed = 15f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void AddRecipes() { diff --git a/Items/Weapons/RoyalKnivesMelee.cs b/Items/Weapons/RoyalKnivesMelee.cs index 20e3866fd3..d6ee04a32f 100644 --- a/Items/Weapons/RoyalKnivesMelee.cs +++ b/Items/Weapons/RoyalKnivesMelee.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 18; - item.damage = 1320; + item.damage = 1600; item.melee = true; item.noMelee = true; item.noUseGraphic = true; @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("RoyalKnifeMelee"); item.shootSpeed = 9f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/SDFMG.cs b/Items/Weapons/SDFMG.cs index 9ff4dcdc8c..a780636ed6 100644 --- a/Items/Weapons/SDFMG.cs +++ b/Items/Weapons/SDFMG.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 16f; item.useAmmo = 97; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { @@ -63,7 +53,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 50) + if (Main.rand.Next(0, 100) < 50) return false; return true; } diff --git a/Items/Weapons/SHPC.cs b/Items/Weapons/SHPC.cs index 773af671d3..504921fdcf 100644 --- a/Items/Weapons/SHPC.cs +++ b/Items/Weapons/SHPC.cs @@ -38,18 +38,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("SHPB"); item.shootSpeed = 20f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, Main.DiscoG, 155); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 17; + } public override Vector2? HoldoutOffset() { diff --git a/Items/Weapons/SanguineFlare.cs b/Items/Weapons/SanguineFlare.cs index 1e76602cdf..04f45a4d0a 100644 --- a/Items/Weapons/SanguineFlare.cs +++ b/Items/Weapons/SanguineFlare.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 500; + item.damage = 220; item.magic = true; item.mana = 22; item.width = 56; @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("SanguineFlare"); item.shootSpeed = 14f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Scorpion.cs b/Items/Weapons/Scorpion.cs index 5c234de04b..2e78e61659 100644 --- a/Items/Weapons/Scorpion.cs +++ b/Items/Weapons/Scorpion.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Items.Weapons { if (player.altFunctionUse == 2) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BigNuke"), (int)((double)damage * 3f), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("BigNuke"), (int)((double)damage * 3.0), knockBack, player.whoAmI, 0.0f, 0.0f); return false; } else diff --git a/Items/Weapons/ScourgeoftheCosmos.cs b/Items/Weapons/ScourgeoftheCosmos.cs index 89ad45d36e..56380123a0 100644 --- a/Items/Weapons/ScourgeoftheCosmos.cs +++ b/Items/Weapons/ScourgeoftheCosmos.cs @@ -34,19 +34,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("ScourgeoftheCosmos"); item.shootSpeed = 15f; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/ScourgeoftheCosmos.png b/Items/Weapons/ScourgeoftheCosmos.png index bc1fc66277f605e8c2854dbaaae21f0c6c2bf14c..f5b527abdf6acc9f2ed30ba00f63e66556f8d325 100644 GIT binary patch delta 1272 zcmVF0>;wS(Mw@1Z}%CsXe3Mlmi{2&SdJj@Gz8u=4|78~ATe^me%`eS zfa|GAAR~6zA;Ku2{1s4BrvPd~5er~_?>4|?{)bbi0ceePD}XzRD*!ZyM=xM z6j163=#c2&7V8Dz=Gc%0Za&|3;3WXgov?je?x$w$HGe{Dyc>W!i7OVkvBIxzFbY`d zFWlGvAppBO)&UT0tOua~fVd z1CY2l;Tb2DqQEF%rM~FhU7rAO>)&|*p8N7?&vWtpP^%r?r_(l*k90i%K&`{*#*I&6Du5YBA>!*Tksbvw>8>4sr3~kSQ9w|JRY&#& z$7fLuF0!hEPbX8X1i69mOF?FXZPpbV?1 z{oCftykDgjG^$)S6b_tdhY>J<=VPtXE4n(KMq&*wKc zt!$&(D4@^*x{nJ~T_XUi!(jlXZrGh0zkfXM7wyySjfGCBC>RA4G1k*@vF2t0n3=Qt z^0J=SYkP?aetEurVz!7W6^^P`fNve(=j+tkdwI;KJ$YU4%}IB*scu1m8xsU8Rq5qI z)hi&M7~t{s&hCd4!1%;%08X790N~)8FL(xt5~iK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~`y_SP;8Y%fPfoLA jd3@~(KRK2M*Jg7E`cJf`gqobj00000NkvXXu0mjfV{SK6 diff --git a/Items/Weapons/Seadragon.cs b/Items/Weapons/Seadragon.cs index 00c016c13a..0614217147 100644 --- a/Items/Weapons/Seadragon.cs +++ b/Items/Weapons/Seadragon.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 158; + item.damage = 110; item.ranged = true; item.width = 78; item.height = 26; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 16f; item.useAmmo = 97; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override Vector2? HoldoutOffset() { @@ -67,7 +57,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 50) + if (Main.rand.Next(0, 100) < 50) return false; return true; } diff --git a/Items/Weapons/ShadowboltStaff.cs b/Items/Weapons/ShadowboltStaff.cs index de2af9a076..4733e9313f 100644 --- a/Items/Weapons/ShadowboltStaff.cs +++ b/Items/Weapons/ShadowboltStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 126; + item.damage = 170; item.magic = true; item.mana = 20; item.width = 58; @@ -36,24 +36,14 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("Shadowbolt"); item.shootSpeed = 6f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "ArmoredShell", 3); - recipe.AddIngredient(null, "Phantoplasm", 5); + recipe.AddIngredient(null, "RuinousSoul", 2); recipe.AddIngredient(ItemID.ShadowbeamStaff); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); diff --git a/Items/Weapons/Shredder.cs b/Items/Weapons/Shredder.cs index 6321ad6feb..e30c360664 100644 --- a/Items/Weapons/Shredder.cs +++ b/Items/Weapons/Shredder.cs @@ -38,19 +38,9 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 12f; item.useAmmo = 97; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override Vector2? HoldoutOffset() { return new Vector2(-5, 0); @@ -63,10 +53,10 @@ namespace CalamityMod.Items.Weapons public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { + int bulletAmt = 4; if (player.altFunctionUse == 2) { - int num6 = Main.rand.Next(5, 12); - for (int index = 0; index < num6; ++index) + for (int index = 0; index < bulletAmt; ++index) { float num7 = speedX; float num8 = speedY; @@ -79,14 +69,13 @@ namespace CalamityMod.Items.Weapons } else { - int num6 = Main.rand.Next(5, 12); - for (int index = 0; index < num6; ++index) + for (int index = 0; index < bulletAmt; ++index) { float num7 = speedX; float num8 = speedY; float SpeedX = speedX + (float) Main.rand.Next(-30, 31) * 0.05f; float SpeedY = speedY + (float) Main.rand.Next(-30, 31) * 0.05f; - int shot = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("ChargedBlast"), (int)((double)damage * 1.2), knockBack, player.whoAmI, 0.0f, 0.0f); + int shot = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, mod.ProjectileType("ChargedBlast"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); Main.projectile[shot].timeLeft = 180; } return false; diff --git a/Items/Weapons/SlimeGod/OverloadedBlaster.cs b/Items/Weapons/SlimeGod/OverloadedBlaster.cs index e227a2d531..89b69861b0 100644 --- a/Items/Weapons/SlimeGod/OverloadedBlaster.cs +++ b/Items/Weapons/SlimeGod/OverloadedBlaster.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.SlimeGod public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 33) + if (Main.rand.Next(0, 100) < 33) return false; return true; } diff --git a/Items/Weapons/SolsticeClaymore.cs b/Items/Weapons/SolsticeClaymore.cs index 936f74b9bf..658c87fa91 100644 --- a/Items/Weapons/SolsticeClaymore.cs +++ b/Items/Weapons/SolsticeClaymore.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 86; - item.damage = 315; + item.damage = 470; item.melee = true; item.useAnimation = 16; item.useStyle = 1; @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("SolsticeBeam"); item.shootSpeed = 16f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/SomaPrime.cs b/Items/Weapons/SomaPrime.cs index 4dcf02a515..5754c5bd0d 100644 --- a/Items/Weapons/SomaPrime.cs +++ b/Items/Weapons/SomaPrime.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 400; + item.damage = 600; item.ranged = true; item.width = 94; item.height = 34; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("SlashRound"); item.shootSpeed = 30f; item.useAmmo = 97; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override Vector2? HoldoutOffset() { @@ -74,7 +64,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 50) + if (Main.rand.Next(0, 100) < 50) return false; return true; } diff --git a/Items/Weapons/SoulHarvester.png b/Items/Weapons/SoulHarvester.png index d047f2a0dd5c44d4a5bbacfd89ec4cec2c898990..5b55262a00f01105d70ad5a9b3cf790a446cdab1 100644 GIT binary patch delta 1176 zcmV;J1ZVr@1EC3!8Gi-<008Hq(A59{1ZPP^K~#8N?OQu&6j2o2MYI#tN`=UV6e<>q zg(f0v79$F#h=LMCT>@Gd1bwY2baO$rM^^rlZO@z8vi&yDB-@}0ShXl;DC_m-VT1I<6yPiXc=7q|BL?Fz zo3NSBZfcgHi%*})HgN?w3xM|GU>vr8082xO3Lk50W`1z%Sp&n>mw$H~`&#tiu5e(%Fm4}cO-MWTPO@l%7Gr&WWvPvSE}&H^x{mv_5QNI@UqQhrSK*=ysv{P3`m34&2p z0@nn#&QNT5fU^Mbi^IEfRfl?Bi`!gG@th(Q!Br;L6dV;IS3nJb@(PVgZ?D|Z0fUI= zUVl3{P{O+hokBW#i<+WPLuft1*c9L#09vBMao;QRoJetxQBwl?4Y)qG*++yp z-o`wBw@tmVFF;g4RT!EAoCN?cjyfDGF@K_F-fv!j^OtY$m4C7JxM~GB3qYk#FR#AR z*5G)xsbMqJx0eVGzB;Z02eiwyNlb)+mxVX zguM2MSD{&bfU^K-8CL7!8$yO{*44&XSikcuGcrFOUt5c;D!@4aAoUN8zXd!@TYuYf z>9Cj#Iu0+!X0NX;z{LG33UC$xt&HV0In{o@7nEVY9U+`=W4@w*8UWO{=b03&%?es^9S`&Q}O_o%uEO1FD=$x=n?gz!;Sy|002ovPDHLkV1fWcVK`p^ delta 470 zcmV;{0V)2W3FQNj8Gi!+007W`Am;!803lFJR7C&)03sYUFd0EmHeqgFfeleUkAAs2 z${?@*5#;}A%I$s>ZO>}LjbkvfcqwfGzJ2QNKeU|08mQK zR{-{jq%uOtr=gIY046g13QZT|O}!upz_h_=0*1j01niwa;Qj-ErYcTI@)$xh#0?Mx zAW#K{?>BAu7=N%2AwNqoUju0EgAD{%i{@Vgz%evd0O$;^w>V`;r4zu=t!u4fE(bl` z5XfABT;q0(;|>TzAe{i1s9oMRatFoa1jq<{9 diff --git a/Items/Weapons/SoulPiercer.cs b/Items/Weapons/SoulPiercer.cs index 171a1e3c81..8b4be85d64 100644 --- a/Items/Weapons/SoulPiercer.cs +++ b/Items/Weapons/SoulPiercer.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("SoulPiercer"); item.shootSpeed = 6f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void AddRecipes() { diff --git a/Items/Weapons/SpatialLance.cs b/Items/Weapons/SpatialLance.cs index 7d906620fa..09dbb97ca1 100644 --- a/Items/Weapons/SpatialLance.cs +++ b/Items/Weapons/SpatialLance.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("SpatialLanceProjectile"); item.shootSpeed = 12f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool CanUseItem(Player player) { diff --git a/Items/Weapons/SpectralstormCannon.cs b/Items/Weapons/SpectralstormCannon.cs index e74cc902dc..814e9ab722 100644 --- a/Items/Weapons/SpectralstormCannon.cs +++ b/Items/Weapons/SpectralstormCannon.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 70) + if (Main.rand.Next(0, 100) < 70) return false; return true; } diff --git a/Items/Weapons/SpectreRifle.cs b/Items/Weapons/SpectreRifle.cs index bca19186e9..65ad15bc60 100644 --- a/Items/Weapons/SpectreRifle.cs +++ b/Items/Weapons/SpectreRifle.cs @@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons { item.damage = 150; item.ranged = true; - item.width = 68; - item.height = 24; + item.width = 88; + item.height = 30; item.crit += 22; item.useTime = 25; item.useAnimation = 25; @@ -37,7 +37,12 @@ namespace CalamityMod.Items.Weapons item.useAmmo = 97; } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + public override Vector2? HoldoutOffset() + { + return new Vector2(-10, 0); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile.NewProjectile(position.X, position.Y, speedX, speedY, 297, damage, knockBack, player.whoAmI, 1f, 0.0f); return false; diff --git a/Items/Weapons/SpectreRifle.png b/Items/Weapons/SpectreRifle.png index 1bf30289f47bfa7264416f96802d2d562c1fda75..3e8d35c7248555fffa92c0079db704f0fafeeee4 100644 GIT binary patch literal 792 zcmV+z1LypSP)YSqET#X+zJsRau{aS)-4*y2(;2+g3ONU2K&hoD1IaVgkB zF)kgVlu*H;gIx;NRyVCdk=Q|;wCV8mNw~M)oA27@Xf^jtxqI(Ez9zqW?zw9Wjht9I+}sR+ ze}`mGuw!kS;Fs^88U0H?4*>w~wj2Qfd|sS4>Q5W@0|1J5hK>G#p+2Kdaa?9%)b`bC zDs5%R6}-Ce+UmRW1UuHI2_AX-3IK3B9rW)R56IO#_woHPquo2u9XhW6)}YZom1qqe zr_HBVYo2af&n|xtt@H0roxK=Z*W?LytXNcDm7YYB4-V%50Ka>W0s#82-ZbVde*6&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qD}`c;=_r%D}f!W8$|&vQ{5MW0zg1Yga~j-c!kw$&!vP~*Syq(xdtyKZA$`MUW^sDdz(7|W$>^-Ebr{=r248~~6dUS8=O0M2A`#yG| zdzuE3)3whSYDvAJ*DLE8OzZLpWoJ@Uh{f0o|3l>z%`JCCWJG2wO!$ z|L3h+S(b)`mbb;S0F2z(^&r%Q?D9E1&oETSfOyg+t-Z%|c!?MCZIoa9>45S;@TP@C znB=C+5_YF-Pal=JWL~3psCRtc$u~Xx!1;r&>kG|qzy~a?Dw1m+_v-au#<8QCp94gR X8_&JummeR0IM~$K!swF0j{W}!P`g0B diff --git a/Items/Weapons/Spyker.cs b/Items/Weapons/Spyker.cs index e6779b9799..725e84f042 100644 --- a/Items/Weapons/Spyker.cs +++ b/Items/Weapons/Spyker.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 182; + item.damage = 170; item.ranged = true; item.width = 44; item.height = 26; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.shootSpeed = 9f; item.shoot = mod.ProjectileType("Spyker"); item.useAmmo = 97; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override Vector2? HoldoutOffset() { diff --git a/Items/Weapons/StarCannonEX.png b/Items/Weapons/StarCannonEX.png index 58968eafee0fd21e74f46426d16f77886c3c476f..fdb8ecbc5690d99118ba4f0e138b294889f30802 100644 GIT binary patch delta 1023 zcmVab9S#UqxjopT<}_xt;v-+8=Lay@s0+<(N6x9xvy%MJkks;my? zw?benUdy#&bc@zz7~d{gOHWrlzmoDgL&&?_LJ~pHMdM zx#*6rUc1Tz;Jmyi*KM}?7v1~=fWPa6(aQ1P0oXLSAAmER?*#xiQxAFo32zYqlb1%U z^=4*gHOVR25y| z^+GuiDdfrT#0&m>^AjLa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ubN~*K(;nHGUU(<1C2o-TL`x5PYYeWf8;zu2&SW3FzApaGt`ayRMDuPO4ezQhs z#$(pMXJR$&~Oy|y%tCaoa$vsS!HUUHP9Pm^St z${5*Gi};{Em9+1j)R_F(XIP$H0{>ZV86XapA6&w>e#r|`e0av-*}^(=P!X&VI*$)X z-LFrhy5D#2p!@ZBeJ@c|Ln7kim>9>`>vAn6crKl12!uV{{ZcU V@Ui|gCprKC002ovPDHLkV1h);bMpWI diff --git a/Items/Weapons/StardustStaff.png b/Items/Weapons/StardustStaff.png index 64823415e94fe4d536dc4d00493dd6a9399dc398..fd2a63f67969dfa3a257e258e3d621be6990ccba 100644 GIT binary patch literal 1361 zcmV-X1+MyuP)A!b9VQ^mz!bznaQG;-H5MsCR1y;#H74r9w5bavUDTKuqY3WZv>W{gB(X6j z+AbP&p-JOHO`4k6r1299O*LYwd`yukBQS-54jEvsi}${ro;x6)Qaa3UbLX6U?!AY3 z=J&quITwp9qEk=h8SU6~3V_6%4L~F&?Tg75jB&o|8UT_*gZ5(g^=#-Yx1hXt>cMZ; z$gv_Q-*I87v}eY#0fI%+-`_t6KzLz~1>p5p05Bhq*Z|3)LAlR~cL8X4bw2>-Y7YZB zf*UU-*K}Y906o16HbCXLw2!qrUOf0B0NstB0T5nzKs*+Y08rBM8UT-e{=9MjE2n-n z+F4J~+N=jDxlolH!^7gW4?6CV4u_cP^r0^R=;(VENE0h~E(D~#ro`Od^HtYaunh=q zng=f@isi%bqz%w^#5v)RQ)2rbk*L|xC;86fZvryCrc!c0zx1`yuhBI}aJ>oyssR{7 zDv>i2B>*&E8Udiy8K>ml_|zm9*xL+bdQGMMH@ZFs!0WHD0Op-&nIU6ml9Zr~c>$mXDf=Z^Fj&DsNr@AmqCWYy*P-TOMrMdmMlyqX2m0 zBR0TT{x|?76;gb92V}f@?!LDV8TWCMQ({Uu74HGy3Ex-7brnHRE)T9qjg{gZ%ePB9 zJoy0RRh3EGsaOInlE*yGHy@3h2cV2n<9K3W%?dg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REB6lA3`UX`*gi%6C z(0vfv{odOnC$uFmcmNk?#fxv$Gl>&jS`uRb96R4xvjV0*$|ZB76cJ(M?dg8Rhh_T| z9IrhzwZjAW(eTCp=tMMsA;fpMJ(mod).postMoonLordRarity = 12; } public override Vector2? HoldoutOffset() @@ -41,21 +42,9 @@ namespace CalamityMod.Items.Weapons return new Vector2(-5, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - int num6 = Main.rand.Next(5, 6); - for (int index = 0; index < num6; ++index) + for (int index = 0; index < 5; ++index) { float num7 = speedX; float num8 = speedY; diff --git a/Items/Weapons/StarfleetMK2.cs b/Items/Weapons/StarfleetMK2.cs index ee3d585995..2956b7ebb0 100644 --- a/Items/Weapons/StarfleetMK2.cs +++ b/Items/Weapons/StarfleetMK2.cs @@ -38,24 +38,14 @@ namespace CalamityMod.Items.Weapons item.useTurn = false; item.useAmmo = 75; item.autoReuse = true; - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override Vector2? HoldoutOffset() { return new Vector2(-10, 0); } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("StarfleetMK2"), 0, 0f, player.whoAmI); diff --git a/Items/Weapons/StellarStriker.cs b/Items/Weapons/StellarStriker.cs index 2e81505f15..19aba350d3 100644 --- a/Items/Weapons/StellarStriker.cs +++ b/Items/Weapons/StellarStriker.cs @@ -33,19 +33,9 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 20, 0, 0); item.rare = 10; item.shootSpeed = 12f; + item.GetGlobalItem(mod).postMoonLordRarity = 12; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } - public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { if (target.type == NPCID.TargetDummy) @@ -98,7 +88,7 @@ namespace CalamityMod.Items.Weapons num79 *= num80; float num114 = num78; float num115 = num79 + (float)Main.rand.Next(-80, 81) * 0.02f; - Projectile.NewProjectile(vector2.X, vector2.Y, num114, num115, 645, (int)((float)item.damage * player.meleeDamage), knockback, i, 0f, (float)Main.rand.Next(3)); + Projectile.NewProjectile(vector2.X, vector2.Y, num114, num115, 645, (int)((double)((float)item.damage * player.meleeDamage) * 0.7), knockback, i, 0f, (float)Main.rand.Next(3)); } } diff --git a/Items/Weapons/StormDragoon.cs b/Items/Weapons/StormDragoon.cs index d370b28229..1a558e7867 100644 --- a/Items/Weapons/StormDragoon.cs +++ b/Items/Weapons/StormDragoon.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 135; + item.damage = 90; item.ranged = true; item.width = 74; item.height = 34; @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.shoot = 10; item.shootSpeed = 18f; item.useAmmo = 97; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override Vector2? HoldoutOffset() { @@ -63,7 +53,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 90) + if (Main.rand.Next(0, 100) < 90) return false; return true; } diff --git a/Items/Weapons/StreamGouge.cs b/Items/Weapons/StreamGouge.cs index d0ba58d4ca..0bdaceeee5 100644 --- a/Items/Weapons/StreamGouge.cs +++ b/Items/Weapons/StreamGouge.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("StreamGouge"); item.shootSpeed = 15f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool CanUseItem(Player player) { diff --git a/Items/Weapons/SubsumingVortex.cs b/Items/Weapons/SubsumingVortex.cs index 1e6f8cc1d6..d5d4fdb196 100644 --- a/Items/Weapons/SubsumingVortex.cs +++ b/Items/Weapons/SubsumingVortex.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("Vortex"); item.shootSpeed = 9f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/SunSpiritStaff.cs b/Items/Weapons/SunSpiritStaff.cs index 1544a08260..90beef401b 100644 --- a/Items/Weapons/SunSpiritStaff.cs +++ b/Items/Weapons/SunSpiritStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 6; + item.damage = 12; item.mana = 10; item.width = 44; item.height = 42; diff --git a/Items/Weapons/SunkenSea/AquamarineStaff.cs b/Items/Weapons/SunkenSea/AquamarineStaff.cs new file mode 100644 index 0000000000..ff5902e3b1 --- /dev/null +++ b/Items/Weapons/SunkenSea/AquamarineStaff.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class AquamarineStaff : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Aquamarine Staff"); + Tooltip.SetDefault("Shoots two blue bolts"); + Item.staff[item.type] = true; + } + + public override void SetDefaults() + { + item.damage = 10; + item.magic = true; + item.mana = 3; + item.width = 38; + item.height = 38; + item.useTime = 15; + item.useAnimation = 15; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 2.5f; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.UseSound = SoundID.Item43; + item.autoReuse = true; + item.shoot = mod.ProjectileType("AquamarineBolt"); + item.shootSpeed = 9f; + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + int num6 = Main.rand.Next(2, 3); + for (int index = 0; index < num6; ++index) + { + float SpeedX = speedX + (float) Main.rand.Next(-30, 31) * 0.05f; + float SpeedY = speedY + (float) Main.rand.Next(-30, 31) * 0.05f; + int projectile = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Main.projectile[projectile].timeLeft = 180; + } + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.RubyStaff); + recipe.AddIngredient(null, "SeaPrism", 5); + recipe.AddIngredient(null, "Navystone", 25); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.DiamondStaff); + recipe.AddIngredient(null, "SeaPrism", 5); + recipe.AddIngredient(null, "Navystone", 25); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Weapons/SunkenSea/AquamarineStaff.png b/Items/Weapons/SunkenSea/AquamarineStaff.png new file mode 100644 index 0000000000000000000000000000000000000000..e21c19d43e3ddafef783ee92d88fce351c73efa5 GIT binary patch literal 859 zcmV-h1ElA6O)_adNLtfO+o-XYwjyb06~91R3sw+ZT0v0|x^gLkd$9;^T!{bi<^_ly{%26HQeOc%$#%Hd*_@#&-=cIiL8;D zcRmg7d-f3c@$<9st>SC`|1JGHMgR2$#rnOV&{DW%+?E5~V4yS}!yCVRanrbW?|lY2 zCRVr7z@57eq{i20u7mlysY66WrIwKhCxg5h(|7GyXr|*N2bLYUeg9lUN zp!H8|iDIa0Odg&4Z5q@(c@KE>=v&~_YsX?JzL3oCdpwyxdEz2?@x50;-v?iV_U`nL z}zh1#QAhzPHEKiohXR60tI^PbuAFF_| z;bi{ehp&Sp&mBRP*#7(XgP!AWgZ8_3fU7?z4>oOUj@SsqvI=!8=+gP*j1P5og3`6# z)cWoR6Hf(_VH~_Qy-*KB&)q=8+M6P%oEc1cE%ZnW#5NbVg740L4<0`B0G4Fug0kM4 z9+^UpiLLrR7Vcj)h2%_?awUegt}UpN3fa~(G=!@6f~O`%$G~{spP> zBe$P>~Hi)7i>+&$uj@|002ovPDHLkV1gt_t=#|s literal 0 HcmV?d00001 diff --git a/Items/Weapons/SunkenSea/AquashardShotgun.cs b/Items/Weapons/SunkenSea/AquashardShotgun.cs new file mode 100644 index 0000000000..bf00cc4a5b --- /dev/null +++ b/Items/Weapons/SunkenSea/AquashardShotgun.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class AquashardShotgun : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Aquashard Shotgun"); + Tooltip.SetDefault("Shoots aquashards which split upon hitting an enemy"); + } + + public override void SetDefaults() + { + item.damage = 12; + item.ranged = true; + item.width = 62; + item.height = 26; + item.crit += 6; + item.useTime = 25; + item.useAnimation = 25; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 5.5f; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.UseSound = SoundID.Item61; + item.autoReuse = true; + item.shoot = mod.ProjectileType("Aquashard"); + item.shootSpeed = 22f; + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-10, 0); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + int num6 = Main.rand.Next(2, 4); + for (int index = 0; index < num6; ++index) + { + float SpeedX = speedX + (float) Main.rand.Next(-40, 41) * 0.05f; + float SpeedY = speedY + (float) Main.rand.Next(-40, 41) * 0.05f; + int projectile = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f); + Main.projectile[projectile].timeLeft = 200; + } + return false; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.Boomstick); + recipe.AddIngredient(null, "SeaPrism", 5); + recipe.AddIngredient(null, "PrismShard", 5); + recipe.AddIngredient(null, "Navystone", 25); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} \ No newline at end of file diff --git a/Items/Weapons/SunkenSea/AquashardShotgun.png b/Items/Weapons/SunkenSea/AquashardShotgun.png new file mode 100644 index 0000000000000000000000000000000000000000..516b1fa7cc75d73cde0477191372990d28cfe904 GIT binary patch literal 999 zcmVX)@mN$S`R=b{_{?!T2>9a+S~s~ zjl0l?K`ftL1)#fk5P;72&jRqyhfx52`r?WU9?8BTu?Jp%835<{Jr`gx6$hYof4?O? zi-+wN`I;qe?X=-@G429;80-`)7;d%z>Fdi28;8P95z*kAa& z>b#Q0``em-?GmrFJ6Dp%n6`@?e+7W}?{^IHdrqG=+C83}1h#s@(IZCz=pA*8di4NR z>e`P0v>a%&0P+vh#@^CAU|Rs|%LM?OoKy9G)GqOkJtqNhT0?HN4_murMFVaK@OEX@ z{sVgfSa_Il!P~9JKKTgni28N)t4l^Xdg`K4j{SDtC?~(01t9$KkYUeEE&-68&sO^z zo2p&n;ou<`AlnxK;Jwc;7#~cG%Zj%bMgdryjR9b{=H*0KkrfUGWetmolnXHO)F@98rqw!CQC`-Vyz<2M-fqbEv6JFQm@H%dOS^ynV|rmxDWP$&Mz zr*8t@%0$k7X?*C9wfKYpw-+VDviofS_P!*Dl=Q(diS^-;eMbA4X&L9Q2c5vy^IH{o zG7fC@04=MwOa70qe+BBqJ>q`-IX7pNE5%~OYBKD-1439yE8*BLHvn(<)xBk4Bd2$+ z-vc}k&~sj;=f8fp)_kk%yoxijCk2P4UOjYQyK6z6xVH-{DZeU_cW$m4c8zJ3pRnB% zvH;R~NgMJVVIzO=lUKdS1D?jl4ZEH~s!Ubnf~+VP;)CKw~F**u2^& z9&7}E!IIoMl>?yktW-5atQ7Mq%_CH8hs^G}q8}J#z1_8ShAn`^)VDyLxJO*&C;#O3 zQ={B)Msnq2gM(!|*7LI5nB|P?Es_TWhDHF$t)#ydvjkdgitT)Mhxim5B0>t{|Rup}EtkM`|32%8RDauc1EnKx- zv5@swSA9kDlUCI%@y!^oq)=GS-ApoL*qhoVQ?t9;07%WPRO-iq?Z1WnSE^a!{{pfS VWT1Z^Wb*(3002ovPDHLkV1l$z>16-_ literal 0 HcmV?d00001 diff --git a/Items/Weapons/SunkenSea/ClamCrusher.cs b/Items/Weapons/SunkenSea/ClamCrusher.cs new file mode 100644 index 0000000000..4179fbc59c --- /dev/null +++ b/Items/Weapons/SunkenSea/ClamCrusher.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class ClamCrusher : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Clam Crusher"); + Tooltip.SetDefault("Launches a huge clam that stuns enemies for a short amount of time\n" + + "Starts being affected by gravity and does much more damage after being airborne for a while"); + } + + public override void SetDefaults() + { + item.damage = 140; + item.melee = true; + item.width = 40; + item.height = 60; + item.useTime = 50; + item.useAnimation = 50; + item.useStyle = 5; + item.noMelee = true; + item.noUseGraphic = true; + item.knockBack = 10f; + item.value = Item.buyPrice(0, 36, 0, 0); + item.rare = 5; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.channel = true; + item.shoot = mod.ProjectileType("ClamCrusherFlail"); + item.shootSpeed = 18f; + } + } +} \ No newline at end of file diff --git a/Items/Weapons/SunkenSea/ClamCrusher.png b/Items/Weapons/SunkenSea/ClamCrusher.png new file mode 100644 index 0000000000000000000000000000000000000000..f860b943b27511148ff8f40d82aeb898d5333c66 GIT binary patch literal 1186 zcmV;T1YP@yP)j^6Dp*hIB`JgfeTV4IB=*`^@KQ8 zs^H3j0}=<2BFcdu5)ec|K;#6aa)_zpIEfv5?JS4!i#_ArI1Z@nhVR8Yvu|g2KYnlC z%v*(}v$Ibc?TP#Z0Ohr^Yug@1@l-+qIQ6E{zf$<&P}fI}a?=MXB?m%oY9G6wT6} zyKuf^p-I}l7<__m=ClGRzjs4F`ORCNhBi5o9sRbC*^=BWzjjpH3OqqIo!34POT}F1 zzR?q}-7pLn-+#ks%lVa$-ZA=Zf_*;h6ZJjw;r_Eh2nhB?aW*#zz$fos1K{fNrvRLK z{5k-izkc<=0fm^zCf7p<=;mg-Ule$PDxZB6fOfs@0!%!10)W+xtYIi5*YDf`;P&OW z0eI=nYXB_%vS`@PRlf!XldIjU0T3C9D1g1jUdZM_S;^WGGNS7<&l~MmKX?m(+m}td zba4fM)v2?cwn$-8V;?zhbr*yfe~1xy}k&B{ZYxNYn*rR+R+-&8h=HW+nr`o};7JsXDq6vE_u6U?i@eS>DK&MA_KXxB}QJR$b`dt=aZA zIf>@huAW6=N$rF7d>I~sBD=aJYSmi+xY{*vwlsXJ0TD~Z4zw3?ZD$XFXguOV zcXiXQwG=>OL$||6@ZZwK=U(vaZ#6Z^oz1F2E)wtL;tpA3MWwdh)=^ zY-O#ieQvt}^jBVwKS3ckp3~7;Emb^;B}Y>__r~-s>zlf&HIhjxfM0+7%5(g{6YSfQ z99DMb5puE$lD)}(MRgiavW@NC1MhSE2>Ru0d-Wr`xdNJCb3?E55+@I?B-lDW1cls4 zCJ8`ed)Jek?BcprE3H;d=jLMN=b;`j`~>~xxzmqK8Fu#fk8IAnB0H?YOVE#;%yZv- z_@!YVPwNGtQ*(~=Rn$*`C+NGPwxiW1H}+6xPqJRMhcF0^=0+93PDy{=^!uvmr|=N; z%McQ+5~U~4Oe%nlKlJ`rh)9LPPs5TE1)t!c+$#Ijf9gv|Rp1H6?0L>6m(HdC6LO;9 z6ZBgNXXkY_tFW--`5pH`Dfk5Cz|O5fQQ!&w4R*r$q`zFQP5=M^07*qoM6N<$f@*w8 AB>(^b literal 0 HcmV?d00001 diff --git a/Items/Weapons/SunkenSea/ClamorRifle.cs b/Items/Weapons/SunkenSea/ClamorRifle.cs new file mode 100644 index 0000000000..3d150ba3ac --- /dev/null +++ b/Items/Weapons/SunkenSea/ClamorRifle.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class ClamorRifle : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Clamor Rifle"); + Tooltip.SetDefault("Shoots homing energy bolts"); + } + + public override void SetDefaults() + { + item.damage = 32; + item.ranged = true; + item.width = 64; + item.height = 30; + item.useTime = 13; + item.useAnimation = 13; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 2.5f; + item.value = Item.buyPrice(0, 36, 0, 0); + item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBolt"); + item.autoReuse = true; + item.rare = 5; + item.shoot = mod.ProjectileType("ClamorRifleProj"); + item.shootSpeed = 15f; + item.useAmmo = 97; + } + + public override Vector2? HoldoutOffset() + { + return new Vector2(-5, 0); + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("ClamorRifleProj"), damage, knockBack, player.whoAmI, 0.0f, 0.0f); + return false; + } + } +} \ No newline at end of file diff --git a/Items/Weapons/SunkenSea/ClamorRifle.png b/Items/Weapons/SunkenSea/ClamorRifle.png new file mode 100644 index 0000000000000000000000000000000000000000..8545e91138db3da315106e69cb8c54fabefc93dd GIT binary patch literal 1069 zcmV+|1k(G7P)!$ozJ>ZoN$DX0tzGMiKc>ul_&496L~lVH?$;;D#@c z0C4`}cdGzxy^9=xv72{PzT4C50HlWNU*ttABve41y+DR-B-U;LAb;tMitjx4Eda+i zzNhN6fA9$axx)t~?gU-WZEZ0M88?c2QA!9E&?rF|D_^;;;x^-w_sbU_0kGxhSAbFi z0R3EC0ZuK~pR*tdz~g(_ zD){bx_1aaHH*)d>0A1U*1HMwGMhwTIgzR7xfM1V&55VRFCSR0M=v<`g_AN2uynUg; znDF2(c+CMQ-TO1xyOMF^HQ55-Dyeoh0> zlA7xPOl68dr~qF9k@ekbV}5ZN;P9j|98q7K z%$IcD#Kpk=~8Qo)cRermT4xZ(NF=66d*lrKl=;p=^?!veN!vp;Xqcc z7w>KdV97hi{ZH)O2l$E+)MD7Kf8PuVIy}oMw;Ki7?jLa@4nU<;G3&tUvj|V01$6IQ zJsX|h?f{f0awhvFkC_LhDnM$NRzmrAqXh8;c@mTQg2|qwTHBr>sHG_B=_X*_RfcB) zgJ<3c$Q_+_OYhB0X*{PBqmEj3cAK6WO`CgaGjG=y#L+!JUEX8duWRBq^L9@+i%LQ>SpZ5O@}u^j!VnfL5L`ADw3; zSbkIn{{1_{S+9UV)`MVA3wd`Zy)N@#riSkwMnN`1)Af?xRPfFsjWAQp3ql1vZ=$V$ nT4=<4ow`k7rv4|G^$K_bVzZ2J1bOPU00000NkvXXu0mjfwsrQY literal 0 HcmV?d00001 diff --git a/Items/Weapons/SunkenSea/EutrophicScimitar.cs b/Items/Weapons/SunkenSea/EutrophicScimitar.cs new file mode 100644 index 0000000000..ea075c80f8 --- /dev/null +++ b/Items/Weapons/SunkenSea/EutrophicScimitar.cs @@ -0,0 +1,47 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class EutrophicScimitar : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Eutrophic Scimitar"); + Tooltip.SetDefault("Fires a beam upon swing that stuns enemies"); + } + + public override void SetDefaults() + { + item.damage = 130; + item.melee = true; + item.width = 46; + item.height = 76; + item.useTime = 38; + item.useAnimation = 38; + item.useStyle = 1; + item.knockBack = 2; + item.shoot = mod.ProjectileType("EutrophicScimitarProj"); + item.shootSpeed = 17; + item.value = Item.buyPrice(0, 36, 0, 0); + item.rare = 5; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.useTurn = true; + } + + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + for (int i = 0; i <= 21; i++) + { + Dust dust; + dust = Main.dust[Terraria.Dust.NewDust(new Vector2(position.X - 58 / 2, position.Y - 58 / 2), 58, 58, 226, 0f, 0f, 0, new Color(255, 255, 255), 0.4605263f)]; + dust.noGravity = true; + dust.fadeIn = 0.9473684f; + } + return true; + } + } +} diff --git a/Items/Weapons/SunkenSea/EutrophicScimitar.png b/Items/Weapons/SunkenSea/EutrophicScimitar.png new file mode 100644 index 0000000000000000000000000000000000000000..e1ea0cabc0732f4d1240188dd52e498c7b878a02 GIT binary patch literal 1433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 z%DcqfzFN=viJicL7!+70ErfOnPoA2UKRvTXt^* zD!$&RJWG68|FWZwW_?PsZ(th$XMY|t+G&l)t~BV#DDhx8DDTi*q2}+e-t16iuRWVu zpD-J3h8MkL!b;Ot2S1AD$7i9m#jkFTB zmA_ouXZ77^Ne%$ew970txb5yKvYtC|1vG+lgw4HPJIvE!{xy6XFrWhxpgMOx*3;pcyL|ZZM6CuC@00000NkvXXu0mjf;0DnN literal 0 HcmV?d00001 diff --git a/Items/Weapons/SunkenSea/EutrophicShank.cs b/Items/Weapons/SunkenSea/EutrophicShank.cs new file mode 100644 index 0000000000..ece14e02d0 --- /dev/null +++ b/Items/Weapons/SunkenSea/EutrophicShank.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class EutrophicShank : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Eutrophic Shank"); + Tooltip.SetDefault("Shoots electric sparks"); + } + + public override void SetDefaults() + { + item.useStyle = 3; + item.useTurn = false; + item.useAnimation = 14; + item.useTime = 14; + item.width = 42; + item.height = 38; + item.damage = 24; + item.melee = true; + item.knockBack = 4f; + item.UseSound = SoundID.Item1; + item.useTurn = true; + item.autoReuse = true; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.shoot = mod.ProjectileType("EutrophicSpark"); + item.shootSpeed = 3f; + } + + public override void MeleeEffects(Player player, Rectangle hitbox) + { + if (Main.rand.Next(3) == 0) + { + int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 206, 0f, 0f, 100, default(Color), 1f); + } + } + + public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + int num6 = Main.rand.Next(1, 2); + for (int index = 0; index < num6; ++index) + { + float SpeedX = speedX + (float) Main.rand.Next(-60, 61) * 0.05f; + float SpeedY = speedY + (float) Main.rand.Next(-60, 61) * 0.05f; + int projectile = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)((double)damage * 0.4), knockBack, player.whoAmI, 0.0f, 0.0f); + } + return false; + } + } +} diff --git a/Items/Weapons/SunkenSea/EutrophicShank.png b/Items/Weapons/SunkenSea/EutrophicShank.png new file mode 100644 index 0000000000000000000000000000000000000000..b3cc388ab2b9bc1ea36ca2b8fb6af12719376221 GIT binary patch literal 909 zcmV;819JR{P)Z9f#~q|IG~N-FNTd$N!vjpTR$p+kXsztQ;Qz zc_r$%zdd07xo*Qc=M}e7*6W~^h-HTh0672P8UXhjt^-Lx(D>U22)V+t3IKwgirALo z-2fcFQ4c^tZ7l#zhc5$=l5ZN21OyZIpb%P4{+ejGeT z&RePWZNAwk`x*ej&VY8V;|Z=<#lEys0Dfh-0GQ45Y5hz*B@>|f>}dc#bbbIVa*roo@MOeJ*uPHYGdfPex%X^~aBPhgDvr_?ZLN3jt$j$zUngCJH3;_Gj9RwgW5LCbORV!YLz55I-uHLG$Dgf>`GyT@fR6FHvX zvXdkn7ze;rr21dad*vx1xbM&&z#?fUCz2UkSX!~B1e21W`W8r2xyPnr0E7p}O@J0! z0H~|4(_YHYP+s$wDKB~})qA1&DsH~nD19`pJE-FcE;~u`iZ=l;);FqEb&gNPBO{}L zRo&7bB`z8m%USZw|EG%Op64C2EflQbqk4xgZ4eNn|5CDCIeusPgV8E?3aWROdf)EWo|7p0H(eT0*gEU jANR*4l_)up;|cx-B7#NS4&RYZ00000NkvXXu0mjfC`z9z literal 0 HcmV?d00001 diff --git a/Items/Weapons/SunkenSea/Poseidon.cs b/Items/Weapons/SunkenSea/Poseidon.cs new file mode 100644 index 0000000000..f4d73a9d61 --- /dev/null +++ b/Items/Weapons/SunkenSea/Poseidon.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class Poseidon : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Poseidon"); + Tooltip.SetDefault("Casts a poseidon typhoon"); + } + + public override void SetDefaults() + { + item.damage = 58; + item.magic = true; + item.mana = 15; + item.width = 28; + item.height = 32; + item.useTime = 22; + item.useAnimation = 22; + item.useStyle = 5; + item.noMelee = true; + item.knockBack = 6f; + item.value = Item.buyPrice(0, 36, 0, 0); + item.UseSound = SoundID.Item84; + item.rare = 5; + item.autoReuse = true; + item.shoot = mod.ProjectileType("PoseidonTyphoon"); + item.shootSpeed = 10f; + } + } +} \ No newline at end of file diff --git a/Items/Weapons/SunkenSea/Poseidon.png b/Items/Weapons/SunkenSea/Poseidon.png new file mode 100644 index 0000000000000000000000000000000000000000..fb94e6f499e905400b463366dcdbb100a36fd80a GIT binary patch literal 755 zcmVy%1=Mf7xFn68XN+HBma!L&zP6}!`EfwUgQwT@`XIAWQ*2*0f z02hz+m0@aeS`L&#e46ylAxx7E4GxuI=CWC!W!<;I@yCOpVQmxW={jD9!iS3j>FMAW zNo!7+OD{yS@$XFp4=)cV$iDdPSJ1U|D;RtCPcUo2JdporJ@{i&cmq+>TcsPwQo~55 zAxT#FrU-7=f0YP~WR?YzmahZh$(_4Ut>UO@?9I$HGE| zY|Xw6cv{n-RYP;A+Ngc()7lf(O@0fEq{!wkemrVGV`nE=Q@N(AHLYpv(~J6$1>wk@ z|I1L{HU%`N$j+SzIZe5D2DIr&JpX+6YS7rZH?iKm;A3#J_dhT^y#-lJnnK;|#PpBW z_t*Jw^So+YI5*+{=+xg~y`p6#duQ&c?9bR|pY9JDAKtSg?lUUc+3o|#g0OE@_|CPTYK$4GWLSn3 z+jpRPMv0atYie!F!N7%H(9yUA{NA%O5trSmElt|g+6D$L^d?B7y((F>?9Zi#mYf6| luWrM$q|siLELzP8p8(nj0vygor9l7y002ovPDHLkV1kH-d3gW; literal 0 HcmV?d00001 diff --git a/Items/Weapons/SunkenSea/SeashineSword.cs b/Items/Weapons/SunkenSea/SeashineSword.cs new file mode 100644 index 0000000000..6e10706522 --- /dev/null +++ b/Items/Weapons/SunkenSea/SeashineSword.cs @@ -0,0 +1,46 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class SeashineSword : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Seashine Sword"); + Tooltip.SetDefault("Shoots an aqua sword beam"); + } + + public override void SetDefaults() + { + item.CloneDefaults(ItemID.EnchantedSword); + item.damage = 26; + item.melee = true; + item.value = Item.buyPrice(0, 2, 0, 0); + item.width = 38; + item.height = 38; + item.knockBack = 2; + item.shootSpeed = 11; + item.rare = 2; + item.UseSound = SoundID.Item1; + } + + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + type = mod.ProjectileType("SeashineSwordProj"); + return base.Shoot(player, ref position, ref speedX, ref speedY, ref type, ref damage, ref knockBack); + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "SeaPrism", 7); + recipe.AddIngredient(null, "Navystone", 10); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Weapons/SunkenSea/SeashineSword.png b/Items/Weapons/SunkenSea/SeashineSword.png new file mode 100644 index 0000000000000000000000000000000000000000..fa76f21e2c961354c57dfaa2d731cf5ee2d866c0 GIT binary patch literal 932 zcmV;V16%xwP)aK{cf}jYZi-;}_x{8DX z>nemOLd^)*#W4I+>B=opXf9jx#HOA-UHtrc_M9EXLCOPuZXTZR^Zh;Nd)|D$zu)&s zTqmu5@MW-ca3wgf^UD-^`__R|a!|9)X4RT^9i#)gli@cbul zWb&47-i#`#4gDLyu6N(WjXE2DR6)tZz+rR@S}oSaUfw50`AQjtvb)Wc7P9Y2yP4X#aKZ1^y8Oze`!ip^`T zm^j$~rf!x9UpMyPrg=`V&RY{Ww0k6l+g1nDtQ*=0emxfQzTKIfIG_38MeygoeW-dZl8X1`(MwA*r%ogl zm49Lr=Z=D=zX!ni>GPmxXjx`KSK${>>VGN|-?8OYu<_Y!JbG##sf?nxYL$OtQIXW; zywU)>J2zK% zUyB+Y3Ef#~-;{~hekV4YP2kMfcUM(dZi!uX9*d+dr%0-!*nKe)y7la`;L*~G5H0Tu zT{)Y!EUK{l6N}y|bQHkMROp_rfllz_j_)%ITkmKE9mQ}TNll&#_qAtYOESBt!tzTj zl4>dj56n!=q_Fa#Rp9qM*)6-Fxgm7&`6ND1sS@no946Sf(^qCIVR~q3TvTDXC6*MM z*JQe{_;eqb_-q^$ItmF@&(*4_y$LjQgzM~yf76=h37nifyr{x*ORUN1&40!fNL^#)me_xf6%F2t-ThMl0000 0f) + { + player.ChangeDir(1); + } + else + { + player.ChangeDir(-1); + } + //velX = 0f; + //velY = 0f; + //vector2.X = (float)Main.mouseX + Main.screenPosition.X; + //vector2.Y = (float)Main.mouseY + Main.screenPosition.Y; + int curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineHead"), damage, knockBack, owner); + + int prev = curr; + curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineBody"), damage, knockBack, owner, (float)prev); + + prev = curr; + curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineBody"), damage, knockBack, owner, (float)prev); + + prev = curr; + curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineBody"), damage, knockBack, owner, (float)prev); + + prev = curr; + curr = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, mod.ProjectileType("SerpentineTail"), damage, knockBack, owner, (float)prev); + Main.projectile[prev].localAI[1] = (float)curr; + Main.projectile[prev].netUpdate = true; + return false; + } + } +} \ No newline at end of file diff --git a/Items/Weapons/SunkenSea/Serpentine.png b/Items/Weapons/SunkenSea/Serpentine.png new file mode 100644 index 0000000000000000000000000000000000000000..e99f41c53c9e8ae152fe49b704b317fbe3e145a7 GIT binary patch literal 618 zcmV-w0+s!VP)F|7y$6!MlOk9QErF|W>S=e)ImWJBI=TdD9=F%fklUI)iLZ)bP0l@AUb&J6w#qB zK|+Th`y)hKP*OpEjIGc>3Zu5e^x9^0S%cW=yUly=dow@2_svYk0wb4Q1G4osVD|I3 z;-B-``kKtIaZs3jHt#-*7J9>f6^kn^C?{Lqu`IUkQ+}!lxlLUeFdmI3rBxSZ%1u;~ zbq<{d9s7Gg{`?&Wc=#B6%1=f6 z{iYddT6jnsixHzCQoBh*3c3?d8kc@WX+PohK=7* zs(t9w>I=*DSyHw%w*uU|9lb)P3m;KBwIM#dj^tf^ee>S1`hA$ou8GNlBq<0rDsJ5o z-{97b*man{KYRkbfBp`9_>sf^@U{3`SvakA-BI7oT)K#oY{|}{DBrgM+PRJ=8=Z5p=U4n^7hSwq~&D&BWJ+Kp5vG+Tivr3Db*0vHZ`NNG(e(k#Tn| z=?5aerCh0Oy826he%zJ;D6N^Qt!rp((8ifH8@2JxOHZ}&`zx0L2+XW!fyd2ZPjmLZ*KrD zA~J3@Vy4ydMXEMF+`S7x^C9Ij-X#kFSbwB3`%3lo=B@+U^;#~s05Es4>L&vo0|3~8 zBmli#5480KB2E&2myT@8OtV5P9a;h8T*{lB|Mcy-yR?(Z5Rf89r92N;Y50f_a)v@BJ-<2W!ht)`6{ zl2j`x*OTnBAeYU|XYNV8(0=F|BI8ygLPGW%eLbJFd3o*acegSfBCNlTnlA2>iEtsmSQ}=NVkukfLxK;5q8vt)fQ3haP z{bB%KwW;@dIHLN%>szk?@KjV<0N*TI%Vv@Y%rjj{x2A-|)UtAQ-Ld{6lTCk2DY3wg9MfMa`6K1Dgy0Q*{t7onO;4ckWkgJ)&{=qyy>d0~rk<`~gExif} z`9FoESaGw7b|)vfhlqS5r`~c3?$o&_t6W3GirDjq{X~L2MfHi)SLIHVwKhbqA@UQ5 W7HK60qN*VP0000Fb#Q literal 0 HcmV?d00001 diff --git a/Items/Weapons/SunkenSea/Whirlpool.cs b/Items/Weapons/SunkenSea/Whirlpool.cs new file mode 100644 index 0000000000..78878f0d98 --- /dev/null +++ b/Items/Weapons/SunkenSea/Whirlpool.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.SunkenSea +{ + public class Whirlpool : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Riptide"); + Tooltip.SetDefault("Sprays a spiral of aqua streams in random directions"); + } + + public override void SetDefaults() + { + item.CloneDefaults(ItemID.TheEyeOfCthulhu); + item.damage = 18; + item.width = 30; + item.height = 44; + item.value = Item.buyPrice(0, 2, 0, 0); + item.rare = 2; + item.knockBack = 1; + item.channel = true; + item.melee = true; + item.useStyle = 8; + item.useAnimation = 8; + item.useTime = 8; + item.shoot = mod.ProjectileType("WhirlpoolProjectile"); + item.shootSpeed = 18f; + item.UseSound = SoundID.Item1; + ItemID.Sets.Yoyo[item.type] = true; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(null, "SeaPrism", 7); + recipe.AddIngredient(null, "Navystone", 10); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Weapons/SunkenSea/Whirlpool.png b/Items/Weapons/SunkenSea/Whirlpool.png new file mode 100644 index 0000000000000000000000000000000000000000..99efcf689943919a7705534976d50da129e8ec07 GIT binary patch literal 1084 zcmV-C1jGA@P)DrT z7cvWXf(U}nLQ!!s13rd+IAfHK<77-?I!RS#adYaGs#G!^di*z)s(W*8edpYB>Rf{q zt<)ZnpTo2{F&V04<2Cz{hdWz8B~DgT8qJg{SYwM$k~Qtb{KFLhZok`$Jg@KScW-~) zhbQ|M5Q?#OV{4EY>$oRE9`M&ND~|sXLY_%%Rvf(6 zAZuEx(#TVZMPc$Jqj67&2SjP)HymSCvS;!{oIH~_O-Y^zdtjmD0ASu<1ft|H?>wHt z12;?@SG>}7S9Pq9G_C>AZTfDWFY&C(tXx&+_{4Gh78@9Cwi!z1frKaHclazNieO{ z{s1@cj6JuKNPDe)YLBi0(A@hQ2r7_h{h>D^_g5~R)-OIHRRznCg5uTN{8P9?kMDe; z7nVN?X|J_^AVQIM)ur=S2MAIwEF-jwhrk%=@>2x>%FAy>$Z~(IL<}`9{TaF6`s$*; zhEufZUDG+f*ZUPXgvw|bnY=!%u>)%_z(CxZ@p33emFY8?^q(^JF0kFNLW0^noA^?^9w6T@PwZZS- zd>4S#jdcLJ%^v~iT<-Yfa1*~yM%6h!1jdM^Ydn$DF%{B_#Zv&dKl}_pefRumz9!t* zd=7w}vu^`XS=OHV?#ws-n#xg!PpoW(*Ykn`A~iQZy7%*Rw0nQ~tpq@Q_bdRfZhsyz z_}!ldOj@nZSMzi0LMCbK>=Y(97fjr)n@GMr z_XG= z%=2;5X;Ik list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override Vector2? HoldoutOffset() { @@ -55,7 +45,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 70) + if (Main.rand.Next(0, 100) < 70) return false; return true; } diff --git a/Items/Weapons/Svantechnical.png b/Items/Weapons/Svantechnical.png index e5bd61bab6ce8a8d09aa2a969d3a686fe7378ee7..b22dce3b0f542b171f81ca3755aafe2f7396f326 100644 GIT binary patch literal 648 zcmV;30(bq1P)N2bZe?^J zG%heMF*h@ApJM<30tHD#K~!i%?Ulhz#4r#=w+V`%4J1SfNF2Cv<3IyQaG?iE;0U4u zBpRRuBdqbX47@uPB=a~>!wisTDY4_;DumO{aU!2 zHFzdHo?qX3K0d#CE}!0eIM=?r#@(#Jnx5j|0>L1h-@fz^fCh2BEl!}L-&(kvHMBqi z2nK_ofw12K`7eQBBnSE&UTq1b_2}l3>k|qi(C6@KODL^JHrds zhBOG^rwmbFh#o<$i~daUGcwi!G3F9>SSwUi7Y)F9R6jQeAb<$3Cczg@f1PhIWCDQ- z71ix+Af?bqFTj{yq-Z^X&V@dZ+mFtfYcyynG-`neG$fEH7)68BLGADs+oJ~Uqkaa9 z8fa|8NE~b+U@x^qx+nj^(u0006dNklz#$={XNwXd5s?vCLvqFP6=3n>Yo>x} z^ulS!=FP+=78G^3%#l^oLvbG=cU{~Cu^&CA8Aq&#_1z#XqQk2f;LR&Abx$rGMp5_p z)+MYljb87f=iRkvDFHptKY9cyD=b5@!8E$PxRTM^7avfhV5K!YhDVHt3iF+5^D z3=6SOAK!ulht!yb#R#l4g~c?XyhkXn;%ZqD8?zXB7#71L#>23@2MY;O^DZpFV0jJJ zhDDD7*uVg}y&ysI)u!jwLH~EJcf#g0rADQviQ2NW&i*H07*qoM6N<$f`}at3jhEB diff --git a/Items/Weapons/T1000.cs b/Items/Weapons/T1000.cs index 63a5a2ed82..9d29a4e169 100644 --- a/Items/Weapons/T1000.cs +++ b/Items/Weapons/T1000.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("T1000"); item.shootSpeed = 24f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void AddRecipes() { diff --git a/Items/Weapons/TerraEdge.cs b/Items/Weapons/TerraEdge.cs index d3c4806655..4aad3406dc 100644 --- a/Items/Weapons/TerraEdge.cs +++ b/Items/Weapons/TerraEdge.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 58; - item.damage = 150; + item.damage = 152; item.melee = true; item.useAnimation = 17; item.useStyle = 1; @@ -63,7 +63,7 @@ namespace CalamityMod.Items.Weapons public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - if (target.type == NPCID.TargetDummy) + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { return; } diff --git a/Items/Weapons/TerraFlameburster.cs b/Items/Weapons/TerraFlameburster.cs index 82e4b449b7..73dec9b37b 100644 --- a/Items/Weapons/TerraFlameburster.cs +++ b/Items/Weapons/TerraFlameburster.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 80) + if (Main.rand.Next(0, 100) < 80) return false; return true; } diff --git a/Items/Weapons/Terratomere.cs b/Items/Weapons/Terratomere.cs index c21d78ab17..c118369c4d 100644 --- a/Items/Weapons/Terratomere.cs +++ b/Items/Weapons/Terratomere.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 64; - item.damage = 100; + item.damage = 135; item.melee = true; item.useAnimation = 20; item.useStyle = 1; @@ -91,7 +91,7 @@ namespace CalamityMod.Items.Weapons target.AddBuff(BuffID.Frostburn, 620); target.AddBuff(BuffID.OnFire, 600); target.AddBuff(BuffID.Ichor, 300); - if (target.type == NPCID.TargetDummy) + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { return; } diff --git a/Items/Weapons/TheEmpyrean.cs b/Items/Weapons/TheEmpyrean.cs index 0d621bf2be..7cb5732d84 100644 --- a/Items/Weapons/TheEmpyrean.cs +++ b/Items/Weapons/TheEmpyrean.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 70) + if (Main.rand.Next(0, 100) < 70) return false; return true; } diff --git a/Items/Weapons/TheEnforcer.cs b/Items/Weapons/TheEnforcer.cs index 127e1a18df..d72484e585 100644 --- a/Items/Weapons/TheEnforcer.cs +++ b/Items/Weapons/TheEnforcer.cs @@ -33,18 +33,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("EssenceBurst"); item.shootSpeed = 24f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { diff --git a/Items/Weapons/TheMutilator.cs b/Items/Weapons/TheMutilator.cs index 78518b3a5f..be8d779944 100644 --- a/Items/Weapons/TheMutilator.cs +++ b/Items/Weapons/TheMutilator.cs @@ -34,22 +34,12 @@ namespace CalamityMod.Items.Weapons item.value = Item.buyPrice(1, 40, 0, 0); item.rare = 10; item.shootSpeed = 10f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { - if (target.life <= (target.lifeMax * 0.2f)) + if (target.life <= (target.lifeMax * 0.2f) && target.canGhostHeal) { int heartDrop = Main.rand.Next(1, 3); for (int i = 0; i < heartDrop; i++) diff --git a/Items/Weapons/TheStorm.cs b/Items/Weapons/TheStorm.cs index 2b3975dcfc..bdca301465 100644 --- a/Items/Weapons/TheStorm.cs +++ b/Items/Weapons/TheStorm.cs @@ -6,7 +6,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items; -//using TerrariaOverhaul; namespace CalamityMod.Items.Weapons { @@ -35,23 +34,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("Bolt"); item.shootSpeed = 28f; item.useAmmo = 40; - } - - /*public void OverhaulInit() - { - this.SetTag("bow"); - }*/ - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/TheWand.cs b/Items/Weapons/TheWand.cs index 91b0639d92..a1d9b6dd41 100644 --- a/Items/Weapons/TheWand.cs +++ b/Items/Weapons/TheWand.cs @@ -35,19 +35,9 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("SparkInfernal"); item.shootSpeed = 24f; + item.GetGlobalItem(mod).postMoonLordRarity = 15; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/TriactisTruePaladinianMageHammerofMightMelee.cs b/Items/Weapons/TriactisTruePaladinianMageHammerofMightMelee.cs index 832892d38f..a10d49105f 100644 --- a/Items/Weapons/TriactisTruePaladinianMageHammerofMightMelee.cs +++ b/Items/Weapons/TriactisTruePaladinianMageHammerofMightMelee.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { item.width = 160; - item.damage = 5000; + item.damage = 10000; item.noMelee = true; item.noUseGraphic = true; item.autoReuse = true; @@ -34,18 +34,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("TriactisOPHammerMelee"); item.shootSpeed = 25f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, 0, 255); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 16; + } public override void AddRecipes() { diff --git a/Items/Weapons/TrueExcaliburShortsword.cs b/Items/Weapons/TrueExcaliburShortsword.cs index 74837b8c10..7cfc47406f 100644 --- a/Items/Weapons/TrueExcaliburShortsword.cs +++ b/Items/Weapons/TrueExcaliburShortsword.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons item.useTurn = false; item.useAnimation = 12; item.useTime = 12; - item.width = 50; - item.height = 50; + item.width = 42; + item.height = 42; item.damage = 70; item.melee = true; item.knockBack = 5.75f; diff --git a/Items/Weapons/TrueExcaliburShortsword.png b/Items/Weapons/TrueExcaliburShortsword.png index d7915266d66b48ae9930be0d7de3602b1c43bdc1..6ced91fcc3baf9d00fdbe0cad06ce08f31f1614e 100644 GIT binary patch literal 813 zcmV+|1JeA7P)Nkl)J7DnY$KWD4?;2s z(X>gyMGIZ@gJe^fGl{tvLrJCGyQ4 zucFEmr4%L$kVjwjzroVIXeBTZI0uv|IWx74^^SOIeX?G8qDS{^LoI(ld0tn^SnMh0 zn=g!OJV_@)_vgUeAc~S@l}UM`M6ksxyy&c10j8a;z(hjSaIPeIvZO2*>y|6J;Y9gG zo}7(nY{QRwVsrt@R3x0hi9<_bT(u8a?tKD$Ti*;Ec<}@1bLIgl+q3ql?TFGvo*wE% z$to&jPP|M3+PgV(?etf7woB!&%R}A?1jY_wvdg zAUM~J%fPw2y+ETChdlY=>o1Ks7hOTkyAxN^u%gNnC4xPz#}QQL{!t1JNL>)G-Mr$+ zl+--Tz(DFz+YzN~4$kx=ZhAW$4-3yymh*~ZmXaAg$}e!`i1H(+N>UlQhTyjM`GI#@ zN`bUak@waX;OpzfwC;Uqz>d0G)_7ETqB4RHZ%!e?t2@P8;`2}6fsyz}V7o5}q^^hL z;2pZ`el)7^s-m_d$|Ee?yaQ8V&k^96QZb%R73nHTT@ZPco@ctE$`j=Tt54UW2487t z!qTHq0C?);ZsFOsGR;q@{|w!FiFsbrje1eGPgtm$IvdtwN#yX!vi%e!G9 zRVuC^DPgvf^xRcNl_yFBc~(~siB5cEF@<3G^<|Y8r5?2%(cwDr9?mNdSJY}RW>nNR rM0q5nWP)jS95K$nxpmU>8EpK8>NCr!SKB%jLh@gvg(dpvdt9uW&4_)r#oabh|XU`5Vzy0@r z{_mMag;kTg+bE>3jw&s!(g@!i9Lm|haQ1q26R$5f=`;SIa(#Zxv1BiL2}azmmvI1tV8#AXI@3W zuT%Z}?@wvl$Ja%A&P3XK+5^CYhdKanVqO3So8JO3G<_R@$!`(O)_5URC~05kCE+G9 zJFBd%4!bdmA$`m*e0#Dk4#1s{>)FUtXGac0NUb>%JpJNTbH;b-RhkJVBeDP=}^BQ8h$>e^qaLTYsWi}vd%}^ zdahz7Ehl1VLM82NaRQJ^rdGXAEFr&beN7v;o{vk?(LAJ=vq$D6v!ZEzT^qL!@%CK{ z1(9xVzN?Uyxw?mICE0lO6PGFOU%!6oCM!=i)H0I}j?60)@zkt1(Y#J4G)oiL%*1D( z2p5=3`T#iDeV*(rG9EmkXni2iq1@0+`rM+wq@-&vtC&wL+gl%#Jt_Z;b}9XvTN27T zopdYfQj@OTbSTNc^o;^=;A#YbDc1x5TijcPTSUD7m8^9p=gy3D-#3X&F_cayF2N#Y zAzgdKoz8;>Ku6bQ00O;2!{0MzF&tnG^ SLNK2I0000 list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/UltraLiquidator.cs b/Items/Weapons/UltraLiquidator.cs index 54262d94db..ad54780cac 100644 --- a/Items/Weapons/UltraLiquidator.cs +++ b/Items/Weapons/UltraLiquidator.cs @@ -39,18 +39,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("LiquidBlade"); item.shootSpeed = 16f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override void AddRecipes() { diff --git a/Items/Weapons/VanquisherArrow.cs b/Items/Weapons/VanquisherArrow.cs index dbab8dccec..94426b3bd0 100644 --- a/Items/Weapons/VanquisherArrow.cs +++ b/Items/Weapons/VanquisherArrow.cs @@ -30,18 +30,8 @@ namespace CalamityMod.Items.Weapons item.shoot = mod.ProjectileType("VanquisherArrow"); item.shootSpeed = 10f; item.ammo = 40; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } public override void AddRecipes() { diff --git a/Items/Weapons/VenusianTrident.cs b/Items/Weapons/VenusianTrident.cs index ee72d549a3..6e33099e49 100644 --- a/Items/Weapons/VenusianTrident.cs +++ b/Items/Weapons/VenusianTrident.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons public override void SetDefaults() { - item.damage = 136; + item.damage = 225; item.magic = true; item.mana = 20; item.width = 48; @@ -36,24 +36,14 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("VenusianBolt"); item.shootSpeed = 19f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.InfernoFork); - recipe.AddIngredient(null, "Phantoplasm", 5); + recipe.AddIngredient(null, "RuinousSoul", 2); recipe.AddIngredient(null, "TwistingNether"); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); diff --git a/Items/Weapons/Verdant.cs b/Items/Weapons/Verdant.cs index dae34ae2e7..eb82070929 100644 --- a/Items/Weapons/Verdant.cs +++ b/Items/Weapons/Verdant.cs @@ -31,18 +31,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.autoReuse = true; item.shoot = mod.ProjectileType("VerdantProjectile"); - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 200); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 12; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Vesuvius.cs b/Items/Weapons/Vesuvius.cs index 23f976fcaa..c747b77f9d 100644 --- a/Items/Weapons/Vesuvius.cs +++ b/Items/Weapons/Vesuvius.cs @@ -39,19 +39,9 @@ namespace CalamityMod.Items.Weapons item.rare = 8; item.shootSpeed = 20f; item.shoot = mod.ProjectileType("AsteroidMolten"); + item.GetGlobalItem(mod).postMoonLordRarity = 17; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, Main.DiscoG, 0); - } - } - } - public override bool AltFunctionUse(Player player) { return true; diff --git a/Items/Weapons/Viscera.cs b/Items/Weapons/Viscera.cs index 6b7791bdb9..4d0497702e 100644 --- a/Items/Weapons/Viscera.cs +++ b/Items/Weapons/Viscera.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("Viscera"); item.shootSpeed = 6f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(0, 255, 0); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 13; + } public override void AddRecipes() { diff --git a/Items/Weapons/VividClarity.cs b/Items/Weapons/VividClarity.cs index b01580d06f..210c36b7ea 100644 --- a/Items/Weapons/VividClarity.cs +++ b/Items/Weapons/VividClarity.cs @@ -38,18 +38,8 @@ namespace CalamityMod.Items.Weapons item.autoReuse = true; item.shoot = mod.ProjectileType("VividClarity"); item.shootSpeed = 6f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(108, 45, 199); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 15; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/YharimsCrystal.cs b/Items/Weapons/YharimsCrystal.cs index 18f7fedc43..53a054ad8f 100644 --- a/Items/Weapons/YharimsCrystal.cs +++ b/Items/Weapons/YharimsCrystal.cs @@ -38,18 +38,8 @@ namespace CalamityMod.Items.Weapons item.rare = 10; item.shoot = mod.ProjectileType("YharimsCrystal"); item.shootSpeed = 30f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(255, Main.DiscoG, 53); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 17; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/YharimsCrystal.png b/Items/Weapons/YharimsCrystal.png index 3267ca4d7fabf0f0b59b08e43272c2f1b68220bc..2063e2c29abebc231a2862463d1f4fa5b21dde90 100644 GIT binary patch literal 1537 zcmV+c2LAbpP)Xx zo7zU=+}tuZ4b7=@7SK)nLogv^hH;fZu7IZ(zvp)^=Lp<`!q%?$`-Xd-=Q-y*_k8a6 z_k7PeShj8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-Tk2LUCe{h>bfSj20IchF{1000000NkvXXu0mjf)=~Hd literal 588 zcmV-S0<-;zP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E-^XO*0N*(00F#7L_t(oN8OaMN&`UC%9tnHdw!l?0(BzA2cW8`Jp2WmFcP%te3&Qipte}O(N<-K@Z3~=_{rNZ(>&MidsR~g-t{&l;e`JUz82l*R&OE>P=15pva$SDv^S5uedbXIG%6A%jGT5wTDArS1=)HzXz|{RImR5JS}CVm~kl zq5&asCMF!@k?^>H0cfoEgWhM`N5`3%&`?8T2BBsh(XWLhC<`)naa4js1VwgveEA!3 aCi4mXm&9wg4;YL90000 list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Yharon/ChickenCannon.cs b/Items/Weapons/Yharon/ChickenCannon.cs index e090b7052f..419ac7acc9 100644 --- a/Items/Weapons/Yharon/ChickenCannon.cs +++ b/Items/Weapons/Yharon/ChickenCannon.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons.Yharon item.shootSpeed = 24f; item.shoot = mod.ProjectileType("Chicken"); item.useAmmo = 771; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Yharon/DragonRage.cs b/Items/Weapons/Yharon/DragonRage.cs index 3a0f528e16..f8f6fb4371 100644 --- a/Items/Weapons/Yharon/DragonRage.cs +++ b/Items/Weapons/Yharon/DragonRage.cs @@ -32,18 +32,8 @@ namespace CalamityMod.Items.Weapons.Yharon item.rare = 10; item.shoot = mod.ProjectileType("DragonRage"); item.shootSpeed = 14f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Yharon/DragonsBreath.cs b/Items/Weapons/Yharon/DragonsBreath.cs index c1e188c035..000054ccd5 100644 --- a/Items/Weapons/Yharon/DragonsBreath.cs +++ b/Items/Weapons/Yharon/DragonsBreath.cs @@ -35,18 +35,8 @@ namespace CalamityMod.Items.Weapons.Yharon item.shoot = 10; item.shootSpeed = 12f; item.useAmmo = 97; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { @@ -61,7 +51,7 @@ namespace CalamityMod.Items.Weapons.Yharon public override bool ConsumeAmmo(Player player) { - if (Main.rand.Next(0, 100) <= 80) + if (Main.rand.Next(0, 100) < 80) return false; return true; } diff --git a/Items/Weapons/Yharon/PhoenixFlameBarrage.cs b/Items/Weapons/Yharon/PhoenixFlameBarrage.cs index 02dfab7e4b..cbad0157d2 100644 --- a/Items/Weapons/Yharon/PhoenixFlameBarrage.cs +++ b/Items/Weapons/Yharon/PhoenixFlameBarrage.cs @@ -36,18 +36,8 @@ namespace CalamityMod.Items.Weapons.Yharon item.autoReuse = true; item.shoot = mod.ProjectileType("HolyFlame"); item.shootSpeed = 30f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/Weapons/Yharon/TheBurningSky.cs b/Items/Weapons/Yharon/TheBurningSky.cs index 802eac98ec..cd703dc458 100644 --- a/Items/Weapons/Yharon/TheBurningSky.cs +++ b/Items/Weapons/Yharon/TheBurningSky.cs @@ -33,18 +33,8 @@ namespace CalamityMod.Items.Weapons.Yharon item.rare = 10; item.shoot = mod.ProjectileType("BurningMeteor"); item.shootSpeed = 35f; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } + item.GetGlobalItem(mod).postMoonLordRarity = 14; + } public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { diff --git a/Items/WulfrumShard.cs b/Items/WulfrumShard.cs index 74fa213b84..33a1706891 100644 --- a/Items/WulfrumShard.cs +++ b/Items/WulfrumShard.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items item.width = 13; item.height = 10; item.maxStack = 999; - item.value = 1750; - item.rare = 1; + item.value = Item.buyPrice(0, 0, 10, 0); + item.rare = 1; } } } \ No newline at end of file diff --git a/Items/YharimsStimulants.cs b/Items/YharimsStimulants.cs index 1ca72f7437..76d7c28a5c 100644 --- a/Items/YharimsStimulants.cs +++ b/Items/YharimsStimulants.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items item.consumable = true; item.buffType = mod.BuffType("YharimPower"); item.buffTime = 108000; - item.value = 10000; + item.value = Item.buyPrice(0, 2, 0, 0); } public override void AddRecipes() diff --git a/Items/Yharon/ChickenEgg.cs b/Items/Yharon/ChickenEgg.cs index c8aa618812..b81a16ec8c 100644 --- a/Items/Yharon/ChickenEgg.cs +++ b/Items/Yharon/ChickenEgg.cs @@ -27,19 +27,9 @@ namespace CalamityMod.Items.Yharon item.useTime = 45; item.useStyle = 4; item.consumable = false; + item.GetGlobalItem(mod).postMoonLordRarity = 14; } - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(43, 96, 222); - } - } - } - public override bool CanUseItem(Player player) { return player.ZoneJungle && !NPC.AnyNPCs(mod.NPCType("Yharon")); @@ -57,7 +47,7 @@ namespace CalamityMod.Items.Yharon ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "EffulgentFeather", 15); recipe.AddIngredient(null, "BarofLife", 15); - recipe.AddTile(null, "DraedonsForge"); + recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); } diff --git a/Items/Yharon/HellcasterFragment.cs b/Items/Yharon/HellcasterFragment.cs index 74b899be4b..82950f4c3e 100644 --- a/Items/Yharon/HellcasterFragment.cs +++ b/Items/Yharon/HellcasterFragment.cs @@ -30,18 +30,8 @@ namespace CalamityMod.Items.Yharon item.width = 10; item.height = 14; item.maxStack = 999; - item.value = 15000; - } - - public override void ModifyTooltips(List list) - { - foreach (TooltipLine line2 in list) - { - if (line2.mod == "Terraria" && line2.Name == "ItemName") - { - line2.overrideColor = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); - } - } - } + item.value = Item.buyPrice(0, 10, 0, 0); + item.GetGlobalItem(mod).postMoonLordRarity = 20; + } } } \ No newline at end of file diff --git a/Items/Yharon/YharonBag.cs b/Items/Yharon/YharonBag.cs index 220d15f8bb..8d4fd8043d 100644 --- a/Items/Yharon/YharonBag.cs +++ b/Items/Yharon/YharonBag.cs @@ -7,11 +7,11 @@ namespace CalamityMod.Items.Yharon public class YharonBag : ModItem { public override void SetStaticDefaults() - { - DisplayName.SetDefault("Treasure Bag"); - Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); - } - + { + DisplayName.SetDefault("Treasure Bag"); + Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}"); + } + public override void SetDefaults() { item.maxStack = 999; @@ -30,6 +30,26 @@ namespace CalamityMod.Items.Yharon public override void OpenBossBag(Player player) { + if (CalamityWorld.revenge) + { + player.QuickSpawnItem(mod.ItemType("DrewsWings")); + player.QuickSpawnItem(mod.ItemType("FoxDrive")); + if (Main.rand.Next(20) == 0) + { + switch (Main.rand.Next(3)) + { + case 0: + player.QuickSpawnItem(mod.ItemType("StressPills")); + break; + case 1: + player.QuickSpawnItem(mod.ItemType("Laudanum")); + break; + case 2: + player.QuickSpawnItem(mod.ItemType("HeartofDarkness")); + break; + } + } + } player.TryGettingDevArmor(); if (Main.rand.Next(3) == 0) { @@ -63,11 +83,6 @@ namespace CalamityMod.Items.Yharon { player.QuickSpawnItem(mod.ItemType("YharonMask")); } - if (CalamityWorld.revenge) - { - player.QuickSpawnItem(mod.ItemType("DrewsWings")); - player.QuickSpawnItem(mod.ItemType("FoxDrive")); - } player.QuickSpawnItem(mod.ItemType("YharimsGift")); } } diff --git a/ModSupport.cs b/ModSupport.cs index 3ba8e4265a..8197feef1b 100644 --- a/ModSupport.cs +++ b/ModSupport.cs @@ -15,14 +15,14 @@ using Terraria.ModLoader; namespace CalamityMod { public class ModSupport - { + { public static object Call(params object[] args) { if (args.Length <= 0 || !(args[0] is string)) return new Exception("CalamityMod Error: NO METHOD NAME! First param MUST be a method name!"); - string methodName = (string)args[0]; + string methodName = (string)args[0]; if (methodName.Equals("Downed")) //returns a Func which will return a downed value based on name. { - Func downed = (name) => + Func downed = (name) => { name = name.ToLower(); switch (name) @@ -41,7 +41,7 @@ namespace CalamityMod case "astrumdeus": return CalamityWorld.downedStarGod; case "plaguebringer": return CalamityWorld.downedPlaguebringer; case "ravager": return CalamityWorld.downedScavenger; - case "guardians": return CalamityWorld.downedGuardians; + case "guardians": return CalamityWorld.downedGuardians; case "providence": return CalamityWorld.downedProvidence; case "polterghast": return CalamityWorld.downedPolterghast; case "sentinelany": return (CalamityWorld.downedSentinel1 || CalamityWorld.downedSentinel2 || CalamityWorld.downedSentinel3); @@ -52,7 +52,7 @@ namespace CalamityMod case "devourerofgods": return CalamityWorld.downedDoG; case "bumblebirb": return CalamityWorld.downedBumble; case "yharon": return CalamityWorld.downedYharon; - case "supremecalamitas": return CalamityWorld.downedSCal; + case "supremecalamitas": return CalamityWorld.downedSCal; } }; return downed; @@ -66,16 +66,16 @@ namespace CalamityMod return new Exception("CalamityMod Error: NO METHOD FOUND: " + methodName); } - public static bool InZone(Player p, string zoneName) - { + public static bool InZone(Player p, string zoneName) + { Mod calamity = ModLoader.GetMod("CalamityMod"); zoneName = zoneName.ToLower(); - switch (zoneName) - { - case "calamity": return p.GetModPlayer(calamity).ZoneCalamity; - case "astral": return p.GetModPlayer(calamity).ZoneAstral; - } - return false; - } - } + switch (zoneName) + { + case "calamity": return p.GetModPlayer(calamity).ZoneCalamity; + case "astral": return p.GetModPlayer(calamity).ZoneAstral; + } + return false; + } + } } \ No newline at end of file diff --git a/NPCs/AbyssNPCs/AquaticParasite.cs b/NPCs/AbyssNPCs/AquaticParasite.cs index ec0034cf9d..7a79492fec 100644 --- a/NPCs/AbyssNPCs/AquaticParasite.cs +++ b/NPCs/AbyssNPCs/AquaticParasite.cs @@ -16,212 +16,214 @@ namespace CalamityMod.NPCs.AbyssNPCs { DisplayName.SetDefault("Aquatic Parasite"); } - + public override void SetDefaults() { - npc.noGravity = true; + npc.noGravity = true; npc.damage = 15; npc.width = 28; npc.height = 28; npc.defense = 5; npc.lifeMax = 30; - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = 30000; - } - npc.aiStyle = -1; + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = 30000; + } + npc.aiStyle = -1; aiType = -1; - for (int k = 0; k < npc.buffImmune.Length; k++) - { - npc.buffImmune[k] = true; - } - npc.value = Item.buyPrice(0, 0, 0, 60); + for (int k = 0; k < npc.buffImmune.Length; k++) + { + npc.buffImmune[k] = true; + } + npc.value = Item.buyPrice(0, 0, 0, 60); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; - } + banner = npc.type; + bannerItem = mod.ItemType("AquaticParasiteBanner"); + } - public override void AI() - { - bool flag15 = false; - if (npc.wet && npc.ai[1] == 1f) - { - flag15 = true; - } - else - { - npc.dontTakeDamage = false; - } - float num262 = 1f; - if (flag15) - { - num262 += 0.5f; - } - if (npc.direction == 0) - { - npc.TargetClosest(true); - } - if (flag15) - { - return; - } - if (!npc.wet) - { - npc.rotation += npc.velocity.X * 0.1f; - if (npc.velocity.Y == 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - if ((double)npc.velocity.X > -0.01 && (double)npc.velocity.X < 0.01) - { - npc.velocity.X = 0f; - } - } - npc.velocity.Y = npc.velocity.Y + 0.2f; - if (npc.velocity.Y > 10f) - { - npc.velocity.Y = 10f; - } - npc.ai[0] = 1f; - return; - } - if (npc.collideX) - { - npc.velocity.X = npc.velocity.X * -1f; - npc.direction *= -1; - } - if (npc.collideY) - { - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = Math.Abs(npc.velocity.Y) * -1f; - npc.directionY = -1; - npc.ai[0] = -1f; - } - else if (npc.velocity.Y < 0f) - { - npc.velocity.Y = Math.Abs(npc.velocity.Y); - npc.directionY = 1; - npc.ai[0] = 1f; - } - } - bool flag16 = false; - if (!npc.friendly) - { - npc.TargetClosest(false); - if (!Main.player[npc.target].dead) - { - flag16 = true; - } - } - if (flag16) - { - npc.localAI[2] = 1f; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) + 1.57f; - npc.velocity *= 0.975f; - float num263 = 3.2f; - if (npc.velocity.X > -num263 && npc.velocity.X < num263 && npc.velocity.Y > -num263 && npc.velocity.Y < num263) - { - npc.TargetClosest(true); - float num264 = 15f; - Vector2 vector31 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num265 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector31.X; - float num266 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector31.Y; - float num267 = (float)Math.Sqrt((double)(num265 * num265 + num266 * num266)); - num267 = num264 / num267; - num265 *= num267; - num266 *= num267; - npc.velocity.X = num265; - npc.velocity.Y = num266; - return; - } - } - else - { - npc.localAI[2] = 0f; - npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.02f; - npc.rotation = npc.velocity.X * 0.4f; - if (npc.velocity.X < -1f || npc.velocity.X > 1f) - { - npc.velocity.X = npc.velocity.X * 0.95f; - } - if (npc.ai[0] == -1f) - { - npc.velocity.Y = npc.velocity.Y - 0.01f; - if (npc.velocity.Y < -1f) - { - npc.ai[0] = 1f; - } - } - else - { - npc.velocity.Y = npc.velocity.Y + 0.01f; - if (npc.velocity.Y > 1f) - { - npc.ai[0] = -1f; - } - } - int num268 = (int)(npc.position.X + (float)(npc.width / 2)) / 16; - int num269 = (int)(npc.position.Y + (float)(npc.height / 2)) / 16; - if (Main.tile[num268, num269 - 1] == null) - { - Main.tile[num268, num269 - 1] = new Tile(); - } - if (Main.tile[num268, num269 + 1] == null) - { - Main.tile[num268, num269 + 1] = new Tile(); - } - if (Main.tile[num268, num269 + 2] == null) - { - Main.tile[num268, num269 + 2] = new Tile(); - } - if (Main.tile[num268, num269 - 1].liquid > 128) - { - if (Main.tile[num268, num269 + 1].active()) - { - npc.ai[0] = -1f; - } - else if (Main.tile[num268, num269 + 2].active()) - { - npc.ai[0] = -1f; - } - } - else - { - npc.ai[0] = 1f; - } - if ((double)npc.velocity.Y > 1.2 || (double)npc.velocity.Y < -1.2) - { - npc.velocity.Y = npc.velocity.Y * 0.99f; - return; - } - } - } + public override void AI() + { + bool flag15 = false; + if (npc.wet && npc.ai[1] == 1f) + { + flag15 = true; + } + else + { + npc.dontTakeDamage = false; + } + float num262 = 1f; + if (flag15) + { + num262 += 0.5f; + } + if (npc.direction == 0) + { + npc.TargetClosest(true); + } + if (flag15) + { + return; + } + if (!npc.wet) + { + npc.rotation += npc.velocity.X * 0.1f; + if (npc.velocity.Y == 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + if ((double)npc.velocity.X > -0.01 && (double)npc.velocity.X < 0.01) + { + npc.velocity.X = 0f; + } + } + npc.velocity.Y = npc.velocity.Y + 0.2f; + if (npc.velocity.Y > 10f) + { + npc.velocity.Y = 10f; + } + npc.ai[0] = 1f; + return; + } + if (npc.collideX) + { + npc.velocity.X = npc.velocity.X * -1f; + npc.direction *= -1; + } + if (npc.collideY) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y) * -1f; + npc.directionY = -1; + npc.ai[0] = -1f; + } + else if (npc.velocity.Y < 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y); + npc.directionY = 1; + npc.ai[0] = 1f; + } + } + bool flag16 = false; + if (!npc.friendly) + { + npc.TargetClosest(false); + if (!Main.player[npc.target].dead) + { + flag16 = true; + } + } + if (flag16) + { + npc.localAI[2] = 1f; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) + 1.57f; + npc.velocity *= 0.975f; + float num263 = 3.2f; + if (npc.velocity.X > -num263 && npc.velocity.X < num263 && npc.velocity.Y > -num263 && npc.velocity.Y < num263) + { + npc.TargetClosest(true); + float num264 = 15f; + Vector2 vector31 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num265 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector31.X; + float num266 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector31.Y; + float num267 = (float)Math.Sqrt((double)(num265 * num265 + num266 * num266)); + num267 = num264 / num267; + num265 *= num267; + num266 *= num267; + npc.velocity.X = num265; + npc.velocity.Y = num266; + return; + } + } + else + { + npc.localAI[2] = 0f; + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.02f; + npc.rotation = npc.velocity.X * 0.4f; + if (npc.velocity.X < -1f || npc.velocity.X > 1f) + { + npc.velocity.X = npc.velocity.X * 0.95f; + } + if (npc.ai[0] == -1f) + { + npc.velocity.Y = npc.velocity.Y - 0.01f; + if (npc.velocity.Y < -1f) + { + npc.ai[0] = 1f; + } + } + else + { + npc.velocity.Y = npc.velocity.Y + 0.01f; + if (npc.velocity.Y > 1f) + { + npc.ai[0] = -1f; + } + } + int num268 = (int)(npc.position.X + (float)(npc.width / 2)) / 16; + int num269 = (int)(npc.position.Y + (float)(npc.height / 2)) / 16; + if (Main.tile[num268, num269 - 1] == null) + { + Main.tile[num268, num269 - 1] = new Tile(); + } + if (Main.tile[num268, num269 + 1] == null) + { + Main.tile[num268, num269 + 1] = new Tile(); + } + if (Main.tile[num268, num269 + 2] == null) + { + Main.tile[num268, num269 + 2] = new Tile(); + } + if (Main.tile[num268, num269 - 1].liquid > 128) + { + if (Main.tile[num268, num269 + 1].active()) + { + npc.ai[0] = -1f; + } + else if (Main.tile[num268, num269 + 2].active()) + { + npc.ai[0] = -1f; + } + } + else + { + npc.ai[0] = 1f; + } + if ((double)npc.velocity.Y > 1.2 || (double)npc.velocity.Y < -1.2) + { + npc.velocity.Y = npc.velocity.Y * 0.99f; + return; + } + } + } - public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.15f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.playerSafe) + { + return 0f; + } + if (spawnInfo.player.GetModPlayer(mod).ZoneSulphur && spawnInfo.water) + { + return 0.2f; + } + return 0f; + } - public override float SpawnChance(NPCSpawnInfo spawnInfo) - { - if (spawnInfo.playerSafe) - { - return 0f; - } - if (spawnInfo.player.GetModPlayer(mod).ZoneSulphur && spawnInfo.water) - { - return 0.2f; - } - return 0f; - } - public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Venom, 120, true); } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 3; k++) @@ -234,6 +236,8 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/AquaticParasite1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/AquaticParasite2"), 1f); } } } diff --git a/NPCs/AbyssNPCs/AquaticScourgeBody.cs b/NPCs/AbyssNPCs/AquaticScourgeBody.cs index 5853453f5d..665520f6e0 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeBody.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeBody.cs @@ -36,11 +36,11 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.lifeMax = 100000; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 8600000 : 7900000; - } - for (int k = 0; k < npc.buffImmune.Length; k++) + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 4300000 : 4000000; + } + for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; } @@ -52,7 +52,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - if (Main.expertMode) + npc.canGhostHeal = false; + if (Main.expertMode) { npc.scale = 1.15f; } @@ -369,7 +370,11 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } - } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASBody"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASBody2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASBody3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASBody4"), 1f); + } } public override void OnHitPlayer(Player player, int damage, bool crit) diff --git a/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs b/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs index 48f191eefe..7f808ce4fc 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeBodyAlt.cs @@ -36,11 +36,11 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.lifeMax = 100000; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 8600000 : 7900000; - } - for (int k = 0; k < npc.buffImmune.Length; k++) + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 4300000 : 4000000; + } + for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; } @@ -52,7 +52,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - if (Main.expertMode) + npc.canGhostHeal = false; + if (Main.expertMode) { npc.scale = 1.15f; } @@ -367,7 +368,10 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } - } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASBodyAlt"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASBodyAlt2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASBodyAlt3"), 1f); + } } public override void OnHitPlayer(Player player, int damage, bool crit) diff --git a/NPCs/AbyssNPCs/AquaticScourgeHead.cs b/NPCs/AbyssNPCs/AquaticScourgeHead.cs index f8f8b79c74..f20d85752d 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeHead.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeHead.cs @@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.AbyssNPCs } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 8600000 : 7900000; + npc.lifeMax = CalamityWorld.death ? 4300000 : 4000000; } for (int k = 0; k < npc.buffImmune.Length; k++) { @@ -582,6 +582,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASHead"), 1f); } } diff --git a/NPCs/AbyssNPCs/AquaticScourgeTail.cs b/NPCs/AbyssNPCs/AquaticScourgeTail.cs index 74b45790e7..30dfbd4574 100644 --- a/NPCs/AbyssNPCs/AquaticScourgeTail.cs +++ b/NPCs/AbyssNPCs/AquaticScourgeTail.cs @@ -36,11 +36,11 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.lifeMax = 100000; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 8600000 : 7900000; - } - for (int k = 0; k < npc.buffImmune.Length; k++) + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 4300000 : 4000000; + } + for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; } @@ -52,7 +52,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; - if (Main.expertMode) + npc.canGhostHeal = false; + if (Main.expertMode) { npc.scale = 1.15f; } @@ -339,7 +340,9 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } - } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASTail"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/ASTail2"), 1f); + } } public override void OnHitPlayer(Player player, int damage, bool crit) diff --git a/NPCs/AbyssNPCs/AquaticSeekerBody.cs b/NPCs/AbyssNPCs/AquaticSeekerBody.cs index 927cb8cffd..32429e9f1a 100644 --- a/NPCs/AbyssNPCs/AquaticSeekerBody.cs +++ b/NPCs/AbyssNPCs/AquaticSeekerBody.cs @@ -46,6 +46,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; npc.dontCountMe = true; + banner = mod.NPCType("AquaticSeekerHead"); + bannerItem = mod.ItemType("AquaticSeekerBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -291,7 +293,8 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } - } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/AquaticSeekerBody"), 1f); + } } } } \ No newline at end of file diff --git a/NPCs/AbyssNPCs/AquaticSeekerHead.cs b/NPCs/AbyssNPCs/AquaticSeekerHead.cs index 9354f1d806..0ad40b4a5a 100644 --- a/NPCs/AbyssNPCs/AquaticSeekerHead.cs +++ b/NPCs/AbyssNPCs/AquaticSeekerHead.cs @@ -52,6 +52,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; + banner = npc.type; + bannerItem = mod.ItemType("AquaticSeekerBanner"); } public override void AI() @@ -395,6 +397,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/AquaticSeekerHead"), 1f); } } diff --git a/NPCs/AbyssNPCs/AquaticSeekerTail.cs b/NPCs/AbyssNPCs/AquaticSeekerTail.cs index eb41500fe8..ac9362aae9 100644 --- a/NPCs/AbyssNPCs/AquaticSeekerTail.cs +++ b/NPCs/AbyssNPCs/AquaticSeekerTail.cs @@ -46,6 +46,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; npc.dontCountMe = true; + banner = mod.NPCType("AquaticSeekerHead"); + bannerItem = mod.ItemType("AquaticSeekerBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) @@ -291,7 +293,8 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } - } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/AquaticSeekerTail"), 1f); + } } } } \ No newline at end of file diff --git a/NPCs/AbyssNPCs/AquaticUrchin.cs b/NPCs/AbyssNPCs/AquaticUrchin.cs index 875265accc..b711a7012c 100644 --- a/NPCs/AbyssNPCs/AquaticUrchin.cs +++ b/NPCs/AbyssNPCs/AquaticUrchin.cs @@ -40,6 +40,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath15; npc.behindTiles = true; + banner = npc.type; + bannerItem = mod.ItemType("AquaticUrchinBanner"); } public override void AI() @@ -357,6 +359,9 @@ namespace CalamityMod.NPCs.AbyssNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/AquaticUrchin"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/AquaticUrchin2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/AquaticScourgeGores/AquaticUrchin3"), 1f); } } } diff --git a/NPCs/AbyssNPCs/Bloatfish.cs b/NPCs/AbyssNPCs/Bloatfish.cs index 816f5abebd..b12e5d3d73 100644 --- a/NPCs/AbyssNPCs/Bloatfish.cs +++ b/NPCs/AbyssNPCs/Bloatfish.cs @@ -33,7 +33,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.9f; - } + banner = npc.type; + bannerItem = mod.ItemType("BloatfishBanner"); + } public override void AI() { @@ -178,8 +180,8 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer4 && spawnInfo.water && NPC.CountNPCS(mod.NPCType("Bloatfish")) < 3) { - return 0.05f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.3f; + } return 0f; } @@ -216,7 +218,8 @@ namespace CalamityMod.NPCs.AbyssNPCs Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); } } - if (npc.scale < 2f){ + if (npc.scale < 2f) + { npc.scale += 0.05f; } } diff --git a/NPCs/AbyssNPCs/BobbitWormHead.cs b/NPCs/AbyssNPCs/BobbitWormHead.cs index 18356016c9..10587e67bb 100644 --- a/NPCs/AbyssNPCs/BobbitWormHead.cs +++ b/NPCs/AbyssNPCs/BobbitWormHead.cs @@ -33,6 +33,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.buffImmune[mod.BuffType("CrushDepth")] = true; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("BobbitWormBanner"); } public override void AI() diff --git a/NPCs/AbyssNPCs/BobbitWormSegment.cs b/NPCs/AbyssNPCs/BobbitWormSegment.cs index 88a9dc85ca..7560a98c43 100644 --- a/NPCs/AbyssNPCs/BobbitWormSegment.cs +++ b/NPCs/AbyssNPCs/BobbitWormSegment.cs @@ -56,8 +56,8 @@ namespace CalamityMod.NPCs.AbyssNPCs if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer4 && spawnInfo.water) { if (!NPC.AnyNPCs(mod.NPCType("BobbitWormSegment"))) - return 0.01f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.3f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/BoxJellyfish.cs b/NPCs/AbyssNPCs/BoxJellyfish.cs index cfd2f35c72..c09e905732 100644 --- a/NPCs/AbyssNPCs/BoxJellyfish.cs +++ b/NPCs/AbyssNPCs/BoxJellyfish.cs @@ -33,7 +33,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.value = Item.buyPrice(0, 0, 0, 80); npc.HitSound = SoundID.NPCHit25; npc.DeathSound = SoundID.NPCDeath28; - } + banner = npc.type; + bannerItem = mod.ItemType("BoxJellyfishBanner"); + } public override void AI() { @@ -186,7 +188,7 @@ namespace CalamityMod.NPCs.AbyssNPCs } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer1 && spawnInfo.water) { - return 0.2f; + return SpawnCondition.CaveJellyfish.Chance * 1.2f; } return SpawnCondition.OceanMonster.Chance * 0.1f; } diff --git a/NPCs/AbyssNPCs/Catfish.cs b/NPCs/AbyssNPCs/Catfish.cs index a32b1dccef..e5a42c6d87 100644 --- a/NPCs/AbyssNPCs/Catfish.cs +++ b/NPCs/AbyssNPCs/Catfish.cs @@ -38,7 +38,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath40; npc.knockBackResist = 0.8f; - } + banner = npc.type; + bannerItem = mod.ItemType("CatfishBanner"); + } public override void AI() { diff --git a/NPCs/AbyssNPCs/ChaoticPuffer.cs b/NPCs/AbyssNPCs/ChaoticPuffer.cs index 6683ce2ad2..1f0a97f211 100644 --- a/NPCs/AbyssNPCs/ChaoticPuffer.cs +++ b/NPCs/AbyssNPCs/ChaoticPuffer.cs @@ -1,242 +1,244 @@ -using System; -using System.Collections.Generic; -using System.IO; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Projectiles; - -namespace CalamityMod.NPCs.AbyssNPCs -{ - public class ChaoticPuffer : ModNPC - { - public bool puffedUp = false; - public bool puffing = false; - public bool unpuffing = false; - public int puffTimer = 0; - public int puffingTimer = 0; - - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Chaotic Puffer"); - Main.npcFrameCount[npc.type] = 11; - } - - public override void SetDefaults() - { - npc.noGravity = true; - npc.width = 78; - npc.height = 70; - npc.defense = 25; - npc.lifeMax = 7500; - npc.aiStyle = -1; - aiType = -1; - npc.knockBackResist = 0f; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; - npc.value = Item.buyPrice(0, 0, 30, 0); - npc.HitSound = SoundID.NPCHit23; - npc.DeathSound = SoundID.NPCDeath28; - } - - public override void AI() - { - npc.TargetClosest(true); - npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.03f; - npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.03f; - - npc.damage = puffedUp ? (Main.expertMode ? 230 : 115) : 0; - - - if( !puffing || !unpuffing){ - ++puffTimer; - } - - if(puffTimer >= 300){ - - if( !puffedUp ){ - puffing = true; - } else { - unpuffing = true; - } - - puffTimer = 0; - - }else if( puffing || unpuffing){ - - ++puffingTimer; - - if( puffingTimer > 16 && puffing){ - - puffing = false; - puffedUp = true; - puffingTimer = 0; - - } else if( puffingTimer > 16 && unpuffing){ - - unpuffing = false; - puffedUp = false; - puffingTimer = 0; - - } - - } - - if(npc.velocity.X >= 1 || npc.velocity.X <= -1) { - - npc.velocity.X = npc.velocity.X * 0.97f; - - } - - if(npc.velocity.Y >= 1 || npc.velocity.Y <= -1) { - - npc.velocity.Y = npc.velocity.Y * 0.97f; - - } - - npc.rotation += npc.velocity.X * 0.05f; - - } - - public void Boom() - { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 14); - if (Main.netMode != 1 && puffedUp) - { - int damageBoom = 100; - int projectileType = mod.ProjectileType("PufferExplosion"); - int boom = Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0, 0, projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f); - } - npc.netUpdate = true; - } - - - public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) - { - SpriteEffects spriteEffects = SpriteEffects.None; - if (npc.spriteDirection == 1) - { - spriteEffects = SpriteEffects.FlipHorizontally; - } - Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); - Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); - Vector2 vector = center - Main.screenPosition; - vector -= new Vector2((float)mod.GetTexture("NPCs/AbyssNPCs/ChaoticPufferGlow").Width, (float)(mod.GetTexture("NPCs/AbyssNPCs/ChaoticPufferGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; - vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); - Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.Yellow); - Main.spriteBatch.Draw(mod.GetTexture("NPCs/AbyssNPCs/ChaoticPufferGlow"), vector, - new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); - } - - public override void FindFrame(int frameHeight) - { - npc.frameCounter += 1.0; - if (npc.frameCounter > 6.0) - { - npc.frameCounter = 0.0; - if(!unpuffing){ - npc.frame.Y = npc.frame.Y + frameHeight; - } else { - npc.frame.Y = npc.frame.Y - frameHeight; - } - } - if( puffing ) - { - if (npc.frame.Y < frameHeight * 3) - { - npc.frame.Y = frameHeight * 3; - } - if (npc.frame.Y > frameHeight * 6) - { - npc.frame.Y = frameHeight * 3; - } - } - else if ( unpuffing ) - { - if (npc.frame.Y > frameHeight * 6) - { - npc.frame.Y = frameHeight * 6; - } - if (npc.frame.Y < frameHeight * 3) - { - npc.frame.Y = frameHeight * 6; - } - } - else if (!puffedUp) - { - if (npc.frame.Y > frameHeight * 3) - { - npc.frame.Y = 0; - } - } - else - { - if (npc.frame.Y < frameHeight * 7) - { - npc.frame.Y = frameHeight * 7; - } - if (npc.frame.Y > frameHeight * 10) - { - npc.frame.Y = frameHeight * 7; - } - } - - } - - public override float SpawnChance(NPCSpawnInfo spawnInfo) - { - if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer4 && spawnInfo.water) - { - return 0.1f; - } - return 0f; - } - - public override void NPCLoot() - { - if (Main.rand.Next(1000) == 0 && CalamityWorld.revenge) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); - } - if (NPC.downedGolemBoss) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ChaoticOre"), Main.rand.Next(10, 27)); - } - } - - public override void OnHitPlayer(Player player, int damage, bool crit) - { - player.AddBuff(mod.BuffType("BrimstoneFlames"), 300); - - if (puffedUp) - { - Boom(); - npc.active = false; - } - } - - public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - npc.velocity.X = projectile.velocity.X; - npc.velocity.Y = projectile.velocity.Y; - } - - public override void HitEffect(int hitDirection, double damage) - { - for (int k = 0; k < 3; k++) - { - Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); - } - if (npc.life <= 0) - { - Boom(); - - for (int k = 0; k < 15; k++) - { - Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); - } - } - } - } +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles; + +namespace CalamityMod.NPCs.AbyssNPCs +{ + public class ChaoticPuffer : ModNPC + { + public bool puffedUp = false; + public bool puffing = false; + public bool unpuffing = false; + public int puffTimer = 0; + public int puffingTimer = 0; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Chaotic Puffer"); + Main.npcFrameCount[npc.type] = 11; + } + + public override void SetDefaults() + { + npc.noGravity = true; + npc.width = 78; + npc.height = 70; + npc.defense = 25; + npc.lifeMax = 7500; + npc.aiStyle = -1; + aiType = -1; + npc.knockBackResist = 0f; + npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.value = Item.buyPrice(0, 0, 30, 0); + npc.HitSound = SoundID.NPCHit23; + npc.DeathSound = SoundID.NPCDeath28; + banner = npc.type; + bannerItem = mod.ItemType("ChaoticPufferBanner"); + } + + public override void AI() + { + npc.TargetClosest(true); + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.03f; + npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.03f; + + npc.damage = puffedUp ? (Main.expertMode ? 230 : 115) : 0; + + + if( !puffing || !unpuffing){ + ++puffTimer; + } + + if(puffTimer >= 300){ + + if( !puffedUp ){ + puffing = true; + } else { + unpuffing = true; + } + + puffTimer = 0; + + }else if( puffing || unpuffing){ + + ++puffingTimer; + + if( puffingTimer > 16 && puffing){ + + puffing = false; + puffedUp = true; + puffingTimer = 0; + + } else if( puffingTimer > 16 && unpuffing){ + + unpuffing = false; + puffedUp = false; + puffingTimer = 0; + + } + + } + + if(npc.velocity.X >= 1 || npc.velocity.X <= -1) { + + npc.velocity.X = npc.velocity.X * 0.97f; + + } + + if(npc.velocity.Y >= 1 || npc.velocity.Y <= -1) { + + npc.velocity.Y = npc.velocity.Y * 0.97f; + + } + + npc.rotation += npc.velocity.X * 0.05f; + + } + + public void Boom() + { + Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 14); + if (Main.netMode != 1 && puffedUp) + { + int damageBoom = 100; + int projectileType = mod.ProjectileType("PufferExplosion"); + int boom = Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0, 0, projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f); + } + npc.netUpdate = true; + } + + + public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector = center - Main.screenPosition; + vector -= new Vector2((float)mod.GetTexture("NPCs/AbyssNPCs/ChaoticPufferGlow").Width, (float)(mod.GetTexture("NPCs/AbyssNPCs/ChaoticPufferGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); + Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.Yellow); + Main.spriteBatch.Draw(mod.GetTexture("NPCs/AbyssNPCs/ChaoticPufferGlow"), vector, + new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 1.0; + if (npc.frameCounter > 6.0) + { + npc.frameCounter = 0.0; + if(!unpuffing){ + npc.frame.Y = npc.frame.Y + frameHeight; + } else { + npc.frame.Y = npc.frame.Y - frameHeight; + } + } + if( puffing ) + { + if (npc.frame.Y < frameHeight * 3) + { + npc.frame.Y = frameHeight * 3; + } + if (npc.frame.Y > frameHeight * 6) + { + npc.frame.Y = frameHeight * 3; + } + } + else if ( unpuffing ) + { + if (npc.frame.Y > frameHeight * 6) + { + npc.frame.Y = frameHeight * 6; + } + if (npc.frame.Y < frameHeight * 3) + { + npc.frame.Y = frameHeight * 6; + } + } + else if (!puffedUp) + { + if (npc.frame.Y > frameHeight * 3) + { + npc.frame.Y = 0; + } + } + else + { + if (npc.frame.Y < frameHeight * 7) + { + npc.frame.Y = frameHeight * 7; + } + if (npc.frame.Y > frameHeight * 10) + { + npc.frame.Y = frameHeight * 7; + } + } + + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer4 && spawnInfo.water) + { + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } + return 0f; + } + + public override void NPCLoot() + { + if (Main.rand.Next(1000) == 0 && CalamityWorld.revenge) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + } + if (NPC.downedGolemBoss) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ChaoticOre"), Main.rand.Next(10, 27)); + } + } + + public override void OnHitPlayer(Player player, int damage, bool crit) + { + player.AddBuff(mod.BuffType("BrimstoneFlames"), 300); + + if (puffedUp) + { + Boom(); + npc.active = false; + } + } + + public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + npc.velocity.X = projectile.velocity.X; + npc.velocity.Y = projectile.velocity.Y; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 3; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + Boom(); + + for (int k = 0; k < 15; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); + } + } + } + } } \ No newline at end of file diff --git a/NPCs/AbyssNPCs/ColossalSquid.cs b/NPCs/AbyssNPCs/ColossalSquid.cs index 79255ec5ed..8756e041f5 100644 --- a/NPCs/AbyssNPCs/ColossalSquid.cs +++ b/NPCs/AbyssNPCs/ColossalSquid.cs @@ -43,7 +43,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit20; npc.DeathSound = SoundID.NPCDeath23; npc.rarity = 2; - } + banner = npc.type; + bannerItem = mod.ItemType("ColossalSquidBanner"); + } public override void AI() { @@ -508,8 +510,8 @@ namespace CalamityMod.NPCs.AbyssNPCs if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("ColossalSquid")) && !NPC.AnyNPCs(mod.NPCType("Reaper")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge"))) { - return 0.2f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/Cuttlefish.cs b/NPCs/AbyssNPCs/Cuttlefish.cs index 5ef8476e99..56cc16d12e 100644 --- a/NPCs/AbyssNPCs/Cuttlefish.cs +++ b/NPCs/AbyssNPCs/Cuttlefish.cs @@ -34,7 +34,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath28; npc.knockBackResist = 0.3f; - } + banner = npc.type; + bannerItem = mod.ItemType("CuttlefishBanner"); + } public override void AI() { @@ -299,11 +301,11 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer1 && spawnInfo.water) { - return 0.1f; + return SpawnCondition.CaveJellyfish.Chance * 0.3f; } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water) { - return 0.2f; + return SpawnCondition.CaveJellyfish.Chance * 0.6f; } return 0f; } diff --git a/NPCs/AbyssNPCs/DevilFish.cs b/NPCs/AbyssNPCs/DevilFish.cs index 73bbe3acd7..678b7468f9 100644 --- a/NPCs/AbyssNPCs/DevilFish.cs +++ b/NPCs/AbyssNPCs/DevilFish.cs @@ -1,336 +1,338 @@ -using System; -using System.Collections.Generic; -using System.IO; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Projectiles; - -namespace CalamityMod.NPCs.AbyssNPCs -{ - public class DevilFish : ModNPC - { - public bool hasBeenHit = false; - public bool brokenMask = false; - public int hitCounter = 0; - - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Devil Fish"); - Main.npcFrameCount[npc.type] = 8; - } - - public override void SetDefaults() - { - npc.noGravity = true; - npc.damage = 60; - npc.width = 126; - npc.height = 66; - npc.defense = 999999; - npc.lifeMax = 200; - npc.aiStyle = -1; - aiType = -1; - npc.buffImmune[mod.BuffType("CrushDepth")] = true; - npc.value = Item.buyPrice(0, 0, 10, 0); - npc.HitSound = SoundID.NPCHit4; - npc.DeathSound = SoundID.NPCDeath1; - npc.knockBackResist = 0.85f; - } - - public override void AI() - { - Player player = Main.player[npc.target]; - float speedBoost = brokenMask ? 1.5f : 1; - npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); - npc.noGravity = true; - if (npc.direction == 0) - { - npc.TargetClosest(true); - } - npc.chaseable = hasBeenHit; - - if(hitCounter >= 5 && !brokenMask) - { - brokenMask = true; - npc.HitSound = SoundID.NPCHit1; - npc.defense = 15; - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/DevilFishMask1"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/DevilFishMask2"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/DevilFishMask3"), 1f); - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/DevilMaskBreak"), (int)npc.position.X, (int)npc.position.Y); - } - - if (npc.wet) - { - bool flag14 = brokenMask; - npc.TargetClosest(false); - if (player.statLife <= player.statLifeMax2 / 4) - { - flag14 = true; - } - if ((!player.wet || player.dead) && flag14) - { - flag14 = false; - } - if (!flag14) - { - if (npc.collideX) - { - npc.velocity.X = npc.velocity.X * -1f; - npc.direction *= -1; - npc.netUpdate = true; - } - if (npc.collideY) - { - npc.netUpdate = true; - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = Math.Abs(npc.velocity.Y) * -1f; - npc.directionY = -1; - npc.ai[0] = -1f; - } - else if (npc.velocity.Y < 0f) - { - npc.velocity.Y = Math.Abs(npc.velocity.Y); - npc.directionY = 1; - npc.ai[0] = 1f; - } - } - } - if (flag14) - { - npc.TargetClosest(true); - npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.25f * speedBoost; - npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.15f * speedBoost; - if (npc.velocity.X > 6f * speedBoost) - { - npc.velocity.X = 6f * speedBoost; - } - if (npc.velocity.X < -6f * speedBoost) - { - npc.velocity.X = -6f * speedBoost; - } - if (npc.velocity.Y > 6f * speedBoost) - { - npc.velocity.Y = 6f * speedBoost; - } - if (npc.velocity.Y < -6f * speedBoost) - { - npc.velocity.Y = -6f * speedBoost; - } - } - else - { - npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.1f; - if (npc.velocity.X < -2.5f || npc.velocity.X > 2.5f) - { - npc.velocity.X = npc.velocity.X * 0.95f; - } - if (npc.ai[0] == -1f) - { - npc.velocity.Y = npc.velocity.Y - 0.01f; - if ((double)npc.velocity.Y < -0.3) - { - npc.ai[0] = 1f; - } - } - else - { - npc.velocity.Y = npc.velocity.Y + 0.01f; - if ((double)npc.velocity.Y > 0.3) - { - npc.ai[0] = -1f; - } - } - } - int num258 = (int)(npc.position.X + (float)(npc.width / 2)) / 16; - int num259 = (int)(npc.position.Y + (float)(npc.height / 2)) / 16; - if (Main.tile[num258, num259 - 1] == null) - { - Main.tile[num258, num259 - 1] = new Tile(); - } - if (Main.tile[num258, num259 + 1] == null) - { - Main.tile[num258, num259 + 1] = new Tile(); - } - if (Main.tile[num258, num259 + 2] == null) - { - Main.tile[num258, num259 + 2] = new Tile(); - } - if (Main.tile[num258, num259 - 1].liquid > 128) - { - if (Main.tile[num258, num259 + 1].active()) - { - npc.ai[0] = -1f; - } - else if (Main.tile[num258, num259 + 2].active()) - { - npc.ai[0] = -1f; - } - } - if ((double)npc.velocity.Y > 0.4 || (double)npc.velocity.Y < -0.4) - { - npc.velocity.Y = npc.velocity.Y * 0.95f; - } - } - else - { - if (npc.velocity.Y == 0f) - { - npc.velocity.X = npc.velocity.X * 0.94f; - if ((double)npc.velocity.X > -0.2 && (double)npc.velocity.X < 0.2) - { - npc.velocity.X = 0f; - } - } - npc.velocity.Y = npc.velocity.Y + 0.3f; - if (npc.velocity.Y > 10f) - { - npc.velocity.Y = 10f; - } - npc.ai[0] = 1f; - } - npc.rotation = npc.velocity.Y * (float)npc.direction * 0.1f; - if ((double)npc.rotation < -0.2) - { - npc.rotation = -0.2f; - } - if ((double)npc.rotation > 0.2) - { - npc.rotation = 0.2f; - return; - } - } - - public override bool? CanBeHitByProjectile(Projectile projectile) - { - if (projectile.minion) - { - return hasBeenHit; - } - return null; - } - - public override void FindFrame(int frameHeight) - { - if (!npc.wet) - { - npc.frameCounter = 0.0; - return; - } - npc.frameCounter += 1.0; - if (npc.frameCounter > 6.0) - { - npc.frameCounter = 0.0; - npc.frame.Y = npc.frame.Y + frameHeight; - } - if (!brokenMask) - { - if (npc.frame.Y > frameHeight * 3) - { - npc.frame.Y = 0; - } - } - else - { - if (npc.frame.Y < frameHeight * 4) - { - npc.frame.Y = frameHeight * 4; - } - if (npc.frame.Y > frameHeight * 7) - { - npc.frame.Y = frameHeight * 4; - } - } - } - - public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) - { - SpriteEffects spriteEffects = SpriteEffects.None; - if (npc.spriteDirection == 1) - { - spriteEffects = SpriteEffects.FlipHorizontally; - } - Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); - Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); - Vector2 vector = center - Main.screenPosition; - vector -= new Vector2((float)mod.GetTexture("NPCs/AbyssNPCs/DevilFishGlow").Width, (float)(mod.GetTexture("NPCs/AbyssNPCs/DevilFishGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; - vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); - Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.Red); - Main.spriteBatch.Draw(mod.GetTexture("NPCs/AbyssNPCs/DevilFishGlow"), vector, - new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); - } - - public override void OnHitPlayer(Player player, int damage, bool crit) - { - player.AddBuff(mod.BuffType("CrushDepth"), 180, true); - if (CalamityWorld.revenge) - { - player.AddBuff(mod.BuffType("MarkedforDeath"), 120); - player.AddBuff(mod.BuffType("Horror"), 120, true); - } - } - - public override float SpawnChance(NPCSpawnInfo spawnInfo) - { - if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer1 && spawnInfo.water) - { - return 0.075f; - } - if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water) - { - return 0.1f; - } - return 0f; - } - - public override void NPCLoot() - { - if (Main.rand.Next(1000) == 0 && CalamityWorld.revenge) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); - } - if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite")); - } - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(1, 3)); - } - if (Main.expertMode && Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells")); - } - } - if (NPC.downedGolemBoss) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ChaoticOre"), Main.rand.Next(3, 10)); - } - } - - public override void HitEffect(int hitDirection, double damage) - { - for (int k = 0; k < 5; k++) - { - Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); - } - if (npc.life <= 0) - { - for (int k = 0; k < 25; k++) - { - Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); - } - } - - if(hitCounter <= 5) - { - ++hitCounter; - } - } - } +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles; + +namespace CalamityMod.NPCs.AbyssNPCs +{ + public class DevilFish : ModNPC + { + public bool hasBeenHit = false; + public bool brokenMask = false; + public int hitCounter = 0; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Devil Fish"); + Main.npcFrameCount[npc.type] = 8; + } + + public override void SetDefaults() + { + npc.noGravity = true; + npc.damage = 60; + npc.width = 126; + npc.height = 66; + npc.defense = 999999; + npc.lifeMax = 200; + npc.aiStyle = -1; + aiType = -1; + npc.buffImmune[mod.BuffType("CrushDepth")] = true; + npc.value = Item.buyPrice(0, 0, 10, 0); + npc.HitSound = SoundID.NPCHit4; + npc.DeathSound = SoundID.NPCDeath1; + npc.knockBackResist = 0.85f; + banner = npc.type; + bannerItem = mod.ItemType("DevilFishBanner"); + } + + public override void AI() + { + Player player = Main.player[npc.target]; + float speedBoost = brokenMask ? 1.5f : 1; + npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); + npc.noGravity = true; + if (npc.direction == 0) + { + npc.TargetClosest(true); + } + npc.chaseable = hasBeenHit; + + if(hitCounter >= 5 && !brokenMask) + { + brokenMask = true; + npc.HitSound = SoundID.NPCHit1; + npc.defense = 15; + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/DevilFishMask1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/DevilFishMask2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/DevilFishMask3"), 1f); + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/DevilMaskBreak"), (int)npc.position.X, (int)npc.position.Y); + } + + if (npc.wet) + { + bool flag14 = brokenMask; + npc.TargetClosest(false); + if (player.statLife <= player.statLifeMax2 / 4) + { + flag14 = true; + } + if ((!player.wet || player.dead) && flag14) + { + flag14 = false; + } + if (!flag14) + { + if (npc.collideX) + { + npc.velocity.X = npc.velocity.X * -1f; + npc.direction *= -1; + npc.netUpdate = true; + } + if (npc.collideY) + { + npc.netUpdate = true; + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y) * -1f; + npc.directionY = -1; + npc.ai[0] = -1f; + } + else if (npc.velocity.Y < 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y); + npc.directionY = 1; + npc.ai[0] = 1f; + } + } + } + if (flag14) + { + npc.TargetClosest(true); + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.25f * speedBoost; + npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.15f * speedBoost; + if (npc.velocity.X > 6f * speedBoost) + { + npc.velocity.X = 6f * speedBoost; + } + if (npc.velocity.X < -6f * speedBoost) + { + npc.velocity.X = -6f * speedBoost; + } + if (npc.velocity.Y > 6f * speedBoost) + { + npc.velocity.Y = 6f * speedBoost; + } + if (npc.velocity.Y < -6f * speedBoost) + { + npc.velocity.Y = -6f * speedBoost; + } + } + else + { + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.1f; + if (npc.velocity.X < -2.5f || npc.velocity.X > 2.5f) + { + npc.velocity.X = npc.velocity.X * 0.95f; + } + if (npc.ai[0] == -1f) + { + npc.velocity.Y = npc.velocity.Y - 0.01f; + if ((double)npc.velocity.Y < -0.3) + { + npc.ai[0] = 1f; + } + } + else + { + npc.velocity.Y = npc.velocity.Y + 0.01f; + if ((double)npc.velocity.Y > 0.3) + { + npc.ai[0] = -1f; + } + } + } + int num258 = (int)(npc.position.X + (float)(npc.width / 2)) / 16; + int num259 = (int)(npc.position.Y + (float)(npc.height / 2)) / 16; + if (Main.tile[num258, num259 - 1] == null) + { + Main.tile[num258, num259 - 1] = new Tile(); + } + if (Main.tile[num258, num259 + 1] == null) + { + Main.tile[num258, num259 + 1] = new Tile(); + } + if (Main.tile[num258, num259 + 2] == null) + { + Main.tile[num258, num259 + 2] = new Tile(); + } + if (Main.tile[num258, num259 - 1].liquid > 128) + { + if (Main.tile[num258, num259 + 1].active()) + { + npc.ai[0] = -1f; + } + else if (Main.tile[num258, num259 + 2].active()) + { + npc.ai[0] = -1f; + } + } + if ((double)npc.velocity.Y > 0.4 || (double)npc.velocity.Y < -0.4) + { + npc.velocity.Y = npc.velocity.Y * 0.95f; + } + } + else + { + if (npc.velocity.Y == 0f) + { + npc.velocity.X = npc.velocity.X * 0.94f; + if ((double)npc.velocity.X > -0.2 && (double)npc.velocity.X < 0.2) + { + npc.velocity.X = 0f; + } + } + npc.velocity.Y = npc.velocity.Y + 0.3f; + if (npc.velocity.Y > 10f) + { + npc.velocity.Y = 10f; + } + npc.ai[0] = 1f; + } + npc.rotation = npc.velocity.Y * (float)npc.direction * 0.1f; + if ((double)npc.rotation < -0.2) + { + npc.rotation = -0.2f; + } + if ((double)npc.rotation > 0.2) + { + npc.rotation = 0.2f; + return; + } + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + if (projectile.minion) + { + return hasBeenHit; + } + return null; + } + + public override void FindFrame(int frameHeight) + { + if (!npc.wet) + { + npc.frameCounter = 0.0; + return; + } + npc.frameCounter += 1.0; + if (npc.frameCounter > 6.0) + { + npc.frameCounter = 0.0; + npc.frame.Y = npc.frame.Y + frameHeight; + } + if (!brokenMask) + { + if (npc.frame.Y > frameHeight * 3) + { + npc.frame.Y = 0; + } + } + else + { + if (npc.frame.Y < frameHeight * 4) + { + npc.frame.Y = frameHeight * 4; + } + if (npc.frame.Y > frameHeight * 7) + { + npc.frame.Y = frameHeight * 4; + } + } + } + + public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector = center - Main.screenPosition; + vector -= new Vector2((float)mod.GetTexture("NPCs/AbyssNPCs/DevilFishGlow").Width, (float)(mod.GetTexture("NPCs/AbyssNPCs/DevilFishGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); + Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.Red); + Main.spriteBatch.Draw(mod.GetTexture("NPCs/AbyssNPCs/DevilFishGlow"), vector, + new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); + } + + public override void OnHitPlayer(Player player, int damage, bool crit) + { + player.AddBuff(mod.BuffType("CrushDepth"), 180, true); + if (CalamityWorld.revenge) + { + player.AddBuff(mod.BuffType("MarkedforDeath"), 120); + player.AddBuff(mod.BuffType("Horror"), 120, true); + } + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer1 && spawnInfo.water) + { + return SpawnCondition.CaveJellyfish.Chance * 0.45f; + } + if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water) + { + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } + return 0f; + } + + public override void NPCLoot() + { + if (Main.rand.Next(1000) == 0 && CalamityWorld.revenge) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HalibutCannon")); + } + if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Lumenite")); + } + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells"), Main.rand.Next(1, 3)); + } + if (Main.expertMode && Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthCells")); + } + } + if (NPC.downedGolemBoss) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ChaoticOre"), Main.rand.Next(3, 10)); + } + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 25; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); + } + } + + if(hitCounter <= 5) + { + ++hitCounter; + } + } + } } \ No newline at end of file diff --git a/NPCs/AbyssNPCs/EidolonWyrmHead.cs b/NPCs/AbyssNPCs/EidolonWyrmHead.cs index 6db4e4d557..cac563d868 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmHead.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmHead.cs @@ -51,7 +51,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath6; npc.netAlways = true; npc.rarity = 2; - } + banner = npc.type; + bannerItem = mod.ItemType("EidolonWyrmJuvenileBanner"); + } public override void AI() { @@ -511,13 +513,13 @@ namespace CalamityMod.NPCs.AbyssNPCs if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead")) && !NPC.AnyNPCs(mod.NPCType("Reaper")) && !NPC.AnyNPCs(mod.NPCType("ColossalSquid")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge"))) { - return 0.05f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.3f; + } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead")) && !NPC.AnyNPCs(mod.NPCType("Reaper")) && !NPC.AnyNPCs(mod.NPCType("ColossalSquid")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge"))) { - return 0.1f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs b/NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs index 5471429578..c2298a6aa8 100644 --- a/NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs +++ b/NPCs/AbyssNPCs/EidolonWyrmHeadHuge.cs @@ -509,14 +509,14 @@ namespace CalamityMod.NPCs.AbyssNPCs !NPC.AnyNPCs(mod.NPCType("Reaper")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead")) && !NPC.AnyNPCs(mod.NPCType("ColossalSquid")) && CalamityWorld.downedPolterghast) { - return 0.001f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.006f; + } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge")) && !NPC.AnyNPCs(mod.NPCType("Reaper")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead")) && !NPC.AnyNPCs(mod.NPCType("ColossalSquid")) && CalamityWorld.downedPolterghast) { - return 0.002f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.012f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/Flounder.cs b/NPCs/AbyssNPCs/Flounder.cs index 20cc8f6d1b..480b1f3f59 100644 --- a/NPCs/AbyssNPCs/Flounder.cs +++ b/NPCs/AbyssNPCs/Flounder.cs @@ -36,7 +36,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit50; npc.DeathSound = SoundID.NPCDeath53; npc.knockBackResist = 0.35f; - } + banner = npc.type; + bannerItem = mod.ItemType("FlounderBanner"); + } public override void AI() { diff --git a/NPCs/AbyssNPCs/Frogfish.cs b/NPCs/AbyssNPCs/Frogfish.cs index 1034940f43..072fd0f314 100644 --- a/NPCs/AbyssNPCs/Frogfish.cs +++ b/NPCs/AbyssNPCs/Frogfish.cs @@ -33,7 +33,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.5f; - } + banner = npc.type; + bannerItem = mod.ItemType("FrogfishBanner"); + } public override void AI() { diff --git a/NPCs/AbyssNPCs/GiantSquid.cs b/NPCs/AbyssNPCs/GiantSquid.cs index 935f72c513..693607dca4 100644 --- a/NPCs/AbyssNPCs/GiantSquid.cs +++ b/NPCs/AbyssNPCs/GiantSquid.cs @@ -34,7 +34,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.value = Item.buyPrice(0, 0, 15, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; - } + banner = npc.type; + bannerItem = mod.ItemType("GiantSquidBanner"); + } public override void AI() { @@ -211,12 +213,12 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water) { - return 0.1f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water) { - return 0.2f; - } + return SpawnCondition.CaveJellyfish.Chance * 1.2f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/Gnasher.cs b/NPCs/AbyssNPCs/Gnasher.cs index 0b19b46d59..741ed1f51b 100644 --- a/NPCs/AbyssNPCs/Gnasher.cs +++ b/NPCs/AbyssNPCs/Gnasher.cs @@ -35,7 +35,9 @@ namespace CalamityMod.NPCs.AbyssNPCs { npc.buffImmune[k] = true; } - } + banner = npc.type; + bannerItem = mod.ItemType("GnasherBanner"); + } public override void AI() { diff --git a/NPCs/AbyssNPCs/GulperEelBody.cs b/NPCs/AbyssNPCs/GulperEelBody.cs index 3552cb6c4e..739254fbe6 100644 --- a/NPCs/AbyssNPCs/GulperEelBody.cs +++ b/NPCs/AbyssNPCs/GulperEelBody.cs @@ -43,6 +43,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; + banner = mod.NPCType("GulperEelHead"); + bannerItem = mod.ItemType("GulperEelBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/AbyssNPCs/GulperEelBodyAlt.cs b/NPCs/AbyssNPCs/GulperEelBodyAlt.cs index 3fa8950e61..6da8c9ab11 100644 --- a/NPCs/AbyssNPCs/GulperEelBodyAlt.cs +++ b/NPCs/AbyssNPCs/GulperEelBodyAlt.cs @@ -43,6 +43,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; + banner = mod.NPCType("GulperEelHead"); + bannerItem = mod.ItemType("GulperEelBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/AbyssNPCs/GulperEelHead.cs b/NPCs/AbyssNPCs/GulperEelHead.cs index 310e23d4f4..cf4361609b 100644 --- a/NPCs/AbyssNPCs/GulperEelHead.cs +++ b/NPCs/AbyssNPCs/GulperEelHead.cs @@ -49,6 +49,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit9; npc.DeathSound = SoundID.NPCDeath13; npc.netAlways = true; + banner = npc.type; + bannerItem = mod.ItemType("GulperEelBanner"); } public override void AI() @@ -410,12 +412,12 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("GulperEelHead"))) { - return 0.05f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.3f; + } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("GulperEelHead"))) { - return 0.1f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/GulperEelTail.cs b/NPCs/AbyssNPCs/GulperEelTail.cs index fb6f37256e..c42a1ef6ea 100644 --- a/NPCs/AbyssNPCs/GulperEelTail.cs +++ b/NPCs/AbyssNPCs/GulperEelTail.cs @@ -43,6 +43,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; + banner = mod.NPCType("GulperEelHead"); + bannerItem = mod.ItemType("GulperEelBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/AbyssNPCs/Laserfish.cs b/NPCs/AbyssNPCs/Laserfish.cs index fdc5eccbeb..fd1935b1f4 100644 --- a/NPCs/AbyssNPCs/Laserfish.cs +++ b/NPCs/AbyssNPCs/Laserfish.cs @@ -35,7 +35,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit51; npc.DeathSound = SoundID.NPCDeath26; npc.knockBackResist = 0.65f; - } + banner = npc.type; + bannerItem = mod.ItemType("LaserfishBanner"); + } public override void AI() { @@ -261,12 +263,12 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water) { - return 0.1f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water) { - return 0.2f; - } + return SpawnCondition.CaveJellyfish.Chance * 1.2f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/LuminousCorvina.cs b/NPCs/AbyssNPCs/LuminousCorvina.cs index d6c944666b..6c0ed57dda 100644 --- a/NPCs/AbyssNPCs/LuminousCorvina.cs +++ b/NPCs/AbyssNPCs/LuminousCorvina.cs @@ -36,7 +36,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.85f; - } + banner = npc.type; + bannerItem = mod.ItemType("LuminousCorvinaBanner"); + } public override void AI() { @@ -258,8 +260,8 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water) { - return 0.1f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/MantisShrimp.cs b/NPCs/AbyssNPCs/MantisShrimp.cs index ffcb804964..af77c8e71c 100644 --- a/NPCs/AbyssNPCs/MantisShrimp.cs +++ b/NPCs/AbyssNPCs/MantisShrimp.cs @@ -31,7 +31,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[189] = true; - } + banner = npc.type; + bannerItem = mod.ItemType("MantisShrimpBanner"); + } public override void AI() { diff --git a/NPCs/AbyssNPCs/Mauler.cs b/NPCs/AbyssNPCs/Mauler.cs index cd43a8a746..9259eacc0d 100644 --- a/NPCs/AbyssNPCs/Mauler.cs +++ b/NPCs/AbyssNPCs/Mauler.cs @@ -39,7 +39,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath60; npc.knockBackResist = 0f; npc.rarity = 2; - } + banner = npc.type; + bannerItem = mod.ItemType("MaulerBanner"); + } public override void AI() { diff --git a/NPCs/AbyssNPCs/MirageJelly.cs b/NPCs/AbyssNPCs/MirageJelly.cs index b3f3622c52..7876bc642b 100644 --- a/NPCs/AbyssNPCs/MirageJelly.cs +++ b/NPCs/AbyssNPCs/MirageJelly.cs @@ -38,7 +38,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.value = Item.buyPrice(0, 0, 25, 0); npc.HitSound = SoundID.NPCHit25; npc.DeathSound = SoundID.NPCDeath28; - } + banner = npc.type; + bannerItem = mod.ItemType("MirageJellyBanner"); + } public override void AI() { @@ -154,8 +156,8 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water) { - return 0.1f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/MorayEel.cs b/NPCs/AbyssNPCs/MorayEel.cs index f735235025..4fc44a62b3 100644 --- a/NPCs/AbyssNPCs/MorayEel.cs +++ b/NPCs/AbyssNPCs/MorayEel.cs @@ -35,7 +35,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.75f; - } + banner = npc.type; + bannerItem = mod.ItemType("MorayEelBanner"); + } public override void AI() { @@ -243,7 +245,7 @@ namespace CalamityMod.NPCs.AbyssNPCs } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer1 && spawnInfo.water) { - return 0.2f; + return SpawnCondition.CaveJellyfish.Chance * 1.2f; } return SpawnCondition.OceanMonster.Chance * 0.1f; } diff --git a/NPCs/AbyssNPCs/OarfishBody.cs b/NPCs/AbyssNPCs/OarfishBody.cs index c2ea9654cd..4ba46daf1e 100644 --- a/NPCs/AbyssNPCs/OarfishBody.cs +++ b/NPCs/AbyssNPCs/OarfishBody.cs @@ -43,6 +43,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; + banner = mod.NPCType("OarfishHead"); + bannerItem = mod.ItemType("OarfishBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/AbyssNPCs/OarfishHead.cs b/NPCs/AbyssNPCs/OarfishHead.cs index 30df9bcc31..08453e17f1 100644 --- a/NPCs/AbyssNPCs/OarfishHead.cs +++ b/NPCs/AbyssNPCs/OarfishHead.cs @@ -48,6 +48,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; + banner = npc.type; + bannerItem = mod.ItemType("OarfishBanner"); } public override void AI() @@ -373,12 +375,12 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("OarfishHead"))) { - return 0.05f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.3f; + } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("OarfishHead"))) { - return 0.1f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/OarfishTail.cs b/NPCs/AbyssNPCs/OarfishTail.cs index a59e8f4363..891fd7e9ab 100644 --- a/NPCs/AbyssNPCs/OarfishTail.cs +++ b/NPCs/AbyssNPCs/OarfishTail.cs @@ -43,6 +43,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.netAlways = true; npc.dontCountMe = true; npc.chaseable = false; + banner = mod.NPCType("OarfishHead"); + bannerItem = mod.ItemType("OarfishBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/AbyssNPCs/Reaper.cs b/NPCs/AbyssNPCs/Reaper.cs index 62f66e1f97..528d4d61ac 100644 --- a/NPCs/AbyssNPCs/Reaper.cs +++ b/NPCs/AbyssNPCs/Reaper.cs @@ -45,7 +45,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.DeathSound = SoundID.NPCDeath60; npc.knockBackResist = 0f; npc.rarity = 2; - } + banner = npc.type; + bannerItem = mod.ItemType("ReaperSharkBanner"); + } public override void AI() { @@ -620,13 +622,13 @@ namespace CalamityMod.NPCs.AbyssNPCs if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("Reaper")) && !NPC.AnyNPCs(mod.NPCType("ColossalSquid")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge"))) { - return 0.1f; - } + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer4 && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("Reaper")) && !NPC.AnyNPCs(mod.NPCType("ColossalSquid")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHead")) && !NPC.AnyNPCs(mod.NPCType("EidolonWyrmHeadHuge"))) { - return 0.2f; - } + return SpawnCondition.CaveJellyfish.Chance * 1.2f; + } return 0f; } diff --git a/NPCs/AbyssNPCs/SeaUrchin.cs b/NPCs/AbyssNPCs/SeaUrchin.cs index 0bcc93c121..430beec79f 100644 --- a/NPCs/AbyssNPCs/SeaUrchin.cs +++ b/NPCs/AbyssNPCs/SeaUrchin.cs @@ -32,6 +32,8 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath15; npc.behindTiles = true; + banner = npc.type; + bannerItem = mod.ItemType("SeaUrchinBanner"); } public override void AI() diff --git a/NPCs/AbyssNPCs/ToxicMinnow.cs b/NPCs/AbyssNPCs/ToxicMinnow.cs index 934c787dbc..f3388ed5e4 100644 --- a/NPCs/AbyssNPCs/ToxicMinnow.cs +++ b/NPCs/AbyssNPCs/ToxicMinnow.cs @@ -33,7 +33,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.15f; - } + banner = npc.type; + bannerItem = mod.ItemType("ToxicMinnowBanner"); + } public override void AI() { @@ -216,15 +218,15 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer1 && spawnInfo.water) { - return 0.1f; + return SpawnCondition.CaveJellyfish.Chance * 0.6f; } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water) { - return 0.15f; + return SpawnCondition.CaveJellyfish.Chance * 0.9f; } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer3 && spawnInfo.water) { - return 0.1f; + return SpawnCondition.CaveJellyfish.Chance * 0.6f; } return 0f; } diff --git a/NPCs/AbyssNPCs/Trasher.cs b/NPCs/AbyssNPCs/Trasher.cs index f65b5447d7..78fb80e6dd 100644 --- a/NPCs/AbyssNPCs/Trasher.cs +++ b/NPCs/AbyssNPCs/Trasher.cs @@ -38,7 +38,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath5; npc.knockBackResist = 0f; - } + banner = npc.type; + bannerItem = mod.ItemType("TrasherBanner"); + } public override void AI() { @@ -342,7 +344,11 @@ namespace CalamityMod.NPCs.AbyssNPCs { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DivingHelmet); } - if (Main.rand.Next(10) == 0 && Main.hardMode) + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TrashmanTrashcan")); + } + if (Main.rand.Next(10) == 0 && Main.hardMode) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gatligator); } diff --git a/NPCs/AbyssNPCs/Viperfish.cs b/NPCs/AbyssNPCs/Viperfish.cs index 9e8263211f..8eb2a45b50 100644 --- a/NPCs/AbyssNPCs/Viperfish.cs +++ b/NPCs/AbyssNPCs/Viperfish.cs @@ -12,7 +12,7 @@ namespace CalamityMod.NPCs.AbyssNPCs { public class Viperfish : ModNPC { - public bool hasBeenHit = false; + private bool hasBeenHit = false; public override void SetStaticDefaults() { @@ -35,7 +35,9 @@ namespace CalamityMod.NPCs.AbyssNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.knockBackResist = 0.85f; - } + banner = npc.type; + bannerItem = mod.ItemType("ViperfishBanner"); + } public override void AI() { @@ -249,11 +251,11 @@ namespace CalamityMod.NPCs.AbyssNPCs { if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer1 && spawnInfo.water) { - return 0.1f; + return SpawnCondition.CaveJellyfish.Chance * 0.6f; } if (spawnInfo.player.GetModPlayer(mod).ZoneAbyssLayer2 && spawnInfo.water) { - return 0.2f; + return SpawnCondition.CaveJellyfish.Chance * 1.2f; } return 0f; } diff --git a/NPCs/Astrageldon/Astrageldon.cs b/NPCs/Astrageldon/Astrageldon.cs index 082d88004f..5a0616523f 100644 --- a/NPCs/Astrageldon/Astrageldon.cs +++ b/NPCs/Astrageldon/Astrageldon.cs @@ -28,17 +28,17 @@ namespace CalamityMod.NPCs.Astrageldon npc.width = 400; npc.height = 280; npc.defense = 120; - npc.lifeMax = CalamityWorld.revenge ? 65075 : 51000; + npc.lifeMax = CalamityWorld.revenge ? 81300 : 63750; if (CalamityWorld.death) { - npc.lifeMax = 100875; + npc.lifeMax = 126100; } npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 15, 0, 0); - for (int k = 0; k < npc.buffImmune.Length; k++) - { + for (int k = 0; k < npc.buffImmune.Length; k++) + { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; @@ -65,11 +65,11 @@ namespace CalamityMod.NPCs.Astrageldon if (NPC.downedMoonlord && CalamityWorld.revenge) { npc.lifeMax = 400000; - npc.value = Item.buyPrice(3, 0, 0, 0); + npc.value = Item.buyPrice(0, 35, 0, 0); } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 2800000 : 2400000; + npc.lifeMax = CalamityWorld.death ? 1400000 : 1200000; } } @@ -123,7 +123,7 @@ namespace CalamityMod.NPCs.Astrageldon { laserDamage *= 3; } - if (npc.ai[0] >= 5f || npc.GetGlobalNPC(mod).enraged) //teleporting + if ((npc.ai[0] >= 5f && npc.ai[0] != 7) || npc.GetGlobalNPC(mod).enraged) //teleporting { Vector2 shootFromVector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); float spread = 45f * 0.0174f; @@ -420,7 +420,7 @@ namespace CalamityMod.NPCs.Astrageldon } if (spawnFlag && Main.netMode != 1) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y - 50, mod.NPCType("AstrageldonSlime"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y - 25, mod.NPCType("AstrageldonSlime"), 0, 0f, 0f, 0f, 0f, 255); } npc.localAI[1] = 0f; npc.TargetClosest(true); @@ -491,7 +491,7 @@ namespace CalamityMod.NPCs.Astrageldon } if (spawnFlag && Main.netMode != 1) { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y - 50, mod.NPCType("AstrageldonSlime"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y - 25, mod.NPCType("AstrageldonSlime"), 0, 0f, 0f, 0f, 0f, 255); } npc.chaseable = true; npc.dontTakeDamage = false; @@ -635,6 +635,7 @@ namespace CalamityMod.NPCs.Astrageldon { spriteEffects = SpriteEffects.FlipHorizontally; } + if (npc.ai[0] == 0f) { NPCTexture = Main.npcTexture[npc.type]; @@ -680,6 +681,7 @@ namespace CalamityMod.NPCs.Astrageldon GlowMaskTexture = mod.GetTexture("NPCs/Astrageldon/AstrageldonJumpGlow"); } } + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); Color lightColor = (drawColor != null ? (Color)drawColor : CalamityMod.GetNPCColor(((NPC)npc), npc.Center, false)); int frameCount = Main.npcFrameCount[npc.type]; @@ -687,6 +689,7 @@ namespace CalamityMod.NPCs.Astrageldon float scale = npc.scale; float rotation = npc.rotation; float offsetY = npc.gfxOffY; + Main.spriteBatch.Draw(NPCTexture, new Vector2(npc.position.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)Main.npcTexture[npc.type].Width * scale / 2f + vector11.X * scale, npc.position.Y - Main.screenPosition.Y + (float)npc.height - (float)Main.npcTexture[npc.type].Height * scale / (float)Main.npcFrameCount[npc.type] + 4f + vector11.Y * scale + 0f + offsetY), @@ -697,16 +700,18 @@ namespace CalamityMod.NPCs.Astrageldon scale, spriteEffects, 0f); - if (npc.ai[0] != 1) //draw only if not recharging + + if (npc.ai[0] != 1) //draw only if not recharging { Vector2 center = new Vector2(npc.Center.X, npc.Center.Y - 30f); //30 Vector2 vector = center - Main.screenPosition; vector -= new Vector2((float)GlowMaskTexture.Width, (float)(GlowMaskTexture.Height / Main.npcFrameCount[npc.type])) * 1f / 2f; vector += vector11 * 1f + new Vector2(0f, 0f + 4f + offsetY); Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.Gold); - Main.spriteBatch.Draw(GlowMaskTexture, vector, + + Main.spriteBatch.Draw(GlowMaskTexture, vector, new Microsoft.Xna.Framework.Rectangle?(frame), color, rotation, vector11, 1f, spriteEffects, 0f); - } + } return false; } @@ -719,7 +724,7 @@ namespace CalamityMod.NPCs.Astrageldon { if (CalamityWorld.armageddon) { - for (int i = 0; i < 10; i++) + for (int i = 0; i < 5; i++) { npc.DropBossBags(); } @@ -737,7 +742,11 @@ namespace CalamityMod.NPCs.Astrageldon Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AstralJelly"), Main.rand.Next(9, 13)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(20, 31)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FallenStar, Main.rand.Next(25, 41)); - } + if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AureusMask")); + } + } if (NPC.downedMoonlord) { int amount = Main.rand.Next(25, 41) / 2; diff --git a/NPCs/Astrageldon/AstrageldonSlime.cs b/NPCs/Astrageldon/AstrageldonSlime.cs index e4b8fa34f7..27a4a158c0 100644 --- a/NPCs/Astrageldon/AstrageldonSlime.cs +++ b/NPCs/Astrageldon/AstrageldonSlime.cs @@ -41,6 +41,7 @@ namespace CalamityMod.NPCs.Astrageldon } npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; } @@ -77,7 +78,7 @@ namespace CalamityMod.NPCs.Astrageldon npc.life = 0; return; } - float num1372 = 22f; + float num1372 = 18f; Vector2 vector167 = new Vector2(npc.Center.X + (float)(npc.direction * 20), npc.Center.Y + 6f); float num1373 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector167.X; float num1374 = Main.player[npc.target].Center.Y - vector167.Y; @@ -231,7 +232,7 @@ namespace CalamityMod.NPCs.Astrageldon Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 14); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); - npc.damage = CalamityWorld.death ? 150 : 100; + npc.damage = CalamityWorld.death ? 225 : 150; npc.width = (npc.height = 216); npc.position.X = npc.position.X - (float)(npc.width / 2); npc.position.Y = npc.position.Y - (float)(npc.height / 2); diff --git a/NPCs/AstralBiomeNPCs/Aries.cs b/NPCs/AstralBiomeNPCs/Aries.cs index 7b53559318..7d150a512a 100644 --- a/NPCs/AstralBiomeNPCs/Aries.cs +++ b/NPCs/AstralBiomeNPCs/Aries.cs @@ -34,7 +34,9 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0.5f; npc.value = Item.buyPrice(0, 0, 10, 0); npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); - } + banner = npc.type; + bannerItem = mod.ItemType("AriesBanner"); + } public override void FindFrame(int frameHeight) { @@ -108,6 +110,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); } - } + if (CalamityWorld.downedStarGod && Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StellarKnife")); + } + } } } diff --git a/NPCs/AstralBiomeNPCs/AstralProbe.cs b/NPCs/AstralBiomeNPCs/AstralProbe.cs index 5deccf112c..276aac1675 100644 --- a/NPCs/AstralBiomeNPCs/AstralProbe.cs +++ b/NPCs/AstralBiomeNPCs/AstralProbe.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.noGravity = true; npc.noTileCollide = true; npc.DeathSound = SoundID.NPCDeath14; + banner = npc.type; + bannerItem = mod.ItemType("AstralProbeBanner"); } public override void AI() diff --git a/NPCs/AstralBiomeNPCs/AstralSlime.cs b/NPCs/AstralBiomeNPCs/AstralSlime.cs index c9f1092ded..93a03d065a 100644 --- a/NPCs/AstralBiomeNPCs/AstralSlime.cs +++ b/NPCs/AstralBiomeNPCs/AstralSlime.cs @@ -32,9 +32,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.alpha = 60; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; - animationType = NPCID.BlueSlime; - } + banner = npc.type; + bannerItem = mod.ItemType("AstralSlimeBanner"); + } public override void FindFrame(int frameHeight) { diff --git a/NPCs/AstralBiomeNPCs/AstralachneaGround.cs b/NPCs/AstralBiomeNPCs/AstralachneaGround.cs index c3e6e56ad8..6ff2787553 100644 --- a/NPCs/AstralBiomeNPCs/AstralachneaGround.cs +++ b/NPCs/AstralBiomeNPCs/AstralachneaGround.cs @@ -40,9 +40,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.buffImmune[20] = true; npc.buffImmune[31] = false; npc.timeLeft = NPC.activeTime * 2; - animationType = NPCID.WallCreeper; - } + banner = npc.type; + bannerItem = mod.ItemType("AstralachneaBanner"); + } public override void AI() { diff --git a/NPCs/AstralBiomeNPCs/AstralachneaWall.cs b/NPCs/AstralBiomeNPCs/AstralachneaWall.cs index 3dc8e60db0..29096d32a5 100644 --- a/NPCs/AstralBiomeNPCs/AstralachneaWall.cs +++ b/NPCs/AstralBiomeNPCs/AstralachneaWall.cs @@ -41,9 +41,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.buffImmune[20] = true; npc.buffImmune[31] = false; npc.timeLeft = NPC.activeTime * 2; - animationType = NPCID.BlackRecluseWall; - } + banner = mod.NPCType("AstralachneaGround"); + bannerItem = mod.ItemType("AstralachneaBanner"); + } public override void AI() { diff --git a/NPCs/AstralBiomeNPCs/Atlas.cs b/NPCs/AstralBiomeNPCs/Atlas.cs index c4517f23a0..4d16715beb 100644 --- a/NPCs/AstralBiomeNPCs/Atlas.cs +++ b/NPCs/AstralBiomeNPCs/Atlas.cs @@ -107,9 +107,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0.04f; npc.value = Item.buyPrice(0, 1, 0, 0); npc.aiStyle = -1; - npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AtlasDeath"); - } + banner = npc.type; + bannerItem = mod.ItemType("AtlasBanner"); + } public override void SendExtraAI(BinaryWriter writer) { diff --git a/NPCs/AstralBiomeNPCs/BigSightseer.cs b/NPCs/AstralBiomeNPCs/BigSightseer.cs index 3be2afb4db..53e082bd64 100644 --- a/NPCs/AstralBiomeNPCs/BigSightseer.cs +++ b/NPCs/AstralBiomeNPCs/BigSightseer.cs @@ -36,7 +36,9 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0.7f; npc.value = Item.buyPrice(0, 0, 20, 0); npc.aiStyle = -1; - } + banner = npc.type; + bannerItem = mod.ItemType("BigSightseerBanner"); + } public override void FindFrame(int frameHeight) { diff --git a/NPCs/AstralBiomeNPCs/FusionFeeder.cs b/NPCs/AstralBiomeNPCs/FusionFeeder.cs index a5a97d88fd..e751e09f1c 100644 --- a/NPCs/AstralBiomeNPCs/FusionFeeder.cs +++ b/NPCs/AstralBiomeNPCs/FusionFeeder.cs @@ -37,9 +37,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0.7f; npc.behindTiles = true; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); - animationType = NPCID.SandShark; - } + banner = npc.type; + bannerItem = mod.ItemType("FusionFeederBanner"); + } public override void FindFrame(int frameHeight) { diff --git a/NPCs/AstralBiomeNPCs/Hadarian.cs b/NPCs/AstralBiomeNPCs/Hadarian.cs index 47ab09e637..50987c04b9 100644 --- a/NPCs/AstralBiomeNPCs/Hadarian.cs +++ b/NPCs/AstralBiomeNPCs/Hadarian.cs @@ -35,7 +35,9 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.knockBackResist = 0.65f; npc.value = Item.buyPrice(0, 0, 15, 0); - } + banner = npc.type; + bannerItem = mod.ItemType("HadarianBanner"); + } public override void AI() { @@ -185,6 +187,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust")); } - } + if (CalamityWorld.downedStarGod && Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HadarianMembrane"), Main.rand.Next(1, 3)); + } + } } } diff --git a/NPCs/AstralBiomeNPCs/Hive.cs b/NPCs/AstralBiomeNPCs/Hive.cs index 4e9541ff6e..18c4a5f0d2 100644 --- a/NPCs/AstralBiomeNPCs/Hive.cs +++ b/NPCs/AstralBiomeNPCs/Hive.cs @@ -35,7 +35,9 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 0, 15, 0); - } + banner = npc.type; + bannerItem = mod.ItemType("HiveBanner"); + } public override void AI() { diff --git a/NPCs/AstralBiomeNPCs/Mantis.cs b/NPCs/AstralBiomeNPCs/Mantis.cs index 3bbed21bde..6322ed5496 100644 --- a/NPCs/AstralBiomeNPCs/Mantis.cs +++ b/NPCs/AstralBiomeNPCs/Mantis.cs @@ -34,7 +34,9 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0.1f; npc.value = Item.buyPrice(0, 0, 15, 0); npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); - } + banner = npc.type; + bannerItem = mod.ItemType("MantisBanner"); + } public override void AI() { diff --git a/NPCs/AstralBiomeNPCs/Nova.cs b/NPCs/AstralBiomeNPCs/Nova.cs index f8e40b583b..053a73c12c 100644 --- a/NPCs/AstralBiomeNPCs/Nova.cs +++ b/NPCs/AstralBiomeNPCs/Nova.cs @@ -44,7 +44,9 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0.4f; npc.value = Item.buyPrice(0, 0, 20, 0); npc.aiStyle = -1; - } + banner = npc.type; + bannerItem = mod.ItemType("NovaBanner"); + } public override void FindFrame(int frameHeight) { diff --git a/NPCs/AstralBiomeNPCs/SmallSightseer.cs b/NPCs/AstralBiomeNPCs/SmallSightseer.cs index d24b7092e3..b1388790af 100644 --- a/NPCs/AstralBiomeNPCs/SmallSightseer.cs +++ b/NPCs/AstralBiomeNPCs/SmallSightseer.cs @@ -37,7 +37,9 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.knockBackResist = 0.48f; npc.value = Item.buyPrice(0, 0, 10, 0); npc.aiStyle = -1; - } + banner = npc.type; + bannerItem = mod.ItemType("SmallSightseerBanner"); + } public override void FindFrame(int frameHeight) { diff --git a/NPCs/AstralBiomeNPCs/StellarCulex.cs b/NPCs/AstralBiomeNPCs/StellarCulex.cs index a766759a96..f505fd0bc3 100644 --- a/NPCs/AstralBiomeNPCs/StellarCulex.cs +++ b/NPCs/AstralBiomeNPCs/StellarCulex.cs @@ -37,9 +37,10 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs npc.value = Item.buyPrice(0, 0, 10, 0); npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath"); npc.buffImmune[31] = false; - animationType = NPCID.GiantFlyingFox; - } + banner = npc.type; + bannerItem = mod.ItemType("StellarCulexBanner"); + } public override void FindFrame(int frameHeight) { diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index 39b8c5d182..6369e64496 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.AstrumDeus } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 840000 : 720000; + npc.lifeMax = CalamityWorld.death ? 420000 : 360000; } npc.aiStyle = 6; //new aiType = -1; //new @@ -48,6 +48,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs index ff326c91be..97efdd4e6e 100644 --- a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs @@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.AstrumDeus } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 3000000 : 2500000; + npc.lifeMax = CalamityWorld.death ? 1500000 : 1300000; } npc.aiStyle = 6; //new aiType = -1; //new @@ -44,10 +44,13 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.scale = 1.35f; } + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; npc.alpha = 255; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; @@ -147,8 +150,42 @@ namespace CalamityMod.NPCs.AstrumDeus Color lightColor = new Color(250, 150, Main.DiscoB, npc.alpha); Mod mod = ModLoader.GetMod("CalamityMod"); Texture2D texture = mod.GetTexture("NPCs/AstrumDeus/AstrumDeusBodyAltSpectral"); - CalamityMod.DrawTexture(spriteBatch, (npc.localAI[3] == 1f ? texture : Main.npcTexture[npc.type]), 0, npc, - (AstrumDeusHeadSpectral.colorChange ? lightColor : drawColor)); + SpriteEffects spriteEffects = SpriteEffects.None; + Color newColor = (AstrumDeusHeadSpectral.colorChange ? lightColor : drawColor); + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(newColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = (npc.localAI[3] == 1f ? texture : Main.npcTexture[npc.type]); + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + CalamityMod.DrawTexture(spriteBatch, texture2D3, 0, npc, newColor); return false; } diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index ed4a3ed572..b0d3a766eb 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -45,11 +45,11 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.lifeMax = 19400; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 840000 : 720000; - } - npc.aiStyle = 6; //new + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 420000 : 360000; + } + npc.aiStyle = 6; //new aiType = -1; //new animationType = 10; //new npc.knockBackResist = 0f; @@ -260,7 +260,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.localAI[1] = 1f; Rectangle rectangle12 = new Rectangle((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height); int rectX = 300; - int rectY = (npc.GetGlobalNPC(mod).enraged ? 50 : 100); + int rectY = (npc.GetGlobalNPC(mod).enraged ? 100 : 200); bool flag95 = true; if (npc.position.Y > Main.player[npc.target].position.Y) { diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index 32bbd85526..e08997b2de 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -42,11 +42,11 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.lifeMax = 53750; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 3000000 : 2500000; - } - npc.aiStyle = 6; //new + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 1500000 : 1300000; + } + npc.aiStyle = 6; //new aiType = -1; //new animationType = 10; //new npc.knockBackResist = 0f; @@ -55,6 +55,8 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.scale = 1.35f; } + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; npc.boss = true; npc.value = Item.buyPrice(0, 20, 0, 0); npc.alpha = 255; @@ -382,16 +384,50 @@ namespace CalamityMod.NPCs.AstrumDeus return false; } - public override Color? GetAlpha(Color drawColor) - { - if (colorChange) - { - return new Color(250, 150, Main.DiscoB, npc.alpha); - } - return null; - } + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + Color lightColor = new Color(250, 150, Main.DiscoB, npc.alpha); + Color newColor = (colorChange ? lightColor : drawColor); + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(newColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } - public override bool CanHitPlayer(Player target, ref int cooldownSlot) + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { if (colorChange) { diff --git a/NPCs/AstrumDeus/AstrumDeusProbe3.cs b/NPCs/AstrumDeus/AstrumDeusProbe3.cs index a14b2b8c3f..e8602be762 100644 --- a/NPCs/AstrumDeus/AstrumDeusProbe3.cs +++ b/NPCs/AstrumDeus/AstrumDeusProbe3.cs @@ -35,6 +35,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.value = Item.buyPrice(0, 0, 0, 0); npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.buffImmune[24] = true; @@ -132,10 +133,10 @@ namespace CalamityMod.NPCs.AstrumDeus npc.localAI[0] = 0f; if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) { - int num8 = 40; + int num8 = 37; if (Main.expertMode) { - num8 = 26; + num8 = 29; } int num9 = 84; Projectile.NewProjectile(vector.X, vector.Y, num4, num5, num9, num8, 0f, Main.myPlayer, 0f, 0f); diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index 21cba26cd7..b8808b579f 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -29,11 +29,11 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.lifeMax = 19400; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 840000 : 720000; - } - npc.aiStyle = 6; //new + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 420000 : 360000; + } + npc.aiStyle = 6; //new aiType = -1; //new animationType = 10; //new npc.knockBackResist = 0f; @@ -46,6 +46,7 @@ namespace CalamityMod.NPCs.AstrumDeus npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; diff --git a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs index bbaa718aba..667379374a 100644 --- a/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusTailSpectral.cs @@ -29,11 +29,11 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.lifeMax = 53750; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 3000000 : 2500000; - } - npc.aiStyle = 6; //new + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 1500000 : 1300000; + } + npc.aiStyle = 6; //new aiType = -1; //new animationType = 10; //new npc.knockBackResist = 0f; @@ -42,10 +42,13 @@ namespace CalamityMod.NPCs.AstrumDeus { npc.scale = 1.35f; } + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; npc.alpha = 255; npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; @@ -97,16 +100,50 @@ namespace CalamityMod.NPCs.AstrumDeus } } - public override Color? GetAlpha(Color drawColor) - { - if (AstrumDeusHeadSpectral.colorChange) - { - return new Color(250, 150, Main.DiscoB, npc.alpha); - } - return null; - } + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + Color lightColor = new Color(250, 150, Main.DiscoB, npc.alpha); + Color newColor = (AstrumDeusHeadSpectral.colorChange ? lightColor : drawColor); + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(newColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } - public override bool CanHitPlayer(Player target, ref int cooldownSlot) + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { if (AstrumDeusHeadSpectral.colorChange) { diff --git a/NPCs/BrimstoneWaifu/Brimling.cs b/NPCs/BrimstoneWaifu/Brimling.cs index 80d3b0fcb1..26e2b75c82 100644 --- a/NPCs/BrimstoneWaifu/Brimling.cs +++ b/NPCs/BrimstoneWaifu/Brimling.cs @@ -54,6 +54,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu } npc.noGravity = true; npc.noTileCollide = false; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit23; npc.DeathSound = SoundID.NPCDeath39; if (CalamityWorld.downedProvidence) @@ -62,7 +63,7 @@ namespace CalamityMod.NPCs.BrimstoneWaifu } if (CalamityWorld.bossRushActive) { - npc.lifeMax = 200000; + npc.lifeMax = 100000; } } diff --git a/NPCs/BrimstoneWaifu/BrimstoneElemental.cs b/NPCs/BrimstoneWaifu/BrimstoneElemental.cs index 769b82976c..0f12d75a9e 100644 --- a/NPCs/BrimstoneWaifu/BrimstoneElemental.cs +++ b/NPCs/BrimstoneWaifu/BrimstoneElemental.cs @@ -13,14 +13,12 @@ namespace CalamityMod.NPCs.BrimstoneWaifu [AutoloadBossHead] public class BrimstoneElemental : ModNPC { - private int dustTimer = 90; - public override void SetStaticDefaults() { DisplayName.SetDefault("Brimstone Elemental"); Main.npcFrameCount[npc.type] = 12; } - + public override void SetDefaults() { npc.npcSlots = 64f; @@ -29,44 +27,44 @@ namespace CalamityMod.NPCs.BrimstoneWaifu npc.height = 150; npc.defense = 20; npc.lifeMax = CalamityWorld.revenge ? 35708 : 26000; - if (CalamityWorld.death) - { - npc.lifeMax = 54050; - } - npc.knockBackResist = 0f; + if (CalamityWorld.death) + { + npc.lifeMax = 54050; + } + npc.knockBackResist = 0f; npc.aiStyle = -1; //new - aiType = -1; //new + aiType = -1; //new npc.value = Item.buyPrice(0, 12, 0, 0); for (int k = 0; k < npc.buffImmune.Length; k++) { - npc.buffImmune[k] = true; - npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } + npc.buffImmune[k] = true; + npc.buffImmune[BuffID.Ichor] = false; + npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[BuffID.Daybreak] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("HolyLight")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Plague")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; npc.HitSound = SoundID.NPCHit23; npc.DeathSound = SoundID.NPCDeath39; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/LeftAlone"); - else - music = MusicID.Boss4; - bossBag = mod.ItemType("BrimstoneWaifuBag"); + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/LeftAlone"); + else + music = MusicID.Boss4; + bossBag = mod.ItemType("BrimstoneWaifuBag"); if (CalamityWorld.downedProvidence) { npc.damage = 210; @@ -74,16 +72,16 @@ namespace CalamityMod.NPCs.BrimstoneWaifu npc.lifeMax = 300000; npc.value = Item.buyPrice(0, 35, 0, 0); } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 4500000 : 4000000; - } - } - + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 2300000 : 2000000; + } + } + public override void AI() { - CalamityGlobalNPC.brimstoneElemental = npc.whoAmI; - Player player = Main.player[npc.target]; + CalamityGlobalNPC.brimstoneElemental = npc.whoAmI; + Player player = Main.player[npc.target]; CalamityPlayer modPlayer = player.GetModPlayer(mod); bool brimTeleport = (double)npc.life <= (double)npc.lifeMax * 0.2; bool provy = (CalamityWorld.downedProvidence && !CalamityWorld.bossRushActive); @@ -99,13 +97,13 @@ namespace CalamityMod.NPCs.BrimstoneWaifu int dustAmt = (npc.ai[0] == 2f) ? 2 : 1; int size = (npc.ai[0] == 2f) ? 50 : 35; float speed = expertMode ? 5f : 4.5f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - speed = 5.5f; - } - for (int num1011 = 0; num1011 < 2; num1011++) + if (CalamityWorld.death || CalamityWorld.bossRushActive) { - if (Main.rand.Next(3) < dustAmt) + speed = 5.5f; + } + for (int num1011 = 0; num1011 < 2; num1011++) + { + if (Main.rand.Next(3) < dustAmt) { int dust = Dust.NewDust(npc.Center - new Vector2((float)size), size * 2, size * 2, 235, npc.velocity.X * 0.5f, npc.velocity.Y * 0.5f, 90, default(Color), 1.5f); Main.dust[dust].noGravity = true; @@ -124,10 +122,10 @@ namespace CalamityMod.NPCs.BrimstoneWaifu { npc.timeLeft = 1800; } - if (npc.GetGlobalNPC(mod).enraged) - { - speed = 11f; - } + if (npc.GetGlobalNPC(mod).enraged) + { + speed = 11f; + } else if (!calamity) { speed = 7f; @@ -152,37 +150,17 @@ namespace CalamityMod.NPCs.BrimstoneWaifu npc.velocity.Y = yDistance * totalDistance; } } - if (Main.netMode != 1) - { - dustTimer--; - if (dustTimer <= 0 && npc.alpha <= 0) - { - int damage = expertMode ? 20 : 29; - Vector2 position = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - int projectile = Projectile.NewProjectile((int)position.X, (int)position.Y, 0f, 0f, mod.ProjectileType("BrimDust"), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); //changed - Main.projectile[projectile].timeLeft = 90; - dustTimer = 90; - } - } - if (npc.ai[0] == 0f) + if (npc.ai[0] == 0f) { npc.defense = 20; npc.chaseable = true; if (Main.netMode != 1) { - npc.localAI[1] += 1f; - if (npc.justHit) + npc.localAI[1] += 1f; + if (npc.justHit) { npc.localAI[1] += 1f; } - if (brimTeleport) - { - npc.localAI[1] += 1f; - } - if (!calamity) - { - npc.localAI[1] += 2f; - } if (npc.localAI[1] >= (float)(200 + Main.rand.Next(100))) { npc.localAI[1] = 0f; @@ -214,70 +192,70 @@ namespace CalamityMod.NPCs.BrimstoneWaifu } } } - else if (npc.ai[0] == 1f) + else if (npc.ai[0] == 1f) { - npc.damage = 0; - npc.dontTakeDamage = true; - npc.defense = 20; - npc.chaseable = false; + npc.damage = 0; + npc.dontTakeDamage = true; + npc.defense = 20; + npc.chaseable = false; npc.alpha += (brimTeleport ? 5 : 4); if (npc.alpha >= 255) { - if (Main.netMode != 1 && NPC.CountNPCS(mod.NPCType("Brimling")) < 2 && revenge) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Brimling"), 0, 0f, 0f, 0f, 0f, 255); - } - npc.alpha = 255; + if (Main.netMode != 1 && NPC.CountNPCS(mod.NPCType("Brimling")) < 2 && revenge) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Brimling"), 0, 0f, 0f, 0f, 0f, 255); + } + npc.alpha = 255; npc.position.X = npc.ai[1] * 16f - (float)(npc.width / 2); npc.position.Y = npc.ai[2] * 16f - (float)(npc.height / 2); npc.ai[0] = 2f; - npc.netUpdate = true; - return; + npc.netUpdate = true; + return; } } - else if (npc.ai[0] == 2f) + else if (npc.ai[0] == 2f) { npc.alpha -= (brimTeleport ? 5 : 4); if (npc.alpha <= 0) { - npc.damage = expertMode ? 96 : 60; - npc.dontTakeDamage = false; - npc.defense = 20; - npc.chaseable = true; - npc.ai[3] += 1f; + npc.damage = expertMode ? 96 : 60; + npc.dontTakeDamage = false; + npc.defense = 20; + npc.chaseable = true; + npc.ai[3] += 1f; npc.alpha = 0; - if (npc.ai[3] >= 2f) + if (npc.ai[3] >= 2f) { npc.ai[0] = 3f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; - } + } else { npc.ai[0] = 0f; } - npc.netUpdate = true; - return; + npc.netUpdate = true; + return; } } - else if (npc.ai[0] == 3f) + else if (npc.ai[0] == 3f) { - npc.defense = 20; - npc.dontTakeDamage = false; - npc.chaseable = true; + npc.defense = 20; + npc.dontTakeDamage = false; + npc.chaseable = true; npc.rotation = npc.velocity.X * 0.04f; npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); Vector2 shootFromVectorX = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); npc.ai[1] += 1f; bool shootProjectile = false; - if (npc.GetGlobalNPC(mod).enraged) - { - if (npc.ai[1] % 10f == 9f) - { - shootProjectile = true; - } - } + if (npc.GetGlobalNPC(mod).enraged) + { + if (npc.ai[1] % 10f == 9f) + { + shootProjectile = true; + } + } else if (CalamityWorld.bossRushActive) { if (npc.ai[1] % 15f == 14f) @@ -308,10 +286,10 @@ namespace CalamityMod.NPCs.BrimstoneWaifu if (Main.netMode != 1) { float projectileSpeed = 6f; //changed from 10 - if (npc.GetGlobalNPC(mod).enraged) - { - projectileSpeed += 4f; - } + if (npc.GetGlobalNPC(mod).enraged) + { + projectileSpeed += 4f; + } if (revenge) { projectileSpeed += 1f; @@ -340,55 +318,55 @@ namespace CalamityMod.NPCs.BrimstoneWaifu Main.projectile[projectileShot].timeLeft = 240; } } - if (npc.position.Y > player.position.Y - 150f) //200 - { - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.98f; - } - npc.velocity.Y = npc.velocity.Y - 0.1f; - if (npc.velocity.Y > 2f) - { - npc.velocity.Y = 2f; - } - } - else if (npc.position.Y < player.position.Y - 400f) //500 - { - if (npc.velocity.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.98f; - } - npc.velocity.Y = npc.velocity.Y + 0.1f; - if (npc.velocity.Y < -2f) - { - npc.velocity.Y = -2f; - } - } - if (npc.position.X + (float)(npc.width / 2) > player.position.X + (float)(player.width / 2) + 100f) - { - if (npc.velocity.X > 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - npc.velocity.X = npc.velocity.X - 0.1f; - if (npc.velocity.X > 8f) - { - npc.velocity.X = 8f; - } - } - if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)(player.width / 2) - 100f) - { - if (npc.velocity.X < 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - npc.velocity.X = npc.velocity.X + 0.1f; - if (npc.velocity.X < -8f) - { - npc.velocity.X = -8f; - } - } - if (npc.ai[1] > 300f) + if (npc.position.Y > player.position.Y - 150f) //200 + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.98f; + } + npc.velocity.Y = npc.velocity.Y - 0.1f; + if (npc.velocity.Y > 2f) + { + npc.velocity.Y = 2f; + } + } + else if (npc.position.Y < player.position.Y - 400f) //500 + { + if (npc.velocity.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.98f; + } + npc.velocity.Y = npc.velocity.Y + 0.1f; + if (npc.velocity.Y < -2f) + { + npc.velocity.Y = -2f; + } + } + if (npc.position.X + (float)(npc.width / 2) > player.position.X + (float)(player.width / 2) + 150f) //100 + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X * 0.985f; + } + npc.velocity.X = npc.velocity.X - 0.1f; + if (npc.velocity.X > 8f) + { + npc.velocity.X = 8f; + } + } + if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)(player.width / 2) - 150f) //100 + { + if (npc.velocity.X < 0f) + { + npc.velocity.X = npc.velocity.X * 0.985f; + } + npc.velocity.X = npc.velocity.X + 0.1f; + if (npc.velocity.X < -8f) + { + npc.velocity.X = -8f; + } + } + if (npc.ai[1] > 300f) { npc.ai[0] = 4f; npc.ai[1] = 0f; @@ -401,19 +379,19 @@ namespace CalamityMod.NPCs.BrimstoneWaifu else if (npc.ai[0] == 4f) { npc.defense = 99999; - npc.dontTakeDamage = false; - npc.chaseable = false; + npc.dontTakeDamage = false; + npc.chaseable = false; if (Main.netMode != 1) { npc.localAI[0] += (float)Main.rand.Next(4); - if (npc.GetGlobalNPC(mod).enraged) - { - npc.localAI[0] += 3f; - } - if (CalamityWorld.death || !calamity) - { - npc.localAI[0] += 2f; - } + if (npc.GetGlobalNPC(mod).enraged) + { + npc.localAI[0] += 3f; + } + if (CalamityWorld.death || !calamity) + { + npc.localAI[0] += 2f; + } if (npc.localAI[0] >= 140f) { npc.localAI[0] = 0f; @@ -447,19 +425,19 @@ namespace CalamityMod.NPCs.BrimstoneWaifu Main.projectile[projectile].tileCollide = false; } float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y)- spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int damage = expertMode ? 22 : 30; - int i; - for (i = 0; i < 6; i++ ) - { - offsetAngle = (startAngle + deltaAngle * ( i + i * i ) / 2f ) + 32f * i; - int projectile = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)( Math.Sin(offsetAngle) * 6f ), (float)( Math.Cos(offsetAngle) * 6f ), mod.ProjectileType("BrimstoneBarrage"), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); - int projectile2 = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)( -Math.Sin(offsetAngle) * 6f ), (float)( -Math.Cos(offsetAngle) * 6f ), mod.ProjectileType("BrimstoneBarrage"), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); - } + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int damage = expertMode ? 22 : 30; + int i; + for (i = 0; i < 6; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + int projectile = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 6f), (float)(Math.Cos(offsetAngle) * 6f), mod.ProjectileType("BrimstoneBarrage"), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); + int projectile2 = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 6f), (float)(-Math.Cos(offsetAngle) * 6f), mod.ProjectileType("BrimstoneBarrage"), damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f); + } } - } + } npc.TargetClosest(true); npc.ai[1] += 1f; npc.velocity *= 0.95f; @@ -477,14 +455,14 @@ namespace CalamityMod.NPCs.BrimstoneWaifu } } - public override void OnHitPlayer(Player player, int damage, bool crit) + public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) { player.AddBuff(mod.BuffType("Horror"), 300, true); } } - + public override void FindFrame(int frameHeight) //9 total frames { npc.frameCounter += 1.0; @@ -533,63 +511,62 @@ namespace CalamityMod.NPCs.BrimstoneWaifu } } } - + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.GreaterHealingPotion; } - + public override void NPCLoot() { - if (CalamityWorld.downedProvidence) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone"), Main.rand.Next(20, 31)); - } if (Main.rand.Next(10) == 0) { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("RoseStone"), 1, true); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrimstoneElementalTrophy")); } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrimstoneElementalTrophy")); - } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } else { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SoulofFright, Main.rand.Next(20, 41)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(2, 4)); - int choice = Main.rand.Next(3); - if (choice == 0) + if (CalamityWorld.downedProvidence) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Abaddon")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone"), Main.rand.Next(20, 31)); } - else if (choice == 1) + if (Main.rand.Next(10) == 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Brimlance")); + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("RoseStone"), 1, true); } - else + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SoulofFright, Main.rand.Next(20, 41)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(4, 9)); + switch (Main.rand.Next(3)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeethingDischarge")); + case 0: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Abaddon")); + break; + case 1: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Brimlance")); + break; + case 2: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeethingDischarge")); + break; } } } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) diff --git a/NPCs/Bumblefuck/Bumblefuck.cs b/NPCs/Bumblefuck/Bumblefuck.cs index a6885d2792..6200fab8ee 100644 --- a/NPCs/Bumblefuck/Bumblefuck.cs +++ b/NPCs/Bumblefuck/Bumblefuck.cs @@ -18,65 +18,65 @@ namespace CalamityMod.NPCs.Bumblefuck DisplayName.SetDefault("Bumblebirb"); Main.npcFrameCount[npc.type] = 10; } - + public override void SetDefaults() { npc.npcSlots = 32f; npc.aiStyle = -1; aiType = -1; - npc.damage = 200; + npc.damage = 160; npc.width = 80; //324 npc.height = 80; //216 - npc.defense = 60; - npc.lifeMax = CalamityWorld.revenge ? 500000 : 440000; - if (CalamityWorld.death) - { - npc.lifeMax = 625000; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 1900000 : 1700000; - } - npc.knockBackResist = 0f; + npc.defense = 40; + npc.lifeMax = CalamityWorld.revenge ? 252500 : 227500; + if (CalamityWorld.death) + { + npc.lifeMax = 302500; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 1000000 : 900000; + } + npc.knockBackResist = 0f; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("ExoFreeze")] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } - npc.boss = true; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Murderswarm"); - else - music = MusicID.Boss4; - npc.lavaImmune = true; + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[mod.BuffType("ExoFreeze")] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } + npc.boss = true; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Murderswarm"); + else + music = MusicID.Boss4; + npc.lavaImmune = true; npc.noGravity = true; npc.value = Item.buyPrice(0, 30, 0, 0); npc.HitSound = SoundID.NPCHit51; npc.DeathSound = SoundID.NPCDeath46; - bossBag = mod.ItemType("BumblebirbBag"); - } - + bossBag = mod.ItemType("BumblebirbBag"); + } + public override void AI() { Player player = Main.player[npc.target]; bool revenge = CalamityWorld.revenge; Vector2 vector = npc.Center; - int num1305 = revenge ? 10 : 5; - if (CalamityWorld.death) - { - num1305 = 20; - } + int num1305 = revenge ? 6 : 4; + if (CalamityWorld.death) + { + num1305 = 8; + } npc.noTileCollide = false; npc.noGravity = true; npc.damage = npc.defDamage; @@ -88,24 +88,24 @@ namespace CalamityMod.NPCs.Bumblefuck } } Vector2 vector205 = player.Center - npc.Center; - if (npc.ai[0] > 1f && vector205.Length() > 5200f) - { - npc.ai[0] = 1f; - } - if (npc.ai[0] == 0f) + if (npc.ai[0] > 1f && vector205.Length() > 5200f) + { + npc.ai[0] = 1f; + } + if (npc.ai[0] == 0f) { npc.TargetClosest(true); - if (npc.Center.X < player.Center.X - 2f) + if (npc.Center.X < player.Center.X - 2f) { npc.direction = 1; } - if (npc.Center.X > player.Center.X + 2f) + if (npc.Center.X > player.Center.X + 2f) { npc.direction = -1; } npc.spriteDirection = npc.direction; npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.05f) / 10f; - if (npc.collideX) + if (npc.collideX) { npc.velocity.X = npc.velocity.X * (-npc.oldVelocity.X * 0.5f); if (npc.velocity.X > 26f) //4 @@ -117,7 +117,7 @@ namespace CalamityMod.NPCs.Bumblefuck npc.velocity.X = -26f; //4 } } - if (npc.collideY) + if (npc.collideY) { npc.velocity.Y = npc.velocity.Y * (-npc.oldVelocity.Y * 0.5f); if (npc.velocity.Y > 26f) //4 @@ -137,71 +137,71 @@ namespace CalamityMod.NPCs.Bumblefuck npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; - } - else if (value51.Length() > 80f) + } + else if (value51.Length() > 80f) { float scaleFactor15 = 12f; //6 float num1306 = 30f; value51.Normalize(); value51 *= scaleFactor15; npc.velocity = (npc.velocity * (num1306 - 1f) + value51) / num1306; - } + } else if (npc.velocity.Length() > 18f) //8 { npc.velocity *= 0.95f; - } + } else if (npc.velocity.Length() < 9f) //4 { npc.velocity *= 1.05f; } npc.ai[1] += 1f; - if (npc.justHit) + if (npc.justHit) { npc.ai[1] += (float)Main.rand.Next(10, 30); } - if (npc.ai[1] >= 180f && Main.netMode != 1) + if (npc.ai[1] >= 180f && Main.netMode != 1) { npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; npc.netUpdate = true; - while (npc.ai[0] == 0f) - { - int damage = Main.expertMode ? 65 : 80; //260 160 - int num1307 = Main.rand.Next(6); - if (num1307 == 0 && Collision.CanHit(npc.Center, 1, 1, player.Center, 1, 1)) - { - npc.ai[0] = 2f; - } - else if (num1307 == 1) - { - npc.ai[0] = 3f; - } - else if (num1307 >= 2 && NPC.CountNPCS(mod.NPCType("Bumblefuck2")) < num1305) - { - npc.ai[0] = 4f; //summon more birbs - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 102); - for (int num186 = 0; num186 < 6; num186++) - { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)Main.rand.Next(-10, 10), (float)Main.rand.Next(-5, -2), mod.ProjectileType("RedLightningFeather"), damage, 0f, Main.myPlayer, 0f, 0f); - } - } - } + while (npc.ai[0] == 0f) + { + int damage = Main.expertMode ? 45 : 60; //180 120 + int num1307 = Main.rand.Next(3); + if (num1307 == 0 && Collision.CanHit(npc.Center, 1, 1, player.Center, 1, 1)) + { + npc.ai[0] = 2f; + } + else if (num1307 == 1) + { + npc.ai[0] = 3f; + } + else if (NPC.CountNPCS(mod.NPCType("Bumblefuck2")) < num1305) + { + npc.ai[0] = 4f; //summon more birbs + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 102); + for (int num186 = 0; num186 < 6; num186++) + { + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)Main.rand.Next(-10, 10), (float)Main.rand.Next(-5, -2), mod.ProjectileType("RedLightningFeather"), damage, 0f, Main.myPlayer, 0f, 0f); + } + } + } return; } } - else + else { if (npc.ai[0] == 1f) //move closer and spawn birbs { npc.collideX = false; npc.collideY = false; npc.noTileCollide = true; - if (npc.target < 0 || !player.active || player.dead) + if (npc.target < 0 || !player.active || player.dead) { npc.TargetClosest(true); } - if (npc.velocity.X < 0f) + if (npc.velocity.X < 0f) { npc.direction = -1; } @@ -214,7 +214,7 @@ namespace CalamityMod.NPCs.Bumblefuck Vector2 value52 = player.Center - npc.Center; if (value52.Length() < 500f && !Collision.SolidCollision(npc.position, npc.width, npc.height)) //500 { - npc.ai[0] = 0f; + npc.ai[0] = 0f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; @@ -226,7 +226,7 @@ namespace CalamityMod.NPCs.Bumblefuck npc.velocity = (npc.velocity * (num1308 - 1f) + value52) / num1308; return; } - if (npc.ai[0] == 2f) + if (npc.ai[0] == 2f) { npc.damage = (int)((double)npc.defDamage * 0.9); if (npc.target < 0 || !player.active || player.dead) @@ -240,14 +240,14 @@ namespace CalamityMod.NPCs.Bumblefuck if (player.Center.X - 10f < npc.Center.X) { npc.direction = -1; - } + } else if (player.Center.X + 10f > npc.Center.X) { npc.direction = 1; } npc.spriteDirection = npc.direction; npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.05f) / 5f; - if (npc.collideX) + if (npc.collideX) { npc.velocity.X = npc.velocity.X * (-npc.oldVelocity.X * 0.5f); if (npc.velocity.X > 27f) //4 @@ -259,7 +259,7 @@ namespace CalamityMod.NPCs.Bumblefuck npc.velocity.X = -27f; //4 } } - if (npc.collideY) + if (npc.collideY) { npc.velocity.Y = npc.velocity.Y * (-npc.oldVelocity.Y * 0.5f); if (npc.velocity.Y > 27f) //4 @@ -274,7 +274,7 @@ namespace CalamityMod.NPCs.Bumblefuck Vector2 value53 = player.Center - npc.Center; value53.Y -= 20f; npc.ai[2] += 0.0222222228f; - if (Main.expertMode) + if (Main.expertMode) { npc.ai[2] += 0.0166666675f; } @@ -284,24 +284,24 @@ namespace CalamityMod.NPCs.Bumblefuck value53 *= scaleFactor17; npc.velocity = (npc.velocity * (num1309 - 1f) + value53) / num1309; npc.ai[1] += 1f; - if (npc.ai[1] > 180f || !Collision.CanHit(npc.Center, 1, 1, player.Center, 1, 1)) + if (npc.ai[1] > 180f || !Collision.CanHit(npc.Center, 1, 1, player.Center, 1, 1)) { - npc.ai[0] = 0f; + npc.ai[0] = 0f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; return; } } - else + else { - if (npc.ai[0] == 3f) + if (npc.ai[0] == 3f) { npc.noTileCollide = true; - if (npc.velocity.X < 0f) + if (npc.velocity.X < 0f) { npc.direction = -1; - } + } else { npc.direction = 1; @@ -310,15 +310,15 @@ namespace CalamityMod.NPCs.Bumblefuck npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.035f) / 5f; Vector2 value54 = player.Center - npc.Center; value54.Y -= 12f; - if (npc.Center.X > player.Center.X) + if (npc.Center.X > player.Center.X) { value54.X += 400f; - } + } else { value54.X -= 400f; } - if (Math.Abs(npc.Center.X - player.Center.X) > 350f && Math.Abs(npc.Center.Y - player.Center.Y) < 20f) + if (Math.Abs(npc.Center.X - player.Center.X) > 350f && Math.Abs(npc.Center.Y - player.Center.Y) < 20f) { npc.ai[0] = 3.1f; npc.ai[1] = 0f; @@ -331,7 +331,7 @@ namespace CalamityMod.NPCs.Bumblefuck npc.velocity = (npc.velocity * (num1310 - 1f) + value54) / num1310; return; } - if (npc.ai[0] == 3.1f) + if (npc.ai[0] == 3.1f) { npc.noTileCollide = true; npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.035f) / 5f; @@ -342,23 +342,23 @@ namespace CalamityMod.NPCs.Bumblefuck vector206.Normalize(); vector206 *= scaleFactor19; npc.velocity = (npc.velocity * (num1311 - 1f) + vector206) / num1311; - if (npc.velocity.X < 0f) + if (npc.velocity.X < 0f) { npc.direction = -1; - } + } else { npc.direction = 1; } npc.spriteDirection = npc.direction; npc.ai[1] += 1f; - if (npc.ai[1] > 10f) + if (npc.ai[1] > 10f) { npc.velocity = vector206; - if (npc.velocity.X < 0f) + if (npc.velocity.X < 0f) { npc.direction = -1; - } + } else { npc.direction = 1; @@ -369,25 +369,25 @@ namespace CalamityMod.NPCs.Bumblefuck return; } } - else + else { - if (npc.ai[0] == 3.2f) + if (npc.ai[0] == 3.2f) { - npc.damage = (int)((double)npc.defDamage * 1.75); + npc.damage = (int)((double)npc.defDamage * 1.5); npc.collideX = false; npc.collideY = false; npc.noTileCollide = true; npc.ai[2] += 0.0333333351f; npc.velocity.X = (18f + npc.ai[2]) * npc.ai[1]; //16 - if ((npc.ai[1] > 0f && npc.Center.X > player.Center.X + 400f) || (npc.ai[1] < 0f && npc.Center.X < player.Center.X - 400f)) + if ((npc.ai[1] > 0f && npc.Center.X > player.Center.X + 400f) || (npc.ai[1] < 0f && npc.Center.X < player.Center.X - 400f)) { - if (!Collision.SolidCollision(npc.position, npc.width, npc.height)) + if (!Collision.SolidCollision(npc.position, npc.width, npc.height)) { - npc.ai[0] = 0f; + npc.ai[0] = 0f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; - } + } else if (Math.Abs(npc.Center.X - player.Center.X) > 800f) //800 { npc.ai[0] = 1f; @@ -399,137 +399,137 @@ namespace CalamityMod.NPCs.Bumblefuck npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.035f) / 5f; return; } - if (npc.ai[0] == 4f) - { - npc.ai[0] = 0f; - npc.TargetClosest(true); - if (Main.netMode != 1) - { - npc.ai[1] = -1f; - npc.ai[2] = -1f; - for (int num1312 = 0; num1312 < 1000; num1312++) - { - int num1313 = (int)player.Center.X / 16; - int num1314 = (int)player.Center.Y / 16; - int num1315 = 30 + num1312 / 50; - int num1316 = 20 + num1312 / 75; - num1313 += Main.rand.Next(-num1315, num1315 + 1); - num1314 += Main.rand.Next(-num1316, num1316 + 1); - if (!WorldGen.SolidTile(num1313, num1314)) - { - while (!WorldGen.SolidTile(num1313, num1314) && (double)num1314 < Main.worldSurface) - { - num1314++; - } - if ((new Vector2((float)(num1313 * 16 + 8), (float)(num1314 * 16 + 8)) - player.Center).Length() < 5600f) //600 - { - npc.ai[0] = 4.1f; - npc.ai[1] = (float)num1313; - npc.ai[2] = (float)num1314; - break; - } - } - } - } - npc.netUpdate = true; - return; - } - if (npc.ai[0] == 4.1f) - { - if (npc.velocity.X < -2f) - { - npc.direction = -1; - } - else if (npc.velocity.X > 2f) - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.05f) / 10f; - npc.noTileCollide = true; - int num1317 = (int)npc.ai[1]; - int num1318 = (int)npc.ai[2]; - float x2 = (float)(num1317 * 16 + 8); - float y2 = (float)(num1318 * 16 - 20); - Vector2 vector207 = new Vector2(x2, y2); - vector207 -= npc.Center; - float num1319 = 6f + vector207.Length() / 150f; - if (num1319 > 10f) - { - num1319 = 10f; - } - float num1320 = 10f; //10 - if (vector207.Length() < 100f) //10 - { - npc.ai[0] = 4.2f; - } - vector207.Normalize(); - vector207 *= num1319; - npc.velocity = (npc.velocity * (num1320 - 1f) + vector207) / num1320; - return; - } - if (npc.ai[0] == 4.2f) - { - npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.05f) / 10f; - npc.noTileCollide = true; - int num1321 = (int)npc.ai[1]; - int num1322 = (int)npc.ai[2]; - float x3 = (float)(num1321 * 16 + 8); - float y3 = (float)(num1322 * 16 - 20); - Vector2 vector208 = new Vector2(x3, y3); - vector208 -= npc.Center; - float num1323 = 40f; //4 - float num1324 = 2f; //2 - if (Main.netMode != 1 && vector208.Length() < 40f) //4 - { - int num1325 = 10; - if (Main.expertMode) - { - num1325 = (int)((double)num1325 * 0.75); - } - npc.ai[3] += 1f; - if (npc.ai[3] == (float)num1325) - { - NPC.NewNPC(num1321 * 16 + 8, num1322 * 16, mod.NPCType("Bumblefuck2"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - } - else if (npc.ai[3] == (float)(num1325 * 2)) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - if (NPC.CountNPCS(mod.NPCType("Bumblefuck2")) < num1305 && Main.rand.Next(5) != 0) - { - npc.ai[0] = 4f; - } - else if (Collision.SolidCollision(npc.position, npc.width, npc.height)) - { - npc.ai[0] = 1f; - } - } - } - if (vector208.Length() > num1323) - { - vector208.Normalize(); - vector208 *= num1323; - } - npc.velocity = (npc.velocity * (num1324 - 1f) + vector208) / num1324; - return; - } - } + if (npc.ai[0] == 4f) + { + npc.ai[0] = 0f; + npc.TargetClosest(true); + if (Main.netMode != 1) + { + npc.ai[1] = -1f; + npc.ai[2] = -1f; + for (int num1312 = 0; num1312 < 1000; num1312++) + { + int num1313 = (int)player.Center.X / 16; + int num1314 = (int)player.Center.Y / 16; + int num1315 = 30 + num1312 / 50; + int num1316 = 20 + num1312 / 75; + num1313 += Main.rand.Next(-num1315, num1315 + 1); + num1314 += Main.rand.Next(-num1316, num1316 + 1); + if (!WorldGen.SolidTile(num1313, num1314)) + { + while (!WorldGen.SolidTile(num1313, num1314) && (double)num1314 < Main.worldSurface) + { + num1314++; + } + if ((new Vector2((float)(num1313 * 16 + 8), (float)(num1314 * 16 + 8)) - player.Center).Length() < 5600f) //600 + { + npc.ai[0] = 4.1f; + npc.ai[1] = (float)num1313; + npc.ai[2] = (float)num1314; + break; + } + } + } + } + npc.netUpdate = true; + return; + } + if (npc.ai[0] == 4.1f) + { + if (npc.velocity.X < -2f) + { + npc.direction = -1; + } + else if (npc.velocity.X > 2f) + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.05f) / 10f; + npc.noTileCollide = true; + int num1317 = (int)npc.ai[1]; + int num1318 = (int)npc.ai[2]; + float x2 = (float)(num1317 * 16 + 8); + float y2 = (float)(num1318 * 16 - 20); + Vector2 vector207 = new Vector2(x2, y2); + vector207 -= npc.Center; + float num1319 = 6f + vector207.Length() / 150f; + if (num1319 > 10f) + { + num1319 = 10f; + } + float num1320 = 10f; //10 + if (vector207.Length() < 100f) //10 + { + npc.ai[0] = 4.2f; + } + vector207.Normalize(); + vector207 *= num1319; + npc.velocity = (npc.velocity * (num1320 - 1f) + vector207) / num1320; + return; + } + if (npc.ai[0] == 4.2f) + { + npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.05f) / 10f; + npc.noTileCollide = true; + int num1321 = (int)npc.ai[1]; + int num1322 = (int)npc.ai[2]; + float x3 = (float)(num1321 * 16 + 8); + float y3 = (float)(num1322 * 16 - 20); + Vector2 vector208 = new Vector2(x3, y3); + vector208 -= npc.Center; + float num1323 = 40f; //4 + float num1324 = 2f; //2 + if (Main.netMode != 1 && vector208.Length() < 40f) //4 + { + int num1325 = 10; + if (Main.expertMode) + { + num1325 = (int)((double)num1325 * 0.75); + } + npc.ai[3] += 1f; + if (npc.ai[3] == (float)num1325) + { + NPC.NewNPC(num1321 * 16 + 8, num1322 * 16, mod.NPCType("Bumblefuck2"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + } + else if (npc.ai[3] == (float)(num1325 * 2)) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + if (NPC.CountNPCS(mod.NPCType("Bumblefuck2")) < num1305 && Main.rand.Next(5) != 0) + { + npc.ai[0] = 4f; + } + else if (Collision.SolidCollision(npc.position, npc.width, npc.height)) + { + npc.ai[0] = 1f; + } + } + } + if (vector208.Length() > num1323) + { + vector208.Normalize(); + vector208 *= num1323; + } + npc.velocity = (npc.velocity * (num1324 - 1f) + vector208) / num1324; + return; + } + } } } } - public override bool CanHitPlayer(Player target, ref int cooldownSlot) + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; return true; } - + public override void FindFrame(int frameHeight) - { - npc.frameCounter += (double)(npc.velocity.Length() / 4f); + { + npc.frameCounter += (double)(npc.velocity.Length() / 4f); npc.frameCounter += 1.0; if (npc.ai[0] < 4f) { @@ -555,20 +555,20 @@ namespace CalamityMod.NPCs.Bumblefuck npc.frame.Y = frameHeight * 5; } } - } - + } + public override void BossLoot(ref string name, ref int potionType) { name = "A Bumblebirb"; - potionType = mod.ItemType("SupremeHealingPotion"); + potionType = ItemID.SuperHealingPotion; } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) @@ -595,41 +595,40 @@ namespace CalamityMod.NPCs.Bumblefuck } } } - + public override void NPCLoot() { - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BumblebirbTrophy")); - } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) - { - npc.DropBossBags(); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EffulgentFeather"), Main.rand.Next(6, 12)); - int choice = Main.rand.Next(3); - if (choice == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RougeSlash")); - } - else if (choice == 1) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GildedProboscis")); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GoldenEagle")); - } - } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BumblebirbTrophy")); + } + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + npc.DropBossBags(); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EffulgentFeather"), Main.rand.Next(6, 12)); + switch (Main.rand.Next(3)) + { + case 0: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RougeSlash")); + break; + case 1: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GildedProboscis")); + break; + case 2: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GoldenEagle")); + break; + } + } } } } \ No newline at end of file diff --git a/NPCs/Bumblefuck/Bumblefuck2.cs b/NPCs/Bumblefuck/Bumblefuck2.cs index 63c157e2e0..69ace3642c 100644 --- a/NPCs/Bumblefuck/Bumblefuck2.cs +++ b/NPCs/Bumblefuck/Bumblefuck2.cs @@ -23,15 +23,15 @@ namespace CalamityMod.NPCs.Bumblefuck npc.npcSlots = 1f; npc.aiStyle = -1; aiType = -1; - npc.damage = 140; + npc.damage = 110; npc.width = 80; //324 npc.height = 80; //216 npc.scale = 0.66f; - npc.defense = 40; - npc.lifeMax = 50000; + npc.defense = 25; + npc.lifeMax = 30000; if (CalamityWorld.bossRushActive) { - npc.lifeMax = 30000; + npc.lifeMax = 60000; } npc.knockBackResist = 0f; for (int k = 0; k < npc.buffImmune.Length; k++) @@ -43,6 +43,7 @@ namespace CalamityMod.NPCs.Bumblefuck } npc.lavaImmune = true; npc.noGravity = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit51; npc.DeathSound = SoundID.NPCDeath46; } diff --git a/NPCs/Bumblefuck/Bumblefuck3.cs b/NPCs/Bumblefuck/Bumblefuck3.cs index c229feb435..9de7f0b9b0 100644 --- a/NPCs/Bumblefuck/Bumblefuck3.cs +++ b/NPCs/Bumblefuck/Bumblefuck3.cs @@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.Bumblefuck npc.npcSlots = 1f; npc.aiStyle = -1; aiType = -1; - npc.damage = 170; + npc.damage = 190; npc.width = 80; //324 npc.height = 80; //216 npc.scale = 0.85f; @@ -39,6 +39,7 @@ namespace CalamityMod.NPCs.Bumblefuck } npc.lavaImmune = true; npc.noGravity = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit51; npc.DeathSound = SoundID.NPCDeath46; } diff --git a/NPCs/Calamitas/Calamitas.cs b/NPCs/Calamitas/Calamitas.cs index 096148156a..0908d89393 100644 --- a/NPCs/Calamitas/Calamitas.cs +++ b/NPCs/Calamitas/Calamitas.cs @@ -19,7 +19,7 @@ namespace CalamityMod.NPCs.Calamitas DisplayName.SetDefault("Calamitas"); Main.npcFrameCount[npc.type] = 6; } - + public override void SetDefaults() { npc.damage = 70; @@ -29,31 +29,33 @@ namespace CalamityMod.NPCs.Calamitas npc.defense = 15; npc.value = 0f; npc.lifeMax = CalamityWorld.revenge ? 15000 : 10000; - if (CalamityWorld.death) - { - npc.lifeMax = 22500; - } - npc.aiStyle = -1; //new - aiType = -1; //new + if (CalamityWorld.death) + { + npc.lifeMax = 22500; + } + npc.aiStyle = -1; //new + aiType = -1; //new npc.knockBackResist = 0f; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { - npc.buffImmune[k] = true; - npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } + npc.buffImmune[k] = true; + npc.buffImmune[BuffID.Ichor] = false; + npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[BuffID.Daybreak] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("HolyLight")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Plague")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; @@ -65,21 +67,21 @@ namespace CalamityMod.NPCs.Calamitas npc.defense = 130; npc.lifeMax = 80000; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 2600000 : 2200000; - } - } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 1300000 : 1100000; + } + } - public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.15f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } - public override void AI() + public override void AI() { bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); @@ -345,11 +347,52 @@ namespace CalamityMod.NPCs.Calamitas } } - public override bool PreNPCLoot() + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + + public override bool PreNPCLoot() { return false; } - + public override void HitEffect(int hitDirection, double damage) { if (npc.life > 0) @@ -387,7 +430,7 @@ namespace CalamityMod.NPCs.Calamitas } } } - + public override bool CheckDead() { if (Main.netMode != 1) @@ -411,13 +454,13 @@ namespace CalamityMod.NPCs.Calamitas } return true; } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) diff --git a/NPCs/Calamitas/CalamitasRun.cs b/NPCs/Calamitas/CalamitasRun.cs index fc7a790f13..17b2bb1c6e 100644 --- a/NPCs/Calamitas/CalamitasRun.cs +++ b/NPCs/Calamitas/CalamitasRun.cs @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.Calamitas npc.width = 120; //324 npc.height = 120; //216 npc.defense = 10; - npc.alpha = 50; + npc.alpha = 25; npc.value = 0f; npc.lifeMax = CalamityWorld.revenge ? 4400 : 3000; if (CalamityWorld.death) @@ -38,6 +38,8 @@ namespace CalamityMod.NPCs.Calamitas npc.aiStyle = -1; //new aiType = -1; //new npc.knockBackResist = 0f; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -73,7 +75,7 @@ namespace CalamityMod.NPCs.Calamitas } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 1900000 : 1500000; + npc.lifeMax = CalamityWorld.death ? 1000000 : 800000; } } @@ -374,7 +376,48 @@ namespace CalamityMod.NPCs.Calamitas } } - public override bool CheckActive() + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (npc.ai[1] > 0f && Lighting.NotRetro && ((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157))) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + + public override bool CheckActive() { return canDespawn; } @@ -411,6 +454,11 @@ namespace CalamityMod.NPCs.Calamitas } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Cataclysm"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Cataclysm2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Cataclysm3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Cataclysm4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Cataclysm5"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 100; diff --git a/NPCs/Calamitas/CalamitasRun2.cs b/NPCs/Calamitas/CalamitasRun2.cs index 3236ec23ac..0eab3f7f8c 100644 --- a/NPCs/Calamitas/CalamitasRun2.cs +++ b/NPCs/Calamitas/CalamitasRun2.cs @@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.Calamitas npc.width = 120; //324 npc.height = 120; //216 npc.defense = 10; - npc.alpha = 50; + npc.alpha = 25; npc.value = 0f; npc.lifeMax = CalamityWorld.revenge ? 3675 : 2500; if (CalamityWorld.death) @@ -40,6 +40,8 @@ namespace CalamityMod.NPCs.Calamitas npc.knockBackResist = 0f; npc.noGravity = true; npc.noTileCollide = true; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -73,7 +75,7 @@ namespace CalamityMod.NPCs.Calamitas } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 1600000 : 1300000; + npc.lifeMax = CalamityWorld.death ? 800000 : 700000; } } @@ -374,7 +376,48 @@ namespace CalamityMod.NPCs.Calamitas } } - public override bool CheckActive() + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (npc.ai[1] > 0f && Lighting.NotRetro && ((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157))) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + + public override bool CheckActive() { return canDespawn; } @@ -403,6 +446,11 @@ namespace CalamityMod.NPCs.Calamitas } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Catastrophe"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Catastrophe2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Catastrophe3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Catastrophe4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Catastrophe5"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 100; diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index 54fcbb62b9..7b285d91ec 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -19,16 +19,16 @@ namespace CalamityMod.NPCs.Calamitas [AutoloadBossHead] public class CalamitasRun3 : ModNPC { - private float bossLife; - private bool halfLife = false; - private bool secondStage = false; - + private float bossLife; + private bool halfLife = false; + private bool secondStage = false; + public override void SetStaticDefaults() { DisplayName.SetDefault("Calamitas"); Main.npcFrameCount[npc.type] = 6; } - + public override void SetDefaults() { npc.damage = 80; @@ -37,43 +37,45 @@ namespace CalamityMod.NPCs.Calamitas npc.height = 120; npc.defense = 25; npc.lifeMax = CalamityWorld.revenge ? 36750 : 27500; - if (CalamityWorld.death) - { - npc.lifeMax = 60250; - } - npc.aiStyle = -1; //new - aiType = -1; //new + if (CalamityWorld.death) + { + npc.lifeMax = 60250; + } + npc.aiStyle = -1; //new + aiType = -1; //new npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 15, 0, 0); + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { - npc.buffImmune[k] = true; - npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } + npc.buffImmune[k] = true; + npc.buffImmune[BuffID.Ichor] = false; + npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[BuffID.Daybreak] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("HolyLight")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Plague")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Calamitas"); - else - music = MusicID.Boss2; - bossBag = mod.ItemType("CalamitasBag"); + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Calamitas"); + else + music = MusicID.Boss2; + bossBag = mod.ItemType("CalamitasBag"); if (CalamityWorld.downedProvidence) { npc.damage = 160; @@ -81,21 +83,21 @@ namespace CalamityMod.NPCs.Calamitas npc.lifeMax = 120000; npc.value = Item.buyPrice(0, 35, 0, 0); } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 6500000 : 5900000; - } - } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 3300000 : 3000000; + } + } - public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.15f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } - public override void AI() + public override void AI() { bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); @@ -104,10 +106,10 @@ namespace CalamityMod.NPCs.Calamitas Player player = Main.player[npc.target]; if (!halfLife && npc.life <= npc.lifeMax / 2) { - if (!secondStage && Main.netMode != 1) + if (!secondStage && Main.netMode != 1) { Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); - for (int I = 0; I < 5; I++) + for (int I = 0; I < 5; I++) { int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 72) * 150)), (int)(npc.Center.Y + (Math.Cos(I * 72) * 150)), mod.NPCType("SoulSeeker"), npc.whoAmI, 0, 0, 0, -1); NPC Eye = Main.npc[FireEye]; @@ -132,7 +134,7 @@ namespace CalamityMod.NPCs.Calamitas { bossLife = (float)npc.lifeMax; } - if (npc.life > 0) + if (npc.life > 0) { if (Main.netMode != 1) { @@ -156,27 +158,27 @@ namespace CalamityMod.NPCs.Calamitas } else { - if (revenge) - { - int num661 = Main.rand.Next(5, 9); - for (int num662 = 0; num662 < num661; num662++) - { - int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); - int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int num663 = mod.NPCType("LifeSeeker"); - int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num664].SetDefaults(num663, -1f); - Main.npc[num664].velocity.X = (float)Main.rand.Next(-15, 16) * 0.1f; - Main.npc[num664].velocity.Y = (float)Main.rand.Next(-30, 1) * 0.1f; - } - } + if (revenge) + { + int num661 = Main.rand.Next(5, 9); + for (int num662 = 0; num662 < num661; num662++) + { + int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); + int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); + int num663 = mod.NPCType("LifeSeeker"); + int num664 = NPC.NewNPC(x, y, num663, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num664].SetDefaults(num663, -1f); + Main.npc[num664].velocity.X = (float)Main.rand.Next(-15, 16) * 0.1f; + Main.npc[num664].velocity.Y = (float)Main.rand.Next(-30, 1) * 0.1f; + } + } Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("RedSpawn"), 0, 0f, Main.myPlayer, 0f, 0f); Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("GraySpawn"), 0, 0f, Main.myPlayer, 0f, 0f); - if (CalamityWorld.death) - { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("RedSpawn"), 0, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("GraySpawn"), 0, 0f, Main.myPlayer, 0f, 0f); - } + if (CalamityWorld.death) + { + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("RedSpawn"), 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("GraySpawn"), 0, 0f, Main.myPlayer, 0f, 0f); + } string key = "Mods.CalamityMod.CalamitasBossText4"; Color messageColor = Color.Orange; if (Main.netMode == 0) @@ -191,23 +193,23 @@ namespace CalamityMod.NPCs.Calamitas return; } } - } + } bool flag100 = false; int num568 = 0; if (expertMode) { - if (NPC.AnyNPCs(mod.NPCType("CalamitasRun")) || NPC.AnyNPCs(mod.NPCType("CalamitasRun2"))) - { - flag100 = true; - num568 += 255; - } + if (NPC.AnyNPCs(mod.NPCType("CalamitasRun")) || NPC.AnyNPCs(mod.NPCType("CalamitasRun2"))) + { + flag100 = true; + num568 += 255; + } npc.defense += num568 * 50; - if (!flag100) - { - npc.defense = 30; - } - } - npc.chaseable = !flag100; + if (!flag100) + { + npc.defense = 30; + } + } + npc.chaseable = !flag100; if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) { npc.TargetClosest(true); @@ -343,10 +345,10 @@ namespace CalamityMod.NPCs.Calamitas { npc.localAI[1] += 0.5f; } - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - npc.localAI[1] += 1f; - } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + npc.localAI[1] += 1f; + } if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) { npc.localAI[1] += 1f; @@ -359,10 +361,10 @@ namespace CalamityMod.NPCs.Calamitas { npc.localAI[1] = 0f; float num828 = expertMode ? 14f : 12.5f; - if (npc.GetGlobalNPC(mod).enraged) - { - num828 += 5f; - } + if (npc.GetGlobalNPC(mod).enraged) + { + num828 += 5f; + } int num829 = expertMode ? 34 : 42; int num830 = mod.ProjectileType("BrimstoneHellfireball"); num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); @@ -435,14 +437,14 @@ namespace CalamityMod.NPCs.Calamitas { npc.localAI[1] += 0.5f; } - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - npc.localAI[1] += 0.5f; - } - if (npc.GetGlobalNPC(mod).enraged) - { - npc.localAI[1] += 1f; - } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + npc.localAI[1] += 0.5f; + } + if (npc.GetGlobalNPC(mod).enraged) + { + npc.localAI[1] += 1f; + } if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) { npc.localAI[1] += 0.5f; @@ -483,37 +485,78 @@ namespace CalamityMod.NPCs.Calamitas } } - public override void NPCLoot() + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + + public override void NPCLoot() { if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamitasTrophy")); } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } else { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(3, 6)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(4, 9)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamityDust"), Main.rand.Next(9, 15)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BlightedLens"), Main.rand.Next(1, 3)); - if (CalamityWorld.downedProvidence) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone"), Main.rand.Next(30, 41)); - } - if (Main.rand.Next(10) == 0) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ChaosStone"), 1, true); - } - if (Main.rand.Next(4) == 0) + if (CalamityWorld.downedProvidence) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone"), Main.rand.Next(30, 41)); + } + if (Main.rand.Next(10) == 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ChaosStone"), 1, true); + } + if (Main.rand.Next(4) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamitasInferno")); } @@ -531,13 +574,13 @@ namespace CalamityMod.NPCs.Calamitas } } } - + public override void BossLoot(ref string name, ref int potionType) { name = "A Calamitas Doppelganger"; potionType = ItemID.GreaterHealingPotion; } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) @@ -546,6 +589,12 @@ namespace CalamityMod.NPCs.Calamitas } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Calamitas"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Calamitas2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Calamitas3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Calamitas4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Calamitas5"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/Calamitas6"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 100; @@ -572,13 +621,13 @@ namespace CalamityMod.NPCs.Calamitas } } } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.damage = (int)(npc.damage * 0.8f); npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); } - + public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) diff --git a/NPCs/Calamitas/LifeSeeker.cs b/NPCs/Calamitas/LifeSeeker.cs index 4047893dde..5789161362 100644 --- a/NPCs/Calamitas/LifeSeeker.cs +++ b/NPCs/Calamitas/LifeSeeker.cs @@ -36,6 +36,7 @@ namespace CalamityMod.NPCs.Calamitas animationType = 2; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.buffImmune[24] = true; @@ -63,6 +64,9 @@ namespace CalamityMod.NPCs.Calamitas { Dust.NewDust(npc.position, npc.width, npc.height, 235, hitDirection, -1f, 0, default(Color), 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/LifeSeeker"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/LifeSeeker2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/LifeSeeker3"), 1f); } } } diff --git a/NPCs/Calamitas/SoulSeeker.cs b/NPCs/Calamitas/SoulSeeker.cs index b7e30e083a..cd9d02d495 100644 --- a/NPCs/Calamitas/SoulSeeker.cs +++ b/NPCs/Calamitas/SoulSeeker.cs @@ -25,6 +25,7 @@ namespace CalamityMod.NPCs.Calamitas npc.height = 40; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.damage = 60; npc.defense = 20; npc.lifeMax = 3750; @@ -97,6 +98,10 @@ namespace CalamityMod.NPCs.Calamitas } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper4"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 50; diff --git a/NPCs/CalamityBiomeNPCs/CultistAssassin.cs b/NPCs/CalamityBiomeNPCs/CultistAssassin.cs index 7dd91b00ab..5a01725f25 100644 --- a/NPCs/CalamityBiomeNPCs/CultistAssassin.cs +++ b/NPCs/CalamityBiomeNPCs/CultistAssassin.cs @@ -39,6 +39,8 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.lifeMax = 5000; npc.value = Item.buyPrice(0, 0, 50, 0); } + banner = npc.type; + bannerItem = mod.ItemType("CultistAssassinBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -75,9 +77,9 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); } - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(3) == 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); } } } diff --git a/NPCs/CalamityBiomeNPCs/DespairStone.cs b/NPCs/CalamityBiomeNPCs/DespairStone.cs index 02cecce850..ea85b8eb1b 100644 --- a/NPCs/CalamityBiomeNPCs/DespairStone.cs +++ b/NPCs/CalamityBiomeNPCs/DespairStone.cs @@ -40,6 +40,8 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.lifeMax = 5000; npc.value = Item.buyPrice(0, 0, 50, 0); } + banner = npc.type; + bannerItem = mod.ItemType("DespairStoneBanner"); } public override void AI() @@ -348,9 +350,9 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); } - if (Main.hardMode && Main.rand.Next(2) == 0) + if (Main.hardMode && Main.rand.Next(3) == 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); } } diff --git a/NPCs/CalamityBiomeNPCs/Scryllar.cs b/NPCs/CalamityBiomeNPCs/Scryllar.cs index 6beae07860..5c13a46d65 100644 --- a/NPCs/CalamityBiomeNPCs/Scryllar.cs +++ b/NPCs/CalamityBiomeNPCs/Scryllar.cs @@ -42,6 +42,8 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.lifeMax = 4000; npc.value = Item.buyPrice(0, 0, 50, 0); } + banner = npc.type; + bannerItem = mod.ItemType("ScryllarBanner"); } public override void AI() @@ -266,9 +268,9 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); } - if (Main.hardMode && Main.rand.Next(2) == 0) + if (Main.hardMode && Main.rand.Next(3) == 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); } } diff --git a/NPCs/CalamityBiomeNPCs/ScryllarRage.cs b/NPCs/CalamityBiomeNPCs/ScryllarRage.cs index e91a90499e..1d668fe362 100644 --- a/NPCs/CalamityBiomeNPCs/ScryllarRage.cs +++ b/NPCs/CalamityBiomeNPCs/ScryllarRage.cs @@ -42,6 +42,8 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.lifeMax = 2300; npc.value = Item.buyPrice(0, 0, 50, 0); } + banner = mod.NPCType("Scryllar"); + bannerItem = mod.ItemType("ScryllarBanner"); } public override void AI() @@ -266,9 +268,9 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); } - if (Main.hardMode && Main.rand.Next(2) == 0) + if (Main.hardMode && Main.rand.Next(3) == 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); } } diff --git a/NPCs/CalamityBiomeNPCs/SoulSlurper.cs b/NPCs/CalamityBiomeNPCs/SoulSlurper.cs index 4fc980c3bf..c8c9497388 100644 --- a/NPCs/CalamityBiomeNPCs/SoulSlurper.cs +++ b/NPCs/CalamityBiomeNPCs/SoulSlurper.cs @@ -41,6 +41,8 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs npc.lifeMax = 3000; npc.value = Item.buyPrice(0, 0, 50, 0); } + banner = npc.type; + bannerItem = mod.ItemType("SoulSlurperBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -227,9 +229,9 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Bloodstone")); } - if (Main.hardMode && Main.rand.Next(2) == 0) + if (Main.hardMode && Main.rand.Next(3) == 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(1, 3)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); } } @@ -241,6 +243,10 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/CalamitasGores/SoulSlurper4"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 50; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index b349b9480a..5fefcb4be1 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -15,238 +15,274 @@ using Terraria.ID; using Terraria.World.Generation; using Terraria.GameContent.Generation; using CalamityMod.Tiles; +using CalamityMod.Projectiles; using CalamityMod; namespace CalamityMod.NPCs { public class CalamityGlobalNPC : GlobalNPC { - #region InstancePerEntity - public override bool InstancePerEntity + #region InstancePerEntity + public override bool InstancePerEntity { get { return true; } } - #endregion + #endregion - #region InstanceVars - public static bool DraedonMayhem = false; + #region InstanceVars + private float protection = 0f; - public float protection = 0f; - - public float defProtection = 0f; + private float defProtection = 0f; - public bool setNewName = true; + private bool setNewName = true; - public bool weaknessCold = false; + private const int maxAIMod = 4; - public bool weaknessFire = false; + private float[] newAI = new float[maxAIMod]; - public bool weaknessPoison = false; + private int CultProjectiles = 2; - public bool weaknessStab = false; + private const float CultAngleSpread = 170; - public bool weaknessSlash = false; + private int CultCountdown = 0; - public bool weaknessMagic = false; + public bool dFlames = false; - public bool weaknessDark = false; - - public bool weaknessWater = false; - - public bool weaknessHoly = false; - - public bool weaknessUnholy = false; - - public bool dFlames = false; - public bool marked = false; - + public bool irradiated = false; public bool bFlames = false; - + public bool hFlames = false; - + public bool pFlames = false; - + public bool gState = false; - + public bool aCrunch = false; - + public bool tSad = false; - + public bool pShred = false; - + public bool cDepth = false; - + public bool gsInferno = false; - + public bool aFlames = false; - + public bool eFreeze = false; - + public bool wDeath = false; - + public bool nightwither = false; - public bool silvaStun = false; + public bool silvaStun = false; - public bool enraged = false; + public bool enraged = false; + + public bool yellowCandle = false; + + public bool pearlAura = false; + + public bool shellfishVore = false; + + public bool clamDebuff = false; - public static int maxAIMod = 4; - - public float[] newAI = new float[maxAIMod]; - - public int CultProjectiles = 2; - - public const float CultAngleSpread = 170; - - public int CultCountdown = 0; - public static int holyBoss = -1; - + public static int doughnutBoss = -1; - + public static int voidBoss = -1; - + public static int energyFlame = -1; - + public static int hiveMind = -1; - + public static int hiveMind2 = -1; - + public static int scavenger = -1; - public static int bobbitWormBottom = -1; + public static int bobbitWormBottom = -1; - public static int DoGHead = -1; + public static int DoGHead = -1; + + public static int SCal = -1; - public static int SCal = -1; - public static int ghostBoss = -1; - public static int ghostBoss2 = -1; + public static int ghostBoss2 = -1; - public static int laserEye = -1; + public static int laserEye = -1; - public static int fireEye = -1; + public static int fireEye = -1; - public static int lordeBoss = -1; + public static int lordeBoss = -1; - public static int brimstoneElemental = -1; + public static int brimstoneElemental = -1; - public int bloodMoonKillCount = 0; - #endregion + public static bool DraedonMayhem = false; + #endregion - #region ResetEffects - public override void ResetEffects(NPC npc) + #region ResetEffects + public override void ResetEffects(NPC npc) { - dFlames = false; + dFlames = false; marked = false; irradiated = false; - bFlames = false; - hFlames = false; - pFlames = false; - gState = false; - aCrunch = false; - tSad = false; - pShred = false; - cDepth = false; - gsInferno = false; - aFlames = false; - eFreeze = false; - wDeath = false; - nightwither = false; - silvaStun = false; - enraged = false; - } - #endregion + bFlames = false; + hFlames = false; + pFlames = false; + gState = false; + aCrunch = false; + tSad = false; + pShred = false; + cDepth = false; + gsInferno = false; + aFlames = false; + eFreeze = false; + wDeath = false; + nightwither = false; + silvaStun = false; + enraged = false; + yellowCandle = false; + pearlAura = false; + shellfishVore = false; + clamDebuff = false; + } + #endregion - #region LifeRegen - public override void UpdateLifeRegen(NPC npc, ref int damage) + #region LifeRegen + public override void UpdateLifeRegen(NPC npc, ref int damage) { bool hardMode = Main.hardMode; int npcDefense = npc.defense; - int x = Main.maxTilesX; - int y = Main.maxTilesY; - int genLimit = x / 2; - int abyssChasmSteps = y / 4; - int abyssChasmY = (y - abyssChasmSteps) + 100; - int abyssChasmX = (CalamityWorld.abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); - bool abyssPosX = false; - bool abyssPosY = ((double)(npc.position.Y / 16f) <= abyssChasmY); - if (CalamityWorld.abyssSide) - { - if ((double)(npc.position.X / 16f) < abyssChasmX + 80) - { - abyssPosX = true; - } - } - else - { - if ((double)(npc.position.X / 16f) > abyssChasmX - 80) - { - abyssPosX = true; - } - } - bool hurtByAbyss = (npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && - ((((double)(npc.position.Y / 16f) > (Main.rockLayer - (double)Main.maxTilesY * 0.05)) && - abyssPosY && abyssPosX) || CalamityWorld.abyssTiles > 200) && - !npc.buffImmune[mod.BuffType("CrushDepth")]); - if (hurtByAbyss) - { - npc.AddBuff(mod.BuffType("CrushDepth"), 2); - if (npc.DeathSound != null) - { - npc.DeathSound = null; - } - if (npc.HitSound != null) - { - npc.HitSound = null; - } - } - bool hurtByPiss = (npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && CalamityWorld.sulphurTiles > 30 && - !npc.buffImmune[BuffID.Poisoned] && !npc.buffImmune[mod.BuffType("CrushDepth")]); - if (hurtByPiss) - { - npc.AddBuff(BuffID.Poisoned, 2); - } - if (Main.raining && npc.damage > 0 && !npc.boss && - !npc.friendly && !npc.dontTakeDamage && CalamityWorld.sulphurTiles > 30 && - !npc.buffImmune[BuffID.Poisoned] && !npc.buffImmune[mod.BuffType("CrushDepth")]) - { - npc.AddBuff(mod.BuffType("Irradiated"), 2); - } - if (npc.venom) - { - if (npc.lifeRegen > 0) - { - npc.lifeRegen = 0; - } - int num7 = 0; - int num8 = 5; - for (int j = 0; j < 1000; j++) - { - if (Main.projectile[j].active && - (Main.projectile[j].type == mod.ProjectileType("Lionfish") || Main.projectile[j].type == mod.ProjectileType("SulphuricAcidCannon2")) && - Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == (float)npc.whoAmI) - { - num7++; - } - } - if (num7 > 0) - { - npc.lifeRegen -= num7 * 50; - if (damage < num7 * 50 / num8) - { - damage = num7 * 50 / num8; - } - } - } - if (irradiated) + int x = Main.maxTilesX; + int y = Main.maxTilesY; + int genLimit = x / 2; + int abyssChasmY = y - 250; + int abyssChasmX = (CalamityWorld.abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); + bool abyssPosX = false; + bool abyssPosY = ((double)(npc.position.Y / 16f) <= abyssChasmY); + if (CalamityWorld.abyssSide) + { + if ((double)(npc.position.X / 16f) < abyssChasmX + 80) + { + abyssPosX = true; + } + } + else + { + if ((double)(npc.position.X / 16f) > abyssChasmX - 80) + { + abyssPosX = true; + } + } + bool hurtByAbyss = (npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && + ((((double)(npc.position.Y / 16f) > (Main.rockLayer - (double)Main.maxTilesY * 0.05)) && + abyssPosY && abyssPosX) || CalamityWorld.abyssTiles > 200) && + !npc.buffImmune[mod.BuffType("CrushDepth")]); + if (hurtByAbyss) + { + npc.AddBuff(mod.BuffType("CrushDepth"), 2); + if (npc.DeathSound != null) + { + npc.DeathSound = null; + } + if (npc.HitSound != null) + { + npc.HitSound = null; + } + } + bool hurtByPiss = (npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && CalamityWorld.sulphurTiles > 30 && + !npc.buffImmune[BuffID.Poisoned] && !npc.buffImmune[mod.BuffType("CrushDepth")]); + if (hurtByPiss) + { + npc.AddBuff(BuffID.Poisoned, 2); + } + if (Main.raining && npc.damage > 0 && !npc.boss && + !npc.friendly && !npc.dontTakeDamage && CalamityWorld.sulphurTiles > 30 && + !npc.buffImmune[BuffID.Poisoned] && !npc.buffImmune[mod.BuffType("CrushDepth")]) + { + npc.AddBuff(mod.BuffType("Irradiated"), 2); + } + if (npc.venom) + { + if (npc.lifeRegen > 0) + { + npc.lifeRegen = 0; + } + int num7 = 0; + int num8 = 5; + for (int j = 0; j < 1000; j++) + { + if (Main.projectile[j].active && + (Main.projectile[j].type == mod.ProjectileType("Lionfish") || Main.projectile[j].type == mod.ProjectileType("SulphuricAcidCannon2")) && + Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == (float)npc.whoAmI) + { + num7++; + } + } + if (num7 > 0) + { + npc.lifeRegen -= num7 * 50; + if (damage < num7 * 50 / num8) + { + damage = num7 * 50 / num8; + } + } + } + if (shellfishVore) + { + if (npc.lifeRegen > 0) + { + npc.lifeRegen = 0; + } + int amount = 0; + for (int j = 0; j < 1000; j++) + { + if (Main.projectile[j].active && + (Main.projectile[j].type == mod.ProjectileType("Shellfish")) && + Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == (float)npc.whoAmI && + amount < 5) + { + amount++; + } + } + npc.lifeRegen -= amount * 500; + if (damage < amount * 50) + { + damage = amount * 50; + } + } + if (clamDebuff) + { + if (npc.lifeRegen > 0) + { + npc.lifeRegen = 0; + } + int amount = 0; + for (int j = 0; j < 1000; j++) + { + if (Main.projectile[j].active && + (Main.projectile[j].type == mod.ProjectileType("SnapClamProj")) && + Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == (float)npc.whoAmI && + amount < 2) + { + amount++; + } + } + npc.lifeRegen -= amount * 25; + if (damage < amount * 5) + { + damage = amount * 5; + } + } + if (irradiated) { if (npc.lifeRegen > 0) { @@ -265,10 +301,10 @@ namespace CalamityMod.NPCs npcDefense = 0; } int depthDamage = hardMode ? 80 : 12; - if (hurtByAbyss) - { - depthDamage = 300; - } + if (hurtByAbyss) + { + depthDamage = 300; + } int calcDepthDamage = depthDamage - npcDefense; if (calcDepthDamage < 0) { @@ -360,21 +396,21 @@ namespace CalamityMod.NPCs if (gState) { npc.velocity.X = 0f; - npc.velocity.Y = npc.velocity.Y + 0.05f; - if (npc.velocity.Y > 15f) - { - npc.velocity.Y = 15f; - } + npc.velocity.Y = npc.velocity.Y + 0.05f; + if (npc.velocity.Y > 15f) + { + npc.velocity.Y = 15f; + } } if (eFreeze && !CalamityWorld.bossRushActive) { - npc.velocity.X = 0f; - npc.velocity.Y = npc.velocity.Y + 0.1f; - if (npc.velocity.Y > 15f) - { - npc.velocity.Y = 15f; - } - } + npc.velocity.X = 0f; + npc.velocity.Y = npc.velocity.Y + 0.1f; + if (npc.velocity.Y > 15f) + { + npc.velocity.Y = 15f; + } + } if (tSad) { npc.velocity.Y /= 2; @@ -392,873 +428,935 @@ namespace CalamityMod.NPCs damage = 40; } } - if (dFlames) - { - if (npc.lifeRegen > 0) - { - npc.lifeRegen = 0; - } - npc.lifeRegen -= 2500; - if (damage < 500) - { - damage = 500; - } - } - } - #endregion + if (dFlames) + { + if (npc.lifeRegen > 0) + { + npc.lifeRegen = 0; + } + npc.lifeRegen -= 2500; + if (damage < 500) + { + damage = 500; + } + } + } + #endregion - #region SetDefaults - public override void SetDefaults(NPC npc) - { - for (int m = 0; m < maxAIMod; m++) - { - this.newAI[m] = 0f; - } - if (npc.boss && CalamityWorld.revenge) - { - if (npc.type != mod.NPCType("HiveMindP2") && npc.type != mod.NPCType("Leviathan") && npc.type != mod.NPCType("StormWeaverHeadNaked") && - npc.type != mod.NPCType("StormWeaverBodyNaked") && npc.type != mod.NPCType("StormWeaverTailNaked") && - npc.type != mod.NPCType("DevourerofGodsHeadS") && npc.type != mod.NPCType("DevourerofGodsBodyS") && - npc.type != mod.NPCType("DevourerofGodsTailS")) - { - if (Main.netMode != 2) - { - if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) - { - Main.player[Main.myPlayer].GetModPlayer(mod).adrenaline = 0; - } - } - } - } - if (CalamityMod.enemyImmunityList.Contains(npc.type) || CalamityWorld.bossRushActive) - { - npc.buffImmune[mod.BuffType("GlacialState")] = true; - npc.buffImmune[mod.BuffType("TemporalSadness")] = true; - } - if (npc.type == NPCID.TheDestroyer || - npc.type == NPCID.TheDestroyerBody || - npc.type == NPCID.TheDestroyerTail) - { - for (int k = 0; k < npc.buffImmune.Length; k++) - { - npc.buffImmune[k] = true; - } - } - if (Main.hardMode && !CalamityWorld.spawnedHardBoss && !npc.boss && !npc.friendly && !npc.dontTakeDamage && !npc.buffImmune[mod.BuffType("CrushDepth")]) - { - if (!CalamityMod.hardModeNerfExceptionList.Contains(npc.type) && npc.lifeMax > 5 && npc.damage > 5) - { - npc.lifeMax = (int)((double)npc.lifeMax * 0.75); - npc.damage = (int)((double)npc.damage * 0.75); - } - } - if (CalamityWorld.defiled) - { - npc.value = (float)((int)((double)npc.value * 1.5)); - } - if (CalamityWorld.bossRushActive) - { - switch (npc.type) - { - case NPCID.QueenBee: //Tier 1 - npc.lifeMax = 840000; - break; - case NPCID.BrainofCthulhu: - npc.lifeMax = 400000; - break; - case NPCID.Creeper: - npc.lifeMax = 40000; - break; - case NPCID.KingSlime: - npc.lifeMax = 1000000; - break; - case NPCID.BlueSlime: - npc.lifeMax = 24000; - break; - case NPCID.SlimeSpiked: - npc.lifeMax = 48000; - break; - case NPCID.EyeofCthulhu: - npc.lifeMax = 1200000; - break; - case NPCID.ServantofCthulhu: - npc.lifeMax = 120000; - break; - case NPCID.SkeletronPrime: - npc.lifeMax = 1560000; - break; - case NPCID.PrimeCannon: - npc.lifeMax = 700000; - break; - case NPCID.PrimeVice: - npc.lifeMax = 880000; - break; - case NPCID.PrimeSaw: - npc.lifeMax = 900000; - break; - case NPCID.PrimeLaser: - npc.lifeMax = 560000; - break; - case NPCID.Golem: - npc.lifeMax = 900000; - break; - case NPCID.GolemHead: - npc.lifeMax = 600000; - break; - case NPCID.GolemFistLeft: - npc.lifeMax = 500000; - break; - case NPCID.GolemFistRight: - npc.lifeMax = 500000; - break; - case NPCID.EaterofWorldsHead: - npc.lifeMax = 40000; - break; - case NPCID.EaterofWorldsBody: - npc.lifeMax = 60000; - break; - case NPCID.EaterofWorldsTail: - npc.lifeMax = 80000; - break; - case NPCID.TheDestroyer: //Tier 2 - npc.lifeMax = 5000000; - break; - case NPCID.TheDestroyerBody: - npc.lifeMax = 5000000; - break; - case NPCID.TheDestroyerTail: - npc.lifeMax = 5000000; - break; - case NPCID.Probe: - npc.lifeMax = 100000; - break; - case NPCID.Spazmatism: - npc.lifeMax = 1900000; - break; - case NPCID.Retinazer: - npc.lifeMax = 1400000; - break; - case NPCID.WallofFlesh: - npc.lifeMax = 4700000; - break; - case NPCID.WallofFleshEye: - npc.lifeMax = 4700000; - break; - case NPCID.SkeletronHead: - npc.lifeMax = 2500000; - break; - case NPCID.SkeletronHand: - npc.lifeMax = 1000000; - break; - case NPCID.CultistBoss: //Tier 3 - npc.lifeMax = 2200000; - break; - case NPCID.CultistDragonHead: - npc.lifeMax = 800000; - break; - case NPCID.CultistDragonBody1: - npc.lifeMax = 800000; - break; - case NPCID.CultistDragonBody2: - npc.lifeMax = 800000; - break; - case NPCID.CultistDragonBody3: - npc.lifeMax = 800000; - break; - case NPCID.CultistDragonBody4: - npc.lifeMax = 800000; - break; - case NPCID.CultistDragonTail: - npc.lifeMax = 800000; - break; - case NPCID.AncientCultistSquidhead: - npc.lifeMax = 600000; - break; - case NPCID.Plantera: - npc.lifeMax = 5200000; - break; - case NPCID.PlanterasTentacle: - npc.lifeMax = 180000; - break; - case NPCID.DukeFishron: //Tier 4 - npc.lifeMax = 5000000; - break; - case NPCID.MoonLordCore: - npc.lifeMax = 2800000; - break; - case NPCID.MoonLordHand: - npc.lifeMax = 900000; - break; - case NPCID.MoonLordHead: - npc.lifeMax = 1200000; - break; - case NPCID.MoonLordFreeEye: - npc.lifeMax = 1500; - break; - } - } - if (npc.type == NPCID.CultistBoss) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.25); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * (CalamityWorld.revenge ? 1.55 : 1.15)); - } - npc.npcSlots = 20f; - } - if (DraedonMayhem) - { - if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.7); - npc.scale *= 1.25f; - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.8); - npc.scale *= 1.2f; - } - npc.npcSlots = 10f; - } - if (npc.type == NPCID.Probe) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.7); - npc.scale *= 1.25f; - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.8); - npc.scale *= 1.2f; - } - } - if (npc.type == NPCID.SkeletronPrime || npc.type == NPCID.PrimeVice || npc.type == NPCID.PrimeCannon || npc.type == NPCID.PrimeSaw || npc.type == NPCID.PrimeLaser) - { - if (npc.type == NPCID.SkeletronPrime) - { - npc.npcSlots = 12f; - } - if (CalamityWorld.death) - { - if (npc.type == NPCID.PrimeLaser) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.5); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.9); - } - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.6); - } - } - if (npc.type == NPCID.Retinazer) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 3.0); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.8); - } - npc.npcSlots = 10f; - } - if (npc.type == NPCID.Spazmatism) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 3.0); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.8); - } - npc.npcSlots = 10f; - } - } - if (CalamityWorld.revenge) - { - npc.value = (float)((int)((double)npc.value * 1.5)); - if (npc.type == NPCID.MoonLordFreeEye) - { - npc.lifeMax = (int)((double)npc.lifeMax * 150.0); - } - if (npc.type == NPCID.Mothron && CalamityWorld.buffedEclipse) - { - npc.scale = 1.25f; - } - if (npc.type == NPCID.MoonLordCore) //final boss in hardmode, gets a big boost in stats - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.4); //140% boost - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.9); //90% boost - } - npc.npcSlots = 12f; - } - if (npc.type == NPCID.MoonLordHand || npc.type == NPCID.MoonLordHead) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.4); //40% boost - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.2); //20% boost - } - npc.npcSlots = 12f; - } - if (npc.type >= 454 && npc.type <= 459) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 10.0); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 5.0); - } - } - if (npc.type == NPCID.DukeFishron) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 3.525); //252.5% boost - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.85); //85% boost - } - npc.npcSlots = 20f; - } - if (npc.type == NPCID.Sharkron || npc.type == NPCID.Sharkron2) - { - npc.lifeMax = (int)((double)npc.lifeMax * 30.0); - } - if (npc.type == NPCID.Golem) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 8.5); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 3.5); - } - npc.npcSlots = 64f; - } - if (npc.type == NPCID.Plantera) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.681); //168.1% boost - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.65); //65% boost - } - npc.npcSlots = 32f; - } - if (npc.type == NPCID.PlanterasTentacle) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.25); - } - if (!DraedonMayhem) - { - if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.6); - npc.scale *= 1.2f; - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.25); - } - npc.npcSlots = 10f; - } - if (npc.type == NPCID.Probe) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.9); - npc.scale *= 1.2f; - } - } - if (npc.type == NPCID.SkeletronPrime || npc.type == NPCID.PrimeVice || npc.type == NPCID.PrimeCannon || npc.type == NPCID.PrimeSaw || npc.type == NPCID.PrimeLaser) - { - if (npc.type == NPCID.SkeletronPrime) - { - npc.npcSlots = 12f; - } - if (CalamityWorld.death) - { - if (npc.type == NPCID.PrimeLaser) - { - npc.lifeMax = (int)((double)npc.lifeMax * 0.15); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.15); - } - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.5); - } - } - if (npc.type == NPCID.Retinazer) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.7); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.45); - } - npc.npcSlots = 10f; - } - if (npc.type == NPCID.Spazmatism) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.8); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.55); - } - npc.npcSlots = 10f; - } - } - if (npc.type == NPCID.WallofFlesh || npc.type == NPCID.WallofFleshEye) //final boss prehm, gets a big boost in stats - { - if (npc.type == NPCID.WallofFlesh) - { - npc.npcSlots = 20f; - } - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.3); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.75); - } - } - if (npc.type == NPCID.TheHungryII) - { - if (CalamityWorld.death) - { - npc.noTileCollide = true; - npc.lifeMax = (int)((double)npc.lifeMax * 4.5); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.5); - } - } - if (npc.type == NPCID.LeechHead || npc.type == NPCID.LeechBody || npc.type == NPCID.LeechTail) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 4.5); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 3.1); - } - } - if (npc.type == NPCID.SkeletronHead) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.4); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.25); - } - npc.npcSlots = 12f; - } - if (npc.type == NPCID.SkeletronHand) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.4); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.3); - } - } - if (npc.type == NPCID.QueenBee) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.65); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.15); - } - npc.npcSlots = 14f; - } - if (npc.type == NPCID.BrainofCthulhu) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.9); - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.4); - } - npc.npcSlots = 12f; - } - if (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) - { - if (npc.type == NPCID.EaterofWorldsHead) - { - npc.npcSlots = 10f; - if (CalamityWorld.death) - { - npc.reflectingProjectiles = true; - } - } - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.4); //40% boost - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.3); //30% boost - } - } - if (npc.type == NPCID.EyeofCthulhu) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.3); //130% boost - } - else - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.25); //25% boost - } - npc.npcSlots = 10f; - } - if (npc.type == NPCID.KingSlime) - { - if (CalamityWorld.death) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.85); //85% boost - } - } - if (npc.type == mod.NPCType("Cnidrion") || npc.type == mod.NPCType("DesertScourgeBody") || npc.type == mod.NPCType("ColossalSquid") || - npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("ThiccWaifu") || npc.type == mod.NPCType("ProfanedGuardianBoss3") || - npc.type == mod.NPCType("ScornEater") || npc.type == mod.NPCType("AquaticScourgeBody") || npc.type == mod.NPCType("AquaticScourgeBodyAlt") || - npc.type == mod.NPCType("Mauler")) - { - this.protection = 0.05f; - } - else if (npc.type == mod.NPCType("AstrumDeusBody") || npc.type == mod.NPCType("SoulSeeker") || npc.type == mod.NPCType("DesertScourgeTail") || - npc.type == mod.NPCType("Horse") || npc.type == mod.NPCType("ProfanedEnergyBody") || npc.type == mod.NPCType("ScavengerClawLeft") || - npc.type == mod.NPCType("ScavengerClawRight") || npc.type == mod.NPCType("ScavengerHead") || npc.type == mod.NPCType("MantisShrimp") || - npc.type == mod.NPCType("PhantomDebris") || npc.type == mod.NPCType("Astrageldon") || npc.type == mod.NPCType("AstrumDeusHead") || - npc.type == mod.NPCType("AquaticScourgeHead") || npc.type == mod.NPCType("Cryon") || npc.type == mod.NPCType("Cryogen")) - { - this.protection = 0.1f; - } - else if (npc.type == mod.NPCType("ArmoredDiggerHead") || npc.type == mod.NPCType("AstralProbe") || npc.type == mod.NPCType("Calamitas") || - npc.type == mod.NPCType("CalamitasRun") || npc.type == mod.NPCType("CalamitasRun2") || npc.type == mod.NPCType("CalamitasRun3") || - npc.type == mod.NPCType("SoulSlurper") || npc.type == mod.NPCType("ProvSpawnHealer") || npc.type == mod.NPCType("Gnasher") || - npc.type == mod.NPCType("ScavengerLegLeft") || npc.type == mod.NPCType("ScavengerLegRight") || npc.type == mod.NPCType("ShockstormShuttle") || - npc.type == mod.NPCType("Reaper") || npc.type == mod.NPCType("OverloadedSoldier") || npc.type == mod.NPCType("AquaticScourgeTail") || - npc.type == mod.NPCType("EidolonWyrmHead")) - { - this.protection = 0.15f; - } - else if (npc.type == mod.NPCType("AstrumDeusProbe3") || npc.type == mod.NPCType("PlaguebringerShade")) - { - this.protection = 0.2f; - } - else if (npc.type == mod.NPCType("PlaguebringerGoliath") || npc.type == mod.NPCType("ProfanedGuardianBoss2") || - npc.type == mod.NPCType("SandTortoise") || npc.type == mod.NPCType("StasisProbe") || - npc.type == mod.NPCType("BobbitWormHead") || npc.type == mod.NPCType("GreatSandShark")) - { - this.protection = 0.25f; - } - else if (npc.type == mod.NPCType("ProvSpawnOffense")) - { - this.protection = 0.3f; - } - else if (npc.type == mod.NPCType("ArmoredDiggerBody") || npc.type == mod.NPCType("AstrumDeusTail") || npc.type == mod.NPCType("DespairStone") || - npc.type == mod.NPCType("SoulSeekerSupreme") || npc.type == mod.NPCType("Leviathan")) - { - this.protection = 0.35f; - } - else if (npc.type == mod.NPCType("CryogenIce") || npc.type == mod.NPCType("ProfanedGuardianBoss") || npc.type == mod.NPCType("ProvSpawnDefense") || - npc.type == mod.NPCType("ScavengerBody")) - { - this.protection = 0.4f; - } - else if (npc.type == mod.NPCType("ArmoredDiggerTail")) - { - this.protection = 0.45f; - } - else if (npc.type == mod.NPCType("SirenIce")) - { - this.protection = 0.5f; - } - else - { - switch (npc.type) - { - case NPCID.SkeletronHand: - case NPCID.SkeletronHead: - case NPCID.QueenBee: - case NPCID.HeadlessHorseman: - case NPCID.FlyingAntlion: - case NPCID.PirateCaptain: - case NPCID.MoonLordHead: - case NPCID.MoonLordHand: - case NPCID.MoonLordCore: - case NPCID.MoonLordFreeEye: - case NPCID.CultistBoss: - case NPCID.Mothron: - case NPCID.Crab: - case NPCID.SeaSnail: - this.protection = 0.05f; break; - case NPCID.Antlion: - case NPCID.TheHungry: - case NPCID.TheDestroyer: - case NPCID.UndeadViking: - case NPCID.MourningWood: - case NPCID.Everscream: - case NPCID.GreekSkeleton: - case NPCID.GraniteFlyer: - case NPCID.WalkingAntlion: - case NPCID.Pumpking: - case NPCID.IceQueen: - case NPCID.IceGolem: - case NPCID.AnomuraFungus: - case NPCID.SkeletonArcher: - case NPCID.SandElemental: - case NPCID.Arapaima: - case NPCID.ArmoredViking: - case NPCID.DD2Betsy: - case NPCID.DD2OgreT2: - this.protection = 0.1f; break; - case NPCID.ElfCopter: - case NPCID.GraniteGolem: - case NPCID.ArmoredSkeleton: - case NPCID.PirateShipCannon: - case NPCID.DD2OgreT3: - case NPCID.Golem: - this.protection = 0.15f; break; - case NPCID.Retinazer: - case NPCID.Spazmatism: - case NPCID.PrimeCannon: - case NPCID.PrimeLaser: - case NPCID.TheDestroyerBody: - case 269: - case 270: - case 271: - case 272: - case 273: - case 274: - case 275: - case 276: - case 277: - case 278: - case 279: - case 280: - case 281: - case 282: - case 283: - case 284: - case 285: - case 286: - case 287: - case 288: - case 289: - case 291: - case 292: - case 293: - case 294: - case 295: - case 296: - case NPCID.MartianSaucerTurret: - case NPCID.MartianSaucerCannon: - case NPCID.MartianTurret: - case NPCID.MartianDrone: - case NPCID.MartianSaucer: - case NPCID.MartianSaucerCore: - case 494: - case 495: - case 496: - case 497: - this.protection = 0.2f; break; - case NPCID.PrimeSaw: - case NPCID.PrimeVice: - case NPCID.SkeletronPrime: - case NPCID.Probe: - case NPCID.PossessedArmor: - this.protection = 0.25f; break; - case NPCID.Mimic: - case NPCID.PresentMimic: - case 473: - case 474: - case 475: - case 476: - this.protection = 0.3f; break; - case NPCID.GiantTortoise: - case NPCID.IceTortoise: - case NPCID.SantaNK1: - case NPCID.MartianWalker: - case NPCID.TheDestroyerTail: - this.protection = 0.35f; break; - case NPCID.DeadlySphere: - this.protection = 0.4f; break; - case NPCID.Paladin: - this.protection = 0.45f; break; - case NPCID.WallofFlesh: - case NPCID.MothronEgg: - this.protection = 0.5f; break; - case NPCID.DungeonGuardian: - this.protection = 0.9999f; break; - } - } - } - if (npc.type == mod.NPCType("SCalWormBody") || npc.type == mod.NPCType("SCalWormHead") || - npc.type == mod.NPCType("SCalWormTail") || npc.type == mod.NPCType("EidolonWyrmHeadHuge")) - { - this.protection = 0.999999f; - } - if (this.protection > 0f) - { - this.defProtection = this.protection; - } - if (Main.raining && CalamityWorld.sulphurTiles > 30 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && npc.lifeMax <= 2000) - { - npc.lifeMax = (int)((double)npc.lifeMax * 1.15); - npc.damage = (int)((double)npc.damage * 1.25); - npc.life = npc.lifeMax; - npc.defDamage = npc.damage; - } - if (Main.bloodMoon && NPC.downedMoonlord && !npc.boss && !npc.friendly && !npc.dontTakeDamage && npc.lifeMax <= 2000) - { - npc.lifeMax = (int)((double)npc.lifeMax * 3.5); - npc.damage = (int)((double)npc.damage * 2.0); - npc.life = npc.lifeMax; - npc.defDamage = npc.damage; - } - if (CalamityWorld.downedDoG) - { - if (CalamityMod.pumpkinMoonBuffList.Contains(npc.type)) - { - npc.lifeMax = (int)((double)npc.lifeMax * 7.5); - npc.damage = (int)((double)npc.damage * 2.5); - npc.life = npc.lifeMax; - npc.defDamage = npc.damage; - } - else if (CalamityMod.frostMoonBuffList.Contains(npc.type)) - { - npc.lifeMax = (int)((double)npc.lifeMax * 6.0); - npc.damage = (int)((double)npc.damage * 2.5); - npc.life = npc.lifeMax; - npc.defDamage = npc.damage; - } - } - if (CalamityMod.eclipseBuffList.Contains(npc.type) && CalamityWorld.buffedEclipse) - { - npc.lifeMax = (int)((double)npc.lifeMax * 32.5); - npc.damage = (int)((double)npc.damage * 3.0); - npc.life = npc.lifeMax; - npc.defDamage = npc.damage; - } - if (NPC.downedMoonlord) - { - if (CalamityMod.dungeonEnemyBuffList.Contains(npc.type)) - { - npc.lifeMax = (int)((double)npc.lifeMax * 2.5); - npc.damage = (int)((double)npc.damage * 2.5); - npc.life = npc.lifeMax; - npc.defDamage = npc.damage; - } - } - } - #endregion + #region SetDefaults + public override void SetDefaults(NPC npc) + { + for (int m = 0; m < maxAIMod; m++) + { + newAI[m] = 0f; + } + if (npc.boss && CalamityWorld.revenge) + { + if (npc.type != mod.NPCType("HiveMindP2") && npc.type != mod.NPCType("Leviathan") && npc.type != mod.NPCType("StormWeaverHeadNaked") && + npc.type != mod.NPCType("StormWeaverBodyNaked") && npc.type != mod.NPCType("StormWeaverTailNaked") && + npc.type != mod.NPCType("DevourerofGodsHeadS") && npc.type != mod.NPCType("DevourerofGodsBodyS") && + npc.type != mod.NPCType("DevourerofGodsTailS")) + { + if (Main.netMode != 2) + { + if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) + { + Main.player[Main.myPlayer].GetModPlayer(mod).adrenaline = 0; + } + } + } + } + if (CalamityWorld.bossRushActive) + { + if (!npc.friendly) + { + for (int k = 0; k < npc.buffImmune.Length; k++) + { + npc.buffImmune[k] = true; + npc.buffImmune[BuffID.Ichor] = false; + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[mod.BuffType("Enraged")] = false; + } + } + } + else + { + if (CalamityMod.enemyImmunityList.Contains(npc.type)) + { + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + } + if (npc.type == NPCID.TheDestroyer || + npc.type == NPCID.TheDestroyerBody || + npc.type == NPCID.TheDestroyerTail || + npc.type == NPCID.DD2EterniaCrystal || + npc.townNPC) + { + for (int k = 0; k < npc.buffImmune.Length; k++) + { + npc.buffImmune[k] = true; + } + if (npc.townNPC) + { + npc.buffImmune[BuffID.Wet] = false; + npc.buffImmune[BuffID.Slimed] = false; + } + } + if (npc.buffImmune[mod.BuffType("Enraged")]) + { + npc.buffImmune[mod.BuffType("Enraged")] = false; + } + } + if (npc.type == NPCID.QueenBee) + { + npc.value = Item.buyPrice(0, 5, 0, 0); + } + else if (npc.type == NPCID.SkeletronHead) + { + npc.value = Item.buyPrice(0, 7, 0, 0); + } + else if (npc.type == NPCID.DukeFishron) + { + npc.value = Item.buyPrice(0, 25, 0, 0); + } + else if (npc.type == NPCID.CultistBoss) + { + npc.value = Item.buyPrice(0, 25, 0, 0); + } + else if (npc.type == NPCID.MoonLordCore) + { + npc.value = Item.buyPrice(0, 30, 0, 0); + } + if (CalamityWorld.defiled) + { + npc.value = (float)((int)((double)npc.value * 1.5)); + } + if (CalamityWorld.bossRushActive) + { + switch (npc.type) + { + case NPCID.QueenBee: //Tier 1 + npc.lifeMax = 420000; + break; + case NPCID.BrainofCthulhu: + npc.lifeMax = 200000; + break; + case NPCID.Creeper: + npc.lifeMax = 20000; + break; + case NPCID.KingSlime: + npc.lifeMax = 500000; + break; + case NPCID.BlueSlime: + npc.lifeMax = 12000; + break; + case NPCID.SlimeSpiked: + npc.lifeMax = 24000; + break; + case NPCID.EyeofCthulhu: + npc.lifeMax = 600000; + break; + case NPCID.ServantofCthulhu: + npc.lifeMax = 60000; + break; + case NPCID.SkeletronPrime: + npc.lifeMax = 780000; + break; + case NPCID.PrimeCannon: + npc.lifeMax = 350000; + break; + case NPCID.PrimeVice: + npc.lifeMax = 440000; + break; + case NPCID.PrimeSaw: + npc.lifeMax = 450000; + break; + case NPCID.PrimeLaser: + npc.lifeMax = 280000; + break; + case NPCID.Golem: + npc.lifeMax = 450000; + break; + case NPCID.GolemHead: + npc.lifeMax = 300000; + break; + case NPCID.GolemFistLeft: + npc.lifeMax = 250000; + break; + case NPCID.GolemFistRight: + npc.lifeMax = 250000; + break; + case NPCID.EaterofWorldsHead: + npc.lifeMax = 20000; + break; + case NPCID.EaterofWorldsBody: + npc.lifeMax = 30000; + break; + case NPCID.EaterofWorldsTail: + npc.lifeMax = 40000; + break; + case NPCID.TheDestroyer: //Tier 2 + npc.lifeMax = 2500000; + break; + case NPCID.TheDestroyerBody: + npc.lifeMax = 2500000; + break; + case NPCID.TheDestroyerTail: + npc.lifeMax = 2500000; + break; + case NPCID.Probe: + npc.lifeMax = 50000; + break; + case NPCID.Spazmatism: + npc.lifeMax = 1000000; + break; + case NPCID.Retinazer: + npc.lifeMax = 700000; + break; + case NPCID.WallofFlesh: + npc.lifeMax = 2400000; + break; + case NPCID.WallofFleshEye: + npc.lifeMax = 2400000; + break; + case NPCID.SkeletronHead: + npc.lifeMax = 1300000; + break; + case NPCID.SkeletronHand: + npc.lifeMax = 500000; + break; + case NPCID.CultistBoss: //Tier 3 + npc.lifeMax = 1100000; + break; + case NPCID.CultistDragonHead: + npc.lifeMax = 400000; + break; + case NPCID.CultistDragonBody1: + npc.lifeMax = 400000; + break; + case NPCID.CultistDragonBody2: + npc.lifeMax = 400000; + break; + case NPCID.CultistDragonBody3: + npc.lifeMax = 400000; + break; + case NPCID.CultistDragonBody4: + npc.lifeMax = 400000; + break; + case NPCID.CultistDragonTail: + npc.lifeMax = 400000; + break; + case NPCID.AncientCultistSquidhead: + npc.lifeMax = 300000; + break; + case NPCID.Plantera: + npc.lifeMax = 2100000; + break; + case NPCID.PlanterasTentacle: + npc.lifeMax = 90000; + break; + case NPCID.DukeFishron: //Tier 4 + npc.lifeMax = 2500000; + break; + case NPCID.MoonLordCore: + npc.lifeMax = 1400000; + break; + case NPCID.MoonLordHand: + npc.lifeMax = 450000; + break; + case NPCID.MoonLordHead: + npc.lifeMax = 600000; + break; + case NPCID.MoonLordFreeEye: + npc.lifeMax = 1000; + break; + } + } + if (npc.type == NPCID.CultistBoss) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.25); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * (CalamityWorld.revenge ? 1.55 : 1.15)); + } + npc.npcSlots = 20f; + } + if (DraedonMayhem) + { + if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.7); + npc.scale *= 1.25f; + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.8); + npc.scale *= 1.2f; + } + npc.npcSlots = 10f; + } + else if (npc.type == NPCID.Probe) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.7); + npc.scale *= 1.25f; + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.8); + npc.scale *= 1.2f; + } + } + else if (npc.type == NPCID.SkeletronPrime || npc.type == NPCID.PrimeVice || npc.type == NPCID.PrimeCannon || npc.type == NPCID.PrimeSaw || npc.type == NPCID.PrimeLaser) + { + if (npc.type == NPCID.SkeletronPrime) + { + npc.npcSlots = 12f; + } + if (CalamityWorld.death) + { + if (npc.type == NPCID.PrimeLaser) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.5); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.9); + } + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.6); + } + } + else if (npc.type == NPCID.Retinazer) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 3.0); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.8); + } + npc.npcSlots = 10f; + } + else if (npc.type == NPCID.Spazmatism) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 3.0); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.8); + } + npc.npcSlots = 10f; + } + } + if (CalamityWorld.revenge) + { + npc.value = (float)((int)((double)npc.value * 1.5)); + if (npc.type == NPCID.MoonLordFreeEye) + { + npc.lifeMax = (int)((double)npc.lifeMax * 150.0); + } + else if (npc.type == NPCID.Mothron) + { + npc.scale = 1.25f; + } + else if (npc.type == NPCID.MoonLordCore) //final boss in hardmode, gets a big boost in stats + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.4); //140% boost + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.9); //90% boost + } + npc.npcSlots = 12f; + } + else if (npc.type == NPCID.MoonLordHand || npc.type == NPCID.MoonLordHead) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.4); //40% boost + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.2); //20% boost + } + npc.npcSlots = 12f; + } + else if (npc.type >= 454 && npc.type <= 459) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 10.0); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 5.0); + } + } + else if (npc.type == NPCID.DukeFishron) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 3.525); //252.5% boost + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.85); //85% boost + } + npc.npcSlots = 20f; + } + else if (npc.type == NPCID.Sharkron || npc.type == NPCID.Sharkron2) + { + npc.lifeMax = (int)((double)npc.lifeMax * 30.0); + } + else if (npc.type == NPCID.Golem) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 8.5); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 3.5); + } + npc.npcSlots = 64f; + } + else if (npc.type == NPCID.Plantera) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.9); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.9); + } + npc.npcSlots = 32f; + } + else if (npc.type == NPCID.PlanterasTentacle) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.25); + } + else if (npc.type == NPCID.WallofFlesh || npc.type == NPCID.WallofFleshEye) //final boss prehm, gets a big boost in stats + { + if (npc.type == NPCID.WallofFlesh) + { + npc.npcSlots = 20f; + } + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.6); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.9); + } + } + else if (npc.type == NPCID.TheHungryII) + { + if (CalamityWorld.death) + { + npc.noTileCollide = true; + npc.lifeMax = (int)((double)npc.lifeMax * 1.5); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.25); + } + } + else if (npc.type == NPCID.LeechHead || npc.type == NPCID.LeechBody || npc.type == NPCID.LeechTail) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.5); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.25); + } + } + else if (npc.type == NPCID.SkeletronHead) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.4); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.25); + } + npc.npcSlots = 12f; + } + else if (npc.type == NPCID.SkeletronHand) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.4); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.3); + } + } + else if (npc.type == NPCID.QueenBee) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.65); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.15); + } + npc.npcSlots = 14f; + } + else if (npc.type == NPCID.BrainofCthulhu) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.9); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.4); + } + npc.npcSlots = 12f; + } + else if (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) + { + if (npc.type == NPCID.EaterofWorldsHead) + { + npc.npcSlots = 10f; + if (CalamityWorld.death) + { + npc.reflectingProjectiles = true; + } + } + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.4); //40% boost + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.3); //30% boost + } + } + else if (npc.type == NPCID.EyeofCthulhu) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.3); //130% boost + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.25); //25% boost + } + npc.npcSlots = 10f; + } + else if (npc.type == NPCID.KingSlime) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.85); //85% boost + } + } + if (!DraedonMayhem) + { + if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.6); + npc.scale *= 1.2f; + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.25); + } + npc.npcSlots = 10f; + } + else if (npc.type == NPCID.Probe) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.9); + npc.scale *= 1.2f; + } + } + else if (npc.type == NPCID.SkeletronPrime || npc.type == NPCID.PrimeVice || npc.type == NPCID.PrimeCannon || npc.type == NPCID.PrimeSaw || npc.type == NPCID.PrimeLaser) + { + if (npc.type == NPCID.SkeletronPrime) + { + npc.npcSlots = 12f; + } + if (CalamityWorld.death) + { + if (npc.type == NPCID.PrimeLaser) + { + npc.lifeMax = (int)((double)npc.lifeMax * 0.15); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.9); + } + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.25); + } + } + else if (npc.type == NPCID.Retinazer) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.7); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.45); + } + npc.npcSlots = 10f; + } + else if (npc.type == NPCID.Spazmatism) + { + if (CalamityWorld.death) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.8); + } + else + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.55); + } + npc.npcSlots = 10f; + } + } + if (npc.type == NPCID.Probe || npc.type == NPCID.MoonLordFreeEye || (npc.type >= 454 && npc.type <= 459) || + npc.type == NPCID.Sharkron || npc.type == NPCID.Sharkron2 || npc.type == NPCID.PlanterasTentacle || + npc.type == NPCID.Spore || npc.type == NPCID.TheHungryII || npc.type == NPCID.LeechHead || + npc.type == NPCID.LeechBody || npc.type == NPCID.LeechTail || npc.type == NPCID.TheDestroyerBody || + npc.type == NPCID.TheDestroyerTail || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail || + npc.type == NPCID.GolemHead || npc.type == NPCID.GolemFistRight || npc.type == NPCID.GolemFistLeft || + npc.type == NPCID.MoonLordCore) + { + npc.canGhostHeal = false; + } + if (npc.type == mod.NPCType("Cnidrion") || npc.type == mod.NPCType("DesertScourgeBody") || npc.type == mod.NPCType("ColossalSquid") || + npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("ThiccWaifu") || npc.type == mod.NPCType("ProfanedGuardianBoss3") || + npc.type == mod.NPCType("ScornEater") || npc.type == mod.NPCType("AquaticScourgeBody") || npc.type == mod.NPCType("AquaticScourgeBodyAlt") || + npc.type == mod.NPCType("Mauler")) + { + protection = 0.05f; + } + else if (npc.type == mod.NPCType("AstrumDeusBody") || npc.type == mod.NPCType("SoulSeeker") || npc.type == mod.NPCType("DesertScourgeTail") || + npc.type == mod.NPCType("Horse") || npc.type == mod.NPCType("ProfanedEnergyBody") || npc.type == mod.NPCType("ScavengerClawLeft") || + npc.type == mod.NPCType("ScavengerClawRight") || npc.type == mod.NPCType("ScavengerHead") || npc.type == mod.NPCType("MantisShrimp") || + npc.type == mod.NPCType("PhantomDebris") || npc.type == mod.NPCType("Astrageldon") || npc.type == mod.NPCType("AstrumDeusHead") || + npc.type == mod.NPCType("AquaticScourgeHead") || npc.type == mod.NPCType("Cryon") || npc.type == mod.NPCType("Cryogen")) + { + protection = 0.1f; + } + else if (npc.type == mod.NPCType("ArmoredDiggerHead") || npc.type == mod.NPCType("AstralProbe") || npc.type == mod.NPCType("Calamitas") || + npc.type == mod.NPCType("CalamitasRun") || npc.type == mod.NPCType("CalamitasRun2") || npc.type == mod.NPCType("CalamitasRun3") || + npc.type == mod.NPCType("SoulSlurper") || npc.type == mod.NPCType("ProvSpawnHealer") || npc.type == mod.NPCType("Gnasher") || + npc.type == mod.NPCType("ScavengerLegLeft") || npc.type == mod.NPCType("ScavengerLegRight") || npc.type == mod.NPCType("ShockstormShuttle") || + npc.type == mod.NPCType("Reaper") || npc.type == mod.NPCType("OverloadedSoldier") || npc.type == mod.NPCType("AquaticScourgeTail") || + npc.type == mod.NPCType("EidolonWyrmHead")) + { + protection = 0.15f; + } + else if (npc.type == mod.NPCType("AstrumDeusProbe3") || npc.type == mod.NPCType("PlaguebringerShade")) + { + protection = 0.2f; + } + else if (npc.type == mod.NPCType("PlaguebringerGoliath") || npc.type == mod.NPCType("ProfanedGuardianBoss2") || + npc.type == mod.NPCType("SandTortoise") || npc.type == mod.NPCType("StasisProbe") || + npc.type == mod.NPCType("BobbitWormHead") || npc.type == mod.NPCType("GreatSandShark")) + { + protection = 0.25f; + } + else if (npc.type == mod.NPCType("ProvSpawnOffense")) + { + protection = 0.3f; + } + else if (npc.type == mod.NPCType("ArmoredDiggerBody") || npc.type == mod.NPCType("AstrumDeusTail") || npc.type == mod.NPCType("DespairStone") || + npc.type == mod.NPCType("SoulSeekerSupreme") || npc.type == mod.NPCType("Leviathan")) + { + protection = 0.35f; + } + else if (npc.type == mod.NPCType("CryogenIce") || npc.type == mod.NPCType("ProfanedGuardianBoss") || npc.type == mod.NPCType("ProvSpawnDefense") || + npc.type == mod.NPCType("ScavengerBody")) + { + protection = 0.4f; + } + else if (npc.type == mod.NPCType("ArmoredDiggerTail")) + { + protection = 0.45f; + } + else if (npc.type == mod.NPCType("SirenIce")) + { + protection = 0.5f; + } + else + { + switch (npc.type) + { + case NPCID.SkeletronHand: + case NPCID.SkeletronHead: + case NPCID.QueenBee: + case NPCID.HeadlessHorseman: + case NPCID.FlyingAntlion: + case NPCID.PirateCaptain: + case NPCID.MoonLordHead: + case NPCID.MoonLordHand: + case NPCID.MoonLordCore: + case NPCID.MoonLordFreeEye: + case NPCID.CultistBoss: + case NPCID.Mothron: + case NPCID.Crab: + case NPCID.SeaSnail: + protection = 0.05f; break; + case NPCID.Antlion: + case NPCID.TheHungry: + case NPCID.TheDestroyer: + case NPCID.UndeadViking: + case NPCID.MourningWood: + case NPCID.Everscream: + case NPCID.GreekSkeleton: + case NPCID.GraniteFlyer: + case NPCID.WalkingAntlion: + case NPCID.Pumpking: + case NPCID.IceQueen: + case NPCID.IceGolem: + case NPCID.AnomuraFungus: + case NPCID.SkeletonArcher: + case NPCID.SandElemental: + case NPCID.Arapaima: + case NPCID.ArmoredViking: + case NPCID.DD2Betsy: + case NPCID.DD2OgreT2: + protection = 0.1f; break; + case NPCID.ElfCopter: + case NPCID.GraniteGolem: + case NPCID.ArmoredSkeleton: + case NPCID.PirateShipCannon: + case NPCID.DD2OgreT3: + case NPCID.Golem: + protection = 0.15f; break; + case NPCID.Retinazer: + case NPCID.Spazmatism: + case NPCID.PrimeCannon: + case NPCID.PrimeLaser: + case NPCID.TheDestroyerBody: + case 269: + case 270: + case 271: + case 272: + case 273: + case 274: + case 275: + case 276: + case 277: + case 278: + case 279: + case 280: + case 281: + case 282: + case 283: + case 284: + case 285: + case 286: + case 287: + case 288: + case 289: + case 291: + case 292: + case 293: + case 294: + case 295: + case 296: + case NPCID.MartianSaucerTurret: + case NPCID.MartianSaucerCannon: + case NPCID.MartianTurret: + case NPCID.MartianDrone: + case NPCID.MartianSaucer: + case NPCID.MartianSaucerCore: + case 494: + case 495: + case 496: + case 497: + protection = 0.2f; break; + case NPCID.PrimeSaw: + case NPCID.PrimeVice: + case NPCID.SkeletronPrime: + case NPCID.Probe: + case NPCID.PossessedArmor: + protection = 0.25f; break; + case NPCID.Mimic: + case NPCID.PresentMimic: + case 473: + case 474: + case 475: + case 476: + protection = 0.3f; break; + case NPCID.GiantTortoise: + case NPCID.IceTortoise: + case NPCID.SantaNK1: + case NPCID.MartianWalker: + case NPCID.TheDestroyerTail: + protection = 0.35f; break; + case NPCID.DeadlySphere: + protection = 0.4f; break; + case NPCID.Paladin: + protection = 0.45f; break; + case NPCID.WallofFlesh: + case NPCID.MothronEgg: + protection = 0.5f; break; + case NPCID.DungeonGuardian: + protection = 0.9999f; break; + } + } + } + if (npc.type == mod.NPCType("SCalWormBody") || npc.type == mod.NPCType("SCalWormHead") || npc.type == mod.NPCType("SCalWormBodyWeak") || + npc.type == mod.NPCType("SCalWormTail") || npc.type == mod.NPCType("EidolonWyrmHeadHuge")) + { + protection = 0.999999f; + } + if (protection > 0f) + { + defProtection = protection; + } + if (Main.raining && CalamityWorld.sulphurTiles > 30 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && npc.lifeMax <= 2000) + { + npc.lifeMax = (int)((double)npc.lifeMax * 1.15); + npc.damage = (int)((double)npc.damage * 1.25); + npc.life = npc.lifeMax; + npc.defDamage = npc.damage; + } + if (Main.bloodMoon && NPC.downedMoonlord && !npc.boss && !npc.friendly && !npc.dontTakeDamage && npc.lifeMax <= 2000) + { + npc.lifeMax = (int)((double)npc.lifeMax * 3.5); + npc.damage = (int)((double)npc.damage * 2.0); + npc.life = npc.lifeMax; + npc.defDamage = npc.damage; + } + if (CalamityWorld.downedDoG) + { + if (CalamityMod.pumpkinMoonBuffList.Contains(npc.type)) + { + npc.lifeMax = (int)((double)npc.lifeMax * 7.5); + npc.damage = (int)((double)npc.damage * 2.5); + npc.life = npc.lifeMax; + npc.defDamage = npc.damage; + } + else if (CalamityMod.frostMoonBuffList.Contains(npc.type)) + { + npc.lifeMax = (int)((double)npc.lifeMax * 6.0); + npc.damage = (int)((double)npc.damage * 2.5); + npc.life = npc.lifeMax; + npc.defDamage = npc.damage; + } + } + if (CalamityMod.eclipseBuffList.Contains(npc.type) && CalamityWorld.buffedEclipse) + { + npc.lifeMax = (int)((double)npc.lifeMax * 32.5); + npc.damage = (int)((double)npc.damage * 3.0); + npc.life = npc.lifeMax; + npc.defDamage = npc.damage; + } + if (NPC.downedMoonlord) + { + if (CalamityMod.dungeonEnemyBuffList.Contains(npc.type)) + { + npc.lifeMax = (int)((double)npc.lifeMax * 2.5); + npc.damage = (int)((double)npc.damage * 2.5); + npc.life = npc.lifeMax; + npc.defDamage = npc.damage; + } + } + } + #endregion - #region ScaleExpertMultiplayerStats - public override void ScaleExpertStats(NPC npc, int numPlayers, float bossLifeScale) - { - if (Main.netMode != 0) - { - if (numPlayers > 1) - { - if (((npc.boss || CalamityMod.bossScaleList.Contains(npc.type)) && npc.type < NPCID.Count) || - (npc.modNPC != null && npc.modNPC.mod.Name.Equals("CalamityMod"))) - { - bossLifeScale = 1f; //set expert scale to 1 instead of 2 - float playerCount = (float)numPlayers; - if (playerCount > 20f) //max player count - { - playerCount = 20f; - } - if (CalamityWorld.bossRushActive && playerCount > 2f) - { - playerCount = 2f; - } - float scalar = 0.4f + ((2f * playerCount) / 20f); //lower scaling because fuck u - int setToLifeMax = npc.lifeMax; - npc.lifeMax = (int)(npc.lifeMax * scalar * bossLifeScale); - if (npc.lifeMax < setToLifeMax) - { - npc.lifeMax = setToLifeMax; - } - } - } - } - } - #endregion + #region ScaleExpertMultiplayerStats + public override void ScaleExpertStats(NPC npc, int numPlayers, float bossLifeScale) + { + if (Main.netMode != 0) + { + if (numPlayers > 1) + { + /*About 1.35 multiplier for 2 players, 1.92 for 3 players, 2.63 for 4 players, 3.44 for 5 players, 4.31 for 6 players + Destroyer has 120K HP + 2 players = 146K HP + 3 players = 173K HP + 4 players = 197K HP + 5 players = 223K HP + 6 players = 248K HP*/ + if (((npc.boss || CalamityMod.bossScaleList.Contains(npc.type)) && npc.type < NPCID.Count) || + (npc.modNPC != null && npc.modNPC.mod.Name.Equals("CalamityMod"))) + { + double scalar = 1.0; + switch (numPlayers) //Decrease HP in multiplayer before vanilla scaling + { + case 2: + scalar = 0.9; + break; + case 3: + scalar = 0.75; + break; + case 4: + scalar = 0.625; + break; + case 5: + scalar = 0.54; + break; + case 6: + scalar = 0.48; + break; + default: + scalar = 0.45; + break; + } + npc.lifeMax = (int)((double)npc.lifeMax * scalar); + } + } + } + } + #endregion - #region CanBeHitBy - public override bool? CanBeHitByItem(NPC npc, Player player, Item item) - { - if (npc.type == NPCID.TargetDummy || npc.type == mod.NPCType("SuperDummy")) - { - return !CalamityPlayer.areThereAnyDamnBosses; - } - return null; - } + #region CanBeHitBy + public override bool? CanBeHitByItem(NPC npc, Player player, Item item) + { + if (npc.type == NPCID.TargetDummy || npc.type == mod.NPCType("SuperDummy")) + { + return !CalamityPlayer.areThereAnyDamnBosses; + } + return null; + } - public override bool? CanBeHitByProjectile(NPC npc, Projectile projectile) - { - if (npc.type == NPCID.TargetDummy || npc.type == mod.NPCType("SuperDummy")) - { - return !CalamityPlayer.areThereAnyDamnBosses; - } - return null; - } - #endregion + public override bool? CanBeHitByProjectile(NPC npc, Projectile projectile) + { + if (npc.type == NPCID.TargetDummy || npc.type == mod.NPCType("SuperDummy")) + { + return !CalamityPlayer.areThereAnyDamnBosses; + } + return null; + } + #endregion - #region CanHitPlayer - public override bool CanHitPlayer(NPC npc, Player target, ref int cooldownSlot) + #region CanHitPlayer + public override bool CanHitPlayer(NPC npc, Player target, ref int cooldownSlot) { if (Main.pumpkinMoon && CalamityWorld.downedDoG && !npc.boss && !npc.friendly && !npc.dontTakeDamage) cooldownSlot = 1; @@ -1266,4767 +1364,4804 @@ namespace CalamityMod.NPCs cooldownSlot = 1; else if (Main.eclipse && CalamityWorld.buffedEclipse && !npc.boss && !npc.friendly && !npc.dontTakeDamage) cooldownSlot = 1; - if (npc.type == NPCID.BrainofCthulhu && npc.alpha > 0) - return false; + if (npc.type == NPCID.BrainofCthulhu && npc.alpha > 0) + return false; return true; } - #endregion + #endregion - #region ModifyHitPlayer - public override void ModifyHitPlayer(NPC npc, Player target, ref int damage, ref bool crit) + #region ModifyHitPlayer + public override void ModifyHitPlayer(NPC npc, Player target, ref int damage, ref bool crit) { - if (tSad) - { - damage /= 2; - } - if (target.GetModPlayer(mod).beeResist) + if (tSad) { - if (CalamityMod.beeEnemyList.Contains(npc.type)) + damage /= 2; + } + if (target.GetModPlayer(mod).beeResist) + { + if (CalamityMod.beeEnemyList.Contains(npc.type)) { damage = (int)((double)damage * 0.75); } } } - #endregion + #endregion - #region StrikeNPC - public override bool StrikeNPC(NPC npc, ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) + #region StrikeNPC + public override bool StrikeNPC(NPC npc, ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) { - if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail) - { - if (this.newAI[1] < 480f) - damage *= 0.1; - } - if (enraged) - { - damage *= 5.0; - } - if (this.protection > 0f) + if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail || + npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) { - int trueDefense = defense; - if (pFlames) - { - trueDefense -= 4; - } - if (wDeath) - { - trueDefense -= 50; - } - if (gsInferno) - { - trueDefense -= 20; - } - if (aFlames) - { - trueDefense -= 10; - } - if (gState) - { - trueDefense /= 2; - } - if (aCrunch) - { - trueDefense /= 3; - } - if (trueDefense < 0) - { - trueDefense = 0; - } - double newDamage = (damage + ((double)trueDefense * 0.25)); //defense damage boost 150 * .25 = 45 + 150 = 195 damage 180 defense - if (marked) - { - this.protection *= 0.5f; - } + if (newAI[1] < 480f || newAI[2] > 0f) + damage *= 0.01; + } + if (enraged) + { + damage *= 2.25; + } + double yellowCandleDamageBoost = damage * 0.05; //get value before DR + if (protection > 0f) + { + int trueDefense = defense; + if (pFlames) + { + trueDefense -= 4; + } + if (wDeath) + { + trueDefense -= 50; + } + if (gsInferno) + { + trueDefense -= 20; + } + if (aFlames) + { + trueDefense -= 10; + } + if (gState) + { + trueDefense /= 2; + } + if (aCrunch) + { + trueDefense /= 3; + } + if (trueDefense < 0) + { + trueDefense = 0; + } + double newDamage = damage + ((double)trueDefense * 0.25); //defense damage boost 150 * .25 = 45 + 150 = 195 damage 180 defense + if (marked) + { + protection *= 0.5f; + } if (npc.ichor) { - this.protection *= 0.75f; + protection *= 0.75f; + } + else if (npc.onFire2) + { + protection *= 0.8f; } - else if (npc.onFire2) - { - this.protection *= 0.8f; - } if (npc.betsysCurse) { - this.protection *= 0.66f; + protection *= 0.66f; } - if (this.protection < 0f) + if (protection < 0f) { - this.protection = 0f; + protection = 0f; } if (newDamage >= 1.0) { - newDamage = ((double)(1f - this.protection) * newDamage); //DR calc 195 * 0.4 = 78 damage 0.6 DR + newDamage = (double)(1f - protection) * newDamage; //DR calc 195 * 0.4 = 78 damage 0.6 DR if (newDamage < 1.0) { newDamage = 1.0; } } damage = newDamage; - this.protection = this.defProtection; + protection = defProtection; + } + if (yellowCandle) + { + damage += yellowCandleDamageBoost; } return true; //vanilla defense calc 78 - (180 / 2 = 90) = 0, boosted to 1 by calc } - #endregion + #endregion - #region PreAI - public override bool PreAI(NPC npc) - { - if (setNewName) - { - setNewName = false; - if (npc.type == NPCID.Guide) - { - switch (Main.rand.Next(35)) //34 guide names - { - case 0: - npc.GivenName = "Lapp"; - break; - default: - break; - } - } - else if (npc.type == NPCID.Wizard) - { - switch (Main.rand.Next(24)) //23 wizard names - { - case 0: - npc.GivenName = "Mage One-Trick"; - break; - default: - break; - } - } - else if (npc.type == NPCID.Steampunker) - { - switch (Main.rand.Next(22)) //21 steampunker names - { - case 0: - npc.GivenName = "Vorbis"; - break; - default: - break; - } - } - } - if (npc.type == NPCID.TargetDummy || npc.type == mod.NPCType("SuperDummy")) - { - npc.chaseable = !CalamityPlayer.areThereAnyDamnBosses; - } - if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail) - { - if (this.newAI[1] < 480f) - { - this.newAI[1] += 1f; - } - } - #region BossRush - if (CalamityWorld.bossRushActive && !npc.friendly && !npc.townNPC) - { - switch (CalamityWorld.bossRushStage) - { - case 0: - if (npc.type != NPCID.QueenBee && npc.type != NPCID.Bee && npc.type != NPCID.BeeSmall) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 1: - if (npc.type != NPCID.BrainofCthulhu && npc.type != NPCID.Creeper) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 2: - if (npc.type != NPCID.KingSlime && npc.type != NPCID.BlueSlime && npc.type != NPCID.SlimeSpiked) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 3: - if (npc.type != NPCID.EyeofCthulhu && npc.type != NPCID.ServantofCthulhu) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 4: - if (npc.type != NPCID.SkeletronPrime && npc.type != NPCID.PrimeSaw && npc.type != NPCID.PrimeVice && - npc.type != NPCID.PrimeCannon && npc.type != NPCID.PrimeLaser) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 5: - if (npc.type != NPCID.Golem && npc.type != NPCID.GolemFistLeft && npc.type != NPCID.GolemFistRight && - npc.type != NPCID.GolemHead && npc.type != NPCID.GolemHeadFree) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 6: - if (npc.type != mod.NPCType("ProfanedGuardianBoss") && npc.type != mod.NPCType("ProfanedGuardianBoss2") && - npc.type != mod.NPCType("ProfanedGuardianBoss3")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 7: - if (npc.type != NPCID.EaterofWorldsHead && npc.type != NPCID.EaterofWorldsBody && npc.type != NPCID.EaterofWorldsTail && - npc.type != NPCID.VileSpit) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 8: - if (npc.type != mod.NPCType("Astrageldon") && npc.type != mod.NPCType("AstralSlime")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 9: - if (npc.type != NPCID.TheDestroyer && npc.type != NPCID.TheDestroyerBody && npc.type != NPCID.TheDestroyerTail && - npc.type != NPCID.Probe) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 10: - if (npc.type != NPCID.Spazmatism && npc.type != NPCID.Retinazer) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 11: - if (npc.type != mod.NPCType("Bumblefuck") && npc.type != mod.NPCType("Bumblefuck2") && - npc.type != NPCID.Spazmatism && npc.type != NPCID.Retinazer) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 12: - if (npc.type != NPCID.WallofFlesh && npc.type != NPCID.WallofFleshEye && npc.type != NPCID.TheHungry && - npc.type != NPCID.TheHungryII && npc.type != NPCID.LeechHead && npc.type != NPCID.LeechBody && - npc.type != NPCID.LeechTail) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 13: - if (npc.type != mod.NPCType("HiveMind") && npc.type != mod.NPCType("HiveMindP2") && - npc.type != mod.NPCType("DarkHeart") && npc.type != mod.NPCType("HiveBlob") && - npc.type != mod.NPCType("DankCreeper") && npc.type != mod.NPCType("HiveBlob2")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 14: - if (npc.type != NPCID.SkeletronHead && npc.type != NPCID.SkeletronHand) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 15: - if (npc.type != mod.NPCType("StormWeaverHead") && npc.type != mod.NPCType("StormWeaverBody") && - npc.type != mod.NPCType("StormWeaverTail") && npc.type != mod.NPCType("StormWeaverHeadNaked") && - npc.type != mod.NPCType("StormWeaverBodyNaked") && npc.type != mod.NPCType("StormWeaverTailNaked") && - npc.type != mod.NPCType("StasisProbe") && npc.type != mod.NPCType("StasisProbeNaked")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 16: - if (npc.type != mod.NPCType("AquaticScourgeHead") && npc.type != mod.NPCType("AquaticScourgeBody") && - npc.type != mod.NPCType("AquaticScourgeBodyAlt") && npc.type != mod.NPCType("AquaticScourgeTail") && - npc.type != mod.NPCType("AquaticParasite") && npc.type != mod.NPCType("AquaticUrchin") && - npc.type != mod.NPCType("AquaticSeekerHead") && npc.type != mod.NPCType("AquaticSeekerBody") && - npc.type != mod.NPCType("AquaticSeekerTail")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 17: - if (npc.type != mod.NPCType("DesertScourgeHead") && npc.type != mod.NPCType("DesertScourgeBody") && - npc.type != mod.NPCType("DesertScourgeTail") && npc.type != mod.NPCType("DesertScourgeHeadSmall") && - npc.type != mod.NPCType("DesertScourgeBodySmall") && npc.type != mod.NPCType("DesertScourgeTailSmall") && - npc.type != mod.NPCType("DriedSeekerHead") && npc.type != mod.NPCType("DriedSeekerBody") && - npc.type != mod.NPCType("DriedSeekerTail")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 18: - if (npc.type != NPCID.CultistBoss && npc.type != NPCID.CultistBossClone && npc.type != NPCID.CultistDragonHead && - npc.type != NPCID.CultistDragonBody1 && npc.type != NPCID.CultistDragonBody2 && npc.type != NPCID.CultistDragonBody3 && - npc.type != NPCID.CultistDragonBody4 && npc.type != NPCID.CultistDragonTail && npc.type != NPCID.AncientCultistSquidhead && - npc.type != NPCID.AncientLight && npc.type != NPCID.AncientDoom && npc.type != mod.NPCType("Eidolist")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 19: - if (npc.type != mod.NPCType("CrabulonIdle") && npc.type != mod.NPCType("CrabShroom")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 20: - if (npc.type != NPCID.Plantera && npc.type != NPCID.PlanterasTentacle && npc.type != NPCID.PlanterasHook && - npc.type != NPCID.Spore) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 21: - if (npc.type != mod.NPCType("CeaselessVoid") && npc.type != mod.NPCType("DarkEnergy") && - npc.type != mod.NPCType("DarkEnergy2") && npc.type != mod.NPCType("DarkEnergy3")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 22: - if (npc.type != mod.NPCType("PerforatorHive") && npc.type != mod.NPCType("PerforatorHeadLarge") && - npc.type != mod.NPCType("PerforatorBodyLarge") && npc.type != mod.NPCType("PerforatorTailLarge") && - npc.type != mod.NPCType("PerforatorHeadMedium") && npc.type != mod.NPCType("PerforatorBodyMedium") && - npc.type != mod.NPCType("PerforatorTailMedium") && npc.type != mod.NPCType("PerforatorHeadSmall") && - npc.type != mod.NPCType("PerforatorBodySmall") && npc.type != mod.NPCType("PerforatorTailSmall")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 23: - if (npc.type != mod.NPCType("Cryogen") && npc.type != mod.NPCType("CryogenIce") && - npc.type != mod.NPCType("IceMass") && npc.type != mod.NPCType("Cryocore") && - npc.type != mod.NPCType("Cryocore2")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 24: - if (npc.type != mod.NPCType("BrimstoneElemental") && npc.type != mod.NPCType("Brimling")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 25: - if (npc.type != mod.NPCType("CosmicWraith") && npc.type != mod.NPCType("SignusBomb") && - npc.type != mod.NPCType("CosmicLantern")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 26: - if (npc.type != mod.NPCType("ScavengerBody") && npc.type != mod.NPCType("ScavengerHead") && - npc.type != mod.NPCType("ScavengerClawLeft") && npc.type != mod.NPCType("ScavengerClawRight") && - npc.type != mod.NPCType("ScavengerLegLeft") && npc.type != mod.NPCType("ScavengerLegRight") && - npc.type != mod.NPCType("ScavengerHead2") && npc.type != mod.NPCType("RockPillar") && - npc.type != mod.NPCType("FlamePillar")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 27: - if (npc.type != NPCID.DukeFishron && npc.type != NPCID.DetonatingBubble && npc.type != NPCID.Sharkron && - npc.type != NPCID.Sharkron2) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 28: - if (npc.type != NPCID.MoonLordCore && npc.type != NPCID.MoonLordHead && npc.type != NPCID.MoonLordHand && - npc.type != NPCID.MoonLordFreeEye && npc.type != mod.NPCType("Eidolist")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 29: - if (npc.type != mod.NPCType("AstrumDeusHead") && npc.type != mod.NPCType("AstrumDeusBody") && - npc.type != mod.NPCType("AstrumDeusTail") && npc.type != mod.NPCType("AstrumDeusHeadSpectral") && - npc.type != mod.NPCType("AstrumDeusBodySpectral") && npc.type != mod.NPCType("AstrumDeusTailSpectral") && - npc.type != mod.NPCType("AstrumDeusProbe") && npc.type != mod.NPCType("AstrumDeusProbe2") && - npc.type != mod.NPCType("AstrumDeusProbe3")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 30: - if (npc.type != mod.NPCType("Polterghast") && npc.type != mod.NPCType("PhantomFuckYou") && - npc.type != mod.NPCType("PolterghastHook") && npc.type != mod.NPCType("PolterPhantom")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 31: - if (npc.type != mod.NPCType("PlaguebringerGoliath") && npc.type != mod.NPCType("PlagueBeeG") && - npc.type != mod.NPCType("PlagueBeeLargeG") && npc.type != mod.NPCType("PlagueHomingMissile") && - npc.type != mod.NPCType("PlagueMine") && npc.type != mod.NPCType("PlaguebringerShade")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 32: - if (npc.type != mod.NPCType("Calamitas") && npc.type != mod.NPCType("CalamitasRun") && - npc.type != mod.NPCType("CalamitasRun2") && npc.type != mod.NPCType("CalamitasRun3") && - npc.type != mod.NPCType("LifeSeeker") && npc.type != mod.NPCType("SoulSeeker")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 33: - if (npc.type != mod.NPCType("Siren") && npc.type != mod.NPCType("Leviathan") && - npc.type != mod.NPCType("AquaticAberration") && npc.type != mod.NPCType("Parasea") && - npc.type != mod.NPCType("SirenClone") && npc.type != mod.NPCType("SirenIce")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 34: - if (npc.type != mod.NPCType("SlimeGod") && npc.type != mod.NPCType("SlimeGodRun") && - npc.type != mod.NPCType("SlimeGodCore") && npc.type != mod.NPCType("SlimeGodSplit") && - npc.type != mod.NPCType("SlimeGodRunSplit") && npc.type != mod.NPCType("SlimeSpawnCorrupt") && - npc.type != mod.NPCType("SlimeSpawnCorrupt2") && npc.type != mod.NPCType("SlimeSpawnCrimson") && - npc.type != mod.NPCType("SlimeSpawnCrimson2")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 35: - if (npc.type != mod.NPCType("Providence") && npc.type != mod.NPCType("ProvSpawnDefense") && - npc.type != mod.NPCType("ProvSpawnOffense") && npc.type != mod.NPCType("ProvSpawnHealer")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 36: - if (npc.type != mod.NPCType("SupremeCalamitas") && npc.type != mod.NPCType("SCalWormBody") && - npc.type != mod.NPCType("SCalWormBodyWeak") && npc.type != mod.NPCType("SCalWormHead") && - npc.type != mod.NPCType("SCalWormTail") && npc.type != mod.NPCType("SoulSeekerSupreme") && - npc.type != mod.NPCType("SCalWormHeart") && npc.type != mod.NPCType("SupremeCataclysm") && - npc.type != mod.NPCType("SupremeCatastrophe")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 37: - if (npc.type != mod.NPCType("Yharon") && npc.type != mod.NPCType("DetonatingFlare") && - npc.type != mod.NPCType("DetonatingFlare2") && npc.type != mod.NPCType("DetonatingFlare3") && - npc.type != mod.NPCType("Bumblefuck3") && npc.type != mod.NPCType("Bumblefuck4")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - case 38: - if (npc.type != mod.NPCType("DevourerofGodsHeadS") && npc.type != mod.NPCType("DevourerofGodsBodyS") && - npc.type != mod.NPCType("DevourerofGodsTailS")) - { - npc.active = false; - npc.netUpdate = true; - } - break; - } - #region KSRush - if (npc.type == NPCID.KingSlime) - { - float num234 = 1f; - bool flag8 = false; - bool flag9 = false; - npc.aiAction = 0; - if (npc.ai[3] == 0f && npc.life > 0) - { - npc.ai[3] = (float)npc.lifeMax; - } - if (npc.localAI[3] == 0f && Main.netMode != 1) - { - npc.ai[0] = -100f; - npc.localAI[3] = 1f; - npc.TargetClosest(true); - npc.netUpdate = true; - } - if (Main.player[npc.target].dead) - { - npc.TargetClosest(true); - if (Main.player[npc.target].dead) - { - npc.timeLeft = 0; - if (Main.player[npc.target].Center.X < npc.Center.X) - { - npc.direction = 1; - } - else - { - npc.direction = -1; - } - } - } - if (!Main.player[npc.target].dead && npc.ai[2] >= 300f && npc.ai[1] < 5f && npc.velocity.Y == 0f) - { - npc.ai[2] = 0f; - npc.ai[0] = 0f; - npc.ai[1] = 5f; - if (Main.netMode != 1) - { - npc.TargetClosest(false); - Point point3 = npc.Center.ToTileCoordinates(); - Point point4 = Main.player[npc.target].Center.ToTileCoordinates(); - Vector2 vector30 = Main.player[npc.target].Center - npc.Center; - int num235 = 10; - int num236 = 0; - int num237 = 7; - int num238 = 0; - bool flag10 = false; - if (vector30.Length() > (enraged ? 1000f : 2000f)) - { - flag10 = true; - num238 = 100; - } - while (!flag10 && num238 < 100) - { - num238++; - int num239 = Main.rand.Next(point4.X - num235, point4.X + num235 + 1); - int num240 = Main.rand.Next(point4.Y - num235, point4.Y + 1); - if ((num240 < point4.Y - num237 || num240 > point4.Y + num237 || num239 < point4.X - num237 || num239 > point4.X + num237) && (num240 < point3.Y - num236 || num240 > point3.Y + num236 || num239 < point3.X - num236 || num239 > point3.X + num236) && !Main.tile[num239, num240].nactive()) - { - int num241 = num240; - int num242 = 0; - bool flag11 = Main.tile[num239, num241].nactive() && Main.tileSolid[(int)Main.tile[num239, num241].type] && !Main.tileSolidTop[(int)Main.tile[num239, num241].type]; - if (flag11) - { - num242 = 1; - } - else - { - while (num242 < 150 && num241 + num242 < Main.maxTilesY) - { - int num243 = num241 + num242; - bool flag12 = Main.tile[num239, num243].nactive() && Main.tileSolid[(int)Main.tile[num239, num243].type] && !Main.tileSolidTop[(int)Main.tile[num239, num243].type]; - if (flag12) - { - num242--; - break; - } - int num = num242; - num242 = num + 1; - } - } - num240 += num242; - bool flag13 = true; - if (flag13 && Main.tile[num239, num240].lava()) - { - flag13 = false; - } - if (flag13 && !Collision.CanHitLine(npc.Center, 0, 0, Main.player[npc.target].Center, 0, 0)) - { - flag13 = false; - } - if (flag13) - { - npc.localAI[1] = (float)(num239 * 16 + 8); - npc.localAI[2] = (float)(num240 * 16 + 16); - break; - } - } - } - if (num238 >= 100) - { - Vector2 bottom = Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].Bottom; - npc.localAI[1] = bottom.X; - npc.localAI[2] = bottom.Y; - } - } - } - if (!Collision.CanHitLine(npc.Center, 0, 0, Main.player[npc.target].Center, 0, 0)) - { - float[] var_9_AE8B_cp_0 = npc.ai; - int var_9_AE8B_cp_1 = 2; - float num244 = var_9_AE8B_cp_0[var_9_AE8B_cp_1]; - var_9_AE8B_cp_0[var_9_AE8B_cp_1] = num244 + 1f; - } - if (Math.Abs(npc.Top.Y - Main.player[npc.target].Bottom.Y) > 320f) - { - float[] var_9_AEDF_cp_0 = npc.ai; - int var_9_AEDF_cp_1 = 2; - float num244 = var_9_AEDF_cp_0[var_9_AEDF_cp_1]; - var_9_AEDF_cp_0[var_9_AEDF_cp_1] = num244 + 1f; - } - Dust dust; - if (npc.ai[1] == 5f) - { - flag8 = true; - npc.aiAction = 1; - float[] var_9_AF25_cp_0 = npc.ai; - int var_9_AF25_cp_1 = 0; - float num244 = var_9_AF25_cp_0[var_9_AF25_cp_1]; - var_9_AF25_cp_0[var_9_AF25_cp_1] = num244 + (enraged ? 2f : 1f); - num234 = MathHelper.Clamp((60f - npc.ai[0]) / 60f, 0f, 1f); - num234 = 0.5f + num234 * 0.5f; - if (npc.ai[0] >= 60f) - { - flag9 = true; - } - if (npc.ai[0] == 60f) - { - Gore.NewGore(npc.Center + new Vector2(-40f, (float)(-(float)npc.height / 2)), npc.velocity, 734, 1f); - } - if (npc.ai[0] >= 60f && Main.netMode != 1) - { - npc.Bottom = new Vector2(npc.localAI[1], npc.localAI[2]); - npc.ai[1] = 6f; - npc.ai[0] = 0f; - npc.netUpdate = true; - } - if (Main.netMode == 1 && npc.ai[0] >= 120f) - { - npc.ai[1] = 6f; - npc.ai[0] = 0f; - } - if (!flag9) - { - int num; - for (int num245 = 0; num245 < 10; num245 = num + 1) - { - int num246 = Dust.NewDust(npc.position + Vector2.UnitX * -20f, npc.width + 40, npc.height, 4, npc.velocity.X, npc.velocity.Y, 150, new Color(78, 136, 255, 80), 2f); - Main.dust[num246].noGravity = true; - dust = Main.dust[num246]; - dust.velocity *= 0.5f; - num = num245; - } - } - } - else if (npc.ai[1] == 6f) - { - flag8 = true; - npc.aiAction = 0; - float[] var_9_B163_cp_0 = npc.ai; - int var_9_B163_cp_1 = 0; - float num244 = var_9_B163_cp_0[var_9_B163_cp_1]; - var_9_B163_cp_0[var_9_B163_cp_1] = num244 + (enraged ? 2f : 1f); - num234 = MathHelper.Clamp(npc.ai[0] / 30f, 0f, 1f); - num234 = 0.5f + num234 * 0.5f; - if (npc.ai[0] >= 30f && Main.netMode != 1) - { - npc.ai[1] = 0f; - npc.ai[0] = 0f; - npc.netUpdate = true; - npc.TargetClosest(true); - } - if (Main.netMode == 1 && npc.ai[0] >= 60f) - { - npc.ai[1] = 0f; - npc.ai[0] = 0f; - npc.TargetClosest(true); - } - int num; - for (int num247 = 0; num247 < 10; num247 = num + 1) - { - int num248 = Dust.NewDust(npc.position + Vector2.UnitX * -20f, npc.width + 40, npc.height, 4, npc.velocity.X, npc.velocity.Y, 150, new Color(78, 136, 255, 80), 2f); - Main.dust[num248].noGravity = true; - dust = Main.dust[num248]; - dust.velocity *= 2f; - num = num247; - } - } - npc.dontTakeDamage = (npc.hide = flag9); - if (npc.velocity.Y == 0f) - { - npc.velocity.X = npc.velocity.X * 0.8f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) - { - npc.velocity.X = 0f; - } - if (!flag8) - { - npc.ai[0] += enraged ? 4f : 2f; - if ((double)npc.life < (double)npc.lifeMax * 0.8) - { - npc.ai[0] += 1f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.6) - { - npc.ai[0] += 1f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.4) - { - npc.ai[0] += 2f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.2) - { - npc.ai[0] += 3f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1) - { - npc.ai[0] += 4f; - } - if (npc.ai[0] >= 0f) - { - npc.netUpdate = true; - npc.TargetClosest(true); - if (npc.ai[1] == 3f) - { - npc.velocity.Y = -26f; - npc.velocity.X = npc.velocity.X + 7f * (float)npc.direction; - npc.ai[0] = -200f; - npc.ai[1] = 0f; - } - else if (npc.ai[1] == 2f) - { - npc.velocity.Y = -12f; - npc.velocity.X = npc.velocity.X + 9f * (float)npc.direction; - npc.ai[0] = -120f; - npc.ai[1] += 1f; - } - else - { - npc.velocity.Y = -16f; - npc.velocity.X = npc.velocity.X + 8f * (float)npc.direction; - npc.ai[0] = -120f; - npc.ai[1] += 1f; - } - } - else if (npc.ai[0] >= -30f) - { - npc.aiAction = 1; - } - } - } - else if (npc.target < 255 && ((npc.direction == 1 && npc.velocity.X < 3f) || (npc.direction == -1 && npc.velocity.X > -3f))) - { - if ((npc.direction == -1 && (double)npc.velocity.X < 0.1) || (npc.direction == 1 && (double)npc.velocity.X > -0.1)) - { - npc.velocity.X = npc.velocity.X + 0.2f * (float)npc.direction; - } - else - { - npc.velocity.X = npc.velocity.X * 0.93f; - } - } - int num249 = Dust.NewDust(npc.position, npc.width, npc.height, 4, npc.velocity.X, npc.velocity.Y, 255, new Color(0, 80, 255, 80), npc.scale * 1.2f); - Main.dust[num249].noGravity = true; - dust = Main.dust[num249]; - dust.velocity *= 0.5f; - if (npc.life > 0) - { - float num250 = (float)npc.life / (float)npc.lifeMax; - num250 = num250 * 0.5f + 0.75f; - num250 *= num234; - if (num250 != npc.scale) - { - npc.position.X = npc.position.X + (float)(npc.width / 2); - npc.position.Y = npc.position.Y + (float)npc.height; - npc.scale = num250; - npc.width = (int)(98f * npc.scale); - npc.height = (int)(92f * npc.scale); - npc.position.X = npc.position.X - (float)(npc.width / 2); - npc.position.Y = npc.position.Y - (float)npc.height; - } - if (Main.netMode != 1) - { - int num251 = (int)((double)npc.lifeMax * 0.05); - if ((float)(npc.life + num251) < npc.ai[3]) - { - npc.ai[3] = (float)npc.life; - int num252 = Main.rand.Next(1, 4); - int num; - for (int num253 = 0; num253 < num252; num253 = num + 1) - { - int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); - int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int num254 = 1; - if (Main.rand.Next(4) == 0) - { - num254 = 535; - } - int num255 = NPC.NewNPC(x, y, num254, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num255].SetDefaults(num254, -1f); - Main.npc[num255].velocity.X = (float)Main.rand.Next(-15, 16) * 0.1f; - Main.npc[num255].velocity.Y = (float)Main.rand.Next(-30, 1) * 0.1f; - Main.npc[num255].ai[0] = (float)(-1000 * Main.rand.Next(3)); - Main.npc[num255].ai[1] = 0f; - if (Main.netMode == 2 && num255 < 200) - { - NetMessage.SendData(23, -1, -1, null, num255, 0f, 0f, 0f, 0, 0, 0); - } - num = num253; - } - return false; - } - } - } - return false; - } - #endregion - #region BoCRush - else if (npc.type == NPCID.BrainofCthulhu) - { - NPC.crimsonBoss = npc.whoAmI; - npc.dontTakeDamage = false; - if (Main.netMode != 1 && npc.localAI[0] == 0f) - { - npc.localAI[0] = 1f; - int num; - for (int num789 = 0; num789 < 20; num789 = num + 1) - { - float num790 = npc.Center.X; - float num791 = npc.Center.Y; - num790 += (float)Main.rand.Next(-npc.width, npc.width); - num791 += (float)Main.rand.Next(-npc.height, npc.height); - int num792 = NPC.NewNPC((int)num790, (int)num791, 267, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num792].velocity = new Vector2((float)Main.rand.Next(-30, 31) * 0.1f, (float)Main.rand.Next(-30, 31) * 0.1f); - Main.npc[num792].netUpdate = true; - num = num789; - } - } - if (npc.ai[0] < 0f) - { - if (npc.localAI[2] == 0f) - { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); - npc.localAI[2] = 1f; - Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 392, 1f); - Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 393, 1f); - Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 394, 1f); - Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 395, 1f); - int num; - for (int num794 = 0; num794 < 20; num794 = num + 1) - { - Dust.NewDust(npc.position, npc.width, npc.height, 5, (float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f, 0, default(Color), 1f); - num = num794; - } - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); - } - this.newAI[0] += 1f; - if (this.newAI[0] >= 60f) - { - this.newAI[0] = 0f; - if (Main.netMode != 1 && NPC.CountNPCS(NPCID.Creeper) < 15) - { - int creeper = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2) + npc.velocity.X), (int)(npc.position.Y + (float)(npc.height / 2) + npc.velocity.Y), 267, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[creeper].netUpdate = true; - } - npc.netUpdate = true; - } - npc.knockBackResist = 0f; - npc.TargetClosest(true); - Vector2 vector98 = new Vector2(npc.Center.X, npc.Center.Y); - float num795 = Main.player[npc.target].Center.X - vector98.X; - float num796 = Main.player[npc.target].Center.Y - vector98.Y; - float num797 = (float)Math.Sqrt((double)(num795 * num795 + num796 * num796)); - float num798 = (enraged ? 21f : 14f); - num797 = num798 / num797; - num795 *= num797; - num796 *= num797; - npc.velocity.X = (npc.velocity.X * 50f + num795) / 51f; - npc.velocity.Y = (npc.velocity.Y * 50f + num796) / 51f; - if (npc.ai[0] == -1f) - { - if (Main.netMode != 1) - { - npc.localAI[1] += 1f; - if (npc.justHit) - { - npc.localAI[1] -= (float)Main.rand.Next(5); - } - int num799 = 60 + Main.rand.Next(120); - if (Main.netMode != 0) - { - num799 += Main.rand.Next(30, 90); - } - if (npc.localAI[1] >= (float)num799) - { - npc.localAI[1] = 0f; - npc.TargetClosest(true); - int num800 = 0; - int num801; - int num802; - while (true) - { - num800++; - num801 = (int)Main.player[npc.target].Center.X / 16; - num802 = (int)Main.player[npc.target].Center.Y / 16; - if (Main.rand.Next(2) == 0) - { - num801 += Main.rand.Next(7, 13); - } - else - { - num801 -= Main.rand.Next(7, 13); - } - if (Main.rand.Next(2) == 0) - { - num802 += Main.rand.Next(7, 13); - } - else - { - num802 -= Main.rand.Next(7, 13); - } - if (!WorldGen.SolidTile(num801, num802)) - { - break; - } - if (num800 > 100) - { - goto Block_2784; - } - } - npc.ai[3] = 0f; - npc.ai[0] = -2f; - npc.ai[1] = (float)num801; - npc.ai[2] = (float)num802; - npc.netUpdate = true; - npc.netSpam = 0; - Block_2784:; - } - } - } - else if (npc.ai[0] == -2f) - { - npc.velocity *= 0.9f; - if (Main.netMode != 0) - { - npc.ai[3] += 15f; - } - else - { - npc.ai[3] += 25f; - } - if (npc.ai[3] >= 255f) - { - npc.ai[3] = 255f; - npc.position.X = npc.ai[1] * 16f - (float)(npc.width / 2); - npc.position.Y = npc.ai[2] * 16f - (float)(npc.height / 2); - Main.PlaySound(SoundID.Item8, npc.Center); - npc.ai[0] = -3f; - npc.netUpdate = true; - npc.netSpam = 0; - } - npc.alpha = (int)npc.ai[3]; - } - else if (npc.ai[0] == -3f) - { - if (Main.netMode != 0) - { - npc.ai[3] -= 15f; - } - else - { - npc.ai[3] -= 25f; - } - if (npc.ai[3] <= 0f) - { - npc.ai[3] = 0f; - npc.ai[0] = -1f; - npc.netUpdate = true; - npc.netSpam = 0; - } - npc.alpha = (int)npc.ai[3]; - } - } - else - { - npc.TargetClosest(true); - Vector2 vector99 = new Vector2(npc.Center.X, npc.Center.Y); - float num803 = Main.player[npc.target].Center.X - vector99.X; - float num804 = Main.player[npc.target].Center.Y - vector99.Y; - float num805 = (float)Math.Sqrt((double)(num803 * num803 + num804 * num804)); - float num806 = (enraged ? 3f : 2f); - if (num805 < num806) - { - npc.velocity.X = num803; - npc.velocity.Y = num804; - } - else - { - num805 = num806 / num805; - npc.velocity.X = num803 * num805; - npc.velocity.Y = num804 * num805; - } - if (npc.ai[0] == 0f) - { - if (Main.netMode != 1) - { - int num807 = 0; - int num; - for (int num808 = 0; num808 < 200; num808 = num + 1) - { - if (Main.npc[num808].active && Main.npc[num808].type == 267) - { - num807++; - } - num = num808; - } - if (num807 == 0) - { - npc.ai[0] = -1f; - npc.localAI[1] = 0f; - npc.alpha = 0; - npc.netUpdate = true; - } - npc.localAI[1] += 1f; - if (npc.localAI[1] >= (float)(120 + Main.rand.Next(120))) - { - npc.localAI[1] = 0f; - npc.TargetClosest(true); - int num809 = 0; - int num810; - int num811; - while (true) - { - num809++; - num810 = (int)Main.player[npc.target].Center.X / 16; - num811 = (int)Main.player[npc.target].Center.Y / 16; - num810 += Main.rand.Next(-50, 51); - num811 += Main.rand.Next(-50, 51); - if (!WorldGen.SolidTile(num810, num811) && Collision.CanHit(new Vector2((float)(num810 * 16), (float)(num811 * 16)), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - break; - } - if (num809 > 100) - { - goto Block_2801; - } - } - npc.ai[0] = 1f; - npc.ai[1] = (float)num810; - npc.ai[2] = (float)num811; - npc.netUpdate = true; - Block_2801:; - } - } - } - else if (npc.ai[0] == 1f) - { - npc.alpha += 5; - if (npc.alpha >= 255) - { - Main.PlaySound(SoundID.Item8, npc.Center); - npc.alpha = 255; - npc.position.X = npc.ai[1] * 16f - (float)(npc.width / 2); - npc.position.Y = npc.ai[2] * 16f - (float)(npc.height / 2); - npc.ai[0] = 2f; - } - } - else if (npc.ai[0] == 2f) - { - npc.alpha -= 5; - if (npc.alpha <= 0) - { - npc.alpha = 0; - npc.ai[0] = 0f; - } - } - } - if (Main.player[npc.target].dead) - { - if (npc.localAI[3] < 120f) - { - float[] var_9_29972_cp_0 = npc.localAI; - int var_9_29972_cp_1 = 3; - float num244 = var_9_29972_cp_0[var_9_29972_cp_1]; - var_9_29972_cp_0[var_9_29972_cp_1] = num244 + 1f; - } - if (npc.localAI[3] > 60f) - { - npc.velocity.Y = npc.velocity.Y + (npc.localAI[3] - 60f) * 0.25f; - } - npc.ai[0] = 2f; - npc.alpha = 10; - return false; - } - if (npc.localAI[3] > 0f) - { - float[] var_9_299F7_cp_0 = npc.localAI; - int var_9_299F7_cp_1 = 3; - float num244 = var_9_299F7_cp_0[var_9_299F7_cp_1]; - var_9_299F7_cp_0[var_9_299F7_cp_1] = num244 - 1f; - return false; - } - return false; - } - #endregion - #region EoWRush - else if (npc.type == NPCID.EaterofWorldsHead) - { - Main.player[npc.target].ZoneCorrupt = true; - npc.reflectingProjectiles = true; - if (!Main.player[npc.target].dead) - { - this.newAI[0] += (enraged ? 6f : 3f); - } - if (this.newAI[0] >= 180f) - { - this.newAI[0] = 0f; - if (Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; - float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; - float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num349 *= num351; - num350 *= num351; - if (Main.netMode != 1) - { - float num418 = (enraged ? 18f : 12f); - int num419 = 12; - int num420 = 96; - num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num351 = num418 / num351; - num349 *= num351; - num350 *= num351; - num349 += (float)Main.rand.Next(-40, 41) * 0.05f; - num350 += (float)Main.rand.Next(-40, 41) * 0.05f; - vector34.X += num349 * 4f; - vector34.Y += num350 * 4f; - Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num420, num419, 0f, Main.myPlayer, 0f, 0f); - } - } - } - } - #endregion - #region QBRush - else if (npc.type == NPCID.QueenBee) - { - int num592 = 0; - int variable; - for (int num593 = 0; num593 < 255; num593 = variable + 1) - { - if (Main.player[num593].active && !Main.player[num593].dead && (npc.Center - Main.player[num593].Center).Length() < 1000f) - { - num592++; - } - variable = num593; - } - int num594 = (int)(20f * (1f - (float)npc.life / (float)npc.lifeMax)); - npc.defense = npc.defDefense + num594; - if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) - { - npc.TargetClosest(true); - } - bool dead4 = Main.player[npc.target].dead; - if (dead4) - { - if ((double)npc.position.Y < Main.worldSurface * 16.0 + 2000.0) - { - npc.velocity.Y = npc.velocity.Y + 0.04f; - } - if (npc.position.X < (float)(Main.maxTilesX * 8)) - { - npc.velocity.X = npc.velocity.X - 0.04f; - } - else - { - npc.velocity.X = npc.velocity.X + 0.04f; - } - if (npc.timeLeft > 10) - { - npc.timeLeft = 10; - return false; - } - } - else if (npc.ai[0] == -1f) - { - if (Main.netMode != 1) - { - float num595 = npc.ai[1]; - int num596; - do - { - num596 = Main.rand.Next(3); - if (num596 == 1) - { - num596 = 2; - } - else if (num596 == 2) - { - num596 = 3; - } - } - while ((float)num596 == num595); - npc.ai[0] = (float)num596; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - return false; - } - } - else if (npc.ai[0] == 0f) - { - int num597 = 5; - if (npc.ai[1] > (float)(2 * num597) && npc.ai[1] % 2f == 0f) - { - npc.ai[0] = -1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return false; - } - if (npc.ai[1] % 2f == 0f) - { - npc.TargetClosest(true); - if (Math.Abs(npc.position.Y + (float)(npc.height / 2) - (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2))) < 20f) - { - npc.localAI[0] = 1f; - npc.ai[1] += 1f; - npc.ai[2] = 0f; - float num598 = 24f; - Vector2 vector74 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num599 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector74.X; - float num600 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector74.Y; - float num601 = (float)Math.Sqrt((double)(num599 * num599 + num600 * num600)); - num601 = num598 / num601; - npc.velocity.X = num599 * num601; - npc.velocity.Y = num600 * num601; - npc.spriteDirection = npc.direction; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); - return false; - } - npc.localAI[0] = 0f; - float num602 = 18f; - float num603 = 0.4f; - if (npc.position.Y + (float)(npc.height / 2) < Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2)) - { - npc.velocity.Y = npc.velocity.Y + num603; - } - else - { - npc.velocity.Y = npc.velocity.Y - num603; - } - if (npc.velocity.Y < -12f) - { - npc.velocity.Y = -num602; - } - if (npc.velocity.Y > 12f) - { - npc.velocity.Y = num602; - } - if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > 600f) - { - npc.velocity.X = npc.velocity.X + 0.15f * (float)npc.direction; - } - else if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) < 300f) - { - npc.velocity.X = npc.velocity.X - 0.15f * (float)npc.direction; - } - else - { - npc.velocity.X = npc.velocity.X * 0.8f; - } - if (npc.velocity.X < -16f) - { - npc.velocity.X = -16f; - } - if (npc.velocity.X > 16f) - { - npc.velocity.X = 16f; - } - npc.spriteDirection = npc.direction; - return false; - } - else - { - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - int num604 = (enraged ? 150 : 250); - int num605 = 1; - if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) - { - num605 = -1; - } - if (npc.direction == num605 && Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > (float)num604) - { - npc.ai[2] = 1f; - } - if (npc.ai[2] != 1f) - { - npc.localAI[0] = 1f; - return false; - } - npc.TargetClosest(true); - npc.spriteDirection = npc.direction; - npc.localAI[0] = 0f; - npc.velocity *= 0.9f; - float num606 = 0.25f; - if (npc.life < npc.lifeMax / 2) - { - npc.velocity *= 0.9f; - } - if (npc.life < npc.lifeMax / 3) - { - npc.velocity *= 0.9f; - } - if (npc.life < npc.lifeMax / 5) - { - npc.velocity *= 0.9f; - } - if (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y) < num606) - { - npc.ai[2] = 0f; - npc.ai[1] += 1f; - return false; - } - } - } - else if (npc.ai[0] == 2f) - { - npc.TargetClosest(true); - npc.spriteDirection = npc.direction; - float num607 = 12f; - float num608 = 0.1f; - Vector2 vector75 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num609 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector75.X; - float num610 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 200f - vector75.Y; - float num611 = (float)Math.Sqrt((double)(num609 * num609 + num610 * num610)); - if (num611 < 200f) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.netUpdate = true; - return false; - } - num611 = num607 / num611; - if (npc.velocity.X < num609) - { - npc.velocity.X = npc.velocity.X + num608; - if (npc.velocity.X < 0f && num609 > 0f) - { - npc.velocity.X = npc.velocity.X + num608; - } - } - else if (npc.velocity.X > num609) - { - npc.velocity.X = npc.velocity.X - num608; - if (npc.velocity.X > 0f && num609 < 0f) - { - npc.velocity.X = npc.velocity.X - num608; - } - } - if (npc.velocity.Y < num610) - { - npc.velocity.Y = npc.velocity.Y + num608; - if (npc.velocity.Y < 0f && num610 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num608; - return false; - } - } - else if (npc.velocity.Y > num610) - { - npc.velocity.Y = npc.velocity.Y - num608; - if (npc.velocity.Y > 0f && num610 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num608; - return false; - } - } - } - else if (npc.ai[0] == 1f) - { - npc.localAI[0] = 0f; - npc.TargetClosest(true); - Vector2 vector76 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); - Vector2 vector77 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num612 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector77.X; - float num613 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector77.Y; - float num614 = (float)Math.Sqrt((double)(num612 * num612 + num613 * num613)); - npc.ai[1] += 1f; - npc.ai[1] += (float)(num592 / 2); - bool flag38 = false; - if (npc.ai[1] > 10f) - { - npc.ai[1] = 0f; - float[] var_9_2174E_cp_0 = npc.ai; - int var_9_2174E_cp_1 = 2; - float num244 = var_9_2174E_cp_0[var_9_2174E_cp_1]; - var_9_2174E_cp_0[var_9_2174E_cp_1] = num244 + 1f; - flag38 = true; - } - if (Collision.CanHit(vector76, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && flag38) - { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); - if (Main.netMode != 1) - { - int num615 = Main.rand.Next(210, 212); - int num616 = NPC.NewNPC((int)vector76.X, (int)vector76.Y, num615, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num616].velocity.X = (float)Main.rand.Next(-200, 201) * 0.002f; - Main.npc[num616].velocity.Y = (float)Main.rand.Next(-200, 201) * 0.002f; - Main.npc[num616].localAI[0] = 60f; - Main.npc[num616].netUpdate = true; - } - } - if (num614 > 400f || !Collision.CanHit(new Vector2(vector76.X, vector76.Y - 30f), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - float num617 = 14f; - float num618 = 0.1f; - vector77 = vector76; - num612 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector77.X; - num613 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector77.Y; - num614 = (float)Math.Sqrt((double)(num612 * num612 + num613 * num613)); - num614 = num617 / num614; - if (npc.velocity.X < num612) - { - npc.velocity.X = npc.velocity.X + num618; - if (npc.velocity.X < 0f && num612 > 0f) - { - npc.velocity.X = npc.velocity.X + num618; - } - } - else if (npc.velocity.X > num612) - { - npc.velocity.X = npc.velocity.X - num618; - if (npc.velocity.X > 0f && num612 < 0f) - { - npc.velocity.X = npc.velocity.X - num618; - } - } - if (npc.velocity.Y < num613) - { - npc.velocity.Y = npc.velocity.Y + num618; - if (npc.velocity.Y < 0f && num613 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num618; - } - } - else if (npc.velocity.Y > num613) - { - npc.velocity.Y = npc.velocity.Y - num618; - if (npc.velocity.Y > 0f && num613 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num618; - } - } - } - else - { - npc.velocity *= 0.9f; - } - npc.spriteDirection = npc.direction; - if (npc.ai[2] > 5f) - { - npc.ai[0] = -1f; - npc.ai[1] = 1f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 3f) - { - float num619 = 6f; - float num620 = 0.075f; - Vector2 vector78 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); - Vector2 vector79 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num621 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector79.X; - float num622 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 300f - vector79.Y; - float num623 = (float)Math.Sqrt((double)(num621 * num621 + num622 * num622)); - npc.ai[1] += 1f; - bool flag39 = false; - if (npc.ai[1] % 15f == 14f) - { - flag39 = true; - } - if (flag39 && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y && Collision.CanHit(vector78, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - Main.PlaySound(SoundID.Item17, npc.position); - if (Main.netMode != 1) - { - float num624 = (enraged ? 24f : 16f); - float num625 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector78.X + (float)Main.rand.Next(-80, 81); - float num626 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector78.Y + (float)Main.rand.Next(-40, 41); - float num627 = (float)Math.Sqrt((double)(num625 * num625 + num626 * num626)); - num627 = num624 / num627; - num625 *= num627; - num626 *= num627; - int num628 = 11; - int num629 = 55; - int num630 = Projectile.NewProjectile(vector78.X, vector78.Y, num625, num626, num629, num628, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num630].timeLeft = 300; - } - } - if (!Collision.CanHit(new Vector2(vector78.X, vector78.Y - 30f), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - num619 = 14f; - num620 = 0.1f; - vector79 = vector78; - num621 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector79.X; - num622 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector79.Y; - num623 = (float)Math.Sqrt((double)(num621 * num621 + num622 * num622)); - num623 = num619 / num623; - if (npc.velocity.X < num621) - { - npc.velocity.X = npc.velocity.X + num620; - if (npc.velocity.X < 0f && num621 > 0f) - { - npc.velocity.X = npc.velocity.X + num620; - } - } - else if (npc.velocity.X > num621) - { - npc.velocity.X = npc.velocity.X - num620; - if (npc.velocity.X > 0f && num621 < 0f) - { - npc.velocity.X = npc.velocity.X - num620; - } - } - if (npc.velocity.Y < num622) - { - npc.velocity.Y = npc.velocity.Y + num620; - if (npc.velocity.Y < 0f && num622 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num620; - } - } - else if (npc.velocity.Y > num622) - { - npc.velocity.Y = npc.velocity.Y - num620; - if (npc.velocity.Y > 0f && num622 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num620; - } - } - } - else if (num623 > 100f) - { - npc.TargetClosest(true); - npc.spriteDirection = npc.direction; - num623 = num619 / num623; - if (npc.velocity.X < num621) - { - npc.velocity.X = npc.velocity.X + num620; - if (npc.velocity.X < 0f && num621 > 0f) - { - npc.velocity.X = npc.velocity.X + num620 * 2f; - } - } - else if (npc.velocity.X > num621) - { - npc.velocity.X = npc.velocity.X - num620; - if (npc.velocity.X > 0f && num621 < 0f) - { - npc.velocity.X = npc.velocity.X - num620 * 2f; - } - } - if (npc.velocity.Y < num622) - { - npc.velocity.Y = npc.velocity.Y + num620; - if (npc.velocity.Y < 0f && num622 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num620 * 2f; - } - } - else if (npc.velocity.Y > num622) - { - npc.velocity.Y = npc.velocity.Y - num620; - if (npc.velocity.Y > 0f && num622 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num620 * 2f; - } - } - } - if (npc.ai[1] > 400f) - { - npc.ai[0] = -1f; - npc.ai[1] = 3f; - npc.netUpdate = true; - return false; - } - } - return false; - } - #endregion - #region DFRush - else if (npc.type == NPCID.DukeFishron) - { - if (npc.ai[0] == -1f || npc.ai[0] == 4f || npc.ai[0] == 9f) - { - npc.dontTakeDamage = true; - } - else if (npc.ai[0] <= 8f) - { - npc.dontTakeDamage = false; - } - float newDamage = (0.6f * Main.damageMultiplier); - bool flag = (double)npc.life <= (double)npc.lifeMax * 0.99; - bool flag2 = (double)npc.life <= (double)npc.lifeMax * 0.15; - bool flag3 = npc.ai[0] > 4f; - bool flag4 = npc.ai[0] > 9f; - bool flag5 = npc.ai[3] < 10f; - Vector2 vector = npc.Center; - if (flag4) - { - this.newAI[0] += 1f; - if (this.newAI[0] >= 480f) - { - this.newAI[0] = 0f; - if (Main.netMode != 1) - { - Projectile.NewProjectile(vector.X, vector.Y, 0f, 0f, 385, 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - } - npc.netUpdate = true; - } - npc.damage = (int)((float)npc.defDamage * 1.5f * newDamage); - npc.defense = 38; - } - else if (flag3) - { - npc.damage = (int)((float)npc.defDamage * 2.2f * newDamage); - npc.defense = (int)((float)npc.defDefense * 0.8f); - } - else - { - npc.damage = npc.defDamage; - npc.defense = npc.defDefense; - } - int num2 = 35; - float num3 = 0.65f; - float scaleFactor = 9.5f; - if (flag4) - { - num3 = (enraged ? 0.9f : 0.8f); - scaleFactor = (enraged ? 15f : 13f); - num2 = (enraged ? 22 : 25); - } - else if (flag3 & flag5) - { - num3 = (enraged ? 0.8f : 0.7f); - scaleFactor = (enraged ? 13f : 11f); - num2 = (enraged ? 30 : 35); - } - else if (flag5 && !flag3 && !flag4) - { - num2 = 25; - } - int num4 = 24; - float num5 = 18f; - if (flag4) - { - num4 = (enraged ? 18 : 20); - num5 = (enraged ? 30f : 28f); - } - else if (flag5 & flag3) - { - num4 = (enraged ? 21 : 23); - num5 = (enraged ? 25f : 22f); - } - int num6 = 80; - int num7 = 4; - float num8 = 0.3f; - float scaleFactor2 = 5f; - int num9 = 90; - int num10 = 180; - int num11 = 180; - int num12 = 30; - int num13 = 120; - int num14 = 4; - float scaleFactor3 = 6f; - float scaleFactor4 = 20f; - float num15 = 6.28318548f / (float)(num13 / 2); - int num16 = 75; - Player player = Main.player[npc.target]; - if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) - { - npc.TargetClosest(true); - player = Main.player[npc.target]; - npc.netUpdate = true; - } - if (player.dead || Vector2.Distance(player.Center, vector) > 5600f) - { - npc.velocity.Y = npc.velocity.Y - 0.4f; - if (npc.timeLeft > 10) - { - npc.timeLeft = 10; - } - if (npc.ai[0] > 4f) - { - npc.ai[0] = 5f; - } - else - { - npc.ai[0] = 0f; - } - npc.ai[2] = 0f; - } - if (player.position.Y < 800f || (double)player.position.Y > Main.worldSurface * 16.0 || (player.position.X > 6400f && player.position.X < (float)(Main.maxTilesX * 16 - 6400))) - { - num2 = 20; - num5 += 6f; - } - if (npc.localAI[0] == 0f) - { - npc.localAI[0] = 1f; - npc.alpha = 255; - npc.rotation = 0f; - if (Main.netMode != 1) - { - npc.ai[0] = -1f; - npc.netUpdate = true; - } - } - float num17 = (float)Math.Atan2((double)(player.Center.Y - vector.Y), (double)(player.Center.X - vector.X)); - if (npc.spriteDirection == 1) - { - num17 += 3.14159274f; - } - if (num17 < 0f) - { - num17 += 6.28318548f; - } - if (num17 > 6.28318548f) - { - num17 -= 6.28318548f; - } - if (npc.ai[0] == -1f) - { - num17 = 0f; - } - if (npc.ai[0] == 3f) - { - num17 = 0f; - } - if (npc.ai[0] == 4f) - { - num17 = 0f; - } - if (npc.ai[0] == 8f) - { - num17 = 0f; - } - float num18 = 0.04f; - if (npc.ai[0] == 1f || npc.ai[0] == 6f) - { - num18 = 0f; - } - if (npc.ai[0] == 7f) - { - num18 = 0f; - } - if (npc.ai[0] == 3f) - { - num18 = 0.01f; - } - if (npc.ai[0] == 4f) - { - num18 = 0.01f; - } - if (npc.ai[0] == 8f) - { - num18 = 0.01f; - } - if (npc.rotation < num17) - { - if ((double)(num17 - npc.rotation) > 3.1415926535897931) - { - npc.rotation -= num18; - } - else - { - npc.rotation += num18; - } - } - if (npc.rotation > num17) - { - if ((double)(npc.rotation - num17) > 3.1415926535897931) - { - npc.rotation += num18; - } - else - { - npc.rotation -= num18; - } - } - if (npc.rotation > num17 - num18 && npc.rotation < num17 + num18) - { - npc.rotation = num17; - } - if (npc.rotation < 0f) - { - npc.rotation += 6.28318548f; - } - if (npc.rotation > 6.28318548f) - { - npc.rotation -= 6.28318548f; - } - if (npc.rotation > num17 - num18 && npc.rotation < num17 + num18) - { - npc.rotation = num17; - } - if (npc.ai[0] != -1f && npc.ai[0] < 9f) - { - if (Collision.SolidCollision(npc.position, npc.width, npc.height)) - { - npc.alpha += 15; - } - else - { - npc.alpha -= 15; - } - if (npc.alpha < 0) - { - npc.alpha = 0; - } - if (npc.alpha > 150) - { - npc.alpha = 150; - } - } - if (npc.ai[0] == -1f) - { - npc.velocity *= 0.98f; - int num19 = Math.Sign(player.Center.X - vector.X); - if (num19 != 0) - { - npc.direction = num19; - npc.spriteDirection = -npc.direction; - } - if (npc.ai[2] > 20f) - { - npc.velocity.Y = -2f; - npc.alpha -= 5; - if (Collision.SolidCollision(npc.position, npc.width, npc.height)) - { - npc.alpha += 15; - } - if (npc.alpha < 0) - { - npc.alpha = 0; - } - if (npc.alpha > 150) - { - npc.alpha = 150; - } - } - if (npc.ai[2] == (float)(num9 - 30)) - { - int num20 = 36; - for (int i = 0; i < num20; i++) - { - Vector2 expr_80F = (Vector2.Normalize(npc.velocity) * new Vector2((float)npc.width / 2f, (float)npc.height) * 0.75f * 0.5f).RotatedBy((double)((float)(i - (num20 / 2 - 1)) * 6.28318548f / (float)num20), default(Vector2)) + npc.Center; - Vector2 vector2 = expr_80F - npc.Center; - int num21 = Dust.NewDust(expr_80F + vector2, 0, 0, 172, vector2.X * 2f, vector2.Y * 2f, 100, default(Color), 1.4f); - Main.dust[num21].noGravity = true; - Main.dust[num21].noLight = true; - Main.dust[num21].velocity = Vector2.Normalize(vector2) * 3f; - } - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num16) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 0f && !player.dead) - { - if (npc.ai[1] == 0f) - { - npc.ai[1] = (float)(300 * Math.Sign((vector - player.Center).X)); - } - Vector2 vector3 = Vector2.Normalize(player.Center + new Vector2(npc.ai[1], -200f) - vector - npc.velocity) * scaleFactor; - if (npc.velocity.X < vector3.X) - { - npc.velocity.X = npc.velocity.X + num3; - if (npc.velocity.X < 0f && vector3.X > 0f) - { - npc.velocity.X = npc.velocity.X + num3; - } - } - else if (npc.velocity.X > vector3.X) - { - npc.velocity.X = npc.velocity.X - num3; - if (npc.velocity.X > 0f && vector3.X < 0f) - { - npc.velocity.X = npc.velocity.X - num3; - } - } - if (npc.velocity.Y < vector3.Y) - { - npc.velocity.Y = npc.velocity.Y + num3; - if (npc.velocity.Y < 0f && vector3.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y + num3; - } - } - else if (npc.velocity.Y > vector3.Y) - { - npc.velocity.Y = npc.velocity.Y - num3; - if (npc.velocity.Y > 0f && vector3.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y - num3; - } - } - int num22 = Math.Sign(player.Center.X - vector.X); - if (num22 != 0) - { - if (npc.ai[2] == 0f && num22 != npc.direction) - { - npc.rotation += 3.14159274f; - } - npc.direction = num22; - if (npc.spriteDirection != -npc.direction) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num2) - { - int num23 = 0; - switch ((int)npc.ai[3]) - { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - num23 = 1; - break; - case 10: - npc.ai[3] = 1f; - num23 = 2; - break; - case 11: - npc.ai[3] = 0f; - num23 = 3; - break; - } - if (flag) - { - num23 = 4; - } - if (num23 == 1) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.velocity = Vector2.Normalize(player.Center - vector) * num5; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num22 != 0) - { - npc.direction = num22; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - } - else if (num23 == 2) - { - npc.ai[0] = 2f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - else if (num23 == 3) - { - npc.ai[0] = 3f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - else if (num23 == 4) - { - npc.ai[0] = 4f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 1f) - { - int num24 = 7; - for (int j = 0; j < num24; j++) - { - Vector2 arg_E1C_0 = (Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f).RotatedBy((double)(j - (num24 / 2 - 1)) * 3.1415926535897931 / (double)((float)num24), default(Vector2)) + vector; - Vector2 vector4 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); - int num25 = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, 172, vector4.X * 2f, vector4.Y * 2f, 100, default(Color), 1.4f); - Main.dust[num25].noGravity = true; - Main.dust[num25].noLight = true; - Main.dust[num25].velocity /= 4f; - Main.dust[num25].velocity -= npc.velocity; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num4) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 2f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 2f) - { - if (npc.ai[1] == 0f) - { - npc.ai[1] = (float)(300 * Math.Sign((vector - player.Center).X)); - } - Vector2 vector5 = Vector2.Normalize(player.Center + new Vector2(npc.ai[1], -200f) - vector - npc.velocity) * scaleFactor2; - if (npc.velocity.X < vector5.X) - { - npc.velocity.X = npc.velocity.X + num8; - if (npc.velocity.X < 0f && vector5.X > 0f) - { - npc.velocity.X = npc.velocity.X + num8; - } - } - else if (npc.velocity.X > vector5.X) - { - npc.velocity.X = npc.velocity.X - num8; - if (npc.velocity.X > 0f && vector5.X < 0f) - { - npc.velocity.X = npc.velocity.X - num8; - } - } - if (npc.velocity.Y < vector5.Y) - { - npc.velocity.Y = npc.velocity.Y + num8; - if (npc.velocity.Y < 0f && vector5.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y + num8; - } - } - else if (npc.velocity.Y > vector5.Y) - { - npc.velocity.Y = npc.velocity.Y - num8; - if (npc.velocity.Y > 0f && vector5.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y - num8; - } - } - if (npc.ai[2] == 0f) - { - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); - } - if (npc.ai[2] % (float)num7 == 0f) - { - Main.PlaySound(4, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); - if (Main.netMode != 1) - { - Vector2 vector6 = Vector2.Normalize(player.Center - vector) * (float)(npc.width + 20) / 2f + vector; - NPC.NewNPC((int)vector6.X, (int)vector6.Y + 45, 371, 0, 0f, 0f, 0f, 0f, 255); - } - } - int num26 = Math.Sign(player.Center.X - vector.X); - if (num26 != 0) - { - npc.direction = num26; - if (npc.spriteDirection != -npc.direction) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num6) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 3f) - { - npc.velocity *= 0.98f; - npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num9 - 30)) - { - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 9, 1f, 0f); - } - if (Main.netMode != 1 && npc.ai[2] == (float)(num9 - 30)) - { - Vector2 vector7 = npc.rotation.ToRotationVector2() * (Vector2.UnitX * (float)npc.direction) * (float)(npc.width + 20) / 2f + vector; - Projectile.NewProjectile(vector7.X, vector7.Y, (float)(npc.direction * 2), 8f, 385, 0, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(vector7.X, vector7.Y, (float)(-(float)npc.direction * 2), 8f, 385, 0, 0f, Main.myPlayer, 0f, 0f); - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num9) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 4f) - { - npc.velocity *= 0.98f; - npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num10 - 60)) - { - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num10) - { - npc.ai[0] = 5f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 5f && !player.dead) - { - if (npc.ai[1] == 0f) - { - npc.ai[1] = (float)(300 * Math.Sign((vector - player.Center).X)); - } - Vector2 vector8 = Vector2.Normalize(player.Center + new Vector2(npc.ai[1], -200f) - vector - npc.velocity) * scaleFactor; - if (npc.velocity.X < vector8.X) - { - npc.velocity.X = npc.velocity.X + num3; - if (npc.velocity.X < 0f && vector8.X > 0f) - { - npc.velocity.X = npc.velocity.X + num3; - } - } - else if (npc.velocity.X > vector8.X) - { - npc.velocity.X = npc.velocity.X - num3; - if (npc.velocity.X > 0f && vector8.X < 0f) - { - npc.velocity.X = npc.velocity.X - num3; - } - } - if (npc.velocity.Y < vector8.Y) - { - npc.velocity.Y = npc.velocity.Y + num3; - if (npc.velocity.Y < 0f && vector8.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y + num3; - } - } - else if (npc.velocity.Y > vector8.Y) - { - npc.velocity.Y = npc.velocity.Y - num3; - if (npc.velocity.Y > 0f && vector8.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y - num3; - } - } - int num27 = Math.Sign(player.Center.X - vector.X); - if (num27 != 0) - { - if (npc.ai[2] == 0f && num27 != npc.direction) - { - npc.rotation += 3.14159274f; - } - npc.direction = num27; - if (npc.spriteDirection != -npc.direction) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num2) - { - int num28 = 0; - switch ((int)npc.ai[3]) - { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - num28 = 1; - break; - case 6: - npc.ai[3] = 1f; - num28 = 2; - break; - case 7: - npc.ai[3] = 0f; - num28 = 3; - break; - } - if (flag2) - { - num28 = 4; - } - if (num28 == 1) - { - npc.ai[0] = 6f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.velocity = Vector2.Normalize(player.Center - vector) * num5; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num27 != 0) - { - npc.direction = num27; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - } - else if (num28 == 2) - { - npc.velocity = Vector2.Normalize(player.Center - vector) * scaleFactor4; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num27 != 0) - { - npc.direction = num27; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - npc.ai[0] = 7f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - else if (num28 == 3) - { - npc.ai[0] = 8f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - else if (num28 == 4) - { - npc.ai[0] = 9f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 6f) - { - int num29 = 7; - for (int k = 0; k < num29; k++) - { - Vector2 arg_1A97_0 = (Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f).RotatedBy((double)(k - (num29 / 2 - 1)) * 3.1415926535897931 / (double)((float)num29), default(Vector2)) + vector; - Vector2 vector9 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); - int num30 = Dust.NewDust(arg_1A97_0 + vector9, 0, 0, 172, vector9.X * 2f, vector9.Y * 2f, 100, default(Color), 1.4f); - Main.dust[num30].noGravity = true; - Main.dust[num30].noLight = true; - Main.dust[num30].velocity /= 4f; - Main.dust[num30].velocity -= npc.velocity; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num4) - { - npc.ai[0] = 5f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 2f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 7f) - { - if (npc.ai[2] == 0f) - { - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); - } - if (npc.ai[2] % (float)num14 == 0f) - { - Main.PlaySound(4, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); - if (Main.netMode != 1) - { - Vector2 vector10 = Vector2.Normalize(npc.velocity) * (float)(npc.width + 20) / 2f + vector; - int num31 = NPC.NewNPC((int)vector10.X, (int)vector10.Y + 45, 371, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num31].target = npc.target; - Main.npc[num31].velocity = Vector2.Normalize(npc.velocity).RotatedBy((double)(1.57079637f * (float)npc.direction), default(Vector2)) * scaleFactor3; - Main.npc[num31].netUpdate = true; - Main.npc[num31].ai[3] = (float)Main.rand.Next(80, 121) / 100f; - } - } - npc.velocity = npc.velocity.RotatedBy((double)(-(double)num15 * (float)npc.direction), default(Vector2)); - npc.rotation -= num15 * (float)npc.direction; - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num13) - { - npc.ai[0] = 5f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 8f) - { - npc.velocity *= 0.98f; - npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num9 - 30)) - { - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); - } - if (Main.netMode != 1 && npc.ai[2] == (float)(num9 - 30)) - { - Projectile.NewProjectile(vector.X, vector.Y, 0f, 0f, 385, 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num9) - { - npc.ai[0] = 5f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 9f) - { - if (npc.ai[2] < (float)(num11 - 90)) - { - if (Collision.SolidCollision(npc.position, npc.width, npc.height)) - { - npc.alpha += 15; - } - else - { - npc.alpha -= 15; - } - if (npc.alpha < 0) - { - npc.alpha = 0; - } - if (npc.alpha > 150) - { - npc.alpha = 150; - } - } - else if (npc.alpha < 255) - { - npc.alpha += 4; - if (npc.alpha > 255) - { - npc.alpha = 255; - } - } - npc.velocity *= 0.98f; - npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num11 - 60)) - { - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num11) - { - npc.ai[0] = 10f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 10f && !player.dead) - { - npc.dontTakeDamage = false; - npc.chaseable = false; - if (npc.alpha < 255) - { - npc.alpha += 25; - if (npc.alpha > 255) - { - npc.alpha = 255; - } - } - if (npc.ai[1] == 0f) - { - npc.ai[1] = (float)(360 * Math.Sign((vector - player.Center).X)); - } - Vector2 desiredVelocity = Vector2.Normalize(player.Center + new Vector2(npc.ai[1], -200f) - vector - npc.velocity) * scaleFactor; - npc.SimpleFlyMovement(desiredVelocity, num3); - int num32 = Math.Sign(player.Center.X - vector.X); - if (num32 != 0) - { - if (npc.ai[2] == 0f && num32 != npc.direction) - { - npc.rotation += 3.14159274f; - for (int l = 0; l < npc.oldPos.Length; l++) - { - npc.oldPos[l] = Vector2.Zero; - } - } - npc.direction = num32; - if (npc.spriteDirection != -npc.direction) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num2) - { - int num33 = 0; - switch ((int)npc.ai[3]) - { - case 0: - case 2: - case 3: - case 5: - case 6: - case 7: - num33 = 1; - break; - case 1: - case 4: - case 8: - num33 = 2; - break; - } - if (num33 == 1) - { - npc.ai[0] = 11f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.velocity = Vector2.Normalize(player.Center - vector) * num5; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num32 != 0) - { - npc.direction = num32; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - } - else if (num33 == 2) - { - npc.ai[0] = 12f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - else if (num33 == 3) - { - npc.ai[0] = 13f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 11f) - { - npc.dontTakeDamage = false; - npc.chaseable = true; - npc.alpha -= 25; - if (npc.alpha < 0) - { - npc.alpha = 0; - } - int num34 = 7; - for (int m = 0; m < num34; m++) - { - Vector2 arg_2444_0 = (Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f).RotatedBy((double)(m - (num34 / 2 - 1)) * 3.1415926535897931 / (double)((float)num34), default(Vector2)) + vector; - Vector2 vector11 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); - int num35 = Dust.NewDust(arg_2444_0 + vector11, 0, 0, 172, vector11.X * 2f, vector11.Y * 2f, 100, default(Color), 1.4f); - Main.dust[num35].noGravity = true; - Main.dust[num35].noLight = true; - Main.dust[num35].velocity /= 4f; - Main.dust[num35].velocity -= npc.velocity; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num4) - { - npc.ai[0] = 10f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 1f; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 12f) - { - npc.dontTakeDamage = true; - npc.chaseable = false; - if (npc.alpha < 255) - { - npc.alpha += 17; - if (npc.alpha > 255) - { - npc.alpha = 255; - } - } - npc.velocity *= 0.98f; - npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num12 / 2)) - { - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); - } - if (Main.netMode != 1 && npc.ai[2] == (float)(num12 / 2)) - { - if (npc.ai[1] == 0f) - { - npc.ai[1] = (float)(300 * Math.Sign((vector - player.Center).X)); - } - Vector2 center = player.Center + new Vector2(-npc.ai[1], -200f); - vector = (npc.Center = center); - int num36 = Math.Sign(player.Center.X - vector.X); - if (num36 != 0) - { - if (npc.ai[2] == 0f && num36 != npc.direction) - { - npc.rotation += 3.14159274f; - for (int n = 0; n < npc.oldPos.Length; n++) - { - npc.oldPos[n] = Vector2.Zero; - } - } - npc.direction = num36; - if (npc.spriteDirection != -npc.direction) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num12) - { - npc.ai[0] = 10f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 1f; - if (npc.ai[3] >= 9f) - { - npc.ai[3] = 0f; - } - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[0] == 13f) - { - if (npc.ai[2] == 0f) - { - Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); - } - npc.velocity = npc.velocity.RotatedBy((double)(-(double)num15 * (float)npc.direction), default(Vector2)); - npc.rotation -= num15 * (float)npc.direction; - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num13) - { - npc.ai[0] = 10f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 1f; - npc.netUpdate = true; - } - } - return false; - } - #endregion - } - #endregion - if (CalamityWorld.revenge || CalamityWorld.bossRushActive) - { - #region Mothron - if (npc.type == NPCID.Mothron && CalamityWorld.buffedEclipse) - { - int num1353 = 3; - npc.noTileCollide = false; - npc.noGravity = true; - npc.knockBackResist = 0.2f * Main.expertKnockBack; - npc.damage = npc.defDamage; - if (!Main.eclipse) - { - npc.ai[0] = -1f; - } - else if (npc.target < 0 || Main.player[npc.target].dead || !Main.player[npc.target].active) - { - npc.TargetClosest(true); - Vector2 vector235 = Main.player[npc.target].Center - npc.Center; - if (Main.player[npc.target].dead || vector235.Length() > 3000f) - { - npc.ai[0] = -1f; - } - } - else - { - Vector2 vector236 = Main.player[npc.target].Center - npc.Center; - if (npc.ai[0] > 1f && vector236.Length() > 1000f) - { - npc.ai[0] = 1f; - } - } - if (npc.ai[0] == -1f) - { - Vector2 value37 = new Vector2(0f, -8f); - npc.velocity = (npc.velocity * 22f + value37) / 10f; - npc.noTileCollide = true; - npc.dontTakeDamage = true; - return false; - } - if (npc.ai[0] == 0f) - { - npc.TargetClosest(true); - if (npc.Center.X < Main.player[npc.target].Center.X - 2f) - { - npc.direction = 1; - } - if (npc.Center.X > Main.player[npc.target].Center.X + 2f) - { - npc.direction = -1; - } - npc.spriteDirection = npc.direction; - npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.025f) / 10f; - if (npc.collideX) - { - npc.velocity.X = npc.velocity.X * (-npc.oldVelocity.X * 0.5f); - if (npc.velocity.X > 30f) - { - npc.velocity.X = 30f; - } - if (npc.velocity.X < -30f) - { - npc.velocity.X = -30f; - } - } - if (npc.collideY) - { - npc.velocity.Y = npc.velocity.Y * (-npc.oldVelocity.Y * 0.5f); - if (npc.velocity.Y > 30f) - { - npc.velocity.Y = 30f; - } - if (npc.velocity.Y < -30f) - { - npc.velocity.Y = -30f; - } - } - Vector2 value38 = Main.player[npc.target].Center - npc.Center; - value38.Y -= 200f; - if (value38.Length() > 2000f) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - } - else if (value38.Length() > 80f) - { - float scaleFactor15 = 13f; - float num1354 = 30f; - value38.Normalize(); - value38 *= scaleFactor15; - npc.velocity = (npc.velocity * (num1354 - 1f) + value38) / num1354; - } - else if (npc.velocity.Length() > 2f) - { - npc.velocity *= 0.95f; - } - else if (npc.velocity.Length() < 1f) - { - npc.velocity *= 1.05f; - } - npc.ai[1] += 1f; - if (npc.justHit) - { - npc.ai[1] += (float)Main.rand.Next(10, 30); - } - if (npc.ai[1] >= 180f && Main.netMode != 1) - { - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.netUpdate = true; - while (npc.ai[0] == 0f) - { - int num1355 = Main.rand.Next(3); - if (num1355 == 0 && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1)) - { - npc.ai[0] = 2f; - } - else if (num1355 == 1) - { - npc.ai[0] = 3f; - } - else if (num1355 == 2 && NPC.CountNPCS(478) + NPC.CountNPCS(479) < num1353) - { - npc.ai[0] = 4f; - } - } - return false; - } - } - else - { - if (npc.ai[0] == 1f) - { - npc.collideX = false; - npc.collideY = false; - npc.noTileCollide = true; - npc.knockBackResist = 0f; - if (npc.target < 0 || !Main.player[npc.target].active || Main.player[npc.target].dead) - { - npc.TargetClosest(true); - } - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else if (npc.velocity.X > 0f) - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.02f) / 10f; - Vector2 value39 = Main.player[npc.target].Center - npc.Center; - if (value39.Length() < 300f && !Collision.SolidCollision(npc.position, npc.width, npc.height)) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - } - float scaleFactor16 = 14f + value39.Length() / 100f; - float num1356 = 25f; - value39.Normalize(); - value39 *= scaleFactor16; - npc.velocity = (npc.velocity * (num1356 - 1f) + value39) / num1356; - return false; - } - if (npc.ai[0] == 2f) - { - npc.damage = (int)((double)npc.defDamage * 0.75); - npc.knockBackResist = 0f; - if (npc.target < 0 || !Main.player[npc.target].active || Main.player[npc.target].dead) - { - npc.TargetClosest(true); - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - } - if (Main.player[npc.target].Center.X - 10f < npc.Center.X) - { - npc.direction = -1; - } - else if (Main.player[npc.target].Center.X + 10f > npc.Center.X) - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.025f) / 5f; - if (npc.collideX) - { - npc.velocity.X = npc.velocity.X * (-npc.oldVelocity.X * 0.5f); - if (npc.velocity.X > 30f) - { - npc.velocity.X = 30f; - } - if (npc.velocity.X < -30f) - { - npc.velocity.X = -30f; - } - } - if (npc.collideY) - { - npc.velocity.Y = npc.velocity.Y * (-npc.oldVelocity.Y * 0.5f); - if (npc.velocity.Y > 30f) - { - npc.velocity.Y = 30f; - } - if (npc.velocity.Y < -30f) - { - npc.velocity.Y = -30f; - } - } - Vector2 value40 = Main.player[npc.target].Center - npc.Center; - value40.Y -= 20f; - npc.ai[2] += 0.0222222228f; - if (Main.expertMode) - { - npc.ai[2] += 0.0166666675f; - } - float scaleFactor17 = 13f + npc.ai[2] + value40.Length() / 120f; - float num1357 = 20f; - value40.Normalize(); - value40 *= scaleFactor17; - npc.velocity = (npc.velocity * (num1357 - 1f) + value40) / num1357; - npc.ai[1] += 1f; - if (npc.ai[1] > 240f || !Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1)) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - return false; - } - } - else - { - if (npc.ai[0] == 3f) - { - npc.knockBackResist = 0f; - npc.noTileCollide = true; - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.0175f) / 5f; - Vector2 value41 = Main.player[npc.target].Center - npc.Center; - value41.Y -= 12f; - if (npc.Center.X > Main.player[npc.target].Center.X) - { - value41.X += 400f; - } - else - { - value41.X -= 400f; - } - if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) > 350f && Math.Abs(npc.Center.Y - Main.player[npc.target].Center.Y) < 20f) - { - npc.ai[0] = 3.1f; - npc.ai[1] = 0f; - } - npc.ai[1] += 0.0333333351f; - float scaleFactor18 = 20f + npc.ai[1]; - float num1358 = 4f; - value41.Normalize(); - value41 *= scaleFactor18; - npc.velocity = (npc.velocity * (num1358 - 1f) + value41) / num1358; - return false; - } - if (npc.ai[0] == 3.1f) - { - npc.knockBackResist = 0f; - npc.noTileCollide = true; - npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.0175f) / 5f; - Vector2 vector237 = Main.player[npc.target].Center - npc.Center; - vector237.Y -= 12f; - float scaleFactor19 = 30f; - float num1359 = 8f; - vector237.Normalize(); - vector237 *= scaleFactor19; - npc.velocity = (npc.velocity * (num1359 - 1f) + vector237) / num1359; - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - npc.ai[1] += 1f; - if (npc.ai[1] > 10f) - { - npc.velocity = vector237; - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.ai[0] = 3.2f; - npc.ai[1] = 0f; - npc.ai[1] = (float)npc.direction; - return false; - } - } - else - { - if (npc.ai[0] == 3.2f) - { - npc.damage = (int)((double)npc.defDamage * 1.5); - npc.collideX = false; - npc.collideY = false; - npc.knockBackResist = 0f; - npc.noTileCollide = true; - npc.ai[2] += 0.0333333351f; - npc.velocity.X = (20f + npc.ai[2]) * npc.ai[1]; - if ((npc.ai[1] > 0f && npc.Center.X > Main.player[npc.target].Center.X + 260f) || (npc.ai[1] < 0f && npc.Center.X < Main.player[npc.target].Center.X - 260f)) - { - if (!Collision.SolidCollision(npc.position, npc.width, npc.height)) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - } - else if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) > 1600f) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - } - } - npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.0175f) / 5f; - return false; - } - if (npc.ai[0] == 4f) - { - npc.ai[0] = 0f; - npc.TargetClosest(true); - if (Main.netMode != 1) - { - npc.ai[1] = -1f; - npc.ai[2] = -1f; - int num; - for (int num1360 = 0; num1360 < 1000; num1360 = num + 1) - { - int num1361 = (int)Main.player[npc.target].Center.X / 16; - int num1362 = (int)Main.player[npc.target].Center.Y / 16; - int num1363 = 30 + num1360 / 50; - int num1364 = 20 + num1360 / 75; - num1361 += Main.rand.Next(-num1363, num1363 + 1); - num1362 += Main.rand.Next(-num1364, num1364 + 1); - if (!WorldGen.SolidTile(num1361, num1362)) - { - while (!WorldGen.SolidTile(num1361, num1362) && (double)num1362 < Main.worldSurface) - { - num1362++; - } - if ((new Vector2((float)(num1361 * 16 + 8), (float)(num1362 * 16 + 8)) - Main.player[npc.target].Center).Length() < 2100f) - { - npc.ai[0] = 4.1f; - npc.ai[1] = (float)num1361; - npc.ai[2] = (float)num1362; - break; - } - } - num = num1360; - } - } - npc.netUpdate = true; - return false; - } - if (npc.ai[0] == 4.1f) - { - if (npc.velocity.X < -2f) - { - npc.direction = -1; - } - else if (npc.velocity.X > 2f) - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.025f) / 10f; - npc.noTileCollide = true; - int num1365 = (int)npc.ai[1]; - int num1366 = (int)npc.ai[2]; - float x2 = (float)(num1365 * 16 + 8); - float y2 = (float)(num1366 * 16 - 20); - Vector2 vector238 = new Vector2(x2, y2); - vector238 -= npc.Center; - float num1367 = 6f + vector238.Length() / 150f; - if (num1367 > 10f) - { - num1367 = 10f; - } - float num1368 = 10f; - if (vector238.Length() < 10f) - { - npc.ai[0] = 4.2f; - } - vector238.Normalize(); - vector238 *= num1367; - npc.velocity = (npc.velocity * (num1368 - 1f) + vector238) / num1368; - return false; - } - if (npc.ai[0] == 4.2f) - { - npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.025f) / 10f; - npc.knockBackResist = 0f; - npc.noTileCollide = true; - int num1369 = (int)npc.ai[1]; - int num1370 = (int)npc.ai[2]; - float x3 = (float)(num1369 * 16 + 8); - float y3 = (float)(num1370 * 16 - 20); - Vector2 vector239 = new Vector2(x3, y3); - vector239 -= npc.Center; - float num1371 = 4f; - float num1372 = 2f; - if (Main.netMode != 1 && vector239.Length() < 4f) - { - int num1373 = 70; - if (Main.expertMode) - { - num1373 = (int)((double)num1373 * 0.75); - } - npc.ai[3] += 1f; - if (npc.ai[3] == (float)num1373) - { - NPC.NewNPC(num1369 * 16 + 8, num1370 * 16, 478, npc.whoAmI, 0f, 0f, 0f, 0f, 255); - } - else if (npc.ai[3] == (float)(num1373 * 2)) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - if (NPC.CountNPCS(478) + NPC.CountNPCS(479) < num1353 && Main.rand.Next(3) != 0) - { - npc.ai[0] = 4f; - } - else if (Collision.SolidCollision(npc.position, npc.width, npc.height)) - { - npc.ai[0] = 1f; - } - } - } - if (vector239.Length() > num1371) - { - vector239.Normalize(); - vector239 *= num1371; - } - npc.velocity = (npc.velocity * (num1372 - 1f) + vector239) / num1372; - return false; - } - } - } - } - return false; - } - #endregion - #region Pumpking - else if (npc.type == NPCID.Pumpking && CalamityWorld.downedDoG) - { - npc.localAI[0] += 1f; - if (npc.localAI[0] > 6f) - { - npc.localAI[0] = 0f; - npc.localAI[1] += 1f; - if (npc.localAI[1] > 4f) - { - npc.localAI[1] = 0f; - } - } - if (Main.netMode != 1) - { - npc.localAI[2] += 1f; - if (npc.localAI[2] > 300f) - { - npc.ai[3] = (float)Main.rand.Next(3); - npc.localAI[2] = 0f; - } - else if (npc.ai[3] == 0f && npc.localAI[2] % 30f == 0f && npc.localAI[2] > 30f) - { - float num856 = 10f; - Vector2 vector109 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f + 30f); - if (!WorldGen.SolidTile((int)vector109.X / 16, (int)vector109.Y / 16)) - { - float num857 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector109.X; - float num858 = Main.player[npc.target].position.Y - vector109.Y; - num857 += (float)Main.rand.Next(-50, 51); - num858 += (float)Main.rand.Next(50, 201); - num858 *= 0.2f; - float num859 = (float)Math.Sqrt((double)(num857 * num857 + num858 * num858)); - num859 = num856 / num859; - num857 *= num859; - num858 *= num859; - num857 *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f; - num858 *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f; - Projectile.NewProjectile(vector109.X, vector109.Y, num857, num858, Main.rand.Next(326, 329), 60, 0f, Main.myPlayer, 0f, 0f); - } - } - } - if (npc.ai[0] == 0f && Main.netMode != 1) - { - npc.TargetClosest(true); - npc.ai[0] = 1f; - int num861 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)npc.position.Y + npc.height / 2, 328, npc.whoAmI, 0f, 0f, 0f, 0f, 255); - Main.npc[num861].ai[0] = -1f; - Main.npc[num861].ai[1] = (float)npc.whoAmI; - Main.npc[num861].target = npc.target; - Main.npc[num861].netUpdate = true; - num861 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)npc.position.Y + npc.height / 2, 328, npc.whoAmI, 0f, 0f, 0f, 0f, 255); - Main.npc[num861].ai[0] = 1f; - Main.npc[num861].ai[1] = (float)npc.whoAmI; - Main.npc[num861].ai[3] = 150f; - Main.npc[num861].target = npc.target; - Main.npc[num861].netUpdate = true; - } - if (Main.player[npc.target].dead || Math.Abs(npc.position.X - Main.player[npc.target].position.X) > 2000f || Math.Abs(npc.position.Y - Main.player[npc.target].position.Y) > 2000f) - { - npc.TargetClosest(true); - if (Main.player[npc.target].dead || Math.Abs(npc.position.X - Main.player[npc.target].position.X) > 2000f || Math.Abs(npc.position.Y - Main.player[npc.target].position.Y) > 2000f) - { - npc.ai[1] = 2f; - } - } - if (Main.dayTime) - { - npc.velocity.Y = npc.velocity.Y + 0.3f; - npc.velocity.X = npc.velocity.X * 0.9f; - } - else if (npc.ai[1] == 0f) - { - npc.ai[2] += 1f; - if (npc.ai[2] >= 300f) - { - if (npc.ai[3] != 1f) - { - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - else - { - npc.ai[2] = 0f; - npc.ai[1] = 1f; - npc.TargetClosest(true); - npc.netUpdate = true; - } - } - Vector2 vector110 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num862 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector110.X; - float num863 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 200f - vector110.Y; - float num864 = (float)Math.Sqrt((double)(num862 * num862 + num863 * num863)); - float num865 = 8f; - if (npc.ai[3] == 1f) - { - if (num864 > 900f) - { - num865 = 14f; - } - else if (num864 > 600f) - { - num865 = 12f; - } - else if (num864 > 300f) - { - num865 = 10f; - } - } - if (num864 > 50f) - { - num864 = num865 / num864; - npc.velocity.X = (npc.velocity.X * 14f + num862 * num864) / 15f; - npc.velocity.Y = (npc.velocity.Y * 14f + num863 * num864) / 15f; - } - } - else if (npc.ai[1] == 1f) - { - npc.ai[2] += 1f; - if (npc.ai[2] >= 600f || npc.ai[3] != 1f) - { - npc.ai[2] = 0f; - npc.ai[1] = 0f; - } - Vector2 vector111 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num866 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector111.X; - float num867 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector111.Y; - float num868 = (float)Math.Sqrt((double)(num866 * num866 + num867 * num867)); - num868 = 20f / num868; - npc.velocity.X = (npc.velocity.X * 49f + num866 * num868) / 50f; - npc.velocity.Y = (npc.velocity.Y * 49f + num867 * num868) / 50f; - } - else if (npc.ai[1] == 2f) - { - npc.ai[1] = 3f; - npc.velocity.Y = npc.velocity.Y + 0.1f; - if (npc.velocity.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.95f; - } - npc.velocity.X = npc.velocity.X * 0.95f; - if (npc.timeLeft > 500) - { - npc.timeLeft = 500; - } - } - npc.rotation = npc.velocity.X * -0.02f; - return false; - } - else if (npc.type == NPCID.PumpkingBlade && CalamityWorld.downedDoG) - { - npc.spriteDirection = -(int)npc.ai[0]; - if (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != 58) - { - npc.ai[2] += 10f; - if (npc.ai[2] > 50f || Main.netMode != 2) - { - npc.life = -1; - npc.HitEffect(0, 10.0); - npc.active = false; - } - } - if (Main.netMode != 1 && Main.npc[(int)npc.ai[1]].ai[3] == 2f) - { - npc.localAI[1] += 1f; - if (npc.localAI[1] > 30f) - { - npc.localAI[1] = 0f; - float num869 = 0.01f; - Vector2 vector112 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f + 30f); - float num870 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector112.X; - float num871 = Main.player[npc.target].position.Y - vector112.Y; - float num872 = (float)Math.Sqrt((double)(num870 * num870 + num871 * num871)); - num872 = num869 / num872; - num870 *= num872; - num871 *= num872; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num870, num871, 329, 70, 0f, Main.myPlayer, npc.rotation, (float)npc.spriteDirection); - } - } - if (Main.dayTime) - { - npc.velocity.Y = npc.velocity.Y + 0.3f; - npc.velocity.X = npc.velocity.X * 0.9f; - return false; - } - if (npc.ai[2] == 0f || npc.ai[2] == 3f) - { - if (Main.npc[(int)npc.ai[1]].ai[1] == 3f && npc.timeLeft > 10) - { - npc.timeLeft = 10; - } - npc.ai[3] += 1f; - if (npc.ai[3] >= 180f) - { - npc.ai[2] += 1f; - npc.ai[3] = 0f; - npc.netUpdate = true; - } - Vector2 vector113 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num874 = (Main.player[npc.target].Center.X + Main.npc[(int)npc.ai[1]].Center.X) / 2f; - float num875 = (Main.player[npc.target].Center.Y + Main.npc[(int)npc.ai[1]].Center.Y) / 2f; - num874 += -170f * npc.ai[0] - vector113.X; - num875 += 90f - vector113.Y; - float num876 = Math.Abs(Main.player[npc.target].Center.X - Main.npc[(int)npc.ai[1]].Center.X) + Math.Abs(Main.player[npc.target].Center.Y - Main.npc[(int)npc.ai[1]].Center.Y); - if (num876 > 700f) - { - num874 = Main.npc[(int)npc.ai[1]].Center.X - 170f * npc.ai[0] - vector113.X; - num875 = Main.npc[(int)npc.ai[1]].Center.Y + 90f - vector113.Y; - } - float num877 = (float)Math.Sqrt((double)(num874 * num874 + num875 * num875)); - float num878 = 8f; - if (num877 > 1000f) - { - num878 = 23f; - } - else if (num877 > 800f) - { - num878 = 20f; - } - else if (num877 > 600f) - { - num878 = 17f; - } - else if (num877 > 400f) - { - num878 = 14f; - } - else if (num877 > 200f) - { - num878 = 11f; - } - if (npc.ai[0] < 0f && npc.Center.X > Main.npc[(int)npc.ai[1]].Center.X) - { - num874 -= 4f; - } - if (npc.ai[0] > 0f && npc.Center.X < Main.npc[(int)npc.ai[1]].Center.X) - { - num874 += 4f; - } - num877 = num878 / num877; - npc.velocity.X = (npc.velocity.X * 14f + num874 * num877) / 15f; - npc.velocity.Y = (npc.velocity.Y * 14f + num875 * num877) / 15f; - num877 = (float)Math.Sqrt((double)(num874 * num874 + num875 * num875)); - if (num877 > 20f) - { - npc.rotation = (float)Math.Atan2((double)num875, (double)num874) + 1.57f; - return false; - } - } - else if (npc.ai[2] == 1f) - { - Vector2 vector114 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num879 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector114.X; - float num880 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector114.Y; - float num881 = (float)Math.Sqrt((double)(num879 * num879 + num880 * num880)); - npc.rotation = (float)Math.Atan2((double)num880, (double)num879) + 1.57f; - npc.velocity.X = npc.velocity.X * 0.95f; - npc.velocity.Y = npc.velocity.Y - 0.3f; - if (npc.velocity.Y < -18f) - { - npc.velocity.Y = -18f; - } - if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y - 200f) - { - npc.TargetClosest(true); - npc.ai[2] = 2f; - vector114 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - num879 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector114.X; - num880 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector114.Y; - num881 = (float)Math.Sqrt((double)(num879 * num879 + num880 * num880)); - num881 = 24f / num881; - npc.velocity.X = num879 * num881; - npc.velocity.Y = num880 * num881; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[2] == 2f) - { - float num882 = Math.Abs(npc.Center.X - Main.npc[(int)npc.ai[1]].Center.X) + Math.Abs(npc.Center.Y - Main.npc[(int)npc.ai[1]].Center.Y); - if (npc.position.Y > Main.player[npc.target].position.Y || npc.velocity.Y < 0f || num882 > 800f) - { - npc.ai[2] = 3f; - return false; - } - } - else if (npc.ai[2] == 4f) - { - Vector2 vector115 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num883 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector115.X; - float num884 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector115.Y; - float num885 = (float)Math.Sqrt((double)(num883 * num883 + num884 * num884)); - npc.rotation = (float)Math.Atan2((double)num884, (double)num883) + 1.57f; - npc.velocity.Y = npc.velocity.Y * 0.95f; - npc.velocity.X = npc.velocity.X + 0.3f * -npc.ai[0]; - if (npc.velocity.X < -18f) - { - npc.velocity.X = -18f; - } - if (npc.velocity.X > 18f) - { - npc.velocity.X = 18f; - } - if (npc.position.X + (float)(npc.width / 2) < Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - 500f || npc.position.X + (float)(npc.width / 2) > Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) + 500f) - { - npc.TargetClosest(true); - npc.ai[2] = 5f; - vector115 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - num883 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector115.X; - num884 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector115.Y; - num885 = (float)Math.Sqrt((double)(num883 * num883 + num884 * num884)); - num885 = 17f / num885; - npc.velocity.X = num883 * num885; - npc.velocity.Y = num884 * num885; - npc.netUpdate = true; - return false; - } - } - else if (npc.ai[2] == 5f) - { - float num886 = Math.Abs(npc.Center.X - Main.npc[(int)npc.ai[1]].Center.X) + Math.Abs(npc.Center.Y - Main.npc[(int)npc.ai[1]].Center.Y); - if ((npc.velocity.X > 0f && npc.position.X + (float)(npc.width / 2) > Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) || (npc.velocity.X < 0f && npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) || num886 > 800f) - { - npc.ai[2] = 0f; - return false; - } - } - return false; - } - #endregion - #region IceQueen - else if (npc.type == NPCID.IceQueen && CalamityWorld.downedDoG) - { - if (Main.dayTime) - { - if (npc.velocity.X > 0f) - { - npc.velocity.X = npc.velocity.X + 0.25f; - } - else - { - npc.velocity.X = npc.velocity.X - 0.25f; - } - npc.velocity.Y = npc.velocity.Y - 0.1f; - npc.rotation = npc.velocity.X * 0.05f; - } - else if (npc.ai[0] == 0f) - { - if (npc.ai[2] == 0f) - { - npc.TargetClosest(true); - if (npc.Center.X < Main.player[npc.target].Center.X) - { - npc.ai[2] = 1f; - } - else - { - npc.ai[2] = -1f; - } - } - npc.TargetClosest(true); - int num887 = 800; - float num888 = Math.Abs(npc.Center.X - Main.player[npc.target].Center.X); - if (npc.Center.X < Main.player[npc.target].Center.X && npc.ai[2] < 0f && num888 > (float)num887) - { - npc.ai[2] = 0f; - } - if (npc.Center.X > Main.player[npc.target].Center.X && npc.ai[2] > 0f && num888 > (float)num887) - { - npc.ai[2] = 0f; - } - float num889 = 0.6f; - float num890 = 10f; - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num889 = 0.7f; - num890 = 12f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num889 = 0.8f; - num890 = 14f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num889 = 0.95f; - num890 = 16f; - } - npc.velocity.X = npc.velocity.X + npc.ai[2] * num889; - if (npc.velocity.X > num890) - { - npc.velocity.X = num890; - } - if (npc.velocity.X < -num890) - { - npc.velocity.X = -num890; - } - float num891 = Main.player[npc.target].position.Y - (npc.position.Y + (float)npc.height); - if (num891 < 150f) - { - npc.velocity.Y = npc.velocity.Y - 0.2f; - } - if (num891 > 200f) - { - npc.velocity.Y = npc.velocity.Y + 0.2f; - } - if (npc.velocity.Y > 9f) - { - npc.velocity.Y = 9f; - } - if (npc.velocity.Y < -9f) - { - npc.velocity.Y = -9f; - } - npc.rotation = npc.velocity.X * 0.05f; - if ((num888 < 500f || npc.ai[3] < 0f) && npc.position.Y < Main.player[npc.target].position.Y) - { - npc.ai[3] += 1f; - int num892 = 8; - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num892 = 7; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num892 = 6; - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num892 = 5; - } - num892++; - if (npc.ai[3] > (float)num892) - { - npc.ai[3] = (float)(-(float)num892); - } - if (npc.ai[3] == 0f && Main.netMode != 1) - { - Vector2 vector116 = new Vector2(npc.Center.X, npc.Center.Y); - vector116.X += npc.velocity.X * 7f; - float num893 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector116.X; - float num894 = Main.player[npc.target].Center.Y - vector116.Y; - float num895 = (float)Math.Sqrt((double)(num893 * num893 + num894 * num894)); - float num896 = 8f; - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num896 = 9f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num896 = 10f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num896 = 11f; - } - num895 = num896 / num895; - num893 *= num895; - num894 *= num895; - Projectile.NewProjectile(vector116.X, vector116.Y, num893, num894, 348, 50, 0f, Main.myPlayer, 0f, 0f); - } - } - else if (npc.ai[3] < 0f) - { - npc.ai[3] += 1f; - } - if (Main.netMode != 1) - { - npc.ai[1] += (float)Main.rand.Next(1, 4); - if (npc.ai[1] > 600f && num888 < 600f) - { - npc.ai[0] = -1f; - } - } - } - else if (npc.ai[0] == 1f) - { - npc.TargetClosest(true); - float num898 = 0.2f; - float num899 = 10f; - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num898 = 0.24f; - num899 = 12f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num898 = 0.28f; - num899 = 14f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num898 = 0.32f; - num899 = 16f; - } - num898 -= 0.05f; - num899 -= 1f; - if (npc.Center.X < Main.player[npc.target].Center.X) - { - npc.velocity.X = npc.velocity.X + num898; - if (npc.velocity.X < 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - } - if (npc.Center.X > Main.player[npc.target].Center.X) - { - npc.velocity.X = npc.velocity.X - num898; - if (npc.velocity.X > 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - } - if (npc.velocity.X > num899 || npc.velocity.X < -num899) - { - npc.velocity.X = npc.velocity.X * 0.95f; - } - float num900 = Main.player[npc.target].position.Y - (npc.position.Y + (float)npc.height); - if (num900 < 180f) - { - npc.velocity.Y = npc.velocity.Y - 0.1f; - } - if (num900 > 200f) - { - npc.velocity.Y = npc.velocity.Y + 0.1f; - } - if (npc.velocity.Y > 7f) - { - npc.velocity.Y = 7f; - } - if (npc.velocity.Y < -7f) - { - npc.velocity.Y = -7f; - } - npc.rotation = npc.velocity.X * 0.01f; - if (Main.netMode != 1) - { - npc.ai[3] += 1f; - int num901 = 10; - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num901 = 8; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num901 = 6; - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num901 = 4; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1) - { - num901 = 2; - } - num901 += 3; - if (npc.ai[3] >= (float)num901) - { - npc.ai[3] = 0f; - Vector2 vector117 = new Vector2(npc.Center.X, npc.position.Y + (float)npc.height - 14f); - int i2 = (int)(vector117.X / 16f); - int j2 = (int)(vector117.Y / 16f); - if (!WorldGen.SolidTile(i2, j2)) - { - float num902 = npc.velocity.Y; - if (num902 < 0f) - { - num902 = 0f; - } - num902 += 3f; - float speedX2 = npc.velocity.X * 0.25f; - int num903 = Projectile.NewProjectile(vector117.X, vector117.Y, speedX2, num902, 349, 44, 0f, Main.myPlayer, (float)Main.rand.Next(5), 0f); - } - } - } - if (Main.netMode != 1) - { - npc.ai[1] += (float)Main.rand.Next(1, 4); - if (npc.ai[1] > 450f) - { - npc.ai[0] = -1f; - } - } - } - else if (npc.ai[0] == 2f) - { - npc.TargetClosest(true); - Vector2 vector118 = new Vector2(npc.Center.X, npc.Center.Y - 20f); - float num904 = (float)Main.rand.Next(-1000, 1001); - float num905 = (float)Main.rand.Next(-1000, 1001); - float num906 = (float)Math.Sqrt((double)(num904 * num904 + num905 * num905)); - float num907 = 20f; - npc.velocity *= 0.95f; - num906 = num907 / num906; - num904 *= num906; - num905 *= num906; - npc.rotation += 0.2f; - vector118.X += num904 * 4f; - vector118.Y += num905 * 4f; - npc.ai[3] += 1f; - int num908 = 7; - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num908--; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num908 -= 2; - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num908 -= 3; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1) - { - num908 -= 4; - } - if (npc.ai[3] > (float)num908) - { - npc.ai[3] = 0f; - int num909 = Projectile.NewProjectile(vector118.X, vector118.Y, num904, num905, 349, 40, 0f, Main.myPlayer, 0f, 0f); - } - if (Main.netMode != 1) - { - npc.ai[1] += (float)Main.rand.Next(1, 4); - if (npc.ai[1] > 300f) - { - npc.ai[0] = -1f; - } - } - } - if (npc.ai[0] == -1f) - { - int num910 = Main.rand.Next(3); - npc.TargetClosest(true); - if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) > 1000f) - { - num910 = 0; - } - npc.ai[0] = (float)num910; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - return false; - } - return false; - } - #endregion - #region EyeofCthulhu - else if (npc.type == NPCID.EyeofCthulhu && (CalamityWorld.revenge || CalamityWorld.bossRushActive)) - { - double getMad = 0.5; //0.5 - bool flag2 = false; - if ((double)npc.life < (double)npc.lifeMax * getMad) - { - flag2 = true; - } - float num5 = 20f; - if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) - { - npc.TargetClosest(true); - } - bool dead = Main.player[npc.target].dead; - float num6 = npc.position.X + (float)(npc.width / 2) - Main.player[npc.target].position.X - (float)(Main.player[npc.target].width / 2); - float num7 = npc.position.Y + (float)npc.height - 59f - Main.player[npc.target].position.Y - (float)(Main.player[npc.target].height / 2); - float num8 = (float)Math.Atan2((double)num7, (double)num6) + 1.57f; - if (num8 < 0f) - { - num8 += 6.283f; - } - else if ((double)num8 > 6.283) - { - num8 -= 6.283f; - } - float num9 = 0f; - if (npc.ai[0] == 0f && npc.ai[1] == 0f) - { - num9 = 0.02f; - } - if (npc.ai[0] == 0f && npc.ai[1] == 2f && npc.ai[2] > 40f) - { - num9 = 0.05f; - } - if (npc.ai[0] == 3f && npc.ai[1] == 0f) - { - num9 = 0.05f; - } - if (npc.ai[0] == 3f && npc.ai[1] == 2f && npc.ai[2] > 40f) - { - num9 = 0.08f; - } - if (npc.ai[0] == 3f && npc.ai[1] == 4f && npc.ai[2] > num5) - { - num9 = 0.15f; - } - if (npc.ai[0] == 3f && npc.ai[1] == 5f) - { - num9 = 0.05f; - } - num9 *= 1.5f; - if (npc.rotation < num8) - { - if ((double)(num8 - npc.rotation) > 3.1415) - { - npc.rotation -= num9; - } - else - { - npc.rotation += num9; - } - } - else if (npc.rotation > num8) - { - if ((double)(npc.rotation - num8) > 3.1415) - { - npc.rotation += num9; - } - else - { - npc.rotation -= num9; - } - } - if (npc.rotation > num8 - num9 && npc.rotation < num8 + num9) - { - npc.rotation = num8; - } - if (npc.rotation < 0f) - { - npc.rotation += 6.283f; - } - else if ((double)npc.rotation > 6.283) - { - npc.rotation -= 6.283f; - } - if (npc.rotation > num8 - num9 && npc.rotation < num8 + num9) - { - npc.rotation = num8; - } - if (Main.rand.Next(5) == 0) - { - int num10 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y + (float)npc.height * 0.25f), npc.width, (int)((float)npc.height * 0.5f), 5, npc.velocity.X, 2f, 0, default(Color), 1f); - Dust var_9_825_cp_0_cp_0 = Main.dust[num10]; - var_9_825_cp_0_cp_0.velocity.X = var_9_825_cp_0_cp_0.velocity.X * 0.5f; - Dust var_9_845_cp_0_cp_0 = Main.dust[num10]; - var_9_845_cp_0_cp_0.velocity.Y = var_9_845_cp_0_cp_0.velocity.Y * 0.1f; - } - if (Main.dayTime | dead) - { - npc.velocity.Y = npc.velocity.Y - 0.04f; - if (npc.timeLeft > 10) - { - npc.timeLeft = 10; - return false; - } - } - else if (npc.ai[0] == 0f) - { - if (npc.ai[1] == 0f) - { - float num11 = (enraged ? 10f : 7f); - float num12 = (enraged ? 0.2f : 0.15f); - Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num13 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector.X; - float num14 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 200f - vector.Y; - float num15 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); - float num16 = num15; - num15 = num11 / num15; - num13 *= num15; - num14 *= num15; - if (npc.velocity.X < num13) - { - npc.velocity.X = npc.velocity.X + num12; - if (npc.velocity.X < 0f && num13 > 0f) - { - npc.velocity.X = npc.velocity.X + num12; - } - } - else if (npc.velocity.X > num13) - { - npc.velocity.X = npc.velocity.X - num12; - if (npc.velocity.X > 0f && num13 < 0f) - { - npc.velocity.X = npc.velocity.X - num12; - } - } - if (npc.velocity.Y < num14) - { - npc.velocity.Y = npc.velocity.Y + num12; - if (npc.velocity.Y < 0f && num14 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num12; - } - } - else if (npc.velocity.Y > num14) - { - npc.velocity.Y = npc.velocity.Y - num12; - if (npc.velocity.Y > 0f && num14 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num12; - } - } - npc.ai[2] += 1f; - float num17 = 180f; - if (npc.ai[2] >= num17) - { - npc.ai[1] = 1f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.target = 255; - npc.netUpdate = true; - } - else if (num16 < 500f) - { - if (!Main.player[npc.target].dead) - { - npc.ai[3] += 1f; - } - float num18 = 44f; - if (npc.ai[3] >= num18) - { - npc.ai[3] = 0f; - npc.rotation = num8; - float num19 = 5f; - float num20 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector.X; - float num21 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector.Y; - float num22 = (float)Math.Sqrt((double)(num20 * num20 + num21 * num21)); - num22 = num19 / num22; - Vector2 vector2 = vector; - Vector2 vector3; - vector3.X = num20 * num22; - vector3.Y = num21 * num22; - vector2.X += vector3.X * 10f; - vector2.Y += vector3.Y * 10f; - if (Main.netMode != 1) - { - int num23 = NPC.NewNPC((int)vector2.X, (int)vector2.Y, 5, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num23].velocity.X = vector3.X; - Main.npc[num23].velocity.Y = vector3.Y; - if (Main.netMode == 2 && num23 < 200) - { - NetMessage.SendData(23, -1, -1, null, num23, 0f, 0f, 0f, 0, 0, 0); - } - } - Main.PlaySound(3, (int)vector2.X, (int)vector2.Y, 1, 1f, 0f); - int num; - for (int m = 0; m < 10; m = num + 1) - { - Dust.NewDust(vector2, 20, 20, 5, vector3.X * 0.4f, vector3.Y * 0.4f, 0, default(Color), 1f); - num = m; - } - } - } - } - else if (npc.ai[1] == 1f) - { - npc.rotation = num8; - float num24 = (enraged ? 11f : 7.25f); - Vector2 vector4 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num25 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector4.X; - float num26 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector4.Y; - float num27 = (float)Math.Sqrt((double)(num25 * num25 + num26 * num26)); - num27 = num24 / num27; - npc.velocity.X = num25 * num27; - npc.velocity.Y = num26 * num27; - npc.ai[1] = 2f; - npc.netUpdate = true; - if (npc.netSpam > 10) - { - npc.netSpam = 10; - } - } - else if (npc.ai[1] == 2f) - { - npc.ai[2] += 1f; - if (npc.ai[2] >= 40f) - { - npc.velocity *= 0.975f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) - { - npc.velocity.X = 0f; - } - if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) - { - npc.velocity.Y = 0f; - } - } - else - { - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - 1.57f; - } - int num28 = 90; - if (npc.ai[2] >= (float)num28) - { - npc.ai[3] += 1f; - npc.ai[2] = 0f; - npc.target = 255; - npc.rotation = num8; - if (npc.ai[3] >= 3f) - { - npc.ai[1] = 0f; - npc.ai[3] = 0f; - } - else - { - npc.ai[1] = 1f; - } - } - } - float num29 = 0.9f; - if (((float)npc.life < (float)npc.lifeMax * num29) || CalamityWorld.death) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.netUpdate = true; - if (npc.netSpam > 10) - { - npc.netSpam = 10; - return false; - } - } - } - else if (npc.ai[0] == 1f || npc.ai[0] == 2f) - { - if (npc.ai[0] == 1f) - { - npc.ai[2] += 0.005f; - if ((double)npc.ai[2] > 0.5) - { - npc.ai[2] = 0.5f; - } - } - else - { - npc.ai[2] -= 0.005f; - if (npc.ai[2] < 0f) - { - npc.ai[2] = 0f; - } - } - npc.rotation += npc.ai[2]; - npc.ai[1] += 1f; - if (npc.ai[1] % 20f == 0f) - { - float num30 = 5f; - Vector2 vector5 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num31 = (float)Main.rand.Next(-200, 200); - float num32 = (float)Main.rand.Next(-200, 200); - float num33 = (float)Math.Sqrt((double)(num31 * num31 + num32 * num32)); - num33 = num30 / num33; - Vector2 vector6 = vector5; - Vector2 vector7; - vector7.X = num31 * num33; - vector7.Y = num32 * num33; - vector6.X += vector7.X * 10f; - vector6.Y += vector7.Y * 10f; - if (Main.netMode != 1) - { - int num34 = NPC.NewNPC((int)vector6.X, (int)vector6.Y, 5, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num34].velocity.X = vector7.X; - Main.npc[num34].velocity.Y = vector7.Y; - if (Main.netMode == 2 && num34 < 200) - { - NetMessage.SendData(23, -1, -1, null, num34, 0f, 0f, 0f, 0, 0, 0); - } - } - int num; - for (int n = 0; n < 10; n = num + 1) - { - Dust.NewDust(vector6, 20, 20, 5, vector7.X * 0.4f, vector7.Y * 0.4f, 0, default(Color), 1f); - num = n; - } - } - if (npc.ai[1] == 100f) - { - npc.ai[0] += 1f; - npc.ai[1] = 0f; - if (npc.ai[0] == 3f) - { - npc.ai[2] = 0f; - } - else - { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); - int num; - for (int num35 = 0; num35 < 2; num35 = num + 1) - { - Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 8, 1f); - Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 7, 1f); - Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 6, 1f); - num = num35; - } - for (int num36 = 0; num36 < 20; num36 = num + 1) - { - Dust.NewDust(npc.position, npc.width, npc.height, 5, (float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f, 0, default(Color), 1f); - num = num36; - } - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); - } - } - Dust.NewDust(npc.position, npc.width, npc.height, 5, (float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f, 0, default(Color), 1f); - npc.velocity.X = npc.velocity.X * 0.98f; - npc.velocity.Y = npc.velocity.Y * 0.98f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) - { - npc.velocity.X = 0f; - } - if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) - { - npc.velocity.Y = 0f; - return false; - } - } - else - { - if (flag2) - { - npc.defense = -5; - } - else - { - npc.damage = (int)(20f * Main.expertDamage); - } - if (npc.ai[1] == 0f & flag2) - { - npc.ai[1] = 5f; - } - if (npc.ai[1] == 0f) - { - float num37 = (enraged ? 8f : 5.5f); - float num38 = (enraged ? 0.09f : 0.06f); - Vector2 vector8 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num39 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector8.X; - float num40 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 120f - vector8.Y; - float num41 = (float)Math.Sqrt((double)(num39 * num39 + num40 * num40)); - if (num41 > 400f) - { - num37 += 1.25f; - num38 += 0.075f; - if (num41 > 600f) - { - num37 += 1.25f; - num38 += 0.075f; - if (num41 > 800f) - { - num37 += 1.25f; - num38 += 0.075f; - } - } - } - num41 = num37 / num41; - num39 *= num41; - num40 *= num41; - if (npc.velocity.X < num39) - { - npc.velocity.X = npc.velocity.X + num38; - if (npc.velocity.X < 0f && num39 > 0f) - { - npc.velocity.X = npc.velocity.X + num38; - } - } - else if (npc.velocity.X > num39) - { - npc.velocity.X = npc.velocity.X - num38; - if (npc.velocity.X > 0f && num39 < 0f) - { - npc.velocity.X = npc.velocity.X - num38; - } - } - if (npc.velocity.Y < num40) - { - npc.velocity.Y = npc.velocity.Y + num38; - if (npc.velocity.Y < 0f && num40 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num38; - } - } - else if (npc.velocity.Y > num40) - { - npc.velocity.Y = npc.velocity.Y - num38; - if (npc.velocity.Y > 0f && num40 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num38; - } - } - npc.ai[2] += 1f; - if (npc.ai[2] >= 200f) - { - npc.ai[1] = 1f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - if ((double)npc.life < (double)npc.lifeMax * 0.4) - { - npc.ai[1] = 3f; - } - npc.target = 255; - npc.netUpdate = true; - } - } - else if (npc.ai[1] == 1f) - { - Main.PlaySound(36, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); - npc.rotation = num8; - float num42 = (enraged ? 9.5f : 6.2f); - if (npc.ai[3] == 1f) - { - num42 *= 1.15f; - } - if (npc.ai[3] == 2f) - { - num42 *= 1.3f; - } - Vector2 vector9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num43 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector9.X; - float num44 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector9.Y; - float num45 = (float)Math.Sqrt((double)(num43 * num43 + num44 * num44)); - num45 = num42 / num45; - npc.velocity.X = num43 * num45; - npc.velocity.Y = num44 * num45; - npc.ai[1] = 2f; - npc.netUpdate = true; - if (npc.netSpam > 10) - { - npc.netSpam = 10; - } - } - else if (npc.ai[1] == 2f) - { - float num46 = CalamityWorld.death ? 70f : 60f; - npc.ai[2] += 1f; - if (npc.ai[2] >= num46) - { - npc.velocity *= 0.96f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) - { - npc.velocity.X = 0f; - } - if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) - { - npc.velocity.Y = 0f; - } - } - else - { - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - 1.57f; - } - int num47 = CalamityWorld.death ? 70 : 80; - if (npc.ai[2] >= (float)num47) - { - npc.ai[3] += 1f; - npc.ai[2] = 0f; - npc.target = 255; - npc.rotation = num8; - if (npc.ai[3] >= 3f) - { - npc.ai[1] = 0f; - npc.ai[3] = 0f; - if (Main.netMode != 1 && (double)npc.life < (double)npc.lifeMax * 0.6) - { - npc.ai[1] = 3f; - npc.ai[3] += (float)Main.rand.Next(1, 4); - } - npc.netUpdate = true; - if (npc.netSpam > 10) - { - npc.netSpam = 10; - } - } - else - { - npc.ai[1] = 1f; - } - } - } - else if (npc.ai[1] == 3f) - { - if ((npc.ai[3] == 4f & flag2) && npc.Center.Y > Main.player[npc.target].Center.Y) - { - npc.TargetClosest(true); - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.netUpdate = true; - if (npc.netSpam > 10) - { - npc.netSpam = 10; - } - } - else if (Main.netMode != 1) - { - npc.TargetClosest(true); - float num48 = (enraged ? 26f : 18f); - Vector2 vector10 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num49 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector10.X; - float num50 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector10.Y; - float num51 = Math.Abs(Main.player[npc.target].velocity.X) + Math.Abs(Main.player[npc.target].velocity.Y) / 4f; - num51 += 10f - num51; - if (num51 < 5f) - { - num51 = 5f; - } - if (num51 > 15f) - { - num51 = 15f; - } - if (npc.ai[2] == -1f) - { - num51 *= 4f; - num48 *= 1.3f; - } - num49 -= Main.player[npc.target].velocity.X * num51; - num50 -= Main.player[npc.target].velocity.Y * num51 / 4f; - num49 *= 1f + (float)Main.rand.Next(-10, 11) * 0.01f; - num50 *= 1f + (float)Main.rand.Next(-10, 11) * 0.01f; - float num52 = (float)Math.Sqrt((double)(num49 * num49 + num50 * num50)); - float num53 = num52; - num52 = num48 / num52; - npc.velocity.X = num49 * num52; - npc.velocity.Y = num50 * num52; - npc.velocity.X = npc.velocity.X + (float)Main.rand.Next(-20, 21) * 0.1f; - npc.velocity.Y = npc.velocity.Y + (float)Main.rand.Next(-20, 21) * 0.1f; - if (num53 < 100f) - { - if (Math.Abs(npc.velocity.X) > Math.Abs(npc.velocity.Y)) - { - float num56 = Math.Abs(npc.velocity.X); - float num57 = Math.Abs(npc.velocity.Y); - if (npc.Center.X > Main.player[npc.target].Center.X) - { - num57 *= -1f; - } - if (npc.Center.Y > Main.player[npc.target].Center.Y) - { - num56 *= -1f; - } - npc.velocity.X = num57; - npc.velocity.Y = num56; - } - } - else if (Math.Abs(npc.velocity.X) > Math.Abs(npc.velocity.Y)) - { - float num58 = (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y)) / 2f; - float num59 = num58; - if (npc.Center.X > Main.player[npc.target].Center.X) - { - num59 *= -1f; - } - if (npc.Center.Y > Main.player[npc.target].Center.Y) - { - num58 *= -1f; - } - npc.velocity.X = num59; - npc.velocity.Y = num58; - } - npc.ai[1] = 4f; - npc.netUpdate = true; - if (npc.netSpam > 10) - { - npc.netSpam = 10; - } - } - } - else if (npc.ai[1] == 4f) - { - if (npc.ai[2] == 0f) - { - Main.PlaySound(36, (int)npc.position.X, (int)npc.position.Y, -1, 1f, 0f); - } - float num60 = num5; - npc.ai[2] += 1f; - if (npc.ai[2] == num60 && Vector2.Distance(npc.position, Main.player[npc.target].position) < 200f) - { - npc.ai[2] -= 1f; - } - if (npc.ai[2] >= num60) - { - npc.velocity *= 0.95f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) - { - npc.velocity.X = 0f; - } - if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) - { - npc.velocity.Y = 0f; - } - } - else - { - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - 1.57f; - } - float num61 = num60 + 13f; - if (npc.ai[2] >= num61) - { - npc.netUpdate = true; - if (npc.netSpam > 10) - { - npc.netSpam = 10; - } - npc.ai[3] += 1f; - npc.ai[2] = 0f; - if (npc.ai[3] >= 5f) - { - npc.ai[1] = 0f; - npc.ai[3] = 0f; - } - else - { - npc.ai[1] = 3f; - } - } - } - else if (npc.ai[1] == 5f) - { - float num62 = 600f; - float num63 = (enraged ? 12f : 8f); - float num64 = (enraged ? 0.4f : 0.25f); - Vector2 vector11 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num65 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector11.X; - float num66 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) + num62 - vector11.Y; - float num67 = (float)Math.Sqrt((double)(num65 * num65 + num66 * num66)); - num67 = num63 / num67; - num65 *= num67; - num66 *= num67; - if (npc.velocity.X < num65) - { - npc.velocity.X = npc.velocity.X + num64; - if (npc.velocity.X < 0f && num65 > 0f) - { - npc.velocity.X = npc.velocity.X + num64; - } - } - else if (npc.velocity.X > num65) - { - npc.velocity.X = npc.velocity.X - num64; - if (npc.velocity.X > 0f && num65 < 0f) - { - npc.velocity.X = npc.velocity.X - num64; - } - } - if (npc.velocity.Y < num66) - { - npc.velocity.Y = npc.velocity.Y + num64; - if (npc.velocity.Y < 0f && num66 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num64; - } - } - else if (npc.velocity.Y > num66) - { - npc.velocity.Y = npc.velocity.Y - num64; - if (npc.velocity.Y > 0f && num66 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num64; - } - } - npc.ai[2] += 1f; - if (npc.ai[2] >= 70f) - { - npc.TargetClosest(true); - npc.ai[1] = 3f; - npc.ai[2] = -1f; - npc.ai[3] = (float)Main.rand.Next(-3, 1); - npc.netUpdate = true; - } - } - } - return false; - } - #endregion - } - return true; - } - #endregion - - #region AI - public override void AI(NPC npc) + #region PreAI + public override bool PreAI(NPC npc) { - if (npc.buffImmune[mod.BuffType("Enraged")]) - { - npc.buffImmune[mod.BuffType("Enraged")] = false; - } - if (SCal > -1) - { - if (!npc.friendly && npc.damage > 0 && !npc.dontTakeDamage && npc.type != mod.NPCType("SupremeCalamitas")) - { - npc.active = false; - npc.netUpdate = true; - } - } - if (!CalamityWorld.spawnedHardBoss) - { - if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer || npc.type == NPCID.SkeletronPrime || - npc.type == NPCID.Plantera || npc.type == mod.NPCType("Cryogen") || npc.type == mod.NPCType("AquaticScourgeHead") || - npc.type == mod.NPCType("BrimstoneElemental") || npc.type == mod.NPCType("Astrageldon") || npc.type == mod.NPCType("AstrumDeusHeadSpectral") || - npc.type == mod.NPCType("Calamitas") || npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("PlaguebringerGoliath") || - npc.type == mod.NPCType("ScavengerBody") || npc.type == NPCID.DukeFishron || npc.type == NPCID.CultistBoss || npc.type == NPCID.Golem) - { - CalamityWorld.spawnedHardBoss = true; - } - } - #region RevengeanceAIChanges - if (CalamityWorld.revenge || CalamityWorld.bossRushActive) + if (setNewName) { - #region MoonLord - if (npc.type == NPCID.MoonLordFreeEye) - { - if (NPC.CountNPCS(NPCID.MoonLordFreeEye) > 3) - { - npc.dontTakeDamage = false; - } - else - { - npc.dontTakeDamage = true; - } - } - if (npc.type == NPCID.MoonLordCore) + setNewName = false; + switch (npc.type) + { + case NPCID.Guide: + switch (Main.rand.Next(35)) //34 guide names + { + case 0: + npc.GivenName = "Lapp"; + break; + default: + break; + } + break; + case NPCID.Wizard: + switch (Main.rand.Next(24)) //23 wizard names + { + case 0: + npc.GivenName = "Mage One-Trick"; + break; + default: + break; + } + break; + case NPCID.Steampunker: + switch (Main.rand.Next(22)) //21 steampunker names + { + case 0: + npc.GivenName = "Vorbis"; + break; + default: + break; + } + break; + case NPCID.Stylist: + switch (Main.rand.Next(21)) //20 stylist names + { + case 0: + npc.GivenName = "Amber"; + break; + default: + break; + } + break; + case NPCID.WitchDoctor: + switch (Main.rand.Next(11)) //10 witch doctor names + { + case 0: + npc.GivenName = "Sok'ar"; + break; + default: + break; + } + break; + default: + break; + } + } + if (npc.type == NPCID.TargetDummy || npc.type == mod.NPCType("SuperDummy")) + { + npc.chaseable = !CalamityPlayer.areThereAnyDamnBosses; + } + if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.TheDestroyerBody || npc.type == NPCID.TheDestroyerTail || + npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) + { + if (npc.buffImmune[mod.BuffType("Enraged")]) + { + npc.buffImmune[mod.BuffType("Enraged")] = false; + } + if (newAI[1] < 480f) + { + newAI[1] += 1f; + } + } + #region BossRush + if (CalamityWorld.bossRushActive && !npc.friendly && !npc.townNPC) + { + switch (CalamityWorld.bossRushStage) + { + case 0: + if (npc.type != NPCID.QueenBee && npc.type != NPCID.Bee && npc.type != NPCID.BeeSmall) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 1: + if (npc.type != NPCID.BrainofCthulhu && npc.type != NPCID.Creeper) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 2: + if (npc.type != NPCID.KingSlime && npc.type != NPCID.BlueSlime && npc.type != NPCID.SlimeSpiked) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 3: + if (npc.type != NPCID.EyeofCthulhu && npc.type != NPCID.ServantofCthulhu) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 4: + if (npc.type != NPCID.SkeletronPrime && npc.type != NPCID.PrimeSaw && npc.type != NPCID.PrimeVice && + npc.type != NPCID.PrimeCannon && npc.type != NPCID.PrimeLaser) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 5: + if (npc.type != NPCID.Golem && npc.type != NPCID.GolemFistLeft && npc.type != NPCID.GolemFistRight && + npc.type != NPCID.GolemHead && npc.type != NPCID.GolemHeadFree) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 6: + if (npc.type != mod.NPCType("ProfanedGuardianBoss") && npc.type != mod.NPCType("ProfanedGuardianBoss2") && + npc.type != mod.NPCType("ProfanedGuardianBoss3")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 7: + if (npc.type != NPCID.EaterofWorldsHead && npc.type != NPCID.EaterofWorldsBody && npc.type != NPCID.EaterofWorldsTail && + npc.type != NPCID.VileSpit) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 8: + if (npc.type != mod.NPCType("Astrageldon") && npc.type != mod.NPCType("AstralSlime")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 9: + if (npc.type != NPCID.TheDestroyer && npc.type != NPCID.TheDestroyerBody && npc.type != NPCID.TheDestroyerTail && + npc.type != NPCID.Probe) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 10: + if (npc.type != NPCID.Spazmatism && npc.type != NPCID.Retinazer) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 11: + if (npc.type != mod.NPCType("Bumblefuck") && npc.type != mod.NPCType("Bumblefuck2") && + npc.type != NPCID.Spazmatism && npc.type != NPCID.Retinazer) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 12: + if (npc.type != NPCID.WallofFlesh && npc.type != NPCID.WallofFleshEye && npc.type != NPCID.TheHungry && + npc.type != NPCID.TheHungryII && npc.type != NPCID.LeechHead && npc.type != NPCID.LeechBody && + npc.type != NPCID.LeechTail) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 13: + if (npc.type != mod.NPCType("HiveMind") && npc.type != mod.NPCType("HiveMindP2") && + npc.type != mod.NPCType("DarkHeart") && npc.type != mod.NPCType("HiveBlob") && + npc.type != mod.NPCType("DankCreeper") && npc.type != mod.NPCType("HiveBlob2")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 14: + if (npc.type != NPCID.SkeletronHead && npc.type != NPCID.SkeletronHand) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 15: + if (npc.type != mod.NPCType("StormWeaverHead") && npc.type != mod.NPCType("StormWeaverBody") && + npc.type != mod.NPCType("StormWeaverTail") && npc.type != mod.NPCType("StormWeaverHeadNaked") && + npc.type != mod.NPCType("StormWeaverBodyNaked") && npc.type != mod.NPCType("StormWeaverTailNaked") && + npc.type != mod.NPCType("StasisProbe") && npc.type != mod.NPCType("StasisProbeNaked")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 16: + if (npc.type != mod.NPCType("AquaticScourgeHead") && npc.type != mod.NPCType("AquaticScourgeBody") && + npc.type != mod.NPCType("AquaticScourgeBodyAlt") && npc.type != mod.NPCType("AquaticScourgeTail") && + npc.type != mod.NPCType("AquaticParasite") && npc.type != mod.NPCType("AquaticUrchin") && + npc.type != mod.NPCType("AquaticSeekerHead") && npc.type != mod.NPCType("AquaticSeekerBody") && + npc.type != mod.NPCType("AquaticSeekerTail")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 17: + if (npc.type != mod.NPCType("DesertScourgeHead") && npc.type != mod.NPCType("DesertScourgeBody") && + npc.type != mod.NPCType("DesertScourgeTail") && npc.type != mod.NPCType("DesertScourgeHeadSmall") && + npc.type != mod.NPCType("DesertScourgeBodySmall") && npc.type != mod.NPCType("DesertScourgeTailSmall") && + npc.type != mod.NPCType("DriedSeekerHead") && npc.type != mod.NPCType("DriedSeekerBody") && + npc.type != mod.NPCType("DriedSeekerTail")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 18: + if (npc.type != NPCID.CultistBoss && npc.type != NPCID.CultistBossClone && npc.type != NPCID.CultistDragonHead && + npc.type != NPCID.CultistDragonBody1 && npc.type != NPCID.CultistDragonBody2 && npc.type != NPCID.CultistDragonBody3 && + npc.type != NPCID.CultistDragonBody4 && npc.type != NPCID.CultistDragonTail && npc.type != NPCID.AncientCultistSquidhead && + npc.type != NPCID.AncientLight && npc.type != NPCID.AncientDoom && npc.type != mod.NPCType("Eidolist")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 19: + if (npc.type != mod.NPCType("CrabulonIdle") && npc.type != mod.NPCType("CrabShroom")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 20: + if (npc.type != NPCID.Plantera && npc.type != NPCID.PlanterasTentacle && npc.type != NPCID.PlanterasHook && + npc.type != NPCID.Spore) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 21: + if (npc.type != mod.NPCType("CeaselessVoid") && npc.type != mod.NPCType("DarkEnergy") && + npc.type != mod.NPCType("DarkEnergy2") && npc.type != mod.NPCType("DarkEnergy3")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 22: + if (npc.type != mod.NPCType("PerforatorHive") && npc.type != mod.NPCType("PerforatorHeadLarge") && + npc.type != mod.NPCType("PerforatorBodyLarge") && npc.type != mod.NPCType("PerforatorTailLarge") && + npc.type != mod.NPCType("PerforatorHeadMedium") && npc.type != mod.NPCType("PerforatorBodyMedium") && + npc.type != mod.NPCType("PerforatorTailMedium") && npc.type != mod.NPCType("PerforatorHeadSmall") && + npc.type != mod.NPCType("PerforatorBodySmall") && npc.type != mod.NPCType("PerforatorTailSmall")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 23: + if (npc.type != mod.NPCType("Cryogen") && npc.type != mod.NPCType("CryogenIce") && + npc.type != mod.NPCType("IceMass") && npc.type != mod.NPCType("Cryocore") && + npc.type != mod.NPCType("Cryocore2")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 24: + if (npc.type != mod.NPCType("BrimstoneElemental") && npc.type != mod.NPCType("Brimling")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 25: + if (npc.type != mod.NPCType("CosmicWraith") && npc.type != mod.NPCType("SignusBomb") && + npc.type != mod.NPCType("CosmicLantern")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 26: + if (npc.type != mod.NPCType("ScavengerBody") && npc.type != mod.NPCType("ScavengerHead") && + npc.type != mod.NPCType("ScavengerClawLeft") && npc.type != mod.NPCType("ScavengerClawRight") && + npc.type != mod.NPCType("ScavengerLegLeft") && npc.type != mod.NPCType("ScavengerLegRight") && + npc.type != mod.NPCType("ScavengerHead2") && npc.type != mod.NPCType("RockPillar") && + npc.type != mod.NPCType("FlamePillar")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 27: + if (npc.type != NPCID.DukeFishron && npc.type != NPCID.DetonatingBubble && npc.type != NPCID.Sharkron && + npc.type != NPCID.Sharkron2) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 28: + if (npc.type != NPCID.MoonLordCore && npc.type != NPCID.MoonLordHead && npc.type != NPCID.MoonLordHand && + npc.type != NPCID.MoonLordFreeEye && npc.type != mod.NPCType("Eidolist")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 29: + if (npc.type != mod.NPCType("AstrumDeusHead") && npc.type != mod.NPCType("AstrumDeusBody") && + npc.type != mod.NPCType("AstrumDeusTail") && npc.type != mod.NPCType("AstrumDeusHeadSpectral") && + npc.type != mod.NPCType("AstrumDeusBodySpectral") && npc.type != mod.NPCType("AstrumDeusTailSpectral") && + npc.type != mod.NPCType("AstrumDeusProbe") && npc.type != mod.NPCType("AstrumDeusProbe2") && + npc.type != mod.NPCType("AstrumDeusProbe3")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 30: + if (npc.type != mod.NPCType("Polterghast") && npc.type != mod.NPCType("PhantomFuckYou") && + npc.type != mod.NPCType("PolterghastHook") && npc.type != mod.NPCType("PolterPhantom")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 31: + if (npc.type != mod.NPCType("PlaguebringerGoliath") && npc.type != mod.NPCType("PlagueBeeG") && + npc.type != mod.NPCType("PlagueBeeLargeG") && npc.type != mod.NPCType("PlagueHomingMissile") && + npc.type != mod.NPCType("PlagueMine") && npc.type != mod.NPCType("PlaguebringerShade")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 32: + if (npc.type != mod.NPCType("Calamitas") && npc.type != mod.NPCType("CalamitasRun") && + npc.type != mod.NPCType("CalamitasRun2") && npc.type != mod.NPCType("CalamitasRun3") && + npc.type != mod.NPCType("LifeSeeker") && npc.type != mod.NPCType("SoulSeeker")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 33: + if (npc.type != mod.NPCType("Siren") && npc.type != mod.NPCType("Leviathan") && + npc.type != mod.NPCType("AquaticAberration") && npc.type != mod.NPCType("Parasea") && + npc.type != mod.NPCType("SirenClone") && npc.type != mod.NPCType("SirenIce")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 34: + if (npc.type != mod.NPCType("SlimeGod") && npc.type != mod.NPCType("SlimeGodRun") && + npc.type != mod.NPCType("SlimeGodCore") && npc.type != mod.NPCType("SlimeGodSplit") && + npc.type != mod.NPCType("SlimeGodRunSplit") && npc.type != mod.NPCType("SlimeSpawnCorrupt") && + npc.type != mod.NPCType("SlimeSpawnCorrupt2") && npc.type != mod.NPCType("SlimeSpawnCrimson") && + npc.type != mod.NPCType("SlimeSpawnCrimson2")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 35: + if (npc.type != mod.NPCType("Providence") && npc.type != mod.NPCType("ProvSpawnDefense") && + npc.type != mod.NPCType("ProvSpawnOffense") && npc.type != mod.NPCType("ProvSpawnHealer")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 36: + if (npc.type != mod.NPCType("SupremeCalamitas") && npc.type != mod.NPCType("SCalWormBody") && + npc.type != mod.NPCType("SCalWormBodyWeak") && npc.type != mod.NPCType("SCalWormHead") && + npc.type != mod.NPCType("SCalWormTail") && npc.type != mod.NPCType("SoulSeekerSupreme") && + npc.type != mod.NPCType("SCalWormHeart") && npc.type != mod.NPCType("SupremeCataclysm") && + npc.type != mod.NPCType("SupremeCatastrophe")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 37: + if (npc.type != mod.NPCType("Yharon") && npc.type != mod.NPCType("DetonatingFlare") && + npc.type != mod.NPCType("DetonatingFlare2") && npc.type != mod.NPCType("DetonatingFlare3") && + npc.type != mod.NPCType("Bumblefuck3") && npc.type != mod.NPCType("Bumblefuck4")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + case 38: + if (npc.type != mod.NPCType("DevourerofGodsHeadS") && npc.type != mod.NPCType("DevourerofGodsBodyS") && + npc.type != mod.NPCType("DevourerofGodsTailS")) + { + npc.active = false; + npc.netUpdate = true; + } + break; + } + #region KSRush + if (npc.type == NPCID.KingSlime) + { + float num234 = 1f; + bool flag8 = false; + bool flag9 = false; + npc.aiAction = 0; + if (npc.ai[3] == 0f && npc.life > 0) + { + npc.ai[3] = (float)npc.lifeMax; + } + if (npc.localAI[3] == 0f && Main.netMode != 1) + { + npc.ai[0] = -100f; + npc.localAI[3] = 1f; + npc.TargetClosest(true); + npc.netUpdate = true; + } + if (Main.player[npc.target].dead) + { + npc.TargetClosest(true); + if (Main.player[npc.target].dead) + { + npc.timeLeft = 0; + if (Main.player[npc.target].Center.X < npc.Center.X) + { + npc.direction = 1; + } + else + { + npc.direction = -1; + } + } + } + if (!Main.player[npc.target].dead && npc.ai[2] >= 300f && npc.ai[1] < 5f && npc.velocity.Y == 0f) + { + npc.ai[2] = 0f; + npc.ai[0] = 0f; + npc.ai[1] = 5f; + if (Main.netMode != 1) + { + npc.TargetClosest(false); + Point point3 = npc.Center.ToTileCoordinates(); + Point point4 = Main.player[npc.target].Center.ToTileCoordinates(); + Vector2 vector30 = Main.player[npc.target].Center - npc.Center; + int num235 = 10; + int num236 = 0; + int num237 = 7; + int num238 = 0; + bool flag10 = false; + if (vector30.Length() > (enraged ? 1000f : 2000f)) + { + flag10 = true; + num238 = 100; + } + while (!flag10 && num238 < 100) + { + num238++; + int num239 = Main.rand.Next(point4.X - num235, point4.X + num235 + 1); + int num240 = Main.rand.Next(point4.Y - num235, point4.Y + 1); + if ((num240 < point4.Y - num237 || num240 > point4.Y + num237 || num239 < point4.X - num237 || num239 > point4.X + num237) && (num240 < point3.Y - num236 || num240 > point3.Y + num236 || num239 < point3.X - num236 || num239 > point3.X + num236) && !Main.tile[num239, num240].nactive()) + { + int num241 = num240; + int num242 = 0; + bool flag11 = Main.tile[num239, num241].nactive() && Main.tileSolid[(int)Main.tile[num239, num241].type] && !Main.tileSolidTop[(int)Main.tile[num239, num241].type]; + if (flag11) + { + num242 = 1; + } + else + { + while (num242 < 150 && num241 + num242 < Main.maxTilesY) + { + int num243 = num241 + num242; + bool flag12 = Main.tile[num239, num243].nactive() && Main.tileSolid[(int)Main.tile[num239, num243].type] && !Main.tileSolidTop[(int)Main.tile[num239, num243].type]; + if (flag12) + { + num242--; + break; + } + int num = num242; + num242 = num + 1; + } + } + num240 += num242; + bool flag13 = true; + if (flag13 && Main.tile[num239, num240].lava()) + { + flag13 = false; + } + if (flag13 && !Collision.CanHitLine(npc.Center, 0, 0, Main.player[npc.target].Center, 0, 0)) + { + flag13 = false; + } + if (flag13) + { + npc.localAI[1] = (float)(num239 * 16 + 8); + npc.localAI[2] = (float)(num240 * 16 + 16); + break; + } + } + } + if (num238 >= 100) + { + Vector2 bottom = Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].Bottom; + npc.localAI[1] = bottom.X; + npc.localAI[2] = bottom.Y; + } + } + } + if (!Collision.CanHitLine(npc.Center, 0, 0, Main.player[npc.target].Center, 0, 0)) + { + float[] var_9_AE8B_cp_0 = npc.ai; + int var_9_AE8B_cp_1 = 2; + float num244 = var_9_AE8B_cp_0[var_9_AE8B_cp_1]; + var_9_AE8B_cp_0[var_9_AE8B_cp_1] = num244 + 1f; + } + if (Math.Abs(npc.Top.Y - Main.player[npc.target].Bottom.Y) > 320f) + { + float[] var_9_AEDF_cp_0 = npc.ai; + int var_9_AEDF_cp_1 = 2; + float num244 = var_9_AEDF_cp_0[var_9_AEDF_cp_1]; + var_9_AEDF_cp_0[var_9_AEDF_cp_1] = num244 + 1f; + } + Dust dust; + if (npc.ai[1] == 5f) + { + flag8 = true; + npc.aiAction = 1; + float[] var_9_AF25_cp_0 = npc.ai; + int var_9_AF25_cp_1 = 0; + float num244 = var_9_AF25_cp_0[var_9_AF25_cp_1]; + var_9_AF25_cp_0[var_9_AF25_cp_1] = num244 + (enraged ? 2f : 1f); + num234 = MathHelper.Clamp((60f - npc.ai[0]) / 60f, 0f, 1f); + num234 = 0.5f + num234 * 0.5f; + if (npc.ai[0] >= 60f) + { + flag9 = true; + } + if (npc.ai[0] == 60f) + { + Gore.NewGore(npc.Center + new Vector2(-40f, (float)(-(float)npc.height / 2)), npc.velocity, 734, 1f); + } + if (npc.ai[0] >= 60f && Main.netMode != 1) + { + npc.Bottom = new Vector2(npc.localAI[1], npc.localAI[2]); + npc.ai[1] = 6f; + npc.ai[0] = 0f; + npc.netUpdate = true; + } + if (Main.netMode == 1 && npc.ai[0] >= 120f) + { + npc.ai[1] = 6f; + npc.ai[0] = 0f; + } + if (!flag9) + { + int num; + for (int num245 = 0; num245 < 10; num245 = num + 1) + { + int num246 = Dust.NewDust(npc.position + Vector2.UnitX * -20f, npc.width + 40, npc.height, 4, npc.velocity.X, npc.velocity.Y, 150, new Color(78, 136, 255, 80), 2f); + Main.dust[num246].noGravity = true; + dust = Main.dust[num246]; + dust.velocity *= 0.5f; + num = num245; + } + } + } + else if (npc.ai[1] == 6f) + { + flag8 = true; + npc.aiAction = 0; + float[] var_9_B163_cp_0 = npc.ai; + int var_9_B163_cp_1 = 0; + float num244 = var_9_B163_cp_0[var_9_B163_cp_1]; + var_9_B163_cp_0[var_9_B163_cp_1] = num244 + (enraged ? 2f : 1f); + num234 = MathHelper.Clamp(npc.ai[0] / 30f, 0f, 1f); + num234 = 0.5f + num234 * 0.5f; + if (npc.ai[0] >= 30f && Main.netMode != 1) + { + npc.ai[1] = 0f; + npc.ai[0] = 0f; + npc.netUpdate = true; + npc.TargetClosest(true); + } + if (Main.netMode == 1 && npc.ai[0] >= 60f) + { + npc.ai[1] = 0f; + npc.ai[0] = 0f; + npc.TargetClosest(true); + } + int num; + for (int num247 = 0; num247 < 10; num247 = num + 1) + { + int num248 = Dust.NewDust(npc.position + Vector2.UnitX * -20f, npc.width + 40, npc.height, 4, npc.velocity.X, npc.velocity.Y, 150, new Color(78, 136, 255, 80), 2f); + Main.dust[num248].noGravity = true; + dust = Main.dust[num248]; + dust.velocity *= 2f; + num = num247; + } + } + npc.dontTakeDamage = (npc.hide = flag9); + if (npc.velocity.Y == 0f) + { + npc.velocity.X = npc.velocity.X * 0.8f; + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + { + npc.velocity.X = 0f; + } + if (!flag8) + { + npc.ai[0] += enraged ? 4f : 2f; + if ((double)npc.life < (double)npc.lifeMax * 0.8) + { + npc.ai[0] += 1f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.6) + { + npc.ai[0] += 1f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.4) + { + npc.ai[0] += 2f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.2) + { + npc.ai[0] += 3f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.1) + { + npc.ai[0] += 4f; + } + if (npc.ai[0] >= 0f) + { + npc.netUpdate = true; + npc.TargetClosest(true); + if (npc.ai[1] == 3f) + { + npc.velocity.Y = -26f; + npc.velocity.X = npc.velocity.X + 7f * (float)npc.direction; + npc.ai[0] = -200f; + npc.ai[1] = 0f; + } + else if (npc.ai[1] == 2f) + { + npc.velocity.Y = -12f; + npc.velocity.X = npc.velocity.X + 9f * (float)npc.direction; + npc.ai[0] = -120f; + npc.ai[1] += 1f; + } + else + { + npc.velocity.Y = -16f; + npc.velocity.X = npc.velocity.X + 8f * (float)npc.direction; + npc.ai[0] = -120f; + npc.ai[1] += 1f; + } + } + else if (npc.ai[0] >= -30f) + { + npc.aiAction = 1; + } + } + } + else if (npc.target < 255 && ((npc.direction == 1 && npc.velocity.X < 3f) || (npc.direction == -1 && npc.velocity.X > -3f))) + { + if ((npc.direction == -1 && (double)npc.velocity.X < 0.1) || (npc.direction == 1 && (double)npc.velocity.X > -0.1)) + { + npc.velocity.X = npc.velocity.X + 0.2f * (float)npc.direction; + } + else + { + npc.velocity.X = npc.velocity.X * 0.93f; + } + } + int num249 = Dust.NewDust(npc.position, npc.width, npc.height, 4, npc.velocity.X, npc.velocity.Y, 255, new Color(0, 80, 255, 80), npc.scale * 1.2f); + Main.dust[num249].noGravity = true; + dust = Main.dust[num249]; + dust.velocity *= 0.5f; + if (npc.life > 0) + { + float num250 = (float)npc.life / (float)npc.lifeMax; + num250 = num250 * 0.5f + 0.75f; + num250 *= num234; + if (num250 != npc.scale) + { + npc.position.X = npc.position.X + (float)(npc.width / 2); + npc.position.Y = npc.position.Y + (float)npc.height; + npc.scale = num250; + npc.width = (int)(98f * npc.scale); + npc.height = (int)(92f * npc.scale); + npc.position.X = npc.position.X - (float)(npc.width / 2); + npc.position.Y = npc.position.Y - (float)npc.height; + } + if (Main.netMode != 1) + { + int num251 = (int)((double)npc.lifeMax * 0.05); + if ((float)(npc.life + num251) < npc.ai[3]) + { + npc.ai[3] = (float)npc.life; + int num252 = Main.rand.Next(1, 4); + int num; + for (int num253 = 0; num253 < num252; num253 = num + 1) + { + int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); + int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); + int num254 = 1; + if (Main.rand.Next(4) == 0) + { + num254 = 535; + } + int num255 = NPC.NewNPC(x, y, num254, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num255].SetDefaults(num254, -1f); + Main.npc[num255].velocity.X = (float)Main.rand.Next(-15, 16) * 0.1f; + Main.npc[num255].velocity.Y = (float)Main.rand.Next(-30, 1) * 0.1f; + Main.npc[num255].ai[0] = (float)(-1000 * Main.rand.Next(3)); + Main.npc[num255].ai[1] = 0f; + if (Main.netMode == 2 && num255 < 200) + { + NetMessage.SendData(23, -1, -1, null, num255, 0f, 0f, 0f, 0, 0, 0); + } + num = num253; + } + return false; + } + } + } + return false; + } + #endregion + #region BoCRush + else if (npc.type == NPCID.BrainofCthulhu) + { + NPC.crimsonBoss = npc.whoAmI; + npc.dontTakeDamage = false; + if (Main.netMode != 1 && npc.localAI[0] == 0f) + { + npc.localAI[0] = 1f; + int num; + for (int num789 = 0; num789 < 20; num789 = num + 1) + { + float num790 = npc.Center.X; + float num791 = npc.Center.Y; + num790 += (float)Main.rand.Next(-npc.width, npc.width); + num791 += (float)Main.rand.Next(-npc.height, npc.height); + int num792 = NPC.NewNPC((int)num790, (int)num791, 267, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num792].velocity = new Vector2((float)Main.rand.Next(-30, 31) * 0.1f, (float)Main.rand.Next(-30, 31) * 0.1f); + Main.npc[num792].netUpdate = true; + num = num789; + } + } + if (npc.ai[0] < 0f) + { + if (npc.localAI[2] == 0f) + { + Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + npc.localAI[2] = 1f; + Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 392, 1f); + Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 393, 1f); + Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 394, 1f); + Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 395, 1f); + int num; + for (int num794 = 0; num794 < 20; num794 = num + 1) + { + Dust.NewDust(npc.position, npc.width, npc.height, 5, (float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f, 0, default(Color), 1f); + num = num794; + } + Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + } + newAI[0] += 1f; + if (newAI[0] >= 60f) + { + newAI[0] = 0f; + if (Main.netMode != 1 && NPC.CountNPCS(NPCID.Creeper) < 15) + { + int creeper = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2) + npc.velocity.X), (int)(npc.position.Y + (float)(npc.height / 2) + npc.velocity.Y), 267, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[creeper].netUpdate = true; + } + npc.netUpdate = true; + } + npc.knockBackResist = 0f; + npc.TargetClosest(true); + Vector2 vector98 = new Vector2(npc.Center.X, npc.Center.Y); + float num795 = Main.player[npc.target].Center.X - vector98.X; + float num796 = Main.player[npc.target].Center.Y - vector98.Y; + float num797 = (float)Math.Sqrt((double)(num795 * num795 + num796 * num796)); + float num798 = (enraged ? 21f : 14f); + num797 = num798 / num797; + num795 *= num797; + num796 *= num797; + npc.velocity.X = (npc.velocity.X * 50f + num795) / 51f; + npc.velocity.Y = (npc.velocity.Y * 50f + num796) / 51f; + if (npc.ai[0] == -1f) + { + if (Main.netMode != 1) + { + npc.localAI[1] += 1f; + if (npc.justHit) + { + npc.localAI[1] -= (float)Main.rand.Next(5); + } + int num799 = 60 + Main.rand.Next(120); + if (Main.netMode != 0) + { + num799 += Main.rand.Next(30, 90); + } + if (npc.localAI[1] >= (float)num799) + { + npc.localAI[1] = 0f; + npc.TargetClosest(true); + int num800 = 0; + int num801; + int num802; + while (true) + { + num800++; + num801 = (int)Main.player[npc.target].Center.X / 16; + num802 = (int)Main.player[npc.target].Center.Y / 16; + if (Main.rand.Next(2) == 0) + { + num801 += Main.rand.Next(7, 13); + } + else + { + num801 -= Main.rand.Next(7, 13); + } + if (Main.rand.Next(2) == 0) + { + num802 += Main.rand.Next(7, 13); + } + else + { + num802 -= Main.rand.Next(7, 13); + } + if (!WorldGen.SolidTile(num801, num802)) + { + break; + } + if (num800 > 100) + { + goto Block_2784; + } + } + npc.ai[3] = 0f; + npc.ai[0] = -2f; + npc.ai[1] = (float)num801; + npc.ai[2] = (float)num802; + npc.netUpdate = true; + npc.netSpam = 0; + Block_2784:; + } + } + } + else if (npc.ai[0] == -2f) + { + npc.velocity *= 0.9f; + if (Main.netMode != 0) + { + npc.ai[3] += 15f; + } + else + { + npc.ai[3] += 25f; + } + if (npc.ai[3] >= 255f) + { + npc.ai[3] = 255f; + npc.position.X = npc.ai[1] * 16f - (float)(npc.width / 2); + npc.position.Y = npc.ai[2] * 16f - (float)(npc.height / 2); + Main.PlaySound(SoundID.Item8, npc.Center); + npc.ai[0] = -3f; + npc.netUpdate = true; + npc.netSpam = 0; + } + npc.alpha = (int)npc.ai[3]; + } + else if (npc.ai[0] == -3f) + { + if (Main.netMode != 0) + { + npc.ai[3] -= 15f; + } + else + { + npc.ai[3] -= 25f; + } + if (npc.ai[3] <= 0f) + { + npc.ai[3] = 0f; + npc.ai[0] = -1f; + npc.netUpdate = true; + npc.netSpam = 0; + } + npc.alpha = (int)npc.ai[3]; + } + } + else + { + npc.TargetClosest(true); + Vector2 vector99 = new Vector2(npc.Center.X, npc.Center.Y); + float num803 = Main.player[npc.target].Center.X - vector99.X; + float num804 = Main.player[npc.target].Center.Y - vector99.Y; + float num805 = (float)Math.Sqrt((double)(num803 * num803 + num804 * num804)); + float num806 = (enraged ? 3f : 2f); + if (num805 < num806) + { + npc.velocity.X = num803; + npc.velocity.Y = num804; + } + else + { + num805 = num806 / num805; + npc.velocity.X = num803 * num805; + npc.velocity.Y = num804 * num805; + } + if (npc.ai[0] == 0f) + { + if (Main.netMode != 1) + { + int num807 = 0; + int num; + for (int num808 = 0; num808 < 200; num808 = num + 1) + { + if (Main.npc[num808].active && Main.npc[num808].type == 267) + { + num807++; + } + num = num808; + } + if (num807 == 0) + { + npc.ai[0] = -1f; + npc.localAI[1] = 0f; + npc.alpha = 0; + npc.netUpdate = true; + } + npc.localAI[1] += 1f; + if (npc.localAI[1] >= (float)(120 + Main.rand.Next(120))) + { + npc.localAI[1] = 0f; + npc.TargetClosest(true); + int num809 = 0; + int num810; + int num811; + while (true) + { + num809++; + num810 = (int)Main.player[npc.target].Center.X / 16; + num811 = (int)Main.player[npc.target].Center.Y / 16; + num810 += Main.rand.Next(-50, 51); + num811 += Main.rand.Next(-50, 51); + if (!WorldGen.SolidTile(num810, num811) && Collision.CanHit(new Vector2((float)(num810 * 16), (float)(num811 * 16)), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + break; + } + if (num809 > 100) + { + goto Block_2801; + } + } + npc.ai[0] = 1f; + npc.ai[1] = (float)num810; + npc.ai[2] = (float)num811; + npc.netUpdate = true; + Block_2801:; + } + } + } + else if (npc.ai[0] == 1f) + { + npc.alpha += 5; + if (npc.alpha >= 255) + { + Main.PlaySound(SoundID.Item8, npc.Center); + npc.alpha = 255; + npc.position.X = npc.ai[1] * 16f - (float)(npc.width / 2); + npc.position.Y = npc.ai[2] * 16f - (float)(npc.height / 2); + npc.ai[0] = 2f; + } + } + else if (npc.ai[0] == 2f) + { + npc.alpha -= 5; + if (npc.alpha <= 0) + { + npc.alpha = 0; + npc.ai[0] = 0f; + } + } + } + if (Main.player[npc.target].dead) + { + if (npc.localAI[3] < 120f) + { + float[] var_9_29972_cp_0 = npc.localAI; + int var_9_29972_cp_1 = 3; + float num244 = var_9_29972_cp_0[var_9_29972_cp_1]; + var_9_29972_cp_0[var_9_29972_cp_1] = num244 + 1f; + } + if (npc.localAI[3] > 60f) + { + npc.velocity.Y = npc.velocity.Y + (npc.localAI[3] - 60f) * 0.25f; + } + npc.ai[0] = 2f; + npc.alpha = 10; + return false; + } + if (npc.localAI[3] > 0f) + { + float[] var_9_299F7_cp_0 = npc.localAI; + int var_9_299F7_cp_1 = 3; + float num244 = var_9_299F7_cp_0[var_9_299F7_cp_1]; + var_9_299F7_cp_0[var_9_299F7_cp_1] = num244 - 1f; + return false; + } + return false; + } + #endregion + #region EoWRush + else if (npc.type == NPCID.EaterofWorldsHead) + { + Main.player[npc.target].ZoneCorrupt = true; + npc.reflectingProjectiles = true; + if (!Main.player[npc.target].dead) + { + newAI[0] += (enraged ? 6f : 3f); + } + if (newAI[0] >= 180f) + { + newAI[0] = 0f; + if (Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; + float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; + float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num349 *= num351; + num350 *= num351; + if (Main.netMode != 1) + { + float num418 = (enraged ? 18f : 12f); + int num419 = 12; + int num420 = 96; + num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num351 = num418 / num351; + num349 *= num351; + num350 *= num351; + num349 += (float)Main.rand.Next(-40, 41) * 0.05f; + num350 += (float)Main.rand.Next(-40, 41) * 0.05f; + vector34.X += num349 * 4f; + vector34.Y += num350 * 4f; + Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num420, num419, 0f, Main.myPlayer, 0f, 0f); + } + } + } + } + #endregion + #region QBRush + else if (npc.type == NPCID.QueenBee) + { + int num592 = 0; + int variable; + for (int num593 = 0; num593 < 255; num593 = variable + 1) + { + if (Main.player[num593].active && !Main.player[num593].dead && (npc.Center - Main.player[num593].Center).Length() < 1000f) + { + num592++; + } + variable = num593; + } + int num594 = (int)(20f * (1f - (float)npc.life / (float)npc.lifeMax)); + npc.defense = npc.defDefense + num594; + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) + { + npc.TargetClosest(true); + } + bool dead4 = Main.player[npc.target].dead; + if (dead4) + { + if ((double)npc.position.Y < Main.worldSurface * 16.0 + 2000.0) + { + npc.velocity.Y = npc.velocity.Y + 0.04f; + } + if (npc.position.X < (float)(Main.maxTilesX * 8)) + { + npc.velocity.X = npc.velocity.X - 0.04f; + } + else + { + npc.velocity.X = npc.velocity.X + 0.04f; + } + if (npc.timeLeft > 10) + { + npc.timeLeft = 10; + return false; + } + } + else if (npc.ai[0] == -1f) + { + if (Main.netMode != 1) + { + float num595 = npc.ai[1]; + int num596; + do + { + num596 = Main.rand.Next(3); + if (num596 == 1) + { + num596 = 2; + } + else if (num596 == 2) + { + num596 = 3; + } + } + while ((float)num596 == num595); + npc.ai[0] = (float)num596; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + return false; + } + } + else if (npc.ai[0] == 0f) + { + int num597 = 5; + if (npc.ai[1] > (float)(2 * num597) && npc.ai[1] % 2f == 0f) + { + npc.ai[0] = -1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return false; + } + if (npc.ai[1] % 2f == 0f) + { + npc.TargetClosest(true); + if (Math.Abs(npc.position.Y + (float)(npc.height / 2) - (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2))) < 20f) + { + npc.localAI[0] = 1f; + npc.ai[1] += 1f; + npc.ai[2] = 0f; + float num598 = 24f; + Vector2 vector74 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num599 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector74.X; + float num600 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector74.Y; + float num601 = (float)Math.Sqrt((double)(num599 * num599 + num600 * num600)); + num601 = num598 / num601; + npc.velocity.X = num599 * num601; + npc.velocity.Y = num600 * num601; + npc.spriteDirection = npc.direction; + Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + return false; + } + npc.localAI[0] = 0f; + float num602 = 18f; + float num603 = 0.4f; + if (npc.position.Y + (float)(npc.height / 2) < Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2)) + { + npc.velocity.Y = npc.velocity.Y + num603; + } + else + { + npc.velocity.Y = npc.velocity.Y - num603; + } + if (npc.velocity.Y < -12f) + { + npc.velocity.Y = -num602; + } + if (npc.velocity.Y > 12f) + { + npc.velocity.Y = num602; + } + if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > 600f) + { + npc.velocity.X = npc.velocity.X + 0.15f * (float)npc.direction; + } + else if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) < 300f) + { + npc.velocity.X = npc.velocity.X - 0.15f * (float)npc.direction; + } + else + { + npc.velocity.X = npc.velocity.X * 0.8f; + } + if (npc.velocity.X < -16f) + { + npc.velocity.X = -16f; + } + if (npc.velocity.X > 16f) + { + npc.velocity.X = 16f; + } + npc.spriteDirection = npc.direction; + return false; + } + else + { + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + int num604 = (enraged ? 150 : 250); + int num605 = 1; + if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) + { + num605 = -1; + } + if (npc.direction == num605 && Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > (float)num604) + { + npc.ai[2] = 1f; + } + if (npc.ai[2] != 1f) + { + npc.localAI[0] = 1f; + return false; + } + npc.TargetClosest(true); + npc.spriteDirection = npc.direction; + npc.localAI[0] = 0f; + npc.velocity *= 0.9f; + float num606 = 0.25f; + if (npc.life < npc.lifeMax / 2) + { + npc.velocity *= 0.9f; + } + if (npc.life < npc.lifeMax / 3) + { + npc.velocity *= 0.9f; + } + if (npc.life < npc.lifeMax / 5) + { + npc.velocity *= 0.9f; + } + if (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y) < num606) + { + npc.ai[2] = 0f; + npc.ai[1] += 1f; + return false; + } + } + } + else if (npc.ai[0] == 2f) + { + npc.TargetClosest(true); + npc.spriteDirection = npc.direction; + float num607 = 12f; + float num608 = 0.1f; + Vector2 vector75 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num609 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector75.X; + float num610 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 200f - vector75.Y; + float num611 = (float)Math.Sqrt((double)(num609 * num609 + num610 * num610)); + if (num611 < 200f) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.netUpdate = true; + return false; + } + num611 = num607 / num611; + if (npc.velocity.X < num609) + { + npc.velocity.X = npc.velocity.X + num608; + if (npc.velocity.X < 0f && num609 > 0f) + { + npc.velocity.X = npc.velocity.X + num608; + } + } + else if (npc.velocity.X > num609) + { + npc.velocity.X = npc.velocity.X - num608; + if (npc.velocity.X > 0f && num609 < 0f) + { + npc.velocity.X = npc.velocity.X - num608; + } + } + if (npc.velocity.Y < num610) + { + npc.velocity.Y = npc.velocity.Y + num608; + if (npc.velocity.Y < 0f && num610 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num608; + return false; + } + } + else if (npc.velocity.Y > num610) + { + npc.velocity.Y = npc.velocity.Y - num608; + if (npc.velocity.Y > 0f && num610 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num608; + return false; + } + } + } + else if (npc.ai[0] == 1f) + { + npc.localAI[0] = 0f; + npc.TargetClosest(true); + Vector2 vector76 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); + Vector2 vector77 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num612 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector77.X; + float num613 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector77.Y; + float num614 = (float)Math.Sqrt((double)(num612 * num612 + num613 * num613)); + npc.ai[1] += 1f; + npc.ai[1] += (float)(num592 / 2); + bool flag38 = false; + if (npc.ai[1] > 10f) + { + npc.ai[1] = 0f; + float[] var_9_2174E_cp_0 = npc.ai; + int var_9_2174E_cp_1 = 2; + float num244 = var_9_2174E_cp_0[var_9_2174E_cp_1]; + var_9_2174E_cp_0[var_9_2174E_cp_1] = num244 + 1f; + flag38 = true; + } + if (Collision.CanHit(vector76, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && flag38) + { + Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + if (Main.netMode != 1) + { + int num615 = Main.rand.Next(210, 212); + int num616 = NPC.NewNPC((int)vector76.X, (int)vector76.Y, num615, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num616].velocity.X = (float)Main.rand.Next(-200, 201) * 0.002f; + Main.npc[num616].velocity.Y = (float)Main.rand.Next(-200, 201) * 0.002f; + Main.npc[num616].localAI[0] = 60f; + Main.npc[num616].netUpdate = true; + } + } + if (num614 > 400f || !Collision.CanHit(new Vector2(vector76.X, vector76.Y - 30f), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + float num617 = 14f; + float num618 = 0.1f; + vector77 = vector76; + num612 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector77.X; + num613 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector77.Y; + num614 = (float)Math.Sqrt((double)(num612 * num612 + num613 * num613)); + num614 = num617 / num614; + if (npc.velocity.X < num612) + { + npc.velocity.X = npc.velocity.X + num618; + if (npc.velocity.X < 0f && num612 > 0f) + { + npc.velocity.X = npc.velocity.X + num618; + } + } + else if (npc.velocity.X > num612) + { + npc.velocity.X = npc.velocity.X - num618; + if (npc.velocity.X > 0f && num612 < 0f) + { + npc.velocity.X = npc.velocity.X - num618; + } + } + if (npc.velocity.Y < num613) + { + npc.velocity.Y = npc.velocity.Y + num618; + if (npc.velocity.Y < 0f && num613 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num618; + } + } + else if (npc.velocity.Y > num613) + { + npc.velocity.Y = npc.velocity.Y - num618; + if (npc.velocity.Y > 0f && num613 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num618; + } + } + } + else + { + npc.velocity *= 0.9f; + } + npc.spriteDirection = npc.direction; + if (npc.ai[2] > 5f) + { + npc.ai[0] = -1f; + npc.ai[1] = 1f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 3f) + { + float num619 = 6f; + float num620 = 0.075f; + Vector2 vector78 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); + Vector2 vector79 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num621 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector79.X; + float num622 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 300f - vector79.Y; + float num623 = (float)Math.Sqrt((double)(num621 * num621 + num622 * num622)); + npc.ai[1] += 1f; + bool flag39 = false; + if (npc.ai[1] % 15f == 14f) + { + flag39 = true; + } + if (flag39 && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y && Collision.CanHit(vector78, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + Main.PlaySound(SoundID.Item17, npc.position); + if (Main.netMode != 1) + { + float num624 = (enraged ? 24f : 16f); + float num625 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector78.X + (float)Main.rand.Next(-80, 81); + float num626 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector78.Y + (float)Main.rand.Next(-40, 41); + float num627 = (float)Math.Sqrt((double)(num625 * num625 + num626 * num626)); + num627 = num624 / num627; + num625 *= num627; + num626 *= num627; + int num628 = 11; + int num629 = 55; + int num630 = Projectile.NewProjectile(vector78.X, vector78.Y, num625, num626, num629, num628, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[num630].timeLeft = 300; + } + } + if (!Collision.CanHit(new Vector2(vector78.X, vector78.Y - 30f), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + num619 = 14f; + num620 = 0.1f; + vector79 = vector78; + num621 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector79.X; + num622 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector79.Y; + num623 = (float)Math.Sqrt((double)(num621 * num621 + num622 * num622)); + num623 = num619 / num623; + if (npc.velocity.X < num621) + { + npc.velocity.X = npc.velocity.X + num620; + if (npc.velocity.X < 0f && num621 > 0f) + { + npc.velocity.X = npc.velocity.X + num620; + } + } + else if (npc.velocity.X > num621) + { + npc.velocity.X = npc.velocity.X - num620; + if (npc.velocity.X > 0f && num621 < 0f) + { + npc.velocity.X = npc.velocity.X - num620; + } + } + if (npc.velocity.Y < num622) + { + npc.velocity.Y = npc.velocity.Y + num620; + if (npc.velocity.Y < 0f && num622 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num620; + } + } + else if (npc.velocity.Y > num622) + { + npc.velocity.Y = npc.velocity.Y - num620; + if (npc.velocity.Y > 0f && num622 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num620; + } + } + } + else if (num623 > 100f) + { + npc.TargetClosest(true); + npc.spriteDirection = npc.direction; + num623 = num619 / num623; + if (npc.velocity.X < num621) + { + npc.velocity.X = npc.velocity.X + num620; + if (npc.velocity.X < 0f && num621 > 0f) + { + npc.velocity.X = npc.velocity.X + num620 * 2f; + } + } + else if (npc.velocity.X > num621) + { + npc.velocity.X = npc.velocity.X - num620; + if (npc.velocity.X > 0f && num621 < 0f) + { + npc.velocity.X = npc.velocity.X - num620 * 2f; + } + } + if (npc.velocity.Y < num622) + { + npc.velocity.Y = npc.velocity.Y + num620; + if (npc.velocity.Y < 0f && num622 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num620 * 2f; + } + } + else if (npc.velocity.Y > num622) + { + npc.velocity.Y = npc.velocity.Y - num620; + if (npc.velocity.Y > 0f && num622 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num620 * 2f; + } + } + } + if (npc.ai[1] > 400f) + { + npc.ai[0] = -1f; + npc.ai[1] = 3f; + npc.netUpdate = true; + return false; + } + } + return false; + } + #endregion + #region DFRush + else if (npc.type == NPCID.DukeFishron) + { + if (npc.ai[0] == -1f || npc.ai[0] == 4f || npc.ai[0] == 9f) + { + npc.dontTakeDamage = true; + } + else if (npc.ai[0] <= 8f) + { + npc.dontTakeDamage = false; + } + float newDamage = (0.6f * Main.damageMultiplier); + bool flag = (double)npc.life <= (double)npc.lifeMax * 0.99; + bool flag2 = (double)npc.life <= (double)npc.lifeMax * 0.15; + bool flag3 = npc.ai[0] > 4f; + bool flag4 = npc.ai[0] > 9f; + bool flag5 = npc.ai[3] < 10f; + Vector2 vector = npc.Center; + if (flag4) + { + newAI[0] += 1f; + if (newAI[0] >= 480f) + { + newAI[0] = 0f; + if (Main.netMode != 1) + { + Projectile.NewProjectile(vector.X, vector.Y, 0f, 0f, 385, 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + } + npc.netUpdate = true; + } + npc.damage = (int)((float)npc.defDamage * 1.5f * newDamage); + npc.defense = 38; + } + else if (flag3) + { + npc.damage = (int)((float)npc.defDamage * 2.2f * newDamage); + npc.defense = (int)((float)npc.defDefense * 0.8f); + } + else + { + npc.damage = npc.defDamage; + npc.defense = npc.defDefense; + } + int num2 = 35; + float num3 = 0.65f; + float scaleFactor = 9.5f; + if (flag4) + { + num3 = (enraged ? 0.9f : 0.8f); + scaleFactor = (enraged ? 15f : 13f); + num2 = (enraged ? 22 : 25); + } + else if (flag3 & flag5) + { + num3 = (enraged ? 0.8f : 0.7f); + scaleFactor = (enraged ? 13f : 11f); + num2 = (enraged ? 30 : 35); + } + else if (flag5 && !flag3 && !flag4) + { + num2 = 25; + } + int num4 = 24; + float num5 = 18f; + if (flag4) + { + num4 = (enraged ? 18 : 20); + num5 = (enraged ? 30f : 28f); + } + else if (flag5 & flag3) + { + num4 = (enraged ? 21 : 23); + num5 = (enraged ? 25f : 22f); + } + int num6 = 80; + int num7 = 4; + float num8 = 0.3f; + float scaleFactor2 = 5f; + int num9 = 90; + int num10 = 180; + int num11 = 180; + int num12 = 30; + int num13 = 120; + int num14 = 4; + float scaleFactor3 = 6f; + float scaleFactor4 = 20f; + float num15 = 6.28318548f / (float)(num13 / 2); + int num16 = 75; + Player player = Main.player[npc.target]; + if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) + { + npc.TargetClosest(true); + player = Main.player[npc.target]; + npc.netUpdate = true; + } + if (player.dead || Vector2.Distance(player.Center, vector) > 5600f) + { + npc.velocity.Y = npc.velocity.Y - 0.4f; + if (npc.timeLeft > 10) + { + npc.timeLeft = 10; + } + if (npc.ai[0] > 4f) + { + npc.ai[0] = 5f; + } + else + { + npc.ai[0] = 0f; + } + npc.ai[2] = 0f; + } + if (player.position.Y < 800f || (double)player.position.Y > Main.worldSurface * 16.0 || (player.position.X > 6400f && player.position.X < (float)(Main.maxTilesX * 16 - 6400))) + { + num2 = 20; + num5 += 6f; + } + if (npc.localAI[0] == 0f) + { + npc.localAI[0] = 1f; + npc.alpha = 255; + npc.rotation = 0f; + if (Main.netMode != 1) + { + npc.ai[0] = -1f; + npc.netUpdate = true; + } + } + float num17 = (float)Math.Atan2((double)(player.Center.Y - vector.Y), (double)(player.Center.X - vector.X)); + if (npc.spriteDirection == 1) + { + num17 += 3.14159274f; + } + if (num17 < 0f) + { + num17 += 6.28318548f; + } + if (num17 > 6.28318548f) + { + num17 -= 6.28318548f; + } + if (npc.ai[0] == -1f) + { + num17 = 0f; + } + if (npc.ai[0] == 3f) + { + num17 = 0f; + } + if (npc.ai[0] == 4f) + { + num17 = 0f; + } + if (npc.ai[0] == 8f) + { + num17 = 0f; + } + float num18 = 0.04f; + if (npc.ai[0] == 1f || npc.ai[0] == 6f) + { + num18 = 0f; + } + if (npc.ai[0] == 7f) + { + num18 = 0f; + } + if (npc.ai[0] == 3f) + { + num18 = 0.01f; + } + if (npc.ai[0] == 4f) + { + num18 = 0.01f; + } + if (npc.ai[0] == 8f) + { + num18 = 0.01f; + } + if (npc.rotation < num17) + { + if ((double)(num17 - npc.rotation) > 3.1415926535897931) + { + npc.rotation -= num18; + } + else + { + npc.rotation += num18; + } + } + if (npc.rotation > num17) + { + if ((double)(npc.rotation - num17) > 3.1415926535897931) + { + npc.rotation += num18; + } + else + { + npc.rotation -= num18; + } + } + if (npc.rotation > num17 - num18 && npc.rotation < num17 + num18) + { + npc.rotation = num17; + } + if (npc.rotation < 0f) + { + npc.rotation += 6.28318548f; + } + if (npc.rotation > 6.28318548f) + { + npc.rotation -= 6.28318548f; + } + if (npc.rotation > num17 - num18 && npc.rotation < num17 + num18) + { + npc.rotation = num17; + } + if (npc.ai[0] != -1f && npc.ai[0] < 9f) + { + if (Collision.SolidCollision(npc.position, npc.width, npc.height)) + { + npc.alpha += 15; + } + else + { + npc.alpha -= 15; + } + if (npc.alpha < 0) + { + npc.alpha = 0; + } + if (npc.alpha > 150) + { + npc.alpha = 150; + } + } + if (npc.ai[0] == -1f) + { + npc.velocity *= 0.98f; + int num19 = Math.Sign(player.Center.X - vector.X); + if (num19 != 0) + { + npc.direction = num19; + npc.spriteDirection = -npc.direction; + } + if (npc.ai[2] > 20f) + { + npc.velocity.Y = -2f; + npc.alpha -= 5; + if (Collision.SolidCollision(npc.position, npc.width, npc.height)) + { + npc.alpha += 15; + } + if (npc.alpha < 0) + { + npc.alpha = 0; + } + if (npc.alpha > 150) + { + npc.alpha = 150; + } + } + if (npc.ai[2] == (float)(num9 - 30)) + { + int num20 = 36; + for (int i = 0; i < num20; i++) + { + Vector2 expr_80F = (Vector2.Normalize(npc.velocity) * new Vector2((float)npc.width / 2f, (float)npc.height) * 0.75f * 0.5f).RotatedBy((double)((float)(i - (num20 / 2 - 1)) * 6.28318548f / (float)num20), default(Vector2)) + npc.Center; + Vector2 vector2 = expr_80F - npc.Center; + int num21 = Dust.NewDust(expr_80F + vector2, 0, 0, 172, vector2.X * 2f, vector2.Y * 2f, 100, default(Color), 1.4f); + Main.dust[num21].noGravity = true; + Main.dust[num21].noLight = true; + Main.dust[num21].velocity = Vector2.Normalize(vector2) * 3f; + } + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num16) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 0f && !player.dead) + { + if (npc.ai[1] == 0f) + { + npc.ai[1] = (float)(300 * Math.Sign((vector - player.Center).X)); + } + Vector2 vector3 = Vector2.Normalize(player.Center + new Vector2(npc.ai[1], -200f) - vector - npc.velocity) * scaleFactor; + if (npc.velocity.X < vector3.X) + { + npc.velocity.X = npc.velocity.X + num3; + if (npc.velocity.X < 0f && vector3.X > 0f) + { + npc.velocity.X = npc.velocity.X + num3; + } + } + else if (npc.velocity.X > vector3.X) + { + npc.velocity.X = npc.velocity.X - num3; + if (npc.velocity.X > 0f && vector3.X < 0f) + { + npc.velocity.X = npc.velocity.X - num3; + } + } + if (npc.velocity.Y < vector3.Y) + { + npc.velocity.Y = npc.velocity.Y + num3; + if (npc.velocity.Y < 0f && vector3.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num3; + } + } + else if (npc.velocity.Y > vector3.Y) + { + npc.velocity.Y = npc.velocity.Y - num3; + if (npc.velocity.Y > 0f && vector3.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y - num3; + } + } + int num22 = Math.Sign(player.Center.X - vector.X); + if (num22 != 0) + { + if (npc.ai[2] == 0f && num22 != npc.direction) + { + npc.rotation += 3.14159274f; + } + npc.direction = num22; + if (npc.spriteDirection != -npc.direction) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num2) + { + int num23 = 0; + switch ((int)npc.ai[3]) + { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + num23 = 1; + break; + case 10: + npc.ai[3] = 1f; + num23 = 2; + break; + case 11: + npc.ai[3] = 0f; + num23 = 3; + break; + } + if (flag) + { + num23 = 4; + } + if (num23 == 1) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.velocity = Vector2.Normalize(player.Center - vector) * num5; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num22 != 0) + { + npc.direction = num22; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + } + else if (num23 == 2) + { + npc.ai[0] = 2f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + else if (num23 == 3) + { + npc.ai[0] = 3f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + else if (num23 == 4) + { + npc.ai[0] = 4f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 1f) + { + int num24 = 7; + for (int j = 0; j < num24; j++) + { + Vector2 arg_E1C_0 = (Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f).RotatedBy((double)(j - (num24 / 2 - 1)) * 3.1415926535897931 / (double)((float)num24), default(Vector2)) + vector; + Vector2 vector4 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); + int num25 = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, 172, vector4.X * 2f, vector4.Y * 2f, 100, default(Color), 1.4f); + Main.dust[num25].noGravity = true; + Main.dust[num25].noLight = true; + Main.dust[num25].velocity /= 4f; + Main.dust[num25].velocity -= npc.velocity; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num4) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 2f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 2f) + { + if (npc.ai[1] == 0f) + { + npc.ai[1] = (float)(300 * Math.Sign((vector - player.Center).X)); + } + Vector2 vector5 = Vector2.Normalize(player.Center + new Vector2(npc.ai[1], -200f) - vector - npc.velocity) * scaleFactor2; + if (npc.velocity.X < vector5.X) + { + npc.velocity.X = npc.velocity.X + num8; + if (npc.velocity.X < 0f && vector5.X > 0f) + { + npc.velocity.X = npc.velocity.X + num8; + } + } + else if (npc.velocity.X > vector5.X) + { + npc.velocity.X = npc.velocity.X - num8; + if (npc.velocity.X > 0f && vector5.X < 0f) + { + npc.velocity.X = npc.velocity.X - num8; + } + } + if (npc.velocity.Y < vector5.Y) + { + npc.velocity.Y = npc.velocity.Y + num8; + if (npc.velocity.Y < 0f && vector5.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num8; + } + } + else if (npc.velocity.Y > vector5.Y) + { + npc.velocity.Y = npc.velocity.Y - num8; + if (npc.velocity.Y > 0f && vector5.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y - num8; + } + } + if (npc.ai[2] == 0f) + { + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + } + if (npc.ai[2] % (float)num7 == 0f) + { + Main.PlaySound(4, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); + if (Main.netMode != 1) + { + Vector2 vector6 = Vector2.Normalize(player.Center - vector) * (float)(npc.width + 20) / 2f + vector; + NPC.NewNPC((int)vector6.X, (int)vector6.Y + 45, 371, 0, 0f, 0f, 0f, 0f, 255); + } + } + int num26 = Math.Sign(player.Center.X - vector.X); + if (num26 != 0) + { + npc.direction = num26; + if (npc.spriteDirection != -npc.direction) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num6) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 3f) + { + npc.velocity *= 0.98f; + npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); + if (npc.ai[2] == (float)(num9 - 30)) + { + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 9, 1f, 0f); + } + if (Main.netMode != 1 && npc.ai[2] == (float)(num9 - 30)) + { + Vector2 vector7 = npc.rotation.ToRotationVector2() * (Vector2.UnitX * (float)npc.direction) * (float)(npc.width + 20) / 2f + vector; + Projectile.NewProjectile(vector7.X, vector7.Y, (float)(npc.direction * 2), 8f, 385, 0, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(vector7.X, vector7.Y, (float)(-(float)npc.direction * 2), 8f, 385, 0, 0f, Main.myPlayer, 0f, 0f); + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num9) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 4f) + { + npc.velocity *= 0.98f; + npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); + if (npc.ai[2] == (float)(num10 - 60)) + { + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num10) + { + npc.ai[0] = 5f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 5f && !player.dead) + { + if (npc.ai[1] == 0f) + { + npc.ai[1] = (float)(300 * Math.Sign((vector - player.Center).X)); + } + Vector2 vector8 = Vector2.Normalize(player.Center + new Vector2(npc.ai[1], -200f) - vector - npc.velocity) * scaleFactor; + if (npc.velocity.X < vector8.X) + { + npc.velocity.X = npc.velocity.X + num3; + if (npc.velocity.X < 0f && vector8.X > 0f) + { + npc.velocity.X = npc.velocity.X + num3; + } + } + else if (npc.velocity.X > vector8.X) + { + npc.velocity.X = npc.velocity.X - num3; + if (npc.velocity.X > 0f && vector8.X < 0f) + { + npc.velocity.X = npc.velocity.X - num3; + } + } + if (npc.velocity.Y < vector8.Y) + { + npc.velocity.Y = npc.velocity.Y + num3; + if (npc.velocity.Y < 0f && vector8.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num3; + } + } + else if (npc.velocity.Y > vector8.Y) + { + npc.velocity.Y = npc.velocity.Y - num3; + if (npc.velocity.Y > 0f && vector8.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y - num3; + } + } + int num27 = Math.Sign(player.Center.X - vector.X); + if (num27 != 0) + { + if (npc.ai[2] == 0f && num27 != npc.direction) + { + npc.rotation += 3.14159274f; + } + npc.direction = num27; + if (npc.spriteDirection != -npc.direction) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num2) + { + int num28 = 0; + switch ((int)npc.ai[3]) + { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + num28 = 1; + break; + case 6: + npc.ai[3] = 1f; + num28 = 2; + break; + case 7: + npc.ai[3] = 0f; + num28 = 3; + break; + } + if (flag2) + { + num28 = 4; + } + if (num28 == 1) + { + npc.ai[0] = 6f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.velocity = Vector2.Normalize(player.Center - vector) * num5; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num27 != 0) + { + npc.direction = num27; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + } + else if (num28 == 2) + { + npc.velocity = Vector2.Normalize(player.Center - vector) * scaleFactor4; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num27 != 0) + { + npc.direction = num27; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + npc.ai[0] = 7f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + else if (num28 == 3) + { + npc.ai[0] = 8f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + else if (num28 == 4) + { + npc.ai[0] = 9f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 6f) + { + int num29 = 7; + for (int k = 0; k < num29; k++) + { + Vector2 arg_1A97_0 = (Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f).RotatedBy((double)(k - (num29 / 2 - 1)) * 3.1415926535897931 / (double)((float)num29), default(Vector2)) + vector; + Vector2 vector9 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); + int num30 = Dust.NewDust(arg_1A97_0 + vector9, 0, 0, 172, vector9.X * 2f, vector9.Y * 2f, 100, default(Color), 1.4f); + Main.dust[num30].noGravity = true; + Main.dust[num30].noLight = true; + Main.dust[num30].velocity /= 4f; + Main.dust[num30].velocity -= npc.velocity; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num4) + { + npc.ai[0] = 5f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 2f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 7f) + { + if (npc.ai[2] == 0f) + { + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + } + if (npc.ai[2] % (float)num14 == 0f) + { + Main.PlaySound(4, (int)npc.Center.X, (int)npc.Center.Y, 19, 1f, 0f); + if (Main.netMode != 1) + { + Vector2 vector10 = Vector2.Normalize(npc.velocity) * (float)(npc.width + 20) / 2f + vector; + int num31 = NPC.NewNPC((int)vector10.X, (int)vector10.Y + 45, 371, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num31].target = npc.target; + Main.npc[num31].velocity = Vector2.Normalize(npc.velocity).RotatedBy((double)(1.57079637f * (float)npc.direction), default(Vector2)) * scaleFactor3; + Main.npc[num31].netUpdate = true; + Main.npc[num31].ai[3] = (float)Main.rand.Next(80, 121) / 100f; + } + } + npc.velocity = npc.velocity.RotatedBy((double)(-(double)num15 * (float)npc.direction), default(Vector2)); + npc.rotation -= num15 * (float)npc.direction; + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num13) + { + npc.ai[0] = 5f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 8f) + { + npc.velocity *= 0.98f; + npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); + if (npc.ai[2] == (float)(num9 - 30)) + { + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + } + if (Main.netMode != 1 && npc.ai[2] == (float)(num9 - 30)) + { + Projectile.NewProjectile(vector.X, vector.Y, 0f, 0f, 385, 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num9) + { + npc.ai[0] = 5f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 9f) + { + if (npc.ai[2] < (float)(num11 - 90)) + { + if (Collision.SolidCollision(npc.position, npc.width, npc.height)) + { + npc.alpha += 15; + } + else + { + npc.alpha -= 15; + } + if (npc.alpha < 0) + { + npc.alpha = 0; + } + if (npc.alpha > 150) + { + npc.alpha = 150; + } + } + else if (npc.alpha < 255) + { + npc.alpha += 4; + if (npc.alpha > 255) + { + npc.alpha = 255; + } + } + npc.velocity *= 0.98f; + npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); + if (npc.ai[2] == (float)(num11 - 60)) + { + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num11) + { + npc.ai[0] = 10f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 10f && !player.dead) + { + npc.dontTakeDamage = false; + npc.chaseable = false; + if (npc.alpha < 255) + { + npc.alpha += 25; + if (npc.alpha > 255) + { + npc.alpha = 255; + } + } + if (npc.ai[1] == 0f) + { + npc.ai[1] = (float)(360 * Math.Sign((vector - player.Center).X)); + } + Vector2 desiredVelocity = Vector2.Normalize(player.Center + new Vector2(npc.ai[1], -200f) - vector - npc.velocity) * scaleFactor; + npc.SimpleFlyMovement(desiredVelocity, num3); + int num32 = Math.Sign(player.Center.X - vector.X); + if (num32 != 0) + { + if (npc.ai[2] == 0f && num32 != npc.direction) + { + npc.rotation += 3.14159274f; + for (int l = 0; l < npc.oldPos.Length; l++) + { + npc.oldPos[l] = Vector2.Zero; + } + } + npc.direction = num32; + if (npc.spriteDirection != -npc.direction) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num2) + { + int num33 = 0; + switch ((int)npc.ai[3]) + { + case 0: + case 2: + case 3: + case 5: + case 6: + case 7: + num33 = 1; + break; + case 1: + case 4: + case 8: + num33 = 2; + break; + } + if (num33 == 1) + { + npc.ai[0] = 11f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.velocity = Vector2.Normalize(player.Center - vector) * num5; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num32 != 0) + { + npc.direction = num32; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + } + else if (num33 == 2) + { + npc.ai[0] = 12f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + else if (num33 == 3) + { + npc.ai[0] = 13f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 11f) + { + npc.dontTakeDamage = false; + npc.chaseable = true; + npc.alpha -= 25; + if (npc.alpha < 0) + { + npc.alpha = 0; + } + int num34 = 7; + for (int m = 0; m < num34; m++) + { + Vector2 arg_2444_0 = (Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f).RotatedBy((double)(m - (num34 / 2 - 1)) * 3.1415926535897931 / (double)((float)num34), default(Vector2)) + vector; + Vector2 vector11 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); + int num35 = Dust.NewDust(arg_2444_0 + vector11, 0, 0, 172, vector11.X * 2f, vector11.Y * 2f, 100, default(Color), 1.4f); + Main.dust[num35].noGravity = true; + Main.dust[num35].noLight = true; + Main.dust[num35].velocity /= 4f; + Main.dust[num35].velocity -= npc.velocity; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num4) + { + npc.ai[0] = 10f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 1f; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 12f) + { + npc.dontTakeDamage = true; + npc.chaseable = false; + if (npc.alpha < 255) + { + npc.alpha += 17; + if (npc.alpha > 255) + { + npc.alpha = 255; + } + } + npc.velocity *= 0.98f; + npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); + if (npc.ai[2] == (float)(num12 / 2)) + { + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + } + if (Main.netMode != 1 && npc.ai[2] == (float)(num12 / 2)) + { + if (npc.ai[1] == 0f) + { + npc.ai[1] = (float)(300 * Math.Sign((vector - player.Center).X)); + } + Vector2 center = player.Center + new Vector2(-npc.ai[1], -200f); + vector = (npc.Center = center); + int num36 = Math.Sign(player.Center.X - vector.X); + if (num36 != 0) + { + if (npc.ai[2] == 0f && num36 != npc.direction) + { + npc.rotation += 3.14159274f; + for (int n = 0; n < npc.oldPos.Length; n++) + { + npc.oldPos[n] = Vector2.Zero; + } + } + npc.direction = num36; + if (npc.spriteDirection != -npc.direction) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num12) + { + npc.ai[0] = 10f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 1f; + if (npc.ai[3] >= 9f) + { + npc.ai[3] = 0f; + } + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[0] == 13f) + { + if (npc.ai[2] == 0f) + { + Main.PlaySound(29, (int)vector.X, (int)vector.Y, 20, 1f, 0f); + } + npc.velocity = npc.velocity.RotatedBy((double)(-(double)num15 * (float)npc.direction), default(Vector2)); + npc.rotation -= num15 * (float)npc.direction; + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num13) + { + npc.ai[0] = 10f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 1f; + npc.netUpdate = true; + } + } + return false; + } + #endregion + } + #endregion + if (CalamityWorld.revenge || CalamityWorld.bossRushActive) + { + #region Mothron + if (npc.type == NPCID.Mothron && CalamityWorld.buffedEclipse) + { + int num1353 = 3; + npc.noTileCollide = false; + npc.noGravity = true; + npc.knockBackResist = 0.2f * Main.expertKnockBack; + npc.damage = npc.defDamage; + if (!Main.eclipse) + { + npc.ai[0] = -1f; + } + else if (npc.target < 0 || Main.player[npc.target].dead || !Main.player[npc.target].active) + { + npc.TargetClosest(true); + Vector2 vector235 = Main.player[npc.target].Center - npc.Center; + if (Main.player[npc.target].dead || vector235.Length() > 3000f) + { + npc.ai[0] = -1f; + } + } + else + { + Vector2 vector236 = Main.player[npc.target].Center - npc.Center; + if (npc.ai[0] > 1f && vector236.Length() > 1000f) + { + npc.ai[0] = 1f; + } + } + if (npc.ai[0] == -1f) + { + Vector2 value37 = new Vector2(0f, -8f); + npc.velocity = (npc.velocity * 22f + value37) / 10f; + npc.noTileCollide = true; + npc.dontTakeDamage = true; + return false; + } + if (npc.ai[0] == 0f) + { + npc.TargetClosest(true); + if (npc.Center.X < Main.player[npc.target].Center.X - 2f) + { + npc.direction = 1; + } + if (npc.Center.X > Main.player[npc.target].Center.X + 2f) + { + npc.direction = -1; + } + npc.spriteDirection = npc.direction; + npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.025f) / 10f; + if (npc.collideX) + { + npc.velocity.X = npc.velocity.X * (-npc.oldVelocity.X * 0.5f); + if (npc.velocity.X > 30f) + { + npc.velocity.X = 30f; + } + if (npc.velocity.X < -30f) + { + npc.velocity.X = -30f; + } + } + if (npc.collideY) + { + npc.velocity.Y = npc.velocity.Y * (-npc.oldVelocity.Y * 0.5f); + if (npc.velocity.Y > 30f) + { + npc.velocity.Y = 30f; + } + if (npc.velocity.Y < -30f) + { + npc.velocity.Y = -30f; + } + } + Vector2 value38 = Main.player[npc.target].Center - npc.Center; + value38.Y -= 200f; + if (value38.Length() > 2000f) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + } + else if (value38.Length() > 80f) + { + float scaleFactor15 = 13f; + float num1354 = 30f; + value38.Normalize(); + value38 *= scaleFactor15; + npc.velocity = (npc.velocity * (num1354 - 1f) + value38) / num1354; + } + else if (npc.velocity.Length() > 2f) + { + npc.velocity *= 0.95f; + } + else if (npc.velocity.Length() < 1f) + { + npc.velocity *= 1.05f; + } + npc.ai[1] += 1f; + if (npc.justHit) + { + npc.ai[1] += (float)Main.rand.Next(10, 30); + } + if (npc.ai[1] >= 180f && Main.netMode != 1) + { + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.netUpdate = true; + while (npc.ai[0] == 0f) + { + int num1355 = Main.rand.Next(3); + if (num1355 == 0 && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1)) + { + npc.ai[0] = 2f; + } + else if (num1355 == 1) + { + npc.ai[0] = 3f; + } + else if (num1355 == 2 && NPC.CountNPCS(478) + NPC.CountNPCS(479) < num1353) + { + npc.ai[0] = 4f; + } + } + return false; + } + } + else + { + if (npc.ai[0] == 1f) + { + npc.collideX = false; + npc.collideY = false; + npc.noTileCollide = true; + npc.knockBackResist = 0f; + if (npc.target < 0 || !Main.player[npc.target].active || Main.player[npc.target].dead) + { + npc.TargetClosest(true); + } + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else if (npc.velocity.X > 0f) + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.02f) / 10f; + Vector2 value39 = Main.player[npc.target].Center - npc.Center; + if (value39.Length() < 300f && !Collision.SolidCollision(npc.position, npc.width, npc.height)) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + } + float scaleFactor16 = 14f + value39.Length() / 100f; + float num1356 = 25f; + value39.Normalize(); + value39 *= scaleFactor16; + npc.velocity = (npc.velocity * (num1356 - 1f) + value39) / num1356; + return false; + } + if (npc.ai[0] == 2f) + { + npc.damage = (int)((double)npc.defDamage * 0.75); + npc.knockBackResist = 0f; + if (npc.target < 0 || !Main.player[npc.target].active || Main.player[npc.target].dead) + { + npc.TargetClosest(true); + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + } + if (Main.player[npc.target].Center.X - 10f < npc.Center.X) + { + npc.direction = -1; + } + else if (Main.player[npc.target].Center.X + 10f > npc.Center.X) + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.025f) / 5f; + if (npc.collideX) + { + npc.velocity.X = npc.velocity.X * (-npc.oldVelocity.X * 0.5f); + if (npc.velocity.X > 30f) + { + npc.velocity.X = 30f; + } + if (npc.velocity.X < -30f) + { + npc.velocity.X = -30f; + } + } + if (npc.collideY) + { + npc.velocity.Y = npc.velocity.Y * (-npc.oldVelocity.Y * 0.5f); + if (npc.velocity.Y > 30f) + { + npc.velocity.Y = 30f; + } + if (npc.velocity.Y < -30f) + { + npc.velocity.Y = -30f; + } + } + Vector2 value40 = Main.player[npc.target].Center - npc.Center; + value40.Y -= 20f; + npc.ai[2] += 0.0222222228f; + if (Main.expertMode) + { + npc.ai[2] += 0.0166666675f; + } + float scaleFactor17 = 13f + npc.ai[2] + value40.Length() / 120f; + float num1357 = 20f; + value40.Normalize(); + value40 *= scaleFactor17; + npc.velocity = (npc.velocity * (num1357 - 1f) + value40) / num1357; + npc.ai[1] += 1f; + if (npc.ai[1] > 240f || !Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1)) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + return false; + } + } + else + { + if (npc.ai[0] == 3f) + { + npc.knockBackResist = 0f; + npc.noTileCollide = true; + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.0175f) / 5f; + Vector2 value41 = Main.player[npc.target].Center - npc.Center; + value41.Y -= 12f; + if (npc.Center.X > Main.player[npc.target].Center.X) + { + value41.X += 400f; + } + else + { + value41.X -= 400f; + } + if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) > 350f && Math.Abs(npc.Center.Y - Main.player[npc.target].Center.Y) < 20f) + { + npc.ai[0] = 3.1f; + npc.ai[1] = 0f; + } + npc.ai[1] += 0.0333333351f; + float scaleFactor18 = 20f + npc.ai[1]; + float num1358 = 4f; + value41.Normalize(); + value41 *= scaleFactor18; + npc.velocity = (npc.velocity * (num1358 - 1f) + value41) / num1358; + return false; + } + if (npc.ai[0] == 3.1f) + { + npc.knockBackResist = 0f; + npc.noTileCollide = true; + npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.0175f) / 5f; + Vector2 vector237 = Main.player[npc.target].Center - npc.Center; + vector237.Y -= 12f; + float scaleFactor19 = 30f; + float num1359 = 8f; + vector237.Normalize(); + vector237 *= scaleFactor19; + npc.velocity = (npc.velocity * (num1359 - 1f) + vector237) / num1359; + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + npc.ai[1] += 1f; + if (npc.ai[1] > 10f) + { + npc.velocity = vector237; + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.ai[0] = 3.2f; + npc.ai[1] = 0f; + npc.ai[1] = (float)npc.direction; + return false; + } + } + else + { + if (npc.ai[0] == 3.2f) + { + npc.damage = (int)((double)npc.defDamage * 1.5); + npc.collideX = false; + npc.collideY = false; + npc.knockBackResist = 0f; + npc.noTileCollide = true; + npc.ai[2] += 0.0333333351f; + npc.velocity.X = (20f + npc.ai[2]) * npc.ai[1]; + if ((npc.ai[1] > 0f && npc.Center.X > Main.player[npc.target].Center.X + 260f) || (npc.ai[1] < 0f && npc.Center.X < Main.player[npc.target].Center.X - 260f)) + { + if (!Collision.SolidCollision(npc.position, npc.width, npc.height)) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + } + else if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) > 1600f) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + } + } + npc.rotation = (npc.rotation * 4f + npc.velocity.X * 0.0175f) / 5f; + return false; + } + if (npc.ai[0] == 4f) + { + npc.ai[0] = 0f; + npc.TargetClosest(true); + if (Main.netMode != 1) + { + npc.ai[1] = -1f; + npc.ai[2] = -1f; + int num; + for (int num1360 = 0; num1360 < 1000; num1360 = num + 1) + { + int num1361 = (int)Main.player[npc.target].Center.X / 16; + int num1362 = (int)Main.player[npc.target].Center.Y / 16; + int num1363 = 30 + num1360 / 50; + int num1364 = 20 + num1360 / 75; + num1361 += Main.rand.Next(-num1363, num1363 + 1); + num1362 += Main.rand.Next(-num1364, num1364 + 1); + if (!WorldGen.SolidTile(num1361, num1362)) + { + while (!WorldGen.SolidTile(num1361, num1362) && (double)num1362 < Main.worldSurface) + { + num1362++; + } + if ((new Vector2((float)(num1361 * 16 + 8), (float)(num1362 * 16 + 8)) - Main.player[npc.target].Center).Length() < 2100f) + { + npc.ai[0] = 4.1f; + npc.ai[1] = (float)num1361; + npc.ai[2] = (float)num1362; + break; + } + } + num = num1360; + } + } + npc.netUpdate = true; + return false; + } + if (npc.ai[0] == 4.1f) + { + if (npc.velocity.X < -2f) + { + npc.direction = -1; + } + else if (npc.velocity.X > 2f) + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.025f) / 10f; + npc.noTileCollide = true; + int num1365 = (int)npc.ai[1]; + int num1366 = (int)npc.ai[2]; + float x2 = (float)(num1365 * 16 + 8); + float y2 = (float)(num1366 * 16 - 20); + Vector2 vector238 = new Vector2(x2, y2); + vector238 -= npc.Center; + float num1367 = 6f + vector238.Length() / 150f; + if (num1367 > 10f) + { + num1367 = 10f; + } + float num1368 = 10f; + if (vector238.Length() < 10f) + { + npc.ai[0] = 4.2f; + } + vector238.Normalize(); + vector238 *= num1367; + npc.velocity = (npc.velocity * (num1368 - 1f) + vector238) / num1368; + return false; + } + if (npc.ai[0] == 4.2f) + { + npc.rotation = (npc.rotation * 9f + npc.velocity.X * 0.025f) / 10f; + npc.knockBackResist = 0f; + npc.noTileCollide = true; + int num1369 = (int)npc.ai[1]; + int num1370 = (int)npc.ai[2]; + float x3 = (float)(num1369 * 16 + 8); + float y3 = (float)(num1370 * 16 - 20); + Vector2 vector239 = new Vector2(x3, y3); + vector239 -= npc.Center; + float num1371 = 4f; + float num1372 = 2f; + if (Main.netMode != 1 && vector239.Length() < 4f) + { + int num1373 = 70; + if (Main.expertMode) + { + num1373 = (int)((double)num1373 * 0.75); + } + npc.ai[3] += 1f; + if (npc.ai[3] == (float)num1373) + { + NPC.NewNPC(num1369 * 16 + 8, num1370 * 16, 478, npc.whoAmI, 0f, 0f, 0f, 0f, 255); + } + else if (npc.ai[3] == (float)(num1373 * 2)) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + if (NPC.CountNPCS(478) + NPC.CountNPCS(479) < num1353 && Main.rand.Next(3) != 0) + { + npc.ai[0] = 4f; + } + else if (Collision.SolidCollision(npc.position, npc.width, npc.height)) + { + npc.ai[0] = 1f; + } + } + } + if (vector239.Length() > num1371) + { + vector239.Normalize(); + vector239 *= num1371; + } + npc.velocity = (npc.velocity * (num1372 - 1f) + vector239) / num1372; + return false; + } + } + } + } + return false; + } + #endregion + #region Pumpking + else if (npc.type == NPCID.Pumpking && CalamityWorld.downedDoG) + { + npc.localAI[0] += 1f; + if (npc.localAI[0] > 6f) + { + npc.localAI[0] = 0f; + npc.localAI[1] += 1f; + if (npc.localAI[1] > 4f) + { + npc.localAI[1] = 0f; + } + } + if (Main.netMode != 1) + { + npc.localAI[2] += 1f; + if (npc.localAI[2] > 300f) + { + npc.ai[3] = (float)Main.rand.Next(3); + npc.localAI[2] = 0f; + } + else if (npc.ai[3] == 0f && npc.localAI[2] % 30f == 0f && npc.localAI[2] > 30f) + { + float num856 = 10f; + Vector2 vector109 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f + 30f); + if (!WorldGen.SolidTile((int)vector109.X / 16, (int)vector109.Y / 16)) + { + float num857 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector109.X; + float num858 = Main.player[npc.target].position.Y - vector109.Y; + num857 += (float)Main.rand.Next(-50, 51); + num858 += (float)Main.rand.Next(50, 201); + num858 *= 0.2f; + float num859 = (float)Math.Sqrt((double)(num857 * num857 + num858 * num858)); + num859 = num856 / num859; + num857 *= num859; + num858 *= num859; + num857 *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f; + num858 *= 1f + (float)Main.rand.Next(-30, 31) * 0.01f; + Projectile.NewProjectile(vector109.X, vector109.Y, num857, num858, Main.rand.Next(326, 329), 60, 0f, Main.myPlayer, 0f, 0f); + } + } + } + if (npc.ai[0] == 0f && Main.netMode != 1) + { + npc.TargetClosest(true); + npc.ai[0] = 1f; + int num861 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)npc.position.Y + npc.height / 2, 328, npc.whoAmI, 0f, 0f, 0f, 0f, 255); + Main.npc[num861].ai[0] = -1f; + Main.npc[num861].ai[1] = (float)npc.whoAmI; + Main.npc[num861].target = npc.target; + Main.npc[num861].netUpdate = true; + num861 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)npc.position.Y + npc.height / 2, 328, npc.whoAmI, 0f, 0f, 0f, 0f, 255); + Main.npc[num861].ai[0] = 1f; + Main.npc[num861].ai[1] = (float)npc.whoAmI; + Main.npc[num861].ai[3] = 150f; + Main.npc[num861].target = npc.target; + Main.npc[num861].netUpdate = true; + } + if (Main.player[npc.target].dead || Math.Abs(npc.position.X - Main.player[npc.target].position.X) > 2000f || Math.Abs(npc.position.Y - Main.player[npc.target].position.Y) > 2000f) + { + npc.TargetClosest(true); + if (Main.player[npc.target].dead || Math.Abs(npc.position.X - Main.player[npc.target].position.X) > 2000f || Math.Abs(npc.position.Y - Main.player[npc.target].position.Y) > 2000f) + { + npc.ai[1] = 2f; + } + } + if (Main.dayTime) + { + npc.velocity.Y = npc.velocity.Y + 0.3f; + npc.velocity.X = npc.velocity.X * 0.9f; + } + else if (npc.ai[1] == 0f) + { + npc.ai[2] += 1f; + if (npc.ai[2] >= 300f) + { + if (npc.ai[3] != 1f) + { + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + else + { + npc.ai[2] = 0f; + npc.ai[1] = 1f; + npc.TargetClosest(true); + npc.netUpdate = true; + } + } + Vector2 vector110 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num862 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector110.X; + float num863 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 200f - vector110.Y; + float num864 = (float)Math.Sqrt((double)(num862 * num862 + num863 * num863)); + float num865 = 8f; + if (npc.ai[3] == 1f) + { + if (num864 > 900f) + { + num865 = 14f; + } + else if (num864 > 600f) + { + num865 = 12f; + } + else if (num864 > 300f) + { + num865 = 10f; + } + } + if (num864 > 50f) + { + num864 = num865 / num864; + npc.velocity.X = (npc.velocity.X * 14f + num862 * num864) / 15f; + npc.velocity.Y = (npc.velocity.Y * 14f + num863 * num864) / 15f; + } + } + else if (npc.ai[1] == 1f) + { + npc.ai[2] += 1f; + if (npc.ai[2] >= 600f || npc.ai[3] != 1f) + { + npc.ai[2] = 0f; + npc.ai[1] = 0f; + } + Vector2 vector111 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num866 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector111.X; + float num867 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector111.Y; + float num868 = (float)Math.Sqrt((double)(num866 * num866 + num867 * num867)); + num868 = 20f / num868; + npc.velocity.X = (npc.velocity.X * 49f + num866 * num868) / 50f; + npc.velocity.Y = (npc.velocity.Y * 49f + num867 * num868) / 50f; + } + else if (npc.ai[1] == 2f) + { + npc.ai[1] = 3f; + npc.velocity.Y = npc.velocity.Y + 0.1f; + if (npc.velocity.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.95f; + } + npc.velocity.X = npc.velocity.X * 0.95f; + if (npc.timeLeft > 500) + { + npc.timeLeft = 500; + } + } + npc.rotation = npc.velocity.X * -0.02f; + return false; + } + else if (npc.type == NPCID.PumpkingBlade && CalamityWorld.downedDoG) + { + npc.spriteDirection = -(int)npc.ai[0]; + if (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != 58) + { + npc.ai[2] += 10f; + if (npc.ai[2] > 50f || Main.netMode != 2) + { + npc.life = -1; + npc.HitEffect(0, 10.0); + npc.active = false; + } + } + if (Main.netMode != 1 && Main.npc[(int)npc.ai[1]].ai[3] == 2f) + { + npc.localAI[1] += 1f; + if (npc.localAI[1] > 30f) + { + npc.localAI[1] = 0f; + float num869 = 0.01f; + Vector2 vector112 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f + 30f); + float num870 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector112.X; + float num871 = Main.player[npc.target].position.Y - vector112.Y; + float num872 = (float)Math.Sqrt((double)(num870 * num870 + num871 * num871)); + num872 = num869 / num872; + num870 *= num872; + num871 *= num872; + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num870, num871, 329, 70, 0f, Main.myPlayer, npc.rotation, (float)npc.spriteDirection); + } + } + if (Main.dayTime) + { + npc.velocity.Y = npc.velocity.Y + 0.3f; + npc.velocity.X = npc.velocity.X * 0.9f; + return false; + } + if (npc.ai[2] == 0f || npc.ai[2] == 3f) + { + if (Main.npc[(int)npc.ai[1]].ai[1] == 3f && npc.timeLeft > 10) + { + npc.timeLeft = 10; + } + npc.ai[3] += 1f; + if (npc.ai[3] >= 180f) + { + npc.ai[2] += 1f; + npc.ai[3] = 0f; + npc.netUpdate = true; + } + Vector2 vector113 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num874 = (Main.player[npc.target].Center.X + Main.npc[(int)npc.ai[1]].Center.X) / 2f; + float num875 = (Main.player[npc.target].Center.Y + Main.npc[(int)npc.ai[1]].Center.Y) / 2f; + num874 += -170f * npc.ai[0] - vector113.X; + num875 += 90f - vector113.Y; + float num876 = Math.Abs(Main.player[npc.target].Center.X - Main.npc[(int)npc.ai[1]].Center.X) + Math.Abs(Main.player[npc.target].Center.Y - Main.npc[(int)npc.ai[1]].Center.Y); + if (num876 > 700f) + { + num874 = Main.npc[(int)npc.ai[1]].Center.X - 170f * npc.ai[0] - vector113.X; + num875 = Main.npc[(int)npc.ai[1]].Center.Y + 90f - vector113.Y; + } + float num877 = (float)Math.Sqrt((double)(num874 * num874 + num875 * num875)); + float num878 = 8f; + if (num877 > 1000f) + { + num878 = 23f; + } + else if (num877 > 800f) + { + num878 = 20f; + } + else if (num877 > 600f) + { + num878 = 17f; + } + else if (num877 > 400f) + { + num878 = 14f; + } + else if (num877 > 200f) + { + num878 = 11f; + } + if (npc.ai[0] < 0f && npc.Center.X > Main.npc[(int)npc.ai[1]].Center.X) + { + num874 -= 4f; + } + if (npc.ai[0] > 0f && npc.Center.X < Main.npc[(int)npc.ai[1]].Center.X) + { + num874 += 4f; + } + num877 = num878 / num877; + npc.velocity.X = (npc.velocity.X * 14f + num874 * num877) / 15f; + npc.velocity.Y = (npc.velocity.Y * 14f + num875 * num877) / 15f; + num877 = (float)Math.Sqrt((double)(num874 * num874 + num875 * num875)); + if (num877 > 20f) + { + npc.rotation = (float)Math.Atan2((double)num875, (double)num874) + 1.57f; + return false; + } + } + else if (npc.ai[2] == 1f) + { + Vector2 vector114 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num879 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector114.X; + float num880 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector114.Y; + float num881 = (float)Math.Sqrt((double)(num879 * num879 + num880 * num880)); + npc.rotation = (float)Math.Atan2((double)num880, (double)num879) + 1.57f; + npc.velocity.X = npc.velocity.X * 0.95f; + npc.velocity.Y = npc.velocity.Y - 0.3f; + if (npc.velocity.Y < -18f) + { + npc.velocity.Y = -18f; + } + if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y - 200f) + { + npc.TargetClosest(true); + npc.ai[2] = 2f; + vector114 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num879 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector114.X; + num880 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector114.Y; + num881 = (float)Math.Sqrt((double)(num879 * num879 + num880 * num880)); + num881 = 24f / num881; + npc.velocity.X = num879 * num881; + npc.velocity.Y = num880 * num881; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[2] == 2f) + { + float num882 = Math.Abs(npc.Center.X - Main.npc[(int)npc.ai[1]].Center.X) + Math.Abs(npc.Center.Y - Main.npc[(int)npc.ai[1]].Center.Y); + if (npc.position.Y > Main.player[npc.target].position.Y || npc.velocity.Y < 0f || num882 > 800f) + { + npc.ai[2] = 3f; + return false; + } + } + else if (npc.ai[2] == 4f) + { + Vector2 vector115 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num883 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector115.X; + float num884 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector115.Y; + float num885 = (float)Math.Sqrt((double)(num883 * num883 + num884 * num884)); + npc.rotation = (float)Math.Atan2((double)num884, (double)num883) + 1.57f; + npc.velocity.Y = npc.velocity.Y * 0.95f; + npc.velocity.X = npc.velocity.X + 0.3f * -npc.ai[0]; + if (npc.velocity.X < -18f) + { + npc.velocity.X = -18f; + } + if (npc.velocity.X > 18f) + { + npc.velocity.X = 18f; + } + if (npc.position.X + (float)(npc.width / 2) < Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - 500f || npc.position.X + (float)(npc.width / 2) > Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) + 500f) + { + npc.TargetClosest(true); + npc.ai[2] = 5f; + vector115 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num883 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector115.X; + num884 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector115.Y; + num885 = (float)Math.Sqrt((double)(num883 * num883 + num884 * num884)); + num885 = 17f / num885; + npc.velocity.X = num883 * num885; + npc.velocity.Y = num884 * num885; + npc.netUpdate = true; + return false; + } + } + else if (npc.ai[2] == 5f) + { + float num886 = Math.Abs(npc.Center.X - Main.npc[(int)npc.ai[1]].Center.X) + Math.Abs(npc.Center.Y - Main.npc[(int)npc.ai[1]].Center.Y); + if ((npc.velocity.X > 0f && npc.position.X + (float)(npc.width / 2) > Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) || (npc.velocity.X < 0f && npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) || num886 > 800f) + { + npc.ai[2] = 0f; + return false; + } + } + return false; + } + #endregion + #region IceQueen + else if (npc.type == NPCID.IceQueen && CalamityWorld.downedDoG) + { + if (Main.dayTime) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + 0.25f; + } + else + { + npc.velocity.X = npc.velocity.X - 0.25f; + } + npc.velocity.Y = npc.velocity.Y - 0.1f; + npc.rotation = npc.velocity.X * 0.05f; + } + else if (npc.ai[0] == 0f) + { + if (npc.ai[2] == 0f) + { + npc.TargetClosest(true); + if (npc.Center.X < Main.player[npc.target].Center.X) + { + npc.ai[2] = 1f; + } + else + { + npc.ai[2] = -1f; + } + } + npc.TargetClosest(true); + int num887 = 800; + float num888 = Math.Abs(npc.Center.X - Main.player[npc.target].Center.X); + if (npc.Center.X < Main.player[npc.target].Center.X && npc.ai[2] < 0f && num888 > (float)num887) + { + npc.ai[2] = 0f; + } + if (npc.Center.X > Main.player[npc.target].Center.X && npc.ai[2] > 0f && num888 > (float)num887) + { + npc.ai[2] = 0f; + } + float num889 = 0.6f; + float num890 = 10f; + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num889 = 0.7f; + num890 = 12f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num889 = 0.8f; + num890 = 14f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num889 = 0.95f; + num890 = 16f; + } + npc.velocity.X = npc.velocity.X + npc.ai[2] * num889; + if (npc.velocity.X > num890) + { + npc.velocity.X = num890; + } + if (npc.velocity.X < -num890) + { + npc.velocity.X = -num890; + } + float num891 = Main.player[npc.target].position.Y - (npc.position.Y + (float)npc.height); + if (num891 < 150f) + { + npc.velocity.Y = npc.velocity.Y - 0.2f; + } + if (num891 > 200f) + { + npc.velocity.Y = npc.velocity.Y + 0.2f; + } + if (npc.velocity.Y > 9f) + { + npc.velocity.Y = 9f; + } + if (npc.velocity.Y < -9f) + { + npc.velocity.Y = -9f; + } + npc.rotation = npc.velocity.X * 0.05f; + if ((num888 < 500f || npc.ai[3] < 0f) && npc.position.Y < Main.player[npc.target].position.Y) + { + npc.ai[3] += 1f; + int num892 = 8; + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num892 = 7; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num892 = 6; + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num892 = 5; + } + num892++; + if (npc.ai[3] > (float)num892) + { + npc.ai[3] = (float)(-(float)num892); + } + if (npc.ai[3] == 0f && Main.netMode != 1) + { + Vector2 vector116 = new Vector2(npc.Center.X, npc.Center.Y); + vector116.X += npc.velocity.X * 7f; + float num893 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector116.X; + float num894 = Main.player[npc.target].Center.Y - vector116.Y; + float num895 = (float)Math.Sqrt((double)(num893 * num893 + num894 * num894)); + float num896 = 8f; + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num896 = 9f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num896 = 10f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num896 = 11f; + } + num895 = num896 / num895; + num893 *= num895; + num894 *= num895; + Projectile.NewProjectile(vector116.X, vector116.Y, num893, num894, 348, 50, 0f, Main.myPlayer, 0f, 0f); + } + } + else if (npc.ai[3] < 0f) + { + npc.ai[3] += 1f; + } + if (Main.netMode != 1) + { + npc.ai[1] += (float)Main.rand.Next(1, 4); + if (npc.ai[1] > 600f && num888 < 600f) + { + npc.ai[0] = -1f; + } + } + } + else if (npc.ai[0] == 1f) + { + npc.TargetClosest(true); + float num898 = 0.2f; + float num899 = 10f; + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num898 = 0.24f; + num899 = 12f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num898 = 0.28f; + num899 = 14f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num898 = 0.32f; + num899 = 16f; + } + num898 -= 0.05f; + num899 -= 1f; + if (npc.Center.X < Main.player[npc.target].Center.X) + { + npc.velocity.X = npc.velocity.X + num898; + if (npc.velocity.X < 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + } + if (npc.Center.X > Main.player[npc.target].Center.X) + { + npc.velocity.X = npc.velocity.X - num898; + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + } + if (npc.velocity.X > num899 || npc.velocity.X < -num899) + { + npc.velocity.X = npc.velocity.X * 0.95f; + } + float num900 = Main.player[npc.target].position.Y - (npc.position.Y + (float)npc.height); + if (num900 < 180f) + { + npc.velocity.Y = npc.velocity.Y - 0.1f; + } + if (num900 > 200f) + { + npc.velocity.Y = npc.velocity.Y + 0.1f; + } + if (npc.velocity.Y > 7f) + { + npc.velocity.Y = 7f; + } + if (npc.velocity.Y < -7f) + { + npc.velocity.Y = -7f; + } + npc.rotation = npc.velocity.X * 0.01f; + if (Main.netMode != 1) + { + npc.ai[3] += 1f; + int num901 = 10; + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num901 = 8; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num901 = 6; + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num901 = 4; + } + if ((double)npc.life < (double)npc.lifeMax * 0.1) + { + num901 = 2; + } + num901 += 3; + if (npc.ai[3] >= (float)num901) + { + npc.ai[3] = 0f; + Vector2 vector117 = new Vector2(npc.Center.X, npc.position.Y + (float)npc.height - 14f); + int i2 = (int)(vector117.X / 16f); + int j2 = (int)(vector117.Y / 16f); + if (!WorldGen.SolidTile(i2, j2)) + { + float num902 = npc.velocity.Y; + if (num902 < 0f) + { + num902 = 0f; + } + num902 += 3f; + float speedX2 = npc.velocity.X * 0.25f; + int num903 = Projectile.NewProjectile(vector117.X, vector117.Y, speedX2, num902, 349, 44, 0f, Main.myPlayer, (float)Main.rand.Next(5), 0f); + } + } + } + if (Main.netMode != 1) + { + npc.ai[1] += (float)Main.rand.Next(1, 4); + if (npc.ai[1] > 450f) + { + npc.ai[0] = -1f; + } + } + } + else if (npc.ai[0] == 2f) + { + npc.TargetClosest(true); + Vector2 vector118 = new Vector2(npc.Center.X, npc.Center.Y - 20f); + float num904 = (float)Main.rand.Next(-1000, 1001); + float num905 = (float)Main.rand.Next(-1000, 1001); + float num906 = (float)Math.Sqrt((double)(num904 * num904 + num905 * num905)); + float num907 = 20f; + npc.velocity *= 0.95f; + num906 = num907 / num906; + num904 *= num906; + num905 *= num906; + npc.rotation += 0.2f; + vector118.X += num904 * 4f; + vector118.Y += num905 * 4f; + npc.ai[3] += 1f; + int num908 = 7; + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num908--; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num908 -= 2; + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num908 -= 3; + } + if ((double)npc.life < (double)npc.lifeMax * 0.1) + { + num908 -= 4; + } + if (npc.ai[3] > (float)num908) + { + npc.ai[3] = 0f; + int num909 = Projectile.NewProjectile(vector118.X, vector118.Y, num904, num905, 349, 40, 0f, Main.myPlayer, 0f, 0f); + } + if (Main.netMode != 1) + { + npc.ai[1] += (float)Main.rand.Next(1, 4); + if (npc.ai[1] > 300f) + { + npc.ai[0] = -1f; + } + } + } + if (npc.ai[0] == -1f) + { + int num910 = Main.rand.Next(3); + npc.TargetClosest(true); + if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) > 1000f) + { + num910 = 0; + } + npc.ai[0] = (float)num910; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + return false; + } + return false; + } + #endregion + #region EyeofCthulhu + else if (npc.type == NPCID.EyeofCthulhu && (CalamityWorld.revenge || CalamityWorld.bossRushActive)) + { + double getMad = 0.5; //0.5 + bool flag2 = false; + if ((double)npc.life < (double)npc.lifeMax * getMad) + { + flag2 = true; + } + float num5 = 20f; + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) + { + npc.TargetClosest(true); + } + bool dead = Main.player[npc.target].dead; + float num6 = npc.position.X + (float)(npc.width / 2) - Main.player[npc.target].position.X - (float)(Main.player[npc.target].width / 2); + float num7 = npc.position.Y + (float)npc.height - 59f - Main.player[npc.target].position.Y - (float)(Main.player[npc.target].height / 2); + float num8 = (float)Math.Atan2((double)num7, (double)num6) + 1.57f; + if (num8 < 0f) + { + num8 += 6.283f; + } + else if ((double)num8 > 6.283) + { + num8 -= 6.283f; + } + float num9 = 0f; + if (npc.ai[0] == 0f && npc.ai[1] == 0f) + { + num9 = 0.02f; + } + if (npc.ai[0] == 0f && npc.ai[1] == 2f && npc.ai[2] > 40f) + { + num9 = 0.05f; + } + if (npc.ai[0] == 3f && npc.ai[1] == 0f) + { + num9 = 0.05f; + } + if (npc.ai[0] == 3f && npc.ai[1] == 2f && npc.ai[2] > 40f) + { + num9 = 0.08f; + } + if (npc.ai[0] == 3f && npc.ai[1] == 4f && npc.ai[2] > num5) + { + num9 = 0.15f; + } + if (npc.ai[0] == 3f && npc.ai[1] == 5f) + { + num9 = 0.05f; + } + num9 *= 1.5f; + if (npc.rotation < num8) + { + if ((double)(num8 - npc.rotation) > 3.1415) + { + npc.rotation -= num9; + } + else + { + npc.rotation += num9; + } + } + else if (npc.rotation > num8) + { + if ((double)(npc.rotation - num8) > 3.1415) + { + npc.rotation += num9; + } + else + { + npc.rotation -= num9; + } + } + if (npc.rotation > num8 - num9 && npc.rotation < num8 + num9) + { + npc.rotation = num8; + } + if (npc.rotation < 0f) + { + npc.rotation += 6.283f; + } + else if ((double)npc.rotation > 6.283) + { + npc.rotation -= 6.283f; + } + if (npc.rotation > num8 - num9 && npc.rotation < num8 + num9) + { + npc.rotation = num8; + } + if (Main.rand.Next(5) == 0) + { + int num10 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y + (float)npc.height * 0.25f), npc.width, (int)((float)npc.height * 0.5f), 5, npc.velocity.X, 2f, 0, default(Color), 1f); + Dust var_9_825_cp_0_cp_0 = Main.dust[num10]; + var_9_825_cp_0_cp_0.velocity.X = var_9_825_cp_0_cp_0.velocity.X * 0.5f; + Dust var_9_845_cp_0_cp_0 = Main.dust[num10]; + var_9_845_cp_0_cp_0.velocity.Y = var_9_845_cp_0_cp_0.velocity.Y * 0.1f; + } + if (Main.dayTime | dead) + { + npc.velocity.Y = npc.velocity.Y - 0.04f; + if (npc.timeLeft > 10) + { + npc.timeLeft = 10; + return false; + } + } + else if (npc.ai[0] == 0f) + { + if (npc.ai[1] == 0f) + { + float num11 = (enraged ? 10f : 7f); + float num12 = (enraged ? 0.2f : 0.15f); + Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num13 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector.X; + float num14 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 200f - vector.Y; + float num15 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); + float num16 = num15; + num15 = num11 / num15; + num13 *= num15; + num14 *= num15; + if (npc.velocity.X < num13) + { + npc.velocity.X = npc.velocity.X + num12; + if (npc.velocity.X < 0f && num13 > 0f) + { + npc.velocity.X = npc.velocity.X + num12; + } + } + else if (npc.velocity.X > num13) + { + npc.velocity.X = npc.velocity.X - num12; + if (npc.velocity.X > 0f && num13 < 0f) + { + npc.velocity.X = npc.velocity.X - num12; + } + } + if (npc.velocity.Y < num14) + { + npc.velocity.Y = npc.velocity.Y + num12; + if (npc.velocity.Y < 0f && num14 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num12; + } + } + else if (npc.velocity.Y > num14) + { + npc.velocity.Y = npc.velocity.Y - num12; + if (npc.velocity.Y > 0f && num14 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num12; + } + } + npc.ai[2] += 1f; + float num17 = 180f; + if (npc.ai[2] >= num17) + { + npc.ai[1] = 1f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.target = 255; + npc.netUpdate = true; + } + else if (num16 < 500f) + { + if (!Main.player[npc.target].dead) + { + npc.ai[3] += 1f; + } + float num18 = 44f; + if (npc.ai[3] >= num18) + { + npc.ai[3] = 0f; + npc.rotation = num8; + float num19 = 5f; + float num20 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector.X; + float num21 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector.Y; + float num22 = (float)Math.Sqrt((double)(num20 * num20 + num21 * num21)); + num22 = num19 / num22; + Vector2 vector2 = vector; + Vector2 vector3; + vector3.X = num20 * num22; + vector3.Y = num21 * num22; + vector2.X += vector3.X * 10f; + vector2.Y += vector3.Y * 10f; + if (Main.netMode != 1) + { + int num23 = NPC.NewNPC((int)vector2.X, (int)vector2.Y, 5, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num23].velocity.X = vector3.X; + Main.npc[num23].velocity.Y = vector3.Y; + if (Main.netMode == 2 && num23 < 200) + { + NetMessage.SendData(23, -1, -1, null, num23, 0f, 0f, 0f, 0, 0, 0); + } + } + Main.PlaySound(3, (int)vector2.X, (int)vector2.Y, 1, 1f, 0f); + int num; + for (int m = 0; m < 10; m = num + 1) + { + Dust.NewDust(vector2, 20, 20, 5, vector3.X * 0.4f, vector3.Y * 0.4f, 0, default(Color), 1f); + num = m; + } + } + } + } + else if (npc.ai[1] == 1f) + { + npc.rotation = num8; + float num24 = (enraged ? 11f : 7.25f); + Vector2 vector4 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num25 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector4.X; + float num26 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector4.Y; + float num27 = (float)Math.Sqrt((double)(num25 * num25 + num26 * num26)); + num27 = num24 / num27; + npc.velocity.X = num25 * num27; + npc.velocity.Y = num26 * num27; + npc.ai[1] = 2f; + npc.netUpdate = true; + if (npc.netSpam > 10) + { + npc.netSpam = 10; + } + } + else if (npc.ai[1] == 2f) + { + npc.ai[2] += 1f; + if (npc.ai[2] >= 40f) + { + npc.velocity *= 0.975f; + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + { + npc.velocity.X = 0f; + } + if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) + { + npc.velocity.Y = 0f; + } + } + else + { + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - 1.57f; + } + int num28 = 90; + if (npc.ai[2] >= (float)num28) + { + npc.ai[3] += 1f; + npc.ai[2] = 0f; + npc.target = 255; + npc.rotation = num8; + if (npc.ai[3] >= 3f) + { + npc.ai[1] = 0f; + npc.ai[3] = 0f; + } + else + { + npc.ai[1] = 1f; + } + } + } + float num29 = 0.9f; + if (((float)npc.life < (float)npc.lifeMax * num29) || CalamityWorld.death) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.netUpdate = true; + if (npc.netSpam > 10) + { + npc.netSpam = 10; + return false; + } + } + } + else if (npc.ai[0] == 1f || npc.ai[0] == 2f) + { + if (npc.ai[0] == 1f) + { + npc.ai[2] += 0.005f; + if ((double)npc.ai[2] > 0.5) + { + npc.ai[2] = 0.5f; + } + } + else + { + npc.ai[2] -= 0.005f; + if (npc.ai[2] < 0f) + { + npc.ai[2] = 0f; + } + } + npc.rotation += npc.ai[2]; + npc.ai[1] += 1f; + if (npc.ai[1] % 20f == 0f) + { + float num30 = 5f; + Vector2 vector5 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num31 = (float)Main.rand.Next(-200, 200); + float num32 = (float)Main.rand.Next(-200, 200); + float num33 = (float)Math.Sqrt((double)(num31 * num31 + num32 * num32)); + num33 = num30 / num33; + Vector2 vector6 = vector5; + Vector2 vector7; + vector7.X = num31 * num33; + vector7.Y = num32 * num33; + vector6.X += vector7.X * 10f; + vector6.Y += vector7.Y * 10f; + if (Main.netMode != 1) + { + int num34 = NPC.NewNPC((int)vector6.X, (int)vector6.Y, 5, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num34].velocity.X = vector7.X; + Main.npc[num34].velocity.Y = vector7.Y; + if (Main.netMode == 2 && num34 < 200) + { + NetMessage.SendData(23, -1, -1, null, num34, 0f, 0f, 0f, 0, 0, 0); + } + } + int num; + for (int n = 0; n < 10; n = num + 1) + { + Dust.NewDust(vector6, 20, 20, 5, vector7.X * 0.4f, vector7.Y * 0.4f, 0, default(Color), 1f); + num = n; + } + } + if (npc.ai[1] == 100f) + { + npc.ai[0] += 1f; + npc.ai[1] = 0f; + if (npc.ai[0] == 3f) + { + npc.ai[2] = 0f; + } + else + { + Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 1, 1f, 0f); + int num; + for (int num35 = 0; num35 < 2; num35 = num + 1) + { + Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 8, 1f); + Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 7, 1f); + Gore.NewGore(npc.position, new Vector2((float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f), 6, 1f); + num = num35; + } + for (int num36 = 0; num36 < 20; num36 = num + 1) + { + Dust.NewDust(npc.position, npc.width, npc.height, 5, (float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f, 0, default(Color), 1f); + num = num36; + } + Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + } + } + Dust.NewDust(npc.position, npc.width, npc.height, 5, (float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f, 0, default(Color), 1f); + npc.velocity.X = npc.velocity.X * 0.98f; + npc.velocity.Y = npc.velocity.Y * 0.98f; + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + { + npc.velocity.X = 0f; + } + if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) + { + npc.velocity.Y = 0f; + return false; + } + } + else + { + if (flag2) + { + npc.defense = -5; + } + else + { + npc.damage = (int)(20f * Main.expertDamage); + } + if (npc.ai[1] == 0f & flag2) + { + npc.ai[1] = 5f; + } + if (npc.ai[1] == 0f) + { + float num37 = (enraged ? 8f : 5.5f); + float num38 = (enraged ? 0.09f : 0.06f); + Vector2 vector8 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num39 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector8.X; + float num40 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 120f - vector8.Y; + float num41 = (float)Math.Sqrt((double)(num39 * num39 + num40 * num40)); + if (num41 > 400f) + { + num37 += 1.25f; + num38 += 0.075f; + if (num41 > 600f) + { + num37 += 1.25f; + num38 += 0.075f; + if (num41 > 800f) + { + num37 += 1.25f; + num38 += 0.075f; + } + } + } + num41 = num37 / num41; + num39 *= num41; + num40 *= num41; + if (npc.velocity.X < num39) + { + npc.velocity.X = npc.velocity.X + num38; + if (npc.velocity.X < 0f && num39 > 0f) + { + npc.velocity.X = npc.velocity.X + num38; + } + } + else if (npc.velocity.X > num39) + { + npc.velocity.X = npc.velocity.X - num38; + if (npc.velocity.X > 0f && num39 < 0f) + { + npc.velocity.X = npc.velocity.X - num38; + } + } + if (npc.velocity.Y < num40) + { + npc.velocity.Y = npc.velocity.Y + num38; + if (npc.velocity.Y < 0f && num40 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num38; + } + } + else if (npc.velocity.Y > num40) + { + npc.velocity.Y = npc.velocity.Y - num38; + if (npc.velocity.Y > 0f && num40 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num38; + } + } + npc.ai[2] += 1f; + if (npc.ai[2] >= 200f) + { + npc.ai[1] = 1f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + if ((double)npc.life < (double)npc.lifeMax * 0.4) + { + npc.ai[1] = 3f; + } + npc.target = 255; + npc.netUpdate = true; + } + } + else if (npc.ai[1] == 1f) + { + Main.PlaySound(36, (int)npc.position.X, (int)npc.position.Y, 0, 1f, 0f); + npc.rotation = num8; + float num42 = (enraged ? 9.5f : 6.2f); + if (npc.ai[3] == 1f) + { + num42 *= 1.15f; + } + if (npc.ai[3] == 2f) + { + num42 *= 1.3f; + } + Vector2 vector9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num43 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector9.X; + float num44 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector9.Y; + float num45 = (float)Math.Sqrt((double)(num43 * num43 + num44 * num44)); + num45 = num42 / num45; + npc.velocity.X = num43 * num45; + npc.velocity.Y = num44 * num45; + npc.ai[1] = 2f; + npc.netUpdate = true; + if (npc.netSpam > 10) + { + npc.netSpam = 10; + } + } + else if (npc.ai[1] == 2f) + { + float num46 = CalamityWorld.death ? 70f : 60f; + npc.ai[2] += 1f; + if (npc.ai[2] >= num46) + { + npc.velocity *= 0.96f; + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + { + npc.velocity.X = 0f; + } + if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) + { + npc.velocity.Y = 0f; + } + } + else + { + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - 1.57f; + } + int num47 = CalamityWorld.death ? 70 : 80; + if (npc.ai[2] >= (float)num47) + { + npc.ai[3] += 1f; + npc.ai[2] = 0f; + npc.target = 255; + npc.rotation = num8; + if (npc.ai[3] >= 3f) + { + npc.ai[1] = 0f; + npc.ai[3] = 0f; + if (Main.netMode != 1 && (double)npc.life < (double)npc.lifeMax * 0.6) + { + npc.ai[1] = 3f; + npc.ai[3] += (float)Main.rand.Next(1, 4); + } + npc.netUpdate = true; + if (npc.netSpam > 10) + { + npc.netSpam = 10; + } + } + else + { + npc.ai[1] = 1f; + } + } + } + else if (npc.ai[1] == 3f) + { + if ((npc.ai[3] == 4f & flag2) && npc.Center.Y > Main.player[npc.target].Center.Y) + { + npc.TargetClosest(true); + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.netUpdate = true; + if (npc.netSpam > 10) + { + npc.netSpam = 10; + } + } + else if (Main.netMode != 1) + { + npc.TargetClosest(true); + float num48 = (enraged ? 26f : 18f); + Vector2 vector10 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num49 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector10.X; + float num50 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector10.Y; + float num51 = Math.Abs(Main.player[npc.target].velocity.X) + Math.Abs(Main.player[npc.target].velocity.Y) / 4f; + num51 += 10f - num51; + if (num51 < 5f) + { + num51 = 5f; + } + if (num51 > 15f) + { + num51 = 15f; + } + if (npc.ai[2] == -1f) + { + num51 *= 4f; + num48 *= 1.3f; + } + num49 -= Main.player[npc.target].velocity.X * num51; + num50 -= Main.player[npc.target].velocity.Y * num51 / 4f; + num49 *= 1f + (float)Main.rand.Next(-10, 11) * 0.01f; + num50 *= 1f + (float)Main.rand.Next(-10, 11) * 0.01f; + float num52 = (float)Math.Sqrt((double)(num49 * num49 + num50 * num50)); + float num53 = num52; + num52 = num48 / num52; + npc.velocity.X = num49 * num52; + npc.velocity.Y = num50 * num52; + npc.velocity.X = npc.velocity.X + (float)Main.rand.Next(-20, 21) * 0.1f; + npc.velocity.Y = npc.velocity.Y + (float)Main.rand.Next(-20, 21) * 0.1f; + if (num53 < 100f) + { + if (Math.Abs(npc.velocity.X) > Math.Abs(npc.velocity.Y)) + { + float num56 = Math.Abs(npc.velocity.X); + float num57 = Math.Abs(npc.velocity.Y); + if (npc.Center.X > Main.player[npc.target].Center.X) + { + num57 *= -1f; + } + if (npc.Center.Y > Main.player[npc.target].Center.Y) + { + num56 *= -1f; + } + npc.velocity.X = num57; + npc.velocity.Y = num56; + } + } + else if (Math.Abs(npc.velocity.X) > Math.Abs(npc.velocity.Y)) + { + float num58 = (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y)) / 2f; + float num59 = num58; + if (npc.Center.X > Main.player[npc.target].Center.X) + { + num59 *= -1f; + } + if (npc.Center.Y > Main.player[npc.target].Center.Y) + { + num58 *= -1f; + } + npc.velocity.X = num59; + npc.velocity.Y = num58; + } + npc.ai[1] = 4f; + npc.netUpdate = true; + if (npc.netSpam > 10) + { + npc.netSpam = 10; + } + } + } + else if (npc.ai[1] == 4f) + { + if (npc.ai[2] == 0f) + { + Main.PlaySound(36, (int)npc.position.X, (int)npc.position.Y, -1, 1f, 0f); + } + float num60 = num5; + npc.ai[2] += 1f; + if (npc.ai[2] == num60 && Vector2.Distance(npc.position, Main.player[npc.target].position) < 200f) + { + npc.ai[2] -= 1f; + } + if (npc.ai[2] >= num60) + { + npc.velocity *= 0.95f; + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + { + npc.velocity.X = 0f; + } + if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) + { + npc.velocity.Y = 0f; + } + } + else + { + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - 1.57f; + } + float num61 = num60 + 13f; + if (npc.ai[2] >= num61) + { + npc.netUpdate = true; + if (npc.netSpam > 10) + { + npc.netSpam = 10; + } + npc.ai[3] += 1f; + npc.ai[2] = 0f; + if (npc.ai[3] >= 5f) + { + npc.ai[1] = 0f; + npc.ai[3] = 0f; + } + else + { + npc.ai[1] = 3f; + } + } + } + else if (npc.ai[1] == 5f) + { + float num62 = 600f; + float num63 = (enraged ? 12f : 8f); + float num64 = (enraged ? 0.4f : 0.25f); + Vector2 vector11 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num65 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector11.X; + float num66 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) + num62 - vector11.Y; + float num67 = (float)Math.Sqrt((double)(num65 * num65 + num66 * num66)); + num67 = num63 / num67; + num65 *= num67; + num66 *= num67; + if (npc.velocity.X < num65) + { + npc.velocity.X = npc.velocity.X + num64; + if (npc.velocity.X < 0f && num65 > 0f) + { + npc.velocity.X = npc.velocity.X + num64; + } + } + else if (npc.velocity.X > num65) + { + npc.velocity.X = npc.velocity.X - num64; + if (npc.velocity.X > 0f && num65 < 0f) + { + npc.velocity.X = npc.velocity.X - num64; + } + } + if (npc.velocity.Y < num66) + { + npc.velocity.Y = npc.velocity.Y + num64; + if (npc.velocity.Y < 0f && num66 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num64; + } + } + else if (npc.velocity.Y > num66) + { + npc.velocity.Y = npc.velocity.Y - num64; + if (npc.velocity.Y > 0f && num66 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num64; + } + } + npc.ai[2] += 1f; + if (npc.ai[2] >= 70f) + { + npc.TargetClosest(true); + npc.ai[1] = 3f; + npc.ai[2] = -1f; + npc.ai[3] = (float)Main.rand.Next(-3, 1); + npc.netUpdate = true; + } + } + } + return false; + } + #endregion + } + return true; + } + #endregion + + #region AI + public override void AI(NPC npc) + { + if (SCal > -1) + { + if (!npc.friendly && npc.damage > 0 && !npc.dontTakeDamage && npc.type != mod.NPCType("SupremeCalamitas")) + { + npc.active = false; + npc.netUpdate = true; + } + } + if (!CalamityWorld.spawnedHardBoss) + { + if (npc.type == NPCID.TheDestroyer || npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer || npc.type == NPCID.SkeletronPrime || + npc.type == NPCID.Plantera || npc.type == mod.NPCType("Cryogen") || npc.type == mod.NPCType("AquaticScourgeHead") || + npc.type == mod.NPCType("BrimstoneElemental") || npc.type == mod.NPCType("Astrageldon") || npc.type == mod.NPCType("AstrumDeusHeadSpectral") || + npc.type == mod.NPCType("Calamitas") || npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("PlaguebringerGoliath") || + npc.type == mod.NPCType("ScavengerBody") || npc.type == NPCID.DukeFishron || npc.type == NPCID.CultistBoss || npc.type == NPCID.Golem) + { + CalamityWorld.spawnedHardBoss = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + } + #region RevengeanceAIChanges + if (CalamityWorld.revenge || CalamityWorld.bossRushActive) + { + #region MoonLord + if (npc.type == NPCID.MoonLordFreeEye) + { + if (NPC.CountNPCS(NPCID.MoonLordFreeEye) > 3) + { + npc.dontTakeDamage = false; + } + else + { + npc.dontTakeDamage = true; + } + } + if (npc.type == NPCID.MoonLordCore) { if (NPC.CountNPCS(NPCID.MoonLordFreeEye) > 3) { npc.dontTakeDamage = true; } - } - else if (npc.type == NPCID.MoonLordHand || npc.type == NPCID.MoonLordHead) + } + else if (npc.type == NPCID.MoonLordHand || npc.type == NPCID.MoonLordHead) { - bool flag90 = npc.ai[2] == 0f; + bool flag90 = npc.ai[2] == 0f; float num1133 = (float)(-(float)flag90.ToDirectionInt()); if (npc.ai[0] == -2f) { - if (npc.type == NPCID.MoonLordHead) - { - if (NPC.CountNPCS(mod.NPCType("Eidolist")) < 1) - { - if (NPC.CountNPCS(NPCID.MoonLordFreeEye) <= 3 || enraged) - { - if (this.newAI[1] < 600f) - { - this.newAI[1] += 1f; - } - if (this.newAI[1] >= 600f) - { - this.newAI[1] = 0f; - npc.netUpdate = true; - if (Main.netMode != 1) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Eidolist"), 0, 0f, 0f, 0f, 0f, 255); - } - } - } - } - } - if ((double)Main.npc[(int)npc.ai[3]].life <= (double)Main.npc[(int)npc.ai[3]].lifeMax * 0.75) - { - if (this.newAI[2] < 90f) - { - this.newAI[2] += 1f; - } - if ((int)this.newAI[2] % 60 == 0) - { - npc.netUpdate = true; - if (Main.netMode != 1) - { - int num = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, 400, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num].ai[3] = npc.ai[3]; - Main.npc[num].netUpdate = true; - } - } - } - if ((CalamityWorld.death || CalamityWorld.bossRushActive) && npc.type == NPCID.MoonLordHead) - { - if ((double)Main.npc[(int)npc.ai[3]].life <= (double)Main.npc[(int)npc.ai[3]].lifeMax * 0.5) - { - if (this.newAI[2] < 150f) - { - this.newAI[2] += 1f; - } - if ((int)this.newAI[2] % 60 == 0) - { - npc.netUpdate = true; - if (Main.netMode != 1) - { - int num = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, 400, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num].ai[3] = npc.ai[3]; - Main.npc[num].netUpdate = true; - } - } - } - } - if (npc.type == NPCID.MoonLordHead) - { - if (Main.netMode != 1) - { - this.newAI[0] += 1f; - if (this.newAI[0] >= (enraged ? 300f : 480f)) - { - this.newAI[0] = 0f; - npc.TargetClosest(true); - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 103, 1f, 0f); - for (int num194 = 0; num194 < 40; num194++) - { - int num195 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 229, 0f, 0f, 0, default(Color), 2.5f); - Main.dust[num195].noGravity = true; - Main.dust[num195].velocity *= 3f; - num195 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 229, 0f, 0f, 100, default(Color), 1.5f); - Main.dust[num195].velocity *= 2f; - Main.dust[num195].noGravity = true; - } - if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - Vector2 shootFromVector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int laserDamage = 30; - for (i = 0; i < 4; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - float ai = (6.28318548f * (float)Main.rand.NextDouble() - 3.14159274f) / 30f + 0.0174532924f * num1133; - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 9f), (float)(Math.Cos(offsetAngle) * 9f), 452, laserDamage, 0f, Main.myPlayer, 0f, ai); - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 9f), (float)(-Math.Cos(offsetAngle) * 9f), 462, laserDamage, 0f, Main.myPlayer, 0f, 0f); - } - } - } - } - } - else - { - if (Main.netMode != 1) - { - this.newAI[0] += 1f; - if (this.newAI[0] >= (enraged ? 300f : 480f)) - { - this.newAI[0] = 0f; - npc.TargetClosest(true); - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 103, 1f, 0f); - for (int num194 = 0; num194 < 40; num194++) - { - int num195 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 229, 0f, 0f, 0, default(Color), 2.5f); - Main.dust[num195].noGravity = true; - Main.dust[num195].velocity *= 3f; - num195 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 229, 0f, 0f, 100, default(Color), 1.5f); - Main.dust[num195].velocity *= 2f; - Main.dust[num195].noGravity = true; - } - if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - Vector2 shootFromVector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - int laserDamage = 30; - for (i = 0; i < 4; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - float ai = (6.28318548f * (float)Main.rand.NextDouble() - 3.14159274f) / 30f + 0.0174532924f * num1133; - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 9f), (float)(Math.Cos(offsetAngle) * 9f), 452, laserDamage, 0f, Main.myPlayer, 0f, ai); - Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 9f), (float)(-Math.Cos(offsetAngle) * 9f), 462, laserDamage, 0f, Main.myPlayer, 0f, 0f); - } - } - } - } - } + if (npc.type == NPCID.MoonLordHead) + { + if (NPC.CountNPCS(mod.NPCType("Eidolist")) < 1) + { + if (NPC.CountNPCS(NPCID.MoonLordFreeEye) <= 3 || enraged) + { + if (newAI[1] < 600f) + { + newAI[1] += 1f; + } + if (newAI[1] >= 600f) + { + newAI[1] = 0f; + npc.netUpdate = true; + if (Main.netMode != 1) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Eidolist"), 0, 0f, 0f, 0f, 0f, 255); + } + } + } + } + } + if ((double)Main.npc[(int)npc.ai[3]].life <= (double)Main.npc[(int)npc.ai[3]].lifeMax * 0.75) + { + if (newAI[2] < 90f) + { + newAI[2] += 1f; + } + if ((int)newAI[2] % 60 == 0) + { + npc.netUpdate = true; + if (Main.netMode != 1) + { + int num = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, 400, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num].ai[3] = npc.ai[3]; + Main.npc[num].netUpdate = true; + } + } + } + if ((CalamityWorld.death || CalamityWorld.bossRushActive) && npc.type == NPCID.MoonLordHead) + { + if ((double)Main.npc[(int)npc.ai[3]].life <= (double)Main.npc[(int)npc.ai[3]].lifeMax * 0.5) + { + if (newAI[2] < 150f) + { + newAI[2] += 1f; + } + if ((int)newAI[2] % 60 == 0) + { + npc.netUpdate = true; + if (Main.netMode != 1) + { + int num = NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, 400, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num].ai[3] = npc.ai[3]; + Main.npc[num].netUpdate = true; + } + } + } + } + if (npc.type == NPCID.MoonLordHead) + { + if (Main.netMode != 1) + { + newAI[0] += 1f; + if (newAI[0] >= (enraged ? 300f : 480f)) + { + newAI[0] = 0f; + npc.TargetClosest(true); + Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 103, 1f, 0f); + for (int num194 = 0; num194 < 40; num194++) + { + int num195 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 229, 0f, 0f, 0, default(Color), 2.5f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + num195 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 229, 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num195].velocity *= 2f; + Main.dust[num195].noGravity = true; + } + if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + Vector2 shootFromVector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int laserDamage = 30; + for (i = 0; i < 4; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + float ai = (6.28318548f * (float)Main.rand.NextDouble() - 3.14159274f) / 30f + 0.0174532924f * num1133; + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 9f), (float)(Math.Cos(offsetAngle) * 9f), 452, laserDamage, 0f, Main.myPlayer, 0f, ai); + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 9f), (float)(-Math.Cos(offsetAngle) * 9f), 462, laserDamage, 0f, Main.myPlayer, 0f, 0f); + } + } + } + } + } + else + { + if (Main.netMode != 1) + { + newAI[0] += 1f; + if (newAI[0] >= (enraged ? 300f : 480f)) + { + newAI[0] = 0f; + npc.TargetClosest(true); + Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, 103, 1f, 0f); + for (int num194 = 0; num194 < 40; num194++) + { + int num195 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 229, 0f, 0f, 0, default(Color), 2.5f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + num195 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 229, 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num195].velocity *= 2f; + Main.dust[num195].noGravity = true; + } + if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + Vector2 shootFromVector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + int laserDamage = 30; + for (i = 0; i < 4; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + float ai = (6.28318548f * (float)Main.rand.NextDouble() - 3.14159274f) / 30f + 0.0174532924f * num1133; + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 9f), (float)(Math.Cos(offsetAngle) * 9f), 452, laserDamage, 0f, Main.myPlayer, 0f, ai); + Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 9f), (float)(-Math.Cos(offsetAngle) * 9f), 462, laserDamage, 0f, Main.myPlayer, 0f, 0f); + } + } + } + } + } } } - #endregion - #region LunaticCultist - else if (npc.type == NPCID.CultistBoss) + #endregion + #region LunaticCultist + else if (npc.type == NPCID.CultistBoss) { + if (npc.buffImmune[mod.BuffType("Enraged")]) + { + npc.buffImmune[mod.BuffType("Enraged")] = false; + } bool goNuts = (double)npc.life <= (double)npc.lifeMax * 0.5 || enraged; - if (goNuts) - { - if (NPC.CountNPCS(mod.NPCType("Eidolist")) < 2) - { - if (this.newAI[0] < 120f) - { - this.newAI[0] += 1f; - } - if (this.newAI[0] >= 120f) - { - this.newAI[0] = 0f; - npc.netUpdate = true; - if (Main.netMode != 1) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Eidolist"), 0, 0f, 0f, 0f, 0f, 255); - } - if (NPC.CountNPCS(mod.NPCType("Eidolist")) > 1) - { - this.newAI[0] = -780f; - } - } - } - } - if (!goNuts) - { - if (CultCountdown == 0) - { - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - CultCountdown = 75; - } - else if ((double)npc.life <= (double)npc.lifeMax * 0.5) - { - CultCountdown = 150; - } - else - { - CultCountdown = 200; - } - } - if (CultCountdown > 0) - { - CultCountdown--; - if (CultCountdown == 0) - { - if (Main.netMode != 1) - { - Player player2 = Main.player[npc.target]; - int speed2 = 8; - float spawnX = Main.rand.Next(1000) - 500 + player2.Center.X; - float spawnY = -1000 + player2.Center.Y; - Vector2 baseSpawn = new Vector2(spawnX, spawnY); - Vector2 baseVelocity = player2.Center - baseSpawn; - baseVelocity.Normalize(); - baseVelocity = baseVelocity * speed2; - int damage = 25; //100 - for (int i = 0; i < CultProjectiles; i++) - { - Vector2 spawn2 = baseSpawn; - spawn2.X = spawn2.X + i * 30 - (CultProjectiles * 15); - Vector2 velocity = baseVelocity; - velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-CultAngleSpread / 2 + (CultAngleSpread * i / (float)CultProjectiles))); - velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; - int projectileType = Main.rand.Next(3); - if (projectileType == 0) - { - projectileType = 467; - } - else if (projectileType == 1) - { - projectileType = 348; - } - else - { - projectileType = 593; - } - int projectileI = Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, projectileType, damage, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[projectileI].tileCollide = false; - } - } - } - } - } + if (goNuts) + { + if (NPC.CountNPCS(mod.NPCType("Eidolist")) < 2) + { + if (newAI[0] < 120f) + { + newAI[0] += 1f; + } + if (newAI[0] >= 120f) + { + newAI[0] = 0f; + npc.netUpdate = true; + if (Main.netMode != 1) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("Eidolist"), 0, 0f, 0f, 0f, 0f, 255); + } + if (NPC.CountNPCS(mod.NPCType("Eidolist")) > 1) + { + newAI[0] = -780f; + } + } + } + } + if (!goNuts) + { + if (CultCountdown == 0) + { + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + CultCountdown = 75; + } + else if ((double)npc.life <= (double)npc.lifeMax * 0.5) + { + CultCountdown = 150; + } + else + { + CultCountdown = 200; + } + } + if (CultCountdown > 0) + { + CultCountdown--; + if (CultCountdown == 0) + { + if (Main.netMode != 1) + { + Player player2 = Main.player[npc.target]; + int speed2 = 8; + float spawnX = Main.rand.Next(1000) - 500 + player2.Center.X; + float spawnY = -1000 + player2.Center.Y; + Vector2 baseSpawn = new Vector2(spawnX, spawnY); + Vector2 baseVelocity = player2.Center - baseSpawn; + baseVelocity.Normalize(); + baseVelocity = baseVelocity * speed2; + int damage = 25; //100 + for (int i = 0; i < CultProjectiles; i++) + { + Vector2 spawn2 = baseSpawn; + spawn2.X = spawn2.X + i * 30 - (CultProjectiles * 15); + Vector2 velocity = baseVelocity; + velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-CultAngleSpread / 2 + (CultAngleSpread * i / (float)CultProjectiles))); + velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; + int projectileType = Main.rand.Next(3); + if (projectileType == 0) + { + projectileType = 467; + } + else if (projectileType == 1) + { + projectileType = 348; + } + else + { + projectileType = 593; + } + int projectileI = Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, projectileType, damage, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[projectileI].tileCollide = false; + } + } + } + } + } } - #endregion - #region DukeFishron - else if (npc.type == NPCID.DukeFishron) + #endregion + #region DukeFishron + else if (npc.type == NPCID.DukeFishron) { Vector2 vector = npc.Center; bool murderMode = (double)npc.life <= (double)npc.lifeMax * 0.75; - bool murderMode2 = (double)npc.life <= (double)npc.lifeMax * ((CalamityWorld.death || CalamityWorld.bossRushActive) ? 0.5 : 0.33); - float num = 0.6f * Main.damageMultiplier; //1.2 + bool murderMode2 = (double)npc.life <= (double)npc.lifeMax * ((CalamityWorld.death || CalamityWorld.bossRushActive) ? 0.3 : 0.2); + float num = 0.6f * Main.damageMultiplier; //1.2 bool flag3 = npc.ai[0] > 4f; bool flag4 = npc.ai[0] > 9f; if (flag4) { npc.damage = (int)((float)npc.defDamage * 1.1f * num); npc.defense = 38; - this.newAI[0] += 1f; - if (this.newAI[0] >= 480f) - { - this.newAI[0] = 0f; - if (Main.netMode != 1) - { - Projectile.NewProjectile(vector.X, vector.Y, 0f, 0f, 385, 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - } - npc.netUpdate = true; - } + newAI[0] += 1f; + if (newAI[0] >= 600f) + { + newAI[0] = 0f; + if (Main.netMode != 1) + { + Projectile.NewProjectile(vector.X, vector.Y, 0f, 0f, 385, 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + } + npc.netUpdate = true; + } } else if (flag3) { @@ -6050,15 +6185,15 @@ namespace CalamityMod.NPCs { npc.velocity *= 1.01f; //20, 24, 30 } - if (npc.ai[0] == 0f && !Main.player[npc.target].dead) + if (npc.ai[0] == 0f && !Main.player[npc.target].dead) { if (murderMode) { npc.ai[0] = 4f; npc.ai[1] = 0f; npc.ai[2] = 0f; - npc.netUpdate = true; - } + npc.netUpdate = true; + } } else if (npc.ai[0] == 5f && !Main.player[npc.target].dead) { @@ -6067,96 +6202,96 @@ namespace CalamityMod.NPCs npc.ai[0] = 9f; npc.ai[1] = 0f; npc.ai[2] = 0f; - npc.netUpdate = true; - } + npc.netUpdate = true; + } } } - #endregion - #region Golem - else if (npc.type == NPCID.GolemHeadFree && !CalamityWorld.bossRushActive) + #endregion + #region Golem + else if (npc.type == NPCID.GolemHeadFree && !CalamityWorld.bossRushActive) { - bool enrage = true; - if ((double)Main.player[npc.target].Center.Y > Main.worldSurface * 16.0) - { - int num = (int)Main.player[npc.target].Center.X / 16; - int num2 = (int)Main.player[npc.target].Center.Y / 16; - Tile tile = Framing.GetTileSafely(num, num2); - if (tile.wall == 87) - { - enrage = false; - } - } - if (NPC.CountNPCS(NPCID.Golem) > 0) - { - if (enrage) - { - npc.ai[1] += 3f; - } - npc.ai[1] -= 0.25f; //0.75 - if ((double)Main.npc[NPC.golemBoss].life < (double)Main.npc[NPC.golemBoss].lifeMax * 0.8) - { - npc.ai[1] -= 0.75f; //1 - } - if ((double)Main.npc[NPC.golemBoss].life < (double)Main.npc[NPC.golemBoss].lifeMax * 0.6) - { - npc.ai[1] -= 0.75f; //1.25 - } - if ((double)Main.npc[NPC.golemBoss].life < (double)Main.npc[NPC.golemBoss].lifeMax * 0.2) - { - npc.ai[1] -= 0.75f; //1.5 - } - if ((double)Main.npc[NPC.golemBoss].life < (double)Main.npc[NPC.golemBoss].lifeMax * 0.1) - { - npc.ai[1] -= 0.75f; //1.75 - } - if (enrage) - { - npc.ai[2] += 3f; - } - npc.ai[2] -= 0.25f; //0.75 - if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 2) - { - npc.ai[2] -= 0.75f; //1 - } - if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 3) - { - npc.ai[2] -= 0.75f; //1.25 - } - if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 4) - { - npc.ai[2] -= 0.5f; //1.75 - } - if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 5) - { - npc.ai[2] -= 0.5f; //1.25 - } - if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 6) - { - npc.ai[2] -= 0.25f; //2 - } - } - } + bool enrage = true; + if ((double)Main.player[npc.target].Center.Y > Main.worldSurface * 16.0) + { + int num = (int)Main.player[npc.target].Center.X / 16; + int num2 = (int)Main.player[npc.target].Center.Y / 16; + Tile tile = Framing.GetTileSafely(num, num2); + if (tile.wall == 87) + { + enrage = false; + } + } + if (NPC.CountNPCS(NPCID.Golem) > 0) + { + if (enrage) + { + npc.ai[1] += 3f; + } + npc.ai[1] -= 0.25f; //0.75 + if ((double)Main.npc[NPC.golemBoss].life < (double)Main.npc[NPC.golemBoss].lifeMax * 0.8) + { + npc.ai[1] -= 0.75f; //1 + } + if ((double)Main.npc[NPC.golemBoss].life < (double)Main.npc[NPC.golemBoss].lifeMax * 0.6) + { + npc.ai[1] -= 0.75f; //1.25 + } + if ((double)Main.npc[NPC.golemBoss].life < (double)Main.npc[NPC.golemBoss].lifeMax * 0.2) + { + npc.ai[1] -= 0.75f; //1.5 + } + if ((double)Main.npc[NPC.golemBoss].life < (double)Main.npc[NPC.golemBoss].lifeMax * 0.1) + { + npc.ai[1] -= 0.75f; //1.75 + } + if (enrage) + { + npc.ai[2] += 3f; + } + npc.ai[2] -= 0.25f; //0.75 + if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 2) + { + npc.ai[2] -= 0.75f; //1 + } + if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 3) + { + npc.ai[2] -= 0.75f; //1.25 + } + if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 4) + { + npc.ai[2] -= 0.5f; //1.75 + } + if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 5) + { + npc.ai[2] -= 0.5f; //1.25 + } + if (Main.npc[NPC.golemBoss].life < Main.npc[NPC.golemBoss].lifeMax / 6) + { + npc.ai[2] -= 0.25f; //2 + } + } + } else if (npc.type == NPCID.GolemHead && !CalamityWorld.bossRushActive) { - bool enrage = true; - if ((double)Main.player[npc.target].Center.Y > Main.worldSurface * 16.0) - { - int num = (int)Main.player[npc.target].Center.X / 16; - int num2 = (int)Main.player[npc.target].Center.Y / 16; - Tile tile = Framing.GetTileSafely(num, num2); - if (tile.wall == 87) - { - enrage = false; - } - } - if (npc.ai[0] == 1f) + bool enrage = true; + if ((double)Main.player[npc.target].Center.Y > Main.worldSurface * 16.0) { - if (enrage) - { - npc.ai[1] += 3f; - } - npc.ai[1] -= 0.25f; //0.75 - if ((double)npc.life < (double)npc.lifeMax * 0.4) + int num = (int)Main.player[npc.target].Center.X / 16; + int num2 = (int)Main.player[npc.target].Center.Y / 16; + Tile tile = Framing.GetTileSafely(num, num2); + if (tile.wall == 87) + { + enrage = false; + } + } + if (npc.ai[0] == 1f) + { + if (enrage) + { + npc.ai[1] += 3f; + } + npc.ai[1] -= 0.25f; //0.75 + if ((double)npc.life < (double)npc.lifeMax * 0.4) { npc.ai[1] -= 0.75f; //1 } @@ -6164,54 +6299,49 @@ namespace CalamityMod.NPCs { npc.ai[1] -= 0.75f; //1.25 } - if (enrage) - { - npc.ai[2] += 3f; - } - npc.ai[2] -= 0.25f; //0.75 - if (npc.life < npc.lifeMax / 3) + if (enrage) { - npc.ai[2] -= 0.75f; //1 - } + npc.ai[2] += 3f; + } + npc.ai[2] -= 0.25f; //0.75 + if (npc.life < npc.lifeMax / 3) + { + npc.ai[2] -= 0.75f; //1 + } if (npc.life < npc.lifeMax / 4) { - npc.ai[2] -= 0.75f; //1.25 - } + npc.ai[2] -= 0.75f; //1.25 + } if (npc.life < npc.lifeMax / 5) { - npc.ai[2] -= 0.75f; //1.5 - } - } + npc.ai[2] -= 0.75f; //1.5 + } + } } - else if (npc.type == NPCID.GolemFistLeft || npc.type == NPCID.GolemFistRight) - { - npc.life = 4000; - npc.dontTakeDamage = true; - } - #endregion - #region Plantera - else if (npc.type == NPCID.Plantera) + #endregion + #region Plantera + else if (npc.type == NPCID.Plantera) { bool jungle = Main.player[npc.target].ZoneJungle; - if (npc.life < npc.lifeMax / 8 || CalamityWorld.bossRushActive) - { - npc.velocity.X *= 1.003f; - npc.velocity.Y *= 1.003f; - } - else if (npc.life < npc.lifeMax / 4) - { - npc.velocity.X *= 1.001f; - npc.velocity.Y *= 1.001f; - } - else if (npc.life < npc.lifeMax / 2) - { - npc.velocity.X *= 1.0005f; - npc.velocity.Y *= 1.0005f; - } - if (npc.life > npc.lifeMax / 2) + if (npc.life < npc.lifeMax / 8 || CalamityWorld.bossRushActive) + { + npc.velocity.X *= 1.003f; + npc.velocity.Y *= 1.003f; + } + else if (npc.life < npc.lifeMax / 4) + { + npc.velocity.X *= 1.001f; + npc.velocity.Y *= 1.001f; + } + else if (npc.life < npc.lifeMax / 2) + { + npc.velocity.X *= 1.0005f; + npc.velocity.Y *= 1.0005f; + } + if (npc.life > npc.lifeMax / 2) { npc.defense = 42; - if (!jungle && !CalamityWorld.bossRushActive) + if (!jungle && !CalamityWorld.bossRushActive) { npc.defense = 200; npc.damage = (int)(120f * Main.damageMultiplier); @@ -6219,167 +6349,167 @@ namespace CalamityMod.NPCs if (Main.netMode != 1) { npc.localAI[1] += (enraged ? 3f : 1.5f); - } + } } else { npc.defense = 22; - if (!jungle && !CalamityWorld.bossRushActive) + if (!jungle && !CalamityWorld.bossRushActive) { npc.defense = 400; npc.damage = (int)(200f * Main.damageMultiplier); } - this.newAI[0] += 1f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - this.newAI[0] += 0.5f; - } - if (this.newAI[0] >= (enraged ? 150f : 270f)) + newAI[0] += 1f; + if (CalamityWorld.death || CalamityWorld.bossRushActive) { - this.newAI[0] = 0f; + newAI[0] += 0.5f; + } + if (newAI[0] >= (enraged ? 150f : 270f)) + { + newAI[0] = 0f; if (Main.netMode != 1 && NPC.CountNPCS(NPCID.PlanterasTentacle) < 20) { NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, NPCID.PlanterasTentacle, npc.whoAmI, 0f, 0f, 0f, 0f, 255); } } - if (CalamityWorld.death || (double)npc.life < (double)npc.lifeMax * 0.25 || CalamityWorld.bossRushActive) - { - this.newAI[1] += 1f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - this.newAI[1] += 0.5f; - } - if (!jungle) - { - this.newAI[1] += 2f; - } - if (this.newAI[1] >= (enraged ? 180f : 240f)) - { - this.newAI[1] = 0f; - if (Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; - float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; - float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num349 *= num351; - num350 *= num351; - if (Main.netMode != 1) - { - float num418 = (!jungle ? 24f : 12f); - int num419 = 32; - int num420 = 277; - num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num351 = num418 / num351; - num349 *= num351; - num350 *= num351; - num349 += (float)Main.rand.Next(-10, 11) * 0.05f; - num350 += (float)Main.rand.Next(-10, 11) * 0.05f; - vector34.X += num349 * 4f; - vector34.Y += num350 * 4f; - Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num420, num419, 0f, Main.myPlayer, 0f, 0f); - } - } - } - } - npc.localAI[1] += 1f; - } + if (CalamityWorld.death || (double)npc.life < (double)npc.lifeMax * 0.25 || CalamityWorld.bossRushActive) + { + newAI[1] += 1f; + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + newAI[1] += 0.5f; + } + if (!jungle) + { + newAI[1] += 2f; + } + if (newAI[1] >= (enraged ? 180f : 240f)) + { + newAI[1] = 0f; + if (Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; + float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; + float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num349 *= num351; + num350 *= num351; + if (Main.netMode != 1) + { + float num418 = (!jungle ? 24f : 12f); + int num419 = 32; + int num420 = 277; + num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num351 = num418 / num351; + num349 *= num351; + num350 *= num351; + num349 += (float)Main.rand.Next(-10, 11) * 0.05f; + num350 += (float)Main.rand.Next(-10, 11) * 0.05f; + vector34.X += num349 * 4f; + vector34.Y += num350 * 4f; + Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num420, num419, 0f, Main.myPlayer, 0f, 0f); + } + } + } + } + npc.localAI[1] += 1f; + } } - if (npc.type == NPCID.PlanterasTentacle) - { - bool jungle = Main.player[npc.target].ZoneJungle; - this.newAI[0] += 1f; - if (CalamityWorld.death || !jungle) - { - this.newAI[0] += 1f; - } - if (this.newAI[0] >= 480f) - { - this.newAI[0] = 0f; - if (Main.netMode != 1 && NPC.CountNPCS(NPCID.Spore) < 20) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, NPCID.Spore, npc.whoAmI, 0f, 0f, 0f, 0f, 255); - } - } - } - #endregion - #region SkeletronPrime - else if (npc.type == NPCID.SkeletronPrime) + if (npc.type == NPCID.PlanterasTentacle) { - if (Main.netMode != 1) - { - if (npc.ai[1] != 1f || (!CalamityWorld.death && (double)npc.life > (double)npc.lifeMax * 0.25) || CalamityWorld.bossRushActive) - { - npc.localAI[0] += 1f; - if ((double)npc.life <= (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) - { - npc.localAI[0] += 1f; - } - if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - npc.localAI[0] += 1f; - } - if (npc.localAI[0] >= (enraged ? 90f : 120f)) - { - npc.localAI[0] = 0f; - Vector2 vector16 = npc.Center; - float num157 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector16.X; - float num158 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector16.Y; - Math.Sqrt((double)(num157 * num157 + num158 * num158)); - if (Collision.CanHit(vector16, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - float num159 = 7f; - float num160 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector16.X + (float)Main.rand.Next(-20, 21); - float num161 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector16.Y + (float)Main.rand.Next(-20, 21); - float num162 = (float)Math.Sqrt((double)(num160 * num160 + num161 * num161)); - num162 = num159 / num162; - num160 *= num162; - num161 *= num162; - Vector2 value = new Vector2(num160 * 1f + (float)Main.rand.Next(-50, 51) * 0.01f, num161 * 1f + (float)Main.rand.Next(-50, 51) * 0.01f); - value.Normalize(); - value *= num159; - value += npc.velocity; - num160 = value.X; - num161 = value.Y; - int num163 = 27; - int num164 = 270; - vector16 += value * 5f; - int num165 = Projectile.NewProjectile(vector16.X, vector16.Y, num160, num161, num164, num163, 0f, Main.myPlayer, -1f, 0f); - Main.projectile[num165].timeLeft = 300; - } - } - } - if (CalamityWorld.death || (double)npc.life <= (double)npc.lifeMax * 0.25 || CalamityWorld.bossRushActive) - { - this.newAI[0] += 1f; - if (npc.ai[1] == 1f || CalamityWorld.bossRushActive) - { - this.newAI[0] += 3f; - } - if (this.newAI[0] >= (enraged ? 180f : 240f)) //4 seconds or 1 second - { - this.newAI[0] = 0f; - Vector2 shootFromVector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int damage = 30; - int i; - for (i = 0; i < 6; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - int projectile = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 6f), (float)(Math.Cos(offsetAngle) * 6f), 100, damage, 0f, Main.myPlayer, 0f, 0f); - int projectile2 = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 6f), (float)(-Math.Cos(offsetAngle) * 6f), 100, damage, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[projectile].timeLeft = 300; - Main.projectile[projectile2].timeLeft = 300; - Main.projectile[projectile].tileCollide = false; - Main.projectile[projectile2].tileCollide = false; - } - } - } - } - if (npc.ai[1] == 1f) + bool jungle = Main.player[npc.target].ZoneJungle; + newAI[0] += 1f; + if (CalamityWorld.death || !jungle) + { + newAI[0] += 1f; + } + if (newAI[0] >= 480f) + { + newAI[0] = 0f; + if (Main.netMode != 1 && NPC.CountNPCS(NPCID.Spore) < 20) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, NPCID.Spore, npc.whoAmI, 0f, 0f, 0f, 0f, 255); + } + } + } + #endregion + #region SkeletronPrime + else if (npc.type == NPCID.SkeletronPrime) + { + if (Main.netMode != 1) + { + if (npc.ai[1] != 1f || (!CalamityWorld.death && (double)npc.life > (double)npc.lifeMax * 0.25) || CalamityWorld.bossRushActive) + { + npc.localAI[0] += 1f; + if ((double)npc.life <= (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) + { + npc.localAI[0] += 1f; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + npc.localAI[0] += 1f; + } + if (npc.localAI[0] >= (enraged ? 90f : 120f)) + { + npc.localAI[0] = 0f; + Vector2 vector16 = npc.Center; + float num157 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector16.X; + float num158 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector16.Y; + Math.Sqrt((double)(num157 * num157 + num158 * num158)); + if (Collision.CanHit(vector16, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + float num159 = 7f; + float num160 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector16.X + (float)Main.rand.Next(-20, 21); + float num161 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector16.Y + (float)Main.rand.Next(-20, 21); + float num162 = (float)Math.Sqrt((double)(num160 * num160 + num161 * num161)); + num162 = num159 / num162; + num160 *= num162; + num161 *= num162; + Vector2 value = new Vector2(num160 * 1f + (float)Main.rand.Next(-50, 51) * 0.01f, num161 * 1f + (float)Main.rand.Next(-50, 51) * 0.01f); + value.Normalize(); + value *= num159; + value += npc.velocity; + num160 = value.X; + num161 = value.Y; + int num163 = 27; + int num164 = 270; + vector16 += value * 5f; + int num165 = Projectile.NewProjectile(vector16.X, vector16.Y, num160, num161, num164, num163, 0f, Main.myPlayer, -1f, 0f); + Main.projectile[num165].timeLeft = 300; + } + } + } + if (CalamityWorld.death || (double)npc.life <= (double)npc.lifeMax * 0.25 || CalamityWorld.bossRushActive) + { + newAI[0] += 1f; + if (npc.ai[1] == 1f || CalamityWorld.bossRushActive) + { + newAI[0] += 3f; + } + if (newAI[0] >= (enraged ? 180f : 240f)) //4 seconds or 1 second + { + newAI[0] = 0f; + Vector2 shootFromVector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int damage = 30; + int i; + for (i = 0; i < 6; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + int projectile = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(Math.Sin(offsetAngle) * 6f), (float)(Math.Cos(offsetAngle) * 6f), 100, damage, 0f, Main.myPlayer, 0f, 0f); + int projectile2 = Projectile.NewProjectile(shootFromVector.X, shootFromVector.Y, (float)(-Math.Sin(offsetAngle) * 6f), (float)(-Math.Cos(offsetAngle) * 6f), 100, damage, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[projectile].timeLeft = 300; + Main.projectile[projectile2].timeLeft = 300; + Main.projectile[projectile].tileCollide = false; + Main.projectile[projectile2].tileCollide = false; + } + } + } + } + if (npc.ai[1] == 1f) { int speed = CalamityWorld.bossRushActive ? 7 : 4; if ((double)npc.life <= (double)npc.lifeMax * 0.7) @@ -6390,11 +6520,11 @@ namespace CalamityMod.NPCs { speed++; } - if (enraged) - { - speed += 3; - } - float speed2 = (float)speed; + if (enraged) + { + speed += 3; + } + float speed2 = (float)speed; float speedBuff = 3f + (3f * (1f - (float)npc.life / (float)npc.lifeMax)); float speedBuff2 = 11f + (11f * (1f - (float)npc.life / (float)npc.lifeMax)); Vector2 vector45 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); @@ -6415,486 +6545,498 @@ namespace CalamityMod.NPCs npc.velocity.Y = num445 * num446; } } - else if (npc.type == NPCID.PrimeLaser) - { - if (Main.netMode != 1) - { - npc.localAI[0] += 2f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - npc.localAI[0] += 2f; - } - } - } - else if (npc.type == NPCID.PrimeCannon) - { - npc.TargetClosest(true); - Vector2 vector61 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num499 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector61.X; - float num500 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector61.Y; - npc.rotation = (float)Math.Atan2((double)num500, (double)num499) - 1.57f; - if (Main.netMode != 1) - { - npc.localAI[0] = 0f; - npc.localAI[1] += 1f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - npc.localAI[1] += 1f; - } - if (npc.ai[2] == 1f) - { - npc.localAI[1] += 2f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - npc.localAI[1] += 2f; - } - } - if (npc.localAI[1] > (enraged ? 90f : 120f)) - { - npc.localAI[1] = 0f; - npc.TargetClosest(true); - if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - float num941 = 9f; //speed - Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); - float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); - float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); - float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); - num944 = num941 / num944; - num942 *= num944; - num943 *= num944; - num942 += (float)Main.rand.Next(-5, 6) * 0.05f; - num943 += (float)Main.rand.Next(-5, 6) * 0.05f; - int num945 = 27; - int num946 = 303; - vector104.X += num942 * 5f; - vector104.Y += num943 * 5f; - int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num947].timeLeft = 180; - npc.netUpdate = true; - } - } - } - } - #endregion - #region TheTwins - else if (npc.type == NPCID.Retinazer) + else if (npc.type == NPCID.PrimeLaser) { - laserEye = npc.whoAmI; + if (Main.netMode != 1) + { + npc.localAI[0] += 2f; + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + npc.localAI[0] += 2f; + } + } + } + else if (npc.type == NPCID.PrimeCannon) + { + npc.TargetClosest(true); + Vector2 vector61 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num499 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector61.X; + float num500 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector61.Y; + npc.rotation = (float)Math.Atan2((double)num500, (double)num499) - 1.57f; + if (Main.netMode != 1) + { + npc.localAI[0] = 0f; + npc.localAI[1] += 1f; + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + npc.localAI[1] += 1f; + } + if (npc.ai[2] == 1f) + { + npc.localAI[1] += 2f; + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + npc.localAI[1] += 2f; + } + } + if (npc.localAI[1] > (enraged ? 90f : 120f)) + { + npc.localAI[1] = 0f; + npc.TargetClosest(true); + if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + float num941 = 9f; //speed + Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); + float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); + float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); + float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); + num944 = num941 / num944; + num942 *= num944; + num943 *= num944; + num942 += (float)Main.rand.Next(-5, 6) * 0.05f; + num943 += (float)Main.rand.Next(-5, 6) * 0.05f; + int num945 = 27; + int num946 = 303; + vector104.X += num942 * 5f; + vector104.Y += num943 * 5f; + int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[num947].timeLeft = 180; + npc.netUpdate = true; + } + } + } + } + #endregion + #region TheTwins + else if (npc.type == NPCID.Retinazer) + { + laserEye = npc.whoAmI; bool spazAlive = false; if (NPC.CountNPCS(NPCID.Spazmatism) > 0) { spazAlive = true; } - if (npc.ai[0] == 0f) - { - double healthMult = ((CalamityWorld.death || CalamityWorld.bossRushActive) ? 0.8 : 0.6); - if ((double)npc.life < (double)npc.lifeMax * healthMult) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] != 1f && npc.ai[0] != 2f && npc.ai[0] != 0f) + if (npc.ai[0] == 0f) { - if (spazAlive) - { - if (Main.npc[fireEye].ai[0] == 1f || Main.npc[fireEye].ai[0] == 2f || Main.npc[fireEye].ai[0] == 0f) - { - npc.dontTakeDamage = true; - } - else - { - npc.dontTakeDamage = false; - } - } - else - { - npc.dontTakeDamage = false; - } + double healthMult = ((CalamityWorld.death || CalamityWorld.bossRushActive) ? 0.8 : 0.6); + if ((double)npc.life < (double)npc.lifeMax * healthMult) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] != 1f && npc.ai[0] != 2f && npc.ai[0] != 0f) + { + if (spazAlive) + { + if (Main.npc[fireEye].ai[0] == 1f || Main.npc[fireEye].ai[0] == 2f || Main.npc[fireEye].ai[0] == 0f) + { + npc.dontTakeDamage = true; + } + else + { + npc.dontTakeDamage = false; + } + } + else + { + npc.dontTakeDamage = false; + } npc.defense = npc.defDefense + 20; - if (npc.ai[1] == 0f) - { - npc.ai[2] += (spazAlive ? 0.25f : 0.5f); - npc.localAI[1] += (spazAlive ? 0.5f : 1f); - } - else - { - npc.ai[2] += (spazAlive ? 0.25f : 0.5f); - npc.localAI[1] += (spazAlive ? 0.5f : 1f); - } - this.newAI[0] += (spazAlive ? 1f : 2f); - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - this.newAI[0] += 1f; - } - if (this.newAI[0] >= (enraged ? 180f : 240f)) - { - this.newAI[0] = 0f; - Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; - float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; - float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num349 *= num351; - num350 *= num351; - if (Main.netMode != 1) - { - float num353 = 8f; - int num354 = 29; - int num355 = mod.ProjectileType("ScavengerLaser"); - vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - num349 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector34.X; - num350 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector34.Y; - num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num351 = num353 / num351; - num349 *= num351; - num350 *= num351; - vector34.X += num349; - vector34.Y += num350; - Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num355, num354, 0f, Main.myPlayer, 0f, 0f); - } - } + if (npc.ai[1] == 0f) + { + npc.ai[2] += (spazAlive ? 0.25f : 0.5f); + npc.localAI[1] += (spazAlive ? 0.5f : 1f); + } + else + { + npc.ai[2] += (spazAlive ? 0.25f : 0.5f); + npc.localAI[1] += (spazAlive ? 0.5f : 1f); + } + newAI[0] += (spazAlive ? 1f : 2f); + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + newAI[0] += 1f; + } + if (newAI[0] >= (enraged ? 180f : 240f)) + { + newAI[0] = 0f; + Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; + float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; + float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num349 *= num351; + num350 *= num351; + if (Main.netMode != 1) + { + float num353 = 8f; + int num354 = 29; + int num355 = mod.ProjectileType("ScavengerLaser"); + vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num349 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector34.X; + num350 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector34.Y; + num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num351 = num353 / num351; + num349 *= num351; + num350 *= num351; + vector34.X += num349; + vector34.Y += num350; + Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num355, num354, 0f, Main.myPlayer, 0f, 0f); + } + } } } else if (npc.type == NPCID.Spazmatism) { - fireEye = npc.whoAmI; + fireEye = npc.whoAmI; bool retAlive = false; if (NPC.CountNPCS(NPCID.Retinazer) > 0) { retAlive = true; } - if (npc.ai[0] == 0f) - { - double healthMult = ((CalamityWorld.death || CalamityWorld.bossRushActive) ? 0.8 : 0.6); - if ((double)npc.life < (double)npc.lifeMax * healthMult) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.netUpdate = true; - return; - } - } + if (npc.ai[0] == 0f) + { + double healthMult = ((CalamityWorld.death || CalamityWorld.bossRushActive) ? 0.8 : 0.6); + if ((double)npc.life < (double)npc.lifeMax * healthMult) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.netUpdate = true; + return; + } + } else if (npc.ai[0] != 1f && npc.ai[0] != 2f && npc.ai[0] != 0f) { - if (retAlive) - { - if (Main.npc[laserEye].ai[0] == 1f || Main.npc[laserEye].ai[0] == 2f || Main.npc[laserEye].ai[0] == 0f) - { - npc.dontTakeDamage = true; - } - else - { - npc.dontTakeDamage = false; - } - } - else - { - npc.dontTakeDamage = false; - } - npc.defense = npc.defDefense + 30; - if (npc.ai[1] == 0f) + if (retAlive) { - if (!Main.player[npc.target].dead) - { - this.newAI[0] += 1f; - } - if (this.newAI[0] >= (enraged ? 20f : 30f)) - { - this.newAI[0] = 0f; - if (Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; - float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; - float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num349 *= num351; - num350 *= num351; - if (Main.netMode != 1) - { - float num418 = (enraged ? 25f : 18f); - int num419 = 30; - int num420 = 96; - num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num351 = num418 / num351; - num349 *= num351; - num350 *= num351; - num349 += (float)Main.rand.Next(-30, 31) * 0.05f; - num350 += (float)Main.rand.Next(-30, 31) * 0.05f; - vector34.X += num349 * 4f; - vector34.Y += num350 * 4f; - Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num420, num419, 0f, Main.myPlayer, 0f, 0f); - } - } - } - npc.ai[2] += (retAlive ? 1.5f : 2f); + if (Main.npc[laserEye].ai[0] == 1f || Main.npc[laserEye].ai[0] == 2f || Main.npc[laserEye].ai[0] == 0f) + { + npc.dontTakeDamage = true; + } + else + { + npc.dontTakeDamage = false; + } + } + else + { + npc.dontTakeDamage = false; + } + npc.defense = npc.defDefense + 30; + if (npc.ai[1] == 0f) + { + if (!Main.player[npc.target].dead) + { + newAI[0] += 1f; + } + if (newAI[0] >= (enraged ? 20f : 30f)) + { + newAI[0] = 0f; + if (Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; + float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; + float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num349 *= num351; + num350 *= num351; + if (Main.netMode != 1) + { + float num418 = (enraged ? 25f : 18f); + int num419 = 30; + int num420 = 96; + num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num351 = num418 / num351; + num349 *= num351; + num350 *= num351; + num349 += (float)Main.rand.Next(-30, 31) * 0.05f; + num350 += (float)Main.rand.Next(-30, 31) * 0.05f; + vector34.X += num349 * 4f; + vector34.Y += num350 * 4f; + Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num420, num419, 0f, Main.myPlayer, 0f, 0f); + } + } + } + npc.ai[2] += (retAlive ? 1.5f : 2f); npc.velocity.X *= 1.005f; npc.velocity.Y *= 1.005f; - if (enraged) - { - npc.velocity.X *= 1.01f; - npc.velocity.Y *= 1.01f; - } + if (enraged) + { + npc.velocity.X *= 1.01f; + npc.velocity.Y *= 1.01f; + } } else { npc.ai[2] += (retAlive ? 0.1f : 0.5f); npc.velocity.X *= (retAlive ? 1.001f : 1.002f); npc.velocity.Y *= (retAlive ? 1.001f : 1.002f); - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - npc.velocity.X *= (retAlive ? 1.0005f : 1.001f); - npc.velocity.Y *= (retAlive ? 1.0005f : 1.001f); - } - if (enraged) - { - npc.velocity.X *= 1.003f; - npc.velocity.Y *= 1.003f; - } - } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + npc.velocity.X *= (retAlive ? 1.0005f : 1.001f); + npc.velocity.Y *= (retAlive ? 1.0005f : 1.001f); + } + if (enraged) + { + npc.velocity.X *= 1.003f; + npc.velocity.Y *= 1.003f; + } + } } } - #endregion - #region TheDestroyer + #endregion + #region TheDestroyer else if (npc.type == NPCID.TheDestroyerBody) { + bool targetFloatingUp = Main.player[npc.target].gravDir == -1f; int defenseUp = (int)(20f * (1f - (float)npc.life / (float)npc.lifeMax)); + if (targetFloatingUp) + { + if (newAI[2] < 480f) //8 seconds + newAI[2] += 1f; + } + else + { + if (newAI[2] > 0f) + newAI[2] -= 1f; + } npc.defense = npc.defDefense + defenseUp; npc.localAI[0] = 0f; - int shootTime = (enraged ? 4 : 2); - if ((double)Main.player[npc.target].statLife > (double)Main.player[npc.target].statLifeMax2 * 0.5 || CalamityWorld.bossRushActive) + int shootTime = (enraged ? 8 : 4); + if (CalamityWorld.bossRushActive) { - shootTime += 2; + shootTime += 1; + } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + shootTime += 1; + } + if (Main.netMode != 1) + { + newAI[0] += (float)Main.rand.Next(shootTime); + if (newAI[0] >= (float)Main.rand.Next(1400, 26000)) + { + newAI[0] = 0f; + npc.TargetClosest(true); + bool shootNoTileCollideLaser = false; + if (Main.rand.Next(3) == 0 || CalamityWorld.bossRushActive || newAI[2] > 0f) + { + shootNoTileCollideLaser = true; + } + if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) || + shootNoTileCollideLaser) + { + float laserSpeedBoost = System.Math.Abs(Main.player[npc.target].velocity.X); + if (System.Math.Abs(Main.player[npc.target].velocity.X) < System.Math.Abs(Main.player[npc.target].velocity.Y)) + { + laserSpeedBoost = System.Math.Abs(Main.player[npc.target].velocity.Y); + } + float speed = 2f + laserSpeedBoost; + if (speed < 7f) + { + speed = 7f; + } + if (speed > 10f) + { + speed = 10f; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.7) + { + speed += 0.25f; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.4 || CalamityWorld.bossRushActive) + { + speed += CalamityWorld.death ? 0.33f : 0.25f; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + speed += CalamityWorld.death ? 0.33f : 0.25f; + } + int num9 = 28; + int num10 = 100; + int value = (CalamityWorld.bossRushActive ? 3 : 4); + if (Main.rand.Next(value) == 0 || enraged) + { + int secondValue = (newAI[2] > 0f ? 3 : 5); + num10 = (Main.rand.Next(secondValue) == 0 ? mod.ProjectileType("DestroyerHomingLaser") : 257); + num9 = 31; + } + Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); + float num6 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector.X; + float num7 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector.Y; + float num8 = (float)Math.Sqrt((double)(num6 * num6 + num7 * num7)); + num8 = speed / num8; + num6 *= num8; + num7 *= num8; + vector.X += num6 * 5f; + vector.Y += num7 * 5f; + int num11 = Projectile.NewProjectile(vector.X, vector.Y, num6, num7, num10, num9, 0f, Main.myPlayer, 0f, 0f); + if (num10 != mod.ProjectileType("DestroyerHomingLaser")) + { + Main.projectile[num11].timeLeft = 300; + } + if (shootNoTileCollideLaser) + { + Main.projectile[num11].tileCollide = false; + } + npc.netUpdate = true; + } + } } - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - shootTime += 1; - } - if (Main.netMode != 1) - { - this.newAI[0] += (float)Main.rand.Next(shootTime); - if (this.newAI[0] >= (float)Main.rand.Next(1400, 26000)) - { - this.newAI[0] = 0f; - npc.TargetClosest(true); - bool shootNoTileCollideLaser = false; - if (Main.rand.Next(3) == 0 || CalamityWorld.bossRushActive) - { - shootNoTileCollideLaser = true; - } - if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) || - shootNoTileCollideLaser) - { - float laserSpeedBoost = System.Math.Abs(Main.player[npc.target].velocity.X); - if (System.Math.Abs(Main.player[npc.target].velocity.X) < System.Math.Abs(Main.player[npc.target].velocity.Y)) - { - laserSpeedBoost = System.Math.Abs(Main.player[npc.target].velocity.Y); - } - float speed = 2f + laserSpeedBoost; - if (speed < 7f) - { - speed = 7f; - } - if (speed > 10f) - { - speed = 10f; - } - if ((double)npc.life <= (double)npc.lifeMax * 0.7) - { - speed += 0.25f; - } - if ((double)npc.life <= (double)npc.lifeMax * 0.4 || CalamityWorld.bossRushActive) - { - speed += CalamityWorld.death ? 0.5f : 0.33f; - } - if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - speed += CalamityWorld.death ? 0.5f : 0.33f; - } - int num9 = 26; - int num10 = 100; - int value = (CalamityWorld.death || CalamityWorld.bossRushActive) ? 3 : 4; - if (Main.rand.Next(value) == 0 || enraged) - { - num10 = (Main.rand.Next(4) == 0 ? mod.ProjectileType("DestroyerHomingLaser") : 257); - num9 = 29; - } - Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); - float num6 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector.X + (float)Main.rand.Next(-20, 21); - float num7 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector.Y + (float)Main.rand.Next(-20, 21); - float num8 = (float)Math.Sqrt((double)(num6 * num6 + num7 * num7)); - num8 = speed / num8; - num6 *= num8; - num7 *= num8; - vector.X += num6 * 5f; - vector.Y += num7 * 5f; - int num11 = Projectile.NewProjectile(vector.X, vector.Y, num6, num7, num10, num9, 0f, Main.myPlayer, 0f, 0f); - if (num10 != mod.ProjectileType("DestroyerHomingLaser")) - { - Main.projectile[num11].timeLeft = 300; - } - if (shootNoTileCollideLaser) - { - Main.projectile[num11].tileCollide = false; - } - npc.netUpdate = true; - } - } - } } - #endregion - #region WallofFlesh - else if (npc.type == NPCID.WallofFlesh) + #endregion + #region WallofFlesh + else if (npc.type == NPCID.WallofFlesh) { - if (enraged) - { - npc.velocity.X *= 1.7f; - } - else if (CalamityWorld.bossRushActive) - { - npc.velocity.X *= 1.3f; - } - else if (CalamityWorld.death) - { - npc.velocity.X *= 1.18f; - } - else - { - npc.velocity.X *= 1.12f; - } - } + if (enraged) + { + npc.velocity.X *= 1.7f; + } + else if (CalamityWorld.bossRushActive) + { + npc.velocity.X *= 1.3f; + } + else if (CalamityWorld.death) + { + npc.velocity.X *= 1.18f; + } + else + { + npc.velocity.X *= 1.12f; + } + } else if (npc.type == NPCID.WallofFleshEye) { - if (NPC.CountNPCS(NPCID.WallofFlesh) > 0) - { - Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; - float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; - float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num349 *= num351; - num350 *= num351; - bool flag30 = true; - if (npc.direction > 0) - { - if (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) < npc.position.X + (float)(npc.width / 2)) - { - flag30 = false; - } - } - else if (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) > npc.position.X + (float)(npc.width / 2)) - { - flag30 = false; - } - if (Main.netMode != 1) - { - int num352 = (enraged ? 7 : 4); - npc.localAI[1] = 0f; - npc.localAI[3] += (enraged ? 4f : 2f); - if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.75) - { - npc.localAI[3] += 1f; - num352++; - } - if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.5) - { - npc.localAI[3] += 1f; - num352++; - } - if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.25) - { - npc.localAI[3] += 1f; - num352 += 2; - } - if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - npc.localAI[3] += 2f; - num352 += 3; - } - if (this.newAI[0] == 0f) - { - if (npc.localAI[3] > 600f) - { - this.newAI[0] = 1f; - npc.localAI[3] = 0f; - return; - } - } - else if (npc.localAI[3] > 45f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - npc.localAI[3] = 0f; - this.newAI[0] += 1f; - if (this.newAI[0] >= (float)num352) - { - this.newAI[0] = 0f; - } - if (flag30) - { - float num353 = (enraged ? 14f : 10f); - int num354 = 18; - int num355 = 83; - if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.5) - { - num354++; - num353 += 1f; - } - if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.25) - { - num354++; - num353 += 1f; - } - if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num354 += 2; - num353 += 2f; - } - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - num353 += 1f; - } - vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - num349 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector34.X; - num350 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector34.Y; - num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num351 = num353 / num351; - num349 *= num351; - num350 *= num351; - vector34.X += num349; - vector34.Y += num350; - Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num355, num354, 0f, Main.myPlayer, 0f, 0f); - return; - } - } - } - } + if (NPC.CountNPCS(NPCID.WallofFlesh) > 0) + { + Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num349 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector34.X; + float num350 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector34.Y; + float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num349 *= num351; + num350 *= num351; + bool flag30 = true; + if (npc.direction > 0) + { + if (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) < npc.position.X + (float)(npc.width / 2)) + { + flag30 = false; + } + } + else if (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) > npc.position.X + (float)(npc.width / 2)) + { + flag30 = false; + } + if (Main.netMode != 1) + { + int num352 = (enraged ? 7 : 4); + npc.localAI[1] = 0f; + npc.localAI[3] += (enraged ? 4f : 2f); + if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.75) + { + npc.localAI[3] += 1f; + num352++; + } + if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.5) + { + npc.localAI[3] += 1f; + num352++; + } + if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.25) + { + npc.localAI[3] += 1f; + num352 += 2; + } + if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + npc.localAI[3] += 2f; + num352 += 3; + } + if (newAI[0] == 0f) + { + if (npc.localAI[3] > 600f) + { + newAI[0] = 1f; + npc.localAI[3] = 0f; + return; + } + } + else if (npc.localAI[3] > 45f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + npc.localAI[3] = 0f; + newAI[0] += 1f; + if (newAI[0] >= (float)num352) + { + newAI[0] = 0f; + } + if (flag30) + { + float num353 = (enraged ? 14f : 10f); + int num354 = 18; + int num355 = 83; + if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.5) + { + num354++; + num353 += 1f; + } + if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.25) + { + num354++; + num353 += 1f; + } + if ((double)Main.npc[Main.wof].life < (double)Main.npc[Main.wof].lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num354 += 2; + num353 += 2f; + } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + num353 += 1f; + } + vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num349 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector34.X; + num350 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector34.Y; + num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num351 = num353 / num351; + num349 *= num351; + num350 *= num351; + vector34.X += num349; + vector34.Y += num350; + Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350, num355, num354, 0f, Main.myPlayer, 0f, 0f); + return; + } + } + } + } } - #endregion - #region Skeletron - else if (npc.type == NPCID.SkeletronHand) + #endregion + #region Skeletron + else if (npc.type == NPCID.SkeletronHand) { if (npc.ai[2] == 0f || npc.ai[2] == 3f) { if (Main.npc[(int)npc.ai[1]].ai[1] == 0f) { npc.ai[3] += (enraged ? 1.5f : 0.5f); - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - npc.ai[3] += 1f; - } - } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + npc.ai[3] += 1f; + } + } } } - else if (npc.type == NPCID.SkeletronHead) + else if (npc.type == NPCID.SkeletronHead) { if (npc.ai[1] == 1f) { if (Main.netMode != 1) - { + { npc.localAI[1] += (enraged ? 6f : 3f); if ((double)npc.life <= (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) { @@ -6904,11 +7046,11 @@ namespace CalamityMod.NPCs { npc.localAI[1] += 3f; } - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - npc.localAI[1] += 3f; - } - if (npc.localAI[1] >= 500f) + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + npc.localAI[1] += 3f; + } + if (npc.localAI[1] >= 500f) { npc.localAI[1] = 0f; Vector2 vector16 = npc.Center; @@ -6940,7 +7082,7 @@ namespace CalamityMod.NPCs float num174 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector20.Y; float num175 = (float)Math.Sqrt((double)(num173 * num173 + num174 * num174)); float num176 = CalamityWorld.bossRushActive ? 10f : 5f; - if (enraged) { num176 += 3f; } + if (enraged) { num176 += 3f; } if (num175 > 150f) { num176 *= 1.05f; @@ -6986,66 +7128,66 @@ namespace CalamityMod.NPCs npc.velocity.Y = num174 * num175; } } - #endregion - #region QueenBee - else if (npc.type == NPCID.QueenBee) + #endregion + #region QueenBee + else if (npc.type == NPCID.QueenBee) { Vector2 vector74 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); if (npc.ai[0] == 1f) { npc.ai[1] += 1f; - } + } else if (npc.ai[0] == 3f) { - this.newAI[0] += 1f; + newAI[0] += 1f; bool flag39 = false; - if (CalamityWorld.death) - { - if (this.newAI[0] % 10f == 9f) - { - flag39 = true; - } - } - else if ((double)npc.life < (double)npc.lifeMax * 0.1) + if (CalamityWorld.death) { - if (this.newAI[0] % 20f == 19f) + if (newAI[0] % 10f == 9f) { flag39 = true; } - } - else if (npc.life < npc.lifeMax / 3) + } + else if ((double)npc.life < (double)npc.lifeMax * 0.1) { - if (this.newAI[0] % 35f == 34f) + if (newAI[0] % 20f == 19f) { flag39 = true; } - } - else if (npc.life < npc.lifeMax / 2) + } + else if (npc.life < npc.lifeMax / 3) { - if (this.newAI[0] % 50f == 49f) + if (newAI[0] % 35f == 34f) { flag39 = true; } - } - else if (this.newAI[0] % 55f == 54f) + } + else if (npc.life < npc.lifeMax / 2) + { + if (newAI[0] % 50f == 49f) + { + flag39 = true; + } + } + else if (newAI[0] % 55f == 54f) { flag39 = true; } - if (flag39 && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y && Collision.CanHit(vector74, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + if (flag39 && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y && Collision.CanHit(vector74, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) { Main.PlaySound(SoundID.Item17, npc.position); - if (Main.netMode != 1) + if (Main.netMode != 1) { float num602 = 13f; - if ((double)npc.life < (double)npc.lifeMax * 0.1) + if ((double)npc.life < (double)npc.lifeMax * 0.1) { num602 += 3f; } - if (CalamityWorld.death) - { - num602 += 2f; - } - float num603 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector74.X + (float)Main.rand.Next(-80, 81); + if (CalamityWorld.death) + { + num602 += 2f; + } + float num603 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector74.X + (float)Main.rand.Next(-80, 81); float num604 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector74.Y + (float)Main.rand.Next(-40, 41); float num605 = (float)Math.Sqrt((double)(num603 * num603 + num604 * num604)); num605 = num602 / num605; @@ -7059,78 +7201,78 @@ namespace CalamityMod.NPCs } } } - #endregion - #region BrainofCthulhu - else if (npc.type == NPCID.BrainofCthulhu) + #endregion + #region BrainofCthulhu + else if (npc.type == NPCID.BrainofCthulhu) { - if (CalamityWorld.death) - { - if (npc.ai[0] < 0f) - { - this.newAI[0] += 1f; - if (this.newAI[0] >= 480f) - { - this.newAI[0] = 0f; - if (Main.netMode != 1 && NPC.CountNPCS(NPCID.Creeper) < 15) - { - int creeper = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2) + npc.velocity.X), (int)(npc.position.Y + (float)(npc.height / 2) + npc.velocity.Y), 267, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[creeper].netUpdate = true; - } - npc.netUpdate = true; - } - } - } - else - { - this.newAI[0] += 1f; - if (this.newAI[0] >= 600f) - { - this.newAI[0] = 0f; - if (Main.netMode != 1 && NPC.CountNPCS(NPCID.Creeper) < 10) - { - int creeper = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2) + npc.velocity.X), (int)(npc.position.Y + (float)(npc.height / 2) + npc.velocity.Y), 267, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[creeper].netUpdate = true; - } - npc.netUpdate = true; - } - } - if (npc.ai[0] < 0f) + if (CalamityWorld.death) + { + if (npc.ai[0] < 0f) + { + newAI[0] += 1f; + if (newAI[0] >= 480f) + { + newAI[0] = 0f; + if (Main.netMode != 1 && NPC.CountNPCS(NPCID.Creeper) < 15) + { + int creeper = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2) + npc.velocity.X), (int)(npc.position.Y + (float)(npc.height / 2) + npc.velocity.Y), 267, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[creeper].netUpdate = true; + } + npc.netUpdate = true; + } + } + } + else + { + newAI[0] += 1f; + if (newAI[0] >= 600f) + { + newAI[0] = 0f; + if (Main.netMode != 1 && NPC.CountNPCS(NPCID.Creeper) < 10) + { + int creeper = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2) + npc.velocity.X), (int)(npc.position.Y + (float)(npc.height / 2) + npc.velocity.Y), 267, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[creeper].netUpdate = true; + } + npc.netUpdate = true; + } + } + if (npc.ai[0] < 0f) { npc.knockBackResist = (CalamityWorld.death ? 0.05f : 0.1f) * Main.expertKnockBack; npc.velocity.X *= 1.006f; npc.velocity.Y *= 1.006f; - if (CalamityWorld.death) - { - npc.velocity.X *= 1.003f; - npc.velocity.Y *= 1.003f; - } - } + if (CalamityWorld.death) + { + npc.velocity.X *= 1.003f; + npc.velocity.Y *= 1.003f; + } + } } - else if (npc.type == NPCID.Creeper) - { - if (npc.ai[0] != 0f) - { - Vector2 value = Main.player[npc.target].Center - npc.Center; - value.Normalize(); - value *= 9f; - npc.velocity = (npc.velocity * 99f + value) / 98f; //100 - } - } - #endregion - #region EaterofWorlds - else if (npc.type == NPCID.EaterofWorldsHead && !CalamityWorld.bossRushActive) + else if (npc.type == NPCID.Creeper) { - if (!Main.player[npc.target].dead) + if (npc.ai[0] != 0f) { - this.newAI[0] += 1f; - if (CalamityWorld.death) - { - this.newAI[0] += 2f; - } - } - if (this.newAI[0] >= 180f) + Vector2 value = Main.player[npc.target].Center - npc.Center; + value.Normalize(); + value *= 9f; + npc.velocity = (npc.velocity * 99f + value) / 98f; //100 + } + } + #endregion + #region EaterofWorlds + else if (npc.type == NPCID.EaterofWorldsHead && !CalamityWorld.bossRushActive) + { + if (!Main.player[npc.target].dead) { - this.newAI[0] = 0f; + newAI[0] += 1f; + if (CalamityWorld.death) + { + newAI[0] += 2f; + } + } + if (newAI[0] >= 180f) + { + newAI[0] = 0f; if (Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) { Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); @@ -7157,89 +7299,94 @@ namespace CalamityMod.NPCs } } } - #endregion - #region KingSlime - else if (npc.type == NPCID.KingSlime) + #endregion + #region KingSlime + else if (npc.type == NPCID.KingSlime) { bool move = false; if (npc.ai[1] == 5f) { move = true; npc.ai[0] += 3f; - if (CalamityWorld.death) - { - npc.ai[0] += 2f; - } + if (CalamityWorld.death) + { + npc.ai[0] += 2f; + } } else if (npc.ai[1] == 6f) { move = true; npc.ai[0] += 3f; - if (CalamityWorld.death) - { - npc.ai[0] += 2f; - } - } + if (CalamityWorld.death) + { + npc.ai[0] += 2f; + } + } if (npc.velocity.Y == 0f) { if (!move) { npc.ai[0] += 4f; - if (CalamityWorld.death) - { - npc.ai[0] += 4f; - } - } + if (CalamityWorld.death) + { + npc.ai[0] += 4f; + } + } } } - #endregion - } - #endregion - } - #endregion + #endregion + } + #endregion + } + #endregion - #region PostAI - public override void PostAI(NPC npc) - { - if (silvaStun && !CalamityWorld.bossRushActive) - { - npc.velocity.X = 0f; - npc.velocity.Y = 0f; - } - } - #endregion - - #region OnHitPlayer - public override void OnHitPlayer(NPC npc, Player target, int damage, bool crit) + #region PostAI + public override void PostAI(NPC npc) { - if (target.GetModPlayer(mod).snowman) - { - if (npc.type == NPCID.Demon || npc.type == NPCID.VoodooDemon || npc.type == NPCID.RedDevil) - { - target.AddBuff(mod.BuffType("PopoNoseless"), 36000); - } - } - if (npc.type == NPCID.GolemHead) - { - target.AddBuff(mod.BuffType("ArmorCrunch"), 300); - } - else if (npc.type == NPCID.GolemHeadFree) - { - target.AddBuff(mod.BuffType("ArmorCrunch"), 300); - } - else if (npc.type == NPCID.Golem) - { - target.AddBuff(mod.BuffType("ArmorCrunch"), 300); - } - else if (npc.type == NPCID.GolemFistRight) - { - target.AddBuff(mod.BuffType("ArmorCrunch"), 300); - } - else if (npc.type == NPCID.GolemFistLeft) - { - target.AddBuff(mod.BuffType("ArmorCrunch"), 300); - } - if (CalamityWorld.revenge) + if (pearlAura && !CalamityPlayer.areThereAnyDamnBosses) + { + npc.velocity.X *= 0.75f; + npc.velocity.Y *= 0.75f; + } + if (silvaStun && !CalamityWorld.bossRushActive) + { + npc.velocity.X = 0f; + npc.velocity.Y = 0f; + } + } + #endregion + + #region OnHitPlayer + public override void OnHitPlayer(NPC npc, Player target, int damage, bool crit) + { + if (target.GetModPlayer(mod).snowman) + { + if (npc.type == NPCID.Demon || npc.type == NPCID.VoodooDemon || npc.type == NPCID.RedDevil) + { + target.AddBuff(mod.BuffType("PopoNoseless"), 36000); + } + } + if (npc.type == NPCID.GolemHead) + { + target.AddBuff(mod.BuffType("ArmorCrunch"), 300); + } + else if (npc.type == NPCID.GolemHeadFree) + { + target.AddBuff(mod.BuffType("ArmorCrunch"), 300); + } + else if (npc.type == NPCID.Golem) + { + target.AddBuff(mod.BuffType("ArmorCrunch"), 300); + } + else if (npc.type == NPCID.GolemFistRight) + { + target.AddBuff(mod.BuffType("ArmorCrunch"), 300); + } + else if (npc.type == NPCID.GolemFistLeft) + { + target.AddBuff(mod.BuffType("ArmorCrunch"), 300); + } + if (CalamityWorld.revenge) { if (npc.type == NPCID.DemonEye) { @@ -7718,141 +7865,143 @@ namespace CalamityMod.NPCs } } } - #endregion + #endregion - #region ModifyHitByProjectile - public override void ModifyHitByProjectile(NPC npc, Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - if (npc.type == NPCID.TheDestroyerBody || npc.type == mod.NPCType("AquaticScourgeBody") || npc.type == mod.NPCType("AquaticScourgeBodyAlt")) - { - if (projectile.type == 239 || projectile.type == 245 || projectile.type == mod.ProjectileType("Shaderain") || projectile.aiStyle == 4 || - projectile.type == 522) - damage = (int)((double)damage * 0.65); - } - if (Main.player[projectile.owner].GetModPlayer(mod).eGauntlet) - { - if (projectile.melee && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && Main.rand.Next(15) == 0 && npc.type != 477 && - npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && npc.type != 344 && npc.type != 346 && npc.type != 345 && - npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && npc.type != mod.NPCType("EidolonWyrmHead") && - npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid")) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - damage = npc.lifeMax * 5; - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).eTalisman) - { - if (projectile.magic && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && Main.rand.Next(15) == 0 && npc.type != 477 && - npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && npc.type != 344 && npc.type != 346 && npc.type != 345 && - npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && npc.type != mod.NPCType("EidolonWyrmHead") && - npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid")) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - damage = npc.lifeMax * 5; - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).nanotech) - { - if (CalamityMod.throwingProjectileList.Contains(projectile.type) && !projectile.melee && - npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && Main.rand.Next(15) == 0 && npc.type != 477 && - npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && npc.type != 344 && npc.type != 346 && npc.type != 345 && - npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && npc.type != mod.NPCType("EidolonWyrmHead") && - npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid")) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - damage = npc.lifeMax * 5; - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).eQuiver) - { - if (projectile.ranged && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && Main.rand.Next(15) == 0 && npc.type != 477 && - npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && npc.type != 344 && npc.type != 346 && npc.type != 345 && - npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && npc.type != mod.NPCType("EidolonWyrmHead") && - npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid")) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - damage = npc.lifeMax * 5; - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).statisBeltOfCurses) - { - if ((projectile.minion || CalamityMod.projectileMinionList.Contains(projectile.type)) && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && - Main.rand.Next(15) == 0 && npc.type != 477 && npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && - npc.type != 344 && npc.type != 346 && npc.type != 345 && npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && - npc.type != mod.NPCType("EidolonWyrmHead") && npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid")) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - damage = npc.lifeMax * 5; - } - } - } - #endregion + #region ModifyHitByProjectile + public override void ModifyHitByProjectile(NPC npc, Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (npc.type == NPCID.TheDestroyerBody || npc.type == mod.NPCType("AquaticScourgeBody") || npc.type == mod.NPCType("AquaticScourgeBodyAlt")) + { + if (projectile.type == ProjectileID.RainFriendly || projectile.type == ProjectileID.BloodRain || + projectile.type == mod.ProjectileType("Shaderain") || projectile.aiStyle == 4 || + projectile.type == ProjectileID.CrystalPulse2 || projectile.type == ProjectileID.HallowStar || + projectile.type == mod.ProjectileType("FossilShardThrown")) + damage = (int)((double)damage * 0.65); + } + if (Main.player[projectile.owner].GetModPlayer(mod).eGauntlet) + { + if (projectile.melee && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && Main.rand.Next(15) == 0 && npc.type != 477 && + npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && npc.type != 344 && npc.type != 346 && npc.type != 345 && + npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && npc.type != mod.NPCType("EidolonWyrmHead") && + npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid") && npc.type != NPCID.DD2Betsy) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + damage = npc.lifeMax * 5; + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).eTalisman) + { + if (projectile.magic && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && Main.rand.Next(15) == 0 && npc.type != 477 && + npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && npc.type != 344 && npc.type != 346 && npc.type != 345 && + npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && npc.type != mod.NPCType("EidolonWyrmHead") && + npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid") && npc.type != NPCID.DD2Betsy) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + damage = npc.lifeMax * 5; + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).nanotech) + { + if (projectile.GetGlobalProjectile(mod).rogue && + npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && Main.rand.Next(15) == 0 && npc.type != 477 && + npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && npc.type != 344 && npc.type != 346 && npc.type != 345 && + npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && npc.type != mod.NPCType("EidolonWyrmHead") && + npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid") && npc.type != NPCID.DD2Betsy) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + damage = npc.lifeMax * 5; + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).eQuiver) + { + if (projectile.ranged && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && Main.rand.Next(15) == 0 && npc.type != 477 && + npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && npc.type != 344 && npc.type != 346 && npc.type != 345 && + npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && npc.type != mod.NPCType("EidolonWyrmHead") && + npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid") && npc.type != NPCID.DD2Betsy) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + damage = npc.lifeMax * 5; + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).statisBeltOfCurses) + { + if ((projectile.minion || CalamityMod.projectileMinionList.Contains(projectile.type)) && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && + Main.rand.Next(15) == 0 && npc.type != 477 && npc.type != 327 && npc.type != 135 && npc.type != 136 && npc.type != 325 && + npc.type != 344 && npc.type != 346 && npc.type != 345 && npc.type != mod.NPCType("Reaper") && npc.type != mod.NPCType("Mauler") && + npc.type != mod.NPCType("EidolonWyrmHead") && npc.type != mod.NPCType("EidolonWyrmHeadHuge") && npc.type != mod.NPCType("ColossalSquid") && npc.type != NPCID.DD2Betsy) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + damage = npc.lifeMax * 5; + } + } + } + #endregion - #region OnHitByItem - public override void OnHitByItem(NPC npc, Player player, Item item, int damage, float knockback, bool crit) + #region OnHitByItem + public override void OnHitByItem(NPC npc, Player player, Item item, int damage, float knockback, bool crit) { if (player.GetModPlayer(mod).bloodflareSet) - { - if (!npc.SpawnedFromStatue && npc.damage > 0 && ((double)npc.life < (double)npc.lifeMax * 0.5) && - player.GetModPlayer(mod).bloodflareHeartTimer <= 0) - { - player.GetModPlayer(mod).bloodflareHeartTimer = 180; - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 58, 1, false, 0, false, false); - } - else if (!npc.SpawnedFromStatue && npc.damage > 0 && ((double)npc.life > (double)npc.lifeMax * 0.5) && - player.GetModPlayer(mod).bloodflareManaTimer <= 0) - { - player.GetModPlayer(mod).bloodflareManaTimer = 180; - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 184, 1, false, 0, false, false); - } - } - } - #endregion - - #region OnHitByProjectile - public override void OnHitByProjectile(NPC npc, Projectile projectile, int damage, float knockback, bool crit) - { - if (Main.player[projectile.owner].GetModPlayer(mod).sGenerator) - { - if (projectile.minion && npc.damage > 0) - { - switch (Main.rand.Next(3)) - { - case 0: Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorAtkBuff"), 120); break; - case 1: Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorRegenBuff"), 120); break; - case 2: Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorDefBuff"), 120); break; - } - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).bloodflareSet) { if (!npc.SpawnedFromStatue && npc.damage > 0 && ((double)npc.life < (double)npc.lifeMax * 0.5) && - Main.player[projectile.owner].GetModPlayer(mod).bloodflareHeartTimer <= 0) + player.GetModPlayer(mod).bloodflareHeartTimer <= 0) { - Main.player[projectile.owner].GetModPlayer(mod).bloodflareHeartTimer = 180; - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 58, 1, false, 0, false, false); + player.GetModPlayer(mod).bloodflareHeartTimer = 180; + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 58, 1, false, 0, false, false); } else if (!npc.SpawnedFromStatue && npc.damage > 0 && ((double)npc.life > (double)npc.lifeMax * 0.5) && - Main.player[projectile.owner].GetModPlayer(mod).bloodflareManaTimer <= 0) + player.GetModPlayer(mod).bloodflareManaTimer <= 0) { - Main.player[projectile.owner].GetModPlayer(mod).bloodflareManaTimer = 180; - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 184, 1, false, 0, false, false); + player.GetModPlayer(mod).bloodflareManaTimer = 180; + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 184, 1, false, 0, false, false); } } } - #endregion + #endregion - #region CheckDead - public override bool CheckDead(NPC npc) + #region OnHitByProjectile + public override void OnHitByProjectile(NPC npc, Projectile projectile, int damage, float knockback, bool crit) { - if (npc.lifeMax > 1000 && npc.type != 288 && - npc.type != mod.NPCType("PhantomSpirit") && - npc.type != mod.NPCType("PhantomSpiritS") && - npc.type != mod.NPCType("PhantomSpiritM") && - npc.type != mod.NPCType("PhantomSpiritL") && - npc.value > 0f && npc.HasPlayerTarget && - NPC.downedMoonlord && - Main.player[npc.target].ZoneDungeon) + if (Main.player[projectile.owner].GetModPlayer(mod).sGenerator) + { + if (projectile.minion && npc.damage > 0) + { + switch (Main.rand.Next(3)) + { + case 0: Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorAtkBuff"), 120); break; + case 1: Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorRegenBuff"), 120); break; + case 2: Main.player[projectile.owner].AddBuff(mod.BuffType("SpiritGeneratorDefBuff"), 120); break; + } + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).bloodflareSet) + { + if (!npc.SpawnedFromStatue && npc.damage > 0 && ((double)npc.life < (double)npc.lifeMax * 0.5) && + Main.player[projectile.owner].GetModPlayer(mod).bloodflareHeartTimer <= 0) + { + Main.player[projectile.owner].GetModPlayer(mod).bloodflareHeartTimer = 180; + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 58, 1, false, 0, false, false); + } + else if (!npc.SpawnedFromStatue && npc.damage > 0 && ((double)npc.life > (double)npc.lifeMax * 0.5) && + Main.player[projectile.owner].GetModPlayer(mod).bloodflareManaTimer <= 0) + { + Main.player[projectile.owner].GetModPlayer(mod).bloodflareManaTimer = 180; + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 184, 1, false, 0, false, false); + } + } + } + #endregion + + #region CheckDead + public override bool CheckDead(NPC npc) + { + if (npc.lifeMax > 1000 && npc.type != 288 && + npc.type != mod.NPCType("PhantomSpirit") && + npc.type != mod.NPCType("PhantomSpiritS") && + npc.type != mod.NPCType("PhantomSpiritM") && + npc.type != mod.NPCType("PhantomSpiritL") && + npc.value > 0f && npc.HasPlayerTarget && + NPC.downedMoonlord && + Main.player[npc.target].ZoneDungeon) { int maxValue = 6; if (Main.expertMode) @@ -7861,1595 +8010,1612 @@ namespace CalamityMod.NPCs } if (Main.rand.Next(maxValue) == 0 && Main.wallDungeon[(int)Main.tile[(int)npc.Center.X / 16, (int)npc.Center.Y / 16].wall]) { - int randomType = Main.rand.Next(4); - if (randomType == 0) - { - randomType = mod.NPCType("PhantomSpirit"); - } - else if (randomType == 1) - { - randomType = mod.NPCType("PhantomSpiritS"); - } - else if (randomType == 2) - { - randomType = mod.NPCType("PhantomSpiritM"); - } - else - { - randomType = mod.NPCType("PhantomSpiritL"); - } + int randomType = Main.rand.Next(4); + if (randomType == 0) + { + randomType = mod.NPCType("PhantomSpirit"); + } + else if (randomType == 1) + { + randomType = mod.NPCType("PhantomSpiritS"); + } + else if (randomType == 2) + { + randomType = mod.NPCType("PhantomSpiritM"); + } + else + { + randomType = mod.NPCType("PhantomSpiritL"); + } NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, randomType, 0, 0f, 0f, 0f, 0f, 255); } } return true; } - #endregion + #endregion - #region PreNPCLoot - public override bool PreNPCLoot(NPC npc) - { - #region BossRush - if (CalamityWorld.bossRushActive) - { - if (npc.type == mod.NPCType("ProfanedGuardianBoss")) - { - CalamityWorld.bossRushStage = 7; - DespawnProj(); - } - else if (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) - { - if (npc.boss) - { - CalamityWorld.bossRushStage = 8; - DespawnProj(); - } - } - else if (npc.type == mod.NPCType("Astrageldon")) - { - CalamityWorld.bossRushStage = 9; - DespawnProj(); - } - else if (npc.type == mod.NPCType("Bumblefuck")) - { - CalamityWorld.bossRushStage = 12; - DespawnProj(); - } - else if (npc.type == mod.NPCType("HiveMindP2")) - { - CalamityWorld.bossRushStage = 14; - DespawnProj(); - } - else if (npc.type == mod.NPCType("StormWeaverHeadNaked")) - { - CalamityWorld.bossRushStage = 16; - DespawnProj(); - } - else if (npc.type == mod.NPCType("AquaticScourgeHead")) - { - CalamityWorld.bossRushStage = 17; - DespawnProj(); - } - else if (npc.type == mod.NPCType("DesertScourgeHead")) - { - CalamityWorld.bossRushStage = 18; - DespawnProj(); - } - else if (npc.type == mod.NPCType("CrabulonIdle")) - { - CalamityWorld.bossRushStage = 20; - DespawnProj(); - } - else if (npc.type == mod.NPCType("CeaselessVoid")) - { - CalamityWorld.bossRushStage = 22; - DespawnProj(); - } - else if (npc.type == mod.NPCType("PerforatorHive")) - { - CalamityWorld.bossRushStage = 23; - DespawnProj(); - } - else if (npc.type == mod.NPCType("Cryogen")) - { - CalamityWorld.bossRushStage = 24; - DespawnProj(); - } - else if (npc.type == mod.NPCType("BrimstoneElemental")) - { - CalamityWorld.bossRushStage = 25; - DespawnProj(); - } - else if (npc.type == mod.NPCType("CosmicWraith")) - { - CalamityWorld.bossRushStage = 26; - DespawnProj(); - string key = "Mods.CalamityMod.BossRushTierThreeEndText"; - Color messageColor = Color.LightCoral; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - else if (npc.type == mod.NPCType("ScavengerBody")) - { - CalamityWorld.bossRushStage = 27; - DespawnProj(); - } - else if (npc.type == mod.NPCType("AstrumDeusHeadSpectral")) - { - CalamityWorld.bossRushStage = 30; - DespawnProj(); - } - else if (npc.type == mod.NPCType("Polterghast")) - { - CalamityWorld.bossRushStage = 31; - DespawnProj(); - } - else if (npc.type == mod.NPCType("PlaguebringerGoliath")) - { - CalamityWorld.bossRushStage = 32; - DespawnProj(); - } - else if (npc.type == mod.NPCType("CalamitasRun3")) - { - CalamityWorld.bossRushStage = 33; - DespawnProj(); - string key = "Mods.CalamityMod.BossRushTierFourEndText"; - Color messageColor = Color.LightCoral; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - else if (npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("Leviathan")) - { - int bossType = (npc.type == mod.NPCType("Siren")) ? mod.NPCType("Leviathan") : mod.NPCType("Siren"); - if (!NPC.AnyNPCs(bossType)) - { - CalamityWorld.bossRushStage = 34; - DespawnProj(); - } - } - else if (npc.type == mod.NPCType("SlimeGodCore") || npc.type == mod.NPCType("SlimeGodSplit") || npc.type == mod.NPCType("SlimeGodRunSplit")) - { - if (npc.type == mod.NPCType("SlimeGodCore") && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) - && !NPC.AnyNPCs(mod.NPCType("SlimeGod")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) - { - CalamityWorld.bossRushStage = 35; - DespawnProj(); - } - else if (npc.type == mod.NPCType("SlimeGodSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) && - NPC.CountNPCS(mod.NPCType("SlimeGodSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) - { - CalamityWorld.bossRushStage = 35; - DespawnProj(); - } - else if (npc.type == mod.NPCType("SlimeGodRunSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && - NPC.CountNPCS(mod.NPCType("SlimeGodRunSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGod"))) - { - CalamityWorld.bossRushStage = 35; - DespawnProj(); - } - } - else if (npc.type == mod.NPCType("Providence")) - { - CalamityWorld.bossRushStage = 36; - DespawnProj(); - } - else if (npc.type == mod.NPCType("SupremeCalamitas")) - { - CalamityWorld.bossRushStage = 37; - DespawnProj(); - } - else if (npc.type == mod.NPCType("Yharon")) - { - CalamityWorld.bossRushStage = 38; - DespawnProj(); - } - else if (npc.type == mod.NPCType("DevourerofGodsHeadS")) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("Rock"), 1, true); - CalamityWorld.bossRushStage = 0; - DespawnProj(); - CalamityWorld.bossRushActive = false; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.BossRushStage); - netMessage.Write(CalamityWorld.bossRushStage); - netMessage.Send(); - } - string key = "Mods.CalamityMod.BossRushTierFiveEndText"; - Color messageColor = Color.LightCoral; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - return false; - } - switch (npc.type) - { - case NPCID.QueenBee: - CalamityWorld.bossRushStage = 1; - DespawnProj(); - break; - case NPCID.BrainofCthulhu: - CalamityWorld.bossRushStage = 2; - DespawnProj(); - break; - case NPCID.KingSlime: - CalamityWorld.bossRushStage = 3; - DespawnProj(); - break; - case NPCID.EyeofCthulhu: - CalamityWorld.bossRushStage = 4; - DespawnProj(); - break; - case NPCID.SkeletronPrime: - CalamityWorld.bossRushStage = 5; - DespawnProj(); - break; - case NPCID.Golem: - CalamityWorld.bossRushStage = 6; - DespawnProj(); - break; - case NPCID.TheDestroyer: - CalamityWorld.bossRushStage = 10; - DespawnProj(); - string key = "Mods.CalamityMod.BossRushTierOneEndText"; - Color messageColor = Color.LightCoral; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - break; - case NPCID.Spazmatism: - CalamityWorld.bossRushStage = 11; - DespawnProj(); - break; - case NPCID.Retinazer: - CalamityWorld.bossRushStage = 11; - DespawnProj(); - break; - case NPCID.WallofFlesh: - CalamityWorld.bossRushStage = 13; - DespawnProj(); - break; - case NPCID.SkeletronHead: - CalamityWorld.bossRushStage = 15; - DespawnProj(); - break; - case NPCID.CultistBoss: - CalamityWorld.bossRushStage = 19; - DespawnProj(); - string key2 = "Mods.CalamityMod.BossRushTierTwoEndText"; - Color messageColor2 = Color.LightCoral; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key2), messageColor2); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); - } - break; - case NPCID.Plantera: - CalamityWorld.bossRushStage = 21; - DespawnProj(); - break; - case NPCID.DukeFishron: - CalamityWorld.bossRushStage = 28; - DespawnProj(); - break; - case NPCID.MoonLordCore: - CalamityWorld.bossRushStage = 29; - DespawnProj(); - break; - default: - break; - } - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.BossRushStage); - netMessage.Write(CalamityWorld.bossRushStage); - netMessage.Send(); - } - return false; - } - #endregion - int x = Main.maxTilesX; - int y = Main.maxTilesY; - int genLimit = x / 2; - int abyssChasmSteps = y / 4; - int abyssChasmY = (y - abyssChasmSteps) + 100; - int abyssChasmX = (CalamityWorld.abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); - bool abyssPosX = false; - bool abyssPosY = ((double)(npc.position.Y / 16f) <= abyssChasmY); - if (CalamityWorld.abyssSide) - { - if ((double)(npc.position.X / 16f) < abyssChasmX + 80) - { - abyssPosX = true; - } - } - else - { - if ((double)(npc.position.X / 16f) > abyssChasmX - 80) - { - abyssPosX = true; - } - } - bool hurtByAbyss = (npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && - ((((double)(npc.position.Y / 16f) > (Main.rockLayer - (double)Main.maxTilesY * 0.05)) && - abyssPosY && abyssPosX) || CalamityWorld.abyssTiles > 200) && - !npc.buffImmune[mod.BuffType("CrushDepth")]); - if (hurtByAbyss) - { - return false; - } - if (CalamityWorld.revenge) - { - if (npc.type == NPCID.Probe) - { - return false; - } - } - if (!NPC.downedMechBossAny && (npc.type == NPCID.Spazmatism || npc.type == NPCID.TheDestroyer || npc.type == NPCID.SkeletronPrime)) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge20")); - } - if (!NPC.downedSlimeKing && npc.type == NPCID.KingSlime) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); - } - else if (!NPC.downedBoss1 && npc.type == NPCID.EyeofCthulhu) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge3")); - } - else if (!NPC.downedQueenBee && npc.type == NPCID.QueenBee) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge16")); - } - else if (!NPC.downedMechBoss1 && npc.type == NPCID.TheDestroyer) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge21")); - } - else if (!NPC.downedMechBoss2 && npc.type == NPCID.Spazmatism) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge22")); - } - else if (!NPC.downedMechBoss3 && npc.type == NPCID.SkeletronPrime) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge23")); - } - else if (!NPC.downedPlantBoss && npc.type == NPCID.Plantera) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge25")); - } - else if (!NPC.downedFishron && npc.type == NPCID.DukeFishron) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge2")); - } - else if (npc.type == NPCID.CultistBoss) - { - if (!NPC.downedAncientCultist) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge4")); - } - if (Main.bloodMoon) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge34")); - } - } - return true; - } - #endregion - - #region NPCLoot - public override void NPCLoot(NPC npc) + #region PreNPCLoot + public override bool PreNPCLoot(NPC npc) { - if (DraedonMayhem) - { - if (!CalamityPlayer.areThereAnyDamnBosses) - { - DraedonMayhem = false; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - } - #region DefiledLoot - if (CalamityWorld.defiled) - { - if (npc.type == NPCID.AnglerFish || npc.type == NPCID.Werewolf) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AdhesiveBandage); - } - if (npc.type == NPCID.Werewolf) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MoonCharm); - } - } - } - else if (npc.type == NPCID.DesertBeast) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AncientHorn); - } - } - else if (npc.type == NPCID.ArmoredSkeleton) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BeamSword); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ArmorPolish); - } - } - else if (npc.type == NPCID.Clown) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Bananarang); - } - } - else if (npc.type == NPCID.Hornet || npc.type == NPCID.MossHornet || npc.type == NPCID.ToxicSludge) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Bezoar); - } - if (npc.type == NPCID.MossHornet) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TatteredBeeWing); - } - } - } - else if (npc.type == NPCID.EyeofCthulhu) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Binoculars); - } - } - else if (npc.type == NPCID.DemonEye || npc.type == NPCID.WanderingEye) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlackLens); - } - } - else if (npc.type == NPCID.CorruptSlime || npc.type == NPCID.DarkMummy) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Blindfold); - } - } - else if (npc.type >= 269 && npc.type <= 280) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Keybrand); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BoneFeather); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MagnetSphere); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.WispinaBottle); - } - } - else if (npc.type == NPCID.UndeadMiner) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BonePickaxe); - } - } - else if (npc.type == NPCID.Skeleton) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BoneSword); - } - } - else if (npc.type == NPCID.ScutlixRider) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BrainScrambler); - } - } - else if (npc.type == NPCID.Vampire) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BrokenBatWing); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MoonStone); - } - } - else if (npc.type == NPCID.CaveBat) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ChainKnife); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DepthMeter); - } - } - else if (npc.type == NPCID.DarkCaster || npc.type == NPCID.AngryBones) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ClothierVoodooDoll); - } - } - else if (npc.type == NPCID.PirateCaptain) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CoinGun); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DiscountCard); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Cutlass); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.LuckyCoin); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.PirateStaff); - } - } - else if (npc.type == NPCID.Reaper) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DeathSickle); - } - } - else if (npc.type == NPCID.Demon) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DemonScythe); - } - } - else if (npc.type == NPCID.DesertDjinn) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DjinnLamp); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DjinnsCurse); - } - } - else if (npc.type == NPCID.Shark) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DivingHelmet); - } - } - else if (npc.type == NPCID.Pixie || npc.type == NPCID.Wraith || npc.type == NPCID.Mummy) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FastClock); - } - } - else if (npc.type == NPCID.RedDevil) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FireFeather); - } - } - else if (npc.type == NPCID.IceElemental || npc.type == NPCID.IcyMerman || npc.type == NPCID.ArmoredViking || npc.type == NPCID.IceTortoise) - { - if (npc.type == NPCID.IceElemental || npc.type == NPCID.IcyMerman) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FrostStaff); - } - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.IceSickle); - } - if (npc.type == NPCID.IceTortoise) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FrozenTurtleShell); - } - } - } - else if (npc.type == NPCID.Harpy && Main.hardMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GiantHarpyFeather); - } - } - else if (npc.type == mod.NPCType("SunBat")) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HelFire); - } - } - else if (npc.type == mod.NPCType("Cryon")) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Amarok); - } - } - else if (npc.type == NPCID.QueenBee) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HoneyedGoggles); - } - } - else if (npc.type == NPCID.Piranha) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Hook); - } - } - else if (npc.type == NPCID.DiabolistRed || npc.type == NPCID.DiabolistWhite) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.InfernoFork); - } - } - else if (npc.type == NPCID.PinkJellyfish) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.JellyfishNecklace); - } - } - else if (npc.type == NPCID.Paladin) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Kraken); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.PaladinsHammer); - } - } - else if (npc.type == NPCID.SkeletonArcher) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MagicQuiver); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Marrow); - } - } - else if (npc.type == NPCID.Lavabat) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MagmaStone); - } - } - else if (npc.type == NPCID.WalkingAntlion) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AntlionClaw); - } - } - else if (npc.type == NPCID.DarkMummy || npc.type == NPCID.GreenJellyfish) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Megaphone); - } - } - else if (npc.type == NPCID.CursedSkull) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Nazar); - } - } - else if (npc.type == NPCID.FireImp) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ObsidianRose); - } - } - else if (npc.type == NPCID.BlackRecluse || npc.type == NPCID.BlackRecluseWall) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.PoisonStaff); - } - } - else if (npc.type == NPCID.SkeletonSniper) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.RifleScope); - } - } - else if (npc.type == NPCID.ChaosElemental) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.RodofDiscord); - } - } - else if (npc.type == NPCID.Necromancer || npc.type == NPCID.NecromancerArmored) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ShadowbeamStaff); - } - } - else if (npc.type == NPCID.SnowFlinx) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SnowballLauncher); - } - } - else if (npc.type == NPCID.RaggedCaster) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SpectreStaff); - } - } - else if (npc.type == NPCID.Plantera) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TheAxe); - } - } - else if (npc.type == NPCID.GiantBat) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TrifoldMap); - } - } - else if (npc.type == NPCID.AngryTrapper) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Uzi); - } - } - else if (npc.type == NPCID.FloatyGross || npc.type == NPCID.Corruptor) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Vitamins); - } - } - else if (NPC.downedMechBossAny && npc.type == NPCID.GiantTortoise) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Yelets); - } - } - } - #endregion - #region ArmageddonLoot - if (CalamityWorld.armageddon) - { - if (npc.type == NPCID.Golem) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.DukeFishron) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.DD2Betsy) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.EyeofCthulhu) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.BrainofCthulhu) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) - { - if (npc.boss) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - } - else if (npc.type == NPCID.QueenBee) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.SkeletronHead) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.WallofFlesh) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.MoonLordCore) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.KingSlime) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.Retinazer || npc.type == NPCID.Spazmatism) - { - int num64 = NPCID.Retinazer; - if (npc.type == NPCID.Retinazer) - { - num64 = NPCID.Spazmatism; - } - if (!NPC.AnyNPCs(num64)) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - } - else if (npc.type == NPCID.SkeletronPrime) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.TheDestroyer) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - else if (npc.type == NPCID.Plantera) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - } - #endregion - #region AdrenalineReset - if (npc.boss && CalamityWorld.revenge) - { - if (npc.type != mod.NPCType("HiveMind") && npc.type != mod.NPCType("Leviathan") && npc.type != mod.NPCType("Siren") && - npc.type != mod.NPCType("StormWeaverHead") && npc.type != mod.NPCType("StormWeaverBody") && - npc.type != mod.NPCType("StormWeaverTail") && npc.type != mod.NPCType("DevourerofGodsHead") && - npc.type != mod.NPCType("DevourerofGodsBody") && npc.type != mod.NPCType("DevourerofGodsTail")) - { - if (Main.netMode != 2) - { - if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) - { - Main.player[Main.myPlayer].GetModPlayer(mod).adrenaline = 0; - } - } - } - } - #endregion - #region StressDrops - bool revenge = CalamityWorld.revenge; - bool defiled = CalamityWorld.defiled; - if (revenge && npc.boss) + #region BossRush + if (CalamityWorld.bossRushActive) { - if (Main.rand.Next(20) == 0) + if (npc.type == mod.NPCType("ProfanedGuardianBoss")) { - switch (Main.rand.Next(3)) - { - case 0: npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("StressPills"), 1, true); break; - case 1: npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("Laudanum"), 1, true); break; - case 2: npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("HeartofDarkness"), 1, true); break; - } + CalamityWorld.bossRushStage = 7; + DespawnProj(); } - } - #endregion - #region SpawnPolterghast - if ((npc.type == mod.NPCType("PhantomSpirit") || npc.type == mod.NPCType("PhantomSpiritS") || npc.type == mod.NPCType("PhantomSpiritM") || - npc.type == mod.NPCType("PhantomSpiritL")) && !NPC.AnyNPCs(mod.NPCType("Polterghast")) && !CalamityWorld.downedPolterghast) + else if (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) + { + if (npc.boss) + { + CalamityWorld.bossRushStage = 8; + DespawnProj(); + } + } + else if (npc.type == mod.NPCType("Astrageldon")) + { + CalamityWorld.bossRushStage = 9; + DespawnProj(); + } + else if (npc.type == mod.NPCType("Bumblefuck")) + { + CalamityWorld.bossRushStage = 12; + DespawnProj(); + } + else if (npc.type == mod.NPCType("HiveMindP2")) + { + CalamityWorld.bossRushStage = 14; + DespawnProj(); + } + else if (npc.type == mod.NPCType("StormWeaverHeadNaked")) + { + CalamityWorld.bossRushStage = 16; + DespawnProj(); + } + else if (npc.type == mod.NPCType("AquaticScourgeHead")) + { + CalamityWorld.bossRushStage = 17; + DespawnProj(); + } + else if (npc.type == mod.NPCType("DesertScourgeHead")) + { + CalamityWorld.bossRushStage = 18; + DespawnProj(); + } + else if (npc.type == mod.NPCType("CrabulonIdle")) + { + CalamityWorld.bossRushStage = 20; + DespawnProj(); + } + else if (npc.type == mod.NPCType("CeaselessVoid")) + { + CalamityWorld.bossRushStage = 22; + DespawnProj(); + } + else if (npc.type == mod.NPCType("PerforatorHive")) + { + CalamityWorld.bossRushStage = 23; + DespawnProj(); + } + else if (npc.type == mod.NPCType("Cryogen")) + { + CalamityWorld.bossRushStage = 24; + DespawnProj(); + } + else if (npc.type == mod.NPCType("BrimstoneElemental")) + { + CalamityWorld.bossRushStage = 25; + DespawnProj(); + } + else if (npc.type == mod.NPCType("CosmicWraith")) + { + CalamityWorld.bossRushStage = 26; + DespawnProj(); + string key = "Mods.CalamityMod.BossRushTierThreeEndText"; + Color messageColor = Color.LightCoral; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + else if (npc.type == mod.NPCType("ScavengerBody")) + { + CalamityWorld.bossRushStage = 27; + DespawnProj(); + } + else if (npc.type == mod.NPCType("AstrumDeusHeadSpectral")) + { + CalamityWorld.bossRushStage = 30; + DespawnProj(); + } + else if (npc.type == mod.NPCType("Polterghast")) + { + CalamityWorld.bossRushStage = 31; + DespawnProj(); + } + else if (npc.type == mod.NPCType("PlaguebringerGoliath")) + { + CalamityWorld.bossRushStage = 32; + DespawnProj(); + } + else if (npc.type == mod.NPCType("CalamitasRun3")) + { + CalamityWorld.bossRushStage = 33; + DespawnProj(); + string key = "Mods.CalamityMod.BossRushTierFourEndText"; + Color messageColor = Color.LightCoral; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + else if (npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("Leviathan")) + { + int bossType = (npc.type == mod.NPCType("Siren")) ? mod.NPCType("Leviathan") : mod.NPCType("Siren"); + if (!NPC.AnyNPCs(bossType)) + { + CalamityWorld.bossRushStage = 34; + DespawnProj(); + } + } + else if (npc.type == mod.NPCType("SlimeGodCore") || npc.type == mod.NPCType("SlimeGodSplit") || npc.type == mod.NPCType("SlimeGodRunSplit")) + { + if (npc.type == mod.NPCType("SlimeGodCore") && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) + && !NPC.AnyNPCs(mod.NPCType("SlimeGod")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) + { + CalamityWorld.bossRushStage = 35; + DespawnProj(); + } + else if (npc.type == mod.NPCType("SlimeGodSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) && + NPC.CountNPCS(mod.NPCType("SlimeGodSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) + { + CalamityWorld.bossRushStage = 35; + DespawnProj(); + } + else if (npc.type == mod.NPCType("SlimeGodRunSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && + NPC.CountNPCS(mod.NPCType("SlimeGodRunSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGod"))) + { + CalamityWorld.bossRushStage = 35; + DespawnProj(); + } + } + else if (npc.type == mod.NPCType("Providence")) + { + CalamityWorld.bossRushStage = 36; + DespawnProj(); + } + else if (npc.type == mod.NPCType("SupremeCalamitas")) + { + CalamityWorld.bossRushStage = 37; + DespawnProj(); + } + else if (npc.type == mod.NPCType("Yharon")) + { + CalamityWorld.bossRushStage = 38; + DespawnProj(); + } + else if (npc.type == mod.NPCType("DevourerofGodsHeadS")) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("Rock"), 1, true); + CalamityWorld.bossRushStage = 0; + DespawnProj(); + CalamityWorld.bossRushActive = false; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.BossRushStage); + netMessage.Write(CalamityWorld.bossRushStage); + netMessage.Send(); + } + string key = "Mods.CalamityMod.BossRushTierFiveEndText"; + Color messageColor = Color.LightCoral; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + return false; + } + switch (npc.type) + { + case NPCID.QueenBee: + CalamityWorld.bossRushStage = 1; + DespawnProj(); + break; + case NPCID.BrainofCthulhu: + CalamityWorld.bossRushStage = 2; + DespawnProj(); + break; + case NPCID.KingSlime: + CalamityWorld.bossRushStage = 3; + DespawnProj(); + break; + case NPCID.EyeofCthulhu: + CalamityWorld.bossRushStage = 4; + DespawnProj(); + break; + case NPCID.SkeletronPrime: + CalamityWorld.bossRushStage = 5; + DespawnProj(); + break; + case NPCID.Golem: + CalamityWorld.bossRushStage = 6; + DespawnProj(); + break; + case NPCID.TheDestroyer: + CalamityWorld.bossRushStage = 10; + DespawnProj(); + string key = "Mods.CalamityMod.BossRushTierOneEndText"; + Color messageColor = Color.LightCoral; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + break; + case NPCID.Spazmatism: + CalamityWorld.bossRushStage = 11; + DespawnProj(); + break; + case NPCID.Retinazer: + CalamityWorld.bossRushStage = 11; + DespawnProj(); + break; + case NPCID.WallofFlesh: + CalamityWorld.bossRushStage = 13; + DespawnProj(); + break; + case NPCID.SkeletronHead: + CalamityWorld.bossRushStage = 15; + DespawnProj(); + break; + case NPCID.CultistBoss: + CalamityWorld.bossRushStage = 19; + DespawnProj(); + string key2 = "Mods.CalamityMod.BossRushTierTwoEndText"; + Color messageColor2 = Color.LightCoral; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key2), messageColor2); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); + } + break; + case NPCID.Plantera: + CalamityWorld.bossRushStage = 21; + DespawnProj(); + break; + case NPCID.DukeFishron: + CalamityWorld.bossRushStage = 28; + DespawnProj(); + break; + case NPCID.MoonLordCore: + CalamityWorld.bossRushStage = 29; + DespawnProj(); + break; + default: + break; + } + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.BossRushStage); + netMessage.Write(CalamityWorld.bossRushStage); + netMessage.Send(); + } + return false; + } + #endregion + #region AbyssDropCancel + int x = Main.maxTilesX; + int y = Main.maxTilesY; + int genLimit = x / 2; + int abyssChasmY = y - 250; + int abyssChasmX = (CalamityWorld.abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); + bool abyssPosX = false; + bool abyssPosY = ((double)(npc.position.Y / 16f) <= abyssChasmY); + if (CalamityWorld.abyssSide) + { + if ((double)(npc.position.X / 16f) < abyssChasmX + 80) + { + abyssPosX = true; + } + } + else + { + if ((double)(npc.position.X / 16f) > abyssChasmX - 80) + { + abyssPosX = true; + } + } + bool hurtByAbyss = (npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && + ((((double)(npc.position.Y / 16f) > (Main.rockLayer - (double)Main.maxTilesY * 0.05)) && + abyssPosY && abyssPosX) || CalamityWorld.abyssTiles > 200) && + !npc.buffImmune[mod.BuffType("CrushDepth")]); + if (hurtByAbyss) + { + return false; + } + #endregion + if (CalamityWorld.revenge) + { + if (npc.type == NPCID.Probe) + { + return false; + } + } + if (!NPC.downedMechBossAny && (npc.type == NPCID.Spazmatism || npc.type == NPCID.TheDestroyer || npc.type == NPCID.SkeletronPrime)) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge20")); + } + if (!NPC.downedSlimeKing && npc.type == NPCID.KingSlime) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); + } + else if (!NPC.downedBoss1 && npc.type == NPCID.EyeofCthulhu) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge3")); + } + else if (!NPC.downedQueenBee && npc.type == NPCID.QueenBee) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge16")); + } + else if (!NPC.downedMechBoss1 && npc.type == NPCID.TheDestroyer) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge21")); + } + else if (!NPC.downedMechBoss2 && npc.type == NPCID.Spazmatism) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge22")); + } + else if (!NPC.downedMechBoss3 && npc.type == NPCID.SkeletronPrime) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge23")); + } + else if (!NPC.downedPlantBoss && npc.type == NPCID.Plantera) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge25")); + } + else if (!NPC.downedFishron && npc.type == NPCID.DukeFishron) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge2")); + } + else if (npc.type == NPCID.CultistBoss) + { + if (!NPC.downedAncientCultist) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge4")); + } + if (Main.bloodMoon) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge34")); + } + } + return true; + } + #endregion + + #region NPCLoot + public override void NPCLoot(NPC npc) + { + bool revenge = CalamityWorld.revenge; + if (DraedonMayhem) + { + if (!CalamityPlayer.areThereAnyDamnBosses) + { + DraedonMayhem = false; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + } + #region DefiledLoot + if (CalamityWorld.defiled) + { + if (npc.type == NPCID.AnglerFish || npc.type == NPCID.Werewolf) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AdhesiveBandage); + } + if (npc.type == NPCID.Werewolf) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MoonCharm); + } + } + } + else if (npc.type == NPCID.DesertBeast) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AncientHorn); + } + } + else if (npc.type == NPCID.ArmoredSkeleton) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BeamSword); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ArmorPolish); + } + } + else if (npc.type == NPCID.Clown) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Bananarang); + } + } + else if (npc.type == NPCID.Hornet || npc.type == NPCID.MossHornet || npc.type == NPCID.ToxicSludge) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Bezoar); + } + if (npc.type == NPCID.MossHornet) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TatteredBeeWing); + } + } + } + else if (npc.type == NPCID.EyeofCthulhu) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Binoculars); + } + } + else if (npc.type == NPCID.DemonEye || npc.type == NPCID.WanderingEye) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlackLens); + } + } + else if (npc.type == NPCID.CorruptSlime || npc.type == NPCID.DarkMummy) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Blindfold); + } + } + else if (npc.type >= 269 && npc.type <= 280) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Keybrand); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BoneFeather); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MagnetSphere); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.WispinaBottle); + } + } + else if (npc.type == NPCID.UndeadMiner) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BonePickaxe); + } + } + else if (npc.type == NPCID.Skeleton) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BoneSword); + } + } + else if (npc.type == NPCID.ScutlixRider) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BrainScrambler); + } + } + else if (npc.type == NPCID.Vampire) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BrokenBatWing); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MoonStone); + } + } + else if (npc.type == NPCID.CaveBat) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ChainKnife); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DepthMeter); + } + } + else if (npc.type == NPCID.DarkCaster || npc.type == NPCID.AngryBones) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ClothierVoodooDoll); + } + } + else if (npc.type == NPCID.PirateCaptain) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CoinGun); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DiscountCard); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Cutlass); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.LuckyCoin); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.PirateStaff); + } + } + else if (npc.type == NPCID.Reaper) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DeathSickle); + } + } + else if (npc.type == NPCID.Demon) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DemonScythe); + } + } + else if (npc.type == NPCID.DesertDjinn) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DjinnLamp); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DjinnsCurse); + } + } + else if (npc.type == NPCID.Shark) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DivingHelmet); + } + } + else if (npc.type == NPCID.Pixie || npc.type == NPCID.Wraith || npc.type == NPCID.Mummy) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FastClock); + } + } + else if (npc.type == NPCID.RedDevil) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FireFeather); + } + } + else if (npc.type == NPCID.IceElemental || npc.type == NPCID.IcyMerman || npc.type == NPCID.ArmoredViking || npc.type == NPCID.IceTortoise) + { + if (npc.type == NPCID.IceElemental || npc.type == NPCID.IcyMerman) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FrostStaff); + } + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.IceSickle); + } + if (npc.type == NPCID.IceTortoise) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FrozenTurtleShell); + } + } + } + else if (npc.type == NPCID.Harpy && Main.hardMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GiantHarpyFeather); + } + } + else if (npc.type == mod.NPCType("SunBat")) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HelFire); + } + } + else if (npc.type == mod.NPCType("Cryon")) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Amarok); + } + } + else if (npc.type == NPCID.QueenBee) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HoneyedGoggles); + } + } + else if (npc.type == NPCID.Piranha) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Hook); + } + } + else if (npc.type == NPCID.DiabolistRed || npc.type == NPCID.DiabolistWhite) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.InfernoFork); + } + } + else if (npc.type == NPCID.PinkJellyfish) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.JellyfishNecklace); + } + } + else if (npc.type == NPCID.Paladin) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Kraken); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.PaladinsHammer); + } + } + else if (npc.type == NPCID.SkeletonArcher) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MagicQuiver); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Marrow); + } + } + else if (npc.type == NPCID.Lavabat) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MagmaStone); + } + } + else if (npc.type == NPCID.WalkingAntlion) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AntlionClaw); + } + } + else if (npc.type == NPCID.DarkMummy || npc.type == NPCID.GreenJellyfish) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Megaphone); + } + } + else if (npc.type == NPCID.CursedSkull) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Nazar); + } + } + else if (npc.type == NPCID.FireImp) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ObsidianRose); + } + } + else if (npc.type == NPCID.BlackRecluse || npc.type == NPCID.BlackRecluseWall) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.PoisonStaff); + } + } + else if (npc.type == NPCID.SkeletonSniper) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.RifleScope); + } + } + else if (npc.type == NPCID.ChaosElemental) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.RodofDiscord); + } + } + else if (npc.type == NPCID.Necromancer || npc.type == NPCID.NecromancerArmored) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.ShadowbeamStaff); + } + } + else if (npc.type == NPCID.SnowFlinx) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SnowballLauncher); + } + } + else if (npc.type == NPCID.RaggedCaster) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SpectreStaff); + } + } + else if (npc.type == NPCID.Plantera) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TheAxe); + } + } + else if (npc.type == NPCID.GiantBat) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TrifoldMap); + } + } + else if (npc.type == NPCID.AngryTrapper) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Uzi); + } + } + else if (npc.type == NPCID.FloatyGross || npc.type == NPCID.Corruptor) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Vitamins); + } + } + else if (NPC.downedMechBossAny && npc.type == NPCID.GiantTortoise) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Yelets); + } + } + } + #endregion + #region ArmageddonLoot + if (CalamityWorld.armageddon) + { + int dropAmt = 5; + if (npc.type == NPCID.Golem) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.DukeFishron) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.DD2Betsy) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.EyeofCthulhu) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.BrainofCthulhu) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail) + { + if (npc.boss) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + } + else if (npc.type == NPCID.QueenBee) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.SkeletronHead) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.WallofFlesh) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.MoonLordCore) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.KingSlime) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.Retinazer || npc.type == NPCID.Spazmatism) + { + int num64 = NPCID.Retinazer; + if (npc.type == NPCID.Retinazer) + { + num64 = NPCID.Spazmatism; + } + if (!NPC.AnyNPCs(num64)) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + } + else if (npc.type == NPCID.SkeletronPrime) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.TheDestroyer) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + else if (npc.type == NPCID.Plantera) + { + for (int i = 0; i < dropAmt; i++) + { + npc.DropBossBags(); + } + } + } + #endregion + #region AdrenalineReset + if (npc.boss && CalamityWorld.revenge) + { + if (npc.type != mod.NPCType("HiveMind") && npc.type != mod.NPCType("Leviathan") && npc.type != mod.NPCType("Siren") && + npc.type != mod.NPCType("StormWeaverHead") && npc.type != mod.NPCType("StormWeaverBody") && + npc.type != mod.NPCType("StormWeaverTail") && npc.type != mod.NPCType("DevourerofGodsHead") && + npc.type != mod.NPCType("DevourerofGodsBody") && npc.type != mod.NPCType("DevourerofGodsTail")) + { + if (Main.netMode != 2) + { + if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) + { + Main.player[Main.myPlayer].GetModPlayer(mod).adrenaline = 0; + } + } + } + } + #endregion + #region SpawnPolterghast + if ((npc.type == mod.NPCType("PhantomSpirit") || npc.type == mod.NPCType("PhantomSpiritS") || npc.type == mod.NPCType("PhantomSpiritM") || + npc.type == mod.NPCType("PhantomSpiritL")) && !NPC.AnyNPCs(mod.NPCType("Polterghast")) && !CalamityWorld.downedPolterghast) { CalamityMod.ghostKillCount++; if (CalamityMod.ghostKillCount >= 30 && Main.netMode != 1) { - int lastPlayer = npc.lastInteraction; - if (!Main.player[lastPlayer].active || Main.player[lastPlayer].dead) - { - lastPlayer = npc.FindClosestPlayer(); - } - if (lastPlayer >= 0) - { - NPC.SpawnOnPlayer(lastPlayer, mod.NPCType("Polterghast")); - CalamityMod.ghostKillCount = 0; - } - } + int lastPlayer = npc.lastInteraction; + if (!Main.player[lastPlayer].active || Main.player[lastPlayer].dead) + { + lastPlayer = npc.FindClosestPlayer(); + } + if (lastPlayer >= 0) + { + NPC.SpawnOnPlayer(lastPlayer, mod.NPCType("Polterghast")); + CalamityMod.ghostKillCount = 0; + } + } } - #endregion - #region SpawnGSS - if ((NPC.downedPlantBoss || CalamityWorld.downedCalamitas) && npc.type == NPCID.SandShark && !NPC.AnyNPCs(mod.NPCType("GreatSandShark"))) - { - CalamityMod.sharkKillCount++; - if (CalamityMod.sharkKillCount >= 10 && Main.netMode != 1) - { - if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/MaulerRoar"), - (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y); - } - int lastPlayer = npc.lastInteraction; - if (!Main.player[lastPlayer].active || Main.player[lastPlayer].dead) - { - lastPlayer = npc.FindClosestPlayer(); - } - if (lastPlayer >= 0) - { - NPC.SpawnOnPlayer(lastPlayer, mod.NPCType("GreatSandShark")); - CalamityMod.sharkKillCount = -10; - } - } - } - #endregion - #region WormLootFromNearestSegment - if (npc.type == mod.NPCType("DesertScourgeHead")) - { - Vector2 center = Main.player[npc.target].Center; - float num2 = 1E+08f; - Vector2 position2 = npc.position; - for (int k = 0; k < 200; k++) - { - if (Main.npc[k].active && (Main.npc[k].type == mod.NPCType("DesertScourgeHead") || Main.npc[k].type == mod.NPCType("DesertScourgeBody") || Main.npc[k].type == mod.NPCType("DesertScourgeTail"))) - { - float num3 = Math.Abs(Main.npc[k].Center.X - center.X) + Math.Abs(Main.npc[k].Center.Y - center.Y); - if (num3 < num2) - { - num2 = num3; - position2 = Main.npc[k].position; - } - } - } - npc.position = position2; - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.LesserHealingPotion, Main.rand.Next(8, 15)); - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DesertScourgeTrophy")); - } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) - { - npc.DropBossBags(); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(7, 15)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Coral, Main.rand.Next(5, 10)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Seashell, Main.rand.Next(5, 10)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Starfish, Main.rand.Next(5, 10)); - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeaboundStaff")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Barinade")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StormSpray")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AquaticDischarge")); - } - if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DesertScourgeMask")); - } - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HighTestFishingLine); - } - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerTackleBag); - } - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TackleBox); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerEarring); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishermansGuide); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.WeatherRadio); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Sextant); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerHat); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerVest); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerPants); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(10) == 0) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("AeroStone"), 1, true); - } - if (NPC.downedBoss3) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GoldenBugNet); - } - } - } - if (!CalamityWorld.downedDesertScourge) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge")); - } - CalamityWorld.downedDesertScourge = true; - } - else if (npc.type == mod.NPCType("AquaticScourgeHead")) - { - Vector2 center = Main.player[npc.target].Center; - float num2 = 1E+08f; - Vector2 position2 = npc.position; - for (int k = 0; k < 200; k++) - { - if (Main.npc[k].active && - (Main.npc[k].type == mod.NPCType("AquaticScourgeHead") || - Main.npc[k].type == mod.NPCType("AquaticScourgeBody") || - Main.npc[k].type == mod.NPCType("AquaticScourgeBodyAlt") || - Main.npc[k].type == mod.NPCType("AquaticScourgeTail"))) - { - float num3 = Math.Abs(Main.npc[k].Center.X - center.X) + Math.Abs(Main.npc[k].Center.Y - center.Y); - if (num3 < num2) - { - num2 = num3; - position2 = Main.npc[k].position; - } - } - } - npc.position = position2; - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GreaterHealingPotion, Main.rand.Next(8, 15)); - if (Main.hardMode) - { - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) - { - npc.DropBossBags(); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(11, 21)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Coral, Main.rand.Next(5, 10)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Seashell, Main.rand.Next(5, 10)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Starfish, Main.rand.Next(5, 10)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SoulofSight, Main.rand.Next(20, 41)); - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DeepseaStaff")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Barinautical")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Downpour")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SubmarineShocker")); - } - if (Main.rand.Next(8) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HighTestFishingLine); - } - if (Main.rand.Next(8) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerTackleBag); - } - if (Main.rand.Next(8) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TackleBox); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerEarring); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishermansGuide); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.WeatherRadio); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Sextant); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerHat); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerVest); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerPants); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(5) == 0) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("AeroStone"), 1, true); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GoldenBugNet); - } - } - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(11, 21)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Coral, Main.rand.Next(5, 10)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Seashell, Main.rand.Next(5, 10)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Starfish, Main.rand.Next(5, 10)); - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HighTestFishingLine); - } - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerTackleBag); - } - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TackleBox); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerEarring); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishermansGuide); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.WeatherRadio); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Sextant); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerHat); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerVest); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerPants); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(2, 4)); - } - if (Main.rand.Next(10) == 0) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("AeroStone"), 1, true); - } - if (NPC.downedBoss3) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GoldenBugNet); - } - } - } - if (!CalamityWorld.downedAquaticScourge) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge27")); - } - CalamityWorld.downedAquaticScourge = true; - } - else if (npc.type == mod.NPCType("AstrumDeusHeadSpectral")) - { - string key = "Mods.CalamityMod.AstralBossText"; - Color messageColor = Color.Gold; - if (!CalamityWorld.downedStarGod) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge29")); - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - CalamityWorld.downedStarGod = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - Vector2 center = Main.player[npc.target].Center; - float num2 = 1E+08f; - Vector2 position2 = npc.position; - for (int k = 0; k < 200; k++) - { - if (Main.npc[k].active && (Main.npc[k].type == mod.NPCType("AstrumDeusHeadSpectral") || Main.npc[k].type == mod.NPCType("AstrumDeusBodySpectral") || Main.npc[k].type == mod.NPCType("AstrumDeusTailSpectral"))) - { - float num3 = Math.Abs(Main.npc[k].Center.X - center.X) + Math.Abs(Main.npc[k].Center.Y - center.Y); - if (num3 < num2) - { - num2 = num3; - position2 = Main.npc[k].position; - } - } - } - npc.position = position2; - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GreaterHealingPotion, Main.rand.Next(8, 15)); - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HallowedKey); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AstrumDeusTrophy")); - } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) - { - npc.DropBossBags(); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(50, 81)); - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Starfall")); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Nebulash")); - } - if (Main.rand.Next(7) == 0) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("AstrumDeusMask"), 1, true); - } - } - } - else if (npc.type == mod.NPCType("DevourerofGodsHead")) - { - CalamityWorld.DoGSecondStageCountdown = 21600; //6 minutes - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); - netMessage.Write(CalamityWorld.DoGSecondStageCountdown); - netMessage.Send(); - } - for (int playerIndex = 0; playerIndex < 255; playerIndex++) - { - if (Main.player[playerIndex].active) - { - Player player = Main.player[playerIndex]; - for (int l = 0; l < 22; l++) - { - int hasBuff = player.buffType[l]; - if (hasBuff == mod.BuffType("AdrenalineMode")) - { - player.DelBuff(l); - l = -1; - } - if (hasBuff == mod.BuffType("RageMode")) - { - player.DelBuff(l); - l = -1; - } - } - } - } - } - else if (npc.type == mod.NPCType("DevourerofGodsHeadS")) - { - string key = "Mods.CalamityMod.DoGBossText"; - Color messageColor = Color.Cyan; - string key2 = "Mods.CalamityMod.DoGBossText2"; - Color messageColor2 = Color.Orange; - if (!CalamityWorld.downedDoG) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 6); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 3); - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - Main.NewText(Language.GetTextValue(key2), messageColor2); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); - } - } - CalamityWorld.downedDoG = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - Vector2 center = Main.player[npc.target].Center; - float num2 = 1E+08f; - Vector2 position2 = npc.position; - for (int k = 0; k < 200; k++) - { - if (Main.npc[k].active && (Main.npc[k].type == mod.NPCType("DevourerofGodsHeadS") || Main.npc[k].type == mod.NPCType("DevourerofGodsBodyS") || Main.npc[k].type == mod.NPCType("DevourerofGodsTailS"))) - { - float num3 = Math.Abs(Main.npc[k].Center.X - center.X) + Math.Abs(Main.npc[k].Center.Y - center.Y); - if (num3 < num2) - { - num2 = num3; - position2 = Main.npc[k].position; - } - } - } - npc.position = position2; - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SupremeHealingPotion"), Main.rand.Next(8, 15)); - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DevourerofGodsTrophy")); - } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) - { - npc.DropBossBags(); - } - else - { - if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DevourerofGodsMask")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DeathhailStaff")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Excelsus")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheObliterator")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Eradicator")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EradicatorMelee")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Deathwind")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StaffoftheMechworm")); - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CosmiliteBar"), Main.rand.Next(25, 35)); - } - } - #endregion - #region ArmorSetLoot - if (Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).tarraSet) + #endregion + #region SpawnGSS + if ((NPC.downedPlantBoss || CalamityWorld.downedCalamitas) && npc.type == NPCID.SandShark && !NPC.AnyNPCs(mod.NPCType("GreatSandShark"))) { - if (!npc.SpawnedFromStatue && (npc.damage > 5 || npc.boss) && Main.rand.Next(5) == 0) + CalamityMod.sharkKillCount++; + if (CalamityMod.sharkKillCount >= 10 && Main.netMode != 1) + { + if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/MaulerRoar"), + (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y); + } + int lastPlayer = npc.lastInteraction; + if (!Main.player[lastPlayer].active || Main.player[lastPlayer].dead) + { + lastPlayer = npc.FindClosestPlayer(); + } + if (lastPlayer >= 0) + { + NPC.SpawnOnPlayer(lastPlayer, mod.NPCType("GreatSandShark")); + CalamityMod.sharkKillCount = -10; + } + } + } + #endregion + #region WormLootFromNearestSegment + if (npc.type == mod.NPCType("DesertScourgeHead")) + { + Vector2 center = Main.player[npc.target].Center; + float num2 = 1E+08f; + Vector2 position2 = npc.position; + for (int k = 0; k < 200; k++) + { + if (Main.npc[k].active && (Main.npc[k].type == mod.NPCType("DesertScourgeHead") || Main.npc[k].type == mod.NPCType("DesertScourgeBody") || Main.npc[k].type == mod.NPCType("DesertScourgeTail"))) + { + float num3 = Math.Abs(Main.npc[k].Center.X - center.X) + Math.Abs(Main.npc[k].Center.Y - center.Y); + if (num3 < num2) + { + num2 = num3; + position2 = Main.npc[k].position; + } + } + } + npc.position = position2; + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.LesserHealingPotion, Main.rand.Next(8, 15)); + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DesertScourgeTrophy")); + } + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + npc.DropBossBags(); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(7, 15)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Coral, Main.rand.Next(5, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Seashell, Main.rand.Next(5, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Starfish, Main.rand.Next(5, 10)); + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeaboundStaff")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Barinade")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StormSpray")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AquaticDischarge")); + } + if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DesertScourgeMask")); + } + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HighTestFishingLine); + } + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerTackleBag); + } + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TackleBox); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerEarring); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishermansGuide); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.WeatherRadio); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Sextant); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerHat); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerVest); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerPants); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(10) == 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("AeroStone"), 1, true); + } + if (NPC.downedBoss3) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GoldenBugNet); + } + } + } + if (!CalamityWorld.downedDesertScourge) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge")); + } + string key = "Mods.CalamityMod.OpenSunkenSea"; + Color messageColor = Color.Aquamarine; + if (!CalamityWorld.downedDesertScourge) + { + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + CalamityWorld.downedDesertScourge = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + else if (npc.type == mod.NPCType("AquaticScourgeHead")) + { + Vector2 center = Main.player[npc.target].Center; + float num2 = 1E+08f; + Vector2 position2 = npc.position; + for (int k = 0; k < 200; k++) + { + if (Main.npc[k].active && + (Main.npc[k].type == mod.NPCType("AquaticScourgeHead") || + Main.npc[k].type == mod.NPCType("AquaticScourgeBody") || + Main.npc[k].type == mod.NPCType("AquaticScourgeBodyAlt") || + Main.npc[k].type == mod.NPCType("AquaticScourgeTail"))) + { + float num3 = Math.Abs(Main.npc[k].Center.X - center.X) + Math.Abs(Main.npc[k].Center.Y - center.Y); + if (num3 < num2) + { + num2 = num3; + position2 = Main.npc[k].position; + } + } + } + npc.position = position2; + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GreaterHealingPotion, Main.rand.Next(8, 15)); + if (Main.hardMode) + { + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + npc.DropBossBags(); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(11, 21)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Coral, Main.rand.Next(5, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Seashell, Main.rand.Next(5, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Starfish, Main.rand.Next(5, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SoulofSight, Main.rand.Next(20, 41)); + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DeepseaStaff")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Barinautical")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Downpour")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SubmarineShocker")); + } + if (Main.rand.Next(8) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HighTestFishingLine); + } + if (Main.rand.Next(8) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerTackleBag); + } + if (Main.rand.Next(8) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TackleBox); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerEarring); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishermansGuide); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.WeatherRadio); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Sextant); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerHat); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerVest); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerPants); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(5) == 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("AeroStone"), 1, true); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GoldenBugNet); + } + } + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(11, 21)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Coral, Main.rand.Next(5, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Seashell, Main.rand.Next(5, 10)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Starfish, Main.rand.Next(5, 10)); + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HighTestFishingLine); + } + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerTackleBag); + } + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TackleBox); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerEarring); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishermansGuide); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.WeatherRadio); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Sextant); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerHat); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerVest); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.AnglerPants); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(2, 4)); + } + if (Main.rand.Next(10) == 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("AeroStone"), 1, true); + } + if (NPC.downedBoss3) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GoldenBugNet); + } + } + } + if (!CalamityWorld.downedAquaticScourge) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge27")); + } + CalamityWorld.downedAquaticScourge = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + else if (npc.type == mod.NPCType("AstrumDeusHeadSpectral")) + { + Vector2 center = Main.player[npc.target].Center; + float num2 = 1E+08f; + Vector2 position2 = npc.position; + for (int k = 0; k < 200; k++) + { + if (Main.npc[k].active && (Main.npc[k].type == mod.NPCType("AstrumDeusHeadSpectral") || Main.npc[k].type == mod.NPCType("AstrumDeusBodySpectral") || Main.npc[k].type == mod.NPCType("AstrumDeusTailSpectral"))) + { + float num3 = Math.Abs(Main.npc[k].Center.X - center.X) + Math.Abs(Main.npc[k].Center.Y - center.Y); + if (num3 < num2) + { + num2 = num3; + position2 = Main.npc[k].position; + } + } + } + npc.position = position2; + string key = "Mods.CalamityMod.AstralBossText"; + Color messageColor = Color.Gold; + if (!CalamityWorld.downedStarGod) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge29")); + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + CalamityWorld.downedStarGod = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GreaterHealingPotion, Main.rand.Next(8, 15)); + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AstrumDeusTrophy")); + } + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + npc.DropBossBags(); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Stardust"), Main.rand.Next(50, 81)); + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HallowedKey); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Starfall")); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Nebulash")); + } + if (Main.rand.Next(7) == 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("AstrumDeusMask"), 1, true); + } + } + } + else if (npc.type == mod.NPCType("DevourerofGodsHead")) + { + CalamityWorld.DoGSecondStageCountdown = 21600; //6 minutes + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); + netMessage.Write(CalamityWorld.DoGSecondStageCountdown); + netMessage.Send(); + } + for (int playerIndex = 0; playerIndex < 255; playerIndex++) + { + if (Main.player[playerIndex].active) + { + Player player = Main.player[playerIndex]; + for (int l = 0; l < 22; l++) + { + int hasBuff = player.buffType[l]; + if (hasBuff == mod.BuffType("AdrenalineMode")) + { + player.DelBuff(l); + l = -1; + } + if (hasBuff == mod.BuffType("RageMode")) + { + player.DelBuff(l); + l = -1; + } + } + } + } + } + else if (npc.type == mod.NPCType("DevourerofGodsHeadS")) + { + Vector2 center = Main.player[npc.target].Center; + float num2 = 1E+08f; + Vector2 position2 = npc.position; + for (int k = 0; k < 200; k++) + { + if (Main.npc[k].active && (Main.npc[k].type == mod.NPCType("DevourerofGodsHeadS") || Main.npc[k].type == mod.NPCType("DevourerofGodsBodyS") || Main.npc[k].type == mod.NPCType("DevourerofGodsTailS"))) + { + float num3 = Math.Abs(Main.npc[k].Center.X - center.X) + Math.Abs(Main.npc[k].Center.Y - center.Y); + if (num3 < num2) + { + num2 = num3; + position2 = Main.npc[k].position; + } + } + } + npc.position = position2; + string key = "Mods.CalamityMod.DoGBossText"; + Color messageColor = Color.Cyan; + string key2 = "Mods.CalamityMod.DoGBossText2"; + Color messageColor2 = Color.Orange; + if (!CalamityWorld.downedDoG) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 6); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells"), 2); + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + Main.NewText(Language.GetTextValue(key2), messageColor2); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); + } + } + CalamityWorld.downedDoG = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SupremeHealingPotion"), Main.rand.Next(8, 15)); + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DevourerofGodsTrophy")); + } + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + npc.DropBossBags(); + } + else + { + if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DevourerofGodsMask")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DeathhailStaff")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Excelsus")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheObliterator")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Eradicator")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EradicatorMelee")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Deathwind")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StaffoftheMechworm")); + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CosmiliteBar"), Main.rand.Next(25, 35)); + } + } + #endregion + #region ArmorSetLoot + if (Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).tarraSet) + { + if (!npc.SpawnedFromStatue && (npc.damage > 5 || npc.boss) && npc.lifeMax > 100 && Main.rand.Next(5) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, 58, 1, false, 0, false, false); } @@ -9461,927 +9627,810 @@ namespace CalamityMod.NPCs Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodOrb")); } } - if (!npc.SpawnedFromStatue && (npc.damage > 5 || npc.boss) && Main.rand.Next(12) == 0 && Main.bloodMoon && npc.HasPlayerTarget && (double)(npc.position.Y / 16f) < Main.worldSurface) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodOrb")); - } - #endregion - #region Thingyouwillneverget + if (!npc.SpawnedFromStatue && (npc.damage > 5 || npc.boss) && Main.rand.Next(12) == 0 && Main.bloodMoon && npc.HasPlayerTarget && (double)(npc.position.Y / 16f) < Main.worldSurface) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodOrb")); + } + #endregion + #region Thingyouwillneverget if (npc.type == mod.NPCType("Yharon") && Main.rand.Next(100) == 0 && npc.localAI[2] == 1f) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("YharimsCrystal")); } - #endregion - #region Legendaries - if (revenge) - { - if (npc.type == NPCID.Golem) - { - if (Main.rand.Next(100) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AegisBlade")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AegisBlade")); - } - } - } - else if (npc.type == NPCID.Plantera) - { - if (Main.rand.Next(100) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BlossomFlux")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BlossomFlux")); - } - } - } - else if (npc.type == NPCID.DukeFishron) - { - if (Main.rand.Next(100) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrinyBaron")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BrinyBaron")); - } - } - } - else if (npc.type == mod.NPCType("PlaguebringerGoliath")) - { - if (Main.rand.Next(100) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Malachite")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Malachite")); - } - } - } - else if (npc.type == NPCID.DD2Betsy) - { - if (Main.rand.Next(100) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Vesuvius")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Vesuvius")); - } - } - } - else if (npc.type == NPCID.TheDestroyer) - { - if (Main.rand.Next(100) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SHPC")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SHPC")); - } - } - } - else if (npc.type == mod.NPCType("DevourerofGodsHeadS")) - { - if (Main.rand.Next(100) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CosmicDischarge")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CosmicDischarge")); - } - } - } - else if (npc.type == mod.NPCType("Siren")) - { - if (Main.rand.Next(100) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheCommunity")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheCommunity")); - } - } - } - } - #endregion - #region Rares - if (npc.type == NPCID.PossessedArmor) - { - if (Main.expertMode) - { - if (Main.rand.Next(150) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PsychoticAmulet")); - } - } - else if (Main.rand.Next(200) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PsychoticAmulet")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PsychoticAmulet")); - } - } - } - else if (npc.type == NPCID.SeaSnail) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeaShell")); - } - } - else if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeaShell")); - } - } - else if (npc.type == NPCID.GiantTortoise) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantTortoiseShell")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantTortoiseShell")); - } - } - else if (npc.type == NPCID.GiantShelly || npc.type == NPCID.GiantShelly2) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantShell")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantShell")); - } - } - else if (npc.type == NPCID.AnomuraFungus) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FungalCarapace")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FungalCarapace")); - } - } - else if (npc.type == NPCID.Crawdad || npc.type == NPCID.Crawdad2) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrawCarapace")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrawCarapace")); - } - } - else if (npc.type == NPCID.GreenJellyfish) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VitalJelly")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VitalJelly")); - } - } - else if (npc.type == NPCID.PinkJellyfish) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LifeJelly")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LifeJelly")); - } - } - else if (npc.type == NPCID.BlueJellyfish) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManaJelly")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManaJelly")); - } - } - else if (npc.type == NPCID.MossHornet) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Needler")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Needler")); - } - } - else if (npc.type == NPCID.DarkCaster) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientShiv")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientShiv")); - } - } - else if (npc.type == NPCID.BigMimicCorruption || npc.type == NPCID.BigMimicCrimson || npc.type == NPCID.BigMimicHallow || npc.type == NPCID.BigMimicJungle) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CelestialClaymore")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CelestialClaymore")); - } - } - else if (npc.type == NPCID.Clinger) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CursedDagger")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CursedDagger")); - } - } - else if (npc.type == NPCID.Shark) - { - if (Main.expertMode) - { - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthBlade")); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SharkToothNecklace); - } - } - else - { - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthBlade")); - } - if (Main.rand.Next(30) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SharkToothNecklace); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SharkToothNecklace); - } - } - } - } - else if (npc.type == NPCID.PresentMimic) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HolidayHalberd")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HolidayHalberd")); - } - } - else if (npc.type == NPCID.IchorSticker) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("IchorSpear")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("IchorSpear")); - } - } - else if (npc.type == NPCID.Harpy && NPC.downedBoss1) - { - if (Main.expertMode) - { - if (Main.rand.Next(30) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SkyGlaze")); - } - } - else if (Main.rand.Next(40) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SkyGlaze")); - } - if (CalamityWorld.defiled) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SkyGlaze")); - } - } - } - else if (npc.type == NPCID.Antlion || npc.type == NPCID.WalkingAntlion || npc.type == NPCID.FlyingAntlion) - { - if (Main.expertMode) - { - if (Main.rand.Next(30) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MandibleBow")); - } - if (Main.rand.Next(30) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MandibleClaws")); - } - } - else - { - if (Main.rand.Next(40) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MandibleBow")); - } - if (Main.rand.Next(40) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MandibleClaws")); - } - } - } - else if (npc.type == NPCID.MartianSaucerCore) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("NullificationRifle")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("NullificationRifle")); - } - } - else if (npc.type == NPCID.Demon) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BladecrestOathsword")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BladecrestOathsword")); - } - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh")); - } - } - else if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh")); - } - } - else if (npc.type == NPCID.BoneSerpentHead) - { - if (Main.expertMode) - { - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OldLordOathsword")); - } - } - else if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OldLordOathsword")); - } - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh")); - } - } - else if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh")); - } - } - else if (npc.type == NPCID.Tim) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlasmaRod")); - } - } - else if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlasmaRod")); - } - } - else if (npc.type == NPCID.GoblinSorcerer) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlasmaRod")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlasmaRod")); - } - } - else if (npc.type == NPCID.PirateDeadeye) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ProporsePistol")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ProporsePistol")); - } - } - else if (npc.type == NPCID.PirateCrossbower) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RaidersGlory")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RaidersGlory")); - } - } - else if (npc.type == NPCID.GoblinSummoner) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheFirstShadowflame")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheFirstShadowflame")); - } - } - else if (npc.type == NPCID.SandElemental) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WifeinaBottle")); - } - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WifeinaBottlewithBoobs")); - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder"), Main.rand.Next(2, 4)); - } - else - { - if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WifeinaBottle")); - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder"), Main.rand.Next(1, 3)); - } - } - else if (npc.type == NPCID.Skeleton || npc.type == NPCID.ArmoredSkeleton) - { - if (Main.expertMode) - { - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Waraxe")); - } - } - else if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Waraxe")); - } - if (Main.expertMode) - { - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientBoneDust")); - } - } - else if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientBoneDust")); - } - } - else if (npc.type == NPCID.GoblinWarrior) - { - if (Main.expertMode) - { - if (Main.rand.Next(15) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Warblade")); - } - } - else if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Warblade")); - } - } - else if (npc.type == NPCID.MartianWalker) - { - if (Main.expertMode) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Wingman")); - } - } - else if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Wingman")); - } - } - else if (npc.type == NPCID.GiantCursedSkull || npc.type == NPCID.NecromancerArmored || npc.type == NPCID.Necromancer) - { - if (Main.expertMode) - { - if (Main.rand.Next(20) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WrathoftheAncients")); - } - } - else if (Main.rand.Next(25) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WrathoftheAncients")); - } - } + #endregion + #region Rares + if (npc.type == NPCID.PossessedArmor) + { + if (Main.expertMode) + { + if (Main.rand.Next(150) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PsychoticAmulet")); + } + } + else if (Main.rand.Next(200) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PsychoticAmulet")); + } + if (CalamityWorld.defiled) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PsychoticAmulet")); + } + } + } + else if (npc.type == NPCID.SeaSnail) + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeaShell")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SeaShell")); + } + } + else if (npc.type == NPCID.GiantTortoise) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantTortoiseShell")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantTortoiseShell")); + } + } + else if (npc.type == NPCID.GiantShelly || npc.type == NPCID.GiantShelly2) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantShell")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantShell")); + } + } + else if (npc.type == NPCID.AnomuraFungus) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FungalCarapace")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FungalCarapace")); + } + } + else if (npc.type == NPCID.Crawdad || npc.type == NPCID.Crawdad2) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrawCarapace")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrawCarapace")); + } + } + else if (npc.type == NPCID.GreenJellyfish) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VitalJelly")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VitalJelly")); + } + } + else if (npc.type == NPCID.PinkJellyfish) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LifeJelly")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LifeJelly")); + } + } + else if (npc.type == NPCID.BlueJellyfish) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManaJelly")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManaJelly")); + } + } + else if (npc.type == NPCID.MossHornet) + { + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Needler")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Needler")); + } + } + else if (npc.type == NPCID.DarkCaster) + { + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientShiv")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientShiv")); + } + } + else if (npc.type == NPCID.BigMimicCorruption || npc.type == NPCID.BigMimicCrimson || npc.type == NPCID.BigMimicHallow || npc.type == NPCID.BigMimicJungle) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CelestialClaymore")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CelestialClaymore")); + } + } + else if (npc.type == NPCID.Clinger) + { + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CursedDagger")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CursedDagger")); + } + } + else if (npc.type == NPCID.Shark) + { + if (Main.expertMode) + { + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthBlade")); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SharkToothNecklace); + } + } + else + { + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DepthBlade")); + } + if (Main.rand.Next(30) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SharkToothNecklace); + } + if (CalamityWorld.defiled) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SharkToothNecklace); + } + } + } + } + else if (npc.type == NPCID.PresentMimic) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HolidayHalberd")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HolidayHalberd")); + } + } + else if (npc.type == NPCID.IchorSticker) + { + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("IchorSpear")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("IchorSpear")); + } + } + else if (npc.type == NPCID.Harpy && NPC.downedBoss1) + { + if (Main.expertMode) + { + if (Main.rand.Next(30) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SkyGlaze")); + } + } + else if (Main.rand.Next(40) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SkyGlaze")); + } + if (CalamityWorld.defiled) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SkyGlaze")); + } + } + } + else if (npc.type == NPCID.Antlion || npc.type == NPCID.WalkingAntlion || npc.type == NPCID.FlyingAntlion) + { + if (Main.expertMode) + { + if (Main.rand.Next(30) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MandibleBow")); + } + if (Main.rand.Next(30) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MandibleClaws")); + } + } + else + { + if (Main.rand.Next(40) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MandibleBow")); + } + if (Main.rand.Next(40) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MandibleClaws")); + } + } + } + else if (npc.type == NPCID.MartianSaucerCore) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("NullificationRifle")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("NullificationRifle")); + } + } + else if (npc.type == NPCID.Demon) + { + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BladecrestOathsword")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BladecrestOathsword")); + } + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh")); + } + } + else if (npc.type == NPCID.BoneSerpentHead) + { + if (Main.expertMode) + { + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OldLordOathsword")); + } + } + else if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OldLordOathsword")); + } + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DemonicBoneAsh")); + } + } + else if (npc.type == NPCID.Tim) + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlasmaRod")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlasmaRod")); + } + } + else if (npc.type == NPCID.GoblinSorcerer) + { + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlasmaRod")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlasmaRod")); + } + } + else if (npc.type == NPCID.PirateDeadeye) + { + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ProporsePistol")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ProporsePistol")); + } + } + else if (npc.type == NPCID.PirateCrossbower) + { + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RaidersGlory")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RaidersGlory")); + } + } + else if (npc.type == NPCID.GoblinSummoner) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheFirstShadowflame")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheFirstShadowflame")); + } + } + else if (npc.type == NPCID.SandElemental) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WifeinaBottle")); + } + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WifeinaBottlewithBoobs")); + } + } + else + { + if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WifeinaBottle")); + } + } + } + else if (npc.type == NPCID.Skeleton || npc.type == NPCID.ArmoredSkeleton) + { + if (Main.expertMode) + { + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Waraxe")); + } + } + else if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Waraxe")); + } + if (Main.expertMode) + { + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientBoneDust")); + } + } + else if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AncientBoneDust")); + } + } + else if (npc.type == NPCID.GoblinWarrior) + { + if (Main.expertMode) + { + if (Main.rand.Next(15) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Warblade")); + } + } + else if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Warblade")); + } + } + else if (npc.type == NPCID.MartianWalker) + { + if (Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Wingman")); + } + } + else if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Wingman")); + } + } + else if (npc.type == NPCID.GiantCursedSkull || npc.type == NPCID.NecromancerArmored || npc.type == NPCID.Necromancer) + { + if (npc.type == NPCID.GiantCursedSkull) + { + if (CalamityWorld.downedLeviathan && Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Keelhaul")); + } + } + if (Main.expertMode) + { + if (Main.rand.Next(20) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WrathoftheAncients")); + } + } + else if (Main.rand.Next(25) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WrathoftheAncients")); + } + } #endregion #region Commons if (npc.type == NPCID.Vulture) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DesertFeather"), Main.rand.Next(1, 3)); - } - } - else if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DesertFeather")); - } - } + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DesertFeather"), Main.rand.Next(1, 3)); + } + } + else if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DesertFeather")); + } + } else if (CalamityMod.dungeonEnemyBuffList.Contains(npc.type)) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Ectoblood"), Main.rand.Next(1, 3)); - } - } - else if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Ectoblood")); - } - } - else if (npc.type == NPCID.RedDevil || npc.type == NPCID.SeekerHead || npc.type == NPCID.IchorSticker) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(1, 4)); - } - } - else if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos"), Main.rand.Next(1, 3)); - } - } - else if (npc.type == NPCID.WyvernHead || npc.type == NPCID.AngryNimbus) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder"), Main.rand.Next(1, 4)); - } - } - else if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder"), Main.rand.Next(1, 3)); - } - } + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Ectoblood"), Main.rand.Next(1, 3)); + } + } + else if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Ectoblood")); + } + } + else if (npc.type == NPCID.RedDevil) + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); + } + } + else if (npc.type == NPCID.WyvernHead) + { + if (Main.expertMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder"), Main.rand.Next(1, 3)); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); + } + } + else if (npc.type == NPCID.AngryNimbus) + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); + } + } else if (npc.type == NPCID.IceTortoise || npc.type == NPCID.IcyMerman) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum"), Main.rand.Next(1, 4)); - } - } - else if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum"), Main.rand.Next(1, 3)); - } - } + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum")); + } + } else if (npc.type == NPCID.Plantera) - { - if (Main.expertMode) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LivingShard"), Main.rand.Next(8, 12)); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LivingShard"), (Main.rand.Next(6, 10))); - } - } + { + if (!Main.expertMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LivingShard"), Main.rand.Next(6, 10)); + } + } else if (npc.type == NPCID.NebulaBrain || npc.type == NPCID.NebulaSoldier || npc.type == NPCID.NebulaHeadcrab || npc.type == NPCID.NebulaBeast) - { - if (Main.expertMode) - { - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MeldBlob"), Main.rand.Next(2, 4)); - } - } - else if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MeldBlob"), (Main.rand.Next(1, 3))); - } - } - else if (npc.type == NPCID.CultistBoss) - { - if (Main.expertMode) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MeldBlob"), Main.rand.Next(25, 31)); - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StardustStaff")); - } - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MeldBlob"), (Main.rand.Next(20, 26))); - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StardustStaff")); - } - } - } - else if (npc.type == NPCID.EyeofCthulhu) - { - if (Main.expertMode) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(3, 6)); - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TeardropCleaver")); - } - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), (Main.rand.Next(2, 5))); - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TeardropCleaver")); - } - } - } - else if (npc.type == NPCID.DevourerHead || npc.type == NPCID.SeekerHead) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FetidEssence")); - } - } - else if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FetidEssence")); - } - } - else if (npc.type == NPCID.FaceMonster || npc.type == NPCID.Herpling) - { - if (Main.expertMode) - { - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodlettingEssence")); - } - } - else if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodlettingEssence")); - } - } - else if (npc.type == NPCID.ManEater) - { - if (Main.expertMode) - { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManeaterBulb")); - } - } - else if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManeaterBulb")); - } - } - else if (npc.type == NPCID.AngryTrapper) - { - if (Main.expertMode) - { - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TrapperBulb")); - } - } - else if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TrapperBulb")); - } - } - else if (npc.type == NPCID.MotherSlime || npc.type == NPCID.Crimslime || npc.type == NPCID.CorruptSlime) - { - if (Main.expertMode) - { - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkySludge")); - } - } - else if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkySludge")); - } - } - else if (npc.type == NPCID.Moth) - { - if (Main.expertMode) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GypsyPowder")); - } - else if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GypsyPowder")); - } - } - else if (npc.type == NPCID.Derpling) - { - if (Main.expertMode) - { - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BeetleJuice")); - } - } - else if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BeetleJuice")); - } - } - else if (npc.type == NPCID.SpikedJungleSlime || npc.type == NPCID.Arapaima) - { - if (Main.expertMode) - { - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkyPaste")); - } - } - else if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkyPaste")); - } - } + { + if (Main.expertMode) + { + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MeldBlob"), Main.rand.Next(2, 4)); + } + } + else if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MeldBlob"), (Main.rand.Next(1, 3))); + } + } + else if (npc.type == NPCID.CultistBoss) + { + if (!Main.expertMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MeldBlob"), Main.rand.Next(20, 26)); + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StardustStaff")); + } + } + } + else if (npc.type == NPCID.EyeofCthulhu) + { + if (!Main.expertMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("VictoryShard"), Main.rand.Next(2, 5)); + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TeardropCleaver")); + } + } + } + else if (npc.type == NPCID.DevourerHead || npc.type == NPCID.SeekerHead) + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FetidEssence")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FetidEssence")); + } + } + else if (npc.type == NPCID.FaceMonster || npc.type == NPCID.Herpling) + { + if (Main.expertMode) + { + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodlettingEssence")); + } + } + else if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodlettingEssence")); + } + } + else if (npc.type == NPCID.ManEater) + { + if (Main.expertMode) + { + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManeaterBulb")); + } + } + else if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ManeaterBulb")); + } + } + else if (npc.type == NPCID.AngryTrapper) + { + if (Main.expertMode) + { + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TrapperBulb")); + } + } + else if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TrapperBulb")); + } + } + else if (npc.type == NPCID.MotherSlime || npc.type == NPCID.Crimslime || npc.type == NPCID.CorruptSlime) + { + if (Main.expertMode) + { + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkySludge")); + } + } + else if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkySludge")); + } + } + else if (npc.type == NPCID.Moth) + { + if (Main.expertMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GypsyPowder")); + } + else if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GypsyPowder")); + } + } + else if (npc.type == NPCID.Derpling) + { + if (Main.expertMode) + { + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BeetleJuice")); + } + } + else if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BeetleJuice")); + } + } + else if (npc.type == NPCID.SpikedJungleSlime || npc.type == NPCID.Arapaima) + { + if (Main.expertMode) + { + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkyPaste")); + } + } + else if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MurkyPaste")); + } + } #endregion #region Boss Specials - if (npc.boss) + if (npc.boss && !CalamityWorld.downedBossAny) { CalamityWorld.downedBossAny = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } if (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail || npc.type == NPCID.BrainofCthulhu) { if (npc.boss) { bool downedEvil = CalamityWorld.downedWhar; CalamityWorld.downedWhar = true; - if (!downedEvil) + if (Main.netMode == 2) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); - if (WorldGen.crimson) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge8")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge11")); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge9")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge12")); - } + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + if (!downedEvil) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); + if (WorldGen.crimson) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge8")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge11")); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge9")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge12")); + } } } } @@ -10389,105 +10438,120 @@ namespace CalamityMod.NPCs { bool downedSkull = CalamityWorld.downedSkullHead; CalamityWorld.downedSkullHead = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } if (!downedSkull) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge17")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge17")); } } else if (npc.type == NPCID.WallofFlesh) { - if (CalamityWorld.checkAstralMeteor()) - { - if (!CalamityWorld.spawnAstralMeteor) - { - string key = "Mods.CalamityMod.AstralText"; - Color messageColor = Color.Gold; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - CalamityWorld.spawnAstralMeteor = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - CalamityWorld.dropAstralMeteor(); - } - else if (Main.rand.Next(2) == 0 && !CalamityWorld.spawnAstralMeteor2) - { - string key = "Mods.CalamityMod.AstralText"; - Color messageColor = Color.Gold; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - CalamityWorld.spawnAstralMeteor2 = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - CalamityWorld.dropAstralMeteor(); - } - else if (Main.rand.Next(4) == 0 && !CalamityWorld.spawnAstralMeteor3) - { - string key = "Mods.CalamityMod.AstralText"; - Color messageColor = Color.Gold; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - CalamityWorld.spawnAstralMeteor3 = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - CalamityWorld.dropAstralMeteor(); - } - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MLGRune")); - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Meowthrower")); - } - if (Main.rand.Next(8) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RogueEmblem")); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CrimsonKey); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CorruptionKey); - } - bool hardMode = CalamityWorld.downedUgly; + if (CalamityWorld.checkAstralMeteor()) + { + if (!CalamityWorld.spawnAstralMeteor) + { + string key = "Mods.CalamityMod.AstralText"; + Color messageColor = Color.Gold; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + CalamityWorld.spawnAstralMeteor = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + CalamityWorld.dropAstralMeteor(); + } + else if (Main.rand.Next(2) == 0 && !CalamityWorld.spawnAstralMeteor2) + { + string key = "Mods.CalamityMod.AstralText"; + Color messageColor = Color.Gold; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + CalamityWorld.spawnAstralMeteor2 = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + CalamityWorld.dropAstralMeteor(); + } + else if (Main.rand.Next(4) == 0 && !CalamityWorld.spawnAstralMeteor3) + { + string key = "Mods.CalamityMod.AstralText"; + Color messageColor = Color.Gold; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + CalamityWorld.spawnAstralMeteor3 = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + CalamityWorld.dropAstralMeteor(); + } + } + if (!Main.expertMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MLGRune")); + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Meowthrower")); + } + if (Main.rand.Next(8) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RogueEmblem")); + } + if (Main.rand.Next(5) == 0) + { + switch (Main.rand.Next(2)) + { + case 0: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CrimsonKey); + break; + case 1: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CorruptionKey); + break; + } + } + } + bool hardMode = CalamityWorld.downedUgly; CalamityWorld.downedUgly = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } string key2 = "Mods.CalamityMod.UglyBossText"; Color messageColor2 = Color.Crimson; string key3 = "Mods.CalamityMod.UglyBossText2"; Color messageColor3 = Color.Cyan; if (!hardMode) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge7")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge18")); - if (Main.netMode == 0) + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge7")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge18")); + if (Main.netMode == 0) { Main.NewText(Language.GetTextValue(key2), messageColor2); Main.NewText(Language.GetTextValue(key3), messageColor3); @@ -10502,10 +10566,14 @@ namespace CalamityMod.NPCs else if (npc.type == NPCID.SkeletronPrime || npc.type == mod.NPCType("BrimstoneElemental")) { bool downedPrime = CalamityWorld.downedSkeletor; - if (npc.type == NPCID.SkeletronPrime) - { - CalamityWorld.downedSkeletor = true; - } + if (npc.type == NPCID.SkeletronPrime) + { + CalamityWorld.downedSkeletor = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } string key = "Mods.CalamityMod.SteelSkullBossText"; Color messageColor = Color.Crimson; if (!downedPrime && !CalamityWorld.downedBrimstoneElemental) @@ -10519,115 +10587,129 @@ namespace CalamityMod.NPCs NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); } } - if (npc.type == mod.NPCType("BrimstoneElemental")) - { - if (!CalamityWorld.downedBrimstoneElemental) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge6")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge26")); - } - CalamityWorld.downedBrimstoneElemental = true; - } - } + if (npc.type == mod.NPCType("BrimstoneElemental")) + { + if (!CalamityWorld.downedBrimstoneElemental) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge6")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge26")); + } + CalamityWorld.downedBrimstoneElemental = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + } else if (npc.type == NPCID.Plantera || npc.type == mod.NPCType("CalamitasRun3")) { - bool downedPlant = CalamityWorld.downedPlantThing; - if (npc.type == NPCID.Plantera) - { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.JungleKey); - } - CalamityWorld.downedPlantThing = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - string key = "Mods.CalamityMod.PlantBossText"; + bool downedPlant = CalamityWorld.downedPlantThing; + if (npc.type == NPCID.Plantera) + { + if (!Main.expertMode) + { + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.JungleKey); + } + } + CalamityWorld.downedPlantThing = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + string key = "Mods.CalamityMod.PlantBossText"; Color messageColor = Color.RoyalBlue; - string key2 = "Mods.CalamityMod.PlantOreText"; - Color messageColor2 = Color.GreenYellow; - if (npc.type == mod.NPCType("CalamitasRun3")) - { - if (!CalamityWorld.downedCalamitas && !downedPlant) - { - if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/WyrmScream"), - (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y); - } - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - npc.DropItemInstanced(npc.position, npc.Size, ItemID.BrokenHeroSword, 1, true); - if (!CalamityWorld.downedCalamitas) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge24")); - } - CalamityWorld.downedCalamitas = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - if (npc.type == NPCID.Plantera) - { - if (!downedPlant) - { - CalamityWorld.spawnOre(mod.TileType("PerennialOre"), 12E-05, .5f, .7f); - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key2), messageColor2); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); - } - } - if (!downedPlant && !CalamityWorld.downedCalamitas) - { - if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/WyrmScream"), - (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y); - } - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - } + string key2 = "Mods.CalamityMod.PlantOreText"; + Color messageColor2 = Color.GreenYellow; + if (npc.type == mod.NPCType("CalamitasRun3")) + { + if (!CalamityWorld.downedCalamitas && !downedPlant) + { + if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/WyrmScream"), + (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y); + } + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + npc.DropItemInstanced(npc.position, npc.Size, ItemID.BrokenHeroSword, 1, true); + if (!CalamityWorld.downedCalamitas) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge24")); + } + CalamityWorld.downedCalamitas = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + if (npc.type == NPCID.Plantera) + { + if (!downedPlant) + { + CalamityWorld.spawnOre(mod.TileType("PerennialOre"), 12E-05, .5f, .7f); + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key2), messageColor2); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); + } + } + if (!downedPlant && !CalamityWorld.downedCalamitas) + { + if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/WyrmScream"), + (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y); + } + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + } } else if (npc.type == NPCID.Golem) { bool downedIdiot = CalamityWorld.downedGolemBaby; CalamityWorld.downedGolemBaby = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } string key = "Mods.CalamityMod.BabyBossText"; Color messageColor = Color.Lime; string key2 = "Mods.CalamityMod.BabyBossText2"; Color messageColor2 = Color.Yellow; if (!downedIdiot) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge31")); - npc.DropItemInstanced(npc.position, npc.Size, ItemID.Picksaw, 1, true); - if (Main.netMode == 0) + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge31")); + npc.DropItemInstanced(npc.position, npc.Size, ItemID.Picksaw, 1, true); + if (Main.netMode == 0) { Main.NewText(Language.GetTextValue(key), messageColor); Main.NewText(Language.GetTextValue(key2), messageColor2); @@ -10643,55 +10725,57 @@ namespace CalamityMod.NPCs { bool downedMoonDude = CalamityWorld.downedMoonDude; CalamityWorld.downedMoonDude = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - string key = "Mods.CalamityMod.MoonBossText"; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + string key = "Mods.CalamityMod.MoonBossText"; Color messageColor = Color.Orange; string key2 = "Mods.CalamityMod.MoonBossText2"; Color messageColor2 = Color.Violet; string key3 = "Mods.CalamityMod.MoonBossText3"; Color messageColor3 = Color.Crimson; - string key4 = "Mods.CalamityMod.ProfanedBossText2"; - Color messageColor4 = Color.Cyan; - string key5 = "Mods.CalamityMod.FutureOreText"; - Color messageColor5 = Color.LightGray; - if (!downedMoonDude) + string key4 = "Mods.CalamityMod.ProfanedBossText2"; + Color messageColor4 = Color.Cyan; + string key5 = "Mods.CalamityMod.FutureOreText"; + Color messageColor5 = Color.LightGray; + if (!downedMoonDude) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - CalamityWorld.spawnOre(mod.TileType("ExodiumOre"), 12E-05, .01f, .07f); - if (Main.netMode == 0) + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + CalamityWorld.spawnOre(mod.TileType("ExodiumOre"), 12E-05, .01f, .07f); + if (Main.netMode == 0) { Main.NewText(Language.GetTextValue(key), messageColor); Main.NewText(Language.GetTextValue(key2), messageColor2); Main.NewText(Language.GetTextValue(key3), messageColor3); - Main.NewText(Language.GetTextValue(key4), messageColor4); - Main.NewText(Language.GetTextValue(key5), messageColor5); - } + Main.NewText(Language.GetTextValue(key4), messageColor4); + Main.NewText(Language.GetTextValue(key5), messageColor5); + } else if (Main.netMode == 2) { NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); NetMessage.BroadcastChatMessage(NetworkText.FromKey(key3), messageColor3); - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key4), messageColor4); - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key5), messageColor5); - } + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key4), messageColor4); + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key5), messageColor5); + } } - if (Main.expertMode) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("MLGRune2"), 1, true); - } } else if (npc.type == NPCID.DD2Betsy) { - if (!CalamityWorld.downedBetsy) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - } + if (!CalamityWorld.downedBetsy) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + } CalamityWorld.downedBetsy = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } } else if (npc.type == NPCID.Pumpking && CalamityWorld.downedDoG) { @@ -10704,650 +10788,684 @@ namespace CalamityMod.NPCs else if (npc.type == NPCID.Mothron && CalamityWorld.buffedEclipse) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DarksunFragment"), Main.rand.Next(10, 21)); - CalamityWorld.downedBuffedMothron = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + CalamityWorld.downedBuffedMothron = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("Astrageldon")) { - if (CalamityWorld.checkAstralMeteor()) - { - string key = "Mods.CalamityMod.AstralText"; - Color messageColor = Color.Gold; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - CalamityWorld.dropAstralMeteor(); - } - if (!CalamityWorld.downedAstrageldon) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge30")); - } - CalamityWorld.downedAstrageldon = true; - } - else if (npc.type == NPCID.KingSlime) - { - if (revenge) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("CrownJewel"), 1, true); - } - } - else if (npc.type == NPCID.EyeofCthulhu) - { - if (revenge) + if (CalamityWorld.checkAstralMeteor()) { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("CounterScarf"), 1, true); - } + string key = "Mods.CalamityMod.AstralText"; + Color messageColor = Color.Gold; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + CalamityWorld.dropAstralMeteor(); + } + if (!CalamityWorld.downedAstrageldon) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge30")); + } + CalamityWorld.downedAstrageldon = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } } else if (npc.type == mod.NPCType("HiveMindP2")) //boss 2 { - if (!CalamityWorld.downedHiveMind) - { - if (!CalamityWorld.downedPerforator) - { - string key = "Mods.CalamityMod.SkyOreText"; - Color messageColor = Color.Cyan; - CalamityWorld.spawnOre(mod.TileType("AerialiteOre"), 12E-05, .4f, .6f); - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge14")); - } - CalamityWorld.downedHiveMind = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + if (!CalamityWorld.downedHiveMind) + { + if (!CalamityWorld.downedPerforator) + { + string key = "Mods.CalamityMod.SkyOreText"; + Color messageColor = Color.Cyan; + CalamityWorld.spawnOre(mod.TileType("AerialiteOre"), 12E-05, .4f, .6f); + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge14")); + } + CalamityWorld.downedHiveMind = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("PerforatorHive")) //boss 3 { - if (!CalamityWorld.downedPerforator) - { - if (!CalamityWorld.downedHiveMind) - { - string key = "Mods.CalamityMod.SkyOreText"; - Color messageColor = Color.Cyan; - CalamityWorld.spawnOre(mod.TileType("AerialiteOre"), 12E-05, .4f, .6f); - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge13")); - } + if (!CalamityWorld.downedPerforator) + { + if (!CalamityWorld.downedHiveMind) + { + string key = "Mods.CalamityMod.SkyOreText"; + Color messageColor = Color.Cyan; + CalamityWorld.spawnOre(mod.TileType("AerialiteOre"), 12E-05, .4f, .6f); + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge13")); + } CalamityWorld.downedPerforator = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("SlimeGodCore") || npc.type == mod.NPCType("SlimeGodSplit") || npc.type == mod.NPCType("SlimeGodRunSplit")) //boss 4 { - if (npc.type == mod.NPCType("SlimeGodCore") && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) - && !NPC.AnyNPCs(mod.NPCType("SlimeGod")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) - { - if (!CalamityWorld.downedSlimeGod) - { - if (revenge && !Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("PurifiedJam"), Main.rand.Next(6, 9), true); - Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop = true; - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge15")); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodTrophy")); - } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) - { - npc.DropBossBags(); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StaticRefiner")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PurifiedGel"), Main.rand.Next(25, 41)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gel, Main.rand.Next(180, 251)); - int maskChoice = Main.rand.Next(2); - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OverloadedBlaster")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GelDart"), Main.rand.Next(80, 101)); - } - if (Main.rand.Next(7) == 0) - { - if (maskChoice == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask")); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask2")); - } - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AbyssalTome")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EldritchTome")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrimslimeStaff")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CorroslimeStaff")); - } - } - CalamityWorld.downedSlimeGod = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - else if (npc.type == mod.NPCType("SlimeGodSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) && - NPC.CountNPCS(mod.NPCType("SlimeGodSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) - { - if (!CalamityWorld.downedSlimeGod) - { - if (revenge && !Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("PurifiedJam"), Main.rand.Next(6, 9), true); - Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop = true; - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge15")); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodTrophy")); - } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) - { - npc.DropBossBags(); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StaticRefiner")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PurifiedGel"), Main.rand.Next(25, 41)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gel, Main.rand.Next(180, 251)); - int maskChoice = Main.rand.Next(2); - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OverloadedBlaster")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GelDart"), Main.rand.Next(80, 101)); - } - if (Main.rand.Next(7) == 0) - { - if (maskChoice == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask")); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask2")); - } - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AbyssalTome")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EldritchTome")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrimslimeStaff")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CorroslimeStaff")); - } - } - CalamityWorld.downedSlimeGod = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - else if (npc.type == mod.NPCType("SlimeGodRunSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && - NPC.CountNPCS(mod.NPCType("SlimeGodRunSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGod"))) - { - if (!CalamityWorld.downedSlimeGod) - { - if (revenge && !Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("PurifiedJam"), Main.rand.Next(6, 9), true); - Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop = true; - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge15")); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodTrophy")); - } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) - { - npc.DropBossBags(); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StaticRefiner")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PurifiedGel"), Main.rand.Next(25, 41)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gel, Main.rand.Next(180, 251)); - int maskChoice = Main.rand.Next(2); - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OverloadedBlaster")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GelDart"), Main.rand.Next(80, 101)); - } - if (Main.rand.Next(7) == 0) - { - if (maskChoice == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask")); - } - else - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask2")); - } - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AbyssalTome")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EldritchTome")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrimslimeStaff")); - } - if (Main.rand.Next(4) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CorroslimeStaff")); - } - } - CalamityWorld.downedSlimeGod = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - } + if (npc.type == mod.NPCType("SlimeGodCore") && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) + && !NPC.AnyNPCs(mod.NPCType("SlimeGod")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) + { + if (!CalamityWorld.downedSlimeGod) + { + if (revenge && !Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("PurifiedJam"), Main.rand.Next(6, 9), true); + Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop = true; + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge15")); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodTrophy")); + } + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + npc.DropBossBags(); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StaticRefiner")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PurifiedGel"), Main.rand.Next(25, 41)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gel, Main.rand.Next(180, 251)); + int maskChoice = Main.rand.Next(2); + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OverloadedBlaster")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GelDart"), Main.rand.Next(80, 101)); + } + if (Main.rand.Next(7) == 0) + { + if (maskChoice == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask")); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask2")); + } + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AbyssalTome")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EldritchTome")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrimslimeStaff")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CorroslimeStaff")); + } + } + CalamityWorld.downedSlimeGod = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + else if (npc.type == mod.NPCType("SlimeGodSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodRunSplit")) && + NPC.CountNPCS(mod.NPCType("SlimeGodSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGodRun"))) + { + if (!CalamityWorld.downedSlimeGod) + { + if (revenge && !Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("PurifiedJam"), Main.rand.Next(6, 9), true); + Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop = true; + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge15")); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodTrophy")); + } + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + npc.DropBossBags(); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StaticRefiner")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PurifiedGel"), Main.rand.Next(25, 41)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gel, Main.rand.Next(180, 251)); + int maskChoice = Main.rand.Next(2); + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OverloadedBlaster")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GelDart"), Main.rand.Next(80, 101)); + } + if (Main.rand.Next(7) == 0) + { + if (maskChoice == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask")); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask2")); + } + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AbyssalTome")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EldritchTome")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrimslimeStaff")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CorroslimeStaff")); + } + } + CalamityWorld.downedSlimeGod = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + else if (npc.type == mod.NPCType("SlimeGodRunSplit") && !NPC.AnyNPCs(mod.NPCType("SlimeGodCore")) && !NPC.AnyNPCs(mod.NPCType("SlimeGodSplit")) && + NPC.CountNPCS(mod.NPCType("SlimeGodRunSplit")) < 2 && !NPC.AnyNPCs(mod.NPCType("SlimeGod"))) + { + if (!CalamityWorld.downedSlimeGod) + { + if (revenge && !Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("PurifiedJam"), Main.rand.Next(6, 9), true); + Main.player[(int)Player.FindClosest(npc.position, npc.width, npc.height)].GetModPlayer(mod).revJamDrop = true; + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge15")); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodTrophy")); + } + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + npc.DropBossBags(); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StaticRefiner")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PurifiedGel"), Main.rand.Next(25, 41)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Gel, Main.rand.Next(180, 251)); + int maskChoice = Main.rand.Next(2); + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("OverloadedBlaster")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GelDart"), Main.rand.Next(80, 101)); + } + if (Main.rand.Next(7) == 0) + { + if (maskChoice == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask")); + } + else + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SlimeGodMask2")); + } + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AbyssalTome")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EldritchTome")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrimslimeStaff")); + } + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CorroslimeStaff")); + } + } + CalamityWorld.downedSlimeGod = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + } else if (npc.type == mod.NPCType("Cryogen")) //boss 5 { - if (!CalamityWorld.downedCryogen) - { - string key = "Mods.CalamityMod.IceOreText"; - Color messageColor = Color.LightSkyBlue; - CalamityWorld.spawnOre(mod.TileType("CryonicOre"), 15E-05, .45f, .65f); - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge19")); - } - CalamityWorld.downedCryogen = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + if (!CalamityWorld.downedCryogen) + { + string key = "Mods.CalamityMod.IceOreText"; + Color messageColor = Color.LightSkyBlue; + CalamityWorld.spawnOre(mod.TileType("CryonicOre"), 15E-05, .45f, .65f); + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge19")); + } + CalamityWorld.downedCryogen = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("Leviathan")) //boss 8 { int bossType = (npc.type == mod.NPCType("Siren")) ? mod.NPCType("Leviathan") : mod.NPCType("Siren"); if (!NPC.AnyNPCs(bossType)) { - if (!CalamityWorld.downedLeviathan) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge10")); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge28")); - } - CalamityWorld.downedLeviathan = true; + if (!CalamityWorld.downedLeviathan) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge10")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge28")); + } + CalamityWorld.downedLeviathan = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } } } else if (npc.type == mod.NPCType("PlaguebringerGoliath")) //boss 9 { - if (!CalamityWorld.downedPlaguebringer) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge32")); - } - CalamityWorld.downedPlaguebringer = true; + if (!CalamityWorld.downedPlaguebringer) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge32")); + } + CalamityWorld.downedPlaguebringer = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } } else if (npc.type == mod.NPCType("ProfanedGuardianBoss")) //boss 10 { - if (!CalamityWorld.downedGuardians) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - } + if (!CalamityWorld.downedGuardians) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + } CalamityWorld.downedGuardians = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } } else if (npc.type == mod.NPCType("Providence")) //boss 11 { string key2 = "Mods.CalamityMod.ProfanedBossText3"; Color messageColor2 = Color.Orange; - string key3 = "Mods.CalamityMod.TreeOreText"; - Color messageColor3 = Color.LightGreen; - if (!CalamityWorld.downedProvidence) + string key3 = "Mods.CalamityMod.TreeOreText"; + Color messageColor3 = Color.LightGreen; + if (!CalamityWorld.downedProvidence) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - CalamityWorld.spawnOre(mod.TileType("UelibloomOre"), 15E-05, .4f, .8f); - if (Main.netMode == 0) + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + CalamityWorld.spawnOre(mod.TileType("UelibloomOre"), 15E-05, .4f, .8f); + if (Main.netMode == 0) { Main.NewText(Language.GetTextValue(key2), messageColor2); - Main.NewText(Language.GetTextValue(key3), messageColor3); - } + Main.NewText(Language.GetTextValue(key3), messageColor3); + } else if (Main.netMode == 2) { NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key3), messageColor3); - } + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key3), messageColor3); + } } CalamityWorld.downedProvidence = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("CeaselessVoid")) //boss 12 { - if (!CalamityWorld.downedSentinel1) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - } + if (!CalamityWorld.downedSentinel1) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + } CalamityWorld.downedSentinel1 = true; //21600 - if (CalamityWorld.DoGSecondStageCountdown > 14460) - { - CalamityWorld.DoGSecondStageCountdown = 14460; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); - netMessage.Write(CalamityWorld.DoGSecondStageCountdown); - netMessage.Send(); - } - } - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + if (CalamityWorld.DoGSecondStageCountdown > 14460) + { + CalamityWorld.DoGSecondStageCountdown = 14460; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); + netMessage.Write(CalamityWorld.DoGSecondStageCountdown); + netMessage.Send(); + } + } + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("StormWeaverHeadNaked")) //boss 13 { - if (!CalamityWorld.downedSentinel2) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - } + if (!CalamityWorld.downedSentinel2) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + } CalamityWorld.downedSentinel2 = true; //21600 - if (CalamityWorld.DoGSecondStageCountdown > 7260) - { - CalamityWorld.DoGSecondStageCountdown = 7260; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); - netMessage.Write(CalamityWorld.DoGSecondStageCountdown); - netMessage.Send(); - } - } - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + if (CalamityWorld.DoGSecondStageCountdown > 7260) + { + CalamityWorld.DoGSecondStageCountdown = 7260; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); + netMessage.Write(CalamityWorld.DoGSecondStageCountdown); + netMessage.Send(); + } + } + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("CosmicWraith")) //boss 14 { - if (!CalamityWorld.downedSentinel3) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - } - CalamityWorld.downedSentinel3 = true; //21600 - if (CalamityWorld.DoGSecondStageCountdown > 600) - { - CalamityWorld.DoGSecondStageCountdown = 600; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); - netMessage.Write(CalamityWorld.DoGSecondStageCountdown); - netMessage.Send(); - } - } - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } + if (!CalamityWorld.downedSentinel3) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + } + CalamityWorld.downedSentinel3 = true; //21600 + if (CalamityWorld.DoGSecondStageCountdown > 600) + { + CalamityWorld.DoGSecondStageCountdown = 600; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); + netMessage.Write(CalamityWorld.DoGSecondStageCountdown); + netMessage.Send(); + } + } + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("Bumblefuck")) //boss 16 { - if (!CalamityWorld.downedBumble) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - } + if (!CalamityWorld.downedBumble) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 5); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + } CalamityWorld.downedBumble = true; - if (revenge) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("RedLightningContainer"), 1, true); - } - } + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } else if (npc.type == mod.NPCType("Yharon")) //boss 17 { string key = "Mods.CalamityMod.DargonBossText"; Color messageColor = Color.Orange; - string key2 = "Mods.CalamityMod.AuricOreText"; - Color messageColor2 = Color.Gold; - if (!CalamityWorld.downedYharon && npc.localAI[2] == 1f) + string key2 = "Mods.CalamityMod.AuricOreText"; + Color messageColor2 = Color.Gold; + if (!CalamityWorld.downedYharon && npc.localAI[2] == 1f) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 6); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 3); - CalamityWorld.spawnOre(mod.TileType("AuricOre"), 2E-05, .6f, .8f); - if (Main.netMode == 0) + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 6); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells"), 2); + CalamityWorld.spawnOre(mod.TileType("AuricOre"), 2E-05, .6f, .8f); + if (Main.netMode == 0) { - Main.NewText(Language.GetTextValue(key2), messageColor2); - } + Main.NewText(Language.GetTextValue(key2), messageColor2); + } else if (Main.netMode == 2) { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); - } + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); + } + } + if (npc.localAI[2] == 1f) + { + CalamityWorld.downedYharon = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + if (!CalamityWorld.buffedEclipse && npc.localAI[2] != 2f) + { + CalamityWorld.buffedEclipse = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } } - if (npc.localAI[2] == 1f) - { - CalamityWorld.downedYharon = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - if (!CalamityWorld.buffedEclipse && npc.localAI[2] != 2f) - { - CalamityWorld.buffedEclipse = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - } - else if (npc.type == mod.NPCType("SupremeCalamitas")) //boss 18 - { - if (!CalamityWorld.downedSCal) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 6); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 3); - } - CalamityWorld.downedSCal = true; } - else if (npc.type == mod.NPCType("CrabulonIdle")) //boss 19 + else if (npc.type == mod.NPCType("SupremeCalamitas")) //boss 18 { - if (!CalamityWorld.downedCrabulon) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge5")); - } + if (!CalamityWorld.downedSCal) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 6); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells"), 2); + } + CalamityWorld.downedSCal = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + else if (npc.type == mod.NPCType("CrabulonIdle")) //boss 19 + { + if (!CalamityWorld.downedCrabulon) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge5")); + } CalamityWorld.downedCrabulon = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } } else if (npc.type == mod.NPCType("ScavengerBody")) //boss 20 { - if (!CalamityWorld.downedScavenger) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge33")); - } - CalamityWorld.downedScavenger = true; - if (revenge) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("InfernalBlood"), 1, true); - } + if (!CalamityWorld.downedScavenger) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 4); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 2); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Knowledge33")); + } + CalamityWorld.downedScavenger = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } } else if (npc.type == mod.NPCType("Polterghast")) //boss 21 { - string key = "Mods.CalamityMod.GhostBossText"; - Color messageColor = Color.RoyalBlue; - if (!CalamityWorld.downedPolterghast) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 6); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 3); - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - CalamityWorld.downedPolterghast = true; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - else if (npc.type == mod.NPCType("THELORDE")) //boss 22 - { - CalamityWorld.downedLORDE = true; - } - /*else if (npc.type == mod.NPCType("OldDuke")) //boss 23 + string key = "Mods.CalamityMod.GhostBossText"; + Color messageColor = Color.RoyalBlue; + if (!CalamityWorld.downedPolterghast) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MagnumRounds"), 6); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GrenadeRounds"), 3); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ExplosiveShells"), 2); + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + CalamityWorld.downedPolterghast = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + else if (npc.type == mod.NPCType("THELORDE")) //boss 22 + { + CalamityWorld.downedLORDE = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + else if (npc.type == mod.NPCType("GiantClam")) //boss 23 + { + CalamityWorld.downedCLAM = true; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + /*else if (npc.type == mod.NPCType("OldDuke")) //boss 23 { CalamityWorld.downedOldDuke = true; }*/ - #endregion - #region DeathDowns - if (CalamityWorld.death) - { - if (npc.type == mod.NPCType("SupremeCalamitas")) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Levi")); - } - } - #endregion - } - #endregion + if (CalamityWorld.death) + { + if (npc.type == mod.NPCType("SupremeCalamitas")) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Levi")); + } + } + #endregion + } + #endregion - #region EditSpawnRate - public override void EditSpawnRate(Player player, ref int spawnRate, ref int maxSpawns) + #region EditSpawnRate + public override void EditSpawnRate(Player player, ref int spawnRate, ref int maxSpawns) { - if (player.GetModPlayer(mod).ZoneSulphur) - { - spawnRate = (int)((double)spawnRate * 1.1); - maxSpawns = (int)((float)maxSpawns * 0.8f); - if (Main.raining) - { - spawnRate = (int)((double)spawnRate * 0.7); - maxSpawns = (int)((float)maxSpawns * 1.2f); - } - } - else if (player.GetModPlayer(mod).ZoneAbyss) - { - spawnRate = (int)((double)spawnRate * 0.7); - maxSpawns = (int)((float)maxSpawns * 1.1f); - } - else if (player.GetModPlayer(mod).ZoneCalamity) + if (player.GetModPlayer(mod).ZoneSulphur) + { + spawnRate = (int)((double)spawnRate * 1.1); + maxSpawns = (int)((float)maxSpawns * 0.8f); + if (Main.raining) + { + spawnRate = (int)((double)spawnRate * 0.7); + maxSpawns = (int)((float)maxSpawns * 1.2f); + } + } + else if (player.GetModPlayer(mod).ZoneAbyss) + { + spawnRate = (int)((double)spawnRate * 0.7); + maxSpawns = (int)((float)maxSpawns * 1.1f); + } + else if (player.GetModPlayer(mod).ZoneCalamity) { spawnRate = (int)((double)spawnRate * 0.9); maxSpawns = (int)((float)maxSpawns * 1.1f); @@ -11357,56 +11475,88 @@ namespace CalamityMod.NPCs spawnRate = (int)((double)spawnRate * 0.6); maxSpawns = (int)((float)maxSpawns * 1.2f); } + else if (player.GetModPlayer(mod).ZoneSunkenSea) + { + spawnRate = (int)((double)spawnRate * 0.9); + maxSpawns = (int)((float)maxSpawns * 1.1f); + } if (CalamityWorld.revenge) { spawnRate = (int)((double)spawnRate * 0.85); } - if (CalamityWorld.death) - { - spawnRate = (int)((double)spawnRate * 0.75); - } - if (CalamityWorld.demonMode) + if (CalamityWorld.death) { spawnRate = (int)((double)spawnRate * 0.75); } - if (player.GetModPlayer(mod).zerg) + if (CalamityWorld.demonMode) + { + spawnRate = (int)((double)spawnRate * 0.75); + } + if (player.GetModPlayer(mod).clamity) + { + spawnRate = (int)((double)spawnRate * 0.02); + maxSpawns = (int)((float)maxSpawns * 1.5f); + } + if (player.GetModPlayer(mod).zerg && player.GetModPlayer(mod).chaosCandle) + { + spawnRate = (int)((double)spawnRate * 0.005); + maxSpawns = (int)((float)maxSpawns * 7.5f); + } + else if (player.GetModPlayer(mod).zerg) { spawnRate = (int)((double)spawnRate * 0.01); maxSpawns = (int)((float)maxSpawns * 5f); } - if (CalamityPlayer.areThereAnyDamnBosses || player.GetModPlayer(mod).zen) - { - spawnRate = (int)((double)spawnRate * (player.GetModPlayer(mod).ZoneAbyss ? 1.5 : 50)); - maxSpawns = (int)((float)maxSpawns * (player.GetModPlayer(mod).ZoneAbyss ? 0.75f : 0.01f)); - } - } - #endregion + else if (player.GetModPlayer(mod).chaosCandle) + { + spawnRate = (int)((double)spawnRate * 0.02); + maxSpawns = (int)((float)maxSpawns * 2.5f); + } + if (player.GetModPlayer(mod).zen && player.GetModPlayer(mod).tranquilityCandle) + { + spawnRate = (int)((double)spawnRate * (player.GetModPlayer(mod).ZoneAbyss ? 1.75 : 75)); + maxSpawns = (int)((float)maxSpawns * (player.GetModPlayer(mod).ZoneAbyss ? 0.625f : 0.005f)); + } + else if (CalamityPlayer.areThereAnyDamnBosses || player.GetModPlayer(mod).zen) + { + spawnRate = (int)((double)spawnRate * (player.GetModPlayer(mod).ZoneAbyss ? 1.5 : 50)); + maxSpawns = (int)((float)maxSpawns * (player.GetModPlayer(mod).ZoneAbyss ? 0.75f : 0.01f)); + } + else if (player.GetModPlayer(mod).tranquilityCandle) + { + spawnRate = (int)((double)spawnRate * (player.GetModPlayer(mod).ZoneAbyss ? 1.25 : 25)); + maxSpawns = (int)((float)maxSpawns * (player.GetModPlayer(mod).ZoneAbyss ? 0.875f : 0.02f)); + } + } + #endregion - #region EditSpawnRange - public override void EditSpawnRange(Player player, ref int spawnRangeX, ref int spawnRangeY, ref int safeRangeX, ref int safeRangeY) - { - if (player.GetModPlayer(mod).ZoneAbyss) - { - spawnRangeX = (int)((double)(1920 / 16) * 0.5); //0.7 - safeRangeX = (int)((double)(1920 / 16) * 0.32); //0.52 - } - } - #endregion + #region EditSpawnRange + public override void EditSpawnRange(Player player, ref int spawnRangeX, ref int spawnRangeY, ref int safeRangeX, ref int safeRangeY) + { + if (player.GetModPlayer(mod).ZoneAbyss) + { + spawnRangeX = (int)((double)(1920 / 16) * 0.5); //0.7 + safeRangeX = (int)((double)(1920 / 16) * 0.32); //0.52 + } + } + #endregion - #region EditSpawnPool - public override void EditSpawnPool(IDictionary pool, NPCSpawnInfo spawnInfo) - { - if ((spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneCalamity || - spawnInfo.player.GetModPlayer(mod).ZoneSulphur || spawnInfo.player.GetModPlayer(mod).ZoneAstral) && - !NPC.LunarApocalypseIsUp) - { - pool[0] = 0f; - } - } - #endregion + #region EditSpawnPool + public override void EditSpawnPool(IDictionary pool, NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneCalamity || + spawnInfo.player.GetModPlayer(mod).ZoneSulphur || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea || + (spawnInfo.player.GetModPlayer(mod).ZoneAstral && !NPC.LunarApocalypseIsUp)) + { + pool[0] = 0f; + } + } + #endregion - #region Drawing - public override void DrawEffects(NPC npc, ref Color drawColor) + #region Drawing + public override void DrawEffects(NPC npc, ref Color drawColor) { if (bFlames || enraged) { @@ -11539,23 +11689,23 @@ namespace CalamityMod.NPCs } } } - if (dFlames) - { - if (Main.rand.Next(5) < 4) - { - int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, 173, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default(Color), 1.5f); - Main.dust[dust].noGravity = true; - Main.dust[dust].velocity *= 1.2f; - Main.dust[dust].velocity.Y -= 0.15f; - if (Main.rand.Next(4) == 0) - { - Main.dust[dust].noGravity = false; - Main.dust[dust].scale *= 0.5f; - } - } - Lighting.AddLight(npc.position, 0.1f, 0f, 0.135f); - } - if (gState || eFreeze) + if (dFlames) + { + if (Main.rand.Next(5) < 4) + { + int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, 173, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default(Color), 1.5f); + Main.dust[dust].noGravity = true; + Main.dust[dust].velocity *= 1.2f; + Main.dust[dust].velocity.Y -= 0.15f; + if (Main.rand.Next(4) == 0) + { + Main.dust[dust].noGravity = false; + Main.dust[dust].scale *= 0.5f; + } + } + Lighting.AddLight(npc.position, 0.1f, 0f, 0.135f); + } + if (gState || eFreeze) { drawColor = Color.Cyan; } @@ -11563,440 +11713,499 @@ namespace CalamityMod.NPCs { drawColor = Color.Fuchsia; } + if (pearlAura) + { + drawColor = Color.White; + } } - public override Color? GetAlpha(NPC npc, Color drawColor) - { - if (enraged) - return new Color(200, 50, 50, npc.alpha); - return null; - } - #endregion + public override Color? GetAlpha(NPC npc, Color drawColor) + { + if (Main.player[Main.myPlayer].GetModPlayer(mod).trippy) + return new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, npc.alpha); + if (enraged) + return new Color(200, 50, 50, npc.alpha); + return null; + } - #region GetChat - public override void GetChat(NPC npc, ref string chat) - { - switch (npc.type) - { - case NPCID.Guide: - if (Main.rand.Next(20) == 0 && Main.hardMode) - chat = "Could you be so kind as to, ah...check hell for me...? I left someone I kind of care about down there."; - if (Main.rand.Next(20) == 0 && CalamityWorld.spawnAstralMeteor) - chat = "I have this sudden shiver up my spine, like a meteor just fell and thousands of innocent creatures turned into monsters from the stars."; - if (Main.rand.Next(20) == 0 && NPC.downedMoonlord) - chat = "The dungeon seems even more restless than usual, watch out for the powerful abominations stirring up in there."; - if (Main.rand.Next(20) == 0 && CalamityWorld.downedProvidence) - chat = "Seems like extinguishing that butterfly caused its life to seep into the hallowed areas, try taking a peek there and see what you can find!"; - if (Main.rand.Next(20) == 0 && CalamityWorld.downedProvidence) - chat = "I've heard there is a portal of antimatter absorbing everything it can see in the dungeon, try using the Rune of Kos there!"; - break; - case NPCID.PartyGirl: - int fapsol = NPC.FindFirstNPC(mod.NPCType("FAP")); - if (Main.rand.Next(10) == 0 && fapsol != -1) - chat = "I have a feeling we're going to have absolutely fantastic parties with " + Main.npc[fapsol].GivenName + " around!"; - if (Main.rand.Next(5) == 0 && Main.eclipse) - chat = "I think my light display is turning into an accidental bug zapper. At least the monsters are enjoying it."; - if (Main.rand.Next(5) == 0 && Main.eclipse) - chat = "Ooh! I love parties where everyone wears a scary costume!"; - break; - case NPCID.Wizard: - int permadong = NPC.FindFirstNPC(mod.NPCType("DILF")); - if (Main.rand.Next(10) == 0 && permadong != -1) - chat = "I'd let " + Main.npc[permadong].GivenName + " coldheart MY icicle."; - if (Main.rand.Next(10) == 0 && CalamityWorld.spawnAstralMeteor) - chat = "Space just got way too close for comfort."; - break; - case NPCID.Dryad: - if (Main.rand.Next(5) == 0 && CalamityWorld.buffedEclipse && Main.eclipse) - chat = "There's a dark solar energy emanating from the moths that appear during this time. Ah, the moths as you progress further get more powerful...hmm...what power was Yharon holding back?"; - if (Main.rand.Next(10) == 0 && CalamityWorld.spawnAstralMeteor) - chat = "That starborne illness sits upon this land like a blister. Do even more vile forces of corruption exist in worlds beyond?"; - break; - case NPCID.Stylist: - int fapsol2 = NPC.FindFirstNPC(mod.NPCType("FAP")); - string worldEvil = WorldGen.crimson ? "Crimson" : "Corruption"; - if (Main.rand.Next(15) == 0 && fapsol2 != -1) - chat = "Sometimes I catch " + Main.npc[fapsol2].GivenName + " sneaking up from behind me."; - if (Main.rand.Next(15) == 0 && CalamityWorld.spawnAstralMeteor) - chat = "Please don't catch space lice. Or " + worldEvil + " lice. Or just lice in general."; - break; - case NPCID.GoblinTinkerer: - if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) - chat = "You know...we haven't had an invasion in a while..."; - break; - case NPCID.ArmsDealer: - if (Main.rand.Next(5) == 0 && Main.eclipse) - chat = "That's the biggest moth I've ever seen for sure. You'd need one big gun to take one of those down."; - if (Main.rand.Next(10) == 0 && CalamityWorld.downedDoG) - chat = "Is it me or are your weapons getting bigger and bigger?"; - break; - case NPCID.Merchant: - if (Main.rand.Next(5) == 0 && NPC.downedMoonlord) - chat = "Each night seems only more foreboding than the last. I feel unthinkable terrors are watching your every move."; - if (Main.rand.Next(5) == 0 && Main.eclipse) - chat = "Are you daft?! Turn off those lamps!"; - if (Main.rand.Next(5) == 0 && Main.raining && CalamityWorld.sulphurTiles > 30) - chat = "If this acid rain keeps up, there'll be a shortage of Dirt Blocks soon enough!"; - break; - case NPCID.Mechanic: - int fapsol3 = NPC.FindFirstNPC(mod.NPCType("FAP")); - if (Main.rand.Next(5) == 0 && NPC.downedMoonlord) - chat = "What do you mean your traps aren't making the cut? Don't look at me!"; - if (Main.rand.Next(5) == 0 && Main.eclipse) - chat = "Um...should my nightlight be on?"; - if (Main.rand.Next(5) == 0 && fapsol3 != -1) - chat = "Well, I like " + Main.npc[fapsol3].GivenName + ", but I, ah...I have my eyes on someone else."; - break; - case NPCID.DD2Bartender: - int fapsol4 = NPC.FindFirstNPC(mod.NPCType("FAP")); - if (Main.rand.Next(5) == 0 && !Main.dayTime && Main.moonPhase == 0) - chat = "Care for a little Moonshine?"; - if (Main.rand.Next(10) == 0 && fapsol4 != -1) - chat = "Sheesh, " + Main.npc[fapsol4].GivenName + " is a little cruel, isn't she? I never claimed to be an expert on anything but ale!"; - break; - case NPCID.Pirate: - if (Main.rand.Next(5) == 0 && !CalamityWorld.downedLeviathan) - chat = "Aye, I’ve heard of a mythical creature in the oceans, singing with an alluring voice. Careful when yer fishin out there."; - if (Main.rand.Next(5) == 0 && CalamityWorld.downedAquaticScourge) - chat = "I have to thank ye again for takin' care of that sea serpent. Or was that another one..."; - break; - case NPCID.Cyborg: - if (Main.rand.Next(10) == 0 && Main.raining) - chat = "All these moments will be lost in time. Like tears...in the rain."; - if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) - chat = "Always shoot for the moon! It has clearly worked before."; - if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) - chat = "Draedon? He's...a little 'high octane' if you know what I mean."; - if (Main.rand.Next(10) == 0 && !CalamityWorld.downedPlaguebringer && NPC.downedGolemBoss) - chat = "Those oversized bugs terrorizing the jungle... Surely you of all people could shut them down!"; - break; - case NPCID.Clothier: - if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) - chat = "Who you gonna call?"; - if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) - chat = "Those screams...I’m not sure why, but I feel like a nameless fear has awoken in my heart."; - if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) - chat = "I can faintly hear ghostly shrieks from the dungeon...and not ones I’m familiar with at all. Just what is going on in there?"; - if (Main.rand.Next(10) == 0 && CalamityWorld.downedPolterghast) - chat = "Whatever that thing was, I’m glad it’s gone now."; - if (Main.rand.Next(5) == 0 && NPC.AnyNPCs(NPCID.MoonLordCore)) - chat = "Houston, we've had a problem."; - break; - case NPCID.Steampunker: - bool hasPortalGun = false; - for (int k = 0; k < 255; k++) - { - Player player = Main.player[k]; - if (player.active) - { - for (int j = 0; j < player.inventory.Length; j++) - { - if (player.inventory[j].type == ItemID.PortalGun) - { - hasPortalGun = true; - } - } - } - } - if (Main.rand.Next(5) == 0 && NPC.downedMoonlord) - chat = "Yep! I'm also considering being a space pirate now."; - if (Main.rand.Next(5) == 0 && hasPortalGun) - chat = "Just what is that contraption? It makes my Teleporters look like child's play!"; - break; - case NPCID.DyeTrader: - int permadong2 = NPC.FindFirstNPC(mod.NPCType("DILF")); - if (Main.rand.Next(5) == 0) - chat = "Have you seen those gemstone creatures in the caverns? Their colors are simply breathtaking!"; - if (Main.rand.Next(5) == 0 && permadong2 != -1) - chat = "Do you think " + Main.npc[permadong2].GivenName + " knows how to 'let it go?'"; - break; - case NPCID.TaxCollector: - int platinumCoins = 0; - for (int k = 0; k < 255; k++) - { - Player player = Main.player[k]; - if (player.active) - { - for (int j = 0; j < player.inventory.Length; j++) - { - if (player.inventory[j].type == ItemID.PlatinumCoin) - { - platinumCoins = player.inventory[j].stack; - } - } - } - } - if (Main.rand.Next(5) == 0 && platinumCoins >= 100) - chat = "BAH! Doesn't seem like I'll ever be able to quarrel with the debts of the town again!"; - if (Main.rand.Next(5) == 0 && platinumCoins >= 500) - chat = "Where and how are you getting all of this money?"; - if (Main.rand.Next(5) == 0 && !CalamityWorld.downedBrimstoneElemental) - chat = "Perhaps with all that time you've got you could check those old ruins? Certainly something of value in it for you!"; - if (Main.rand.Next(10) == 0 && CalamityWorld.downedDoG) - chat = "Devourer of what, you said? Devourer of Funds, if its payroll is anything to go by!"; - break; - case NPCID.Demolitionist: - if (Main.rand.Next(5) == 0 && CalamityWorld.downedDoG) - chat = "God Slayer Dynamite? Boy do I like the sound of that!"; - break; - } - } - #endregion + public override bool PreDraw(NPC npc, SpriteBatch spriteBatch, Color drawColor) + { + if (Main.player[Main.myPlayer].GetModPlayer(mod).trippy) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + float num66 = 0f; + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Microsoft.Xna.Framework.Color color9 = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, 0); + Microsoft.Xna.Framework.Color alpha15 = npc.GetAlpha(color9); + float num212 = 0.99f; + alpha15.R = (byte)((float)alpha15.R * num212); + alpha15.G = (byte)((float)alpha15.G * num212); + alpha15.B = (byte)((float)alpha15.B * num212); + alpha15.A = (byte)((float)alpha15.A * num212); + for (int num213 = 0; num213 < 4; num213++) + { + Vector2 position9 = npc.position; + float num214 = Math.Abs(npc.Center.X - Main.player[Main.myPlayer].Center.X); + float num215 = Math.Abs(npc.Center.Y - Main.player[Main.myPlayer].Center.Y); + if (num213 == 0 || num213 == 2) + { + position9.X = Main.player[Main.myPlayer].Center.X + num214; + } + else + { + position9.X = Main.player[Main.myPlayer].Center.X - num214; + } + position9.X -= (float)(npc.width / 2); + if (num213 == 0 || num213 == 1) + { + position9.Y = Main.player[Main.myPlayer].Center.Y + num215; + } + else + { + position9.Y = Main.player[Main.myPlayer].Center.Y - num215; + } + position9.Y -= (float)(npc.height / 2); + Main.spriteBatch.Draw(Main.npcTexture[npc.type], new Vector2(position9.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)Main.npcTexture[npc.type].Width * npc.scale / 2f + vector11.X * npc.scale, position9.Y - Main.screenPosition.Y + (float)npc.height - (float)Main.npcTexture[npc.type].Height * npc.scale / (float)Main.npcFrameCount[npc.type] + 4f + vector11.Y * npc.scale + num66 + npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(npc.frame), alpha15, npc.rotation, vector11, npc.scale, spriteEffects, 0f); + } + } + return true; + } + #endregion - #region ShopStuff - public override void SetupShop(int type, Chest shop, ref int nextSlot) + #region GetChat + public override void GetChat(NPC npc, ref string chat) + { + switch (npc.type) + { + case NPCID.Guide: + if (Main.rand.Next(20) == 0 && Main.hardMode) + chat = "Could you be so kind as to, ah...check hell for me...? I left someone I kind of care about down there."; + if (Main.rand.Next(20) == 0 && CalamityWorld.spawnAstralMeteor) + chat = "I have this sudden shiver up my spine, like a meteor just fell and thousands of innocent creatures turned into monsters from the stars."; + if (Main.rand.Next(20) == 0 && NPC.downedMoonlord) + chat = "The dungeon seems even more restless than usual, watch out for the powerful abominations stirring up in there."; + if (Main.rand.Next(20) == 0 && CalamityWorld.downedProvidence) + chat = "Seems like extinguishing that butterfly caused its life to seep into the hallowed areas, try taking a peek there and see what you can find!"; + if (Main.rand.Next(20) == 0 && CalamityWorld.downedProvidence) + chat = "I've heard there is a portal of antimatter absorbing everything it can see in the dungeon, try using the Rune of Kos there!"; + break; + case NPCID.PartyGirl: + int fapsol = NPC.FindFirstNPC(mod.NPCType("FAP")); + if (Main.rand.Next(10) == 0 && fapsol != -1) + chat = "I have a feeling we're going to have absolutely fantastic parties with " + Main.npc[fapsol].GivenName + " around!"; + if (Main.rand.Next(5) == 0 && Main.eclipse) + chat = "I think my light display is turning into an accidental bug zapper. At least the monsters are enjoying it."; + if (Main.rand.Next(5) == 0 && Main.eclipse) + chat = "Ooh! I love parties where everyone wears a scary costume!"; + break; + case NPCID.Wizard: + int permadong = NPC.FindFirstNPC(mod.NPCType("DILF")); + if (Main.rand.Next(10) == 0 && permadong != -1) + chat = "I'd let " + Main.npc[permadong].GivenName + " coldheart MY icicle."; + if (Main.rand.Next(10) == 0 && CalamityWorld.spawnAstralMeteor) + chat = "Space just got way too close for comfort."; + break; + case NPCID.Dryad: + if (Main.rand.Next(5) == 0 && CalamityWorld.buffedEclipse && Main.eclipse) + chat = "There's a dark solar energy emanating from the moths that appear during this time. Ah, the moths as you progress further get more powerful...hmm...what power was Yharon holding back?"; + if (Main.rand.Next(10) == 0 && CalamityWorld.spawnAstralMeteor) + chat = "That starborne illness sits upon this land like a blister. Do even more vile forces of corruption exist in worlds beyond?"; + break; + case NPCID.Stylist: + int fapsol2 = NPC.FindFirstNPC(mod.NPCType("FAP")); + string worldEvil = WorldGen.crimson ? "Crimson" : "Corruption"; + if (Main.rand.Next(15) == 0 && fapsol2 != -1) + chat = "Sometimes I catch " + Main.npc[fapsol2].GivenName + " sneaking up from behind me."; + if (Main.rand.Next(15) == 0 && CalamityWorld.spawnAstralMeteor) + chat = "Please don't catch space lice. Or " + worldEvil + " lice. Or just lice in general."; + break; + case NPCID.GoblinTinkerer: + if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) + chat = "You know...we haven't had an invasion in a while..."; + break; + case NPCID.ArmsDealer: + if (Main.rand.Next(5) == 0 && Main.eclipse) + chat = "That's the biggest moth I've ever seen for sure. You'd need one big gun to take one of those down."; + if (Main.rand.Next(10) == 0 && CalamityWorld.downedDoG) + chat = "Is it me or are your weapons getting bigger and bigger?"; + break; + case NPCID.Merchant: + if (Main.rand.Next(5) == 0 && NPC.downedMoonlord) + chat = "Each night seems only more foreboding than the last. I feel unthinkable terrors are watching your every move."; + if (Main.rand.Next(5) == 0 && Main.eclipse) + chat = "Are you daft?! Turn off those lamps!"; + if (Main.rand.Next(5) == 0 && Main.raining && CalamityWorld.sulphurTiles > 30) + chat = "If this acid rain keeps up, there'll be a shortage of Dirt Blocks soon enough!"; + break; + case NPCID.Mechanic: + int fapsol3 = NPC.FindFirstNPC(mod.NPCType("FAP")); + if (Main.rand.Next(5) == 0 && NPC.downedMoonlord) + chat = "What do you mean your traps aren't making the cut? Don't look at me!"; + if (Main.rand.Next(5) == 0 && Main.eclipse) + chat = "Um...should my nightlight be on?"; + if (Main.rand.Next(5) == 0 && fapsol3 != -1) + chat = "Well, I like " + Main.npc[fapsol3].GivenName + ", but I, ah...I have my eyes on someone else."; + break; + case NPCID.DD2Bartender: + int fapsol4 = NPC.FindFirstNPC(mod.NPCType("FAP")); + if (Main.rand.Next(5) == 0 && !Main.dayTime && Main.moonPhase == 0) + chat = "Care for a little Moonshine?"; + if (Main.rand.Next(10) == 0 && fapsol4 != -1) + chat = "Sheesh, " + Main.npc[fapsol4].GivenName + " is a little cruel, isn't she? I never claimed to be an expert on anything but ale!"; + break; + case NPCID.Pirate: + if (Main.rand.Next(5) == 0 && !CalamityWorld.downedLeviathan) + chat = "Aye, I’ve heard of a mythical creature in the oceans, singing with an alluring voice. Careful when yer fishin out there."; + if (Main.rand.Next(5) == 0 && CalamityWorld.downedAquaticScourge) + chat = "I have to thank ye again for takin' care of that sea serpent. Or was that another one..."; + break; + case NPCID.Cyborg: + if (Main.rand.Next(10) == 0 && Main.raining) + chat = "All these moments will be lost in time. Like tears...in the rain."; + if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) + chat = "Always shoot for the moon! It has clearly worked before."; + if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) + chat = "Draedon? He's...a little 'high octane' if you know what I mean."; + if (Main.rand.Next(10) == 0 && !CalamityWorld.downedPlaguebringer && NPC.downedGolemBoss) + chat = "Those oversized bugs terrorizing the jungle... Surely you of all people could shut them down!"; + break; + case NPCID.Clothier: + if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) + chat = "Who you gonna call?"; + if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) + chat = "Those screams...I’m not sure why, but I feel like a nameless fear has awoken in my heart."; + if (Main.rand.Next(10) == 0 && NPC.downedMoonlord) + chat = "I can faintly hear ghostly shrieks from the dungeon...and not ones I’m familiar with at all. Just what is going on in there?"; + if (Main.rand.Next(10) == 0 && CalamityWorld.downedPolterghast) + chat = "Whatever that thing was, I’m glad it’s gone now."; + if (Main.rand.Next(5) == 0 && NPC.AnyNPCs(NPCID.MoonLordCore)) + chat = "Houston, we've had a problem."; + break; + case NPCID.Steampunker: + bool hasPortalGun = false; + for (int k = 0; k < 255; k++) + { + Player player = Main.player[k]; + if (player.active) + { + for (int j = 0; j < player.inventory.Length; j++) + { + if (player.inventory[j].type == ItemID.PortalGun) + { + hasPortalGun = true; + } + } + } + } + if (Main.rand.Next(5) == 0 && NPC.downedMoonlord) + chat = "Yep! I'm also considering being a space pirate now."; + if (Main.rand.Next(5) == 0 && hasPortalGun) + chat = "Just what is that contraption? It makes my Teleporters look like child's play!"; + break; + case NPCID.DyeTrader: + int permadong2 = NPC.FindFirstNPC(mod.NPCType("DILF")); + if (Main.rand.Next(5) == 0) + chat = "Have you seen those gemstone creatures in the caverns? Their colors are simply breathtaking!"; + if (Main.rand.Next(5) == 0 && permadong2 != -1) + chat = "Do you think " + Main.npc[permadong2].GivenName + " knows how to 'let it go?'"; + break; + case NPCID.TaxCollector: + int platinumCoins = 0; + for (int k = 0; k < 255; k++) + { + Player player = Main.player[k]; + if (player.active) + { + for (int j = 0; j < player.inventory.Length; j++) + { + if (player.inventory[j].type == ItemID.PlatinumCoin) + { + platinumCoins = player.inventory[j].stack; + } + } + } + } + if (Main.rand.Next(5) == 0 && platinumCoins >= 100) + chat = "BAH! Doesn't seem like I'll ever be able to quarrel with the debts of the town again!"; + if (Main.rand.Next(5) == 0 && platinumCoins >= 500) + chat = "Where and how are you getting all of this money?"; + if (Main.rand.Next(5) == 0 && !CalamityWorld.downedBrimstoneElemental) + chat = "Perhaps with all that time you've got you could check those old ruins? Certainly something of value in it for you!"; + if (Main.rand.Next(10) == 0 && CalamityWorld.downedDoG) + chat = "Devourer of what, you said? Devourer of Funds, if its payroll is anything to go by!"; + break; + case NPCID.Demolitionist: + if (Main.rand.Next(5) == 0 && CalamityWorld.downedDoG) + chat = "God Slayer Dynamite? Boy do I like the sound of that!"; + break; + } + } + #endregion + + #region ShopStuff + public override void SetupShop(int type, Chest shop, ref int nextSlot) { if (type == NPCID.Merchant && (Main.player[Main.myPlayer].HasItem(mod.ItemType("FirestormCannon")) || Main.player[Main.myPlayer].HasItem(mod.ItemType("SpectralstormCannon")))) { shop.item[nextSlot].SetDefaults(ItemID.Flare); - nextSlot++; + nextSlot++; } if (type == NPCID.Merchant) { if (NPC.downedBoss1) { shop.item[nextSlot].SetDefaults(ItemID.ApprenticeBait); - nextSlot++; + nextSlot++; } if (NPC.downedBoss2) { shop.item[nextSlot].SetDefaults(ItemID.JourneymanBait); - nextSlot++; - if (WorldGen.crimson) - { - shop.item[nextSlot].SetDefaults(ItemID.Vilethorn); - nextSlot++; - } - else - { - shop.item[nextSlot].SetDefaults(ItemID.TheRottedFork); - nextSlot++; - } + nextSlot++; + if (WorldGen.crimson) + { + shop.item[nextSlot].SetDefaults(ItemID.Vilethorn); + nextSlot++; + } + else + { + shop.item[nextSlot].SetDefaults(ItemID.TheRottedFork); + nextSlot++; + } } if (NPC.downedBoss3) { shop.item[nextSlot].SetDefaults(ItemID.MasterBait); - nextSlot++; + nextSlot++; } } if (type == NPCID.ArmsDealer && (Main.player[Main.myPlayer].HasItem(mod.ItemType("Impaler")))) { shop.item[nextSlot].SetDefaults(ItemID.Stake); - nextSlot++; + nextSlot++; } if (type == NPCID.ArmsDealer) { if (NPC.downedBoss2) { - if (WorldGen.crimson) - { - shop.item[nextSlot].SetDefaults(ItemID.Musket); - nextSlot++; - } - else - { - shop.item[nextSlot].SetDefaults(ItemID.TheUndertaker); - nextSlot++; - } + if (WorldGen.crimson) + { + shop.item[nextSlot].SetDefaults(ItemID.Musket); + nextSlot++; + } + else + { + shop.item[nextSlot].SetDefaults(ItemID.TheUndertaker); + nextSlot++; + } } - if (Main.hardMode) - { - shop.item[nextSlot].SetDefaults(mod.ItemType("MagnumRounds")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(1, 50, 0, 0); - nextSlot++; - } - if (NPC.downedPlantBoss) - { - shop.item[nextSlot].SetDefaults(mod.ItemType("GrenadeRounds")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); - nextSlot++; - } - } + if (Main.hardMode) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("MagnumRounds")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(6, 0, 0, 0); + nextSlot++; + } + if (NPC.downedPlantBoss) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("GrenadeRounds")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(9, 0, 0, 0); + nextSlot++; + } + if (NPC.downedMoonlord) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("ExplosiveShells")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(13, 50, 0, 0); + nextSlot++; + } + } if (type == NPCID.Dryad) { - shop.item[nextSlot].SetDefaults(ItemID.JungleRose); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(ItemID.NaturesGift); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(ItemID.GoblinBattleStandard); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); - nextSlot++; - if (NPC.downedSlimeKing) + shop.item[nextSlot].SetDefaults(ItemID.JungleRose); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.NaturesGift); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.GoblinBattleStandard); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 1, 0, 0); + nextSlot++; + if (NPC.downedSlimeKing) { shop.item[nextSlot].SetDefaults(ItemID.SlimeCrown); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0); - nextSlot++; + nextSlot++; } if (CalamityWorld.downedDesertScourge) { shop.item[nextSlot].SetDefaults(mod.ItemType("DriedSeafood")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 2, 0, 0); - nextSlot++; + nextSlot++; } if (NPC.downedBoss1) { shop.item[nextSlot].SetDefaults(ItemID.SuspiciousLookingEye); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 3, 0, 0); - nextSlot++; + nextSlot++; } if (CalamityWorld.downedCrabulon) { shop.item[nextSlot].SetDefaults(mod.ItemType("DecapoditaSprout")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 4, 0, 0); - nextSlot++; + nextSlot++; } if (NPC.downedBoss2) { - shop.item[nextSlot].SetDefaults(ItemID.BloodySpine); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 6, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(ItemID.WormFood); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 6, 0, 0); - nextSlot++; - if (WorldGen.crimson) - { - if (Main.expertMode) - { - shop.item[nextSlot].SetDefaults(ItemID.WormScarf); - nextSlot++; - } - shop.item[nextSlot].SetDefaults(ItemID.BandofStarpower); - nextSlot++; - } - else - { - if (Main.expertMode) - { - shop.item[nextSlot].SetDefaults(ItemID.BrainOfConfusion); - nextSlot++; - } - shop.item[nextSlot].SetDefaults(ItemID.PanicNecklace); - nextSlot++; - } + shop.item[nextSlot].SetDefaults(ItemID.BloodySpine); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 6, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.WormFood); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 6, 0, 0); + nextSlot++; + if (WorldGen.crimson) + { + if (Main.expertMode) + { + shop.item[nextSlot].SetDefaults(ItemID.WormScarf); + nextSlot++; + } + shop.item[nextSlot].SetDefaults(ItemID.BandofStarpower); + nextSlot++; + } + else + { + if (Main.expertMode) + { + shop.item[nextSlot].SetDefaults(ItemID.BrainOfConfusion); + nextSlot++; + } + shop.item[nextSlot].SetDefaults(ItemID.PanicNecklace); + nextSlot++; + } } if (CalamityWorld.downedPerforator) { shop.item[nextSlot].SetDefaults(mod.ItemType("BloodyWormFood")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("RottenBrain")); - nextSlot++; - } + nextSlot++; + if (Main.expertMode) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("RottenBrain")); + nextSlot++; + } + } if (CalamityWorld.downedHiveMind) { shop.item[nextSlot].SetDefaults(mod.ItemType("Teratoma")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 10, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("BloodyWormTooth")); - nextSlot++; - } + nextSlot++; + if (Main.expertMode) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("BloodyWormTooth")); + nextSlot++; + } + } if (CalamityWorld.downedSlimeGod) { shop.item[nextSlot].SetDefaults(mod.ItemType("OverloadedSludge")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 15, 0, 0); - nextSlot++; + nextSlot++; } - if (CalamityWorld.downedAquaticScourge) - { - shop.item[nextSlot].SetDefaults(mod.ItemType("Seafood")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); - nextSlot++; - } - if (NPC.downedHalloweenKing) - { - shop.item[nextSlot].SetDefaults(ItemID.PumpkinMoonMedallion); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); - nextSlot++; - } - if (NPC.downedChristmasIceQueen) - { - shop.item[nextSlot].SetDefaults(ItemID.NaughtyPresent); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); - nextSlot++; - } - if (NPC.downedFishron) + if (CalamityWorld.downedAquaticScourge) { - shop.item[nextSlot].SetDefaults(ItemID.TruffleWorm); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 40, 0, 0); - nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("Seafood")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); + nextSlot++; + } + if (NPC.downedHalloweenKing) + { + shop.item[nextSlot].SetDefaults(ItemID.PumpkinMoonMedallion); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); + nextSlot++; + } + if (NPC.downedChristmasIceQueen) + { + shop.item[nextSlot].SetDefaults(ItemID.NaughtyPresent); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); + nextSlot++; } } - if (type == NPCID.GoblinTinkerer) - { - shop.item[nextSlot].SetDefaults(mod.ItemType("MeleeLevelMeter")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("RangedLevelMeter")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("MagicLevelMeter")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("SummonLevelMeter")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("RogueLevelMeter")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); - nextSlot++; - } - if (type == NPCID.Clothier) - { - shop.item[nextSlot].SetDefaults(mod.ItemType("BlueBrickWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("BlueSlabWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("BlueTiledWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("GreenBrickWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("GreenSlabWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("GreenTiledWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("PinkBrickWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("PinkSlabWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - shop.item[nextSlot].SetDefaults(mod.ItemType("PinkTiledWallUnsafe")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); - nextSlot++; - } + if (type == NPCID.GoblinTinkerer) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("MeleeLevelMeter")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("RangedLevelMeter")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("MagicLevelMeter")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("SummonLevelMeter")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("RogueLevelMeter")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 5, 0, 0); + nextSlot++; + } + if (type == NPCID.Clothier) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("BlueBrickWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("BlueSlabWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("BlueTiledWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("GreenBrickWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("GreenSlabWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("GreenTiledWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("PinkBrickWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("PinkSlabWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("PinkTiledWallUnsafe")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 0, 10); + nextSlot++; + } if (type == NPCID.Steampunker) { if (NPC.downedMechBoss1) { shop.item[nextSlot].SetDefaults(ItemID.MechanicalWorm); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); - nextSlot++; + nextSlot++; } if (NPC.downedMechBoss2) { shop.item[nextSlot].SetDefaults(ItemID.MechanicalEye); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); - nextSlot++; + nextSlot++; } if (NPC.downedMechBoss3) { shop.item[nextSlot].SetDefaults(ItemID.MechanicalSkull); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); - nextSlot++; + nextSlot++; + } + if (Main.player[Main.myPlayer].GetModPlayer(mod).ZoneAstral && CalamityWorld.spawnAstralMeteor) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("AstralSolution")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 5, 0); + nextSlot++; } - if (Main.player[Main.myPlayer].GetModPlayer(mod).ZoneAstral && CalamityWorld.spawnAstralMeteor) - { - shop.item[nextSlot].SetDefaults(mod.ItemType("AstralSolution")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 0, 5, 0); - nextSlot++; - } } if (type == NPCID.Wizard) { @@ -12004,658 +12213,658 @@ namespace CalamityMod.NPCs { shop.item[nextSlot].SetDefaults(mod.ItemType("CryoKey")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 15, 0, 0); - nextSlot++; + nextSlot++; } if (CalamityWorld.downedBrimstoneElemental) { shop.item[nextSlot].SetDefaults(mod.ItemType("CharredIdol")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); - nextSlot++; + nextSlot++; } if (CalamityWorld.downedCalamitas) { shop.item[nextSlot].SetDefaults(mod.ItemType("BlightedEyeball")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); - nextSlot++; + nextSlot++; } - if (CalamityWorld.downedAstrageldon) - { - shop.item[nextSlot].SetDefaults(mod.ItemType("AstralChunk")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); - nextSlot++; - } - if (CalamityWorld.downedStarGod) + if (CalamityWorld.downedAstrageldon) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("AstralChunk")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); + nextSlot++; + } + if (CalamityWorld.downedStarGod) { shop.item[nextSlot].SetDefaults(mod.ItemType("Starcore")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 30, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(ItemID.SpectreStaff); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(ItemID.InfernoFork); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(ItemID.ShadowbeamStaff); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); - nextSlot++; - } + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.SpectreStaff); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.InfernoFork); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.ShadowbeamStaff); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); + nextSlot++; + } if (NPC.downedMoonlord) { shop.item[nextSlot].SetDefaults(ItemID.CelestialSigil); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(3, 0, 0, 0); - nextSlot++; + nextSlot++; } if (CalamityWorld.downedGuardians) { shop.item[nextSlot].SetDefaults(mod.ItemType("ProfanedShard")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(10, 0, 0, 0); - nextSlot++; + nextSlot++; } } if (type == NPCID.WitchDoctor) { shop.item[nextSlot].SetDefaults(ItemID.Abeemination); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 8, 0, 0); - nextSlot++; - if (NPC.downedPlantBoss) + nextSlot++; + if (NPC.downedPlantBoss) { - shop.item[nextSlot].SetDefaults(mod.ItemType("BulbofDoom")); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); - nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("BulbofDoom")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 20, 0, 0); + nextSlot++; } if (NPC.downedGolemBoss) { - shop.item[nextSlot].SetDefaults(ItemID.SolarTablet); - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); - nextSlot++; - shop.item[nextSlot].SetDefaults(ItemID.LihzahrdPowerCell); + shop.item[nextSlot].SetDefaults(ItemID.SolarTablet); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 25, 0, 0); + nextSlot++; + shop.item[nextSlot].SetDefaults(ItemID.LihzahrdPowerCell); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 30, 0, 0); - nextSlot++; - } + nextSlot++; + } if (CalamityWorld.downedScavenger) { shop.item[nextSlot].SetDefaults(mod.ItemType("AncientMedallion")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 50, 0, 0); - nextSlot++; + nextSlot++; } if (CalamityWorld.downedPlaguebringer) { shop.item[nextSlot].SetDefaults(mod.ItemType("Abomination")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 50, 0, 0); - nextSlot++; + nextSlot++; } if (CalamityWorld.downedBumble) { shop.item[nextSlot].SetDefaults(mod.ItemType("BirbPheromones")); shop.item[nextSlot].shopCustomPrice = Item.buyPrice(20, 0, 0, 0); - nextSlot++; + nextSlot++; } } if (type == NPCID.TravellingMerchant && Main.moonPhase == 0) { shop.item[nextSlot].SetDefaults(mod.ItemType("FrostBarrier")); - nextSlot++; + nextSlot++; } } - #endregion + #endregion - #region AnyBossNPCS - public static bool AnyBossNPCS() - { - Mod mod = ModLoader.GetMod("CalamityMod"); - for (int i = 0; i < 200; i++) - { - if (Main.npc[i].active && (Main.npc[i].boss || Main.npc[i].type == NPCID.EaterofWorldsHead || Main.npc[i].type == mod.NPCType("SlimeGodRun") || - Main.npc[i].type == mod.NPCType("SlimeGodRunSplit") || Main.npc[i].type == mod.NPCType("SlimeGod") || Main.npc[i].type == mod.NPCType("SlimeGodSplit"))) - { - return true; - } - } - return false; - } - #endregion + #region AnyBossNPCS + public static bool AnyBossNPCS() + { + Mod mod = ModLoader.GetMod("CalamityMod"); + for (int i = 0; i < 200; i++) + { + if (Main.npc[i].active && (Main.npc[i].boss || Main.npc[i].type == NPCID.EaterofWorldsHead || Main.npc[i].type == mod.NPCType("SlimeGodRun") || + Main.npc[i].type == mod.NPCType("SlimeGodRunSplit") || Main.npc[i].type == mod.NPCType("SlimeGod") || Main.npc[i].type == mod.NPCType("SlimeGodSplit"))) + { + return true; + } + } + return false; + } + #endregion - #region AnyLivingPlayers - public static bool AnyLivingPlayers() - { - for (int i = 0; i < 255; i++) - { - if (Main.player[i].active && !Main.player[i].dead && !Main.player[i].ghost) - { - return true; - } - } - return false; - } - #endregion + #region AnyLivingPlayers + public static bool AnyLivingPlayers() + { + for (int i = 0; i < 255; i++) + { + if (Main.player[i].active && !Main.player[i].dead && !Main.player[i].ghost) + { + return true; + } + } + return false; + } + #endregion - #region OldDukeSpawn - public static void OldDukeSpawn(int plr, int Type) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - Player player = Main.player[plr]; - if (!player.active || player.dead) - { - return; - } - int m = 0; - while (m < 1000) - { - Projectile projectile = Main.projectile[m]; - if (projectile.active && projectile.bobber && projectile.owner == plr) - { - int num8 = NPC.NewNPC((int)projectile.Center.X, (int)projectile.Center.Y + 100, mod.NPCType("OldDuke"), 0, 0f, 0f, 0f, 0f, 255); - string typeName2 = Main.npc[num8].TypeName; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue("Announcement.HasAwoken", typeName2), 175, 75, 255, false); - return; - } - if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey("Announcement.HasAwoken", new object[] - { - Main.npc[num8].GetTypeNetName() - }), new Color(175, 75, 255), -1); - return; - } - break; - } - else - { - m++; - } - } - } - #endregion + #region OldDukeSpawn + public static void OldDukeSpawn(int plr, int Type) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Player player = Main.player[plr]; + if (!player.active || player.dead) + { + return; + } + int m = 0; + while (m < 1000) + { + Projectile projectile = Main.projectile[m]; + if (projectile.active && projectile.bobber && projectile.owner == plr) + { + int num8 = NPC.NewNPC((int)projectile.Center.X, (int)projectile.Center.Y + 100, mod.NPCType("OldDuke"), 0, 0f, 0f, 0f, 0f, 255); + string typeName2 = Main.npc[num8].TypeName; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue("Announcement.HasAwoken", typeName2), 175, 75, 255, false); + return; + } + if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey("Announcement.HasAwoken", new object[] + { + Main.npc[num8].GetTypeNetName() + }), new Color(175, 75, 255), -1); + return; + } + break; + } + else + { + m++; + } + } + } + #endregion - #region DespawnHostileProjectiles - public void DespawnProj() - { - int proj; - for (int x = 0; x < 1000; x = proj + 1) - { - Projectile projectile = Main.projectile[x]; - if (projectile.active && projectile.hostile && !projectile.friendly && projectile.damage > 0) - { - projectile.Kill(); - } - proj = x; - } - } - #endregion + #region DespawnHostileProjectiles + public void DespawnProj() + { + int proj; + for (int x = 0; x < 1000; x = proj + 1) + { + Projectile projectile = Main.projectile[x]; + if (projectile.active && projectile.hostile && !projectile.friendly && projectile.damage > 0) + { + projectile.Kill(); + } + proj = x; + } + } + #endregion - #region Astral things - public static void DoHitDust(NPC npc, int hitDirection, int dustType = 5, float xSpeedMult = 1f, int numHitDust = 5, int numDeathDust = 20) - { - for (int k = 0; k < 5; k++) - { - Dust.NewDust(npc.position, npc.width, npc.height, dustType, hitDirection * xSpeedMult, -1f, 0, default(Color), 1f); - } - if (npc.life <= 0) - { - for (int k = 0; k < 20; k++) - { - Dust.NewDust(npc.position, npc.width, npc.height, dustType, hitDirection * xSpeedMult, -1f, 0, default(Color), 1f); - } - } - } + #region Astral things + public static void DoHitDust(NPC npc, int hitDirection, int dustType = 5, float xSpeedMult = 1f, int numHitDust = 5, int numDeathDust = 20) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, dustType, hitDirection * xSpeedMult, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 20; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, dustType, hitDirection * xSpeedMult, -1f, 0, default(Color), 1f); + } + } + } - public static void DoFlyingAI(NPC npc, float maxSpeed, float acceleration, float circleTime, float minDistanceTarget = 150f, bool shouldAttackTarget = true) - { - //Pick a new target. - if (npc.target < 0 || npc.target >= 255 || Main.player[npc.target].dead) - { - npc.TargetClosest(true); - } - Player myTarget = Main.player[npc.target]; - Vector2 toTarget = (myTarget.Center - npc.Center); - float distanceToTarget = toTarget.Length(); - Vector2 maxVelocity = toTarget; - if (distanceToTarget < 3f) - { - maxVelocity = npc.velocity; - } - else - { - float magnitude = maxSpeed / distanceToTarget; - maxVelocity *= magnitude; - } - //Circular motion - npc.ai[0]++; - //y motion - if (npc.ai[0] > circleTime * 0.5f) - { - npc.velocity.Y += acceleration; - } - else - { - npc.velocity.Y -= acceleration; - } - //x motion - if (npc.ai[0] < circleTime * 0.25f || npc.ai[0] > circleTime * 0.75f) - { - npc.velocity.X += acceleration; - } - else - { - npc.velocity.X -= acceleration; - } - //reset - if (npc.ai[0] > circleTime) - { - npc.ai[0] = 0f; - } - //if close enough - if (shouldAttackTarget && distanceToTarget < minDistanceTarget) - { - npc.velocity += maxVelocity * 0.007f; - } - if (myTarget.dead) - { - maxVelocity.X = npc.direction * maxSpeed / 2f; - maxVelocity.Y = -maxSpeed / 2f; - } - //maximise velocity - if (npc.velocity.X < maxVelocity.X) - { - npc.velocity.X += acceleration; - } - if (npc.velocity.X > maxVelocity.X) - { - npc.velocity.X -= acceleration; - } - if (npc.velocity.Y < maxVelocity.Y) - { - npc.velocity.Y += acceleration; - } - if (npc.velocity.Y > maxVelocity.Y) - { - npc.velocity.Y -= acceleration; - } - //rotate towards player if alive - if (!myTarget.dead) - { - npc.rotation = toTarget.ToRotation(); - } - else //don't, do velocity instead - { - npc.rotation = npc.velocity.ToRotation(); - } - npc.rotation += MathHelper.Pi; - //tile collision - float collisionDamp = 0.7f; - if (npc.collideX) - { - npc.netUpdate = true; - npc.velocity.X = npc.oldVelocity.X * -collisionDamp; - if (npc.direction == -1 && npc.velocity.X > 0f && npc.velocity.X < 2f) - { - npc.velocity.X = 2f; - } - if (npc.direction == 1 && npc.velocity.X < 0f && npc.velocity.X > -2f) - { - npc.velocity.X = -2f; - } - } - if (npc.collideY) - { - npc.netUpdate = true; - npc.velocity.Y = npc.oldVelocity.Y * -collisionDamp; - if (npc.velocity.Y > 0f && npc.velocity.Y < 1.5f) - { - npc.velocity.Y = 1.5f; - } - if (npc.velocity.Y < 0f && npc.velocity.Y > -1.5f) - { - npc.velocity.Y = -1.5f; - } - } - //water collision - if (npc.wet) - { - if (npc.velocity.Y > 0f) - { - npc.velocity.Y *= 0.95f; - } - npc.velocity.Y -= 0.3f; - if (npc.velocity.Y < -2f) npc.velocity.Y = -2f; - } - //Taken from source. Important for net? - if (((npc.velocity.X > 0f && npc.oldVelocity.X < 0f) || (npc.velocity.X < 0f && npc.oldVelocity.X > 0f) || (npc.velocity.Y > 0f && npc.oldVelocity.Y < 0f) || (npc.velocity.Y < 0f && npc.oldVelocity.Y > 0f)) && !npc.justHit) - { - npc.netUpdate = true; - } - } + public static void DoFlyingAI(NPC npc, float maxSpeed, float acceleration, float circleTime, float minDistanceTarget = 150f, bool shouldAttackTarget = true) + { + //Pick a new target. + if (npc.target < 0 || npc.target >= 255 || Main.player[npc.target].dead) + { + npc.TargetClosest(true); + } + Player myTarget = Main.player[npc.target]; + Vector2 toTarget = (myTarget.Center - npc.Center); + float distanceToTarget = toTarget.Length(); + Vector2 maxVelocity = toTarget; + if (distanceToTarget < 3f) + { + maxVelocity = npc.velocity; + } + else + { + float magnitude = maxSpeed / distanceToTarget; + maxVelocity *= magnitude; + } + //Circular motion + npc.ai[0]++; + //y motion + if (npc.ai[0] > circleTime * 0.5f) + { + npc.velocity.Y += acceleration; + } + else + { + npc.velocity.Y -= acceleration; + } + //x motion + if (npc.ai[0] < circleTime * 0.25f || npc.ai[0] > circleTime * 0.75f) + { + npc.velocity.X += acceleration; + } + else + { + npc.velocity.X -= acceleration; + } + //reset + if (npc.ai[0] > circleTime) + { + npc.ai[0] = 0f; + } + //if close enough + if (shouldAttackTarget && distanceToTarget < minDistanceTarget) + { + npc.velocity += maxVelocity * 0.007f; + } + if (myTarget.dead) + { + maxVelocity.X = npc.direction * maxSpeed / 2f; + maxVelocity.Y = -maxSpeed / 2f; + } + //maximise velocity + if (npc.velocity.X < maxVelocity.X) + { + npc.velocity.X += acceleration; + } + if (npc.velocity.X > maxVelocity.X) + { + npc.velocity.X -= acceleration; + } + if (npc.velocity.Y < maxVelocity.Y) + { + npc.velocity.Y += acceleration; + } + if (npc.velocity.Y > maxVelocity.Y) + { + npc.velocity.Y -= acceleration; + } + //rotate towards player if alive + if (!myTarget.dead) + { + npc.rotation = toTarget.ToRotation(); + } + else //don't, do velocity instead + { + npc.rotation = npc.velocity.ToRotation(); + } + npc.rotation += MathHelper.Pi; + //tile collision + float collisionDamp = 0.7f; + if (npc.collideX) + { + npc.netUpdate = true; + npc.velocity.X = npc.oldVelocity.X * -collisionDamp; + if (npc.direction == -1 && npc.velocity.X > 0f && npc.velocity.X < 2f) + { + npc.velocity.X = 2f; + } + if (npc.direction == 1 && npc.velocity.X < 0f && npc.velocity.X > -2f) + { + npc.velocity.X = -2f; + } + } + if (npc.collideY) + { + npc.netUpdate = true; + npc.velocity.Y = npc.oldVelocity.Y * -collisionDamp; + if (npc.velocity.Y > 0f && npc.velocity.Y < 1.5f) + { + npc.velocity.Y = 1.5f; + } + if (npc.velocity.Y < 0f && npc.velocity.Y > -1.5f) + { + npc.velocity.Y = -1.5f; + } + } + //water collision + if (npc.wet) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y *= 0.95f; + } + npc.velocity.Y -= 0.3f; + if (npc.velocity.Y < -2f) npc.velocity.Y = -2f; + } + //Taken from source. Important for net? + if (((npc.velocity.X > 0f && npc.oldVelocity.X < 0f) || (npc.velocity.X < 0f && npc.oldVelocity.X > 0f) || (npc.velocity.Y > 0f && npc.oldVelocity.Y < 0f) || (npc.velocity.Y < 0f && npc.oldVelocity.Y > 0f)) && !npc.justHit) + { + npc.netUpdate = true; + } + } - public static void DoSpiderWallAI(NPC npc, int transformType, float chaseMaxSpeed = 2f, float chaseAcceleration = 0.08f) - { - //GET NEW TARGET - if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead) - { - npc.TargetClosest(); - } - Vector2 between = Main.player[npc.target].Center - npc.Center; - float distance = between.Length(); - //modify vector depending on distance and speed. - if (distance == 0f) - { - between.X = npc.velocity.X; - between.Y = npc.velocity.Y; - } - else - { - distance = chaseMaxSpeed / distance; - between.X *= distance; - between.Y *= distance; - } - //update if target dead. - if (Main.player[npc.target].dead) - { - between.X = (float)npc.direction * chaseMaxSpeed / 2f; - between.Y = -chaseMaxSpeed / 2f; - } - npc.spriteDirection = -1; - //If spider can't see target, circle around to attempt to find the target. - if (!Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - //CIRCULAR MOTION, SIMILAR TO FLYING AI (Eater of Souls etc.) - npc.ai[0]++; - if (npc.ai[0] > 0f) - { - npc.velocity.Y += 0.023f; - } - else - { - npc.velocity.Y -= 0.023f; - } - if (npc.ai[0] < -100f || npc.ai[0] > 100f) - { - npc.velocity.X += 0.023f; - } - else - { - npc.velocity.X -= 0.023f; - } - if (npc.ai[0] > 200f) - { - npc.ai[0] = -200f; - } - npc.velocity.X += between.X * 0.007f; - npc.velocity.Y += between.Y * 0.007f; - npc.rotation = npc.velocity.ToRotation(); - if (npc.velocity.X > 1.5f) - { - npc.velocity.X *= 0.9f; - } - if (npc.velocity.X < -1.5f) - { - npc.velocity.X *= 0.9f; - } - if (npc.velocity.Y > 1.5f) - { - npc.velocity.Y *= 0.9f; - } - if (npc.velocity.Y < -1.5f) - { - npc.velocity.Y *= 0.9f; - } - npc.velocity.X = MathHelper.Clamp(npc.velocity.X, -3f, 3f); - npc.velocity.Y = MathHelper.Clamp(npc.velocity.Y, -3f, 3f); - } - else //CHASE TARGET - { - if (npc.velocity.X < between.X) - { - npc.velocity.X = npc.velocity.X + chaseAcceleration; - if (npc.velocity.X < 0f && between.X > 0f) - { - npc.velocity.X = npc.velocity.X + chaseAcceleration; - } - } - else if (npc.velocity.X > between.X) - { - npc.velocity.X = npc.velocity.X - chaseAcceleration; - if (npc.velocity.X > 0f && between.X < 0f) - { - npc.velocity.X = npc.velocity.X - chaseAcceleration; - } - } - if (npc.velocity.Y < between.Y) - { - npc.velocity.Y = npc.velocity.Y + chaseAcceleration; - if (npc.velocity.Y < 0f && between.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y + chaseAcceleration; - } - } - else if (npc.velocity.Y > between.Y) - { - npc.velocity.Y = npc.velocity.Y - chaseAcceleration; - if (npc.velocity.Y > 0f && between.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y - chaseAcceleration; - } - } - npc.rotation = between.ToRotation(); - } - //DAMP COLLISIONS OFF OF WALLS - float collisionDamp = 0.5f; - if (npc.collideX) - { - npc.netUpdate = true; - npc.velocity.X = npc.oldVelocity.X * -collisionDamp; - if (npc.direction == -1 && npc.velocity.X > 0f && npc.velocity.X < 2f) - { - npc.velocity.X = 2f; - } - if (npc.direction == 1 && npc.velocity.X < 0f && npc.velocity.X > -2f) - { - npc.velocity.X = -2f; - } - } - if (npc.collideY) - { - npc.netUpdate = true; - npc.velocity.Y = npc.oldVelocity.Y * -collisionDamp; - if (npc.velocity.Y > 0f && npc.velocity.Y < 1.5f) - { - npc.velocity.Y = 2f; - } - if (npc.velocity.Y < 0f && npc.velocity.Y > -1.5f) - { - npc.velocity.Y = -2f; - } - } - if (((npc.velocity.X > 0f && npc.oldVelocity.X < 0f) || (npc.velocity.X < 0f && npc.oldVelocity.X > 0f) || (npc.velocity.Y > 0f && npc.oldVelocity.Y < 0f) || (npc.velocity.Y < 0f && npc.oldVelocity.Y > 0f)) && !npc.justHit) - { - npc.netUpdate = true; - } - if (Main.netMode != 1) - { - int x = (int)npc.Center.X / 16; - int y = (int)npc.Center.Y / 16; - bool flag = false; - for (int i = x - 1; i <= x + 1; i++) - { - for (int j = y - 1; j <= y + 1; j++) - { - if (Main.tile[i, j] == null) - { - return; - } - if (Main.tile[i, j].wall > 0) - { - flag = true; - } - } - } - if (!flag) - { - npc.Transform(transformType); - return; - } - } - } + public static void DoSpiderWallAI(NPC npc, int transformType, float chaseMaxSpeed = 2f, float chaseAcceleration = 0.08f) + { + //GET NEW TARGET + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead) + { + npc.TargetClosest(); + } + Vector2 between = Main.player[npc.target].Center - npc.Center; + float distance = between.Length(); + //modify vector depending on distance and speed. + if (distance == 0f) + { + between.X = npc.velocity.X; + between.Y = npc.velocity.Y; + } + else + { + distance = chaseMaxSpeed / distance; + between.X *= distance; + between.Y *= distance; + } + //update if target dead. + if (Main.player[npc.target].dead) + { + between.X = (float)npc.direction * chaseMaxSpeed / 2f; + between.Y = -chaseMaxSpeed / 2f; + } + npc.spriteDirection = -1; + //If spider can't see target, circle around to attempt to find the target. + if (!Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + //CIRCULAR MOTION, SIMILAR TO FLYING AI (Eater of Souls etc.) + npc.ai[0]++; + if (npc.ai[0] > 0f) + { + npc.velocity.Y += 0.023f; + } + else + { + npc.velocity.Y -= 0.023f; + } + if (npc.ai[0] < -100f || npc.ai[0] > 100f) + { + npc.velocity.X += 0.023f; + } + else + { + npc.velocity.X -= 0.023f; + } + if (npc.ai[0] > 200f) + { + npc.ai[0] = -200f; + } + npc.velocity.X += between.X * 0.007f; + npc.velocity.Y += between.Y * 0.007f; + npc.rotation = npc.velocity.ToRotation(); + if (npc.velocity.X > 1.5f) + { + npc.velocity.X *= 0.9f; + } + if (npc.velocity.X < -1.5f) + { + npc.velocity.X *= 0.9f; + } + if (npc.velocity.Y > 1.5f) + { + npc.velocity.Y *= 0.9f; + } + if (npc.velocity.Y < -1.5f) + { + npc.velocity.Y *= 0.9f; + } + npc.velocity.X = MathHelper.Clamp(npc.velocity.X, -3f, 3f); + npc.velocity.Y = MathHelper.Clamp(npc.velocity.Y, -3f, 3f); + } + else //CHASE TARGET + { + if (npc.velocity.X < between.X) + { + npc.velocity.X = npc.velocity.X + chaseAcceleration; + if (npc.velocity.X < 0f && between.X > 0f) + { + npc.velocity.X = npc.velocity.X + chaseAcceleration; + } + } + else if (npc.velocity.X > between.X) + { + npc.velocity.X = npc.velocity.X - chaseAcceleration; + if (npc.velocity.X > 0f && between.X < 0f) + { + npc.velocity.X = npc.velocity.X - chaseAcceleration; + } + } + if (npc.velocity.Y < between.Y) + { + npc.velocity.Y = npc.velocity.Y + chaseAcceleration; + if (npc.velocity.Y < 0f && between.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + chaseAcceleration; + } + } + else if (npc.velocity.Y > between.Y) + { + npc.velocity.Y = npc.velocity.Y - chaseAcceleration; + if (npc.velocity.Y > 0f && between.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y - chaseAcceleration; + } + } + npc.rotation = between.ToRotation(); + } + //DAMP COLLISIONS OFF OF WALLS + float collisionDamp = 0.5f; + if (npc.collideX) + { + npc.netUpdate = true; + npc.velocity.X = npc.oldVelocity.X * -collisionDamp; + if (npc.direction == -1 && npc.velocity.X > 0f && npc.velocity.X < 2f) + { + npc.velocity.X = 2f; + } + if (npc.direction == 1 && npc.velocity.X < 0f && npc.velocity.X > -2f) + { + npc.velocity.X = -2f; + } + } + if (npc.collideY) + { + npc.netUpdate = true; + npc.velocity.Y = npc.oldVelocity.Y * -collisionDamp; + if (npc.velocity.Y > 0f && npc.velocity.Y < 1.5f) + { + npc.velocity.Y = 2f; + } + if (npc.velocity.Y < 0f && npc.velocity.Y > -1.5f) + { + npc.velocity.Y = -2f; + } + } + if (((npc.velocity.X > 0f && npc.oldVelocity.X < 0f) || (npc.velocity.X < 0f && npc.oldVelocity.X > 0f) || (npc.velocity.Y > 0f && npc.oldVelocity.Y < 0f) || (npc.velocity.Y < 0f && npc.oldVelocity.Y > 0f)) && !npc.justHit) + { + npc.netUpdate = true; + } + if (Main.netMode != 1) + { + int x = (int)npc.Center.X / 16; + int y = (int)npc.Center.Y / 16; + bool flag = false; + for (int i = x - 1; i <= x + 1; i++) + { + for (int j = y - 1; j <= y + 1; j++) + { + if (Main.tile[i, j] == null) + { + return; + } + if (Main.tile[i, j].wall > 0) + { + flag = true; + } + } + } + if (!flag) + { + npc.Transform(transformType); + return; + } + } + } - public static void DoVultureAI(NPC npc, float acceleration = 0.1f, float maxSpeed = 3f, int sitWidth = 30, int flyWidth = 50, int rangeX = 100, int rangeY = 100) - { - npc.localAI[0]++; - npc.noGravity = true; - npc.TargetClosest(true); - if (npc.ai[0] == 0f) - { - npc.width = sitWidth; - npc.noGravity = false; - if (Main.netMode != 1) - { - if (npc.velocity.X != 0f || npc.velocity.Y < 0f || (double)npc.velocity.Y > 0.3) - { - npc.ai[0] = 1f; - npc.netUpdate = true; - } - else - { - Rectangle playerRect = Main.player[npc.target].getRect(); - Rectangle rangeRect = new Rectangle((int)npc.Center.X - rangeX, (int)npc.Center.Y - rangeY, rangeX * 2, rangeY * 2); - if (npc.localAI[0] > 20f && (rangeRect.Intersects(playerRect) || npc.life < npc.lifeMax)) - { - npc.ai[0] = 1f; - npc.velocity.Y -= 6f; - npc.netUpdate = true; - } - } - } - } - else if (!Main.player[npc.target].dead) - { - npc.width = flyWidth; - //Collision damping - if (npc.collideX) - { - npc.velocity.X = npc.oldVelocity.X * -0.5f; - if (npc.direction == -1 && npc.velocity.X > 0f && npc.velocity.X < 2f) - { - npc.velocity.X = 2f; - } - if (npc.direction == 1 && npc.velocity.X < 0f && npc.velocity.X > -2f) - { - npc.velocity.X = -2f; - } - } - if (npc.collideY) - { - npc.velocity.Y = npc.oldVelocity.Y * -0.5f; - if (npc.velocity.Y > 0f && npc.velocity.Y < 1f) - { - npc.velocity.Y = 1f; - } - if (npc.velocity.Y < 0f && npc.velocity.Y > -1f) - { - npc.velocity.Y = -1f; - } - } - if (npc.direction == -1 && npc.velocity.X > -maxSpeed) - { - npc.velocity.X -= acceleration; - if (npc.velocity.X > maxSpeed) - { - npc.velocity.X = npc.velocity.X - acceleration; - } - else if (npc.velocity.X > 0f) - { - npc.velocity.X = npc.velocity.X - acceleration * 0.5f; - } - if (npc.velocity.X < -maxSpeed) - { - npc.velocity.X = -maxSpeed; - } - } - else if (npc.direction == 1 && npc.velocity.X < maxSpeed) - { - npc.velocity.X = npc.velocity.X + acceleration; - if (npc.velocity.X < -maxSpeed) - { - npc.velocity.X = npc.velocity.X + acceleration; - } - else if (npc.velocity.X < 0f) - { - npc.velocity.X = npc.velocity.X + acceleration * 0.5f; - } - if (npc.velocity.X > maxSpeed) - { - npc.velocity.X = maxSpeed; - } - } - float xDistance = Math.Abs(npc.Center.X - Main.player[npc.target].Center.X); - float yLimiter = Main.player[npc.target].position.Y - (npc.height / 2f); - if (xDistance > 50f) - { - yLimiter -= 100f; - } - if (npc.position.Y < yLimiter) - { - npc.velocity.Y = npc.velocity.Y + acceleration * 0.5f; - if (npc.velocity.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y + acceleration * 0.1f; - } - } - else - { - npc.velocity.Y = npc.velocity.Y - acceleration * 0.5f; - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y - acceleration * 0.1f; - } - } - if (npc.velocity.Y < -maxSpeed) - { - npc.velocity.Y = -maxSpeed; - } - if (npc.velocity.Y > maxSpeed) - { - npc.velocity.Y = maxSpeed; - } - } - //Change velocity if wet. - if (npc.wet) - { - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.95f; - } - npc.velocity.Y = npc.velocity.Y - 0.5f; - if (npc.velocity.Y < -4f) - { - npc.velocity.Y = -4f; - } - } - } - /// - /// Allows you to spawn dust on the NPC in a certain place. Uses the npc.position value as the base point for the rectangle. - /// Takes direction and rotation into account. - /// - /// The width of the sheet for the NPC. - /// The place to put a dust. - /// The chance to spawn a dust (0.3 = 30%) - public static Dust SpawnDustOnNPC(NPC npc, int frameWidth, int frameHeight, int dustType, Rectangle rect, Vector2 velocity = default(Vector2), float chance = 0.5f, bool useSpriteDirection = false) - { - Vector2 half = new Vector2(frameWidth / 2f, frameHeight / 2f); - //"flip" the rectangle's position x-wise. - if ((!useSpriteDirection && npc.direction == 1) || (useSpriteDirection && npc.spriteDirection == 1)) - { - rect.X = frameWidth - rect.Right; - } - if (Main.rand.NextFloat(1f) < chance) - { - Vector2 offset = (npc.Center - half + new Vector2(Main.rand.NextFloat(rect.Left, rect.Right), Main.rand.NextFloat(rect.Top, rect.Bottom))) - npc.Center; - offset = offset.RotatedBy(npc.rotation); - Dust d = Dust.NewDustPerfect(npc.Center + offset, dustType, velocity); - return d; - } - return null; - } - #endregion - } + public static void DoVultureAI(NPC npc, float acceleration = 0.1f, float maxSpeed = 3f, int sitWidth = 30, int flyWidth = 50, int rangeX = 100, int rangeY = 100) + { + npc.localAI[0]++; + npc.noGravity = true; + npc.TargetClosest(true); + if (npc.ai[0] == 0f) + { + npc.width = sitWidth; + npc.noGravity = false; + if (Main.netMode != 1) + { + if (npc.velocity.X != 0f || npc.velocity.Y < 0f || (double)npc.velocity.Y > 0.3) + { + npc.ai[0] = 1f; + npc.netUpdate = true; + } + else + { + Rectangle playerRect = Main.player[npc.target].getRect(); + Rectangle rangeRect = new Rectangle((int)npc.Center.X - rangeX, (int)npc.Center.Y - rangeY, rangeX * 2, rangeY * 2); + if (npc.localAI[0] > 20f && (rangeRect.Intersects(playerRect) || npc.life < npc.lifeMax)) + { + npc.ai[0] = 1f; + npc.velocity.Y -= 6f; + npc.netUpdate = true; + } + } + } + } + else if (!Main.player[npc.target].dead) + { + npc.width = flyWidth; + //Collision damping + if (npc.collideX) + { + npc.velocity.X = npc.oldVelocity.X * -0.5f; + if (npc.direction == -1 && npc.velocity.X > 0f && npc.velocity.X < 2f) + { + npc.velocity.X = 2f; + } + if (npc.direction == 1 && npc.velocity.X < 0f && npc.velocity.X > -2f) + { + npc.velocity.X = -2f; + } + } + if (npc.collideY) + { + npc.velocity.Y = npc.oldVelocity.Y * -0.5f; + if (npc.velocity.Y > 0f && npc.velocity.Y < 1f) + { + npc.velocity.Y = 1f; + } + if (npc.velocity.Y < 0f && npc.velocity.Y > -1f) + { + npc.velocity.Y = -1f; + } + } + if (npc.direction == -1 && npc.velocity.X > -maxSpeed) + { + npc.velocity.X -= acceleration; + if (npc.velocity.X > maxSpeed) + { + npc.velocity.X = npc.velocity.X - acceleration; + } + else if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X - acceleration * 0.5f; + } + if (npc.velocity.X < -maxSpeed) + { + npc.velocity.X = -maxSpeed; + } + } + else if (npc.direction == 1 && npc.velocity.X < maxSpeed) + { + npc.velocity.X = npc.velocity.X + acceleration; + if (npc.velocity.X < -maxSpeed) + { + npc.velocity.X = npc.velocity.X + acceleration; + } + else if (npc.velocity.X < 0f) + { + npc.velocity.X = npc.velocity.X + acceleration * 0.5f; + } + if (npc.velocity.X > maxSpeed) + { + npc.velocity.X = maxSpeed; + } + } + float xDistance = Math.Abs(npc.Center.X - Main.player[npc.target].Center.X); + float yLimiter = Main.player[npc.target].position.Y - (npc.height / 2f); + if (xDistance > 50f) + { + yLimiter -= 100f; + } + if (npc.position.Y < yLimiter) + { + npc.velocity.Y = npc.velocity.Y + acceleration * 0.5f; + if (npc.velocity.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y + acceleration * 0.1f; + } + } + else + { + npc.velocity.Y = npc.velocity.Y - acceleration * 0.5f; + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y - acceleration * 0.1f; + } + } + if (npc.velocity.Y < -maxSpeed) + { + npc.velocity.Y = -maxSpeed; + } + if (npc.velocity.Y > maxSpeed) + { + npc.velocity.Y = maxSpeed; + } + } + //Change velocity if wet. + if (npc.wet) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.95f; + } + npc.velocity.Y = npc.velocity.Y - 0.5f; + if (npc.velocity.Y < -4f) + { + npc.velocity.Y = -4f; + } + } + } + /// + /// Allows you to spawn dust on the NPC in a certain place. Uses the npc.position value as the base point for the rectangle. + /// Takes direction and rotation into account. + /// + /// The width of the sheet for the NPC. + /// The place to put a dust. + /// The chance to spawn a dust (0.3 = 30%) + public static Dust SpawnDustOnNPC(NPC npc, int frameWidth, int frameHeight, int dustType, Rectangle rect, Vector2 velocity = default(Vector2), float chance = 0.5f, bool useSpriteDirection = false) + { + Vector2 half = new Vector2(frameWidth / 2f, frameHeight / 2f); + //"flip" the rectangle's position x-wise. + if ((!useSpriteDirection && npc.direction == 1) || (useSpriteDirection && npc.spriteDirection == 1)) + { + rect.X = frameWidth - rect.Right; + } + if (Main.rand.NextFloat(1f) < chance) + { + Vector2 offset = (npc.Center - half + new Vector2(Main.rand.NextFloat(rect.Left, rect.Right), Main.rand.NextFloat(rect.Top, rect.Bottom))) - npc.Center; + offset = offset.RotatedBy(npc.rotation); + Dust d = Dust.NewDustPerfect(npc.Center + offset, dustType, velocity); + return d; + } + return null; + } + #endregion + } } \ No newline at end of file diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index 7f543a275b..6f9a9d2d77 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -13,17 +13,17 @@ namespace CalamityMod.NPCs.CeaselessVoid [AutoloadBossHead] public class CeaselessVoid : ModNPC { - private float bossLife; - private float beamPortal = 0f; - private float shootBoost = 0; - private float passedVar = 1f; - + private float bossLife; + private float beamPortal = 0f; + private float shootBoost = 0; + private float passedVar = 1f; + public override void SetStaticDefaults() { DisplayName.SetDefault("Ceaseless Void"); Main.npcFrameCount[npc.type] = 4; } - + public override void SetDefaults() { npc.damage = 0; @@ -32,25 +32,25 @@ namespace CalamityMod.NPCs.CeaselessVoid npc.height = 100; //216 npc.defense = 0; npc.lifeMax = 200; - npc.value = Item.buyPrice(0, 35, 0, 0); - if (Main.expertMode) - { - npc.lifeMax = 400; - } - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"); - else - music = MusicID.Boss3; - if (CalamityWorld.DoGSecondStageCountdown <= 0) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Void"); - else - music = MusicID.Boss3; - } - npc.aiStyle = -1; //new - aiType = -1; //new + if (Main.expertMode) + { + npc.lifeMax = 400; + } + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"); + else + music = MusicID.Boss3; + if (CalamityWorld.DoGSecondStageCountdown <= 0) + { + npc.value = Item.buyPrice(0, 35, 0, 0); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Void"); + else + music = MusicID.Boss3; + } + npc.aiStyle = -1; //new + aiType = -1; //new npc.knockBackResist = 0f; for (int k = 0; k < npc.buffImmune.Length; k++) { @@ -62,210 +62,213 @@ namespace CalamityMod.NPCs.CeaselessVoid npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; } - + public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.15f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } - - public override void AI() - { - Player player = Main.player[npc.target]; - bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); - bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); - CalamityGlobalNPC.voidBoss = npc.whoAmI; - Vector2 vector = npc.Center; - npc.TargetClosest(true); - if (NPC.CountNPCS(mod.NPCType("DarkEnergy")) > 0 || - NPC.CountNPCS(mod.NPCType("DarkEnergy2")) > 0 || - NPC.CountNPCS(mod.NPCType("DarkEnergy3")) > 0) - { - npc.dontTakeDamage = true; - } - else - { - npc.dontTakeDamage = false; - } - if (!player.active || player.dead) - { - npc.TargetClosest(false); - player = Main.player[npc.target]; - if (!player.active || player.dead) - { - npc.velocity = new Vector2(0f, -10f); - CalamityWorld.DoGSecondStageCountdown = 0; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); - netMessage.Write(CalamityWorld.DoGSecondStageCountdown); - netMessage.Send(); - } - if (npc.timeLeft > 150) - { - npc.timeLeft = 150; - } - return; - } - } - else if (npc.timeLeft < 2400) - { - npc.timeLeft = 2400; - } - if (Main.netMode != 1) - { - beamPortal += expertMode ? 2f : 1f; - beamPortal += shootBoost; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - beamPortal += 4f; - } - if (npc.GetGlobalNPC(mod).enraged) - { - beamPortal += 2f; - } - if (beamPortal >= 1200f) - { - beamPortal = 0f; - npc.TargetClosest(true); - if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) - { - float num941 = 3f; //speed - Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); - float num942 = player.position.X + (float)player.width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); - float num943 = player.position.Y + (float)player.height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); - float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); - num944 = num941 / num944; - num942 *= num944; - num943 *= num944; - num942 += (float)Main.rand.Next(-10, 11) * 0.05f; - num943 += (float)Main.rand.Next(-10, 11) * 0.05f; - int num945 = expertMode ? 42 : 58; - int num946 = mod.ProjectileType("DoGBeamPortal"); - vector104.X += num942 * 5f; - vector104.Y += num943 * 5f; - int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num947].timeLeft = 300; - npc.netUpdate = true; - } - if (npc.life <= (int)((double)npc.lifeMax * 0.5) && revenge) - { - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int damage = expertMode ? 42 : 58; - int i; - for (i = 0; i < 4; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(Math.Sin(offsetAngle) * 3f), (float)(Math.Cos(offsetAngle) * 3f), mod.ProjectileType("DarkEnergyBall"), damage, 0f, Main.myPlayer, passedVar, 0f); - passedVar += 1f; - } - passedVar = 1f; - } - } - } - float num823 = 10f; - float num824 = 0.2f; - Vector2 vector82 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num825 = player.position.X + (float)(player.width / 2) - vector82.X; - float num826 = player.position.Y + (float)(player.height / 2) - 300f - vector82.Y; - float num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); - num827 = num823 / num827; - num825 *= num827; - num826 *= num827; - if (npc.velocity.X < num825) - { - npc.velocity.X = npc.velocity.X + num824; - if (npc.velocity.X < 0f && num825 > 0f) - { - npc.velocity.X = npc.velocity.X + num824; - } - } - else if (npc.velocity.X > num825) - { - npc.velocity.X = npc.velocity.X - num824; - if (npc.velocity.X > 0f && num825 < 0f) - { - npc.velocity.X = npc.velocity.X - num824; - } - } - if (npc.velocity.Y < num826) - { - npc.velocity.Y = npc.velocity.Y + num824; - if (npc.velocity.Y < 0f && num826 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num824; - } - } - else if (npc.velocity.Y > num826) - { - npc.velocity.Y = npc.velocity.Y - num824; - if (npc.velocity.Y > 0f && num826 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num824; - } - } - if (bossLife == 0f && npc.life > 0) - { - bossLife = (float)npc.lifeMax; - } - if (npc.life > 0) - { - if (Main.netMode != 1) - { - int num660 = (int)((double)npc.lifeMax * 0.26); - if ((float)(npc.life + num660) < bossLife) - { - bossLife = (float)npc.life; - shootBoost += 1f; - int glob = revenge ? 8 : 4; - if (bossLife <= 0.5f) - { - glob = revenge ? 16 : 8; - } - for (int num662 = 0; num662 < glob; num662++) - { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("DarkEnergySpawn"), 0, 0f, Main.myPlayer, 0f, 0f); - } - return; - } - } - } - } - - public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) - { - damage = (crit ? 2 : 1); - return false; - } - - public override void NPCLoot() { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("DarkPlasma"), Main.rand.Next(2, 4), true); - if (Main.rand.Next(10) == 0) + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override void AI() + { + Player player = Main.player[npc.target]; + bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); + bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); + CalamityGlobalNPC.voidBoss = npc.whoAmI; + Vector2 vector = npc.Center; + npc.TargetClosest(true); + if (NPC.CountNPCS(mod.NPCType("DarkEnergy")) > 0 || + NPC.CountNPCS(mod.NPCType("DarkEnergy2")) > 0 || + NPC.CountNPCS(mod.NPCType("DarkEnergy3")) > 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CeaselessVoidTrophy")); + npc.dontTakeDamage = true; } - if (Main.rand.Next(3) == 0) + else { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MirrorBlade")); + npc.dontTakeDamage = false; } - if (Main.rand.Next(5) == 0) + if (!player.active || player.dead) { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ArcanumoftheVoid"), 1, true); + npc.TargetClosest(false); + player = Main.player[npc.target]; + if (!player.active || player.dead) + { + npc.velocity = new Vector2(0f, -10f); + CalamityWorld.DoGSecondStageCountdown = 0; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); + netMessage.Write(CalamityWorld.DoGSecondStageCountdown); + netMessage.Send(); + } + if (npc.timeLeft > 150) + { + npc.timeLeft = 150; + } + return; + } + } + else if (npc.timeLeft < 2400) + { + npc.timeLeft = 2400; + } + if (Main.netMode != 1) + { + beamPortal += expertMode ? 2f : 1f; + beamPortal += shootBoost; + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + beamPortal += 4f; + } + if (npc.GetGlobalNPC(mod).enraged) + { + beamPortal += 2f; + } + if (beamPortal >= 1200f) + { + beamPortal = 0f; + npc.TargetClosest(true); + if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) + { + float num941 = 3f; //speed + Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); + float num942 = player.position.X + (float)player.width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); + float num943 = player.position.Y + (float)player.height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); + float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); + num944 = num941 / num944; + num942 *= num944; + num943 *= num944; + num942 += (float)Main.rand.Next(-10, 11) * 0.05f; + num943 += (float)Main.rand.Next(-10, 11) * 0.05f; + int num945 = expertMode ? 42 : 58; + int num946 = mod.ProjectileType("DoGBeamPortal"); + vector104.X += num942 * 5f; + vector104.Y += num943 * 5f; + int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[num947].timeLeft = 300; + npc.netUpdate = true; + } + if (npc.life <= (int)((double)npc.lifeMax * 0.5) && revenge) + { + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int damage = expertMode ? 42 : 58; + int i; + for (i = 0; i < 4; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, (float)(Math.Sin(offsetAngle) * 3f), (float)(Math.Cos(offsetAngle) * 3f), mod.ProjectileType("DarkEnergyBall"), damage, 0f, Main.myPlayer, passedVar, 0f); + passedVar += 1f; + } + passedVar = 1f; + } + } + } + float num823 = 10f; + float num824 = 0.2f; + Vector2 vector82 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num825 = player.position.X + (float)(player.width / 2) - vector82.X; + float num826 = player.position.Y + (float)(player.height / 2) - 300f - vector82.Y; + float num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); + num827 = num823 / num827; + num825 *= num827; + num826 *= num827; + if (npc.velocity.X < num825) + { + npc.velocity.X = npc.velocity.X + num824; + if (npc.velocity.X < 0f && num825 > 0f) + { + npc.velocity.X = npc.velocity.X + num824; + } + } + else if (npc.velocity.X > num825) + { + npc.velocity.X = npc.velocity.X - num824; + if (npc.velocity.X > 0f && num825 < 0f) + { + npc.velocity.X = npc.velocity.X - num824; + } + } + if (npc.velocity.Y < num826) + { + npc.velocity.Y = npc.velocity.Y + num824; + if (npc.velocity.Y < 0f && num826 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num824; + } + } + else if (npc.velocity.Y > num826) + { + npc.velocity.Y = npc.velocity.Y - num824; + if (npc.velocity.Y > 0f && num826 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num824; + } + } + if (bossLife == 0f && npc.life > 0) + { + bossLife = (float)npc.lifeMax; + } + if (npc.life > 0) + { + if (Main.netMode != 1) + { + int num660 = (int)((double)npc.lifeMax * 0.26); + if ((float)(npc.life + num660) < bossLife) + { + bossLife = (float)npc.life; + shootBoost += 1f; + int glob = revenge ? 8 : 4; + if (bossLife <= 0.5f) + { + glob = revenge ? 16 : 8; + } + for (int num662 = 0; num662 < glob; num662++) + { + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("DarkEnergySpawn"), 0, 0f, Main.myPlayer, 0f, 0f); + } + return; + } + } } } - + + public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) + { + damage = (crit ? 2 : 1); + return false; + } + + public override void NPCLoot() + { + if (CalamityWorld.DoGSecondStageCountdown <= 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("DarkPlasma"), Main.rand.Next(2, 4), true); + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CeaselessVoidTrophy")); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MirrorBlade")); + } + if (Main.rand.Next(5) == 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ArcanumoftheVoid"), 1, true); + } + } + } + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.SuperHealingPotion; } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) @@ -298,13 +301,13 @@ namespace CalamityMod.NPCs.CeaselessVoid num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); Main.dust[num624].velocity *= 2f; } - float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid2"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid3"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid4"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid5"), 1f); - } + float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid2"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid3"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid4"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CeaselessVoid5"), 1f); + } } } } \ No newline at end of file diff --git a/NPCs/CeaselessVoid/DarkEnergy.cs b/NPCs/CeaselessVoid/DarkEnergy.cs index 01ec4ddd37..c628d7864b 100644 --- a/NPCs/CeaselessVoid/DarkEnergy.cs +++ b/NPCs/CeaselessVoid/DarkEnergy.cs @@ -12,7 +12,7 @@ namespace CalamityMod.NPCs.CeaselessVoid { public class DarkEnergy : ModNPC { - public int invinceTime = 180; + public int invinceTime = 120; public override void SetStaticDefaults() { @@ -23,22 +23,24 @@ namespace CalamityMod.NPCs.CeaselessVoid public override void SetDefaults() { npc.aiStyle = -1; - npc.damage = 120; + npc.damage = 0; + npc.dontTakeDamage = true; npc.width = 80; //324 npc.height = 80; //216 npc.defense = 68; - npc.lifeMax = 3000; + npc.lifeMax = 6000; if (CalamityWorld.DoGSecondStageCountdown <= 0) { - npc.lifeMax = 12000; + npc.lifeMax = 24000; } if (CalamityWorld.bossRushActive) { - npc.lifeMax = 37000; + npc.lifeMax = 44000; } npc.knockBackResist = 0.25f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; aiType = -1; for (int k = 0; k < npc.buffImmune.Length; k++) { @@ -62,8 +64,6 @@ namespace CalamityMod.NPCs.CeaselessVoid if (invinceTime > 0) { invinceTime--; - npc.damage = 0; - npc.dontTakeDamage = true; } else { diff --git a/NPCs/CeaselessVoid/DarkEnergy2.cs b/NPCs/CeaselessVoid/DarkEnergy2.cs index bd3165191f..9be67c45c7 100644 --- a/NPCs/CeaselessVoid/DarkEnergy2.cs +++ b/NPCs/CeaselessVoid/DarkEnergy2.cs @@ -12,7 +12,7 @@ namespace CalamityMod.NPCs.CeaselessVoid { public class DarkEnergy2 : ModNPC { - public int invinceTime = 180; + public int invinceTime = 120; public override void SetStaticDefaults() { @@ -23,22 +23,24 @@ namespace CalamityMod.NPCs.CeaselessVoid public override void SetDefaults() { npc.aiStyle = -1; - npc.damage = 120; + npc.damage = 0; + npc.dontTakeDamage = true; npc.width = 80; //324 npc.height = 80; //216 npc.defense = 68; - npc.lifeMax = 3000; + npc.lifeMax = 6000; if (CalamityWorld.DoGSecondStageCountdown <= 0) { - npc.lifeMax = 12000; + npc.lifeMax = 24000; } if (CalamityWorld.bossRushActive) { - npc.lifeMax = 37000; + npc.lifeMax = 44000; } npc.knockBackResist = 0.1f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; aiType = -1; for (int k = 0; k < npc.buffImmune.Length; k++) { @@ -62,8 +64,6 @@ namespace CalamityMod.NPCs.CeaselessVoid if (invinceTime > 0) { invinceTime--; - npc.damage = 0; - npc.dontTakeDamage = true; } else { diff --git a/NPCs/CeaselessVoid/DarkEnergy3.cs b/NPCs/CeaselessVoid/DarkEnergy3.cs index 62b3481eb4..3ba107bb93 100644 --- a/NPCs/CeaselessVoid/DarkEnergy3.cs +++ b/NPCs/CeaselessVoid/DarkEnergy3.cs @@ -12,7 +12,7 @@ namespace CalamityMod.NPCs.CeaselessVoid { public class DarkEnergy3 : ModNPC { - public int invinceTime = 180; + public int invinceTime = 120; public override void SetStaticDefaults() { @@ -22,24 +22,26 @@ namespace CalamityMod.NPCs.CeaselessVoid public override void SetDefaults() { - npc.damage = 120; + npc.damage = 0; + npc.dontTakeDamage = true; npc.width = 80; //324 npc.height = 80; //216 npc.defense = 68; - npc.lifeMax = 3000; + npc.lifeMax = 6000; if (CalamityWorld.DoGSecondStageCountdown <= 0) { - npc.lifeMax = 12000; + npc.lifeMax = 24000; } if (CalamityWorld.bossRushActive) { - npc.lifeMax = 37000; + npc.lifeMax = 44000; } npc.aiStyle = -1; //new aiType = -1; //new npc.knockBackResist = 0.3f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -62,8 +64,6 @@ namespace CalamityMod.NPCs.CeaselessVoid if (invinceTime > 0) { invinceTime--; - npc.damage = 0; - npc.dontTakeDamage = true; } else { diff --git a/NPCs/CosmicWraith/CosmicLantern.cs b/NPCs/CosmicWraith/CosmicLantern.cs index 3f07f57328..8a5fcbf884 100644 --- a/NPCs/CosmicWraith/CosmicLantern.cs +++ b/NPCs/CosmicWraith/CosmicLantern.cs @@ -26,16 +26,13 @@ namespace CalamityMod.NPCs.CosmicWraith npc.width = 25; //324 npc.height = 25; //216 npc.defense = 85; - npc.lifeMax = 100; - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = 5000; - } + npc.lifeMax = 25; npc.alpha = 255; npc.knockBackResist = 0.85f; npc.noGravity = true; npc.dontTakeDamage = true; npc.chaseable = false; + npc.canGhostHeal = false; npc.noTileCollide = true; for (int k = 0; k < npc.buffImmune.Length; k++) { diff --git a/NPCs/CosmicWraith/CosmicWraith.cs b/NPCs/CosmicWraith/CosmicWraith.cs index 4c2993a958..1a641cff79 100644 --- a/NPCs/CosmicWraith/CosmicWraith.cs +++ b/NPCs/CosmicWraith/CosmicWraith.cs @@ -14,21 +14,21 @@ namespace CalamityMod.NPCs.CosmicWraith [AutoloadBossHead] public class CosmicWraith : ModNPC { - private const int CosmicProjectiles = 3; - private const float CosmicAngleSpread = 170; - private int CosmicCountdown = 0; - private float phaseSwitch = 0f; - private float chargeSwitch = 0f; - private int dustTimer = 3; - private float spawnX = 750f; - private float spawnY = 120f; - + private const int CosmicProjectiles = 3; + private const float CosmicAngleSpread = 170; + private int CosmicCountdown = 0; + private float phaseSwitch = 0f; + private float chargeSwitch = 0f; + private int dustTimer = 3; + private float spawnX = 750f; + private float spawnY = 120f; + public override void SetStaticDefaults() { DisplayName.SetDefault("Signus, Envoy of the Devourer"); Main.npcFrameCount[npc.type] = 6; } - + public override void SetDefaults() { npc.npcSlots = 32f; @@ -36,59 +36,55 @@ namespace CalamityMod.NPCs.CosmicWraith npc.width = 130; npc.height = 130; npc.defense = 70; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"); - else - music = MusicID.Boss4; - npc.lifeMax = CalamityWorld.revenge ? 229500 : 140000; - if (CalamityWorld.death) - { - npc.lifeMax = 209250; - } - if (CalamityWorld.DoGSecondStageCountdown <= 0) - { - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Signus"); - else - music = MusicID.Boss4; - npc.lifeMax = CalamityWorld.revenge ? 445500 : 280000; - if (CalamityWorld.death) - { - npc.lifeMax = 722250; - } - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 4800000 : 4300000; - } - npc.knockBackResist = 0f; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"); + else + music = MusicID.Boss4; + npc.lifeMax = CalamityWorld.revenge ? 109500 : 70000; + if (CalamityWorld.DoGSecondStageCountdown <= 0) + { + npc.value = Item.buyPrice(0, 35, 0, 0); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Signus"); + else + music = MusicID.Boss4; + npc.lifeMax = CalamityWorld.revenge ? 445500 : 280000; + if (CalamityWorld.death) + { + npc.lifeMax = 722250; + } + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 2400000 : 2200000; + } + npc.knockBackResist = 0f; npc.aiStyle = -1; //new - aiType = -1; //new - npc.value = Item.buyPrice(0, 35, 0, 0); + aiType = -1; //new npc.boss = true; - for (int k = 0; k < npc.buffImmune.Length; k++) + for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("ExoFreeze")] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[mod.BuffType("ExoFreeze")] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; npc.HitSound = SoundID.NPCHit49; npc.DeathSound = SoundID.NPCDeath51; } - + public override void AI() { bool cosmicDust = (double)npc.life <= (double)npc.lifeMax * 0.85; @@ -96,10 +92,10 @@ namespace CalamityMod.NPCs.CosmicWraith bool cosmicRain = (double)npc.life <= (double)npc.lifeMax * 0.65; bool cosmicSpeed = (double)npc.life <= (double)npc.lifeMax * 0.5; bool cosmicTeleport = (double)npc.life <= (double)npc.lifeMax * 0.33; - Player player = Main.player[npc.target]; + Player player = Main.player[npc.target]; bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); - npc.TargetClosest(true); + npc.TargetClosest(true); Vector2 vector142 = new Vector2(npc.Center.X, npc.Center.Y); Vector2 vectorCenter = npc.Center; float num1243 = player.Center.X - vector142.X; @@ -119,27 +115,27 @@ namespace CalamityMod.NPCs.CosmicWraith float num1006 = 0.333333343f; float num1007 = 10f; //yes num1006 *= num1005; - for (int num1011 = 0; num1011 < 2; num1011++) - { - if (Main.rand.Next(3) < 1) - { - int num1012 = Dust.NewDust(npc.Center - new Vector2(70f), 70 * 2, 70 * 2, 173, npc.velocity.X * 0.5f, npc.velocity.Y * 0.5f, 90, default(Color), 1.5f); - Main.dust[num1012].noGravity = true; - Main.dust[num1012].velocity *= 0.2f; - Main.dust[num1012].fadeIn = 1f; - } - } + for (int num1011 = 0; num1011 < 2; num1011++) + { + if (Main.rand.Next(3) < 1) + { + int num1012 = Dust.NewDust(npc.Center - new Vector2(70f), 70 * 2, 70 * 2, 173, npc.velocity.X * 0.5f, npc.velocity.Y * 0.5f, 90, default(Color), 1.5f); + Main.dust[num1012].noGravity = true; + Main.dust[num1012].velocity *= 0.2f; + Main.dust[num1012].fadeIn = 1f; + } + } if (Vector2.Distance(player.Center, vectorCenter) > 6400f) { - CalamityWorld.DoGSecondStageCountdown = 0; - if (Main.netMode == 2) - { - var netMessage = mod.GetPacket(); - netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); - netMessage.Write(CalamityWorld.DoGSecondStageCountdown); - netMessage.Send(); - } - if (npc.timeLeft > 10) + CalamityWorld.DoGSecondStageCountdown = 0; + if (Main.netMode == 2) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DoGCountdownSync); + netMessage.Write(CalamityWorld.DoGSecondStageCountdown); + netMessage.Send(); + } + if (npc.timeLeft > 10) { npc.timeLeft = 10; } @@ -157,65 +153,76 @@ namespace CalamityMod.NPCs.CosmicWraith CosmicCountdown--; if (CosmicCountdown == 0) { - if (Main.netMode != 1) - { - int speed2 = revenge ? 13 : 12; - if (npc.GetGlobalNPC(mod).enraged) - { - speed2 += 3; - } - float spawnX = Main.rand.Next(1000) - 500 + player.Center.X; - float spawnY = -1000 + player.Center.Y; - Vector2 baseSpawn = new Vector2(spawnX, spawnY); - Vector2 baseVelocity = player.Center - baseSpawn; - baseVelocity.Normalize(); - baseVelocity = baseVelocity * speed2; - int damage = expertMode ? 49 : 62; //360 300 - for (int i = 0; i < CosmicProjectiles; i++) - { - Vector2 spawn2 = baseSpawn; - spawn2.X = spawn2.X + i * 30 - (CosmicProjectiles * 15); - Vector2 velocity = baseVelocity; - velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-CosmicAngleSpread / 2 + (CosmicAngleSpread * i / (float)CosmicProjectiles))); - velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; - int projectile = Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, mod.ProjectileType("CosmicFlameBurst"), damage, 10f, Main.myPlayer, 0f, 0f); - Main.projectile[projectile].tileCollide = false; - } - } + if (Main.netMode != 1) + { + int speed2 = revenge ? 13 : 12; + if (npc.GetGlobalNPC(mod).enraged) + { + speed2 += 3; + } + float spawnX = Main.rand.Next(1000) - 500 + player.Center.X; + float spawnY = -1000 + player.Center.Y; + Vector2 baseSpawn = new Vector2(spawnX, spawnY); + Vector2 baseVelocity = player.Center - baseSpawn; + baseVelocity.Normalize(); + baseVelocity = baseVelocity * speed2; + int damage = expertMode ? 49 : 62; //360 300 + for (int i = 0; i < CosmicProjectiles; i++) + { + Vector2 spawn2 = baseSpawn; + spawn2.X = spawn2.X + i * 30 - (CosmicProjectiles * 15); + Vector2 velocity = baseVelocity; + velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-CosmicAngleSpread / 2 + (CosmicAngleSpread * i / (float)CosmicProjectiles))); + velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; + int projectile = Projectile.NewProjectile(spawn2.X, spawn2.Y, velocity.X, velocity.Y, mod.ProjectileType("CosmicFlameBurst"), damage, 10f, Main.myPlayer, 0f, 0f); + Main.projectile[projectile].tileCollide = false; + } + } } } - float speed = expertMode ? 6f : 5.5f; - if (speedBoost) - { - speed = expertMode ? 7.5f : 7f; - } - if (npc.GetGlobalNPC(mod).enraged) - { - speed += 3f; - } if (npc.ai[0] <= 2f) { - npc.rotation = npc.velocity.X * 0.04f; + npc.rotation = npc.velocity.X * 0.04f; npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); - if (num1245 < speed) + npc.knockBackResist = 0.05f; + if (expertMode) { - npc.velocity.X = num1243; - npc.velocity.Y = num1244; + npc.knockBackResist *= Main.expertKnockBack; } - else + if (cosmicSpeed) { - num1245 = speed / num1245; - npc.velocity.X = num1243 * num1245; - npc.velocity.Y = num1244 * num1245; + npc.knockBackResist = 0f; } + float speed = expertMode ? 14f : 12f; + if (speedBoost) + { + speed = expertMode ? 16f : 14f; + } + if (npc.GetGlobalNPC(mod).enraged) + { + speed += 3f; + } + Vector2 vector98 = new Vector2(npc.Center.X, npc.Center.Y); + float num795 = player.Center.X - vector98.X; + float num796 = player.Center.Y - vector98.Y; + float num797 = (float)Math.Sqrt((double)(num795 * num795 + num796 * num796)); + num797 = speed / num797; + num795 *= num797; + num796 *= num797; + npc.velocity.X = (npc.velocity.X * 50f + num795) / 51f; + npc.velocity.Y = (npc.velocity.Y * 50f + num796) / 51f; } - if (npc.ai[0] == 0f) + else { - npc.chaseable = true; - if (Main.netMode != 1) + npc.knockBackResist = 0f; + } + if (npc.ai[0] == 0f) + { + npc.chaseable = true; + if (Main.netMode != 1) { npc.localAI[1] += 1f; - if (npc.localAI[1] >= 120f) + if (npc.localAI[1] >= 150f) { npc.localAI[1] = 0f; npc.TargetClosest(true); @@ -246,107 +253,100 @@ namespace CalamityMod.NPCs.CosmicWraith } } } - else if (npc.ai[0] == 1f) + else if (npc.ai[0] == 1f) { - npc.damage = 0; - npc.dontTakeDamage = true; - npc.chaseable = false; - npc.alpha += (cosmicTeleport ? 5 : 4); + npc.damage = 0; + npc.dontTakeDamage = true; + npc.chaseable = false; + npc.alpha += (cosmicTeleport ? 5 : 4); if (npc.alpha >= 255) { npc.alpha = 255; npc.position.X = npc.ai[1] * 16f - (float)(npc.width / 2); npc.position.Y = npc.ai[2] * 16f - (float)(npc.height / 2); npc.ai[0] = 2f; - npc.netUpdate = true; - return; + npc.netUpdate = true; + return; } } - else if (npc.ai[0] == 2f) + else if (npc.ai[0] == 2f) { npc.alpha -= (cosmicTeleport ? 5 : 4); if (npc.alpha <= 0) { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); - if (Main.netMode != 1 && revenge) - { - int num660 = NPC.NewNPC((int)(Main.player[npc.target].position.X + 750f), (int)(Main.player[npc.target].position.Y), mod.NPCType("SignusBomb"), 0, 0f, 0f, 0f, 0f, 255); - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); - } - int num661 = NPC.NewNPC((int)(Main.player[npc.target].position.X - 750f), (int)(Main.player[npc.target].position.Y), mod.NPCType("SignusBomb"), 0, 0f, 0f, 0f, 0f, 255); - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, num661, 0f, 0f, 0f, 0, 0, 0); - } - for (int num621 = 0; num621 < 5; num621++) - { - int num622 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X + 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - Main.dust[num622].noGravity = true; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - int num623 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X - 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); - Main.dust[num623].velocity *= 3f; - Main.dust[num623].noGravity = true; - if (Main.rand.Next(2) == 0) - { - Main.dust[num623].scale = 0.5f; - Main.dust[num623].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 20; num623++) - { - int num624 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X + 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X + 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - int num625 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X - 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 3f); - Main.dust[num625].noGravity = true; - Main.dust[num625].velocity *= 5f; - num625 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X - 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); - Main.dust[num625].velocity *= 2f; - } - } - npc.damage = expertMode ? 240 : 150; - npc.dontTakeDamage = false; - npc.chaseable = true; - npc.ai[3] += 1f; + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); + if (Main.netMode != 1 && revenge) + { + int num660 = NPC.NewNPC((int)(Main.player[npc.target].position.X + 750f), (int)(Main.player[npc.target].position.Y), mod.NPCType("SignusBomb"), 0, 0f, 0f, 0f, 0f, 255); + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); + } + int num661 = NPC.NewNPC((int)(Main.player[npc.target].position.X - 750f), (int)(Main.player[npc.target].position.Y), mod.NPCType("SignusBomb"), 0, 0f, 0f, 0f, 0f, 255); + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, num661, 0f, 0f, 0f, 0, 0, 0); + } + for (int num621 = 0; num621 < 5; num621++) + { + int num622 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X + 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + Main.dust[num622].noGravity = true; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + int num623 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X - 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); + Main.dust[num623].velocity *= 3f; + Main.dust[num623].noGravity = true; + if (Main.rand.Next(2) == 0) + { + Main.dust[num623].scale = 0.5f; + Main.dust[num623].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 20; num623++) + { + int num624 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X + 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X + 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + int num625 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X - 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 3f); + Main.dust[num625].noGravity = true; + Main.dust[num625].velocity *= 5f; + num625 = Dust.NewDust(new Vector2(Main.player[npc.target].position.X - 750f, Main.player[npc.target].position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); + Main.dust[num625].velocity *= 2f; + } + } + npc.damage = expertMode ? 240 : 150; + npc.dontTakeDamage = false; + npc.chaseable = true; + npc.ai[3] += 1f; npc.alpha = 0; - if (npc.ai[3] >= 2f) + if (npc.ai[3] >= 2f) { npc.ai[0] = 3f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; - } + } else { npc.ai[0] = 0f; } - npc.netUpdate = true; - return; + npc.netUpdate = true; + return; } } - else if (npc.ai[0] == 3f) + else if (npc.ai[0] == 3f) { - npc.dontTakeDamage = false; - npc.chaseable = true; - npc.rotation = npc.velocity.X * 0.04f; + npc.dontTakeDamage = false; + npc.chaseable = true; + npc.rotation = npc.velocity.X * 0.04f; npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); - float num1065 = 6f; //changed from 6 to 7.5 modifies speed while firing projectiles - float num1066 = 0.2f; //changed from 0.075 to 0.09375 modifies speed while firing projectiles - float num10662 = 0.075f; Vector2 vector121 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); - Vector2 vector122 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num1067 = player.position.X + (float)(player.width / 2) - vector122.X; - float num1068 = player.position.Y + (float)(player.height / 2) - 300f - vector122.Y; - float num1069 = (float)Math.Sqrt((double)(num1067 * num1067 + num1068 * num1068)); npc.ai[1] += 1f; bool flag104 = false; if (npc.life < npc.lifeMax / 3 || CalamityWorld.death || CalamityWorld.bossRushActive) @@ -372,10 +372,10 @@ namespace CalamityMod.NPCs.CosmicWraith if (Main.netMode != 1) { float num1070 = 15f; //changed from 10 - if (npc.GetGlobalNPC(mod).enraged) - { - num1070 += 3f; - } + if (npc.GetGlobalNPC(mod).enraged) + { + num1070 += 3f; + } if (cosmicRain) { num1070 += 2f; //changed from 3 not a prob @@ -388,11 +388,11 @@ namespace CalamityMod.NPCs.CosmicWraith { num1070 += 1f; } - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - num1070 += 1f; - } - float num1071 = player.position.X + (float)player.width * 0.5f - vector121.X + (float)Main.rand.Next(-80, 81); + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + num1070 += 1f; + } + float num1071 = player.position.X + (float)player.width * 0.5f - vector121.X + (float)Main.rand.Next(-80, 81); float num1072 = player.position.Y + (float)player.height * 0.5f - vector121.Y + (float)Main.rand.Next(-40, 41); float num1073 = (float)Math.Sqrt((double)(num1071 * num1071 + num1072 * num1072)); num1073 = num1070 / num1073; @@ -404,85 +404,52 @@ namespace CalamityMod.NPCs.CosmicWraith Main.projectile[num1076].timeLeft = 240; } } - if (!Collision.CanHit(new Vector2(vector121.X, vector121.Y - 30f), 1, 1, player.position, player.width, player.height)) + if (npc.position.Y > player.position.Y - 150f) //200 { - num1065 = 14f; //changed from 14 not a prob - num1066 = 0.25f; //changed from 0.1 not a prob - num10662 = 0.1f; - vector122 = vector121; - num1067 = player.position.X + (float)(player.width / 2) - vector122.X; - num1068 = player.position.Y + (float)(player.height / 2) - vector122.Y; - num1069 = (float)Math.Sqrt((double)(num1067 * num1067 + num1068 * num1068)); - num1069 = num1065 / num1069; - if (npc.velocity.X < num1067) + if (npc.velocity.Y > 0f) { - npc.velocity.X = npc.velocity.X + num1066; - if (npc.velocity.X < 0f && num1067 > 0f) - { - npc.velocity.X = npc.velocity.X + num1066; - } + npc.velocity.Y = npc.velocity.Y * 0.975f; } - else if (npc.velocity.X > num1067) + npc.velocity.Y = npc.velocity.Y - 0.1f; + if (npc.velocity.Y > 3f) { - npc.velocity.X = npc.velocity.X - num1066; - if (npc.velocity.X > 0f && num1067 < 0f) - { - npc.velocity.X = npc.velocity.X - num1066; - } - } - if (npc.velocity.Y < num1068) - { - npc.velocity.Y = npc.velocity.Y + num10662; - if (npc.velocity.Y < 0f && num1068 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num10662; - } - } - else if (npc.velocity.Y > num1068) - { - npc.velocity.Y = npc.velocity.Y - num10662; - if (npc.velocity.Y > 0f && num1068 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num10662; - } + npc.velocity.Y = 3f; } } - else if (num1069 > 100f) + else if (npc.position.Y < player.position.Y - 400f) //500 { - npc.TargetClosest(true); - npc.spriteDirection = npc.direction; - num1069 = num1065 / num1069; - if (npc.velocity.X < num1067) + if (npc.velocity.Y < 0f) { - npc.velocity.X = npc.velocity.X + num1066; - if (npc.velocity.X < 0f && num1067 > 0f) - { - npc.velocity.X = npc.velocity.X + num1066 * 2f; - } + npc.velocity.Y = npc.velocity.Y * 0.975f; } - else if (npc.velocity.X > num1067) + npc.velocity.Y = npc.velocity.Y + 0.1f; + if (npc.velocity.Y < -3f) { - npc.velocity.X = npc.velocity.X - num1066; - if (npc.velocity.X > 0f && num1067 < 0f) - { - npc.velocity.X = npc.velocity.X - num1066 * 2f; - } + npc.velocity.Y = -3f; } - if (npc.velocity.Y < num1068) + } + if (npc.position.X + (float)(npc.width / 2) > player.position.X + (float)(player.width / 2) + 150f) //100 + { + if (npc.velocity.X > 0f) { - npc.velocity.Y = npc.velocity.Y + num10662; - if (npc.velocity.Y < 0f && num1068 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num10662 * 2f; - } + npc.velocity.X = npc.velocity.X * 0.98f; } - else if (npc.velocity.Y > num1068) + npc.velocity.X = npc.velocity.X - 0.1f; + if (npc.velocity.X > 12f) { - npc.velocity.Y = npc.velocity.Y - num10662; - if (npc.velocity.Y > 0f && num1068 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num10662 * 2f; - } + npc.velocity.X = 12f; + } + } + if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)(player.width / 2) - 150f) //100 + { + if (npc.velocity.X < 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + npc.velocity.X = npc.velocity.X + 0.1f; + if (npc.velocity.X < -12f) + { + npc.velocity.X = -12f; } } if (npc.ai[1] > 300f) @@ -495,33 +462,34 @@ namespace CalamityMod.NPCs.CosmicWraith return; } } - else if (npc.ai[0] == 4f) + else if (npc.ai[0] == 4f) { - npc.dontTakeDamage = false; - npc.chaseable = true; - if (Main.netMode != 1) - { - if (NPC.CountNPCS(mod.NPCType("CosmicLantern")) < 5) - { - for (int x = 0; x < 5; x++) - { - int num660 = NPC.NewNPC((int)(Main.player[npc.target].position.X + spawnX), (int)(Main.player[npc.target].position.Y + spawnY), mod.NPCType("CosmicLantern"), 0, 0f, 0f, 0f, 0f, 255); - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); - } - int num661 = NPC.NewNPC((int)(Main.player[npc.target].position.X - spawnX), (int)(Main.player[npc.target].position.Y + spawnY), mod.NPCType("CosmicLantern"), 0, 0f, 0f, 0f, 0f, 255); - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, num661, 0f, 0f, 0f, 0, 0, 0); - } - spawnY -= 60f; - } - spawnY = 120f; - npc.netUpdate = true; - } - } - npc.TargetClosest(false); + npc.damage = expertMode ? 240 : 150; + npc.dontTakeDamage = false; + npc.chaseable = true; + if (Main.netMode != 1) + { + if (NPC.CountNPCS(mod.NPCType("CosmicLantern")) < 5) + { + for (int x = 0; x < 5; x++) + { + int num660 = NPC.NewNPC((int)(Main.player[npc.target].position.X + spawnX), (int)(Main.player[npc.target].position.Y + spawnY), mod.NPCType("CosmicLantern"), 0, 0f, 0f, 0f, 0f, 255); + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, num660, 0f, 0f, 0f, 0, 0, 0); + } + int num661 = NPC.NewNPC((int)(Main.player[npc.target].position.X - spawnX), (int)(Main.player[npc.target].position.Y + spawnY), mod.NPCType("CosmicLantern"), 0, 0f, 0f, 0f, 0f, 255); + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, num661, 0f, 0f, 0f, 0, 0, 0); + } + spawnY -= 60f; + } + spawnY = 120f; + npc.netUpdate = true; + } + } + npc.TargetClosest(false); npc.rotation = npc.velocity.ToRotation(); if (Math.Sign(npc.velocity.X) != 0) { @@ -537,7 +505,7 @@ namespace CalamityMod.NPCs.CosmicWraith } npc.spriteDirection = Math.Sign(npc.velocity.X); phaseSwitch += 1f; - if (chargeSwitch == 0f) + if (chargeSwitch == 0f) { float scaleFactor6 = num998; Vector2 center4 = npc.Center; @@ -558,32 +526,32 @@ namespace CalamityMod.NPCs.CosmicWraith { npc.velocity.X = (npc.velocity.X * (num1000 - 1f) + vector127.X) / (cosmicSpeed ? 11.75f : 14.8f); //num1000 12f 15f npc.velocity.Y = (npc.velocity.Y * (num1000 - 1f) + vector127.Y) / (cosmicSpeed ? 11.75f : 14.8f); //num1000 12f 15f - if (!flag64) + if (!flag64) { npc.ai[3] += 1f; - if (npc.ai[3] == 120f) + if (npc.ai[3] == 120f) { npc.netUpdate = true; } - } + } else { npc.ai[3] = 0f; } - } - else + } + else { chargeSwitch = 1f; npc.ai[2] = vector126.X; npc.ai[3] = vector126.Y; npc.netUpdate = true; } - } - else if (chargeSwitch == 1f) + } + else if (chargeSwitch == 1f) { npc.velocity *= scaleFactor4; npc.ai[1] += 1f; - if (npc.ai[1] >= num1001) + if (npc.ai[1] >= num1001) { chargeSwitch = 2f; npc.ai[1] = 0f; @@ -593,8 +561,8 @@ namespace CalamityMod.NPCs.CosmicWraith velocity *= scaleFactor5; npc.velocity = velocity; } - } - else if (chargeSwitch == 2f) + } + else if (chargeSwitch == 2f) { if (Main.netMode != 1) { @@ -607,16 +575,16 @@ namespace CalamityMod.NPCs.CosmicWraith int projectile = Projectile.NewProjectile((int)vector173.X, (int)vector173.Y, (float)(npc.direction * 2), 4f, mod.ProjectileType("EssenceDust"), damage, 0f, Main.myPlayer, 0f, 0f); //changed Main.projectile[projectile].timeLeft = 60; Main.projectile[projectile].velocity.X = 0f; - Main.projectile[projectile].velocity.Y = 0f; - dustTimer = 3; + Main.projectile[projectile].velocity.Y = 0f; + dustTimer = 3; } } + npc.damage = expertMode ? 320 : 200; float num1016 = num1003; npc.ai[1] += 1f; bool flag65 = Vector2.Distance(npc.Center, player.Center) > num1004 && npc.Center.Y > player.Center.Y; if ((npc.ai[1] >= num1016 && flag65) || npc.velocity.Length() < num1007) { - chargeSwitch = 0f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] = 0f; @@ -624,24 +592,24 @@ namespace CalamityMod.NPCs.CosmicWraith npc.netUpdate = true; npc.ai[1] = 45f; chargeSwitch = 4f; - } - else + } + else { Vector2 center6 = npc.Center; Vector2 center7 = player.Center; Vector2 vec2 = center7 - center6; vec2.Normalize(); - if (vec2.HasNaNs()) + if (vec2.HasNaNs()) { vec2 = new Vector2((float)npc.direction, 0f); } npc.velocity = (npc.velocity * (num1005 - 1f) + vec2 * (npc.velocity.Length() + num1006)) / (cosmicSpeed ? 11.65f : 14.75f); //num1005 12f 15f } - } - else if (chargeSwitch == 4f) + } + else if (chargeSwitch == 4f) { npc.ai[1] -= 3f; - if (npc.ai[1] <= 0f) + if (npc.ai[1] <= 0f) { chargeSwitch = 0f; npc.ai[1] = 0f; @@ -651,6 +619,7 @@ namespace CalamityMod.NPCs.CosmicWraith } if (phaseSwitch > 300f) { + npc.damage = expertMode ? 240 : 150; npc.ai[0] = 0f; npc.ai[1] = 0f; npc.ai[2] = 0f; @@ -663,126 +632,129 @@ namespace CalamityMod.NPCs.CosmicWraith } } - public override bool CanHitPlayer(Player target, ref int cooldownSlot) + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; return true; } - public override void FindFrame(int frameHeight) - { - npc.frameCounter += 1.0; - if (npc.ai[0] == 4f) - { - if (npc.frameCounter > 72.0) //12 - { - npc.frameCounter = 0.0; - } - } - else - { - int frameY = 196; - if (npc.frameCounter > 72.0) - { - npc.frameCounter = 0.0; - } - npc.frame.Y = frameY * (int)(npc.frameCounter / 12.0); //1 to 6 - if (npc.frame.Y >= frameHeight * 6) - { - npc.frame.Y = 0; - } - } - } + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 1.0; + if (npc.ai[0] == 4f) + { + if (npc.frameCounter > 72.0) //12 + { + npc.frameCounter = 0.0; + } + } + else + { + int frameY = 196; + if (npc.frameCounter > 72.0) + { + npc.frameCounter = 0.0; + } + npc.frame.Y = frameY * (int)(npc.frameCounter / 12.0); //1 to 6 + if (npc.frame.Y >= frameHeight * 6) + { + npc.frame.Y = 0; + } + } + } - public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - Texture2D NPCTexture = Main.npcTexture[npc.type]; - SpriteEffects spriteEffects = SpriteEffects.None; - if (npc.spriteDirection == 1) - { - spriteEffects = SpriteEffects.FlipHorizontally; - } - Color lightColor = (drawColor != null ? (Color)drawColor : CalamityMod.GetNPCColor(((NPC)npc), npc.Center, false)); - int frameCount = Main.npcFrameCount[npc.type]; - float scale = npc.scale; - float rotation = npc.rotation; - float offsetY = npc.gfxOffY; - if (npc.ai[0] == 4f) - { - NPCTexture = mod.GetTexture("NPCs/CosmicWraith/CosmicWraithAlt2"); - int height = 564; - int width = 176; - Vector2 vector = new Vector2((float)(width / 2), (float)(height / frameCount / 2)); - Microsoft.Xna.Framework.Rectangle frame = new Rectangle(0, 0, width, height / frameCount); - frame.Y = 94 * (int)(npc.frameCounter / 12.0); //1 to 6 - if (frame.Y >= 94 * 6) - { - frame.Y = 0; - } - Main.spriteBatch.Draw(NPCTexture, - new Vector2(npc.position.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)width * scale / 2f + vector.X * scale, - npc.position.Y - Main.screenPosition.Y + (float)npc.height - (float)height * scale / (float)frameCount + 4f + vector.Y * scale + 0f + offsetY), - new Microsoft.Xna.Framework.Rectangle?(frame), - npc.GetAlpha(lightColor), - rotation, - vector, - scale, - spriteEffects, - 0f); - return false; - } - else if (npc.ai[0] == 3f) - { - NPCTexture = mod.GetTexture("NPCs/CosmicWraith/CosmicWraithAlt"); - } - else - { - NPCTexture = Main.npcTexture[npc.type]; - } - Microsoft.Xna.Framework.Rectangle frame2 = npc.frame; - Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / frameCount / 2)); - Main.spriteBatch.Draw(NPCTexture, - new Vector2(npc.position.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)Main.npcTexture[npc.type].Width * scale / 2f + vector11.X * scale, - npc.position.Y - Main.screenPosition.Y + (float)npc.height - (float)Main.npcTexture[npc.type].Height * scale / (float)frameCount + 4f + vector11.Y * scale + 0f + offsetY), - new Microsoft.Xna.Framework.Rectangle?(frame2), - npc.GetAlpha(lightColor), - rotation, - vector11, - scale, - spriteEffects, - 0f); - return false; - } + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Texture2D NPCTexture = Main.npcTexture[npc.type]; + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Color lightColor = (drawColor != null ? (Color)drawColor : CalamityMod.GetNPCColor(((NPC)npc), npc.Center, false)); + int frameCount = Main.npcFrameCount[npc.type]; + float scale = npc.scale; + float rotation = npc.rotation; + float offsetY = npc.gfxOffY; + if (npc.ai[0] == 4f) + { + NPCTexture = mod.GetTexture("NPCs/CosmicWraith/CosmicWraithAlt2"); + int height = 564; + int width = 176; + Vector2 vector = new Vector2((float)(width / 2), (float)(height / frameCount / 2)); + Microsoft.Xna.Framework.Rectangle frame = new Rectangle(0, 0, width, height / frameCount); + frame.Y = 94 * (int)(npc.frameCounter / 12.0); //1 to 6 + if (frame.Y >= 94 * 6) + { + frame.Y = 0; + } + Main.spriteBatch.Draw(NPCTexture, + new Vector2(npc.position.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)width * scale / 2f + vector.X * scale, + npc.position.Y - Main.screenPosition.Y + (float)npc.height - (float)height * scale / (float)frameCount + 4f + vector.Y * scale + 0f + offsetY), + new Microsoft.Xna.Framework.Rectangle?(frame), + npc.GetAlpha(lightColor), + rotation, + vector, + scale, + spriteEffects, + 0f); + return false; + } + else if (npc.ai[0] == 3f) + { + NPCTexture = mod.GetTexture("NPCs/CosmicWraith/CosmicWraithAlt"); + } + else + { + NPCTexture = Main.npcTexture[npc.type]; + } + Microsoft.Xna.Framework.Rectangle frame2 = npc.frame; + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / frameCount / 2)); + Main.spriteBatch.Draw(NPCTexture, + new Vector2(npc.position.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)Main.npcTexture[npc.type].Width * scale / 2f + vector11.X * scale, + npc.position.Y - Main.screenPosition.Y + (float)npc.height - (float)Main.npcTexture[npc.type].Height * scale / (float)frameCount + 4f + vector11.Y * scale + 0f + offsetY), + new Microsoft.Xna.Framework.Rectangle?(frame2), + npc.GetAlpha(lightColor), + rotation, + vector11, + scale, + spriteEffects, + 0f); + return false; + } - public override void BossLoot(ref string name, ref int potionType) + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.SuperHealingPotion; } - + public override void NPCLoot() { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("TwistingNether"), Main.rand.Next(2, 4), true); - if (Main.rand.Next(10) == 0) + if (CalamityWorld.DoGSecondStageCountdown <= 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SignusTrophy")); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CosmicKunai")); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Cosmilamp")); + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("TwistingNether"), Main.rand.Next(2, 4), true); + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SignusTrophy")); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CosmicKunai")); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Cosmilamp")); + } } } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 3; k++) @@ -815,15 +787,15 @@ namespace CalamityMod.NPCs.CosmicWraith num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); Main.dust[num624].velocity *= 2f; } - float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus2"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus3"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus4"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus5"), 1f); - } + float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus2"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus3"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus4"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Signus5"), 1f); + } } - + public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) diff --git a/NPCs/Crabulon/CrabShroom.cs b/NPCs/Crabulon/CrabShroom.cs index 6e25c9b103..0d4399ad41 100644 --- a/NPCs/Crabulon/CrabShroom.cs +++ b/NPCs/Crabulon/CrabShroom.cs @@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.Crabulon npc.knockBackResist = 0.75f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; } diff --git a/NPCs/Crabulon/CrabulonIdle.cs b/NPCs/Crabulon/CrabulonIdle.cs index 36dbce043d..adfdd23705 100644 --- a/NPCs/Crabulon/CrabulonIdle.cs +++ b/NPCs/Crabulon/CrabulonIdle.cs @@ -13,14 +13,14 @@ namespace CalamityMod.NPCs.Crabulon [AutoloadBossHead] public class CrabulonIdle : ModNPC { - private float shotSpacing = 1000f; + private float shotSpacing = 1000f; public override void SetStaticDefaults() { DisplayName.SetDefault("Crabulon"); Main.npcFrameCount[npc.type] = 6; } - + public override void SetDefaults() { npc.npcSlots = 14f; @@ -29,31 +29,33 @@ namespace CalamityMod.NPCs.Crabulon npc.height = 154; //216 npc.defense = 8; npc.lifeMax = CalamityWorld.revenge ? 2640 : 1800; - if (CalamityWorld.death) - { - npc.lifeMax = 6930; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 4500000 : 3900000; - } - npc.aiStyle = -1; //new - aiType = -1; //new - npc.noGravity = false; + if (CalamityWorld.death) + { + npc.lifeMax = 6930; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 2300000 : 2000000; + } + npc.aiStyle = -1; //new + aiType = -1; //new + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; + npc.noGravity = false; npc.noTileCollide = false; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Crabulon"); - else - music = MusicID.Boss4; - npc.boss = true; - npc.knockBackResist = 0f; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Crabulon"); + else + music = MusicID.Boss4; + npc.boss = true; + npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 4, 0, 0); npc.HitSound = SoundID.NPCHit45; npc.DeathSound = SoundID.NPCDeath1; bossBag = mod.ItemType("CrabulonBag"); } - + public override void AI() { Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0f, 0.5f, 1f); @@ -83,87 +85,87 @@ namespace CalamityMod.NPCs.Crabulon npc.timeLeft = 1800; } } - if (npc.ai[0] != 0f && npc.ai[0] < 3f) - { - Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num349 = player.position.X + (float)(player.width / 2) - vector34.X; - float num350 = player.position.Y + (float)(player.height / 2) - vector34.Y; - float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num349 *= num351; - num350 *= num351; - if (Main.netMode != 1) - { - int num352 = 1; - npc.localAI[3] += 2f; - if (CalamityWorld.bossRushActive) - { - npc.localAI[3] += 2f; - num352 += 3; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) - { - npc.localAI[3] += 1f; - num352 += 2; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - npc.localAI[3] += 2f; - num352 += 3; - } - if (npc.ai[3] == 0f) - { - if (npc.localAI[3] > 600f) - { - npc.ai[3] = 1f; - npc.localAI[3] = 0f; - } - } - else if (npc.localAI[3] > 45f) - { - npc.localAI[3] = 0f; - npc.ai[3] += 1f; - if (npc.ai[3] >= (float)num352) - { - npc.ai[3] = 0f; - } - float num353 = 10f; - int num354 = expertMode ? 11 : 14; - int num355 = mod.ProjectileType("MushBomb"); - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); - if (CalamityWorld.bossRushActive) - { - num354 += 3; - num353 += 3f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) - { - num354++; - num353 += 1f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num354++; - num353 += 1f; - } - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - num354 += 3; - num353 += 1f; - } - vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - num349 = player.position.X + (float)player.width * 0.5f - vector34.X; - num350 = player.position.Y + (float)player.height * 0.5f - vector34.Y; - num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); - num351 = num353 / num351; - num349 *= num351; - num350 *= num351; - vector34.X += num349; - vector34.Y += num350; - Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350 - 5f, num355, num354, 0f, Main.myPlayer, 0f, 0f); - } - } - } - if (npc.ai[0] == 0f) + if (npc.ai[0] != 0f && npc.ai[0] < 3f) + { + Vector2 vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num349 = player.position.X + (float)(player.width / 2) - vector34.X; + float num350 = player.position.Y + (float)(player.height / 2) - vector34.Y; + float num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num349 *= num351; + num350 *= num351; + if (Main.netMode != 1) + { + int num352 = 1; + npc.localAI[3] += 2f; + if (CalamityWorld.bossRushActive) + { + npc.localAI[3] += 2f; + num352 += 3; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) + { + npc.localAI[3] += 1f; + num352 += 2; + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + npc.localAI[3] += 2f; + num352 += 3; + } + if (npc.ai[3] == 0f) + { + if (npc.localAI[3] > 600f) + { + npc.ai[3] = 1f; + npc.localAI[3] = 0f; + } + } + else if (npc.localAI[3] > 45f) + { + npc.localAI[3] = 0f; + npc.ai[3] += 1f; + if (npc.ai[3] >= (float)num352) + { + npc.ai[3] = 0f; + } + float num353 = 10f; + int num354 = expertMode ? 11 : 14; + int num355 = mod.ProjectileType("MushBomb"); + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); + if (CalamityWorld.bossRushActive) + { + num354 += 3; + num353 += 3f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) + { + num354++; + num353 += 1f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num354++; + num353 += 1f; + } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + num354 += 3; + num353 += 1f; + } + vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num349 = player.position.X + (float)player.width * 0.5f - vector34.X; + num350 = player.position.Y + (float)player.height * 0.5f - vector34.Y; + num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); + num351 = num353 / num351; + num349 *= num351; + num350 *= num351; + vector34.X += num349; + vector34.Y += num350; + Projectile.NewProjectile(vector34.X, vector34.Y, num349, num350 - 5f, num355, num354, 0f, Main.myPlayer, 0f, 0f); + } + } + } + if (npc.ai[0] == 0f) { if (Main.netMode != 2) { @@ -175,14 +177,14 @@ namespace CalamityMod.NPCs.Crabulon int sporeDust = Dust.NewDust(npc.position, npc.width, npc.height, 56, npc.velocity.X, npc.velocity.Y, 255, new Color(0, 80, 255, 80), npc.scale * 1.2f); Main.dust[sporeDust].noGravity = true; Main.dust[sporeDust].velocity *= 0.5f; - npc.damage = 0; - npc.ai[1] += 1f; - if (npc.justHit || npc.ai[1] >= 420f) + npc.damage = 0; + npc.ai[1] += 1f; + if (npc.justHit || npc.ai[1] >= 420f) { npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.netUpdate = true; - } + npc.ai[1] = 0f; + npc.netUpdate = true; + } } else if (npc.ai[0] == 1f) { @@ -196,46 +198,46 @@ namespace CalamityMod.NPCs.Crabulon npc.noTileCollide = true; npc.ai[0] = 2f; npc.ai[1] = 0f; - npc.netUpdate = true; - } + npc.netUpdate = true; + } } else if (npc.ai[0] == 2f) { - npc.damage = expertMode ? 64 : 40; - float num823 = 1.25f; + npc.damage = expertMode ? 64 : 40; + float num823 = 1.25f; bool flag51 = false; - if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) + if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) { num823 = 1.5f; } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) { num823 = 2f; } - if (npc.GetGlobalNPC(mod).enraged) - { - num823 = 8f; - } - if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) < 50f) + if (npc.GetGlobalNPC(mod).enraged) + { + num823 = 8f; + } + if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) < 50f) { flag51 = true; } - if (flag51) + if (flag51) { npc.velocity.X = npc.velocity.X * 0.9f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) { npc.velocity.X = 0f; } - } - else + } + else { - npc.direction = -Main.player[npc.target].direction; - if (npc.direction > 0) + npc.direction = -Main.player[npc.target].direction; + if (npc.direction > 0) { npc.velocity.X = (npc.velocity.X * 20f + num823) / 21f; } - if (npc.direction < 0) + if (npc.direction < 0) { npc.velocity.X = (npc.velocity.X * 20f - num823) / 21f; } @@ -244,44 +246,44 @@ namespace CalamityMod.NPCs.Crabulon int num855 = 20; Vector2 position2 = new Vector2(npc.Center.X - (float)(num854 / 2), npc.position.Y + (float)npc.height - (float)num855); bool flag52 = false; - if (npc.position.X < Main.player[npc.target].position.X && npc.position.X + (float)npc.width > Main.player[npc.target].position.X + (float)Main.player[npc.target].width && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y + (float)Main.player[npc.target].height - 16f) + if (npc.position.X < Main.player[npc.target].position.X && npc.position.X + (float)npc.width > Main.player[npc.target].position.X + (float)Main.player[npc.target].width && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y + (float)Main.player[npc.target].height - 16f) { flag52 = true; } - if (flag52) + if (flag52) { npc.velocity.Y = npc.velocity.Y + 0.5f; - } + } else if (Collision.SolidCollision(position2, num854, num855)) { - if (npc.velocity.Y > 0f) + if (npc.velocity.Y > 0f) { npc.velocity.Y = 0f; } - if ((double)npc.velocity.Y > -0.2) + if ((double)npc.velocity.Y > -0.2) { npc.velocity.Y = npc.velocity.Y - 0.025f; - } + } else { npc.velocity.Y = npc.velocity.Y - 0.2f; } - if (npc.velocity.Y < -4f) + if (npc.velocity.Y < -4f) { npc.velocity.Y = -4f; } - } - else + } + else { - if (npc.velocity.Y < 0f) + if (npc.velocity.Y < 0f) { npc.velocity.Y = 0f; } - if ((double)npc.velocity.Y < 0.1) + if ((double)npc.velocity.Y < 0.1) { npc.velocity.Y = npc.velocity.Y + 0.025f; - } - else + } + else { npc.velocity.Y = npc.velocity.Y + 0.5f; } @@ -293,9 +295,9 @@ namespace CalamityMod.NPCs.Crabulon npc.noTileCollide = false; npc.ai[0] = 3f; npc.ai[1] = 0f; - npc.netUpdate = true; - } - if (npc.velocity.Y > 10f) + npc.netUpdate = true; + } + if (npc.velocity.Y > 10f) { npc.velocity.Y = 10f; return; @@ -303,28 +305,28 @@ namespace CalamityMod.NPCs.Crabulon } else if (npc.ai[0] == 3f) { - npc.damage = expertMode ? 64 : 40; - npc.noTileCollide = false; - if (npc.velocity.Y == 0f) + npc.damage = expertMode ? 64 : 40; + npc.noTileCollide = false; + if (npc.velocity.Y == 0f) { npc.velocity.X = npc.velocity.X * 0.8f; npc.ai[1] += 1f; if (npc.ai[1] > 0f) { - if (npc.life < npc.lifeMax / 2 || CalamityWorld.bossRushActive) + if (npc.life < npc.lifeMax / 2 || CalamityWorld.bossRushActive) { npc.ai[1] += 4f; } - if (npc.life < npc.lifeMax / 10 || CalamityWorld.bossRushActive) + if (npc.life < npc.lifeMax / 10 || CalamityWorld.bossRushActive) { npc.ai[1] += 8f; } } - if (npc.ai[1] >= 300f) + if (npc.ai[1] >= 300f) { npc.ai[1] = -20f; npc.frameCounter = 0.0; - } + } else if (npc.ai[1] == -1f) { npc.TargetClosest(true); @@ -337,86 +339,86 @@ namespace CalamityMod.NPCs.Crabulon } else { - if (npc.velocity.Y == 0f) + if (npc.velocity.Y == 0f) { Main.PlaySound(SoundID.Item14, npc.position); - if (Main.netMode != 1) - { - Projectile.NewProjectile((int)npc.Center.X, (int)npc.Center.Y + 20, 0f, 0f, mod.ProjectileType("Mushmash"), 20, 0f, Main.myPlayer, 0f, 0f); - } - npc.ai[2] += 1f; + if (Main.netMode != 1) + { + Projectile.NewProjectile((int)npc.Center.X, (int)npc.Center.Y + 20, 0f, 0f, mod.ProjectileType("Mushmash"), 20, 0f, Main.myPlayer, 0f, 0f); + } + npc.ai[2] += 1f; if (npc.ai[2] >= 3f) { - if (Main.netMode != 1 && revenge) - { - for (int x = 0; x < 20; x++) - { - int num354 = expertMode ? 11 : 14; - Projectile.NewProjectile(npc.Center.X + shotSpacing, npc.Center.Y - 1000f, 0f, 0f, mod.ProjectileType("MushBombFall"), num354, 0f, Main.myPlayer, 0f, 0f); - shotSpacing -= 100f; - } - shotSpacing = 1000f; - } - npc.ai[0] = 1f; + if (Main.netMode != 1 && revenge) + { + for (int x = 0; x < 20; x++) + { + int num354 = expertMode ? 11 : 14; + Projectile.NewProjectile(npc.Center.X + shotSpacing, npc.Center.Y - 1000f, 0f, 0f, mod.ProjectileType("MushBombFall"), num354, 0f, Main.myPlayer, 0f, 0f); + shotSpacing -= 100f; + } + shotSpacing = 1000f; + } + npc.ai[0] = 1f; npc.ai[2] = 0f; } else { npc.ai[0] = 3f; } - for (int num622 = (int)npc.position.X - 20; num622 < (int)npc.position.X + npc.width + 40; num622 += 20) + for (int num622 = (int)npc.position.X - 20; num622 < (int)npc.position.X + npc.width + 40; num622 += 20) { - for (int num623 = 0; num623 < 4; num623++) + for (int num623 = 0; num623 < 4; num623++) { int num624 = Dust.NewDust(new Vector2(npc.position.X - 20f, npc.position.Y + (float)npc.height), npc.width + 20, 4, 56, 0f, 0f, 100, default(Color), 1.5f); Main.dust[num624].velocity *= 0.2f; } } - } - else + } + else { npc.TargetClosest(true); - if (npc.position.X < player.position.X && npc.position.X + (float)npc.width > player.position.X + (float)player.width) + if (npc.position.X < player.position.X && npc.position.X + (float)npc.width > player.position.X + (float)player.width) { npc.velocity.X = npc.velocity.X * 0.9f; npc.velocity.Y = npc.velocity.Y + 0.15f; //0.2 - } - else + } + else { - if (npc.direction < 0) + if (npc.direction < 0) { npc.velocity.X = npc.velocity.X - 0.2f; } - else if (npc.direction > 0) + else if (npc.direction > 0) { npc.velocity.X = npc.velocity.X + 0.2f; } float num626 = 2.5f; //4 - if (revenge) - { - num626 += 1f; - } - if (npc.GetGlobalNPC(mod).enraged) - { - num626 += 3f; - } - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - num626 += 2f; - } - if (npc.life < npc.lifeMax / 2 || CalamityWorld.bossRushActive) + if (revenge) { num626 += 1f; } - if (npc.life < npc.lifeMax / 10 || CalamityWorld.bossRushActive) + if (npc.GetGlobalNPC(mod).enraged) + { + num626 += 3f; + } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + num626 += 2f; + } + if (npc.life < npc.lifeMax / 2 || CalamityWorld.bossRushActive) { num626 += 1f; } - if (npc.velocity.X < -num626) + if (npc.life < npc.lifeMax / 10 || CalamityWorld.bossRushActive) + { + num626 += 1f; + } + if (npc.velocity.X < -num626) { npc.velocity.X = -num626; } - if (npc.velocity.X > num626) + if (npc.velocity.X > num626) { npc.velocity.X = num626; } @@ -427,7 +429,7 @@ namespace CalamityMod.NPCs.Crabulon { npc.localAI[0] = (float)npc.lifeMax; } - if (npc.life > 0) + if (npc.life > 0) { if (Main.netMode != 1) { @@ -454,16 +456,16 @@ namespace CalamityMod.NPCs.Crabulon } } } - } - + } + public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.15f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } - + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) { Mod mod = ModLoader.GetMod("CalamityMod"); @@ -479,21 +481,21 @@ namespace CalamityMod.NPCs.Crabulon } return false; } - + public override void NPCLoot() { if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrabulonTrophy")); } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } @@ -501,11 +503,11 @@ namespace CalamityMod.NPCs.Crabulon { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.GlowingMushroom, Main.rand.Next(20, 31)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.MushroomGrassSeeds, Main.rand.Next(3, 7)); - if (Main.rand.Next(7) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrabulonMask")); - } - if (Main.rand.Next(4) == 0) + if (Main.rand.Next(7) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrabulonMask")); + } + if (Main.rand.Next(4) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HyphaeRod")); } @@ -523,13 +525,13 @@ namespace CalamityMod.NPCs.Crabulon } } } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) @@ -562,15 +564,15 @@ namespace CalamityMod.NPCs.Crabulon num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 56, 0f, 0f, 100, default(Color), 2f); Main.dust[num624].velocity *= 2f; } - float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon2"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon3"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon4"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon5"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon6"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon7"), 1f); - } + float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon2"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon3"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon4"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon5"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon6"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Crabulon7"), 1f); + } } } } \ No newline at end of file diff --git a/NPCs/Cryogen/Cryocore.cs b/NPCs/Cryogen/Cryocore.cs index e24bfe0b58..154bb2ad95 100644 --- a/NPCs/Cryogen/Cryocore.cs +++ b/NPCs/Cryogen/Cryocore.cs @@ -35,6 +35,7 @@ namespace CalamityMod.NPCs.Cryogen npc.knockBackResist = 0.75f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath15; } diff --git a/NPCs/Cryogen/Cryocore2.cs b/NPCs/Cryogen/Cryocore2.cs index b9024bb4a0..3a940dc003 100644 --- a/NPCs/Cryogen/Cryocore2.cs +++ b/NPCs/Cryogen/Cryocore2.cs @@ -35,6 +35,7 @@ namespace CalamityMod.NPCs.Cryogen npc.knockBackResist = 0.5f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath15; } diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index fa970d105d..d9136d26c7 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -14,16 +14,16 @@ namespace CalamityMod.NPCs.Cryogen [AutoloadBossHead] public class Cryogen : ModNPC { - private int time = 0; - private bool oneTime = true; - private float iceShard = 0f; - private bool drawAltTexture = false; + private int time = 0; + private bool oneTime = true; + private float iceShard = 0f; + private bool drawAltTexture = false; - public override void SetStaticDefaults() + public override void SetStaticDefaults() { DisplayName.SetDefault("Cryogen"); } - + public override void SetDefaults() { npc.npcSlots = 24f; @@ -32,52 +32,52 @@ namespace CalamityMod.NPCs.Cryogen npc.height = 80; //216 npc.defense = 10; npc.lifeMax = CalamityWorld.revenge ? 26300 : 17900; - if (CalamityWorld.death) - { - npc.lifeMax = 39900; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 6000000 : 5400000; - } - npc.aiStyle = -1; //new - aiType = -1; //new - animationType = 10; //new + if (CalamityWorld.death) + { + npc.lifeMax = 39900; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 3000000 : 2700000; + } + npc.aiStyle = -1; //new + aiType = -1; //new + animationType = 10; //new npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 12, 0, 0); for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; - npc.buffImmune[BuffID.OnFire] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("BrimstoneFlames")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } + npc.buffImmune[mod.BuffType("MarkedforDeath")] = false; + npc.buffImmune[BuffID.OnFire] = false; + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[BuffID.Daybreak] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("BrimstoneFlames")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("HolyLight")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Plague")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath15; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Cryogen"); - else - music = MusicID.FrostMoon; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Cryogen"); + else + music = MusicID.FrostMoon; bossBag = mod.ItemType("CryogenBag"); } - + public override void AI() { Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0f, 1f, 1f); @@ -139,664 +139,664 @@ namespace CalamityMod.NPCs.Cryogen if (Main.netMode != 1 && expertMode) { time++; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - time++; - } - if (time >= 600) - { - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 4f; - double offsetAngle; - int i; - int num184 = 22; - for (i = 0; i < 2; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBomb"), num184, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBomb"), num184, 0f, Main.myPlayer, 0f, 0f); - } - time = 0; - } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + time++; + } + if (time >= 600) + { + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 4f; + double offsetAngle; + int i; + int num184 = 22; + for (i = 0; i < 2; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBomb"), num184, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBomb"), num184, 0f, Main.myPlayer, 0f, 0f); + } + time = 0; + } + } + if (npc.ai[0] == 0f) + { + if (Main.netMode != 1) + { + npc.localAI[0] += 1f; + if (npc.localAI[0] >= 120f) + { + npc.localAI[0] = 0f; + npc.TargetClosest(true); + npc.netUpdate = true; + if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) + { + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int num184 = expertMode ? 20 : 23; + int i; + for (i = 0; i < 8; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + } + } + } + } + Vector2 vector142 = new Vector2(npc.Center.X, npc.Center.Y); + float num1243 = player.Center.X - vector142.X; + float num1244 = player.Center.Y - vector142.Y; + float num1245 = (float)Math.Sqrt((double)(num1243 * num1243 + num1244 * num1244)); + float num1246 = isChill ? 3f : 5f; + if (CalamityWorld.death) + { + num1246 = isChill ? 4f : 6f; + } + if (CalamityWorld.bossRushActive) + { + num1246 = 10f; + } + if (num1245 < num1246) + { + npc.velocity.X = num1243; + npc.velocity.Y = num1244; + } + else + { + num1245 = num1246 / num1245; + npc.velocity.X = num1243 * num1245; + npc.velocity.Y = num1244 * num1245; + } + if ((double)npc.life < (double)npc.lifeMax * 0.83) + { + npc.ai[0] = 1f; + npc.localAI[0] = 0f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 1f) + { + if (Main.netMode != 1) + { + npc.localAI[0] += 1f; + if (npc.localAI[0] >= 120f) + { + npc.localAI[0] = 0f; + npc.TargetClosest(true); + if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) + { + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int num184 = expertMode ? 20 : 23; + int i; + for (i = 0; i < 6; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[ice].timeLeft = 300; + Main.projectile[ice2].timeLeft = 300; + } + } + } + } + float num1164 = isChill ? 4f : 6f; + float num1165 = isChill ? 1f : 1.2f; + if (CalamityWorld.death) + { + num1164 = isChill ? 5f : 7f; + } + if (CalamityWorld.bossRushActive) + { + num1164 = 12f; + } + Vector2 vector133 = new Vector2(npc.Center.X, npc.Center.Y); + float num1166 = player.Center.X - vector133.X; + float num1167 = player.Center.Y - vector133.Y - 400f; + float num1168 = (float)Math.Sqrt((double)(num1166 * num1166 + num1167 * num1167)); + if (num1168 < 20f) + { + num1166 = npc.velocity.X; + num1167 = npc.velocity.Y; + } + else + { + num1168 = num1164 / num1168; + num1166 *= num1168; + num1167 *= num1168; + } + if (npc.velocity.X < num1166) + { + npc.velocity.X = npc.velocity.X + num1165; + if (npc.velocity.X < 0f && num1166 > 0f) + { + npc.velocity.X = npc.velocity.X + num1165 * 2f; + } + } + else if (npc.velocity.X > num1166) + { + npc.velocity.X = npc.velocity.X - num1165; + if (npc.velocity.X > 0f && num1166 < 0f) + { + npc.velocity.X = npc.velocity.X - num1165 * 2f; + } + } + if (npc.velocity.Y < num1167) + { + npc.velocity.Y = npc.velocity.Y + num1165; + if (npc.velocity.Y < 0f && num1167 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num1165 * 2f; + } + } + else if (npc.velocity.Y > num1167) + { + npc.velocity.Y = npc.velocity.Y - num1165; + if (npc.velocity.Y > 0f && num1167 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num1165 * 2f; + } + } + if (npc.position.X + (float)npc.width > player.position.X && npc.position.X < player.position.X + (float)player.width && npc.position.Y + (float)npc.height < player.position.Y && Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height) && Main.netMode != 1) + { + iceShard += 4f; + if (iceShard > 8f) + { + iceShard = 0f; + int num1169 = (int)(npc.position.X + 10f + (float)Main.rand.Next(npc.width - 20)); + int num1170 = (int)(npc.position.Y + (float)npc.height + 4f); + int damage = expertMode ? 23 : 26; + Projectile.NewProjectile((float)num1169, (float)num1170, 0f, 5f, mod.ProjectileType("IceRain"), damage, 0f, Main.myPlayer, 0f, 0f); + return; + } + } + if ((double)npc.life < (double)npc.lifeMax * 0.66) + { + npc.ai[0] = 2f; + npc.localAI[0] = 0f; + iceShard = 0f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 2f) + { + if (Main.netMode != 1) + { + npc.localAI[0] += 1f; + if (npc.localAI[0] >= 120f) + { + npc.localAI[0] = 0f; + npc.TargetClosest(true); + npc.netUpdate = true; + if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) + { + if (Main.rand.Next(2) == 0) + { + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int num184 = expertMode ? 20 : 23; + int i; + for (i = 0; i < 6; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[ice].timeLeft = 300; + Main.projectile[ice2].timeLeft = 300; + } + } + else + { + float num179 = revenge ? 9f : 7f; + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num180 = player.position.X + (float)player.width * 0.5f - value9.X; + float num181 = Math.Abs(num180) * 0.1f; + float num182 = player.position.Y + (float)player.height * 0.5f - value9.Y - num181; + float num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); + npc.netUpdate = true; + num183 = num179 / num183; + num180 *= num183; + num182 *= num183; + int num184 = expertMode ? 23 : 26; + int num185 = mod.ProjectileType("IceRain"); + value9.X += num180; + value9.Y += num182; + for (int num186 = 0; num186 < 15; num186++) + { + num180 = player.position.X + (float)player.width * 0.5f - value9.X; + num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; + num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); + num183 = num179 / num183; + num180 += (float)Main.rand.Next(-100, 101); + num182 += (float)Main.rand.Next(-100, 101); + num180 *= num183; + num182 *= num183; + Projectile.NewProjectile(value9.X, value9.Y, num180, -10f, num185, num184, 0f, Main.myPlayer, 0f, 0f); + } + } + } + } + } + Vector2 vector142 = new Vector2(npc.Center.X, npc.Center.Y); + float num1243 = player.Center.X - vector142.X; + float num1244 = player.Center.Y - vector142.Y; + float num1245 = (float)Math.Sqrt((double)(num1243 * num1243 + num1244 * num1244)); + float num1246 = isChill ? 5f : 7f; + if (CalamityWorld.death) + { + num1246 = isChill ? 6f : 8f; + } + if (CalamityWorld.bossRushActive) + { + num1246 = 14f; + } + if (num1245 < num1246) + { + npc.velocity.X = num1243; + npc.velocity.Y = num1244; + } + else + { + num1245 = num1246 / num1245; + npc.velocity.X = num1243 * num1245; + npc.velocity.Y = num1244 * num1245; + } + if ((double)npc.life < (double)npc.lifeMax * 0.49) + { + npc.ai[0] = 3f; + npc.localAI[0] = 0f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 3f) + { + if (Main.netMode != 1) + { + npc.localAI[0] += 1f; + if (npc.localAI[0] >= 120f) + { + npc.localAI[0] = 0f; + npc.TargetClosest(true); + if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) + { + float num179 = revenge ? 9f : 7f; + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num180 = player.position.X + (float)player.width * 0.5f - value9.X; + float num181 = Math.Abs(num180) * 0.1f; + float num182 = player.position.Y + (float)player.height * 0.5f - value9.Y - num181; + float num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); + npc.netUpdate = true; + num183 = num179 / num183; + num180 *= num183; + num182 *= num183; + int num184 = expertMode ? 23 : 26; + int num185 = mod.ProjectileType("IceRain"); + value9.X += num180; + value9.Y += num182; + for (int num186 = 0; num186 < 15; num186++) + { + num180 = player.position.X + (float)player.width * 0.5f - value9.X; + num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; + num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); + num183 = num179 / num183; + num180 += (float)Main.rand.Next(-100, 101); + num182 += (float)Main.rand.Next(-100, 101); + num180 *= num183; + num182 *= num183; + Projectile.NewProjectile(value9.X, value9.Y, num180, -10f, num185, num184, 0f, Main.myPlayer, 0f, 0f); + } + } + } + } + float num1164 = isChill ? 4.5f : 6.5f; + float num1165 = isChill ? 1.1f : 1.3f; + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + num1164 = isChill ? 5.5f : 7.5f; + } + Vector2 vector133 = new Vector2(npc.Center.X, npc.Center.Y); + float num1166 = player.Center.X - vector133.X; + float num1167 = player.Center.Y - vector133.Y - 300f; + float num1168 = (float)Math.Sqrt((double)(num1166 * num1166 + num1167 * num1167)); + if (num1168 < 20f) + { + num1166 = npc.velocity.X; + num1167 = npc.velocity.Y; + } + else + { + num1168 = num1164 / num1168; + num1166 *= num1168; + num1167 *= num1168; + } + if (npc.velocity.X < num1166) + { + npc.velocity.X = npc.velocity.X + num1165; + if (npc.velocity.X < 0f && num1166 > 0f) + { + npc.velocity.X = npc.velocity.X + num1165 * 2f; + } + } + else if (npc.velocity.X > num1166) + { + npc.velocity.X = npc.velocity.X - num1165; + if (npc.velocity.X > 0f && num1166 < 0f) + { + npc.velocity.X = npc.velocity.X - num1165 * 2f; + } + } + if (npc.velocity.Y < num1167) + { + npc.velocity.Y = npc.velocity.Y + num1165; + if (npc.velocity.Y < 0f && num1167 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num1165 * 2f; + } + } + else if (npc.velocity.Y > num1167) + { + npc.velocity.Y = npc.velocity.Y - num1165; + if (npc.velocity.Y > 0f && num1167 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num1165 * 2f; + } + } + if (npc.position.X + (float)npc.width > player.position.X && npc.position.X < player.position.X + (float)player.width && npc.position.Y + (float)npc.height < player.position.Y && Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height) && Main.netMode != 1) + { + iceShard += 4f; + if (iceShard > 8f) + { + iceShard = 0f; + int num1169 = (int)(npc.position.X + 10f + (float)Main.rand.Next(npc.width - 20)); + int num1170 = (int)(npc.position.Y + (float)npc.height + 4f); + int damage = expertMode ? 23 : 26; + Projectile.NewProjectile((float)num1169, (float)num1170, 0f, 5f, mod.ProjectileType("IceRain"), damage, 0f, Main.myPlayer, 0f, 0f); + return; + } + } + if ((double)npc.life < (double)npc.lifeMax * 0.32) + { + npc.ai[0] = 4f; + npc.localAI[0] = 0f; + iceShard = 0f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 4f) + { + if (Main.netMode != 1) + { + npc.localAI[0] += 1f; + if (npc.localAI[0] >= 60f && npc.alpha <= 0) + { + npc.localAI[0] = 0f; + npc.TargetClosest(true); + if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) + { + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int num184 = expertMode ? 20 : 23; + int i; + for (i = 0; i < 6; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 9f), (float)(Math.Cos(offsetAngle) * 9f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 9f), (float)(-Math.Cos(offsetAngle) * 9f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[ice].timeLeft = 300; + Main.projectile[ice2].timeLeft = 300; + } + } + } + } + npc.TargetClosest(true); + Vector2 vector142 = new Vector2(npc.Center.X, npc.Center.Y); + float num1243 = player.Center.X - vector142.X; + float num1244 = player.Center.Y - vector142.Y; + float num1245 = (float)Math.Sqrt((double)(num1243 * num1243 + num1244 * num1244)); + float speed = revenge ? 4.5f : 4f; + if (CalamityWorld.bossRushActive) + { + speed = 9f; + } + if (num1245 < speed) + { + npc.velocity.X = num1243; + npc.velocity.Y = num1244; + } + else + { + num1245 = speed / num1245; + npc.velocity.X = num1243 * num1245; + npc.velocity.Y = num1244 * num1245; + } + if (npc.ai[1] == 0f) + { + npc.chaseable = true; + npc.dontTakeDamage = false; + if (Main.netMode != 1) + { + npc.localAI[2] += 1f; + if (npc.localAI[2] >= (float)(120 + Main.rand.Next(200))) + { + npc.localAI[2] = 0f; + npc.TargetClosest(true); + int num1249 = 0; + int num1250; + int num1251; + while (true) + { + num1249++; + num1250 = (int)player.Center.X / 16; + num1251 = (int)player.Center.Y / 16; + num1250 += Main.rand.Next(-50, 51); + num1251 += Main.rand.Next(-50, 51); + if (!WorldGen.SolidTile(num1250, num1251) && Collision.CanHit(new Vector2((float)(num1250 * 16), (float)(num1251 * 16)), 1, 1, player.position, player.width, player.height)) + { + break; + } + if (num1249 > 100) + { + goto Block; + } + } + npc.ai[1] = 1f; + npc.localAI[3] = (float)num1250; + iceShard = (float)num1251; + npc.netUpdate = true; + Block:; + } + } + } + else if (npc.ai[1] == 1f) + { + npc.damage = 0; + npc.dontTakeDamage = true; + npc.chaseable = false; + npc.alpha += 4; + if (npc.alpha >= 255) + { + npc.alpha = 255; + npc.position.X = npc.localAI[3] * 16f - (float)(npc.width / 2); + npc.position.Y = iceShard * 16f - (float)(npc.height / 2); + npc.ai[1] = 2f; + npc.netUpdate = true; + } + } + else if (npc.ai[1] == 2f) + { + npc.alpha -= 4; + if (npc.alpha <= 0) + { + npc.damage = expertMode ? 96 : 60; + npc.dontTakeDamage = false; + npc.chaseable = true; + npc.alpha = 0; + npc.ai[1] = 0f; + npc.netUpdate = true; + } + } + if ((double)npc.life < (double)npc.lifeMax * 0.15) + { + Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 15); + drawAltTexture = true; + for (int num621 = 0; num621 < 40; num621++) + { + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 70; num623++) + { + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + } + float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore1"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore2"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore3"), 1f); + npc.ai[0] = 5f; + npc.ai[1] = 0f; + npc.localAI[0] = 0f; + npc.localAI[2] = 0f; + npc.localAI[3] = 0f; + iceShard = 0f; + npc.netUpdate = true; + string key = "Mods.CalamityMod.CryogenBossText"; + Color messageColor = Color.Cyan; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + return; + } + } + else + { + npc.dontTakeDamage = false; + npc.chaseable = true; + float num1372 = isChill ? 16f : 22f; + if (CalamityWorld.bossRushActive) + { + num1372 = 24f; + } + Vector2 vector167 = new Vector2(npc.Center.X + (float)(npc.direction * 20), npc.Center.Y + 6f); + float num1373 = player.position.X + (float)player.width * 0.5f - vector167.X; + float num1374 = player.Center.Y - vector167.Y; + float num1375 = (float)Math.Sqrt((double)(num1373 * num1373 + num1374 * num1374)); + float num1376 = num1372 / num1375; + num1373 *= num1376; + num1374 *= num1376; + iceShard -= 1f; + if ((double)npc.life < (double)npc.lifeMax * 0.05 || CalamityWorld.death || CalamityWorld.bossRushActive) + { + if (num1375 < 170f || iceShard > 0f) + { + if (num1375 < 170f) + { + iceShard = 17f; + } + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.rotation += (float)npc.direction * 0.5f; + return; + } + } + else if ((double)npc.life < (double)npc.lifeMax * 0.1) + { + if (num1375 < 190f || iceShard > 0f) + { + if (num1375 < 190f) + { + iceShard = 19f; + } + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.rotation += (float)npc.direction * 0.35f; + return; + } + } + else + { + if (num1375 < 200f || iceShard > 0f) + { + if (num1375 < 200f) + { + iceShard = 20f; + } + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.rotation += (float)npc.direction * 0.3f; + return; + } + } + npc.velocity.X = (npc.velocity.X * 50f + num1373) / 51f; + npc.velocity.Y = (npc.velocity.Y * 50f + num1374) / 51f; + if (num1375 < 350f) + { + npc.velocity.X = (npc.velocity.X * 10f + num1373) / 11f; + npc.velocity.Y = (npc.velocity.Y * 10f + num1374) / 11f; + } + if (num1375 < 300f) + { + npc.velocity.X = (npc.velocity.X * 7f + num1373) / 8f; + npc.velocity.Y = (npc.velocity.Y * 7f + num1374) / 8f; + } + npc.rotation = npc.velocity.X * 0.15f; + return; } - if (npc.ai[0] == 0f) - { - if (Main.netMode != 1) - { - npc.localAI[0] += 1f; - if (npc.localAI[0] >= 120f) - { - npc.localAI[0] = 0f; - npc.TargetClosest(true); - npc.netUpdate = true; - if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) - { - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int num184 = expertMode ? 20 : 23; - int i; - for (i = 0; i < 8; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - } - } - } - } - Vector2 vector142 = new Vector2(npc.Center.X, npc.Center.Y); - float num1243 = player.Center.X - vector142.X; - float num1244 = player.Center.Y - vector142.Y; - float num1245 = (float)Math.Sqrt((double)(num1243 * num1243 + num1244 * num1244)); - float num1246 = isChill ? 3f : 5f; - if (CalamityWorld.death) - { - num1246 = isChill ? 4f : 6f; - } - if (CalamityWorld.bossRushActive) - { - num1246 = 10f; - } - if (num1245 < num1246) - { - npc.velocity.X = num1243; - npc.velocity.Y = num1244; - } - else - { - num1245 = num1246 / num1245; - npc.velocity.X = num1243 * num1245; - npc.velocity.Y = num1244 * num1245; - } - if ((double)npc.life < (double)npc.lifeMax * 0.83) - { - npc.ai[0] = 1f; - npc.localAI[0] = 0f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 1f) - { - if (Main.netMode != 1) - { - npc.localAI[0] += 1f; - if (npc.localAI[0] >= 120f) - { - npc.localAI[0] = 0f; - npc.TargetClosest(true); - if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) - { - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int num184 = expertMode ? 20 : 23; - int i; - for (i = 0; i < 6; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[ice].timeLeft = 300; - Main.projectile[ice2].timeLeft = 300; - } - } - } - } - float num1164 = isChill ? 4f : 6f; - float num1165 = isChill ? 1f : 1.2f; - if (CalamityWorld.death) - { - num1164 = isChill ? 5f : 7f; - } - if (CalamityWorld.bossRushActive) - { - num1164 = 12f; - } - Vector2 vector133 = new Vector2(npc.Center.X, npc.Center.Y); - float num1166 = player.Center.X - vector133.X; - float num1167 = player.Center.Y - vector133.Y - 400f; - float num1168 = (float)Math.Sqrt((double)(num1166 * num1166 + num1167 * num1167)); - if (num1168 < 20f) - { - num1166 = npc.velocity.X; - num1167 = npc.velocity.Y; - } - else - { - num1168 = num1164 / num1168; - num1166 *= num1168; - num1167 *= num1168; - } - if (npc.velocity.X < num1166) - { - npc.velocity.X = npc.velocity.X + num1165; - if (npc.velocity.X < 0f && num1166 > 0f) - { - npc.velocity.X = npc.velocity.X + num1165 * 2f; - } - } - else if (npc.velocity.X > num1166) - { - npc.velocity.X = npc.velocity.X - num1165; - if (npc.velocity.X > 0f && num1166 < 0f) - { - npc.velocity.X = npc.velocity.X - num1165 * 2f; - } - } - if (npc.velocity.Y < num1167) - { - npc.velocity.Y = npc.velocity.Y + num1165; - if (npc.velocity.Y < 0f && num1167 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num1165 * 2f; - } - } - else if (npc.velocity.Y > num1167) - { - npc.velocity.Y = npc.velocity.Y - num1165; - if (npc.velocity.Y > 0f && num1167 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num1165 * 2f; - } - } - if (npc.position.X + (float)npc.width > player.position.X && npc.position.X < player.position.X + (float)player.width && npc.position.Y + (float)npc.height < player.position.Y && Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height) && Main.netMode != 1) - { - iceShard += 4f; - if (iceShard > 8f) - { - iceShard = 0f; - int num1169 = (int)(npc.position.X + 10f + (float)Main.rand.Next(npc.width - 20)); - int num1170 = (int)(npc.position.Y + (float)npc.height + 4f); - int damage = expertMode ? 23 : 26; - Projectile.NewProjectile((float)num1169, (float)num1170, 0f, 5f, mod.ProjectileType("IceRain"), damage, 0f, Main.myPlayer, 0f, 0f); - return; - } - } - if ((double)npc.life < (double)npc.lifeMax * 0.66) - { - npc.ai[0] = 2f; - npc.localAI[0] = 0f; - iceShard = 0f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 2f) - { - if (Main.netMode != 1) - { - npc.localAI[0] += 1f; - if (npc.localAI[0] >= 120f) - { - npc.localAI[0] = 0f; - npc.TargetClosest(true); - npc.netUpdate = true; - if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) - { - if (Main.rand.Next(2) == 0) - { - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int num184 = expertMode ? 20 : 23; - int i; - for (i = 0; i < 6; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[ice].timeLeft = 300; - Main.projectile[ice2].timeLeft = 300; - } - } - else - { - float num179 = revenge ? 9f : 7f; - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num180 = player.position.X + (float)player.width * 0.5f - value9.X; - float num181 = Math.Abs(num180) * 0.1f; - float num182 = player.position.Y + (float)player.height * 0.5f - value9.Y - num181; - float num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); - npc.netUpdate = true; - num183 = num179 / num183; - num180 *= num183; - num182 *= num183; - int num184 = expertMode ? 23 : 26; - int num185 = mod.ProjectileType("IceRain"); - value9.X += num180; - value9.Y += num182; - for (int num186 = 0; num186 < 15; num186++) - { - num180 = player.position.X + (float)player.width * 0.5f - value9.X; - num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; - num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); - num183 = num179 / num183; - num180 += (float)Main.rand.Next(-100, 101); - num182 += (float)Main.rand.Next(-100, 101); - num180 *= num183; - num182 *= num183; - Projectile.NewProjectile(value9.X, value9.Y, num180, -10f, num185, num184, 0f, Main.myPlayer, 0f, 0f); - } - } - } - } - } - Vector2 vector142 = new Vector2(npc.Center.X, npc.Center.Y); - float num1243 = player.Center.X - vector142.X; - float num1244 = player.Center.Y - vector142.Y; - float num1245 = (float)Math.Sqrt((double)(num1243 * num1243 + num1244 * num1244)); - float num1246 = isChill ? 5f : 7f; - if (CalamityWorld.death) - { - num1246 = isChill ? 6f : 8f; - } - if (CalamityWorld.bossRushActive) - { - num1246 = 14f; - } - if (num1245 < num1246) - { - npc.velocity.X = num1243; - npc.velocity.Y = num1244; - } - else - { - num1245 = num1246 / num1245; - npc.velocity.X = num1243 * num1245; - npc.velocity.Y = num1244 * num1245; - } - if ((double)npc.life < (double)npc.lifeMax * 0.49) - { - npc.ai[0] = 3f; - npc.localAI[0] = 0f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 3f) - { - if (Main.netMode != 1) - { - npc.localAI[0] += 1f; - if (npc.localAI[0] >= 120f) - { - npc.localAI[0] = 0f; - npc.TargetClosest(true); - if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) - { - float num179 = revenge ? 9f : 7f; - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num180 = player.position.X + (float)player.width * 0.5f - value9.X; - float num181 = Math.Abs(num180) * 0.1f; - float num182 = player.position.Y + (float)player.height * 0.5f - value9.Y - num181; - float num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); - npc.netUpdate = true; - num183 = num179 / num183; - num180 *= num183; - num182 *= num183; - int num184 = expertMode ? 23 : 26; - int num185 = mod.ProjectileType("IceRain"); - value9.X += num180; - value9.Y += num182; - for (int num186 = 0; num186 < 15; num186++) - { - num180 = player.position.X + (float)player.width * 0.5f - value9.X; - num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; - num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); - num183 = num179 / num183; - num180 += (float)Main.rand.Next(-100, 101); - num182 += (float)Main.rand.Next(-100, 101); - num180 *= num183; - num182 *= num183; - Projectile.NewProjectile(value9.X, value9.Y, num180, -10f, num185, num184, 0f, Main.myPlayer, 0f, 0f); - } - } - } - } - float num1164 = isChill ? 4.5f : 6.5f; - float num1165 = isChill ? 1.1f : 1.3f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - num1164 = isChill ? 5.5f : 7.5f; - } - Vector2 vector133 = new Vector2(npc.Center.X, npc.Center.Y); - float num1166 = player.Center.X - vector133.X; - float num1167 = player.Center.Y - vector133.Y - 300f; - float num1168 = (float)Math.Sqrt((double)(num1166 * num1166 + num1167 * num1167)); - if (num1168 < 20f) - { - num1166 = npc.velocity.X; - num1167 = npc.velocity.Y; - } - else - { - num1168 = num1164 / num1168; - num1166 *= num1168; - num1167 *= num1168; - } - if (npc.velocity.X < num1166) - { - npc.velocity.X = npc.velocity.X + num1165; - if (npc.velocity.X < 0f && num1166 > 0f) - { - npc.velocity.X = npc.velocity.X + num1165 * 2f; - } - } - else if (npc.velocity.X > num1166) - { - npc.velocity.X = npc.velocity.X - num1165; - if (npc.velocity.X > 0f && num1166 < 0f) - { - npc.velocity.X = npc.velocity.X - num1165 * 2f; - } - } - if (npc.velocity.Y < num1167) - { - npc.velocity.Y = npc.velocity.Y + num1165; - if (npc.velocity.Y < 0f && num1167 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num1165 * 2f; - } - } - else if (npc.velocity.Y > num1167) - { - npc.velocity.Y = npc.velocity.Y - num1165; - if (npc.velocity.Y > 0f && num1167 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num1165 * 2f; - } - } - if (npc.position.X + (float)npc.width > player.position.X && npc.position.X < player.position.X + (float)player.width && npc.position.Y + (float)npc.height < player.position.Y && Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height) && Main.netMode != 1) - { - iceShard += 4f; - if (iceShard > 8f) - { - iceShard = 0f; - int num1169 = (int)(npc.position.X + 10f + (float)Main.rand.Next(npc.width - 20)); - int num1170 = (int)(npc.position.Y + (float)npc.height + 4f); - int damage = expertMode ? 23 : 26; - Projectile.NewProjectile((float)num1169, (float)num1170, 0f, 5f, mod.ProjectileType("IceRain"), damage, 0f, Main.myPlayer, 0f, 0f); - return; - } - } - if ((double)npc.life < (double)npc.lifeMax * 0.32) - { - npc.ai[0] = 4f; - npc.localAI[0] = 0f; - iceShard = 0f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 4f) - { - if (Main.netMode != 1) - { - npc.localAI[0] += 1f; - if (npc.localAI[0] >= 60f && npc.alpha <= 0) - { - npc.localAI[0] = 0f; - npc.TargetClosest(true); - if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) - { - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int num184 = expertMode ? 20 : 23; - int i; - for (i = 0; i < 6; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - int ice = Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 9f), (float)(Math.Cos(offsetAngle) * 9f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - int ice2 = Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 9f), (float)(-Math.Cos(offsetAngle) * 9f), mod.ProjectileType("IceBlast"), num184, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[ice].timeLeft = 300; - Main.projectile[ice2].timeLeft = 300; - } - } - } - } - npc.TargetClosest(true); - Vector2 vector142 = new Vector2(npc.Center.X, npc.Center.Y); - float num1243 = player.Center.X - vector142.X; - float num1244 = player.Center.Y - vector142.Y; - float num1245 = (float)Math.Sqrt((double)(num1243 * num1243 + num1244 * num1244)); - float speed = revenge ? 4.5f : 4f; - if (CalamityWorld.bossRushActive) - { - speed = 9f; - } - if (num1245 < speed) - { - npc.velocity.X = num1243; - npc.velocity.Y = num1244; - } - else - { - num1245 = speed / num1245; - npc.velocity.X = num1243 * num1245; - npc.velocity.Y = num1244 * num1245; - } - if (npc.ai[1] == 0f) - { - npc.chaseable = true; - npc.dontTakeDamage = false; - if (Main.netMode != 1) - { - npc.localAI[2] += 1f; - if (npc.localAI[2] >= (float)(120 + Main.rand.Next(200))) - { - npc.localAI[2] = 0f; - npc.TargetClosest(true); - int num1249 = 0; - int num1250; - int num1251; - while (true) - { - num1249++; - num1250 = (int)player.Center.X / 16; - num1251 = (int)player.Center.Y / 16; - num1250 += Main.rand.Next(-50, 51); - num1251 += Main.rand.Next(-50, 51); - if (!WorldGen.SolidTile(num1250, num1251) && Collision.CanHit(new Vector2((float)(num1250 * 16), (float)(num1251 * 16)), 1, 1, player.position, player.width, player.height)) - { - break; - } - if (num1249 > 100) - { - goto Block; - } - } - npc.ai[1] = 1f; - npc.localAI[3] = (float)num1250; - iceShard = (float)num1251; - npc.netUpdate = true; - Block:; - } - } - } - else if (npc.ai[1] == 1f) - { - npc.damage = 0; - npc.dontTakeDamage = true; - npc.chaseable = false; - npc.alpha += 4; - if (npc.alpha >= 255) - { - npc.alpha = 255; - npc.position.X = npc.localAI[3] * 16f - (float)(npc.width / 2); - npc.position.Y = iceShard * 16f - (float)(npc.height / 2); - npc.ai[1] = 2f; - npc.netUpdate = true; - } - } - else if (npc.ai[1] == 2f) - { - npc.alpha -= 4; - if (npc.alpha <= 0) - { - npc.damage = expertMode ? 96 : 60; - npc.dontTakeDamage = false; - npc.chaseable = true; - npc.alpha = 0; - npc.ai[1] = 0f; - npc.netUpdate = true; - } - } - if ((double)npc.life < (double)npc.lifeMax * 0.15) - { - Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 15); - drawAltTexture = true; - for (int num621 = 0; num621 < 40; num621++) - { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 70; num623++) - { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore1"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore2"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore3"), 1f); - npc.ai[0] = 5f; - npc.ai[1] = 0f; - npc.localAI[0] = 0f; - npc.localAI[2] = 0f; - npc.localAI[3] = 0f; - iceShard = 0f; - npc.netUpdate = true; - string key = "Mods.CalamityMod.CryogenBossText"; - Color messageColor = Color.Cyan; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - return; - } - } - else - { - npc.dontTakeDamage = false; - npc.chaseable = true; - float num1372 = isChill ? 16f : 22f; - if (CalamityWorld.bossRushActive) - { - num1372 = 24f; - } - Vector2 vector167 = new Vector2(npc.Center.X + (float)(npc.direction * 20), npc.Center.Y + 6f); - float num1373 = player.position.X + (float)player.width * 0.5f - vector167.X; - float num1374 = player.Center.Y - vector167.Y; - float num1375 = (float)Math.Sqrt((double)(num1373 * num1373 + num1374 * num1374)); - float num1376 = num1372 / num1375; - num1373 *= num1376; - num1374 *= num1376; - iceShard -= 1f; - if ((double)npc.life < (double)npc.lifeMax * 0.05 || CalamityWorld.death || CalamityWorld.bossRushActive) - { - if (num1375 < 170f || iceShard > 0f) - { - if (num1375 < 170f) - { - iceShard = 17f; - } - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.rotation += (float)npc.direction * 0.5f; - return; - } - } - else if ((double)npc.life < (double)npc.lifeMax * 0.1) - { - if (num1375 < 190f || iceShard > 0f) - { - if (num1375 < 190f) - { - iceShard = 19f; - } - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.rotation += (float)npc.direction * 0.35f; - return; - } - } - else - { - if (num1375 < 200f || iceShard > 0f) - { - if (num1375 < 200f) - { - iceShard = 20f; - } - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.rotation += (float)npc.direction * 0.3f; - return; - } - } - npc.velocity.X = (npc.velocity.X * 50f + num1373) / 51f; - npc.velocity.Y = (npc.velocity.Y * 50f + num1374) / 51f; - if (num1375 < 350f) - { - npc.velocity.X = (npc.velocity.X * 10f + num1373) / 11f; - npc.velocity.Y = (npc.velocity.Y * 10f + num1374) / 11f; - } - if (num1375 < 300f) - { - npc.velocity.X = (npc.velocity.X * 7f + num1373) / 8f; - npc.velocity.Y = (npc.velocity.Y * 7f + num1374) / 8f; - } - npc.rotation = npc.velocity.X * 0.15f; - return; - } if (npc.ai[3] == 0f && npc.life > 0) { npc.ai[3] = (float)npc.lifeMax; } - if (npc.life > 0) + if (npc.life > 0) { if (Main.netMode != 1) { @@ -833,24 +833,24 @@ namespace CalamityMod.NPCs.Cryogen } } - public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) //for alt textures - { - if (drawAltTexture) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - Texture2D texture = mod.GetTexture("NPCs/Cryogen/Cryogen2"); - CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); - return false; - } - return true; - } + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) //for alt textures + { + if (drawAltTexture) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Texture2D texture = mod.GetTexture("NPCs/Cryogen/Cryogen2"); + CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); + return false; + } + return true; + } - public override void ScaleExpertStats(int numPlayers, float bossLifeScale) + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 3; k++) @@ -877,13 +877,13 @@ namespace CalamityMod.NPCs.Cryogen num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 67, 0f, 0f, 100, default(Color), 2f); Main.dust[num624].velocity *= 2f; } - float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore8"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore9"), 1f); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore10"), 1f); - } + float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore8"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore9"), 1f); + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/CryoGore10"), 1f); + } } - + private void RainStart() { if (!Main.raining) @@ -940,45 +940,45 @@ namespace CalamityMod.NPCs.Cryogen } } } - + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.GreaterHealingPotion; } - + public override void NPCLoot() { - int permadongo = NPC.FindFirstNPC(mod.NPCType("DILF")); - if (permadongo == -1 && Main.netMode != 1) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("DILF"), 0, 0f, 0f, 0f, 0f, 255); - } - if (Main.rand.Next(10) == 0) + int permadongo = NPC.FindFirstNPC(mod.NPCType("DILF")); + if (permadongo == -1 && Main.netMode != 1) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("DILF"), 0, 0f, 0f, 0f, 0f, 255); + } + if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CryogenTrophy")); } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } else { - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FrozenKey); - } - if (Main.rand.Next(10) == 0) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("CryoStone"), 1, true); - } - if (Main.rand.Next(7) == 0) + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FrozenKey); + } + if (Main.rand.Next(10) == 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("CryoStone"), 1, true); + } + if (Main.rand.Next(7) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CryogenMask")); } @@ -1010,17 +1010,17 @@ namespace CalamityMod.NPCs.Cryogen { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("SnowstormStaff")); } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SoulofMight, Main.rand.Next(20, 41)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CryoBar"), Main.rand.Next(15, 26)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum"), Main.rand.Next(3, 6)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SoulofMight, Main.rand.Next(20, 41)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CryoBar"), Main.rand.Next(15, 26)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum"), Main.rand.Next(4, 9)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FrostCore); } } - + public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.Frostburn, 120, true); - player.AddBuff(BuffID.Chilled, 90, true); - } + player.AddBuff(BuffID.Frostburn, 120, true); + player.AddBuff(BuffID.Chilled, 90, true); + } } } \ No newline at end of file diff --git a/NPCs/Cryogen/CryogenIce.cs b/NPCs/Cryogen/CryogenIce.cs index 62555c339e..3fde803628 100644 --- a/NPCs/Cryogen/CryogenIce.cs +++ b/NPCs/Cryogen/CryogenIce.cs @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.Cryogen npc.lifeMax = 1400; if (CalamityWorld.bossRushActive) { - npc.lifeMax = 200000; + npc.lifeMax = 100000; } npc.alpha = 255; npc.HitSound = SoundID.NPCHit5; diff --git a/NPCs/Cryogen/IceMass.cs b/NPCs/Cryogen/IceMass.cs index 957714b5bd..d854b49837 100644 --- a/NPCs/Cryogen/IceMass.cs +++ b/NPCs/Cryogen/IceMass.cs @@ -33,6 +33,7 @@ namespace CalamityMod.NPCs.Cryogen } npc.knockBackResist = 0f; animationType = 472; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath15; } diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index 21b4ac7808..442606ba9d 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -29,11 +29,11 @@ namespace CalamityMod.NPCs.DesertScourge { npc.lifeMax = 5100; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 9000000 : 8100000; - } - npc.aiStyle = 6; //new + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 4500000 : 4100000; + } + npc.aiStyle = 6; //new aiType = -1; //new animationType = 10; //new npc.knockBackResist = 0f; @@ -51,6 +51,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/DesertScourge/DesertScourgeBodySmall.cs b/NPCs/DesertScourge/DesertScourgeBodySmall.cs index 0e7505d35f..9b56eda18e 100644 --- a/NPCs/DesertScourge/DesertScourgeBodySmall.cs +++ b/NPCs/DesertScourge/DesertScourgeBodySmall.cs @@ -38,6 +38,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index c25973414e..da29711c33 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.DesertScourge } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 9000000 : 8100000; + npc.lifeMax = CalamityWorld.death ? 4500000 : 4100000; } npc.aiStyle = 6; //new aiType = -1; //new diff --git a/NPCs/DesertScourge/DesertScourgeTail.cs b/NPCs/DesertScourge/DesertScourgeTail.cs index e92bfcb2e6..ae8edd1cef 100644 --- a/NPCs/DesertScourge/DesertScourgeTail.cs +++ b/NPCs/DesertScourge/DesertScourgeTail.cs @@ -29,11 +29,11 @@ namespace CalamityMod.NPCs.DesertScourge { npc.lifeMax = 5100; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 9000000 : 8100000; - } - npc.aiStyle = 6; //new + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 4500000 : 4100000; + } + npc.aiStyle = 6; //new aiType = -1; //new animationType = 10; //new npc.knockBackResist = 0f; @@ -51,6 +51,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/DesertScourge/DesertScourgeTailSmall.cs b/NPCs/DesertScourge/DesertScourgeTailSmall.cs index 59b702bc65..f5465721df 100644 --- a/NPCs/DesertScourge/DesertScourgeTailSmall.cs +++ b/NPCs/DesertScourge/DesertScourgeTailSmall.cs @@ -38,6 +38,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/DesertScourge/DriedSeekerBody.cs b/NPCs/DesertScourge/DriedSeekerBody.cs index 4ac3e45550..06b2c21f49 100644 --- a/NPCs/DesertScourge/DriedSeekerBody.cs +++ b/NPCs/DesertScourge/DriedSeekerBody.cs @@ -36,6 +36,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/DesertScourge/DriedSeekerHead.cs b/NPCs/DesertScourge/DriedSeekerHead.cs index c31a494fdd..b95028d540 100644 --- a/NPCs/DesertScourge/DriedSeekerHead.cs +++ b/NPCs/DesertScourge/DriedSeekerHead.cs @@ -41,6 +41,7 @@ namespace CalamityMod.NPCs.DesertScourge npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/DesertScourge/DriedSeekerTail.cs b/NPCs/DesertScourge/DriedSeekerTail.cs index d16e49d17a..de154a42b2 100644 --- a/NPCs/DesertScourge/DriedSeekerTail.cs +++ b/NPCs/DesertScourge/DriedSeekerTail.cs @@ -35,6 +35,7 @@ namespace CalamityMod.NPCs.DesertScourge animationType = 10; npc.behindTiles = true; npc.noGravity = true; + npc.canGhostHeal = false; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; diff --git a/NPCs/GreatSandShark/GreatSandShark.cs b/NPCs/GreatSandShark/GreatSandShark.cs index 633442eba3..91a6969722 100644 --- a/NPCs/GreatSandShark/GreatSandShark.cs +++ b/NPCs/GreatSandShark/GreatSandShark.cs @@ -39,7 +39,9 @@ namespace CalamityMod.NPCs.GreatSandShark aiType = -1; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 10, 0, 0); - for (int k = 0; k < npc.buffImmune.Length; k++) + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; + for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; @@ -61,7 +63,9 @@ namespace CalamityMod.NPCs.GreatSandShark npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.timeLeft = NPC.activeTime * 30; - } + banner = npc.type; + bannerItem = mod.ItemType("GreatSandSharkBanner"); + } public override void AI() { @@ -569,7 +573,52 @@ namespace CalamityMod.NPCs.GreatSandShark int frame = (int)npc.frameCounter; npc.frame.Y = frame * frameHeight; } - + + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == 1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) diff --git a/NPCs/HiveMind/DankCreeper.cs b/NPCs/HiveMind/DankCreeper.cs index b80a8dd1ef..8ff01c2589 100644 --- a/NPCs/HiveMind/DankCreeper.cs +++ b/NPCs/HiveMind/DankCreeper.cs @@ -34,6 +34,7 @@ namespace CalamityMod.NPCs.HiveMind npc.knockBackResist = 0.3f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; } @@ -102,6 +103,9 @@ namespace CalamityMod.NPCs.HiveMind { Dust.NewDust(npc.position, npc.width, npc.height, 13, hitDirection, -1f, 0, default(Color), 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/DankCreeperGore"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/DankCreeperGore2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/DankCreeperGore3"), 1f); } } diff --git a/NPCs/HiveMind/DarkHeart.cs b/NPCs/HiveMind/DarkHeart.cs index fb162d04cd..9b2d92285c 100644 --- a/NPCs/HiveMind/DarkHeart.cs +++ b/NPCs/HiveMind/DarkHeart.cs @@ -33,6 +33,8 @@ namespace CalamityMod.NPCs.HiveMind aiType = -1; //new npc.knockBackResist = 0.4f; npc.noGravity = true; + npc.canGhostHeal = false; + npc.chaseable = false; npc.HitSound = SoundID.NPCHit13; npc.DeathSound = SoundID.NPCDeath21; } diff --git a/NPCs/HiveMind/HiveBlob.cs b/NPCs/HiveMind/HiveBlob.cs index 18b235746a..57ad82f773 100644 --- a/NPCs/HiveMind/HiveBlob.cs +++ b/NPCs/HiveMind/HiveBlob.cs @@ -17,7 +17,7 @@ namespace CalamityMod.NPCs.HiveMind DisplayName.SetDefault("Hive Blob"); Main.npcFrameCount[npc.type] = 4; } - + public override void SetDefaults() { npc.npcSlots = 0.1f; @@ -26,17 +26,19 @@ namespace CalamityMod.NPCs.HiveMind npc.width = 25; //324 npc.height = 25; //216 npc.lifeMax = 75; - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = 13000; - } - aiType = -1; + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = 13000; + } + aiType = -1; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; + npc.chaseable = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; } - + public override void AI() { bool expertMode = Main.expertMode; @@ -48,14 +50,14 @@ namespace CalamityMod.NPCs.HiveMind return; } int num750 = CalamityGlobalNPC.hiveMind; - if (npc.ai[3] > 0f) + if (npc.ai[3] > 0f) { num750 = (int)npc.ai[3] - 1; } - if (Main.netMode != 1) + if (Main.netMode != 1) { npc.localAI[0] -= 1f; - if (npc.localAI[0] <= 0f) + if (npc.localAI[0] <= 0f) { npc.localAI[0] = (float)Main.rand.Next(120, 480); npc.ai[0] = (float)Main.rand.Next(-100, 101); @@ -66,15 +68,15 @@ namespace CalamityMod.NPCs.HiveMind npc.TargetClosest(true); float num751 = 0.02f; float num752 = 400f; - if ((double)Main.npc[CalamityGlobalNPC.hiveMind].life < (double)Main.npc[CalamityGlobalNPC.hiveMind].lifeMax * 0.5) + if ((double)Main.npc[CalamityGlobalNPC.hiveMind].life < (double)Main.npc[CalamityGlobalNPC.hiveMind].lifeMax * 0.5) { num752 += 60f; } - if ((double)Main.npc[CalamityGlobalNPC.hiveMind].life < (double)Main.npc[CalamityGlobalNPC.hiveMind].lifeMax * 0.15) + if ((double)Main.npc[CalamityGlobalNPC.hiveMind].life < (double)Main.npc[CalamityGlobalNPC.hiveMind].lifeMax * 0.15) { num752 += 120f; } - if (expertMode) + if (expertMode) { float num753 = 1f - (float)npc.life / (float)npc.lifeMax; num752 += num753 * 100f; @@ -84,7 +86,7 @@ namespace CalamityMod.NPCs.HiveMind { num751 += 0.1f; } - if (!Main.npc[num750].active || CalamityGlobalNPC.hiveMind < 0) + if (!Main.npc[num750].active || CalamityGlobalNPC.hiveMind < 0) { npc.active = false; return; @@ -104,69 +106,99 @@ namespace CalamityMod.NPCs.HiveMind num760 = num752 / num760; num758 *= num760; num759 *= num760; - if (npc.position.X < num754 + num758) + if (npc.position.X < num754 + num758) { npc.velocity.X = npc.velocity.X + num751; - if (npc.velocity.X < 0f && num758 > 0f) + if (npc.velocity.X < 0f && num758 > 0f) { npc.velocity.X = npc.velocity.X * 0.9f; } - } - else if (npc.position.X > num754 + num758) + } + else if (npc.position.X > num754 + num758) { npc.velocity.X = npc.velocity.X - num751; - if (npc.velocity.X > 0f && num758 < 0f) + if (npc.velocity.X > 0f && num758 < 0f) { npc.velocity.X = npc.velocity.X * 0.9f; } } - if (npc.position.Y < num755 + num759) + if (npc.position.Y < num755 + num759) { npc.velocity.Y = npc.velocity.Y + num751; - if (npc.velocity.Y < 0f && num759 > 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.9f; - } - } - else if (npc.position.Y > num755 + num759) - { - npc.velocity.Y = npc.velocity.Y - num751; - if (npc.velocity.Y > 0f && num759 < 0f) + if (npc.velocity.Y < 0f && num759 > 0f) { npc.velocity.Y = npc.velocity.Y * 0.9f; } } - if (npc.velocity.X > 8f) + else if (npc.position.Y > num755 + num759) + { + npc.velocity.Y = npc.velocity.Y - num751; + if (npc.velocity.Y > 0f && num759 < 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.9f; + } + } + if (npc.velocity.X > 8f) { npc.velocity.X = 8f; } - if (npc.velocity.X < -8f) + if (npc.velocity.X < -8f) { npc.velocity.X = -8f; } - if (npc.velocity.Y > 8f) + if (npc.velocity.Y > 8f) { npc.velocity.Y = 8f; } - if (npc.velocity.Y < -8f) + if (npc.velocity.Y < -8f) { npc.velocity.Y = -8f; } + if (Main.netMode != 1) + { + npc.localAI[1] += 1f; + if (npc.localAI[1] >= 600f) + { + npc.localAI[1] = 0f; + npc.TargetClosest(true); + if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + float num941 = revenge ? 9f : 8f; //speed + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + num941 = 11f; + } + Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); + float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X; + float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y; + float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); + num944 = num941 / num944; + num942 *= num944; + num943 *= num944; + int num945 = expertMode ? 12 : 15; + int num946 = mod.ProjectileType("VileClot"); + vector104.X += num942 * 5f; + vector104.Y += num943 * 5f; + int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); + npc.netUpdate = true; + } + } + } } - + public override bool CheckActive() { return false; } - + public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.1f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } - + { + npc.frameCounter += 0.1f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) diff --git a/NPCs/HiveMind/HiveBlob2.cs b/NPCs/HiveMind/HiveBlob2.cs index cc284548a9..fc6df46f18 100644 --- a/NPCs/HiveMind/HiveBlob2.cs +++ b/NPCs/HiveMind/HiveBlob2.cs @@ -33,6 +33,8 @@ namespace CalamityMod.NPCs.HiveMind aiType = -1; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; + npc.chaseable = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; } @@ -152,6 +154,36 @@ namespace CalamityMod.NPCs.HiveMind { npc.velocity.Y = -8f; } + if (Main.netMode != 1) + { + npc.localAI[1] += 1f; + if (npc.localAI[1] >= 600f) + { + npc.localAI[1] = 0f; + npc.TargetClosest(true); + if (Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + float num941 = revenge ? 9f : 8f; //speed + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + num941 = 11f; + } + Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); + float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X; + float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y; + float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); + num944 = num941 / num944; + num942 *= num944; + num943 *= num944; + int num945 = expertMode ? 12 : 15; + int num946 = mod.ProjectileType("VileClot"); + vector104.X += num942 * 5f; + vector104.Y += num943 * 5f; + int num947 = Projectile.NewProjectile(vector104.X, vector104.Y, num942, num943, num946, num945, 0f, Main.myPlayer, 0f, 0f); + npc.netUpdate = true; + } + } + } } public override bool CheckActive() diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 57e8c06509..8193118bbe 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -35,10 +35,12 @@ namespace CalamityMod.NPCs.HiveMind } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 1600000 : 1300000; + npc.lifeMax = CalamityWorld.death ? 800000 : 700000; } npc.aiStyle = -1; //new aiType = -1; //new + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; npc.knockBackResist = 0f; npc.boss = true; npc.value = 0f; @@ -288,13 +290,20 @@ namespace CalamityMod.NPCs.HiveMind num285++; } } - else if (Main.netMode != 1) + else { - if (NPC.CountNPCS(mod.NPCType("HiveMindP2")) < 1) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("HiveMindP2"), npc.whoAmI, 0f, 0f, 0f, 0f, npc.target); - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); - } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindGore"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindGore2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindGore3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindGore4"), 1f); + if (Main.netMode != 1) + { + if (NPC.CountNPCS(mod.NPCType("HiveMindP2")) < 1) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("HiveMindP2"), npc.whoAmI, 0f, 0f, 0f, 0f, npc.target); + Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + } + } } } diff --git a/NPCs/HiveMind/HiveMindP2.cs b/NPCs/HiveMind/HiveMindP2.cs index fca654bf4f..6b8d663aad 100644 --- a/NPCs/HiveMind/HiveMindP2.cs +++ b/NPCs/HiveMind/HiveMindP2.cs @@ -30,32 +30,32 @@ namespace CalamityMod.NPCs.HiveMind int minimumDriftTime = 300; int teleportRadius = 300; int decelerationTime = 30; - int reelbackFade = 3; //divide 255 by this for duration of reelback in ticks - float arcTime = 45f; //ticks needed to complete movement for spawn and rain attacks (DEATH ONLY) - float driftSpeed = 2f; //default speed when slowly floating at player - float driftBoost = 1f; //max speed added as health decreases - int lungeDelay = 90; //# of ticks long hive mind spends sliding to a stop before lunging + int reelbackFade = 3; //divide 255 by this for duration of reelback in ticks + float arcTime = 45f; //ticks needed to complete movement for spawn and rain attacks (DEATH ONLY) + float driftSpeed = 2f; //default speed when slowly floating at player + float driftBoost = 1f; //max speed added as health decreases + int lungeDelay = 90; //# of ticks long hive mind spends sliding to a stop before lunging int lungeTime = 30; - int lungeFade = 15; //divide 255 by this for duration of hive mind spin before slowing for lunge - double lungeRots = 0.2; //number of revolutions made while spinning/fading in for lunge + int lungeFade = 15; //divide 255 by this for duration of hive mind spin before slowing for lunge + double lungeRots = 0.2; //number of revolutions made while spinning/fading in for lunge bool dashStarted = false; int phase2timer = 360; int rotationDirection; double rotation; double rotationIncrement; int state = 0; - int previousState = 0; - int nextState = 0; - int reelCount = 0; - int oldDamage = 40; - Vector2 deceleration; + int previousState = 0; + int nextState = 0; + int reelCount = 0; + int oldDamage = 40; + Vector2 deceleration; - public override void SetStaticDefaults() + public override void SetStaticDefaults() { DisplayName.SetDefault("The Hive Mind"); Main.npcFrameCount[npc.type] = 4; } - + public override void SetDefaults() { npc.npcSlots = 5f; @@ -64,16 +64,18 @@ namespace CalamityMod.NPCs.HiveMind npc.height = 120; //216 npc.defense = 5; npc.lifeMax = CalamityWorld.revenge ? 4320 : 3000; - if (CalamityWorld.death) - { - npc.lifeMax = 7200; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 1600000 : 1300000; - } - npc.aiStyle = -1; //new - aiType = -1; //new + if (CalamityWorld.death) + { + npc.lifeMax = 7200; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 1600000 : 1400000; + } + npc.aiStyle = -1; //new + aiType = -1; //new + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 6, 0, 0); npc.boss = true; @@ -81,32 +83,33 @@ namespace CalamityMod.NPCs.HiveMind npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"); - else - music = MusicID.Boss2; - bossBag = mod.ItemType("HiveMindBag"); + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/HiveMind"); + else + music = MusicID.Boss2; + bossBag = mod.ItemType("HiveMindBag"); NPCID.Sets.TrailCacheLength[npc.type] = 8; NPCID.Sets.TrailingMode[npc.type] = 1; if (Main.expertMode) - { - minimumDriftTime = 240; - } - if (CalamityWorld.revenge) { minimumDriftTime = 120; - reelbackFade = 5; - driftBoost = 3f; + reelbackFade = 5; + } + if (CalamityWorld.revenge) + { + lungeRots = 0.3; + minimumDriftTime = 90; + reelbackFade = 6; + lungeTime = 25; + driftSpeed = 3f; + driftBoost = 2f; } if (CalamityWorld.death || CalamityWorld.bossRushActive) { - lungeRots = 0.4; - minimumDriftTime = 60; + lungeRots = 0.4; + minimumDriftTime = 60; reelbackFade = 7; - //decelerationTime = 20; - //lungeFade = 6; - //lungeDelay = 120; lungeTime = 20; driftSpeed = 4f; driftBoost = 1f; @@ -115,40 +118,40 @@ namespace CalamityMod.NPCs.HiveMind rotationIncrement = 0.0246399424 * lungeRots * lungeFade; } - public override void SendExtraAI(BinaryWriter writer) - { - writer.Write(state); - writer.Write(nextState); - writer.Write(phase2timer); - writer.Write(dashStarted); - writer.Write(rotationDirection); - writer.Write(rotation); - writer.Write(previousState); - writer.Write(reelCount); - } + public override void SendExtraAI(BinaryWriter writer) + { + writer.Write(state); + writer.Write(nextState); + writer.Write(phase2timer); + writer.Write(dashStarted); + writer.Write(rotationDirection); + writer.Write(rotation); + writer.Write(previousState); + writer.Write(reelCount); + } - public override void ReceiveExtraAI(BinaryReader reader) - { - state = reader.ReadInt32(); - nextState = reader.ReadInt32(); - phase2timer = reader.ReadInt32(); - dashStarted = reader.ReadBoolean(); - rotationDirection = reader.ReadInt32(); - rotation = reader.ReadDouble(); - previousState = reader.ReadInt32(); - reelCount = reader.ReadInt32(); - } + public override void ReceiveExtraAI(BinaryReader reader) + { + state = reader.ReadInt32(); + nextState = reader.ReadInt32(); + phase2timer = reader.ReadInt32(); + dashStarted = reader.ReadBoolean(); + rotationDirection = reader.ReadInt32(); + rotation = reader.ReadDouble(); + previousState = reader.ReadInt32(); + reelCount = reader.ReadInt32(); + } - public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.15f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { + { SpriteEffects spriteEffects = SpriteEffects.None; Microsoft.Xna.Framework.Color color24 = lightColor; color24 = npc.GetAlpha(color24); @@ -158,25 +161,22 @@ namespace CalamityMod.NPCs.HiveMind int y3 = num156 * (int)npc.frameCounter; Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); Vector2 origin2 = rectangle.Size() / 2f; - int arg_5ADA_0 = npc.type; - int arg_5AE7_0 = npc.type; - int arg_5AF4_0 = npc.type; int num157 = 8; int num158 = 2; int num159 = 1; float num160 = 0f; int num161 = num159; - while (state != 0 && ((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157))) + while (state != 0 && Lighting.NotRetro && ((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157))) { Microsoft.Xna.Framework.Color color26 = color25; - color26 = npc.GetAlpha(color26); + color26 = npc.GetAlpha(color26); { goto IL_6899; } - IL_6881: + IL_6881: num161 += num158; continue; - IL_6899: + IL_6899: float num164 = (float)(num157 - num161); if (num158 < 0) { @@ -194,16 +194,16 @@ namespace CalamityMod.NPCs.HiveMind return false; } - private void SpawnStuff() - { - Player player = Main.player[npc.target]; + private void SpawnStuff() + { + Player player = Main.player[npc.target]; for (int i = 0; i < 5; i++) - { - bool spawnedSomething = false; - int type = NPCID.EaterofSouls; - int maxAmount = 0; - int random = !CalamityWorld.death && Collision.CanHit(npc.Center, 1, 1, player.position, player.width, player.height) ? 5 : 3; - switch (Main.rand.Next(random)) + { + bool spawnedSomething = false; + int type = NPCID.EaterofSouls; + int maxAmount = 0; + int random = !CalamityWorld.death && Collision.CanHit(npc.Center, 1, 1, player.position, player.width, player.height) ? 5 : 3; + switch (Main.rand.Next(random)) { case 0: type = NPCID.DevourerHead; @@ -218,390 +218,390 @@ namespace CalamityMod.NPCs.HiveMind maxAmount = 2; break; case 3: - type = mod.NPCType("HiveBlob2"); - maxAmount = 2; - break; - case 4: + type = mod.NPCType("HiveBlob2"); + maxAmount = 2; + break; + case 4: type = NPCID.EaterofSouls; - maxAmount = 2; - break; - case 5: + maxAmount = 2; + break; + case 5: type = mod.NPCType("DarkHeart"); maxAmount = 2; break; } - int numToSpawn = maxAmount - NPC.CountNPCS(type); - while (numToSpawn > 0) - { - numToSpawn--; - spawnedSomething = true; - int spawn = NPC.NewNPC((int)npc.position.X + Main.rand.Next(npc.width), (int)npc.position.Y + Main.rand.Next(npc.height), type); - Main.npc[spawn].velocity.X = (float)Main.rand.Next(-15, 16) * 0.1f; - Main.npc[spawn].velocity.Y = (float)Main.rand.Next(-30, 1) * 0.1f; - } - if (spawnedSomething) + int numToSpawn = maxAmount - NPC.CountNPCS(type); + while (numToSpawn > 0) + { + numToSpawn--; + spawnedSomething = true; + int spawn = NPC.NewNPC((int)npc.position.X + Main.rand.Next(npc.width), (int)npc.position.Y + Main.rand.Next(npc.height), type); + Main.npc[spawn].velocity.X = (float)Main.rand.Next(-15, 16) * 0.1f; + Main.npc[spawn].velocity.Y = (float)Main.rand.Next(-30, 1) * 0.1f; + } + if (spawnedSomething) return; - } - } + } + } - private void ReelBack() - { - npc.alpha = 0; - phase2timer = 0; - deceleration = npc.velocity / 255f * reelbackFade; - if (CalamityWorld.death) - { - state = 2; - Main.PlaySound(36, (int)npc.Center.X, (int)npc.Center.Y, -1, 1f, 0f); - } - else - { - if (Main.netMode != 1) - SpawnStuff(); - state = nextState; - nextState = 0; - if (state == 2) - { - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); - } - else - { - Main.PlaySound(36, (int)npc.Center.X, (int)npc.Center.Y, -1, 1f, 0f); - } - } - } + private void ReelBack() + { + npc.alpha = 0; + phase2timer = 0; + deceleration = npc.velocity / 255f * reelbackFade; + if (CalamityWorld.death) + { + state = 2; + Main.PlaySound(36, (int)npc.Center.X, (int)npc.Center.Y, -1, 1f, 0f); + } + else + { + if (Main.netMode != 1) + SpawnStuff(); + state = nextState; + nextState = 0; + if (state == 2) + { + Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + } + else + { + Main.PlaySound(36, (int)npc.Center.X, (int)npc.Center.Y, -1, 1f, 0f); + } + } + } public override void AI() { Player player = Main.player[npc.target]; npc.defense = (player.ZoneCorrupt || CalamityWorld.bossRushActive) ? 5 : 9999; CalamityGlobalNPC.hiveMind2 = npc.whoAmI; - if (npc.alpha != 0) - { - if (npc.damage != 0) - { - oldDamage = npc.damage; - npc.damage = 0; - } - } - else - { - npc.damage = oldDamage; - } - switch (state) - { - case 0: //slowdrift - if (npc.alpha > 0) - npc.alpha -= 3; - if (nextState == 0) - { - npc.TargetClosest(true); - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - do nextState = Main.rand.Next(3, 6); - while (nextState == previousState); - previousState = nextState; - } - else - { - if (CalamityWorld.revenge && (Main.rand.Next(4) == 0 || reelCount == 3)) - { - reelCount = 0; - nextState = 2; - } - else - { - reelCount++; - nextState = 1; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - } - if (nextState == 3) - rotation = MathHelper.ToRadians(Main.rand.Next(360)); - npc.netUpdate = true; - } - if (!player.active || player.dead || Vector2.Distance(npc.Center, player.Center) > 5000f) - { - npc.TargetClosest(true); - if (npc.timeLeft > 60) - npc.timeLeft = 60; - if (npc.localAI[3] < 120f) - { - float[] aiArray = npc.localAI; - int number = 3; - float num244 = aiArray[number]; - aiArray[number] = num244 + 1f; - } - if (npc.localAI[3] > 60f) - { - npc.velocity.Y = npc.velocity.Y + (npc.localAI[3] - 60f) * 0.5f; - } - return; - } - if (npc.localAI[3] > 0f) - { - float[] aiArray = npc.localAI; - int number = 3; - float num244 = aiArray[number]; - aiArray[number] = num244 - 1f; - return; - } - npc.velocity = player.Center - npc.Center; - phase2timer--; - if (phase2timer <= -180) //no stalling drift mode forever - { - npc.velocity *= 2f / 255f * reelbackFade; - ReelBack(); - npc.netUpdate = true; - } - else - { - npc.velocity.Normalize(); - if (Main.expertMode || CalamityWorld.bossRushActive) //variable velocity in expert and up - { - npc.velocity *= driftSpeed + driftBoost * (npc.lifeMax - npc.life) / npc.lifeMax; - } - else - { - npc.velocity *= driftSpeed; - } - } - break; - case 1: //reelback and teleport - npc.alpha += reelbackFade; - npc.velocity -= deceleration; - if (npc.alpha >= 255) - { - npc.alpha = 255; - npc.velocity = Vector2.Zero; - state = 0; - if (Main.netMode != 1 && npc.ai[1] != 0f && npc.ai[2] != 0f) - { - npc.position.X = npc.ai[1] * 16 - npc.width / 2; - npc.position.Y = npc.ai[2] * 16 - npc.height / 2; - } - phase2timer = minimumDriftTime + Main.rand.Next(121); - npc.netUpdate = true; - } - else if (npc.ai[1] == 0f && npc.ai[2] == 0f) - { - for (int i = 0; i < 10; i++) - { - int posX = (int)player.Center.X / 16 + Main.rand.Next(15, 46) * (Main.rand.Next(2) == 0 ? -1 : 1); - int posY = (int)player.Center.Y / 16 + Main.rand.Next(15, 46) * (Main.rand.Next(2) == 0 ? -1 : 1); - if (!WorldGen.SolidTile(posX, posY) && Collision.CanHit(new Vector2(posX * 16, posY * 16), 1, 1, player.position, player.width, player.height)) - { - npc.ai[1] = posX; - npc.ai[2] = posY; - npc.netUpdate = true; - break; - } - } - } - break; - case 2: //reelback for lunge + death legacy - npc.alpha += reelbackFade; - npc.velocity -= deceleration; - if (npc.alpha >= 255) - { - npc.alpha = 255; - npc.velocity = Vector2.Zero; - dashStarted = false; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - state = nextState; - nextState = 0; - previousState = state; - } - else - { - state = 3; - } - if (player.velocity.X > 0) - rotationDirection = 1; - else if (player.velocity.X < 0) - rotationDirection = -1; - else - rotationDirection = player.direction; - } - break; - case 3: //rev lunge - npc.netUpdate = true; - if (npc.alpha > 0) - { - npc.alpha -= lungeFade; - if (Main.netMode != 1) - { - npc.Center = player.Center + new Vector2(teleportRadius, 0).RotatedBy(rotation); - } - rotation += rotationIncrement * rotationDirection; - phase2timer = lungeDelay; - } - else - { - phase2timer--; - if (!dashStarted) - { - if (phase2timer <= 0) - { - phase2timer = lungeTime; - npc.velocity = player.Center - npc.Center; - npc.velocity.Normalize(); - npc.velocity *= teleportRadius / lungeTime; - dashStarted = true; - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); - } - else - { - if (Main.netMode != 1) - { - npc.Center = player.Center + new Vector2(teleportRadius, 0).RotatedBy(rotation); - } - rotation += rotationIncrement * rotationDirection * phase2timer / lungeDelay; - } - } - else - { - if (phase2timer <= 0) - { - state = 6; - phase2timer = 0; - deceleration = npc.velocity / decelerationTime; - } - } - } - break; - case 4: //enemy spawn arc (death mode) - if (npc.alpha > 0) - { - npc.alpha -= 5; - if (Main.netMode != 1) - { - npc.Center = player.Center; - npc.position.Y += teleportRadius; - } - npc.netUpdate = true; - } - else - { - if (!dashStarted) - { - dashStarted = true; - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); - npc.velocity.X = 3.14159265f * teleportRadius / arcTime; - npc.velocity *= rotationDirection; - npc.netUpdate = true; - } - else - { - npc.velocity = npc.velocity.RotatedBy(3.14159265 / arcTime * -rotationDirection); - phase2timer++; - if (phase2timer == (int)arcTime / 6) - { - phase2timer = 0; - npc.ai[0]++; - if (Main.netMode != 1 && Collision.CanHit(npc.Center, 1, 1, player.position, player.width, player.height)) //draw line of sight - { - if (npc.ai[0] == 2 || npc.ai[0] == 4) - { - if ((Main.expertMode || CalamityWorld.bossRushActive) && NPC.CountNPCS(mod.NPCType("DarkHeart")) < 2) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("DarkHeart")); - } - } - else if (NPC.CountNPCS(NPCID.EaterofSouls) < 2) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, NPCID.EaterofSouls); - } - } - if (npc.ai[0] == 6) - { - npc.velocity = npc.velocity.RotatedBy(3.14159265 / arcTime * -rotationDirection); - SpawnStuff(); - state = 6; - npc.ai[0] = 0; - deceleration = npc.velocity / decelerationTime; - } - } - } - } - break; - case 5: //raindash (death mode) - if (npc.alpha > 0) - { - npc.alpha -= 5; - if (Main.netMode != 1) - { - npc.Center = player.Center; - npc.position.Y -= teleportRadius; - npc.position.X += teleportRadius * rotationDirection; - } - npc.netUpdate = true; - } - else - { - if (!dashStarted) - { - dashStarted = true; - Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); - npc.velocity.X = teleportRadius / arcTime * 3; - npc.velocity *= -rotationDirection; - npc.netUpdate = true; - } - else - { - phase2timer++; - if (phase2timer == (int)arcTime / 20) - { - phase2timer = 0; - npc.ai[0]++; - if (Main.netMode != 1) - { - int damage = Main.expertMode ? 14 : 18; - Projectile.NewProjectile(npc.position.X + Main.rand.Next(npc.width), npc.position.Y + Main.rand.Next(npc.height), 0, 0, mod.ProjectileType("ShadeNimbusHostile"), damage, 0, Main.myPlayer, 11, 0); - } - if (npc.ai[0] == 10) - { - state = 6; - npc.ai[0] = 0; - deceleration = npc.velocity / decelerationTime; - } - } - } - } - break; - case 6: //deceleration - npc.velocity -= deceleration; - phase2timer++; - if (phase2timer == decelerationTime) - { - phase2timer = minimumDriftTime + Main.rand.Next(121); - state = 0; - npc.netUpdate = true; - } - break; - } - } + if (npc.alpha != 0) + { + if (npc.damage != 0) + { + oldDamage = npc.damage; + npc.damage = 0; + } + } + else + { + npc.damage = oldDamage; + } + switch (state) + { + case 0: //slowdrift + if (npc.alpha > 0) + npc.alpha -= 3; + if (nextState == 0) + { + npc.TargetClosest(true); + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + do nextState = Main.rand.Next(3, 6); + while (nextState == previousState); + previousState = nextState; + } + else + { + if (CalamityWorld.revenge && (Main.rand.Next(4) == 0 || reelCount == 3)) + { + reelCount = 0; + nextState = 2; + } + else + { + reelCount++; + nextState = 1; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + } + if (nextState == 3) + rotation = MathHelper.ToRadians(Main.rand.Next(360)); + npc.netUpdate = true; + } + if (!player.active || player.dead || Vector2.Distance(npc.Center, player.Center) > 5000f) + { + npc.TargetClosest(true); + if (npc.timeLeft > 60) + npc.timeLeft = 60; + if (npc.localAI[3] < 120f) + { + float[] aiArray = npc.localAI; + int number = 3; + float num244 = aiArray[number]; + aiArray[number] = num244 + 1f; + } + if (npc.localAI[3] > 60f) + { + npc.velocity.Y = npc.velocity.Y + (npc.localAI[3] - 60f) * 0.5f; + } + return; + } + if (npc.localAI[3] > 0f) + { + float[] aiArray = npc.localAI; + int number = 3; + float num244 = aiArray[number]; + aiArray[number] = num244 - 1f; + return; + } + npc.velocity = player.Center - npc.Center; + phase2timer--; + if (phase2timer <= -180) //no stalling drift mode forever + { + npc.velocity *= 2f / 255f * reelbackFade; + ReelBack(); + npc.netUpdate = true; + } + else + { + npc.velocity.Normalize(); + if (Main.expertMode || CalamityWorld.bossRushActive) //variable velocity in expert and up + { + npc.velocity *= driftSpeed + driftBoost * (npc.lifeMax - npc.life) / npc.lifeMax; + } + else + { + npc.velocity *= driftSpeed; + } + } + break; + case 1: //reelback and teleport + npc.alpha += reelbackFade; + npc.velocity -= deceleration; + if (npc.alpha >= 255) + { + npc.alpha = 255; + npc.velocity = Vector2.Zero; + state = 0; + if (Main.netMode != 1 && npc.ai[1] != 0f && npc.ai[2] != 0f) + { + npc.position.X = npc.ai[1] * 16 - npc.width / 2; + npc.position.Y = npc.ai[2] * 16 - npc.height / 2; + } + phase2timer = minimumDriftTime + Main.rand.Next(121); + npc.netUpdate = true; + } + else if (npc.ai[1] == 0f && npc.ai[2] == 0f) + { + for (int i = 0; i < 10; i++) + { + int posX = (int)player.Center.X / 16 + Main.rand.Next(15, 46) * (Main.rand.Next(2) == 0 ? -1 : 1); + int posY = (int)player.Center.Y / 16 + Main.rand.Next(15, 46) * (Main.rand.Next(2) == 0 ? -1 : 1); + if (!WorldGen.SolidTile(posX, posY) && Collision.CanHit(new Vector2(posX * 16, posY * 16), 1, 1, player.position, player.width, player.height)) + { + npc.ai[1] = posX; + npc.ai[2] = posY; + npc.netUpdate = true; + break; + } + } + } + break; + case 2: //reelback for lunge + death legacy + npc.alpha += reelbackFade; + npc.velocity -= deceleration; + if (npc.alpha >= 255) + { + npc.alpha = 255; + npc.velocity = Vector2.Zero; + dashStarted = false; + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + state = nextState; + nextState = 0; + previousState = state; + } + else + { + state = 3; + } + if (player.velocity.X > 0) + rotationDirection = 1; + else if (player.velocity.X < 0) + rotationDirection = -1; + else + rotationDirection = player.direction; + } + break; + case 3: //rev lunge + npc.netUpdate = true; + if (npc.alpha > 0) + { + npc.alpha -= lungeFade; + if (Main.netMode != 1) + { + npc.Center = player.Center + new Vector2(teleportRadius, 0).RotatedBy(rotation); + } + rotation += rotationIncrement * rotationDirection; + phase2timer = lungeDelay; + } + else + { + phase2timer--; + if (!dashStarted) + { + if (phase2timer <= 0) + { + phase2timer = lungeTime; + npc.velocity = player.Center - npc.Center; + npc.velocity.Normalize(); + npc.velocity *= teleportRadius / lungeTime; + dashStarted = true; + Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + } + else + { + if (Main.netMode != 1) + { + npc.Center = player.Center + new Vector2(teleportRadius, 0).RotatedBy(rotation); + } + rotation += rotationIncrement * rotationDirection * phase2timer / lungeDelay; + } + } + else + { + if (phase2timer <= 0) + { + state = 6; + phase2timer = 0; + deceleration = npc.velocity / decelerationTime; + } + } + } + break; + case 4: //enemy spawn arc (death mode) + if (npc.alpha > 0) + { + npc.alpha -= 5; + if (Main.netMode != 1) + { + npc.Center = player.Center; + npc.position.Y += teleportRadius; + } + npc.netUpdate = true; + } + else + { + if (!dashStarted) + { + dashStarted = true; + Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + npc.velocity.X = 3.14159265f * teleportRadius / arcTime; + npc.velocity *= rotationDirection; + npc.netUpdate = true; + } + else + { + npc.velocity = npc.velocity.RotatedBy(3.14159265 / arcTime * -rotationDirection); + phase2timer++; + if (phase2timer == (int)arcTime / 6) + { + phase2timer = 0; + npc.ai[0]++; + if (Main.netMode != 1 && Collision.CanHit(npc.Center, 1, 1, player.position, player.width, player.height)) //draw line of sight + { + if (npc.ai[0] == 2 || npc.ai[0] == 4) + { + if ((Main.expertMode || CalamityWorld.bossRushActive) && NPC.CountNPCS(mod.NPCType("DarkHeart")) < 2) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("DarkHeart")); + } + } + else if (NPC.CountNPCS(NPCID.EaterofSouls) < 2) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, NPCID.EaterofSouls); + } + } + if (npc.ai[0] == 6) + { + npc.velocity = npc.velocity.RotatedBy(3.14159265 / arcTime * -rotationDirection); + SpawnStuff(); + state = 6; + npc.ai[0] = 0; + deceleration = npc.velocity / decelerationTime; + } + } + } + } + break; + case 5: //raindash (death mode) + if (npc.alpha > 0) + { + npc.alpha -= 5; + if (Main.netMode != 1) + { + npc.Center = player.Center; + npc.position.Y -= teleportRadius; + npc.position.X += teleportRadius * rotationDirection; + } + npc.netUpdate = true; + } + else + { + if (!dashStarted) + { + dashStarted = true; + Main.PlaySound(15, (int)npc.Center.X, (int)npc.Center.Y, 0); + npc.velocity.X = teleportRadius / arcTime * 3; + npc.velocity *= -rotationDirection; + npc.netUpdate = true; + } + else + { + phase2timer++; + if (phase2timer == (int)arcTime / 20) + { + phase2timer = 0; + npc.ai[0]++; + if (Main.netMode != 1) + { + int damage = Main.expertMode ? 14 : 18; + Projectile.NewProjectile(npc.position.X + Main.rand.Next(npc.width), npc.position.Y + Main.rand.Next(npc.height), 0, 0, mod.ProjectileType("ShadeNimbusHostile"), damage, 0, Main.myPlayer, 11, 0); + } + if (npc.ai[0] == 10) + { + state = 6; + npc.ai[0] = 0; + deceleration = npc.velocity / decelerationTime; + } + } + } + } + break; + case 6: //deceleration + npc.velocity -= deceleration; + phase2timer++; + if (phase2timer == decelerationTime) + { + phase2timer = minimumDriftTime + Main.rand.Next(121); + state = 0; + npc.netUpdate = true; + } + break; + } + } - public override bool? CanHitNPC (NPC target) + public override bool? CanHitNPC(NPC target) { if (npc.alpha > 0) return false; return null; } - public override bool CanHitPlayer (Player target, ref int cooldownSlot) + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { return npc.alpha <= 0; //no damage when not fully visible } - public override bool StrikeNPC (ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) + public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) { if (phase2timer < 0 && damage > 1) { - npc.velocity *= -4f; - ReelBack(); + npc.velocity *= -4f; + ReelBack(); npc.netUpdate = true; } return true; @@ -619,13 +619,19 @@ namespace CalamityMod.NPCs.HiveMind { Dust.NewDust(npc.position, npc.width, npc.height, 14, hitDirection, -1f, 0, default(Color), 1f); } - if (Main.netMode != 1 && Main.rand.Next(15) == 0 && NPC.CountNPCS(mod.NPCType("HiveBlob2")) < 2) - { - Vector2 spawnAt = npc.Center + new Vector2(0f, (float)npc.height / 2f); - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("HiveBlob2")); - } - if (npc.life <= 0) + if (Main.netMode != 1 && Main.rand.Next(15) == 0 && NPC.CountNPCS(mod.NPCType("HiveBlob2")) < 2) { + Vector2 spawnAt = npc.Center + new Vector2(0f, (float)npc.height / 2f); + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y, mod.NPCType("HiveBlob2")); + } + if (npc.life <= 0) + { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindP2Gore"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindP2Gore2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindP2Gore3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindP2Gore4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindP2Gore5"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/HiveMindGores/HiveMindP2Gore6"), 1f); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 200; @@ -653,25 +659,25 @@ namespace CalamityMod.NPCs.HiveMind } } - public override void BossLoot(ref string name, ref int potionType) - { - potionType = ItemID.HealingPotion; - } + public override void BossLoot(ref string name, ref int potionType) + { + potionType = ItemID.HealingPotion; + } - public override void NPCLoot() + public override void NPCLoot() { if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("HiveMindTrophy")); } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } @@ -712,13 +718,13 @@ namespace CalamityMod.NPCs.HiveMind Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TrueShadowScale"), Main.rand.Next(25, 31)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.DemoniteBar, Main.rand.Next(7, 11)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.RottenChunk, Main.rand.Next(9, 16)); - if (Main.hardMode) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CursedFlame, Main.rand.Next(10, 21)); - } - } + if (Main.hardMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CursedFlame, Main.rand.Next(10, 21)); + } + } } - + public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) diff --git a/NPCs/Leviathan/AquaticAberration.cs b/NPCs/Leviathan/AquaticAberration.cs index da3dc57b4a..ca0703405c 100644 --- a/NPCs/Leviathan/AquaticAberration.cs +++ b/NPCs/Leviathan/AquaticAberration.cs @@ -33,9 +33,12 @@ namespace CalamityMod.NPCs.Leviathan npc.knockBackResist = 0f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; aiType = -1; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("AquaticAberrationBanner"); } public override void FindFrame(int frameHeight) diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 6bb3c59ee1..b732df30e8 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -12,13 +12,13 @@ namespace CalamityMod.NPCs.Leviathan { [AutoloadBossHead] public class Leviathan : ModNPC - { + { public override void SetStaticDefaults() { DisplayName.SetDefault("The Leviathan"); Main.npcFrameCount[npc.type] = 3; } - + public override void SetDefaults() { npc.npcSlots = 20f; @@ -26,50 +26,50 @@ namespace CalamityMod.NPCs.Leviathan npc.width = 850; npc.height = 450; npc.defense = 40; - npc.lifeMax = CalamityWorld.revenge ? 78900 : 60000; - if (CalamityWorld.death) - { - npc.lifeMax = 165000; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 8200000 : 7300000; - } - npc.knockBackResist = 0f; + npc.lifeMax = CalamityWorld.revenge ? 90700 : 69000; + if (CalamityWorld.death) + { + npc.lifeMax = 189750; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 8000000 : 7000000; + } + npc.knockBackResist = 0f; npc.aiStyle = -1; aiType = -1; - npc.value = Item.buyPrice(0, 15, 0, 0); - for (int k = 0; k < npc.buffImmune.Length; k++) + npc.value = Item.buyPrice(0, 15, 0, 0); + for (int k = 0; k < npc.buffImmune.Length; k++) { - npc.buffImmune[k] = true; - npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Plague")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } + npc.buffImmune[k] = true; + npc.buffImmune[BuffID.Ichor] = false; + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[BuffID.Daybreak] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("HolyLight")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Plague")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } npc.HitSound = SoundID.NPCHit56; npc.DeathSound = SoundID.NPCDeath60; npc.noTileCollide = true; npc.noGravity = true; npc.boss = true; npc.netAlways = true; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndSiren"); - else - music = MusicID.Boss3; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndSiren"); + else + music = MusicID.Boss3; bossBag = mod.ItemType("LeviathanBag"); } - + public override void AI() { bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); @@ -99,18 +99,18 @@ namespace CalamityMod.NPCs.Leviathan } if (Main.rand.Next(600) == 0) { - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, - ((sirenAlive && !CalamityWorld.death && !CalamityWorld.bossRushActive) ? soundChoice : soundChoiceRage)); + Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, + ((sirenAlive && !CalamityWorld.death && !CalamityWorld.bossRushActive) ? soundChoice : soundChoiceRage)); } bool flag6 = player.position.Y < 800f || (double)player.position.Y > Main.worldSurface * 16.0 || (player.position.X > 6400f && player.position.X < (float)(Main.maxTilesX * 16 - 6400)); if (flag6 || !sirenAlive || CalamityWorld.death) { npc.defense = npc.defDefense * 2; } - else - { - npc.defense = 40; - } + else + { + npc.defense = 40; + } npc.dontTakeDamage = flag6 && !CalamityWorld.bossRushActive; int num1038 = 0; for (int num1039 = 0; num1039 < 255; num1039++) @@ -124,11 +124,11 @@ namespace CalamityMod.NPCs.Leviathan { npc.TargetClosest(true); } - if (npc.timeLeft < 3000) - { - npc.timeLeft = 3000; - } - if (!player.active || player.dead || Vector2.Distance(player.Center, vector) > 5600f) + if (npc.timeLeft < 3000) + { + npc.timeLeft = 3000; + } + if (!player.active || player.dead || Vector2.Distance(player.Center, vector) > 5600f) { npc.TargetClosest(false); player = Main.player[npc.target]; @@ -137,17 +137,17 @@ namespace CalamityMod.NPCs.Leviathan npc.velocity = new Vector2(0f, 10f); if ((double)npc.position.Y > Main.rockLayer * 16.0) { - for (int x = 0; x < 200; x++) - { - if (Main.npc[x].type == mod.NPCType("Siren")) - { - Main.npc[x].active = false; - Main.npc[x].netUpdate = true; - } - } - npc.active = false; - npc.netUpdate = true; - } + for (int x = 0; x < 200; x++) + { + if (Main.npc[x].type == mod.NPCType("Siren")) + { + Main.npc[x].active = false; + Main.npc[x].netUpdate = true; + } + } + npc.active = false; + npc.netUpdate = true; + } return; } } @@ -158,13 +158,13 @@ namespace CalamityMod.NPCs.Leviathan npc.TargetClosest(true); float num412 = sirenAlive ? 3.5f : 7f; float num413 = sirenAlive ? 0.1f : 0.2f; - if (CalamityWorld.bossRushActive) - { - num412 = 12f; - num413 = 0.4f; - } + if (CalamityWorld.bossRushActive) + { + num412 = 12f; + num413 = 0.4f; + } int num414 = 1; - if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)player.width) + if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)player.width) { num414 = -1; } @@ -175,78 +175,78 @@ namespace CalamityMod.NPCs.Leviathan num417 = num412 / num417; num415 *= num417; num416 *= num417; - if (npc.velocity.X < num415) + if (npc.velocity.X < num415) { npc.velocity.X = npc.velocity.X + num413; - if (npc.velocity.X < 0f && num415 > 0f) + if (npc.velocity.X < 0f && num415 > 0f) { npc.velocity.X = npc.velocity.X + num413; } - } - else if (npc.velocity.X > num415) + } + else if (npc.velocity.X > num415) { npc.velocity.X = npc.velocity.X - num413; - if (npc.velocity.X > 0f && num415 < 0f) + if (npc.velocity.X > 0f && num415 < 0f) { npc.velocity.X = npc.velocity.X - num413; } } - if (npc.velocity.Y < num416) + if (npc.velocity.Y < num416) { npc.velocity.Y = npc.velocity.Y + num413; - if (npc.velocity.Y < 0f && num416 > 0f) + if (npc.velocity.Y < 0f && num416 > 0f) { npc.velocity.Y = npc.velocity.Y + num413; } - } - else if (npc.velocity.Y > num416) + } + else if (npc.velocity.Y > num416) { npc.velocity.Y = npc.velocity.Y - num413; - if (npc.velocity.Y > 0f && num416 < 0f) + if (npc.velocity.Y > 0f && num416 < 0f) { npc.velocity.Y = npc.velocity.Y - num413; } } npc.ai[1] += 1f; - if (npc.ai[1] >= ((CalamityWorld.death || CalamityWorld.bossRushActive) ? 120f : 240f)) + if (npc.ai[1] >= ((CalamityWorld.death || CalamityWorld.bossRushActive) ? 120f : 240f)) { npc.ai[0] = 1f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.target = 255; npc.netUpdate = true; - } - else + } + else { - if (!player.dead) + if (!player.dead) { npc.ai[2] += 1f; - if (!sirenAlive) + if (!sirenAlive) { npc.ai[2] += 2f; } else { - if (sirenAlive) - { - if (Siren.phase2) - { - npc.ai[2] += 0.5f; - } - if (Siren.phase3) - { - npc.ai[2] += 0.5f; - } - } + if (sirenAlive) + { + if (Siren.phase2) + { + npc.ai[2] += 0.5f; + } + if (Siren.phase3) + { + npc.ai[2] += 0.5f; + } + } } } - if (npc.ai[2] >= 90f) + if (npc.ai[2] >= 90f) { npc.ai[2] = 0f; vector40 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num415 = player.position.X + (float)(player.width / 2) - vector40.X; num416 = player.position.Y + (float)(player.height / 2) - vector40.Y; - if (Main.netMode != 1) + if (Main.netMode != 1) { float num418 = sirenAlive ? 13.5f : 16f; int num419 = 48; @@ -256,10 +256,10 @@ namespace CalamityMod.NPCs.Leviathan num418 = sirenAlive ? 14f : 17f; num419 = 33; } - if (npc.GetGlobalNPC(mod).enraged) - { - num418 = 22f; - } + if (npc.GetGlobalNPC(mod).enraged) + { + num418 = 22f; + } num417 = (float)Math.Sqrt((double)(num415 * num415 + num416 * num416)); num417 = num418 / num417; num415 *= num417; @@ -317,9 +317,9 @@ namespace CalamityMod.NPCs.Leviathan if (Main.netMode != 1 && NPC.CountNPCS(mod.NPCType("Parasea")) < spawnLimit2 && NPC.CountNPCS(mod.NPCType("AquaticAberration")) < spawnLimit) { int num1061; - int value = CalamityWorld.death ? 2 : 3; - if (CalamityWorld.bossRushActive) - value++; + int value = CalamityWorld.death ? 2 : 3; + if (CalamityWorld.bossRushActive) + value++; if (Main.rand.Next(value) == 0) { num1061 = mod.NPCType("AquaticAberration"); @@ -338,12 +338,12 @@ namespace CalamityMod.NPCs.Leviathan { float num1063 = sirenAlive ? 7f : 8f; //changed from 14 not a prob float num1064 = sirenAlive ? 0.05f : 0.065f; //changed from 0.1 not a prob - if (CalamityWorld.bossRushActive) - { - num1063 = 10f; - num1064 = 0.075f; - } - vector120 = vector119; + if (CalamityWorld.bossRushActive) + { + num1063 = 10f; + num1064 = 0.075f; + } + vector120 = vector119; num1058 = player.position.X + (float)(player.width / 2) - vector120.X; num1059 = player.position.Y + (float)(player.height / 2) - vector120.Y; num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); @@ -395,170 +395,170 @@ namespace CalamityMod.NPCs.Leviathan return; } } - else if (npc.ai[0] == 2f) - { - Vector2 distFromPlayer = Main.player[npc.target].Center - npc.Center; - if (npc.ai[1] > 1f || distFromPlayer.Length() > 2400f) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return; - } - if (npc.ai[1] % 2f == 0f) - { - int num24 = 7; - for (int j = 0; j < num24; j++) - { - Vector2 arg_E1C_0 = (Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f).RotatedBy((double)(j - (num24 / 2 - 1)) * 3.1415926535897931 / (double)((float)num24), default(Vector2)) + vector; - Vector2 vector4 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); - int num25 = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, 172, vector4.X * 2f, vector4.Y * 2f, 100, default(Color), 1.4f); - Main.dust[num25].noGravity = true; - Main.dust[num25].noLight = true; - Main.dust[num25].velocity /= 4f; - Main.dust[num25].velocity -= npc.velocity; - } - npc.TargetClosest(true); - if (Math.Abs(npc.position.Y + (float)(npc.height / 2) - (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2))) < 20f) - { - npc.localAI[1] = 1f; - npc.ai[1] += 1f; - npc.ai[2] = 0f; - float num1044 = revenge ? 20f : 18f; //16 - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num1044 += 2f; //2 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num1044 += 2f; //2 not a prob - } - if (npc.GetGlobalNPC(mod).enraged) - { - num1044 += 4f; - } - Vector2 vector117 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num1045 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector117.X; - float num1046 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector117.Y; - float num1047 = (float)Math.Sqrt((double)(num1045 * num1045 + num1046 * num1046)); - num1047 = num1044 / num1047; - npc.velocity.X = num1045 * num1047; - npc.velocity.Y = num1046 * num1047; - npc.spriteDirection = npc.direction; - Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, soundChoiceRage); - return; - } - npc.localAI[1] = 0f; - float num1048 = revenge ? 7.5f : 6.5f; //12 not a prob - float num1049 = revenge ? 0.12f : 0.11f; //0.15 not a prob - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num1048 += 2f; //2 not a prob - num1049 += 0.05f; //0.05 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num1048 += 2f; //2 not a prob - num1049 += 0.1f; //0.1 not a prob - } - if (npc.GetGlobalNPC(mod).enraged) - { - num1048 += 3f; - num1049 += 0.2f; - } - if (npc.position.Y + (float)(npc.height / 2) < (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2))) - { - npc.velocity.Y = npc.velocity.Y + num1049; - } - else - { - npc.velocity.Y = npc.velocity.Y - num1049; - } - if (npc.velocity.Y < -12f) - { - npc.velocity.Y = -num1048; - } - if (npc.velocity.Y > 12f) - { - npc.velocity.Y = num1048; - } - if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > 600f) - { - npc.velocity.X = npc.velocity.X + 0.15f * (float)npc.direction; - } - else if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) < 300f) - { - npc.velocity.X = npc.velocity.X - 0.15f * (float)npc.direction; - } - else - { - npc.velocity.X = npc.velocity.X * 0.8f; - } - if (npc.velocity.X < -16f) - { - npc.velocity.X = -16f; - } - if (npc.velocity.X > 16f) - { - npc.velocity.X = 16f; - } - npc.spriteDirection = npc.direction; - return; - } - else - { - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - int num1050 = sirenAlive ? 1100 : 900; //600 not a prob - int num1051 = 1; - if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) - { - num1051 = -1; - } - if (npc.direction == num1051 && Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > (float)num1050) - { - npc.ai[2] = 1f; - } - if (npc.ai[2] != 1f) - { - npc.localAI[1] = 1f; - return; - } - npc.TargetClosest(true); - npc.spriteDirection = npc.direction; - npc.localAI[1] = 0f; - npc.velocity *= 0.9f; - float num1052 = revenge ? 0.11f : 0.1f; //0.1 - if (npc.life < npc.lifeMax / 3 || CalamityWorld.bossRushActive) - { - npc.velocity *= 0.9f; - num1052 += 0.05f; //0.05 - } - if (npc.life < npc.lifeMax / 5 || CalamityWorld.bossRushActive) - { - npc.velocity *= 0.9f; - num1052 += 0.05f; //0.05 - } - if (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y) < num1052) - { - npc.ai[2] = 0f; - npc.ai[1] += 1f; - return; - } - } - } - } + else if (npc.ai[0] == 2f) + { + Vector2 distFromPlayer = Main.player[npc.target].Center - npc.Center; + if (npc.ai[1] > 1f || distFromPlayer.Length() > 2400f) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return; + } + if (npc.ai[1] % 2f == 0f) + { + int num24 = 7; + for (int j = 0; j < num24; j++) + { + Vector2 arg_E1C_0 = (Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f).RotatedBy((double)(j - (num24 / 2 - 1)) * 3.1415926535897931 / (double)((float)num24), default(Vector2)) + vector; + Vector2 vector4 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); + int num25 = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, 172, vector4.X * 2f, vector4.Y * 2f, 100, default(Color), 1.4f); + Main.dust[num25].noGravity = true; + Main.dust[num25].noLight = true; + Main.dust[num25].velocity /= 4f; + Main.dust[num25].velocity -= npc.velocity; + } + npc.TargetClosest(true); + if (Math.Abs(npc.position.Y + (float)(npc.height / 2) - (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2))) < 20f) + { + npc.localAI[1] = 1f; + npc.ai[1] += 1f; + npc.ai[2] = 0f; + float num1044 = revenge ? 20f : 18f; //16 + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num1044 += 2f; //2 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num1044 += 2f; //2 not a prob + } + if (npc.GetGlobalNPC(mod).enraged) + { + num1044 += 4f; + } + Vector2 vector117 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num1045 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector117.X; + float num1046 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector117.Y; + float num1047 = (float)Math.Sqrt((double)(num1045 * num1045 + num1046 * num1046)); + num1047 = num1044 / num1047; + npc.velocity.X = num1045 * num1047; + npc.velocity.Y = num1046 * num1047; + npc.spriteDirection = npc.direction; + Main.PlaySound(29, (int)npc.position.X, (int)npc.position.Y, soundChoiceRage); + return; + } + npc.localAI[1] = 0f; + float num1048 = revenge ? 7.5f : 6.5f; //12 not a prob + float num1049 = revenge ? 0.12f : 0.11f; //0.15 not a prob + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num1048 += 2f; //2 not a prob + num1049 += 0.05f; //0.05 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num1048 += 2f; //2 not a prob + num1049 += 0.1f; //0.1 not a prob + } + if (npc.GetGlobalNPC(mod).enraged) + { + num1048 += 3f; + num1049 += 0.2f; + } + if (npc.position.Y + (float)(npc.height / 2) < (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2))) + { + npc.velocity.Y = npc.velocity.Y + num1049; + } + else + { + npc.velocity.Y = npc.velocity.Y - num1049; + } + if (npc.velocity.Y < -12f) + { + npc.velocity.Y = -num1048; + } + if (npc.velocity.Y > 12f) + { + npc.velocity.Y = num1048; + } + if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > 600f) + { + npc.velocity.X = npc.velocity.X + 0.15f * (float)npc.direction; + } + else if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) < 300f) + { + npc.velocity.X = npc.velocity.X - 0.15f * (float)npc.direction; + } + else + { + npc.velocity.X = npc.velocity.X * 0.8f; + } + if (npc.velocity.X < -16f) + { + npc.velocity.X = -16f; + } + if (npc.velocity.X > 16f) + { + npc.velocity.X = 16f; + } + npc.spriteDirection = npc.direction; + return; + } + else + { + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + int num1050 = sirenAlive ? 1100 : 900; //600 not a prob + int num1051 = 1; + if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) + { + num1051 = -1; + } + if (npc.direction == num1051 && Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > (float)num1050) + { + npc.ai[2] = 1f; + } + if (npc.ai[2] != 1f) + { + npc.localAI[1] = 1f; + return; + } + npc.TargetClosest(true); + npc.spriteDirection = npc.direction; + npc.localAI[1] = 0f; + npc.velocity *= 0.9f; + float num1052 = revenge ? 0.11f : 0.1f; //0.1 + if (npc.life < npc.lifeMax / 3 || CalamityWorld.bossRushActive) + { + npc.velocity *= 0.9f; + num1052 += 0.05f; //0.05 + } + if (npc.life < npc.lifeMax / 5 || CalamityWorld.bossRushActive) + { + npc.velocity *= 0.9f; + num1052 += 0.05f; //0.05 + } + if (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y) < num1052) + { + npc.ai[2] = 0f; + npc.ai[1] += 1f; + return; + } + } + } + } } - public override void HitEffect(int hitDirection, double damage) + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) { @@ -594,64 +594,64 @@ namespace CalamityMod.NPCs.Leviathan Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/Leviathangib3"), 1f); } } - + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.GreaterHealingPotion; } - + public override void NPCLoot() { bool hardMode = Main.hardMode; int bossAlive = mod.NPCType("Siren"); if (!NPC.AnyNPCs(bossAlive)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EnchantedPearl")); //done - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HotlineFishingHook); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BottomlessBucket); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SuperAbsorbantSponge); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(5, 9)); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(5, 9)); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(5, 9)); - } - if (!hardMode) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("IOU"), 1, true); - } if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LeviathanTrophy")); //done } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode && hardMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } else { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EnchantedPearl")); //done + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HotlineFishingHook); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BottomlessBucket); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SuperAbsorbantSponge); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(5, 9)); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(5, 9)); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(5, 9)); + } + if (!hardMode) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("IOU"), 1, true); + } if (Main.rand.Next(7) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LeviathanMask")); //done @@ -691,49 +691,49 @@ namespace CalamityMod.NPCs.Leviathan npc.boss = false; } } - + public override void OnHitPlayer(Player target, int damage, bool crit) - { - target.AddBuff(BuffID.Wet, 240, true); - } - + { + target.AddBuff(BuffID.Wet, 240, true); + } + public override bool CheckActive() { return false; } - + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) { Mod mod = ModLoader.GetMod("CalamityMod"); - Texture2D texture = Main.npcTexture[npc.type]; - Texture2D texture2 = mod.GetTexture("NPCs/Leviathan/LeviathanTexTwo"); - Texture2D texture3 = mod.GetTexture("NPCs/Leviathan/LeviathanAltTexOne"); - Texture2D texture4 = mod.GetTexture("NPCs/Leviathan/LeviathanAltTexTwo"); - if (npc.ai[0] == 1f) - { - if (npc.localAI[0] == 0f) - { - CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); - } - else - { - CalamityMod.DrawTexture(spriteBatch, texture2, 0, npc, drawColor); - } - } - else - { - if (npc.localAI[0] == 0f) - { - CalamityMod.DrawTexture(spriteBatch, texture3, 0, npc, drawColor); - } - else - { - CalamityMod.DrawTexture(spriteBatch, texture4, 0, npc, drawColor); - } - } + Texture2D texture = Main.npcTexture[npc.type]; + Texture2D texture2 = mod.GetTexture("NPCs/Leviathan/LeviathanTexTwo"); + Texture2D texture3 = mod.GetTexture("NPCs/Leviathan/LeviathanAltTexOne"); + Texture2D texture4 = mod.GetTexture("NPCs/Leviathan/LeviathanAltTexTwo"); + if (npc.ai[0] == 1f) + { + if (npc.localAI[0] == 0f) + { + CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); + } + else + { + CalamityMod.DrawTexture(spriteBatch, texture2, 0, npc, drawColor); + } + } + else + { + if (npc.localAI[0] == 0f) + { + CalamityMod.DrawTexture(spriteBatch, texture3, 0, npc, drawColor); + } + else + { + CalamityMod.DrawTexture(spriteBatch, texture4, 0, npc, drawColor); + } + } return false; } - + public override void FindFrame(int frameHeight) { npc.frameCounter += 1.0; @@ -745,15 +745,15 @@ namespace CalamityMod.NPCs.Leviathan if (npc.frame.Y >= frameHeight * 3) { npc.frame.Y = 0; - npc.localAI[0] += 1f; + npc.localAI[0] += 1f; + } + if (npc.localAI[0] > 1f) + { + npc.localAI[0] = 0f; + npc.netUpdate = true; } - if (npc.localAI[0] > 1f) - { - npc.localAI[0] = 0f; - npc.netUpdate = true; - } } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); diff --git a/NPCs/Leviathan/LeviathanStart.cs b/NPCs/Leviathan/LeviathanStart.cs index 5f1ac211ac..15c4af0343 100644 --- a/NPCs/Leviathan/LeviathanStart.cs +++ b/NPCs/Leviathan/LeviathanStart.cs @@ -15,7 +15,7 @@ namespace CalamityMod.NPCs.Leviathan public override void SetStaticDefaults() { DisplayName.SetDefault("???"); - Main.npcFrameCount[npc.type] = 4; + Main.npcFrameCount[npc.type] = 6; } public override void SetDefaults() @@ -23,8 +23,8 @@ namespace CalamityMod.NPCs.Leviathan npc.aiStyle = -1; aiType = -1; npc.damage = 0; - npc.width = 120; //324 - npc.height = 120; //216 + npc.width = 70; //324 + npc.height = 70; //216 npc.defense = 0; npc.lifeMax = 3000; npc.knockBackResist = 0f; diff --git a/NPCs/Leviathan/LeviathanStart.png b/NPCs/Leviathan/LeviathanStart.png index 42602cccfed8289cb17158562bd12e62d906a9eb..996cec6e0578bf11843878277d50a7f532ea50ce 100644 GIT binary patch literal 2283 zcmaJ@dpy(o8=slk*6=kHN}D@}Ty{z^&D@&HVzT5`2cyRVs`F8sKeV*6rc|Gsf=Xt%K*Xwyc@8|RSaHw8nC6qP_0)Z&G zySeNEqZ6{CIcZGVfKXJ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faU`a?&Z1s-Xfn(7ZzPObDti^jdzaMT87lbQu%x;MiRl$&nf z!-^MHK9;eezfg;IiXZT$#f1CrV$Cbr?y%jfV)7D!nc#pZ6FUY>aguqwHO9H>jE#RQN)7xP-+GAs6 zfh(pj?l%;)w05<$I)1O&Z&eof%B)il;*ps0tAh>?Cs>8*t z!@%*5Wptl1E$ZYi?r4k}82L)RW19npBGT<^HFciqO7pwRD zh3}vS;fT&$+hq0XXRr_}dVipbuYX31zJb8_f`2UOTN-;;bqm{2k)tIKyLp_YAzGOhARJ1UO(OXe2Sx0?6guQSc#H6`zUAfo9o|^TU5CGrOqJCW zJrU6d3lXK}0Le<}?zds2wyd~=&_p+RSC}Ty5j@&jg$;h0XRZ1E5aNw>J{rE$uoy$N zQ6=AHguwOP7N)D)cw-zgiF2MW%YA*~?uD^5Lq|7~`Q~V`eN+{#LsQgIw!~{-BbskO zSr3}_k7VKaUdFpM_!EZU`rEs*^V&@u?c{F1{YLOEY4B>pyUQOlTI*Hf`LwywWX|tY z^bImyjLUjoTXN~4Py^{9Q*(G3QJj#T@(J*@e^5ClWTQ@#0somM1AU`BTC2`px*jSX zy>^0g&YCzqC#E)S`POp@@WhmBNbO;nkJ_Si!94;RmHN@EAc-(H4TmQGAi?v{6^p}9 zm~eHhs;u%!(iy`K>d`9>_w+SIYkMaE0*{3h!0_9I^FCVg$=5b3wB-p#AuLQ+N3 w5{vckQv@XWO}KwcRf3=lT?ry+nU!^U#xWc68vk&)qy7p*fM2k0jW;9Xf4aj Main.worldSurface * 16.0 || (player.position.X > 6400f && player.position.X < (float)(Main.maxTilesX * 16 - 6400)); int npcType = mod.NPCType("Leviathan"); - bool halfLife = (double)npc.life <= (double)npc.lifeMax * 0.5; - bool leviAlive = NPC.AnyNPCs(npcType); + bool halfLife = (double)npc.life <= (double)npc.lifeMax * 0.5; + bool leviAlive = NPC.AnyNPCs(npcType); float num1000 = leviAlive ? 14f : 18f; float num1005 = leviAlive ? 14f : 18f; num1006 *= num1005; @@ -120,17 +113,17 @@ namespace CalamityMod.NPCs.Leviathan { if (!spawnedLevi) { - if (revenge) - { - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y - 200, mod.NPCType("SirenClone")); - } - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndSiren"); - else - music = MusicID.Boss3; - NPC.SpawnOnPlayer(player.whoAmI, npcType); - spawnedLevi = true; + if (revenge) + { + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y - 200, mod.NPCType("SirenClone")); + } + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/LeviathanAndSiren"); + else + music = MusicID.Boss3; + NPC.SpawnOnPlayer(player.whoAmI, npcType); + spawnedLevi = true; } phase2 = true; } @@ -139,18 +132,18 @@ namespace CalamityMod.NPCs.Leviathan { npc.defense = npc.defDefense * defenseMult; } - else - { - npc.defense = 25; - } - if ((double)npc.life <= (double)npc.lifeMax * 0.25 && Main.netMode != 1) + else + { + npc.defense = 25; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.25 && Main.netMode != 1) { if (!secondClone) { - if (revenge) - { - NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y - 200, mod.NPCType("SirenClone")); - } + if (revenge) + { + NPC.NewNPC((int)spawnAt.X, (int)spawnAt.Y - 200, mod.NPCType("SirenClone")); + } secondClone = true; } phase3 = true; @@ -210,11 +203,11 @@ namespace CalamityMod.NPCs.Leviathan num1038++; } } - if (npc.timeLeft < 3000) - { - npc.timeLeft = 3000; - } - if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) + if (npc.timeLeft < 3000) + { + npc.timeLeft = 3000; + } + if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) { npc.TargetClosest(true); } @@ -246,8 +239,8 @@ namespace CalamityMod.NPCs.Leviathan npc.spriteDirection = npc.direction; float num1053 = 9f; float num1054 = 0.15f; - float num10542 = 0.05f; - Vector2 vector118 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num10542 = 0.05f; + Vector2 vector118 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); float num1055 = player.position.X + (float)(player.width / 2) - vector118.X; float num1056 = player.position.Y + (float)(player.height / 2) - 200f - vector118.Y; float num1057 = (float)Math.Sqrt((double)(num1055 * num1055 + num1056 * num1056)); @@ -306,14 +299,14 @@ namespace CalamityMod.NPCs.Leviathan float num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); npc.ai[1] += 1f; npc.ai[1] += (float)(num1038 / 2); - if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) - { - npc.ai[1] += 0.25f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - npc.ai[1] += 0.25f; - } + if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) + { + npc.ai[1] += 0.25f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + npc.ai[1] += 0.25f; + } bool flag103 = false; if (npc.ai[1] > 20f) { @@ -327,7 +320,7 @@ namespace CalamityMod.NPCs.Leviathan if (Main.netMode != 1) { int num1061 = 371; - int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, num1061, 0, 0f, 0f, 0f, 0f, 255); + int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y - 30, num1061, 0, 0f, 0f, 0f, 0f, 255); Main.npc[num1062].velocity.X = (float)Main.rand.Next(-200, 201) * 0.01f; Main.npc[num1062].velocity.Y = (float)Main.rand.Next(-200, 201) * 0.01f; Main.npc[num1062].localAI[0] = 60f; @@ -339,8 +332,8 @@ namespace CalamityMod.NPCs.Leviathan { float num1063 = 14f; float num1064 = 0.15f; - float num10642 = 0.05f; - vector120 = vector119; + float num10642 = 0.05f; + vector120 = vector119; num1058 = player.position.X + (float)(player.width / 2) - vector120.X; num1059 = player.position.Y + (float)(player.height / 2) - vector120.Y; num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); @@ -395,16 +388,16 @@ namespace CalamityMod.NPCs.Leviathan else if (npc.ai[0] == 2f) { npc.rotation = npc.velocity.X * 0.02f; - Vector2 vector121 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); + Vector2 vector121 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.4f); npc.ai[1] += 1f; bool flag104 = false; - if (npc.GetGlobalNPC(mod).enraged) - { - if (npc.ai[1] % 10f == 9f) - { - flag104 = true; - } - } + if (npc.GetGlobalNPC(mod).enraged) + { + if (npc.ai[1] % 10f == 9f) + { + flag104 = true; + } + } else if ((!leviAlive && halfLife) || CalamityWorld.death || CalamityWorld.bossRushActive) { if (npc.ai[1] % 15f == 14f) @@ -438,10 +431,10 @@ namespace CalamityMod.NPCs.Leviathan if (Main.netMode != 1) { float num1070 = revenge ? 13f : 11f; - if (npc.GetGlobalNPC(mod).enraged) - { - num1070 = 24f; - } + if (npc.GetGlobalNPC(mod).enraged) + { + num1070 = 24f; + } else if (isNotOcean || (!leviAlive && halfLife) || CalamityWorld.death || CalamityWorld.bossRushActive) { num1070 = revenge ? 19f : 18f; @@ -465,74 +458,74 @@ namespace CalamityMod.NPCs.Leviathan num1072 *= num1073; int num1074 = expertMode ? 26 : 32; int num1075 = mod.ProjectileType("WaterSpear"); - switch (Main.rand.Next(6)) - { - case 0: num1075 = mod.ProjectileType("SirenSong"); break; - case 1: num1075 = mod.ProjectileType("FrostMist"); break; - case 2: - case 3: - case 4: - case 5: num1075 = mod.ProjectileType("WaterSpear"); break; - } - if (isNotOcean) + switch (Main.rand.Next(6)) { - num1074 *= 2; + case 0: num1075 = mod.ProjectileType("SirenSong"); break; + case 1: num1075 = mod.ProjectileType("FrostMist"); break; + case 2: + case 3: + case 4: + case 5: num1075 = mod.ProjectileType("WaterSpear"); break; + } + if (isNotOcean) + { + num1074 *= 2; } Projectile.NewProjectile(vector121.X, vector121.Y, num1071, num1072, num1075, num1074, 0f, Main.myPlayer, 0f, 0f); } } - if (npc.position.Y > player.position.Y - 200f) //200 - { - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.98f; - } - npc.velocity.Y = npc.velocity.Y - 0.1f; - if (npc.velocity.Y > 2f) - { - npc.velocity.Y = 2f; - } - } - else if (npc.position.Y < player.position.Y - 500f) //500 - { - if (npc.velocity.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.98f; - } - npc.velocity.Y = npc.velocity.Y + 0.1f; - if (npc.velocity.Y < -2f) - { - npc.velocity.Y = -2f; - } - } - if (npc.position.X + (float)(npc.width / 2) > player.position.X + (float)(player.width / 2) + 100f) - { - if (npc.velocity.X > 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - npc.velocity.X = npc.velocity.X - 0.1f; - if (npc.velocity.X > 8f) - { - npc.velocity.X = 8f; - } - } - if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)(player.width / 2) - 100f) - { - if (npc.velocity.X < 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - npc.velocity.X = npc.velocity.X + 0.1f; - if (npc.velocity.X < -8f) - { - npc.velocity.X = -8f; - } - } - float playerLocation = npc.Center.X - player.Center.X; - npc.direction = (playerLocation < 0 ? 1 : -1); - npc.spriteDirection = npc.direction; - if (npc.ai[1] > 300f) + if (npc.position.Y > player.position.Y - 200f) //200 + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.985f; + } + npc.velocity.Y = npc.velocity.Y - 0.1f; + if (npc.velocity.Y > 2f) + { + npc.velocity.Y = 2f; + } + } + else if (npc.position.Y < player.position.Y - 500f) //500 + { + if (npc.velocity.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.985f; + } + npc.velocity.Y = npc.velocity.Y + 0.1f; + if (npc.velocity.Y < -2f) + { + npc.velocity.Y = -2f; + } + } + if (npc.position.X + (float)(npc.width / 2) > player.position.X + (float)(player.width / 2) + 100f) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + npc.velocity.X = npc.velocity.X - 0.1f; + if (npc.velocity.X > 8f) + { + npc.velocity.X = 8f; + } + } + if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)(player.width / 2) - 100f) + { + if (npc.velocity.X < 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + npc.velocity.X = npc.velocity.X + 0.1f; + if (npc.velocity.X < -8f) + { + npc.velocity.X = -8f; + } + } + float playerLocation = npc.Center.X - player.Center.X; + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + if (npc.ai[1] > 300f) { npc.ai[0] = -1f; npc.ai[1] = 0f; @@ -540,11 +533,11 @@ namespace CalamityMod.NPCs.Leviathan return; } } - else if (npc.ai[0] == 3f) + else if (npc.ai[0] == 3f) { npc.TargetClosest(false); npc.rotation = npc.velocity.ToRotation(); - if (Math.Sign(npc.velocity.X) != 0) + if (Math.Sign(npc.velocity.X) != 0) { npc.spriteDirection = -Math.Sign(npc.velocity.X); } @@ -552,17 +545,17 @@ namespace CalamityMod.NPCs.Leviathan { npc.rotation += 3.14159274f; } - if (npc.rotation > 1.57079637f) + if (npc.rotation > 1.57079637f) { npc.rotation -= 3.14159274f; } npc.spriteDirection = Math.Sign(npc.velocity.X); phaseSwitch += 1f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - phaseSwitch += 1f; - } - if (chargeSwitch == 0f) + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + phaseSwitch += 1f; + } + if (chargeSwitch == 0f) { float scaleFactor6 = num998; Vector2 center4 = npc.Center; @@ -573,42 +566,42 @@ namespace CalamityMod.NPCs.Leviathan vector126 = Vector2.Normalize(vector126) * scaleFactor6; vector127 = Vector2.Normalize(vector127) * scaleFactor6; bool flag64 = Collision.CanHit(npc.Center, 1, 1, player.Center, 1, 1); - if (anotherFloat >= 120f) + if (anotherFloat >= 120f) { flag64 = true; } float num1014 = 8f; flag64 = (flag64 && vector126.ToRotation() > 3.14159274f / num1014 && vector126.ToRotation() < 3.14159274f - 3.14159274f / num1014); - if (num1013 > num999 || !flag64) + if (num1013 > num999 || !flag64) { npc.velocity.X = (npc.velocity.X * (num1000 - 1f) + vector127.X) / (leviAlive ? 13.9f : 17.8f); //14f 18f npc.velocity.Y = (npc.velocity.Y * (num1000 - 1f) + vector127.Y) / (leviAlive ? 13.9f : 17.8f); //14f 18f - if (!flag64) + if (!flag64) { anotherFloat += 1f; if (anotherFloat == 120f) { npc.netUpdate = true; } - } + } else { anotherFloat = 0f; } - } - else + } + else { chargeSwitch = 1f; npc.ai[2] = vector126.X; anotherFloat = vector126.Y; npc.netUpdate = true; } - } - else if (chargeSwitch == 1f) + } + else if (chargeSwitch == 1f) { npc.velocity *= scaleFactor4; npc.ai[1] += 1f; - if (npc.ai[1] >= num1001) + if (npc.ai[1] >= num1001) { chargeSwitch = 2f; npc.ai[1] = 0f; @@ -618,13 +611,13 @@ namespace CalamityMod.NPCs.Leviathan velocity *= scaleFactor5; npc.velocity = velocity; } - } - else if (chargeSwitch == 2f) + } + else if (chargeSwitch == 2f) { float num1016 = num1003; npc.ai[1] += 1f; bool flag65 = Vector2.Distance(npc.Center, player.Center) > num1004 && npc.Center.Y > player.Center.Y; - if ((npc.ai[1] >= num1016 && flag65) || npc.velocity.Length() < num1007) + if ((npc.ai[1] >= num1016 && flag65) || npc.velocity.Length() < num1007) { chargeSwitch = 0f; npc.ai[1] = 0f; @@ -634,24 +627,24 @@ namespace CalamityMod.NPCs.Leviathan npc.netUpdate = true; npc.ai[1] = 45f; chargeSwitch = 4f; - } - else + } + else { Vector2 center6 = npc.Center; Vector2 center7 = player.Center; Vector2 vec2 = center7 - center6; vec2.Normalize(); - if (vec2.HasNaNs()) + if (vec2.HasNaNs()) { vec2 = new Vector2((float)npc.direction, 0f); } npc.velocity = (npc.velocity * (num1005 - 1f) + vec2 * (npc.velocity.Length() + num1006)) / num1005; } - } - else if (chargeSwitch == 4f) + } + else if (chargeSwitch == 4f) { npc.ai[1] -= 3f; - if (npc.ai[1] <= 0f) + if (npc.ai[1] <= 0f) { chargeSwitch = 0f; npc.ai[1] = 0f; @@ -673,37 +666,36 @@ namespace CalamityMod.NPCs.Leviathan } if (player.dead || Vector2.Distance(player.Center, vector) > 5600f) { - if (npc.localAI[3] < 120f) + if (npc.localAI[3] < 120f) { npc.localAI[3] += 1f; } - if (npc.localAI[3] > 60f) + if (npc.localAI[3] > 60f) { npc.velocity.Y = npc.velocity.Y + (npc.localAI[3] - 60f) * 0.25f; if ((double)npc.position.Y > Main.rockLayer * 16.0) { - for (int x = 0; x < 200; x++) - { - if (Main.npc[x].type == mod.NPCType("Leviathan")) - { - Main.npc[x].active = false; - Main.npc[x].netUpdate = true; - } - } - npc.active = false; - npc.netUpdate = true; + for (int x = 0; x < 200; x++) + { + if (Main.npc[x].type == mod.NPCType("Leviathan")) + { + Main.npc[x].active = false; + Main.npc[x].netUpdate = true; + } + } + npc.active = false; + npc.netUpdate = true; } } return; } - if (npc.localAI[3] > 0f) + if (npc.localAI[3] > 0f) { npc.localAI[3] -= 1f; - return; } } - public override void HitEffect(int hitDirection, double damage) + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 3; k++) { @@ -711,6 +703,11 @@ namespace CalamityMod.NPCs.Leviathan } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SirenGores/Siren"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SirenGores/Siren2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SirenGores/Siren3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SirenGores/Siren4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SirenGores/Siren5"), 1f); for (int k = 0; k < 50; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); @@ -718,120 +715,127 @@ namespace CalamityMod.NPCs.Leviathan } } - public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) //for alt textures - { - Mod mod = ModLoader.GetMod("CalamityMod"); - Texture2D texture = (drawAltTexture ? mod.GetTexture("NPCs/Leviathan/SirenAlt") : mod.GetTexture("NPCs/Leviathan/Siren")); - CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); - return false; - } - - public override void FindFrame(int frameHeight) //9 total frames + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) //2 total states (ice shield or no ice shield) { - npc.frameCounter += 1.0; - if (npc.ai[0] == 2f) + Mod mod = ModLoader.GetMod("CalamityMod"); + Texture2D texture = Main.npcTexture[npc.type]; + if (npc.dontTakeDamage) { - if (npc.frameCounter > 12.0) + switch ((int)npc.localAI[2]) { - npc.frame.Y = npc.frame.Y + frameHeight; - npc.frameCounter = 0.0; - } - if (npc.frame.Y >= frameHeight * 4) - { - npc.frame.Y = 0; - } - } - else if (npc.ai[0] <= 1f) - { - if (npc.frameCounter > 12.0) - { - npc.frame.Y = npc.frame.Y + frameHeight; - npc.frameCounter = 0.0; - } - if (npc.frame.Y < frameHeight * 4) - { - npc.frame.Y = frameHeight * 4; - } - if (npc.frame.Y >= frameHeight * 8) - { - npc.frame.Y = frameHeight * 4; + case 0: + texture = mod.GetTexture("NPCs/Leviathan/SirenAlt"); + break; + case 1: + texture = mod.GetTexture("NPCs/Leviathan/SirenAltSinging"); + break; + case 2: + texture = mod.GetTexture("NPCs/Leviathan/SirenAltStabbing"); + break; } } else { - if (npc.frameCounter > 12.0) + switch ((int)npc.localAI[2]) { - npc.frame.Y = npc.frame.Y + frameHeight; - npc.frameCounter = 0.0; - } - if (npc.frame.Y < frameHeight * 8) - { - npc.frame.Y = frameHeight * 8; - } - if (npc.frame.Y >= frameHeight * 12) - { - npc.frame.Y = frameHeight * 8; + case 0: + texture = Main.npcTexture[npc.type]; + break; + case 1: + texture = mod.GetTexture("NPCs/Leviathan/SirenSinging"); + break; + case 2: + texture = mod.GetTexture("NPCs/Leviathan/SirenStabbing"); + break; } } + CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); + return false; } - + + public override void FindFrame(int frameHeight) //6 total frames, 3 total texture types + { + if (npc.ai[0] == 2f) + { + npc.localAI[2] = 0f; + } + else if (npc.ai[0] <= 1f) + { + npc.localAI[2] = 1f; + } + else + { + npc.localAI[2] = 2f; + } + npc.frameCounter += 1.0; + if (npc.frameCounter > 12.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 6) + { + npc.frame.Y = 0; + } + } + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.GreaterHealingPotion; } - + public override void NPCLoot() { bool hardMode = Main.hardMode; int bossAlive = mod.NPCType("Leviathan"); if (!NPC.AnyNPCs(bossAlive)) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EnchantedPearl")); //done - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HotlineFishingHook); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BottomlessBucket); - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SuperAbsorbantSponge); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(5, 9)); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(5, 9)); - } - if (Main.rand.Next(5) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(5, 9)); - } - if (!hardMode) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("IOU"), 1, true); - } if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LeviathanTrophy")); //done } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode && hardMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } else { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EnchantedPearl")); //done + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.HotlineFishingHook); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BottomlessBucket); + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SuperAbsorbantSponge); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CratePotion, Main.rand.Next(5, 9)); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.FishingPotion, Main.rand.Next(5, 9)); + } + if (Main.rand.Next(5) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.SonarPotion, Main.rand.Next(5, 9)); + } + if (!hardMode) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("IOU"), 1, true); + } if (Main.rand.Next(7) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("LeviathanMask")); //done @@ -871,17 +875,17 @@ namespace CalamityMod.NPCs.Leviathan npc.boss = false; } } - + public override void OnHitPlayer(Player target, int damage, bool crit) - { - target.AddBuff(BuffID.Wet, 120, true); - } - + { + target.AddBuff(BuffID.Wet, 120, true); + } + public override bool CheckActive() { return false; } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); diff --git a/NPCs/Leviathan/Siren.png b/NPCs/Leviathan/Siren.png index e523497ed1538e1e3a520c4ef6d23e11d4eaa21f..56d3a69d4579641a4c12a7d145c8f78769d3723c 100644 GIT binary patch literal 22093 zcmb5W2UJsQx3;~oqZ?5Wl`ar^liop*7OHgV3ZWB`Zs>c9Ac&NNVyHssRl0PyAP}n5 z(AiQ#2}KA+`oDsEpYxvco%j3B&lnCJ4%W(APnplW=6%nEKh{>IxJq{w000W8nvx#) zw*dg0ce!#2{MXll=oA3B2SAk`8oW$dYxH{&heMz42fT)Op7%T-d7h7}KxCaS&-WVjicv#(w2^^jph&|XD**{^co6+zYOb_fu2rSA5 zCmN^F%pXv|3RM$()%TBPOdx>N~LUiXG^YJV*8GvxDJ_j@%bf-B6G^ago zk0_>KM-xg5F98g)W2r!Jakk=8PA)S5%oqDX7IrXUfn>naQ9l6)PIax?4E((|-7D}k z7*G&p4HDeN&L~jA_L}4}qG-(M)svyZL0j?l0D!3xych#PK?YQ+nWf3^K_P|`_TB(s z!Jh~KK1C%LV=BM0D{tAr*XS15Q3pG|ij2J8Ap_nCf_xVNm$jREV(6d!)Ie~rs8ZDS zTYmEfB^ROahQ@`6$+qru4$jR-xe45jK{|OhU!xv7StY||GT=E<(J%oX?km8Dil8gN zw*fyI;79&p4FK3}NWBNzx;1)^={82M0;5N@^z)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HJ?*%V zELu2rZ!A9ft%e@fNyaX}eE8+rq0Ry1@rMoqn3)_gjd)9%&IH1WdL)B7K`+h;m1NQS zr&3@KjekB1es@IXV;NL?j4%&{u3ba&KuJU9&Ea6H%HGDPhkPO)-X?sdt#I#162MGWAp zJi9sBNg5OsLy1zr`-OSlGJ>FWA>H6(h7>WK8Jq6-Pk@veC0#7;x$y5X*oD#E3&mUG zGQE~xl|{+zZ^6fIP&y@SBMHhN5*?^$6|&jdMpv5?M0r{ZnXajxvg-nI3_@(s&O^n) z**wyxnqf&$na+HYqgs0kLLV1BDh$bH!`=y3#Uf&Q7E4y`gSmvgr)z^!f#Eetf}v9c zhkpD=^|@dcllxQ?21L*4rVj`RzX{Ij1fGUKZ)2B|TZM5b1(e0F0Nj_Qrs_wOOQ1H? zaIrSZxs;gSSO^FGhvTy9$#uwoA+EPzWW>yqf;?QIKeT*-Ah=|+=~RfPaCt>`?{%#b zQx+B7w~m2|EaQdXkM*98!|#$_caRnpDB!G>QM(sB)BzEzD#xyt#(SXB-`4x5h(P8L zm=xnk)W|`8^s;?;XAraYSKH7eR57i#k?W;=b1A4foM#5y<~s@AsECG7#tZ&{tmh5y zUgpKD`?_)>n+JUwMH+LqEB^Wpp;52qq8cPl{hI|HsyVwddnwj&?TGr)T1622#b@Te zy)ILef3<#B@+A$#6!6_@2YmerTx-ka&y#xJyt^fY?5%PhWm#Tc28hQN%k36L=A5Yi E0j~a;tN;K2 diff --git a/NPCs/Leviathan/SirenAlt.png b/NPCs/Leviathan/SirenAlt.png index 26b616ef204c104b463c6e3acfa731f948fd779d..793607a326bd49583d04253186621ad9c9e0faec 100644 GIT binary patch delta 16769 zcma)^c|4T+-~Xqaib^FRW2?r}hMFNe9mwL-?jYG-s= ze+xNt<`PraM9SqO!gr6NQ#^tzt)tCPzjqRTpM|x{!ct!58$R|-j2&!0I)CHHy=#(s zI}>)U$CH&U-5r!K=u0(Sd8YR4%pu*wiWkQC*4^``D(E#290eXUsrUQtzi_P1ikW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jAG`;%(#uh(GE=fzNQ%cLaaQFxLv$YtVSpjwnFdo5SYKFQu6sP# z(2{hpw5GG{H$70?yk$kNC-;c3N(HHwSJf|`f& zQMKh*9gC0q!t&ada>zMQprp)&n>dkNsFl+foh!O-&kltH2kjH^t@(^kl&?ud?iEpw z+)$k45fbS%nXa zakYFodO(xa2XV>dIj|VqOcbE~ZHaP2)Xzy6i2mYqVGEZuGA2v>vLY4Y5C{?3@ z!{Q_g9TMBpp6g8|yV%teQ{oneC({%S_qWVemn`0QyFh$`28SPYzfDIlc|L(f`M)=v zXmdSGGfQ0$<~`x`GWx?mNH5B&1cUzEV`bnl(7lV@rZD4Qv-N@l%WI6(e~woeNo2X( zz0_MC8Ww-!<=fjlH)#v=2o;&g*K~h!o0}xChU5ARqz%1wNwfS|rVsM)d?o!#r=Is6 zTkw|k($>CgpxJcCphWSCku@tFa1QOFiJayS|MkwbT3=Sw5l<^SB5o0xv@qSd@-@>D0Zs1C<`4Y-cF8P%=0<3t(-Gg4IdwzV?GnDtJB4Ej#ML=X^rB zq{U~2h6RVs1AE)bYV5616}bhQQp(vzNL!Y%69HE>O&YB=yb4h`caI|6|DQB!#G6z-aL?Qvd-c>z^NwjR_* zE`N3H`+2l0oaN&W-X!@<`8>GdX?MT1_@xI&8_Li&kL)N>hz8lKwydWv7P+5Rdiisf z5AKq#Nt>uIbW?GvnSRS!k5_S9Uo&RBpIE{lK-}12RWJ2%q$y4D2EBV3QU2jAc%Jsk zi%OAYdSH1L3T2TH!M&{L-`uj(u4`%Zysm{0n$+m)>PZgqIs!xA5b3=5L!Id(j+bMf d!8R;}tSj+a+O5mRqrhxHTI#xLXq5*~{|k+;t^)u7 literal 0 HcmV?d00001 diff --git a/NPCs/Leviathan/SirenClone.cs b/NPCs/Leviathan/SirenClone.cs index 0877df2429..e63105faf5 100644 --- a/NPCs/Leviathan/SirenClone.cs +++ b/NPCs/Leviathan/SirenClone.cs @@ -17,7 +17,7 @@ namespace CalamityMod.NPCs.Leviathan public override void SetStaticDefaults() { DisplayName.SetDefault("Siren Clone"); - Main.npcFrameCount[npc.type] = 4; + Main.npcFrameCount[npc.type] = 6; } public override void SetDefaults() @@ -25,7 +25,7 @@ namespace CalamityMod.NPCs.Leviathan npc.aiStyle = -1; aiType = -1; npc.damage = 0; - npc.width = 120; //324 + npc.width = 70; //324 npc.height = 120; //216 npc.defense = 0; npc.lifeMax = 3000; diff --git a/NPCs/Leviathan/SirenClone.png b/NPCs/Leviathan/SirenClone.png index 7564564883f8a57552ee3dc887362fbd23f47c88..83c221cda33603adb167ab22a40f0b333365ff26 100644 GIT binary patch literal 18004 zcmY&=c{r5c8}}n6iApF-5*3X#d-ftKyT&fW*coKsDO+|D*=B4p_I=+AW8cEqO|p!g z?2P4ortj~4uj};>*ERE;=bZc8=e|Gp=l&cas>-h@$mq!c0HApD`sG{jw;TWvi<6Ro zf35mrngHMd@aE+Ub+?oaZ+JMu+)gE5Rp4~O_lz9){ZYl2;yL>d{7%K$v} zsV>)8#i<9j(Gth;FQuDD5_c+p{BnuK0F$cKR^M~!_N{Sd zUUW;+1nmj4?{RALl?Sl4g|>Ts;gH>GFKXcF{`MgNFuDI$81ic=y{x^|1h%~xa zNeNuqZd8Zs$yx&iOZJT#U;e2-%9S7GvGAaO?++3R=%uBfxdFKSdE;7VL9H}Zwk2jr zGT264`r_H@Y4YUfdhF7dUH%YW5_XuPcSjLDz$tmYK>~=+!H_eOO#B;}^Bwo2QiUsq zkGTe#9Bw?np6xa$vvj8Bko|x#51}A(zl(*NQujMvh9f?&oNYeKpwQhz{=GH5TbPh% z^9W7*WMk_~Vtx8rF%bZ6P7Tq5l#VGWzv~@G(n9XR1A%tkEVG^4F!Haqu+Fd6_m5(i z*9tCaYkYds*2^sOc}j9OWcg%bzTbCfxq*`~S_JPtMG;wvQ~xoO$;)l~Gq(PYSgK7! zK9g}QPN+6=FkvmEROA9dJhb+WumuwQL8zhaQ7r(N74;^09>4E9*dgBLh-B7%Wqf12 zE>g(q5BH(B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1??eHR_V1`|OBFMNfv zb+uPg>srC1B>BS$iw^#D_uayclR5~G&8);l2F)^TzY$Z0YY4>o(H!nIrQ*^2w-b+r z>~)p4{%E+!#CD)Caa)rrW%I2B<-qtQMDGApW9j#(p|c&?dy^Kdk&FY^@}lybT%(ME zW+t;z_e|V?D@Kx2R2OAbaV7O4VAk$Dt-#c}^Q{kbJfck)q|1W5n(Jn3Vp!eR5R^vC zC~|)lup!+9^=el9n!d&Zx(L44N5N&m9jJyrA5{gi=qGC;K>zRKSO*y(XO}8wx|{92 aWweW7T6ETx`orSaH*neJ?tI^gn)W~4Z**<| diff --git a/NPCs/Leviathan/SirenIce.cs b/NPCs/Leviathan/SirenIce.cs index 1b9b109095..c6d498eb48 100644 --- a/NPCs/Leviathan/SirenIce.cs +++ b/NPCs/Leviathan/SirenIce.cs @@ -24,11 +24,11 @@ namespace CalamityMod.NPCs.Leviathan npc.canGhostHeal = false; npc.noTileCollide = true; npc.damage = 45; - npc.width = 160; //324 - npc.height = 160; //216 + npc.width = 100; + npc.height = 100; npc.defense = 10; npc.lifeMax = 650; - if (CalamityWorld.bossRushActive) + if (CalamityWorld.bossRushActive) { npc.lifeMax = 400000; } @@ -51,8 +51,8 @@ namespace CalamityMod.NPCs.Leviathan npc.spriteDirection = Main.npc[num989].direction; npc.velocity = Vector2.Zero; npc.position = Main.npc[num989].Center; - npc.position.X = npc.position.X - (float)(npc.width / 2) + ((npc.spriteDirection == 1) ? -30f : 30f); - npc.position.Y = npc.position.Y - (float)(npc.height / 2); + npc.position.X = npc.position.X - (float)(npc.width / 2) + ((npc.spriteDirection == 1) ? -20f : 20f); + npc.position.Y = npc.position.Y - (float)(npc.height / 2) - 30; npc.gfxOffY = Main.npc[num989].gfxOffY; Lighting.AddLight((int)npc.Center.X / 16, (int)npc.Center.Y / 16, 0f, 0.8f, 1.1f); return; @@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.Leviathan npc.HitEffect(0, 10.0); npc.active = false; } - + public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { if (projectile.type != mod.ProjectileType("FlakKraken")) @@ -76,7 +76,12 @@ namespace CalamityMod.NPCs.Leviathan } } } - + + public override Color? GetAlpha(Color drawColor) + { + return new Color(200, 200, 200, npc.alpha); + } + public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(BuffID.Frostburn, 240, true); diff --git a/NPCs/Leviathan/SirenIce.png b/NPCs/Leviathan/SirenIce.png index 9f2547d65aaf05bc8846d4b6e7d718598f3210ef..36251f6db21d4214efb73bc47ccd250af3ea7cee 100644 GIT binary patch literal 3292 zcmW+(cU05K8vTJF4;0b35ov;uh!7O%U5Y3YO6Z+{Qeu?yg0z4XSy@3T4@^)5gGvVz zYLF7jt{S96Xi^f879~LF5v07Zf6UA|b7tmz<$m{mlWb#cCM+Z_1OR}r`E64>?i$1$ zzW+JSol$N4ZvfzAzPYKfLuBsq8}}r~Q7LMx!E6dfSDef!Sx%{|Q@J1J``O~GN$KBw zG$Y>a!s~qGO(?(dZhw}E60QL84*S)jG|L8Oa?JkpJNRJ#X&+g+>;j+u5mS_Sshd=V zHUl9&a?l$dgF5VEFuQfmaw=P1u1$`(nvDb>RyE8|$Pe_B3nYNmv3HzJ zLsj1R1H`u0{BQTys`qUMHGV!P7}eC?@31fJLqtW!-k`FPRp)_gn*&uKAb`H33wSd} zL?u*Xvv@K5!%v_jS34Rqa!b_ft3G$bksq^}Rb9K3Ev@xPRis*pM)1@W1u7#}0~VRF zn=B4%w`J-uByf22824;;Jr18CK7GZrRnw*u=;y-I@KBufXokN>3bVX#UFsbJ%)U${uK7$=DVY;H7ZvmBl zgDW6lX}np`$V8^OM60gVgZI)Y>^U?fpuMh;;RBb}a(`T(P?n%gMYT^c1b}+%e&}B3 zC3cL*9gmEg@_n*_hoo4b&EDM!%Vv8To`{!f)i}D*S&M;K1=2SR<3L6s#HqD$TL3?2 zwPT0kbMXI}vIitJ`ypQB-?qLQ@)`s`So2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/Leviathan/SirenSinging.png new file mode 100644 index 0000000000000000000000000000000000000000..064adc169435f5cf910e9cc444eb1e60e32fda9b GIT binary patch literal 21609 zcmb5WWmuGLw?BL#w}GN4h%`ty=upxK5<_=L2@K7ElG3P%(lF$ZBHcYm8z2nbDWK8} zAuS9r|7-Bsd*4sI``GUX4*f6;*Lj}nTxP(7LbQDe@*HipH9X+YmNYH^wt+!EiB%s^G)&0WK+Y(@3p>MBE|3%w% z|E(xJ-=&C{f%YpefUIi``$xY@aMR87`^B4yi4EqiV>p%JQ?mx+lVhWPcqw^!$NX>O zktD}!0%BXQ6K~~j8Gqk%HsgqBw>&x{Hd<9tvB~jkw)v_Gd<^R%1wIBE`AP!cDX{7x zr+--i_a?U(4!RG5#q@1L*rJ(YMaYS~7xxo@pyoHzypN_7-T(mR*p?7*ri@#bK3SCp zfUC347XiPc_L<>hZ^^7Eaw9@zh=I8@3Gnng%!?L4B@$)PWCj9&X2n`){CG6o2`BJw z_l?U1Aj3aD@-Q5UHCjF-x%%r%_RjN44f;UoH-~+L(7NYnisC*9-t;s zWK%XNyGl!+hu%{H?gu1;;018cEt-u(XbRa~VG_1%lKvTa27nh$0i2 zR5-{d)OSsymu{nT^yk=NxTVALYpa*d>!KVXR1ZrFi{BD_tn9l61o4}u(z#`5c7#b} z)p$%7XI7cvPF@{&ZzYyq0QUM~4Cw=>;IW0}b11b=meo?zY#`|DQ#cUhE5dgXp#AMw zd?S=?PXoWx^@eAy=EgSwN{-D)LK(GjSKwoZOY;rj*YqjF1)yboB6-vwx7`^Vf9OpE zo?CIz(pTV#r$4y=`>>=%a*3n1?j}9rEB$-EvUJ?8!ZizBw1CVgYiMnzj|pT;`nkLl z9h%mN<(A(16oP1rVhizh#rNK$EosXcit^4c1K*8+c{J>=ghGj|s01%rk4U?R$P1UK8Qtlgc);{Z>~!Xk1dW~3 zH@ia^Z7oPY$ur4>5G_7|0N=YVG73kil0t_H z6RwqC1O&Z0Pv;t+bKL;U@1w{<2I%~k30R7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b#+pC&S6;W3`hJZ`(8tGeN=O(hvZa8-G*dZW09m%jy1Dh`oxJBR;I{XMF$&XGCZEK2%;`HP`l%Npciy!3#%OD{X>h0$?ss$Md_nj~B zhBY9SVhm$iy$3lv2k9dM@M$-8{aMV)M8n8{&_H;RVemlEFBjY#tIup5-eDm;6Q}LR zlI0(}Ll?@! j1s>7L&A)u+SJrG%G<(NHUbqQVh(ZvqC>MrP@DINMP!#|n literal 0 HcmV?d00001 diff --git a/NPCs/Leviathan/SirenStabbing.png b/NPCs/Leviathan/SirenStabbing.png new file mode 100644 index 0000000000000000000000000000000000000000..5fbf48baf5784886aa3705720da06dee37bb6ca6 GIT binary patch literal 22531 zcmbTecUV*Hw(dOvyCPkr3xwV~2#5*@0TDy*AiYJT_wrhR&%pC}PuqrCpw@^jG(Da(|KWJ|}%q%YFXav|CT1#}gMWj&&EQ90uti z1`B%n8y7piRG5oBB;mb4P67>LJUSIxuBlm`bih^Z5USY)oH>r0IP^DFrnJa*(7W~t z5eWQupR!HO7gbE(R2(o7OF+=YToC{$$)MJhAKXZjlLLbMmzJb3`o3%NjUH}#`vRO9 zWXT=`K(wh$>W@0c_ow1YW50p?KE!`)DN4{i4@eXa=N3x5nBpUC@y)*PNABmIbxuotOSVJT%T9wZq$nT z=#S3p7=HlJV02yA(~Vx(yA5t2Tog2eIo}5i&|_;Y?VcmI4BI@WPY)D&7zSy`H1r`B2aMDFa#cB>(%c=W47B=c^&xRh}#|Cg%mo)`XyZC zI3xgGU6ng?^hB98ar98Jv9FO-)!E3X@0eZ!(&;FjR&2A5$2%iy%c^bDtW)L6&R#br z3h)(}Go3-us zmSd%zX|PT{x{&dy&p}Pv>vQV&CS88jxSfV%+xkR~9JbEO$9}?CHS()*##uXdu+6Bfizi(8za`VPezG;Am z!XOS@0-r}r^=^P6D#=TKkgp!E%)i^cEo|~ujfa-B%z40(Ca7|EF9$F?(n+}rhhq2< zcjI{Z$bWwe?<4@QD%KZ)U%$IEzhdLw@8k&(0x$Is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fo.playerSafe || (!CalamityWorld.downedHiveMind && !CalamityWorld.downedPerforator) || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/AngryDog.cs b/NPCs/NormalNPCs/AngryDog.cs index 9d9b595b91..7accef5bfb 100644 --- a/NPCs/NormalNPCs/AngryDog.cs +++ b/NPCs/NormalNPCs/AngryDog.cs @@ -40,6 +40,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 3, 0); npc.HitSound = mod.GetLegacySoundSlot(SoundType.NPCHit, "Sounds/NPCHit/AngryDogHit"); npc.DeathSound = SoundID.NPCDeath5; + banner = npc.type; + bannerItem = mod.ItemType("AngryDogBanner"); } public override void AI() @@ -379,13 +381,6 @@ namespace CalamityMod.NPCs.NormalNPCs { npc.ai[3] = 0f; } - if (npc.type == 155) - { - if (npc.velocity.Y == 0f && num40 < 100f && Math.Abs(npc.velocity.X) > 3f && ((npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) && npc.velocity.X > 0f) || (npc.position.X + (float)(npc.width / 2) > Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) && npc.velocity.X < 0f))) - { - npc.velocity.Y = npc.velocity.Y - 4f; - } - } if (npc.ai[3] < (float)num19) { npc.TargetClosest(true); @@ -419,17 +414,6 @@ namespace CalamityMod.NPCs.NormalNPCs float num70 = 0.07f; if (!flag19&& (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction < 0) || (npc.velocity.X >= 0f && npc.direction > 0))) { - if (npc.type == 155) - { - if (npc.velocity.X > 0f && npc.direction < 0) - { - npc.velocity.X = npc.velocity.X * 0.95f; - } - if (npc.velocity.X < 0f && npc.direction > 0) - { - npc.velocity.X = npc.velocity.X * 0.95f; - } - } if (npc.velocity.X < -num6 || npc.velocity.X > num6) { if (npc.velocity.Y == 0f) @@ -634,7 +618,8 @@ namespace CalamityMod.NPCs.NormalNPCs !spawnInfo.player.ZoneTowerVortex && !spawnInfo.player.ZoneTowerNebula && !spawnInfo.player.ZoneDungeon && - !spawnInfo.playerInTown && !spawnInfo.player.ZoneOldOneArmy && !Main.snowMoon && !Main.pumpkinMoon ? 0.012f : 0f; + !spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && + !spawnInfo.playerInTown && !spawnInfo.player.ZoneOldOneArmy && !Main.snowMoon && !Main.pumpkinMoon ? 0.012f : 0f; } public override void OnHitPlayer(Player player, int damage, bool crit) diff --git a/NPCs/NormalNPCs/ArmoredDiggerBody.cs b/NPCs/NormalNPCs/ArmoredDiggerBody.cs index a08c2e2a1b..9493d379a8 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerBody.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerBody.cs @@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 38; //324 npc.height = 38; //216 npc.defense = 40; - npc.lifeMax = 30000; + npc.lifeMax = 20000; npc.knockBackResist = 0f; npc.aiStyle = -1; aiType = -1; @@ -39,6 +39,8 @@ namespace CalamityMod.NPCs.NormalNPCs } npc.netAlways = true; npc.dontCountMe = true; + banner = mod.NPCType("ArmoredDiggerHead"); + bannerItem = mod.ItemType("ArmoredDiggerBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/NormalNPCs/ArmoredDiggerHead.cs b/NPCs/NormalNPCs/ArmoredDiggerHead.cs index c5f070b9a1..3ea0aa6e94 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerHead.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerHead.cs @@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 54; //324 npc.height = 54; //216 npc.defense = 15; - npc.lifeMax = 30000; + npc.lifeMax = 20000; npc.knockBackResist = 0f; npc.aiStyle = -1; aiType = -1; @@ -42,6 +42,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[k] = true; } npc.netAlways = true; + banner = npc.type; + bannerItem = mod.ItemType("ArmoredDiggerBanner"); } public override void AI() diff --git a/NPCs/NormalNPCs/ArmoredDiggerTail.cs b/NPCs/NormalNPCs/ArmoredDiggerTail.cs index 65552d9f32..1ba3d4d52c 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerTail.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerTail.cs @@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.width = 34; //324 npc.height = 34; //216 npc.defense = 55; - npc.lifeMax = 30000; + npc.lifeMax = 20000; npc.knockBackResist = 0f; npc.aiStyle = -1; aiType = -1; @@ -39,6 +39,8 @@ namespace CalamityMod.NPCs.NormalNPCs } npc.netAlways = true; npc.dontCountMe = true; + banner = mod.NPCType("ArmoredDiggerHead"); + bannerItem = mod.ItemType("ArmoredDiggerBanner"); } public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) diff --git a/NPCs/NormalNPCs/BlightedEye.cs b/NPCs/NormalNPCs/BlightedEye.cs index 20cdf43c7a..2900f0434c 100644 --- a/NPCs/NormalNPCs/BlightedEye.cs +++ b/NPCs/NormalNPCs/BlightedEye.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 2, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("BlightedEyeBanner"); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/NormalNPCs/BloomSlime.cs b/NPCs/NormalNPCs/BloomSlime.cs index 64feebdf0c..530a457ede 100644 --- a/NPCs/NormalNPCs/BloomSlime.cs +++ b/NPCs/NormalNPCs/BloomSlime.cs @@ -35,11 +35,14 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noTileCollide = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("BloomSlimeBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !CalamityWorld.downedProvidence || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || !CalamityWorld.downedProvidence || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/Bohldohr.cs b/NPCs/NormalNPCs/Bohldohr.cs index 105fb862ce..82cfecb29f 100644 --- a/NPCs/NormalNPCs/Bohldohr.cs +++ b/NPCs/NormalNPCs/Bohldohr.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit7; npc.DeathSound = SoundID.NPCDeath35; npc.behindTiles = true; + banner = npc.type; + bannerItem = mod.ItemType("BOHLDOHRBanner"); } public override void AI() diff --git a/NPCs/NormalNPCs/Bohldohr.png b/NPCs/NormalNPCs/Bohldohr.png index 7269c0c06f0d63a7fa1c4742c2f874f3db19f218..c4e28552a9ed9cc4caa605ae57cae9b4b3ff5373 100644 GIT binary patch literal 1247 zcmV<51R(o~P)?0c4pceKk3u-M1Ve4s#OR6V`UkN@+eglF`soV z=EQe2f-f$-ApK04dAM;mztDaEK)subV)HBC2=ba?sINp15z9)Wf&9m2r|nHpWiO!khI_40hpLg1`tI=R0jA8&|{gam!y69mRMFT z*ozawHtH+NR%7p;1E6*$ChPxJ_U0>MT}1J7FqQZhCjppo8N^opk;Ion{^rkIi3$Ls_mVtsFKf=UDWGlMY!$jH6uJfU*IBkv=$?SKi z^u-kbK7Q>c0H0p-eL*9ww3n&|1? zz5cnxi)=<$7<{nULsZ&|j3R}5s&DinyU5pN$po_dlJlw0&ZMML+;kftGKh33ps#lC zz(EV?9<^*@&!xJN+SDZ)FBAz|L5BIp{p>i<%Lty_{srj8kLa`3bX-pMR*Tz$3_da% zUsRN>EWc~c6c#m<-PCt%oulLF^XI&Ntqk=x03uc)9yrQSUzv`N0Z^_#@n|IM%vSff z-P>zVII5+lOr`|Z}yn<%yHkM2C`RQ`8w z+(v#Ci*(q%O5gpA_a7pINNBEQ?;-jS3PZ622jh(O6=f+!PDK&Wvtg~-ZQT(j(MQBe z*iDflr53x3u$Yh7ML)4< z>&pIsN0d*_r2UNSJD{FcPZ!4!kK=2nc9$Je5O8sBc`DlR>%V;T`pdsoM0rP@^Yl3p zHz!hT#&8uDoYyFSOvlysbYEE_9u^{!~-_9kx4D~%cP8E8t;qMh{c002*NU&fsiIlMc^`7)Mu6Kg@AfzYhYlKCx1GL8ugduCoZ z|D<&T>j_E8miOP=n+4v_HBR1CX8p$NTI3Z21#y*2Zz@EK%J*jtx|ir*Ha}{}v0_K+?DGttdkR~PSw8L9#_Tg+@)_eZNtZIgMO*HzX-{7!Apza0ju2wt^I;TzlWZmhh&c1)`3!6i?hU!%Lhd12()@t5e^U|I{OV~_i zD*MA5ex11w_BXsN_EhX{U9zaU(kh2(nI=o_R4s{ZE#}7`DQwWOlF0rVr}{nZPvV1r f1^-h&WIte5O4ZJ++orS}7)K1Au6{1-oD!M<=#k!2 diff --git a/NPCs/NormalNPCs/CalamityEye.cs b/NPCs/NormalNPCs/CalamityEye.cs index 0d731e5749..15a35785a3 100644 --- a/NPCs/NormalNPCs/CalamityEye.cs +++ b/NPCs/NormalNPCs/CalamityEye.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 5, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("CalamityEyeBanner"); } public override void HitEffect(int hitDirection, double damage) @@ -65,11 +67,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CalamityDust")); - } - if (Main.rand.Next(3) == 0) + if (Main.rand.Next(2) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BlightedLens")); } diff --git a/NPCs/NormalNPCs/CharredSlime.cs b/NPCs/NormalNPCs/CharredSlime.cs index d63af40461..5fcfc0604f 100644 --- a/NPCs/NormalNPCs/CharredSlime.cs +++ b/NPCs/NormalNPCs/CharredSlime.cs @@ -35,6 +35,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noTileCollide = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("CharredSlimeBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) diff --git a/NPCs/NormalNPCs/Cnidrion.cs b/NPCs/NormalNPCs/Cnidrion.cs index 33b449d2a7..0d667b903a 100644 --- a/NPCs/NormalNPCs/Cnidrion.cs +++ b/NPCs/NormalNPCs/Cnidrion.cs @@ -33,11 +33,13 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit12; npc.DeathSound = SoundID.NPCDeath18; npc.rarity = 2; + banner = npc.type; + bannerItem = mod.ItemType("CnidrionBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CosmicElemental.cs b/NPCs/NormalNPCs/CosmicElemental.cs index f18cc2173d..c29d173542 100644 --- a/NPCs/NormalNPCs/CosmicElemental.cs +++ b/NPCs/NormalNPCs/CosmicElemental.cs @@ -32,11 +32,13 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 3, 0); npc.HitSound = SoundID.NPCHit7; npc.DeathSound = SoundID.NPCDeath6; + banner = npc.type; + bannerItem = mod.ItemType("CnidrionBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerAmber.cs b/NPCs/NormalNPCs/CrawlerAmber.cs index 48cd199fa9..fdaa706841 100644 --- a/NPCs/NormalNPCs/CrawlerAmber.cs +++ b/NPCs/NormalNPCs/CrawlerAmber.cs @@ -12,6 +12,8 @@ namespace CalamityMod.NPCs.NormalNPCs { public class CrawlerAmber : ModNPC { + private bool detected = false; + public override void SetStaticDefaults() { DisplayName.SetDefault("Amber Crawler"); @@ -21,23 +23,217 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetDefaults() { npc.npcSlots = 0.3f; - npc.aiStyle = 3; + npc.aiStyle = -1; + aiType = -1; npc.damage = 25; npc.width = 44; //324 npc.height = 34; //216 npc.defense = 18; - npc.lifeMax = 60; + npc.lifeMax = 90; npc.knockBackResist = 0.3f; - animationType = 257; - aiType = NPCID.AnomuraFungus; npc.value = Item.buyPrice(0, 0, 0, 80); - npc.HitSound = SoundID.NPCHit1; + npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; + banner = npc.type; + bannerItem = mod.ItemType("AmberCrawlerBanner"); + } + + public override void FindFrame(int frameHeight) + { + if (!detected) + { + npc.frame.Y = frameHeight * 4; + npc.frameCounter = 0.0; + return; + } + npc.spriteDirection = -npc.direction; + npc.frameCounter += (double)(npc.velocity.Length() / 8f); + if (npc.frameCounter > 2.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 3) + { + npc.frame.Y = 0; + } + } + + public override void AI() + { + if (!detected) + npc.TargetClosest(true); + if (((Main.player[npc.target].Center - npc.Center).Length() < 100f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, + Main.player[npc.target].width, Main.player[npc.target].height)) || npc.justHit) + detected = true; + if (!detected) + return; + int num19 = 30; + int num20 = 10; + bool flag19 = false; + bool flag20 = false; + bool flag30 = false; + if (npc.velocity.Y == 0f && ((npc.velocity.X > 0f && npc.direction > 0) || (npc.velocity.X < 0f && npc.direction < 0))) + { + flag20 = true; + npc.ai[3] += 1f; + } + if ((npc.position.X == npc.oldPosition.X || npc.ai[3] >= (float)num19) | flag20) + { + npc.ai[3] += 1f; + flag30 = true; + } + else if (npc.ai[3] > 0f) + { + npc.ai[3] -= 1f; + } + if (npc.ai[3] > (float)(num19 * num20)) + { + npc.ai[3] = 0f; + } + if (npc.justHit) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] == (float)num19) + { + npc.netUpdate = true; + } + Vector2 vector19 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float arg_31B_0 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector19.X; + float num30 = Main.player[npc.target].position.Y - vector19.Y; + float num40 = (float)Math.Sqrt((double)(arg_31B_0 * arg_31B_0 + num30 * num30)); + if (num40 < 200f && !flag30) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] < (float)num19) + { + npc.TargetClosest(true); + } + else + { + if (npc.velocity.X == 0f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[0] += 1f; + if (npc.ai[0] >= 2f) + { + npc.direction *= -1; + npc.spriteDirection = -npc.direction; + npc.ai[0] = 0f; + } + } + } + else + { + npc.ai[0] = 0f; + } + npc.directionY = -1; + if (npc.direction == 0) + { + npc.direction = 1; + } + } + float num6 = 5f; //5 + float num70 = 0.05f; //0.05 + if (!flag19 && (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction > 0) || (npc.velocity.X >= 0f && npc.direction < 0))) + { + if (npc.velocity.X < -num6 || npc.velocity.X > num6) + { + if (npc.velocity.Y == 0f) + { + npc.velocity *= 0.8f; + } + } + else if (npc.velocity.X < num6 && npc.direction == -1) + { + npc.velocity.X = npc.velocity.X + num70; + if (npc.velocity.X > num6) + { + npc.velocity.X = num6; + } + } + else if (npc.velocity.X > -num6 && npc.direction == 1) + { + npc.velocity.X = npc.velocity.X - num70; + if (npc.velocity.X < -num6) + { + npc.velocity.X = -num6; + } + } + } + if (npc.velocity.Y >= 0f) + { + int num9 = 0; + if (npc.velocity.X < 0f) + { + num9 = -1; + } + if (npc.velocity.X > 0f) + { + num9 = 1; + } + Vector2 position = npc.position; + position.X += npc.velocity.X; + int num10 = (int)((position.X + (float)(npc.width / 2) + (float)((npc.width / 2 + 1) * num9)) / 16f); + int num11 = (int)((position.Y + (float)npc.height - 1f) / 16f); + if (Main.tile[num10, num11] == null) + { + Main.tile[num10, num11] = new Tile(); + } + if (Main.tile[num10, num11 - 1] == null) + { + Main.tile[num10, num11 - 1] = new Tile(); + } + if (Main.tile[num10, num11 - 2] == null) + { + Main.tile[num10, num11 - 2] = new Tile(); + } + if (Main.tile[num10, num11 - 3] == null) + { + Main.tile[num10, num11 - 3] = new Tile(); + } + if (Main.tile[num10, num11 + 1] == null) + { + Main.tile[num10, num11 + 1] = new Tile(); + } + if ((float)(num10 * 16) < position.X + (float)npc.width && (float)(num10 * 16 + 16) > position.X && ((Main.tile[num10, num11].nactive() && !Main.tile[num10, num11].topSlope() && !Main.tile[num10, num11 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num10, num11].type] && !Main.tileSolidTop[(int)Main.tile[num10, num11].type]) || (Main.tile[num10, num11 - 1].halfBrick() && Main.tile[num10, num11 - 1].nactive())) && (!Main.tile[num10, num11 - 1].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 1].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 1].type] || (Main.tile[num10, num11 - 1].halfBrick() && (!Main.tile[num10, num11 - 4].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 4].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 4].type]))) && (!Main.tile[num10, num11 - 2].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 2].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 2].type]) && (!Main.tile[num10, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 3].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 3].type]) && (!Main.tile[num10 - num9, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10 - num9, num11 - 3].type])) + { + float num12 = (float)(num11 * 16); + if (Main.tile[num10, num11].halfBrick()) + { + num12 += 8f; + } + if (Main.tile[num10, num11 - 1].halfBrick()) + { + num12 -= 8f; + } + if (num12 < position.Y + (float)npc.height) + { + float num13 = position.Y + (float)npc.height - num12; + if ((double)num13 <= 16.1) + { + npc.gfxOffY += npc.position.Y + (float)npc.height - num12; + npc.position.Y = num12 - (float)npc.height; + if (num13 < 9f) + { + npc.stepSpeed = 1f; + } + else + { + npc.stepSpeed = 2f; + } + } + } + } + } } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerAmber.png b/NPCs/NormalNPCs/CrawlerAmber.png index bba6d9d22281530f214404c25d50cc93da609448..c2dfa8167fc0327e5084933db3421cba3d554fd9 100644 GIT binary patch literal 1689 zcmb8w|3A|S90%}EDkTqfn$s7TRAUd^`L?n%U!vCdn9;`N=1b=KvQcd$U)yH6$8qvl z)I?$n$(O_2Vb+GMlGWqJNWN_O))C9H=@`0U=l+7b`{Dh1{{H&m_0B#W=xefL{|*2E zOh7*renY#Bd%fLoBRvf8jsRdt1W`UADJ659ZfeMPd$S(6AMm$5jZ#>ZZ#nra%g_2y zCJOT0;8`GKcc{bB)lGFyl%w(QUbEIWMSkdEVesa4R$Y&OMR^}qSXuA($6(6lu6ad_ zq>`qec#_nd4~NpEx;nMQE!m;ty4r2IrytHVEr2$NNs^sNfuqZI@1Jf+mv99f9ciE8 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.frame.Y = 0; + } + } + + public override void AI() + { + if (!detected) + npc.TargetClosest(true); + if (((Main.player[npc.target].Center - npc.Center).Length() < 100f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, + Main.player[npc.target].width, Main.player[npc.target].height)) || npc.justHit) + detected = true; + if (!detected) + return; + int num19 = 30; + int num20 = 10; + bool flag19 = false; + bool flag20 = false; + bool flag30 = false; + if (npc.velocity.Y == 0f && ((npc.velocity.X > 0f && npc.direction > 0) || (npc.velocity.X < 0f && npc.direction < 0))) + { + flag20 = true; + npc.ai[3] += 1f; + } + if ((npc.position.X == npc.oldPosition.X || npc.ai[3] >= (float)num19) | flag20) + { + npc.ai[3] += 1f; + flag30 = true; + } + else if (npc.ai[3] > 0f) + { + npc.ai[3] -= 1f; + } + if (npc.ai[3] > (float)(num19 * num20)) + { + npc.ai[3] = 0f; + } + if (npc.justHit) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] == (float)num19) + { + npc.netUpdate = true; + } + Vector2 vector19 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float arg_31B_0 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector19.X; + float num30 = Main.player[npc.target].position.Y - vector19.Y; + float num40 = (float)Math.Sqrt((double)(arg_31B_0 * arg_31B_0 + num30 * num30)); + if (num40 < 200f && !flag30) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] < (float)num19) + { + npc.TargetClosest(true); + } + else + { + if (npc.velocity.X == 0f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[0] += 1f; + if (npc.ai[0] >= 2f) + { + npc.direction *= -1; + npc.spriteDirection = -npc.direction; + npc.ai[0] = 0f; + } + } + } + else + { + npc.ai[0] = 0f; + } + npc.directionY = -1; + if (npc.direction == 0) + { + npc.direction = 1; + } + } + float num6 = 4.5f; //5 + float num70 = 0.045f; //0.05 + if (!flag19 && (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction > 0) || (npc.velocity.X >= 0f && npc.direction < 0))) + { + if (npc.velocity.X < -num6 || npc.velocity.X > num6) + { + if (npc.velocity.Y == 0f) + { + npc.velocity *= 0.8f; + } + } + else if (npc.velocity.X < num6 && npc.direction == -1) + { + npc.velocity.X = npc.velocity.X + num70; + if (npc.velocity.X > num6) + { + npc.velocity.X = num6; + } + } + else if (npc.velocity.X > -num6 && npc.direction == 1) + { + npc.velocity.X = npc.velocity.X - num70; + if (npc.velocity.X < -num6) + { + npc.velocity.X = -num6; + } + } + } + if (npc.velocity.Y >= 0f) + { + int num9 = 0; + if (npc.velocity.X < 0f) + { + num9 = -1; + } + if (npc.velocity.X > 0f) + { + num9 = 1; + } + Vector2 position = npc.position; + position.X += npc.velocity.X; + int num10 = (int)((position.X + (float)(npc.width / 2) + (float)((npc.width / 2 + 1) * num9)) / 16f); + int num11 = (int)((position.Y + (float)npc.height - 1f) / 16f); + if (Main.tile[num10, num11] == null) + { + Main.tile[num10, num11] = new Tile(); + } + if (Main.tile[num10, num11 - 1] == null) + { + Main.tile[num10, num11 - 1] = new Tile(); + } + if (Main.tile[num10, num11 - 2] == null) + { + Main.tile[num10, num11 - 2] = new Tile(); + } + if (Main.tile[num10, num11 - 3] == null) + { + Main.tile[num10, num11 - 3] = new Tile(); + } + if (Main.tile[num10, num11 + 1] == null) + { + Main.tile[num10, num11 + 1] = new Tile(); + } + if ((float)(num10 * 16) < position.X + (float)npc.width && (float)(num10 * 16 + 16) > position.X && ((Main.tile[num10, num11].nactive() && !Main.tile[num10, num11].topSlope() && !Main.tile[num10, num11 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num10, num11].type] && !Main.tileSolidTop[(int)Main.tile[num10, num11].type]) || (Main.tile[num10, num11 - 1].halfBrick() && Main.tile[num10, num11 - 1].nactive())) && (!Main.tile[num10, num11 - 1].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 1].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 1].type] || (Main.tile[num10, num11 - 1].halfBrick() && (!Main.tile[num10, num11 - 4].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 4].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 4].type]))) && (!Main.tile[num10, num11 - 2].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 2].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 2].type]) && (!Main.tile[num10, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 3].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 3].type]) && (!Main.tile[num10 - num9, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10 - num9, num11 - 3].type])) + { + float num12 = (float)(num11 * 16); + if (Main.tile[num10, num11].halfBrick()) + { + num12 += 8f; + } + if (Main.tile[num10, num11 - 1].halfBrick()) + { + num12 -= 8f; + } + if (num12 < position.Y + (float)npc.height) + { + float num13 = position.Y + (float)npc.height - num12; + if ((double)num13 <= 16.1) + { + npc.gfxOffY += npc.position.Y + (float)npc.height - num12; + npc.position.Y = num12 - (float)npc.height; + if (num13 < 9f) + { + npc.stepSpeed = 1f; + } + else + { + npc.stepSpeed = 2f; + } + } + } + } + } + } + public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerAmethyst.png b/NPCs/NormalNPCs/CrawlerAmethyst.png index 7d8ccb316ef10ad6628d61aaea47cc3ceb707eb8..d7c1543dda44afd3c602e06e3db660102daf94c6 100644 GIT binary patch literal 1645 zcmV-z29o)SP) zPiP!f9LGPC{gb3=()1rSrh+0^Vxd-wdhimZQWWtZ=)r>0yBF(41o0q9FSQr%f}jWS zD1|}~y^9DURE63?v({p5^S8-nvpXJUf4iBN_cFWbue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JXS6vr6U(LAZ vll`Q-QI9I^4`_GlRQ`=QAQ1gu`2d5^UYq;M%U=Hi=0XNfS3j3^P6 2.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 3) + { + npc.frame.Y = 0; + } + } + + public override void AI() + { + if (!detected) + npc.TargetClosest(true); + if (((Main.player[npc.target].Center - npc.Center).Length() < 100f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, + Main.player[npc.target].width, Main.player[npc.target].height)) || npc.justHit) + detected = true; + if (!detected) + return; + int num19 = 30; + int num20 = 10; + bool flag19 = false; + bool flag20 = false; + bool flag30 = false; + if (npc.velocity.Y == 0f && ((npc.velocity.X > 0f && npc.direction > 0) || (npc.velocity.X < 0f && npc.direction < 0))) + { + flag20 = true; + npc.ai[3] += 1f; + } + if ((npc.position.X == npc.oldPosition.X || npc.ai[3] >= (float)num19) | flag20) + { + npc.ai[3] += 1f; + flag30 = true; + } + else if (npc.ai[3] > 0f) + { + npc.ai[3] -= 1f; + } + if (npc.ai[3] > (float)(num19 * num20)) + { + npc.ai[3] = 0f; + } + if (npc.justHit) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] == (float)num19) + { + npc.netUpdate = true; + } + Vector2 vector19 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float arg_31B_0 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector19.X; + float num30 = Main.player[npc.target].position.Y - vector19.Y; + float num40 = (float)Math.Sqrt((double)(arg_31B_0 * arg_31B_0 + num30 * num30)); + if (num40 < 200f && !flag30) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] < (float)num19) + { + npc.TargetClosest(true); + } + else + { + if (npc.velocity.X == 0f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[0] += 1f; + if (npc.ai[0] >= 2f) + { + npc.direction *= -1; + npc.spriteDirection = -npc.direction; + npc.ai[0] = 0f; + } + } + } + else + { + npc.ai[0] = 0f; + } + npc.directionY = -1; + if (npc.direction == 0) + { + npc.direction = 1; + } + } + float num6 = 7f; //5 + float num70 = 0.07f; //0.05 + if (!flag19 && (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction > 0) || (npc.velocity.X >= 0f && npc.direction < 0))) + { + if (npc.velocity.X < -num6 || npc.velocity.X > num6) + { + if (npc.velocity.Y == 0f) + { + npc.velocity *= 0.8f; + } + } + else if (npc.velocity.X < num6 && npc.direction == -1) + { + npc.velocity.X = npc.velocity.X + num70; + if (npc.velocity.X > num6) + { + npc.velocity.X = num6; + } + } + else if (npc.velocity.X > -num6 && npc.direction == 1) + { + npc.velocity.X = npc.velocity.X - num70; + if (npc.velocity.X < -num6) + { + npc.velocity.X = -num6; + } + } + } + if (npc.velocity.Y >= 0f) + { + int num9 = 0; + if (npc.velocity.X < 0f) + { + num9 = -1; + } + if (npc.velocity.X > 0f) + { + num9 = 1; + } + Vector2 position = npc.position; + position.X += npc.velocity.X; + int num10 = (int)((position.X + (float)(npc.width / 2) + (float)((npc.width / 2 + 1) * num9)) / 16f); + int num11 = (int)((position.Y + (float)npc.height - 1f) / 16f); + if (Main.tile[num10, num11] == null) + { + Main.tile[num10, num11] = new Tile(); + } + if (Main.tile[num10, num11 - 1] == null) + { + Main.tile[num10, num11 - 1] = new Tile(); + } + if (Main.tile[num10, num11 - 2] == null) + { + Main.tile[num10, num11 - 2] = new Tile(); + } + if (Main.tile[num10, num11 - 3] == null) + { + Main.tile[num10, num11 - 3] = new Tile(); + } + if (Main.tile[num10, num11 + 1] == null) + { + Main.tile[num10, num11 + 1] = new Tile(); + } + if ((float)(num10 * 16) < position.X + (float)npc.width && (float)(num10 * 16 + 16) > position.X && ((Main.tile[num10, num11].nactive() && !Main.tile[num10, num11].topSlope() && !Main.tile[num10, num11 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num10, num11].type] && !Main.tileSolidTop[(int)Main.tile[num10, num11].type]) || (Main.tile[num10, num11 - 1].halfBrick() && Main.tile[num10, num11 - 1].nactive())) && (!Main.tile[num10, num11 - 1].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 1].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 1].type] || (Main.tile[num10, num11 - 1].halfBrick() && (!Main.tile[num10, num11 - 4].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 4].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 4].type]))) && (!Main.tile[num10, num11 - 2].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 2].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 2].type]) && (!Main.tile[num10, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 3].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 3].type]) && (!Main.tile[num10 - num9, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10 - num9, num11 - 3].type])) + { + float num12 = (float)(num11 * 16); + if (Main.tile[num10, num11].halfBrick()) + { + num12 += 8f; + } + if (Main.tile[num10, num11 - 1].halfBrick()) + { + num12 -= 8f; + } + if (num12 < position.Y + (float)npc.height) + { + float num13 = position.Y + (float)npc.height - num12; + if ((double)num13 <= 16.1) + { + npc.gfxOffY += npc.position.Y + (float)npc.height - num12; + npc.position.Y = num12 - (float)npc.height; + if (num13 < 9f) + { + npc.stepSpeed = 1f; + } + else + { + npc.stepSpeed = 2f; + } + } + } + } + } + } + public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerCrystal.png b/NPCs/NormalNPCs/CrawlerCrystal.png index a52cec199ea717fb909a4be5120a8cce323f9021..57abddbd8aeb48d933e8c7b8004ef36698079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J>YaiEXA0IQHX6Fz}wSLYh5gb~2ciS-&-`M0U+hW^W z4kzwBa!Gf3!=1aG6B(A2%U-&co!nr!?DZGn2^Te8m}dO@d9!p!j)DOb$ICw^Y{3V5 zdF~uL$#D62)!l8SXG@rN%=w|hblg%fUD=iC3yZ=oy9sfjF~@ctyRu_SZgl7|i~eF2 zhW0`xz1U?t)&d|DT!*@wSBt!r`U`p}KJCrfM$xemw|GKu-e7l){a>OT!z#@bRcTfauHA$UW) z`6b4-U1xLO+NI2yWWBYd;kaUO(Q-3&hvgzSI*l2-)`~~#Z;OMtYiG_~y@S4!-g+=> zUHbN@QjFB`kceq~C(2YB*tdSjnSSgiucuBx_Y12{vb+z3HtFbetM2N(t$FM8%Yg6f z+vGR}Iz*N&RjB=|cki$6y>&HJ^CTE2OxG5Sz3Z|sB%mk-`)Rrn(%}D1ugZbxiw&}sb3?kcJ12tqu0E1ZQa#*8U^PXlryZd zNbc1M$>;jMV4EE4gh@JkujQvKe4^xe%ZlT3)@wnA-Mvq5ukF3#aNIg}EvWF7x!8~xxhHq4foxW?q)DL*^Ss<-PB5LFTzP7$GUNAK5zkmeV4<-R95DYT zZ~L5}?qhTy`DR*W-G%M*7#0+XPs;VO6D-sAwrbe+nZrxUYs*x(Qu`atf~+5+?{EEh zC(QTY?X^0Y4EsKvuJ8Zx_MPHaKjsfpdqPgg&ebxsLQ0A^b#a{vGU diff --git a/NPCs/NormalNPCs/CrawlerDiamond.cs b/NPCs/NormalNPCs/CrawlerDiamond.cs index da84404a08..d9a2f74d77 100644 --- a/NPCs/NormalNPCs/CrawlerDiamond.cs +++ b/NPCs/NormalNPCs/CrawlerDiamond.cs @@ -12,6 +12,8 @@ namespace CalamityMod.NPCs.NormalNPCs { public class CrawlerDiamond : ModNPC { + private bool detected = false; + public override void SetStaticDefaults() { DisplayName.SetDefault("Diamond Crawler"); @@ -21,23 +23,217 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetDefaults() { npc.npcSlots = 0.3f; - npc.aiStyle = 3; + npc.aiStyle = -1; npc.damage = 24; npc.width = 44; //324 npc.height = 34; //216 npc.defense = 16; - npc.lifeMax = 100; + npc.lifeMax = 150; npc.knockBackResist = 0.35f; - animationType = 257; - aiType = NPCID.AnomuraFungus; + aiType = -1; npc.value = Item.buyPrice(0, 0, 2, 0); - npc.HitSound = SoundID.NPCHit1; + npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; + banner = npc.type; + bannerItem = mod.ItemType("DiamondCrawlerBanner"); } - + + public override void FindFrame(int frameHeight) + { + if (!detected) + { + npc.frame.Y = frameHeight * 4; + npc.frameCounter = 0.0; + return; + } + npc.spriteDirection = -npc.direction; + npc.frameCounter += (double)(npc.velocity.Length() / 8f); + if (npc.frameCounter > 2.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 3) + { + npc.frame.Y = 0; + } + } + + public override void AI() + { + if (!detected) + npc.TargetClosest(true); + if (((Main.player[npc.target].Center - npc.Center).Length() < 100f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, + Main.player[npc.target].width, Main.player[npc.target].height)) || npc.justHit) + detected = true; + if (!detected) + return; + int num19 = 30; + int num20 = 10; + bool flag19 = false; + bool flag20 = false; + bool flag30 = false; + if (npc.velocity.Y == 0f && ((npc.velocity.X > 0f && npc.direction > 0) || (npc.velocity.X < 0f && npc.direction < 0))) + { + flag20 = true; + npc.ai[3] += 1f; + } + if ((npc.position.X == npc.oldPosition.X || npc.ai[3] >= (float)num19) | flag20) + { + npc.ai[3] += 1f; + flag30 = true; + } + else if (npc.ai[3] > 0f) + { + npc.ai[3] -= 1f; + } + if (npc.ai[3] > (float)(num19 * num20)) + { + npc.ai[3] = 0f; + } + if (npc.justHit) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] == (float)num19) + { + npc.netUpdate = true; + } + Vector2 vector19 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float arg_31B_0 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector19.X; + float num30 = Main.player[npc.target].position.Y - vector19.Y; + float num40 = (float)Math.Sqrt((double)(arg_31B_0 * arg_31B_0 + num30 * num30)); + if (num40 < 200f && !flag30) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] < (float)num19) + { + npc.TargetClosest(true); + } + else + { + if (npc.velocity.X == 0f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[0] += 1f; + if (npc.ai[0] >= 2f) + { + npc.direction *= -1; + npc.spriteDirection = -npc.direction; + npc.ai[0] = 0f; + } + } + } + else + { + npc.ai[0] = 0f; + } + npc.directionY = -1; + if (npc.direction == 0) + { + npc.direction = 1; + } + } + float num6 = 6f; //5 + float num70 = 0.06f; //0.05 + if (!flag19 && (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction > 0) || (npc.velocity.X >= 0f && npc.direction < 0))) + { + if (npc.velocity.X < -num6 || npc.velocity.X > num6) + { + if (npc.velocity.Y == 0f) + { + npc.velocity *= 0.8f; + } + } + else if (npc.velocity.X < num6 && npc.direction == -1) + { + npc.velocity.X = npc.velocity.X + num70; + if (npc.velocity.X > num6) + { + npc.velocity.X = num6; + } + } + else if (npc.velocity.X > -num6 && npc.direction == 1) + { + npc.velocity.X = npc.velocity.X - num70; + if (npc.velocity.X < -num6) + { + npc.velocity.X = -num6; + } + } + } + if (npc.velocity.Y >= 0f) + { + int num9 = 0; + if (npc.velocity.X < 0f) + { + num9 = -1; + } + if (npc.velocity.X > 0f) + { + num9 = 1; + } + Vector2 position = npc.position; + position.X += npc.velocity.X; + int num10 = (int)((position.X + (float)(npc.width / 2) + (float)((npc.width / 2 + 1) * num9)) / 16f); + int num11 = (int)((position.Y + (float)npc.height - 1f) / 16f); + if (Main.tile[num10, num11] == null) + { + Main.tile[num10, num11] = new Tile(); + } + if (Main.tile[num10, num11 - 1] == null) + { + Main.tile[num10, num11 - 1] = new Tile(); + } + if (Main.tile[num10, num11 - 2] == null) + { + Main.tile[num10, num11 - 2] = new Tile(); + } + if (Main.tile[num10, num11 - 3] == null) + { + Main.tile[num10, num11 - 3] = new Tile(); + } + if (Main.tile[num10, num11 + 1] == null) + { + Main.tile[num10, num11 + 1] = new Tile(); + } + if ((float)(num10 * 16) < position.X + (float)npc.width && (float)(num10 * 16 + 16) > position.X && ((Main.tile[num10, num11].nactive() && !Main.tile[num10, num11].topSlope() && !Main.tile[num10, num11 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num10, num11].type] && !Main.tileSolidTop[(int)Main.tile[num10, num11].type]) || (Main.tile[num10, num11 - 1].halfBrick() && Main.tile[num10, num11 - 1].nactive())) && (!Main.tile[num10, num11 - 1].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 1].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 1].type] || (Main.tile[num10, num11 - 1].halfBrick() && (!Main.tile[num10, num11 - 4].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 4].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 4].type]))) && (!Main.tile[num10, num11 - 2].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 2].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 2].type]) && (!Main.tile[num10, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 3].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 3].type]) && (!Main.tile[num10 - num9, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10 - num9, num11 - 3].type])) + { + float num12 = (float)(num11 * 16); + if (Main.tile[num10, num11].halfBrick()) + { + num12 += 8f; + } + if (Main.tile[num10, num11 - 1].halfBrick()) + { + num12 -= 8f; + } + if (num12 < position.Y + (float)npc.height) + { + float num13 = position.Y + (float)npc.height - num12; + if ((double)num13 <= 16.1) + { + npc.gfxOffY += npc.position.Y + (float)npc.height - num12; + npc.position.Y = num12 - (float)npc.height; + if (num13 < 9f) + { + npc.stepSpeed = 1f; + } + else + { + npc.stepSpeed = 2f; + } + } + } + } + } + } + public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerDiamond.png b/NPCs/NormalNPCs/CrawlerDiamond.png index 559879b9e259afbc55a9fdcfd08699394f7b5281..b15cedb34cdf049048ed1016e483d7e9125be807 100644 GIT binary patch literal 1540 zcmV+f2K)JmP)A!zu!WYd(yD1_h$Ib!5V0RIEObF@qj6)>CPowg2RFurJKUHUqGtfe_^;lb7Ucul54)Z?NgzM>mCHNV2b}WZNmSVVyepklsP9SNl;>?m zy`oo6;4mf{!cRz$J}W={^WA+f0^8q^lqF$*q>3+58Ic+q>j79^T5&2$a(+29#^=2a z`S?k;pKD71CdUdujEM@%ODoQZC7aB_!6BQ9|54fqX#Iz&-r6~2uad^ehSNr=~L#f=}`bWyWDq-coLO6pP!ik z;Py}7lx!f0g!<<2Ncxnx(Br-f_=FeB=ab@-N|FE04%O9Bmf)5jm&!Y?xxS{XcA5QG4+`vM>8v~{kIChnP<}#kVlJ; zi?E$sT}^#vGSaT0t|`5Ku{N{aqYZaPA;gzxr49Oe`vF*4cN36ABmu2<*%rj|Yo=F??Oxl=d(#AZKHd~1<&MpAZbgCJ6a-Jzf ze2Gp@q~@+>tTD5q*oyu3Ol*$rvdS3WYM$JAM|--qK0Z0>zrAD<@=SU4giyju|I8!+ zV-r6+$Ky$~T63p`pZNHngXwH{vEY2O@g$mO?yg+C>@*134)I4qDESIJlS4F#2F;x$ z*?jtWAe?}2@UFhm59IqM@l0iStjOj}A#)dUoq6QB&@#+k+$+wz%w5RL)h4wGz!i0H=pTHlySA}gDJEmK#M&Psj5=GQw>o35uWuchm!y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d2ednND*whD5QzS-e1Jh{ug!hsWv_n$b0LGLtDnm{r-UW|BAM}k diff --git a/NPCs/NormalNPCs/CrawlerEmerald.cs b/NPCs/NormalNPCs/CrawlerEmerald.cs index 0f76fb97c0..061e466842 100644 --- a/NPCs/NormalNPCs/CrawlerEmerald.cs +++ b/NPCs/NormalNPCs/CrawlerEmerald.cs @@ -12,6 +12,8 @@ namespace CalamityMod.NPCs.NormalNPCs { public class CrawlerEmerald : ModNPC { + private bool detected = false; + public override void SetStaticDefaults() { DisplayName.SetDefault("Emerald Crawler"); @@ -21,23 +23,217 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetDefaults() { npc.npcSlots = 0.3f; - npc.aiStyle = 3; + npc.aiStyle = -1; npc.damage = 20; npc.width = 44; //324 npc.height = 34; //216 npc.defense = 12; - npc.lifeMax = 70; + npc.lifeMax = 105; npc.knockBackResist = 0.55f; - animationType = 257; - aiType = NPCID.AnomuraFungus; + aiType = -1; npc.value = Item.buyPrice(0, 0, 1, 0); - npc.HitSound = SoundID.NPCHit1; + npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; + banner = npc.type; + bannerItem = mod.ItemType("EmeraldCrawlerBanner"); } - + + public override void FindFrame(int frameHeight) + { + if (!detected) + { + npc.frame.Y = frameHeight * 4; + npc.frameCounter = 0.0; + return; + } + npc.spriteDirection = -npc.direction; + npc.frameCounter += (double)(npc.velocity.Length() / 8f); + if (npc.frameCounter > 2.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 3) + { + npc.frame.Y = 0; + } + } + + public override void AI() + { + if (!detected) + npc.TargetClosest(true); + if (((Main.player[npc.target].Center - npc.Center).Length() < 100f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, + Main.player[npc.target].width, Main.player[npc.target].height)) || npc.justHit) + detected = true; + if (!detected) + return; + int num19 = 30; + int num20 = 10; + bool flag19 = false; + bool flag20 = false; + bool flag30 = false; + if (npc.velocity.Y == 0f && ((npc.velocity.X > 0f && npc.direction > 0) || (npc.velocity.X < 0f && npc.direction < 0))) + { + flag20 = true; + npc.ai[3] += 1f; + } + if ((npc.position.X == npc.oldPosition.X || npc.ai[3] >= (float)num19) | flag20) + { + npc.ai[3] += 1f; + flag30 = true; + } + else if (npc.ai[3] > 0f) + { + npc.ai[3] -= 1f; + } + if (npc.ai[3] > (float)(num19 * num20)) + { + npc.ai[3] = 0f; + } + if (npc.justHit) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] == (float)num19) + { + npc.netUpdate = true; + } + Vector2 vector19 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float arg_31B_0 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector19.X; + float num30 = Main.player[npc.target].position.Y - vector19.Y; + float num40 = (float)Math.Sqrt((double)(arg_31B_0 * arg_31B_0 + num30 * num30)); + if (num40 < 200f && !flag30) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] < (float)num19) + { + npc.TargetClosest(true); + } + else + { + if (npc.velocity.X == 0f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[0] += 1f; + if (npc.ai[0] >= 2f) + { + npc.direction *= -1; + npc.spriteDirection = -npc.direction; + npc.ai[0] = 0f; + } + } + } + else + { + npc.ai[0] = 0f; + } + npc.directionY = -1; + if (npc.direction == 0) + { + npc.direction = 1; + } + } + float num6 = 5.5f; //5 + float num70 = 0.055f; //0.05 + if (!flag19 && (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction > 0) || (npc.velocity.X >= 0f && npc.direction < 0))) + { + if (npc.velocity.X < -num6 || npc.velocity.X > num6) + { + if (npc.velocity.Y == 0f) + { + npc.velocity *= 0.8f; + } + } + else if (npc.velocity.X < num6 && npc.direction == -1) + { + npc.velocity.X = npc.velocity.X + num70; + if (npc.velocity.X > num6) + { + npc.velocity.X = num6; + } + } + else if (npc.velocity.X > -num6 && npc.direction == 1) + { + npc.velocity.X = npc.velocity.X - num70; + if (npc.velocity.X < -num6) + { + npc.velocity.X = -num6; + } + } + } + if (npc.velocity.Y >= 0f) + { + int num9 = 0; + if (npc.velocity.X < 0f) + { + num9 = -1; + } + if (npc.velocity.X > 0f) + { + num9 = 1; + } + Vector2 position = npc.position; + position.X += npc.velocity.X; + int num10 = (int)((position.X + (float)(npc.width / 2) + (float)((npc.width / 2 + 1) * num9)) / 16f); + int num11 = (int)((position.Y + (float)npc.height - 1f) / 16f); + if (Main.tile[num10, num11] == null) + { + Main.tile[num10, num11] = new Tile(); + } + if (Main.tile[num10, num11 - 1] == null) + { + Main.tile[num10, num11 - 1] = new Tile(); + } + if (Main.tile[num10, num11 - 2] == null) + { + Main.tile[num10, num11 - 2] = new Tile(); + } + if (Main.tile[num10, num11 - 3] == null) + { + Main.tile[num10, num11 - 3] = new Tile(); + } + if (Main.tile[num10, num11 + 1] == null) + { + Main.tile[num10, num11 + 1] = new Tile(); + } + if ((float)(num10 * 16) < position.X + (float)npc.width && (float)(num10 * 16 + 16) > position.X && ((Main.tile[num10, num11].nactive() && !Main.tile[num10, num11].topSlope() && !Main.tile[num10, num11 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num10, num11].type] && !Main.tileSolidTop[(int)Main.tile[num10, num11].type]) || (Main.tile[num10, num11 - 1].halfBrick() && Main.tile[num10, num11 - 1].nactive())) && (!Main.tile[num10, num11 - 1].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 1].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 1].type] || (Main.tile[num10, num11 - 1].halfBrick() && (!Main.tile[num10, num11 - 4].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 4].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 4].type]))) && (!Main.tile[num10, num11 - 2].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 2].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 2].type]) && (!Main.tile[num10, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 3].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 3].type]) && (!Main.tile[num10 - num9, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10 - num9, num11 - 3].type])) + { + float num12 = (float)(num11 * 16); + if (Main.tile[num10, num11].halfBrick()) + { + num12 += 8f; + } + if (Main.tile[num10, num11 - 1].halfBrick()) + { + num12 -= 8f; + } + if (num12 < position.Y + (float)npc.height) + { + float num13 = position.Y + (float)npc.height - num12; + if ((double)num13 <= 16.1) + { + npc.gfxOffY += npc.position.Y + (float)npc.height - num12; + npc.position.Y = num12 - (float)npc.height; + if (num13 < 9f) + { + npc.stepSpeed = 1f; + } + else + { + npc.stepSpeed = 2f; + } + } + } + } + } + } + public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerEmerald.png b/NPCs/NormalNPCs/CrawlerEmerald.png index 6d4fd6ad5980e7f891b0e1b5e8cf5b2f9e612ba9..e54bcd48b82625f65424ad58afff17887a5aa2fe 100644 GIT binary patch literal 1659 zcmV->288*EP)7{hjaHox^gXd|Ar^|W;E#z9oYZbNdO+-uL4l7Edx-SS;{RRN+NXLS6eJWHWft93+SeVVO$RA9m0GG~x48V!g7uqHp zO`^eGzbc^=;I&t`0&wQ=TL7FmeZe`$(B1(6Dnq?#nHQETbmF6zbI;qir6+-vJ`qi# zg>6)jzxdO0-#Pn-cJ=`i62E`8ohS{ch-f@2@mQg~P{p0V@efa-AaQ_mhn#(Ppprd%2MF7dqQA8u&=E zBi?aoyQ@YG2mf{AZKFPtl=RL}k}?_y(l%v$3?=ImO7i&`M*>ET@6*&lzRep_m3dlx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mga6&R%mz5VA=5d`0;HIH#R!(DwI4o zRE@q?*HEH=dCR)fhu*OiSQV-;eYX_YK2eJC8bin1xC^!OEPGEkEiBZ!UOI2%k(;mY za2&`rIj}feBf^Ex;rfRMIuTE%Y_iYnWiUJBnkRSLg=J%A+~Y&vm~V)DT6!_%m0#rN zuXYT#-L$st{pS4PYg~hS>-r7rfBwo~kb0k8S!?qkQj(V=nja4T$8Xcy_+gXo#xI-J zzFc$S+wF#!Qr~TsGu3YIX6+ukDVw;`~^G>+mH}ApgTM)_I>V zSe(Dm$(Yr-Zt~kShUF6y6Md(ZNT1ex`?O%iZ|mrM7LG*+wlH0)KmYXZ{zq@0ZvJqD zt-)@c%C2plUMFRk9~^$Y__UWC&-9dE=X>KAg5S=Hd0rG**Ybr~ru}IDx?Ywk@-knu zlNl3VBj7~N&o&cV548ErU}p%Pv)Dy!m3eEmcyvCKhKl!kUExTLoiCPb;nUsNz1E!J zlgYIB?S4@%m;V}hy!#X&#qiZcY+;tBjH{5lae};9d^oqy^-B?Do-$_}!Y@Z?foLE< zuIQ=TfyE}%j8W`OeEok?S=`x{muwY!w|UOL|8&io!RKApCf}3lO8%)Y**BEPEu0dN zw9;hR@2fIBY7R4h<#j&anZ-4K`KB+7Q%blVRYQ{aE v>?hrgdQ@qDK)X|?@^8!mf$0Cr2N;C*+T2%O_WBnv7czLd`njxgN@xNA6kqLK diff --git a/NPCs/NormalNPCs/CrawlerRuby.cs b/NPCs/NormalNPCs/CrawlerRuby.cs index 35a9ad3f63..48f73f4791 100644 --- a/NPCs/NormalNPCs/CrawlerRuby.cs +++ b/NPCs/NormalNPCs/CrawlerRuby.cs @@ -12,6 +12,8 @@ namespace CalamityMod.NPCs.NormalNPCs { public class CrawlerRuby : ModNPC { + private bool detected = false; + public override void SetStaticDefaults() { DisplayName.SetDefault("Ruby Crawler"); @@ -21,23 +23,217 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetDefaults() { npc.npcSlots = 0.3f; - npc.aiStyle = 3; + npc.aiStyle = -1; npc.damage = 23; npc.width = 44; //324 npc.height = 34; //216 npc.defense = 14; - npc.lifeMax = 90; + npc.lifeMax = 135; npc.knockBackResist = 0.45f; - animationType = 257; - aiType = NPCID.AnomuraFungus; + aiType = -1; npc.value = Item.buyPrice(0, 0, 1, 0); - npc.HitSound = SoundID.NPCHit1; + npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; + banner = npc.type; + bannerItem = mod.ItemType("RubyCrawlerBanner"); } - + + public override void FindFrame(int frameHeight) + { + if (!detected) + { + npc.frame.Y = frameHeight * 4; + npc.frameCounter = 0.0; + return; + } + npc.spriteDirection = -npc.direction; + npc.frameCounter += (double)(npc.velocity.Length() / 8f); + if (npc.frameCounter > 2.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 3) + { + npc.frame.Y = 0; + } + } + + public override void AI() + { + if (!detected) + npc.TargetClosest(true); + if (((Main.player[npc.target].Center - npc.Center).Length() < 100f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, + Main.player[npc.target].width, Main.player[npc.target].height)) || npc.justHit) + detected = true; + if (!detected) + return; + int num19 = 30; + int num20 = 10; + bool flag19 = false; + bool flag20 = false; + bool flag30 = false; + if (npc.velocity.Y == 0f && ((npc.velocity.X > 0f && npc.direction > 0) || (npc.velocity.X < 0f && npc.direction < 0))) + { + flag20 = true; + npc.ai[3] += 1f; + } + if ((npc.position.X == npc.oldPosition.X || npc.ai[3] >= (float)num19) | flag20) + { + npc.ai[3] += 1f; + flag30 = true; + } + else if (npc.ai[3] > 0f) + { + npc.ai[3] -= 1f; + } + if (npc.ai[3] > (float)(num19 * num20)) + { + npc.ai[3] = 0f; + } + if (npc.justHit) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] == (float)num19) + { + npc.netUpdate = true; + } + Vector2 vector19 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float arg_31B_0 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector19.X; + float num30 = Main.player[npc.target].position.Y - vector19.Y; + float num40 = (float)Math.Sqrt((double)(arg_31B_0 * arg_31B_0 + num30 * num30)); + if (num40 < 200f && !flag30) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] < (float)num19) + { + npc.TargetClosest(true); + } + else + { + if (npc.velocity.X == 0f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[0] += 1f; + if (npc.ai[0] >= 2f) + { + npc.direction *= -1; + npc.spriteDirection = -npc.direction; + npc.ai[0] = 0f; + } + } + } + else + { + npc.ai[0] = 0f; + } + npc.directionY = -1; + if (npc.direction == 0) + { + npc.direction = 1; + } + } + float num6 = 6f; //5 + float num70 = 0.06f; //0.05 + if (!flag19 && (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction > 0) || (npc.velocity.X >= 0f && npc.direction < 0))) + { + if (npc.velocity.X < -num6 || npc.velocity.X > num6) + { + if (npc.velocity.Y == 0f) + { + npc.velocity *= 0.8f; + } + } + else if (npc.velocity.X < num6 && npc.direction == -1) + { + npc.velocity.X = npc.velocity.X + num70; + if (npc.velocity.X > num6) + { + npc.velocity.X = num6; + } + } + else if (npc.velocity.X > -num6 && npc.direction == 1) + { + npc.velocity.X = npc.velocity.X - num70; + if (npc.velocity.X < -num6) + { + npc.velocity.X = -num6; + } + } + } + if (npc.velocity.Y >= 0f) + { + int num9 = 0; + if (npc.velocity.X < 0f) + { + num9 = -1; + } + if (npc.velocity.X > 0f) + { + num9 = 1; + } + Vector2 position = npc.position; + position.X += npc.velocity.X; + int num10 = (int)((position.X + (float)(npc.width / 2) + (float)((npc.width / 2 + 1) * num9)) / 16f); + int num11 = (int)((position.Y + (float)npc.height - 1f) / 16f); + if (Main.tile[num10, num11] == null) + { + Main.tile[num10, num11] = new Tile(); + } + if (Main.tile[num10, num11 - 1] == null) + { + Main.tile[num10, num11 - 1] = new Tile(); + } + if (Main.tile[num10, num11 - 2] == null) + { + Main.tile[num10, num11 - 2] = new Tile(); + } + if (Main.tile[num10, num11 - 3] == null) + { + Main.tile[num10, num11 - 3] = new Tile(); + } + if (Main.tile[num10, num11 + 1] == null) + { + Main.tile[num10, num11 + 1] = new Tile(); + } + if ((float)(num10 * 16) < position.X + (float)npc.width && (float)(num10 * 16 + 16) > position.X && ((Main.tile[num10, num11].nactive() && !Main.tile[num10, num11].topSlope() && !Main.tile[num10, num11 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num10, num11].type] && !Main.tileSolidTop[(int)Main.tile[num10, num11].type]) || (Main.tile[num10, num11 - 1].halfBrick() && Main.tile[num10, num11 - 1].nactive())) && (!Main.tile[num10, num11 - 1].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 1].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 1].type] || (Main.tile[num10, num11 - 1].halfBrick() && (!Main.tile[num10, num11 - 4].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 4].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 4].type]))) && (!Main.tile[num10, num11 - 2].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 2].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 2].type]) && (!Main.tile[num10, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 3].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 3].type]) && (!Main.tile[num10 - num9, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10 - num9, num11 - 3].type])) + { + float num12 = (float)(num11 * 16); + if (Main.tile[num10, num11].halfBrick()) + { + num12 += 8f; + } + if (Main.tile[num10, num11 - 1].halfBrick()) + { + num12 -= 8f; + } + if (num12 < position.Y + (float)npc.height) + { + float num13 = position.Y + (float)npc.height - num12; + if ((double)num13 <= 16.1) + { + npc.gfxOffY += npc.position.Y + (float)npc.height - num12; + npc.position.Y = num12 - (float)npc.height; + if (num13 < 9f) + { + npc.stepSpeed = 1f; + } + else + { + npc.stepSpeed = 2f; + } + } + } + } + } + } + public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerRuby.png b/NPCs/NormalNPCs/CrawlerRuby.png index 6fddbc1ec6c98ee016ace565b808f31afafd117a..c690e19a9573ffd3f499b55de416e6c5da96905e 100644 GIT binary patch literal 1646 zcmV-!29f!RP) zPiz!b9LGP?F0cqnRlraP}Q=k2_i-S&s^;qPagwx#`dtoW1t%d9%l*Y~^tz{>|724HIFd|cFi zkWK)0cCU*7E{x3q<;ezl9U96Mv^VkmF{28$G%z(KT)AkQzc0X zM^B6c@ZO=Vx!Yy^@KWu@09%M7@FyF7qF2%ymGhqa?RI%<;M3goazu`weAn61bXF)# zHrzyIL>fuIjlLQ^y)UPC6ouq}$zOePg&J>AME_ zY~Yhj|G~ytVq0d}CA>rhcWghLu9t7M@2bg7SZYra^tE$q+P(4@f=RUT&02OPAHz~2 z!=9Qfqbzavx^&0pH4(t2i3K3wk*SgBk;k3^pr^AMgFit@!o5C~8ap#P2Eg8GcVT~b z|6S>bbgni9z@N2SneD+OTIqRYHvpHrHURL=m9fGOebonm=Ic{RYS@?Lvh^{*LR^=l zoEf2lNi=%y*%tx0G&ULoy!OhgnFgnRJeye_8BLbm8kE|6aQm*pc7iWq+0XLN2mvKp zag&q;zyADf0A6}CS-vsxSEi$zAfw6h6Z>{$+UF#ctZ(y!hLfngaBJ~{k52(h$y}ei zmf0>x;QQ|eGwa>`xVSZ3K%m#7cdfrW0vH)Ro4L2-OR|hs``x?lJ^*gc--rO}asKt| z`Coqq0!lQJkx5w7u{O8i!s0vt+qNWERkJteVpvM9+POYA8R@sNdQYZigp#_W>|d%O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MHBaug3(LmLxW|XSG2amRwDe-iE5FFk zU+oxfyJ>CP`_1{o*SH4v*7Y0K|NND~AoV`GvexE7q$Dp#G(Q~vkKd-Z@xvzFjbApc zeYxhux7!UdrM}xNXR6)a)4p%Vm?7O^-UYuVGf+=jQXw7A=2@7t1HCzkTQ0Kh?(*{#^LQ zI8U7SB>!8V2HusMg#DRX*0#gp{M6T#9Pe~*=CK4sU)vpV#rd%W*WpW|K>mkitn)r! zusDCAlQFAv-Q>4v49h1ZCi+e*kv^^Y_G!V2-`3IjEF6mtY+<@ofBxy+{g2*0-TdJQ zTZ7#?m0jC9y-vz7KREn)@o6tPp6MyS&iBSK1izgX^SmgsuH_4}O#9LPb-gT8!l%2jd#yRc zCzEOM+x?z5+RJY~){gkO%(0?|Nz zT+vgv1B*?j8Kc;n`1=2(vbeJ?FWD;eZu6Xf|LK}FgU`FHO};19mHbm*vTrDnTR0^k zX{E`s-&bXN)Es91%Ikc-GmC5f@=aeDr<__}-#_K$JJYZ4m^G%}pK^P7)peos)r@;S v*-yF~^{CSRfOe-&<=>bC0@44K4=@PrwYjgn?Da2TE@bd@^>bP0l+XkKr*iIG diff --git a/NPCs/NormalNPCs/CrawlerSapphire.cs b/NPCs/NormalNPCs/CrawlerSapphire.cs index b3afa09056..bcb6421661 100644 --- a/NPCs/NormalNPCs/CrawlerSapphire.cs +++ b/NPCs/NormalNPCs/CrawlerSapphire.cs @@ -12,6 +12,8 @@ namespace CalamityMod.NPCs.NormalNPCs { public class CrawlerSapphire : ModNPC { + private bool detected = false; + public override void SetStaticDefaults() { DisplayName.SetDefault("Sapphire Crawler"); @@ -21,23 +23,217 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetDefaults() { npc.npcSlots = 0.3f; - npc.aiStyle = 3; + npc.aiStyle = -1; npc.damage = 18; npc.width = 44; //324 npc.height = 34; //216 npc.defense = 10; - npc.lifeMax = 60; + npc.lifeMax = 90; npc.knockBackResist = 0.65f; - animationType = 257; - aiType = NPCID.AnomuraFungus; + aiType = -1; npc.value = Item.buyPrice(0, 0, 1, 0); - npc.HitSound = SoundID.NPCHit1; + npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; + banner = npc.type; + bannerItem = mod.ItemType("SapphireCrawlerBanner"); } - + + public override void FindFrame(int frameHeight) + { + if (!detected) + { + npc.frame.Y = frameHeight * 4; + npc.frameCounter = 0.0; + return; + } + npc.spriteDirection = -npc.direction; + npc.frameCounter += (double)(npc.velocity.Length() / 8f); + if (npc.frameCounter > 2.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 3) + { + npc.frame.Y = 0; + } + } + + public override void AI() + { + if (!detected) + npc.TargetClosest(true); + if (((Main.player[npc.target].Center - npc.Center).Length() < 100f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, + Main.player[npc.target].width, Main.player[npc.target].height)) || npc.justHit) + detected = true; + if (!detected) + return; + int num19 = 30; + int num20 = 10; + bool flag19 = false; + bool flag20 = false; + bool flag30 = false; + if (npc.velocity.Y == 0f && ((npc.velocity.X > 0f && npc.direction > 0) || (npc.velocity.X < 0f && npc.direction < 0))) + { + flag20 = true; + npc.ai[3] += 1f; + } + if ((npc.position.X == npc.oldPosition.X || npc.ai[3] >= (float)num19) | flag20) + { + npc.ai[3] += 1f; + flag30 = true; + } + else if (npc.ai[3] > 0f) + { + npc.ai[3] -= 1f; + } + if (npc.ai[3] > (float)(num19 * num20)) + { + npc.ai[3] = 0f; + } + if (npc.justHit) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] == (float)num19) + { + npc.netUpdate = true; + } + Vector2 vector19 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float arg_31B_0 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector19.X; + float num30 = Main.player[npc.target].position.Y - vector19.Y; + float num40 = (float)Math.Sqrt((double)(arg_31B_0 * arg_31B_0 + num30 * num30)); + if (num40 < 200f && !flag30) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] < (float)num19) + { + npc.TargetClosest(true); + } + else + { + if (npc.velocity.X == 0f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[0] += 1f; + if (npc.ai[0] >= 2f) + { + npc.direction *= -1; + npc.spriteDirection = -npc.direction; + npc.ai[0] = 0f; + } + } + } + else + { + npc.ai[0] = 0f; + } + npc.directionY = -1; + if (npc.direction == 0) + { + npc.direction = 1; + } + } + float num6 = 5.5f; //5 + float num70 = 0.055f; //0.05 + if (!flag19 && (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction > 0) || (npc.velocity.X >= 0f && npc.direction < 0))) + { + if (npc.velocity.X < -num6 || npc.velocity.X > num6) + { + if (npc.velocity.Y == 0f) + { + npc.velocity *= 0.8f; + } + } + else if (npc.velocity.X < num6 && npc.direction == -1) + { + npc.velocity.X = npc.velocity.X + num70; + if (npc.velocity.X > num6) + { + npc.velocity.X = num6; + } + } + else if (npc.velocity.X > -num6 && npc.direction == 1) + { + npc.velocity.X = npc.velocity.X - num70; + if (npc.velocity.X < -num6) + { + npc.velocity.X = -num6; + } + } + } + if (npc.velocity.Y >= 0f) + { + int num9 = 0; + if (npc.velocity.X < 0f) + { + num9 = -1; + } + if (npc.velocity.X > 0f) + { + num9 = 1; + } + Vector2 position = npc.position; + position.X += npc.velocity.X; + int num10 = (int)((position.X + (float)(npc.width / 2) + (float)((npc.width / 2 + 1) * num9)) / 16f); + int num11 = (int)((position.Y + (float)npc.height - 1f) / 16f); + if (Main.tile[num10, num11] == null) + { + Main.tile[num10, num11] = new Tile(); + } + if (Main.tile[num10, num11 - 1] == null) + { + Main.tile[num10, num11 - 1] = new Tile(); + } + if (Main.tile[num10, num11 - 2] == null) + { + Main.tile[num10, num11 - 2] = new Tile(); + } + if (Main.tile[num10, num11 - 3] == null) + { + Main.tile[num10, num11 - 3] = new Tile(); + } + if (Main.tile[num10, num11 + 1] == null) + { + Main.tile[num10, num11 + 1] = new Tile(); + } + if ((float)(num10 * 16) < position.X + (float)npc.width && (float)(num10 * 16 + 16) > position.X && ((Main.tile[num10, num11].nactive() && !Main.tile[num10, num11].topSlope() && !Main.tile[num10, num11 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num10, num11].type] && !Main.tileSolidTop[(int)Main.tile[num10, num11].type]) || (Main.tile[num10, num11 - 1].halfBrick() && Main.tile[num10, num11 - 1].nactive())) && (!Main.tile[num10, num11 - 1].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 1].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 1].type] || (Main.tile[num10, num11 - 1].halfBrick() && (!Main.tile[num10, num11 - 4].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 4].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 4].type]))) && (!Main.tile[num10, num11 - 2].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 2].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 2].type]) && (!Main.tile[num10, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 3].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 3].type]) && (!Main.tile[num10 - num9, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10 - num9, num11 - 3].type])) + { + float num12 = (float)(num11 * 16); + if (Main.tile[num10, num11].halfBrick()) + { + num12 += 8f; + } + if (Main.tile[num10, num11 - 1].halfBrick()) + { + num12 -= 8f; + } + if (num12 < position.Y + (float)npc.height) + { + float num13 = position.Y + (float)npc.height - num12; + if ((double)num13 <= 16.1) + { + npc.gfxOffY += npc.position.Y + (float)npc.height - num12; + npc.position.Y = num12 - (float)npc.height; + if (num13 < 9f) + { + npc.stepSpeed = 1f; + } + else + { + npc.stepSpeed = 2f; + } + } + } + } + } + } + public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerSapphire.png b/NPCs/NormalNPCs/CrawlerSapphire.png index 8f166fb68973e944e7d3dd5e6984cf7097be9a83..35a03734049e8a634f6d06be14f6b9646b5eb3dd 100644 GIT binary patch literal 1657 zcmaLY`9ISS90%|Z2@Cl~!gOJolp`92%rVs#E7DUys)>@9ZP!1A1$~YXAVyLmor~E^D)V zJ=&Vf>8>7V4*;5;NQ75V^4)1hXYNK{lN+VO_<73#6GOwohC??kKzmIray8fatyLpf znBU{2eBYX*C9EEKnX6_0ThGfK{Ku{^M6{O$Mc>Du1>ItWbEf+#q8ztuZj=pABsD%7 zE7J|>P-4$;xldvi{Yl48z(cA}Eo=iTGzg4^otZ7EuoQehVDflKYh;YytvBak>C=~y zqkESH85o?!CNM{}DixpN=fFVckdiu|{Gzbn);|gClJHE`lM5<^zvxbM)J$^3;&+|J zy5Q1O&ceUkkJ?+Ch^FJ`dL{P4=MepSdquUsE58!d=^(;gceg73pzP1O+jwbI|;42{mZ z6kb(KvW;%Op73NwNzx{1+~2X~uYenjEYSs2?2>+FWA{&r(Hq^)<_7bdSB zAgD7eDOOShnT6@h_pB0>9Is z#wOnANh}i0{TUiQ%Cmy{WzKGYIspz?v!?e zJ3ky9Cx(6M=lbMj+9MgW=ql`>XdOCV?iyQcA2alXFsOgJli8Z!)2ib~(K z%J~6HCEQ+pD`B#NYzk~R4@EZ3chRty;d1-YI>PZEk`f=M1H@6t#K3T4hXO*pMjdaN zM%f{e-xj;!Xw(DAjzhU*=sQr8bJFe;87Y=2C1Yn>c?M|akE`c%?HQ_dSyMKqULKcA zyHpejySq$S>S?Ub5PvO}8mUPuuk@u0$=ssLb0-v#rOCPlbz5x+gidz>9Zovr`ak~(#Ev;DQASiTW@quc6c z%)Zhrhy`fj3G|!{0h80#%W0R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/CrawlerTopaz.cs index 43fbeeda0f..b4a5d8941d 100644 --- a/NPCs/NormalNPCs/CrawlerTopaz.cs +++ b/NPCs/NormalNPCs/CrawlerTopaz.cs @@ -12,6 +12,8 @@ namespace CalamityMod.NPCs.NormalNPCs { public class CrawlerTopaz : ModNPC { + private bool detected = false; + public override void SetStaticDefaults() { DisplayName.SetDefault("Topaz Crawler"); @@ -21,23 +23,217 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetDefaults() { npc.npcSlots = 0.3f; - npc.aiStyle = 3; + npc.aiStyle = -1; npc.damage = 12; npc.width = 44; //324 npc.height = 34; //216 npc.defense = 6; - npc.lifeMax = 30; + npc.lifeMax = 45; npc.knockBackResist = 0.85f; - animationType = 257; - aiType = NPCID.AnomuraFungus; + aiType = -1; npc.value = Item.buyPrice(0, 0, 0, 30); - npc.HitSound = SoundID.NPCHit1; + npc.HitSound = SoundID.NPCHit33; npc.DeathSound = SoundID.NPCDeath36; + banner = npc.type; + bannerItem = mod.ItemType("TopazCrawlerBanner"); } - + + public override void FindFrame(int frameHeight) + { + if (!detected) + { + npc.frame.Y = frameHeight * 4; + npc.frameCounter = 0.0; + return; + } + npc.spriteDirection = -npc.direction; + npc.frameCounter += (double)(npc.velocity.Length() / 8f); + if (npc.frameCounter > 2.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 3) + { + npc.frame.Y = 0; + } + } + + public override void AI() + { + if (!detected) + npc.TargetClosest(true); + if (((Main.player[npc.target].Center - npc.Center).Length() < 100f && Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, + Main.player[npc.target].width, Main.player[npc.target].height)) || npc.justHit) + detected = true; + if (!detected) + return; + int num19 = 30; + int num20 = 10; + bool flag19 = false; + bool flag20 = false; + bool flag30 = false; + if (npc.velocity.Y == 0f && ((npc.velocity.X > 0f && npc.direction > 0) || (npc.velocity.X < 0f && npc.direction < 0))) + { + flag20 = true; + npc.ai[3] += 1f; + } + if ((npc.position.X == npc.oldPosition.X || npc.ai[3] >= (float)num19) | flag20) + { + npc.ai[3] += 1f; + flag30 = true; + } + else if (npc.ai[3] > 0f) + { + npc.ai[3] -= 1f; + } + if (npc.ai[3] > (float)(num19 * num20)) + { + npc.ai[3] = 0f; + } + if (npc.justHit) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] == (float)num19) + { + npc.netUpdate = true; + } + Vector2 vector19 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float arg_31B_0 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector19.X; + float num30 = Main.player[npc.target].position.Y - vector19.Y; + float num40 = (float)Math.Sqrt((double)(arg_31B_0 * arg_31B_0 + num30 * num30)); + if (num40 < 200f && !flag30) + { + npc.ai[3] = 0f; + } + if (npc.ai[3] < (float)num19) + { + npc.TargetClosest(true); + } + else + { + if (npc.velocity.X == 0f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[0] += 1f; + if (npc.ai[0] >= 2f) + { + npc.direction *= -1; + npc.spriteDirection = -npc.direction; + npc.ai[0] = 0f; + } + } + } + else + { + npc.ai[0] = 0f; + } + npc.directionY = -1; + if (npc.direction == 0) + { + npc.direction = 1; + } + } + float num6 = 4.5f; //5 + float num70 = 0.045f; //0.05 + if (!flag19 && (npc.velocity.Y == 0f || npc.wet || (npc.velocity.X <= 0f && npc.direction > 0) || (npc.velocity.X >= 0f && npc.direction < 0))) + { + if (npc.velocity.X < -num6 || npc.velocity.X > num6) + { + if (npc.velocity.Y == 0f) + { + npc.velocity *= 0.8f; + } + } + else if (npc.velocity.X < num6 && npc.direction == -1) + { + npc.velocity.X = npc.velocity.X + num70; + if (npc.velocity.X > num6) + { + npc.velocity.X = num6; + } + } + else if (npc.velocity.X > -num6 && npc.direction == 1) + { + npc.velocity.X = npc.velocity.X - num70; + if (npc.velocity.X < -num6) + { + npc.velocity.X = -num6; + } + } + } + if (npc.velocity.Y >= 0f) + { + int num9 = 0; + if (npc.velocity.X < 0f) + { + num9 = -1; + } + if (npc.velocity.X > 0f) + { + num9 = 1; + } + Vector2 position = npc.position; + position.X += npc.velocity.X; + int num10 = (int)((position.X + (float)(npc.width / 2) + (float)((npc.width / 2 + 1) * num9)) / 16f); + int num11 = (int)((position.Y + (float)npc.height - 1f) / 16f); + if (Main.tile[num10, num11] == null) + { + Main.tile[num10, num11] = new Tile(); + } + if (Main.tile[num10, num11 - 1] == null) + { + Main.tile[num10, num11 - 1] = new Tile(); + } + if (Main.tile[num10, num11 - 2] == null) + { + Main.tile[num10, num11 - 2] = new Tile(); + } + if (Main.tile[num10, num11 - 3] == null) + { + Main.tile[num10, num11 - 3] = new Tile(); + } + if (Main.tile[num10, num11 + 1] == null) + { + Main.tile[num10, num11 + 1] = new Tile(); + } + if ((float)(num10 * 16) < position.X + (float)npc.width && (float)(num10 * 16 + 16) > position.X && ((Main.tile[num10, num11].nactive() && !Main.tile[num10, num11].topSlope() && !Main.tile[num10, num11 - 1].topSlope() && Main.tileSolid[(int)Main.tile[num10, num11].type] && !Main.tileSolidTop[(int)Main.tile[num10, num11].type]) || (Main.tile[num10, num11 - 1].halfBrick() && Main.tile[num10, num11 - 1].nactive())) && (!Main.tile[num10, num11 - 1].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 1].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 1].type] || (Main.tile[num10, num11 - 1].halfBrick() && (!Main.tile[num10, num11 - 4].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 4].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 4].type]))) && (!Main.tile[num10, num11 - 2].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 2].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 2].type]) && (!Main.tile[num10, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10, num11 - 3].type] || Main.tileSolidTop[(int)Main.tile[num10, num11 - 3].type]) && (!Main.tile[num10 - num9, num11 - 3].nactive() || !Main.tileSolid[(int)Main.tile[num10 - num9, num11 - 3].type])) + { + float num12 = (float)(num11 * 16); + if (Main.tile[num10, num11].halfBrick()) + { + num12 += 8f; + } + if (Main.tile[num10, num11 - 1].halfBrick()) + { + num12 -= 8f; + } + if (num12 < position.Y + (float)npc.height) + { + float num13 = position.Y + (float)npc.height - num12; + if ((double)num13 <= 16.1) + { + npc.gfxOffY += npc.position.Y + (float)npc.height - num12; + npc.position.Y = num12 - (float)npc.height; + if (num13 < 9f) + { + npc.stepSpeed = 1f; + } + else + { + npc.stepSpeed = 2f; + } + } + } + } + } + } + public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/CrawlerTopaz.png b/NPCs/NormalNPCs/CrawlerTopaz.png index 575ef1a63875784e9d2d5d80865d05a7ea811c73..303e221fa045dd4dcf24aecae819827941b0c3ac 100644 GIT binary patch literal 1712 zcma*o?Kj&A764hY-PWv2$rKs)`IaTp8$KvZPF@rcxNT?LM8efF=nt7cKN#(}#yejM8$ z!8V1UFXJ<4V1L#gxkVHhk#)qR!_IbW-Et-OkM(_$SJ2lM4o3zpLJmSe-$Wd`6#xx3 z|D$E)qFAMWtG%i6uJGW&*mdj;gqOO++oNK8S|XLb=2_%Mu~^3TbV-3YvktTCVM~N5 z{_zjY_Ky?S1T#$5i+TCr=W(op$?g1;!1~r4%6HMvYHBxd%QW2~>k9!BxY+|@#D_)r z6&y44@HqPRj7-a{xUpl!n7`RIC_U%|S~B2%lH z3lhOkU%Y?q+$TJpT@yVU0C_{ZCPMd8F6lb1)<)sp%>{HK6`srobes{Bfx&t4@|&ab z-a~`F2KZgmxkz%jVzU$3s)+n`%+bpS$Q?2Tfe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UtcJSE1y& zp=$KCx`q<{%Ujl+KJ<>Iz^YJ%>AR)C_K8xA*BCn9#$BkLXW4tYXFZUU*j6wTi0(`|MOP{gVg)%%37NTk&?U|(fn}uKYp9u#t)lxH-6c) z_T`!r-)=X=l=^P7oT+wuPy5QfF?=b%c^g8e&sDkIl%SsBaD(_ohRNykEtgGRHa+UpzJ^(OpPSD!TeSQsUM!!m{`Q?~|5P7O_;cYG z<2-TRll*Ue8hBT3682|mS=$bW^HX0}a=g>Mna2_keQkHd73aqiT!$}-0{I`7vCjK^ z!Q%XdPR6Xxb(7zwF)W{unCLsLMEbPm+ouI9ep^T9vv4dru!ZST{rRVN_dk03bn}NJ zYz=nnRCaCa^g1cS{NV8G#izaGc&4ZPI^P?|5d3yl%=4nix|T1@GVMqE*Y&bYk(c?J zoy?f{8UZJAezuv|dZ5i`20KIWoW(9;tIS)g#iR3?G*rCT>k3C|?0m6g3!m=B?zQF& zpG>C3Z}*FGx%}72;={Rpu3w5M^OQN;5PmsA3q%9? zaYawv4lFjAW{hHQ;_LsD%Hqzpykx7;yUla{{ikcz3_kC&Hu;`ZSMpDN$-bdPZsC-G zq?IPieqWX8QFEC2E3fnU&MdC^%Qt;toN{V?egBk~?@YhGW7e2@f6DFURo8{iS2OPU vWIyR{)T2uK1KOQBm49On2t@x^KENQf*XF+Rve&(mod).ZoneAbyss) + if (spawnInfo.playerSafe || !CalamityWorld.downedCryogen || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/Cryon.cs b/NPCs/NormalNPCs/Cryon.cs index a314bf2a79..1519c205c3 100644 --- a/NPCs/NormalNPCs/Cryon.cs +++ b/NPCs/NormalNPCs/Cryon.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 5, 0); npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath7; + banner = npc.type; + bannerItem = mod.ItemType("CryonBanner"); } public override void AI() @@ -345,7 +347,8 @@ namespace CalamityMod.NPCs.NormalNPCs !spawnInfo.player.ZoneTowerVortex && !spawnInfo.player.ZoneTowerNebula && !spawnInfo.player.ZoneDungeon && - Main.hardMode && !spawnInfo.playerInTown && !spawnInfo.player.ZoneOldOneArmy && !Main.snowMoon && !Main.pumpkinMoon ? 0.015f : 0f; + !spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && + Main.hardMode && !spawnInfo.playerInTown && !spawnInfo.player.ZoneOldOneArmy && !Main.snowMoon && !Main.pumpkinMoon ? 0.015f : 0f; } public override void OnHitPlayer(Player player, int damage, bool crit) @@ -374,7 +377,10 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum")); + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum")); + } } } } \ No newline at end of file diff --git a/NPCs/NormalNPCs/EbonianBlightSlime.cs b/NPCs/NormalNPCs/EbonianBlightSlime.cs index cc6fcb4183..df6e1edf46 100644 --- a/NPCs/NormalNPCs/EbonianBlightSlime.cs +++ b/NPCs/NormalNPCs/EbonianBlightSlime.cs @@ -36,6 +36,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[24] = true; + banner = npc.type; + bannerItem = mod.ItemType("EbonianBlightSlimeBanner"); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/NormalNPCs/Eidolist.cs b/NPCs/NormalNPCs/Eidolist.cs index 4d4b0b09ad..18a5f3b6d1 100644 --- a/NPCs/NormalNPCs/Eidolist.cs +++ b/NPCs/NormalNPCs/Eidolist.cs @@ -45,7 +45,9 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit13; npc.DeathSound = SoundID.NPCDeath59; npc.timeLeft = NPC.activeTime * 2; - } + banner = npc.type; + bannerItem = mod.ItemType("EidolistBanner"); + } public override void AI() { diff --git a/NPCs/NormalNPCs/HeatSpirit.cs b/NPCs/NormalNPCs/HeatSpirit.cs index ba696135c5..b5fcc7148f 100644 --- a/NPCs/NormalNPCs/HeatSpirit.cs +++ b/NPCs/NormalNPCs/HeatSpirit.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 1, 0); npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; + banner = npc.type; + bannerItem = mod.ItemType("HeatSpiritBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -95,7 +97,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(4) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofChaos")); } diff --git a/NPCs/NormalNPCs/Horse.cs b/NPCs/NormalNPCs/Horse.cs index 61fc070f80..fcb25d3d48 100644 --- a/NPCs/NormalNPCs/Horse.cs +++ b/NPCs/NormalNPCs/Horse.cs @@ -41,11 +41,14 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; npc.rarity = 2; - } + banner = npc.type; + bannerItem = mod.ItemType("EarthElementalBanner"); + } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/IceClasper.cs b/NPCs/NormalNPCs/IceClasper.cs index 40a96b2811..f492ce9d36 100644 --- a/NPCs/NormalNPCs/IceClasper.cs +++ b/NPCs/NormalNPCs/IceClasper.cs @@ -35,7 +35,9 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath7; npc.coldDamage = true; npc.rarity = 2; - } + banner = npc.type; + bannerItem = mod.ItemType("IceClasperBanner"); + } public override void AI() { @@ -239,7 +241,8 @@ namespace CalamityMod.NPCs.NormalNPCs !spawnInfo.player.ZoneTowerVortex && !spawnInfo.player.ZoneTowerNebula && !spawnInfo.player.ZoneDungeon && - Main.hardMode && !spawnInfo.playerInTown && !spawnInfo.player.ZoneOldOneArmy && !Main.snowMoon && !Main.pumpkinMoon ? 0.007f : 0f; + !spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && + Main.hardMode && !spawnInfo.playerInTown && !spawnInfo.player.ZoneOldOneArmy && !Main.snowMoon && !Main.pumpkinMoon ? 0.007f : 0f; } public override void OnHitPlayer(Player player, int damage, bool crit) @@ -268,7 +271,10 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum"), Main.rand.Next(2, 4)); + if (Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofEleum")); + } if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("FrostBarrier")); diff --git a/NPCs/NormalNPCs/ImpiousImmolator.cs b/NPCs/NormalNPCs/ImpiousImmolator.cs index 37332a8d80..a9d6a3b584 100644 --- a/NPCs/NormalNPCs/ImpiousImmolator.cs +++ b/NPCs/NormalNPCs/ImpiousImmolator.cs @@ -39,7 +39,9 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit5; npc.DeathSound = SoundID.NPCDeath7; npc.knockBackResist = 0.2f; - } + banner = npc.type; + bannerItem = mod.ItemType("ImpiousImmolatorBanner"); + } public override void AI() { diff --git a/NPCs/NormalNPCs/IrradiatedSlime.cs b/NPCs/NormalNPCs/IrradiatedSlime.cs index 090fbeb998..f2b23b57df 100644 --- a/NPCs/NormalNPCs/IrradiatedSlime.cs +++ b/NPCs/NormalNPCs/IrradiatedSlime.cs @@ -35,15 +35,17 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noTileCollide = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("IrradiatedSlimeBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedMoonlord || !Main.raining) + if (spawnInfo.playerSafe || !spawnInfo.player.GetModPlayer(mod).ZoneSulphur || !NPC.downedMoonlord || !Main.raining) { return 0f; } - return SpawnCondition.OverworldDaySlime.Chance * 0.15f; + return 0.05f; } public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) diff --git a/NPCs/NormalNPCs/OverloadedSoldier.cs b/NPCs/NormalNPCs/OverloadedSoldier.cs index f2381afaa4..7a5beb1aab 100644 --- a/NPCs/NormalNPCs/OverloadedSoldier.cs +++ b/NPCs/NormalNPCs/OverloadedSoldier.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 2, 0); npc.HitSound = SoundID.NPCHit2; npc.DeathSound = SoundID.NPCDeath2; + banner = npc.type; + bannerItem = mod.ItemType("OverloadedSoldierBanner"); } public override void AI() @@ -40,7 +42,8 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/PerennialSlime.cs b/NPCs/NormalNPCs/PerennialSlime.cs index ff79156698..086c7144c0 100644 --- a/NPCs/NormalNPCs/PerennialSlime.cs +++ b/NPCs/NormalNPCs/PerennialSlime.cs @@ -35,11 +35,14 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noTileCollide = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("PerennialSlimeBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedPlantBoss || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || !NPC.downedPlantBoss || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/PhantomDebris.cs b/NPCs/NormalNPCs/PhantomDebris.cs index b3be8ca794..2db766d6fd 100644 --- a/NPCs/NormalNPCs/PhantomDebris.cs +++ b/NPCs/NormalNPCs/PhantomDebris.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 2, 0); npc.HitSound = SoundID.NPCHit2; npc.DeathSound = SoundID.NPCDeath36; + banner = npc.type; + bannerItem = mod.ItemType("PhantomDebrisBanner"); } public override void FindFrame(int frameHeight) @@ -87,7 +89,8 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/PhantomSpirit.cs b/NPCs/NormalNPCs/PhantomSpirit.cs index 196cf22d52..a5411078be 100644 --- a/NPCs/NormalNPCs/PhantomSpirit.cs +++ b/NPCs/NormalNPCs/PhantomSpirit.cs @@ -34,6 +34,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath39; npc.noGravity = true; npc.noTileCollide = true; + banner = npc.type; + bannerItem = mod.ItemType("PhantomSpiritBanner"); } public override void AI() diff --git a/NPCs/NormalNPCs/PhantomSpiritL.cs b/NPCs/NormalNPCs/PhantomSpiritL.cs index 102071596e..27e454c2b6 100644 --- a/NPCs/NormalNPCs/PhantomSpiritL.cs +++ b/NPCs/NormalNPCs/PhantomSpiritL.cs @@ -34,6 +34,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath39; npc.noGravity = true; npc.noTileCollide = true; + banner = mod.NPCType("PhantomSpirit"); + bannerItem = mod.ItemType("PhantomSpiritBanner"); } public override void FindFrame(int frameHeight) @@ -101,7 +103,7 @@ namespace CalamityMod.NPCs.NormalNPCs { float num151 = 5f; int num152 = 60; - int num153 = 299; + int num153 = mod.ProjectileType("PhantomGhostShot"); num149 = num151 / num149; num147 *= num149; num148 *= num149; diff --git a/NPCs/NormalNPCs/PhantomSpiritM.cs b/NPCs/NormalNPCs/PhantomSpiritM.cs index 13f7a51904..4f5672c427 100644 --- a/NPCs/NormalNPCs/PhantomSpiritM.cs +++ b/NPCs/NormalNPCs/PhantomSpiritM.cs @@ -34,6 +34,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath39; npc.noGravity = true; npc.noTileCollide = true; + banner = mod.NPCType("PhantomSpirit"); + bannerItem = mod.ItemType("PhantomSpiritBanner"); } public override void FindFrame(int frameHeight) diff --git a/NPCs/NormalNPCs/PhantomSpiritS.cs b/NPCs/NormalNPCs/PhantomSpiritS.cs index 77fb139269..bc18e15712 100644 --- a/NPCs/NormalNPCs/PhantomSpiritS.cs +++ b/NPCs/NormalNPCs/PhantomSpiritS.cs @@ -33,6 +33,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath39; npc.noGravity = true; npc.noTileCollide = true; + banner = mod.NPCType("PhantomSpirit"); + bannerItem = mod.ItemType("PhantomSpiritBanner"); } public override void FindFrame(int frameHeight) diff --git a/NPCs/NormalNPCs/Pitbull.cs b/NPCs/NormalNPCs/Pitbull.cs index 84167890b5..de677497c1 100644 --- a/NPCs/NormalNPCs/Pitbull.cs +++ b/NPCs/NormalNPCs/Pitbull.cs @@ -32,6 +32,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 2, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath5; + banner = npc.type; + bannerItem = mod.ItemType("PitbullBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) diff --git a/NPCs/NormalNPCs/PlagueBee.cs b/NPCs/NormalNPCs/PlagueBee.cs index eb7ee9d3b1..8d87c6254b 100644 --- a/NPCs/NormalNPCs/PlagueBee.cs +++ b/NPCs/NormalNPCs/PlagueBee.cs @@ -46,6 +46,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; npc.buffImmune[mod.BuffType("HolyLight")] = true; npc.buffImmune[mod.BuffType("Plague")] = true; + banner = npc.type; + bannerItem = mod.ItemType("PlagueChargerBanner"); } public override void NPCLoot() @@ -55,7 +57,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedGolemBoss) + if (spawnInfo.playerSafe || !NPC.downedGolemBoss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/PlagueBeeLarge.cs b/NPCs/NormalNPCs/PlagueBeeLarge.cs index 3a1bfd46ce..b4787b829a 100644 --- a/NPCs/NormalNPCs/PlagueBeeLarge.cs +++ b/NPCs/NormalNPCs/PlagueBeeLarge.cs @@ -46,6 +46,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; npc.buffImmune[mod.BuffType("HolyLight")] = true; npc.buffImmune[mod.BuffType("Plague")] = true; + banner = mod.NPCType("PlagueBee"); + bannerItem = mod.ItemType("PlagueChargerBanner"); } public override void NPCLoot() @@ -55,7 +57,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedGolemBoss) + if (spawnInfo.playerSafe || !NPC.downedGolemBoss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/PlaguedDerpling.cs b/NPCs/NormalNPCs/PlaguedDerpling.cs index 8cee41d604..a7e872904e 100644 --- a/NPCs/NormalNPCs/PlaguedDerpling.cs +++ b/NPCs/NormalNPCs/PlaguedDerpling.cs @@ -15,6 +15,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetStaticDefaults() { DisplayName.SetDefault("Viruling"); + Main.npcFrameCount[npc.type] = 5; } public override void SetDefaults() @@ -42,9 +43,19 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; npc.buffImmune[mod.BuffType("HolyLight")] = true; npc.buffImmune[mod.BuffType("Plague")] = true; - } + banner = npc.type; + bannerItem = mod.ItemType("VirulingBanner"); + } - public override void AI() + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override void AI() { if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead) { @@ -146,7 +157,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedGolemBoss) + if (spawnInfo.playerSafe || !NPC.downedGolemBoss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } @@ -170,6 +181,9 @@ namespace CalamityMod.NPCs.NormalNPCs { Dust.NewDust(npc.position, npc.width, npc.height, 46, hitDirection, -1f, 0, default(Color), 1f); } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Viruling"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Viruling2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Viruling3"), 1f); } } diff --git a/NPCs/NormalNPCs/PlaguedDerpling.png b/NPCs/NormalNPCs/PlaguedDerpling.png index b957950f4be2bf19bce2c1f0f440924acd1599d3..85878b8985a09b621e29145c6df065bc9db46d2a 100644 GIT binary patch literal 2959 zcmXX|c{J4BAO4P^i84a8SjJ0sLY8b3_1dx<3`4fc5=oS?Wo8s*XN2r&Y!gF+kbNyu znX;ERvKxD2hK%qV=luS-_nzl|KIh(ZpU-`sd*iGvjk&qba{&Oreci+W!5Z~hZT$E# zR_}aceiHyrAg>!-wF}K#%eS~I)GN??D35>@8=&x#s3d!5=*>B*NS3rrX`5}pq4srVAJPT>uT+B zd7qz_{a&?E$$p%*yh$=sHk(4f3l5|~fQ!|t%{Ij|69kx@;9*l6B4uV~aR9lwlAf(@ z#<5^?A$n}X+aBO(rZ=`$lO`NE%9Jy_@Uo0@8=?4eWb}2_;;i`$P1MiZBKZ_#NnVpy z?I;Xb%fS)i1Nd2!Y^JtZimqA60NS%$S}?)+D8fb_;hX^ux=)9}XGn#3Z>o1f)RVnP z^-v7cte5$a%E-+VgKi43qD`9OOrrntUY*gT+3HE#2y@F*5M6W|&*?BFDt=RLY`Eb` zefL~+06gL|TMsB!Poo=b9T9!ZQg`j0Tez6WIc&u&%CnX>}a$yfh) ze*YxfzW?(M;4JZFCKmf}o*(FlSUe!!J;ORRy^Vs`+kMRBKHL?LtOY~PfPj~Wm><<_ za6*ErYVrhQ7l(1(nP|`&gkT@?1IjAd5a7|Hbv*!g(0TO)An4@{iUrqeN+?oKOKXrMn?=V+fX^gEt z5vqA5(=M~u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wS_e* diff --git a/NPCs/NormalNPCs/PlaguedFlyingFox.cs b/NPCs/NormalNPCs/PlaguedFlyingFox.cs index 19731dc33f..fd70d20364 100644 --- a/NPCs/NormalNPCs/PlaguedFlyingFox.cs +++ b/NPCs/NormalNPCs/PlaguedFlyingFox.cs @@ -44,16 +44,13 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; npc.buffImmune[mod.BuffType("HolyLight")] = true; npc.buffImmune[mod.BuffType("Plague")] = true; - } - - /*public override void AI() - { - npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); - }*/ + banner = npc.type; + bannerItem = mod.ItemType("MelterBanner"); + } public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedGolemBoss) + if (spawnInfo.playerSafe || !NPC.downedGolemBoss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/PlaguedJungleSlime.cs b/NPCs/NormalNPCs/PlaguedJungleSlime.cs index a7b3cd905b..cac0467eca 100644 --- a/NPCs/NormalNPCs/PlaguedJungleSlime.cs +++ b/NPCs/NormalNPCs/PlaguedJungleSlime.cs @@ -48,7 +48,9 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; npc.buffImmune[mod.BuffType("HolyLight")] = true; npc.buffImmune[mod.BuffType("Plague")] = true; - } + banner = npc.type; + bannerItem = mod.ItemType("PestilentSlimeBanner"); + } public override void AI() { @@ -108,7 +110,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedGolemBoss) + if (spawnInfo.playerSafe || !NPC.downedGolemBoss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/PlaguedJungleSlime.png b/NPCs/NormalNPCs/PlaguedJungleSlime.png index d481b5b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eV zO_j#Q0)LVKujFh{Yk+-q+287$EkQY8F@Pj62YE5g2eAFD-#ZvB22el-StpSFd?B@; z!1haQb6!)e2J52%D#*u*{RHBCwFlydde&!-Iirsq2a5$H1#W5s?R)VA#_AX#`v7v( z&HnNzJQ+ZjBwy7H%uAMQAU??FAFq3>J3l}Y@OtXob#GuUF+c$7TWf$UPhA;1T^dgg zFzwQ)Z>=9MU=35-rM4csv~CG~tiFt$E{!!*Z3C>24w%7db?Kqn+K&ftY~a*7R(HOD z)B@erJA={U0ZHJ#Tw?d9p&`4t#9nk@U0wYJbf5#r-K}Y400000NkvXXu0mjf%i&|x diff --git a/NPCs/NormalNPCs/PlaguedTortoise.cs b/NPCs/NormalNPCs/PlaguedTortoise.cs index e6205a29b6..90fe3ee827 100644 --- a/NPCs/NormalNPCs/PlaguedTortoise.cs +++ b/NPCs/NormalNPCs/PlaguedTortoise.cs @@ -46,7 +46,9 @@ namespace CalamityMod.NPCs.NormalNPCs npc.buffImmune[mod.BuffType("BrimstoneFlames")] = true; npc.buffImmune[mod.BuffType("HolyLight")] = true; npc.buffImmune[mod.BuffType("Plague")] = true; - } + banner = npc.type; + bannerItem = mod.ItemType("PlagueshellBanner"); + } public override void HitEffect(int hitDirection, double damage) { @@ -65,7 +67,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !NPC.downedGolemBoss) + if (spawnInfo.playerSafe || !NPC.downedGolemBoss || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/ProfanedEnergyBody.cs b/NPCs/NormalNPCs/ProfanedEnergyBody.cs index e6fb9c530f..77ae1134d7 100644 --- a/NPCs/NormalNPCs/ProfanedEnergyBody.cs +++ b/NPCs/NormalNPCs/ProfanedEnergyBody.cs @@ -33,6 +33,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noGravity = true; npc.HitSound = SoundID.NPCHit52; npc.DeathSound = SoundID.NPCDeath55; + banner = npc.type; + bannerItem = mod.ItemType("ProfanedEnergyBanner"); } public override void AI() diff --git a/NPCs/NormalNPCs/SandTortoise.cs b/NPCs/NormalNPCs/SandTortoise.cs index d489c9f14d..649ba24812 100644 --- a/NPCs/NormalNPCs/SandTortoise.cs +++ b/NPCs/NormalNPCs/SandTortoise.cs @@ -23,19 +23,21 @@ namespace CalamityMod.NPCs.NormalNPCs public override void SetDefaults() { npc.npcSlots = 2f; - npc.damage = 90; + npc.damage = 110; npc.aiStyle = 39; npc.width = 46; npc.height = 32; npc.defense = 34; - npc.scale = 1.25f; - npc.lifeMax = 490; + npc.scale = 1.5f; + npc.lifeMax = 580; npc.knockBackResist = 0.2f; animationType = 153; npc.value = Item.buyPrice(0, 0, 15, 0); npc.HitSound = SoundID.NPCHit24; npc.DeathSound = SoundID.NPCDeath27; npc.noGravity = false; + banner = npc.type; + bannerItem = mod.ItemType("SandTortoiseBanner"); } public override void HitEffect(int hitDirection, double damage) @@ -55,24 +57,15 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !Main.hardMode) + if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } return SpawnCondition.DesertCave.Chance * 0.05f; } - public override void OnHitPlayer(Player player, int damage, bool crit) - { - player.AddBuff(mod.BuffType("HolyLight"), 180, true); - } - public override void NPCLoot() { - if (Main.rand.Next(2) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); - } if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.TurtleShell); diff --git a/NPCs/NormalNPCs/SandTortoise.png b/NPCs/NormalNPCs/SandTortoise.png index 9813d65dfde2e3aadfb44487de93b650af5a5ff9..1ec579c6a45dc61f1a4f42dbe0b0ddd370c15017 100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=j&Ny5_L*st>jDy5TUrVB4Q!z<6l`O&UZTg8U+d@GwYfo~AAn6CE5_ z%D_yagS{{WPN5|p*3NLaI8us`suG|hAG#{6zTk}9O@`KC^z*s#K(*%(&+SQZW|#I+ z_W?KI=QWhR{*c!mmK(ZQ`gBem=%^<#!&<}3g^%eg?Eqit@+mzLa!0sBGoZu`>KTAo zboJ=c?9PIEKY|n9x2l6LKcQ~VzsuBOTGsY{s^xM1rDUxW#;KX+sM{K=n1s{R71Bx> zTV3~cxQ)U-9X`9hrPv?2QgodAyYml*!Ue)qdl%EOAKFpMUM+T7-N{WD{>~N|82S1G zGHFBAJmKMEW52)0yl3@hoxe%~5u`T2#m&Qk8Oje?H0{8& zyx5hHFa`)oZufF06RzVLBxVce>_*3pXoWkIB(mod).ZoneSunkenSea) { return 0f; } diff --git a/NPCs/NormalNPCs/SunBat.cs b/NPCs/NormalNPCs/SunBat.cs index fe0a80f6ec..676392197c 100644 --- a/NPCs/NormalNPCs/SunBat.cs +++ b/NPCs/NormalNPCs/SunBat.cs @@ -31,6 +31,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 5, 0); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath4; + banner = npc.type; + bannerItem = mod.ItemType("SunBatBanner"); } public override void FindFrame(int frameHeight) @@ -48,7 +50,8 @@ namespace CalamityMod.NPCs.NormalNPCs public override float SpawnChance(NPCSpawnInfo spawnInfo) { - if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneAbyss) + if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.GetModPlayer(mod).ZoneAbyss || + spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea) { return 0f; } @@ -78,7 +81,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(3) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); } diff --git a/NPCs/NormalNPCs/Sunskater.cs b/NPCs/NormalNPCs/Sunskater.cs index 0b2a7fd92d..bfa4329bbe 100644 --- a/NPCs/NormalNPCs/Sunskater.cs +++ b/NPCs/NormalNPCs/Sunskater.cs @@ -34,7 +34,9 @@ namespace CalamityMod.NPCs.NormalNPCs npc.HitSound = SoundID.NPCHit50; npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/Sunskater"); npc.knockBackResist = 0.7f; - } + banner = npc.type; + bannerItem = mod.ItemType("SunskaterBanner"); + } public override void AI() { @@ -221,7 +223,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - if (Main.hardMode) + if (Main.hardMode && Main.rand.Next(3) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder")); } diff --git a/NPCs/NormalNPCs/ThiccWaifu.cs b/NPCs/NormalNPCs/ThiccWaifu.cs index ab67eef45a..46be7c20d9 100644 --- a/NPCs/NormalNPCs/ThiccWaifu.cs +++ b/NPCs/NormalNPCs/ThiccWaifu.cs @@ -35,6 +35,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noGravity = true; npc.noTileCollide = true; npc.rarity = 2; + banner = npc.type; + bannerItem = mod.ItemType("CloudElementalBanner"); } public override void AI() @@ -430,6 +432,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EssenceofCinder"), Main.rand.Next(2, 4)); if (Main.expertMode) { if (Main.rand.Next(3) == 0) diff --git a/NPCs/NormalNPCs/WulfrumDrone.cs b/NPCs/NormalNPCs/WulfrumDrone.cs index 779bb65659..7ff9a5b513 100644 --- a/NPCs/NormalNPCs/WulfrumDrone.cs +++ b/NPCs/NormalNPCs/WulfrumDrone.cs @@ -33,6 +33,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.value = Item.buyPrice(0, 0, 0, 50); npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("WulfrumDroneBanner"); } public override void AI() diff --git a/NPCs/NormalNPCs/WulfrumSlime.cs b/NPCs/NormalNPCs/WulfrumSlime.cs index 616e0ac1ed..519728e561 100644 --- a/NPCs/NormalNPCs/WulfrumSlime.cs +++ b/NPCs/NormalNPCs/WulfrumSlime.cs @@ -35,6 +35,8 @@ namespace CalamityMod.NPCs.NormalNPCs npc.noTileCollide = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("WulfrumSlimeBanner"); } public override float SpawnChance(NPCSpawnInfo spawnInfo) diff --git a/NPCs/Perforator/PerforatorBodyLarge.cs b/NPCs/Perforator/PerforatorBodyLarge.cs index 45008eaa14..6a09462b12 100644 --- a/NPCs/Perforator/PerforatorBodyLarge.cs +++ b/NPCs/Perforator/PerforatorBodyLarge.cs @@ -39,6 +39,7 @@ namespace CalamityMod.NPCs.Perforator npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index 1833ed014b..bbbce4c823 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -39,6 +39,7 @@ namespace CalamityMod.NPCs.Perforator npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/Perforator/PerforatorBodySmall.cs b/NPCs/Perforator/PerforatorBodySmall.cs index 06559d7c6b..48cc57f6fa 100644 --- a/NPCs/Perforator/PerforatorBodySmall.cs +++ b/NPCs/Perforator/PerforatorBodySmall.cs @@ -39,6 +39,7 @@ namespace CalamityMod.NPCs.Perforator npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 8e4812ccdd..d2e6414f51 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -14,16 +14,16 @@ namespace CalamityMod.NPCs.Perforator [AutoloadBossHead] public class PerforatorHive : ModNPC { - private bool small = false; - private bool medium = false; - private bool large = false; - + private bool small = false; + private bool medium = false; + private bool large = false; + public override void SetStaticDefaults() { DisplayName.SetDefault("The Perforator Hive"); Main.npcFrameCount[npc.type] = 10; } - + public override void SetDefaults() { npc.npcSlots = 18f; @@ -32,16 +32,18 @@ namespace CalamityMod.NPCs.Perforator npc.height = 100; //216 npc.defense = 0; npc.lifeMax = CalamityWorld.revenge ? 3594 : 2500; - if (CalamityWorld.death) - { - npc.lifeMax = 5031; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 4000000 : 3500000; - } - npc.aiStyle = -1; //new - aiType = -1; //new + if (CalamityWorld.death) + { + npc.lifeMax = 5031; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 2000000 : 1800000; + } + npc.aiStyle = -1; //new + aiType = -1; //new + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 6, 0, 0); npc.boss = true; @@ -49,22 +51,22 @@ namespace CalamityMod.NPCs.Perforator npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit13; npc.DeathSound = SoundID.NPCDeath19; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/BloodCoagulant"); - else - music = MusicID.Boss2; - bossBag = mod.ItemType("PerforatorBag"); + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/BloodCoagulant"); + else + music = MusicID.Boss2; + bossBag = mod.ItemType("PerforatorBag"); } - + public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.15f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } - + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + public override void AI() { Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 1.5f, 0f, 0f); @@ -72,14 +74,14 @@ namespace CalamityMod.NPCs.Perforator bool isCrimson = player.ZoneCrimson || CalamityWorld.bossRushActive; bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); - if (Vector2.Distance(player.Center, npc.Center) > 5600f) - { - if (npc.timeLeft > 10) - { - npc.timeLeft = 10; - } - } - if (!player.active || player.dead) + if (Vector2.Distance(player.Center, npc.Center) > 5600f) + { + if (npc.timeLeft > 10) + { + npc.timeLeft = 10; + } + } + if (!player.active || player.dead) { npc.TargetClosest(false); player = Main.player[npc.target]; @@ -114,178 +116,178 @@ namespace CalamityMod.NPCs.Perforator if (Main.netMode != 1) { int shoot = revenge ? 6 : 4; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - shoot += 3; - } + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + shoot += 3; + } npc.localAI[0] += (float)Main.rand.Next(shoot); - if (npc.localAI[0] >= (float)Main.rand.Next(300, 900)) - { - npc.localAI[0] = 0f; - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 20); - for (int num621 = 0; num621 < 8; num621++) - { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 170, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 16; num623++) - { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 5, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 5, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - npc.TargetClosest(true); - float num179 = 8f; - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num180 = player.position.X + (float)player.width * 0.5f - value9.X; - float num181 = Math.Abs(num180) * 0.1f; - float num182 = player.position.Y + (float)player.height * 0.5f - value9.Y - num181; - float num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); - npc.netUpdate = true; - num183 = num179 / num183; - num180 *= num183; - num182 *= num183; - int num184 = expertMode ? 14 : 18; - int num185 = (Main.rand.Next(2) == 0 ? mod.ProjectileType("IchorShot") : mod.ProjectileType("BloodGeyser")); - value9.X += num180; - value9.Y += num182; - for (int num186 = 0; num186 < 20; num186++) - { - num180 = player.position.X + (float)player.width * 0.5f - value9.X; - num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; - num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); - num183 = num179 / num183; - num180 += (float)Main.rand.Next(-180, 181); - num180 *= num183; - Projectile.NewProjectile(value9.X, value9.Y, num180, -5f, num185, num184, 0f, Main.myPlayer, 0f, 0f); - } - } - } + if (npc.localAI[0] >= (float)Main.rand.Next(300, 900)) + { + npc.localAI[0] = 0f; + Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 20); + for (int num621 = 0; num621 < 8; num621++) + { + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 170, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 16; num623++) + { + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 5, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 5, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + } + npc.TargetClosest(true); + float num179 = 8f; + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num180 = player.position.X + (float)player.width * 0.5f - value9.X; + float num181 = Math.Abs(num180) * 0.1f; + float num182 = player.position.Y + (float)player.height * 0.5f - value9.Y - num181; + float num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); + npc.netUpdate = true; + num183 = num179 / num183; + num180 *= num183; + num182 *= num183; + int num184 = expertMode ? 14 : 18; + int num185 = (Main.rand.Next(2) == 0 ? mod.ProjectileType("IchorShot") : mod.ProjectileType("BloodGeyser")); + value9.X += num180; + value9.Y += num182; + for (int num186 = 0; num186 < 20; num186++) + { + num180 = player.position.X + (float)player.width * 0.5f - value9.X; + num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; + num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); + num183 = num179 / num183; + num180 += (float)Main.rand.Next(-180, 181); + num180 *= num183; + Projectile.NewProjectile(value9.X, value9.Y, num180, -5f, num185, num184, 0f, Main.myPlayer, 0f, 0f); + } + } + } npc.rotation = npc.velocity.X * 0.04f; npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); - if (npc.position.Y > player.position.Y - 160f) //200 - { - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.98f; - } - npc.velocity.Y = npc.velocity.Y - 0.1f; - if (npc.velocity.Y > 2f) - { - npc.velocity.Y = 2f; - } - } - else if (npc.position.Y < player.position.Y - 400f) //500 - { - if (npc.velocity.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.98f; - } - npc.velocity.Y = npc.velocity.Y + 0.1f; - if (npc.velocity.Y < -2f) - { - npc.velocity.Y = -2f; - } - } - if (npc.position.X + (float)(npc.width / 2) > player.position.X + (float)(player.width / 2) + 80f) - { - if (npc.velocity.X > 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - npc.velocity.X = npc.velocity.X - 0.1f; - if (npc.velocity.X > 8f) - { - npc.velocity.X = 8f; - } - } - if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)(player.width / 2) - 80f) - { - if (npc.velocity.X < 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - npc.velocity.X = npc.velocity.X + 0.1f; - if (npc.velocity.X < -8f) - { - npc.velocity.X = -8f; - } - } - if (npc.ai[3] == 0f && npc.life > 0) - { - npc.ai[3] = (float)npc.lifeMax; - } - if (npc.life > 0) - { - if (Main.netMode != 1) - { - int num660 = (int)((double)npc.lifeMax * 0.3); - if ((float)(npc.life + num660) < npc.ai[3]) - { - npc.ai[3] = (float)npc.life; - int wormType = mod.NPCType("PerforatorHeadSmall"); - if (!small) - { - small = true; - } - else if (!medium) - { - medium = true; - wormType = mod.NPCType("PerforatorHeadMedium"); - } - else if (!large) - { - large = true; - wormType = mod.NPCType("PerforatorHeadLarge"); - } - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), wormType); - return; - } - } - } - } + if (npc.position.Y > player.position.Y - 160f) //200 + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.98f; + } + npc.velocity.Y = npc.velocity.Y - 0.1f; + if (npc.velocity.Y > 2f) + { + npc.velocity.Y = 2f; + } + } + else if (npc.position.Y < player.position.Y - 400f) //500 + { + if (npc.velocity.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.98f; + } + npc.velocity.Y = npc.velocity.Y + 0.1f; + if (npc.velocity.Y < -2f) + { + npc.velocity.Y = -2f; + } + } + if (npc.position.X + (float)(npc.width / 2) > player.position.X + (float)(player.width / 2) + 80f) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + npc.velocity.X = npc.velocity.X - 0.1f; + if (npc.velocity.X > 8f) + { + npc.velocity.X = 8f; + } + } + if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)(player.width / 2) - 80f) + { + if (npc.velocity.X < 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + npc.velocity.X = npc.velocity.X + 0.1f; + if (npc.velocity.X < -8f) + { + npc.velocity.X = -8f; + } + } + if (npc.ai[3] == 0f && npc.life > 0) + { + npc.ai[3] = (float)npc.lifeMax; + } + if (npc.life > 0) + { + if (Main.netMode != 1) + { + int num660 = (int)((double)npc.lifeMax * 0.3); + if ((float)(npc.life + num660) < npc.ai[3]) + { + npc.ai[3] = (float)npc.life; + int wormType = mod.NPCType("PerforatorHeadSmall"); + if (!small) + { + small = true; + } + else if (!medium) + { + medium = true; + wormType = mod.NPCType("PerforatorHeadMedium"); + } + else if (!large) + { + large = true; + wormType = mod.NPCType("PerforatorHeadLarge"); + } + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), wormType); + return; + } + } + } + } - public override bool CheckDead() - { - if (NPC.AnyNPCs(mod.NPCType("PerforatorHeadLarge"))) - { - return false; - } - return true; - } + public override bool CheckDead() + { + if (NPC.AnyNPCs(mod.NPCType("PerforatorHeadLarge"))) + { + return false; + } + return true; + } - public override void ScaleExpertStats(int numPlayers, float bossLifeScale) + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.HealingPotion; } - + public override void NPCLoot() { if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PerforatorTrophy")); } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } @@ -330,13 +332,13 @@ namespace CalamityMod.NPCs.Perforator Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BloodSample"), Main.rand.Next(7, 15)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Vertebrae, Main.rand.Next(3, 10)); Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.CrimtaneBar, Main.rand.Next(2, 6)); - if (Main.hardMode) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Ichor, Main.rand.Next(10, 21)); - } - } + if (Main.hardMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Ichor, Main.rand.Next(10, 21)); + } + } } - + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < damage / npc.lifeMax * 100.0; k++) @@ -345,11 +347,11 @@ namespace CalamityMod.NPCs.Perforator } if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Hive"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Hive2"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Hive3"), 1f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Hive4"), 1f); - npc.position.X = npc.position.X + (float)(npc.width / 2); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Hive"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Hive2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Hive3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Hive4"), 1f); + npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 100; npc.height = 100; diff --git a/NPCs/Perforator/PerforatorTailLarge.cs b/NPCs/Perforator/PerforatorTailLarge.cs index 5aa3d37ed2..5f0fbbf0d6 100644 --- a/NPCs/Perforator/PerforatorTailLarge.cs +++ b/NPCs/Perforator/PerforatorTailLarge.cs @@ -39,6 +39,7 @@ namespace CalamityMod.NPCs.Perforator npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/Perforator/PerforatorTailMedium.cs b/NPCs/Perforator/PerforatorTailMedium.cs index 2c546b2bac..9987db2491 100644 --- a/NPCs/Perforator/PerforatorTailMedium.cs +++ b/NPCs/Perforator/PerforatorTailMedium.cs @@ -39,6 +39,7 @@ namespace CalamityMod.NPCs.Perforator npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/Perforator/PerforatorTailSmall.cs b/NPCs/Perforator/PerforatorTailSmall.cs index 2c67b1ad88..bf32322d79 100644 --- a/NPCs/Perforator/PerforatorTailSmall.cs +++ b/NPCs/Perforator/PerforatorTailSmall.cs @@ -40,6 +40,7 @@ namespace CalamityMod.NPCs.Perforator npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.netAlways = true; diff --git a/NPCs/PlaguebringerGoliath/PlagueBeeG.cs b/NPCs/PlaguebringerGoliath/PlagueBeeG.cs index 6d74233ebb..25111c231e 100644 --- a/NPCs/PlaguebringerGoliath/PlagueBeeG.cs +++ b/NPCs/PlaguebringerGoliath/PlagueBeeG.cs @@ -38,6 +38,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.DeathSound = SoundID.NPCDeath14; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.buffImmune[189] = true; npc.buffImmune[153] = true; npc.buffImmune[70] = true; diff --git a/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs b/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs index 6339af9077..6d28e6553a 100644 --- a/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs +++ b/NPCs/PlaguebringerGoliath/PlagueBeeLargeG.cs @@ -36,6 +36,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.DeathSound = SoundID.NPCDeath14; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.buffImmune[189] = true; npc.buffImmune[153] = true; npc.buffImmune[70] = true; diff --git a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs index 38df2995a5..642f5a3e35 100644 --- a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs +++ b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs @@ -23,13 +23,14 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.width = 22; //324 npc.height = 22; //216 npc.defense = 10; - npc.lifeMax = 1000; + npc.lifeMax = 200; npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.noGravity = true; + npc.canGhostHeal = false; npc.buffImmune[189] = true; npc.buffImmune[153] = true; npc.buffImmune[70] = true; @@ -96,7 +97,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.ai[1] = (float)Player.FindClosest(npc.position, npc.width, npc.height); npc.netUpdate = true; float num754 = npc.velocity.Length(); - npc.velocity = Vector2.Normalize(npc.velocity) * (num754 + 4.2f); //4f + npc.velocity = Vector2.Normalize(npc.velocity) * (num754 + 1f); } else if (npc.ai[0] == 1f) { diff --git a/NPCs/PlaguebringerGoliath/PlagueMine.cs b/NPCs/PlaguebringerGoliath/PlagueMine.cs index 336650eb4c..ae1039f80a 100644 --- a/NPCs/PlaguebringerGoliath/PlagueMine.cs +++ b/NPCs/PlaguebringerGoliath/PlagueMine.cs @@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.knockBackResist = 0f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; } @@ -63,7 +64,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath return; } npc.ai[3] += 1f; - npc.dontTakeDamage = (npc.ai[3] >= 600f ? false : true); + npc.dontTakeDamage = (npc.ai[3] >= 180f ? false : true); if (npc.ai[3] >= 480f) { npc.velocity.Y *= 0.985f; diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index 9a67736466..4b439374e3 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -18,20 +18,20 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath [AutoloadBossHead] public class PlaguebringerGoliath : ModNPC { - private const int MissileProjectiles = 5; - private const float MissileAngleSpread = 90; - private int MissileCountdown = 0; - private bool halfLife = false; - private int despawnTimer = 600; - private bool canDespawn = false; - private float chargeDistance = 0; - + private const int MissileProjectiles = 5; + private const float MissileAngleSpread = 90; + private int MissileCountdown = 0; + private bool halfLife = false; + private int despawnTimer = 600; + private bool canDespawn = false; + private float chargeDistance = 0; + public override void SetStaticDefaults() { DisplayName.SetDefault("The Plaguebringer Goliath"); Main.npcFrameCount[npc.type] = 4; } - + public override void SetDefaults() { npc.damage = 100; //150 @@ -40,52 +40,54 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.height = 198; //216 npc.defense = 55; npc.lifeMax = CalamityWorld.revenge ? 77275 : 58500; - if (CalamityWorld.death) - { - npc.lifeMax = 110000; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 8000000 : 7200000; - } - npc.knockBackResist = 0f; + if (CalamityWorld.death) + { + npc.lifeMax = 110000; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 4000000 : 3700000; + } + npc.knockBackResist = 0f; npc.aiStyle = -1; //new - aiType = -1; //new + aiType = -1; //new npc.boss = true; npc.value = Item.buyPrice(0, 25, 0, 0); + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { - npc.buffImmune[k] = true; - npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[BuffID.Daybreak] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("HolyLight")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } + npc.buffImmune[k] = true; + npc.buffImmune[BuffID.Ichor] = false; + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[BuffID.Daybreak] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("HolyLight")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/PlaguebringerGoliath"); - else - music = MusicID.Boss3; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/PlaguebringerGoliath"); + else + music = MusicID.Boss3; bossBag = mod.ItemType("PlaguebringerGoliathBag"); } - + public override void AI() { bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); - Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.15f, 0.35f, 0.05f); + Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.15f, 0.35f, 0.05f); if (!halfLife && ((double)npc.life <= (double)npc.lifeMax * 0.5 || CalamityWorld.death || CalamityWorld.bossRushActive)) { string key = "Mods.CalamityMod.PlagueBossText"; @@ -100,15 +102,15 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath } halfLife = true; } - if (halfLife && MissileCountdown == 0) - { - MissileCountdown = 600; - } + if (halfLife && MissileCountdown == 0) + { + MissileCountdown = 600; + } if (MissileCountdown > 1) { MissileCountdown--; } - int num1038 = 0; + int num1038 = 0; for (int num1039 = 0; num1039 < 255; num1039++) { if (Main.player[num1039].active && !Main.player[num1039].dead && (npc.Center - Main.player[num1039].Center).Length() < 1000f) @@ -121,840 +123,866 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath int num1040 = (int)(50f * (1f - (float)npc.life / (float)npc.lifeMax)); npc.defense = npc.defDefense + num1040; } - if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) - { - npc.TargetClosest(true); - } - Vector2 distFromPlayer = Main.player[npc.target].Center - npc.Center; - bool jungleEnrage = false; - if (!Main.player[npc.target].ZoneJungle && !CalamityWorld.bossRushActive) - { - jungleEnrage = true; - } - if (jungleEnrage || Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f) - { - if (despawnTimer > 0) - { - despawnTimer--; - } - } - else - { - despawnTimer = 600; - } - canDespawn = (despawnTimer <= 0); - if (canDespawn) - { - if (npc.timeLeft > 10) - { - npc.timeLeft = 10; - } - } - if (npc.ai[0] == -1f) - { - if (Main.netMode != 1) - { - float num595 = npc.ai[1]; - int num596; - do - { - num596 = Main.rand.Next(3); - if (MissileCountdown == 1) - { - num596 = 4; - } - else if (num596 == 1) - { - num596 = 2; - } - else if (num596 == 2) - { - num596 = 3; - } - } - while ((float)num596 == num595); - if (num596 == 0 && ((double)npc.life <= (double)npc.lifeMax * 0.8 || CalamityWorld.death) && distFromPlayer.Length() < 1800f) - { - switch (Main.rand.Next(3)) - { - case 0: chargeDistance = 0f; break; - case 1: chargeDistance = 400f; break; - case 2: chargeDistance = -400f; break; - } - } - npc.ai[0] = (float)num596; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - return; - } - } - else if (npc.ai[0] == 0f) - { - int num1043 = 2; //2 - if ((npc.ai[1] > (float)(2 * num1043) && npc.ai[1] % 2f == 0f) || distFromPlayer.Length() > 1800f) - { - npc.ai[0] = -1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return; - } - if (npc.ai[1] % 2f == 0f) - { - npc.TargetClosest(true); - if (Math.Abs(npc.position.Y + (float)(npc.height / 2) - (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - chargeDistance)) < 20f) - { - switch (Main.rand.Next(3)) - { - case 0: chargeDistance = 0f; break; - case 1: chargeDistance = 400f; break; - case 2: chargeDistance = -400f; break; - } - npc.localAI[0] = 1f; - npc.ai[1] += 1f; - npc.ai[2] = 0f; - float num1044 = revenge ? 28f : 26f; //16 - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num1044 += 2f; //2 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num1044 += 2f; //2 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num1044 += 2f; //2 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num1044 += 2f; //2 not a prob - } - if (npc.GetGlobalNPC(mod).enraged) - { - num1044 += 2f; - } - Vector2 vector117 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num1045 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector117.X; - float num1046 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector117.Y; - float num1047 = (float)Math.Sqrt((double)(num1045 * num1045 + num1046 * num1046)); - num1047 = num1044 / num1047; - npc.velocity.X = num1045 * num1047; - npc.velocity.Y = num1046 * num1047; - npc.spriteDirection = npc.direction; - Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0); - return; - } - npc.localAI[0] = 0f; - float num1048 = revenge ? 10f : 9f; //12 not a prob - float num1049 = revenge ? 0.15f : 0.13f; //0.15 not a prob - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num1048 += 1f; //1 not a prob - num1049 += 0.05f; //0.05 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num1048 += 1f; //1 not a prob - num1049 += 0.05f; //0.05 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num1048 += 2f; //2 not a prob - num1049 += 0.05f; //0.05 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num1048 += 2f; //2 not a prob - num1049 += 0.1f; //0.1 not a prob - } - if (npc.GetGlobalNPC(mod).enraged) - { - num1048 += 2f; - num1049 += 0.1f; - } - if (npc.position.Y + (float)(npc.height / 2) < (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - chargeDistance)) - { - npc.velocity.Y = npc.velocity.Y + num1049; - } - else - { - npc.velocity.Y = npc.velocity.Y - num1049; - } - if (npc.velocity.Y < -12f) - { - npc.velocity.Y = -num1048; - } - if (npc.velocity.Y > 12f) - { - npc.velocity.Y = num1048; - } - if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > 600f) - { - npc.velocity.X = npc.velocity.X + 0.15f * (float)npc.direction; - } - else if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) < 300f) - { - npc.velocity.X = npc.velocity.X - 0.15f * (float)npc.direction; - } - else - { - npc.velocity.X = npc.velocity.X * 0.8f; - } - if (npc.velocity.X < -16f) - { - npc.velocity.X = -16f; - } - if (npc.velocity.X > 16f) - { - npc.velocity.X = 16f; - } - npc.spriteDirection = npc.direction; - return; - } - else - { - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - int num1050 = 500; //600 not a prob - if (npc.GetGlobalNPC(mod).enraged) - { - num1050 = 200; - } - else if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - num1050 = 250; - } - else if ((double)npc.life < (double)npc.lifeMax * 0.1) - { - num1050 = revenge ? 300 : 350; //300 not a prob - } - else if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num1050 = revenge ? 350 : 375; //450 not a prob - } - else if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num1050 = 400; //500 not a prob - } - else if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num1050 = 450; //550 not a prob - } - int num1051 = 1; - if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) - { - num1051 = -1; - } - if (npc.direction == num1051 && Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > (float)num1050) - { - npc.ai[2] = 1f; - } - if (npc.ai[2] != 1f) - { - npc.localAI[0] = 1f; - return; - } - npc.TargetClosest(true); - npc.spriteDirection = npc.direction; - npc.localAI[0] = 0f; - npc.velocity *= 0.9f; - float num1052 = revenge ? 0.13f : 0.115f; //0.1 - if (npc.life < npc.lifeMax / 2) - { - npc.velocity *= 0.9f; - num1052 += 0.05f; //0.05 - } - if (npc.life < npc.lifeMax / 3) - { - npc.velocity *= 0.9f; - num1052 += 0.05f; //0.05 - } - if (npc.life < npc.lifeMax / 5 || CalamityWorld.bossRushActive) - { - npc.velocity *= 0.9f; - num1052 += 0.05f; //0.05 - } - if (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y) < num1052) - { - npc.ai[2] = 0f; - npc.ai[1] += 1f; - return; - } - } - } - else if (npc.ai[0] == 2f) - { - npc.TargetClosest(true); - npc.spriteDirection = npc.direction; - float num1053 = 12f; //12 found one! dictates speed during bee spawn - float num1054 = 0.2f; //0.1 found one! dictates speed during bee spawn - float num10542 = 0.1f; - Vector2 vector118 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num1055 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector118.X; - float num1056 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 200f - vector118.Y; - float num1057 = (float)Math.Sqrt((double)(num1055 * num1055 + num1056 * num1056)); - if (num1057 < 800f) - { - npc.ai[0] = (((double)npc.life <= (double)npc.lifeMax * 0.66 || CalamityWorld.death) ? 5f : 1f); - npc.ai[1] = 0f; - npc.netUpdate = true; - return; - } - num1057 = num1053 / num1057; - if (npc.velocity.X < num1055) - { - npc.velocity.X = npc.velocity.X + num1054; - if (npc.velocity.X < 0f && num1055 > 0f) - { - npc.velocity.X = npc.velocity.X + num1054; - } - } - else if (npc.velocity.X > num1055) - { - npc.velocity.X = npc.velocity.X - num1054; - if (npc.velocity.X > 0f && num1055 < 0f) - { - npc.velocity.X = npc.velocity.X - num1054; - } - } - if (npc.velocity.Y < num1056) - { - npc.velocity.Y = npc.velocity.Y + num10542; - if (npc.velocity.Y < 0f && num1056 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num10542; - return; - } - } - else if (npc.velocity.Y > num1056) - { - npc.velocity.Y = npc.velocity.Y - num10542; - if (npc.velocity.Y > 0f && num1056 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num10542; - return; - } - } - } - else if (npc.ai[0] == 1f) - { - npc.localAI[0] = 0f; - npc.TargetClosest(true); - Vector2 vector119 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); - Vector2 vector120 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num1058 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector120.X; - float num1059 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector120.Y; - float num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); - npc.ai[1] += 1f; - npc.ai[1] += (float)(num1038 / 2); - if ((double)npc.life < (double)npc.lifeMax * 0.75 || CalamityWorld.bossRushActive) - { - npc.ai[1] += 0.25f; //0.25 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) - { - npc.ai[1] += 0.25f; //0.25 not a prob - } - bool flag103 = false; - if (npc.ai[1] > 40f) //changed from 40 not a prob - { - npc.ai[1] = 0f; - npc.ai[2] += 1f; - flag103 = true; - } - if (Collision.CanHit(vector119, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && flag103) - { - Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 8); - if (Main.netMode != 1) - { - int randomAmt = expertMode ? 2 : 4; - int num1061; - if (Main.rand.Next(randomAmt) == 0) - { - num1061 = mod.NPCType("PlagueBeeLargeG"); - } - else - { - num1061 = mod.NPCType("PlagueBeeG"); - } - if (expertMode && NPC.CountNPCS(mod.NPCType("PlagueMine")) < 2) - { - NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueMine"), 0, 0f, 0f, 0f, 0f, 255); - } - if (revenge && NPC.CountNPCS(mod.NPCType("PlaguebringerShade")) < 1) - { - NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlaguebringerShade"), 0, 0f, 0f, 0f, 0f, 255); - } - if (NPC.CountNPCS(mod.NPCType("PlagueBeeLargeG")) < 2) - { - int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, num1061, 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num1062].velocity.X = (float)Main.rand.Next(-200, 201) * 0.02f; - Main.npc[num1062].velocity.Y = (float)Main.rand.Next(-200, 201) * 0.02f; - Main.npc[num1062].localAI[0] = 60f; - Main.npc[num1062].netUpdate = true; - } - } - } - if (num1060 > 800f || !Collision.CanHit(new Vector2(vector119.X, vector119.Y - 30f), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - float num1063 = 14f; //changed from 14 not a prob - float num1064 = 0.2f; //changed from 0.1 not a prob - float num10642 = 0.07f; - vector120 = vector119; - num1058 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector120.X; - num1059 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector120.Y; - num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); - num1060 = num1063 / num1060; - if (npc.velocity.X < num1058) - { - npc.velocity.X = npc.velocity.X + num1064; - if (npc.velocity.X < 0f && num1058 > 0f) - { - npc.velocity.X = npc.velocity.X + num1064; - } - } - else if (npc.velocity.X > num1058) - { - npc.velocity.X = npc.velocity.X - num1064; - if (npc.velocity.X > 0f && num1058 < 0f) - { - npc.velocity.X = npc.velocity.X - num1064; - } - } - if (npc.velocity.Y < num1059) - { - npc.velocity.Y = npc.velocity.Y + num10642; - if (npc.velocity.Y < 0f && num1059 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num10642; - } - } - else if (npc.velocity.Y > num1059) - { - npc.velocity.Y = npc.velocity.Y - num10642; - if (npc.velocity.Y > 0f && num1059 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num10642; - } - } - } - else - { - npc.velocity *= 0.9f; - } - npc.spriteDirection = npc.direction; - if (npc.ai[2] > 3f) - { - npc.ai[0] = -1f; - npc.ai[1] = 1f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 5f) - { - npc.localAI[0] = 0f; - npc.TargetClosest(true); - Vector2 vector119 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); - Vector2 vector120 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num1058 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector120.X; - float num1059 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector120.Y; - float num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); - npc.ai[1] += 1f; - npc.ai[1] += (float)(num1038 / 2); - bool flag103 = false; - if ((double)npc.life < (double)npc.lifeMax * 0.25 || CalamityWorld.bossRushActive) - { - npc.ai[1] += 0.25f; //0.25 not a prob - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - npc.ai[1] += 0.25f; //0.25 not a prob - } - if (npc.ai[1] > 40f) //changed from 40 not a prob - { - npc.ai[1] = 0f; - npc.ai[2] += 1f; - flag103 = true; - } - if (Collision.CanHit(vector119, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && flag103) - { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 88); - if (Main.netMode != 1) - { - if (expertMode && NPC.CountNPCS(mod.NPCType("PlagueMine")) < 4) - { - NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueMine"), 0, 0f, 0f, 0f, 0f, 255); - } - float projectileSpeed = revenge ? 6f : 5f; - float num1071 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector119.X + (float)Main.rand.Next(-80, 81); - float num1072 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector119.Y + (float)Main.rand.Next(-40, 41); - float num1073 = (float)Math.Sqrt((double)(num1071 * num1071 + num1072 * num1072)); - num1073 = projectileSpeed / num1073; - num1071 *= num1073; - num1072 *= num1073; - if (NPC.CountNPCS(mod.NPCType("PlagueHomingMissile")) < 5) - { - int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueHomingMissile"), 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num1062].velocity.X = num1071; - Main.npc[num1062].velocity.Y = num1072; - Main.npc[num1062].netUpdate = true; - } - } - } - if (num1060 > 800f || !Collision.CanHit(new Vector2(vector119.X, vector119.Y - 30f), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - float num1063 = 14f; //changed from 14 not a prob - float num1064 = 0.2f; //changed from 0.1 not a prob - float num10642 = 0.07f; - vector120 = vector119; - num1058 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector120.X; - num1059 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector120.Y; - num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); - num1060 = num1063 / num1060; - if (npc.velocity.X < num1058) - { - npc.velocity.X = npc.velocity.X + num1064; - if (npc.velocity.X < 0f && num1058 > 0f) - { - npc.velocity.X = npc.velocity.X + num1064; - } - } - else if (npc.velocity.X > num1058) - { - npc.velocity.X = npc.velocity.X - num1064; - if (npc.velocity.X > 0f && num1058 < 0f) - { - npc.velocity.X = npc.velocity.X - num1064; - } - } - if (npc.velocity.Y < num1059) - { - npc.velocity.Y = npc.velocity.Y + num10642; - if (npc.velocity.Y < 0f && num1059 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num10642; - } - } - else if (npc.velocity.Y > num1059) - { - npc.velocity.Y = npc.velocity.Y - num10642; - if (npc.velocity.Y > 0f && num1059 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num10642; - } - } - } - else - { - npc.velocity *= 0.9f; - } - npc.spriteDirection = npc.direction; - if (npc.ai[2] > 3f) - { - npc.ai[0] = -1f; - npc.ai[1] = 1f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 3f) - { - Vector2 vector121 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); - npc.ai[1] += 1f; - bool flag104 = false; - if (npc.GetGlobalNPC(mod).enraged) - { - if (npc.ai[1] % 10f == 9f) - { - flag104 = true; - } - } - else if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.death || CalamityWorld.bossRushActive) - { - if (npc.ai[1] % 20f == 19f) - { - flag104 = true; - } - } - else if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - if (npc.ai[1] % 25f == 24f) - { - flag104 = true; - } - } - else if (npc.ai[1] % 30f == 29f) - { - flag104 = true; - } - if (flag104 && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y && Collision.CanHit(vector121, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); - if (Main.netMode != 1) - { - float projectileSpeed = revenge ? 7f : 6f; - if (jungleEnrage || npc.GetGlobalNPC(mod).enraged) - { - projectileSpeed += 10f; - } - float num1071 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector121.X + (float)Main.rand.Next(-80, 81); - float num1072 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector121.Y + (float)Main.rand.Next(-40, 41); - float num1073 = (float)Math.Sqrt((double)(num1071 * num1071 + num1072 * num1072)); - num1073 = projectileSpeed / num1073; - num1071 *= num1073; - num1072 *= num1073; - int num1074 = 40; //projectile damage - int num1075 = (Main.rand.Next(2) == 0 ? mod.ProjectileType("PlagueStingerGoliath") : mod.ProjectileType("PlagueStingerGoliathV2")); - if (expertMode) - { - num1074 = 28; //112 - int damageBoost = (int)(6f * (1f - (float)npc.life / (float)npc.lifeMax)); - num1074 += damageBoost; //112 to 136 - if (Main.rand.Next(6) == 0) - { - num1074 += 8; //144 to 168 - num1075 = mod.ProjectileType("HiveBombGoliath"); - } - } - else - { - if (Main.rand.Next(9) == 0) - { - num1074 = 50; - num1075 = mod.ProjectileType("HiveBombGoliath"); - } - } - Projectile.NewProjectile(vector121.X, vector121.Y, num1071, num1072, num1075, num1074, 0f, Main.myPlayer, -1f, 0f); - } - } - if (npc.position.Y > Main.player[npc.target].position.Y - 200f) //200 - { - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.98f; - } - npc.velocity.Y = npc.velocity.Y - 0.1f; - if (npc.velocity.Y > 2f) - { - npc.velocity.Y = 2f; - } - } - else if (npc.position.Y < Main.player[npc.target].position.Y - 500f) //500 - { - if (npc.velocity.Y < 0f) - { - npc.velocity.Y = npc.velocity.Y * 0.98f; - } - npc.velocity.Y = npc.velocity.Y + 0.1f; - if (npc.velocity.Y < -2f) - { - npc.velocity.Y = -2f; - } - } - if (npc.position.X + (float)(npc.width / 2) > Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) + 100f) - { - if (npc.velocity.X > 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - npc.velocity.X = npc.velocity.X - 0.1f; - if (npc.velocity.X > 8f) - { - npc.velocity.X = 8f; - } - } - if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - 100f) - { - if (npc.velocity.X < 0f) - { - npc.velocity.X = npc.velocity.X * 0.98f; - } - npc.velocity.X = npc.velocity.X + 0.1f; - if (npc.velocity.X < -8f) - { - npc.velocity.X = -8f; - } - } - float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; - npc.direction = (playerLocation < 0 ? 1 : -1); - npc.spriteDirection = npc.direction; - if (npc.ai[1] > 300f) - { - npc.ai[0] = -1f; - npc.ai[1] = 3f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 4f) - { - int num1043 = 2; //2 - if (npc.ai[1] > (float)(2 * num1043) && npc.ai[1] % 2f == 0f) - { - MissileCountdown = 0; - npc.ai[0] = -1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return; - } - if (npc.ai[1] % 2f == 0f) - { - npc.TargetClosest(true); - if (Math.Abs(npc.position.Y + (float)(npc.height / 2) - (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 500f)) < 20f) - { - if (MissileCountdown == 1) - { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 116); - if (Main.netMode != 1) - { - int speed = revenge ? 6 : 5; - float spawnX = Main.rand.Next(1000) - 500 + npc.Center.X; - float spawnY = npc.Center.Y; - Vector2 baseSpawn = new Vector2(spawnX, spawnY); - Vector2 baseVelocity = Main.player[npc.target].Center - baseSpawn; - baseVelocity.Normalize(); - baseVelocity = baseVelocity * speed; - int damage = expertMode ? 42 : 57; - for (int i = 0; i < MissileProjectiles; i++) - { - Vector2 spawn = baseSpawn; - spawn.X = spawn.X + i * 30 - (MissileProjectiles * 15); - Vector2 velocity = baseVelocity; - velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-MissileAngleSpread / 2 + (MissileAngleSpread * i / (float)MissileProjectiles))); - velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; - Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, mod.ProjectileType("HiveBombGoliath"), damage, 10f, Main.myPlayer, 0f, Main.player[npc.target].position.Y); - } - } - } - npc.localAI[0] = 1f; - npc.ai[1] += 1f; - npc.ai[2] = 0f; - float num1044 = revenge ? 28f : 26f; //16 - Vector2 vector117 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num1045 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector117.X; - float num1046 = (Main.player[npc.target].position.Y - 500f) + (float)(Main.player[npc.target].height / 2) - vector117.Y; - float num1047 = (float)Math.Sqrt((double)(num1045 * num1045 + num1046 * num1046)); - num1047 = num1044 / num1047; - npc.velocity.X = num1045 * num1047; - npc.velocity.Y = num1046 * num1047; - npc.spriteDirection = npc.direction; - return; - } - npc.localAI[0] = 0f; - float num1048 = 12f; //12 not a prob - float num1049 = 0.15f; //0.15 not a prob - if (npc.position.Y + (float)(npc.height / 2) < (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 500f)) - { - npc.velocity.Y = npc.velocity.Y + num1049; - } - else - { - npc.velocity.Y = npc.velocity.Y - num1049; - } - if (npc.velocity.Y < -12f) - { - npc.velocity.Y = -num1048; - } - if (npc.velocity.Y > 12f) - { - npc.velocity.Y = num1048; - } - if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > 600f) - { - npc.velocity.X = npc.velocity.X + 0.15f * (float)npc.direction; - } - else if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) < 300f) - { - npc.velocity.X = npc.velocity.X - 0.15f * (float)npc.direction; - } - else - { - npc.velocity.X = npc.velocity.X * 0.8f; - } - if (npc.velocity.X < -16f) - { - npc.velocity.X = -16f; - } - if (npc.velocity.X > 16f) - { - npc.velocity.X = 16f; - } - npc.spriteDirection = npc.direction; - return; - } - else - { - if (npc.velocity.X < 0f) - { - npc.direction = -1; - } - else - { - npc.direction = 1; - } - npc.spriteDirection = npc.direction; - int num1050 = 600; //600 not a prob - int num1051 = 1; - if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) - { - num1051 = -1; - } - if (npc.direction == num1051 && Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > (float)num1050) - { - npc.ai[2] = 1f; - } - if (npc.ai[2] != 1f) - { - npc.localAI[0] = 1f; - return; - } - npc.TargetClosest(true); - npc.spriteDirection = npc.direction; - npc.localAI[0] = 0f; - npc.velocity *= 0.9f; - float num1052 = revenge ? 0.13f : 0.115f; //0.1 - if (npc.life < npc.lifeMax / 2) - { - npc.velocity *= 0.9f; - num1052 += 0.05f; //0.05 - } - if (npc.life < npc.lifeMax / 3) - { - npc.velocity *= 0.9f; - num1052 += 0.05f; //0.05 - } - if (npc.life < npc.lifeMax / 5 || CalamityWorld.bossRushActive) - { - npc.velocity *= 0.9f; - num1052 += 0.05f; //0.05 - } - if (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y) < num1052) - { - npc.ai[2] = 0f; - npc.ai[1] += 1f; - return; - } - } - } - } + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead || !Main.player[npc.target].active) + { + npc.TargetClosest(true); + } + Vector2 distFromPlayer = Main.player[npc.target].Center - npc.Center; + bool aboveGroundEnrage = ((double)Main.player[npc.target].position.Y < Main.worldSurface * 16.0 || + Main.player[npc.target].position.Y > (float)((Main.maxTilesY - 200) * 16)) && !CalamityWorld.bossRushActive; + bool jungleEnrage = false; + if (!Main.player[npc.target].ZoneJungle && !CalamityWorld.bossRushActive) + { + jungleEnrage = true; + } + if (jungleEnrage || Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f) + { + if (despawnTimer > 0) + { + despawnTimer--; + } + } + else + { + despawnTimer = 600; + } + canDespawn = (despawnTimer <= 0); + if (canDespawn) + { + if (npc.timeLeft > 10) + { + npc.timeLeft = 10; + } + } + if (npc.ai[0] == -1f) + { + if (Main.netMode != 1) + { + float num595 = npc.ai[1]; + int num596; + do + { + num596 = Main.rand.Next(3); + if (MissileCountdown == 1) + { + num596 = 4; + } + else if (num596 == 1) + { + num596 = 2; + } + else if (num596 == 2) + { + num596 = 3; + } + } + while ((float)num596 == num595); + if (num596 == 0 && ((double)npc.life <= (double)npc.lifeMax * 0.8 || CalamityWorld.death) && distFromPlayer.Length() < 1800f) + { + switch (Main.rand.Next(3)) + { + case 0: chargeDistance = 0f; break; + case 1: chargeDistance = 400f; break; + case 2: chargeDistance = -400f; break; + } + } + npc.ai[0] = (float)num596; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + return; + } + } + else if (npc.ai[0] == 0f) + { + int num1043 = 2; //2 + if ((npc.ai[1] > (float)(2 * num1043) && npc.ai[1] % 2f == 0f) || distFromPlayer.Length() > 1800f) + { + npc.ai[0] = -1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return; + } + if (npc.ai[1] % 2f == 0f) + { + npc.TargetClosest(true); + float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; + if (Math.Abs(npc.position.Y + (float)(npc.height / 2) - (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - chargeDistance)) < 20f) + { + switch (Main.rand.Next(3)) + { + case 0: chargeDistance = 0f; break; + case 1: chargeDistance = 400f; break; + case 2: chargeDistance = -400f; break; + } + npc.localAI[0] = 1f; + npc.ai[1] += 1f; + npc.ai[2] = 0f; + float num1044 = revenge ? 24f : 22f; //16 + if (aboveGroundEnrage) + { + num1044 += 6f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num1044 += 2f; //2 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num1044 += 2f; //2 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num1044 += 2f; //2 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num1044 += 2f; //2 not a prob + } + if (npc.GetGlobalNPC(mod).enraged) + { + num1044 += 2f; + } + Vector2 vector117 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num1045 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector117.X; + float num1046 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector117.Y; + float num1047 = (float)Math.Sqrt((double)(num1045 * num1045 + num1046 * num1046)); + num1047 = num1044 / num1047; + npc.velocity.X = num1045 * num1047; + npc.velocity.Y = num1046 * num1047; + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + Main.PlaySound(15, (int)npc.position.X, (int)npc.position.Y, 0); + return; + } + npc.localAI[0] = 0f; + float num1048 = revenge ? 10f : 9f; //12 not a prob + float num1049 = revenge ? 0.15f : 0.13f; //0.15 not a prob + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num1048 += 1f; //1 not a prob + num1049 += 0.05f; //0.05 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num1048 += 1f; //1 not a prob + num1049 += 0.05f; //0.05 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num1048 += 2f; //2 not a prob + num1049 += 0.05f; //0.05 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num1048 += 2f; //2 not a prob + num1049 += 0.1f; //0.1 not a prob + } + if (npc.GetGlobalNPC(mod).enraged) + { + num1048 += 2f; + num1049 += 0.1f; + } + if (npc.position.Y + (float)(npc.height / 2) < (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - chargeDistance)) + { + npc.velocity.Y = npc.velocity.Y + num1049; + } + else + { + npc.velocity.Y = npc.velocity.Y - num1049; + } + if (npc.velocity.Y < -12f) + { + npc.velocity.Y = -num1048; + } + if (npc.velocity.Y > 12f) + { + npc.velocity.Y = num1048; + } + if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > 600f) + { + npc.velocity.X = npc.velocity.X + 0.15f * (float)npc.direction; + } + else if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) < 300f) + { + npc.velocity.X = npc.velocity.X - 0.15f * (float)npc.direction; + } + else + { + npc.velocity.X = npc.velocity.X * 0.8f; + } + if (npc.velocity.X < -16f) + { + npc.velocity.X = -16f; + } + if (npc.velocity.X > 16f) + { + npc.velocity.X = 16f; + } + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + return; + } + else + { + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + int num1050 = 600; //600 not a prob + if (npc.GetGlobalNPC(mod).enraged) + { + num1050 = 250; + } + else if (aboveGroundEnrage) + { + num1050 = 350; + } + else if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + num1050 = 400; + } + else if ((double)npc.life < (double)npc.lifeMax * 0.1) + { + num1050 = revenge ? 425 : 450; //300 not a prob + } + else if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num1050 = revenge ? 450 : 475; //450 not a prob + } + else if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num1050 = 500; //500 not a prob + } + else if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num1050 = 550; //550 not a prob + } + int num1051 = 1; + if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) + { + num1051 = -1; + } + if (npc.direction == num1051 && Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > (float)num1050) + { + npc.ai[2] = 1f; + } + if (npc.ai[2] != 1f) + { + npc.localAI[0] = 1f; + return; + } + npc.TargetClosest(true); + npc.spriteDirection = npc.direction; + npc.localAI[0] = 0f; + npc.velocity *= 0.9f; + float num1052 = revenge ? 0.13f : 0.115f; //0.1 + if (npc.life < npc.lifeMax / 2) + { + npc.velocity *= 0.9f; + num1052 += 0.05f; //0.05 + } + if (npc.life < npc.lifeMax / 3) + { + npc.velocity *= 0.9f; + num1052 += 0.05f; //0.05 + } + if (npc.life < npc.lifeMax / 5 || CalamityWorld.bossRushActive) + { + npc.velocity *= 0.9f; + num1052 += 0.05f; //0.05 + } + if (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y) < num1052) + { + npc.ai[2] = 0f; + npc.ai[1] += 1f; + return; + } + } + } + else if (npc.ai[0] == 2f) + { + npc.TargetClosest(true); + float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + float num1053 = 12f; + float num1054 = 0.2f; + float num10542 = 0.1f; + Vector2 vector118 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num1055 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector118.X; + float num1056 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 200f - vector118.Y; + float num1057 = (float)Math.Sqrt((double)(num1055 * num1055 + num1056 * num1056)); + if (num1057 < 800f) + { + npc.ai[0] = (((double)npc.life <= (double)npc.lifeMax * 0.66 || CalamityWorld.death) ? 5f : 1f); + npc.ai[1] = 0f; + npc.netUpdate = true; + return; + } + num1057 = num1053 / num1057; + if (npc.velocity.X < num1055) + { + npc.velocity.X = npc.velocity.X + num1054; + if (npc.velocity.X < 0f && num1055 > 0f) + { + npc.velocity.X = npc.velocity.X + num1054; + } + } + else if (npc.velocity.X > num1055) + { + npc.velocity.X = npc.velocity.X - num1054; + if (npc.velocity.X > 0f && num1055 < 0f) + { + npc.velocity.X = npc.velocity.X - num1054; + } + } + if (npc.velocity.Y < num1056) + { + npc.velocity.Y = npc.velocity.Y + num10542; + if (npc.velocity.Y < 0f && num1056 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num10542; + return; + } + } + else if (npc.velocity.Y > num1056) + { + npc.velocity.Y = npc.velocity.Y - num10542; + if (npc.velocity.Y > 0f && num1056 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num10542; + return; + } + } + } + else if (npc.ai[0] == 1f) + { + npc.localAI[0] = 0f; + npc.TargetClosest(true); + Vector2 vector119 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); + Vector2 vector120 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num1058 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector120.X; + float num1059 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector120.Y; + float num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); + npc.ai[1] += 1f; + npc.ai[1] += (float)(num1038 / 2); + if ((double)npc.life < (double)npc.lifeMax * 0.75 || CalamityWorld.bossRushActive) + { + npc.ai[1] += 0.25f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) + { + npc.ai[1] += 0.25f; + } + bool flag103 = false; + if (npc.ai[1] > 40f) + { + npc.ai[1] = 0f; + npc.ai[2] += 1f; + flag103 = true; + } + if (Collision.CanHit(vector119, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && flag103) + { + Main.PlaySound(3, (int)npc.position.X, (int)npc.position.Y, 8); + if (Main.netMode != 1) + { + int randomAmt = expertMode ? 2 : 4; + int num1061; + if (Main.rand.Next(randomAmt) == 0) + { + num1061 = mod.NPCType("PlagueBeeLargeG"); + } + else + { + num1061 = mod.NPCType("PlagueBeeG"); + } + if (expertMode && NPC.CountNPCS(mod.NPCType("PlagueMine")) < (aboveGroundEnrage ? 4 : 2)) + { + NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueMine"), 0, 0f, 0f, 0f, 0f, 255); + } + if (revenge && NPC.CountNPCS(mod.NPCType("PlaguebringerShade")) < (aboveGroundEnrage ? 2 : 1)) + { + NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlaguebringerShade"), 0, 0f, 0f, 0f, 0f, 255); + } + if (NPC.CountNPCS(mod.NPCType("PlagueBeeLargeG")) < 2) + { + int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, num1061, 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num1062].velocity.X = (float)Main.rand.Next(-200, 201) * 0.02f; + Main.npc[num1062].velocity.Y = (float)Main.rand.Next(-200, 201) * 0.02f; + Main.npc[num1062].localAI[0] = 60f; + Main.npc[num1062].netUpdate = true; + } + } + } + if (num1060 > 800f || !Collision.CanHit(new Vector2(vector119.X, vector119.Y - 30f), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + float num1063 = 14f; //changed from 14 not a prob + float num1064 = 0.2f; //changed from 0.1 not a prob + float num10642 = 0.07f; + vector120 = vector119; + num1058 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector120.X; + num1059 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector120.Y; + num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); + num1060 = num1063 / num1060; + if (npc.velocity.X < num1058) + { + npc.velocity.X = npc.velocity.X + num1064; + if (npc.velocity.X < 0f && num1058 > 0f) + { + npc.velocity.X = npc.velocity.X + num1064; + } + } + else if (npc.velocity.X > num1058) + { + npc.velocity.X = npc.velocity.X - num1064; + if (npc.velocity.X > 0f && num1058 < 0f) + { + npc.velocity.X = npc.velocity.X - num1064; + } + } + if (npc.velocity.Y < num1059) + { + npc.velocity.Y = npc.velocity.Y + num10642; + if (npc.velocity.Y < 0f && num1059 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num10642; + } + } + else if (npc.velocity.Y > num1059) + { + npc.velocity.Y = npc.velocity.Y - num10642; + if (npc.velocity.Y > 0f && num1059 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num10642; + } + } + } + else + { + npc.velocity *= 0.9f; + } + float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + if (npc.ai[2] > 3f) + { + npc.ai[0] = -1f; + npc.ai[1] = 1f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 5f) + { + npc.localAI[0] = 0f; + npc.TargetClosest(true); + Vector2 vector119 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); + Vector2 vector120 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num1058 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector120.X; + float num1059 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector120.Y; + float num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); + npc.ai[1] += 1f; + npc.ai[1] += (float)(num1038 / 2); + bool flag103 = false; + if ((double)npc.life < (double)npc.lifeMax * 0.25 || CalamityWorld.bossRushActive) + { + npc.ai[1] += 0.25f; //0.25 not a prob + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + npc.ai[1] += 0.25f; //0.25 not a prob + } + if (npc.ai[1] > 40f) //changed from 40 not a prob + { + npc.ai[1] = 0f; + npc.ai[2] += 1f; + flag103 = true; + } + if (Collision.CanHit(vector119, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && flag103) + { + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 88); + if (Main.netMode != 1) + { + if (expertMode && NPC.CountNPCS(mod.NPCType("PlagueMine")) < (aboveGroundEnrage ? 6 : 4)) + { + NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueMine"), 0, 0f, 0f, 0f, 0f, 255); + } + if (revenge && NPC.CountNPCS(mod.NPCType("PlaguebringerShade")) < 1 && aboveGroundEnrage) + { + NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlaguebringerShade"), 0, 0f, 0f, 0f, 0f, 255); + } + float projectileSpeed = revenge ? 6f : 5f; + float num1071 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector119.X + (float)Main.rand.Next(-80, 81); + float num1072 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector119.Y + (float)Main.rand.Next(-40, 41); + float num1073 = (float)Math.Sqrt((double)(num1071 * num1071 + num1072 * num1072)); + num1073 = projectileSpeed / num1073; + num1071 *= num1073; + num1072 *= num1073; + if (NPC.CountNPCS(mod.NPCType("PlagueHomingMissile")) < (aboveGroundEnrage ? 8 : 5)) + { + int num1062 = NPC.NewNPC((int)vector119.X, (int)vector119.Y, mod.NPCType("PlagueHomingMissile"), 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num1062].velocity.X = num1071; + Main.npc[num1062].velocity.Y = num1072; + Main.npc[num1062].netUpdate = true; + } + } + } + if (num1060 > 800f || !Collision.CanHit(new Vector2(vector119.X, vector119.Y - 30f), 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + float num1063 = 14f; //changed from 14 not a prob + float num1064 = 0.2f; //changed from 0.1 not a prob + float num10642 = 0.07f; + vector120 = vector119; + num1058 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector120.X; + num1059 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector120.Y; + num1060 = (float)Math.Sqrt((double)(num1058 * num1058 + num1059 * num1059)); + num1060 = num1063 / num1060; + if (npc.velocity.X < num1058) + { + npc.velocity.X = npc.velocity.X + num1064; + if (npc.velocity.X < 0f && num1058 > 0f) + { + npc.velocity.X = npc.velocity.X + num1064; + } + } + else if (npc.velocity.X > num1058) + { + npc.velocity.X = npc.velocity.X - num1064; + if (npc.velocity.X > 0f && num1058 < 0f) + { + npc.velocity.X = npc.velocity.X - num1064; + } + } + if (npc.velocity.Y < num1059) + { + npc.velocity.Y = npc.velocity.Y + num10642; + if (npc.velocity.Y < 0f && num1059 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num10642; + } + } + else if (npc.velocity.Y > num1059) + { + npc.velocity.Y = npc.velocity.Y - num10642; + if (npc.velocity.Y > 0f && num1059 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num10642; + } + } + } + else + { + npc.velocity *= 0.9f; + } + float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + if (npc.ai[2] > 3f) + { + npc.ai[0] = -1f; + npc.ai[1] = 1f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 3f) + { + Vector2 vector121 = new Vector2(npc.position.X + (float)(npc.width / 2) + (float)(Main.rand.Next(20) * npc.direction), npc.position.Y + (float)npc.height * 0.8f); + npc.ai[1] += 1f; + bool flag104 = false; + if (npc.GetGlobalNPC(mod).enraged) + { + if (npc.ai[1] % 10f == 9f) + { + flag104 = true; + } + } + else if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.death || CalamityWorld.bossRushActive || aboveGroundEnrage) + { + if (npc.ai[1] % 20f == 19f) + { + flag104 = true; + } + } + else if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + if (npc.ai[1] % 25f == 24f) + { + flag104 = true; + } + } + else if (npc.ai[1] % 30f == 29f) + { + flag104 = true; + } + if (flag104 && npc.position.Y + (float)npc.height < Main.player[npc.target].position.Y && Collision.CanHit(vector121, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + { + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); + if (Main.netMode != 1) + { + float projectileSpeed = revenge ? 6.5f : 6f; + if (jungleEnrage || npc.GetGlobalNPC(mod).enraged) + { + projectileSpeed += 10f; + } + float num1071 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector121.X + (float)Main.rand.Next(-80, 81); + float num1072 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector121.Y + (float)Main.rand.Next(-40, 41); + float num1073 = (float)Math.Sqrt((double)(num1071 * num1071 + num1072 * num1072)); + num1073 = projectileSpeed / num1073; + num1071 *= num1073; + num1072 *= num1073; + int num1074 = 40; //projectile damage + int num1075 = (Main.rand.Next(2) == 0 ? mod.ProjectileType("PlagueStingerGoliath") : mod.ProjectileType("PlagueStingerGoliathV2")); + if (expertMode) + { + num1074 = 28; //112 + int damageBoost = (int)(6f * (1f - (float)npc.life / (float)npc.lifeMax)); + num1074 += damageBoost; //112 to 136 + if (Main.rand.Next(6) == 0) + { + num1074 += 8; //144 to 168 + num1075 = mod.ProjectileType("HiveBombGoliath"); + } + } + else + { + if (Main.rand.Next(9) == 0) + { + num1074 = 50; + num1075 = mod.ProjectileType("HiveBombGoliath"); + } + } + Projectile.NewProjectile(vector121.X, vector121.Y, num1071, num1072, num1075, num1074, 0f, Main.myPlayer, -1f, 0f); + } + } + if (npc.position.Y > Main.player[npc.target].position.Y - 200f) //200 + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.98f; + } + npc.velocity.Y = npc.velocity.Y - 0.1f; + if (npc.velocity.Y > 2f) + { + npc.velocity.Y = 2f; + } + } + else if (npc.position.Y < Main.player[npc.target].position.Y - 500f) //500 + { + if (npc.velocity.Y < 0f) + { + npc.velocity.Y = npc.velocity.Y * 0.98f; + } + npc.velocity.Y = npc.velocity.Y + 0.1f; + if (npc.velocity.Y < -2f) + { + npc.velocity.Y = -2f; + } + } + if (npc.position.X + (float)(npc.width / 2) > Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) + 100f) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + npc.velocity.X = npc.velocity.X - 0.1f; + if (npc.velocity.X > 8f) + { + npc.velocity.X = 8f; + } + } + if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - 100f) + { + if (npc.velocity.X < 0f) + { + npc.velocity.X = npc.velocity.X * 0.98f; + } + npc.velocity.X = npc.velocity.X + 0.1f; + if (npc.velocity.X < -8f) + { + npc.velocity.X = -8f; + } + } + float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + if (npc.ai[1] > 300f) + { + npc.ai[0] = -1f; + npc.ai[1] = 3f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 4f) + { + int num1043 = 2; //2 + if (npc.ai[1] > (float)(2 * num1043) && npc.ai[1] % 2f == 0f) + { + MissileCountdown = 0; + npc.ai[0] = -1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return; + } + if (npc.ai[1] % 2f == 0f) + { + npc.TargetClosest(true); + float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; + if (Math.Abs(npc.position.Y + (float)(npc.height / 2) - (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 500f)) < 20f) + { + if (MissileCountdown == 1) + { + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 116); + if (Main.netMode != 1) + { + int speed = revenge ? 6 : 5; + float spawnX = Main.rand.Next(1000) - 500 + npc.Center.X; + float spawnY = npc.Center.Y; + Vector2 baseSpawn = new Vector2(spawnX, spawnY); + Vector2 baseVelocity = Main.player[npc.target].Center - baseSpawn; + baseVelocity.Normalize(); + baseVelocity = baseVelocity * speed; + int damage = expertMode ? 42 : 57; + for (int i = 0; i < MissileProjectiles; i++) + { + Vector2 spawn = baseSpawn; + spawn.X = spawn.X + i * 30 - (MissileProjectiles * 15); + Vector2 velocity = baseVelocity; + velocity = baseVelocity.RotatedBy(MathHelper.ToRadians(-MissileAngleSpread / 2 + (MissileAngleSpread * i / (float)MissileProjectiles))); + velocity.X = velocity.X + 3 * Main.rand.NextFloat() - 1.5f; + Projectile.NewProjectile(spawn.X, spawn.Y, velocity.X, velocity.Y, mod.ProjectileType("HiveBombGoliath"), damage, 10f, Main.myPlayer, 0f, Main.player[npc.target].position.Y); + } + } + } + npc.localAI[0] = 1f; + npc.ai[1] += 1f; + npc.ai[2] = 0f; + float num1044 = revenge ? 28f : 26f; //16 + Vector2 vector117 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num1045 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector117.X; + float num1046 = (Main.player[npc.target].position.Y - 500f) + (float)(Main.player[npc.target].height / 2) - vector117.Y; + float num1047 = (float)Math.Sqrt((double)(num1045 * num1045 + num1046 * num1046)); + num1047 = num1044 / num1047; + npc.velocity.X = num1045 * num1047; + npc.velocity.Y = num1046 * num1047; + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + return; + } + npc.localAI[0] = 0f; + float num1048 = 12f; //12 not a prob + float num1049 = 0.15f; //0.15 not a prob + if (npc.position.Y + (float)(npc.height / 2) < (Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - 500f)) + { + npc.velocity.Y = npc.velocity.Y + num1049; + } + else + { + npc.velocity.Y = npc.velocity.Y - num1049; + } + if (npc.velocity.Y < -12f) + { + npc.velocity.Y = -num1048; + } + if (npc.velocity.Y > 12f) + { + npc.velocity.Y = num1048; + } + if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > 600f) + { + npc.velocity.X = npc.velocity.X + 0.15f * (float)npc.direction; + } + else if (Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) < 300f) + { + npc.velocity.X = npc.velocity.X - 0.15f * (float)npc.direction; + } + else + { + npc.velocity.X = npc.velocity.X * 0.8f; + } + if (npc.velocity.X < -16f) + { + npc.velocity.X = -16f; + } + if (npc.velocity.X > 16f) + { + npc.velocity.X = 16f; + } + npc.direction = (playerLocation < 0 ? 1 : -1); + npc.spriteDirection = npc.direction; + return; + } + else + { + if (npc.velocity.X < 0f) + { + npc.direction = -1; + } + else + { + npc.direction = 1; + } + npc.spriteDirection = npc.direction; + int num1050 = 600; //600 not a prob + int num1051 = 1; + if (npc.position.X + (float)(npc.width / 2) < Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2)) + { + num1051 = -1; + } + if (npc.direction == num1051 && Math.Abs(npc.position.X + (float)(npc.width / 2) - (Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2))) > (float)num1050) + { + npc.ai[2] = 1f; + } + if (npc.ai[2] != 1f) + { + npc.localAI[0] = 1f; + return; + } + npc.TargetClosest(true); + npc.spriteDirection = npc.direction; + npc.localAI[0] = 0f; + npc.velocity *= 0.9f; + float num1052 = revenge ? 0.13f : 0.115f; //0.1 + if (npc.life < npc.lifeMax / 2) + { + npc.velocity *= 0.9f; + num1052 += 0.05f; //0.05 + } + if (npc.life < npc.lifeMax / 3) + { + npc.velocity *= 0.9f; + num1052 += 0.05f; //0.05 + } + if (npc.life < npc.lifeMax / 5 || CalamityWorld.bossRushActive) + { + npc.velocity *= 0.9f; + num1052 += 0.05f; //0.05 + } + if (Math.Abs(npc.velocity.X) + Math.Abs(npc.velocity.Y) < num1052) + { + npc.ai[2] = 0f; + npc.ai[1] += 1f; + return; + } + } + } + } - public override bool CheckActive() - { - return canDespawn; - } + public override bool CheckActive() + { + return canDespawn; + } - public override void HitEffect(int hitDirection, double damage) + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 2; k++) { @@ -962,12 +990,12 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath } if (npc.life <= 0) { - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg"), 2f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg2"), 2f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg3"), 2f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg4"), 2f); - Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg5"), 2f); - npc.position.X = npc.position.X + (float)(npc.width / 2); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg"), 2f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg2"), 2f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg3"), 2f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg4"), 2f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Pbg5"), 2f); + npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 100; npc.height = 100; @@ -994,82 +1022,119 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath } } - public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - Texture2D texture = Main.npcTexture[npc.type]; - Texture2D texture2 = mod.GetTexture("NPCs/PlaguebringerGoliath/PlaguebringerGoliathAltTex"); - Texture2D texture3 = mod.GetTexture("NPCs/PlaguebringerGoliath/PlaguebringerGoliathChargeTex"); - if (npc.localAI[0] == 1f) - { - CalamityMod.DrawTexture(spriteBatch, texture3, 0, npc, drawColor); - } - else - { - if (npc.localAI[1] == 0f) - { - CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); - } - else - { - CalamityMod.DrawTexture(spriteBatch, texture2, 0, npc, drawColor); - } - } - return false; - } + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Texture2D texture = Main.npcTexture[npc.type]; + if (npc.localAI[0] == 1f) + { + texture = mod.GetTexture("NPCs/PlaguebringerGoliath/PlaguebringerGoliathChargeTex"); + } + else + { + if (npc.localAI[1] == 0f) + { + texture = Main.npcTexture[npc.type]; + } + else + { + texture = mod.GetTexture("NPCs/PlaguebringerGoliath/PlaguebringerGoliathAltTex"); + } + } + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } - public override void FindFrame(int frameHeight) - { - npc.frameCounter += 1.0; - if (npc.frameCounter > 4.0) - { - npc.frame.Y = npc.frame.Y + frameHeight; - npc.frameCounter = 0.0; - } - if (npc.frame.Y >= frameHeight * 4) - { - npc.frame.Y = 0; - if (npc.localAI[0] != 1f) - { - npc.localAI[1] += 1f; - } - } - if (npc.localAI[1] > 1f) - { - npc.localAI[1] = 0f; - npc.netUpdate = true; - } - } + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 1.0; + if (npc.frameCounter > 4.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 4) + { + npc.frame.Y = 0; + if (npc.localAI[0] != 1f) + { + npc.localAI[1] += 1f; + } + } + if (npc.localAI[1] > 1f) + { + npc.localAI[1] = 0f; + npc.netUpdate = true; + } + } - public override void BossLoot(ref string name, ref int potionType) + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.GreaterHealingPotion; } - + public override void NPCLoot() { - if (Main.rand.Next(10) == 0) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("BloomStone"), 1, true); - } if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlaguebringerGoliathTrophy")); } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) { npc.DropBossBags(); } else { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PlagueCellCluster"), Main.rand.Next(10, 15)); + if (Main.rand.Next(10) == 0) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("BloomStone"), 1, true); + } if (Main.rand.Next(4) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MepheticSprayer")); @@ -1108,13 +1173,13 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath } } } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(mod.BuffType("Plague"), 300, true); diff --git a/NPCs/PlaguebringerShade/PlaguebringerShade.cs b/NPCs/PlaguebringerShade/PlaguebringerShade.cs index a3c7da967d..a37cb4fc1b 100644 --- a/NPCs/PlaguebringerShade/PlaguebringerShade.cs +++ b/NPCs/PlaguebringerShade/PlaguebringerShade.cs @@ -59,6 +59,8 @@ namespace CalamityMod.NPCs.PlaguebringerShade npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; + banner = npc.type; + bannerItem = mod.ItemType("PlaguebringerBanner"); } public override void AI() diff --git a/NPCs/Polterghast/PolterPhantom.cs b/NPCs/Polterghast/PolterPhantom.cs index e71833ff3a..449b2411ee 100644 --- a/NPCs/Polterghast/PolterPhantom.cs +++ b/NPCs/Polterghast/PolterPhantom.cs @@ -34,7 +34,7 @@ namespace CalamityMod.NPCs.Polterghast } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 2100000 : 1700000; + npc.lifeMax = CalamityWorld.death ? 1100000 : 900000; } npc.knockBackResist = 0f; npc.aiStyle = -1; //new @@ -54,6 +54,7 @@ namespace CalamityMod.NPCs.Polterghast npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit36; npc.DeathSound = SoundID.NPCDeath39; } @@ -198,7 +199,7 @@ namespace CalamityMod.NPCs.Polterghast if (speedBoost1) { npc.defense = 400; - npc.damage *= 4; + npc.damage = 1200; } else { diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 04ded92707..d9ab300c13 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -14,16 +14,16 @@ namespace CalamityMod.NPCs.Polterghast [AutoloadBossHead] public class Polterghast : ModNPC { - private int despawnTimer = 600; - private bool spawnGhost = false; - private bool boostDR = false; + private int despawnTimer = 600; + private bool spawnGhost = false; + private bool boostDR = false; - public override void SetStaticDefaults() + public override void SetStaticDefaults() { DisplayName.SetDefault("Polterghast"); Main.npcFrameCount[npc.type] = 12; } - + public override void SetDefaults() { npc.npcSlots = 50f; @@ -31,598 +31,608 @@ namespace CalamityMod.NPCs.Polterghast npc.width = 90; npc.height = 120; npc.defense = 150; - npc.lifeMax = CalamityWorld.revenge ? 660000 : 550000; - if (CalamityWorld.death) - { - npc.lifeMax = 880000; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 7600000 : 7000000; - } - npc.knockBackResist = 0f; + npc.lifeMax = CalamityWorld.revenge ? 495000 : 412500; + if (CalamityWorld.death) + { + npc.lifeMax = 660000; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 2800000 : 2500000; + } + npc.knockBackResist = 0f; npc.aiStyle = -1; //new - aiType = -1; //new - npc.value = Item.buyPrice(1, 20, 0, 0); + aiType = -1; //new + npc.value = Item.buyPrice(0, 60, 0, 0); npc.boss = true; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - } + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + } npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/RUIN"); - else - music = MusicID.Plantera; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/RUIN"); + else + music = MusicID.Plantera; npc.HitSound = SoundID.NPCHit7; npc.DeathSound = SoundID.NPCDeath39; bossBag = mod.ItemType("PolterghastBag"); } - public override void AI() - { - if (Main.raining) - { - Main.raining = false; - if (Main.netMode == 2) { NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); } - } - Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.5f, 1.25f, 1.25f); - npc.TargetClosest(true); - Vector2 vector = npc.Center; - if (Vector2.Distance(Main.player[npc.target].Center, vector) > 6000f) { npc.active = false; } - bool speedBoost1 = false; - bool despawnBoost = false; - if (npc.timeLeft < 1500) { npc.timeLeft = 1500; } - bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); - bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); - bool phase2 = (double)npc.life <= (double)npc.lifeMax * 0.75; //hooks detach and fire beams - bool phase3 = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.5 : 0.33); //hooks die and begins charging with ghosts spinning around player - bool phase4 = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.33 : 0.2); //starts spitting ghost dudes - bool phase5 = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.1 : 0.05); //starts moving incredibly fast - CalamityGlobalNPC.ghostBoss = npc.whoAmI; - if (npc.localAI[0] == 0f && Main.netMode != 1) - { - npc.localAI[0] = 1f; - int num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - } - int[] array2 = new int[4]; - float num730 = 0f; - float num731 = 0f; - int num732 = 0; - int num; - for (int num733 = 0; num733 < 200; num733 = num + 1) - { - if (Main.npc[num733].active && Main.npc[num733].type == mod.NPCType("PolterghastHook")) - { - num730 += Main.npc[num733].Center.X; - num731 += Main.npc[num733].Center.Y; - array2[num732] = num733; - num732++; - if (num732 > 3) { break; } - } - num = num733; - } - num730 /= (float)num732; - num731 /= (float)num732; - float num734 = 2.5f; - float num735 = 0.025f; - if (!Main.player[npc.target].ZoneDungeon && !CalamityWorld.bossRushActive) - { - despawnTimer--; - if (despawnTimer <= 0) { despawnBoost = true; } - speedBoost1 = true; - num734 += 8f; - num735 = 0.15f; - } - else { despawnTimer = 600; } - if (phase2) - { - num734 = 3.5f; - num735 = 0.035f; - } - if (phase3) - { - if (NPC.CountNPCS(mod.NPCType("PolterPhantom")) > 0) - { - boostDR = true; - if (npc.ai[2] >= 300f) - { - num734 = phase5 ? 18f : 12f; - num735 = phase5 ? 0.12f : 0.08f; - } - else - { - if (phase5) - { - num734 = 5f; - num735 = 0.05f; - } - else if (phase4) - { - num734 = 4.5f; - num735 = 0.045f; - } - else - { - num734 = 4f; - num735 = 0.04f; - } - } - npc.ai[2] += 1f; - if (npc.ai[2] >= 600f) - { - npc.ai[2] = 0f; - npc.netUpdate = true; - } - } - else - { - boostDR = false; - num734 = phase5 ? 22f : 18f; - num735 = phase5 ? 0.15f : 0.12f; - npc.localAI[2] += 1f; - if (npc.localAI[2] >= 600f) - { - npc.localAI[2] = 0f; - NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterPhantom"), 0, 0f, 0f, 0f, 0f, 255); - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); - for (int num621 = 0; num621 < 10; num621++) - { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - Main.dust[num622].noGravity = true; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 30; num623++) - { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - npc.netUpdate = true; - } - } - } - if (expertMode) - { - num734 += revenge ? 1.5f : 1f; - num734 *= revenge ? 1.25f : 1.1f; - num735 += revenge ? 0.015f : 0.01f; - num735 *= revenge ? 1.2f : 1.1f; - } - Vector2 vector91 = new Vector2(num730, num731); - float num736 = Main.player[npc.target].Center.X - vector91.X; - float num737 = Main.player[npc.target].Center.Y - vector91.Y; - if (despawnBoost) - { - num737 *= -1f; - num736 *= -1f; - num734 += 8f; - } - float num738 = (float)Math.Sqrt((double)(num736 * num736 + num737 * num737)); - int num739 = 500; - if (speedBoost1) { num739 += 500; } - if (expertMode) { num739 += 150; } - if (num738 >= (float)num739) - { - num738 = (float)num739 / num738; - num736 *= num738; - num737 *= num738; - } - num730 += num736; - num731 += num737; - vector91 = new Vector2(vector.X, vector.Y); - num736 = num730 - vector91.X; - num737 = num731 - vector91.Y; - num738 = (float)Math.Sqrt((double)(num736 * num736 + num737 * num737)); - if (num738 < num734) - { - num736 = npc.velocity.X; - num737 = npc.velocity.Y; - } - else - { - num738 = num734 / num738; - num736 *= num738; - num737 *= num738; - } - Vector2 vector92 = new Vector2(vector.X, vector.Y); - float num740 = Main.player[npc.target].Center.X - vector92.X; - float num741 = Main.player[npc.target].Center.Y - vector92.Y; - npc.rotation = (float)Math.Atan2((double)num741, (double)num740) + 1.57f; - if (npc.velocity.X < num736) - { - npc.velocity.X = npc.velocity.X + num735; - if (npc.velocity.X < 0f && num736 > 0f) - { - npc.velocity.X = npc.velocity.X + num735 * 2f; - } - } - else if (npc.velocity.X > num736) - { - npc.velocity.X = npc.velocity.X - num735; - if (npc.velocity.X > 0f && num736 < 0f) - { - npc.velocity.X = npc.velocity.X - num735 * 2f; - } - } - if (npc.velocity.Y < num737) - { - npc.velocity.Y = npc.velocity.Y + num735; - if (npc.velocity.Y < 0f && num737 > 0f) - { - npc.velocity.Y = npc.velocity.Y + num735 * 2f; - } - } - else if (npc.velocity.Y > num737) - { - npc.velocity.Y = npc.velocity.Y - num735; - if (npc.velocity.Y > 0f && num737 < 0f) - { - npc.velocity.Y = npc.velocity.Y - num735 * 2f; - } - } - if (!phase2 && !phase3) - { - if (speedBoost1) - { - npc.defense = 300; - npc.damage = (int)(200f * Main.damageMultiplier); - } - else - { - npc.damage = expertMode ? 240 : 150; - npc.defense = 150; - } - if (Main.netMode != 1) - { - npc.localAI[1] += 1f; - if ((double)npc.life < (double)npc.lifeMax * 0.9) - { - npc.localAI[1] += 1f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.8) - { - npc.localAI[1] += 1f; - } - if (speedBoost1 || CalamityWorld.bossRushActive) - { - npc.localAI[1] += 6f; - } - if (expertMode) - { - npc.localAI[1] += 1f; - } - if (npc.localAI[1] > 120f) - { - npc.localAI[1] = 0f; - bool flag47 = Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height); - if (npc.localAI[3] > 0f) - { - flag47 = true; - npc.localAI[3] = 0f; - } - if (flag47) - { - Vector2 vector93 = new Vector2(vector.X, vector.Y); - float num742 = 11f; - if (expertMode) - { - num742 = (CalamityWorld.bossRushActive ? 18f : 12f); - } - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - num742 *= 2f; - } - float num743 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector93.X; - float num744 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector93.Y; - float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); - num745 = num742 / num745; - num743 *= num745; - num744 *= num745; - int num746 = expertMode ? 46 : 55; - int num747 = mod.ProjectileType("PhantomShot"); - int maxValue2 = 2; - if (expertMode) - { - maxValue2 = 4; - } - if ((double)npc.life < (double)npc.lifeMax * 0.8 && Main.rand.Next(maxValue2) == 0) - { - num746 = expertMode ? 51 : 60; - npc.localAI[1] = -30f; - num747 = mod.ProjectileType("PhantomBlast"); - } - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - num746 *= 2; - } - vector93.X += num743 * 3f; - vector93.Y += num744 * 3f; - int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num748].timeLeft = 300; - return; - } - else - { - Vector2 vector93 = new Vector2(vector.X, vector.Y); - float num742 = 11f; - if (expertMode) - { - num742 = (CalamityWorld.bossRushActive ? 18f : 12f); - } - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - num742 *= 2f; - } - float num743 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector93.X; - float num744 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector93.Y; - float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); - num745 = num742 / num745; - num743 *= num745; - num744 *= num745; - int num746 = expertMode ? 51 : 60; - int num747 = mod.ProjectileType("PhantomBlast"); - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - num746 *= 2; - } - vector93.X += num743 * 3f; - vector93.Y += num744 * 3f; - int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num748].timeLeft = 180; - return; - } - } - } - } - else if (!phase3) - { - if (npc.ai[0] == 0f) - { - npc.ai[0] += 1f; - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); - for (int num621 = 0; num621 < 10; num621++) - { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 60, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - Main.dust[num622].noGravity = true; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 30; num623++) - { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - } - npc.GivenName = "Necroghast"; - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - npc.defense = 200; - npc.damage = (int)(300f * Main.damageMultiplier); - } - else - { - npc.damage = expertMode ? 288 : 180; - npc.defense = 100; - } - if (Main.netMode != 1) - { - npc.localAI[1] += 1f; - if (speedBoost1 || CalamityWorld.bossRushActive) - { - npc.localAI[1] += 8f; - } - if (expertMode) - { - npc.localAI[1] += 1f; - } - if (npc.localAI[1] > 80f) - { - npc.localAI[1] = 0f; - bool flag47 = Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height); - if (npc.localAI[3] > 0f) - { - flag47 = true; - npc.localAI[3] = 0f; - } - if (flag47) - { - Vector2 vector93 = new Vector2(vector.X, vector.Y); - float num742 = 11f; - if (expertMode) - { - num742 = (CalamityWorld.bossRushActive ? 18f : 12f); - } - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - num742 *= 2f; - } - float num743 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector93.X; - float num744 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector93.Y; - float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); - num745 = num742 / num745; - num743 *= num745; - num744 *= num745; - int num746 = expertMode ? 49 : 60; - int num747 = mod.ProjectileType("PhantomShot2"); - int maxValue2 = 2; - if (expertMode) - { - maxValue2 = 4; - } - if (Main.rand.Next(maxValue2) == 0) - { - num746 = expertMode ? 54 : 65; - npc.localAI[1] = -30f; - num747 = mod.ProjectileType("PhantomBlast2"); - } - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - num746 *= 2; - } - vector93.X += num743 * 3f; - vector93.Y += num744 * 3f; - int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num748].timeLeft = 400; - return; - } - else - { - Vector2 vector93 = new Vector2(vector.X, vector.Y); - float num742 = 11f; - if (expertMode) - { - num742 = (CalamityWorld.bossRushActive ? 18f : 12f); - } - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - num742 *= 2f; - } - float num743 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector93.X; - float num744 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector93.Y; - float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); - num745 = num742 / num745; - num743 *= num745; - num744 *= num745; - int num746 = expertMode ? 54 : 65; - int num747 = mod.ProjectileType("PhantomBlast2"); - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - num746 *= 2; - } - vector93.X += num743 * 3f; - vector93.Y += num744 * 3f; - int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[num748].timeLeft = 240; - return; - } - } - } - } - else - { - npc.HitSound = SoundID.NPCHit36; - if (!spawnGhost) - { - spawnGhost = true; - if (Main.netMode != 1) - { - NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterPhantom"), 0, 0f, 0f, 0f, 0f, 255); - for (int I = 0; I < 3; I++) - { - int Phantom = NPC.NewNPC((int)(Main.player[npc.target].Center.X + (Math.Sin(I * 120) * 500)), - (int)(Main.player[npc.target].Center.Y + (Math.Cos(I * 120) * 500)), mod.NPCType("PhantomFuckYou"), 0, 0, 0, 0, -1); - NPC Eye = Main.npc[Phantom]; - Eye.ai[0] = I * 120; - Eye.ai[3] = I * 120; - } - } - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); - for (int num621 = 0; num621 < 10; num621++) - { - int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 60, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - Main.dust[num622].noGravity = true; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 30; num623++) - { - int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - } - npc.GivenName = "Necroplasm"; - if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) - { - npc.defense = 200; - npc.damage = (int)(400f * Main.damageMultiplier); - } - else - { - npc.damage = expertMode ? 336 : 210; - npc.defense = 0; - } - if (phase4) - { - npc.localAI[1] += 1f; - if (npc.localAI[1] >= 150f) - { - float num757 = 8f; - Vector2 vector94 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float num758 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector94.X + (float)Main.rand.Next(-10, 11); - float num759 = Math.Abs(num758 * 0.2f); - float num760 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector94.Y + (float)Main.rand.Next(-10, 11); - if (num760 > 0f) - { - num759 = 0f; - } - num760 -= num759; - float num761 = (float)Math.Sqrt((double)(num758 * num758 + num760 * num760)); - num761 = num757 / num761; - num758 *= num761; - num760 *= num761; - if (NPC.CountNPCS(mod.NPCType("PhantomSpiritL")) < (revenge ? 3 : 2) && Main.netMode != 1) - { - int num762 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PhantomSpiritL"), 0, 0f, 0f, 0f, 0f, 255); - Main.npc[num762].velocity.X = num758; - Main.npc[num762].velocity.Y = num760; - Main.npc[num762].netUpdate = true; - } - npc.localAI[1] = 0f; - return; - } - } - } - } - + public override void AI() + { + if (Main.raining) + { + Main.raining = false; + if (Main.netMode == 2) { NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); } + } + Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.5f, 1.25f, 1.25f); + npc.TargetClosest(true); + Vector2 vector = npc.Center; + if (Vector2.Distance(Main.player[npc.target].Center, vector) > 6000f) { npc.active = false; } + bool speedBoost1 = false; + bool despawnBoost = false; + if (npc.timeLeft < 1500) { npc.timeLeft = 1500; } + bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); + bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); + bool phase2 = (double)npc.life <= (double)npc.lifeMax * 0.75; //hooks detach and fire beams + bool phase3 = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.5 : 0.33); //hooks die and begins charging with ghosts spinning around player + bool phase4 = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.33 : 0.2); //starts spitting ghost dudes + bool phase5 = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.1 : 0.05); //starts moving incredibly fast + CalamityGlobalNPC.ghostBoss = npc.whoAmI; + if (npc.localAI[0] == 0f && Main.netMode != 1) + { + npc.localAI[0] = 1f; + int num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + num729 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterghastHook"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + } + int[] array2 = new int[4]; + float num730 = 0f; + float num731 = 0f; + int num732 = 0; + int num; + for (int num733 = 0; num733 < 200; num733 = num + 1) + { + if (Main.npc[num733].active && Main.npc[num733].type == mod.NPCType("PolterghastHook")) + { + num730 += Main.npc[num733].Center.X; + num731 += Main.npc[num733].Center.Y; + array2[num732] = num733; + num732++; + if (num732 > 3) { break; } + } + num = num733; + } + num730 /= (float)num732; + num731 /= (float)num732; + float num734 = 2.5f; + float num735 = 0.025f; + if (!Main.player[npc.target].ZoneDungeon && !CalamityWorld.bossRushActive) + { + despawnTimer--; + if (despawnTimer <= 0) { despawnBoost = true; } + speedBoost1 = true; + num734 += 8f; + num735 = 0.15f; + } + else { despawnTimer = 600; } + if (phase2) + { + num734 = 3.5f; + num735 = 0.035f; + } + if (phase3) + { + if (NPC.CountNPCS(mod.NPCType("PolterPhantom")) > 0) + { + boostDR = true; + if (npc.ai[2] >= 300f) + { + num734 = phase5 ? 18f : 12f; + num735 = phase5 ? 0.12f : 0.08f; + } + else + { + if (phase5) + { + num734 = 5f; + num735 = 0.05f; + } + else if (phase4) + { + num734 = 4.5f; + num735 = 0.045f; + } + else + { + num734 = 4f; + num735 = 0.04f; + } + } + npc.ai[2] += 1f; + if (npc.ai[2] >= 600f) + { + npc.ai[2] = 0f; + npc.netUpdate = true; + } + } + else + { + boostDR = false; + num734 = phase5 ? 22f : 18f; + num735 = phase5 ? 0.15f : 0.12f; + npc.localAI[2] += 1f; + if (npc.localAI[2] >= 600f) + { + npc.localAI[2] = 0f; + NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterPhantom"), 0, 0f, 0f, 0f, 0f, 255); + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); + for (int num621 = 0; num621 < 10; num621++) + { + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + Main.dust[num622].noGravity = true; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 30; num623++) + { + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 173, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + } + npc.netUpdate = true; + } + } + } + if (expertMode) + { + num734 += revenge ? 1.5f : 1f; + num734 *= revenge ? 1.25f : 1.1f; + num735 += revenge ? 0.015f : 0.01f; + num735 *= revenge ? 1.2f : 1.1f; + } + Vector2 vector91 = new Vector2(num730, num731); + float num736 = Main.player[npc.target].Center.X - vector91.X; + float num737 = Main.player[npc.target].Center.Y - vector91.Y; + if (despawnBoost) + { + num737 *= -1f; + num736 *= -1f; + num734 += 8f; + } + float num738 = (float)Math.Sqrt((double)(num736 * num736 + num737 * num737)); + int num739 = 500; + if (speedBoost1) { num739 += 500; } + if (expertMode) { num739 += 150; } + if (num738 >= (float)num739) + { + num738 = (float)num739 / num738; + num736 *= num738; + num737 *= num738; + } + num730 += num736; + num731 += num737; + vector91 = new Vector2(vector.X, vector.Y); + num736 = num730 - vector91.X; + num737 = num731 - vector91.Y; + num738 = (float)Math.Sqrt((double)(num736 * num736 + num737 * num737)); + if (num738 < num734) + { + num736 = npc.velocity.X; + num737 = npc.velocity.Y; + } + else + { + num738 = num734 / num738; + num736 *= num738; + num737 *= num738; + } + Vector2 vector92 = new Vector2(vector.X, vector.Y); + float num740 = Main.player[npc.target].Center.X - vector92.X; + float num741 = Main.player[npc.target].Center.Y - vector92.Y; + npc.rotation = (float)Math.Atan2((double)num741, (double)num740) + 1.57f; + if (npc.velocity.X < num736) + { + npc.velocity.X = npc.velocity.X + num735; + if (npc.velocity.X < 0f && num736 > 0f) + { + npc.velocity.X = npc.velocity.X + num735 * 2f; + } + } + else if (npc.velocity.X > num736) + { + npc.velocity.X = npc.velocity.X - num735; + if (npc.velocity.X > 0f && num736 < 0f) + { + npc.velocity.X = npc.velocity.X - num735 * 2f; + } + } + if (npc.velocity.Y < num737) + { + npc.velocity.Y = npc.velocity.Y + num735; + if (npc.velocity.Y < 0f && num737 > 0f) + { + npc.velocity.Y = npc.velocity.Y + num735 * 2f; + } + } + else if (npc.velocity.Y > num737) + { + npc.velocity.Y = npc.velocity.Y - num735; + if (npc.velocity.Y > 0f && num737 < 0f) + { + npc.velocity.Y = npc.velocity.Y - num735 * 2f; + } + } + if (!phase2 && !phase3) + { + if (speedBoost1) + { + npc.defense = 300; + npc.damage = (int)(200f * Main.damageMultiplier); + } + else + { + npc.damage = expertMode ? 240 : 150; + npc.defense = 150; + } + if (Main.netMode != 1) + { + npc.localAI[1] += 1f; + if ((double)npc.life < (double)npc.lifeMax * 0.9) + { + npc.localAI[1] += 1f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.8) + { + npc.localAI[1] += 1f; + } + if (speedBoost1 || CalamityWorld.bossRushActive) + { + npc.localAI[1] += 6f; + } + if (expertMode) + { + npc.localAI[1] += 1f; + } + if (npc.localAI[1] > 120f) + { + npc.localAI[1] = 0f; + bool flag47 = Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height); + if (npc.localAI[3] > 0f) + { + flag47 = true; + npc.localAI[3] = 0f; + } + if (flag47) + { + Vector2 vector93 = new Vector2(vector.X, vector.Y); + float num742 = 11f; + if (expertMode) + { + num742 = (CalamityWorld.bossRushActive ? 18f : 12f); + } + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + num742 *= 2f; + } + float num743 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector93.X; + float num744 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector93.Y; + float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); + num745 = num742 / num745; + num743 *= num745; + num744 *= num745; + int num746 = expertMode ? 46 : 55; + int num747 = mod.ProjectileType("PhantomShot"); + int maxValue2 = 2; + if (expertMode) + { + maxValue2 = 4; + } + if ((double)npc.life < (double)npc.lifeMax * 0.8 && Main.rand.Next(maxValue2) == 0) + { + num746 = expertMode ? 51 : 60; + npc.localAI[1] = -30f; + num747 = mod.ProjectileType("PhantomBlast"); + } + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + num746 *= 2; + } + vector93.X += num743 * 3f; + vector93.Y += num744 * 3f; + int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[num748].timeLeft = 300; + return; + } + else + { + Vector2 vector93 = new Vector2(vector.X, vector.Y); + float num742 = 11f; + if (expertMode) + { + num742 = (CalamityWorld.bossRushActive ? 18f : 12f); + } + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + num742 *= 2f; + } + float num743 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector93.X; + float num744 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector93.Y; + float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); + num745 = num742 / num745; + num743 *= num745; + num744 *= num745; + int num746 = expertMode ? 51 : 60; + int num747 = mod.ProjectileType("PhantomBlast"); + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + num746 *= 2; + } + vector93.X += num743 * 3f; + vector93.Y += num744 * 3f; + int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[num748].timeLeft = 180; + return; + } + } + } + } + else if (!phase3) + { + if (npc.ai[0] == 0f) + { + npc.ai[0] += 1f; + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt5"), 1f); + for (int num621 = 0; num621 < 10; num621++) + { + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 60, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + Main.dust[num622].noGravity = true; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 30; num623++) + { + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + } + } + npc.GivenName = "Necroghast"; + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + npc.defense = 200; + npc.damage = (int)(300f * Main.damageMultiplier); + } + else + { + npc.damage = expertMode ? 288 : 180; + npc.defense = 100; + } + if (Main.netMode != 1) + { + npc.localAI[1] += 1f; + if (speedBoost1 || CalamityWorld.bossRushActive) + { + npc.localAI[1] += 8f; + } + if (expertMode) + { + npc.localAI[1] += 1f; + } + if (npc.localAI[1] > 80f) + { + npc.localAI[1] = 0f; + bool flag47 = Collision.CanHit(npc.position, npc.width, npc.height, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height); + if (npc.localAI[3] > 0f) + { + flag47 = true; + npc.localAI[3] = 0f; + } + if (flag47) + { + Vector2 vector93 = new Vector2(vector.X, vector.Y); + float num742 = 11f; + if (expertMode) + { + num742 = (CalamityWorld.bossRushActive ? 18f : 12f); + } + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + num742 *= 2f; + } + float num743 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector93.X; + float num744 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector93.Y; + float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); + num745 = num742 / num745; + num743 *= num745; + num744 *= num745; + int num746 = expertMode ? 49 : 60; + int num747 = mod.ProjectileType("PhantomShot2"); + int maxValue2 = 2; + if (expertMode) + { + maxValue2 = 4; + } + if (Main.rand.Next(maxValue2) == 0) + { + num746 = expertMode ? 54 : 65; + npc.localAI[1] = -30f; + num747 = mod.ProjectileType("PhantomBlast2"); + } + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + num746 *= 2; + } + vector93.X += num743 * 3f; + vector93.Y += num744 * 3f; + int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[num748].timeLeft = 400; + return; + } + else + { + Vector2 vector93 = new Vector2(vector.X, vector.Y); + float num742 = 11f; + if (expertMode) + { + num742 = (CalamityWorld.bossRushActive ? 18f : 12f); + } + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + num742 *= 2f; + } + float num743 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector93.X; + float num744 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector93.Y; + float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); + num745 = num742 / num745; + num743 *= num745; + num744 *= num745; + int num746 = expertMode ? 54 : 65; + int num747 = mod.ProjectileType("PhantomBlast2"); + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + num746 *= 2; + } + vector93.X += num743 * 3f; + vector93.Y += num744 * 3f; + int num748 = Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[num748].timeLeft = 240; + return; + } + } + } + } + else + { + npc.HitSound = SoundID.NPCHit36; + if (!spawnGhost) + { + spawnGhost = true; + if (Main.netMode != 1) + { + NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PolterPhantom"), 0, 0f, 0f, 0f, 0f, 255); + for (int I = 0; I < 3; I++) + { + int Phantom = NPC.NewNPC((int)(Main.player[npc.target].Center.X + (Math.Sin(I * 120) * 500)), + (int)(Main.player[npc.target].Center.Y + (Math.Cos(I * 120) * 500)), mod.NPCType("PhantomFuckYou"), 0, 0, 0, 0, -1); + NPC Eye = Main.npc[Phantom]; + Eye.ai[0] = I * 120; + Eye.ai[3] = I * 120; + } + } + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 122); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Polt5"), 1f); + for (int num621 = 0; num621 < 10; num621++) + { + int num622 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 60, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + Main.dust[num622].noGravity = true; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 30; num623++) + { + int num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(npc.position.X, npc.position.Y), npc.width, npc.height, 180, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + } + } + npc.GivenName = "Necroplasm"; + if (speedBoost1 || npc.GetGlobalNPC(mod).enraged) + { + npc.defense = 200; + npc.damage = (int)(400f * Main.damageMultiplier); + } + else + { + npc.damage = expertMode ? 336 : 210; + npc.defense = 0; + } + if (phase4) + { + npc.localAI[1] += 1f; + if (npc.localAI[1] >= 150f) + { + float num757 = 8f; + Vector2 vector94 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num758 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector94.X + (float)Main.rand.Next(-10, 11); + float num759 = Math.Abs(num758 * 0.2f); + float num760 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector94.Y + (float)Main.rand.Next(-10, 11); + if (num760 > 0f) + { + num759 = 0f; + } + num760 -= num759; + float num761 = (float)Math.Sqrt((double)(num758 * num758 + num760 * num760)); + num761 = num757 / num761; + num758 *= num761; + num760 *= num761; + if (NPC.CountNPCS(mod.NPCType("PhantomSpiritL")) < (revenge ? 3 : 2) && Main.netMode != 1) + { + int num762 = NPC.NewNPC((int)vector.X, (int)vector.Y, mod.NPCType("PhantomSpiritL"), 0, 0f, 0f, 0f, 0f, 255); + Main.npc[num762].velocity.X = num758; + Main.npc[num762].velocity.Y = num760; + Main.npc[num762].netUpdate = true; + } + npc.localAI[1] = 0f; + return; + } + } + } + } + public override void NPCLoot() { - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.rand.Next(10) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PolterghastTrophy")); - } - if (Main.expertMode) + if (CalamityWorld.armageddon) + { + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PolterghastTrophy")); + } + if (Main.expertMode) { npc.DropBossBags(); } @@ -659,34 +669,34 @@ namespace CalamityMod.NPCs.Polterghast } } } - + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.SuperHealingPotion; } - + public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) { - double newDamage = (damage + (int)((double)defense * 0.25)); - float protection = 0.1f + //.1 - ((double)npc.life <= (double)npc.lifeMax * 0.75 ? 0.05f : 0f) + //.15 - ((double)npc.life <= (double)npc.lifeMax * (CalamityWorld.revenge ? 0.5 : 0.33) ? 0.05f : 0f) + //.2 - (boostDR ? 0.6f : 0f); //.8 - if (npc.ichor) - { - protection *= 0.88f; - } - else if (npc.onFire2) - { - protection *= 0.9f; - } - if (newDamage < 1.0) + double newDamage = (damage + (int)((double)defense * 0.25)); + float protection = 0.1f + //.1 + ((double)npc.life <= (double)npc.lifeMax * 0.75 ? 0.05f : 0f) + //.15 + ((double)npc.life <= (double)npc.lifeMax * (CalamityWorld.revenge ? 0.5 : 0.33) ? 0.05f : 0f) + //.2 + (boostDR ? 0.6f : 0f); //.8 + if (npc.ichor) + { + protection *= 0.88f; + } + else if (npc.onFire2) + { + protection *= 0.9f; + } + if (newDamage < 1.0) { newDamage = 1.0; } if (newDamage >= 1.0) { - newDamage = (double)((int)((double)(1f - (protection * (npc.ichor ? 0.88f : 1f))) * newDamage)); + newDamage = (double)((int)((double)(1f - protection) * newDamage)); if (newDamage < 1.0) { newDamage = 1.0; @@ -695,7 +705,7 @@ namespace CalamityMod.NPCs.Polterghast damage = newDamage; return true; } - + public override void FindFrame(int frameHeight) { bool phase2 = (double)npc.life > (double)npc.lifeMax * (CalamityWorld.revenge ? 0.5 : 0.33); @@ -735,25 +745,25 @@ namespace CalamityMod.NPCs.Polterghast } } } - + public override void OnHitPlayer(Player player, int damage, bool crit) { - if (CalamityWorld.revenge) - player.AddBuff(mod.BuffType("Horror"), 300, true); + if (CalamityWorld.revenge) + player.AddBuff(mod.BuffType("Horror"), 300, true); } - + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; return true; } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void HitEffect(int hitDirection, double damage) { Dust.NewDust(npc.position, npc.width, npc.height, 180, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/Polterghast/PolterghastHook.cs b/NPCs/Polterghast/PolterghastHook.cs index e027dc9ed3..8b515df74c 100644 --- a/NPCs/Polterghast/PolterghastHook.cs +++ b/NPCs/Polterghast/PolterghastHook.cs @@ -226,7 +226,7 @@ namespace CalamityMod.NPCs.Polterghast { float num151 = 5f; int num152 = 60; - int num153 = 299; + int num153 = mod.ProjectileType("PhantomHookShot"); num149 = num151 / num149; num147 *= num149; num148 *= num149; diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs index 80f899d3cd..76cda5793b 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss.cs @@ -13,9 +13,9 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss [AutoloadBossHead] public class ProfanedGuardianBoss : ModNPC { - public int flareTimer = 0; //projectile stuff - public int flareProjectiles = 1; - public int dustTimer = 3; + private int flareTimer = 0; + private int flareProjectiles = 1; + private int dustTimer = 3; public override void SetStaticDefaults() { @@ -34,7 +34,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss npc.lifeMax = 102500; if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 1200000 : 1000000; + npc.lifeMax = CalamityWorld.death ? 600000 : 500000; } npc.knockBackResist = 0f; npc.noGravity = true; @@ -46,7 +46,9 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Guardians"); else music = MusicID.Boss1; - for (int k = 0; k < npc.buffImmune.Length; k++) + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; + for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; @@ -226,6 +228,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss } } } + npc.damage = expertMode ? 200 : 100; if (npc.ai[0] == 0f) { npc.knockBackResist = 0f; @@ -302,6 +305,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss dustTimer = 3; } } + npc.damage = expertMode ? 240 : 120; npc.knockBackResist = 0f; float num1016 = num1003; npc.ai[1] += 1f; @@ -342,7 +346,51 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss npc.velocity *= 0.95f; } } - + + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0); + while (npc.ai[0] == 2f && Lighting.NotRetro && ((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157))) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + return false; + } + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; @@ -379,6 +427,10 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA4"), 1f); for (int k = 0; k < 50; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 244, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs index 17faab45b8..cb1725234b 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss2.cs @@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss { npc.npcSlots = 3f; npc.aiStyle = -1; - npc.damage = 100; + npc.damage = 80; npc.width = 100; //324 npc.height = 80; //216 npc.defense = 40; @@ -31,11 +31,12 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss npc.value = 0f; if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 800000 : 600000; + npc.lifeMax = CalamityWorld.death ? 400000 : 300000; } npc.knockBackResist = 0f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; aiType = -1; npc.boss = true; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); @@ -239,6 +240,9 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT3"), 1f); for (int k = 0; k < 50; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 244, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs index 6df9dfd035..b744feabcb 100644 --- a/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs +++ b/NPCs/ProfanedGuardianBoss/ProfanedGuardianBoss3.cs @@ -23,7 +23,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss { npc.npcSlots = 3f; npc.aiStyle = -1; - npc.damage = 100; + npc.damage = 80; npc.width = 100; //324 npc.height = 80; //216 npc.defense = 25; @@ -31,11 +31,12 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss npc.value = 0f; if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 480000 : 400000; + npc.lifeMax = CalamityWorld.death ? 240000 : 200000; } npc.knockBackResist = 0f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; aiType = -1; npc.boss = true; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); @@ -239,6 +240,11 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH5"), 1f); for (int k = 0; k < 50; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 244, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/Providence/ProvSpawnDefense.cs b/NPCs/Providence/ProvSpawnDefense.cs index e47aa27806..cb4e1fe2ae 100644 --- a/NPCs/Providence/ProvSpawnDefense.cs +++ b/NPCs/Providence/ProvSpawnDefense.cs @@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.Providence npc.width = 100; //324 npc.height = 80; //216 npc.defense = 40; - npc.lifeMax = 21875; + npc.lifeMax = 25000; if (CalamityWorld.bossRushActive) { npc.lifeMax = CalamityWorld.death ? 360000 : 300000; @@ -117,7 +117,7 @@ namespace CalamityMod.NPCs.Providence double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; double offsetAngle; - int damage = expertMode ? 33 : 48; + int damage = expertMode ? 40 : 59; int projectileShot = mod.ProjectileType("ProfanedSpear"); int i; for (i = 0; i < 3; i++) @@ -181,6 +181,9 @@ namespace CalamityMod.NPCs.Providence } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossT3"), 1f); for (int k = 0; k < 30; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 244, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/Providence/ProvSpawnHealer.cs b/NPCs/Providence/ProvSpawnHealer.cs index 01eac8f55b..f34afdcc20 100644 --- a/NPCs/Providence/ProvSpawnHealer.cs +++ b/NPCs/Providence/ProvSpawnHealer.cs @@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.Providence npc.width = 100; //324 npc.height = 80; //216 npc.defense = 30; - npc.lifeMax = 37500; + npc.lifeMax = 40000; if (CalamityWorld.bossRushActive) { npc.lifeMax = CalamityWorld.death ? 500000 : 400000; @@ -182,6 +182,11 @@ namespace CalamityMod.NPCs.Providence } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossH5"), 1f); for (int k = 0; k < 50; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 244, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/Providence/ProvSpawnOffense.cs b/NPCs/Providence/ProvSpawnOffense.cs index e275ee2f2a..5833bff0da 100644 --- a/NPCs/Providence/ProvSpawnOffense.cs +++ b/NPCs/Providence/ProvSpawnOffense.cs @@ -24,11 +24,11 @@ namespace CalamityMod.NPCs.Providence { npc.npcSlots = 1f; npc.aiStyle = -1; - npc.damage = 80; + npc.damage = 100; npc.width = 100; //324 npc.height = 80; //216 npc.defense = 30; - npc.lifeMax = 37500; + npc.lifeMax = 42500; if (CalamityWorld.bossRushActive) { npc.lifeMax = CalamityWorld.death ? 500000 : 400000; @@ -37,6 +37,8 @@ namespace CalamityMod.NPCs.Providence npc.noGravity = true; npc.noTileCollide = true; aiType = -1; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -125,7 +127,7 @@ namespace CalamityMod.NPCs.Providence double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; double deltaAngle = spread / 8f; double offsetAngle; - int damage = expertMode ? 33 : 48; + int damage = expertMode ? 40 : 59; int projectileShot = mod.ProjectileType("ProfanedSpear"); int i; for (i = 0; i < 8; i++) @@ -137,6 +139,7 @@ namespace CalamityMod.NPCs.Providence } } } + npc.damage = expertMode ? 200 : 100; if (npc.ai[0] == 0f) { npc.knockBackResist = 0f; @@ -204,7 +207,7 @@ namespace CalamityMod.NPCs.Providence if (fireDust && dustTimer <= 0) { Main.PlaySound(SoundID.Item20, npc.position); - int damage = expertMode ? 38 : 56; + int damage = expertMode ? 40 : 59; Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; int projectile = Projectile.NewProjectile((int)vector173.X, (int)vector173.Y, (float)(npc.direction * 2), 4f, mod.ProjectileType("FlareDust"), damage, 0f, Main.myPlayer, 0f, 0f); //changed Main.projectile[projectile].timeLeft = 120; @@ -213,6 +216,7 @@ namespace CalamityMod.NPCs.Providence dustTimer = 3; } } + npc.damage = expertMode ? 240 : 120; npc.knockBackResist = 0f; float num1016 = num1003; npc.ai[1] += 1f; @@ -254,7 +258,51 @@ namespace CalamityMod.NPCs.Providence } } - public override bool CheckActive() + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0); + while (npc.ai[0] == 2f && Lighting.NotRetro && ((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157))) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + return false; + } + + public override bool CheckActive() { return false; } @@ -282,6 +330,10 @@ namespace CalamityMod.NPCs.Providence } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ProfanedGuardianBossGores/ProfanedGuardianBossA4"), 1f); for (int k = 0; k < 30; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 244, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index cb4eba58bb..b004202368 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -14,20 +14,20 @@ namespace CalamityMod.NPCs.Providence [AutoloadBossHead] public class Providence : ModNPC { - private bool text = false; - private float bossLife; - private float flightPath = 0f; - private int phaseChange = 0; - private int immuneTimer = 300; - private int frameUsed = 0; - private int healTimer = 0; + private bool text = false; + private float bossLife; + private float flightPath = 0f; + private int phaseChange = 0; + private int immuneTimer = 300; + private int frameUsed = 0; + private int healTimer = 0; - public override void SetStaticDefaults() + public override void SetStaticDefaults() { DisplayName.SetDefault("Providence, the Profaned Goddess"); Main.npcFrameCount[npc.type] = 3; } - + public override void SetDefaults() { npc.npcSlots = 36f; @@ -35,85 +35,88 @@ namespace CalamityMod.NPCs.Providence npc.width = 600; npc.height = 450; npc.defense = 50; - npc.lifeMax = CalamityWorld.revenge ? 299000 : 264500; - if (CalamityWorld.death) - { - npc.lifeMax = 402500; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 11000000 : 10000000; - } - npc.knockBackResist = 0f; + npc.lifeMax = CalamityWorld.revenge ? 500000 : 440000; + if (CalamityWorld.death) + { + npc.lifeMax = 715000; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 12000000 : 10000000; + } + npc.knockBackResist = 0f; npc.aiStyle = -1; //new - aiType = -1; //new - npc.value = Item.buyPrice(1, 0, 0, 0); + aiType = -1; //new + npc.value = Item.buyPrice(0, 50, 0, 0); npc.boss = true; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; - npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; - npc.buffImmune[mod.BuffType("DemonFlames")] = false; - npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; - npc.buffImmune[mod.BuffType("Nightwither")] = false; - npc.buffImmune[mod.BuffType("Shred")] = false; - npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; - npc.buffImmune[mod.BuffType("SilvaStun")] = false; - } + npc.buffImmune[BuffID.CursedInferno] = false; + npc.buffImmune[mod.BuffType("AbyssalFlames")] = false; + npc.buffImmune[mod.BuffType("ArmorCrunch")] = false; + npc.buffImmune[mod.BuffType("DemonFlames")] = false; + npc.buffImmune[mod.BuffType("GodSlayerInferno")] = false; + npc.buffImmune[mod.BuffType("Nightwither")] = false; + npc.buffImmune[mod.BuffType("Shred")] = false; + npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; + npc.buffImmune[mod.BuffType("SilvaStun")] = false; + } npc.noGravity = true; npc.noTileCollide = true; npc.netAlways = true; npc.chaseable = true; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ProvidenceTheme"); - else - music = MusicID.LunarBoss; + npc.canGhostHeal = false; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ProvidenceTheme"); + else + music = MusicID.LunarBoss; npc.HitSound = SoundID.NPCHit44; npc.DeathSound = SoundID.NPCDeath46; bossBag = mod.ItemType("ProvidenceBag"); } - + public override void AI() { - npc.damage = 0; + npc.damage = 0; CalamityGlobalNPC.holyBoss = npc.whoAmI; bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); Player player = Main.player[npc.target]; - Vector2 vector = npc.Center; + Vector2 vector = npc.Center; bool isHoly = player.ZoneHoly; bool isHell = player.ZoneUnderworldHeight; - bool canAttack = true; - bool attackMore = (double)npc.life <= (double)npc.lifeMax * 0.25; - if (!isHoly && !isHell && !CalamityWorld.bossRushActive) - { - if (immuneTimer > 0) - immuneTimer--; - } - else - { - immuneTimer = 300; - } - npc.dontTakeDamage = (immuneTimer <= 0); - npc.rotation = npc.velocity.X * 0.004f; - if (Main.raining) - { - Main.raining = false; - if (Main.netMode == 2) - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } + bool canAttack = true; + bool attackMore = (double)npc.life <= (double)npc.lifeMax * 0.15; + bool phase2 = (double)npc.life <= (double)npc.lifeMax * 0.75; + bool phase3 = (double)npc.life <= (double)npc.lifeMax * 0.5; + if (!isHoly && !isHell && !CalamityWorld.bossRushActive) + { + if (immuneTimer > 0) + immuneTimer--; + } + else + { + immuneTimer = 300; + } + npc.dontTakeDamage = (immuneTimer <= 0); + npc.rotation = npc.velocity.X * 0.004f; + if (Main.raining) + { + Main.raining = false; + if (Main.netMode == 2) + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } if (NPC.CountNPCS(mod.NPCType("ProvSpawnHealer")) > 0) { float heal = revenge ? 90f : 120f; - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - heal = 30f; - } - healTimer++; + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + heal = 30f; + } + healTimer++; if (healTimer >= heal) { healTimer = 0; @@ -133,384 +136,173 @@ namespace CalamityMod.NPCs.Providence } } } - bool tooFarAway = Vector2.Distance(Main.player[npc.target].Center, vector) > 2800f; + bool tooFarAway = Vector2.Distance(Main.player[npc.target].Center, vector) > 2800f; if ((!Main.dayTime && npc.ai[0] != 2f && npc.ai[0] != 5f && npc.ai[0] != 7f) || player.dead) { if (npc.timeLeft > 10) { npc.timeLeft = 10; } - if (npc.velocity.X > 0f) + if (npc.velocity.X > 0f) { npc.velocity.X = npc.velocity.X + 0.25f; - } - else + } + else { npc.velocity.X = npc.velocity.X - 0.25f; } npc.velocity.Y = npc.velocity.Y - 0.25f; } - else if (npc.timeLeft < 3600) - { - npc.timeLeft = 3600; - } - if (tooFarAway) - { - if (!Main.player[npc.target].dead && Main.player[npc.target].active) - Main.player[npc.target].AddBuff(mod.BuffType("HolyInferno"), 2); - } + else if (npc.timeLeft < 3600) + { + npc.timeLeft = 3600; + } + if (tooFarAway) + { + if (!Main.player[npc.target].dead && Main.player[npc.target].active) + Main.player[npc.target].AddBuff(mod.BuffType("HolyInferno"), 2); + } if (bossLife == 0f && npc.life > 0) { bossLife = (float)npc.lifeMax; } - if (npc.life > 0) + if (npc.life > 0) { if (Main.netMode != 1) { - int num660 = (int)((double)npc.lifeMax * 0.3); - if ((float)(npc.life + num660) < bossLife) - { - bossLife = (float)npc.life; - int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); - int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); - int spawn1 = mod.NPCType("ProvSpawnDefense"); - int spawn2 = mod.NPCType("ProvSpawnHealer"); - int spawn3 = mod.NPCType("ProvSpawnOffense"); - int spawnNPC1 = NPC.NewNPC(x - 100, y - 100, spawn1, 0, 0f, 0f, 0f, 0f, 255); - int spawnNPC2 = NPC.NewNPC(x + 100, y - 100, spawn2, 0, 0f, 0f, 0f, 0f, 255); - int spawnNPC3 = NPC.NewNPC(x, y + 100, spawn3, 0, 0f, 0f, 0f, 0f, 255); - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, spawnNPC1, 0f, 0f, 0f, 0, 0, 0); - NetMessage.SendData(23, -1, -1, null, spawnNPC2, 0f, 0f, 0f, 0, 0, 0); - NetMessage.SendData(23, -1, -1, null, spawnNPC3, 0f, 0f, 0f, 0, 0, 0); - } - return; - } + int num660 = (int)((double)npc.lifeMax * 0.66); + if ((float)(npc.life + num660) < bossLife) + { + bossLife = (float)npc.life; + int x = (int)(npc.position.X + (float)Main.rand.Next(npc.width - 32)); + int y = (int)(npc.position.Y + (float)Main.rand.Next(npc.height - 32)); + int spawn1 = mod.NPCType("ProvSpawnDefense"); + int spawn2 = mod.NPCType("ProvSpawnHealer"); + int spawn3 = mod.NPCType("ProvSpawnOffense"); + int spawnNPC1 = NPC.NewNPC(x - 100, y - 100, spawn1, 0, 0f, 0f, 0f, 0f, 255); + int spawnNPC2 = NPC.NewNPC(x + 100, y - 100, spawn2, 0, 0f, 0f, 0f, 0f, 255); + int spawnNPC3 = NPC.NewNPC(x, y + 100, spawn3, 0, 0f, 0f, 0f, 0f, 255); + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, spawnNPC1, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(23, -1, -1, null, spawnNPC2, 0f, 0f, 0f, 0, 0, 0); + NetMessage.SendData(23, -1, -1, null, spawnNPC3, 0f, 0f, 0f, 0, 0, 0); + } + return; + } } - } - if (NPC.CountNPCS(mod.NPCType("ProvSpawnOffense")) > 0 || - NPC.CountNPCS(mod.NPCType("ProvSpawnDefense")) > 0 || - NPC.CountNPCS(mod.NPCType("ProvSpawnHealer")) > 0) - { - npc.dontTakeDamage = true; - canAttack = false; - } - if (npc.ai[0] != 2f && npc.ai[0] != 5f) - { - bool firingLaser = npc.ai[0] == 7f; - if (flightPath == 0f) - { - npc.TargetClosest(true); - if (npc.Center.X < player.Center.X) - flightPath = 1f; - else - flightPath = -1f; - } - npc.TargetClosest(true); - int num851 = 800; - float num852 = Math.Abs(npc.Center.X - player.Center.X); - if (npc.Center.X < player.Center.X && flightPath < 0f && num852 > (float)num851) - { - flightPath = 0f; - } - if (npc.Center.X > player.Center.X && flightPath > 0f && num852 > (float)num851) - { - flightPath = 0f; - } - float num853 = expertMode ? 1.1f : 1.05f; - float num854 = expertMode ? 16f : 15f; - if ((double)npc.life < (double)npc.lifeMax * 0.75) - { - num853 = expertMode ? 1.15f : 1.1f; - num854 = expertMode ? 17f : 16f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num853 = expertMode ? 1.2f : 1.15f; - num854 = expertMode ? 18f : 17f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.25) - { - num853 = expertMode ? 1.25f : 1.2f; - num854 = expertMode ? 19f : 18f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num853 = expertMode ? 1.3f : 1.25f; - num854 = expertMode ? 20f : 19f; - } - if (firingLaser) - { - num854 *= (canAttack ? 0.5f : 0.25f); - num853 *= (canAttack ? 0.5f : 0.25f); - } - npc.velocity.X = npc.velocity.X + flightPath * num853; - if (npc.velocity.X > num854) - { - npc.velocity.X = num854; - } - if (npc.velocity.X < -num854) - { - npc.velocity.X = -num854; - } - float num855 = player.position.Y - (npc.position.Y + (float)npc.height); - if (num855 < 200f) //150 - { - npc.velocity.Y = npc.velocity.Y - 0.2f; - } - if (num855 > 250f) //200 - { - npc.velocity.Y = npc.velocity.Y + 0.2f; - } - float speedVariance = (canAttack ? 3f : 1.5f); - if (npc.velocity.Y > (firingLaser ? speedVariance : 6f)) //8 - { - npc.velocity.Y = (firingLaser ? speedVariance : 6f); - } - if (npc.velocity.Y < (firingLaser ? -speedVariance : -6f)) //8 - { - npc.velocity.Y = (firingLaser ? -speedVariance : -6f); - } - } - if (npc.ai[0] == 0f) - { - npc.noGravity = true; - npc.noTileCollide = true; - npc.chaseable = true; - float num852 = Math.Abs(npc.Center.X - player.Center.X); - if ((num852 < 500f || npc.ai[3] < 0f) && npc.position.Y < player.position.Y) - { - npc.ai[3] += 1f; - int num856 = expertMode ? 25 : 26; - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num856 = expertMode ? 23 : 24; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || npc.GetGlobalNPC(mod).enraged) - { - num856 = expertMode ? 21 : 22; - } - if (!canAttack) - { - if (attackMore) - num856 = expertMode ? 35 : 40; - else - num856 = expertMode ? 40 : 46; - } - num856++; - if (npc.ai[3] > (float)num856) - { - npc.ai[3] = (float)(-(float)num856); - } - if (npc.ai[3] == 0f && Main.netMode != 1) - { - Vector2 vector112 = new Vector2(npc.Center.X, npc.Center.Y); - vector112.X += npc.velocity.X * 7f; - float num857 = player.position.X + (float)player.width * 0.5f - vector112.X; - float num858 = player.Center.Y - vector112.Y; - float num859 = (float)Math.Sqrt((double)(num857 * num857 + num858 * num858)); - float num860 = expertMode ? 10.25f : 9f; - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num860 = expertMode ? 11.5f : 10f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || npc.GetGlobalNPC(mod).enraged) - { - num860 = expertMode ? 12.75f : 11f; - } - if (revenge) - { - num860 *= 1.15f; - } - num859 = num860 / num859; - num857 *= num859; - num858 *= num859; - int holyDamage = expertMode ? 46 : 63; - Projectile.NewProjectile(vector112.X, vector112.Y, num857, num858, mod.ProjectileType("HolyBlast"), holyDamage, 0f, Main.myPlayer, 0f, 0f); - } - } - else if (npc.ai[3] < 0f) - { - npc.ai[3] += 1f; - } - if (Main.netMode != 1) - { - npc.ai[1] += 1f; - if (npc.ai[1] > 300f) - npc.ai[0] = -1f; - } - } - else if (npc.ai[0] == 1f) - { - npc.noGravity = true; - npc.noTileCollide = true; - npc.chaseable = true; - if (Main.netMode != 1) - { - npc.ai[3] += 1f; - int num864 = expertMode ? 33 : 36; - if ((double)npc.life < (double)npc.lifeMax * 0.5) - { - num864 = expertMode ? 30 : 33; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num864 = expertMode ? 26 : 29; - } - if (!canAttack) - { - if (attackMore) - num864 = expertMode ? 40 : 45; - else - num864 = expertMode ? 45 : 52; - } - num864 += 3; - if (npc.ai[3] >= (float)num864) - { - npc.ai[3] = 0f; - Vector2 vector113 = new Vector2(npc.Center.X, npc.position.Y + (float)npc.height - 14f); - float num865 = npc.velocity.Y; - if (num865 < 0f) - { - num865 = 0f; - } - num865 += expertMode ? 4f : 3f; - float speedX2 = npc.velocity.X * 0.25f; - int fireDamage = expertMode ? 40 : 59; //260 200 - Projectile.NewProjectile(vector113.X, vector113.Y, speedX2, num865, mod.ProjectileType("HolyFire"), fireDamage, 0f, Main.myPlayer, 0f, 0f); - } - } - if (Main.netMode != 1) - { - npc.ai[1] += 1f; - if (npc.ai[1] > 300f) - npc.ai[0] = -1f; - } - } - else if (npc.ai[0] == 2f) - { - npc.noGravity = true; - npc.noTileCollide = true; - npc.chaseable = false; - npc.TargetClosest(true); - Vector2 vector114 = new Vector2(npc.Center.X, npc.Center.Y - 20f); - float num866 = (float)Main.rand.Next(-1000, 1001); - float num867 = (float)Main.rand.Next(-1000, 1001); - float num868 = (float)Math.Sqrt((double)(num866 * num866 + num867 * num867)); - float num869 = 3f; - npc.velocity *= 0.95f; - num868 = num869 / num868; - num866 *= num868; - num867 *= num868; - vector114.X += num866 * 4f; - vector114.Y += num867 * 4f; - npc.ai[3] += 1f; - int num870 = expertMode ? 3 : 4; - if (!canAttack) - { - if (attackMore) - num870 = expertMode ? 8 : 11; - else - num870 = expertMode ? 12 : 16; - } - if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) - { - num870 -= 2; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - num870 -= 2; - } - if (npc.ai[3] > (float)num870) - { - npc.ai[3] = 0f; - if (Main.netMode != 1) - { - if (Main.rand.Next(4) == 0 && !CalamityWorld.death && !CalamityWorld.bossRushActive) - Projectile.NewProjectile(vector114.X, vector114.Y, num866, num867, mod.ProjectileType("HolyLight"), 0, 0f, Main.myPlayer, 0f, 0f); - else - Projectile.NewProjectile(vector114.X, vector114.Y, num866, num867, mod.ProjectileType("HolyBurnOrb"), 0, 0f, Main.myPlayer, 0f, 0f); - } - } - npc.ai[1] += 1f; - if (npc.ai[1] > 450f && !text) - { - text = true; - string key = "Mods.CalamityMod.ProfanedBossText"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - Main.NewText(Language.GetTextValue(key), messageColor); - else if (Main.netMode == 2) - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - if (npc.ai[1] > 600f) - { - if (Main.netMode != 2) - { - Player player2 = Main.player[Main.myPlayer]; - if (!player2.dead && player2.active && Vector2.Distance(player2.Center, vector) < 2800f) - { - Main.PlaySound(SoundID.Item20, player2.position); - player2.AddBuff(mod.BuffType("ExtremeGravity"), 3000, true); - for (int num621 = 0; num621 < 40; num621++) - { - int num622 = Dust.NewDust(new Vector2(player2.position.X, player2.position.Y), - player2.width, player2.height, 244, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 60; num623++) - { - int num624 = Dust.NewDust(new Vector2(player2.position.X, player2.position.Y), - player2.width, player2.height, 244, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(player2.position.X, player2.position.Y), - player2.width, player2.height, 244, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - } - } - text = false; - npc.ai[0] = -1f; - } - } - if (npc.ai[0] == 3f) + } + if (NPC.CountNPCS(mod.NPCType("ProvSpawnOffense")) > 0 || + NPC.CountNPCS(mod.NPCType("ProvSpawnDefense")) > 0 || + NPC.CountNPCS(mod.NPCType("ProvSpawnHealer")) > 0) + { + canAttack = attackMore; + } + npc.chaseable = canAttack && npc.ai[0] != 2f && npc.ai[0] != 5f; + if (npc.ai[0] != 2f && npc.ai[0] != 5f) + { + bool firingLaser = npc.ai[0] == 7f; + if (flightPath == 0f) + { + npc.TargetClosest(true); + if (npc.Center.X < player.Center.X) + flightPath = 1f; + else + flightPath = -1f; + } + npc.TargetClosest(true); + int num851 = 800; + float num852 = Math.Abs(npc.Center.X - player.Center.X); + if (npc.Center.X < player.Center.X && flightPath < 0f && num852 > (float)num851) + { + flightPath = 0f; + } + if (npc.Center.X > player.Center.X && flightPath > 0f && num852 > (float)num851) + { + flightPath = 0f; + } + float num853 = expertMode ? 1.1f : 1.05f; + float num854 = expertMode ? 16f : 15f; + if ((double)npc.life < (double)npc.lifeMax * 0.75) + { + num853 = expertMode ? 1.15f : 1.1f; + num854 = expertMode ? 17f : 16f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num853 = expertMode ? 1.2f : 1.15f; + num854 = expertMode ? 18f : 17f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.25) + { + num853 = expertMode ? 1.25f : 1.2f; + num854 = expertMode ? 19f : 18f; + } + if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num853 = expertMode ? 1.3f : 1.25f; + num854 = expertMode ? 20f : 19f; + } + if (firingLaser) + { + num854 *= (canAttack ? 0.5f : 0.25f); + num853 *= (canAttack ? 0.5f : 0.25f); + } + npc.velocity.X = npc.velocity.X + flightPath * num853; + if (npc.velocity.X > num854) + { + npc.velocity.X = num854; + } + if (npc.velocity.X < -num854) + { + npc.velocity.X = -num854; + } + float num855 = player.position.Y - (npc.position.Y + (float)npc.height); + if (num855 < (firingLaser ? 150f : 200f)) //150 + { + npc.velocity.Y = npc.velocity.Y - 0.2f; + } + if (num855 > (firingLaser ? 200f : 250f)) //200 + { + npc.velocity.Y = npc.velocity.Y + 0.2f; + } + float speedVariance = (canAttack ? 3f : 1.5f); + if (npc.velocity.Y > (firingLaser ? speedVariance : 6f)) //8 + { + npc.velocity.Y = (firingLaser ? speedVariance : 6f); + } + if (npc.velocity.Y < (firingLaser ? -speedVariance : -6f)) //8 + { + npc.velocity.Y = (firingLaser ? -speedVariance : -6f); + } + } + if (npc.ai[0] == 0f) { npc.noGravity = true; npc.noTileCollide = true; - npc.chaseable = true; float num852 = Math.Abs(npc.Center.X - player.Center.X); if ((num852 < 500f || npc.ai[3] < 0f) && npc.position.Y < player.position.Y) { npc.ai[3] += 1f; - int num856 = expertMode ? 10 : 11; + int num856 = expertMode ? 25 : 26; if ((double)npc.life < (double)npc.lifeMax * 0.5) { - num856 = expertMode ? 9 : 10; + num856 = expertMode ? 23 : 24; } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || npc.GetGlobalNPC(mod).enraged) { - num856 = expertMode ? 8 : 9; + num856 = expertMode ? 21 : 22; } - if (!canAttack) - { - if (attackMore) - num856 = expertMode ? 20 : 23; - else - num856 = expertMode ? 30 : 35; - } - num856++; + if (!canAttack) + { + num856 = expertMode ? 40 : 46; + } + num856++; if (npc.ai[3] > (float)num856) { npc.ai[3] = (float)(-(float)num856); } - if (npc.ai[3] == 0f && Main.netMode != 1) + if (npc.ai[3] == 0f && Main.netMode != 1) { Vector2 vector112 = new Vector2(npc.Center.X, npc.Center.Y); vector112.X += npc.velocity.X * 7f; @@ -518,11 +310,11 @@ namespace CalamityMod.NPCs.Providence float num858 = player.Center.Y - vector112.Y; float num859 = (float)Math.Sqrt((double)(num857 * num857 + num858 * num858)); float num860 = expertMode ? 10.25f : 9f; - if ((double)npc.life < (double)npc.lifeMax * 0.5) + if ((double)npc.life < (double)npc.lifeMax * 0.5) { num860 = expertMode ? 11.5f : 10f; } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || npc.GetGlobalNPC(mod).enraged) { num860 = expertMode ? 12.75f : 11f; } @@ -533,10 +325,10 @@ namespace CalamityMod.NPCs.Providence num859 = num860 / num859; num857 *= num859; num858 *= num859; - int holyDamage = expertMode ? 39 : 55; //280 210 - Projectile.NewProjectile(vector112.X, vector112.Y, num857 * 0.1f, num858, mod.ProjectileType("MoltenBlast"), holyDamage, 0f, Main.myPlayer, 0f, 0f); + int holyDamage = expertMode ? 46 : 63; + Projectile.NewProjectile(vector112.X, vector112.Y, num857, num858, mod.ProjectileType("HolyBlast"), holyDamage, 0f, Main.myPlayer, 0f, 0f); } - } + } else if (npc.ai[3] < 0f) { npc.ai[3] += 1f; @@ -548,356 +340,539 @@ namespace CalamityMod.NPCs.Providence npc.ai[0] = -1f; } } - else if (npc.ai[0] == 4f) + else if (npc.ai[0] == 1f) { npc.noGravity = true; npc.noTileCollide = true; - npc.chaseable = true; - if (Main.netMode != 1) + if (Main.netMode != 1) { npc.ai[3] += 1f; - int num864 = expertMode ? 70 : 74; - if ((double)npc.life < (double)npc.lifeMax * 0.5) + int num864 = expertMode ? 33 : 36; + if ((double)npc.life < (double)npc.lifeMax * 0.5) { - num864 = expertMode ? 64 : 70; + num864 = expertMode ? 30 : 33; } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || npc.GetGlobalNPC(mod).enraged) + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) { - num864 = expertMode ? 56 : 64; + num864 = expertMode ? 26 : 29; } - if (!canAttack) - { - if (attackMore) - num864 = expertMode ? 115 : 135; - else - num864 = expertMode ? 148 : 156; - } - num864 += 3; - if (npc.ai[3] >= (float)num864) + if (!canAttack) + { + num864 = expertMode ? 45 : 52; + } + num864 += 3; + if (npc.ai[3] >= (float)num864) { npc.ai[3] = 0f; Vector2 vector113 = new Vector2(npc.Center.X, npc.position.Y + (float)npc.height - 14f); - int i2 = (int)(vector113.X / 16f); - int j2 = (int)(vector113.Y / 16f); - if (!WorldGen.SolidTile(i2, j2)) + float num865 = npc.velocity.Y; + if (num865 < 0f) { - float num865 = npc.velocity.Y; - if (num865 < 0f) - { - num865 = 0f; - } - num865 += expertMode ? 4f : 3f; - float speedX2 = npc.velocity.X * 0.25f; - int fireDamage = expertMode ? 44 : 60; //260 100 - Projectile.NewProjectile(vector113.X, vector113.Y, speedX2, num865, mod.ProjectileType("HolyBomb"), fireDamage, 0f, Main.myPlayer, (float)Main.rand.Next(5), 0f); + num865 = 0f; } + num865 += expertMode ? 4f : 3f; + float speedX2 = npc.velocity.X * 0.25f; + int fireDamage = expertMode ? 40 : 59; //260 200 + Projectile.NewProjectile(vector113.X, vector113.Y, speedX2, num865, mod.ProjectileType("HolyFire"), fireDamage, 0f, Main.myPlayer, 0f, 0f); } } - if (Main.netMode != 1) + if (Main.netMode != 1) { npc.ai[1] += 1f; if (npc.ai[1] > 300f) npc.ai[0] = -1f; } } - else if (npc.ai[0] == 5f) - { - npc.noGravity = true; - npc.noTileCollide = true; - npc.chaseable = false; - npc.TargetClosest(true); - npc.velocity *= 0.95f; - if (Main.netMode != 1) - { - npc.ai[2] += (npc.GetGlobalNPC(mod).enraged ? 2f : 1f); - if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) - { - npc.ai[2] += 1f; - } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) - { - npc.ai[2] += 1f; - } - if (!canAttack && attackMore) - { - npc.ai[2] += 1f; //4 - } - if (npc.ai[2] > (canAttack ? 24f : 60f)) - { - npc.ai[2] = 0f; - Vector2 vector93 = new Vector2(vector.X, vector.Y); - float num742 = 10f; - if (expertMode) - { - num742 = 12f; - } - float num743 = player.position.X + (float)player.width * 0.5f - vector93.X; - float num744 = player.position.Y + (float)player.height * 0.5f - vector93.Y; - float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); - num745 = num742 / num745; - num743 *= num745; - num744 *= num745; - int num746 = expertMode ? 48 : 65; //288 220 - int num747 = mod.ProjectileType("HolyShot"); - vector93.X += num743 * 3f; - vector93.Y += num744 * 3f; - Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + (float)Main.rand.Next(-100, 100), 0f, 0f, mod.ProjectileType("HolySpear"), num746, 0f, Main.myPlayer, (float)Main.rand.Next(2), 0f); - return; - } - } - if (Main.netMode != 1) - { - npc.ai[1] += 1f; - if (npc.ai[1] > 300f) - npc.ai[0] = -1f; - } - } - else if (npc.ai[0] == 6f) - { - npc.noGravity = true; - npc.noTileCollide = true; - npc.chaseable = false; - npc.TargetClosest(true); - npc.velocity *= 0.95f; - if (Main.netMode != 1) - { - npc.ai[1] += 1f; - if (npc.ai[1] > 60f) - { - int damage = expertMode ? 52 : 70; //288 220 - Projectile.NewProjectile(player.Center.X, player.Center.Y - 360f, 0f, 0f, mod.ProjectileType("ProvidenceCrystal"), damage, 0f, Main.myPlayer, 0f, 0f); - npc.ai[0] = -1f; - } - } - } - else if (npc.ai[0] == 7f) - { - npc.noGravity = true; - npc.noTileCollide = true; - npc.chaseable = false; - Vector2 value19 = new Vector2(27f, 59f); - npc.ai[2] += 1f; - if (npc.ai[2] < 180f) - { - npc.localAI[1] -= 0.05f; - if (npc.localAI[1] < 0f) - { - npc.localAI[1] = 0f; - } - if (npc.ai[2] >= 60f) - { - Vector2 center20 = npc.Center; - int num1220 = 0; - if (npc.ai[2] >= 120f) - { - num1220 = 1; - } - int num; - for (int num1221 = 0; num1221 < 1 + num1220; num1221 = num + 1) - { - int num1222 = 244; - float num1223 = 1.2f; - if (num1221 % 2 == 1) - { - num1223 = 2.8f; - } - Vector2 vector199 = center20 + ((float)Main.rand.NextDouble() * 6.28318548f).ToRotationVector2() * value19 / 2f; - int num1224 = Dust.NewDust(vector199 - Vector2.One * 8f, 16, 16, num1222, npc.velocity.X / 2f, npc.velocity.Y / 2f, 0, default(Color), 1f); - Main.dust[num1224].velocity = Vector2.Normalize(center20 - vector199) * 3.5f * (10f - (float)num1220 * 2f) / 10f; - Main.dust[num1224].noGravity = true; - Main.dust[num1224].scale = num1223; - num = num1221; - } - } - } - else if (npc.ai[2] < 360f) - { - if (npc.ai[2] == 180f) - { - if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, vector) < 2800f) - { - Main.PlaySound(29, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 104, 1f, 0f); - } - if (Main.netMode != 1) - { - npc.TargetClosest(false); - Vector2 vector200 = player.Center - npc.Center; - vector200.Normalize(); - float num1225 = -1f; - if (vector200.X < 0f) - { - num1225 = 1f; - } - vector200 = vector200.RotatedBy((double)(-(double)num1225 * 6.28318548f / 6f), default(Vector2)); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y - 16f, vector200.X, vector200.Y, mod.ProjectileType("ProvidenceHolyRay"), 100, 0f, Main.myPlayer, num1225 * 6.28318548f / 450f, (float)npc.whoAmI); - npc.ai[3] = (vector200.ToRotation() + 9.424778f) * num1225; //3.14159265f - npc.netUpdate = true; - } - } - npc.localAI[1] += 0.05f; - if (npc.localAI[1] > 1f) - { - npc.localAI[1] = 1f; - } - float num1226 = (float)(npc.ai[3] >= 0f).ToDirectionInt(); - float num1227 = npc.ai[3]; - if (num1227 < 0f) - { - num1227 *= -1f; - } - num1227 += -9.424778f; - num1227 += num1226 * 6.28318548f / 540f; - npc.localAI[0] = num1227; - } - else - { - npc.localAI[1] -= 0.07f; //15 - if (npc.localAI[1] < 0f) - npc.localAI[1] = 0f; - } - if (Main.netMode != 1) - { - npc.ai[1] += 1f; - if (npc.ai[1] > 375f) - npc.ai[0] = -1f; - } - } - if (npc.ai[0] == -1f) + else if (npc.ai[0] == 2f) { npc.noGravity = true; npc.noTileCollide = true; - npc.chaseable = true; - phaseChange++; - if (phaseChange > 14) - { - phaseChange = 0; - } - int phase = 0; //0 = blasts 1 = holy fire 2 = shell heal 3 = molten blobs 4 = holy bombs 5 = shell spears 6 = crystal 7 = laser - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - switch (phaseChange) - { - case 0: phase = 4; break; - case 1: phase = 5; break; - case 2: phase = 0; break; - case 3: phase = attackMore ? 6 : 1; break; - case 4: phase = 2; break; - case 5: phase = 4; break; - case 6: phase = 1; break; - case 7: phase = 5; break; - case 8: - phase = attackMore ? 7 : 3; - if (attackMore) - { - npc.TargetClosest(false); - Vector2 v3 = player.Center - npc.Center - new Vector2(0f, -22f); - float num1219 = v3.Length() / 500f; - if (num1219 > 1f) - { - num1219 = 1f; - } - num1219 = 1f - num1219; - num1219 *= 2f; - if (num1219 > 1f) - { - num1219 = 1f; - } - npc.localAI[0] = v3.ToRotation(); - npc.localAI[1] = num1219; - } - break; - case 9: phase = 3; break; - case 10: phase = 2; break; - case 11: phase = 4; break; - case 12: - phase = attackMore ? 7 : 4; - if (attackMore) - { - npc.TargetClosest(false); - Vector2 v3 = player.Center - npc.Center - new Vector2(0f, -22f); - float num1219 = v3.Length() / 500f; - if (num1219 > 1f) - { - num1219 = 1f; - } - num1219 = 1f - num1219; - num1219 *= 2f; - if (num1219 > 1f) - { - num1219 = 1f; - } - npc.localAI[0] = v3.ToRotation(); - npc.localAI[1] = num1219; - } - break; - case 13: phase = 5; break; - case 14: phase = 0; break; - } - } - else - { - switch (phaseChange) - { - case 0: phase = 0; break; - case 1: - phase = attackMore ? 7 : 1; - if (attackMore) - { - npc.TargetClosest(false); - Vector2 v3 = player.Center - npc.Center - new Vector2(0f, -22f); - float num1219 = v3.Length() / 500f; - if (num1219 > 1f) - { - num1219 = 1f; - } - num1219 = 1f - num1219; - num1219 *= 2f; - if (num1219 > 1f) - { - num1219 = 1f; - } - npc.localAI[0] = v3.ToRotation(); - npc.localAI[1] = num1219; - } - break; - case 2: phase = 3; break; - case 3: phase = 4; break; - case 4: phase = 5; break; - case 5: phase = attackMore ? 6 : 4; break; - case 6: phase = 3; break; - case 7: phase = 1; break; - case 8: phase = 0; break; - case 9: phase = 2; break; - case 10: phase = 4; break; - case 11: - phase = attackMore ? 7 : 0; - if (attackMore) - { - npc.TargetClosest(false); - Vector2 v3 = player.Center - npc.Center - new Vector2(0f, -22f); - float num1219 = v3.Length() / 500f; - if (num1219 > 1f) - { - num1219 = 1f; - } - num1219 = 1f - num1219; - num1219 *= 2f; - if (num1219 > 1f) - { - num1219 = 1f; - } - npc.localAI[0] = v3.ToRotation(); - npc.localAI[1] = num1219; - } - break; - case 12: phase = 3; break; - case 13: phase = 1; break; - case 14: phase = 5; break; - } - } npc.TargetClosest(true); - if (Math.Abs(npc.Center.X - player.Center.X) > 3000f) + Vector2 vector114 = new Vector2(npc.Center.X, npc.Center.Y - 20f); + float num866 = (float)Main.rand.Next(-1000, 1001); + float num867 = (float)Main.rand.Next(-1000, 1001); + float num868 = (float)Math.Sqrt((double)(num866 * num866 + num867 * num867)); + float num869 = 3f; + npc.velocity *= 0.95f; + num868 = num869 / num868; + num866 *= num868; + num867 *= num868; + vector114.X += num866 * 4f; + vector114.Y += num867 * 4f; + npc.ai[3] += 1f; + int num870 = expertMode ? 3 : 4; + if (!canAttack) + { + num870 = expertMode ? 12 : 16; + } + if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) + { + num870 -= 2; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num870 -= 2; + } + if (npc.ai[3] > (float)num870) + { + npc.ai[3] = 0f; + if (Main.netMode != 1) + { + if (Main.rand.Next(4) == 0 && !CalamityWorld.death && !CalamityWorld.bossRushActive) + Projectile.NewProjectile(vector114.X, vector114.Y, num866, num867, mod.ProjectileType("HolyLight"), 0, 0f, Main.myPlayer, 0f, 0f); + else + Projectile.NewProjectile(vector114.X, vector114.Y, num866, num867, mod.ProjectileType("HolyBurnOrb"), 0, 0f, Main.myPlayer, 0f, 0f); + } + } + npc.ai[1] += 1f; + if (npc.ai[1] > 450f && !text) + { + text = true; + string key = "Mods.CalamityMod.ProfanedBossText"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + Main.NewText(Language.GetTextValue(key), messageColor); + else if (Main.netMode == 2) + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + if (npc.ai[1] > 600f) + { + if (Main.netMode != 2) + { + Player player2 = Main.player[Main.myPlayer]; + if (!player2.dead && player2.active && Vector2.Distance(player2.Center, vector) < 2800f) + { + Main.PlaySound(SoundID.Item20, player2.position); + player2.AddBuff(mod.BuffType("ExtremeGravity"), 3000, true); + for (int num621 = 0; num621 < 40; num621++) + { + int num622 = Dust.NewDust(new Vector2(player2.position.X, player2.position.Y), + player2.width, player2.height, 244, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 60; num623++) + { + int num624 = Dust.NewDust(new Vector2(player2.position.X, player2.position.Y), + player2.width, player2.height, 244, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(player2.position.X, player2.position.Y), + player2.width, player2.height, 244, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + } + } + } + text = false; + npc.ai[0] = -1f; + } + } + if (npc.ai[0] == 3f) + { + npc.noGravity = true; + npc.noTileCollide = true; + float num852 = Math.Abs(npc.Center.X - player.Center.X); + if ((num852 < 500f || npc.ai[3] < 0f) && npc.position.Y < player.position.Y) + { + npc.ai[3] += 1f; + int num856 = expertMode ? 10 : 11; + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num856 = expertMode ? 9 : 10; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num856 = expertMode ? 8 : 9; + } + if (!canAttack) + { + num856 = expertMode ? 30 : 35; + } + num856++; + if (npc.ai[3] > (float)num856) + { + npc.ai[3] = (float)(-(float)num856); + } + if (npc.ai[3] == 0f && Main.netMode != 1) + { + Vector2 vector112 = new Vector2(npc.Center.X, npc.Center.Y); + vector112.X += npc.velocity.X * 7f; + float num857 = player.position.X + (float)player.width * 0.5f - vector112.X; + float num858 = player.Center.Y - vector112.Y; + float num859 = (float)Math.Sqrt((double)(num857 * num857 + num858 * num858)); + float num860 = expertMode ? 10.25f : 9f; + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num860 = expertMode ? 11.5f : 10f; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + num860 = expertMode ? 12.75f : 11f; + } + if (revenge) + { + num860 *= 1.15f; + } + num859 = num860 / num859; + num857 *= num859; + num858 *= num859; + int holyDamage = expertMode ? 39 : 55; //280 210 + Projectile.NewProjectile(vector112.X, vector112.Y, num857 * 0.1f, num858, mod.ProjectileType("MoltenBlast"), holyDamage, 0f, Main.myPlayer, 0f, 0f); + } + } + else if (npc.ai[3] < 0f) + { + npc.ai[3] += 1f; + } + if (Main.netMode != 1) + { + npc.ai[1] += 1f; + if (npc.ai[1] > 300f) + npc.ai[0] = -1f; + } + } + else if (npc.ai[0] == 4f) + { + npc.noGravity = true; + npc.noTileCollide = true; + if (Main.netMode != 1) + { + npc.ai[3] += 1f; + int num864 = expertMode ? 70 : 74; + if ((double)npc.life < (double)npc.lifeMax * 0.5) + { + num864 = expertMode ? 64 : 70; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || npc.GetGlobalNPC(mod).enraged) + { + num864 = expertMode ? 56 : 64; + } + if (!canAttack) + { + num864 = expertMode ? 148 : 156; + } + num864 += 3; + if (npc.ai[3] >= (float)num864) + { + npc.ai[3] = 0f; + Vector2 vector113 = new Vector2(npc.Center.X, npc.position.Y + (float)npc.height - 14f); + int i2 = (int)(vector113.X / 16f); + int j2 = (int)(vector113.Y / 16f); + if (!WorldGen.SolidTile(i2, j2)) + { + float num865 = npc.velocity.Y; + if (num865 < 0f) + { + num865 = 0f; + } + num865 += expertMode ? 4f : 3f; + float speedX2 = npc.velocity.X * 0.25f; + int fireDamage = expertMode ? 44 : 60; //260 100 + Projectile.NewProjectile(vector113.X, vector113.Y, speedX2, num865, mod.ProjectileType("HolyBomb"), fireDamage, 0f, Main.myPlayer, (float)Main.rand.Next(5), 0f); + } + } + } + if (Main.netMode != 1) + { + npc.ai[1] += 1f; + if (npc.ai[1] > 300f) + npc.ai[0] = -1f; + } + } + else if (npc.ai[0] == 5f) + { + npc.noGravity = true; + npc.noTileCollide = true; + npc.TargetClosest(true); + npc.velocity *= 0.95f; + if (Main.netMode != 1) + { + npc.ai[2] += (npc.GetGlobalNPC(mod).enraged ? 2f : 1f); + if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.bossRushActive) + { + npc.ai[2] += 1f; + } + if ((double)npc.life <= (double)npc.lifeMax * 0.1 || CalamityWorld.bossRushActive) + { + npc.ai[2] += 1f; + } + if (npc.ai[2] > (canAttack ? 24f : 60f)) + { + npc.ai[2] = 0f; + Vector2 vector93 = new Vector2(vector.X, vector.Y); + float num742 = 10f; + if (expertMode) + { + num742 = 12f; + } + float num743 = player.position.X + (float)player.width * 0.5f - vector93.X; + float num744 = player.position.Y + (float)player.height * 0.5f - vector93.Y; + float num745 = (float)Math.Sqrt((double)(num743 * num743 + num744 * num744)); + num745 = num742 / num745; + num743 *= num745; + num744 *= num745; + int num746 = expertMode ? 48 : 65; //288 220 + int num747 = mod.ProjectileType("HolyShot"); + vector93.X += num743 * 3f; + vector93.Y += num744 * 3f; + Projectile.NewProjectile(vector93.X, vector93.Y, num743, num744, num747, num746, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + (float)Main.rand.Next(-100, 100), 0f, 0f, mod.ProjectileType("HolySpear"), num746, 0f, Main.myPlayer, (float)Main.rand.Next(2), 0f); + return; + } + } + if (Main.netMode != 1) + { + npc.ai[1] += 1f; + if (npc.ai[1] > 300f) + npc.ai[0] = -1f; + } + } + else if (npc.ai[0] == 6f) + { + npc.noGravity = true; + npc.noTileCollide = true; + npc.TargetClosest(true); + npc.velocity *= 0.95f; + if (Main.netMode != 1) + { + npc.ai[1] += 1f; + if (npc.ai[1] > 60f) + { + int damage = expertMode ? 52 : 70; //288 220 + Projectile.NewProjectile(player.Center.X, player.Center.Y - 360f, 0f, 0f, mod.ProjectileType("ProvidenceCrystal"), damage, 0f, Main.myPlayer, 0f, 0f); + npc.ai[0] = -1f; + } + } + } + else if (npc.ai[0] == 7f) + { + npc.noGravity = true; + npc.noTileCollide = true; + Vector2 value19 = new Vector2(27f, 59f); + npc.ai[2] += 1f; + if (npc.ai[2] < 180f) + { + npc.localAI[1] -= 0.05f; + if (npc.localAI[1] < 0f) + { + npc.localAI[1] = 0f; + } + if (npc.ai[2] >= 60f) + { + Vector2 center20 = npc.Center; + int num1220 = 0; + if (npc.ai[2] >= 120f) + { + num1220 = 1; + } + int num; + for (int num1221 = 0; num1221 < 1 + num1220; num1221 = num + 1) + { + int num1222 = 244; + float num1223 = 1.2f; + if (num1221 % 2 == 1) + { + num1223 = 2.8f; + } + Vector2 vector199 = center20 + ((float)Main.rand.NextDouble() * 6.28318548f).ToRotationVector2() * value19 / 2f; + int num1224 = Dust.NewDust(vector199 - Vector2.One * 8f, 16, 16, num1222, npc.velocity.X / 2f, npc.velocity.Y / 2f, 0, default(Color), 1f); + Main.dust[num1224].velocity = Vector2.Normalize(center20 - vector199) * 3.5f * (10f - (float)num1220 * 2f) / 10f; + Main.dust[num1224].noGravity = true; + Main.dust[num1224].scale = num1223; + num = num1221; + } + } + } + else if (npc.ai[2] < 360f) + { + if (npc.ai[2] == 180f) + { + if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, vector) < 2800f) + { + Main.PlaySound(29, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 104, 1f, 0f); + } + if (Main.netMode != 1) + { + npc.TargetClosest(false); + Vector2 vector200 = player.Center - npc.Center; + vector200.Normalize(); + float num1225 = -1f; + if (vector200.X < 0f) + { + num1225 = 1f; + } + vector200 = vector200.RotatedBy((double)(-(double)num1225 * 6.28318548f / 6f), default(Vector2)); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y - 16f, vector200.X, vector200.Y, mod.ProjectileType("ProvidenceHolyRay"), 100, 0f, Main.myPlayer, num1225 * 6.28318548f / 450f, (float)npc.whoAmI); + npc.ai[3] = (vector200.ToRotation() + 9.424778f) * num1225; //3.14159265f + npc.netUpdate = true; + } + } + npc.localAI[1] += 0.05f; + if (npc.localAI[1] > 1f) + { + npc.localAI[1] = 1f; + } + float num1226 = (float)(npc.ai[3] >= 0f).ToDirectionInt(); + float num1227 = npc.ai[3]; + if (num1227 < 0f) + { + num1227 *= -1f; + } + num1227 += -9.424778f; + num1227 += num1226 * 6.28318548f / 540f; + npc.localAI[0] = num1227; + } + else + { + npc.localAI[1] -= 0.07f; //15 + if (npc.localAI[1] < 0f) + npc.localAI[1] = 0f; + } + if (Main.netMode != 1) + { + npc.ai[1] += 1f; + if (npc.ai[1] > 375f) + npc.ai[0] = -1f; + } + } + if (npc.ai[0] == -1f) + { + npc.noGravity = true; + npc.noTileCollide = true; + phaseChange++; + if (phaseChange > 14) + { + phaseChange = 0; + } + int phase = 0; //0 = blasts 1 = holy fire 2 = shell heal 3 = molten blobs 4 = holy bombs 5 = shell spears 6 = crystal 7 = laser + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + switch (phaseChange) + { + case 0: phase = 4; break; //1575 or 1500 + case 1: phase = 5; break; //1875 or 1800 + case 2: phase = 0; break; //2175 or 2100 + case 3: phase = phase2 ? 6 : 1; break; + case 4: phase = 2; break; //600 + case 5: phase = 4; break; //900 + case 6: phase = 1; break; //1200 + case 7: phase = 5; break; //1500 + case 8: + phase = phase3 ? 7 : 3; //1875 or 1800 + if (phase3) + { + npc.TargetClosest(false); + Vector2 v3 = player.Center - npc.Center - new Vector2(0f, -22f); + float num1219 = v3.Length() / 500f; + if (num1219 > 1f) + { + num1219 = 1f; + } + num1219 = 1f - num1219; + num1219 *= 2f; + if (num1219 > 1f) + { + num1219 = 1f; + } + npc.localAI[0] = v3.ToRotation(); + npc.localAI[1] = num1219; + } + break; + case 9: phase = 3; break; //2175 or 2100 + case 10: phase = phase2 ? 6 : 2; break; + case 11: phase = 4; break; //300 + case 12: + phase = phase3 ? 7 : 4; //675 or 600 + if (phase3) + { + npc.TargetClosest(false); + Vector2 v3 = player.Center - npc.Center - new Vector2(0f, -22f); + float num1219 = v3.Length() / 500f; + if (num1219 > 1f) + { + num1219 = 1f; + } + num1219 = 1f - num1219; + num1219 *= 2f; + if (num1219 > 1f) + { + num1219 = 1f; + } + npc.localAI[0] = v3.ToRotation(); + npc.localAI[1] = num1219; + } + break; + case 13: phase = 5; break; //975 or 900 + case 14: phase = 0; break; //1275 or 1200 + } + } + else + { + switch (phaseChange) + { + case 0: phase = 0; break; //3375 or 3300 + case 1: + phase = phase3 ? 7 : 1; //3750 or 3600 + if (phase3) + { + npc.TargetClosest(false); + Vector2 v3 = player.Center - npc.Center - new Vector2(0f, -22f); + float num1219 = v3.Length() / 500f; + if (num1219 > 1f) + { + num1219 = 1f; + } + num1219 = 1f - num1219; + num1219 *= 2f; + if (num1219 > 1f) + { + num1219 = 1f; + } + npc.localAI[0] = v3.ToRotation(); + npc.localAI[1] = num1219; + } + break; + case 2: phase = 3; break; //4050 or 3900 + case 3: phase = 4; break; //4350 or 4200 + case 4: phase = 5; break; //4650 or 4500 + case 5: phase = phase2 ? 6 : 4; break; + case 6: phase = 3; break; //300 + case 7: phase = 1; break; //600 + case 8: phase = 0; break; //900 + case 9: phase = 2; break; //1500 + case 10: phase = 4; break; //1800 + case 11: + phase = phase3 ? 7 : 0; //2175 or 2100 + if (phase3) + { + npc.TargetClosest(false); + Vector2 v3 = player.Center - npc.Center - new Vector2(0f, -22f); + float num1219 = v3.Length() / 500f; + if (num1219 > 1f) + { + num1219 = 1f; + } + num1219 = 1f - num1219; + num1219 *= 2f; + if (num1219 > 1f) + { + num1219 = 1f; + } + npc.localAI[0] = v3.ToRotation(); + npc.localAI[1] = num1219; + } + break; + case 12: phase = 3; break; //2475 or 2400 + case 13: phase = 1; break; //2775 or 2700 + case 14: phase = 5; break; //3075 or 3000 + } + } + npc.TargetClosest(true); + if (Math.Abs(npc.Center.X - player.Center.X) > 5600f) { phase = 0; } @@ -908,39 +883,37 @@ namespace CalamityMod.NPCs.Providence return; } } - + public override void NPCLoot() { - bool isHoly = Main.player[npc.target].ZoneHoly; - bool isHell = Main.player[npc.target].ZoneUnderworldHeight; if (Main.rand.Next(10) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ProvidenceTrophy")); } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) { - if (isHoly) + for (int i = 0; i < 5; i++) { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ElysianWings"), 1, true); + npc.DropBossBags(); } - if (isHell) + } + if (Main.expertMode) + { + if (Main.player[npc.target].ZoneUnderworldHeight) { npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ElysianAegis"), 1, true); } + else if (Main.player[npc.target].ZoneHoly) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ElysianWings"), 1, true); + } npc.DropBossBags(); } else { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("UnholyEssence"), Main.rand.Next(20, 30)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DivineGeode"), Main.rand.Next(10, 16)); - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RuneofCos")); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("DivineGeode"), Main.rand.Next(10, 16)); + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("RuneofCos")); if (Main.rand.Next(7) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ProvidenceMask")); @@ -998,24 +971,24 @@ namespace CalamityMod.NPCs.Providence } } } - + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.SuperHealingPotion; } - + public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) { - double newDamage = (damage + (int)((double)defense * 0.25)); - float protection = (((npc.ichor || npc.onFire2) ? 0.2f : 0.25f) + - ((npc.ai[0] == 2f || npc.ai[0] == 5f || npc.ai[0] == 7f) ? 0.65f : 0f)); //0.85 or 0.9 - if (newDamage < 1.0) + double newDamage = (damage + (int)((double)defense * 0.25)); + float protection = (((npc.ichor || npc.onFire2) ? 0.2f : 0.25f) + + ((npc.ai[0] == 2f || npc.ai[0] == 5f || npc.ai[0] == 7f) ? 0.65f : 0f)); //0.85 or 0.9 + if (newDamage < 1.0) { newDamage = 1.0; } if (newDamage >= 1.0) { - newDamage = (double)((int)((double)(1f - protection) * newDamage)); + newDamage = (double)((int)((double)(1f - protection) * newDamage)); if (newDamage < 1.0) { newDamage = 1.0; @@ -1024,120 +997,116 @@ namespace CalamityMod.NPCs.Providence damage = newDamage; return true; } - + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) { - Mod mod = ModLoader.GetMod("CalamityMod"); - Texture2D texture = Main.npcTexture[npc.type]; - Texture2D texture2 = mod.GetTexture("NPCs/Providence/ProvidenceAlt"); - Texture2D texture3 = mod.GetTexture("NPCs/Providence/ProvidenceAttack"); - Texture2D texture4 = mod.GetTexture("NPCs/Providence/ProvidenceAttackAlt"); - Texture2D texture5 = mod.GetTexture("NPCs/Providence/ProvidenceDefense"); - Texture2D texture6 = mod.GetTexture("NPCs/Providence/ProvidenceDefenseAlt"); - if (npc.ai[0] == 2f || npc.ai[0] == 5f) - { - if (npc.localAI[2] == 0f) - { - CalamityMod.DrawTexture(spriteBatch, texture5, 0, npc, drawColor); - } - else - { - CalamityMod.DrawTexture(spriteBatch, texture6, 0, npc, drawColor); - } - } - else - { - if (frameUsed == 0) - { - CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); - } - else if (frameUsed == 1) - { - CalamityMod.DrawTexture(spriteBatch, texture2, 0, npc, drawColor); - } - else if (frameUsed == 2) - { - CalamityMod.DrawTexture(spriteBatch, texture3, 0, npc, drawColor); - } - else - { - CalamityMod.DrawTexture(spriteBatch, texture4, 0, npc, drawColor); - } - } - return false; + Mod mod = ModLoader.GetMod("CalamityMod"); + Texture2D texture = Main.npcTexture[npc.type]; + if (npc.ai[0] == 2f || npc.ai[0] == 5f) + { + if (npc.localAI[2] == 0f) + { + texture = mod.GetTexture("NPCs/Providence/ProvidenceDefense"); + } + else + { + texture = mod.GetTexture("NPCs/Providence/ProvidenceDefenseAlt"); + } + } + else + { + if (frameUsed == 0) + { + texture = Main.npcTexture[npc.type]; + } + else if (frameUsed == 1) + { + texture = mod.GetTexture("NPCs/Providence/ProvidenceAlt"); + } + else if (frameUsed == 2) + { + texture = mod.GetTexture("NPCs/Providence/ProvidenceAttack"); + } + else + { + texture = mod.GetTexture("NPCs/Providence/ProvidenceAttackAlt"); + } + } + CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, drawColor); + return false; } - + public override void FindFrame(int frameHeight) //9 total frames { - if (npc.ai[0] == 2f || npc.ai[0] == 5f) - { - if (npc.localAI[2] == 0f) - { - npc.frameCounter += 1.0; - if (npc.frameCounter > 5.0) - { - npc.frame.Y = npc.frame.Y + frameHeight; - npc.frameCounter = 0.0; - } - if (npc.frame.Y >= frameHeight * 3) - { - npc.frame.Y = 0; - npc.localAI[2] = 1f; - npc.netUpdate = true; - } - } - else - { - npc.frameCounter += 1.0; - if (npc.frameCounter > 5.0) - { - npc.frame.Y = npc.frame.Y + frameHeight; - npc.frameCounter = 0.0; - } - if (npc.frame.Y >= frameHeight * 2) - { - npc.frame.Y = frameHeight * 2; - } - } - } - else - { - if (npc.localAI[2] > 0f) - { - npc.localAI[2] = 0f; - npc.netUpdate = true; - } - npc.frameCounter += 1.0; - if (npc.frameCounter > 5.0) - { - npc.frameCounter = 0.0; - npc.frame.Y = npc.frame.Y + frameHeight; - } - if (npc.frame.Y >= frameHeight * 3) //6 - { - npc.frame.Y = 0; - frameUsed++; - } - if (frameUsed > 3) - { - frameUsed = 0; - npc.netUpdate = true; - } - } + if (npc.ai[0] == 2f || npc.ai[0] == 5f) + { + if (npc.localAI[2] == 0f) + { + npc.frameCounter += 1.0; + if (npc.frameCounter > 5.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 3) + { + npc.frame.Y = 0; + npc.localAI[2] = 1f; + npc.netUpdate = true; + } + } + else + { + npc.frameCounter += 1.0; + if (npc.frameCounter > 5.0) + { + npc.frame.Y = npc.frame.Y + frameHeight; + npc.frameCounter = 0.0; + } + if (npc.frame.Y >= frameHeight * 2) + { + npc.frame.Y = frameHeight * 2; + } + } + } + else + { + if (npc.localAI[2] > 0f) + { + npc.localAI[2] = 0f; + npc.netUpdate = true; + } + npc.frameCounter += 1.0; + if (npc.frameCounter > 5.0) + { + npc.frameCounter = 0.0; + npc.frame.Y = npc.frame.Y + frameHeight; + } + if (npc.frame.Y >= frameHeight * 3) //6 + { + npc.frame.Y = 0; + frameUsed++; + } + if (frameUsed > 3) + { + frameUsed = 0; + npc.netUpdate = true; + } + } } - + public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) { scale = 2f; return null; } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); - npc.damage = (int)(npc.damage * 0.8f); - } - + npc.damage = (int)(npc.damage * 0.8f); + } + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 15; k++) diff --git a/NPCs/Scavenger/FlamePillar.cs b/NPCs/Scavenger/FlamePillar.cs index 1ae564faac..a7d9d49ead 100644 --- a/NPCs/Scavenger/FlamePillar.cs +++ b/NPCs/Scavenger/FlamePillar.cs @@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.Scavenger } if (npc.alpha > 0) { - npc.alpha -= 10; + npc.alpha -= 3; if (npc.alpha < 0) { if (CalamityWorld.downedProvidence && !CalamityWorld.bossRushActive) diff --git a/NPCs/Scavenger/ScavengerBody.cs b/NPCs/Scavenger/ScavengerBody.cs index 87867fcce7..f0a87a5ebe 100644 --- a/NPCs/Scavenger/ScavengerBody.cs +++ b/NPCs/Scavenger/ScavengerBody.cs @@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.Scavenger } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 4600000 : 4100000; + npc.lifeMax = CalamityWorld.death ? 2300000 : 2100000; } } @@ -95,7 +95,7 @@ namespace CalamityMod.NPCs.Scavenger NPC.NewNPC((int)npc.Center.X + 70, (int)npc.Center.Y + 88, mod.NPCType("ScavengerLegRight"), 0, 0f, 0f, 0f, 0f, 255); NPC.NewNPC((int)npc.Center.X - 120, (int)npc.Center.Y + 50, mod.NPCType("ScavengerClawLeft"), 0, 0f, 0f, 0f, 0f, 255); NPC.NewNPC((int)npc.Center.X + 120, (int)npc.Center.Y + 50, mod.NPCType("ScavengerClawRight"), 0, 0f, 0f, 0f, 0f, 255); - NPC.NewNPC((int)npc.Center.X + 21, (int)npc.Center.Y - 25, mod.NPCType("ScavengerHead"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)npc.Center.X + 1, (int)npc.Center.Y - 20, mod.NPCType("ScavengerHead"), 0, 0f, 0f, 0f, 0f, 255); } if (npc.target >= 0 && Main.player[npc.target].dead) { @@ -518,6 +518,11 @@ namespace CalamityMod.NPCs.Scavenger } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerBody"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerBody2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerBody3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerBody4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerBody5"), 1f); for (int k = 0; k < 50; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 2f); @@ -531,7 +536,13 @@ namespace CalamityMod.NPCs.Scavenger name = "Ravager"; potionType = ItemID.GreaterHealingPotion; } - + + public override bool CanHitPlayer(Player target, ref int cooldownSlot) + { + cooldownSlot = 1; + return true; + } + public override void OnHitPlayer(Player player, int damage, bool crit) { if (CalamityWorld.revenge) @@ -544,7 +555,7 @@ namespace CalamityMod.NPCs.Scavenger { if (CalamityWorld.armageddon) { - for (int i = 0; i < 10; i++) + for (int i = 0; i < 5; i++) { npc.DropBossBags(); } diff --git a/NPCs/Scavenger/ScavengerClawLeft.cs b/NPCs/Scavenger/ScavengerClawLeft.cs index 399bbe76b7..6c75eb814f 100644 --- a/NPCs/Scavenger/ScavengerClawLeft.cs +++ b/NPCs/Scavenger/ScavengerClawLeft.cs @@ -44,6 +44,7 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[mod.BuffType("SilvaStun")] = false; } npc.noGravity = true; + npc.canGhostHeal = false; npc.alpha = 255; npc.value = Item.buyPrice(0, 0, 0, 0); npc.HitSound = SoundID.NPCHit41; @@ -56,7 +57,7 @@ namespace CalamityMod.NPCs.Scavenger } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 550000 : 440000; + npc.lifeMax = CalamityWorld.death ? 300000 : 260000; } } @@ -202,7 +203,7 @@ namespace CalamityMod.NPCs.Scavenger num668 += 40f; num667 -= 110f; float num669 = (float)Math.Sqrt((double)(num667 * num667 + num668 * num668)); - if (num669 > 700f || npc.collideX || npc.collideY) + if ((num669 > 700f || npc.collideX || npc.collideY) | npc.justHit) { npc.noTileCollide = true; npc.ai[0] = 0f; @@ -317,6 +318,12 @@ namespace CalamityMod.NPCs.Scavenger num285++; } } + else + { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerClawLeft"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerClawLeft2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerClawLeft3"), 1f); + } } } } \ No newline at end of file diff --git a/NPCs/Scavenger/ScavengerClawRight.cs b/NPCs/Scavenger/ScavengerClawRight.cs index 3e46eeea1a..24456c7e15 100644 --- a/NPCs/Scavenger/ScavengerClawRight.cs +++ b/NPCs/Scavenger/ScavengerClawRight.cs @@ -44,6 +44,7 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[mod.BuffType("SilvaStun")] = false; } npc.noGravity = true; + npc.canGhostHeal = false; npc.alpha = 255; npc.value = Item.buyPrice(0, 0, 0, 0); npc.HitSound = SoundID.NPCHit41; @@ -56,7 +57,7 @@ namespace CalamityMod.NPCs.Scavenger } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 550000 : 440000; + npc.lifeMax = CalamityWorld.death ? 300000 : 260000; } } @@ -202,7 +203,7 @@ namespace CalamityMod.NPCs.Scavenger num668 += 40f; num667 += 110f; float num669 = (float)Math.Sqrt((double)(num667 * num667 + num668 * num668)); - if (num669 > 700f || npc.collideX || npc.collideY) + if ((num669 > 700f || npc.collideX || npc.collideY) | npc.justHit) { npc.noTileCollide = true; npc.ai[0] = 0f; @@ -317,6 +318,11 @@ namespace CalamityMod.NPCs.Scavenger num285++; } } - } + else + { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerClawRight"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerClawRight2"), 1f); + } + } } } \ No newline at end of file diff --git a/NPCs/Scavenger/ScavengerHead.cs b/NPCs/Scavenger/ScavengerHead.cs index 25feb1c910..fe47c7e886 100644 --- a/NPCs/Scavenger/ScavengerHead.cs +++ b/NPCs/Scavenger/ScavengerHead.cs @@ -44,6 +44,7 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[mod.BuffType("SilvaStun")] = false; } npc.noGravity = true; + npc.canGhostHeal = false; npc.alpha = 255; npc.value = Item.buyPrice(0, 0, 0, 0); npc.HitSound = SoundID.NPCHit41; @@ -55,7 +56,7 @@ namespace CalamityMod.NPCs.Scavenger } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 960000 : 820000; + npc.lifeMax = CalamityWorld.death ? 500000 : 450000; } } @@ -79,8 +80,8 @@ namespace CalamityMod.NPCs.Scavenger Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); float centerX = Main.npc[CalamityGlobalNPC.scavenger].Center.X - center.X; float centerY = Main.npc[CalamityGlobalNPC.scavenger].Center.Y - center.Y; - centerY -= 25f; - centerX += 21f; + centerY -= 20f; + centerX += 1f; float totalSpeed = (float)Math.Sqrt((double)(centerX * centerX + centerY * centerY)); if (totalSpeed < 20f) { diff --git a/NPCs/Scavenger/ScavengerHead2.cs b/NPCs/Scavenger/ScavengerHead2.cs index ea4d865c1a..c4f036fa7c 100644 --- a/NPCs/Scavenger/ScavengerHead2.cs +++ b/NPCs/Scavenger/ScavengerHead2.cs @@ -276,6 +276,9 @@ namespace CalamityMod.NPCs.Scavenger } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerHead"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerHead2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerHead3"), 1f); for (int k = 0; k < 20; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/Scavenger/ScavengerLegLeft.cs b/NPCs/Scavenger/ScavengerLegLeft.cs index 7a1b1ea1b5..97141a9f11 100644 --- a/NPCs/Scavenger/ScavengerLegLeft.cs +++ b/NPCs/Scavenger/ScavengerLegLeft.cs @@ -43,6 +43,7 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; } npc.noGravity = true; + npc.canGhostHeal = false; npc.alpha = 255; npc.value = Item.buyPrice(0, 0, 0, 0); npc.HitSound = SoundID.NPCHit41; @@ -54,7 +55,7 @@ namespace CalamityMod.NPCs.Scavenger } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 870000 : 650000; + npc.lifeMax = CalamityWorld.death ? 450000 : 400000; } } @@ -142,6 +143,8 @@ namespace CalamityMod.NPCs.Scavenger } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerLegLeft"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerLegLeft2"), 1f); for (int k = 0; k < 20; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/Scavenger/ScavengerLegRight.cs b/NPCs/Scavenger/ScavengerLegRight.cs index d79f3537bc..ab982ac25c 100644 --- a/NPCs/Scavenger/ScavengerLegRight.cs +++ b/NPCs/Scavenger/ScavengerLegRight.cs @@ -43,6 +43,7 @@ namespace CalamityMod.NPCs.Scavenger npc.buffImmune[mod.BuffType("WhisperingDeath")] = false; } npc.noGravity = true; + npc.canGhostHeal = false; npc.alpha = 255; npc.value = Item.buyPrice(0, 0, 0, 0); npc.HitSound = SoundID.NPCHit41; @@ -54,7 +55,7 @@ namespace CalamityMod.NPCs.Scavenger } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 870000 : 650000; + npc.lifeMax = CalamityWorld.death ? 450000 : 400000; } } @@ -142,6 +143,8 @@ namespace CalamityMod.NPCs.Scavenger } if (npc.life <= 0) { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerLegRight"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/ScavengerGores/ScavengerLegRight2"), 1f); for (int k = 0; k < 20; k++) { Dust.NewDust(npc.position, npc.width, npc.height, 5, hitDirection, -1f, 0, default(Color), 1f); diff --git a/NPCs/SlimeGod/SlimeGod.cs b/NPCs/SlimeGod/SlimeGod.cs index f65896b42b..407f7e3a74 100644 --- a/NPCs/SlimeGod/SlimeGod.cs +++ b/NPCs/SlimeGod/SlimeGod.cs @@ -35,10 +35,12 @@ namespace CalamityMod.NPCs.SlimeGod } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 5000000 : 4400000; + npc.lifeMax = CalamityWorld.death ? 2500000 : 2200000; } npc.aiStyle = -1; aiType = -1; + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; npc.knockBackResist = 0f; animationType = 50; npc.value = 0f; diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 654576305d..8a0c1909cc 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -32,10 +32,14 @@ namespace CalamityMod.NPCs.SlimeGod } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 3400000 : 3000000; + npc.lifeMax = CalamityWorld.death ? 2700000 : 2500000; } - npc.aiStyle = -1; //new + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; + npc.aiStyle = -1; //new aiType = -1; //new + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; npc.knockBackResist = 0f; npc.value = Item.buyPrice(0, 8, 0, 0); npc.alpha = 80; @@ -211,7 +215,7 @@ namespace CalamityMod.NPCs.SlimeGod } if (CalamityWorld.bossRushActive) { - num1372 = 21f; + num1372 = 22f; } if (npc.GetGlobalNPC(mod).enraged) { @@ -253,9 +257,52 @@ namespace CalamityMod.NPCs.SlimeGod npc.velocity.X = (npc.velocity.X * 7f + num1373) / 8f; npc.velocity.Y = (npc.velocity.Y * 7f + num1374) / 8f; } - return; } - + + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0); + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + return false; + } + public override void BossLoot(ref string name, ref int potionType) { potionType = ItemID.HealingPotion; diff --git a/NPCs/SlimeGod/SlimeGodRun.cs b/NPCs/SlimeGod/SlimeGodRun.cs index 515aa0761f..e3003b8418 100644 --- a/NPCs/SlimeGod/SlimeGodRun.cs +++ b/NPCs/SlimeGod/SlimeGodRun.cs @@ -38,10 +38,12 @@ namespace CalamityMod.NPCs.SlimeGod } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 4000000 : 3400000; + npc.lifeMax = CalamityWorld.death ? 2000000 : 1600000; } npc.knockBackResist = 0f; animationType = 50; + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; npc.value = 0f; npc.alpha = 60; npc.lavaImmune = false; diff --git a/NPCs/SlimeGod/SlimeGodRunSplit.cs b/NPCs/SlimeGod/SlimeGodRunSplit.cs index cfa5dca97d..52adf618b7 100644 --- a/NPCs/SlimeGod/SlimeGodRunSplit.cs +++ b/NPCs/SlimeGod/SlimeGodRunSplit.cs @@ -33,7 +33,7 @@ namespace CalamityMod.NPCs.SlimeGod } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 2000000 : 1700000; + npc.lifeMax = CalamityWorld.death ? 1000000 : 800000; } npc.damage = 40; npc.width = 150; @@ -41,6 +41,8 @@ namespace CalamityMod.NPCs.SlimeGod npc.scale = 0.8f; npc.defense = 20; npc.knockBackResist = 0f; + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; animationType = 50; npc.value = Item.buyPrice(0, 1, 0, 0); npc.alpha = 60; diff --git a/NPCs/SlimeGod/SlimeGodSplit.cs b/NPCs/SlimeGod/SlimeGodSplit.cs index faada7b1d6..2d8a0d9619 100644 --- a/NPCs/SlimeGod/SlimeGodSplit.cs +++ b/NPCs/SlimeGod/SlimeGodSplit.cs @@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.SlimeGod } if (CalamityWorld.bossRushActive) { - npc.lifeMax = CalamityWorld.death ? 2500000 : 2200000; + npc.lifeMax = CalamityWorld.death ? 1250000 : 1100000; } npc.damage = 40; npc.width = 150; @@ -40,6 +40,8 @@ namespace CalamityMod.NPCs.SlimeGod npc.aiStyle = -1; aiType = -1; npc.knockBackResist = 0f; + npc.buffImmune[mod.BuffType("GlacialState")] = true; + npc.buffImmune[mod.BuffType("TemporalSadness")] = true; animationType = 50; npc.value = Item.buyPrice(0, 1, 0, 0); npc.alpha = 60; diff --git a/NPCs/SlimeGod/SlimeSpawnCorrupt.cs b/NPCs/SlimeGod/SlimeSpawnCorrupt.cs index d86fbee662..30e6fb0e1c 100644 --- a/NPCs/SlimeGod/SlimeSpawnCorrupt.cs +++ b/NPCs/SlimeGod/SlimeSpawnCorrupt.cs @@ -36,6 +36,7 @@ namespace CalamityMod.NPCs.SlimeGod npc.lavaImmune = false; npc.noGravity = false; npc.noTileCollide = false; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[24] = true; diff --git a/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs b/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs index d93e46b58e..b32c0f2239 100644 --- a/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs +++ b/NPCs/SlimeGod/SlimeSpawnCorrupt2.cs @@ -36,6 +36,7 @@ namespace CalamityMod.NPCs.SlimeGod npc.lavaImmune = false; npc.noGravity = false; npc.noTileCollide = false; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[24] = true; diff --git a/NPCs/SlimeGod/SlimeSpawnCrimson.cs b/NPCs/SlimeGod/SlimeSpawnCrimson.cs index 27d5e46028..9d3340d693 100644 --- a/NPCs/SlimeGod/SlimeSpawnCrimson.cs +++ b/NPCs/SlimeGod/SlimeSpawnCrimson.cs @@ -36,6 +36,7 @@ namespace CalamityMod.NPCs.SlimeGod npc.lavaImmune = false; npc.noGravity = false; npc.noTileCollide = false; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[24] = true; diff --git a/NPCs/SlimeGod/SlimeSpawnCrimson2.cs b/NPCs/SlimeGod/SlimeSpawnCrimson2.cs index afa1872e1e..b2a67b6cec 100644 --- a/NPCs/SlimeGod/SlimeSpawnCrimson2.cs +++ b/NPCs/SlimeGod/SlimeSpawnCrimson2.cs @@ -38,6 +38,7 @@ namespace CalamityMod.NPCs.SlimeGod npc.lavaImmune = false; npc.noGravity = false; npc.noTileCollide = false; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; npc.buffImmune[24] = true; diff --git a/NPCs/StormWeaver/StasisProbe.cs b/NPCs/StormWeaver/StasisProbe.cs index c3e9548ae1..8db02405f0 100644 --- a/NPCs/StormWeaver/StasisProbe.cs +++ b/NPCs/StormWeaver/StasisProbe.cs @@ -34,6 +34,7 @@ namespace CalamityMod.NPCs.StormWeaver npc.knockBackResist = 0.9f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.buffImmune[24] = true; diff --git a/NPCs/StormWeaver/StasisProbeNaked.cs b/NPCs/StormWeaver/StasisProbeNaked.cs index e20962214b..fa2e1731d0 100644 --- a/NPCs/StormWeaver/StasisProbeNaked.cs +++ b/NPCs/StormWeaver/StasisProbeNaked.cs @@ -34,6 +34,7 @@ namespace CalamityMod.NPCs.StormWeaver npc.knockBackResist = 0.925f; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit13; npc.DeathSound = SoundID.NPCDeath19; npc.buffImmune[24] = true; diff --git a/NPCs/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index 748f7e6395..9a54bbed8c 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -53,6 +53,7 @@ namespace CalamityMod.NPCs.StormWeaver npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; diff --git a/NPCs/StormWeaver/StormWeaverBodyNaked.cs b/NPCs/StormWeaver/StormWeaverBodyNaked.cs index e63319124a..889ca8b6b8 100644 --- a/NPCs/StormWeaver/StormWeaverBodyNaked.cs +++ b/NPCs/StormWeaver/StormWeaverBodyNaked.cs @@ -27,16 +27,12 @@ namespace CalamityMod.NPCs.StormWeaver npc.width = 40; //324 npc.height = 40; //216 npc.defense = 0; - npc.lifeMax = 100000; + npc.lifeMax = 50000; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); if (calamityModMusic != null) music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"); else music = MusicID.Boss3; - if (CalamityWorld.death) - { - npc.lifeMax = 75000; - } if (CalamityWorld.DoGSecondStageCountdown <= 0) { if (calamityModMusic != null) @@ -47,7 +43,7 @@ namespace CalamityMod.NPCs.StormWeaver } if (CalamityWorld.bossRushActive) { - npc.lifeMax = 4500000; + npc.lifeMax = 2300000; } npc.aiStyle = 6; //new aiType = -1; //new @@ -58,9 +54,12 @@ namespace CalamityMod.NPCs.StormWeaver npc.noGravity = true; npc.boss = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit13; npc.DeathSound = SoundID.NPCDeath13; npc.netAlways = true; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -113,7 +112,48 @@ namespace CalamityMod.NPCs.StormWeaver } } } - + + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; diff --git a/NPCs/StormWeaver/StormWeaverHeadNaked.cs b/NPCs/StormWeaver/StormWeaverHeadNaked.cs index 318cb41c5f..d0366a84d1 100644 --- a/NPCs/StormWeaver/StormWeaverHeadNaked.cs +++ b/NPCs/StormWeaver/StormWeaverHeadNaked.cs @@ -37,19 +37,16 @@ namespace CalamityMod.NPCs.StormWeaver npc.width = 74; //324 npc.height = 74; //216 npc.defense = 0; - npc.lifeMax = 100000; + npc.lifeMax = 50000; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); if (calamityModMusic != null) music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"); else music = MusicID.Boss3; - if (CalamityWorld.death) - { - npc.lifeMax = 75000; - } if (CalamityWorld.DoGSecondStageCountdown <= 0) { - if (calamityModMusic != null) + npc.value = Item.buyPrice(0, 35, 0, 0); + if (calamityModMusic != null) music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/Weaver"); else music = MusicID.Boss3; @@ -57,14 +54,13 @@ namespace CalamityMod.NPCs.StormWeaver } if (CalamityWorld.bossRushActive) { - npc.lifeMax = 4500000; + npc.lifeMax = 2300000; } npc.aiStyle = 6; //new aiType = -1; //new animationType = 10; //new npc.knockBackResist = 0f; npc.boss = true; - npc.value = Item.buyPrice(0, 35, 0, 0); npc.alpha = 255; npc.behindTiles = true; npc.noGravity = true; @@ -72,6 +68,8 @@ namespace CalamityMod.NPCs.StormWeaver npc.HitSound = SoundID.NPCHit13; npc.DeathSound = SoundID.NPCDeath13; npc.netAlways = true; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -459,7 +457,48 @@ namespace CalamityMod.NPCs.StormWeaver npc.rotation = (float)System.Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) + 1.57f; } - public override bool CanHitPlayer(Player target, ref int cooldownSlot) + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; return true; @@ -521,18 +560,21 @@ namespace CalamityMod.NPCs.StormWeaver public override void NPCLoot() { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ArmoredShell"), Main.rand.Next(5, 9), true); - if (Main.rand.Next(10) == 0) + if (CalamityWorld.DoGSecondStageCountdown <= 0) { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WeaverTrophy")); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheStorm")); - } - if (Main.rand.Next(3) == 0) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StormDragoon")); + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("ArmoredShell"), Main.rand.Next(5, 9), true); + if (Main.rand.Next(10) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("WeaverTrophy")); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("TheStorm")); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("StormDragoon")); + } } } diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index e198819908..341d8660aa 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -51,6 +51,7 @@ namespace CalamityMod.NPCs.StormWeaver npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; diff --git a/NPCs/StormWeaver/StormWeaverTailNaked.cs b/NPCs/StormWeaver/StormWeaverTailNaked.cs index 5c852399b9..e53b0df4d8 100644 --- a/NPCs/StormWeaver/StormWeaverTailNaked.cs +++ b/NPCs/StormWeaver/StormWeaverTailNaked.cs @@ -26,16 +26,12 @@ namespace CalamityMod.NPCs.StormWeaver npc.width = 48; //324 npc.height = 80; //216 npc.defense = 0; - npc.lifeMax = 100000; + npc.lifeMax = 50000; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); if (calamityModMusic != null) music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/ScourgeofTheUniverse"); else music = MusicID.Boss3; - if (CalamityWorld.death) - { - npc.lifeMax = 75000; - } if (CalamityWorld.DoGSecondStageCountdown <= 0) { if (calamityModMusic != null) @@ -46,7 +42,7 @@ namespace CalamityMod.NPCs.StormWeaver } if (CalamityWorld.bossRushActive) { - npc.lifeMax = 4500000; + npc.lifeMax = 2300000; } npc.aiStyle = 6; //new aiType = -1; //new @@ -57,9 +53,12 @@ namespace CalamityMod.NPCs.StormWeaver npc.noGravity = true; npc.boss = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit13; npc.DeathSound = SoundID.NPCDeath13; npc.netAlways = true; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -112,7 +111,48 @@ namespace CalamityMod.NPCs.StormWeaver } } - public override bool CanHitPlayer(Player target, ref int cooldownSlot) + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; return true; diff --git a/NPCs/SunkenSeaNPCs/BlindedAngler.cs b/NPCs/SunkenSeaNPCs/BlindedAngler.cs new file mode 100644 index 0000000000..b9a7313dac --- /dev/null +++ b/NPCs/SunkenSeaNPCs/BlindedAngler.cs @@ -0,0 +1,272 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.NPCs.SunkenSeaNPCs +{ + public class BlindedAngler : ModNPC + { + public bool hasBeenHit = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Blinded Angler"); + Main.npcFrameCount[npc.type] = 6; + } + + public override void SetDefaults() + { + npc.noGravity = true; + npc.damage = 150; + npc.width = 56; + npc.height = 44; + npc.defense = 30; + npc.lifeMax = 750; + npc.aiStyle = -1; + aiType = -1; + npc.value = Item.buyPrice(0, 0, 40, 0); + npc.HitSound = SoundID.NPCHit1; + npc.DeathSound = SoundID.NPCDeath1; + npc.knockBackResist = 0.1f; + banner = npc.type; + bannerItem = mod.ItemType("BlindedAnglerBanner"); + } + + public override void AI() + { + Lighting.AddLight(npc.Center, ((255 - npc.alpha) * 0f) / 255f, ((255 - npc.alpha) * 0.75f) / 255f, ((255 - npc.alpha) * 0.75f) / 255f); + npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); + npc.noGravity = true; + if (npc.direction == 0) + { + npc.TargetClosest(true); + } + if (npc.justHit) + { + hasBeenHit = true; + } + npc.chaseable = hasBeenHit; + if (npc.wet) + { + bool flag14; + npc.TargetClosest(false); + if (Main.player[npc.target].wet && !Main.player[npc.target].dead && + (Main.player[npc.target].Center - npc.Center).Length() < 100f) + { + flag14 = true; + } + else + { + flag14 = false; + } + if ((!Main.player[npc.target].wet || Main.player[npc.target].dead) && flag14) + { + flag14 = false; + } + if (!flag14) + { + if (npc.collideX) + { + npc.velocity.X = npc.velocity.X * -1f; + npc.direction *= -1; + npc.netUpdate = true; + } + if (npc.collideY) + { + npc.netUpdate = true; + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y) * -1f; + npc.directionY = -1; + npc.ai[0] = -1f; + } + else if (npc.velocity.Y < 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y); + npc.directionY = 1; + npc.ai[0] = 1f; + } + } + } + if (flag14) + { + npc.TargetClosest(true); + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.1f; + npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.1f; + if (npc.velocity.X > 3f) + { + npc.velocity.X = 3f; + } + if (npc.velocity.X < -3f) + { + npc.velocity.X = -3f; + } + if (npc.velocity.Y > 3f) + { + npc.velocity.Y = 3f; + } + if (npc.velocity.Y < -3f) + { + npc.velocity.Y = -3f; + } + } + else + { + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.1f; + if (npc.velocity.X < -1.5f || npc.velocity.X > 1.5f) + { + npc.velocity.X = npc.velocity.X * 0.95f; + } + if (npc.ai[0] == -1f) + { + npc.velocity.Y = npc.velocity.Y - 0.01f; + if ((double)npc.velocity.Y < -0.2) + { + npc.ai[0] = 1f; + } + } + else + { + npc.velocity.Y = npc.velocity.Y + 0.01f; + if ((double)npc.velocity.Y > 0.2) + { + npc.ai[0] = -1f; + } + } + } + int num258 = (int)(npc.position.X + (float)(npc.width / 2)) / 16; + int num259 = (int)(npc.position.Y + (float)(npc.height / 2)) / 16; + if (Main.tile[num258, num259 - 1] == null) + { + Main.tile[num258, num259 - 1] = new Tile(); + } + if (Main.tile[num258, num259 + 1] == null) + { + Main.tile[num258, num259 + 1] = new Tile(); + } + if (Main.tile[num258, num259 + 2] == null) + { + Main.tile[num258, num259 + 2] = new Tile(); + } + if (Main.tile[num258, num259 - 1].liquid > 128) + { + if (Main.tile[num258, num259 + 1].active()) + { + npc.ai[0] = -1f; + } + else if (Main.tile[num258, num259 + 2].active()) + { + npc.ai[0] = -1f; + } + } + if ((double)npc.velocity.Y > 0.4 || (double)npc.velocity.Y < -0.4) + { + npc.velocity.Y = npc.velocity.Y * 0.95f; + } + } + else + { + if (npc.velocity.Y == 0f) + { + npc.velocity.X = npc.velocity.X * 0.94f; + if ((double)npc.velocity.X > -0.2 && (double)npc.velocity.X < 0.2) + { + npc.velocity.X = 0f; + } + } + npc.velocity.Y = npc.velocity.Y + 0.3f; + if (npc.velocity.Y > 10f) + { + npc.velocity.Y = 10f; + } + npc.ai[0] = 1f; + } + npc.rotation = npc.velocity.Y * (float)npc.direction * 0.1f; + if ((double)npc.rotation < -0.2) + { + npc.rotation = -0.2f; + } + if ((double)npc.rotation > 0.2) + { + npc.rotation = 0.2f; + return; + } + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += (npc.wet ? 0.15f : 0f); + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector = center - Main.screenPosition; + vector -= new Vector2((float)mod.GetTexture("NPCs/SunkenSeaNPCs/BlindedAnglerGlow").Width, (float)(mod.GetTexture("NPCs/SunkenSeaNPCs/BlindedAnglerGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); + Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.LightBlue); + Main.spriteBatch.Draw(mod.GetTexture("NPCs/SunkenSeaNPCs/BlindedAnglerGlow"), vector, + new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + if (projectile.minion) + { + return hasBeenHit; + } + return null; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (Main.hardMode && spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !spawnInfo.player.GetModPlayer(mod).clamity) + { + return SpawnCondition.CaveJellyfish.Chance * 0.45f; + } + return 0f; + } + + public override void NPCLoot() + { + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EutrophicScimitar")); + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PrismShard"), Main.rand.Next(5, 10)); + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 25; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/BlindedAngler/BlindAnglerGore1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/BlindedAngler/BlindAnglerGore2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/BlindedAngler/BlindAnglerGore3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/BlindedAngler/BlindAnglerGore4"), 1f); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/BlindedAngler.png b/NPCs/SunkenSeaNPCs/BlindedAngler.png new file mode 100644 index 0000000000000000000000000000000000000000..afdae097349f511c70ae0d878532fa33366cddf6 GIT binary patch literal 4065 zcmV<74<7J|P)GROHpY?Oi5vxKw&N6uLihWwzm2s-I}8sZLL-I!?ji{E4Pg1 z%DHScqB%FTF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yN8B0%spnTIo!kS2#iUgo zFgS?Uy<+?5#gVg}Esv@Sm zYMJV&T188x9c!z2ip4ttlq6cb50WG|!Lk`thl9_nCW!*v0E91SN+maW)vRK?!6%N> z(vD%5Rxs=?ui9tiYjGVarkxd#YFC9Rs9v}5i8vTw#pxj4@n%I#fkSRFuZw#&Vg%RNAi;nL^TdC}4@ zP`dmHU}+1NF2BCCW3Z^(#BozzweyRC2VAs`f5 zy1X%5D(!U^o4ZL0KCKz71|YI#K@Tcr8^Io+bMq&Ik)dJZj6tV1Zwu$KgCwUE1Ve4d zpV17u1=x0rOjur$bZN|SBJ<)5x&f#uoveF+YGOQmY06Qycy7aL0BX$wOS#~4V1}b5 zgg(sN@`mlTAzWe!tcXRtHd<#&a*_at}~rxb*pC zA1wWXspU@qQ!Uu{{VId_C@Zx`(HGGA07|>>@VsZ&t3sbBaIT7}SwsR!0z7%_(s8w?ZkS#P6ol7ip>WJPwz*Nf( z<$kp%Gn5yNeUIV*`_5)L0o0-^&P$4?)D_y;s;Nd%sbFiuH}3jLLZDOt+WqD#$|5^f zIBA--*!4XPfOdWY2n$K$#7V2Run=rCIx!w+7s1+urd3<~?%UuNm=MNj1uMw8eYLd@ zVx;d5pyrEKts2yZ*6ft2oqjWe?f^;+I)HLj#R@N{9mDl}9>;srs#OC}5(2r=s<{U! z`5Jsk(yDR$hU*8XRdWkaY8EuD8kj@RMoQ+WY1O1WY;EUZ)pk(&R7VoyjSe7~>{`l& zFKM9sJ#%1(O2%4aL-S4U0ZL4=PinihvdR$OQSi7jmAU9SncQN$!2#rYo~l*j@^Y^? zntf23+;I<3o7HkJ<#G>DW4QGBWFIX3f~n(mod).clamity) + { + hitAmount = 3; + hasBeenHit = true; + } + if (npc.justHit && hitAmount < 3) + { + ++hitAmount; + hasBeenHit = true; + } + npc.chaseable = hasBeenHit; + if (hitAmount == 3) + { + if (!statChange) + { + npc.defense = 6; + npc.damage = Main.expertMode ? 60 : 30; + if (Main.hardMode) + { + npc.defense = 15; + npc.damage = Main.expertMode ? 120 : 60; + } + statChange = true; + } + if (npc.ai[0] == 0f) + { + if (Main.netMode != 1) + { + if (npc.velocity.X != 0f || npc.velocity.Y < 0f || (double)npc.velocity.Y > 0.9) + { + npc.ai[0] = 1f; + npc.netUpdate = true; + return; + } + npc.ai[0] = 1f; + npc.netUpdate = true; + return; + } + } + else if (npc.velocity.Y == 0f) + { + npc.ai[2] += 1f; + int num321 = 20; + if (npc.ai[1] == 0f) + { + num321 = 12; + } + if (npc.ai[2] < (float)num321) + { + npc.velocity.X = npc.velocity.X * 0.9f; + return; + } + npc.ai[2] = 0f; + npc.TargetClosest(true); + if (npc.direction == 0) + { + npc.direction = -1; + } + npc.spriteDirection = -npc.direction; + npc.ai[1] += 1f; + npc.ai[3] += 1f; + if (npc.ai[3] >= 4f) + { + npc.ai[3] = 0f; + if (npc.ai[1] == 2f) + { + float multiplierX = (float)Main.rand.Next(3, 7); + npc.velocity.X = (float)npc.direction * multiplierX; + npc.velocity.Y = -8f; + npc.ai[1] = 0f; + } + else + { + float multiplierX = (float)Main.rand.Next(5, 9); + npc.velocity.X = (float)npc.direction * multiplierX; + npc.velocity.Y = -4f; + } + } + npc.netUpdate = true; + return; + } + else + { + if (npc.direction == 1 && npc.velocity.X < 1f) + { + npc.velocity.X = npc.velocity.X + 0.1f; + return; + } + if (npc.direction == -1 && npc.velocity.X > -1f) + { + npc.velocity.X = npc.velocity.X - 0.1f; + return; + } + } + } + else + { + npc.damage = 0; + } + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + if (projectile.minion) + { + return hasBeenHit; + } + return null; + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 1.0; + if (npc.frameCounter > 4.0) + { + npc.frameCounter = 0.0; + npc.frame.Y = npc.frame.Y + frameHeight; + } + if (hitAmount < 3) + { + npc.frame.Y = frameHeight * 4; + } + else + { + if (npc.frame.Y > frameHeight * 3) + { + npc.frame.Y = 0; + } + } + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !spawnInfo.player.GetModPlayer(mod).clamity) + { + return SpawnCondition.CaveJellyfish.Chance * 1.2f; + } + return 0f; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 50; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Clam/Clam1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Clam/Clam2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Clam/Clam3"), 1f); + } + } + public override void NPCLoot() + { + if (Main.rand.Next(2) == 0 && Main.hardMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MolluskHusk")); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/Clam.png b/NPCs/SunkenSeaNPCs/Clam.png new file mode 100644 index 0000000000000000000000000000000000000000..f7eb5f074aab37354013c5434e2db1e216324032 GIT binary patch literal 830 zcmV-E1Ht@>P)Px#9#BkFMF0Q*6$T|IFf}$sNJ?Q~YJzwlAunme!2kdNBt36J9(jNO000VfQchC< z|NsC0|NsC0|9*)SRsaA3xJg7oRA_LTAP|Hj3Z1_H3%A?N1|&%2AZ;?`W?Cik zITwERHhQ_dKrC527evPpoLg6ajcq%H8^L7(!f&9lQ6or9f8Kvw!~1mweu$bt z4GL35YTk!y;2h|>7EmL&EZc^G$3?*C>V85fQyv9!P=KKW5TyC}9RTAEaJwDa0j2{Y zm>@#8z_n4J7B#wXIFulVN(&)d>_!k%fnm`EXy~0&J6_qP+6^i#cH=!pX>r>Zy4WgW9pK+ZUdWq@xdBvZWkF>ruT;iv z5T!0oeJrk!kp~{Y2&Sbq3Kk`$ny?9EDd%>MLW!HGv>sR%BPdzcP!Ln8BYsy{J3xqX zD*uF4Q1M@ACXZbprW-@EHw`N0JQlv85mZ4dS%!!gCc_9~D`|N#_KBwEVFb7@<J4K+2O6lvwa5Hvk>Sg0d`-Wr`OO$|YN)KpG@nl<3C?UJ}kb!7_p} z@Tmy1rDSCuGRtBFS;}Rn)s2NbwT3G1x6RfGre^luJZO>%&pJ$?%mX`=&4U(v(RDO} zfA2cdMXp<&ave?Jv3W?hb(8CO08ZC2;~itk;@Mzs9v~JCkDeMqy(%f2hw9596Nn`1 z=HYN7n?MOf-8@vpsu7&7BR3C-Z~M>**3CoZ4T}jpV;)r0n_Wi%Y%ven13feN3eP%_ zQp95Gq3bvePS-Kx9b>wVk>GS4|Iu~ygVS})H!SlF%L}-UFT-+D{dtn#?f?J)07*qo IM6N<$f*r|SaR2}S literal 0 HcmV?d00001 diff --git a/NPCs/SunkenSeaNPCs/EutrophicRay.cs b/NPCs/SunkenSeaNPCs/EutrophicRay.cs new file mode 100644 index 0000000000..afff640ada --- /dev/null +++ b/NPCs/SunkenSeaNPCs/EutrophicRay.cs @@ -0,0 +1,210 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.NPCs.SunkenSeaNPCs +{ + public class EutrophicRay : ModNPC + { + public bool hasBeenHit = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Eutrophic Ray"); + Main.npcFrameCount[npc.type] = 5; + } + + public override void SetDefaults() + { + npc.damage = 40; + npc.width = 116; + npc.height = 36; + npc.defense = Main.hardMode ? 15 : 5; + npc.lifeMax = Main.hardMode ? 500 : 150; + npc.aiStyle = -1; + aiType = -1; + npc.value = Main.hardMode ? Item.buyPrice(0, 0, 50, 0) : Item.buyPrice(0, 0, 5, 0); + npc.HitSound = SoundID.NPCHit1; + npc.DeathSound = SoundID.NPCDeath55; + npc.knockBackResist = 0f; + banner = npc.type; + bannerItem = mod.ItemType("EutrophicRayBanner"); + } + + public override void AI() + { + npc.TargetClosest(true); + if (npc.velocity.X > 0.25f) + { + npc.spriteDirection = 1; + } + else if (npc.velocity.X < 0.25f) + { + npc.spriteDirection = -1; + } + if (npc.justHit && !hasBeenHit) + { + hasBeenHit = true; + npc.damage = Main.expertMode ? 80 : 40; + if (Main.hardMode) + { + npc.damage = Main.expertMode ? 200 : 100; + } + npc.noTileCollide = true; + npc.noGravity = true; + if ((npc.Center.X) < Main.player[npc.target].Center.X) + { + npc.ai[0] = 1f; + } + else + { + npc.ai[0] = 2f; + } + } + npc.chaseable = hasBeenHit; + if (hasBeenHit) + { + float AccelerationY = Main.hardMode ? 0.4f : 0.2f; + float MaxSpeedY = Main.hardMode ? 4f : 2.5f; + float Rotation = 0; + if ((npc.Center.Y + 0.4f) > Main.player[npc.target].Center.Y) + { + npc.velocity.Y -= AccelerationY; + if (npc.velocity.Y < -MaxSpeedY) + { + npc.velocity.Y = -MaxSpeedY; + } + } + else if ((npc.Center.Y - 0.4f) < Main.player[npc.target].Center.Y) + { + npc.velocity.Y += AccelerationY; + if (npc.velocity.Y > MaxSpeedY) + { + npc.velocity.Y = MaxSpeedY; + } + } + float AccelerationX = Main.hardMode ? 0.4f : 0.25f; + float MaxSpeedX = Main.hardMode ? 6f : 4f; + + if (npc.ai[0] == 1f) + { + Rotation = -0.05f; + npc.velocity.X -= AccelerationX; + if (npc.velocity.X < -MaxSpeedX) + { + npc.velocity.X = -MaxSpeedX; + } + + if ((npc.Center.X + 300f) < Main.player[npc.target].Center.X) + { + npc.ai[0] = 2f; + } + } + else if (npc.ai[0] == 2f) + { + Rotation = 0.05f; + npc.velocity.X += AccelerationX; + if (npc.velocity.X > MaxSpeedX) + { + npc.velocity.X = MaxSpeedX; + } + + if ((npc.Center.X - 300f) > Main.player[npc.target].Center.X) + { + npc.ai[0] = 1f; + } + } + + npc.rotation = npc.velocity.Y * Rotation; + if ((double)npc.rotation < -0.1) + { + npc.rotation = -0.1f; + } + if ((double)npc.rotation > 0.1) + { + npc.rotation = 0.1f; + return; + } + } + else + { + npc.damage = 0; + } + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += (hasBeenHit ? 0.15f : 0f); + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector = center - Main.screenPosition; + vector -= new Vector2((float)mod.GetTexture("NPCs/SunkenSeaNPCs/EutrophicRayGlow").Width, (float)(mod.GetTexture("NPCs/SunkenSeaNPCs/EutrophicRayGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); + Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.LightBlue); + Main.spriteBatch.Draw(mod.GetTexture("NPCs/SunkenSeaNPCs/EutrophicRayGlow"), vector, + new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + if (projectile.minion) + { + return hasBeenHit; + } + return null; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !spawnInfo.player.GetModPlayer(mod).clamity) + { + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } + return 0f; + } + + public override void NPCLoot() + { + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("EutrophicShank")); + } + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 25; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/EutrophicRay/RayGore1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/EutrophicRay/RayGore2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/EutrophicRay/RayGore3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/EutrophicRay/RayGore4"), 1f); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/EutrophicRay.png b/NPCs/SunkenSeaNPCs/EutrophicRay.png new file mode 100644 index 0000000000000000000000000000000000000000..f0052132894fd8edf02686ddca4f0cd3c3ac2711 GIT binary patch literal 4397 zcmX|Fc{o(<-#;EdDN}kXOQVL!I)(~kUot2vOJnR4W#4HmlhII~(4xgMWUP~Y8H}Bb zB{djf$iAi;LU^)GBHrVDf7g3mXZh!x`~Gg9<(wxLW>=5#iSPjcaLmNm5Dngg!L$1C zA@FL1JDdmre{Yx=>SOMuFK6@wV27ZLESd*n=8|M+;K^7?zQc#T;Bc;!EFtm6g}*2$ zt0Rr8PApTk2XHInTbMr(c*sMHAce2U*PgOQDZ~_7kRM^hFP}_&J*xg|A`=?ksJ=d` zyZTXUzIPHDKKJd9A0w!xJR~cukIvEV<2u^@9jg>h1jHHZ9KuXEFM$g%xVi>Bi0-rQ zW)?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jE8s!S|GLgo9npSd!2E1`S*%vFw+CVaMvW6D^yplwlrg$;wSOy) zhbnXLu?6GZ@Lu%Gq>DZeB~J%wJuT${cU4KZObWi?kAA&AbCqB8EDqUi=P?);Euky~ zS5(*dvQq0ZL1cn_-g8b+dvio8%zI5Z`|E^o%>mah#_{y@D<}(9pLmGZ0;yBSxZ_^k z2<8AP+AjL=SAjY&HYSRo5Mm-}XJFAf#1a`&C+K%TB~S=DzOqFzK1axVI)&bA`#G#4 zX0@>B*rkh?UU5CR5kS1-wEacT)X(YQgUexBXsfR0nAQj;Y>O~;AQmI9bg#j+znxi5 zj^o+hXDP|55D3b>I<>RcLS$XqKrG~A+z_32^)$wt4*9?}GIbUs^=9SQ+Bv$1Sj}-f zZ{%*Q)1-|o-O-@G!Sjx_l`dUvLKinQHS|do_(36tj`2;$N$Unsh&}a~oLaE9;dM1} z$_<`@(x9|X6=5pXnSW*C(Ti@|b7VAI+1at{|BXH_E>I#1;q}B(gdCNapXIqj6G$@l z3TOOPP*sB+5}~>xjM>-SPWWjl!IC~^5%TAL2A;inY(b1vBpXt>_n7n8*nKlPJ7N3T zIZ`n!7G#JhC}dj~?pJy^Up{QdtLbu`Fi@F+e>mx8G(=2(!TTQu{i9C>2)_oIn; z7r&r=GD?FU$$I|2y7r5=;MG0TVno8$ACH_J&>Nr6VM8Igkre})T1rQN*UiBc_YymJ z%G3LcVNNCiEh}}`H1-2p2;7(Jubfouu=bt%*F^1#{g{sY^46t>1M=ExF0kry6=aK^ z#)s+G?QMrb3nRMQhl?@A`NrGdo{kY+ugAN@-V*H}R|3w}eOpV?q^mih|7+OC$nyMJ zQtX{utEjCcCv@;*_X!|H~@A%^uecQ#$QR3il5WvL9%&-h~ HJL-P`x*Uty literal 0 HcmV?d00001 diff --git a/NPCs/SunkenSeaNPCs/EutrophicRayGlow.png b/NPCs/SunkenSeaNPCs/EutrophicRayGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..585d222148edab76e5fbc1f14cbb6447004c6a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RY3wS1& zQ|HoX4@4dz*71Ql4_G~z_WEO0vgSXdGvK)JtNeHBfb?`CH$XruYZ;eYnIH!(X;@f) z$|?!|zB%&_qarEaYu-l(XlUaiM!(0dk>wq*s6d@O!k#MT@2VmRI|DKXF0Q-%Rk{mS zjxW}e2?uy1^q%qU{c<(7?%i1H**q@+fNs`__or}W*j6BAP%Az-sXzp)Bv|4;y2O<pFQ+>O0+L;JP*GdAnoawWzDtd)Io`7kN zX@zyd^k6r_CpJfZ`|w1WGKdgc}e)xaZtFj9SMz2Umsnn(mT8^4suycP^oFr&uAWi5X6}~7P@18)JhM% z!y~V%s1@!0(XF<*IDwTi?>%A?^~ 0f) + { + npc.localAI[2] -= 1f; + } + if (npc.localAI[2] <= 0f) + { + if (npc.velocity.Y == 0f) + { + npc.localAI[1] += 1f; + } + else + { + npc.localAI[1] = 0f; + } + npc.velocity.Y += 0.1f; + if (npc.velocity.Y > 3f || npc.localAI[1] >= 6f) + { + npc.velocity.Y = -3f; + } + } + } + else + { + npc.noGravity = false; + npc.velocity.Y = 2f; + npc.localAI[2] = 75f; + npc.netUpdate = true; + } + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + if (projectile.minion) + { + return hasBeenHit; + } + return null; + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 0.1f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !spawnInfo.player.GetModPlayer(mod).clamity) + { + return SpawnCondition.CaveJellyfish.Chance * 0.9f; + } + return 0f; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector = center - Main.screenPosition; + vector -= new Vector2((float)mod.GetTexture("NPCs/SunkenSeaNPCs/GhostBellGlow").Width, (float)(mod.GetTexture("NPCs/SunkenSeaNPCs/GhostBellGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); + Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.LightBlue); + Main.spriteBatch.Draw(mod.GetTexture("NPCs/SunkenSeaNPCs/GhostBellGlow"), vector, + new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); + } + + public override void OnHitPlayer(Player player, int damage, bool crit) + { + player.AddBuff(BuffID.Electrified, 120, true); + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 25; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/GhostBell.png b/NPCs/SunkenSeaNPCs/GhostBell.png new file mode 100644 index 0000000000000000000000000000000000000000..0a9a9758021f8489d1581cf61999272a58ae79aa GIT binary patch literal 5517 zcmX9?c{r5c`yN}i$~t8UmHLn+sfLifD1>M%V{InuD8kscl*-sEdknIV!DMVBOJz{D zY%@cQ?8`8+Z{hd){{DI2b6w{=*E#R|-1oVk`-wI+)<4B1!UY0>PTjwE#|(HYfj~?h z94CMgTd6Sc1V6feNBdF0$K@=WSm+$8JzO-k)2lg_J-t)t(YgLy+eQ#z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R{zq(5!wryb%$#zFGI!*X(Mv zy2-YQhSZsK|FJs1Ml3OOdzr&AFd-O|)Q1K6mTZ@F|8i*(LrwrC_;UE}T(Yl9LpUF4 zg)k%P(M{P9d5gLzBh#Qpp93stwa|b;{@podJYWDESaBLv{{-&RL> zHhP^uV`*nolg8-5nF80v1u1IozI^)Q7?`z~bqFg-u0PuvIivW~-2!{Km64OC_u(CW zwEc~VR9gxJK~_voH3M>w4B~;w&iI&bXT24XIW+6{jkPv#D@&eA^dG-epK$xht0X@R zRvOR&GUF{Rl#f){sU{^|h_~H)l8=v`&g%Iy*LSg7t@25k|LHJsm81rin5DuFm8%x^ zd3Bd?3LQnI1T;9s-_wbWgYraxRWm`3a1KFC{%EG3aviJY841_uFP~tqcyT6ODV(%m zc3c>eVBdKdyz=iFTzVjZyQeC6u#XG9HSZ{1pi(WBJh==xZb5!E(=@*- z^6RG+c$FN|n@2#WE7lw|jI%qgy~7F}joUSd5_LPoh7OVw$q$|UiqsT>R?TXScUODI z6B<`s{4~Uwx-yn;E&$DhXiW2gVDRh?2*gd1j~P>3NNu&$Wqgq?sH%tbb2Y6|p1Y*5 z$$G|v^o%i}KU?jLio=i`W^-AZ!ntK1*>-&sW|RaEaJY2bWC;yp2~xtvBwW&1l!yUz zYL6F`8msOS+)XCRr)t=4bIMEijhC?^@P7gP6wNSO5w)TrNcnjg) zMVAYwd%CUa1S1T)NyMNg=aGq{-f4y{0&CeA1;b zv#5Jn#OU9@vu zXTPfs|NcqaTE0I3XS)l4r&~-XO~}B%5HoW<^Q^XF+>FY#u%7z;0(F)0V@}k}X(7%I z=N%h-S%}lqqo|$lUu2IbCIbh6mYLC 0f) + { + npc.velocity.Y = 0f; + } + } + else + { + npc.noGravity = false; + } + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + if (projectile.minion) + { + return hasBeenHit; + } + return null; + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !spawnInfo.player.GetModPlayer(mod).clamity) + { + return SpawnCondition.CaveJellyfish.Chance * 1.5f; + } + return 0f; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector = center - Main.screenPosition; + vector -= new Vector2((float)mod.GetTexture("NPCs/SunkenSeaNPCs/GhostBellSmallGlow").Width, (float)(mod.GetTexture("NPCs/SunkenSeaNPCs/GhostBellSmallGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); + Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.LightBlue); + Main.spriteBatch.Draw(mod.GetTexture("NPCs/SunkenSeaNPCs/GhostBellSmallGlow"), vector, + new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 2; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 10; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/GhostBellSmall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+b zg9)qo!?eoR4`%LHV751vuss`Qs|y9951YQ);{dqh)w_3O(24eJXzD`o$|Ij1Z~)qx z)Q-Hks#?>B(ns#JYg&7OsT1wluzYE~_CVIq1<8D1VvC+_Gf_6bBCB%yD~(`C4UJJc zPcot;ZPpp<)XEbrDmk2JZr1uKh(@)0`wZjF&04-tGN6%A#DUc8nPlJ0Oex8c5WOj| z$I#6EnwimTVP;B2Zwf~B;V4FN3*x%v@&7+3*-h;rx-qaP*;DftsVCV1ZBoAU=3k#=H(~0?z@1b`i9`+4`f1O3i&u({6wNOqA@^qN&E7e0zZJ#r_Z5=W z7A69}-_kfm6P#qffDJG8I~n8`#gLN<5|I)}c3Vbdm`z>qnBI7XnSS*n5UpWGCrqtx zYJ8Kam2=+OcP>*D!(r=84#p0Ow2u00000NkvXXu0mjfl>v!u literal 0 HcmV?d00001 diff --git a/NPCs/SunkenSeaNPCs/GhostBellSmallGlow.png b/NPCs/SunkenSeaNPCs/GhostBellSmallGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..ee927c6bed2a1ccb813a3be670a9b9d5c0b95e04 GIT binary patch literal 1805 zcmV+o2lDudP)ax(qH>kY^6fiQE5CIH}G zy6gfher<(T@0%BQ0ZHu77?*ROn-f)IvGF1>}xz*)qpU+#f3V>r$Ej=g6&E}vp~?XO!gY08yHDz$Q_aGY9Dwew3qYzZ17yP_Gt+jlleqwdb%I&j zGC&NIShVt<e@VNthRJG<#u6^TV+Y^XDxThQ7=VhWYPIrh>)+Gv=gyf6z_G2{Rexg# z9e|51X8@aC+IsY`3$Wycmq%gD&j03WV>MXNV%irVvB zIj8nK_Es8UdjI;h$?M}Tz*~1dlD46Eb6$AB0hqm_P8*r;Hhtu%>&F1}wCx3g@Wp@0 z9a{CZH{QRY!2yVrRp~aapWy%$S46aO>3gH2&rkdF&_vgvLjX*xsRE$?yejYR?REeh zr%$WjACEf#V+#w@_7@z67n_>IzAiw|UvU7=G`9f|2}J{ks}ZXwUNtCjv0}UiDSkzR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NPCs/GiantClam.cs @@ -0,0 +1,394 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Localization; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles; + +namespace CalamityMod.NPCs.SunkenSeaNPCs +{ + public class GiantClam : ModNPC + { + public int hitAmount = 0; + public int attack = -1; //-1 doing nothing, 0 = shell hiding, 1 = telestomp, 2 = pearl burst, 3 = pearl rain + public bool attackAnim = false; + public bool hasBeenHit = false; + public bool statChange = false; + public bool hide = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Giant Clam"); + Main.npcFrameCount[npc.type] = 12; + } + + public override void SetDefaults() + { + //npc.damage = Main.hardMode ? 100 : 50; + npc.npcSlots = 5f; + npc.damage = 50; + npc.width = 226; + npc.height = 136; + //npc.defense = Main.hardMode ? 35 : 10; + npc.defense = 9999; + npc.lifeMax = Main.hardMode ? 7500 : 1250; + npc.aiStyle = -1; + aiType = -1; + npc.value = Main.hardMode ? Item.buyPrice(0, 10, 0, 0) : Item.buyPrice(0, 1, 0, 0); + npc.HitSound = SoundID.NPCHit4; + npc.knockBackResist = 0f; + npc.rarity = 2; + banner = npc.type; + bannerItem = mod.ItemType("GiantClamBanner"); + } + + public override void AI() + { + npc.TargetClosest(true); + Player player = Main.player[npc.target]; + if (npc.justHit && hitAmount < 5) + { + ++hitAmount; + hasBeenHit = true; + } + npc.chaseable = hasBeenHit; + if (hitAmount == 5) + { + if (Main.netMode != 2) + { + if (!Main.player[npc.target].dead && Main.player[npc.target].active) + { + player.AddBuff(mod.BuffType("Clamity"), 2); //CLAM INVASION + } + } + + if (!hide) + Lighting.AddLight(npc.Center, 0f, ((255 - npc.alpha) * 2.5f) / 255f, ((255 - npc.alpha) * 2.5f) / 255f); + + if (!statChange) + { + npc.defense = 10; + npc.damage = Main.expertMode ? 100 : 50; + if (Main.hardMode) + { + npc.defense = 35; + npc.damage = Main.expertMode ? 200 : 100; + } + statChange = true; + } + + if (npc.ai[0] < 240f) + { + npc.ai[0] += 1f; + hide = false; + } + else + { + if (attack == -1) + { + attack = Main.rand.Next(2); + if (attack == 0) + { + attack = Main.rand.Next(2); //rarer chance of doing the hiding clam + } + } + else if (attack == 0) + { + hide = true; + npc.defense = 9999; + npc.ai[1] += 1f; + if (npc.ai[1] >= 90f) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + hide = false; + attack = -1; + npc.defense = Main.hardMode ? 35 : 10; + NPC.NewNPC((int)(npc.Center.X + 5), (int)npc.Center.Y, mod.NPCType("Clam"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)(npc.Center.X), (int)npc.Center.Y, mod.NPCType("Clam"), 0, 0f, 0f, 0f, 0f, 255); + NPC.NewNPC((int)(npc.Center.X - 5), (int)npc.Center.Y, mod.NPCType("Clam"), 0, 0f, 0f, 0f, 0f, 255); + } + } + else if (attack == 1) + { + if (npc.ai[2] == 0f) + { + if (Main.netMode != 1) + { + npc.TargetClosest(true); + npc.ai[2] = 1f; + npc.netUpdate = true; + } + } + else if (npc.ai[2] == 1f) + { + npc.damage = 0; + npc.chaseable = false; + npc.dontTakeDamage = true; + npc.noGravity = true; + npc.noTileCollide = true; + npc.alpha += Main.hardMode ? 8 : 5; + if (npc.alpha >= 255) + { + npc.alpha = 255; + npc.position.X = player.Center.X - (float)(npc.width / 2); + npc.position.Y = player.Center.Y - (float)(npc.height / 2) + player.gfxOffY - 200f; + npc.position.X = npc.position.X - 15f; + npc.position.Y = npc.position.Y - 100f; + npc.ai[2] = 2f; + npc.netUpdate = true; + } + } + else if (npc.ai[2] == 2f) + { + if (Main.rand.Next(2) == 0) + { + int num5 = Dust.NewDust(npc.position, npc.width, npc.height, 226, 0f, 0f, 200, default(Color), 1.5f); + Main.dust[num5].noGravity = true; + Main.dust[num5].velocity *= 0.75f; + Main.dust[num5].fadeIn = 1.3f; + Vector2 vector = new Vector2((float)Main.rand.Next(-200, 201), (float)Main.rand.Next(-200, 201)); + vector.Normalize(); + vector *= (float)Main.rand.Next(100, 200) * 0.04f; + Main.dust[num5].velocity = vector; + vector.Normalize(); + vector *= 34f; + Main.dust[num5].position = npc.Center - vector; + } + npc.alpha -= Main.hardMode ? 7 : 4; + if (npc.alpha <= 0) + { + npc.damage = Main.expertMode ? 100 : 50; + if (Main.hardMode) + { + npc.damage = Main.expertMode ? 200 : 100; + } + npc.chaseable = true; + npc.dontTakeDamage = false; + npc.alpha = 0; + npc.ai[2] = 3f; + npc.netUpdate = true; + } + } + else if (npc.ai[2] == 3f) + { + npc.velocity.Y += 0.8f; + attackAnim = true; + if ((npc.Center.Y) > (player.Center.Y - (float)(npc.height / 2) + player.gfxOffY - 15f)) + { + npc.noTileCollide = false; + npc.ai[2] = 4f; + npc.netUpdate = true; + } + } + else if (npc.ai[2] == 4f) + { + if (npc.velocity.Y == 0f) + { + npc.ai[2] = 0f; + npc.ai[0] = 0f; + npc.netUpdate = true; + npc.noGravity = false; + attack = -1; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/ClamImpact"), (int)npc.position.X, (int)npc.position.Y); + for (int stompDustArea = (int)npc.position.X - 30; stompDustArea < (int)npc.position.X + npc.width + 60; stompDustArea += 30) + { + for (int stompDustAmount = 0; stompDustAmount < 5; stompDustAmount++) + { + int stompDust = Dust.NewDust(new Vector2(npc.position.X - 30f, npc.position.Y + (float)npc.height), npc.width + 30, 4, 33, 0f, 0f, 100, default(Color), 1.5f); + Main.dust[stompDust].velocity *= 0.2f; + } + int stompGore = Gore.NewGore(new Vector2((float)(stompDustArea - 30), npc.position.Y + (float)npc.height - 12f), default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[stompGore].velocity *= 0.4f; + } + } + npc.velocity.Y += 0.8f; + } + } + } + + if (npc.ai[3] < 180f && Main.hardMode) + { + npc.ai[3] += 1f; + } + else if (Main.hardMode) + { + if (attack == -1) + { + attack = Main.rand.Next(2, 4); + } + else if (attack == 2) + { + Main.PlaySound(SoundID.Item67, npc.position); + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int projectileShot = mod.ProjectileType("PearlBurst"); + int damage = Main.expertMode ? 50 : 75; + float speed = 5f; + Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); + float num6 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector.X + (float)Main.rand.Next(-20, 21); + float num7 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector.Y + (float)Main.rand.Next(-20, 21); + float num8 = (float)Math.Sqrt((double)(num6 * num6 + num7 * num7)); + num8 = speed / num8; + num6 *= num8; + num7 *= num8; + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, num6, num7, projectileShot, damage, 0f, Main.myPlayer, 0f, 0f); + for (int i = 0; i < 4; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(value9.X, value9.Y, (float)(Math.Sin(offsetAngle) * 3f), (float)(Math.Cos(offsetAngle) * 3f), projectileShot, damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(value9.X, value9.Y, (float)(-Math.Sin(offsetAngle) * 3f), (float)(-Math.Cos(offsetAngle) * 3f), projectileShot, damage, 0f, Main.myPlayer, 0f, 0f); + } + attack = -1; + npc.ai[3] = 0f; + } + else if (attack == 3) + { + if (Main.netMode != 1) + { + Main.PlaySound(SoundID.Item68, npc.position); + int damage = Main.expertMode ? 30 : 50; + float shotSpacing = 750f; + for (int i = 0; i < 11; i++) + { + Projectile.NewProjectile(player.Center.X + shotSpacing, player.Center.Y - 750f, 0f, 8f, mod.ProjectileType("PearlRain"), damage, 0f, Main.myPlayer, 0f, 0f); + shotSpacing -= 150f; + } + } + attack = -1; + npc.ai[3] = 0f; + } + } + } + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + if (projectile.minion) + { + return hasBeenHit; + } + return null; + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 1.0; + if (npc.frameCounter > (attackAnim ? 2.0 : 5.0)) + { + npc.frameCounter = 0.0; + npc.frame.Y = npc.frame.Y + frameHeight; + } + if (hitAmount < 5 || hide) + { + npc.frame.Y = frameHeight * 11; + } + else if (attackAnim) + { + if (npc.frame.Y < frameHeight * 3) + { + npc.frame.Y = frameHeight * 3; + } + if (npc.frame.Y > frameHeight * 10) + { + hide = true; + attackAnim = false; + } + } + else + { + if (npc.frame.Y > frameHeight * 3) + { + npc.frame.Y = 0; + } + } + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("GiantClam"))) + { + return SpawnCondition.CaveJellyfish.Chance * 0.06f; + } + return 0f; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 50; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/GiantClam/GiantClam1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/GiantClam/GiantClam2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/GiantClam/GiantClam3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/GiantClam/GiantClam4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/GiantClam/GiantClam5"), 1f); + } + } + + public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector = center - Main.screenPosition; + vector -= new Vector2((float)mod.GetTexture("NPCs/SunkenSeaNPCs/GiantClamGlow").Width, (float)(mod.GetTexture("NPCs/SunkenSeaNPCs/GiantClamGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); + Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.LightBlue); + Main.spriteBatch.Draw(mod.GetTexture("NPCs/SunkenSeaNPCs/GiantClamGlow"), vector, + new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); + } + + public override void NPCLoot() + { + int seahoe = NPC.FindFirstNPC(mod.NPCType("SEAHOE")); + if (seahoe == -1 && Main.netMode != 1 && CalamityWorld.downedDesertScourge) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("SEAHOE"), 0, 0f, 0f, 0f, 0f, 255); + } + if (Main.rand.Next(3) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("GiantPearl")); + } + if (CalamityWorld.revenge && Main.rand.Next(2) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("AmidiasPendant")); + } + if (Main.hardMode) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("MolluskHusk"), Main.rand.Next(6, 12)); + + int itemChoice = Main.rand.Next(3); + switch (itemChoice) + { + case 0: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Poseidon")); + break; + case 1: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ClamCrusher")); + break; + case 2: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ClamorRifle")); + break; + case 3: + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("ShellfishStaff")); + break; + } + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/GiantClam.png b/NPCs/SunkenSeaNPCs/GiantClam.png new file mode 100644 index 0000000000000000000000000000000000000000..5d3b86702f543e1c90e017b297e0cfdf73a6b0fc GIT binary patch literal 68995 zcmcG$c{tSV|Mzd-mt0bI$rVLqnGD5H5!Y3OY}tk^qlTW!&eZIEG>v^6}jBo1ma*1*= zFfj1`{g>`7;OBP+1~vx{HsCj>+B7W&h7$~b>s~QKq%SnwN7?lw=^@?QgXD@&6Mri! zgJW>HDp66g!lzC~9hufKHj_@hZfHT{5SLaQg?@XPACt~v$0$`qK9?N)8|h?lV;6SCYP%xZ@^%yHA_od zb-Tp`nRO&E8pL8Yoyr~Hq_^pmun_$ zU@L;L)uYt(qxJ=NG$Q5iw4OK}uJrv<1oHg3a^NG{YAA|m^!>2$jn3`R>HQ%mm|Hh) zN|d8rWJFcP0aoqff3Mqh$X3NhRmy?+Vcw$K?waj1t-d~Bpc;fv(HBIL zQXrpc7fZJc0s-87^Xu;xY>&#qjWOg33^G zk^DVGG3>aZh#t>Frdb=AN=BkaWAwso(9Kgi?*s@vSW{$^ia_n=F_ka#<~oJ97YFJ+ z${}Nk$L$M4GRLVImW+`rbQX8L_NRW^Z7&b!)(ARjpkD1Xg2x{_kGJIMAiHU120$K# zLQAGZo>|q>?oQJN)3)8lYoMSaqEIGHox6C6q4|+m5z(~mgOf%(`{6&Pkp|S94knlF ziHhM$$=LQsqe(srE*cl>3oD~EGjXui`52*ogaoPrYMS{of!i*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K7?hQUG$9?&Io&D8kOV%T2HieasczlCLaM-$SgoSi&fx{Xs`8Ztd+=kVP(qh zh?>3v=q@q*XqZXLza%qw$6;w*roruA&D$=mHHU9j81uZ=ddU(oGYdbBx1h*%5ut^E zPi>%-QL$17F&WVuSy-J<8Y?j_H9Hu9a&fb~deXw=IV>pe+}gFPJH^%ibWQ8z{_O_k zSjt2CtWa4qyUlt_)K02k3rl>4FNS<%UUNoBx45i5AiNu!mn}zDpB;Z%0QP2aB1WdC zyA2KsApZn5d6kc=Z@R{S)yzU={?zun2S>$0iLQYk!3nZIne;ppSN8KBOB=CfPwLw9d!}=6R$Nq$R>q^vf#$!Q>PAS}RC=ga&82D+pXRo!u-X)TQ}! zXsFnn^t4*n_+T~Uu%_%tM0=w(#&nWU$C-7WzB1HjooZeCJ!9Fawrn`E6CFH=+8;xu zA5M9m&GY!oS~Cy^#4?U8JG$)zB}lj9*DMjc8*lI+F|NOIM$rH5{rr!}KPvD?1^%}R baK2O<9Pf!kNyqu7OK$>?9Cxlg9CGd-XC^da literal 0 HcmV?d00001 diff --git a/NPCs/SunkenSeaNPCs/PrismTurtle.cs b/NPCs/SunkenSeaNPCs/PrismTurtle.cs new file mode 100644 index 0000000000..3d051d362c --- /dev/null +++ b/NPCs/SunkenSeaNPCs/PrismTurtle.cs @@ -0,0 +1,279 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.NPCs.SunkenSeaNPCs +{ + public class PrismTurtle : ModNPC + { + public bool hasBeenHit = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Prism-Back"); + Main.npcFrameCount[npc.type] = 5; + } + + public override void SetDefaults() + { + npc.noGravity = true; + npc.damage = Main.hardMode ? 40 : 20; //normal damage + npc.width = 72; + npc.height = 58; + npc.defense = Main.hardMode ? 25 : 10; + npc.lifeMax = Main.hardMode ? 1000 : 350; + npc.aiStyle = -1; + aiType = -1; + npc.value = Main.hardMode ? Item.buyPrice(0, 0, 50, 0) : Item.buyPrice(0, 0, 5, 0); + npc.HitSound = SoundID.NPCHit24; + npc.DeathSound = SoundID.NPCDeath27; + npc.knockBackResist = 0.15f; + banner = npc.type; + bannerItem = mod.ItemType("PrismTurtleBanner"); + } + + public override void AI() + { + if ((npc.Center.Y + 10f) > Main.player[npc.target].Center.Y) + { + if (CalamityWorld.death) //gotta do damage scaling directly + { + npc.damage = Main.hardMode ? 240 : 120; + } + else if (CalamityWorld.revenge) + { + npc.damage = Main.hardMode ? 168 : 84; + } + else if (Main.expertMode) + { + npc.damage = Main.hardMode ? 160 : 80; + } + else + { + npc.damage = Main.hardMode ? 80 : 40; + } + } + else + { + if (CalamityWorld.death) //gotta do damage scaling directly + { + npc.damage = Main.hardMode ? 120 : 60; + } + else if (CalamityWorld.revenge) + { + npc.damage = Main.hardMode ? 84 : 42; + } + else if (Main.expertMode) + { + npc.damage = Main.hardMode ? 80 : 40; + } + else + { + npc.damage = Main.hardMode ? 40 : 20; + } + } + Lighting.AddLight(npc.Center, ((255 - npc.alpha) * 0f) / 255f, ((255 - npc.alpha) * 0.75f) / 255f, ((255 - npc.alpha) * 0.75f) / 255f); + npc.spriteDirection = ((npc.direction > 0) ? 1 : -1); + npc.noGravity = true; + if (npc.justHit) + { + hasBeenHit = true; + } + npc.chaseable = hasBeenHit; + if (npc.direction == 0) + { + npc.TargetClosest(true); + } + if (npc.wet) + { + if (npc.collideX || npc.velocity.X == 0f) + { + npc.velocity.X = npc.velocity.X * -1f; + npc.direction *= -1; + npc.netUpdate = true; + } + if (npc.collideY) + { + npc.netUpdate = true; + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y) * -1f; + npc.directionY = -1; + npc.ai[0] = -1f; + } + else if (npc.velocity.Y < 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y); + npc.directionY = 1; + npc.ai[0] = 1f; + } + } + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.1f; + if (npc.velocity.X < -2f || npc.velocity.X > 2f) + { + npc.velocity.X = npc.velocity.X * 0.95f; + } + if (npc.ai[0] == -1f) + { + npc.velocity.Y = npc.velocity.Y - 0.1f; + if (npc.velocity.Y < -1f) + { + npc.velocity.Y = -1f; + ++npc.ai[1]; + if (npc.ai[1] >= 120) + { + npc.ai[1] = 0; + npc.ai[0] = 1f; + } + } + } + else + { + npc.velocity.Y = npc.velocity.Y + 0.1f; + if (npc.velocity.Y > 1f) + { + npc.velocity.Y = 1f; + ++npc.ai[1]; + if (npc.ai[1] >= 120) + { + npc.ai[1] = 0; + npc.ai[0] = -1f; + } + } + } + int num258 = (int)(npc.position.X + (float)(npc.width / 2)) / 16; + int num259 = (int)(npc.position.Y + (float)(npc.height / 2)) / 16; + if (Main.tile[num258, num259 - 1] == null) + { + Main.tile[num258, num259 - 1] = new Tile(); + } + if (Main.tile[num258, num259 + 1] == null) + { + Main.tile[num258, num259 + 1] = new Tile(); + } + if (Main.tile[num258, num259 + 2] == null) + { + Main.tile[num258, num259 + 2] = new Tile(); + } + if (Main.tile[num258, num259 - 1].liquid > 128) + { + if (Main.tile[num258, num259 + 1].active()) + { + npc.ai[0] = -1f; + } + else if (Main.tile[num258, num259 + 2].active()) + { + npc.ai[0] = -1f; + } + } + if ((double)npc.velocity.Y > 0.4 || (double)npc.velocity.Y < -0.4) + { + npc.velocity.Y = npc.velocity.Y * 0.95f; + } + } + else + { + if (npc.velocity.Y == 0f) + { + npc.velocity.X = npc.velocity.X * 0.94f; + if ((double)npc.velocity.X > -0.2 && (double)npc.velocity.X < 0.2) + { + npc.velocity.X = 0f; + } + } + npc.velocity.Y = npc.velocity.Y + 0.4f; + if (npc.velocity.Y > 12f) + { + npc.velocity.Y = 12f; + } + npc.ai[0] = 1f; + npc.rotation = npc.velocity.Y * (float)npc.direction * 0.1f; + if ((double)npc.rotation < -0.2) + { + npc.rotation = -0.2f; + } + if ((double)npc.rotation > 0.2) + { + npc.rotation = 0.2f; + return; + } + } + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += (npc.wet ? 0.1f : 0f); + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Vector2 center = new Vector2(npc.Center.X, npc.Center.Y); + Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); + Vector2 vector = center - Main.screenPosition; + vector -= new Vector2((float)mod.GetTexture("NPCs/SunkenSeaNPCs/PrismTurtleGlow").Width, (float)(mod.GetTexture("NPCs/SunkenSeaNPCs/PrismTurtleGlow").Height / Main.npcFrameCount[npc.type])) * 1f / 2f; + vector += vector11 * 1f + new Vector2(0f, 0f + 4f + npc.gfxOffY); + Microsoft.Xna.Framework.Color color = new Microsoft.Xna.Framework.Color(127 - npc.alpha, 127 - npc.alpha, 127 - npc.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.Blue); + Main.spriteBatch.Draw(mod.GetTexture("NPCs/SunkenSeaNPCs/PrismTurtleGlow"), vector, + new Microsoft.Xna.Framework.Rectangle?(npc.frame), color, npc.rotation, vector11, 1f, spriteEffects, 0f); + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + if (projectile.minion) + { + return hasBeenHit; + } + return null; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !spawnInfo.player.GetModPlayer(mod).clamity) + { + return SpawnCondition.CaveJellyfish.Chance * 0.9f; + } + return 0f; + } + + public override void NPCLoot() + { + if (CalamityWorld.downedDesertScourge) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("PrismShard"), Main.rand.Next(1, 4)); + } + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 25; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/PrismTurtle/PrismTurtleGore1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/PrismTurtle/PrismTurtleGore2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/PrismTurtle/PrismTurtleGore3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/PrismTurtle/PrismTurtleGore4"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/PrismTurtle/PrismTurtleGore5"), 1f); + } + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/PrismTurtle.png b/NPCs/SunkenSeaNPCs/PrismTurtle.png new file mode 100644 index 0000000000000000000000000000000000000000..e0b6fe8eb921a9702b43304db1cde0a764002d4e GIT binary patch literal 6209 zcmZXZc{r5c+rS@62~n0T5v_y_N!b~aHCv43J0{t;vJYdYg@_6hm0e^V%OJ~GlBmJR z$i53>Y=gnXSl-9?cm3Y$y{`AKXP#@GXU;kIx$n>UoHH+t4Yg0R2(SPEa9UUAt|@rc z0RVNvD$7@_qqI>H(%Vb;TmLRRk_J9ULV zTGzM=vWOo~%5U>GScukOd0vxj8k==S=Tv?&@r3n=r`9bu%~#UdJluKhZ^x@(T-R$H zb!$r82GNb4xoD@!Do<=5N6*gWFm)_=ehf8?hG$Nu^me5w1;A)(J-&oG(oQBbyW+{r zKWh4}6iU#h`f=b+*?jNLVvW%Eve$qOkXDabte?Ap_8|Fc()S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JFndEQkv4y1adnz>UO2UOq3tygD+71A&!E#TlZyoKsGwb z+DJ4{##br7iAN}eF)TOK5K|4|^PH?2%yoy&dNkScNNA98Z(c_f6|ykiybE;CN%0{d zgS`(0o894noRK|t0Ys^NELmm$rbwJE?@jJl3AL3QUH}H9YRWWY0*|dcmmlF{J&HtM zqU8ATQow+ebgW$ac5#r;!QxY38P5_3&jg#plrWBTUbQ|nExIcC7pDbOlVAvO;apj; z@R9d#y%~F7)cu)i%&Ly1EkFOwl!8=cWZBKx(2sGJe>HAZQAN{c&ReE6EUtF_0-RnK zLLJ0C@-`V8oL22cOHjdOsRk`v@q%|jLPqR{In!v6Yi4K5Y5M7TMZt$p%nV%ld%e%G zEh^e|GAG)Olkp4xB=;lL)Uw1YUcu$Rh;zlR=3m8u8U263aRwV*Fk*Cu`d~Q;6YH%G z;@^x^p?CML5j`PjYOASx@QXmi0`(o14%$JX;c?-M@QH@s zqT{#y)Lehuo8Ro&9HwjvGseCfF{!w9@_}W=@Se2D*B49AJ^nwzc~3|htP*p>%{~sF zD}EB3G(zu2+axYBR($}Uc29?S^|%k_ZZv}XieMqr%oaw? z{IZdN)gVlag+X<)^8Lo6h&2cx%YPZNhE0?hV>mZJY(~6vw#rVq9lI2RmotFwr=bC3 z>amG!JR~uBQv^7tCD)N@TcB#Av1ec+;2iM5MTVjQuBP5jm3|R%#^-9|0#J5*FcmYZ gYOeCHasAla7V&pg|M`Ovz_nY-@uZV|wVf~VzxZLsNB{r; literal 0 HcmV?d00001 diff --git a/NPCs/SunkenSeaNPCs/SeaFloaty.cs b/NPCs/SunkenSeaNPCs/SeaFloaty.cs new file mode 100644 index 0000000000..9a4bdfe537 --- /dev/null +++ b/NPCs/SunkenSeaNPCs/SeaFloaty.cs @@ -0,0 +1,145 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles; + +namespace CalamityMod.NPCs.SunkenSeaNPCs +{ + public class SeaFloaty : ModNPC + { + public bool hasBeenHit = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sea Floaty"); + Main.npcFrameCount[npc.type] = 6; + } + + public override void SetDefaults() + { + npc.npcSlots = 0.5f; + npc.aiStyle = -1; + aiType = -1; + npc.damage = 5; + npc.width = 72; + npc.height = 22; + npc.defense = 0; + npc.lifeMax = 50; + npc.knockBackResist = 0.5f; + npc.value = Item.buyPrice(0, 0, 0, 50); + npc.HitSound = SoundID.NPCHit1; + npc.DeathSound = SoundID.NPCDeath1; + banner = npc.type; + bannerItem = mod.ItemType("SeaFloatyBanner"); + } + + public override void AI() + { + if (npc.velocity.X > 0.25f) + { + npc.spriteDirection = -1; + } + else if (npc.velocity.X < 0.25f) + { + npc.spriteDirection = 1; + } + if (npc.ai[0] == 0f) + { + npc.direction = 1; + npc.ai[0] = 1f; + } + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.1f; + if (npc.velocity.X < -2.5f || npc.velocity.X > 2.5f) + { + npc.velocity.X = npc.velocity.X * 0.95f; + } + if (npc.collideX) + { + npc.velocity.X = npc.velocity.X * -1f; + npc.direction *= -1; + npc.netUpdate = true; + } + + if (npc.justHit && !hasBeenHit) + { + hasBeenHit = true; + npc.noTileCollide = true; + npc.noGravity = true; + } + npc.chaseable = hasBeenHit; + if (hasBeenHit) + { + npc.TargetClosest(true); + npc.velocity.X = npc.velocity.X - (float)npc.direction * 0.5f; + npc.velocity.Y = npc.velocity.Y - (float)npc.directionY * 0.3f; + if (npc.velocity.X > 10f) + { + npc.velocity.X = 10f; + } + if (npc.velocity.X < -10f) + { + npc.velocity.X = -10f; + } + if (npc.velocity.Y > 10f) + { + npc.velocity.Y = 10f; + } + if (npc.velocity.Y < -10f) + { + npc.velocity.Y = -10f; + } + npc.direction *= -1; + npc.rotation = npc.velocity.X * 0.1f; + if ((double)npc.rotation < -0.3) + { + npc.rotation = -0.3f; + } + if ((double)npc.rotation > 0.3) + { + npc.rotation = 0.3f; + return; + } + } + } + + public override void FindFrame(int frameHeight) + { + npc.frameCounter += (hasBeenHit ? 0.3f : 0.15f); + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !spawnInfo.player.GetModPlayer(mod).clamity) + { + return SpawnCondition.CaveJellyfish.Chance * 0.45f; + } + return 0f; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 25; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SeaFloaty/SeaFloatyGore1"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SeaFloaty/SeaFloatyGore2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SeaFloaty/SeaFloatyGore3"), 1f); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/SeaFloaty.png b/NPCs/SunkenSeaNPCs/SeaFloaty.png new file mode 100644 index 0000000000000000000000000000000000000000..cb786ed41de17a06edeb819dc8165ee903b3fc2d GIT binary patch literal 1756 zcmV<21|#{2P)Px*mPtfGRCt{2ok3_FRTzc;SfLADg<23q-H0WXLc0@!3q>qli6}}DK?vwZP{~3B zp&*EhLIpP#0)nVm48>JYBv}>QRVZ32Zd3$8OINyZQFM`!JU4e!lh3&vWCpJMQT3(heq7zs3Ck6!O~NH;U~a-hHh2 zjQ_`Wr=(PnVd@Ivzx`I+9ahQ#e_pu~5fPV8FU6?+oRU&OhCBN{AS>pH^B+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Xg?l?b%COwZ!HSl!JWVI3bF2-#VP^*Q5zE%xK3c+oe yI#2EKR2rh%qEwJ!W>yOaeXqZfsYa5_H2(v~wpjSW8x8jW0000 0) ? 1 : -1); + npc.noGravity = true; + bool flag14 = false; + if (npc.direction == 0) + { + npc.TargetClosest(true); + } + if (npc.wet) + { + npc.TargetClosest(false); + if (Main.player[npc.target].wet && !Main.player[npc.target].dead && + (Main.player[npc.target].Center - npc.Center).Length() < 150f) + { + flag14 = true; + } + if ((!Main.player[npc.target].wet || Main.player[npc.target].dead) && flag14) + { + flag14 = false; + } + if (!flag14) + { + if (npc.collideX || npc.velocity.X == 0f) + { + npc.velocity.X = npc.velocity.X * -3f; + npc.direction *= -1; + npc.netUpdate = true; + } + if (npc.collideY) + { + npc.netUpdate = true; + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y) * -3f; + npc.directionY = -1; + npc.ai[0] = -1f; + } + else if (npc.velocity.Y < 0f) + { + npc.velocity.Y = Math.Abs(npc.velocity.Y); + npc.directionY = 1; + npc.ai[0] = 1f; + } + } + } + if (flag14) + { + npc.TargetClosest(true); + npc.velocity.X = npc.velocity.X - (float)npc.direction * 0.25f; + npc.velocity.Y = npc.velocity.Y - (float)npc.directionY * 0.15f; + if (npc.velocity.X > 6f) + { + npc.velocity.X = 6f; + } + if (npc.velocity.X < -6f) + { + npc.velocity.X = -6f; + } + if (npc.velocity.Y > 6f) + { + npc.velocity.Y = 6f; + } + if (npc.velocity.Y < -6f) + { + npc.velocity.Y = -6f; + } + npc.direction *= -1; + } + else + { + npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.1f; + if (npc.velocity.X < -2.5f || npc.velocity.X > 2.5f) + { + npc.velocity.X = npc.velocity.X * 0.95f; + } + if (npc.ai[0] == -1f) + { + npc.velocity.Y = npc.velocity.Y - 0.01f; + if ((double)npc.velocity.Y < -0.3) + { + npc.ai[0] = 1f; + } + } + else + { + npc.velocity.Y = npc.velocity.Y + 0.01f; + if ((double)npc.velocity.Y > 0.3) + { + npc.ai[0] = -1f; + } + } + } + int num258 = (int)(npc.position.X + (float)(npc.width / 2)) / 16; + int num259 = (int)(npc.position.Y + (float)(npc.height / 2)) / 16; + if (Main.tile[num258, num259 - 1] == null) + { + Main.tile[num258, num259 - 1] = new Tile(); + } + if (Main.tile[num258, num259 + 1] == null) + { + Main.tile[num258, num259 + 1] = new Tile(); + } + if (Main.tile[num258, num259 + 2] == null) + { + Main.tile[num258, num259 + 2] = new Tile(); + } + if (Main.tile[num258, num259 - 1].liquid > 128) + { + if (Main.tile[num258, num259 + 1].active()) + { + npc.ai[0] = -1f; + } + else if (Main.tile[num258, num259 + 2].active()) + { + npc.ai[0] = -1f; + } + } + if ((double)npc.velocity.Y > 0.4 || (double)npc.velocity.Y < -0.4) + { + npc.velocity.Y = npc.velocity.Y * 0.95f; + } + } + else + { + if (npc.velocity.Y == 0f) + { + npc.velocity.X = npc.velocity.X * 0.94f; + if ((double)npc.velocity.X > -0.2 && (double)npc.velocity.X < 0.2) + { + npc.velocity.X = 0f; + } + } + npc.velocity.Y = npc.velocity.Y + 0.3f; + if (npc.velocity.Y > 10f) + { + npc.velocity.Y = 10f; + } + npc.ai[0] = 1f; + } + npc.rotation = npc.velocity.X * 0.05f; + if ((double)npc.rotation < -0.1) + { + npc.rotation = -0.1f; + } + if ((double)npc.rotation > 0.1) + { + npc.rotation = 0.1f; + return; + } + } + + public override void FindFrame(int frameHeight) + { + if (!npc.wet) + { + npc.frameCounter = 0.0; + return; + } + npc.frameCounter += 0.075f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !spawnInfo.player.GetModPlayer(mod).clamity) + { + return SpawnCondition.CaveJellyfish.Chance * 0.6f; + } + return 0f; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default(Color), 1f); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/SeaMinnow.png b/NPCs/SunkenSeaNPCs/SeaMinnow.png new file mode 100644 index 0000000000000000000000000000000000000000..456d61faabbb9d7a60a1201aca1ce3b1639bf376 GIT binary patch literal 813 zcmV+|1JeA7P)0008>NklC!j00NLJkFFWxI6OUVDGXq=m&(gD>EoFH2mJu+&Hu>Y%` zIg?{YCyes;i+hy+aQ_vhPw!lJV#dml8bFQXXNZ|gi!Ecs-A_A|-#*x+bn?_>CR3e{ z9V*{@w?*m5xs#OkR#!3^vMqvv4XFXdfxLP7o<`JKdt%ta?&}AXuQitphQJJ%lbFKG zSG&)Q?_d>H)d7MLpKnhYh{436(|c6@_Qq{WzmH!w+DXj7rnupqou8v3z6z`V4WNE+ ze|6#c_H%#L%-ou#w7)T8jF9g~c<<|%O->Hw`Of}u;U<+^85$ZOz{k{O4yRJ7{1|Ic z6;=m!;`QanRBmI!c6N#TkUBs%W_US9X4^-k(_HGu`?OaF2qU!FKy-%G0+MVYwBFl> zLOXJOuP{JrM80HGHfBn5gYt@e&TQ@}D;-cQk_f4=4iS*6 zfKn&&)d7+OnPjxmOa$v8b#9O}($M-~hC(}(-YX1H@;Yo(=N0+3c96V|s$@ufrPRR0k+_tOKi=hZw+E^jJqQ zpt52e@J?_C4R_pzcEd^p6g$?zf4t-V;y*FhSg{UgK(0EdsL+B9n73k72dL;+M`3qA rit;)N1LSIRzU{ni$hQOE_J069GBh=nGsxfo0000 0f) + { + npc.realLife = (int)npc.ai[3]; + } + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead) + { + npc.TargetClosest(true); + } + npc.velocity.Length(); + if (Main.netMode != 1) + { + if (!TailSpawned && npc.ai[0] == 0f) + { + int Previous = npc.whoAmI; + for (int segment = 0; segment < maxLength; segment++) + { + int lol = 0; + if (segment == 0 || segment == 1 || segment == 4 || segment == 5) + { + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SeaSerpent2"), npc.whoAmI); + } + else if (segment == 2 || segment == 3 || segment == 6) + { + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SeaSerpent3"), npc.whoAmI); + } + else if (segment == 7) + { + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SeaSerpent4"), npc.whoAmI); + } + else if (segment == 8) + { + lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("SeaSerpent5"), npc.whoAmI); + } + Main.npc[lol].realLife = npc.whoAmI; + Main.npc[lol].ai[2] = (float)npc.whoAmI; + Main.npc[lol].ai[1] = (float)Previous; + Main.npc[Previous].ai[0] = (float)lol; + NetMessage.SendData(23, -1, -1, null, lol, 0f, 0f, 0f, 0); + Previous = lol; + } + TailSpawned = true; + } + } + int num180 = (int)(npc.position.X / 16f) - 1; + int num181 = (int)((npc.position.X + (float)npc.width) / 16f) + 2; + int num182 = (int)(npc.position.Y / 16f) - 1; + int num183 = (int)((npc.position.Y + (float)npc.height) / 16f) + 2; + if (num180 < 0) + { + num180 = 0; + } + if (num181 > Main.maxTilesX) + { + num181 = Main.maxTilesX; + } + if (num182 < 0) + { + num182 = 0; + } + if (num183 > Main.maxTilesY) + { + num183 = Main.maxTilesY; + } + if (npc.velocity.X < 0f) + { + npc.spriteDirection = -1; + } + else if (npc.velocity.X > 0f) + { + npc.spriteDirection = 1; + } + npc.localAI[1] = 0f; + bool canFly = flies; + if (Main.player[npc.target].dead) + { + npc.TargetClosest(false); + } + npc.alpha -= 42; + if (npc.alpha < 0) + { + npc.alpha = 0; + } + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 5600f || !NPC.AnyNPCs(mod.NPCType("SeaSerpent5"))) + { + npc.active = false; + } + float num188 = speed; + float num189 = turnSpeed; + Vector2 vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num191 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2); + float num192 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2); + int num42 = -1; + int num43 = (int)(Main.player[npc.target].Center.X / 16f); + int num44 = (int)(Main.player[npc.target].Center.Y / 16f); + for (int num45 = num43 - 2; num45 <= num43 + 2; num45++) + { + for (int num46 = num44; num46 <= num44 + 15; num46++) + { + if (WorldGen.SolidTile2(num45, num46)) + { + num42 = num46; + break; + } + } + if (num42 > 0) + { + break; + } + } + if (num42 > 0) + { + num42 *= 16; + float num47 = (float)(num42 - 200); //800 + if ((Main.player[npc.target].Center - npc.Center).Length() > 250f) + { + num192 = num47; + if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) < 250f) + { + if (npc.velocity.X > 0f) + { + num191 = Main.player[npc.target].Center.X + 300f; + } + else + { + num191 = Main.player[npc.target].Center.X - 300f; + } + } + } + } + float num48 = num188 * 1.3f; + float num49 = num188 * 0.7f; + float num50 = npc.velocity.Length(); + if (num50 > 0f) + { + if (num50 > num48) + { + npc.velocity.Normalize(); + npc.velocity *= num48; + } + else if (num50 < num49) + { + npc.velocity.Normalize(); + npc.velocity *= num49; + } + } + if ((Main.player[npc.target].Center - npc.Center).Length() > 250f) + { + for (int num51 = 0; num51 < 200; num51++) + { + if (Main.npc[num51].active && Main.npc[num51].type == npc.type && num51 != npc.whoAmI) + { + Vector2 vector3 = Main.npc[num51].Center - npc.Center; + if (vector3.Length() < 400f) + { + vector3.Normalize(); + vector3 *= 1000f; + num191 -= vector3.X; + num192 -= vector3.Y; + } + } + } + } + else + { + for (int num52 = 0; num52 < 200; num52++) + { + if (Main.npc[num52].active && Main.npc[num52].type == npc.type && num52 != npc.whoAmI) + { + Vector2 vector4 = Main.npc[num52].Center - npc.Center; + if (vector4.Length() < 60f) + { + vector4.Normalize(); + vector4 *= 200f; + num191 -= vector4.X; + num192 -= vector4.Y; + } + } + } + } + num191 = (float)((int)(num191 / 16f) * 16); + num192 = (float)((int)(num192 / 16f) * 16); + vector18.X = (float)((int)(vector18.X / 16f) * 16); + vector18.Y = (float)((int)(vector18.Y / 16f) * 16); + num191 -= vector18.X; + num192 -= vector18.Y; + float num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + if (npc.ai[1] > 0f && npc.ai[1] < (float)Main.npc.Length) + { + try + { + vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num191 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - vector18.X; + num192 = Main.npc[(int)npc.ai[1]].position.Y + (float)(Main.npc[(int)npc.ai[1]].height / 2) - vector18.Y; + } + catch + { + } + npc.rotation = (float)System.Math.Atan2((double)num192, (double)num191) + 1.57f; + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + int num194 = npc.width; + num193 = (num193 - (float)num194) / num193; + num191 *= num193; + num192 *= num193; + npc.velocity = Vector2.Zero; + npc.position.X = npc.position.X + num191; + npc.position.Y = npc.position.Y + num192; + if (num191 < 0f) + { + npc.spriteDirection = -1; + } + else if (num191 > 0f) + { + npc.spriteDirection = 1; + } + } + else + { + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + float num196 = System.Math.Abs(num191); + float num197 = System.Math.Abs(num192); + float num198 = num188 / num193; + num191 *= num198; + num192 *= num198; + if ((npc.velocity.X > 0f && num191 > 0f) || (npc.velocity.X < 0f && num191 < 0f) || (npc.velocity.Y > 0f && num192 > 0f) || (npc.velocity.Y < 0f && num192 < 0f)) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189; + } + } + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + if ((double)System.Math.Abs(num192) < (double)num188 * 0.2 && ((npc.velocity.X > 0f && num191 < 0f) || (npc.velocity.X < 0f && num191 > 0f))) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189 * 2f; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189 * 2f; + } + } + if ((double)System.Math.Abs(num191) < (double)num188 * 0.2 && ((npc.velocity.Y > 0f && num192 < 0f) || (npc.velocity.Y < 0f && num192 > 0f))) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189 * 2f; //changed from 2 + } + else + { + npc.velocity.X = npc.velocity.X - num189 * 2f; //changed from 2 + } + } + } + else + { + if (num196 > num197) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189 * 1.1f; //changed from 1.1 + } + else if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189 * 1.1f; //changed from 1.1 + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + } + else + { + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189 * 1.1f; + } + else if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189 * 1.1f; + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + npc.velocity.X = npc.velocity.X - num189; + } + } + } + } + } + npc.rotation = (float)System.Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) + 1.57f; + } + + public override float SpawnChance(NPCSpawnInfo spawnInfo) + { + if (Main.hardMode && spawnInfo.player.GetModPlayer(mod).ZoneSunkenSea && spawnInfo.water && !NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + { + return SpawnCondition.CaveJellyfish.Chance * 0.3f; + } + return 0f; + } + + public override void NPCLoot() + { + if (Main.rand.Next(4) == 0) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Serpentine")); + } + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 3; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 10; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SeaSerpent/SeaSerpentGore1"), 1f); + } + } + + public override bool CheckActive() + { + if (npc.timeLeft <= 0 && Main.netMode != 1) + { + for (int k = (int)npc.ai[0]; k > 0; k = (int)Main.npc[k].ai[0]) + { + if (Main.npc[k].active) + { + Main.npc[k].active = false; + if (Main.netMode == 2) + { + Main.npc[k].life = 0; + Main.npc[k].netSkip = -1; + NetMessage.SendData(23, -1, -1, null, k, 0f, 0f, 0f, 0, 0, 0); + } + } + } + } + return true; + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent1.png b/NPCs/SunkenSeaNPCs/SeaSerpent1.png new file mode 100644 index 0000000000000000000000000000000000000000..0e144e18e20d4e035c054bb65a864469f472d617 GIT binary patch literal 730 zcmV<00ww*4P)=<@Q+l?M1JD0a_-^|YP+3%ZqYv9ttzCi$5 z{jC60N|macxXy5=0Z_;m0LYdiY@{};0BwhbEbEQEsP~AnRjdMpf?4Z^&$fJh`56F@uH6UV{p)uCbXnTn?kNLM zDGGV5B5t+nL86u&8;Agq%ZkV%y(ar<*6$G-0eFLz|ch0=D)F0)cR{QlGnRL zzkXZ=YGgxE+5OLNBmr3cd<&?N23glSyTK*^yX{hkDZ9(tG(=tNB)sgy6$hf>D zok=^CYE$Je*})_c$cV}YSC%w;FxW0X5QBI51pz25J$*XdgZj0ujB#fjM=s7 zU7`ooQO1R+o}yCsgxIS)S8ee#i3OYA{Ng+STb5RFbWQIPJ+O|>J^*SYRg3MDLe5M* z1|T*p>-tA9aY;JZ!|7z*yxt}1x{hX_0Pr%=TQ@#t&Epo?nZ*3QdA&i@c68+cnsK%>3y?qma?%@#wU~Mr4H1X-_H?n;F;|{iM%m4rY M07*qoM6N<$f@vIFg8%>k literal 0 HcmV?d00001 diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent2.cs b/NPCs/SunkenSeaNPCs/SeaSerpent2.cs new file mode 100644 index 0000000000..0cbe7ce823 --- /dev/null +++ b/NPCs/SunkenSeaNPCs/SeaSerpent2.cs @@ -0,0 +1,298 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles; + +namespace CalamityMod.NPCs.SunkenSeaNPCs +{ + public class SeaSerpent2 : ModNPC + { + public float speed = 6f; + public float turnSpeed = 0.125f; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sea Serpent"); + } + + public override void SetDefaults() + { + npc.damage = 40; + npc.width = 24; //42 + npc.height = 16; //24 + npc.defense = 20; + npc.lifeMax = 3000; + npc.aiStyle = -1; //new + aiType = -1; //new + npc.knockBackResist = 0f; + npc.alpha = 255; + for (int k = 0; k < npc.buffImmune.Length; k++) + { + npc.buffImmune[k] = true; + } + npc.behindTiles = true; + npc.noGravity = true; + npc.noTileCollide = true; + npc.HitSound = SoundID.NPCHit1; + npc.DeathSound = SoundID.NPCDeath1; + npc.netAlways = true; + npc.dontCountMe = true; + npc.chaseable = false; + banner = mod.NPCType("SeaSerpent1"); + bannerItem = mod.ItemType("SeaSerpentBanner"); + } + + public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) + { + return false; + } + + public override void AI() + { + Lighting.AddLight(npc.Center, ((255 - npc.alpha) * 0f) / 255f, ((255 - npc.alpha) * 0.30f) / 255f, ((255 - npc.alpha) * 0.30f) / 255f); + if (npc.ai[3] > 0f) + { + npc.realLife = (int)npc.ai[3]; + } + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead) + { + npc.TargetClosest(true); + } + npc.velocity.Length(); + if (npc.velocity.X < 0f) + { + npc.spriteDirection = -1; + } + else if (npc.velocity.X > 0f) + { + npc.spriteDirection = 1; + } + bool flag = false; + if (npc.ai[1] <= 0f) + { + flag = true; + } + else if (Main.npc[(int)npc.ai[1]].life <= 0) + { + flag = true; + } + if (flag) + { + npc.life = 0; + npc.HitEffect(0, 10.0); + npc.checkDead(); + } + if (!NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + { + npc.active = false; + } + if (Main.npc[(int)npc.ai[1]].alpha < 128) + { + npc.alpha -= 42; + if (npc.alpha < 0) + { + npc.alpha = 0; + } + } + int num180 = (int)(npc.position.X / 16f) - 1; + int num181 = (int)((npc.position.X + (float)npc.width) / 16f) + 2; + int num182 = (int)(npc.position.Y / 16f) - 1; + int num183 = (int)((npc.position.Y + (float)npc.height) / 16f) + 2; + if (num180 < 0) + { + num180 = 0; + } + if (num181 > Main.maxTilesX) + { + num181 = Main.maxTilesX; + } + if (num182 < 0) + { + num182 = 0; + } + if (num183 > Main.maxTilesY) + { + num183 = Main.maxTilesY; + } + if (Main.player[npc.target].dead) + { + npc.TargetClosest(false); + } + float num188 = speed; + float num189 = turnSpeed; + Vector2 vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num191 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2); + float num192 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2); + num191 = (float)((int)(num191 / 16f) * 16); + num192 = (float)((int)(num192 / 16f) * 16); + vector18.X = (float)((int)(vector18.X / 16f) * 16); + vector18.Y = (float)((int)(vector18.Y / 16f) * 16); + num191 -= vector18.X; + num192 -= vector18.Y; + float num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + if (npc.ai[1] > 0f && npc.ai[1] < (float)Main.npc.Length) + { + try + { + vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num191 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - vector18.X; + num192 = Main.npc[(int)npc.ai[1]].position.Y + (float)(Main.npc[(int)npc.ai[1]].height / 2) - vector18.Y; + } + catch + { + } + npc.rotation = (float)System.Math.Atan2((double)num192, (double)num191) + 1.57f; + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + int num194 = npc.width; + num193 = (num193 - (float)num194) / num193; + num191 *= num193; + num192 *= num193; + npc.velocity = Vector2.Zero; + npc.position.X = npc.position.X + num191; + npc.position.Y = npc.position.Y + num192; + if (num191 < 0f) + { + npc.spriteDirection = -1; + } + else if (num191 > 0f) + { + npc.spriteDirection = 1; + } + } + else + { + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + float num196 = System.Math.Abs(num191); + float num197 = System.Math.Abs(num192); + float num198 = num188 / num193; + num191 *= num198; + num192 *= num198; + if ((npc.velocity.X > 0f && num191 > 0f) || (npc.velocity.X < 0f && num191 < 0f) || (npc.velocity.Y > 0f && num192 > 0f) || (npc.velocity.Y < 0f && num192 < 0f)) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189; + } + } + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + if ((double)System.Math.Abs(num192) < (double)num188 * 0.2 && ((npc.velocity.X > 0f && num191 < 0f) || (npc.velocity.X < 0f && num191 > 0f))) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189 * 2f; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189 * 2f; + } + } + if ((double)System.Math.Abs(num191) < (double)num188 * 0.2 && ((npc.velocity.Y > 0f && num192 < 0f) || (npc.velocity.Y < 0f && num192 > 0f))) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189 * 2f; //changed from 2 + } + else + { + npc.velocity.X = npc.velocity.X - num189 * 2f; //changed from 2 + } + } + } + else + { + if (num196 > num197) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189 * 1.1f; //changed from 1.1 + } + else if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189 * 1.1f; //changed from 1.1 + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + } + else + { + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189 * 1.1f; + } + else if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189 * 1.1f; + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + npc.velocity.X = npc.velocity.X - num189; + } + } + } + } + } + } + + public override bool CheckActive() + { + return false; + } + + public override bool PreNPCLoot() + { + return false; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 3; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 10; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SeaSerpent/SeaSerpentGore2"), 1f); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent2.png b/NPCs/SunkenSeaNPCs/SeaSerpent2.png new file mode 100644 index 0000000000000000000000000000000000000000..bdb5c315dbd0788fedeaaebecb84ace3c0b78bae GIT binary patch literal 613 zcmV-r0-F7aP)T@`_EzvVI}xkr(x<`n&>(2tole2*)FfE^@FaHsRm=UL|68l8 zZTR$N25jEZ7ONjPym!g-@83nF1If^T>RR!a*xdt$Z(c9Jnk`#XQRfMi$R?L)Q1D{8 zIyxgy29o984VrsZ1Jaicg7K-dV0vh<0P7l?Q?OV(pIoAKjkVxM?kDKV#HTvE2K8LL z4aRO=j`fdEjf3owN8sd*i0H`6*I*&P0M>4gyqa91VS1TgvR;v+d-5oe4E6oz;!{7; zACaxuw+nnLdKD>>Otk78y>}m#Ia)sTf&A#>xX0`28<1q8LI0YgVd|TnM^3Ds;^>qw%RJo6a91YjY^qohE>}c6_ zl1p^>!WC3{E~wfZ%@0I*IrA|}i}o|o7L_k 0f) + { + npc.realLife = (int)npc.ai[3]; + } + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead) + { + npc.TargetClosest(true); + } + npc.velocity.Length(); + if (npc.velocity.X < 0f) + { + npc.spriteDirection = -1; + } + else if (npc.velocity.X > 0f) + { + npc.spriteDirection = 1; + } + bool flag = false; + if (npc.ai[1] <= 0f) + { + flag = true; + } + else if (Main.npc[(int)npc.ai[1]].life <= 0) + { + flag = true; + } + if (flag) + { + npc.life = 0; + npc.HitEffect(0, 10.0); + npc.checkDead(); + } + if (!NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + { + npc.active = false; + } + if (Main.npc[(int)npc.ai[1]].alpha < 128) + { + npc.alpha -= 42; + if (npc.alpha < 0) + { + npc.alpha = 0; + } + } + int num180 = (int)(npc.position.X / 16f) - 1; + int num181 = (int)((npc.position.X + (float)npc.width) / 16f) + 2; + int num182 = (int)(npc.position.Y / 16f) - 1; + int num183 = (int)((npc.position.Y + (float)npc.height) / 16f) + 2; + if (num180 < 0) + { + num180 = 0; + } + if (num181 > Main.maxTilesX) + { + num181 = Main.maxTilesX; + } + if (num182 < 0) + { + num182 = 0; + } + if (num183 > Main.maxTilesY) + { + num183 = Main.maxTilesY; + } + if (Main.player[npc.target].dead) + { + npc.TargetClosest(false); + } + float num188 = speed; + float num189 = turnSpeed; + Vector2 vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num191 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2); + float num192 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2); + num191 = (float)((int)(num191 / 16f) * 16); + num192 = (float)((int)(num192 / 16f) * 16); + vector18.X = (float)((int)(vector18.X / 16f) * 16); + vector18.Y = (float)((int)(vector18.Y / 16f) * 16); + num191 -= vector18.X; + num192 -= vector18.Y; + float num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + if (npc.ai[1] > 0f && npc.ai[1] < (float)Main.npc.Length) + { + try + { + vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num191 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - vector18.X; + num192 = Main.npc[(int)npc.ai[1]].position.Y + (float)(Main.npc[(int)npc.ai[1]].height / 2) - vector18.Y; + } + catch + { + } + npc.rotation = (float)System.Math.Atan2((double)num192, (double)num191) + 1.57f; + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + int num194 = npc.width; + num193 = (num193 - (float)num194) / num193; + num191 *= num193; + num192 *= num193; + npc.velocity = Vector2.Zero; + npc.position.X = npc.position.X + num191; + npc.position.Y = npc.position.Y + num192; + if (num191 < 0f) + { + npc.spriteDirection = -1; + } + else if (num191 > 0f) + { + npc.spriteDirection = 1; + } + } + else + { + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + float num196 = System.Math.Abs(num191); + float num197 = System.Math.Abs(num192); + float num198 = num188 / num193; + num191 *= num198; + num192 *= num198; + if ((npc.velocity.X > 0f && num191 > 0f) || (npc.velocity.X < 0f && num191 < 0f) || (npc.velocity.Y > 0f && num192 > 0f) || (npc.velocity.Y < 0f && num192 < 0f)) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189; + } + } + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + if ((double)System.Math.Abs(num192) < (double)num188 * 0.2 && ((npc.velocity.X > 0f && num191 < 0f) || (npc.velocity.X < 0f && num191 > 0f))) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189 * 2f; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189 * 2f; + } + } + if ((double)System.Math.Abs(num191) < (double)num188 * 0.2 && ((npc.velocity.Y > 0f && num192 < 0f) || (npc.velocity.Y < 0f && num192 > 0f))) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189 * 2f; //changed from 2 + } + else + { + npc.velocity.X = npc.velocity.X - num189 * 2f; //changed from 2 + } + } + } + else + { + if (num196 > num197) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189 * 1.1f; //changed from 1.1 + } + else if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189 * 1.1f; //changed from 1.1 + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + } + else + { + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189 * 1.1f; + } + else if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189 * 1.1f; + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + npc.velocity.X = npc.velocity.X - num189; + } + } + } + } + } + } + + public override bool CheckActive() + { + return false; + } + + public override bool PreNPCLoot() + { + return false; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 3; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 10; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SeaSerpent/SeaSerpentGore3"), 1f); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent3.png b/NPCs/SunkenSeaNPCs/SeaSerpent3.png new file mode 100644 index 0000000000000000000000000000000000000000..3ca49fc95e6fa4b16de16119584036439a23e235 GIT binary patch literal 466 zcmV;@0WJQCP)_x%XVYe9!kD4TJF5hf4sykRO0tIsA-*uIhJuG@^I8_@?-%|Md*`J_Gy~)@3v> z8UP>~IR`4t)$>uAu0)&S!(TLN2-aovc6UpE5zUnutM<`~-|7%1C7$KQR9)*b+Grjv zEi40|9UlO#dDJ-S`C_NX2Ebd@JlgWndT2C{65CMno6bi+09nAAYJ+@ojsO4v07*qo IM6N<$g5!J8x&QzG literal 0 HcmV?d00001 diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent4.cs b/NPCs/SunkenSeaNPCs/SeaSerpent4.cs new file mode 100644 index 0000000000..0d36745a53 --- /dev/null +++ b/NPCs/SunkenSeaNPCs/SeaSerpent4.cs @@ -0,0 +1,298 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles; + +namespace CalamityMod.NPCs.SunkenSeaNPCs +{ + public class SeaSerpent4 : ModNPC + { + public float speed = 6f; + public float turnSpeed = 0.125f; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sea Serpent"); + } + + public override void SetDefaults() + { + npc.damage = 30; + npc.width = 28; //42 + npc.height = 24; //34 + npc.defense = 20; + npc.lifeMax = 3000; + npc.aiStyle = -1; //new + aiType = -1; //new + npc.knockBackResist = 0f; + npc.alpha = 255; + for (int k = 0; k < npc.buffImmune.Length; k++) + { + npc.buffImmune[k] = true; + } + npc.behindTiles = true; + npc.noGravity = true; + npc.noTileCollide = true; + npc.HitSound = SoundID.NPCHit1; + npc.DeathSound = SoundID.NPCDeath1; + npc.netAlways = true; + npc.dontCountMe = true; + npc.chaseable = false; + banner = mod.NPCType("SeaSerpent1"); + bannerItem = mod.ItemType("SeaSerpentBanner"); + } + + public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) + { + return false; + } + + public override void AI() + { + Lighting.AddLight(npc.Center, ((255 - npc.alpha) * 0f) / 255f, ((255 - npc.alpha) * 0.30f) / 255f, ((255 - npc.alpha) * 0.30f) / 255f); + if (npc.ai[3] > 0f) + { + npc.realLife = (int)npc.ai[3]; + } + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead) + { + npc.TargetClosest(true); + } + npc.velocity.Length(); + if (npc.velocity.X < 0f) + { + npc.spriteDirection = -1; + } + else if (npc.velocity.X > 0f) + { + npc.spriteDirection = 1; + } + bool flag = false; + if (npc.ai[1] <= 0f) + { + flag = true; + } + else if (Main.npc[(int)npc.ai[1]].life <= 0) + { + flag = true; + } + if (flag) + { + npc.life = 0; + npc.HitEffect(0, 10.0); + npc.checkDead(); + } + if (!NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + { + npc.active = false; + } + if (Main.npc[(int)npc.ai[1]].alpha < 128) + { + npc.alpha -= 42; + if (npc.alpha < 0) + { + npc.alpha = 0; + } + } + int num180 = (int)(npc.position.X / 16f) - 1; + int num181 = (int)((npc.position.X + (float)npc.width) / 16f) + 2; + int num182 = (int)(npc.position.Y / 16f) - 1; + int num183 = (int)((npc.position.Y + (float)npc.height) / 16f) + 2; + if (num180 < 0) + { + num180 = 0; + } + if (num181 > Main.maxTilesX) + { + num181 = Main.maxTilesX; + } + if (num182 < 0) + { + num182 = 0; + } + if (num183 > Main.maxTilesY) + { + num183 = Main.maxTilesY; + } + if (Main.player[npc.target].dead) + { + npc.TargetClosest(false); + } + float num188 = speed; + float num189 = turnSpeed; + Vector2 vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num191 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2); + float num192 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2); + num191 = (float)((int)(num191 / 16f) * 16); + num192 = (float)((int)(num192 / 16f) * 16); + vector18.X = (float)((int)(vector18.X / 16f) * 16); + vector18.Y = (float)((int)(vector18.Y / 16f) * 16); + num191 -= vector18.X; + num192 -= vector18.Y; + float num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + if (npc.ai[1] > 0f && npc.ai[1] < (float)Main.npc.Length) + { + try + { + vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num191 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - vector18.X; + num192 = Main.npc[(int)npc.ai[1]].position.Y + (float)(Main.npc[(int)npc.ai[1]].height / 2) - vector18.Y; + } + catch + { + } + npc.rotation = (float)System.Math.Atan2((double)num192, (double)num191) + 1.57f; + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + int num194 = npc.width; + num193 = (num193 - (float)num194) / num193; + num191 *= num193; + num192 *= num193; + npc.velocity = Vector2.Zero; + npc.position.X = npc.position.X + num191; + npc.position.Y = npc.position.Y + num192; + if (num191 < 0f) + { + npc.spriteDirection = -1; + } + else if (num191 > 0f) + { + npc.spriteDirection = 1; + } + } + else + { + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + float num196 = System.Math.Abs(num191); + float num197 = System.Math.Abs(num192); + float num198 = num188 / num193; + num191 *= num198; + num192 *= num198; + if ((npc.velocity.X > 0f && num191 > 0f) || (npc.velocity.X < 0f && num191 < 0f) || (npc.velocity.Y > 0f && num192 > 0f) || (npc.velocity.Y < 0f && num192 < 0f)) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189; + } + } + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + if ((double)System.Math.Abs(num192) < (double)num188 * 0.2 && ((npc.velocity.X > 0f && num191 < 0f) || (npc.velocity.X < 0f && num191 > 0f))) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189 * 2f; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189 * 2f; + } + } + if ((double)System.Math.Abs(num191) < (double)num188 * 0.2 && ((npc.velocity.Y > 0f && num192 < 0f) || (npc.velocity.Y < 0f && num192 > 0f))) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189 * 2f; //changed from 2 + } + else + { + npc.velocity.X = npc.velocity.X - num189 * 2f; //changed from 2 + } + } + } + else + { + if (num196 > num197) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189 * 1.1f; //changed from 1.1 + } + else if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189 * 1.1f; //changed from 1.1 + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + } + else + { + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189 * 1.1f; + } + else if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189 * 1.1f; + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + npc.velocity.X = npc.velocity.X - num189; + } + } + } + } + } + } + + public override bool CheckActive() + { + return false; + } + + public override bool PreNPCLoot() + { + return false; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 3; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 10; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SeaSerpent/SeaSerpentGore4"), 1f); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent4.png b/NPCs/SunkenSeaNPCs/SeaSerpent4.png new file mode 100644 index 0000000000000000000000000000000000000000..5625d8cf2db1e2e26ebedc457352c05ae2d1e23c GIT binary patch literal 483 zcmV<90UZ8`P)4ZkyUYdHELPR4mS z8TDmVeMdu)(Y!vct?zn&zpB2YM;dkTwYv$%CQgF(!kg{$i(q8t0a$!I3pUc>z%i!tJ%+bi^$lW_&{{C!V{byfFjrY$uS}R(ZUzr9@4WP%-!Qsr&a5gv^4hKhn z%4k}deyhaMoDQ6$k-9|e3|F3` Z-vNRKw>W**j)4FG002ovPDHLkV1nKP=LP@( literal 0 HcmV?d00001 diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent5.cs b/NPCs/SunkenSeaNPCs/SeaSerpent5.cs new file mode 100644 index 0000000000..736a97d2b2 --- /dev/null +++ b/NPCs/SunkenSeaNPCs/SeaSerpent5.cs @@ -0,0 +1,298 @@ +using System; +using System.Collections.Generic; +using System.IO; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Projectiles; + +namespace CalamityMod.NPCs.SunkenSeaNPCs +{ + public class SeaSerpent5 : ModNPC + { + public float speed = 6f; + public float turnSpeed = 0.125f; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sea Serpent"); + } + + public override void SetDefaults() + { + npc.damage = 20; + npc.width = 36; //42 + npc.height = 30; //40 + npc.defense = 30; + npc.lifeMax = 3000; + npc.aiStyle = -1; //new + aiType = -1; //new + npc.knockBackResist = 0f; + npc.alpha = 255; + for (int k = 0; k < npc.buffImmune.Length; k++) + { + npc.buffImmune[k] = true; + } + npc.behindTiles = true; + npc.noGravity = true; + npc.noTileCollide = true; + npc.HitSound = SoundID.NPCHit1; + npc.DeathSound = SoundID.NPCDeath1; + npc.netAlways = true; + npc.dontCountMe = true; + npc.chaseable = false; + banner = mod.NPCType("SeaSerpent1"); + bannerItem = mod.ItemType("SeaSerpentBanner"); + } + + public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) + { + return false; + } + + public override void AI() + { + Lighting.AddLight(npc.Center, ((255 - npc.alpha) * 0f) / 255f, ((255 - npc.alpha) * 0.30f) / 255f, ((255 - npc.alpha) * 0.30f) / 255f); + if (npc.ai[3] > 0f) + { + npc.realLife = (int)npc.ai[3]; + } + if (npc.target < 0 || npc.target == 255 || Main.player[npc.target].dead) + { + npc.TargetClosest(true); + } + npc.velocity.Length(); + if (npc.velocity.X < 0f) + { + npc.spriteDirection = -1; + } + else if (npc.velocity.X > 0f) + { + npc.spriteDirection = 1; + } + bool flag = false; + if (npc.ai[1] <= 0f) + { + flag = true; + } + else if (Main.npc[(int)npc.ai[1]].life <= 0) + { + flag = true; + } + if (flag) + { + npc.life = 0; + npc.HitEffect(0, 10.0); + npc.checkDead(); + } + if (!NPC.AnyNPCs(mod.NPCType("SeaSerpent1"))) + { + npc.active = false; + } + if (Main.npc[(int)npc.ai[1]].alpha < 128) + { + npc.alpha -= 42; + if (npc.alpha < 0) + { + npc.alpha = 0; + } + } + int num180 = (int)(npc.position.X / 16f) - 1; + int num181 = (int)((npc.position.X + (float)npc.width) / 16f) + 2; + int num182 = (int)(npc.position.Y / 16f) - 1; + int num183 = (int)((npc.position.Y + (float)npc.height) / 16f) + 2; + if (num180 < 0) + { + num180 = 0; + } + if (num181 > Main.maxTilesX) + { + num181 = Main.maxTilesX; + } + if (num182 < 0) + { + num182 = 0; + } + if (num183 > Main.maxTilesY) + { + num183 = Main.maxTilesY; + } + if (Main.player[npc.target].dead) + { + npc.TargetClosest(false); + } + float num188 = speed; + float num189 = turnSpeed; + Vector2 vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float num191 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2); + float num192 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2); + num191 = (float)((int)(num191 / 16f) * 16); + num192 = (float)((int)(num192 / 16f) * 16); + vector18.X = (float)((int)(vector18.X / 16f) * 16); + vector18.Y = (float)((int)(vector18.Y / 16f) * 16); + num191 -= vector18.X; + num192 -= vector18.Y; + float num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + if (npc.ai[1] > 0f && npc.ai[1] < (float)Main.npc.Length) + { + try + { + vector18 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + num191 = Main.npc[(int)npc.ai[1]].position.X + (float)(Main.npc[(int)npc.ai[1]].width / 2) - vector18.X; + num192 = Main.npc[(int)npc.ai[1]].position.Y + (float)(Main.npc[(int)npc.ai[1]].height / 2) - vector18.Y; + } + catch + { + } + npc.rotation = (float)System.Math.Atan2((double)num192, (double)num191) + 1.57f; + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + int num194 = npc.width; + num193 = (num193 - (float)num194) / num193; + num191 *= num193; + num192 *= num193; + npc.velocity = Vector2.Zero; + npc.position.X = npc.position.X + num191; + npc.position.Y = npc.position.Y + num192; + if (num191 < 0f) + { + npc.spriteDirection = -1; + } + else if (num191 > 0f) + { + npc.spriteDirection = 1; + } + } + else + { + num193 = (float)System.Math.Sqrt((double)(num191 * num191 + num192 * num192)); + float num196 = System.Math.Abs(num191); + float num197 = System.Math.Abs(num192); + float num198 = num188 / num193; + num191 *= num198; + num192 *= num198; + if ((npc.velocity.X > 0f && num191 > 0f) || (npc.velocity.X < 0f && num191 < 0f) || (npc.velocity.Y > 0f && num192 > 0f) || (npc.velocity.Y < 0f && num192 < 0f)) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189; + } + } + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + if ((double)System.Math.Abs(num192) < (double)num188 * 0.2 && ((npc.velocity.X > 0f && num191 < 0f) || (npc.velocity.X < 0f && num191 > 0f))) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189 * 2f; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189 * 2f; + } + } + if ((double)System.Math.Abs(num191) < (double)num188 * 0.2 && ((npc.velocity.Y > 0f && num192 < 0f) || (npc.velocity.Y < 0f && num192 > 0f))) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189 * 2f; //changed from 2 + } + else + { + npc.velocity.X = npc.velocity.X - num189 * 2f; //changed from 2 + } + } + } + else + { + if (num196 > num197) + { + if (npc.velocity.X < num191) + { + npc.velocity.X = npc.velocity.X + num189 * 1.1f; //changed from 1.1 + } + else if (npc.velocity.X > num191) + { + npc.velocity.X = npc.velocity.X - num189 * 1.1f; //changed from 1.1 + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y + num189; + } + else + { + npc.velocity.Y = npc.velocity.Y - num189; + } + } + } + else + { + if (npc.velocity.Y < num192) + { + npc.velocity.Y = npc.velocity.Y + num189 * 1.1f; + } + else if (npc.velocity.Y > num192) + { + npc.velocity.Y = npc.velocity.Y - num189 * 1.1f; + } + if ((double)(System.Math.Abs(npc.velocity.X) + System.Math.Abs(npc.velocity.Y)) < (double)num188 * 0.5) + { + if (npc.velocity.X > 0f) + { + npc.velocity.X = npc.velocity.X + num189; + } + else + { + npc.velocity.X = npc.velocity.X - num189; + } + } + } + } + } + } + + public override bool CheckActive() + { + return false; + } + + public override bool PreNPCLoot() + { + return false; + } + + public override void HitEffect(int hitDirection, double damage) + { + for (int k = 0; k < 3; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + if (npc.life <= 0) + { + for (int k = 0; k < 10; k++) + { + Dust.NewDust(npc.position, npc.width, npc.height, 37, hitDirection, -1f, 0, default(Color), 1f); + } + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/SeaSerpent/SeaSerpentGore5"), 1f); + } + } + } +} \ No newline at end of file diff --git a/NPCs/SunkenSeaNPCs/SeaSerpent5.png b/NPCs/SunkenSeaNPCs/SeaSerpent5.png new file mode 100644 index 0000000000000000000000000000000000000000..2772709ecb5b3e5b7adcc0b58fc39bcd41884597 GIT binary patch literal 760 zcmV?0008NNklGT6vsc4y2|=z3U?yO(g@kmkk%v!45K=A3MmK=L8m&}wNuBA9rfBlf<&Z4mr4|( z4nZr@E=4VtZEU5b=B`xBIvw7;wo%7X6QZ4W`R)77`@LB{y!ZY6=4Y@;vqCNU(*_9d z4Fk}2G6q2Nfjt1co%#sCY+A-oZ!+R9TL4sr>kNSJOWy#yVT zZl%94^Tjpau)hs}%yhyAs4*=AAm@`mI7F+=5CD-zsm)Y80l>kSkki`KI69&LG&t++ zN*jP|(;2|KR)a&-wCVv!)g6X?rYL_@?ynpk?hH5o9M1R*{tN0gh zT>&83{}ceznsCJ(JzM}__C*;`RDoDOXsq<2!w?~F0E?ft!?*7sz zS{^Pp0KO*YZGh7~LR9zoPDe){Ej|GtJ!b-N$swp+KRP5e>ev0HOLXSvYXB@-T=RPV z>^yPAM-i$@#_B4CF*5<=h3omAsQdN3lw#BcUKnx?GEWQ z!)xXb9#OyZ=vnP{=hXDzx{!_a3P~mGWx*q=U!Pi=>g#z_yIsk}dM^OQnl0;yvYrKx zsGp81xy*FJwXX484*-Sduhz{UJfeO&nwb-lp~|oUVARSDOS-rd0jqCN)PhIUOGl^1 zQvlTL%o_k%BC_Dek}h@a>0WnH!6WLWqtBe@%ky$(&wZZQQvTo(_0rMpvfvOk_w6zO z5@T^k59Q`LF&1|{UwA+FSMMo(qWbMrF)x=+`Ncd??E0k-qLUT1c~|^at@MeiDamT9 q+5nguPuYL^xf#FP`Hk6sL-ZF29Ta`Qx%(IZ0000= (CalamityWorld.death ? 25000.0 : 10000.0)) - { - npc.dontTakeDamage = true; - } - else - { - if (invinceTime > 0) - { - invinceTime--; - npc.dontTakeDamage = true; - } - else - { - npc.dontTakeDamage = false; - } - } if (Main.npc[(int)npc.ai[1]].alpha < 128) { npc.alpha -= 42; @@ -104,21 +89,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas } } - public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) - { - if (damage > npc.lifeMax / 25) - { - damage = 0; - return false; - } - damageTaken += damage; - if (crit) - { - damageTaken += damage; - } - return true; - } - public override bool CheckActive() { return false; diff --git a/NPCs/SupremeCalamitas/SCalWormHead.cs b/NPCs/SupremeCalamitas/SCalWormHead.cs index 4368a5114f..fb65a91f79 100644 --- a/NPCs/SupremeCalamitas/SCalWormHead.cs +++ b/NPCs/SupremeCalamitas/SCalWormHead.cs @@ -59,6 +59,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; diff --git a/NPCs/SupremeCalamitas/SCalWormHeart.cs b/NPCs/SupremeCalamitas/SCalWormHeart.cs index c4923185e4..f97c69210d 100644 --- a/NPCs/SupremeCalamitas/SCalWormHeart.cs +++ b/NPCs/SupremeCalamitas/SCalWormHeart.cs @@ -38,6 +38,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.alpha = 255; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit13; npc.DeathSound = SoundID.NPCDeath1; for (int k = 0; k < npc.buffImmune.Length; k++) @@ -65,7 +66,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (projectile.type == mod.ProjectileType("Celestus2")) { - damage /= 8; + damage = (int)((double)damage * 0.66); } } diff --git a/NPCs/SupremeCalamitas/SCalWormTail.cs b/NPCs/SupremeCalamitas/SCalWormTail.cs index e3ec7d7438..6cfc2a5b1f 100644 --- a/NPCs/SupremeCalamitas/SCalWormTail.cs +++ b/NPCs/SupremeCalamitas/SCalWormTail.cs @@ -43,6 +43,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; diff --git a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs index d4fdc78d32..be7f3b9785 100644 --- a/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs +++ b/NPCs/SupremeCalamitas/SoulSeekerSupreme.cs @@ -25,6 +25,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.height = 40; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.damage = 0; npc.defense = 100; npc.lifeMax = Main.expertMode ? 90000 : 50000; diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index f8564ab984..94b49727cd 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -15,50 +15,50 @@ namespace CalamityMod.NPCs.SupremeCalamitas [AutoloadBossHead] public class SupremeCalamitas : ModNPC { - private float bossLife; - private float uDieLul = 1f; - private float passedVar = 0f; + private float bossLife; + private float uDieLul = 1f; + private float passedVar = 0f; - private bool protectionBoost = false; - private bool canDespawn = false; - private bool despawnProj = false; - private bool startText = false; - private bool wormAlive = false; - private bool startBattle = false; //100% - private bool startSecondAttack = false; //80% - private bool startThirdAttack = false; //60% - private bool halfLife = false; //40% - private bool startFourthAttack = false; //30% - private bool secondStage = false; //20% - private bool startFifthAttack = false; //10% - private bool gettingTired = false; //8% - private bool gettingTired2 = false; //6% - private bool gettingTired3 = false; //4% - private bool gettingTired4 = false; //2% - private bool gettingTired5 = false; //1% - private bool willCharge = false; - private bool canFireSplitingFireball = true; + private bool protectionBoost = false; + private bool canDespawn = false; + private bool despawnProj = false; + private bool startText = false; + private bool wormAlive = false; + private bool startBattle = false; //100% + private bool startSecondAttack = false; //80% + private bool startThirdAttack = false; //60% + private bool halfLife = false; //40% + private bool startFourthAttack = false; //30% + private bool secondStage = false; //20% + private bool startFifthAttack = false; //10% + private bool gettingTired = false; //8% + private bool gettingTired2 = false; //6% + private bool gettingTired3 = false; //4% + private bool gettingTired4 = false; //2% + private bool gettingTired5 = false; //1% + private bool willCharge = false; + private bool canFireSplitingFireball = true; - private int giveUpCounter = 1200; - private int lootTimer = 0; //900 * 5 = 4500 - private int phaseChange = 0; - private int spawnX = 0; - private int spawnX2 = 0; - private int spawnXReset = 0; - private int spawnXReset2 = 0; - private int spawnXAdd = 200; - private int spawnY = 0; - private int spawnYReset = 0; - private int spawnYAdd = 0; + private int giveUpCounter = 1200; + private int lootTimer = 0; //900 * 5 = 4500 + private int phaseChange = 0; + private int spawnX = 0; + private int spawnX2 = 0; + private int spawnXReset = 0; + private int spawnXReset2 = 0; + private int spawnXAdd = 200; + private int spawnY = 0; + private int spawnYReset = 0; + private int spawnYAdd = 0; - private Rectangle safeBox = default(Rectangle); + private Rectangle safeBox = default(Rectangle); - public override void SetStaticDefaults() + public override void SetStaticDefaults() { DisplayName.SetDefault("Supreme Calamitas"); Main.npcFrameCount[npc.type] = 6; } - + public override void SetDefaults() { npc.damage = 350; @@ -66,842 +66,836 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.width = 120; //324 npc.height = 120; //216 npc.defense = 0; - npc.value = Item.buyPrice(10, 0, 0, 0); - npc.lifeMax = CalamityWorld.revenge ? 5500000 : 5000000; - if (CalamityWorld.death) - { - npc.lifeMax = 6250000; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 4600000 : 4100000; - } - npc.aiStyle = -1; //new - aiType = -1; //new + npc.value = Item.buyPrice(10, 0, 0, 0); + npc.lifeMax = CalamityWorld.revenge ? 5500000 : 5000000; + if (CalamityWorld.death) + { + npc.lifeMax = 6250000; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 2300000 : 2100000; + } + npc.aiStyle = -1; //new + aiType = -1; //new npc.knockBackResist = 0f; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; npc.buffImmune[BuffID.Ichor] = false; - npc.buffImmune[BuffID.CursedInferno] = false; - } + npc.buffImmune[BuffID.CursedInferno] = false; + } npc.dontTakeDamage = false; npc.chaseable = true; npc.boss = true; - npc.canGhostHeal = false; + npc.canGhostHeal = false; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SCG"); - else - music = MusicID.Boss2; + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SCG"); + else + music = MusicID.Boss2; } - + public override void AI() { - #region StartUp - CalamityGlobalNPC.SCal = npc.whoAmI; - lootTimer++; - if (Main.slimeRain) - { - Main.StopSlimeRain(true); - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - if (Main.raining) - { - Main.raining = false; - if (Main.netMode == 2) - { - NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); + #region StartUp + CalamityGlobalNPC.SCal = npc.whoAmI; + lootTimer++; + if (Main.slimeRain) + { + Main.StopSlimeRain(true); + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + if (Main.raining) + { + Main.raining = false; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); bool expertMode = (Main.expertMode || CalamityWorld.bossRushActive); Player player = Main.player[npc.target]; - if (!startText) - { - if (Main.LocalPlayer.GetModPlayer(mod).sCalKillCount == 4) - { - string key = "Mods.CalamityMod.SupremeBossText12"; //kill SCal 4 times - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - else if (Main.LocalPlayer.GetModPlayer(mod).sCalKillCount == 1) - { - string key = "Mods.CalamityMod.SupremeBossText11"; //kill SCal once - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount < 51) - { - if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 50) - { - string key = "Mods.CalamityMod.SupremeBossText15"; //die 50 or more times - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount > 19) - { - string key = "Mods.CalamityMod.SupremeBossText14"; //die 20 or more times - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount > 4) - { - string key = "Mods.CalamityMod.SupremeBossText13"; //die 5 or more times - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - } - startText = true; - } - #endregion - #region ArenaCreation - if (npc.localAI[3] == 0f) - { - npc.localAI[3] = 1f; - Vector2 vectorPlayer = new Vector2(player.position.X, player.position.Y); - if (CalamityWorld.bossRushActive) - { - safeBox.X = spawnX = spawnXReset = (int)(vectorPlayer.X - 1250f); - spawnX2 = spawnXReset2 = (int)(vectorPlayer.X + 1250f); - safeBox.Y = spawnY = spawnYReset = (int)(vectorPlayer.Y - 1250f); - safeBox.Width = 2500; - safeBox.Height = 2500; - spawnYAdd = 125; - } - else if (CalamityWorld.death) - { - safeBox.X = spawnX = spawnXReset = (int)(vectorPlayer.X - 1000f); - spawnX2 = spawnXReset2 = (int)(vectorPlayer.X + 1000f); - safeBox.Y = spawnY = spawnYReset = (int)(vectorPlayer.Y - 1000f); - safeBox.Width = 2000; - safeBox.Height = 2000; - spawnYAdd = 100; - } - else - { - safeBox.X = spawnX = spawnXReset = (int)(vectorPlayer.X - (revenge ? 1500f : 2000f)); - spawnX2 = spawnXReset2 = (int)(vectorPlayer.X + (revenge ? 1500f : 2000f)); - safeBox.Y = spawnY = spawnYReset = (int)(vectorPlayer.Y - (revenge ? 1500f : 2000f)); - safeBox.Width = revenge ? 3000 : 4000; - safeBox.Height = revenge ? 3000 : 4000; - spawnYAdd = revenge ? 150 : 200; - } - if (Main.netMode != 1) - { - int num52 = (int)(safeBox.X + (float)(safeBox.Width / 2)) / 16; - int num53 = (int)(safeBox.Y + (float)(safeBox.Height / 2)) / 16; - int num54 = safeBox.Width / 2 / 16 + 1; - for (int num55 = num52 - num54; num55 <= num52 + num54; num55++) - { - for (int num56 = num53 - num54; num56 <= num53 + num54; num56++) - { - if ((num55 == num52 - num54 || num55 == num52 + num54 || num56 == num53 - num54 || num56 == num53 + num54) && !Main.tile[num55, num56].active()) - { - Main.tile[num55, num56].type = (ushort)mod.TileType("ArenaTile"); - Main.tile[num55, num56].active(true); - } - Main.tile[num55, num56].lava(false); - Main.tile[num55, num56].liquid = 0; - if (Main.netMode == 2) - { - NetMessage.SendTileSquare(-1, num55, num56, 1, TileChangeType.None); - } - else - { - WorldGen.SquareTileFrame(num55, num56, true); - } - } - } - } - } - if (!player.Hitbox.Intersects(safeBox)) - { - if (uDieLul < 3f) - { - uDieLul *= 1.01f; - } - else if (uDieLul > 3f) - { - uDieLul = 3f; - } - protectionBoost = true; - } - else - { - if (uDieLul > 1f) - { - uDieLul *= 0.99f; - } - else if (uDieLul < 1f) - { - uDieLul = 1f; - } - protectionBoost = false; - } - #endregion - #region Despawn - if (!player.active || player.dead) - { - npc.TargetClosest(false); - player = Main.player[npc.target]; - if (!player.active || player.dead) - { - npc.velocity = new Vector2(0f, -50f); - canDespawn = true; - if (npc.timeLeft > 150) - { - npc.timeLeft = 150; - } - return; - } - } - else - { - canDespawn = false; - } - #endregion - #region FirstAttack - if (npc.localAI[2] < 900f) - { - despawnProj = true; - npc.localAI[2] += 1f; - npc.damage = 0; - npc.chaseable = false; - npc.dontTakeDamage = true; - npc.TargetClosest(true); - npc.velocity *= 0.95f; - Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); - float num740 = player.Center.X - vector92.X; - float num741 = player.Center.Y - vector92.Y; - npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; - if (Main.netMode != 1) - { - npc.localAI[0] += 1f; - if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 4f : 6f)) - { - npc.localAI[0] = 0f; - int damage = expertMode ? 200 : 250; //800 500 - if (npc.localAI[2] < 300f) //blasts from above - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else if (npc.localAI[2] < 600f) //blasts from left and right - { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else //blasts from above, left, and right - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 3f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - return; - } - } - return; - } - else if (!startBattle) - { - string key = "Mods.CalamityMod.SupremeBossText3"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - if (Main.netMode != 1) - { - spawnY += 400; - if (revenge) - { - spawnY -= 100; - } - if (CalamityWorld.bossRushActive) - { - spawnY -= 50; - } - else if (CalamityWorld.death) - { - spawnY -= 100; - } - for (int x = 0; x < 5; x++) - { - int heart = NPC.NewNPC(spawnX + 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); - spawnX += spawnXAdd; - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, heart, 0f, 0f, 0f, 0, 0, 0); - } - int heart2 = NPC.NewNPC(spawnX2 - 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); - spawnX2 -= spawnXAdd; - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, heart2, 0f, 0f, 0f, 0, 0, 0); - } - spawnY += spawnYAdd; - } - spawnX = spawnXReset; - spawnX2 = spawnXReset2; - spawnY = spawnYReset; - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SCalWormHead")); - } - startBattle = true; - } - #endregion - #region SecondAttack - if (npc.localAI[2] < 1800f && startSecondAttack) - { - despawnProj = true; - npc.localAI[2] += 1f; - npc.damage = 0; - npc.chaseable = false; - npc.dontTakeDamage = true; - npc.TargetClosest(true); - npc.velocity *= 0.95f; - Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); - float num740 = player.Center.X - vector92.X; - float num741 = player.Center.Y - vector92.Y; - npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; - if (Main.netMode != 1) - { - int damage = expertMode ? 150 : 200; //600 400 - if (npc.localAI[2] < 1200f) - { - if (npc.localAI[2] % 180 == 0) //blasts from top - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - } - else if (npc.localAI[2] < 1500f && npc.localAI[2] > 1200f) - { - if (npc.localAI[2] % 180 == 0) //blasts from right - { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -5f * uDieLul, 0f, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - } - else if (npc.localAI[2] > 1500f) - { - if (npc.localAI[2] % 180 == 0) //blasts from top - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - } - npc.localAI[0] += 1f; - if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 6f : 9f)) - { - npc.localAI[0] = 0f; - if (npc.localAI[2] < 1200f) //blasts from below - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + 1000f, 0f, -4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else if (npc.localAI[2] < 1500f) //blasts from left - { - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else //blasts from left and right - { - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - return; - } - } - return; - } - if (!startSecondAttack && ((double)npc.life <= (double)npc.lifeMax * 0.75)) - { - string key = "Mods.CalamityMod.SupremeBossText4"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - startSecondAttack = true; - return; - } - #endregion - #region ThirdAttack - if (npc.localAI[2] < 2700f && startThirdAttack) - { - despawnProj = true; - npc.localAI[2] += 1f; - npc.damage = 0; - npc.chaseable = false; - npc.dontTakeDamage = true; - npc.TargetClosest(true); - npc.velocity *= 0.95f; - Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); - float num740 = player.Center.X - vector92.X; - float num741 = player.Center.Y - vector92.Y; - npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; - if (Main.netMode != 1) - { - int damage = expertMode ? 150 : 200; - if (npc.localAI[2] % 180 == 0) //blasts from top - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - if (npc.localAI[2] % 240 == 0) //fireblasts from above - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - npc.localAI[0] += 1f; - if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 9f : 11f)) - { - npc.localAI[0] = 0f; - if (npc.localAI[2] < 2100f) //blasts from above - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else if (npc.localAI[2] < 2400f) //blasts from right - { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else //blasts from left and right - { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - return; - } - } - return; - } - if (!startThirdAttack && ((double)npc.life <= (double)npc.lifeMax * 0.5)) - { - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SCL"); - else - music = MusicID.Boss3; - string key = "Mods.CalamityMod.SupremeBossText5"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - startThirdAttack = true; - return; - } - #endregion - #region FourthAttack - if (npc.localAI[2] < 3600f && startFourthAttack) - { - despawnProj = true; - npc.localAI[2] += 1f; - npc.damage = 0; - npc.chaseable = false; - npc.dontTakeDamage = true; - npc.TargetClosest(true); - npc.velocity *= 0.95f; - Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); - float num740 = player.Center.X - vector92.X; - float num741 = player.Center.Y - vector92.Y; - npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; - if (Main.netMode != 1) //more clustered attack - { - int damage = expertMode ? 150 : 200; - if (npc.localAI[2] % 180 == 0) //blasts from top - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - if (npc.localAI[2] % 240 == 0) //fireblasts from above - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - if (npc.localAI[2] % 450 == 0) //giant homing fireballs - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 1f * uDieLul, mod.ProjectileType("BrimstoneMonster"), damage, 0f, Main.myPlayer, 0f, passedVar); - passedVar += 1f; - } - npc.localAI[0] += 1f; - if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 12f : 15f)) - { - npc.localAI[0] = 0f; - if (npc.localAI[2] < 3000f) //blasts from below - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + 1000f, 0f, -4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else if (npc.localAI[2] < 3300f) //blasts from left - { - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else //blasts from left and right - { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - return; - } - } - return; - } - if (!startFourthAttack && ((double)npc.life <= (double)npc.lifeMax * 0.3)) - { - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SCE"); - else - music = MusicID.LunarBoss; - string key = "Mods.CalamityMod.SupremeBossText7"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - startFourthAttack = true; - return; - } - #endregion - #region FifthAttack - if (npc.localAI[2] < 4500f && startFifthAttack) - { - despawnProj = true; - npc.localAI[2] += 1f; - npc.damage = 0; - npc.chaseable = false; - npc.dontTakeDamage = true; - npc.TargetClosest(true); - npc.velocity *= 0.95f; - Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); - float num740 = player.Center.X - vector92.X; - float num741 = player.Center.Y - vector92.Y; - npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; - if (Main.netMode != 1) - { - int damage = expertMode ? 150 : 200; - if (npc.localAI[2] % 240 == 0) //blasts from top - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - if (npc.localAI[2] % 360 == 0) //fireblasts from above - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 0f, 0f); - } - if (npc.localAI[2] % 450 == 0) //giant homing fireballs - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 1f * uDieLul, mod.ProjectileType("BrimstoneMonster"), damage, 0f, Main.myPlayer, 0f, passedVar); - passedVar += 1f; - } - if (npc.localAI[2] % 30 == 0) //projectiles that move in wave pattern - { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-500, 500), -10f * uDieLul, 0f, mod.ProjectileType("BrimstoneWave"), damage, 0f, Main.myPlayer, 0f, 0f); - } - npc.localAI[0] += 1f; - if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 15f : 18f)) - { - npc.localAI[0] = 0f; - if (npc.localAI[2] < 3900f) //blasts from above - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else if (npc.localAI[2] < 4200f) //blasts from left and right - { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - else //blasts from above, left, and right - { - Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 3f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - return; - } - } - return; - } - if (!startFifthAttack && ((double)npc.life <= (double)npc.lifeMax * 0.1)) - { - string key = "Mods.CalamityMod.SupremeBossText9"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - startFifthAttack = true; - return; - } - #endregion - #region EndSections - if (startFifthAttack) - { - if (gettingTired5) - { - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SCA"); - else - music = MusicID.Eerie; - npc.noGravity = false; - npc.noTileCollide = false; - npc.damage = 0; - npc.velocity.X *= 0.98f; - npc.velocity.Y = 5f; - Vector2 vector2 = new Vector2(npc.Center.X, npc.Center.Y); - float num = player.Center.X - vector2.X; - float num1 = player.Center.Y - vector2.Y; - npc.rotation = (float)Math.Atan2((double)num1, (double)num) - 1.57f; - if (player.GetModPlayer(mod).sCalKillCount > 0) //after first time you kill her - { - if (giveUpCounter == 900) - { - string key = "Mods.CalamityMod.SupremeBossText27"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - giveUpCounter--; - npc.chaseable = (giveUpCounter < 900) ? true : false; - npc.dontTakeDamage = (giveUpCounter < 900) ? false : true; - return; - } - if (giveUpCounter == 600) - { - string key = "Mods.CalamityMod.SupremeBossText25"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - if (giveUpCounter == 300) - { - string key = "Mods.CalamityMod.SupremeBossText26"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - if (giveUpCounter <= 0) - { - npc.chaseable = true; - npc.dontTakeDamage = false; - return; - } - giveUpCounter--; - npc.chaseable = false; - npc.dontTakeDamage = true; - return; - } - if (!gettingTired5 && ((double)npc.life <= (double)npc.lifeMax * 0.01)) - { - string key = "Mods.CalamityMod.SupremeBossText24"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - gettingTired5 = true; - return; - } - else if (!gettingTired4 && ((double)npc.life <= (double)npc.lifeMax * 0.02)) - { - string key = "Mods.CalamityMod.SupremeBossText23"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - gettingTired4 = true; - return; - } - else if (!gettingTired3 && ((double)npc.life <= (double)npc.lifeMax * 0.04)) - { - string key = "Mods.CalamityMod.SupremeBossText22"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - gettingTired3 = true; - return; - } - else if (!gettingTired2 && ((double)npc.life <= (double)npc.lifeMax * 0.06)) - { - string key = "Mods.CalamityMod.SupremeBossText21"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - gettingTired2 = true; - return; - } - else if (!gettingTired && ((double)npc.life <= (double)npc.lifeMax * 0.08)) - { - string key = "Mods.CalamityMod.SupremeBossText20"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - if (Main.netMode != 1) - { - spawnY += 400; - if (revenge) - { - spawnY -= 100; - } - if (CalamityWorld.bossRushActive) - { - spawnY -= 50; - } - else if (CalamityWorld.death) - { - spawnY -= 100; - } - for (int x = 0; x < 5; x++) - { - int heart = NPC.NewNPC(spawnX + 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); - spawnX += spawnXAdd; - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, heart, 0f, 0f, 0f, 0, 0, 0); - } - int heart2 = NPC.NewNPC(spawnX2 - 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); - spawnX2 -= spawnXAdd; - if (Main.netMode == 2) - { - NetMessage.SendData(23, -1, -1, null, heart2, 0f, 0f, 0f, 0, 0, 0); - } - spawnY += spawnYAdd; - } - spawnX = spawnXReset; - spawnX2 = spawnXReset2; - spawnY = spawnYReset; - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SCalWormHead")); - } - gettingTired = true; - return; - } - } - #endregion - #region DespawnProjectiles - if (npc.localAI[2] % 900 == 0 && despawnProj) - { - int proj; - for (int x = 0; x < 1000; x = proj + 1) - { - Projectile projectile = Main.projectile[x]; - if (projectile.active) - { - if (projectile.type == mod.ProjectileType("BrimstoneHellblast2") || - projectile.type == mod.ProjectileType("BrimstoneBarrage") || - projectile.type == mod.ProjectileType("BrimstoneWave")) - { - projectile.Kill(); - } - else if (projectile.type == mod.ProjectileType("BrimstoneGigaBlast") || - projectile.type == mod.ProjectileType("BrimstoneFireblast")) - { - projectile.active = false; - } - } - proj = x; - } - despawnProj = false; - } - #endregion - #region TransformSeekerandBrotherTriggers - if (!halfLife && ((double)npc.life <= (double)npc.lifeMax * 0.4)) + if (!startText) + { + if (Main.LocalPlayer.GetModPlayer(mod).sCalKillCount == 4) + { + string key = "Mods.CalamityMod.SupremeBossText12"; //kill SCal 4 times + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + else if (Main.LocalPlayer.GetModPlayer(mod).sCalKillCount == 1) + { + string key = "Mods.CalamityMod.SupremeBossText11"; //kill SCal once + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount < 51) + { + if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 50) + { + string key = "Mods.CalamityMod.SupremeBossText15"; //die 50 or more times + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount > 19) + { + string key = "Mods.CalamityMod.SupremeBossText14"; //die 20 or more times + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount > 4) + { + string key = "Mods.CalamityMod.SupremeBossText13"; //die 5 or more times + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + } + startText = true; + } + #endregion + #region ArenaCreation + if (npc.localAI[3] == 0f) + { + npc.localAI[3] = 1f; + Vector2 vectorPlayer = new Vector2(player.position.X, player.position.Y); + if (CalamityWorld.bossRushActive) + { + safeBox.X = spawnX = spawnXReset = (int)(vectorPlayer.X - 1250f); + spawnX2 = spawnXReset2 = (int)(vectorPlayer.X + 1250f); + safeBox.Y = spawnY = spawnYReset = (int)(vectorPlayer.Y - 1250f); + safeBox.Width = 2500; + safeBox.Height = 2500; + spawnYAdd = 125; + } + else if (CalamityWorld.death) + { + safeBox.X = spawnX = spawnXReset = (int)(vectorPlayer.X - 1000f); + spawnX2 = spawnXReset2 = (int)(vectorPlayer.X + 1000f); + safeBox.Y = spawnY = spawnYReset = (int)(vectorPlayer.Y - 1000f); + safeBox.Width = 2000; + safeBox.Height = 2000; + spawnYAdd = 100; + } + else + { + safeBox.X = spawnX = spawnXReset = (int)(vectorPlayer.X - 1500f); + spawnX2 = spawnXReset2 = (int)(vectorPlayer.X + 1500f); + safeBox.Y = spawnY = spawnYReset = (int)(vectorPlayer.Y - 1500f); + safeBox.Width = 3000; + safeBox.Height = 3000; + spawnYAdd = 150; + } + if (Main.netMode != 1) + { + int num52 = (int)(safeBox.X + (float)(safeBox.Width / 2)) / 16; + int num53 = (int)(safeBox.Y + (float)(safeBox.Height / 2)) / 16; + int num54 = safeBox.Width / 2 / 16 + 1; + for (int num55 = num52 - num54; num55 <= num52 + num54; num55++) + { + for (int num56 = num53 - num54; num56 <= num53 + num54; num56++) + { + if ((num55 == num52 - num54 || num55 == num52 + num54 || num56 == num53 - num54 || num56 == num53 + num54) && !Main.tile[num55, num56].active()) + { + Main.tile[num55, num56].type = (ushort)mod.TileType("ArenaTile"); + Main.tile[num55, num56].active(true); + } + Main.tile[num55, num56].lava(false); + Main.tile[num55, num56].liquid = 0; + if (Main.netMode == 2) + { + NetMessage.SendTileSquare(-1, num55, num56, 1, TileChangeType.None); + } + else + { + WorldGen.SquareTileFrame(num55, num56, true); + } + } + } + } + } + if (!player.Hitbox.Intersects(safeBox)) + { + if (uDieLul < 3f) + { + uDieLul *= 1.01f; + } + else if (uDieLul > 3f) + { + uDieLul = 3f; + } + protectionBoost = true; + } + else + { + if (uDieLul > 1f) + { + uDieLul *= 0.99f; + } + else if (uDieLul < 1f) + { + uDieLul = 1f; + } + protectionBoost = false; + } + #endregion + #region Despawn + if (!player.active || player.dead) + { + npc.TargetClosest(false); + player = Main.player[npc.target]; + if (!player.active || player.dead) + { + npc.velocity = new Vector2(0f, -50f); + canDespawn = true; + if (npc.timeLeft > 150) + { + npc.timeLeft = 150; + } + return; + } + } + else + { + canDespawn = false; + } + #endregion + #region FirstAttack + if (npc.localAI[2] < 900f) + { + despawnProj = true; + npc.localAI[2] += 1f; + npc.damage = 0; + npc.chaseable = false; + npc.dontTakeDamage = true; + npc.TargetClosest(true); + npc.velocity *= 0.95f; + Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); + float num740 = player.Center.X - vector92.X; + float num741 = player.Center.Y - vector92.Y; + npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; + if (Main.netMode != 1) + { + npc.localAI[0] += 1f; + if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 4f : 6f)) + { + npc.localAI[0] = 0f; + int damage = expertMode ? 200 : 250; //800 500 + if (npc.localAI[2] < 300f) //blasts from above + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else if (npc.localAI[2] < 600f) //blasts from left and right + { + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else //blasts from above, left, and right + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 3f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + return; + } + } + return; + } + else if (!startBattle) + { + string key = "Mods.CalamityMod.SupremeBossText3"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + if (Main.netMode != 1) + { + spawnY += 300; + if (CalamityWorld.bossRushActive) + { + spawnY -= 50; + } + else if (CalamityWorld.death) + { + spawnY -= 100; + } + for (int x = 0; x < 5; x++) + { + int heart = NPC.NewNPC(spawnX + 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); + spawnX += spawnXAdd; + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, heart, 0f, 0f, 0f, 0, 0, 0); + } + int heart2 = NPC.NewNPC(spawnX2 - 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); + spawnX2 -= spawnXAdd; + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, heart2, 0f, 0f, 0f, 0, 0, 0); + } + spawnY += spawnYAdd; + } + spawnX = spawnXReset; + spawnX2 = spawnXReset2; + spawnY = spawnYReset; + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SCalWormHead")); + } + startBattle = true; + } + #endregion + #region SecondAttack + if (npc.localAI[2] < 1800f && startSecondAttack) + { + despawnProj = true; + npc.localAI[2] += 1f; + npc.damage = 0; + npc.chaseable = false; + npc.dontTakeDamage = true; + npc.TargetClosest(true); + npc.velocity *= 0.95f; + Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); + float num740 = player.Center.X - vector92.X; + float num741 = player.Center.Y - vector92.Y; + npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; + if (Main.netMode != 1) + { + int damage = expertMode ? 150 : 200; //600 400 + if (npc.localAI[2] < 1200f) + { + if (npc.localAI[2] % 180 == 0) //blasts from top + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + } + else if (npc.localAI[2] < 1500f && npc.localAI[2] > 1200f) + { + if (npc.localAI[2] % 180 == 0) //blasts from right + { + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -5f * uDieLul, 0f, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + } + else if (npc.localAI[2] > 1500f) + { + if (npc.localAI[2] % 180 == 0) //blasts from top + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + } + npc.localAI[0] += 1f; + if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 6f : 9f)) + { + npc.localAI[0] = 0f; + if (npc.localAI[2] < 1200f) //blasts from below + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + 1000f, 0f, -4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else if (npc.localAI[2] < 1500f) //blasts from left + { + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else //blasts from left and right + { + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + return; + } + } + return; + } + if (!startSecondAttack && ((double)npc.life <= (double)npc.lifeMax * 0.75)) + { + string key = "Mods.CalamityMod.SupremeBossText4"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + startSecondAttack = true; + return; + } + #endregion + #region ThirdAttack + if (npc.localAI[2] < 2700f && startThirdAttack) + { + despawnProj = true; + npc.localAI[2] += 1f; + npc.damage = 0; + npc.chaseable = false; + npc.dontTakeDamage = true; + npc.TargetClosest(true); + npc.velocity *= 0.95f; + Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); + float num740 = player.Center.X - vector92.X; + float num741 = player.Center.Y - vector92.Y; + npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; + if (Main.netMode != 1) + { + int damage = expertMode ? 150 : 200; + if (npc.localAI[2] % 180 == 0) //blasts from top + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + if (npc.localAI[2] % 240 == 0) //fireblasts from above + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + npc.localAI[0] += 1f; + if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 9f : 11f)) + { + npc.localAI[0] = 0f; + if (npc.localAI[2] < 2100f) //blasts from above + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else if (npc.localAI[2] < 2400f) //blasts from right + { + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else //blasts from left and right + { + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + return; + } + } + return; + } + if (!startThirdAttack && ((double)npc.life <= (double)npc.lifeMax * 0.5)) + { + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SCL"); + else + music = MusicID.Boss3; + string key = "Mods.CalamityMod.SupremeBossText5"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + startThirdAttack = true; + return; + } + #endregion + #region FourthAttack + if (npc.localAI[2] < 3600f && startFourthAttack) + { + despawnProj = true; + npc.localAI[2] += 1f; + npc.damage = 0; + npc.chaseable = false; + npc.dontTakeDamage = true; + npc.TargetClosest(true); + npc.velocity *= 0.95f; + Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); + float num740 = player.Center.X - vector92.X; + float num741 = player.Center.Y - vector92.Y; + npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; + if (Main.netMode != 1) //more clustered attack + { + int damage = expertMode ? 150 : 200; + if (npc.localAI[2] % 180 == 0) //blasts from top + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + if (npc.localAI[2] % 240 == 0) //fireblasts from above + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + if (npc.localAI[2] % 450 == 0) //giant homing fireballs + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 1f * uDieLul, mod.ProjectileType("BrimstoneMonster"), damage, 0f, Main.myPlayer, 0f, passedVar); + passedVar += 1f; + } + npc.localAI[0] += 1f; + if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 12f : 15f)) + { + npc.localAI[0] = 0f; + if (npc.localAI[2] < 3000f) //blasts from below + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y + 1000f, 0f, -4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else if (npc.localAI[2] < 3300f) //blasts from left + { + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else //blasts from left and right + { + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + return; + } + } + return; + } + if (!startFourthAttack && ((double)npc.life <= (double)npc.lifeMax * 0.3)) + { + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SCE"); + else + music = MusicID.LunarBoss; + string key = "Mods.CalamityMod.SupremeBossText7"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + startFourthAttack = true; + return; + } + #endregion + #region FifthAttack + if (npc.localAI[2] < 4500f && startFifthAttack) + { + despawnProj = true; + npc.localAI[2] += 1f; + npc.damage = 0; + npc.chaseable = false; + npc.dontTakeDamage = true; + npc.TargetClosest(true); + npc.velocity *= 0.95f; + Vector2 vector92 = new Vector2(npc.Center.X, npc.Center.Y); + float num740 = player.Center.X - vector92.X; + float num741 = player.Center.Y - vector92.Y; + npc.rotation = (float)Math.Atan2((double)num741, (double)num740) - 1.57f; + if (Main.netMode != 1) + { + int damage = expertMode ? 150 : 200; + if (npc.localAI[2] % 240 == 0) //blasts from top + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 5f * uDieLul, mod.ProjectileType("BrimstoneGigaBlast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + if (npc.localAI[2] % 360 == 0) //fireblasts from above + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 10f * uDieLul, mod.ProjectileType("BrimstoneFireblast"), damage, 0f, Main.myPlayer, 0f, 0f); + } + if (npc.localAI[2] % 450 == 0) //giant homing fireballs + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 1f * uDieLul, mod.ProjectileType("BrimstoneMonster"), damage, 0f, Main.myPlayer, 0f, passedVar); + passedVar += 1f; + } + if (npc.localAI[2] % 30 == 0) //projectiles that move in wave pattern + { + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-500, 500), -10f * uDieLul, 0f, mod.ProjectileType("BrimstoneWave"), damage, 0f, Main.myPlayer, 0f, 0f); + } + npc.localAI[0] += 1f; + if (npc.localAI[0] > (npc.GetGlobalNPC(mod).enraged ? 15f : 18f)) + { + npc.localAI[0] = 0f; + if (npc.localAI[2] < 3900f) //blasts from above + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 4f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else if (npc.localAI[2] < 4200f) //blasts from left and right + { + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3.5f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + else //blasts from above, left, and right + { + Projectile.NewProjectile(player.position.X + (float)Main.rand.Next(-1000, 1000), player.position.Y - 1000f, 0f, 3f * uDieLul, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), -3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + (float)Main.rand.Next(-1000, 1000), 3f * uDieLul, 0f, mod.ProjectileType("BrimstoneHellblast2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + return; + } + } + return; + } + if (!startFifthAttack && ((double)npc.life <= (double)npc.lifeMax * 0.1)) + { + string key = "Mods.CalamityMod.SupremeBossText9"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + startFifthAttack = true; + return; + } + #endregion + #region EndSections + if (startFifthAttack) + { + if (gettingTired5) + { + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/SCA"); + else + music = MusicID.Eerie; + npc.noGravity = false; + npc.noTileCollide = false; + npc.damage = 0; + npc.velocity.X *= 0.98f; + npc.velocity.Y = 5f; + Vector2 vector2 = new Vector2(npc.Center.X, npc.Center.Y); + float num = player.Center.X - vector2.X; + float num1 = player.Center.Y - vector2.Y; + npc.rotation = (float)Math.Atan2((double)num1, (double)num) - 1.57f; + if (player.GetModPlayer(mod).sCalKillCount > 0) //after first time you kill her + { + if (giveUpCounter == 900) + { + string key = "Mods.CalamityMod.SupremeBossText27"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + giveUpCounter--; + npc.chaseable = (giveUpCounter < 900) ? true : false; + npc.dontTakeDamage = (giveUpCounter < 900) ? false : true; + return; + } + if (giveUpCounter == 600) + { + string key = "Mods.CalamityMod.SupremeBossText25"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + if (giveUpCounter == 300) + { + string key = "Mods.CalamityMod.SupremeBossText26"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + if (giveUpCounter <= 0) + { + npc.chaseable = true; + npc.dontTakeDamage = false; + return; + } + giveUpCounter--; + npc.chaseable = false; + npc.dontTakeDamage = true; + return; + } + if (!gettingTired5 && ((double)npc.life <= (double)npc.lifeMax * 0.01)) + { + string key = "Mods.CalamityMod.SupremeBossText24"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + gettingTired5 = true; + return; + } + else if (!gettingTired4 && ((double)npc.life <= (double)npc.lifeMax * 0.02)) + { + string key = "Mods.CalamityMod.SupremeBossText23"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + gettingTired4 = true; + return; + } + else if (!gettingTired3 && ((double)npc.life <= (double)npc.lifeMax * 0.04)) + { + string key = "Mods.CalamityMod.SupremeBossText22"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + gettingTired3 = true; + return; + } + else if (!gettingTired2 && ((double)npc.life <= (double)npc.lifeMax * 0.06)) + { + string key = "Mods.CalamityMod.SupremeBossText21"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + gettingTired2 = true; + return; + } + else if (!gettingTired && ((double)npc.life <= (double)npc.lifeMax * 0.08)) + { + string key = "Mods.CalamityMod.SupremeBossText20"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + if (Main.netMode != 1) + { + spawnY += 300; + if (CalamityWorld.bossRushActive) + { + spawnY -= 50; + } + else if (CalamityWorld.death) + { + spawnY -= 100; + } + for (int x = 0; x < 5; x++) + { + int heart = NPC.NewNPC(spawnX + 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); + spawnX += spawnXAdd; + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, heart, 0f, 0f, 0f, 0, 0, 0); + } + int heart2 = NPC.NewNPC(spawnX2 - 50, spawnY, mod.NPCType("SCalWormHeart"), 0, 0f, 0f, 0f, 0f, 255); + spawnX2 -= spawnXAdd; + if (Main.netMode == 2) + { + NetMessage.SendData(23, -1, -1, null, heart2, 0f, 0f, 0f, 0, 0, 0); + } + spawnY += spawnYAdd; + } + spawnX = spawnXReset; + spawnX2 = spawnXReset2; + spawnY = spawnYReset; + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SCalWormHead")); + } + gettingTired = true; + return; + } + } + #endregion + #region DespawnProjectiles + if (npc.localAI[2] % 900 == 0 && despawnProj) + { + int proj; + for (int x = 0; x < 1000; x = proj + 1) + { + Projectile projectile = Main.projectile[x]; + if (projectile.active) + { + if (projectile.type == mod.ProjectileType("BrimstoneHellblast2") || + projectile.type == mod.ProjectileType("BrimstoneBarrage") || + projectile.type == mod.ProjectileType("BrimstoneWave")) + { + projectile.Kill(); + } + else if (projectile.type == mod.ProjectileType("BrimstoneGigaBlast") || + projectile.type == mod.ProjectileType("BrimstoneFireblast")) + { + projectile.active = false; + } + } + proj = x; + } + despawnProj = false; + } + #endregion + #region TransformSeekerandBrotherTriggers + if (!halfLife && ((double)npc.life <= (double)npc.lifeMax * 0.4)) { string key = "Mods.CalamityMod.SupremeBossText"; Color messageColor = Color.Orange; @@ -915,39 +909,39 @@ namespace CalamityMod.NPCs.SupremeCalamitas } halfLife = true; } - if ((double)npc.life <= (double)npc.lifeMax * 0.2) + if ((double)npc.life <= (double)npc.lifeMax * 0.2) { if (secondStage == false) { - string key = "Mods.CalamityMod.SupremeBossText8"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - if (Main.netMode != 1) - { - Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); - for (int I = 0; I < 20; I++) - { - int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 18) * 300)), (int)(npc.Center.Y + (Math.Cos(I * 18) * 300)), mod.NPCType("SoulSeekerSupreme"), npc.whoAmI, 0, 0, 0, -1); - NPC Eye = Main.npc[FireEye]; - Eye.ai[0] = I * 18; - Eye.ai[3] = I * 18; - } - } + string key = "Mods.CalamityMod.SupremeBossText8"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + if (Main.netMode != 1) + { + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 74); + for (int I = 0; I < 20; I++) + { + int FireEye = NPC.NewNPC((int)(npc.Center.X + (Math.Sin(I * 18) * 300)), (int)(npc.Center.Y + (Math.Cos(I * 18) * 300)), mod.NPCType("SoulSeekerSupreme"), npc.whoAmI, 0, 0, 0, -1); + NPC Eye = Main.npc[FireEye]; + Eye.ai[0] = I * 18; + Eye.ai[3] = I * 18; + } + } secondStage = true; } } - if (bossLife == 0f && npc.life > 0) + if (bossLife == 0f && npc.life > 0) { bossLife = (float)npc.lifeMax; } - if (npc.life > 0) + if (npc.life > 0) { if (Main.netMode != 1) { @@ -955,8 +949,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas if ((float)(npc.life + num660) < bossLife) { bossLife = (float)npc.life; - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SupremeCataclysm")); - NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SupremeCatastrophe")); + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SupremeCataclysm")); + NPC.SpawnOnPlayer(npc.FindClosestPlayer(), mod.NPCType("SupremeCatastrophe")); string key = "Mods.CalamityMod.SupremeBossText6"; Color messageColor = Color.Orange; if (Main.netMode == 0) @@ -970,10 +964,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas return; } } - } - #endregion - #region TargetandRotation - if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) + } + #endregion + #region TargetandRotation + if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) { npc.TargetClosest(true); } @@ -1027,32 +1021,32 @@ namespace CalamityMod.NPCs.SupremeCalamitas { npc.rotation = num803; } - #endregion - #region FirstStage - if (npc.ai[0] == 0f) + #endregion + #region FirstStage + if (npc.ai[0] == 0f) { - npc.damage = expertMode ? 720 : 450; - if (NPC.AnyNPCs(mod.NPCType("SCalWormHead"))) - { - wormAlive = true; - npc.dontTakeDamage = true; - npc.chaseable = false; - } - else - { - if (NPC.AnyNPCs(mod.NPCType("SupremeCataclysm")) || NPC.AnyNPCs(mod.NPCType("SupremeCatastrophe"))) - { - npc.dontTakeDamage = true; - npc.chaseable = false; - } - else - { - npc.dontTakeDamage = false; - npc.chaseable = true; - } - wormAlive = false; - } - if (npc.ai[1] == 0f) + npc.damage = expertMode ? 720 : 450; + if (NPC.AnyNPCs(mod.NPCType("SCalWormHead"))) + { + wormAlive = true; + npc.dontTakeDamage = true; + npc.chaseable = false; + } + else + { + if (NPC.AnyNPCs(mod.NPCType("SupremeCataclysm")) || NPC.AnyNPCs(mod.NPCType("SupremeCatastrophe"))) + { + npc.dontTakeDamage = true; + npc.chaseable = false; + } + else + { + npc.dontTakeDamage = false; + npc.chaseable = true; + } + wormAlive = false; + } + if (npc.ai[1] == 0f) { float num823 = 12f; float num824 = 0.12f; @@ -1114,7 +1108,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.localAI[1] = 0f; float num828 = 10f * uDieLul; int num829 = expertMode ? 150 : 200; //600 400 - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); float num180 = player.position.X + (float)player.width * 0.5f - value9.X; float num181 = Math.Abs(num180) * 0.1f; float num182 = player.position.Y + (float)player.height * 0.5f - value9.Y - num181; @@ -1127,7 +1121,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas int randomShot = Main.rand.Next(6); //0 to 5 if (randomShot == 0 && canFireSplitingFireball) { - canFireSplitingFireball = false; + canFireSplitingFireball = false; randomShot = mod.ProjectileType("BrimstoneFireblast"); num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); num827 = num828 / num827; @@ -1137,29 +1131,29 @@ namespace CalamityMod.NPCs.SupremeCalamitas vector82.Y += num826 * 15f; Projectile.NewProjectile(vector82.X, vector82.Y, num825, num826, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); } - else if (randomShot == 1 && canFireSplitingFireball) - { - canFireSplitingFireball = false; - randomShot = mod.ProjectileType("BrimstoneGigaBlast"); - num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); - num827 = num828 / num827; - num825 *= num827; - num826 *= num827; - vector82.X += num825 * 15f; - vector82.Y += num826 * 15f; - Projectile.NewProjectile(vector82.X, vector82.Y, num825, num826, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); - } + else if (randomShot == 1 && canFireSplitingFireball) + { + canFireSplitingFireball = false; + randomShot = mod.ProjectileType("BrimstoneGigaBlast"); + num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); + num827 = num828 / num827; + num825 *= num827; + num826 *= num827; + vector82.X += num825 * 15f; + vector82.Y += num826 * 15f; + Projectile.NewProjectile(vector82.X, vector82.Y, num825, num826, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); + } else { - canFireSplitingFireball = true; + canFireSplitingFireball = true; randomShot = mod.ProjectileType("BrimstoneBarrage"); for (int num186 = 1; num186 <= 8; num186++) { num180 = player.position.X + (float)player.width * 0.5f - value9.X; num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); - float speedBoost = (float)(num186 > 4 ? -(num186 - 4) : num186); - num183 = (8f + speedBoost) / num183; + float speedBoost = (float)(num186 > 4 ? -(num186 - 4) : num186); + num183 = (8f + speedBoost) / num183; num180 *= num183; num182 *= num183; Projectile.NewProjectile(value9.X, value9.Y, num180 + speedBoost, num182 + speedBoost, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); @@ -1173,23 +1167,23 @@ namespace CalamityMod.NPCs.SupremeCalamitas { npc.rotation = num803; //change float num383 = wormAlive ? 26f : 30f; - if ((double)npc.life < (double)npc.lifeMax * 0.95) + if ((double)npc.life < (double)npc.lifeMax * 0.95) { num383 += 1f; } - if ((double)npc.life < (double)npc.lifeMax * 0.85) + if ((double)npc.life < (double)npc.lifeMax * 0.85) { num383 += 1f; } - if ((double)npc.life < (double)npc.lifeMax * 0.7) + if ((double)npc.life < (double)npc.lifeMax * 0.7) { num383 += 1f; } - if ((double)npc.life < (double)npc.lifeMax * 0.6) + if ((double)npc.life < (double)npc.lifeMax * 0.6) { num383 += 1f; } - if ((double)npc.life < (double)npc.lifeMax * 0.5) + if ((double)npc.life < (double)npc.lifeMax * 0.5) { num383 += 1f; } @@ -1201,50 +1195,50 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.velocity.X = num384 * num386; npc.velocity.Y = num385 * num386; npc.ai[1] = 2f; - } - else if (npc.ai[1] == 2f) + } + else if (npc.ai[1] == 2f) { npc.ai[2] += 1f; - if (npc.ai[2] >= 25f) + if (npc.ai[2] >= 25f) { npc.velocity.X = npc.velocity.X * 0.96f; npc.velocity.Y = npc.velocity.Y * 0.96f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) { npc.velocity.X = 0f; } - if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) + if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) { npc.velocity.Y = 0f; } - } - else + } + else { npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - 1.57f; } - if (npc.ai[2] >= 70f) + if (npc.ai[2] >= 70f) { npc.ai[3] += 1f; npc.ai[2] = 0f; npc.target = 255; npc.rotation = num803; - if (npc.ai[3] >= 2f) + if (npc.ai[3] >= 2f) { npc.ai[1] = -1f; - } + } else { npc.ai[1] = 1f; } } } - else if (npc.ai[1] == 3f) + else if (npc.ai[1] == 3f) { npc.TargetClosest(true); float num412 = 32f; float num413 = 1.2f; int num414 = 1; - if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)player.width) + if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)player.width) { num414 = -1; } @@ -1255,62 +1249,62 @@ namespace CalamityMod.NPCs.SupremeCalamitas num417 = num412 / num417; num415 *= num417; num416 *= num417; - if (npc.velocity.X < num415) + if (npc.velocity.X < num415) { npc.velocity.X = npc.velocity.X + num413; - if (npc.velocity.X < 0f && num415 > 0f) + if (npc.velocity.X < 0f && num415 > 0f) { npc.velocity.X = npc.velocity.X + num413; } - } - else if (npc.velocity.X > num415) + } + else if (npc.velocity.X > num415) { npc.velocity.X = npc.velocity.X - num413; - if (npc.velocity.X > 0f && num415 < 0f) + if (npc.velocity.X > 0f && num415 < 0f) { npc.velocity.X = npc.velocity.X - num413; } } - if (npc.velocity.Y < num416) + if (npc.velocity.Y < num416) { npc.velocity.Y = npc.velocity.Y + num413; - if (npc.velocity.Y < 0f && num416 > 0f) + if (npc.velocity.Y < 0f && num416 > 0f) { npc.velocity.Y = npc.velocity.Y + num413; } - } - else if (npc.velocity.Y > num416) + } + else if (npc.velocity.Y > num416) { npc.velocity.Y = npc.velocity.Y - num413; - if (npc.velocity.Y > 0f && num416 < 0f) + if (npc.velocity.Y > 0f && num416 < 0f) { npc.velocity.Y = npc.velocity.Y - num413; } } npc.ai[2] += 1f; - if (npc.ai[2] >= 480f) + if (npc.ai[2] >= 480f) { npc.ai[1] = -1f; npc.target = 255; npc.netUpdate = true; - } + } else { - if (!player.dead) + if (!player.dead) { npc.ai[3] += wormAlive ? 0.5f : 1f; } - if (npc.ai[3] >= 20f) + if (npc.ai[3] >= 20f) { npc.ai[3] = 0f; vector40 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num415 = player.position.X + (float)(player.width / 2) - vector40.X; num416 = player.position.Y + (float)(player.height / 2) - vector40.Y; - if (Main.netMode != 1) + if (Main.netMode != 1) { float num418 = 10f * uDieLul; int num419 = expertMode ? 150 : 200; //600 500 - int num420 = mod.ProjectileType("BrimstoneHellblast"); + int num420 = mod.ProjectileType("BrimstoneHellblast"); num417 = (float)Math.Sqrt((double)(num415 * num415 + num416 * num416)); num417 = num418 / num417; num415 *= num417; @@ -1382,7 +1376,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.localAI[1] = 0f; float num837 = 5f * uDieLul; int num838 = expertMode ? 150 : 200; //600 500 - int num839 = mod.ProjectileType("BrimstoneFireblast"); + int num839 = mod.ProjectileType("BrimstoneFireblast"); num836 = (float)Math.Sqrt((double)(num834 * num834 + num835 * num835)); num836 = num837 / num836; num834 *= num836; @@ -1401,47 +1395,47 @@ namespace CalamityMod.NPCs.SupremeCalamitas return; } } - if (npc.ai[1] == -1f) + if (npc.ai[1] == -1f) { - phaseChange++; - if (phaseChange > 23) - { - phaseChange = 0; - } - int phase = 0; //0 = shots above 1 = charge 2 = nothing 3 = hellblasts 4 = fireblasts - switch (phaseChange) - { - case 0: phase = 0; willCharge = false; break; //0341 - case 1: phase = 3; break; - case 2: phase = 4; willCharge = true; break; - case 3: phase = 1; break; - case 4: phase = 1; break; //1430 - case 5: phase = 4; willCharge = false; break; - case 6: phase = 3; break; - case 7: phase = 0; willCharge = true; break; - case 8: phase = 1; break; //1034 - case 9: phase = 0; willCharge = false; break; - case 10: phase = 3; break; - case 11: phase = 4; break; - case 12: phase = 4; break; //4310 - case 13: phase = 3; willCharge = true; break; - case 14: phase = 1; break; - case 15: phase = 0; willCharge = false; break; - case 16: phase = 4; break; //4411 - case 17: phase = 4; willCharge = true; break; - case 18: phase = 1; break; - case 19: phase = 1; break; - case 20: phase = 0; break; //0101 - case 21: phase = 1; break; - case 22: phase = 0; break; - case 23: phase = 1; break; - } + phaseChange++; + if (phaseChange > 23) + { + phaseChange = 0; + } + int phase = 0; //0 = shots above 1 = charge 2 = nothing 3 = hellblasts 4 = fireblasts + switch (phaseChange) + { + case 0: phase = 0; willCharge = false; break; //0341 + case 1: phase = 3; break; + case 2: phase = 4; willCharge = true; break; + case 3: phase = 1; break; + case 4: phase = 1; break; //1430 + case 5: phase = 4; willCharge = false; break; + case 6: phase = 3; break; + case 7: phase = 0; willCharge = true; break; + case 8: phase = 1; break; //1034 + case 9: phase = 0; willCharge = false; break; + case 10: phase = 3; break; + case 11: phase = 4; break; + case 12: phase = 4; break; //4310 + case 13: phase = 3; willCharge = true; break; + case 14: phase = 1; break; + case 15: phase = 0; willCharge = false; break; + case 16: phase = 4; break; //4411 + case 17: phase = 4; willCharge = true; break; + case 18: phase = 1; break; + case 19: phase = 1; break; + case 20: phase = 0; break; //0101 + case 21: phase = 1; break; + case 22: phase = 0; break; + case 23: phase = 1; break; + } npc.ai[1] = (float)phase; npc.ai[2] = 0f; npc.ai[3] = 0f; return; } - if ((double)npc.life < (double)npc.lifeMax * 0.4) + if ((double)npc.life < (double)npc.lifeMax * 0.4) { npc.ai[0] = 1f; npc.ai[1] = 0f; @@ -1451,41 +1445,41 @@ namespace CalamityMod.NPCs.SupremeCalamitas return; } } - #endregion - #region Transition - else if (npc.ai[0] == 1f || npc.ai[0] == 2f) + #endregion + #region Transition + else if (npc.ai[0] == 1f || npc.ai[0] == 2f) { npc.dontTakeDamage = true; npc.chaseable = false; - if (npc.ai[0] == 1f) + if (npc.ai[0] == 1f) { npc.ai[2] += 0.005f; - if ((double)npc.ai[2] > 0.5) + if ((double)npc.ai[2] > 0.5) { npc.ai[2] = 0.5f; } } - else + else { npc.ai[2] -= 0.005f; - if (npc.ai[2] < 0f) + if (npc.ai[2] < 0f) { npc.ai[2] = 0f; } } npc.rotation += npc.ai[2]; npc.ai[1] += 1f; - if (npc.ai[1] == 100f) + if (npc.ai[1] == 100f) { npc.ai[0] += 1f; npc.ai[1] = 0f; - if (npc.ai[0] == 3f) + if (npc.ai[0] == 3f) { npc.ai[2] = 0f; - } - else + } + else { - for (int num388 = 0; num388 < 50; num388++) + for (int num388 = 0; num388 < 50; num388++) { Dust.NewDust(npc.position, npc.width, npc.height, 235, (float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f, 0, default(Color), 1f); } @@ -1495,42 +1489,42 @@ namespace CalamityMod.NPCs.SupremeCalamitas Dust.NewDust(npc.position, npc.width, npc.height, 235, (float)Main.rand.Next(-30, 31) * 0.2f, (float)Main.rand.Next(-30, 31) * 0.2f, 0, default(Color), 1f); npc.velocity.X = npc.velocity.X * 0.98f; npc.velocity.Y = npc.velocity.Y * 0.98f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) { npc.velocity.X = 0f; } - if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) + if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) { npc.velocity.Y = 0f; return; } } - #endregion - #region LastStage - else + #endregion + #region LastStage + else { - npc.damage = expertMode ? 720 : 450; - if (NPC.AnyNPCs(mod.NPCType("SCalWormHead"))) - { - wormAlive = true; - npc.dontTakeDamage = true; - npc.chaseable = false; - } - else - { - if (NPC.AnyNPCs(mod.NPCType("SoulSeekerSupreme"))) - { - npc.dontTakeDamage = true; - npc.chaseable = false; - } - else - { - npc.dontTakeDamage = false; - npc.chaseable = true; - } - wormAlive = false; - } - if (npc.ai[1] == 0f) + npc.damage = expertMode ? 720 : 450; + if (NPC.AnyNPCs(mod.NPCType("SCalWormHead"))) + { + wormAlive = true; + npc.dontTakeDamage = true; + npc.chaseable = false; + } + else + { + if (NPC.AnyNPCs(mod.NPCType("SoulSeekerSupreme"))) + { + npc.dontTakeDamage = true; + npc.chaseable = false; + } + else + { + npc.dontTakeDamage = false; + npc.chaseable = true; + } + wormAlive = false; + } + if (npc.ai[1] == 0f) { float num823 = 12f; float num824 = 0.12f; @@ -1592,7 +1586,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.localAI[1] = 0f; float num828 = 10f * uDieLul; int num829 = expertMode ? 150 : 200; //600 500 - Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + Vector2 value9 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); float num180 = player.position.X + (float)player.width * 0.5f - value9.X; float num181 = Math.Abs(num180) * 0.1f; float num182 = player.position.Y + (float)player.height * 0.5f - value9.Y - num181; @@ -1603,47 +1597,47 @@ namespace CalamityMod.NPCs.SupremeCalamitas value9.X += num180; value9.Y += num182; int randomShot = Main.rand.Next(6); - if (randomShot == 0 && canFireSplitingFireball) - { - canFireSplitingFireball = false; - randomShot = mod.ProjectileType("BrimstoneFireblast"); - num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); - num827 = num828 / num827; - num825 *= num827; - num826 *= num827; - vector82.X += num825 * 15f; - vector82.Y += num826 * 15f; - Projectile.NewProjectile(vector82.X, vector82.Y, num825, num826, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); - } - else if (randomShot == 1 && canFireSplitingFireball) - { - canFireSplitingFireball = false; - randomShot = mod.ProjectileType("BrimstoneGigaBlast"); - num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); - num827 = num828 / num827; - num825 *= num827; - num826 *= num827; - vector82.X += num825 * 15f; - vector82.Y += num826 * 15f; - Projectile.NewProjectile(vector82.X, vector82.Y, num825, num826, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); - } - else - { - canFireSplitingFireball = true; - randomShot = mod.ProjectileType("BrimstoneBarrage"); - for (int num186 = 1; num186 <= 8; num186++) - { - num180 = player.position.X + (float)player.width * 0.5f - value9.X; - num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; - num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); - float speedBoost = (float)(num186 > 4 ? -(num186 - 4) : num186); - num183 = (8f + speedBoost) / num183; - num180 *= num183; - num182 *= num183; - Projectile.NewProjectile(value9.X, value9.Y, num180 + speedBoost, num182 + speedBoost, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); - } - } - return; + if (randomShot == 0 && canFireSplitingFireball) + { + canFireSplitingFireball = false; + randomShot = mod.ProjectileType("BrimstoneFireblast"); + num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); + num827 = num828 / num827; + num825 *= num827; + num826 *= num827; + vector82.X += num825 * 15f; + vector82.Y += num826 * 15f; + Projectile.NewProjectile(vector82.X, vector82.Y, num825, num826, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); + } + else if (randomShot == 1 && canFireSplitingFireball) + { + canFireSplitingFireball = false; + randomShot = mod.ProjectileType("BrimstoneGigaBlast"); + num827 = (float)Math.Sqrt((double)(num825 * num825 + num826 * num826)); + num827 = num828 / num827; + num825 *= num827; + num826 *= num827; + vector82.X += num825 * 15f; + vector82.Y += num826 * 15f; + Projectile.NewProjectile(vector82.X, vector82.Y, num825, num826, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); + } + else + { + canFireSplitingFireball = true; + randomShot = mod.ProjectileType("BrimstoneBarrage"); + for (int num186 = 1; num186 <= 8; num186++) + { + num180 = player.position.X + (float)player.width * 0.5f - value9.X; + num182 = player.position.Y + (float)player.height * 0.5f - value9.Y; + num183 = (float)Math.Sqrt((double)(num180 * num180 + num182 * num182)); + float speedBoost = (float)(num186 > 4 ? -(num186 - 4) : num186); + num183 = (8f + speedBoost) / num183; + num180 *= num183; + num182 *= num183; + Projectile.NewProjectile(value9.X, value9.Y, num180 + speedBoost, num182 + speedBoost, randomShot, num829, 0f, Main.myPlayer, 0f, 0f); + } + } + return; } } } @@ -1651,15 +1645,15 @@ namespace CalamityMod.NPCs.SupremeCalamitas { npc.rotation = num803; //change float num383 = wormAlive ? 31f : 35f; - if ((double)npc.life < (double)npc.lifeMax * 0.3) + if ((double)npc.life < (double)npc.lifeMax * 0.3) { num383 += 1f; } - if ((double)npc.life < (double)npc.lifeMax * 0.2) + if ((double)npc.life < (double)npc.lifeMax * 0.2) { num383 += 1f; } - if ((double)npc.life < (double)npc.lifeMax * 0.1) + if ((double)npc.life < (double)npc.lifeMax * 0.1) { num383 += 1f; } @@ -1671,50 +1665,50 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.velocity.X = num384 * num386; npc.velocity.Y = num385 * num386; npc.ai[1] = 2f; - } - else if (npc.ai[1] == 2f) + } + else if (npc.ai[1] == 2f) { npc.ai[2] += 1f; - if (npc.ai[2] >= 25f) + if (npc.ai[2] >= 25f) { npc.velocity.X = npc.velocity.X * 0.96f; npc.velocity.Y = npc.velocity.Y * 0.96f; - if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) + if ((double)npc.velocity.X > -0.1 && (double)npc.velocity.X < 0.1) { npc.velocity.X = 0f; } - if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) + if ((double)npc.velocity.Y > -0.1 && (double)npc.velocity.Y < 0.1) { npc.velocity.Y = 0f; } - } - else + } + else { npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X) - 1.57f; } - if (npc.ai[2] >= 70f) + if (npc.ai[2] >= 70f) { npc.ai[3] += 1f; npc.ai[2] = 0f; npc.target = 255; npc.rotation = num803; //change - if (npc.ai[3] >= 1f) + if (npc.ai[3] >= 1f) { npc.ai[1] = -1f; - } + } else { npc.ai[1] = 1f; } } } - else if (npc.ai[1] == 3f) + else if (npc.ai[1] == 3f) { npc.TargetClosest(true); float num412 = 32f; float num413 = 1.2f; int num414 = 1; - if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)player.width) + if (npc.position.X + (float)(npc.width / 2) < player.position.X + (float)player.width) { num414 = -1; } @@ -1725,31 +1719,31 @@ namespace CalamityMod.NPCs.SupremeCalamitas num417 = num412 / num417; num415 *= num417; num416 *= num417; - if (npc.velocity.X < num415) + if (npc.velocity.X < num415) { npc.velocity.X = npc.velocity.X + num413; - if (npc.velocity.X < 0f && num415 > 0f) + if (npc.velocity.X < 0f && num415 > 0f) { npc.velocity.X = npc.velocity.X + num413; } } - else if (npc.velocity.X > num415) + else if (npc.velocity.X > num415) { npc.velocity.X = npc.velocity.X - num413; - if (npc.velocity.X > 0f && num415 < 0f) + if (npc.velocity.X > 0f && num415 < 0f) { npc.velocity.X = npc.velocity.X - num413; } } - if (npc.velocity.Y < num416) + if (npc.velocity.Y < num416) { npc.velocity.Y = npc.velocity.Y + num413; - if (npc.velocity.Y < 0f && num416 > 0f) + if (npc.velocity.Y < 0f && num416 > 0f) { npc.velocity.Y = npc.velocity.Y + num413; } } - else if (npc.velocity.Y > num416) + else if (npc.velocity.Y > num416) { npc.velocity.Y = npc.velocity.Y - num413; if (npc.velocity.Y > 0f && num416 < 0f) @@ -1758,7 +1752,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } } npc.ai[2] += 1f; - if (npc.ai[2] >= 300f) + if (npc.ai[2] >= 300f) { npc.ai[1] = -1f; npc.target = 255; @@ -1766,21 +1760,21 @@ namespace CalamityMod.NPCs.SupremeCalamitas } else { - if (!player.dead) + if (!player.dead) { npc.ai[3] += wormAlive ? 0.5f : 1f; - } + } if (npc.ai[3] >= 24f) { npc.ai[3] = 0f; vector40 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num415 = player.position.X + (float)(player.width / 2) - vector40.X; num416 = player.position.Y + (float)(player.height / 2) - vector40.Y; - if (Main.netMode != 1) + if (Main.netMode != 1) { float num418 = 10f * uDieLul; int num419 = expertMode ? 150 : 200; //600 500 - int num420 = mod.ProjectileType("BrimstoneHellblast"); + int num420 = mod.ProjectileType("BrimstoneHellblast"); num417 = (float)Math.Sqrt((double)(num415 * num415 + num416 * num416)); num417 = num418 / num417; num415 *= num417; @@ -1847,12 +1841,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (Main.netMode != 1) { npc.localAI[1] += wormAlive ? 0.5f : 1f; - if (npc.localAI[1] > 100f) + if (npc.localAI[1] > 100f) { npc.localAI[1] = 0f; float num837 = 5f * uDieLul; int num838 = expertMode ? 150 : 200; //600 500 - int num839 = mod.ProjectileType("BrimstoneFireblast"); + int num839 = mod.ProjectileType("BrimstoneFireblast"); num836 = (float)Math.Sqrt((double)(num834 * num834 + num835 * num835)); num836 = num837 / num836; num834 *= num836; @@ -1871,161 +1865,161 @@ namespace CalamityMod.NPCs.SupremeCalamitas return; } } - if (npc.ai[1] == -1f) + if (npc.ai[1] == -1f) { - phaseChange++; - if (phaseChange > 23) - { - phaseChange = 0; - } - int phase = 0; //0 = shots above 1 = charge 2 = nothing 3 = hellblasts 4 = fireblasts - switch (phaseChange) - { - case 0: phase = 0; willCharge = false; break; //0341 - case 1: phase = 3; break; - case 2: phase = 4; willCharge = true; break; - case 3: phase = 1; break; - case 4: phase = 1; break; //1430 - case 5: phase = 4; willCharge = false; break; - case 6: phase = 3; break; - case 7: phase = 0; willCharge = true; break; - case 8: phase = 1; break; //1034 - case 9: phase = 0; willCharge = false; break; - case 10: phase = 3; break; - case 11: phase = 4; break; - case 12: phase = 4; break; //4310 - case 13: phase = 3; willCharge = true; break; - case 14: phase = 1; break; - case 15: phase = 0; willCharge = false; break; - case 16: phase = 4; break; //4411 - case 17: phase = 4; willCharge = true; break; - case 18: phase = 1; break; - case 19: phase = 1; break; - case 20: phase = 0; break; //0101 - case 21: phase = 1; break; - case 22: phase = 0; break; - case 23: phase = 1; break; - } - npc.ai[1] = (float)phase; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - return; - } + phaseChange++; + if (phaseChange > 23) + { + phaseChange = 0; + } + int phase = 0; //0 = shots above 1 = charge 2 = nothing 3 = hellblasts 4 = fireblasts + switch (phaseChange) + { + case 0: phase = 0; willCharge = false; break; //0341 + case 1: phase = 3; break; + case 2: phase = 4; willCharge = true; break; + case 3: phase = 1; break; + case 4: phase = 1; break; //1430 + case 5: phase = 4; willCharge = false; break; + case 6: phase = 3; break; + case 7: phase = 0; willCharge = true; break; + case 8: phase = 1; break; //1034 + case 9: phase = 0; willCharge = false; break; + case 10: phase = 3; break; + case 11: phase = 4; break; + case 12: phase = 4; break; //4310 + case 13: phase = 3; willCharge = true; break; + case 14: phase = 1; break; + case 15: phase = 0; willCharge = false; break; + case 16: phase = 4; break; //4411 + case 17: phase = 4; willCharge = true; break; + case 18: phase = 1; break; + case 19: phase = 1; break; + case 20: phase = 0; break; //0101 + case 21: phase = 1; break; + case 22: phase = 0; break; + case 23: phase = 1; break; + } + npc.ai[1] = (float)phase; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + return; + } } - #endregion - } + #endregion + } - #region Loot - public override void NPCLoot() + #region Loot + public override void NPCLoot() { - if (lootTimer < 6000) //75 seconds for bullet hells + 25 seconds for normal phases - { - string key = "Mods.CalamityMod.SupremeBossText2"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - return; - } - if (Main.player[npc.target].GetModPlayer(mod).sCalKillCount == 0) //first time you kill her - { - if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 0) - { - string key = "Mods.CalamityMod.SupremeBossText16"; //die no times - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 1) - { - string key = "Mods.CalamityMod.SupremeBossText17"; //die one time - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 2) - { - string key = "Mods.CalamityMod.SupremeBossText18"; //die two times - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 3) - { - string key = "Mods.CalamityMod.SupremeBossText19"; //die three times - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CheatTestThing")); - } - else //die however many times - { - string key = "Mods.CalamityMod.SupremeBossText10"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - } - else //all times after first kill - { - string key = "Mods.CalamityMod.SupremeBossText10"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - if (Main.player[npc.target].GetModPlayer(mod).sCalKillCount < 5) - { - Main.player[npc.target].GetModPlayer(mod).sCalKillCount++; - } - if (Main.expertMode) + if (lootTimer < 6000) //75 seconds for bullet hells + 25 seconds for normal phases { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("CalamitousEssence"), Main.rand.Next(30, 41), true); - if (CalamityWorld.revenge) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Vehemenc")); - } - int itemChoice = Main.rand.Next(14); + string key = "Mods.CalamityMod.SupremeBossText2"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + return; + } + if (Main.player[npc.target].GetModPlayer(mod).sCalKillCount == 0) //first time you kill her + { + if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 0) + { + string key = "Mods.CalamityMod.SupremeBossText16"; //die no times + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 1) + { + string key = "Mods.CalamityMod.SupremeBossText17"; //die one time + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 2) + { + string key = "Mods.CalamityMod.SupremeBossText18"; //die two times + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + else if (Main.LocalPlayer.GetModPlayer(mod).sCalDeathCount == 3) + { + string key = "Mods.CalamityMod.SupremeBossText19"; //die three times + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CheatTestThing")); + } + else //die however many times + { + string key = "Mods.CalamityMod.SupremeBossText10"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + } + else //all times after first kill + { + string key = "Mods.CalamityMod.SupremeBossText10"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + if (Main.player[npc.target].GetModPlayer(mod).sCalKillCount < 5) + { + Main.player[npc.target].GetModPlayer(mod).sCalKillCount++; + } + if (Main.expertMode) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("CalamitousEssence"), Main.rand.Next(30, 41), true); + if (CalamityWorld.revenge) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Vehemenc")); + } + int itemChoice = Main.rand.Next(14); if (itemChoice == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("Animus")); //done @@ -2083,64 +2077,64 @@ namespace CalamityMod.NPCs.SupremeCalamitas Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("CrystylCrusher")); //done } } - else - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("CalamitousEssence"), Main.rand.Next(20, 31), true); - } + else + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("CalamitousEssence"), Main.rand.Next(20, 31), true); + } } - #endregion + #endregion - public override void BossLoot(ref string name, ref int potionType) + public override void BossLoot(ref string name, ref int potionType) { potionType = mod.ItemType("SupremeHealingPotion"); } - public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - if (projectile.type == mod.ProjectileType("AngryChicken")) - { - damage /= 2; - } - if (projectile.type == mod.ProjectileType("ApothMark") || projectile.type == mod.ProjectileType("ApothJaws")) - { - damage /= 25; - } - } - - public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) + public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - if (damage > npc.lifeMax / 10) - { - damage = 0; - return false; - } - double newDamage = (damage + (int)((double)defense * 0.25)); - float protection = (CalamityWorld.death ? 0.75f : 0.7f); //45% - if (CalamityWorld.bossRushActive) - { - protection = 0.6f; - } - if (newDamage < 1.0) - { - newDamage = 1.0; - } - if (npc.ichor) - { - protection *= 0.9f; //41% - } - else if (npc.onFire2) - { - protection *= 0.91f; - } - if (startFifthAttack) - { - protection *= 1.2f; //90% or 84% - } - if (protectionBoost) - { - protection = 0.99f; //99% - } - if (newDamage >= 1.0) + if (projectile.type == mod.ProjectileType("AngryChicken")) + { + damage /= 2; + } + if (projectile.type == mod.ProjectileType("ApothMark") || projectile.type == mod.ProjectileType("ApothJaws")) + { + damage /= 3; + } + } + + public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) + { + if (damage > npc.lifeMax / 10) + { + damage = 0; + return false; + } + double newDamage = (damage + (int)((double)defense * 0.25)); + float protection = (CalamityWorld.death ? 0.75f : 0.7f); //45% + if (CalamityWorld.bossRushActive) + { + protection = 0.6f; + } + if (newDamage < 1.0) + { + newDamage = 1.0; + } + if (npc.ichor) + { + protection *= 0.9f; //41% + } + else if (npc.onFire2) + { + protection *= 0.91f; + } + if (startFifthAttack) + { + protection *= 1.2f; //90% or 84% + } + if (protectionBoost) + { + protection = 0.99f; //99% + } + if (newDamage >= 1.0) { newDamage = (double)((int)((double)(1f - protection) * newDamage)); if (newDamage < 1.0) @@ -2152,49 +2146,83 @@ namespace CalamityMod.NPCs.SupremeCalamitas return true; } - public override bool CheckActive() - { - return canDespawn; - } - - public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) + public override bool CheckActive() { - scale = 1.5f; + return canDespawn; + } + + public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) + { + scale = 1.5f; return null; } - + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; return true; } - public override void FindFrame(int frameHeight) - { - npc.frameCounter += 0.15f; - npc.frameCounter %= Main.npcFrameCount[npc.type]; - int frame = (int)npc.frameCounter; - npc.frame.Y = frame * frameHeight; - } + public override void FindFrame(int frameHeight) + { + npc.frameCounter += 0.15f; + npc.frameCounter %= Main.npcFrameCount[npc.type]; + int frame = (int)npc.frameCounter; + npc.frame.Y = frame * frameHeight; + } - public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) - { - Mod mod = ModLoader.GetMod("CalamityMod"); - Texture2D texture = Main.npcTexture[npc.type]; - Texture2D texture2 = mod.GetTexture("NPCs/SupremeCalamitas/SupremeCalamitas2"); - Color newColor = (willCharge ? new Color(100, 0, 0, 0) : drawColor); - if (npc.ai[0] > 1f) - { - CalamityMod.DrawTexture(spriteBatch, texture2, 0, npc, newColor); - } - else - { - CalamityMod.DrawTexture(spriteBatch, texture, 0, npc, newColor); - } - return false; - } + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Texture2D texture = Main.npcTexture[npc.type]; + if (npc.ai[0] > 1f) + { + texture = mod.GetTexture("NPCs/SupremeCalamitas/SupremeCalamitas2"); + } + else + { + texture = Main.npcTexture[npc.type]; + } + Color newColor = (willCharge ? new Color(100, 0, 0, 0) : drawColor); + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(newColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } - public override void HitEffect(int hitDirection, double damage) + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) { @@ -2228,13 +2256,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas } } } - + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); npc.damage = (int)(npc.damage * 0.8f); } - + public override void OnHitPlayer(Player player, int damage, bool crit) { player.AddBuff(mod.BuffType("VulnerabilityHex"), 600, true); diff --git a/NPCs/SupremeCalamitas/SupremeCataclysm.cs b/NPCs/SupremeCalamitas/SupremeCataclysm.cs index a715bc11f1..d9de369958 100644 --- a/NPCs/SupremeCalamitas/SupremeCataclysm.cs +++ b/NPCs/SupremeCalamitas/SupremeCataclysm.cs @@ -36,6 +36,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.aiStyle = -1; //new aiType = -1; //new npc.knockBackResist = 0f; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -143,11 +145,51 @@ namespace CalamityMod.NPCs.SupremeCalamitas { int num695 = Projectile.NewProjectile(vector85.X, vector85.Y, num692, num693, num691, num690, 0f, Main.myPlayer, 0f, 0f); } - return; } } - public override bool CheckActive() + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + + public override bool CheckActive() { return false; } diff --git a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs index c806db93e7..0ff4246a5b 100644 --- a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs +++ b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs @@ -38,6 +38,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.knockBackResist = 0f; npc.noGravity = true; npc.noTileCollide = true; + NPCID.Sets.TrailCacheLength[npc.type] = 8; + NPCID.Sets.TrailingMode[npc.type] = 1; for (int k = 0; k < npc.buffImmune.Length; k++) { npc.buffImmune[k] = true; @@ -143,11 +145,51 @@ namespace CalamityMod.NPCs.SupremeCalamitas { int num695 = Projectile.NewProjectile(vector85.X, vector85.Y, num692, num693, num691, num690, 0f, Main.myPlayer, 0f, 0f); } - return; } } - public override bool CheckActive() + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + Microsoft.Xna.Framework.Color color24 = npc.GetAlpha(drawColor); + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + Texture2D texture2D3 = Main.npcTexture[npc.type]; + int num156 = Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && Lighting.NotRetro) + { + Microsoft.Xna.Framework.Color color26 = npc.GetAlpha(color25); + { + goto IL_6899; + } + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + color26 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture2D3, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(rectangle), color26, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + var something = npc.direction == -1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + spriteBatch.Draw(texture2D3, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, color24, npc.rotation, npc.frame.Size() / 2, npc.scale, something, 0); + return false; + } + + public override bool CheckActive() { return false; } diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBody.cs b/NPCs/TheDevourerofGods/DevourerofGodsBody.cs index 1e7b9203e9..f52a5ce5f9 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBody.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBody.cs @@ -41,7 +41,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.noGravity = true; npc.noTileCollide = true; npc.chaseable = false; - npc.HitSound = SoundID.NPCHit4; + npc.canGhostHeal = false; + npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; npc.boss = true; diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs b/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs index f506f99bec..31c3321b6c 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBody2.cs @@ -16,7 +16,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void SetStaticDefaults() { - DisplayName.SetDefault("Devourer of Thots"); + DisplayName.SetDefault("Cosmic Guardian"); } public override void SetDefaults() @@ -35,6 +35,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; + npc.canGhostHeal = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; diff --git a/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs b/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs index 34bc481c7a..5759189837 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsBodyS.cs @@ -28,14 +28,14 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.width = 54; //34 npc.height = 54; //34 npc.defense = 0; - npc.lifeMax = CalamityWorld.revenge ? 625000 : 550000; //720000 672000 - if (CalamityWorld.death) + npc.lifeMax = CalamityWorld.revenge ? 937500 : 825000; //720000 672000 + if (CalamityWorld.death) + { + npc.lifeMax = 1530000; + } + if (CalamityWorld.bossRushActive) { - npc.lifeMax = 1020000; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 9000000 : 8000000; + npc.lifeMax = CalamityWorld.death ? 5000000 : 4600000; } npc.aiStyle = -1; //new aiType = -1; //new @@ -46,7 +46,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.noGravity = true; npc.noTileCollide = true; npc.chaseable = false; - npc.HitSound = SoundID.NPCHit4; + npc.canGhostHeal = false; + npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; npc.boss = true; @@ -128,7 +129,6 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (Main.npc[(int)npc.ai[2]].localAI[3] >= 1f) { npc.damage = 0; - npc.dontTakeDamage = true; npc.alpha = Main.npc[(int)npc.ai[2]].alpha; } else if (Main.npc[(int)npc.ai[1]].alpha < 128) @@ -137,7 +137,6 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (npc.alpha <= 0 && invinceTime <= 0) { npc.damage = expertMode ? 352 : 220; - npc.dontTakeDamage = false; npc.alpha = 0; } } diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHead.cs b/NPCs/TheDevourerofGods/DevourerofGodsHead.cs index e19b6a2ea5..139b2da631 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHead.cs @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.knockBackResist = 0f; npc.scale = 1.4f; npc.boss = true; - npc.value = Item.buyPrice(1, 50, 0, 0); + npc.value = Item.buyPrice(0, 75, 0, 0); npc.alpha = 255; npc.behindTiles = true; npc.noGravity = true; diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs b/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs index 7ac22b8f39..eb4ba11d17 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHead2.cs @@ -25,7 +25,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void SetStaticDefaults() { - DisplayName.SetDefault("Devourer of Thots"); + DisplayName.SetDefault("Cosmic Guardian"); } public override void SetDefaults() @@ -44,7 +44,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; - npc.HitSound = SoundID.NPCHit4; + npc.canGhostHeal = false; + npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; for (int k = 0; k < npc.buffImmune.Length; k++) diff --git a/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs b/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs index 8a2ea35a65..5fb17b2d35 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsHeadS.cs @@ -44,23 +44,23 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.width = 100; //130 npc.height = 144; //150 npc.defense = 0; - npc.lifeMax = CalamityWorld.revenge ? 625000 : 550000; //720000 672000 - if (CalamityWorld.death) - { - npc.lifeMax = 1020000; - } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 9000000 : 8000000; - } - npc.takenDamageMultiplier = CalamityWorld.bossRushActive ? 1.5f : 1.25f; + npc.lifeMax = CalamityWorld.revenge ? 937500 : 825000; //720000 672000 + if (CalamityWorld.death) + { + npc.lifeMax = 1530000; + } + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 5000000 : 4600000; + } + npc.takenDamageMultiplier = CalamityWorld.bossRushActive ? 1.5f : 1.25f; npc.aiStyle = -1; //new aiType = -1; //new animationType = 10; //new npc.knockBackResist = 0f; npc.scale = 1.1f; npc.boss = true; - npc.value = Item.buyPrice(3, 0, 0, 0); + npc.value = Item.buyPrice(1, 0, 0, 0); npc.alpha = 255; npc.behindTiles = true; npc.noGravity = true; @@ -111,16 +111,15 @@ namespace CalamityMod.NPCs.TheDevourerofGods } else if (npc.localAI[3] == 1f) { - npc.damage = 0; - npc.dontTakeDamage = true; - npc.alpha += 5; - if (npc.alpha == 255) + //npc.damage = 0; + npc.alpha += 4; + if (npc.alpha == 204) //255 { laserShoot = 0; } - if (npc.alpha >= 255) + if (npc.alpha >= 204) //255 { - npc.alpha = 255; + npc.alpha = 204; //255 idleCounter--; if (idleCounter <= 0) { @@ -139,8 +138,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods { flameTimer = 270; } - npc.damage = expertMode ? 480 : 300; - npc.dontTakeDamage = false; + //npc.damage = expertMode ? 480 : 300; npc.alpha = 0; npc.localAI[3] = 0f; npc.netUpdate = true; @@ -149,19 +147,26 @@ namespace CalamityMod.NPCs.TheDevourerofGods } else { - npc.alpha -= 12; + npc.alpha -= 6; if (npc.alpha < 0) { npc.alpha = 0; } - if (npc.dontTakeDamage || npc.localAI[3] > 0f) + if (npc.localAI[3] > 0f) { - npc.damage = expertMode ? 480 : 300; - npc.dontTakeDamage = false; + //npc.damage = expertMode ? 480 : 300; npc.localAI[3] = 0f; npc.netUpdate = true; } } + if (npc.alpha <= 0) + { + npc.damage = expertMode ? 480 : 300; + } + else + { + npc.damage = 0; + } if (speedBoost4) { if (!halfLife) diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTail.cs b/NPCs/TheDevourerofGods/DevourerofGodsTail.cs index 416fa39508..411b5d709c 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTail.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTail.cs @@ -40,7 +40,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; - npc.HitSound = SoundID.NPCHit4; + npc.canGhostHeal = false; + npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; npc.boss = true; diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs b/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs index 912385def1..3fd0d302f3 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTail2.cs @@ -17,7 +17,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods public override void SetStaticDefaults() { - DisplayName.SetDefault("Devourer of Thots"); + DisplayName.SetDefault("Cosmic Guardian"); } public override void SetDefaults() @@ -36,7 +36,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; - npc.HitSound = SoundID.NPCHit4; + npc.canGhostHeal = false; + npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; for (int k = 0; k < npc.buffImmune.Length; k++) diff --git a/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs b/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs index 3f1e5f137c..4440de0110 100644 --- a/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs +++ b/NPCs/TheDevourerofGods/DevourerofGodsTailS.cs @@ -30,16 +30,16 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.width = 80; //90 npc.height = 98; //90 npc.defense = 0; - npc.lifeMax = CalamityWorld.revenge ? 625000 : 550000; //720000 672000 + npc.lifeMax = CalamityWorld.revenge ? 937500 : 825000; //720000 672000 if (CalamityWorld.death) { - npc.lifeMax = 1020000; + npc.lifeMax = 1530000; } - if (CalamityWorld.bossRushActive) - { - npc.lifeMax = CalamityWorld.death ? 9000000 : 8000000; - } - npc.takenDamageMultiplier = CalamityWorld.bossRushActive ? 1.5f : 1.25f; + if (CalamityWorld.bossRushActive) + { + npc.lifeMax = CalamityWorld.death ? 5000000 : 4600000; + } + npc.takenDamageMultiplier = CalamityWorld.bossRushActive ? 1.5f : 1.25f; npc.aiStyle = -1; //new aiType = -1; //new animationType = 10; //new @@ -48,7 +48,8 @@ namespace CalamityMod.NPCs.TheDevourerofGods npc.behindTiles = true; npc.noGravity = true; npc.noTileCollide = true; - npc.HitSound = SoundID.NPCHit4; + npc.canGhostHeal = false; + npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; npc.netAlways = true; npc.boss = true; @@ -166,7 +167,6 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (Main.npc[(int)npc.ai[2]].localAI[3] >= 1f) { npc.damage = 0; - npc.dontTakeDamage = true; npc.alpha = Main.npc[(int)npc.ai[2]].alpha; } else if (Main.npc[(int)npc.ai[1]].alpha < 128) @@ -175,7 +175,6 @@ namespace CalamityMod.NPCs.TheDevourerofGods if (npc.alpha <= 0 && invinceTime <= 0) { npc.damage = expertMode ? 288 : 180; - npc.dontTakeDamage = false; npc.alpha = 0; } } @@ -450,7 +449,7 @@ namespace CalamityMod.NPCs.TheDevourerofGods damage = (int)((double)damage * multiplier); if (damageTaken >= 50000.0) { - damage = (int)((double)damage * 0.5); + damage = (int)((double)damage * 0.2); } return true; } diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index a35bc31014..586724a838 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -298,10 +298,26 @@ namespace CalamityMod.NPCs.TownNPCs shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 35, 0, 0); nextSlot++; - /*shop.item[nextSlot].SetDefaults(mod.ItemType("OddMushroom")); //trips you out and boosts all stats - shop.item[nextSlot].shopCustomPrice = Item.buyPrice(1, 0, 0, 0); - nextSlot++;*/ - } + shop.item[nextSlot].SetDefaults(mod.ItemType("BlueCandle")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); + nextSlot++; + + shop.item[nextSlot].SetDefaults(mod.ItemType("PinkCandle")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); + nextSlot++; + + shop.item[nextSlot].SetDefaults(mod.ItemType("PurpleCandle")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); + nextSlot++; + + shop.item[nextSlot].SetDefaults(mod.ItemType("YellowCandle")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0); + nextSlot++; + + shop.item[nextSlot].SetDefaults(mod.ItemType("OddMushroom")); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(3, 0, 0, 0); + nextSlot++; + } public override void TownNPCAttackStrength(ref int damage, ref float knockback) { diff --git a/NPCs/TownNPCs/SEAHOE.cs b/NPCs/TownNPCs/SEAHOE.cs new file mode 100644 index 0000000000..44cc67a110 --- /dev/null +++ b/NPCs/TownNPCs/SEAHOE.cs @@ -0,0 +1,309 @@ +using System.Collections.Generic; +using Terraria; +using Terraria.GameContent.Events; +using Terraria.Localization; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.NPCs.TownNPCs +{ + [AutoloadHead] + public class SEAHOE : ModNPC + { + public bool tips = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sea King"); + + Main.npcFrameCount[npc.type] = 25; + NPCID.Sets.ExtraFramesCount[npc.type] = 5; + NPCID.Sets.AttackFrameCount[npc.type] = 4; + NPCID.Sets.DangerDetectRange[npc.type] = 700; + NPCID.Sets.AttackType[npc.type] = 0; + NPCID.Sets.AttackTime[npc.type] = 90; + NPCID.Sets.AttackAverageChance[npc.type] = 30; + } + + public override void SetDefaults() + { + npc.townNPC = true; + npc.friendly = true; + npc.width = 30; + npc.height = 58; + npc.aiStyle = 7; + npc.damage = 10; + npc.defense = 15; + npc.lifeMax = 250; + npc.HitSound = SoundID.NPCHit1; + npc.DeathSound = SoundID.NPCDeath1; + npc.knockBackResist = 0.5f; + animationType = NPCID.Guide; + } + + public override bool CanTownNPCSpawn(int numTownNPCs, int money) + { + return CalamityWorld.downedCLAM; + } + + public override string TownNPCName() + { + return "Amidias"; + } + + public override void AI() + { + npc.breath += 2; + } + + public override string GetChat() + { + IList dialogue = new List(); + Player player = Main.player[Main.myPlayer]; + + if (npc.homeless) + { + if (Main.rand.Next(2) == 0) + return "Is this... what the world is like now? It seems so much more lifeless than when I saw it when I disappeared."; + else + return "Thank you for your service, my child, but I am afraid I am without a home now."; + } + if (Main.dayTime) + { + dialogue.Add("My homeland may have been dried up, but the memory of my people still exist. I will not let that be in vain."); + dialogue.Add("There is a lot that you do not know about this world, especially regarding the past. Much of it has been lost to history during the many wars that plagued it."); + dialogue.Add("How can I survive on land? Ah, that is a secret. No, actually... I can breathe air like you!"); + dialogue.Add("Why do you ask if it's the males who carry their young? Don't your males carry their young?"); + } + else + { + dialogue.Add("There be monsters lurking in the darkness. Most...unnatural monsters."); + dialogue.Add("Most creatures look up at the moon and admire it. I look up at it and fear it."); + dialogue.Add("Oh, me? I don't sleep. It's part of my nature."); + } + + int partyGirl = NPC.FindFirstNPC(NPCID.PartyGirl); + if (partyGirl != -1) + { + dialogue.Add(Main.npc[partyGirl].GivenName + " asked if my nose could be used as a vuvuzela. What is a vuvuzela?"); + } + + int lilBitch = NPC.FindFirstNPC(NPCID.Angler); + if (lilBitch != -1) + { + dialogue.Add("Meet me at " + Main.npc[lilBitch].GivenName + "'s house at night. We're going to throw him to the Trashers."); + dialogue.Add("Not sure how " + Main.npc[lilBitch].GivenName + " has not been roasted and digested by now, hanging around the sulphuric seas for so long. Peharps it has gotten to his head."); + } + + if (Main.bloodMoon) + { + dialogue.Add("I'm never keen on these nights. They're so violent."); + } + + /* + int yharim = NPC.FindFirstNPC(NPCID.Yharim); + if (yharim != -1) + { + dialogue.Add("Oh, Yharim... did he ever realize what he was doing? He seems so...calm, as if his rage had been satiated."); + }*/ + + if (Main.player[Main.myPlayer].GetModPlayer().sirenPet) + { + dialogue.Add("Ah, nice duds, my child!"); + } + + if ((Main.player[Main.myPlayer].GetModPlayer().sirenBoobs && !Main.player[Main.myPlayer].GetModPlayer().sirenBoobsHide) || + (Main.player[Main.myPlayer].GetModPlayer().sirenBoobsAlt && !Main.player[Main.myPlayer].GetModPlayer().sirenBoobsAltHide)) + { + dialogue.Add("Shouldn't you be wearing a clam bra?"); + } + + if (Main.hardMode) + { + dialogue.Add("The balance between light and darkness is tipping. Stay strong, my child."); + dialogue.Add("Ah, you are starting to realize just how complicated this world is now. You are learning the story of what became of him."); + } + + if (NPC.downedMoonlord) + { + dialogue.Add("I must admit, I am quite shaken up by now. I thought I would never see the elder god again in my life when he was sealed in the moon for the first time..."); + dialogue.Add("Times like this I wish my home was still in one piece instead of evaporated away. I don't blame the witch for anything, it's just... Oh, never mind."); + } + + if (CalamityWorld.downedDoG) + { + dialogue.Add("Do you ever get the feeling that something out there is watching you very carefully? Whatever it is, it's very small and very sly, I think."); + dialogue.Add("Calamitas was wrong, I guess. Defeating Ceaseless Void and the Devourer of Gods did not wipe out the entire universe... but it didn't do absolutely nothing."); + } + + /*if (CalamityWorld.downedYharon) + { + dialogue.Add("I'm worried for Lord Yharim. He was not in a particular good mood once we found out you defeated his close friend."); + }*/ + + return dialogue[Main.rand.Next(dialogue.Count)]; + } + + public string Lore() + { + IList dialogue = new List(); + string worldEvil = WorldGen.crimson ? "Crimson" : "Corruption"; + + if (CalamityWorld.downedYharon) + { + dialogue.Add("Defeating the Jungle dragon has allowed you a choice. You can face off against Supreme Calamitas, Draedon, or Lord Yharim himself. Choose wisely."); + dialogue.Add("Pockets of ore have appeared once more in the land. These will allow you to create the most powerful weaponry and armor imagined!"); + dialogue.Add("Supreme Calamitas is no mere witch. Myth has it that Calamitas rejected her old name in the face of her tragedy and to say her old name is considered a death sentence."); + dialogue.Add("Lord Yharim is very strong. He may not even fight you at his fullest power, which is fortunate for you. His attacks may just kill you in one hit, so be careful."); + dialogue.Add("Draedon's style of confrontation is very... alien and hands off. You may be more likely to fight any one of his mechs before taking him down."); + } + else if (CalamityWorld.downedDoG) + { + dialogue.Add("The Devourer of Gods cosmic armor is unique in that it is capable of not only protecting his body from tearing itself apart when ripping pockets of space and time, but also controlling his own powers."); + dialogue.Add("With the cosmic bars you have, you can create and combine your weapons into extremely powerful and useful items."); + dialogue.Add("The Devourer of Gods is very, very powerful. However, he is young, foolhardy, and very lazy. Perhaps if he's allowed to grow up some more and train his powers, he would be a force to be reckoned with."); + dialogue.Add("Your adventure focuses to the jungle, it seems. Clearing out the infestation of the Bumblebirbs that have cropped up is an excellent idea."); + dialogue.Add("Ah, the dragon Yharon is fickle. You may find that he may refuse to use his full power unless you are strong enough to unleash the power of the Dark Sun."); + } + else if (CalamityWorld.downedProvidence) + { + dialogue.Add("The Rune of Kos is an ancient Rune used to awaken people from a crystalline prison. When you activate the Rune's gemtech code, you run the risk of attracting the attention of the Sentinels..."); + dialogue.Add("There used to be five Sentinels of the Devourer that patrolled the lands looking for the profaned goddess. You only have to worry about three of them now, in certain locations."); + dialogue.Add("Ironic, is it not, that Statis was defeated by the very Sentinel his people were inspired from. Then again, Braelor's death was just as ironic against the claws of Draedon's machines."); + dialogue.Add("The Dungeon seems to be active now. You may hear the faint whisperings of angry spirits who have not left to the Void.. I would recommend looking there before taking on the Sentinels."); + } + else if (NPC.downedMoonlord) + { + dialogue.Add("The rain by now has turned to acid rain. Your skin will be burning if you stay in it too long."); + dialogue.Add("Profaned creatures now lurk in the Hallow and in Hell. You defeat enough of them, you'll be able to catch the attention of the Profaned Guardians, and more."); + dialogue.Add("The Profaned Guardians will do anything to protect their guardian. Makes sense they die for her, since they can be revived just as quickly."); + dialogue.Add("Touching Providence's offerings is usually a death wish. Shame that Yharim didn't think to just mess with her things to get her out of hiding."); + dialogue.Add("Providence is as much the sun goddess as much as the Moon Lord is the moon god. They are two sides of each coin, choosing to remain neutral amongst our petty squabbles."); + dialogue.Add("The stories have it that when Providence faced and defeated Yharim and his forces, she lost a lot of energy and reverted to a more skeletal form. She's merely a fraction of the power as she was before"); + dialogue.Add("If you pay attention to the Profaned Guardians and Providence, you'll notice they have gems in their bodies. That 'gemtech' is actually their source of power and self awareness."); + } + else if (NPC.downedGolemBoss) + { + dialogue.Add("The men at the front of the dungeon are performing a dangerous ritual to release the Moon Lord from his prison. You must defeat them!"); + dialogue.Add("Here's a little bit of gossip for you; Supposedly that Lunatic Cultist was formerly the apprentice of Yharim's own brother."); + dialogue.Add("The Abyss is become far more active than it has been before. You might be able to mine out some of the abyss by now."); + dialogue.Add("The plague was just one of the many experiments authorized by Yharim to raze towns to the ground. This is probably one of the few he shelved for being too terrible."); + } + else if (CalamityWorld.downedCryogen) + { + dialogue.Add("You will find more ores will be unlocked as the magic sealing them away is broken. Some of them may require more than just the ore itself to create."); + dialogue.Add("I would recommend saving some of your old items. You never know if you can engineer them into stronger weapons in the future."); + dialogue.Add("Draedon's Mechs have been rampaging the landscape for ages before they were sealed. Defeating at least one of them opens up the possibility to fight other creatures that lurk in the night."); + dialogue.Add("If you take an idol down to the Brimstone Crags, you might be able to see just what is lurking in the shadows."); + dialogue.Add("The Brimstone Crags... Yharim never liked that place, and did everything he could to raze it to the ground. It might explain a few things about him."); + dialogue.Add("The witch just might offer you an opportunity for a challenge if you are willing to during the night."); + dialogue.Add("Defeating the mechanical creatures that lurk in the night will unveil a path in the jungle. There you will be able to release more of the ores sealed by magic."); + dialogue.Add("Be careful when defeating Plantera and Golem. You might accidentally unleash a new threat in the jungle that needs to be quelled."); + dialogue.Add("The Golem is the protector of the Lihzhard Temple, ensuring that the Sun God's treasures are protected. It's not the only Golem, either."); + } + else if (Main.hardMode) + { + dialogue.Add("Have you heard of the story of Archmage Permafrost? Rumor has it he's been locked away in his ice castle by Lord Yharim. I wonder if you can free him after castle Cryogen is put on ice...?"); + } + else + { + dialogue.Add("There are rumor of ores that are in latency. When you defeat certain bosses, you are able to release the magic locked up by them to mine and use."); + dialogue.Add("Been to the Brimstone Crags? I wouldn't recommend going there unless you are strong enough to. There's valuable loot if you have a shadow key, though."); + dialogue.Add("Ah yes, the Abyss. It is full of strong enemies that could kill you in a heartbeat. I would explore the dungeon first before you go down there."); + dialogue.Add("The Sulphurous Seas are dangerous, but if you can brave them, you will find the most interesting treasures and secrets down in the Abyss."); + dialogue.Add("The Sulphurous Seas are a result of a combination of natural volcanic soils leeching into the waters, along with severe pollution in the heydays of Draedon's experiments."); + dialogue.Add("Be careful what you attack in the " + worldEvil + ". You might just unveil a greater threat than what was there before."); + dialogue.Add("Scattered across the lands are shrines dedicated to the gods. You can take whatever is in them, but a few items you may not be able to use until much, much later."); + dialogue.Add("Have you heard the story of Statis? Rumor has it that their Gods are still alive, and it might take releasing the dungeon of its shackles to meet them."); + dialogue.Add("The dungeon is a dark place. None of us know what it is for, however the ancient Eidolist Cultists used it for worship before Lord Yharim took it over."); + dialogue.Add("The " + worldEvil + " used to be easily manageable and controlled by nature. However, the recent wars and pollution have tipped the balance out of favor."); + } + + return dialogue[Main.rand.Next(dialogue.Count)]; + + } + + public override void SetChatButtons(ref string button, ref string button2) + { + button = Language.GetTextValue("LegacyInterface.28"); + button2 = "Help"; + } + + public override void OnChatButtonClicked(bool firstButton, ref bool shop) + { + if (firstButton) + { + shop = true; + tips = false; + } + else + { + shop = false; + tips = true; + Main.npcChatText = Lore(); + Player player = Main.player[Main.myPlayer]; + player.AddBuff(mod.BuffType("AmidiasBlessing"), 36000); + } + } + + public override void SetupShop(Chest shop, ref int nextSlot) + { + shop.item[nextSlot].SetDefaults(mod.ItemType("Shellshooter")); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("SnapClam")); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("SandDollar")); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("Waywasher")); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("CoralCannon")); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("UrchinFlail")); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("AmidiasTrident")); + nextSlot++; + shop.item[nextSlot].SetDefaults(mod.ItemType("MagicalConch")); + nextSlot++; + if (NPC.downedFishron) + { + shop.item[nextSlot].SetDefaults(ItemID.TruffleWorm); + shop.item[nextSlot].shopCustomPrice = Item.buyPrice(0, 40, 0, 0); + nextSlot++; + } + } + + public override void HitEffect(int hitDirection, double damage) + { + if (npc.life <= 0) + { + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Amidias/Amidias"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Amidias/Amidias2"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Amidias/Amidias3"), 1f); + Gore.NewGore(npc.position, npc.velocity, mod.GetGoreSlot("Gores/Amidias/Amidias4"), 1f); + } + } + + public override void TownNPCAttackStrength(ref int damage, ref float knockback) + { + damage = 30; + knockback = 2f; + } + + public override void TownNPCAttackCooldown(ref int cooldown, ref int randExtraCooldown) + { + cooldown = 5; + } + + public override void TownNPCAttackProj(ref int projType, ref int attackDelay) + { + projType = mod.ProjectileType("SnapClamProj"); + attackDelay = 1; + } + + public override void TownNPCAttackProjSpeed(ref float multiplier, ref float gravityCorrection, ref float randomOffset) + { + multiplier = 16f; + gravityCorrection = 10f; + } + } +} \ No newline at end of file diff --git a/NPCs/TownNPCs/SEAHOE.png b/NPCs/TownNPCs/SEAHOE.png new file mode 100644 index 0000000000000000000000000000000000000000..d296072b3971665bb191cfd1d207cb0e38e41795 GIT binary patch literal 14235 zcma*OcRba9_&0uzJ+dN_V^r#pJ&I#w6jEko96KYjony~~Y}qT0)hWq{Y%-1z$2cf^ zM8Z+_-u&LDPv86Z{pWr>?tjv8PR{9dy{_vyuBRv+Ej2otD>NVwh)(^%{l~ypMG%O* zh>8OEn|9puY!HYCq<&xNskhl`wqLLQaO(NyH`Ig1*=3snF&ApmiFR7I$6{60nh)mt z?%y!8WRBugIcuV1Y*FJB46=S4-u4N~C@MR-|t65Oeb z^6V0g9u#lWF2l?V2+N-hkI}Zd+i2vT?>TH8xkmUrV&<3Iv`;9x{`JP0*ZsME1!oHq zjqIK2b9wZE@qW|eo~B_$;wLUi82BJ~eSEJCEv)S{#@|wFe)I_Li6>3E1Y)?me0pd( zUT>Zy_^3vDDqpzgmv3q(%96sCzoigPbVct zdl2~DWJEOyeS_^mqGvU!394j8!GF;G)6_SKwX_9FhxMd|w0^U+g^n^g;U4PvT}x6q za9XbWIu!QN<6;bd!8LwAjr@QzuqH(myuzk^^}*n))GH<@)=E; zr(bx?ndidrKnoQ3`gQdQt}(1us~7HV=iGc}EY+z~$vDkCOSbu=uY%WLC>KtkYDQRb zBvfLd3J!Y}SHC!dUVvl!XMD}{HPJrxg4|b3Z}cq384LADbvn`CQ7-%xy~5`2=B-#k zqNrCa5JT>JA{ErfK0iOIkUEo<<}cV2=HiHVDx16>BG2Ok9@~Ocx4`^U8|gk~j#f&y zFk|O1E!?@42ik$2Z%(+_ee}|DH8PVX%{*2aSHQxG`m}iwltQ)n`DOtvThl+yUYmLP z;X~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~VpkbDOOb>^2gn9HIv%pLu_dKE7qSZq#+`u}ue4fTh)UfEKjO@HvV1DK6Rl)z`3 zPI;wmMf6WVJL;7|;59BL*=5Joc{^Kj#n#2&zcpUHfX`QJd{?xVmNL|RUMEI;h7VA^ zdMHECW0sbmU=WAv6sPuy)*0PtTBQC62R7vAw;>&oGkwAEsmsabGO)_!e5XOCNYkwIAX$md(r1!A2SFK! zrc^PZ@W3EQ`UPof6Ja>m!j0Je^0I6fVEv+Kzop~QG?R*0>+Zus>$ z94vT5GkL!JmARcw62ZdSDSLnX1;Xa|=A-xv^&nOJAd$Palf$|tlyiW%mVUPQRtk%3 zjzfE8hnxR!Sx2jw;=L!Xz!76fpsD_+V3Y&WtbOgU)G;_Xzsuh3_~23*WHOMM|7S>jCDuwaEn*SDdOPk)h*hgd{x zk{1nJ9=MFCsw82#p~fCNkT5~qb!(w6ByL0wXe6(^e$@k`(P)++QFIen7gdmMhUEX; zE#y>;`*K~m^8&}cI0UQAnY*e3`K(=OBBosK&D|dqV9nqww)u70j7Rhq@a8>0SX1Q% zC!6d&^D%tdwpiX|*MicQ-DKn62q0PIZ1ZQEy#~w?R#-Q6YH5uxyvIT4NwZm1N|v-+ z1>pArL~VlOoY10!*db2md|;vW8wM~Ut+?l6twoD6F?gerZ*#;V; x-}Kt4%vUnQ1>+i|IE#!W`XPi5#;9`!>B7Bf(codgVF!WKRkZGZRJI8D{{X?fB<}zK literal 0 HcmV?d00001 diff --git a/NPCs/TownNPCs/SEAHOE_Head.png b/NPCs/TownNPCs/SEAHOE_Head.png new file mode 100644 index 0000000000000000000000000000000000000000..3f675c54f3d3c5a38719ef12a8813bd76369ab59 GIT binary patch literal 403 zcmeAS@N?(olHy`uVBq!ia0vp^GC(ZB!3HE>&Y9Z;q!^2X+?^QKos)S9a~60+7BevL9R^{>Ub>!0$wF6Gu-uw!4uvPH-D`@cN2?RuB*BEN*j z2G)k7D!Z=DJ=MaYcX{KZee;(X@%V8a`J~?TUsP_lGV9S8l^Q3_wtl6cnG+bf*gmgr zO0ttI&}%*OKkfuK$MtmX$QM@ZH 255) - { - npc.alpha = 255; - } - } - if (npc.timeLeft > 55) - { - npc.timeLeft = 55; - } - if (npc.timeLeft < 5) - { - string key = "Mods.CalamityMod.DargonBossText3"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - npc.localAI[2] = 2f; - npc.boss = false; - npc.life = 0; - if (dropLoot) - { - npc.NPCLoot(); - } - npc.active = false; - npc.netUpdate = true; - } - return; - } - if (!CalamityWorld.downedBuffedMothron && !CalamityWorld.bossRushActive) - { - phaseOneLoot = true; - npc.DeathSound = null; - npc.dontTakeDamage = true; - npc.chaseable = false; - npc.velocity.Y = npc.velocity.Y - 0.4f; - if (npc.alpha < 255) - { - npc.alpha += 5; - if (npc.alpha > 255) - { - npc.alpha = 255; - } - } - if (npc.timeLeft > 55) - { - npc.timeLeft = 55; - } - if (npc.timeLeft < 5) - { - string key = "Mods.CalamityMod.DargonBossText2"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - npc.localAI[2] = 0f; - npc.boss = false; - npc.life = 0; - if (dropLoot) - { - npc.NPCLoot(); - } - npc.active = false; - npc.netUpdate = true; - } - return; - } - phaseOneLoot = false; - Yharon_AI2(); - return; - } - bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); + #region StartupOrSwitchToAI2 + dropLoot = (double)npc.life <= (double)npc.lifeMax * 0.1; + if (Main.raining) + { + Main.raining = false; + if (Main.netMode == 2) + { + NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } + } + if (npc.localAI[2] == 1f) + { + if ((!CalamityWorld.downedProvidence || !CalamityWorld.downedDoG) && !CalamityWorld.bossRushActive) + { + phaseOneLoot = true; + npc.DeathSound = null; + npc.dontTakeDamage = true; + npc.chaseable = false; + npc.velocity.Y = npc.velocity.Y - 0.4f; + if (npc.alpha < 255) + { + npc.alpha += 5; + if (npc.alpha > 255) + { + npc.alpha = 255; + } + } + if (npc.timeLeft > 55) + { + npc.timeLeft = 55; + } + if (npc.timeLeft < 5) + { + string key = "Mods.CalamityMod.DargonBossText3"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + npc.localAI[2] = 2f; + npc.boss = false; + npc.life = 0; + if (dropLoot) + { + npc.NPCLoot(); + } + npc.active = false; + npc.netUpdate = true; + } + return; + } + if (!CalamityWorld.downedBuffedMothron && !CalamityWorld.bossRushActive) + { + phaseOneLoot = true; + npc.DeathSound = null; + npc.dontTakeDamage = true; + npc.chaseable = false; + npc.velocity.Y = npc.velocity.Y - 0.4f; + if (npc.alpha < 255) + { + npc.alpha += 5; + if (npc.alpha > 255) + { + npc.alpha = 255; + } + } + if (npc.timeLeft > 55) + { + npc.timeLeft = 55; + } + if (npc.timeLeft < 5) + { + string key = "Mods.CalamityMod.DargonBossText2"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + npc.localAI[2] = 0f; + npc.boss = false; + npc.life = 0; + if (dropLoot) + { + npc.NPCLoot(); + } + npc.active = false; + npc.netUpdate = true; + } + return; + } + phaseOneLoot = false; + Yharon_AI2(); + return; + } + bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); bool expertMode = Main.expertMode; bool phase2Check = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.85 : 0.7); //Check for phase 2. In phase 1 for 15% or 30% bool phase3Check = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.6 : 0.4); //Check for phase 3. In phase 2 for 25% or 30% bool phase4Check = (double)npc.life <= (double)npc.lifeMax * (revenge ? 0.25 : 0.2); //Check for phase 4. In phase 3 for 35% or 20% - if (CalamityWorld.death && !CalamityWorld.bossRushActive) - { - phase2Check = (double)npc.life <= (double)npc.lifeMax * 0.9; //Check for phase 2. In phase 1 for 10% - phase3Check = (double)npc.life <= (double)npc.lifeMax * 0.8; //Check for phase 3. In phase 2 for 10% - phase4Check = (double)npc.life <= (double)npc.lifeMax * 0.3; //Check for phase 4. In phase 3 for 50% - } - bool phase5Check = (double)npc.life <= (double)npc.lifeMax * 0.1; //Check for phase 5. In phase 4 for 15% or 10% or 20% - bool phase2Change = npc.ai[0] > 5f; //Phase 2 stuff - bool phase3Change = npc.ai[0] > 12f; //Phase 3 stuff - bool phase4Change = npc.ai[0] > 20f; //Phase 4 stuff - int flareCount = 3; - bool isCharging = npc.ai[3] < 20f; //10 - if (npc.localAI[1] == 0f) + if (CalamityWorld.death && !CalamityWorld.bossRushActive) + { + phase2Check = (double)npc.life <= (double)npc.lifeMax * 0.9; //Check for phase 2. In phase 1 for 10% + phase3Check = (double)npc.life <= (double)npc.lifeMax * 0.8; //Check for phase 3. In phase 2 for 10% + phase4Check = (double)npc.life <= (double)npc.lifeMax * 0.3; //Check for phase 4. In phase 3 for 50% + } + bool phase5Check = (double)npc.life <= (double)npc.lifeMax * 0.1; //Check for phase 5. In phase 4 for 15% or 10% or 20% + bool phase2Change = npc.ai[0] > 5f; //Phase 2 stuff + bool phase3Change = npc.ai[0] > 12f; //Phase 3 stuff + bool phase4Change = npc.ai[0] > 20f; //Phase 4 stuff + int flareCount = 3; + bool isCharging = npc.ai[3] < 20f; //10 + if (npc.localAI[1] == 0f) { npc.localAI[1] = 1f; - Vector2 vectorPlayer = new Vector2(Main.player[npc.target].position.X, Main.player[npc.target].position.Y); + Vector2 vectorPlayer = new Vector2(Main.player[npc.target].position.X, Main.player[npc.target].position.Y); safeBox.X = (int)(vectorPlayer.X - (revenge ? 3000f : 3500f)); - safeBox.Y = (int)(vectorPlayer.Y - (revenge ? 6000f : 7000f)); + safeBox.Y = (int)(vectorPlayer.Y - (revenge ? 9000f : 10500f)); safeBox.Width = revenge ? 6000 : 7000; - safeBox.Height = revenge ? 12000 : 14000; + safeBox.Height = revenge ? 18000 : 21000; if (Main.netMode != 1) { Projectile.NewProjectile(Main.player[npc.target].position.X + (revenge ? 3000f : 3500f), Main.player[npc.target].position.Y + 100f, 0f, 0f, mod.ProjectileType("SkyFlareRevenge"), 0, 0f, Main.myPlayer, 0f, 0f); Projectile.NewProjectile(Main.player[npc.target].position.X - (revenge ? 3000f : 3500f), Main.player[npc.target].position.Y + 100f, 0f, 0f, mod.ProjectileType("SkyFlareRevenge"), 0, 0f, Main.myPlayer, 0f, 0f); } } - #endregion - #region SpeedOrDamageChecks - float teleportLocation = 0f; + #endregion + #region SpeedOrDamageChecks + float teleportLocation = 0f; int teleChoice = Main.rand.Next(2); if (teleChoice == 0) { @@ -232,12 +234,12 @@ namespace CalamityMod.NPCs.Yharon else if (phase3Change) { npc.defense = 160; - } + } else if (phase2Change) { npc.defense = 180; - } - else + } + else { npc.defense = 200; } @@ -255,46 +257,47 @@ namespace CalamityMod.NPCs.Yharon npcVelocity = 0.9f; scaleFactor = 13f; aiChangeRate = 25; - } + } else if (phase2Change && isCharging) { npcVelocity = (expertMode ? 0.8f : 0.78f); scaleFactor = (expertMode ? 12.2f : 12f); aiChangeRate = (expertMode ? 36 : 38); } - else if (isCharging && !phase2Change && !phase3Change && !phase4Change) + else if (isCharging && !phase2Change && !phase3Change && !phase4Change) { aiChangeRate = 25; } int chargeTime = expertMode ? 38 : 40; - int chargeTime2 = expertMode ? 34 : 36; + int chargeTime2 = expertMode ? 34 : 36; float chargeSpeed = expertMode ? 22f : 20.5f; //17 and 16 - float chargeSpeed2 = expertMode ? 37f : 34f; + float chargeSpeed2 = expertMode ? 37f : 34f; if (phase4Change || npc.GetGlobalNPC(mod).enraged) //phase 4 { chargeTime = 28; chargeSpeed = 31f; //27 - } + } else if (phase3Change) //phase 3 { chargeTime = 32; - chargeTime2 = 27; + chargeTime2 = 27; chargeSpeed = 25f; //27 - chargeSpeed2 = 41f; + chargeSpeed2 = 41f; } else if (isCharging && phase2Change) //phase 2 { chargeTime = expertMode ? 35 : 37; - chargeTime2 = expertMode ? 31 : 33; + chargeTime2 = expertMode ? 31 : 33; if (expertMode) { chargeSpeed = 24f; //21 - chargeSpeed2 = 39f; + chargeSpeed2 = 39f; } } - #endregion - #region VariablesForChargingEtc - int num1454 = 80; + #endregion + #region VariablesForChargingEtc + float xPos = (npc.direction == 1 ? 25f : -25f); + int num1454 = 80; int num1455 = 4; float num1456 = 0.3f; float scaleFactor11 = 5f; @@ -307,11 +310,11 @@ namespace CalamityMod.NPCs.Yharon float scaleFactor13 = 20f; float num1463 = 6.28318548f / (float)(num1461 / 2); int num1464 = 75; - #endregion - #region DespawnOrEnrage - Vector2 vectorCenter = npc.Center; + #endregion + #region DespawnOrEnrage + Vector2 vectorCenter = npc.Center; Player player = Main.player[npc.target]; - if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) + if (npc.target < 0 || npc.target == 255 || player.dead || !player.active) { npc.TargetClosest(true); player = Main.player[npc.target]; @@ -324,11 +327,11 @@ namespace CalamityMod.NPCs.Yharon { npc.timeLeft = 150; } - if (npc.ai[0] > 12f) - { - npc.ai[0] = 13f; - } - else if (npc.ai[0] > 5f) + if (npc.ai[0] > 12f) + { + npc.ai[0] = 13f; + } + else if (npc.ai[0] > 5f) { npc.ai[0] = 6f; } @@ -351,17 +354,17 @@ namespace CalamityMod.NPCs.Yharon } else { - npc.damage = expertMode ? 528 : 330; - protectionBoost = false; + npc.damage = expertMode ? 528 : 330; + protectionBoost = false; } - #endregion - #region Rotation - if (npc.localAI[0] == 0f) + #endregion + #region Rotation + if (npc.localAI[0] == 0f) { npc.localAI[0] = 1f; npc.alpha = 255; npc.rotation = 0f; - if (Main.netMode != 1) + if (Main.netMode != 1) { npc.ai[0] = -1f; npc.netUpdate = true; @@ -372,11 +375,11 @@ namespace CalamityMod.NPCs.Yharon { npcRotation += 3.14159274f; } - if (npcRotation < 0f) + if (npcRotation < 0f) { npcRotation += 6.28318548f; } - if (npcRotation > 6.28318548f) + if (npcRotation > 6.28318548f) { npcRotation -= 6.28318548f; } @@ -404,11 +407,11 @@ namespace CalamityMod.NPCs.Yharon { npcRotation = 0f; } - if (npc.ai[0] == 20f) //tornado - { - npcRotation = 0f; - } - float npcRotationSpeed = 0.04f; + if (npc.ai[0] == 20f) //tornado + { + npcRotation = 0f; + } + float npcRotationSpeed = 0.04f; if (npc.ai[0] == 1f || npc.ai[0] == 5f || npc.ai[0] == 7f || npc.ai[0] == 11f || npc.ai[0] == 14f || npc.ai[0] == 18f) //charge { npcRotationSpeed = 0f; @@ -431,64 +434,64 @@ namespace CalamityMod.NPCs.Yharon } if (npc.rotation < npcRotation) { - if ((double)(npcRotation - npc.rotation) > 3.1415926535897931) + if ((double)(npcRotation - npc.rotation) > 3.1415926535897931) { npc.rotation -= npcRotationSpeed; - } + } else { npc.rotation += npcRotationSpeed; } } - if (npc.rotation > npcRotation) + if (npc.rotation > npcRotation) { - if ((double)(npc.rotation - npcRotation) > 3.1415926535897931) + if ((double)(npc.rotation - npcRotation) > 3.1415926535897931) { npc.rotation += npcRotationSpeed; - } + } else { npc.rotation -= npcRotationSpeed; } } - if (npc.rotation > npcRotation - npcRotationSpeed && npc.rotation < npcRotation + npcRotationSpeed) + if (npc.rotation > npcRotation - npcRotationSpeed && npc.rotation < npcRotation + npcRotationSpeed) { npc.rotation = npcRotation; } - if (npc.rotation < 0f) + if (npc.rotation < 0f) { npc.rotation += 6.28318548f; } - if (npc.rotation > 6.28318548f) + if (npc.rotation > 6.28318548f) { npc.rotation -= 6.28318548f; } - if (npc.rotation > npcRotation - npcRotationSpeed && npc.rotation < npcRotation + npcRotationSpeed) + if (npc.rotation > npcRotation - npcRotationSpeed && npc.rotation < npcRotation + npcRotationSpeed) { npc.rotation = npcRotation; } - #endregion - #region AlphaAndInitialSpawnEffects - if (npc.ai[0] != -1f && npc.ai[0] < 9f) - { - bool colliding = Collision.SolidCollision(npc.position, npc.width, npc.height); - if (colliding) - { - npc.alpha += 15; - } - else - { - npc.alpha -= 15; - } - if (npc.alpha < 0) - { - npc.alpha = 0; - } - if (npc.alpha > 150) - { - npc.alpha = 150; - } - } + #endregion + #region AlphaAndInitialSpawnEffects + if (npc.ai[0] != -1f && npc.ai[0] < 9f) + { + bool colliding = Collision.SolidCollision(npc.position, npc.width, npc.height); + if (colliding) + { + npc.alpha += 15; + } + else + { + npc.alpha -= 15; + } + if (npc.alpha < 0) + { + npc.alpha = 0; + } + if (npc.alpha > 150) + { + npc.alpha = 150; + } + } if (npc.ai[0] == -1f) //initial spawn effects { npc.dontTakeDamage = true; @@ -500,28 +503,28 @@ namespace CalamityMod.NPCs.Yharon npc.direction = num1467; npc.spriteDirection = npc.direction; } - if (npc.ai[2] > 20f) + if (npc.ai[2] > 20f) { npc.velocity.Y = -2f; npc.alpha -= 5; bool colliding = Collision.SolidCollision(npc.position, npc.width, npc.height); - if (colliding) + if (colliding) { npc.alpha += 15; } - if (npc.alpha < 0) + if (npc.alpha < 0) { npc.alpha = 0; } - if (npc.alpha > 150) + if (npc.alpha > 150) { npc.alpha = 150; } } - if (npc.ai[2] == (float)(num1457 - 30)) + if (npc.ai[2] == (float)(num1457 - 30)) { int num1468 = 72; - for (int num1469 = 0; num1469 < num1468; num1469++) + for (int num1469 = 0; num1469 < num1468; num1469++) { Vector2 vector169 = Vector2.Normalize(npc.velocity) * new Vector2((float)npc.width / 2f, (float)npc.height) * 0.75f * 0.5f; vector169 = vector169.RotatedBy((double)((float)(num1469 - (num1468 / 2 - 1)) * 6.28318548f / (float)num1468), default(Vector2)) + npc.Center; @@ -531,10 +534,10 @@ namespace CalamityMod.NPCs.Yharon Main.dust[num1470].noLight = true; Main.dust[num1470].velocity = Vector2.Normalize(value16) * 3f; } - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1464) + if (npc.ai[2] >= (float)num1464) { npc.ai[0] = 0f; npc.ai[1] = 0f; @@ -543,46 +546,46 @@ namespace CalamityMod.NPCs.Yharon return; } } - #endregion - #region Phase1 - else if (npc.ai[0] == 0f && !player.dead) + #endregion + #region Phase1 + else if (npc.ai[0] == 0f && !player.dead) { npc.dontTakeDamage = false; npc.chaseable = true; - if (npc.ai[1] == 0f) + if (npc.ai[1] == 0f) { npc.ai[1] = (float)(300 * Math.Sign((vectorCenter - player.Center).X)); } Vector2 value17 = player.Center + new Vector2(npc.ai[1], -200f) - vectorCenter; Vector2 vector170 = Vector2.Normalize(value17 - npc.velocity) * scaleFactor; - if (npc.velocity.X < vector170.X) + if (npc.velocity.X < vector170.X) { npc.velocity.X = npc.velocity.X + npcVelocity; - if (npc.velocity.X < 0f && vector170.X > 0f) + if (npc.velocity.X < 0f && vector170.X > 0f) { npc.velocity.X = npc.velocity.X + npcVelocity; } - } - else if (npc.velocity.X > vector170.X) + } + else if (npc.velocity.X > vector170.X) { npc.velocity.X = npc.velocity.X - npcVelocity; - if (npc.velocity.X > 0f && vector170.X < 0f) + if (npc.velocity.X > 0f && vector170.X < 0f) { npc.velocity.X = npc.velocity.X - npcVelocity; } } - if (npc.velocity.Y < vector170.Y) + if (npc.velocity.Y < vector170.Y) { npc.velocity.Y = npc.velocity.Y + npcVelocity; - if (npc.velocity.Y < 0f && vector170.Y > 0f) + if (npc.velocity.Y < 0f && vector170.Y > 0f) { npc.velocity.Y = npc.velocity.Y + npcVelocity; } - } - else if (npc.velocity.Y > vector170.Y) + } + else if (npc.velocity.Y > vector170.Y) { npc.velocity.Y = npc.velocity.Y - npcVelocity; - if (npc.velocity.Y > 0f && vector170.Y < 0f) + if (npc.velocity.Y > 0f && vector170.Y < 0f) { npc.velocity.Y = npc.velocity.Y - npcVelocity; } @@ -595,7 +598,7 @@ namespace CalamityMod.NPCs.Yharon npc.rotation = 3.14159274f; } npc.direction = num1471; - if (num1471 != 0) + if (num1471 != 0) { npc.direction = num1471; npc.rotation = 0f; @@ -603,7 +606,7 @@ namespace CalamityMod.NPCs.Yharon } } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)aiChangeRate) + if (npc.ai[2] >= (float)aiChangeRate) { int aiState = 0; switch ((int)npc.ai[3]) //0 2 4 6 1 3 5 7 repeat @@ -613,10 +616,10 @@ namespace CalamityMod.NPCs.Yharon case 2: case 3: case 4: - aiState = 1; //normal charges - break; + aiState = 1; //normal charges + break; case 5: - aiState = 5; //fast charge + aiState = 5; //fast charge break; case 6: npc.ai[3] = 1f; @@ -631,7 +634,7 @@ namespace CalamityMod.NPCs.Yharon { aiState = 4; } - if (aiState == 1) + if (aiState == 1) { npc.ai[0] = 1f; npc.ai[1] = 0f; @@ -647,46 +650,46 @@ namespace CalamityMod.NPCs.Yharon } npc.spriteDirection = -npc.direction; } - } - else if (aiState == 2) + } + else if (aiState == 2) { npc.ai[0] = 2f; npc.ai[1] = 0f; npc.ai[2] = 0f; - } - else if (aiState == 3) + } + else if (aiState == 3) { npc.ai[0] = 3f; npc.ai[1] = 0f; npc.ai[2] = 0f; - } - else if (aiState == 4) + } + else if (aiState == 4) { npc.ai[0] = 4f; npc.ai[1] = 0f; npc.ai[2] = 0f; } - else if (aiState == 5) - { - npc.ai[0] = 5f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed2; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1471 != 0) - { - npc.direction = num1471; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - } + else if (aiState == 5) + { + npc.ai[0] = 5f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed2; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num1471 != 0) + { + npc.direction = num1471; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + } npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 1f) //charge attack { int num1473 = 7; @@ -702,7 +705,7 @@ namespace CalamityMod.NPCs.Yharon Main.dust[num1475].velocity -= npc.velocity; } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)chargeTime) + if (npc.ai[2] >= (float)chargeTime) { npc.ai[0] = 0f; npc.ai[1] = 0f; @@ -711,55 +714,55 @@ namespace CalamityMod.NPCs.Yharon npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 2f) //fireball attack { - if (npc.ai[1] == 0f) + if (npc.ai[1] == 0f) { npc.ai[1] = (float)(300 * Math.Sign((vectorCenter - player.Center).X)); } Vector2 value19 = player.Center + new Vector2(npc.ai[1], -200f) - vectorCenter; Vector2 vector172 = Vector2.Normalize(value19 - npc.velocity) * scaleFactor11; - if (npc.velocity.X < vector172.X) + if (npc.velocity.X < vector172.X) { npc.velocity.X = npc.velocity.X + num1456; - if (npc.velocity.X < 0f && vector172.X > 0f) + if (npc.velocity.X < 0f && vector172.X > 0f) { npc.velocity.X = npc.velocity.X + num1456; } - } - else if (npc.velocity.X > vector172.X) + } + else if (npc.velocity.X > vector172.X) { npc.velocity.X = npc.velocity.X - num1456; - if (npc.velocity.X > 0f && vector172.X < 0f) + if (npc.velocity.X > 0f && vector172.X < 0f) { npc.velocity.X = npc.velocity.X - num1456; } } - if (npc.velocity.Y < vector172.Y) + if (npc.velocity.Y < vector172.Y) { npc.velocity.Y = npc.velocity.Y + num1456; - if (npc.velocity.Y < 0f && vector172.Y > 0f) + if (npc.velocity.Y < 0f && vector172.Y > 0f) { npc.velocity.Y = npc.velocity.Y + num1456; } - } - else if (npc.velocity.Y > vector172.Y) + } + else if (npc.velocity.Y > vector172.Y) { npc.velocity.Y = npc.velocity.Y - num1456; - if (npc.velocity.Y > 0f && vector172.Y < 0f) + if (npc.velocity.Y > 0f && vector172.Y < 0f) { npc.velocity.Y = npc.velocity.Y - num1456; } } - if (npc.ai[2] == 0f) + if (npc.ai[2] == 0f) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } if (npc.ai[2] % (float)num1455 == 0f) //fire flare bombs from mouth { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - if (Main.netMode != 1) + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + if (Main.netMode != 1) { if (NPC.CountNPCS(mod.NPCType("DetonatingFlare")) < flareCount) { @@ -768,7 +771,7 @@ namespace CalamityMod.NPCs.Yharon } int damage = expertMode ? 75 : 90; //700 Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - Projectile.NewProjectile((int)vector173.X, (int)vector173.Y - 70, 0f, 0f, mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile((int)vector173.X + xPos, (int)vector173.Y - 15, 0f, 0f, mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); } } int num1476 = Math.Sign(player.Center.X - vectorCenter.X); @@ -776,17 +779,17 @@ namespace CalamityMod.NPCs.Yharon if (num1476 != 0) { npc.direction = num1476; - if (npc.spriteDirection != -npc.direction) + if (npc.spriteDirection != -npc.direction) { npc.rotation += 6.28318548f; if (npc.rotation > 6.28318548f) { npc.rotation = 0f; - if(dir2.X < 0) - { + if (dir2.X < 0) + { npc.direction = -1; } - else + else { npc.direction = 1; } @@ -795,7 +798,7 @@ namespace CalamityMod.NPCs.Yharon npc.spriteDirection = -npc.direction; } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1454) + if (npc.ai[2] >= (float)num1454) { npc.ai[0] = 0f; npc.ai[1] = 0f; @@ -803,22 +806,22 @@ namespace CalamityMod.NPCs.Yharon npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 3f) //Fire small flares { npc.velocity *= 0.98f; npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num1457 - 30)) + if (npc.ai[2] == (float)(num1457 - 30)) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - } - if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + } + if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) { Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("Flare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); //changed Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, (float)(-(float)npc.direction * 2), 8f, mod.ProjectileType("Flare"), 0, 0f, Main.myPlayer, 0f, 0f); //changed } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1457) + if (npc.ai[2] >= (float)num1457) { npc.ai[0] = 0f; npc.ai[1] = 0f; @@ -826,19 +829,19 @@ namespace CalamityMod.NPCs.Yharon npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 4f) //enter phase 2 { npc.dontTakeDamage = true; npc.chaseable = false; npc.velocity *= 0.98f; npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num1458 - 60)) + if (npc.ai[2] == (float)(num1458 - 60)) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1458) + if (npc.ai[2] >= (float)num1458) { npc.ai[0] = 6f; npc.ai[1] = 0f; @@ -848,71 +851,71 @@ namespace CalamityMod.NPCs.Yharon return; } } - else if (npc.ai[0] == 5f) - { - int num1473 = 14; - for (int num1474 = 0; num1474 < num1473; num1474++) - { - Vector2 vector171 = Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f; - vector171 = vector171.RotatedBy((double)(num1474 - (num1473 / 2 - 1)) * 3.1415926535897931 / (double)((float)num1473), default(Vector2)) + vectorCenter; - Vector2 value18 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); - int num1475 = Dust.NewDust(vector171 + value18, 0, 0, 244, value18.X * 2f, value18.Y * 2f, 100, default(Color), 1.4f); //changed - Main.dust[num1475].noGravity = true; - Main.dust[num1475].noLight = true; - Main.dust[num1475].velocity /= 4f; - Main.dust[num1475].velocity -= npc.velocity; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)chargeTime2) - { - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 2f; - npc.netUpdate = true; - return; - } - } - #endregion - #region Phase2 - else if (npc.ai[0] == 6f && !player.dead) //phase 2 + else if (npc.ai[0] == 5f) { - npc.dontTakeDamage = false; - npc.chaseable = true; - if (npc.ai[1] == 0f) + int num1473 = 14; + for (int num1474 = 0; num1474 < num1473; num1474++) + { + Vector2 vector171 = Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f; + vector171 = vector171.RotatedBy((double)(num1474 - (num1473 / 2 - 1)) * 3.1415926535897931 / (double)((float)num1473), default(Vector2)) + vectorCenter; + Vector2 value18 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); + int num1475 = Dust.NewDust(vector171 + value18, 0, 0, 244, value18.X * 2f, value18.Y * 2f, 100, default(Color), 1.4f); //changed + Main.dust[num1475].noGravity = true; + Main.dust[num1475].noLight = true; + Main.dust[num1475].velocity /= 4f; + Main.dust[num1475].velocity -= npc.velocity; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)chargeTime2) + { + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 2f; + npc.netUpdate = true; + return; + } + } + #endregion + #region Phase2 + else if (npc.ai[0] == 6f && !player.dead) //phase 2 + { + npc.dontTakeDamage = false; + npc.chaseable = true; + if (npc.ai[1] == 0f) { npc.ai[1] = (float)(300 * Math.Sign((vectorCenter - player.Center).X)); } Vector2 value20 = player.Center + new Vector2(npc.ai[1], -200f) - vectorCenter; Vector2 vector175 = Vector2.Normalize(value20 - npc.velocity) * scaleFactor; - if (npc.velocity.X < vector175.X) + if (npc.velocity.X < vector175.X) { npc.velocity.X = npc.velocity.X + npcVelocity; - if (npc.velocity.X < 0f && vector175.X > 0f) + if (npc.velocity.X < 0f && vector175.X > 0f) { npc.velocity.X = npc.velocity.X + npcVelocity; } - } - else if (npc.velocity.X > vector175.X) + } + else if (npc.velocity.X > vector175.X) { npc.velocity.X = npc.velocity.X - npcVelocity; - if (npc.velocity.X > 0f && vector175.X < 0f) + if (npc.velocity.X > 0f && vector175.X < 0f) { npc.velocity.X = npc.velocity.X - npcVelocity; } } - if (npc.velocity.Y < vector175.Y) + if (npc.velocity.Y < vector175.Y) { npc.velocity.Y = npc.velocity.Y + npcVelocity; - if (npc.velocity.Y < 0f && vector175.Y > 0f) + if (npc.velocity.Y < 0f && vector175.Y > 0f) { npc.velocity.Y = npc.velocity.Y + npcVelocity; } - } - else if (npc.velocity.Y > vector175.Y) + } + else if (npc.velocity.Y > vector175.Y) { npc.velocity.Y = npc.velocity.Y - npcVelocity; - if (npc.velocity.Y > 0f && vector175.Y < 0f) + if (npc.velocity.Y > 0f && vector175.Y < 0f) { npc.velocity.Y = npc.velocity.Y - npcVelocity; } @@ -925,7 +928,7 @@ namespace CalamityMod.NPCs.Yharon npc.rotation = 3.14159274f; } npc.direction = num1477; - if (num1477 != 0) + if (num1477 != 0) { npc.direction = num1477; npc.rotation = 0f; @@ -933,7 +936,7 @@ namespace CalamityMod.NPCs.Yharon } } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)aiChangeRate) + if (npc.ai[2] >= (float)aiChangeRate) { int aiState = 0; switch ((int)npc.ai[3]) //0 2 4 6 8 1 3 5 7 9 repeat @@ -944,12 +947,12 @@ namespace CalamityMod.NPCs.Yharon case 3: case 4: case 5: - aiState = 1; - break; - case 6: - aiState = 5; - break; - case 7: + aiState = 1; + break; + case 6: + aiState = 5; + break; + case 7: aiState = 6; break; case 8: @@ -965,31 +968,31 @@ namespace CalamityMod.NPCs.Yharon { aiState = 4; } - if (aiState == 1) + if (aiState == 1) { npc.ai[0] = 7f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed; npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1477 != 0) + if (num1477 != 0) { npc.direction = num1477; - if (npc.spriteDirection == 1) + if (npc.spriteDirection == 1) { npc.rotation += 3.14159274f; } npc.spriteDirection = -npc.direction; } - } - else if (aiState == 2) + } + else if (aiState == 2) { npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * scaleFactor13; npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1477 != 0) + if (num1477 != 0) { npc.direction = num1477; - if (npc.spriteDirection == 1) + if (npc.spriteDirection == 1) { npc.rotation += 3.14159274f; } @@ -998,61 +1001,61 @@ namespace CalamityMod.NPCs.Yharon npc.ai[0] = 8f; npc.ai[1] = 0f; npc.ai[2] = 0f; - } - else if (aiState == 3) + } + else if (aiState == 3) { npc.ai[0] = 9f; npc.ai[1] = 0f; npc.ai[2] = 0f; - } - else if (aiState == 4) + } + else if (aiState == 4) { npc.ai[0] = 10f; npc.ai[1] = 0f; npc.ai[2] = 0f; } - else if (aiState == 5) - { - npc.ai[0] = 11f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed2; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1477 != 0) - { - npc.direction = num1477; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - } - else if (aiState == 6) - { - npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * scaleFactor13; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1477 != 0) - { - npc.direction = num1477; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - npc.ai[0] = 12f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - npc.netUpdate = true; + else if (aiState == 5) + { + npc.ai[0] = 11f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed2; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num1477 != 0) + { + npc.direction = num1477; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + } + else if (aiState == 6) + { + npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * scaleFactor13; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num1477 != 0) + { + npc.direction = num1477; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + npc.ai[0] = 12f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 7f) //charge { int num1479 = 7; - for (int num1480 = 0; num1480 < num1479; num1480++) + for (int num1480 = 0; num1480 < num1479; num1480++) { Vector2 vector176 = Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f; vector176 = vector176.RotatedBy((double)(num1480 - (num1479 / 2 - 1)) * 3.1415926535897931 / (double)((float)num1479), default(Vector2)) + vectorCenter; @@ -1064,7 +1067,7 @@ namespace CalamityMod.NPCs.Yharon Main.dust[num1481].velocity -= npc.velocity; } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)chargeTime) + if (npc.ai[2] >= (float)chargeTime) { npc.ai[0] = 6f; npc.ai[1] = 0f; @@ -1073,17 +1076,17 @@ namespace CalamityMod.NPCs.Yharon npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 8f) { - if (npc.ai[2] == 0f) + if (npc.ai[2] == 0f) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } - if (npc.ai[2] % (float)num1462 == 0f) + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } + if (npc.ai[2] % (float)num1462 == 0f) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - if (Main.netMode != 1) + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + if (Main.netMode != 1) { if (NPC.CountNPCS(mod.NPCType("DetonatingFlare2")) < flareCount) { @@ -1091,13 +1094,13 @@ namespace CalamityMod.NPCs.Yharon NPC.NewNPC((int)vector6.X, (int)vector6.Y - 100, mod.NPCType("DetonatingFlare2"), 0, 0f, 0f, 0f, 0f, 255); } Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - Projectile.NewProjectile((int)vector173.X, (int)vector173.Y - 100, (float)Main.rand.Next(-400, 401) * 0.13f, (float)Main.rand.Next(-30, 31) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); //changed + Projectile.NewProjectile((int)vector173.X + xPos, (int)vector173.Y - 15, (float)Main.rand.Next(-400, 401) * 0.13f, (float)Main.rand.Next(-30, 31) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); //changed } } npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default(Vector2)); npc.rotation -= num1463 * (float)npc.direction; npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1461) + if (npc.ai[2] >= (float)num1461) { npc.ai[0] = 6f; npc.ai[1] = 0f; @@ -1105,21 +1108,21 @@ namespace CalamityMod.NPCs.Yharon npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 9f) { npc.velocity *= 0.98f; npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num1457 - 30)) + if (npc.ai[2] == (float)(num1457 - 30)) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - } - if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + } + if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) { Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - } + } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1457) + if (npc.ai[2] >= (float)num1457) { npc.ai[0] = 6f; npc.ai[1] = 0f; @@ -1127,19 +1130,19 @@ namespace CalamityMod.NPCs.Yharon npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 10f) //start phase 3 { npc.dontTakeDamage = true; npc.chaseable = false; npc.velocity *= 0.98f; npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num1459 - 60)) + if (npc.ai[2] == (float)(num1459 - 60)) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1459) + if (npc.ai[2] >= (float)num1459) { npc.ai[0] = 13f; npc.ai[1] = 0f; @@ -1149,121 +1152,121 @@ namespace CalamityMod.NPCs.Yharon return; } } - else if (npc.ai[0] == 11f) - { - int num1479 = 14; - for (int num1480 = 0; num1480 < num1479; num1480++) - { - Vector2 vector176 = Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f; - vector176 = vector176.RotatedBy((double)(num1480 - (num1479 / 2 - 1)) * 3.1415926535897931 / (double)((float)num1479), default(Vector2)) + vectorCenter; - Vector2 value21 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); - int num1481 = Dust.NewDust(vector176 + value21, 0, 0, 244, value21.X * 2f, value21.Y * 2f, 100, default(Color), 1.4f); //changed - Main.dust[num1481].noGravity = true; - Main.dust[num1481].noLight = true; - Main.dust[num1481].velocity /= 4f; - Main.dust[num1481].velocity -= npc.velocity; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)chargeTime2) - { - npc.ai[0] = 6f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 2f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 12f) - { - if (npc.ai[2] == 0f) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } - if (npc.ai[2] % (float)num1462 == 0f) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - if (Main.netMode != 1) - { - int damage = expertMode ? 75 : 90; //700 - Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - float speed = 0.01f; - Vector2 vectorShoot = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f + 30f); - float playerX = player.position.X + (float)player.width * 0.5f - vectorShoot.X; - float playerY = player.position.Y - vectorShoot.Y; - float playerXY = (float)Math.Sqrt((double)(playerX * playerX + playerY * playerY)); - playerXY = speed / playerXY; - playerX *= playerXY; - playerY *= playerXY; - Projectile.NewProjectile((int)vector173.X, (int)vector173.Y - 100, playerX, playerY, mod.ProjectileType("FlareDust2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - } - npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default(Vector2)); - npc.rotation -= num1463 * (float)npc.direction; - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1461) - { - npc.ai[0] = 6f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 2f; - npc.netUpdate = true; - return; - } - } - #endregion - #region Phase3 - else if (npc.ai[0] == 13f && !player.dead) + else if (npc.ai[0] == 11f) + { + int num1479 = 14; + for (int num1480 = 0; num1480 < num1479; num1480++) + { + Vector2 vector176 = Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f; + vector176 = vector176.RotatedBy((double)(num1480 - (num1479 / 2 - 1)) * 3.1415926535897931 / (double)((float)num1479), default(Vector2)) + vectorCenter; + Vector2 value21 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); + int num1481 = Dust.NewDust(vector176 + value21, 0, 0, 244, value21.X * 2f, value21.Y * 2f, 100, default(Color), 1.4f); //changed + Main.dust[num1481].noGravity = true; + Main.dust[num1481].noLight = true; + Main.dust[num1481].velocity /= 4f; + Main.dust[num1481].velocity -= npc.velocity; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)chargeTime2) + { + npc.ai[0] = 6f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 2f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 12f) + { + if (npc.ai[2] == 0f) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } + if (npc.ai[2] % (float)num1462 == 0f) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + if (Main.netMode != 1) + { + int damage = expertMode ? 75 : 90; //700 + Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; + float speed = 0.01f; + Vector2 vectorShoot = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f + 30f); + float playerX = player.position.X + (float)player.width * 0.5f - vectorShoot.X; + float playerY = player.position.Y - vectorShoot.Y; + float playerXY = (float)Math.Sqrt((double)(playerX * playerX + playerY * playerY)); + playerXY = speed / playerXY; + playerX *= playerXY; + playerY *= playerXY; + Projectile.NewProjectile((int)vector173.X + xPos, (int)vector173.Y - 15, playerX, playerY, mod.ProjectileType("FlareDust2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + } + npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default(Vector2)); + npc.rotation -= num1463 * (float)npc.direction; + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num1461) + { + npc.ai[0] = 6f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 2f; + npc.netUpdate = true; + return; + } + } + #endregion + #region Phase3 + else if (npc.ai[0] == 13f && !player.dead) { npc.dontTakeDamage = phase5Check; npc.chaseable = true; - if (npc.ai[1] == 0f) + if (npc.ai[1] == 0f) { npc.ai[1] = (float)(300 * Math.Sign((vectorCenter - player.Center).X)); } Vector2 value20 = player.Center + new Vector2(npc.ai[1], -200f) - vectorCenter; Vector2 vector175 = Vector2.Normalize(value20 - npc.velocity) * scaleFactor; - if (npc.velocity.X < vector175.X) + if (npc.velocity.X < vector175.X) { npc.velocity.X = npc.velocity.X + npcVelocity; - if (npc.velocity.X < 0f && vector175.X > 0f) + if (npc.velocity.X < 0f && vector175.X > 0f) { npc.velocity.X = npc.velocity.X + npcVelocity; } - } - else if (npc.velocity.X > vector175.X) + } + else if (npc.velocity.X > vector175.X) { npc.velocity.X = npc.velocity.X - npcVelocity; - if (npc.velocity.X > 0f && vector175.X < 0f) + if (npc.velocity.X > 0f && vector175.X < 0f) { npc.velocity.X = npc.velocity.X - npcVelocity; } } - if (npc.velocity.Y < vector175.Y) + if (npc.velocity.Y < vector175.Y) { npc.velocity.Y = npc.velocity.Y + npcVelocity; - if (npc.velocity.Y < 0f && vector175.Y > 0f) + if (npc.velocity.Y < 0f && vector175.Y > 0f) { npc.velocity.Y = npc.velocity.Y + npcVelocity; } - } - else if (npc.velocity.Y > vector175.Y) + } + else if (npc.velocity.Y > vector175.Y) { npc.velocity.Y = npc.velocity.Y - npcVelocity; - if (npc.velocity.Y > 0f && vector175.Y < 0f) + if (npc.velocity.Y > 0f && vector175.Y < 0f) { npc.velocity.Y = npc.velocity.Y - npcVelocity; } } int num1477 = Math.Sign(player.Center.X - vectorCenter.X); - if (num1477 != 0) + if (num1477 != 0) { if (npc.ai[2] == 0f && num1477 != npc.direction) { npc.rotation = 3.14159274f; } npc.direction = num1477; - if (num1477 != 0) + if (num1477 != 0) { npc.direction = num1477; npc.rotation = 0f; @@ -1280,22 +1283,22 @@ namespace CalamityMod.NPCs.Yharon case 1: case 2: case 3: - aiState = ((CalamityWorld.death && !CalamityWorld.bossRushActive) ? 5 : 1); //normal charges - break; - case 4: - case 5: + aiState = ((CalamityWorld.death && !CalamityWorld.bossRushActive) ? 5 : 1); //normal charges + break; + case 4: + case 5: case 6: - aiState = 5; //fast charges - break; - case 7: - aiState = 3; //big tornado - break; - case 8: - aiState = 6; //slow flare bombs - break; - case 9: - npc.ai[3] = 1f; - aiState = 7; //small tornado + aiState = 5; //fast charges + break; + case 7: + aiState = 3; //big tornado + break; + case 8: + aiState = 6; //slow flare bombs + break; + case 9: + npc.ai[3] = 1f; + aiState = 7; //small tornado break; case 10: npc.ai[3] = 0f; @@ -1306,31 +1309,31 @@ namespace CalamityMod.NPCs.Yharon { aiState = 4; } - if (aiState == 1) + if (aiState == 1) { npc.ai[0] = 14f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed; npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1477 != 0) + if (num1477 != 0) { npc.direction = num1477; - if (npc.spriteDirection == 1) + if (npc.spriteDirection == 1) { npc.rotation += 3.14159274f; } npc.spriteDirection = -npc.direction; } } - else if (aiState == 2) + else if (aiState == 2) { npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * scaleFactor13; npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1477 != 0) + if (num1477 != 0) { npc.direction = num1477; - if (npc.spriteDirection == 1) + if (npc.spriteDirection == 1) { npc.rotation += 3.14159274f; } @@ -1340,68 +1343,68 @@ namespace CalamityMod.NPCs.Yharon npc.ai[1] = 0f; npc.ai[2] = 0f; } - else if (aiState == 3) + else if (aiState == 3) { npc.ai[0] = 16f; npc.ai[1] = 0f; npc.ai[2] = 0f; } - else if (aiState == 4) + else if (aiState == 4) { npc.ai[0] = 17f; npc.ai[1] = 0f; npc.ai[2] = 0f; } - else if (aiState == 5) - { - npc.ai[0] = 18f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed2; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1477 != 0) - { - npc.direction = num1477; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - } - else if (aiState == 6) - { - npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * scaleFactor13; - npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num1477 != 0) - { - npc.direction = num1477; - if (npc.spriteDirection == 1) - { - npc.rotation += 3.14159274f; - } - npc.spriteDirection = -npc.direction; - } - npc.ai[0] = 19f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - else if (aiState == 7) - { - npc.ai[0] = 20f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - npc.netUpdate = true; + else if (aiState == 5) + { + npc.ai[0] = 18f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed2; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num1477 != 0) + { + npc.direction = num1477; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + } + else if (aiState == 6) + { + npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * scaleFactor13; + npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); + if (num1477 != 0) + { + npc.direction = num1477; + if (npc.spriteDirection == 1) + { + npc.rotation += 3.14159274f; + } + npc.spriteDirection = -npc.direction; + } + npc.ai[0] = 19f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + else if (aiState == 7) + { + npc.ai[0] = 20f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 14f) //charge { - npc.dontTakeDamage = phase5Check; - npc.chaseable = true; - int num1479 = 7; - for (int num1480 = 0; num1480 < num1479; num1480++) + npc.dontTakeDamage = phase5Check; + npc.chaseable = true; + int num1479 = 7; + for (int num1480 = 0; num1480 < num1479; num1480++) { Vector2 vector176 = Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f; vector176 = vector176.RotatedBy((double)(num1480 - (num1479 / 2 - 1)) * 3.1415926535897931 / (double)((float)num1479), default(Vector2)) + vectorCenter; @@ -1413,7 +1416,7 @@ namespace CalamityMod.NPCs.Yharon Main.dust[num1481].velocity -= npc.velocity; } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)chargeTime) + if (npc.ai[2] >= (float)chargeTime) { npc.ai[0] = 13f; npc.ai[1] = 0f; @@ -1422,19 +1425,19 @@ namespace CalamityMod.NPCs.Yharon npc.netUpdate = true; return; } - } + } else if (npc.ai[0] == 15f) { - npc.dontTakeDamage = phase5Check; - npc.chaseable = true; - if (npc.ai[2] == 0f) + npc.dontTakeDamage = phase5Check; + npc.chaseable = true; + if (npc.ai[2] == 0f) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } - if (npc.ai[2] % (float)num1462 == 0f) + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } + if (npc.ai[2] % (float)num1462 == 0f) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - if (Main.netMode != 1) + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + if (Main.netMode != 1) { if (NPC.CountNPCS(mod.NPCType("DetonatingFlare2")) < flareCount && NPC.CountNPCS(mod.NPCType("DetonatingFlare")) < flareCount) { @@ -1442,14 +1445,14 @@ namespace CalamityMod.NPCs.Yharon NPC.NewNPC((int)vector6.X, (int)vector6.Y - 100, (Main.rand.Next(2) == 0 ? mod.NPCType("DetonatingFlare") : mod.NPCType("DetonatingFlare2")), 0, 0f, 0f, 0f, 0f, 255); } Vector2 vector = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - Projectile.NewProjectile((int)vector.X, (int)vector.Y - 100, (float)Main.rand.Next(-401, 401) * 0.13f, (float)Main.rand.Next(-31, 31) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); //changed - Projectile.NewProjectile((int)vector.X, (int)vector.Y - 100, (float)Main.rand.Next(-31, 31) * 0.13f, (float)Main.rand.Next(-151, 151) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); //changed + Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, (float)Main.rand.Next(-401, 401) * 0.13f, (float)Main.rand.Next(-31, 31) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); //changed + Projectile.NewProjectile((int)vector.X + xPos, (int)vector.Y - 15, (float)Main.rand.Next(-31, 31) * 0.13f, (float)Main.rand.Next(-151, 151) * 0.13f, mod.ProjectileType("FlareDust"), 0, 0f, Main.myPlayer, 0f, 0f); //changed } } npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default(Vector2)); npc.rotation -= num1463 * (float)npc.direction; npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1461) + if (npc.ai[2] >= (float)num1461) { npc.ai[0] = 13f; npc.ai[1] = 0f; @@ -1460,25 +1463,25 @@ namespace CalamityMod.NPCs.Yharon } else if (npc.ai[0] == 16f) { - npc.dontTakeDamage = phase5Check; - npc.chaseable = true; - npc.velocity *= 0.98f; + npc.dontTakeDamage = phase5Check; + npc.chaseable = true; + npc.velocity *= 0.98f; npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num1457 - 30)) + if (npc.ai[2] == (float)(num1457 - 30)) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - } - if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + } + if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) { Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - } + } npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1457) + if (npc.ai[2] >= (float)num1457) { npc.ai[0] = 13f; npc.ai[1] = 0f; npc.ai[2] = 0f; - npc.ai[3] += 3f; + npc.ai[3] += 3f; npc.netUpdate = true; return; } @@ -1519,8 +1522,8 @@ namespace CalamityMod.NPCs.Yharon npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); if (npc.ai[2] == (float)(num1459 - 60)) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } npc.ai[2] += 1f; if (npc.ai[2] >= (float)num1459) { @@ -1532,109 +1535,109 @@ namespace CalamityMod.NPCs.Yharon return; } } - else if (npc.ai[0] == 18f) - { - npc.dontTakeDamage = phase5Check; - npc.chaseable = true; - int num1479 = 14; - for (int num1480 = 0; num1480 < num1479; num1480++) - { - Vector2 vector176 = Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f; - vector176 = vector176.RotatedBy((double)(num1480 - (num1479 / 2 - 1)) * 3.1415926535897931 / (double)((float)num1479), default(Vector2)) + vectorCenter; - Vector2 value21 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); - int num1481 = Dust.NewDust(vector176 + value21, 0, 0, 244, value21.X * 2f, value21.Y * 2f, 100, default(Color), 1.4f); - Main.dust[num1481].noGravity = true; - Main.dust[num1481].noLight = true; - Main.dust[num1481].velocity /= 4f; - Main.dust[num1481].velocity -= npc.velocity; - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)chargeTime2) - { - npc.ai[0] = 13f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 2f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 19f) - { - npc.dontTakeDamage = phase5Check; - npc.chaseable = true; - if (npc.ai[2] == 0f) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } - if (npc.ai[2] % (float)num1462 == 0f) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - if (Main.netMode != 1) - { - int damage = expertMode ? 75 : 90; //700 - Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; - float speed = 0.01f; - Vector2 vectorShoot = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f + 30f); - float playerX = player.position.X + (float)player.width * 0.5f - vectorShoot.X; - float playerY = player.position.Y - vectorShoot.Y; - float playerXY = (float)Math.Sqrt((double)(playerX * playerX + playerY * playerY)); - playerXY = speed / playerXY; - playerX *= playerXY; - playerY *= playerXY; - Projectile.NewProjectile((int)vector173.X, (int)vector173.Y - 100, playerX, playerY, mod.ProjectileType("FlareDust2"), damage, 0f, Main.myPlayer, 0f, 0f); - } - } - npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default(Vector2)); - npc.rotation -= num1463 * (float)npc.direction; - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1461) - { - npc.ai[0] = 13f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 1f; - npc.netUpdate = true; - return; - } - } - else if (npc.ai[0] == 20f) - { - npc.dontTakeDamage = phase5Check; - npc.chaseable = true; - npc.velocity *= 0.98f; - npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num1457 - 30)) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - } - if (CalamityWorld.death && !CalamityWorld.bossRushActive) - { - if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) - { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - } - } - else - { - if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) - { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("Flare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - } - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1457) - { - npc.ai[0] = 13f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.netUpdate = true; - return; - } - } - #endregion - #region Phase4 - else if (npc.ai[0] == 21f && !player.dead) + else if (npc.ai[0] == 18f) + { + npc.dontTakeDamage = phase5Check; + npc.chaseable = true; + int num1479 = 14; + for (int num1480 = 0; num1480 < num1479; num1480++) + { + Vector2 vector176 = Vector2.Normalize(npc.velocity) * new Vector2((float)(npc.width + 50) / 2f, (float)npc.height) * 0.75f; + vector176 = vector176.RotatedBy((double)(num1480 - (num1479 / 2 - 1)) * 3.1415926535897931 / (double)((float)num1479), default(Vector2)) + vectorCenter; + Vector2 value21 = ((float)(Main.rand.NextDouble() * 3.1415927410125732) - 1.57079637f).ToRotationVector2() * (float)Main.rand.Next(3, 8); + int num1481 = Dust.NewDust(vector176 + value21, 0, 0, 244, value21.X * 2f, value21.Y * 2f, 100, default(Color), 1.4f); + Main.dust[num1481].noGravity = true; + Main.dust[num1481].noLight = true; + Main.dust[num1481].velocity /= 4f; + Main.dust[num1481].velocity -= npc.velocity; + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)chargeTime2) + { + npc.ai[0] = 13f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 2f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 19f) + { + npc.dontTakeDamage = phase5Check; + npc.chaseable = true; + if (npc.ai[2] == 0f) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } + if (npc.ai[2] % (float)num1462 == 0f) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + if (Main.netMode != 1) + { + int damage = expertMode ? 75 : 90; //700 + Vector2 vector173 = Vector2.Normalize(player.Center - vectorCenter) * (float)(npc.width + 20) / 2f + vectorCenter; + float speed = 0.01f; + Vector2 vectorShoot = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f + 30f); + float playerX = player.position.X + (float)player.width * 0.5f - vectorShoot.X; + float playerY = player.position.Y - vectorShoot.Y; + float playerXY = (float)Math.Sqrt((double)(playerX * playerX + playerY * playerY)); + playerXY = speed / playerXY; + playerX *= playerXY; + playerY *= playerXY; + Projectile.NewProjectile((int)vector173.X + xPos, (int)vector173.Y - 15, playerX, playerY, mod.ProjectileType("FlareDust2"), damage, 0f, Main.myPlayer, 0f, 0f); + } + } + npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default(Vector2)); + npc.rotation -= num1463 * (float)npc.direction; + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num1461) + { + npc.ai[0] = 13f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 1f; + npc.netUpdate = true; + return; + } + } + else if (npc.ai[0] == 20f) + { + npc.dontTakeDamage = phase5Check; + npc.chaseable = true; + npc.velocity *= 0.98f; + npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); + if (npc.ai[2] == (float)(num1457 - 30)) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + } + if (CalamityWorld.death && !CalamityWorld.bossRushActive) + { + if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) + { + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + } + } + else + { + if (Main.netMode != 1 && npc.ai[2] == (float)(num1457 - 30)) + { + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("Flare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + } + } + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num1457) + { + npc.ai[0] = 13f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.netUpdate = true; + return; + } + } + #endregion + #region Phase4 + else if (npc.ai[0] == 21f && !player.dead) { npc.dontTakeDamage = phase5Check; npc.chaseable = false; @@ -1661,7 +1664,7 @@ namespace CalamityMod.NPCs.Yharon npc.rotation = 3.14159274f; } npc.direction = num32; - if (num32 != 0) + if (num32 != 0) { npc.direction = num32; npc.rotation = 0f; @@ -1684,36 +1687,36 @@ namespace CalamityMod.NPCs.Yharon case 10: case 11: case 12: //skip 13 - case 14: - case 15: - case 16: - case 17: - case 18: //skip 19 + case 14: + case 15: + case 16: + case 17: + case 18: //skip 19 aiState = 1; break; case 1: //+3 case 4: //+4 case 8: //+5 case 13: //+6 - case 19: + case 19: aiState = 2; break; } - if (phase5Check) - { - aiState = 4; - } - if (aiState == 1) + if (phase5Check) + { + aiState = 4; + } + if (aiState == 1) { npc.ai[0] = 22f; npc.ai[1] = 0f; npc.ai[2] = 0f; npc.velocity = Vector2.Normalize(player.Center - vectorCenter) * chargeSpeed; npc.rotation = (float)Math.Atan2((double)npc.velocity.Y, (double)npc.velocity.X); - if (num32 != 0) + if (num32 != 0) { npc.direction = num32; - if (npc.spriteDirection == 1) + if (npc.spriteDirection == 1) { npc.rotation += 3.14159274f; } @@ -1732,13 +1735,13 @@ namespace CalamityMod.NPCs.Yharon npc.ai[1] = 0f; npc.ai[2] = 0f; } - else if (aiState == 4) - { - npc.ai[0] = 25f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - npc.netUpdate = true; + else if (aiState == 4) + { + npc.ai[0] = 25f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + npc.netUpdate = true; return; } } @@ -1790,8 +1793,8 @@ namespace CalamityMod.NPCs.Yharon npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); if (npc.ai[2] == (float)(num1460 / 2)) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - } + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + } if (Main.netMode != 1 && npc.ai[2] == (float)(num1460 / 2)) { if (npc.ai[1] == 0f) @@ -1810,14 +1813,14 @@ namespace CalamityMod.NPCs.Yharon npc.ai[1] = 0f; npc.ai[2] = 0f; npc.ai[3] += 1f; - if (npc.ai[3] == 5f && Main.netMode != 1) - { - Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - } - if (npc.ai[3] >= 20f) //14 + if (npc.ai[3] == 5f && Main.netMode != 1) + { + Projectile.NewProjectile(vectorCenter.X, vectorCenter.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + } + if (npc.ai[3] >= 20f) //14 { npc.ai[3] = 0f; - } + } npc.netUpdate = true; return; } @@ -1828,8 +1831,8 @@ namespace CalamityMod.NPCs.Yharon npc.chaseable = true; if (npc.ai[2] == 0f) { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - } + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + } npc.velocity = npc.velocity.RotatedBy((double)(-(double)num1463 * (float)npc.direction), default(Vector2)); npc.rotation -= num1463 * (float)npc.direction; npc.ai[2] += 1f; @@ -1842,733 +1845,741 @@ namespace CalamityMod.NPCs.Yharon npc.netUpdate = true; } } - else if (npc.ai[0] == 25f) //start phase 5 - { - npc.alpha = 0; - npc.dontTakeDamage = true; - npc.chaseable = false; - npc.velocity *= 0.98f; - npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); - if (npc.ai[2] == (float)(num1459 - 60)) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } - npc.ai[2] += 1f; - if (npc.ai[2] >= (float)num1459) - { - npc.localAI[2] = 1f; - npc.ai[0] = 0f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] = 0f; - npc.netUpdate = true; - return; - } - } - #endregion - } - - #region AI2 - public void Yharon_AI2() - { - bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); - bool expertMode = Main.expertMode; - bool phase2 = (double)npc.life <= (double)npc.lifeMax * 0.66; - bool phase3 = (double)npc.life <= (double)npc.lifeMax * 0.33; - bool tantrum = (double)npc.life <= (double)npc.lifeMax * 0.04; - npc.defense = 100; - npc.alpha -= 25; - if (npc.alpha < 0) - { - npc.alpha = 0; - } - if (!moveCloser) - { - Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); - if (calamityModMusic != null) - music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/DragonGod"); - else - music = MusicID.LunarBoss; - moveCloser = true; - if ((CalamityWorld.death || CalamityWorld.bossRushActive) && Main.netMode != 1) - { - NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("DetonatingFlare3"), 0, 0f, 0f, 0f, 0f, 255); - } - string key = "Mods.CalamityMod.FlameText"; - Color messageColor = Color.Orange; - if (Main.netMode == 0) - { - Main.NewText(Language.GetTextValue(key), messageColor); - } - else if (Main.netMode == 2) - { - NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); - } - } - if (npc.localAI[3] < 900f) - { - npc.localAI[3] += 1f; - int heal = 5; //180 heals 50% and 30% - healCounter += 1; - if (healCounter >= heal) - { - healCounter = 0; - if (Main.netMode != 1) - { - int fractionHealed = revenge ? 240 : 300; //100000 / 240 * 180 = 75000 healed = 75% heal - if (CalamityWorld.death || CalamityWorld.bossRushActive) - { - fractionHealed = 200; //100000 / 200 * 180 = 90000 healed = 90% heal - } - int healAmt = npc.lifeMax / fractionHealed; - if (healAmt > npc.lifeMax - npc.life) - { - healAmt = npc.lifeMax - npc.life; - } - if (healAmt > 0) - { - npc.life += healAmt; - npc.HealEffect(healAmt, true); - npc.netUpdate = true; - } - } - } - } - else - { - npc.dontTakeDamage = false; - npc.chaseable = true; - } - NPCUtils.TargetClosestBetsy(npc, false, null); - NPCAimedTarget targetData = npc.GetTargetData(true); - if (!targetData.Hitbox.Intersects(safeBox)) - { - protectionBoost = true; - npc.damage = npc.defDamage * 5; - if (npc.timeLeft > 150) - { - npc.timeLeft = 150; - } - } - else - { - npc.damage = expertMode ? 528 : 330; - protectionBoost = false; - if (npc.timeLeft < 3600) - { - npc.timeLeft = 3600; - } - } - int num = -1; - float num2 = 1f; - int num4 = expertMode ? 106 : 125; //600 - float num5 = 10f; - float num6 = revenge ? 0.6f : 0.55f; //0.45 - float scaleFactor = revenge ? 10f : 9f; //7.5 - float num7 = 30f; - float num8 = 30f; - float scaleFactor2 = revenge ? 26f : 24.5f; //23 - float num9 = 600f; - float num10 = 12f; - float num11 = 40f; - float num12 = (CalamityWorld.death && !CalamityWorld.bossRushActive) ? 40f : 80f; - float num13 = num11 + num12; - float num14 = 1500f; - float num15 = 60f; - float scaleFactor3 = 13f; - float amount = 0.0333333351f; - float scaleFactor4 = revenge ? 16f : 14.5f; //12 - int num16 = 10; - int num17 = 6 * num16; - float num18 = 60f; - float num19 = num15 + (float)num17 + num18; - float num20 = 60f; - float num21 = 1f; - float num22 = 6.28318548f * (num21 / num20); - float num23 = 0.1f; - float scaleFactor5 = revenge ? 38f : 36.5f; //32 - if (npc.GetGlobalNPC(mod).enraged) - { - num6 = 0.65f; - scaleFactor = 11f; - scaleFactor2 = 28f; - scaleFactor4 = 18f; - scaleFactor5 = 40f; - } - float num24 = 90f; - float num25 = 20f; - float arg_F9_0 = npc.ai[0]; - float num26; - if (npc.ai[0] == 0f) - { - float[] expr_115_cp_0 = npc.ai; - int expr_115_cp_1 = 1; - num26 = expr_115_cp_0[expr_115_cp_1] + 1f; - expr_115_cp_0[expr_115_cp_1] = num26; - if (num26 >= num5) - { - npc.ai[1] = 0f; - npc.ai[0] = 1f; - npc.ai[2] = 0f; - npc.netUpdate = true; - } - } - else if (npc.ai[0] == 1f) - { - if (npc.ai[2] == 0f) - { - npc.ai[2] = (float)((npc.Center.X < targetData.Center.X) ? 1 : -1); - } - Vector2 destination = targetData.Center + new Vector2(-npc.ai[2] * 300f, -200f); - Vector2 desiredVelocity = npc.DirectionTo(destination) * scaleFactor; - npc.SimpleFlyMovement(desiredVelocity, num6); - int num27 = (npc.Center.X < targetData.Center.X) ? 1 : -1; - npc.direction = (npc.spriteDirection = num27); - float[] expr_225_cp_0 = npc.ai; - int expr_225_cp_1 = 1; - num26 = expr_225_cp_0[expr_225_cp_1] + 1f; - expr_225_cp_0[expr_225_cp_1] = num26; - if (num26 >= num7) - { - int num28 = 1; - if (phase3) - { - switch ((int)npc.ai[3]) - { - case 0: - num28 = 6; //tornado - break; - case 1: - num28 = 2; //charge - break; - case 2: - num28 = 5; //fire circle - break; - case 3: - num28 = 4; //splitting fireballs - break; - case 4: - num28 = 3; //homing fireballs - break; - case 5: - num28 = 6; //tornado - break; - case 6: - case 7: - num28 = 2; //double charge - break; - case 8: - num28 = 5; //fire circle - break; - case 9: - num28 = 4; //splitting fireballs - break; - } - } - else if (phase2) - { - switch ((int)npc.ai[3]) - { - case 0: - num28 = 6; //tornado - break; - case 1: - case 2: - num28 = 2; //charge - break; - case 3: - num28 = 5; //fire circle - break; - case 4: - num28 = 3; //homing fireballs - break; - case 5: - case 6: - num28 = 4; //double splitting fireballs - break; - case 7: - case 8: - num28 = 2; //double charge - break; - case 9: - num28 = 5; //fire circle - break; - } - } - else - { - switch ((int)npc.ai[3]) - { - case 0: - num28 = 6; //tornado - break; - case 1: - case 2: - num28 = 2; //double charge - break; - case 3: - num28 = 3; //homing fireballs - break; - case 4: - num28 = 4; //splitting fireballs - break; - case 5: - case 6: - num28 = 2; //double charge - break; - case 7: - num28 = 5; //fire circle - break; - } - } - npc.ai[0] = (float)num28; - if (tantrum) - { - npc.ai[0] = 2f; - } - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.ai[3] += 1f; - npc.netUpdate = true; - float aiLimit = 8f; - if (phase2) - { - aiLimit = 10f; - } - if (npc.ai[3] >= aiLimit) - { - npc.ai[3] = 0f; - } - switch (num28) - { - case 2: //charge - { - Vector2 vector = npc.DirectionTo(targetData.Center); - npc.spriteDirection = ((vector.X > 0f) ? 1 : -1); - npc.rotation = vector.ToRotation(); - if (npc.spriteDirection == -1) - { - npc.rotation += 3.14159274f; - } - npc.velocity = vector * scaleFactor2; - break; - } - case 3: //homing fireballs - { - Vector2 vector2 = new Vector2((float)((targetData.Center.X > npc.Center.X) ? 1 : -1), 0f); - npc.spriteDirection = ((vector2.X > 0f) ? 1 : -1); - npc.velocity = vector2 * -2f; - break; - } - case 5: //spin move - { - Vector2 vector3 = npc.DirectionTo(targetData.Center); - npc.spriteDirection = ((vector3.X > 0f) ? 1 : -1); - npc.rotation = vector3.ToRotation(); - if (npc.spriteDirection == -1) - { - npc.rotation += 3.14159274f; - } - npc.velocity = vector3 * scaleFactor5; - break; - } - } - } - } - else if (npc.ai[0] == 2f) - { - if (npc.ai[1] == 0f) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - } - float[] expr_498_cp_0 = npc.ai; - int expr_498_cp_1 = 1; - num26 = expr_498_cp_0[expr_498_cp_1] + 1f; - expr_498_cp_0[expr_498_cp_1] = num26; - if (num26 >= num8) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - } - else if (npc.ai[0] == 3f) //homing fireball spit - { - npc.ai[1] += 1f; - int num29 = (npc.Center.X < targetData.Center.X) ? 1 : -1; - npc.ai[2] = (float)num29; - if (npc.ai[1] < num11) - { - Vector2 vector4 = targetData.Center + new Vector2((float)num29 * -num9, -250f); - Vector2 value = npc.DirectionTo(vector4) * num10; - if (npc.Distance(vector4) < num10) - { - npc.Center = vector4; - } - else - { - npc.position += value; - } - if (Vector2.Distance(vector4, npc.Center) < 16f) - { - npc.ai[1] = num11 - 1f; - } - num2 = 1.5f; - } - if (npc.ai[1] == num11) - { - int num30 = (targetData.Center.X > npc.Center.X) ? 1 : -1; - npc.velocity = new Vector2((float)num30, 0f) * 22f; //10f - npc.direction = (npc.spriteDirection = num30); - } - if (npc.ai[1] >= num11) - { - if (npc.ai[1] % 10 == 0 && Main.netMode != 1) - { - float num33 = 30f; - Vector2 position = npc.Center + new Vector2((110f /* 110f */ + num33) * (float)npc.direction, -20f /* 20f */).RotatedBy((double)npc.rotation, - default(Vector2)); - Projectile.NewProjectile(position, npc.velocity, mod.ProjectileType("YharonFireballHoming"), num4, 0f, Main.myPlayer, 0f, 0f); - } - num2 = 1.5f; - if (Math.Abs(targetData.Center.X - npc.Center.X) > 550f && Math.Abs(npc.velocity.X) < 20f) - { - npc.velocity.X = npc.velocity.X + (float)Math.Sign(npc.velocity.X) * 0.5f; - } - } - if (npc.ai[1] >= num13) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - } - else if (npc.ai[0] == 4f) //splitting fireball spit - { - int num31 = (npc.Center.X < targetData.Center.X) ? 1 : -1; - npc.ai[2] = (float)num31; - if (npc.ai[1] < num15) - { - Vector2 vector5 = targetData.Center + new Vector2((float)num31 * -num14, -350f); - Vector2 value2 = npc.DirectionTo(vector5) * scaleFactor3; - npc.velocity = Vector2.Lerp(npc.velocity, value2, amount); - int num32 = (npc.Center.X < targetData.Center.X) ? 1 : -1; - npc.direction = (npc.spriteDirection = num32); - if (Vector2.Distance(vector5, npc.Center) < 16f) - { - npc.ai[1] = num15 - 1f; - } - num2 = 1.5f; - } - else if (npc.ai[1] == num15) - { - Vector2 vector6 = npc.DirectionTo(targetData.Center); - vector6.Y *= 0.25f; - vector6 = vector6.SafeNormalize(Vector2.UnitX * (float)npc.direction); - npc.spriteDirection = ((vector6.X > 0f) ? 1 : -1); - npc.rotation = vector6.ToRotation(); - if (npc.spriteDirection == -1) - { - npc.rotation += 3.14159274f; - } - npc.velocity = vector6 * scaleFactor4; - } - else - { - npc.position.X = npc.position.X + npc.DirectionTo(targetData.Center).X * 7f; - npc.position.Y = npc.position.Y + npc.DirectionTo(targetData.Center + new Vector2(0f, -400f)).Y * 6f; - if (npc.ai[1] <= num19 - num18) - { - num2 = 1.5f; - } - float num33 = 30f; - Vector2 position = npc.Center + new Vector2((110f /* 110f */ + num33) * (float)npc.direction, -20f).RotatedBy((double)npc.rotation, - default(Vector2)); - int num34 = (int)(npc.ai[1] - num15 + 1f); - if (num34 <= num17 && num34 % num16 == 0 && Main.netMode != 1) - { - Projectile.NewProjectile(position, npc.velocity, mod.ProjectileType("YharonFireball"), num4, 0f, Main.myPlayer, 0f, 0f); //change - } - } - if (npc.ai[1] > num19 - num18) - { - npc.velocity.Y = npc.velocity.Y - 0.1f; - } - npc.ai[1] += 1f; - if (npc.ai[1] >= num19) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - } - else if (npc.ai[0] == 5f) - { - npc.velocity = npc.velocity.RotatedBy((double)(-(double)num22 * (float)npc.direction), default(Vector2)); - npc.position.Y = npc.position.Y - num23; - npc.position += npc.DirectionTo(targetData.Center) * 10f; - npc.rotation -= num22 * (float)npc.direction; - num2 *= 0.7f; - if (npc.ai[1] == 1f) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); - } - float[] expr_B0F_cp_0 = npc.ai; - int expr_B0F_cp_1 = 1; - num26 = expr_B0F_cp_0[expr_B0F_cp_1] + 1f; - expr_B0F_cp_0[expr_B0F_cp_1] = num26; - if (npc.ai[1] % 12 == 0 && Main.netMode != 1) - { - float num33 = 30f; - Vector2 position = npc.Center + new Vector2((110f /* 110f */ + num33) * (float)npc.direction, -20f /* 20f */).RotatedBy((double)npc.rotation, - default(Vector2)); - int projectileType = (((npc.ai[1] / 2) % 12 == 0) ? mod.ProjectileType("YharonFireball") : mod.ProjectileType("YharonFireballHoming")); - Projectile.NewProjectile(position, npc.velocity, projectileType, num4, 0f, Main.myPlayer, 0f, 0f); - } - if (num26 >= num20) - { - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - npc.velocity /= 2f; - } - } - else if (npc.ai[0] == 6f) //birb spawn - { - if (npc.ai[1] == 0f) - { - Vector2 destination2 = targetData.Center + new Vector2(0f, -200f); - Vector2 desiredVelocity2 = npc.DirectionTo(destination2) * scaleFactor * 2f; - npc.SimpleFlyMovement(desiredVelocity2, num6 * 2f); - int num35 = (npc.Center.X < targetData.Center.X) ? 1 : -1; - npc.direction = (npc.spriteDirection = num35); - npc.ai[2] += 1f; - if (npc.Distance(targetData.Center) < 1000f || npc.ai[2] >= 180f) //450f - { - npc.ai[1] = 1f; - npc.netUpdate = true; - } - } - else - { - if (npc.ai[1] == 1f) - { - Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); - } - if (npc.ai[1] < num25) - { - npc.velocity *= 0.95f; - } - else - { - npc.velocity *= 0.98f; - } - if (npc.ai[1] == num25) - { - if (npc.velocity.Y > 0f) - { - npc.velocity.Y = npc.velocity.Y / 3f; - } - npc.velocity.Y = npc.velocity.Y - 3f; - } - num2 *= 0.85f; - bool flag3 = npc.ai[1] == 20f || npc.ai[1] == 45f || npc.ai[1] == 70f; - if (NPC.CountNPCS(mod.NPCType("Bumblefuck3")) > 2) - { - flag3 = false; - } - if (flag3 && Main.netMode != 1) - { - Vector2 vector7 = npc.Center + (6.28318548f * Main.rand.NextFloat()).ToRotationVector2() * new Vector2(2f, 1f) * 100f * (0.6f + Main.rand.NextFloat() * 0.4f); - if (Vector2.Distance(vector7, targetData.Center) > 100f) - { - Point point2 = vector7.ToPoint(); - NPC.NewNPC(point2.X, point2.Y, mod.NPCType("Bumblefuck3"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); - } - NPC.NewNPC((int)npc.Center.X + (Main.rand.Next(2) == 0 ? 100 : -100), (int)npc.Center.Y - 100, mod.NPCType("Bumblefuck3"), 0, 0f, 0f, 0f, 0f, 255); - } - npc.ai[1] += 1f; - } - if (npc.ai[1] >= num24) - { - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); - Boom(600, num4); - npc.ai[0] = 1f; - npc.ai[1] = 0f; - npc.ai[2] = 0f; - } - } - npc.localAI[0] += num2; - if (npc.localAI[0] >= 36f) - { - npc.localAI[0] = 0f; - } - if (num != -1) - { - npc.localAI[0] = (float)(num * 4); - } - float[] expr_11FC_cp_0 = npc.localAI; - int expr_11FC_cp_1 = 1; - num26 = expr_11FC_cp_0[expr_11FC_cp_1] + 1f; - expr_11FC_cp_0[expr_11FC_cp_1] = num26; - if (num26 >= 60f) - { - npc.localAI[1] = 0f; - } - float num42 = npc.DirectionTo(targetData.Center).ToRotation(); - float num43 = 0.04f; - switch ((int)npc.ai[0]) - { - case 2: - case 5: - num43 = 0f; - break; - case 3: - num43 = 0.01f; - num42 = 0f; - if (npc.spriteDirection == -1) - { - num42 -= 3.14159274f; - } - if (npc.ai[1] >= num11) - { - num42 += (float)npc.spriteDirection * 3.14159274f / 12f; - num43 = 0.05f; - } - break; - case 4: - num43 = 0.01f; - num42 = 3.14159274f; - if (npc.spriteDirection == 1) - { - num42 += 3.14159274f; - } - break; - case 6: - num43 = 0.02f; - num42 = 0f; - if (npc.spriteDirection == -1) - { - num42 -= 3.14159274f; - } - break; - } - if (npc.spriteDirection == -1) - { - num42 += 3.14159274f; - } - if (num43 != 0f) - { - npc.rotation = npc.rotation.AngleTowards(num42, num43); - } - } - #endregion - - #region Drawing - public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) - { - SpriteEffects spriteEffects = SpriteEffects.None; - if (npc.spriteDirection == 1) - { - spriteEffects = SpriteEffects.FlipHorizontally; - } - float num66 = 0f; - Vector2 vector11 = new Vector2((float)(Main.npcTexture[npc.type].Width / 2), (float)(Main.npcTexture[npc.type].Height / Main.npcFrameCount[npc.type] / 2)); - Microsoft.Xna.Framework.Rectangle frame6 = npc.frame; - Microsoft.Xna.Framework.Color color9 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); - if (npc.localAI[2] == 1f && !phaseOneLoot) - { - SpriteEffects spriteEffects2 = spriteEffects ^ SpriteEffects.FlipHorizontally; - if (npc.localAI[3] < 900f) - { - color9 = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, 0); - } - Main.spriteBatch.Draw(Main.npcTexture[npc.type], - new Vector2(npc.position.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)Main.npcTexture[npc.type].Width * npc.scale / 2f + vector11.X * npc.scale, - npc.position.Y - Main.screenPosition.Y + (float)npc.height - (float)Main.npcTexture[npc.type].Height * npc.scale / (float)Main.npcFrameCount[npc.type] + 4f + vector11.Y * npc.scale + num66 + npc.gfxOffY), - new Microsoft.Xna.Framework.Rectangle?(frame6), - npc.GetAlpha(color9), - npc.rotation, - vector11, - npc.scale, - spriteEffects2, - 0f); - return false; - } - Microsoft.Xna.Framework.Color alpha15 = npc.GetAlpha(color9); - float num212 = 1f - (float)npc.life / (float)npc.lifeMax; - num212 *= num212; - alpha15.R = (byte)((float)alpha15.R * num212); - alpha15.G = (byte)((float)alpha15.G * num212); - alpha15.B = (byte)((float)alpha15.B * num212); - alpha15.A = (byte)((float)alpha15.A * num212); - for (int num213 = 0; num213 < 4; num213++) + else if (npc.ai[0] == 25f) //start phase 5 { - Vector2 position9 = npc.position; - float num214 = Math.Abs(npc.Center.X - Main.player[Main.myPlayer].Center.X); - float num215 = Math.Abs(npc.Center.Y - Main.player[Main.myPlayer].Center.Y); - if (num213 == 0 || num213 == 2) + npc.alpha = 0; + npc.dontTakeDamage = true; + npc.chaseable = false; + npc.velocity *= 0.98f; + npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); + if (npc.ai[2] == (float)(num1459 - 60)) { - position9.X = Main.player[Main.myPlayer].Center.X + num214; - } - else - { - position9.X = Main.player[Main.myPlayer].Center.X - num214; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); } - position9.X -= (float)(npc.width / 2); - if (num213 == 0 || num213 == 1) + npc.ai[2] += 1f; + if (npc.ai[2] >= (float)num1459) { - position9.Y = Main.player[Main.myPlayer].Center.Y + num215; - } + npc.localAI[2] = 1f; + npc.ai[0] = 0f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] = 0f; + npc.netUpdate = true; + return; + } + } + #endregion + } + + #region AI2 + public void Yharon_AI2() + { + bool revenge = (CalamityWorld.revenge || CalamityWorld.bossRushActive); + bool expertMode = Main.expertMode; + bool phase2 = (double)npc.life <= (double)npc.lifeMax * 0.66; + bool phase3 = (double)npc.life <= (double)npc.lifeMax * 0.33; + bool tantrum = (double)npc.life <= (double)npc.lifeMax * 0.04; + npc.defense = 100; + npc.alpha -= 25; + if (npc.alpha < 0) + { + npc.alpha = 0; + } + if (!moveCloser) + { + Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); + if (calamityModMusic != null) + music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/DragonGod"); + else + music = MusicID.LunarBoss; + moveCloser = true; + if ((CalamityWorld.death || CalamityWorld.bossRushActive) && Main.netMode != 1) + { + NPC.NewNPC((int)npc.Center.X, (int)npc.Center.Y, mod.NPCType("DetonatingFlare3"), 0, 0f, 0f, 0f, 0f, 255); + } + string key = "Mods.CalamityMod.FlameText"; + Color messageColor = Color.Orange; + if (Main.netMode == 0) + { + Main.NewText(Language.GetTextValue(key), messageColor); + } + else if (Main.netMode == 2) + { + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key), messageColor); + } + } + if (npc.localAI[3] < 900f) + { + npc.localAI[3] += 1f; + int heal = 5; //180 heals 50% and 30% + healCounter += 1; + if (healCounter >= heal) + { + healCounter = 0; + if (Main.netMode != 1) + { + int fractionHealed = revenge ? 240 : 300; //100000 / 240 * 180 = 75000 healed = 75% heal + if (CalamityWorld.death || CalamityWorld.bossRushActive) + { + fractionHealed = 200; //100000 / 200 * 180 = 90000 healed = 90% heal + } + int healAmt = npc.lifeMax / fractionHealed; + if (healAmt > npc.lifeMax - npc.life) + { + healAmt = npc.lifeMax - npc.life; + } + if (healAmt > 0) + { + npc.life += healAmt; + npc.HealEffect(healAmt, true); + npc.netUpdate = true; + } + } + } + } + else + { + npc.dontTakeDamage = false; + npc.chaseable = true; + } + NPCUtils.TargetClosestBetsy(npc, false, null); + NPCAimedTarget targetData = npc.GetTargetData(true); + if (!targetData.Hitbox.Intersects(safeBox)) + { + protectionBoost = true; + npc.damage = npc.defDamage * 5; + if (npc.timeLeft > 150) + { + npc.timeLeft = 150; + } + } + else + { + npc.damage = expertMode ? 528 : 330; + protectionBoost = false; + if (npc.timeLeft < 3600) + { + npc.timeLeft = 3600; + } + } + int num = -1; + float num2 = 1f; + int num4 = expertMode ? 106 : 125; //600 + float num5 = 10f; + float num6 = revenge ? 0.6f : 0.55f; //0.45 + float scaleFactor = revenge ? 10f : 9f; //7.5 + float num7 = 30f; + float num8 = 30f; + float scaleFactor2 = revenge ? 26f : 24.5f; //23 + float num9 = 600f; + float num10 = 12f; + float num11 = 40f; + float num12 = (CalamityWorld.death && !CalamityWorld.bossRushActive) ? 40f : 80f; + float num13 = num11 + num12; + float num14 = 1500f; + float num15 = 60f; + float scaleFactor3 = 13f; + float amount = 0.0333333351f; + float scaleFactor4 = revenge ? 16f : 14.5f; //12 + int num16 = 10; + int num17 = 6 * num16; + float num18 = 60f; + float num19 = num15 + (float)num17 + num18; + float num20 = 60f; + float num21 = 1f; + float num22 = 6.28318548f * (num21 / num20); + float num23 = 0.1f; + float scaleFactor5 = revenge ? 38f : 36.5f; //32 + if (npc.GetGlobalNPC(mod).enraged) + { + num6 = 0.65f; + scaleFactor = 11f; + scaleFactor2 = 28f; + scaleFactor4 = 18f; + scaleFactor5 = 40f; + } + float num24 = 90f; + float num25 = 20f; + float arg_F9_0 = npc.ai[0]; + float num26; + if (npc.ai[0] == 0f) + { + float[] expr_115_cp_0 = npc.ai; + int expr_115_cp_1 = 1; + num26 = expr_115_cp_0[expr_115_cp_1] + 1f; + expr_115_cp_0[expr_115_cp_1] = num26; + if (num26 >= num5) + { + npc.ai[1] = 0f; + npc.ai[0] = 1f; + npc.ai[2] = 0f; + npc.netUpdate = true; + } + } + else if (npc.ai[0] == 1f) + { + if (npc.ai[2] == 0f) + { + npc.ai[2] = (float)((npc.Center.X < targetData.Center.X) ? 1 : -1); + } + Vector2 destination = targetData.Center + new Vector2(-npc.ai[2] * 300f, -200f); + Vector2 desiredVelocity = npc.DirectionTo(destination) * scaleFactor; + npc.SimpleFlyMovement(desiredVelocity, num6); + int num27 = (npc.Center.X < targetData.Center.X) ? 1 : -1; + npc.direction = (npc.spriteDirection = num27); + float[] expr_225_cp_0 = npc.ai; + int expr_225_cp_1 = 1; + num26 = expr_225_cp_0[expr_225_cp_1] + 1f; + expr_225_cp_0[expr_225_cp_1] = num26; + if (num26 >= num7) + { + int num28 = 1; + if (phase3) + { + switch ((int)npc.ai[3]) + { + case 0: + num28 = 6; //tornado + break; + case 1: + num28 = 2; //charge + break; + case 2: + num28 = 5; //fire circle + break; + case 3: + num28 = 4; //splitting fireballs + break; + case 4: + num28 = 3; //homing fireballs + break; + case 5: + num28 = 6; //tornado + break; + case 6: + case 7: + num28 = 2; //double charge + break; + case 8: + num28 = 5; //fire circle + break; + case 9: + num28 = 4; //splitting fireballs + break; + } + } + else if (phase2) + { + switch ((int)npc.ai[3]) + { + case 0: + num28 = 6; //tornado + break; + case 1: + case 2: + num28 = 2; //charge + break; + case 3: + num28 = 5; //fire circle + break; + case 4: + num28 = 3; //homing fireballs + break; + case 5: + case 6: + num28 = 4; //double splitting fireballs + break; + case 7: + case 8: + num28 = 2; //double charge + break; + case 9: + num28 = 5; //fire circle + break; + } + } + else + { + switch ((int)npc.ai[3]) + { + case 0: + num28 = 6; //tornado + break; + case 1: + case 2: + num28 = 2; //double charge + break; + case 3: + num28 = 3; //homing fireballs + break; + case 4: + num28 = 4; //splitting fireballs + break; + case 5: + case 6: + num28 = 2; //double charge + break; + case 7: + num28 = 5; //fire circle + break; + } + } + npc.ai[0] = (float)num28; + if (tantrum) + { + npc.ai[0] = 2f; + } + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.ai[3] += 1f; + npc.netUpdate = true; + float aiLimit = 8f; + if (phase2) + { + aiLimit = 10f; + } + if (npc.ai[3] >= aiLimit) + { + npc.ai[3] = 0f; + } + switch (num28) + { + case 2: //charge + { + Vector2 vector = npc.DirectionTo(targetData.Center); + npc.spriteDirection = ((vector.X > 0f) ? 1 : -1); + npc.rotation = vector.ToRotation(); + if (npc.spriteDirection == -1) + { + npc.rotation += 3.14159274f; + } + npc.velocity = vector * scaleFactor2; + break; + } + case 3: //homing fireballs + { + Vector2 vector2 = new Vector2((float)((targetData.Center.X > npc.Center.X) ? 1 : -1), 0f); + npc.spriteDirection = ((vector2.X > 0f) ? 1 : -1); + npc.velocity = vector2 * -2f; + break; + } + case 5: //spin move + { + Vector2 vector3 = npc.DirectionTo(targetData.Center); + npc.spriteDirection = ((vector3.X > 0f) ? 1 : -1); + npc.rotation = vector3.ToRotation(); + if (npc.spriteDirection == -1) + { + npc.rotation += 3.14159274f; + } + npc.velocity = vector3 * scaleFactor5; + break; + } + } + } + } + else if (npc.ai[0] == 2f) + { + if (npc.ai[1] == 0f) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + } + float[] expr_498_cp_0 = npc.ai; + int expr_498_cp_1 = 1; + num26 = expr_498_cp_0[expr_498_cp_1] + 1f; + expr_498_cp_0[expr_498_cp_1] = num26; + if (num26 >= num8) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + } + else if (npc.ai[0] == 3f) //homing fireball spit + { + npc.ai[1] += 1f; + int num29 = (npc.Center.X < targetData.Center.X) ? 1 : -1; + npc.ai[2] = (float)num29; + if (npc.ai[1] < num11) + { + Vector2 vector4 = targetData.Center + new Vector2((float)num29 * -num9, -250f); + Vector2 value = npc.DirectionTo(vector4) * num10; + if (npc.Distance(vector4) < num10) + { + npc.Center = vector4; + } + else + { + npc.position += value; + } + if (Vector2.Distance(vector4, npc.Center) < 16f) + { + npc.ai[1] = num11 - 1f; + } + num2 = 1.5f; + } + if (npc.ai[1] == num11) + { + int num30 = (targetData.Center.X > npc.Center.X) ? 1 : -1; + npc.velocity = new Vector2((float)num30, 0f) * 22f; //10f + npc.direction = (npc.spriteDirection = num30); + } + if (npc.ai[1] >= num11) + { + if (npc.ai[1] % 10 == 0 && Main.netMode != 1) + { + float num33 = 30f; + Vector2 position = npc.Center + new Vector2((110f /* 110f */ + num33) * (float)npc.direction, -20f /* 20f */).RotatedBy((double)npc.rotation, + default(Vector2)); + Projectile.NewProjectile(position, npc.velocity, mod.ProjectileType("YharonFireballHoming"), num4, 0f, Main.myPlayer, 0f, 0f); + } + num2 = 1.5f; + if (Math.Abs(targetData.Center.X - npc.Center.X) > 550f && Math.Abs(npc.velocity.X) < 20f) + { + npc.velocity.X = npc.velocity.X + (float)Math.Sign(npc.velocity.X) * 0.5f; + } + } + if (npc.ai[1] >= num13) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + } + else if (npc.ai[0] == 4f) //splitting fireball spit + { + int num31 = (npc.Center.X < targetData.Center.X) ? 1 : -1; + npc.ai[2] = (float)num31; + if (npc.ai[1] < num15) + { + Vector2 vector5 = targetData.Center + new Vector2((float)num31 * -num14, -350f); + Vector2 value2 = npc.DirectionTo(vector5) * scaleFactor3; + npc.velocity = Vector2.Lerp(npc.velocity, value2, amount); + int num32 = (npc.Center.X < targetData.Center.X) ? 1 : -1; + npc.direction = (npc.spriteDirection = num32); + if (Vector2.Distance(vector5, npc.Center) < 16f) + { + npc.ai[1] = num15 - 1f; + } + num2 = 1.5f; + } + else if (npc.ai[1] == num15) + { + Vector2 vector6 = npc.DirectionTo(targetData.Center); + vector6.Y *= 0.25f; + vector6 = vector6.SafeNormalize(Vector2.UnitX * (float)npc.direction); + npc.spriteDirection = ((vector6.X > 0f) ? 1 : -1); + npc.rotation = vector6.ToRotation(); + if (npc.spriteDirection == -1) + { + npc.rotation += 3.14159274f; + } + npc.velocity = vector6 * scaleFactor4; + } else { - position9.Y = Main.player[Main.myPlayer].Center.Y - num215; + npc.position.X = npc.position.X + npc.DirectionTo(targetData.Center).X * 7f; + npc.position.Y = npc.position.Y + npc.DirectionTo(targetData.Center + new Vector2(0f, -400f)).Y * 6f; + if (npc.ai[1] <= num19 - num18) + { + num2 = 1.5f; + } + float num33 = 30f; + Vector2 position = npc.Center + new Vector2((110f /* 110f */ + num33) * (float)npc.direction, -20f).RotatedBy((double)npc.rotation, + default(Vector2)); + int num34 = (int)(npc.ai[1] - num15 + 1f); + if (num34 <= num17 && num34 % num16 == 0 && Main.netMode != 1) + { + Projectile.NewProjectile(position, npc.velocity, mod.ProjectileType("YharonFireball"), num4, 0f, Main.myPlayer, 0f, 0f); //change + } + } + if (npc.ai[1] > num19 - num18) + { + npc.velocity.Y = npc.velocity.Y - 0.1f; + } + npc.ai[1] += 1f; + if (npc.ai[1] >= num19) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; } - position9.Y -= (float)(npc.height / 2); - Main.spriteBatch.Draw(Main.npcTexture[npc.type], new Vector2(position9.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)Main.npcTexture[npc.type].Width * npc.scale / 2f + vector11.X * npc.scale, position9.Y - Main.screenPosition.Y + (float)npc.height - (float)Main.npcTexture[npc.type].Height * npc.scale / (float)Main.npcFrameCount[npc.type] + 4f + vector11.Y * npc.scale + num66 + npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(frame6), alpha15, npc.rotation, vector11, npc.scale, spriteEffects, 0f); } - Main.spriteBatch.Draw(Main.npcTexture[npc.type], new Vector2(npc.position.X - Main.screenPosition.X + (float)(npc.width / 2) - (float)Main.npcTexture[npc.type].Width * npc.scale / 2f + vector11.X * npc.scale, npc.position.Y - Main.screenPosition.Y + (float)npc.height - (float)Main.npcTexture[npc.type].Height * npc.scale / (float)Main.npcFrameCount[npc.type] + 4f + vector11.Y * npc.scale + num66 + npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(frame6), npc.GetAlpha(color9), npc.rotation, vector11, npc.scale, spriteEffects, 0f); + else if (npc.ai[0] == 5f) + { + npc.velocity = npc.velocity.RotatedBy((double)(-(double)num22 * (float)npc.direction), default(Vector2)); + npc.position.Y = npc.position.Y - num23; + npc.position += npc.DirectionTo(targetData.Center) * 10f; + npc.rotation -= num22 * (float)npc.direction; + num2 *= 0.7f; + if (npc.ai[1] == 1f) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort"), (int)npc.position.X, (int)npc.position.Y); + } + float[] expr_B0F_cp_0 = npc.ai; + int expr_B0F_cp_1 = 1; + num26 = expr_B0F_cp_0[expr_B0F_cp_1] + 1f; + expr_B0F_cp_0[expr_B0F_cp_1] = num26; + if (npc.ai[1] % 12 == 0 && Main.netMode != 1) + { + float num33 = 30f; + Vector2 position = npc.Center + new Vector2((110f /* 110f */ + num33) * (float)npc.direction, -20f /* 20f */).RotatedBy((double)npc.rotation, + default(Vector2)); + int projectileType = (((npc.ai[1] / 2) % 12 == 0) ? mod.ProjectileType("YharonFireball") : mod.ProjectileType("YharonFireballHoming")); + Projectile.NewProjectile(position, npc.velocity, projectileType, num4, 0f, Main.myPlayer, 0f, 0f); + } + if (num26 >= num20) + { + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + npc.velocity /= 2f; + } + } + else if (npc.ai[0] == 6f) //birb spawn + { + if (npc.ai[1] == 0f) + { + Vector2 destination2 = targetData.Center + new Vector2(0f, -200f); + Vector2 desiredVelocity2 = npc.DirectionTo(destination2) * scaleFactor * 2f; + npc.SimpleFlyMovement(desiredVelocity2, num6 * 2f); + int num35 = (npc.Center.X < targetData.Center.X) ? 1 : -1; + npc.direction = (npc.spriteDirection = num35); + npc.ai[2] += 1f; + if (npc.Distance(targetData.Center) < 1000f || npc.ai[2] >= 180f) //450f + { + npc.ai[1] = 1f; + npc.netUpdate = true; + } + } + else + { + if (npc.ai[1] == 1f) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoar"), (int)npc.position.X, (int)npc.position.Y); + } + if (npc.ai[1] < num25) + { + npc.velocity *= 0.95f; + } + else + { + npc.velocity *= 0.98f; + } + if (npc.ai[1] == num25) + { + if (npc.velocity.Y > 0f) + { + npc.velocity.Y = npc.velocity.Y / 3f; + } + npc.velocity.Y = npc.velocity.Y - 3f; + } + num2 *= 0.85f; + bool flag3 = npc.ai[1] == 20f || npc.ai[1] == 45f || npc.ai[1] == 70f; + if (NPC.CountNPCS(mod.NPCType("Bumblefuck3")) > 2) + { + flag3 = false; + } + if (flag3 && Main.netMode != 1) + { + Vector2 vector7 = npc.Center + (6.28318548f * Main.rand.NextFloat()).ToRotationVector2() * new Vector2(2f, 1f) * 100f * (0.6f + Main.rand.NextFloat() * 0.4f); + if (Vector2.Distance(vector7, targetData.Center) > 100f) + { + Point point2 = vector7.ToPoint(); + NPC.NewNPC(point2.X, point2.Y, mod.NPCType("Bumblefuck3"), npc.whoAmI, 0f, 0f, 0f, 0f, 255); + } + NPC.NewNPC((int)npc.Center.X + (Main.rand.Next(2) == 0 ? 100 : -100), (int)npc.Center.Y - 100, mod.NPCType("Bumblefuck3"), 0, 0f, 0f, 0f, 0f, 255); + } + npc.ai[1] += 1f; + } + if (npc.ai[1] >= num24) + { + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, 0f, 0f, mod.ProjectileType("BigFlare"), 0, 0f, Main.myPlayer, 1f, (float)(npc.target + 1)); + Boom(600, num4); + npc.ai[0] = 1f; + npc.ai[1] = 0f; + npc.ai[2] = 0f; + } + } + npc.localAI[0] += num2; + if (npc.localAI[0] >= 36f) + { + npc.localAI[0] = 0f; + } + if (num != -1) + { + npc.localAI[0] = (float)(num * 4); + } + float[] expr_11FC_cp_0 = npc.localAI; + int expr_11FC_cp_1 = 1; + num26 = expr_11FC_cp_0[expr_11FC_cp_1] + 1f; + expr_11FC_cp_0[expr_11FC_cp_1] = num26; + if (num26 >= 60f) + { + npc.localAI[1] = 0f; + } + float num42 = npc.DirectionTo(targetData.Center).ToRotation(); + float num43 = 0.04f; + switch ((int)npc.ai[0]) + { + case 2: + case 5: + num43 = 0f; + break; + case 3: + num43 = 0.01f; + num42 = 0f; + if (npc.spriteDirection == -1) + { + num42 -= 3.14159274f; + } + if (npc.ai[1] >= num11) + { + num42 += (float)npc.spriteDirection * 3.14159274f / 12f; + num43 = 0.05f; + } + break; + case 4: + num43 = 0.01f; + num42 = 3.14159274f; + if (npc.spriteDirection == 1) + { + num42 += 3.14159274f; + } + break; + case 6: + num43 = 0.02f; + num42 = 0f; + if (npc.spriteDirection == -1) + { + num42 -= 3.14159274f; + } + break; + } + if (npc.spriteDirection == -1) + { + num42 += 3.14159274f; + } + if (num43 != 0f) + { + npc.rotation = npc.rotation.AngleTowards(num42, num43); + } + } + #endregion + + #region Drawing + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + SpriteEffects spriteEffects = SpriteEffects.None; + if (npc.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Texture2D texture = Main.npcTexture[npc.type]; + Microsoft.Xna.Framework.Rectangle frame6 = npc.frame; + Microsoft.Xna.Framework.Color color9 = Lighting.GetColor((int)((double)npc.position.X + (double)npc.width * 0.5) / 16, (int)(((double)npc.position.Y + (double)npc.height * 0.5) / 16.0)); + int num156 = texture.Height / Main.npcFrameCount[npc.type]; + int y3 = num156 * (int)npc.frameCounter; + Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture.Width, num156); + Vector2 origin2 = rectangle.Size() / 2f; + int num157 = 8; + int num158 = 2; + int num159 = 1; + float num160 = 0f; + int num161 = num159; + if (npc.localAI[2] == 1f && !phaseOneLoot) + { + bool drawAfterImage2 = (npc.ai[0] == 2f || npc.ai[0] == 3f || npc.ai[0] == 4f || npc.ai[0] == 5f) && Lighting.NotRetro; + SpriteEffects spriteEffects2 = spriteEffects ^ SpriteEffects.FlipHorizontally; + if (npc.localAI[3] < 900f) + { + color9 = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, 0); + } + Microsoft.Xna.Framework.Color alpha16 = npc.GetAlpha(color9); + while (drawAfterImage2 && ((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157))) + { + goto IL_6899; + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + alpha16 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); //1.5 + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(frame6), alpha16, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects2.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects2, 0f); + goto IL_6881; + } + Main.spriteBatch.Draw(texture, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(frame6), npc.GetAlpha(color9), npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects2, 0); + return false; + } + Microsoft.Xna.Framework.Color alpha15 = npc.GetAlpha(color9); + bool drawAfterImage = (npc.ai[0] == 1f || npc.ai[0] == 5f || npc.ai[0] == 7f || npc.ai[0] == 8f || npc.ai[0] == 11f || npc.ai[0] == 12f || + npc.ai[0] == 14f || npc.ai[0] == 15f || npc.ai[0] == 18f || npc.ai[0] == 19f || npc.ai[0] == 22f) && Lighting.NotRetro; + while (drawAfterImage && ((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157))) + { + goto IL_6899; + IL_6881: + num161 += num158; + continue; + IL_6899: + float num164 = (float)(num157 - num161); + if (num158 < 0) + { + num164 = (float)(num159 - num161); + } + alpha15 *= num164 / ((float)NPCID.Sets.TrailCacheLength[npc.type] * 1.5f); //1.5 + Vector2 value4 = (npc.oldPos[num161]); + float num165 = npc.rotation; + Main.spriteBatch.Draw(texture, value4 + npc.Size / 2f - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(frame6), alpha15, num165 + npc.rotation * num160 * (float)(num161 - 1) * -(float)spriteEffects.HasFlag(SpriteEffects.FlipHorizontally).ToDirectionInt(), origin2, npc.scale, spriteEffects, 0f); + goto IL_6881; + } + Main.spriteBatch.Draw(texture, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(frame6), npc.GetAlpha(color9), npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0); return false; } - #endregion + #endregion - #region Loot - public override void NPCLoot() + #region Loot + public override void NPCLoot() { - if (!dropLoot) - { - return; - } - if (npc.localAI[2] == 1f) - { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BossRush")); - } - if (Main.rand.Next(10) == 0 && npc.localAI[2] == 1f) + if (!dropLoot) + { + return; + } + if (npc.localAI[2] == 1f) + { + Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("BossRush")); + } + if (Main.rand.Next(10) == 0 && npc.localAI[2] == 1f) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("YharonTrophy")); } - if (CalamityWorld.armageddon) - { - for (int i = 0; i < 10; i++) - { - npc.DropBossBags(); - } - } - if (Main.expertMode) + if (CalamityWorld.armageddon) { - if (npc.localAI[2] == 1f) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("HellcasterFragment"), Main.rand.Next(22, 29), true); - } + for (int i = 0; i < 5; i++) + { + npc.DropBossBags(); + } + } + if (Main.expertMode) + { + if (npc.localAI[2] == 1f) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("HellcasterFragment"), Main.rand.Next(22, 29), true); + } npc.DropBossBags(); } else { - if (npc.localAI[2] == 1f) - { - npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("HellcasterFragment"), Main.rand.Next(15, 23), true); - } - if (Main.rand.Next(7) == 0) + if (npc.localAI[2] == 1f) + { + npc.DropItemInstanced(npc.position, npc.Size, mod.ItemType("HellcasterFragment"), Main.rand.Next(15, 23), true); + } + if (Main.rand.Next(7) == 0) { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, mod.ItemType("YharonMask")); } @@ -2602,40 +2613,40 @@ namespace CalamityMod.NPCs.Yharon } } } - #endregion - public override void BossLoot(ref string name, ref int potionType) + public override void BossLoot(ref string name, ref int potionType) { potionType = mod.ItemType("SupremeHealingPotion"); } + #endregion - #region DamageFormula - public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) + #region DamageFormula + public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit) { - if (damage > npc.lifeMax / 10) - { - damage = 0; - return false; - } - double newDamage = (damage + (int)((double)defense * 0.25)); - if (newDamage < 1.0) + if (damage > npc.lifeMax / 10) + { + damage = 0; + return false; + } + double newDamage = (damage + (int)((double)defense * 0.25)); + if (newDamage < 1.0) { newDamage = 1.0; } if (newDamage >= 1.0) { - if (npc.localAI[2] == 1f) - { - float protection = (((npc.ichor || npc.onFire2) ? 0.17f : 0.22f) + - (protectionBoost ? 0.68f : 0f)); //0.85 or 0.9 - newDamage = (double)((int)((double)(1f - protection) * newDamage)); - } - else - { - float protection = (((npc.ichor || npc.onFire2) ? 0.12f : 0.17f) + - (protectionBoost ? 0.73f : 0f)); //0.85 or 0.9 - newDamage = (double)((int)((double)(1f - protection) * newDamage)); - } + if (npc.localAI[2] == 1f) + { + float protection = (((npc.ichor || npc.onFire2) ? 0.17f : 0.22f) + + (protectionBoost ? 0.68f : 0f)); //0.85 or 0.9 + newDamage = (double)((int)((double)(1f - protection) * newDamage)); + } + else + { + float protection = (((npc.ichor || npc.onFire2) ? 0.12f : 0.17f) + + (protectionBoost ? 0.73f : 0f)); //0.85 or 0.9 + newDamage = (double)((int)((double)(1f - protection) * newDamage)); + } if (newDamage < 1.0) { newDamage = 1.0; @@ -2644,25 +2655,33 @@ namespace CalamityMod.NPCs.Yharon damage = newDamage; return true; } - #endregion + #endregion - public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) + #region HPBarCooldownSlotandStats + public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) { scale = 2f; return null; } - + public override bool CanHitPlayer(Player target, ref int cooldownSlot) { cooldownSlot = 1; return true; } - #region FindFrame - public override void FindFrame(int frameHeight) + public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { - if ((npc.localAI[2] != 1f && (npc.ai[0] == 0f || npc.ai[0] == 6f || npc.ai[0] == 13f || npc.ai[0] == 21f)) || - (npc.localAI[2] == 1f && (npc.ai[0] == 5f || npc.ai[0] < 3f))) //idle + npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); + npc.damage = (int)(npc.damage * 0.8f); + } + #endregion + + #region FindFrame + public override void FindFrame(int frameHeight) + { + if ((npc.localAI[2] != 1f && (npc.ai[0] == 0f || npc.ai[0] == 6f || npc.ai[0] == 13f || npc.ai[0] == 21f)) || + (npc.localAI[2] == 1f && (npc.ai[0] == 5f || npc.ai[0] < 3f))) //idle { int num84 = 4; //5 if (npc.localAI[2] != 1f && (npc.ai[0] == 6f || npc.ai[0] == 13f || npc.ai[0] == 21f)) //Phase ai switch @@ -2680,13 +2699,13 @@ namespace CalamityMod.NPCs.Yharon npc.frame.Y = 0; } } - if ((npc.localAI[2] != 1f && (npc.ai[0] == 1f || npc.ai[0] == 5f || npc.ai[0] == 7f || npc.ai[0] == 11f || - npc.ai[0] == 14f || npc.ai[0] == 18f || npc.ai[0] == 22f)) || (npc.localAI[2] == 1f && (npc.ai[0] == 6f))) //Charging or birb spawn + if ((npc.localAI[2] != 1f && (npc.ai[0] == 1f || npc.ai[0] == 5f || npc.ai[0] == 7f || npc.ai[0] == 11f || + npc.ai[0] == 14f || npc.ai[0] == 18f || npc.ai[0] == 22f)) || (npc.localAI[2] == 1f && (npc.ai[0] == 6f))) //Charging or birb spawn { npc.frame.Y = frameHeight * 5; //6 } - if ((npc.localAI[2] != 1f && (npc.ai[0] == 2f || npc.ai[0] == 8f || npc.ai[0] == 12f || npc.ai[0] == 15f || npc.ai[0] == 19f || npc.ai[0] == 23f)) || - (npc.localAI[2] == 1f && (npc.ai[0] == 4f || npc.ai[0] == 3f))) //Fireball spit or circle or flamethrower + if ((npc.localAI[2] != 1f && (npc.ai[0] == 2f || npc.ai[0] == 8f || npc.ai[0] == 12f || npc.ai[0] == 15f || npc.ai[0] == 19f || npc.ai[0] == 23f)) || + (npc.localAI[2] == 1f && (npc.ai[0] == 4f || npc.ai[0] == 3f))) //Fireball spit or circle or flamethrower { npc.frame.Y = frameHeight * 5; //6 } @@ -2741,37 +2760,33 @@ namespace CalamityMod.NPCs.Yharon } } } - #endregion + #endregion - public override void ScaleExpertStats(int numPlayers, float bossLifeScale) + #region Boom + public void Boom(int timeLeft, int damage) { - npc.lifeMax = (int)(npc.lifeMax * 0.8f * bossLifeScale); - npc.damage = (int)(npc.damage * 0.8f); + if (Main.netMode != 1) + { + Vector2 valueBoom = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); + float spreadBoom = 15f * 0.0174f; + double startAngleBoom = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spreadBoom / 2; + double deltaAngleBoom = spreadBoom / 8f; + double offsetAngleBoom; + int iBoom; + for (iBoom = 0; iBoom < 25; iBoom++) + { + offsetAngleBoom = (startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f) + 32f * iBoom; + int boom1 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 5f), (float)(Math.Cos(offsetAngleBoom) * 5f), mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); + int boom2 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 5f), (float)(-Math.Cos(offsetAngleBoom) * 5f), mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); + Main.projectile[boom1].timeLeft = timeLeft; + Main.projectile[boom2].timeLeft = timeLeft; + } + } } + #endregion - public void Boom(int timeLeft, int damage) - { - if (Main.netMode != 1) - { - Vector2 valueBoom = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); - float spreadBoom = 15f * 0.0174f; - double startAngleBoom = Math.Atan2(npc.velocity.X, npc.velocity.Y) - spreadBoom / 2; - double deltaAngleBoom = spreadBoom / 8f; - double offsetAngleBoom; - int iBoom; - for (iBoom = 0; iBoom < 25; iBoom++) - { - offsetAngleBoom = (startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f) + 32f * iBoom; - int boom1 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 5f), (float)(Math.Cos(offsetAngleBoom) * 5f), mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); - int boom2 = Projectile.NewProjectile(valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 5f), (float)(-Math.Cos(offsetAngleBoom) * 5f), mod.ProjectileType("FlareBomb"), damage, 0f, Main.myPlayer, 0f, 0f); - Main.projectile[boom1].timeLeft = timeLeft; - Main.projectile[boom2].timeLeft = timeLeft; - } - } - } - - #region HitEffect - public override void HitEffect(int hitDirection, double damage) + #region HitEffect + public override void HitEffect(int hitDirection, double damage) { for (int k = 0; k < 5; k++) { @@ -2779,7 +2794,7 @@ namespace CalamityMod.NPCs.Yharon } if (npc.life <= 0) { - Boom(150, 1000); + Boom(150, 1000); npc.position.X = npc.position.X + (float)(npc.width / 2); npc.position.Y = npc.position.Y + (float)(npc.height / 2); npc.width = 300; @@ -2806,6 +2821,6 @@ namespace CalamityMod.NPCs.Yharon } } } - #endregion - } + #endregion + } } \ No newline at end of file diff --git a/Projectiles/Amidias/AmidiasTridentProj.cs b/Projectiles/Amidias/AmidiasTridentProj.cs new file mode 100644 index 0000000000..ec62d2fa43 --- /dev/null +++ b/Projectiles/Amidias/AmidiasTridentProj.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class AmidiasTridentProj : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Trident"); + } + + public override void SetDefaults() + { + projectile.width = 70; + projectile.aiStyle = 19; + projectile.melee = true; + projectile.timeLeft = 90; + projectile.height = 70; + projectile.friendly = true; + projectile.hostile = false; + projectile.tileCollide = false; + projectile.ignoreWater = true; + projectile.penetrate = -1; + projectile.ownerHitCheck = true; + projectile.hide = true; + } + + public override void AI() + { + Main.player[projectile.owner].direction = projectile.direction; + Main.player[projectile.owner].heldProj = projectile.whoAmI; + Main.player[projectile.owner].itemTime = Main.player[projectile.owner].itemAnimation; + projectile.position.X = Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2) - (float)(projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2) - (float)(projectile.height / 2); + projectile.position += projectile.velocity * projectile.ai[0]; + if (projectile.ai[0] == 0f) + { + projectile.ai[0] = 3f; + projectile.netUpdate = true; + } + if (Main.player[projectile.owner].itemAnimation < Main.player[projectile.owner].itemAnimationMax / 3) + { + projectile.ai[0] -= 1f; + if (projectile.localAI[0] == 0f && Main.myPlayer == projectile.owner && NPC.downedBoss3) + { + projectile.localAI[0] = 1f; + Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X * projectile.ai[0], projectile.Center.Y + projectile.velocity.Y * projectile.ai[0], projectile.velocity.X * 0.8f, projectile.velocity.Y * 0.8f, mod.ProjectileType("AmidiasWhirlpool"), projectile.damage, projectile.knockBack * 0.85f, projectile.owner, 0f, 0f); + } + } + else + { + projectile.ai[0] += 0.75f; + } + + if (Main.player[projectile.owner].itemAnimation == 0) + { + projectile.Kill(); + } + + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if (projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/AmidiasTridentProj.png b/Projectiles/Amidias/AmidiasTridentProj.png new file mode 100644 index 0000000000000000000000000000000000000000..eed265f5361d0b6f4cfaa91ae568d63e30db6326 GIT binary patch literal 879 zcmV-#1CacQP)sbaMYTzBg?b_E{I}lBPe{w4I9(!j5?l%)_Upu>W4)PbjH52u9aVz%T&40YhWR z$mKs!HTbG9)SPEES0N@{89tHIFxLU?1zNmR1Wa&B5A;9?=-R1GXfXM`NIChnCktRZ zHpb9PO29C|0L{7k`Ha%yZNnGXZmHW=V$tGXRlbkem!bKPE3tjqX_}T{VZzd7|4|0hWedz{^BO{6+yLYy%Rem5HLBykATsT zqEn@hs#oC?wr0r3ZVd7gFrJtbnK7=J6FC@H00|i8($5u`L)|2gVja0><`Ui3>sbnzpdkn0)tE)`OvdqPlM-U|fwc^thwCZ{>_J zQD0Kdfr%<83m9Kw3>R~bdQ|SLF~@yLIS)n`l<6}L)HrT!pnzc>2Jr?AH3uIn8W_8z zNP;WEbSu{dOk9kiYX(Ojyar?Ld@EMW(XBi7&KLp1BxV#0t`VGW51xgU5DJ+7OZr~7wxUQHAcXYSi>!vJZw<*))?f4-E!=~aCaNH-imu_ z#yevK3`and-*7>h{>z5g86#i}dn-CB$L-h|LwhR@%s;*a!dW#s94`O>002ovPDHLk FV1kc6lbiqm literal 0 HcmV?d00001 diff --git a/Projectiles/Amidias/AmidiasWhirlpool.cs b/Projectiles/Amidias/AmidiasWhirlpool.cs new file mode 100644 index 0000000000..c4fea0f760 --- /dev/null +++ b/Projectiles/Amidias/AmidiasWhirlpool.cs @@ -0,0 +1,166 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class AmidiasWhirlpool : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Whirlpool"); + } + + public override void SetDefaults() + { + projectile.width = 32; + projectile.height = 32; + projectile.friendly = true; + projectile.penetrate = 3; + projectile.extraUpdates = 1; + projectile.alpha = 100; + projectile.tileCollide = false; + projectile.ignoreWater = true; + projectile.melee = true; + } + + public override void AI() + { + for (int num105 = 0; num105 < 2; num105++) + { + float num99 = projectile.velocity.X / 3f * (float)num105; + float num100 = projectile.velocity.Y / 3f * (float)num105; + int num101 = 4; + int num102 = Dust.NewDust(new Vector2(projectile.position.X + (float)num101, projectile.position.Y + (float)num101), projectile.width - num101 * 2, projectile.height - num101 * 2, 33, 0f, 0f, 0, new Color(0, 142, 255), 1.5f); + Main.dust[num102].noGravity = true; + Main.dust[num102].velocity *= 0.1f; + Main.dust[num102].velocity += projectile.velocity * 0.1f; + Dust expr_47FA_cp_0 = Main.dust[num102]; + expr_47FA_cp_0.position.X = expr_47FA_cp_0.position.X - num99; + Dust expr_4815_cp_0 = Main.dust[num102]; + expr_4815_cp_0.position.Y = expr_4815_cp_0.position.Y - num100; + } + float[] var_2_2DDF8_cp_0 = projectile.ai; + int var_2_2DDF8_cp_1 = 0; + float num73 = var_2_2DDF8_cp_0[var_2_2DDF8_cp_1]; + var_2_2DDF8_cp_0[var_2_2DDF8_cp_1] = num73 + 1f; + int num1013 = 0; + if (projectile.velocity.Length() <= 8f) //4 + { + num1013 = 1; + } + if (num1013 == 0) + { + projectile.rotation -= 0.104719758f; + + if (projectile.ai[0] >= 30f) + { + projectile.velocity *= 0.98f; + projectile.rotation -= 0.0174532924f; + } + if (projectile.velocity.Length() < 8.2f) //4.1 + { + projectile.velocity.Normalize(); + projectile.velocity *= 4f; + projectile.ai[0] = 0f; + } + } + else if (num1013 == 1) + { + int num3; + projectile.rotation -= 0.104719758f; + Vector2 vector145 = projectile.Center; + float num1015 = 300f; + bool flag59 = false; + int num1016 = 0; + if (projectile.ai[1] == 0f) + { + for (int num1017 = 0; num1017 < 200; num1017 = num3 + 1) + { + if (Main.npc[num1017].CanBeChasedBy(projectile, false)) + { + Vector2 center13 = Main.npc[num1017].Center; + if (projectile.Distance(center13) < num1015 && Collision.CanHit(new Vector2(projectile.position.X + (float)(projectile.width / 2), projectile.position.Y + (float)(projectile.height / 2)), 1, 1, Main.npc[num1017].position, Main.npc[num1017].width, Main.npc[num1017].height)) + { + num1015 = projectile.Distance(center13); + vector145 = center13; + flag59 = true; + num1016 = num1017; + } + } + num3 = num1017; + } + if (flag59) + { + if (projectile.ai[1] != (float)(num1016 + 1)) + { + projectile.netUpdate = true; + } + projectile.ai[1] = (float)(num1016 + 1); + } + flag59 = false; + } + if (projectile.ai[1] != 0f) + { + int num1018 = (int)(projectile.ai[1] - 1f); + if (Main.npc[num1018].active && Main.npc[num1018].CanBeChasedBy(projectile, true) && projectile.Distance(Main.npc[num1018].Center) < 1000f) + { + flag59 = true; + vector145 = Main.npc[num1018].Center; + } + } + if (!projectile.friendly) + { + flag59 = false; + } + if (flag59) + { + float num1019 = 24f; + int num1020 = 10; + Vector2 vector146 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num1021 = vector145.X - vector146.X; + float num1022 = vector145.Y - vector146.Y; + float num1023 = (float)Math.Sqrt((double)(num1021 * num1021 + num1022 * num1022)); + num1023 = num1019 / num1023; + num1021 *= num1023; + num1022 *= num1023; + projectile.velocity.X = (projectile.velocity.X * (float)(num1020 - 1) + num1021) / (float)num1020; + projectile.velocity.Y = (projectile.velocity.Y * (float)(num1020 - 1) + num1022) / (float)num1020; + } + } + Lighting.AddLight(projectile.Center, 0f, 0.1f, 0.9f); + if (projectile.ai[0] >= 120f) + { + projectile.Kill(); + return; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D texture2D13 = Main.projectileTexture[projectile.type]; + int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; + int y6 = num214 * projectile.frame; + Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(30, 255, 253); + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + for (int k = 0; k < 20; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 33, projectile.oldVelocity.X, projectile.oldVelocity.Y, 0, new Color(0, 142, 255), 1f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/AmidiasWhirlpool.png b/Projectiles/Amidias/AmidiasWhirlpool.png new file mode 100644 index 0000000000000000000000000000000000000000..27623e2df6f7096379da455ce56a4027390fc032 GIT binary patch literal 1125 zcmV-r1e*JaP)BBiK=L~AO7jTJH4_?H+fE5l!6qajo_8Y>bzNeCD$C43}i ziVeht1vhIkb9VNfox8KMlAw8W8kl`EkLCU5+;`u7FTg*dvAGrg+DdC5sZ0a_a9%$F z0Q~y#DOdkD2LEdRmxiwU3s{=E^T4@2-rsEj30cH%K)+-QqIuQfv0So+K+nH z8=~#Zs68*mKg-o>lBBrj9@(44rG{qRdU7yo|iE6-UcrWRoR~}-bT#t6tft~xU9R_cRcCB2jU9q9@@c;mRpPr`Xy#1~t^*+nf ze4g{9RY&HoS}-2%EN~Z2;ptV=Byx`WD!ksTpKPpxOHACv!0gv}d zt^HJQh-U6Bs%Lfepd?sBqO>A!&5QbZzjb4MbF@C}9nmX0l|m0??Wu6Yw`Alss#;N7 z`=cz9%z?cjn%kp{c3G<$&T~57>iwE=b?kcr=&o#7yL0-Su4W3Nltom%s8u>WlVH_) zlq@qa&fAx@T3=@<^xP4})l5N@$|6c>?#Yp5U6|FxERX9>c3u_h(SC0vDdv_u!KGxm zieT=^l|Q2(pFdtp-yc=wJ!x&p8=`&t!15}UvQzGy7P;#4ym{pf(cHPNdW~eQjD@-? rGK0z+qPgd)th0mK_jQw`ydnAr9a2GxX7%z<00000NkvXXu0mjf4FMrw literal 0 HcmV?d00001 diff --git a/Projectiles/Amidias/BigCoral.cs b/Projectiles/Amidias/BigCoral.cs new file mode 100644 index 0000000000..6434801961 --- /dev/null +++ b/Projectiles/Amidias/BigCoral.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class BigCoral : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Big Coral"); + } + + public override void SetDefaults() + { + projectile.width = 18; + projectile.height = 34; + projectile.friendly = true; + projectile.ranged = true; + projectile.penetrate = 1; + projectile.aiStyle = 1; + } + + public override void AI() + { + projectile.velocity.X *= 0.999f; + projectile.velocity.Y = projectile.velocity.Y + 0.025f; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 18; + projectile.height = 34; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num621 = 0; num621 < 10; num621++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 51, projectile.oldVelocity.X / 4, projectile.oldVelocity.Y / 4, 0, new Color(234, 183, 100), 1.5f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (target.rarity != 2 && !target.boss) + { + target.AddBuff(mod.BuffType("SilvaStun"), 15); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/BigCoral.png b/Projectiles/Amidias/BigCoral.png new file mode 100644 index 0000000000000000000000000000000000000000..202f90cb5886f9d5155f491d27e8b7b0d17a5e0b GIT binary patch literal 489 zcmV1vdHaIv`t;Nz(C@uk8z*apU8GM>^ zzWFkm2YW9$QIyiS-F)+uvH=>eLjaC$SIH{cF8~*<)%RWxYL!AHsj@`SecUX1+1qO$ z1CV?E0$|eq!2JUNilvko^sR+Qc|BPT4f+<vJn<4z!txRN?f^s&TX}|l+S)1Nigf@8Iz~Un4jfMOc>5T=2O!Asq z_Q*C&vFJJ1o2Dd7L2c}j%$q18hors_Z0?ORQJkc8B&%SVVu|9skrJtTvoX=83K6M# f6H65A?l}DcT#unq{8^W|00000NkvXXu0mjfQ- 0.5f) + { + projectile.spriteDirection = 1; + } + else if(projectile.velocity.X < 0.5f) + { + projectile.spriteDirection = -1; + }*/ + if (spawnDust) + { + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 20; + for (int num502 = 0; num502 < num501; num502++) + { + int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 33, 0f, 0f, 0, default(Color), 1f); + Main.dust[num503].velocity *= 2f; + Main.dust[num503].scale *= 1.15f; + } + spawnDust = false; + } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("HermitCrab"); + Player player = Main.player[projectile.owner]; + CalamityPlayer modPlayer = player.GetModPlayer(mod); + player.AddBuff(mod.BuffType("HermitCrab"), 3600); + if (flag64) + { + if (player.dead) + { + modPlayer.hCrab = false; + } + if (modPlayer.hCrab) + { + projectile.timeLeft = 2; + } + } + Vector2 vector46 = projectile.position; + if (!fly) + { + Vector2 center2 = projectile.Center; + Vector2 vector48 = player.Center - center2; + float playerDistance = vector48.Length(); + if (projectile.velocity.Y == 0 && (HoleBelow() || (playerDistance > 205f && projectile.position.X == projectile.oldPosition.X))) + { + projectile.velocity.Y = -10f; + } + projectile.velocity.Y += 0.6f; + if (projectile.velocity.X != 0f) + { + projectile.frameCounter++; + } + + if (projectile.frameCounter > 4) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + float num633 = 600f; + bool chaseNPC = false; + float npcPositionX = 0f; + for (int num645 = 0; num645 < 200; num645++) + { + NPC npcTarget = Main.npc[num645]; + if (npcTarget.CanBeChasedBy(projectile, false)) + { + float num646 = Vector2.Distance(npcTarget.Center, projectile.Center); + if (((Vector2.Distance(projectile.Center, vector46) > num646 && num646 < num633) || !chaseNPC)) + { + num633 = num646; + vector46 = npcTarget.Center; + npcPositionX = npcTarget.position.X; + chaseNPC = true; + } + } + } + if (chaseNPC) + { + if (npcPositionX - projectile.position.X > 0f) + { + switch (Main.rand.Next(1, 2)) + { + + case 1: + projectile.velocity.X += 0.10f; + break; + + case 2: + projectile.velocity.X += 0.15f; + break; + } + + if (projectile.velocity.X > 6f) + { + projectile.velocity.X = 6f; + } + } + else + { + switch (Main.rand.Next(1, 2)) + { + + case 1: + projectile.velocity.X -= 0.10f; + break; + + case 2: + projectile.velocity.X -= 0.15f; + break; + } + + if (projectile.velocity.X < -6f) + { + projectile.velocity.X = -6f; + } + } + } + else + { + if (playerDistance > 600f) + { + fly = true; + projectile.velocity.X = 0f; + projectile.velocity.Y = 0f; + projectile.tileCollide = false; + } + if (playerDistance > 200f) + { + if (player.position.X - projectile.position.X > 0f) + { + switch (Main.rand.Next(1, 3)) + { + case 1: + projectile.velocity.X += 0.05f; + break; + + case 2: + projectile.velocity.X += 0.10f; + break; + + case 3: + projectile.velocity.X += 0.15f; + break; + } + + if (projectile.velocity.X > 6f) + { + projectile.velocity.X = 6f; + } + } + else + { + switch (Main.rand.Next(1, 3)) + { + case 1: + projectile.velocity.X -= 0.05f; + break; + + case 2: + projectile.velocity.X -= 0.10f; + break; + + case 3: + projectile.velocity.X -= 0.15f; + break; + } + + if (projectile.velocity.X < -6f) + { + projectile.velocity.X = -6f; + } + } + } + if (playerDistance < 200f) + { + if (projectile.velocity.X != 0f) + { + if (projectile.velocity.X > 0.5f) + { + switch (Main.rand.Next(1, 3)) + { + case 1: + projectile.velocity.X -= 0.05f; + break; + + case 2: + projectile.velocity.X -= 0.10f; + break; + + case 3: + projectile.velocity.X -= 0.15f; + break; + } + } + else if (projectile.velocity.X < -0.5f) + { + switch (Main.rand.Next(1, 3)) + { + case 1: + projectile.velocity.X += 0.05f; + break; + + case 2: + projectile.velocity.X += 0.10f; + break; + + case 3: + projectile.velocity.X += 0.15f; + break; + } + } + else if (projectile.velocity.X < 0.5f && projectile.velocity.X > -0.5f) + { + projectile.velocity.X = 0f; + } + } + } + } + } + else if (fly) + { + Vector2 center2 = projectile.Center; + Vector2 vector48 = player.Center - center2 + new Vector2(0f, 0f); + float playerDistance = vector48.Length(); + vector48.Normalize(); + vector48 *= 8f; + projectile.velocity = (projectile.velocity * 40f + vector48) / 41f; + + projectile.rotation = projectile.velocity.X * 0.03f; + projectile.frameCounter++; + if (projectile.frameCounter > 3) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 7) + { + projectile.frame = 4; + } + if (playerDistance > 2000f) + { + projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); + projectile.netUpdate = true; + } + if (playerDistance < 100f) + { + if (player.velocity.Y == 0f) + { + ++playerStill; + } + else + { + playerStill = 0; + } + if (playerStill > 30 && !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + { + fly = false; + projectile.tileCollide = true; + projectile.rotation = 0; + } + } + } + if ((double)projectile.velocity.X > 0.25) + { + projectile.spriteDirection = 1; + } + else if ((double)projectile.velocity.X < -0.25) + { + projectile.spriteDirection = -1; + } + } + + private bool HoleBelow() + { + int tileWidth = 4; + int tileX = (int)(projectile.Center.X / 16f) - tileWidth; + if (projectile.velocity.X > 0) + { + tileX += tileWidth; + } + int tileY = (int)((projectile.position.Y + projectile.height) / 16f); + for (int y = tileY; y < tileY + 2; y++) + { + for (int x = tileX; x < tileX + tileWidth; x++) + { + if (Main.tile[x, y].active()) + { + return false; + } + } + } + return true; + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + if (projectile.penetrate == 0) + { + projectile.Kill(); + } + return false; + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/HermitCrab.png b/Projectiles/Amidias/HermitCrab.png new file mode 100644 index 0000000000000000000000000000000000000000..cf5677fcc186b3b836d371f2b5871d98f115db74 GIT binary patch literal 2400 zcmV-m37__fP)b(= zi4k0AFklv8b{ZAbl?Kfy)bJa8XL7Bo?&|LI#-7ca?yl~4`t-fGs!!dzZ{LdP-#$}Z zD?7j*S~>jpjX-|2a(NQ)%LDA($s>ul%?p2}&zHZyIelK={3d;l#o#W+Y=IrU_h@3~ zjVG@!F!$}&EouAR3tx}I+%CrKf#IQVzI}W8_u6MaFF5Uq)0YNiE@aFG7(j?;JW?3@ z?)4v16Kw7N)!)G~T=G_9V|zzDF6T;ICqk7PDyt{zC4E$$L>fNVM=WZCsA*NQQd!OYnzMQdusMA zX)<6sa>WL?Q@rTxiS0LY{_slO&vCjmWsDw!{n6XjK6_v~a)k*UFcQhJHR6`;*PbD= zO>B+!Xd^p}*#diE{lNs9JE!j>V(al-#3#N*U7Pj@L<2^^JB--@l8oAA-?>-uDLwGY{g+)VD{p$t(=a>%&N7-4u5f2J98U3 zeO9dt`?lo~hi&EbS+&mC+Gyf%q0R3!TRvcY#bH%*Y*g#!z*?);yvc8DJeusM^UR1X zu-2+IZiXg--p2l7o!=H1ccN3!tyOD{Ynn3@zE@5TERs6u%!d|-RTtZ(D8dlpunjPP zXdcB_s&!U_wF9P7=h&(>w)Vl5v&kVt4R&&1`r3v~O|Dwo1B=va;>zUWumZ3FRy#Hy zs{O25*D^b+*1Z{3qaABL$Yzxd*9JU2EtJbw$(onh9y~Bk) zu-2+|Gsf(I*^0xqz*>vLWY(eK9zXthGB;kNi&sF{0&AUXty%0ysktom!E>#f0c(|O zjqs-##FOV*_XajpN;8j8v(zWgwQdHiG^IIOGr}qy`b08^@xo}x&a7Nk=ht+2O#&Ys zSZPW#YuuvsNV%vGo=UNvMwbN{Q3US!V>GtAq>k1*gZ7dr0)K&;-p3-a! z%vKz>1=d;|#_0EMu635YX;Q&MHQLeYU8s0#11w5wn7rPFEihHBwbqFqkA^XNp0?9fHc|U9JAHCsk!r20 zUb?E*r76+Ht88q5)ee1!Ztt&J56wXB^=HOr#%dX;ZNGPIEH|B4%M|TSpmT!~iig&>% zOpyguYHP)e*#T2Eh0N-*sig;J~^r zKu~271yZZgbY{#JSZ-y6{st-vBjYwSS{P*Zu3AxyMitR-r`iFFj2nj0Vm0ePwb^Rn zP6vp}m<=$h$S|Xecd5D!W9n_p>}vbojM)LpX$^gkcV?{b7w68e29~?vP{*^Qi=n@V#BIx{vIuxKEt@ri9BycWCSILr|Tb8AP6^I$bBXc!nBmbSDz8(kfOmtOHai$&cEF-{1=Y=ZuM@BJCOcq} zlt6xlR(lwYF*{&U0F-i%IUUt*bEAx`qR1C$YK#pqt!Sh< z)G(kc9k{W<7_$Y&{9Px#07*qoM6N<$f&c)l;;uIU literal 0 HcmV?d00001 diff --git a/Projectiles/Amidias/SandDollarProj.cs b/Projectiles/Amidias/SandDollarProj.cs new file mode 100644 index 0000000000..2b5f0dc6b4 --- /dev/null +++ b/Projectiles/Amidias/SandDollarProj.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class SandDollarProj : ModProjectile + { + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sand Dollar"); + } + + public override void SetDefaults() + { + projectile.width = 30; + projectile.height = 28; + projectile.GetGlobalProjectile(mod).rogue = true; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.aiStyle = 3; + projectile.timeLeft = 300; + aiType = 272; + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + projectile.ai[0] += 0.1f; + if (projectile.velocity.X != oldVelocity.X) + { + projectile.velocity.X = -oldVelocity.X; + } + if (projectile.velocity.Y != oldVelocity.Y) + { + projectile.velocity.Y = -oldVelocity.Y; + } + return false; + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/SandDollarProj.png b/Projectiles/Amidias/SandDollarProj.png new file mode 100644 index 0000000000000000000000000000000000000000..69e288ef07db4d3d17f31d6d91e314a995dbad8c GIT binary patch literal 522 zcmV+l0`>igP)Px$#7RU!R7i=@X?_84)|~_3VPGMDJAq)tIo}}C`c^5nd;oAi zn0NNgZ7+&Vv$ysE3u{LY`lIM08lO@2TJpg;*1cs6V(n>hVW>uUC#169YY-*nO@=Pl^7Y+hPh&tRCxEw@#v1?K^hmP`Opr zSGq=~P9~jqht4`Y@m|4*MW{DE-8E8?DVMsR<+xWX_ovuNTt-*Fh7Zsu{1u3xDtUcosch`z|_oKzs}Wv)zr<^-zBA}$Zk}#d;kCd M07*qoM6N<$f|Wb)RsaA1 literal 0 HcmV?d00001 diff --git a/Projectiles/Amidias/Shell.cs b/Projectiles/Amidias/Shell.cs new file mode 100644 index 0000000000..0f2b663f84 --- /dev/null +++ b/Projectiles/Amidias/Shell.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class Shell : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shell"); + } + + public override void SetDefaults() + { + projectile.width = 34; + projectile.height = 18; + projectile.friendly = true; + projectile.ranged = true; + projectile.penetrate = 5; + projectile.aiStyle = 1; + } + + public override void AI() + { + projectile.velocity.X *= 0.9995f; + projectile.velocity.Y *= 0.9995f; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 34; + projectile.height = 18; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num621 = 0; num621 < 10; num621++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 14, projectile.oldVelocity.X / 4, projectile.oldVelocity.Y / 4, 0, new Color(0, 255, 255), 1.5f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/Shell.png b/Projectiles/Amidias/Shell.png new file mode 100644 index 0000000000000000000000000000000000000000..782116f9894dc676de0d47b19e1ba14dbdfff8ab GIT binary patch literal 395 zcmV;60d)R}P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0U$|4K~zXfV;}^S zcpUzNFqDfEFhOaG0V9;g05Dg4^)dnTxwoAG)Azm{z^aF8E+S} zU`z4wzOw#{#CGy*L4;(PNMPv3A?&4;bSDw099GY+&I-3>ZnV zCL$sN#xQ^$Yv}SYK>aX6FMnVFmh;ayzXsFtryhXmH*em6X;@fM-$iB$Az&AMt8oGI z(PIl8{Q3itKlNY@m0g4$Hll7SU>XKw%s+zZFM;pDG%UZNhZXhH5y&MVj4O|U!UTjt zVFto%EGl3O1Jn;ASl)sG^jL$%(nB)^FpZw~sGp8-xeQmVq1U|BcM%MryA0h$G%t@Z pTm%C!m%+*&^xTdPsN^CB1^^+vmHTufOKboD002ovPDHLkV1j5emcRf2 literal 0 HcmV?d00001 diff --git a/Projectiles/Amidias/SmallCoral.cs b/Projectiles/Amidias/SmallCoral.cs new file mode 100644 index 0000000000..08ef07b262 --- /dev/null +++ b/Projectiles/Amidias/SmallCoral.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class SmallCoral : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Small Coral"); + } + + public override void SetDefaults() + { + projectile.width = 16; + projectile.height = 22; + projectile.friendly = true; + projectile.ranged = true; + projectile.penetrate = 1; + projectile.aiStyle = 1; + } + + public override void AI() + { + projectile.velocity.X *= 0.9995f; + projectile.velocity.Y = projectile.velocity.Y + 0.01f; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 16; + projectile.height = 22; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num621 = 0; num621 < 5; num621++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 51, projectile.oldVelocity.X / 4, projectile.oldVelocity.Y / 4, 0, new Color(234, 183, 100), 1f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 2f; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/SmallCoral.png b/Projectiles/Amidias/SmallCoral.png new file mode 100644 index 0000000000000000000000000000000000000000..bf069d64517d4413caa8315b799d83d9611533f7 GIT binary patch literal 351 zcmV-l0igbgP)zH{(z009}r@yfMAg(SOsAf zjbIUCc2mqe*j-FSX1&cUGqdlWnZ5fIAvFsPdG!4ArHh0D7`}c3(0T6ya1buAtK!=> zJUpfWxN6OXNcq>JBapM7WwgzfA)0 zb~gdw{N@yZul^K(>t2jV2;!J*ADK+b8LK9NBUj%=yCq4C1q#>`$baqY0|5;j7elB3 xR_oyU{`x`Ae1DNR3-SI4r1$wc(7&=K_yu@mRG{I-3!wl2002ovPDHLkV1mk;m&*VE literal 0 HcmV?d00001 diff --git a/Projectiles/Amidias/SnapClamProj.cs b/Projectiles/Amidias/SnapClamProj.cs new file mode 100644 index 0000000000..4820799c63 --- /dev/null +++ b/Projectiles/Amidias/SnapClamProj.cs @@ -0,0 +1,216 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class SnapClamProj : ModProjectile + { + public int clamCounter = 0; + public bool openClam = true; + public bool onEnemy = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Snap Clam"); + Main.projFrames[projectile.type] = 2; + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 13; + projectile.friendly = true; + projectile.GetGlobalProjectile(mod).rogue = true; + projectile.ignoreWater = true; + projectile.penetrate = -1; + } + + public override void AI() + { + if (openClam && !onEnemy) + { + ++clamCounter; + if (clamCounter >= 30) + { + openClam = false; + projectile.damage = (int)(projectile.damage * 0.8); + } + } + if (projectile.ai[0] == 0f) + { + float[] var0 = projectile.ai; + int var1 = 1; + float num73 = var0[var1]; + var0[var1] = num73 + 1f; + projectile.ai[1] = 45f; + projectile.velocity.X = projectile.velocity.X * 0.99f; + projectile.velocity.Y = projectile.velocity.Y + 0.15f; + projectile.rotation += 0.4f * (float)projectile.direction; + projectile.spriteDirection = projectile.direction; + } + if (projectile.ai[0] == 1f) + { + projectile.tileCollide = false; + int num988 = 6; + bool flag54 = false; + bool flag55 = false; + float[] var0 = projectile.localAI; + int var1 = 0; + float num73 = var0[var1]; + var0[var1] = num73 + 1f; + if (projectile.localAI[0] % 30f == 0f) + { + flag55 = true; + } + int num989 = (int)projectile.ai[1]; + if (projectile.localAI[0] >= (float)(60 * num988)) + { + flag54 = true; + } + else if (num989 < 0 || num989 >= 200) + { + flag54 = true; + } + else if (Main.npc[num989].active && !Main.npc[num989].dontTakeDamage) + { + projectile.Center = Main.npc[num989].Center - projectile.velocity * 2f; + projectile.gfxOffY = Main.npc[num989].gfxOffY; + if (flag55) + { + Main.npc[num989].HitEffect(0, 1.0); + } + } + else + { + flag54 = true; + } + if (flag54) + { + projectile.Kill(); + } + } + if (openClam && !onEnemy) + { + projectile.frame = 1; + } + else + { + projectile.frame = 0; + } + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (openClam) + { + onEnemy = true; + Rectangle myRect = new Rectangle((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height); + if (projectile.owner == Main.myPlayer) + { + for (int i = 0; i < 200; i++) + { + if (((Main.npc[i].active && !Main.npc[i].dontTakeDamage)) && + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) + { + if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) + { + bool flag3; + if (Main.npc[i].type == 414) + { + Rectangle rect = Main.npc[i].getRect(); + int num5 = 8; + rect.X -= num5; + rect.Y -= num5; + rect.Width += num5 * 2; + rect.Height += num5 * 2; + flag3 = projectile.Colliding(myRect, rect); + } + else + { + flag3 = projectile.Colliding(myRect, Main.npc[i].getRect()); + } + if (flag3) + { + if (Main.npc[i].reflectingProjectiles && projectile.CanReflect()) + { + Main.npc[i].ReflectProjectile(projectile.whoAmI); + return; + } + projectile.ai[0] = 1f; + projectile.ai[1] = (float)i; + projectile.velocity = (Main.npc[i].Center - projectile.Center) * 0.75f; + projectile.netUpdate = true; + projectile.StatusNPC(i); + projectile.damage = 0; + int num28 = 6; + Point[] array2 = new Point[num28]; + int num29 = 0; + for (int l = 0; l < 1000; l++) + { + if (l != projectile.whoAmI && Main.projectile[l].active && Main.projectile[l].owner == Main.myPlayer && Main.projectile[l].type == projectile.type && Main.projectile[l].ai[0] == 1f && Main.projectile[l].ai[1] == (float)i) + { + array2[num29++] = new Point(l, Main.projectile[l].timeLeft); + if (num29 >= array2.Length) + { + break; + } + } + } + if (num29 >= array2.Length) + { + int num30 = 0; + for (int m = 1; m < array2.Length; m++) + { + if (array2[m].Y < array2[num30].Y) + { + num30 = m; + } + } + Main.projectile[array2[num30].X].Kill(); + } + } + } + } + } + } + } + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + if (targetHitbox.Width > 8 && targetHitbox.Height > 8) + { + targetHitbox.Inflate(-targetHitbox.Width / 8, -targetHitbox.Height / 8); + } + return null; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 13; + projectile.height = 20; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num194 = 0; num194 < 20; num194++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 14, 0f, 0f, 0, new Color(0, 255, 255), 1f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 2f; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("SnapClamDebuff"), 240); + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/SnapClamProj.png b/Projectiles/Amidias/SnapClamProj.png new file mode 100644 index 0000000000000000000000000000000000000000..42ffb4169a07a6b58bca6f8cfb75dc454cf10a50 GIT binary patch literal 361 zcmV-v0ha!WP)Px$BS}O-R7i>Kl`%^~Q5462#-kw`92BA@iELLS8k>aL{3ebrPB!>a`~(fr;HEg} z2S~z}2z*e3ImmGAxIh=R-aqc<)2Yba;!cLqY--PR2@G@!|cO1ke zvgPR@vah>>QIIZP7;&;b0N^f<6GRR~e%)S4|u7sPqBA zXC5&XrUBytdZsVR58ZFdx@7W8<=@`h zfWu9hzp`A#CQvM`B9pf1*vrWz{ex0LDg^L--wom3vHydnGSPSwEKf(c00000NkvXX Hu0mjf2JNAS literal 0 HcmV?d00001 diff --git a/Projectiles/Amidias/UrchinBall.cs b/Projectiles/Amidias/UrchinBall.cs new file mode 100644 index 0000000000..4135dc2bd1 --- /dev/null +++ b/Projectiles/Amidias/UrchinBall.cs @@ -0,0 +1,158 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class UrchinBall : ModProjectile + { + public bool spike = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("UrchinBall"); + } + + public override void SetDefaults() + { + projectile.width = 34; + projectile.height = 34; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.penetrate = -1; + projectile.melee = true; + projectile.alpha = 255; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 3; + } + + public override void AI() + { + Vector2 vector62 = Main.player[projectile.owner].Center - projectile.Center; + projectile.rotation = vector62.ToRotation() - 1.57f; + if (Main.player[projectile.owner].dead) + { + projectile.Kill(); + return; + } + Main.player[projectile.owner].itemAnimation = 10; + Main.player[projectile.owner].itemTime = 10; + float arg_1DC8F_0 = vector62.X; + if (vector62.X < 0f) + { + Main.player[projectile.owner].ChangeDir(1); + projectile.direction = 1; + } + else + { + Main.player[projectile.owner].ChangeDir(-1); + projectile.direction = -1; + } + Main.player[projectile.owner].itemRotation = (vector62 * -1f * (float)projectile.direction).ToRotation(); + projectile.spriteDirection = ((vector62.X > 0f) ? -1 : 1); + if (projectile.ai[0] == 0f && vector62.Length() > 400f) + { + projectile.ai[0] = 1f; + } + if (projectile.ai[0] == 1f || projectile.ai[0] == 2f) + { + if (spike) + { + spike = false; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("UrchinBallSpike"), (int)((double)projectile.damage * 0.5), 0f, Main.myPlayer, 0f, 0f); + } + projectile.usesLocalNPCImmunity = false; + float num693 = vector62.Length(); + if (num693 > 1500f) + { + projectile.Kill(); + return; + } + if (num693 > 600f) + { + projectile.ai[0] = 2f; + } + projectile.tileCollide = false; + float num694 = 20f; + if (projectile.ai[0] == 2f) + { + num694 = 40f; + } + projectile.velocity = Vector2.Normalize(vector62) * num694; + if (vector62.Length() < num694) + { + projectile.Kill(); + return; + } + } + float[] var_2_1DE21_cp_0 = projectile.ai; + int var_2_1DE21_cp_1 = 1; + float num73 = var_2_1DE21_cp_0[var_2_1DE21_cp_1]; + var_2_1DE21_cp_0[var_2_1DE21_cp_1] = num73 + 1f; + if (projectile.ai[1] > 5f) + { + projectile.alpha = 0; + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); + projectile.ai[0] = 1f; + projectile.netUpdate = true; + Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f); + return false; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 mountedCenter = Main.player[projectile.owner].MountedCenter; + Microsoft.Xna.Framework.Color transparent = Microsoft.Xna.Framework.Color.Transparent; + Texture2D texture2D2 = mod.GetTexture("ExtraTextures/Chains/UrchinFlailChain"); + Vector2 vector17 = projectile.Center; + Microsoft.Xna.Framework.Rectangle? sourceRectangle = null; + Vector2 origin = new Vector2((float)texture2D2.Width * 0.5f, (float)texture2D2.Height * 0.5f); + float num91 = (float)texture2D2.Height; + Vector2 vector18 = mountedCenter - vector17; + float rotation15 = (float)Math.Atan2((double)vector18.Y, (double)vector18.X) - 1.57f; + bool flag13 = true; + if (float.IsNaN(vector17.X) && float.IsNaN(vector17.Y)) + { + flag13 = false; + } + if (float.IsNaN(vector18.X) && float.IsNaN(vector18.Y)) + { + flag13 = false; + } + while (flag13) + { + if (vector18.Length() < num91 + 1f) + { + flag13 = false; + } + else + { + Vector2 value2 = vector18; + value2.Normalize(); + vector17 += value2 * num91; + vector18 = mountedCenter - vector17; + Microsoft.Xna.Framework.Color color17 = Lighting.GetColor((int)vector17.X / 16, (int)(vector17.Y / 16f)); + Main.spriteBatch.Draw(texture2D2, vector17 - Main.screenPosition, sourceRectangle, color17, rotation15, origin, 1f, SpriteEffects.None, 0f); + } + } + return true; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + spike = true; + projectile.ai[0] = 1f; + projectile.netUpdate = true; + target.AddBuff(BuffID.Venom, 300); + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/UrchinBall.png b/Projectiles/Amidias/UrchinBall.png new file mode 100644 index 0000000000000000000000000000000000000000..58eb311c75a9aa810d1aca16578f3633e20b5aa9 GIT binary patch literal 589 zcmV-T0Px%2T4RhR9J=0moaM;K^TUgl`9l91UWHYk!T8$i+?~!KuD*J*xF0*=UCd?N*b>d z4m{!?$Q{8#ata|uIM7%I&La1)*)KD9rU=Yi?as~)JI}n|JF^uTZ9aaLY@eK+PA}fy zZQZF-{RZE6b3-R}<4V1+QB`i{DnS5%&gK>XzYm5Lz^~)+TvCe&6+@)u#iF%;`uqg| zM}w~btaVob_}uSJ0bah_0pQz*kIC_Xq?c5AMAXBT4FC?0hf}CMk&`6Gqo28P{_8`^ zA)=eR>)VY7&gjocbEZq})#N~WC-;1j$|2%~RiZZ}5_S8@TC&|-`Fk)1YLa@ayS_aI z82$K?te#?sTuN5!KURxtzwvr&?tsHj=U$2ABxMyvGUX8Q!ZkEOl?j?tB;d?dtU5J0 zI|XVo5{gM`|JW}l-{0@|fD(zQ+}>hNM46~QmxSI?dPQ$U6+@&I>sdm% zWYr7i$6{x?k_*60QP5R+DIm<93rv78O1!YDsto`5>IxWl}8OSN^iI#= (float)(60 * num988)) + { + flag54 = true; + } + else if (num989 < 0 || num989 >= 200) + { + flag54 = true; + } + else if (Main.npc[num989].active && !Main.npc[num989].dontTakeDamage) + { + projectile.Center = Main.npc[num989].Center - projectile.velocity * 2f; + projectile.gfxOffY = Main.npc[num989].gfxOffY; + if (flag55) + { + Main.npc[num989].HitEffect(0, 1.0); + } + } + else + { + flag54 = true; + } + if (flag54) + { + projectile.Kill(); + } + } + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + Rectangle myRect = new Rectangle((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height); + if (projectile.owner == Main.myPlayer) + { + for (int i = 0; i < 200; i++) + { + if (((Main.npc[i].active && !Main.npc[i].dontTakeDamage)) && + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) + { + if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) + { + bool flag3; + if (Main.npc[i].type == 414) + { + Rectangle rect = Main.npc[i].getRect(); + int num5 = 8; + rect.X -= num5; + rect.Y -= num5; + rect.Width += num5 * 2; + rect.Height += num5 * 2; + flag3 = projectile.Colliding(myRect, rect); + } + else + { + flag3 = projectile.Colliding(myRect, Main.npc[i].getRect()); + } + if (flag3) + { + if (Main.npc[i].reflectingProjectiles && projectile.CanReflect()) + { + Main.npc[i].ReflectProjectile(projectile.whoAmI); + return; + } + projectile.ai[0] = 1f; + projectile.ai[1] = (float)i; + projectile.velocity = (Main.npc[i].Center - projectile.Center) * 0.75f; + projectile.netUpdate = true; + projectile.StatusNPC(i); + projectile.damage = 0; + int num28 = 6; + Point[] array2 = new Point[num28]; + int num29 = 0; + for (int l = 0; l < 1000; l++) + { + if (l != projectile.whoAmI && Main.projectile[l].active && Main.projectile[l].owner == Main.myPlayer && Main.projectile[l].type == projectile.type && Main.projectile[l].ai[0] == 1f && Main.projectile[l].ai[1] == (float)i) + { + array2[num29++] = new Point(l, Main.projectile[l].timeLeft); + if (num29 >= array2.Length) + { + break; + } + } + } + if (num29 >= array2.Length) + { + int num30 = 0; + for (int m = 1; m < array2.Length; m++) + { + if (array2[m].Y < array2[num30].Y) + { + num30 = m; + } + } + Main.projectile[array2[num30].X].Kill(); + } + } + } + } + } + } + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + if (targetHitbox.Width > 8 && targetHitbox.Height > 8) + { + targetHitbox.Inflate(-targetHitbox.Width / 8, -targetHitbox.Height / 8); + } + return null; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 13; + projectile.height = 20; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num194 = 0; num194 < 20; num194++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 14, 0f, 0f, 0, new Color(0, 255, 255), 1f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 2f; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (target.type == NPCID.KingSlime || target.type == NPCID.WallofFlesh || target.type == NPCID.WallofFleshEye || + target.type == NPCID.SkeletronHead || target.type == NPCID.SkeletronHand) + { + target.buffImmune[BuffID.Venom] = false; + } + target.AddBuff(BuffID.Venom, 300); + } + } +} \ No newline at end of file diff --git a/Projectiles/Amidias/UrchinBallSpike.png b/Projectiles/Amidias/UrchinBallSpike.png new file mode 100644 index 0000000000000000000000000000000000000000..9828a0567384f564296f5d42a06f9b937059f6ae GIT binary patch literal 174 zcmeAS@N?(olHy`uVBq!ia0vp^LO{&M!3HGHb)LHgq!^2X+?^QKos)S9a~60+7BevL9R^{>`^@axB#r3thASq>d%mD{s}YuU=@N*cBihdLS=8PcTqXB|#UHtPTY literal 0 HcmV?d00001 diff --git a/Projectiles/Amidias/WaywasherProj.cs b/Projectiles/Amidias/WaywasherProj.cs new file mode 100644 index 0000000000..e9782c69bb --- /dev/null +++ b/Projectiles/Amidias/WaywasherProj.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Amidias +{ + public class WaywasherProj : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Waywasher Blast"); + } + + public override void SetDefaults() + { + projectile.width = 16; + projectile.height = 16; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.alpha = 255; + projectile.penetrate = 2; + projectile.timeLeft = 300; + projectile.magic = true; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, 0f, 0.1f, 0.7f); + for (int num105 = 0; num105 < 2; num105++) + { + float num99 = projectile.velocity.X / 3f * (float)num105; + float num100 = projectile.velocity.Y / 3f * (float)num105; + int num101 = 4; + int num102 = Dust.NewDust(new Vector2(projectile.position.X + (float)num101, projectile.position.Y + (float)num101), projectile.width - num101 * 2, projectile.height - num101 * 2, 33, 0f, 0f, 0, new Color(0, 142, 255), 1.2f); + Main.dust[num102].noGravity = true; + Main.dust[num102].velocity *= 0.1f; + Main.dust[num102].velocity += projectile.velocity * 0.1f; + Dust expr_47FA_cp_0 = Main.dust[num102]; + expr_47FA_cp_0.position.X = expr_47FA_cp_0.position.X - num99; + Dust expr_4815_cp_0 = Main.dust[num102]; + expr_4815_cp_0.position.Y = expr_4815_cp_0.position.Y - num100; + } + if (Main.rand.Next(5) == 0) + { + int num103 = 4; + int num104 = Dust.NewDust(new Vector2(projectile.position.X + (float)num103, projectile.position.Y + (float)num103), projectile.width - num103 * 2, projectile.height - num103 * 2, 33, 0f, 0f, 0, new Color(0, 142, 255), 0.6f); + Main.dust[num104].velocity *= 0.25f; + Main.dust[num104].velocity += projectile.velocity * 0.5f; + } + if (projectile.ai[1] >= 20f) + { + projectile.velocity.Y = projectile.velocity.Y + 0.2f; + } + else + { + projectile.rotation += 0.3f * (float)projectile.direction; + } + if (projectile.velocity.Y > 16f) + { + projectile.velocity.Y = 16f; + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + for (int k = 0; k < 10; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 33, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, new Color(0, 142, 255), 1f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/FrostBoltProjectile.png b/Projectiles/Amidias/WaywasherProj.png similarity index 100% rename from Projectiles/FrostBoltProjectile.png rename to Projectiles/Amidias/WaywasherProj.png diff --git a/Projectiles/Astral/AstralCannonExplosion.cs b/Projectiles/Astral/AstralCannonExplosion.cs index a25a3adff8..af6c3ccdc4 100644 --- a/Projectiles/Astral/AstralCannonExplosion.cs +++ b/Projectiles/Astral/AstralCannonExplosion.cs @@ -1,34 +1,34 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Astral -{ - public class AstralCannonExplosion : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Explosion"); - } - - public override void SetDefaults() - { - projectile.width = 150; - projectile.height = 150; - projectile.friendly = true; - projectile.ignoreWater = true; - projectile.tileCollide = false; - projectile.ranged = true; - projectile.penetrate = -1; - projectile.timeLeft = 10; - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 120); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Astral +{ + public class AstralCannonExplosion : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Explosion"); + } + + public override void SetDefaults() + { + projectile.width = 150; + projectile.height = 150; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.ranged = true; + projectile.penetrate = -1; + projectile.timeLeft = 10; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("GodSlayerInferno"), 120); + } + } } \ No newline at end of file diff --git a/Projectiles/Astral/AstralCannonProjectile.cs b/Projectiles/Astral/AstralCannonProjectile.cs index 9e06bc7b61..377b1966a8 100644 --- a/Projectiles/Astral/AstralCannonProjectile.cs +++ b/Projectiles/Astral/AstralCannonProjectile.cs @@ -1,106 +1,106 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Astral -{ - public class AstralCannonProjectile : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Astral Crystal"); - Main.projFrames[projectile.type] = 4; - } - - public override void SetDefaults() - { - projectile.width = 50; - projectile.height = 40; - projectile.friendly = true; - projectile.ignoreWater = true; - projectile.tileCollide = false; - projectile.ranged = true; - projectile.alpha = 255; - projectile.penetrate = 1; - projectile.timeLeft = 300; - } - - public override void AI() - { - if(projectile.alpha > 0) - { - projectile.alpha -= 5; - } - else - { - projectile.alpha = 0; - projectile.tileCollide = true; - } - projectile.frameCounter++; - if (projectile.frameCounter > 4) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 3) - { - projectile.frame = 0; - } - if ((double)Math.Abs(projectile.velocity.X) > 0.2) - { - projectile.spriteDirection = -projectile.direction; - } - if (projectile.velocity.X < 0f) - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); - } - else - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); - } - Lighting.AddLight(projectile.Center, 0.3f, 0.5f, 0.1f); - projectile.velocity *= 1.075f; - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - Texture2D texture2D13 = Main.projectileTexture[projectile.type]; - int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; - int y6 = num214 * projectile.frame; - Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); - return false; - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); - projectile.position = projectile.Center; - projectile.width = (projectile.height = 188); - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("AstralCannonExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - for (int num193 = 0; num193 < 2; num193++) - { - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 50, default(Color), 1f); - } - for (int num194 = 0; num194 < 20; num194++) - { - int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 0, default(Color), 1.5f); - Main.dust[num195].noGravity = true; - Main.dust[num195].velocity *= 3f; - num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 50, default(Color), 1f); - Main.dust[num195].velocity *= 2f; - Main.dust[num195].noGravity = true; - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Astral +{ + public class AstralCannonProjectile : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Astral Crystal"); + Main.projFrames[projectile.type] = 4; + } + + public override void SetDefaults() + { + projectile.width = 50; + projectile.height = 40; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.ranged = true; + projectile.alpha = 255; + projectile.penetrate = 1; + projectile.timeLeft = 300; + } + + public override void AI() + { + if(projectile.alpha > 0) + { + projectile.alpha -= 5; + } + else + { + projectile.alpha = 0; + projectile.tileCollide = true; + } + projectile.frameCounter++; + if (projectile.frameCounter > 4) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + if ((double)Math.Abs(projectile.velocity.X) > 0.2) + { + projectile.spriteDirection = -projectile.direction; + } + if (projectile.velocity.X < 0f) + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + else + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + Lighting.AddLight(projectile.Center, 0.3f, 0.5f, 0.1f); + projectile.velocity *= 1.075f; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D texture2D13 = Main.projectileTexture[projectile.type]; + int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; + int y6 = num214 * projectile.frame; + Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("GodSlayerInferno"), 300); + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103, 1f, 0f); + projectile.position = projectile.Center; + projectile.width = (projectile.height = 188); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("AstralCannonExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + for (int num193 = 0; num193 < 2; num193++) + { + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 50, default(Color), 1f); + } + for (int num194 = 0; num194 < 20; num194++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 0, default(Color), 1.5f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 50, default(Color), 1f); + Main.dust[num195].velocity *= 2f; + Main.dust[num195].noGravity = true; + } + } + } } \ No newline at end of file diff --git a/Projectiles/Astral/AstralScytheProjectile.cs b/Projectiles/Astral/AstralScytheProjectile.cs index 911e8ba8a1..19ffc242f0 100644 --- a/Projectiles/Astral/AstralScytheProjectile.cs +++ b/Projectiles/Astral/AstralScytheProjectile.cs @@ -1,66 +1,66 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Astral -{ - public class AstralScytheProjectile : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Astral Ring"); - Main.projFrames[projectile.type] = 3; - } - - public override void SetDefaults() - { - projectile.width = 72; - projectile.height = 30; - projectile.friendly = true; - projectile.ignoreWater = true; - projectile.melee = true; - projectile.timeLeft = 300; - projectile.penetrate = 8; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 5; - } - - public override void AI() - { - projectile.velocity *= 1.03f; - - projectile.frameCounter++; - if (projectile.frameCounter > 4) - { - projectile.frame++; - projectile.frameCounter = 0; - if (projectile.frame > 2) - { - projectile.frame = 0; - } - } - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(SoundID.Item1, projectile.Center); - - for (int i = 0; i < 60; i++) - { - float angle = MathHelper.TwoPi * Main.rand.NextFloat(0f, 1f); - Vector2 angleVec = angle.ToRotationVector2(); - float distance = Main.rand.NextFloat(14f, 36f); - Vector2 off = angleVec * distance; - off.Y *= ((float)projectile.height / projectile.width); - Vector2 pos = projectile.Center + off; - Dust d = Dust.NewDustPerfect(pos, mod.DustType("AstralBlue"), angleVec * Main.rand.NextFloat(2f, 4f)); - d.customData = true; - } - } - } +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Astral +{ + public class AstralScytheProjectile : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Astral Ring"); + Main.projFrames[projectile.type] = 3; + } + + public override void SetDefaults() + { + projectile.width = 72; + projectile.height = 30; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.melee = true; + projectile.timeLeft = 300; + projectile.penetrate = 8; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 5; + } + + public override void AI() + { + projectile.velocity *= 1.03f; + + projectile.frameCounter++; + if (projectile.frameCounter > 4) + { + projectile.frame++; + projectile.frameCounter = 0; + if (projectile.frame > 2) + { + projectile.frame = 0; + } + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item1, projectile.Center); + + for (int i = 0; i < 60; i++) + { + float angle = MathHelper.TwoPi * Main.rand.NextFloat(0f, 1f); + Vector2 angleVec = angle.ToRotationVector2(); + float distance = Main.rand.NextFloat(14f, 36f); + Vector2 off = angleVec * distance; + off.Y *= ((float)projectile.height / projectile.width); + Vector2 pos = projectile.Center + off; + Dust d = Dust.NewDustPerfect(pos, mod.DustType("AstralBlue"), angleVec * Main.rand.NextFloat(2f, 4f)); + d.customData = true; + } + } + } } \ No newline at end of file diff --git a/Projectiles/Astral/AstralachneaFang.cs b/Projectiles/Astral/AstralachneaFang.cs index 75d7d44818..564ed03b60 100644 --- a/Projectiles/Astral/AstralachneaFang.cs +++ b/Projectiles/Astral/AstralachneaFang.cs @@ -1,95 +1,95 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Astral -{ - public class AstralachneaFang : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Fang"); - } - - public override void SetDefaults() - { - projectile.width = 38; - projectile.height = 14; - projectile.friendly = true; - projectile.penetrate = 1; - projectile.magic = true; - projectile.tileCollide = true; - projectile.timeLeft = 240; - } - - public override void AI() - { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default(Color), 1f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - if (projectile.velocity.X < 0f) - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); - } - else - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); - } - float centerX = projectile.Center.X; - float centerY = projectile.Center.Y; - float num474 = 250f; - bool homeIn = false; - for (int num475 = 0; num475 < 200; num475++) - { - if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) - { - float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); - float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); - float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); - if (num478 < num474) - { - num474 = num478; - centerX = num476; - centerY = num477; - homeIn = true; - } - } - } - if (homeIn) - { - float num483 = 13f; - Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num484 = centerX - vector35.X; - float num485 = centerY - vector35.Y; - float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); - num486 = num483 / num486; - num484 *= num486; - num485 *= num486; - projectile.velocity.X = (projectile.velocity.X * 25f + num484) / 26f; - projectile.velocity.Y = (projectile.velocity.Y * 25f + num485) / 26f; - return; - } - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(SoundID.Item10, projectile.position); - for (int k = 0; k < 3; k++) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f); - } - for (int k = 0; k < 3; k++) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f); - } - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(mod.BuffType("GodSlayerInferno"), 180); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Astral +{ + public class AstralachneaFang : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Fang"); + } + + public override void SetDefaults() + { + projectile.width = 38; + projectile.height = 14; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.magic = true; + projectile.tileCollide = true; + projectile.timeLeft = 240; + } + + public override void AI() + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default(Color), 1f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + if (projectile.velocity.X < 0f) + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + else + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + float centerX = projectile.Center.X; + float centerY = projectile.Center.Y; + float num474 = 250f; + bool homeIn = false; + for (int num475 = 0; num475 < 200; num475++) + { + if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) + { + float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); + float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + centerX = num476; + centerY = num477; + homeIn = true; + } + } + } + if (homeIn) + { + float num483 = 13f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = centerX - vector35.X; + float num485 = centerY - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 25f + num484) / 26f; + projectile.velocity.Y = (projectile.velocity.Y * 25f + num485) / 26f; + return; + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item10, projectile.position); + for (int k = 0; k < 3; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f); + } + for (int k = 0; k < 3; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f); + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("GodSlayerInferno"), 180); + } + } } \ No newline at end of file diff --git a/Projectiles/Astral/HeavenfallenEnergy.cs b/Projectiles/Astral/HeavenfallenEnergy.cs new file mode 100644 index 0000000000..52a2b7f20c --- /dev/null +++ b/Projectiles/Astral/HeavenfallenEnergy.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Astral +{ + public class HeavenfallenEnergy : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Heavenfallen Energy"); + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + int num154 = 14; + int coolDust; + projectile.ai[0] += 1; + if (projectile.ai[0] % 2 == 0) + { + if (projectile.ai[0] % 4 == 0) + { + coolDust = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, mod.DustType("AstralBlue"), 0f, 0f, 100, default(Color), 1.5f); + } + else + { + coolDust = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, mod.DustType("AstralOrange"), 0f, 0f, 100, default(Color), 1.5f); + } + Main.dust[coolDust].noGravity = true; + Main.dust[coolDust].velocity *= 0.1f; + Main.dust[coolDust].velocity += projectile.velocity * 0.5f; + } + + } + } +} \ No newline at end of file diff --git a/Projectiles/AccelerationBullet.png b/Projectiles/Astral/HeavenfallenEnergy.png similarity index 100% rename from Projectiles/AccelerationBullet.png rename to Projectiles/Astral/HeavenfallenEnergy.png diff --git a/Projectiles/Astral/HeavenfallenStardisk.cs b/Projectiles/Astral/HeavenfallenStardisk.cs new file mode 100644 index 0000000000..af48d6cd4c --- /dev/null +++ b/Projectiles/Astral/HeavenfallenStardisk.cs @@ -0,0 +1,174 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Astral +{ + public class HeavenfallenStardisk : ModProjectile + { + + public bool explode = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Heavenfallen Stardisk"); + } + + public override void SetDefaults() + { + projectile.width = 38; + projectile.height = 34; + projectile.alpha = 255; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.netImportant = true; + projectile.penetrate = 1; + projectile.timeLeft = 600; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + if (projectile.alpha > 0) + { + projectile.alpha -= 20; + } + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + + for (int i = 0; i < 2; i++) + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 100, default(Color), 1f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } + for (int i = 0; i < 2; i++) + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default(Color), 1f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } + + projectile.rotation += 0.5f; + + if (Main.player[projectile.owner].position.Y != Main.player[projectile.owner].oldPosition.Y && projectile.ai[0] == 0f) + { + explode = true; + } + + projectile.ai[0] += 1f; + + if (Main.myPlayer == projectile.owner && projectile.ai[0] == 20f) + { + if (Main.player[projectile.owner].channel) + { + float num115 = 20f; + Vector2 vector10 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num116 = (float)Main.mouseX + Main.screenPosition.X - vector10.X; + float num117 = (float)Main.mouseY + Main.screenPosition.Y - vector10.Y; + if (Main.player[projectile.owner].gravDir == -1f) + { + num117 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector10.Y; + } + float num118 = (float)Math.Sqrt((double)(num116 * num116 + num117 * num117)); + num118 = (float)Math.Sqrt((double)(num116 * num116 + num117 * num117)); + if (num118 > num115) + { + num118 = num115 / num118; + num116 *= num118; + num117 *= num118; + int num119 = (int)(num116 * 1000f); + int num120 = (int)(projectile.velocity.X * 1000f); + int num121 = (int)(num117 * 1000f); + int num122 = (int)(projectile.velocity.Y * 1000f); + if (num119 != num120 || num121 != num122) + { + projectile.netUpdate = true; + } + projectile.velocity.X = num116; + projectile.velocity.Y = num117; + } + else + { + int num123 = (int)(num116 * 1000f); + int num124 = (int)(projectile.velocity.X * 1000f); + int num125 = (int)(num117 * 1000f); + int num126 = (int)(projectile.velocity.Y * 1000f); + if (num123 != num124 || num125 != num126) + { + projectile.netUpdate = true; + } + projectile.velocity.X = num116; + projectile.velocity.Y = num117; + } + } + else if (projectile.ai[0] == 20f) + { + projectile.netUpdate = true; + float num127 = 20f; + Vector2 vector11 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num128 = (float)Main.mouseX + Main.screenPosition.X - vector11.X; + float num129 = (float)Main.mouseY + Main.screenPosition.Y - vector11.Y; + if (Main.player[projectile.owner].gravDir == -1f) + { + num129 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector11.Y; + } + float num130 = (float)Math.Sqrt((double)(num128 * num128 + num129 * num129)); + if (num130 == 0f || projectile.ai[0] < 0f) + { + vector11 = new Vector2(Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2), Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2)); + num128 = projectile.position.X + (float)projectile.width * 0.5f - vector11.X; + num129 = projectile.position.Y + (float)projectile.height * 0.5f - vector11.Y; + num130 = (float)Math.Sqrt((double)(num128 * num128 + num129 * num129)); + } + num130 = num127 / num130; + num128 *= num130; + num129 *= num130; + projectile.velocity.X = num128; + projectile.velocity.Y = num129; + } + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item10, projectile.position); + for (int i = 0; i < 10; i++) + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } + for (int i = 0; i < 10; i++) + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } + + if (explode && Main.player[projectile.owner].position.Y != Main.player[projectile.owner].oldPosition.Y) + { + if (projectile.owner == Main.myPlayer) + { + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + for (i = 0; i < 4; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 2f), (float)(Math.Cos(offsetAngle) * 2f), mod.ProjectileType("HeavenfallenEnergy"), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), mod.ProjectileType("HeavenfallenEnergy"), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); + } + } + } + } + } +} diff --git a/Projectiles/Astral/HeavenfallenStardisk.png b/Projectiles/Astral/HeavenfallenStardisk.png new file mode 100644 index 0000000000000000000000000000000000000000..beedd16af7e5d97357200db54021563cb481b1cb GIT binary patch literal 979 zcmV;^11$WBP)voLUKKLNy41G#CSds4-fDF)lO#d@P8sg|5Wt!bDsc6Qc%Q zD1r~-LL>n0B@zRqXd#x;+KMegfpKx>Fx-#X%-nm=Id|rp^Z)nH zWR!_lmpu=1=lVg-wN;>_drG0)oC~9QY<~v+J{69;#?*ipx4$u(>Bfv|)c+8fktd>5 zb3T04{fEaFp!Muwu;j5xmtC;$t3j~$NLaePDi5-S!3^|eu0mzG)QVNdH|3<(tn3K` z9(ih13ub)?<`m@|3DWIV`2zF~9?Zb3d@C3_IdsW&(koV3>e1wkPlL$Fy%b~4bs=f9 zcZI!VeGplFO($sEceX%zDaC!CTCvRLC!WS-q$&tiiYWNmqPxMY#SbK||N6}r;I%bx zpZ`pxSgg97RNsnsaA7@a4A-kJy-=)k8zxT=$8B@KxhPbW`RKWq6Z5`q-vydmW@cc2 z#{r~S?EJg3QlWAW4IR%w=kPGt+1XKm+gon~!*lNet+}(Hrz_BIdT14B%3Y6=P>lL) zT|%ns*iX13#ERMX-XD#ic|zz8a;HLfvHsXmaB!eIAr<%1rgd8q3rC^Fx6B6{w|x$3 zrcTR1|6c=OsCpb|xG9Wl5MI+SwsvDZXwIJszxm-}fWgmFvn1clnkC`sMAB~*oPmxsNcTCww5xrUoTeYOtt z^c_$9<}nKob^QjGwJi_hN7St-8S7PjK2-GKx~svs(+ben(gd1{S-oRP=#1yx@d;8a zRvo39TV{g&9S0J1Dn_hVD;B?kQdiKvbuZX;!wire{0F71BM6N<9S+XizW_AN&Y>jr z?1{07`=wSa6U7w2*$Zo*LHWLEb5Z8_zOMgtqq?Hd?D-+f-CmX^u zZ$hy<$o%sAsQxdTw4f-|8M1idu|ILKRE*S${R_^?SFwm-g>nD@002ovPDHLkV1n)P B 5) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 5) - { - projectile.frame = 0; - } - projectile.velocity.Y += 0.5f; - - if(projectile.velocity.Y > 10f) + DisplayName.SetDefault("Hive"); + Main.projFrames[projectile.type] = 6; + } + + public override void SetDefaults() + { + projectile.width = 38; + projectile.height = 60; + projectile.ignoreWater = true; + projectile.tileCollide = true; + projectile.sentry = true; + projectile.timeLeft = Projectile.SentryLifeTime; + projectile.penetrate = -1; + } + + public override void AI() + { + if (projectile.localAI[0] == 0f) + { + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + projectile.localAI[0] += 1f; + } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 5) + { + projectile.frame = 0; + } + projectile.velocity.Y += 0.5f; + + if (projectile.velocity.Y > 10f) { projectile.velocity.Y = 10f; - } - - if (projectile.owner == Main.myPlayer) + } + + if (projectile.owner == Main.myPlayer) { if (projectile.ai[0] != 0f) { @@ -54,23 +68,27 @@ namespace CalamityMod.Projectiles.Astral return; } projectile.ai[1] += 1f; - if((projectile.ai[1] % 15f) == 0f) + if ((projectile.ai[1] % 15f) == 0f) { float velocityX = Main.rand.NextFloat(-0.4f, 0.4f); float velocityY = Main.rand.NextFloat(-0.3f, -0.5f); Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, velocityX, velocityY, mod.ProjectileType("Hiveling"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - return; - } - } - } - - public override bool OnTileCollide(Vector2 oldVelocity) - { - if (projectile.penetrate == 0) - { - projectile.Kill(); - } - return false; - } - } + } + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + if (projectile.penetrate == 0) + { + projectile.Kill(); + } + return false; + } + + public override bool CanDamage() + { + return false; + } + } } diff --git a/Projectiles/Astral/RadiantExplosion.cs b/Projectiles/Astral/RadiantExplosion.cs new file mode 100644 index 0000000000..96c758efd7 --- /dev/null +++ b/Projectiles/Astral/RadiantExplosion.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Astral +{ + public class RadiantExplosion : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Explosion"); + } + + public override void SetDefaults() + { + projectile.width = 150; + projectile.height = 150; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.penetrate = -1; + projectile.timeLeft = 10; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.localAI[0] += 1f; + if (projectile.localAI[0] > 4f) + { + for (int i = 0; i < 5; i++) + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralBlue"), 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } + for (int i = 0; i < 5; i++) + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, mod.DustType("AstralOrange"), 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + for (int n = 0; n < 3; n++) + { + float x = target.position.X + (float)Main.rand.Next(-400, 400); + float y = target.position.Y - (float)Main.rand.Next(500, 800); + Vector2 vector = new Vector2(x, y); + float num13 = target.position.X + (float)(target.width / 2) - vector.X; + float num14 = target.position.Y + (float)(target.height / 2) - vector.Y; + num13 += (float)Main.rand.Next(-100, 101); + int num15 = 25; + int projectileType = Main.rand.Next(3); + if (projectileType == 0) + { + projectileType = mod.ProjectileType("AstralStar"); + } + else if (projectileType == 1) + { + projectileType = ProjectileID.HallowStar; + } + else + { + projectileType = ProjectileID.FallingStar; + } + float num16 = (float)Math.Sqrt((double)(num13 * num13 + num14 * num14)); + num16 = (float)num15 / num16; + num13 *= num16; + num14 *= num16; + int num17 = Projectile.NewProjectile(x, y, num13, num14, projectileType, (int)((double)projectile.damage * 0.75), 5f, projectile.owner, 2f, 0f); + Main.projectile[num17].ranged = false; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Astral/RadiantExplosion.png b/Projectiles/Astral/RadiantExplosion.png new file mode 100644 index 0000000000000000000000000000000000000000..3ccaea528f69be63e5075b8ebd4f935ab4bf24e9 GIT binary patch literal 1371 zcmeAS@N?(olHy`uVBq!ia0vp^CqS5k4M?tyST~P>fmO-V#WAEJ?(Nl$f(HzEj%=v- zztp%fc0=uwaK#gQ=A3tLI1u_^gQCL&Jq3aF%?F$v6y~urHdZjR%xbXrC^j}#QkXE& zIeIfE$C8~hr33{|oLIQ_CJW1@J3hS}94SvOT+3l%%FJ8l#=>G$l#y-5*l1!NtjxqD zX}QI8c7wyL*((JZ8+&AK&GL0nID7U=M}vbKU+!5og$d8nvRoV#l-swZ2@8x`Ga6{4 iDQz_03{YY7gHbz#;pC(pPqzUJO$JX_KbLh*2~7aFk^xTu literal 0 HcmV?d00001 diff --git a/Projectiles/Astral/RadiantStar.cs b/Projectiles/Astral/RadiantStar.cs new file mode 100644 index 0000000000..dcf026de8f --- /dev/null +++ b/Projectiles/Astral/RadiantStar.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Astral +{ + public class RadiantStar : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Radiant Star"); + } + + public override void SetDefaults() + { + projectile.width = 24; + projectile.height = 24; + projectile.friendly = true; + projectile.penetrate = 4; + projectile.timeLeft = 300; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if(projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + projectile.ai[1] += 1f; + if (projectile.ai[1] == 25f) + { + int numProj = 2; + float rotation = MathHelper.ToRadians(50); + if (projectile.owner == Main.myPlayer) + { + for (int i = 0; i < numProj + 1; i++) + { + Vector2 speed = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51)); + while (speed.X == 0f && speed.Y == 0f) + { + speed = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51)); + } + speed.Normalize(); + speed *= ((float)Main.rand.Next(30, 61) * 0.1f) * 2.5f; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, mod.ProjectileType("RadiantStar2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + } + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("RadiantExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + projectile.active = false; + return; + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Astral/RadiantStar.png b/Projectiles/Astral/RadiantStar.png new file mode 100644 index 0000000000000000000000000000000000000000..d5a854d774de9fc68ebcbc9fffbd732e1140c117 GIT binary patch literal 1300 zcmV+v1?&2WP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1gS|xK~!i%?U{c} z)O8rg4>%AwL*$1-UZPme?O2-4Mv)o*$kp)*nS4}$67>92iYfyWK@ zS04rQpIZbcdYd{ikEQ?0q4;s2;@I1`@%bZRkXpRA3EXsW4cNG)2FzF?PJ~)Ibq?Wv z(t#;z!hzAv&)~-8Jxf7~IZ?O&G+63g0Wv3YtG0ri8zmih82u#&Sbf&)@_@{Vb-xUQ zo>g-|{Ty>6?8<}#=|lH0*UIYaj$B1oV{={PYHFJK4s6(e5ErJd+xo%sFWNx%0Y;u; zPOv(0p5v4paJF>Vs#99%9`0AB4PxFnFc!6XC7uH&2XL|eg@s`Knd`Qk(0xHyB|6}{ za2M>TZ2@zZ6oAej&x2|AM-btR;UHeW){|ku;q`?;qXcyzLI<6g|C029+sE4wDc1Qr zK0ipYU$9fNKhOc)FI*||USomos1D>gv+(o4=m_Rhbt3*8F#6jZpjf5Y2bdF-b|kO0 z1AHwt7p&UZ16Cg?1b^z4*E4#kT!>!>v;t+NAR|jLH?$M1LIdr0z;}NOfI9N;70J1R zxey!-N-p%v^ReXbz5>Rj12&nx4d^VBKG8Qc3WpeBEmkMy2p!<_Z`8?s9eJwD-xaxv zDXcmE9Ec^I8|({uZ^TZlb3%7$=E9_^1HJgvD)7-~i$SW#p9X$)=rhpBw&uihK#SFh z;%A)>P^?bu2Rs*S@NNN5)E)yVI&!4$2XOI{C$QFQ?Z0DAC5{7TKMy*_#fZ$zEO2OC zoMDGO`Qchn@11zAU@mMQd;p%hbOEGF-BRru&YcBIirrXa*DZNHRv-7gC&Bo4pkn1F zuyU!K0~*@Gwp@56U+R9<@mImXjxRxK@7*Hs@_LCFwY**;+2Owq>d5Ej%)#3F2c(KI z@>JqEV1&s3x^FHf6WT7jRz^N=qYHexMjWHOt1H0p4f!m8J6r1eg0ts9?SK*1rXx=! zt^-;;Suyg@f7%C*%$*1B-c}AC{$3(Yu@A7`vl?+Pl*|EYk^?rCWy`O&4o4b;lJ2l{ z^N(NO1?s&GRpJ&$-hAH+ zes`!A)X&H2$cgKK7OR4h&4F+B9RT^6o}XWc_w0*Qmryu_=Rd06gE<}0IWysedtqeF zf*J3?zxD^TojQtPMcx{Pc?BufxZT_1u!e~|24$VRtYP(mXy@X}^3@n7^2RZ1!0GX1 z4p2G=sAXl3<2|mn{(-sP&l}mEFMdqE{k(NUzORs|o7WkU|BjSD5O)sr-v^TpP?I7W zRk8LmRCZQ2Sn3i6GhJ{%?|$|FQj-o$m-MdpliXRDtbIoup}5;E%9xF{CmonBX$N@D zXt^m%WYsZebKEdzbIg+tOqc%Y(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if(projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + float centerX = projectile.Center.X; + float centerY = projectile.Center.Y; + float num474 = 600f; + bool homeIn = false; + for (int i = 0; i < 200; i++) + { + if (Main.npc[i].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[i].Center, 1, 1)) + { + float num476 = Main.npc[i].position.X + (float)(Main.npc[i].width / 2); + float num477 = Main.npc[i].position.Y + (float)(Main.npc[i].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + centerX = num476; + centerY = num477; + homeIn = true; + } + } + } + if (homeIn) + { + float num483 = 24f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = centerX - vector35.X; + float num485 = centerY - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; + projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; + return; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Astral/RadiantStar2.png b/Projectiles/Astral/RadiantStar2.png new file mode 100644 index 0000000000000000000000000000000000000000..d5a854d774de9fc68ebcbc9fffbd732e1140c117 GIT binary patch literal 1300 zcmV+v1?&2WP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1gS|xK~!i%?U{c} z)O8rg4>%AwL*$1-UZPme?O2-4Mv)o*$kp)*nS4}$67>92iYfyWK@ zS04rQpIZbcdYd{ikEQ?0q4;s2;@I1`@%bZRkXpRA3EXsW4cNG)2FzF?PJ~)Ibq?Wv z(t#;z!hzAv&)~-8Jxf7~IZ?O&G+63g0Wv3YtG0ri8zmih82u#&Sbf&)@_@{Vb-xUQ zo>g-|{Ty>6?8<}#=|lH0*UIYaj$B1oV{={PYHFJK4s6(e5ErJd+xo%sFWNx%0Y;u; zPOv(0p5v4paJF>Vs#99%9`0AB4PxFnFc!6XC7uH&2XL|eg@s`Knd`Qk(0xHyB|6}{ za2M>TZ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+ projectile.rotation += 1f; + projectile.velocity.X *= 0.985f; + projectile.velocity.Y *= 0.985f; + } + else + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if(projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + float centerX = projectile.Center.X; + float centerY = projectile.Center.Y; + float num474 = 600f; + bool homeIn = false; + for (int i = 0; i < 200; i++) + { + if (Main.npc[i].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[i].Center, 1, 1)) + { + float num476 = Main.npc[i].position.X + (float)(Main.npc[i].width / 2); + float num477 = Main.npc[i].position.Y + (float)(Main.npc[i].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + centerX = num476; + centerY = num477; + homeIn = true; + } + } + } + if (homeIn) + { + float num483 = 30f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = centerX - vector35.X; + float num485 = centerY - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 10f + num484) / 11f; + projectile.velocity.Y = (projectile.velocity.Y * 10f + num485) / 11f; + return; + } + else + { + projectile.velocity.X *= 0.92f; + projectile.velocity.Y *= 0.92f; + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, mod.DustType("AstralBlue"), projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Astral/StellarKnife.png b/Projectiles/Astral/StellarKnife.png new file mode 100644 index 0000000000000000000000000000000000000000..0adabcb0fce82986f97f0bba3274cc5e878f5048 GIT binary patch literal 528 zcmV+r0`L8aP)D zHuC+?fCP@7+suf}r!|{#&^X|8f)CiUybHE~X?leOJOl>Z0qorwV4wdioiQ*WFlZd` z=IRr=rUiH!fQ7(-I{=pN>E#fN5TLsQU>3p(B%=f6V4=;m2f?(Gp8-nlfT_n-PM{ZT zgw(@}-9h63SYp&R<;NNlxY7p915sIiDAmWZX`AqtD;Oa#U=F~Q7GUDAG{L7Vg5pD1 z-QnsNh$6n}@KF>#=lfS!Ljt4fMNbQKcL1>=F*_Ghcfi1{1M9#{HHRRq;<(ZR&c+9! zkf6B(&_e>2IAP+!_n%?)@qzZKC?Rm*{AuEH0g5gp4lE=F%mL^j;b3SA7Gjl^0n?%~ zfANOI!p&>I@=sn}!W!K~H$Y(_L3anhEQaOt-;W{f1u08OF#YWKa}@sTC(I}z(_S^1 zvJe<_4uF+#$&nT)AplD&u#lO%`~*t6esvj=8_?4N!8Cv#0t4m%n0LMlih-Gaw$@;J z_onq=`r(s@SaY(NE+p4zb8~>{{U;8is3STA2FwBI-XgUtCnKf@?t3~~*n*9+fVQw; zxr1N`3_1s3jc6hSVIfi3mJ3!*b_ft*7gi+$?f{spU=D%tNlpXgh5#-H005g3XDZeA SE#UwF002ovPDHLkV1fYj!{wa- literal 0 HcmV?d00001 diff --git a/Projectiles/AtlantisSpear.png b/Projectiles/AtlantisSpear.png deleted file mode 100644 index 9ac770b5b5f04387f449209deac9f3f32c9f4281..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3335 zcmV+i4fyhjP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T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ciA&;C&bl${ifUFIZOJX+M$}xBp#vmjPnUg3RIjA d_)H46U|_CS{K5S2PCn2b44$rjF6*2UngH6eJ&gbW diff --git a/Projectiles/Boss/AbyssBallVolley2.cs b/Projectiles/Boss/AbyssBallVolley2.cs index e28ecab059..73f0cb8a8b 100644 --- a/Projectiles/Boss/AbyssBallVolley2.cs +++ b/Projectiles/Boss/AbyssBallVolley2.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Abyss Ball Volley V2"); + DisplayName.SetDefault("Abyss Ball Volley"); } public override void SetDefaults() diff --git a/Projectiles/Boss/AbyssMine2.cs b/Projectiles/Boss/AbyssMine2.cs index 96db73830a..ad4a63909a 100644 --- a/Projectiles/Boss/AbyssMine2.cs +++ b/Projectiles/Boss/AbyssMine2.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Abyss Mine V2"); + DisplayName.SetDefault("Abyss Mine"); } public override void SetDefaults() diff --git a/Projectiles/Boss/AstralFlame.cs b/Projectiles/Boss/AstralFlame.cs index 4daa1b9aa2..270125513f 100644 --- a/Projectiles/Boss/AstralFlame.cs +++ b/Projectiles/Boss/AstralFlame.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Flame"); + DisplayName.SetDefault("Astral Homing Flame"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/AstralLaser.cs b/Projectiles/Boss/AstralLaser.cs index 1f134722ea..c63c6ebd77 100644 --- a/Projectiles/Boss/AstralLaser.cs +++ b/Projectiles/Boss/AstralLaser.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Laser"); + DisplayName.SetDefault("Astral Laser Volley"); Main.projFrames[projectile.type] = 3; } diff --git a/Projectiles/Boss/AstralShot2.cs b/Projectiles/Boss/AstralShot2.cs index 08d6d89afc..4ff5c54974 100644 --- a/Projectiles/Boss/AstralShot2.cs +++ b/Projectiles/Boss/AstralShot2.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Laser"); + DisplayName.SetDefault("Astral Laser"); } public override void SetDefaults() diff --git a/Projectiles/Boss/BigFlare.cs b/Projectiles/Boss/BigFlare.cs index e523b6e451..fae6aeeeca 100644 --- a/Projectiles/Boss/BigFlare.cs +++ b/Projectiles/Boss/BigFlare.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Flare"); + DisplayName.SetDefault("Big Flare"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/BrimDust.cs b/Projectiles/Boss/BrimDust.cs deleted file mode 100644 index 11d3d02285..0000000000 --- a/Projectiles/Boss/BrimDust.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Boss -{ - public class BrimDust : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Brimdust"); - } - - public override void SetDefaults() - { - projectile.width = 46; - projectile.height = 46; - projectile.hostile = true; - projectile.ignoreWater = true; - projectile.tileCollide = false; - projectile.penetrate = -1; - } - - public override void AI() - { - projectile.velocity.X *= 0.985f; - projectile.velocity.Y *= 0.975f; - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.75f) / 255f, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); - for (int num468 = 0; num468 < 3; num468++) - { - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default(Color), 1f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } - } - - public override void OnHitPlayer(Player target, int damage, bool crit) - { - target.AddBuff(mod.BuffType("BrimstoneFlames"), 180); - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); - projectile.position.X = projectile.position.X + (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); - projectile.width = 100; - projectile.height = 100; - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - for (int num621 = 0; num621 < 10; num621++) - { - int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default(Color), 1f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 20; num623++) - { - int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default(Color), 1f); - Main.dust[num624].velocity *= 2f; - } - projectile.position.X = projectile.position.X + (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); - projectile.width = 100; - projectile.height = 100; - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - } - } -} \ No newline at end of file diff --git a/Projectiles/Boss/BrimDust.png b/Projectiles/Boss/BrimDust.png deleted file mode 100644 index 59a8c4835443aa8ea7f3de5553bf81edab235673..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 177 zcmeAS@N?(olHy`uVBq!ia0vp^dLYcf1|-9GYMTQowj^(N7l!{JxM1({$v_d#0*}aI z1_r((Aj~*bn@<`j$X?><>&pIsU6zSg(V!uM7bs-s>EalYaqsOpMj(%aSz&Aa^Jr&t m4+r&?{mbSFiQ@(PQyB}cGDn`-srnLV5`(9!pUXO@geCxFh$#^O diff --git a/Projectiles/Boss/BrimstoneBall.cs b/Projectiles/Boss/BrimstoneBall.cs index 7cbf055f9e..a0d3f85b3a 100644 --- a/Projectiles/Boss/BrimstoneBall.cs +++ b/Projectiles/Boss/BrimstoneBall.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ball"); + DisplayName.SetDefault("Brimstone Fireball"); } public override void SetDefaults() diff --git a/Projectiles/BrimstoneBall2.cs b/Projectiles/Boss/BrimstoneBall2.cs similarity index 92% rename from Projectiles/BrimstoneBall2.cs rename to Projectiles/Boss/BrimstoneBall2.cs index cc1a4e0f61..0fc6791c13 100644 --- a/Projectiles/BrimstoneBall2.cs +++ b/Projectiles/Boss/BrimstoneBall2.cs @@ -5,13 +5,13 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class BrimstoneBall2 : ModProjectile { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ball"); + DisplayName.SetDefault("Brimstone Fireball"); } public override void SetDefaults() diff --git a/Projectiles/BrimstoneBall2.png b/Projectiles/Boss/BrimstoneBall2.png similarity index 100% rename from Projectiles/BrimstoneBall2.png rename to Projectiles/Boss/BrimstoneBall2.png diff --git a/Projectiles/Boss/BrimstoneBarrage.cs b/Projectiles/Boss/BrimstoneBarrage.cs index e3d9187b69..9a59b09046 100644 --- a/Projectiles/Boss/BrimstoneBarrage.cs +++ b/Projectiles/Boss/BrimstoneBarrage.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Brimstone"); + DisplayName.SetDefault("Brimstone Dart"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/BrimstoneFire.cs b/Projectiles/Boss/BrimstoneFire.cs index cc6a4905f1..ca26e955e2 100644 --- a/Projectiles/Boss/BrimstoneFire.cs +++ b/Projectiles/Boss/BrimstoneFire.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Fire"); + DisplayName.SetDefault("Brimstone Fire"); } public override void SetDefaults() diff --git a/Projectiles/Boss/BrimstoneFireblast.cs b/Projectiles/Boss/BrimstoneFireblast.cs index 382aff111e..1ef3678c0c 100644 --- a/Projectiles/Boss/BrimstoneFireblast.cs +++ b/Projectiles/Boss/BrimstoneFireblast.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Fireblast"); + DisplayName.SetDefault("Brimstone Gigablast"); Main.projFrames[projectile.type] = 6; } diff --git a/Projectiles/Boss/BrimstoneGigaBlast.cs b/Projectiles/Boss/BrimstoneGigaBlast.cs index 7bf45e9434..270f4d6de7 100644 --- a/Projectiles/Boss/BrimstoneGigaBlast.cs +++ b/Projectiles/Boss/BrimstoneGigaBlast.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Giga Blast"); + DisplayName.SetDefault("Brimstone Fireblast"); Main.projFrames[projectile.type] = 6; } diff --git a/Projectiles/Boss/BrimstoneHellblast.cs b/Projectiles/Boss/BrimstoneHellblast.cs index 353c7a307f..638d8f8146 100644 --- a/Projectiles/Boss/BrimstoneHellblast.cs +++ b/Projectiles/Boss/BrimstoneHellblast.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Hellblast"); + DisplayName.SetDefault("Brimstone Hellblast"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/BrimstoneHellblast2.cs b/Projectiles/Boss/BrimstoneHellblast2.cs index d9843217fa..fd3774b59b 100644 --- a/Projectiles/Boss/BrimstoneHellblast2.cs +++ b/Projectiles/Boss/BrimstoneHellblast2.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Hellblast"); + DisplayName.SetDefault("Brimstone Hellblast"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/BrimstoneHellfireball.cs b/Projectiles/Boss/BrimstoneHellfireball.cs index 2c662646ef..f21e6fc627 100644 --- a/Projectiles/Boss/BrimstoneHellfireball.cs +++ b/Projectiles/Boss/BrimstoneHellfireball.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Hellfire"); + DisplayName.SetDefault("Brimstone Hellfireball"); } public override void SetDefaults() diff --git a/Projectiles/Boss/BrimstoneLaser.cs b/Projectiles/Boss/BrimstoneLaser.cs index 6b83b8ccc0..80a04058bd 100644 --- a/Projectiles/Boss/BrimstoneLaser.cs +++ b/Projectiles/Boss/BrimstoneLaser.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Boss public override void SetStaticDefaults() { - DisplayName.SetDefault("Laser"); + DisplayName.SetDefault("Brimstone Laser"); } public override void SetDefaults() diff --git a/Projectiles/Boss/BrimstoneLaserSplit.cs b/Projectiles/Boss/BrimstoneLaserSplit.cs index 5d6771bc8c..3f66d94133 100644 --- a/Projectiles/Boss/BrimstoneLaserSplit.cs +++ b/Projectiles/Boss/BrimstoneLaserSplit.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Laser"); + DisplayName.SetDefault("Brimstone Homing Laser"); } public override void SetDefaults() diff --git a/Projectiles/Boss/BrimstoneMonster.cs b/Projectiles/Boss/BrimstoneMonster.cs index 815e18045d..eb44a76501 100644 --- a/Projectiles/Boss/BrimstoneMonster.cs +++ b/Projectiles/Boss/BrimstoneMonster.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Boss public override void SetStaticDefaults() { - DisplayName.SetDefault("Monster"); + DisplayName.SetDefault("Brimstone Monster"); } public override void SetDefaults() diff --git a/Projectiles/BrimstoneShot.cs b/Projectiles/Boss/BrimstoneShot.cs similarity index 93% rename from Projectiles/BrimstoneShot.cs rename to Projectiles/Boss/BrimstoneShot.cs index fe449bccd6..38f2117cef 100644 --- a/Projectiles/BrimstoneShot.cs +++ b/Projectiles/Boss/BrimstoneShot.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class BrimstoneShot : ModProjectile { @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles public override void SetStaticDefaults() { - DisplayName.SetDefault("Laser"); + DisplayName.SetDefault("Brimstone Laser"); } public override void SetDefaults() diff --git a/Projectiles/BrimstoneShot.png b/Projectiles/Boss/BrimstoneShot.png similarity index 100% rename from Projectiles/BrimstoneShot.png rename to Projectiles/Boss/BrimstoneShot.png diff --git a/Projectiles/Boss/BrimstoneWave.cs b/Projectiles/Boss/BrimstoneWave.cs index e96a313ee1..c5060103a3 100644 --- a/Projectiles/Boss/BrimstoneWave.cs +++ b/Projectiles/Boss/BrimstoneWave.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Boss public override void SetStaticDefaults() { - DisplayName.SetDefault("Flame Skull"); + DisplayName.SetDefault("Brimstone Flame Skull"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/DarkEnergyBall.cs b/Projectiles/Boss/DarkEnergyBall.cs index 9edbbe9a9f..24f93576e6 100644 --- a/Projectiles/Boss/DarkEnergyBall.cs +++ b/Projectiles/Boss/DarkEnergyBall.cs @@ -26,7 +26,8 @@ namespace CalamityMod.Projectiles.Boss projectile.hostile = true; projectile.tileCollide = false; projectile.timeLeft = 600; - } + cooldownSlot = 1; + } public override void AI() { diff --git a/Projectiles/Boss/DestroyerHomingLaser.cs b/Projectiles/Boss/DestroyerHomingLaser.cs index 8835818935..4c66d57365 100644 --- a/Projectiles/Boss/DestroyerHomingLaser.cs +++ b/Projectiles/Boss/DestroyerHomingLaser.cs @@ -1,77 +1,77 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Boss -{ - public class DestroyerHomingLaser : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Laser"); - } - - public override void SetDefaults() - { - projectile.width = 4; - projectile.height = 4; - projectile.hostile = true; - projectile.ignoreWater = true; - projectile.alpha = 255; - projectile.penetrate = 1; - projectile.timeLeft = 600; - projectile.scale = 1.8f; - } - - public override void AI() - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.75f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); - if (projectile.alpha > 0) - { - projectile.alpha -= 125; - } - if (projectile.alpha < 0) - { - projectile.alpha = 0; - } - if (projectile.localAI[1] == 0f) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 33); - } - projectile.localAI[1] += 1f; - if (projectile.localAI[1] >= 120f) - { - int num103 = (int)Player.FindClosest(projectile.Center, 1, 1); - projectile.ai[0] += 1f; - if (projectile.ai[0] < 360f) - { - float scaleFactor2 = projectile.velocity.Length(); - Vector2 vector11 = Main.player[num103].Center - projectile.Center; - vector11.Normalize(); - vector11 *= scaleFactor2; - projectile.velocity = (projectile.velocity * 24f + vector11) / 25f; - projectile.velocity.Normalize(); - projectile.velocity *= scaleFactor2; - } - } - if (projectile.velocity.Length() < 18f) - { - projectile.velocity *= 1.02f; - } - } - - public override Color? GetAlpha(Color lightColor) - { - if (projectile.alpha < 200) - { - return new Color(255 - projectile.alpha, 255 - projectile.alpha, 255 - projectile.alpha, 0); - } - return Color.Transparent; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Boss +{ + public class DestroyerHomingLaser : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Homing Laser"); + } + + public override void SetDefaults() + { + projectile.width = 4; + projectile.height = 4; + projectile.hostile = true; + projectile.ignoreWater = true; + projectile.alpha = 255; + projectile.penetrate = 1; + projectile.timeLeft = 600; + projectile.scale = 1.8f; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.75f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); + if (projectile.alpha > 0) + { + projectile.alpha -= 125; + } + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + if (projectile.localAI[1] == 0f) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 33); + } + projectile.localAI[1] += 1f; + if (projectile.localAI[1] >= 120f) + { + int num103 = (int)Player.FindClosest(projectile.Center, 1, 1); + projectile.ai[0] += 1f; + if (projectile.ai[0] < 360f) + { + float scaleFactor2 = projectile.velocity.Length(); + Vector2 vector11 = Main.player[num103].Center - projectile.Center; + vector11.Normalize(); + vector11 *= scaleFactor2; + projectile.velocity = (projectile.velocity * 24f + vector11) / 25f; + projectile.velocity.Normalize(); + projectile.velocity *= scaleFactor2; + } + } + if (projectile.velocity.Length() < 18f) + { + projectile.velocity *= 1.02f; + } + } + + public override Color? GetAlpha(Color lightColor) + { + if (projectile.alpha < 200) + { + return new Color(255 - projectile.alpha, 255 - projectile.alpha, 255 - projectile.alpha, 0); + } + return Color.Transparent; + } + } } \ No newline at end of file diff --git a/Projectiles/Boss/DeusMine.cs b/Projectiles/Boss/DeusMine.cs index 8f91d73a03..65009d71c1 100644 --- a/Projectiles/Boss/DeusMine.cs +++ b/Projectiles/Boss/DeusMine.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Mine"); + DisplayName.SetDefault("Astral Mine"); } public override void SetDefaults() diff --git a/Projectiles/Boss/DoGBeam.cs b/Projectiles/Boss/DoGBeam.cs index b2ca13a6ef..ef7d032234 100644 --- a/Projectiles/Boss/DoGBeam.cs +++ b/Projectiles/Boss/DoGBeam.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Laser"); + DisplayName.SetDefault("Portal Laser"); Main.projFrames[projectile.type] = 2; } diff --git a/Projectiles/Boss/DoGBeamPortal.cs b/Projectiles/Boss/DoGBeamPortal.cs index 4422c9473f..3ad64ed8a8 100644 --- a/Projectiles/Boss/DoGBeamPortal.cs +++ b/Projectiles/Boss/DoGBeamPortal.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Boss public override void SetStaticDefaults() { - DisplayName.SetDefault("Portal"); + DisplayName.SetDefault("Beam Portal"); Main.projFrames[projectile.type] = 6; } diff --git a/Projectiles/Boss/DoGDeath.cs b/Projectiles/Boss/DoGDeath.cs index 01361ece12..45db3dcdfa 100644 --- a/Projectiles/Boss/DoGDeath.cs +++ b/Projectiles/Boss/DoGDeath.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Death"); + DisplayName.SetDefault("Death Beam"); } public override void SetDefaults() diff --git a/Projectiles/Boss/DoGNebulaShot.cs b/Projectiles/Boss/DoGNebulaShot.cs index 79734fcd4d..4183b082c8 100644 --- a/Projectiles/Boss/DoGNebulaShot.cs +++ b/Projectiles/Boss/DoGNebulaShot.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Laser"); + DisplayName.SetDefault("Death Laser"); } public override void SetDefaults() diff --git a/Projectiles/Boss/EssenceDust.cs b/Projectiles/Boss/EssenceDust.cs index 6a7b30d34c..d9c5f4876a 100644 --- a/Projectiles/Boss/EssenceDust.cs +++ b/Projectiles/Boss/EssenceDust.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Dust"); + DisplayName.SetDefault("Cosmic Dust"); } public override void SetDefaults() diff --git a/Projectiles/Boss/FlareBomb.cs b/Projectiles/Boss/FlareBomb.cs index 77d8862d98..0562b65347 100644 --- a/Projectiles/Boss/FlareBomb.cs +++ b/Projectiles/Boss/FlareBomb.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Bomb"); + DisplayName.SetDefault("Flare Bomb"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/FlareDust.cs b/Projectiles/Boss/FlareDust.cs index 6497f7f84f..f6aa1c260a 100644 --- a/Projectiles/Boss/FlareDust.cs +++ b/Projectiles/Boss/FlareDust.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Dust"); + DisplayName.SetDefault("Flare Dust"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/FlareDust2.cs b/Projectiles/Boss/FlareDust2.cs index c6416763fb..dfe22345bc 100644 --- a/Projectiles/Boss/FlareDust2.cs +++ b/Projectiles/Boss/FlareDust2.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Dust"); + DisplayName.SetDefault("Flare Bomb"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/FlareExplosionHuge.cs b/Projectiles/Boss/FlareExplosionHuge.cs similarity index 89% rename from Projectiles/FlareExplosionHuge.cs rename to Projectiles/Boss/FlareExplosionHuge.cs index cfbb0d263e..048f4803e8 100644 --- a/Projectiles/FlareExplosionHuge.cs +++ b/Projectiles/Boss/FlareExplosionHuge.cs @@ -5,13 +5,13 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class FlareExplosionHuge : ModProjectile { public override void SetStaticDefaults() { - DisplayName.SetDefault("Explosion"); + DisplayName.SetDefault("Flare Explosion"); } public override void SetDefaults() @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.tileCollide = false; projectile.penetrate = -1; projectile.timeLeft = 60; - } + cooldownSlot = 1; + } public override void AI() { diff --git a/Projectiles/FlareExplosionHuge.png b/Projectiles/Boss/FlareExplosionHuge.png similarity index 100% rename from Projectiles/FlareExplosionHuge.png rename to Projectiles/Boss/FlareExplosionHuge.png diff --git a/Projectiles/Boss/FrostMist.cs b/Projectiles/Boss/FrostMist.cs index 3533e3e87f..4d934e35ce 100644 --- a/Projectiles/Boss/FrostMist.cs +++ b/Projectiles/Boss/FrostMist.cs @@ -8,40 +8,40 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Boss { - public class FrostMist : ModProjectile - { - public override void SetStaticDefaults() + public class FrostMist : ModProjectile + { + public override void SetStaticDefaults() { - DisplayName.SetDefault("Mist"); + DisplayName.SetDefault("Frost Mist"); Main.projFrames[projectile.type] = 6; } - - public override void SetDefaults() - { - projectile.width = 20; - projectile.height = 20; - projectile.hostile = true; - projectile.ignoreWater = true; - projectile.penetrate = 1; - projectile.timeLeft = 300; - projectile.alpha = 255; - } - public override void AI() - { - projectile.frameCounter++; + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.hostile = true; + projectile.ignoreWater = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.alpha = 255; + } + + public override void AI() + { + projectile.frameCounter++; if (projectile.frameCounter > 4) { - projectile.frame++; - projectile.frameCounter = 0; + projectile.frame++; + projectile.frameCounter = 0; } if (projectile.frame > 3) { - projectile.frame = 0; + projectile.frame = 0; } - if (projectile.ai[1] == 0f) - { - for (int num621 = 0; num621 < 5; num621++) + if (projectile.ai[1] == 0f) + { + for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 187, 0f, 0f, 100, default(Color), 2f); Main.dust[num622].velocity *= 3f; @@ -51,27 +51,27 @@ namespace CalamityMod.Projectiles.Boss Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; } } - projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 30); - } - projectile.localAI[1] += 1f; - if (projectile.localAI[1] == 16f) - { - projectile.localAI[1] = 0f; - for (int l = 0; l < 12; l++) - { - Vector2 vector3 = Vector2.UnitX * (float)(-(float)projectile.width) / 2f; - vector3 += -Vector2.UnitY.RotatedBy((double)((float)l * 3.14159274f / 6f), default(Vector2)) * new Vector2(8f, 16f); - vector3 = vector3.RotatedBy((double)(projectile.rotation - 1.57079637f), default(Vector2)); - int num9 = Dust.NewDust(projectile.Center, 0, 0, 187, 0f, 0f, 160, default(Color), 1f); - Main.dust[num9].scale = 1.1f; - Main.dust[num9].noGravity = true; - Main.dust[num9].position = projectile.Center + vector3; - Main.dust[num9].velocity = projectile.velocity * 0.1f; - Main.dust[num9].velocity = Vector2.Normalize(projectile.Center - projectile.velocity * 3f - Main.dust[num9].position) * 1.25f; - } - } - if (projectile.localAI[0] == 0f) + projectile.ai[1] = 1f; + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 30); + } + projectile.localAI[1] += 1f; + if (projectile.localAI[1] == 16f) + { + projectile.localAI[1] = 0f; + for (int l = 0; l < 12; l++) + { + Vector2 vector3 = Vector2.UnitX * (float)(-(float)projectile.width) / 2f; + vector3 += -Vector2.UnitY.RotatedBy((double)((float)l * 3.14159274f / 6f), default(Vector2)) * new Vector2(8f, 16f); + vector3 = vector3.RotatedBy((double)(projectile.rotation - 1.57079637f), default(Vector2)); + int num9 = Dust.NewDust(projectile.Center, 0, 0, 187, 0f, 0f, 160, default(Color), 1f); + Main.dust[num9].scale = 1.1f; + Main.dust[num9].noGravity = true; + Main.dust[num9].position = projectile.Center + vector3; + Main.dust[num9].velocity = projectile.velocity * 0.1f; + Main.dust[num9].velocity = Vector2.Normalize(projectile.Center - projectile.velocity * 3f - Main.dust[num9].position) * 1.25f; + } + } + if (projectile.localAI[0] == 0f) { projectile.scale -= 0.01f; projectile.alpha += 10; @@ -91,7 +91,7 @@ namespace CalamityMod.Projectiles.Boss projectile.localAI[0] = 0f; } } - int num103 = (int)Player.FindClosest(projectile.Center, 1, 1); + int num103 = (int)Player.FindClosest(projectile.Center, 1, 1); projectile.ai[1] += 1f; if (projectile.ai[1] < 110f && projectile.ai[1] > 30f) { @@ -103,32 +103,33 @@ namespace CalamityMod.Projectiles.Boss projectile.velocity.Normalize(); projectile.velocity *= scaleFactor2; } - if (projectile.velocity.Length() < 12f) - { - projectile.velocity *= 1.02f; - } + if (projectile.velocity.Length() < 12f) + { + projectile.velocity *= 1.02f; + } projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f); - if (Main.rand.Next(3) == 0) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 187, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); - } - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - Texture2D texture2D13 = Main.projectileTexture[projectile.type]; + Lighting.AddLight(projectile.Center, 0f, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D texture2D13 = Main.projectileTexture[projectile.type]; int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; int y6 = num214 * projectile.frame; Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); return false; - } + } - public override void OnHitPlayer(Player target, int damage, bool crit) - { - target.AddBuff(BuffID.Frostburn, 240, true); - target.AddBuff(BuffID.Chilled, 120, true); - target.AddBuff(BuffID.Frozen, 30, true); - } - } + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, projectile.alpha); + } + + public override void OnHitPlayer(Player target, int damage, bool crit) + { + target.AddBuff(BuffID.Frostburn, 240, true); + target.AddBuff(BuffID.Chilled, 120, true); + target.AddBuff(BuffID.Frozen, 30, true); + } + } } \ No newline at end of file diff --git a/Projectiles/Boss/GigaFlare.cs b/Projectiles/Boss/GigaFlare.cs index 9168c779b7..dec9f770d5 100644 --- a/Projectiles/Boss/GigaFlare.cs +++ b/Projectiles/Boss/GigaFlare.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Flare"); + DisplayName.SetDefault("Fireball"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/GreatSandBlast.cs b/Projectiles/Boss/GreatSandBlast.cs index 72e0e9a752..71c1327802 100644 --- a/Projectiles/Boss/GreatSandBlast.cs +++ b/Projectiles/Boss/GreatSandBlast.cs @@ -1,74 +1,74 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Boss -{ - public class GreatSandBlast : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Great Sand Blast"); - } - - public override void SetDefaults() - { - projectile.width = 10; - projectile.height = 10; - projectile.hostile = true; - projectile.tileCollide = false; - projectile.penetrate = 1; - projectile.timeLeft = 300; - projectile.aiStyle = 1; - projectile.alpha = 255; - } - - public override void AI() - { - projectile.tileCollide = projectile.timeLeft < 240; - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; - projectile.localAI[0] += 1f; - if (projectile.localAI[0] > 4f) - { - projectile.alpha -= 50; - if (projectile.alpha < 0) - { - projectile.alpha = 0; - } - int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 85, 0f, 0f, 100, default(Color), 1f); - Main.dust[num469].noGravity = true; - Main.dust[num469].velocity *= 0f; - } - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - projectile.position = projectile.Center; - projectile.width = (projectile.height = 20); - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - int num226 = 36; - for (int num227 = 0; num227 < num226; num227++) - { - Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; - vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + projectile.Center; - Vector2 vector7 = vector6 - projectile.Center; - int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 85, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.2f); - Main.dust[num228].noGravity = true; - Main.dust[num228].noLight = true; - Main.dust[num228].velocity = vector7; - } - projectile.Damage(); - } - - public override void OnHitPlayer(Player target, int damage, bool crit) - { - target.velocity.X *= 0.5f; - target.velocity.Y *= 0.5f; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Boss +{ + public class GreatSandBlast : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Great Sand Blast"); + } + + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 10; + projectile.hostile = true; + projectile.tileCollide = false; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.aiStyle = 1; + projectile.alpha = 255; + } + + public override void AI() + { + projectile.tileCollide = projectile.timeLeft < 240; + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + projectile.localAI[0] += 1f; + if (projectile.localAI[0] > 4f) + { + projectile.alpha -= 50; + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 85, 0f, 0f, 100, default(Color), 1f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + projectile.position = projectile.Center; + projectile.width = (projectile.height = 20); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + int num226 = 36; + for (int num227 = 0; num227 < num226; num227++) + { + Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; + vector6 = vector6.RotatedBy((double)((float)(num227 - (num226 / 2 - 1)) * 6.28318548f / (float)num226), default(Vector2)) + projectile.Center; + Vector2 vector7 = vector6 - projectile.Center; + int num228 = Dust.NewDust(vector6 + vector7, 0, 0, 85, vector7.X * 1.5f, vector7.Y * 1.5f, 100, default(Color), 1.2f); + Main.dust[num228].noGravity = true; + Main.dust[num228].noLight = true; + Main.dust[num228].velocity = vector7; + } + projectile.Damage(); + } + + public override void OnHitPlayer(Player target, int damage, bool crit) + { + target.velocity.X *= 0.5f; + target.velocity.Y *= 0.5f; + } + } } \ No newline at end of file diff --git a/Projectiles/HealOrbProv.cs b/Projectiles/Boss/HealOrbProv.cs similarity index 96% rename from Projectiles/HealOrbProv.cs rename to Projectiles/Boss/HealOrbProv.cs index 0e81d6a48a..b037e8fd34 100644 --- a/Projectiles/HealOrbProv.cs +++ b/Projectiles/Boss/HealOrbProv.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.DataStructures; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class HealOrbProv : ModProjectile { diff --git a/Projectiles/HealOrbProv.png b/Projectiles/Boss/HealOrbProv.png similarity index 100% rename from Projectiles/HealOrbProv.png rename to Projectiles/Boss/HealOrbProv.png diff --git a/Projectiles/HellfireExplosion.cs b/Projectiles/Boss/HellfireExplosion.cs similarity index 93% rename from Projectiles/HellfireExplosion.cs rename to Projectiles/Boss/HellfireExplosion.cs index 8b9864ff1f..ce04ce48a4 100644 --- a/Projectiles/HellfireExplosion.cs +++ b/Projectiles/Boss/HellfireExplosion.cs @@ -5,13 +5,13 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class HellfireExplosion : ModProjectile { public override void SetStaticDefaults() { - DisplayName.SetDefault("Explosion"); + DisplayName.SetDefault("Brimstone Hellfire Explosion"); } public override void SetDefaults() diff --git a/Projectiles/HellfireExplosion.png b/Projectiles/Boss/HellfireExplosion.png similarity index 100% rename from Projectiles/HellfireExplosion.png rename to Projectiles/Boss/HellfireExplosion.png diff --git a/Projectiles/HiveBombExplosionHostile.cs b/Projectiles/Boss/HiveBombExplosionHostile.cs similarity index 86% rename from Projectiles/HiveBombExplosionHostile.cs rename to Projectiles/Boss/HiveBombExplosionHostile.cs index eda0ecb7e1..54386f8ca5 100644 --- a/Projectiles/HiveBombExplosionHostile.cs +++ b/Projectiles/Boss/HiveBombExplosionHostile.cs @@ -5,13 +5,13 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class HiveBombExplosionHostile : ModProjectile { public override void SetStaticDefaults() { - DisplayName.SetDefault("Explosion"); + DisplayName.SetDefault("Hive Bomb Explosion"); } public override void SetDefaults() diff --git a/Projectiles/HiveBombExplosionHostile.png b/Projectiles/Boss/HiveBombExplosionHostile.png similarity index 100% rename from Projectiles/HiveBombExplosionHostile.png rename to Projectiles/Boss/HiveBombExplosionHostile.png diff --git a/Projectiles/Boss/HiveBombGoliath.cs b/Projectiles/Boss/HiveBombGoliath.cs index ec2d6832ca..76d365a99f 100644 --- a/Projectiles/Boss/HiveBombGoliath.cs +++ b/Projectiles/Boss/HiveBombGoliath.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Bomb"); + DisplayName.SetDefault("Hive Bomb"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/HolyBlast.cs b/Projectiles/Boss/HolyBlast.cs index ad57d2e497..d7dbdeb140 100644 --- a/Projectiles/Boss/HolyBlast.cs +++ b/Projectiles/Boss/HolyBlast.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Blast"); + DisplayName.SetDefault("Holy Blast"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/HolyBomb.cs b/Projectiles/Boss/HolyBomb.cs index 40b5c47581..cd3ae54cc7 100644 --- a/Projectiles/Boss/HolyBomb.cs +++ b/Projectiles/Boss/HolyBomb.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Boss public override void SetStaticDefaults() { - DisplayName.SetDefault("Bomb"); + DisplayName.SetDefault("Holy Bomb"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/HolyBurnOrb.cs b/Projectiles/Boss/HolyBurnOrb.cs index 84ccac7ce6..d5309f7ed2 100644 --- a/Projectiles/Boss/HolyBurnOrb.cs +++ b/Projectiles/Boss/HolyBurnOrb.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Orb"); + DisplayName.SetDefault("Holy Orb"); Main.projFrames[projectile.type] = 4; } @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Boss { Main.player[num487].statLife = Main.player[num487].statLifeMax2; } - if (Main.player[num487].statLife < 0) + if (Main.player[num487].statLife < 0 || CalamityWorld.armageddon) { Main.player[num487].KillMe(PlayerDeathReason.ByOther(12), 1000.0, 0, false); } diff --git a/Projectiles/Boss/HolyFire.cs b/Projectiles/Boss/HolyFire.cs index 3aca5435d3..c01d60b641 100644 --- a/Projectiles/Boss/HolyFire.cs +++ b/Projectiles/Boss/HolyFire.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Fire"); + DisplayName.SetDefault("Holy Fire"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/HolyFire2.cs b/Projectiles/Boss/HolyFire2.cs index ade084a034..e03648ba23 100644 --- a/Projectiles/Boss/HolyFire2.cs +++ b/Projectiles/Boss/HolyFire2.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Fire"); + DisplayName.SetDefault("Holy Fire"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/HolyFlare.cs b/Projectiles/Boss/HolyFlare.cs index 99a1216303..d5f9eb4a86 100644 --- a/Projectiles/Boss/HolyFlare.cs +++ b/Projectiles/Boss/HolyFlare.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Flare"); + DisplayName.SetDefault("Holy Flare"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/HolyLight.cs b/Projectiles/Boss/HolyLight.cs index 79b25345d7..aa08768c30 100644 --- a/Projectiles/Boss/HolyLight.cs +++ b/Projectiles/Boss/HolyLight.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Light"); + DisplayName.SetDefault("Holy Light"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/HolyShot.cs b/Projectiles/Boss/HolyShot.cs index 2e34f00c93..146b28f390 100644 --- a/Projectiles/Boss/HolyShot.cs +++ b/Projectiles/Boss/HolyShot.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Spear"); + DisplayName.SetDefault("Holy Spear"); } public override void SetDefaults() diff --git a/Projectiles/Boss/HolySpear.cs b/Projectiles/Boss/HolySpear.cs index a5ea7871d0..62aa13950a 100644 --- a/Projectiles/Boss/HolySpear.cs +++ b/Projectiles/Boss/HolySpear.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Spear"); + DisplayName.SetDefault("Holy Spear"); } public override void SetDefaults() diff --git a/Projectiles/Boss/IceBlast.cs b/Projectiles/Boss/IceBlast.cs index c260c35c47..8536c80bc7 100644 --- a/Projectiles/Boss/IceBlast.cs +++ b/Projectiles/Boss/IceBlast.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ice"); + DisplayName.SetDefault("Ice Blast"); } public override void SetDefaults() diff --git a/Projectiles/Boss/IceBomb.cs b/Projectiles/Boss/IceBomb.cs index 9ef110e3b7..489310a754 100644 --- a/Projectiles/Boss/IceBomb.cs +++ b/Projectiles/Boss/IceBomb.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Bomb"); + DisplayName.SetDefault("Ice Bomb"); } public override void SetDefaults() diff --git a/Projectiles/Boss/IceRain.cs b/Projectiles/Boss/IceRain.cs index 3e336646aa..d44dd256d1 100644 --- a/Projectiles/Boss/IceRain.cs +++ b/Projectiles/Boss/IceRain.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ice"); + DisplayName.SetDefault("Ice Rain"); } public override void SetDefaults() diff --git a/Projectiles/Boss/LeviathanBomb.cs b/Projectiles/Boss/LeviathanBomb.cs index 971ba26af0..fe522e864d 100644 --- a/Projectiles/Boss/LeviathanBomb.cs +++ b/Projectiles/Boss/LeviathanBomb.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Boss public override void SetStaticDefaults() { - DisplayName.SetDefault("Bomb"); + DisplayName.SetDefault("Meteor Vomit"); } public override void SetDefaults() diff --git a/Projectiles/Boss/MoltenBlast.cs b/Projectiles/Boss/MoltenBlast.cs index e71f4aa5dd..bfc73276a8 100644 --- a/Projectiles/Boss/MoltenBlast.cs +++ b/Projectiles/Boss/MoltenBlast.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Blast"); + DisplayName.SetDefault("Molten Blast"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/MoltenBlob.cs b/Projectiles/Boss/MoltenBlob.cs index d5d588b421..8bc9459c3a 100644 --- a/Projectiles/Boss/MoltenBlob.cs +++ b/Projectiles/Boss/MoltenBlob.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Blob"); + DisplayName.SetDefault("Molten Blob"); Main.projFrames[projectile.type] = 2; } @@ -22,8 +22,8 @@ namespace CalamityMod.Projectiles.Boss projectile.hostile = true; projectile.penetrate = -1; projectile.timeLeft = 1200; - cooldownSlot = 1; - } + cooldownSlot = 0; + } public override void AI() { diff --git a/Projectiles/Boss/MushBomb.cs b/Projectiles/Boss/MushBomb.cs index 93a530ba55..8edbce2c54 100644 --- a/Projectiles/Boss/MushBomb.cs +++ b/Projectiles/Boss/MushBomb.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Bomb"); + DisplayName.SetDefault("Mushroom Shot"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/MushBombFall.cs b/Projectiles/Boss/MushBombFall.cs index c204872532..e4b2d8631b 100644 --- a/Projectiles/Boss/MushBombFall.cs +++ b/Projectiles/Boss/MushBombFall.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Bomb"); + DisplayName.SetDefault("Falling Mushroom"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/Mushmash.cs b/Projectiles/Boss/Mushmash.cs index 1e1fb74f66..aaea1deda6 100644 --- a/Projectiles/Boss/Mushmash.cs +++ b/Projectiles/Boss/Mushmash.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Mush"); + DisplayName.SetDefault("Mushmash"); } public override void SetDefaults() diff --git a/Projectiles/Boss/PhantomBlast.cs b/Projectiles/Boss/PhantomBlast.cs index fe2af03366..72cf0a9553 100644 --- a/Projectiles/Boss/PhantomBlast.cs +++ b/Projectiles/Boss/PhantomBlast.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Blast"); + DisplayName.SetDefault("Phantom Blast"); } public override void SetDefaults() diff --git a/Projectiles/Boss/PhantomBlast2.cs b/Projectiles/Boss/PhantomBlast2.cs index a1bcd31473..f759fcd3e0 100644 --- a/Projectiles/Boss/PhantomBlast2.cs +++ b/Projectiles/Boss/PhantomBlast2.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Blast"); + DisplayName.SetDefault("Potent Phantom Blast"); } public override void SetDefaults() diff --git a/Projectiles/Boss/PhantomGhostShot.cs b/Projectiles/Boss/PhantomGhostShot.cs new file mode 100644 index 0000000000..f103f6a65a --- /dev/null +++ b/Projectiles/Boss/PhantomGhostShot.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Boss +{ + public class PhantomGhostShot : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Potent Phantom Spirit Shot"); + } + + public override void SetDefaults() + { + projectile.width = 14; + projectile.height = 14; + projectile.hostile = true; + projectile.alpha = 255; + projectile.tileCollide = false; + projectile.ignoreWater = true; + projectile.extraUpdates = 2; + projectile.penetrate = -1; + projectile.timeLeft = 600; + cooldownSlot = 1; + } + + public override void AI() + { + if (projectile.ai[1] == 0f) + { + projectile.ai[1] = 1f; + Main.PlaySound(SoundID.Item20, projectile.position); + } + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + projectile.localAI[0] += 1f; + if (projectile.localAI[0] == 6f) + { + for (int num151 = 0; num151 < 40; num151++) + { + int num152 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 60, 0f, 0f, 100, default(Color), 1f); + Main.dust[num152].velocity *= 3f; + Main.dust[num152].velocity += projectile.velocity * 0.75f; + Main.dust[num152].scale *= 1.2f; + Main.dust[num152].noGravity = true; + } + } + if (projectile.localAI[0] > 9f) + { + projectile.alpha -= 5; + if (projectile.alpha < 30) + { + projectile.alpha = 30; + } + } + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(100, 250, 250, projectile.alpha); + } + } +} \ No newline at end of file diff --git a/Projectiles/Boss/PhantomGhostShot.png b/Projectiles/Boss/PhantomGhostShot.png new file mode 100644 index 0000000000000000000000000000000000000000..bb6e4a3e191b95a6dab8af3826d5aa2341bb5a67 GIT binary patch literal 273 zcmeAS@N?(olHy`uVBq!ia0vp^d_XM2!3HD)!}=V76kC$Fy9>jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_$ic+Os=9||^$(!XJWm(L5R22v2?rRZ<|h3&w>tXo zxa#>M4r&YbyNTu0B_|{#tk_)A!udBH#JazI#zZr-LyirsEq43nyVV`}FnbCIv)%ql z`O0m+k#;Mz7W}blIZ=Nq$E8cY=FM{5=^GxJb5BSUVIM`OM z@TchAd=sD58v 9f) + { + projectile.alpha -= 5; + if (projectile.alpha < 30) + { + projectile.alpha = 30; + } + } + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(100, 250, 250, projectile.alpha); + } + } +} \ No newline at end of file diff --git a/Projectiles/Boss/PhantomHookShot.png b/Projectiles/Boss/PhantomHookShot.png new file mode 100644 index 0000000000000000000000000000000000000000..0e94ae8cb8750b3f654b5d74fe0b8ee270b7d6e5 GIT binary patch literal 273 zcmeAS@N?(olHy`uVBq!ia0vp^d_XM2!3HD)!}=V76kC$Fy9>jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_$ic+ODqeE=R|QaLo~Mgrh{fsTgaeFk)c*X>H-GrQ zKIW4TPYTno?39Dg%-Miozr_rWmiiS96DMx-+xnm-;nq*VyZM)7_Dd+#n60T(z3)~s zyNR`ap+>{!i#cld-CX`S_-yh>cmDYJvb?~*Wv&9DQ+^A^J~&do;=V<|&nx}zF?Fur zrN0)l^Bi!R+Sr(TV+zBIOtEQ61yfnBaEC_hF+8&HuA>i literal 0 HcmV?d00001 diff --git a/Projectiles/Boss/PhantomMine.cs b/Projectiles/Boss/PhantomMine.cs index eb7c2cc939..4afb3a57ea 100644 --- a/Projectiles/Boss/PhantomMine.cs +++ b/Projectiles/Boss/PhantomMine.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Ghost Mine"); + DisplayName.SetDefault("Phantom Orb"); } public override void SetDefaults() diff --git a/Projectiles/Boss/PhantomShot.cs b/Projectiles/Boss/PhantomShot.cs index 503e6586a4..2c222ee022 100644 --- a/Projectiles/Boss/PhantomShot.cs +++ b/Projectiles/Boss/PhantomShot.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Shot"); + DisplayName.SetDefault("Phantom Shot"); } public override void SetDefaults() diff --git a/Projectiles/Boss/PhantomShot2.cs b/Projectiles/Boss/PhantomShot2.cs index 55c9e5bda6..099b54ac7f 100644 --- a/Projectiles/Boss/PhantomShot2.cs +++ b/Projectiles/Boss/PhantomShot2.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Shot"); + DisplayName.SetDefault("Potent Phantom Shot"); } public override void SetDefaults() diff --git a/Projectiles/PhoenixFire.cs b/Projectiles/Boss/PhoenixFire.cs similarity index 91% rename from Projectiles/PhoenixFire.cs rename to Projectiles/Boss/PhoenixFire.cs index bb22f92325..e80b43da3d 100644 --- a/Projectiles/PhoenixFire.cs +++ b/Projectiles/Boss/PhoenixFire.cs @@ -5,13 +5,13 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class PhoenixFire : ModProjectile { public override void SetStaticDefaults() { - DisplayName.SetDefault("Fire"); + DisplayName.SetDefault("Phoenix Fire"); } public override void SetDefaults() @@ -37,7 +37,6 @@ namespace CalamityMod.Projectiles Main.dust[num458].velocity *= 0.5f; Main.dust[num458].velocity += projectile.velocity * 0.1f; } - return; } } } \ No newline at end of file diff --git a/Projectiles/PhoenixFire.png b/Projectiles/Boss/PhoenixFire.png similarity index 100% rename from Projectiles/PhoenixFire.png rename to Projectiles/Boss/PhoenixFire.png diff --git a/Projectiles/PlagueExplosion.cs b/Projectiles/Boss/PlagueExplosion.cs similarity index 93% rename from Projectiles/PlagueExplosion.cs rename to Projectiles/Boss/PlagueExplosion.cs index 9c0d228b3a..4e22b02d40 100644 --- a/Projectiles/PlagueExplosion.cs +++ b/Projectiles/Boss/PlagueExplosion.cs @@ -5,13 +5,13 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class PlagueExplosion : ModProjectile { public override void SetStaticDefaults() { - DisplayName.SetDefault("Explosion"); + DisplayName.SetDefault("Plague Stinger Explosion"); } public override void SetDefaults() diff --git a/Projectiles/PlagueExplosion.png b/Projectiles/Boss/PlagueExplosion.png similarity index 100% rename from Projectiles/PlagueExplosion.png rename to Projectiles/Boss/PlagueExplosion.png diff --git a/Projectiles/Boss/PlagueStingerGoliath.cs b/Projectiles/Boss/PlagueStingerGoliath.cs index 60526d6800..e5c407e589 100644 --- a/Projectiles/Boss/PlagueStingerGoliath.cs +++ b/Projectiles/Boss/PlagueStingerGoliath.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Stinger"); + DisplayName.SetDefault("Plague Homing Stinger"); } public override void SetDefaults() diff --git a/Projectiles/Boss/PlagueStingerGoliathV2.cs b/Projectiles/Boss/PlagueStingerGoliathV2.cs index c5e9800463..8e2e946b1c 100644 --- a/Projectiles/Boss/PlagueStingerGoliathV2.cs +++ b/Projectiles/Boss/PlagueStingerGoliathV2.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Stinger"); + DisplayName.SetDefault("Exploding Plague Stinger"); } public override void SetDefaults() diff --git a/Projectiles/Boss/ProfanedSpear.cs b/Projectiles/Boss/ProfanedSpear.cs index 3571bc2572..53b9703066 100644 --- a/Projectiles/Boss/ProfanedSpear.cs +++ b/Projectiles/Boss/ProfanedSpear.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Spear"); + DisplayName.SetDefault("Profaned Spear"); } public override void SetDefaults() diff --git a/Projectiles/Boss/ProvidenceCrystal.cs b/Projectiles/Boss/ProvidenceCrystal.cs index ea06849608..0764920ebe 100644 --- a/Projectiles/Boss/ProvidenceCrystal.cs +++ b/Projectiles/Boss/ProvidenceCrystal.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Boss public override void SetStaticDefaults() { - DisplayName.SetDefault("Providence Crystal"); + DisplayName.SetDefault("Holy Crystal"); } public override void SetDefaults() @@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Boss projectile.width = 160; projectile.height = 160; projectile.ignoreWater = true; - projectile.timeLeft = 3900; + projectile.timeLeft = CalamityWorld.death ? 2100 : 3600; projectile.alpha = 255; projectile.tileCollide = false; projectile.penetrate = -1; diff --git a/Projectiles/Boss/ProvidenceCrystalShard.cs b/Projectiles/Boss/ProvidenceCrystalShard.cs index fbb097f649..600df4947e 100644 --- a/Projectiles/Boss/ProvidenceCrystalShard.cs +++ b/Projectiles/Boss/ProvidenceCrystalShard.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Crystal"); + DisplayName.SetDefault("Holy Crystal Shard"); } public override void SetDefaults() diff --git a/Projectiles/Boss/RavagerFlame.cs b/Projectiles/Boss/RavagerFlame.cs index e072d5cb46..aa7fa22c23 100644 --- a/Projectiles/Boss/RavagerFlame.cs +++ b/Projectiles/Boss/RavagerFlame.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Flame"); + DisplayName.SetDefault("Blue Flame"); } public override void SetDefaults() diff --git a/Projectiles/Boss/RedLightningFeather.cs b/Projectiles/Boss/RedLightningFeather.cs index 9f9f72d138..416a12d3ba 100644 --- a/Projectiles/Boss/RedLightningFeather.cs +++ b/Projectiles/Boss/RedLightningFeather.cs @@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles.Boss projectile.tileCollide = false; projectile.penetrate = 1; projectile.timeLeft = 1200; - } + cooldownSlot = 1; + } public override void AI() { diff --git a/Projectiles/Boss/SandBlast.cs b/Projectiles/Boss/SandBlast.cs index 2a6a979429..933daa7c3a 100644 --- a/Projectiles/Boss/SandBlast.cs +++ b/Projectiles/Boss/SandBlast.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Sand"); + DisplayName.SetDefault("Sand Blast"); } public override void SetDefaults() diff --git a/Projectiles/Boss/SandPoisonCloud.cs b/Projectiles/Boss/SandPoisonCloud.cs index 0010d9f902..d32e225057 100644 --- a/Projectiles/Boss/SandPoisonCloud.cs +++ b/Projectiles/Boss/SandPoisonCloud.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Cloud"); + DisplayName.SetDefault("Toxic Cloud"); Main.projFrames[projectile.type] = 4; } diff --git a/Projectiles/Boss/SandTooth.cs b/Projectiles/Boss/SandTooth.cs index 75e5a40a9a..8798090a98 100644 --- a/Projectiles/Boss/SandTooth.cs +++ b/Projectiles/Boss/SandTooth.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Tooth"); + DisplayName.SetDefault("Sand Tooth"); } public override void SetDefaults() diff --git a/Projectiles/Boss/ScavengerLaser.cs b/Projectiles/Boss/ScavengerLaser.cs index ef8774d179..b6e18f0c8c 100644 --- a/Projectiles/Boss/ScavengerLaser.cs +++ b/Projectiles/Boss/ScavengerLaser.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Laser"); + DisplayName.SetDefault("Homing Dart"); Main.projFrames[projectile.type] = 5; } diff --git a/Projectiles/Boss/ScavengerNuke.cs b/Projectiles/Boss/ScavengerNuke.cs index b65842db84..e334471562 100644 --- a/Projectiles/Boss/ScavengerNuke.cs +++ b/Projectiles/Boss/ScavengerNuke.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Nuke"); + DisplayName.SetDefault("Homing Nuke"); Main.projFrames[projectile.type] = 5; } diff --git a/Projectiles/Boss/ShadeNimbusHostile.cs b/Projectiles/Boss/ShadeNimbusHostile.cs index 5dd5f04458..ac071b7b3e 100644 --- a/Projectiles/Boss/ShadeNimbusHostile.cs +++ b/Projectiles/Boss/ShadeNimbusHostile.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Nimbus"); + DisplayName.SetDefault("Shade Nimbus"); Main.projFrames[projectile.type] = 6; } diff --git a/Projectiles/Boss/ShaderainHostile.cs b/Projectiles/Boss/ShaderainHostile.cs index b7f5bc3c90..fa866efab1 100644 --- a/Projectiles/Boss/ShaderainHostile.cs +++ b/Projectiles/Boss/ShaderainHostile.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Rain"); + DisplayName.SetDefault("Cursed Rain"); } public override void SetDefaults() @@ -40,5 +40,15 @@ namespace CalamityMod.Projectiles.Boss Main.dust[num310].velocity += -projectile.oldVelocity * 0.25f; Main.dust[num310].scale = 0.95f; } - } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(102, 255, 102, projectile.alpha); + } + + public override void OnHitPlayer(Player target, int damage, bool crit) + { + target.AddBuff(BuffID.CursedInferno, 90); + } + } } \ No newline at end of file diff --git a/Projectiles/Boss/SirenSong.cs b/Projectiles/Boss/SirenSong.cs index 39b07a5b75..508e95cf8d 100644 --- a/Projectiles/Boss/SirenSong.cs +++ b/Projectiles/Boss/SirenSong.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Song"); + DisplayName.SetDefault("Musical Note"); } public override void SetDefaults() @@ -46,11 +46,19 @@ namespace CalamityMod.Projectiles.Boss if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 26); - } - } + float soundPitch = (Main.rand.NextFloat() - 0.5f) * 0.5f; + Main.harpNote = soundPitch; + Main.PlaySound(SoundID.Item26, projectile.position); + } + Lighting.AddLight(projectile.Center, 0.7f, 0.5f, 0f); + } - public override void OnHitPlayer(Player target, int damage, bool crit) + public override Color? GetAlpha(Color lightColor) + { + return new Color(255, 255, 255, 0); + } + + public override void OnHitPlayer(Player target, int damage, bool crit) { target.AddBuff(BuffID.Confused, 120); } diff --git a/Projectiles/Boss/SirenSong.png b/Projectiles/Boss/SirenSong.png index 2d410bffb73a35bc42b5448648c3bd351ff395f1..418fb2622c61f628e577352408390f4b6c4225a7 100644 GIT binary patch delta 936 zcmV;Z16Tay8Oj`x7YaHE1^@s6uI5Sju_2xce*<+%L_t(|+RT{CPg6k@hrel|T-!=R zD+m>krv`}8#Aw3Gg$s<&jgPq0wf}-E!++q`xG^yyt~46A7*|F~Ocle!x3r|7XtWiJ z^tzaP@ZRyZVoYv38`|4pa=v?h=Qn3Y@sDHW!U+Jv@iGAG-$J(g_i((doaX?vT)zWA ze~5sF`d^aRK*=+&Fdy+H3yi2?vlAPW>j12M3j31CkmrT@i0yuB^^+sXjSxkW>vpyI zk|P<#uRm3N<;cuU#QAO#T)p`UfJ^850C+cB1Rxp@*O}@IjkR|2FD4^AtY|)HmKhs?%ov@f7R8gGgPa=*V!@`k9TX8ZS^iG-|NR2O5cpjUO9cR?rk8Ah?K3fl$miY zC-=AeE||&XZGh3?lmdAA^KihbD~*qNBAvLFHGR+q*wfLrDfOB46pe>#-vud$z~0OP zrut6OZj#xxAriF>4JNgE=JL36e^aTRM18N83(A>iyXOg6a71RWTrR1NK0psmHoP;g z-0xf>mA`9F|2NnlSAIKka73m%M@o9nAMVkfHT^~t>_}K$)jM4~2B z|CvecSqJ)?6~O1BcJm{n3Ev!)onzB-uH@T01V)JD#E;NC z0cLV}4@u0TMqN-M)#x=f6O#yKK!J-0~UnqJAhmLl77BWc+8l(nYkd@RG zok;oj0#QqESp!`$1u(SFfAT#qoju*A048qbJtV<OEYgTP*i|Lu)d@*yD#a-j9|R^ljC2Mn`sx9;%U< zw^_aE(8kIB(X*A>@388MHRAEI*V*!>I#j8v`S*pYY73m`*8q(a5{zno;$F!B0000< KMNUMnLSTX?tJZq} delta 575 zcmV-F0>J&s9ON007YZ~81^@s6l6m99=*ijU#k2j~Mx7rVHY3Jxte^Z~@dB2vV`LYGcDsBk+ZC)^xw zL`9RB$y}qk-~G@1?|%gLbanGZ>3kG7pYJQ*pCF)1?29COYXAV6^$7sr{<|kaAu{$& ze^RMh_5*cDl`MKhjZ_W*kh?h7l91lhp(%C0kG@8+QpP51E#0x+&oACOBLG0TkhE6< zwpM`=9qdK%^c?Z@{D?GCb#bcEGd>-fM^<%<_7^9UYPC`Ikuw;(E>#xRVTi~P=tZOf zc^lnxlIUne?(8m=<86sy((|0+by||}e~F0X`svChajJ{YeB0AHcp^^nQu)xX{rs_{ zJ#U)ziCjk(Jds;nY{%0KiG;M`4&av+f+zCRrc$+pS!=J5xZ_nz0zf5g-xEpnQV^Xh zeJ2a>bH%K+J(&Rj;Ed^>4_+f)ZGI9>}$f1592 zJeY~ZeuUk;+L%A=DL!l`?z}2>`x+7=ErJ7a;fLdM;M8 zML4bH#$HGJr3`nc%XMBBX(GXrDW}#Mn)T7z?jbayot43v&Pf diff --git a/Projectiles/SkyFlare.cs b/Projectiles/Boss/SkyFlare.cs similarity index 95% rename from Projectiles/SkyFlare.cs rename to Projectiles/Boss/SkyFlare.cs index 472a09a1fb..4ccf9b13ff 100644 --- a/Projectiles/SkyFlare.cs +++ b/Projectiles/Boss/SkyFlare.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Boss { public class SkyFlare : ModProjectile { @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles public override void SetStaticDefaults() { - DisplayName.SetDefault("Flare"); + DisplayName.SetDefault("Sky Flare"); Main.projFrames[projectile.type] = 5; } diff --git a/Projectiles/SkyFlare.png b/Projectiles/Boss/SkyFlare.png similarity index 100% rename from Projectiles/SkyFlare.png rename to Projectiles/Boss/SkyFlare.png diff --git a/Projectiles/Boss/SkyFlareRevenge.cs b/Projectiles/Boss/SkyFlareRevenge.cs index f7f9cad68b..7214d4c4ab 100644 --- a/Projectiles/Boss/SkyFlareRevenge.cs +++ b/Projectiles/Boss/SkyFlareRevenge.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Flare"); + DisplayName.SetDefault("Sky Flare"); Main.projFrames[projectile.type] = 5; } diff --git a/Projectiles/Boss/VileClot.cs b/Projectiles/Boss/VileClot.cs index 7f72e8c5f6..1aaffe7138 100644 --- a/Projectiles/Boss/VileClot.cs +++ b/Projectiles/Boss/VileClot.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Clot"); + DisplayName.SetDefault("Vile Clot"); } public override void SetDefaults() @@ -20,8 +20,7 @@ namespace CalamityMod.Projectiles.Boss projectile.height = 6; projectile.hostile = true; projectile.penetrate = 1; - projectile.aiStyle = 1; - aiType = 1; + projectile.timeLeft = 300; } public override void AI() diff --git a/Projectiles/Boss/WaterSpear.cs b/Projectiles/Boss/WaterSpear.cs index 53dfe0ce7b..1c50368fe7 100644 --- a/Projectiles/Boss/WaterSpear.cs +++ b/Projectiles/Boss/WaterSpear.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Boss { public override void SetStaticDefaults() { - DisplayName.SetDefault("Spear"); + DisplayName.SetDefault("Water Spear"); } public override void SetDefaults() @@ -66,14 +66,15 @@ namespace CalamityMod.Projectiles.Boss } } projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.05f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f); - if (Main.rand.Next(3) == 0) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 33, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); - } + Lighting.AddLight(projectile.Center, 0f, ((255 - projectile.alpha) * 0.05f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f); } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, projectile.alpha); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { Texture2D tex = Main.projectileTexture[projectile.type]; spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); diff --git a/Projectiles/Boss/WaterSpear.png b/Projectiles/Boss/WaterSpear.png index c5b595d096ce0b24c5dcd5685ec76515645f0acf..b923a9ea8bc4fad55ba1a56100349621cb5375ee 100644 GIT binary patch delta 398 zcmV;90dfB17@Gr-7k@wq1^@s6DjG)300001b5ch_0Itp)=>Px#1ZP1_K>z@;j|==^ z1poj532;bRa{vGi!vFvd!vV){sAK>D02p*dSaefwW^{L9a%BK;VQFr3E^cLXAT%y9 zE;JKBXv6>j0Srk*K~zXf?bEwW1Thqa;pu^l0=5APpbbK@&3|ctN)RPb0JJa>84?jK z5Rn+!(w7{0gz(G+yV~GLzK`Gc$d9R%($)3tu~g0TJoVIts{RCf$*RNMW2wpwsS8#8 z8)WhR?W0M&AIRd<=U3B`<@I1%eE<1wx_N$WO3UM*MOp-2J-jrj8#E5GpaEb5fV%#1 zP{APp#aS1x2Y+1yi)n2?kX69;U=~=F*QhSP9&{K>U>?>u=+SC$NC}92igD0_g(Xnk zpmP9S`2HZk2HS%c3K~7V1PwYxkX$@a3^+wF6B<1LaSphEBcSiKJ(vlN9=A9LYzOA| s%I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tL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0004xNklXtf|--T8>cIRI)cWsrM22x+xH)&6OIWA#Qtd8}64NU~@S zTXMG}&SXak5S^UTr{x9nHK0wOro>wiyRVU20=L5aL&pzI{9ivhIfau`)EoVrr9te^ zj*Sy@O6iU;P&xKp?uR$NSJSqY(<5f?Zvglx&PE4bUmEN7#B7)t%H_k^7L)S_j9r{2 zMQk_y=kXB$kL#NNjB6iO$+nxcI)@2&xu>Ny6|5lf%Z1&9`>O0cP_qDhP83t_ 570) //all of these have a time left of 600 or 660 - { - if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("PlagueKeeper")) - { - projectile.magic = false; - projectile.melee = true; - } - else if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("TheSwarmer")) - { - projectile.magic = true; - } - else if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("TheHive") || - Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("Malevolence") || - Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == ItemID.BeesKnees) - { - projectile.magic = false; - projectile.ranged = true; - } - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).eQuiver && projectile.ranged && - projectile.friendly && CalamityMod.rangedProjectileExceptionList.TrueForAll(x => projectile.type != x)) - { - if (Main.rand.Next(200) > 198) - { - float spread = 180f * 0.0174f; - double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - for (i = 0; i < 1; i++) - { - offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; - if (projectile.owner == Main.myPlayer) - { - int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), projectile.type, (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); - int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), projectile.type, (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); - Main.projectile[projectile1].ranged = false; - Main.projectile[projectile2].ranged = false; - Main.projectile[projectile1].timeLeft = 60; - Main.projectile[projectile2].timeLeft = 60; - Main.projectile[projectile1].noDropItem = true; - Main.projectile[projectile2].noDropItem = true; - } - } - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).nanotech && - CalamityMod.throwingProjectileList.Contains(projectile.type) && !projectile.melee && projectile.friendly) - { - counter++; - if (counter >= 90) - { - counter = 0; - if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("Nanotech")] < 30) - { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Nanotech"), - (int)((double)projectile.damage * 0.33), 0f, projectile.owner, 0f, 0f); - } - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).daedalusSplit && - CalamityMod.throwingProjectileList.Contains(projectile.type) && !projectile.melee && projectile.friendly) - { - counter2++; - if (counter2 >= 30) - { - counter2 = 0; - if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[90] < 30) - { - for (int num252 = 0; num252 < 2; num252++) - { - Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - while (value15.X == 0f && value15.Y == 0f) - { - value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - } - value15.Normalize(); - value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - int shard = Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, 90, (int)((double)projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); - Main.projectile[shard].ranged = false; - } - } - } - } - } - #endregion - - #region PostAI - public override void PostAI(Projectile projectile) - { - int x = (int)(projectile.Center.X / 16f); - int y = (int)(projectile.Center.Y / 16f); - for (int i = x - 1; i <= x + 1; i++) - { - for (int j = y - 1; j <= y + 1; j++) - { - if (projectile.type == ProjectileID.PureSpray) - { - CalamityWorld.ConvertFromAstral(i, j, ConvertType.Pure); - } - if (projectile.type == ProjectileID.CorruptSpray) - { - CalamityWorld.ConvertFromAstral(i, j, ConvertType.Corrupt); - } - if (projectile.type == ProjectileID.CrimsonSpray) - { - CalamityWorld.ConvertFromAstral(i, j, ConvertType.Crimson); - } - if (projectile.type == ProjectileID.HallowSpray) - { - CalamityWorld.ConvertFromAstral(i, j, ConvertType.Hallow); - } - } - } - } - #endregion - - #region ModifyHitNPC - public override void ModifyHitNPC(Projectile projectile, NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + public class CalamityGlobalProjectile : GlobalProjectile + { + #region InstancePerEntity + public override bool InstancePerEntity { - if (projectile.ranged) - { - //BULLETS + get + { + return true; + } + } + #endregion - //musket ball: base 100 + 7 = 107 - //silver: base 100 + 9 = 109 - //meteor shot: base 100 + 9 = 109 pierces once - //acceleration: base 100 + bullet damage 9 = 109 speeds up while travelling - //flash: base 100 + bullet damage 7 = 107 + (flash damage 107 * 0.25 = 26) = 133 AoE confusion - //superball: base 100 + bullet damage 6 = 106 bounces a fucking shitload of times and speeds up - //enhanced nano: base 100 + bullet damage 12 = 112 + (nanobot damage 112 * 0.3 = 33 * 2 nanobots = 66) = 178 - //crystal: base 100 + bullet damage 9 = 109 + (crystal shard damage 109 * 0.6 = 65 * 0.6 = 39 * 3 total shards = 117) = 226 - //frostspark: base 100 + bullet damage 11 = 111 + (explosion damage 111 * 0.5 = 55) = 166 - //icy: base 100 + 10 bullet damage = 110 + (ice shard damage 110 * 0.5 = 55 * 0.6 = 33 * 2 total shards = 66) = 176 - //verium: base 100 + bullet damage 8 = 108 * 0.8 = 86 homing - //chloro: base 100 + bullet damage 10 = 110 * 0.8 = 88 homing - //terra: base 100 + bullet damage 9 = 109 + (terra shard damage 109 * 0.5 = 54 * 2 total shards = 106) = 215 - //acid: base 100 + bullet damage 36 = 136 does more based on enemy defense - //hyperius: base 100 + bullet damage 21 = 121 + (hyperius second bullet damage 121 * 0.8 = 96) = 217 - //holy fire: base 100 + bullet damage 27 = 127 + (explosion damage 127 * 0.85 = 107) = 234 + public bool rogue = false; - //ARROWS + public bool setDamageValues = true; - //holy arrow: base 100 + arrow damage 13 = 113 + (star damage 113 * 0.5 = 56 * 0.7 = 39 * 2 total stars = 78) = 191 - //terra arrow: base 100 + arrow damage 9 = 109 + (terra arrow split damage 109 * 0.5 = 54 * 2 total arrows = 106) = 215 - //elysian arrow: base 100 + arrow damage 20 = 120 + meteor damage 120 = 240 - //napalm arrow: base 100 + arrow damage 13 = 113 + (fire shard damage 113 * 0.3 = 33 * 3 total shards = 99) = 212 - //icicle arrow: base 100 + arrow damage 14 = 114 + (ice shard damage 114 * 0.5 = 57 * 0.6 = 34 * 3 total shards = 102) = 216 - //bloodfire arrow: base 100 + arrow damage 40 = 140 but it heals so it's alright - //arctic arrow: base 100 + arrow damage 16 = 116 but it freezes enemies so it's alright - //vanquisher arrow: base 100 + arrow damage 33 = 133 + split arrow damage 93 = 226 fine for endgame arrow - switch (projectile.type) - { - case ProjectileID.CrystalShard: - damage = (int)((double)damage * 0.6); - break; - case ProjectileID.ChlorophyteBullet: - damage = (int)((double)damage * 0.8); - break; - case ProjectileID.HallowStar: - damage = (int)((double)damage * 0.7); - break; - } - if (projectile.type == mod.ProjectileType("VeriumBullet")) - { - damage = (int)((double)damage * 0.8); - } - else if (projectile.type == mod.ProjectileType("FrostsparkBullet")) - { - if (target.buffImmune[mod.BuffType("GlacialState")]) - { - damage = (int)((double)damage * 1.2); - } - } - else if (projectile.type == mod.ProjectileType("AcidBullet")) - { - int defenseAdd = (int)((double)target.defense * 0.2); //100 defense * 0.2 = 20 - damage = damage + defenseAdd; - } - } - if (projectile.owner == Main.myPlayer) - { - if (CalamityMod.throwingProjectileList.Contains(projectile.type) && !projectile.melee) - { - crit = (Main.rand.Next(1, 101) < CalamityCustomThrowingDamagePlayer.ModPlayer(Main.player[projectile.owner]).throwingCrit); - } - if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type)) - { - Player player = Main.player[projectile.owner]; - if (player.minionDamage != spawnedPlayerMinionDamageValue) - { - float damage2 = (((float)spawnedPlayerMinionProjectileDamageValue / spawnedPlayerMinionDamageValue) * player.minionDamage); - damage = Main.DamageVar(damage2); - } - if (CalamityWorld.revenge) - { - if (!player.inventory[player.selectedItem].summon && - (player.inventory[player.selectedItem].melee || - player.inventory[player.selectedItem].ranged || - player.inventory[player.selectedItem].magic || - player.inventory[player.selectedItem].thrown) && - player.inventory[player.selectedItem].hammer == 0 && - player.inventory[player.selectedItem].pick == 0 && - player.inventory[player.selectedItem].axe == 0) - { - if (NPC.downedMoonlord) - { - damage = (int)((double)damage * 0.33); - } - else if (Main.hardMode) - { - damage = (int)((double)damage * 0.66); - } - else - { - damage = (int)((double)damage * 0.9); - } - } - else if (!NPC.downedMoonlord) - { - damage = (int)((double)damage * 1.1); - } - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).screwdriver) - { - if (projectile.penetrate > 1 || projectile.penetrate == -1) - { - damage = (int)((double)damage * 1.1); - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).sPower) - { - if (projectile.minion || CalamityMod.projectileMinionList.Contains(projectile.type)) - { - damage = (int)((double)damage * 1.1); - } - } - if (CalamityWorld.revenge) - { - if (Main.player[projectile.owner].GetModPlayer(mod).rageMode && - Main.player[projectile.owner].GetModPlayer(mod).adrenalineMode) - { - if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type) || - projectile.melee || projectile.ranged || projectile.magic || CalamityMod.throwingProjectileList.Contains(projectile.type)) - { - damage = (int)((double)damage * (CalamityWorld.death ? 9.0 : 3.0)); - } - } - else if (Main.player[projectile.owner].GetModPlayer(mod).rageMode) - { - if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type) || - projectile.melee || projectile.ranged || projectile.magic || CalamityMod.throwingProjectileList.Contains(projectile.type)) - { - double rageDamageBoost = 0.0 + - (Main.player[projectile.owner].GetModPlayer(mod).rageBoostOne ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0) + //3.6 or 1.65 - (Main.player[projectile.owner].GetModPlayer(mod).rageBoostTwo ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0) + //4.2 or 1.8 - (Main.player[projectile.owner].GetModPlayer(mod).rageBoostThree ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0); //4.8 or 1.95 - double rageDamage = (CalamityWorld.death ? 3.0 : 1.5) + rageDamageBoost; - damage = (int)((double)damage * rageDamage); - } - } - else if (Main.player[projectile.owner].GetModPlayer(mod).adrenalineMode) - { - if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type) || - projectile.melee || projectile.ranged || projectile.magic || CalamityMod.throwingProjectileList.Contains(projectile.type)) - { - damage = (int)((double)damage * ((CalamityWorld.death ? 7.0 : 2.5) * Main.player[projectile.owner].GetModPlayer(mod).adrenalineDmgMult)); - } - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).uberBees && - (projectile.type == ProjectileID.GiantBee || projectile.type == ProjectileID.Bee || projectile.type == ProjectileID.Wasp)) - { - if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("TheSwarmer") || - Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("PlagueKeeper")) - { - damage = damage + Main.rand.Next(10, 21); - } - else - { - damage = damage + Main.rand.Next(70, 101); - projectile.penetrate = 1; - } - } - } + public float spawnedPlayerMinionDamageValue = 1f; + + public int spawnedPlayerMinionProjectileDamageValue = 0; + + public int counter = 0; + + public int counter2 = 0; + + #region AI + public override void AI(Projectile projectile) + { + if (projectile.modProjectile != null && projectile.modProjectile.mod.Name.Equals("CalamityMod")) + goto SKIP_CALAMITY; + if ((projectile.minion || projectile.sentry) && !ProjectileID.Sets.StardustDragon[projectile.type]) //For all other mods and vanilla, exclude dragon due to bugs + { + if (setDamageValues) + { + spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + spawnedPlayerMinionProjectileDamageValue = projectile.damage; + setDamageValues = false; + } + if (Main.player[projectile.owner].minionDamage != spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)spawnedPlayerMinionProjectileDamageValue / spawnedPlayerMinionDamageValue) * Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + } + SKIP_CALAMITY: + if (projectile.type == ProjectileID.HallowStar) + { + if (projectile.ai[0] == 1f) + { + projectile.ranged = false; + projectile.melee = true; + } + else if (projectile.ai[0] == 2f) + { + projectile.ranged = false; + rogue = true; + } + } + else if (projectile.type == ProjectileID.FallingStar) + { + if (projectile.ai[0] == 2f) + { + rogue = true; + } + } + else if (projectile.type == ProjectileID.Meteor1 || projectile.type == ProjectileID.Meteor2 || projectile.type == ProjectileID.Meteor3) + { + if (projectile.ai[0] == 1f) + { + projectile.magic = false; + projectile.melee = true; + projectile.tileCollide = false; + } + } + else if (projectile.type == ProjectileID.GoldenShowerFriendly) + { + if (projectile.ai[0] == 1f) + { + projectile.magic = false; + projectile.melee = true; + } + } + else if (projectile.type == ProjectileID.MiniSharkron) + { + if (projectile.ai[0] == 1f) + projectile.melee = true; + else if (projectile.ai[0] == 2f) + projectile.ranged = true; + } + else if (projectile.type == ProjectileID.LostSoulFriendly) + { + if (projectile.ai[0] == 1f) + { + projectile.magic = false; + projectile.ranged = true; + } + } + else if (projectile.type == ProjectileID.LunarFlare) + { + if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("StellarStriker")) + { + projectile.magic = false; + projectile.melee = true; + } + } + else if (projectile.type == ProjectileID.RubyBolt || projectile.type == ProjectileID.SapphireBolt || projectile.type == ProjectileID.AmethystBolt) + { + if (projectile.ai[0] == 1f) + { + projectile.magic = false; + projectile.melee = true; + } + } + else if (projectile.type == ProjectileID.SolarWhipSwordExplosion) + { + if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("TruePaladinsHammer") || + Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("FlameScythe")) + { + projectile.melee = false; + } + else if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].ranged) + { + projectile.melee = false; + projectile.ranged = true; + } + else if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("PurgeGuzzler") || + Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("Lazhar")) + { + projectile.melee = false; + projectile.magic = true; + } + } + else if (projectile.type == ProjectileID.GiantBee || projectile.type == ProjectileID.Bee || projectile.type == ProjectileID.Wasp) + { + if (projectile.timeLeft > 570) //all of these have a time left of 600 or 660 + { + if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("PlagueKeeper")) + { + projectile.magic = false; + projectile.melee = true; + } + else if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("TheSwarmer")) + { + projectile.magic = true; + } + else if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("TheHive") || + Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("Malevolence") || + Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == ItemID.BeesKnees) + { + projectile.magic = false; + projectile.ranged = true; + } + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).eQuiver && projectile.ranged && + projectile.friendly && CalamityMod.rangedProjectileExceptionList.TrueForAll(x => projectile.type != x)) + { + if (Main.rand.Next(200) > 198) + { + float spread = 180f * 0.0174f; + double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + for (i = 0; i < 1; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + if (projectile.owner == Main.myPlayer) + { + int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 8f), (float)(Math.Cos(offsetAngle) * 8f), projectile.type, (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); + int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 8f), (float)(-Math.Cos(offsetAngle) * 8f), projectile.type, (int)((double)projectile.damage * 0.5), projectile.knockBack, projectile.owner, 0f, 0f); + Main.projectile[projectile1].ranged = false; + Main.projectile[projectile2].ranged = false; + Main.projectile[projectile1].timeLeft = 60; + Main.projectile[projectile2].timeLeft = 60; + Main.projectile[projectile1].noDropItem = true; + Main.projectile[projectile2].noDropItem = true; + } + } + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).nanotech && rogue && projectile.friendly) + { + counter++; + if (counter >= 30) + { + counter = 0; + if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("Nanotech")] < 30) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("Nanotech"), + (int)((double)projectile.damage * 0.15), 0f, projectile.owner, 0f, 0f); + } + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).daedalusSplit && rogue && projectile.friendly) + { + counter2++; + if (counter2 >= 30) + { + counter2 = 0; + if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[90] < 30) + { + for (int num252 = 0; num252 < 2; num252++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + int shard = Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, 90, (int)((double)projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); + Main.projectile[shard].ranged = false; + } + } + } + } + } + #endregion + + #region PostAI + public override void PostAI(Projectile projectile) + { + int x = (int)(projectile.Center.X / 16f); + int y = (int)(projectile.Center.Y / 16f); + for (int i = x - 1; i <= x + 1; i++) + { + for (int j = y - 1; j <= y + 1; j++) + { + if (projectile.type == ProjectileID.PureSpray) + { + CalamityWorld.ConvertFromAstral(i, j, ConvertType.Pure); + } + if (projectile.type == ProjectileID.CorruptSpray) + { + CalamityWorld.ConvertFromAstral(i, j, ConvertType.Corrupt); + } + if (projectile.type == ProjectileID.CrimsonSpray) + { + CalamityWorld.ConvertFromAstral(i, j, ConvertType.Crimson); + } + if (projectile.type == ProjectileID.HallowSpray) + { + CalamityWorld.ConvertFromAstral(i, j, ConvertType.Hallow); + } + } + } + } + #endregion + + #region ModifyHitNPC + public override void ModifyHitNPC(Projectile projectile, NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (projectile.ranged) + { + //BULLETS + + //musket ball: base 100 + 7 = 107 + //silver: base 100 + 9 = 109 + //meteor shot: base 100 + 9 = 109 pierces once + //acceleration: base 100 + bullet damage 9 = 109 speeds up while travelling + //flash: base 100 + bullet damage 7 = 107 + (flash damage 107 * 0.25 = 26) = 133 AoE confusion + //superball: base 100 + bullet damage 6 = 106 bounces a fucking shitload of times and speeds up + //enhanced nano: base 100 + bullet damage 12 = 112 + (nanobot damage 112 * 0.3 = 33 * 2 nanobots = 66) = 178 + //crystal: base 100 + bullet damage 9 = 109 + (crystal shard damage 109 * 0.6 = 65 * 0.6 = 39 * 3 total shards = 117) = 226 + //frostspark: base 100 + bullet damage 11 = 111 + (explosion damage 111 * 0.5 = 55) = 166 + //icy: base 100 + 10 bullet damage = 110 + (ice shard damage 110 * 0.5 = 55 * 0.6 = 33 * 2 total shards = 66) = 176 + //verium: base 100 + bullet damage 8 = 108 * 0.8 = 86 homing + //chloro: base 100 + bullet damage 10 = 110 * 0.8 = 88 homing + //terra: base 100 + bullet damage 9 = 109 + (terra shard damage 109 * 0.5 = 54 * 2 total shards = 106) = 215 + //acid: base 100 + bullet damage 36 = 136 does more based on enemy defense + //hyperius: base 100 + bullet damage 21 = 121 + (hyperius second bullet damage 121 * 0.8 = 96) = 217 + //holy fire: base 100 + bullet damage 27 = 127 + (explosion damage 127 * 0.85 = 107) = 234 + + //ARROWS + + //holy arrow: base 100 + arrow damage 13 = 113 + (star damage 113 * 0.5 = 56 * 0.7 = 39 * 2 total stars = 78) = 191 + //terra arrow: base 100 + arrow damage 9 = 109 + (terra arrow split damage 109 * 0.5 = 54 * 2 total arrows = 106) = 215 + //elysian arrow: base 100 + arrow damage 20 = 120 + meteor damage 120 = 240 + //napalm arrow: base 100 + arrow damage 13 = 113 + (fire shard damage 113 * 0.3 = 33 * 3 total shards = 99) = 212 + //icicle arrow: base 100 + arrow damage 14 = 114 + (ice shard damage 114 * 0.5 = 57 * 0.6 = 34 * 3 total shards = 102) = 216 + //bloodfire arrow: base 100 + arrow damage 40 = 140 but it heals so it's alright + //arctic arrow: base 100 + arrow damage 16 = 116 but it freezes enemies so it's alright + //vanquisher arrow: base 100 + arrow damage 33 = 133 + split arrow damage 93 = 226 fine for endgame arrow + switch (projectile.type) + { + case ProjectileID.CrystalShard: + damage = (int)((double)damage * 0.6); + break; + case ProjectileID.ChlorophyteBullet: + damage = (int)((double)damage * 0.8); + break; + case ProjectileID.HallowStar: + damage = (int)((double)damage * 0.7); + break; + } + if (projectile.type == mod.ProjectileType("VeriumBullet")) + { + damage = (int)((double)damage * 0.8); + } + else if (projectile.type == mod.ProjectileType("FrostsparkBullet")) + { + if (target.buffImmune[mod.BuffType("GlacialState")]) + { + damage = (int)((double)damage * 1.2); + } + } + else if (projectile.type == mod.ProjectileType("AcidBullet")) + { + int defenseAdd = (int)((double)target.defense * 0.1); //100 defense * 0.1 = 10 + damage = damage + defenseAdd; + } + } + if (projectile.owner == Main.myPlayer) + { + if (rogue) + { + crit = (Main.rand.Next(1, 101) < CalamityCustomThrowingDamagePlayer.ModPlayer(Main.player[projectile.owner]).throwingCrit); + } + if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type)) + { + Player player = Main.player[projectile.owner]; + if (!player.inventory[player.selectedItem].summon && + (player.inventory[player.selectedItem].melee || + player.inventory[player.selectedItem].ranged || + player.inventory[player.selectedItem].magic || + player.inventory[player.selectedItem].thrown) && + player.inventory[player.selectedItem].hammer == 0 && + player.inventory[player.selectedItem].pick == 0 && + player.inventory[player.selectedItem].axe == 0) + { + damage = (int)((double)damage * 0.6); + } + else + { + damage = (int)((double)damage * 1.1); + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).screwdriver) + { + if (projectile.penetrate > 1 || projectile.penetrate == -1) + { + damage = (int)((double)damage * 1.1); + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).sPower) + { + if (projectile.minion || CalamityMod.projectileMinionList.Contains(projectile.type)) + { + damage = (int)((double)damage * 1.1); + } + } + if (CalamityWorld.revenge) + { + bool DHorHoD = (Main.player[projectile.owner].GetModPlayer(mod).draedonsHeart || + Main.player[projectile.owner].GetModPlayer(mod).heartOfDarkness); + if (Main.player[projectile.owner].GetModPlayer(mod).rageMode && + Main.player[projectile.owner].GetModPlayer(mod).adrenalineMode) + { + if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type) || + projectile.melee || projectile.ranged || projectile.magic || rogue) + { + damage = (int)((double)damage * + (CalamityWorld.death ? (DHorHoD ? 9.9 : 9.0) : (DHorHoD ? 3.3 : 3.0))); + } + } + else if (Main.player[projectile.owner].GetModPlayer(mod).rageMode) + { + if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type) || + projectile.melee || projectile.ranged || projectile.magic || rogue) + { + double rageDamageBoost = 0.0 + + (Main.player[projectile.owner].GetModPlayer(mod).rageBoostOne ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0) + //3.6 or 1.65 + (Main.player[projectile.owner].GetModPlayer(mod).rageBoostTwo ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0) + //4.2 or 1.8 + (Main.player[projectile.owner].GetModPlayer(mod).rageBoostThree ? (CalamityWorld.death ? 0.6 : 0.15) : 0.0); //4.8 or 1.95 + double rageDamage = + (CalamityWorld.death ? (DHorHoD ? 3.3 : 3.0) : (DHorHoD ? 1.65 : 1.5)) + rageDamageBoost; + damage = (int)((double)damage * rageDamage); + } + } + else if (Main.player[projectile.owner].GetModPlayer(mod).adrenalineMode) + { + if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type) || + projectile.melee || projectile.ranged || projectile.magic || rogue) + { + damage = (int)((double)damage * ((CalamityWorld.death ? 7.0 : 2.5) * Main.player[projectile.owner].GetModPlayer(mod).adrenalineDmgMult)); + } + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).uberBees && + (projectile.type == ProjectileID.GiantBee || projectile.type == ProjectileID.Bee || projectile.type == ProjectileID.Wasp)) + { + if (Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("TheSwarmer") || + Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].type == mod.ItemType("PlagueKeeper")) + { + damage = damage + Main.rand.Next(10, 21); + } + else + { + damage = damage + Main.rand.Next(70, 101); + projectile.penetrate = 1; + } + } + } if (Main.player[projectile.owner].GetModPlayer(mod).astralStarRain && crit && - Main.player[projectile.owner].GetModPlayer(mod).astralStarRainCooldown <= 0) + Main.player[projectile.owner].GetModPlayer(mod).astralStarRainCooldown <= 0) { if (projectile.owner == Main.myPlayer) { - Main.player[projectile.owner].GetModPlayer(mod).astralStarRainCooldown = 60; - for (int n = 0; n < 3; n++) + Main.player[projectile.owner].GetModPlayer(mod).astralStarRainCooldown = 60; + for (int n = 0; n < 3; n++) { float x = target.position.X + (float)Main.rand.Next(-400, 400); float y = target.position.Y - (float)Main.rand.Next(500, 800); @@ -447,48 +455,58 @@ namespace CalamityMod.Projectiles } } } - #endregion + #endregion - #region OnHitNPC - public override void OnHitNPC(Projectile projectile, NPC target, int damage, float knockback, bool crit) + #region OnHitNPC + public override void OnHitNPC(Projectile projectile, NPC target, int damage, float knockback, bool crit) { if (projectile.owner == Main.myPlayer) { - if (projectile.magic && Main.player[projectile.owner].ghostHeal) - { - float num = 0.2f; - num -= (float)projectile.numHits * 0.05f; - if (num < 0f) - { - num = 0f; - } - float num2 = (float)damage * num; - Main.player[Main.myPlayer].lifeSteal -= num2; - } - if (projectile.type == ProjectileID.VampireKnife) - { - float num = (float)damage * 0.075f; - if (num < 0f) - { - num = 0f; - } - Main.player[Main.myPlayer].lifeSteal -= num; - } - if (Main.player[projectile.owner].GetModPlayer(mod).uberBees && - (projectile.type == 566 || projectile.type == 181 || projectile.type == 189)) + if (projectile.magic && Main.player[projectile.owner].ghostHeal) + { + float num = 0.1f; + num -= (float)projectile.numHits * 0.05f; + if (num < 0f) + { + num = 0f; + } + float num2 = (float)damage * num; + Main.player[Main.myPlayer].lifeSteal -= num2; + } + if (projectile.type == ProjectileID.VampireKnife) + { + float num = (float)damage * 0.0375f; + if (num < 0f) + { + num = 0f; + } + Main.player[Main.myPlayer].lifeSteal -= num; + } + if (Main.player[projectile.owner].GetModPlayer(mod).uberBees && + (projectile.type == 566 || projectile.type == 181 || projectile.type == 189)) { target.AddBuff(mod.BuffType("Plague"), 360); } - if (Main.player[projectile.owner].GetModPlayer(mod).alchFlask && - (projectile.magic || CalamityMod.throwingProjectileList.Contains(projectile.type) || projectile.melee || projectile.minion || projectile.ranged) && - Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("PlagueSeeker")] < 6) + if (Main.player[projectile.owner].GetModPlayer(mod).alchFlask && + (projectile.magic || rogue || projectile.melee || projectile.minion || projectile.ranged) && + Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("PlagueSeeker")] < 6) { - int plague = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("PlagueSeeker"), (int)((double)projectile.damage * 0.25), 0f, projectile.owner, 0f, 0f); + int newDamage = (int)((double)projectile.damage * 0.25); + if (newDamage > 30) + { + newDamage = 30; + } + int plague = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("PlagueSeeker"), newDamage, 0f, projectile.owner, 0f, 0f); Main.projectile[plague].melee = false; } if (Main.player[projectile.owner].GetModPlayer(mod).reaverBlast && projectile.melee) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ReaverBlast"), (int)((double)projectile.damage * 0.2), 0f, projectile.owner, 0f, 0f); + int newDamage = (int)((double)projectile.damage * 0.2); + if (newDamage > 30) + { + newDamage = 30; + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ReaverBlast"), newDamage, 0f, projectile.owner, 0f, 0f); } if (Main.player[projectile.owner].GetModPlayer(mod).auricSet && target.canGhostHeal) { @@ -507,7 +525,7 @@ namespace CalamityMod.Projectiles { return; } - Main.player[Main.myPlayer].lifeSteal -= num12 * 2f; + Main.player[Main.myPlayer].lifeSteal -= num12 * 1.5f; float num13 = 0f; int num14 = projectile.owner; for (int i = 0; i < 255; i++) @@ -541,7 +559,7 @@ namespace CalamityMod.Projectiles { return; } - Main.player[Main.myPlayer].lifeSteal -= num12 * 2f; + Main.player[Main.myPlayer].lifeSteal -= num12 * 1.5f; float num13 = 0f; int num14 = projectile.owner; for (int i = 0; i < 255; i++) @@ -560,62 +578,62 @@ namespace CalamityMod.Projectiles } if (projectile.magic) { - if (Main.player[projectile.owner].GetModPlayer(mod).silvaMage && projectile.penetrate <= 1 && - Main.rand.Next(0, 100) >= 97) - { - Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103); - projectile.position = projectile.Center; - projectile.width = (projectile.height = projectile.height * 4); - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - for (int num193 = 0; num193 < 3; num193++) - { - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 1.5f); - } - for (int num194 = 0; num194 < 30; num194++) - { - int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 157, 0f, 0f, 0, new Color(Main.DiscoR, 203, 103), 2.5f); - Main.dust[num195].noGravity = true; - Main.dust[num195].velocity *= 3f; - num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 1.5f); - Main.dust[num195].velocity *= 2f; - Main.dust[num195].noGravity = true; - } - projectile.damage *= (Main.player[projectile.owner].GetModPlayer(mod).auricSet ? 7 : 4); - projectile.Damage(); - } - if (Main.player[projectile.owner].GetModPlayer(mod).tarraMage) - { - if (Main.player[projectile.owner].GetModPlayer(mod).tarraMageHealCooldown <= 0) - { - Main.player[projectile.owner].GetModPlayer(mod).tarraMageHealCooldown = 90; - float num11 = 0.03f; - num11 -= (float)projectile.numHits * 0.015f; - if (num11 <= 0f) - { - return; - } - float num12 = (float)projectile.damage * num11; - if ((int)num12 <= 0) - { - return; - } - if (Main.player[Main.myPlayer].lifeSteal <= 0f) - { - return; - } - Main.player[Main.myPlayer].lifeSteal -= num12 * 2f; - int healAmount = (Main.player[projectile.owner].GetModPlayer(mod).auricSet ? projectile.damage / 100 : projectile.damage / 50); - Player player = Main.player[projectile.owner]; - player.statLife += healAmount; - player.HealEffect(healAmount); - if (player.statLife > player.statLifeMax2) - { - player.statLife = player.statLifeMax2; - } - } - } - if (Main.player[projectile.owner].GetModPlayer(mod).reaverBurst) + if (Main.player[projectile.owner].GetModPlayer(mod).silvaMage && projectile.penetrate == 1 && + Main.rand.Next(0, 100) >= 97) + { + Main.PlaySound(29, (int)projectile.position.X, (int)projectile.position.Y, 103); + projectile.position = projectile.Center; + projectile.width = (projectile.height = 96); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num193 = 0; num193 < 3; num193++) + { + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 1.5f); + } + for (int num194 = 0; num194 < 30; num194++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 157, 0f, 0f, 0, new Color(Main.DiscoR, 203, 103), 2.5f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 157, 0f, 0f, 100, new Color(Main.DiscoR, 203, 103), 1.5f); + Main.dust[num195].velocity *= 2f; + Main.dust[num195].noGravity = true; + } + projectile.damage *= (Main.player[projectile.owner].GetModPlayer(mod).auricSet ? 7 : 4); + projectile.Damage(); + } + if (Main.player[projectile.owner].GetModPlayer(mod).tarraMage && target.canGhostHeal) + { + if (Main.player[projectile.owner].GetModPlayer(mod).tarraMageHealCooldown <= 0) + { + Main.player[projectile.owner].GetModPlayer(mod).tarraMageHealCooldown = 90; + float num11 = 0.03f; + num11 -= (float)projectile.numHits * 0.015f; + if (num11 <= 0f) + { + return; + } + float num12 = (float)projectile.damage * num11; + if ((int)num12 <= 0) + { + return; + } + if (Main.player[Main.myPlayer].lifeSteal <= 0f) + { + return; + } + Main.player[Main.myPlayer].lifeSteal -= num12 * 1.5f; + int healAmount = (Main.player[projectile.owner].GetModPlayer(mod).auricSet ? projectile.damage / 100 : projectile.damage / 50); + Player player = Main.player[projectile.owner]; + player.statLife += healAmount; + player.HealEffect(healAmount); + if (player.statLife > player.statLifeMax2) + { + player.statLife = player.statLifeMax2; + } + } + } + if (Main.player[projectile.owner].GetModPlayer(mod).reaverBurst) { int num251 = Main.rand.Next(2, 5); for (int num252 = 0; num252 < num251; num252++) @@ -627,11 +645,16 @@ namespace CalamityMod.Projectiles } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, 569 + Main.rand.Next(3), (int)((double)projectile.damage * 0.2), 0f, projectile.owner, 0f, 0f); + int newDamage = (int)((double)projectile.damage * 0.2); + if (newDamage > 30) + { + newDamage = 30; + } + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, 569 + Main.rand.Next(3), newDamage, 0f, projectile.owner, 0f, 0f); } } else if (Main.player[projectile.owner].GetModPlayer(mod).ataxiaMage && - Main.player[projectile.owner].GetModPlayer(mod).ataxiaDmg <= 0) + Main.player[projectile.owner].GetModPlayer(mod).ataxiaDmg <= 0) { int num = projectile.damage / 2; Main.player[projectile.owner].GetModPlayer(mod).ataxiaDmg += (float)num; @@ -679,40 +702,43 @@ namespace CalamityMod.Projectiles num8 *= num10; num9 *= num10; Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("AtaxiaOrb"), (int)((double)num * 1.5), 0f, projectile.owner, (float)num6, 0f); - float num11 = 0.1f; //0.2 - num11 -= (float)projectile.numHits * 0.05f; //0.05 - if (num11 <= 0f) + if (target.canGhostHeal) { - return; - } - float num12 = (float)projectile.damage * num11; - if ((int)num12 <= 0) - { - return; - } - if (Main.player[Main.myPlayer].lifeSteal <= 0f) - { - return; - } - Main.player[Main.myPlayer].lifeSteal -= num12 * 2f; - float num13 = 0f; - int num14 = projectile.owner; - for (int i = 0; i < 255; i++) - { - if (Main.player[i].active && !Main.player[i].dead && ((!Main.player[projectile.owner].hostile && !Main.player[i].hostile) || Main.player[projectile.owner].team == Main.player[i].team)) + float num11 = 0.1f; //0.2 + num11 -= (float)projectile.numHits * 0.05f; //0.05 + if (num11 <= 0f) { - float num15 = Math.Abs(Main.player[i].position.X + (float)(Main.player[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.player[i].position.Y + (float)(Main.player[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); - if (num15 < 1200f && (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife) > num13) + return; + } + float num12 = (float)projectile.damage * num11; + if ((int)num12 <= 0) + { + return; + } + if (Main.player[Main.myPlayer].lifeSteal <= 0f) + { + return; + } + Main.player[Main.myPlayer].lifeSteal -= num12 * 1.5f; + float num13 = 0f; + int num14 = projectile.owner; + for (int i = 0; i < 255; i++) + { + if (Main.player[i].active && !Main.player[i].dead && ((!Main.player[projectile.owner].hostile && !Main.player[i].hostile) || Main.player[projectile.owner].team == Main.player[i].team)) { - num13 = (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife); - num14 = i; + float num15 = Math.Abs(Main.player[i].position.X + (float)(Main.player[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.player[i].position.Y + (float)(Main.player[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); + if (num15 < 1200f && (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife) > num13) + { + num13 = (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife); + num14 = i; + } } } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("AtaxiaHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("AtaxiaHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); } else if (Main.player[projectile.owner].GetModPlayer(mod).xerocSet && - Main.player[projectile.owner].GetModPlayer(mod).xerocDmg <= 0) + Main.player[projectile.owner].GetModPlayer(mod).xerocDmg <= 0) { int num = projectile.damage / 2; Main.player[projectile.owner].GetModPlayer(mod).xerocDmg += (float)num; @@ -760,146 +786,167 @@ namespace CalamityMod.Projectiles num8 *= num10; num9 *= num10; Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("XerocOrb"), (int)((double)num * 1.2), 0f, projectile.owner, (float)num6, 0f); - float num11 = 0.1f; - num11 -= (float)projectile.numHits * 0.05f; - if (num11 <= 0f) + if (target.canGhostHeal) { - return; - } - float num12 = (float)projectile.damage * num11; - if ((int)num12 <= 0) - { - return; - } - if (Main.player[Main.myPlayer].lifeSteal <= 0f) - { - return; - } - Main.player[Main.myPlayer].lifeSteal -= num12 * 2f; - float num13 = 0f; - int num14 = projectile.owner; - for (int i = 0; i < 255; i++) - { - if (Main.player[i].active && !Main.player[i].dead && ((!Main.player[projectile.owner].hostile && !Main.player[i].hostile) || Main.player[projectile.owner].team == Main.player[i].team)) + float num11 = 0.1f; + num11 -= (float)projectile.numHits * 0.05f; + if (num11 <= 0f) { - float num15 = Math.Abs(Main.player[i].position.X + (float)(Main.player[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.player[i].position.Y + (float)(Main.player[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); - if (num15 < 1200f && (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife) > num13) + return; + } + float num12 = (float)projectile.damage * num11; + if ((int)num12 <= 0) + { + return; + } + if (Main.player[Main.myPlayer].lifeSteal <= 0f) + { + return; + } + Main.player[Main.myPlayer].lifeSteal -= num12 * 1.5f; + float num13 = 0f; + int num14 = projectile.owner; + for (int i = 0; i < 255; i++) + { + if (Main.player[i].active && !Main.player[i].dead && ((!Main.player[projectile.owner].hostile && !Main.player[i].hostile) || Main.player[projectile.owner].team == Main.player[i].team)) { - num13 = (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife); - num14 = i; + float num15 = Math.Abs(Main.player[i].position.X + (float)(Main.player[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.player[i].position.Y + (float)(Main.player[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); + if (num15 < 1200f && (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife) > num13) + { + num13 = (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife); + num14 = i; + } + } + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); + } + } + else if (Main.player[projectile.owner].GetModPlayer(mod).godSlayerMage && + Main.player[projectile.owner].GetModPlayer(mod).godSlayerDmg <= 0) + { + int num = projectile.damage / 2; + Main.player[projectile.owner].GetModPlayer(mod).godSlayerDmg += (float)num; + int[] array = new int[200]; + int num3 = 0; + int num4 = 0; + for (int i = 0; i < 200; i++) + { + if (Main.npc[i].CanBeChasedBy(projectile, false)) + { + float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); + if (num5 < 800f) + { + if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f) + { + array[num4] = i; + num4++; + } + else if (num4 == 0) + { + array[num3] = i; + num3++; + } } } } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); + if (num3 == 0 && num4 == 0) + { + return; + } + int num6; + if (num4 > 0) + { + num6 = array[Main.rand.Next(num4)]; + } + else + { + num6 = array[Main.rand.Next(num3)]; + } + float num7 = 20f; + float num8 = (float)Main.rand.Next(-100, 101); + float num9 = (float)Main.rand.Next(-100, 101); + float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9)); + num10 = num7 / num10; + num8 *= num10; + num9 *= num10; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("GodSlayerOrb"), + (int)((double)num * (Main.player[projectile.owner].GetModPlayer(mod).auricSet ? 2.0 : 1.5)), 0f, projectile.owner, (float)num6, 0f); + if (target.canGhostHeal) + { + float num11 = (Main.player[projectile.owner].GetModPlayer(mod).auricSet ? 0.03f : 0.06f); //0.2 + num11 -= (float)projectile.numHits * 0.015f; //0.05 + if (num11 <= 0f) + { + return; + } + float num12 = (float)projectile.damage * num11; + if ((int)num12 <= 0) + { + return; + } + if (Main.player[Main.myPlayer].lifeSteal <= 0f) + { + return; + } + Main.player[Main.myPlayer].lifeSteal -= num12 * 1.5f; + float num13 = 0f; + int num14 = projectile.owner; + for (int i = 0; i < 255; i++) + { + if (Main.player[i].active && !Main.player[i].dead && ((!Main.player[projectile.owner].hostile && !Main.player[i].hostile) || Main.player[projectile.owner].team == Main.player[i].team)) + { + float num15 = Math.Abs(Main.player[i].position.X + (float)(Main.player[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.player[i].position.Y + (float)(Main.player[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); + if (num15 < 1200f && (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife) > num13) + { + num13 = (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife); + num14 = i; + } + } + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("GodSlayerHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); + } } - else if (Main.player[projectile.owner].GetModPlayer(mod).godSlayerMage && - Main.player[projectile.owner].GetModPlayer(mod).godSlayerDmg <= 0) - { - int num = projectile.damage / 2; - Main.player[projectile.owner].GetModPlayer(mod).godSlayerDmg += (float)num; - int[] array = new int[200]; - int num3 = 0; - int num4 = 0; - for (int i = 0; i < 200; i++) - { - if (Main.npc[i].CanBeChasedBy(projectile, false)) - { - float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); - if (num5 < 800f) - { - if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f) - { - array[num4] = i; - num4++; - } - else if (num4 == 0) - { - array[num3] = i; - num3++; - } - } - } - } - if (num3 == 0 && num4 == 0) - { - return; - } - int num6; - if (num4 > 0) - { - num6 = array[Main.rand.Next(num4)]; - } - else - { - num6 = array[Main.rand.Next(num3)]; - } - float num7 = 20f; - float num8 = (float)Main.rand.Next(-100, 101); - float num9 = (float)Main.rand.Next(-100, 101); - float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9)); - num10 = num7 / num10; - num8 *= num10; - num9 *= num10; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("GodSlayerOrb"), - (int)((double)num * (Main.player[projectile.owner].GetModPlayer(mod).auricSet ? 2.0 : 1.5)), 0f, projectile.owner, (float)num6, 0f); - float num11 = (Main.player[projectile.owner].GetModPlayer(mod).auricSet ? 0.03f : 0.06f); //0.2 - num11 -= (float)projectile.numHits * 0.015f; //0.05 - if (num11 <= 0f) - { - return; - } - float num12 = (float)projectile.damage * num11; - if ((int)num12 <= 0) - { - return; - } - if (Main.player[Main.myPlayer].lifeSteal <= 0f) - { - return; - } - Main.player[Main.myPlayer].lifeSteal -= num12 * 2f; - float num13 = 0f; - int num14 = projectile.owner; - for (int i = 0; i < 255; i++) - { - if (Main.player[i].active && !Main.player[i].dead && ((!Main.player[projectile.owner].hostile && !Main.player[i].hostile) || Main.player[projectile.owner].team == Main.player[i].team)) - { - float num15 = Math.Abs(Main.player[i].position.X + (float)(Main.player[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.player[i].position.Y + (float)(Main.player[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); - if (num15 < 1200f && (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife) > num13) - { - num13 = (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife); - num14 = i; - } - } - } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("GodSlayerHealOrb"), 0, 0f, projectile.owner, (float)num14, num12); - } - } + } else if (projectile.melee) { - if (Main.player[projectile.owner].GetModPlayer(mod).ataxiaGeyser && - Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("ChaosGeyser")] < 3) + if (Main.player[projectile.owner].GetModPlayer(mod).ataxiaGeyser && + Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("ChaosGeyser")] < 3) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ChaosGeyser"), (int)((double)projectile.damage * 0.15), 0f, projectile.owner, 0f, 0f); + int newDamage = (int)((double)projectile.damage * 0.15); + if (newDamage > 35) + { + newDamage = 35; + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ChaosGeyser"), newDamage, 0f, projectile.owner, 0f, 0f); } - else if (Main.player[projectile.owner].GetModPlayer(mod).xerocSet && - Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("XerocBlast")] < 3) + else if (Main.player[projectile.owner].GetModPlayer(mod).xerocSet && + Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("XerocBlast")] < 3) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocBlast"), (int)((double)projectile.damage * 0.2), 0f, projectile.owner, 0f, 0f); + int newDamage = (int)((double)projectile.damage * 0.2); + if (newDamage > 40) + { + newDamage = 40; + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocBlast"), newDamage, 0f, projectile.owner, 0f, 0f); } } else if (projectile.ranged) { - if (Main.player[projectile.owner].GetModPlayer(mod).xerocSet && - Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("XerocFire")] < 3) + if (Main.player[projectile.owner].GetModPlayer(mod).xerocSet && + Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("XerocFire")] < 3) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocFire"), (int)((double)projectile.damage * 0.15), 0f, projectile.owner, 0f, 0f); + int newDamage = (int)((double)projectile.damage * 0.15); + if (newDamage > 40) + { + newDamage = 40; + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("XerocFire"), newDamage, 0f, projectile.owner, 0f, 0f); } } - else if (CalamityMod.throwingProjectileList.Contains(projectile.type) && !projectile.melee) + else if (rogue) { if (Main.player[projectile.owner].GetModPlayer(mod).xerocSet && - Main.player[projectile.owner].GetModPlayer(mod).xerocDmg <= 0) + Main.player[projectile.owner].GetModPlayer(mod).xerocDmg <= 0) { int num = projectile.damage / 2; Main.player[projectile.owner].GetModPlayer(mod).xerocDmg += (float)num; @@ -949,13 +996,13 @@ namespace CalamityMod.Projectiles Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("XerocStar"), (int)((double)num * 1.6), 0f, projectile.owner, (float)num6, 0f); } } - else if (projectile.minion) + else if (projectile.minion || projectile.sentry || CalamityMod.projectileMinionList.Contains(projectile.type)) { - if (Main.player[projectile.owner].GetModPlayer(mod).pArtifact) - { - target.AddBuff(mod.BuffType("HolyLight"), 300); - } - if (Main.player[projectile.owner].GetModPlayer(mod).tearMinions) + if (Main.player[projectile.owner].GetModPlayer(mod).pArtifact) + { + target.AddBuff(mod.BuffType("HolyLight"), 300); + } + if (Main.player[projectile.owner].GetModPlayer(mod).tearMinions) { target.AddBuff(mod.BuffType("TemporalSadness"), 60); } @@ -963,59 +1010,59 @@ namespace CalamityMod.Projectiles { target.AddBuff(BuffID.ShadowFlame, 300); } - if (Main.player[projectile.owner].GetModPlayer(mod).godSlayerSummon && - Main.player[projectile.owner].GetModPlayer(mod).godSlayerDmg <= 0) - { - int num = projectile.damage / 2; - float ai1 = (Main.rand.NextFloat() + 0.5f); - Main.player[projectile.owner].GetModPlayer(mod).godSlayerDmg += (float)num; - int[] array = new int[200]; - int num3 = 0; - int num4 = 0; - for (int i = 0; i < 200; i++) - { - if (Main.npc[i].CanBeChasedBy(projectile, false)) - { - float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); - if (num5 < 800f) - { - if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f) - { - array[num4] = i; - num4++; - } - else if (num4 == 0) - { - array[num3] = i; - num3++; - } - } - } - } - if (num3 == 0 && num4 == 0) - { - return; - } - int num6; - if (num4 > 0) - { - num6 = array[Main.rand.Next(num4)]; - } - else - { - num6 = array[Main.rand.Next(num3)]; - } - float num7 = 15f; - float num8 = (float)Main.rand.Next(-100, 101); - float num9 = (float)Main.rand.Next(-100, 101); - float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9)); - num10 = num7 / num10; - num8 *= num10; - num9 *= num10; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("GodSlayerPhantom"), (int)((double)num * 1.5), 0f, projectile.owner, 0f, ai1); - } - else if (Main.player[projectile.owner].GetModPlayer(mod).xerocSet && - Main.player[projectile.owner].GetModPlayer(mod).xerocDmg <= 0) + if (Main.player[projectile.owner].GetModPlayer(mod).godSlayerSummon && + Main.player[projectile.owner].GetModPlayer(mod).godSlayerDmg <= 0) + { + int num = projectile.damage / 2; + float ai1 = (Main.rand.NextFloat() + 0.5f); + Main.player[projectile.owner].GetModPlayer(mod).godSlayerDmg += (float)num; + int[] array = new int[200]; + int num3 = 0; + int num4 = 0; + for (int i = 0; i < 200; i++) + { + if (Main.npc[i].CanBeChasedBy(projectile, false)) + { + float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2)); + if (num5 < 800f) + { + if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f) + { + array[num4] = i; + num4++; + } + else if (num4 == 0) + { + array[num3] = i; + num3++; + } + } + } + } + if (num3 == 0 && num4 == 0) + { + return; + } + int num6; + if (num4 > 0) + { + num6 = array[Main.rand.Next(num4)]; + } + else + { + num6 = array[Main.rand.Next(num3)]; + } + float num7 = 15f; + float num8 = (float)Main.rand.Next(-100, 101); + float num9 = (float)Main.rand.Next(-100, 101); + float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9)); + num10 = num7 / num10; + num8 *= num10; + num9 *= num10; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, mod.ProjectileType("GodSlayerPhantom"), (int)((double)num * 2.0), 0f, projectile.owner, 0f, ai1); + } + else if (Main.player[projectile.owner].GetModPlayer(mod).xerocSet && + Main.player[projectile.owner].GetModPlayer(mod).xerocDmg <= 0) { int num = projectile.damage / 2; Main.player[projectile.owner].GetModPlayer(mod).xerocDmg += (float)num; @@ -1067,41 +1114,107 @@ namespace CalamityMod.Projectiles } } } - #endregion + #endregion - #region Kill - public override void Kill(Projectile projectile, int timeLeft) - { - if (projectile.ranged) - { - if (Main.player[projectile.owner].GetModPlayer(mod).tarraRanged && Main.rand.Next(0, 100) >= 88) - { - int num251 = Main.rand.Next(2, 4); - for (int num252 = 0; num252 < num251; num252++) - { - Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - while (value15.X == 0f && value15.Y == 0f) - { - value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - } - value15.Normalize(); - value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("TarraEnergy"), (int)((double)projectile.damage * 0.33), 0f, projectile.owner, 0f, 0f); - } - } - } - } - #endregion + #region Drawing + public override Color? GetAlpha(Projectile projectile, Color lightColor) + { + if (Main.player[Main.myPlayer].GetModPlayer(mod).trippy) + return new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, projectile.alpha); + return null; + } - #region CanHit - public override bool CanHitPlayer(Projectile projectile, Player target) - { - if (projectile.type == ProjectileID.CultistBossLightningOrb) - { - return false; - } - return true; - } - #endregion - } + public override bool PreDraw(Projectile projectile, SpriteBatch spriteBatch, Color lightColor) + { + if (Main.player[Main.myPlayer].GetModPlayer(mod).trippy) + { + Texture2D texture = Main.projectileTexture[projectile.type]; + SpriteEffects spriteEffects = SpriteEffects.None; + if (projectile.spriteDirection == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + float num66 = 0f; + Vector2 vector11 = new Vector2((float)(texture.Width / 2), (float)(texture.Height / Main.projFrames[projectile.type] / 2)); + Microsoft.Xna.Framework.Color color9 = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, 0); + Microsoft.Xna.Framework.Color alpha15 = projectile.GetAlpha(color9); + float num212 = 0.99f; + alpha15.R = (byte)((float)alpha15.R * num212); + alpha15.G = (byte)((float)alpha15.G * num212); + alpha15.B = (byte)((float)alpha15.B * num212); + alpha15.A = (byte)((float)alpha15.A * num212); + for (int num213 = 0; num213 < 4; num213++) + { + Vector2 position9 = projectile.position; + float num214 = Math.Abs(projectile.Center.X - Main.player[Main.myPlayer].Center.X); + float num215 = Math.Abs(projectile.Center.Y - Main.player[Main.myPlayer].Center.Y); + if (num213 == 0 || num213 == 2) + { + position9.X = Main.player[Main.myPlayer].Center.X + num214; + } + else + { + position9.X = Main.player[Main.myPlayer].Center.X - num214; + } + position9.X -= (float)(projectile.width / 2); + if (num213 == 0 || num213 == 1) + { + position9.Y = Main.player[Main.myPlayer].Center.Y + num215; + } + else + { + position9.Y = Main.player[Main.myPlayer].Center.Y - num215; + } + int frames = texture.Height / Main.projFrames[projectile.type]; + int y = frames * projectile.frame; + position9.Y -= (float)(projectile.height / 2); + Main.spriteBatch.Draw(texture, + new Vector2(position9.X - Main.screenPosition.X + (float)(projectile.width / 2) - (float)texture.Width * projectile.scale / 2f + vector11.X * projectile.scale, position9.Y - Main.screenPosition.Y + (float)projectile.height - (float)texture.Height * projectile.scale / (float)Main.projFrames[projectile.type] + 4f + vector11.Y * projectile.scale + num66 + projectile.gfxOffY), + new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y, texture.Width, frames)), alpha15, projectile.rotation, vector11, projectile.scale, spriteEffects, 0f); + } + } + return true; + } + #endregion + + #region Kill + public override void Kill(Projectile projectile, int timeLeft) + { + if (projectile.ranged) + { + if (Main.player[projectile.owner].GetModPlayer(mod).tarraRanged && Main.rand.Next(0, 100) >= 88) + { + int num251 = Main.rand.Next(2, 4); + for (int num252 = 0; num252 < num251; num252++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + int newDamage = (int)((double)projectile.damage * 0.33); + if (newDamage > 65) + { + newDamage = 65; + } + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("TarraEnergy"), newDamage, 0f, projectile.owner, 0f, 0f); + } + } + } + } + #endregion + + #region CanHit + public override bool CanHitPlayer(Projectile projectile, Player target) + { + if (projectile.type == ProjectileID.CultistBossLightningOrb) + { + return false; + } + return true; + } + #endregion + } } diff --git a/Projectiles/Celestus.png b/Projectiles/Celestus.png deleted file mode 100644 index 418c08931742849ed52ffbd04d4fda4c818b50d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3472 zcmXX}c|6qH8~%u2u${c+Cue9rQI&ikI{eV+HkncXlx&U2Cn0D$8N6FB;C^ge73 z+(!=k9?C=I!+9G7{IX?O&T?*KfF)Dx$#X+6ccwuv=PbC}=p6WrG^JQLMFdnFODcSv zF6|Aq`j8m%>gkJRPwEY^mxUd6!ok61Y(Fsq@DHF5VVC8)WK9tN7$tLDNq;5vaanRT zye=mxXURh_#K`A<`r=vu$Jb}q;Eo0weSh{10Q80+VAA@-rE^tSvW3@xY9to=)57OH z@XkyCkm;w?0oEfk&B%1qRAaY}#u+v8hXT#3{Mv6Pv%kJSwI4MxXaTyA9DW4wUw+jN z2y*4|wYfi5KRtsQl8&Z=&P^BC)>_qSonU9k^vF|WypI+R!-B+nAlDEJnQ|QBx;JTM zHYctxLKyU~SU|7V-A6Qkv0Mhky?LF@$;8M87>ewkS2Y;`^5;;kfYUDF52v&nGndiH zHqxvLnOlps`7X#5AVJI%U9r42>;YIbCvd_;9LV=YDIEJ0I(7DZL~wb~YOzjY(y1>J zew(`F#5|xa$EE?+VnfvOLY@E^wxj{I8*}#T=<`rq)no~qysGm>a|!cn5mCp-a@Im% zAkmaH&8Zvcby?SwdZwOh;NMR!V>+@3;?F04xm^NcnC`&!n!T>@i-yPrNq#;y>FDE> zOOtFD%tj?}@2UOtr{Ade9oOU5W2fbi?qiCCGih{!y(;mXcCBS(p7`vqO2}~rx$CZk ztdVbK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Aos{J)rh^I5uB0d|b@@ zL{>T053N8Y8eYUWFM|8&*maLrl(NCLfNWr{IRYN#)<~H4(5>s*J`%ilcfd^MtoMd& e(E9L-bpHW=4A1}dG2XHO0000I{!gJHyGZa$Y?N#fcYoBUtvU+K;eKSNH#!#Qvz%w49wNH1v76)yP&v0b?F{3 zKl$Qe6mdqX8DJg~3^rN!_-!z~SA-qKCg(Rl!TigXs$lx$nzdjW?gFw6fCbvTR86pn zNwcq`*o@9OwA~LZWaqgF;sUA}fNrvlv=rC|OA&rB-F*?_GIW>1T|l-0uxKPZ5UFMW nEVSvL64B$C6k#03KPwAqD67z+gQy@_v0$K3QvO&vlpccUkoX7q1M1?rpi`X!FCNr? zAnhnYA_!_3URFd{`avBE4_;Kni?YIWn0bbM-)3+vTN`Je(|m__hMCVi-{(7TqPz8h zLxHw_92Ay(-J44Qw4{2S!n)L|AR7M;z1)r)bCv7q&#`#k!)_OHN5+J z`Wpb*iJ6k-Y;-&-63R)tyX94RS85;WcMm4qT(#@dCL0~1dUH)2TRtgI@~nRY&(n?G z`D{5yt-qw-WP8w((&1lEuINrCTRv%zY%(Ng!_q+458X>T0H1S5#`@(=66cEOv2UZC z6)6$4J-PAXEdW*d@xc3xjy-dC5c3}ac>ZcWrbKPBVL4l~J_x`--yHxh-@Rq5n|!(8 z{*5iZKM~3E*Y(BbY^DQ)zn0vI?nH}ck;m7X)So*Z2rA`pp_z*p*)ZOx=NcLRo0bnJ&81t_GTcy(- zMrzz{&lqIo)v`y6RX}b!g=AHiJ$l;SjSSIW1`Xkee^k-Q00000NkvXXu0mjfYcw%u diff --git a/Projectiles/Crystalline2.png b/Projectiles/Crystalline2.png deleted file mode 100644 index 1783364d3678a7eb92a26d5e70c4578615e5d5df..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 665 zcmV;K0%rY*P)6k#03KPwAqD67z+gQy@_v0$K3QvO&vlpccUkoX7q1M1?rpi`X!FCNr? zAnhnYA_!_3URFd{`avBE4_;Kni?YIWn0bbM-)3+vTN`Je(|m__hMCVi-{(7TqPz8h zLxHw_92Ay(-J44Qw4{2S!n)L|AR7M;z1)r)bCv7q&#`#k!)_OHN5+J z`Wpb*iJ6k-Y;-&-63R)tyX94RS85;WcMm4qT(#@dCL0~1dUH)2TRtgI@~nRY&(n?G z`D{5yt-qw-WP8w((&1lEuINrCTRv%zY%(Ng!_q+458X>T0H1S5#`@(=66cEOv2UZC z6)6$4J-PAXEdW*d@xc3xjy-dC5c3}ac>ZcWrbKPBVL4l~J_x`--yHxh-@Rq5n|!(8 z{*5iZKM~3E*Y(BbY^DQ)zn0vI?nH}ck;m7X)So*Z2rA`pp_z*p*)ZOx=NcLRo0bnJ&81t_GTcy(- zMrzz{&lqIo)v`y6RX}b!g=AHiJ$l;SjSSIW1`Xkee^k-Q00000NkvXXu0mjfPv0 0f && projectile.position.X > projectile.ai[0]) - { - flag15 = true; - } - if (projectile.velocity.Y < 0f && projectile.position.Y < projectile.ai[1]) - { - flag16 = true; - } - if (projectile.velocity.Y > 0f && projectile.position.Y > projectile.ai[1]) - { - flag16 = true; - } - if (flag15 && flag16) - { - projectile.Kill(); - } - float num461 = 25f; - if (projectile.ai[0] > 180f) - { - num461 -= (projectile.ai[0] - 180f) / 2f; - } - if (num461 <= 0f) - { - num461 = 0f; - projectile.Kill(); - } - num461 *= 0.7f; - projectile.ai[0] += 4f; - int num462 = 0; - while ((float)num462 < num461) - { - float num463 = (float)Main.rand.Next(-30, 35); - float num464 = (float)Main.rand.Next(-30, 35); - float num465 = (float)Main.rand.Next(13, 18); - float num466 = (float)Math.Sqrt((double)(num463 * num463 + num464 * num464)); - num466 = num465 / num466; - num463 *= num466; - num464 *= num466; - int num467 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default(Color), 1.5f); - Main.dust[num467].noGravity = true; - Main.dust[num467].position.X = projectile.Center.X; - Main.dust[num467].position.Y = projectile.Center.Y; - Dust expr_149DF_cp_0 = Main.dust[num467]; - expr_149DF_cp_0.position.X = expr_149DF_cp_0.position.X + (float)Main.rand.Next(-10, 11); - Dust expr_14A09_cp_0 = Main.dust[num467]; - expr_14A09_cp_0.position.Y = expr_14A09_cp_0.position.Y + (float)Main.rand.Next(-10, 11); - Main.dust[num467].velocity.X = num463; - Main.dust[num467].velocity.Y = num464; - num462++; - } - return; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Enemy +{ + public class PufferExplosion : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Explosion"); + } + + public override void SetDefaults() + { + projectile.width = 250; + projectile.height = 250; + projectile.friendly = true; + projectile.hostile = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.penetrate = -1; + projectile.timeLeft = 210; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 1; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.75f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.01f) / 255f); + if (projectile.localAI[0] == 0f) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + projectile.localAI[0] += 1f; + } + bool flag15 = false; + bool flag16 = false; + if (projectile.velocity.X < 0f && projectile.position.X < projectile.ai[0]) + { + flag15 = true; + } + if (projectile.velocity.X > 0f && projectile.position.X > projectile.ai[0]) + { + flag15 = true; + } + if (projectile.velocity.Y < 0f && projectile.position.Y < projectile.ai[1]) + { + flag16 = true; + } + if (projectile.velocity.Y > 0f && projectile.position.Y > projectile.ai[1]) + { + flag16 = true; + } + if (flag15 && flag16) + { + projectile.Kill(); + } + float num461 = 25f; + if (projectile.ai[0] > 180f) + { + num461 -= (projectile.ai[0] - 180f) / 2f; + } + if (num461 <= 0f) + { + num461 = 0f; + projectile.Kill(); + } + num461 *= 0.7f; + projectile.ai[0] += 4f; + int num462 = 0; + while ((float)num462 < num461) + { + float num463 = (float)Main.rand.Next(-30, 35); + float num464 = (float)Main.rand.Next(-30, 35); + float num465 = (float)Main.rand.Next(13, 18); + float num466 = (float)Math.Sqrt((double)(num463 * num463 + num464 * num464)); + num466 = num465 / num466; + num463 *= num466; + num464 *= num466; + int num467 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 235, 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num467].noGravity = true; + Main.dust[num467].position.X = projectile.Center.X; + Main.dust[num467].position.Y = projectile.Center.Y; + Dust expr_149DF_cp_0 = Main.dust[num467]; + expr_149DF_cp_0.position.X = expr_149DF_cp_0.position.X + (float)Main.rand.Next(-10, 11); + Dust expr_14A09_cp_0 = Main.dust[num467]; + expr_14A09_cp_0.position.Y = expr_14A09_cp_0.position.Y + (float)Main.rand.Next(-10, 11); + Main.dust[num467].velocity.X = num463; + Main.dust[num467].velocity.Y = num464; + num462++; + } + return; + } + } } \ No newline at end of file diff --git a/Projectiles/PufferExplosion.png b/Projectiles/Enemy/PufferExplosion.png similarity index 100% rename from Projectiles/PufferExplosion.png rename to Projectiles/Enemy/PufferExplosion.png diff --git a/Projectiles/StormMarkHostile.cs b/Projectiles/Enemy/StormMarkHostile.cs similarity index 96% rename from Projectiles/StormMarkHostile.cs rename to Projectiles/Enemy/StormMarkHostile.cs index 52a6fc64ce..974be5cda2 100644 --- a/Projectiles/StormMarkHostile.cs +++ b/Projectiles/Enemy/StormMarkHostile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Enemy { public class StormMarkHostile : ModProjectile { diff --git a/Projectiles/StormMarkHostile.png b/Projectiles/Enemy/StormMarkHostile.png similarity index 100% rename from Projectiles/StormMarkHostile.png rename to Projectiles/Enemy/StormMarkHostile.png diff --git a/Projectiles/SulphuricAcidCannon.cs b/Projectiles/Enemy/SulphuricAcidCannon.cs similarity index 96% rename from Projectiles/SulphuricAcidCannon.cs rename to Projectiles/Enemy/SulphuricAcidCannon.cs index 837d200ffd..40a4185519 100644 --- a/Projectiles/SulphuricAcidCannon.cs +++ b/Projectiles/Enemy/SulphuricAcidCannon.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Enemy { public class SulphuricAcidCannon : ModProjectile { diff --git a/Projectiles/SulphuricAcidCannon.png b/Projectiles/Enemy/SulphuricAcidCannon.png similarity index 100% rename from Projectiles/SulphuricAcidCannon.png rename to Projectiles/Enemy/SulphuricAcidCannon.png diff --git a/Projectiles/SulphuricAcidMist.cs b/Projectiles/Enemy/SulphuricAcidMist.cs similarity index 95% rename from Projectiles/SulphuricAcidMist.cs rename to Projectiles/Enemy/SulphuricAcidMist.cs index ae869834dc..bd5ffa7042 100644 --- a/Projectiles/SulphuricAcidMist.cs +++ b/Projectiles/Enemy/SulphuricAcidMist.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Enemy { public class SulphuricAcidMist : ModProjectile { diff --git a/Projectiles/SulphuricAcidMist.png b/Projectiles/Enemy/SulphuricAcidMist.png similarity index 100% rename from Projectiles/SulphuricAcidMist.png rename to Projectiles/Enemy/SulphuricAcidMist.png diff --git a/Projectiles/TornadoHostile.cs b/Projectiles/Enemy/TornadoHostile.cs similarity index 96% rename from Projectiles/TornadoHostile.cs rename to Projectiles/Enemy/TornadoHostile.cs index c202fdc67c..7d2bc02071 100644 --- a/Projectiles/TornadoHostile.cs +++ b/Projectiles/Enemy/TornadoHostile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Enemy { public class TornadoHostile : ModProjectile { diff --git a/Projectiles/TornadoHostile.png b/Projectiles/Enemy/TornadoHostile.png similarity index 100% rename from Projectiles/TornadoHostile.png rename to Projectiles/Enemy/TornadoHostile.png diff --git a/Projectiles/ToxicMinnowCloud.cs b/Projectiles/Enemy/ToxicMinnowCloud.cs similarity index 94% rename from Projectiles/ToxicMinnowCloud.cs rename to Projectiles/Enemy/ToxicMinnowCloud.cs index 00a5b7a07e..3a1fc29e4a 100644 --- a/Projectiles/ToxicMinnowCloud.cs +++ b/Projectiles/Enemy/ToxicMinnowCloud.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Enemy { public class ToxicMinnowCloud : ModProjectile { diff --git a/Projectiles/ToxicMinnowCloud.png b/Projectiles/Enemy/ToxicMinnowCloud.png similarity index 100% rename from Projectiles/ToxicMinnowCloud.png rename to Projectiles/Enemy/ToxicMinnowCloud.png diff --git a/Projectiles/EradicatorMeleeProjectile.png b/Projectiles/EradicatorMeleeProjectile.png deleted file mode 100644 index e12958fc93b433864df352c33f73e8a35be2ccfe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 722 zcmV;@0xkWCP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ;SV=@dRCwCtnK5g^P!PxOb9Bv+&>$4t0*($sBp*O=awx=3PTd^p*2ONNC9_Kq zoV#?-(B1D+xK97@a`m*0ro5*QZb*W;ANfDu``Y_}_)vI3%3hFi7)>~gCd|yl z%oIiw3Zn^~I`BSn4($H%mG2*4`Dwf5r|q`79&{Hx=q{@3ag@uTag<*X7^DJVoGdv` zmfRbyxHnp{pB3z9MFsrzQ1aJ9$^8Dw{Qh||pgUjyLSg_xI^36F07AUPYkrB>jREZk zlR%qY$(vnSNeKyYAJ>o&A^#+uaHs`!!lA=pTH-iaQk*P*JcqQ}vI2mlKj)-B=jkl3 z#W6tp!I03H*yLvgZFVJXb|uM453oUZL4)ps3YCUwLKE( zoO@-vV6w>AV|!}lng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%f6n_<-k0*(FHVlkG6ztzdKMn7Cs0!(WaoaJ ze@G$a6Z&wf8KnW#jE>$!aRyYbn&p`>9BL*f0Mv|*-b8T*lfX z=Ur>(K&1k_`jz`sIJLiA0nq+*^R`vtKv@}fDn38Wmn#68Pe1Qkdjk|sHIo|vYDPzI zqId^XIu)zmY`FrU+4SNso=(Bk@*XIhnk|}SDr^fz_5`aebm35^7S{A1QXk=e5 zSvsK7sj>Yn4S=41QFAO`E?HWju{sq%&%azUmS4T42O8Vz7eLR6#`4tw04fgkLI(?= z02<6Wb*_Q3Q$zc!H#k&*9YAyW!QaNAfrUeRdqEeIMfwE(GP$YB)sizP5-ZqaHwr!J>mms!2oP^Zwf3NYKu_DxB!|_ zuu!V^S}aWtj-UO1FWV=(DO19so{1~)$D$yO-+ZY!&KgApHjKGF+=6l z^g0}>D{c|>0JI3zE%wPkf`KdG1Wt-?^8oUAW<)$) zey|~yLqD4+ zM%@);JG2r_BN~8tAii=vq@A7mR>BvrW*j3&t`x=U{v*bc2v>HDd< z>i1n=a_8ZR#PgytVjhSuwnLp=XyQaG$6mXv2P4t4mRTTrX4YAzT_*IrLcc$%%yK-X5jp53R7e;6?j1OQ~G1N9%N&h54~^!v$< z^yncb8jNHP2(kI?&)?Ku&l`AF|1@ni0`hw1HV;G#BlZm5X_nLXHyE)F-?^8oUAW<)$) zey|~yLqD4+ zM%@);JG2r_BN~8tAii=vq@A7mR>BvrW*j3&t`x=U{v*bc2v>HDd< z>i1n=a_8ZR#PgytVjhSuwnLp=XyQaG$6mXv2P4t4mRTTrX4YAzT_*IrLcc$%%yK-X5jp53R7e;6?j1OQ~G1N9%N&h54~^!v$< z^yncb8jNHP2(kI?&)?Ku&l`AF|1@ni0`hw1HV;G#BlZm5X_nLXHyE)F 0) - { - projectile.alpha -= 10; - } - if (projectile.alpha < 0) - { - projectile.alpha = 0; - } - Lighting.AddLight(projectile.Center, 0.1f, 0.1f, 0.6f); - for (int num121 = 0; num121 < 5; num121++) - { - Dust dust4 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, 56, projectile.velocity.X, projectile.velocity.Y, 100, default(Color), 1f)]; - dust4.velocity = Vector2.Zero; - dust4.position -= projectile.velocity / 5f * (float)num121; - dust4.noGravity = true; - dust4.scale = 0.8f; - dust4.noLight = true; - } - if (projectile.light > 0f) - { - float num = projectile.light; - float num2 = projectile.light; - float num3 = projectile.light; - num2 *= 0.1f; - num *= 0.5f; - } - } - - public override Color? GetAlpha(Color lightColor) - { - if (projectile.alpha > 200) - { - return Color.Transparent; - } - return new Color(255 - projectile.alpha, 255 - projectile.alpha, 255 - projectile.alpha, 0); - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(BuffID.Frostburn, 500); - } - } -} \ No newline at end of file diff --git a/Projectiles/IceBeam.png b/Projectiles/IceBeam.png deleted file mode 100644 index 15e877573779272f931ab67d818cf9f2b8911a17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 135 zcmeAS@N?(olHy`uVBq!ia0vp^EFjFm1|(O0oL2{=*pj^6T^Rm@;DWu&Cj&(|3p^r= z85sBugD~Uq{1qucLG}_)Usv`AZ0utE^0#a@0p%D(JY5_^IIbuE`TyUZ*(f2&fw_g1 Y;aDFttLt^E7eILiPgg&ebxsLQ0Jwf72LJ#7 diff --git a/Projectiles/LaceratorProjectile.png b/Projectiles/LaceratorProjectile.png deleted file mode 100644 index 29852d4d1b49406da2bfd5f4de8d178db13cc442..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 281 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh1|;P@bT0xawj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&pI+l~c%2Zz1n}IiS!oPZ!4!jq}MV4$NgrO8+G{G&twq zGf?_GQ{n`R&I>cuXHN|cfZ)cC9U#g;=H_PhMG2Rd{6AqfIagWvj9M-?Hya3i)Qy$^ zff!!iK#_Y~JSho4FvC7mD7CI7+r-#7*}&Mi**oIv7Xu(Z@Y76Bub@6yJ;Z;m73)Xk zDfeHz=~)yYC$?+KtrHz`{TnW{{uF;UX|=kaL4dm4%XwjpKJj{~-S0Ra0$t4D>FVdQ I&MBb@0D3iCUH||9 diff --git a/Projectiles/LaserFountain.cs b/Projectiles/LaserFountain.cs deleted file mode 100644 index 39b601bb2d..0000000000 --- a/Projectiles/LaserFountain.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles -{ - public class LaserFountain : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Fountain"); - } - - public override void SetDefaults() - { - projectile.width = 4; - projectile.height = 4; - projectile.friendly = true; - projectile.alpha = 255; - projectile.penetrate = -1; - projectile.tileCollide = false; - projectile.timeLeft = 60; - projectile.melee = true; - } - - public override void AI() - { - projectile.localAI[0] += 1f; - float SpeedX = (float)Main.rand.Next(-15, 15); - float SpeedY = (float)Main.rand.Next(-20, -10); - if (projectile.localAI[0] >= 12f) - { - int choice = Main.rand.Next(2); - if (choice == 0) - { - if (projectile.owner == Main.myPlayer) - { - int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, SpeedX, SpeedY, mod.ProjectileType("NebulaShot"), 350, projectile.knockBack, projectile.owner, 0f, 0f); - Main.projectile[projectile1].ranged = false; - Main.projectile[projectile1].melee = true; - Main.projectile[projectile1].aiStyle = 1; - } - } - else - { - if (projectile.owner == Main.myPlayer) - { - int projectile2 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, SpeedX, SpeedY, mod.ProjectileType("IceBeam"), 350, projectile.knockBack, projectile.owner, 0f, 0f); - Main.projectile[projectile2].ranged = false; - Main.projectile[projectile2].melee = true; - Main.projectile[projectile2].aiStyle = 1; - } - } - projectile.localAI[0] = 0f; - } - } - } -} \ No newline at end of file diff --git a/Projectiles/AbyssBall.cs b/Projectiles/Magic/AbyssBall.cs similarity index 96% rename from Projectiles/AbyssBall.cs rename to Projectiles/Magic/AbyssBall.cs index 3da3309ef0..61f19a5a4c 100644 --- a/Projectiles/AbyssBall.cs +++ b/Projectiles/Magic/AbyssBall.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AbyssBall : ModProjectile { diff --git a/Projectiles/AbyssBall.png b/Projectiles/Magic/AbyssBall.png similarity index 100% rename from Projectiles/AbyssBall.png rename to Projectiles/Magic/AbyssBall.png diff --git a/Projectiles/AetherBeam.cs b/Projectiles/Magic/AetherBeam.cs similarity index 96% rename from Projectiles/AetherBeam.cs rename to Projectiles/Magic/AetherBeam.cs index 49ed978f42..6d0cf6d9d5 100644 --- a/Projectiles/AetherBeam.cs +++ b/Projectiles/Magic/AetherBeam.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AetherBeam : ModProjectile { diff --git a/Projectiles/AetherBeam.png b/Projectiles/Magic/AetherBeam.png similarity index 100% rename from Projectiles/AetherBeam.png rename to Projectiles/Magic/AetherBeam.png diff --git a/Projectiles/Ancient.cs b/Projectiles/Magic/Ancient.cs similarity index 96% rename from Projectiles/Ancient.cs rename to Projectiles/Magic/Ancient.cs index 6981588361..e76586f7ef 100644 --- a/Projectiles/Ancient.cs +++ b/Projectiles/Magic/Ancient.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class Ancient : ModProjectile { diff --git a/Projectiles/Ancient.png b/Projectiles/Magic/Ancient.png similarity index 100% rename from Projectiles/Ancient.png rename to Projectiles/Magic/Ancient.png diff --git a/Projectiles/Ancient2.cs b/Projectiles/Magic/Ancient2.cs similarity index 95% rename from Projectiles/Ancient2.cs rename to Projectiles/Magic/Ancient2.cs index 63117ade70..ab72a701a5 100644 --- a/Projectiles/Ancient2.cs +++ b/Projectiles/Magic/Ancient2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class Ancient2 : ModProjectile { diff --git a/Projectiles/Ancient2.png b/Projectiles/Magic/Ancient2.png similarity index 100% rename from Projectiles/Ancient2.png rename to Projectiles/Magic/Ancient2.png diff --git a/Projectiles/ApothChloro.cs b/Projectiles/Magic/ApothChloro.cs similarity index 97% rename from Projectiles/ApothChloro.cs rename to Projectiles/Magic/ApothChloro.cs index 1f6b1c8153..d60f1d3a24 100644 --- a/Projectiles/ApothChloro.cs +++ b/Projectiles/Magic/ApothChloro.cs @@ -8,7 +8,7 @@ using Terraria.Enums; using Terraria.GameContent; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ApothChloro : ModProjectile { diff --git a/Projectiles/ApothChloro.png b/Projectiles/Magic/ApothChloro.png similarity index 100% rename from Projectiles/ApothChloro.png rename to Projectiles/Magic/ApothChloro.png diff --git a/Projectiles/ApothJaws.cs b/Projectiles/Magic/ApothJaws.cs similarity index 95% rename from Projectiles/ApothJaws.cs rename to Projectiles/Magic/ApothJaws.cs index 790520a80d..4fc4d51124 100644 --- a/Projectiles/ApothJaws.cs +++ b/Projectiles/Magic/ApothJaws.cs @@ -8,7 +8,7 @@ using Terraria.Enums; using Terraria.GameContent; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ApothJaws : ModProjectile { diff --git a/Projectiles/ApothJaws.png b/Projectiles/Magic/ApothJaws.png similarity index 100% rename from Projectiles/ApothJaws.png rename to Projectiles/Magic/ApothJaws.png diff --git a/Projectiles/ApothMark.cs b/Projectiles/Magic/ApothMark.cs similarity index 96% rename from Projectiles/ApothMark.cs rename to Projectiles/Magic/ApothMark.cs index c99858b177..70d0e8b500 100644 --- a/Projectiles/ApothMark.cs +++ b/Projectiles/Magic/ApothMark.cs @@ -8,7 +8,7 @@ using Terraria.Enums; using Terraria.GameContent; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ApothMark : ModProjectile { diff --git a/Projectiles/ApothMark.png b/Projectiles/Magic/ApothMark.png similarity index 100% rename from Projectiles/ApothMark.png rename to Projectiles/Magic/ApothMark.png diff --git a/Projectiles/Asteroid.cs b/Projectiles/Magic/Asteroid.cs similarity index 96% rename from Projectiles/Asteroid.cs rename to Projectiles/Magic/Asteroid.cs index 042bceb333..70c903ceab 100644 --- a/Projectiles/Asteroid.cs +++ b/Projectiles/Magic/Asteroid.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class Asteroid : ModProjectile { diff --git a/Projectiles/Asteroid.png b/Projectiles/Magic/Asteroid.png similarity index 100% rename from Projectiles/Asteroid.png rename to Projectiles/Magic/Asteroid.png diff --git a/Projectiles/AsteroidMolten.cs b/Projectiles/Magic/AsteroidMolten.cs similarity index 97% rename from Projectiles/AsteroidMolten.cs rename to Projectiles/Magic/AsteroidMolten.cs index c7120c93e8..2b8da58493 100644 --- a/Projectiles/AsteroidMolten.cs +++ b/Projectiles/Magic/AsteroidMolten.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AsteroidMolten : ModProjectile { diff --git a/Projectiles/AsteroidMolten.png b/Projectiles/Magic/AsteroidMolten.png similarity index 100% rename from Projectiles/AsteroidMolten.png rename to Projectiles/Magic/AsteroidMolten.png diff --git a/Projectiles/AstralCrystal.cs b/Projectiles/Magic/AstralCrystal.cs similarity index 99% rename from Projectiles/AstralCrystal.cs rename to Projectiles/Magic/AstralCrystal.cs index cf136c21a7..edff1e5c1d 100644 --- a/Projectiles/AstralCrystal.cs +++ b/Projectiles/Magic/AstralCrystal.cs @@ -9,7 +9,7 @@ using Terraria.ModLoader; using Microsoft.Xna.Framework; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AstralCrystal : ModProjectile { diff --git a/Projectiles/AstralCrystal.png b/Projectiles/Magic/AstralCrystal.png similarity index 100% rename from Projectiles/AstralCrystal.png rename to Projectiles/Magic/AstralCrystal.png diff --git a/Projectiles/AstralCrystalInvisibleExplosion.cs b/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs similarity index 95% rename from Projectiles/AstralCrystalInvisibleExplosion.cs rename to Projectiles/Magic/AstralCrystalInvisibleExplosion.cs index a0efe9d88c..1db8cba1aa 100644 --- a/Projectiles/AstralCrystalInvisibleExplosion.cs +++ b/Projectiles/Magic/AstralCrystalInvisibleExplosion.cs @@ -10,7 +10,7 @@ using Terraria.ModLoader; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AstralCrystalInvisibleExplosion : ModProjectile { diff --git a/Projectiles/AstralCrystalInvisibleExplosion.png b/Projectiles/Magic/AstralCrystalInvisibleExplosion.png similarity index 100% rename from Projectiles/AstralCrystalInvisibleExplosion.png rename to Projectiles/Magic/AstralCrystalInvisibleExplosion.png diff --git a/Projectiles/AstralStarMagic.cs b/Projectiles/Magic/AstralStarMagic.cs similarity index 96% rename from Projectiles/AstralStarMagic.cs rename to Projectiles/Magic/AstralStarMagic.cs index 64405c34e6..cf60dbb72d 100644 --- a/Projectiles/AstralStarMagic.cs +++ b/Projectiles/Magic/AstralStarMagic.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AstralStarMagic : ModProjectile { diff --git a/Projectiles/AstralStarMagic.png b/Projectiles/Magic/AstralStarMagic.png similarity index 100% rename from Projectiles/AstralStarMagic.png rename to Projectiles/Magic/AstralStarMagic.png diff --git a/Projectiles/AtlantisSpear.cs b/Projectiles/Magic/AtlantisSpear.cs similarity index 91% rename from Projectiles/AtlantisSpear.cs rename to Projectiles/Magic/AtlantisSpear.cs index 68c98dce76..553a2c937d 100644 --- a/Projectiles/AtlantisSpear.cs +++ b/Projectiles/Magic/AtlantisSpear.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AtlantisSpear : ModProjectile { @@ -80,8 +80,13 @@ namespace CalamityMod.Projectiles Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 206, projectile.velocity.X * 0.005f, projectile.velocity.Y * 0.005f); } } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, projectile.alpha); + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.immune[projectile.owner] = 6; } diff --git a/Projectiles/Magic/AtlantisSpear.png b/Projectiles/Magic/AtlantisSpear.png new file mode 100644 index 0000000000000000000000000000000000000000..122a12fd1878a25eb9cde2646cf97b060771654e GIT binary patch literal 2421 zcmb7G3v3f*9KUVM@vvrK!sH=2Ze(HN^&V}nyMqFw-J?L~*eVRDf$QDZ_Mp8hch|KW zk_<&1C}0G_m@qzTf}% ze|-P%=2ur$n0of_i6Dr{UFoWUcdK!Ae+K>^NDR0JZ#|-wlQjhC^}KOqA*~<1fFODO zByXKw=NZolO2o{IiXWI0ktjqX$cRyiC@;(eI_d{ONp@hjcC}-uBs#E3HV^5EIzdRP zY*ayQW0hBEoGGv(Hfkg~BEdm|2+(;n5eds0mvCU6yc`@G(*%ZgLiCvqtkf`w)_JN? zr=kMXW@d1Kvf5BPYo-{Bm1SQ>X_6`-$P$9G;1t7INsgw`)DMH!R58HSxXM$u;FALj z>3WnSh!g_I{y zXI?*K0EX7%$=Gk?;No@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mV?d00001 diff --git a/Projectiles/AtlantisSpear2.cs b/Projectiles/Magic/AtlantisSpear2.cs similarity index 88% rename from Projectiles/AtlantisSpear2.cs rename to Projectiles/Magic/AtlantisSpear2.cs index 1d470b24d7..0b9e175732 100644 --- a/Projectiles/AtlantisSpear2.cs +++ b/Projectiles/Magic/AtlantisSpear2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AtlantisSpear2 : ModProjectile { @@ -68,7 +68,12 @@ namespace CalamityMod.Projectiles } } - public override void Kill(int timeLeft) + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, projectile.alpha); + } + + public override void Kill(int timeLeft) { for (int k = 0; k < 3; k++) { diff --git a/Projectiles/Magic/AtlantisSpear2.png b/Projectiles/Magic/AtlantisSpear2.png new file mode 100644 index 0000000000000000000000000000000000000000..122a12fd1878a25eb9cde2646cf97b060771654e GIT binary patch literal 2421 zcmb7G3v3f*9KUVM@vvrK!sH=2Ze(HN^&V}nyMqFw-J?L~*eVRDf$QDZ_Mp8hch|KW zk_<&1C}0G_m@qzTf}% ze|-P%=2ur$n0of_i6Dr{UFoWUcdK!Ae+K>^NDR0JZ#|-wlQjhC^}KOqA*~<1fFODO zByXKw=NZolO2o{IiXWI0ktjqX$cRyiC@;(eI_d{ONp@hjcC}-uBs#E3HV^5EIzdRP zY*ayQW0hBEoGGv(Hfkg~BEdm|2+(;n5eds0mvCU6yc`@G(*%ZgLiCvqtkf`w)_JN? zr=kMXW@d1Kvf5BPYo-{Bm1SQ>X_6`-$P$9G;1t7INsgw`)DMH!R58HSxXM$u;FALj z>3WnSh!g_I{y zXI?*K0EX7%$=Gk?;No@Qz>LJ<6or$Fmtr}XJIX$cq&SjHLOqHo z1sWcPQk0jnaaNYIF%Lmu)rh>#|0h@!xPYQYc<8ef;e&vP%0UdxM3QqVVMT?8p*l;~ zdAHM9tttU23}0w96=P6$nUkSdhQVnw)fHGNX)q)W51dOWE`k0f6&DpI*x`my2`!ox zQ}p4bdYG4WNvn+lUNu8O$!RnQ_U{M;WT3+prNh&~dL#l}_*|T?f{!!;-xw(@0@XJT zS_vwu1T>#hi9{q#gXR0gF-qETXvOYx@?kzA=?%W|pkCtj5HI`6C7BPSwUP>Cv^J_r zI;4C=HyV$rB7nNJD3F8@P?O3#v+410ZducLSpaUA1B2ybmL!oQ1wTuR0Saequn!*3fD)JUK&Gw2a!Is5`yRsUpM94_lDVny63{HwXi;J|?0##8otW|~*0s)q_ zkrtydbnZ1SmGV@psRgrAqp*Z_ZZD1(jJDyx1Y^Gd5lc-=kBP@qSx&8whX5o^*TrKt zQPR4m1oSwsg3=(2-P7z-;z{~7zW(3UKV3GHvL06dNL8nU^uN`of+N7H4FY%)5t!i* zVf5@|YKVVkt@B-%{+@=zL&F$mPAmA3Iq!fBsa1HI&1t*diXhq9Zda){bpFN)s;Yy` zFMF-_#EHQttM_D;AO#nYrTQIT(-L&io~#Rf^-8aA?t;L4d`@x0uN{ZwKFyY4_x<+6 zjcxIJ!Rw}ri>G~c*}iMTscW-~U7LS<)%5=8Ep5}547}35?(7feD!w_qe_YMAojG`) zFLHmm^T#rM*4-9YeqQSUS62I9ugBM(#wv6At!bU*E&;p_bO=5?%jQE_f<=`PZ^x|eL*O+SDZ0< zN7e1EP4u}%L-Mv=pEBKnd-@I$j_=-haQ=^p=Ulsf@*hKDHo#&VMU;Oa$yt?C&g37s5k#6hVSJ6Y&WPN3YDH-$7R%II?i1YjoAT*oHOPzHPC*Z5?OdM#G%cH~iMxtlZhR z#!M-w?(rTv@ulALHoB*NUUQ1`&O$e__;2%LK ay^a>O{{BJzf@8*qk-MzQwPnooH~t12+&V=7 literal 0 HcmV?d00001 diff --git a/Projectiles/AuraRain.cs b/Projectiles/Magic/AuraRain.cs similarity index 59% rename from Projectiles/AuraRain.cs rename to Projectiles/Magic/AuraRain.cs index 2eb82025bb..fc81eaf9b5 100644 --- a/Projectiles/AuraRain.cs +++ b/Projectiles/Magic/AuraRain.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class AuraRain : ModProjectile { @@ -29,18 +29,15 @@ namespace CalamityMod.Projectiles projectile.extraUpdates = 1; aiType = 239; } - - public override void AI() - { - for (int num121 = 0; num121 < 2; num121++) - { - Dust dust4 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, 14, projectile.velocity.X, projectile.velocity.Y, 100, default(Color), 1f)]; - dust4.velocity = Vector2.Zero; - dust4.position -= projectile.velocity / 5f * (float)num121; - dust4.noGravity = true; - dust4.scale = 0.8f; - dust4.noLight = true; - } - } + + public override void AI() + { + Dust dust4 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, 14, projectile.velocity.X, projectile.velocity.Y, 100, default(Color), 1f)]; + dust4.velocity = Vector2.Zero; + dust4.position -= projectile.velocity / 5f; + dust4.noGravity = true; + dust4.scale = 0.8f; + dust4.noLight = true; + } } } \ No newline at end of file diff --git a/Projectiles/AuraRain.png b/Projectiles/Magic/AuraRain.png similarity index 100% rename from Projectiles/AuraRain.png rename to Projectiles/Magic/AuraRain.png diff --git a/Projectiles/BeamingBolt.cs b/Projectiles/Magic/BeamingBolt.cs similarity index 95% rename from Projectiles/BeamingBolt.cs rename to Projectiles/Magic/BeamingBolt.cs index f098cf5974..4b4205923f 100644 --- a/Projectiles/BeamingBolt.cs +++ b/Projectiles/Magic/BeamingBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BeamingBolt : ModProjectile { diff --git a/Projectiles/BeamingBolt.png b/Projectiles/Magic/BeamingBolt.png similarity index 100% rename from Projectiles/BeamingBolt.png rename to Projectiles/Magic/BeamingBolt.png diff --git a/Projectiles/BeamingBolt2.cs b/Projectiles/Magic/BeamingBolt2.cs similarity index 95% rename from Projectiles/BeamingBolt2.cs rename to Projectiles/Magic/BeamingBolt2.cs index 38b9bcffc3..a7c2c6785b 100644 --- a/Projectiles/BeamingBolt2.cs +++ b/Projectiles/Magic/BeamingBolt2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BeamingBolt2 : ModProjectile { diff --git a/Projectiles/BeamingBolt2.png b/Projectiles/Magic/BeamingBolt2.png similarity index 100% rename from Projectiles/BeamingBolt2.png rename to Projectiles/Magic/BeamingBolt2.png diff --git a/Projectiles/BigBeamofDeath.cs b/Projectiles/Magic/BigBeamofDeath.cs similarity index 95% rename from Projectiles/BigBeamofDeath.cs rename to Projectiles/Magic/BigBeamofDeath.cs index 7c520b957c..6de4590545 100644 --- a/Projectiles/BigBeamofDeath.cs +++ b/Projectiles/Magic/BigBeamofDeath.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BigBeamofDeath : ModProjectile { diff --git a/Projectiles/BigBeamofDeath.png b/Projectiles/Magic/BigBeamofDeath.png similarity index 100% rename from Projectiles/BigBeamofDeath.png rename to Projectiles/Magic/BigBeamofDeath.png diff --git a/Projectiles/BigBeamofDeath2.cs b/Projectiles/Magic/BigBeamofDeath2.cs similarity index 93% rename from Projectiles/BigBeamofDeath2.cs rename to Projectiles/Magic/BigBeamofDeath2.cs index 5ae98d8313..42ef73f1ab 100644 --- a/Projectiles/BigBeamofDeath2.cs +++ b/Projectiles/Magic/BigBeamofDeath2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BigBeamofDeath2 : ModProjectile { diff --git a/Projectiles/BigBeamofDeath2.png b/Projectiles/Magic/BigBeamofDeath2.png similarity index 100% rename from Projectiles/BigBeamofDeath2.png rename to Projectiles/Magic/BigBeamofDeath2.png diff --git a/Projectiles/BlackAnurian.cs b/Projectiles/Magic/BlackAnurian.cs similarity index 95% rename from Projectiles/BlackAnurian.cs rename to Projectiles/Magic/BlackAnurian.cs index 95798e1229..e430114d2f 100644 --- a/Projectiles/BlackAnurian.cs +++ b/Projectiles/Magic/BlackAnurian.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BlackAnurian : ModProjectile { diff --git a/Projectiles/BlackAnurian.png b/Projectiles/Magic/BlackAnurian.png similarity index 100% rename from Projectiles/BlackAnurian.png rename to Projectiles/Magic/BlackAnurian.png diff --git a/Projectiles/BlackAnurianPlankton.cs b/Projectiles/Magic/BlackAnurianPlankton.cs similarity index 96% rename from Projectiles/BlackAnurianPlankton.cs rename to Projectiles/Magic/BlackAnurianPlankton.cs index 55acb8691d..fbf6320f7e 100644 --- a/Projectiles/BlackAnurianPlankton.cs +++ b/Projectiles/Magic/BlackAnurianPlankton.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BlackAnurianPlankton : ModProjectile { diff --git a/Projectiles/BlackAnurianPlankton.png b/Projectiles/Magic/BlackAnurianPlankton.png similarity index 100% rename from Projectiles/BlackAnurianPlankton.png rename to Projectiles/Magic/BlackAnurianPlankton.png diff --git a/Projectiles/BloodBeam.cs b/Projectiles/Magic/BloodBeam.cs similarity index 95% rename from Projectiles/BloodBeam.cs rename to Projectiles/Magic/BloodBeam.cs index 3ccfb7f487..fc15ae6087 100644 --- a/Projectiles/BloodBeam.cs +++ b/Projectiles/Magic/BloodBeam.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BloodBeam : ModProjectile { diff --git a/Projectiles/BloodBeam.png b/Projectiles/Magic/BloodBeam.png similarity index 100% rename from Projectiles/BloodBeam.png rename to Projectiles/Magic/BloodBeam.png diff --git a/Projectiles/BloodBlast.cs b/Projectiles/Magic/BloodBlast.cs similarity index 95% rename from Projectiles/BloodBlast.cs rename to Projectiles/Magic/BloodBlast.cs index 8ccb831ae1..c12e62e205 100644 --- a/Projectiles/BloodBlast.cs +++ b/Projectiles/Magic/BloodBlast.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BloodBlast : ModProjectile { diff --git a/Projectiles/BloodBlast.png b/Projectiles/Magic/BloodBlast.png similarity index 100% rename from Projectiles/BloodBlast.png rename to Projectiles/Magic/BloodBlast.png diff --git a/Projectiles/BloodBolt.cs b/Projectiles/Magic/BloodBolt.cs similarity index 93% rename from Projectiles/BloodBolt.cs rename to Projectiles/Magic/BloodBolt.cs index 3213801d7f..d1c14ec987 100644 --- a/Projectiles/BloodBolt.cs +++ b/Projectiles/Magic/BloodBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BloodBolt : ModProjectile { diff --git a/Projectiles/BloodBolt.png b/Projectiles/Magic/BloodBolt.png similarity index 100% rename from Projectiles/BloodBolt.png rename to Projectiles/Magic/BloodBolt.png diff --git a/Projectiles/BloodOrb.cs b/Projectiles/Magic/BloodOrb.cs similarity index 95% rename from Projectiles/BloodOrb.cs rename to Projectiles/Magic/BloodOrb.cs index 377bdeeb9b..59859da444 100644 --- a/Projectiles/BloodOrb.cs +++ b/Projectiles/Magic/BloodOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BloodOrb : ModProjectile { diff --git a/Projectiles/BloodOrb.png b/Projectiles/Magic/BloodOrb.png similarity index 100% rename from Projectiles/BloodOrb.png rename to Projectiles/Magic/BloodOrb.png diff --git a/Projectiles/BloodRay.cs b/Projectiles/Magic/BloodRay.cs similarity index 94% rename from Projectiles/BloodRay.cs rename to Projectiles/Magic/BloodRay.cs index 0f3986755d..9e47f35309 100644 --- a/Projectiles/BloodRay.cs +++ b/Projectiles/Magic/BloodRay.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BloodRay : ModProjectile { diff --git a/Projectiles/BloodRay.png b/Projectiles/Magic/BloodRay.png similarity index 100% rename from Projectiles/BloodRay.png rename to Projectiles/Magic/BloodRay.png diff --git a/Projectiles/BlueBubble.cs b/Projectiles/Magic/BlueBubble.cs similarity index 94% rename from Projectiles/BlueBubble.cs rename to Projectiles/Magic/BlueBubble.cs index 1c1e87d72c..81e4de6b87 100644 --- a/Projectiles/BlueBubble.cs +++ b/Projectiles/Magic/BlueBubble.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BlueBubble : ModProjectile { @@ -58,7 +58,6 @@ namespace CalamityMod.Projectiles if (Main.myPlayer == projectile.owner && projectile.timeLeft > 120) { projectile.timeLeft = 120; - return; } } diff --git a/Projectiles/BlueBubble.png b/Projectiles/Magic/BlueBubble.png similarity index 100% rename from Projectiles/BlueBubble.png rename to Projectiles/Magic/BlueBubble.png diff --git a/Projectiles/BlushieStaffProj.cs b/Projectiles/Magic/BlushieStaffProj.cs similarity index 95% rename from Projectiles/BlushieStaffProj.cs rename to Projectiles/Magic/BlushieStaffProj.cs index 6238ae4db2..3484c7cc49 100644 --- a/Projectiles/BlushieStaffProj.cs +++ b/Projectiles/Magic/BlushieStaffProj.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BlushieStaffProj : ModProjectile { @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles Player player = Main.player[projectile.owner]; if (Main.myPlayer == projectile.owner) { - if (!player.channel || player.noItems || player.CCed) + if (!player.channel || player.noItems || player.CCed || projectile.ai[0] > 1800f) { projectile.Kill(); } @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles player.itemAnimation = 2; projectile.ai[0] += 1f; - projectile.damage = ((int)projectile.ai[0] - 120) / 2; + projectile.damage = ((int)projectile.ai[0] - 120) * 4; if (projectile.damage >= 100 && Main.myPlayer == projectile.owner) { if (player.statMana <= 0 && player.manaFlower) diff --git a/Projectiles/BlushieStaffProj.png b/Projectiles/Magic/BlushieStaffProj.png similarity index 100% rename from Projectiles/BlushieStaffProj.png rename to Projectiles/Magic/BlushieStaffProj.png diff --git a/Projectiles/BrimstoneBeam.cs b/Projectiles/Magic/BrimstoneBeam.cs similarity index 95% rename from Projectiles/BrimstoneBeam.cs rename to Projectiles/Magic/BrimstoneBeam.cs index f9ee5aa772..dd9bea66e9 100644 --- a/Projectiles/BrimstoneBeam.cs +++ b/Projectiles/Magic/BrimstoneBeam.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneBeam : ModProjectile { diff --git a/Projectiles/BrimstoneBeam.png b/Projectiles/Magic/BrimstoneBeam.png similarity index 100% rename from Projectiles/BrimstoneBeam.png rename to Projectiles/Magic/BrimstoneBeam.png diff --git a/Projectiles/BrimstoneBeam2.cs b/Projectiles/Magic/BrimstoneBeam2.cs similarity index 95% rename from Projectiles/BrimstoneBeam2.cs rename to Projectiles/Magic/BrimstoneBeam2.cs index bf3d71bc7f..d9e33961dc 100644 --- a/Projectiles/BrimstoneBeam2.cs +++ b/Projectiles/Magic/BrimstoneBeam2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneBeam2 : ModProjectile { diff --git a/Projectiles/BrimstoneBeam2.png b/Projectiles/Magic/BrimstoneBeam2.png similarity index 100% rename from Projectiles/BrimstoneBeam2.png rename to Projectiles/Magic/BrimstoneBeam2.png diff --git a/Projectiles/BrimstoneBeam3.cs b/Projectiles/Magic/BrimstoneBeam3.cs similarity index 95% rename from Projectiles/BrimstoneBeam3.cs rename to Projectiles/Magic/BrimstoneBeam3.cs index 729a1a4fcd..2c05f0eccc 100644 --- a/Projectiles/BrimstoneBeam3.cs +++ b/Projectiles/Magic/BrimstoneBeam3.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneBeam3 : ModProjectile { diff --git a/Projectiles/BrimstoneBeam3.png b/Projectiles/Magic/BrimstoneBeam3.png similarity index 100% rename from Projectiles/BrimstoneBeam3.png rename to Projectiles/Magic/BrimstoneBeam3.png diff --git a/Projectiles/BrimstoneBeam4.cs b/Projectiles/Magic/BrimstoneBeam4.cs similarity index 95% rename from Projectiles/BrimstoneBeam4.cs rename to Projectiles/Magic/BrimstoneBeam4.cs index ebe13ae793..99f62d2c39 100644 --- a/Projectiles/BrimstoneBeam4.cs +++ b/Projectiles/Magic/BrimstoneBeam4.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneBeam4 : ModProjectile { diff --git a/Projectiles/BrimstoneBeam4.png b/Projectiles/Magic/BrimstoneBeam4.png similarity index 100% rename from Projectiles/BrimstoneBeam4.png rename to Projectiles/Magic/BrimstoneBeam4.png diff --git a/Projectiles/BrimstoneBeam5.cs b/Projectiles/Magic/BrimstoneBeam5.cs similarity index 94% rename from Projectiles/BrimstoneBeam5.cs rename to Projectiles/Magic/BrimstoneBeam5.cs index 1731a5892e..0c330d8093 100644 --- a/Projectiles/BrimstoneBeam5.cs +++ b/Projectiles/Magic/BrimstoneBeam5.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneBeam5 : ModProjectile { diff --git a/Projectiles/BrimstoneBeam5.png b/Projectiles/Magic/BrimstoneBeam5.png similarity index 100% rename from Projectiles/BrimstoneBeam5.png rename to Projectiles/Magic/BrimstoneBeam5.png diff --git a/Projectiles/BrimstoneFireball.cs b/Projectiles/Magic/BrimstoneFireball.cs similarity index 96% rename from Projectiles/BrimstoneFireball.cs rename to Projectiles/Magic/BrimstoneFireball.cs index 14ca9e7875..9d47ad6d38 100644 --- a/Projectiles/BrimstoneFireball.cs +++ b/Projectiles/Magic/BrimstoneFireball.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneFireball : ModProjectile { diff --git a/Projectiles/BrimstoneFireball.png b/Projectiles/Magic/BrimstoneFireball.png similarity index 100% rename from Projectiles/BrimstoneFireball.png rename to Projectiles/Magic/BrimstoneFireball.png diff --git a/Projectiles/BrimstoneHellfireballFriendly.cs b/Projectiles/Magic/BrimstoneHellfireballFriendly.cs similarity index 95% rename from Projectiles/BrimstoneHellfireballFriendly.cs rename to Projectiles/Magic/BrimstoneHellfireballFriendly.cs index a2cd52523a..a1a5c8916b 100644 --- a/Projectiles/BrimstoneHellfireballFriendly.cs +++ b/Projectiles/Magic/BrimstoneHellfireballFriendly.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneHellfireballFriendly : ModProjectile { diff --git a/Projectiles/BrimstoneHellfireballFriendly.png b/Projectiles/Magic/BrimstoneHellfireballFriendly.png similarity index 100% rename from Projectiles/BrimstoneHellfireballFriendly.png rename to Projectiles/Magic/BrimstoneHellfireballFriendly.png diff --git a/Projectiles/BrimstoneHellfireballFriendly2.cs b/Projectiles/Magic/BrimstoneHellfireballFriendly2.cs similarity index 95% rename from Projectiles/BrimstoneHellfireballFriendly2.cs rename to Projectiles/Magic/BrimstoneHellfireballFriendly2.cs index cf14afcb1d..fc028fe7d7 100644 --- a/Projectiles/BrimstoneHellfireballFriendly2.cs +++ b/Projectiles/Magic/BrimstoneHellfireballFriendly2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneHellfireballFriendly2 : ModProjectile { diff --git a/Projectiles/BrimstoneHellfireballFriendly2.png b/Projectiles/Magic/BrimstoneHellfireballFriendly2.png similarity index 100% rename from Projectiles/BrimstoneHellfireballFriendly2.png rename to Projectiles/Magic/BrimstoneHellfireballFriendly2.png diff --git a/Projectiles/BrimstoneHomer.cs b/Projectiles/Magic/BrimstoneHomer.cs similarity index 94% rename from Projectiles/BrimstoneHomer.cs rename to Projectiles/Magic/BrimstoneHomer.cs index 6faf745e33..7688993a47 100644 --- a/Projectiles/BrimstoneHomer.cs +++ b/Projectiles/Magic/BrimstoneHomer.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneHomer : ModProjectile { @@ -19,6 +19,7 @@ namespace CalamityMod.Projectiles projectile.width = 4; projectile.height = 4; projectile.friendly = true; + projectile.magic = true; projectile.penetrate = 1; projectile.timeLeft = 240; } diff --git a/Projectiles/BrimstoneHomer.png b/Projectiles/Magic/BrimstoneHomer.png similarity index 100% rename from Projectiles/BrimstoneHomer.png rename to Projectiles/Magic/BrimstoneHomer.png diff --git a/Projectiles/BrimstoneTentacle.cs b/Projectiles/Magic/BrimstoneTentacle.cs similarity index 95% rename from Projectiles/BrimstoneTentacle.cs rename to Projectiles/Magic/BrimstoneTentacle.cs index 9b2c1fc4f5..2f4cd8463c 100644 --- a/Projectiles/BrimstoneTentacle.cs +++ b/Projectiles/Magic/BrimstoneTentacle.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class BrimstoneTentacle : ModProjectile { diff --git a/Projectiles/BrimstoneTentacle.png b/Projectiles/Magic/BrimstoneTentacle.png similarity index 100% rename from Projectiles/BrimstoneTentacle.png rename to Projectiles/Magic/BrimstoneTentacle.png diff --git a/Projectiles/Climax.cs b/Projectiles/Magic/Climax.cs similarity index 96% rename from Projectiles/Climax.cs rename to Projectiles/Magic/Climax.cs index 530fb508c9..0ed490e113 100644 --- a/Projectiles/Climax.cs +++ b/Projectiles/Magic/Climax.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class Climax : ModProjectile { diff --git a/Projectiles/Climax.png b/Projectiles/Magic/Climax.png similarity index 100% rename from Projectiles/Climax.png rename to Projectiles/Magic/Climax.png diff --git a/Projectiles/ClimaxBeam.cs b/Projectiles/Magic/ClimaxBeam.cs similarity index 93% rename from Projectiles/ClimaxBeam.cs rename to Projectiles/Magic/ClimaxBeam.cs index efe368d283..43076407ab 100644 --- a/Projectiles/ClimaxBeam.cs +++ b/Projectiles/Magic/ClimaxBeam.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ClimaxBeam : ModProjectile { diff --git a/Projectiles/ClimaxBeam.png b/Projectiles/Magic/ClimaxBeam.png similarity index 100% rename from Projectiles/ClimaxBeam.png rename to Projectiles/Magic/ClimaxBeam.png diff --git a/Projectiles/CoralSpike.cs b/Projectiles/Magic/CoralSpike.cs similarity index 92% rename from Projectiles/CoralSpike.cs rename to Projectiles/Magic/CoralSpike.cs index b5f7e4bf3e..15ef971cbb 100644 --- a/Projectiles/CoralSpike.cs +++ b/Projectiles/Magic/CoralSpike.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class CoralSpike : ModProjectile { diff --git a/Projectiles/CoralSpike.png b/Projectiles/Magic/CoralSpike.png similarity index 100% rename from Projectiles/CoralSpike.png rename to Projectiles/Magic/CoralSpike.png diff --git a/Projectiles/CosmicTentacle.cs b/Projectiles/Magic/CosmicTentacle.cs similarity index 95% rename from Projectiles/CosmicTentacle.cs rename to Projectiles/Magic/CosmicTentacle.cs index 88ba357a0b..4a5b03ce69 100644 --- a/Projectiles/CosmicTentacle.cs +++ b/Projectiles/Magic/CosmicTentacle.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class CosmicTentacle : ModProjectile { diff --git a/Projectiles/CosmicTentacle.png b/Projectiles/Magic/CosmicTentacle.png similarity index 100% rename from Projectiles/CosmicTentacle.png rename to Projectiles/Magic/CosmicTentacle.png diff --git a/Projectiles/DemonicPitchfork.cs b/Projectiles/Magic/DemonicPitchfork.cs similarity index 95% rename from Projectiles/DemonicPitchfork.cs rename to Projectiles/Magic/DemonicPitchfork.cs index 1de20734f5..26f48b5f6d 100644 --- a/Projectiles/DemonicPitchfork.cs +++ b/Projectiles/Magic/DemonicPitchfork.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class DemonicPitchfork : ModProjectile { diff --git a/Projectiles/DemonicPitchfork.png b/Projectiles/Magic/DemonicPitchfork.png similarity index 100% rename from Projectiles/DemonicPitchfork.png rename to Projectiles/Magic/DemonicPitchfork.png diff --git a/Projectiles/DustProjectile.cs b/Projectiles/Magic/DustProjectile.cs similarity index 95% rename from Projectiles/DustProjectile.cs rename to Projectiles/Magic/DustProjectile.cs index c5887a3227..510987a426 100644 --- a/Projectiles/DustProjectile.cs +++ b/Projectiles/Magic/DustProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class DustProjectile : ModProjectile { diff --git a/Projectiles/DustProjectile.png b/Projectiles/Magic/DustProjectile.png similarity index 100% rename from Projectiles/DustProjectile.png rename to Projectiles/Magic/DustProjectile.png diff --git a/Projectiles/EidolicWail.cs b/Projectiles/Magic/EidolicWail.cs similarity index 95% rename from Projectiles/EidolicWail.cs rename to Projectiles/Magic/EidolicWail.cs index cefe70319c..945596c7c2 100644 --- a/Projectiles/EidolicWail.cs +++ b/Projectiles/Magic/EidolicWail.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class EidolicWail : ModProjectile { diff --git a/Projectiles/EidolicWail.png b/Projectiles/Magic/EidolicWail.png similarity index 100% rename from Projectiles/EidolicWail.png rename to Projectiles/Magic/EidolicWail.png diff --git a/Projectiles/EldritchTentacle.cs b/Projectiles/Magic/EldritchTentacle.cs similarity index 95% rename from Projectiles/EldritchTentacle.cs rename to Projectiles/Magic/EldritchTentacle.cs index c083219b38..f6a96bb963 100644 --- a/Projectiles/EldritchTentacle.cs +++ b/Projectiles/Magic/EldritchTentacle.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class EldritchTentacle : ModProjectile { diff --git a/Projectiles/EldritchTentacle.png b/Projectiles/Magic/EldritchTentacle.png similarity index 100% rename from Projectiles/EldritchTentacle.png rename to Projectiles/Magic/EldritchTentacle.png diff --git a/Projectiles/ElementBolt.cs b/Projectiles/Magic/ElementBolt.cs similarity index 94% rename from Projectiles/ElementBolt.cs rename to Projectiles/Magic/ElementBolt.cs index fff381d2d1..59e4b07ab2 100644 --- a/Projectiles/ElementBolt.cs +++ b/Projectiles/Magic/ElementBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ElementBolt : ModProjectile { diff --git a/Projectiles/ElementBolt.png b/Projectiles/Magic/ElementBolt.png similarity index 100% rename from Projectiles/ElementBolt.png rename to Projectiles/Magic/ElementBolt.png diff --git a/Projectiles/ElementBolt2.cs b/Projectiles/Magic/ElementBolt2.cs similarity index 93% rename from Projectiles/ElementBolt2.cs rename to Projectiles/Magic/ElementBolt2.cs index 7450012f45..a8c5d14655 100644 --- a/Projectiles/ElementBolt2.cs +++ b/Projectiles/Magic/ElementBolt2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ElementBolt2 : ModProjectile { diff --git a/Projectiles/ElementBolt2.png b/Projectiles/Magic/ElementBolt2.png similarity index 100% rename from Projectiles/ElementBolt2.png rename to Projectiles/Magic/ElementBolt2.png diff --git a/Projectiles/ElementOrb.cs b/Projectiles/Magic/ElementOrb.cs similarity index 95% rename from Projectiles/ElementOrb.cs rename to Projectiles/Magic/ElementOrb.cs index 719b88bdd4..796f0822e9 100644 --- a/Projectiles/ElementOrb.cs +++ b/Projectiles/Magic/ElementOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ElementOrb : ModProjectile { diff --git a/Projectiles/ElementOrb.png b/Projectiles/Magic/ElementOrb.png similarity index 100% rename from Projectiles/ElementOrb.png rename to Projectiles/Magic/ElementOrb.png diff --git a/Projectiles/ElementOrb2.cs b/Projectiles/Magic/ElementOrb2.cs similarity index 95% rename from Projectiles/ElementOrb2.cs rename to Projectiles/Magic/ElementOrb2.cs index c39424d1f5..fe342c5a42 100644 --- a/Projectiles/ElementOrb2.cs +++ b/Projectiles/Magic/ElementOrb2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ElementOrb2 : ModProjectile { diff --git a/Projectiles/ElementOrb2.png b/Projectiles/Magic/ElementOrb2.png similarity index 100% rename from Projectiles/ElementOrb2.png rename to Projectiles/Magic/ElementOrb2.png diff --git a/Projectiles/ElementRay.cs b/Projectiles/Magic/ElementRay.cs similarity index 94% rename from Projectiles/ElementRay.cs rename to Projectiles/Magic/ElementRay.cs index 367e838a00..8f81fe77a3 100644 --- a/Projectiles/ElementRay.cs +++ b/Projectiles/Magic/ElementRay.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ElementRay : ModProjectile { diff --git a/Projectiles/ElementRay.png b/Projectiles/Magic/ElementRay.png similarity index 100% rename from Projectiles/ElementRay.png rename to Projectiles/Magic/ElementRay.png diff --git a/Projectiles/ElementTentacle.cs b/Projectiles/Magic/ElementTentacle.cs similarity index 95% rename from Projectiles/ElementTentacle.cs rename to Projectiles/Magic/ElementTentacle.cs index ba2b1abffa..507d7943c5 100644 --- a/Projectiles/ElementTentacle.cs +++ b/Projectiles/Magic/ElementTentacle.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ElementTentacle : ModProjectile { diff --git a/Projectiles/ElementTentacle.png b/Projectiles/Magic/ElementTentacle.png similarity index 100% rename from Projectiles/ElementTentacle.png rename to Projectiles/Magic/ElementTentacle.png diff --git a/Projectiles/EvergladeSprayProjectile.cs b/Projectiles/Magic/EvergladeSprayProjectile.cs similarity index 95% rename from Projectiles/EvergladeSprayProjectile.cs rename to Projectiles/Magic/EvergladeSprayProjectile.cs index a166cd55cd..0dc9da30e2 100644 --- a/Projectiles/EvergladeSprayProjectile.cs +++ b/Projectiles/Magic/EvergladeSprayProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class EvergladeSprayProjectile : ModProjectile { diff --git a/Projectiles/EvergladeSprayProjectile.png b/Projectiles/Magic/EvergladeSprayProjectile.png similarity index 100% rename from Projectiles/EvergladeSprayProjectile.png rename to Projectiles/Magic/EvergladeSprayProjectile.png diff --git a/Projectiles/FabBolt.cs b/Projectiles/Magic/FabBolt.cs similarity index 93% rename from Projectiles/FabBolt.cs rename to Projectiles/Magic/FabBolt.cs index b35d97ac9b..c984af2547 100644 --- a/Projectiles/FabBolt.cs +++ b/Projectiles/Magic/FabBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FabBolt : ModProjectile { diff --git a/Projectiles/FabBolt.png b/Projectiles/Magic/FabBolt.png similarity index 100% rename from Projectiles/FabBolt.png rename to Projectiles/Magic/FabBolt.png diff --git a/Projectiles/FabOrb.cs b/Projectiles/Magic/FabOrb.cs similarity index 95% rename from Projectiles/FabOrb.cs rename to Projectiles/Magic/FabOrb.cs index cc72150d7c..70bc5e6835 100644 --- a/Projectiles/FabOrb.cs +++ b/Projectiles/Magic/FabOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FabOrb : ModProjectile { diff --git a/Projectiles/FabOrb.png b/Projectiles/Magic/FabOrb.png similarity index 100% rename from Projectiles/FabOrb.png rename to Projectiles/Magic/FabOrb.png diff --git a/Projectiles/FabRay.cs b/Projectiles/Magic/FabRay.cs similarity index 95% rename from Projectiles/FabRay.cs rename to Projectiles/Magic/FabRay.cs index 443ee00570..5f3085b5c4 100644 --- a/Projectiles/FabRay.cs +++ b/Projectiles/Magic/FabRay.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FabRay : ModProjectile { diff --git a/Projectiles/FabRay.png b/Projectiles/Magic/FabRay.png similarity index 100% rename from Projectiles/FabRay.png rename to Projectiles/Magic/FabRay.png diff --git a/Projectiles/FatesReveal.cs b/Projectiles/Magic/FatesReveal.cs similarity index 74% rename from Projectiles/FatesReveal.cs rename to Projectiles/Magic/FatesReveal.cs index 3f77f1cf52..7bed332928 100644 --- a/Projectiles/FatesReveal.cs +++ b/Projectiles/Magic/FatesReveal.cs @@ -5,63 +5,63 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { - public class FatesReveal : ModProjectile - { - public override void SetStaticDefaults() + public class FatesReveal : ModProjectile + { + public override void SetStaticDefaults() { DisplayName.SetDefault("Fireball"); Main.projFrames[projectile.type] = 4; } - - public override void SetDefaults() - { - projectile.width = 10; - projectile.height = 10; - projectile.friendly = true; - projectile.alpha = 255; - projectile.tileCollide = false; - projectile.ignoreWater = true; - projectile.timeLeft = 180; - projectile.magic = true; - } - public override void AI() - { + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 10; + projectile.friendly = true; + projectile.alpha = 255; + projectile.tileCollide = false; + projectile.ignoreWater = true; + projectile.timeLeft = 180; + projectile.magic = true; + } + + public override void AI() + { float num949 = 10f; float scaleFactor11 = 15f; float num950 = 160f; - if (projectile.timeLeft > 30 && projectile.alpha > 0) + if (projectile.timeLeft > 30 && projectile.alpha > 0) { projectile.alpha -= 25; } - if (projectile.timeLeft > 30 && projectile.alpha < 128 && Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + if (projectile.timeLeft > 30 && projectile.alpha < 128 && Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) { projectile.alpha = 128; } - if (projectile.alpha < 0) + if (projectile.alpha < 0) { projectile.alpha = 0; } int num3 = projectile.frameCounter + 1; projectile.frameCounter = num3; - if (num3 > 4) + if (num3 > 4) { projectile.frameCounter = 0; num3 = projectile.frame + 1; projectile.frame = num3; - if (num3 >= 4) + if (num3 >= 4) { projectile.frame = 0; } } float num951 = 0.5f; - if (projectile.timeLeft < 120) + if (projectile.timeLeft < 120) { num951 = 1.1f; } - if (projectile.timeLeft < 60) + if (projectile.timeLeft < 60) { num951 = 1.6f; } @@ -70,9 +70,9 @@ namespace CalamityMod.Projectiles float num73 = var_2_2A211_cp_0[var_2_2A211_cp_1]; var_2_2A211_cp_0[var_2_2A211_cp_1] = num73 + 1f; float num952 = projectile.ai[1] / 180f * 6.28318548f; - for (float num953 = 0f; num953 < 3f; num953 = num73 + 1f) + for (float num953 = 0f; num953 < 3f; num953 = num73 + 1f) { - if (Main.rand.Next(3) != 0) + if (Main.rand.Next(3) != 0) { return; } @@ -85,57 +85,57 @@ namespace CalamityMod.Projectiles dust13.alpha = 200; num73 = num953; } - if (projectile.timeLeft < 4) + if (projectile.timeLeft < 4) { projectile.position = projectile.Center; projectile.width = (projectile.height = 180); projectile.Center = projectile.position; projectile.damage = 800; - for (int num955 = 0; num955 < 10; num955 = num3 + 1) + for (int num955 = 0; num955 < 10; num955 = num3 + 1) { Dust dust13 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, 60, 0f, -2f, 0, default(Color), 1f)]; dust13.noGravity = true; - if (dust13.position != projectile.Center) + if (dust13.position != projectile.Center) { dust13.velocity = projectile.DirectionTo(dust13.position) * 3f; } num3 = num955; } } - if (Main.player[projectile.owner].active && !Main.player[projectile.owner].dead) + if (Main.player[projectile.owner].active && !Main.player[projectile.owner].dead) { - if (projectile.Distance(Main.player[projectile.owner].Center) > num950) + if (projectile.Distance(Main.player[projectile.owner].Center) > num950) { Vector2 vector118 = projectile.DirectionTo(Main.player[projectile.owner].Center); - if (vector118.HasNaNs()) + if (vector118.HasNaNs()) { vector118 = Vector2.UnitY; } projectile.velocity = (projectile.velocity * (num949 - 1f) + vector118 * scaleFactor11) / num949; } - } - else + } + else { - if (projectile.timeLeft > 30) + if (projectile.timeLeft > 30) { projectile.timeLeft = 30; } } - } - - public override Color? GetAlpha(Color lightColor) - { + } + + public override Color? GetAlpha(Color lightColor) + { if (projectile.timeLeft < 30) { float num4 = (float)projectile.timeLeft / 30f; projectile.alpha = (int)(255f - 255f * num4); } return new Color(255 - projectile.alpha, 255 - projectile.alpha, 255 - projectile.alpha, 128 - projectile.alpha / 2); - } + } - public override void Kill(int timeLeft) - { - projectile.position = projectile.Center; + public override void Kill(int timeLeft) + { + projectile.position = projectile.Center; projectile.width = (projectile.height = 180); projectile.Center = projectile.position; projectile.damage = projectile.damage * 3; @@ -166,6 +166,6 @@ namespace CalamityMod.Projectiles dust.velocity *= 2f; num3 = num126; } - } - } + } + } } \ No newline at end of file diff --git a/Projectiles/FatesReveal.png b/Projectiles/Magic/FatesReveal.png similarity index 100% rename from Projectiles/FatesReveal.png rename to Projectiles/Magic/FatesReveal.png diff --git a/Projectiles/FlameBeamTip.cs b/Projectiles/Magic/FlameBeamTip.cs similarity index 95% rename from Projectiles/FlameBeamTip.cs rename to Projectiles/Magic/FlameBeamTip.cs index 4416c23436..45b7327b4e 100644 --- a/Projectiles/FlameBeamTip.cs +++ b/Projectiles/Magic/FlameBeamTip.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FlameBeamTip : ModProjectile { diff --git a/Projectiles/FlameBeamTip.png b/Projectiles/Magic/FlameBeamTip.png similarity index 100% rename from Projectiles/FlameBeamTip.png rename to Projectiles/Magic/FlameBeamTip.png diff --git a/Projectiles/FlameBeamTip2.cs b/Projectiles/Magic/FlameBeamTip2.cs similarity index 95% rename from Projectiles/FlameBeamTip2.cs rename to Projectiles/Magic/FlameBeamTip2.cs index 248beaf88e..4d14d6fd93 100644 --- a/Projectiles/FlameBeamTip2.cs +++ b/Projectiles/Magic/FlameBeamTip2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FlameBeamTip2 : ModProjectile { diff --git a/Projectiles/FlameBeamTip2.png b/Projectiles/Magic/FlameBeamTip2.png similarity index 100% rename from Projectiles/FlameBeamTip2.png rename to Projectiles/Magic/FlameBeamTip2.png diff --git a/Projectiles/FlamePillar.cs b/Projectiles/Magic/FlamePillar.cs similarity index 95% rename from Projectiles/FlamePillar.cs rename to Projectiles/Magic/FlamePillar.cs index 96638efcbb..2620b657f9 100644 --- a/Projectiles/FlamePillar.cs +++ b/Projectiles/Magic/FlamePillar.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FlamePillar : ModProjectile { diff --git a/Projectiles/FlamePillar.png b/Projectiles/Magic/FlamePillar.png similarity index 100% rename from Projectiles/FlamePillar.png rename to Projectiles/Magic/FlamePillar.png diff --git a/Projectiles/FlamingPumpkin.cs b/Projectiles/Magic/FlamingPumpkin.cs similarity index 90% rename from Projectiles/FlamingPumpkin.cs rename to Projectiles/Magic/FlamingPumpkin.cs index 58f2ffe6d3..bda2b4c8ef 100644 --- a/Projectiles/FlamingPumpkin.cs +++ b/Projectiles/Magic/FlamingPumpkin.cs @@ -4,7 +4,7 @@ using Terraria; using Terraria.ModLoader; using Terraria.ID; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FlamingPumpkin : ModProjectile { diff --git a/Projectiles/FlamingPumpkin.png b/Projectiles/Magic/FlamingPumpkin.png similarity index 100% rename from Projectiles/FlamingPumpkin.png rename to Projectiles/Magic/FlamingPumpkin.png diff --git a/Projectiles/FlareBoltProjectile.cs b/Projectiles/Magic/FlareBoltProjectile.cs similarity index 96% rename from Projectiles/FlareBoltProjectile.cs rename to Projectiles/Magic/FlareBoltProjectile.cs index c3bcf592d7..5910da28b3 100644 --- a/Projectiles/FlareBoltProjectile.cs +++ b/Projectiles/Magic/FlareBoltProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FlareBoltProjectile : ModProjectile { diff --git a/Projectiles/FlareBoltProjectile.png b/Projectiles/Magic/FlareBoltProjectile.png similarity index 100% rename from Projectiles/FlareBoltProjectile.png rename to Projectiles/Magic/FlareBoltProjectile.png diff --git a/Projectiles/ForbiddenAxeBlade.cs b/Projectiles/Magic/ForbiddenAxeBlade.cs similarity index 94% rename from Projectiles/ForbiddenAxeBlade.cs rename to Projectiles/Magic/ForbiddenAxeBlade.cs index c87a6311c9..9911982998 100644 --- a/Projectiles/ForbiddenAxeBlade.cs +++ b/Projectiles/Magic/ForbiddenAxeBlade.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ForbiddenAxeBlade : ModProjectile { diff --git a/Projectiles/ForbiddenAxeBlade.png b/Projectiles/Magic/ForbiddenAxeBlade.png similarity index 100% rename from Projectiles/ForbiddenAxeBlade.png rename to Projectiles/Magic/ForbiddenAxeBlade.png diff --git a/Projectiles/ForbiddenSunProjectile.cs b/Projectiles/Magic/ForbiddenSunProjectile.cs similarity index 95% rename from Projectiles/ForbiddenSunProjectile.cs rename to Projectiles/Magic/ForbiddenSunProjectile.cs index e7979ac6ae..d4232fb6f3 100644 --- a/Projectiles/ForbiddenSunProjectile.cs +++ b/Projectiles/Magic/ForbiddenSunProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ForbiddenSunProjectile : ModProjectile { diff --git a/Projectiles/ForbiddenSunProjectile.png b/Projectiles/Magic/ForbiddenSunProjectile.png similarity index 100% rename from Projectiles/ForbiddenSunProjectile.png rename to Projectiles/Magic/ForbiddenSunProjectile.png diff --git a/Projectiles/ForbiddenSunburst.cs b/Projectiles/Magic/ForbiddenSunburst.cs similarity index 95% rename from Projectiles/ForbiddenSunburst.cs rename to Projectiles/Magic/ForbiddenSunburst.cs index bc0ca41a82..22055d6e4d 100644 --- a/Projectiles/ForbiddenSunburst.cs +++ b/Projectiles/Magic/ForbiddenSunburst.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class ForbiddenSunburst : ModProjectile { diff --git a/Projectiles/ForbiddenSunburst.png b/Projectiles/Magic/ForbiddenSunburst.png similarity index 100% rename from Projectiles/ForbiddenSunburst.png rename to Projectiles/Magic/ForbiddenSunburst.png diff --git a/Projectiles/FrigidflashBoltProjectile.cs b/Projectiles/Magic/FrigidflashBoltProjectile.cs similarity index 96% rename from Projectiles/FrigidflashBoltProjectile.cs rename to Projectiles/Magic/FrigidflashBoltProjectile.cs index e70b6acccd..d21e0d986d 100644 --- a/Projectiles/FrigidflashBoltProjectile.cs +++ b/Projectiles/Magic/FrigidflashBoltProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FrigidflashBoltProjectile : ModProjectile { diff --git a/Projectiles/FrigidflashBoltProjectile.png b/Projectiles/Magic/FrigidflashBoltProjectile.png similarity index 100% rename from Projectiles/FrigidflashBoltProjectile.png rename to Projectiles/Magic/FrigidflashBoltProjectile.png diff --git a/Projectiles/FrostBoltProjectile.cs b/Projectiles/Magic/FrostBoltProjectile.cs similarity index 96% rename from Projectiles/FrostBoltProjectile.cs rename to Projectiles/Magic/FrostBoltProjectile.cs index 6cb81117c7..a8f6283dbe 100644 --- a/Projectiles/FrostBoltProjectile.cs +++ b/Projectiles/Magic/FrostBoltProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class FrostBoltProjectile : ModProjectile { diff --git a/Projectiles/Magic/FrostBoltProjectile.png b/Projectiles/Magic/FrostBoltProjectile.png new file mode 100644 index 0000000000000000000000000000000000000000..ed4e3450c0fb14a63de0964a291230bf0eafdb6f GIT binary patch literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPdv!tM~y2=ZGkWoUOE{-7MMl}84{8%s8wrUPt=pI@_b!5>g|n$3ijaa(5Gf@@M@j`#5+jEg z(gvNHbY@IaA=5RA8Z(I)#kmvObg&tS;V{_m&`Gutc|{~7Ks|_zVe;_`G80- zA{Awq4T}>HYxCa=;WYD6wkwiUl+iIFuPtr>3WtI=Q6$ZXGIA^uk%V9Tk$KiuEdab- zK`ZV$X+xA{YnnM?BrQ2{)g@571%Nzne`cC1LrnYDAyFf*AnQLNN_M1P89aLq0#K4K z_j-0}DXE3LT_Kr2wvUuDOwI&TM5I*O=a&}jFO~JAxLoE@jiCsIL%IS443a?qBmh7B ze;w`_*6V6w78?1X?yt%to8;lplmM8W4>{~3lSHYsw=1MsNUb}r<*TB0?5hCqe}|=S z?uSMlCNfE4b!J-H;29qmrA1q5#I5`8L`B>Mua#9=0E1up1i(nR!QrTD7;e=p?e36D zP+T4r06(WQw0v4G`pkS9=o?INU+3w0B>?W;YSKv78fNqrQlXI@=ZKXWA{A}z`&`(* zLG#TT`J|%nQD=_;xB}M7=Mpr-y0|$E|11Y2D+pIslq$_gaZmS>;u1D=uy(Q6)Be2j_gGYPzcNf6eyZhs!E8 zWiT}_V4P{a#wjD<(|ZT!h%VHX0`O~jS!tJ$dpjW&z-L=(5Sk}IkAnqL7T++E-2S!CF}+Aa%IWtoR}5>RW(x6 z?oq8Nz-WQBl(5dHb!LNqRk^F)&~i<)Jz z{AiO=b=y#BlSC=O*rz$RxeC*u9{ImVG|PHzRbK16ocT4&Gd>>s-th7BeCmnBgWLlE w?A|W_^F~#bmCTDOuO`0*6GofkME?c=@(74pJEK?Y00000NkvXX1g=70f?A5Up#T5? delta 575 zcmV-F0>J&e9ON007YZ~81^@s6l6m99=*ijU#k2j~Mx7rVHY3Jxte^Z~@dB2vV`LYGcDsBk+ZC)^xw zL`9RB$y}qk-~G@1?|%gLbanGZ>3kG7pYJQ*pCF)1?29COYXAV6^$7sr{<|kaAu{$& ze^RMh_5*cDl`MKhjZ_W*kh?h7l91lhp(%C0kG@8+QpP51E#0x+&oACOBLG0TkhE6< zwpM`=9qdK%^c?Z@{D?GCb#bcEGd>-fM^<%<_7^9UYPC`Ikuw;(E>#xRVTi~P=tZOf zc^lnxlIUne?(8m=<86sy((|0+by||}e~F0X`svChajJ{YeB0AHcp^^nQu)xX{rs_{ zJ#U)ziCjk(Jds;nY{%0KiG;M`4&av+f+zCRrc$+pS!=J5xZ_nz0zf5g-xEpnQV^Xh zeJ2a>bH%K+J(&Rj;Ed^>4_+f)ZGI9>}$f1592 zJeY~ZeuUk;+L%A=DL!l`?z}2>`x+7=ErJ7a;fLdM;M8 zML4bH#$HGJr3`nc%XMBBX(GXrDW}#Mn)T7z?jbayot 0.2) - { - projectile.spriteDirection = -projectile.direction; - } - if (projectile.velocity.X < 0f) - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); - } - else - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); - } } public override void Kill(int timeLeft) diff --git a/Projectiles/Magic/Vehemence.png b/Projectiles/Magic/Vehemence.png new file mode 100644 index 0000000000000000000000000000000000000000..940cd6a11024b377b0dc01c089fd809012db757a GIT binary patch literal 1138 zcmV-&1daQ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arity index 95% rename from Projectiles/VenusianBolt.cs rename to Projectiles/Magic/VenusianBolt.cs index f8671ad033..8d7246d5a8 100644 --- a/Projectiles/VenusianBolt.cs +++ b/Projectiles/Magic/VenusianBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class VenusianBolt : ModProjectile { diff --git a/Projectiles/VenusianBolt.png b/Projectiles/Magic/VenusianBolt.png similarity index 100% rename from Projectiles/VenusianBolt.png rename to Projectiles/Magic/VenusianBolt.png diff --git a/Projectiles/VenusianExplosion.cs b/Projectiles/Magic/VenusianExplosion.cs similarity index 95% rename from Projectiles/VenusianExplosion.cs rename to Projectiles/Magic/VenusianExplosion.cs index ce1c501150..13b8f59ef3 100644 --- a/Projectiles/VenusianExplosion.cs +++ b/Projectiles/Magic/VenusianExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class VenusianExplosion : ModProjectile { diff --git a/Projectiles/VenusianExplosion.png b/Projectiles/Magic/VenusianExplosion.png similarity index 100% rename from Projectiles/VenusianExplosion.png rename to Projectiles/Magic/VenusianExplosion.png diff --git a/Projectiles/VenusianFlame.cs b/Projectiles/Magic/VenusianFlame.cs similarity index 95% rename from Projectiles/VenusianFlame.cs rename to Projectiles/Magic/VenusianFlame.cs index 76ac811aa7..a28b8310ea 100644 --- a/Projectiles/VenusianFlame.cs +++ b/Projectiles/Magic/VenusianFlame.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class VenusianFlame : ModProjectile { diff --git a/Projectiles/VenusianFlame.png b/Projectiles/Magic/VenusianFlame.png similarity index 100% rename from Projectiles/VenusianFlame.png rename to Projectiles/Magic/VenusianFlame.png diff --git a/Projectiles/Viscera.cs b/Projectiles/Magic/Viscera.cs similarity index 86% rename from Projectiles/Viscera.cs rename to Projectiles/Magic/Viscera.cs index 04c5ffb7be..3715a5b36e 100644 --- a/Projectiles/Viscera.cs +++ b/Projectiles/Magic/Viscera.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class Viscera : ModProjectile { @@ -54,14 +54,10 @@ namespace CalamityMod.Projectiles public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - if (target.type == NPCID.TargetDummy) + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { return; } - if (target.type == mod.NPCType("DevourerofGodsBody") || target.type == mod.NPCType("DevourerofGodsBodyS")) - { - healAmt *= 0.4f; - } healAmt *= 1.4f; Player player = Main.player[projectile.owner]; player.statLife += (int)healAmt; diff --git a/Projectiles/Viscera.png b/Projectiles/Magic/Viscera.png similarity index 100% rename from Projectiles/Viscera.png rename to Projectiles/Magic/Viscera.png diff --git a/Projectiles/VividBolt.cs b/Projectiles/Magic/VividBolt.cs similarity index 94% rename from Projectiles/VividBolt.cs rename to Projectiles/Magic/VividBolt.cs index c49ec3f18a..9ee9e59142 100644 --- a/Projectiles/VividBolt.cs +++ b/Projectiles/Magic/VividBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class VividBolt : ModProjectile { diff --git a/Projectiles/VividBolt.png b/Projectiles/Magic/VividBolt.png similarity index 100% rename from Projectiles/VividBolt.png rename to Projectiles/Magic/VividBolt.png diff --git a/Projectiles/VividClarity.cs b/Projectiles/Magic/VividClarity.cs similarity index 95% rename from Projectiles/VividClarity.cs rename to Projectiles/Magic/VividClarity.cs index b3b6fef941..deb8fecea1 100644 --- a/Projectiles/VividClarity.cs +++ b/Projectiles/Magic/VividClarity.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class VividClarity : ModProjectile { diff --git a/Projectiles/VividClarity.png b/Projectiles/Magic/VividClarity.png similarity index 100% rename from Projectiles/VividClarity.png rename to Projectiles/Magic/VividClarity.png diff --git a/Projectiles/VividOrb.cs b/Projectiles/Magic/VividOrb.cs similarity index 95% rename from Projectiles/VividOrb.cs rename to Projectiles/Magic/VividOrb.cs index c91def5c3e..ae85f59311 100644 --- a/Projectiles/VividOrb.cs +++ b/Projectiles/Magic/VividOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class VividOrb : ModProjectile { diff --git a/Projectiles/VividOrb.png b/Projectiles/Magic/VividOrb.png similarity index 100% rename from Projectiles/VividOrb.png rename to Projectiles/Magic/VividOrb.png diff --git a/Projectiles/Vortex.cs b/Projectiles/Magic/Vortex.cs similarity index 95% rename from Projectiles/Vortex.cs rename to Projectiles/Magic/Vortex.cs index cd9ae15dbe..2ad98d3bc6 100644 --- a/Projectiles/Vortex.cs +++ b/Projectiles/Magic/Vortex.cs @@ -7,7 +7,7 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class Vortex : ModProjectile { @@ -21,8 +21,8 @@ namespace CalamityMod.Projectiles public override void SetDefaults() { - projectile.width = 30; - projectile.height = 30; + projectile.width = 60; + projectile.height = 60; projectile.alpha = 255; projectile.friendly = true; projectile.magic = true; diff --git a/Projectiles/Vortex.png b/Projectiles/Magic/Vortex.png similarity index 100% rename from Projectiles/Vortex.png rename to Projectiles/Magic/Vortex.png diff --git a/Projectiles/WaterStream.cs b/Projectiles/Magic/WaterStream.cs similarity index 95% rename from Projectiles/WaterStream.cs rename to Projectiles/Magic/WaterStream.cs index 49b8be8c33..e19a9a983b 100644 --- a/Projectiles/WaterStream.cs +++ b/Projectiles/Magic/WaterStream.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class WaterStream : ModProjectile { diff --git a/Projectiles/WaterStream.png b/Projectiles/Magic/WaterStream.png similarity index 100% rename from Projectiles/WaterStream.png rename to Projectiles/Magic/WaterStream.png diff --git a/Projectiles/WaterStream2.cs b/Projectiles/Magic/WaterStream2.cs similarity index 95% rename from Projectiles/WaterStream2.cs rename to Projectiles/Magic/WaterStream2.cs index 33cf652eaa..f082b0c584 100644 --- a/Projectiles/WaterStream2.cs +++ b/Projectiles/Magic/WaterStream2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class WaterStream2 : ModProjectile { diff --git a/Projectiles/WaterStream2.png b/Projectiles/Magic/WaterStream2.png similarity index 100% rename from Projectiles/WaterStream2.png rename to Projectiles/Magic/WaterStream2.png diff --git a/Projectiles/WhiteFlame.cs b/Projectiles/Magic/WhiteFlame.cs similarity index 95% rename from Projectiles/WhiteFlame.cs rename to Projectiles/Magic/WhiteFlame.cs index aa20b41957..a3be4dbd33 100644 --- a/Projectiles/WhiteFlame.cs +++ b/Projectiles/Magic/WhiteFlame.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class WhiteFlame : ModProjectile { @@ -35,7 +35,6 @@ namespace CalamityMod.Projectiles Main.dust[num458].velocity *= 0.5f; Main.dust[num458].velocity += projectile.velocity * 0.1f; } - return; } public override void Kill(int timeLeft) diff --git a/Projectiles/WhiteFlame.png b/Projectiles/Magic/WhiteFlame.png similarity index 100% rename from Projectiles/WhiteFlame.png rename to Projectiles/Magic/WhiteFlame.png diff --git a/Projectiles/WhiteFlame2.cs b/Projectiles/Magic/WhiteFlame2.cs similarity index 92% rename from Projectiles/WhiteFlame2.cs rename to Projectiles/Magic/WhiteFlame2.cs index f81b0cb4bc..0e5e7a6bdb 100644 --- a/Projectiles/WhiteFlame2.cs +++ b/Projectiles/Magic/WhiteFlame2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class WhiteFlame2 : ModProjectile { @@ -24,7 +24,9 @@ namespace CalamityMod.Projectiles projectile.ignoreWater = true; projectile.tileCollide = false; projectile.penetrate = 3; - projectile.timeLeft = 120; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 1; + projectile.timeLeft = 120; projectile.magic = true; } @@ -71,14 +73,11 @@ namespace CalamityMod.Projectiles num485 *= num486; projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; - return; } - return; } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - target.immune[projectile.owner] = 1; target.AddBuff(mod.BuffType("HolyLight"), 360); } } diff --git a/Projectiles/WhiteFlame2.png b/Projectiles/Magic/WhiteFlame2.png similarity index 100% rename from Projectiles/WhiteFlame2.png rename to Projectiles/Magic/WhiteFlame2.png diff --git a/Projectiles/WintersFury.cs b/Projectiles/Magic/WintersFury.cs similarity index 94% rename from Projectiles/WintersFury.cs rename to Projectiles/Magic/WintersFury.cs index c13a9b75db..b1b73e0d82 100644 --- a/Projectiles/WintersFury.cs +++ b/Projectiles/Magic/WintersFury.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class WintersFury : ModProjectile { diff --git a/Projectiles/WintersFury.png b/Projectiles/Magic/WintersFury.png similarity index 100% rename from Projectiles/WintersFury.png rename to Projectiles/Magic/WintersFury.png diff --git a/Projectiles/WulfrumBolt.cs b/Projectiles/Magic/WulfrumBolt.cs similarity index 95% rename from Projectiles/WulfrumBolt.cs rename to Projectiles/Magic/WulfrumBolt.cs index 56362f857c..30d125fa42 100644 --- a/Projectiles/WulfrumBolt.cs +++ b/Projectiles/Magic/WulfrumBolt.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class WulfrumBolt : ModProjectile { diff --git a/Projectiles/WulfrumBolt.png b/Projectiles/Magic/WulfrumBolt.png similarity index 100% rename from Projectiles/WulfrumBolt.png rename to Projectiles/Magic/WulfrumBolt.png diff --git a/Projectiles/YharimsCrystal.cs b/Projectiles/Magic/YharimsCrystal.cs similarity index 95% rename from Projectiles/YharimsCrystal.cs rename to Projectiles/Magic/YharimsCrystal.cs index d21985d701..7be33bcd73 100644 --- a/Projectiles/YharimsCrystal.cs +++ b/Projectiles/Magic/YharimsCrystal.cs @@ -7,14 +7,14 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Enums; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class YharimsCrystal : ModProjectile { public override void SetStaticDefaults() { DisplayName.SetDefault("Crystal"); - Main.projFrames[projectile.type] = 4; + Main.projFrames[projectile.type] = 6; } public override void SetDefaults() @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles if (projectile.frameCounter >= num28) { projectile.frameCounter = 0; - if (++projectile.frame >= 4) + if (++projectile.frame >= 6) { projectile.frame = 0; } diff --git a/Projectiles/Magic/YharimsCrystal.png b/Projectiles/Magic/YharimsCrystal.png new file mode 100644 index 0000000000000000000000000000000000000000..61704a186937f32f7a0b33e1e41f30fac3eaec29 GIT binary patch literal 4020 zcmYM1cT^K?x5dFoQF@a=C?ZXI0tOHeUg;oWp@kk2no+<|Lnoj}NkEVi=^$N@BGQ`@ zLXo1$Kd=JzRARMp}x)2V6mrCz!%VsP?GXdctD^tR5`#D~BEOSX`n@z2YArqD39Suq{ z3APmP7xI@`5xTx=ln?xz7S$*{TKj^!+63b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hLtg=qYpNXi72xbR^(B#i3SjEtf`^GuEckfz+5MS0g?- z-;@N+amre>u0El>`#Uqa+SWxmaJCpM3OES&bHQAJfq@iXHJDk<-jDd4fIwzl2g=o& zT$Yr@zqX)|9MTdT*8Gupt$aHq{T@`L`wAOx`j18H>AdlVwniM?!S{QBE;(gWDYRx$ z{0*=XNCXV~SD?;nGtrmheuG<;4K*=2BL|8o{Hbtn&K$kT)6ha-8mBSRGu3^gjg0&+ D0rjd? literal 0 HcmV?d00001 diff --git a/Projectiles/YharimsCrystalBeam.cs b/Projectiles/Magic/YharimsCrystalBeam.cs similarity index 97% rename from Projectiles/YharimsCrystalBeam.cs rename to Projectiles/Magic/YharimsCrystalBeam.cs index b824acd62e..55d6886bda 100644 --- a/Projectiles/YharimsCrystalBeam.cs +++ b/Projectiles/Magic/YharimsCrystalBeam.cs @@ -9,7 +9,7 @@ using Terraria.Enums; using Terraria.GameContent.Shaders; using Terraria.Graphics.Effects; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Magic { public class YharimsCrystalBeam : ModProjectile { diff --git a/Projectiles/YharimsCrystalBeam.png b/Projectiles/Magic/YharimsCrystalBeam.png similarity index 100% rename from Projectiles/YharimsCrystalBeam.png rename to Projectiles/Magic/YharimsCrystalBeam.png diff --git a/Projectiles/MagicIceBeam.cs b/Projectiles/MagicIceBeam.cs deleted file mode 100644 index 9d6f4097ec..0000000000 --- a/Projectiles/MagicIceBeam.cs +++ /dev/null @@ -1,82 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles -{ - public class MagicIceBeam : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Beam"); - } - - public override void SetDefaults() - { - projectile.width = 4; - projectile.height = 4; - projectile.friendly = true; - projectile.ignoreWater = true; - projectile.magic = true; - projectile.alpha = 255; - projectile.penetrate = -1; - projectile.tileCollide = false; - projectile.extraUpdates = 5; - projectile.timeLeft = 200; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 4; - } - - public override void AI() - { - if (projectile.ai[1] == 0f) - { - projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); - } - if (projectile.alpha > 0) - { - projectile.alpha -= 10; - } - if (projectile.alpha < 0) - { - projectile.alpha = 0; - } - Lighting.AddLight(projectile.Center, 0.1f, 0.1f, 0.6f); - for (int num121 = 0; num121 < 5; num121++) - { - Dust dust4 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, 56, projectile.velocity.X, projectile.velocity.Y, 100, default(Color), 1f)]; - dust4.velocity = Vector2.Zero; - dust4.position -= projectile.velocity / 5f * (float)num121; - dust4.noGravity = true; - dust4.scale = 0.8f; - dust4.noLight = true; - } - if (projectile.light > 0f) - { - float num = projectile.light; - float num2 = projectile.light; - float num3 = projectile.light; - num2 *= 0.1f; - num *= 0.5f; - } - } - - public override Color? GetAlpha(Color lightColor) - { - if (projectile.alpha > 200) - { - return Color.Transparent; - } - return new Color(255 - projectile.alpha, 255 - projectile.alpha, 255 - projectile.alpha, 0); - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(BuffID.Frostburn, 500); - } - } -} \ No newline at end of file diff --git a/Projectiles/MagicIceBeam.png b/Projectiles/MagicIceBeam.png deleted file mode 100644 index 15e877573779272f931ab67d818cf9f2b8911a17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 135 zcmeAS@N?(olHy`uVBq!ia0vp^EFjFm1|(O0oL2{=*pj^6T^Rm@;DWu&Cj&(|3p^r= z85sBugD~Uq{1qucLG}_)Usv`AZ0utE^0#a@0p%D(JY5_^IIbuE`TyUZ*(f2&fw_g1 Y;aDFttLt^E7eILiPgg&ebxsLQ0Jwf72LJ#7 diff --git a/Projectiles/MechwormBody.png b/Projectiles/MechwormBody.png deleted file mode 100644 index eee4c5f9dcf76662d9a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pV6G>%Iew*=ewk<7pef)8fS{uk?9-2%4#CvsdGx8vkN>zqt3?Z7!4X0RbL49C z+@qI1nM1yDg1QzgR4->QsK-fp3 zHg~=3<>wE|9I)DK7$)eJAY-+;pnLiB`DG4RZ8jV}XeFfYy76%cz(`QFIlg^*^!e#$ zu0_#+c=(_Ua?w8#dyUoR`1a}H@#CMl7DdA_K`lbg83@2w&8V8&Pu(rwMbWUea5q7x Zv)`znm)S~IN~{0?002ovPDHLkV1n=bY)SwC diff --git a/Projectiles/MechwormTail.png b/Projectiles/MechwormTail.png deleted file mode 100644 index 678fe7867aa027589115c125b09b1e57178f44dc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 614 zcmV-s0-61ZP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E-^PVZl7ZS00GuXL_t(oN7a?PE<|Azh0oI{h)OrflnM#) z0O+PrP^okZrG`RcqMS-drlis$QE6yAi5Quk{T;H7opT#=emhykzI}V;{4QBpEH7;CdS3M$7XU6oC1JWEZzi@tKBG(q4p`e-7jAML}Z?&srRFd1VC(nZzU%8`jD#27jK-*%^h&pqzDo$pB2ShPT0 z0X*5~-LnZ}(+OnJ}WF&pi9^;8W*5^>mFfs0~D2{{?aI zWB%XYz4)f_6(*gg{EBrF(C#SDZN=~17<1{Kh`F#!665r97n zJR!Na^I*U6lO}JBPhDn=&?nSTWAOjKu?Rrj$7%=r@ZeYGGMJn(VpbsL*@st`lLw2* z86y;27ua?`jJDvm`=tS}F1YDle)#>839un+#*pmqtf>UxnFpsC03H4w0It{F z0-(fy9e}qFtcl3(h#@`A|3F5h9dyE^C=(@BEjF?-PsZMr2h`R3lOisjuqelR0CoGY zJ-{PAn0hvz1fa4#0KlQ9t6>q=34KxX-GKLbJ?jO+vFm1k)!cLgAm>H`0I}N_JNEO4 zyGclg$aHEKF45s?Fpm%qFwzYJz-&~HtCRPL>l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{H3u*Bf@r<^By}hU_&?38Gz46tvO^>*c*2%|b%{Ku$Yfn2GkXSDkJ7ZMM zEPx^|q(wS8k&sTEo?`$s*Ht<8zgzN%%X}VZ{evB19tg&?NUEOi@(B>Ej?SDl*A{zj zdPtyZ0{yL%M|_b?K_U=qnCKvF|{HR;(Dx0elBZuy}Fr!BJM_hYUUhU z-8>}5Z5}aH(vL4t9utVDS2PoE&lqc~ROqoTlGv6v7Wzs_f72o4x9{F+LjTb`aZQ_h!^)~_cyxUD4@o=SkKwhS*v85)B2B2(zmCX|(m5?oX%BsEjy8t*_ hdjl9cVO>#6{9i(e_2}kG>RA8)002ovPDHLkV1lq?XORE^ literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/EradicatorMeleeProjectileGlow.png b/Projectiles/Melee/EradicatorMeleeProjectileGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..152b9ce5ae0586fe19d1d41d25d347115501e74f GIT binary patch literal 1381 zcmV-r1)BPaP)QMupowu(3WB=Ub7Ywjl^4G+oWFF)E8?|lfG!8zWLyjPd@mjCan)f zBe8vH(?;z>L*lhfo0LklS{e&TK?(%9v&(I_9UsmfmO0Ka%mSr4`+pkF%zWp}{=UmO zGY7#c_0gWA05lYZ00`CO0FYml1;EK4|1tpH*t|6*`-ghE0NDHZT>@ZcA`ZYqo) z6Jr3pb?PNob~92M&Hq5c?F~9%N~DRl?okuj%xAOKWPrMEd?Se~PiUx33_y0jVh>0Y zcT)V#3jlOQBLK7x53Pu>PH6AGY5`DHm2bMPzkddRlPCIId5&&>=Y!<}pmxd+K-R~N zmiMKJ+ewjLBE#xBooHo7E&!dK(|~gpwyO?xbpZgb-<$)SJwkbaC>H|27?i`+$)}0y zaw5H$Rf|F<8>!Y+C%LUAiagpgD)MRKx|R^PBwg&w769Y11=D?NP1;T?^#G-=XhZ7?SmOJhq@`ch|GP)yS?Y)cOkqz@eTl6L~f7P&vu7 z#BC{^fB7^3Z4+Y#Kp<1bbnmR3VTH1-o#m7E50>xHmj^(wq+IsXe!|^|9i+#8LvhID znQh}^Y2ubrznrcMW0Lrn=MK8+sJ`N%x~0-r7WN>W)TCv979; zXNfy5npazw73u15JpiXq9ko1vx%WH(Mr;;;RA?o;NfjXKW41?c;?XqK=Qr0dW))O=Tu4W ze)v5AA}+`0UE(Lvd{jVCCTJo%bs``ncL zK7Yd}8D_?A8URb4%TnGYt`78A_xDYkVqIm;wVJuP{Yu)DJTz6AcrY7)!rw*#`19bs z0OX9!E^E)b#8oU$ZZEcs^|G@A20+;Zr2-&a{TYzV0UI!P7Xa~m>8x2ZaRZX1mF7$H zmNnv8;)|JY+u>vSIRoJRr)mIr_q$#onG2K$^i0Sdi|ge9Dz`+d1EzMBgOq13ktv)1 z@%oFFcGJX_6#4tg 85) + { + projectile.velocity *= 1.05f; + } + if (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y) > 0f && projectile.timeLeft <= 85) + { + projectile.velocity *= 0.98f; + } + projectile.rotation += (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y)) * 0.02f; + if (Main.rand.Next(8) == 0) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, (Main.rand.Next(3) == 0 ? 56 : 242), projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + projectile.tileCollide = false; + if (projectile.timeLeft > 85) + { + projectile.timeLeft = 85; + } + return false; + } + + public override Color? GetAlpha(Color lightColor) + { + if (projectile.timeLeft < 85) + { + byte b2 = (byte)(projectile.timeLeft * 3); + byte a2 = (byte)(100f * ((float)b2 / 255f)); + return new Color((int)b2, (int)b2, (int)b2, (int)a2); + } + return default(Color); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Color color = default(Color); + if (projectile.timeLeft < 85) + { + byte b2 = (byte)(projectile.timeLeft * 3); + byte a2 = (byte)(100f * ((float)b2 / 255f)); + color = new Color((int)b2, (int)b2, (int)b2, (int)a2); + } + else + { + color = new Color(255, 255, 255, 100); + } + Vector2 origin = new Vector2(39f, 46f); + spriteBatch.Draw(mod.GetTexture("Projectiles/Melee/ExcelsusGlow"), projectile.Center - Main.screenPosition, null, color, projectile.rotation, origin, projectile.scale, SpriteEffects.None, 0f); + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (projectile.timeLeft > 85) + { + projectile.timeLeft = 85; + } + target.AddBuff(BuffID.Frostburn, 600); + } + } +} \ No newline at end of file diff --git a/Projectiles/Melee/Excelsus.png b/Projectiles/Melee/Excelsus.png new file mode 100644 index 0000000000000000000000000000000000000000..15e7b947e2d3092610c3bc6dae1927508edf10d8 GIT binary patch literal 1988 zcmV;#2RrzQP) zTWnNC7=XV+3-m(i1#D2xb6!84laMycYbYaiw98K)&e-=tQog4Zf5300FHL_Mgf)- zWciNYTKxtvXkKkwi!atW<187s#$~3d@UEL?LdJKIsa=3G&YE#&oMh8<&p)8p*U}yL z{157m1F(KWIRIIQ)PI>X&XRFwoGF_gYX3U!`7*9s&n5tN{`gN6oN?BS8{@XD+yOvN z+9UvGX7&wvzKq{wJSRwYb;emTZj2K;`ulu!H>rl`=%xv2_q(i`6l2~viEYIhnE=%H zoC5~OXQpf#gfq^PF>hQ&UI8#z-H_NO#@XVGvt-N~cVYcL0RBCvVw%2sB{KqBoN<EMnZtsW5w2fb>>c_^1hc;3F_xiuN0662U8TBjqVGWb2g%}YwrUh~M zolU;iTelnqoN?BSx)>K|SiUms_6^tgt}~e?Sutp)(D(cr04BZnsqZ?Shn8LIR`QeK ziW#SyRZyb3hO+Y1Ey-$<$uPlWnrY2IM`j8yE-wLKbB%hvt{{Fk?VjqgYEq;utI8bG zD^ou!sl*PLrDaDG!<{t+J;s@`sq0osl9U?y^s3PJU-L=iJ}#N@(^To1rIukN>}Syi6%+SGoB?Z2$G`dnw6C85W0 zvg=OvLP-~QZR^>T8fIE2l`I@I=e_NLxgNmzTxHx3b?pHB`P{06?!y^piP1QH-Sg~) zegHl@+2Auw@8V9@u&^DGx?y3ny>Lm^_rMvKG6syhtY;&JzCS<+YgpLc4HGg~l{JS% z=fD!%9$mB018B`s72c*UH5za+F2#8A{4~L2m>|3Df($cVFQ%FdG#RENCdn$-s<)SU z06jS>>$jX%w)c>faqH!*rZ+mW1wBO4hWW7ETbm^(Q<7mm79M zGfdVVI_Ij2Zr^mZjyt`k0f4Ig8^e8(VZs?_iP1R8qLM9J`c%Kz@y@=4OxrhKnRcW! zEv{)Y9_!TJFaNLG1DHH74}deVIp>s!8i%FYFdb){B}U`)aaqBn^w@Y!U80ZE^sb+m zyZ=&M+GT#zB%6w9LT-r~f6ZSw4S>puBDu~3cx2O4LEj~%IO8lCFiys4aqt-Ol`K}?f<09B3czT*SNRL1WjGSPJT zTch#`6|MrDBCp*}n-u@4`&q^%L8BJs8{vk$*((C?4sGY^rg_S@J)) W$wAnG&;j890000 85) + { + projectile.velocity *= 1.05f; + } + if (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y) > 0f && projectile.timeLeft <= 85) + { + projectile.velocity *= 0.98f; + } + projectile.rotation += (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y)) * 0.02f; + if (Main.rand.Next(8) == 0) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 56, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + projectile.tileCollide = false; + if (projectile.timeLeft > 85) + { + projectile.timeLeft = 85; + } + return false; + } + + public override Color? GetAlpha(Color lightColor) + { + if (projectile.timeLeft < 85) + { + byte b2 = (byte)(projectile.timeLeft * 3); + byte a2 = (byte)(100f * ((float)b2 / 255f)); + return new Color((int)b2, (int)b2, (int)b2, (int)a2); + } + return default(Color); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Color color = default(Color); + if (projectile.timeLeft < 85) + { + byte b2 = (byte)(projectile.timeLeft * 3); + byte a2 = (byte)(100f * ((float)b2 / 255f)); + color = new Color((int)b2, (int)b2, (int)b2, (int)a2); + } + else + { + color = new Color(255, 255, 255, 100); + } + Vector2 origin = new Vector2(39f, 46f); + spriteBatch.Draw(mod.GetTexture("Projectiles/Melee/ExcelsusBlueGlow"), projectile.Center - Main.screenPosition, null, color, projectile.rotation, origin, projectile.scale, SpriteEffects.None, 0f); + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (projectile.timeLeft > 85) + { + projectile.timeLeft = 85; + } + target.AddBuff(BuffID.Frostburn, 600); + } + } +} \ No newline at end of file diff --git a/Projectiles/Melee/ExcelsusBlue.png b/Projectiles/Melee/ExcelsusBlue.png new file mode 100644 index 0000000000000000000000000000000000000000..1bb0363ed5a889e856a3ac264f6071b79fb9c7c1 GIT binary patch literal 1831 zcmV+?2iW+DP) zOK4nG7=XXq-aMK|Cv8KdrKB%QAGRQ^5tOLVx)H>M+Koy<=|&Wrt%6b%>Q1T%MJQ4P z-4wbI#f^5M0T;Hl)GDntttlm?(=qSKW71??ocqt@p3KReIWw7CCgGxvtMnSAq~ z|NQ?sHy+EJeeZq=K)SOvs~z&@Ke_hiq0qqw4u zYKT6X>ZS?D4{QRQan|_WhT8t@B(`M|^#Ih5WPp5rW*SYSsO?W}390$HYPwU!aH(!c zY!l;bamHCvv&QW>c?N*Y$TR?Ht$UT95!m63v!v#X6Vrs5L_?@U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z>ctJ!g_6;^`E!-y?l^nH+yxkc7<%i;o$7qO>YEhTG{GC^NNnRI#-*DR0CeiyaC|~P z>dNcoKVMn%lb26?tiLM&xYMMLC;dz@spEnf^CVM{T-5$1*oeuw4mBT4Osm+O99N@i z!_BO5yh`!LITAZ_kX?6D@5<}ZspV=WmSN?p8Br@D?VMBIm(k~wZ$R#Ykytse^hFo+ zs-`nTDn|MkS0y5ivonM`-A(E|KWrFgui}ntSk(E@F)OL-V1ms2yXCyPvmduRW@E20 z@y1n&<;=l0EUTZlE3#Aj)&ADyu9Kc;&FoE;tog?swUT2hH(g5BspIH1BP~}l#>{`P zO~t0D&c0yx41VzZLjk}34=o#!wqOrat%kC)5t-RyE3w>*~r?ZE}7_&EsT+Wu-CA#vA8IaOA{mvF1NfY}6>~ zIy%N>y`!j&H_nme7`LcL8`*JEuVaHeN-nwTUPKnFJL~FrGHTk4YSVUaZvtSat|-gu z@ZnF?K2phvZ|RtN@%`bdW(qdmI7ggw)nHNW^GrE1TAX1BYg0FcP!0)XxR z7zUu>W;T{#k`pI&f7ErA(t7d6ITC5ykH7OK0N3`YI!QRCay>CanCnujda`>}wL$iG z3U-HGXuUES05tw@wq(y>>%R5?K>F>s-&bbV$}k&moFkE)d@)T}Y)h&bB=fSxC1sMH z>1TJh6#%C6``a#!mo!b*e%Pj^bhSm+j`SbyGWL@```e#X@N39^~c#&Awphv|AkMB~QcwO%k4jfe-^|MQ=Q1-LKUB>Zb zb^5)AH_nk|{y90oPx4{P5GiM6N#Hkc#a_>bHN1GfNZ)~^>CqYTpf1P04pNtyeF+-rE_90~3J9VjZ6$*w=U175Ft6;T!0 z34IUB5^HZ`aj(TT!5imD(D(XjBes?64*lY9s>^ihpsG?7tpYddY;yP0YE@*bjW^Db Z{{ubq7#&Lk_ox5>002ovPDHLkV1mTKzK8$- literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/ExcelsusGlow.png b/Projectiles/Melee/ExcelsusGlow.png new file mode 100644 index 0000000000000000000000000000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l)6_*wvcvlWGLm6Vzjfa&ni-~CbQ-9<9Tv3B?@ zHg29}>GRW6=?GKlYP}uWQrq?V=QBI=={C*=C~{sb35$(wSRq^H>P6l1 ziSwwSlF$}2pX{QqYn<2b^ojRzKRv-spsxF@%@^`YvLz?o(8p-qM1UHjCz5IAvbH{Jp8)N`( zBF{PQEh5YwNjw*lg%((f#C$jR-D8H8ycRSDDH!%$6; zF{M;?v~ zIjKo#Tc1o3T^UZ7C(fhN5|>otR~cm3wmjvkDIyVm zbHtpT{n_w;C1dzhwy`~F_QTj-R4wt>>PG2eZD^`Uxd!V_kx!gQO?lN6gsBWNmPBN# z=xVP#qo_GzPJ{m`+-(6I?~ypH{HSbi*dkB<`_M(&+J}}}0EZ?e75QFMg>k(1qOr_> zn|YK^oJW0B9A|n*Cysk%WvvYm_>O#3r?YokT^7KuYRBtVPwNfX09ziMR?V;h9(8Th z`q|p@)cxAqEuT1#vS#w0=~neAX?t^}n(^Dtb~7H^Aa%BKhnOYdX-@&NBC7(Et3TlN{|7VNJ{bU!Fdqwj8D`rJCi5MX$Dz@?cna(5)X?L3ZF4r6t zbpLmtbhgZ@lblmm|JlyG+Ocw(DH&@>U6Jj*uhf|i%JFo9cbaX}E}c)DM+My-cU@hl z&)2A|lQ}pgENT5F0Ar2jTB@x6F=LiD@}6|5ZgoX=zU33=QU3>+4lc{4EwecQ0000< KMNUMnLSTZORfS{# literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/ExcelsusPink.cs b/Projectiles/Melee/ExcelsusPink.cs new file mode 100644 index 0000000000..44bcafdd89 --- /dev/null +++ b/Projectiles/Melee/ExcelsusPink.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Melee +{ + public class ExcelsusPink : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Excelsus"); + } + + public override void SetDefaults() + { + projectile.width = 34; + projectile.height = 34; + projectile.friendly = true; + projectile.melee = true; + projectile.ignoreWater = true; + projectile.penetrate = 3; + projectile.timeLeft = 300; + projectile.alpha = 100; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 5; + } + + public override void AI() + { + if (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y) < 24f && projectile.timeLeft > 85) + { + projectile.velocity *= 1.05f; + } + if (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y) > 0f && projectile.timeLeft <= 85) + { + projectile.velocity *= 0.98f; + } + projectile.rotation += (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y)) * 0.02f; + if (Main.rand.Next(8) == 0) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 242, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + projectile.tileCollide = false; + if (projectile.timeLeft > 85) + { + projectile.timeLeft = 85; + } + return false; + } + + public override Color? GetAlpha(Color lightColor) + { + if (projectile.timeLeft < 85) + { + byte b2 = (byte)(projectile.timeLeft * 3); + byte a2 = (byte)(100f * ((float)b2 / 255f)); + return new Color((int)b2, (int)b2, (int)b2, (int)a2); + } + return default(Color); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Color color = default(Color); + if (projectile.timeLeft < 85) + { + byte b2 = (byte)(projectile.timeLeft * 3); + byte a2 = (byte)(100f * ((float)b2 / 255f)); + color = new Color((int)b2, (int)b2, (int)b2, (int)a2); + } + else + { + color = new Color(255, 255, 255, 100); + } + Vector2 origin = new Vector2(39f, 46f); + spriteBatch.Draw(mod.GetTexture("Projectiles/Melee/ExcelsusPinkGlow"), projectile.Center - Main.screenPosition, null, color, projectile.rotation, origin, projectile.scale, SpriteEffects.None, 0f); + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (projectile.timeLeft > 85) + { + projectile.timeLeft = 85; + } + target.AddBuff(BuffID.Frostburn, 600); + } + } +} \ No newline at end of file diff --git a/Projectiles/Melee/ExcelsusPink.png b/Projectiles/Melee/ExcelsusPink.png new file mode 100644 index 0000000000000000000000000000000000000000..997a611ea04e6c60e269fa71a493325cb2b8ba07 GIT binary patch literal 1760 zcmV<61|Ru}P) z&2Lmy6u^J4^Z1xjhPEnSjU`A+h=~{>B}ybFF3<&r=*FO!xX=wr`2$Q`5EC~pjF7O= zg$V=~E)0Go%ECxAm@qK}7KBJgB2cIWrloW!425xV=XClm@Akd9Z$6so{q3gnX690U zJ?GwY&wb;u!1;6U&j1W`b(gfKyx9-@L)!vRw$*i1EsPg^No(`d+us9_D@>LE_O0&= zJU>*J^Z-tbjsUR#$9Di{oHc&42hePCg~`C<_y0Nvz}H(h18`z=qy#X~*&X=nbjDe- zU}N0g?Oy?~Y55WWGK*3rfG;n71HhSAKMq`<9m{(F+3`H!jI(CJ#<-sJA^{)JyZ0V?KY$Mb<$=Zv#t!5WuNsqn6wW&+ zoKT$3-wnO~@TDOD2KR3Qp#7}+BX!1E;tzCoH+u{X#gt9Y-aa0Bz0B(dIRL3af$IuWYmM>2&2B0Thob!5_zsY<~knHM=v&8T3U*7C7G?Y6Ji-EeER6}%h z(}dI;E~_TO_tv)d?@nUd+NEg#uHBmgD)Tc_HjSdSe`|H5<=3h*PnGJ1#5OU`7H6C# zEoA()XX?|8M&Nxf_(zQp;9z!Bzo+jB- zVp^?C`*8i9(4RZwEb%X1ywmJ4RE2IBPpC?6Hg_wu_akXc)8Fsm57U4%&Kf`e@BLrzI%xc@1jVnnU7r&L1(S#dbyEb*lmV!lwVVS>pt$%@sk6inIl%~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5IQq7HJzS<0*AJabQV}^_vx^kRjwlY?Y-S$H6v-az=zDXE%i!I#1UsHKT3*Dg_r9N wDM?ykjh@%0C(LMv{Dnf}~ z(1Z$#YEnfbY^&{Vx4RvOH@|M**x9lDw`)4z%gnr)_vY<>_V?%g-Wn{in&La<)XaCk zp|aWl7)Xu-&^!EgPVcFhQ?LI(!BS7)YI_R+-R}|rbPV>JkRyjhxL9&NvBlD*?oR+* zJJ+TfuB(HPtBr&WfX4NW0Awnrwf+M`{dvdri7m9Efsg_4VSK~{ICZfLa3+@tPTPkt z3XShsVg*0-VoKs!Wkmph}d zHL-O7>}uNwXv7N2CpKR-)Nj_VlV)0-WW$t1biD?IMr_0XaGF9ch|IzKrUX{ZR^!Tl|vqn ztOlUR8mDn(H2@!ftCjZlgB#QhpV$J)p3{ZG5d&ZhPIk0CZly4Z!B4a(1oF zF{`JtRmu9rw(RnW%~#?TLm?H1gjD^e-N4_Z;$Mfg{!T0H8QZeSCpK68MQUo&gq#-? z?4y-T$GTE$pv8n2bZu?-; zKC2F?k#mwy%q}NV;{C*?LLo&eJ*8?J1K;ykZrx-j=O&++=wC@itPCPGF$y@>*cVI7 zmze!Govl#cMY2puiIyKRA=OZ+szC$EaT6erRu$NqT0NsE7gD0-L(GZP$&LDM$(3&^ zu1K6J7g8ec6DyWfV`QZP@GH9 zWm_z2fR~9mk$U>;Cji5BajnBpdO|&4BAe<= 12f) + { + if (projectile.owner == Main.myPlayer) + { + int projectile1 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, SpeedX, SpeedY, mod.ProjectileType("NebulaShot"), 350, projectile.knockBack, projectile.owner, 1f, 0f); + Main.projectile[projectile1].aiStyle = 1; + } + projectile.localAI[0] = 0f; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/LaserFountain.png b/Projectiles/Melee/LaserFountain.png similarity index 100% rename from Projectiles/LaserFountain.png rename to Projectiles/Melee/LaserFountain.png diff --git a/Projectiles/Leech.cs b/Projectiles/Melee/Leech.cs similarity index 94% rename from Projectiles/Leech.cs rename to Projectiles/Melee/Leech.cs index d110504544..b0b74db782 100644 --- a/Projectiles/Leech.cs +++ b/Projectiles/Melee/Leech.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Leech : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.penetrate = 1; projectile.timeLeft = 200; - } + projectile.melee = true; + } public override void AI() { diff --git a/Projectiles/Leech.png b/Projectiles/Melee/Leech.png similarity index 100% rename from Projectiles/Leech.png rename to Projectiles/Melee/Leech.png diff --git a/Projectiles/LifeScythe.cs b/Projectiles/Melee/LifeScythe.cs similarity index 81% rename from Projectiles/LifeScythe.cs rename to Projectiles/Melee/LifeScythe.cs index 7e1af0c59c..1fdfbafc6c 100644 --- a/Projectiles/LifeScythe.cs +++ b/Projectiles/Melee/LifeScythe.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class LifeScythe : ModProjectile { @@ -57,16 +57,6 @@ namespace CalamityMod.Projectiles public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - if (target.type == NPCID.TargetDummy) - { - return; - } - Player player = Main.player[projectile.owner]; - if (Main.rand.Next(2) == 0) - { - player.statLife += 1; - player.HealEffect(1); - } target.AddBuff(BuffID.OnFire, 200); target.AddBuff(BuffID.CursedInferno, 200); } diff --git a/Projectiles/LifeScythe.png b/Projectiles/Melee/LifeScythe.png similarity index 100% rename from Projectiles/LifeScythe.png rename to Projectiles/Melee/LifeScythe.png diff --git a/Projectiles/Light.cs b/Projectiles/Melee/Light.cs similarity index 92% rename from Projectiles/Light.cs rename to Projectiles/Melee/Light.cs index 9c30093651..4a6eaef5a8 100644 --- a/Projectiles/Light.cs +++ b/Projectiles/Melee/Light.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Light : ModProjectile { diff --git a/Projectiles/Light.png b/Projectiles/Melee/Light.png similarity index 100% rename from Projectiles/Light.png rename to Projectiles/Melee/Light.png diff --git a/Projectiles/MangroveChakramProjectileMelee.cs b/Projectiles/Melee/MangroveChakramProjectileMelee.cs similarity index 95% rename from Projectiles/MangroveChakramProjectileMelee.cs rename to Projectiles/Melee/MangroveChakramProjectileMelee.cs index e8432c8c4e..4e9292370b 100644 --- a/Projectiles/MangroveChakramProjectileMelee.cs +++ b/Projectiles/Melee/MangroveChakramProjectileMelee.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class MangroveChakramProjectileMelee : ModProjectile { diff --git a/Projectiles/MangroveChakramProjectileMelee.png b/Projectiles/Melee/MangroveChakramProjectileMelee.png similarity index 100% rename from Projectiles/MangroveChakramProjectileMelee.png rename to Projectiles/Melee/MangroveChakramProjectileMelee.png diff --git a/Projectiles/MarianaProjectile.cs b/Projectiles/Melee/MarianaProjectile.cs similarity index 95% rename from Projectiles/MarianaProjectile.cs rename to Projectiles/Melee/MarianaProjectile.cs index ed1a157aad..d817d83b32 100644 --- a/Projectiles/MarianaProjectile.cs +++ b/Projectiles/Melee/MarianaProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class MarianaProjectile : ModProjectile { diff --git a/Projectiles/MarianaProjectile.png b/Projectiles/Melee/MarianaProjectile.png similarity index 100% rename from Projectiles/MarianaProjectile.png rename to Projectiles/Melee/MarianaProjectile.png diff --git a/Projectiles/MarniteObliterator.cs b/Projectiles/Melee/MarniteObliterator.cs similarity index 89% rename from Projectiles/MarniteObliterator.cs rename to Projectiles/Melee/MarniteObliterator.cs index 39040456b3..fad8274bd5 100644 --- a/Projectiles/MarniteObliterator.cs +++ b/Projectiles/Melee/MarniteObliterator.cs @@ -3,7 +3,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class MarniteObliterator : ModProjectile { diff --git a/Projectiles/MarniteObliterator.png b/Projectiles/Melee/MarniteObliterator.png similarity index 100% rename from Projectiles/MarniteObliterator.png rename to Projectiles/Melee/MarniteObliterator.png diff --git a/Projectiles/MeteorFist.cs b/Projectiles/Melee/MeteorFist.cs similarity index 97% rename from Projectiles/MeteorFist.cs rename to Projectiles/Melee/MeteorFist.cs index 6ee5e86635..b430543776 100644 --- a/Projectiles/MeteorFist.cs +++ b/Projectiles/Melee/MeteorFist.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class MeteorFist : ModProjectile { diff --git a/Projectiles/MeteorFist.png b/Projectiles/Melee/MeteorFist.png similarity index 100% rename from Projectiles/MeteorFist.png rename to Projectiles/Melee/MeteorFist.png diff --git a/Projectiles/MirrorBlast.cs b/Projectiles/Melee/MirrorBlast.cs similarity index 96% rename from Projectiles/MirrorBlast.cs rename to Projectiles/Melee/MirrorBlast.cs index 2728e2d764..3e9ab54eff 100644 --- a/Projectiles/MirrorBlast.cs +++ b/Projectiles/Melee/MirrorBlast.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class MirrorBlast : ModProjectile { diff --git a/Projectiles/MirrorBlast.png b/Projectiles/Melee/MirrorBlast.png similarity index 100% rename from Projectiles/MirrorBlast.png rename to Projectiles/Melee/MirrorBlast.png diff --git a/Projectiles/Mourningstar.cs b/Projectiles/Melee/Mourningstar.cs similarity index 97% rename from Projectiles/Mourningstar.cs rename to Projectiles/Melee/Mourningstar.cs index 2bc684346e..2c98bed22a 100644 --- a/Projectiles/Mourningstar.cs +++ b/Projectiles/Melee/Mourningstar.cs @@ -7,7 +7,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Enums; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Mourningstar : ModProjectile { diff --git a/Projectiles/Mourningstar.png b/Projectiles/Melee/Mourningstar.png similarity index 100% rename from Projectiles/Mourningstar.png rename to Projectiles/Melee/Mourningstar.png diff --git a/Projectiles/Murasama.cs b/Projectiles/Melee/Murasama.cs similarity index 95% rename from Projectiles/Murasama.cs rename to Projectiles/Melee/Murasama.cs index 4baff68a35..99c4cc2c8f 100644 --- a/Projectiles/Murasama.cs +++ b/Projectiles/Melee/Murasama.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Murasama : ModProjectile { diff --git a/Projectiles/Murasama.png b/Projectiles/Melee/Murasama.png similarity index 100% rename from Projectiles/Murasama.png rename to Projectiles/Melee/Murasama.png diff --git a/Projectiles/Nebudust.cs b/Projectiles/Melee/Nebudust.cs similarity index 95% rename from Projectiles/Nebudust.cs rename to Projectiles/Melee/Nebudust.cs index 535c06c64b..6f92f9cd8e 100644 --- a/Projectiles/Nebudust.cs +++ b/Projectiles/Melee/Nebudust.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Nebudust : ModProjectile { diff --git a/Projectiles/Nebudust.png b/Projectiles/Melee/Nebudust.png similarity index 100% rename from Projectiles/Nebudust.png rename to Projectiles/Melee/Nebudust.png diff --git a/Projectiles/Nebulash.cs b/Projectiles/Melee/Nebulash.cs similarity index 97% rename from Projectiles/Nebulash.cs rename to Projectiles/Melee/Nebulash.cs index 6bc0d22576..6e56a3c052 100644 --- a/Projectiles/Nebulash.cs +++ b/Projectiles/Melee/Nebulash.cs @@ -7,7 +7,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Enums; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Nebulash : ModProjectile { diff --git a/Projectiles/Nebulash.png b/Projectiles/Melee/Nebulash.png similarity index 100% rename from Projectiles/Nebulash.png rename to Projectiles/Melee/Nebulash.png diff --git a/Projectiles/NeptuneOrb.cs b/Projectiles/Melee/NeptuneOrb.cs similarity index 96% rename from Projectiles/NeptuneOrb.cs rename to Projectiles/Melee/NeptuneOrb.cs index 672fca8878..856500670e 100644 --- a/Projectiles/NeptuneOrb.cs +++ b/Projectiles/Melee/NeptuneOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class NeptuneOrb : ModProjectile { diff --git a/Projectiles/NeptuneOrb.png b/Projectiles/Melee/NeptuneOrb.png similarity index 100% rename from Projectiles/NeptuneOrb.png rename to Projectiles/Melee/NeptuneOrb.png diff --git a/Projectiles/NightStabber.cs b/Projectiles/Melee/NightStabber.cs similarity index 94% rename from Projectiles/NightStabber.cs rename to Projectiles/Melee/NightStabber.cs index 5691318bb3..3510473506 100644 --- a/Projectiles/NightStabber.cs +++ b/Projectiles/Melee/NightStabber.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class NightStabber : ModProjectile { @@ -22,7 +22,8 @@ namespace CalamityMod.Projectiles projectile.penetrate = 1; projectile.tileCollide = false; projectile.timeLeft = 300; - } + projectile.melee = true; + } public override void AI() { diff --git a/Projectiles/NightStabber.png b/Projectiles/Melee/NightStabber.png similarity index 100% rename from Projectiles/NightStabber.png rename to Projectiles/Melee/NightStabber.png diff --git a/Projectiles/OPHammerMelee.cs b/Projectiles/Melee/OPHammerMelee.cs similarity index 96% rename from Projectiles/OPHammerMelee.cs rename to Projectiles/Melee/OPHammerMelee.cs index 489ebe03bf..023da31cf8 100644 --- a/Projectiles/OPHammerMelee.cs +++ b/Projectiles/Melee/OPHammerMelee.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class OPHammerMelee : ModProjectile { diff --git a/Projectiles/OPHammerMelee.png b/Projectiles/Melee/OPHammerMelee.png similarity index 100% rename from Projectiles/OPHammerMelee.png rename to Projectiles/Melee/OPHammerMelee.png diff --git a/Projectiles/Oathblade.cs b/Projectiles/Melee/Oathblade.cs similarity index 94% rename from Projectiles/Oathblade.cs rename to Projectiles/Melee/Oathblade.cs index b4d76d10f0..d31823a26d 100644 --- a/Projectiles/Oathblade.cs +++ b/Projectiles/Melee/Oathblade.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Oathblade : ModProjectile { diff --git a/Projectiles/Oathblade.png b/Projectiles/Melee/Oathblade.png similarity index 100% rename from Projectiles/Oathblade.png rename to Projectiles/Melee/Oathblade.png diff --git a/Projectiles/OceanBeam.cs b/Projectiles/Melee/OceanBeam.cs similarity index 96% rename from Projectiles/OceanBeam.cs rename to Projectiles/Melee/OceanBeam.cs index ba81a09227..3ae07cdc95 100644 --- a/Projectiles/OceanBeam.cs +++ b/Projectiles/Melee/OceanBeam.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class OceanBeam : ModProjectile { diff --git a/Projectiles/OceanBeam.png b/Projectiles/Melee/OceanBeam.png similarity index 100% rename from Projectiles/OceanBeam.png rename to Projectiles/Melee/OceanBeam.png diff --git a/Projectiles/OmegaBiomeOrb.cs b/Projectiles/Melee/OmegaBiomeOrb.cs similarity index 96% rename from Projectiles/OmegaBiomeOrb.cs rename to Projectiles/Melee/OmegaBiomeOrb.cs index 560db6da9f..c8649bc8a8 100644 --- a/Projectiles/OmegaBiomeOrb.cs +++ b/Projectiles/Melee/OmegaBiomeOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class OmegaBiomeOrb : ModProjectile { diff --git a/Projectiles/OmegaBiomeOrb.png b/Projectiles/Melee/OmegaBiomeOrb.png similarity index 100% rename from Projectiles/OmegaBiomeOrb.png rename to Projectiles/Melee/OmegaBiomeOrb.png diff --git a/Projectiles/PlagueBeeDust.cs b/Projectiles/Melee/PlagueBeeDust.cs similarity index 96% rename from Projectiles/PlagueBeeDust.cs rename to Projectiles/Melee/PlagueBeeDust.cs index e37d389c36..6f09e15586 100644 --- a/Projectiles/PlagueBeeDust.cs +++ b/Projectiles/Melee/PlagueBeeDust.cs @@ -1,107 +1,107 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles -{ - public class PlagueBeeDust : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Dust"); - } - - public override void SetDefaults() - { - projectile.width = 70; - projectile.height = 70; - projectile.friendly = true; - projectile.ignoreWater = true; - projectile.tileCollide = false; - projectile.melee = true; - projectile.penetrate = -1; - projectile.extraUpdates = 3; - projectile.timeLeft = 60; - } - - public override void AI() - { - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.05f) / 255f, ((255 - projectile.alpha) * 0.4f) / 255f, ((255 - projectile.alpha) * 0.01f) / 255f); - if (projectile.ai[0] > 7f) - { - float num296 = 1f; - if (projectile.ai[0] == 8f) - { - num296 = 0.25f; - } - else if (projectile.ai[0] == 9f) - { - num296 = 0.5f; - } - else if (projectile.ai[0] == 10f) - { - num296 = 0.75f; - } - projectile.ai[0] += 1f; - if (projectile.ai[0] % 2f == 0f) - { - int spawnX = (int)(projectile.width / 2); - int spawnY = (int)(projectile.width / 2); - int bee = Projectile.NewProjectile(projectile.Center.X + (float)Main.rand.Next(-spawnX, spawnX), projectile.Center.Y + (float)Main.rand.Next(-spawnY, spawnY), - projectile.velocity.X, projectile.velocity.Y, Main.player[projectile.owner].beeType(), - Main.player[projectile.owner].beeDamage(projectile.damage / 3), Main.player[projectile.owner].beeKB(0f), projectile.owner, 0f, 0f); - Main.projectile[bee].penetrate = 1; - } - int num297 = 89; - if (Main.rand.Next(1) == 0) - { - for (int num298 = 0; num298 < 2; num298++) - { - int num299 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, num297, projectile.velocity.X * 0.2f, projectile.velocity.Y * 0.2f, 100, default(Color), 1f); - if ((num297 == 89 && Main.rand.Next(3) == 0)) - { - Main.dust[num299].noGravity = true; - Main.dust[num299].scale *= 2.5f; - Dust expr_DBEF_cp_0 = Main.dust[num299]; - expr_DBEF_cp_0.velocity.X = expr_DBEF_cp_0.velocity.X * 2f; - Dust expr_DC0F_cp_0 = Main.dust[num299]; - expr_DC0F_cp_0.velocity.Y = expr_DC0F_cp_0.velocity.Y * 2f; - } - else - { - Main.dust[num299].scale *= 2f; - } - Dust expr_DC74_cp_0 = Main.dust[num299]; - expr_DC74_cp_0.velocity.X = expr_DC74_cp_0.velocity.X * 1.2f; - Dust expr_DC94_cp_0 = Main.dust[num299]; - expr_DC94_cp_0.velocity.Y = expr_DC94_cp_0.velocity.Y * 1.2f; - Main.dust[num299].scale *= num296; - if (num297 == 75) - { - Main.dust[num299].velocity += projectile.velocity; - if (!Main.dust[num299].noGravity) - { - Main.dust[num299].velocity *= 0.5f; - } - } - } - } - } - else - { - projectile.ai[0] += 1f; - } - projectile.rotation += 0.3f * (float)projectile.direction; - return; - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.immune[projectile.owner] = 5; - target.AddBuff(mod.BuffType("Plague"), 180); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Melee +{ + public class PlagueBeeDust : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Dust"); + } + + public override void SetDefaults() + { + projectile.width = 70; + projectile.height = 70; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.melee = true; + projectile.penetrate = -1; + projectile.extraUpdates = 3; + projectile.timeLeft = 60; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.05f) / 255f, ((255 - projectile.alpha) * 0.4f) / 255f, ((255 - projectile.alpha) * 0.01f) / 255f); + if (projectile.ai[0] > 7f) + { + float num296 = 1f; + if (projectile.ai[0] == 8f) + { + num296 = 0.25f; + } + else if (projectile.ai[0] == 9f) + { + num296 = 0.5f; + } + else if (projectile.ai[0] == 10f) + { + num296 = 0.75f; + } + projectile.ai[0] += 1f; + if (projectile.ai[0] % 2f == 0f) + { + int spawnX = (int)(projectile.width / 2); + int spawnY = (int)(projectile.width / 2); + int bee = Projectile.NewProjectile(projectile.Center.X + (float)Main.rand.Next(-spawnX, spawnX), projectile.Center.Y + (float)Main.rand.Next(-spawnY, spawnY), + projectile.velocity.X, projectile.velocity.Y, Main.player[projectile.owner].beeType(), + Main.player[projectile.owner].beeDamage(projectile.damage / 3), Main.player[projectile.owner].beeKB(0f), projectile.owner, 0f, 0f); + Main.projectile[bee].penetrate = 1; + } + int num297 = 89; + if (Main.rand.Next(1) == 0) + { + for (int num298 = 0; num298 < 2; num298++) + { + int num299 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, num297, projectile.velocity.X * 0.2f, projectile.velocity.Y * 0.2f, 100, default(Color), 1f); + if ((num297 == 89 && Main.rand.Next(3) == 0)) + { + Main.dust[num299].noGravity = true; + Main.dust[num299].scale *= 2.5f; + Dust expr_DBEF_cp_0 = Main.dust[num299]; + expr_DBEF_cp_0.velocity.X = expr_DBEF_cp_0.velocity.X * 2f; + Dust expr_DC0F_cp_0 = Main.dust[num299]; + expr_DC0F_cp_0.velocity.Y = expr_DC0F_cp_0.velocity.Y * 2f; + } + else + { + Main.dust[num299].scale *= 2f; + } + Dust expr_DC74_cp_0 = Main.dust[num299]; + expr_DC74_cp_0.velocity.X = expr_DC74_cp_0.velocity.X * 1.2f; + Dust expr_DC94_cp_0 = Main.dust[num299]; + expr_DC94_cp_0.velocity.Y = expr_DC94_cp_0.velocity.Y * 1.2f; + Main.dust[num299].scale *= num296; + if (num297 == 75) + { + Main.dust[num299].velocity += projectile.velocity; + if (!Main.dust[num299].noGravity) + { + Main.dust[num299].velocity *= 0.5f; + } + } + } + } + } + else + { + projectile.ai[0] += 1f; + } + projectile.rotation += 0.3f * (float)projectile.direction; + return; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.immune[projectile.owner] = 5; + target.AddBuff(mod.BuffType("Plague"), 180); + } + } } \ No newline at end of file diff --git a/Projectiles/PlagueBeeDust.png b/Projectiles/Melee/PlagueBeeDust.png similarity index 100% rename from Projectiles/PlagueBeeDust.png rename to Projectiles/Melee/PlagueBeeDust.png diff --git a/Projectiles/PlagueDust.cs b/Projectiles/Melee/PlagueDust.cs similarity index 95% rename from Projectiles/PlagueDust.cs rename to Projectiles/Melee/PlagueDust.cs index 315a3b228f..c0d0845632 100644 --- a/Projectiles/PlagueDust.cs +++ b/Projectiles/Melee/PlagueDust.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class PlagueDust : ModProjectile { diff --git a/Projectiles/PlagueDust.png b/Projectiles/Melee/PlagueDust.png similarity index 100% rename from Projectiles/PlagueDust.png rename to Projectiles/Melee/PlagueDust.png diff --git a/Projectiles/PlagueSeeker.cs b/Projectiles/Melee/PlagueSeeker.cs similarity index 95% rename from Projectiles/PlagueSeeker.cs rename to Projectiles/Melee/PlagueSeeker.cs index 605962b709..0773b9ef14 100644 --- a/Projectiles/PlagueSeeker.cs +++ b/Projectiles/Melee/PlagueSeeker.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class PlagueSeeker : ModProjectile { diff --git a/Projectiles/PlagueSeeker.png b/Projectiles/Melee/PlagueSeeker.png similarity index 100% rename from Projectiles/PlagueSeeker.png rename to Projectiles/Melee/PlagueSeeker.png diff --git a/Projectiles/PlasmaBall.cs b/Projectiles/Melee/PlasmaBall.cs similarity index 95% rename from Projectiles/PlasmaBall.cs rename to Projectiles/Melee/PlasmaBall.cs index c504780e4f..cff23ee359 100644 --- a/Projectiles/PlasmaBall.cs +++ b/Projectiles/Melee/PlasmaBall.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class PlasmaBall : ModProjectile { diff --git a/Projectiles/PlasmaBall.png b/Projectiles/Melee/PlasmaBall.png similarity index 100% rename from Projectiles/PlasmaBall.png rename to Projectiles/Melee/PlasmaBall.png diff --git a/Projectiles/PwnagehammerMelee.cs b/Projectiles/Melee/PwnagehammerMelee.cs similarity index 94% rename from Projectiles/PwnagehammerMelee.cs rename to Projectiles/Melee/PwnagehammerMelee.cs index 657a2af7df..776f26bb91 100644 --- a/Projectiles/PwnagehammerMelee.cs +++ b/Projectiles/Melee/PwnagehammerMelee.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class PwnagehammerMelee : ModProjectile { diff --git a/Projectiles/PwnagehammerMelee.png b/Projectiles/Melee/PwnagehammerMelee.png similarity index 100% rename from Projectiles/PwnagehammerMelee.png rename to Projectiles/Melee/PwnagehammerMelee.png diff --git a/Projectiles/RainBolt.cs b/Projectiles/Melee/RainBolt.cs similarity index 96% rename from Projectiles/RainBolt.cs rename to Projectiles/Melee/RainBolt.cs index 907e3b0086..702d9ca162 100644 --- a/Projectiles/RainBolt.cs +++ b/Projectiles/Melee/RainBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class RainBolt : ModProjectile { diff --git a/Projectiles/RainBolt.png b/Projectiles/Melee/RainBolt.png similarity index 100% rename from Projectiles/RainBolt.png rename to Projectiles/Melee/RainBolt.png diff --git a/Projectiles/RainbowBoom.cs b/Projectiles/Melee/RainbowBoom.cs similarity index 95% rename from Projectiles/RainbowBoom.cs rename to Projectiles/Melee/RainbowBoom.cs index ec3922999b..cbf14f0049 100644 --- a/Projectiles/RainbowBoom.cs +++ b/Projectiles/Melee/RainbowBoom.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class RainbowBoom : ModProjectile { diff --git a/Projectiles/RainbowBoom.png b/Projectiles/Melee/RainbowBoom.png similarity index 100% rename from Projectiles/RainbowBoom.png rename to Projectiles/Melee/RainbowBoom.png diff --git a/Projectiles/Razorwind.cs b/Projectiles/Melee/Razorwind.cs similarity index 96% rename from Projectiles/Razorwind.cs rename to Projectiles/Melee/Razorwind.cs index 797dc86810..9b287fbe78 100644 --- a/Projectiles/Razorwind.cs +++ b/Projectiles/Melee/Razorwind.cs @@ -7,7 +7,7 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Razorwind : ModProjectile { diff --git a/Projectiles/Razorwind.png b/Projectiles/Melee/Razorwind.png similarity index 100% rename from Projectiles/Razorwind.png rename to Projectiles/Melee/Razorwind.png diff --git a/Projectiles/RedBall.cs b/Projectiles/Melee/RedBall.cs similarity index 95% rename from Projectiles/RedBall.cs rename to Projectiles/Melee/RedBall.cs index 5e535ab4a9..5a084b9fe9 100644 --- a/Projectiles/RedBall.cs +++ b/Projectiles/Melee/RedBall.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class RedBall : ModProjectile { diff --git a/Projectiles/RedBall.png b/Projectiles/Melee/RedBall.png similarity index 100% rename from Projectiles/RedBall.png rename to Projectiles/Melee/RedBall.png diff --git a/Projectiles/RedDust.cs b/Projectiles/Melee/RedDust.cs similarity index 93% rename from Projectiles/RedDust.cs rename to Projectiles/Melee/RedDust.cs index b2b7ffc587..a586a41c23 100644 --- a/Projectiles/RedDust.cs +++ b/Projectiles/Melee/RedDust.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class RedDust : ModProjectile { diff --git a/Projectiles/RedDust.png b/Projectiles/Melee/RedDust.png similarity index 100% rename from Projectiles/RedDust.png rename to Projectiles/Melee/RedDust.png diff --git a/Projectiles/RoyalKnifeMelee.cs b/Projectiles/Melee/RoyalKnifeMelee.cs similarity index 93% rename from Projectiles/RoyalKnifeMelee.cs rename to Projectiles/Melee/RoyalKnifeMelee.cs index b64ef3dcfd..bf99bc1b41 100644 --- a/Projectiles/RoyalKnifeMelee.cs +++ b/Projectiles/Melee/RoyalKnifeMelee.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class RoyalKnifeMelee : ModProjectile { @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles { return; } - float num = (float)damage * 0.075f; + float num = (float)damage * 0.015f; if ((int)num == 0) { return; @@ -108,7 +108,7 @@ namespace CalamityMod.Projectiles { return; } - Main.player[Main.myPlayer].lifeSteal -= num * 2f; + Main.player[Main.myPlayer].lifeSteal -= num * 1.5f; int num2 = projectile.owner; Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("RoyalHeal"), 0, 0f, projectile.owner, (float)num2, num); } diff --git a/Projectiles/RoyalKnifeMelee.png b/Projectiles/Melee/RoyalKnifeMelee.png similarity index 100% rename from Projectiles/RoyalKnifeMelee.png rename to Projectiles/Melee/RoyalKnifeMelee.png diff --git a/Projectiles/SHIV.cs b/Projectiles/Melee/SHIV.cs similarity index 95% rename from Projectiles/SHIV.cs rename to Projectiles/Melee/SHIV.cs index 3a820d3275..acc1fd278a 100644 --- a/Projectiles/SHIV.cs +++ b/Projectiles/Melee/SHIV.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class SHIV : ModProjectile { diff --git a/Projectiles/SHIV.png b/Projectiles/Melee/SHIV.png similarity index 100% rename from Projectiles/SHIV.png rename to Projectiles/Melee/SHIV.png diff --git a/Projectiles/SandBlade.cs b/Projectiles/Melee/SandBlade.cs similarity index 94% rename from Projectiles/SandBlade.cs rename to Projectiles/Melee/SandBlade.cs index c233a275c9..663515889b 100644 --- a/Projectiles/SandBlade.cs +++ b/Projectiles/Melee/SandBlade.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class SandBlade : ModProjectile { diff --git a/Projectiles/SandBlade.png b/Projectiles/Melee/SandBlade.png similarity index 100% rename from Projectiles/SandBlade.png rename to Projectiles/Melee/SandBlade.png diff --git a/Projectiles/SandFire.cs b/Projectiles/Melee/SandFire.cs similarity index 95% rename from Projectiles/SandFire.cs rename to Projectiles/Melee/SandFire.cs index 44730ab46d..a34af449b0 100644 --- a/Projectiles/SandFire.cs +++ b/Projectiles/Melee/SandFire.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class SandFire : ModProjectile { diff --git a/Projectiles/SandFire.png b/Projectiles/Melee/SandFire.png similarity index 100% rename from Projectiles/SandFire.png rename to Projectiles/Melee/SandFire.png diff --git a/Projectiles/ScourgeoftheCosmos.cs b/Projectiles/Melee/ScourgeoftheCosmos.cs similarity index 93% rename from Projectiles/ScourgeoftheCosmos.cs rename to Projectiles/Melee/ScourgeoftheCosmos.cs index c92bc39dea..45e1229351 100644 --- a/Projectiles/ScourgeoftheCosmos.cs +++ b/Projectiles/Melee/ScourgeoftheCosmos.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class ScourgeoftheCosmos : ModProjectile { @@ -34,13 +34,14 @@ namespace CalamityMod.Projectiles if (projectile.ai[1] == 1f) { projectile.melee = false; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } if (projectile.alpha <= 200) { int num3; for (int num20 = 0; num20 < 2; num20 = num3 + 1) { - int dustType = (Main.rand.Next(2) == 0 ? 56 : 242); + int dustType = (Main.rand.Next(3) == 0 ? 56 : 242); float num21 = projectile.velocity.X / 4f * (float)num20; float num22 = projectile.velocity.Y / 4f * (float)num20; int num23 = Dust.NewDust(projectile.position, projectile.width, projectile.height, dustType, 0f, 0f, 0, default(Color), 1f); @@ -130,7 +131,7 @@ namespace CalamityMod.Projectiles int num3; for (int num622 = 0; num622 < 10; num622 = num3 + 1) { - int dustType = (Main.rand.Next(2) == 0 ? 56 : 242); + int dustType = (Main.rand.Next(3) == 0 ? 56 : 242); int num623 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, dustType, 0f, 0f, 0, default(Color), 1f); Dust dust = Main.dust[num623]; dust.scale *= 1.1f; @@ -139,7 +140,7 @@ namespace CalamityMod.Projectiles } for (int num624 = 0; num624 < 15; num624 = num3 + 1) { - int dustType = (Main.rand.Next(2) == 0 ? 56 : 242); + int dustType = (Main.rand.Next(3) == 0 ? 56 : 242); int num625 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, dustType, 0f, 0f, 0, default(Color), 1f); Dust dust = Main.dust[num625]; dust.velocity *= 2.5f; diff --git a/Projectiles/Melee/ScourgeoftheCosmos.png b/Projectiles/Melee/ScourgeoftheCosmos.png new file mode 100644 index 0000000000000000000000000000000000000000..2bfdfe1cbfc31d1af604af2f97c487e19601c91b GIT binary patch literal 716 zcmV;-0yF)IP) z&1+LZ6vcmI6l)9lXiE)AYSS8prl8$aLcuQWqOJsSBS>*2Dro-)w^dMZSp;{2pt#YE zAXu!r&_x@p)kd4NQBzIgM_WpHE+)6hJd-9x;XTjpP43LgIrq-F_bD1gJk$?>YVraQ z4t4^NPEA{lo>79TeAuzg&Ho&#UVtz^aPTkyZ)aay0G@zW;Ns{Q0Q-i!s_y^z@B;wX z#xGZWr+XEs#r)FPRiHlO>l5PuYqMWCW~ zbcy^A3V3!Y0FO6l0d&O@K$-c|`wsx{N4gb2K0OaWOCSQ2ozh-I0{1B()!!D50kE8z zv!HyR6QgGVcs8MPEbE08-6Q;wZUFM>c?-(5Qp-1-S77q=BLD_(9|OwWPM8m#xB$T9 z-5bV6x$k>?K?Sf<$XWp3fBFCzI&%(y^i0m!Cr&AFUIAe)x%c{Yb^ln?OpZkN>%bDD z-rkULfH1fFf-nzu?lt12M~G88uE1t5uzSDc{>z&r00ZZb0)HxyOfDMFayz6(?DtDu`{d(=M{*D`nT+Q y)cJbaE@L~~qkzEM9@e?dWsJbTWm*f4EASg#GWH$%(^DP*0000(mod).rogue = true; + } if (projectile.alpha > 0) { projectile.alpha -= 50; @@ -53,14 +55,14 @@ namespace CalamityMod.Projectiles projectile.frame++; projectile.frameCounter = 0; } - if (projectile.frame >= 1) + if (projectile.frame > 1) { projectile.frame = 0; } int num3; for (int num369 = 0; num369 < 1; num369 = num3 + 1) { - int dustType = (Main.rand.Next(2) == 0 ? 56 : 242); + int dustType = (Main.rand.Next(3) == 0 ? 56 : 242); float num370 = projectile.velocity.X / 3f * (float)num369; float num371 = projectile.velocity.Y / 3f * (float)num369; int num372 = Dust.NewDust(projectile.position, projectile.width, projectile.height, dustType, 0f, 0f, 0, default(Color), 1f); @@ -169,5 +171,14 @@ namespace CalamityMod.Projectiles } return false; } - } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D texture2D13 = Main.projectileTexture[projectile.type]; + int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; + int y6 = num214 * projectile.frame; + Vector2 origin = new Vector2(9f, 10f); + spriteBatch.Draw(mod.GetTexture("Projectiles/Melee/ScourgeoftheCosmosMiniGlow"), projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), Color.White, projectile.rotation, origin, projectile.scale, SpriteEffects.None, 0f); + } + } } \ No newline at end of file diff --git a/Projectiles/Melee/ScourgeoftheCosmosMini.png b/Projectiles/Melee/ScourgeoftheCosmosMini.png new file mode 100644 index 0000000000000000000000000000000000000000..ccaa0150473f97eb6b00ec508b12d3edb976ef71 GIT binary patch literal 546 zcmV+-0^R+IP)7`%?5kc}I%IGe1D3zi=!ebC*gV2MZ7cUWuK=3lb z!=QOl!4ZkzwhE$!GA0wE9uLp+ti2C!5%Ij@_cDI(@B4e7?|wXdHi4yqu0a4g!Z!gZ zDi4@-L9nN4=B-{UiID4Cwm#BQAb|KHo02DUz0Q@{I061U(%$9!rKoSAJIb&|Pk#v#vq&9oHIEHw1CMQU+E^a6~(Bb_k z|8^!D5VZY2|Nnn_0uW3|Nl5|G>x_=Bn%5bnmvm5-v6yqSzRSt`XY2ntFWvB~>6>0t z8yg!B`uZ>(Ti)Nz!IWF+%?89xuU?2}|F5rCKc#T1 zed5e@+RZ@hXZJVOgzEuAI_FRI?;>G^(@v&E9L=1+Nm5m@&sBeOVdF)k*?p= 250) + { + projectile.alpha = 255; + projectile.localAI[0] = 1f; + } + } + else if (projectile.localAI[0] == 1f) + { + projectile.scale += 0.02f; + projectile.alpha -= 30; + if (projectile.alpha <= 0) + { + projectile.alpha = 0; + projectile.localAI[0] = 0f; + } + } + int dustType = 0; + + switch (CalamityMod.season) + { + case Season.Spring: + dustType = Utils.SelectRandom(Main.rand, new int[] + { + 74, + 157, + 107 + }); + break; + case Season.Summer: + dustType = Utils.SelectRandom(Main.rand, new int[] + { + 247, + 228, + 57 + }); + break; + case Season.Fall: + dustType = Utils.SelectRandom(Main.rand, new int[] + { + 6, + 259, + 158 + }); + break; + case Season.Winter: + dustType = Utils.SelectRandom(Main.rand, new int[] + { + 67, + 229, + 185 + }); + break; + } + if (Main.rand.Next(3) == 0) + { + int dust = Dust.NewDust(projectile.position, projectile.width, projectile.height, dustType, projectile.velocity.X * 0.05f, projectile.velocity.Y * 0.05f); + Main.dust[dust].noGravity = true; + } + } + + public override Color? GetAlpha(Color lightColor) + { + byte red = 255; + byte green = 255; + byte blue = 255; + switch (CalamityMod.season) + { + case Season.Spring: + red = 0; + green = 250; + blue = 0; + break; + case Season.Summer: + red = 250; + green = 250; + blue = 0; + break; + case Season.Fall: + red = 250; + green = 150; + blue = 50; + break; + case Season.Winter: + red = 100; + green = 150; + blue = 250; + break; + } + return new Color(red, green, blue, projectile.alpha); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + int dustType = 0; + + switch (CalamityMod.season) + { + case Season.Spring: + dustType = Utils.SelectRandom(Main.rand, new int[] + { + 245, + 157, + 107 + }); + break; + case Season.Summer: + dustType = Utils.SelectRandom(Main.rand, new int[] + { + 247, + 228, + 57 + }); + break; + case Season.Fall: + dustType = Utils.SelectRandom(Main.rand, new int[] + { + 6, + 259, + 158 + }); + break; + case Season.Winter: + dustType = Utils.SelectRandom(Main.rand, new int[] + { + 67, + 229, + 185 + }); + break; + } + Main.PlaySound(SoundID.Item10, projectile.position); + int num3; + for (int num795 = 4; num795 < 31; num795 = num3 + 1) + { + float num796 = projectile.oldVelocity.X * (30f / (float)num795); + float num797 = projectile.oldVelocity.Y * (30f / (float)num795); + int num798 = Dust.NewDust(new Vector2(projectile.oldPosition.X - num796, projectile.oldPosition.Y - num797), 8, 8, dustType, projectile.oldVelocity.X, projectile.oldVelocity.Y, 100, default(Color), 1.8f); + Main.dust[num798].noGravity = true; + Dust dust = Main.dust[num798]; + dust.velocity *= 0.5f; + num798 = Dust.NewDust(new Vector2(projectile.oldPosition.X - num796, projectile.oldPosition.Y - num797), 8, 8, dustType, projectile.oldVelocity.X, projectile.oldVelocity.Y, 100, default(Color), 1.4f); + dust = Main.dust[num798]; + dust.velocity *= 0.05f; + num3 = num795; + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + int buff = Main.dayTime ? BuffID.Daybreak : mod.BuffType("Nightwither"); + target.AddBuff(buff, 300); + } + } +} \ No newline at end of file diff --git a/Projectiles/SolsticeBeam.png b/Projectiles/Melee/SolsticeBeam.png similarity index 100% rename from Projectiles/SolsticeBeam.png rename to Projectiles/Melee/SolsticeBeam.png diff --git a/Projectiles/SoulScythe.cs b/Projectiles/Melee/SoulScythe.cs similarity index 96% rename from Projectiles/SoulScythe.cs rename to Projectiles/Melee/SoulScythe.cs index 4416e60a78..97bb81a855 100644 --- a/Projectiles/SoulScythe.cs +++ b/Projectiles/Melee/SoulScythe.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class SoulScythe : ModProjectile { diff --git a/Projectiles/SoulScythe.png b/Projectiles/Melee/SoulScythe.png similarity index 100% rename from Projectiles/SoulScythe.png rename to Projectiles/Melee/SoulScythe.png diff --git a/Projectiles/Spark.cs b/Projectiles/Melee/Spark.cs similarity index 93% rename from Projectiles/Spark.cs rename to Projectiles/Melee/Spark.cs index f262158970..b039270628 100644 --- a/Projectiles/Spark.cs +++ b/Projectiles/Melee/Spark.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class Spark : ModProjectile { @@ -20,9 +20,10 @@ namespace CalamityMod.Projectiles projectile.height = 12; projectile.friendly = true; projectile.penetrate = -1; - projectile.timeLeft = 300; + projectile.timeLeft = 120; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; + projectile.melee = true; } public override void AI() @@ -83,7 +84,6 @@ namespace CalamityMod.Projectiles if (projectile.velocity.Y > 16f) { projectile.velocity.Y = 16f; - return; } } diff --git a/Projectiles/Spark.png b/Projectiles/Melee/Spark.png similarity index 100% rename from Projectiles/Spark.png rename to Projectiles/Melee/Spark.png diff --git a/Projectiles/SpatialSpear.cs b/Projectiles/Melee/SpatialSpear.cs similarity index 95% rename from Projectiles/SpatialSpear.cs rename to Projectiles/Melee/SpatialSpear.cs index 768465a101..377bce472c 100644 --- a/Projectiles/SpatialSpear.cs +++ b/Projectiles/Melee/SpatialSpear.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class SpatialSpear : ModProjectile { diff --git a/Projectiles/SpatialSpear.png b/Projectiles/Melee/SpatialSpear.png similarity index 100% rename from Projectiles/SpatialSpear.png rename to Projectiles/Melee/SpatialSpear.png diff --git a/Projectiles/SpatialSpear2.cs b/Projectiles/Melee/SpatialSpear2.cs similarity index 95% rename from Projectiles/SpatialSpear2.cs rename to Projectiles/Melee/SpatialSpear2.cs index ee3a06de16..a05f6ef5c9 100644 --- a/Projectiles/SpatialSpear2.cs +++ b/Projectiles/Melee/SpatialSpear2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class SpatialSpear2 : ModProjectile { diff --git a/Projectiles/SpatialSpear2.png b/Projectiles/Melee/SpatialSpear2.png similarity index 100% rename from Projectiles/SpatialSpear2.png rename to Projectiles/Melee/SpatialSpear2.png diff --git a/Projectiles/SpatialSpear3.cs b/Projectiles/Melee/SpatialSpear3.cs similarity index 95% rename from Projectiles/SpatialSpear3.cs rename to Projectiles/Melee/SpatialSpear3.cs index 510f026d81..847f214f1b 100644 --- a/Projectiles/SpatialSpear3.cs +++ b/Projectiles/Melee/SpatialSpear3.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class SpatialSpear3 : ModProjectile { diff --git a/Projectiles/SpatialSpear3.png b/Projectiles/Melee/SpatialSpear3.png similarity index 100% rename from Projectiles/SpatialSpear3.png rename to Projectiles/Melee/SpatialSpear3.png diff --git a/Projectiles/SpatialSpear4.cs b/Projectiles/Melee/SpatialSpear4.cs similarity index 92% rename from Projectiles/SpatialSpear4.cs rename to Projectiles/Melee/SpatialSpear4.cs index 393d8ef0c8..f4f73f724a 100644 --- a/Projectiles/SpatialSpear4.cs +++ b/Projectiles/Melee/SpatialSpear4.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee { public class SpatialSpear4 : ModProjectile { diff --git a/Projectiles/SpatialSpear4.png b/Projectiles/Melee/SpatialSpear4.png similarity index 100% rename from Projectiles/SpatialSpear4.png rename to Projectiles/Melee/SpatialSpear4.png diff --git a/Projectiles/AstralPike.cs b/Projectiles/Melee/Spears/AstralPike.cs similarity index 95% rename from Projectiles/AstralPike.cs rename to Projectiles/Melee/Spears/AstralPike.cs index 9c3fc2a5e1..582910c3f7 100644 --- a/Projectiles/AstralPike.cs +++ b/Projectiles/Melee/Spears/AstralPike.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Spears { public class AstralPike : ModProjectile { diff --git a/Projectiles/AstralPike.png b/Projectiles/Melee/Spears/AstralPike.png similarity index 100% rename from Projectiles/AstralPike.png rename to Projectiles/Melee/Spears/AstralPike.png diff --git a/Projectiles/BansheeHook.cs b/Projectiles/Melee/Spears/BansheeHook.cs similarity index 93% rename from Projectiles/BansheeHook.cs rename to Projectiles/Melee/Spears/BansheeHook.cs index 163afc51f6..35fcef4e76 100644 --- a/Projectiles/BansheeHook.cs +++ b/Projectiles/Melee/Spears/BansheeHook.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Spears { public class BansheeHook : ModProjectile { @@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles { Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)projectile.position.X + (double)projectile.width * 0.5) / 16, (int)(((double)projectile.position.Y + (double)projectile.height * 0.5) / 16.0)); Vector2 vector53 = projectile.position + new Vector2((float)projectile.width, (float)projectile.height) / 2f + Vector2.UnitY * projectile.gfxOffY - Main.screenPosition; - Texture2D texture2D31 = (projectile.spriteDirection == -1) ? mod.GetTexture("Projectiles/BansheeHookAlt") : Main.projectileTexture[projectile.type]; + Texture2D texture2D31 = (projectile.spriteDirection == -1) ? mod.GetTexture("Projectiles/Melee/Spears/BansheeHookAlt") : Main.projectileTexture[projectile.type]; Microsoft.Xna.Framework.Color alpha4 = projectile.GetAlpha(color25); Vector2 origin8 = new Vector2((float)texture2D31.Width, (float)texture2D31.Height) / 2f; origin8 = new Vector2((projectile.spriteDirection == 1) ? ((float)texture2D31.Width - -8f) : -8f, -8f); //-8 -8 @@ -146,7 +146,7 @@ namespace CalamityMod.Projectiles { if (projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("BansheeHookBoom"), damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, mod.ProjectileType("BansheeHookBoom"), (int)((double)damage * 0.25), 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } } } diff --git a/Projectiles/BansheeHook.png b/Projectiles/Melee/Spears/BansheeHook.png similarity index 100% rename from Projectiles/BansheeHook.png rename to Projectiles/Melee/Spears/BansheeHook.png diff --git a/Projectiles/BansheeHookAlt.png b/Projectiles/Melee/Spears/BansheeHookAlt.png similarity index 100% rename from Projectiles/BansheeHookAlt.png rename to Projectiles/Melee/Spears/BansheeHookAlt.png diff --git a/Projectiles/Brimlance.cs b/Projectiles/Melee/Spears/Brimlance.cs similarity index 96% rename from Projectiles/Brimlance.cs rename to Projectiles/Melee/Spears/Brimlance.cs index 5ed985349f..87f0fffc8c 100644 --- a/Projectiles/Brimlance.cs +++ b/Projectiles/Melee/Spears/Brimlance.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Spears { public class Brimlance : ModProjectile { diff --git a/Projectiles/Brimlance.png b/Projectiles/Melee/Spears/Brimlance.png similarity index 100% rename from Projectiles/Brimlance.png rename to Projectiles/Melee/Spears/Brimlance.png diff --git a/Projectiles/DiseasedPike.cs b/Projectiles/Melee/Spears/DiseasedPike.cs similarity index 95% rename from Projectiles/DiseasedPike.cs rename to Projectiles/Melee/Spears/DiseasedPike.cs index 8e80569c71..a54f783ee2 100644 --- a/Projectiles/DiseasedPike.cs +++ b/Projectiles/Melee/Spears/DiseasedPike.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Spears { public class DiseasedPike : ModProjectile { diff --git a/Projectiles/DiseasedPike.png b/Projectiles/Melee/Spears/DiseasedPike.png similarity index 100% rename from Projectiles/DiseasedPike.png rename to Projectiles/Melee/Spears/DiseasedPike.png diff --git a/Projectiles/EarthenPike.cs b/Projectiles/Melee/Spears/EarthenPike.cs similarity index 95% rename from Projectiles/EarthenPike.cs rename to Projectiles/Melee/Spears/EarthenPike.cs index 16a65fc0bc..163c2ea60f 100644 --- a/Projectiles/EarthenPike.cs +++ b/Projectiles/Melee/Spears/EarthenPike.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Spears { public class EarthenPike : ModProjectile { diff --git a/Projectiles/EarthenPike.png b/Projectiles/Melee/Spears/EarthenPike.png similarity index 100% rename from Projectiles/EarthenPike.png rename to Projectiles/Melee/Spears/EarthenPike.png diff --git a/Projectiles/ExsanguinationLanceProjectile.cs b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs similarity index 95% rename from Projectiles/ExsanguinationLanceProjectile.cs rename to Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs index c7a58021e8..f79266decc 100644 --- a/Projectiles/ExsanguinationLanceProjectile.cs +++ b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Spears { public class ExsanguinationLanceProjectile : ModProjectile { diff --git a/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.png b/Projectiles/Melee/Spears/ExsanguinationLanceProjectile.png new file mode 100644 index 0000000000000000000000000000000000000000..4b507aa8c6f1cddc3bb119910bfa70fdef675f03 GIT binary patch literal 1690 zcmW-ic~nw)8^

K|?ZDDr30Rl<)MWLq-hJOKv0TXrZ!IVs9$B!_>ea$Bl7maa7y_Edh`4P^6~bdgU@r&wFwU1nZ@Wm003wEc>Kh?P&&u=jkF54=t)R3VRwiu>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8S!2yyfJ0{Zm`Y+XNMGM&() wx4~021krA?iOCK8VH5L2t5MM={`)n4168L`!lvI6;>1s;*b3=G^tAk28_ZrvZCAbW|YuPggQR!$*9y@kB@<$ywxC9V-A!TD(= z<%vb93~dIoxi#wN_sRX{}zo-U3d7XHZ&>}f$&|2HPCFv)B173OeW zYRKs07`2CALSN@B>*Kw%)0++bm_4p_tXp_hgQw@ey1Mg+bEyeEi3~@j68)O9Te2D? z8742E=Qbnw+wO>F!!r$RhNcE>m90g+1`T-(XEH5J4=~)6N@Q5ZAnUxekU3|TgM=0@ cD-RFDPc@^Cx3jCFfo@^&boFyt=akR{0JS$)(f|Me literal 0 HcmV?d00001 diff --git a/Projectiles/QuagmireProjectile.cs b/Projectiles/Melee/Yoyos/QuagmireProjectile.cs similarity index 95% rename from Projectiles/QuagmireProjectile.cs rename to Projectiles/Melee/Yoyos/QuagmireProjectile.cs index 48554416d1..db1e980e67 100644 --- a/Projectiles/QuagmireProjectile.cs +++ b/Projectiles/Melee/Yoyos/QuagmireProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Yoyos { public class QuagmireProjectile : ModProjectile { diff --git a/Projectiles/QuagmireProjectile.png b/Projectiles/Melee/Yoyos/QuagmireProjectile.png similarity index 100% rename from Projectiles/QuagmireProjectile.png rename to Projectiles/Melee/Yoyos/QuagmireProjectile.png diff --git a/Projectiles/ShimmersparkProjectile.cs b/Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs similarity index 95% rename from Projectiles/ShimmersparkProjectile.cs rename to Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs index 9fadead5ff..49d7f61e66 100644 --- a/Projectiles/ShimmersparkProjectile.cs +++ b/Projectiles/Melee/Yoyos/ShimmersparkProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Yoyos { public class ShimmersparkProjectile : ModProjectile { diff --git a/Projectiles/ShimmersparkProjectile.png b/Projectiles/Melee/Yoyos/ShimmersparkProjectile.png similarity index 100% rename from Projectiles/ShimmersparkProjectile.png rename to Projectiles/Melee/Yoyos/ShimmersparkProjectile.png diff --git a/Projectiles/SolarFlareYoyo.cs b/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs similarity index 94% rename from Projectiles/SolarFlareYoyo.cs rename to Projectiles/Melee/Yoyos/SolarFlareYoyo.cs index f6f761de65..784cc3cb5e 100644 --- a/Projectiles/SolarFlareYoyo.cs +++ b/Projectiles/Melee/Yoyos/SolarFlareYoyo.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Yoyos { public class SolarFlareYoyo : ModProjectile { diff --git a/Projectiles/SolarFlareYoyo.png b/Projectiles/Melee/Yoyos/SolarFlareYoyo.png similarity index 100% rename from Projectiles/SolarFlareYoyo.png rename to Projectiles/Melee/Yoyos/SolarFlareYoyo.png diff --git a/Projectiles/TheEyeofCalamitasProjectile.cs b/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs similarity index 95% rename from Projectiles/TheEyeofCalamitasProjectile.cs rename to Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs index 5c38cee05b..880c6ac327 100644 --- a/Projectiles/TheEyeofCalamitasProjectile.cs +++ b/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Yoyos { public class TheEyeofCalamitasProjectile : ModProjectile { diff --git a/Projectiles/TheEyeofCalamitasProjectile.png b/Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.png similarity index 100% rename from Projectiles/TheEyeofCalamitasProjectile.png rename to Projectiles/Melee/Yoyos/TheEyeofCalamitasProjectile.png diff --git a/Projectiles/TheGodsGambitProjectile.cs b/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs similarity index 92% rename from Projectiles/TheGodsGambitProjectile.cs rename to Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs index 2cc3631c3a..b6dd692e4c 100644 --- a/Projectiles/TheGodsGambitProjectile.cs +++ b/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Yoyos { public class TheGodsGambitProjectile : ModProjectile { diff --git a/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.png b/Projectiles/Melee/Yoyos/TheGodsGambitProjectile.png new file mode 100644 index 0000000000000000000000000000000000000000..a9645fc47f299b91f3e8119ad47a5c3d43535b8c GIT binary patch literal 294 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucLCF%=h?3y^w370~qEv>0#LT=By}Z;C1rt33 zJwsy?=IAP*qG_Hkjv*HQYbR{vZ86|+wPpG0>u{9i#fpfQS)LILY&%#Znsr~?RPZ>) z@5mSIugTe~DWM4f41;Ik literal 0 HcmV?d00001 diff --git a/Projectiles/TheObliterator.cs b/Projectiles/Melee/Yoyos/TheObliterator.cs similarity index 78% rename from Projectiles/TheObliterator.cs rename to Projectiles/Melee/Yoyos/TheObliterator.cs index f035ff3d67..d10cfdd678 100644 --- a/Projectiles/TheObliterator.cs +++ b/Projectiles/Melee/Yoyos/TheObliterator.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Generic; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Melee.Yoyos { public class TheObliterator : ModProjectile { @@ -18,7 +19,6 @@ namespace CalamityMod.Projectiles { projectile.CloneDefaults(ProjectileID.TheEyeOfCthulhu); projectile.width = 16; - projectile.scale = 1f; projectile.height = 16; projectile.penetrate = -1; projectile.extraUpdates = 1; @@ -71,24 +71,18 @@ namespace CalamityMod.Projectiles num440 = num437 / num440; num438 *= num440; num439 *= num440; - int projChoice = Main.rand.Next(2); - if (projChoice == 0) - { - projChoice = mod.ProjectileType("NebulaShot"); - } - else - { - projChoice = mod.ProjectileType("IceBeam"); - } if (projectile.owner == Main.myPlayer) { - int shoot = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, projChoice, (int)((double)projectile.damage * 0.75f), projectile.knockBack, projectile.owner, 0f, 0f); - Main.projectile[shoot].ranged = false; - Main.projectile[shoot].melee = true; + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("NebulaShot"), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 1f, 0f); } - return; } } } - } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 origin = new Vector2(10f, 10f); + spriteBatch.Draw(mod.GetTexture("Projectiles/Melee/Yoyos/TheObliteratorGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); + } + } } \ No newline at end of file diff --git a/Projectiles/Melee/Yoyos/TheObliterator.png b/Projectiles/Melee/Yoyos/TheObliterator.png new file mode 100644 index 0000000000000000000000000000000000000000..23674fe1b70011943374cd031a8804dbe8baf8c8 GIT binary patch literal 418 zcmV;T0bTxyP)p{OabcpA^r-$!3=lOoV=U3KW9>|?Q>2hBN_4RF#|Jehb zr7~#Lc9Qs0C;jYy=!lP@hvVSlU@37}n4HazDhnF5oh0t#+^aSz>@1bDgBxRFJ zZ(aw_=BJZ@?RQ(??aC^Syl76F6hZ{KjGKg8Gf-M9eI$C+Fe!_vg2! z->>FNi&t3t{3VC6nJKXOeiu~Az2NK1H{kU_K%BP{HE7=~2T|SVw>!fli9K=`enD)X z!WCw*4_miJE2qzQgZob(C+FX*wIr^63WL}_G2<~w(XY`J$5FV#eZ+!wwzsDJT>t<8 M07*qoM6N<$f~zvb=Kufz literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/Yoyos/TheObliteratorGlow.png b/Projectiles/Melee/Yoyos/TheObliteratorGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..759b17e6552ed93919e49973d7baa35bd0e95b76 GIT binary patch literal 128 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE;=yQhm|h(&L5f&}a0ga?euimcl% z3ja4YFfe!{z9}UE1ZL*6h4TxC&S_WFU8GbZ8()Nlj2>E@cM*00JFJL_t(o!{wJTZxcZf zg}*x|?ovdN7cPJgi=K^*h>+==ytRln{F+(xf}1?dgtw%H?tX$(W-3#(8!wr?0(tx=1)7P0JLAX z9YFhcI|Deb9|N#9T;pFxP9kGLFU4ZPBr?xo`|Y-855EqDL=ZtC5nC^LL^AEXcyRuF zQa%nkzSukfpm*2<;M3@%133KL1>pXT*2S6top-MQSh}?|XB^QP4$8ha(a4()U@-1y zmm%f8jqGqMbX-tE%y{_sfrb!nLhC4_!5zVo0Q`BSPZ) zn;(~Ejg)jfzwOO$Ej;q(hu66#r4E}LWZqW z6w}rkaY9JQe^B;aRmHobqr{a}2xzAPJJyfHs%)^2nZ}iLI1)QE^_c2eE0KA~DN88* zdE3d&P0yOeZhEo)#4518*EI5GHp>mquAd$v({^k*A_RrZteu#>HOvnpHiBu{H4PDq fME!a_O+@|zgt!TjMyOpU00000NkvXXu0mjfMSC!7 diff --git a/Projectiles/OnyxSharkBomb.cs b/Projectiles/OnyxSharkBomb.cs deleted file mode 100644 index 32326a4813..0000000000 --- a/Projectiles/OnyxSharkBomb.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles -{ - public class OnyxSharkBomb : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Shark"); - } - - public override void SetDefaults() - { - projectile.width = 30; - projectile.height = 30; - projectile.friendly = true; - projectile.penetrate = 1; - projectile.timeLeft = 300; - projectile.ranged = true; - } - - public override void AI() - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; - if (Math.Abs(projectile.velocity.X) >= 8f || Math.Abs(projectile.velocity.Y) >= 8f) - { - for (int num246 = 0; num246 < 2; num246++) - { - float num247 = 0f; - float num248 = 0f; - if (num246 == 1) - { - num247 = projectile.velocity.X * 0.5f; - num248 = projectile.velocity.Y * 0.5f; - } - int num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 109, 0f, 0f, 100, default(Color), 0.5f); - Main.dust[num249].scale *= 2f + (float)Main.rand.Next(10) * 0.1f; - Main.dust[num249].velocity *= 0.2f; - Main.dust[num249].noGravity = true; - num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 159, 0f, 0f, 100, default(Color), 0.25f); - Main.dust[num249].fadeIn = 1f + (float)Main.rand.Next(5) * 0.1f; - Main.dust[num249].velocity *= 0.05f; - } - } - } - - public override void Kill(int timeLeft) - { - for (int k = 0; k < 10; k++) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 109, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("OnyxExplosion"), (int)((double)projectile.damage), projectile.knockBack, projectile.owner, 0f, 0f); - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - for (int k = 0; k < 5; k++) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 159, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - } - float spread = 45f * 0.0174f; - double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y)- spread/2; - double deltaAngle = spread/8f; - double offsetAngle; - int i; - for (i = 0; i < 2; i++ ) - { - offsetAngle = (startAngle + deltaAngle * ( i + i * i ) / 2f ) + 32f * i; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)( Math.Sin(offsetAngle) * 5f ), (float)( Math.Cos(offsetAngle) * 5f ), mod.ProjectileType("SandyWaifuShark"), (int)((double)projectile.damage * 0.4f), projectile.knockBack, projectile.owner, 0f, 0f); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)( -Math.Sin(offsetAngle) * 5f ), (float)( -Math.Cos(offsetAngle) * 5f ), mod.ProjectileType("SandyWaifuShark"), (int)((double)projectile.damage * 0.4f), projectile.knockBack, projectile.owner, 0f, 0f); - } - } - } -} \ No newline at end of file diff --git a/Projectiles/Patreon/AtaraxiaHoming.cs b/Projectiles/Patreon/AtaraxiaHoming.cs new file mode 100644 index 0000000000..9fe6503bff --- /dev/null +++ b/Projectiles/Patreon/AtaraxiaHoming.cs @@ -0,0 +1,166 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class AtaraxiaHoming : ModProjectile + { + private static int NumAnimationFrames = 5; + private static int AnimationFrameTime = 9; + private static float HomingStartRange = 300f; + private static float HomingBreakRange = 1000f; + + private static int Lifespan = 180; + private static int IntangibleFrames = 12; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Definitely Not Exoblade"); + Main.projFrames[projectile.type] = NumAnimationFrames; + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.melee = true; + projectile.penetrate = 1; + projectile.extraUpdates = 1; + projectile.timeLeft = Lifespan; + projectile.ignoreWater = true; + } + + private bool HomingAI() + { + // Save current speed to AI variables + float speed = projectile.velocity.Length(); + if (projectile.ai[0] == 0f) + projectile.ai[0] = speed; + + // Variables for choosing an NPC to home in on + float posX = projectile.position.X; + float posY = projectile.position.Y; + float homingRange = HomingStartRange; + bool foundTarget = false; + int targetIndex = 0; + + // ai[1] stores the index of the current target plus one. 0 is none. + if (projectile.ai[1] == 0f) + { + // Find the closest target. The range decreases each time you find a closer target. + for (int i = 0; i < 200; ++i) + { + if (Main.npc[i].CanBeChasedBy(projectile, false)) + { + // Chlorophyte Bullets actually home in a diamond instead of a circle because they don't perform a square root here. + float d = Math.Abs(projectile.Center.X - Main.npc[i].Center.X) + Math.Abs(projectile.Center.Y - Main.npc[i].Center.Y); + if (d < homingRange && Collision.CanHit(projectile.Center, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height)) + { + homingRange = d; + posX = Main.npc[i].Center.X; + posY = Main.npc[i].Center.Y; + foundTarget = true; + targetIndex = i; + } + } + } + + // If at least one valid target was found, set ai[1] to store its index plus one. + if (foundTarget) + projectile.ai[1] = (float)(targetIndex + 1); + } + + // This is always the case after that loop for some reason. + foundTarget = false; + + // Ensure the current target is still valid + if (projectile.ai[1] > 0f) + { + targetIndex = (int)(projectile.ai[1] - 1f); + + // Chlorophyte Bullets will continue homing in unless their target is invincible. + if (Main.npc[targetIndex].active && Main.npc[targetIndex].CanBeChasedBy(projectile, false)) + { + float targetX = Main.npc[targetIndex].Center.X; + float targetY = Main.npc[targetIndex].Center.Y; + float d = Math.Abs(projectile.Center.X - targetX) + Math.Abs(projectile.Center.Y - targetY); + if (d < HomingBreakRange) + { + foundTarget = true; + posX = targetX; + posY = targetY; + } + } + else + projectile.ai[1] = 0f; + } + + // Non-friendly Chlorophyte Bullets will never actually home in, despite maintaining a target. + if (foundTarget && projectile.friendly) + { + float dx = posX - projectile.Center.X; + float dy = posY - projectile.Center.Y; + float distance = (float)Math.Sqrt(dx * dx + dy * dy); + float homingFactor = speed / distance; + dx *= homingFactor; + dy *= homingFactor; + + // The projectile loses 1/6th of its current velocity and replaces it with homing power. + float homingStrength = 6f; + projectile.velocity.X = (projectile.velocity.X * (homingStrength - 1f) + dx) / homingStrength; + projectile.velocity.Y = (projectile.velocity.Y * (homingStrength - 1f) + dy) / homingStrength; + + // Re-scale resulting velocity to the projectile's set maximum speed + projectile.velocity.Normalize(); + projectile.velocity *= speed; + return true; + } + return false; + } + + public override void AI() + { + drawOffsetX = -28; + drawOriginOffsetY = -2; + drawOriginOffsetX = 12; + projectile.rotation = projectile.velocity.ToRotation(); + + // Run homing code + bool homing = HomingAI(); + + // Light + Lighting.AddLight(projectile.Center, 0.3f, 0.1f, 0.45f); + + // Spawn dust with a 3/4 chance if currently homing in + if (homing && Main.rand.Next(4) != 3) + { + int idx = Dust.NewDust(projectile.Center, 1, 1, 70); + Main.dust[idx].position = projectile.Center; + Main.dust[idx].noGravity = true; + Main.dust[idx].velocity *= 0.25f; + } + + // Update animation + projectile.frameCounter++; + if (projectile.frameCounter > AnimationFrameTime) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame >= NumAnimationFrames) + projectile.frame = 0; + } + + // Cannot deal damage for the first several frames of existence. + public override bool CanDamage() + { + return (projectile.timeLeft < Lifespan - IntangibleFrames); + } + } +} diff --git a/Projectiles/Patreon/AtaraxiaHoming.png b/Projectiles/Patreon/AtaraxiaHoming.png new file mode 100644 index 0000000000000000000000000000000000000000..47e460ceded935f544853991fe9a09211878d03c GIT binary patch literal 839 zcmV-N1GxN&P)x!S_IoqT#Jy^Ey?LH`~|Dq({0cK*@x|y~9(lIarDuyNi7)_4= zuza{h8dv)46#(6#9^0fF$`2U;ai*mHO`o8V?|{_=Gs&qm9=QfU-BKL@%~S%=R^JQ2 zkB%k)DsRW6apz`^N$rEprws5wf_c{Mu)ek(?lXUv3YM%t`IOff^G$kYK@T zP*;0`_W2V4Ojg~qeeY<>zJCiRn3)Heh)MIHTOvg}4S+8z-=+RdpJ2d7ajd~;YiHKa zFMNsu@L(b7Pn%hnph&E$zEtX;pIx?1XlmC_1EBliYZG#^8QU+iYBMRX+05MOGXQL> zu)-`Zv#yEfzf6Fp<2&+tVdK~vz}aR5!fHHgGe)$vGka1!N3*|SRPOtx32b7 zbbB;g*JgBx#QT#U0JxL<7}!jJ8(i0*pgdG9ZvAO9Zg%;Be`j@rPv2SBN$VP%Gzrv| z<-qhUsegBC835r(iM-pN<5xA$c%=BnRMngoH(1Qdu3+l-(*R2|q%K?rQdE#kaI_xpI?`Rmg2 zzOb1MvCd{PSJh_3Ud&*JM{TBHHQ2DX#f0^>=XAm(@Sn}7 AnimationFrameTime) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame >= NumAnimationFrames) + projectile.frame = 0; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(BuffID.ShadowFlame, 180); + target.AddBuff(BuffID.Ichor, 180); + } + + // Explodes like Exoblade's Exobeams + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.NPCDeath55, projectile.Center); + + // Transform the projectile's hitbox into a big explosion + projectile.position = projectile.Center; + projectile.width = (projectile.height = 140); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + + Vector2 corner = new Vector2(projectile.position.X, projectile.position.Y); + for (int i = 0; i < 50; i++) + { + int idx = Dust.NewDust(corner, projectile.width, projectile.height, 86, 0f, 0f, 0, new Color(210, 0, 255), 2.2f); + Main.dust[idx].noGravity = true; + Main.dust[idx].velocity *= 2.5f; + + idx = Dust.NewDust(corner, projectile.width, projectile.height, 118, 0f, 0f, 100, new Color(210, 0, 255), 1.8f); + Main.dust[idx].noGravity = true; + Main.dust[idx].velocity *= 1.8f; + + idx = Dust.NewDust(corner, projectile.width, projectile.height, 71, 0f, 0f, 100, new Color(210, 0, 255), 1.0f); + Main.dust[idx].noGravity = true; + Main.dust[idx].velocity *= 4.0f; + } + projectile.Damage(); + } + } +} diff --git a/Projectiles/Patreon/AtaraxiaMain.png b/Projectiles/Patreon/AtaraxiaMain.png new file mode 100644 index 0000000000000000000000000000000000000000..ef904469474841f73985ebc0b9f65024e4b7fbd0 GIT binary patch literal 1327 zcmV+~1@~zd=LPTtJDA({(dQl+P7V=e=`BV%(L^x`n94Dz=l5n zz~DmFINw`8KHt>^7YjuI9&R>0fLnESy}4`-0Dnk*?yrkK0g&l;f?0b-bIcC_R>sBw zIQZ#;-V{po(#Z+{b&J%%lKN&>URLL6OcYEK6-DCxMfJmY`skwojK4V4@q!nw-2>p* z{0-xJ4jnk8)|2r7mhy#k5NwaZpnY9-S$$LMg(2gcY9ne$ld?59ne0N&9eKtes`biy zhZ7OiIyQd;fRj%==%tQe+`d6CJ}`=?Ciu&1N5XfQJYh61`sze))=Fwc>87!L`26Q7 zi@_*$Alnn7AC|(&y)eCMw4dUj(f*kgqdj+bF0{WCf(}Fz5uQ3d3c!`dn9=`fz5T}~ z0B=-ZHP(MUQa0L`?v@Qw&6*n7)BSTIFFfMDb^Syd0Jd3bB8Lc>PMrZCeS?$SOU0zHnL7R+r)9hNb`uGR{jfp~{SaKz5 zE2%dlo{U}br0_9363X7*b)8I07vKHJXiJ?;hZqc8$k^MPBZFQm zMuGp#3!xvbZv(JejLUA2aTTN$X@Z zF->Z8ebn$|YWHd>AIT)0qt~&wR`fl%U+JrBxy6$ai9{k%KYKC`{U-ol&Gp8UdD7qX z0B%<9h$pjC#1hTy+8KP(XP9)pC!S1P%tY0F_NqR{&gfk|8QYslpC{Ai!E}sIJ7afs z)#At|^RV4n&*kfE zW5eICMjB(jcrtsEpiOKm-)p^BCN7I`eV>eYGB!cG{>7F(&u8!792umQJ-E&U8<~B# z?~_TrCzB=SNl%?k z*`7^Yz06h~)~XN9sKlN1?~po~or=LkePXUs^IF8>Mj#%*=8|gY<#y|2Y)?k&WL!rw l4(=P!@eK&#$%sVv^)Hf8k)Y||lf(c3002ovPDHLkV1j}chRFZ` literal 0 HcmV?d00001 diff --git a/Projectiles/Patreon/AtaraxiaSide.cs b/Projectiles/Patreon/AtaraxiaSide.cs new file mode 100644 index 0000000000..624967cc08 --- /dev/null +++ b/Projectiles/Patreon/AtaraxiaSide.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.Patreon; + +namespace CalamityMod.Projectiles.Patreon +{ + public class AtaraxiaSide : ModProjectile + { + private static int NumAnimationFrames = 5; + private static int AnimationFrameTime = 9; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Also Not Exoblade"); + Main.projFrames[projectile.type] = NumAnimationFrames; + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.melee = true; + projectile.penetrate = 1; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 5; + projectile.extraUpdates = 2; + projectile.timeLeft = 180; + } + + public override void AI() + { + drawOffsetX = -28; + drawOriginOffsetY = -2; + drawOriginOffsetX = 12; + projectile.rotation = projectile.velocity.ToRotation(); + + // Light + Lighting.AddLight(projectile.Center, 0.3f, 0.1f, 0.45f); + + // Spawn dust with a 3/4 chance + if (Main.rand.Next(4) != 3) + { + int idx = Dust.NewDust(projectile.Center, 1, 1, 70); + Main.dust[idx].position = projectile.Center; + Main.dust[idx].noGravity = true; + Main.dust[idx].velocity *= 0.25f; + } + + // Update animation + projectile.frameCounter++; + if (projectile.frameCounter > AnimationFrameTime) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame >= NumAnimationFrames) + projectile.frame = 0; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(BuffID.ShadowFlame, 180); + target.AddBuff(BuffID.Ichor, 180); + } + + // Spawns 6 smaller projectiles that slowly glide outward and ignore iframes + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item89, projectile.Center); + + // Individual split projectiles deal 7.5% of the weapon's base damage per hit. + int numSplits = 6; + int splitID = mod.ProjectileType("AtaraxiaSplit"); + int damage = (int)(0.075f * Ataraxia.BaseDamage); + float angleVariance = MathHelper.TwoPi / (float)(numSplits); + Vector2 projVec = new Vector2(4.5f, 0f).RotatedByRandom(MathHelper.TwoPi); + + for (int i = 0; i < numSplits; ++i) + { + projVec = projVec.RotatedBy(angleVariance); + if(projectile.owner == Main.myPlayer) + Projectile.NewProjectile(projectile.Center, projVec, splitID, damage, 1.5f, Main.myPlayer, 0.0f, 0.0f); + } + } + } +} diff --git a/Projectiles/Patreon/AtaraxiaSide.png b/Projectiles/Patreon/AtaraxiaSide.png new file mode 100644 index 0000000000000000000000000000000000000000..47e460ceded935f544853991fe9a09211878d03c GIT binary patch literal 839 zcmV-N1GxN&P)x!S_IoqT#Jy^Ey?LH`~|Dq({0cK*@x|y~9(lIarDuyNi7)_4= zuza{h8dv)46#(6#9^0fF$`2U;ai*mHO`o8V?|{_=Gs&qm9=QfU-BKL@%~S%=R^JQ2 zkB%k)DsRW6apz`^N$rEprws5wf_c{Mu)ek(?lXUv3YM%t`IOff^G$kYK@T zP*;0`_W2V4Ojg~qeeY<>zJCiRn3)Heh)MIHTOvg}4S+8z-=+RdpJ2d7ajd~;YiHKa zFMNsu@L(b7Pn%hnph&E$zEtX;pIx?1XlmC_1EBliYZG#^8QU+iYBMRX+05MOGXQL> zu)-`Zv#yEfzf6Fp<2&+tVdK~vz}aR5!fHHgGe)$vGka1!N3*|SRPOtx32b7 zbbB;g*JgBx#QT#U0JxL<7}!jJ8(i0*pgdG9ZvAO9Zg%;Be`j@rPv2SBN$VP%Gzrv| z<-qhUsegBC835r(iM-pN<5xA$c%=BnRMngoH(1Qdu3+l-(*R2|q%K?rQdE#kaI_xpI?`Rmg2 zzOb1MvCd{PSJh_3Ud&*JM{TBHHQ2DX#f0^>=XAm(@Sn}7 projectile.alpha - 60) + { + int idx = Dust.NewDust(projectile.Center, 1, 1, 71); + Main.dust[idx].position = projectile.Center - projectile.velocity * 0.7f; + Main.dust[idx].noGravity = true; + Main.dust[idx].velocity *= 0.3f; + Main.dust[idx].velocity += projectile.velocity * 0.4f; + Main.dust[idx].scale = Main.rand.NextFloat(0.5f, 1.0f); + Main.dust[idx].alpha = Main.rand.Next(80, 200); + } + } + } +} diff --git a/Projectiles/Patreon/AtaraxiaSplit.png b/Projectiles/Patreon/AtaraxiaSplit.png new file mode 100644 index 0000000000000000000000000000000000000000..04b9e33a9eba6ae8513c4c00397e2553e3c5f072 GIT binary patch literal 227 zcmeAS@N?(olHy`uVBq!ia0vp^LO{&L!3HFEdh;y=QmZ^&978lFCO>&5kl4`lpT~tE zTGG*tjg77Cu>ZZq9max-XG$Ds()+OV0`H*{o7|?(D4Ws<0?X^gyG}FPZk1g5O36*x zOcSVst!=i?{(r^>1_m`d?{+LoFv}O?vj6(oM8vK?%a*w`_Q+YqPxFCV6aVpNf|Rq_ zGP{E5Qhz;>*44My8v(T%s1(^8%@X(;>!K6z|M;;J2M!!4nEX;aH-?2FD^tE`)^)Gz QKvy$(y85}Sb4q9e00DqdPXGV_ literal 0 HcmV?d00001 diff --git a/Projectiles/Patreon/DarkSpark.cs b/Projectiles/Patreon/DarkSpark.cs index e2fa4c9ec6..7ffa3e216d 100644 --- a/Projectiles/Patreon/DarkSpark.cs +++ b/Projectiles/Patreon/DarkSpark.cs @@ -1,217 +1,217 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.Enums; - -namespace CalamityMod.Projectiles.Patreon -{ - public class DarkSpark : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Crystal"); - Main.projFrames[projectile.type] = 4; - } - - public override void SetDefaults() - { - projectile.width = 14; - projectile.height = 22; - projectile.friendly = true; - projectile.penetrate = -1; - projectile.tileCollide = false; - projectile.magic = true; - projectile.ignoreWater = true; - } - - public override void AI() - { - Player player = Main.player[projectile.owner]; - float num = 0f; - if (projectile.spriteDirection == -1) - { - num = 3.14159274f; - } - Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true); - float num26 = 30f; - if (projectile.ai[0] > 360f) - { - num26 = 15f; - } - if (projectile.ai[0] > 480f) - { - num26 = 5f; - } - projectile.damage = (int)((float)player.inventory[player.selectedItem].damage * player.magicDamage); - projectile.ai[0] += 1f; - projectile.ai[1] += 1f; - if (projectile.localAI[0] == 0f) - { - projectile.localAI[0] = 1f; - projectile.localAI[1] = 255f; - } - if (projectile.localAI[1] > 0f) - { - projectile.localAI[1] -= 1f; - } - bool flag9 = false; - if (projectile.ai[0] % num26 == 0f) - { - flag9 = true; - } - int num27 = 10; - bool flag10 = false; - if (projectile.ai[0] % num26 == 0f) - { - flag10 = true; - } - if (projectile.ai[1] >= 1f) - { - projectile.ai[1] = 0f; - flag10 = true; - if (Main.myPlayer == projectile.owner) - { - float scaleFactor5 = player.inventory[player.selectedItem].shootSpeed * projectile.scale; - Vector2 value12 = vector; - Vector2 value13 = Main.screenPosition + new Vector2((float)Main.mouseX, (float)Main.mouseY) - value12; - if (player.gravDir == -1f) - { - value13.Y = (float)(Main.screenHeight - Main.mouseY) + Main.screenPosition.Y - value12.Y; - } - Vector2 vector11 = Vector2.Normalize(value13); - if (float.IsNaN(vector11.X) || float.IsNaN(vector11.Y)) - { - vector11 = -Vector2.UnitY; - } - vector11 = Vector2.Normalize(Vector2.Lerp(vector11, Vector2.Normalize(projectile.velocity), 0.92f)); - vector11 *= scaleFactor5; - if (vector11.X != projectile.velocity.X || vector11.Y != projectile.velocity.Y) - { - projectile.netUpdate = true; - } - projectile.velocity = vector11; - } - } - projectile.frameCounter++; - int num28 = (projectile.ai[0] < 480f) ? 3 : 1; - if (projectile.frameCounter >= num28) - { - projectile.frameCounter = 0; - if (++projectile.frame >= 4) - { - projectile.frame = 0; - } - } - if (projectile.soundDelay <= 0) - { - projectile.soundDelay = num27; - projectile.soundDelay *= 2; - if (projectile.ai[0] != 1f) - { - Main.PlaySound(SoundID.Item15, projectile.position); - } - } - if (flag10 && Main.myPlayer == projectile.owner) - { - bool flag11 = !flag9 || player.CheckMana(player.inventory[player.selectedItem].mana, true, false); - bool flag12 = player.channel && flag11 && !player.noItems && !player.CCed; - if (flag12) - { - if (projectile.ai[0] == 1f) - { - Vector2 center3 = projectile.Center; - Vector2 vector12 = Vector2.Normalize(projectile.velocity); - if (float.IsNaN(vector12.X) || float.IsNaN(vector12.Y)) - { - vector12 = -Vector2.UnitY; - } - int num29 = projectile.damage; - for (int l = 0; l < 7; l++) - { - Projectile.NewProjectile(center3.X, center3.Y, vector12.X, vector12.Y, mod.ProjectileType("DarkSparkBeam"), num29, projectile.knockBack, projectile.owner, (float)l, (float)projectile.whoAmI); - } - projectile.netUpdate = true; - } - } - else - { - projectile.Kill(); - } - } - projectile.position = player.RotatedRelativePoint(player.MountedCenter, true) - projectile.Size / 2f; - projectile.rotation = projectile.velocity.ToRotation() + num; - projectile.spriteDirection = projectile.direction; - projectile.timeLeft = 2; - player.ChangeDir(projectile.direction); - player.heldProj = projectile.whoAmI; - player.itemTime = 2; - player.itemAnimation = 2; - player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction)); - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - Vector2 mountedCenter = Main.player[projectile.owner].MountedCenter; - Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)projectile.position.X + (double)projectile.width * 0.5) / 16, (int)(((double)projectile.position.Y + (double)projectile.height * 0.5) / 16.0)); - if (projectile.hide && !ProjectileID.Sets.DontAttachHideToAlpha[projectile.type]) - { - color25 = Lighting.GetColor((int)mountedCenter.X / 16, (int)(mountedCenter.Y / 16f)); - } - SpriteEffects spriteEffects = SpriteEffects.None; - if (projectile.spriteDirection == -1) - { - spriteEffects = SpriteEffects.FlipHorizontally; - } - Texture2D texture2D14 = Main.projectileTexture[projectile.type]; - int num215 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; - int y7 = num215 * projectile.frame; - Vector2 vector27 = (projectile.position + new Vector2((float)projectile.width, (float)projectile.height) / 2f + Vector2.UnitY * projectile.gfxOffY - Main.screenPosition).Floor(); - float scale5 = 1f; - if (Main.player[projectile.owner].shroomiteStealth && Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].ranged) - { - float num216 = Main.player[projectile.owner].stealth; - if ((double)num216 < 0.03) - { - num216 = 0.03f; - } - float arg_97B3_0 = (1f + num216 * 10f) / 11f; - color25 *= num216; - scale5 = num216; - } - if (Main.player[projectile.owner].setVortex && Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].ranged) - { - float num217 = Main.player[projectile.owner].stealth; - if ((double)num217 < 0.03) - { - num217 = 0.03f; - } - float arg_9854_0 = (1f + num217 * 10f) / 11f; - color25 = color25.MultiplyRGBA(new Microsoft.Xna.Framework.Color(Vector4.Lerp(Vector4.One, new Vector4(0.16f, 0.12f, 0f, 0f), 1f - num217))); - scale5 = num217; - } - Main.spriteBatch.Draw(texture2D14, vector27, new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y7, texture2D14.Width, num215)), projectile.GetAlpha(color25), projectile.rotation, new Vector2((float)texture2D14.Width / 2f, (float)num215 / 2f), projectile.scale, spriteEffects, 0f); - float scaleFactor2 = (float)Math.Cos((double)(6.28318548f * (projectile.ai[0] / 120f))) * 2f + 2f; - if (projectile.ai[0] > 480f) - { - scaleFactor2 = 4f; - } - for (float num218 = 0f; num218 < 4f; num218 += 1f) - { - Main.spriteBatch.Draw(texture2D14, vector27 + Vector2.UnitY.RotatedBy((double)(num218 * 6.28318548f / 4f), default(Vector2)) * scaleFactor2, new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y7, texture2D14.Width, num215)), projectile.GetAlpha(color25).MultiplyRGBA(new Microsoft.Xna.Framework.Color(255, 255, 255, 0)) * 0.03f, projectile.rotation, new Vector2((float)texture2D14.Width / 2f, (float)num215 / 2f), projectile.scale, spriteEffects, 0f); - } - return false; - } - - public override Color? GetAlpha(Color lightColor) - { - if (projectile.ai[0] < 255f) - return new Color((int)(projectile.ai[0]), (int)(projectile.ai[0]), (int)(projectile.ai[0]), (int)(projectile.localAI[1])); - else - return new Color(255, 255, 255, 0); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Enums; + +namespace CalamityMod.Projectiles.Patreon +{ + public class DarkSpark : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Crystal"); + Main.projFrames[projectile.type] = 4; + } + + public override void SetDefaults() + { + projectile.width = 14; + projectile.height = 22; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.tileCollide = false; + projectile.magic = true; + projectile.ignoreWater = true; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + float num = 0f; + if (projectile.spriteDirection == -1) + { + num = 3.14159274f; + } + Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true); + float num26 = 30f; + if (projectile.ai[0] > 360f) + { + num26 = 15f; + } + if (projectile.ai[0] > 480f) + { + num26 = 5f; + } + projectile.damage = (int)((float)player.inventory[player.selectedItem].damage * player.magicDamage); + projectile.ai[0] += 1f; + projectile.ai[1] += 1f; + if (projectile.localAI[0] == 0f) + { + projectile.localAI[0] = 1f; + projectile.localAI[1] = 255f; + } + if (projectile.localAI[1] > 0f) + { + projectile.localAI[1] -= 1f; + } + bool flag9 = false; + if (projectile.ai[0] % num26 == 0f) + { + flag9 = true; + } + int num27 = 10; + bool flag10 = false; + if (projectile.ai[0] % num26 == 0f) + { + flag10 = true; + } + if (projectile.ai[1] >= 1f) + { + projectile.ai[1] = 0f; + flag10 = true; + if (Main.myPlayer == projectile.owner) + { + float scaleFactor5 = player.inventory[player.selectedItem].shootSpeed * projectile.scale; + Vector2 value12 = vector; + Vector2 value13 = Main.screenPosition + new Vector2((float)Main.mouseX, (float)Main.mouseY) - value12; + if (player.gravDir == -1f) + { + value13.Y = (float)(Main.screenHeight - Main.mouseY) + Main.screenPosition.Y - value12.Y; + } + Vector2 vector11 = Vector2.Normalize(value13); + if (float.IsNaN(vector11.X) || float.IsNaN(vector11.Y)) + { + vector11 = -Vector2.UnitY; + } + vector11 = Vector2.Normalize(Vector2.Lerp(vector11, Vector2.Normalize(projectile.velocity), 0.92f)); + vector11 *= scaleFactor5; + if (vector11.X != projectile.velocity.X || vector11.Y != projectile.velocity.Y) + { + projectile.netUpdate = true; + } + projectile.velocity = vector11; + } + } + projectile.frameCounter++; + int num28 = (projectile.ai[0] < 480f) ? 3 : 1; + if (projectile.frameCounter >= num28) + { + projectile.frameCounter = 0; + if (++projectile.frame >= 4) + { + projectile.frame = 0; + } + } + if (projectile.soundDelay <= 0) + { + projectile.soundDelay = num27; + projectile.soundDelay *= 2; + if (projectile.ai[0] != 1f) + { + Main.PlaySound(SoundID.Item15, projectile.position); + } + } + if (flag10 && Main.myPlayer == projectile.owner) + { + bool flag11 = !flag9 || player.CheckMana(player.inventory[player.selectedItem].mana, true, false); + bool flag12 = player.channel && flag11 && !player.noItems && !player.CCed; + if (flag12) + { + if (projectile.ai[0] == 1f) + { + Vector2 center3 = projectile.Center; + Vector2 vector12 = Vector2.Normalize(projectile.velocity); + if (float.IsNaN(vector12.X) || float.IsNaN(vector12.Y)) + { + vector12 = -Vector2.UnitY; + } + int num29 = projectile.damage; + for (int l = 0; l < 7; l++) + { + Projectile.NewProjectile(center3.X, center3.Y, vector12.X, vector12.Y, mod.ProjectileType("DarkSparkBeam"), num29, projectile.knockBack, projectile.owner, (float)l, (float)projectile.whoAmI); + } + projectile.netUpdate = true; + } + } + else + { + projectile.Kill(); + } + } + projectile.position = player.RotatedRelativePoint(player.MountedCenter, true) - projectile.Size / 2f; + projectile.rotation = projectile.velocity.ToRotation() + num; + projectile.spriteDirection = projectile.direction; + projectile.timeLeft = 2; + player.ChangeDir(projectile.direction); + player.heldProj = projectile.whoAmI; + player.itemTime = 2; + player.itemAnimation = 2; + player.itemRotation = (float)Math.Atan2((double)(projectile.velocity.Y * (float)projectile.direction), (double)(projectile.velocity.X * (float)projectile.direction)); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 mountedCenter = Main.player[projectile.owner].MountedCenter; + Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)((double)projectile.position.X + (double)projectile.width * 0.5) / 16, (int)(((double)projectile.position.Y + (double)projectile.height * 0.5) / 16.0)); + if (projectile.hide && !ProjectileID.Sets.DontAttachHideToAlpha[projectile.type]) + { + color25 = Lighting.GetColor((int)mountedCenter.X / 16, (int)(mountedCenter.Y / 16f)); + } + SpriteEffects spriteEffects = SpriteEffects.None; + if (projectile.spriteDirection == -1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + Texture2D texture2D14 = Main.projectileTexture[projectile.type]; + int num215 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; + int y7 = num215 * projectile.frame; + Vector2 vector27 = (projectile.position + new Vector2((float)projectile.width, (float)projectile.height) / 2f + Vector2.UnitY * projectile.gfxOffY - Main.screenPosition).Floor(); + float scale5 = 1f; + if (Main.player[projectile.owner].shroomiteStealth && Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].ranged) + { + float num216 = Main.player[projectile.owner].stealth; + if ((double)num216 < 0.03) + { + num216 = 0.03f; + } + float arg_97B3_0 = (1f + num216 * 10f) / 11f; + color25 *= num216; + scale5 = num216; + } + if (Main.player[projectile.owner].setVortex && Main.player[projectile.owner].inventory[Main.player[projectile.owner].selectedItem].ranged) + { + float num217 = Main.player[projectile.owner].stealth; + if ((double)num217 < 0.03) + { + num217 = 0.03f; + } + float arg_9854_0 = (1f + num217 * 10f) / 11f; + color25 = color25.MultiplyRGBA(new Microsoft.Xna.Framework.Color(Vector4.Lerp(Vector4.One, new Vector4(0.16f, 0.12f, 0f, 0f), 1f - num217))); + scale5 = num217; + } + Main.spriteBatch.Draw(texture2D14, vector27, new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y7, texture2D14.Width, num215)), projectile.GetAlpha(color25), projectile.rotation, new Vector2((float)texture2D14.Width / 2f, (float)num215 / 2f), projectile.scale, spriteEffects, 0f); + float scaleFactor2 = (float)Math.Cos((double)(6.28318548f * (projectile.ai[0] / 120f))) * 2f + 2f; + if (projectile.ai[0] > 480f) + { + scaleFactor2 = 4f; + } + for (float num218 = 0f; num218 < 4f; num218 += 1f) + { + Main.spriteBatch.Draw(texture2D14, vector27 + Vector2.UnitY.RotatedBy((double)(num218 * 6.28318548f / 4f), default(Vector2)) * scaleFactor2, new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y7, texture2D14.Width, num215)), projectile.GetAlpha(color25).MultiplyRGBA(new Microsoft.Xna.Framework.Color(255, 255, 255, 0)) * 0.03f, projectile.rotation, new Vector2((float)texture2D14.Width / 2f, (float)num215 / 2f), projectile.scale, spriteEffects, 0f); + } + return false; + } + + public override Color? GetAlpha(Color lightColor) + { + if (projectile.ai[0] < 255f) + return new Color((int)(projectile.ai[0]), (int)(projectile.ai[0]), (int)(projectile.ai[0]), (int)(projectile.localAI[1])); + else + return new Color(255, 255, 255, 0); + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/DarkSparkBeam.cs b/Projectiles/Patreon/DarkSparkBeam.cs index 1cb90ab12a..26ca70ccfa 100644 --- a/Projectiles/Patreon/DarkSparkBeam.cs +++ b/Projectiles/Patreon/DarkSparkBeam.cs @@ -1,295 +1,295 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.Enums; -using Terraria.GameContent.Shaders; -using Terraria.Graphics.Effects; - -namespace CalamityMod.Projectiles.Patreon -{ - public class DarkSparkBeam : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Beam"); - } - - public override void SetDefaults() - { - projectile.width = 18; - projectile.height = 18; - projectile.friendly = true; - projectile.magic = true; - projectile.penetrate = -1; - projectile.alpha = 255; - projectile.tileCollide = false; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 10; - } - - public override void AI() - { - Vector2? vector71 = null; - if (projectile.velocity.HasNaNs() || projectile.velocity == Vector2.Zero) - { - projectile.velocity = -Vector2.UnitY; - } - if (projectile.type != mod.ProjectileType("DarkSparkBeam") || !Main.projectile[(int)projectile.ai[1]].active || Main.projectile[(int)projectile.ai[1]].type != mod.ProjectileType("DarkSpark")) - { - projectile.Kill(); - return; - } - float num810 = (float)((int)projectile.ai[0]) - 2.5f; - Vector2 value36 = Vector2.Normalize(Main.projectile[(int)projectile.ai[1]].velocity); - Projectile projectile2 = Main.projectile[(int)projectile.ai[1]]; - float num811 = num810 * 0.5235988f; - Vector2 value37 = Vector2.Zero; - float num812; //0 to 1 - float y; //6 to 20 - float num813; //1.75 to 20 - float scaleFactor6; //-22 to -2 - Color color = new Color(1, 1, 1, 127); - projectile.Opacity = 1f; - if (projectile2.ai[0] < 720f) - { - num812 = 0f + projectile2.ai[0] / 1440f; //0 to 0.5 - y = 6f + projectile2.ai[0] / 720f * 7f; - if (projectile2.ai[0] > 360f) - { - int colorValue = (int)((0.01f + (((projectile2.ai[0] - 360f) / 360f) * 2.55f)) * 100f); - color = new Color(colorValue, colorValue, colorValue, 127); - } - if (projectile2.ai[0] < 480f) - { - num813 = 1.75f/* + 4f * (projectile2.ai[0] / 120f)*/; //20 to 16 - } - else - { - num813 = 3f + 5f * ((projectile2.ai[0] - 480f) / 240f); //7.99 to 3.01 - } - scaleFactor6 = -2f - projectile2.ai[0] / 720f * 5f; - } - else - { - float colorLimit = projectile2.ai[0] - 720f; - if (colorLimit > 255f) - { - colorLimit = 255f; - } - switch ((int)projectile.ai[0]) //R O Y G B I V - { - case 0: - color = new Color(255, 255 - (int)colorLimit, 255 - (int)colorLimit, 127); //red - break; - case 1: - color = new Color(255, 255 - (int)(colorLimit * 0.3529412f), 255 - (int)colorLimit, 127); //orange - break; - case 2: - color = new Color(255, 255, 255 - (int)colorLimit, 127); //yellow - break; - case 3: - color = new Color(255 - (int)colorLimit, 255 - (int)(colorLimit * 0.5f), 255 - (int)colorLimit, 127); //green - break; - case 4: - color = new Color(255 - (int)colorLimit, 255 - (int)colorLimit, 255, 127); //blue - break; - case 5: - color = new Color(255 - (int)(colorLimit * 0.7058824f), 255 - (int)colorLimit, 255 - (int)(colorLimit * 0.4901961), 127); //indigo - break; - case 6: - color = new Color(255 - (int)(colorLimit * 0.0666667f), 255 - (int)(colorLimit * 0.4901961), 255 - (int)(colorLimit * 0.0666667f), 127); //violet - break; - } - num812 = 0.5f; //0f, inverted - num813 = 10.875f; //1.75f, inverted - y = 13f; //6f, inverted - scaleFactor6 = -7f; //-2, inverted - } - float num814 = (projectile2.ai[0] + num810 * num813) / (num813 * 6f) * 6.28318548f; - num811 = Vector2.UnitY.RotatedBy((double)num814, default(Vector2)).Y * 0.5235988f * num812; - value37 = (Vector2.UnitY.RotatedBy((double)num814, default(Vector2)) * new Vector2(4f, y)).RotatedBy((double)projectile2.velocity.ToRotation(), default(Vector2)); - projectile.position = projectile2.Center + value36 * 16f - projectile.Size / 2f + new Vector2(0f, -Main.projectile[(int)projectile.ai[1]].gfxOffY); - projectile.position += projectile2.velocity.ToRotation().ToRotationVector2() * scaleFactor6; - projectile.position += value37; - projectile.velocity = Vector2.Normalize(projectile2.velocity).RotatedBy((double)num811, default(Vector2)); - projectile.scale = 1.5f * (1.5f - num812); - projectile.damage = projectile2.damage; - double damageMult = 1.0 + (double)(projectile2.ai[0] * 0.0025f); //1 to 3.5 - if (damageMult > 3.5) - { - damageMult = 3.5; - } - if (projectile2.ai[0] >= 720f) - { - projectile.damage = (int)((double)projectile.damage * damageMult); - vector71 = new Vector2?(projectile2.Center); - } - if (!Collision.CanHitLine(Main.player[projectile.owner].Center, 0, 0, projectile2.Center, 0, 0)) - { - vector71 = new Vector2?(Main.player[projectile.owner].Center); - } - projectile.friendly = (projectile2.ai[0] > 120f); - if (projectile.velocity.HasNaNs() || projectile.velocity == Vector2.Zero) - { - projectile.velocity = -Vector2.UnitY; - } - float num818 = projectile.velocity.ToRotation(); - projectile.rotation = num818 - 1.57079637f; - projectile.velocity = num818.ToRotationVector2(); - float num819 = 2f; - float num820 = 0f; - Vector2 samplingPoint = projectile.Center; - if (vector71.HasValue) - { - samplingPoint = vector71.Value; - } - float[] array3 = new float[(int)num819]; - Collision.LaserScan(samplingPoint, projectile.velocity, num820 * projectile.scale, 2400f, array3); - float num821 = 0f; - for (int num822 = 0; num822 < array3.Length; num822++) - { - num821 += array3[num822]; - } - num821 /= num819; - float amount = 0.75f; - projectile.localAI[1] = MathHelper.Lerp(projectile.localAI[1], num821, amount); - if (Math.Abs(projectile.localAI[1] - num821) < 100f && projectile.scale > 0.15f) - { - //color.A = 0; - Vector2 vector80 = projectile.Center + projectile.velocity * (projectile.localAI[1] - 14.5f * projectile.scale); - for (int num843 = 0; num843 < 2; num843++) - { - float num844 = projectile.velocity.ToRotation() + ((Main.rand.Next(2) == 1) ? -1f : 1f) * 1.57079637f; - float num845 = (float)Main.rand.NextDouble() * 0.8f + 1f; - Vector2 vector81 = new Vector2((float)Math.Cos((double)num844) * num845, (float)Math.Sin((double)num844) * num845); - int num846 = Dust.NewDust(vector80, 0, 0, 267, vector81.X, vector81.Y, 0, color, 3.3f); //267 - Main.dust[num846].color = color; - Main.dust[num846].scale = 1.2f; - if (projectile.scale > 1f) - { - Main.dust[num846].velocity *= projectile.scale; - Main.dust[num846].scale *= projectile.scale; - } - Main.dust[num846].noGravity = true; - if (projectile.scale != 1.4f) - { - Dust dust9 = Dust.CloneDust(num846); - dust9.color = color; - dust9.scale /= 2f; - dust9.noGravity = true; - } - Main.dust[num846].color = color; - } - if (Main.rand.Next(5) == 0) - { - Vector2 value42 = projectile.velocity.RotatedBy(1.5707963705062866, default(Vector2)) * ((float)Main.rand.NextDouble() - 0.5f) * (float)projectile.width; - int num847 = Dust.NewDust(vector80 + value42 - Vector2.One * 4f, 8, 8, 267, 0f, 0f, 100, color, 5f); - Main.dust[num847].velocity *= 0.5f; - Main.dust[num847].noGravity = true; - Main.dust[num847].velocity.Y = -Math.Abs(Main.dust[num847].velocity.Y); - } - DelegateMethods.v3_1 = color.ToVector3() * 0.3f; - float value43 = 0.1f * (float)Math.Sin((double)(Main.GlobalTime * 20f)); - Vector2 size = new Vector2(projectile.velocity.Length() * projectile.localAI[1], (float)projectile.width * projectile.scale); - float num848 = projectile.velocity.ToRotation(); - if (Main.netMode != 2) - { - ((WaterShaderData)Filters.Scene["WaterDistortion"].GetShader()).QueueRipple(projectile.position + new Vector2(size.X * 0.5f, 0f).RotatedBy((double)num848, default(Vector2)), color, size, RippleShape.Square, num848); - } - Utils.PlotTileLine(projectile.Center, projectile.Center + projectile.velocity * projectile.localAI[1], (float)projectile.width * projectile.scale, new Utils.PerLinePoint(DelegateMethods.CastLight)); - return; - } - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - if (projectile.velocity == Vector2.Zero) - { - return false; - } - Texture2D tex = Main.projectileTexture[projectile.type]; - float num228 = projectile.localAI[1]; - Projectile projectile2 = Main.projectile[(int)projectile.ai[1]]; - Color color = new Color(1, 1, 1, 127); - if (projectile2.ai[0] < 720f) - { - if (projectile2.ai[0] > 360f) - { - int colorValue = (int)((0.01f + (((projectile2.ai[0] - 360f) / 360f) * 2.55f)) * 100f); - color = new Color(colorValue, colorValue, colorValue, 127); - } - } - else - { - float colorLimit = projectile2.ai[0] - 720f; - if (colorLimit > 255f) - { - colorLimit = 255f; - } - switch ((int)projectile.ai[0]) //R O Y G B I V - { - case 0: - color = new Color(255, 255 - (int)colorLimit, 255 - (int)colorLimit, 127); //red - break; - case 1: - color = new Color(255, 255 - (int)(colorLimit * 0.3529412f), 255 - (int)colorLimit, 127); //orange - break; - case 2: - color = new Color(255, 255, 255 - (int)colorLimit, 127); //yellow - break; - case 3: - color = new Color(255 - (int)colorLimit, 255 - (int)(colorLimit * 0.5f), 255 - (int)colorLimit, 127); //green - break; - case 4: - color = new Color(255 - (int)colorLimit, 255 - (int)colorLimit, 255, 127); //blue - break; - case 5: - color = new Color(255 - (int)(colorLimit * 0.7058824f), 255 - (int)colorLimit, 255 - (int)(colorLimit * 0.4901961), 127); //indigo - break; - case 6: - color = new Color(255 - (int)(colorLimit * 0.0666667f), 255 - (int)(colorLimit * 0.4901961), 255 - (int)(colorLimit * 0.0666667f), 127); //violet - break; - } - } - Microsoft.Xna.Framework.Color value25 = color; - //value25.A = 0; - Vector2 value26 = projectile.Center.Floor(); - value26 += projectile.velocity * projectile.scale * 10.5f; - num228 -= projectile.scale * 14.5f * projectile.scale; - Vector2 vector29 = new Vector2(projectile.scale); - DelegateMethods.f_1 = 1f; - DelegateMethods.c_1 = value25 * 0.75f * projectile.Opacity; - Vector2 projPos = projectile.oldPos[0]; - projPos = new Vector2((float)projectile.width, (float)projectile.height) / 2f + Vector2.UnitY * projectile.gfxOffY - Main.screenPosition; - Utils.DrawLaser(Main.spriteBatch, tex, value26 - Main.screenPosition, value26 + projectile.velocity * num228 - Main.screenPosition, vector29, new Utils.LaserLineFraming(DelegateMethods.RainbowLaserDraw)); - DelegateMethods.c_1 = color * 0.75f * projectile.Opacity; - Utils.DrawLaser(Main.spriteBatch, tex, value26 - Main.screenPosition, value26 + projectile.velocity * num228 - Main.screenPosition, vector29 / 2f, new Utils.LaserLineFraming(DelegateMethods.RainbowLaserDraw)); - return false; - } - - public override void CutTiles() - { - DelegateMethods.tilecut_0 = TileCuttingContext.AttackProjectile; - Vector2 unit = projectile.velocity; - Utils.PlotTileLine(projectile.Center, projectile.Center + unit * projectile.localAI[1], (float)projectile.width * projectile.scale, new Utils.PerLinePoint(DelegateMethods.CutTiles)); - } - - public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) - { - if (projHitbox.Intersects(targetHitbox)) - { - return true; - } - float num6 = 0f; - if (Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), projectile.Center, projectile.Center + projectile.velocity * projectile.localAI[1], 22f * projectile.scale, ref num6)) - { - return true; - } - return false; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Enums; +using Terraria.GameContent.Shaders; +using Terraria.Graphics.Effects; + +namespace CalamityMod.Projectiles.Patreon +{ + public class DarkSparkBeam : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Beam"); + } + + public override void SetDefaults() + { + projectile.width = 18; + projectile.height = 18; + projectile.friendly = true; + projectile.magic = true; + projectile.penetrate = -1; + projectile.alpha = 255; + projectile.tileCollide = false; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + } + + public override void AI() + { + Vector2? vector71 = null; + if (projectile.velocity.HasNaNs() || projectile.velocity == Vector2.Zero) + { + projectile.velocity = -Vector2.UnitY; + } + if (projectile.type != mod.ProjectileType("DarkSparkBeam") || !Main.projectile[(int)projectile.ai[1]].active || Main.projectile[(int)projectile.ai[1]].type != mod.ProjectileType("DarkSpark")) + { + projectile.Kill(); + return; + } + float num810 = (float)((int)projectile.ai[0]) - 2.5f; + Vector2 value36 = Vector2.Normalize(Main.projectile[(int)projectile.ai[1]].velocity); + Projectile projectile2 = Main.projectile[(int)projectile.ai[1]]; + float num811 = num810 * 0.5235988f; + Vector2 value37 = Vector2.Zero; + float num812; //0 to 1 + float y; //6 to 20 + float num813; //1.75 to 20 + float scaleFactor6; //-22 to -2 + Color color = new Color(1, 1, 1, 127); + projectile.Opacity = 1f; + if (projectile2.ai[0] < 720f) + { + num812 = 0f + projectile2.ai[0] / 1440f; //0 to 0.5 + y = 6f + projectile2.ai[0] / 720f * 7f; + if (projectile2.ai[0] > 360f) + { + int colorValue = (int)((0.01f + (((projectile2.ai[0] - 360f) / 360f) * 2.55f)) * 100f); + color = new Color(colorValue, colorValue, colorValue, 127); + } + if (projectile2.ai[0] < 480f) + { + num813 = 1.75f/* + 4f * (projectile2.ai[0] / 120f)*/; //20 to 16 + } + else + { + num813 = 3f + 5f * ((projectile2.ai[0] - 480f) / 240f); //7.99 to 3.01 + } + scaleFactor6 = -2f - projectile2.ai[0] / 720f * 5f; + } + else + { + float colorLimit = projectile2.ai[0] - 720f; + if (colorLimit > 255f) + { + colorLimit = 255f; + } + switch ((int)projectile.ai[0]) //R O Y G B I V + { + case 0: + color = new Color(255, 255 - (int)colorLimit, 255 - (int)colorLimit, 127); //red + break; + case 1: + color = new Color(255, 255 - (int)(colorLimit * 0.3529412f), 255 - (int)colorLimit, 127); //orange + break; + case 2: + color = new Color(255, 255, 255 - (int)colorLimit, 127); //yellow + break; + case 3: + color = new Color(255 - (int)colorLimit, 255 - (int)(colorLimit * 0.5f), 255 - (int)colorLimit, 127); //green + break; + case 4: + color = new Color(255 - (int)colorLimit, 255 - (int)colorLimit, 255, 127); //blue + break; + case 5: + color = new Color(255 - (int)(colorLimit * 0.7058824f), 255 - (int)colorLimit, 255 - (int)(colorLimit * 0.4901961), 127); //indigo + break; + case 6: + color = new Color(255 - (int)(colorLimit * 0.0666667f), 255 - (int)(colorLimit * 0.4901961), 255 - (int)(colorLimit * 0.0666667f), 127); //violet + break; + } + num812 = 0.5f; //0f, inverted + num813 = 10.875f; //1.75f, inverted + y = 13f; //6f, inverted + scaleFactor6 = -7f; //-2, inverted + } + float num814 = (projectile2.ai[0] + num810 * num813) / (num813 * 6f) * 6.28318548f; + num811 = Vector2.UnitY.RotatedBy((double)num814, default(Vector2)).Y * 0.5235988f * num812; + value37 = (Vector2.UnitY.RotatedBy((double)num814, default(Vector2)) * new Vector2(4f, y)).RotatedBy((double)projectile2.velocity.ToRotation(), default(Vector2)); + projectile.position = projectile2.Center + value36 * 16f - projectile.Size / 2f + new Vector2(0f, -Main.projectile[(int)projectile.ai[1]].gfxOffY); + projectile.position += projectile2.velocity.ToRotation().ToRotationVector2() * scaleFactor6; + projectile.position += value37; + projectile.velocity = Vector2.Normalize(projectile2.velocity).RotatedBy((double)num811, default(Vector2)); + projectile.scale = 1.5f * (1.5f - num812); + projectile.damage = projectile2.damage; + double damageMult = 1.0 + (double)(projectile2.ai[0] * 0.0015f); //1 to 2.0 (1400 * x) + if (damageMult > 2.0) + { + damageMult = 2.0; + } + if (projectile2.ai[0] >= 720f) + { + projectile.damage = (int)((double)projectile.damage * damageMult); + vector71 = new Vector2?(projectile2.Center); + } + if (!Collision.CanHitLine(Main.player[projectile.owner].Center, 0, 0, projectile2.Center, 0, 0)) + { + vector71 = new Vector2?(Main.player[projectile.owner].Center); + } + projectile.friendly = (projectile2.ai[0] > 120f); + if (projectile.velocity.HasNaNs() || projectile.velocity == Vector2.Zero) + { + projectile.velocity = -Vector2.UnitY; + } + float num818 = projectile.velocity.ToRotation(); + projectile.rotation = num818 - 1.57079637f; + projectile.velocity = num818.ToRotationVector2(); + float num819 = 2f; + float num820 = 0f; + Vector2 samplingPoint = projectile.Center; + if (vector71.HasValue) + { + samplingPoint = vector71.Value; + } + float[] array3 = new float[(int)num819]; + Collision.LaserScan(samplingPoint, projectile.velocity, num820 * projectile.scale, 2400f, array3); + float num821 = 0f; + for (int num822 = 0; num822 < array3.Length; num822++) + { + num821 += array3[num822]; + } + num821 /= num819; + float amount = 0.75f; + projectile.localAI[1] = MathHelper.Lerp(projectile.localAI[1], num821, amount); + if (Math.Abs(projectile.localAI[1] - num821) < 100f && projectile.scale > 0.15f) + { + //color.A = 0; + Vector2 vector80 = projectile.Center + projectile.velocity * (projectile.localAI[1] - 14.5f * projectile.scale); + for (int num843 = 0; num843 < 2; num843++) + { + float num844 = projectile.velocity.ToRotation() + ((Main.rand.Next(2) == 1) ? -1f : 1f) * 1.57079637f; + float num845 = (float)Main.rand.NextDouble() * 0.8f + 1f; + Vector2 vector81 = new Vector2((float)Math.Cos((double)num844) * num845, (float)Math.Sin((double)num844) * num845); + int num846 = Dust.NewDust(vector80, 0, 0, 267, vector81.X, vector81.Y, 0, color, 3.3f); //267 + Main.dust[num846].color = color; + Main.dust[num846].scale = 1.2f; + if (projectile.scale > 1f) + { + Main.dust[num846].velocity *= projectile.scale; + Main.dust[num846].scale *= projectile.scale; + } + Main.dust[num846].noGravity = true; + if (projectile.scale != 1.4f) + { + Dust dust9 = Dust.CloneDust(num846); + dust9.color = color; + dust9.scale /= 2f; + dust9.noGravity = true; + } + Main.dust[num846].color = color; + } + if (Main.rand.Next(5) == 0) + { + Vector2 value42 = projectile.velocity.RotatedBy(1.5707963705062866, default(Vector2)) * ((float)Main.rand.NextDouble() - 0.5f) * (float)projectile.width; + int num847 = Dust.NewDust(vector80 + value42 - Vector2.One * 4f, 8, 8, 267, 0f, 0f, 100, color, 5f); + Main.dust[num847].velocity *= 0.5f; + Main.dust[num847].noGravity = true; + Main.dust[num847].velocity.Y = -Math.Abs(Main.dust[num847].velocity.Y); + } + DelegateMethods.v3_1 = color.ToVector3() * 0.3f; + float value43 = 0.1f * (float)Math.Sin((double)(Main.GlobalTime * 20f)); + Vector2 size = new Vector2(projectile.velocity.Length() * projectile.localAI[1], (float)projectile.width * projectile.scale); + float num848 = projectile.velocity.ToRotation(); + if (Main.netMode != 2) + { + ((WaterShaderData)Filters.Scene["WaterDistortion"].GetShader()).QueueRipple(projectile.position + new Vector2(size.X * 0.5f, 0f).RotatedBy((double)num848, default(Vector2)), color, size, RippleShape.Square, num848); + } + Utils.PlotTileLine(projectile.Center, projectile.Center + projectile.velocity * projectile.localAI[1], (float)projectile.width * projectile.scale, new Utils.PerLinePoint(DelegateMethods.CastLight)); + return; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + if (projectile.velocity == Vector2.Zero) + { + return false; + } + Texture2D tex = Main.projectileTexture[projectile.type]; + float num228 = projectile.localAI[1]; + Projectile projectile2 = Main.projectile[(int)projectile.ai[1]]; + Color color = new Color(1, 1, 1, 127); + if (projectile2.ai[0] < 720f) + { + if (projectile2.ai[0] > 360f) + { + int colorValue = (int)((0.01f + (((projectile2.ai[0] - 360f) / 360f) * 2.55f)) * 100f); + color = new Color(colorValue, colorValue, colorValue, 127); + } + } + else + { + float colorLimit = projectile2.ai[0] - 720f; + if (colorLimit > 255f) + { + colorLimit = 255f; + } + switch ((int)projectile.ai[0]) //R O Y G B I V + { + case 0: + color = new Color(255, 255 - (int)colorLimit, 255 - (int)colorLimit, 127); //red + break; + case 1: + color = new Color(255, 255 - (int)(colorLimit * 0.3529412f), 255 - (int)colorLimit, 127); //orange + break; + case 2: + color = new Color(255, 255, 255 - (int)colorLimit, 127); //yellow + break; + case 3: + color = new Color(255 - (int)colorLimit, 255 - (int)(colorLimit * 0.5f), 255 - (int)colorLimit, 127); //green + break; + case 4: + color = new Color(255 - (int)colorLimit, 255 - (int)colorLimit, 255, 127); //blue + break; + case 5: + color = new Color(255 - (int)(colorLimit * 0.7058824f), 255 - (int)colorLimit, 255 - (int)(colorLimit * 0.4901961), 127); //indigo + break; + case 6: + color = new Color(255 - (int)(colorLimit * 0.0666667f), 255 - (int)(colorLimit * 0.4901961), 255 - (int)(colorLimit * 0.0666667f), 127); //violet + break; + } + } + Microsoft.Xna.Framework.Color value25 = color; + //value25.A = 0; + Vector2 value26 = projectile.Center.Floor(); + value26 += projectile.velocity * projectile.scale * 10.5f; + num228 -= projectile.scale * 14.5f * projectile.scale; + Vector2 vector29 = new Vector2(projectile.scale); + DelegateMethods.f_1 = 1f; + DelegateMethods.c_1 = value25 * 0.75f * projectile.Opacity; + Vector2 projPos = projectile.oldPos[0]; + projPos = new Vector2((float)projectile.width, (float)projectile.height) / 2f + Vector2.UnitY * projectile.gfxOffY - Main.screenPosition; + Utils.DrawLaser(Main.spriteBatch, tex, value26 - Main.screenPosition, value26 + projectile.velocity * num228 - Main.screenPosition, vector29, new Utils.LaserLineFraming(DelegateMethods.RainbowLaserDraw)); + DelegateMethods.c_1 = color * 0.75f * projectile.Opacity; + Utils.DrawLaser(Main.spriteBatch, tex, value26 - Main.screenPosition, value26 + projectile.velocity * num228 - Main.screenPosition, vector29 / 2f, new Utils.LaserLineFraming(DelegateMethods.RainbowLaserDraw)); + return false; + } + + public override void CutTiles() + { + DelegateMethods.tilecut_0 = TileCuttingContext.AttackProjectile; + Vector2 unit = projectile.velocity; + Utils.PlotTileLine(projectile.Center, projectile.Center + unit * projectile.localAI[1], (float)projectile.width * projectile.scale, new Utils.PerLinePoint(DelegateMethods.CutTiles)); + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + if (projHitbox.Intersects(targetHitbox)) + { + return true; + } + float num6 = 0f; + if (Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), projectile.Center, projectile.Center + projectile.velocity * projectile.localAI[1], 22f * projectile.scale, ref num6)) + { + return true; + } + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/DivineRetribution.cs b/Projectiles/Patreon/DivineRetribution.cs index cac084805e..9bf7147a5d 100644 --- a/Projectiles/Patreon/DivineRetribution.cs +++ b/Projectiles/Patreon/DivineRetribution.cs @@ -1,149 +1,149 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Patreon -{ - public class DivineRetribution : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Divine Retribution"); - } - - public override void SetDefaults() - { - projectile.width = 30; - projectile.height = 30; - projectile.friendly = true; - projectile.ignoreWater = true; - projectile.tileCollide = false; - projectile.magic = true; - projectile.extraUpdates = 1; - projectile.penetrate = 1; - projectile.scale = 0.9f; - projectile.timeLeft = 420; - ProjectileID.Sets.TrailCacheLength[projectile.type] = 7; - ProjectileID.Sets.TrailingMode[projectile.type] = 0; - } - - public override void AI() - { - float num953 = 25f * projectile.ai[1]; //100 - float scaleFactor12 = 5f * projectile.ai[1]; //5 - float num954 = 500f; - if ((double)Math.Abs(projectile.velocity.X) > 0.2) - { - projectile.spriteDirection = -projectile.direction; - } - if (projectile.velocity.X < 0f) - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); - } - else - { - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); - } - Lighting.AddLight(projectile.Center, 0.7f, 0.3f, 0f); - if (Main.player[projectile.owner].active && !Main.player[projectile.owner].dead) - { - if (projectile.Distance(Main.player[projectile.owner].Center) > num954) - { - Vector2 vector102 = projectile.DirectionTo(Main.player[projectile.owner].Center); - if (vector102.HasNaNs()) - { - vector102 = Vector2.UnitY; - } - projectile.velocity = (projectile.velocity * (num953 - 1f) + vector102 * scaleFactor12) / num953; - return; - } - float num472 = projectile.Center.X; - float num473 = projectile.Center.Y; - float num474 = 600f; - bool flag17 = false; - for (int num475 = 0; num475 < 200; num475++) - { - if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) - { - float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); - float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); - float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); - if (num478 < num474) - { - num474 = num478; - num472 = num476; - num473 = num477; - flag17 = true; - } - } - } - if (flag17) - { - float num483 = 9f; - Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num484 = num472 - vector35.X; - float num485 = num473 - vector35.Y; - float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); - num486 = num483 / num486; - num484 *= num486; - num485 *= num486; - projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; - projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; - return; - } - } - else - { - if (projectile.timeLeft > 30) - { - projectile.timeLeft = 30; - } - } - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - Vector2 drawOrigin = new Vector2(Main.projectileTexture[projectile.type].Width * 0.5f, projectile.height * 0.5f); - for (int k = 0; k < projectile.oldPos.Length; k++) - { - Vector2 drawPos = projectile.oldPos[k] - Main.screenPosition + drawOrigin + new Vector2(0f, projectile.gfxOffY); - Color color = projectile.GetAlpha(lightColor) * ((float)(projectile.oldPos.Length - k) / (float)projectile.oldPos.Length); - spriteBatch.Draw(Main.projectileTexture[projectile.type], drawPos, null, color, projectile.rotation, drawOrigin, projectile.scale, SpriteEffects.None, 0f); - } - return true; - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(mod.BuffType("CrushDepth"), 600); - target.AddBuff(mod.BuffType("HolyLight"), 600); - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74, 1f, 0f); - projectile.position = projectile.Center; - projectile.width = (projectile.height = 64); - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - for (int num193 = 0; num193 < 6; num193++) - { - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0, 0); - } - for (int num194 = 0; num194 < 10; num194++) - { - int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0, 0); - Main.dust[num195].noGravity = true; - Main.dust[num195].velocity *= 3f; - num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0, 0); - Main.dust[num195].velocity *= 2f; - Main.dust[num195].noGravity = true; - } - projectile.Damage(); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class DivineRetribution : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Divine Retribution"); + } + + public override void SetDefaults() + { + projectile.width = 30; + projectile.height = 30; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.magic = true; + projectile.extraUpdates = 1; + projectile.penetrate = 1; + projectile.scale = 0.9f; + projectile.timeLeft = 420; + ProjectileID.Sets.TrailCacheLength[projectile.type] = 7; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; + } + + public override void AI() + { + float num953 = 25f * projectile.ai[1]; //100 + float scaleFactor12 = 5f * projectile.ai[1]; //5 + float num954 = 1000f; + if ((double)Math.Abs(projectile.velocity.X) > 0.2) + { + projectile.spriteDirection = -projectile.direction; + } + if (projectile.velocity.X < 0f) + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + else + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + Lighting.AddLight(projectile.Center, 0.7f, 0.3f, 0f); + if (Main.player[projectile.owner].active && !Main.player[projectile.owner].dead) + { + if (projectile.Distance(Main.player[projectile.owner].Center) > num954) + { + Vector2 vector102 = projectile.DirectionTo(Main.player[projectile.owner].Center); + if (vector102.HasNaNs()) + { + vector102 = Vector2.UnitY; + } + projectile.velocity = (projectile.velocity * (num953 - 1f) + vector102 * scaleFactor12) / num953; + return; + } + float num472 = projectile.Center.X; + float num473 = projectile.Center.Y; + float num474 = 600f; + bool flag17 = false; + for (int num475 = 0; num475 < 200; num475++) + { + if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) + { + float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); + float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + num472 = num476; + num473 = num477; + flag17 = true; + } + } + } + if (flag17) + { + float num483 = 9f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = num472 - vector35.X; + float num485 = num473 - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; + projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; + return; + } + } + else + { + if (projectile.timeLeft > 30) + { + projectile.timeLeft = 30; + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 drawOrigin = new Vector2(Main.projectileTexture[projectile.type].Width * 0.5f, projectile.height * 0.5f); + for (int k = 0; k < projectile.oldPos.Length; k++) + { + Vector2 drawPos = projectile.oldPos[k] - Main.screenPosition + drawOrigin + new Vector2(0f, projectile.gfxOffY); + Color color = projectile.GetAlpha(lightColor) * ((float)(projectile.oldPos.Length - k) / (float)projectile.oldPos.Length); + spriteBatch.Draw(Main.projectileTexture[projectile.type], drawPos, null, color, projectile.rotation, drawOrigin, projectile.scale, SpriteEffects.None, 0f); + } + return true; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("CrushDepth"), 600); + target.AddBuff(mod.BuffType("HolyLight"), 600); + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74, 1f, 0f); + projectile.position = projectile.Center; + projectile.width = (projectile.height = 64); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num193 = 0; num193 < 6; num193++) + { + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0, 0); + } + for (int num194 = 0; num194 < 10; num194++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0, 0); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0, 0); + Main.dust[num195].velocity *= 2f; + Main.dust[num195].noGravity = true; + } + projectile.Damage(); + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/HandheldTankShell.cs b/Projectiles/Patreon/HandheldTankShell.cs new file mode 100644 index 0000000000..0d7a98b9bf --- /dev/null +++ b/Projectiles/Patreon/HandheldTankShell.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class HandheldTankShell : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Tank Shell"); + } + + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 10; + projectile.friendly = true; + projectile.ranged = true; + projectile.penetrate = 1; + projectile.extraUpdates = 11; + projectile.timeLeft = 1800; + } + + public override void AI() + { + drawOffsetX = -8; + drawOriginOffsetY = 0; + drawOriginOffsetX = -2; + projectile.rotation = projectile.velocity.ToRotation(); + Vector2 pos = projectile.Center; + projectile.localAI[0] += 1f; + + if (projectile.localAI[0] > 7f) // projectile has had more than 8 updates, draw fire trail + { + for (int i = 0; i < 5; ++i) + { + pos -= projectile.velocity * ((float)i * 0.25f); + int idx = Dust.NewDust(pos, 1, 1, 158, 0f, 0f, 0, default(Color), 1f); + Main.dust[idx].noGravity = true; + Main.dust[idx].position = pos; + Main.dust[idx].scale = (float)Main.rand.Next(70, 110) * 0.013f; + Main.dust[idx].velocity *= 0.3f; + } + return; + } + else // projectile has had less than 8 updates, draw smoke + { + for (int i = 0; i < 30; ++i) + { + // Pick a random type of smoke (there's a little fire mixed in) + int dustID = -1; + switch (Main.rand.Next(6)) + { + case 0: dustID = 55; break; + case 1: + case 2: dustID = 54; break; + default: dustID = 53; break; + } + + // Choose a random speed and angle to belch out the smoke + float dustSpeed = Main.rand.NextFloat(3.0f, 13.0f); + float angleRandom = 0.06f; + Vector2 dustVel = new Vector2(dustSpeed, 0.0f).RotatedBy(projectile.velocity.ToRotation()); + dustVel = dustVel.RotatedBy(-angleRandom); + dustVel = dustVel.RotatedByRandom(2.0f * angleRandom); + + // Pick a size for the smoke particle + float scale = Main.rand.NextFloat(0.5f, 1.6f); + + // Actually spawn the smoke + int idx = Dust.NewDust(pos, 1, 1, dustID, dustVel.X, dustVel.Y, 0, default(Color), scale); + Main.dust[idx].noGravity = true; + Main.dust[idx].position = pos; + } + } + } + + public override void Kill(int timeLeft) + { + // Grenade Launcher + Lunar Flare sounds for maximum meaty explosion + Main.PlaySound(SoundID.Item62, projectile.Center); + Main.PlaySound(SoundID.Item88, projectile.Center); + + // Transform the projectile's hitbox into a big explosion + projectile.position = projectile.Center; + projectile.width = (projectile.height = 140); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + + // Spawn explosion dust (separate method because it's messy) + SpawnExplosionDust(); + + // Make the explosion cause damage to nearby targets (makes projectile hit twice) + projectile.Damage(); + } + + // Dust copied from Rocket III + void SpawnExplosionDust() + { + // Sparks and such + Vector2 corner = new Vector2(projectile.position.X, projectile.position.Y); + for (int i = 0; i < 40; i++) + { + int idx = Dust.NewDust(corner, projectile.width, projectile.height, 31, 0f, 0f, 100, default(Color), 2f); + Main.dust[idx].velocity *= 3f; + if (Main.rand.Next(2) == 0) + { + Main.dust[idx].scale = 0.5f; + Main.dust[idx].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int i = 0; i < 70; i++) + { + int idx = Dust.NewDust(corner, projectile.width, projectile.height, 6, 0f, 0f, 100, default(Color), 3f); + Main.dust[idx].noGravity = true; + Main.dust[idx].velocity *= 5f; + idx = Dust.NewDust(corner, projectile.width, projectile.height, 6, 0f, 0f, 100, default(Color), 2f); + Main.dust[idx].velocity *= 2f; + } + + // Smoke, which counts as a Gore + Vector2 goreVec = new Vector2(projectile.position.X + (float)(projectile.width / 2) - 24f, projectile.position.Y + (float)(projectile.height / 2) - 24f); + for (int i = 0; i < 3; i++) + { + float smokeScale = 0.33f; + if (i == 1) + { + smokeScale = 0.66f; + } + if (i == 2) + { + smokeScale = 1f; + } + int idx = Gore.NewGore(goreVec, default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[idx].velocity *= smokeScale; + Main.gore[idx].velocity.X += 1f; + Main.gore[idx].velocity.Y += 1f; + + idx = Gore.NewGore(goreVec, default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[idx].velocity *= smokeScale; + Main.gore[idx].velocity.X -= 1f; + Main.gore[idx].velocity.Y += 1f; + + idx = Gore.NewGore(goreVec, default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[idx].velocity *= smokeScale; + Main.gore[idx].velocity.X += 1f; + Main.gore[idx].velocity.Y -= 1f; + + idx = Gore.NewGore(goreVec, default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[idx].velocity *= smokeScale; + Main.gore[idx].velocity.X -= 1f; + Main.gore[idx].velocity.Y -= 1f; + } + } + } +} diff --git a/Projectiles/Patreon/HandheldTankShell.png b/Projectiles/Patreon/HandheldTankShell.png new file mode 100644 index 0000000000000000000000000000000000000000..e0989954953b63f0c7eccedaf52a9cbbe097a792 GIT binary patch literal 221 zcmV<303!d1P)E zV?G`uW|9JMe?BZNG}T%Fv1W{1e(%w00000NkvXXu0mjf7=Ts^ literal 0 HcmV?d00001 diff --git a/Projectiles/Patreon/KeelhaulBubble.cs b/Projectiles/Patreon/KeelhaulBubble.cs new file mode 100644 index 0000000000..0a6957e311 --- /dev/null +++ b/Projectiles/Patreon/KeelhaulBubble.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class KeelhaulBubble : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Bubble"); + } + + public override void SetDefaults() + { + projectile.width = 14; + projectile.height = 14; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + } + + public override void Kill(int timeLeft) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 80f, 0f, 0f, mod.ProjectileType("KeelhaulGeyserBottom"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y - 80f, 0f, 0f, mod.ProjectileType("KeelhaulGeyserTop"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + } + } +} \ No newline at end of file diff --git a/Projectiles/Patreon/KeelhaulBubble.png b/Projectiles/Patreon/KeelhaulBubble.png new file mode 100644 index 0000000000000000000000000000000000000000..b90ce569f4a4405fa1e11740ba282f0b05da4a7b GIT binary patch literal 210 zcmeAS@N?(olHy`uVBq!ia0vp^d?3uh1|;P@bT0y_nVv3=Ar^wkDGtp0*kb=*Y&me} ztoSL3iAQHnuw1esGNCKctT4^xP)k6@-gB}E(_?n+=g%?zX}0M0ldN-%NtdsEvrgD& zv!C51W+Ee4T%!NT%_$c0XR3b`vQN@z^0bvstaIA#d2)+r&fUG2uO`gOk$$++(f=Z+ zOw@-9%~kD@XT^@Hbv+i$Q@+B)Hsh>;T~FIhmdBIdx-%62(cIuxw9^CVNCr<=KbLh* G2~7ZbGgN*6 literal 0 HcmV?d00001 diff --git a/Projectiles/Patreon/KeelhaulGeyserBottom.cs b/Projectiles/Patreon/KeelhaulGeyserBottom.cs new file mode 100644 index 0000000000..1eb1d174cb --- /dev/null +++ b/Projectiles/Patreon/KeelhaulGeyserBottom.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class KeelhaulGeyserBottom : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Geyser"); + Main.projFrames[projectile.type] = 4; + } + + public override void SetDefaults() + { + projectile.width = 158; + projectile.height = 188; + projectile.friendly = true; + projectile.tileCollide = false; + projectile.ignoreWater = true; + projectile.magic = true; + projectile.penetrate = -1; + projectile.timeLeft = 360; + projectile.alpha = 90; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + } + + public override void AI() + { + projectile.frameCounter++; + if (projectile.frameCounter > 6) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Patreon/KeelhaulGeyserBottom.png b/Projectiles/Patreon/KeelhaulGeyserBottom.png new file mode 100644 index 0000000000000000000000000000000000000000..aece49f0b5372dbdf1cf6c875d5fd4ff52e2fd5c GIT binary patch literal 5110 zcmaJ_3tW;{|F^Z$bzjz;TGqd|)wHrgG4r-EyJ%)vikf20B`V=vK~3DUn1M(3uh``N=ZP_NDUE?5GVXN}Jd@7{#B7F^76+qeBtB^hR8@r^GBmrB2e z==<|Xj*FXUS97Y!GxhwVz7^$n6>EnY6y##@nPSD-T@$nItX7%RXg&R2B#$1Ye_`;o$17r`J;@wbHiEOo1yYzDk+Q`eT}345gZ?xOo%3 z6KxavdlCpKjH+;ow5W6u&7d@o@r3ARk^B;S#keAM>@@(&drn zUL7gvNe*$_SA2+eHs*hPvID+Ilc zvwew6!N)M2mcmSoL6(Agi`$=jQI3IioJGn|B#WNwADQT{-4M2~QByIyz*Bz4*_eiL z%V_0^E>RZ7f*Rkj2dqM%DED%0WA3x3r%_O#Je+GTex2s|$k6phYv76z4_DKRxzQgf z?bruKpB8QQWR#x9*rLJUWz0YO>!LEN+Iu=j=QXA8fx(bBdN*zP7=V$BXdCYdWaNyf z14BqT?E!MVY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x7v{KOD!;2i=nicmMgWn)V)69A3yBJU z9Fz8S${sT?rrB2DJtAl{=fxxF$cZ@S>^xbRYN&FY-LAoDV%WE+ROcL8qc2D5wamVP zx#Y_|fnvNsEbAH&iakL%pDM#_zj{D<(uKAN>=Fi_RvMA%Sa8P3{C)T1=*aYoRsYNQ zf6h_8)B?4Y`^p&?W~@JC?|ED2HsoDtfBQqF@Zs!j75{U5qHbrVgl z2k+Fpj!Cd1cg&UkV)L=c*z>~FI;fScYV8#(UmykGFy&K(Dx-*a;W;52KgyU4|nspLb>%!%3Ys&=_&&o+t)~%D2qpJ44F-z#7zu#bd($V4wm);;3{#zm4 z95j)*!7!!UH|%S6(8O;`#zpf?RKbRNU1^R*tf0{1k!FCKPt4`LTAE1^Cjp34T>`wK ze;AkI{2HHxbbio$qXE_2mg0C5Vy1#6LD!b_bke@&{w$`sNT@SY44WQ4aQL@UUCHEi zygRC*LVmGerzDr%6)~Gxu`K%eSfAhZ-syudm8A`qFCao27&zj@m8isoasltBNHEg( z8F;;e91|-IgE(Tda(NO)O@Pi2FIe=w+re42bn2}dCt&NU&Vq~8EDz!qU9xoKD1|Yl z1{eWHjW*kX!(;PX3&egr{8|uH1ObI`yB#pP=wjio=Z7^`Syu@%kCoCo{ECjUVjM#)bc?vK{Q11<>fWj$>=!|sLD48}d^tfXNFw1L;Gy2YejJ%>P&! 6) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Patreon/KeelhaulGeyserTop.png b/Projectiles/Patreon/KeelhaulGeyserTop.png new file mode 100644 index 0000000000000000000000000000000000000000..0499587fef5b8c2a5596ab8b5c9f4fcfec9c027b GIT binary patch literal 2733 zcmbuA`&*LP7RRYhWzKZ5$4i#lnHqaU0%syq6SZ+A0-_>B1+2-iV~S+v{et1q!W)tbDVk?fKb$`xo(JA{v-aL=ueCqxyDo+t z^j~Yf*&GIgtqs`k7Y3fiFxc`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OrdT8D|uWMnVV7}+j*g5nIwHoCZ*=>;s3 zOXXBMARS#%7>M&X;NhswlDQcegz^MF)g_0~S5~>eXzxk7=F=YfVKhexO!DG`m5x># zo*|w;Q+XYSfPgSm(bAxcC|~Z0mn_Cn19|umh|XuIozgL0jYG(1;Aj-otDfC8Hq2}x z6JknixE;LfRpKgB{~*gfx%=mM=`)MWNkb3%)BEvo$*n9ya-yl$itbeQFKeo-^;hLdGT2;?t|JJ(>f z`;exV?N~JpxZ79+9|1kv@spwstA!mKog9ZpJQCp%19(0=RA<)OcQ`e@wQvS6_23tP zo@~LG5l2?{wdb)fIe!t!z|JzEc?B)koloQ2pxnqhipVsqhz7FAb{fcGp-O=K<8^c- zkh~H^gtvUVpH4j+UF)ao=q3PC{T`}`5cQ%uQ7AeM?pVUvQjOQRUr<|sLbFf`v|GWK zn`88tGJBZSfbLDrHCb?7LrNpzqVWb)bqHU%2pY6{>J;WB`5~pmqqZc^-%QT^-s;GN zh#wt@%LD$6YT3eEYEfCb01*ux_fGrEae*L}ZmRtLc^5?`^ap+?Nf>YOsR%E_ys3X* z$RCw)8*6MS6MAMHVX9T3!`?(B^KBod2b4~Rf9%LOA10-Va8MShd8U?o|E8f3!P1X^E=L=e zc{p2kB0=_tj2GDnWIR_@a~*Mjzg)zyr&xmB6!IcO+iNAV67a2zeZ04KcE=M354R%F zKWZgRaaDCfj4H1t>lqX&L0ZeN4LI3~& literal 0 HcmV?d00001 diff --git a/Projectiles/Patreon/LightBall.cs b/Projectiles/Patreon/LightBall.cs index 15966f6dce..1b4b3cdd24 100644 --- a/Projectiles/Patreon/LightBall.cs +++ b/Projectiles/Patreon/LightBall.cs @@ -1,66 +1,66 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Patreon -{ - public class LightBall : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Light Ball"); - } - - public override void SetDefaults() - { - projectile.width = 28; - projectile.height = 28; - projectile.friendly = true; - projectile.alpha = 60; - projectile.penetrate = 1; - projectile.timeLeft = 300; - projectile.magic = true; - } - - public override void AI() - { - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f); - projectile.velocity.X *= 0.995f; - projectile.velocity.Y *= 0.995f; - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 212, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - projectile.position.X = projectile.position.X + (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); - projectile.width = 300; - projectile.height = 300; - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("LightBallExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - for (int num621 = 0; num621 < 30; num621++) - { - int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 212, 0f, 0f, 100, default(Color), 1.2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 60; num623++) - { - int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 212, 0f, 0f, 100, default(Color), 1.7f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 212, 0f, 0f, 100, default(Color), 1f); - Main.dust[num624].velocity *= 2f; - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class LightBall : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Light Ball"); + } + + public override void SetDefaults() + { + projectile.width = 28; + projectile.height = 28; + projectile.friendly = true; + projectile.alpha = 60; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.magic = true; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f); + projectile.velocity.X *= 0.995f; + projectile.velocity.Y *= 0.995f; + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 212, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 300; + projectile.height = 300; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("LightBallExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + for (int num621 = 0; num621 < 30; num621++) + { + int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 212, 0f, 0f, 100, default(Color), 1.2f); + Main.dust[num622].velocity *= 3f; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 60; num623++) + { + int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 212, 0f, 0f, 100, default(Color), 1.7f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 212, 0f, 0f, 100, default(Color), 1f); + Main.dust[num624].velocity *= 2f; + } + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/LightBallExplosion.cs b/Projectiles/Patreon/LightBallExplosion.cs index 9eef246e6d..3872d0eaae 100644 --- a/Projectiles/Patreon/LightBallExplosion.cs +++ b/Projectiles/Patreon/LightBallExplosion.cs @@ -1,30 +1,30 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Patreon -{ - public class LightBallExplosion : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Explosion"); - } - - public override void SetDefaults() - { - projectile.width = 300; - projectile.height = 300; - projectile.friendly = true; - projectile.ignoreWater = true; - projectile.tileCollide = false; - projectile.penetrate = -1; - projectile.timeLeft = 5; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 3; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class LightBallExplosion : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Explosion"); + } + + public override void SetDefaults() + { + projectile.width = 300; + projectile.height = 300; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.penetrate = -1; + projectile.timeLeft = 5; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 3; + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/LightBead.cs b/Projectiles/Patreon/LightBead.cs index 76a42c4eb6..7851c9a16c 100644 --- a/Projectiles/Patreon/LightBead.cs +++ b/Projectiles/Patreon/LightBead.cs @@ -1,110 +1,110 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Patreon -{ - public class LightBead : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Light Bead"); - } - - public override void SetDefaults() - { - projectile.width = 8; - projectile.height = 8; - projectile.friendly = true; - projectile.alpha = 50; - projectile.scale = 1.2f; - projectile.penetrate = 1; - projectile.timeLeft = 600; - projectile.magic = true; - } - - public override void AI() - { - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f); - projectile.rotation += projectile.velocity.X * 0.2f; - projectile.ai[1] += 1f; - if (Main.rand.Next(4) == 0) - { - int num300 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 212, 0f, 0f, 0, default(Color), 1f); - Main.dust[num300].noGravity = true; - Main.dust[num300].velocity *= 0.5f; - Main.dust[num300].scale *= 0.9f; - } - if (projectile.ai[1] > 300f) - { - projectile.scale -= 0.05f; - if ((double)projectile.scale <= 0.2) - { - projectile.scale = 0.2f; - projectile.Kill(); - return; - } - } - float centerX = projectile.Center.X; - float centerY = projectile.Center.Y; - float num474 = 500f; - bool homeIn = false; - for (int num475 = 0; num475 < 200; num475++) - { - if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) - { - float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); - float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); - float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); - if (num478 < num474) - { - num474 = num478; - centerX = num476; - centerY = num477; - homeIn = true; - } - } - } - if (homeIn) - { - float num483 = 18f; - Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num484 = centerX - vector35.X; - float num485 = centerY - vector35.Y; - float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); - num486 = num483 / num486; - num484 *= num486; - num485 *= num486; - projectile.velocity.X = (projectile.velocity.X * 10f + num484) / 11f; - projectile.velocity.Y = (projectile.velocity.Y * 10f + num485) / 11f; - return; - } - } - - public override void Kill(int timeLeft) - { - for (int k = 0; k < 5; k++) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 212, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - } - int num251 = Main.rand.Next(2, 3); - if (projectile.owner == Main.myPlayer) - { - for (int num252 = 0; num252 < num251; num252++) - { - Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - while (value15.X == 0f && value15.Y == 0f) - { - value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - } - value15.Normalize(); - value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("LightBeadSplit"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); - } - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class LightBead : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Light Bead"); + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.alpha = 50; + projectile.scale = 1.2f; + projectile.penetrate = 1; + projectile.timeLeft = 600; + projectile.magic = true; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f); + projectile.rotation += projectile.velocity.X * 0.2f; + projectile.ai[1] += 1f; + if (Main.rand.Next(4) == 0) + { + int num300 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 212, 0f, 0f, 0, default(Color), 1f); + Main.dust[num300].noGravity = true; + Main.dust[num300].velocity *= 0.5f; + Main.dust[num300].scale *= 0.9f; + } + if (projectile.ai[1] > 300f) + { + projectile.scale -= 0.05f; + if ((double)projectile.scale <= 0.2) + { + projectile.scale = 0.2f; + projectile.Kill(); + return; + } + } + float centerX = projectile.Center.X; + float centerY = projectile.Center.Y; + float num474 = 500f; + bool homeIn = false; + for (int num475 = 0; num475 < 200; num475++) + { + if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) + { + float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); + float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + centerX = num476; + centerY = num477; + homeIn = true; + } + } + } + if (homeIn) + { + float num483 = 18f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = centerX - vector35.X; + float num485 = centerY - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 10f + num484) / 11f; + projectile.velocity.Y = (projectile.velocity.Y * 10f + num485) / 11f; + return; + } + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 212, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + int num251 = Main.rand.Next(2, 3); + if (projectile.owner == Main.myPlayer) + { + for (int num252 = 0; num252 < num251; num252++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("LightBeadSplit"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + } + } + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/LightBeadSplit.cs b/Projectiles/Patreon/LightBeadSplit.cs index 1ee869f9b2..2f138c31b5 100644 --- a/Projectiles/Patreon/LightBeadSplit.cs +++ b/Projectiles/Patreon/LightBeadSplit.cs @@ -1,45 +1,45 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Patreon -{ - public class LightBeadSplit : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Light Bead"); - } - - public override void SetDefaults() - { - projectile.width = 8; - projectile.height = 8; - projectile.friendly = true; - projectile.alpha = 50; - projectile.scale = 0.6f; - projectile.penetrate = 1; - projectile.timeLeft = 400; - projectile.magic = true; - } - - public override void AI() - { - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f); - projectile.rotation += projectile.velocity.X * 0.2f; - projectile.velocity *= 0.985f; - - } - - public override void Kill(int timeLeft) - { - for (int k = 0; k < 5; k++) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 212, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class LightBeadSplit : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Light Bead"); + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.alpha = 50; + projectile.scale = 0.6f; + projectile.penetrate = 1; + projectile.timeLeft = 400; + projectile.magic = true; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f); + projectile.rotation += projectile.velocity.X * 0.2f; + projectile.velocity *= 0.985f; + + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 212, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/MelterAmp.cs b/Projectiles/Patreon/MelterAmp.cs new file mode 100644 index 0000000000..13fce042e2 --- /dev/null +++ b/Projectiles/Patreon/MelterAmp.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class MelterAmp : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Melter Amp"); + Main.projFrames[projectile.type] = 3; + } + + public override void SetDefaults() + { + projectile.width = 34; + projectile.height = 38; + projectile.friendly = true; + projectile.magic = true; + projectile.netImportant = true; + projectile.penetrate = -1; + projectile.timeLeft = 6000; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 20; + projectile.tileCollide = false; + projectile.ignoreWater = true; + } + + public override void AI() + { + bool flag64 = projectile.type == mod.ProjectileType("MelterAmp"); + Player player = Main.player[projectile.owner]; + if (flag64) + { + if (player.dead) + { + projectile.active = false; + return; + } + if (player.ownedProjectileCounts[mod.ProjectileType("MelterAmp")] > 1) + { + projectile.active = false; + return; + } + if (!player.inventory[player.selectedItem].magic || player.inventory[player.selectedItem].shoot != mod.ProjectileType("MelterNote1")) + { + projectile.active = false; + return; + } + } + Lighting.AddLight(projectile.Center, 0.75f, 0.75f, 0.75f); + if (projectile.ai[0] > 0f) + { + projectile.ai[0] += 1f; + if (projectile.ai[0] > 6f) + { + projectile.ai[0] = 0f; + } + } + if (Main.myPlayer == projectile.owner && projectile.ai[0] == 0f) + { + projectile.ai[0] = 1f; + int Damage = projectile.damage; + int type; + projectile.netUpdate = true; + float num127 = 20f; + Vector2 vector11 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num128 = (float)Main.mouseX + Main.screenPosition.X - vector11.X; + float num129 = (float)Main.mouseY + Main.screenPosition.Y - vector11.Y; + if (player.gravDir == -1f) + { + num129 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector11.Y; + } + float num130 = (float)Math.Sqrt((double)(num128 * num128 + num129 * num129)); + if (num130 == 0f) + { + vector11 = new Vector2(player.position.X + (float)(player.width / 2), player.position.Y + (float)(player.height / 2)); + num128 = projectile.position.X + (float)projectile.width * 0.5f - vector11.X; + num129 = projectile.position.Y + (float)projectile.height * 0.5f - vector11.Y; + num130 = (float)Math.Sqrt((double)(num128 * num128 + num129 * num129)); + } + num130 = num127 / num130; + num128 *= num130; + num129 *= num130; + float VelocityX = num128; + float VelocityY = num129; + int note = Main.rand.Next(0, 2); + if (note == 0) + { + Damage = (int)(projectile.damage * 1.5f); + type = mod.ProjectileType("MelterNote1"); + } + else + { + VelocityX *= 1.5f; + VelocityY *= 1.5f; + type = mod.ProjectileType("MelterNote2"); + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, VelocityX, VelocityY, type, Damage, projectile.knockBack, projectile.owner, 0.0f, 0.0f); + } + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 2) + { + projectile.frame = 0; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Patreon/MelterAmp.png b/Projectiles/Patreon/MelterAmp.png new file mode 100644 index 0000000000000000000000000000000000000000..785a28e3ab0f3254a8c56e71936a12474b5ceecf GIT binary patch literal 1221 zcmV;$1UmbPP)TxQ>{nwsfn-g>L* zw+)3{m9je2s^b6*mWKeCzu9Q!`GCRlP$_;N0Mj!+r}i7jGiWc>azuA-H85BPU}64d z6JW_*%K*4%WZ9wvU#VXPVD6908mAPGM;QaibsW~7gtaQg&{cXQZ z1H&bNV++@TfE+1r8W;xPSnR}0OKMJs%{QWKCw_TX_5-+|2n!KWI;5*ok*G zW}DDobvahrgKy;FWFL0XVpS zUuyfK-_HQBW9*7E?#{+65TYXw-MHInc=q1qi@x!2>8ca^>Wb>g*5*>@`j@}|2Eebk zMNWt3h@CAyoqek6#1A|?>ggHj;xDsKtXz=}%|$sBj3Z_Jp*#Kd$Ppk}8P`6!9!SoH z&0Ago;KXFKX1w}x6d#!QEVX^&=!dCaBs@nXySggttyDKQtX`SgzHa?^YCI9g8o#wV z=lRyXRLc>q6}BGOSh+#`x?%UbKsyKIkYYKZitDR4!8p>YBcrwS-&)dYyJq8aKr#m; zIdc4`)2Zzr?0V0MXQ!in!8nqbHCCE6a-?$m82}FM{{m>w9_57O%MqXY#}TVDe^&rl zv$2xveafwKGase42jfU$)+i@zWz||EW$jU|lw(szC!O)bpEbU7ik02P+kJ`MhgjJ) zEIdc-H-Gg2^)lvb>G9LUc-x~*UwDO4y+1y!^vsG?Ot6|D-YXw@^S zXybw^N_|HaTYJ_l2PCn!wQ;Py>BxiWG@*VWI=7sS_pZtnecqwDP#r0#VyvE1Mce-W zql)4qcqn3496VLbO^hTTS+=q0qT)|KP9Lv-9T8PLG3j3Klsx;?KaN<=+L|>+Cx48% z>+#qD#d1VcaVoB?cJ>70NY|)h)*jYUMJe3MDs_u0=2du(6jU)*K@|&Ssb>r=ix4IH zcQWX|p@burrR8O4mYqpibTJ%9tOFx4L8>oYcXFXqhL+WDWhrvzbhF{K2jfVap~Vi= zW6CF%)@_C+b|wYK(8_Wm!O&vXC2gOI>OrOY7?7j_Z@u$2;Ad!`Uy8WMC$;+khoLng zAV>Z&LsLER@x{CcQ0ihaDqK2a0? z**8ndk#**JrwmOwVpr?%9O?8aD&>eJN1ZY>-{*wqNT>2KG|BhWX5T!SmvF?#&{TOv z3-w#qFFXyjS68jJKYaaNYP+v;hwDgQhNe5UG{yB19 literal 0 HcmV?d00001 diff --git a/Projectiles/Patreon/MelterNote1.cs b/Projectiles/Patreon/MelterNote1.cs new file mode 100644 index 0000000000..b228dc9622 --- /dev/null +++ b/Projectiles/Patreon/MelterNote1.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class MelterNote1 : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Song"); + } + + public override void SetDefaults() + { + projectile.width = 24; + projectile.height = 24; + projectile.friendly = true; + projectile.magic = true; + projectile.penetrate = 10; + projectile.timeLeft = 600; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 5; + projectile.tileCollide = false; + projectile.ignoreWater = true; + } + + public override void AI() + { + projectile.velocity.X *= 0.985f; + projectile.velocity.Y *= 0.985f; + if (projectile.localAI[0] == 0f) + { + projectile.scale += 0.02f; + if (projectile.scale >= 1.25f) + { + projectile.localAI[0] = 1f; + } + } + else if (projectile.localAI[0] == 1f) + { + projectile.scale -= 0.02f; + if (projectile.scale <= 0.75f) + { + projectile.localAI[0] = 0f; + } + } + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(255, 255, 255); + } + } +} \ No newline at end of file diff --git a/Projectiles/Patreon/MelterNote1.png b/Projectiles/Patreon/MelterNote1.png new file mode 100644 index 0000000000000000000000000000000000000000..fb2a8baf8785c7a08ca2292afa39418d4c2af90f GIT binary patch literal 390 zcmV;10eSw3P)sp4Bl+wok2G7Rky?28a@u#WE$q+I!~x@j0*)J6B42|I*dHKRIXu;LpbfAZ&R<=U;N--hn8$cZn#s zdoPHdO$_Nb&^eH)bML@bE{dh+g2wq(|I0)3tZiFws-t@c1IiD#6``?vs?Pa5Pu0ht zzlyf6bU4mD~lL_`zJDav!zc1@Y+q9= 1.25f) + { + projectile.localAI[0] = 1f; + } + } + else if (projectile.localAI[0] == 1f) + { + projectile.scale -= 0.02f; + if (projectile.scale <= 0.75f) + { + projectile.localAI[0] = 0f; + } + } + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(255, 255, 255); + } + } +} \ No newline at end of file diff --git a/Projectiles/Patreon/MelterNote2.png b/Projectiles/Patreon/MelterNote2.png new file mode 100644 index 0000000000000000000000000000000000000000..c5410f11344f983554838b58f15dc3c8d41e8c1b GIT binary patch literal 313 zcmV-90mlA`P)GTckN4wZ?Kvo9{}cEg4AE6uhRdjUZvqPXLrEN#!bfeqGt$*w?@Ye-k_b*%Dj+^;sdy00000 LNkvXXu0mjfQ{#ms literal 0 HcmV?d00001 diff --git a/Projectiles/Patreon/MiniGuardianAttack.cs b/Projectiles/Patreon/MiniGuardianAttack.cs index 948a85701d..4210eb87c4 100644 --- a/Projectiles/Patreon/MiniGuardianAttack.cs +++ b/Projectiles/Patreon/MiniGuardianAttack.cs @@ -1,247 +1,247 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Localization; -using Terraria.ID; -using Terraria.DataStructures; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Patreon -{ - public class MiniGuardianAttack : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Offensive Guardian"); - Main.projFrames[projectile.type] = 4; - ProjectileID.Sets.MinionSacrificable[projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; - } - - public override void SetDefaults() - { - projectile.netImportant = true; - projectile.tileCollide = false; - projectile.width = 60; - projectile.height = 88; - projectile.minionSlots = 0f; - projectile.minion = true; - projectile.friendly = true; - projectile.penetrate = -1; - projectile.timeLeft = 18000; - projectile.timeLeft *= 5; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 6; - } - - public override void AI() - { - Player player = Main.player[projectile.owner]; - CalamityPlayer modPlayer = player.GetModPlayer(mod); - if (player.dead) - { - modPlayer.gOffense = false; - } - if (modPlayer.gOffense) - { - projectile.timeLeft = 2; - } - if (!modPlayer.pArtifact || (!modPlayer.tarraSummon && !modPlayer.bloodflareSummon && - !modPlayer.godSlayerSummon && !modPlayer.silvaSummon && !modPlayer.dsSetBonus && !modPlayer.omegaBlueSet)) - { - projectile.active = false; - return; - } - float num535 = projectile.position.X; - float num536 = projectile.position.Y; - float num537 = 3000f; - bool flag19 = false; - NPC ownerMinionAttackTargetNPC2 = projectile.OwnerMinionAttackTargetNPC; - if (ownerMinionAttackTargetNPC2 != null && ownerMinionAttackTargetNPC2.CanBeChasedBy(projectile, false)) - { - float num539 = ownerMinionAttackTargetNPC2.position.X + (float)(ownerMinionAttackTargetNPC2.width / 2); - float num540 = ownerMinionAttackTargetNPC2.position.Y + (float)(ownerMinionAttackTargetNPC2.height / 2); - float num541 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num539) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num540); - if (num541 < num537) - { - num537 = num541; - num535 = num539; - num536 = num540; - flag19 = true; - } - } - if (!flag19) - { - int num3; - for (int num542 = 0; num542 < 200; num542 = num3 + 1) - { - if (Main.npc[num542].CanBeChasedBy(projectile, false)) - { - float num543 = Main.npc[num542].position.X + (float)(Main.npc[num542].width / 2); - float num544 = Main.npc[num542].position.Y + (float)(Main.npc[num542].height / 2); - float num545 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num543) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num544); - if (num545 < num537) - { - num537 = num545; - num535 = num543; - num536 = num544; - flag19 = true; - } - } - num3 = num542; - } - } - if (!flag19) - { - float num16 = 0.5f; - projectile.tileCollide = false; - int num17 = 100; - Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num18 = Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2) - vector3.X; - float num19 = Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2) - vector3.Y; - num19 += (float)Main.rand.Next(-10, 21); - num18 += (float)Main.rand.Next(-10, 21); - num18 += (float)(60 * -(float)Main.player[projectile.owner].direction); - num19 -= 60f; - float num20 = (float)Math.Sqrt((double)(num18 * num18 + num19 * num19)); - float num21 = 18f; - - if (num20 < (float)num17 && Main.player[projectile.owner].velocity.Y == 0f && - projectile.position.Y + (float)projectile.height <= Main.player[projectile.owner].position.Y + (float)Main.player[projectile.owner].height && - !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) - { - projectile.ai[0] = 0f; - if (projectile.velocity.Y < -6f) - { - projectile.velocity.Y = -6f; - } - } - if (num20 > 2000f) - { - projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); - projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); - projectile.netUpdate = true; - } - if (num20 < 50f) - { - if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) - { - projectile.velocity *= 0.90f; - } - num16 = 0.01f; - } - else - { - if (num20 < 100f) - { - num16 = 0.1f; - } - if (num20 > 300f) - { - num16 = 1f; - } - num20 = num21 / num20; - num18 *= num20; - num19 *= num20; - } - - if (projectile.velocity.X < num18) - { - projectile.velocity.X = projectile.velocity.X + num16; - if (num16 > 0.05f && projectile.velocity.X < 0f) - { - projectile.velocity.X = projectile.velocity.X + num16; - } - } - if (projectile.velocity.X > num18) - { - projectile.velocity.X = projectile.velocity.X - num16; - if (num16 > 0.05f && projectile.velocity.X > 0f) - { - projectile.velocity.X = projectile.velocity.X - num16; - } - } - if (projectile.velocity.Y < num19) - { - projectile.velocity.Y = projectile.velocity.Y + num16; - if (num16 > 0.05f && projectile.velocity.Y < 0f) - { - projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; - } - } - if (projectile.velocity.Y > num19) - { - projectile.velocity.Y = projectile.velocity.Y - num16; - if (num16 > 0.05f && projectile.velocity.Y > 0f) - { - projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; - } - } - } - else - { - if (projectile.ai[1] == -1f) - { - projectile.ai[1] = 17f; - } - if (projectile.ai[1] > 0f) - { - projectile.ai[1] -= 1f; - } - if (projectile.ai[1] == 0f) - { - float num550 = 24f; //12 - Vector2 vector43 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num551 = num535 - vector43.X; - float num552 = num536 - vector43.Y; - float num553 = (float)Math.Sqrt((double)(num551 * num551 + num552 * num552)); - if (num553 < 100f) - { - num550 = 28f; //14 - } - if (modPlayer.gDefense) - { - num550 *= 0.95f; - } - num553 = num550 / num553; - num551 *= num553; - num552 *= num553; - projectile.velocity.X = (projectile.velocity.X * 14f + num551) / 15f; - projectile.velocity.Y = (projectile.velocity.Y * 14f + num552) / 15f; - } - else - { - if (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y) < 10f) - { - projectile.velocity *= 1.05f; - } - } - } - if ((double)projectile.velocity.X > 0.25) - { - projectile.direction = -1; - } - else if ((double)projectile.velocity.X < -0.25) - { - projectile.direction = 1; - } - - if ((double)Math.Abs(projectile.velocity.X) > 0.2) - { - projectile.spriteDirection = -projectile.direction; - } - - projectile.frameCounter++; - if (projectile.frameCounter > 5) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 3) - { - projectile.frame = 0; - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Localization; +using Terraria.ID; +using Terraria.DataStructures; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class MiniGuardianAttack : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Offensive Guardian"); + Main.projFrames[projectile.type] = 4; + ProjectileID.Sets.MinionSacrificable[projectile.type] = true; + ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.netImportant = true; + projectile.tileCollide = false; + projectile.width = 60; + projectile.height = 88; + projectile.minionSlots = 0f; + projectile.minion = true; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.timeLeft = 18000; + projectile.timeLeft *= 5; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 6; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (player.dead) + { + modPlayer.gOffense = false; + } + if (modPlayer.gOffense) + { + projectile.timeLeft = 2; + } + if (!modPlayer.pArtifact || (!modPlayer.tarraSummon && !modPlayer.bloodflareSummon && + !modPlayer.godSlayerSummon && !modPlayer.silvaSummon && !modPlayer.dsSetBonus && !modPlayer.omegaBlueSet)) + { + projectile.active = false; + return; + } + float num535 = projectile.position.X; + float num536 = projectile.position.Y; + float num537 = 3000f; + bool flag19 = false; + NPC ownerMinionAttackTargetNPC2 = projectile.OwnerMinionAttackTargetNPC; + if (ownerMinionAttackTargetNPC2 != null && ownerMinionAttackTargetNPC2.CanBeChasedBy(projectile, false)) + { + float num539 = ownerMinionAttackTargetNPC2.position.X + (float)(ownerMinionAttackTargetNPC2.width / 2); + float num540 = ownerMinionAttackTargetNPC2.position.Y + (float)(ownerMinionAttackTargetNPC2.height / 2); + float num541 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num539) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num540); + if (num541 < num537) + { + num537 = num541; + num535 = num539; + num536 = num540; + flag19 = true; + } + } + if (!flag19) + { + int num3; + for (int num542 = 0; num542 < 200; num542 = num3 + 1) + { + if (Main.npc[num542].CanBeChasedBy(projectile, false)) + { + float num543 = Main.npc[num542].position.X + (float)(Main.npc[num542].width / 2); + float num544 = Main.npc[num542].position.Y + (float)(Main.npc[num542].height / 2); + float num545 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num543) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num544); + if (num545 < num537) + { + num537 = num545; + num535 = num543; + num536 = num544; + flag19 = true; + } + } + num3 = num542; + } + } + if (!flag19) + { + float num16 = 0.5f; + projectile.tileCollide = false; + int num17 = 100; + Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num18 = Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2) - vector3.X; + float num19 = Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2) - vector3.Y; + num19 += (float)Main.rand.Next(-10, 21); + num18 += (float)Main.rand.Next(-10, 21); + num18 += (float)(60 * -(float)Main.player[projectile.owner].direction); + num19 -= 60f; + float num20 = (float)Math.Sqrt((double)(num18 * num18 + num19 * num19)); + float num21 = 18f; + + if (num20 < (float)num17 && Main.player[projectile.owner].velocity.Y == 0f && + projectile.position.Y + (float)projectile.height <= Main.player[projectile.owner].position.Y + (float)Main.player[projectile.owner].height && + !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + { + projectile.ai[0] = 0f; + if (projectile.velocity.Y < -6f) + { + projectile.velocity.Y = -6f; + } + } + if (num20 > 2000f) + { + projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); + projectile.netUpdate = true; + } + if (num20 < 50f) + { + if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) + { + projectile.velocity *= 0.90f; + } + num16 = 0.01f; + } + else + { + if (num20 < 100f) + { + num16 = 0.1f; + } + if (num20 > 300f) + { + num16 = 1f; + } + num20 = num21 / num20; + num18 *= num20; + num19 *= num20; + } + + if (projectile.velocity.X < num18) + { + projectile.velocity.X = projectile.velocity.X + num16; + if (num16 > 0.05f && projectile.velocity.X < 0f) + { + projectile.velocity.X = projectile.velocity.X + num16; + } + } + if (projectile.velocity.X > num18) + { + projectile.velocity.X = projectile.velocity.X - num16; + if (num16 > 0.05f && projectile.velocity.X > 0f) + { + projectile.velocity.X = projectile.velocity.X - num16; + } + } + if (projectile.velocity.Y < num19) + { + projectile.velocity.Y = projectile.velocity.Y + num16; + if (num16 > 0.05f && projectile.velocity.Y < 0f) + { + projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; + } + } + if (projectile.velocity.Y > num19) + { + projectile.velocity.Y = projectile.velocity.Y - num16; + if (num16 > 0.05f && projectile.velocity.Y > 0f) + { + projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; + } + } + } + else + { + if (projectile.ai[1] == -1f) + { + projectile.ai[1] = 17f; + } + if (projectile.ai[1] > 0f) + { + projectile.ai[1] -= 1f; + } + if (projectile.ai[1] == 0f) + { + float num550 = 24f; //12 + Vector2 vector43 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num551 = num535 - vector43.X; + float num552 = num536 - vector43.Y; + float num553 = (float)Math.Sqrt((double)(num551 * num551 + num552 * num552)); + if (num553 < 100f) + { + num550 = 28f; //14 + } + if (modPlayer.gDefense) + { + num550 *= 0.95f; + } + num553 = num550 / num553; + num551 *= num553; + num552 *= num553; + projectile.velocity.X = (projectile.velocity.X * 14f + num551) / 15f; + projectile.velocity.Y = (projectile.velocity.Y * 14f + num552) / 15f; + } + else + { + if (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y) < 10f) + { + projectile.velocity *= 1.05f; + } + } + } + if ((double)projectile.velocity.X > 0.25) + { + projectile.direction = -1; + } + else if ((double)projectile.velocity.X < -0.25) + { + projectile.direction = 1; + } + + if ((double)Math.Abs(projectile.velocity.X) > 0.2) + { + projectile.spriteDirection = -projectile.direction; + } + + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/MiniGuardianDefense.cs b/Projectiles/Patreon/MiniGuardianDefense.cs index 0af945870b..e00df1f2ac 100644 --- a/Projectiles/Patreon/MiniGuardianDefense.cs +++ b/Projectiles/Patreon/MiniGuardianDefense.cs @@ -1,246 +1,246 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Localization; -using Terraria.ID; -using Terraria.DataStructures; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Patreon -{ - public class MiniGuardianDefense : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Defensive Guardian"); - Main.projFrames[projectile.type] = 4; - ProjectileID.Sets.MinionSacrificable[projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; - } - - public override void SetDefaults() - { - projectile.netImportant = true; - projectile.tileCollide = false; - projectile.width = 62; - projectile.height = 80; - projectile.minionSlots = 0f; - projectile.minion = true; - projectile.friendly = true; - projectile.penetrate = -1; - projectile.timeLeft = 18000; - projectile.timeLeft *= 5; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 6; - } - - public override void AI() - { - Player player = Main.player[projectile.owner]; - CalamityPlayer modPlayer = player.GetModPlayer(mod); - if (player.dead) - { - modPlayer.gDefense = false; - } - if (modPlayer.gDefense) - { - projectile.timeLeft = 2; - } - if (!modPlayer.pArtifact || player.maxMinions < 8) - { - projectile.active = false; - return; - } - float num535 = projectile.position.X; - float num536 = projectile.position.Y; - float num537 = 3000f; - bool flag19 = false; - NPC ownerMinionAttackTargetNPC2 = projectile.OwnerMinionAttackTargetNPC; - if (ownerMinionAttackTargetNPC2 != null && ownerMinionAttackTargetNPC2.CanBeChasedBy(projectile, false)) - { - float num539 = ownerMinionAttackTargetNPC2.position.X + (float)(ownerMinionAttackTargetNPC2.width / 2); - float num540 = ownerMinionAttackTargetNPC2.position.Y + (float)(ownerMinionAttackTargetNPC2.height / 2); - float num541 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num539) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num540); - if (num541 < num537) - { - num537 = num541; - num535 = num539; - num536 = num540; - flag19 = true; - } - } - if (!flag19) - { - int num3; - for (int num542 = 0; num542 < 200; num542 = num3 + 1) - { - if (Main.npc[num542].CanBeChasedBy(projectile, false)) - { - float num543 = Main.npc[num542].position.X + (float)(Main.npc[num542].width / 2); - float num544 = Main.npc[num542].position.Y + (float)(Main.npc[num542].height / 2); - float num545 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num543) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num544); - if (num545 < num537) - { - num537 = num545; - num535 = num543; - num536 = num544; - flag19 = true; - } - } - num3 = num542; - } - } - if (!flag19) - { - float num16 = 0.5f; - projectile.tileCollide = false; - int num17 = 100; - Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num18 = Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2) - vector3.X; - float num19 = Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2) - vector3.Y; - num19 += (float)Main.rand.Next(-10, 21); - num18 += (float)Main.rand.Next(-10, 21); - num18 += (float)(60 * -(float)Main.player[projectile.owner].direction); - num19 -= 60f; - float num20 = (float)Math.Sqrt((double)(num18 * num18 + num19 * num19)); - float num21 = 18f; - - if (num20 < (float)num17 && Main.player[projectile.owner].velocity.Y == 0f && - projectile.position.Y + (float)projectile.height <= Main.player[projectile.owner].position.Y + (float)Main.player[projectile.owner].height && - !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) - { - projectile.ai[0] = 0f; - if (projectile.velocity.Y < -6f) - { - projectile.velocity.Y = -6f; - } - } - if (num20 > 2000f) - { - projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); - projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); - projectile.netUpdate = true; - } - if (num20 < 50f) - { - if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) - { - projectile.velocity *= 0.90f; - } - num16 = 0.01f; - } - else - { - if (num20 < 100f) - { - num16 = 0.1f; - } - if (num20 > 300f) - { - num16 = 1f; - } - num20 = num21 / num20; - num18 *= num20; - num19 *= num20; - } - - if (projectile.velocity.X < num18) - { - projectile.velocity.X = projectile.velocity.X + num16; - if (num16 > 0.05f && projectile.velocity.X < 0f) - { - projectile.velocity.X = projectile.velocity.X + num16; - } - } - if (projectile.velocity.X > num18) - { - projectile.velocity.X = projectile.velocity.X - num16; - if (num16 > 0.05f && projectile.velocity.X > 0f) - { - projectile.velocity.X = projectile.velocity.X - num16; - } - } - if (projectile.velocity.Y < num19) - { - projectile.velocity.Y = projectile.velocity.Y + num16; - if (num16 > 0.05f && projectile.velocity.Y < 0f) - { - projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; - } - } - if (projectile.velocity.Y > num19) - { - projectile.velocity.Y = projectile.velocity.Y - num16; - if (num16 > 0.05f && projectile.velocity.Y > 0f) - { - projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; - } - } - } - else - { - if (projectile.ai[1] == -1f) - { - projectile.ai[1] = 17f; - } - if (projectile.ai[1] > 0f) - { - projectile.ai[1] -= 1f; - } - if (projectile.ai[1] == 0f) - { - float num550 = 24f; //12 - Vector2 vector43 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num551 = num535 - vector43.X; - float num552 = num536 - vector43.Y; - float num553 = (float)Math.Sqrt((double)(num551 * num551 + num552 * num552)); - if (num553 < 100f) - { - num550 = 28f; //14 - } - if (modPlayer.gOffense) - { - num550 *= 0.95f; - } - num553 = num550 / num553; - num551 *= num553; - num552 *= num553; - projectile.velocity.X = (projectile.velocity.X * 14f + num551) / 15f; - projectile.velocity.Y = (projectile.velocity.Y * 14f + num552) / 15f; - } - else - { - if (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y) < 10f) - { - projectile.velocity *= 1.05f; - } - } - } - if ((double)projectile.velocity.X > 0.25) - { - projectile.direction = -1; - } - else if ((double)projectile.velocity.X < -0.25) - { - projectile.direction = 1; - } - - if ((double)Math.Abs(projectile.velocity.X) > 0.2) - { - projectile.spriteDirection = -projectile.direction; - } - - projectile.frameCounter++; - if (projectile.frameCounter > 5) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 3) - { - projectile.frame = 0; - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Localization; +using Terraria.ID; +using Terraria.DataStructures; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class MiniGuardianDefense : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Defensive Guardian"); + Main.projFrames[projectile.type] = 4; + ProjectileID.Sets.MinionSacrificable[projectile.type] = true; + ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.netImportant = true; + projectile.tileCollide = false; + projectile.width = 62; + projectile.height = 80; + projectile.minionSlots = 0f; + projectile.minion = true; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.timeLeft = 18000; + projectile.timeLeft *= 5; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 6; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (player.dead) + { + modPlayer.gDefense = false; + } + if (modPlayer.gDefense) + { + projectile.timeLeft = 2; + } + if (!modPlayer.pArtifact || player.maxMinions < 8) + { + projectile.active = false; + return; + } + float num535 = projectile.position.X; + float num536 = projectile.position.Y; + float num537 = 3000f; + bool flag19 = false; + NPC ownerMinionAttackTargetNPC2 = projectile.OwnerMinionAttackTargetNPC; + if (ownerMinionAttackTargetNPC2 != null && ownerMinionAttackTargetNPC2.CanBeChasedBy(projectile, false)) + { + float num539 = ownerMinionAttackTargetNPC2.position.X + (float)(ownerMinionAttackTargetNPC2.width / 2); + float num540 = ownerMinionAttackTargetNPC2.position.Y + (float)(ownerMinionAttackTargetNPC2.height / 2); + float num541 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num539) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num540); + if (num541 < num537) + { + num537 = num541; + num535 = num539; + num536 = num540; + flag19 = true; + } + } + if (!flag19) + { + int num3; + for (int num542 = 0; num542 < 200; num542 = num3 + 1) + { + if (Main.npc[num542].CanBeChasedBy(projectile, false)) + { + float num543 = Main.npc[num542].position.X + (float)(Main.npc[num542].width / 2); + float num544 = Main.npc[num542].position.Y + (float)(Main.npc[num542].height / 2); + float num545 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num543) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num544); + if (num545 < num537) + { + num537 = num545; + num535 = num543; + num536 = num544; + flag19 = true; + } + } + num3 = num542; + } + } + if (!flag19) + { + float num16 = 0.5f; + projectile.tileCollide = false; + int num17 = 100; + Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num18 = Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2) - vector3.X; + float num19 = Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2) - vector3.Y; + num19 += (float)Main.rand.Next(-10, 21); + num18 += (float)Main.rand.Next(-10, 21); + num18 += (float)(60 * -(float)Main.player[projectile.owner].direction); + num19 -= 60f; + float num20 = (float)Math.Sqrt((double)(num18 * num18 + num19 * num19)); + float num21 = 18f; + + if (num20 < (float)num17 && Main.player[projectile.owner].velocity.Y == 0f && + projectile.position.Y + (float)projectile.height <= Main.player[projectile.owner].position.Y + (float)Main.player[projectile.owner].height && + !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + { + projectile.ai[0] = 0f; + if (projectile.velocity.Y < -6f) + { + projectile.velocity.Y = -6f; + } + } + if (num20 > 2000f) + { + projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); + projectile.netUpdate = true; + } + if (num20 < 50f) + { + if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) + { + projectile.velocity *= 0.90f; + } + num16 = 0.01f; + } + else + { + if (num20 < 100f) + { + num16 = 0.1f; + } + if (num20 > 300f) + { + num16 = 1f; + } + num20 = num21 / num20; + num18 *= num20; + num19 *= num20; + } + + if (projectile.velocity.X < num18) + { + projectile.velocity.X = projectile.velocity.X + num16; + if (num16 > 0.05f && projectile.velocity.X < 0f) + { + projectile.velocity.X = projectile.velocity.X + num16; + } + } + if (projectile.velocity.X > num18) + { + projectile.velocity.X = projectile.velocity.X - num16; + if (num16 > 0.05f && projectile.velocity.X > 0f) + { + projectile.velocity.X = projectile.velocity.X - num16; + } + } + if (projectile.velocity.Y < num19) + { + projectile.velocity.Y = projectile.velocity.Y + num16; + if (num16 > 0.05f && projectile.velocity.Y < 0f) + { + projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; + } + } + if (projectile.velocity.Y > num19) + { + projectile.velocity.Y = projectile.velocity.Y - num16; + if (num16 > 0.05f && projectile.velocity.Y > 0f) + { + projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; + } + } + } + else + { + if (projectile.ai[1] == -1f) + { + projectile.ai[1] = 17f; + } + if (projectile.ai[1] > 0f) + { + projectile.ai[1] -= 1f; + } + if (projectile.ai[1] == 0f) + { + float num550 = 24f; //12 + Vector2 vector43 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num551 = num535 - vector43.X; + float num552 = num536 - vector43.Y; + float num553 = (float)Math.Sqrt((double)(num551 * num551 + num552 * num552)); + if (num553 < 100f) + { + num550 = 28f; //14 + } + if (modPlayer.gOffense) + { + num550 *= 0.95f; + } + num553 = num550 / num553; + num551 *= num553; + num552 *= num553; + projectile.velocity.X = (projectile.velocity.X * 14f + num551) / 15f; + projectile.velocity.Y = (projectile.velocity.Y * 14f + num552) / 15f; + } + else + { + if (Math.Abs(projectile.velocity.X) + Math.Abs(projectile.velocity.Y) < 10f) + { + projectile.velocity *= 1.05f; + } + } + } + if ((double)projectile.velocity.X > 0.25) + { + projectile.direction = -1; + } + else if ((double)projectile.velocity.X < -0.25) + { + projectile.direction = 1; + } + + if ((double)Math.Abs(projectile.velocity.X) > 0.2) + { + projectile.spriteDirection = -projectile.direction; + } + + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/MiniGuardianHealer.cs b/Projectiles/Patreon/MiniGuardianHealer.cs index ef4473757e..ea4e350b0d 100644 --- a/Projectiles/Patreon/MiniGuardianHealer.cs +++ b/Projectiles/Patreon/MiniGuardianHealer.cs @@ -1,164 +1,164 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.Localization; -using Terraria.ID; -using Terraria.DataStructures; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Patreon -{ - public class MiniGuardianHealer : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Healer Guardian"); - Main.projFrames[projectile.type] = 4; - ProjectileID.Sets.MinionSacrificable[projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; - } - - public override void SetDefaults() - { - projectile.netImportant = true; - projectile.tileCollide = false; - projectile.width = 68; - projectile.height = 82; - projectile.friendly = true; - projectile.minionSlots = 0f; - projectile.minion = true; - projectile.penetrate = -1; - projectile.timeLeft = 18000; - projectile.timeLeft *= 5; - } - - public override void AI() - { - Player player = Main.player[projectile.owner]; - CalamityPlayer modPlayer = player.GetModPlayer(mod); - if (player.dead) - { - modPlayer.gHealer = false; - } - if (modPlayer.gHealer) - { - projectile.timeLeft = 2; - } - if (!modPlayer.pArtifact) - { - projectile.active = false; - return; - } - Player projOwner = Main.player[projectile.owner]; - float num16 = 0.5f; - projectile.tileCollide = false; - int num17 = 100; - Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num18 = projOwner.position.X + (float)(projOwner.width / 2) - vector3.X; - float num19 = projOwner.position.Y + (float)(projOwner.height / 2) - vector3.Y; - num19 += (float)Main.rand.Next(-10, 21); - num18 += (float)Main.rand.Next(-10, 21); - num18 += (float)(60 * -(float)projOwner.direction); - num19 -= 60f; - float num20 = (float)Math.Sqrt((double)(num18 * num18 + num19 * num19)); - float num21 = 18f; - - if (num20 < (float)num17 && projOwner.velocity.Y == 0f && - projectile.position.Y + (float)projectile.height <= projOwner.position.Y + (float)projOwner.height && - !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) - { - projectile.ai[0] = 0f; - if (projectile.velocity.Y < -6f) - { - projectile.velocity.Y = -6f; - } - } - if (num20 > 2000f) - { - projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); - projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); - projectile.netUpdate = true; - } - if (num20 < 50f) - { - if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) - { - projectile.velocity *= 0.90f; - } - num16 = 0.01f; - } - else - { - if (num20 < 100f) - { - num16 = 0.1f; - } - if (num20 > 300f) - { - num16 = 1f; - } - num20 = num21 / num20; - num18 *= num20; - num19 *= num20; - } - - if (projectile.velocity.X < num18) - { - projectile.velocity.X = projectile.velocity.X + num16; - if (num16 > 0.05f && projectile.velocity.X < 0f) - { - projectile.velocity.X = projectile.velocity.X + num16; - } - } - if (projectile.velocity.X > num18) - { - projectile.velocity.X = projectile.velocity.X - num16; - if (num16 > 0.05f && projectile.velocity.X > 0f) - { - projectile.velocity.X = projectile.velocity.X - num16; - } - } - if (projectile.velocity.Y < num19) - { - projectile.velocity.Y = projectile.velocity.Y + num16; - if (num16 > 0.05f && projectile.velocity.Y < 0f) - { - projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; - } - } - if (projectile.velocity.Y > num19) - { - projectile.velocity.Y = projectile.velocity.Y - num16; - if (num16 > 0.05f && projectile.velocity.Y > 0f) - { - projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; - } - } - if ((double)projectile.velocity.X > 0.25) - { - projectile.direction = -1; - } - else if ((double)projectile.velocity.X < -0.25) - { - projectile.direction = 1; - } - - if ((double)Math.Abs(projectile.velocity.X) > 0.2) - { - projectile.spriteDirection = -projectile.direction; - } - - projectile.frameCounter++; - if (projectile.frameCounter > 5) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 3) - { - projectile.frame = 0; - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Localization; +using Terraria.ID; +using Terraria.DataStructures; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class MiniGuardianHealer : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Healer Guardian"); + Main.projFrames[projectile.type] = 4; + ProjectileID.Sets.MinionSacrificable[projectile.type] = true; + ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.netImportant = true; + projectile.tileCollide = false; + projectile.width = 68; + projectile.height = 82; + projectile.friendly = true; + projectile.minionSlots = 0f; + projectile.minion = true; + projectile.penetrate = -1; + projectile.timeLeft = 18000; + projectile.timeLeft *= 5; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (player.dead) + { + modPlayer.gHealer = false; + } + if (modPlayer.gHealer) + { + projectile.timeLeft = 2; + } + if (!modPlayer.pArtifact) + { + projectile.active = false; + return; + } + Player projOwner = Main.player[projectile.owner]; + float num16 = 0.5f; + projectile.tileCollide = false; + int num17 = 100; + Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num18 = projOwner.position.X + (float)(projOwner.width / 2) - vector3.X; + float num19 = projOwner.position.Y + (float)(projOwner.height / 2) - vector3.Y; + num19 += (float)Main.rand.Next(-10, 21); + num18 += (float)Main.rand.Next(-10, 21); + num18 += (float)(60 * -(float)projOwner.direction); + num19 -= 60f; + float num20 = (float)Math.Sqrt((double)(num18 * num18 + num19 * num19)); + float num21 = 18f; + + if (num20 < (float)num17 && projOwner.velocity.Y == 0f && + projectile.position.Y + (float)projectile.height <= projOwner.position.Y + (float)projOwner.height && + !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + { + projectile.ai[0] = 0f; + if (projectile.velocity.Y < -6f) + { + projectile.velocity.Y = -6f; + } + } + if (num20 > 2000f) + { + projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); + projectile.netUpdate = true; + } + if (num20 < 50f) + { + if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) + { + projectile.velocity *= 0.90f; + } + num16 = 0.01f; + } + else + { + if (num20 < 100f) + { + num16 = 0.1f; + } + if (num20 > 300f) + { + num16 = 1f; + } + num20 = num21 / num20; + num18 *= num20; + num19 *= num20; + } + + if (projectile.velocity.X < num18) + { + projectile.velocity.X = projectile.velocity.X + num16; + if (num16 > 0.05f && projectile.velocity.X < 0f) + { + projectile.velocity.X = projectile.velocity.X + num16; + } + } + if (projectile.velocity.X > num18) + { + projectile.velocity.X = projectile.velocity.X - num16; + if (num16 > 0.05f && projectile.velocity.X > 0f) + { + projectile.velocity.X = projectile.velocity.X - num16; + } + } + if (projectile.velocity.Y < num19) + { + projectile.velocity.Y = projectile.velocity.Y + num16; + if (num16 > 0.05f && projectile.velocity.Y < 0f) + { + projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; + } + } + if (projectile.velocity.Y > num19) + { + projectile.velocity.Y = projectile.velocity.Y - num16; + if (num16 > 0.05f && projectile.velocity.Y > 0f) + { + projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; + } + } + if ((double)projectile.velocity.X > 0.25) + { + projectile.direction = -1; + } + else if ((double)projectile.velocity.X < -0.25) + { + projectile.direction = 1; + } + + if ((double)Math.Abs(projectile.velocity.X) > 0.2) + { + projectile.spriteDirection = -projectile.direction; + } + + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + } } \ No newline at end of file diff --git a/Projectiles/Patreon/ThePackMinissile.cs b/Projectiles/Patreon/ThePackMinissile.cs new file mode 100644 index 0000000000..81af04b7e8 --- /dev/null +++ b/Projectiles/Patreon/ThePackMinissile.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Patreon +{ + public class ThePackMinissile : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Pack Minissile"); + Main.projFrames[projectile.type] = 4; + } + + public override void SetDefaults() + { + projectile.width = 30; + projectile.height = 14; + projectile.friendly = true; + projectile.ranged = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + float centerX = projectile.Center.X; + float centerY = projectile.Center.Y; + float num474 = 1500f; + bool homeIn = false; + for (int num475 = 0; num475 < 200; num475++) + { + if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) + { + float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); + float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + centerX = num476; + centerY = num477; + homeIn = true; + } + } + } + if (homeIn) + { + float num483 = 25f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = centerX - vector35.X; + float num485 = centerY - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 15f + num484) / 16f; + projectile.velocity.Y = (projectile.velocity.Y * 15f + num485) / 16f; + return; + } + projectile.frameCounter++; + if (projectile.frameCounter > 3) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + for (int i = 0; i < 10; i++) + { + int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 255, 0f, 0f, 0, default(Color), 1f); + + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Patreon/ThePackMinissile.png b/Projectiles/Patreon/ThePackMinissile.png new file mode 100644 index 0000000000000000000000000000000000000000..343769d211f0209ec2eb2385bb57e15c4fa31986 GIT binary patch literal 532 zcmeAS@N?(olHy`uVBq!ia0vp^azJds!3-qtO7GYWqz(l5gt#&=)akM@ovJhcc06^} zocVXIUeS`)Sy@$Os%=>3XH%A%+!7j^H)O^!AFLv{~4bC|Np;P zI}ymeTetq(!B1crG@=fTPhIX|m!M*xi4G+}e!&bt*H8k4wdWZE%{uJq;uvDldvwY{ zz7_=@m(ra(+=DW{{I4(3 z(XjL5Ng?L#$A#TQbPNkJeF}Y!=36g2H> 3) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + } + + public override void Kill(int timeLeft) + { + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 400; + projectile.height = 400; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num621 = 0; num621 < 40; num621++) + { + int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 255, 0f, 0f, 0, default(Color), 1.5f); + Main.dust[num622].velocity *= 3f; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 60; num623++) + { + int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 255, 0f, 0f, 0, default(Color), 2f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 255, 0f, 0f, 0, default(Color), 1.5f); + Main.dust[num624].velocity *= 2f; + } + projectile.Damage(); + } + } +} \ No newline at end of file diff --git a/Projectiles/Patreon/ThePackMissile.png b/Projectiles/Patreon/ThePackMissile.png new file mode 100644 index 0000000000000000000000000000000000000000..76f97a623721a3a09ddcfff3e8a8651d44923af8 GIT binary patch literal 510 zcmeAS@N?(olHy`uVBq!ia0vp^And`x3}WpM3IS5d0X`wF3=DO;Y)q%>%)cE^T{UO^ zovT;0q;*zSRheoV*7@0#r6#w8hGu!h0~zV@(cOWr*`|6xtw8XRVd{T|r~m)|Z`Mu( za_`oy|90>bSO$%#v+Bxw3lvi<3GxeO0BXPs+`jlNVPIg?^mK6yiD-R0{UBe90*^~? z%njv8(@+2Hck$e1Gktw9b(TYkkfC5@*R+MQZOu*^x}GH|9ENQw&(}FPPctn#<#c`1 zn(Ur)y~#Tk7-qLGRbKvbF00Oh^-GF&f4A6jG*aPH#NH;u9p73nO>E%(X`}w~h@#{s z)@cj1W^THz;mA9|b%xc;XelMrj*?5)n>^wkAJ(mod).rogue = true; } public override void SetStaticDefaults() diff --git a/Projectiles/Permafrost/FrostyFlare.cs b/Projectiles/Permafrost/FrostyFlare.cs index 04402060d5..b8f4216d3c 100644 --- a/Projectiles/Permafrost/FrostyFlare.cs +++ b/Projectiles/Permafrost/FrostyFlare.cs @@ -17,6 +17,7 @@ namespace CalamityMod.Projectiles.Permafrost projectile.friendly = true; projectile.penetrate = -1; projectile.timeLeft = 300; + projectile.GetGlobalProjectile(mod).rogue = true; } public override void SetStaticDefaults() diff --git a/Projectiles/Permafrost/IceSentry.cs b/Projectiles/Permafrost/IceSentry.cs index 0cb0a30d54..c660e1c58b 100644 --- a/Projectiles/Permafrost/IceSentry.cs +++ b/Projectiles/Permafrost/IceSentry.cs @@ -13,6 +13,8 @@ namespace CalamityMod.Projectiles.Permafrost { public class IceSentry : ModProjectile { + private bool setDamage = true; + public override void SetStaticDefaults() { DisplayName.SetDefault("Ice Sentry"); @@ -32,7 +34,21 @@ namespace CalamityMod.Projectiles.Permafrost public override void AI() { - projectile.velocity = Vector2.Zero; + if (setDamage) + { + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + setDamage = false; + } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + + projectile.velocity = Vector2.Zero; projectile.frameCounter++; if (projectile.frameCounter > 6) @@ -102,7 +118,6 @@ namespace CalamityMod.Projectiles.Permafrost Vector2 speed = npc.Center - projectile.Center; speed.Normalize(); speed *= 8f; - int damage = projectile.damage; if (projectile.ai[1] >= 300f) speed = speed.RotatedBy(MathHelper.ToRadians(Main.rand.Next(-5, 6))) * 1.5f + npc.velocity / 2f; int p = Projectile.NewProjectile(projectile.Center, speed + npc.velocity / 2f, mod.ProjectileType("FrostBoltProjectile"), projectile.damage, projectile.knockBack, projectile.owner); @@ -155,5 +170,10 @@ namespace CalamityMod.Projectiles.Permafrost } } } - } + + public override bool CanDamage() + { + return false; + } + } } diff --git a/Projectiles/Bear.cs b/Projectiles/Pets/Bear.cs similarity index 96% rename from Projectiles/Bear.cs rename to Projectiles/Pets/Bear.cs index 654733d8a7..80d5c07258 100644 --- a/Projectiles/Bear.cs +++ b/Projectiles/Pets/Bear.cs @@ -1,368 +1,368 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles -{ - public class Bear : ModProjectile - { - public int chosenIdle = 0; - public int idleTimer = 0; - public int playerStill = 0; - public bool fly = false; - public bool easyfix = true; - - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Bear"); - Main.projFrames[projectile.type] = 22; - Main.projPet[projectile.type] = true; - } - - public override void SetDefaults() - { - projectile.netImportant = true; - projectile.width = 44; - projectile.height = 44; - projectile.friendly = true; - projectile.penetrate = -1; - projectile.timeLeft *= 5; - projectile.tileCollide = true; - } - - public override void AI() - { - Player player = Main.player[projectile.owner]; - if (!player.active) - { - projectile.active = false; - return; - } - CalamityPlayer modPlayer = player.GetModPlayer(mod); - if (player.dead) - { - modPlayer.bearPet = false; - } - if (modPlayer.bearPet) - { - projectile.timeLeft = 2; - } - Vector2 vector46 = projectile.position; - if(easyfix) - { - projectile.position.Y += -3f; - easyfix = false; - } - if (!fly) - { - Vector2 center2 = projectile.Center; - Vector2 vector48 = player.Center - center2; - float playerDistance = vector48.Length(); - if (projectile.velocity.Y == 0 && (HoleBelow() || (playerDistance > 110f && projectile.position.X == projectile.oldPosition.X))) - { - projectile.velocity.Y = -5f; - } - projectile.velocity.Y += 0.20f; - - if(projectile.velocity.Y > 7f) - { - projectile.velocity.Y = 7f; - } - - if (playerDistance > 600f) - { - fly = true; - projectile.velocity.X = 0f; - projectile.velocity.Y = 0f; - projectile.tileCollide = false; - } - if (playerDistance > 100f) - { - if (player.position.X - projectile.position.X > 0f) - { - projectile.velocity.X += 0.10f; - - if(projectile.velocity.X > 7f) - { - projectile.velocity.X = 7f; - } - } - else - { - projectile.velocity.X -= 0.10f; - - if (projectile.velocity.X < -7f) - { - projectile.velocity.X = -7f; - } - } - } - if (playerDistance < 100f) - { - if (projectile.velocity.X != 0f) - { - if (projectile.velocity.X > 0.5f) - { - projectile.velocity.X -= 0.15f; - } - else if (projectile.velocity.X < -0.5f) - { - projectile.velocity.X += 0.15f; - } - else if (projectile.velocity.X < 0.5f && projectile.velocity.X > -0.5f) - { - projectile.velocity.X = 0f; - } - } - } - if (projectile.position.X == projectile.oldPosition.X && projectile.position.Y == projectile.oldPosition.Y && projectile.velocity.X == 0) - { - projectile.frameCounter++; - - switch (chosenIdle) - { - case 1: - if (idleTimer == 0) - { - projectile.frame = 0; - } - ++idleTimer; - if (projectile.frameCounter > 5) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 3) - { - chosenIdle = 0; - } - if (projectile.frame < 1) - { - projectile.frame = 1; - } - break; - - case 2: - if (idleTimer == 0) - { - projectile.frame = 0; - } - ++idleTimer; - if (projectile.frameCounter > 5) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 9) - { - chosenIdle = 0; - } - if (projectile.frame < 4) - { - projectile.frame = 4; - } - break; - - case 3: - if (idleTimer == 0) - { - projectile.frame = 0; - } - ++idleTimer; - if (projectile.frameCounter > 5) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 12) - { - chosenIdle = 0; - } - if (projectile.frame < 10) - { - projectile.frame = 10; - } - break; - } - if (chosenIdle == 0) - { - projectile.frame = 0; - projectile.frameCounter = 5; - ++idleTimer; - if (idleTimer > 120) - { - chosenIdle = Main.rand.Next(1, 4); - idleTimer = 0; - } - } - } - else if (projectile.velocity.Y > 0.3f && projectile.position.Y != projectile.oldPosition.Y) - { - projectile.frame = 13; - projectile.frameCounter = 0; - } - else - { - projectile.frameCounter++; - if (projectile.frameCounter > 5) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 17) - { - projectile.frame = 14; - } - if (projectile.frame < 14) - { - projectile.frame = 14; - } - } - } - else if (fly) - { - float num16 = 0.3f; - projectile.tileCollide = false; - Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float horiPos = Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2) - vector3.X; - float vertiPos = Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2) - vector3.Y; - vertiPos += (float)Main.rand.Next(-10, 21); - horiPos += (float)Main.rand.Next(-10, 21); - horiPos += (float)(60 * -(float)Main.player[projectile.owner].direction); - vertiPos -= 60f; - float playerDistance = (float)Math.Sqrt((double)(horiPos * horiPos + vertiPos * vertiPos)); - float num21 = 18f; - float num27 = (float)Math.Sqrt((double)(horiPos * horiPos + vertiPos * vertiPos)); - - if (playerDistance > 2000f) - { - projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); - projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); - projectile.netUpdate = true; - } - if (playerDistance < 50f) - { - if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) - { - projectile.velocity *= 0.90f; - } - num16 = 0.01f; - } - else - { - if (playerDistance < 100f) - { - num16 = 0.1f; - } - if (playerDistance > 300f) - { - num16 = 1f; - } - playerDistance = num21 / playerDistance; - horiPos *= playerDistance; - vertiPos *= playerDistance; - } - - if (projectile.velocity.X < horiPos) - { - projectile.velocity.X = projectile.velocity.X + num16; - if (num16 > 0.05f && projectile.velocity.X < 0f) - { - projectile.velocity.X = projectile.velocity.X + num16; - } - } - if (projectile.velocity.X > horiPos) - { - projectile.velocity.X = projectile.velocity.X - num16; - if (num16 > 0.05f && projectile.velocity.X > 0f) - { - projectile.velocity.X = projectile.velocity.X - num16; - } - } - if (projectile.velocity.Y < vertiPos) - { - projectile.velocity.Y = projectile.velocity.Y + num16; - if (num16 > 0.05f && projectile.velocity.Y < 0f) - { - projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; - } - } - if (projectile.velocity.Y > vertiPos) - { - projectile.velocity.Y = projectile.velocity.Y - num16; - if (num16 > 0.05f && projectile.velocity.Y > 0f) - { - projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; - } - } - - projectile.rotation = projectile.velocity.X * 0.03f; - projectile.frameCounter++; - if (projectile.frameCounter > 4) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 21) - { - projectile.frame = 18; - } - if (projectile.frame < 18) - { - projectile.frame = 18; - } - if (playerDistance < 100f) - { - num16 = 0.1f; - if(player.velocity.Y == 0f) - { - ++playerStill; - } - else - { - playerStill = 0; - } - if(playerStill > 60 && !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) - { - fly = false; - projectile.tileCollide = true; - projectile.rotation = 0; - } - } - } - if (projectile.velocity.X > 0.25f) - { - projectile.spriteDirection = -1; - } - else if (projectile.velocity.X < -0.25f) - { - projectile.spriteDirection = 1; - } - } - - private bool HoleBelow() //pretty much the same as the one used in mantis - { - int tileWidth = 4; - int tileX = (int)(projectile.Center.X / 16f) - tileWidth; - if (projectile.velocity.X > 0) - { - tileX += tileWidth; - } - int tileY = (int)((projectile.position.Y + projectile.height) / 16f); - for (int y = tileY; y < tileY + 2; y++) - { - for (int x = tileX; x < tileX + tileWidth; x++) - { - if (Main.tile[x, y].active()) - { - return false; - } - } - } - return true; - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Pets +{ + public class Bear : ModProjectile + { + public int chosenIdle = 0; + public int idleTimer = 0; + public int playerStill = 0; + public bool fly = false; + public bool easyfix = true; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Bear"); + Main.projFrames[projectile.type] = 22; + Main.projPet[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.netImportant = true; + projectile.width = 44; + projectile.height = 44; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.timeLeft *= 5; + projectile.tileCollide = true; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + if (!player.active) + { + projectile.active = false; + return; + } + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (player.dead) + { + modPlayer.bearPet = false; + } + if (modPlayer.bearPet) + { + projectile.timeLeft = 2; + } + Vector2 vector46 = projectile.position; + if(easyfix) + { + projectile.position.Y += -3f; + easyfix = false; + } + if (!fly) + { + Vector2 center2 = projectile.Center; + Vector2 vector48 = player.Center - center2; + float playerDistance = vector48.Length(); + if (projectile.velocity.Y == 0 && (HoleBelow() || (playerDistance > 110f && projectile.position.X == projectile.oldPosition.X))) + { + projectile.velocity.Y = -5f; + } + projectile.velocity.Y += 0.20f; + + if(projectile.velocity.Y > 7f) + { + projectile.velocity.Y = 7f; + } + + if (playerDistance > 600f) + { + fly = true; + projectile.velocity.X = 0f; + projectile.velocity.Y = 0f; + projectile.tileCollide = false; + } + if (playerDistance > 100f) + { + if (player.position.X - projectile.position.X > 0f) + { + projectile.velocity.X += 0.10f; + + if(projectile.velocity.X > 7f) + { + projectile.velocity.X = 7f; + } + } + else + { + projectile.velocity.X -= 0.10f; + + if (projectile.velocity.X < -7f) + { + projectile.velocity.X = -7f; + } + } + } + if (playerDistance < 100f) + { + if (projectile.velocity.X != 0f) + { + if (projectile.velocity.X > 0.5f) + { + projectile.velocity.X -= 0.15f; + } + else if (projectile.velocity.X < -0.5f) + { + projectile.velocity.X += 0.15f; + } + else if (projectile.velocity.X < 0.5f && projectile.velocity.X > -0.5f) + { + projectile.velocity.X = 0f; + } + } + } + if (projectile.position.X == projectile.oldPosition.X && projectile.position.Y == projectile.oldPosition.Y && projectile.velocity.X == 0) + { + projectile.frameCounter++; + + switch (chosenIdle) + { + case 1: + if (idleTimer == 0) + { + projectile.frame = 0; + } + ++idleTimer; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + chosenIdle = 0; + } + if (projectile.frame < 1) + { + projectile.frame = 1; + } + break; + + case 2: + if (idleTimer == 0) + { + projectile.frame = 0; + } + ++idleTimer; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 9) + { + chosenIdle = 0; + } + if (projectile.frame < 4) + { + projectile.frame = 4; + } + break; + + case 3: + if (idleTimer == 0) + { + projectile.frame = 0; + } + ++idleTimer; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 12) + { + chosenIdle = 0; + } + if (projectile.frame < 10) + { + projectile.frame = 10; + } + break; + } + if (chosenIdle == 0) + { + projectile.frame = 0; + projectile.frameCounter = 5; + ++idleTimer; + if (idleTimer > 120) + { + chosenIdle = Main.rand.Next(1, 4); + idleTimer = 0; + } + } + } + else if (projectile.velocity.Y > 0.3f && projectile.position.Y != projectile.oldPosition.Y) + { + projectile.frame = 13; + projectile.frameCounter = 0; + } + else + { + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 17) + { + projectile.frame = 14; + } + if (projectile.frame < 14) + { + projectile.frame = 14; + } + } + } + else if (fly) + { + float num16 = 0.3f; + projectile.tileCollide = false; + Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float horiPos = Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2) - vector3.X; + float vertiPos = Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2) - vector3.Y; + vertiPos += (float)Main.rand.Next(-10, 21); + horiPos += (float)Main.rand.Next(-10, 21); + horiPos += (float)(60 * -(float)Main.player[projectile.owner].direction); + vertiPos -= 60f; + float playerDistance = (float)Math.Sqrt((double)(horiPos * horiPos + vertiPos * vertiPos)); + float num21 = 18f; + float num27 = (float)Math.Sqrt((double)(horiPos * horiPos + vertiPos * vertiPos)); + + if (playerDistance > 2000f) + { + projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); + projectile.netUpdate = true; + } + if (playerDistance < 50f) + { + if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) + { + projectile.velocity *= 0.90f; + } + num16 = 0.01f; + } + else + { + if (playerDistance < 100f) + { + num16 = 0.1f; + } + if (playerDistance > 300f) + { + num16 = 1f; + } + playerDistance = num21 / playerDistance; + horiPos *= playerDistance; + vertiPos *= playerDistance; + } + + if (projectile.velocity.X < horiPos) + { + projectile.velocity.X = projectile.velocity.X + num16; + if (num16 > 0.05f && projectile.velocity.X < 0f) + { + projectile.velocity.X = projectile.velocity.X + num16; + } + } + if (projectile.velocity.X > horiPos) + { + projectile.velocity.X = projectile.velocity.X - num16; + if (num16 > 0.05f && projectile.velocity.X > 0f) + { + projectile.velocity.X = projectile.velocity.X - num16; + } + } + if (projectile.velocity.Y < vertiPos) + { + projectile.velocity.Y = projectile.velocity.Y + num16; + if (num16 > 0.05f && projectile.velocity.Y < 0f) + { + projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; + } + } + if (projectile.velocity.Y > vertiPos) + { + projectile.velocity.Y = projectile.velocity.Y - num16; + if (num16 > 0.05f && projectile.velocity.Y > 0f) + { + projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; + } + } + + projectile.rotation = projectile.velocity.X * 0.03f; + projectile.frameCounter++; + if (projectile.frameCounter > 4) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 21) + { + projectile.frame = 18; + } + if (projectile.frame < 18) + { + projectile.frame = 18; + } + if (playerDistance < 100f) + { + num16 = 0.1f; + if(player.velocity.Y == 0f) + { + ++playerStill; + } + else + { + playerStill = 0; + } + if(playerStill > 60 && !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + { + fly = false; + projectile.tileCollide = true; + projectile.rotation = 0; + } + } + } + if (projectile.velocity.X > 0.25f) + { + projectile.spriteDirection = -1; + } + else if (projectile.velocity.X < -0.25f) + { + projectile.spriteDirection = 1; + } + } + + private bool HoleBelow() //pretty much the same as the one used in mantis + { + int tileWidth = 4; + int tileX = (int)(projectile.Center.X / 16f) - tileWidth; + if (projectile.velocity.X > 0) + { + tileX += tileWidth; + } + int tileY = (int)((projectile.position.Y + projectile.height) / 16f); + for (int y = tileY; y < tileY + 2; y++) + { + for (int x = tileX; x < tileX + tileWidth; x++) + { + if (Main.tile[x, y].active()) + { + return false; + } + } + } + return true; + } + } } \ No newline at end of file diff --git a/Projectiles/Bear.png b/Projectiles/Pets/Bear.png similarity index 100% rename from Projectiles/Bear.png rename to Projectiles/Pets/Bear.png diff --git a/Projectiles/Brimling.cs b/Projectiles/Pets/Brimling.cs similarity index 96% rename from Projectiles/Brimling.cs rename to Projectiles/Pets/Brimling.cs index 2ad5078619..254a4919f7 100644 --- a/Projectiles/Brimling.cs +++ b/Projectiles/Pets/Brimling.cs @@ -7,7 +7,7 @@ using Terraria.ID; using Terraria.DataStructures; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Pets { public class Brimling : ModProjectile { diff --git a/Projectiles/Brimling.png b/Projectiles/Pets/Brimling.png similarity index 100% rename from Projectiles/Brimling.png rename to Projectiles/Pets/Brimling.png diff --git a/Projectiles/ChibiiDoggo.cs b/Projectiles/Pets/ChibiiDoggo.cs similarity index 96% rename from Projectiles/ChibiiDoggo.cs rename to Projectiles/Pets/ChibiiDoggo.cs index 101e6f6543..02c6a35f15 100644 --- a/Projectiles/ChibiiDoggo.cs +++ b/Projectiles/Pets/ChibiiDoggo.cs @@ -10,7 +10,7 @@ using Terraria.GameContent; using Terraria.ModLoader; using Terraria.Localization; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Pets { public class ChibiiDoggo : ModProjectile { @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles if (projectile.spriteDirection == -1) spriteEffects = SpriteEffects.FlipHorizontally; Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)(projectile.Center.X / 16), (int)(projectile.Center.Y / 16)); - Texture2D texture2D3 = mod.GetTexture("Projectiles/ChibiiDoggoMonochrome"); + Texture2D texture2D3 = mod.GetTexture("Projectiles/Pets/ChibiiDoggoMonochrome"); int num156 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; int y3 = num156 * projectile.frame; Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); diff --git a/Projectiles/ChibiiDoggo.png b/Projectiles/Pets/ChibiiDoggo.png similarity index 100% rename from Projectiles/ChibiiDoggo.png rename to Projectiles/Pets/ChibiiDoggo.png diff --git a/Projectiles/ChibiiDoggoFly.cs b/Projectiles/Pets/ChibiiDoggoFly.cs similarity index 95% rename from Projectiles/ChibiiDoggoFly.cs rename to Projectiles/Pets/ChibiiDoggoFly.cs index c143e89a72..b804ad5fe7 100644 --- a/Projectiles/ChibiiDoggoFly.cs +++ b/Projectiles/Pets/ChibiiDoggoFly.cs @@ -9,7 +9,7 @@ using Terraria.Enums; using Terraria.GameContent; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Pets { public class ChibiiDoggoFly : ModProjectile { @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles if (projectile.spriteDirection == -1) spriteEffects = SpriteEffects.FlipHorizontally; Microsoft.Xna.Framework.Color color25 = Lighting.GetColor((int)(projectile.Center.X / 16), (int)(projectile.Center.Y / 16)); - Texture2D texture2D3 = mod.GetTexture("Projectiles/ChibiiDoggoFlyMonochrome"); + Texture2D texture2D3 = mod.GetTexture("Projectiles/Pets/ChibiiDoggoFlyMonochrome"); int num156 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; int y3 = num156 * projectile.frame; Microsoft.Xna.Framework.Rectangle rectangle = new Microsoft.Xna.Framework.Rectangle(0, y3, texture2D3.Width, num156); diff --git a/Projectiles/ChibiiDoggoFly.png b/Projectiles/Pets/ChibiiDoggoFly.png similarity index 100% rename from Projectiles/ChibiiDoggoFly.png rename to Projectiles/Pets/ChibiiDoggoFly.png diff --git a/Projectiles/ChibiiDoggoFlyMonochrome.png b/Projectiles/Pets/ChibiiDoggoFlyMonochrome.png similarity index 100% rename from Projectiles/ChibiiDoggoFlyMonochrome.png rename to Projectiles/Pets/ChibiiDoggoFlyMonochrome.png diff --git a/Projectiles/ChibiiDoggoMonochrome.png b/Projectiles/Pets/ChibiiDoggoMonochrome.png similarity index 100% rename from Projectiles/ChibiiDoggoMonochrome.png rename to Projectiles/Pets/ChibiiDoggoMonochrome.png diff --git a/Projectiles/Pets/DannyDevito.cs b/Projectiles/Pets/DannyDevito.cs new file mode 100644 index 0000000000..6b63ff38ef --- /dev/null +++ b/Projectiles/Pets/DannyDevito.cs @@ -0,0 +1,314 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.GameInput; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Pets +{ + public class DannyDevito : ModProjectile + { + private int chosenIdle = 0; + private int idleTimer = 0; + private int playerStill = 0; + private bool fly = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Danny Devito"); + Main.projFrames[projectile.type] = 8; + Main.projPet[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.netImportant = true; + projectile.width = 42; + projectile.height = 42; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.timeLeft *= 5; + projectile.tileCollide = true; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + if (!player.active) + { + projectile.active = false; + return; + } + CalamityPlayer modPlayer = player.GetModPlayer(mod); + if (player.dead) + { + modPlayer.trashMan = false; + } + if (modPlayer.trashMan) + { + projectile.timeLeft = 2; + } + Vector2 vector46 = projectile.position; + if (!fly) + { + Vector2 center2 = projectile.Center; + Vector2 vector48 = player.Center - center2; + float playerDistance = vector48.Length(); + if (projectile.velocity.Y == 0 && (HoleBelow() || (playerDistance > 110f && projectile.position.X == projectile.oldPosition.X))) + { + projectile.velocity.Y = -5f; + } + projectile.velocity.Y += 0.20f; + if (projectile.velocity.Y > 7f) + { + projectile.velocity.Y = 7f; + } + if (playerDistance > 600f) + { + fly = true; + projectile.velocity.X = 0f; + projectile.velocity.Y = 0f; + projectile.tileCollide = false; + } + if (playerDistance > 100f) + { + if (player.position.X - projectile.position.X > 0f) + { + projectile.velocity.X += 0.10f; + if (projectile.velocity.X > 7f) + { + projectile.velocity.X = 7f; + } + } + else + { + projectile.velocity.X -= 0.10f; + if (projectile.velocity.X < -7f) + { + projectile.velocity.X = -7f; + } + } + } + if (playerDistance < 100f) + { + if (projectile.velocity.X != 0f) + { + if (projectile.velocity.X > 0.5f) + { + projectile.velocity.X -= 0.15f; + } + else if (projectile.velocity.X < -0.5f) + { + projectile.velocity.X += 0.15f; + } + else if (projectile.velocity.X < 0.5f && projectile.velocity.X > -0.5f) + { + projectile.velocity.X = 0f; + } + } + } + if (projectile.position.X == projectile.oldPosition.X && projectile.position.Y == projectile.oldPosition.Y && projectile.velocity.X == 0) + { + projectile.frame = 0; + } + else if (projectile.velocity.Y > 0.3f && projectile.position.Y != projectile.oldPosition.Y) + { + projectile.frame = 1; + projectile.frameCounter = 0; + } + else + { + projectile.frameCounter++; + if (projectile.frameCounter > 5) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 6) + { + projectile.frame = 2; + } + if (projectile.frame < 2) + { + projectile.frame = 2; + } + } + } + else if (fly) + { + float num16 = 0.3f; + projectile.tileCollide = false; + Vector2 vector3 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float horiPos = Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2) - vector3.X; + float vertiPos = Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2) - vector3.Y; + vertiPos += (float)Main.rand.Next(-10, 21); + horiPos += (float)Main.rand.Next(-10, 21); + horiPos += (float)(60 * -(float)Main.player[projectile.owner].direction); + vertiPos -= 60f; + float playerDistance = (float)Math.Sqrt((double)(horiPos * horiPos + vertiPos * vertiPos)); + float num21 = 18f; + float num27 = (float)Math.Sqrt((double)(horiPos * horiPos + vertiPos * vertiPos)); + if (playerDistance > 1200f) + { + projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); + projectile.netUpdate = true; + } + if (playerDistance < 50f) + { + if (Math.Abs(projectile.velocity.X) > 2f || Math.Abs(projectile.velocity.Y) > 2f) + { + projectile.velocity *= 0.90f; + } + num16 = 0.01f; + } + else + { + if (playerDistance < 100f) + { + num16 = 0.1f; + } + if (playerDistance > 300f) + { + num16 = 1f; + } + playerDistance = num21 / playerDistance; + horiPos *= playerDistance; + vertiPos *= playerDistance; + } + if (projectile.velocity.X < horiPos) + { + projectile.velocity.X = projectile.velocity.X + num16; + if (num16 > 0.05f && projectile.velocity.X < 0f) + { + projectile.velocity.X = projectile.velocity.X + num16; + } + } + if (projectile.velocity.X > horiPos) + { + projectile.velocity.X = projectile.velocity.X - num16; + if (num16 > 0.05f && projectile.velocity.X > 0f) + { + projectile.velocity.X = projectile.velocity.X - num16; + } + } + if (projectile.velocity.Y < vertiPos) + { + projectile.velocity.Y = projectile.velocity.Y + num16; + if (num16 > 0.05f && projectile.velocity.Y < 0f) + { + projectile.velocity.Y = projectile.velocity.Y + num16 * 2f; + } + } + if (projectile.velocity.Y > vertiPos) + { + projectile.velocity.Y = projectile.velocity.Y - num16; + if (num16 > 0.05f && projectile.velocity.Y > 0f) + { + projectile.velocity.Y = projectile.velocity.Y - num16 * 2f; + } + } + projectile.rotation = projectile.velocity.X * 0.03f; + projectile.frame = 7; + if (playerDistance < 100f) + { + num16 = 0.1f; + if (player.velocity.Y == 0f) + { + ++playerStill; + } + else + { + playerStill = 0; + } + if (playerStill > 60 && !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + { + fly = false; + projectile.tileCollide = true; + projectile.rotation = 0; + } + } + } + if (projectile.velocity.X > 0.25f) + { + projectile.spriteDirection = -1; + } + else if (projectile.velocity.X < -0.25f) + { + projectile.spriteDirection = 1; + } + } + + /*public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + if (!Main.gamePaused || Main.gameMenu) + { + Vector2 vector69 = projectile.position - Main.screenPosition; + if ((float)Main.mouseX > vector69.X && (float)Main.mouseX < vector69.X + (float)projectile.width && (float)Main.mouseY > vector69.Y && (float)Main.mouseY < vector69.Y + (float)projectile.height) + { + int num345 = (int)(Main.player[projectile.owner].Center.X / 16f); + int num346 = (int)(Main.player[projectile.owner].Center.Y / 16f); + int num347 = (int)projectile.Center.X / 16; + int num348 = (int)projectile.Center.Y / 16; + int lastTileRangeX = Main.player[projectile.owner].lastTileRangeX; + int lastTileRangeY = Main.player[projectile.owner].lastTileRangeY; + if (num345 >= num347 - lastTileRangeX && num345 <= num347 + lastTileRangeX + 1 && num346 >= num348 - lastTileRangeY && num346 <= num348 + lastTileRangeY + 1) + { + Main.player[projectile.owner].noThrow = 2; + Main.player[projectile.owner].showItemIcon = true; + Main.player[projectile.owner].showItemIcon2 = 3213; + if (PlayerInput.UsingGamepad) + { + Main.player[projectile.owner].GamepadEnableGrappleCooldown(); + } + if (Main.mouseRight && Main.mouseRightRelease && Player.StopMoneyTroughFromWorking == 0) + { + Main.mouseRightRelease = false; + if (Main.player[projectile.owner].chest == -2) + { + Main.PlaySound(SoundID.Item11, -1, -1); + Main.player[projectile.owner].chest = -1; + Recipe.FindRecipes(); + return; + } + Main.player[projectile.owner].GetModPlayer(mod).trashManChest = projectile.type; + Main.player[projectile.owner].chest = -2; + Main.player[projectile.owner].chestX = (int)(projectile.Center.X / 16f); + Main.player[projectile.owner].chestY = (int)(projectile.Center.Y / 16f); + Main.player[projectile.owner].talkNPC = -1; + Main.npcShop = 0; + Main.playerInventory = true; + Main.PlaySound(SoundID.Item10, -1, -1); + Recipe.FindRecipes(); + } + } + } + } + }*/ + + private bool HoleBelow() //pretty much the same as the one used in mantis + { + int tileWidth = 4; + int tileX = (int)(projectile.Center.X / 16f) - tileWidth; + if (projectile.velocity.X > 0) + { + tileX += tileWidth; + } + int tileY = (int)((projectile.position.Y + projectile.height) / 16f); + for (int y = tileY; y < tileY + 2; y++) + { + for (int x = tileX; x < tileX + tileWidth; x++) + { + if (Main.tile[x, y].active()) + { + return false; + } + } + } + return true; + } + } +} \ No newline at end of file diff --git a/Projectiles/DannyDevito.png b/Projectiles/Pets/DannyDevito.png similarity index 100% rename from Projectiles/DannyDevito.png rename to Projectiles/Pets/DannyDevito.png diff --git a/Projectiles/Fox.cs b/Projectiles/Pets/Fox.cs similarity index 93% rename from Projectiles/Fox.cs rename to Projectiles/Pets/Fox.cs index b92951069a..deb21b7b53 100644 --- a/Projectiles/Fox.cs +++ b/Projectiles/Pets/Fox.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Pets { public class Fox : ModProjectile { diff --git a/Projectiles/Fox.png b/Projectiles/Pets/Fox.png similarity index 100% rename from Projectiles/Fox.png rename to Projectiles/Pets/Fox.png diff --git a/Projectiles/Levi.cs b/Projectiles/Pets/Levi.cs similarity index 96% rename from Projectiles/Levi.cs rename to Projectiles/Pets/Levi.cs index 2d14ec9624..f6142bee85 100644 --- a/Projectiles/Levi.cs +++ b/Projectiles/Pets/Levi.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Pets { public class Levi : ModProjectile { diff --git a/Projectiles/Levi.png b/Projectiles/Pets/Levi.png similarity index 100% rename from Projectiles/Levi.png rename to Projectiles/Pets/Levi.png diff --git a/Projectiles/SirenYoung.cs b/Projectiles/Pets/SirenYoung.cs similarity index 96% rename from Projectiles/SirenYoung.cs rename to Projectiles/Pets/SirenYoung.cs index 1f24fe2f54..6294944271 100644 --- a/Projectiles/SirenYoung.cs +++ b/Projectiles/Pets/SirenYoung.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Pets { public class SirenYoung : ModProjectile { diff --git a/Buffs/AquaticEgg.png b/Projectiles/Pets/SirenYoung.png similarity index 59% rename from Buffs/AquaticEgg.png rename to Projectiles/Pets/SirenYoung.png index d95081f895ae71dca21881a4308fceaeeebafe1f..41481d1dbacb196412b4781747044d293baaeaa9 100644 GIT binary patch delta 1825 zcmV++2j2L~879L=z=ZNsJ2HB2+-Q6NzkrA?#`r41bh z`jLKQN-UkWGw@uTd#2pWd!2`E>Ak}}o0)m<&CL7Xd(XM|oL}AzI*xyX)vzE|$%27E zz}JOETi;%^X`j-=MT^J2J}*_ z9$=-3r!xTnfwEixKyE3WkB!Sp+4y=0!A+Px_SXOaHN(``|NKc`$gZXHGh@1sYBu&)j#Ph%oAf$9I3=!-l`kAO zWjM zAfT5^VQPVr#y6!FVK10Wu_DpWkJ(u1?$0($$6xHD2=#4i2laj3P5{8)voUFnrh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p|ol>IjVomqHl)<#Sn P00000NkvXXu0mjf$@GMa delta 849 zcmV-X1Frm&Bgz{#iBL{Q4GJ0x0000DNk~Le0000W0000W5C#AM03+(Aw*UYD32;bR za{vG?BLDy{BLR4&KX$P;i3)!L^+`lQRCwC#Sv^n_K@{HI?1WQ(22(&|CPpZt*r=Eh zwNYRkEVM;w#8iQf6bb{wFgpGeu_LKMv;b-?WE}n)73aiKp#Wk=Cjp8O6&k$USwP(7 z4V%pwu}JP!_io?qzPtC{_kIo=hG7^6`a>9Fj4^+wxM=5nG0yVjpbvk<1QUc1vQZl) zgzBel;=oj`69~*Ke^ejNjVa+SD}0mpleg zvkyRv$WR?x{NCM2dJuoa1ew0qZ=7#py`bd*=Ia2nw6OSLej_Dbe-;e{GF)kTyE7QH5pkXH zugUU&?8TwOI|Br>l@&z&$|@+a7ZVm1qt9b2yv36V-r|*2t*su9Sbo1OW2SP=4q|j& z*A1QX08Pv2hF<&@x7+P@LULpQueb9KkE&+t0$9sKi^_ipW(`$+_=v9qWZj~yyH(Zb z2%ohq3@|%^k@W`9LbCoJlB!Nl=Gw2&iIFf1WT&$w>j4-MLh|?kvf5kb5rxhlWcq}{ zf9V0bp3yRz)e98;R5%>+`D$yeEU*s-?1G>y#$^*0xc 4) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 3) - { - projectile.frame = 0; - } - float num472 = projectile.Center.X; - float num473 = projectile.Center.Y; - float num474 = 500f; - bool flag17 = false; - for (int num475 = 0; num475 < 200; num475++) - { - if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) - { - float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); - float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); - float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); - if (num478 < num474) - { - num474 = num478; - num472 = num476; - num473 = num477; - flag17 = true; - } - } - } - if (flag17) - { - float num483 = 16f; - Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); - float num484 = num472 - vector35.X; - float num485 = num473 - vector35.Y; - float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); - num486 = num483 / num486; - num484 *= num486; - num485 *= num486; - projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; - projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; - return; - } - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); - projectile.position.X = projectile.position.X + (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); - projectile.width = 50; - projectile.height = 50; - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - for (int num621 = 0; num621 < 10; num621++) - { - int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default(Color), 2f); - Main.dust[num622].velocity *= 3f; - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 15; num623++) - { - int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default(Color), 2f); - Main.dust[num624].velocity *= 2f; - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Ranged +{ + public class AstrealFlame : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Flame"); + Main.projFrames[projectile.type] = 4; + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.friendly = true; + projectile.ranged = true; + projectile.penetrate = 1; + projectile.timeLeft = 180; + projectile.alpha = 255; + } + + public override void AI() + { + projectile.alpha -= 5; + projectile.frameCounter++; + if (projectile.frameCounter > 4) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + float num472 = projectile.Center.X; + float num473 = projectile.Center.Y; + float num474 = 500f; + bool flag17 = false; + for (int num475 = 0; num475 < 200; num475++) + { + if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) + { + float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); + float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + num472 = num476; + num473 = num477; + flag17 = true; + } + } + } + if (flag17) + { + float num483 = 16f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = num472 - vector35.X; + float num485 = num473 - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; + projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; + return; + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 74); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 50; + projectile.height = 50; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num621 = 0; num621 < 10; num621++) + { + int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default(Color), 2f); + Main.dust[num622].velocity *= 3f; + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 15; num623++) + { + int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + Main.dust[num624].velocity *= 5f; + num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 173, 0f, 0f, 100, default(Color), 2f); + Main.dust[num624].velocity *= 2f; + } + } + } } \ No newline at end of file diff --git a/Projectiles/AstrealFlame.png b/Projectiles/Ranged/AstrealFlame.png similarity index 100% rename from Projectiles/AstrealFlame.png rename to Projectiles/Ranged/AstrealFlame.png diff --git a/Projectiles/BallistaGreatArrow.cs b/Projectiles/Ranged/BallistaGreatArrow.cs similarity index 95% rename from Projectiles/BallistaGreatArrow.cs rename to Projectiles/Ranged/BallistaGreatArrow.cs index 56f7cace40..b13d26bf16 100644 --- a/Projectiles/BallistaGreatArrow.cs +++ b/Projectiles/Ranged/BallistaGreatArrow.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BallistaGreatArrow : ModProjectile { diff --git a/Projectiles/BallistaGreatArrow.png b/Projectiles/Ranged/BallistaGreatArrow.png similarity index 100% rename from Projectiles/BallistaGreatArrow.png rename to Projectiles/Ranged/BallistaGreatArrow.png diff --git a/Projectiles/BeeRPG.cs b/Projectiles/Ranged/BeeRPG.cs similarity index 97% rename from Projectiles/BeeRPG.cs rename to Projectiles/Ranged/BeeRPG.cs index dc57a353f4..fad0f58bfe 100644 --- a/Projectiles/BeeRPG.cs +++ b/Projectiles/Ranged/BeeRPG.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BeeRPG : ModProjectile { diff --git a/Projectiles/BeeRPG.png b/Projectiles/Ranged/BeeRPG.png similarity index 100% rename from Projectiles/BeeRPG.png rename to Projectiles/Ranged/BeeRPG.png diff --git a/Projectiles/BeeRPGExplosion.cs b/Projectiles/Ranged/BeeRPGExplosion.cs similarity index 82% rename from Projectiles/BeeRPGExplosion.cs rename to Projectiles/Ranged/BeeRPGExplosion.cs index 8827a86451..dae7d8548e 100644 --- a/Projectiles/BeeRPGExplosion.cs +++ b/Projectiles/Ranged/BeeRPGExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BeeRPGExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; } } diff --git a/Projectiles/BeeRPGExplosion.png b/Projectiles/Ranged/BeeRPGExplosion.png similarity index 100% rename from Projectiles/BeeRPGExplosion.png rename to Projectiles/Ranged/BeeRPGExplosion.png diff --git a/Projectiles/BigNuke.cs b/Projectiles/Ranged/BigNuke.cs similarity index 97% rename from Projectiles/BigNuke.cs rename to Projectiles/Ranged/BigNuke.cs index 608dda06e2..5dbf5a81f1 100644 --- a/Projectiles/BigNuke.cs +++ b/Projectiles/Ranged/BigNuke.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BigNuke : ModProjectile { diff --git a/Projectiles/BigNuke.png b/Projectiles/Ranged/BigNuke.png similarity index 100% rename from Projectiles/BigNuke.png rename to Projectiles/Ranged/BigNuke.png diff --git a/Projectiles/BigNukeExplosion.cs b/Projectiles/Ranged/BigNukeExplosion.cs similarity index 82% rename from Projectiles/BigNukeExplosion.cs rename to Projectiles/Ranged/BigNukeExplosion.cs index ed8e6c5f87..f016936462 100644 --- a/Projectiles/BigNukeExplosion.cs +++ b/Projectiles/Ranged/BigNukeExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BigNukeExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; } } diff --git a/Projectiles/BigNukeExplosion.png b/Projectiles/Ranged/BigNukeExplosion.png similarity index 100% rename from Projectiles/BigNukeExplosion.png rename to Projectiles/Ranged/BigNukeExplosion.png diff --git a/Projectiles/BloodClotFriendly.cs b/Projectiles/Ranged/BloodClotFriendly.cs similarity index 92% rename from Projectiles/BloodClotFriendly.cs rename to Projectiles/Ranged/BloodClotFriendly.cs index fa01c7a6e8..8a4738ff6a 100644 --- a/Projectiles/BloodClotFriendly.cs +++ b/Projectiles/Ranged/BloodClotFriendly.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BloodClotFriendly : ModProjectile { diff --git a/Projectiles/BloodClotFriendly.png b/Projectiles/Ranged/BloodClotFriendly.png similarity index 100% rename from Projectiles/BloodClotFriendly.png rename to Projectiles/Ranged/BloodClotFriendly.png diff --git a/Projectiles/BloodfireArrow.cs b/Projectiles/Ranged/BloodfireArrow.cs similarity index 93% rename from Projectiles/BloodfireArrow.cs rename to Projectiles/Ranged/BloodfireArrow.cs index cf0337d59a..f9822331d2 100644 --- a/Projectiles/BloodfireArrow.cs +++ b/Projectiles/Ranged/BloodfireArrow.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BloodfireArrow : ModProjectile { @@ -69,12 +69,12 @@ namespace CalamityMod.Projectiles public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - if (target.type == NPCID.TargetDummy) + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { return; } Player player = Main.player[projectile.owner]; - if (Main.rand.Next(2) == 0) + if (Main.rand.Next(3) == 0) { player.statLife += 1; player.HealEffect(1); diff --git a/Projectiles/BloodfireArrow.png b/Projectiles/Ranged/BloodfireArrow.png similarity index 100% rename from Projectiles/BloodfireArrow.png rename to Projectiles/Ranged/BloodfireArrow.png diff --git a/Projectiles/BloodfireBullet.cs b/Projectiles/Ranged/BloodfireBullet.cs similarity index 90% rename from Projectiles/BloodfireBullet.cs rename to Projectiles/Ranged/BloodfireBullet.cs index 1c8eea4367..2696f15901 100644 --- a/Projectiles/BloodfireBullet.cs +++ b/Projectiles/Ranged/BloodfireBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BloodfireBullet : ModProjectile { @@ -43,7 +43,7 @@ namespace CalamityMod.Projectiles public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - if (target.type == NPCID.TargetDummy) + if (target.type == NPCID.TargetDummy || !target.canGhostHeal) { return; } diff --git a/Projectiles/BloodfireBullet.png b/Projectiles/Ranged/BloodfireBullet.png similarity index 100% rename from Projectiles/BloodfireBullet.png rename to Projectiles/Ranged/BloodfireBullet.png diff --git a/Projectiles/BloodflareSoul.cs b/Projectiles/Ranged/BloodflareSoul.cs similarity index 97% rename from Projectiles/BloodflareSoul.cs rename to Projectiles/Ranged/BloodflareSoul.cs index 44c39576df..0b58a6bb8b 100644 --- a/Projectiles/BloodflareSoul.cs +++ b/Projectiles/Ranged/BloodflareSoul.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BloodflareSoul : ModProjectile { diff --git a/Projectiles/BloodflareSoul.png b/Projectiles/Ranged/BloodflareSoul.png similarity index 100% rename from Projectiles/BloodflareSoul.png rename to Projectiles/Ranged/BloodflareSoul.png diff --git a/Projectiles/BlueExoArrow.cs b/Projectiles/Ranged/BlueExoArrow.cs similarity index 96% rename from Projectiles/BlueExoArrow.cs rename to Projectiles/Ranged/BlueExoArrow.cs index 92ae735b1d..f82a4da9b7 100644 --- a/Projectiles/BlueExoArrow.cs +++ b/Projectiles/Ranged/BlueExoArrow.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BlueExoArrow : ModProjectile { diff --git a/Projectiles/BlueExoArrow.png b/Projectiles/Ranged/BlueExoArrow.png similarity index 100% rename from Projectiles/BlueExoArrow.png rename to Projectiles/Ranged/BlueExoArrow.png diff --git a/Projectiles/BlueExoArrow2.cs b/Projectiles/Ranged/BlueExoArrow2.cs similarity index 96% rename from Projectiles/BlueExoArrow2.cs rename to Projectiles/Ranged/BlueExoArrow2.cs index 9066e50d1e..cd25de6ca2 100644 --- a/Projectiles/BlueExoArrow2.cs +++ b/Projectiles/Ranged/BlueExoArrow2.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BlueExoArrow2 : ModProjectile { diff --git a/Projectiles/BlueExoArrow2.png b/Projectiles/Ranged/BlueExoArrow2.png similarity index 100% rename from Projectiles/BlueExoArrow2.png rename to Projectiles/Ranged/BlueExoArrow2.png diff --git a/Projectiles/Bolt.cs b/Projectiles/Ranged/Bolt.cs similarity index 96% rename from Projectiles/Bolt.cs rename to Projectiles/Ranged/Bolt.cs index 5d74847a81..cdc8f7409a 100644 --- a/Projectiles/Bolt.cs +++ b/Projectiles/Ranged/Bolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Bolt : ModProjectile { diff --git a/Projectiles/Bolt.png b/Projectiles/Ranged/Bolt.png similarity index 100% rename from Projectiles/Bolt.png rename to Projectiles/Ranged/Bolt.png diff --git a/Projectiles/BoltArrow.cs b/Projectiles/Ranged/BoltArrow.cs similarity index 96% rename from Projectiles/BoltArrow.cs rename to Projectiles/Ranged/BoltArrow.cs index c8c76135fc..08acfa97c9 100644 --- a/Projectiles/BoltArrow.cs +++ b/Projectiles/Ranged/BoltArrow.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BoltArrow : ModProjectile { diff --git a/Projectiles/BoltArrow.png b/Projectiles/Ranged/BoltArrow.png similarity index 100% rename from Projectiles/BoltArrow.png rename to Projectiles/Ranged/BoltArrow.png diff --git a/Projectiles/BoltExplosion.cs b/Projectiles/Ranged/BoltExplosion.cs similarity index 82% rename from Projectiles/BoltExplosion.cs rename to Projectiles/Ranged/BoltExplosion.cs index 6d0bce97de..45670bd599 100644 --- a/Projectiles/BoltExplosion.cs +++ b/Projectiles/Ranged/BoltExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BoltExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 3; } } diff --git a/Projectiles/BoltExplosion.png b/Projectiles/Ranged/BoltExplosion.png similarity index 100% rename from Projectiles/BoltExplosion.png rename to Projectiles/Ranged/BoltExplosion.png diff --git a/Projectiles/BrimstoneBallFriendly.cs b/Projectiles/Ranged/BrimstoneBallFriendly.cs similarity index 92% rename from Projectiles/BrimstoneBallFriendly.cs rename to Projectiles/Ranged/BrimstoneBallFriendly.cs index 707de011c6..da3db8f208 100644 --- a/Projectiles/BrimstoneBallFriendly.cs +++ b/Projectiles/Ranged/BrimstoneBallFriendly.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BrimstoneBallFriendly : ModProjectile { @@ -19,7 +19,8 @@ namespace CalamityMod.Projectiles projectile.width = 20; projectile.height = 20; projectile.friendly = true; - projectile.penetrate = 6; + projectile.ranged = true; + projectile.penetrate = 6; projectile.aiStyle = 14; projectile.timeLeft = 300; } diff --git a/Projectiles/BrimstoneBallFriendly.png b/Projectiles/Ranged/BrimstoneBallFriendly.png similarity index 100% rename from Projectiles/BrimstoneBallFriendly.png rename to Projectiles/Ranged/BrimstoneBallFriendly.png diff --git a/Projectiles/BrimstoneBolt.cs b/Projectiles/Ranged/BrimstoneBolt.cs similarity index 94% rename from Projectiles/BrimstoneBolt.cs rename to Projectiles/Ranged/BrimstoneBolt.cs index 853d77d1e1..654911052f 100644 --- a/Projectiles/BrimstoneBolt.cs +++ b/Projectiles/Ranged/BrimstoneBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BrimstoneBolt : ModProjectile { diff --git a/Projectiles/BrimstoneBolt.png b/Projectiles/Ranged/BrimstoneBolt.png similarity index 100% rename from Projectiles/BrimstoneBolt.png rename to Projectiles/Ranged/BrimstoneBolt.png diff --git a/Projectiles/BrimstoneFireFriendly.cs b/Projectiles/Ranged/BrimstoneFireFriendly.cs similarity index 95% rename from Projectiles/BrimstoneFireFriendly.cs rename to Projectiles/Ranged/BrimstoneFireFriendly.cs index 8267273413..bd4481b1f4 100644 --- a/Projectiles/BrimstoneFireFriendly.cs +++ b/Projectiles/Ranged/BrimstoneFireFriendly.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class BrimstoneFireFriendly : ModProjectile { diff --git a/Projectiles/BrimstoneFireFriendly.png b/Projectiles/Ranged/BrimstoneFireFriendly.png similarity index 100% rename from Projectiles/BrimstoneFireFriendly.png rename to Projectiles/Ranged/BrimstoneFireFriendly.png diff --git a/Projectiles/Butcher.cs b/Projectiles/Ranged/Butcher.cs similarity index 96% rename from Projectiles/Butcher.cs rename to Projectiles/Ranged/Butcher.cs index ad3c2ee99a..70d5775b51 100644 --- a/Projectiles/Butcher.cs +++ b/Projectiles/Ranged/Butcher.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Butcher : ModProjectile { diff --git a/Projectiles/Butcher.png b/Projectiles/Ranged/Butcher.png similarity index 100% rename from Projectiles/Butcher.png rename to Projectiles/Ranged/Butcher.png diff --git a/Projectiles/ChargedBlast.cs b/Projectiles/Ranged/ChargedBlast.cs similarity index 96% rename from Projectiles/ChargedBlast.cs rename to Projectiles/Ranged/ChargedBlast.cs index 15a2186879..e2ae09fc16 100644 --- a/Projectiles/ChargedBlast.cs +++ b/Projectiles/Ranged/ChargedBlast.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ChargedBlast : ModProjectile { diff --git a/Projectiles/ChargedBlast.png b/Projectiles/Ranged/ChargedBlast.png similarity index 100% rename from Projectiles/ChargedBlast.png rename to Projectiles/Ranged/ChargedBlast.png diff --git a/Projectiles/ChargedBlast2.cs b/Projectiles/Ranged/ChargedBlast2.cs similarity index 96% rename from Projectiles/ChargedBlast2.cs rename to Projectiles/Ranged/ChargedBlast2.cs index d340abbbd1..7b6de8afa5 100644 --- a/Projectiles/ChargedBlast2.cs +++ b/Projectiles/Ranged/ChargedBlast2.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ChargedBlast2 : ModProjectile { diff --git a/Projectiles/ChargedBlast2.png b/Projectiles/Ranged/ChargedBlast2.png similarity index 100% rename from Projectiles/ChargedBlast2.png rename to Projectiles/Ranged/ChargedBlast2.png diff --git a/Projectiles/ChargedBlast3.cs b/Projectiles/Ranged/ChargedBlast3.cs similarity index 97% rename from Projectiles/ChargedBlast3.cs rename to Projectiles/Ranged/ChargedBlast3.cs index 2fac31f958..b4ab68176a 100644 --- a/Projectiles/ChargedBlast3.cs +++ b/Projectiles/Ranged/ChargedBlast3.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ChargedBlast3 : ModProjectile { diff --git a/Projectiles/ChargedBlast3.png b/Projectiles/Ranged/ChargedBlast3.png similarity index 100% rename from Projectiles/ChargedBlast3.png rename to Projectiles/Ranged/ChargedBlast3.png diff --git a/Projectiles/Chicken.cs b/Projectiles/Ranged/Chicken.cs similarity index 96% rename from Projectiles/Chicken.cs rename to Projectiles/Ranged/Chicken.cs index c6bc18bc70..caaef9ce79 100644 --- a/Projectiles/Chicken.cs +++ b/Projectiles/Ranged/Chicken.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Chicken : ModProjectile { diff --git a/Projectiles/Chicken.png b/Projectiles/Ranged/Chicken.png similarity index 100% rename from Projectiles/Chicken.png rename to Projectiles/Ranged/Chicken.png diff --git a/Projectiles/ChickenExplosion.cs b/Projectiles/Ranged/ChickenExplosion.cs similarity index 95% rename from Projectiles/ChickenExplosion.cs rename to Projectiles/Ranged/ChickenExplosion.cs index 998786c6ed..0f6477a46e 100644 --- a/Projectiles/ChickenExplosion.cs +++ b/Projectiles/Ranged/ChickenExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ChickenExplosion : ModProjectile { diff --git a/Projectiles/ChickenExplosion.png b/Projectiles/Ranged/ChickenExplosion.png similarity index 100% rename from Projectiles/ChickenExplosion.png rename to Projectiles/Ranged/ChickenExplosion.png diff --git a/Projectiles/Contagion.cs b/Projectiles/Ranged/Contagion.cs similarity index 96% rename from Projectiles/Contagion.cs rename to Projectiles/Ranged/Contagion.cs index f37b6610b9..9299b4d2f7 100644 --- a/Projectiles/Contagion.cs +++ b/Projectiles/Ranged/Contagion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Contagion : ModProjectile { diff --git a/Projectiles/Contagion.png b/Projectiles/Ranged/Contagion.png similarity index 100% rename from Projectiles/Contagion.png rename to Projectiles/Ranged/Contagion.png diff --git a/Projectiles/ContagionArrow.cs b/Projectiles/Ranged/ContagionArrow.cs similarity index 88% rename from Projectiles/ContagionArrow.cs rename to Projectiles/Ranged/ContagionArrow.cs index 48908997fc..ca9bafa67a 100644 --- a/Projectiles/ContagionArrow.cs +++ b/Projectiles/Ranged/ContagionArrow.cs @@ -6,11 +6,11 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ContagionArrow : ModProjectile { - public int addBallTimer = 5; + public int addBallTimer = 10; public override void SetStaticDefaults() { @@ -34,11 +34,11 @@ namespace CalamityMod.Projectiles addBallTimer--; if (addBallTimer <= 0) { - if (projectile.owner == Main.myPlayer) + if (projectile.owner == Main.myPlayer && Main.player[projectile.owner].ownedProjectileCounts[mod.ProjectileType("ContagionBall")] < 100) { Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ContagionBall"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); } - addBallTimer = 5; + addBallTimer = 10; } Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.15f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); if (projectile.ai[0] <= 60f) diff --git a/Projectiles/ContagionArrow.png b/Projectiles/Ranged/ContagionArrow.png similarity index 100% rename from Projectiles/ContagionArrow.png rename to Projectiles/Ranged/ContagionArrow.png diff --git a/Projectiles/ContagionBall.cs b/Projectiles/Ranged/ContagionBall.cs similarity index 96% rename from Projectiles/ContagionBall.cs rename to Projectiles/Ranged/ContagionBall.cs index 2bc4d2d86f..cea396342e 100644 --- a/Projectiles/ContagionBall.cs +++ b/Projectiles/Ranged/ContagionBall.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ContagionBall : ModProjectile { diff --git a/Projectiles/ContagionBall.png b/Projectiles/Ranged/ContagionBall.png similarity index 100% rename from Projectiles/ContagionBall.png rename to Projectiles/Ranged/ContagionBall.png diff --git a/Projectiles/CorossiveFlames.cs b/Projectiles/Ranged/CorossiveFlames.cs similarity index 95% rename from Projectiles/CorossiveFlames.cs rename to Projectiles/Ranged/CorossiveFlames.cs index 704ea87867..e0cf46cd43 100644 --- a/Projectiles/CorossiveFlames.cs +++ b/Projectiles/Ranged/CorossiveFlames.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class CorossiveFlames : ModProjectile { diff --git a/Projectiles/CorossiveFlames.png b/Projectiles/Ranged/CorossiveFlames.png similarity index 100% rename from Projectiles/CorossiveFlames.png rename to Projectiles/Ranged/CorossiveFlames.png diff --git a/Projectiles/CosmicFire.cs b/Projectiles/Ranged/CosmicFire.cs similarity index 95% rename from Projectiles/CosmicFire.cs rename to Projectiles/Ranged/CosmicFire.cs index dc264c8431..f593fb3a4e 100644 --- a/Projectiles/CosmicFire.cs +++ b/Projectiles/Ranged/CosmicFire.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class CosmicFire : ModProjectile { diff --git a/Projectiles/CosmicFire.png b/Projectiles/Ranged/CosmicFire.png similarity index 100% rename from Projectiles/CosmicFire.png rename to Projectiles/Ranged/CosmicFire.png diff --git a/Projectiles/CursedRound.cs b/Projectiles/Ranged/CursedRound.cs similarity index 95% rename from Projectiles/CursedRound.cs rename to Projectiles/Ranged/CursedRound.cs index f64456143b..77898e20b5 100644 --- a/Projectiles/CursedRound.cs +++ b/Projectiles/Ranged/CursedRound.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class CursedRound : ModProjectile { diff --git a/Projectiles/CursedRound.png b/Projectiles/Ranged/CursedRound.png similarity index 100% rename from Projectiles/CursedRound.png rename to Projectiles/Ranged/CursedRound.png diff --git a/Projectiles/DaemonsFlame.cs b/Projectiles/Ranged/DaemonsFlame.cs similarity index 96% rename from Projectiles/DaemonsFlame.cs rename to Projectiles/Ranged/DaemonsFlame.cs index 0c02fe8f78..7e4f7abc05 100644 --- a/Projectiles/DaemonsFlame.cs +++ b/Projectiles/Ranged/DaemonsFlame.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class DaemonsFlame : ModProjectile { diff --git a/Projectiles/DaemonsFlame.png b/Projectiles/Ranged/DaemonsFlame.png similarity index 100% rename from Projectiles/DaemonsFlame.png rename to Projectiles/Ranged/DaemonsFlame.png diff --git a/Projectiles/DaemonsFlameArrow.cs b/Projectiles/Ranged/DaemonsFlameArrow.cs similarity index 96% rename from Projectiles/DaemonsFlameArrow.cs rename to Projectiles/Ranged/DaemonsFlameArrow.cs index e028ce23ad..bb3d003855 100644 --- a/Projectiles/DaemonsFlameArrow.cs +++ b/Projectiles/Ranged/DaemonsFlameArrow.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class DaemonsFlameArrow : ModProjectile { diff --git a/Projectiles/DaemonsFlameArrow.png b/Projectiles/Ranged/DaemonsFlameArrow.png similarity index 100% rename from Projectiles/DaemonsFlameArrow.png rename to Projectiles/Ranged/DaemonsFlameArrow.png diff --git a/Projectiles/DragonBurst.cs b/Projectiles/Ranged/DragonBurst.cs similarity index 95% rename from Projectiles/DragonBurst.cs rename to Projectiles/Ranged/DragonBurst.cs index 75b103047e..6e6f0294e7 100644 --- a/Projectiles/DragonBurst.cs +++ b/Projectiles/Ranged/DragonBurst.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class DragonBurst : ModProjectile { diff --git a/Projectiles/DragonBurst.png b/Projectiles/Ranged/DragonBurst.png similarity index 100% rename from Projectiles/DragonBurst.png rename to Projectiles/Ranged/DragonBurst.png diff --git a/Projectiles/Drataliornus.cs b/Projectiles/Ranged/Drataliornus.cs similarity index 96% rename from Projectiles/Drataliornus.cs rename to Projectiles/Ranged/Drataliornus.cs index df7b2080e6..1c97608668 100644 --- a/Projectiles/Drataliornus.cs +++ b/Projectiles/Ranged/Drataliornus.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Drataliornus : ModProjectile { diff --git a/Projectiles/Drataliornus.png b/Projectiles/Ranged/Drataliornus.png similarity index 100% rename from Projectiles/Drataliornus.png rename to Projectiles/Ranged/Drataliornus.png diff --git a/Projectiles/DrataliornusExoArrow.cs b/Projectiles/Ranged/DrataliornusExoArrow.cs similarity index 96% rename from Projectiles/DrataliornusExoArrow.cs rename to Projectiles/Ranged/DrataliornusExoArrow.cs index 7b3b78d034..e3ffe50596 100644 --- a/Projectiles/DrataliornusExoArrow.cs +++ b/Projectiles/Ranged/DrataliornusExoArrow.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class DrataliornusExoArrow : ModProjectile { diff --git a/Projectiles/DrataliornusExoArrow.png b/Projectiles/Ranged/DrataliornusExoArrow.png similarity index 100% rename from Projectiles/DrataliornusExoArrow.png rename to Projectiles/Ranged/DrataliornusExoArrow.png diff --git a/Projectiles/DrataliornusFlame.cs b/Projectiles/Ranged/DrataliornusFlame.cs similarity index 97% rename from Projectiles/DrataliornusFlame.cs rename to Projectiles/Ranged/DrataliornusFlame.cs index 1fe9b74b9b..6ef4720195 100644 --- a/Projectiles/DrataliornusFlame.cs +++ b/Projectiles/Ranged/DrataliornusFlame.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class DrataliornusFlame : ModProjectile { diff --git a/Projectiles/DrataliornusFlame.png b/Projectiles/Ranged/DrataliornusFlame.png similarity index 100% rename from Projectiles/DrataliornusFlame.png rename to Projectiles/Ranged/DrataliornusFlame.png diff --git a/Projectiles/DrillCannon.png b/Projectiles/Ranged/DrillCannon.png similarity index 100% rename from Projectiles/DrillCannon.png rename to Projectiles/Ranged/DrillCannon.png diff --git a/Projectiles/ElysianArrow.cs b/Projectiles/Ranged/ElysianArrow.cs similarity index 97% rename from Projectiles/ElysianArrow.cs rename to Projectiles/Ranged/ElysianArrow.cs index 698a18dd03..6d476e8849 100644 --- a/Projectiles/ElysianArrow.cs +++ b/Projectiles/Ranged/ElysianArrow.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ElysianArrow : ModProjectile { diff --git a/Projectiles/ElysianArrow.png b/Projectiles/Ranged/ElysianArrow.png similarity index 100% rename from Projectiles/ElysianArrow.png rename to Projectiles/Ranged/ElysianArrow.png diff --git a/Projectiles/EnhancedNanoRound.cs b/Projectiles/Ranged/EnhancedNanoRound.cs similarity index 96% rename from Projectiles/EnhancedNanoRound.cs rename to Projectiles/Ranged/EnhancedNanoRound.cs index efe080576c..f9b5cb2b9c 100644 --- a/Projectiles/EnhancedNanoRound.cs +++ b/Projectiles/Ranged/EnhancedNanoRound.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class EnhancedNanoRound : ModProjectile { diff --git a/Projectiles/EnhancedNanoRound.png b/Projectiles/Ranged/EnhancedNanoRound.png similarity index 100% rename from Projectiles/EnhancedNanoRound.png rename to Projectiles/Ranged/EnhancedNanoRound.png diff --git a/Projectiles/EssenceFire.cs b/Projectiles/Ranged/EssenceFire.cs similarity index 95% rename from Projectiles/EssenceFire.cs rename to Projectiles/Ranged/EssenceFire.cs index e8057cdb1d..cabb6c7b02 100644 --- a/Projectiles/EssenceFire.cs +++ b/Projectiles/Ranged/EssenceFire.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class EssenceFire : ModProjectile { diff --git a/Projectiles/EssenceFire.png b/Projectiles/Ranged/EssenceFire.png similarity index 100% rename from Projectiles/EssenceFire.png rename to Projectiles/Ranged/EssenceFire.png diff --git a/Projectiles/ExoFire.cs b/Projectiles/Ranged/ExoFire.cs similarity index 96% rename from Projectiles/ExoFire.cs rename to Projectiles/Ranged/ExoFire.cs index 800ef8fa49..feceba44d8 100644 --- a/Projectiles/ExoFire.cs +++ b/Projectiles/Ranged/ExoFire.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ExoFire : ModProjectile { diff --git a/Projectiles/ExoFire.png b/Projectiles/Ranged/ExoFire.png similarity index 100% rename from Projectiles/ExoFire.png rename to Projectiles/Ranged/ExoFire.png diff --git a/Projectiles/ExoMark.cs b/Projectiles/Ranged/ExoMark.cs similarity index 95% rename from Projectiles/ExoMark.cs rename to Projectiles/Ranged/ExoMark.cs index e070eebd9d..5ada1de663 100644 --- a/Projectiles/ExoMark.cs +++ b/Projectiles/Ranged/ExoMark.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ExoMark : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.tileCollide = false; projectile.timeLeft = 900; projectile.ignoreWater = true; - projectile.alpha = 255; + projectile.ranged = true; + projectile.alpha = 255; projectile.penetrate = -1; projectile.localNPCHitCooldown = 5; } diff --git a/Projectiles/ExoMark.png b/Projectiles/Ranged/ExoMark.png similarity index 100% rename from Projectiles/ExoMark.png rename to Projectiles/Ranged/ExoMark.png diff --git a/Projectiles/ExoTornado.cs b/Projectiles/Ranged/ExoTornado.cs similarity index 96% rename from Projectiles/ExoTornado.cs rename to Projectiles/Ranged/ExoTornado.cs index fb230c3562..0324271034 100644 --- a/Projectiles/ExoTornado.cs +++ b/Projectiles/Ranged/ExoTornado.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ExoTornado : ModProjectile { diff --git a/Projectiles/ExoTornado.png b/Projectiles/Ranged/ExoTornado.png similarity index 100% rename from Projectiles/ExoTornado.png rename to Projectiles/Ranged/ExoTornado.png diff --git a/Projectiles/ExplodingStake.cs b/Projectiles/Ranged/ExplodingStake.cs similarity index 95% rename from Projectiles/ExplodingStake.cs rename to Projectiles/Ranged/ExplodingStake.cs index fd2391055f..5d5fc7855f 100644 --- a/Projectiles/ExplodingStake.cs +++ b/Projectiles/Ranged/ExplodingStake.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ExplodingStake : ModProjectile { diff --git a/Projectiles/ExplodingStake.png b/Projectiles/Ranged/ExplodingStake.png similarity index 100% rename from Projectiles/ExplodingStake.png rename to Projectiles/Ranged/ExplodingStake.png diff --git a/Projectiles/Ranged/ExplosiveShellBullet.cs b/Projectiles/Ranged/ExplosiveShellBullet.cs new file mode 100644 index 0000000000..2434a57d10 --- /dev/null +++ b/Projectiles/Ranged/ExplosiveShellBullet.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Ranged +{ + public class ExplosiveShellBullet : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Explosive Shell Bullet"); + } + + public override void SetDefaults() + { + projectile.width = 4; + projectile.height = 4; + projectile.light = 0.5f; + projectile.alpha = 255; + projectile.extraUpdates = 10; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.aiStyle = 1; + aiType = 242; + projectile.penetrate = 1; + projectile.timeLeft = 600; + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + damage += target.lifeMax / 150; //120 + 30 = 150 + (100000 / 150 = 666) = 816 * 15 (pellets) = 12240 * 2 (explosion) = 24480 = 24.48% of boss HP + if (damage > target.lifeMax / 90 && CalamityPlayer.areThereAnyDamnBosses) + damage = target.lifeMax / 90; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + projectile.position = projectile.Center; + projectile.width = (projectile.height = 32); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num193 = 0; num193 < 2; num193++) + { + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default(Color), 1.5f); + } + for (int num194 = 0; num194 < 20; num194++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 6, 0f, 0f, 0, default(Color), 2.5f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 6, 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num195].velocity *= 2f; + Main.dust[num195].noGravity = true; + } + projectile.Damage(); + } + } +} \ No newline at end of file diff --git a/Projectiles/Ranged/ExplosiveShellBullet.png b/Projectiles/Ranged/ExplosiveShellBullet.png new file mode 100644 index 0000000000000000000000000000000000000000..ef327144f84e26338274a859fbc4258950c2aca3 GIT binary patch literal 156 zcmeAS@N?(olHy`uVBq!ia0vp^Oh7Ec!3HFkTfSKYq!^2X+?^QKos)S9^91;Wxc*-o`>&GeuO0IaD~a&*(&<2PJx>?M5Q*^QKl{zT*)t0mG;#I_fr>mdKI;Vst0A67( Ad;kCd literal 0 HcmV?d00001 diff --git a/Projectiles/FishronRPG.cs b/Projectiles/Ranged/FishronRPG.cs similarity index 97% rename from Projectiles/FishronRPG.cs rename to Projectiles/Ranged/FishronRPG.cs index d87a44d837..44a8b3d380 100644 --- a/Projectiles/FishronRPG.cs +++ b/Projectiles/Ranged/FishronRPG.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FishronRPG : ModProjectile { diff --git a/Projectiles/FishronRPG.png b/Projectiles/Ranged/FishronRPG.png similarity index 100% rename from Projectiles/FishronRPG.png rename to Projectiles/Ranged/FishronRPG.png diff --git a/Projectiles/FlakKraken.cs b/Projectiles/Ranged/FlakKraken.cs similarity index 96% rename from Projectiles/FlakKraken.cs rename to Projectiles/Ranged/FlakKraken.cs index 1a6c23b8a9..7ab9898c8b 100644 --- a/Projectiles/FlakKraken.cs +++ b/Projectiles/Ranged/FlakKraken.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FlakKraken : ModProjectile { diff --git a/Projectiles/FlakKraken.png b/Projectiles/Ranged/FlakKraken.png similarity index 100% rename from Projectiles/FlakKraken.png rename to Projectiles/Ranged/FlakKraken.png diff --git a/Projectiles/FlakKrakenGun.cs b/Projectiles/Ranged/FlakKrakenGun.cs similarity index 96% rename from Projectiles/FlakKrakenGun.cs rename to Projectiles/Ranged/FlakKrakenGun.cs index e59a5e08bc..197ab1cc1b 100644 --- a/Projectiles/FlakKrakenGun.cs +++ b/Projectiles/Ranged/FlakKrakenGun.cs @@ -7,7 +7,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.Enums; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FlakKrakenGun : ModProjectile { diff --git a/Projectiles/FlakKrakenGun.png b/Projectiles/Ranged/FlakKrakenGun.png similarity index 100% rename from Projectiles/FlakKrakenGun.png rename to Projectiles/Ranged/FlakKrakenGun.png diff --git a/Projectiles/FlamingStake.cs b/Projectiles/Ranged/FlamingStake.cs similarity index 95% rename from Projectiles/FlamingStake.cs rename to Projectiles/Ranged/FlamingStake.cs index a2d37976bb..6189805540 100644 --- a/Projectiles/FlamingStake.cs +++ b/Projectiles/Ranged/FlamingStake.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FlamingStake : ModProjectile { diff --git a/Projectiles/FlamingStake.png b/Projectiles/Ranged/FlamingStake.png similarity index 100% rename from Projectiles/FlamingStake.png rename to Projectiles/Ranged/FlamingStake.png diff --git a/Projectiles/FlareBat.cs b/Projectiles/Ranged/FlareBat.cs similarity index 96% rename from Projectiles/FlareBat.cs rename to Projectiles/Ranged/FlareBat.cs index c60cef144d..261e5ab185 100644 --- a/Projectiles/FlareBat.cs +++ b/Projectiles/Ranged/FlareBat.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FlareBat : ModProjectile { diff --git a/Projectiles/FlareBat.png b/Projectiles/Ranged/FlareBat.png similarity index 100% rename from Projectiles/FlareBat.png rename to Projectiles/Ranged/FlareBat.png diff --git a/Projectiles/Flash.cs b/Projectiles/Ranged/Flash.cs similarity index 93% rename from Projectiles/Flash.cs rename to Projectiles/Ranged/Flash.cs index 0a7cb0026e..633e35ef47 100644 --- a/Projectiles/Flash.cs +++ b/Projectiles/Ranged/Flash.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Flash : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; } diff --git a/Projectiles/Flash.png b/Projectiles/Ranged/Flash.png similarity index 100% rename from Projectiles/Flash.png rename to Projectiles/Ranged/Flash.png diff --git a/Projectiles/FlashBullet.cs b/Projectiles/Ranged/FlashBullet.cs similarity index 96% rename from Projectiles/FlashBullet.cs rename to Projectiles/Ranged/FlashBullet.cs index c22a418df6..31147f0367 100644 --- a/Projectiles/FlashBullet.cs +++ b/Projectiles/Ranged/FlashBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FlashBullet : ModProjectile { diff --git a/Projectiles/FlashBullet.png b/Projectiles/Ranged/FlashBullet.png similarity index 100% rename from Projectiles/FlashBullet.png rename to Projectiles/Ranged/FlashBullet.png diff --git a/Projectiles/FossilShard.cs b/Projectiles/Ranged/FossilShard.cs similarity index 93% rename from Projectiles/FossilShard.cs rename to Projectiles/Ranged/FossilShard.cs index 8809644713..09450be5f8 100644 --- a/Projectiles/FossilShard.cs +++ b/Projectiles/Ranged/FossilShard.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FossilShard : ModProjectile { diff --git a/Projectiles/FossilShard.png b/Projectiles/Ranged/FossilShard.png similarity index 100% rename from Projectiles/FossilShard.png rename to Projectiles/Ranged/FossilShard.png diff --git a/Projectiles/FrostsparkBullet.cs b/Projectiles/Ranged/FrostsparkBullet.cs similarity index 96% rename from Projectiles/FrostsparkBullet.cs rename to Projectiles/Ranged/FrostsparkBullet.cs index 345fc2aca4..7f9b7d6051 100644 --- a/Projectiles/FrostsparkBullet.cs +++ b/Projectiles/Ranged/FrostsparkBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FrostsparkBullet : ModProjectile { diff --git a/Projectiles/FrostsparkBullet.png b/Projectiles/Ranged/FrostsparkBullet.png similarity index 100% rename from Projectiles/FrostsparkBullet.png rename to Projectiles/Ranged/FrostsparkBullet.png diff --git a/Projectiles/FungiOrb.cs b/Projectiles/Ranged/FungiOrb.cs similarity index 95% rename from Projectiles/FungiOrb.cs rename to Projectiles/Ranged/FungiOrb.cs index c87422e7fb..3c06db82ea 100644 --- a/Projectiles/FungiOrb.cs +++ b/Projectiles/Ranged/FungiOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FungiOrb : ModProjectile { diff --git a/Projectiles/FungiOrb.png b/Projectiles/Ranged/FungiOrb.png similarity index 100% rename from Projectiles/FungiOrb.png rename to Projectiles/Ranged/FungiOrb.png diff --git a/Projectiles/FungiOrb2.cs b/Projectiles/Ranged/FungiOrb2.cs similarity index 94% rename from Projectiles/FungiOrb2.cs rename to Projectiles/Ranged/FungiOrb2.cs index ca266bf486..2e1c60d0cd 100644 --- a/Projectiles/FungiOrb2.cs +++ b/Projectiles/Ranged/FungiOrb2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class FungiOrb2 : ModProjectile { diff --git a/Projectiles/FungiOrb2.png b/Projectiles/Ranged/FungiOrb2.png similarity index 100% rename from Projectiles/FungiOrb2.png rename to Projectiles/Ranged/FungiOrb2.png diff --git a/Projectiles/GoliathExplosion.cs b/Projectiles/Ranged/GoliathExplosion.cs similarity index 82% rename from Projectiles/GoliathExplosion.cs rename to Projectiles/Ranged/GoliathExplosion.cs index 33e6824836..b8d9de7155 100644 --- a/Projectiles/GoliathExplosion.cs +++ b/Projectiles/Ranged/GoliathExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class GoliathExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; } } diff --git a/Projectiles/GoliathExplosion.png b/Projectiles/Ranged/GoliathExplosion.png similarity index 100% rename from Projectiles/GoliathExplosion.png rename to Projectiles/Ranged/GoliathExplosion.png diff --git a/Projectiles/GoliathRocket.cs b/Projectiles/Ranged/GoliathRocket.cs similarity index 97% rename from Projectiles/GoliathRocket.cs rename to Projectiles/Ranged/GoliathRocket.cs index fd8a6a6ce5..7acd09415c 100644 --- a/Projectiles/GoliathRocket.cs +++ b/Projectiles/Ranged/GoliathRocket.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class GoliathRocket : ModProjectile { diff --git a/Projectiles/GoliathRocket.png b/Projectiles/Ranged/GoliathRocket.png similarity index 100% rename from Projectiles/GoliathRocket.png rename to Projectiles/Ranged/GoliathRocket.png diff --git a/Projectiles/GreenExoArrow.cs b/Projectiles/Ranged/GreenExoArrow.cs similarity index 96% rename from Projectiles/GreenExoArrow.cs rename to Projectiles/Ranged/GreenExoArrow.cs index aaf995c909..c667c41bb6 100644 --- a/Projectiles/GreenExoArrow.cs +++ b/Projectiles/Ranged/GreenExoArrow.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class GreenExoArrow : ModProjectile { diff --git a/Projectiles/GreenExoArrow.png b/Projectiles/Ranged/GreenExoArrow.png similarity index 100% rename from Projectiles/GreenExoArrow.png rename to Projectiles/Ranged/GreenExoArrow.png diff --git a/Projectiles/HiveBomb.cs b/Projectiles/Ranged/HiveBomb.cs similarity index 97% rename from Projectiles/HiveBomb.cs rename to Projectiles/Ranged/HiveBomb.cs index a643f2cfe8..1e0a8550ab 100644 --- a/Projectiles/HiveBomb.cs +++ b/Projectiles/Ranged/HiveBomb.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class HiveBomb : ModProjectile { diff --git a/Projectiles/HiveBomb.png b/Projectiles/Ranged/HiveBomb.png similarity index 100% rename from Projectiles/HiveBomb.png rename to Projectiles/Ranged/HiveBomb.png diff --git a/Projectiles/HiveBombExplosion.cs b/Projectiles/Ranged/HiveBombExplosion.cs similarity index 85% rename from Projectiles/HiveBombExplosion.cs rename to Projectiles/Ranged/HiveBombExplosion.cs index 12242299ec..577070bb04 100644 --- a/Projectiles/HiveBombExplosion.cs +++ b/Projectiles/Ranged/HiveBombExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class HiveBombExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; } diff --git a/Projectiles/HiveBombExplosion.png b/Projectiles/Ranged/HiveBombExplosion.png similarity index 100% rename from Projectiles/HiveBombExplosion.png rename to Projectiles/Ranged/HiveBombExplosion.png diff --git a/Projectiles/HiveExplosion.cs b/Projectiles/Ranged/HiveExplosion.cs similarity index 82% rename from Projectiles/HiveExplosion.cs rename to Projectiles/Ranged/HiveExplosion.cs index c84dd23448..18e74dd6db 100644 --- a/Projectiles/HiveExplosion.cs +++ b/Projectiles/Ranged/HiveExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class HiveExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; } } diff --git a/Projectiles/HiveExplosion.png b/Projectiles/Ranged/HiveExplosion.png similarity index 100% rename from Projectiles/HiveExplosion.png rename to Projectiles/Ranged/HiveExplosion.png diff --git a/Projectiles/HiveMissile.cs b/Projectiles/Ranged/HiveMissile.cs similarity index 97% rename from Projectiles/HiveMissile.cs rename to Projectiles/Ranged/HiveMissile.cs index b8e74da9fb..70887d2e59 100644 --- a/Projectiles/HiveMissile.cs +++ b/Projectiles/Ranged/HiveMissile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class HiveMissile : ModProjectile { diff --git a/Projectiles/HiveMissile.png b/Projectiles/Ranged/HiveMissile.png similarity index 100% rename from Projectiles/HiveMissile.png rename to Projectiles/Ranged/HiveMissile.png diff --git a/Projectiles/HolyFireBullet.cs b/Projectiles/Ranged/HolyFireBullet.cs similarity index 96% rename from Projectiles/HolyFireBullet.cs rename to Projectiles/Ranged/HolyFireBullet.cs index 3127eb93ad..f4114d70a8 100644 --- a/Projectiles/HolyFireBullet.cs +++ b/Projectiles/Ranged/HolyFireBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class HolyFireBullet : ModProjectile { diff --git a/Projectiles/HolyFireBullet.png b/Projectiles/Ranged/HolyFireBullet.png similarity index 100% rename from Projectiles/HolyFireBullet.png rename to Projectiles/Ranged/HolyFireBullet.png diff --git a/Projectiles/HyperiusBullet.cs b/Projectiles/Ranged/HyperiusBullet.cs similarity index 93% rename from Projectiles/HyperiusBullet.cs rename to Projectiles/Ranged/HyperiusBullet.cs index 6d889dad37..1dd389171f 100644 --- a/Projectiles/HyperiusBullet.cs +++ b/Projectiles/Ranged/HyperiusBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class HyperiusBullet : ModProjectile { @@ -35,11 +35,11 @@ namespace CalamityMod.Projectiles projectile.localAI[0] += 1f; if (projectile.localAI[0] >= 6f) { - for (int num136 = 0; num136 < 10; num136++) + for (int num136 = 0; num136 < 3; num136++) { float x2 = projectile.position.X - projectile.velocity.X / 10f * (float)num136; float y2 = projectile.position.Y - projectile.velocity.Y / 10f * (float)num136; - int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 235, 0f, 0f, 0, default(Color), 0.5f); + int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 235, 0f, 0f, 0, default(Color), 0.75f); Main.dust[num137].alpha = projectile.alpha; Main.dust[num137].position.X = x2; Main.dust[num137].position.Y = y2; diff --git a/Projectiles/HyperiusBullet.png b/Projectiles/Ranged/HyperiusBullet.png similarity index 100% rename from Projectiles/HyperiusBullet.png rename to Projectiles/Ranged/HyperiusBullet.png diff --git a/Projectiles/LeafArrow.cs b/Projectiles/Ranged/LeafArrow.cs similarity index 94% rename from Projectiles/LeafArrow.cs rename to Projectiles/Ranged/LeafArrow.cs index 5d44b23724..84859f0722 100644 --- a/Projectiles/LeafArrow.cs +++ b/Projectiles/Ranged/LeafArrow.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class LeafArrow : ModProjectile { diff --git a/Projectiles/LeafArrow.png b/Projectiles/Ranged/LeafArrow.png similarity index 100% rename from Projectiles/LeafArrow.png rename to Projectiles/Ranged/LeafArrow.png diff --git a/Projectiles/LunarBolt.cs b/Projectiles/Ranged/LunarBolt.cs similarity index 94% rename from Projectiles/LunarBolt.cs rename to Projectiles/Ranged/LunarBolt.cs index 0613541c6d..d8d8af450c 100644 --- a/Projectiles/LunarBolt.cs +++ b/Projectiles/Ranged/LunarBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class LunarBolt : ModProjectile { diff --git a/Projectiles/LunarBolt.png b/Projectiles/Ranged/LunarBolt.png similarity index 100% rename from Projectiles/LunarBolt.png rename to Projectiles/Ranged/LunarBolt.png diff --git a/Projectiles/LunarBolt2.cs b/Projectiles/Ranged/LunarBolt2.cs similarity index 94% rename from Projectiles/LunarBolt2.cs rename to Projectiles/Ranged/LunarBolt2.cs index 118650224c..090d7d45af 100644 --- a/Projectiles/LunarBolt2.cs +++ b/Projectiles/Ranged/LunarBolt2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class LunarBolt2 : ModProjectile { diff --git a/Projectiles/LunarBolt2.png b/Projectiles/Ranged/LunarBolt2.png similarity index 100% rename from Projectiles/LunarBolt2.png rename to Projectiles/Ranged/LunarBolt2.png diff --git a/Projectiles/MagnaStrike.cs b/Projectiles/Ranged/MagnaStrike.cs similarity index 94% rename from Projectiles/MagnaStrike.cs rename to Projectiles/Ranged/MagnaStrike.cs index aa824a9663..f78b8b2b9b 100644 --- a/Projectiles/MagnaStrike.cs +++ b/Projectiles/Ranged/MagnaStrike.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class MagnaStrike : ModProjectile { diff --git a/Projectiles/MagnaStrike.png b/Projectiles/Ranged/MagnaStrike.png similarity index 100% rename from Projectiles/MagnaStrike.png rename to Projectiles/Ranged/MagnaStrike.png diff --git a/Projectiles/MechanicalBarracuda.cs b/Projectiles/Ranged/MechanicalBarracuda.cs similarity index 91% rename from Projectiles/MechanicalBarracuda.cs rename to Projectiles/Ranged/MechanicalBarracuda.cs index a94b5800d6..03cd134b92 100644 --- a/Projectiles/MechanicalBarracuda.cs +++ b/Projectiles/Ranged/MechanicalBarracuda.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class MechanicalBarracuda : ModProjectile { diff --git a/Projectiles/MechanicalBarracuda.png b/Projectiles/Ranged/MechanicalBarracuda.png similarity index 100% rename from Projectiles/MechanicalBarracuda.png rename to Projectiles/Ranged/MechanicalBarracuda.png diff --git a/Projectiles/MeowFire.cs b/Projectiles/Ranged/MeowFire.cs similarity index 96% rename from Projectiles/MeowFire.cs rename to Projectiles/Ranged/MeowFire.cs index 82f25710c6..4af1077656 100644 --- a/Projectiles/MeowFire.cs +++ b/Projectiles/Ranged/MeowFire.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class MeowFire : ModProjectile { diff --git a/Projectiles/MeowFire.png b/Projectiles/Ranged/MeowFire.png similarity index 100% rename from Projectiles/MeowFire.png rename to Projectiles/Ranged/MeowFire.png diff --git a/Projectiles/MeowFire2.cs b/Projectiles/Ranged/MeowFire2.cs similarity index 96% rename from Projectiles/MeowFire2.cs rename to Projectiles/Ranged/MeowFire2.cs index e268864bbd..810c7d54d5 100644 --- a/Projectiles/MeowFire2.cs +++ b/Projectiles/Ranged/MeowFire2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class MeowFire2 : ModProjectile { diff --git a/Projectiles/MeowFire2.png b/Projectiles/Ranged/MeowFire2.png similarity index 100% rename from Projectiles/MeowFire2.png rename to Projectiles/Ranged/MeowFire2.png diff --git a/Projectiles/MiniRocket.cs b/Projectiles/Ranged/MiniRocket.cs similarity index 97% rename from Projectiles/MiniRocket.cs rename to Projectiles/Ranged/MiniRocket.cs index f56abf9ab1..e96ddb46fb 100644 --- a/Projectiles/MiniRocket.cs +++ b/Projectiles/Ranged/MiniRocket.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class MiniRocket : ModProjectile { diff --git a/Projectiles/MiniRocket.png b/Projectiles/Ranged/MiniRocket.png similarity index 100% rename from Projectiles/MiniRocket.png rename to Projectiles/Ranged/MiniRocket.png diff --git a/Projectiles/MiniRocketExplosion.cs b/Projectiles/Ranged/MiniRocketExplosion.cs similarity index 82% rename from Projectiles/MiniRocketExplosion.cs rename to Projectiles/Ranged/MiniRocketExplosion.cs index d3da7cf0c9..dd33e7b1ef 100644 --- a/Projectiles/MiniRocketExplosion.cs +++ b/Projectiles/Ranged/MiniRocketExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class MiniRocketExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; } } diff --git a/Projectiles/MiniRocketExplosion.png b/Projectiles/Ranged/MiniRocketExplosion.png similarity index 100% rename from Projectiles/MiniRocketExplosion.png rename to Projectiles/Ranged/MiniRocketExplosion.png diff --git a/Projectiles/MistArrow.cs b/Projectiles/Ranged/MistArrow.cs similarity index 94% rename from Projectiles/MistArrow.cs rename to Projectiles/Ranged/MistArrow.cs index c719647261..f61080b00e 100644 --- a/Projectiles/MistArrow.cs +++ b/Projectiles/Ranged/MistArrow.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class MistArrow : ModProjectile { diff --git a/Projectiles/MistArrow.png b/Projectiles/Ranged/MistArrow.png similarity index 100% rename from Projectiles/MistArrow.png rename to Projectiles/Ranged/MistArrow.png diff --git a/Projectiles/MortarRound.cs b/Projectiles/Ranged/MortarRound.cs similarity index 97% rename from Projectiles/MortarRound.cs rename to Projectiles/Ranged/MortarRound.cs index 7317681948..855ba98311 100644 --- a/Projectiles/MortarRound.cs +++ b/Projectiles/Ranged/MortarRound.cs @@ -7,7 +7,7 @@ using Terraria.ID; using Terraria.GameContent.Achievements; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class MortarRound : ModProjectile { diff --git a/Projectiles/MortarRound.png b/Projectiles/Ranged/MortarRound.png similarity index 100% rename from Projectiles/MortarRound.png rename to Projectiles/Ranged/MortarRound.png diff --git a/Projectiles/Nanomachine.cs b/Projectiles/Ranged/Nanomachine.cs similarity index 96% rename from Projectiles/Nanomachine.cs rename to Projectiles/Ranged/Nanomachine.cs index d321038197..5219589faf 100644 --- a/Projectiles/Nanomachine.cs +++ b/Projectiles/Ranged/Nanomachine.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Nanomachine : ModProjectile { diff --git a/Projectiles/Nanomachine.png b/Projectiles/Ranged/Nanomachine.png similarity index 100% rename from Projectiles/Nanomachine.png rename to Projectiles/Ranged/Nanomachine.png diff --git a/Projectiles/NapalmArrow.cs b/Projectiles/Ranged/NapalmArrow.cs similarity index 97% rename from Projectiles/NapalmArrow.cs rename to Projectiles/Ranged/NapalmArrow.cs index 77b9b16417..973e413a4e 100644 --- a/Projectiles/NapalmArrow.cs +++ b/Projectiles/Ranged/NapalmArrow.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class NapalmArrow : ModProjectile { diff --git a/Projectiles/NapalmArrow.png b/Projectiles/Ranged/NapalmArrow.png similarity index 100% rename from Projectiles/NapalmArrow.png rename to Projectiles/Ranged/NapalmArrow.png diff --git a/Projectiles/NebulaShot.cs b/Projectiles/Ranged/NebulaShot.cs similarity index 63% rename from Projectiles/NebulaShot.cs rename to Projectiles/Ranged/NebulaShot.cs index 05ca1d2fde..ff05d3b319 100644 --- a/Projectiles/NebulaShot.cs +++ b/Projectiles/Ranged/NebulaShot.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class NebulaShot : ModProjectile { @@ -25,7 +25,9 @@ namespace CalamityMod.Projectiles projectile.penetrate = 1; projectile.extraUpdates = 5; projectile.timeLeft = 600; - } + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 2; + } public override void AI() { @@ -34,7 +36,17 @@ namespace CalamityMod.Projectiles projectile.ai[1] = 1f; Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 12); } - if (projectile.alpha > 0) + if (projectile.ai[0] == 1f) + { + projectile.ranged = false; + projectile.melee = true; + } + else if (projectile.ai[0] == 2f) + { + projectile.ranged = false; + projectile.GetGlobalProjectile(mod).rogue = true; + } + if (projectile.alpha > 0) { projectile.alpha -= 15; } @@ -45,7 +57,7 @@ namespace CalamityMod.Projectiles Lighting.AddLight(projectile.Center, 0.4f, 0.2f, 0.4f); for (int num121 = 0; num121 < 5; num121++) { - Dust dust4 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, 242, projectile.velocity.X, projectile.velocity.Y, 100, default(Color), 1f)]; + Dust dust4 = Main.dust[Dust.NewDust(projectile.position, projectile.width, projectile.height, (Main.rand.Next(3) == 0 ? 56 : 242), projectile.velocity.X, projectile.velocity.Y, 100, default(Color), 1f)]; dust4.velocity = Vector2.Zero; dust4.position -= projectile.velocity / 5f * (float)num121; dust4.noGravity = true; @@ -53,5 +65,10 @@ namespace CalamityMod.Projectiles dust4.noLight = true; } } - } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(BuffID.Frostburn, 600); + } + } } \ No newline at end of file diff --git a/Projectiles/NebulaShot.png b/Projectiles/Ranged/NebulaShot.png similarity index 100% rename from Projectiles/NebulaShot.png rename to Projectiles/Ranged/NebulaShot.png diff --git a/Projectiles/Needler.cs b/Projectiles/Ranged/Needler.cs similarity index 95% rename from Projectiles/Needler.cs rename to Projectiles/Ranged/Needler.cs index 4a6c2bcca8..1709429faf 100644 --- a/Projectiles/Needler.cs +++ b/Projectiles/Ranged/Needler.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Needler : ModProjectile { diff --git a/Projectiles/Needler.png b/Projectiles/Ranged/Needler.png similarity index 100% rename from Projectiles/Needler.png rename to Projectiles/Ranged/Needler.png diff --git a/Projectiles/Nuke.cs b/Projectiles/Ranged/Nuke.cs similarity index 97% rename from Projectiles/Nuke.cs rename to Projectiles/Ranged/Nuke.cs index 37b298f10f..101716ae24 100644 --- a/Projectiles/Nuke.cs +++ b/Projectiles/Ranged/Nuke.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Nuke : ModProjectile { diff --git a/Projectiles/Nuke.png b/Projectiles/Ranged/Nuke.png similarity index 100% rename from Projectiles/Nuke.png rename to Projectiles/Ranged/Nuke.png diff --git a/Projectiles/NukeExplosion.cs b/Projectiles/Ranged/NukeExplosion.cs similarity index 84% rename from Projectiles/NukeExplosion.cs rename to Projectiles/Ranged/NukeExplosion.cs index 08456dd8e9..1db8ee8479 100644 --- a/Projectiles/NukeExplosion.cs +++ b/Projectiles/Ranged/NukeExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class NukeExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 2; diff --git a/Projectiles/NukeExplosion.png b/Projectiles/Ranged/NukeExplosion.png similarity index 100% rename from Projectiles/NukeExplosion.png rename to Projectiles/Ranged/NukeExplosion.png diff --git a/Projectiles/NullShot.cs b/Projectiles/Ranged/NullShot.cs similarity index 94% rename from Projectiles/NullShot.cs rename to Projectiles/Ranged/NullShot.cs index ccdb97f5b6..46fc718354 100644 --- a/Projectiles/NullShot.cs +++ b/Projectiles/Ranged/NullShot.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class NullShot : ModProjectile { diff --git a/Projectiles/NullShot.png b/Projectiles/Ranged/NullShot.png similarity index 100% rename from Projectiles/NullShot.png rename to Projectiles/Ranged/NullShot.png diff --git a/Projectiles/NullShot2.cs b/Projectiles/Ranged/NullShot2.cs similarity index 95% rename from Projectiles/NullShot2.cs rename to Projectiles/Ranged/NullShot2.cs index d0ba55d589..e248f02b07 100644 --- a/Projectiles/NullShot2.cs +++ b/Projectiles/Ranged/NullShot2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class NullShot2 : ModProjectile { diff --git a/Projectiles/NullShot2.png b/Projectiles/Ranged/NullShot2.png similarity index 100% rename from Projectiles/NullShot2.png rename to Projectiles/Ranged/NullShot2.png diff --git a/Projectiles/OMGWTH.cs b/Projectiles/Ranged/OMGWTH.cs similarity index 92% rename from Projectiles/OMGWTH.cs rename to Projectiles/Ranged/OMGWTH.cs index 034c894586..c6d9a0313f 100644 --- a/Projectiles/OMGWTH.cs +++ b/Projectiles/Ranged/OMGWTH.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class OMGWTH : ModProjectile { @@ -33,11 +33,11 @@ namespace CalamityMod.Projectiles public override void AI() { Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.25f) / 255f, ((255 - projectile.alpha) * 0.01f) / 255f, ((255 - projectile.alpha) * 0.01f) / 255f); - for (int num136 = 0; num136 < 10; num136++) + for (int num136 = 0; num136 < 3; num136++) { float x2 = projectile.position.X - projectile.velocity.X / 10f * (float)num136; float y2 = projectile.position.Y - projectile.velocity.Y / 10f * (float)num136; - int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 235, 0f, 0f, 0, default(Color), 0.5f); + int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 235, 0f, 0f, 0, default(Color), 0.75f); Main.dust[num137].alpha = projectile.alpha; Main.dust[num137].position.X = x2; Main.dust[num137].position.Y = y2; diff --git a/Projectiles/OMGWTH.png b/Projectiles/Ranged/OMGWTH.png similarity index 100% rename from Projectiles/OMGWTH.png rename to Projectiles/Ranged/OMGWTH.png diff --git a/Projectiles/OnyxExplosion.cs b/Projectiles/Ranged/OnyxExplosion.cs similarity index 82% rename from Projectiles/OnyxExplosion.cs rename to Projectiles/Ranged/OnyxExplosion.cs index 562a3bbdd1..3507c042fc 100644 --- a/Projectiles/OnyxExplosion.cs +++ b/Projectiles/Ranged/OnyxExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class OnyxExplosion : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 3; } } diff --git a/Projectiles/OnyxExplosion.png b/Projectiles/Ranged/OnyxExplosion.png similarity index 100% rename from Projectiles/OnyxExplosion.png rename to Projectiles/Ranged/OnyxExplosion.png diff --git a/Projectiles/Ranged/OnyxSharkBomb.cs b/Projectiles/Ranged/OnyxSharkBomb.cs new file mode 100644 index 0000000000..ca1e3509b3 --- /dev/null +++ b/Projectiles/Ranged/OnyxSharkBomb.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Ranged +{ + public class OnyxSharkBomb : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shark"); + } + + public override void SetDefaults() + { + projectile.width = 30; + projectile.height = 30; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.ranged = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + if (Math.Abs(projectile.velocity.X) >= 8f || Math.Abs(projectile.velocity.Y) >= 8f) + { + for (int num246 = 0; num246 < 2; num246++) + { + float num247 = 0f; + float num248 = 0f; + if (num246 == 1) + { + num247 = projectile.velocity.X * 0.5f; + num248 = projectile.velocity.Y * 0.5f; + } + int num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 109, 0f, 0f, 100, default(Color), 0.5f); + Main.dust[num249].scale *= 2f + (float)Main.rand.Next(10) * 0.1f; + Main.dust[num249].velocity *= 0.2f; + Main.dust[num249].noGravity = true; + num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 159, 0f, 0f, 100, default(Color), 0.25f); + Main.dust[num249].fadeIn = 1f + (float)Main.rand.Next(5) * 0.1f; + Main.dust[num249].velocity *= 0.05f; + } + } + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 10; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 109, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, projectile.velocity.X, projectile.velocity.Y, mod.ProjectileType("OnyxExplosion"), (int)((double)projectile.damage), projectile.knockBack, projectile.owner, 0f, 0f); + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 159, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + float spread = 45f * 0.0174f; + double startAngle = Math.Atan2(projectile.velocity.X, projectile.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + for (i = 0; i < 2; i++) + { + offsetAngle = (startAngle + deltaAngle * (i + i * i) / 2f) + 32f * i; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), mod.ProjectileType("SandyWaifuShark"), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), mod.ProjectileType("SandyWaifuShark"), (int)((double)projectile.damage * 0.4), projectile.knockBack, projectile.owner, 0f, 0f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/OnyxSharkBomb.png b/Projectiles/Ranged/OnyxSharkBomb.png similarity index 100% rename from Projectiles/OnyxSharkBomb.png rename to Projectiles/Ranged/OnyxSharkBomb.png diff --git a/Projectiles/OpalStrike.cs b/Projectiles/Ranged/OpalStrike.cs similarity index 94% rename from Projectiles/OpalStrike.cs rename to Projectiles/Ranged/OpalStrike.cs index 5073aa37cf..ce4280f9ca 100644 --- a/Projectiles/OpalStrike.cs +++ b/Projectiles/Ranged/OpalStrike.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class OpalStrike : ModProjectile { diff --git a/Projectiles/OpalStrike.png b/Projectiles/Ranged/OpalStrike.png similarity index 100% rename from Projectiles/OpalStrike.png rename to Projectiles/Ranged/OpalStrike.png diff --git a/Projectiles/OrangeExoArrow.cs b/Projectiles/Ranged/OrangeExoArrow.cs similarity index 96% rename from Projectiles/OrangeExoArrow.cs rename to Projectiles/Ranged/OrangeExoArrow.cs index c9c2f256fd..e0890dae50 100644 --- a/Projectiles/OrangeExoArrow.cs +++ b/Projectiles/Ranged/OrangeExoArrow.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class OrangeExoArrow : ModProjectile { diff --git a/Projectiles/OrangeExoArrow.png b/Projectiles/Ranged/OrangeExoArrow.png similarity index 100% rename from Projectiles/OrangeExoArrow.png rename to Projectiles/Ranged/OrangeExoArrow.png diff --git a/Projectiles/Phangasm.cs b/Projectiles/Ranged/Phangasm.cs similarity index 96% rename from Projectiles/Phangasm.cs rename to Projectiles/Ranged/Phangasm.cs index 2bbde373e9..c8ac27009c 100644 --- a/Projectiles/Phangasm.cs +++ b/Projectiles/Ranged/Phangasm.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Phangasm : ModProjectile { diff --git a/Projectiles/Phangasm.png b/Projectiles/Ranged/Phangasm.png similarity index 100% rename from Projectiles/Phangasm.png rename to Projectiles/Ranged/Phangasm.png diff --git a/Projectiles/PlagueArrow.cs b/Projectiles/Ranged/PlagueArrow.cs similarity index 95% rename from Projectiles/PlagueArrow.cs rename to Projectiles/Ranged/PlagueArrow.cs index 90415769ac..869c3afd76 100644 --- a/Projectiles/PlagueArrow.cs +++ b/Projectiles/Ranged/PlagueArrow.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class PlagueArrow : ModProjectile { diff --git a/Projectiles/PlagueArrow.png b/Projectiles/Ranged/PlagueArrow.png similarity index 100% rename from Projectiles/PlagueArrow.png rename to Projectiles/Ranged/PlagueArrow.png diff --git a/Projectiles/PlagueExplosionFriendly.cs b/Projectiles/Ranged/PlagueExplosionFriendly.cs similarity index 93% rename from Projectiles/PlagueExplosionFriendly.cs rename to Projectiles/Ranged/PlagueExplosionFriendly.cs index d64b96394d..9aa5b12a6f 100644 --- a/Projectiles/PlagueExplosionFriendly.cs +++ b/Projectiles/Ranged/PlagueExplosionFriendly.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class PlagueExplosionFriendly : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 60; } diff --git a/Projectiles/PlagueExplosionFriendly.png b/Projectiles/Ranged/PlagueExplosionFriendly.png similarity index 100% rename from Projectiles/PlagueExplosionFriendly.png rename to Projectiles/Ranged/PlagueExplosionFriendly.png diff --git a/Projectiles/PlasmaBlast.cs b/Projectiles/Ranged/PlasmaBlast.cs similarity index 96% rename from Projectiles/PlasmaBlast.cs rename to Projectiles/Ranged/PlasmaBlast.cs index c055e10170..1a8e09b242 100644 --- a/Projectiles/PlasmaBlast.cs +++ b/Projectiles/Ranged/PlasmaBlast.cs @@ -7,7 +7,7 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class PlasmaBlast : ModProjectile { diff --git a/Projectiles/PlasmaBlast.png b/Projectiles/Ranged/PlasmaBlast.png similarity index 100% rename from Projectiles/PlasmaBlast.png rename to Projectiles/Ranged/PlasmaBlast.png diff --git a/Projectiles/PlasmaExplosion.cs b/Projectiles/Ranged/PlasmaExplosion.cs similarity index 95% rename from Projectiles/PlasmaExplosion.cs rename to Projectiles/Ranged/PlasmaExplosion.cs index ee3fc27272..9b0b0f5b4e 100644 --- a/Projectiles/PlasmaExplosion.cs +++ b/Projectiles/Ranged/PlasmaExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class PlasmaExplosion : ModProjectile { diff --git a/Projectiles/PlasmaExplosion.png b/Projectiles/Ranged/PlasmaExplosion.png similarity index 100% rename from Projectiles/PlasmaExplosion.png rename to Projectiles/Ranged/PlasmaExplosion.png diff --git a/Projectiles/ProBolt.cs b/Projectiles/Ranged/ProBolt.cs similarity index 95% rename from Projectiles/ProBolt.cs rename to Projectiles/Ranged/ProBolt.cs index 114c8f6af6..d25c0a3847 100644 --- a/Projectiles/ProBolt.cs +++ b/Projectiles/Ranged/ProBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ProBolt : ModProjectile { diff --git a/Projectiles/ProBolt.png b/Projectiles/Ranged/ProBolt.png similarity index 100% rename from Projectiles/ProBolt.png rename to Projectiles/Ranged/ProBolt.png diff --git a/Projectiles/RainbowBlast.cs b/Projectiles/Ranged/RainbowBlast.cs similarity index 95% rename from Projectiles/RainbowBlast.cs rename to Projectiles/Ranged/RainbowBlast.cs index f9414c3b70..8b3768c684 100644 --- a/Projectiles/RainbowBlast.cs +++ b/Projectiles/Ranged/RainbowBlast.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class RainbowBlast : ModProjectile { diff --git a/Projectiles/RainbowBlast.png b/Projectiles/Ranged/RainbowBlast.png similarity index 100% rename from Projectiles/RainbowBlast.png rename to Projectiles/Ranged/RainbowBlast.png diff --git a/Projectiles/RubberMortarRound.cs b/Projectiles/Ranged/RubberMortarRound.cs similarity index 97% rename from Projectiles/RubberMortarRound.cs rename to Projectiles/Ranged/RubberMortarRound.cs index 311d8febf3..5431d02fb8 100644 --- a/Projectiles/RubberMortarRound.cs +++ b/Projectiles/Ranged/RubberMortarRound.cs @@ -7,7 +7,7 @@ using Terraria.ID; using Terraria.GameContent.Achievements; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class RubberMortarRound : ModProjectile { diff --git a/Projectiles/RubberMortarRound.png b/Projectiles/Ranged/RubberMortarRound.png similarity index 100% rename from Projectiles/RubberMortarRound.png rename to Projectiles/Ranged/RubberMortarRound.png diff --git a/Projectiles/SandstormBullet.cs b/Projectiles/Ranged/SandstormBullet.cs similarity index 96% rename from Projectiles/SandstormBullet.cs rename to Projectiles/Ranged/SandstormBullet.cs index 5b905dda43..9d73edd02d 100644 --- a/Projectiles/SandstormBullet.cs +++ b/Projectiles/Ranged/SandstormBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SandstormBullet : ModProjectile { diff --git a/Projectiles/SandstormBullet.png b/Projectiles/Ranged/SandstormBullet.png similarity index 100% rename from Projectiles/SandstormBullet.png rename to Projectiles/Ranged/SandstormBullet.png diff --git a/Projectiles/SandyWaifuShark.cs b/Projectiles/Ranged/SandyWaifuShark.cs similarity index 96% rename from Projectiles/SandyWaifuShark.cs rename to Projectiles/Ranged/SandyWaifuShark.cs index cbc6e60930..54404d5af2 100644 --- a/Projectiles/SandyWaifuShark.cs +++ b/Projectiles/Ranged/SandyWaifuShark.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SandyWaifuShark : ModProjectile { diff --git a/Projectiles/SandyWaifuShark.png b/Projectiles/Ranged/SandyWaifuShark.png similarity index 100% rename from Projectiles/SandyWaifuShark.png rename to Projectiles/Ranged/SandyWaifuShark.png diff --git a/Projectiles/SeaDragonRocket.cs b/Projectiles/Ranged/SeaDragonRocket.cs similarity index 97% rename from Projectiles/SeaDragonRocket.cs rename to Projectiles/Ranged/SeaDragonRocket.cs index 9b513aeee1..dcfb194cec 100644 --- a/Projectiles/SeaDragonRocket.cs +++ b/Projectiles/Ranged/SeaDragonRocket.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SeaDragonRocket : ModProjectile { diff --git a/Projectiles/SeaDragonRocket.png b/Projectiles/Ranged/SeaDragonRocket.png similarity index 100% rename from Projectiles/SeaDragonRocket.png rename to Projectiles/Ranged/SeaDragonRocket.png diff --git a/Projectiles/ShadeFire.cs b/Projectiles/Ranged/ShadeFire.cs similarity index 95% rename from Projectiles/ShadeFire.cs rename to Projectiles/Ranged/ShadeFire.cs index 287c314f65..0a5a6a97a4 100644 --- a/Projectiles/ShadeFire.cs +++ b/Projectiles/Ranged/ShadeFire.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ShadeFire : ModProjectile { diff --git a/Projectiles/ShadeFire.png b/Projectiles/Ranged/ShadeFire.png similarity index 100% rename from Projectiles/ShadeFire.png rename to Projectiles/Ranged/ShadeFire.png diff --git a/Projectiles/Shockblast.cs b/Projectiles/Ranged/Shockblast.cs similarity index 93% rename from Projectiles/Shockblast.cs rename to Projectiles/Ranged/Shockblast.cs index c9bb21d204..66595520e2 100644 --- a/Projectiles/Shockblast.cs +++ b/Projectiles/Ranged/Shockblast.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Shockblast : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 10; } diff --git a/Projectiles/Shockblast.png b/Projectiles/Ranged/Shockblast.png similarity index 100% rename from Projectiles/Shockblast.png rename to Projectiles/Ranged/Shockblast.png diff --git a/Projectiles/ShockblastRound.cs b/Projectiles/Ranged/ShockblastRound.cs similarity index 94% rename from Projectiles/ShockblastRound.cs rename to Projectiles/Ranged/ShockblastRound.cs index 22369ca386..6e078d6de1 100644 --- a/Projectiles/ShockblastRound.cs +++ b/Projectiles/Ranged/ShockblastRound.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class ShockblastRound : ModProjectile { @@ -101,7 +101,7 @@ namespace CalamityMod.Projectiles { return; } - Main.player[Main.myPlayer].lifeSteal -= num * 2f; + Main.player[Main.myPlayer].lifeSteal -= num * 1.5f; int num2 = projectile.owner; Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("TransfusionTrail"), 0, 0f, projectile.owner, (float)num2, num); } diff --git a/Projectiles/ShockblastRound.png b/Projectiles/Ranged/ShockblastRound.png similarity index 100% rename from Projectiles/ShockblastRound.png rename to Projectiles/Ranged/ShockblastRound.png diff --git a/Projectiles/Shroom.cs b/Projectiles/Ranged/Shroom.cs similarity index 95% rename from Projectiles/Shroom.cs rename to Projectiles/Ranged/Shroom.cs index a809cc713f..31fbff6645 100644 --- a/Projectiles/Shroom.cs +++ b/Projectiles/Ranged/Shroom.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Shroom : ModProjectile { diff --git a/Projectiles/Shroom.png b/Projectiles/Ranged/Shroom.png similarity index 100% rename from Projectiles/Shroom.png rename to Projectiles/Ranged/Shroom.png diff --git a/Projectiles/Sickness.cs b/Projectiles/Ranged/Sickness.cs similarity index 93% rename from Projectiles/Sickness.cs rename to Projectiles/Ranged/Sickness.cs index 14d64dc03a..710f1757e9 100644 --- a/Projectiles/Sickness.cs +++ b/Projectiles/Ranged/Sickness.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Sickness : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.ranged = true; + projectile.penetrate = -1; projectile.timeLeft = 5; } diff --git a/Projectiles/Sickness.png b/Projectiles/Ranged/Sickness.png similarity index 100% rename from Projectiles/Sickness.png rename to Projectiles/Ranged/Sickness.png diff --git a/Projectiles/SicknessRound.cs b/Projectiles/Ranged/SicknessRound.cs similarity index 96% rename from Projectiles/SicknessRound.cs rename to Projectiles/Ranged/SicknessRound.cs index f032aef467..3ef15c4e3e 100644 --- a/Projectiles/SicknessRound.cs +++ b/Projectiles/Ranged/SicknessRound.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SicknessRound : ModProjectile { diff --git a/Projectiles/SicknessRound.png b/Projectiles/Ranged/SicknessRound.png similarity index 100% rename from Projectiles/SicknessRound.png rename to Projectiles/Ranged/SicknessRound.png diff --git a/Projectiles/SicknessRound2.cs b/Projectiles/Ranged/SicknessRound2.cs similarity index 95% rename from Projectiles/SicknessRound2.cs rename to Projectiles/Ranged/SicknessRound2.cs index 2b6e80398d..78e4f8f089 100644 --- a/Projectiles/SicknessRound2.cs +++ b/Projectiles/Ranged/SicknessRound2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SicknessRound2 : ModProjectile { diff --git a/Projectiles/SicknessRound2.png b/Projectiles/Ranged/SicknessRound2.png similarity index 100% rename from Projectiles/SicknessRound2.png rename to Projectiles/Ranged/SicknessRound2.png diff --git a/Projectiles/SlagRound.cs b/Projectiles/Ranged/SlagRound.cs similarity index 95% rename from Projectiles/SlagRound.cs rename to Projectiles/Ranged/SlagRound.cs index 96e6ef3eb9..8c6a8ff860 100644 --- a/Projectiles/SlagRound.cs +++ b/Projectiles/Ranged/SlagRound.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SlagRound : ModProjectile { diff --git a/Projectiles/SlagRound.png b/Projectiles/Ranged/SlagRound.png similarity index 100% rename from Projectiles/SlagRound.png rename to Projectiles/Ranged/SlagRound.png diff --git a/Projectiles/SlashRound.cs b/Projectiles/Ranged/SlashRound.cs similarity index 92% rename from Projectiles/SlashRound.cs rename to Projectiles/Ranged/SlashRound.cs index 49686579a5..e927d8576f 100644 --- a/Projectiles/SlashRound.cs +++ b/Projectiles/Ranged/SlashRound.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SlashRound : ModProjectile { diff --git a/Projectiles/SlashRound.png b/Projectiles/Ranged/SlashRound.png similarity index 100% rename from Projectiles/SlashRound.png rename to Projectiles/Ranged/SlashRound.png diff --git a/Projectiles/SlimeBolt.cs b/Projectiles/Ranged/SlimeBolt.cs similarity index 95% rename from Projectiles/SlimeBolt.cs rename to Projectiles/Ranged/SlimeBolt.cs index d6f3642330..57e907622e 100644 --- a/Projectiles/SlimeBolt.cs +++ b/Projectiles/Ranged/SlimeBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SlimeBolt : ModProjectile { diff --git a/Projectiles/SlimeBolt.png b/Projectiles/Ranged/SlimeBolt.png similarity index 100% rename from Projectiles/SlimeBolt.png rename to Projectiles/Ranged/SlimeBolt.png diff --git a/Projectiles/SporeBomb.cs b/Projectiles/Ranged/SporeBomb.cs similarity index 95% rename from Projectiles/SporeBomb.cs rename to Projectiles/Ranged/SporeBomb.cs index ca281877c3..ce758e664b 100644 --- a/Projectiles/SporeBomb.cs +++ b/Projectiles/Ranged/SporeBomb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SporeBomb : ModProjectile { diff --git a/Projectiles/SporeBomb.png b/Projectiles/Ranged/SporeBomb.png similarity index 100% rename from Projectiles/SporeBomb.png rename to Projectiles/Ranged/SporeBomb.png diff --git a/Projectiles/Spyker.cs b/Projectiles/Ranged/Spyker.cs similarity index 96% rename from Projectiles/Spyker.cs rename to Projectiles/Ranged/Spyker.cs index d3190e1f6d..63ced72a96 100644 --- a/Projectiles/Spyker.cs +++ b/Projectiles/Ranged/Spyker.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Spyker : ModProjectile { diff --git a/Projectiles/Spyker.png b/Projectiles/Ranged/Spyker.png similarity index 100% rename from Projectiles/Spyker.png rename to Projectiles/Ranged/Spyker.png diff --git a/Projectiles/StormSurge.cs b/Projectiles/Ranged/StormSurge.cs similarity index 95% rename from Projectiles/StormSurge.cs rename to Projectiles/Ranged/StormSurge.cs index 2d7b2f9860..a5b6eb4fe3 100644 --- a/Projectiles/StormSurge.cs +++ b/Projectiles/Ranged/StormSurge.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class StormSurge : ModProjectile { diff --git a/Projectiles/StormSurge.png b/Projectiles/Ranged/StormSurge.png similarity index 100% rename from Projectiles/StormSurge.png rename to Projectiles/Ranged/StormSurge.png diff --git a/Projectiles/SulphuricAcidCannon2.cs b/Projectiles/Ranged/SulphuricAcidCannon2.cs similarity index 97% rename from Projectiles/SulphuricAcidCannon2.cs rename to Projectiles/Ranged/SulphuricAcidCannon2.cs index fffe53f79b..c299f370d0 100644 --- a/Projectiles/SulphuricAcidCannon2.cs +++ b/Projectiles/Ranged/SulphuricAcidCannon2.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SulphuricAcidCannon2 : ModProjectile { diff --git a/Projectiles/SulphuricAcidCannon2.png b/Projectiles/Ranged/SulphuricAcidCannon2.png similarity index 100% rename from Projectiles/SulphuricAcidCannon2.png rename to Projectiles/Ranged/SulphuricAcidCannon2.png diff --git a/Projectiles/SulphuricAcidMist2.cs b/Projectiles/Ranged/SulphuricAcidMist2.cs similarity index 95% rename from Projectiles/SulphuricAcidMist2.cs rename to Projectiles/Ranged/SulphuricAcidMist2.cs index 6fd529ad4e..2eeffef07c 100644 --- a/Projectiles/SulphuricAcidMist2.cs +++ b/Projectiles/Ranged/SulphuricAcidMist2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SulphuricAcidMist2 : ModProjectile { diff --git a/Projectiles/SulphuricAcidMist2.png b/Projectiles/Ranged/SulphuricAcidMist2.png similarity index 100% rename from Projectiles/SulphuricAcidMist2.png rename to Projectiles/Ranged/SulphuricAcidMist2.png diff --git a/Projectiles/SuperballBullet.cs b/Projectiles/Ranged/SuperballBullet.cs similarity index 95% rename from Projectiles/SuperballBullet.cs rename to Projectiles/Ranged/SuperballBullet.cs index 1737523ad9..3ebd9b4f99 100644 --- a/Projectiles/SuperballBullet.cs +++ b/Projectiles/Ranged/SuperballBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class SuperballBullet : ModProjectile { diff --git a/Projectiles/SuperballBullet.png b/Projectiles/Ranged/SuperballBullet.png similarity index 100% rename from Projectiles/SuperballBullet.png rename to Projectiles/Ranged/SuperballBullet.png diff --git a/Projectiles/TealExoArrow.cs b/Projectiles/Ranged/TealExoArrow.cs similarity index 96% rename from Projectiles/TealExoArrow.cs rename to Projectiles/Ranged/TealExoArrow.cs index 8222ff013b..49537743e3 100644 --- a/Projectiles/TealExoArrow.cs +++ b/Projectiles/Ranged/TealExoArrow.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TealExoArrow : ModProjectile { diff --git a/Projectiles/TealExoArrow.png b/Projectiles/Ranged/TealExoArrow.png similarity index 100% rename from Projectiles/TealExoArrow.png rename to Projectiles/Ranged/TealExoArrow.png diff --git a/Projectiles/TelluricGlare.cs b/Projectiles/Ranged/TelluricGlare.cs similarity index 95% rename from Projectiles/TelluricGlare.cs rename to Projectiles/Ranged/TelluricGlare.cs index 1b0fec02a5..41da0cec18 100644 --- a/Projectiles/TelluricGlare.cs +++ b/Projectiles/Ranged/TelluricGlare.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TelluricGlare : ModProjectile { diff --git a/Projectiles/TelluricGlare.png b/Projectiles/Ranged/TelluricGlare.png similarity index 100% rename from Projectiles/TelluricGlare.png rename to Projectiles/Ranged/TelluricGlare.png diff --git a/Projectiles/TerraArrow.cs b/Projectiles/Ranged/TerraArrow.cs similarity index 96% rename from Projectiles/TerraArrow.cs rename to Projectiles/Ranged/TerraArrow.cs index 52388387b1..93a138129c 100644 --- a/Projectiles/TerraArrow.cs +++ b/Projectiles/Ranged/TerraArrow.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraArrow : ModProjectile { diff --git a/Projectiles/TerraArrow.png b/Projectiles/Ranged/TerraArrow.png similarity index 100% rename from Projectiles/TerraArrow.png rename to Projectiles/Ranged/TerraArrow.png diff --git a/Projectiles/TerraArrow2.cs b/Projectiles/Ranged/TerraArrow2.cs similarity index 96% rename from Projectiles/TerraArrow2.cs rename to Projectiles/Ranged/TerraArrow2.cs index abf10db535..474f9ce462 100644 --- a/Projectiles/TerraArrow2.cs +++ b/Projectiles/Ranged/TerraArrow2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraArrow2 : ModProjectile { diff --git a/Projectiles/TerraArrow2.png b/Projectiles/Ranged/TerraArrow2.png similarity index 100% rename from Projectiles/TerraArrow2.png rename to Projectiles/Ranged/TerraArrow2.png diff --git a/Projectiles/TerraBallB.cs b/Projectiles/Ranged/TerraBallB.cs similarity index 95% rename from Projectiles/TerraBallB.cs rename to Projectiles/Ranged/TerraBallB.cs index f33ff96148..93c35ca7bf 100644 --- a/Projectiles/TerraBallB.cs +++ b/Projectiles/Ranged/TerraBallB.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBallB : ModProjectile { diff --git a/Projectiles/TerraBallB.png b/Projectiles/Ranged/TerraBallB.png similarity index 100% rename from Projectiles/TerraBallB.png rename to Projectiles/Ranged/TerraBallB.png diff --git a/Projectiles/TerraBallG.cs b/Projectiles/Ranged/TerraBallG.cs similarity index 95% rename from Projectiles/TerraBallG.cs rename to Projectiles/Ranged/TerraBallG.cs index 859761fa86..33462a8767 100644 --- a/Projectiles/TerraBallG.cs +++ b/Projectiles/Ranged/TerraBallG.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBallG : ModProjectile { diff --git a/Projectiles/TerraBallG.png b/Projectiles/Ranged/TerraBallG.png similarity index 100% rename from Projectiles/TerraBallG.png rename to Projectiles/Ranged/TerraBallG.png diff --git a/Projectiles/TerraBallI.cs b/Projectiles/Ranged/TerraBallI.cs similarity index 95% rename from Projectiles/TerraBallI.cs rename to Projectiles/Ranged/TerraBallI.cs index 76e8c9e98a..429daf2697 100644 --- a/Projectiles/TerraBallI.cs +++ b/Projectiles/Ranged/TerraBallI.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBallI : ModProjectile { diff --git a/Projectiles/TerraBallI.png b/Projectiles/Ranged/TerraBallI.png similarity index 100% rename from Projectiles/TerraBallI.png rename to Projectiles/Ranged/TerraBallI.png diff --git a/Projectiles/TerraBallO.cs b/Projectiles/Ranged/TerraBallO.cs similarity index 95% rename from Projectiles/TerraBallO.cs rename to Projectiles/Ranged/TerraBallO.cs index bcdb8fda4a..c994353531 100644 --- a/Projectiles/TerraBallO.cs +++ b/Projectiles/Ranged/TerraBallO.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBallO : ModProjectile { diff --git a/Projectiles/TerraBallO.png b/Projectiles/Ranged/TerraBallO.png similarity index 100% rename from Projectiles/TerraBallO.png rename to Projectiles/Ranged/TerraBallO.png diff --git a/Projectiles/TerraBallR.cs b/Projectiles/Ranged/TerraBallR.cs similarity index 95% rename from Projectiles/TerraBallR.cs rename to Projectiles/Ranged/TerraBallR.cs index d294ba5967..2ccbc6a61d 100644 --- a/Projectiles/TerraBallR.cs +++ b/Projectiles/Ranged/TerraBallR.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBallR : ModProjectile { diff --git a/Projectiles/TerraBallR.png b/Projectiles/Ranged/TerraBallR.png similarity index 100% rename from Projectiles/TerraBallR.png rename to Projectiles/Ranged/TerraBallR.png diff --git a/Projectiles/TerraBallV.cs b/Projectiles/Ranged/TerraBallV.cs similarity index 95% rename from Projectiles/TerraBallV.cs rename to Projectiles/Ranged/TerraBallV.cs index 58f478acfc..dbd1512ee0 100644 --- a/Projectiles/TerraBallV.cs +++ b/Projectiles/Ranged/TerraBallV.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBallV : ModProjectile { diff --git a/Projectiles/TerraBallV.png b/Projectiles/Ranged/TerraBallV.png similarity index 100% rename from Projectiles/TerraBallV.png rename to Projectiles/Ranged/TerraBallV.png diff --git a/Projectiles/TerraBallY.cs b/Projectiles/Ranged/TerraBallY.cs similarity index 95% rename from Projectiles/TerraBallY.cs rename to Projectiles/Ranged/TerraBallY.cs index 9656d50183..f5b935f73f 100644 --- a/Projectiles/TerraBallY.cs +++ b/Projectiles/Ranged/TerraBallY.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBallY : ModProjectile { diff --git a/Projectiles/TerraBallY.png b/Projectiles/Ranged/TerraBallY.png similarity index 100% rename from Projectiles/TerraBallY.png rename to Projectiles/Ranged/TerraBallY.png diff --git a/Projectiles/TerraBullet.cs b/Projectiles/Ranged/TerraBullet.cs similarity index 94% rename from Projectiles/TerraBullet.cs rename to Projectiles/Ranged/TerraBullet.cs index 088095199d..1d2c26d4c1 100644 --- a/Projectiles/TerraBullet.cs +++ b/Projectiles/Ranged/TerraBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBullet : ModProjectile { @@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("TerraBulletSplit"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("TerraBulletSplit"), (int)((double)projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f); } } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 118); diff --git a/Projectiles/TerraBullet.png b/Projectiles/Ranged/TerraBullet.png similarity index 100% rename from Projectiles/TerraBullet.png rename to Projectiles/Ranged/TerraBullet.png diff --git a/Projectiles/TerraBulletSplit.cs b/Projectiles/Ranged/TerraBulletSplit.cs similarity index 96% rename from Projectiles/TerraBulletSplit.cs rename to Projectiles/Ranged/TerraBulletSplit.cs index f4cd9802da..c1a2b5b56d 100644 --- a/Projectiles/TerraBulletSplit.cs +++ b/Projectiles/Ranged/TerraBulletSplit.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraBulletSplit : ModProjectile { diff --git a/Projectiles/TerraBulletSplit.png b/Projectiles/Ranged/TerraBulletSplit.png similarity index 100% rename from Projectiles/TerraBulletSplit.png rename to Projectiles/Ranged/TerraBulletSplit.png diff --git a/Projectiles/TerraFireBlue.cs b/Projectiles/Ranged/TerraFireBlue.cs similarity index 95% rename from Projectiles/TerraFireBlue.cs rename to Projectiles/Ranged/TerraFireBlue.cs index 610abe2038..0133a78124 100644 --- a/Projectiles/TerraFireBlue.cs +++ b/Projectiles/Ranged/TerraFireBlue.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraFireBlue : ModProjectile { diff --git a/Projectiles/TerraFireBlue.png b/Projectiles/Ranged/TerraFireBlue.png similarity index 100% rename from Projectiles/TerraFireBlue.png rename to Projectiles/Ranged/TerraFireBlue.png diff --git a/Projectiles/TerraFireGreen.cs b/Projectiles/Ranged/TerraFireGreen.cs similarity index 95% rename from Projectiles/TerraFireGreen.cs rename to Projectiles/Ranged/TerraFireGreen.cs index a63780de14..62e04d8263 100644 --- a/Projectiles/TerraFireGreen.cs +++ b/Projectiles/Ranged/TerraFireGreen.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraFireGreen : ModProjectile { diff --git a/Projectiles/TerraFireGreen.png b/Projectiles/Ranged/TerraFireGreen.png similarity index 100% rename from Projectiles/TerraFireGreen.png rename to Projectiles/Ranged/TerraFireGreen.png diff --git a/Projectiles/TerraFireGreen2.cs b/Projectiles/Ranged/TerraFireGreen2.cs similarity index 95% rename from Projectiles/TerraFireGreen2.cs rename to Projectiles/Ranged/TerraFireGreen2.cs index 0f25f4cbf9..7d557567e4 100644 --- a/Projectiles/TerraFireGreen2.cs +++ b/Projectiles/Ranged/TerraFireGreen2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraFireGreen2 : ModProjectile { diff --git a/Projectiles/TerraFireGreen2.png b/Projectiles/Ranged/TerraFireGreen2.png similarity index 100% rename from Projectiles/TerraFireGreen2.png rename to Projectiles/Ranged/TerraFireGreen2.png diff --git a/Projectiles/TerraFireRed.cs b/Projectiles/Ranged/TerraFireRed.cs similarity index 95% rename from Projectiles/TerraFireRed.cs rename to Projectiles/Ranged/TerraFireRed.cs index 684958204b..8766fe0d9c 100644 --- a/Projectiles/TerraFireRed.cs +++ b/Projectiles/Ranged/TerraFireRed.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TerraFireRed : ModProjectile { diff --git a/Projectiles/TerraFireRed.png b/Projectiles/Ranged/TerraFireRed.png similarity index 100% rename from Projectiles/TerraFireRed.png rename to Projectiles/Ranged/TerraFireRed.png diff --git a/Projectiles/TitRail.cs b/Projectiles/Ranged/TitRail.cs similarity index 93% rename from Projectiles/TitRail.cs rename to Projectiles/Ranged/TitRail.cs index b5f25e9d98..cfe6d1e6fe 100644 --- a/Projectiles/TitRail.cs +++ b/Projectiles/Ranged/TitRail.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TitRail : ModProjectile { diff --git a/Projectiles/TitRail.png b/Projectiles/Ranged/TitRail.png similarity index 100% rename from Projectiles/TitRail.png rename to Projectiles/Ranged/TitRail.png diff --git a/Projectiles/TorrentialArrow.cs b/Projectiles/Ranged/TorrentialArrow.cs similarity index 96% rename from Projectiles/TorrentialArrow.cs rename to Projectiles/Ranged/TorrentialArrow.cs index a3fa331171..60afb5d785 100644 --- a/Projectiles/TorrentialArrow.cs +++ b/Projectiles/Ranged/TorrentialArrow.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TorrentialArrow : ModProjectile { diff --git a/Projectiles/TorrentialArrow.png b/Projectiles/Ranged/TorrentialArrow.png similarity index 100% rename from Projectiles/TorrentialArrow.png rename to Projectiles/Ranged/TorrentialArrow.png diff --git a/Projectiles/Triploon.cs b/Projectiles/Ranged/Triploon.cs similarity index 95% rename from Projectiles/Triploon.cs rename to Projectiles/Ranged/Triploon.cs index e1d4d3de61..c048ac7a55 100644 --- a/Projectiles/Triploon.cs +++ b/Projectiles/Ranged/Triploon.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Triploon : ModProjectile { diff --git a/Projectiles/Triploon.png b/Projectiles/Ranged/Triploon.png similarity index 100% rename from Projectiles/Triploon.png rename to Projectiles/Ranged/Triploon.png diff --git a/Projectiles/TyphoonArrow.cs b/Projectiles/Ranged/TyphoonArrow.cs similarity index 92% rename from Projectiles/TyphoonArrow.cs rename to Projectiles/Ranged/TyphoonArrow.cs index 0fd62866ab..52f076cc28 100644 --- a/Projectiles/TyphoonArrow.cs +++ b/Projectiles/Ranged/TyphoonArrow.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TyphoonArrow : ModProjectile { diff --git a/Projectiles/TyphoonArrow.png b/Projectiles/Ranged/TyphoonArrow.png similarity index 100% rename from Projectiles/TyphoonArrow.png rename to Projectiles/Ranged/TyphoonArrow.png diff --git a/Projectiles/TyphoonBubble.cs b/Projectiles/Ranged/TyphoonBubble.cs similarity index 96% rename from Projectiles/TyphoonBubble.cs rename to Projectiles/Ranged/TyphoonBubble.cs index d252243901..3564956b27 100644 --- a/Projectiles/TyphoonBubble.cs +++ b/Projectiles/Ranged/TyphoonBubble.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class TyphoonBubble : ModProjectile { diff --git a/Projectiles/TyphoonBubble.png b/Projectiles/Ranged/TyphoonBubble.png similarity index 100% rename from Projectiles/TyphoonBubble.png rename to Projectiles/Ranged/TyphoonBubble.png diff --git a/Projectiles/VanquisherArrow.cs b/Projectiles/Ranged/VanquisherArrow.cs similarity index 95% rename from Projectiles/VanquisherArrow.cs rename to Projectiles/Ranged/VanquisherArrow.cs index e8f4b68807..d4ca42568f 100644 --- a/Projectiles/VanquisherArrow.cs +++ b/Projectiles/Ranged/VanquisherArrow.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class VanquisherArrow : ModProjectile { diff --git a/Projectiles/VanquisherArrow.png b/Projectiles/Ranged/VanquisherArrow.png similarity index 100% rename from Projectiles/VanquisherArrow.png rename to Projectiles/Ranged/VanquisherArrow.png diff --git a/Projectiles/VeriumBullet.cs b/Projectiles/Ranged/VeriumBullet.cs similarity index 96% rename from Projectiles/VeriumBullet.cs rename to Projectiles/Ranged/VeriumBullet.cs index 9c0dfc27cc..857d7801d7 100644 --- a/Projectiles/VeriumBullet.cs +++ b/Projectiles/Ranged/VeriumBullet.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class VeriumBullet : ModProjectile { diff --git a/Projectiles/VeriumBullet.png b/Projectiles/Ranged/VeriumBullet.png similarity index 100% rename from Projectiles/VeriumBullet.png rename to Projectiles/Ranged/VeriumBullet.png diff --git a/Projectiles/Voidragon.cs b/Projectiles/Ranged/Voidragon.cs similarity index 96% rename from Projectiles/Voidragon.cs rename to Projectiles/Ranged/Voidragon.cs index 5bef2d24a3..0a7d3c917d 100644 --- a/Projectiles/Voidragon.cs +++ b/Projectiles/Ranged/Voidragon.cs @@ -7,7 +7,7 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class Voidragon : ModProjectile { diff --git a/Projectiles/Voidragon.png b/Projectiles/Ranged/Voidragon.png similarity index 100% rename from Projectiles/Voidragon.png rename to Projectiles/Ranged/Voidragon.png diff --git a/Projectiles/WaterSpout.cs b/Projectiles/Ranged/WaterSpout.cs similarity index 96% rename from Projectiles/WaterSpout.cs rename to Projectiles/Ranged/WaterSpout.cs index 11cabb0aa4..f52968e455 100644 --- a/Projectiles/WaterSpout.cs +++ b/Projectiles/Ranged/WaterSpout.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Ranged { public class WaterSpout : ModProjectile { diff --git a/Projectiles/WaterSpout.png b/Projectiles/Ranged/WaterSpout.png similarity index 100% rename from Projectiles/WaterSpout.png rename to Projectiles/Ranged/WaterSpout.png diff --git a/Projectiles/AccretionDisk.cs b/Projectiles/Rogue/AccretionDisk.cs similarity index 94% rename from Projectiles/AccretionDisk.cs rename to Projectiles/Rogue/AccretionDisk.cs index 29ad7dc533..c2a792b215 100644 --- a/Projectiles/AccretionDisk.cs +++ b/Projectiles/Rogue/AccretionDisk.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class AccretionDisk : ModProjectile { @@ -26,7 +26,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 3; projectile.timeLeft = 400; aiType = 52; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/AccretionDisk.png b/Projectiles/Rogue/AccretionDisk.png similarity index 100% rename from Projectiles/AccretionDisk.png rename to Projectiles/Rogue/AccretionDisk.png diff --git a/Projectiles/AccretionDisk2.cs b/Projectiles/Rogue/AccretionDisk2.cs similarity index 90% rename from Projectiles/AccretionDisk2.cs rename to Projectiles/Rogue/AccretionDisk2.cs index 0738d20a8c..efe6407241 100644 --- a/Projectiles/AccretionDisk2.cs +++ b/Projectiles/Rogue/AccretionDisk2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class AccretionDisk2 : ModProjectile { @@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 3; projectile.timeLeft = 60; aiType = 52; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/AccretionDisk2.png b/Projectiles/Rogue/AccretionDisk2.png similarity index 100% rename from Projectiles/AccretionDisk2.png rename to Projectiles/Rogue/AccretionDisk2.png diff --git a/Projectiles/AdamantiteThrowingAxeProjectile.cs b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs similarity index 85% rename from Projectiles/AdamantiteThrowingAxeProjectile.cs rename to Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs index a401bfb5b2..c62e09a596 100644 --- a/Projectiles/AdamantiteThrowingAxeProjectile.cs +++ b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class AdamantiteThrowingAxeProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 3; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void Kill(int timeLeft) { diff --git a/Projectiles/AdamantiteThrowingAxeProjectile.png b/Projectiles/Rogue/AdamantiteThrowingAxeProjectile.png similarity index 100% rename from Projectiles/AdamantiteThrowingAxeProjectile.png rename to Projectiles/Rogue/AdamantiteThrowingAxeProjectile.png diff --git a/Projectiles/BallisticPoisonBomb.cs b/Projectiles/Rogue/BallisticPoisonBomb.cs similarity index 96% rename from Projectiles/BallisticPoisonBomb.cs rename to Projectiles/Rogue/BallisticPoisonBomb.cs index 7fd108bd3b..4beed440ed 100644 --- a/Projectiles/BallisticPoisonBomb.cs +++ b/Projectiles/Rogue/BallisticPoisonBomb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class BallisticPoisonBomb : ModProjectile { @@ -22,7 +22,8 @@ namespace CalamityMod.Projectiles projectile.penetrate = -1; projectile.timeLeft = 200; projectile.tileCollide = false; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Rogue/BallisticPoisonBomb.png b/Projectiles/Rogue/BallisticPoisonBomb.png new file mode 100644 index 0000000000000000000000000000000000000000..41cbdb094980536de8747a6fc20b8336a8006ebc GIT binary patch literal 431 zcmV;g0Z{&lP)N0S6=)s(n0TJ-{2)govWxNy^3Xw`dZSJ9%{3AKm`+7$Kz zg0vVBVQdN$=eDq;-m6m)-sssq_nzO6FV8tVK@UB;e>49n&G~T9+_?7;lzJ`vTlM$) z(OUTi#wLeS=(M*3l&dG=kralK;Q%ilEdC?HT2co~%b&odl?1$6ZGrC3iK}xH0j|x| zVz!|W!Vrm~M#e_LdTT9zs~Mf2J{@2*83a@HioyvqMAvWM0*%WT!ScKJVCl(I@U`>h z(5^xV`^%Lo=xnx+B#X-XJn6}S0mTq@Hrpx8&R+p(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Rogue/BallisticPoisonBombSpike.png b/Projectiles/Rogue/BallisticPoisonBombSpike.png new file mode 100644 index 0000000000000000000000000000000000000000..586b8e66393a8918c852a84dd73155c7bd0df804 GIT binary patch literal 275 zcmV+u0qp*XP)DGmR$)Ei-2HZ5Cp-(!b5n7w1Nlm0I97#gouR@v5AET5JZBAVZlUM zi|hm<7H-zBnZJ+6FcYP53mohup#M0`i*;12!ID2F3LE`6QeY4<#5{Go9=9Vg5iA~T#Wi9?-(YXlXY;_`vA#) zHa)nup!hSL!?>b2xP1k8Yj5CKd#+es4DY582bb>^#gK=Wr@67TIQ#36W~~vy^VeuG Z@f(YFG%#C*MDG9q002ovPDHLkV1gJpb=Lp@ literal 0 HcmV?d00001 diff --git a/Projectiles/BrackishFlask.cs b/Projectiles/Rogue/BrackishFlask.cs similarity index 92% rename from Projectiles/BrackishFlask.cs rename to Projectiles/Rogue/BrackishFlask.cs index e1136599cd..e4d1189106 100644 --- a/Projectiles/BrackishFlask.cs +++ b/Projectiles/Rogue/BrackishFlask.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class BrackishFlask : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 180; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void Kill(int timeLeft) { diff --git a/Projectiles/BrackishFlask.png b/Projectiles/Rogue/BrackishFlask.png similarity index 100% rename from Projectiles/BrackishFlask.png rename to Projectiles/Rogue/BrackishFlask.png diff --git a/Projectiles/BrackishWater.cs b/Projectiles/Rogue/BrackishWater.cs similarity index 91% rename from Projectiles/BrackishWater.cs rename to Projectiles/Rogue/BrackishWater.cs index da20b36c35..1a60c3d66e 100644 --- a/Projectiles/BrackishWater.cs +++ b/Projectiles/Rogue/BrackishWater.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class BrackishWater : ModProjectile { @@ -22,7 +22,8 @@ namespace CalamityMod.Projectiles projectile.ignoreWater = true; projectile.penetrate = 1; projectile.timeLeft = 60; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/BrackishWater.png b/Projectiles/Rogue/BrackishWater.png similarity index 100% rename from Projectiles/BrackishWater.png rename to Projectiles/Rogue/BrackishWater.png diff --git a/Projectiles/BrackishWaterBlast.cs b/Projectiles/Rogue/BrackishWaterBlast.cs similarity index 93% rename from Projectiles/BrackishWaterBlast.cs rename to Projectiles/Rogue/BrackishWaterBlast.cs index 3ea4831deb..794d6d88bb 100644 --- a/Projectiles/BrackishWaterBlast.cs +++ b/Projectiles/Rogue/BrackishWaterBlast.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class BrackishWaterBlast : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.tileCollide = false; projectile.penetrate = -1; projectile.timeLeft = 60; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/BrackishWaterBlast.png b/Projectiles/Rogue/BrackishWaterBlast.png similarity index 100% rename from Projectiles/BrackishWaterBlast.png rename to Projectiles/Rogue/BrackishWaterBlast.png diff --git a/Projectiles/Brimblade.cs b/Projectiles/Rogue/Brimblade.cs similarity index 90% rename from Projectiles/Brimblade.cs rename to Projectiles/Rogue/Brimblade.cs index ff10497229..075e3acc16 100644 --- a/Projectiles/Brimblade.cs +++ b/Projectiles/Rogue/Brimblade.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Brimblade : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 3; projectile.timeLeft = 300; aiType = 52; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { diff --git a/Projectiles/Brimblade.png b/Projectiles/Rogue/Brimblade.png similarity index 100% rename from Projectiles/Brimblade.png rename to Projectiles/Rogue/Brimblade.png diff --git a/Projectiles/Brimblade2.cs b/Projectiles/Rogue/Brimblade2.cs similarity index 86% rename from Projectiles/Brimblade2.cs rename to Projectiles/Rogue/Brimblade2.cs index b553f77540..574928974e 100644 --- a/Projectiles/Brimblade2.cs +++ b/Projectiles/Rogue/Brimblade2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Brimblade2 : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 3; projectile.timeLeft = 300; aiType = 52; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { diff --git a/Projectiles/Brimblade2.png b/Projectiles/Rogue/Brimblade2.png similarity index 100% rename from Projectiles/Brimblade2.png rename to Projectiles/Rogue/Brimblade2.png diff --git a/Projectiles/Celestus.cs b/Projectiles/Rogue/Celestus.cs similarity index 95% rename from Projectiles/Celestus.cs rename to Projectiles/Rogue/Celestus.cs index 8c7ee0208a..b8a4c513df 100644 --- a/Projectiles/Celestus.cs +++ b/Projectiles/Rogue/Celestus.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Celestus : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.extraUpdates = 3; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 30; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Rogue/Celestus.png b/Projectiles/Rogue/Celestus.png new file mode 100644 index 0000000000000000000000000000000000000000..cc5385f89fb38635a313472c954cbf8c164ec6ec GIT binary patch literal 3380 zcmX9>c|6qH8~$3#q`0yqO9*2bYsHjZjAh1_eVuVF*%fYMP1}tcyD_%Ll6}TDj11Xt zVJyiKV~kJ~MYe=c{7k<;&N=_QpXc+O_j%vvJqL5c(u9jsm=gd1F1RVo=J*UaUMSGX z<9%@8p&|gBIe^2i+ePNB<_Ct@PY6)&Kau7!eV`Arl0U^O50Z~(I2n~03e8UV8kvTN~6Ja^R7V zR*6{>TN|?A)L8u0Df%{M&f|zoLj|tJinip)e41s~p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@lrtRP5CnrYn}Qf`E%yZ8(njulzqnm1aXCGQ_1I94SjMTAAu=Zd(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Celestus2.png b/Projectiles/Rogue/Celestus2.png similarity index 100% rename from Projectiles/Celestus2.png rename to Projectiles/Rogue/Celestus2.png diff --git a/Projectiles/CobaltKunaiProjectile.cs b/Projectiles/Rogue/CobaltKunaiProjectile.cs similarity index 89% rename from Projectiles/CobaltKunaiProjectile.cs rename to Projectiles/Rogue/CobaltKunaiProjectile.cs index f48aa4ac3d..d689b81cca 100644 --- a/Projectiles/CobaltKunaiProjectile.cs +++ b/Projectiles/Rogue/CobaltKunaiProjectile.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class CobaltKunaiProjectile : ModProjectile { @@ -22,7 +22,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/CobaltKunaiProjectile.png b/Projectiles/Rogue/CobaltKunaiProjectile.png similarity index 100% rename from Projectiles/CobaltKunaiProjectile.png rename to Projectiles/Rogue/CobaltKunaiProjectile.png diff --git a/Projectiles/CosmicKunai.cs b/Projectiles/Rogue/CosmicKunai.cs similarity index 92% rename from Projectiles/CosmicKunai.cs rename to Projectiles/Rogue/CosmicKunai.cs index 9313b7cdb9..d1b6ea6fa8 100644 --- a/Projectiles/CosmicKunai.cs +++ b/Projectiles/Rogue/CosmicKunai.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class CosmicKunai : ModProjectile { @@ -20,7 +20,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.tileCollide = false; projectile.penetrate = 1; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/CosmicKunai.png b/Projectiles/Rogue/CosmicKunai.png similarity index 100% rename from Projectiles/CosmicKunai.png rename to Projectiles/Rogue/CosmicKunai.png diff --git a/Projectiles/Crushax.cs b/Projectiles/Rogue/Crushax.cs similarity index 91% rename from Projectiles/Crushax.cs rename to Projectiles/Rogue/Crushax.cs index 12713dd5e1..91b4550779 100644 --- a/Projectiles/Crushax.cs +++ b/Projectiles/Rogue/Crushax.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Crushax : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 300; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/Crushax.png b/Projectiles/Rogue/Crushax.png similarity index 100% rename from Projectiles/Crushax.png rename to Projectiles/Rogue/Crushax.png diff --git a/Projectiles/CrystalPiercerProjectile.cs b/Projectiles/Rogue/CrystalPiercerProjectile.cs similarity index 92% rename from Projectiles/CrystalPiercerProjectile.cs rename to Projectiles/Rogue/CrystalPiercerProjectile.cs index c30f4fc56f..3b655996c3 100644 --- a/Projectiles/CrystalPiercerProjectile.cs +++ b/Projectiles/Rogue/CrystalPiercerProjectile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class CrystalPiercerProjectile : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; projectile.timeLeft = 600; aiType = 598; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/CrystalPiercerProjectile.png b/Projectiles/Rogue/CrystalPiercerProjectile.png similarity index 100% rename from Projectiles/CrystalPiercerProjectile.png rename to Projectiles/Rogue/CrystalPiercerProjectile.png diff --git a/Projectiles/Crystalline.cs b/Projectiles/Rogue/Crystalline.cs similarity index 92% rename from Projectiles/Crystalline.cs rename to Projectiles/Rogue/Crystalline.cs index d6d227f7fd..5b2330badb 100644 --- a/Projectiles/Crystalline.cs +++ b/Projectiles/Rogue/Crystalline.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Crystalline : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; projectile.timeLeft = 120; aiType = 598; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Rogue/Crystalline.png b/Projectiles/Rogue/Crystalline.png new file mode 100644 index 0000000000000000000000000000000000000000..70e714e1c8ca4699a7620ca80df08e7b330f7dde GIT binary patch literal 946 zcmV;j15NyiP)BWa-c;GKhkxLx)Zt zf(|93fkI^jLXjyM^l2%5DSox4wjJJmSl`jzf;M5=p3BVa>^t-BZ=U!0|997^EUt@_ zMxjWd128i+0YGf@lXd=H@2zyhGp;3zdbbS7r=2~`QR_r^v_rdbfT7+FTyp-_q|(W| zgrx(aL9;!#8GtiwIRKPJs{y#ZKMFu_?OFgTsRI_z%bp|bC?!@GR|C+LAbVqc4UiK37* z`r|;-v-J&+fh1W~LZyqOaeYk};*jh`G9}Lub}EbOtQS#6t#AZG_03-c9z@K~BbA)~FPpsZR6-+sMdwAd*Iv~$T`!jilx$+LO_B7dr+#cZ3$ z0NA_I4?tN>0D#aob9}7ft2LLbBn+g^XL(noFYYrvhX@8rj#}4=J-Y-z=UGGkL&VJC z;qz%An+Url;-N?(0KRYtfRX+li}>WTW&p0VoCe@l<$3Emca~3B$N9?~2jJ?H2fsBB z&k>&YtvQwERm22wRj{GnjyS-jnN8d(NF-Hvqt9J$+PCNOQ79p1VffcM`Q{vk@< z{&xwxCF1H0@)Es4Sh7Z6Fass;r(PylDSZ>@KR%u7$dwV50-@^zB$2Ah*zvt=O~^fcCa)04xpW zI`E%xYRw^RX$n*MeuVP@$jdRF{xbN=B0lljc>F)%Kb6v8Y0!|Lot&^d?>WLh0fgQ} Uk*wHfDF6Tf07*qoM6N<$f@5aGcmMzZ literal 0 HcmV?d00001 diff --git a/Projectiles/Crystalline2.cs b/Projectiles/Rogue/Crystalline2.cs similarity index 90% rename from Projectiles/Crystalline2.cs rename to Projectiles/Rogue/Crystalline2.cs index 831ed2c509..0edc49924a 100644 --- a/Projectiles/Crystalline2.cs +++ b/Projectiles/Rogue/Crystalline2.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Crystalline2 : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; projectile.timeLeft = 30; aiType = 598; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Rogue/Crystalline2.png b/Projectiles/Rogue/Crystalline2.png new file mode 100644 index 0000000000000000000000000000000000000000..70e714e1c8ca4699a7620ca80df08e7b330f7dde GIT binary patch literal 946 zcmV;j15NyiP)BWa-c;GKhkxLx)Zt zf(|93fkI^jLXjyM^l2%5DSox4wjJJmSl`jzf;M5=p3BVa>^t-BZ=U!0|997^EUt@_ zMxjWd128i+0YGf@lXd=H@2zyhGp;3zdbbS7r=2~`QR_r^v_rdbfT7+FTyp-_q|(W| zgrx(aL9;!#8GtiwIRKPJs{y#ZKMFu_?OFgTsRI_z%bp|bC?!@GR|C+LAbVqc4UiK37* z`r|;-v-J&+fh1W~LZyqOaeYk};*jh`G9}Lub}EbOtQS#6t#AZG_03-c9z@K~BbA)~FPpsZR6-+sMdwAd*Iv~$T`!jilx$+LO_B7dr+#cZ3$ z0NA_I4?tN>0D#aob9}7ft2LLbBn+g^XL(noFYYrvhX@8rj#}4=J-Y-z=UGGkL&VJC z;qz%An+Url;-N?(0KRYtfRX+li}>WTW&p0VoCe@l<$3Emca~3B$N9?~2jJ?H2fsBB z&k>&YtvQwERm22wRj{GnjyS-jnN8d(NF-Hvqt9J$+PCNOQ79p1VffcM`Q{vk@< z{&xwxCF1H0@)Es4Sh7Z6Fass;r(PylDSZ>@KR%u7$dwV50-@^zB$2Ah*zvt=O~^fcCa)04xpW zI`E%xYRw^RX$n*MeuVP@$jdRF{xbN=B0lljc>F)%Kb6v8Y0!|Lot&^d?>WLh0fgQ} Uk*wHfDF6Tf07*qoM6N<$f@5aGcmMzZ literal 0 HcmV?d00001 diff --git a/Projectiles/CursedDagger.cs b/Projectiles/Rogue/CursedDagger.cs similarity index 88% rename from Projectiles/CursedDagger.cs rename to Projectiles/Rogue/CursedDagger.cs index 510f10669e..cf6e272ab8 100644 --- a/Projectiles/CursedDagger.cs +++ b/Projectiles/Rogue/CursedDagger.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class CursedDagger : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/CursedDagger.png b/Projectiles/Rogue/CursedDagger.png similarity index 100% rename from Projectiles/CursedDagger.png rename to Projectiles/Rogue/CursedDagger.png diff --git a/Projectiles/DuststormCloud.cs b/Projectiles/Rogue/DuststormCloud.cs similarity index 91% rename from Projectiles/DuststormCloud.cs rename to Projectiles/Rogue/DuststormCloud.cs index 5ffe9b587d..31633161cd 100644 --- a/Projectiles/DuststormCloud.cs +++ b/Projectiles/Rogue/DuststormCloud.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class DuststormCloud : ModProjectile { @@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles projectile.tileCollide = false; projectile.ignoreWater = true; projectile.timeLeft = 3600; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/DuststormCloud.png b/Projectiles/Rogue/DuststormCloud.png similarity index 100% rename from Projectiles/DuststormCloud.png rename to Projectiles/Rogue/DuststormCloud.png diff --git a/Projectiles/DuststormInABottle.cs b/Projectiles/Rogue/DuststormInABottle.cs similarity index 90% rename from Projectiles/DuststormInABottle.cs rename to Projectiles/Rogue/DuststormInABottle.cs index a69dff68fc..a8ec780f1a 100644 --- a/Projectiles/DuststormInABottle.cs +++ b/Projectiles/Rogue/DuststormInABottle.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class DuststormInABottle : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 180; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void Kill(int timeLeft) { diff --git a/Projectiles/DuststormInABottle.png b/Projectiles/Rogue/DuststormInABottle.png similarity index 100% rename from Projectiles/DuststormInABottle.png rename to Projectiles/Rogue/DuststormInABottle.png diff --git a/Projectiles/EmpyreanKnives.cs b/Projectiles/Rogue/EmpyreanKnives.cs similarity index 93% rename from Projectiles/EmpyreanKnives.cs rename to Projectiles/Rogue/EmpyreanKnives.cs index e24e904e40..c8020b529c 100644 --- a/Projectiles/EmpyreanKnives.cs +++ b/Projectiles/Rogue/EmpyreanKnives.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class EmpyreanKnives : ModProjectile { @@ -32,7 +32,8 @@ namespace CalamityMod.Projectiles if (projectile.ai[1] == 1f) { projectile.melee = false; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } projectile.ai[0] += 1f; if (projectile.ai[0] >= 75f) { @@ -139,7 +140,7 @@ namespace CalamityMod.Projectiles { return; } - Main.player[Main.myPlayer].lifeSteal -= num * 2f; + Main.player[Main.myPlayer].lifeSteal -= num * 1.5f; int num2 = projectile.owner; Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, 305, 0, 0f, projectile.owner, (float)num2, num); } diff --git a/Projectiles/EmpyreanKnives.png b/Projectiles/Rogue/EmpyreanKnives.png similarity index 100% rename from Projectiles/EmpyreanKnives.png rename to Projectiles/Rogue/EmpyreanKnives.png diff --git a/Projectiles/EradicatorProjectile.cs b/Projectiles/Rogue/EradicatorProjectile.cs similarity index 81% rename from Projectiles/EradicatorProjectile.cs rename to Projectiles/Rogue/EradicatorProjectile.cs index b4dfa2a449..496e898f0e 100644 --- a/Projectiles/EradicatorProjectile.cs +++ b/Projectiles/Rogue/EradicatorProjectile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class EradicatorProjectile : ModProjectile { @@ -27,7 +27,8 @@ namespace CalamityMod.Projectiles aiType = 52; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 3; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { @@ -77,12 +78,9 @@ namespace CalamityMod.Projectiles { if (projectile.owner == Main.myPlayer) { - int laser = Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("NebulaShot"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - Main.projectile[laser].ranged = false; - Main.projectile[laser].thrown = true; + Projectile.NewProjectile(value10.X, value10.Y, num438, num439, mod.ProjectileType("NebulaShot"), projectile.damage, projectile.knockBack, projectile.owner, 2f, 0f); } } - return; } } } @@ -93,5 +91,11 @@ namespace CalamityMod.Projectiles spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); return false; } - } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 origin = new Vector2(31f, 29f); + spriteBatch.Draw(mod.GetTexture("Projectiles/Rogue/EradicatorProjectileGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); + } + } } \ No newline at end of file diff --git a/Projectiles/Rogue/EradicatorProjectile.png b/Projectiles/Rogue/EradicatorProjectile.png new file mode 100644 index 0000000000000000000000000000000000000000..e028ca0e83772ee36bc93200fcf9e0282489ca1b GIT binary patch literal 1791 zcmVe)#>839un+#*pmqtf>UxnFpsC03H4w0It{F z0-(fy9e}qFtcl3(h#@`A|3F5h9dyE^C=(@BEjF?-PsZMr2h`R3lOisjuqelR0CoGY zJ-{PAn0hvz1fa4#0KlQ9t6>q=34KxX-GKLbJ?jO+vFm1k)!cLgAm>H`0I}N_JNEO4 zyGclg$aHEKF45s?Fpm%qFwzYJz-&~HtCRPL>l%!-8{yv8OLynVEX9nUHsEzP4-oQb zf1{B1i0cX=9ueuK&%On~;>?_3J=n?GDgcW2?XaDX)B{A7?EwSeP}5bwBi>)5lE|57q&&ZR;jmf44E^&4TxV zAo;$PUQ)6F9`XJ<{?ac1l=!ck0Apj~41l`M4giwl)aY5&dd}LO2cX)2e&8F990S0( zlym^vu2$Q|5Fxp7-FrZP575caobxaM6LRx_;FutGPOaQ*>tE7(J-UgzE`%k^!Safm zy|)3V45;ll#V<#6qx{M905H2d0cg8gZL=?)ke)aWfNfhhnE*>`)hzMc8!LgJ2grFD z8-6}`!12Bk+Y;;I!5(opMOxX=C8RS7@&TwXtI*f_20(e;aUkdsDN|+`0LA-u*xCzu zAuaR$#qz^Ia5R^7hHN)vZML?GyhmKu-6EYjU6B#eYj$n{VDE-4j{PbcPOJXb@wn6} zHuCz4@Y?yaj&@`PC&cww_lS#x)KDd(bK=BF05sQCnE=aQSwCQVxBK5QZ`+O~rrmOZ z(#9eKU}5?)6Z(^vSdU)f54`xP?L^Db-LmUgX%UU~sp@7|pvBfsM&+CBDjycokFK2$ zz^`AQ0)i{6u?foQ^1J(anh6kSxn{G|SZc+zMO;>FGO9Op{v-X3P&-0i6ura;Yascx zNJi1>h6@(y79coU=jBayv?HXaE}00xGFAgnxM!CMkT`L&0nppi4FpMxT~TA{1>3R2 z`U%T}{C89pxU{hdfb5hd20&%twpA5Y{i2$<3D6T4V*n)jW~&Q{J+}E%vY;ncDN-`J ziU<6;yBvVa`F$}4K;fQUw&Ug4V;<{R$oI9gV*2t4W$$uDGXOExb$xWto;(YHi{*z+ zfEu6A0Jw7b7yxT?A2R@U)>KCMTD|Fh6_eRtmYV=wxeE+{8!d`peBvYnLStH~FDtT$ z-?wg#&9JP@d?^zQfSA~kKqy&7RARorC)joNY=g~ib%ToaYZhr4-9z$nd0qpcwfiAL zkE55k>;z_ymt7Mee%yRTKA>uEz0Iof;kI&;Skz-$MrTpd)GPy_X#W8df}^`W&ll}i z`L$b3ZDeZ{H3u*Bf@r<^By}hU_&?38Gz46tvO^>*c*2%|b%{Ku$Yfn2GkXSDkJ7ZMM zEPx^|q(wS8k&sTEo?`$s*Ht<8zgzN%%X}VZ{evB19tg&?NUEOi@(B>Ej?SDl*A{zj zdPtyZ0{yL%M|_b?K_U=qnCKvF|{HR;(Dx0elBZuy}Fr!BJM_hYUUhU z-8>}5Z5}aH(vL4t9utVDS2PoE&lqc~ROqoTlGv6v7Wzs_f72o4x9{F+LjTb`aZQ_h!^)~_cyxUD4@o=SkKwhS*v85)B2B2(zmCX|(m5?oX%BsEjy8t*_ hdjl9cVO>#6{9i(e_2}kG>RA8)002ovPDHLkV1lq?XORE^ literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/EradicatorProjectileGlow.png b/Projectiles/Rogue/EradicatorProjectileGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..152b9ce5ae0586fe19d1d41d25d347115501e74f GIT binary patch literal 1381 zcmV-r1)BPaP)QMupowu(3WB=Ub7Ywjl^4G+oWFF)E8?|lfG!8zWLyjPd@mjCan)f zBe8vH(?;z>L*lhfo0LklS{e&TK?(%9v&(I_9UsmfmO0Ka%mSr4`+pkF%zWp}{=UmO zGY7#c_0gWA05lYZ00`CO0FYml1;EK4|1tpH*t|6*`-ghE0NDHZT>@ZcA`ZYqo) z6Jr3pb?PNob~92M&Hq5c?F~9%N~DRl?okuj%xAOKWPrMEd?Se~PiUx33_y0jVh>0Y zcT)V#3jlOQBLK7x53Pu>PH6AGY5`DHm2bMPzkddRlPCIId5&&>=Y!<}pmxd+K-R~N zmiMKJ+ewjLBE#xBooHo7E&!dK(|~gpwyO?xbpZgb-<$)SJwkbaC>H|27?i`+$)}0y zaw5H$Rf|F<8>!Y+C%LUAiagpgD)MRKx|R^PBwg&w769Y11=D?NP1;T?^#G-=XhZ7?SmOJhq@`ch|GP)yS?Y)cOkqz@eTl6L~f7P&vu7 z#BC{^fB7^3Z4+Y#Kp<1bbnmR3VTH1-o#m7E50>xHmj^(wq+IsXe!|^|9i+#8LvhID znQh}^Y2ubrznrcMW0Lrn=MK8+sJ`N%x~0-r7WN>W)TCv979; zXNfy5npazw73u15JpiXq9ko1vx%WH(Mr;;;RA?o;NfjXKW41?c;?XqK=Qr0dW))O=Tu4W ze)v5AA}+`0UE(Lvd{jVCCTJo%bs``ncL zK7Yd}8D_?A8URb4%TnGYt`78A_xDYkVqIm;wVJuP{Yu)DJTz6AcrY7)!rw*#`19bs z0OX9!E^E)b#8oU$ZZEcs^|G@A20+;Zr2-&a{TYzV0UI!P7Xa~m>8x2ZaRZX1mF7$H zmNnv8;)|JY+u>vSIRoJRr)mIr_q$#onG2K$^i0Sdi|ge9Dz`+d1EzMBgOq13ktv)1 z@%oFFcGJX_6#4tg(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/ExecutionersBlade.png b/Projectiles/Rogue/ExecutionersBlade.png similarity index 100% rename from Projectiles/ExecutionersBlade.png rename to Projectiles/Rogue/ExecutionersBlade.png diff --git a/Projectiles/FeatherKnifeProjectile.cs b/Projectiles/Rogue/FeatherKnifeProjectile.cs similarity index 91% rename from Projectiles/FeatherKnifeProjectile.cs rename to Projectiles/Rogue/FeatherKnifeProjectile.cs index 4ba2548a2f..85463c0700 100644 --- a/Projectiles/FeatherKnifeProjectile.cs +++ b/Projectiles/Rogue/FeatherKnifeProjectile.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class FeatherKnifeProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/FeatherKnifeProjectile.png b/Projectiles/Rogue/FeatherKnifeProjectile.png similarity index 100% rename from Projectiles/FeatherKnifeProjectile.png rename to Projectiles/Rogue/FeatherKnifeProjectile.png diff --git a/Projectiles/FlameScytheProjectile.cs b/Projectiles/Rogue/FlameScytheProjectile.cs similarity index 90% rename from Projectiles/FlameScytheProjectile.cs rename to Projectiles/Rogue/FlameScytheProjectile.cs index d4e114666d..f9483df47f 100644 --- a/Projectiles/FlameScytheProjectile.cs +++ b/Projectiles/Rogue/FlameScytheProjectile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class FlameScytheProjectile : ModProjectile { @@ -17,8 +17,8 @@ namespace CalamityMod.Projectiles public override void SetDefaults() { - projectile.width = 30; - projectile.height = 30; + projectile.width = 50; + projectile.height = 50; projectile.friendly = true; projectile.penetrate = -1; projectile.aiStyle = 3; @@ -26,7 +26,8 @@ namespace CalamityMod.Projectiles projectile.timeLeft = 600; projectile.alpha = 55; aiType = 52; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Rogue/FlameScytheProjectile.png b/Projectiles/Rogue/FlameScytheProjectile.png new file mode 100644 index 0000000000000000000000000000000000000000..d6577c12b47cf583cb6d087e8436056aec7fc2f5 GIT binary patch literal 1032 zcmV+j1o!)iP)Dnf}~ z(1Z$#YEnfbY^&{Vx4RvOH@|M**x9lDw`)4z%gnr)_vY<>_V?%g-Wn{in&La<)XaCk zp|aWl7)Xu-&^!EgPVcFhQ?LI(!BS7)YI_R+-R}|rbPV>JkRyjhxL9&NvBlD*?oR+* zJJ+TfuB(HPtBr&WfX4NW0Awnrwf+M`{dvdri7m9Efsg_4VSK~{ICZfLa3+@tPTPkt z3XShsVg*0-VoKs!Wkmph}d zHL-O7>}uNwXv7N2CpKR-)Nj_VlV)0-WW$t1biD?IMr_0XaGF9ch|IzKrUX{ZR^!Tl|vqn ztOlUR8mDn(H2@!ftCjZlgB#QhpV$J)p3{ZG5d&ZhPIk0CZly4Z!B4a(1oF zF{`JtRmu9rw(RnW%~#?TLm?H1gjD^e-N4_Z;$Mfg{!T0H8QZeSCpK68MQUo&gq#-? z?4y-T$GTE$pv8n2bZu?-; zKC2F?k#mwy%q}NV;{C*?LLo&eJ*8?J1K;ykZrx-j=O&++=wC@itPCPGF$y@>*cVI7 zmze!Govl#cMY2puiIyKRA=OZ+szC$EaT6erRu$NqT0NsE7gD0-L(GZP$&LDM$(3&^ zu1K6J7g8ec6DyWfV`QZP@GH9 zWm_z2fR~9mk$U>;Cji5BajnBpdO|&4BAe<(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation += projectile.velocity.Y; + projectile.velocity.Y *= 1.05f; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("ArmorCrunch"), 60); + } + + public override void Kill(int timeLeft) + { + for (int i = 0; i <= 2; i++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 32, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } } \ No newline at end of file diff --git a/Projectiles/FossilShardThrown.png b/Projectiles/Rogue/FossilShardThrown.png similarity index 100% rename from Projectiles/FossilShardThrown.png rename to Projectiles/Rogue/FossilShardThrown.png diff --git a/Projectiles/GelDartProjectile.cs b/Projectiles/Rogue/GelDartProjectile.cs similarity index 90% rename from Projectiles/GelDartProjectile.cs rename to Projectiles/Rogue/GelDartProjectile.cs index 72102e3a45..c9b0a2da3e 100644 --- a/Projectiles/GelDartProjectile.cs +++ b/Projectiles/Rogue/GelDartProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class GelDartProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/GelDartProjectile.png b/Projectiles/Rogue/GelDartProjectile.png similarity index 100% rename from Projectiles/GelDartProjectile.png rename to Projectiles/Rogue/GelDartProjectile.png diff --git a/Projectiles/GhoulishGouger.cs b/Projectiles/Rogue/GhoulishGouger.cs similarity index 93% rename from Projectiles/GhoulishGouger.cs rename to Projectiles/Rogue/GhoulishGouger.cs index 7443140f34..696c8798cb 100644 --- a/Projectiles/GhoulishGouger.cs +++ b/Projectiles/Rogue/GhoulishGouger.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class GhoulishGouger : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.extraUpdates = 4; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 2; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/GhoulishGouger.png b/Projectiles/Rogue/GhoulishGouger.png similarity index 100% rename from Projectiles/GhoulishGouger.png rename to Projectiles/Rogue/GhoulishGouger.png diff --git a/Projectiles/IceStarProjectile.cs b/Projectiles/Rogue/IceStarProjectile.cs similarity index 93% rename from Projectiles/IceStarProjectile.cs rename to Projectiles/Rogue/IceStarProjectile.cs index 044ff93308..8bcbfc3c8a 100644 --- a/Projectiles/IceStarProjectile.cs +++ b/Projectiles/Rogue/IceStarProjectile.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class IceStarProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 280; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/IceStarProjectile.png b/Projectiles/Rogue/IceStarProjectile.png similarity index 100% rename from Projectiles/IceStarProjectile.png rename to Projectiles/Rogue/IceStarProjectile.png diff --git a/Projectiles/IchorSpear.cs b/Projectiles/Rogue/IchorSpear.cs similarity index 91% rename from Projectiles/IchorSpear.cs rename to Projectiles/Rogue/IchorSpear.cs index 95d7ecf98d..344046e529 100644 --- a/Projectiles/IchorSpear.cs +++ b/Projectiles/Rogue/IchorSpear.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class IchorSpear : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; projectile.timeLeft = 600; aiType = 598; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/IchorSpear.png b/Projectiles/Rogue/IchorSpear.png similarity index 100% rename from Projectiles/IchorSpear.png rename to Projectiles/Rogue/IchorSpear.png diff --git a/Projectiles/Lionfish.cs b/Projectiles/Rogue/Lionfish.cs similarity index 96% rename from Projectiles/Lionfish.cs rename to Projectiles/Rogue/Lionfish.cs index 12c5536007..820f1a2e3c 100644 --- a/Projectiles/Lionfish.cs +++ b/Projectiles/Rogue/Lionfish.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Lionfish : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.ignoreWater = true; projectile.penetrate = -1; projectile.alpha = 255; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Lionfish.png b/Projectiles/Rogue/Lionfish.png similarity index 100% rename from Projectiles/Lionfish.png rename to Projectiles/Rogue/Lionfish.png diff --git a/Projectiles/Malachite.cs b/Projectiles/Rogue/Malachite.cs similarity index 94% rename from Projectiles/Malachite.cs rename to Projectiles/Rogue/Malachite.cs index 4e65c98c3a..5870878362 100644 --- a/Projectiles/Malachite.cs +++ b/Projectiles/Rogue/Malachite.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Malachite : ModProjectile { @@ -29,7 +29,8 @@ namespace CalamityMod.Projectiles aiType = 514; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 1; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Malachite.png b/Projectiles/Rogue/Malachite.png similarity index 100% rename from Projectiles/Malachite.png rename to Projectiles/Rogue/Malachite.png diff --git a/Projectiles/MalachiteBolt.cs b/Projectiles/Rogue/MalachiteBolt.cs similarity index 95% rename from Projectiles/MalachiteBolt.cs rename to Projectiles/Rogue/MalachiteBolt.cs index c00e4f2b3b..42e91d058b 100644 --- a/Projectiles/MalachiteBolt.cs +++ b/Projectiles/Rogue/MalachiteBolt.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class MalachiteBolt : ModProjectile { @@ -27,7 +27,8 @@ namespace CalamityMod.Projectiles projectile.extraUpdates = 10; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/MalachiteBolt.png b/Projectiles/Rogue/MalachiteBolt.png similarity index 100% rename from Projectiles/MalachiteBolt.png rename to Projectiles/Rogue/MalachiteBolt.png diff --git a/Projectiles/MangroveChakramProjectile.cs b/Projectiles/Rogue/MangroveChakramProjectile.cs similarity index 91% rename from Projectiles/MangroveChakramProjectile.cs rename to Projectiles/Rogue/MangroveChakramProjectile.cs index 6bbc85d7e6..474c6420e0 100644 --- a/Projectiles/MangroveChakramProjectile.cs +++ b/Projectiles/Rogue/MangroveChakramProjectile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class MangroveChakramProjectile : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 3; projectile.timeLeft = 600; aiType = 52; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/MangroveChakramProjectile.png b/Projectiles/Rogue/MangroveChakramProjectile.png similarity index 100% rename from Projectiles/MangroveChakramProjectile.png rename to Projectiles/Rogue/MangroveChakramProjectile.png diff --git a/Projectiles/MoltenAmputator.cs b/Projectiles/Rogue/MoltenAmputator.cs similarity index 92% rename from Projectiles/MoltenAmputator.cs rename to Projectiles/Rogue/MoltenAmputator.cs index cb675901a2..8a8230ddb2 100644 --- a/Projectiles/MoltenAmputator.cs +++ b/Projectiles/Rogue/MoltenAmputator.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class MoltenAmputator : ModProjectile { @@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 3; projectile.timeLeft = 300; aiType = 52; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { diff --git a/Projectiles/MoltenAmputator.png b/Projectiles/Rogue/MoltenAmputator.png similarity index 100% rename from Projectiles/MoltenAmputator.png rename to Projectiles/Rogue/MoltenAmputator.png diff --git a/Projectiles/MoltenBlobThrown.cs b/Projectiles/Rogue/MoltenBlobThrown.cs similarity index 93% rename from Projectiles/MoltenBlobThrown.cs rename to Projectiles/Rogue/MoltenBlobThrown.cs index 2528efa98c..82f6c65127 100644 --- a/Projectiles/MoltenBlobThrown.cs +++ b/Projectiles/Rogue/MoltenBlobThrown.cs @@ -1,96 +1,97 @@ -using System; -using System.Collections.Generic; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles -{ - public class MoltenBlobThrown : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Blob"); - Main.projFrames[projectile.type] = 2; - } - - public override void SetDefaults() - { - projectile.width = 12; - projectile.height = 12; - projectile.friendly = true; - projectile.penetrate = 1; - projectile.timeLeft = 300; - } - - public override void AI() - { - projectile.velocity.X *= 0.95f; - if (projectile.wet || projectile.lavaWet) - { - projectile.velocity.Y = 0f; - } - else - { - projectile.velocity.Y = projectile.velocity.Y + 0.1f; - if (projectile.velocity.Y > 5f) - { - projectile.velocity.Y = 5f; - } - } - projectile.frameCounter++; - if (projectile.frameCounter > 6) - { - projectile.frame++; - projectile.frameCounter = 0; - } - if (projectile.frame > 1) - { - projectile.frame = 0; - } - } - - public override bool TileCollideStyle(ref int width, ref int height, ref bool fallThrough) - { - fallThrough = false; - return true; - } - - public override bool OnTileCollide(Vector2 oldVelocity) - { - return false; - } - - public override Color? GetAlpha(Color lightColor) - { - return new Color(250, 150, 0, projectile.alpha); - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); - projectile.position.X = projectile.position.X + (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); - projectile.width = 10; - projectile.height = 10; - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - for (int num621 = 0; num621 < 3; num621++) - { - int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default(Color), 2f); - if (Main.rand.Next(2) == 0) - { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int num623 = 0; num623 < 5; num623++) - { - int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default(Color), 3f); - Main.dust[num624].noGravity = true; - num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default(Color), 2f); - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class MoltenBlobThrown : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Blob"); + Main.projFrames[projectile.type] = 2; + } + + public override void SetDefaults() + { + projectile.width = 12; + projectile.height = 12; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.velocity.X *= 0.95f; + if (projectile.wet || projectile.lavaWet) + { + projectile.velocity.Y = 0f; + } + else + { + projectile.velocity.Y = projectile.velocity.Y + 0.1f; + if (projectile.velocity.Y > 5f) + { + projectile.velocity.Y = 5f; + } + } + projectile.frameCounter++; + if (projectile.frameCounter > 6) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 1) + { + projectile.frame = 0; + } + } + + public override bool TileCollideStyle(ref int width, ref int height, ref bool fallThrough) + { + fallThrough = false; + return true; + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + return false; + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(250, 150, 0, projectile.alpha); + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + projectile.position.X = projectile.position.X + (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y + (float)(projectile.height / 2); + projectile.width = 10; + projectile.height = 10; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num621 = 0; num621 < 3; num621++) + { + int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default(Color), 2f); + if (Main.rand.Next(2) == 0) + { + Main.dust[num622].scale = 0.5f; + Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + } + } + for (int num623 = 0; num623 < 5; num623++) + { + int num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default(Color), 3f); + Main.dust[num624].noGravity = true; + num624 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default(Color), 2f); + } + } + } } \ No newline at end of file diff --git a/Projectiles/MoltenBlobThrown.png b/Projectiles/Rogue/MoltenBlobThrown.png similarity index 100% rename from Projectiles/MoltenBlobThrown.png rename to Projectiles/Rogue/MoltenBlobThrown.png diff --git a/Projectiles/Mycoroot.cs b/Projectiles/Rogue/Mycoroot.cs similarity index 90% rename from Projectiles/Mycoroot.cs rename to Projectiles/Rogue/Mycoroot.cs index 3bc2fc0e68..d42c918230 100644 --- a/Projectiles/Mycoroot.cs +++ b/Projectiles/Rogue/Mycoroot.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Mycoroot : ModProjectile { @@ -20,7 +20,8 @@ namespace CalamityMod.Projectiles projectile.height = 12; projectile.friendly = true; projectile.penetrate = 1; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Mycoroot.png b/Projectiles/Rogue/Mycoroot.png similarity index 100% rename from Projectiles/Mycoroot.png rename to Projectiles/Rogue/Mycoroot.png diff --git a/Projectiles/MythrilKnifeProjectile.cs b/Projectiles/Rogue/MythrilKnifeProjectile.cs similarity index 90% rename from Projectiles/MythrilKnifeProjectile.cs rename to Projectiles/Rogue/MythrilKnifeProjectile.cs index a3c09d3f2b..e98ecb7a9c 100644 --- a/Projectiles/MythrilKnifeProjectile.cs +++ b/Projectiles/Rogue/MythrilKnifeProjectile.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class MythrilKnifeProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/MythrilKnifeProjectile.png b/Projectiles/Rogue/MythrilKnifeProjectile.png similarity index 100% rename from Projectiles/MythrilKnifeProjectile.png rename to Projectiles/Rogue/MythrilKnifeProjectile.png diff --git a/Projectiles/OPHammer.cs b/Projectiles/Rogue/OPHammer.cs similarity index 94% rename from Projectiles/OPHammer.cs rename to Projectiles/Rogue/OPHammer.cs index 2dd46fa1d7..d9e711ffbb 100644 --- a/Projectiles/OPHammer.cs +++ b/Projectiles/Rogue/OPHammer.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class OPHammer : ModProjectile { @@ -22,7 +22,8 @@ namespace CalamityMod.Projectiles projectile.tileCollide = false; projectile.penetrate = -1; projectile.extraUpdates = 2; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/OPHammer.png b/Projectiles/Rogue/OPHammer.png similarity index 100% rename from Projectiles/OPHammer.png rename to Projectiles/Rogue/OPHammer.png diff --git a/Projectiles/OrichalcumSpikedGemstoneProjectile.cs b/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs similarity index 91% rename from Projectiles/OrichalcumSpikedGemstoneProjectile.cs rename to Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs index ac8bbeff8c..444b7aebdb 100644 --- a/Projectiles/OrichalcumSpikedGemstoneProjectile.cs +++ b/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class OrichalcumSpikedGemstoneProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.penetrate = 6; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/OrichalcumSpikedGemstoneProjectile.png b/Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.png similarity index 100% rename from Projectiles/OrichalcumSpikedGemstoneProjectile.png rename to Projectiles/Rogue/OrichalcumSpikedGemstoneProjectile.png diff --git a/Projectiles/PalladiumJavelinProjectile.cs b/Projectiles/Rogue/PalladiumJavelinProjectile.cs similarity index 90% rename from Projectiles/PalladiumJavelinProjectile.cs rename to Projectiles/Rogue/PalladiumJavelinProjectile.cs index dffa6f99b5..03b3f3df67 100644 --- a/Projectiles/PalladiumJavelinProjectile.cs +++ b/Projectiles/Rogue/PalladiumJavelinProjectile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class PalladiumJavelinProjectile : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; projectile.timeLeft = 600; aiType = 598; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/PalladiumJavelinProjectile.png b/Projectiles/Rogue/PalladiumJavelinProjectile.png similarity index 100% rename from Projectiles/PalladiumJavelinProjectile.png rename to Projectiles/Rogue/PalladiumJavelinProjectile.png diff --git a/Projectiles/ProfanedTrident.cs b/Projectiles/Rogue/ProfanedTrident.cs similarity index 94% rename from Projectiles/ProfanedTrident.cs rename to Projectiles/Rogue/ProfanedTrident.cs index 390ec01aa2..ad69186bbc 100644 --- a/Projectiles/ProfanedTrident.cs +++ b/Projectiles/Rogue/ProfanedTrident.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class ProfanedTrident : ModProjectile { @@ -22,7 +22,8 @@ namespace CalamityMod.Projectiles projectile.penetrate = 1; projectile.tileCollide = false; projectile.timeLeft = 300; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/ProfanedTrident.png b/Projectiles/Rogue/ProfanedTrident.png similarity index 100% rename from Projectiles/ProfanedTrident.png rename to Projectiles/Rogue/ProfanedTrident.png diff --git a/Projectiles/Pwnagehammer.cs b/Projectiles/Rogue/Pwnagehammer.cs similarity index 90% rename from Projectiles/Pwnagehammer.cs rename to Projectiles/Rogue/Pwnagehammer.cs index 6b5d77061c..63b3071f4e 100644 --- a/Projectiles/Pwnagehammer.cs +++ b/Projectiles/Rogue/Pwnagehammer.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Pwnagehammer : ModProjectile { @@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles projectile.timeLeft = 120; projectile.extraUpdates = 3; aiType = 301; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Pwnagehammer.png b/Projectiles/Rogue/Pwnagehammer.png similarity index 100% rename from Projectiles/Pwnagehammer.png rename to Projectiles/Rogue/Pwnagehammer.png diff --git a/Projectiles/RotBallProjectile.cs b/Projectiles/Rogue/RotBallProjectile.cs similarity index 88% rename from Projectiles/RotBallProjectile.cs rename to Projectiles/Rogue/RotBallProjectile.cs index e4b295f048..57e22e8534 100644 --- a/Projectiles/RotBallProjectile.cs +++ b/Projectiles/Rogue/RotBallProjectile.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class RotBallProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { diff --git a/Projectiles/RotBallProjectile.png b/Projectiles/Rogue/RotBallProjectile.png similarity index 100% rename from Projectiles/RotBallProjectile.png rename to Projectiles/Rogue/RotBallProjectile.png diff --git a/Projectiles/RoyalKnife.cs b/Projectiles/Rogue/RoyalKnife.cs similarity index 91% rename from Projectiles/RoyalKnife.cs rename to Projectiles/Rogue/RoyalKnife.cs index 6cd02c44b5..43fcdf7bcb 100644 --- a/Projectiles/RoyalKnife.cs +++ b/Projectiles/Rogue/RoyalKnife.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class RoyalKnife : ModProjectile { @@ -21,7 +21,8 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.penetrate = 1; projectile.timeLeft = 300; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { @@ -98,7 +99,7 @@ namespace CalamityMod.Projectiles { return; } - float num = (float)damage * 0.075f; + float num = (float)damage * 0.015f; if ((int)num == 0) { return; @@ -107,7 +108,7 @@ namespace CalamityMod.Projectiles { return; } - Main.player[Main.myPlayer].lifeSteal -= num * 0.2f; + Main.player[Main.myPlayer].lifeSteal -= num * 1.5f; int num2 = projectile.owner; Projectile.NewProjectile(target.position.X, target.position.Y, 0f, 0f, mod.ProjectileType("RoyalHeal"), 0, 0f, projectile.owner, (float)num2, num); } diff --git a/Projectiles/RoyalKnife.png b/Projectiles/Rogue/RoyalKnife.png similarity index 100% rename from Projectiles/RoyalKnife.png rename to Projectiles/Rogue/RoyalKnife.png diff --git a/Projectiles/ScourgeoftheDesert.cs b/Projectiles/Rogue/ScourgeoftheDesert.cs similarity index 88% rename from Projectiles/ScourgeoftheDesert.cs rename to Projectiles/Rogue/ScourgeoftheDesert.cs index 2aaaf1c2c5..2963811798 100644 --- a/Projectiles/ScourgeoftheDesert.cs +++ b/Projectiles/Rogue/ScourgeoftheDesert.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class ScourgeoftheDesert : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; aiType = 598; projectile.penetrate = 3; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/ScourgeoftheDesert.png b/Projectiles/Rogue/ScourgeoftheDesert.png similarity index 100% rename from Projectiles/ScourgeoftheDesert.png rename to Projectiles/Rogue/ScourgeoftheDesert.png diff --git a/Projectiles/SeashellBoomerangProjectile.cs b/Projectiles/Rogue/SeashellBoomerangProjectile.cs similarity index 83% rename from Projectiles/SeashellBoomerangProjectile.cs rename to Projectiles/Rogue/SeashellBoomerangProjectile.cs index 32b8e1ac02..4bee5a8fa8 100644 --- a/Projectiles/SeashellBoomerangProjectile.cs +++ b/Projectiles/Rogue/SeashellBoomerangProjectile.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class SeashellBoomerangProjectile : ModProjectile { @@ -20,9 +20,10 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.penetrate = -1; projectile.aiStyle = 3; - projectile.timeLeft = 600; + projectile.timeLeft = 240; aiType = 52; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/SeashellBoomerangProjectile.png b/Projectiles/Rogue/SeashellBoomerangProjectile.png similarity index 100% rename from Projectiles/SeashellBoomerangProjectile.png rename to Projectiles/Rogue/SeashellBoomerangProjectile.png diff --git a/Projectiles/Rogue/ShatteredExplosion.cs b/Projectiles/Rogue/ShatteredExplosion.cs new file mode 100644 index 0000000000..3ac1e1474b --- /dev/null +++ b/Projectiles/Rogue/ShatteredExplosion.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class ShatteredExplosion : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Explosion"); + } + + public override void SetDefaults() + { + projectile.width = 150; + projectile.height = 150; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.tileCollide = false; + projectile.penetrate = -1; + projectile.timeLeft = 15; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 5; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.localAI[0] += 1f; + if (projectile.localAI[0] > 4f) + { + for (int i = 0; i < 5; i++) + { + int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 246, 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num469].noGravity = true; + Main.dust[num469].velocity *= 0f; + } + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("HolyLight"), 180); + } + } +} \ No newline at end of file diff --git a/Projectiles/Rogue/ShatteredExplosion.png b/Projectiles/Rogue/ShatteredExplosion.png new file mode 100644 index 0000000000000000000000000000000000000000..3ccaea528f69be63e5075b8ebd4f935ab4bf24e9 GIT binary patch literal 1371 zcmeAS@N?(olHy`uVBq!ia0vp^CqS5k4M?tyST~P>fmO-V#WAEJ?(Nl$f(HzEj%=v- zztp%fc0=uwaK#gQ=A3tLI1u_^gQCL&Jq3aF%?F$v6y~urHdZjR%xbXrC^j}#QkXE& zIeIfE$C8~hr33{|oLIQ_CJW1@J3hS}94SvOT+3l%%FJ8l#=>G$l#y-5*l1!NtjxqD zX}QI8c7wyL*((JZ8+&AK&GL0nID7U=M}vbKU+!5og$d8nvRoV#l-swZ2@8x`Ga6{4 iDQz_03{YY7gHbz#;pC(pPqzUJO$JX_KbLh*2~7aFk^xTu literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/ShatteredSun.cs b/Projectiles/Rogue/ShatteredSun.cs new file mode 100644 index 0000000000..6d08a960ec --- /dev/null +++ b/Projectiles/Rogue/ShatteredSun.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class ShatteredSun : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shattered Sun"); + } + + public override void SetDefaults() + { + projectile.width = 56; + projectile.height = 56; + projectile.friendly = true; + projectile.penetrate = 3; + projectile.timeLeft = 300; + projectile.alpha = 255; + projectile.tileCollide = false; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 15; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if (projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + projectile.ai[1] += 1f; + if (projectile.ai[1] < 5f) + { + projectile.alpha -= 50; + } + if (projectile.ai[1] == 5f) + { + projectile.alpha = 0; + projectile.tileCollide = false; + } + + if (projectile.ai[1] == 12f) + { + int numProj = 2; + float rotation = MathHelper.ToRadians(10); + if (projectile.owner == Main.myPlayer) + { + for (int i = 0; i < numProj; i++) + { + Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("ShatteredSun2"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + } + projectile.active = false; + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + return true; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 246, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, default(Color), 1f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Rogue/ShatteredSun.png b/Projectiles/Rogue/ShatteredSun.png new file mode 100644 index 0000000000000000000000000000000000000000..95bfbda427149a406b7501b262a37e893e1201f6 GIT binary patch literal 1570 zcmV+-2Hp9IP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1-D5=K~!i%?V5i~ zlyw}(j~{o(j}D0g!IMB(WI@v?%(Br+x3Z{B7Pe7MXVcnpxmuC7)?Y4XQmd)`Q!Zw+ z+?1lFmeW-%rz>-#nmUPzK_^Hlzmy*bDjo07^S<5lfd_O$ZQS$P9^TLQc<%1G=l#4t z-ye5T(=rweIj(}t^wg+f^|zfxyYhjUnK>O!*85MRO>VTKbdW@zgDu6+LCMMoml=D)ijt?G%Rk%*C7yT}96jGB z_r4X^+u=#?VCVy`+Hwk;rskam*vRAaIIuQX|G=@;hj#qbPq7^mO}qQ@^Mk^Bvd*Wk2}QPgPKzNj{HNnHgnuC43(`o1fH+ zbDHYxH#r*y{%<>I5OR=NEXtG2#5e-Dg4!WEp|f?@>L;MgB>%6`*PVdFv@DY+YI6Na6rebbCw6G)t`tgQlXzj@cXb_#v&|Nqhk&{8fEC#`q;>d;> zDSM`xEw+W;-d%YGZ5&`H}tjnzm;ui@ws z%<3gx=&tRDq3qX6AHElwTO^J(9+Ag&6(u^0GrTwBGyHXK^x1{&pk};k%2@$n)>6E+ z(Dy69hLYDRWF_IgTTeji_H;vEsuJh)*wYmqg>xRbJnGwzz;;kW2h&_~kKd7c2|7Q$ z3zzhTH)M6rS8nu2#;oA0O)H^vkX7=@a><~(Ub0zO`7D&wReTOD*(}vE(dEQB_Y4f8 zosr~$p6Qmgq%d%t?VuIq1u|j@f-6_?SOOY!;QrJ%q4Q_o31xp)^P@P$>Ph(c&iV>y zh}vC{#V<-m!{&h|md%?3Wxwc-j3{8 z*)ibS%>I+Ix~4}ue0`2-*}}I%d^j8G-0AC9}abmJim;w_0>iUwLLK+by#X zu8#(0${oQG51nH+xe~y(?VuHOaK;qr2aovMphy4dfTOyq`8bt;HEF*Zgci)_!;#XB*5ct23XU93O}0clOE3II$hPQuMF<#=zw8tZez!;vY>? z_40jFp*>wPwq#bVvZu375@KTTy0(K8#nn2@?CG_ayfiP)xu;*U#;W{s*+R58Rm=BR z_DJShqkmg%RfY9;6neJ6s%&+f?cnu7XEezz?QWw#90iI`F?x4f*AGI=& U280JPA^-pY07*qoM6N<$g0*H3SpWb4 literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/ShatteredSun2.cs b/Projectiles/Rogue/ShatteredSun2.cs new file mode 100644 index 0000000000..73ff6dcb24 --- /dev/null +++ b/Projectiles/Rogue/ShatteredSun2.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class ShatteredSun2 : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shattered Sun"); + } + + public override void SetDefaults() + { + projectile.width = 56; + projectile.height = 56; + projectile.friendly = true; + projectile.penetrate = 3; + projectile.timeLeft = 300; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 15; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if (projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + projectile.ai[1] += 1f; + if (projectile.ai[1] == 8f) + { + int numProj = 2; + float rotation = MathHelper.ToRadians(10); + if (projectile.owner == Main.myPlayer) + { + for (int i = 0; i < numProj; i++) + { + Vector2 perturbedSpeed = new Vector2(projectile.velocity.X, projectile.velocity.Y).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, perturbedSpeed.X, perturbedSpeed.Y, mod.ProjectileType("ShatteredSun3"), (int)((double)projectile.damage * 0.5f), projectile.knockBack, projectile.owner, 0f, 0f); + } + projectile.active = false; + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + return true; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 246, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, default(Color), 1f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Rogue/ShatteredSun2.png b/Projectiles/Rogue/ShatteredSun2.png new file mode 100644 index 0000000000000000000000000000000000000000..95bfbda427149a406b7501b262a37e893e1201f6 GIT binary patch literal 1570 zcmV+-2Hp9IP)Px#1ZP1_K>z@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R58Rm=BR z_DJShqkmg%RfY9;6neJ6s%&+f?cnu7XEezz?QWw#90iI`F?x4f*AGI=& U280JPA^-pY07*qoM6N<$g0*H3SpWb4 literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/ShatteredSun3.cs b/Projectiles/Rogue/ShatteredSun3.cs new file mode 100644 index 0000000000..ca323fc5de --- /dev/null +++ b/Projectiles/Rogue/ShatteredSun3.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class ShatteredSun3 : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shattered Sun"); + } + + public override void SetDefaults() + { + projectile.width = 56; + projectile.height = 56; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if (projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + float centerX = projectile.Center.X; + float centerY = projectile.Center.Y; + float num474 = 750f; + bool homeIn = false; + for (int i = 0; i < 200; i++) + { + if (Main.npc[i].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[i].Center, 1, 1)) + { + float num476 = Main.npc[i].position.X + (float)(Main.npc[i].width / 2); + float num477 = Main.npc[i].position.Y + (float)(Main.npc[i].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + centerX = num476; + centerY = num477; + homeIn = true; + } + } + } + if (homeIn) + { + float num483 = 20f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = centerX - vector35.X; + float num485 = centerY - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 15f + num484) / 16f; + projectile.velocity.Y = (projectile.velocity.Y * 15f + num485) / 16f; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("ShatteredExplosion"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + return true; + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 246, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f, 0, default(Color), 1f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/Rogue/ShatteredSun3.png b/Projectiles/Rogue/ShatteredSun3.png new file mode 100644 index 0000000000000000000000000000000000000000..95bfbda427149a406b7501b262a37e893e1201f6 GIT binary patch literal 1570 zcmV+-2Hp9IP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1-D5=K~!i%?V5i~ zlyw}(j~{o(j}D0g!IMB(WI@v?%(Br+x3Z{B7Pe7MX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literal 0 HcmV?d00001 diff --git a/Projectiles/SpearofPaleolith.cs b/Projectiles/Rogue/SpearofPaleolith.cs similarity index 92% rename from Projectiles/SpearofPaleolith.cs rename to Projectiles/Rogue/SpearofPaleolith.cs index 55a51f155a..7ecd2cdc62 100644 --- a/Projectiles/SpearofPaleolith.cs +++ b/Projectiles/Rogue/SpearofPaleolith.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class SpearofPaleolith : ModProjectile { @@ -26,7 +26,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; projectile.timeLeft = 600; aiType = 598; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/SpearofPaleolith.png b/Projectiles/Rogue/SpearofPaleolith.png similarity index 100% rename from Projectiles/SpearofPaleolith.png rename to Projectiles/Rogue/SpearofPaleolith.png diff --git a/Projectiles/TarragonThrowingDartProjectile.cs b/Projectiles/Rogue/TarragonThrowingDartProjectile.cs similarity index 91% rename from Projectiles/TarragonThrowingDartProjectile.cs rename to Projectiles/Rogue/TarragonThrowingDartProjectile.cs index a2df9c4db4..768e3433d5 100644 --- a/Projectiles/TarragonThrowingDartProjectile.cs +++ b/Projectiles/Rogue/TarragonThrowingDartProjectile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class TarragonThrowingDartProjectile : ModProjectile { @@ -24,7 +24,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; projectile.timeLeft = 600; aiType = 598; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/TarragonThrowingDartProjectile.png b/Projectiles/Rogue/TarragonThrowingDartProjectile.png similarity index 100% rename from Projectiles/TarragonThrowingDartProjectile.png rename to Projectiles/Rogue/TarragonThrowingDartProjectile.png diff --git a/Projectiles/TitaniumShurikenProjectile.cs b/Projectiles/Rogue/TitaniumShurikenProjectile.cs similarity index 88% rename from Projectiles/TitaniumShurikenProjectile.cs rename to Projectiles/Rogue/TitaniumShurikenProjectile.cs index 79f51b6275..9950b75f53 100644 --- a/Projectiles/TitaniumShurikenProjectile.cs +++ b/Projectiles/Rogue/TitaniumShurikenProjectile.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class TitaniumShurikenProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { diff --git a/Projectiles/TitaniumShurikenProjectile.png b/Projectiles/Rogue/TitaniumShurikenProjectile.png similarity index 100% rename from Projectiles/TitaniumShurikenProjectile.png rename to Projectiles/Rogue/TitaniumShurikenProjectile.png diff --git a/Projectiles/ToothBallProjectile.cs b/Projectiles/Rogue/ToothBallProjectile.cs similarity index 88% rename from Projectiles/ToothBallProjectile.cs rename to Projectiles/Rogue/ToothBallProjectile.cs index 5719dffdba..93a243df30 100644 --- a/Projectiles/ToothBallProjectile.cs +++ b/Projectiles/Rogue/ToothBallProjectile.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class ToothBallProjectile : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { diff --git a/Projectiles/ToothBallProjectile.png b/Projectiles/Rogue/ToothBallProjectile.png similarity index 100% rename from Projectiles/ToothBallProjectile.png rename to Projectiles/Rogue/ToothBallProjectile.png diff --git a/Projectiles/TriactisOPHammer.cs b/Projectiles/Rogue/TriactisOPHammer.cs similarity index 95% rename from Projectiles/TriactisOPHammer.cs rename to Projectiles/Rogue/TriactisOPHammer.cs index 99e7404379..c0a3b6261a 100644 --- a/Projectiles/TriactisOPHammer.cs +++ b/Projectiles/Rogue/TriactisOPHammer.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class TriactisOPHammer : ModProjectile { @@ -22,7 +22,8 @@ namespace CalamityMod.Projectiles projectile.tileCollide = false; projectile.penetrate = -1; projectile.extraUpdates = 3; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/TriactisOPHammer.png b/Projectiles/Rogue/TriactisOPHammer.png similarity index 100% rename from Projectiles/TriactisOPHammer.png rename to Projectiles/Rogue/TriactisOPHammer.png diff --git a/Projectiles/UrchinStinger.cs b/Projectiles/Rogue/UrchinStinger.cs similarity index 86% rename from Projectiles/UrchinStinger.cs rename to Projectiles/Rogue/UrchinStinger.cs index 48a113be78..65571f81c6 100644 --- a/Projectiles/UrchinStinger.cs +++ b/Projectiles/Rogue/UrchinStinger.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class UrchinStinger : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { diff --git a/Projectiles/UrchinStinger.png b/Projectiles/Rogue/UrchinStinger.png similarity index 100% rename from Projectiles/UrchinStinger.png rename to Projectiles/Rogue/UrchinStinger.png diff --git a/Projectiles/Valediction.cs b/Projectiles/Rogue/Valediction.cs similarity index 96% rename from Projectiles/Valediction.cs rename to Projectiles/Rogue/Valediction.cs index fa576db5cd..cd89e990f8 100644 --- a/Projectiles/Valediction.cs +++ b/Projectiles/Rogue/Valediction.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class Valediction : ModProjectile { @@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles projectile.extraUpdates = 3; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 15; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/Valediction.png b/Projectiles/Rogue/Valediction.png similarity index 100% rename from Projectiles/Valediction.png rename to Projectiles/Rogue/Valediction.png diff --git a/Projectiles/WulfrumKnife.cs b/Projectiles/Rogue/WulfrumKnife.cs similarity index 88% rename from Projectiles/WulfrumKnife.cs rename to Projectiles/Rogue/WulfrumKnife.cs index 3eaabec33e..8568a6b254 100644 --- a/Projectiles/WulfrumKnife.cs +++ b/Projectiles/Rogue/WulfrumKnife.cs @@ -5,7 +5,7 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class WulfrumKnife : ModProjectile { @@ -23,7 +23,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 2; projectile.timeLeft = 600; aiType = 48; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { diff --git a/Projectiles/WulfrumKnife.png b/Projectiles/Rogue/WulfrumKnife.png similarity index 100% rename from Projectiles/WulfrumKnife.png rename to Projectiles/Rogue/WulfrumKnife.png diff --git a/Projectiles/XerocPitchforkProjectile.cs b/Projectiles/Rogue/XerocPitchforkProjectile.cs similarity index 91% rename from Projectiles/XerocPitchforkProjectile.cs rename to Projectiles/Rogue/XerocPitchforkProjectile.cs index b76c20d846..65dcf5ce13 100644 --- a/Projectiles/XerocPitchforkProjectile.cs +++ b/Projectiles/Rogue/XerocPitchforkProjectile.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Rogue { public class XerocPitchforkProjectile : ModProjectile { @@ -25,7 +25,8 @@ namespace CalamityMod.Projectiles projectile.aiStyle = 113; projectile.timeLeft = 600; aiType = 598; - } + projectile.GetGlobalProjectile(mod).rogue = true; + } public override void AI() { diff --git a/Projectiles/XerocPitchforkProjectile.png b/Projectiles/Rogue/XerocPitchforkProjectile.png similarity index 100% rename from Projectiles/XerocPitchforkProjectile.png rename to Projectiles/Rogue/XerocPitchforkProjectile.png diff --git a/Projectiles/ScourgeoftheCosmos.png b/Projectiles/ScourgeoftheCosmos.png deleted file mode 100644 index ef44fee035aa17630c278061dfd56f7bb551cb18..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 496 zcmeAS@N?(olHy`uVBq!ia0vp^N+8U^1|+TAxeoy;#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;>1s;*b3=DjSL74G){)!Z!pk#?_L`iUdT1k0gQ7S`0VrE{6US4X6f{C7i zo{>SDdL%Q@)C5l#$B+p3r)_pCkk z&A2*W?%t$$JG;qq&mNt1*VJl)%?3>i_Ka2K*D@S9EHaY*w z;qm7C*#!dK>)**u-k%qCa`R8uqMp#=bxsT9CwyPdoYYYJV^5swef{YtXJ7yRa9{Y9ug+r11 k@Ao0>fmXMw!vbrVC(K`?c}=3+0vI6-p00i_>zopr0K*%;Y5)KL diff --git a/Projectiles/ScourgeoftheCosmosMini.png b/Projectiles/ScourgeoftheCosmosMini.png deleted file mode 100644 index 958b953c3ff8c54654a487aff26e24f05455f89f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 444 zcmV;t0Ym<00001b5ch_0Itp) z=>Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02y>eS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rA5{gi=qGC;K>zRKSO*y(XO}8wx|{92 aWweW7T6ETx`orSaH*neJ?tI^gn)W~4Z**<| diff --git a/Projectiles/SirenYoung.png b/Projectiles/SirenYoung.png deleted file mode 100644 index c75521c71bb197aa45dfe7aed9c8edfa54edf014..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4824 zcmV;}5-076P)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(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rkmBvTvH`F{^VWe z{NvRr89pm!5BcIU-SXQ-c3y1N3%Sr5J#OR5T3V;ndPuBSL?|OR^=@6wY%6PuJ9^~x y!|kDvmWdm?Mw}@**EUvX%C@`5E_=hq{|^9M%?A7uV%Tv20000= 250) - { - projectile.alpha = 255; - projectile.localAI[0] = 1f; - } - } - else if (projectile.localAI[0] == 1f) - { - projectile.scale += 0.02f; - projectile.alpha -= 30; - if (projectile.alpha <= 0) - { - projectile.alpha = 0; - projectile.localAI[0] = 0f; - } - } - int dustType = 0; - if (CalamityWorld.spring) - { - dustType = Utils.SelectRandom(Main.rand, new int[] - { - 74, - 157, - 107 - }); - } - else if (CalamityWorld.summer) - { - dustType = Utils.SelectRandom(Main.rand, new int[] - { - 247, - 228, - 57 - }); - } - else if (CalamityWorld.fall) - { - dustType = Utils.SelectRandom(Main.rand, new int[] - { - 6, - 259, - 158 - }); - } - else if (CalamityWorld.winter) - { - dustType = Utils.SelectRandom(Main.rand, new int[] - { - 67, - 229, - 185 - }); - } - if (Main.rand.Next(3) == 0) - { - int dust = Dust.NewDust(projectile.position, projectile.width, projectile.height, dustType, projectile.velocity.X * 0.05f, projectile.velocity.Y * 0.05f); - Main.dust[dust].noGravity = true; - } - } - - public override Color? GetAlpha(Color lightColor) - { - byte red = 255; - byte green = 255; - byte blue = 255; - if (CalamityWorld.spring) - { - red = 0; - green = 250; - blue = 0; - } - else if (CalamityWorld.summer) - { - red = 250; - green = 250; - blue = 0; - } - else if (CalamityWorld.fall) - { - red = 250; - green = 150; - blue = 50; - } - else if (CalamityWorld.winter) - { - red = 100; - green = 150; - blue = 250; - } - return new Color(red, green, blue, projectile.alpha); - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - Texture2D tex = Main.projectileTexture[projectile.type]; - spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); - return false; - } - - public override void Kill(int timeLeft) - { - int dustType = 0; - if (CalamityWorld.spring) - { - dustType = Utils.SelectRandom(Main.rand, new int[] - { - 245, - 157, - 107 - }); - } - else if (CalamityWorld.summer) - { - dustType = Utils.SelectRandom(Main.rand, new int[] - { - 247, - 228, - 57 - }); - } - else if (CalamityWorld.fall) - { - dustType = Utils.SelectRandom(Main.rand, new int[] - { - 6, - 259, - 158 - }); - } - else if (CalamityWorld.winter) - { - dustType = Utils.SelectRandom(Main.rand, new int[] - { - 67, - 229, - 185 - }); - } - Main.PlaySound(SoundID.Item10, projectile.position); - int num3; - for (int num795 = 4; num795 < 31; num795 = num3 + 1) - { - float num796 = projectile.oldVelocity.X * (30f / (float)num795); - float num797 = projectile.oldVelocity.Y * (30f / (float)num795); - int num798 = Dust.NewDust(new Vector2(projectile.oldPosition.X - num796, projectile.oldPosition.Y - num797), 8, 8, dustType, projectile.oldVelocity.X, projectile.oldVelocity.Y, 100, default(Color), 1.8f); - Main.dust[num798].noGravity = true; - Dust dust = Main.dust[num798]; - dust.velocity *= 0.5f; - num798 = Dust.NewDust(new Vector2(projectile.oldPosition.X - num796, projectile.oldPosition.Y - num797), 8, 8, dustType, projectile.oldVelocity.X, projectile.oldVelocity.Y, 100, default(Color), 1.4f); - dust = Main.dust[num798]; - dust.velocity *= 0.05f; - num3 = num795; - } - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - if (Main.dayTime) - { - target.AddBuff(BuffID.Daybreak, 300); - } - else - { - target.AddBuff(mod.BuffType("Nightwither"), 300); - } - } - } -} \ No newline at end of file diff --git a/Projectiles/AngryChicken.cs b/Projectiles/Summon/AngryChicken.cs similarity index 86% rename from Projectiles/AngryChicken.cs rename to Projectiles/Summon/AngryChicken.cs index bedcd4dc99..811a55eb7c 100644 --- a/Projectiles/AngryChicken.cs +++ b/Projectiles/Summon/AngryChicken.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class AngryChicken : ModProjectile { @@ -39,7 +39,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[0] == 0f) { - int num501 = 100; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 100; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 244, 0f, 0f, 0, default(Color), 1f); @@ -48,7 +50,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - if ((double)Math.Abs(projectile.velocity.X) > 0.2) + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + if ((double)Math.Abs(projectile.velocity.X) > 0.2) { projectile.spriteDirection = -projectile.direction; } diff --git a/Projectiles/AngryChicken.png b/Projectiles/Summon/AngryChicken.png similarity index 100% rename from Projectiles/AngryChicken.png rename to Projectiles/Summon/AngryChicken.png diff --git a/Projectiles/AquaticStar.cs b/Projectiles/Summon/AquaticStar.cs similarity index 72% rename from Projectiles/AquaticStar.cs rename to Projectiles/Summon/AquaticStar.cs index b6b2ec8dcc..550d96d679 100644 --- a/Projectiles/AquaticStar.cs +++ b/Projectiles/Summon/AquaticStar.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class AquaticStar : ModProjectile { @@ -39,7 +39,9 @@ namespace CalamityMod.Projectiles { if (dust == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -52,7 +54,14 @@ namespace CalamityMod.Projectiles } dust += 1f; } - projectile.rotation += projectile.velocity.X * 0.04f; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + projectile.rotation += projectile.velocity.X * 0.04f; bool flag64 = projectile.type == mod.ProjectileType("AquaticStar"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); diff --git a/Projectiles/AquaticStar.png b/Projectiles/Summon/AquaticStar.png similarity index 100% rename from Projectiles/AquaticStar.png rename to Projectiles/Summon/AquaticStar.png diff --git a/Projectiles/BabyPlaguebringer.png b/Projectiles/Summon/BabyPlaguebringer.png similarity index 100% rename from Projectiles/BabyPlaguebringer.png rename to Projectiles/Summon/BabyPlaguebringer.png diff --git a/Projectiles/BigBustyRose.cs b/Projectiles/Summon/BigBustyRose.cs similarity index 89% rename from Projectiles/BigBustyRose.cs rename to Projectiles/Summon/BigBustyRose.cs index e7809bb402..fc991791ee 100644 --- a/Projectiles/BigBustyRose.cs +++ b/Projectiles/Summon/BigBustyRose.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class BigBustyRose : ModProjectile { @@ -65,7 +65,9 @@ namespace CalamityMod.Projectiles dust--; if (dust >= 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 235, 0f, 0f, 0, default(Color), 1f); @@ -73,7 +75,14 @@ namespace CalamityMod.Projectiles Main.dust[num503].scale *= 1.15f; } } - projectile.frameCounter++; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + projectile.frameCounter++; if (projectile.frameCounter > 20) { projectile.frame++; diff --git a/Projectiles/BigBustyRose.png b/Projectiles/Summon/BigBustyRose.png similarity index 100% rename from Projectiles/BigBustyRose.png rename to Projectiles/Summon/BigBustyRose.png diff --git a/Projectiles/BloodClotMinion.cs b/Projectiles/Summon/BloodClotMinion.cs similarity index 91% rename from Projectiles/BloodClotMinion.cs rename to Projectiles/Summon/BloodClotMinion.cs index 4ec585df6f..31607e57af 100644 --- a/Projectiles/BloodClotMinion.cs +++ b/Projectiles/Summon/BloodClotMinion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class BloodClotMinion : ModProjectile { @@ -37,7 +37,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[0] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -50,7 +52,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - int num1262 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 5, 0f, 0f, 0, default(Color), 1f); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + int num1262 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 5, 0f, 0f, 0, default(Color), 1f); Main.dust[num1262].velocity *= 0.1f; Main.dust[num1262].scale = 0.7f; Main.dust[num1262].noGravity = true; diff --git a/Projectiles/BloodClotMinion.png b/Projectiles/Summon/BloodClotMinion.png similarity index 100% rename from Projectiles/BloodClotMinion.png rename to Projectiles/Summon/BloodClotMinion.png diff --git a/Projectiles/BrimstoneFireSummon.cs b/Projectiles/Summon/BrimstoneFireSummon.cs similarity index 95% rename from Projectiles/BrimstoneFireSummon.cs rename to Projectiles/Summon/BrimstoneFireSummon.cs index 051f939911..ccd5d439a9 100644 --- a/Projectiles/BrimstoneFireSummon.cs +++ b/Projectiles/Summon/BrimstoneFireSummon.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class BrimstoneFireSummon : ModProjectile { diff --git a/Projectiles/BrimstoneFireSummon.png b/Projectiles/Summon/BrimstoneFireSummon.png similarity index 100% rename from Projectiles/BrimstoneFireSummon.png rename to Projectiles/Summon/BrimstoneFireSummon.png diff --git a/Projectiles/Summon/BrimstoneLaserSummon.cs b/Projectiles/Summon/BrimstoneLaserSummon.cs new file mode 100644 index 0000000000..e1559c8398 --- /dev/null +++ b/Projectiles/Summon/BrimstoneLaserSummon.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + public class BrimstoneLaserSummon : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Laser"); + } + + public override void SetDefaults() + { + projectile.width = 32; + projectile.height = 2; + projectile.aiStyle = 1; + aiType = 100; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.minion = true; + projectile.minionSlots = 0; + projectile.penetrate = 1; + projectile.alpha = 120; + projectile.timeLeft = 300; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.05f) / 255f, ((255 - projectile.alpha) * 0.05f) / 255f); + projectile.velocity.X *= 1.05f; + projectile.velocity.Y *= 1.05f; + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + projectile.velocity.Y += projectile.ai[0]; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.AddBuff(mod.BuffType("BrimstoneFlames"), 60); + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(250, 50, 50, projectile.alpha); + } + } +} \ No newline at end of file diff --git a/Projectiles/BrimstoneLaserSummon.png b/Projectiles/Summon/BrimstoneLaserSummon.png similarity index 100% rename from Projectiles/BrimstoneLaserSummon.png rename to Projectiles/Summon/BrimstoneLaserSummon.png diff --git a/Projectiles/BrittleStar.cs b/Projectiles/Summon/BrittleStar.cs similarity index 71% rename from Projectiles/BrittleStar.cs rename to Projectiles/Summon/BrittleStar.cs index 463f65f740..6c098ae9a5 100644 --- a/Projectiles/BrittleStar.cs +++ b/Projectiles/Summon/BrittleStar.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class BrittleStar : ModProjectile { @@ -39,7 +39,9 @@ namespace CalamityMod.Projectiles { if (dust == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -52,7 +54,14 @@ namespace CalamityMod.Projectiles } dust += 1f; } - projectile.rotation += projectile.velocity.X * 0.04f; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + projectile.rotation += projectile.velocity.X * 0.04f; bool flag64 = projectile.type == mod.ProjectileType("BrittleStar"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); diff --git a/Projectiles/BrittleStar.png b/Projectiles/Summon/BrittleStar.png similarity index 100% rename from Projectiles/BrittleStar.png rename to Projectiles/Summon/BrittleStar.png diff --git a/Projectiles/Calamari.cs b/Projectiles/Summon/Calamari.cs similarity index 91% rename from Projectiles/Calamari.cs rename to Projectiles/Summon/Calamari.cs index 25c14c6609..5c7dad9b74 100644 --- a/Projectiles/Calamari.cs +++ b/Projectiles/Summon/Calamari.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Calamari : ModProjectile { @@ -39,7 +39,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[1] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; //66% = 1.66 + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; //300 * 1.66 = 498 (new value) + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -52,7 +54,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[1] += 1f; } - projectile.frameCounter++; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) //15% = 1.15 != 1.66 + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / //498 + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * //1.66 498 / 1.66 = 300 (original value) + Main.player[projectile.owner].minionDamage); //300 * 1.15 = 345 (new value) + projectile.damage = damage2; + } + projectile.frameCounter++; if (projectile.frameCounter > 8) { projectile.frame++; @@ -333,7 +342,6 @@ namespace CalamityMod.Projectiles vector7 *= scaleFactor4; Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y + 20, vector7.X, vector7.Y, num28, projectile.damage, 0f, Main.myPlayer, 0f, 0f); projectile.netUpdate = true; - return; } } } @@ -349,9 +357,9 @@ namespace CalamityMod.Projectiles return false; } - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - target.AddBuff(mod.BuffType("CrushDepth"), 600); - } - } + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/Calamari.png b/Projectiles/Summon/Calamari.png similarity index 100% rename from Projectiles/Calamari.png rename to Projectiles/Summon/Calamari.png diff --git a/Projectiles/CalamariInk.cs b/Projectiles/Summon/CalamariInk.cs similarity index 97% rename from Projectiles/CalamariInk.cs rename to Projectiles/Summon/CalamariInk.cs index 7328ad5bd2..620bef669c 100644 --- a/Projectiles/CalamariInk.cs +++ b/Projectiles/Summon/CalamariInk.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class CalamariInk : ModProjectile { diff --git a/Projectiles/CalamariInk.png b/Projectiles/Summon/CalamariInk.png similarity index 100% rename from Projectiles/CalamariInk.png rename to Projectiles/Summon/CalamariInk.png diff --git a/Projectiles/Calamitamini.cs b/Projectiles/Summon/Calamitamini.cs similarity index 86% rename from Projectiles/Calamitamini.cs rename to Projectiles/Summon/Calamitamini.cs index e3b525807f..2a9da038cc 100644 --- a/Projectiles/Calamitamini.cs +++ b/Projectiles/Summon/Calamitamini.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Calamitamini : ModProjectile { @@ -37,7 +37,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[0] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -49,7 +51,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - float num633 = 700f; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + float num633 = 700f; float num634 = 1100f; float num635 = 2400f; float num636 = 150f; @@ -238,5 +247,10 @@ namespace CalamityMod.Projectiles } } } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/Calamitamini.png b/Projectiles/Summon/Calamitamini.png similarity index 100% rename from Projectiles/Calamitamini.png rename to Projectiles/Summon/Calamitamini.png diff --git a/Projectiles/Cataclymini.cs b/Projectiles/Summon/Cataclymini.cs similarity index 86% rename from Projectiles/Cataclymini.cs rename to Projectiles/Summon/Cataclymini.cs index ca739a1072..907990f50b 100644 --- a/Projectiles/Cataclymini.cs +++ b/Projectiles/Summon/Cataclymini.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Cataclymini : ModProjectile { @@ -37,7 +37,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[0] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -49,7 +51,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - float num633 = 700f; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + float num633 = 700f; float num634 = 1100f; float num635 = 2400f; float num636 = 150f; @@ -237,5 +246,10 @@ namespace CalamityMod.Projectiles } } } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/Cataclymini.png b/Projectiles/Summon/Cataclymini.png similarity index 100% rename from Projectiles/Cataclymini.png rename to Projectiles/Summon/Cataclymini.png diff --git a/Projectiles/Catastromini.cs b/Projectiles/Summon/Catastromini.cs similarity index 87% rename from Projectiles/Catastromini.cs rename to Projectiles/Summon/Catastromini.cs index d3bee430ad..39740a2788 100644 --- a/Projectiles/Catastromini.cs +++ b/Projectiles/Summon/Catastromini.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Catastromini : ModProjectile { @@ -36,7 +36,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[0] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -48,7 +50,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - float num633 = 700f; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + float num633 = 700f; float num634 = 1100f; float num635 = 2400f; float num636 = 150f; diff --git a/Projectiles/Catastromini.png b/Projectiles/Summon/Catastromini.png similarity index 100% rename from Projectiles/Catastromini.png rename to Projectiles/Summon/Catastromini.png diff --git a/Projectiles/ChaosFlame.cs b/Projectiles/Summon/ChaosFlame.cs similarity index 94% rename from Projectiles/ChaosFlame.cs rename to Projectiles/Summon/ChaosFlame.cs index 9f9c3526cb..930ca6e015 100644 --- a/Projectiles/ChaosFlame.cs +++ b/Projectiles/Summon/ChaosFlame.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class ChaosFlame : ModProjectile { diff --git a/Projectiles/ChaosFlame.png b/Projectiles/Summon/ChaosFlame.png similarity index 100% rename from Projectiles/ChaosFlame.png rename to Projectiles/Summon/ChaosFlame.png diff --git a/Projectiles/ChaosSpirit.cs b/Projectiles/Summon/ChaosSpirit.cs similarity index 78% rename from Projectiles/ChaosSpirit.cs rename to Projectiles/Summon/ChaosSpirit.cs index d88d617bc9..927d5ce8f6 100644 --- a/Projectiles/ChaosSpirit.cs +++ b/Projectiles/Summon/ChaosSpirit.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class ChaosSpirit : ModProjectile { @@ -26,12 +26,12 @@ namespace CalamityMod.Projectiles projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; - projectile.minionSlots = 0f; + projectile.minion = true; + projectile.minionSlots = 0f; projectile.timeLeft = 18000; projectile.penetrate = -1; projectile.tileCollide = false; projectile.timeLeft *= 5; - projectile.sentry = true; } public override void AI() @@ -58,7 +58,9 @@ namespace CalamityMod.Projectiles dust--; if (dust >= 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 127, 0f, 0f, 0, default(Color), 1f); @@ -66,7 +68,14 @@ namespace CalamityMod.Projectiles Main.dust[num503].scale *= 1.15f; } } - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 1f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 1f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); projectile.frameCounter++; if (projectile.frameCounter > 9) { @@ -149,11 +158,20 @@ namespace CalamityMod.Projectiles num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, projectileType, (int)((double)190 * player.minionDamage), 5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, projectileType, projectile.damage, 5f, projectile.owner, 0f, 0f); projectile.ai[0] = 38f; - return; } } } - } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, 200); + } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/Summon/ChaosSpirit.png b/Projectiles/Summon/ChaosSpirit.png new file mode 100644 index 0000000000000000000000000000000000000000..d074fce66d9d0b5eaf39c33f0be6f716c1407439 GIT binary patch literal 4093 zcmV z+ix9L6~=#KC$hKD`t%nabRZ~Gbm1`gZ@z`C710Cenn006J&$4M_) z5t?fHYIgyvGF;;U+?reP0s60d05mUM2B2ftJ^(KK@f8o?xO0kMn`V@0QdK;17P4#CjcYIrvUhHeA0T4#$`}L80}~^ z<}0=-OwP0{dH}btF96W8%5c!xw%U4~y?=it)BCx{pg`N^+`=LdGTPhT>H+k2wEEHK zUAr~s0et(_|73a}cNx@(cpe~RR%~!=V#e}Fx8@eC>yuV_;Tg>0NdS2BJC6ad`N`b? zcuUjP-$!0M3oQ2_5oqT8=;KMKUk0^JUAq-9^8C9#z$3>F12F#V3jj0+K03l&tOtp_ z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{^0a+eFAg@Rn17RUk0^Lm7Twi>yl=_#Z;zO^a1OaK|z=&G11NFbP&BH^e`(7qZ`?O>xg`X!5C<}_aQvrxbgBNX-Mh{yFF_5%`*2|&eqX= zc!g*1GqXY66(*UbNOTnYJogz)^AL+o_sB!0!}}1rQr%H?s{&X|lzi)7&&8gMP*VGk zmfx$?FN31;Yn161wroiHOSS~_y2hVV^y2q;_9Rcw)3tk~RL<0%VSyTH=UC(-ZG zcI;Tg;vQR|#tS|5qb;}Q)0<{v=*RqYOgdhV9alL+)2 zLaDR);GdQCHq}3aVk?)9lzgv=tjDLU)hxEC&nKz2GpFzj);v$5S9P`hCGIgO&`idh z*9kPhSz$F(Skt1P#)}8jpnIAGNm_HIC_IBz>x24ScbSHA@#ql%*6-a0EI;Wg>zQHh zGpK7A?kCvgEt$D9ZCm$Q*N;AT%7ajUOtaO(Ggz~Z9KC1Jk++`DAn(1xU{;?jv*5Zq zOdnm-l>OF8OctKO#8oWnRr{_%04C4e0Kji*2jJrK?*i7I#B@K*FA6mlMWVDWwVV5- zWY|RmN<#fISW>STHuD43bmY;SxAiwK%Y;k>*R=`Smuu87gSrP(chaD8b7f{5nb&FZ zth}&zptO^(>X$)%nuaI|Qp>9QNXkI>EV-2@$)d1Ynsa~mTA+3ja~cZIVCK2}Vl%>= z-jlSfGT&9sfDo+Aqt-|}J60fjlN)2%=1wQU9R`ykXMGZM+DTZ>%>vH7tJ8aqH0C0E z5g)={fUNx`?lCCP=eTR;(q_d?&8BwO0xmPC)qD-ju!iLACfl&TMAMX;sC<00000NkvXXu0mjfm%bbj literal 0 HcmV?d00001 diff --git a/Projectiles/CloudyWaifu.cs b/Projectiles/Summon/CloudyWaifu.cs similarity index 87% rename from Projectiles/CloudyWaifu.cs rename to Projectiles/Summon/CloudyWaifu.cs index 9bb3850f8e..fc279f3241 100644 --- a/Projectiles/CloudyWaifu.cs +++ b/Projectiles/Summon/CloudyWaifu.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class CloudyWaifu : ModProjectile { @@ -65,7 +65,9 @@ namespace CalamityMod.Projectiles dust--; if (dust >= 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 16, 0f, 0f, 0, default(Color), 1f); @@ -73,7 +75,14 @@ namespace CalamityMod.Projectiles Main.dust[num503].scale *= 1.15f; } } - if ((double)Math.Abs(projectile.velocity.X) > 0.2) + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + if ((double)Math.Abs(projectile.velocity.X) > 0.2) { projectile.spriteDirection = -projectile.direction; } diff --git a/Projectiles/CloudyWaifu.png b/Projectiles/Summon/CloudyWaifu.png similarity index 100% rename from Projectiles/CloudyWaifu.png rename to Projectiles/Summon/CloudyWaifu.png diff --git a/Projectiles/CloudyWaifuAttack.png b/Projectiles/Summon/CloudyWaifuAttack.png similarity index 100% rename from Projectiles/CloudyWaifuAttack.png rename to Projectiles/Summon/CloudyWaifuAttack.png diff --git a/Projectiles/Corroslime.cs b/Projectiles/Summon/Corroslime.cs similarity index 77% rename from Projectiles/Corroslime.cs rename to Projectiles/Summon/Corroslime.cs index 4b8781ea40..dfbcf53362 100644 --- a/Projectiles/Corroslime.cs +++ b/Projectiles/Summon/Corroslime.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Corroslime : ModProjectile { @@ -49,7 +49,9 @@ namespace CalamityMod.Projectiles { if (dust == 0f) { - int num226 = 16; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 16; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -62,7 +64,14 @@ namespace CalamityMod.Projectiles } dust += 1f; } - bool flag64 = projectile.type == mod.ProjectileType("Corroslime"); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("Corroslime"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); player.AddBuff(mod.BuffType("Corroslime"), 3600); diff --git a/Projectiles/Corroslime.png b/Projectiles/Summon/Corroslime.png similarity index 100% rename from Projectiles/Corroslime.png rename to Projectiles/Summon/Corroslime.png diff --git a/Projectiles/CosmicBlast.cs b/Projectiles/Summon/CosmicBlast.cs similarity index 97% rename from Projectiles/CosmicBlast.cs rename to Projectiles/Summon/CosmicBlast.cs index 4687d64ea5..a43e5b30d0 100644 --- a/Projectiles/CosmicBlast.cs +++ b/Projectiles/Summon/CosmicBlast.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class CosmicBlast : ModProjectile { diff --git a/Projectiles/CosmicBlast.png b/Projectiles/Summon/CosmicBlast.png similarity index 100% rename from Projectiles/CosmicBlast.png rename to Projectiles/Summon/CosmicBlast.png diff --git a/Projectiles/CosmicBlastBig.cs b/Projectiles/Summon/CosmicBlastBig.cs similarity index 97% rename from Projectiles/CosmicBlastBig.cs rename to Projectiles/Summon/CosmicBlastBig.cs index 71f7435553..45bf67fd41 100644 --- a/Projectiles/CosmicBlastBig.cs +++ b/Projectiles/Summon/CosmicBlastBig.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class CosmicBlastBig : ModProjectile { diff --git a/Projectiles/CosmicBlastBig.png b/Projectiles/Summon/CosmicBlastBig.png similarity index 100% rename from Projectiles/CosmicBlastBig.png rename to Projectiles/Summon/CosmicBlastBig.png diff --git a/Projectiles/CosmicEnergy.cs b/Projectiles/Summon/CosmicEnergy.cs similarity index 86% rename from Projectiles/CosmicEnergy.cs rename to Projectiles/Summon/CosmicEnergy.cs index 315f9534fb..3df25b9b02 100644 --- a/Projectiles/CosmicEnergy.cs +++ b/Projectiles/Summon/CosmicEnergy.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class CosmicEnergy : ModProjectile { @@ -37,7 +37,20 @@ namespace CalamityMod.Projectiles public override void AI() { Lighting.AddLight((int)projectile.Center.X / 16, (int)projectile.Center.Y / 16, ((float)Main.DiscoR / 255f), ((float)Main.DiscoG / 255f), ((float)Main.DiscoB / 255f)); - bool flag64 = projectile.type == mod.ProjectileType("CosmicEnergy"); + if (projectile.localAI[0] == 0f) + { + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + projectile.localAI[0] += 1f; + } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("CosmicEnergy"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); player.AddBuff(mod.BuffType("CosmicEnergy"), 3600); @@ -170,9 +183,6 @@ namespace CalamityMod.Projectiles float num395 = (float)Main.mouseTextColor / 200f - 0.35f; num395 *= 0.2f; projectile.scale = num395 + 0.95f; - bool hasSummonerSet = modPlayer.tarraSummon || modPlayer.bloodflareSummon || modPlayer.godSlayerSummon || modPlayer.silvaSummon; - int damageStatSmall = hasSummonerSet ? 1500 : 1000; - int damageStatBig = hasSummonerSet ? 3000 : 2000; if (justSpawned) { justSpawned = false; @@ -218,7 +228,7 @@ namespace CalamityMod.Projectiles } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("CosmicBlast"), (int)((double)damageStatSmall * player.minionDamage), 2f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("CosmicBlast"), (int)((double)projectile.damage * 0.5), 2f, projectile.owner, 0f, 0f); } float num403 = 15f; Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); @@ -228,9 +238,8 @@ namespace CalamityMod.Projectiles num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num404, num405, mod.ProjectileType("CosmicBlastBig"), (int)((double)damageStatBig * player.minionDamage), 3f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num404, num405, mod.ProjectileType("CosmicBlastBig"), projectile.damage, 3f, projectile.owner, 0f, 0f); projectile.ai[0] = 100f; - return; } } } @@ -239,5 +248,10 @@ namespace CalamityMod.Projectiles { return new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, 255); } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/CosmicEnergy.png b/Projectiles/Summon/CosmicEnergy.png similarity index 100% rename from Projectiles/CosmicEnergy.png rename to Projectiles/Summon/CosmicEnergy.png diff --git a/Projectiles/Cosmilamp.cs b/Projectiles/Summon/Cosmilamp.cs similarity index 91% rename from Projectiles/Cosmilamp.cs rename to Projectiles/Summon/Cosmilamp.cs index 1e72d5b225..9a081e10e1 100644 --- a/Projectiles/Cosmilamp.cs +++ b/Projectiles/Summon/Cosmilamp.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Cosmilamp : ModProjectile { @@ -37,7 +37,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[0] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -50,7 +52,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.75f) / 255f, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.75f) / 255f, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); float num395 = (float)Main.mouseTextColor / 200f - 0.35f; num395 *= 0.2f; projectile.scale = num395 + 0.95f; diff --git a/Projectiles/Cosmilamp.png b/Projectiles/Summon/Cosmilamp.png similarity index 100% rename from Projectiles/Cosmilamp.png rename to Projectiles/Summon/Cosmilamp.png diff --git a/Projectiles/Crimslime.cs b/Projectiles/Summon/Crimslime.cs similarity index 77% rename from Projectiles/Crimslime.cs rename to Projectiles/Summon/Crimslime.cs index b1657582c8..0e7aac5d7b 100644 --- a/Projectiles/Crimslime.cs +++ b/Projectiles/Summon/Crimslime.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Crimslime : ModProjectile { @@ -49,7 +49,9 @@ namespace CalamityMod.Projectiles { if (dust == 0f) { - int num226 = 16; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 16; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -62,7 +64,14 @@ namespace CalamityMod.Projectiles } dust += 1f; } - bool flag64 = projectile.type == mod.ProjectileType("Crimslime"); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("Crimslime"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); player.AddBuff(mod.BuffType("Crimslime"), 3600); diff --git a/Projectiles/Crimslime.png b/Projectiles/Summon/Crimslime.png similarity index 100% rename from Projectiles/Crimslime.png rename to Projectiles/Summon/Crimslime.png diff --git a/Projectiles/DaedalusCrystal.cs b/Projectiles/Summon/DaedalusCrystal.cs similarity index 79% rename from Projectiles/DaedalusCrystal.cs rename to Projectiles/Summon/DaedalusCrystal.cs index f22d83b691..72f4206965 100644 --- a/Projectiles/DaedalusCrystal.cs +++ b/Projectiles/Summon/DaedalusCrystal.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class DaedalusCrystal : ModProjectile { @@ -25,12 +25,12 @@ namespace CalamityMod.Projectiles projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; - projectile.minionSlots = 0f; + projectile.minion = true; + projectile.minionSlots = 0f; projectile.timeLeft = 18000; projectile.penetrate = -1; projectile.tileCollide = false; projectile.timeLeft *= 5; - projectile.sentry = true; } public override void AI() @@ -57,7 +57,9 @@ namespace CalamityMod.Projectiles dust--; if (dust >= 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 173, 0f, 0f, 0, default(Color), 1f); @@ -65,7 +67,14 @@ namespace CalamityMod.Projectiles Main.dust[num503].scale *= 1.15f; } } - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.75f) / 255f); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.75f) / 255f); projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2) + Main.player[projectile.owner].gfxOffY - 60f; if (Main.player[projectile.owner].gravDir == -1f) @@ -141,9 +150,8 @@ namespace CalamityMod.Projectiles num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, projectileType, (int)((double)95 * player.minionDamage), 5f, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, projectileType, projectile.damage, 5f, projectile.owner, 0f, 0f); projectile.ai[0] = 50f; - return; } } } @@ -152,5 +160,10 @@ namespace CalamityMod.Projectiles { return new Color(200, 200, 200, 200); } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/DaedalusCrystal.png b/Projectiles/Summon/DaedalusCrystal.png similarity index 100% rename from Projectiles/DaedalusCrystal.png rename to Projectiles/Summon/DaedalusCrystal.png diff --git a/Projectiles/DaedalusCrystalShot.cs b/Projectiles/Summon/DaedalusCrystalShot.cs similarity index 95% rename from Projectiles/DaedalusCrystalShot.cs rename to Projectiles/Summon/DaedalusCrystalShot.cs index 0189618f7e..31efdbce27 100644 --- a/Projectiles/DaedalusCrystalShot.cs +++ b/Projectiles/Summon/DaedalusCrystalShot.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class DaedalusCrystalShot : ModProjectile { diff --git a/Projectiles/DaedalusCrystalShot.png b/Projectiles/Summon/DaedalusCrystalShot.png similarity index 100% rename from Projectiles/DaedalusCrystalShot.png rename to Projectiles/Summon/DaedalusCrystalShot.png diff --git a/Projectiles/DankCreeper.cs b/Projectiles/Summon/DankCreeper.cs similarity index 91% rename from Projectiles/DankCreeper.cs rename to Projectiles/Summon/DankCreeper.cs index df7d53bd8e..327405ac6f 100644 --- a/Projectiles/DankCreeper.cs +++ b/Projectiles/Summon/DankCreeper.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class DankCreeper : ModProjectile { @@ -40,7 +40,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[0] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -53,7 +55,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - bool flag64 = projectile.type == mod.ProjectileType("DankCreeper"); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("DankCreeper"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); player.AddBuff(mod.BuffType("DankCreeper"), 3600); diff --git a/Projectiles/DankCreeper.png b/Projectiles/Summon/DankCreeper.png similarity index 100% rename from Projectiles/DankCreeper.png rename to Projectiles/Summon/DankCreeper.png diff --git a/Projectiles/Dreadmine.cs b/Projectiles/Summon/Dreadmine.cs similarity index 96% rename from Projectiles/Dreadmine.cs rename to Projectiles/Summon/Dreadmine.cs index 7b3ce6dc76..b47a976c2d 100644 --- a/Projectiles/Dreadmine.cs +++ b/Projectiles/Summon/Dreadmine.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Dreadmine : ModProjectile { diff --git a/Projectiles/Dreadmine.png b/Projectiles/Summon/Dreadmine.png similarity index 100% rename from Projectiles/Dreadmine.png rename to Projectiles/Summon/Dreadmine.png diff --git a/Projectiles/DreadmineTurret.cs b/Projectiles/Summon/DreadmineTurret.cs similarity index 82% rename from Projectiles/DreadmineTurret.cs rename to Projectiles/Summon/DreadmineTurret.cs index bbe67ab959..762b288c3d 100644 --- a/Projectiles/DreadmineTurret.cs +++ b/Projectiles/Summon/DreadmineTurret.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class DreadmineTurret : ModProjectile { @@ -30,7 +30,20 @@ namespace CalamityMod.Projectiles public override void AI() { - projectile.frameCounter++; + if (projectile.localAI[0] == 0f) + { + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + projectile.localAI[0] += 1f; + } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + projectile.frameCounter++; if (projectile.frameCounter > 6) { projectile.frame++; @@ -107,7 +120,6 @@ namespace CalamityMod.Projectiles if (flag && Main.myPlayer == projectile.owner) { Projectile.NewProjectile(center.X, center.Y, 0f, 0f, mod.ProjectileType("Dreadmine"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); - return; } } } @@ -116,5 +128,10 @@ namespace CalamityMod.Projectiles } } } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/DreadmineTurret.png b/Projectiles/Summon/DreadmineTurret.png similarity index 100% rename from Projectiles/DreadmineTurret.png rename to Projectiles/Summon/DreadmineTurret.png diff --git a/Projectiles/DrewsSandyWaifu.cs b/Projectiles/Summon/DrewsSandyWaifu.cs similarity index 88% rename from Projectiles/DrewsSandyWaifu.cs rename to Projectiles/Summon/DrewsSandyWaifu.cs index 63aa1aaa21..b4840b7932 100644 --- a/Projectiles/DrewsSandyWaifu.cs +++ b/Projectiles/Summon/DrewsSandyWaifu.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class DrewsSandyWaifu : ModProjectile { @@ -66,7 +66,9 @@ namespace CalamityMod.Projectiles dust--; if (dust >= 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 32, 0f, 0f, 0, default(Color), 1f); @@ -74,7 +76,14 @@ namespace CalamityMod.Projectiles Main.dust[num503].scale *= 1.15f; } } - projectile.frameCounter++; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + projectile.frameCounter++; if (projectile.frameCounter > 16) { projectile.frame++; diff --git a/Projectiles/DrewsSandyWaifu.png b/Projectiles/Summon/DrewsSandyWaifu.png similarity index 100% rename from Projectiles/DrewsSandyWaifu.png rename to Projectiles/Summon/DrewsSandyWaifu.png diff --git a/Projectiles/ElementalAxe.cs b/Projectiles/Summon/ElementalAxe.cs similarity index 85% rename from Projectiles/ElementalAxe.cs rename to Projectiles/Summon/ElementalAxe.cs index 4f27d6d807..e6b366074f 100644 --- a/Projectiles/ElementalAxe.cs +++ b/Projectiles/Summon/ElementalAxe.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class ElementalAxe : ModProjectile { @@ -35,7 +35,20 @@ namespace CalamityMod.Projectiles public override void AI() { - bool flag64 = (projectile.type == mod.ProjectileType("ElementalAxe")); + if (projectile.localAI[0] == 0f) + { + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + projectile.localAI[0] += 1f; + } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = (projectile.type == mod.ProjectileType("ElementalAxe")); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); if (flag64) diff --git a/Projectiles/ElementalAxe.png b/Projectiles/Summon/ElementalAxe.png similarity index 100% rename from Projectiles/ElementalAxe.png rename to Projectiles/Summon/ElementalAxe.png diff --git a/Projectiles/FlameBlast.cs b/Projectiles/Summon/FlameBlast.cs similarity index 96% rename from Projectiles/FlameBlast.cs rename to Projectiles/Summon/FlameBlast.cs index c9c4914ca4..524d668599 100644 --- a/Projectiles/FlameBlast.cs +++ b/Projectiles/Summon/FlameBlast.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class FlameBlast : ModProjectile { diff --git a/Projectiles/FlameBlast.png b/Projectiles/Summon/FlameBlast.png similarity index 100% rename from Projectiles/FlameBlast.png rename to Projectiles/Summon/FlameBlast.png diff --git a/Projectiles/FlameBurst.cs b/Projectiles/Summon/FlameBurst.cs similarity index 96% rename from Projectiles/FlameBurst.cs rename to Projectiles/Summon/FlameBurst.cs index 581fabb269..7e1414bc68 100644 --- a/Projectiles/FlameBurst.cs +++ b/Projectiles/Summon/FlameBurst.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class FlameBurst : ModProjectile { diff --git a/Projectiles/FlameBurst.png b/Projectiles/Summon/FlameBurst.png similarity index 100% rename from Projectiles/FlameBurst.png rename to Projectiles/Summon/FlameBurst.png diff --git a/Projectiles/FrostMistFriendly.cs b/Projectiles/Summon/FrostMistFriendly.cs similarity index 55% rename from Projectiles/FrostMistFriendly.cs rename to Projectiles/Summon/FrostMistFriendly.cs index 1cce5038c0..ee6ad2ea41 100644 --- a/Projectiles/FrostMistFriendly.cs +++ b/Projectiles/Summon/FrostMistFriendly.cs @@ -6,44 +6,44 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { - public class FrostMistFriendly : ModProjectile - { - public override void SetStaticDefaults() + public class FrostMistFriendly : ModProjectile + { + public override void SetStaticDefaults() { DisplayName.SetDefault("Mist"); Main.projFrames[projectile.type] = 6; } - - public override void SetDefaults() - { - projectile.width = 20; - projectile.height = 20; - projectile.friendly = true; - projectile.ignoreWater = true; - projectile.minion = true; - projectile.minionSlots = 0f; - projectile.penetrate = 1; - projectile.timeLeft = 300; - projectile.alpha = 255; - } - public override void AI() - { - projectile.frameCounter++; + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.minion = true; + projectile.minionSlots = 0f; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.alpha = 255; + } + + public override void AI() + { + projectile.frameCounter++; if (projectile.frameCounter > 4) { - projectile.frame++; - projectile.frameCounter = 0; + projectile.frame++; + projectile.frameCounter = 0; } if (projectile.frame > 3) { - projectile.frame = 0; + projectile.frame = 0; } - if (projectile.ai[1] == 0f) - { - for (int num621 = 0; num621 < 5; num621++) + if (projectile.ai[1] == 0f) + { + for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 187, 0f, 0f, 100, default(Color), 2f); Main.dust[num622].velocity *= 3f; @@ -53,10 +53,10 @@ namespace CalamityMod.Projectiles Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; } } - projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 30); - } - if (projectile.localAI[0] == 0f) + projectile.ai[1] = 1f; + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 30); + } + if (projectile.localAI[0] == 0f) { projectile.scale -= 0.02f; projectile.alpha += 30; @@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles projectile.localAI[0] = 0f; } } - int num103 = (int)Player.FindClosest(projectile.Center, 1, 1); + int num103 = (int)Player.FindClosest(projectile.Center, 1, 1); projectile.ai[1] += 1f; if (projectile.ai[1] < 110f && projectile.ai[1] > 30f) { @@ -96,24 +96,21 @@ namespace CalamityMod.Projectiles } } projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f); - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - Texture2D texture2D13 = Main.projectileTexture[projectile.type]; + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D texture2D13 = Main.projectileTexture[projectile.type]; int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; int y6 = num214 * projectile.frame; Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); return false; - } + } - public override void Kill(int timeLeft) - { - for (int k = 0; k < 3; k++) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 187, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); - } - } - } + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, projectile.alpha); + } + } } \ No newline at end of file diff --git a/Projectiles/FrostMistFriendly.png b/Projectiles/Summon/FrostMistFriendly.png similarity index 100% rename from Projectiles/FrostMistFriendly.png rename to Projectiles/Summon/FrostMistFriendly.png diff --git a/Projectiles/FungalClump.cs b/Projectiles/Summon/FungalClump.cs similarity index 76% rename from Projectiles/FungalClump.cs rename to Projectiles/Summon/FungalClump.cs index 7c1e389116..3e01f517b0 100644 --- a/Projectiles/FungalClump.cs +++ b/Projectiles/Summon/FungalClump.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class FungalClump : ModProjectile { @@ -57,7 +57,9 @@ namespace CalamityMod.Projectiles } if (projectile.localAI[0] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -70,7 +72,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - if (Main.rand.Next(16) == 0) + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + if (Main.rand.Next(16) == 0) { Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 56, projectile.velocity.X * 0.05f, projectile.velocity.Y * 0.05f); } diff --git a/Projectiles/FungalClump.png b/Projectiles/Summon/FungalClump.png similarity index 100% rename from Projectiles/FungalClump.png rename to Projectiles/Summon/FungalClump.png diff --git a/Projectiles/GhostFire.cs b/Projectiles/Summon/GhostFire.cs similarity index 93% rename from Projectiles/GhostFire.cs rename to Projectiles/Summon/GhostFire.cs index b293599a19..c7225adb13 100644 --- a/Projectiles/GhostFire.cs +++ b/Projectiles/Summon/GhostFire.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class GhostFire : ModProjectile { diff --git a/Projectiles/GhostFire.png b/Projectiles/Summon/GhostFire.png similarity index 100% rename from Projectiles/GhostFire.png rename to Projectiles/Summon/GhostFire.png diff --git a/Projectiles/GhostlyMine.cs b/Projectiles/Summon/GhostlyMine.cs similarity index 83% rename from Projectiles/GhostlyMine.cs rename to Projectiles/Summon/GhostlyMine.cs index cfb7ee4afc..a87ef2b863 100644 --- a/Projectiles/GhostlyMine.cs +++ b/Projectiles/Summon/GhostlyMine.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class GhostlyMine : ModProjectile { @@ -34,10 +34,19 @@ namespace CalamityMod.Projectiles { if (start) { - Main.PlaySound(SoundID.Item20, projectile.position); + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + Main.PlaySound(SoundID.Item20, projectile.position); projectile.ai[1] = projectile.ai[0]; start = false; } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } Vector2 direction = Main.player[projectile.owner].Center - projectile.Center; direction.Normalize(); direction *= 9f; diff --git a/Projectiles/GhostlyMine.png b/Projectiles/Summon/GhostlyMine.png similarity index 100% rename from Projectiles/GhostlyMine.png rename to Projectiles/Summon/GhostlyMine.png diff --git a/Projectiles/GigaFlareFriendly.cs b/Projectiles/Summon/GigaFlareFriendly.cs similarity index 97% rename from Projectiles/GigaFlareFriendly.cs rename to Projectiles/Summon/GigaFlareFriendly.cs index 9ecc3360d8..d3d7ebe287 100644 --- a/Projectiles/GigaFlareFriendly.cs +++ b/Projectiles/Summon/GigaFlareFriendly.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class GigaFlareFriendly : ModProjectile { diff --git a/Projectiles/GigaFlareFriendly.png b/Projectiles/Summon/GigaFlareFriendly.png similarity index 100% rename from Projectiles/GigaFlareFriendly.png rename to Projectiles/Summon/GigaFlareFriendly.png diff --git a/Projectiles/Herring.cs b/Projectiles/Summon/Herring.cs similarity index 86% rename from Projectiles/Herring.cs rename to Projectiles/Summon/Herring.cs index 35c05f2004..b2df7584bb 100644 --- a/Projectiles/Herring.cs +++ b/Projectiles/Summon/Herring.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Herring : ModProjectile { @@ -38,7 +38,9 @@ namespace CalamityMod.Projectiles { if (dust > 0) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -50,7 +52,14 @@ namespace CalamityMod.Projectiles } dust--; } - if ((double)Math.Abs(projectile.velocity.X) > 0.2) + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + if ((double)Math.Abs(projectile.velocity.X) > 0.2) { projectile.spriteDirection = projectile.direction; } diff --git a/Projectiles/Herring.png b/Projectiles/Summon/Herring.png similarity index 100% rename from Projectiles/Herring.png rename to Projectiles/Summon/Herring.png diff --git a/Projectiles/IceClasper.cs b/Projectiles/Summon/IceClasper.cs similarity index 87% rename from Projectiles/IceClasper.cs rename to Projectiles/Summon/IceClasper.cs index 547ca481e4..192a409419 100644 --- a/Projectiles/IceClasper.cs +++ b/Projectiles/Summon/IceClasper.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class IceClasper : ModProjectile { @@ -38,7 +38,9 @@ namespace CalamityMod.Projectiles { if (dust > 0) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -50,7 +52,14 @@ namespace CalamityMod.Projectiles } dust--; } - projectile.frameCounter++; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + projectile.frameCounter++; if (projectile.frameCounter > 6) { projectile.frame++; diff --git a/Projectiles/IceClasper.png b/Projectiles/Summon/IceClasper.png similarity index 100% rename from Projectiles/IceClasper.png rename to Projectiles/Summon/IceClasper.png diff --git a/Projectiles/MechwormBody.cs b/Projectiles/Summon/MechwormBody.cs similarity index 95% rename from Projectiles/MechwormBody.cs rename to Projectiles/Summon/MechwormBody.cs index 32c3944d12..5c14584903 100644 --- a/Projectiles/MechwormBody.cs +++ b/Projectiles/Summon/MechwormBody.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class MechwormBody : ModProjectile { diff --git a/Projectiles/Summon/MechwormBody.png b/Projectiles/Summon/MechwormBody.png new file mode 100644 index 0000000000000000000000000000000000000000..dc5d42e2572f3e738436e0d1ae6bd03c205d540d GIT binary patch literal 598 zcmV-c0;&CpP)90YN26a*1mM4S`{b#>|DS_MTX2`+*Ng5u&( z1i@nI;*yF)ib|E%wraE{gh*e9ywlfv^8$|dOz+-l5nF9GoS;eE^R+`Ul%9$g;gf9!kvhfEkBfa!1VEI#4Bm@i1SBc#;P(^mkPczPFr zH_u-HaP|5v0B(<6i}e?Or#NQauZyQYVdDJ#S4_2KI@16IjT!)l_v{5=BD5Sh1x;gIC$s`5X~u_#j87A4CeL&P%e!J zVSWQqt$C}M(HmyEcK}dNbOsQ0p9^)DJJH>_=JJ|fE+$_+10c21FaXuc9N@8H$*yc4 z0LyJ^YvIFt0LrCtAlivA0RH^_7XX~Sc@c90YN26a*1mM4S`{b#>|DS_MTX2`+*Ng5u&( z1i@nI;*yF)ib|E%wraE{gh*e9ywlfv^8$|dOz+-l5nF9GoS;eE^R+`Ul%9$g;gf9!kvhfEkBfa!1VEI#4Bm@i1SBc#;P(^mkPczPFr zH_u-HaP|5v0B(<6i}e?Or#NQauZyQYVdDJ#S4_2KI@16IjT!)l_v{5=BD5Sh1x;gIC$s`5X~u_#j87A4CeL&P%e!J zVSWQqt$C}M(HmyEcK}dNbOsQ0p9^)DJJH>_=JJ|fE+$_+10c21FaXuc9N@8H$*yc4 z0LyJ^YvIFt0LrCtAlivA0RH^_7XX~Sc@c 0) + if (dust > 0) { - int num501 = 50; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 234, 0f, 0f, 0, default(Color), 1f); @@ -180,7 +180,6 @@ namespace CalamityMod.Projectiles if (projectile.alpha < 0) { projectile.alpha = 0; - return; } } } @@ -191,5 +190,11 @@ namespace CalamityMod.Projectiles spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); return false; } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 origin = new Vector2(21f, 25f); + spriteBatch.Draw(mod.GetTexture("Projectiles/Summon/MechwormHeadGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, 1f, SpriteEffects.None, 0f); + } } } diff --git a/Projectiles/Summon/MechwormHead.png b/Projectiles/Summon/MechwormHead.png new file mode 100644 index 0000000000000000000000000000000000000000..ff75841dec71f391ae5b1116f2119686a26b5d12 GIT binary patch literal 1325 zcmV+|1=9M7P)J>TZuIrI2terLYN z%n68*+Oj(U2=Y<@q;4z*;Ns+H7}v*2V1E~FS6Esd08IaR)-;}-24G;~$H?~AT}A2t zMwa*wM6#%S4FKoPjD!G}<_ZDW^l%dZ8&|D%`n9&~iB#~y-q)OR@5vJY^c+7DLYibz z`I-Qr*0%G>CWff?Q!Ggle01l%PRCP6$AC1+wd-yV0EUNtQW;wgAx*Zb;TC6{j}LqU zK-b~@(jQp;K$>jwh}Kna1|XcBUX*0}-Zudl?mq@VNl8TjFf}y}qzUK^m6TLq>qCIG zb@u_VtL0f|T%T-^mkI#-M>~N85nZB{%TLO>eXABpUqp)h!T_Ld(-Q!MQ)6zuCmK&= zrLSjsB>)AvOMNet0IGsZ>|-%oyd^oz)jD{rjXGn%8`^X&k zk6#8O$9tgRK_KmCH7?eU5<@gAGKr*CChL~SANr(suDBn71LwaEGs|yVq9Q4BekAL) zZ%F#Pym=*;sK3%1mfsuz{B_|s$9hG&?~!)^*ztXz)35jZj8nh2BpPH^#6=YCUCCR&nwb1S^IZV6y^#;VbI;#q%Rf8q)nDTc_a6(bJ}1KYk{F_a z|G@XF*P8Y8zyBTp3!nc3K+ZPvvg&p`1zdX;ra2`yAI%`>OJt1pBUfBz?~C3{MC8eu zQ`Eym5p~F=ip$OE@a!4CZ3s}k;V}S4zx&9k-2CJ&0LBN*sj{NhWMiEN+nsh1{T+g- z;&QBhXI_aRdc}`w?2Hv!PTWdi{FW=;W6Jzxlm@VB42If6gF zNM_6jNFq@`Ybh-=<;jT?&IK+K2ed( zvFB}(yt}aufbNd|MHR%g*LWJ=-bYdv-Oq43Fw6Xtm2ry<6dKznt zRd-_u4GtPVs>q{AC6QM+H1aM03l~m1>gIRYt~9Tp$RR1~ z?6H1SA}jxJcQcUoyREy8Rm)5G;^!99=aao`zab=ts7Ml%S<5=F+_uFGq;@)6<#bdo zs@T81V}2%b9-3cri2A2J-8|1;I%i|Ad!~}L%F30&YtKpQZFbao(D=!U`evuUMA?+~ zrhn5cNe)r{(P?y9uDR)$TV`&a<6`f4&+kC?9+vofQ0*mtZXv&!`|rFnpTvC?$;wA( zE>1?~g?{W+441TZv;gpG!|P5tuDzdI_#1PH;7D~*WQ>w&#qx^e*E(Cad-_tpQo4i6QzQZpT2=K16Rh00000NkvXXu0mjff<%t% literal 0 HcmV?d00001 diff --git a/Projectiles/Summon/MechwormHeadGlow.png b/Projectiles/Summon/MechwormHeadGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..5c3251c4ec7ab817ab91a0c7d7c9480fcb75ebbc GIT binary patch literal 679 zcmV;Y0$BZtP)FaMZ*k#jE*3DnjU6L)?^QAb8<0YBzQ@y6HOTf9P*W=sF1Ts;i1*UT2{# z#F`ZZ7R+@cnJzMzyr+w^V|(B2b!*7BBk$*CyyrRRd7krq&W|1N@$vET@$os!7>y1* zy1xd%QZ5I;Uh$6r*f}g30R5q$0O$#xHvm$m2|&lfWJB=+jV9V`I=l=Mqq6`M4}Sx& zvHi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d-ZWL`F?00000NkvXXu0mjfvId4x literal 0 HcmV?d00001 diff --git a/Projectiles/MiniSandShark.cs b/Projectiles/Summon/MiniSandShark.cs similarity index 96% rename from Projectiles/MiniSandShark.cs rename to Projectiles/Summon/MiniSandShark.cs index db3cdbaebd..06af711820 100644 --- a/Projectiles/MiniSandShark.cs +++ b/Projectiles/Summon/MiniSandShark.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class MiniSandShark : ModProjectile { diff --git a/Projectiles/MiniSandShark.png b/Projectiles/Summon/MiniSandShark.png similarity index 100% rename from Projectiles/MiniSandShark.png rename to Projectiles/Summon/MiniSandShark.png diff --git a/Projectiles/PhantomGuy.cs b/Projectiles/Summon/PhantomGuy.cs similarity index 85% rename from Projectiles/PhantomGuy.cs rename to Projectiles/Summon/PhantomGuy.cs index 08305050b5..2dddf7510c 100644 --- a/Projectiles/PhantomGuy.cs +++ b/Projectiles/Summon/PhantomGuy.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class PhantomGuy : ModProjectile { @@ -36,7 +36,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[0] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -48,7 +50,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - float num633 = 700f; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + float num633 = 700f; float num634 = 1300f; float num635 = 2600f; float num636 = 600f; @@ -218,5 +227,10 @@ namespace CalamityMod.Projectiles { return new Color(100, 250, 250, projectile.alpha); } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/PhantomGuy.png b/Projectiles/Summon/PhantomGuy.png similarity index 100% rename from Projectiles/PhantomGuy.png rename to Projectiles/Summon/PhantomGuy.png diff --git a/Projectiles/PhoenixFireFriendly.cs b/Projectiles/Summon/PhoenixFireFriendly.cs similarity index 95% rename from Projectiles/PhoenixFireFriendly.cs rename to Projectiles/Summon/PhoenixFireFriendly.cs index 0d1bb95cc7..f57c9fffed 100644 --- a/Projectiles/PhoenixFireFriendly.cs +++ b/Projectiles/Summon/PhoenixFireFriendly.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class PhoenixFireFriendly : ModProjectile { diff --git a/Projectiles/PhoenixFireFriendly.png b/Projectiles/Summon/PhoenixFireFriendly.png similarity index 100% rename from Projectiles/PhoenixFireFriendly.png rename to Projectiles/Summon/PhoenixFireFriendly.png diff --git a/Projectiles/ProfanedEnergy.cs b/Projectiles/Summon/ProfanedEnergy.cs similarity index 80% rename from Projectiles/ProfanedEnergy.cs rename to Projectiles/Summon/ProfanedEnergy.cs index cda21cbb14..facede2fc8 100644 --- a/Projectiles/ProfanedEnergy.cs +++ b/Projectiles/Summon/ProfanedEnergy.cs @@ -5,11 +5,11 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class ProfanedEnergy : ModProjectile { - public float count = 0; + public float count = 0f; public override void SetStaticDefaults() { @@ -42,7 +42,9 @@ namespace CalamityMod.Projectiles } if (count == 0f) { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 20); for (int num621 = 0; num621 < 5; num621++) { int num622 = Dust.NewDust(new Vector2(projectile.Center.X, projectile.Center.Y), projectile.width, projectile.height, 244, 0f, 0f, 100, default(Color), 2f); @@ -63,7 +65,14 @@ namespace CalamityMod.Projectiles } count += 1f; } - if (projectile.owner == Main.myPlayer) + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + if (projectile.owner == Main.myPlayer) { if (projectile.ai[0] != 0f) { @@ -138,11 +147,15 @@ namespace CalamityMod.Projectiles num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num404, num405, projectileType, 170, projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num404, num405, projectileType, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); projectile.ai[0] = 8f; - return; } } } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/ProfanedEnergy.png b/Projectiles/Summon/ProfanedEnergy.png similarity index 100% rename from Projectiles/ProfanedEnergy.png rename to Projectiles/Summon/ProfanedEnergy.png diff --git a/Projectiles/ReaverOrb.cs b/Projectiles/Summon/ReaverOrb.cs similarity index 79% rename from Projectiles/ReaverOrb.cs rename to Projectiles/Summon/ReaverOrb.cs index 733a686376..584c65d89d 100644 --- a/Projectiles/ReaverOrb.cs +++ b/Projectiles/Summon/ReaverOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class ReaverOrb : ModProjectile { @@ -25,13 +25,13 @@ namespace CalamityMod.Projectiles projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; - projectile.minionSlots = 0f; + projectile.minion = true; + projectile.minionSlots = 0f; projectile.timeLeft = 18000; projectile.alpha = 50; projectile.penetrate = -1; projectile.tileCollide = false; projectile.timeLeft *= 5; - projectile.sentry = true; } public override void AI() @@ -58,7 +58,9 @@ namespace CalamityMod.Projectiles dust--; if (dust >= 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 157, 0f, 0f, 0, default(Color), 1f); @@ -66,7 +68,14 @@ namespace CalamityMod.Projectiles Main.dust[num503].scale *= 1.15f; } } - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 1f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 1f) / 255f, ((255 - projectile.alpha) * 0f) / 255f); projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2) + Main.player[projectile.owner].gfxOffY - 60f; if (Main.player[projectile.owner].gravDir == -1f) @@ -136,15 +145,19 @@ namespace CalamityMod.Projectiles } value15.Normalize(); value15 *= (float)Main.rand.Next(90, 121) * 0.1f; - int spore = Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, value15.X, value15.Y, 569 + Main.rand.Next(3), (int)(80f * player.minionDamage), 1.5f, projectile.owner, 0f, 0f); + int spore = Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, value15.X, value15.Y, 569 + Main.rand.Next(3), projectile.damage, 1.5f, projectile.owner, 0f, 0f); Main.projectile[spore].minion = true; Main.projectile[spore].minionSlots = 0f; } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 77); projectile.ai[0] = 50f; - return; } } } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/ReaverOrb.png b/Projectiles/Summon/ReaverOrb.png similarity index 100% rename from Projectiles/ReaverOrb.png rename to Projectiles/Summon/ReaverOrb.png diff --git a/Projectiles/RedDevil.cs b/Projectiles/Summon/RedDevil.cs similarity index 93% rename from Projectiles/RedDevil.cs rename to Projectiles/Summon/RedDevil.cs index a8114accb0..db6609bf3a 100644 --- a/Projectiles/RedDevil.cs +++ b/Projectiles/Summon/RedDevil.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class RedDevil : ModProjectile { @@ -18,7 +18,6 @@ namespace CalamityMod.Projectiles Main.projFrames[projectile.type] = 5; Main.projPet[projectile.type] = true; ProjectileID.Sets.MinionSacrificable[projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; } public override void SetDefaults() @@ -28,12 +27,10 @@ namespace CalamityMod.Projectiles projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; - projectile.minionSlots = 0f; projectile.timeLeft = 18000; projectile.penetrate = -1; projectile.tileCollide = false; projectile.timeLeft *= 5; - projectile.minion = true; } public override void AI() @@ -252,12 +249,17 @@ namespace CalamityMod.Projectiles Vector2 value19 = vector46 - projectile.Center; value19.Normalize(); value19 *= scaleFactor3; - int num659 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value19.X, value19.Y, num658, 10000, 0f, Main.myPlayer, 0f, 0f); + int num659 = Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value19.X, value19.Y, num658, projectile.damage, 0f, Main.myPlayer, 0f, 0f); Main.projectile[num659].timeLeft = 300; projectile.netUpdate = true; } } } } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/RedDevil.png b/Projectiles/Summon/RedDevil.png similarity index 100% rename from Projectiles/RedDevil.png rename to Projectiles/Summon/RedDevil.png diff --git a/Projectiles/SandBolt.cs b/Projectiles/Summon/SandBolt.cs similarity index 93% rename from Projectiles/SandBolt.cs rename to Projectiles/Summon/SandBolt.cs index 1f105b1ced..52cb9180ef 100644 --- a/Projectiles/SandBolt.cs +++ b/Projectiles/Summon/SandBolt.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SandBolt : ModProjectile { diff --git a/Projectiles/SandBolt.png b/Projectiles/Summon/SandBolt.png similarity index 100% rename from Projectiles/SandBolt.png rename to Projectiles/Summon/SandBolt.png diff --git a/Projectiles/SandMark.cs b/Projectiles/Summon/SandMark.cs similarity index 96% rename from Projectiles/SandMark.cs rename to Projectiles/Summon/SandMark.cs index 54023d0f34..49f9fb04fd 100644 --- a/Projectiles/SandMark.cs +++ b/Projectiles/Summon/SandMark.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SandMark : ModProjectile { diff --git a/Projectiles/SandMark.png b/Projectiles/Summon/SandMark.png similarity index 100% rename from Projectiles/SandMark.png rename to Projectiles/Summon/SandMark.png diff --git a/Projectiles/SandTornado.cs b/Projectiles/Summon/SandTornado.cs similarity index 96% rename from Projectiles/SandTornado.cs rename to Projectiles/Summon/SandTornado.cs index 8c048f17b3..22fc225b09 100644 --- a/Projectiles/SandTornado.cs +++ b/Projectiles/Summon/SandTornado.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SandTornado : ModProjectile { diff --git a/Projectiles/SandTornado.png b/Projectiles/Summon/SandTornado.png similarity index 100% rename from Projectiles/SandTornado.png rename to Projectiles/Summon/SandTornado.png diff --git a/Projectiles/Sandnado.cs b/Projectiles/Summon/Sandnado.cs similarity index 91% rename from Projectiles/Sandnado.cs rename to Projectiles/Summon/Sandnado.cs index 92ac640bd3..a824b030dc 100644 --- a/Projectiles/Sandnado.cs +++ b/Projectiles/Summon/Sandnado.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Sandnado : ModProjectile { @@ -39,7 +39,9 @@ namespace CalamityMod.Projectiles { if (projectile.localAI[1] == 0f) { - int num226 = 36; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 36; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -52,7 +54,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[1] += 1f; } - bool flag64 = projectile.type == mod.ProjectileType("Sandnado"); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("Sandnado"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); player.AddBuff(mod.BuffType("Sandnado"), 3600); @@ -295,5 +304,10 @@ namespace CalamityMod.Projectiles Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); return false; } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/Sandnado.png b/Projectiles/Summon/Sandnado.png similarity index 100% rename from Projectiles/Sandnado.png rename to Projectiles/Summon/Sandnado.png diff --git a/Projectiles/SandyWaifu.cs b/Projectiles/Summon/SandyWaifu.cs similarity index 88% rename from Projectiles/SandyWaifu.cs rename to Projectiles/Summon/SandyWaifu.cs index b9b4abe700..2f5bc00bcb 100644 --- a/Projectiles/SandyWaifu.cs +++ b/Projectiles/Summon/SandyWaifu.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SandyWaifu : ModProjectile { @@ -65,7 +65,9 @@ namespace CalamityMod.Projectiles dust--; if (dust >= 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 32, 0f, 0f, 0, default(Color), 1f); @@ -73,7 +75,14 @@ namespace CalamityMod.Projectiles Main.dust[num503].scale *= 1.15f; } } - if ((double)Math.Abs(projectile.velocity.X) > 0.2) + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + if ((double)Math.Abs(projectile.velocity.X) > 0.2) { projectile.spriteDirection = -projectile.direction; } diff --git a/Projectiles/SandyWaifu.png b/Projectiles/Summon/SandyWaifu.png similarity index 100% rename from Projectiles/SandyWaifu.png rename to Projectiles/Summon/SandyWaifu.png diff --git a/Projectiles/Shroomling.png b/Projectiles/Summon/Shroomling.png similarity index 100% rename from Projectiles/Shroomling.png rename to Projectiles/Summon/Shroomling.png diff --git a/Projectiles/SilvaCrystal.cs b/Projectiles/Summon/SilvaCrystal.cs similarity index 88% rename from Projectiles/SilvaCrystal.cs rename to Projectiles/Summon/SilvaCrystal.cs index 1271c18036..554f988728 100644 --- a/Projectiles/SilvaCrystal.cs +++ b/Projectiles/Summon/SilvaCrystal.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SilvaCrystal : ModProjectile { @@ -23,18 +23,31 @@ namespace CalamityMod.Projectiles projectile.width = 32; projectile.height = 32; projectile.ignoreWater = true; - projectile.minionSlots = 0f; + projectile.minion = true; + projectile.minionSlots = 0f; projectile.timeLeft = 18000; projectile.alpha = 255; projectile.tileCollide = false; projectile.timeLeft *= 5; - projectile.sentry = true; projectile.penetrate = -1; } public override void AI() { - bool flag64 = projectile.type == mod.ProjectileType("SilvaCrystal"); + if (projectile.localAI[1] == 0f) + { + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + projectile.localAI[1] += 1f; + } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("SilvaCrystal"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); if (!modPlayer.silvaSummon) @@ -213,5 +226,10 @@ namespace CalamityMod.Projectiles } return false; } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/SilvaCrystal.png b/Projectiles/Summon/SilvaCrystal.png similarity index 100% rename from Projectiles/SilvaCrystal.png rename to Projectiles/Summon/SilvaCrystal.png diff --git a/Projectiles/SilvaCrystalExplosion.cs b/Projectiles/Summon/SilvaCrystalExplosion.cs similarity index 97% rename from Projectiles/SilvaCrystalExplosion.cs rename to Projectiles/Summon/SilvaCrystalExplosion.cs index abb078c052..bfc4465edf 100644 --- a/Projectiles/SilvaCrystalExplosion.cs +++ b/Projectiles/Summon/SilvaCrystalExplosion.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SilvaCrystalExplosion : ModProjectile { diff --git a/Projectiles/SilvaCrystalExplosion.png b/Projectiles/Summon/SilvaCrystalExplosion.png similarity index 100% rename from Projectiles/SilvaCrystalExplosion.png rename to Projectiles/Summon/SilvaCrystalExplosion.png diff --git a/Projectiles/SirenLure.cs b/Projectiles/Summon/SirenLure.cs similarity index 79% rename from Projectiles/SirenLure.cs rename to Projectiles/Summon/SirenLure.cs index d77c507147..d6f935e5fa 100644 --- a/Projectiles/SirenLure.cs +++ b/Projectiles/Summon/SirenLure.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SirenLure : ModProjectile { @@ -15,24 +15,24 @@ namespace CalamityMod.Projectiles public override void SetStaticDefaults() { DisplayName.SetDefault("Siren Lure"); - Main.projFrames[projectile.type] = 4; + Main.projFrames[projectile.type] = 6; Main.projPet[projectile.type] = true; ProjectileID.Sets.MinionSacrificable[projectile.type] = true; } public override void SetDefaults() { - projectile.width = 120; + projectile.width = 70; projectile.height = 120; projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; - projectile.minionSlots = 0f; + projectile.minion = true; + projectile.minionSlots = 0f; projectile.timeLeft = 18000; projectile.penetrate = -1; projectile.tileCollide = false; projectile.timeLeft *= 5; - projectile.sentry = true; } public override void AI() @@ -58,7 +58,9 @@ namespace CalamityMod.Projectiles } if (dust > 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 33, 0f, 0f, 0, default(Color), 1f); @@ -67,14 +69,21 @@ namespace CalamityMod.Projectiles } dust--; } - Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f, ((255 - projectile.alpha) * 1.5f) / 255f); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + Lighting.AddLight(projectile.Center, 0f, 0.25f, 1.5f); projectile.frameCounter++; if (projectile.frameCounter > 12) { projectile.frame++; projectile.frameCounter = 0; } - if (projectile.frame > 3) + if (projectile.frame > 5) { projectile.frame = 0; } @@ -159,8 +168,6 @@ namespace CalamityMod.Projectiles projectileType = mod.ProjectileType("SirenSongFriendly"); } float num403 = Main.rand.Next(12, 20); - int damage = NPC.downedMoonlord ? 200 : 80; - float damageMult = CalamityWorld.downedDoG ? 2f : 1f; Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); float num404 = num516 - vector29.X; float num405 = num517 - vector29.Y; @@ -168,11 +175,20 @@ namespace CalamityMod.Projectiles num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, projectileType, (int)((float)damage * damageMult), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, projectileType, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); projectile.ai[0] = 12f; - return; } } } - } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, 200); + } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/Summon/SirenLure.png b/Projectiles/Summon/SirenLure.png new file mode 100644 index 0000000000000000000000000000000000000000..4823435d44612cb88068880f37448fdf60d48766 GIT binary patch literal 18077 zcmZ6zcR1DWA3y$*QbdxG5z-(t=U6#b5z08o-s9LDWN(s@O(Mr0aqK;^rLwZu$tIb{ z$~v~+>v(^@zw3K_|Khs5)_p(MSuzrO5&!_mUcY+z2K*@l0ED79h``_0 z{KlFA;6CvB1*H4QeMaPAFm=OUPH2<2v}#J z;O}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kV6d55JX~$hZAF1#C$Bhz&W-N%ef+BBu(%mZk_2Aw{6GI5 z|J@~rJ;SS`K0XP~YV-~quJ#39*j4`oxEs?YSOFWa87ll(ZGwY)m|^+ zWUU=^ex!q54Q9Pd&(6X+uTI`uLXS{*P+oa>N!#%?dg3%~lq2k_LEVGI`*4DXt1J9SW_95l7eauu4(7mRnEe080E6+<52LRcKWnl)lcZ1L+HbI2FFZQ%!Q}xBBDtWF)Dsmr?l{=V2jE z;~Qr`7&oTp>b(|V2bZfG_ja{sK~nDhFW=-Y{?M!DjX`lKu0|Sfqx?K6VI>HXns{lg zz)3w1!upbjAr2d7McL+eaYcPmLLGXf*3mn>y1V@k5AOYVqwHt^R+uv{Ww(i?1%vn1 zUR&{T5{a_epn9h^y@@Ut>uSmS#J=MdNz;xK@GK4)-L!}1cnfTrH*)#Wvuk>FHd2gz+30*=B7 zu1T(+>3iE7t)68+3_q7oe@6kjmX6eO6l8J4jkFnQ>^=)BS`O1vv>ANK30&cO^M+c2 zquL>HQ74V1ze!0JOL$qmobLNcQp(@cq!j;vN?kZB3Rkwf zxHy_e=OlQNqyDv?EWm`fJ$;$F({dWpx=5=9*0}Dtdg}&joF4VVWwmQXzv4;r1YTQS h`AJK#m*dtlO`xwZ5{8qmcsUS`J?~< literal 0 HcmV?d00001 diff --git a/Tiles/Astral/AstralChestLocked.cs b/Tiles/Astral/AstralChestLocked.cs new file mode 100644 index 0000000000..ac2f790e07 --- /dev/null +++ b/Tiles/Astral/AstralChestLocked.cs @@ -0,0 +1,235 @@ +using System; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.Enums; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; +using Terraria.ObjectData; +using Terraria.GameInput; +using Terraria.GameContent.Achievements; + +namespace CalamityMod.Tiles.Astral +{ + public class AstralChestLocked : ModTile + { + public override void SetDefaults() + { + Main.tileSpelunker[Type] = true; + Main.tileContainer[Type] = true; + Main.tileShine2[Type] = true; + Main.tileShine[Type] = 1200; + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileValue[Type] = 500; + TileID.Sets.HasOutlines[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 18 }; + TileObjectData.newTile.HookCheck = new PlacementHook(new Func(Chest.FindEmptyChest), -1, 0, true); + TileObjectData.newTile.HookPostPlaceMyPlayer = new PlacementHook(new Func(Chest.AfterPlacement_Hook), -1, 0, false); + TileObjectData.newTile.AnchorInvalidTiles = new int[] { 127 }; + TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.LavaDeath = false; + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); + TileObjectData.addTile(Type); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Astral Chest"); + AddMapEntry(new Color(174, 129, 92), name, MapChestName); + dustType = mod.DustType("AstralBasic"); + disableSmartCursor = true; + adjTiles = new int[] { TileID.Containers }; + chest = "Astral Chest"; + chestDrop = mod.ItemType("AstralChest"); + } + + public override bool HasSmartInteract() + { + return true; + } + + public string MapChestName(string name, int i, int j) + { + int left = i; + int top = j; + Tile tile = Main.tile[i, j]; + if (tile == null) + { + return name; + } + if (tile.frameX % 36 != 0) + { + left--; + } + if (tile.frameY != 0) + { + top--; + } + int chest = Chest.FindChest(left, top); + string newName = name; + if (Chest.isLocked(left, top)) + { + newName = "Locked " + newName; + } + if (chest == -1 || Main.chest[chest].name == "") + { + return newName; + } + else + { + return newName + ": " + Main.chest[chest].name; + } + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = 1; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 32, 32, chestDrop); + Chest.DestroyChest(i, j); + } + + public override void RightClick(int i, int j) + { + Player player = Main.LocalPlayer; + Tile tile = Main.tile[i, j]; + Main.mouseRightRelease = false; + int left = i; + int top = j; + if (tile.frameX % 36 != 0) + { + left--; + } + if (tile.frameY != 0) + { + top--; + } + if (player.sign >= 0) + { + Main.PlaySound(SoundID.MenuClose); + player.sign = -1; + Main.editSign = false; + Main.npcChatText = ""; + } + if (Main.editChest) + { + Main.PlaySound(SoundID.MenuTick); + Main.editChest = false; + Main.npcChatText = ""; + } + if (player.editedChestName) + { + NetMessage.SendData(33, -1, -1, NetworkText.FromLiteral(Main.chest[player.chest].name), player.chest, 1f, 0f, 0f, 0, 0, 0); + player.editedChestName = false; + } + if (Main.netMode == 1 && Main.tile[left, top].frameX < 72) + { + if (left == player.chestX && top == player.chestY && player.chest >= 0) + { + player.chest = -1; + Recipe.FindRecipes(); + Main.PlaySound(SoundID.MenuClose); + } + else + { + NetMessage.SendData(31, -1, -1, null, left, (float)top, 0f, 0f, 0, 0, 0); + Main.stackSplit = 600; + } + } + else + { + if (Chest.isLocked(left, top)) + { + if (!CalamityWorld.downedStarGod) + { + return; + } + if (Chest.Unlock(left, top)) + { + AchievementsHelper.NotifyProgressionEvent(AchievementHelperID.Events.UnlockedBiomeChest); + if (Main.netMode == NetmodeID.MultiplayerClient) + { + NetMessage.SendData(MessageID.Unlock, -1, -1, null, player.whoAmI, 1f, left, top); + } + } + } + else + { + int chest = Chest.FindChest(left, top); + if (chest >= 0) + { + Main.stackSplit = 600; + if (chest == player.chest) + { + player.chest = -1; + Main.PlaySound(SoundID.MenuClose); + } + else + { + player.chest = chest; + Main.playerInventory = true; + if (PlayerInput.GrappleAndInteractAreShared) + { + PlayerInput.Triggers.JustPressed.Grapple = false; + } + Main.recBigList = false; + player.chestX = left; + player.chestY = top; + Main.PlaySound(player.chest < 0 ? SoundID.MenuOpen : SoundID.MenuTick); + } + Recipe.FindRecipes(); + } + } + } + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + Tile tile = Main.tile[i, j]; + int left = i; + int top = j; + if (tile.frameX % 36 != 0) + { + left--; + } + if (tile.frameY != 0) + { + top--; + } + int chest = Chest.FindChest(left, top); + player.showItemIcon2 = -1; + if (chest < 0) + { + player.showItemIconText = Language.GetTextValue("LegacyChestType.0"); + } + else + { + player.showItemIconText = Main.chest[chest].name.Length > 0 ? Main.chest[chest].name : "Astral Chest"; + if (player.showItemIconText == "Astral Chest") + { + player.showItemIcon2 = mod.ItemType("AstralChestLocked"); + player.showItemIconText = ""; + } + } + player.noThrow = 2; + player.showItemIcon = true; + } + + public override void MouseOverFar(int i, int j) + { + MouseOver(i, j); + Player player = Main.LocalPlayer; + if (player.showItemIconText == "") + { + player.showItemIcon = false; + player.showItemIcon2 = 0; + } + } + } +} \ No newline at end of file diff --git a/Tiles/Astral/AstralChestLocked.png b/Tiles/Astral/AstralChestLocked.png new file mode 100644 index 0000000000000000000000000000000000000000..e89b474a0aefe1484f1541d0502d3c90ad4466b5 GIT binary patch literal 2292 zcmVXi$NIkrJtjRKUM5vvZR(yXT(Wd$-+l(z!3^p1r$gXTNV| z&)>}4+?*^w-BlOk7#_!gSZ^?$>h1DiERM+hu_Wh&+go5T;RBTNNlpSjm>fie|UWT?h4t zugHh8dSNG&wHpecBunEKMwZ3T|LET?v>?rWI6xu~(m^~BK0=sd3X~!&zxp9yboqZYzEaTAfu~45nu^!5= z%07hh?xshe+;gB3%JD0YDA)ad^bFKXe>?@{*ZZ2G>^S{B$iVwTktY}*AQ ze(+AkBBn1YQtET&yb1LQ!*NAJ_wZ2WMU-ij1Q0IM^ z$b&F(e1tH^6v#JmrqLOh!SJ^}gRhIu{Q_n4wELkfDEtS?CGC$xxpvHZPRDk$WSed2m-m2=g?-6$Q$r`H!OhQn3~RArOI0}wuijNTHO+(^VpdKfTn7_4fWS}kn&~aQjzNd09 z)c-oX8p^B3EroJw{aNKaQ+uWdGhI(NvrQh;bCKMp=i}|9EKCSPg){+e0+@&}wUaSn z+?+~^%VE4C%Y~s7L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@N{9UG2FXI=>LauApytp5UM|xZ~rL08z7dD)AhUY8yTEgJX7Mt(&00000 NNkvXXu0mjf002%DSf2m@ literal 0 HcmV?d00001 diff --git a/Tiles/BlueCandle.cs b/Tiles/BlueCandle.cs new file mode 100644 index 0000000000..4d919c90d1 --- /dev/null +++ b/Tiles/BlueCandle.cs @@ -0,0 +1,55 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles +{ + public class BlueCandle : ModTile + { + public override void SetDefaults() + { + Main.tileLighted[Type] = true; + Main.tileFrameImportant[Type] = true; + Main.tileLavaDeath[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2); + TileObjectData.addTile(Type); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Weightless Candle"); + AddMapEntry(new Color(238, 145, 105), name); + animationFrameHeight = 34; + } + + public override void AnimateTile(ref int frame, ref int frameCounter) + { + frameCounter++; + if (frameCounter >= 6) + { + frame = (frame + 1) % 6; + frameCounter = 0; + } + } + + public override void NearbyEffects(int i, int j, bool closer) + { + Player player = Main.LocalPlayer; + if (!player.dead && player.active) + player.AddBuff(mod.BuffType("BlueSpeedCandle"), 20); + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.35f; + g = 0.55f; + b = 0.85f; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("BlueCandle")); + } + } +} diff --git a/Tiles/BlueCandle.png b/Tiles/BlueCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..db4aea46c88c1ad53f5c796b4694b6cf772dd3fd GIT binary patch literal 793 zcmV+!1LpjRP)MbSX9kW*>>z^e#F59&>nS}0Y73SI=gds7eViE z>RMem0UIxH?*M$A^UVgVc`#Y<(~*pB@ac=6*6KmWu;YQda530Lz0b|2-{)H09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o9#Z{Xxcs_|d2id+oX%+tT*BVpxk9>ywA8Y< zG18{~i|fbaV{P5wF}^hs2)LGku>b8@JPC#T#8sSAI3Y&RsNk}ng+LYE>kLxbxc3dk z73kCmq(ywfGF5mqq_*vXA=ssGrdnLJ%E;wi7{fy7PnFWZc}XQE*yssGj%{*O2g$p_ zAAp&PVHW+kWDs0$LFjso>d=NYi56>ORx&P#si7fNYx9l~P!89?-Z#s22^t2O#l$N) nBA4ee@=_}Q)j4h5-G5+KIaI;<({Z5{8DMR3%N%$8?%)3dOFrpM diff --git a/Tiles/CalamityGlobalTile.cs b/Tiles/CalamityGlobalTile.cs index 3c5dce85a2..f51c603834 100644 --- a/Tiles/CalamityGlobalTile.cs +++ b/Tiles/CalamityGlobalTile.cs @@ -12,580 +12,569 @@ using CalamityMod.NPCs; namespace CalamityMod.Tiles { - public class CalamityGlobalTile : GlobalTile - { - public static ushort[] PlantTypes = new ushort[] - { - TileID.Plants, - TileID.CorruptPlants, - TileID.JunglePlants, - TileID.MushroomPlants, - TileID.Plants2, - TileID.JunglePlants2, - TileID.HallowedPlants, - TileID.HallowedPlants2, - TileID.FleshWeeds, - (ushort)CalamityMod.Instance.TileType("AstralShortPlants"), - (ushort)CalamityMod.Instance.TileType("AstralTallPlants") - }; + public class CalamityGlobalTile : GlobalTile + { + public static ushort[] PlantTypes = new ushort[] + { + TileID.Plants, + TileID.CorruptPlants, + TileID.JunglePlants, + TileID.MushroomPlants, + TileID.Plants2, + TileID.JunglePlants2, + TileID.HallowedPlants, + TileID.HallowedPlants2, + TileID.FleshWeeds, + (ushort)CalamityMod.Instance.TileType("AstralShortPlants"), + (ushort)CalamityMod.Instance.TileType("AstralTallPlants") + }; - public override bool TileFrame(int i, int j, int type, ref bool resetFrame, ref bool noBreak) - { - for (int k = 0; k < PlantTypes.Length; k++) - { - if (PlantTypes[k] == type) - { - CustomTileFraming.CheckPlants(i, j); - return false; - } - } - if (type == TileID.Vines || type == TileID.CrimsonVines || type == TileID.HallowedVines || type == mod.TileType("AstralVines")) - { - CustomTileFraming.VineFrame(i, j); - return false; - } - return base.TileFrame(i, j, type, ref resetFrame, ref noBreak); - } + public override bool TileFrame(int i, int j, int type, ref bool resetFrame, ref bool noBreak) + { + for (int k = 0; k < PlantTypes.Length; k++) + { + if (PlantTypes[k] == type) + { + CustomTileFraming.CheckPlants(i, j); + return false; + } + } + if (type == TileID.Vines || type == TileID.CrimsonVines || type == TileID.HallowedVines || type == mod.TileType("AstralVines")) + { + CustomTileFraming.VineFrame(i, j); + return false; + } + return base.TileFrame(i, j, type, ref resetFrame, ref noBreak); + } - public override void PostDraw(int i, int j, int type, SpriteBatch spriteBatch) - { - Tile tile = Main.tile[i, j]; + public override void PostDraw(int i, int j, int type, SpriteBatch spriteBatch) + { + Tile tile = Main.tile[i, j]; - if (type == TileID.Cactus) - { - //GRABBING VARIABLES FOR CERTAIN THINGS - Vector2 zero = new Vector2(Main.offScreenRange, Main.offScreenRange); - if (Main.drawToScreen) - zero = Vector2.Zero; - //TESTING STUFF - int frameX = tile.frameX; - int frameY = tile.frameY; - bool astralCactus = false; - if (!Main.canDrawColorTile(i, j)) - { - int xTile = i; - if (frameX == 36) - { - xTile--; - } - if (frameX == 54) - { - xTile++; - } - if (frameX == 108) - { - if (frameY == 18) - { - xTile--; - } - else - { - xTile++; - } - } - int yTile = j; - bool flag = false; - if (Main.tile[xTile, yTile].type == 80 && Main.tile[xTile, yTile].active()) - { - flag = true; - } - while (!Main.tile[xTile, yTile].active() || !Main.tileSolid[(int)Main.tile[xTile, yTile].type] || !flag) - { - if (Main.tile[xTile, yTile].type == 80 && Main.tile[xTile, yTile].active()) - { - flag = true; - } - yTile++; - if (yTile > i + 20) - { - break; - } - } - //CACTUS CHECK - if (Main.tile[xTile, yTile].type == (ushort)mod.TileType("AstralSand")) - { - astralCactus = true; - } - } - //Draw Glow - if (astralCactus) - { - spriteBatch.Draw(CalamityMod.AstralCactusGlowTexture, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y)) + zero, new Rectangle((int)frameX, (int)frameY, 16, 18), Color.White * 0.75f, 0f, default(Vector2), 1f, SpriteEffects.None, 0f); - } - return; - } - } + if (type == TileID.Cactus) + { + //GRABBING VARIABLES FOR CERTAIN THINGS + Vector2 zero = new Vector2(Main.offScreenRange, Main.offScreenRange); + if (Main.drawToScreen) + zero = Vector2.Zero; + //TESTING STUFF + int frameX = tile.frameX; + int frameY = tile.frameY; + bool astralCactus = false; + if (!Main.canDrawColorTile(i, j)) + { + int xTile = i; + if (frameX == 36) + { + xTile--; + } + if (frameX == 54) + { + xTile++; + } + if (frameX == 108) + { + if (frameY == 18) + { + xTile--; + } + else + { + xTile++; + } + } + int yTile = j; + bool flag = false; + if (Main.tile[xTile, yTile].type == 80 && Main.tile[xTile, yTile].active()) + { + flag = true; + } + while (!Main.tile[xTile, yTile].active() || !Main.tileSolid[(int)Main.tile[xTile, yTile].type] || !flag) + { + if (Main.tile[xTile, yTile].type == 80 && Main.tile[xTile, yTile].active()) + { + flag = true; + } + yTile++; + if (yTile > i + 20) + { + break; + } + } + //CACTUS CHECK + if (Main.tile[xTile, yTile].type == (ushort)mod.TileType("AstralSand")) + { + astralCactus = true; + } + } + //Draw Glow + if (astralCactus) + { + spriteBatch.Draw(CalamityMod.AstralCactusGlowTexture, new Vector2((float)(i * 16 - (int)Main.screenPosition.X), (float)(j * 16 - (int)Main.screenPosition.Y)) + zero, new Rectangle((int)frameX, (int)frameY, 16, 18), Color.White * 0.75f, 0f, default(Vector2), 1f, SpriteEffects.None, 0f); + } + return; + } + } - public override bool Drop(int i, int j, int type) - { - if (type == 28) - { - int x = Main.maxTilesX; - int y = Main.maxTilesY; - int genLimit = x / 2; - int abyssChasmSteps = y / 4; - int abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.055)); //132 = 1932 large - if (y < 1500) - { - abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.095)); //114 = 1014 small - } - else if (y < 2100) - { - abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.0735)); //132 = 1482 medium - } - int abyssChasmX = (CalamityWorld.abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); + public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem) + { + if (Main.tile[i, j].type != mod.TileType("LumenylCrystals") && Main.tile[i, j].type != mod.TileType("SeaPrismCrystals") && Main.tileSolid[Main.tile[i, j].type]) + { + if (Main.tile[i + 1, j] != null) + { + if (Main.tile[i + 1, j].active()) + { + if (Main.tile[i + 1, j].type == mod.TileType("LumenylCrystals") || (Main.tile[i + 1, j].type == mod.TileType("SeaPrismCrystals") && CalamityWorld.downedDesertScourge)) + { + WorldGen.KillTile(i + 1, j, false, false, false); + if (!Main.tile[i + 1, j].active() && Main.netMode != 0) + { + NetMessage.SendData(17, -1, -1, null, 0, (float)i + 1, (float)j, 0f, 0, 0, 0); + } + } + } + } + if (Main.tile[i - 1, j] != null) + { + if (Main.tile[i - 1, j].active()) + { + if (Main.tile[i - 1, j].type == mod.TileType("LumenylCrystals") || (Main.tile[i - 1, j].type == mod.TileType("SeaPrismCrystals") && CalamityWorld.downedDesertScourge)) + { + WorldGen.KillTile(i - 1, j, false, false, false); + if (!Main.tile[i - 1, j].active() && Main.netMode != 0) + { + NetMessage.SendData(17, -1, -1, null, 0, (float)i - 1, (float)j, 0f, 0, 0, 0); + } + } + } + } + if (Main.tile[i, j + 1] != null) + { + if (Main.tile[i, j + 1].active()) + { + if (Main.tile[i, j + 1].type == mod.TileType("LumenylCrystals") || (Main.tile[i, j + 1].type == mod.TileType("SeaPrismCrystals") && CalamityWorld.downedDesertScourge)) + { + WorldGen.KillTile(i, j + 1, false, false, false); + if (!Main.tile[i, j + 1].active() && Main.netMode != 0) + { + NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); + } + } + } + } + if (Main.tile[i, j - 1] != null) + { + if (Main.tile[i, j - 1].active()) + { + if (Main.tile[i, j - 1].type == mod.TileType("LumenylCrystals") || (Main.tile[i, j - 1].type == mod.TileType("SeaPrismCrystals") && CalamityWorld.downedDesertScourge)) + { + WorldGen.KillTile(i, j - 1, false, false, false); + if (!Main.tile[i, j - 1].active() && Main.netMode != 0) + { + NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j - 1, 0f, 0, 0, 0); + } + } + } + } + } + } - bool abyssPosX = false; - bool sulphurPosX = false; - bool abyssPosY = (j <= abyssChasmY); - if (CalamityWorld.abyssSide) - { - if (i < 380) - { - sulphurPosX = true; - } - if (i < abyssChasmX + 80) - { - abyssPosX = true; - } - } - else - { - if (i > Main.maxTilesX - 380) - { - sulphurPosX = true; - } - if (i > abyssChasmX - 80) - { - abyssPosX = true; - } - } - if (abyssPosX && abyssPosY) - { - if (Main.rand.Next(10) == 0) - { - int expr_B64 = WorldGen.genRand.Next(15); - if (expr_B64 == 0) - { - Item.NewItem(i * 16, j * 16, 16, 16, 296, 1, false, 0, false, false); - } - if (expr_B64 == 1) - { - Item.NewItem(i * 16, j * 16, 16, 16, 294, 1, false, 0, false, false); - } - if (expr_B64 == 2) - { - Item.NewItem(i * 16, j * 16, 16, 16, 298, 1, false, 0, false, false); - } - if (expr_B64 == 3) - { - Item.NewItem(i * 16, j * 16, 16, 16, 302, 1, false, 0, false, false); - } - if (expr_B64 == 4) - { - Item.NewItem(i * 16, j * 16, 16, 16, 288, 1, false, 0, false, false); - } - if (expr_B64 == 5) - { - Item.NewItem(i * 16, j * 16, 16, 16, 305, 1, false, 0, false, false); - } - if (expr_B64 == 6) - { - Item.NewItem(i * 16, j * 16, 16, 16, 289, 1, false, 0, false, false); - } - if (expr_B64 == 7) - { - Item.NewItem(i * 16, j * 16, 16, 16, 302, 1, false, 0, false, false); - } - if (expr_B64 == 8) - { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("AnechoicCoating"), 1, false, 0, false, false); - } - if (expr_B64 == 9) - { - Item.NewItem(i * 16, j * 16, 16, 16, 291, 1, false, 0, false, false); - } - if (expr_B64 == 10) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2346, 1, false, 0, false, false); - } - if (expr_B64 == 11) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2323, 1, false, 0, false, false); - } - if (expr_B64 == 12) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2327, 1, false, 0, false, false); - } - if (expr_B64 == 13) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2345, 1, false, 0, false, false); - } - if (expr_B64 == 14) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2348, 1, false, 0, false, false); - } - } - else - { - int num9 = Main.rand.Next(10); //0 to 9 - if (num9 == 0) //spelunker glowsticks - { - int num10 = Main.rand.Next(2, 6); - if (Main.expertMode) - { - num10 += Main.rand.Next(1, 7); - } - Item.NewItem(i * 16, j * 16, 16, 16, 3002, num10, false, 0, false, false); - } - else if (num9 == 1) //hellfire arrows - { - int stack = Main.rand.Next(10, 21); - Item.NewItem(i * 16, j * 16, 16, 16, 265, stack, false, 0, false, false); - } - else if (num9 == 2) //stew - { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("SunkenStew"), 1, false, 0, false, false); - } - else if (num9 == 3) //sticky dynamite - { - Item.NewItem(i * 16, j * 16, 16, 16, 2896, 1, false, 0, false, false); - } - else //money - { - float num13 = (float)(5000 + WorldGen.genRand.Next(-100, 101)); - while ((int)num13 > 0) - { - if (num13 > 1000000f) - { - int num14 = (int)(num13 / 1000000f); - if (num14 > 50 && Main.rand.Next(2) == 0) - { - num14 /= Main.rand.Next(3) + 1; - } - if (Main.rand.Next(2) == 0) - { - num14 /= Main.rand.Next(3) + 1; - } - num13 -= (float)(1000000 * num14); - Item.NewItem(i * 16, j * 16, 16, 16, 74, num14, false, 0, false, false); - } - else if (num13 > 10000f) - { - int num15 = (int)(num13 / 10000f); - if (num15 > 50 && Main.rand.Next(2) == 0) - { - num15 /= Main.rand.Next(3) + 1; - } - if (Main.rand.Next(2) == 0) - { - num15 /= Main.rand.Next(3) + 1; - } - num13 -= (float)(10000 * num15); - Item.NewItem(i * 16, j * 16, 16, 16, 73, num15, false, 0, false, false); - } - else if (num13 > 100f) - { - int num16 = (int)(num13 / 100f); - if (num16 > 50 && Main.rand.Next(2) == 0) - { - num16 /= Main.rand.Next(3) + 1; - } - if (Main.rand.Next(2) == 0) - { - num16 /= Main.rand.Next(3) + 1; - } - num13 -= (float)(100 * num16); - Item.NewItem(i * 16, j * 16, 16, 16, 72, num16, false, 0, false, false); - } - else - { - int num17 = (int)num13; - if (num17 > 50 && Main.rand.Next(2) == 0) - { - num17 /= Main.rand.Next(3) + 1; - } - if (Main.rand.Next(2) == 0) - { - num17 /= Main.rand.Next(4) + 1; - } - if (num17 < 1) - { - num17 = 1; - } - num13 -= (float)num17; - Item.NewItem(i * 16, j * 16, 16, 16, 71, num17, false, 0, false, false); - } - } - } - } - } - else if (sulphurPosX) - { - if (Main.rand.Next(15) == 0) - { - int expr_B64 = WorldGen.genRand.Next(15); - if (expr_B64 == 0) - { - Item.NewItem(i * 16, j * 16, 16, 16, 296, 1, false, 0, false, false); - } - if (expr_B64 == 1) - { - Item.NewItem(i * 16, j * 16, 16, 16, 294, 1, false, 0, false, false); - } - if (expr_B64 == 2) - { - Item.NewItem(i * 16, j * 16, 16, 16, 298, 1, false, 0, false, false); - } - if (expr_B64 == 3) - { - Item.NewItem(i * 16, j * 16, 16, 16, 302, 1, false, 0, false, false); - } - if (expr_B64 == 4) - { - Item.NewItem(i * 16, j * 16, 16, 16, 288, 1, false, 0, false, false); - } - if (expr_B64 == 5) - { - Item.NewItem(i * 16, j * 16, 16, 16, 305, 1, false, 0, false, false); - } - if (expr_B64 == 6) - { - Item.NewItem(i * 16, j * 16, 16, 16, 289, 1, false, 0, false, false); - } - if (expr_B64 == 7) - { - Item.NewItem(i * 16, j * 16, 16, 16, 302, 1, false, 0, false, false); - } - if (expr_B64 == 8) - { - Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("AnechoicCoating"), 1, false, 0, false, false); - } - if (expr_B64 == 9) - { - Item.NewItem(i * 16, j * 16, 16, 16, 291, 1, false, 0, false, false); - } - if (expr_B64 == 10) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2346, 1, false, 0, false, false); - } - if (expr_B64 == 11) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2323, 1, false, 0, false, false); - } - if (expr_B64 == 12) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2327, 1, false, 0, false, false); - } - if (expr_B64 == 13) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2345, 1, false, 0, false, false); - } - if (expr_B64 == 14) - { - Item.NewItem(i * 16, j * 16, 16, 16, 2348, 1, false, 0, false, false); - } - } - else - { - int num9 = Main.rand.Next(10); //0 to 9 - if (num9 == 0) //glowsticks - { - int num10 = Main.rand.Next(2, 6); - if (Main.expertMode) - { - num10 += Main.rand.Next(1, 7); - } - Item.NewItem(i * 16, j * 16, 16, 16, 282, num10, false, 0, false, false); - } - else if (num9 == 1) //jesters arrows - { - int stack = Main.rand.Next(10, 21); - Item.NewItem(i * 16, j * 16, 16, 16, 51, stack, false, 0, false, false); - } - else if (num9 == 2) //potion - { - Item.NewItem(i * 16, j * 16, 16, 16, 188, 1, false, 0, false, false); - } - else if (num9 == 3) //bomb - { - int stack = Main.rand.Next(5, 9); - Item.NewItem(i * 16, j * 16, 16, 16, 166, 1, false, 0, false, false); - } - else //money - { - float num13 = (float)(2500 + WorldGen.genRand.Next(-100, 101)); - while ((int)num13 > 0) - { - if (num13 > 1000000f) - { - int num14 = (int)(num13 / 1000000f); - if (num14 > 50 && Main.rand.Next(2) == 0) - { - num14 /= Main.rand.Next(3) + 1; - } - if (Main.rand.Next(2) == 0) - { - num14 /= Main.rand.Next(3) + 1; - } - num13 -= (float)(1000000 * num14); - Item.NewItem(i * 16, j * 16, 16, 16, 74, num14, false, 0, false, false); - } - else if (num13 > 10000f) - { - int num15 = (int)(num13 / 10000f); - if (num15 > 50 && Main.rand.Next(2) == 0) - { - num15 /= Main.rand.Next(3) + 1; - } - if (Main.rand.Next(2) == 0) - { - num15 /= Main.rand.Next(3) + 1; - } - num13 -= (float)(10000 * num15); - Item.NewItem(i * 16, j * 16, 16, 16, 73, num15, false, 0, false, false); - } - else if (num13 > 100f) - { - int num16 = (int)(num13 / 100f); - if (num16 > 50 && Main.rand.Next(2) == 0) - { - num16 /= Main.rand.Next(3) + 1; - } - if (Main.rand.Next(2) == 0) - { - num16 /= Main.rand.Next(3) + 1; - } - num13 -= (float)(100 * num16); - Item.NewItem(i * 16, j * 16, 16, 16, 72, num16, false, 0, false, false); - } - else - { - int num17 = (int)num13; - if (num17 > 50 && Main.rand.Next(2) == 0) - { - num17 /= Main.rand.Next(3) + 1; - } - if (Main.rand.Next(2) == 0) - { - num17 /= Main.rand.Next(4) + 1; - } - if (num17 < 1) - { - num17 = 1; - } - num13 -= (float)num17; - Item.NewItem(i * 16, j * 16, 16, 16, 71, num17, false, 0, false, false); - } - } - } - } - } - } - return true; - } + public override bool Drop(int i, int j, int type) + { + if (type == 28) + { + int x = Main.maxTilesX; + int y = Main.maxTilesY; + int genLimit = x / 2; + int abyssChasmSteps = y / 4; + int abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.055)); //132 = 1932 large + if (y < 1500) + { + abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.095)); //114 = 1014 small + } + else if (y < 2100) + { + abyssChasmY = ((y - abyssChasmSteps) + (int)((double)y * 0.0735)); //132 = 1482 medium + } + int abyssChasmX = (CalamityWorld.abyssSide ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135)); - public override bool PreHitWire(int i, int j, int type) - { - return !CalamityWorld.bossRushActive; - } + bool abyssPosX = false; + bool sulphurPosX = false; + bool abyssPosY = (j <= abyssChasmY); + if (CalamityWorld.abyssSide) + { + if (i < 380) + { + sulphurPosX = true; + } + if (i < abyssChasmX + 80) + { + abyssPosX = true; + } + } + else + { + if (i > Main.maxTilesX - 380) + { + sulphurPosX = true; + } + if (i > abyssChasmX - 80) + { + abyssPosX = true; + } + } + if (abyssPosX && abyssPosY) + { + if (Main.rand.Next(10) == 0) + { + int expr_B64 = WorldGen.genRand.Next(15); + if (expr_B64 == 0) + { + Item.NewItem(i * 16, j * 16, 16, 16, 296, 1, false, 0, false, false); + } + if (expr_B64 == 1) + { + Item.NewItem(i * 16, j * 16, 16, 16, 294, 1, false, 0, false, false); + } + if (expr_B64 == 2) + { + Item.NewItem(i * 16, j * 16, 16, 16, 298, 1, false, 0, false, false); + } + if (expr_B64 == 3) + { + Item.NewItem(i * 16, j * 16, 16, 16, 302, 1, false, 0, false, false); + } + if (expr_B64 == 4) + { + Item.NewItem(i * 16, j * 16, 16, 16, 288, 1, false, 0, false, false); + } + if (expr_B64 == 5) + { + Item.NewItem(i * 16, j * 16, 16, 16, 305, 1, false, 0, false, false); + } + if (expr_B64 == 6) + { + Item.NewItem(i * 16, j * 16, 16, 16, 289, 1, false, 0, false, false); + } + if (expr_B64 == 7) + { + Item.NewItem(i * 16, j * 16, 16, 16, 302, 1, false, 0, false, false); + } + if (expr_B64 == 8) + { + Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("AnechoicCoating"), 1, false, 0, false, false); + } + if (expr_B64 == 9) + { + Item.NewItem(i * 16, j * 16, 16, 16, 291, 1, false, 0, false, false); + } + if (expr_B64 == 10) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2346, 1, false, 0, false, false); + } + if (expr_B64 == 11) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2323, 1, false, 0, false, false); + } + if (expr_B64 == 12) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2327, 1, false, 0, false, false); + } + if (expr_B64 == 13) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2345, 1, false, 0, false, false); + } + if (expr_B64 == 14) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2348, 1, false, 0, false, false); + } + } + else + { + int num9 = Main.rand.Next(10); //0 to 9 + if (num9 == 0) //spelunker glowsticks + { + int num10 = Main.rand.Next(2, 6); + if (Main.expertMode) + { + num10 += Main.rand.Next(1, 7); + } + Item.NewItem(i * 16, j * 16, 16, 16, 3002, num10, false, 0, false, false); + } + else if (num9 == 1) //hellfire arrows + { + int stack = Main.rand.Next(10, 21); + Item.NewItem(i * 16, j * 16, 16, 16, 265, stack, false, 0, false, false); + } + else if (num9 == 2) //stew + { + Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("SunkenStew"), 1, false, 0, false, false); + } + else if (num9 == 3) //sticky dynamite + { + Item.NewItem(i * 16, j * 16, 16, 16, 2896, 1, false, 0, false, false); + } + else //money + { + float num13 = (float)(5000 + WorldGen.genRand.Next(-100, 101)); + while ((int)num13 > 0) + { + if (num13 > 1000000f) + { + int num14 = (int)(num13 / 1000000f); + if (num14 > 50 && Main.rand.Next(2) == 0) + { + num14 /= Main.rand.Next(3) + 1; + } + if (Main.rand.Next(2) == 0) + { + num14 /= Main.rand.Next(3) + 1; + } + num13 -= (float)(1000000 * num14); + Item.NewItem(i * 16, j * 16, 16, 16, 74, num14, false, 0, false, false); + } + else if (num13 > 10000f) + { + int num15 = (int)(num13 / 10000f); + if (num15 > 50 && Main.rand.Next(2) == 0) + { + num15 /= Main.rand.Next(3) + 1; + } + if (Main.rand.Next(2) == 0) + { + num15 /= Main.rand.Next(3) + 1; + } + num13 -= (float)(10000 * num15); + Item.NewItem(i * 16, j * 16, 16, 16, 73, num15, false, 0, false, false); + } + else if (num13 > 100f) + { + int num16 = (int)(num13 / 100f); + if (num16 > 50 && Main.rand.Next(2) == 0) + { + num16 /= Main.rand.Next(3) + 1; + } + if (Main.rand.Next(2) == 0) + { + num16 /= Main.rand.Next(3) + 1; + } + num13 -= (float)(100 * num16); + Item.NewItem(i * 16, j * 16, 16, 16, 72, num16, false, 0, false, false); + } + else + { + int num17 = (int)num13; + if (num17 > 50 && Main.rand.Next(2) == 0) + { + num17 /= Main.rand.Next(3) + 1; + } + if (Main.rand.Next(2) == 0) + { + num17 /= Main.rand.Next(4) + 1; + } + if (num17 < 1) + { + num17 = 1; + } + num13 -= (float)num17; + Item.NewItem(i * 16, j * 16, 16, 16, 71, num17, false, 0, false, false); + } + } + } + } + } + else if (sulphurPosX) + { + if (Main.rand.Next(15) == 0) + { + int expr_B64 = WorldGen.genRand.Next(15); + if (expr_B64 == 0) + { + Item.NewItem(i * 16, j * 16, 16, 16, 296, 1, false, 0, false, false); + } + if (expr_B64 == 1) + { + Item.NewItem(i * 16, j * 16, 16, 16, 294, 1, false, 0, false, false); + } + if (expr_B64 == 2) + { + Item.NewItem(i * 16, j * 16, 16, 16, 298, 1, false, 0, false, false); + } + if (expr_B64 == 3) + { + Item.NewItem(i * 16, j * 16, 16, 16, 302, 1, false, 0, false, false); + } + if (expr_B64 == 4) + { + Item.NewItem(i * 16, j * 16, 16, 16, 288, 1, false, 0, false, false); + } + if (expr_B64 == 5) + { + Item.NewItem(i * 16, j * 16, 16, 16, 305, 1, false, 0, false, false); + } + if (expr_B64 == 6) + { + Item.NewItem(i * 16, j * 16, 16, 16, 289, 1, false, 0, false, false); + } + if (expr_B64 == 7) + { + Item.NewItem(i * 16, j * 16, 16, 16, 302, 1, false, 0, false, false); + } + if (expr_B64 == 8) + { + Item.NewItem(i * 16, j * 16, 16, 16, mod.ItemType("AnechoicCoating"), 1, false, 0, false, false); + } + if (expr_B64 == 9) + { + Item.NewItem(i * 16, j * 16, 16, 16, 291, 1, false, 0, false, false); + } + if (expr_B64 == 10) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2346, 1, false, 0, false, false); + } + if (expr_B64 == 11) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2323, 1, false, 0, false, false); + } + if (expr_B64 == 12) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2327, 1, false, 0, false, false); + } + if (expr_B64 == 13) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2345, 1, false, 0, false, false); + } + if (expr_B64 == 14) + { + Item.NewItem(i * 16, j * 16, 16, 16, 2348, 1, false, 0, false, false); + } + } + else + { + int num9 = Main.rand.Next(10); //0 to 9 + if (num9 == 0) //glowsticks + { + int num10 = Main.rand.Next(2, 6); + if (Main.expertMode) + { + num10 += Main.rand.Next(1, 7); + } + Item.NewItem(i * 16, j * 16, 16, 16, 282, num10, false, 0, false, false); + } + else if (num9 == 1) //jesters arrows + { + int stack = Main.rand.Next(10, 21); + Item.NewItem(i * 16, j * 16, 16, 16, 51, stack, false, 0, false, false); + } + else if (num9 == 2) //potion + { + Item.NewItem(i * 16, j * 16, 16, 16, 188, 1, false, 0, false, false); + } + else if (num9 == 3) //bomb + { + int stack = Main.rand.Next(5, 9); + Item.NewItem(i * 16, j * 16, 16, 16, 166, 1, false, 0, false, false); + } + else //money + { + float num13 = (float)(2500 + WorldGen.genRand.Next(-100, 101)); + while ((int)num13 > 0) + { + if (num13 > 1000000f) + { + int num14 = (int)(num13 / 1000000f); + if (num14 > 50 && Main.rand.Next(2) == 0) + { + num14 /= Main.rand.Next(3) + 1; + } + if (Main.rand.Next(2) == 0) + { + num14 /= Main.rand.Next(3) + 1; + } + num13 -= (float)(1000000 * num14); + Item.NewItem(i * 16, j * 16, 16, 16, 74, num14, false, 0, false, false); + } + else if (num13 > 10000f) + { + int num15 = (int)(num13 / 10000f); + if (num15 > 50 && Main.rand.Next(2) == 0) + { + num15 /= Main.rand.Next(3) + 1; + } + if (Main.rand.Next(2) == 0) + { + num15 /= Main.rand.Next(3) + 1; + } + num13 -= (float)(10000 * num15); + Item.NewItem(i * 16, j * 16, 16, 16, 73, num15, false, 0, false, false); + } + else if (num13 > 100f) + { + int num16 = (int)(num13 / 100f); + if (num16 > 50 && Main.rand.Next(2) == 0) + { + num16 /= Main.rand.Next(3) + 1; + } + if (Main.rand.Next(2) == 0) + { + num16 /= Main.rand.Next(3) + 1; + } + num13 -= (float)(100 * num16); + Item.NewItem(i * 16, j * 16, 16, 16, 72, num16, false, 0, false, false); + } + else + { + int num17 = (int)num13; + if (num17 > 50 && Main.rand.Next(2) == 0) + { + num17 /= Main.rand.Next(3) + 1; + } + if (Main.rand.Next(2) == 0) + { + num17 /= Main.rand.Next(4) + 1; + } + if (num17 < 1) + { + num17 = 1; + } + num13 -= (float)num17; + Item.NewItem(i * 16, j * 16, 16, 16, 71, num17, false, 0, false, false); + } + } + } + } + } + } + return true; + } - public override void RandomUpdate(int i, int j, int type) - { - if (Main.netMode != 1) - { - if (type == (ushort)mod.TileType("ArenaTile")) - { - if (!NPC.AnyNPCs(mod.NPCType("SupremeCalamitas"))) - { - for (int k = 0; k < Main.maxTilesX; k++) - { - for (int l = 0; l < Main.maxTilesY; l++) - { - if (Main.tile[k, l].type == (ushort)mod.TileType("ArenaTile")) - { - Main.tile[k, l].active(false); - WorldGen.SquareTileFrame(k, l); - } - } - } - } - } - } - if (Main.hardMode && !NPC.downedPlantBoss && !NPC.downedGolemBoss && !NPC.downedAncientCultist && !NPC.downedMoonlord && !CalamityWorld.downedCalamitas) - { - if (j > (int)Main.worldSurface) - { - if (Main.tile[i, j] != null) - { - if (Main.tile[i, j].nactive()) - { - if (type == 60) - { - int j2 = j - 1; - if (Main.tile[i, j2] != null) - { - if (Main.tile[i, j2].liquid == 0) - { - if (WorldGen.genRand.Next(3) == 0) - { - bool flag18 = true; - int num80 = 400; - for (int num81 = i - num80; num81 < i + num80; num81 += 2) - { - for (int num82 = j - num80; num82 < j + num80; num82 += 2) - { - if (num81 > 1 && num81 < Main.maxTilesX - 2 && num82 > 1 && num82 < Main.maxTilesY - 2 && Main.tile[num81, num82].active() && Main.tile[num81, num82].type == 238) - { - flag18 = false; - break; - } - } - } - if (flag18) - { - WorldGen.PlaceJunglePlant(i, j2, 238, 0, 0); - WorldGen.SquareTileFrame(i, j2, true); - WorldGen.SquareTileFrame(i + 1, j2 + 1, true); - if (Main.tile[i, j2].type == 238 && Main.netMode == 2) - { - NetMessage.SendTileSquare(-1, i, j2, 4, TileChangeType.None); - } - } - } - if (NPC.downedMechBossAny && WorldGen.genRand.Next(6) == 0) - { - bool flag19 = true; - int num83 = 150; - for (int num84 = i - num83; num84 < i + num83; num84 += 2) - { - for (int num85 = j - num83; num85 < j + num83; num85 += 2) - { - if (num84 > 1 && num84 < Main.maxTilesX - 2 && num85 > 1 && num85 < Main.maxTilesY - 2 && Main.tile[num84, num85].active() && Main.tile[num84, num85].type == 236) - { - flag19 = false; - break; - } - } - } - if (flag19) - { - WorldGen.PlaceJunglePlant(i, j2, 236, WorldGen.genRand.Next(3), 0); - WorldGen.SquareTileFrame(i, j2, true); - WorldGen.SquareTileFrame(i + 1, j2 + 1, true); - if (Main.tile[i, j2].type == 236 && Main.netMode == 2) - { - NetMessage.SendTileSquare(-1, i, j2, 4, TileChangeType.None); - } - } - } - } - } - } - } - } - } - } - } - } + public override bool PreHitWire(int i, int j, int type) + { + return !CalamityWorld.bossRushActive; + } + + public override void RandomUpdate(int i, int j, int type) + { + if (Main.netMode != 1) + { + if (type == (ushort)mod.TileType("ArenaTile")) + { + if (!NPC.AnyNPCs(mod.NPCType("SupremeCalamitas"))) + { + for (int k = 0; k < Main.maxTilesX; k++) + { + for (int l = 0; l < Main.maxTilesY; l++) + { + if (Main.tile[k, l].type == (ushort)mod.TileType("ArenaTile")) + { + Main.tile[k, l].active(false); + WorldGen.SquareTileFrame(k, l); + } + } + } + } + } + } + } + } } diff --git a/Tiles/ChaosCandle.cs b/Tiles/ChaosCandle.cs new file mode 100644 index 0000000000..63a388cadc --- /dev/null +++ b/Tiles/ChaosCandle.cs @@ -0,0 +1,65 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles +{ + public class ChaosCandle : ModTile + { + public override void SetDefaults() + { + Main.tileLighted[Type] = true; + Main.tileFrameImportant[Type] = true; + Main.tileLavaDeath[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.StyleOnTable1x1); + TileObjectData.addTile(Type); + drop = mod.ItemType("ChaosCandle"); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Chaos Candle"); + AddMapEntry(new Color(238, 145, 105), name); + animationFrameHeight = 20; + } + + public override void AnimateTile(ref int frame, ref int frameCounter) + { + frameCounter++; + if (frameCounter >= 4) + { + frame = (frame + 1) % 6; + frameCounter = 0; + } + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("ChaosCandle"); + } + + public override void NearbyEffects(int i, int j, bool closer) + { + Player player = Main.LocalPlayer; + if (!player.dead && player.active) + player.AddBuff(mod.BuffType("ChaosCandle"), 20); + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.85f; + g = 0.25f; + b = 0.25f; + } + + /*public override void RightClick(int i, int j) + { + Item.NewItem(i * 16, j * 16, 8, 8, mod.ItemType("ChaosCandle")); + ?? KillTile( i, j); + }*/ + } +} diff --git a/Tiles/ChaosCandle.png b/Tiles/ChaosCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..cba57df220768d94aee71b775289e3707b0c8432 GIT binary patch literal 550 zcmV+>0@?kEP)>UK$Jn1PKaJcmMLfrOIpWqsKaB-3>JpHmCqoz z*H&sx#ru~pANB5PW6TUx2kUzquDqKr)j`uh+QTY5Tpaqf-Z{VVbL=`-TYKg%``H;t zk5F4Z-Sv;3A8%DvuQD)XoSnhh<%@THb-d;0eA0RJF$l;NaQLMkq)2&> z}QXG^ax^BBq9;pc~Yd==>c(?|f75_s4n8KhL@E`?~JyexB=h;*5=SIM@W(007|7)4gL#e=pDfO;a4^3T4^YyW#gpi_=zdA~`l!_T7N)uXhJtZD^!3Rxenobo(@DI5w zG3T>ZGEtMIo4$V@xc*tw*m)_2;|H6V;0qqjZbZv?2`iTfjVpgHy3YC{skKWHCPX^3 zc6r!jaiGZErjLE|?s7xenfd+aR$_+w(+M3b?1pP=v|Iq$@xZ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1Qo=B+tFx&Lyw(fgH9~K!iCP)OZPb#vL!#Aya~gZD?~CSTY3>i-9{y+cNptGT6L(YvNn@-MBdB*3P*Uu?^wixV;pf>JB`9f}s z1SF#S8g4TfIIVtRH}67vyyfdN?kf+aUG+LT{qDs>JuZq{nDad5T{u4JrQN)Os=fXC zZ7=0L7hTl?`TE&J(tv&eQ)Y)TD&ldC+Kh;n^we{xeD+$d(8$}bm z4@{litL_tM{cTgOfoo&_BlD`;Q7?f0ezH?#v!v^ynAv;1c+E7f#?4jytKa|ZV`$6$ zoR=Ec)7A$y^Lkz7nv`h7E1ult!Q0)nP3?>0;)90WK>Fd0oaoB6i=lc&FGUzlNZP1)M4&9>wF;BLt^2<5_$g@ zlb=sIqwwlnuBQL{ll)qya#=Gcn76%jGkd)_ar5ntqFgg?t*NVuvl+F6Up@WAzDHhQ UUf&6BLr}Ho>FVdQ&MBb@0NC20BLDyZ diff --git a/Tiles/ChaoticBrickWall.png b/Tiles/ChaoticBrickWall.png new file mode 100644 index 0000000000000000000000000000000000000000..359d068c30ad3e177b229677f26859404a0bc3cd GIT binary patch literal 6022 zcmb`Ld05ij404o6H*fISDbn7-22==uYdUX_$*Kdu9R>lbmZLm+CWQO9juFi(V>?x<~UP3?g1Cp$OF zx);&w5l1lU*CLaJa91v5=sItXNHOAVg-q0X@H(Y*!X9jFC zA<6FpZx4UzcF<bQ_JR9{^l-DF0@ivXl**WcxyOQ&M7t?q%|Y*|D-#Fw`R7{$7)ng#XrUhGE*`6FkBX8z6W#}#>_sJh z{k|Kt%%a3p6%sABN!#Pqtg~R=^t^EHv&Ddim92|QeW~1iDAuSXg)7zA4P@v-nN{z; z%t?DTYgl_7`vLNF^*dTF1y=ShTw?hJ+u$j<(NP&%tKMGd8fH&8<7JkW*gVzt{M#J2 ze%J?obZnBP<(3ejl_qK=g(CU*Ag7z5aL>F$rkSneEq5et($meM?*re9rh-qbvqL_| z>pqz69G^P4#`oxa^A3}gH%_Y{rAJqXi4Mo2bbxR5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3Bc@VK;fTMr-+IH>gAA(%!?vr2^Y9?(n%q2fU6=Pb@IZf;;|Njuq0AzC7u=2E zf5;nICnA|)IQE(3k%agyW1XlvS;wX)2{wO@tYsI?7-y=82%mR-ttmzkc2f1aKuv;m)oBa-pW1oo}xd1O9HtCKU1iYM* z6lcK|5KKRH5QN{bQ}a^FLggDt>s_>MBEPH&af`3L13mB_cGx#VMexw>0!gL~{p99E z)80fbz`86o3a04tllTtvf$#UQG-U;Z9>}A3^hy ztq-2wl*Jtg8dzAA2gYBpa~6*ndsGr)K=En1s3pOl1bqVr#*1&vx`K5kFMMO9oB zA-P^cxcj!;AjEI8=*Iuom!UFu_LY*fn2u)Y!#-jbJGEl`{#VP(DOT)KU zLx1&5DGv27E2?)=-`l9&WseM!*{`aT;8xn(7|~s3Y^Ym#+1i$owhYCr6pMaWN`%`c zI&%Tn{yp@%F*qX^7D9QGHl@$uy+Q#TG(h}8yIh(IZ!8*`iW{ zWYYC}yRYZjKUYeK7EVl*pH6*}?}+bzQbFXE;*0}}L=xccp+Tjd6g1C&3- zzuUv9{;T#PtTi=IWz*@v5Lp72EBkbSt<>1($4+3m8Vuz2!64w}D{8}yJqDNl=0D(v QbiiYEJvH1Tt5*Q= 6) - { - frame = (frame + 1) % 6; - frameCounter = 0; - } - } - - public override void RightClick(int i, int j) - { - Main.PlaySound(SoundID.Mech, i * 16, j * 16, 0); - HitWire(i, j); - } - - public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) - { - Tile tile = Main.tile[i, j]; - //227 79 79 - if (tile.frameX < 54) - { - r = 1f; - g = 0.6f; - b = 1f; - } - } - - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteBasin")); - } - - public override void HitWire(int i, int j) - { - int x = i - (Main.tile[i, j].frameX / 18) % 1; - int y = j - (Main.tile[i, j].frameY / 18) % 3; - for (int l = x - 3; l < x + 3; l++) - { - for (int m = y - 3; m < y + 3; m++) - { - if (Main.tile[l, m] == null) - { - Main.tile[l, m] = new Tile(); - } - if (Main.tile[l, m].active() && Main.tile[l, m].type == Type) - { - if (Main.tile[l, m].frameX < 54) - { - Main.tile[l, m].frameX += 54; - } - else - { - Main.tile[l, m].frameX -= 54; - } - } - } - } - if (Wiring.running) - { - Wiring.SkipWire(x, y); - Wiring.SkipWire(x, y + 1); - Wiring.SkipWire(x, y + 2); - Wiring.SkipWire(x + 1, y); - Wiring.SkipWire(x + 1, y + 1); - Wiring.SkipWire(x + 1, y + 2); - Wiring.SkipWire(x + 2, y); - Wiring.SkipWire(x + 2, y + 1); - Wiring.SkipWire(x + 2, y + 2); - } - } - } -} +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles +{ + class CosmiliteBasin : ModTile + { + public override void SetDefaults() + { + Main.tileLighted[Type] = true; + Main.tileFrameImportant[Type] = true; + Main.tileLavaDeath[Type] = true; + + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3); + TileObjectData.addTile(Type); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Cosmilite Basin"); + AddMapEntry(new Color(238, 145, 105), name); + animationFrameHeight = 54; + AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); + adjTiles = new int[] { TileID.Torches }; + } + + public override void AnimateTile(ref int frame, ref int frameCounter) + { + frameCounter++; + if (frameCounter >= 6) + { + frame = (frame + 1) % 6; + frameCounter = 0; + } + } + + public override void RightClick(int i, int j) + { + Main.PlaySound(SoundID.Mech, i * 16, j * 16, 0); + HitWire(i, j); + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + Tile tile = Main.tile[i, j]; + //227 79 79 + if (tile.frameX < 54) + { + r = 1f; + g = 0.6f; + b = 1f; + } + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteBasin")); + } + + public override void HitWire(int i, int j) + { + int x = i - (Main.tile[i, j].frameX / 18) % 1; + int y = j - (Main.tile[i, j].frameY / 18) % 3; + for (int l = x - 3; l < x + 3; l++) + { + for (int m = y - 3; m < y + 3; m++) + { + if (Main.tile[l, m] == null) + { + Main.tile[l, m] = new Tile(); + } + if (Main.tile[l, m].active() && Main.tile[l, m].type == Type) + { + if (Main.tile[l, m].frameX < 54) + { + Main.tile[l, m].frameX += 54; + } + else + { + Main.tile[l, m].frameX -= 54; + } + } + } + } + if (Wiring.running) + { + Wiring.SkipWire(x, y); + Wiring.SkipWire(x, y + 1); + Wiring.SkipWire(x, y + 2); + Wiring.SkipWire(x + 1, y); + Wiring.SkipWire(x + 1, y + 1); + Wiring.SkipWire(x + 1, y + 2); + Wiring.SkipWire(x + 2, y); + Wiring.SkipWire(x + 2, y + 1); + Wiring.SkipWire(x + 2, y + 2); + } + } + } +} diff --git a/Tiles/CosmiliteSconce.cs b/Tiles/CosmiliteSconce.cs index b60fb2a63a..8a7c51fb25 100644 --- a/Tiles/CosmiliteSconce.cs +++ b/Tiles/CosmiliteSconce.cs @@ -1,88 +1,88 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles -{ - class CosmiliteSconce : ModTile - { - public override void SetDefaults() - { - Main.tileLighted[Type] = true; - Main.tileFrameImportant[Type] = true; - Main.tileLavaDeath[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall); - TileObjectData.newTile.Width = 1; - TileObjectData.newTile.Origin = new Point16(0, 1); - TileObjectData.addTile(Type); - ModTranslation name = CreateMapEntryName(); - name.SetDefault("Cosmilite Sconce"); - AddMapEntry(new Color(238, 145, 105), name); - animationFrameHeight = 54; - AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); - disableSmartCursor = true; - adjTiles = new int[] { TileID.Torches }; - drop = mod.ItemType("CosmiliteSconce"); - } - - public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) - { - if (Main.tile[i, j].frameX < 18) - { - r = 1f; - g = 0.6f; - b = 1f; - } - else - { - r = 0f; - g = 0f; - b = 0f; - } - } - - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteSconce")); - } - - public override void HitWire(int i, int j) - { - int x = i - (Main.tile[i, j].frameX / 18) % 1; - int y = j - (Main.tile[i, j].frameY / 18) % 3; - for (int l = x; l < x + 1; l++) - { - for (int m = y; m < y + 3; m++) - { - if (Main.tile[l, m] == null) - { - Main.tile[l, m] = new Tile(); - } - if (Main.tile[l, m].active() && Main.tile[l, m].type == Type) - { - if (Main.tile[l, m].frameX < 18) - { - Main.tile[l, m].frameX += 18; - } - else - { - Main.tile[l, m].frameX -= 18; - } - } - } - } - if (Wiring.running) - { - Wiring.SkipWire(x, y); - Wiring.SkipWire(x, y + 1); - Wiring.SkipWire(x, y + 2); - } - //NetMessage.SendTileSquare(-1, x, y + 1, 3); - } - } -} +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles +{ + class CosmiliteSconce : ModTile + { + public override void SetDefaults() + { + Main.tileLighted[Type] = true; + Main.tileFrameImportant[Type] = true; + Main.tileLavaDeath[Type] = true; + + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall); + TileObjectData.newTile.Width = 1; + TileObjectData.newTile.Origin = new Point16(0, 1); + TileObjectData.addTile(Type); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Cosmilite Sconce"); + AddMapEntry(new Color(238, 145, 105), name); + animationFrameHeight = 54; + AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch); + disableSmartCursor = true; + adjTiles = new int[] { TileID.Torches }; + drop = mod.ItemType("CosmiliteSconce"); + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + if (Main.tile[i, j].frameX < 18) + { + r = 1f; + g = 0.6f; + b = 1f; + } + else + { + r = 0f; + g = 0f; + b = 0f; + } + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("CosmiliteSconce")); + } + + public override void HitWire(int i, int j) + { + int x = i - (Main.tile[i, j].frameX / 18) % 1; + int y = j - (Main.tile[i, j].frameY / 18) % 3; + for (int l = x; l < x + 1; l++) + { + for (int m = y; m < y + 3; m++) + { + if (Main.tile[l, m] == null) + { + Main.tile[l, m] = new Tile(); + } + if (Main.tile[l, m].active() && Main.tile[l, m].type == Type) + { + if (Main.tile[l, m].frameX < 18) + { + Main.tile[l, m].frameX += 18; + } + else + { + Main.tile[l, m].frameX -= 18; + } + } + } + } + if (Wiring.running) + { + Wiring.SkipWire(x, y); + Wiring.SkipWire(x, y + 1); + Wiring.SkipWire(x, y + 2); + } + //NetMessage.SendTileSquare(-1, x, y + 1, 3); + } + } +} diff --git a/Tiles/EutrophicSand.cs b/Tiles/EutrophicSand.cs deleted file mode 100644 index 37f1822ce9..0000000000 --- a/Tiles/EutrophicSand.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Tiles -{ - public class EutrophicSand : ModTile - { - public override void SetDefaults() - { - Main.tileSolid[Type] = true; - Main.tileMergeDirt[Type] = true; - Main.tileBlockLight[Type] = true; - ModTranslation name = CreateMapEntryName(); - name.SetDefault("Eutrophic Sand"); - AddMapEntry(new Color(0, 255, 150), name); - soundType = 0; - dustType = 185; - } - - public override bool CanKillTile(int i, int j, ref bool blockDamaged) - { - return false; - } - - public override bool CanExplode(int i, int j) - { - return false; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - } -} \ No newline at end of file diff --git a/Tiles/EutrophicSand.png b/Tiles/EutrophicSand.png deleted file mode 100644 index 603cc1b751add9f4a4ef2bd452429e5d066c2750..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20156 zcmaI82~g5)+cw@}x3+0!Wu{?bMVne$DG6AKk(p9jnJX=twuxe*pkk%vF1bafLhf~! znpGJ>`DC35Itmli=ZZh+RP-=BS8L|)%}yoemJfAwJ61qG2e4+Ty`%5|>J+^5sww9ak}$ir*|_cEhaE>`7Wci-LIROT$RrJr1$k}_H_KJH zDc}!+0?UI0Gkj*o6uY$Vi92)G@$=WqgIZ2zZ#s2x0%&wV=HMW{utJ6dB1L^&3~L zgzn4LptU9MpQwZ|jHfiRP_wmyJH-V6?gT}R;4IQv%SA8V?CUi_<|qjnNPl+u!otaU zW^b}V0Bd<|@bgIp{^(4t;HsnH-((0_F(1=NRtxsJLcxBYRHo>{oP||^(7tRJgU|YC zBVWcE|0aP0>1hs7k$#D4WzZ2Tw(;&;YfP@z30Z=kgdj((6n6xL?b-0^Ct34rJd|9v zwz1$Cpi#+^u|zoO-ArC32a(@EdX_5AvXn2h2IJeqPfYThST7))`aG)yL}f0S;2bCY zBYR`#XFrepwDOyOY#jCF3;=(P+x-Iv|Fqu%jZ(o}o!X2$$@sn!t?}}n(H3ufYBvb6n7LeY!KmVvlgp~;)n|bdbd@(OAN>WpI?->ilVxws9Lc;2>n@R4 z(tj-eRFxO$X)6}uPqTV|bjrJoNA&zoL@-WTh`#XVpw)O6(8`Z2S@UdMJJI9Vj7z)T z*&8x4DXFi{YkXzNeSx2c#Di|(FCs0d<3E%svyl@Xc1TAIxiCBW5vqNO9f8&P;1tdm>?C`e=4dq{qM{68EtE*n1dkg*I?BdtMHEWW0IYxSzmNewwF_-R`6 z1Ddm()0gf&a3)js-Q7sfXMXDh6$za|3eN>6q z|5NbRvLB~h9&|@JVvncoUVkCgRpXi*8@!>zbkeO!aiJBmBOJ0m{yGwlJddfTAkVLo zd-$J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*+oRpvBkAp1S>uj?K82a0l*+*-~OHnaelBQ(~NCRy+r7=P|5$?X7~1i4D_$2&0%j_ zKXf&%?NLWhkD)IgOd?>xi@DWaENga(6j)1bbZQc*QHh#0u22U9Ly}e6r>7Hj zF;iugt8L9PNvGGGq|01WLcZ}{DjMLBRx376WhJmqV2VTxWb(&=V~QdK5SjZkXrna( zFGWj)b&pnE$F0oN#G~ygNWVi75IZ;(bS`W%=*BQRh^5G>fJDqbOnX=woKxY%mZA}< zmOX>z-G0_%D>=!_QP?12)DiV)TI$iX#FC1?;bR-pt5?6SQSQ#CX`DU=cBNb6?SXNx Ib`8(?H%=;fjQ{`u diff --git a/Tiles/LumenylCrystals.cs b/Tiles/LumenylCrystals.cs index d17a784249..07a17daab1 100644 --- a/Tiles/LumenylCrystals.cs +++ b/Tiles/LumenylCrystals.cs @@ -1,37 +1,72 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Tiles -{ - public class LumenylCrystals : ModTile - { - public override void SetDefaults() - { - Main.tileLighted[Type] = true; - Main.tileFrameImportant[Type] = true; - Main.tileObsidianKill[Type] = true; - Main.tileNoFail[Type] = true; - ModTranslation name = CreateMapEntryName(); - name.SetDefault("Lumenyl"); - AddMapEntry(new Color(0, 150, 200), name); +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles +{ + public class LumenylCrystals : ModTile + { + public override void SetDefaults() + { + Main.tileLighted[Type] = true; + Main.tileNoFail[Type] = true; + Main.tileFrameImportant[Type] = true; + Main.tileObsidianKill[Type] = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Lumenyl"); + AddMapEntry(new Color(0, 150, 200), name); soundType = 2; - soundStyle = 27; - dustType = 67; - drop = mod.ItemType("Lumenite"); - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - - public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) - { - r = 0.00f; - g = 0.3f; - b = 0.4f; - } - } + soundStyle = 27; + dustType = 67; + drop = mod.ItemType("Lumenite"); + Main.tileSpelunker[Type] = true; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.00f; + g = 0.3f; + b = 0.4f; + } + + public override bool CanPlace(int i, int j) + { + if (Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].halfBrick()) + return true; + if (Main.tile[i, j - 1].slope() == 0 && !Main.tile[i, j - 1].halfBrick()) + return true; + if (Main.tile[i + 1, j].slope() == 0 && !Main.tile[i + 1, j].halfBrick()) + return true; + if (Main.tile[i - 1, j].slope() == 0 && !Main.tile[i - 1, j].halfBrick()) + return true; + return false; + } + + public override void PlaceInWorld(int i, int j, Item item) + { + if (Main.tile[i, j + 1].active() && Main.tileSolid[Main.tile[i, j + 1].type] && Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].halfBrick()) + { + Main.tile[i, j].frameY = (short)(0 * 18); + } + else if (Main.tile[i, j - 1].active() && Main.tileSolid[Main.tile[i, j - 1].type] && Main.tile[i, j - 1].slope() == 0 && !Main.tile[i, j - 1].halfBrick()) + { + Main.tile[i, j].frameY = (short)(1 * 18); + } + else if (Main.tile[i + 1, j].active() && Main.tileSolid[Main.tile[i + 1, j].type] && Main.tile[i + 1, j].slope() == 0 && !Main.tile[i + 1, j].halfBrick()) + { + Main.tile[i, j].frameY = (short)(2 * 18); + } + else if (Main.tile[i - 1, j].active() && Main.tileSolid[Main.tile[i - 1, j].type] && Main.tile[i - 1, j].slope() == 0 && !Main.tile[i - 1, j].halfBrick()) + { + Main.tile[i, j].frameY = (short)(3 * 18); + } + Main.tile[i, j].frameX = (short)(WorldGen.genRand.Next(18) * 18); + } + } } \ No newline at end of file diff --git a/Tiles/LumenylCrystals.png b/Tiles/LumenylCrystals.png index 86757d77bb35b9ade9edf3aaa22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+1,714 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles +{ + public class MonsterBanner : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileLavaDeath[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2Top); + TileObjectData.newTile.Height = 3; + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; + TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newTile.StyleWrapLimit = 111; + TileObjectData.addTile(Type); + dustType = -1; + disableSmartCursor = true; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Banner"); + AddMapEntry(new Color(13, 88, 130), name); + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + int style = frameX / 18; + string item; + switch (style) + { + case 0: + item = "AquaticParasiteBanner"; + break; + case 1: + item = "FlounderBanner"; + break; + case 2: + item = "GnasherBanner"; + break; + case 3: + item = "TrasherBanner"; + break; + case 4: + item = "CatfishBanner"; + break; + case 5: + item = "MaulerBanner"; + break; + case 6: + item = "AquaticSeekerBanner"; + break; + case 7: + item = "AquaticUrchinBanner"; + break; + case 8: + item = "FrogfishBanner"; + break; + case 9: + item = "MantisShrimpBanner"; + break; + case 10: + item = "AquaticAberrationBanner"; + break; + case 11: + item = "ParaseaBanner"; + break; + case 12: + item = "SeaUrchinBanner"; + break; + case 13: + item = "BoxJellyfishBanner"; + break; + case 14: + item = "MorayEelBanner"; + break; + case 15: + item = "DevilFishBanner"; + break; + case 16: + item = "CuttlefishBanner"; + break; + case 17: + item = "ToxicMinnowBanner"; + break; + case 18: + item = "ViperfishBanner"; + break; + case 19: + item = "LuminousCorvinaBanner"; + break; + case 20: + item = "GiantSquidBanner"; + break; + case 21: + item = "LaserfishBanner"; + break; + case 22: + item = "OarfishBanner"; + break; + case 23: + item = "ColossalSquidBanner"; + break; + case 24: + item = "MirageJellyBanner"; + break; + case 25: + item = "EidolistBanner"; + break; + case 26: + item = "GulperEelBanner"; + break; + case 27: + item = "EidolonWyrmJuvenileBanner"; + break; + case 28: + item = "BloatfishBanner"; + break; + case 29: + item = "BobbitWormBanner"; + break; + case 30: + item = "ChaoticPufferBanner"; + break; + case 31: + item = "AstralProbeBanner"; + break; + case 32: + item = "SmallSightseerBanner"; + break; + case 33: + item = "BigSightseerBanner"; + break; + case 34: + item = "AriesBanner"; + break; + case 35: + item = "AstralSlimeBanner"; + break; + case 36: + item = "AtlasBanner"; + break; + case 37: + item = "MantisBanner"; + break; + case 38: + item = "NovaBanner"; + break; + case 39: + item = "AstralachneaBanner"; + break; + case 40: + item = "HiveBanner"; + break; + case 41: + item = "StellarCullexBanner"; + break; + case 42: + item = "FusionFeederBanner"; + break; + case 43: + item = "HadarianBanner"; + break; + case 44: + item = "HeatSpiritBanner"; + break; + case 45: + item = "ScryllarBanner"; + break; + case 46: + item = "DespairStoneBanner"; + break; + case 47: + item = "SoulSlurperBanner"; + break; + case 48: + item = "ImpiousImmolatorBanner"; + break; + case 49: + item = "ScornEaterBanner"; + break; + case 50: + item = "ProfanedEnergyBanner"; + break; + case 51: + item = "WulfrumSlimeBanner"; + break; + case 52: + item = "WulfrumDroneBanner"; + break; + case 53: + item = "PitbullBanner"; + break; + case 54: + item = "BlightedEyeBanner"; + break; + case 55: + item = "CalamityEyeBanner"; + break; + case 56: + item = "SunskaterBanner"; + break; + case 57: + item = "ShockstormShuttleBanner"; + break; + case 58: + item = "CloudElementalBanner"; + break; + case 59: + item = "AngryDogBanner"; + break; + case 60: + item = "CryonBanner"; + break; + case 61: + item = "IceClasperBanner"; + break; + case 62: + item = "StormlionBanner"; + break; + case 63: + item = "CnidrionBanner"; + break; + case 64: + item = "SandTortoiseBanner"; + break; + case 65: + item = "GreatSandSharkBanner"; + break; + case 66: + item = "AmethystCrawlerBanner"; + break; + case 67: + item = "TopazCrawlerBanner"; + break; + case 68: + item = "SapphireCrawlerBanner"; + break; + case 69: + item = "EmeraldCrawlerBanner"; + break; + case 70: + item = "RubyCrawlerBanner"; + break; + case 71: + item = "DiamondCrawlerBanner"; + break; + case 72: + item = "AmberCrawlerBanner"; + break; + case 73: + item = "CrystalCrawlerBanner"; + break; + case 74: + item = "SunBatBanner"; + break; + case 75: + item = "CosmicElementalBanner"; + break; + case 76: + item = "EarthElementalBanner"; + break; + case 77: + item = "ArmoredDiggerBanner"; + break; + case 78: + item = "MelterBanner"; + break; + case 79: + item = "PestilentSlimeBanner"; + break; + case 80: + item = "PlagueshellBanner"; + break; + case 81: + item = "PlagueChargerBanner"; + break; + case 82: + item = "VirulingBanner"; + break; + case 83: + item = "PlaguebringerBanner"; + break; + case 84: + item = "PhantomSpiritBanner"; + break; + case 85: + item = "OverloadedSoldierBanner"; + break; + case 86: + item = "PhantomDebrisBanner"; + break; + case 87: + item = "BOHLDOHRBanner"; + break; + case 88: + item = "EbonianBlightSlimeBanner"; + break; + case 89: + item = "CrimulanBlightSlimeBanner"; + break; + case 90: + item = "AeroSlimeBanner"; + break; + case 91: + item = "CryoSlimeBanner"; + break; + case 92: + item = "PerennialSlimeBanner"; + break; + case 93: + item = "CharredSlimeBanner"; + break; + case 94: + item = "BloomSlimeBanner"; + break; + case 95: + item = "CultistAssassinBanner"; + break; + case 96: + item = "ReaperSharkBanner"; + break; + case 97: + item = "IrradiatedSlimeBanner"; + break; + case 98: + item = "PrismTurtleBanner"; + break; + case 99: + item = "ClamBanner"; + break; + case 100: + item = "EutrophicRayBanner"; + break; + case 101: + item = "GhostBellBanner"; + break; + case 102: + item = "GhostBellSmallBanner"; + break; + case 103: + item = "SeaFloatyBanner"; + break; + case 104: + item = "BlindedAnglerBanner"; + break; + case 105: + item = "SeaMinnowBanner"; + break; + case 106: + item = "SeaSerpentBanner"; + break; + case 107: + item = "GiantClamBanner"; + break; + default: + return; + } + Item.NewItem(i * 16, j * 16, 16, 48, mod.ItemType(item)); + } + + public override void NearbyEffects(int i, int j, bool closer) + { + if (closer) + { + Player player = Main.LocalPlayer; + int style = Main.tile[i, j].frameX / 18; + string type; + switch (style) + { + case 0: + type = "AquaticParasite"; + break; + case 1: + type = "Flounder"; + break; + case 2: + type = "Gnasher"; + break; + case 3: + type = "Trasher"; + break; + case 4: + type = "Catfish"; + break; + case 5: + type = "Mauler"; + break; + case 6: + type = "AquaticSeekerHead"; + break; + case 7: + type = "AquaticUrchin"; + break; + case 8: + type = "Frogfish"; + break; + case 9: + type = "MantisShrimp"; + break; + case 10: + type = "AquaticAberration"; + break; + case 11: + type = "Parasea"; + break; + case 12: + type = "SeaUrchin"; + break; + case 13: + type = "BoxJellyfish"; + break; + case 14: + type = "MorayEel"; + break; + case 15: + type = "DevilFish"; + break; + case 16: + type = "Cuttlefish"; + break; + case 17: + type = "ToxicMinnow"; + break; + case 18: + type = "Viperfish"; + break; + case 19: + type = "LuminousCorvina"; + break; + case 20: + type = "GiantSquid"; + break; + case 21: + type = "Laserfish"; + break; + case 22: + type = "OarfishHead"; + break; + case 23: + type = "ColossalSquid"; + break; + case 24: + type = "MirageJelly"; + break; + case 25: + type = "Eidolist"; + break; + case 26: + type = "GulperEelHead"; + break; + case 27: + type = "EidolonWyrmHead"; + break; + case 28: + type = "Bloatfish"; + break; + case 29: + type = "BobbitWormHead"; + break; + case 30: + type = "ChaoticPuffer"; + break; + case 31: + type = "AstralProbe"; + break; + case 32: + type = "SmallSightseer"; + break; + case 33: + type = "BigSightseer"; + break; + case 34: + type = "Aries"; + break; + case 35: + type = "AstralSlime"; + break; + case 36: + type = "Atlas"; + break; + case 37: + type = "Mantis"; + break; + case 38: + type = "Nova"; + break; + case 39: + type = "AstralachneaGround"; + break; + case 40: + type = "Hive"; + break; + case 41: + type = "StellarCulex"; + break; + case 42: + type = "FusionFeeder"; + break; + case 43: + type = "Hadarian"; + break; + case 44: + type = "HeatSpirit"; + break; + case 45: + type = "Scryllar"; + break; + case 46: + type = "DespairStone"; + break; + case 47: + type = "SoulSlurper"; + break; + case 48: + type = "ImpiousImmolator"; + break; + case 49: + type = "ScornEater"; + break; + case 50: + type = "ProfanedEnergyBody"; + break; + case 51: + type = "WulfrumSlime"; + break; + case 52: + type = "WulfrumDrone"; + break; + case 53: + type = "Pitbull"; + break; + case 54: + type = "BlightedEye"; + break; + case 55: + type = "CalamityEye"; + break; + case 56: + type = "Sunskater"; + break; + case 57: + type = "ShockstormShuttle"; + break; + case 58: + type = "ThiccWaifu"; + break; + case 59: + type = "AngryDog"; + break; + case 60: + type = "Cryon"; + break; + case 61: + type = "IceClasper"; + break; + case 62: + type = "StormlionCharger"; + break; + case 63: + type = "Cnidrion"; + break; + case 64: + type = "SandTortoise"; + break; + case 65: + type = "GreatSandShark"; + break; + case 66: + type = "CrawlerAmethyst"; + break; + case 67: + type = "CrawlerTopaz"; + break; + case 68: + type = "CrawlerSapphire"; + break; + case 69: + type = "CrawlerEmerald"; + break; + case 70: + type = "CrawlerRuby"; + break; + case 71: + type = "CrawlerDiamond"; + break; + case 72: + type = "CrawlerAmber"; + break; + case 73: + type = "CrawlerCrystal"; + break; + case 74: + type = "SunBat"; + break; + case 75: + type = "CosmicElemental"; + break; + case 76: + type = "Horse"; + break; + case 77: + type = "ArmoredDiggerHead"; + break; + case 78: + type = "PlaguedFlyingFox"; + break; + case 79: + type = "PlaguedJungleSlime"; + break; + case 80: + type = "PlaguedTortoise"; + break; + case 81: + type = "PlagueBee"; + break; + case 82: + type = "PlaguedDerpling"; + break; + case 83: + type = "PlaguebringerShade"; + break; + case 84: + type = "PhantomSpirit"; + break; + case 85: + type = "OverloadedSoldier"; + break; + case 86: + type = "PhantomDebris"; + break; + case 87: + type = "Bohldohr"; + break; + case 88: + type = "EbonianBlightSlime"; + break; + case 89: + type = "CrimulanBlightSlime"; + break; + case 90: + type = "AeroSlime"; + break; + case 91: + type = "CryoSlime"; + break; + case 92: + type = "PerennialSlime"; + break; + case 93: + type = "CharredSlime"; + break; + case 94: + type = "BloomSlime"; + break; + case 95: + type = "CultistAssassin"; + break; + case 96: + type = "Reaper"; + break; + case 97: + type = "IrradiatedSlime"; + break; + case 98: + type = "PrismTurtle"; + break; + case 99: + type = "Clam"; + break; + case 100: + type = "EutrophicRay"; + break; + case 101: + type = "GhostBell"; + break; + case 102: + type = "GhostBellSmall"; + break; + case 103: + type = "SeaFloaty"; + break; + case 104: + type = "BlindedAngler"; + break; + case 105: + type = "SeaMinnow"; + break; + case 106: + type = "SeaSerpent1"; + break; + case 107: + type = "GiantClam"; + break; + default: + return; + } + player.NPCBannerBuff[mod.NPCType(type)] = true; + player.hasBanner = true; + } + } + + public override void SetSpriteEffects(int i, int j, ref SpriteEffects spriteEffects) + { + if (i % 2 == 1) + { + spriteEffects = SpriteEffects.FlipHorizontally; + } + } + } +} \ No newline at end of file diff --git a/Tiles/MonsterBanner.png b/Tiles/MonsterBanner.png new file mode 100644 index 0000000000000000000000000000000000000000..c63cfccea6854c20e7fe3128a308f8a92ba20e99 GIT binary patch literal 51606 zcma&OcRX8v`2XEj(bg=mn zEpdYk_^Y%t7J20g*A)#FCF4Mwt;_%f!;_f{8Yx*OE?Ta!$SnQGj7dXsnzt!lQ{5R> zD=3b+5B!>NlHPfKhr%#llmCE2^Rdg#d!VGqE4k7X?Ru-z6sQ^TDf-Ui(Ch_q{9x8x zW~R6t@FRYVzzJsb&48+XfuCDi^NjX?Go#D=Rsqk zwwWMQHl3uK+g?71+(EeNx%`-w)uEp6}N~-Dhfrwbtu) z-Es>Wc4~59~-_uYdJ6oRS)YV*XG4AJ;#qWDklv#RU$TpvHo-Df8(eNy}L^-bJ>%`2PK?Dt5VlbETH??7BkFRlaDhZct_i|o+rFyP5h3V|sqWqb z=&Pu*_3dA=bJKnvYpBF;KgOTPwy4OWvZd2ns)!<0RWs!cmgl3wQ#IZ-ddKd4iB*L6 zgBq(dlWYDh7|i5Z%U8|@k<9XO#!)9_WRn(gwqfMIV@ z@K*)D?4$6A$I5k^s;W;)@C?@u!j@j$IiS$lGZ!x0L@0=00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xp z8X~M1oNu;UeeNFkOT!t;LKl2X&h}Q)Z55!kJBuGXx+4!B1)pZ~KF2(`gHEn}MIg{R<%IgFN&P0M6~o(u(lvg{~1 z^18Y^92|7qVeJ8x?kS!NKk5S${aVsF>7LrT@QG;N7DCb-=^y|Elz*%j4D-k-6X3pe+!wt{#ot@ z@3tDa{?~{+fy_ob%8}V$@= 6) + { + frame = (frame + 1) % 6; + frameCounter = 0; + } + } + + public override void NearbyEffects(int i, int j, bool closer) + { + Player player = Main.LocalPlayer; + if (!player.dead && player.active) + player.AddBuff(mod.BuffType("PinkHealthCandle"), 20); + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.75f; + g = 0.35f; + b = 0.65f; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PinkCandle")); + } + } +} diff --git a/Tiles/PinkCandle.png b/Tiles/PinkCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..a74d8acee84b3381917df82a0791b0c6987c63b4 GIT binary patch literal 809 zcmV+^1J?YBP)6_BU zh1%~*wz>f7Sq}h-une{v%5={vNO>d-YJ2uA56wUobA><^JJMao^6+yoIz0}+oeMW= ze|G>Ta#;nCN~WS=5Ira3!cC9WfYo0{0-F2!M#V5?PZ|OA3F)ayDy)OCz1^Z_Z^T~i4KN%w@D`$ z^?}v}8geU9$H?`?)pB<~*2_Jv{4V#D|7C0-JOe#u-Sb9wr)TVm#Z?t8gX+zzLJ454 zyVF~tQchF~rS3e~HviM6&Ws3u9$Yy(2*CH^N}vbcF3-y{h#%G1*ec}KL1y9!0JnPj zj1`?isfSZ2f(7+6~m;;nR~y9DOI=8a6`vH%RH zGsbgbbb4GBbA_1CgZr091Y@HOU%!3we7-&O0Ei+s+7ycRRJ20TUJFtToI-I51)M^0 zD8mz(Dq10sccLK|8x2YYfIq!EJXdiBp1rVnoSIQ-SG9`STM=Vmo8?B{N+j=@jIent z|G{olHjUK3r`PwvWXEnmGB&mf=b<=-BElg42Ao21*c!0@dk^ZZv?V(GdMj;V;Oni( z>BLs^QRL>Jk!O;5eAAeZ68=0$B~#WcmmrW=D2+Um=omPK;uK1(4LF7301e(9K;yg= z`S%O8F)~rf4oT$o)te0>w-;>rC>#Hr3r{{ubh*0C=A%TXk%H!= 6) + { + frame = (frame + 1) % 6; + frameCounter = 0; + } + } + + public override void NearbyEffects(int i, int j, bool closer) + { + Player player = Main.LocalPlayer; + if (!player.dead && player.active) + player.AddBuff(mod.BuffType("PurpleDefenseCandle"), 20); + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.65f; + g = 0.35f; + b = 0.85f; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("PurpleCandle")); + } + } +} diff --git a/Tiles/PurpleCandle.png b/Tiles/PurpleCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..e8c72dee6dbbb2bdf01bade9664f0f14d06b583e GIT binary patch literal 297 zcmeAS@N?(olHy`uVBq!ia0vp^0ziC*gBeKrUcAf>q~rp8LR^9L-je_K&;AhN7ykF} zZK_#A^P<&{H~$Y#Xjojn`SZD1=YT4>N`m}?8UDjSU8hJGP;`T*i(`mK=i6x)`I;4Y z7<4&i|Nnnj`>5rCWv*9J)b^_HWDlw8^t&9-*rCE86STtZN$NtjmNxe}vnL8%GF4Bi z5fpsra_i|{r_*yk)G0DKRvReg&V0IqLwe4M_rFuE8@#@p-zKSM9P62J`G2Qchg*pG zz0Q5=Q>~|NY&yo}bzFzLR_{40!|ctQ+pHugr9UqMkw4(odv*Ub$I&I4h6Sny+Bs zJyyH_r!8H=zU!jN(b&g+`z5#SX73AWPM+|-dicX^a!?;DWO9nmVXdz5hc;~V?~wal z9`$Sa^(Rwxs8HTlzh=4Ox)rZnw-lw?+0S&z<*Ddm+!}YgTd?6$(%2++*ao*tK^FW1 zRn15E?Z~0(1C(|)UMWwZ!ltH_UzJ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f0OYqXn_B{WR#3X zx1e(v!XRoW!uFZ?OyO0z;|o#dZ`GGAfNP~n2vFS+lI!63Jju}W_*oq znkRBMPb`4$+`C3bSADGn#);N=&8pOdg{5a9z|M0sD(ZYHLwPAa3#5=x#&*O@`hggD z=){Jor3*-_7V8{{Z}7KCMDxzTha_5R-q8x7v13-@gUVtwVg23QlAGeSBpT{D(nqKt zgd=@Nqg>K=3b*eX6L`~-!Tl(2XvMJAkQTY>EG+h;`62=lAtjQH-cu?`GV%J+4e_>X zB=#*e-bGIRGKn>peIo=YzFhzy$bVocXf)AUD*2AF_R1E(olidx0UA4B1Lv!3eFy3H zB!RHDYXM~JpF)7(_amb}xqfngjVDbY&4h9{aw8RzzNMn?q~g?~1<*M9D+E}5zi;R% z5si9}9+**0Nd@(73&5FKG4fd~QPmxh($ M07*qoM6N<$f?yI2bN~PV literal 0 HcmV?d00001 diff --git a/Tiles/SunkenSea/EutrophicSand.cs b/Tiles/SunkenSea/EutrophicSand.cs new file mode 100644 index 0000000000..727c536cb6 --- /dev/null +++ b/Tiles/SunkenSea/EutrophicSand.cs @@ -0,0 +1,38 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class EutrophicSand : ModTile + { + public override void SetDefaults() + { + Main.tileSolid[Type] = true; + Main.tileMergeDirt[Type] = true; + Main.tileBlockLight[Type] = true; + dustType = 108; + drop = mod.ItemType("EutrophicSand"); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Eutrophic Sand"); + AddMapEntry(new Color(100, 100, 150), name); + mineResist = 2f; + } + + public override bool CanKillTile(int i, int j, ref bool blockDamaged) + { + return CalamityWorld.downedDesertScourge; + } + + public override bool CanExplode(int i, int j) + { + return CalamityWorld.downedDesertScourge; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} \ No newline at end of file diff --git a/Tiles/SunkenSea/EutrophicSand.png b/Tiles/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j_+;kvGg)YIf0Dj|i#GQtq2USXq%9a9;bK4y^nUc(Ax#T7p zYrMjz+aANw)g88$nX@>dq+TFE-qZPP;gxdOxHG9Gfk;5Tw9$UnH;^$cF?O=-$++ I(sGLWKU*^Y9smFU literal 0 HcmV?d00001 diff --git a/Tiles/SunkenSea/FanCoral.cs b/Tiles/SunkenSea/FanCoral.cs new file mode 100644 index 0000000000..167f956bd3 --- /dev/null +++ b/Tiles/SunkenSea/FanCoral.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Terraria; +using Terraria.Enums; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.ModLoader; +using Microsoft.Xna.Framework; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class FanCoral : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileLighted[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3); + TileObjectData.addTile(Type); + dustType = 253; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Fan Coral"); + AddMapEntry(new Color(0, 0, 80)); + mineResist = 3f; + + base.SetDefaults(); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.3f; + g = 0.75f; + b = 0.75f; + } + } +} diff --git a/Tiles/SunkenSea/FanCoral.png b/Tiles/SunkenSea/FanCoral.png new file mode 100644 index 0000000000000000000000000000000000000000..0ffee8ecf38ff3c337024a3a3678703657a8ece5 GIT binary patch literal 2639 zcmV-V3b6HwP)6~}**UB7k{zc(*G($EB_Zj+KorGy%iHmXEHYCq753M5{tRPhiGA^60{exgD= z#H$ig0f~wz?T1!s0adgKbrqUQm^#G7B#sl?iJh(=S=+m|ckK)x&Ya!c>m9EXuY*RN z|CjO1-nnz`IKP%!SC9H#9ROTA-|rTa=T>3&k7}&Mw8h}&7y#Mvj0?ti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Hsa?uUbqPtIa8;sRx^J>>krQo-&()~7-zv*C?WC>lb zb#JB}_WstU-I6nL-?zT!fH(>Bx9j}&QZ4d8p02)3rYdp8T7KLBbx#_NU z2f%fvU4T3HOAPJZKfVntw@qthl1JHR>tFAR8g00s`M1-en_uDgT$j!s#LTVfc0NPE&m9Z zo7&zXOgeMC$0)Z}CMo>ZRr@cX5=D-9r$aI`!km;BnMe&!8TBqq2_x6*$V^KlW_(!khjN~cU78o>`<>XlRfLQR2v%*QRtud;c;~HZIweT7BeCol#%r-K~Dtc&wWkIH~_N~GcGKb`$CT#g;d)#JvgsF zt&6-NqXL4mkG|jOZk?%`k*YhTIwKcSS;^1yysv0nP6#fh7mfPMrSt8`OEfOZWic%$ z|Kcrjs-mi{(uL*TtLBi~US7FvlOkkPKu~rYm0$ULr@r;9*m*$Y)2O;F|LsD^sDPmCj8bn(qsFQJIm7E~{fy+xX_k{_-9$50 zUU}1-inVW&SlrM|xkWYVw@)V4c1T2GVY}=O9NBrqkXMnny>-&JB?6JOv zcJb<_h9-<0b(=vWug(I6oQOy!CsFcPh2ia$D_6o#UaZ^+g)NWfRQPEG-O+AnZ*l;p zhD0-jvAz!&%FZaf8LBx53iXzpumRA|3xg844@hG>vA)^9T~$-uYzFPkB4kuR@IT$)n&Z5-u37*9002ovPDHLkV1nGyF#rGn literal 0 HcmV?d00001 diff --git a/Tiles/SunkenSea/Navystone.cs b/Tiles/SunkenSea/Navystone.cs new file mode 100644 index 0000000000..1d759aa521 --- /dev/null +++ b/Tiles/SunkenSea/Navystone.cs @@ -0,0 +1,94 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class Navystone : ModTile + { + public override void SetDefaults() + { + Main.tileSolid[Type] = true; + Main.tileMergeDirt[Type] = true; + Main.tileBlockLight[Type] = true; + dustType = 96; + drop = mod.ItemType("Navystone"); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Navystone"); + AddMapEntry(new Color(0, 50, 50), name); + mineResist = 2f; + minPick = 54; + soundType = 21; + } + + public override bool CanKillTile(int i, int j, ref bool blockDamaged) + { + return CalamityWorld.downedDesertScourge; + } + + public override bool CanExplode(int i, int j) + { + return CalamityWorld.downedDesertScourge; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void RandomUpdate(int i, int j) + { + int random = WorldGen.genRand.Next(4); + if (random == 0) + { + i++; + } + if (random == 1) + { + i--; + } + if (random == 2) + { + j++; + } + if (random == 3) + { + j--; + } + if (Main.tile[i, j] != null) + { + if (!Main.tile[i, j].active()) + { + if (Main.rand.Next(20) == 0 && !Main.tile[i, j].lava() && Main.tile[i, j].slope() == 0 && !Main.tile[i, j].halfBrick()) + { + Main.tile[i, j].type = (ushort)mod.TileType("SeaPrismCrystals"); + Main.tile[i, j].active(true); + if (Main.tile[i, j + 1].active() && Main.tileSolid[Main.tile[i, j + 1].type] && Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].halfBrick()) + { + Main.tile[i, j].frameY = (short)(0 * 18); + } + else if (Main.tile[i, j - 1].active() && Main.tileSolid[Main.tile[i, j - 1].type] && Main.tile[i, j - 1].slope() == 0 && !Main.tile[i, j - 1].halfBrick()) + { + Main.tile[i, j].frameY = (short)(1 * 18); + } + else if (Main.tile[i + 1, j].active() && Main.tileSolid[Main.tile[i + 1, j].type] && Main.tile[i + 1, j].slope() == 0 && !Main.tile[i + 1, j].halfBrick()) + { + Main.tile[i, j].frameY = (short)(2 * 18); + } + else if (Main.tile[i - 1, j].active() && Main.tileSolid[Main.tile[i - 1, j].type] && Main.tile[i - 1, j].slope() == 0 && !Main.tile[i - 1, j].halfBrick()) + { + Main.tile[i, j].frameY = (short)(3 * 18); + } + Main.tile[i, j].frameX = (short)(WorldGen.genRand.Next(18) * 18); + WorldGen.SquareTileFrame(i, j, true); + if (Main.netMode == 2) + { + NetMessage.SendTileSquare(-1, i, j, 1, TileChangeType.None); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/Tiles/SunkenSea/Navystone.png b/Tiles/SunkenSea/Navystone.png new file mode 100644 index 0000000000000000000000000000000000000000..35103a30e0e2096eb2f0ce9383c23090fb6f9857 GIT binary patch literal 21962 zcmX_IWkA#Y_XSZ9K@e#qq@`OJqm)TViF9`e0+ORak&^Ca3eqjzlA{L_1C)-@1IB=n z|2@y+@BdSqbzO2M6~l_C<0ZANvUx`%pg) z&Qly^&-eDCF| z;m+P?RAJPnw5FowU%?Lrh`lY04r_70#n@GwN$Z_CHfJ5^!pAeea4WO*y|7Lkq-SLn z-t3BU@5s8+_><-8a(D3STf}cr{|A`#?d?+AZL{5ZEcl?CGz2nOz#`UP02wi-)LpGl;3H_y~IoM@U2- z4Avh*00K=lEgeQgJSZX}AFWL#|AKkHEOFB2>{UrlrpfLe84;1_!x-en<+tu{ljIW@ zVSjeefby9=su-oJf=R`(=D4CA>I?+tE!*u2eqPvdy@`7fuuMi)P%9O5?Ey2X60K^5 zGpK{5$#>huRn_Yc44H!dSltMm_-^n3SXhpQBdyT4o`@MvMl#LSXUzB^U5BCx-8o;B zymBc6Lx2}m;r`*!oS=;nWfsXc)EN^x!rlYQ_2-WpxHnCg9^gw*a^nyeN3Oz5+}Ef- z)}@mGD=L_d;`QF$eK_Ozh!@}2vdx>|x_YgCL!k;RXa48PoO3E&SH0$~^@d0nFh18V zC^rK9vpAJ>lXll*KO_#j8FRJw>^L6+O_AmCjeI>_=!r+|<`}u4{9Qqy<(q?OD(_I1xv;>*ej8kvqaP#3CVJ zw;N$Hh6C#+ygS#hQ^h!zJlz!V7h`q-nXjAiTZihAIZsRJUFz4#$i!6I+&7(_Yy3SC zP==ENrjFO3xP4=mAc=T8yMSO>}`gD9DayJ!(lwZckoL& zMcfbJuSBg1M!`FlV==zHDO%2T0OZ#RuUtM?#XbgxpE)Lqk-ws7Q$@bAf}@wDcZV*~ z;#cp#*e(BgJHg5_#KHL_?KCA>;}99&d8}XeG&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SunkenSea/SeaAnemone.png b/Tiles/SunkenSea/SeaAnemone.png new file mode 100644 index 0000000000000000000000000000000000000000..0a1a862135ad43a69d89b97bbc29853277836c16 GIT binary patch literal 3162 zcmV-g45jmlP)i24OFu^b!^NSTDUsQFfu|wU>HKQhX7mmn1Oh zN>D);Q|VBVl~JLIl|^ZXqHpH6Vg7SI)|$QN96Woz{j%A6uRXKozy9koYyIY1BeUW) zsRARR%j61-Tz1pL|Nj5e+@J>`)@brd5)VZCuxZv+`8BDGxqR{mLFadACFhEKni(dw3)dEH*@BhTwn0mr^Qg1P|LS}1u_W*8+-&dX{$1^jdzlSk zL>Nk%x`$)dZ+^m*-1XGc6$kBp{>h5v)B)<8sdkL#6!JxW);&_>8;9ui;TYP|kr1XR zcvl#D8A{-RZI4gt7)ru(jtWf)(5MaC#^fGfox*w5F|XYBjQyn7-*Zd|Qw&ou#t0+U zl{XZ<5Kf>@s?zjUj8_=PXi4(FsdkKa9!9>5Z*U6vSLbuR2i`AwsSu{@OlramTIYxL z|E&zVhEW{1Dsi!1Tf@kcHikOQ$g=IW#Tzf_y^rRHag^7#=yfLBn9d8M_Yw$#(tOr? z6TN3zvh3>0{Kua^{8=gFBPYLXrP?l>dwJzNXJ34FDz(Cc#NV>&Mka(fEv z%-5;IZ%tZ4>o#qyl;qLFKUunO-u~L&+jh*dTbA2#FIc>&lAql#Z!yQHgXb*1wUSQf zW3&d;?ykK*aMaET!-eYzR)x6i-cd_BcINf={^AqQo4B_>cAGio@M|aR`@eoYY46l| z?NtW-j3dsPKi3Ym_^x^OzW3QTEk6%E{fOmf{O=F!`>(bitDF)CdA(eJe*Lnr~9G5+aCc8oQ5+*xU3D4wZqW7K&c?s>hK^S$P}Vh+1>5)M}f(R*qe7{Zjp z3Rf7M;?_Z+LoYq! z5_{MD&^!KmM_8b$!REHHcVQ5<@5gc-2(W#2k^M0CRpS4btp2U>Y zv4h9$tA58b6x`^F1r_J&d9=;*@=dO(NRMOal_&{4UfYh* z;8?ZL{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;v~y!+TlT(62o zVvmGLHl&HGiy9R}E1_W|P;P#4#c+$dM4^m0L(zb0C;wo{0_e5(J%E$%TsTiLbr%6p zKiUo#BY{Tx-{fvkMrJjUTa|g4+;ae`WjX1Oj@%u~r8h?6oliT!x!crbP&3w3gpU!0 z>y!X+Ag7H4kFN>*_caf^H}m}K3H~<%*JKlSJ%G%TR6N~z zPzQYIx7OR(z9s*xK3zEtq$=pbCK`306?+*EU+1#tiX002ovPDHLkV1h5` BHg5m` literal 0 HcmV?d00001 diff --git a/Tiles/SunkenSea/SmallTubeCoral.cs b/Tiles/SunkenSea/SmallTubeCoral.cs new file mode 100644 index 0000000000..2c39da12d7 --- /dev/null +++ b/Tiles/SunkenSea/SmallTubeCoral.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Terraria; +using Terraria.Enums; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.ModLoader; +using Microsoft.Xna.Framework; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class SmallTubeCoral : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileBlockLight[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.addTile(Type); + dustType = 253; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Small Tube Coral"); + AddMapEntry(new Color(0, 0, 80)); + mineResist = 3f; + + base.SetDefaults(); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Tiles/SunkenSea/SmallTubeCoral.png b/Tiles/SunkenSea/SmallTubeCoral.png new file mode 100644 index 0000000000000000000000000000000000000000..b4e9092d421907daa0d18f77fe06ef3ff273a8fa GIT binary patch literal 756 zcmV3n0IQHR{uY}AtNehFCUpcwu@S@wLKXrc zU?W)g(MWzm_>;V=W)d9Lnp&3qrk_sB`{SEAv8%oIF0*(0LuT*cekoFvnk*YSK;5asz+e^_ z6vi>246BMs%p5Qz*riMf48lN3CKYCo1EdIZG-#b&<|uVD@*>y%zO$Z-VqyLrG3fm9 zXiobk=hrd~(x-8?m$M)9(aD+_F~|YR(iS|SVMPN(C7f}KLD5;)9R{XBB%RPklR?UG zL_I6|IzXBhm;goMt12HHqDZ5C{dq%vJ{Wr`Z)gxa)p*{Pe$4y%<7?qS&^>kd$sKt_ZBK>c`an7*l${`Ub$^N1loK#h~q zARN`}i(fLeYVBe0gBCq{C_|{ZppBLWAI9T>wv+`EZjmQ_cNnd>dRpR2zXeYkY%9m>&_rGx(mw3W3B`$Par~{= 36 && tile.frameY <= 54) || tile.frameY == 90) + { + offsetY = 2; + } + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + WorldGen.CheckTight(i, j); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 4; + } + } +} diff --git a/Tiles/SunkenSea/SunkenSeaStalactite.png b/Tiles/SunkenSea/SunkenSeaStalactite.png new file mode 100644 index 0000000000000000000000000000000000000000..7ed7c07179288cd4fba0f4acd74dfd5677066605 GIT binary patch literal 2107 zcmV-B2*me^P)+}R5PfTX_!9{uZ26^KRK*h z80BgO0I>OZgSR4m?E}D-uPy@s>Q_qufXX#k{SudVn*e~l^?G7IQx8@WKi_V2towXE z_7itrL;x^_K#}Jk3-1a5fErE!3@nkmt1M58*ZU`9JLKo@=WhT2{_4I~{W(T}3#*ZO zo-O@->~~(j-+R^^+dh282wJwjb`=0n(f8>qwA7xb<3C^9Oi4&zapC@r8&-dO4mpy5 zy45ax#u{-Az`zIE`o0{?oE7(kg$Vj;Z?|UkLvXe{UEc-(Ockdh066WOTA#c6#WDck zkDq=A0DSY~w~61^+kLK|$40n}<>&Gd0PL;Tt#ycF8~U>G^m(cdX=ynE=o4+Ro=K)8 z$P}4#p;#)Ybx^x>xQum=x`}VlLbo2S0T}q!zc1e=eqLhj-W>qI?%(eK0Ec>gRfi@9$an$$-yC=d1G(0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Ry(Qxm+&zkE@M;yNS~0kU*-oH zlS!?x1S6V}lY0V^DfY`;2v2HAaGfLM$%}9q+uv3`Bbk%nY)2J=ODk;7fi-Mjle4N^ z2Ti-CY3HiDS?dw``OU?yWy(~M7owudW8);j(}{sUe+8bXM2f=U1Y002ovPDHLkV1iWZ1?2z$ literal 0 HcmV?d00001 diff --git a/Tiles/SunkenSea/TableCoral.cs b/Tiles/SunkenSea/TableCoral.cs new file mode 100644 index 0000000000..bd9a822e85 --- /dev/null +++ b/Tiles/SunkenSea/TableCoral.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Terraria; +using Terraria.Enums; +using Terraria.ObjectData; +using Terraria.ModLoader; +using Terraria.DataStructures; +using Microsoft.Xna.Framework; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class TableCoral : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileBlockLight[Type] = true; + Main.tileSolidTop[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.None, 0, 0); + TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); + TileObjectData.newAlternate.AnchorLeft = new AnchorData(AnchorType.SolidTile, 2, 0); + TileObjectData.addAlternate(1); + TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 2, 0); + TileObjectData.addTile(Type); + dustType = 253; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Table Coral"); + AddMapEntry(new Color(0, 0, 80)); + mineResist = 3f; + + base.SetDefaults(); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Tiles/SunkenSea/TableCoral.png b/Tiles/SunkenSea/TableCoral.png new file mode 100644 index 0000000000000000000000000000000000000000..42d2201e27f45cba17801b5e69ea021280a61585 GIT binary patch literal 1533 zcmVk|000HVNkl9(E6vuyezB--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*T2Eo6O~AaMD;{pOMYC$YrX{KXu3w5v&d`ySYjxyJ z=d?ZmCN|4=%M*KA0O&n-MFBLe+GsiXG0{rN#3a)FV-k^xi2Q;Zj@^*lGnso!Y;;zZ zMk{&4TFH6i{l6)I^?O<@fFF-a3JMH;FYD1ctNF<}?V9_ePo|BVmA{GH=?prKI#r2G5koQRvUHM+u*Xp-vslI8aC%mqxG3`4@_teG^Y% zB}QI_J!s4b&ZoHaWLo|gqdZ_i;fg9W!XGrA!b*()yuwWKDK1zUl>b#9OIf+`l2(+7 jr!Wr>4-XFykNd*k@Q{EjzL`Kx00000NkvXXu0mjfza#YB literal 0 HcmV?d00001 diff --git a/Tiles/SunkenSea/TubeCoral.cs b/Tiles/SunkenSea/TubeCoral.cs new file mode 100644 index 0000000000..19acf556b8 --- /dev/null +++ b/Tiles/SunkenSea/TubeCoral.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Terraria; +using Terraria.Enums; +using Terraria.ObjectData; +using Terraria.DataStructures; +using Terraria.ModLoader; +using Microsoft.Xna.Framework; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class TubeCoral : ModTile + { + public override void SetDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileNoAttach[Type] = true; + Main.tileBlockLight[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2xX); + TileObjectData.newTile.Height = 3; + TileObjectData.newTile.CoordinateHeights = new[] + { + 16, + 16, + 16 + }; + TileObjectData.addTile(Type); + dustType = 253; + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Tube Coral"); + AddMapEntry(new Color(0, 0, 80)); + mineResist = 3f; + + base.SetDefaults(); + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} diff --git a/Tiles/SunkenSea/TubeCoral.png b/Tiles/SunkenSea/TubeCoral.png new file mode 100644 index 0000000000000000000000000000000000000000..d4b509f0dfb6566b6bdc50e62b7d52e10a83f303 GIT binary patch literal 957 zcmV;u148_XP)Bh+re6 zh^ASUpfGRFgE_Nj@4UCWf!)1nUgCT6-psjY&bjxFohAPni9pBk8I6DgWH7`5a)8DY z5oeGy$Qd*q0!h7;4z09l!I=3-Wu3=Jwx zz^u<$_nUr4x|sNo7HMl{iv|$zu$Xl4wjUndKlUM9yI*$0_1o9?VViPdJ{V+a4+6iu|2mB13L$eb2PiF}BtXb0Sxdk)-m45OoUd&7fXkrYC&~pDp zX%MRJ-p0c)68}r2G;$nCnb~hY2#zYI~ZYGG?5VqB=*%k{Oisq@zfe_Nj^)#G;FdbJKod0fGjx8%Tg+ zr?2haw`wic!a6YVyU-voi03^u4RU~DXe{mFvur#MS733+^QC)VF^IQ1GlAz}o%mYw fks9OxRU!Hhe!+YnYwYXl00000NkvXXu0mjf2k*oc literal 0 HcmV?d00001 diff --git a/Tiles/Tenebris.cs b/Tiles/Tenebris.cs index ebc45cabe4..9f2c2143be 100644 --- a/Tiles/Tenebris.cs +++ b/Tiles/Tenebris.cs @@ -70,7 +70,7 @@ namespace CalamityMod.Tiles { if (Main.tile[i, j].active()) { - if (Main.rand.Next(5) == 0 && !Main.tile[i, j].lava()) + if (Main.tile[i, j].type == mod.TileType("PlantyMush") && WorldGen.genRand.Next(5) == 0 && !Main.tile[i, j].lava()) { Main.tile[i, j].type = (ushort)mod.TileType("Tenebris"); WorldGen.SquareTileFrame(i, j, true); diff --git a/Tiles/TranquilityCandle.cs b/Tiles/TranquilityCandle.cs new file mode 100644 index 0000000000..9f5f0bc509 --- /dev/null +++ b/Tiles/TranquilityCandle.cs @@ -0,0 +1,65 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles +{ + public class TranquilityCandle : ModTile + { + public override void SetDefaults() + { + Main.tileLighted[Type] = true; + Main.tileFrameImportant[Type] = true; + Main.tileLavaDeath[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.StyleOnTable1x1); + TileObjectData.addTile(Type); + drop = mod.ItemType("TranquilityCandle"); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Tranquility Candle"); + AddMapEntry(new Color(238, 145, 105), name); + animationFrameHeight = 20; + } + + public override void AnimateTile(ref int frame, ref int frameCounter) + { + frameCounter++; + if (frameCounter >= 4) + { + frame = (frame + 1) % 10; + frameCounter = 0; + } + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.showItemIcon = true; + player.showItemIcon2 = mod.ItemType("TranquilityCandle"); + } + + public override void NearbyEffects(int i, int j, bool closer) + { + Player player = Main.LocalPlayer; + if (!player.dead && player.active) + player.AddBuff(mod.BuffType("TranquilityCandle"), 20); + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.55f; + g = 0.055f; + b = 0.55f; + } + + /*public override void RightClick(int i, int j) + { + Item.NewItem(i * 16, j * 16, 8, 8, mod.ItemType("TranquilityCandle")); + ?? KillTile( i, j); + }*/ + } +} \ No newline at end of file diff --git a/Tiles/TranquilityCandle.png b/Tiles/TranquilityCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..eb1f0f44a4b3664e25281bf1e75914f31c0d25c7 GIT binary patch literal 718 zcmV;<0x|uGP) zze@u#6vv|ot`1!tEDkz22yUGOaZ_-yI0=G|{srB1a29kC3QmHH*jXsz>gLixbZ~I- z4^Wp%a{cDVy9+%@?s{-fD9H=G_g=oaeEM>p5S9B|Us@Z=4-)G%uZHpio3_(*;J@|^ zEtL%d_ppGkG%ejx6 zznx~V26{IlDrKS_P4=-%F&>@)jZB$nsEn8{ox?MLUtdc(c-wWqSzHECo0(`7XC@jg z(5oX8ef46z-AKvQA0&FCN;PDPO(YuGFww14L8kJEggXwAVbeC=Dp1eNM5>4o%*3=N zb!1{%g=8e&Zlq+QOhg9QrLe;@ppkt{L_{HCQ`vaV?olR|M`ftZb)s1rW}?voy*e_H z>qMcS+JmysOr(l16Vr;+lZjb6$gz04aU2to0d^_u@C;~V z-`QEys5|MiGvQpEC&dksv-fpC1s?NJOm}_yBDkAt= zP2KwT6n#_RCD<|FPKj1HZFv)ZllvBR)_31Ltuux2cEQ761SM07*qoM6N<$f*MUy A(EtDd literal 0 HcmV?d00001 diff --git a/Tiles/ViperVines.cs b/Tiles/ViperVines.cs index 2fe598ee2a..b46ef5fe8a 100644 --- a/Tiles/ViperVines.cs +++ b/Tiles/ViperVines.cs @@ -32,7 +32,21 @@ namespace CalamityMod.Tiles { Item.NewItem(new Vector2(i * 16 + 8f, j * 16 + 8f), ItemID.VineRope); } - } + if (Main.tile[i, j + 1] != null) + { + if (Main.tile[i, j + 1].active()) + { + if (Main.tile[i, j + 1].type == mod.TileType("ViperVines")) + { + WorldGen.KillTile(i, j + 1, false, false, false); + if (!Main.tile[i, j + 1].active() && Main.netMode != 0) + { + NetMessage.SendData(17, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); + } + } + } + } + } public override void RandomUpdate(int i, int j) { @@ -61,12 +75,18 @@ namespace CalamityMod.Tiles int num53 = i; int num54 = j + 1; Main.tile[num53, num54].type = (ushort)mod.TileType("ViperVines"); - Main.tile[num53, num54].active(true); + Main.tile[num53, num54].frameX = (short)(WorldGen.genRand.Next(8) * 18); + Main.tile[num53, num54].frameY = (short)(4 * 18); + Main.tile[num53, num54 - 1].frameX = (short)(WorldGen.genRand.Next(12) * 18); + Main.tile[num53, num54 - 1].frameY = (short)(WorldGen.genRand.Next(4) * 18); + Main.tile[num53, num54].active(true); WorldGen.SquareTileFrame(num53, num54, true); - if (Main.netMode == 2) + WorldGen.SquareTileFrame(num53, num54 - 1, true); + if (Main.netMode == 2) { NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None); - } + NetMessage.SendTileSquare(-1, num53, num54 - 1, 3, TileChangeType.None); + } } } } diff --git a/Tiles/Voidstone.cs b/Tiles/Voidstone.cs index 7c06360142..557deb439b 100644 --- a/Tiles/Voidstone.cs +++ b/Tiles/Voidstone.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Tiles { if (NPC.downedPlantBoss || CalamityWorld.downedCalamitas) { - int random = WorldGen.genRand.Next(3); + int random = WorldGen.genRand.Next(4); if (random == 0) { i++; @@ -57,17 +57,38 @@ namespace CalamityMod.Tiles } if (random == 2) { - j--; + j++; } + if (random == 3) + { + j--; + } if (Main.tile[i, j] != null) { if (!Main.tile[i, j].active()) { - if (Main.rand.Next(20) == 0 && !Main.tile[i, j].lava()) + if (Main.rand.Next(20) == 0 && !Main.tile[i, j].lava() && Main.tile[i, j].slope() == 0 && !Main.tile[i, j].halfBrick()) { Main.tile[i, j].type = (ushort)mod.TileType("LumenylCrystals"); Main.tile[i, j].active(true); - WorldGen.SquareTileFrame(i, j, true); + if (Main.tile[i, j + 1].active() && Main.tileSolid[Main.tile[i, j + 1].type] && Main.tile[i, j + 1].slope() == 0 && !Main.tile[i, j + 1].halfBrick()) + { + Main.tile[i, j].frameY = (short)(0 * 18); + } + else if (Main.tile[i, j - 1].active() && Main.tileSolid[Main.tile[i, j - 1].type] && Main.tile[i, j - 1].slope() == 0 && !Main.tile[i, j - 1].halfBrick()) + { + Main.tile[i, j].frameY = (short)(1 * 18); + } + else if (Main.tile[i + 1, j].active() && Main.tileSolid[Main.tile[i + 1, j].type] && Main.tile[i + 1, j].slope() == 0 && !Main.tile[i + 1, j].halfBrick()) + { + Main.tile[i, j].frameY = (short)(2 * 18); + } + else if (Main.tile[i - 1, j].active() && Main.tileSolid[Main.tile[i - 1, j].type] && Main.tile[i - 1, j].slope() == 0 && !Main.tile[i - 1, j].halfBrick()) + { + Main.tile[i, j].frameY = (short)(3 * 18); + } + Main.tile[i, j].frameX = (short)(WorldGen.genRand.Next(18) * 18); + WorldGen.SquareTileFrame(i, j, true); if (Main.netMode == 2) { NetMessage.SendTileSquare(-1, i, j, 1, TileChangeType.None); diff --git a/Tiles/YellowCandle.cs b/Tiles/YellowCandle.cs new file mode 100644 index 0000000000..ab0916f22c --- /dev/null +++ b/Tiles/YellowCandle.cs @@ -0,0 +1,72 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles +{ + public class YellowCandle : ModTile + { + public override void SetDefaults() + { + Main.tileLighted[Type] = true; + Main.tileFrameImportant[Type] = true; + Main.tileLavaDeath[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2); + TileObjectData.addTile(Type); + ModTranslation name = CreateMapEntryName(); + name.SetDefault("Spiteful Candle"); + AddMapEntry(new Color(238, 145, 105), name); + animationFrameHeight = 34; + } + + public override void AnimateTile(ref int frame, ref int frameCounter) + { + frameCounter++; + if (frameCounter >= 6) + { + frame = (frame + 1) % 6; + frameCounter = 0; + } + } + + public override void NearbyEffects(int i, int j, bool closer) + { + Player player = Main.LocalPlayer; + if (!player.dead && player.active) + { + player.AddBuff(mod.BuffType("YellowDamageCandle"), 20); + if (Main.netMode != 1) + { + for (int m = 0; m < 200; m++) + { + if (Main.npc[m].active && !Main.npc[m].friendly) + { + Main.npc[m].buffImmune[mod.BuffType("YellowDamageCandle")] = false; + if (Main.npc[m].type == mod.NPCType("CeaselessVoid") || Main.npc[m].type == mod.NPCType("EidolonWyrmHeadHuge")) + { + Main.npc[m].buffImmune[mod.BuffType("YellowDamageCandle")] = true; + } + Main.npc[m].AddBuff(mod.BuffType("YellowDamageCandle"), 20, false); + } + } + } + } + } + + public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) + { + r = 0.75f; + g = 0.75f; + b = 0.35f; + } + + public override void KillMultiTile(int i, int j, int frameX, int frameY) + { + Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("YellowCandle")); + } + } +} diff --git a/Tiles/YellowCandle.png b/Tiles/YellowCandle.png new file mode 100644 index 0000000000000000000000000000000000000000..3bc79d5a42bf76e4a312c679625f9f6bb259933c GIT binary patch literal 712 zcmV;(0yq7MP)e+tX*A_vJ6w{6_b2tK;C%FaRHB=dHNF zbr9(M_+0>gc67o72ld(RMY&=n8tJa{Y?d7S7dw}a{vwEPBF8@I}J;0^ED0l=HN zPw}U5qBd@-$y|x5)u874t{thwc_6OhZzj_ih`N(^&}1Z2>-Pgoi`G41YW-diw+G4* zN|-U2*^HdCXPO*KWTyNMu0Q_?z~!OtR0FO&{S7FgM5TnHgd*ag`UFZSs@0*Ef8?Di z8sZg<%n9PeB6l}BNTp@+U@OcAaRN&q6=#C{4o*G%2EfG0wW*#5N+?PwpoHRbR6SrQ zq5Kz5B-K9(); - //True Eye of Cthulhu, can't kill em so ExclusionList.Add(NPCID.MoonLordFreeEye); ExclusionList.Add(NPCID.MoonLordHead); ExclusionList.Add(NPCID.MoonLordHand); @@ -193,14 +192,14 @@ namespace CalamityMod.UI MinibossHPBarList.Add(NPCID.DD2Betsy); MinibossHPBarList.Add(NPCID.DD2OgreT2); MinibossHPBarList.Add(NPCID.DD2OgreT3); - MinibossHPBarList.Add(NPCID.DD2DarkMageT1); + MinibossHPBarList.Add(NPCID.DD2DarkMageT1); //800 HP MinibossHPBarList.Add(NPCID.DD2DarkMageT3); //Prehardmode MinibossHPBarList.Add(NPCID.DungeonGuardian); //Hardmode - MinibossHPBarList.Add(NPCID.GoblinSummoner); + MinibossHPBarList.Add(NPCID.GoblinSummoner); //2000 HP MinibossHPBarList.Add(NPCID.Paladin); MinibossHPBarList.Add(NPCID.IceGolem); MinibossHPBarList.Add(NPCID.SandElemental); @@ -221,9 +220,6 @@ namespace CalamityMod.UI Mod calamity = ModLoader.GetMod("CalamityMod"); if (calamity != null) { - //Prehardmode - MinibossHPBarList.Add(calamity.NPCType("Cnidrion")); - //Hardmode MinibossHPBarList.Add(calamity.NPCType("ThiccWaifu")); MinibossHPBarList.Add(calamity.NPCType("Horse")); @@ -552,7 +548,7 @@ namespace CalamityMod.UI dead = true; int life = _npc.life; - if (life < 0 || !_npc.active || _npc.lifeMax < 400) + if (life < 0 || !_npc.active || _npc.lifeMax < 800) dead = true; if (_oneToMany) diff --git a/UIHandler.cs b/UIHandler.cs index f6cce4e919..cee41c5042 100644 --- a/UIHandler.cs +++ b/UIHandler.cs @@ -23,31 +23,31 @@ namespace CalamityMod public class UIHandler { public static UserInterface userBar; - public static UserInterface userBar2; - public static UIBar uiBar; - public static UIBar2 uiBar2; + public static UserInterface userBar2; + public static UIBar uiBar; + public static UIBar2 uiBar2; - //call this in mod.Load() - public static void OnLoad(Mod mod) + //call this in mod.Load() + public static void OnLoad(Mod mod) { Texture2D borderTex = mod.GetTexture("ExtraTextures/UI/BarStressBorder"), barTex = mod.GetTexture("ExtraTextures/UI/BarStress"); //replace 'null' with your textures. uiBar = new UIBar(borderTex, barTex, 4); //the 4 is how many pixels inwards to stick the bar, which in this case is 4. userBar = new UserInterface(); userBar.SetState(uiBar); - Texture2D borderTex2 = mod.GetTexture("ExtraTextures/UI/BarAdrenalineBorder"), barTex2 = mod.GetTexture("ExtraTextures/UI/BarAdrenaline"); //replace 'null' with your textures. - uiBar2 = new UIBar2(borderTex2, barTex2, 4); //the 4 is how many pixels inwards to stick the bar, which in this case is 4. - userBar2 = new UserInterface(); - userBar2.SetState(uiBar2); - } - + Texture2D borderTex2 = mod.GetTexture("ExtraTextures/UI/BarAdrenalineBorder"), barTex2 = mod.GetTexture("ExtraTextures/UI/BarAdrenaline"); //replace 'null' with your textures. + uiBar2 = new UIBar2(borderTex2, barTex2, 4); //the 4 is how many pixels inwards to stick the bar, which in this case is 4. + userBar2 = new UserInterface(); + userBar2.SetState(uiBar2); + } + //call this in mod.ModifyInterfaceLayers() public static void ModifyInterfaceLayers(Mod mod, List layers) { AddInterfaceLayer(mod, layers, userBar, uiBar, "Calamity: Stress Bar", "Vanilla: Mouse Text", true); - AddInterfaceLayer(mod, layers, userBar2, uiBar2, "Calamity: Adrenaline Bar", "Vanilla: Mouse Text", true); - } - + AddInterfaceLayer(mod, layers, userBar2, uiBar2, "Calamity: Adrenaline Bar", "Vanilla: Mouse Text", true); + } + public static void AddInterfaceLayer(Mod mod, List list, UserInterface uInterface, UIElement uElement, string layerName, string parent, bool first) { GameInterfaceLayer item = new LegacyGameInterfaceLayer(mod.Name + ":" + layerName, delegate @@ -58,12 +58,12 @@ namespace CalamityMod }, InterfaceScaleType.UI); int insertAt = -1; - for (int m = 0; m < list.Count; m++) - { - GameInterfaceLayer dl = list[m]; - if (dl.Name.Contains(parent)) { insertAt = m; break; } - } - if (insertAt == -1) list.Add(item); else list.Insert(first ? insertAt : insertAt + 1, item); - } + for (int m = 0; m < list.Count; m++) + { + GameInterfaceLayer dl = list[m]; + if (dl.Name.Contains(parent)) { insertAt = m; break; } + } + if (insertAt == -1) list.Add(item); else list.Insert(first ? insertAt : insertAt + 1, item); + } } } \ No newline at end of file diff --git a/Walls/EutrophicSandWall.cs b/Walls/EutrophicSandWall.cs new file mode 100644 index 0000000000..0d15d3f9bb --- /dev/null +++ b/Walls/EutrophicSandWall.cs @@ -0,0 +1,19 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Walls +{ + public class EutrophicSandWall : ModWall + { + public override void SetDefaults() + { + dustType = 108; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} \ No newline at end of file diff --git a/Walls/EutrophicSandWall.png b/Walls/EutrophicSandWall.png new file mode 100644 index 0000000000000000000000000000000000000000..2f53060752d6c9f5a5fc23d104cf654669c0f39f GIT binary patch literal 11853 zcmZ8{dpwhU{Qg}Yop@4&N=-x(k~~Gl6zM>PavCAT9FkBN+jJnwsggquTPo!+WQ-hF z!kW_%o3k7jbI4|9o6Yamqv!km{{Hdu!rb@g^FCbH`?}sy=2y=Dy=C_n0092Jc;W0- z09e-veqXX_1Nc?r-M~Wt*auuZd&V+2eI}#HSBX|MK~zkr&sB_;cz&y-vVGcdC;Ce* zL6-Sha{0dgVzY}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x@5PdC_Yi9U1@ z4SC8+vbSM8=;7YDG{E7$-Z=Xj-iRP87D88d)`EsO3r2q%I|>wP5Sz!h_p+zR>;isd zxj4+3 zJ#jc2;Pt(+L--{<@z!erU%NKw4-T2?A0CfN${>+UOkvCk_AR8XSy9o5p8Twoax-jHwV3@rNY5(c1tf-6ov7&$zl>H2xCGhS(_>zK>v%{H-}H&zzw8*a k<3Q){e}DOFd`0BPwYwQo&JIFwO&qvreC2F`;f;s?4_vWrH2?qr literal 0 HcmV?d00001 diff --git a/Walls/NavystoneWall.cs b/Walls/NavystoneWall.cs new file mode 100644 index 0000000000..688ba5c8d4 --- /dev/null +++ b/Walls/NavystoneWall.cs @@ -0,0 +1,42 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Walls +{ + public class NavystoneWall : ModWall + { + private Rectangle _area; + + public override void SetDefaults() + { + dustType = 96; + } + + public override void RandomUpdate(int i, int j) + { + int myRadius = 5; + int diameter = myRadius * 2; + _area = new Rectangle(i - myRadius, j - myRadius, diameter, diameter); + if (CalamityWorld.SunkenSeaLocation.Contains(_area)) + { + for (int x = _area.Left; x < _area.Width; x++) + { + for (int y = _area.Top; y < _area.Height; y++) + { + if (Main.tile[x, y].liquid <= 0) + { + Main.tile[i, j].liquid = 255; + Main.tile[i, j].lava(false); + } + } + } + } + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + } +} \ No newline at end of file diff --git a/Walls/NavystoneWall.png b/Walls/NavystoneWall.png new file mode 100644 index 0000000000000000000000000000000000000000..83238b1b57cd5e664ea499f4617bbcf788527de3 GIT binary patch literal 12132 zcmZ{~dpy(q8$VumcTtL@6tQI~#pI5X!%z&#Ip=fEIp@5MkyOrv(87e|Jcl{WF_rUS z&T|%qY|e~q&3@C}=kxvi9*^($pFOre-g{rK*L8S4ujh3|=xC{)ImLVG$dMyw)E+_~ zA31V#i21#O^#t=%^yAcvBS)?rQG-6vho!BiTcl33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zWDx%*jyxfM5nl*rcv?63*J~*-U!^2)Q>v{RX7VQMS!5l-&zp>Xu(jT= z4sz}$vlMqdETqj5y-bd67Jr6zR!A>}0c*t$3Q&EjdwNTo0Nnv(e?Xfe9-4L#t!?eC z=den3p7dai60p7a%#*&S;%SwQZjT^m7v@-2pI|6h_?F}crW7Yf*65!DhZlE0gd3|Wk`=px$e&Ck7l~6ku-fI5Vo#|PV`3WsCQw8jgNm;cSg^Ny>c8nM$i3S2wfM*m4xyTQM189My8VXDu4E zLJWjGrfmE7KEAvuz7;3|p{{}Wb3B%f%0PXVhTI3-vs)wU(HfWHkAbm2d{rcOTac;_aS{Uvs!(MQ@RhQ^!qPXfd8~S4Ok{C5sDll~I zhe_B;E*QkF|5q&gzk`|6f0T`zGS|?gaVoT=~c4&OobuU}|*M Ku++fi&i?`apBrxg diff --git a/Waters/GreatSeaWater_Block.png b/Waters/GreatSeaWater_Block.png deleted file mode 100644 index 0adc5583cb05a5acb2771e919b6635a2d7e21ef6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 567 zcmV-70?7S|P)coB}R@L=%LaLCN6p%&Zq=%a79R{*3?p zeV)Y4!~S!>8u54EoHgIu(djo4e}=<_Kln2OKP$;k1AqWfNss^#04m9i?5Ulf=63fo zY9f1DU$+yP=xnamZLQnaUFtryj%?2ASvpxgPbaDu)$#PQI+k9kj@Hvb%=TOK$j|V3 z$@a@SFIk=$b+zRX0af<**=b%$euTM?L;Oz=a(0) zp&xJWy_vKAuXSXzwLYtp)wAl+HzjrG>vI259bKQ+lY^S=m#$AAc&kqqFhp;xj_7Ce zW7TEp$olAgdOA@(FV9w9^mQ*kUj8hftsHBg^f~kDiJr4)emtH?Jx%stct(34oCOdd z>l_DU7Q(vg9)JMZ>A(TVlmk&h56AF#5WV%$Co?*y4$!Y05XsLx@>6{xqw(`-eC4w@&Ern@c7GfOXjuA`=-CS%w!sYXQfy!7;T78jt}pKz8H+fSxCy z0U00zWPmK3fvJKXkO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*ff ztUmC`8~!Z6hBW2BjErU5+CWIUb^CVNosS32_6avg3DR4B?49=a)5Ld|d!Hn=moB!f z!j!%nd@DagAuzTD?yV>(sk%u&_VO?=3_#nc>g}0#k_7AqPocoVnINd=-wxz+6~V`? Qe-v!musNo69q-5g0p~$*1^@s6 diff --git a/Waters/GreatSeaWater.cs b/Waters/SunkenSeaWater.cs similarity index 70% rename from Waters/GreatSeaWater.cs rename to Waters/SunkenSeaWater.cs index 1f75ae6b62..c9cd17d18c 100644 --- a/Waters/GreatSeaWater.cs +++ b/Waters/SunkenSeaWater.cs @@ -4,21 +4,21 @@ using Terraria.ModLoader; namespace CalamityMod.Waters { - public class GreatSeaWater : ModWaterStyle + public class SunkenSeaWater : ModWaterStyle { public override bool ChooseWaterStyle() { - return Main.LocalPlayer.GetModPlayer(mod).ZoneGreatSea; + return Main.LocalPlayer.GetModPlayer(mod).ZoneSunkenSea; } public override int ChooseWaterfallStyle() { - return mod.GetWaterfallStyleSlot("GreatSeaWaterflow"); + return mod.GetWaterfallStyleSlot("SunkenSeaWaterflow"); } public override int GetSplashDust() { - return 185; + return 33; } public override int GetDropletGore() @@ -28,7 +28,7 @@ namespace CalamityMod.Waters public override Color BiomeHairColor() { - return Color.Cyan; + return Color.Blue; } } } \ No newline at end of file diff --git a/Waters/SunkenSeaWater.png b/Waters/SunkenSeaWater.png new file mode 100644 index 0000000000000000000000000000000000000000..45af5a5c946a040e5154b7a4bddd38e64a56acd5 GIT binary patch literal 8205 zcmbVxcT^L7qvnJ_KuG|l1qcEbnzU%73Phw?D2mdByfi^Uq>3ORC;~xgqJW@u6zLFp z%_}7o>BZ1dL@^K$q)7JUwh4G@Qg4+8*zxMZk% z9sE@S05($&*uj;YNTR{noW!NtJu+WDAZ*Pmvd9w*a4LHgBlsW?R#R zIFSJRhD8z9j&ty(`oCCHPqQ|CbYR&>a`|tke#kQPzoI!W)i?7(i~mZN^tpnK@1)u0 zkdUqF2LmLHy*)8ct&ra~&5YEL-OAZApm1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RJ2AtHR(dsX8pF=%>3^WR&BP)qHG^WOr`!0IQAiVdX`P2J**(~(W z4>SEvo+kX7r>vZ)M_{*5Sg%L^qBW1WY`HQPjhhyDK8p>J61F$h2HHadt=zbY zQzMVHK^i+?)o&AaiK|5nkC?&vCQ3i6S!?{VHrRi{GAnmnetyblHsHegDu7|9 zs)4qLlL7Z%o)>9Is}6d_?gwZ-zA0_{LCDUksLr3QKGJ)E*Ht0%i?Q~mOce?=E)D5* z{=f0T;LB>Ahwq~(L3gh_K%P=Lqb&fa>#xFkX^$-qtyO=u*7(9~H7AEmx!V8(ZCwj| zEN&kCK8f)aFZzVF1OS@q-P&SrHyCS1=lZq58FbV#7^~w4y2*2x4cNkylZ_gF8Ey*^ zJr%dz|9!c7<3c{{@>}(UTCoXXEunAkZLszLUTjPmpjKQmam$ga3W_Y6x~YlQ3_AuT zAhMZTRL|KJOEn?Lv|uO07?D$c;w2HSx*l8c9_)l$rEy3;VgL_x&JIjd zSpj&zc~9=|JWvXN6Z}XgeI9UYS0xmKOQm8W8vzt;)`5c4Uf*u^Uyd4u+-UYVH4Qre z-Z9x(eDFkUUuZW_Sp3|sCu)r*TW&_2TW>8W<1Jrs4*UwXcRTi; z9%*)#5z>$AzS)j^PMsjhSqRdbef4I%3XY&M6KD$~y!9CuRHD`l3+$xF?+Dwmf?LS+ z$AO&by+HeK(N%2!{IoFkNE9<%j8{0+H6pOpEOo%*{|m$Ko5kWor_2oK8D{M343@a5 z7lF@Gj&ob72im!S?Q}%5GO5(*we(qWAY}JqXJl?y^PoKVSpV_*wS(X&tTXez$%01D zeO06S_+E*f9dSip9B{~Rg&;Ej_hJIx`+w|u{|DpwueIv`>+#xYq5IHVLeHmUsxE7T RU-^Mcdd9lNI=IKczX69cW0n8_ literal 0 HcmV?d00001 diff --git a/Waters/SunkenSeaWater_Block.png b/Waters/SunkenSeaWater_Block.png new file mode 100644 index 0000000000000000000000000000000000000000..87a5f07a83c042fe539350eae77cd3e791347548 GIT binary patch literal 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g;j2(90QB4%nH`zS}K7-wb*G)Ga1uxS(ag9}Wh|c1##EN#5k&ypD$vO?B7b zx5HfkAAA$g5)V)Bf*R833SHwVRSYIO(orO55h98aHEY8@O<^mFUi#)nWK6z3tb6?K!|FbDlwtSkce?Buau0 z^kKF!g;Wc@z^+*&RHCCAo(n$ciWyASo#u;WyrIdv?;|~XQ@E@X&9|ENdovJG-4;Nl zn)o;DOsMQR;wv=T_AjW}PRLry#l8hyt1W-MfesCKeK^jiVji%B#>s}G zcXE12tG3m#ExA4&U5lUW?SdNDVhyf#pcL$YZlmI8R;#MfhI8HI_8z8h zPX!jEt98ImTC|)Ml|A-Ml&g4=@1_G)FLfu{p_19&R8u1Jt}T-aa#%Ogu1W|ARh#aG z0)vFwF$uxwoO3oQZmvLF{g8sWL23UH-4&8+_5iCj^bU{O@kPGfN@_EIp?fsfSFc@V!G*l*!#<_E_H1Bi*>FTF#3p*HTeE3rQNm+)yPc_!pF z=%8q@ZR46=3Eb1*MAz44gPI(s)G}FU(opf}q*-<1;)y575VPOh>l3BaEv8E>^!x~m z7+$$_%t^ywz$#4uxseAHmY5yBOu_uXZ$>=Ng!5px&oxqw4YM_&rIkuwN8izB-8Jl4 zX*Y!)R(&s!&%@Uy5Ln&;w*~+%%@&f=$L;DUJSerM7@{IXo!13 zuqtoM5hfF&l#>=+?a5fG2?e5`BDU|0>8%J*Zx+=~imH0#!a8mCG(q^p!SNbNmcK3C zk13o(o&WX;iVkBZ;C@kVZpj1Y(8!RcBb>j2{{cE=cRm0B literal 0 HcmV?d00001 diff --git a/WeakReferenceSupport.cs b/WeakReferenceSupport.cs new file mode 100644 index 0000000000..2d2bf98fe9 --- /dev/null +++ b/WeakReferenceSupport.cs @@ -0,0 +1,63 @@ +using System; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod +{ + internal class WeakReferenceSupport + { + public static void Setup() + { + BossChecklistSupport(); + CensusSupport(); + } + + private static void BossChecklistSupport() + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Mod bossChecklist = ModLoader.GetMod("BossChecklist"); + + if (bossChecklist != null) + { + // 14 is moonlord, 12 is duke fishron + bossChecklist.Call("AddBossWithInfo", "Desert Scourge", 1.5f, (Func)(() => CalamityWorld.downedDesertScourge), "Use a [i:" + mod.ItemType("DriedSeafood") + "] in the Desert Biome"); //1 + bossChecklist.Call("AddBossWithInfo", "Crabulon", 2.5f, (Func)(() => CalamityWorld.downedCrabulon), "Use a [i:" + mod.ItemType("DecapoditaSprout") + "] in the Mushroom Biome"); //1.5 + bossChecklist.Call("AddBossWithInfo", "Hive Mind / Perforator", 3.5f, (Func)(() => (CalamityWorld.downedPerforator || CalamityWorld.downedHiveMind)), "By killing a Cyst in the World's Evil Biome"); //2 + bossChecklist.Call("AddBossWithInfo", "Slime God", 5.5f, (Func)(() => CalamityWorld.downedSlimeGod), "Use an [i:" + mod.ItemType("OverloadedSludge") + "]"); //4 + bossChecklist.Call("AddBossWithInfo", "Cryogen", 6.5f, (Func)(() => CalamityWorld.downedCryogen), "Use a [i:" + mod.ItemType("CryoKey") + "] in the Snow Biome"); //5 + bossChecklist.Call("AddBossWithInfo", "Brimstone Elemental", 7.5f, (Func)(() => CalamityWorld.downedBrimstoneElemental), "Use a [i:" + mod.ItemType("CharredIdol") + "] in the Hell Crag"); //6 + bossChecklist.Call("AddBossWithInfo", "Aquatic Scourge", 8.5f, (Func)(() => CalamityWorld.downedAquaticScourge), "Use a [i:" + mod.ItemType("Seafood") + "] in the Sulphuric Sea or wait for it to spawn in the Sulphuric Sea"); //6 + bossChecklist.Call("AddBossWithInfo", "Calamitas", 9.7f, (Func)(() => CalamityWorld.downedCalamitas), "Use an [i:" + mod.ItemType("BlightedEyeball") + "] at Night"); //7 + bossChecklist.Call("AddBossWithInfo", "Leviathan", 10.5f, (Func)(() => CalamityWorld.downedLeviathan), "By killing an unknown entity in the Ocean Biome"); //8 + bossChecklist.Call("AddBossWithInfo", "Astrum Aureus", 10.55f, (Func)(() => CalamityWorld.downedAstrageldon), "Use an [i:" + mod.ItemType("AstralChunk") + "] at Night"); //8.25 + bossChecklist.Call("AddBossWithInfo", "Astrum Deus", 10.6f, (Func)(() => CalamityWorld.downedStarGod), "Use a [i:" + mod.ItemType("Starcore") + "] at Night"); //8.5 + bossChecklist.Call("AddBossWithInfo", "Plaguebringer Goliath", 11.5f, (Func)(() => CalamityWorld.downedPlaguebringer), "Use an [i:" + mod.ItemType("Abomination") + "] in the Jungle Biome"); //9 + bossChecklist.Call("AddBossWithInfo", "Ravager", 12.5f, (Func)(() => CalamityWorld.downedScavenger), "Use an [i:" + mod.ItemType("AncientMedallion") + "]"); //9.5 + //bossChecklist.Call("AddBossWithInfo", "The Old Duke", 13.5f, (Func)(() => CalamityWorld.downedOldDuke), "Fishing with some type of bait in the Sulphuric Sea"); //9.6 + bossChecklist.Call("AddBossWithInfo", "Profaned Guardians", 14.5f, (Func)(() => CalamityWorld.downedGuardians), "Use a [i:" + mod.ItemType("ProfanedShard") + "] in the Hallow or Underworld Biomes"); //10 + bossChecklist.Call("AddBossWithInfo", "Bumblebirb", 14.6f, (Func)(() => CalamityWorld.downedBumble), "Use [i:" + mod.ItemType("BirbPheromones") + "] in the Jungle Biome"); //16 + bossChecklist.Call("AddBossWithInfo", "Providence", 15f, (Func)(() => CalamityWorld.downedProvidence), "Use a [i:" + mod.ItemType("ProfanedCore") + "] in the Hallow or Underworld Biomes"); //11 + bossChecklist.Call("AddBossWithInfo", "Ceaseless Void", 15.1f, (Func)(() => CalamityWorld.downedSentinel1), "Use a [i:" + mod.ItemType("RuneofCos") + "] in the Dungeon"); //12 + bossChecklist.Call("AddBossWithInfo", "Storm Weaver", 15.2f, (Func)(() => CalamityWorld.downedSentinel2), "Use a [i:" + mod.ItemType("RuneofCos") + "] in Space"); //13 + bossChecklist.Call("AddBossWithInfo", "Signus", 15.3f, (Func)(() => CalamityWorld.downedSentinel3), "Use a [i:" + mod.ItemType("RuneofCos") + "] in the Underworld"); //14 + bossChecklist.Call("AddBossWithInfo", "Polterghast", 15.5f, (Func)(() => CalamityWorld.downedPolterghast), "Use a [i:" + mod.ItemType("NecroplasmicBeacon") + "] in the Dungeon or kill 30 phantom spirits"); //11 + bossChecklist.Call("AddBossWithInfo", "Devourer of Gods", 16f, (Func)(() => CalamityWorld.downedDoG), "Use a [i:" + mod.ItemType("CosmicWorm") + "]"); //15 + bossChecklist.Call("AddBossWithInfo", "Yharon", 17f, (Func)(() => CalamityWorld.downedYharon), "Use a [i:" + mod.ItemType("ChickenEgg") + "] in the Jungle Biome"); //17 + bossChecklist.Call("AddBossWithInfo", "Supreme Calamitas", 18f, (Func)(() => CalamityWorld.downedSCal), "Use an [i:" + mod.ItemType("EyeofExtinction") + "]"); //18 + //bossChecklist.Call("AddBossWithInfo", "MEME GOD", 19f, (Func)(() => CalamityWorld.downedLORDE), "Use [i:" + mod.ItemType("NO") + "]"); //19 + } + } + + private static void CensusSupport() + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Mod censusMod = ModLoader.GetMod("Census"); + if (censusMod != null) + { + censusMod.Call("TownNPCCondition", mod.NPCType("SEAHOE"), "Defeat a Giant Clam"); + censusMod.Call("TownNPCCondition", mod.NPCType("FAP"), "Have [i:" + mod.ItemType("FabsolsVodka") + "] in your inventory in Hardmode"); + censusMod.Call("TownNPCCondition", mod.NPCType("DILF"), "Defeat Cryogen"); + } + } + } +} diff --git a/World/Planets/MainPlanet.cs b/World/Planets/MainPlanet.cs index 9843ac102a..eecebef6dc 100644 --- a/World/Planets/MainPlanet.cs +++ b/World/Planets/MainPlanet.cs @@ -19,7 +19,8 @@ namespace CalamityMod.World.Planets { public override bool Place(Point origin, StructureMap structures) { - int radius = _random.Next(50, 65); + float scale = (float)Main.maxTilesX / 4200f; + int radius = (int)((float)_random.Next(30, 36) * scale); //50 to 65 if (!CheckIfPlaceable(origin, radius, structures)) { @@ -63,14 +64,14 @@ namespace CalamityMod.World.Planets //PLACE STONE THEN DIRT PATCHES int numStone = _random.Next(30, 40); - while(numStone > 0) + while (numStone > 0) { Point p = outerCore.RandomPointOnCircleEdge().ToTileCoordinates(); WorldGen.TileRunner(p.X, p.Y, _random.NextFloat(3f, 6f), _random.Next(5, 15), TileID.Stone); numStone--; } int numDirt = _random.Next(80, 110); - while(numDirt > 0) + while (numDirt > 0) { Point p = outerCore.RandomPointInCircle().ToTileCoordinates(); WorldGen.TileRunner(p.X, p.Y, _random.NextFloat(3f, 6f), _random.Next(7, 17), TileID.Dirt); diff --git a/World/Planets/Planetoid.cs b/World/Planets/Planetoid.cs index 6dbd19af2b..169bb6d4d2 100644 --- a/World/Planets/Planetoid.cs +++ b/World/Planets/Planetoid.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Text; using Terraria; +using Terraria.ID; using Terraria.ModLoader; using Terraria.World.Generation; using Terraria.GameContent.Generation; @@ -20,9 +21,28 @@ namespace CalamityMod.World.Planets //Fluff is used to create padding between the planets. this is the minimum distance between planets (they can't be within "fluff" blocks) int fluff = 10; int myRadius = radius + fluff; - int diameter = myRadius * 2 ; + int diameter = myRadius * 2; _area = new Rectangle(origin.X - myRadius, origin.Y - myRadius, diameter, diameter); + Mod varia = ModLoader.GetMod("Varia"); + for (int i = _area.Left; i < _area.Width; i++) + { + for (int j = _area.Top; j < _area.Height; j++) + { + if (Main.tile[i, j].type == TileID.Cloud || Main.tile[i, j].type == TileID.RainCloud || Main.tile[i, j].type == TileID.Sunplate) + { + return false; + } + if (varia != null) + { + if (Main.tile[i, j].type == varia.TileType("StarplateBrick") || Main.tile[i, j].type == varia.TileType("ForgottenCloud")) + { + return false; + } + } + } + } + if (!structures.CanPlace(_area)) { return false; diff --git a/World/SunkenSea.cs b/World/SunkenSea.cs new file mode 100644 index 0000000000..7374e343ed --- /dev/null +++ b/World/SunkenSea.cs @@ -0,0 +1,610 @@ +using Microsoft.Xna.Framework; +using System; +using System.Collections.Generic; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.World.Generation; +using Terraria.Graphics.Effects; +using Terraria.GameContent.Generation; +using Terraria.IO; +using Terraria.Localization; +using Terraria.GameContent.Events; +using Terraria.ModLoader.IO; +using CalamityMod.Tiles; + +namespace CalamityMod.World +{ + public class SunkenSea : ModWorld + { + private struct Hub + { + public Vector2 Position; + + public Hub(Vector2 position) + { + this.Position = position; + } + + public Hub(float x, float y) + { + this.Position = new Vector2(x, y); + } + } + + private class Cluster : List + { + } + + private class ClusterGroup : List + { + public int Width; + + public int Height; + + private void SearchForCluster(bool[,] hubMap, List pointCluster, int x, int y, int level = 2) + { + pointCluster.Add(new Point(x, y)); + hubMap[x, y] = false; + level--; + if (level == -1) + { + return; + } + if (x > 0 && hubMap[x - 1, y]) + { + this.SearchForCluster(hubMap, pointCluster, x - 1, y, level); + } + if (x < hubMap.GetLength(0) - 1 && hubMap[x + 1, y]) + { + this.SearchForCluster(hubMap, pointCluster, x + 1, y, level); + } + if (y > 0 && hubMap[x, y - 1]) + { + this.SearchForCluster(hubMap, pointCluster, x, y - 1, level); + } + if (y < hubMap.GetLength(1) - 1 && hubMap[x, y + 1]) + { + this.SearchForCluster(hubMap, pointCluster, x, y + 1, level); + } + } + + private void AttemptClaim(int x, int y, int[,] clusterIndexMap, List> pointClusters, int index) //Attempts to create a cluster + { + int num = clusterIndexMap[x, y]; + if (num != -1 && num != index) + { + int num2 = (WorldGen.genRand.Next(2) == 0) ? -1 : index; + foreach (Point current in pointClusters[num]) + { + clusterIndexMap[current.X, current.Y] = num2; + } + } + } + + public void Generate(int width, int height) //Creates clusters for cluster group + { + this.Width = width; + this.Height = height; + base.Clear(); + bool[,] array = new bool[width, height]; + int num = (width >> 1) - 1; + int num2 = (height >> 1) - 1; + int num3 = (num + 1) * (num + 1); + Point point = new Point(num, num2); + for (int i = point.Y - num2; i <= point.Y + num2; i++) + { + float num4 = (float)num / (float)num2 * (float)(i - point.Y); + int num5 = Math.Min(num, (int)Math.Sqrt((double)((float)num3 - num4 * num4))); + for (int j = point.X - num5; j <= point.X + num5; j++) + { + array[j, i] = (WorldGen.genRand.Next(2) == 0); + } + } + List> list = new List>(); + for (int k = 0; k < array.GetLength(0); k++) + { + for (int l = 0; l < array.GetLength(1); l++) + { + if (array[k, l] && WorldGen.genRand.Next(2) == 0) + { + List list2 = new List(); + this.SearchForCluster(array, list2, k, l, 2); + if (list2.Count > 2) + { + list.Add(list2); + } + } + } + } + int[,] array2 = new int[array.GetLength(0), array.GetLength(1)]; + for (int m = 0; m < array2.GetLength(0); m++) + { + for (int n = 0; n < array2.GetLength(1); n++) + { + array2[m, n] = -1; + } + } + for (int num6 = 0; num6 < list.Count; num6++) + { + foreach (Point current in list[num6]) + { + array2[current.X, current.Y] = num6; + } + } + for (int num7 = 0; num7 < list.Count; num7++) + { + foreach (Point expr_205 in list[num7]) + { + int x = expr_205.X; + int y = expr_205.Y; + if (array2[x, y] == -1) + { + break; + } + int index = array2[x, y]; + if (x > 0) + { + this.AttemptClaim(x - 1, y, array2, list, index); + } + if (x < array2.GetLength(0) - 1) + { + this.AttemptClaim(x + 1, y, array2, list, index); + } + if (y > 0) + { + this.AttemptClaim(x, y - 1, array2, list, index); + } + if (y < array2.GetLength(1) - 1) + { + this.AttemptClaim(x, y + 1, array2, list, index); + } + } + } + using (List>.Enumerator enumerator2 = list.GetEnumerator()) + { + while (enumerator2.MoveNext()) + { + enumerator2.Current.Clear(); + } + } + for (int num8 = 0; num8 < array2.GetLength(0); num8++) + { + for (int num9 = 0; num9 < array2.GetLength(1); num9++) + { + if (array2[num8, num9] != -1) + { + list[array2[num8, num9]].Add(new Point(num8, num9)); + } + } + } + foreach (List current2 in list) + { + if (current2.Count < 4) + { + current2.Clear(); + } + } + foreach (List current3 in list) + { + SunkenSea.Cluster cluster = new SunkenSea.Cluster(); + if (current3.Count > 0) + { + foreach (Point current4 in current3) + { + cluster.Add(new SunkenSea.Hub((float)current4.X + (WorldGen.genRand.NextFloat() - 0.5f) * 0.5f, (float)current4.Y + (WorldGen.genRand.NextFloat() - 0.5f) * 0.5f)); + } + base.Add(cluster); + } + } + } + } + + private static void PlaceClusters(SunkenSea.ClusterGroup clusters, Point start, Vector2 scale) //Places tile/wall clusters in Sunken Sea area + { + Mod mod = ModLoader.GetMod("CalamityMod"); + int num = (int)(scale.X * (float)clusters.Width); + int num2 = (int)(scale.Y * (float)clusters.Height); + Vector2 value = new Vector2((float)num, (float)num2); + Vector2 value2 = new Vector2((float)clusters.Width, (float)clusters.Height); + for (int i = -20; i < num + 20; i++) + { + for (int j = -20; j < num2 + 20; j++) + { + float num3 = 0f; + int num4 = -1; + float num5 = 0f; + int num6 = i + start.X; + int num7 = j + start.Y; + Vector2 vector = new Vector2((float)i, (float)j) / value * value2; + float num8 = (new Vector2((float)i, (float)j) / value * 2f - Vector2.One).Length(); + for (int k = 0; k < clusters.Count; k++) + { + SunkenSea.Cluster cluster = clusters[k]; + if (Math.Abs(cluster[0].Position.X - vector.X) <= 10f && Math.Abs(cluster[0].Position.Y - vector.Y) <= 10f) + { + float num9 = 0f; + foreach (SunkenSea.Hub current in cluster) + { + num9 += 1f / Vector2.DistanceSquared(current.Position, vector); + } + if (num9 > num3) + { + if (num3 > num5) + { + num5 = num3; + } + num3 = num9; + num4 = k; + } + else if (num9 > num5) + { + num5 = num9; + } + } + } + float num10 = num3 + num5; + Tile tile = Main.tile[num6, num7]; + bool flag = num8 >= 0.8f; + if (num10 > 3.5f) //Adjust num10 for all cases if you want different tile frequencies; higher is less frequent, lower is more frequent + { + tile.ClearEverything(); + tile.wall = (ushort)mod.WallType("NavystoneWall"); + tile.liquid = 192; + if (num4 % 15 == 2) + { + tile.ResetToType((ushort)mod.TileType("Navystone")); + tile.active(true); + tile.liquid = 0; + } + Tile.SmoothSlope(num6, num7, true); + } + else if (num10 > 1.8f) + { + tile.wall = (ushort)mod.WallType("NavystoneWall"); + tile.liquid = 192; + if (!flag || tile.active()) + { + tile.ResetToType((ushort)mod.TileType("Navystone")); + tile.active(true); + Tile.SmoothSlope(num6, num7, true); + tile.liquid = 0; + } + } + else if (num10 > 0.7f || !flag) + { + tile.liquid = 192; + if (!flag || tile.active()) + { + tile.ResetToType((ushort)mod.TileType("EutrophicSand")); + tile.active(true); + Tile.SmoothSlope(num6, num7, true); + tile.liquid = 0; + } + tile.wall = (ushort)mod.WallType("EutrophicSandWall"); + } + else if (num10 > 0.25f) + { + float num11 = (num10 - 0.25f) / 0.45f; + if (WorldGen.genRand.NextFloat() < num11) + { + if (tile.active()) + { + tile.ResetToType((ushort)mod.TileType("EutrophicSand")); + tile.active(true); + Tile.SmoothSlope(num6, num7, true); + tile.wall = (ushort)mod.WallType("EutrophicSandWall"); + tile.liquid = 0; + } + else + { + tile.wall = (ushort)mod.WallType("NavystoneWall"); + tile.liquid = 192; + } + } + } + } + } + } + + private static void AddTileVariance(SunkenSea.ClusterGroup clusters, Point start, Vector2 scale, float size) /*Adds tile variation to the generated tile clusters and generates open areas with sea prism ore; + Generates sea prism crystals on prism ore and occasionally on navystone*/ + { + Mod mod = ModLoader.GetMod("CalamityMod"); + int num = (int)(scale.X * (float)clusters.Width); + int num2 = (int)(scale.Y * (float)clusters.Height); + bool genCentalHole = true; + Rectangle rectangle = default(Rectangle); + int radius = (int)(((float)WorldGen.genRand.Next(24, 28)) * size); //Radius of the generated hole + int diameter = radius * 2; + Point point = new Point(WorldGen.UndergroundDesertLocation.Left + (WorldGen.UndergroundDesertLocation.Width / 2), + WorldGen.UndergroundDesertLocation.Bottom + (WorldGen.UndergroundDesertLocation.Height / 3)); //Around the center of the Sunken Sea area + ShapeData holeShape = new ShapeData(); + int radiusSmall = 0; + float outerRadiusPercentage = (float)((double)WorldGen.genRand.Next(40, 56) * 0.01); //Small radius for ore patch to fit inside holes + int sunkenSeaBottom = WorldGen.UndergroundDesertLocation.Bottom + (int)((double)WorldGen.UndergroundDesertLocation.Height * 0.7); + int smallHoles = 0; + int amt = (int)(4f * size); //Scale amount of holes with world size + for (int i = -20; i < num + 20; i++) + { + for (int j = -20; j < num2 + 20; j++) + { + if (genCentalHole) + { + genCentalHole = false; + rectangle = new Rectangle(WorldGen.UndergroundDesertLocation.Left + (WorldGen.UndergroundDesertLocation.Width / 2) - radius, + WorldGen.UndergroundDesertLocation.Bottom + (WorldGen.UndergroundDesertLocation.Height / 3) - radius, diameter, diameter); + + WorldUtils.Gen(point, new Shapes.Circle(radius), Actions.Chain(new GenAction[] + { + new Modifiers.Blotches(2, 0.6).Output(holeShape), //Adds uneven shape to the outer tiles + new Actions.ClearTile(true), //Clear all tiles + new Actions.SetLiquid(0, 192) //Leave some air pockets + })); + + WorldUtils.Gen(point, new ModShapes.OuterOutline(holeShape, true, true), Actions.Chain(new GenAction[] //Smooth the outer parts + { + new CustomActions.DistanceFromOrigin(true, radius * 16f - 48), + new Modifiers.Conditions(new CustomConditions.RandomChance(4)), + new Actions.Smooth(), + new Actions.SetFrames(true) + })); + + WorldUtils.Gen(point, new Shapes.Circle((int)((float)radius * outerRadiusPercentage)), Actions.Chain(new GenAction[] //Smallest is 6 + { + new Modifiers.Blotches(2, 0.3).Output(holeShape), + new Actions.SetTile((ushort)mod.TileType("Navystone"), true) //Place outer shell + })); + + WorldUtils.Gen(point, new ModShapes.OuterOutline(holeShape, true, true), Actions.Chain(new GenAction[] //Smooth outer shell + { + new CustomActions.DistanceFromOrigin(true, radius * 16f - 48), + new Modifiers.Conditions(new CustomConditions.RandomChance(3)), + new Actions.Smooth(), + new Actions.SetFrames(true) + })); + + WorldUtils.Gen(point, new Shapes.Circle((int)((float)radius * (outerRadiusPercentage * 0.6f))), Actions.Chain(new GenAction[] //Smallest is 4 + { + new Modifiers.Blotches(2, 0.3), + new Actions.SetTile((ushort)mod.TileType("SeaPrism"), true) //Place prism + })); + + WorldUtils.Gen(point, new Shapes.Circle((int)((float)radius * (outerRadiusPercentage * 0.3f))), Actions.Chain(new GenAction[] //Smallest is 2 + { + new Modifiers.Blotches(2, 0.3).Output(holeShape), + new Actions.ClearTile(true), //Clear all tiles + new Actions.SetLiquid(0, 255) + })); + + WorldUtils.Gen(point, new ModShapes.OuterOutline(holeShape, true, true), Actions.Chain(new GenAction[] //Smooth inner shell + { + new CustomActions.DistanceFromOrigin(true, radius * 16f - 48), + new Modifiers.Conditions(new CustomConditions.RandomChance(2)), + new Actions.Smooth(), + new Actions.SetFrames(true) + })); + } + point = new Point(WorldGen.genRand.Next(WorldGen.UndergroundDesertLocation.Left + 20, WorldGen.UndergroundDesertLocation.Right - 20), + WorldGen.genRand.Next(WorldGen.UndergroundDesertLocation.Bottom + 20, sunkenSeaBottom)); + if (smallHoles < amt && WorldGen.genRand.Next(3) == 0 && !rectangle.Contains(point)) + { + smallHoles++; + radiusSmall = (int)(((float)WorldGen.genRand.Next(8, 11)) * size); + WorldUtils.Gen(point, new Shapes.Circle(radiusSmall), Actions.Chain(new GenAction[] + { + new Modifiers.Blotches(2, 0.45).Output(holeShape), + new Actions.ClearTile(true), + new Actions.SetLiquid(0, 192) + })); + + WorldUtils.Gen(point, new ModShapes.OuterOutline(holeShape, true, true), Actions.Chain(new GenAction[] + { + new CustomActions.DistanceFromOrigin(true, radiusSmall * 16f - 48), + new Modifiers.Conditions(new CustomConditions.RandomChance(3)), + new Actions.Smooth(), + new Actions.SetFrames(true) + })); + + outerRadiusPercentage = (float)((double)WorldGen.genRand.Next(65, 81) * 0.01); + WorldUtils.Gen(point, new Shapes.Circle((int)((float)radiusSmall * outerRadiusPercentage)), Actions.Chain(new GenAction[] //Smallest is 4 + { + new Modifiers.Blotches(2, 0.3).Output(holeShape), + new Actions.SetTile((ushort)mod.TileType("Navystone"), true) //Place outer shell + })); + + WorldUtils.Gen(point, new ModShapes.OuterOutline(holeShape, true, true), Actions.Chain(new GenAction[] //Smooth outer shell + { + new CustomActions.DistanceFromOrigin(true, radiusSmall * 16f - 48), + new Modifiers.Conditions(new CustomConditions.RandomChance(3)), + new Actions.Smooth(), + new Actions.SetFrames(true) + })); + + WorldUtils.Gen(point, new Shapes.Circle((int)((float)radiusSmall * (outerRadiusPercentage * 0.6f))), Actions.Chain(new GenAction[] //Smallest is 2 + { + new Modifiers.Blotches(2, 0.3), + new Actions.SetTile((ushort)mod.TileType("SeaPrism"), true) //Place prism + })); + + WorldUtils.Gen(point, new Shapes.Circle((int)((float)radiusSmall * (outerRadiusPercentage * 0.3f))), Actions.Chain(new GenAction[] //Smallest is 1 + { + new Modifiers.Blotches(2, 0.3).Output(holeShape), + new Actions.ClearTile(true), //Clear center + new Actions.SetLiquid(0, 255) + })); + + WorldUtils.Gen(point, new ModShapes.OuterOutline(holeShape, true, true), Actions.Chain(new GenAction[] //Smooth inner shell + { + new CustomActions.DistanceFromOrigin(true, radius * 16f - 48), + new Modifiers.Conditions(new CustomConditions.RandomChance(2)), + new Actions.Smooth(), + new Actions.SetFrames(true) + })); + } + int num3 = i + start.X; + int num4 = j + start.Y; + Tile tile = Main.tile[num3, num4]; + Tile testTile = Main.tile[num3, num4 + 1]; + Tile testTile2 = Main.tile[num3, num4 + 2]; + if (tile.type == mod.TileType("EutrophicSand") && (!WorldGen.SolidTile(testTile) || !WorldGen.SolidTile(testTile2))) //Tile variation + { + tile.type = (ushort)mod.TileType("Navystone"); + } + } + } + for (int k = -20; k < num + 20; k++) + { + for (int l = -20; l < num2 + 20; l++) + { + int num5 = k + start.X; + int num6 = l + start.Y; + Tile tile2 = Main.tile[num5, num6]; + if (tile2.active() && (tile2.type == mod.TileType("SeaPrism") || tile2.type == mod.TileType("Navystone"))) + { + bool flag = true; + for (int m = -1; m >= -3; m--) + { + if (Main.tile[num5, num6 + m].active()) + { + flag = false; + break; + } + } + bool flag2 = true; + for (int n = 1; n <= 3; n++) + { + if (Main.tile[num5, num6 + n].active()) + { + flag2 = false; + break; + } + } + bool flag3 = true; + for (int o = -1; o >= -3; o--) + { + if (Main.tile[num5 + o, num6].active()) + { + flag3 = false; + break; + } + } + bool flag4 = true; + for (int p = 1; p <= 3; p++) + { + if (Main.tile[num5 + p, num6].active()) + { + flag4 = false; + break; + } + } + if (tile2.type == mod.TileType("SeaPrism") || (tile2.type == mod.TileType("Navystone") && WorldGen.genRand.Next(8) == 0)) + { + if (flag3 ^ flag4) + { + if (tile2.slope() == 0 && !tile2.halfBrick()) + { + Tile tile3 = Main.tile[num5 + (flag3 ? -1 : 1), num6]; + tile3.type = (ushort)mod.TileType("SeaPrismCrystals"); + if (Main.tile[num5 - 1, num6].type == mod.TileType("SeaPrismCrystals")) + { + Main.tile[num5 - 1, num6].frameY = (short)(2 * 18); + } + else if (Main.tile[num5 + 1, num6].type == mod.TileType("SeaPrismCrystals")) + { + Main.tile[num5 + 1, num6].frameY = (short)(3 * 18); + } + tile3.frameX = (short)(WorldGen.genRand.Next(18) * 18); + tile3.active(true); + } + } + if (flag ^ flag2) + { + if (tile2.slope() == 0 && !tile2.halfBrick()) + { + Tile tile3 = Main.tile[num5, num6 + (flag ? -1 : 1)]; + tile3.type = (ushort)mod.TileType("SeaPrismCrystals"); + if (Main.tile[num5, num6 - 1].type == mod.TileType("SeaPrismCrystals")) + { + Main.tile[num5, num6 - 1].frameY = (short)(0 * 18); + } + else if (Main.tile[num5, num6 + 1].type == mod.TileType("SeaPrismCrystals")) + { + Main.tile[num5, num6 + 1].frameY = (short)(1 * 18); + } + tile3.frameX = (short)(WorldGen.genRand.Next(18) * 18); + tile3.active(true); + } + } + } + } + if (!tile2.active()) + { + if (tile2.wall == mod.WallType("NavystoneWall") || tile2.wall == mod.WallType("EutrophicSandWall")) + { + if (WorldGen.genRand.Next(5) == 0) + { + CalamityWorld.PlaceTit(num5, num6, (ushort)mod.TileType("SunkenSeaStalactite")); + } + if (WorldGen.genRand.Next(8) == 0) + { + WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("BrainCoral"), true, false, -1, 0); + } + if (WorldGen.genRand.Next(6) == 0) + { + WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("SmallBrainCoral"), true, false, -1, 0); + } + if (WorldGen.genRand.Next(10) == 0) + { + WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("FanCoral"), true, false, -1, 0); + } + if (WorldGen.genRand.Next(6) == 0) + { + WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("SeaAnemone"), true, false, -1, 0); + } + if (WorldGen.genRand.Next(8) == 0) + { + WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("TubeCoral"), true, false, -1, 0); + } + if (WorldGen.genRand.Next(6) == 0) + { + WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("SmallTubeCoral"), true, false, -1, 0); + } + if (WorldGen.genRand.Next(4) == 0) + { + WorldGen.PlaceTile(num5, num6, (ushort)mod.TileType("TableCoral"), true, false, -1, 0); + } + } + } + } + } + } + + public static bool Place(Point origin) + { + float scale = (float)Main.maxTilesX / 4200f; + int sunkenSeaAreaX = (int)(80f * scale); //80f + int sunkenSeaAreaY = (int)((WorldGen.genRand.NextFloat() + 1f) * 60f * scale); //80f + float radius = (float)WorldGen.genRand.Next(6, 10); + Vector2 vector = new Vector2(4f, 2f); //4, 2 + SunkenSea.ClusterGroup clusterGroup = new SunkenSea.ClusterGroup(); + clusterGroup.Generate(sunkenSeaAreaX, sunkenSeaAreaY); + SunkenSea.PlaceClusters(clusterGroup, origin, vector); + SunkenSea.AddTileVariance(clusterGroup, origin, vector, scale); + int num4 = (int)(vector.X * (float)clusterGroup.Width); + int num5 = (int)(vector.Y * (float)clusterGroup.Height); + for (int i = -40; i < num4 + 40; i++) //40 + { + for (int j = -40; j < num5 + 40; j++) //40 + { + if (i + origin.X > 0 && i + origin.X < Main.maxTilesX - 1 && j + origin.Y > 0 && j + origin.Y < Main.maxTilesY - 1) + { + WorldGen.SquareWallFrame(i + origin.X, j + origin.Y, true); + WorldUtils.TileFrame(i + origin.X, j + origin.Y, true); + } + } + } + return true; + } + } +} diff --git a/build.txt b/build.txt index 71aa618d08..0d270c1293 100644 --- a/build.txt +++ b/build.txt @@ -1,7 +1,8 @@ author = MountainDrew -version = 1.4.1.004 +version = 1.4.2.001 displayName = Calamity Mod (No Calamity Music) homepage = https://forums.terraria.org/index.php?threads/calamity-mod.44065/ +buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes hideCode = true hideResources = true includeSource = false diff --git a/description.txt b/description.txt index dd432f0ebb..3c32ad6b1d 100644 --- a/description.txt +++ b/description.txt @@ -4,7 +4,7 @@ It currently contains: 24 new bosses 4 new modes for extra challenge 3 new biomes -250+ new enemy NPCs -1250+ new items +275+ new enemy NPCs +1400+ new items Cross-content support for GRealm PLEASE BE ADVISED: Download the Calamity Mod Music mod if you want Calamity Mod music to be in your game! \ No newline at end of file

    SzcxR& zEyyl>WiUt=S@+SD{!1}TGd13)vy3xFCGs5QjRwYYes5}?GrC)y%?+?v65PUeTd%Ow zOh|NZ347hAG!?Cbp<9&pgM;vT8+kD&=pA-tSd+jnD)#_Zu%snoj;qMU}6@S*bc_B%hc;{zcHGo+M_93k#$a zp_~-Y98ja<>Xj#p7d@Rx(Kt~Orb+9B4=8=p)K`+v*G#GHpQFC=_t)gWd2O(Nyf)Bx zM$N{%beHml+=|3`328H_oqgUe!OzWNz3UUYqX?Fw+d?NVb&8Y4YIfg^PA+Csotc0p zdriD}p%0#iBjPYA3ul9N$|U%|g=k~?S}lUAETgT?q4hZxM{+TxAX&XHq)xmmzC$h9 zFZ|(sEY#rE^_*6UZKOhm^K57~#^DgZ~ItN0CGnMIO<+B8pUBv+T8qjDc+#h(u6yn_~|9W!0cjek{r_f?9Lwr?+clB zFNc=5jE|VciKiAk&{JX!K@#iG?^OrgppnzXU1Xny@v_tzX8*=5za8nJLYx5;P}&{{ zE8(v1lNv)6ap<)ES*{FU<0f4t4N>hEX_M5sDB;Dmf7n-wDc>mNd0l+OUC0#@Xh=v9 z9I0I!d{xl%gA2#7lo&&Y>)zEjj}}r;g-t`Z7mpk9)K>Gxv6G4R?pL z38z~N+Rr|BdN|#k!`#1)h=yg)fknN+Rtt*bCs`J}tyE`7A;zx-qME zOJ3zA)K$$HQ?*49?;$>?VxVt)T%3nT2xWBC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}j9Dg6d-t?T!0JJfE?#1cfwmdLd1ZdW z4@*q++zS)I{|8eM8PBSh;3q{Fr}vz}qVBLm0>^jA@fandtgP zt{hXuUztDMxOO~0Guu#Ql?dB&45grM*W43h40N3_*3>Kea+|d+oHijiG1uyBWxGg> zF;LoOQMD~PjY6nx(Yd6B{z2ZaVINIdNQ^PiwJJen%ff00000NkvXXu0mjf@K&s} literal 0 HcmV?d00001 diff --git a/Projectiles/SirenSongFriendly.cs b/Projectiles/Summon/SirenSongFriendly.cs similarity index 73% rename from Projectiles/SirenSongFriendly.cs rename to Projectiles/Summon/SirenSongFriendly.cs index fcb1774b93..9d42b5637f 100644 --- a/Projectiles/SirenSongFriendly.cs +++ b/Projectiles/Summon/SirenSongFriendly.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SirenSongFriendly : ModProjectile { @@ -48,8 +48,16 @@ namespace CalamityMod.Projectiles if (projectile.ai[1] == 0f) { projectile.ai[1] = 1f; - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 26); - } - } - } + float soundPitch = (Main.rand.NextFloat() - 0.5f) * 0.5f; + Main.harpNote = soundPitch; + Main.PlaySound(SoundID.Item26, projectile.position); + } + Lighting.AddLight(projectile.Center, 0f, 0f, 1.2f); + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(255, 255, 255, 0); + } + } } \ No newline at end of file diff --git a/Projectiles/SirenSongFriendly.png b/Projectiles/Summon/SirenSongFriendly.png similarity index 73% rename from Projectiles/SirenSongFriendly.png rename to Projectiles/Summon/SirenSongFriendly.png index 2d410bffb73a35bc42b5448648c3bd351ff395f1..c2832ae6e846d838e45ec3b3cc5b624952c799c8 100644 GIT binary patch delta 936 zcmV;Z16Tay8Oj`x7YaHE1^@s6uI5Sju_2xce*<+%L_t(|+SHg$NK{c2$A8x}&1SNc zL<{>ah?p=9il~JJC4tdmb}cf9AWABXqCz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svChajJ{YeB0AHcp^^nQu)xX{rs_{ zJ#U)ziCjk(Jds;nY{%0KiG;M`4&av+f+zCRrc$+pS!=J5xZ_nz0zf5g-xEpnQV^Xh zeJ2a>bH%K+J(&Rj;Ed^>4_+f)ZGI9>}$f1592 zJeY~ZeuUk;+L%A=DL!l`?z}2>`x+7=ErJ7a;fLdM;M8 zML4bH#$HGJr3`nc%XMBBX(GXrDW}#Mn)T7z?jbayot43v&Pf diff --git a/Projectiles/SlimeGod.cs b/Projectiles/Summon/SlimeGod.cs similarity index 74% rename from Projectiles/SlimeGod.cs rename to Projectiles/Summon/SlimeGod.cs index 4fddde1e41..6828fea92d 100644 --- a/Projectiles/SlimeGod.cs +++ b/Projectiles/Summon/SlimeGod.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SlimeGod : ModProjectile { @@ -49,7 +49,9 @@ namespace CalamityMod.Projectiles { if (dust == 0f) { - int num226 = 16; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 16; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -62,7 +64,14 @@ namespace CalamityMod.Projectiles } dust += 1f; } - bool flag64 = projectile.type == mod.ProjectileType("SlimeGod"); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("SlimeGod"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); player.AddBuff(mod.BuffType("SlimeGod"), 3600); diff --git a/Projectiles/SlimeGod.png b/Projectiles/Summon/SlimeGod.png similarity index 100% rename from Projectiles/SlimeGod.png rename to Projectiles/Summon/SlimeGod.png diff --git a/Projectiles/SlimeGodAlt.cs b/Projectiles/Summon/SlimeGodAlt.cs similarity index 73% rename from Projectiles/SlimeGodAlt.cs rename to Projectiles/Summon/SlimeGodAlt.cs index bc20d5c726..91506432ed 100644 --- a/Projectiles/SlimeGodAlt.cs +++ b/Projectiles/Summon/SlimeGodAlt.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SlimeGodAlt : ModProjectile { @@ -49,7 +49,9 @@ namespace CalamityMod.Projectiles { if (dust == 0f) { - int num226 = 16; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num226 = 16; for (int num227 = 0; num227 < num226; num227++) { Vector2 vector6 = Vector2.Normalize(projectile.velocity) * new Vector2((float)projectile.width / 2f, (float)projectile.height) * 0.75f; @@ -62,7 +64,14 @@ namespace CalamityMod.Projectiles } dust += 1f; } - bool flag64 = projectile.type == mod.ProjectileType("SlimeGodAlt"); + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("SlimeGodAlt"); Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.GetModPlayer(mod); player.AddBuff(mod.BuffType("SlimeGod"), 3600); diff --git a/Projectiles/SlimeGodAlt.png b/Projectiles/Summon/SlimeGodAlt.png similarity index 100% rename from Projectiles/SlimeGodAlt.png rename to Projectiles/Summon/SlimeGodAlt.png diff --git a/Projectiles/SolarBeam.cs b/Projectiles/Summon/SolarBeam.cs similarity index 93% rename from Projectiles/SolarBeam.cs rename to Projectiles/Summon/SolarBeam.cs index c54a2d3b13..80a2e8a550 100644 --- a/Projectiles/SolarBeam.cs +++ b/Projectiles/Summon/SolarBeam.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SolarBeam : ModProjectile { @@ -42,7 +42,6 @@ namespace CalamityMod.Projectiles Main.dust[num448].scale = (float)Main.rand.Next(70, 110) * 0.013f; Main.dust[num448].velocity *= 0.2f; } - return; } } } diff --git a/Projectiles/SolarBeam.png b/Projectiles/Summon/SolarBeam.png similarity index 100% rename from Projectiles/SolarBeam.png rename to Projectiles/Summon/SolarBeam.png diff --git a/Projectiles/SolarGod.cs b/Projectiles/Summon/SolarGod.cs similarity index 76% rename from Projectiles/SolarGod.cs rename to Projectiles/Summon/SolarGod.cs index 91bb5aad0a..c679c4b040 100644 --- a/Projectiles/SolarGod.cs +++ b/Projectiles/Summon/SolarGod.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SolarGod : ModProjectile { @@ -67,7 +67,9 @@ namespace CalamityMod.Projectiles projectile.scale = num395 + 0.95f; if (projectile.localAI[0] == 0f) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 244, 0f, 0f, 0, default(Color), 1f); @@ -76,6 +78,13 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } if (projectile.owner == Main.myPlayer) { if (projectile.ai[0] != 0f) @@ -105,7 +114,7 @@ namespace CalamityMod.Projectiles } if (flag11) { - float num403 = 35f; //modify the speed the projectile are shot. Lower number = slower projectile. + float num403 = 35f; Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); float num404 = num396 - vector29.X; float num405 = num397 - vector29.Y; @@ -113,11 +122,20 @@ namespace CalamityMod.Projectiles num406 = num403 / num406; num404 *= num406; num405 *= num406; - Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, mod.ProjectileType("SolarBeam"), (int)(60f * player.minionDamage), projectile.knockBack, projectile.owner, 0f, 0f); + Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, mod.ProjectileType("SolarBeam"), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); projectile.ai[0] = 30f; - return; } } } - } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, 200); + } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/SolarGod.png b/Projectiles/Summon/SolarGod.png similarity index 100% rename from Projectiles/SolarGod.png rename to Projectiles/Summon/SolarGod.png diff --git a/Projectiles/SolarPixie.cs b/Projectiles/Summon/SolarPixie.cs similarity index 77% rename from Projectiles/SolarPixie.cs rename to Projectiles/Summon/SolarPixie.cs index f99cbf59d3..dfc9b8295b 100644 --- a/Projectiles/SolarPixie.cs +++ b/Projectiles/Summon/SolarPixie.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class SolarPixie : ModProjectile { @@ -67,7 +67,9 @@ namespace CalamityMod.Projectiles projectile.scale = num395 + 0.95f; if (projectile.localAI[0] == 0f) { - int num501 = 25; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 25; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 244, 0f, 0f, 0, default(Color), 1f); @@ -76,6 +78,13 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } if (projectile.owner == Main.myPlayer) { if (projectile.ai[0] != 0f) @@ -105,7 +114,7 @@ namespace CalamityMod.Projectiles } if (flag11) { - float num403 = 30f; //modify the speed the projectile are shot. Lower number = slower projectile. + float num403 = 30f; Vector2 vector29 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); float num404 = num396 - vector29.X; float num405 = num397 - vector29.Y; @@ -113,13 +122,22 @@ namespace CalamityMod.Projectiles num406 = num403 / num406; num404 *= num406; num405 *= num406; - int beam = Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, 260, (int)(6f * player.minionDamage), projectile.knockBack, projectile.owner, 0f, 0f); + int beam = Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, num404, num405, 260, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f); Main.projectile[beam].magic = false; Main.projectile[beam].minion = true; projectile.ai[0] = 50f; - return; } } } - } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, 200); + } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/SolarPixie.png b/Projectiles/Summon/SolarPixie.png similarity index 100% rename from Projectiles/SolarPixie.png rename to Projectiles/Summon/SolarPixie.png diff --git a/Projectiles/StormMarkSummon.cs b/Projectiles/Summon/StormMarkSummon.cs similarity index 96% rename from Projectiles/StormMarkSummon.cs rename to Projectiles/Summon/StormMarkSummon.cs index 6d94d7e10f..6266ad2fbd 100644 --- a/Projectiles/StormMarkSummon.cs +++ b/Projectiles/Summon/StormMarkSummon.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class StormMarkSummon : ModProjectile { diff --git a/Projectiles/StormMarkSummon.png b/Projectiles/Summon/StormMarkSummon.png similarity index 100% rename from Projectiles/StormMarkSummon.png rename to Projectiles/Summon/StormMarkSummon.png diff --git a/Projectiles/Urchin.cs b/Projectiles/Summon/Urchin.cs similarity index 80% rename from Projectiles/Urchin.cs rename to Projectiles/Summon/Urchin.cs index 8ec63ce823..b7214b7ea7 100644 --- a/Projectiles/Urchin.cs +++ b/Projectiles/Summon/Urchin.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Urchin : ModProjectile { @@ -25,12 +25,12 @@ namespace CalamityMod.Projectiles projectile.netImportant = true; projectile.friendly = true; projectile.ignoreWater = true; - projectile.minionSlots = 0f; + projectile.minion = true; + projectile.minionSlots = 0f; projectile.timeLeft = 18000; projectile.penetrate = -1; projectile.tileCollide = false; projectile.timeLeft *= 5; - projectile.sentry = true; } public override void AI() @@ -57,7 +57,9 @@ namespace CalamityMod.Projectiles dust--; if (dust >= 0) { - int num501 = 50; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 50; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 179, 0f, 0f, 0, default(Color), 1f); @@ -65,7 +67,14 @@ namespace CalamityMod.Projectiles Main.dust[num503].scale *= 1.15f; } } - float num395 = (float)Main.mouseTextColor / 200f - 0.35f; + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + float num395 = (float)Main.mouseTextColor / 200f - 0.35f; num395 *= 0.2f; projectile.scale = num395 + 0.95f; projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); @@ -137,15 +146,19 @@ namespace CalamityMod.Projectiles } value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - int spore = Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("UrchinSpike"), (int)((double)7 * player.minionDamage), 1f, projectile.owner, 0f, 0f); + int spore = Projectile.NewProjectile(projectile.Center.X - 4f, projectile.Center.Y, value15.X, value15.Y, mod.ProjectileType("UrchinSpike"), projectile.damage, 1f, projectile.owner, 0f, 0f); Main.projectile[spore].minion = true; Main.projectile[spore].minionSlots = 0f; } Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 42); projectile.ai[0] = 60f; - return; } } } - } + + public override bool CanDamage() + { + return false; + } + } } \ No newline at end of file diff --git a/Projectiles/Urchin.png b/Projectiles/Summon/Urchin.png similarity index 100% rename from Projectiles/Urchin.png rename to Projectiles/Summon/Urchin.png diff --git a/Projectiles/UrchinSpike.cs b/Projectiles/Summon/UrchinSpike.cs similarity index 92% rename from Projectiles/UrchinSpike.cs rename to Projectiles/Summon/UrchinSpike.cs index b872c0e788..6f180fa425 100644 --- a/Projectiles/UrchinSpike.cs +++ b/Projectiles/Summon/UrchinSpike.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class UrchinSpike : ModProjectile { diff --git a/Projectiles/UrchinSpike.png b/Projectiles/Summon/UrchinSpike.png similarity index 100% rename from Projectiles/UrchinSpike.png rename to Projectiles/Summon/UrchinSpike.png diff --git a/Projectiles/Valkyrie.cs b/Projectiles/Summon/Valkyrie.cs similarity index 86% rename from Projectiles/Valkyrie.cs rename to Projectiles/Summon/Valkyrie.cs index 58543d6db5..42803d5ccf 100644 --- a/Projectiles/Valkyrie.cs +++ b/Projectiles/Summon/Valkyrie.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class Valkyrie : ModProjectile { @@ -57,7 +57,9 @@ namespace CalamityMod.Projectiles } if (projectile.localAI[0] == 0f) { - int num501 = 30; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 30; for (int num502 = 0; num502 < num501; num502++) { int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 59, 0f, 0f, 0, default(Color), 1f); @@ -66,7 +68,14 @@ namespace CalamityMod.Projectiles } projectile.localAI[0] += 1f; } - if ((double)Math.Abs(projectile.velocity.X) > 0.2) + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + if ((double)Math.Abs(projectile.velocity.X) > 0.2) { projectile.spriteDirection = -projectile.direction; } diff --git a/Projectiles/Valkyrie.png b/Projectiles/Summon/Valkyrie.png similarity index 100% rename from Projectiles/Valkyrie.png rename to Projectiles/Summon/Valkyrie.png diff --git a/Projectiles/WaterSpearFriendly.cs b/Projectiles/Summon/WaterSpearFriendly.cs similarity index 90% rename from Projectiles/WaterSpearFriendly.cs rename to Projectiles/Summon/WaterSpearFriendly.cs index 203257dce3..a226e77a08 100644 --- a/Projectiles/WaterSpearFriendly.cs +++ b/Projectiles/Summon/WaterSpearFriendly.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Summon { public class WaterSpearFriendly : ModProjectile { @@ -78,7 +78,12 @@ namespace CalamityMod.Projectiles return false; } - public override void Kill(int timeLeft) + public override Color? GetAlpha(Color lightColor) + { + return new Color(200, 200, 200, projectile.alpha); + } + + public override void Kill(int timeLeft) { for (int k = 0; k < 3; k++) { diff --git a/Projectiles/Summon/WaterSpearFriendly.png b/Projectiles/Summon/WaterSpearFriendly.png new file mode 100644 index 0000000000000000000000000000000000000000..b923a9ea8bc4fad55ba1a56100349621cb5375ee GIT binary patch literal 411 zcmeAS@N?(olHy`uVBq!ia0vp^d_e5L!3HF?q}QJf1F&As*guFYoqcF%)Ti__DEwX&WQg0$!(0XEPhT1XKeUwipOX3JK~8 zOq95JX}U~h%ZD>8yKg=4*w=sm`-%RQQ!ZWo`gUW;+0Qm#ue7fE$5MTA)#1CzD^KyR zx%Lx64}41yiigTe~DWM4f*s~87 literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/AquamarineBolt.cs b/Projectiles/SunkenSea/AquamarineBolt.cs new file mode 100644 index 0000000000..267dcdd189 --- /dev/null +++ b/Projectiles/SunkenSea/AquamarineBolt.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class AquamarineBolt : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Bolt"); + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.penetrate = 1; + projectile.magic = true; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f); + for (int num151 = 0; num151 < 3; num151++) + { + int num154 = 14; + int num155 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 68, 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num155].noGravity = true; + Main.dust[num155].velocity *= 0.1f; + Main.dust[num155].velocity += projectile.velocity * 0.5f; + } + if (Main.rand.Next(8) == 0) + { + int num156 = 16; + int num157 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num156 * 2, projectile.height - num156 * 2, 68, 0f, 0f, 100, default(Color), 1f); + Main.dust[num157].velocity *= 0.25f; + Main.dust[num157].velocity += projectile.velocity * 0.5f; + return; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + } +} \ No newline at end of file diff --git a/Projectiles/ChaosFlare2.png b/Projectiles/SunkenSea/AquamarineBolt.png similarity index 100% rename from Projectiles/ChaosFlare2.png rename to Projectiles/SunkenSea/AquamarineBolt.png diff --git a/Projectiles/SunkenSea/Aquashard.cs b/Projectiles/SunkenSea/Aquashard.cs new file mode 100644 index 0000000000..7a5ea80feb --- /dev/null +++ b/Projectiles/SunkenSea/Aquashard.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class Aquashard : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Aquashard"); + } + + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 16; + projectile.friendly = true; + projectile.ranged = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + projectile.aiStyle = 1; + } + + public override void AI() + { + projectile.velocity.X *= 0.9995f; + projectile.velocity.Y = projectile.velocity.Y + 0.01f; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + int num251 = Main.rand.Next(2, 4); + if (projectile.owner == Main.myPlayer) + { + for (int num252 = 0; num252 < num251; num252++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("AquashardSplit"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + } + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/Aquashard.png b/Projectiles/SunkenSea/Aquashard.png new file mode 100644 index 0000000000000000000000000000000000000000..0e32025173488e1c6680c9524dbb5273b3bb75ac GIT binary patch literal 259 zcmV+e0sQ`nP)6e+|aWh&PYTt^xqkevie8D<4mDa67~Ei6QsLM$}| zEyCCsa1_bRDerq6?t>SqQP($_A4JCo0iJIjz>h$&MS19S}Z4Zcu6Of%hcN${AlC?=v{<55Vhq3|jjwkcvxooL{$j zGy_+ccRAyn!p1*~X%b75c=6(Yglg2yeNFSE9pLHuHkTJRegS2BEI);ysZ9U?002ov JPDHLkV1kE@W9t9_ literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/AquashardSplit.cs b/Projectiles/SunkenSea/AquashardSplit.cs new file mode 100644 index 0000000000..d16a063cfb --- /dev/null +++ b/Projectiles/SunkenSea/AquashardSplit.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class AquashardSplit : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Aquashard"); + } + + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 16; + projectile.friendly = true; + projectile.ranged = true; + projectile.penetrate = 3; + projectile.timeLeft = 180; + projectile.aiStyle = 1; + } + + public override void AI() + { + projectile.velocity.X *= 0.9995f; + projectile.velocity.Y = projectile.velocity.Y + 0.01f; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/AquashardSplit.png b/Projectiles/SunkenSea/AquashardSplit.png new file mode 100644 index 0000000000000000000000000000000000000000..0e32025173488e1c6680c9524dbb5273b3bb75ac GIT binary patch literal 259 zcmV+e0sQ`nP)6e+|aWh&PYTt^xqkevie8D<4mDa67~Ei6QsLM$}| zEyCCsa1_bRDerq6?t>SqQP($_A4JCo0iJIjz>h$&MS19S}Z4Zcu6Of%hcN${AlC?=v{<55Vhq3|jjwkcvxooL{$j zGy_+ccRAyn!p1*~X%b75c=6(Yglg2yeNFSE9pLHuHkTJRegS2BEI);ysZ9U?002ov JPDHLkV1kE@W9t9_ literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/ClamCrusherFlail.cs b/Projectiles/SunkenSea/ClamCrusherFlail.cs new file mode 100644 index 0000000000..fade868095 --- /dev/null +++ b/Projectiles/SunkenSea/ClamCrusherFlail.cs @@ -0,0 +1,205 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class ClamCrusherFlail : ModProjectile + { + public int finalDamage; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Clam Crusher"); + } + + public override void SetDefaults() + { + projectile.width = 58; + projectile.height = 74; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.penetrate = -1; + projectile.melee = true; + projectile.alpha = 255; + projectile.tileCollide = false; + } + + public override void AI() + { + projectile.ai[1] += 1f; + if (projectile.ai[1] == 1f) + { + finalDamage = (int)(projectile.damage * 2.5f); + } + if (projectile.ai[1] >= 5f && (projectile.ai[1] <= 10f)) + { + for (int num105 = 0; num105 < 10; num105++) + { + float num99 = projectile.velocity.X / 3f * (float)num105; + float num100 = projectile.velocity.Y / 3f * (float)num105; + int num101 = 4; + int waterDust = Dust.NewDust(new Vector2(projectile.position.X + (float)num101, projectile.position.Y + (float)num101), projectile.width - num101 * 2, projectile.height - num101 * 2, 33, 0f, 0f, 0, new Color(0, 142, 255), 1.5f); + Main.dust[waterDust].noGravity = true; + Main.dust[waterDust].velocity *= 0.1f; + Main.dust[waterDust].velocity += projectile.velocity * 0.1f; + Dust expr_47FA_cp_0 = Main.dust[waterDust]; + expr_47FA_cp_0.position.X = expr_47FA_cp_0.position.X - num99; + Dust expr_4815_cp_0 = Main.dust[waterDust]; + expr_4815_cp_0.position.Y = expr_4815_cp_0.position.Y - num100; + } + } + if (projectile.ai[1] == 5f) + { + projectile.tileCollide = true; + } + Vector2 vector62 = Main.player[projectile.owner].Center - projectile.Center; + projectile.rotation = vector62.ToRotation() - 1.57f; + if (Main.player[projectile.owner].dead) + { + projectile.Kill(); + return; + } + Main.player[projectile.owner].itemAnimation = 10; + Main.player[projectile.owner].itemTime = 10; + float arg_1DC8F_0 = vector62.X; + if (vector62.X < 0f) + { + Main.player[projectile.owner].ChangeDir(1); + projectile.direction = 1; + } + else + { + Main.player[projectile.owner].ChangeDir(-1); + projectile.direction = -1; + } + Main.player[projectile.owner].itemRotation = (vector62 * -1f * (float)projectile.direction).ToRotation(); + projectile.spriteDirection = ((vector62.X > 0f) ? -1 : 1); + if (projectile.ai[1] >= 45f && (projectile.ai[0] != 1f || projectile.ai[0] != 2f)) + { + projectile.velocity.Y += 1f; + projectile.velocity.X *= 0.995f; + projectile.damage = finalDamage; + } + if (projectile.ai[0] == 0f && vector62.Length() > 1000f) + { + projectile.ai[0] = 1f; + } + if (projectile.ai[0] == 1f || projectile.ai[0] == 2f) + { + float num693 = vector62.Length(); + if (num693 > 1500f) + { + projectile.Kill(); + return; + } + if (num693 > 600f) + { + projectile.ai[0] = 2f; + } + projectile.tileCollide = false; + float num694 = 20f; + if (projectile.ai[0] == 2f) + { + num694 = 40f; + } + projectile.velocity = Vector2.Normalize(vector62) * num694; + if (vector62.Length() < num694) + { + projectile.Kill(); + return; + } + } + float[] var_2_1DE21_cp_0 = projectile.ai; + int var_2_1DE21_cp_1 = 1; + float num73 = var_2_1DE21_cp_0[var_2_1DE21_cp_1]; + var_2_1DE21_cp_0[var_2_1DE21_cp_1] = num73 + 1f; + if (projectile.ai[1] > 5f) + { + projectile.alpha = 0; + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + if (projectile.ai[1] >= 5f) + { + Collision.HitTiles(projectile.position, projectile.velocity, projectile.width, projectile.height); + projectile.ai[0] = 1f; + projectile.netUpdate = true; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/ClamImpact"), (int)projectile.position.X, (int)projectile.position.Y); + for (int num105 = 0; num105 < 50; num105++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + int waterDust = Dust.NewDust(new Vector2(projectile.Center.X, projectile.Center.Y), projectile.width / 2, projectile.height / 2, 33, value15.X, value15.Y, 0, new Color(0, 142, 255), 1.5f); + Main.dust[waterDust].velocity *= 2f; + } + } + return false; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 mountedCenter = Main.player[projectile.owner].MountedCenter; + Microsoft.Xna.Framework.Color transparent = Microsoft.Xna.Framework.Color.Transparent; + Texture2D texture2D2 = mod.GetTexture("ExtraTextures/Chains/ClamCrusherChain"); + Vector2 vector17 = projectile.Center; + Microsoft.Xna.Framework.Rectangle? sourceRectangle = null; + Vector2 origin = new Vector2((float)texture2D2.Width * 0.5f, (float)texture2D2.Height * 0.5f); + float num91 = (float)texture2D2.Height; + Vector2 vector18 = mountedCenter - vector17; + float rotation15 = (float)Math.Atan2((double)vector18.Y, (double)vector18.X) - 1.57f; + bool flag13 = true; + if (float.IsNaN(vector17.X) && float.IsNaN(vector17.Y)) + { + flag13 = false; + } + if (float.IsNaN(vector18.X) && float.IsNaN(vector18.Y)) + { + flag13 = false; + } + while (flag13) + { + if (vector18.Length() < num91 + 1f) + { + flag13 = false; + } + else + { + Vector2 value2 = vector18; + value2.Normalize(); + vector17 += value2 * num91; + vector18 = mountedCenter - vector17; + Microsoft.Xna.Framework.Color color17 = Lighting.GetColor((int)vector17.X / 16, (int)(vector17.Y / 16f)); + Main.spriteBatch.Draw(texture2D2, vector17 - Main.screenPosition, sourceRectangle, color17, rotation15, origin, 1f, SpriteEffects.None, 0f); + } + } + return true; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (target.rarity != 2 && !target.boss) + { + target.AddBuff(mod.BuffType("SilvaStun"), 60); + } + else if (projectile.ai[1] >= 45f && (projectile.ai[0] != 1f || projectile.ai[0] != 2f)) + { + target.AddBuff(mod.BuffType("SilvaStun"), 30); + } + projectile.ai[0] = 1f; + projectile.netUpdate = true; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/ClamImpact"), (int)projectile.position.X, (int)projectile.position.Y); + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/ClamCrusherFlail.png b/Projectiles/SunkenSea/ClamCrusherFlail.png new file mode 100644 index 0000000000000000000000000000000000000000..3752350c4b4d07c91e0a06a59d5fa7a54a3efdfc GIT binary patch literal 1599 zcmV-F2Eh4=P)X}FB00001b5ch_0Itp) z=>Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1=LAIK~#8N?VC+# z9Ay~CceBYR*{w+$lbYz#CRRa>L<8D`RuU{Cq6evXvJ?t}M-ex%e?^NI|Mx^TN|S>_1Bi=r zOBDv6Jo5zNyIEV0pgP14}du=%|p^8HUC{&e;w zL^Aq3&k1Sr7YgXH+^Gusjo>>~xvkyL=7&o(*(Yr+d^* za+8Q5ZBwv49)$Fx(!?ZfR>Pef)hi6Q+%bs#pd7W0glxGP))sSBAJ509f89bP9P2*# zocSEgP0nI?l{r;)y-l;O8`h{cMWcF5tIgZcRhNI4k8^&h86H3CZB-{WN~1iZdbVNf zH;HXt8-&hHZP;d1uPhL!R~WF-)@iC`>H22HNJ*p5G>z6q|K%v2K^Q#N2Q5LY3Z)Eq%`kohjP@5`|e?| z^{2L#1U>uF*scN|Un9pV$lR7eWKAGEzN6dRXH;A>_ZjhCL5Gc++hG%hD;qHT>?_Y; zpV-E@K}I#a5_sj1T6rnx^;^z23x5?5%isg(yFT5kx}>7@Szu#<=BsQwCnPvaRe$cjt zqtRxy(Po(>u~8c|Tb{imZmyRinYE3K>K*ZfB{mv_%`BnOu<%M~NqhgVvT6QbrBRb4 xHX0V1C9RoO#I3?sh2aR`JvGZDal~jM@h|PNl>kQZnK1wW002ovPDHLkV1iq>6BGad literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/ClamorRifleProj.cs b/Projectiles/SunkenSea/ClamorRifleProj.cs new file mode 100644 index 0000000000..ad865dcc26 --- /dev/null +++ b/Projectiles/SunkenSea/ClamorRifleProj.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class ClamorRifleProj : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Energy Bolt"); + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.penetrate = 1; + projectile.ranged = true; + } + + public override void AI() + { + projectile.localAI[0] += 1f; + if (projectile.localAI[0] > 3f) + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f); + for (int num151 = 0; num151 < 3; num151++) + { + int num154 = 14; + int num155 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 68, 0f, 0f, 100, default(Color), 1f); + Main.dust[num155].noGravity = true; + Main.dust[num155].velocity *= 0.1f; + Main.dust[num155].velocity += projectile.velocity * 0.5f; + } + } + float centerX = projectile.Center.X; + float centerY = projectile.Center.Y; + float num474 = 300f; + bool homeIn = false; + for (int num475 = 0; num475 < 200; num475++) + { + if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) + { + float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); + float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + centerX = num476; + centerY = num477; + homeIn = true; + } + } + } + if (homeIn) + { + float num483 = 18f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = centerX - vector35.X; + float num485 = centerY - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 25f + num484) / 26f; + projectile.velocity.Y = (projectile.velocity.Y * 25f + num485) / 26f; + return; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + int num251 = Main.rand.Next(2, 3); + if (projectile.owner == Main.myPlayer) + { + for (int num252 = 0; num252 < num251; num252++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + Projectile.NewProjectile(projectile.oldPosition.X + (float)(projectile.width / 2), projectile.oldPosition.Y + (float)(projectile.height / 2), value15.X, value15.Y, mod.ProjectileType("ClamorRifleProjSplit"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + } + } + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 118); + } + } +} \ No newline at end of file diff --git a/Projectiles/GodSlayerShrapnelRound.png b/Projectiles/SunkenSea/ClamorRifleProj.png similarity index 100% rename from Projectiles/GodSlayerShrapnelRound.png rename to Projectiles/SunkenSea/ClamorRifleProj.png diff --git a/Projectiles/SunkenSea/ClamorRifleProjSplit.cs b/Projectiles/SunkenSea/ClamorRifleProjSplit.cs new file mode 100644 index 0000000000..8ad2d2e6be --- /dev/null +++ b/Projectiles/SunkenSea/ClamorRifleProjSplit.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class ClamorRifleProjSplit : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Energy Bolt"); + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.penetrate = 1; + projectile.ranged = true; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f); + for (int num151 = 0; num151 < 3; num151++) + { + int num154 = 14; + int num155 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width - num154 * 2, projectile.height - num154 * 2, 68, 0f, 0f, 100, default(Color), 1f); + Main.dust[num155].noGravity = true; + Main.dust[num155].velocity *= 0.1f; + Main.dust[num155].velocity += projectile.velocity * 0.5f; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + } +} \ No newline at end of file diff --git a/Projectiles/GoldenGun.png b/Projectiles/SunkenSea/ClamorRifleProjSplit.png similarity index 100% rename from Projectiles/GoldenGun.png rename to Projectiles/SunkenSea/ClamorRifleProjSplit.png diff --git a/Projectiles/SunkenSea/CoralBubble.cs b/Projectiles/SunkenSea/CoralBubble.cs new file mode 100644 index 0000000000..09c7cb2b90 --- /dev/null +++ b/Projectiles/SunkenSea/CoralBubble.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class CoralBubble : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Bubble"); + } + + public override void SetDefaults() + { + projectile.width = 28; + projectile.height = 28; + projectile.scale = 0.01f; + projectile.friendly = true; + projectile.alpha = 255; + projectile.timeLeft = 360; + projectile.penetrate = 1; + } + + public override void AI() + { + if (projectile.localAI[1] < 1f) + { + projectile.localAI[1] += 0.01f; + projectile.scale += 0.01f; + projectile.width = (int)(28f * projectile.scale); + projectile.height = (int)(28f * projectile.scale); + } + else + { + projectile.width = 28; + projectile.height = 28; + } + if (projectile.localAI[0] > 2f) + { + projectile.alpha -= 5; + if (projectile.alpha < 100) + { + projectile.alpha = 100; + } + } + else + { + projectile.localAI[0] += 1f; + } + if (projectile.ai[1] > 30f) + { + if (projectile.velocity.Y > -1.5f) + { + projectile.velocity.Y = projectile.velocity.Y - 0.05f; + } + } + else + { + projectile.ai[1] += 1f; + } + if (projectile.wet) + { + if (projectile.velocity.Y > 0f) + { + projectile.velocity.Y = projectile.velocity.Y * 0.98f; + } + if (projectile.velocity.Y > -1f) + { + projectile.velocity.Y = projectile.velocity.Y - 0.2f; + } + } + if (projectile.localAI[1] >= 1f) + { + int closestPlayer = (int)Player.FindClosest(projectile.Center, 1, 1); + Vector2 distance = Main.player[closestPlayer].Center - projectile.Center; + if (projectile.Distance(Main.player[closestPlayer].Center) < 14f) + { + Main.player[closestPlayer].AddBuff(BuffID.Gills, 90); + projectile.Kill(); + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D texture2D13 = Main.projectileTexture[projectile.type]; + int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; + int y6 = num214 * projectile.frame; + Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item54, projectile.position); + projectile.position = projectile.Center; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + int num190 = Main.rand.Next(5, 9); + for (int num191 = 0; num191 < num190; num191++) + { + int num192 = Dust.NewDust(projectile.Center, 0, 0, 206, 0f, 0f, 100, default(Color), 1.4f); + Main.dust[num192].velocity *= 0.8f; + Main.dust[num192].position = Vector2.Lerp(Main.dust[num192].position, projectile.Center, 0.5f); + Main.dust[num192].noGravity = true; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/CoralBubble.png b/Projectiles/SunkenSea/CoralBubble.png new file mode 100644 index 0000000000000000000000000000000000000000..e3e51784bab6312d883761eeb8cc7c85954737a6 GIT binary patch literal 390 zcmV;10eSw3P)_YSp~tym$0?G($*I_uDa?v^911zENqm3AhwpGu;E+C zWG6{A>otF7{|WbhnZ4{~ZsOi&1A_4WBF8}jiExUkYA?TaMQ<=w4sJ-PVl-14(P8fcNB!h(H)c7bq zwVXXO$4Ao_kr$mHzs%?ZOUB>~E=r9Lfh{G~<=5&b+dYV`jQ kk_eT=tfLwcK59<*2UEUwmL^4aApigX07*qoM6N<$f;9-bJOBUy literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/CoralBubbleSmall.cs b/Projectiles/SunkenSea/CoralBubbleSmall.cs new file mode 100644 index 0000000000..9ca5a44014 --- /dev/null +++ b/Projectiles/SunkenSea/CoralBubbleSmall.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class CoralBubbleSmall : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Bubble"); + } + + public override void SetDefaults() + { + projectile.width = 28; + projectile.height = 28; + projectile.scale = 0.01f; + projectile.friendly = true; + projectile.alpha = 255; + projectile.timeLeft = 360; + projectile.penetrate = 1; + } + + public override void AI() + { + if (projectile.localAI[1] < 0.5f) + { + projectile.localAI[1] += 0.005f; + projectile.scale += 0.005f; + projectile.width = (int)(28f * projectile.scale); + projectile.height = (int)(28f * projectile.scale); + } + else + { + projectile.width = 14; + projectile.height = 14; + } + if (projectile.localAI[0] > 2f) + { + projectile.alpha -= 5; + if (projectile.alpha < 100) + { + projectile.alpha = 100; + } + } + else + { + projectile.localAI[0] += 1f; + } + if (projectile.ai[1] > 30f) + { + if (projectile.velocity.Y > -1.5f) + { + projectile.velocity.Y = projectile.velocity.Y - 0.05f; + } + } + else + { + projectile.ai[1] += 1f; + } + if (projectile.wet) + { + if (projectile.velocity.Y > 0f) + { + projectile.velocity.Y = projectile.velocity.Y * 0.98f; + } + if (projectile.velocity.Y > -1f) + { + projectile.velocity.Y = projectile.velocity.Y - 0.2f; + } + } + if (projectile.localAI[1] >= 0.5f) + { + int closestPlayer = (int)Player.FindClosest(projectile.Center, 1, 1); + Vector2 distance = Main.player[closestPlayer].Center - projectile.Center; + if (projectile.Distance(Main.player[closestPlayer].Center) < 7f) + { + Main.player[closestPlayer].AddBuff(BuffID.Gills, 30); + projectile.Kill(); + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D texture2D13 = Main.projectileTexture[projectile.type]; + int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; + int y6 = num214 * projectile.frame; + Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Microsoft.Xna.Framework.Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item54, projectile.position); + projectile.position = projectile.Center; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + int num190 = Main.rand.Next(5, 9); + for (int num191 = 0; num191 < num190; num191++) + { + int num192 = Dust.NewDust(projectile.Center, 0, 0, 206, 0f, 0f, 100, default(Color), 1.4f); + Main.dust[num192].velocity *= 0.8f; + Main.dust[num192].position = Vector2.Lerp(Main.dust[num192].position, projectile.Center, 0.5f); + Main.dust[num192].noGravity = true; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/CoralBubbleSmall.png b/Projectiles/SunkenSea/CoralBubbleSmall.png new file mode 100644 index 0000000000000000000000000000000000000000..e3e51784bab6312d883761eeb8cc7c85954737a6 GIT binary patch literal 390 zcmV;10eSw3P)_YSp~tym$0?G($*I_uDa?v^911zENqm3AhwpGu;E+C zWG6{A>otF7{|WbhnZ4{~ZsOi&1A_4WBF8}jiExUkYA?TaMQ<=w4sJ-PVl-14(P8fcNB!h(H)c7bq zwVXXO$4Ao_kr$mHzs%?ZOUB>~E=r9Lfh{G~<=5&b+dYV`jQ kk_eT=tfLwcK59<*2UEUwmL^4aApigX07*qoM6N<$f;9-bJOBUy literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/EutrophicScimitarProj.cs b/Projectiles/SunkenSea/EutrophicScimitarProj.cs new file mode 100644 index 0000000000..e7b0ef2f21 --- /dev/null +++ b/Projectiles/SunkenSea/EutrophicScimitarProj.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Graphics.Shaders; +using Terraria.GameContent.Achievements; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Projectiles.SunkenSea +{ + class EutrophicScimitarProj : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Scimitar Zap"); + Main.projFrames[projectile.type] = 3; + } + + public override void SetDefaults() + { + projectile.width = 34; + projectile.height = 18; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.tileCollide = true; + projectile.melee = true; + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(127, 255, 253); + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (target.rarity != 2 && !target.boss) + { + target.AddBuff(mod.BuffType("SilvaStun"), 10); + } + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f); + projectile.frameCounter++; + if (projectile.frameCounter > 2) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 2) + { + projectile.frame = 0; + } + if (projectile.velocity.X < 0f) + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + else + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + if (Main.rand.Next(2) == 0) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 226, projectile.velocity.X * 0.25f, projectile.velocity.Y * 0.25f, 0, new Color(255, 255, 255), 0.5f); + } + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X); + } + + public override void Kill(int timeLeft) + { + for (int i = 0; i <= 10; i++) + { + Dust dust; + Vector2 position = new Vector2(projectile.position.X - 4, projectile.position.Y - 4); + dust = Main.dust[Terraria.Dust.NewDust(position, 58, 58, 226, 0f, 0f, 0, new Color(255, 255, 255), 0.4605263f)]; + dust.noGravity = true; + dust.fadeIn = 0.9473684f; + } + } + } +} diff --git a/Projectiles/SunkenSea/EutrophicScimitarProj.png b/Projectiles/SunkenSea/EutrophicScimitarProj.png new file mode 100644 index 0000000000000000000000000000000000000000..7c033845842f9a76812e00679cc581a43ee2feb7 GIT binary patch literal 483 zcmV<90UZ8`P)Cxg z?Ck6gH;K>sus_YF%W(`IHp5~_bQR2!jhll!ZKt5b-Sfkl0A5Al2Tt6IGy~xjSaqNj zK>)Y+$KYc7xH=O-D$)$Z`tZl=TZjY^K^d$X{Dv}?A4|DkiZlb^>fNnJnXWl{t7y4~ zprrCUbOVyp4QJbz(=qfFJfG8aaaE}AM5W;`C*6RQYW3NQbOWMtANzl{BC#J*?-c_< z(W*Vi0=ga$Z?RepG+UA8Al6>PofV*{4W2`iCo~vV1A$|;O9F&jyS3|LwpFX?r$)K~ zVaa*6v=rc);P;dgW{p@w?!SX@uDR-YR<$Dbc3Rm-x&dK@c-h9*K=Dnl8xR#)>i@Dv zQXPBkvO&D7quM;u9K^f*t5hYYrW+7$`LSo*;x*DO2uJEY11Hyr8jPxgsLMR-qDO(b z6{!vqdtsA%4I$4p-GEq=8Q&W6d)4QWQunK>wYv{k0Q-7h1l!p2%JqV9WTm!$cWP>b Zd;{H>W1zsA1_S^A002ovPDHLkV1jrr 1f) + { + projectile.velocity.Y = projectile.velocity.Y * -0.5f; + } + projectile.ai[0] += 1f; + if (projectile.ai[0] > 5f) + { + projectile.ai[0] = 5f; + if (projectile.velocity.Y == 0f && projectile.velocity.X != 0f) + { + projectile.velocity.X = projectile.velocity.X * 0.97f; + if ((double)projectile.velocity.X > -0.01 && (double)projectile.velocity.X < 0.01) + { + projectile.velocity.X = 0f; + projectile.netUpdate = true; + } + } + projectile.velocity.Y = projectile.velocity.Y + 0.2f; + } + projectile.rotation += projectile.velocity.X * 0.1f; + int num199 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 206, 0f, 0f, 100, default(Color), 1f); + Dust expr_8976_cp_0 = Main.dust[num199]; + expr_8976_cp_0.position.X = expr_8976_cp_0.position.X - 2f; + Dust expr_8994_cp_0 = Main.dust[num199]; + expr_8994_cp_0.position.Y = expr_8994_cp_0.position.Y + 2f; + Main.dust[num199].scale += (float)Main.rand.Next(50) * 0.01f; + Main.dust[num199].noGravity = true; + Dust expr_89E7_cp_0 = Main.dust[num199]; + expr_89E7_cp_0.velocity.Y = expr_89E7_cp_0.velocity.Y - 2f; + if (Main.rand.Next(2) == 0) + { + int num200 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 206, 0f, 0f, 100, default(Color), 1f); + Dust expr_8A4E_cp_0 = Main.dust[num200]; + expr_8A4E_cp_0.position.X = expr_8A4E_cp_0.position.X - 2f; + Dust expr_8A6C_cp_0 = Main.dust[num200]; + expr_8A6C_cp_0.position.Y = expr_8A6C_cp_0.position.Y + 2f; + Main.dust[num200].scale += 0.3f + (float)Main.rand.Next(50) * 0.01f; + Main.dust[num200].noGravity = true; + Main.dust[num200].velocity *= 0.1f; + } + if ((double)projectile.velocity.Y < 0.25 && (double)projectile.velocity.Y > 0.15) + { + projectile.velocity.X = projectile.velocity.X * 0.8f; + } + projectile.rotation = -projectile.velocity.X * 0.05f; + if (projectile.velocity.Y > 16f) + { + projectile.velocity.Y = 16f; + return; + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + if (projectile.penetrate == 0) + { + projectile.Kill(); + } + return false; + } + } +} \ No newline at end of file diff --git a/Projectiles/GodSlayerShrapnel.png b/Projectiles/SunkenSea/EutrophicSpark.png similarity index 100% rename from Projectiles/GodSlayerShrapnel.png rename to Projectiles/SunkenSea/EutrophicSpark.png diff --git a/Projectiles/SunkenSea/PearlBurst.cs b/Projectiles/SunkenSea/PearlBurst.cs new file mode 100644 index 0000000000..1bdd00a055 --- /dev/null +++ b/Projectiles/SunkenSea/PearlBurst.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class PearlBurst : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Pearl Burst"); + Main.projFrames[projectile.type] = 4; + } + + public override void SetDefaults() + { + projectile.width = 40; + projectile.height = 64; + projectile.hostile = true; + projectile.penetrate = -1; + projectile.alpha = 255; + projectile.timeLeft = 300; + projectile.ignoreWater = true; + projectile.tileCollide = false; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f, ((255 - projectile.alpha) * 0.5f) / 255f); + if (Main.rand.Next(5) == 0) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 92, projectile.velocity.X * 0.25f, projectile.velocity.Y * 0.25f, 0, new Color(255, 255, 255), 0.7f); + } + projectile.frameCounter++; + if (projectile.frameCounter > 3) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 3) + { + projectile.frame = 0; + } + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) - 1.57f; + projectile.alpha -= 6; + projectile.ai[1] += 1f; + if (projectile.ai[1] <= 20f) + { + projectile.velocity.X *= 0.975f; + projectile.velocity.Y *= 0.975f; + } + else if (projectile.ai[1] > 20f && projectile.ai[1] <= 39f) + { + projectile.velocity.X *= 1.05f; + projectile.velocity.Y *= 1.05f; + } + else if (projectile.ai[1] == 40f) + { + projectile.ai[1] = 0f; + } + projectile.localAI[0] += 1f; + if (projectile.localAI[0] == 30f) + { + projectile.localAI[0] = 0f; + for (int l = 0; l < 12; l++) + { + Vector2 vector3 = Vector2.UnitX * (float)(-(float)projectile.width) / 2f; + vector3 += -Vector2.UnitY.RotatedBy((double)((float)l * 3.14159274f / 6f), default(Vector2)) * new Vector2(8f, 16f); + vector3 = vector3.RotatedBy((double)(projectile.rotation - 1.57079637f), default(Vector2)); + int num9 = Dust.NewDust(projectile.Center, 0, 0, 92, 0f, 0f, 160, default(Color), 1f); + Main.dust[num9].scale = 1.1f; + Main.dust[num9].noGravity = true; + Main.dust[num9].position = projectile.Center + vector3; + Main.dust[num9].velocity = projectile.velocity * 0.1f; + Main.dust[num9].velocity = Vector2.Normalize(projectile.Center - projectile.velocity * 3f - Main.dust[num9].position) * 1.25f; + } + } + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(255, 255, 255); + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/PearlBurst.png b/Projectiles/SunkenSea/PearlBurst.png new file mode 100644 index 0000000000000000000000000000000000000000..075c983ece392d867e42f24ae5911b9e5a0dc566 GIT binary patch literal 1452 zcmZuxeKgZ+9RHa$LyB@ydCSqb(KX5D^@>ZVk+)3J3^DUI%$S!|+Hyp(%FWDMSLLOm zI%1*Crj#(;+icBi6e+K#EH8PvzuW!e-gD1A&vVZA`99C*e9!0eIp61d$;;DKMQOJZ z001iPZq7bnGzI`UI2;C^4(w~32LqJg=-~(ekMfn*Lbiap9NEX!38?GQ{s<=eVQxMi z0FZ_Nfb$FhSOu@nPXPc02>_q)0ARxc0L}Q4W^X(20Tz19)fw3QYu)5lT?Z?#x;s1i zQ3qyA?4#Aa)w6opYY;U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atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) - 1.57f; + projectile.alpha -= 6; + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(255, 255, 255); + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/PearlRain.png b/Projectiles/SunkenSea/PearlRain.png new file mode 100644 index 0000000000000000000000000000000000000000..075c983ece392d867e42f24ae5911b9e5a0dc566 GIT binary patch literal 1452 zcmZuxeKgZ+9RHa$LyB@ydCSqb(KX5D^@>ZVk+)3J3^DUI%$S!|+Hyp(%FWDMSLLOm zI%1*Crj#(;+icBi6e+K#EH8PvzuW!e-gD1A&vVZA`99C*e9!0eIp61d$;;DKMQOJZ z001iPZq7bnGzI`UI2;C^4(w~32LqJg=-~(ekMfn*Lbiap9NEX!38?GQ{s<=eVQxMi z0FZ_Nfb$FhSOu@nPXPc02>_q)0ARxc0L}Q4W^X(20Tz19)fw3QYu)5lT?Z?#x;s1i zQ3qyA?4#Aa)w6opYY;U@=Hnbixmm_@sNlu^Y@##N)_2AGl0Fprs6om9f-yWNKnf3a z<9qIPMsk0BZ^j6S8BrmljFx&zq%%#$OEuS|rM4EmW$A>7rBV|o_+AEein=Et@YJw< z44nPa*($iC!Yut~X|&HZ;w-i} zJ{3m3a^r zVwyA?vQDgFPxpUzqO=U0Nrm-dFuGB5ZQL#e)FO$-Z5i>Sa7lXSumkm&IZVt6vB@Ow zi6qxsUZQ7~+p$q3IJh*|d8>0%%P3Q(IF(Ehe!}UD;Dc2@k?(HkO~%8l>@9p#bsDOp zdm)5^T#iNy>`q$GPrdqmmR~jm_j0VyPXOG+%@W%33D2Bmm@fe~O*tJ_?IOC_P!`_P zTn3sYgH309hYc26jq9a9@QcRMak&Y;`Q_}yt>fA;{duT}U4JxW2e$8mVBOQ!erb7= zAG$SJ11mPcih^;bAVq6wGY44JeFmxQWc^R~~X=5s1X_}F;D6Nj!c5w>2+L~32 zo%Bkd*bN;p%+o3fN((TD-oLkld$v>CSfbyD$V6QW9htgw!`h4IcqRN$VS%{^mCjI2 z93tAUi@(kb$9fHGt44k1k8y)7R$*kJrBE{qZMCpijJoZShl@jSB&jc3hSYS$giQcu1~JV_?>asLO>w%IQPrBr%#%A2$Wv%Ii{H)oj=VNbj7~Pr zU9jxXF?<&B_9S%PY;`QU&yMX#*mVS*DHUH$Cz#4lXkm1U(3=&nV$GfkeiH_v4sxj( zOi5y_>Ztxkqz$jZGA@t-TA;HyQV;$NtFBQf@;~^HH1W=E=+ed9F#?GT2 zKbD?wu*GtwiPLGWCDewKn9Pu!6;(NJZn-Vv?2_p1y_wPhyZa;7=W0a>RJwd|ese8B zE-zou+;o^3NLt*A68<2j?XSq7(~sgOe-8J)ESOoTwk(k+Z~s!~N%kY-Zxrf1*Q;6a zw^pc>`|zD?A+M^9#lNrkUyuJ`AM0g?htwl5_{KO@WMR8Fh>xpl%6D&h?S)Wun_{Hb}|z^<>^rlaJdA0MGr-&`~FP+l9YWu4_eV+O9Ao)_b=2x=4Wc wTwURnD92i(W#%aK_qdY*0FTpE{`MFVKS^dV8jC~e*Z=?k07*qoM6N<$f?)bxVE_OC literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/PendantProjectile2.cs b/Projectiles/SunkenSea/PendantProjectile2.cs new file mode 100644 index 0000000000..5490451b87 --- /dev/null +++ b/Projectiles/SunkenSea/PendantProjectile2.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class PendantProjectile2 : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Prism Shard"); + } + + public override void SetDefaults() + { + projectile.width = 10; + projectile.height = 16; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.timeLeft = 600; + projectile.penetrate = 1; + projectile.magic = true; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f, ((255 - projectile.alpha) * 0.35f) / 255f); + projectile.rotation += projectile.velocity.X * 1.25f; + for (int num457 = 0; num457 < 5; num457++) + { + int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 187, 0f, 0f, 100, default(Color), 0.6f); + Main.dust[num458].noGravity = true; + Main.dust[num458].velocity *= 0.5f; + Main.dust[num458].velocity += projectile.velocity * 0.1f; + } + return; + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/PendantProjectile2.png b/Projectiles/SunkenSea/PendantProjectile2.png new file mode 100644 index 0000000000000000000000000000000000000000..6a547a588474205c0e48c848a9001591aae78129 GIT binary patch literal 256 zcmV+b0ssDqP)vE5(S75EmdWKqPx`JC?4%MhNz{sVuZHh@}#J5NyN{NgzCn z_X6I|dzzUu#o=dW!diB!QsIx9+dBb%KHkBKe`>YfXo2}`3fgDqV07CrV0~jVq$SR0 z(*m}355P&UtalGDV6vDbGA^6i(H{7Gszv_0Vogt6R7{=Ai*j&PmXUrUW4+M|kiQM1 z%RFA+fb6iFzQ<@V9tzDb7!6vw(XgO}5U|Vzh>%7^Z^OpQI}u4ENG>3yRT@F!Pirty#8y&; zwV6ZMQ8uu%Uo{7I=9wL4jzT9{cmkkMy9Z$NzVdXfbPd31^9DeSkhu{lkNhF|%zzjx76FxUao}_JiCW5dU7zvu*7%W=;uvar zY(uo)o_3?4T-I zLbP_(fU$hEEM*K?mLrb)dtlZ=S#Qo}Tn$*V6nn8&_gYrVyjkPffvx3~+pEP+G)}JL z*@4lcRL$7wggKGit8*Ds;8d+yr_!{Q8%zE37(HD6oePtPwaDe%t2HJp0_=3ceXG5l ZzGqsbx~L`^YybcN07*qoM6N<$f&lHPlq>)M literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/Prismalline.cs b/Projectiles/SunkenSea/Prismalline.cs new file mode 100644 index 0000000000..fd1525c2fe --- /dev/null +++ b/Projectiles/SunkenSea/Prismalline.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class Prismalline : ModProjectile + { + public bool hitEnemy = false; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Prismalline"); + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.friendly = true; + projectile.penetrate = 2; + projectile.aiStyle = 113; + projectile.timeLeft = 180; + aiType = 598; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if (projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + projectile.ai[1] += 1f; + if (projectile.ai[1] == 40f) + { + int numProj = 4; + int numSpecProj = 0; + float rotation = MathHelper.ToRadians(50); + if (projectile.owner == Main.myPlayer) + { + for (int i = 0; i < numProj + 1; i++) + { + Vector2 speed = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51)); + while (speed.X == 0f && speed.Y == 0f) + { + speed = new Vector2((float)Main.rand.Next(-50, 51), (float)Main.rand.Next(-50, 51)); + } + speed.Normalize(); + speed *= ((float)Main.rand.Next(30, 61) * 0.1f) * 2f; + if (numSpecProj < 2 && !hitEnemy) + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, mod.ProjectileType("Prismalline3"), (int)((double)projectile.damage * 1.25), projectile.knockBack, projectile.owner, 0f, 0f); + ++numSpecProj; + } + else + { + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, speed.X, speed.Y, mod.ProjectileType("Prismalline2"), (int)((double)projectile.damage * 0.75), projectile.knockBack, projectile.owner, 0f, 0f); + } + } + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + hitEnemy = true; + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/Prismalline.png b/Projectiles/SunkenSea/Prismalline.png new file mode 100644 index 0000000000000000000000000000000000000000..91fbee01444c234352f3f1949b3acbb4dce3c280 GIT binary patch literal 1035 zcmV+m1oZofP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1E5JnK~!i%?U+kQ zR8bhmXUs=hnr|A7#zu0~FqIxe(}M_#c2Zc;BCH@<7zB}vibTjoh0vl!6pFM6L@03+ z3N4BR!5$Wxk4POs&G$TXEXnNjKl2yn;598HoIC%`@18sN-nsn0?|kPw*BEIzIBQsh z(za(9f3fp*8^-Rg=ivWRke4e?#9X2@M(bS;M5u6V=uA#ZAl3!Ge6Z_BY0;&5~9)O4Qwt&6utH4)P)!?2J`C#?! z5>P1M_(Ga<{Bp&0oS>s^?H@pjj@Q++f*I*sK{fYRM?}H#uO1i1TKe0FtX#*p9WTUz zsLMXiZ?f4ys=J{9q~jDL@wns(_-$qij?d1@NR0RO&Rcb24I>z6$=>zedo;gRbdKXd ztcW0;XO&TN{lcB|Agc{?o!7P0J_SwYOfW9n3iABgph-9$9}|qRYt%h&MEuurFAa1) zYwvDwq}Kr_Sf{m|=gP|883Bst`)eP9R76xLn3f|W)BLg-6w;aFLJL+GEivb*L`M_Y z+58ct=rBd6qvNCTE{+ig#`<$y6|2Ol;-etNm6j`L)ukek&ZeZ8z@DA~aHww(bPSJz zMq@DEVbbZrn9`NwJ`%kLXtE@O-7T`t-|KjWF>{+aom)@<(s|0`n)V(^MMQ<;zdf!g zoz`(JF%qfSa%J^6jBtoMrnjXxK#I9c=Q#)1uba)Xdvx2o@SLPnIS2Yb%lm|U-bu@O z|94yn4za#d?KqVSFxU0tI7P>D_T_-A*ENr1 zwHY(SgRDLjdz;b5a!}P`dlp?d4vBsm4E-VNZ{BH{v#cg`EYfU|j@ezfj{Uv5!bT^= zfm}(0L&9*M=+iOQpW~F-k_{#%ONS=ha_4d=Pe!D^M(*0f!q?!LBn&)pWJ2@iA`9CXN?Uz@jD%6H@MR#$D9k4>ilB6Mg2KWC7IXb z8U6Mz7z_FQPBB7iPA{#u2Z|kn9W(ZesJhJ z#uLtA(ElA@s(u$C=B(D-Ia6^L-xLLE04egY7Ymid~^`g#BW002ovPDHLk FV1h&o_fr4> literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/Prismalline2.cs b/Projectiles/SunkenSea/Prismalline2.cs new file mode 100644 index 0000000000..e35da0d5c8 --- /dev/null +++ b/Projectiles/SunkenSea/Prismalline2.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class Prismalline2 : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Prismalline"); + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.aiStyle = 113; + projectile.timeLeft = 60; + aiType = 598; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if (projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/Prismalline2.png b/Projectiles/SunkenSea/Prismalline2.png new file mode 100644 index 0000000000000000000000000000000000000000..91fbee01444c234352f3f1949b3acbb4dce3c280 GIT binary patch literal 1035 zcmV+m1oZofP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1E5JnK~!i%?U+kQ zR8bhmXUs=hnr|A7#zu0~FqIxe(}M_#c2Zc;BCH@<7zB}vibTjoh0vl!6pFM6L@03+ z3N4BR!5$Wxk4POs&G$TXEXnNjKl2yn;598HoIC%`@18sN-nsn0?|kPw*BEIzIBQsh z(za(9f3fp*8^-Rg=ivWRke4e?#9X2@M(bS;M5u6V=uA#ZAl3!Ge6Z_BY0;&5~9)O4Qwt&6utH4)P)!?2J`C#?! z5>P1M_(Ga<{Bp&0oS>s^?H@pjj@Q++f*I*sK{fYRM?}H#uO1i1TKe0FtX#*p9WTUz zsLMXiZ?f4ys=J{9q~jDL@wns(_-$qij?d1@NR0RO&Rcb24I>z6$=>zedo;gRbdKXd ztcW0;XO&TN{lcB|Agc{?o!7P0J_SwYOfW9n3iABgph-9$9}|qRYt%h&MEuurFAa1) zYwvDwq}Kr_Sf{m|=gP|883Bst`)eP9R76xLn3f|W)BLg-6w;aFLJL+GEivb*L`M_Y z+58ct=rBd6qvNCTE{+ig#`<$y6|2Ol;-etNm6j`L)ukek&ZeZ8z@DA~aHww(bPSJz zMq@DEVbbZrn9`NwJ`%kLXtE@O-7T`t-|KjWF>{+aom)@<(s|0`n)V(^MMQ<;zdf!g zoz`(JF%qfSa%J^6jBtoMrnjXxK#I9c=Q#)1uba)Xdvx2o@SLPnIS2Yb%lm|U-bu@O z|94yn4za#d?KqVSFxU0tI7P>D_T_-A*ENr1 zwHY(SgRDLjdz;b5a!}P`dlp?d4vBsm4E-VNZ{BH{v#cg`EYfU|j@ezfj{Uv5!bT^= zfm}(0L&9*M=+iOQpW~F-k_{#%ONS=ha_4d=Pe!D^M(*0f!q?!LBn&)pWJ2@iA`9CXN?Uz@jD%6H@MR#$D9k4>ilB6Mg2KWC7IXb z8U6Mz7z_FQPBB7iPA{#u2Z|kn9W(ZesJhJ z#uLtA(ElA@s(u$C=B(D-Ia6^L-xLLE04egY7Ymid~^`g#BW002ovPDHLk FV1h&o_fr4> literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/Prismalline3.cs b/Projectiles/SunkenSea/Prismalline3.cs new file mode 100644 index 0000000000..a9735c927a --- /dev/null +++ b/Projectiles/SunkenSea/Prismalline3.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class Prismalline3 : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Prismalline"); + } + + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.timeLeft = 180; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 2.355f; + if (projectile.spriteDirection == -1) + { + projectile.rotation -= 1.57f; + } + float centerX = projectile.Center.X; + float centerY = projectile.Center.Y; + float num474 = 300f; + bool homeIn = false; + for (int num475 = 0; num475 < 200; num475++) + { + if (Main.npc[num475].CanBeChasedBy(projectile, false) && Collision.CanHit(projectile.Center, 1, 1, Main.npc[num475].Center, 1, 1)) + { + float num476 = Main.npc[num475].position.X + (float)(Main.npc[num475].width / 2); + float num477 = Main.npc[num475].position.Y + (float)(Main.npc[num475].height / 2); + float num478 = Math.Abs(projectile.position.X + (float)(projectile.width / 2) - num476) + Math.Abs(projectile.position.Y + (float)(projectile.height / 2) - num477); + if (num478 < num474) + { + num474 = num478; + centerX = num476; + centerY = num477; + homeIn = true; + } + } + } + if (homeIn) + { + float num483 = 25f; + Vector2 vector35 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num484 = centerX - vector35.X; + float num485 = centerY - vector35.Y; + float num486 = (float)Math.Sqrt((double)(num484 * num484 + num485 * num485)); + num486 = num483 / num486; + num484 *= num486; + num485 *= num486; + projectile.velocity.X = (projectile.velocity.X * 20f + num484) / 21f; + projectile.velocity.Y = (projectile.velocity.Y * 20f + num485) / 21f; + return; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 154, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f); + } + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/Prismalline3.png b/Projectiles/SunkenSea/Prismalline3.png new file mode 100644 index 0000000000000000000000000000000000000000..91fbee01444c234352f3f1949b3acbb4dce3c280 GIT binary patch literal 1035 zcmV+m1oZofP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1E5JnK~!i%?U+kQ zR8bhmXUs=hnr|A7#zu0~FqIxe(}M_#c2Zc;BCH@<7zB}vibTjoh0vl!6pFM6L@03+ z3N4BR!5$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les/SunkenSea/SeafoamBomb.cs @@ -0,0 +1,76 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class SeafoamBomb : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Seafoam Bomb"); + } + + public override void SetDefaults() + { + projectile.width = 14; + projectile.height = 20; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.timeLeft = 240; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.rotation += projectile.velocity.X * 0.1f; + projectile.velocity.Y = projectile.velocity.Y + 0.15f; + projectile.velocity.X = projectile.velocity.X * 0.99f; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, mod.ProjectileType("SeafoamBubble"), (int)((double)projectile.damage * 0.5), 0f, projectile.owner, 0f, 0f); + for (int num625 = 0; num625 < 3; num625++) + { + float scaleFactor10 = 0.33f; + if (num625 == 1) + { + scaleFactor10 = 0.66f; + } + if (num625 == 2) + { + scaleFactor10 = 1f; + } + int num626 = Gore.NewGore(new Vector2(projectile.position.X + (float)(projectile.width / 2) - 24f, projectile.position.Y + (float)(projectile.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[num626].velocity *= scaleFactor10; + Gore expr_13AB6_cp_0 = Main.gore[num626]; + expr_13AB6_cp_0.velocity.X = expr_13AB6_cp_0.velocity.X + 1f; + Gore expr_13AD6_cp_0 = Main.gore[num626]; + expr_13AD6_cp_0.velocity.Y = expr_13AD6_cp_0.velocity.Y + 1f; + num626 = Gore.NewGore(new Vector2(projectile.position.X + (float)(projectile.width / 2) - 24f, projectile.position.Y + (float)(projectile.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[num626].velocity *= scaleFactor10; + Gore expr_13B79_cp_0 = Main.gore[num626]; + expr_13B79_cp_0.velocity.X = expr_13B79_cp_0.velocity.X - 1f; + Gore expr_13B99_cp_0 = Main.gore[num626]; + expr_13B99_cp_0.velocity.Y = expr_13B99_cp_0.velocity.Y + 1f; + num626 = Gore.NewGore(new Vector2(projectile.position.X + (float)(projectile.width / 2) - 24f, projectile.position.Y + (float)(projectile.height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64), 1f); + Main.gore[num626].velocity *= scaleFactor10; + Gore expr_13C3C_cp_0 = Main.gore[num626]; + expr_13C3C_cp_0.velocity.X = expr_13C3C_cp_0.velocity.X + 1f; + Gore expr_13C5C_cp_0 = Main.gore[num626]; + expr_13C5C_cp_0.velocity.Y = expr_13C5C_cp_0.velocity.Y - 1f; + } + projectile.width = 128; + projectile.height = 128; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + projectile.Damage(); + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/SeafoamBomb.png b/Projectiles/SunkenSea/SeafoamBomb.png new file mode 100644 index 0000000000000000000000000000000000000000..128c4f76bb44eb85ae210eca434ff6b9a99904c5 GIT binary patch literal 339 zcmV-Z0j&OsP)oy!6)b~T$f1DCO0CuDlQ44A>A&T zCAVoYGr@?f#kuw5&E10Fl^lbkl~*ZtPArf5&-cs zYlu??z)Md69G#r`5rs{vxw_lR-aY`bECDErSOI+J0^vurr0i}DfYofQHWg+r4*&?? zKJX$2>!k8|0|1#k0Fah00Ejzn0NxGR%cDa|@_hip<10;k8tRT-?*Leg7JkIP&9R=s z(`%=|>d9e63!`XDL_0lch5K7ahrV;s>mBuPcx)?xf|=gZcq)DA!k>=zMy0T&U6ni9 lUHX}B+*RAzYBt7;_zN4+R-LcALOuWh002ovPDHLkV1l21j(z|D literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/SeafoamBubble.cs b/Projectiles/SunkenSea/SeafoamBubble.cs new file mode 100644 index 0000000000..75c086c4e9 --- /dev/null +++ b/Projectiles/SunkenSea/SeafoamBubble.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class SeafoamBubble : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Seafoam Bubble"); + } + + public override void SetDefaults() + { + projectile.width = 28; + projectile.height = 28; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.timeLeft = 180; + projectile.tileCollide = false; + projectile.alpha = 255; + projectile.scale = 1f; + projectile.localNPCHitCooldown = 30; + projectile.GetGlobalProjectile(mod).rogue = true; + } + + public override void AI() + { + projectile.ai[0] += 1f; + if(projectile.alpha < 50) + { + projectile.alpha = 50; + } + else if(projectile.alpha > 50) + { + projectile.alpha -= 10; + } + projectile.scale += 0.002f; + if( projectile.ai[0] % 60 == 0) + { + projectile.damage *= 2; + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item54, projectile.position); + projectile.position = projectile.Center; + projectile.width = (projectile.height = 60); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + int num3; + for (int num246 = 0; num246 < 25; num246 = num3 + 1) + { + int num247 = Dust.NewDust(projectile.Center, projectile.width, projectile.height, 154, 0f, 0f, 0, default(Color), 1f); + Main.dust[num247].position = (Main.dust[num247].position + projectile.position) / 2f; + Main.dust[num247].velocity = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + Main.dust[num247].velocity.Normalize(); + Dust dust = Main.dust[num247]; + dust.velocity *= (float)Main.rand.Next(1, 30) * 0.1f; + Main.dust[num247].alpha = projectile.alpha; + num3 = num246; + } + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/SeafoamBubble.png b/Projectiles/SunkenSea/SeafoamBubble.png new file mode 100644 index 0000000000000000000000000000000000000000..e3e51784bab6312d883761eeb8cc7c85954737a6 GIT binary patch literal 390 zcmV;10eSw3P)_YSp~tym$0?G($*I_uDa?v^911zENqm3AhwpGu;E+C zWG6{A>otF7{|WbhnZ4{~ZsOi&1A_4WBF8}jiExUkYA?TaMQ<=w4sJ-PVl-14(P8fcNB!h(H)c7bq zwVXXO$4Ao_kr$mHzs%?ZOUB>~E=r9Lfh{G~<=5&b+dYV`jQ kk_eT=tfLwcK59<*2UEUwmL^4aApigX07*qoM6N<$f;9-bJOBUy literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/SeashineSwordProj.cs b/Projectiles/SunkenSea/SeashineSwordProj.cs new file mode 100644 index 0000000000..afb5cc2a31 --- /dev/null +++ b/Projectiles/SunkenSea/SeashineSwordProj.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Graphics.Shaders; +using Terraria.GameContent.Achievements; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Projectiles.SunkenSea +{ + class SeashineSwordProj : ModProjectile + { + public override void SetDefaults() + { + projectile.width = 20; + projectile.height = 20; + projectile.aiStyle = 27; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.tileCollide = true; + projectile.melee = true; + } + + public override Color? GetAlpha(Color lightColor) + { + return new Color(127, 255, 253); + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f); + if (Main.rand.Next(2) == 0) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 187, projectile.velocity.X * 0.25f, projectile.velocity.Y * 0.25f, 0, new Color(255, 255, 255), 1.2f); + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item10, projectile.position); + for (int k = 0; k < 5; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 187, projectile.oldVelocity.X, projectile.oldVelocity.Y, 0, new Color(255, 255, 255), 1.5f); + } + } + } +} diff --git a/Projectiles/SunkenSea/SeashineSwordProj.png b/Projectiles/SunkenSea/SeashineSwordProj.png new file mode 100644 index 0000000000000000000000000000000000000000..6cf9a2366710299bd5e33a94094108364f39a44a GIT binary patch literal 455 zcmV;&0XY7NP)pF7<5HgbW?9;ba!ELWdLwtX>N2bZe?^J zG%hhNHDpIvQUCw}MM*?KR9Hvt)m!H1oZ!cWgv?IsrCOHh{}Tbux9{Iw>c1P4koA-=sW`e}bz@3q6^0KmgQvF5=FYi`miMAI#TUuyY2M0i5T15x-u7%7Kx<79b$~)?CE( zli=3EGGN*IK!B=!*dwl=%7PJqy!baj){nS;5^Pa9und%Ib1g?)KM5`amV+~pr^@H% zBc{KWP@~I%<%R6$02n(r7jgY0xD1#;Po?G}?;V(e@!v)0_7 xm4nKG`Ga?HU@w&i%Z~PbIt4X4+B<0&z5&A2t@WUJ1sMPU002ovPDHLkV1nSMzn%a9 literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/SerpentineBody.cs b/Projectiles/SunkenSea/SerpentineBody.cs new file mode 100644 index 0000000000..91d7abfdcd --- /dev/null +++ b/Projectiles/SunkenSea/SerpentineBody.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class SerpentineBody : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Serpentine"); + } + + public override void SetDefaults() + { + projectile.width = 14; + projectile.height = 16; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.netImportant = true; + projectile.tileCollide = false; + projectile.alpha = 255; + projectile.penetrate = -1; + projectile.magic = true; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 20; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.55f) / 255f, ((255 - projectile.alpha) * 0.55f) / 255f); + int num1051 = 10; + Vector2 value68 = Vector2.Zero; + float num1064 = 0f; + float scaleFactor17 = 0f; + float scaleFactor18 = 1f; + if (projectile.ai[1] == 1f) + { + projectile.ai[1] = 0f; + projectile.netUpdate = true; + } + int chase = (int)projectile.ai[0]; + if (chase >= 0 && Main.projectile[chase].active) + { + value68 = Main.projectile[chase].Center; + Vector2 arg_2DE6A_0 = Main.projectile[chase].velocity; + num1064 = Main.projectile[chase].rotation; + scaleFactor18 = MathHelper.Clamp(Main.projectile[chase].scale, 0f, 50f); + scaleFactor17 = 16f; + Main.projectile[chase].localAI[0] = projectile.localAI[0] + 1f; + } + else + { + for (int k = 0; k < 8; k++) + { + int num114 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 68, 0f, 0f, 100, default(Color), 1.25f); + Dust dust = Main.dust[num114]; + dust.velocity *= 0.3f; + Main.dust[num114].position.X = projectile.position.X + (float)(projectile.width / 2) + 4f + (float)Main.rand.Next(-4, 5); + Main.dust[num114].position.Y = projectile.position.Y + (float)(projectile.height / 2) + (float)Main.rand.Next(-4, 5); + Main.dust[num114].noGravity = true; + } + projectile.active = false; + projectile.Kill(); + return; + } + if (projectile.alpha > 0) + { + projectile.alpha -= 40; + } + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + projectile.velocity = Vector2.Zero; + Vector2 vector134 = value68 - projectile.Center; + if (num1064 != projectile.rotation) + { + float num1068 = MathHelper.WrapAngle(num1064 - projectile.rotation); + vector134 = vector134.RotatedBy((double)(num1068 * 0.1f), default(Vector2)); + } + projectile.rotation = vector134.ToRotation() + 1.57079637f; + projectile.position = projectile.Center; + projectile.scale = scaleFactor18; + projectile.width = (projectile.height = (int)((float)num1051 * projectile.scale)); + projectile.Center = projectile.position; + if (vector134 != Vector2.Zero) + { + projectile.Center = value68 - Vector2.Normalize(vector134) * scaleFactor17 * scaleFactor18; + } + projectile.spriteDirection = ((vector134.X > 0f) ? 1 : -1); + return; + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/SerpentineBody.png b/Projectiles/SunkenSea/SerpentineBody.png new file mode 100644 index 0000000000000000000000000000000000000000..0611fac64d4da454441c93b7e507edcc6a3c5fb4 GIT binary patch literal 183 zcmeAS@N?(olHy`uVBq!ia0vp^d_XL~!3HGNrubO_sX9*=#}Etu;RuP^-N5KdQ#RzA~dFuCK~V}UCjaRMW4BEGBqzT#BlO^;1( hUBZ@U7?L)NGK4nve!XUX{uR(A44$rjF6*2UngH{!MwkEq literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/SerpentineHead.cs b/Projectiles/SunkenSea/SerpentineHead.cs new file mode 100644 index 0000000000..0efb545a7d --- /dev/null +++ b/Projectiles/SunkenSea/SerpentineHead.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class SerpentineHead : ModProjectile + { + + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Serpentine"); + } + + public override void SetDefaults() + { + projectile.width = 14; + projectile.height = 16; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.netImportant = true; + projectile.penetrate = 5; + projectile.timeLeft = 600; + projectile.magic = true; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 20; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.55f) / 255f, ((255 - projectile.alpha) * 0.55f) / 255f); + if (projectile.alpha > 0) + { + projectile.alpha -= 40; + } + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + int num114 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 68, 0f, 0f, 100, default(Color), 1.25f); + Dust dust = Main.dust[num114]; + dust.velocity *= 0.3f; + Main.dust[num114].position.X = projectile.position.X + (float)(projectile.width / 2) + 4f + (float)Main.rand.Next(-4, 5); + Main.dust[num114].position.Y = projectile.position.Y + (float)(projectile.height / 2) + (float)Main.rand.Next(-4, 5); + Main.dust[num114].noGravity = true; + projectile.rotation = projectile.velocity.ToRotation() + 1.57079637f; + int direction = projectile.direction; + projectile.direction = (projectile.spriteDirection = ((projectile.velocity.X > 0f) ? 1 : -1)); + if (direction != projectile.direction) + { + projectile.netUpdate = true; + } + float num1061 = MathHelper.Clamp(projectile.localAI[0], 0f, 50f); + projectile.position = projectile.Center; + projectile.scale = 1f + num1061 * 0.01f; + projectile.width = (projectile.height = (int)(10 * projectile.scale)); + projectile.Center = projectile.position; + + projectile.ai[0] += 1f; + if (projectile.ai[0] >= 20f && projectile.ai[0] < 40f) + { + projectile.velocity.Y = projectile.velocity.Y + 0.3f; + } + else if (projectile.ai[0] >= 40f && projectile.ai[0] < 60f) + { + projectile.velocity.Y = projectile.velocity.Y - 0.3f; + } + else if (projectile.ai[0] >= 60f) + { + projectile.ai[0] = 0f; + } + if (Main.myPlayer == projectile.owner && projectile.ai[0] <= 0f) + { + if (Main.player[projectile.owner].channel) + { + float num115 = 18f; + Vector2 vector10 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num116 = (float)Main.mouseX + Main.screenPosition.X - vector10.X; + float num117 = (float)Main.mouseY + Main.screenPosition.Y - vector10.Y; + if (Main.player[projectile.owner].gravDir == -1f) + { + num117 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector10.Y; + } + float num118 = (float)Math.Sqrt((double)(num116 * num116 + num117 * num117)); + num118 = (float)Math.Sqrt((double)(num116 * num116 + num117 * num117)); + if (num118 > num115) + { + num118 = num115 / num118; + num116 *= num118; + num117 *= num118; + int num119 = (int)(num116 * 1000f); + int num120 = (int)(projectile.velocity.X * 1000f); + int num121 = (int)(num117 * 1000f); + int num122 = (int)(projectile.velocity.Y * 1000f); + if (num119 != num120 || num121 != num122) + { + projectile.netUpdate = true; + } + projectile.velocity.X = num116; + projectile.velocity.Y = num117; + } + else + { + int num123 = (int)(num116 * 1000f); + int num124 = (int)(projectile.velocity.X * 1000f); + int num125 = (int)(num117 * 1000f); + int num126 = (int)(projectile.velocity.Y * 1000f); + if (num123 != num124 || num125 != num126) + { + projectile.netUpdate = true; + } + projectile.velocity.X = num116; + projectile.velocity.Y = num117; + } + } + else if (projectile.ai[0] <= 0f) + { + projectile.netUpdate = true; + float num127 = 12f; + Vector2 vector11 = new Vector2(projectile.position.X + (float)projectile.width * 0.5f, projectile.position.Y + (float)projectile.height * 0.5f); + float num128 = (float)Main.mouseX + Main.screenPosition.X - vector11.X; + float num129 = (float)Main.mouseY + Main.screenPosition.Y - vector11.Y; + if (Main.player[projectile.owner].gravDir == -1f) + { + num129 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector11.Y; + } + float num130 = (float)Math.Sqrt((double)(num128 * num128 + num129 * num129)); + if (num130 == 0f || projectile.ai[0] < 0f) + { + vector11 = new Vector2(Main.player[projectile.owner].position.X + (float)(Main.player[projectile.owner].width / 2), Main.player[projectile.owner].position.Y + (float)(Main.player[projectile.owner].height / 2)); + num128 = projectile.position.X + (float)projectile.width * 0.5f - vector11.X; + num129 = projectile.position.Y + (float)projectile.height * 0.5f - vector11.Y; + num130 = (float)Math.Sqrt((double)(num128 * num128 + num129 * num129)); + } + num130 = num127 / num130; + num128 *= num130; + num129 *= num130; + projectile.velocity.X = num128; + projectile.velocity.Y = num129; + if (projectile.velocity.X == 0f && projectile.velocity.Y == 0f) + { + projectile.Kill(); + } + projectile.ai[0] = 1f; + } + } + if (projectile.velocity.X != 0f || projectile.velocity.Y != 0f) + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + } + if (projectile.velocity.Y > 16f) + { + projectile.velocity.Y = 16f; + } + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(SoundID.Item10, projectile.position); + for (int k = 0; k < 8; k++) + { + int num114 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 68, 0f, 0f, 100, default(Color), 1.25f); + Dust dust = Main.dust[num114]; + dust.velocity *= 0.3f; + Main.dust[num114].position.X = projectile.position.X + (float)(projectile.width / 2) + 4f + (float)Main.rand.Next(-4, 5); + Main.dust[num114].position.Y = projectile.position.Y + (float)(projectile.height / 2) + (float)Main.rand.Next(-4, 5); + Main.dust[num114].noGravity = true; + } + } + } +} diff --git a/Projectiles/SunkenSea/SerpentineHead.png b/Projectiles/SunkenSea/SerpentineHead.png new file mode 100644 index 0000000000000000000000000000000000000000..eadae1c9321a4295f297f5c8ec364da706dc6a4a GIT binary patch literal 174 zcmeAS@N?(olHy`uVBq!ia0vp^d_XL~!3HGNrubO_sbWtT#}Etu@{yX# z6Mso~T$@q(L*d3U^Y9sgZxk|=k4hcQ$vI%Q&#H*UM>tpcqEuqz!l{X!kIb9QCao0| z(|F<6(yHfYKWUBNGZ(?R`y(#1`AMI=#!;+v#%hNA`m+{&_D?6Q6}-FB<+jHfH-^(I YBEK%WzGxcIdInEdKbLh*2~7+P07}+ABLDyZ literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/SerpentineTail.cs b/Projectiles/SunkenSea/SerpentineTail.cs new file mode 100644 index 0000000000..934df204fa --- /dev/null +++ b/Projectiles/SunkenSea/SerpentineTail.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class SerpentineTail : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Serpentine"); + } + + public override void SetDefaults() + { + projectile.width = 14; + projectile.height = 20; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.netImportant = true; + projectile.tileCollide = false; + projectile.alpha = 255; + projectile.penetrate = -1; + projectile.magic = true; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 20; + } + + public override void AI() + { + Lighting.AddLight(projectile.Center, ((255 - projectile.alpha) * 0f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f, ((255 - projectile.alpha) * 0.25f) / 255f); + int num1051 = 10; + Vector2 value68 = Vector2.Zero; + float num1064 = 0f; + float scaleFactor17 = 0f; + float scaleFactor18 = 1f; + if (projectile.ai[1] == 1f) + { + projectile.ai[1] = 0f; + projectile.netUpdate = true; + } + int chase = (int)projectile.ai[0]; + if (chase >= 0 && Main.projectile[chase].active) + { + value68 = Main.projectile[chase].Center; + Vector2 arg_2DE6A_0 = Main.projectile[chase].velocity; + num1064 = Main.projectile[chase].rotation; + scaleFactor18 = MathHelper.Clamp(Main.projectile[chase].scale, 0f, 50f); + scaleFactor17 = 16f; + Main.projectile[chase].localAI[0] = projectile.localAI[0] + 1f; + } + else + { + for (int k = 0; k < 8; k++) + { + int num114 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 68, 0f, 0f, 100, default(Color), 1.25f); + Dust dust = Main.dust[num114]; + dust.velocity *= 0.3f; + Main.dust[num114].position.X = projectile.position.X + (float)(projectile.width / 2) + 4f + (float)Main.rand.Next(-4, 5); + Main.dust[num114].position.Y = projectile.position.Y + (float)(projectile.height / 2) + (float)Main.rand.Next(-4, 5); + Main.dust[num114].noGravity = true; + } + projectile.active = false; + projectile.Kill(); + return; + } + if (projectile.alpha > 0) + { + projectile.alpha -= 40; + } + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + projectile.velocity = Vector2.Zero; + Vector2 vector134 = value68 - projectile.Center; + if (num1064 != projectile.rotation) + { + float num1068 = MathHelper.WrapAngle(num1064 - projectile.rotation); + vector134 = vector134.RotatedBy((double)(num1068 * 0.1f), default(Vector2)); + } + projectile.rotation = vector134.ToRotation() + 1.57079637f; + projectile.position = projectile.Center; + projectile.scale = scaleFactor18; + projectile.width = (projectile.height = (int)((float)num1051 * projectile.scale)); + projectile.Center = projectile.position; + if (vector134 != Vector2.Zero) + { + projectile.Center = value68 - Vector2.Normalize(vector134) * scaleFactor17 * scaleFactor18; + } + projectile.spriteDirection = ((vector134.X > 0f) ? 1 : -1); + return; + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/SerpentineTail.png b/Projectiles/SunkenSea/SerpentineTail.png new file mode 100644 index 0000000000000000000000000000000000000000..2db39a20a580e46572f579f10c90ed6ddf1236a5 GIT binary patch literal 228 zcmV&Oa@!E{zV9U|t5#2?M=r)q95j|z#vJqx5+(xoB zHZn4U69X)IV17ck8N)`BHKL~s7#}^Cz{GLp4vICx49Glu5S(jZHeuurTuvriBf8Ux ewh@;`09uiusW%vKMgRZ+07*qoM6N<$f&c)rn^uzm literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/Shellfish.cs b/Projectiles/SunkenSea/Shellfish.cs new file mode 100644 index 0000000000..954d3b9f1c --- /dev/null +++ b/Projectiles/SunkenSea/Shellfish.cs @@ -0,0 +1,480 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class Shellfish : ModProjectile + { + private int playerStill = 0; + private bool fly = false; + private bool spawnDust = true; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Shellfish"); + Main.projFrames[projectile.type] = 2; + ProjectileID.Sets.MinionSacrificable[projectile.type] = true; + ProjectileID.Sets.MinionTargettingFeature[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.width = 28; + projectile.height = 24; + projectile.netImportant = true; + projectile.friendly = true; + projectile.minionSlots = 2; + projectile.timeLeft = 18000; + projectile.penetrate = -1; + projectile.timeLeft *= 5; + projectile.minion = true; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 5; + } + + public override bool TileCollideStyle(ref int width, ref int height, ref bool fallThrough) + { + fallThrough = false; + return true; + } + + public override void AI() + { + if (spawnDust) + { + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue = Main.player[projectile.owner].minionDamage; + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue = projectile.damage; + int num501 = 20; + for (int num502 = 0; num502 < num501; num502++) + { + int num503 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y + 16f), projectile.width, projectile.height - 16, 33, 0f, 0f, 0, default(Color), 1f); + Main.dust[num503].velocity *= 2f; + Main.dust[num503].scale *= 1.15f; + } + spawnDust = false; + } + if (Main.player[projectile.owner].minionDamage != projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) + { + int damage2 = (int)(((float)projectile.GetGlobalProjectile(mod).spawnedPlayerMinionProjectileDamageValue / + projectile.GetGlobalProjectile(mod).spawnedPlayerMinionDamageValue) * + Main.player[projectile.owner].minionDamage); + projectile.damage = damage2; + } + bool flag64 = projectile.type == mod.ProjectileType("Shellfish"); + Player player = Main.player[projectile.owner]; + CalamityPlayer modPlayer = player.GetModPlayer(mod); + player.AddBuff(mod.BuffType("Shellfish"), 3600); + if (flag64) + { + if (player.dead) + { + modPlayer.shellfish = false; + } + if (modPlayer.shellfish) + { + projectile.timeLeft = 2; + } + } + projectile.frameCounter++; + if (projectile.frameCounter > 3) + { + projectile.frame++; + projectile.frameCounter = 0; + } + if (projectile.frame > 1) + { + projectile.frame = 0; + } + if (projectile.ai[0] == 0f) + { + projectile.damage = 100; + float[] var0 = projectile.ai; + int var1 = 1; + float num73 = var0[var1]; + var0[var1] = num73 + 1f; + Vector2 vector46 = projectile.position; + if (!fly) + { + projectile.tileCollide = true; + Vector2 center2 = projectile.Center; + Vector2 vector48 = player.Center - center2; + float playerDistance = vector48.Length(); + if (projectile.velocity.Y == 0f && (projectile.velocity.X != 0f || playerDistance > 200f)) + { + switch (Main.rand.Next(1, 3)) + { + + case 1: + projectile.velocity.Y -= 5f; + break; + + case 2: + projectile.velocity.Y -= 7.5f; + break; + + case 3: + projectile.velocity.Y -= 10f; + break; + } + } + projectile.velocity.Y += 0.3f; + float num633 = 1000f; + bool chaseNPC = false; + float npcPositionX = 0f; + for (int num645 = 0; num645 < 200; num645++) + { + NPC npcTarget = Main.npc[num645]; + if (npcTarget.CanBeChasedBy(projectile, false)) + { + float num646 = Vector2.Distance(npcTarget.Center, projectile.Center); + if (((Vector2.Distance(projectile.Center, vector46) > num646 && num646 < num633) || !chaseNPC)) + { + num633 = num646; + vector46 = npcTarget.Center; + npcPositionX = npcTarget.position.X; + chaseNPC = true; + } + } + } + if (chaseNPC) + { + if (npcPositionX - projectile.position.X > 0f) + { + switch (Main.rand.Next(1, 2)) + { + + case 1: + projectile.velocity.X += 0.15f; + break; + + case 2: + projectile.velocity.X += 0.20f; + break; + } + + if (projectile.velocity.X > 8f) + { + projectile.velocity.X = 8f; + } + } + else + { + switch (Main.rand.Next(1, 2)) + { + + case 1: + projectile.velocity.X -= 0.15f; + break; + + case 2: + projectile.velocity.X -= 0.20f; + break; + } + + if (projectile.velocity.X < -8f) + { + projectile.velocity.X = -8f; + } + } + } + else + { + if (playerDistance > 800f) + { + fly = true; + projectile.velocity.X = 0f; + projectile.velocity.Y = 0f; + projectile.tileCollide = false; + } + if (playerDistance > 200f) + { + if (player.position.X - projectile.position.X > 0f) + { + switch (Main.rand.Next(1, 3)) + { + case 1: + projectile.velocity.X += 0.05f; + break; + + case 2: + projectile.velocity.X += 0.10f; + break; + + case 3: + projectile.velocity.X += 0.15f; + break; + } + + if (projectile.velocity.X > 6f) + { + projectile.velocity.X = 6f; + } + } + else + { + switch (Main.rand.Next(1, 3)) + { + case 1: + projectile.velocity.X -= 0.05f; + break; + + case 2: + projectile.velocity.X -= 0.10f; + break; + + case 3: + projectile.velocity.X -= 0.15f; + break; + } + + if (projectile.velocity.X < -6f) + { + projectile.velocity.X = -6f; + } + } + } + if (playerDistance < 200f) + { + if (projectile.velocity.X != 0f) + { + if (projectile.velocity.X > 0.5f) + { + switch (Main.rand.Next(1, 3)) + { + case 1: + projectile.velocity.X -= 0.05f; + break; + + case 2: + projectile.velocity.X -= 0.10f; + break; + + case 3: + projectile.velocity.X -= 0.15f; + break; + } + } + else if (projectile.velocity.X < -0.5f) + { + switch (Main.rand.Next(1, 3)) + { + case 1: + projectile.velocity.X += 0.05f; + break; + + case 2: + projectile.velocity.X += 0.10f; + break; + + case 3: + projectile.velocity.X += 0.15f; + break; + } + } + else if (projectile.velocity.X < 0.5f && projectile.velocity.X > -0.5f) + { + projectile.velocity.X = 0f; + } + } + } + } + } + else if (fly) + { + Vector2 center2 = projectile.Center; + Vector2 vector48 = player.Center - center2 + new Vector2(0f, 0f); + float playerDistance = vector48.Length(); + vector48.Normalize(); + vector48 *= 14f; + projectile.velocity = (projectile.velocity * 40f + vector48) / 41f; + + projectile.rotation = projectile.velocity.X * 0.03f; + if (playerDistance > 1500f) + { + projectile.position.X = Main.player[projectile.owner].Center.X - (float)(projectile.width / 2); + projectile.position.Y = Main.player[projectile.owner].Center.Y - (float)(projectile.height / 2); + projectile.netUpdate = true; + } + if (playerDistance < 100f) + { + if (player.velocity.Y == 0f) + { + ++playerStill; + } + else + { + playerStill = 0; + } + if (playerStill > 30 && !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) + { + fly = false; + projectile.tileCollide = true; + projectile.rotation = 0; + projectile.velocity.X *= 0.30f; + projectile.velocity.Y *= 0.30f; + } + } + } + if ((double)projectile.velocity.X > 0.25) + { + projectile.spriteDirection = -1; + } + else if ((double)projectile.velocity.X < -0.25) + { + projectile.spriteDirection = 1; + } + } + if (projectile.ai[0] == 1f) + { + projectile.rotation = 0; + projectile.tileCollide = false; + int num988 = 10; + bool flag54 = false; + bool flag55 = false; + float[] var0 = projectile.localAI; + int var1 = 0; + float num73 = var0[var1]; + var0[var1] = num73 + 1f; + if (projectile.localAI[0] % 30f == 0f) + { + flag55 = true; + } + int num989 = (int)projectile.ai[1]; + if (projectile.localAI[0] >= (float)(60000 * num988)) //tryna make it stay on there "forever" without glitching + { + flag54 = true; + } + else if (num989 < 0 || num989 >= 200) + { + flag54 = true; + } + else if (Main.npc[num989].active && !Main.npc[num989].dontTakeDamage) + { + projectile.Center = Main.npc[num989].Center - projectile.velocity * 2f; + projectile.gfxOffY = Main.npc[num989].gfxOffY; + if (flag55) + { + Main.npc[num989].HitEffect(0, 1.0); + } + } + else + { + flag54 = true; + } + if (flag54) + { + projectile.ai[0] = 0f; + projectile.velocity.X = 0f; + projectile.velocity.Y = 0f; + } + } + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + Rectangle myRect = new Rectangle((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height); + if (projectile.owner == Main.myPlayer) + { + for (int i = 0; i < 200; i++) + { + if (((Main.npc[i].active && !Main.npc[i].dontTakeDamage)) && + ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || + (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) + { + if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) + { + bool flag3; + if (Main.npc[i].type == 414) + { + Rectangle rect = Main.npc[i].getRect(); + int num5 = 8; + rect.X -= num5; + rect.Y -= num5; + rect.Width += num5 * 2; + rect.Height += num5 * 2; + flag3 = projectile.Colliding(myRect, rect); + } + else + { + flag3 = projectile.Colliding(myRect, Main.npc[i].getRect()); + } + if (flag3) + { + if (Main.npc[i].reflectingProjectiles && projectile.CanReflect()) + { + Main.npc[i].ReflectProjectile(projectile.whoAmI); + return; + } + projectile.ai[0] = 1f; + projectile.ai[1] = (float)i; + projectile.velocity = (Main.npc[i].Center - projectile.Center) * 0.75f; + projectile.netUpdate = true; + projectile.StatusNPC(i); + projectile.damage = 0; + int num28 = 10; + Point[] array2 = new Point[num28]; + int num29 = 0; + for (int l = 0; l < 1000; l++) + { + if (l != projectile.whoAmI && Main.projectile[l].active && Main.projectile[l].owner == Main.myPlayer && Main.projectile[l].type == projectile.type && Main.projectile[l].ai[0] == 1f && Main.projectile[l].ai[1] == (float)i) + { + array2[num29++] = new Point(l, Main.projectile[l].timeLeft); + if (num29 >= array2.Length) + { + break; + } + } + } + if (num29 >= array2.Length) + { + int num30 = 0; + for (int m = 1; m < array2.Length; m++) + { + if (array2[m].Y < array2[num30].Y) + { + num30 = m; + } + } + Main.projectile[array2[num30].X].Kill(); + } + } + } + } + } + } + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + if (targetHitbox.Width > 8 && targetHitbox.Height > 8) + { + targetHitbox.Inflate(-targetHitbox.Width / 8, -targetHitbox.Height / 8); + } + return null; + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + if (projectile.penetrate == 0) + { + projectile.Kill(); + } + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + target.buffImmune[mod.BuffType("ShellfishEating")] = false; + if (target.type == mod.NPCType("CeaselessVoid") || target.type == mod.NPCType("EidolonWyrmHeadHuge")) + { + target.buffImmune[mod.BuffType("ShellfishEating")] = true; + } + target.AddBuff(mod.BuffType("ShellfishEating"), 600000); + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/Shellfish.png b/Projectiles/SunkenSea/Shellfish.png new file mode 100644 index 0000000000000000000000000000000000000000..59218cfb99ce2943fe536f6beeaa1e74049ea187 GIT binary patch literal 720 zcmV;>0x$iEP)hDgh-TqAM#S zYz)pJVM)jzQoWzhHEG9Fx5(_Jwz{i_-`CYW-BTj86cNTvG~M{kp?hBO>ZyjrCuB8FTs!MTc30F^5mog=y4!!Q&m))d2_2RQq^!=# z>;hfK+Ks;3hjw)m%qqoCPlyso@yTtwb6%SuvIN9Kf{#tN4^a@ZmN*ngJ0$qlMqi~? zK<(EvP|ra883^9mxCu-)2A(SWuB>{qc!NbG`kSUi2wArLK*e!#bJwva{c!c6#z9_1 zoQ@DOdwa7)mY5vTo_}*U@vYvo((E0@MkhRpLTmd^9&6LE;c`TOvpw$GSKVz4e{6Ky zn;He?B6{Doq|pgW^K5fTPV9b!jJpl~-kCd0hFZo$8lA9|LzIvM!; za??JQEzsoI^n_J8v_#~vGy|irFjj4m_jJ{!BMgyc=UlGZ9khBW5fS(0OHLu?&10j} z5n3heyAT=Q7>t9=u1@wL)t&T&oO>v12C5URN=}z%*RKt*A6vPrRB=wGBW&e8(xH|U zpHqWQ+80e#LtZ@6kljFihVjt}f1eh72lB-$rka65>NF79FJo$LLaqL5gXb+LmpPmpUkm84I6_FhmozM#S|NKLq$thkA9c~{00000 CAzRr1 literal 0 HcmV?d00001 diff --git a/Projectiles/SunkenSea/WhirlpoolProjectile.cs b/Projectiles/SunkenSea/WhirlpoolProjectile.cs new file mode 100644 index 0000000000..6bb2ed6161 --- /dev/null +++ b/Projectiles/SunkenSea/WhirlpoolProjectile.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.SunkenSea +{ + public class WhirlpoolProjectile : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Riptide"); + } + + public override void SetDefaults() + { + projectile.width = 16; + projectile.height = 16; + projectile.scale = 0.75f; + projectile.friendly = true; + projectile.alpha = 150; + projectile.penetrate = -1; + projectile.timeLeft = 99; + projectile.melee = true; + aiType = ProjectileID.Amarok; + projectile.CloneDefaults(ProjectileID.CorruptYoyo); + } + + public override void AI() + { + if (Main.rand.Next(1, 51) == 1) + { + switch (Main.rand.Next(1, 9)) + { + case 1: + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0, -10, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, 1.2f/*X Increment*/, 0.2f/*Y Increment*/); + break; + case 2: + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 5, -5, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, 0.7f/*X Increment*/, 0.7f/*Y Increment*/); + break; + case 3: + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 10, 0, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, 0.2f/*X Increment*/, 1.2f/*Y Increment*/); + break; + case 4: + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 5, 5, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, -0.7f/*X Increment*/, 0.7f/*Y Increment*/); + break; + case 5: + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -0, 10, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, -1.2f/*X Increment*/, -0.2f/*Y Increment*/); + break; + case 6: + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -5, 5, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, -0.7f/*X Increment*/, -0.7f/*Y Increment*/); + break; + case 7: + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -10, -0, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, -0.2f/*X Increment*/, -1.2f/*Y Increment*/); + break; + case 8: + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, -10, -10, mod.ProjectileType("AquaStream"), 4, 0.0f, projectile.owner, 0.7f/*X Increment*/, -0.7f/*Y Increment*/); + break; + } + } + } + } +} \ No newline at end of file diff --git a/Projectiles/SunkenSea/WhirlpoolProjectile.png b/Projectiles/SunkenSea/WhirlpoolProjectile.png new file mode 100644 index 0000000000000000000000000000000000000000..97b8560044a8a2a6e164d07723650311a46b7b7a GIT binary patch literal 292 zcmV+<0o(qGP)LF^ZEo%6wpIocS-BE+;SVtbqDLqhL($ zAHnTKZ}gpHa)NU5;%+MtYz)Eq*%cVR-v~YhlF143CO>nYoOWwq?{FWS92|lEOSiB= zbp&N~t~;Q;eF|z@Yrp!cBgo&mm)&}Ey%`p=+CB~>ud@{sL`(CV_&JIF#z(>U{1EEr q4SU6J^+PId%8G=Se!mOS&^H`QJ{6d=)YACt!_H`UqNm1jUKki348VKy*;&y z*KD1#dTr9p6<2Pjt@@J}uz6PKGrnMkeRmjkyyj(4E*7v@zhoPesG-=I+BAkaTbSRR zWp0=-v&PX+c8rHv(WnkXSpuqo+Tepqj%+}jmvsErsZ`3WYe13py z-L0MWnlpr_IR$1d2|qY##UI@tEwv?Tlb%cNb=U7}@qKiE{YUm2&TjWsq1K>W*BH#350ZL2sG`K!kkfyH3}g#!|#nSr^9MPN(i+~vV^X+%Dl?p`qw zOc$p&fN7##NVb9KVFC+_-kA^=z`&ZB`@qbT`!|AVSeT**5hKkE{1fX7wzrSA!7^WZQa(FtVnt?Eb%pLu~mYFFigXyh1w}9!mDdAu`=phTlg?Axg26O4XXScw7 zSgbSB%s^PIp@#`f9Ohz}i(ok>|HxUe7M8`E!8F{3R5uXjGV~k(3)_%%Czuj24a>_Y zg2*nUnt|vxz_KDNp|ed{1XcnIvqw82=@FLhU_OGGgHayR%s`lpu=0*j!AsDE^8f$< diff --git a/Projectiles/AstralFallingSand.cs b/Projectiles/Typeless/AstralFallingSand.cs similarity index 97% rename from Projectiles/AstralFallingSand.cs rename to Projectiles/Typeless/AstralFallingSand.cs index 8454230f5a..59d59bcef8 100644 --- a/Projectiles/AstralFallingSand.cs +++ b/Projectiles/Typeless/AstralFallingSand.cs @@ -9,7 +9,7 @@ using Terraria.ModLoader; using Microsoft.Xna.Framework; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class AstralFallingSand : ModProjectile { diff --git a/Projectiles/AstralFallingSand.png b/Projectiles/Typeless/AstralFallingSand.png similarity index 100% rename from Projectiles/AstralFallingSand.png rename to Projectiles/Typeless/AstralFallingSand.png diff --git a/Projectiles/AstralSpray.cs b/Projectiles/Typeless/AstralSpray.cs similarity index 98% rename from Projectiles/AstralSpray.cs rename to Projectiles/Typeless/AstralSpray.cs index 480b89861c..638c0367c8 100644 --- a/Projectiles/AstralSpray.cs +++ b/Projectiles/Typeless/AstralSpray.cs @@ -8,7 +8,7 @@ using Terraria.ModLoader; using Microsoft.Xna.Framework; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class AstralSpray : ModProjectile { diff --git a/Projectiles/AstralSpray.png b/Projectiles/Typeless/AstralSpray.png similarity index 100% rename from Projectiles/AstralSpray.png rename to Projectiles/Typeless/AstralSpray.png diff --git a/Projectiles/AstralStar.cs b/Projectiles/Typeless/AstralStar.cs similarity index 94% rename from Projectiles/AstralStar.cs rename to Projectiles/Typeless/AstralStar.cs index afe71ff767..6ec81850f3 100644 --- a/Projectiles/AstralStar.cs +++ b/Projectiles/Typeless/AstralStar.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class AstralStar : ModProjectile { @@ -28,6 +28,10 @@ namespace CalamityMod.Projectiles public override void AI() { + if (projectile.ai[0] == 2f) + { + projectile.GetGlobalProjectile(mod).rogue = true; + } int randomToSubtract = Main.rand.Next(1, 3); noTileHitCounter -= randomToSubtract; if (noTileHitCounter == 0) diff --git a/Projectiles/AstralStar.png b/Projectiles/Typeless/AstralStar.png similarity index 100% rename from Projectiles/AstralStar.png rename to Projectiles/Typeless/AstralStar.png diff --git a/Projectiles/AtaxiaOrb.cs b/Projectiles/Typeless/AtaxiaOrb.cs similarity index 96% rename from Projectiles/AtaxiaOrb.cs rename to Projectiles/Typeless/AtaxiaOrb.cs index 56695966c4..19c753cd1d 100644 --- a/Projectiles/AtaxiaOrb.cs +++ b/Projectiles/Typeless/AtaxiaOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class AtaxiaOrb : ModProjectile { diff --git a/Projectiles/AtaxiaOrb.png b/Projectiles/Typeless/AtaxiaOrb.png similarity index 100% rename from Projectiles/AtaxiaOrb.png rename to Projectiles/Typeless/AtaxiaOrb.png diff --git a/Projectiles/BallisticPoisonCloud.cs b/Projectiles/Typeless/BallisticPoisonCloud.cs similarity index 93% rename from Projectiles/BallisticPoisonCloud.cs rename to Projectiles/Typeless/BallisticPoisonCloud.cs index ea0548e280..040ff47fac 100644 --- a/Projectiles/BallisticPoisonCloud.cs +++ b/Projectiles/Typeless/BallisticPoisonCloud.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class BallisticPoisonCloud : ModProjectile { diff --git a/Projectiles/BallisticPoisonCloud.png b/Projectiles/Typeless/BallisticPoisonCloud.png similarity index 100% rename from Projectiles/BallisticPoisonCloud.png rename to Projectiles/Typeless/BallisticPoisonCloud.png diff --git a/Projectiles/BallisticPoisonCloud2.cs b/Projectiles/Typeless/BallisticPoisonCloud2.cs similarity index 93% rename from Projectiles/BallisticPoisonCloud2.cs rename to Projectiles/Typeless/BallisticPoisonCloud2.cs index 5ab24c40f7..dbedd6d497 100644 --- a/Projectiles/BallisticPoisonCloud2.cs +++ b/Projectiles/Typeless/BallisticPoisonCloud2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class BallisticPoisonCloud2 : ModProjectile { diff --git a/Projectiles/BallisticPoisonCloud2.png b/Projectiles/Typeless/BallisticPoisonCloud2.png similarity index 100% rename from Projectiles/BallisticPoisonCloud2.png rename to Projectiles/Typeless/BallisticPoisonCloud2.png diff --git a/Projectiles/BallisticPoisonCloud3.cs b/Projectiles/Typeless/BallisticPoisonCloud3.cs similarity index 93% rename from Projectiles/BallisticPoisonCloud3.cs rename to Projectiles/Typeless/BallisticPoisonCloud3.cs index 06347dcb4c..8a897c9208 100644 --- a/Projectiles/BallisticPoisonCloud3.cs +++ b/Projectiles/Typeless/BallisticPoisonCloud3.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class BallisticPoisonCloud3 : ModProjectile { diff --git a/Projectiles/BallisticPoisonCloud3.png b/Projectiles/Typeless/BallisticPoisonCloud3.png similarity index 100% rename from Projectiles/BallisticPoisonCloud3.png rename to Projectiles/Typeless/BallisticPoisonCloud3.png diff --git a/Projectiles/BloodBomb.cs b/Projectiles/Typeless/BloodBomb.cs similarity index 93% rename from Projectiles/BloodBomb.cs rename to Projectiles/Typeless/BloodBomb.cs index 0c4a275db2..0b67adcea3 100644 --- a/Projectiles/BloodBomb.cs +++ b/Projectiles/Typeless/BloodBomb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class BloodBomb : ModProjectile { @@ -22,7 +22,6 @@ namespace CalamityMod.Projectiles projectile.penetrate = 1; projectile.extraUpdates = 1; projectile.timeLeft = 600; - projectile.ranged = true; } public override void AI() diff --git a/Projectiles/BloodBomb.png b/Projectiles/Typeless/BloodBomb.png similarity index 100% rename from Projectiles/BloodBomb.png rename to Projectiles/Typeless/BloodBomb.png diff --git a/Projectiles/BloodBombExplosion.cs b/Projectiles/Typeless/BloodBombExplosion.cs similarity index 94% rename from Projectiles/BloodBombExplosion.cs rename to Projectiles/Typeless/BloodBombExplosion.cs index 8a12d93c7c..6e0f79182f 100644 --- a/Projectiles/BloodBombExplosion.cs +++ b/Projectiles/Typeless/BloodBombExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class BloodBombExplosion : ModProjectile { @@ -23,7 +23,6 @@ namespace CalamityMod.Projectiles projectile.tileCollide = false; projectile.penetrate = -1; projectile.timeLeft = 60; - projectile.ranged = true; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 2; } diff --git a/Projectiles/BloodBombExplosion.png b/Projectiles/Typeless/BloodBombExplosion.png similarity index 100% rename from Projectiles/BloodBombExplosion.png rename to Projectiles/Typeless/BloodBombExplosion.png diff --git a/Projectiles/ChaosBlaze.cs b/Projectiles/Typeless/ChaosBlaze.cs similarity index 95% rename from Projectiles/ChaosBlaze.cs rename to Projectiles/Typeless/ChaosBlaze.cs index e3cd916f01..c985becf86 100644 --- a/Projectiles/ChaosBlaze.cs +++ b/Projectiles/Typeless/ChaosBlaze.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class ChaosBlaze : ModProjectile { diff --git a/Projectiles/ChaosBlaze.png b/Projectiles/Typeless/ChaosBlaze.png similarity index 100% rename from Projectiles/ChaosBlaze.png rename to Projectiles/Typeless/ChaosBlaze.png diff --git a/Projectiles/ChaosFlare.cs b/Projectiles/Typeless/ChaosFlare.cs similarity index 95% rename from Projectiles/ChaosFlare.cs rename to Projectiles/Typeless/ChaosFlare.cs index 3bd23fe2e3..5d8032e179 100644 --- a/Projectiles/ChaosFlare.cs +++ b/Projectiles/Typeless/ChaosFlare.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class ChaosFlare : ModProjectile { @@ -22,7 +22,6 @@ namespace CalamityMod.Projectiles projectile.ignoreWater = true; projectile.timeLeft = 120; projectile.penetrate = 1; - projectile.ranged = true; projectile.extraUpdates = 1; } diff --git a/Projectiles/LunicBeam.png b/Projectiles/Typeless/ChaosFlare.png similarity index 100% rename from Projectiles/LunicBeam.png rename to Projectiles/Typeless/ChaosFlare.png diff --git a/Projectiles/ChaosFlare2.cs b/Projectiles/Typeless/ChaosFlare2.cs similarity index 95% rename from Projectiles/ChaosFlare2.cs rename to Projectiles/Typeless/ChaosFlare2.cs index e15d380641..7101d9fd54 100644 --- a/Projectiles/ChaosFlare2.cs +++ b/Projectiles/Typeless/ChaosFlare2.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class ChaosFlare2 : ModProjectile { diff --git a/Projectiles/TarraEnergy.png b/Projectiles/Typeless/ChaosFlare2.png similarity index 100% rename from Projectiles/TarraEnergy.png rename to Projectiles/Typeless/ChaosFlare2.png diff --git a/Projectiles/ChaosGeyser.cs b/Projectiles/Typeless/ChaosGeyser.cs similarity index 95% rename from Projectiles/ChaosGeyser.cs rename to Projectiles/Typeless/ChaosGeyser.cs index 490703a8c1..28c2a6b0bf 100644 --- a/Projectiles/ChaosGeyser.cs +++ b/Projectiles/Typeless/ChaosGeyser.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class ChaosGeyser : ModProjectile { diff --git a/Projectiles/ChaosGeyser.png b/Projectiles/Typeless/ChaosGeyser.png similarity index 100% rename from Projectiles/ChaosGeyser.png rename to Projectiles/Typeless/ChaosGeyser.png diff --git a/Projectiles/DarkEnergySpawn.cs b/Projectiles/Typeless/DarkEnergySpawn.cs similarity index 92% rename from Projectiles/DarkEnergySpawn.cs rename to Projectiles/Typeless/DarkEnergySpawn.cs index 13e236496b..f132466c4b 100644 --- a/Projectiles/DarkEnergySpawn.cs +++ b/Projectiles/Typeless/DarkEnergySpawn.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class DarkEnergySpawn : ModProjectile { diff --git a/Projectiles/DarkEnergySpawn.png b/Projectiles/Typeless/DarkEnergySpawn.png similarity index 100% rename from Projectiles/DarkEnergySpawn.png rename to Projectiles/Typeless/DarkEnergySpawn.png diff --git a/Projectiles/DragonDust.cs b/Projectiles/Typeless/DragonDust.cs similarity index 95% rename from Projectiles/DragonDust.cs rename to Projectiles/Typeless/DragonDust.cs index 6e1b66f440..b7bf7f3a99 100644 --- a/Projectiles/DragonDust.cs +++ b/Projectiles/Typeless/DragonDust.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class DragonDust : ModProjectile { diff --git a/Projectiles/DragonDust.png b/Projectiles/Typeless/DragonDust.png similarity index 100% rename from Projectiles/DragonDust.png rename to Projectiles/Typeless/DragonDust.png diff --git a/Projectiles/FabsolDust.cs b/Projectiles/Typeless/FabsolDust.cs similarity index 93% rename from Projectiles/FabsolDust.cs rename to Projectiles/Typeless/FabsolDust.cs index 55a500824a..f4e22d2cdd 100644 --- a/Projectiles/FabsolDust.cs +++ b/Projectiles/Typeless/FabsolDust.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class FabsolDust : ModProjectile { diff --git a/Projectiles/FabsolDust.png b/Projectiles/Typeless/FabsolDust.png similarity index 100% rename from Projectiles/FabsolDust.png rename to Projectiles/Typeless/FabsolDust.png diff --git a/Projectiles/FlareExplosion.cs b/Projectiles/Typeless/FlareExplosion.cs similarity index 94% rename from Projectiles/FlareExplosion.cs rename to Projectiles/Typeless/FlareExplosion.cs index 7ad80846d2..34e74bc141 100644 --- a/Projectiles/FlareExplosion.cs +++ b/Projectiles/Typeless/FlareExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class FlareExplosion : ModProjectile { diff --git a/Projectiles/FlareExplosion.png b/Projectiles/Typeless/FlareExplosion.png similarity index 100% rename from Projectiles/FlareExplosion.png rename to Projectiles/Typeless/FlareExplosion.png diff --git a/Projectiles/GhostlyBolt.cs b/Projectiles/Typeless/GhostlyBolt.cs similarity index 94% rename from Projectiles/GhostlyBolt.cs rename to Projectiles/Typeless/GhostlyBolt.cs index 76db60526c..1017294d77 100644 --- a/Projectiles/GhostlyBolt.cs +++ b/Projectiles/Typeless/GhostlyBolt.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class GhostlyBolt : ModProjectile { @@ -25,7 +25,6 @@ namespace CalamityMod.Projectiles projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 6; projectile.timeLeft = 900; - projectile.magic = true; projectile.ignoreWater = true; projectile.tileCollide = false; } diff --git a/Projectiles/GhostlyBolt.png b/Projectiles/Typeless/GhostlyBolt.png similarity index 100% rename from Projectiles/GhostlyBolt.png rename to Projectiles/Typeless/GhostlyBolt.png diff --git a/Projectiles/GodKiller.cs b/Projectiles/Typeless/GodKiller.cs similarity index 96% rename from Projectiles/GodKiller.cs rename to Projectiles/Typeless/GodKiller.cs index 44576381dc..a3ec92922f 100644 --- a/Projectiles/GodKiller.cs +++ b/Projectiles/Typeless/GodKiller.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class GodKiller : ModProjectile { diff --git a/Projectiles/GodKiller.png b/Projectiles/Typeless/GodKiller.png similarity index 100% rename from Projectiles/GodKiller.png rename to Projectiles/Typeless/GodKiller.png diff --git a/Projectiles/GodSlayerBlaze.cs b/Projectiles/Typeless/GodSlayerBlaze.cs similarity index 94% rename from Projectiles/GodSlayerBlaze.cs rename to Projectiles/Typeless/GodSlayerBlaze.cs index 73d3b79524..5eae590e2c 100644 --- a/Projectiles/GodSlayerBlaze.cs +++ b/Projectiles/Typeless/GodSlayerBlaze.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class GodSlayerBlaze : ModProjectile { @@ -21,7 +21,6 @@ namespace CalamityMod.Projectiles projectile.friendly = true; projectile.ignoreWater = false; projectile.tileCollide = false; - projectile.magic = true; projectile.penetrate = -1; projectile.timeLeft = 60; projectile.usesLocalNPCImmunity = true; diff --git a/Projectiles/GodSlayerBlaze.png b/Projectiles/Typeless/GodSlayerBlaze.png similarity index 100% rename from Projectiles/GodSlayerBlaze.png rename to Projectiles/Typeless/GodSlayerBlaze.png diff --git a/Projectiles/GodSlayerOrb.cs b/Projectiles/Typeless/GodSlayerOrb.cs similarity index 95% rename from Projectiles/GodSlayerOrb.cs rename to Projectiles/Typeless/GodSlayerOrb.cs index c1d14ad558..83c5c92183 100644 --- a/Projectiles/GodSlayerOrb.cs +++ b/Projectiles/Typeless/GodSlayerOrb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class GodSlayerOrb : ModProjectile { diff --git a/Projectiles/GodSlayerOrb.png b/Projectiles/Typeless/GodSlayerOrb.png similarity index 100% rename from Projectiles/GodSlayerOrb.png rename to Projectiles/Typeless/GodSlayerOrb.png diff --git a/Projectiles/GodSlayerPhantom.cs b/Projectiles/Typeless/GodSlayerPhantom.cs similarity index 96% rename from Projectiles/GodSlayerPhantom.cs rename to Projectiles/Typeless/GodSlayerPhantom.cs index 96dd53c1de..b3e5f430b9 100644 --- a/Projectiles/GodSlayerPhantom.cs +++ b/Projectiles/Typeless/GodSlayerPhantom.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class GodSlayerPhantom : ModProjectile { @@ -23,10 +23,8 @@ namespace CalamityMod.Projectiles projectile.alpha = 100; projectile.friendly = true; projectile.ignoreWater = true; - projectile.minion = true; projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 10; - projectile.minionSlots = 0f; projectile.penetrate = -1; projectile.timeLeft = 300; } diff --git a/Projectiles/GodSlayerPhantom.png b/Projectiles/Typeless/GodSlayerPhantom.png similarity index 100% rename from Projectiles/GodSlayerPhantom.png rename to Projectiles/Typeless/GodSlayerPhantom.png diff --git a/Projectiles/GodSlayerShrapnel.cs b/Projectiles/Typeless/GodSlayerShrapnel.cs similarity index 95% rename from Projectiles/GodSlayerShrapnel.cs rename to Projectiles/Typeless/GodSlayerShrapnel.cs index d8af61645c..32dcdbefda 100644 --- a/Projectiles/GodSlayerShrapnel.cs +++ b/Projectiles/Typeless/GodSlayerShrapnel.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class GodSlayerShrapnel : ModProjectile { diff --git a/Projectiles/StandingFire.png b/Projectiles/Typeless/GodSlayerShrapnel.png similarity index 100% rename from Projectiles/StandingFire.png rename to Projectiles/Typeless/GodSlayerShrapnel.png diff --git a/Projectiles/GodSlayerShrapnelRound.cs b/Projectiles/Typeless/GodSlayerShrapnelRound.cs similarity index 93% rename from Projectiles/GodSlayerShrapnelRound.cs rename to Projectiles/Typeless/GodSlayerShrapnelRound.cs index 305ac61a16..25e5fc15f4 100644 --- a/Projectiles/GodSlayerShrapnelRound.cs +++ b/Projectiles/Typeless/GodSlayerShrapnelRound.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class GodSlayerShrapnelRound : ModProjectile { @@ -22,7 +22,6 @@ namespace CalamityMod.Projectiles projectile.penetrate = 1; projectile.extraUpdates = 1; projectile.timeLeft = 300; - projectile.ranged = true; } public override void AI() diff --git a/Projectiles/Typeless/GodSlayerShrapnelRound.png b/Projectiles/Typeless/GodSlayerShrapnelRound.png new file mode 100644 index 0000000000000000000000000000000000000000..0056fc1e2479e11bd6391fc4ccd1fe54fa0d671f GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqY)RhkE)4%caKYZ?lYt_f1s;*b z3=DjSL74G){)!Z!AbW|YuPgflb|yv^-kZzH%z;9po-U3d5|@+z{QqyyY= 30f) - { - projectile.velocity.Y = projectile.velocity.Y + 0.1f; - } - if (projectile.velocity.Y > 16f) - { - projectile.velocity.Y = 16f; - } - if (Math.Abs(projectile.velocity.X) >= 8f || Math.Abs(projectile.velocity.Y) >= 8f) - { - for (int num246 = 0; num246 < 2; num246++) - { - float num247 = 0f; - float num248 = 0f; - if (num246 == 1) - { - num247 = projectile.velocity.X * 0.5f; - num248 = projectile.velocity.Y * 0.5f; - } - int num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 6, 0f, 0f, 100, default(Color), 1f); - Main.dust[num249].scale *= 2f + (float)Main.rand.Next(10) * 0.1f; - Main.dust[num249].velocity *= 0.2f; - Main.dust[num249].noGravity = true; - num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 31, 0f, 0f, 100, default(Color), 0.5f); - Main.dust[num249].fadeIn = 1f + (float)Main.rand.Next(5) * 0.1f; - Main.dust[num249].velocity *= 0.05f; - } - } - } - - public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - if (target.HitSound != SoundID.NPCHit1 && target.HitSound != SoundID.NPCHit6 && target.HitSound != SoundID.NPCHit7 && - target.HitSound != SoundID.NPCHit8 && target.HitSound != SoundID.NPCHit9 && target.HitSound != SoundID.NPCHit12 && - target.HitSound != SoundID.NPCHit13 && target.HitSound != SoundID.NPCHit14 && target.HitSound != SoundID.NPCHit18 && - target.HitSound != SoundID.NPCHit19 && target.HitSound != SoundID.NPCHit20 && target.HitSound != SoundID.NPCHit21 && - target.HitSound != SoundID.NPCHit22 && target.HitSound != SoundID.NPCHit23 && target.HitSound != SoundID.NPCHit24 && - target.HitSound != SoundID.NPCHit25 && target.HitSound != SoundID.NPCHit26 && target.HitSound != SoundID.NPCHit27 && - target.HitSound != SoundID.NPCHit28 && target.HitSound != SoundID.NPCHit29 && target.HitSound != SoundID.NPCHit31 && - target.HitSound != SoundID.NPCHit32 && target.HitSound != SoundID.NPCHit33 && target.HitSound != SoundID.NPCHit35 && - target.HitSound != SoundID.NPCHit37 && target.HitSound != SoundID.NPCHit38 && target.HitSound != SoundID.NPCHit40 && - target.HitSound != SoundID.NPCHit43 && target.HitSound != SoundID.NPCHit44 && target.HitSound != SoundID.NPCHit45 && - target.HitSound != SoundID.NPCHit46 && target.HitSound != SoundID.NPCHit47 && target.HitSound != SoundID.NPCHit48 && - target.HitSound != SoundID.NPCHit50 && target.HitSound != SoundID.NPCHit51 && target.HitSound != SoundID.NPCHit55 && - target.HitSound != SoundID.NPCHit56 && target.HitSound != SoundID.NPCHit57) - { - damage += target.lifeMax / 20; - } - if (damage > target.lifeMax / 12 && CalamityPlayer.areThereAnyDamnBosses) - damage = target.lifeMax / 12; - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62); - projectile.position = projectile.Center; - projectile.width = (projectile.height = 96); - projectile.position.X = projectile.position.X - (float)(projectile.width / 2); - projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); - for (int num193 = 0; num193 < 6; num193++) - { - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default(Color), 1.5f); - } - for (int num194 = 0; num194 < 60; num194++) - { - int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 6, 0f, 0f, 0, default(Color), 2.5f); - Main.dust[num195].noGravity = true; - Main.dust[num195].velocity *= 3f; - num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 6, 0f, 0f, 100, default(Color), 1.5f); - Main.dust[num195].velocity *= 2f; - Main.dust[num195].noGravity = true; - } - projectile.Damage(); - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Typeless +{ + public class GrenadeRound : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Grenade Round"); + } + + public override void SetDefaults() + { + projectile.width = 14; + projectile.height = 14; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.penetrate = 1; + projectile.timeLeft = 300; + } + + public override void AI() + { + projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 1.57f; + if (projectile.soundDelay == 0) + { + projectile.soundDelay = 90; + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/BazookaRocket"), (int)projectile.position.X, (int)projectile.position.Y); + } + projectile.ai[0] += 1f; + if (projectile.ai[0] >= 30f) + { + projectile.velocity.Y = projectile.velocity.Y + 0.1f; + } + if (projectile.velocity.Y > 16f) + { + projectile.velocity.Y = 16f; + } + if (Math.Abs(projectile.velocity.X) >= 8f || Math.Abs(projectile.velocity.Y) >= 8f) + { + for (int num246 = 0; num246 < 2; num246++) + { + float num247 = 0f; + float num248 = 0f; + if (num246 == 1) + { + num247 = projectile.velocity.X * 0.5f; + num248 = projectile.velocity.Y * 0.5f; + } + int num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 6, 0f, 0f, 100, default(Color), 1f); + Main.dust[num249].scale *= 2f + (float)Main.rand.Next(10) * 0.1f; + Main.dust[num249].velocity *= 0.2f; + Main.dust[num249].noGravity = true; + num249 = Dust.NewDust(new Vector2(projectile.position.X + 3f + num247, projectile.position.Y + 3f + num248) - projectile.velocity * 0.5f, projectile.width - 8, projectile.height - 8, 31, 0f, 0f, 100, default(Color), 0.5f); + Main.dust[num249].fadeIn = 1f + (float)Main.rand.Next(5) * 0.1f; + Main.dust[num249].velocity *= 0.05f; + } + } + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (target.HitSound != SoundID.NPCHit1 && target.HitSound != SoundID.NPCHit6 && target.HitSound != SoundID.NPCHit7 && + target.HitSound != SoundID.NPCHit8 && target.HitSound != SoundID.NPCHit9 && target.HitSound != SoundID.NPCHit12 && + target.HitSound != SoundID.NPCHit13 && target.HitSound != SoundID.NPCHit14 && target.HitSound != SoundID.NPCHit18 && + target.HitSound != SoundID.NPCHit19 && target.HitSound != SoundID.NPCHit20 && target.HitSound != SoundID.NPCHit21 && + target.HitSound != SoundID.NPCHit22 && target.HitSound != SoundID.NPCHit23 && target.HitSound != SoundID.NPCHit24 && + target.HitSound != SoundID.NPCHit25 && target.HitSound != SoundID.NPCHit26 && target.HitSound != SoundID.NPCHit27 && + target.HitSound != SoundID.NPCHit28 && target.HitSound != SoundID.NPCHit29 && target.HitSound != SoundID.NPCHit31 && + target.HitSound != SoundID.NPCHit32 && target.HitSound != SoundID.NPCHit33 && target.HitSound != SoundID.NPCHit35 && + target.HitSound != SoundID.NPCHit37 && target.HitSound != SoundID.NPCHit38 && target.HitSound != SoundID.NPCHit40 && + target.HitSound != SoundID.NPCHit43 && target.HitSound != SoundID.NPCHit44 && target.HitSound != SoundID.NPCHit45 && + target.HitSound != SoundID.NPCHit46 && target.HitSound != SoundID.NPCHit47 && target.HitSound != SoundID.NPCHit48 && + target.HitSound != SoundID.NPCHit50 && target.HitSound != SoundID.NPCHit51 && target.HitSound != SoundID.NPCHit55 && + target.HitSound != SoundID.NPCHit56 && target.HitSound != SoundID.NPCHit57) + { + damage += target.lifeMax / 20; //500 + 200 = 700 + (100000 / 20 = 5000) = 5700 * 2 (explosion) = 11400 = 11.4% of boss HP + } + if (damage > target.lifeMax / 12 && CalamityPlayer.areThereAnyDamnBosses) + damage = target.lifeMax / 12; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 62); + projectile.position = projectile.Center; + projectile.width = (projectile.height = 96); + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + for (int num193 = 0; num193 < 6; num193++) + { + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 31, 0f, 0f, 100, default(Color), 1.5f); + } + for (int num194 = 0; num194 < 60; num194++) + { + int num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 6, 0f, 0f, 0, default(Color), 2.5f); + Main.dust[num195].noGravity = true; + Main.dust[num195].velocity *= 3f; + num195 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 6, 0f, 0f, 100, default(Color), 1.5f); + Main.dust[num195].velocity *= 2f; + Main.dust[num195].noGravity = true; + } + projectile.Damage(); + } + } } \ No newline at end of file diff --git a/Projectiles/GrenadeRound.png b/Projectiles/Typeless/GrenadeRound.png similarity index 100% rename from Projectiles/GrenadeRound.png rename to Projectiles/Typeless/GrenadeRound.png diff --git a/Projectiles/HolyEruption.cs b/Projectiles/Typeless/HolyEruption.cs similarity index 95% rename from Projectiles/HolyEruption.cs rename to Projectiles/Typeless/HolyEruption.cs index 4781bea162..fa64265729 100644 --- a/Projectiles/HolyEruption.cs +++ b/Projectiles/Typeless/HolyEruption.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class HolyEruption : ModProjectile { diff --git a/Projectiles/HolyEruption.png b/Projectiles/Typeless/HolyEruption.png similarity index 100% rename from Projectiles/HolyEruption.png rename to Projectiles/Typeless/HolyEruption.png diff --git a/Projectiles/HolyExplosion.cs b/Projectiles/Typeless/HolyExplosion.cs similarity index 95% rename from Projectiles/HolyExplosion.cs rename to Projectiles/Typeless/HolyExplosion.cs index 38ca432d81..3f1ee675fa 100644 --- a/Projectiles/HolyExplosion.cs +++ b/Projectiles/Typeless/HolyExplosion.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class HolyExplosion : ModProjectile { diff --git a/Projectiles/HolyExplosion.png b/Projectiles/Typeless/HolyExplosion.png similarity index 100% rename from Projectiles/HolyExplosion.png rename to Projectiles/Typeless/HolyExplosion.png diff --git a/Projectiles/HolyExplosionSupreme.cs b/Projectiles/Typeless/HolyExplosionSupreme.cs similarity index 95% rename from Projectiles/HolyExplosionSupreme.cs rename to Projectiles/Typeless/HolyExplosionSupreme.cs index 9a591655dd..b3c09e4c21 100644 --- a/Projectiles/HolyExplosionSupreme.cs +++ b/Projectiles/Typeless/HolyExplosionSupreme.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class HolyExplosionSupreme : ModProjectile { diff --git a/Projectiles/HolyExplosionSupreme.png b/Projectiles/Typeless/HolyExplosionSupreme.png similarity index 100% rename from Projectiles/HolyExplosionSupreme.png rename to Projectiles/Typeless/HolyExplosionSupreme.png diff --git a/Projectiles/HolyFlameBomb.cs b/Projectiles/Typeless/HolyFlameBomb.cs similarity index 95% rename from Projectiles/HolyFlameBomb.cs rename to Projectiles/Typeless/HolyFlameBomb.cs index db3696f690..cb2d4502d0 100644 --- a/Projectiles/HolyFlameBomb.cs +++ b/Projectiles/Typeless/HolyFlameBomb.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class HolyFlameBomb : ModProjectile { diff --git a/Projectiles/HolyFlameBomb.png b/Projectiles/Typeless/HolyFlameBomb.png similarity index 100% rename from Projectiles/HolyFlameBomb.png rename to Projectiles/Typeless/HolyFlameBomb.png diff --git a/Projectiles/LunicBeam.cs b/Projectiles/Typeless/LunicBeam.cs similarity index 96% rename from Projectiles/LunicBeam.cs rename to Projectiles/Typeless/LunicBeam.cs index c72ee4ccf8..343b77dd4f 100644 --- a/Projectiles/LunicBeam.cs +++ b/Projectiles/Typeless/LunicBeam.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class LunicBeam : ModProjectile { @@ -21,7 +21,7 @@ namespace CalamityMod.Projectiles projectile.height = 8; projectile.friendly = true; projectile.ignoreWater = true; - projectile.penetrate = 2; + projectile.penetrate = 1; projectile.extraUpdates = 2; projectile.alpha = 255; } @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles } } } - if (num36 < 20f) + if (num36 < 8f) { projectile.Kill(); return; diff --git a/Projectiles/Typeless/LunicBeam.png b/Projectiles/Typeless/LunicBeam.png new file mode 100644 index 0000000000000000000000000000000000000000..0056fc1e2479e11bd6391fc4ccd1fe54fa0d671f GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqY)RhkE)4%caKYZ?lYt_f1s;*b z3=DjSL74G){)!Z!AbW|YuPgflb|yv^-kZzH%z;9po-U3d5|@+z{QqyyY target.lifeMax / 15 && CalamityPlayer.areThereAnyDamnBosses) - damage = target.lifeMax / 15; - if (crit) - { - damage = (int)((double)damage * 1.25); - knockback *= 1.25f; - } - } - } +using System; +using System.Collections.Generic; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Typeless +{ + public class MagnumRound : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Magnum Round"); + } + + public override void SetDefaults() + { + projectile.width = 4; + projectile.height = 4; + projectile.light = 0.5f; + projectile.alpha = 255; + projectile.extraUpdates = 10; + projectile.friendly = true; + projectile.ignoreWater = true; + projectile.aiStyle = 1; + aiType = 242; + projectile.penetrate = 1; + projectile.timeLeft = 600; + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (target.HitSound != SoundID.NPCHit4 && target.HitSound != SoundID.NPCHit41 && target.HitSound != SoundID.NPCHit2 && + target.HitSound != SoundID.NPCHit5 && target.HitSound != SoundID.NPCHit11 && target.HitSound != SoundID.NPCHit30 && + target.HitSound != SoundID.NPCHit34 && target.HitSound != SoundID.NPCHit36 && target.HitSound != SoundID.NPCHit42 && + target.HitSound != SoundID.NPCHit49 && target.HitSound != SoundID.NPCHit52 && target.HitSound != SoundID.NPCHit53 && + target.HitSound != SoundID.NPCHit54 && target.HitSound != null) + { + damage += target.lifeMax / 25; //400 + 80 = 480 + (100000 / 25 = 4000) = 4480, if crit = 5600 = 5.6% of boss HP + } + if (damage > target.lifeMax / 15 && CalamityPlayer.areThereAnyDamnBosses) + damage = target.lifeMax / 15; + if (crit) + { + damage = (int)((double)damage * 1.25); + knockback *= 1.25f; + } + } + } } \ No newline at end of file diff --git a/Projectiles/MagnumRound.png b/Projectiles/Typeless/MagnumRound.png similarity index 100% rename from Projectiles/MagnumRound.png rename to Projectiles/Typeless/MagnumRound.png diff --git a/Projectiles/MarkRound.cs b/Projectiles/Typeless/MarkRound.cs similarity index 96% rename from Projectiles/MarkRound.cs rename to Projectiles/Typeless/MarkRound.cs index bfcf08d05b..21df39f16b 100644 --- a/Projectiles/MarkRound.cs +++ b/Projectiles/Typeless/MarkRound.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class MarkRound : ModProjectile { diff --git a/Projectiles/MarkRound.png b/Projectiles/Typeless/MarkRound.png similarity index 100% rename from Projectiles/MarkRound.png rename to Projectiles/Typeless/MarkRound.png diff --git a/Projectiles/Nanotech.cs b/Projectiles/Typeless/Nanotech.cs similarity index 96% rename from Projectiles/Nanotech.cs rename to Projectiles/Typeless/Nanotech.cs index 44403e5d06..8c278f5913 100644 --- a/Projectiles/Nanotech.cs +++ b/Projectiles/Typeless/Nanotech.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class Nanotech : ModProjectile { diff --git a/Projectiles/Nanotech.png b/Projectiles/Typeless/Nanotech.png similarity index 100% rename from Projectiles/Nanotech.png rename to Projectiles/Typeless/Nanotech.png diff --git a/Projectiles/NebulaDust.cs b/Projectiles/Typeless/NebulaDust.cs similarity index 93% rename from Projectiles/NebulaDust.cs rename to Projectiles/Typeless/NebulaDust.cs index 665415ce7b..15181e7ca2 100644 --- a/Projectiles/NebulaDust.cs +++ b/Projectiles/Typeless/NebulaDust.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class NebulaDust : ModProjectile { diff --git a/Projectiles/NebulaDust.png b/Projectiles/Typeless/NebulaDust.png similarity index 100% rename from Projectiles/NebulaDust.png rename to Projectiles/Typeless/NebulaDust.png diff --git a/Projectiles/NebulaStar.cs b/Projectiles/Typeless/NebulaStar.cs similarity index 86% rename from Projectiles/NebulaStar.cs rename to Projectiles/Typeless/NebulaStar.cs index faee1ce63d..6c399407da 100644 --- a/Projectiles/NebulaStar.cs +++ b/Projectiles/Typeless/NebulaStar.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Generic; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class NebulaStar : ModProjectile { @@ -16,8 +17,8 @@ namespace CalamityMod.Projectiles public override void SetDefaults() { - projectile.width = 16; - projectile.height = 16; + projectile.width = 34; + projectile.height = 34; projectile.friendly = true; projectile.alpha = 255; projectile.penetrate = 1; @@ -132,10 +133,6 @@ namespace CalamityMod.Projectiles { num947 *= 1.7f; } - /*if (!Main.player[projectile.owner].sporeSac) - { - num947 += 100f; - }*/ projectile.ai[0] += num947; if (projectile.alpha > 50) { @@ -175,7 +172,6 @@ namespace CalamityMod.Projectiles if ((double)projectile.velocity.Length() > 0.2) { projectile.velocity *= 0.98f; - return; } } @@ -189,5 +185,11 @@ namespace CalamityMod.Projectiles Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value10.X, value10.Y, mod.ProjectileType("NebulaDust"), projectile.damage, 0f, projectile.owner, 0f, 0f); } } - } + + public override void PostDraw(SpriteBatch spriteBatch, Color lightColor) + { + Vector2 origin = new Vector2(17f, 17f); + spriteBatch.Draw(mod.GetTexture("Projectiles/Typeless/NebulaStarGlow"), projectile.Center - Main.screenPosition, null, Color.White, projectile.rotation, origin, projectile.scale, SpriteEffects.None, 0f); + } + } } \ No newline at end of file diff --git a/Projectiles/Typeless/NebulaStar.png b/Projectiles/Typeless/NebulaStar.png new file mode 100644 index 0000000000000000000000000000000000000000..1c2222cad4324852969a55e430438206a607b413 GIT binary patch literal 793 zcmV+!1LpjRP)>>^?2U7-}KZn`W5y=X*5 z<%J*!fdnDrP%M=aICilJc7O5g zyyE7D$l~f3&p$j^x8bMX?F5_KI>51u#T0g}T3zwHxvisu^6lb9%MFnljm#QB3LQ%u z5@>D+|J>KJ0`xBGOso6C(9J6ee0}y$P@298Mkc2#vMaYlYBUlpl32a0F@@ogzd=_^ zV*(Amq3ePDXF>n&p5Py91jW)+3R^nv0)?@O1V$#O>wYi4MB?1N*7q?o5+7|^2M(St zq_DoX9ei-^FzELd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ai; - if (player.active && player.GetModPlayer().omegaBlueSet) - projectile.timeLeft = 3; - - //tentacle head movement (homing) - Vector2 playerVel = player.position - player.oldPosition; - projectile.position += playerVel; - projectile.ai[0]++; - if (projectile.ai[0] >= 0f) - { - Vector2 home = player.Center + new Vector2(50, 0).RotatedBy(MathHelper.ToRadians(60) * projectile.ai[1]); - Vector2 distance = home - projectile.Center; - float range = distance.Length(); - distance.Normalize(); - if (projectile.ai[0] == 0f) - { - if (range > 13f) - { - projectile.ai[0] = -1f; //if in fast mode, stay fast until back in range - if (range > 1300f) - { - projectile.Kill(); - return; - } - } - else - { - if (hentai) - projectile.ai[0] = 120f;//45f + Main.rand.Next(45); - projectile.velocity.Normalize(); - projectile.velocity *= 3f + Main.rand.NextFloat(3f); - projectile.netUpdate = true; - } - } - else - { - distance /= 8f; - } - if (range > 120f) //switch to fast return mode - { - projectile.ai[0] = -1f; - projectile.netUpdate = true; - } - projectile.velocity += distance; - if (range > 30f) - projectile.velocity *= 0.96f; - - if (projectile.ai[0] > 120f) //attack nearby enemy - { - projectile.ai[0] = 10 + Main.rand.Next(10); - float maxDistance = hentai ? 900f : 600f; - int target = -1; - for (int i = 0; i < 200; i++) - { - NPC npc = Main.npc[i]; - if (npc.CanBeChasedBy(projectile)) - { - float npcDistance = projectile.Distance(npc.Center); - if (npcDistance < maxDistance) - { - maxDistance = npcDistance; - target = i; - } - } - } - if (target != -1) - { - projectile.velocity = Main.npc[target].Center - projectile.Center; - projectile.velocity.Normalize(); - projectile.velocity *= 13f; - projectile.velocity += Main.npc[target].velocity / 2f; - projectile.velocity -= playerVel / 2f; - projectile.ai[0] *= -1f; - } - projectile.netUpdate = true; - } - } - - //tentacle segment updates - segment[0] = player.Center; - for (int i = 1; i < 5; i++) - { - MoveSegment(segment[i - 1], ref segment[i], segment[i + 1]); - } - MoveSegment(segment[4], ref segment[5], projectile.Center + projectile.velocity); - - if (hentai) - { - if (projectile.ai[0] != -1f) - projectile.ai[0]++; - projectile.position += projectile.velocity; - //SMOOTH ASS DUST - Vector2 dustPos = projectile.position + projectile.velocity; - Vector2 tickVel = dustPos - projectile.oldPosition; //playerVel + projectile.velocity * 2f; - dustPos += new Vector2(projectile.width / 2, 0).RotatedBy(projectile.rotation); - dustPos.X -= 4; - dustPos.X += projectile.width / 2; - dustPos.Y -= 4; - dustPos.Y += projectile.height / 2; - const float factor = 3f; - int limit = (int)(tickVel.Length() / factor); - if (limit == 0) - { - int d = Dust.NewDust(dustPos, 0, 0, 20, 0, 0, 100, Color.Transparent, 0.9f); - Main.dust[d].noGravity = true; - Main.dust[d].noLight = true; - Main.dust[d].fadeIn = 1f; - Main.dust[d].velocity = Vector2.Zero; - } - else - { - tickVel.Normalize(); - tickVel *= factor; - for (int i = 0; i <= limit; i++) - { - int d = Dust.NewDust(dustPos, 0, 0, 20, 0, 0, 100, Color.Transparent, 0.9f); - Main.dust[d].noGravity = true; - Main.dust[d].noLight = true; - Main.dust[d].fadeIn = 1f; - Main.dust[d].position -= tickVel * i; - Main.dust[d].velocity = Vector2.Zero; - } - } - } - } - - private static void MoveSegment(Vector2 previous, ref Vector2 current, Vector2 next) - { - current = previous + next; - current /= 2; - } - - public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - if (Main.player[projectile.owner].GetModPlayer().omegaBlueHentai) - crit = true; - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - if (projectile.owner == Main.myPlayer && Main.player[Main.myPlayer].lifeSteal > 0f && target.type != NPCID.TargetDummy) - { - int healAmount = 10 * damage / projectile.damage; //should always be around max, less if enemy has defense/DR - if (healAmount > 0) - { - Main.player[Main.myPlayer].lifeSteal -= healAmount; - if (Main.player[Main.myPlayer].GetModPlayer().omegaBlueHentai) //hentai always crits, this makes it have same lifesteal delay - Main.player[Main.myPlayer].lifeSteal += healAmount / 2; - /*Main.player[Main.myPlayer].statLife += healAmount; - if (Main.player[Main.myPlayer].statLife > Main.player[Main.myPlayer].statLifeMax2) - Main.player[Main.myPlayer].statLife = Main.player[Main.myPlayer].statLifeMax2; - Main.player[Main.myPlayer].HealEffect(healAmount, false);*/ - Projectile.NewProjectile(projectile.Center, Vector2.Zero, ProjectileID.SpiritHeal, 0, 0f, projectile.owner, projectile.owner, healAmount); - } - } - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp/*.PointWrap*/, DepthStencilState.Default, RasterizerState.CullNone, null, Main.GameViewMatrix.ZoomMatrix); - - GameShaders.Armor.ApplySecondary(Main.player[projectile.owner].cBody, Main.player[projectile.owner], new DrawData?()); - projectile.rotation = (projectile.Center - segment[5]).ToRotation(); - Texture2D texture2D13 = Main.projectileTexture[projectile.type]; - Texture2D segmentSprite = mod.GetTexture("ExtraTextures/Chains/OmegaBlueTentacleSegment"); - for (int i = 0; i < 6; i++) - { - Main.spriteBatch.Draw(segmentSprite, segment[i] - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), segmentSprite.Bounds, projectile.GetAlpha(lightColor), 0f, segmentSprite.Bounds.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); - } - Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), texture2D13.Bounds, projectile.GetAlpha(lightColor), projectile.rotation, texture2D13.Bounds.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); - - Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, RasterizerState.CullCounterClockwise, null, Main.Transform); - return false; - } - } -} +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.DataStructures; +using Terraria.Graphics.Shaders; +using Terraria.ModLoader; +using System; + +namespace CalamityMod.Projectiles.Typeless +{ + public class OmegaBlueTentacle : ModProjectile + { + public bool initSegments = false; + public Vector2[] segment = new Vector2[6]; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Omega Blue Tentacle"); + } + + public override void SetDefaults() + { + projectile.width = 24; + projectile.height = 24; + projectile.timeLeft = 6; + projectile.friendly = true; + projectile.tileCollide = false; + projectile.ignoreWater = true; + projectile.penetrate = -1; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + } + + public override bool PreAI() + { + if (!initSegments) + { + initSegments = true; + for (int i = 0; i < 6; i++) + { + segment[i] = projectile.Center; + //Main.NewText("init segment " + segment[i].X.ToString() + " " + segment[i].Y.ToString()); + } + } + return true; + } + + public override void AI() + { + Player player = Main.player[projectile.owner]; + bool hentai = player.GetModPlayer().omegaBlueHentai; + if (player.active && player.GetModPlayer().omegaBlueSet) + projectile.timeLeft = 3; + + //tentacle head movement (homing) + Vector2 playerVel = player.position - player.oldPosition; + projectile.position += playerVel; + projectile.ai[0]++; + if (projectile.ai[0] >= 0f) + { + Vector2 home = player.Center + new Vector2(50, 0).RotatedBy(MathHelper.ToRadians(60) * projectile.ai[1]); + Vector2 distance = home - projectile.Center; + float range = distance.Length(); + distance.Normalize(); + if (projectile.ai[0] == 0f) + { + if (range > 13f) + { + projectile.ai[0] = -1f; //if in fast mode, stay fast until back in range + if (range > 1300f) + { + projectile.Kill(); + return; + } + } + else + { + if (hentai) + projectile.ai[0] = 120f;//45f + Main.rand.Next(45); + projectile.velocity.Normalize(); + projectile.velocity *= 3f + Main.rand.NextFloat(3f); + projectile.netUpdate = true; + } + } + else + { + distance /= 8f; + } + if (range > 120f) //switch to fast return mode + { + projectile.ai[0] = -1f; + projectile.netUpdate = true; + } + projectile.velocity += distance; + if (range > 30f) + projectile.velocity *= 0.96f; + + if (projectile.ai[0] > 120f) //attack nearby enemy + { + projectile.ai[0] = 10 + Main.rand.Next(10); + float maxDistance = hentai ? 900f : 600f; + int target = -1; + for (int i = 0; i < 200; i++) + { + NPC npc = Main.npc[i]; + if (npc.CanBeChasedBy(projectile)) + { + float npcDistance = projectile.Distance(npc.Center); + if (npcDistance < maxDistance) + { + maxDistance = npcDistance; + target = i; + } + } + } + if (target != -1) + { + projectile.velocity = Main.npc[target].Center - projectile.Center; + projectile.velocity.Normalize(); + projectile.velocity *= 13f; + projectile.velocity += Main.npc[target].velocity / 2f; + projectile.velocity -= playerVel / 2f; + projectile.ai[0] *= -1f; + } + projectile.netUpdate = true; + } + } + + //tentacle segment updates + segment[0] = player.Center; + for (int i = 1; i < 5; i++) + { + MoveSegment(segment[i - 1], ref segment[i], segment[i + 1]); + } + MoveSegment(segment[4], ref segment[5], projectile.Center + projectile.velocity); + + if (hentai) + { + if (projectile.ai[0] != -1f) + projectile.ai[0]++; + projectile.position += projectile.velocity; + //SMOOTH ASS DUST + Vector2 dustPos = projectile.position + projectile.velocity; + Vector2 tickVel = dustPos - projectile.oldPosition; //playerVel + projectile.velocity * 2f; + dustPos += new Vector2(projectile.width / 2, 0).RotatedBy(projectile.rotation); + dustPos.X -= 4; + dustPos.X += projectile.width / 2; + dustPos.Y -= 4; + dustPos.Y += projectile.height / 2; + const float factor = 3f; + int limit = (int)(tickVel.Length() / factor); + if (limit == 0) + { + int d = Dust.NewDust(dustPos, 0, 0, 20, 0, 0, 100, Color.Transparent, 0.9f); + Main.dust[d].noGravity = true; + Main.dust[d].noLight = true; + Main.dust[d].fadeIn = 1f; + Main.dust[d].velocity = Vector2.Zero; + } + else + { + tickVel.Normalize(); + tickVel *= factor; + for (int i = 0; i <= limit; i++) + { + int d = Dust.NewDust(dustPos, 0, 0, 20, 0, 0, 100, Color.Transparent, 0.9f); + Main.dust[d].noGravity = true; + Main.dust[d].noLight = true; + Main.dust[d].fadeIn = 1f; + Main.dust[d].position -= tickVel * i; + Main.dust[d].velocity = Vector2.Zero; + } + } + } + } + + private static void MoveSegment(Vector2 previous, ref Vector2 current, Vector2 next) + { + current = previous + next; + current /= 2; + } + + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (Main.player[projectile.owner].GetModPlayer().omegaBlueHentai) + crit = true; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + if (projectile.owner == Main.myPlayer && Main.player[Main.myPlayer].lifeSteal > 0f && target.type != NPCID.TargetDummy) + { + int healAmount = 10 * damage / projectile.damage; //should always be around max, less if enemy has defense/DR + if (healAmount > 0) + { + Main.player[Main.myPlayer].lifeSteal -= healAmount; + if (Main.player[Main.myPlayer].GetModPlayer().omegaBlueHentai) //hentai always crits, this makes it have same lifesteal delay + Main.player[Main.myPlayer].lifeSteal += healAmount / 2; + /*Main.player[Main.myPlayer].statLife += healAmount; + if (Main.player[Main.myPlayer].statLife > Main.player[Main.myPlayer].statLifeMax2) + Main.player[Main.myPlayer].statLife = Main.player[Main.myPlayer].statLifeMax2; + Main.player[Main.myPlayer].HealEffect(healAmount, false);*/ + Projectile.NewProjectile(projectile.Center, Vector2.Zero, ProjectileID.SpiritHeal, 0, 0f, projectile.owner, projectile.owner, healAmount); + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp/*.PointWrap*/, DepthStencilState.Default, RasterizerState.CullNone, null, Main.GameViewMatrix.ZoomMatrix); + + GameShaders.Armor.ApplySecondary(Main.player[projectile.owner].cBody, Main.player[projectile.owner], new DrawData?()); + projectile.rotation = (projectile.Center - segment[5]).ToRotation(); + Texture2D texture2D13 = Main.projectileTexture[projectile.type]; + Texture2D segmentSprite = mod.GetTexture("ExtraTextures/Chains/OmegaBlueTentacleSegment"); + for (int i = 0; i < 6; i++) + { + Main.spriteBatch.Draw(segmentSprite, segment[i] - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), segmentSprite.Bounds, projectile.GetAlpha(lightColor), 0f, segmentSprite.Bounds.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + } + Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), texture2D13.Bounds, projectile.GetAlpha(lightColor), projectile.rotation, texture2D13.Bounds.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, RasterizerState.CullCounterClockwise, null, Main.Transform); + return false; + } + } +} diff --git a/Projectiles/OmegaBlueTentacle.png b/Projectiles/Typeless/OmegaBlueTentacle.png similarity index 100% rename from Projectiles/OmegaBlueTentacle.png rename to Projectiles/Typeless/OmegaBlueTentacle.png diff --git a/Projectiles/PoisonousSeawater.cs b/Projectiles/Typeless/PoisonousSeawater.cs similarity index 94% rename from Projectiles/PoisonousSeawater.cs rename to Projectiles/Typeless/PoisonousSeawater.cs index c2fc8d1a26..439d5d1bdb 100644 --- a/Projectiles/PoisonousSeawater.cs +++ b/Projectiles/Typeless/PoisonousSeawater.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class PoisonousSeawater : ModProjectile { diff --git a/Projectiles/PoisonousSeawater.png b/Projectiles/Typeless/PoisonousSeawater.png similarity index 100% rename from Projectiles/PoisonousSeawater.png rename to Projectiles/Typeless/PoisonousSeawater.png diff --git a/Projectiles/ReaverBlast.cs b/Projectiles/Typeless/ReaverBlast.cs similarity index 95% rename from Projectiles/ReaverBlast.cs rename to Projectiles/Typeless/ReaverBlast.cs index 632ff07023..ed1535e9c2 100644 --- a/Projectiles/ReaverBlast.cs +++ b/Projectiles/Typeless/ReaverBlast.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class ReaverBlast : ModProjectile { diff --git a/Projectiles/ReaverBlast.png b/Projectiles/Typeless/ReaverBlast.png similarity index 100% rename from Projectiles/ReaverBlast.png rename to Projectiles/Typeless/ReaverBlast.png diff --git a/Projectiles/RedSpawn.cs b/Projectiles/Typeless/RedSpawn.cs similarity index 90% rename from Projectiles/RedSpawn.cs rename to Projectiles/Typeless/RedSpawn.cs index 3f5383d164..2649e804fe 100644 --- a/Projectiles/RedSpawn.cs +++ b/Projectiles/Typeless/RedSpawn.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class RedSpawn : ModProjectile { diff --git a/Projectiles/RedSpawn.png b/Projectiles/Typeless/RedSpawn.png similarity index 100% rename from Projectiles/RedSpawn.png rename to Projectiles/Typeless/RedSpawn.png diff --git a/Projectiles/Seashell.cs b/Projectiles/Typeless/Seashell.cs similarity index 92% rename from Projectiles/Seashell.cs rename to Projectiles/Typeless/Seashell.cs index 93f1d3f677..ba389f1ece 100644 --- a/Projectiles/Seashell.cs +++ b/Projectiles/Typeless/Seashell.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class Seashell : ModProjectile { diff --git a/Projectiles/Seashell.png b/Projectiles/Typeless/Seashell.png similarity index 100% rename from Projectiles/Seashell.png rename to Projectiles/Typeless/Seashell.png diff --git a/Projectiles/SkyFlareFriendly.cs b/Projectiles/Typeless/SkyFlareFriendly.cs similarity index 97% rename from Projectiles/SkyFlareFriendly.cs rename to Projectiles/Typeless/SkyFlareFriendly.cs index 711635e9c5..5d4ec8614c 100644 --- a/Projectiles/SkyFlareFriendly.cs +++ b/Projectiles/Typeless/SkyFlareFriendly.cs @@ -6,7 +6,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class SkyFlareFriendly : ModProjectile { diff --git a/Projectiles/SkyFlareFriendly.png b/Projectiles/Typeless/SkyFlareFriendly.png similarity index 100% rename from Projectiles/SkyFlareFriendly.png rename to Projectiles/Typeless/SkyFlareFriendly.png diff --git a/Projectiles/SparkInfernal.cs b/Projectiles/Typeless/SparkInfernal.cs similarity index 93% rename from Projectiles/SparkInfernal.cs rename to Projectiles/Typeless/SparkInfernal.cs index 7a846d0e33..42963e4b6d 100644 --- a/Projectiles/SparkInfernal.cs +++ b/Projectiles/Typeless/SparkInfernal.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class SparkInfernal : ModProjectile { diff --git a/Projectiles/SparkInfernal.png b/Projectiles/Typeless/SparkInfernal.png similarity index 100% rename from Projectiles/SparkInfernal.png rename to Projectiles/Typeless/SparkInfernal.png diff --git a/Projectiles/StandingFire.cs b/Projectiles/Typeless/StandingFire.cs similarity index 95% rename from Projectiles/StandingFire.cs rename to Projectiles/Typeless/StandingFire.cs index d3bd8cf189..65feb1345d 100644 --- a/Projectiles/StandingFire.cs +++ b/Projectiles/Typeless/StandingFire.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class StandingFire : ModProjectile { diff --git a/Projectiles/XerocFire.png b/Projectiles/Typeless/StandingFire.png similarity index 100% rename from Projectiles/XerocFire.png rename to Projectiles/Typeless/StandingFire.png diff --git a/Projectiles/StickyFeatherAero.cs b/Projectiles/Typeless/StickyFeatherAero.cs similarity index 96% rename from Projectiles/StickyFeatherAero.cs rename to Projectiles/Typeless/StickyFeatherAero.cs index 15b1b968cb..48f89d2372 100644 --- a/Projectiles/StickyFeatherAero.cs +++ b/Projectiles/Typeless/StickyFeatherAero.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class StickyFeatherAero : ModProjectile { diff --git a/Projectiles/StickyFeatherAero.png b/Projectiles/Typeless/StickyFeatherAero.png similarity index 100% rename from Projectiles/StickyFeatherAero.png rename to Projectiles/Typeless/StickyFeatherAero.png diff --git a/Projectiles/StormBolt.cs b/Projectiles/Typeless/StormBolt.cs similarity index 93% rename from Projectiles/StormBolt.cs rename to Projectiles/Typeless/StormBolt.cs index b9c89fd769..9094a42858 100644 --- a/Projectiles/StormBolt.cs +++ b/Projectiles/Typeless/StormBolt.cs @@ -4,7 +4,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class StormBolt : ModProjectile { diff --git a/Projectiles/StormBolt.png b/Projectiles/Typeless/StormBolt.png similarity index 100% rename from Projectiles/StormBolt.png rename to Projectiles/Typeless/StormBolt.png diff --git a/Projectiles/TarraEnergy.cs b/Projectiles/Typeless/TarraEnergy.cs similarity index 95% rename from Projectiles/TarraEnergy.cs rename to Projectiles/Typeless/TarraEnergy.cs index f12c8f391c..8cac87bf3b 100644 --- a/Projectiles/TarraEnergy.cs +++ b/Projectiles/Typeless/TarraEnergy.cs @@ -5,7 +5,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles +namespace CalamityMod.Projectiles.Typeless { public class TarraEnergy : ModProjectile { diff --git a/Projectiles/Typeless/TarraEnergy.png b/Projectiles/Typeless/TarraEnergy.png new file mode 100644 index 0000000000000000000000000000000000000000..0056fc1e2479e11bd6391fc4ccd1fe54fa0d671f GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqY)RhkE)4%caKYZ?lYt_f1s;*b z3=DjSL74G){)!Z!AbW|YuPgflb|yv^-kZzH%z;9po-U3d5|@+z{QqyyYz<`tt6+#S11hIrYKY)=5W+r|CVq%7gZv23X6*d?c5CcPz z5P|{3M?i!`Nm?gnaBrw@{A#-iE~4)&k!Ab77yG=c>uVd|_c=_o)>;6ZD3n8gd~@&_ zfOAJH2H<0N3_#oK0q|_|$xP$sW;)xE81t_feYt)$(Q$ER#l@)>jsVd1dOpD8J9Pjy zH~IiPcsUHVV+_C7IGt#|m)6$-XLM#9n9On$-bXUwKT+t z`qD`NZd@pa_KV3vbFCcO)@BJSxx4`w?QD0)BOm@4rj5OS_iN-h`nbuw_i4B@IwMS@ z)(n{_hNY#p7|xN}K;hQ&5211Nd4kTVl51`8<8rwz&YP_TV0wkgyl&oJ-7}tGt5UA4 z9y8#K&WuTpF6Dwd+aGWHklwhY)q)t6)ObPXVvUX~B2Dwt8Cg!|ND;FJ9l((T53ZuS0j& z#5|q*bhVO{m3+wn{2cWoSB8F4w3&OVYz)AsZV*ORp!84d+6oBMi#D}jQC7RE?-Wl2q);Oax=C8do zj5EvjHe1*68ZmdjoY5Ka8~$Y2>(*SGTL1t607*qoM6N<$f-bUj AUjP6A diff --git a/Projectiles/WaterSpearFriendly.png b/Projectiles/WaterSpearFriendly.png deleted file mode 100644 index c5b595d096ce0b24c5dcd5685ec76515645f0acf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3172 zcmV-q44dKLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 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kzG;_0z~Q>KF>>Bt-oH}3x0DLcyZ;aK CXU)L? literal 0 HcmV?d00001 diff --git a/Sounds/Item/BazookaFull.cs b/Sounds/Item/BazookaFull.cs index 706b192231..f0b1b62eba 100644 --- a/Sounds/Item/BazookaFull.cs +++ b/Sounds/Item/BazookaFull.cs @@ -1,18 +1,18 @@ -using Microsoft.Xna.Framework.Audio; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Sounds.Item -{ - public class BazookaFull : ModSound - { - public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) - { - soundInstance = sound.CreateInstance(); - soundInstance.Volume = volume * 1f; - soundInstance.Pan = pan; - Main.PlaySoundInstance(soundInstance); - return soundInstance; - } - } -} +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Item +{ + public class BazookaFull : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume * 1f; + soundInstance.Pan = pan; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Item/ClamImpact.cs b/Sounds/Item/ClamImpact.cs new file mode 100644 index 0000000000..9fd8b71338 --- /dev/null +++ b/Sounds/Item/ClamImpact.cs @@ -0,0 +1,18 @@ +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Item +{ + public class ClamImpact : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume * 1f; + soundInstance.Pan = pan; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Item/ClamImpact.wav b/Sounds/Item/ClamImpact.wav new file mode 100644 index 0000000000000000000000000000000000000000..9d7500434b9cba09a56b486141ad057a1915d3f6 GIT binary patch liter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FsD^4I>v$iGSy(YUQ3DdXkkOZjLqzjTh>5p1lK8VUBX;KaK8I5{YKd97J z3s`MnF>dvNY_G)~qf0C4R^BSRN}-;PzEYBG)kyiMUiyswwtne3(d}&Yw2uD|dzGgU z?f);Q+A&&6)SkM=%Eh`?x?$ByeWWwGLS?khND_n_Rby4{(IkU7ucc}GrPI~meHvM0IR?T$3$|&ho z&GfCBseRS!$~C$ztXf&+wKTwzD=sy;=xR&bWD$iKmeyI)X7#-CQl6@f{&cUtbxm|% zM%P&Kq?Q#LsgA-c)l1*{E%{Z8Te@hK-^yEgS$oRg>Z$+LEZP$58l6+C3Kdmq3#YB} zS>>_nZ?%uwCA!6;&swdbwo*&04fSNJMpi5836hWK(nqtp=+;#Z(f9r@SM`OJpN`pW F{|~+Y^ojrg literal 0 HcmV?d00001 diff --git a/Sounds/Item/Hydra.cs b/Sounds/Item/Hydra.cs index 65397a6c00..6c9a272856 100644 --- a/Sounds/Item/Hydra.cs +++ b/Sounds/Item/Hydra.cs @@ -1,18 +1,18 @@ -using Microsoft.Xna.Framework.Audio; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Sounds.Item -{ - public class Hydra : ModSound - { - public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) - { - soundInstance = sound.CreateInstance(); - soundInstance.Volume = volume * 1f; - soundInstance.Pan = pan; - Main.PlaySoundInstance(soundInstance); - return soundInstance; - } - } -} +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Item +{ + public class Hydra : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume * 1f; + soundInstance.Pan = pan; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Item/Magnum.cs b/Sounds/Item/Magnum.cs index 01b9968393..a3d8f4e9a8 100644 --- a/Sounds/Item/Magnum.cs +++ b/Sounds/Item/Magnum.cs @@ -1,18 +1,18 @@ -using Microsoft.Xna.Framework.Audio; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Sounds.Item -{ - public class Magnum : ModSound - { - public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) - { - soundInstance = sound.CreateInstance(); - soundInstance.Volume = volume * 1f; - soundInstance.Pan = pan; - Main.PlaySoundInstance(soundInstance); - return soundInstance; - } - } -} +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Item +{ + public class Magnum : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume * 1f; + soundInstance.Pan = pan; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Item/TankCannon.cs b/Sounds/Item/TankCannon.cs new file mode 100644 index 0000000000..21e1f6194c --- /dev/null +++ b/Sounds/Item/TankCannon.cs @@ -0,0 +1,19 @@ +using Microsoft.Xna.Framework.Audio; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Sounds.Item +{ + public class TankCannon : ModSound + { + public override SoundEffectInstance PlaySound(ref SoundEffectInstance soundInstance, float volume, float pan, SoundType type) + { + soundInstance = sound.CreateInstance(); + soundInstance.Volume = volume * 1.85f; + soundInstance.Pan = pan; + soundInstance.Pitch = (float)Main.rand.Next(-25, 26) * 0.01f; + Main.PlaySoundInstance(soundInstance); + return soundInstance; + } + } +} diff --git a/Sounds/Item/TankCannon.wav b/Sounds/Item/TankCannon.wav new file mode 100644 index 0000000000000000000000000000000000000000..4d6ea145c1f17e0811118d1b18b6a03edb9f15e1 GIT binary patch literal 510652 zcmWKXbyON&9K{I%5eWko5X2TyFi=43)~VZc9j^CV_gr^(_gpw*(>Z6(?pEx=R%{Ui zL8bip|2yZscg{QS-21ur8yev2n^p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