Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
No files matched your search
@@ -91,7 +91,7 @@ namespace CalamityMod.Balancing
|
||||
#region Crabulon
|
||||
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<CrabulonIdle>(), new TrueMeleeResistBalancingRule(0.5f)));
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Crabulon>(), new TrueMeleeResistBalancingRule(0.5f)));
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -745,14 +745,14 @@ namespace CalamityMod
|
||||
NPCType<SlimeGodRunSplit>(),
|
||||
NPCType<Horse>(),
|
||||
NPCType<ThiccWaifu>(),
|
||||
NPCType<CryogenIce>(),
|
||||
NPCType<CryogenShield>(),
|
||||
NPCType<AquaticScourgeHead>(),
|
||||
NPCType<AquaticScourgeBody>(),
|
||||
NPCType<AquaticScourgeBodyAlt>(),
|
||||
NPCType<AquaticScourgeTail>(),
|
||||
NPCType<CragmawMire>(),
|
||||
NPCType<CalamitasRun>(),
|
||||
NPCType<CalamitasRun2>(),
|
||||
NPCType<Cataclysm>(),
|
||||
NPCType<Catastrophe>(),
|
||||
NPCType<SoulSeeker>(),
|
||||
NPCType<GreatSandShark>(),
|
||||
NPCType<SirenIce>(),
|
||||
@@ -773,7 +773,7 @@ namespace CalamityMod
|
||||
NPCType<BobbitWormHead>(),
|
||||
NPCType<Mauler>(),
|
||||
NPCType<ColossalSquid>(),
|
||||
NPCType<Reaper>(),
|
||||
NPCType<ReaperShark>(),
|
||||
NPCType<EidolonWyrmHead>(),
|
||||
NPCType<NuclearTerror>(),
|
||||
NPCType<OldDukeToothBall>(),
|
||||
@@ -1205,7 +1205,7 @@ namespace CalamityMod
|
||||
NPCType<EidolonWyrmHead>(),
|
||||
NPCType<GulperEelHead>(),
|
||||
NPCType<Mauler>(),
|
||||
NPCType<Reaper>()
|
||||
NPCType<ReaperShark>()
|
||||
};
|
||||
|
||||
revengeanceProjectileBuffList25Percent = new List<int>()
|
||||
@@ -1288,8 +1288,8 @@ namespace CalamityMod
|
||||
NPCType<AquaticScourgeBody>(),
|
||||
NPCType<AquaticScourgeBodyAlt>(),
|
||||
NPCType<AquaticScourgeTail>(),
|
||||
NPCType<AstrumDeusBodySpectral>(),
|
||||
NPCType<AstrumDeusTailSpectral>(),
|
||||
NPCType<AstrumDeusBody>(),
|
||||
NPCType<AstrumDeusTail>(),
|
||||
NPCType<StormWeaverBody>(),
|
||||
NPCType<StormWeaverTail>(),
|
||||
NPCType<DevourerofGodsBody>(),
|
||||
@@ -1938,7 +1938,7 @@ namespace CalamityMod
|
||||
{
|
||||
NPCType<EidolonWyrmHead>(),
|
||||
NPCType<Mauler>(),
|
||||
NPCType<Reaper>(),
|
||||
NPCType<ReaperShark>(),
|
||||
NPCType<ColossalSquid>(),
|
||||
NPCType<GreatSandShark>(),
|
||||
NPCType<GiantClam>(),
|
||||
@@ -2006,9 +2006,9 @@ namespace CalamityMod
|
||||
NPCType<RavagerClawRight>(),
|
||||
NPCType<RavagerLegLeft>(),
|
||||
NPCType<RavagerLegRight>(),
|
||||
NPCType<AstrumDeusHeadSpectral>(),
|
||||
NPCType<AstrumDeusBodySpectral>(),
|
||||
NPCType<AstrumDeusTailSpectral>(),
|
||||
NPCType<AstrumDeusHead>(),
|
||||
NPCType<AstrumDeusBody>(),
|
||||
NPCType<AstrumDeusTail>(),
|
||||
NPCType<DarkEnergy>(),
|
||||
NPCType<StormWeaverHead>(),
|
||||
NPCType<StormWeaverBody>(),
|
||||
@@ -2088,9 +2088,9 @@ namespace CalamityMod
|
||||
|
||||
AstrumDeusIDs = new List<int>
|
||||
{
|
||||
NPCType<AstrumDeusHeadSpectral>(),
|
||||
NPCType<AstrumDeusBodySpectral>(),
|
||||
NPCType<AstrumDeusTailSpectral>()
|
||||
NPCType<AstrumDeusHead>(),
|
||||
NPCType<AstrumDeusBody>(),
|
||||
NPCType<AstrumDeusTail>()
|
||||
};
|
||||
|
||||
DevourerOfGodsIDs = new List<int>
|
||||
@@ -2548,7 +2548,7 @@ namespace CalamityMod
|
||||
{ NPCID.KingSlime, 1 },
|
||||
{ NPCType<DesertScourgeHead>(), 2 },
|
||||
{ NPCID.EyeofCthulhu, 3 },
|
||||
{ NPCType<CrabulonIdle>(), 4 },
|
||||
{ NPCType<Crabulon>(), 4 },
|
||||
{ NPCID.EaterofWorldsHead, 5 },
|
||||
{ NPCID.EaterofWorldsBody, 5 },
|
||||
{ NPCID.EaterofWorldsTail, 5 },
|
||||
@@ -2568,7 +2568,7 @@ namespace CalamityMod
|
||||
{ NPCID.TheDestroyer, 16 },
|
||||
{ NPCType<BrimstoneElemental>(), 17 },
|
||||
{ NPCID.SkeletronPrime, 18 },
|
||||
{ NPCType<CalamitasRun3>(), 19 },
|
||||
{ NPCType<CalamitasClone>(), 19 },
|
||||
{ NPCID.Plantera, 20 },
|
||||
{ NPCType<Leviathan>(), 21 },
|
||||
{ NPCType<Siren>(), 21 },
|
||||
@@ -2578,7 +2578,7 @@ namespace CalamityMod
|
||||
{ NPCID.DukeFishron, 25 },
|
||||
{ NPCType<RavagerBody>(), 26 },
|
||||
{ NPCID.CultistBoss, 27 },
|
||||
{ NPCType<AstrumDeusHeadSpectral>(), 28 },
|
||||
{ NPCType<AstrumDeusHead>(), 28 },
|
||||
{ NPCID.MoonLordCore, 29 },
|
||||
{ NPCType<ProfanedGuardianBoss>(), 30 },
|
||||
{ NPCType<Bumblefuck>(), 31 },
|
||||
@@ -2595,7 +2595,7 @@ namespace CalamityMod
|
||||
{ NPCType<ThanatosHead>(), 41 },
|
||||
{ NPCType<Artemis>(), 41 },
|
||||
{ NPCType<Apollo>(), 41 },
|
||||
{ NPCType<EidolonWyrmHeadHuge>(), 42 },
|
||||
{ NPCType<AdultEidolonWyrmHead>(), 42 },
|
||||
{ NPCID.QueenSlimeBoss, 43 },
|
||||
{ NPCID.HallowBoss, 44 },
|
||||
{ NPCID.Deerclops, 45 }
|
||||
@@ -2655,8 +2655,8 @@ namespace CalamityMod
|
||||
NPCType<AquaticScourgeBody>(),
|
||||
NPCType<AquaticScourgeBodyAlt>(),
|
||||
NPCType<AquaticScourgeTail>(),
|
||||
NPCType<CalamitasRun>(),
|
||||
NPCType<CalamitasRun2>(),
|
||||
NPCType<Cataclysm>(),
|
||||
NPCType<Catastrophe>(),
|
||||
NPCType<SoulSeeker>(),
|
||||
NPCID.PlanterasTentacle,
|
||||
NPCType<AureusSpawn>(),
|
||||
|
||||
@@ -570,7 +570,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<DesertScourgeHead>(), 3600 }, // 1:00 (60 seconds)
|
||||
{ ModContent.NPCType<DesertScourgeBody>(), 3600 },
|
||||
{ ModContent.NPCType<DesertScourgeTail>(), 3600 },
|
||||
{ ModContent.NPCType<CrabulonIdle>(), 5400 }, // 1:30 (90 seconds)
|
||||
{ ModContent.NPCType<Crabulon>(), 5400 }, // 1:30 (90 seconds)
|
||||
{ ModContent.NPCType<HiveMind>(), 7200 }, // 2:00 (120 seconds)
|
||||
{ ModContent.NPCType<PerforatorHive>(), 7200 }, // 2:00 (120 seconds)
|
||||
{ ModContent.NPCType<SlimeGodCore>(), 10800 }, // 3:00 (180 seconds) -- total length of Slime God fight
|
||||
@@ -584,13 +584,13 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<AquaticScourgeBodyAlt>(), 7200 },
|
||||
{ ModContent.NPCType<AquaticScourgeTail>(), 7200 },
|
||||
{ ModContent.NPCType<BrimstoneElemental>(), 10800 }, // 3:00 (180 seconds)
|
||||
{ ModContent.NPCType<CalamitasRun3>(), 14400 }, // 4:00 (240 seconds)
|
||||
{ ModContent.NPCType<CalamitasClone>(), 14400 }, // 4:00 (240 seconds)
|
||||
{ ModContent.NPCType<Siren>(), 10800 }, // 3:00 (180 seconds)
|
||||
{ ModContent.NPCType<Leviathan>(), 10800 },
|
||||
{ ModContent.NPCType<AstrumAureus>(), 10800 }, // 3:00 (180 seconds)
|
||||
{ ModContent.NPCType<AstrumDeusHeadSpectral>(), 7200 }, // 2:00 (120 seconds) -- first phase is 1:00
|
||||
{ ModContent.NPCType<AstrumDeusBodySpectral>(), 7200 },
|
||||
{ ModContent.NPCType<AstrumDeusTailSpectral>(), 7200 },
|
||||
{ ModContent.NPCType<AstrumDeusHead>(), 7200 }, // 2:00 (120 seconds) -- first phase is 1:00
|
||||
{ ModContent.NPCType<AstrumDeusBody>(), 7200 },
|
||||
{ ModContent.NPCType<AstrumDeusTail>(), 7200 },
|
||||
{ ModContent.NPCType<PlaguebringerGoliath>(), 10800 }, // 3:00 (180 seconds)
|
||||
{ ModContent.NPCType<RavagerBody>(), 10800 }, // 3:00 (180 seconds)
|
||||
{ ModContent.NPCType<ProfanedGuardianBoss>(), 5400 }, // 1:30 (90 seconds)
|
||||
@@ -620,7 +620,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), 21600 },
|
||||
{ ModContent.NPCType<ThanatosTail>(), 21600 },
|
||||
{ ModContent.NPCType<SupremeCalamitas>(), 18000 }, // 5:00 (300 seconds)
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), 18000 } // 5:00 (300 seconds)
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), 18000 } // 5:00 (300 seconds)
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
@@ -669,7 +669,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<DesertNuisanceHead>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<DesertNuisanceBody>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<DesertNuisanceTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<CrabulonIdle>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<Crabulon>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<HiveMind>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<PerforatorHive>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<PerforatorHeadLarge>(), bitingEnemeyVelocityScale },
|
||||
@@ -693,15 +693,15 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<AquaticScourgeBodyAlt>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<AquaticScourgeTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<BrimstoneElemental>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<CalamitasRun>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<CalamitasRun2>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<CalamitasRun3>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<Cataclysm>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<Catastrophe>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<CalamitasClone>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<Leviathan>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<Siren>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<AstrumAureus>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<AstrumDeusHeadSpectral>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<AstrumDeusBodySpectral>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<AstrumDeusTailSpectral>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<AstrumDeusHead>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<AstrumDeusBody>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<AstrumDeusTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<PlaguebringerGoliath>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<RavagerBody>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<RavagerClawLeft>(), velocityScaleMin },
|
||||
@@ -738,7 +738,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody1>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosBody2>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), bitingEnemeyVelocityScale }
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), bitingEnemeyVelocityScale }
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace CalamityMod
|
||||
|
||||
{ ModContent.NPCType<DesertScourgeHead>(), 1.1 },
|
||||
|
||||
{ ModContent.NPCType<CrabulonIdle>(), 0.8 },
|
||||
{ ModContent.NPCType<Crabulon>(), 0.8 },
|
||||
|
||||
{ NPCID.EaterofWorldsHead, 1.1 },
|
||||
{ NPCID.EaterofWorldsBody, 0.8 },
|
||||
@@ -221,7 +221,7 @@ namespace CalamityMod
|
||||
{ NPCID.PrimeSaw, 0.85 },
|
||||
{ NPCID.PrimeVice, 0.85 },
|
||||
|
||||
{ ModContent.NPCType<CalamitasRun3>(), 0.8 },
|
||||
{ ModContent.NPCType<CalamitasClone>(), 0.8 },
|
||||
|
||||
{ NPCID.Plantera, 1.15 },
|
||||
{ NPCID.PlanterasTentacle, 1.15 },
|
||||
@@ -256,8 +256,8 @@ namespace CalamityMod
|
||||
{ NPCID.AncientDoom, 0.75 },
|
||||
{ NPCID.AncientLight, 0.75 },
|
||||
|
||||
{ ModContent.NPCType<AstrumDeusBodySpectral>(), 0.8 },
|
||||
{ ModContent.NPCType<AstrumDeusTailSpectral>(), 0.8 },
|
||||
{ ModContent.NPCType<AstrumDeusBody>(), 0.8 },
|
||||
{ ModContent.NPCType<AstrumDeusTail>(), 0.8 },
|
||||
|
||||
{ ModContent.NPCType<ProfanedGuardianBoss>(), 0.8 },
|
||||
|
||||
@@ -290,7 +290,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), 0.8 },
|
||||
{ ModContent.NPCType<ThanatosTail>(), 0.8 },
|
||||
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), 0.8 }
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), 0.8 }
|
||||
};
|
||||
|
||||
EnemyStats.ContactDamageValues = new SortedDictionary<int, int[]>
|
||||
@@ -312,7 +312,7 @@ namespace CalamityMod
|
||||
51 } }, // Vanilla: 54 in phase 2, 60 in phase 3; Rev: 61 in phase 2, 71 in phase 3; Death: 71 at all times
|
||||
{ NPCID.ServantofCthulhu, new int[] { 12, 24, 30, 34, 42 } },
|
||||
|
||||
{ ModContent.NPCType<CrabulonIdle>(), new int[] { 40, 64, 80, 88, 120 } },
|
||||
{ ModContent.NPCType<Crabulon>(), new int[] { 40, 64, 80, 88, 120 } },
|
||||
{ ModContent.NPCType<CrabShroom>(), new int[] { 25, 50, 62, 70, 75 } },
|
||||
|
||||
{ NPCID.EaterofWorldsHead, new int[] { 25, 55, 77, 88, 132 } },
|
||||
@@ -376,7 +376,7 @@ namespace CalamityMod
|
||||
{ NPCID.QueenSlimeBoss, new int[] { 60, 120, 150, 170, 240 } },
|
||||
|
||||
{ ModContent.NPCType<Cryogen>(), new int[] { 60, 138, 161, 184, 276 } },
|
||||
{ ModContent.NPCType<CryogenIce>(), new int[] { 60, 120, 138, 158, 216 } },
|
||||
{ ModContent.NPCType<CryogenShield>(), new int[] { 60, 120, 138, 158, 216 } },
|
||||
|
||||
{ NPCID.Spazmatism, new int[] {
|
||||
60, // 90 in phase 2
|
||||
@@ -413,9 +413,9 @@ namespace CalamityMod
|
||||
{ NPCID.PrimeCannon, new int[] { 30, 51, 68, 85, 102 } },
|
||||
{ NPCID.PrimeLaser, new int[] { 30, 51, 68, 85, 102 } },
|
||||
|
||||
{ ModContent.NPCType<CalamitasRun3>(), new int[] { 90, 144, 168, 176, 240 } },
|
||||
{ ModContent.NPCType<CalamitasRun>(), new int[] { 60, 120, 138, 148, 198 } },
|
||||
{ ModContent.NPCType<CalamitasRun2>(), new int[] { 65, 130, 150, 162, 216 } },
|
||||
{ ModContent.NPCType<CalamitasClone>(), new int[] { 90, 144, 168, 176, 240 } },
|
||||
{ ModContent.NPCType<Cataclysm>(), new int[] { 60, 120, 138, 148, 198 } },
|
||||
{ ModContent.NPCType<Catastrophe>(), new int[] { 65, 130, 150, 162, 216 } },
|
||||
|
||||
{ NPCID.Plantera, new int[] {
|
||||
50, // 70 in phase 2, vanilla is retarded and doesn't use the expert multiplier for plantera's damage
|
||||
@@ -480,9 +480,9 @@ namespace CalamityMod
|
||||
{ NPCID.AncientDoom, new int[] { 30, 45, 0, 0, 90 } }, // Vanilla: 90 in Master Mode; Rev and Death: 0 in Master Mode
|
||||
{ NPCID.AncientLight, new int[] { 120, 180, 210, 225, 270 } },
|
||||
|
||||
{ ModContent.NPCType<AstrumDeusHeadSpectral>(), new int[] { 120, 240, 268, 280, 360 } },
|
||||
{ ModContent.NPCType<AstrumDeusBodySpectral>(), new int[] { 100, 160, 192, 200, 240 } },
|
||||
{ ModContent.NPCType<AstrumDeusTailSpectral>(), new int[] { 80, 128, 160, 168, 192 } },
|
||||
{ ModContent.NPCType<AstrumDeusHead>(), new int[] { 120, 240, 268, 280, 360 } },
|
||||
{ ModContent.NPCType<AstrumDeusBody>(), new int[] { 100, 160, 192, 200, 240 } },
|
||||
{ ModContent.NPCType<AstrumDeusTail>(), new int[] { 80, 128, 160, 168, 192 } },
|
||||
|
||||
{ ModContent.NPCType<ProfanedGuardianBoss>(), new int[] { 140, 224, 256, 280, 336 } },
|
||||
{ ModContent.NPCType<ProfanedGuardianBoss2>(), new int[] { 120, 240, 264, 278, 336 } },
|
||||
@@ -541,7 +541,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), new int[] { 330, 528, 560, 576, 690 } },
|
||||
{ ModContent.NPCType<ThanatosTail>(), new int[] { 260, 416, 446, 464, 570 } },
|
||||
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), new int[] { 400, 800, 850, 880, 1000 } }
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), new int[] { 400, 800, 850, 880, 1000 } }
|
||||
};
|
||||
|
||||
EnemyStats.ProjectileDamageValues = new SortedDictionary<Tuple<int, int>, int[]>
|
||||
@@ -551,8 +551,8 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DesertScourgeHead>(), ModContent.ProjectileType<SandBlast>()), new int[] { 26, 44, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<DesertScourgeHead>(), ModContent.ProjectileType<GreatSandBlast>()), new int[] { 26, 44, 60, 68, 90 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrabulonIdle>(), ModContent.ProjectileType<MushBomb>()), new int[] { 32, 48, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrabulonIdle>(), ModContent.ProjectileType<MushBombFall>()), new int[] { 32, 48, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBomb>()), new int[] { 32, 48, 60, 68, 90 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBombFall>()), new int[] { 32, 48, 60, 68, 90 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 32, 48, 60, 68, 90 } },
|
||||
|
||||
@@ -595,7 +595,7 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 124, 168 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBomb>()), new int[] { 70, 120, 136, 152, 210 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceRain>()), new int[] { 60, 100, 120, 132, 180 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CryogenIce>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 124, 168 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CryogenShield>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 124, 168 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.Retinazer, ProjectileID.EyeLaser), new int[] { 40, 76, 92, 100, 138 } }, // 114 damage in non-rev master mode
|
||||
{ new Tuple<int, int>(NPCID.Retinazer, ProjectileID.DeathLaser), new int[] {
|
||||
@@ -635,13 +635,13 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 0, 0, 240 } },
|
||||
{ new Tuple<int, int>(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 100, 124, 136, 186 } }, // 150 in non-rev master mode
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasRun3>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasRun3>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasRun3>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasRun3>(), ModContent.ProjectileType<BrimstoneGigaBlast>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasRun3>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasRun>(), ModContent.ProjectileType<BrimstoneFire>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasRun2>(), ModContent.ProjectileType<BrimstoneBall>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneGigaBlast>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Cataclysm>(), ModContent.ProjectileType<BrimstoneFire>()), new int[] { 80, 140, 160, 176, 234 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<Catastrophe>(), ModContent.ProjectileType<BrimstoneBall>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SoulSeeker>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 140, 192 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.SeedPlantera), new int[] { 44, 76, 128, 140, 186 } }, // 114 in non-rev master mode
|
||||
@@ -699,9 +699,9 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(NPCID.CultistBossClone, ProjectileID.CultistBossFireBallClone), new int[] { 36, 72, 172, 188, 258 } }, // 72 in non-rev master mode
|
||||
{ new Tuple<int, int>(NPCID.AncientDoom, ProjectileID.AncientDoomProjectile), new int[] { 60, 180, 184, 200, 270 } }, // 402 in non-rev master mode
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBodySpectral>(), ModContent.ProjectileType<AstralShot2>()), new int[] { 90, 152, 176, 188, 264 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBodySpectral>(), ModContent.ProjectileType<DeusMine>()), new int[] { 120, 180, 208, 224, 312 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBodySpectral>(), ModContent.ProjectileType<AstralGodRay>()), new int[] { 100, 172, 192, 204, 288 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralShot2>()), new int[] { 90, 152, 176, 188, 264 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<DeusMine>()), new int[] { 120, 180, 208, 224, 312 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralGodRay>()), new int[] { 100, 172, 192, 204, 288 } },
|
||||
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalDeathray), new int[] { 150, 300, 380, 420, 570 } }, // 450 in non-rev master mode
|
||||
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalBolt), new int[] { 60, 120, 160, 176, 240 } }, // 180 in non-rev master mode
|
||||
@@ -809,10 +809,10 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresTeslaCannon>(), ModContent.ProjectileType<AresTeslaOrb>()), new int[] { 288, 432, 454, 478, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresGaussNuke>(), ModContent.ProjectileType<AresGaussNukeProjectile>()), new int[] { 450, 676, 710, 728, 1062 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EidolonWyrmHeadHuge>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EidolonWyrmHeadHuge>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EidolonWyrmHeadHuge>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EidolonWyrmBodyAltHuge>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } }
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmBodyAlt>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ namespace CalamityMod.Events
|
||||
}, permittedNPCs: new int[] { NPCID.CultistBossClone, NPCID.CultistDragonHead, NPCID.CultistDragonBody1, NPCID.CultistDragonBody2, NPCID.CultistDragonBody3, NPCID.CultistDragonBody4,
|
||||
NPCID.CultistDragonTail, NPCID.AncientCultistSquidhead, NPCID.AncientLight, NPCID.AncientDoom }),
|
||||
|
||||
new Boss(ModContent.NPCType<CrabulonIdle>(), spawnContext: type =>
|
||||
new Boss(ModContent.NPCType<Crabulon>(), spawnContext: type =>
|
||||
{
|
||||
Player player = Main.player[ClosestPlayerToWorldCenter];
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace CalamityMod.Events
|
||||
ModContent.NPCType<PerforatorHeadMedium>(), ModContent.NPCType<PerforatorBodyMedium>(), ModContent.NPCType<PerforatorTailMedium>(), ModContent.NPCType<PerforatorHeadSmall>(),
|
||||
ModContent.NPCType<PerforatorBodySmall>() ,ModContent.NPCType<PerforatorTailSmall>() }),
|
||||
|
||||
new Boss(ModContent.NPCType<Cryogen>(), permittedNPCs: ModContent.NPCType<CryogenIce>()),
|
||||
new Boss(ModContent.NPCType<Cryogen>(), permittedNPCs: ModContent.NPCType<CryogenShield>()),
|
||||
|
||||
new Boss(ModContent.NPCType<BrimstoneElemental>(), permittedNPCs: ModContent.NPCType<Brimling>()),
|
||||
|
||||
@@ -242,19 +242,19 @@ namespace CalamityMod.Events
|
||||
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
|
||||
}, permittedNPCs: new int[] { NPCID.MoonLordLeechBlob, NPCID.MoonLordHand, NPCID.MoonLordHead, NPCID.MoonLordFreeEye }),
|
||||
|
||||
new Boss(ModContent.NPCType<AstrumDeusHeadSpectral>(), TimeChangeContext.Night, type =>
|
||||
new Boss(ModContent.NPCType<AstrumDeusHead>(), TimeChangeContext.Night, type =>
|
||||
{
|
||||
Player player = Main.player[ClosestPlayerToWorldCenter];
|
||||
|
||||
SoundEngine.PlaySound(AstrumDeusHeadSpectral.SpawnSound, player.Center);
|
||||
SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, player.Center);
|
||||
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
|
||||
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<AstrumDeusBodySpectral>(), ModContent.NPCType<AstrumDeusTailSpectral>() }),
|
||||
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<AstrumDeusBody>(), ModContent.NPCType<AstrumDeusTail>() }),
|
||||
|
||||
new Boss(ModContent.NPCType<Polterghast>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<PhantomFuckYou>(), ModContent.NPCType<PolterghastHook>(), ModContent.NPCType<PolterPhantom>() }),
|
||||
|
||||
new Boss(ModContent.NPCType<PlaguebringerGoliath>(), permittedNPCs: new int[] { ModContent.NPCType<PlagueHomingMissile>(), ModContent.NPCType<PlagueMine>() }),
|
||||
|
||||
new Boss(ModContent.NPCType<CalamitasRun3>(), TimeChangeContext.Night, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType<CalamitasRun>(), ModContent.NPCType<CalamitasRun2>(),
|
||||
new Boss(ModContent.NPCType<CalamitasClone>(), TimeChangeContext.Night, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType<Cataclysm>(), ModContent.NPCType<Catastrophe>(),
|
||||
ModContent.NPCType<SoulSeeker>() }),
|
||||
|
||||
new Boss(ModContent.NPCType<Siren>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<Leviathan>(), ModContent.NPCType<AquaticAberration>(),
|
||||
@@ -555,7 +555,7 @@ namespace CalamityMod.Events
|
||||
}
|
||||
|
||||
// Killing any split Deus head ends the fight instantly. You don't need to kill both.
|
||||
else if (npc.type == ModContent.NPCType<AstrumDeusHeadSpectral>() && npc.Calamity().newAI[0] != 0f)
|
||||
else if (npc.type == ModContent.NPCType<AstrumDeusHead>() && npc.Calamity().newAI[0] != 0f)
|
||||
{
|
||||
BossRushStage++;
|
||||
CalamityUtils.KillAllHostileProjectiles();
|
||||
|
||||
@@ -419,7 +419,7 @@ namespace CalamityMod.ILEditing
|
||||
#region Platform Collision Checks for Grounded Bosses
|
||||
private static bool EnableCalamityBossPlatformCollision(On.Terraria.NPC.orig_Collision_DecideFallThroughPlatforms orig, NPC self)
|
||||
{
|
||||
if ((self.type == ModContent.NPCType<AstrumAureus>() || self.type == ModContent.NPCType<CrabulonIdle>() || self.type == ModContent.NPCType<RavagerBody>() ||
|
||||
if ((self.type == ModContent.NPCType<AstrumAureus>() || self.type == ModContent.NPCType<Crabulon>() || self.type == ModContent.NPCType<RavagerBody>() ||
|
||||
self.type == ModContent.NPCType<RockPillar>() || self.type == ModContent.NPCType<FlamePillar>()) &&
|
||||
self.target >= 0 && Main.player[self.target].position.Y > self.position.Y + self.height)
|
||||
return true;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return player.ZoneGlowshroom && !NPC.AnyNPCs(ModContent.NPCType<CrabulonIdle>()) && !BossRushEvent.BossRushActive;
|
||||
return player.ZoneGlowshroom && !NPC.AnyNPCs(ModContent.NPCType<Crabulon>()) && !BossRushEvent.BossRushActive;
|
||||
}
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
@@ -39,12 +39,12 @@ namespace CalamityMod.Items.SummonItems
|
||||
SoundEngine.PlaySound(SoundID.Roar, player.position);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int npc = NPC.NewNPC(new EntitySource_BossSpawn(player), (int)(player.position.X + Main.rand.Next(-250, 251)), (int)(player.position.Y - 500f), ModContent.NPCType<CrabulonIdle>(), 1);
|
||||
int npc = NPC.NewNPC(new EntitySource_BossSpawn(player), (int)(player.position.X + Main.rand.Next(-250, 251)), (int)(player.position.Y - 500f), ModContent.NPCType<Crabulon>(), 1);
|
||||
Main.npc[npc].timeLeft *= 20;
|
||||
CalamityUtils.BossAwakenMessage(npc);
|
||||
}
|
||||
else
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<CrabulonIdle>());
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<Crabulon>());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -33,16 +33,16 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !Main.dayTime && !NPC.AnyNPCs(ModContent.NPCType<CalamitasRun3>()) && !BossRushEvent.BossRushActive;
|
||||
return !Main.dayTime && !NPC.AnyNPCs(ModContent.NPCType<CalamitasClone>()) && !BossRushEvent.BossRushActive;
|
||||
}
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Roar, player.position);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<CalamitasRun3>());
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<CalamitasClone>());
|
||||
else
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<CalamitasRun3>());
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<CalamitasClone>());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
{
|
||||
public class AstrumDeusBag : ModItem
|
||||
{
|
||||
public override int BossBagNPC => ModContent.NPCType<AstrumDeusHeadSpectral>();
|
||||
public override int BossBagNPC => ModContent.NPCType<AstrumDeusHead>();
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
{
|
||||
public class CalamitasBag : ModItem
|
||||
{
|
||||
public override int BossBagNPC => ModContent.NPCType<CalamitasRun3>();
|
||||
public override int BossBagNPC => ModContent.NPCType<CalamitasClone>();
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
{
|
||||
public class CrabulonBag : ModItem
|
||||
{
|
||||
public override int BossBagNPC => ModContent.NPCType<CrabulonIdle>();
|
||||
public override int BossBagNPC => ModContent.NPCType<Crabulon>();
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -291,7 +291,7 @@ namespace CalamityMod
|
||||
// Crabulon
|
||||
{
|
||||
BossDifficulty.TryGetValue("Crabulon", out float order);
|
||||
int type = NPCType<CrabulonIdle>();
|
||||
int type = NPCType<Crabulon>();
|
||||
int summon = ItemType<DecapoditaSprout>();
|
||||
List<int> loot = new List<int>() { ItemType<CrabulonBag>(), ItemID.GlowingMushroom, ItemID.MushroomGrassSeeds, ItemType<MycelialClaws>(), ItemType<Fungicide>(), ItemType<HyphaeRod>(), ItemType<Mycoroot>(), ItemType<Shroomerang>(), ItemType<FungalClump>(), ItemType<MushroomPlasmaRoot>(), ItemID.LesserHealingPotion };
|
||||
List<int> collection = new List<int>() { ItemType<CrabulonTrophy>(), ItemType<CrabulonMask>(), ItemType<KnowledgeCrabulon>() };
|
||||
@@ -377,7 +377,7 @@ namespace CalamityMod
|
||||
// Calamitas
|
||||
{
|
||||
BossDifficulty.TryGetValue("Calamitas", out float order);
|
||||
int type = NPCType<CalamitasRun3>();
|
||||
int type = NPCType<CalamitasClone>();
|
||||
int summon = ItemType<EyeofDesolation>();
|
||||
List<int> loot = new List<int>() { ItemType<CalamitasBag>(), ItemType<EssenceofChaos>(), ItemType<AshesofCalamity>(), ItemType<Bloodstone>(), ItemType<LashesofChaos>(), ItemType<Oblivion>(), ItemType<EntropysVigil>(), ItemType<Animosity>(), ItemType<BrimstoneFlamesprayer>(), ItemType<CrushsawCrasher>(), ItemType<ChaosStone>(), ItemType<VoidofCalamity>(), ItemType<Regenator>(), ItemID.BrokenHeroSword, ItemID.GreaterHealingPotion };
|
||||
List<int> collection = new List<int>() { ItemType<CalamitasTrophy>(), ItemType<CataclysmTrophy>(), ItemType<CatastropheTrophy>(), ItemType<CalamitasMask>(), ItemType<HoodOfCalamity>(), ItemType<RobesOfCalamity>(), ItemType<KnowledgeCalamitasClone>() };
|
||||
@@ -452,7 +452,7 @@ namespace CalamityMod
|
||||
// Astrum Deus
|
||||
{
|
||||
BossDifficulty.TryGetValue("AstrumDeus", out float order);
|
||||
List<int> segments = new List<int>() { NPCType<AstrumDeusHeadSpectral>(), NPCType<AstrumDeusBodySpectral>(), NPCType<AstrumDeusTailSpectral>() };
|
||||
List<int> segments = new List<int>() { NPCType<AstrumDeusHead>(), NPCType<AstrumDeusBody>(), NPCType<AstrumDeusTail>() };
|
||||
int summon1 = ItemType<TitanHeart>();
|
||||
int summon2 = ItemType<Starcore>();
|
||||
int altar = ItemType<AstralBeaconItem>();
|
||||
@@ -625,7 +625,7 @@ namespace CalamityMod
|
||||
// Adult Eidolon Wyrm
|
||||
{
|
||||
BossDifficulty.TryGetValue("AdultEidolonWyrm", out float order);
|
||||
int type = NPCType<EidolonWyrmHeadHuge>();
|
||||
int type = NPCType<AdultEidolonWyrmHead>();
|
||||
int summon = ItemID.RodofDiscord;
|
||||
List<int> loot = new List<int>() { ItemType<Voidstone>(), ItemType<Lumenyl>(), ItemID.Ectoplasm, ItemType<EidolicWail>(), ItemType<SoulEdge>(), ItemType<HalibutCannon>(), ItemType<OmegaHealingPotion>() };
|
||||
List<int> collection = new List<int>() { };
|
||||
|
||||
@@ -486,7 +486,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
{
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer3 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType<EidolonWyrmHead>()) &&
|
||||
!NPC.AnyNPCs(ModContent.NPCType<Reaper>()) && !NPC.AnyNPCs(ModContent.NPCType<ColossalSquid>()))
|
||||
!NPC.AnyNPCs(ModContent.NPCType<ReaperShark>()) && !NPC.AnyNPCs(ModContent.NPCType<ColossalSquid>()))
|
||||
{
|
||||
return SpawnCondition.CaveJellyfish.Chance * 0.3f;
|
||||
}
|
||||
@@ -500,7 +500,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
// Never drop anything if this Eidolon Wyrm is a minion during an AEW fight.
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(EidolonWyrmHeadHuge.CanMinionsDropThings);
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings);
|
||||
|
||||
// 30-40 Voidstone
|
||||
aewMinionCondition.Add(ModContent.ItemType<Voidstone>(), 1, 30, 40);
|
||||
|
||||
@@ -16,7 +16,7 @@ using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
public class Reaper : ModNPC
|
||||
public class ReaperShark : ModNPC
|
||||
{
|
||||
public static readonly SoundStyle SearchRoarSound = new("CalamityMod/Sounds/Custom/ReaperSearchRoar");
|
||||
public static readonly SoundStyle EnragedRoarSound = new("CalamityMod/Sounds/Custom/ReaperEnragedRoar");
|
||||
@@ -647,12 +647,12 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
{
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer3 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType<Reaper>()) &&
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer3 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType<ReaperShark>()) &&
|
||||
!NPC.AnyNPCs(ModContent.NPCType<ColossalSquid>()) && !NPC.AnyNPCs(ModContent.NPCType<EidolonWyrmHead>()))
|
||||
{
|
||||
return SpawnCondition.CaveJellyfish.Chance * 0.6f;
|
||||
}
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer4 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType<Reaper>()))
|
||||
if (spawnInfo.Player.Calamity().ZoneAbyssLayer4 && spawnInfo.Water && !NPC.AnyNPCs(ModContent.NPCType<ReaperShark>()))
|
||||
{
|
||||
return SpawnCondition.CaveJellyfish.Chance * 1.2f;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
@@ -17,7 +17,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
private void UpdateAEWIndex()
|
||||
{
|
||||
int AEWType = ModContent.NPCType<EidolonWyrmHeadHuge>();
|
||||
int AEWType = ModContent.NPCType<AdultEidolonWyrmHead>();
|
||||
if (AEWIndex >= 0 && Main.npc[AEWIndex].active && Main.npc[AEWIndex].type == AEWType)
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
private bool UpdateAEWIndex()
|
||||
{
|
||||
int AEWType = ModContent.NPCType<EidolonWyrmHeadHuge>();
|
||||
int AEWType = ModContent.NPCType<AdultEidolonWyrmHead>();
|
||||
if (AEWIndex >= 0 && Main.npc[AEWIndex].active && Main.npc[AEWIndex].type == AEWType)
|
||||
{
|
||||
return true;
|
||||
|
||||
@@ -10,7 +10,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmBodyHuge : ModNPC
|
||||
public class AdultEidolonWyrmBody : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
bool shouldDespawn = true;
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
shouldDespawn = false;
|
||||
break;
|
||||
@@ -97,8 +97,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = malice ? 90f : death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -116,8 +116,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
NPC.Opacity = 0f;
|
||||
}
|
||||
|
||||
bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
if (spawnAncientLights && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f)
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
@@ -10,7 +10,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmBodyAltHuge : ModNPC
|
||||
public class AdultEidolonWyrmBodyAlt : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
bool shouldDespawn = true;
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
shouldDespawn = false;
|
||||
break;
|
||||
@@ -97,8 +97,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = malice ? 90f : death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -116,8 +116,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
NPC.Opacity = 0f;
|
||||
}
|
||||
|
||||
bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
if (shootShadowFireballs && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f)
|
||||
@@ -185,9 +185,9 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
Vector2 center = new Vector2(NPC.Center.X, NPC.Center.Y);
|
||||
Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2);
|
||||
Vector2 vector = center - screenPos;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value.Width, ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value.Height) * 0.5f;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value.Width, ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value.Height) * 0.5f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + NPC.gfxOffY);
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value, vector,
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value, vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(NPC.frame), Color.White, NPC.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -23,7 +23,7 @@ using CalamityMod.Sounds;
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class EidolonWyrmHeadHuge : ModNPC
|
||||
public class AdultEidolonWyrmHead : ModNPC
|
||||
{
|
||||
public enum Phase
|
||||
{
|
||||
@@ -225,12 +225,12 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
if (i >= 0 && i < minLength)
|
||||
{
|
||||
if (i % 2 == 0)
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<EidolonWyrmBodyHuge>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<AdultEidolonWyrmBody>(), NPC.whoAmI);
|
||||
else
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<EidolonWyrmBodyAltHuge>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<AdultEidolonWyrmBodyAlt>(), NPC.whoAmI);
|
||||
}
|
||||
else
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<EidolonWyrmTailHuge>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<AdultEidolonWyrmTail>(), NPC.whoAmI);
|
||||
|
||||
Main.npc[lol].realLife = NPC.whoAmI;
|
||||
Main.npc[lol].ai[2] = NPC.whoAmI;
|
||||
@@ -272,7 +272,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
for (int a = 0; a < Main.maxNPCs; a++)
|
||||
{
|
||||
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<EidolonWyrmBodyAltHuge>() || Main.npc[a].type == ModContent.NPCType<EidolonWyrmBodyHuge>() || Main.npc[a].type == ModContent.NPCType<EidolonWyrmTailHuge>())
|
||||
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmBodyAlt>() || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmBody>() || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmTail>())
|
||||
Main.npc[a].active = false;
|
||||
}
|
||||
}
|
||||
@@ -1367,7 +1367,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
return;
|
||||
}
|
||||
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmHeadGlowHuge").Value;
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow").Value;
|
||||
SpriteEffects spriteEffects = NPC.spriteDirection == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
|
||||
Vector2 center = NPC.Center;
|
||||
Main.spriteBatch.Draw(texture, center - screenPos, NPC.frame, Color.White, NPC.rotation, texture.Size() * 0.5f, NPC.scale, spriteEffects, 0f);
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
@@ -9,7 +9,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmTailHuge : ModNPC
|
||||
public class AdultEidolonWyrmTail : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
bool shouldDespawn = true;
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
shouldDespawn = false;
|
||||
break;
|
||||
@@ -86,8 +86,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = malice ? 90f : death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -150,9 +150,9 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
Vector2 center = new Vector2(NPC.Center.X, NPC.Center.Y);
|
||||
Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2);
|
||||
Vector2 vector = center - screenPos;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value.Width, ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value.Height) * 0.5f;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value.Width, ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value.Height) * 0.5f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + NPC.gfxOffY);
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value, vector,
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value, vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(NPC.frame), Color.White, NPC.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -12,7 +12,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AstrumDeus
|
||||
{
|
||||
public class AstrumDeusBodySpectral : ModNPC
|
||||
public class AstrumDeusBody : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = AstrumDeusHeadSpectral.DeathSound;
|
||||
NPC.DeathSound = AstrumDeusHead.DeathSound;
|
||||
NPC.netAlways = true;
|
||||
NPC.boss = true;
|
||||
Music = CalamityMod.Instance.GetMusicFromMusicMod("AstrumDeus") ?? MusicID.Boss3;
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -28,7 +28,7 @@ using Terraria.Audio;
|
||||
namespace CalamityMod.NPCs.AstrumDeus
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class AstrumDeusHeadSpectral : ModNPC
|
||||
public class AstrumDeusHead : ModNPC
|
||||
{
|
||||
public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeusSpawn");
|
||||
public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeusSplit");
|
||||
@@ -236,9 +236,9 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
return false;
|
||||
|
||||
int closestSegmentID = DropHelper.FindClosestWormSegment(NPC,
|
||||
ModContent.NPCType<AstrumDeusHeadSpectral>(),
|
||||
ModContent.NPCType<AstrumDeusBodySpectral>(),
|
||||
ModContent.NPCType<AstrumDeusTailSpectral>());
|
||||
ModContent.NPCType<AstrumDeusHead>(),
|
||||
ModContent.NPCType<AstrumDeusBody>(),
|
||||
ModContent.NPCType<AstrumDeusTail>());
|
||||
NPC.position = Main.npc[closestSegmentID].position;
|
||||
|
||||
return false;
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 417 B After Width: | Height: | Size: 417 B |
@@ -12,7 +12,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AstrumDeus
|
||||
{
|
||||
public class AstrumDeusTailSpectral : ModNPC
|
||||
public class AstrumDeusTail : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.noTileCollide = true;
|
||||
NPC.canGhostHeal = false;
|
||||
NPC.HitSound = SoundID.NPCHit4;
|
||||
NPC.DeathSound = AstrumDeusHeadSpectral.DeathSound;
|
||||
NPC.DeathSound = AstrumDeusHead.DeathSound;
|
||||
NPC.netAlways = true;
|
||||
NPC.boss = true;
|
||||
Music = CalamityMod.Instance.GetMusicFromMusicMod("AstrumDeus") ?? MusicID.Boss3;
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -18,7 +18,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
|
||||
private void UpdateCalIndex()
|
||||
{
|
||||
int CalType = ModContent.NPCType<CalamitasRun3>();
|
||||
int CalType = ModContent.NPCType<CalamitasClone>();
|
||||
if (CalIndex >= 0 && Main.npc[CalIndex].active && Main.npc[CalIndex].type == CalType)
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
|
||||
private bool UpdateCalIndex()
|
||||
{
|
||||
int CalType = ModContent.NPCType<CalamitasRun3>();
|
||||
int CalType = ModContent.NPCType<CalamitasClone>();
|
||||
if (CalIndex >= 0 && Main.npc[CalIndex].active && Main.npc[CalIndex].type == CalType)
|
||||
{
|
||||
return true;
|
||||
|
||||
@@ -28,7 +28,7 @@ using CalamityMod.Sounds;
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class CalamitasRun3 : ModNPC
|
||||
public class CalamitasClone : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -161,7 +161,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
npcOffset += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture, npcOffset, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, origin, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CalamitasRun3Glow").Value;
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CalamitasCloneGlow").Value;
|
||||
Color color = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 795 B After Width: | Height: | Size: 795 B |
@@ -16,7 +16,7 @@ using System.IO;
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class CalamitasRun : ModNPC
|
||||
public class Cataclysm : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
{
|
||||
int associatedNPCType = ModContent.NPCType<CalamitasRun3>();
|
||||
int associatedNPCType = ModContent.NPCType<CalamitasClone>();
|
||||
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
|
||||
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
|
||||
@@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CalamitasRunGlow").Value;
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CataclysmGlow").Value;
|
||||
Color color37 = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 796 B |
@@ -16,7 +16,7 @@ using System.IO;
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class CalamitasRun2 : ModNPC
|
||||
public class Catastrophe : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
{
|
||||
int associatedNPCType = ModContent.NPCType<CalamitasRun3>();
|
||||
int associatedNPCType = ModContent.NPCType<CalamitasClone>();
|
||||
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
|
||||
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
|
||||
@@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CalamitasRun2Glow").Value;
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CatastropheGlow").Value;
|
||||
Color color37 = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 755 B |
@@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
{
|
||||
int associatedNPCType = ModContent.NPCType<CalamitasRun3>();
|
||||
int associatedNPCType = ModContent.NPCType<CalamitasClone>();
|
||||
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
|
||||
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
|
||||
|
||||
@@ -1201,8 +1201,8 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
else if (calamityGlobalNPC.newAI[0] <= (float)npc.lifeMax * 0.4)
|
||||
{
|
||||
NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType<CalamitasRun>(), npc.whoAmI);
|
||||
NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType<CalamitasRun2>(), npc.whoAmI);
|
||||
NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType<Cataclysm>(), npc.whoAmI);
|
||||
NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType<Catastrophe>(), npc.whoAmI);
|
||||
|
||||
string key = "Mods.CalamityMod.CalamitasBossText2";
|
||||
Color messageColor = Color.Orange;
|
||||
@@ -1957,7 +1957,7 @@ namespace CalamityMod.NPCs
|
||||
if (npc.localAI[1] > 12f)
|
||||
{
|
||||
npc.localAI[1] = 0f;
|
||||
float num867 = NPC.AnyNPCs(ModContent.NPCType<CalamitasRun2>()) ? 4f : 6f;
|
||||
float num867 = NPC.AnyNPCs(ModContent.NPCType<Catastrophe>()) ? 4f : 6f;
|
||||
num867 += enrageScale;
|
||||
int type = ModContent.ProjectileType<BrimstoneFire>();
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
@@ -2265,7 +2265,7 @@ namespace CalamityMod.NPCs
|
||||
SoundEngine.PlaySound(SoundID.Roar, npc.position);
|
||||
npc.rotation = num842;
|
||||
|
||||
float num870 = (NPC.AnyNPCs(ModContent.NPCType<CalamitasRun>()) ? 12f : 16f) + (death ? 4f * (1f - lifeRatio) : 0f);
|
||||
float num870 = (NPC.AnyNPCs(ModContent.NPCType<Cataclysm>()) ? 12f : 16f) + (death ? 4f * (1f - lifeRatio) : 0f);
|
||||
num870 += 4f * enrageScale;
|
||||
if (expertMode)
|
||||
num870 += 2f;
|
||||
@@ -3197,20 +3197,20 @@ namespace CalamityMod.NPCs
|
||||
if (head)
|
||||
{
|
||||
float splitAnimationTime = 180f;
|
||||
bool oneWormAlive = NPC.CountNPCS(ModContent.NPCType<AstrumDeusHeadSpectral>()) < 2;
|
||||
bool oneWormAlive = NPC.CountNPCS(ModContent.NPCType<AstrumDeusHead>()) < 2;
|
||||
bool deathModeFinalWormEnrage = death && doubleWormPhase && oneWormAlive && calamityGlobalNPC.newAI[1] >= resistanceTime;
|
||||
if (deathModeFinalWormEnrage)
|
||||
{
|
||||
if (calamityGlobalNPC.newAI[0] != 3f)
|
||||
{
|
||||
SoundEngine.PlaySound(AstrumDeusHeadSpectral.SplitSound, player.Center);
|
||||
SoundEngine.PlaySound(AstrumDeusHead.SplitSound, player.Center);
|
||||
calamityGlobalNPC.newAI[0] = 3f;
|
||||
npc.defense = 12;
|
||||
calamityGlobalNPC.DR = 0.075f;
|
||||
|
||||
// Despawns the other deus worm segments
|
||||
int bodyID = ModContent.NPCType<AstrumDeusBodySpectral>();
|
||||
int tailID = ModContent.NPCType<AstrumDeusTailSpectral>();
|
||||
int bodyID = ModContent.NPCType<AstrumDeusBody>();
|
||||
int tailID = ModContent.NPCType<AstrumDeusTail>();
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC wormseg = Main.npc[i];
|
||||
@@ -3256,8 +3256,8 @@ namespace CalamityMod.NPCs
|
||||
return;
|
||||
|
||||
// Mark all existing body and tail segments as inactive. This instantly frees up their NPC slots for the freshly spawned worms.
|
||||
int bodyID = ModContent.NPCType<AstrumDeusBodySpectral>();
|
||||
int tailID = ModContent.NPCType<AstrumDeusTailSpectral>();
|
||||
int bodyID = ModContent.NPCType<AstrumDeusBody>();
|
||||
int tailID = ModContent.NPCType<AstrumDeusTail>();
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC wormseg = Main.npc[i];
|
||||
@@ -3320,7 +3320,7 @@ namespace CalamityMod.NPCs
|
||||
netMessage.Send();
|
||||
}
|
||||
|
||||
SoundEngine.PlaySound(AstrumDeusHeadSpectral.SplitSound, player.Center);
|
||||
SoundEngine.PlaySound(AstrumDeusHead.SplitSound, player.Center);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -3358,10 +3358,10 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Check if other segments are still alive, if not, die
|
||||
if (npc.type != ModContent.NPCType<AstrumDeusHeadSpectral>())
|
||||
if (npc.type != ModContent.NPCType<AstrumDeusHead>())
|
||||
{
|
||||
bool shouldDespawn = true;
|
||||
int headType = ModContent.NPCType<AstrumDeusHeadSpectral>();
|
||||
int headType = ModContent.NPCType<AstrumDeusHead>();
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].type != headType || !Main.npc[i].active)
|
||||
@@ -3398,8 +3398,8 @@ namespace CalamityMod.NPCs
|
||||
if (npc.ai[0] == 0f)
|
||||
{
|
||||
int Previous = npc.whoAmI;
|
||||
int bodyType = ModContent.NPCType<AstrumDeusBodySpectral>();
|
||||
int tailType = ModContent.NPCType<AstrumDeusTailSpectral>();
|
||||
int bodyType = ModContent.NPCType<AstrumDeusBody>();
|
||||
int tailType = ModContent.NPCType<AstrumDeusTail>();
|
||||
for (int num36 = 0; num36 < maxLength; num36++)
|
||||
{
|
||||
int lol;
|
||||
@@ -3522,9 +3522,9 @@ namespace CalamityMod.NPCs
|
||||
npc.velocity.Y -= velocity;
|
||||
}
|
||||
|
||||
int headType = ModContent.NPCType<AstrumDeusHeadSpectral>();
|
||||
int bodyType = ModContent.NPCType<AstrumDeusBodySpectral>();
|
||||
int tailType = ModContent.NPCType<AstrumDeusBodySpectral>();
|
||||
int headType = ModContent.NPCType<AstrumDeusHead>();
|
||||
int bodyType = ModContent.NPCType<AstrumDeusBody>();
|
||||
int tailType = ModContent.NPCType<AstrumDeusBody>();
|
||||
if ((double)npc.position.Y < Main.topWorld + 16f)
|
||||
{
|
||||
for (int num957 = 0; num957 < Main.maxNPCs; num957++)
|
||||
@@ -3742,7 +3742,7 @@ namespace CalamityMod.NPCs
|
||||
else
|
||||
{
|
||||
// Shoot lasers
|
||||
if (npc.type == ModContent.NPCType<AstrumDeusBodySpectral>() && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
if (npc.type == ModContent.NPCType<AstrumDeusBody>() && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int shootTime = (doubleWormPhase && expertMode) ? 2 : 1;
|
||||
npc.localAI[0] += 1f;
|
||||
|
||||
@@ -478,9 +478,9 @@ namespace CalamityMod.NPCs
|
||||
ResetSavedIndex(ref primeVice, NPCID.PrimeVice);
|
||||
ResetSavedIndex(ref primeSaw, NPCID.PrimeSaw);
|
||||
ResetSavedIndex(ref brimstoneElemental, NPCType<BrimstoneElemental.BrimstoneElemental>());
|
||||
ResetSavedIndex(ref cataclysm, NPCType<CalamitasRun>());
|
||||
ResetSavedIndex(ref catastrophe, NPCType<CalamitasRun2>());
|
||||
ResetSavedIndex(ref calamitas, NPCType<CalamitasRun3>());
|
||||
ResetSavedIndex(ref cataclysm, NPCType<Cataclysm>());
|
||||
ResetSavedIndex(ref catastrophe, NPCType<Catastrophe>());
|
||||
ResetSavedIndex(ref calamitas, NPCType<CalamitasClone>());
|
||||
ResetSavedIndex(ref leviathan, NPCType<Leviathan.Leviathan>());
|
||||
ResetSavedIndex(ref siren, NPCType<Siren>());
|
||||
ResetSavedIndex(ref scavenger, NPCType<RavagerBody>());
|
||||
@@ -509,7 +509,7 @@ namespace CalamityMod.NPCs
|
||||
ResetSavedIndex(ref draedonExoMechPrime, NPCType<AresBody>());
|
||||
ResetSavedIndex(ref draedonExoMechPrimePlasmaCannon, NPCType<AresPlasmaFlamethrower>());
|
||||
|
||||
ResetSavedIndex(ref adultEidolonWyrmHead, NPCType<EidolonWyrmHeadHuge>());
|
||||
ResetSavedIndex(ref adultEidolonWyrmHead, NPCType<AdultEidolonWyrmHead>());
|
||||
|
||||
// Reset the enraged state every frame. The expectation is that bosses will continuously set it back to true if necessary.
|
||||
CurrentlyEnraged = false;
|
||||
@@ -2759,7 +2759,7 @@ namespace CalamityMod.NPCs
|
||||
// Adult Wyrm Ancient Doom
|
||||
if (npc.type == NPCID.AncientDoom)
|
||||
{
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCType<AdultEidolonWyrmHead>())
|
||||
return CultistAI.BuffedAncientDoomAI(npc, Mod);
|
||||
}
|
||||
|
||||
@@ -4175,7 +4175,7 @@ namespace CalamityMod.NPCs
|
||||
if (CalamityLists.DesertScourgeIDs.Contains(npc.type) || CalamityLists.EaterofWorldsIDs.Contains(npc.type) || npc.type == NPCID.Creeper ||
|
||||
CalamityLists.PerforatorIDs.Contains(npc.type) || CalamityLists.AquaticScourgeIDs.Contains(npc.type) || CalamityLists.DestroyerIDs.Contains(npc.type) ||
|
||||
CalamityLists.AstrumDeusIDs.Contains(npc.type) || CalamityLists.StormWeaverIDs.Contains(npc.type) || CalamityLists.ThanatosIDs.Contains(npc.type) ||
|
||||
npc.type == NPCType<DarkEnergy>() || npc.type == NPCType<RavagerBody>() || CalamityLists.AresIDs.Contains(npc.type) || npc.type == NPCType<CrabulonIdle>())
|
||||
npc.type == NPCType<DarkEnergy>() || npc.type == NPCType<RavagerBody>() || CalamityLists.AresIDs.Contains(npc.type) || npc.type == NPCType<Crabulon>())
|
||||
{
|
||||
double damageMult = CalamityLists.ThanatosIDs.Contains(npc.type) ? 0.35 : 0.5;
|
||||
if (item.CountsAsClass<MeleeDamageClass>() && item.type != ItemType<UltimusCleaver>() && item.type != ItemType<InfernaCutter>())
|
||||
@@ -5651,7 +5651,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
return DownedBossSystem.downedDesertScourge;
|
||||
}
|
||||
else if (type == NPCType<CrabulonIdle>())
|
||||
else if (type == NPCType<Crabulon>())
|
||||
{
|
||||
return DownedBossSystem.downedCrabulon;
|
||||
}
|
||||
@@ -5679,7 +5679,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
return DownedBossSystem.downedBrimstoneElemental;
|
||||
}
|
||||
else if (type == NPCType<CalamitasRun3>())
|
||||
else if (type == NPCType<CalamitasClone>())
|
||||
{
|
||||
return DownedBossSystem.downedCalamitas;
|
||||
}
|
||||
@@ -5691,7 +5691,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
return DownedBossSystem.downedAstrumAureus;
|
||||
}
|
||||
else if (type == NPCType<AstrumDeusHeadSpectral>() || type == NPCType<AstrumDeusBodySpectral>() || type == NPCType<AstrumDeusTailSpectral>())
|
||||
else if (type == NPCType<AstrumDeusHead>() || type == NPCType<AstrumDeusBody>() || type == NPCType<AstrumDeusTail>())
|
||||
{
|
||||
return DownedBossSystem.downedAstrumDeus;
|
||||
}
|
||||
@@ -5751,7 +5751,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
return DownedBossSystem.downedSCal;
|
||||
}
|
||||
else if (type == NPCType<EidolonWyrmHeadHuge>())
|
||||
else if (type == NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
return DownedBossSystem.downedAdultEidolonWyrm;
|
||||
}
|
||||
@@ -5821,8 +5821,8 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (target.damage > 0 && !target.boss && !target.friendly && !target.dontTakeDamage && target.type != NPCID.Creeper && target.type != NPCType<RavagerClawLeft>() &&
|
||||
target.type != NPCID.MourningWood && target.type != NPCID.Everscream && target.type != NPCID.SantaNK1 && target.type != NPCType<RavagerClawRight>() &&
|
||||
target.type != NPCType<Reaper>() && target.type != NPCType<Mauler>() && target.type != NPCType<EidolonWyrmHead>() && target.type != NPCID.GolemFistLeft && target.type != NPCID.GolemFistRight &&
|
||||
target.type != NPCType<EidolonWyrmHeadHuge>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityLists.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type))
|
||||
target.type != NPCType<ReaperShark>() && target.type != NPCType<Mauler>() && target.type != NPCType<EidolonWyrmHead>() && target.type != NPCID.GolemFistLeft && target.type != NPCID.GolemFistRight &&
|
||||
target.type != NPCType<AdultEidolonWyrmHead>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityLists.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
{
|
||||
int associatedNPCType = ModContent.NPCType<CrabulonIdle>();
|
||||
int associatedNPCType = ModContent.NPCType<Crabulon>();
|
||||
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
|
||||
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
|
||||
|
||||
@@ -26,7 +26,7 @@ using Terraria.GameContent.ItemDropRules;
|
||||
namespace CalamityMod.NPCs.Crabulon
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class CrabulonIdle : ModNPC
|
||||
public class Crabulon : ModNPC
|
||||
{
|
||||
private int biomeEnrageTimer = CalamityGlobalNPC.biomeEnrageTimerMax;
|
||||
private int shotSpacing = 1000;
|
||||
@@ -746,9 +746,9 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
Texture2D glow = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonIdleGlow").Value;
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonIdleAlt").Value;
|
||||
Texture2D textureGlow = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonIdleAltGlow").Value;
|
||||
Texture2D glow = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonGlow").Value;
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonAlt").Value;
|
||||
Texture2D textureGlow = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonAltGlow").Value;
|
||||
Texture2D textureAttack = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonAttack").Value;
|
||||
Texture2D textureAttackGlow = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonAttackGlow").Value;
|
||||
|
||||
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 934 B |
@@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
if (NPC.ai[2] == 0f && NPC.localAI[1] == 0f && Main.netMode != NetmodeID.MultiplayerClient && (NPC.ai[0] < 3f || BossRushEvent.BossRushActive || (death && NPC.ai[0] > 3f))) //spawn shield for phase 0 1 2, not 3 4 5
|
||||
{
|
||||
int num6 = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<CryogenIce>(), NPC.whoAmI);
|
||||
int num6 = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<CryogenShield>(), NPC.whoAmI);
|
||||
NPC.ai[2] = num6 + 1;
|
||||
NPC.localAI[1] = -1f;
|
||||
NPC.netUpdate = true;
|
||||
@@ -180,7 +180,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
}
|
||||
|
||||
int num7 = (int)NPC.ai[2] - 1;
|
||||
if (num7 != -1 && Main.npc[num7].active && Main.npc[num7].type == ModContent.NPCType<CryogenIce>())
|
||||
if (num7 != -1 && Main.npc[num7].active && Main.npc[num7].type == ModContent.NPCType<CryogenShield>())
|
||||
{
|
||||
NPC.dontTakeDamage = true;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Cryogen
|
||||
{
|
||||
public class CryogenIce : ModNPC
|
||||
public class CryogenShield : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
NPC.rotation += 0.15f;
|
||||
|
||||
if (NPC.type == ModContent.NPCType<CryogenIce>())
|
||||
if (NPC.type == ModContent.NPCType<CryogenShield>())
|
||||
{
|
||||
int num989 = (int)NPC.ai[0];
|
||||
if (Main.npc[num989].active && Main.npc[num989].type == ModContent.NPCType<Cryogen>())
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
@@ -345,7 +345,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
// Never drop anything if this Eidolon Wyrm is a minion during an AEW fight.
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(EidolonWyrmHeadHuge.CanMinionsDropThings);
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings);
|
||||
|
||||
LeadingConditionRule notDuringCultistFight = new LeadingConditionRule(DropHelper.If(() => !NPC.LunarApocalypseIsUp));
|
||||
notDuringCultistFight.Add(ModContent.ItemType<EidolonTablet>(), 4);
|
||||
|
||||
@@ -988,7 +988,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
if (!DownedBossSystem.downedPolterghast)
|
||||
{
|
||||
if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active)
|
||||
SoundEngine.PlaySound(Reaper.SearchRoarSound, Main.player[Main.myPlayer].position);
|
||||
SoundEngine.PlaySound(ReaperShark.SearchRoarSound, Main.player[Main.myPlayer].position);
|
||||
|
||||
string key = "Mods.CalamityMod.GhostBossText";
|
||||
Color messageColor = Color.RoyalBlue;
|
||||
|
||||
@@ -135,6 +135,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
float velocityScale = death ? 4f : 2f;
|
||||
float velocityBoost = velocityScale * (1f - lifeRatio);
|
||||
float num798 = 8f + velocityBoost + 3f * enrageScale;
|
||||
if (Main.getGoodWorld)
|
||||
num798 *= 1.15f;
|
||||
|
||||
num797 = num798 / num797;
|
||||
num795 *= num797;
|
||||
num796 *= num797;
|
||||
@@ -168,6 +171,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
|
||||
// Velocity
|
||||
npc.velocity = Vector2.Normalize(Main.player[npc.target].Center + (malice ? Main.player[npc.target].velocity * 20f : Vector2.Zero) - npc.Center) * ((death ? 20f : 16f) + 4f * enrageScale);
|
||||
if (Main.getGoodWorld)
|
||||
npc.velocity *= 1.15f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,6 +231,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
{
|
||||
npc.ai[2] -= 1f;
|
||||
npc.velocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center) * ((death ? -10f : -8f) - 2f * enrageScale);
|
||||
if (Main.getGoodWorld)
|
||||
npc.velocity *= 1.15f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -436,6 +443,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
float num804 = Main.player[npc.target].Center.Y - vector99.Y;
|
||||
float num805 = (float)Math.Sqrt(num803 * num803 + num804 * num804);
|
||||
float num806 = (death ? 2f : 1f) + (creeperScale * 0.1f);
|
||||
if (Main.getGoodWorld)
|
||||
num806 *= 3f;
|
||||
|
||||
if (num805 < num806)
|
||||
{
|
||||
@@ -637,8 +646,16 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
chargeVelocity += 4f * enrageScale;
|
||||
Vector2 value2 = Main.player[npc.target].Center - npc.Center;
|
||||
value2.Normalize();
|
||||
value2 *= chargeVelocity;
|
||||
npc.velocity = (npc.velocity * 99f + value2) / 100f;
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
value2 *= 12f;
|
||||
npc.velocity = (npc.velocity * 49f + value2) / 50f;
|
||||
}
|
||||
else
|
||||
{
|
||||
value2 *= chargeVelocity;
|
||||
npc.velocity = (npc.velocity * 99f + value2) / 100f;
|
||||
}
|
||||
|
||||
Vector2 vector101 = new Vector2(npc.Center.X, npc.Center.Y);
|
||||
float num815 = Main.npc[NPC.crimsonBoss].Center.X - vector101.X;
|
||||
@@ -682,7 +699,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
|
||||
public static int GetBrainOfCthuluCreepersCountRevDeath()
|
||||
{
|
||||
return (CalamityWorld.death || BossRushEvent.BossRushActive) ? 30 : 25;
|
||||
return Main.getGoodWorld ? 40 : (CalamityWorld.death || BossRushEvent.BossRushActive) ? 30 : 25;
|
||||
}
|
||||
|
||||
private static float GetCrimsonBossKnockBack(NPC npc, int numPlayers, float lifeScale, float baseKnockBackResist)
|
||||
|
||||
@@ -75,6 +75,18 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
idleTime = 30;
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
iceMistFireRate = 30;
|
||||
iceMistSpeed = 15f;
|
||||
fireballFireRate = 6;
|
||||
fireballSpeed *= 1.25f;
|
||||
lightningOrbPhaseTime = 60;
|
||||
ancientLightSpawnRate = 10;
|
||||
ancientLightAmt = 5;
|
||||
idleTime = 20;
|
||||
}
|
||||
|
||||
npc.Calamity().CurrentlyEnraged = !BossRushEvent.BossRushActive && malice;
|
||||
|
||||
// Get a target
|
||||
@@ -1078,12 +1090,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
float lifeRatio = Main.npc[(int)npc.ai[0]].life / (float)Main.npc[(int)npc.ai[0]].lifeMax;
|
||||
|
||||
bool phase2 = lifeRatio < 0.7f;
|
||||
bool phase3 = lifeRatio < (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>() ? 0.6f : 0.55f);
|
||||
bool phase3 = lifeRatio < (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>() ? 0.6f : 0.55f);
|
||||
bool phase4 = lifeRatio < 0.4f;
|
||||
|
||||
bool kill = npc.ai[1] < 0f || !Main.npc[(int)npc.ai[0]].active;
|
||||
int target = Main.maxPlayers;
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss || Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss || Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
if (target == Main.maxPlayers)
|
||||
target = Main.npc[(int)npc.ai[0]].target;
|
||||
@@ -1094,7 +1106,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (phase4 || death)
|
||||
rateOfChange = 3;
|
||||
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
npc.dontTakeDamage = true;
|
||||
}
|
||||
else
|
||||
@@ -1116,7 +1128,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
double deg = npc.ai[3];
|
||||
double rad = deg * (Math.PI / 180);
|
||||
double dist = 550;
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
float aiGateValue = Main.npc[(int)npc.ai[0]].Calamity().newAI[2] - 30f;
|
||||
int ancientDoomScale = (int)(aiGateValue / 120f);
|
||||
@@ -1169,7 +1181,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
|
||||
// Triple damage if the Adult Eidolon Wyrm is alive
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
damage *= 3;
|
||||
|
||||
kill = true;
|
||||
|
||||
@@ -145,6 +145,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
int index = npc.whoAmI;
|
||||
|
||||
int totalSegments = death ? 60 : 80;
|
||||
if (Main.getGoodWorld)
|
||||
totalSegments *= 2;
|
||||
|
||||
for (int j = 0; j <= totalSegments; j++)
|
||||
{
|
||||
int type = NPCID.TheDestroyerBody;
|
||||
@@ -387,6 +390,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
speed *= increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f;
|
||||
turnSpeed *= increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
speed *= 1.2f;
|
||||
turnSpeed *= 1.2f;
|
||||
}
|
||||
|
||||
Vector2 vector3 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num20 = player.position.X + (player.width / 2);
|
||||
float num21 = player.position.Y + (player.height / 2);
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
// Vile spit
|
||||
if (npc.type == NPCID.EaterofWorldsBody)
|
||||
{
|
||||
if (Main.rand.NextBool(900) && phase2)
|
||||
if (Main.rand.NextBool(Main.getGoodWorld ? 600 : 900) && phase2)
|
||||
{
|
||||
npc.TargetClosest();
|
||||
if (Collision.CanHitLine(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1))
|
||||
@@ -310,6 +310,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num38 += 0.015f * enrageScale;
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num37 += 4f;
|
||||
num38 += 0.05f;
|
||||
}
|
||||
|
||||
Vector2 vector2 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num39 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2);
|
||||
float num40 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2);
|
||||
@@ -339,6 +345,10 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num52 = (float)Math.Sqrt(num39 * num39 + num40 * num40);
|
||||
int num53 = npc.width;
|
||||
num53 = (int)(num53 * npc.scale);
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
num53 = 62;
|
||||
|
||||
num52 = (num52 - num53) / num52;
|
||||
num39 *= num52;
|
||||
num40 *= num52;
|
||||
|
||||
@@ -121,6 +121,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
hoverAcceleration += 0.17f * (1f - lifeRatio);
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
hoverSpeed += 1f;
|
||||
hoverAcceleration += 0.05f;
|
||||
}
|
||||
|
||||
Vector2 hoverDestination = Main.player[npc.target].Center - Vector2.UnitY * 200f;
|
||||
Vector2 idealVelocity = npc.SafeDirectionTo(hoverDestination) * hoverSpeed;
|
||||
npc.SimpleFlyMovement(idealVelocity, hoverAcceleration);
|
||||
@@ -140,7 +146,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (!Main.player[npc.target].dead)
|
||||
npc.ai[3] += 1f;
|
||||
|
||||
if (npc.ai[3] >= 40f)
|
||||
float servantSpawnGateValue = 40f;
|
||||
if (Main.getGoodWorld)
|
||||
servantSpawnGateValue *= 0.8f;
|
||||
|
||||
if (npc.ai[3] >= servantSpawnGateValue)
|
||||
{
|
||||
npc.ai[3] = 0f;
|
||||
npc.rotation = num8;
|
||||
@@ -174,6 +184,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
chargeSpeed += 5f * enrageScale;
|
||||
if (death)
|
||||
chargeSpeed += 8.5f * (1f - lifeRatio);
|
||||
if (Main.getGoodWorld)
|
||||
chargeSpeed += 1f;
|
||||
|
||||
npc.velocity = npc.SafeDirectionTo(Main.player[npc.target].Center) * chargeSpeed;
|
||||
|
||||
npc.ai[1] = 2f;
|
||||
@@ -188,6 +201,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (npc.ai[2] >= 40f)
|
||||
{
|
||||
npc.velocity *= 0.975f;
|
||||
if (Main.getGoodWorld)
|
||||
npc.velocity *= 0.99f;
|
||||
|
||||
if (npc.velocity.X > -0.1 && npc.velocity.X < 0.1)
|
||||
npc.velocity.X = 0f;
|
||||
if (npc.velocity.Y > -0.1 && npc.velocity.Y < 0.1)
|
||||
@@ -199,6 +215,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
int num28 = 90;
|
||||
if (death)
|
||||
num28 -= (int)Math.Round(120f * (1f - lifeRatio));
|
||||
if (Main.getGoodWorld)
|
||||
num28 -= 15;
|
||||
|
||||
if (npc.ai[2] >= num28)
|
||||
{
|
||||
@@ -349,6 +367,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
}
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
hoverSpeed += 1f;
|
||||
hoverAcceleration += 0.1f;
|
||||
}
|
||||
|
||||
Vector2 idealHoverVelocity = npc.SafeDirectionTo(hoverDestination) * hoverSpeed;
|
||||
npc.SimpleFlyMovement(idealHoverVelocity, hoverAcceleration);
|
||||
|
||||
@@ -381,6 +405,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
chargeSpeed *= 1.15f;
|
||||
if (npc.ai[3] == 2f)
|
||||
chargeSpeed *= 1.3f;
|
||||
if (Main.getGoodWorld)
|
||||
chargeSpeed *= 1.2f;
|
||||
|
||||
npc.velocity = npc.SafeDirectionTo(Main.player[npc.target].Center) * chargeSpeed;
|
||||
npc.ai[1] = 2f;
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
}
|
||||
|
||||
// Enrage if the target isn't inside the temple
|
||||
// Turbo enrage if target isn't inside the temple and it's malice mode
|
||||
// Turbo enrage if target isn't inside the temple and it's malice mode or for the worthy
|
||||
bool enrage = true;
|
||||
bool turboEnrage = false;
|
||||
if (Main.player[npc.target].Center.Y > Main.worldSurface * 16.0)
|
||||
@@ -66,12 +66,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (tile.WallType == WallID.LihzahrdBrickUnsafe)
|
||||
enrage = false;
|
||||
else
|
||||
turboEnrage = malice;
|
||||
turboEnrage = malice || Main.getGoodWorld;
|
||||
}
|
||||
else
|
||||
turboEnrage = malice;
|
||||
turboEnrage = malice || Main.getGoodWorld;
|
||||
|
||||
if (malice)
|
||||
if (malice || Main.getGoodWorld)
|
||||
enrage = true;
|
||||
|
||||
npc.Calamity().CurrentlyEnraged = !BossRushEvent.BossRushActive && (enrage || turboEnrage);
|
||||
@@ -202,6 +202,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (npc.ai[1] > 0f)
|
||||
{
|
||||
npc.ai[1] += 1f;
|
||||
if (Main.getGoodWorld)
|
||||
npc.ai[1] += 100f;
|
||||
if (enrage || death)
|
||||
npc.ai[1] += 18f;
|
||||
else
|
||||
@@ -409,7 +411,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
|
||||
|
||||
// Enrage if the target isn't inside the temple
|
||||
// Turbo enrage if target isn't inside the temple and it's malice mode
|
||||
// Turbo enrage if target isn't inside the temple and it's malice mode or for the worthy
|
||||
bool enrage = true;
|
||||
bool turboEnrage = false;
|
||||
if (Main.player[npc.target].Center.Y > Main.worldSurface * 16.0)
|
||||
@@ -421,12 +423,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (tile.WallType == WallID.LihzahrdBrickUnsafe)
|
||||
enrage = false;
|
||||
else
|
||||
turboEnrage = malice;
|
||||
turboEnrage = malice || Main.getGoodWorld;
|
||||
}
|
||||
else
|
||||
turboEnrage = malice;
|
||||
turboEnrage = malice || Main.getGoodWorld;
|
||||
|
||||
if (malice)
|
||||
if (malice || Main.getGoodWorld)
|
||||
enrage = true;
|
||||
|
||||
float aggression = turboEnrage ? 3f : enrage ? 2f : death ? 1.5f : 1f;
|
||||
@@ -458,6 +460,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
float num725 = Main.npc[NPC.golemBoss].Center.Y - vector80.Y;
|
||||
num725 -= 9f;
|
||||
num724 = (npc.type != NPCID.GolemFistLeft) ? (num724 + 78f) : (num724 - 84f);
|
||||
if (Main.getGoodWorld)
|
||||
num724 = (npc.type != NPCID.GolemFistLeft) ? (num724 - 40f) : (num724 + 40f);
|
||||
|
||||
float num726 = (float)Math.Sqrt(num724 * num724 + num725 * num725);
|
||||
if (num726 < 12f + num723)
|
||||
{
|
||||
@@ -662,7 +667,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
npc.dontTakeDamage = flag41 || flag42;
|
||||
|
||||
// Stay in position on top of body
|
||||
npc.Center = Main.npc[NPC.golemBoss].Center - new Vector2(3f, 57f);
|
||||
npc.Center = Main.npc[NPC.golemBoss].Center - new Vector2(Main.getGoodWorld ? 2f : 3f, Main.getGoodWorld ? 37f : 57f);
|
||||
|
||||
// Enrage if the target isn't inside the temple
|
||||
bool enrage = true;
|
||||
@@ -676,12 +681,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (tile.WallType == WallID.LihzahrdBrickUnsafe)
|
||||
enrage = false;
|
||||
else
|
||||
turboEnrage = malice;
|
||||
turboEnrage = malice || Main.getGoodWorld;
|
||||
}
|
||||
else
|
||||
turboEnrage = malice;
|
||||
turboEnrage = malice || Main.getGoodWorld;
|
||||
|
||||
if (malice)
|
||||
if (malice || Main.getGoodWorld)
|
||||
enrage = true;
|
||||
|
||||
// Alpha
|
||||
@@ -912,12 +917,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (tile.WallType == WallID.LihzahrdBrickUnsafe)
|
||||
enrage = false;
|
||||
else
|
||||
turboEnrage = malice;
|
||||
turboEnrage = malice || Main.getGoodWorld;
|
||||
}
|
||||
else
|
||||
turboEnrage = malice;
|
||||
turboEnrage = malice || Main.getGoodWorld;
|
||||
|
||||
if (malice)
|
||||
if (malice || Main.getGoodWorld)
|
||||
enrage = true;
|
||||
|
||||
if (turboEnrage && NPC.golemBoss >= 0)
|
||||
@@ -1108,6 +1113,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
for (int num713 = 0; num713 < 2; num713++)
|
||||
{
|
||||
Vector2 vector89 = new Vector2(npc.Center.X, npc.Center.Y - 50f);
|
||||
if (Main.getGoodWorld)
|
||||
vector89.Y += 30f;
|
||||
if (num713 == 0)
|
||||
vector89.X -= 14f;
|
||||
else if (num713 == 1)
|
||||
|
||||
@@ -14,11 +14,20 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
{
|
||||
public static bool BuffedKingSlimeAI(NPC npc, Mod mod)
|
||||
{
|
||||
// Percent life remaining
|
||||
float lifeRatio = npc.life / (float)npc.lifeMax;
|
||||
|
||||
// Variables
|
||||
float num234 = 1f;
|
||||
bool teleporting = false;
|
||||
bool flag9 = false;
|
||||
npc.aiAction = 0;
|
||||
float num237 = 2f;
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num237 -= 1f - lifeRatio;
|
||||
num234 *= num237;
|
||||
}
|
||||
|
||||
// Reset damage
|
||||
npc.damage = npc.defDamage;
|
||||
@@ -35,9 +44,6 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles)
|
||||
npc.TargetClosest();
|
||||
|
||||
// Percent life remaining
|
||||
float lifeRatio = npc.life / (float)npc.lifeMax;
|
||||
|
||||
// Phases based on life percentage
|
||||
bool phase2 = lifeRatio < 0.75f;
|
||||
bool phase3 = lifeRatio < 0.5f;
|
||||
@@ -155,6 +161,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
npc.ai[0] += 1f;
|
||||
num234 = MathHelper.Clamp((60f - npc.ai[0]) / 60f, 0f, 1f);
|
||||
num234 = 0.5f + num234 * 0.5f;
|
||||
if (Main.getGoodWorld)
|
||||
num234 *= num237;
|
||||
|
||||
if (npc.ai[0] >= 60f)
|
||||
flag9 = true;
|
||||
@@ -199,6 +207,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
npc.ai[0] += 1f;
|
||||
num234 = MathHelper.Clamp(npc.ai[0] / 30f, 0f, 1f);
|
||||
num234 = 0.5f + num234 * 0.5f;
|
||||
if (Main.getGoodWorld)
|
||||
num234 *= num237;
|
||||
|
||||
if (npc.ai[0] >= 30f && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
@@ -307,12 +317,19 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
}
|
||||
|
||||
// Change jump velocity
|
||||
else if (npc.target < Main.maxPlayers && ((npc.direction == 1 && npc.velocity.X < 3f) || (npc.direction == -1 && npc.velocity.X > -3f)))
|
||||
else if (npc.target < Main.maxPlayers)
|
||||
{
|
||||
if ((npc.direction == -1 && npc.velocity.X < 0.1) || (npc.direction == 1 && npc.velocity.X > -0.1))
|
||||
npc.velocity.X += (malice ? 0.4f : death ? 0.25f : 0.2f) * npc.direction;
|
||||
else
|
||||
npc.velocity.X *= malice ? 0.9f : death ? 0.92f : 0.93f;
|
||||
float num252 = 3f;
|
||||
if (Main.getGoodWorld)
|
||||
num252 = 6f;
|
||||
|
||||
if ((npc.direction == 1 && npc.velocity.X < num252) || (npc.direction == -1 && npc.velocity.X > 0f - num252))
|
||||
{
|
||||
if ((npc.direction == -1 && npc.velocity.X < 0.1) || (npc.direction == 1 && npc.velocity.X > -0.1))
|
||||
npc.velocity.X += (malice ? 0.4f : death ? 0.25f : 0.2f) * npc.direction;
|
||||
else
|
||||
npc.velocity.X *= malice ? 0.9f : death ? 0.92f : 0.93f;
|
||||
}
|
||||
}
|
||||
|
||||
// Spawn dust
|
||||
|
||||
@@ -181,6 +181,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
velocity *= tileEnrageMult;
|
||||
acceleration *= tileEnrageMult;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
velocity *= 1.15f;
|
||||
acceleration *= 1.15f;
|
||||
}
|
||||
|
||||
// Velocity ranges from 4 to 7.2, Acceleration ranges from 0.04 to 0.072, non-enraged phase 1
|
||||
// Velocity ranges from 7 to 12.6, Acceleration ranges from 0.07 to 0.126, non-enraged phase 2
|
||||
// Velocity ranges from 9 to 16.2, Acceleration ranges from 0.07 to 0.126, non-enraged phase 3
|
||||
@@ -288,6 +294,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (enrage)
|
||||
npc.localAI[1] += 2f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
npc.localAI[1] += 1f;
|
||||
|
||||
// If hit, fire projectiles even if target is behind tiles
|
||||
if (npc.justHit)
|
||||
npc.localAI[3] = 1f;
|
||||
@@ -370,9 +379,25 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
npc.localAI[0] = 3f;
|
||||
int baseTentacles = death ? 10 : 8;
|
||||
int totalTentacles = (int)(baseTentacles * tileEnrageMult);
|
||||
if (Main.getGoodWorld)
|
||||
totalTentacles += 6;
|
||||
|
||||
for (int i = 0; i < totalTentacles; i++)
|
||||
{
|
||||
NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.PlanterasTentacle, npc.whoAmI, 0f, 0f, tentacleEnrageMult);
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].aiStyle == 52)
|
||||
{
|
||||
for (int j = 0; j < totalTentacles / 2 - 1; j++)
|
||||
{
|
||||
int num800 = NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.PlanterasTentacle, npc.whoAmI, 0f, 0f, tentacleEnrageMult);
|
||||
Main.npc[num800].ai[3] = i + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -812,6 +837,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
float num780 = 100f + (num781 * 150f);
|
||||
float deceleration = (death ? 0.5f : 0.8f) / (1f + num781);
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
num779 += 4f;
|
||||
|
||||
// Despawn if Plantera is gone
|
||||
if (!Main.npc[num778].active || num778 < 0)
|
||||
{
|
||||
|
||||
@@ -35,6 +35,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (enrageScale > 1f)
|
||||
enrageScale = 1f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
enrageScale += 0.5f;
|
||||
|
||||
if (BossRushEvent.BossRushActive)
|
||||
enrageScale = 2f;
|
||||
|
||||
|
||||
@@ -279,6 +279,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (handsDead && npc.ai[1] == 0f)
|
||||
{
|
||||
float num158 = BossRushEvent.BossRushActive ? 10f : malice ? 15f : phase2 ? (60f - (death ? 30f * (1f - lifeRatio) : 0f)) : 75f;
|
||||
if (Main.getGoodWorld)
|
||||
num158 *= 0.8f;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && calamityGlobalNPC.newAI[1] >= num158)
|
||||
{
|
||||
calamityGlobalNPC.newAI[1] = 0f;
|
||||
@@ -338,6 +341,13 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
float num170 = 3.5f - (death ? 1f - lifeRatio : 0f);
|
||||
float num171 = 0.08f + (death ? 0.04f * (1f - lifeRatio) : 0f);
|
||||
float num172 = 8.5f - (death ? 2f * (1f - lifeRatio) : 0f);
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num169 += 0.01f;
|
||||
num170 += 1f;
|
||||
num171 += 0.05f;
|
||||
num172 += 2f;
|
||||
}
|
||||
if (malice)
|
||||
{
|
||||
num169 *= 1.25f;
|
||||
@@ -424,6 +434,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num176 *= baseDistanceVelocityMult;
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
num176 *= 1.3f;
|
||||
|
||||
num175 = num176 / num175;
|
||||
npc.velocity.X = num173 * num175;
|
||||
npc.velocity.Y = num174 * num175;
|
||||
|
||||
@@ -107,6 +107,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num421 = 9.5f;
|
||||
num422 = 0.175f;
|
||||
}
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num421 *= 1.15f;
|
||||
num422 *= 1.15f;
|
||||
}
|
||||
// Reduce acceleration if target is holding a true melee weapon
|
||||
if (Main.player[npc.target].HoldingTrueMeleeWeapon())
|
||||
{
|
||||
@@ -218,6 +223,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num430 = 9.5f;
|
||||
num431 = 0.25f;
|
||||
}
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num430 *= 1.15f;
|
||||
num431 *= 1.15f;
|
||||
}
|
||||
// Reduce acceleration if target is holding a true melee weapon
|
||||
if (Main.player[npc.target].HoldingTrueMeleeWeapon())
|
||||
{
|
||||
@@ -438,6 +448,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num383 += 0.1f * (1f - lifeRatio);
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num382 *= 1.15f;
|
||||
num383 *= 1.15f;
|
||||
}
|
||||
|
||||
int num384 = 1;
|
||||
if (npc.position.X + (npc.width / 2) < Main.player[npc.target].position.X + Main.player[npc.target].width)
|
||||
num384 = -1;
|
||||
@@ -490,7 +506,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
else if (npc.position.Y + npc.height < Main.player[npc.target].position.Y && num388 < 400f)
|
||||
{
|
||||
if (!Main.player[npc.target].dead)
|
||||
{
|
||||
npc.ai[3] += 1f;
|
||||
if (Main.getGoodWorld)
|
||||
npc.ai[3] += 0.5f;
|
||||
}
|
||||
|
||||
if (npc.ai[3] >= 30f)
|
||||
{
|
||||
@@ -526,6 +546,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num393 += 10f * enrageScale;
|
||||
if (death)
|
||||
num393 += 12f * (1f - lifeRatio);
|
||||
if (Main.getGoodWorld)
|
||||
num393 += 2f;
|
||||
|
||||
Vector2 vector41 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num394 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector41.X;
|
||||
@@ -664,6 +686,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num399 += 4.5f * enrageScale;
|
||||
num400 += 0.075f * enrageScale;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num399 *= 1.15f;
|
||||
num400 *= 1.15f;
|
||||
}
|
||||
|
||||
// Reduce acceleration if target is holding a true melee weapon
|
||||
if (Main.player[npc.target].HoldingTrueMeleeWeapon())
|
||||
{
|
||||
@@ -765,6 +793,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num409 += 4.5f * enrageScale;
|
||||
num410 += 0.15f * enrageScale;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num409 *= 1.15f;
|
||||
num410 *= 1.15f;
|
||||
}
|
||||
|
||||
// Reduce acceleration if target is holding a true melee weapon
|
||||
if (Main.player[npc.target].HoldingTrueMeleeWeapon())
|
||||
{
|
||||
@@ -864,6 +898,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (!spazAlive)
|
||||
num450 += 2f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
num450 += 2f;
|
||||
|
||||
Vector2 vector47 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num451 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector47.X;
|
||||
float num452 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - vector47.Y;
|
||||
@@ -936,7 +973,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
// Charge four times
|
||||
float chargeGateValue = 30f;
|
||||
chargeGateValue -= chargeGateValue / 4 * enrageScale;
|
||||
if (npc.ai[2] >= chargeTime + 30f)
|
||||
if (npc.ai[2] >= chargeTime + chargeGateValue)
|
||||
{
|
||||
npc.ai[2] = 0f;
|
||||
npc.ai[3] += 1f;
|
||||
@@ -966,6 +1003,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num64 *= 0.75f;
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num63 *= 1.15f;
|
||||
num64 *= 1.15f;
|
||||
}
|
||||
|
||||
int num408 = 1;
|
||||
if (npc.position.X + (npc.width / 2) < Main.player[npc.target].position.X + Main.player[npc.target].width)
|
||||
num408 = -1;
|
||||
@@ -1066,6 +1109,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
// Velocity
|
||||
float chargeVelocity = 20f + (death ? 6f * (0.7f - lifeRatio) : 0f);
|
||||
chargeVelocity += 10f * enrageScale;
|
||||
if (Main.getGoodWorld)
|
||||
chargeVelocity += 2f;
|
||||
if (npc.ai[2] == -1f || (!retAlive && npc.ai[3] == 4f))
|
||||
chargeVelocity *= 1.3f;
|
||||
|
||||
@@ -1155,6 +1200,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num425 += 0.3f * (1f - lifeRatio);
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num424 *= 1.15f;
|
||||
num425 *= 1.15f;
|
||||
}
|
||||
|
||||
int num426 = 1;
|
||||
if (npc.position.X + (npc.width / 2) < Main.player[npc.target].position.X + Main.player[npc.target].width)
|
||||
num426 = -1;
|
||||
@@ -1208,7 +1259,11 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
{
|
||||
// Fire cursed flame every half second
|
||||
if (!Main.player[npc.target].dead)
|
||||
{
|
||||
npc.ai[3] += 1f;
|
||||
if (Main.getGoodWorld)
|
||||
npc.ai[3] += 0.4f;
|
||||
}
|
||||
|
||||
if (npc.ai[3] >= 30f)
|
||||
{
|
||||
@@ -1247,6 +1302,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num434 += 8f * enrageScale;
|
||||
if (death)
|
||||
num434 += 12f * (1f - lifeRatio);
|
||||
if (Main.getGoodWorld)
|
||||
num434 *= 1.2f;
|
||||
|
||||
Vector2 vector45 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num435 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector45.X;
|
||||
@@ -1417,6 +1474,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (num445 > 400f)
|
||||
num440 += 0.5f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num440 *= 1.15f;
|
||||
num441 *= 1.15f;
|
||||
}
|
||||
|
||||
num445 = num440 / num445;
|
||||
num443 *= num445;
|
||||
num444 *= num445;
|
||||
@@ -1520,6 +1583,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
npc.rotation = num420;
|
||||
float num450 = 16.75f + (death ? 5f * (0.7f - lifeRatio) : 0f);
|
||||
num450 += 8f * enrageScale;
|
||||
if (Main.getGoodWorld)
|
||||
num450 *= 1.2f;
|
||||
|
||||
Vector2 distanceVector = Main.player[npc.target].Center - npc.Center;
|
||||
npc.velocity = Vector2.Normalize(distanceVector) * num450;
|
||||
@@ -1591,6 +1656,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num48 += 10f * enrageScale;
|
||||
if (npc.ai[2] == -1f || (!retAlive && npc.ai[3] == secondFastCharge))
|
||||
num48 *= 1.3f;
|
||||
if (Main.getGoodWorld)
|
||||
num48 *= 1.2f;
|
||||
|
||||
Vector2 distanceVector = Main.player[npc.target].Center + (!retAlive && malice ? Main.player[npc.target].velocity * 20f : Vector2.Zero) - npc.Center;
|
||||
npc.velocity = Vector2.Normalize(distanceVector) * num48;
|
||||
@@ -1682,6 +1749,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
num64 *= 0.75f;
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num63 *= 1.15f;
|
||||
num64 *= 1.15f;
|
||||
}
|
||||
|
||||
Vector2 vector11 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num65 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector11.X;
|
||||
float num66 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) + num62 - vector11.Y;
|
||||
|
||||
@@ -254,12 +254,19 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (malice)
|
||||
speedMult += 0.2f;
|
||||
|
||||
// NOTE: Max velocity is 8 in expert mode
|
||||
// NOTE: Max velocity is 8 in Expert Mode
|
||||
// NOTE: Max velocity is 9 in For The Worthy
|
||||
|
||||
float velocityBoost = 4f * (1f - lifeRatio);
|
||||
float velocityX = (BossRushEvent.BossRushActive ? 7f : death ? 3.5f : 2f) + velocityBoost;
|
||||
velocityX *= speedMult;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
velocityX *= 1.1f;
|
||||
velocityX += 0.2f;
|
||||
}
|
||||
|
||||
// NOTE: Values below are based on Rev Mode only!
|
||||
// Max velocity without enrage is 12
|
||||
// Min velocity is 1.5
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.localAI[0] = 1f;
|
||||
|
||||
if (Projectile.ai[0] == 0f)
|
||||
Projectile.damage = NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) ? Projectile.GetProjectileDamage(ModContent.NPCType<SupremeCalamitas>()) : Projectile.GetProjectileDamage(ModContent.NPCType<CalamitasRun3>());
|
||||
Projectile.damage = NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) ? Projectile.GetProjectileDamage(ModContent.NPCType<SupremeCalamitas>()) : Projectile.GetProjectileDamage(ModContent.NPCType<CalamitasClone>());
|
||||
}
|
||||
|
||||
Lighting.AddLight(Projectile.Center, 0.75f * Projectile.Opacity, 0f, 0f);
|
||||
|
||||
@@ -46,10 +46,10 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Time++;
|
||||
if (Time == TotalRitualTime - PulseTime)
|
||||
{
|
||||
int idx = NPC.NewNPC(Projectile.GetSource_FromThis(), (int)Projectile.Center.X, (int)Projectile.Center.Y - (int)MaxUpwardRise, ModContent.NPCType<AstrumDeusHeadSpectral>(), 1);
|
||||
int idx = NPC.NewNPC(Projectile.GetSource_FromThis(), (int)Projectile.Center.X, (int)Projectile.Center.Y - (int)MaxUpwardRise, ModContent.NPCType<AstrumDeusHead>(), 1);
|
||||
if (idx != -1)
|
||||
{
|
||||
SoundEngine.PlaySound(AstrumDeusHeadSpectral.SpawnSound, Projectile.Center);
|
||||
SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, Projectile.Center);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
CalamityUtils.BossAwakenMessage(idx);
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public ref float Time => ref Projectile.ai[0];
|
||||
public ref float ChargeTime => ref Projectile.ai[1];
|
||||
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Magic/Vehemenc";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Magic/Vehemence";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Vehemence");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class DivineHatchetBoomerang : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/DivineHatchet";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/SeekingScorcher";
|
||||
|
||||
private bool hasHitEnemy = false;
|
||||
private static int Lifetime = 300;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class FallenPaladinsHammerProj : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/TruePaladinsHammerMelee";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/FallenPaladinsHammer";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class GalaxySmasherHammer : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/GalaxySmasherMelee";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/GalaxySmasher";
|
||||
|
||||
private static float RotationIncrement = 0.22f;
|
||||
private static int Lifetime = 240;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class ProfanedSwordProj : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/ProfanedSword";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/BrimstoneSword";
|
||||
|
||||
private int explosionCount = 0;
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class PwnagehammerProj : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/PwnagehammerMelee";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Melee/Pwnagehammer";
|
||||
|
||||
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/PwnagehammerSound") { Volume = 0.16f, PitchVariance = 0.16f };
|
||||
public static readonly SoundStyle HomingSound = new("CalamityMod/Sounds/Item/PwnagehammerHoming") { Volume = 0.3f };
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
public class StarfleetMK2Gun : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Ranged/StarfleetMK2";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Ranged/Starmada";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class AccretionDisk2 : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/AccretionDisk";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/ElementalDisk";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class AccretionDiskProj : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/AccretionDisk";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/ElementalDisk";
|
||||
private int Lifetime = 400;
|
||||
private int ReboundTime = 30;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class AntumbraShardProjectile : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/XerocPitchfork";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/ShardofAntumbra";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -6,7 +6,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class DuneHopperProjectile : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/DuneHopper";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/WaveSkipper";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class FlameScytheProjectile : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/FlameScythe";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/SubductionSlicer";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class NanoblackMain : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/NanoblackReaperRogue";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/NanoblackReaper";
|
||||
|
||||
private const float RotationIncrement = 0.22f;
|
||||
private const int Lifetime = 240;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class NanoblackStealthSplit : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/NanoblackReaperRogue";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/NanoblackReaper";
|
||||
|
||||
private static int Lifetime = 300;
|
||||
private static float MaxSpeed = 40f;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
public class AeroExplosive : ModProjectile
|
||||
{
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Typeless/AeroDynamite";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Typeless/Skynamite";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
public Player Owner => Main.player[Projectile.owner];
|
||||
public ref float Time => ref Projectile.ai[0];
|
||||
public const int Lifetime = 300;
|
||||
public override string Texture => "CalamityMod/Items/SummonItems/BossRush";
|
||||
public override string Texture => "CalamityMod/Items/SummonItems/Terminus";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 50;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
|
||||
if (Projectile.ai[1] >= 0)
|
||||
{
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<CalamitasRun3>());
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<CalamitasClone>());
|
||||
Projectile.ai[1] = -30;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
bool validBoss = npc.boss && npc.type != ModContent.NPCType<CeaselessVoid>()
|
||||
&& npc.type != ModContent.NPCType<DevourerofGodsBody>()
|
||||
&& npc.type != ModContent.NPCType<AstrumDeusBodySpectral>()
|
||||
&& npc.type != ModContent.NPCType<AstrumDeusBody>()
|
||||
&& npc.type != ModContent.NPCType<ThanatosHead>()
|
||||
&& npc.type != ModContent.NPCType<ThanatosBody1>()
|
||||
&& npc.type != ModContent.NPCType<ThanatosBody2>()
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<EidolonWyrmHeadHuge>());
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<AdultEidolonWyrmHead>());
|
||||
|
||||
public override void SpecialVisuals(Player player)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<CalamitasRun3>());
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<CalamitasClone>());
|
||||
|
||||
public override void SpecialVisuals(Player player)
|
||||
{
|
||||
|
||||