Merge: Replace all giant lists with tModLoader ID Set Factory sets
This commit is contained in:
108 files changed
+1046
-3592
No files matched your search
@@ -61,13 +61,13 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region Eater of Worlds
|
||||
// 50% resist to Demon Scythe.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.DemonScythe))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.EaterOfWorlds, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.DemonScythe))));
|
||||
|
||||
// 40% resist to Sky Glaze.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<StickyFeather>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.EaterOfWorlds, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<StickyFeather>()))));
|
||||
|
||||
// 25% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(ResistTrueMelee(0.75f))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.EaterOfWorlds, Do(ResistTrueMelee(0.75f))));
|
||||
#endregion
|
||||
|
||||
#region Brain of Cthulhu: Creepers
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region The Perforators
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(PerforatorWormIDList.List, Do(ResistTrueMelee(0.5f))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Perforators, Do(ResistTrueMelee(0.5f))));
|
||||
#endregion
|
||||
|
||||
#region Wall of Flesh
|
||||
@@ -90,50 +90,50 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region Aquatic Scourge
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(ResistTrueMelee(0.5f))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AquaticScourge, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Adamantite Throwing Axe's lightning.
|
||||
// Twisting Thunder and Gael's Greatsword use this projectile too, but they are far beyond progression, so who cares!
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CultistBossLightningOrbArc))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AquaticScourge, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CultistBossLightningOrbArc))));
|
||||
|
||||
// 50% resist to Dormant Brimseeker.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<DormantBrimseekerBab>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AquaticScourge, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<DormantBrimseekerBab>()))));
|
||||
|
||||
// 50% resist to Mounted Scanner.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<MountedScannerLaser>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AquaticScourge, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<MountedScannerLaser>()))));
|
||||
|
||||
// 40% resist to Cryophobia.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<CryoBlast>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AquaticScourge, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<CryoBlast>()))));
|
||||
|
||||
// 30% resist to Meowthrower.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<MeowFire>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AquaticScourge, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<MeowFire>()))));
|
||||
|
||||
// 25% resist to Snowstorm Staff.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AquaticScourgeIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<Snowflake>(), ProjectileType<SnowflakeIceStar>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AquaticScourge, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<Snowflake>(), ProjectileType<SnowflakeIceStar>()))));
|
||||
#endregion
|
||||
|
||||
#region The Destroyer
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(ResistTrueMelee(0.5f))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Destroyer, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Adamantite Throwing Axe's lightning.
|
||||
// See Aquatic Scourge comment.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CultistBossLightningOrbArc))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Destroyer, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CultistBossLightningOrbArc))));
|
||||
|
||||
// 50% resist to Dormant Brimseeker.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<DormantBrimseekerBab>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Destroyer, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<DormantBrimseekerBab>()))));
|
||||
|
||||
// 45% resist to Mounted Scanner.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<MountedScannerLaser>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Destroyer, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<MountedScannerLaser>()))));
|
||||
|
||||
// 30% resist to Meowthrower.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<MeowFire>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Destroyer, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<MeowFire>()))));
|
||||
|
||||
// 25% resist to Avalanche's Ice Bombs and shards.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<IceBombFriendly>(), ProjectileType<FrostShardFriendly>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Destroyer, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<IceBombFriendly>(), ProjectileType<FrostShardFriendly>()))));
|
||||
|
||||
// 25% resist to Snowstorm Staff.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DestroyerIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<Snowflake>(), ProjectileType<SnowflakeIceStar>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Destroyer, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<Snowflake>(), ProjectileType<SnowflakeIceStar>()))));
|
||||
#endregion
|
||||
|
||||
#region Astrum Aureus
|
||||
@@ -162,25 +162,25 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region Ravager
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(ResistTrueMelee(0.5f))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Aegis Blade's explosions because the true melee resist ain't enough.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AegisBlast>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AegisBlast>()))));
|
||||
|
||||
// 40% resist to Icicle Arrows.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<IcicleArrowProj>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<IcicleArrowProj>()))));
|
||||
|
||||
// 35% resist to Flying Dragon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2SquireSonicBoom))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2SquireSonicBoom))));
|
||||
|
||||
// 25% resist to Lucrecia.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<DNA>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<DNA>()))));
|
||||
|
||||
// 20% resist to Aurora Blazer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<AuroraFire>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<AuroraFire>()))));
|
||||
|
||||
// 20% resist to The Hive.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<HiveNuke>(), ProjectileType<HiveMissile>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ravager, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<HiveNuke>(), ProjectileType<HiveMissile>()))));
|
||||
#endregion
|
||||
|
||||
#region Lunatic Cultist
|
||||
@@ -199,37 +199,37 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region Astrum Deus
|
||||
// 75% resist to Plaguenades.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.25f, ProjectileType<PlaguenadeBee>(), ProjectileType<PlaguenadeProj>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.25f, ProjectileType<PlaguenadeBee>(), ProjectileType<PlaguenadeProj>()))));
|
||||
|
||||
// 70% resist to Charged Blaster Cannon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.3f, ProjectileID.ChargedBlasterLaser))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.3f, ProjectileID.ChargedBlasterLaser))));
|
||||
|
||||
// 70% resist to Stardust Dragon Staff.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.3f, ProjectileID.StardustDragon1, ProjectileID.StardustDragon2, ProjectileID.StardustDragon3, ProjectileID.StardustDragon4))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.3f, ProjectileID.StardustDragon1, ProjectileID.StardustDragon2, ProjectileID.StardustDragon3, ProjectileID.StardustDragon4))));
|
||||
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(ResistTrueMelee(0.5f))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Atlantis (Atlantis gaming!).
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AtlantisSpear>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AtlantisSpear>()))));
|
||||
|
||||
// 35% resist to Aerial Bane.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2BetsyArrow))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2BetsyArrow))));
|
||||
|
||||
// 35% resist to Icicle Arrows.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<IcicleArrowProj>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<IcicleArrowProj>()))));
|
||||
|
||||
// 30% resist to Aurora Blazer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<AuroraFire>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<AuroraFire>()))));
|
||||
|
||||
// 30% resist to Flak Kraken.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<FlakKrakenProjectile>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<FlakKrakenProjectile>()))));
|
||||
|
||||
// 20% resist to Ballistic Poison Bomb's clouds.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<BallisticPoisonCloud>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<BallisticPoisonCloud>()))));
|
||||
|
||||
// 20% resist to Cluster Rocket fragments.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AstrumDeusIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileID.ClusterFragmentsI, ProjectileID.ClusterFragmentsII))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.8f, ProjectileID.ClusterFragmentsI, ProjectileID.ClusterFragmentsII))));
|
||||
#endregion
|
||||
|
||||
#region Moon Lord
|
||||
@@ -263,28 +263,28 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region Storm Weaver
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(StormWeaverIDList.List, Do(ResistTrueMelee(0.5f))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.StormWeaver, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
// 50% resist to Dazzling Stabber Staff.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(StormWeaverIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<DazzlingStabber>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.StormWeaver, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<DazzlingStabber>()))));
|
||||
|
||||
// 50% resist to Last Prism.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(StormWeaverIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.LastPrismLaser))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.StormWeaver, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.LastPrismLaser))));
|
||||
|
||||
// 50% resist to Legion of Celestia.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(StormWeaverIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<CelestialAxeMinion>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.StormWeaver, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<CelestialAxeMinion>()))));
|
||||
|
||||
// 50% resist to Pristine Fury's alt fire.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(StormWeaverIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<PristineSecondary>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.StormWeaver, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<PristineSecondary>()))));
|
||||
|
||||
// 50% resist to Tactician's Trump Card's explosions.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(StormWeaverIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<TacticiansElectricBoom>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.StormWeaver, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<TacticiansElectricBoom>()))));
|
||||
|
||||
// 40% resist to Devil's Sunrise's slashes.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(StormWeaverIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<DevilsSunriseProj>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.StormWeaver, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<DevilsSunriseProj>()))));
|
||||
|
||||
// 35% resist to Event Horizon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(StormWeaverIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<EventHorizonStar>(), ProjectileType<EventHorizonBlackhole>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.StormWeaver, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<EventHorizonStar>(), ProjectileType<EventHorizonBlackhole>()))));
|
||||
#endregion
|
||||
|
||||
#region Old Duke
|
||||
@@ -294,19 +294,19 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region The Devourer of Gods
|
||||
// 65% resist to Wave Pounder.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DevourerOfGodsIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<WavePounderBoom>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<WavePounderBoom>()))));
|
||||
|
||||
// 35% resist to Sulphuric Acid Cannon's explosions.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DevourerOfGodsIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<SulphuricAcidCannonExplosion>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<SulphuricAcidCannonExplosion>()))));
|
||||
|
||||
// 25% resist to Corinth Prime's grenades.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DevourerOfGodsIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<CorinthPrimeAirburst>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<CorinthPrimeAirburst>()))));
|
||||
|
||||
// 20% resist to Valediction's typhoons; will catch Nuclear Fury as well but that doesn't matter.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DevourerOfGodsIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<NuclearFuryProjectile>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<NuclearFuryProjectile>()))));
|
||||
|
||||
// 15% vulnerability to Time Bolt stealth strikes.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(DevourerOfGodsIDList.List, Do(new StealthStrikeBalancingRule(1.15f, ProjectileType<TimeBoltKnife>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new StealthStrikeBalancingRule(1.15f, ProjectileType<TimeBoltKnife>()))));
|
||||
#endregion The Devourer of Gods
|
||||
|
||||
#region Yharon
|
||||
@@ -319,34 +319,34 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region Exo Mechs: Ares
|
||||
// 35% resist to Devil's Devastation's slash.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<DevilsDevastationHoldout>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<DevilsDevastationHoldout>()))));
|
||||
|
||||
// 30% resist to Dynamic Pursuer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
|
||||
// 25% resist to Aetherflux Cannon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PhasedGodRay>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PhasedGodRay>()))));
|
||||
|
||||
// 25% resist to Prismatic Breaker's deathray.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PrismaticRay>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PrismaticRay>()))));
|
||||
|
||||
// 20% resist to the Spin Throw part of the Ark of the Cosmos' combo.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, AotCThrowCombo))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, AotCThrowCombo))));
|
||||
|
||||
// 20% resist to Dragon Rage projectiles.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, DragonRageFilter))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, DragonRageFilter))));
|
||||
|
||||
// 20% resist to Eclipse's Fall.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<EclipsesSmol>(), ProjectileType<EclipsesFallMain>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<EclipsesSmol>(), ProjectileType<EclipsesFallMain>()))));
|
||||
|
||||
// 20% resist to Rancor.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<RancorLaserbeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<RancorLaserbeam>()))));
|
||||
|
||||
// 20% resist to Yharim's Crystal.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<YharimsCrystalBeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<YharimsCrystalBeam>()))));
|
||||
|
||||
// 20% resist to Zenith.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileID.FinalFractal))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Ares, Do(new ProjectileResistBalancingRule(0.8f, ProjectileID.FinalFractal))));
|
||||
#endregion
|
||||
|
||||
#region Exo Mechs: Artemis and Apollo
|
||||
@@ -358,85 +358,85 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region Exo Mechs: Thanatos
|
||||
// 65% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(ResistTrueMelee(0.35f))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(ResistTrueMelee(0.35f))));
|
||||
|
||||
// 65% resist to The Final Dawn's lunge.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<FinalDawnThrow2>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<FinalDawnThrow2>()))));
|
||||
|
||||
// 65% resist to Stellar Torus Staff.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<StellarTorusBeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<StellarTorusBeam>()))));
|
||||
|
||||
// 60% resist to Dynamic Pursuer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.4f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.4f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
|
||||
// 50% resist to Chicken Cannon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<ChickenExplosion>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<ChickenExplosion>()))));
|
||||
|
||||
// 50% resist to Omicron's beam.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<OmicronBeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<OmicronBeam>()))));
|
||||
|
||||
// 50% resist to Rancor.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<RancorLaserbeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<RancorLaserbeam>()))));
|
||||
|
||||
// 50% resist to Vehemence's skulls.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<VehemenceSkull>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<VehemenceSkull>()))));
|
||||
|
||||
// 50% resist to Yharim's Crystal.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<YharimsCrystalBeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<YharimsCrystalBeam>()))));
|
||||
|
||||
// 45% resist to Prismatic Breaker's deathray.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<PrismaticRay>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<PrismaticRay>()))));
|
||||
|
||||
// 45% resist to Wrathwing's stealth strike fireballs.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<WrathwingCinder>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<WrathwingCinder>()))));
|
||||
|
||||
// 30% resist to Eclipse's Fall.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<EclipsesFallMain>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<EclipsesFallMain>()))));
|
||||
|
||||
// 30% resist to Sirius.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<SiriusExplosion>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<SiriusExplosion>()))));
|
||||
|
||||
// 30% resist to Ultima's rays.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<UltimaRay>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<UltimaRay>()))));
|
||||
|
||||
// 30% resist to Dragon Scales and The Wand's tornadoes.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<InfernadoFriendly>(), ProjectileType<DragonScalesInfernado>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<InfernadoFriendly>(), ProjectileType<DragonScalesInfernado>()))));
|
||||
|
||||
// 25% resist to the Spin Throw part of the Ark of the Cosmos' combo.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, AotCThrowCombo))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, AotCThrowCombo))));
|
||||
|
||||
// 25% resist to Dragon Rage projectiles.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, DragonRageFilter))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, DragonRageFilter))));
|
||||
|
||||
// 25% resist to Gael's Greatsword's big skulls.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, BigGaelsSkullFilter))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, BigGaelsSkullFilter))));
|
||||
|
||||
// 25% resist to Mirror of Kalandra's Paradoxica minion.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<Paradoxica>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<Paradoxica>()))));
|
||||
|
||||
// 25% resist to Zenith.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.FinalFractal))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.FinalFractal))));
|
||||
|
||||
// 20% resist to The Anomaly's Nanogun's bomb explosions.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<AnomalysNanogunMPFBBoom>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<AnomalysNanogunMPFBBoom>()))));
|
||||
|
||||
// 20% resist to Ariane's aura (Lilies of Finality).
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<LiliesOfFinalityAoE>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<LiliesOfFinalityAoE>()))));
|
||||
|
||||
// 20% resist to Eradicator's beams.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<NebulaShot>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<NebulaShot>()))));
|
||||
|
||||
// 20% resist to Plasma Grenade and Dynamic Pursuer's explosions.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<PlasmaGrenadeProjectile>(), ProjectileType<PlasmaGrenadeSmallExplosion>(), ProjectileType<MassivePlasmaExplosion>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<PlasmaGrenadeProjectile>(), ProjectileType<PlasmaGrenadeSmallExplosion>(), ProjectileType<MassivePlasmaExplosion>()))));
|
||||
|
||||
// 20% resist to Voltaic Climax / Void Vortex hitscan beams.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<ClimaxBeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<ClimaxBeam>()))));
|
||||
|
||||
// 15% resist to The Final Dawn's AoE sweep flames.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<FinalDawnFlame>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<FinalDawnFlame>()))));
|
||||
|
||||
// 15% resist to Gruesome Eminence.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(ThanatosIDList.List, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<SpiritCongregation>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.Thanatos, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<SpiritCongregation>()))));
|
||||
#endregion
|
||||
|
||||
#region Supreme Calamitas: Brimstone Hearts
|
||||
|
||||
@@ -16,14 +16,14 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
// Globally remove summon tag buff stacking
|
||||
// Other mods need to add to this list because we genuinely don't have any way to tell this
|
||||
if (SummonTagBuffList.Includes(type) && buffIndex > 0)
|
||||
if (CalamityBuffSets.IsSummonTagBuff[type] && buffIndex > 0)
|
||||
{
|
||||
for (int i = buffIndex; i >= 0; i--)
|
||||
{
|
||||
if (player.buffTime[i] > 0)
|
||||
{
|
||||
int buffID = player.buffType[i];
|
||||
if (SummonTagBuffList.Includes(buffID) && buffID != type)
|
||||
if (CalamityBuffSets.IsSummonTagBuff[buffID] && buffID != type)
|
||||
{
|
||||
player.DelBuff(i);
|
||||
break;
|
||||
@@ -131,14 +131,14 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
// Globally remove summon tag debuff stacking, unless allowed in the SummonTag
|
||||
// Other mods need to add to this list because otherwise we can't tell which IsATag buff is actually for whips
|
||||
if (SummonTagDebuffDict.TryGet(type, out var tag1) && !tag1.AllowsWhipStacking && buffIndex > 0)
|
||||
if (CalamityBuffSets.SummonTagDebuff.TryGetValue(type, out var tag1) && !tag1.AllowsWhipStacking && buffIndex > 0)
|
||||
{
|
||||
for (int i = buffIndex; i >= 0; i--)
|
||||
{
|
||||
if (npc.buffTime[i] > 0)
|
||||
{
|
||||
int buffID = npc.buffType[i];
|
||||
if (SummonTagDebuffDict.TryGet(buffID, out var tag2) && !tag2.AllowsWhipStacking && buffID != type)
|
||||
if (CalamityBuffSets.SummonTagDebuff.TryGetValue(buffID, out var tag2) && !tag2.AllowsWhipStacking && buffID != type)
|
||||
{
|
||||
npc.DelBuff(i);
|
||||
break;
|
||||
@@ -150,7 +150,7 @@ namespace CalamityMod.Buffs
|
||||
if (type == BuffID.Webbed)
|
||||
{
|
||||
npc.Calamity().webbed = true;
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
|
||||
}
|
||||
if (type == BuffID.Electrified)
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
cgn.trueVulnerabilityHex = true;
|
||||
if (cgn.VulnerabilityHexFireDrawer != null)
|
||||
cgn.VulnerabilityHexFireDrawer.SetLifetime = cgn.VulnerabilityHexFireDrawer.LocalTimer + npc.buffTime[buffIndex];
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && cgn.debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && cgn.debuffResistanceTimer <= 0)
|
||||
cgn.debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
|
||||
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().vaporfied = true;
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin +npc.buffTime[buffIndex];
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
cgn.VulnerabilityHexFireDrawer.SetLifetime = cgn.VulnerabilityHexFireDrawer.LocalTimer + npc.buffTime[buffIndex];
|
||||
|
||||
// Apply immunity timer.
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && cgn.debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && cgn.debuffResistanceTimer <= 0)
|
||||
cgn.debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + +npc.buffTime[buffIndex];
|
||||
}
|
||||
internal static void DrawEffects(PlayerDrawSet drawInfo)
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().eutrophication = true;
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().galvanicCorrosion = true;
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().glacialState = true;
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().temporalSadness = true;
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
npc.Calamity().timeDistortion = true;
|
||||
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
|
||||
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4602,7 +4602,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Modify Mana Cost
|
||||
public override void ModifyManaCost(Item item, ref float reduce, ref float mult)
|
||||
{
|
||||
if (MagicGunIDList.Includes(item.type) && meteorSet)
|
||||
if (CalamityItemSets.MagicGun[item.type] && meteorSet)
|
||||
{
|
||||
mult *= 0.33f;
|
||||
}
|
||||
@@ -4764,10 +4764,10 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (veneratedLocket)
|
||||
{
|
||||
var LocketSource = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<VeneratedLocket>()));
|
||||
var LocketSource = Player.GetSource_Accessory(FindAccessory(ItemType<VeneratedLocket>()));
|
||||
if (item.CountsAsClass<RogueDamageClass>())
|
||||
{
|
||||
if (!VeneratedLocketBanList.Includes(item.type))
|
||||
if (!CalamityItemSets.DisablesVeneratedLocketEffect[item.type])
|
||||
{
|
||||
float veneratedCloneSpeed = item.shootSpeed;
|
||||
Vector2 realPlayerPos = Player.RotatedRelativePoint(Player.MountedCenter, true);
|
||||
@@ -5200,7 +5200,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Player.MaxBuffs; i++)
|
||||
{
|
||||
int buff = Player.buffType[i];
|
||||
if (AlcoholsDict.TryGet(buff, out int level))
|
||||
if (CalamityBuffSets.AlcoholStrength.TryGetValue(buff, out int level))
|
||||
Alcohol.Insert(0, new int[] { i, level });
|
||||
}
|
||||
|
||||
|
||||
@@ -705,7 +705,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Item heldItem = Player.ActiveItem();
|
||||
|
||||
if (CalamityUtils.ShouldTriggerSummonPenalty(Player, heldItem) && !DisabledSummonerNerfMinionList.Includes(proj.type))
|
||||
if (CalamityUtils.ShouldTriggerSummonPenalty(Player, heldItem) && !CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[proj.type])
|
||||
modifiers.FinalDamage *= BalancingConstants.SummonerCrossClassNerf;
|
||||
}
|
||||
}
|
||||
@@ -915,7 +915,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Modify Hit By Proj
|
||||
public override void ModifyHitByProjectile(Projectile proj, ref Player.HurtModifiers modifiers)
|
||||
{
|
||||
if (!ProjectileDestroyExceptionsList.Includes(proj.type) && proj.active && !proj.friendly && proj.hostile && proj.damage > 0)
|
||||
if (!CalamityProjectileSets.ShouldNotBeReflected[proj.type] && proj.active && !proj.friendly && proj.hostile && proj.damage > 0 && !modifiers.PvP)
|
||||
{
|
||||
double dodgeDamageGateValuePercent = 0.05;
|
||||
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
|
||||
@@ -1054,7 +1054,7 @@ namespace CalamityMod.CalPlayer
|
||||
projectileDamageReduction += 0.25;
|
||||
}
|
||||
|
||||
if (!ProjectileDestroyExceptionsList.Includes(proj.type) && proj.active && !proj.friendly && proj.hostile && proj.damage > 0)
|
||||
if (!CalamityProjectileSets.ShouldNotBeReflected[proj.type] && proj.active && !proj.friendly && proj.hostile && proj.damage > 0 && !modifiers.PvP)
|
||||
{
|
||||
// Daedalus Reflect counts as a reflect but doesn't actually stop you from taking damage
|
||||
if (daedalusReflect && !disableAllDodges && !evolution && !Player.HasCooldown(GlobalDodge.ID))
|
||||
@@ -1424,7 +1424,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// As these reflects do not cancel damage, they need to be in OnHit rather than ModifyHit
|
||||
if (!ProjectileDestroyExceptionsList.Includes(proj.type) && proj.active && !proj.friendly && proj.hostile && hurtInfo.Damage > 0)
|
||||
if (!CalamityProjectileSets.ShouldNotBeReflected[proj.type] && proj.active && !proj.friendly && proj.hostile && hurtInfo.Damage > 0 && !hurtInfo.PvP)
|
||||
{
|
||||
double dodgeDamageGateValuePercent = 0.05;
|
||||
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
|
||||
|
||||
@@ -191,7 +191,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int buff = Player.buffType[l];
|
||||
if (AlcoholsDict.TryGet(buff, out var level))
|
||||
if (CalamityBuffSets.AlcoholStrength.TryGetValue(buff, out int level))
|
||||
alcoholPoisonLevel += level;
|
||||
}
|
||||
if (vodka)
|
||||
@@ -331,11 +331,11 @@ namespace CalamityMod.CalPlayer
|
||||
int buffID = Player.buffType[l];
|
||||
if (Player.buffTime[l] <= 2)
|
||||
continue;
|
||||
bool shouldHalveDuration = SicknessDebuffsList.Includes(buffID);
|
||||
bool shouldHalveDuration = CalamityBuffSets.IsSicknessDebuff[buffID];
|
||||
if (livingDewHalveDebuffs)
|
||||
shouldHalveDuration |= FireDebuffsList.Includes(buffID);
|
||||
shouldHalveDuration |= CalamityBuffSets.IsFireDebuff[buffID];
|
||||
if (purity)
|
||||
shouldHalveDuration |= DebuffsList.Includes(buffID);
|
||||
shouldHalveDuration |= CalamityBuffSets.IsDebuff[buffID];
|
||||
|
||||
if (shouldHalveDuration)
|
||||
--Player.buffTime[l];
|
||||
@@ -379,7 +379,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Permafrost's Concoction increases life regen while afflicted with a fire debuff
|
||||
if (permafrostsConcoction && Player.buffType.Any(FireDebuffsList.Includes))
|
||||
if (permafrostsConcoction && Player.buffType.Any(l => CalamityBuffSets.IsFireDebuff[l]))
|
||||
{
|
||||
if (Player.lifeRegenTime < 900)
|
||||
Player.lifeRegenTime = 900;
|
||||
@@ -402,7 +402,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (purity)
|
||||
{
|
||||
int intendedPurityDefense = 0;
|
||||
int currentDebuffs = Player.buffType.Count(DebuffsList.List.Contains);
|
||||
int currentDebuffs = Player.buffType.Count(i => CalamityBuffSets.IsDebuff[i]);
|
||||
if (currentDebuffs > 0)
|
||||
{
|
||||
// Healing rate is normally 5 HP/s (+1 every 12 frames)
|
||||
@@ -457,7 +457,7 @@ namespace CalamityMod.CalPlayer
|
||||
// If the player has any debuffs, give the extra life regen and defense
|
||||
// More defense is given for each additional debuff
|
||||
int intendedJewelDefense = 0;
|
||||
int currentDebuffs = Player.buffType.Count(DebuffsList.List.Contains);
|
||||
int currentDebuffs = Player.buffType.Count(i => CalamityBuffSets.IsDebuff[i]);
|
||||
if (currentDebuffs > 0)
|
||||
{
|
||||
Player.lifeRegen += 4;
|
||||
@@ -484,7 +484,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.lifeRegen += 2;
|
||||
|
||||
// If any debuff is detected, provide even more life regen and massively accelerate it
|
||||
if (Player.buffType.Any(DebuffsList.List.Contains))
|
||||
if (Player.buffType.Any(i => CalamityBuffSets.IsDebuff[i]))
|
||||
{
|
||||
Player.lifeRegen += 3;
|
||||
if (Player.lifeRegenTime < 900)
|
||||
@@ -651,7 +651,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int hasBuff = Player.buffType[l];
|
||||
lesserEffect = AlcoholsDict.TryGet(hasBuff, out var a);
|
||||
lesserEffect = CalamityBuffSets.AlcoholStrength.TryGetValue(hasBuff, out var a);
|
||||
}
|
||||
if (Player.lifeRegen < 0)
|
||||
Player.lifeRegen += lesserEffect ? 1 : regenBoost;
|
||||
|
||||
@@ -627,7 +627,7 @@ namespace CalamityMod.CalPlayer
|
||||
// If they're a boss, reduce the boss distance.
|
||||
// Boss distance will always be >= enemy distance, so there's no need to do another check.
|
||||
// Worm boss body and tail segments are not counted as bosses for this calculation.
|
||||
if (npc.IsABoss() && !NoRageWormSegmentList.Includes(npc.type))
|
||||
if (npc.IsABoss() && !CalamityNPCSets.BossSegmentThatDoesNotGenerateRageFaster[npc.type])
|
||||
bossDistance = hitboxEdgeDist;
|
||||
}
|
||||
}
|
||||
@@ -1149,7 +1149,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int buffID = Player.buffType[l];
|
||||
if (Player.buffTime[l] > 2 && DebuffsList.Includes(buffID))
|
||||
if (Player.buffTime[l] > 2 && CalamityBuffSets.IsDebuff[buffID])
|
||||
Player.buffTime[l]--;
|
||||
}
|
||||
}
|
||||
@@ -2328,8 +2328,10 @@ namespace CalamityMod.CalPlayer
|
||||
// God Slayer Armor dash debuff immunity
|
||||
if (LastUsedDashID == GodslayerArmorDash.ID && Player.dashDelay < 0)
|
||||
{
|
||||
foreach (int debuff in DebuffsList.List)
|
||||
Player.buffImmune[debuff] = true;
|
||||
for (int d = 0; d < Player.buffImmune.Length; d++)
|
||||
{
|
||||
Player.buffImmune[d] |= CalamityBuffSets.IsDebuff[d];
|
||||
}
|
||||
}
|
||||
|
||||
// Shield of the High Ruler
|
||||
@@ -2400,8 +2402,11 @@ namespace CalamityMod.CalPlayer
|
||||
if (silvaCountdown > 0 && hasSilvaEffect && silvaSet)
|
||||
{
|
||||
// You become immune to all debuffs
|
||||
foreach (int debuff in DebuffsList.List)
|
||||
Player.buffImmune[debuff] = true;
|
||||
foreach (int debuff in Player.buffType)
|
||||
{
|
||||
if (CalamityBuffSets.IsDebuff[debuff])
|
||||
Player.buffImmune[debuff] = true;
|
||||
}
|
||||
|
||||
// Prevent thorns effects from being abused during invincibility
|
||||
Player.thorns = 0f;
|
||||
@@ -2480,8 +2485,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
Player.AddCooldown(Cooldowns.TarragonImmunity.ID, CalamityUtils.SecondsToFrames(25));
|
||||
|
||||
bool shouldAffect = DebuffsList.Includes(buffID);
|
||||
if (shouldAffect)
|
||||
if (CalamityBuffSets.IsDebuff[buffID])
|
||||
Player.GetDamage<RogueDamageClass>() += 0.1f;
|
||||
}
|
||||
}
|
||||
@@ -3587,7 +3591,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (HighTestFishingPoleList.Includes(Player.ActiveItem().type))
|
||||
if (CalamityItemSets.FishingPoleThatNeverBreaks[Player.ActiveItem().type])
|
||||
Player.accFishingLine = true;
|
||||
|
||||
if (planarSpeedBoost != 0)
|
||||
@@ -4359,7 +4363,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int buffID = Player.buffType[l];
|
||||
if (AmalgamBuffList.Includes(buffID))
|
||||
if (CalamityBuffSets.BuffedByAmalgam[buffID])
|
||||
{
|
||||
if (amalgam)
|
||||
{
|
||||
@@ -4376,7 +4380,7 @@ namespace CalamityMod.CalPlayer
|
||||
else
|
||||
{
|
||||
// Reset buff persistence if Amalgam is removed.
|
||||
if (Main.persistentBuff[buffID] && !PersistentBuffList.Includes(buffID))
|
||||
if (Main.persistentBuff[buffID] && !CalamityBuffSets.IsPersistentBuff[buffID])
|
||||
Main.persistentBuff[buffID] = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -405,7 +405,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (!proj.npcProj && !proj.trap && proj.friendly)
|
||||
{
|
||||
if (plaguebringerCarapace && FriendlyBeesList.Includes(proj.type))
|
||||
if (plaguebringerCarapace && CalamityProjectileSets.IsFriendlyBeeProjectile[proj.type])
|
||||
target.AddBuff(BuffType<Plague>(), 300);
|
||||
|
||||
// All projectiles fired from Soma Prime are marked using CalamityGlobalProjectile
|
||||
|
||||
@@ -874,7 +874,7 @@ namespace CalamityMod.Items
|
||||
// Handle general use-item effects for the Gem Tech Armor.
|
||||
player.Calamity().GemTechState.OnItemUseEffects(item);
|
||||
|
||||
if (item.type == ItemID.MonkStaffT1 || AutoreusableSpearsList.Includes(item.type))
|
||||
if (item.type == ItemID.MonkStaffT1 || CalamityItemSets.AutoreusableSpear[item.type])
|
||||
{
|
||||
return player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
}
|
||||
@@ -1636,7 +1636,7 @@ namespace CalamityMod.Items
|
||||
#region PostUpdate
|
||||
public override void PostUpdate(Item item)
|
||||
{
|
||||
if (ItemsForcedInsideWorldList.Includes(item.type))
|
||||
if (CalamityItemSets.ItemForcedInsideWorld[item.type])
|
||||
CalamityUtils.ForceItemIntoWorld(item);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -423,7 +423,7 @@ namespace CalamityMod.Items
|
||||
string CritTagTooltip(float crit) => (CalamityUtils.GetText($"Common.SummonTagCrit").Format((crit * 100).ToString("0.#")));
|
||||
|
||||
Dictionary<int, SummonTag> TagByItem = new();
|
||||
foreach (SummonTag tag1 in SummonTagDebuffDict.Dict.Values)
|
||||
foreach (SummonTag tag1 in CalamityBuffSets.SummonTagDebuff.Values)
|
||||
{
|
||||
if (tag1.TagItem > -1) TagByItem.Add(tag1.TagItem, tag1);
|
||||
}
|
||||
|
||||
+24
-20
@@ -909,43 +909,45 @@ namespace CalamityMod
|
||||
#region Amalgam Potion Buff List
|
||||
public static bool SetAmalgamBuffList(int type, bool shouldBeListed)
|
||||
{
|
||||
if (shouldBeListed && !AmalgamBuffList.Includes(type))
|
||||
if (shouldBeListed && !CalamityBuffSets.BuffedByAmalgam[type])
|
||||
{
|
||||
AmalgamBuffList.List.Add(type);
|
||||
CalamityBuffSets.BuffedByAmalgam[type] = true;
|
||||
return true;
|
||||
}
|
||||
else if (!shouldBeListed)
|
||||
{
|
||||
return AmalgamBuffList.List.Remove(type);
|
||||
CalamityBuffSets.BuffedByAmalgam[type] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
public static bool SetPersistentBuffList(int type, bool isPersistent)
|
||||
{
|
||||
if (isPersistent && !PersistentBuffList.Includes(type))
|
||||
if (isPersistent && !CalamityBuffSets.IsPersistentBuff[type])
|
||||
{
|
||||
PersistentBuffList.List.Add(type);
|
||||
CalamityBuffSets.IsPersistentBuff[type] = true;
|
||||
return true;
|
||||
}
|
||||
else if (!isPersistent)
|
||||
{
|
||||
return PersistentBuffList.List.Remove(type);
|
||||
CalamityBuffSets.IsPersistentBuff[type] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool IsOnAmalgamBuffList(int type) => AmalgamBuffList.Includes(type);
|
||||
public static bool IsOnPersistentBuffList(int type) => PersistentBuffList.Includes(type);
|
||||
public static bool IsOnAmalgamBuffList(int type) => CalamityBuffSets.BuffedByAmalgam[type];
|
||||
public static bool IsOnPersistentBuffList(int type) => CalamityBuffSets.IsPersistentBuff[type];
|
||||
#endregion
|
||||
|
||||
#region Venerated Locket Bans
|
||||
public static bool AddToVeneratedLocketBanlist(int type)
|
||||
{
|
||||
if (!VeneratedLocketBanList.Includes(type))
|
||||
if (!CalamityItemSets.DisablesVeneratedLocketEffect[type])
|
||||
{
|
||||
VeneratedLocketBanList.List.Add(type);
|
||||
CalamityItemSets.DisablesVeneratedLocketEffect[type] = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -955,35 +957,37 @@ namespace CalamityMod
|
||||
#region Summoner Cross Class Nerf Disabling
|
||||
public static bool SetSummonerNerfDisabledByMinion(int type, bool disableNerf)
|
||||
{
|
||||
if (disableNerf && !DisabledSummonerNerfMinionList.Includes(type))
|
||||
if (disableNerf && !CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type])
|
||||
{
|
||||
DisabledSummonerNerfMinionList.List.Add(type);
|
||||
CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type] = true;
|
||||
return true;
|
||||
}
|
||||
else if (!disableNerf)
|
||||
{
|
||||
return DisabledSummonerNerfMinionList.List.Remove(type);
|
||||
CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
public static bool SetSummonerNerfDisabledByItem(int type, bool disableNerf)
|
||||
{
|
||||
if (disableNerf && !DisabledSummonerNerfItemList.Includes(type))
|
||||
if (disableNerf && !CalamityItemSets.ItemWhichDisablesSummonerNerf[type])
|
||||
{
|
||||
DisabledSummonerNerfItemList.List.Add(type);
|
||||
CalamityItemSets.ItemWhichDisablesSummonerNerf[type] = true;
|
||||
return true;
|
||||
}
|
||||
else if (!disableNerf)
|
||||
{
|
||||
return DisabledSummonerNerfItemList.List.Remove(type);
|
||||
CalamityItemSets.ItemWhichDisablesSummonerNerf[type] = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool GetSummonerNerfDisabledByMinion(int type) => DisabledSummonerNerfMinionList.Includes(type);
|
||||
public static bool GetSummonerNerfDisabledByItem(int type) => DisabledSummonerNerfItemList.Includes(type);
|
||||
public static bool GetSummonerNerfDisabledByMinion(int type) => CalamityProjectileSets.MinionWhichIgnoresSummonerNerf[type];
|
||||
public static bool GetSummonerNerfDisabledByItem(int type) => CalamityItemSets.ItemWhichDisablesSummonerNerf[type];
|
||||
#endregion
|
||||
|
||||
#region Debuff Display support
|
||||
@@ -1071,9 +1075,9 @@ namespace CalamityMod
|
||||
//This is to add minions to the hp scaling config
|
||||
public static bool AddToHPScaling(int type)
|
||||
{
|
||||
if (!BossHPScalingList.List.Contains(type))
|
||||
if (!CalamityNPCSets.ScalesHealthLikeBoss[type])
|
||||
{
|
||||
BossHPScalingList.List.Add(type);
|
||||
CalamityNPCSets.ScalesHealthLikeBoss[type] = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -236,7 +236,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
for (int a = 0; a < Main.npc.Length; a++)
|
||||
{
|
||||
int type = Main.npc[a].type;
|
||||
if (AquaticScourgeIDList.Includes(type))
|
||||
if (CalamityNPCTypeSets.AquaticScourge.Contains(type))
|
||||
Main.npc[a].active = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
for (int a = 0; a < Main.npc.Length; a++)
|
||||
{
|
||||
int type = Main.npc[a].type;
|
||||
if (AquaticScourgeIDList.Includes(type))
|
||||
if (CalamityNPCTypeSets.AquaticScourge.Contains(type))
|
||||
Main.npc[a].active = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -390,7 +390,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
for (int a = 0; a < Main.npc.Length; a++)
|
||||
{
|
||||
int type = Main.npc[a].type;
|
||||
if (AquaticScourgeIDList.Includes(type))
|
||||
if (CalamityNPCTypeSets.AquaticScourge.Contains(type))
|
||||
Main.npc[a].active = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
for (int a = 0; a < Main.npc.Length; a++)
|
||||
{
|
||||
int type = Main.npc[a].type;
|
||||
if (AquaticScourgeIDList.Includes(type))
|
||||
if (CalamityNPCTypeSets.AquaticScourge.Contains(type))
|
||||
Main.npc[a].active = false;
|
||||
}
|
||||
}
|
||||
|
||||
+41
-55
@@ -917,9 +917,9 @@ namespace CalamityMod.NPCs
|
||||
// Damage multiplier calcs.
|
||||
// Worms that are vulnerable to debuffs and Slime God slimes take reduced damage from vulnerabilities.
|
||||
#region Debuff System Multiplier Calculations
|
||||
bool wormBoss = DesertScourgeIDList.Includes(npc.type) || EaterOfWorldsIDList.Includes(npc.type) || PerforatorWormIDList.Includes(npc.type) ||
|
||||
AquaticScourgeIDList.Includes(npc.type) || AstrumDeusIDList.Includes(npc.type) || StormWeaverIDList.Includes(npc.type);
|
||||
bool slimeGod = SlimeGodIDList.Includes(npc.type);
|
||||
bool wormBoss = CalamityNPCTypeSets.DesertScourge.Contains(npc.type) || CalamityNPCTypeSets.EaterOfWorlds.Contains(npc.type) || CalamityNPCTypeSets.Perforators.Contains(npc.type) ||
|
||||
CalamityNPCTypeSets.AquaticScourge.Contains(npc.type) || CalamityNPCTypeSets.AstrumDeus.Contains(npc.type) || CalamityNPCTypeSets.StormWeaver.Contains(npc.type);
|
||||
bool slimeGod = CalamityNPCTypeSets.SlimeGod.Contains(npc.type);
|
||||
ActiveHeatDebuffMultiplier = HeatDebuffMultiplier;
|
||||
if (VulnerableToHeat.HasValue)
|
||||
{
|
||||
@@ -1219,7 +1219,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Aquatic Scourge sets kill time in AI, not here.
|
||||
if (BossKillTimes.TryGetValue(npc.type, out int revKillTime) && !AquaticScourgeIDList.Includes(npc.type))
|
||||
if (BossKillTimes.TryGetValue(npc.type, out int revKillTime) && !CalamityNPCTypeSets.AquaticScourge.Contains(npc.type))
|
||||
{
|
||||
KillTime = revKillTime;
|
||||
}
|
||||
@@ -1376,7 +1376,7 @@ namespace CalamityMod.NPCs
|
||||
#region Boss Rush Stat Changes
|
||||
private void BossRushStatChanges(NPC npc, Mod mod)
|
||||
{
|
||||
if (BossRushHPChangeDict.TryGet(npc.type, out var newHP))
|
||||
if (CalamityNPCSets.BossRushHealth.TryGetValue(npc.type, out var newHP))
|
||||
{
|
||||
npc.lifeMax = newHP;
|
||||
}
|
||||
@@ -1386,10 +1386,9 @@ namespace CalamityMod.NPCs
|
||||
#region Revengeance and Death Mode Stat Changes
|
||||
private void RevDeathStatChanges(NPC npc, Mod mod)
|
||||
{
|
||||
if (DeathModeSplittingWormList.Includes(npc.type))
|
||||
if (CalamityNPCSets.DeathModeSplittingWorm[npc.type] && CalamityWorld.death)
|
||||
{
|
||||
if (CalamityWorld.death)
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 0.15);
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 0.15);
|
||||
}
|
||||
|
||||
if (npc.type == NPCID.Mothron)
|
||||
@@ -1442,7 +1441,7 @@ namespace CalamityMod.NPCs
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.2);
|
||||
npc.npcSlots = 32f;
|
||||
}
|
||||
else if (DestroyerIDList.Includes(npc.type))
|
||||
else if (CalamityNPCTypeSets.Destroyer.Contains(npc.type))
|
||||
{
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.25);
|
||||
npc.scale *= Main.zenithWorld ? 2f : 1.2f;
|
||||
@@ -1523,7 +1522,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.4);
|
||||
}
|
||||
else if (EaterOfWorldsIDList.Includes(npc.type))
|
||||
else if (CalamityNPCTypeSets.EaterOfWorlds.Contains(npc.type))
|
||||
{
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.2);
|
||||
|
||||
@@ -2268,7 +2267,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
EditGlobalCoinDrops(npc);
|
||||
|
||||
if ((npc.boss && npc.type != NPCID.MartianSaucerCore) || BossHPScalingList.Includes(npc.type))
|
||||
if ((npc.boss && npc.type != NPCID.MartianSaucerCore) || CalamityNPCSets.ScalesHealthLikeBoss[npc.type])
|
||||
{
|
||||
double HPBoost = CalamityServerConfig.Instance.BossHealthBoost * 0.01;
|
||||
npc.lifeMax += (int)Math.Round(npc.lifeMax * HPBoost);
|
||||
@@ -2429,7 +2428,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
if (!NPC.downedMechBossAny)
|
||||
{
|
||||
if (DestroyerIDList.Includes(npc.type) || npc.type == NPCID.Probe || SkeletronPrimeIDList.Includes(npc.type) || npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer)
|
||||
if (CalamityNPCTypeSets.Destroyer.Contains(npc.type) || npc.type == NPCID.Probe || CalamityNPCTypeSets.SkeletronPrime.Contains(npc.type) || npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer)
|
||||
{
|
||||
double multiplier = Main.expertMode ? EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Expert : EarlyHardmodeProgressionReworkFirstMechStatMultiplier_Classic;
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * multiplier);
|
||||
@@ -2439,7 +2438,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
else if ((!NPC.downedMechBoss1 && !NPC.downedMechBoss2) || (!NPC.downedMechBoss2 && !NPC.downedMechBoss3) || (!NPC.downedMechBoss3 && !NPC.downedMechBoss1))
|
||||
{
|
||||
if (DestroyerIDList.Includes(npc.type) || npc.type == NPCID.Probe || SkeletronPrimeIDList.Includes(npc.type) || npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer)
|
||||
if (CalamityNPCTypeSets.Destroyer.Contains(npc.type) || npc.type == NPCID.Probe || CalamityNPCTypeSets.SkeletronPrime.Contains(npc.type) || npc.type == NPCID.Spazmatism || npc.type == NPCID.Retinazer)
|
||||
{
|
||||
double multiplier = Main.expertMode ? EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Expert : EarlyHardmodeProgressionReworkSecondMechStatMultiplier_Classic;
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * multiplier);
|
||||
@@ -2466,7 +2465,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (Main.hardMode && HardmodeNPCNerfList.Includes(npc.type))
|
||||
if (Main.hardMode && CalamityNPCSets.NerfDamageInHardmode[npc.type])
|
||||
{
|
||||
npc.damage = (int)Math.Round(npc.damage * 0.75);
|
||||
npc.defDamage = npc.damage;
|
||||
@@ -2474,21 +2473,21 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (DownedBossSystem.downedDoG)
|
||||
{
|
||||
if (PumpkinMoonBuffList.Includes(npc.type))
|
||||
if (CalamityNPCSets.IsBuffedPumpkinMoonEnemy[npc.type])
|
||||
{
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 3.5);
|
||||
npc.damage += 30;
|
||||
npc.life = npc.lifeMax;
|
||||
npc.defDamage = npc.damage;
|
||||
}
|
||||
else if (FrostMoonBuffList.Includes(npc.type))
|
||||
else if (CalamityNPCSets.IsBuffedFrostMoonEnemy[npc.type])
|
||||
{
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 2.5);
|
||||
npc.damage += 30;
|
||||
npc.life = npc.lifeMax;
|
||||
npc.defDamage = npc.damage;
|
||||
}
|
||||
else if (EclipseBuffList.Includes(npc.type))
|
||||
else if (CalamityNPCSets.IsBuffedSolarEclipseEnemy[npc.type])
|
||||
{
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 5D);
|
||||
npc.damage += 30;
|
||||
@@ -2499,7 +2498,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (NPC.downedMoonlord)
|
||||
{
|
||||
if (BuffedDungeonEnemiesList.Includes(npc.type))
|
||||
if (CalamityNPCSets.IsBuffedDungeonEnemy[npc.type])
|
||||
{
|
||||
npc.lifeMax = (int)Math.Round(npc.lifeMax * 2.5);
|
||||
npc.damage += 30;
|
||||
@@ -2611,7 +2610,7 @@ namespace CalamityMod.NPCs
|
||||
return;
|
||||
|
||||
bool countsAsBoss = npc.boss || NPCID.Sets.ShouldBeCountedAsBoss[npc.type];
|
||||
bool scalesLikeBoss = countsAsBoss || BossHPScalingList.List.Contains(npc.type);
|
||||
bool scalesLikeBoss = countsAsBoss || CalamityNPCSets.ScalesHealthLikeBoss[npc.type];
|
||||
bool isCalamityNPC = npc.ModNPC != null && npc.ModNPC.Mod == CalamityMod.Instance;
|
||||
|
||||
// 14APR2025: Ozzatron: Reworked how Calamity changes the health of Expert+ multiplayer bosses
|
||||
@@ -2718,12 +2717,12 @@ namespace CalamityMod.NPCs
|
||||
// Damage reduction on spawn for certain worm bosses.
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
if (EaterOfWorldsIDList.Includes(npc.type) && newAI[1] < EaterOfWorldsAI.DRIncreaseTime)
|
||||
if (CalamityNPCTypeSets.EaterOfWorlds.Contains(npc.type) && newAI[1] < EaterOfWorldsAI.DRIncreaseTime)
|
||||
modifiers.FinalDamage *= 1f - (float)Math.Sqrt(MathHelper.Lerp(0f, 0.99f, MathHelper.Clamp(1f - newAI[1] / EaterOfWorldsAI.DRIncreaseTime, 0f, 1f)));
|
||||
if (DestroyerIDList.Includes(npc.type) && newAI[1] < DestroyerAI.DRIncreaseTime)
|
||||
if (CalamityNPCTypeSets.Destroyer.Contains(npc.type) && newAI[1] < DestroyerAI.DRIncreaseTime)
|
||||
modifiers.FinalDamage *= 1f - (float)Math.Sqrt(MathHelper.Lerp(0f, 0.99f, MathHelper.Clamp(1f - newAI[1] / DestroyerAI.DRIncreaseTime, 0f, 1f)));
|
||||
}
|
||||
if (AstrumDeusIDList.Includes(npc.type))
|
||||
if (CalamityNPCTypeSets.AstrumDeus.Contains(npc.type))
|
||||
{
|
||||
float drTime = newAI[0] != 0f ? 300f : 600f;
|
||||
if (newAI[1] < drTime)
|
||||
@@ -2930,7 +2929,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Setting this in SetDefaults will disable expert mode scaling, so put it here instead
|
||||
if (ZeroContactDamageNPCList.Includes(npc.type) && (npc.type != NPCID.RuneWizard || !Main.zenithWorld))
|
||||
if (CalamityNPCSets.DealsZeroContactDamage[npc.type] && !(npc.type == NPCID.RuneWizard && Main.zenithWorld))
|
||||
npc.damage = 0;
|
||||
|
||||
// Don't do damage for 42 frames after spawning in
|
||||
@@ -4933,20 +4932,8 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (Main.hardMode)
|
||||
{
|
||||
switch (npc.type)
|
||||
{
|
||||
case NPCID.BigBoned:
|
||||
case NPCID.ShortBones:
|
||||
case NPCID.AngryBones:
|
||||
case NPCID.AngryBonesBig:
|
||||
case NPCID.AngryBonesBigMuscle:
|
||||
case NPCID.AngryBonesBigHelmet:
|
||||
target.AddBuff(BuffType<ArmorCrunch>(), 120);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (CalamityNPCTypeSets.AngryBones[npc.type])
|
||||
target.AddBuff(BuffType<ArmorCrunch>(), 120);
|
||||
|
||||
if (NPC.downedPlantBoss)
|
||||
{
|
||||
@@ -5056,13 +5043,13 @@ namespace CalamityMod.NPCs
|
||||
float damageMult = 1f;
|
||||
if (npc.type == NPCType<Crabulon.Crabulon>())
|
||||
damageMult = 0.8f;
|
||||
else if (EaterOfWorldsIDList.Includes(npc.type) || npc.type == NPCID.Creeper || npc.type == NPCType<AstrumAureus.AstrumAureus>())
|
||||
else if (CalamityNPCTypeSets.EaterOfWorlds.Contains(npc.type) || npc.type == NPCID.Creeper || npc.type == NPCType<AstrumAureus.AstrumAureus>())
|
||||
damageMult = 0.75f;
|
||||
else if (PerforatorWormIDList.Includes(npc.type) || AquaticScourgeIDList.Includes(npc.type) || DestroyerIDList.Includes(npc.type) ||
|
||||
RavagerIDList.Includes(npc.type) || AstrumDeusIDList.Includes(npc.type) || StormWeaverIDList.Includes(npc.type) ||
|
||||
else if (CalamityNPCTypeSets.Perforators.Contains(npc.type) || CalamityNPCTypeSets.AquaticScourge.Contains(npc.type) || CalamityNPCTypeSets.Destroyer.Contains(npc.type) ||
|
||||
CalamityNPCTypeSets.Ravager.Contains(npc.type) || CalamityNPCTypeSets.AstrumDeus.Contains(npc.type) || CalamityNPCTypeSets.StormWeaver.Contains(npc.type) ||
|
||||
npc.type == NPCType<ProfanedRocks>() || npc.type == NPCType<DarkEnergy>())
|
||||
damageMult = 0.5f;
|
||||
else if (ThanatosIDList.Includes(npc.type))
|
||||
else if (CalamityNPCTypeSets.Thanatos.Contains(npc.type))
|
||||
damageMult = 0.35f;
|
||||
|
||||
modifiers.SourceDamage *= damageMult;
|
||||
@@ -5234,13 +5221,13 @@ namespace CalamityMod.NPCs
|
||||
// Apply balancing resists/vulnerabilities.
|
||||
BalancingChangesManager.ApplyFromProjectile(npc, ref modifiers, projectile);
|
||||
|
||||
if (GrenadeResistIDList.Includes(projectile.type))
|
||||
if (CalamityProjectileSets.ResistedExplosiveProjectile[projectile.type])
|
||||
{
|
||||
// Eater of Worlds has a vanilla resist in Expert+, this gives it to him in Normal mode
|
||||
// Note that Calamity reduces the vanilla resist from 80% to 66%
|
||||
bool hasResist = EaterOfWorldsIDList.Includes(npc.type) && !Main.expertMode;
|
||||
// Note that Calamity reduces the vanilla resist from 80% to 60%
|
||||
bool hasResist = CalamityNPCTypeSets.EaterOfWorlds.Contains(npc.type) && !Main.expertMode;
|
||||
// Add a resist for BoC's creepers and Prehardmode worm bosses
|
||||
if (npc.type == NPCID.Creeper || DesertScourgeIDList.Includes(npc.type) || PerforatorWormIDList.Includes(npc.type))
|
||||
if (npc.type == NPCID.Creeper || CalamityNPCTypeSets.DesertScourge.Contains(npc.type) || CalamityNPCTypeSets.Perforators.Contains(npc.type))
|
||||
hasResist = true;
|
||||
if (hasResist)
|
||||
modifiers.SourceDamage *= 0.33f;
|
||||
@@ -5330,7 +5317,7 @@ namespace CalamityMod.NPCs
|
||||
if (npc.buffTime[i] >= 1)
|
||||
{
|
||||
int type = npc.buffType[i];
|
||||
if (SummonTagDebuffDict.TryGet(type, out SummonTag tag))
|
||||
if (CalamityBuffSets.SummonTagDebuff.TryGetValue(type, out SummonTag tag))
|
||||
{
|
||||
tag.TagModifyHitEffects(proj, npc, ref modifiers, ref TagDamageMult, ref critChance);
|
||||
}
|
||||
@@ -5384,7 +5371,7 @@ namespace CalamityMod.NPCs
|
||||
if (npc.buffTime[i] >= 1)
|
||||
{
|
||||
int type = npc.buffType[i];
|
||||
if (SummonTagDebuffDict.TryGet(type, out SummonTag tag))
|
||||
if (CalamityBuffSets.SummonTagDebuff.TryGetValue(type, out SummonTag tag))
|
||||
{
|
||||
tag.TagOnHit(npc, projectile, hit, damagedone);
|
||||
}
|
||||
@@ -6596,7 +6583,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
if (npc.type != NPCID.BrainofCthulhu && (npc.type != NPCID.DukeFishron || npc.ai[0] <= 9f) && npc.active)
|
||||
{
|
||||
if (CalamityClientConfig.Instance.DebuffDisplay && (npc.boss || BossHealthBarManager.MinibossHPBarList.Contains(npc.type) || BossHealthBarManager.OneToMany.ContainsKey(npc.type) || NeedsDebuffIconDisplayList.Includes(npc.type)))
|
||||
if (CalamityClientConfig.Instance.DebuffDisplay && (npc.boss || BossHealthBarManager.MinibossHPBarList.Contains(npc.type) || BossHealthBarManager.OneToMany.ContainsKey(npc.type) || CalamityNPCSets.ForceDrawDebuffDisplay[npc.type]))
|
||||
{
|
||||
List<Texture2D> currentDebuffs = new List<Texture2D>() { };
|
||||
|
||||
@@ -6715,7 +6702,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
if (npc.buffTime[i] > 0)
|
||||
{
|
||||
if (SummonTagDebuffDict.TryGet(npc.buffType[i], out SummonTag tag))
|
||||
if (CalamityBuffSets.SummonTagDebuff.TryGetValue(npc.buffType[i], out SummonTag tag))
|
||||
{
|
||||
// Fetch the item and its frames
|
||||
var tex = TextureAssets.Item[tag.TagItem].Value;
|
||||
@@ -6741,7 +6728,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive)
|
||||
{
|
||||
if (DestroyerIDList.Includes(npc.type))
|
||||
if (CalamityNPCTypeSets.Destroyer.Contains(npc.type))
|
||||
shouldDrawBool = false;
|
||||
|
||||
// Allows correct frames to draw in Rev+ phases
|
||||
@@ -7056,7 +7043,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Destroyer drawing and laser telegraphs
|
||||
else if (DestroyerIDList.Includes(npc.type) && !npc.IsABestiaryIconDummy)
|
||||
else if (CalamityNPCTypeSets.Destroyer.Contains(npc.type) && !npc.IsABestiaryIconDummy)
|
||||
{
|
||||
Texture2D npcTexture = TextureAssets.Npc[npc.type].Value;
|
||||
int frameHeight = npcTexture.Height / Main.npcFrameCount[npc.type];
|
||||
@@ -7758,8 +7745,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
if (!GetDownedBossVariable(npc.type))
|
||||
{
|
||||
BossTypeDict.TryGet(npc.type, out int newBossTypeJustDowned);
|
||||
|
||||
CalamityNPCSets.BossSpeedrunTimerID.TryGetValue(npc.type, out int newBossTypeJustDowned);
|
||||
for (int i = 0; i < Main.maxPlayers; i++)
|
||||
{
|
||||
Player player = Main.player[i];
|
||||
@@ -7801,13 +7787,13 @@ namespace CalamityMod.NPCs
|
||||
#region Should Affect NPC
|
||||
public static bool ShouldAffectNPC(NPC target)
|
||||
{
|
||||
if (EaterOfWorldsIDList.Includes(target.type) || DestroyerIDList.Includes(target.type))
|
||||
if (CalamityNPCTypeSets.EaterOfWorlds.Contains(target.type) || CalamityNPCTypeSets.Destroyer.Contains(target.type))
|
||||
return false;
|
||||
|
||||
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<ReaperShark>() && target.type != NPCType<Mauler>() && target.type != NPCType<EidolonWyrmHead>() && target.type != NPCID.GolemFistLeft && target.type != NPCID.GolemFistRight &&
|
||||
target.type != NPCType<PrimordialWyrmHead>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !EnemyImmunitiesList.Includes(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type))
|
||||
target.type != NPCType<PrimordialWyrmHead>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[target.type] && !AcidRainEvent.AllMinibosses.Contains(target.type))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -562,7 +562,12 @@ namespace CalamityMod.NPCs
|
||||
#endregion
|
||||
|
||||
#region Jungle
|
||||
//Moss hornets are after all of this switching since it no longer works if placed here
|
||||
// Moss Hornet
|
||||
// Needler @ 4% Normal, 6.67% Expert+
|
||||
// This automatically covers all variations
|
||||
case NPCID.MossHornet:
|
||||
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<Needler>(), 25, 15));
|
||||
break;
|
||||
|
||||
// Moth
|
||||
// Butterfly Dust @ 100% INSTEAD OF 50%
|
||||
@@ -1902,22 +1907,16 @@ namespace CalamityMod.NPCs
|
||||
break;
|
||||
#endregion
|
||||
}
|
||||
//If the enemy is part of a list (Hornets, Skeletons, etc,) place it here as in the section before it no longer works
|
||||
//If the enemy is part of a list, place it here as in the section before it no longer works
|
||||
#region Enemy Lists
|
||||
|
||||
// All Moss Hornets
|
||||
// Needler @ 4% Normal, 6.67% Expert+
|
||||
if (MossHornetIDList.Includes(npc.type))
|
||||
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<Needler>(), 25, 15));
|
||||
|
||||
// All Skeletons
|
||||
// Ancient Bone Dust @ 20% Normal, 33.33% Expert+
|
||||
if (SkeletonIDList.Includes(npc.type))
|
||||
if (CalamityNPCTypeSets.Skeleton[npc.type])
|
||||
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<AncientBoneDust>(), 5, 3));
|
||||
|
||||
// All Hardmode Dungeon Enemies
|
||||
// Ectoplasm @ 20%
|
||||
if (BuffedDungeonEnemiesList.Includes(npc.type))
|
||||
if (CalamityNPCSets.IsBuffedDungeonEnemy[npc.type])
|
||||
npcLoot.Add(ItemID.Ectoplasm, 5);
|
||||
#endregion
|
||||
}
|
||||
@@ -1951,7 +1950,7 @@ namespace CalamityMod.NPCs
|
||||
public override bool PreKill(NPC npc)
|
||||
{
|
||||
// Stop Eater of Worlds segments and Brain of Cthulhu Creepers from dropping partial loot in Rev+
|
||||
if (CalamityWorld.revenge && (EaterOfWorldsIDList.Includes(npc.type) || npc.type == NPCID.Creeper))
|
||||
if (CalamityWorld.revenge && (CalamityNPCTypeSets.EaterOfWorlds.Contains(npc.type) || npc.type == NPCID.Creeper))
|
||||
DropHelper.BlockDrops(ItemID.DemoniteOre, ItemID.ShadowScale, ItemID.CrimtaneOre, ItemID.TissueSample);
|
||||
|
||||
// Boss Rush pre-kill effects
|
||||
|
||||
@@ -1082,10 +1082,8 @@ namespace CalamityMod.NPCs
|
||||
public void BoundNPCSafety(Mod mod, NPC npc)
|
||||
{
|
||||
// Make Bound Town NPCs take no damage
|
||||
if (BoundNPCIDList.Includes(npc.type))
|
||||
{
|
||||
if (CalamityNPCTypeSets.BoundTownNPC[npc.type])
|
||||
npc.dontTakeDamageFromHostiles = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void MakeTownNPCsTakeMoreDamage(NPC npc, Projectile projectile, Mod mod, ref NPC.HitModifiers modifiers)
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace CalamityMod.NPCs
|
||||
private void PierceResistGlobal(Projectile projectile, NPC npc, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
// Thanatos segments do not trigger pierce resistance if they are closed
|
||||
if (ThanatosIDList.Includes(npc.type) && npc.GetGlobalNPC<CalamityGlobalNPC>().unbreakableDR)
|
||||
if (CalamityNPCTypeSets.Thanatos.Contains(npc.type) && npc.GetGlobalNPC<CalamityGlobalNPC>().unbreakableDR)
|
||||
return;
|
||||
|
||||
float damageReduction = projectile.Calamity().timesPierced * BalancingConstants.PierceResistHarshness;
|
||||
|
||||
@@ -1593,7 +1593,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
{
|
||||
int buffID = NPC.buffType[l];
|
||||
|
||||
bool shouldHalveDuration = DebuffsList.Includes(buffID);
|
||||
bool shouldHalveDuration = CalamityBuffSets.IsDebuff[buffID];
|
||||
|
||||
if (shouldHalveDuration && NPC.buffTime[l] > 4)
|
||||
NPC.buffTime[l] = 4;
|
||||
|
||||
@@ -275,10 +275,6 @@ namespace CalamityMod.Projectiles.BaseProjectiles
|
||||
#endregion
|
||||
|
||||
#region Overrides
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileDestroyExceptionsList.List.Add(Projectile.type);
|
||||
}
|
||||
/// <summary>
|
||||
/// DO NOT OVERRIDE IN MOST SITUATIONS
|
||||
/// use Defaults() instead.
|
||||
@@ -302,8 +298,6 @@ namespace CalamityMod.Projectiles.BaseProjectiles
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 100;
|
||||
Defaults();
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// DO NOT OVERRIDE IN MOST SITUATIONS
|
||||
|
||||
@@ -351,7 +351,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int buffType = target.buffType[l];
|
||||
if (target.buffTime[l] > 0 && AmalgamBuffList.Includes(buffType))
|
||||
if (target.buffTime[l] > 0 && CalamityBuffSets.BuffedByAmalgam[buffType])
|
||||
{
|
||||
target.DelBuff(l);
|
||||
l--;
|
||||
|
||||
@@ -3040,7 +3040,7 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
if (NPC.downedMoonlord)
|
||||
{
|
||||
if (BuffedDungeonProjectilesList.Includes(projectile.type))
|
||||
if (CalamityProjectileSets.IsBuffedDungeonProjectile[projectile.type])
|
||||
{
|
||||
// ai[1] being set to 1 is done only by the Calamity usages of these projectiles in Skeletron and Skeletron Prime boss fights
|
||||
bool isSkeletronBossProjectile = (projectile.type == ProjectileID.RocketSkeleton || projectile.type == ProjectileID.Shadowflames) && projectile.ai[1] > 0f;
|
||||
@@ -3052,7 +3052,7 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
if (DownedBossSystem.downedDoG && (Main.pumpkinMoon || Main.snowMoon || Main.eclipse))
|
||||
{
|
||||
if (EventProjectileBuffList.Includes(projectile.type))
|
||||
if (CalamityProjectileSets.IsBuffedEventProjectile[projectile.type])
|
||||
projectile.damage += 15;
|
||||
}
|
||||
|
||||
@@ -4065,18 +4065,15 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
// Implementation of shared static iframes.
|
||||
// If this projectile does not use static iframes, or is not registered to share them, then do nothing.
|
||||
if (!projectile.usesIDStaticNPCImmunity || !SharedStaticIFrames.Includes(projectile.type))
|
||||
return;
|
||||
|
||||
// Get the set of shared static iframe projectile types.
|
||||
// If it's empty, then do nothing.
|
||||
IList<int> sharedWithProjectiles = SharedStaticIFrames.GetSharedStaticIFrames(projectile.type);
|
||||
if (sharedWithProjectiles.Count <= 0)
|
||||
if (!projectile.usesIDStaticNPCImmunity || CalamityProjectileSets.SharedIDStaticIFrames[projectile.type] == -1)
|
||||
return;
|
||||
|
||||
// Apply the appropriate shared static iframes to all projectile types with which it is shared.
|
||||
foreach (int projType in sharedWithProjectiles)
|
||||
Projectile.perIDStaticNPCImmunity[projType][target.whoAmI] = Main.GameUpdateCount + (uint)projectile.idStaticNPCHitCooldown;
|
||||
for (int proj = 0; proj < CalamityProjectileSets.SharedIDStaticIFrames.Length; proj++)
|
||||
{
|
||||
if (CalamityProjectileSets.SharedIDStaticIFrames[proj] == CalamityProjectileSets.SharedIDStaticIFrames[projectile.type])
|
||||
Projectile.perIDStaticNPCImmunity[proj][target.whoAmI] = Main.GameUpdateCount + (uint)projectile.idStaticNPCHitCooldown;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Healing
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int buffID = player.buffType[l];
|
||||
if (player.buffTime[l] > 2 && DebuffsList.Includes(buffID))
|
||||
if (player.buffTime[l] > 2 && CalamityBuffSets.IsDebuff[buffID])
|
||||
{
|
||||
player.buffTime[l] *= 0;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Healing
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int buffID = player.buffType[l];
|
||||
if (player.buffTime[l] > 2 && DebuffsList.Includes(buffID))
|
||||
if (player.buffTime[l] > 2 && CalamityBuffSets.IsDebuff[buffID])
|
||||
{
|
||||
player.buffTime[l] *= 0;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Healing
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int buffID = player.buffType[l];
|
||||
if (player.buffTime[l] > 2 && DebuffsList.Includes(buffID))
|
||||
if (player.buffTime[l] > 2 && CalamityBuffSets.IsDebuff[buffID])
|
||||
{
|
||||
player.buffTime[l] *= 0;
|
||||
}
|
||||
|
||||
@@ -94,19 +94,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
target.AddBuff(BuffID.Electrified, 60);
|
||||
target.AddBuff(ModContent.BuffType<GalvanicCorrosion>(), 60);
|
||||
|
||||
if (target.knockBackResist <= 0f)
|
||||
return;
|
||||
|
||||
// 12AUG2023: Ozzatron: TML was giving NaN knockback, probably due to 0 base knockback. Do not use hit.Knockback
|
||||
if (CalamityGlobalNPC.ShouldAffectNPC(target))
|
||||
{
|
||||
float knockbackMultiplier = MathHelper.Clamp(1f - target.knockBackResist, 0f, 1f);
|
||||
Vector2 trueKnockback = target.Center - Projectile.Center;
|
||||
trueKnockback.Normalize();
|
||||
target.velocity = trueKnockback * knockbackMultiplier;
|
||||
}
|
||||
}
|
||||
// CIT 2MAY2025: Replaced old manual knockback code with setting HitDirectionOverride
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.HitDirectionOverride = (target.Center.X > Projectile.Center.X).ToDirectionInt();
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
//Dont drop money from Dummies, WoF eyes and worm segments to make grinding money a bit harder and not give money from Dummies since that was apparently happening
|
||||
if (Projectile.owner == Main.myPlayer && target.IsAnEnemy(false) && !target.dontCountMe && !NeedsDebuffIconDisplayList.Includes(target.type))
|
||||
if (Projectile.owner == Main.myPlayer && target.IsAnEnemy(false) && !target.dontCountMe && !CalamityNPCSets.ForceDrawDebuffDisplay[target.type])
|
||||
{
|
||||
float moneyValueToDrop = target.value / Main.rand.NextFloat(15f, 35f);
|
||||
// Maximum of 50 silver, not counting steath strikes
|
||||
|
||||
@@ -66,23 +66,9 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<VermillionFlux>(), 180);
|
||||
|
||||
if (target.knockBackResist <= 0f)
|
||||
return;
|
||||
|
||||
// 12AUG2023: Ozzatron: TML was giving NaN knockback, probably due to 0 base knockback. Do not use hit.Knockback
|
||||
if (CalamityGlobalNPC.ShouldAffectNPC(target))
|
||||
{
|
||||
float knockbackMultiplier = MathHelper.Clamp(1f - target.knockBackResist, 0f, 1f);
|
||||
Vector2 trueKnockback = target.Center - Projectile.Center;
|
||||
trueKnockback.Normalize();
|
||||
target.velocity = trueKnockback * knockbackMultiplier;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<VermillionFlux>(), 180);
|
||||
// CIT 2MAY2025: Replaced old manual knockback code with setting HitDirectionOverride
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.HitDirectionOverride = (target.Center.X > Projectile.Center.X).ToDirectionInt();
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType<VermillionFlux>(), 180);
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
|
||||
@@ -57,27 +57,14 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
|
||||
if (!modPlayer.CryoStoneVanity)
|
||||
if (!player.Calamity().CryoStoneVanity)
|
||||
{
|
||||
target.AddBuff(BuffID.Frostburn2, 180);
|
||||
target.AddBuff(ModContent.BuffType<GlacialState>(), 30);
|
||||
|
||||
if (target.knockBackResist <= 0f)
|
||||
return;
|
||||
|
||||
// 12AUG2023: Ozzatron: TML was giving NaN knockback, probably due to 0 base knockback. Do not use hit.Knockback
|
||||
if (CalamityGlobalNPC.ShouldAffectNPC(target))
|
||||
{
|
||||
float knockbackMultiplier = MathHelper.Clamp(1f - target.knockBackResist, 0f, 1f);
|
||||
Vector2 trueKnockback = target.Center - Projectile.Center;
|
||||
trueKnockback.Normalize();
|
||||
target.velocity = trueKnockback * knockbackMultiplier;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// CIT 2MAY2025: Replaced old manual knockback code with setting HitDirectionOverride
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.HitDirectionOverride = (target.Center.X > Projectile.Center.X).ToDirectionInt();
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
|
||||
@@ -67,19 +67,9 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<StaticDischarge>(), 90);
|
||||
target.AddBuff(ModContent.BuffType<GalvanicCorrosion>(), 6);
|
||||
|
||||
if (target.knockBackResist <= 0f)
|
||||
return;
|
||||
|
||||
// 07AUG2023: Ozzatron: TML was giving NaN knockback, probably due to 0 base knockback. Do not use hit.Knockback
|
||||
if (CalamityGlobalNPC.ShouldAffectNPC(target))
|
||||
{
|
||||
float knockbackMultiplier = MathHelper.Clamp(1f - target.knockBackResist, 0f, 1f);
|
||||
Vector2 trueKnockback = target.Center - Projectile.Center;
|
||||
trueKnockback.Normalize();
|
||||
target.velocity = trueKnockback * knockbackMultiplier;
|
||||
}
|
||||
}
|
||||
// CIT 2MAY2025: Replaced old manual knockback code with setting HitDirectionOverride
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.HitDirectionOverride = (target.Center.X > Projectile.Center.X).ToDirectionInt();
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> of modded Tile IDs which the Abyss can replace while generating.
|
||||
/// </summary>
|
||||
public sealed class AbyssValidTileReplacementList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
// By default, Calamity does not add anything to this list. Mods are free to do so with reflection.
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check whether or not a tile can be replaced by the Abyss while generating.
|
||||
/// </summary>
|
||||
public static bool Includes(int tileType) => List.Contains(tileType);
|
||||
}
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IDictionary{T}"/> of all alcohol buff's IDs and their corresponding poison level.
|
||||
/// </summary>
|
||||
public sealed class AlcoholsDict : ModSystem
|
||||
{
|
||||
public static IDictionary<int, int> Dict { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
Dict = new Dictionary<int, int>
|
||||
{
|
||||
{ BuffID.Tipsy, 1 },
|
||||
{ BuffType<BloodyMaryBuff>(), 1 },
|
||||
{ BuffType<CaribbeanRumBuff>(), 1 },
|
||||
{ BuffType<CinnamonRollBuff>(), 1 },
|
||||
{ BuffType<EverclearBuff>(), 2 },
|
||||
{ BuffType<EvergreenGinBuff>(), 1 },
|
||||
{ BuffType<FireballBuff>(), 1 },
|
||||
{ BuffType<GrapeBeerBuff>(), 1 },
|
||||
{ BuffType<MargaritaBuff>(), 1 },
|
||||
{ BuffType<MoonshineBuff>(), 1 },
|
||||
{ BuffType<MoscowMuleBuff>(), 1 },
|
||||
{ BuffType<OldFashionedBuff>(), 1 },
|
||||
{ BuffType<RedWineBuff>(), 1 },
|
||||
{ BuffType<RumBuff>(), 1 },
|
||||
{ BuffType<ScrewdriverBuff>(), 1 },
|
||||
{ BuffType<StarBeamRyeBuff>(), 1 },
|
||||
{ BuffType<TequilaBuff>(), 1 },
|
||||
{ BuffType<TequilaSunriseBuff>(), 1 },
|
||||
{ BuffType<VodkaBuff>(), 1 },
|
||||
{ BuffType<WhiskeyBuff>(), 1 },
|
||||
{ BuffType<WhiteWineBuff>(), 1 }
|
||||
};
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
Dict?.Clear();
|
||||
Dict = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to obtain an alcohol buff's poison level from its buff ID.
|
||||
/// </summary>
|
||||
public static bool TryGet(int buffType, out int poisonLevel)
|
||||
{
|
||||
return Dict.TryGetValue(buffType, out poisonLevel);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,123 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> with all buff IDs of those who are boosted by The Amalgam accessory.
|
||||
/// </summary>
|
||||
public sealed class AmalgamBuffList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
BuffType<AnechoicCoatingBuff>(),
|
||||
BuffType<AstralInjectionBuff>(),
|
||||
BuffType<BaguetteBuff>(),
|
||||
BuffType<BloodfinBoost>(),
|
||||
BuffType<BoundingBuff>(),
|
||||
BuffType<CalciumBuff>(),
|
||||
BuffType<CeaselessHunger>(),
|
||||
BuffType<GravityNormalizerBuff>(),
|
||||
BuffType<Omniscience>(),
|
||||
BuffType<PhotosynthesisBuff>(),
|
||||
BuffType<ShadowBuff>(),
|
||||
BuffType<Soaring>(),
|
||||
BuffType<SulphurskinBuff>(),
|
||||
BuffType<WeaponImbueBrimstone>(),
|
||||
BuffType<WeaponImbueCrumbling>(),
|
||||
BuffType<WeaponImbueHolyFlames>(),
|
||||
BuffType<Zen>(),
|
||||
BuffType<Zerg>(),
|
||||
BuffType<BloodyMaryBuff>(),
|
||||
BuffType<CaribbeanRumBuff>(),
|
||||
BuffType<CinnamonRollBuff>(),
|
||||
BuffType<EverclearBuff>(),
|
||||
BuffType<EvergreenGinBuff>(),
|
||||
BuffType<PurpleHazeBuff>(),
|
||||
BuffType<FireballBuff>(),
|
||||
BuffType<GrapeBeerBuff>(),
|
||||
BuffType<MargaritaBuff>(),
|
||||
BuffType<MoonshineBuff>(),
|
||||
BuffType<MoscowMuleBuff>(),
|
||||
BuffType<RedWineBuff>(),
|
||||
BuffType<RumBuff>(),
|
||||
BuffType<ScrewdriverBuff>(),
|
||||
BuffType<StarBeamRyeBuff>(),
|
||||
BuffType<TequilaBuff>(),
|
||||
BuffType<TequilaSunriseBuff>(),
|
||||
BuffType<Trippy>(),
|
||||
BuffType<VodkaBuff>(),
|
||||
BuffType<WhiskeyBuff>(),
|
||||
BuffType<WhiteWineBuff>(),
|
||||
BuffID.ObsidianSkin,
|
||||
BuffID.Regeneration,
|
||||
BuffID.Swiftness,
|
||||
BuffID.Gills,
|
||||
BuffID.Ironskin,
|
||||
BuffID.ManaRegeneration,
|
||||
BuffID.MagicPower,
|
||||
BuffID.Featherfall,
|
||||
BuffID.Spelunker,
|
||||
BuffID.Invisibility,
|
||||
BuffID.Shine,
|
||||
BuffID.NightOwl,
|
||||
BuffID.Battle,
|
||||
BuffID.Thorns,
|
||||
BuffID.WaterWalking,
|
||||
BuffID.Archery,
|
||||
BuffID.Hunter,
|
||||
BuffID.Gravitation,
|
||||
BuffID.Tipsy,
|
||||
BuffID.WellFed,
|
||||
BuffID.WellFed2,
|
||||
BuffID.WellFed3,
|
||||
BuffID.Honey,
|
||||
BuffID.WeaponImbueVenom,
|
||||
BuffID.WeaponImbueCursedFlames,
|
||||
BuffID.WeaponImbueFire,
|
||||
BuffID.WeaponImbueGold,
|
||||
BuffID.WeaponImbueIchor,
|
||||
BuffID.WeaponImbueNanites,
|
||||
BuffID.WeaponImbueConfetti,
|
||||
BuffID.WeaponImbuePoison,
|
||||
BuffID.Lucky,
|
||||
BuffID.Mining,
|
||||
BuffID.Heartreach,
|
||||
BuffID.Calm,
|
||||
BuffID.Builder,
|
||||
BuffID.Titan,
|
||||
BuffID.Flipper,
|
||||
BuffID.Summoning,
|
||||
BuffID.Dangersense,
|
||||
BuffID.AmmoReservation,
|
||||
BuffID.Lifeforce,
|
||||
BuffID.Endurance,
|
||||
BuffID.Rage,
|
||||
BuffID.Inferno,
|
||||
BuffID.Wrath,
|
||||
BuffID.Lovestruck,
|
||||
BuffID.Stinky,
|
||||
BuffID.Fishing,
|
||||
BuffID.Sonar,
|
||||
BuffID.Crate,
|
||||
BuffID.Warmth,
|
||||
BuffID.SugarRush
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check whether or not a buff is boosted by The Amalgam or not.
|
||||
/// </summary>
|
||||
public static bool Includes(int buffID) => List.Contains(buffID);
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> of all Vanilla Spears to make them autoreusable.
|
||||
/// </summary>
|
||||
public sealed class AutoreusableSpearsList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ItemID.AdamantiteGlaive,
|
||||
ItemID.ChlorophytePartisan,
|
||||
ItemID.CobaltNaginata,
|
||||
ItemID.DarkLance,
|
||||
ItemID.MonkStaffT2,
|
||||
ItemID.Gungnir,
|
||||
ItemID.MushroomSpear,
|
||||
ItemID.MythrilHalberd,
|
||||
ItemID.NorthPole,
|
||||
ItemID.ObsidianSwordfish,
|
||||
ItemID.OrichalcumHalberd,
|
||||
ItemID.PalladiumPike,
|
||||
ItemID.Spear,
|
||||
ItemID.Swordfish,
|
||||
ItemID.TheRottedFork,
|
||||
ItemID.TitaniumTrident,
|
||||
ItemID.Trident,
|
||||
ItemID.ThunderSpear
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check whether or not an item is an autoreusable spear.
|
||||
/// </summary>
|
||||
public static bool Includes(int itemType) => List.Contains(itemType);
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Items.Tools;
|
||||
using CalamityMod.Items.Weapons.DraedonsArsenal;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class BlacklistedWeaponsWithToolPowerList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
// This list intentionally does not contain Grax.
|
||||
List =
|
||||
[
|
||||
ItemID.ButchersChainsaw,
|
||||
ItemID.LucyTheAxe,
|
||||
ItemID.Rockfish,
|
||||
ItemType<AxeofPurity>(),
|
||||
ItemType<HydraulicVoltCrasher>(),
|
||||
ItemType<InfernaCutter>(),
|
||||
ItemType<PhotonRipper>(),
|
||||
ItemType<Respiteblock>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if this Item is Blacklisted.
|
||||
/// </summary>
|
||||
public static bool Includes(int itemType) => List.Contains(itemType);
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> which contains a <see cref="IList{T}"/> that has the Projectile IDs of all projectiles who are buffed Dungeon projectiles.
|
||||
/// </summary>
|
||||
public sealed class BuffedDungeonProjectilesList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ProjectileID.PaladinsHammerHostile,
|
||||
ProjectileID.ShadowBeamHostile,
|
||||
ProjectileID.InfernoHostileBolt,
|
||||
ProjectileID.InfernoHostileBlast,
|
||||
ProjectileID.LostSoulHostile,
|
||||
ProjectileID.SniperBullet,
|
||||
ProjectileID.RocketSkeleton,
|
||||
ProjectileID.BulletDeadeye,
|
||||
ProjectileID.Shadowflames
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if this projectile is a buffed Dungeon projectile.
|
||||
/// </summary>
|
||||
public static bool Includes(int projType) => List.Contains(projType);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Buffs;
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Buffs.Cooldowns;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Buffs.Summon.Whips;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using ReLogic.Reflection;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
[ReinitializeDuringResizeArrays]
|
||||
public static class CalamityBuffSets
|
||||
{
|
||||
public static SetFactory Factory = new SetFactory(BuffLoader.BuffCount, "CalamityMod/BuffID", Search);
|
||||
public static IdDictionary Search = IdDictionary.Create<BuffID, int>();
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a buff type, then that buff will have its duration extended with The Amalgam equipped.<br/>
|
||||
/// Also used to remove buffs when contacting the Whispering Maelstrom in the Get fixed boi seed.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] BuffedByAmalgam = Factory.CreateBoolSet(BuffID.ObsidianSkin, BuffID.Regeneration, BuffID.Swiftness, BuffID.Gills, BuffID.Ironskin, BuffID.ManaRegeneration,
|
||||
BuffID.MagicPower, BuffID.Featherfall, BuffID.Spelunker, BuffID.Invisibility, BuffID.Shine, BuffID.NightOwl, BuffID.Battle, BuffID.Thorns, BuffID.WaterWalking,
|
||||
BuffID.Archery, BuffID.Hunter, BuffID.Gravitation, BuffID.Tipsy, BuffID.WellFed, BuffID.WellFed2, BuffID.WellFed3, BuffID.Honey, BuffID.WeaponImbueVenom,
|
||||
BuffID.WeaponImbueCursedFlames, BuffID.WeaponImbueFire, BuffID.WeaponImbueGold, BuffID.WeaponImbueIchor, BuffID.WeaponImbueNanites, BuffID.WeaponImbueConfetti,
|
||||
BuffID.WeaponImbuePoison, BuffID.Lucky, BuffID.Mining, BuffID.Heartreach, BuffID.Calm, BuffID.Builder, BuffID.Titan, BuffID.Flipper, BuffID.Summoning, BuffID.Dangersense,
|
||||
BuffID.AmmoReservation, BuffID.Lifeforce, BuffID.Endurance, BuffID.Rage, BuffID.Inferno, BuffID.Wrath, BuffID.Lovestruck, BuffID.Stinky, BuffID.Fishing, BuffID.Sonar,
|
||||
BuffID.Crate, BuffID.Warmth, BuffID.SugarRush, BuffType<AnechoicCoatingBuff>(), BuffType<AstralInjectionBuff>(), BuffType<BaguetteBuff>(), BuffType<BloodfinBoost>(),
|
||||
BuffType<BoundingBuff>(), BuffType<CalciumBuff>(), BuffType<CeaselessHunger>(), BuffType<GravityNormalizerBuff>(), BuffType<Omniscience>(), BuffType<PhotosynthesisBuff>(),
|
||||
BuffType<ShadowBuff>(), BuffType<Soaring>(), BuffType<SulphurskinBuff>(), BuffType<WeaponImbueBrimstone>(), BuffType<WeaponImbueCrumbling>(), BuffType<WeaponImbueHolyFlames>(),
|
||||
BuffType<Zen>(), BuffType<Zerg>(), BuffType<BloodyMaryBuff>(), BuffType<CaribbeanRumBuff>(), BuffType<CinnamonRollBuff>(), BuffType<EverclearBuff>(), BuffType<EvergreenGinBuff>(),
|
||||
BuffType<PurpleHazeBuff>(), BuffType<FireballBuff>(), BuffType<GrapeBeerBuff>(), BuffType<MargaritaBuff>(), BuffType<MoonshineBuff>(), BuffType<MoscowMuleBuff>(),
|
||||
BuffType<RedWineBuff>(), BuffType<RumBuff>(), BuffType<ScrewdriverBuff>(), BuffType<StarBeamRyeBuff>(), BuffType<TequilaBuff>(), BuffType<TequilaSunriseBuff>(),
|
||||
BuffType<Trippy>(), BuffType<VodkaBuff>(), BuffType<WhiskeyBuff>(), BuffType<WhiteWineBuff>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a buff type, then that buff is a persistent buff.<br/>
|
||||
/// Used by The Amalgam to prevent removing their persistence when the accessory is unequipped.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsPersistentBuff = Factory.CreateBoolSet(BuffID.WeaponImbueVenom, BuffID.WeaponImbueCursedFlames, BuffID.WeaponImbueFire, BuffID.WeaponImbueGold,
|
||||
BuffID.WeaponImbueIchor, BuffID.WeaponImbueNanites, BuffID.WeaponImbueConfetti, BuffID.WeaponImbuePoison, BuffType<WeaponImbueBrimstone>(),
|
||||
BuffType<WeaponImbueCrumbling>(), BuffType<WeaponImbueHolyFlames>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a buff type, then that buff is considered to be a sickness debuff.<br/>
|
||||
/// Used for reducing buff duration with Honey Dew and its upgrades.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsSicknessDebuff = Factory.CreateBoolSet(BuffID.Poisoned, BuffID.Venom, BuffType<BrainRot>(), BuffType<BurningBlood>(), BuffType<SulphuricPoisoning>(),
|
||||
BuffType<AstralInfectionDebuff>(), BuffType<Plague>(), BuffType<AbsorberAffliction>(), BuffType<WhisperingDeath>(), BuffType<Irradiated>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a buff type, then that buff is considered to be a fire debuff.<br/>
|
||||
/// Used for reducing buff duration with Living Dew and its upgrades, and providing Permafrost's Concoction's life regeneration boost.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsFireDebuff = Factory.CreateBoolSet(BuffID.OnFire, BuffID.OnFire3, BuffID.Burning, BuffID.CursedInferno, BuffID.ShadowFlame, BuffType<Shadowflame>(),
|
||||
BuffType<SearingLava>(), BuffType<BrimstoneFlames>(), BuffType<Daybroken>(), BuffType<HolyFlames>(), BuffType<GodSlayerInferno>(), BuffType<Dragonfire>(),
|
||||
BuffType<WeakBrimstoneFlames>(), BuffType<BanishingFire>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a buff type, then that buff is considered to be a debuff.<br/>
|
||||
/// This general-purpose set has several different uses, including reducing buff duration with Radiance, Crown Jewel and its upgrades' debuff effects, and removing debuffs with Cleansing Jelly and its upgrades' auras.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsDebuff = Factory.CreateBoolSet(BuffID.Poisoned, BuffID.Darkness, BuffID.Cursed, BuffID.OnFire, BuffID.Bleeding, BuffID.Confused, BuffID.Slow, BuffID.Weak,
|
||||
BuffID.Silenced, BuffID.BrokenArmor, BuffID.CursedInferno, BuffID.Frostburn, BuffID.Chilled, BuffID.Frozen, BuffID.Burning, BuffID.Suffocation, BuffID.Ichor,
|
||||
BuffID.Venom, BuffID.Blackout, BuffID.Electrified, BuffID.Rabies, BuffID.Webbed, BuffID.Stoned, BuffID.Dazed, BuffID.VortexDebuff, BuffID.WitheredArmor, BuffID.WitheredWeapon,
|
||||
BuffID.OgreSpit, BuffID.BetsysCurse, BuffType<SulphuricPoisoning>(), BuffType<Shadowflame>(), BuffType<Daybroken>(), BuffType<BrimstoneFlames>(), BuffType<BurningBlood>(),
|
||||
BuffType<BrainRot>(), BuffType<ElementalMix>(), BuffType<GlacialState>(), BuffType<GodSlayerInferno>(), BuffType<AstralInfectionDebuff>(), BuffType<HolyFlames>(),
|
||||
BuffType<Irradiated>(), BuffType<Plague>(), BuffType<CrushDepth>(), BuffType<HadopelagicPressure>(), BuffType<RiptideDebuff>(), BuffType<MarkedforDeath>(),
|
||||
BuffType<HeavyBleeding>(), BuffType<Laceration>(), BuffType<AbsorberAffliction>(), BuffType<ArmorCrunch>(), BuffType<Crumbling>(), BuffType<Vaporfied>(), BuffType<Eutrophication>(),
|
||||
BuffType<Dragonfire>(), BuffType<VermillionFlux>(), BuffType<AuricRebuke>(), BuffType<StaticDischarge>(), BuffType<Nightwither>(), BuffType<Voidfrost>(),
|
||||
BuffType<VulnerabilityHex>(), BuffType<MiracleBlight>(), BuffType<WhisperingDeath>(), BuffType<FrozenLungs>(), BuffType<FishAlert>(), BuffType<HolyInferno>(),
|
||||
BuffType<IcarusFolly>(), BuffType<DoGExtremeGravity>(), BuffType<PopoNoselessBuff>(), BuffType<SearingLava>(), BuffType<WeakBrimstoneFlames>(), BuffType<Withered>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a buff type, then that buff is a whip tag buff on the player.<br/>
|
||||
/// Used to prevent "whip stacking", the ability to grant the player multiple whip buff effects at once.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsSummonTagBuff = Factory.CreateBoolSet(BuffID.CoolWhipPlayerBuff, BuffID.ScytheWhipPlayerBuff, BuffID.SwordWhipPlayerBuff, BuffID.ThornWhipPlayerBuff, BuffType<ProfanedCrystalWhipBuff>());
|
||||
|
||||
/// <summary>
|
||||
/// Associates a buff type with its <see cref="SummonTag"/> structure. If a buff type is not a key in this dictionary, then it has no associated <see cref="SummonTag"/>.<br/>
|
||||
/// Used for several different effects, such as applying tag effects to NPCs, preventing "whip stacking" on NPCs, and drawing the tag effect icon below the NPC.
|
||||
/// </summary>
|
||||
public static Dictionary<int, SummonTag> SummonTagDebuff = new Dictionary<int, SummonTag>
|
||||
{
|
||||
{ BuffID.BlandWhipEnemyDebuff, SummonTag.LeatherWhip },
|
||||
{ BuffID.BoneWhipNPCDebuff, SummonTag.SpinalTap },
|
||||
{ BuffID.CoolWhipNPCDebuff, SummonTag.CoolWhip },
|
||||
{ BuffID.FlameWhipEnemyDebuff, SummonTag.Firecracker },
|
||||
{ BuffID.MaceWhipNPCDebuff, SummonTag.MorningStar },
|
||||
{ BuffID.RainbowWhipNPCDebuff, SummonTag.Kaleidoscope },
|
||||
{ BuffID.ScytheWhipEnemyDebuff, SummonTag.DarkHarvest },
|
||||
{ BuffID.SwordWhipNPCDebuff, SummonTag.Durendal },
|
||||
{ BuffID.ThornWhipNPCDebuff, SummonTag.Snapthorn },
|
||||
{ BuffType<ProfanedCrystalWhipDebuff>(), ProfanedSoulCrystal.SummonTag }
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Associates a buff type with its alcohol poison level. Used for the Alcohol Poisoning mechanic.<br/>
|
||||
/// If a buff type is not a key in this dictionary, then it does not increase alcohol poison level.
|
||||
/// </summary>
|
||||
public static Dictionary<int, int> AlcoholStrength = new Dictionary<int, int>
|
||||
{
|
||||
{ BuffID.Tipsy, 1 },
|
||||
{ BuffType<BloodyMaryBuff>(), 1 },
|
||||
{ BuffType<CaribbeanRumBuff>(), 1 },
|
||||
{ BuffType<CinnamonRollBuff>(), 1 },
|
||||
{ BuffType<EverclearBuff>(), 2 },
|
||||
{ BuffType<EvergreenGinBuff>(), 1 },
|
||||
{ BuffType<FireballBuff>(), 1 },
|
||||
{ BuffType<GrapeBeerBuff>(), 1 },
|
||||
{ BuffType<MargaritaBuff>(), 1 },
|
||||
{ BuffType<MoonshineBuff>(), 1 },
|
||||
{ BuffType<MoscowMuleBuff>(), 1 },
|
||||
{ BuffType<OldFashionedBuff>(), 1 },
|
||||
{ BuffType<PurpleHazeBuff>(), 1 },
|
||||
{ BuffType<RedWineBuff>(), 1 },
|
||||
{ BuffType<RumBuff>(), 1 },
|
||||
{ BuffType<ScrewdriverBuff>(), 1 },
|
||||
{ BuffType<StarBeamRyeBuff>(), 1 },
|
||||
{ BuffType<TequilaBuff>(), 1 },
|
||||
{ BuffType<TequilaSunriseBuff>(), 1 },
|
||||
{ BuffType<VodkaBuff>(), 1 },
|
||||
{ BuffType<WhiskeyBuff>(), 1 },
|
||||
{ BuffType<WhiteWineBuff>(), 1 }
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.Fishing.FishingRods;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.Tools;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.DraedonsArsenal;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using ReLogic.Reflection;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
[ReinitializeDuringResizeArrays]
|
||||
public static class CalamityItemSets
|
||||
{
|
||||
public static SetFactory Factory = new SetFactory(ItemLoader.ItemCount, "CalamityMod/ItemID", Search);
|
||||
public static IdDictionary Search = IdDictionary.Create<ItemID, int>();
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an item type, allows the item to always be used as long as only one of its <see cref="Item.shoot"/> projectile exists.<br/>
|
||||
/// Used to give specific vanilla spears pseudo-autoswing.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] AutoreusableSpear = Factory.CreateBoolSet(ItemID.AdamantiteGlaive, ItemID.ChlorophytePartisan, ItemID.CobaltNaginata, ItemID.DarkLance, ItemID.MonkStaffT2,
|
||||
ItemID.Gungnir, ItemID.MushroomSpear, ItemID.MythrilHalberd, ItemID.NorthPole, ItemID.ObsidianSwordfish, ItemID.OrichalcumHalberd, ItemID.PalladiumPike, ItemID.Spear,
|
||||
ItemID.Swordfish, ItemID.TheRottedFork, ItemID.TitaniumTrident, ItemID.Trident, ItemID.ThunderSpear);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an item type, prevents an item from removing Calamity's summon damage penalty mechanic despite having tool power.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] WeaponWithToolPowerAffectedBySummonPenalty = Factory.CreateBoolSet(ItemID.ButchersChainsaw, ItemID.LucyTheAxe, ItemID.Rockfish,
|
||||
ItemType<AxeofPurity>(), ItemType<HydraulicVoltCrasher>(), ItemType<InfernaCutter>(), ItemType<PhotonRipper>(), ItemType<Respiteblock>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an item type, manually disables Calamity's summon damage penalty mechanic while that item type is held.<br/>
|
||||
/// Unused by Calamity itself, and is only used for external mods to add to through mod calls.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] ItemWhichDisablesSummonerNerf = Factory.CreateBoolSet();
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an item type, holding the item sets <see cref="Player.accFishingLine"/> to true, preventing fishing lines from breaking.<br/>
|
||||
/// Should only be set on fishing poles.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] FishingPoleThatNeverBreaks = Factory.CreateBoolSet(ItemID.GoldenFishingRod, ItemType<EarlyBloomRod>(), ItemType<TheDevourerofCods>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an item type, forces a dropped item of this type to remain within the bounds of the world if it is spawned outside of it.<br/>
|
||||
/// Set this for items which are dropped by enemies or bosses which spawn on the edges of the world.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] ItemForcedInsideWorld = Factory.CreateBoolSet(ItemID.HotlineFishingHook, ItemID.BottomlessBucket, ItemID.SuperAbsorbantSponge, ItemID.FishingPotion,
|
||||
ItemID.SonarPotion, ItemID.CratePotion, ItemID.AnglerTackleBag, ItemID.HighTestFishingLine, ItemID.TackleBox, ItemID.AnglerEarring, ItemID.FishermansGuide, ItemID.WeatherRadio,
|
||||
ItemID.Sextant, ItemID.AnglerHat, ItemID.AnglerVest, ItemID.AnglerPants, ItemID.GoldenBugNet, ItemID.FishronWings, ItemID.Flairon, ItemID.Tsunami, ItemID.BubbleGun,
|
||||
ItemID.RazorbladeTyphoon, ItemID.TempestStaff, ItemID.FishronBossBag, ItemID.Coral, ItemID.Seashell, ItemID.Starfish, ItemID.SoulofSight, ItemID.GreaterHealingPotion,
|
||||
ItemID.SuperHealingPotion, ItemType<SubmarineShocker>(), ItemType<Barinautical>(), ItemType<Downpour>(), ItemType<DeepseaStaff>(), ItemType<ScourgeoftheSeas>(),
|
||||
ItemType<InsidiousImpaler>(), ItemType<SepticSkewer>(), ItemType<FetidEmesis>(), ItemType<VitriolicViper>(), ItemType<CadaverousCarrion>(), ItemType<ToxicantTwister>(),
|
||||
ItemType<OldDukeScales>(), ItemType<Greentide>(), ItemType<Leviatitan>(), ItemType<Atlantis>(), ItemType<AnahitasArpeggio>(), ItemType<Whitewater>(), ItemType<LeviathanTeeth>(),
|
||||
ItemType<GastricBelcherStaff>(), ItemType<PearlofEnthrallment>(), ItemType<AquaticScourgeBag>(), ItemType<OldDukeBag>(), ItemType<LeviathanBag>(), ItemType<OldDukeMask>(),
|
||||
ItemType<LeviathanMask>(), ItemType<AquaticScourgeMask>(), ItemType<OldDukeTrophy>(), ItemType<LeviathanTrophy>(), ItemType<AquaticScourgeTrophy>(), ItemType<LoreAquaticScourge>(),
|
||||
ItemType<LoreLeviathanAnahita>(), ItemType<LoreSulphurSea>(), ItemType<LoreAbyss>(), ItemType<LoreOldDuke>(), ItemType<PearlShard>(), ItemType<AeroStone>(), ItemType<TheCommunity>(),
|
||||
ItemType<DukesDecapitator>(), ItemType<SulphurousSand>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an item type, prevents this rogue weapon from triggering Venerated Locket's clone projectile effect when used.<br/>
|
||||
/// Primarily used for weapons which shoot short-distance projectiles.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] DisablesVeneratedLocketEffect = Factory.CreateBoolSet(ItemType<SlickCane>(), ItemType<Mycoroot>(), ItemType<CosmicKunai>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an item type, this item is considered to be a magic gun.<br/>
|
||||
/// Used for applying Calamity's reworked Meteor armor set bonus.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] MagicGun = Factory.CreateBoolSet(ItemID.BeeGun, ItemID.BubbleGun, ItemID.ChargedBlasterCannon, ItemID.HeatRay, ItemID.LaserMachinegun, ItemID.LaserRifle,
|
||||
ItemID.LeafBlower, ItemID.RainbowGun, ItemID.SpaceGun, ItemID.WaspGun, ItemID.ZapinatorGray, ItemID.ZapinatorOrange, ItemType<AbyssShocker>(), ItemType<AcidGun>(),
|
||||
ItemType<AethersWhisper>(), ItemType<AetherfluxCannon>(), ItemType<ApoctosisArray>(), ItemType<Cryophobia>(), ItemType<Effervescence>(), ItemType<EidolicWail>(),
|
||||
ItemType<Genesis>(), ItemType<IonBlaster>(), ItemType<NanoPurge>(), ItemType<Omicron>(), ItemType<PlasmaCaster>(), ItemType<PlasmaRifle>(), ItemType<PulsePistol>(),
|
||||
ItemType<PurgeGuzzler>(), ItemType<RainbowPartyCannon>(), ItemType<SHPC>(), ItemType<TeslaCannon>(), ItemType<TheSwarmer>(), ItemType<Volterion>(), ItemType<Vulcan>(), ItemType<Wingman>());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,359 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Crags;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.ExoMechs.Apollo;
|
||||
using CalamityMod.NPCs.ExoMechs.Ares;
|
||||
using CalamityMod.NPCs.ExoMechs.Artemis;
|
||||
using CalamityMod.NPCs.ExoMechs.Thanatos;
|
||||
using CalamityMod.NPCs.GreatSandShark;
|
||||
using CalamityMod.NPCs.HiveMind;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
using CalamityMod.NPCs.Perforator;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.NPCs.PlagueEnemies;
|
||||
using CalamityMod.NPCs.Polterghast;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using CalamityMod.NPCs.ProfanedGuardians;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
using CalamityMod.NPCs.Signus;
|
||||
using CalamityMod.NPCs.SlimeGod;
|
||||
using CalamityMod.NPCs.StormWeaver;
|
||||
using CalamityMod.NPCs.SunkenSea;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using ReLogic.Reflection;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
[ReinitializeDuringResizeArrays]
|
||||
public static class CalamityNPCSets
|
||||
{
|
||||
public static SetFactory Factory = new SetFactory(NPCLoader.NPCCount, "CalamityMod/NPCID", Search);
|
||||
public static IdDictionary Search = IdDictionary.Create<NPCID, int>();
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, makes this NPC be susceptible to <see cref="BuffID.Confused"/>.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] CalamityNPCNotImmuneToConfused = Factory.CreateBoolSet(NPCType<AeroSlime>(), NPCType<AstralachneaGround>(), NPCType<AstralachneaWall>(), NPCType<BloomSlime>(),
|
||||
NPCType<Bohldohr>(), NPCType<CalamityEye>(), NPCType<CrimulanBlightSlime>(), NPCType<Cryon>(), NPCType<CryoSlime>(), NPCType<DespairStone>(), NPCType<EbonianBlightSlime>(),
|
||||
NPCType<FearlessGoldfishWarrior>(), NPCType<HeatSpirit>(), NPCType<MantisShrimp>(), NPCType<OverloadedSoldier>(), NPCType<PerennialSlime>(), NPCType<RenegadeWarlock>(),
|
||||
NPCType<Rimehound>(), NPCType<Rotdog>(), NPCType<Scryllar>(), NPCType<ScryllarRage>(), NPCType<StellarCulex>(), NPCType<Stormlion>(), NPCType<SuperDummyNPC>(),
|
||||
NPCType<WulfrumGyrator>(), NPCType<WulfrumRover>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, forces this NPC to draw Calamity's debuff display, even if it is not a boss.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] ForceDrawDebuffDisplay = Factory.CreateBoolSet(NPCID.TargetDummy, NPCID.WallofFleshEye, NPCType<SuperDummyNPC>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC will not provide increased Rage generation despite being considered a boss.<br/>
|
||||
/// Primarily used by worm boss body and tail segments to prevent Rage being extraordinarily easy to get.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] BossSegmentThatDoesNotGenerateRageFaster = Factory.CreateBoolSet(NPCType<DesertScourgeBody>(), NPCType<DesertScourgeTail>(), NPCType<AquaticScourgeBody>(),
|
||||
NPCType<AquaticScourgeBodyAlt>(), NPCType<AquaticScourgeTail>(), NPCType<AstrumDeusBody>(), NPCType<AstrumDeusTail>(), NPCType<StormWeaverBody>(),
|
||||
NPCType<StormWeaverTail>(), NPCType<DevourerofGodsBody>(), NPCType<DevourerofGodsTail>(), NPCType<ThanatosBody1>(), NPCType<ThanatosBody2>(), NPCType<ThanatosTail>(),
|
||||
NPCType<AresLaserCannon>(), NPCType<AresTeslaCannon>(), NPCType<AresPlasmaFlamethrower>(), NPCType<AresGaussNuke>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, allows the NPC to scale its health based on the Boss Health Boost Percentage config option, even if it is not a boss.<br/>
|
||||
/// Also allows the NPC to receive health scaling from having multiple players in Expert+.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] ScalesHealthLikeBoss = Factory.CreateBoolSet(NPCID.EaterofWorldsHead, NPCID.EaterofWorldsBody, NPCID.EaterofWorldsTail, NPCID.SkeletronHand,
|
||||
NPCID.WallofFleshEye, NPCID.TheDestroyerBody, NPCID.TheDestroyerTail, NPCID.PrimeCannon, NPCID.PrimeLaser, NPCID.PrimeVice, NPCID.PrimeSaw, NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree, NPCID.GolemFistRight, NPCID.GolemFistLeft, NPCID.Sharkron, NPCID.Sharkron2, NPCID.MoonLordHead, NPCID.MoonLordHand, NPCType<DarkEnergy>(),
|
||||
NPCType<BrimstoneHeart>(), NPCType<SoulSeeker>(), NPCType<SoulSeekerSupreme>(), NPCType<Cataclysm>(), NPCType<SupremeCataclysm>(), NPCType<Catastrophe>(),
|
||||
NPCType<SupremeCatastrophe>(), NPCType<SepulcherHead>(), NPCType<SepulcherBody>(), NPCType<SepulcherTail>(), NPCType<SepulcherArm>(), NPCType<SepulcherBodyEnergyBall>(),
|
||||
NPCType<PrimordialWyrmBody>(), NPCType<PrimordialWyrmBodyAlt>(), NPCType<PrimordialWyrmHead>(), NPCType<PrimordialWyrmTail>(), NPCType<AquaticAberration>(),
|
||||
NPCType<AnahitasIceShield>(), NPCType<CryogenShield>(), NPCType<OldDukeToothBall>(), NPCType<SulphurousSharkron>(), NPCType<DraconicSwarmer>(), NPCType<AureusSpawn>(),
|
||||
NPCType<Brimling>(), NPCType<CrabShroom>(), NPCType<CosmicGuardianBody>(), NPCType<CosmicGuardianTail>(), NPCType<CosmicGuardianHead>(), NPCType<DankCreeper>(),
|
||||
NPCType<HiveBlob>(), NPCType<HiveBlob2>(), NPCType<DarkHeart>(), NPCType<DesertNuisanceBody>(), NPCType<DesertNuisanceHead>(), NPCType<DesertNuisanceTail>(),
|
||||
NPCType<DesertNuisanceBodyYoung>(), NPCType<DesertNuisanceHeadYoung>(), NPCType<DesertNuisanceTailYoung>(), NPCType<PolterPhantom>(), NPCType<PhantomFuckYou>(),
|
||||
NPCType<KingSlimeJewelEmerald>(), NPCType<KingSlimeJewelRuby>(), NPCType<KingSlimeJewelSapphire>(), NPCType<PlanterasFreeTentacle>(), NPCType<PlagueHomingMissile>(),
|
||||
NPCType<PlagueMine>(), NPCType<ProfanedRocks>(), NPCType<ProvSpawnDefense>(), NPCType<ProvSpawnOffense>(), NPCType<ProvSpawnHealer>(), NPCType<RockPillar>(),
|
||||
NPCType<FlamePillar>(), NPCType<CosmicMine>(), NPCType<CosmicLantern>(), NPCType<ProfanedGuardianDefender>(), NPCType<ProfanedGuardianHealer>(), NPCType<CorruptSlimeSpawn>(),
|
||||
NPCType<CorruptSlimeSpawn2>(), NPCType<CrimsonSlimeSpawn>(), NPCType<CrimsonSlimeSpawn2>(), NPCType<PerforatorHeadLarge>(), NPCType<PerforatorBodyLarge>(),
|
||||
NPCType<PerforatorTailLarge>(), NPCType<PerforatorHeadMedium>(), NPCType<PerforatorBodyMedium>(), NPCType<PerforatorTailMedium>(), NPCType<PerforatorHeadSmall>(),
|
||||
NPCType<PerforatorBodySmall>(), NPCType<PerforatorTailSmall>(), NPCType<EbonianPaladin>(), NPCType<CrimulanPaladin>(), NPCType<SplitEbonianPaladin>(),
|
||||
NPCType<SplitCrimulanPaladin>(), NPCType<SlimeGodCore>(), NPCType<RavagerBody>(), NPCType<RavagerClawLeft>(), NPCType<RavagerClawRight>(), NPCType<RavagerLegLeft>(),
|
||||
NPCType<RavagerLegRight>(), NPCType<RavagerHead>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC will have its contact damage set to 0.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] DealsZeroContactDamage = Factory.CreateBoolSet(NPCID.Harpy, NPCID.Salamander, NPCID.Salamander2, NPCID.Salamander3, NPCID.Salamander4, NPCID.Salamander5,
|
||||
NPCID.Salamander6, NPCID.Salamander7, NPCID.Salamander8, NPCID.Salamander9, NPCID.GiantCursedSkull, NPCID.FungiBulb, NPCID.GiantFungiBulb, NPCID.IcyMerman,
|
||||
NPCID.AngryNimbus, NPCID.SandElemental, NPCID.DarkCaster, NPCID.FireImp, NPCID.Tim, NPCID.CultistArcherBlue, NPCID.DesertDjinn, NPCID.DiabolistRed, NPCID.DiabolistWhite,
|
||||
NPCID.Gastropod, NPCID.IceElemental, NPCID.IchorSticker, NPCID.Necromancer, NPCID.NecromancerArmored, NPCID.RaggedCaster, NPCID.RaggedCasterOpenCoat, NPCID.RuneWizard,
|
||||
NPCID.SkeletonArcher, NPCID.SkeletonCommando, NPCID.SkeletonSniper, NPCID.TacticalSkeleton, NPCID.Clown, NPCID.GoblinArcher, NPCID.GoblinSorcerer, NPCID.GoblinSummoner,
|
||||
NPCID.PirateCrossbower, NPCID.PirateDeadeye, NPCID.PirateCaptain, NPCID.SnowmanGangsta, NPCID.SnowBalla, NPCID.DrManFly, NPCID.Eyezor, NPCID.Nailhead, NPCID.BrainScrambler,
|
||||
NPCID.GigaZapper, NPCID.RayGunner, NPCID.ScutlixRider, NPCID.MartianWalker, NPCID.MartianTurret, NPCID.ElfCopter, NPCID.ElfArcher, NPCID.NebulaBrain, NPCID.NebulaSoldier,
|
||||
NPCID.StardustCellSmall, NPCID.StardustJellyfishBig, NPCID.StardustSoldier, NPCID.StardustSpiderBig, NPCID.VortexHornetQueen, NPCID.VortexRifleman, NPCID.VortexSoldier,
|
||||
NPCID.PirateShipCannon, NPCID.MartianSaucer, NPCID.MartianSaucerCannon, NPCID.MartianSaucerCore, NPCID.MartianSaucerTurret, NPCID.Probe, NPCID.CultistBoss, NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree, NPCID.MoonLordFreeEye, NPCID.BloodSquid, NPCID.PlanterasHook, NPCID.Dandelion, NPCID.DD2DarkMageT1, NPCID.DD2DarkMageT3, NPCID.DD2OgreT2,
|
||||
NPCID.DD2OgreT3, NPCID.DD2GoblinBomberT1, NPCID.DD2GoblinBomberT2, NPCID.DD2GoblinBomberT3, NPCID.DD2JavelinstT1, NPCID.DD2JavelinstT2, NPCID.DD2JavelinstT3,
|
||||
NPCID.DD2KoboldWalkerT2, NPCID.DD2KoboldWalkerT3, NPCID.DD2DrakinT2, NPCID.DD2DrakinT3, NPCID.DD2KoboldFlyerT2, NPCID.DD2KoboldFlyerT3, NPCID.DD2WitherBeastT2,
|
||||
NPCID.DD2WitherBeastT3, NPCID.DD2LightningBugT3, NPCID.MourningWood, NPCID.Pumpking, NPCID.Everscream, NPCID.IceQueen, NPCID.SantaNK1, NPCID.AncientDoom);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC will have its damage reduced by 25% if the world is in Hardmode.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] NerfDamageInHardmode = Factory.CreateBoolSet(NPCID.AnglerFish, NPCID.AngryTrapper, NPCID.Arapaima, NPCID.BlackRecluse, NPCID.BlackRecluseWall,
|
||||
NPCID.BloodJelly, NPCID.FungoFish, NPCID.GreenJellyfish, NPCID.Clinger, NPCID.ArmoredSkeleton, NPCID.ArmoredViking, NPCID.Mummy, NPCID.DarkMummy, NPCID.LightMummy,
|
||||
NPCID.BloodFeeder, NPCID.DesertBeast, NPCID.ChaosElemental, NPCID.BloodMummy, NPCID.CorruptSlime, NPCID.Corruptor, NPCID.Crimslime, NPCID.CrimsonAxe, NPCID.CursedHammer,
|
||||
NPCID.Derpling, NPCID.Herpling, NPCID.DiggerHead, NPCID.DesertGhoul, NPCID.DesertGhoulCorruption, NPCID.DesertGhoulCrimson, NPCID.DesertGhoulHallow, NPCID.DuneSplicerHead,
|
||||
NPCID.EnchantedSword, NPCID.FloatyGross, NPCID.GiantBat, NPCID.GiantFlyingFox, NPCID.FungiSpore, NPCID.GiantTortoise, NPCID.IceTortoise, NPCID.HoppinJack, NPCID.Mimic,
|
||||
NPCID.IlluminantBat, NPCID.IlluminantSlime, NPCID.JungleCreeper, NPCID.JungleCreeperWall, NPCID.DesertLamiaDark, NPCID.DesertLamiaLight, NPCID.MossHornet, NPCID.Moth,
|
||||
NPCID.PigronCorruption, NPCID.PigronCrimson, NPCID.PigronHallow, NPCID.Pixie, NPCID.PossessedArmor, NPCID.RockGolem, NPCID.DesertScorpionWalk, NPCID.DesertScorpionWall,
|
||||
NPCID.Slimer, NPCID.ToxicSludge, NPCID.Unicorn, NPCID.WanderingEye, NPCID.Werewolf, NPCID.Wolf, NPCID.SeekerHead, NPCID.Wraith, NPCID.ChatteringTeethBomb, NPCID.IceGolem,
|
||||
NPCID.RainbowSlime, NPCID.SandShark, NPCID.SandsharkCorrupt, NPCID.SandsharkCrimson, NPCID.SandsharkHallow, NPCID.ShadowFlameApparition, NPCID.Parrot, NPCID.PirateCorsair,
|
||||
NPCID.PirateDeckhand, NPCID.PirateGhost, NPCID.BlueArmoredBonesMace, NPCID.BlueArmoredBonesSword, NPCID.BoneLee, NPCID.DungeonSpirit, NPCID.FlyingSnake, NPCID.HellArmoredBones,
|
||||
NPCID.HellArmoredBonesSpikeShield, NPCID.HellArmoredBonesSword, NPCID.MisterStabby, NPCID.Butcher, NPCID.CreatureFromTheDeep, NPCID.DeadlySphere, NPCID.Frankenstein,
|
||||
NPCID.Fritz, NPCID.Psycho, NPCID.Reaper, NPCID.SwampThing, NPCID.ThePossessed, NPCID.Vampire, NPCID.VampireBat, NPCID.HeadlessHorseman, NPCID.Hellhound, NPCID.Poltergeist,
|
||||
NPCID.Scarecrow1, NPCID.Scarecrow2, NPCID.Scarecrow3, NPCID.Scarecrow4, NPCID.Scarecrow5, NPCID.Scarecrow6, NPCID.Scarecrow7, NPCID.Scarecrow8, NPCID.Scarecrow9, NPCID.Scarecrow10,
|
||||
NPCID.Splinterling, NPCID.Flocko, NPCID.GingerbreadMan, NPCID.Krampus, NPCID.Nutcracker, NPCID.NutcrackerSpinning, NPCID.PresentMimic, NPCID.Yeti, NPCID.ZombieElf, NPCID.ZombieElfBeard,
|
||||
NPCID.ZombieElfGirl, NPCID.BloodEelHead, NPCID.GoblinShark, NPCID.EyeballFlyingFish, NPCID.ZombieMerman);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC is a post-Plantera Dungeon enemy. This causes two separate changes to the enemy.<br/>
|
||||
/// First, it grants them a 20% chance to drop Ectoplasm upon death.<br/>
|
||||
/// Second, it multiplies their max health by 2.5x and increases their damage by a flat 30 if Moon Lord has been defeated.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsBuffedDungeonEnemy = Factory.CreateBoolSet(NPCID.SkeletonSniper, NPCID.TacticalSkeleton, NPCID.SkeletonCommando, NPCID.Paladin, NPCID.GiantCursedSkull,
|
||||
NPCID.BoneLee, NPCID.DiabolistWhite, NPCID.DiabolistRed, NPCID.NecromancerArmored, NPCID.Necromancer, NPCID.RaggedCasterOpenCoat, NPCID.RaggedCaster,
|
||||
NPCID.HellArmoredBonesSword, NPCID.HellArmoredBonesMace, NPCID.HellArmoredBonesSpikeShield, NPCID.HellArmoredBones, NPCID.BlueArmoredBonesSword, NPCID.BlueArmoredBonesNoPants,
|
||||
NPCID.BlueArmoredBonesMace, NPCID.BlueArmoredBones, NPCID.RustyArmoredBonesSwordNoArmor, NPCID.RustyArmoredBonesSword, NPCID.RustyArmoredBonesFlail, NPCID.RustyArmoredBonesAxe);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC is spawned in the Pumpkin Moon.<br/>
|
||||
/// This will multiply their max health by 3.5x and increase their damage by a flat 30 if Devourer of Gods has been defeated.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsBuffedPumpkinMoonEnemy = Factory.CreateBoolSet(NPCID.Scarecrow1, NPCID.Scarecrow2, NPCID.Scarecrow3, NPCID.Scarecrow4, NPCID.Scarecrow5, NPCID.Scarecrow6,
|
||||
NPCID.Scarecrow7, NPCID.Scarecrow8, NPCID.Scarecrow9, NPCID.Scarecrow10, NPCID.HeadlessHorseman, NPCID.MourningWood, NPCID.Splinterling, NPCID.Pumpking,
|
||||
NPCID.PumpkingBlade, NPCID.Hellhound, NPCID.Poltergeist);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC is spawned in the Frost Moon.<br/>
|
||||
/// This will multiply their max health by 2.5x and increase their damage by a flat 30 if Devourer of Gods has been defeated.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsBuffedFrostMoonEnemy = Factory.CreateBoolSet(NPCID.ZombieElf, NPCID.ZombieElfBeard, NPCID.ZombieElfGirl, NPCID.PresentMimic, NPCID.GingerbreadMan,
|
||||
NPCID.Yeti, NPCID.Everscream, NPCID.IceQueen, NPCID.SantaNK1, NPCID.ElfCopter, NPCID.Nutcracker, NPCID.NutcrackerSpinning, NPCID.ElfArcher, NPCID.Krampus, NPCID.Flocko);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC is spawned in the Solar Eclipse.<br/>
|
||||
/// This will multiply their max health by 5x and increase their damage by a flat 30 if Devourer of Gods has been defeated.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsBuffedSolarEclipseEnemy = Factory.CreateBoolSet(NPCID.Eyezor, NPCID.Reaper, NPCID.Frankenstein, NPCID.SwampThing, NPCID.Vampire, NPCID.VampireBat,
|
||||
NPCID.Butcher, NPCID.CreatureFromTheDeep, NPCID.Fritz, NPCID.Nailhead, NPCID.Psycho, NPCID.DeadlySphere, NPCID.DrManFly, NPCID.ThePossessed, NPCID.Mothron,
|
||||
NPCID.MothronEgg, NPCID.MothronSpawn);
|
||||
|
||||
// TODO: This set should really also handle the actual splitting behavior and loot, but unsure of the best way to do that looking at what we have right now
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then that NPC is part of a worm which splits in Death Mode. Solely used to reduce their max health to 15% of its standard value.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] DeathModeSplittingWorm = Factory.CreateBoolSet(NPCID.DuneSplicerHead, NPCID.DuneSplicerBody, NPCID.DuneSplicerTail,
|
||||
NPCID.DiggerHead, NPCID.DiggerBody, NPCID.DiggerTail, NPCID.SeekerHead, NPCID.SeekerBody, NPCID.SeekerTail);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for an NPC type, then the NPC will receive a 30 second global cooldown to slowing debuffs after being inflicted by one.<br/>
|
||||
/// Also used to prevent weapon pulling effects and Anarchy Blade's ability to instantly kill enemies that are below 50% health.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] ResistSlowingDebuffsAndOtherSpecialEffects = Factory.CreateBoolSet(NPCID.KingSlime, NPCType<KingSlimeJewelRuby>(), NPCType<KingSlimeJewelSapphire>(),
|
||||
NPCType<KingSlimeJewelEmerald>(), NPCID.EyeofCthulhu, NPCID.EaterofWorldsHead, NPCID.EaterofWorldsBody, NPCID.EaterofWorldsTail, NPCID.BrainofCthulhu, NPCID.Creeper,
|
||||
NPCID.QueenBee, NPCID.Deerclops, NPCID.SkeletronHead, NPCID.SkeletronHand, NPCID.WallofFlesh, NPCID.WallofFleshEye, NPCID.PirateShipCannon, NPCID.QueenSlimeBoss,
|
||||
NPCID.Probe, NPCID.Retinazer, NPCID.Spazmatism, NPCID.SkeletronPrime, NPCID.PrimeCannon, NPCID.PrimeSaw, NPCID.PrimeLaser, NPCID.PrimeVice, NPCID.Plantera,
|
||||
NPCID.PlanterasTentacle, NPCType<PlanterasFreeTentacle>(), NPCID.Everscream, NPCID.SantaNK1, NPCID.IceQueen, NPCID.MourningWood, NPCID.Pumpking, NPCID.Mothron,
|
||||
NPCID.Golem, NPCID.GolemHead, NPCID.GolemHeadFree, NPCID.GolemFistRight, NPCID.GolemFistLeft, NPCID.MartianSaucerCore, NPCID.MartianSaucerCannon, NPCID.MartianSaucerTurret,
|
||||
NPCID.DukeFishron, NPCID.Sharkron, NPCID.Sharkron2, NPCID.HallowBoss, NPCID.CultistBoss, NPCID.CultistDragonHead, NPCID.CultistDragonBody1, NPCID.CultistDragonBody2,
|
||||
NPCID.CultistDragonBody3, NPCID.CultistDragonBody4, NPCID.CultistDragonTail, NPCID.AncientCultistSquidhead, NPCID.MoonLordHead, NPCID.MoonLordHand, NPCID.MoonLordCore,
|
||||
NPCID.MoonLordFreeEye, NPCID.DD2WyvernT1, NPCID.DD2WyvernT2, NPCID.DD2WyvernT3, NPCID.DD2DarkMageT1, NPCID.DD2DarkMageT3, NPCID.DD2SkeletonT1, NPCID.DD2SkeletonT3,
|
||||
NPCID.DD2WitherBeastT2, NPCID.DD2WitherBeastT3, NPCID.DD2DrakinT2, NPCID.DD2DrakinT3, NPCID.DD2KoboldWalkerT2, NPCID.DD2KoboldWalkerT3, NPCID.DD2KoboldFlyerT2,
|
||||
NPCID.DD2KoboldFlyerT3, NPCID.DD2OgreT2, NPCID.DD2OgreT3, NPCID.DD2Betsy,
|
||||
NPCType<DesertNuisanceHead>(), NPCType<DesertNuisanceBody>(), NPCType<DesertNuisanceTail>(), NPCType<DesertNuisanceHeadYoung>(), NPCType<DesertNuisanceBodyYoung>(),
|
||||
NPCType<DesertNuisanceTailYoung>(), NPCType<GiantClam>(), NPCType<PerforatorHeadLarge>(), NPCType<PerforatorHeadMedium>(), NPCType<PerforatorHeadSmall>(),
|
||||
NPCType<PerforatorBodyLarge>(), NPCType<PerforatorBodyMedium>(), NPCType<PerforatorBodySmall>(), NPCType<PerforatorTailLarge>(), NPCType<PerforatorTailMedium>(),
|
||||
NPCType<PerforatorTailSmall>(), NPCType<EbonianPaladin>(), NPCType<CrimulanPaladin>(), NPCType<SplitEbonianPaladin>(), NPCType<SplitCrimulanPaladin>(), NPCType<Horse>(),
|
||||
NPCType<CloudElemental>(), NPCType<CryogenShield>(), NPCType<AquaticScourgeHead>(), NPCType<AquaticScourgeBody>(), NPCType<AquaticScourgeBodyAlt>(), NPCType<AquaticScourgeTail>(),
|
||||
NPCType<CragmawMire>(), NPCType<Cataclysm>(), NPCType<Catastrophe>(), NPCType<SoulSeeker>(), NPCType<GreatSandShark>(), NPCType<AnahitasIceShield>(), NPCType<AureusSpawn>(),
|
||||
NPCType<PlaguebringerMiniboss>(), NPCType<PlagueHomingMissile>(), NPCType<PlagueMine>(), NPCType<RavagerClawLeft>(), NPCType<RavagerClawRight>(), NPCType<RavagerLegLeft>(),
|
||||
NPCType<RavagerLegRight>(), NPCType<RockPillar>(), NPCType<RavagerHead>(), NPCType<ProfanedGuardianDefender>(), NPCType<ProfanedGuardianHealer>(), NPCType<DraconicSwarmer>(),
|
||||
NPCType<ProvSpawnDefense>(), NPCType<ProvSpawnHealer>(), NPCType<ProvSpawnOffense>(), NPCType<BobbitWormHead>(), NPCType<Mauler>(), NPCType<ColossalSquid>(), NPCType<ReaperShark>(),
|
||||
NPCType<EidolonWyrmHead>(), NPCType<NuclearTerror>(), NPCType<OldDukeToothBall>(), NPCType<SulphurousSharkron>(), NPCType<SupremeCataclysm>(), NPCType<SupremeCatastrophe>(), NPCType<SoulSeekerSupreme>());
|
||||
|
||||
/// <summary>
|
||||
/// Associates an NPC type with the base value of their max health in Boss Rush.<br/>
|
||||
/// If an NPC type is not a key in this dictionary, then it will use its standard max health value.
|
||||
/// </summary>
|
||||
public static Dictionary<int, int> BossRushHealth = new Dictionary<int, int>
|
||||
{
|
||||
// Tier 1
|
||||
{ NPCID.KingSlime, 300000 }, // 30 seconds
|
||||
{ NPCID.BlueSlime, 3600 },
|
||||
{ NPCID.SlimeSpiked, 7200 },
|
||||
{ NPCID.GreenSlime, 2700 },
|
||||
{ NPCID.RedSlime, 5400 },
|
||||
{ NPCID.PurpleSlime, 7200 },
|
||||
{ NPCID.YellowSlime, 6300 },
|
||||
{ NPCID.IceSlime, 4500 },
|
||||
{ NPCID.UmbrellaSlime, 5400 },
|
||||
{ NPCID.RainbowSlime, 30000 },
|
||||
{ NPCID.Pinky, 15000 },
|
||||
{ NPCType<KingSlimeJewelRuby>(), 21000 },
|
||||
{ NPCType<KingSlimeJewelSapphire>(), 18000 },
|
||||
{ NPCType<KingSlimeJewelEmerald>(), 24000 },
|
||||
{ NPCID.EyeofCthulhu, 450000 }, // 30 seconds
|
||||
{ NPCID.ServantofCthulhu, 6000 },
|
||||
{ NPCID.EaterofWorldsHead, 10000 }, // 30 seconds + immunity timer at start
|
||||
{ NPCID.EaterofWorldsBody, 10000 },
|
||||
{ NPCID.EaterofWorldsTail, 10000 },
|
||||
{ NPCID.BrainofCthulhu, 100000 }, // 30 seconds with creepers
|
||||
{ NPCID.Creeper, 10000 },
|
||||
{ NPCID.QueenBee, 315000 }, // 30 seconds
|
||||
{ NPCID.Bee, 3000 },
|
||||
{ NPCID.BeeSmall, 2000 },
|
||||
{ NPCID.BigHornetHoney, 10000 },
|
||||
{ NPCID.HornetHoney, 7500 },
|
||||
{ NPCID.LittleHornetHoney, 5000 },
|
||||
{ NPCID.Deerclops, 315000 }, // 30 seconds
|
||||
{ NPCID.SkeletronHead, 150000 }, // 30 seconds
|
||||
{ NPCID.SkeletronHand, 60000 },
|
||||
{ NPCID.WallofFlesh, 450000 }, // 30 seconds
|
||||
{ NPCID.WallofFleshEye, 450000 },
|
||||
{ NPCID.TheHungry, 10000 },
|
||||
{ NPCID.TheHungryII, 5000 },
|
||||
{ NPCID.LeechHead, 5000 },
|
||||
{ NPCID.LeechBody, 5000 },
|
||||
{ NPCID.LeechTail, 5000 },
|
||||
// Tier 2
|
||||
{ NPCID.QueenSlimeBoss, 200000 }, // 30 seconds
|
||||
{ NPCID.QueenSlimeMinionBlue, 6000 },
|
||||
{ NPCID.QueenSlimeMinionPink, 6000 },
|
||||
{ NPCID.QueenSlimeMinionPurple, 5000 },
|
||||
{ NPCID.Spazmatism, 150000 }, // 30 seconds
|
||||
{ NPCID.Retinazer, 125000 },
|
||||
{ NPCID.TheDestroyer, 600000 }, // 30 seconds + immunity timer at start
|
||||
{ NPCID.TheDestroyerBody, 600000 },
|
||||
{ NPCID.TheDestroyerTail, 600000 },
|
||||
{ NPCID.Probe, 10000 },
|
||||
{ NPCID.SkeletronPrime, 160000 }, // 30 seconds
|
||||
{ NPCID.PrimeVice, 54000 },
|
||||
{ NPCID.PrimeCannon, 45000 },
|
||||
{ NPCID.PrimeSaw, 45000 },
|
||||
{ NPCID.PrimeLaser, 38000 },
|
||||
{ NPCID.Plantera, 160000 }, // 30 seconds
|
||||
{ NPCID.PlanterasTentacle, 5000 },
|
||||
{ NPCType<PlanterasFreeTentacle>(), 5000 },
|
||||
// Tier 3
|
||||
{ NPCID.Golem, 100000 }, // 30 seconds
|
||||
{ NPCID.GolemHead, 70000 },
|
||||
{ NPCID.GolemFistLeft, 30000 },
|
||||
{ NPCID.GolemFistRight, 30000 },
|
||||
{ NPCID.HallowBoss, 200000 }, // 30 seconds
|
||||
{ NPCID.DukeFishron, 290000 }, // 30 seconds
|
||||
{ NPCID.CultistBoss, 220000 }, // 30 seconds
|
||||
{ NPCID.CultistDragonHead, 60000 },
|
||||
{ NPCID.CultistDragonBody1, 60000 },
|
||||
{ NPCID.CultistDragonBody2, 60000 },
|
||||
{ NPCID.CultistDragonBody3, 60000 },
|
||||
{ NPCID.CultistDragonBody4, 60000 },
|
||||
{ NPCID.CultistDragonTail, 60000 },
|
||||
{ NPCID.AncientCultistSquidhead, 50000 },
|
||||
{ NPCID.MoonLordCore, 160000 }, // 1 minute
|
||||
{ NPCID.MoonLordHand, 45000 },
|
||||
{ NPCID.MoonLordHead, 60000 },
|
||||
{ NPCID.MoonLordLeechBlob, 800 }
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Associates an NPC type with an ID number used for Calamity's Speedrun Timer. Used for drawing the correct map icon for the boss.<br/>
|
||||
/// If an NPC type is not a key in this dictionary, then it will not be displayed on the Speedrun Timer.
|
||||
/// </summary>
|
||||
public static Dictionary<int, int> BossSpeedrunTimerID = new Dictionary<int, int>
|
||||
{
|
||||
{ NPCID.KingSlime, 1 },
|
||||
{ NPCType<DesertScourgeHead>(), 2 },
|
||||
{ NPCID.EyeofCthulhu, 3 },
|
||||
{ NPCType<Crabulon>(), 4 },
|
||||
{ NPCID.EaterofWorldsHead, 5 },
|
||||
{ NPCID.EaterofWorldsBody, 5 },
|
||||
{ NPCID.EaterofWorldsTail, 5 },
|
||||
{ NPCID.BrainofCthulhu, 6 },
|
||||
{ NPCType<HiveMind>(), 7 },
|
||||
{ NPCType<PerforatorHive>(), 8 },
|
||||
{ NPCID.QueenBee, 9 },
|
||||
{ NPCID.SkeletronHead, 10 },
|
||||
{ NPCType<SlimeGodCore>(), 11 },
|
||||
{ NPCType<SplitEbonianPaladin>(), 11 },
|
||||
{ NPCType<SplitCrimulanPaladin>(), 11 },
|
||||
{ NPCID.WallofFlesh, 12 },
|
||||
{ NPCType<Cryogen>(), 13 },
|
||||
{ NPCID.Retinazer, 14 },
|
||||
{ NPCID.Spazmatism, 14 },
|
||||
{ NPCType<AquaticScourgeHead>(), 15 },
|
||||
{ NPCID.TheDestroyer, 16 },
|
||||
{ NPCType<BrimstoneElemental>(), 17 },
|
||||
{ NPCID.SkeletronPrime, 18 },
|
||||
{ NPCType<CalamitasClone>(), 19 },
|
||||
{ NPCID.Plantera, 20 },
|
||||
{ NPCType<Leviathan>(), 21 },
|
||||
{ NPCType<Anahita>(), 21 },
|
||||
{ NPCType<AstrumAureus>(), 22 },
|
||||
{ NPCID.Golem, 23 },
|
||||
{ NPCType<PlaguebringerGoliath>(), 24 },
|
||||
{ NPCID.DukeFishron, 25 },
|
||||
{ NPCType<RavagerBody>(), 26 },
|
||||
{ NPCID.CultistBoss, 27 },
|
||||
{ NPCType<AstrumDeusHead>(), 28 },
|
||||
{ NPCID.MoonLordCore, 29 },
|
||||
{ NPCType<ProfanedGuardianCommander>(), 30 },
|
||||
{ NPCType<Dragonfolly>(), 31 },
|
||||
{ NPCType<Providence>(), 32 },
|
||||
{ NPCType<CeaselessVoid>(), 33 },
|
||||
{ NPCType<StormWeaverHead>(), 34 },
|
||||
{ NPCType<Signus>(), 35 },
|
||||
{ NPCType<Polterghast>(), 36 },
|
||||
{ NPCType<OldDuke>(), 37 },
|
||||
{ NPCType<DevourerofGodsHead>(), 38 },
|
||||
{ NPCType<Yharon>(), 39 },
|
||||
{ NPCType<SupremeCalamitas>(), 40 },
|
||||
{ NPCType<AresBody>(), 41 },
|
||||
{ NPCType<ThanatosHead>(), 41 },
|
||||
{ NPCType<Artemis>(), 41 },
|
||||
{ NPCType<Apollo>(), 41 },
|
||||
{ NPCID.QueenSlimeBoss, 42 },
|
||||
{ NPCID.HallowBoss, 43 },
|
||||
{ NPCID.Deerclops, 44 }
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.ExoMechs.Ares;
|
||||
using CalamityMod.NPCs.ExoMechs.Thanatos;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.Perforator;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
using CalamityMod.NPCs.SlimeGod;
|
||||
using CalamityMod.NPCs.StormWeaver;
|
||||
using ReLogic.Reflection;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
[ReinitializeDuringResizeArrays]
|
||||
public static class CalamityNPCTypeSets
|
||||
{
|
||||
public static SetFactory Factory = new SetFactory(NPCLoader.NPCCount, "CalamityMod/NPCType", Search);
|
||||
public static IdDictionary Search = IdDictionary.Create<NPCID, int>();
|
||||
|
||||
public static bool[] AngryBones = Factory.CreateBoolSet(NPCID.AngryBones, NPCID.AngryBonesBig, NPCID.AngryBonesBigMuscle, NPCID.AngryBonesBigHelmet);
|
||||
|
||||
public static bool[] BoundTownNPC = Factory.CreateBoolSet(NPCID.BoundGoblin, NPCID.BoundWizard, NPCID.BoundMechanic, NPCID.SleepingAngler, NPCID.BartenderUnconscious,
|
||||
NPCID.WebbedStylist, NPCID.GolferRescue);
|
||||
|
||||
public static bool[] Hornet = Factory.CreateBoolSet(NPCID.Hornet, NPCID.HornetFatty, NPCID.HornetHoney, NPCID.HornetLeafy, NPCID.HornetSpikey, NPCID.HornetStingy);
|
||||
|
||||
// Used for dropping Ancient Bone Dust, vanilla has a Skeleton NPCID set which has more unwanted enemies in it
|
||||
public static bool[] Skeleton = Factory.CreateBoolSet(NPCID.Skeleton, NPCID.HeadacheSkeleton, NPCID.MisassembledSkeleton, NPCID.PantlessSkeleton, NPCID.BoneThrowingSkeleton,
|
||||
NPCID.BoneThrowingSkeleton2, NPCID.BoneThrowingSkeleton3, NPCID.BoneThrowingSkeleton4, NPCID.SkeletonTopHat, NPCID.SkeletonAstonaut, NPCID.SkeletonAlien,
|
||||
NPCID.ArmoredSkeleton, NPCID.SkeletonArcher, NPCID.GreekSkeleton, NPCID.SporeSkeleton);
|
||||
|
||||
// Unused, though is more restrictive than the vanilla Zombie NPCID set
|
||||
public static bool[] Zombie = Factory.CreateBoolSet(NPCID.Zombie, NPCID.ArmedZombie, NPCID.BaldZombie, NPCID.PincushionZombie, NPCID.ArmedZombiePincussion, NPCID.SlimedZombie,
|
||||
NPCID.ArmedZombieSlimed, NPCID.SwampZombie, NPCID.ArmedZombieSwamp, NPCID.TwiggyZombie, NPCID.ArmedZombieTwiggy, NPCID.FemaleZombie, NPCID.ArmedZombieCenx,
|
||||
NPCID.ZombieRaincoat, NPCID.ZombieEskimo, NPCID.ArmedZombieEskimo, NPCID.MaggotZombie, NPCType<BucketZombie>());
|
||||
|
||||
|
||||
|
||||
public static List<int> AquaticScourge = [ NPCType<AquaticScourgeHead>(), NPCType<AquaticScourgeBody>(), NPCType<AquaticScourgeBodyAlt>(), NPCType<AquaticScourgeTail>() ];
|
||||
|
||||
public static List<int> Ares = [ NPCType<AresBody>(), NPCType<AresGaussNuke>(), NPCType<AresLaserCannon>(), NPCType<AresPlasmaFlamethrower>(), NPCType<AresTeslaCannon>() ];
|
||||
|
||||
public static List<int> AstrumDeus = [ NPCType<AstrumDeusHead>(), NPCType<AstrumDeusBody>(), NPCType<AstrumDeusTail>() ];
|
||||
|
||||
public static List<int> DesertScourge = [ NPCType<DesertScourgeHead>(), NPCType<DesertScourgeBody>(), NPCType<DesertScourgeTail>() ];
|
||||
|
||||
public static List<int> Destroyer = [ NPCID.TheDestroyer, NPCID.TheDestroyerBody, NPCID.TheDestroyerTail ];
|
||||
|
||||
public static List<int> DevourerOfGods = [ NPCType<DevourerofGodsHead>(), NPCType<DevourerofGodsBody>(), NPCType<DevourerofGodsTail>() ];
|
||||
|
||||
public static List<int> EaterOfWorlds = [ NPCID.EaterofWorldsHead, NPCID.EaterofWorldsBody, NPCID.EaterofWorldsTail ];
|
||||
|
||||
public static List<int> Perforators = [ NPCType<PerforatorHeadLarge>(), NPCType<PerforatorBodyLarge>(), NPCType<PerforatorTailLarge>(), NPCType<PerforatorHeadMedium>(),
|
||||
NPCType<PerforatorBodyMedium>(), NPCType<PerforatorTailMedium>(), NPCType<PerforatorHeadSmall>(), NPCType<PerforatorBodySmall>(), NPCType<PerforatorTailSmall>() ];
|
||||
|
||||
public static List<int> Ravager = [ NPCType<RavagerBody>(), NPCType<RavagerClawLeft>(), NPCType<RavagerClawRight>(), NPCType<RavagerLegLeft>(), NPCType<RavagerLegRight>(), NPCType<RavagerHead>() ];
|
||||
|
||||
public static List<int> SkeletronPrime = [ NPCID.SkeletronPrime, NPCID.PrimeCannon, NPCID.PrimeLaser, NPCID.PrimeSaw, NPCID.PrimeVice ];
|
||||
|
||||
public static List<int> SlimeGod = [ NPCType<EbonianPaladin>(), NPCType<CrimulanPaladin>(), NPCType<SplitEbonianPaladin>(), NPCType<SplitCrimulanPaladin>(), NPCType<SlimeGodCore>() ];
|
||||
|
||||
public static List<int> StormWeaver = [ NPCType<StormWeaverHead>(), NPCType<StormWeaverBody>(), NPCType<StormWeaverTail>() ];
|
||||
|
||||
public static List<int> Thanatos = [ NPCType<ThanatosHead>(), NPCType<ThanatosBody1>(), NPCType<ThanatosBody2>(), NPCType<ThanatosTail>() ];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using ReLogic.Reflection;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
[ReinitializeDuringResizeArrays]
|
||||
public static class CalamityProjectileSets
|
||||
{
|
||||
public static SetFactory Factory = new SetFactory(ProjectileLoader.ProjectileCount, "CalamityMod/ProjectileID", Search);
|
||||
public static IdDictionary Search = IdDictionary.Create<ProjectileID, int>();
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a projectile type, then that minion will completely ignore Calamity's summon damage penalty mechanic with no exceptions.<br/>
|
||||
/// Unused by Calamity itself, and is only used for external mods to add to through mod calls.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] MinionWhichIgnoresSummonerNerf = Factory.CreateBoolSet();
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a projectile type, then that projectile is spawned by a post-Plantera Dungeon enemy.<br/>
|
||||
/// This increases the projectile's damage by a flat 30 if Moon Lord has been defeated.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsBuffedDungeonProjectile = Factory.CreateBoolSet(ProjectileID.PaladinsHammerHostile, ProjectileID.ShadowBeamHostile, ProjectileID.InfernoHostileBolt,
|
||||
ProjectileID.InfernoHostileBlast, ProjectileID.LostSoulHostile, ProjectileID.SniperBullet, ProjectileID.RocketSkeleton, ProjectileID.BulletDeadeye, ProjectileID.Shadowflames);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a projectile type, then that projectile is spawned by a Solar Eclipse, Pumpkin Moon, or Frost Moon enemy.<br/>
|
||||
/// This increases the projectile's damage by a flat 15 during those events if Devourer of Gods has been defeated.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsBuffedEventProjectile = Factory.CreateBoolSet(ProjectileID.FlamingWood, ProjectileID.GreekFire1, ProjectileID.GreekFire2, ProjectileID.GreekFire3,
|
||||
ProjectileID.FlamingScythe, ProjectileID.FlamingArrow, ProjectileID.PineNeedleHostile, ProjectileID.OrnamentHostile, ProjectileID.OrnamentHostileShrapnel,
|
||||
ProjectileID.FrostWave, ProjectileID.FrostShard, ProjectileID.Missile, ProjectileID.Present, ProjectileID.Spike, ProjectileID.BulletDeadeye, ProjectileID.EyeLaser,
|
||||
ProjectileID.Nail, ProjectileID.DrManFlyFlask);
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a projectile type, then that projectile is considered a friendly bee.<br/>
|
||||
/// Used to allow the projectile to inflict Plague while wearing the Plaguebringer Carapace.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] IsFriendlyBeeProjectile = Factory.CreateBoolSet(ProjectileID.GiantBee, ProjectileID.Bee, ProjectileID.Wasp, ProjectileType<PlaguenadeBee>(),
|
||||
ProjectileType<PlaguePrincess>(), ProjectileType<BabyPlaguebringer>(), ProjectileType<PlagueBeeSmall>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a projectile type, then that projectile is a bomb or other explosive which is not a weapon.<br/>
|
||||
/// Used to provide early-game worm bosses a resistance to their explosive damage.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] ResistedExplosiveProjectile = Factory.CreateBoolSet(ProjectileID.Grenade, ProjectileID.StickyGrenade, ProjectileID.BouncyGrenade, ProjectileID.Bomb,
|
||||
ProjectileID.StickyBomb, ProjectileID.BouncyBomb, ProjectileID.Dynamite, ProjectileID.StickyDynamite, ProjectileID.BouncyDynamite, ProjectileID.Explosives,
|
||||
ProjectileID.ExplosiveBunny, ProjectileID.PartyGirlGrenade, ProjectileID.BombFish, ProjectileID.ScarabBomb, ProjectileID.TNTBarrel, ProjectileType<AeroExplosive>());
|
||||
|
||||
/// <summary>
|
||||
/// If <see langword="true"/> for a projectile type, then that projectile will never be reflected by armor or accessory effects.<br/>
|
||||
/// Set this for persistent projectiles such as deathrays to avoid major screwing of their behavior.<br/>
|
||||
/// Only needs to be set for hostile projectiles, as these effects already have a check to ensure they never trigger in PvP.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] ShouldNotBeReflected = Factory.CreateBoolSet(ProjectileID.SaucerDeathray, ProjectileID.PhantasmalDeathray, ProjectileType<BrimstoneMonster>(),
|
||||
ProjectileType<InfernadoRevenge>(), ProjectileType<OverlyDramaticDukeSummoner>(), ProjectileType<ProvidenceHolyRay>(), ProjectileType<OldDukeVortex>(),
|
||||
ProjectileType<BrimstoneRay>(), ProjectileType<AresDeathBeamStart>(), ProjectileType<AresGaussNukeProjectileBoom>(), ProjectileType<AresLaserBeamStart>(),
|
||||
ProjectileType<ArtemisSpinLaserbeam>(), ProjectileType<BirbAura>(), ProjectileType<ThanatosBeamStart>());
|
||||
|
||||
/// <summary>
|
||||
/// Determines what other projectiles this projectile will share ID-static immunity frames with. Defaults to -1, which means that it does not share immunity frames.<br/>
|
||||
/// Each "set" of projectile which shares immunity frames is registered to point to the same ID reference, usually the first projectile in the set. If a projectile with this reference hits an NPC, all other projectiles with that reference also have their ID-static immunity cooldown set for that NPC.
|
||||
/// </summary>
|
||||
public static int[] SharedIDStaticIFrames = Factory.CreateIntSet(-1,
|
||||
// Vanilla bees
|
||||
ProjectileID.Bee, ProjectileID.Bee,
|
||||
ProjectileID.GiantBee, ProjectileID.Bee,
|
||||
// Vilethorn
|
||||
ProjectileID.VilethornBase, ProjectileID.VilethornBase,
|
||||
ProjectileID.VilethornTip, ProjectileID.VilethornBase,
|
||||
// Nettle Burst
|
||||
ProjectileID.NettleBurstRight, ProjectileID.NettleBurstRight,
|
||||
ProjectileID.NettleBurstLeft, ProjectileID.NettleBurstRight,
|
||||
ProjectileID.NettleBurstEnd, ProjectileID.NettleBurstRight,
|
||||
// Magical Harp notes
|
||||
ProjectileID.QuarterNote, ProjectileID.QuarterNote,
|
||||
ProjectileID.EighthNote, ProjectileID.QuarterNote,
|
||||
ProjectileID.TiedEighthNote, ProjectileID.QuarterNote,
|
||||
// North Pole
|
||||
ProjectileID.NorthPoleWeapon, ProjectileID.NorthPoleWeapon,
|
||||
ProjectileID.NorthPoleSpear, ProjectileID.NorthPoleWeapon,
|
||||
ProjectileID.NorthPoleSnowflake, ProjectileID.NorthPoleWeapon,
|
||||
// Spore gas clouds
|
||||
ProjectileID.SporeTrap, ProjectileID.SporeTrap,
|
||||
ProjectileID.SporeTrap2, ProjectileID.SporeTrap,
|
||||
ProjectileID.SporeGas, ProjectileID.SporeTrap,
|
||||
ProjectileID.SporeGas2, ProjectileID.SporeTrap,
|
||||
ProjectileID.SporeGas3, ProjectileID.SporeTrap,
|
||||
// Astral Staff
|
||||
ProjectileType<AstralCrystal>(), ProjectileType<AstralCrystal>(),
|
||||
ProjectileType<AstralCrystalInvisibleExplosion>(), ProjectileType<AstralCrystal>(),
|
||||
// Keelhaul
|
||||
ProjectileType<KeelhaulGeyserBottom>(), ProjectileType<KeelhaulGeyserBottom>(),
|
||||
ProjectileType<KeelhaulGeyserTop>(), ProjectileType<KeelhaulGeyserBottom>(),
|
||||
// Toxic clouds
|
||||
ProjectileID.ToxicCloud, ProjectileID.ToxicCloud,
|
||||
ProjectileID.ToxicCloud2, ProjectileID.ToxicCloud,
|
||||
ProjectileID.ToxicCloud3, ProjectileID.ToxicCloud
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using CalamityMod.Tiles.LivingFire;
|
||||
using ReLogic.Reflection;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
[ReinitializeDuringResizeArrays]
|
||||
public static class CalamityTileSets
|
||||
{
|
||||
public static SetFactory Factory = new SetFactory(TileLoader.TileCount, "CalamityMod/TileID", Search);
|
||||
public static IdDictionary Search = IdDictionary.Create<TileID, int>();
|
||||
|
||||
/// <summary>
|
||||
/// Should only contain modded tiles. If <see langword="true"/> for a tile type, then that tile can be replaced by the Abyss during world generation.<br/>
|
||||
/// Unused by Calamity itself, and is only used for external mods to add to through reflection.<br/>
|
||||
/// Defaults to <see langword="false"/>.
|
||||
/// </summary>
|
||||
public static bool[] CanBeReplacedByAbyssGeneration = Factory.CreateBoolSet();
|
||||
}
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.Crags;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains all of the NPC's IDs of the NPCs who are immune to the Confusion debuff.
|
||||
/// </summary>
|
||||
public sealed class ConfusionDebuffImmunitiesList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<AeroSlime>(),
|
||||
NPCType<Rimehound>(),
|
||||
NPCType<AstralachneaGround>(),
|
||||
NPCType<AstralachneaWall>(),
|
||||
NPCType<BloomSlime>(),
|
||||
NPCType<Bohldohr>(),
|
||||
NPCType<CalamityEye>(),
|
||||
NPCType<CrimulanBlightSlime>(),
|
||||
NPCType<Cryon>(),
|
||||
NPCType<CryoSlime>(),
|
||||
NPCType<RenegadeWarlock>(),
|
||||
NPCType<DespairStone>(),
|
||||
NPCType<EbonianBlightSlime>(),
|
||||
NPCType<FearlessGoldfishWarrior>(),
|
||||
NPCType<HeatSpirit>(),
|
||||
NPCType<MantisShrimp>(),
|
||||
NPCType<OverloadedSoldier>(),
|
||||
NPCType<PerennialSlime>(),
|
||||
NPCType<Rotdog>(),
|
||||
NPCType<Scryllar>(),
|
||||
NPCType<ScryllarRage>(),
|
||||
NPCType<StellarCulex>(),
|
||||
NPCType<Stormlion>(),
|
||||
NPCType<SuperDummyNPC>(),
|
||||
NPCType<WulfrumGyrator>(),
|
||||
NPCType<WulfrumRover>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if an NPC is supposed to be immune to the Confusion debuff.
|
||||
/// </summary>
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,100 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Buffs;
|
||||
using CalamityMod.Buffs.Cooldowns;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> that has all Debuff IDs.
|
||||
/// </summary>
|
||||
public sealed class DebuffsList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
BuffID.Poisoned,
|
||||
BuffID.Darkness,
|
||||
BuffID.Cursed,
|
||||
BuffID.OnFire,
|
||||
BuffID.Bleeding,
|
||||
BuffID.Confused,
|
||||
BuffID.Slow,
|
||||
BuffID.Weak,
|
||||
BuffID.Silenced,
|
||||
BuffID.BrokenArmor,
|
||||
BuffID.CursedInferno,
|
||||
BuffID.Frostburn,
|
||||
BuffID.Chilled,
|
||||
BuffID.Frozen,
|
||||
BuffID.Burning,
|
||||
BuffID.Suffocation,
|
||||
BuffID.Ichor,
|
||||
BuffID.Venom,
|
||||
BuffID.Blackout,
|
||||
BuffID.Electrified,
|
||||
BuffID.Rabies,
|
||||
BuffID.Webbed,
|
||||
BuffID.Stoned,
|
||||
BuffID.Dazed,
|
||||
BuffID.VortexDebuff,
|
||||
BuffID.WitheredArmor,
|
||||
BuffID.WitheredWeapon,
|
||||
BuffID.OgreSpit,
|
||||
BuffID.BetsysCurse,
|
||||
BuffType<SulphuricPoisoning>(),
|
||||
BuffType<Shadowflame>(),
|
||||
BuffType<BrimstoneFlames>(),
|
||||
BuffType<BurningBlood>(),
|
||||
BuffType<BrainRot>(),
|
||||
BuffType<ElementalMix>(),
|
||||
BuffType<GlacialState>(),
|
||||
BuffType<GodSlayerInferno>(),
|
||||
BuffType<AstralInfectionDebuff>(),
|
||||
BuffType<HolyFlames>(),
|
||||
BuffType<Irradiated>(),
|
||||
BuffType<Plague>(),
|
||||
BuffType<CrushDepth>(),
|
||||
BuffType<RiptideDebuff>(),
|
||||
BuffType<MarkedforDeath>(),
|
||||
BuffType<AbsorberAffliction>(),
|
||||
BuffType<ArmorCrunch>(),
|
||||
BuffType<Crumbling>(),
|
||||
BuffType<Vaporfied>(),
|
||||
BuffType<Eutrophication>(),
|
||||
BuffType<Dragonfire>(),
|
||||
BuffType<VermillionFlux>(),
|
||||
BuffType<AuricRebuke>(),
|
||||
BuffType<StaticDischarge>(),
|
||||
BuffType<Nightwither>(),
|
||||
BuffType<VulnerabilityHex>(),
|
||||
BuffType<MiracleBlight>(),
|
||||
BuffType<WhisperingDeath>(),
|
||||
BuffType<FrozenLungs>(),
|
||||
BuffType<FishAlert>(),
|
||||
BuffType<HolyInferno>(),
|
||||
BuffType<IcarusFolly>(),
|
||||
BuffType<DoGExtremeGravity>(),
|
||||
// BuffType<NOU>(),
|
||||
BuffType<PopoNoselessBuff>(),
|
||||
BuffType<SearingLava>(),
|
||||
BuffType<WeakBrimstoneFlames>(),
|
||||
BuffType<Withered>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if a buff ID is a debuff.
|
||||
/// </summary>
|
||||
public static bool Includes(int buffID) => List.Contains(buffID);
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class DisabledSummonerNerfItemList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List = [];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int itemType) => List.Contains(itemType);
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class DisabledSummonerNerfMinionList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List = [];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int projType) => List.Contains(projType);
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> of all Projectile Types that receive Post-DoG Event Buff
|
||||
/// </summary>
|
||||
public sealed class EventProjectileBuffList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ProjectileID.FlamingWood,
|
||||
ProjectileID.GreekFire1,
|
||||
ProjectileID.GreekFire2,
|
||||
ProjectileID.GreekFire3,
|
||||
ProjectileID.FlamingScythe,
|
||||
ProjectileID.FlamingArrow,
|
||||
ProjectileID.PineNeedleHostile,
|
||||
ProjectileID.OrnamentHostile,
|
||||
ProjectileID.OrnamentHostileShrapnel,
|
||||
ProjectileID.FrostWave,
|
||||
ProjectileID.FrostShard,
|
||||
ProjectileID.Missile,
|
||||
ProjectileID.Present,
|
||||
ProjectileID.Spike,
|
||||
ProjectileID.BulletDeadeye,
|
||||
ProjectileID.EyeLaser,
|
||||
ProjectileID.Nail,
|
||||
ProjectileID.DrManFlyFlask
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int projType) => List.Contains(projType);
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> that has all the IDs of all Fire-type debuffs.
|
||||
/// </summary>
|
||||
public sealed class FireDebuffsList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
BuffID.OnFire,
|
||||
BuffID.OnFire3, // Hellfire
|
||||
BuffID.Burning, // Touching meteorite ore or hellstone without obsidian skull
|
||||
BuffID.CursedInferno,
|
||||
BuffID.ShadowFlame, // Vanilla Shadowflame, can normally never be applied to players
|
||||
BuffType<Shadowflame>(), // Calamity Shadowflame copy for players
|
||||
BuffType<SearingLava>(), // Crags lava
|
||||
BuffType<BrimstoneFlames>(),
|
||||
BuffType<HolyFlames>(),
|
||||
BuffType<GodSlayerInferno>(),
|
||||
BuffType<Dragonfire>(),
|
||||
BuffType<WeakBrimstoneFlames>(), // Aflame enchant self damage
|
||||
BuffType<BanishingFire>(),
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if a buff ID is a fire debuff.
|
||||
/// </summary>
|
||||
public static bool Includes(int buffID) => List.Contains(buffID);
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> that has all the Projectile IDs of all friendly bees.
|
||||
/// </summary>
|
||||
public sealed class FriendlyBeesList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ProjectileID.GiantBee,
|
||||
ProjectileID.Bee,
|
||||
ProjectileID.Wasp,
|
||||
ProjectileType<PlaguenadeBee>(),
|
||||
ProjectileType<PlaguePrincess>(),
|
||||
ProjectileType<BabyPlaguebringer>(),
|
||||
ProjectileType<PlagueBeeSmall>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if a projectile is a friendly bee.
|
||||
/// </summary>
|
||||
public static bool Includes(int projType) => List.Contains(projType);
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class GrenadeResistIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ProjectileID.Grenade,
|
||||
ProjectileID.StickyGrenade,
|
||||
ProjectileID.BouncyGrenade,
|
||||
ProjectileID.Bomb,
|
||||
ProjectileID.StickyBomb,
|
||||
ProjectileID.BouncyBomb,
|
||||
ProjectileID.Dynamite,
|
||||
ProjectileID.StickyDynamite,
|
||||
ProjectileID.BouncyDynamite,
|
||||
ProjectileID.Explosives,
|
||||
ProjectileID.ExplosiveBunny,
|
||||
ProjectileID.PartyGirlGrenade,
|
||||
ProjectileID.BombFish,
|
||||
ProjectileID.Beenade,
|
||||
ProjectileID.Bee,
|
||||
ProjectileID.GiantBee,
|
||||
ProjectileType<AeroExplosive>(),
|
||||
ProjectileID.ScarabBomb,
|
||||
ProjectileID.TNTBarrel
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int projectileType) => List.Contains(projectileType);
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Items.Fishing.FishingRods;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class HighTestFishingPoleList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ItemID.GoldenFishingRod,
|
||||
ItemType<EarlyBloomRod>(),
|
||||
ItemType<TheDevourerofCods>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int itemType) => List.Contains(itemType);
|
||||
}
|
||||
}
|
||||
@@ -1,110 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.Furniture.Trophies;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> of Item IDs of those which are forced to be inside the world map.
|
||||
/// </summary>
|
||||
public sealed class ItemsForcedInsideWorldList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ItemType<SubmarineShocker>(),
|
||||
ItemType<Barinautical>(),
|
||||
ItemType<Downpour>(),
|
||||
ItemType<DeepseaStaff>(),
|
||||
ItemType<ScourgeoftheSeas>(),
|
||||
ItemType<InsidiousImpaler>(),
|
||||
ItemType<SepticSkewer>(),
|
||||
ItemType<FetidEmesis>(),
|
||||
ItemType<VitriolicViper>(),
|
||||
ItemType<CadaverousCarrion>(),
|
||||
ItemType<ToxicantTwister>(),
|
||||
ItemType<OldDukeScales>(),
|
||||
ItemType<Greentide>(),
|
||||
ItemType<Leviatitan>(),
|
||||
ItemType<Atlantis>(),
|
||||
ItemType<AnahitasArpeggio>(),
|
||||
ItemType<Whitewater>(),
|
||||
ItemType<LeviathanTeeth>(),
|
||||
ItemType<GastricBelcherStaff>(),
|
||||
ItemType<PearlofEnthrallment>(),
|
||||
ItemType<AquaticScourgeBag>(),
|
||||
ItemType<OldDukeBag>(),
|
||||
ItemType<LeviathanBag>(),
|
||||
ItemType<OldDukeMask>(),
|
||||
ItemType<LeviathanMask>(),
|
||||
ItemType<AquaticScourgeMask>(),
|
||||
ItemType<OldDukeTrophy>(),
|
||||
ItemType<LeviathanTrophy>(),
|
||||
ItemType<AquaticScourgeTrophy>(),
|
||||
ItemType<LoreAquaticScourge>(),
|
||||
ItemType<LoreLeviathanAnahita>(),
|
||||
ItemType<LoreSulphurSea>(),
|
||||
ItemType<LoreAbyss>(),
|
||||
ItemType<LoreOldDuke>(),
|
||||
ItemType<PearlShard>(),
|
||||
ItemType<AeroStone>(),
|
||||
ItemType<TheCommunity>(),
|
||||
ItemType<DukesDecapitator>(),
|
||||
ItemType<SulphurousSand>(),
|
||||
ItemID.HotlineFishingHook,
|
||||
ItemID.BottomlessBucket,
|
||||
ItemID.SuperAbsorbantSponge,
|
||||
ItemID.FishingPotion,
|
||||
ItemID.SonarPotion,
|
||||
ItemID.CratePotion,
|
||||
ItemID.AnglerTackleBag,
|
||||
ItemID.HighTestFishingLine,
|
||||
ItemID.TackleBox,
|
||||
ItemID.AnglerEarring,
|
||||
ItemID.FishermansGuide,
|
||||
ItemID.WeatherRadio,
|
||||
ItemID.Sextant,
|
||||
ItemID.AnglerHat,
|
||||
ItemID.AnglerVest,
|
||||
ItemID.AnglerPants,
|
||||
ItemID.GoldenBugNet,
|
||||
ItemID.FishronWings,
|
||||
ItemID.Flairon,
|
||||
ItemID.Tsunami,
|
||||
ItemID.BubbleGun,
|
||||
ItemID.RazorbladeTyphoon,
|
||||
ItemID.TempestStaff,
|
||||
ItemID.FishronBossBag,
|
||||
ItemID.Coral,
|
||||
ItemID.Seashell,
|
||||
ItemID.Starfish,
|
||||
ItemID.SoulofSight,
|
||||
ItemID.GreaterHealingPotion,
|
||||
ItemID.SuperHealingPotion
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check whether or not an item is an item that should be forced inside the world map.
|
||||
/// </summary>
|
||||
public static bool Includes(int itemType) => List.Contains(itemType);
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Tiles.LivingFire;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> with all Tile IDs of those which are Living-Fire-type tiles.
|
||||
/// </summary>
|
||||
public sealed class LivingFireTilesList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
TileType<LivingGodSlayerFireBlockTile>(),
|
||||
TileType<LivingHolyFireBlockTile>(),
|
||||
TileType<LivingBrimstoneFireBlockTile>(),
|
||||
TileType<LivingPlagueFireBlockTile>(),
|
||||
TileID.LivingFire,
|
||||
TileID.LivingCursedFire,
|
||||
TileID.LivingDemonFire,
|
||||
TileID.LivingFrostFire,
|
||||
TileID.LivingIchor,
|
||||
TileID.LivingUltrabrightFire
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check whether or not a tile is a Living-Fire-type of tile.
|
||||
/// </summary>
|
||||
public static bool Includes(int tileType) => List.Contains(tileType);
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Items.Weapons.DraedonsArsenal;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class MagicGunIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
ItemType<AbyssShocker>(),
|
||||
ItemType<AcidGun>(),
|
||||
ItemType<AethersWhisper>(),
|
||||
ItemType<AetherfluxCannon>(),
|
||||
ItemType<Omicron>(),
|
||||
ItemType<ApoctosisArray>(),
|
||||
ItemType<Cryophobia>(),
|
||||
ItemType<Effervescence>(),
|
||||
ItemType<EidolicWail>(),
|
||||
ItemType<Vulcan>(),
|
||||
ItemType<Genesis>(),
|
||||
ItemType<IonBlaster>(),
|
||||
ItemType<NanoPurge>(),
|
||||
ItemType<PlasmaCaster>(),
|
||||
ItemType<PlasmaRifle>(),
|
||||
ItemType<PulsePistol>(),
|
||||
ItemType<PurgeGuzzler>(),
|
||||
ItemType<RainbowPartyCannon>(),
|
||||
ItemType<SHPC>(),
|
||||
ItemType<TeslaCannon>(),
|
||||
ItemType<TheSwarmer>(),
|
||||
ItemType<Volterion>(),
|
||||
ItemType<Wingman>(),
|
||||
ItemID.BeeGun,
|
||||
ItemID.BubbleGun,
|
||||
ItemID.ChargedBlasterCannon,
|
||||
ItemID.HeatRay,
|
||||
ItemID.LaserMachinegun,
|
||||
ItemID.LaserRifle,
|
||||
ItemID.LeafBlower,
|
||||
ItemID.RainbowGun,
|
||||
ItemID.SpaceGun,
|
||||
ItemID.WaspGun,
|
||||
ItemID.ZapinatorGray,
|
||||
ItemID.ZapinatorOrange
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if this Item is Magic Gun.
|
||||
/// </summary>
|
||||
public static bool Includes(int itemType) => List.Contains(itemType);
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class AngryBonesIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.AngryBones,
|
||||
NPCID.AngryBonesBig,
|
||||
NPCID.AngryBonesBigMuscle,
|
||||
NPCID.AngryBonesBigHelmet,
|
||||
NPCID.BigBoned,
|
||||
NPCID.ShortBones
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class AquaticScourgeIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<AquaticScourgeHead>(),
|
||||
NPCType<AquaticScourgeBody>(),
|
||||
NPCType<AquaticScourgeBodyAlt>(),
|
||||
NPCType<AquaticScourgeTail>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.ExoMechs.Ares;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class AresIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<AresBody>(),
|
||||
NPCType<AresGaussNuke>(),
|
||||
NPCType<AresLaserCannon>(),
|
||||
NPCType<AresPlasmaFlamethrower>(),
|
||||
NPCType<AresTeslaCannon>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class AstrumDeusIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<AstrumDeusHead>(),
|
||||
NPCType<AstrumDeusBody>(),
|
||||
NPCType<AstrumDeusTail>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class BoundNPCIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.BoundGoblin,
|
||||
NPCID.BoundWizard,
|
||||
NPCID.BoundMechanic,
|
||||
NPCID.SleepingAngler,
|
||||
NPCID.BartenderUnconscious,
|
||||
NPCID.WebbedStylist,
|
||||
NPCID.GolferRescue
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class CosmicGuardianIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<CosmicGuardianHead>(),
|
||||
NPCType<CosmicGuardianBody>(),
|
||||
NPCType<CosmicGuardianTail>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class DemonEyeIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.DemonEye,
|
||||
NPCID.CataractEye,
|
||||
NPCID.SleepyEye,
|
||||
NPCID.DialatedEye, // it is spelled "dilated"
|
||||
NPCID.GreenEye,
|
||||
NPCID.PurpleEye,
|
||||
NPCID.DemonEyeOwl,
|
||||
NPCID.DemonEyeSpaceship,
|
||||
NPCID.DemonEye2,
|
||||
NPCID.PurpleEye2,
|
||||
NPCID.GreenEye2,
|
||||
NPCID.DialatedEye2,
|
||||
NPCID.SleepyEye2,
|
||||
NPCID.CataractEye2
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class DesertScourgeIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<DesertScourgeHead>(),
|
||||
NPCType<DesertScourgeBody>(),
|
||||
NPCType<DesertScourgeTail>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class DestroyerIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.TheDestroyer,
|
||||
NPCID.TheDestroyerBody,
|
||||
NPCID.TheDestroyerTail
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class DevourerOfGodsIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<DevourerofGodsHead>(),
|
||||
NPCType<DevourerofGodsBody>(),
|
||||
NPCType<DevourerofGodsTail>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class EaterOfWorldsIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.EaterofWorldsHead,
|
||||
NPCID.EaterofWorldsBody,
|
||||
NPCID.EaterofWorldsTail
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class GolemIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.Golem,
|
||||
NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree,
|
||||
NPCID.GolemFistLeft,
|
||||
NPCID.GolemFistRight
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class HornetIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.BigHornetStingy,
|
||||
NPCID.LittleHornetStingy,
|
||||
NPCID.BigHornetSpikey,
|
||||
NPCID.LittleHornetSpikey,
|
||||
NPCID.BigHornetLeafy,
|
||||
NPCID.LittleHornetLeafy,
|
||||
NPCID.BigHornetHoney,
|
||||
NPCID.LittleHornetHoney,
|
||||
NPCID.BigHornetFatty,
|
||||
NPCID.LittleHornetFatty,
|
||||
NPCID.BigStinger,
|
||||
NPCID.LittleStinger,
|
||||
NPCID.Hornet,
|
||||
NPCID.HornetFatty,
|
||||
NPCID.HornetHoney,
|
||||
NPCID.HornetLeafy,
|
||||
NPCID.HornetSpikey,
|
||||
NPCID.HornetStingy
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class MossHornetIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.MossHornet,
|
||||
NPCID.TinyMossHornet,
|
||||
NPCID.LittleMossHornet,
|
||||
NPCID.BigMossHornet,
|
||||
NPCID.GiantMossHornet
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.Perforator;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class PerforatorWormIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<PerforatorHeadLarge>(),
|
||||
NPCType<PerforatorBodyLarge>(),
|
||||
NPCType<PerforatorTailLarge>(),
|
||||
NPCType<PerforatorHeadMedium>(),
|
||||
NPCType<PerforatorBodyMedium>(),
|
||||
NPCType<PerforatorTailMedium>(),
|
||||
NPCType<PerforatorHeadSmall>(),
|
||||
NPCType<PerforatorBodySmall>(),
|
||||
NPCType<PerforatorTailSmall>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class RavagerIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
// Purposefully does not include the freed head
|
||||
List =
|
||||
[
|
||||
NPCType<RavagerBody>(),
|
||||
NPCType<RavagerClawLeft>(),
|
||||
NPCType<RavagerClawRight>(),
|
||||
NPCType<RavagerLegLeft>(),
|
||||
NPCType<RavagerLegRight>(),
|
||||
NPCType<RavagerHead>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class SkeletonIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.Skeleton,
|
||||
NPCID.HeadacheSkeleton,
|
||||
NPCID.MisassembledSkeleton,
|
||||
NPCID.PantlessSkeleton,
|
||||
NPCID.BoneThrowingSkeleton,
|
||||
NPCID.BoneThrowingSkeleton2,
|
||||
NPCID.BoneThrowingSkeleton3,
|
||||
NPCID.BoneThrowingSkeleton4,
|
||||
NPCID.BigPantlessSkeleton,
|
||||
NPCID.SmallPantlessSkeleton,
|
||||
NPCID.BigMisassembledSkeleton,
|
||||
NPCID.SmallMisassembledSkeleton,
|
||||
NPCID.BigHeadacheSkeleton,
|
||||
NPCID.SmallHeadacheSkeleton,
|
||||
NPCID.BigSkeleton,
|
||||
NPCID.SmallSkeleton,
|
||||
|
||||
//Note: These skeletons don't count for Skeleton Banner for some god forsaken reason
|
||||
NPCID.SkeletonTopHat,
|
||||
NPCID.SkeletonAstonaut,
|
||||
NPCID.SkeletonAlien,
|
||||
|
||||
//Other skeleton types
|
||||
NPCID.ArmoredSkeleton,
|
||||
NPCID.HeavySkeleton,
|
||||
NPCID.SkeletonArcher,
|
||||
NPCID.GreekSkeleton,
|
||||
NPCID.SporeSkeleton
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class SkeletronPrimeIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.SkeletronPrime,
|
||||
NPCID.PrimeCannon,
|
||||
NPCID.PrimeLaser,
|
||||
NPCID.PrimeSaw,
|
||||
NPCID.PrimeVice
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.SlimeGod;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class SlimeGodIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<EbonianPaladin>(),
|
||||
NPCType<CrimulanPaladin>(),
|
||||
NPCType<SplitEbonianPaladin>(),
|
||||
NPCType<SplitCrimulanPaladin>(),
|
||||
NPCType<SlimeGodCore>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.StormWeaver;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class StormWeaverIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<StormWeaverHead>(),
|
||||
NPCType<StormWeaverBody>(),
|
||||
NPCType<StormWeaverTail>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.ExoMechs.Thanatos;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class ThanatosIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<ThanatosHead>(),
|
||||
NPCType<ThanatosBody1>(),
|
||||
NPCType<ThanatosBody2>(),
|
||||
NPCType<ThanatosTail>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class ZombieIDList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.Zombie,
|
||||
NPCID.ArmedZombie,
|
||||
NPCID.BaldZombie,
|
||||
NPCID.PincushionZombie,
|
||||
NPCID.ArmedZombiePincussion, // what is this spelling
|
||||
NPCID.SlimedZombie,
|
||||
NPCID.ArmedZombieSlimed,
|
||||
NPCID.SwampZombie,
|
||||
NPCID.ArmedZombieSwamp,
|
||||
NPCID.TwiggyZombie,
|
||||
NPCID.ArmedZombieTwiggy,
|
||||
NPCID.FemaleZombie,
|
||||
NPCID.ArmedZombieCenx,
|
||||
NPCID.ZombieRaincoat,
|
||||
NPCID.ZombieEskimo,
|
||||
NPCID.ArmedZombieEskimo,
|
||||
NPCID.BigRainZombie,
|
||||
NPCID.SmallRainZombie,
|
||||
NPCID.BigFemaleZombie,
|
||||
NPCID.SmallFemaleZombie,
|
||||
NPCID.BigTwiggyZombie,
|
||||
NPCID.SmallTwiggyZombie,
|
||||
NPCID.BigSwampZombie,
|
||||
NPCID.SmallSwampZombie,
|
||||
NPCID.BigSlimedZombie,
|
||||
NPCID.SmallSlimedZombie,
|
||||
NPCID.BigPincushionZombie,
|
||||
NPCID.SmallPincushionZombie,
|
||||
NPCID.BigBaldZombie,
|
||||
NPCID.SmallBaldZombie,
|
||||
NPCID.BigZombie,
|
||||
NPCID.SmallZombie,
|
||||
NPCID.MaggotZombie,
|
||||
NPCType<BucketZombie>()
|
||||
// halloween zombies not included because they don't drop shackles or zombie arms
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,152 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.HiveMind;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
using CalamityMod.NPCs.Perforator;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.NPCs.Polterghast;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using CalamityMod.NPCs.ProfanedGuardians;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
using CalamityMod.NPCs.Signus;
|
||||
using CalamityMod.NPCs.SlimeGod;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> that has all NPC IDs of bosses or boss minions that have HP scaling.
|
||||
/// </summary>
|
||||
public sealed class BossHPScalingList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.EaterofWorldsHead,
|
||||
NPCID.EaterofWorldsBody,
|
||||
NPCID.EaterofWorldsTail,
|
||||
NPCID.SkeletronHand,
|
||||
NPCID.WallofFleshEye,
|
||||
NPCID.TheDestroyerBody,
|
||||
NPCID.TheDestroyerTail,
|
||||
NPCID.PrimeCannon,
|
||||
NPCID.PrimeLaser,
|
||||
NPCID.PrimeVice,
|
||||
NPCID.PrimeSaw,
|
||||
NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree,
|
||||
NPCID.GolemFistRight,
|
||||
NPCID.GolemFistLeft,
|
||||
NPCID.Sharkron,
|
||||
NPCID.Sharkron2,
|
||||
NPCID.MoonLordHead,
|
||||
NPCID.MoonLordHand,
|
||||
NPCType<DarkEnergy>(),
|
||||
NPCType<BrimstoneHeart>(),
|
||||
NPCType<SoulSeeker>(),
|
||||
NPCType<SoulSeekerSupreme>(),
|
||||
NPCType<Cataclysm>(),
|
||||
NPCType<SupremeCataclysm>(),
|
||||
NPCType<Catastrophe>(),
|
||||
NPCType<SupremeCatastrophe>(),
|
||||
NPCType<SepulcherHead>(),
|
||||
NPCType<SepulcherBody>(),
|
||||
NPCType<SepulcherTail>(),
|
||||
NPCType<SepulcherArm>(),
|
||||
NPCType<SepulcherBodyEnergyBall>(),
|
||||
NPCType<PrimordialWyrmBody>(),
|
||||
NPCType<PrimordialWyrmBodyAlt>(),
|
||||
NPCType<PrimordialWyrmHead>(),
|
||||
NPCType<PrimordialWyrmTail>(),
|
||||
NPCType<AquaticAberration>(),
|
||||
NPCType<AnahitasIceShield>(),
|
||||
NPCType<CryogenShield>(),
|
||||
NPCType<OldDukeToothBall>(),
|
||||
NPCType<SulphurousSharkron>(),
|
||||
NPCType<DraconicSwarmer>(),
|
||||
NPCType<AureusSpawn>(),
|
||||
NPCType<Brimling>(),
|
||||
NPCType<CrabShroom>(),
|
||||
NPCType<CosmicGuardianBody>(),
|
||||
NPCType<CosmicGuardianTail>(),
|
||||
NPCType<CosmicGuardianHead>(),
|
||||
NPCType<DankCreeper>(),
|
||||
NPCType<HiveBlob>(),
|
||||
NPCType<HiveBlob2>(),
|
||||
NPCType<DarkHeart>(),
|
||||
NPCType<DesertNuisanceBody>(),
|
||||
NPCType<DesertNuisanceHead>(),
|
||||
NPCType<DesertNuisanceTail>(),
|
||||
NPCType<DesertNuisanceBodyYoung>(),
|
||||
NPCType<DesertNuisanceHeadYoung>(),
|
||||
NPCType<DesertNuisanceTailYoung>(),
|
||||
NPCType<PolterPhantom>(),
|
||||
NPCType<PhantomFuckYou>(),
|
||||
NPCType<KingSlimeJewelEmerald>(),
|
||||
NPCType<KingSlimeJewelRuby>(),
|
||||
NPCType<KingSlimeJewelSapphire>(),
|
||||
NPCType<PlanterasFreeTentacle>(),
|
||||
NPCType<PlagueHomingMissile>(),
|
||||
NPCType<PlagueMine>(),
|
||||
NPCType<ProfanedRocks>(),
|
||||
NPCType<ProvSpawnDefense>(),
|
||||
NPCType<ProvSpawnOffense>(),
|
||||
NPCType<ProvSpawnHealer>(),
|
||||
NPCType<RockPillar>(),
|
||||
NPCType<FlamePillar>(),
|
||||
NPCType<CosmicMine>(),
|
||||
NPCType<CosmicLantern>(),
|
||||
NPCType<ProfanedGuardianDefender>(),
|
||||
NPCType<ProfanedGuardianHealer>(),
|
||||
NPCType<CorruptSlimeSpawn>(),
|
||||
NPCType<CorruptSlimeSpawn2>(),
|
||||
NPCType<CrimsonSlimeSpawn>(),
|
||||
NPCType<CrimsonSlimeSpawn2>(),
|
||||
|
||||
NPCType<PerforatorHeadLarge>(),
|
||||
NPCType<PerforatorBodyLarge>(),
|
||||
NPCType<PerforatorTailLarge>(),
|
||||
NPCType<PerforatorHeadMedium>(),
|
||||
NPCType<PerforatorBodyMedium>(),
|
||||
NPCType<PerforatorTailMedium>(),
|
||||
NPCType<PerforatorHeadSmall>(),
|
||||
NPCType<PerforatorBodySmall>(),
|
||||
NPCType<PerforatorTailSmall>(),
|
||||
|
||||
NPCType<EbonianPaladin>(),
|
||||
NPCType<CrimulanPaladin>(),
|
||||
NPCType<SplitEbonianPaladin>(),
|
||||
NPCType<SplitCrimulanPaladin>(),
|
||||
NPCType<SlimeGodCore>(),
|
||||
|
||||
NPCType<RavagerBody>(),
|
||||
NPCType<RavagerClawLeft>(),
|
||||
NPCType<RavagerClawRight>(),
|
||||
NPCType<RavagerLegLeft>(),
|
||||
NPCType<RavagerLegRight>(),
|
||||
NPCType<RavagerHead>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,126 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class BossRushHPChangeDict : ModSystem
|
||||
{
|
||||
public static IDictionary<int, int> Dict { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
Dict = new Dictionary<int, int>
|
||||
{
|
||||
// Tier 1
|
||||
{ NPCID.KingSlime, 300000 }, // 30 seconds
|
||||
{ NPCID.BlueSlime, 3600 },
|
||||
{ NPCID.SlimeSpiked, 7200 },
|
||||
{ NPCID.GreenSlime, 2700 },
|
||||
{ NPCID.RedSlime, 5400 },
|
||||
{ NPCID.PurpleSlime, 7200 },
|
||||
{ NPCID.YellowSlime, 6300 },
|
||||
{ NPCID.IceSlime, 4500 },
|
||||
{ NPCID.UmbrellaSlime, 5400 },
|
||||
{ NPCID.RainbowSlime, 30000 },
|
||||
{ NPCID.Pinky, 15000 },
|
||||
{ NPCType<KingSlimeJewelRuby>(), 21000 },
|
||||
{ NPCType<KingSlimeJewelSapphire>(), 18000 },
|
||||
{ NPCType<KingSlimeJewelEmerald>(), 24000 },
|
||||
|
||||
{ NPCID.EyeofCthulhu, 450000 }, // 30 seconds
|
||||
{ NPCID.ServantofCthulhu, 6000 },
|
||||
|
||||
{ NPCID.EaterofWorldsHead, 15000 }, // 30 seconds + immunity timer at start
|
||||
{ NPCID.EaterofWorldsBody, 15000 },
|
||||
{ NPCID.EaterofWorldsTail, 15000 },
|
||||
|
||||
{ NPCID.BrainofCthulhu, 100000 }, // 30 seconds with creepers
|
||||
{ NPCID.Creeper, 10000 },
|
||||
|
||||
{ NPCID.QueenBee, 315000 }, // 30 seconds
|
||||
{ NPCID.Bee, 3000 },
|
||||
{ NPCID.BeeSmall, 2000 },
|
||||
{ NPCID.BigHornetHoney, 10000 },
|
||||
{ NPCID.HornetHoney, 7500 },
|
||||
{ NPCID.LittleHornetHoney, 5000 },
|
||||
|
||||
{ NPCID.Deerclops, 315000 }, // 30 seconds
|
||||
|
||||
{ NPCID.SkeletronHead, 150000 }, // 30 seconds
|
||||
{ NPCID.SkeletronHand, 60000 },
|
||||
|
||||
{ NPCID.WallofFlesh, 450000 }, // 30 seconds
|
||||
{ NPCID.WallofFleshEye, 450000 },
|
||||
{ NPCID.TheHungry, 10000 },
|
||||
{ NPCID.TheHungryII, 5000 },
|
||||
{ NPCID.LeechHead, 5000 },
|
||||
{ NPCID.LeechBody, 5000 },
|
||||
{ NPCID.LeechTail, 5000 },
|
||||
|
||||
// Tier 2
|
||||
{ NPCID.QueenSlimeBoss, 200000 }, // 30 seconds
|
||||
{ NPCID.QueenSlimeMinionBlue, 6000 },
|
||||
{ NPCID.QueenSlimeMinionPink, 6000 },
|
||||
{ NPCID.QueenSlimeMinionPurple, 5000 },
|
||||
|
||||
{ NPCID.Spazmatism, 150000 }, // 30 seconds
|
||||
{ NPCID.Retinazer, 125000 },
|
||||
|
||||
{ NPCID.TheDestroyer, 600000 }, // 30 seconds + immunity timer at start
|
||||
{ NPCID.TheDestroyerBody, 600000 },
|
||||
{ NPCID.TheDestroyerTail, 600000 },
|
||||
{ NPCID.Probe, 10000 },
|
||||
|
||||
{ NPCID.SkeletronPrime, 160000 }, // 30 seconds
|
||||
{ NPCID.PrimeVice, 54000 },
|
||||
{ NPCID.PrimeCannon, 45000 },
|
||||
{ NPCID.PrimeSaw, 45000 },
|
||||
{ NPCID.PrimeLaser, 38000 },
|
||||
|
||||
{ NPCID.Plantera, 160000 }, // 30 seconds
|
||||
{ NPCID.PlanterasTentacle, 5000 },
|
||||
{ NPCType<PlanterasFreeTentacle>(), 5000 },
|
||||
|
||||
// Tier 3
|
||||
{ NPCID.Golem, 100000 }, // 30 seconds
|
||||
{ NPCID.GolemHead, 70000 },
|
||||
{ NPCID.GolemFistLeft, 30000 },
|
||||
{ NPCID.GolemFistRight, 30000 },
|
||||
|
||||
{ NPCID.HallowBoss, 200000 }, // 30 seconds
|
||||
|
||||
{ NPCID.DukeFishron, 290000 }, // 30 seconds
|
||||
|
||||
{ NPCID.CultistBoss, 220000 }, // 30 seconds
|
||||
{ NPCID.CultistDragonHead, 60000 },
|
||||
{ NPCID.CultistDragonBody1, 60000 },
|
||||
{ NPCID.CultistDragonBody2, 60000 },
|
||||
{ NPCID.CultistDragonBody3, 60000 },
|
||||
{ NPCID.CultistDragonBody4, 60000 },
|
||||
{ NPCID.CultistDragonTail, 60000 },
|
||||
{ NPCID.AncientCultistSquidhead, 50000 },
|
||||
|
||||
{ NPCID.MoonLordCore, 160000 }, // 1 minute
|
||||
{ NPCID.MoonLordHand, 45000 },
|
||||
{ NPCID.MoonLordHead, 60000 },
|
||||
{ NPCID.MoonLordLeechBlob, 800 }
|
||||
|
||||
// 9.5 minutes in total for vanilla Boss Rush bosses
|
||||
};
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
Dict?.Clear();
|
||||
Dict = null;
|
||||
}
|
||||
|
||||
public static bool TryGet(int npcType, out int newHP)
|
||||
{
|
||||
return Dict.TryGetValue(npcType, out newHP);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.ExoMechs.Apollo;
|
||||
using CalamityMod.NPCs.ExoMechs.Ares;
|
||||
using CalamityMod.NPCs.ExoMechs.Artemis;
|
||||
using CalamityMod.NPCs.ExoMechs.Thanatos;
|
||||
using CalamityMod.NPCs.HiveMind;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
using CalamityMod.NPCs.Perforator;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.NPCs.Polterghast;
|
||||
using CalamityMod.NPCs.ProfanedGuardians;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
using CalamityMod.NPCs.Signus;
|
||||
using CalamityMod.NPCs.SlimeGod;
|
||||
using CalamityMod.NPCs.StormWeaver;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class BossTypeDict : ModSystem
|
||||
{
|
||||
public static IDictionary<int, int> Dict { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
Dict = new SortedDictionary<int, int>()
|
||||
{
|
||||
{ NPCID.KingSlime, 1 },
|
||||
{ NPCType<DesertScourgeHead>(), 2 },
|
||||
{ NPCID.EyeofCthulhu, 3 },
|
||||
{ NPCType<Crabulon>(), 4 },
|
||||
{ NPCID.EaterofWorldsHead, 5 },
|
||||
{ NPCID.EaterofWorldsBody, 5 },
|
||||
{ NPCID.EaterofWorldsTail, 5 },
|
||||
{ NPCID.BrainofCthulhu, 6 },
|
||||
{ NPCType<HiveMind>(), 7 },
|
||||
{ NPCType<PerforatorHive>(), 8 },
|
||||
{ NPCID.QueenBee, 9 },
|
||||
{ NPCID.SkeletronHead, 10 },
|
||||
{ NPCType<SlimeGodCore>(), 11 },
|
||||
{ NPCType<SplitEbonianPaladin>(), 11 },
|
||||
{ NPCType<SplitCrimulanPaladin>(), 11 },
|
||||
{ NPCID.WallofFlesh, 12 },
|
||||
{ NPCType<Cryogen>(), 13 },
|
||||
{ NPCID.Retinazer, 14 },
|
||||
{ NPCID.Spazmatism, 14 },
|
||||
{ NPCType<AquaticScourgeHead>(), 15 },
|
||||
{ NPCID.TheDestroyer, 16 },
|
||||
{ NPCType<BrimstoneElemental>(), 17 },
|
||||
{ NPCID.SkeletronPrime, 18 },
|
||||
{ NPCType<CalamitasClone>(), 19 },
|
||||
{ NPCID.Plantera, 20 },
|
||||
{ NPCType<Leviathan>(), 21 },
|
||||
{ NPCType<Anahita>(), 21 },
|
||||
{ NPCType<AstrumAureus>(), 22 },
|
||||
{ NPCID.Golem, 23 },
|
||||
{ NPCType<PlaguebringerGoliath>(), 24 },
|
||||
{ NPCID.DukeFishron, 25 },
|
||||
{ NPCType<RavagerBody>(), 26 },
|
||||
{ NPCID.CultistBoss, 27 },
|
||||
{ NPCType<AstrumDeusHead>(), 28 },
|
||||
{ NPCID.MoonLordCore, 29 },
|
||||
{ NPCType<ProfanedGuardianCommander>(), 30 },
|
||||
{ NPCType<Dragonfolly>(), 31 },
|
||||
{ NPCType<Providence>(), 32 },
|
||||
{ NPCType<CeaselessVoid>(), 33 },
|
||||
{ NPCType<StormWeaverHead>(), 34 },
|
||||
{ NPCType<Signus>(), 35 },
|
||||
{ NPCType<Polterghast>(), 36 },
|
||||
{ NPCType<OldDuke>(), 37 },
|
||||
{ NPCType<DevourerofGodsHead>(), 38 },
|
||||
{ NPCType<Yharon>(), 39 },
|
||||
{ NPCType<SupremeCalamitas>(), 40 },
|
||||
{ NPCType<AresBody>(), 41 },
|
||||
{ NPCType<ThanatosHead>(), 41 },
|
||||
{ NPCType<Artemis>(), 41 },
|
||||
{ NPCType<Apollo>(), 41 },
|
||||
{ NPCID.QueenSlimeBoss, 42 },
|
||||
{ NPCID.HallowBoss, 43 },
|
||||
{ NPCID.Deerclops, 44 }
|
||||
};
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
Dict?.Clear();
|
||||
Dict = null;
|
||||
}
|
||||
|
||||
public static bool TryGet(int npcType, out int type)
|
||||
{
|
||||
return Dict.TryGetValue(npcType, out type);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> which contains a <see cref="IList{T}"/> of all NPC's IDs of NPCs who are buffed dungeon enemies.
|
||||
/// </summary>
|
||||
public sealed class BuffedDungeonEnemiesList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.SkeletonSniper,
|
||||
NPCID.TacticalSkeleton,
|
||||
NPCID.SkeletonCommando,
|
||||
NPCID.Paladin,
|
||||
NPCID.GiantCursedSkull,
|
||||
NPCID.BoneLee,
|
||||
NPCID.DiabolistWhite,
|
||||
NPCID.DiabolistRed,
|
||||
NPCID.NecromancerArmored,
|
||||
NPCID.Necromancer,
|
||||
NPCID.RaggedCasterOpenCoat,
|
||||
NPCID.RaggedCaster,
|
||||
NPCID.HellArmoredBonesSword,
|
||||
NPCID.HellArmoredBonesMace,
|
||||
NPCID.HellArmoredBonesSpikeShield,
|
||||
NPCID.HellArmoredBones,
|
||||
NPCID.BlueArmoredBonesSword,
|
||||
NPCID.BlueArmoredBonesNoPants,
|
||||
NPCID.BlueArmoredBonesMace,
|
||||
NPCID.BlueArmoredBones,
|
||||
NPCID.RustyArmoredBonesSwordNoArmor,
|
||||
NPCID.RustyArmoredBonesSword,
|
||||
NPCID.RustyArmoredBonesFlail,
|
||||
NPCID.RustyArmoredBonesAxe
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if an NPC is a buffed Dungeon enemy.
|
||||
/// </summary>
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class DeathModeSplittingWormList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.DuneSplicerHead,
|
||||
NPCID.DuneSplicerBody,
|
||||
NPCID.DuneSplicerTail,
|
||||
NPCID.DiggerHead,
|
||||
NPCID.DiggerBody,
|
||||
NPCID.DiggerTail,
|
||||
NPCID.SeekerHead,
|
||||
NPCID.SeekerBody,
|
||||
NPCID.SeekerTail
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> of all NPC Types that receive Post-DoG Eclipse Buff
|
||||
/// </summary>
|
||||
public sealed class EclipseBuffList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.Eyezor,
|
||||
NPCID.Reaper,
|
||||
NPCID.Frankenstein,
|
||||
NPCID.SwampThing,
|
||||
NPCID.Vampire,
|
||||
NPCID.VampireBat,
|
||||
NPCID.Butcher,
|
||||
NPCID.CreatureFromTheDeep,
|
||||
NPCID.Fritz,
|
||||
NPCID.Nailhead,
|
||||
NPCID.Psycho,
|
||||
NPCID.DeadlySphere,
|
||||
NPCID.DrManFly,
|
||||
NPCID.ThePossessed,
|
||||
NPCID.Mothron,
|
||||
NPCID.MothronEgg,
|
||||
NPCID.MothronSpawn
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,187 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.GreatSandShark;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
using CalamityMod.NPCs.Perforator;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.NPCs.PlagueEnemies;
|
||||
using CalamityMod.NPCs.ProfanedGuardians;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
using CalamityMod.NPCs.SlimeGod;
|
||||
using CalamityMod.NPCs.SunkenSea;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains all of the NPC IDs of all NPCs that are immune to special debuffs.
|
||||
/// </summary>
|
||||
public sealed class EnemyImmunitiesList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.KingSlime,
|
||||
NPCType<KingSlimeJewelRuby>(),
|
||||
NPCType<KingSlimeJewelSapphire>(),
|
||||
NPCType<KingSlimeJewelEmerald>(),
|
||||
NPCID.EyeofCthulhu,
|
||||
NPCID.EaterofWorldsHead,
|
||||
NPCID.EaterofWorldsBody,
|
||||
NPCID.EaterofWorldsTail,
|
||||
NPCID.BrainofCthulhu,
|
||||
NPCID.Creeper,
|
||||
NPCID.QueenBee,
|
||||
NPCID.Deerclops,
|
||||
NPCID.SkeletronHead,
|
||||
NPCID.SkeletronHand,
|
||||
NPCID.WallofFlesh,
|
||||
NPCID.WallofFleshEye,
|
||||
NPCID.PirateShipCannon,
|
||||
NPCID.QueenSlimeBoss,
|
||||
NPCID.Probe,
|
||||
NPCID.Retinazer,
|
||||
NPCID.Spazmatism,
|
||||
NPCID.SkeletronPrime,
|
||||
NPCID.PrimeCannon,
|
||||
NPCID.PrimeSaw,
|
||||
NPCID.PrimeLaser,
|
||||
NPCID.PrimeVice,
|
||||
NPCID.Plantera,
|
||||
NPCID.PlanterasTentacle,
|
||||
NPCType<PlanterasFreeTentacle>(),
|
||||
NPCID.Everscream,
|
||||
NPCID.SantaNK1,
|
||||
NPCID.IceQueen,
|
||||
NPCID.MourningWood,
|
||||
NPCID.Pumpking,
|
||||
NPCID.Mothron,
|
||||
NPCID.Golem,
|
||||
NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree,
|
||||
NPCID.GolemFistRight,
|
||||
NPCID.GolemFistLeft,
|
||||
NPCID.MartianSaucerCore,
|
||||
NPCID.MartianSaucerCannon,
|
||||
NPCID.MartianSaucerTurret,
|
||||
NPCID.DukeFishron,
|
||||
NPCID.Sharkron,
|
||||
NPCID.Sharkron2,
|
||||
NPCID.HallowBoss,
|
||||
NPCID.CultistBoss,
|
||||
NPCID.CultistDragonHead,
|
||||
NPCID.CultistDragonBody1,
|
||||
NPCID.CultistDragonBody2,
|
||||
NPCID.CultistDragonBody3,
|
||||
NPCID.CultistDragonBody4,
|
||||
NPCID.CultistDragonTail,
|
||||
NPCID.AncientCultistSquidhead,
|
||||
NPCID.MoonLordHead,
|
||||
NPCID.MoonLordHand,
|
||||
NPCID.MoonLordCore,
|
||||
NPCID.MoonLordFreeEye,
|
||||
NPCID.DD2WyvernT1,
|
||||
NPCID.DD2WyvernT2,
|
||||
NPCID.DD2WyvernT3,
|
||||
NPCID.DD2DarkMageT1,
|
||||
NPCID.DD2DarkMageT3,
|
||||
NPCID.DD2SkeletonT1,
|
||||
NPCID.DD2SkeletonT3,
|
||||
NPCID.DD2WitherBeastT2,
|
||||
NPCID.DD2WitherBeastT3,
|
||||
NPCID.DD2DrakinT2,
|
||||
NPCID.DD2DrakinT3,
|
||||
NPCID.DD2KoboldWalkerT2,
|
||||
NPCID.DD2KoboldWalkerT3,
|
||||
NPCID.DD2KoboldFlyerT2,
|
||||
NPCID.DD2KoboldFlyerT3,
|
||||
NPCID.DD2OgreT2,
|
||||
NPCID.DD2OgreT3,
|
||||
NPCID.DD2Betsy,
|
||||
NPCType<DesertNuisanceHead>(),
|
||||
NPCType<DesertNuisanceBody>(),
|
||||
NPCType<DesertNuisanceTail>(),
|
||||
NPCType<DesertNuisanceHeadYoung>(),
|
||||
NPCType<DesertNuisanceBodyYoung>(),
|
||||
NPCType<DesertNuisanceTailYoung>(),
|
||||
NPCType<GiantClam>(),
|
||||
NPCType<PerforatorHeadLarge>(),
|
||||
NPCType<PerforatorHeadMedium>(),
|
||||
NPCType<PerforatorHeadSmall>(),
|
||||
NPCType<PerforatorBodyLarge>(),
|
||||
NPCType<PerforatorBodyMedium>(),
|
||||
NPCType<PerforatorBodySmall>(),
|
||||
NPCType<PerforatorTailLarge>(),
|
||||
NPCType<PerforatorTailMedium>(),
|
||||
NPCType<PerforatorTailSmall>(),
|
||||
NPCType<EbonianPaladin>(),
|
||||
NPCType<CrimulanPaladin>(),
|
||||
NPCType<SplitEbonianPaladin>(),
|
||||
NPCType<SplitCrimulanPaladin>(),
|
||||
NPCType<Horse>(),
|
||||
NPCType<CloudElemental>(),
|
||||
NPCType<CryogenShield>(),
|
||||
NPCType<AquaticScourgeHead>(),
|
||||
NPCType<AquaticScourgeBody>(),
|
||||
NPCType<AquaticScourgeBodyAlt>(),
|
||||
NPCType<AquaticScourgeTail>(),
|
||||
NPCType<CragmawMire>(),
|
||||
NPCType<Cataclysm>(),
|
||||
NPCType<Catastrophe>(),
|
||||
NPCType<SoulSeeker>(),
|
||||
NPCType<GreatSandShark>(),
|
||||
NPCType<AnahitasIceShield>(),
|
||||
NPCType<AureusSpawn>(),
|
||||
NPCType<PlaguebringerMiniboss>(),
|
||||
NPCType<PlagueHomingMissile>(),
|
||||
NPCType<PlagueMine>(),
|
||||
NPCType<RavagerClawLeft>(),
|
||||
NPCType<RavagerClawRight>(),
|
||||
NPCType<RavagerLegLeft>(),
|
||||
NPCType<RavagerLegRight>(),
|
||||
NPCType<RockPillar>(),
|
||||
NPCType<RavagerHead>(),
|
||||
NPCType<ProfanedGuardianDefender>(),
|
||||
NPCType<ProfanedGuardianHealer>(),
|
||||
NPCType<DraconicSwarmer>(),
|
||||
NPCType<ProvSpawnDefense>(),
|
||||
NPCType<ProvSpawnHealer>(),
|
||||
NPCType<ProvSpawnOffense>(),
|
||||
NPCType<BobbitWormHead>(),
|
||||
NPCType<Mauler>(),
|
||||
NPCType<ColossalSquid>(),
|
||||
NPCType<ReaperShark>(),
|
||||
NPCType<EidolonWyrmHead>(),
|
||||
NPCType<NuclearTerror>(),
|
||||
NPCType<OldDukeToothBall>(),
|
||||
NPCType<SulphurousSharkron>(),
|
||||
NPCType<SupremeCataclysm>(),
|
||||
NPCType<SupremeCatastrophe>(),
|
||||
NPCType<SoulSeekerSupreme>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if an NPC is in this list.
|
||||
/// </summary>
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> of all NPC Types that receive Post-DoG Frost Moon Buff
|
||||
/// </summary>
|
||||
public sealed class FrostMoonBuffList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.ZombieElf,
|
||||
NPCID.ZombieElfBeard,
|
||||
NPCID.ZombieElfGirl,
|
||||
NPCID.PresentMimic,
|
||||
NPCID.GingerbreadMan,
|
||||
NPCID.Yeti,
|
||||
NPCID.Everscream,
|
||||
NPCID.IceQueen,
|
||||
NPCID.SantaNK1,
|
||||
NPCID.ElfCopter,
|
||||
NPCID.Nutcracker,
|
||||
NPCID.NutcrackerSpinning,
|
||||
NPCID.ElfArcher,
|
||||
NPCID.Krampus,
|
||||
NPCID.Flocko
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,155 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class HardmodeNPCNerfList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
// Reduce contact damage by 25%
|
||||
List =
|
||||
[
|
||||
NPCID.AnglerFish,
|
||||
NPCID.AngryTrapper,
|
||||
NPCID.Arapaima,
|
||||
NPCID.BlackRecluse,
|
||||
NPCID.BlackRecluseWall,
|
||||
NPCID.BloodJelly,
|
||||
NPCID.FungoFish,
|
||||
NPCID.GreenJellyfish,
|
||||
NPCID.Clinger,
|
||||
NPCID.ArmoredSkeleton,
|
||||
NPCID.ArmoredViking,
|
||||
NPCID.Mummy,
|
||||
NPCID.DarkMummy,
|
||||
NPCID.LightMummy,
|
||||
NPCID.BloodFeeder,
|
||||
NPCID.DesertBeast,
|
||||
NPCID.ChaosElemental,
|
||||
NPCID.BloodMummy,
|
||||
NPCID.CorruptSlime,
|
||||
NPCID.Slimeling,
|
||||
NPCID.Corruptor,
|
||||
NPCID.Crimslime,
|
||||
NPCID.BigCrimslime,
|
||||
NPCID.LittleCrimslime,
|
||||
NPCID.CrimsonAxe,
|
||||
NPCID.CursedHammer,
|
||||
NPCID.Derpling,
|
||||
NPCID.Herpling,
|
||||
NPCID.DiggerHead,
|
||||
NPCID.DesertGhoul,
|
||||
NPCID.DesertGhoulCorruption,
|
||||
NPCID.DesertGhoulCrimson,
|
||||
NPCID.DesertGhoulHallow,
|
||||
NPCID.DuneSplicerHead,
|
||||
NPCID.EnchantedSword,
|
||||
NPCID.FloatyGross,
|
||||
NPCID.GiantBat,
|
||||
NPCID.GiantFlyingFox,
|
||||
NPCID.FungiSpore,
|
||||
NPCID.GiantTortoise,
|
||||
NPCID.IceTortoise,
|
||||
NPCID.HoppinJack,
|
||||
NPCID.Mimic,
|
||||
NPCID.IlluminantBat,
|
||||
NPCID.IlluminantSlime,
|
||||
NPCID.JungleCreeper,
|
||||
NPCID.JungleCreeperWall,
|
||||
NPCID.DesertLamiaDark,
|
||||
NPCID.DesertLamiaLight,
|
||||
NPCID.BigMossHornet,
|
||||
NPCID.GiantMossHornet,
|
||||
NPCID.LittleMossHornet,
|
||||
NPCID.MossHornet,
|
||||
NPCID.TinyMossHornet,
|
||||
NPCID.Moth,
|
||||
NPCID.PigronCorruption,
|
||||
NPCID.PigronCrimson,
|
||||
NPCID.PigronHallow,
|
||||
NPCID.Pixie,
|
||||
NPCID.PossessedArmor,
|
||||
NPCID.RockGolem,
|
||||
NPCID.DesertScorpionWalk,
|
||||
NPCID.DesertScorpionWall,
|
||||
NPCID.Slimer,
|
||||
NPCID.Slimer2,
|
||||
NPCID.ToxicSludge,
|
||||
NPCID.Unicorn,
|
||||
NPCID.WanderingEye,
|
||||
NPCID.Werewolf,
|
||||
NPCID.Wolf,
|
||||
NPCID.SeekerHead,
|
||||
NPCID.Wraith,
|
||||
NPCID.ChatteringTeethBomb,
|
||||
NPCID.IceGolem,
|
||||
NPCID.RainbowSlime,
|
||||
NPCID.SandShark,
|
||||
NPCID.SandsharkCorrupt,
|
||||
NPCID.SandsharkCrimson,
|
||||
NPCID.SandsharkHallow,
|
||||
NPCID.ShadowFlameApparition,
|
||||
NPCID.Parrot,
|
||||
NPCID.PirateCorsair,
|
||||
NPCID.PirateDeckhand,
|
||||
NPCID.PirateGhost,
|
||||
NPCID.BlueArmoredBonesMace,
|
||||
NPCID.BlueArmoredBonesSword,
|
||||
NPCID.BoneLee,
|
||||
NPCID.DungeonSpirit,
|
||||
NPCID.FlyingSnake,
|
||||
NPCID.HellArmoredBones,
|
||||
NPCID.HellArmoredBonesSpikeShield,
|
||||
NPCID.HellArmoredBonesSword,
|
||||
NPCID.MisterStabby,
|
||||
NPCID.Butcher,
|
||||
NPCID.CreatureFromTheDeep,
|
||||
NPCID.DeadlySphere,
|
||||
NPCID.Frankenstein,
|
||||
NPCID.Fritz,
|
||||
NPCID.Psycho,
|
||||
NPCID.Reaper,
|
||||
NPCID.SwampThing,
|
||||
NPCID.ThePossessed,
|
||||
NPCID.Vampire,
|
||||
NPCID.VampireBat,
|
||||
NPCID.HeadlessHorseman,
|
||||
NPCID.Hellhound,
|
||||
NPCID.Poltergeist,
|
||||
NPCID.Scarecrow1,
|
||||
NPCID.Scarecrow2,
|
||||
NPCID.Scarecrow3,
|
||||
NPCID.Scarecrow4,
|
||||
NPCID.Scarecrow5,
|
||||
NPCID.Scarecrow6,
|
||||
NPCID.Scarecrow7,
|
||||
NPCID.Scarecrow8,
|
||||
NPCID.Scarecrow9,
|
||||
NPCID.Scarecrow10,
|
||||
NPCID.Splinterling,
|
||||
NPCID.Flocko,
|
||||
NPCID.GingerbreadMan,
|
||||
NPCID.Krampus,
|
||||
NPCID.Nutcracker,
|
||||
NPCID.NutcrackerSpinning,
|
||||
NPCID.PresentMimic,
|
||||
NPCID.Yeti,
|
||||
NPCID.ZombieElf,
|
||||
NPCID.ZombieElfBeard,
|
||||
NPCID.ZombieElfGirl,
|
||||
NPCID.BloodEelHead,
|
||||
NPCID.GoblinShark,
|
||||
NPCID.EyeballFlyingFish,
|
||||
NPCID.ZombieMerman
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.GreatSandShark;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.PlagueEnemies;
|
||||
using CalamityMod.NPCs.SunkenSea;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class MinibossList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<EidolonWyrmHead>(),
|
||||
NPCType<Mauler>(),
|
||||
NPCType<ReaperShark>(),
|
||||
NPCType<ColossalSquid>(),
|
||||
NPCType<GreatSandShark>(),
|
||||
NPCType<GiantClam>(),
|
||||
NPCType<ArmoredDiggerHead>(),
|
||||
NPCType<ArmoredDiggerBody>(),
|
||||
NPCType<ArmoredDiggerTail>(),
|
||||
NPCType<CloudElemental>(),
|
||||
NPCType<Horse>(),
|
||||
NPCType<PlaguebringerMiniboss>(),
|
||||
NPCID.Pumpking,
|
||||
NPCID.MourningWood,
|
||||
NPCID.IceQueen,
|
||||
NPCID.SantaNK1,
|
||||
NPCID.Everscream,
|
||||
NPCID.DD2Betsy,
|
||||
NPCID.Mothron,
|
||||
NPCID.MartianSaucer,
|
||||
NPCID.MartianSaucerCannon,
|
||||
NPCID.MartianSaucerCore,
|
||||
NPCID.MartianSaucerTurret
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.ExoMechs.Ares;
|
||||
using CalamityMod.NPCs.ExoMechs.Thanatos;
|
||||
using CalamityMod.NPCs.StormWeaver;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class NoRageWormSegmentList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCType<DesertScourgeBody>(),
|
||||
NPCType<DesertScourgeTail>(),
|
||||
NPCType<AquaticScourgeBody>(),
|
||||
NPCType<AquaticScourgeBodyAlt>(),
|
||||
NPCType<AquaticScourgeTail>(),
|
||||
NPCType<AstrumDeusBody>(),
|
||||
NPCType<AstrumDeusTail>(),
|
||||
NPCType<StormWeaverBody>(),
|
||||
NPCType<StormWeaverTail>(),
|
||||
NPCType<DevourerofGodsBody>(),
|
||||
NPCType<DevourerofGodsTail>(),
|
||||
NPCType<ThanatosBody1>(),
|
||||
NPCType<ThanatosBody2>(),
|
||||
NPCType<ThanatosTail>(),
|
||||
NPCType<AresLaserCannon>(),
|
||||
NPCType<AresTeslaCannon>(),
|
||||
NPCType<AresPlasmaFlamethrower>(),
|
||||
NPCType<AresGaussNuke>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that contains a <see cref="IList{T}"/> of all NPC Types that receive Post-DoG Pumpkin Moon Buff
|
||||
/// </summary>
|
||||
public sealed class PumpkinMoonBuffList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.Scarecrow1,
|
||||
NPCID.Scarecrow2,
|
||||
NPCID.Scarecrow3,
|
||||
NPCID.Scarecrow4,
|
||||
NPCID.Scarecrow5,
|
||||
NPCID.Scarecrow6,
|
||||
NPCID.Scarecrow7,
|
||||
NPCID.Scarecrow8,
|
||||
NPCID.Scarecrow9,
|
||||
NPCID.Scarecrow10,
|
||||
NPCID.HeadlessHorseman,
|
||||
NPCID.MourningWood,
|
||||
NPCID.Splinterling,
|
||||
NPCID.Pumpking,
|
||||
NPCID.PumpkingBlade,
|
||||
NPCID.Hellhound,
|
||||
NPCID.Poltergeist
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class ZeroContactDamageNPCList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.Harpy,
|
||||
NPCID.Salamander,
|
||||
NPCID.Salamander2,
|
||||
NPCID.Salamander3,
|
||||
NPCID.Salamander4,
|
||||
NPCID.Salamander5,
|
||||
NPCID.Salamander6,
|
||||
NPCID.Salamander7,
|
||||
NPCID.Salamander8,
|
||||
NPCID.Salamander9,
|
||||
NPCID.GiantCursedSkull,
|
||||
NPCID.FungiBulb,
|
||||
NPCID.GiantFungiBulb,
|
||||
NPCID.IcyMerman,
|
||||
NPCID.AngryNimbus,
|
||||
NPCID.SandElemental,
|
||||
NPCID.DarkCaster,
|
||||
NPCID.FireImp,
|
||||
NPCID.Tim,
|
||||
NPCID.CultistArcherBlue,
|
||||
NPCID.DesertDjinn,
|
||||
NPCID.DiabolistRed,
|
||||
NPCID.DiabolistWhite,
|
||||
NPCID.Gastropod,
|
||||
NPCID.IceElemental,
|
||||
NPCID.IchorSticker,
|
||||
NPCID.Necromancer,
|
||||
NPCID.NecromancerArmored,
|
||||
NPCID.RaggedCaster,
|
||||
NPCID.RaggedCasterOpenCoat,
|
||||
NPCID.RuneWizard,
|
||||
NPCID.SkeletonArcher,
|
||||
NPCID.SkeletonCommando,
|
||||
NPCID.SkeletonSniper,
|
||||
NPCID.TacticalSkeleton,
|
||||
NPCID.Clown,
|
||||
NPCID.GoblinArcher,
|
||||
NPCID.GoblinSorcerer,
|
||||
NPCID.GoblinSummoner,
|
||||
NPCID.PirateCrossbower,
|
||||
NPCID.PirateDeadeye,
|
||||
NPCID.PirateCaptain,
|
||||
NPCID.SnowmanGangsta,
|
||||
NPCID.SnowBalla,
|
||||
NPCID.DrManFly,
|
||||
NPCID.Eyezor,
|
||||
NPCID.Nailhead,
|
||||
NPCID.BrainScrambler,
|
||||
NPCID.GigaZapper,
|
||||
NPCID.RayGunner,
|
||||
NPCID.ScutlixRider,
|
||||
NPCID.MartianWalker,
|
||||
NPCID.MartianTurret,
|
||||
NPCID.ElfCopter,
|
||||
NPCID.ElfArcher,
|
||||
NPCID.NebulaBrain,
|
||||
NPCID.NebulaSoldier,
|
||||
NPCID.StardustCellSmall,
|
||||
NPCID.StardustJellyfishBig,
|
||||
NPCID.StardustSoldier,
|
||||
NPCID.StardustSpiderBig,
|
||||
NPCID.VortexHornetQueen,
|
||||
NPCID.VortexRifleman,
|
||||
NPCID.VortexSoldier,
|
||||
NPCID.PirateShipCannon,
|
||||
NPCID.MartianSaucer,
|
||||
NPCID.MartianSaucerCannon,
|
||||
NPCID.MartianSaucerCore,
|
||||
NPCID.MartianSaucerTurret,
|
||||
NPCID.Probe,
|
||||
NPCID.CultistBoss,
|
||||
NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree,
|
||||
NPCID.MoonLordFreeEye,
|
||||
NPCID.BloodSquid,
|
||||
NPCID.PlanterasHook,
|
||||
NPCID.Dandelion,
|
||||
NPCID.DD2DarkMageT1,
|
||||
NPCID.DD2DarkMageT3,
|
||||
NPCID.DD2OgreT2,
|
||||
NPCID.DD2OgreT3,
|
||||
NPCID.DD2GoblinBomberT1,
|
||||
NPCID.DD2GoblinBomberT2,
|
||||
NPCID.DD2GoblinBomberT3,
|
||||
NPCID.DD2JavelinstT1,
|
||||
NPCID.DD2JavelinstT2,
|
||||
NPCID.DD2JavelinstT3,
|
||||
NPCID.DD2KoboldWalkerT2,
|
||||
NPCID.DD2KoboldWalkerT3,
|
||||
NPCID.DD2DrakinT2,
|
||||
NPCID.DD2DrakinT3,
|
||||
NPCID.DD2KoboldFlyerT2,
|
||||
NPCID.DD2KoboldFlyerT3,
|
||||
NPCID.DD2WitherBeastT2,
|
||||
NPCID.DD2WitherBeastT3,
|
||||
NPCID.DD2LightningBugT3,
|
||||
NPCID.MourningWood,
|
||||
NPCID.Pumpking,
|
||||
NPCID.Everscream,
|
||||
NPCID.IceQueen,
|
||||
NPCID.SantaNK1,
|
||||
NPCID.AncientDoom
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class NeedsDebuffIconDisplayList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
NPCID.TargetDummy,
|
||||
NPCID.WallofFleshEye,
|
||||
NPCType<SuperDummyNPC>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
public sealed class PersistentBuffList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
BuffType<WeaponImbueBrimstone>(),
|
||||
BuffType<WeaponImbueCrumbling>(),
|
||||
BuffType<WeaponImbueHolyFlames>(),
|
||||
BuffID.WeaponImbueVenom,
|
||||
BuffID.WeaponImbueCursedFlames,
|
||||
BuffID.WeaponImbueFire,
|
||||
BuffID.WeaponImbueGold,
|
||||
BuffID.WeaponImbueIchor,
|
||||
BuffID.WeaponImbueNanites,
|
||||
BuffID.WeaponImbueConfetti,
|
||||
BuffID.WeaponImbuePoison
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if this buffType is a PersistentBuff.
|
||||
/// </summary>
|
||||
public static bool Includes(int buffType) => List.Contains(buffType);
|
||||
}
|
||||
}
|
||||
@@ -1,150 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Melee.MaceFlails;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Systems.Collections
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see cref="ModSystem"/> that holds a list of all projectiles that should be, exceptionally, ignored by projectile destruction.
|
||||
/// </summary>
|
||||
public sealed class ProjectileDestroyExceptionsList : ModSystem
|
||||
{
|
||||
public static IList<int> List { get; private set; }
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
List =
|
||||
[
|
||||
// Holdout projectiles.
|
||||
ProjectileID.Phantasm,
|
||||
ProjectileID.VortexBeater,
|
||||
ProjectileID.DD2PhoenixBow,
|
||||
ProjectileID.LastPrism,
|
||||
ProjectileID.LastPrismLaser,
|
||||
ProjectileID.LaserMachinegun,
|
||||
ProjectileID.ChargedBlasterCannon,
|
||||
ProjectileID.MedusaHead,
|
||||
|
||||
ProjectileType<UrchinMaceProj>(),
|
||||
ProjectileType<BrokenBiomeBladeHoldout>(),
|
||||
ProjectileType<AridGrandeur>(),
|
||||
ProjectileType<BitingEmbrace>(),
|
||||
ProjectileType<DecaysRetort>(),
|
||||
ProjectileType<BiomeBladeHoldout>(),
|
||||
ProjectileType<TrueAridGrandeur>(),
|
||||
ProjectileType<TrueBitingEmbrace>(),
|
||||
ProjectileType<TrueDecaysRetort>(),
|
||||
ProjectileType<TrueGrovetendersTouch>(),
|
||||
ProjectileType<HeavensMight>(),
|
||||
ProjectileType<HellbornHoldout>(),
|
||||
ProjectileType<CountermeasureMittHoldout>(),
|
||||
ProjectileType<TrueBiomeBladeHoldout>(),
|
||||
ProjectileType<LamentationsOfTheChained>(),
|
||||
ProjectileType<ChainedMeatHook>(),
|
||||
ProjectileType<SwordsmithsPride>(),
|
||||
ProjectileType<SanguineFury>(),
|
||||
ProjectileType<EarthenTides>(),
|
||||
ProjectileType<GalaxiaHoldout>(),
|
||||
ProjectileType<PhoenixsPride>(),
|
||||
ProjectileType<PolarisGaze>(),
|
||||
ProjectileType<AndromedasStride>(),
|
||||
ProjectileType<AriesWrath>(),
|
||||
ProjectileType<ArkoftheAncientsSwungBlade>(),
|
||||
ProjectileType<ArkoftheAncientsParryHoldout>(),
|
||||
ProjectileType<TrueArkoftheAncientsSwungBlade>(),
|
||||
ProjectileType<TrueArkoftheAncientsParryHoldout>(),
|
||||
ProjectileType<ArkoftheElementsSwungBlade>(),
|
||||
ProjectileType<ArkoftheElementsParryHoldout>(),
|
||||
ProjectileType<ArkoftheCosmosSwungBlade>(),
|
||||
ProjectileType<ArkoftheCosmosParryHoldout>(),
|
||||
ProjectileType<BasherHoldout>(),
|
||||
ProjectileType<OldLordClaymoreHoldout>(),
|
||||
ProjectileType<ForbiddenOathbladeHoldout>(),
|
||||
ProjectileType<ExaltedOathbladeHoldout>(),
|
||||
ProjectileType<DevilsDevastationHoldout>(),
|
||||
ProjectileType<GrandDadHoldout>(),
|
||||
ProjectileType<GrandGuardianHoldout>(),
|
||||
ProjectileType<EarthHoldout>(),
|
||||
ProjectileType<MajesticGuardHoldout>(),
|
||||
ProjectileType<HellkiteHoldout>(),
|
||||
ProjectileType<RiftburstBow>(),
|
||||
ProjectileType<CometQuasherHoldout>(),
|
||||
ProjectileType<StellarStrikerHoldout>(),
|
||||
ProjectileType<ContagionBow>(),
|
||||
ProjectileType<DaemonsFlameBow>(),
|
||||
ProjectileType<DrataliornusBow>(),
|
||||
ProjectileType<FlakKrakenHoldout>(),
|
||||
ProjectileType<BuzzkillHoldout>(),
|
||||
ProjectileType<StarfleetMK2Gun>(),
|
||||
ProjectileType<SuperradiantSlaughtererHoldout>(),
|
||||
ProjectileType<NorfleetCannon>(),
|
||||
ProjectileType<FlurrystormCannonShooting>(),
|
||||
ProjectileType<ChickenCannonHeld>(),
|
||||
ProjectileType<PumplerHoldout>(),
|
||||
ProjectileType<ClockworkBowHoldout>(),
|
||||
ProjectileType<UltimaBowProjectile>(),
|
||||
ProjectileType<CondemnationHoldout>(),
|
||||
ProjectileType<SurgeDriverHoldout>(),
|
||||
ProjectileType<StarmageddonHeld>(),
|
||||
|
||||
ProjectileType<NanoPurgeHoldout>(),
|
||||
ProjectileType<AetherfluxCannonHoldout>(),
|
||||
ProjectileType<YharimsCrystalPrism>(),
|
||||
ProjectileType<DarkSparkPrism>(),
|
||||
ProjectileType<YharimsCrystalBeam>(),
|
||||
ProjectileType<DarkSparkBeam>(),
|
||||
ProjectileType<GhastlyVisageProj>(),
|
||||
ProjectileType<ApotheosisWorm>(),
|
||||
ProjectileType<SpiritCongregation>(),
|
||||
ProjectileType<RancorLaserbeam>(),
|
||||
ProjectileType<NebulousCataclysm_Held>(),
|
||||
|
||||
ProjectileType<FlakKrakenProjectile>(),
|
||||
ProjectileType<InfernadoFriendly>(),
|
||||
ProjectileType<DragonRageStaff>(),
|
||||
ProjectileType<MurasamaSlash>(),
|
||||
ProjectileType<PhaseslayerProjectile>(),
|
||||
ProjectileType<TaintedBladeSlasher>(),
|
||||
ProjectileType<PhotonRipperProjectile>(),
|
||||
ProjectileType<SpineOfThanatosProjectile>(),
|
||||
|
||||
ProjectileType<FinalDawnProjectile>(),
|
||||
ProjectileType<FinalDawnThrow>(),
|
||||
ProjectileType<FinalDawnHorizontalSlash>(),
|
||||
ProjectileType<FinalDawnFireSlash>(),
|
||||
|
||||
// Some hostile boss projectiles.
|
||||
ProjectileID.SaucerDeathray,
|
||||
ProjectileID.PhantasmalDeathray,
|
||||
|
||||
ProjectileType<BrimstoneMonster>(),
|
||||
ProjectileType<InfernadoRevenge>(),
|
||||
ProjectileType<OverlyDramaticDukeSummoner>(),
|
||||
ProjectileType<ProvidenceHolyRay>(),
|
||||
ProjectileType<OldDukeVortex>(),
|
||||
ProjectileType<BrimstoneRay>(),
|
||||
ProjectileType<AresDeathBeamStart>(),
|
||||
ProjectileType<AresGaussNukeProjectileBoom>(),
|
||||
ProjectileType<AresLaserBeamStart>(),
|
||||
ProjectileType<ArtemisSpinLaserbeam>(),
|
||||
ProjectileType<BirbAura>(),
|
||||
ProjectileType<ThanatosBeamStart>()
|
||||
];
|
||||
}
|
||||
|
||||
public override void Unload() => List = null;
|
||||
|
||||
/// <summary>
|
||||
/// A shorthand method to check if a projectile belongs in the exception list.
|
||||
/// </summary>
|
||||
public static bool Includes(int projType) => List.Contains(projType);
|
||||
}
|
||||
}
|
||||
Loaded 100 of 108 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user