AresIDList.
This commit is contained in:
1 parent
77935f8e10
commit
1f8bb9ecc0
4 files changed
+40
-21
No files matched your search
@@ -371,31 +371,31 @@ namespace CalamityMod.Balancing
|
||||
|
||||
#region Exo Mechs: Ares
|
||||
// 30% resist to Dynamic Pursuer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
|
||||
// 25% resist to Aetherflux Cannon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PhasedGodRay>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PhasedGodRay>()))));
|
||||
|
||||
// 25% resist to Prismatic Breaker's deathray.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PrismaticRay>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<PrismaticRay>()))));
|
||||
|
||||
// 20% resist to the Spin Throw part of the Ark of the Cosmos' combo.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, AotCThrowCombo))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, AotCThrowCombo))));
|
||||
|
||||
// 20% resist to Dragon Rage projectiles.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, DragonRageFilter))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileSpecificRequirementBalancingRule(0.8f, DragonRageFilter))));
|
||||
|
||||
// 20% resist to Eclipse's Fall.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<EclipsesSmol>(), ProjectileType<EclipsesFallMain>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<EclipsesSmol>(), ProjectileType<EclipsesFallMain>()))));
|
||||
|
||||
// 20% resist to Rancor.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<RancorLaserbeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<RancorLaserbeam>()))));
|
||||
|
||||
// 20% resist to Yharim's Crystal.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<YharimsCrystalBeam>()))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<YharimsCrystalBeam>()))));
|
||||
|
||||
// 20% resist to Zenith.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileID.FinalFractal))));
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(AresIDList.List, Do(new ProjectileResistBalancingRule(0.8f, ProjectileID.FinalFractal))));
|
||||
#endregion
|
||||
|
||||
#region Exo Mechs: Artemis and Apollo
|
||||
|
||||
@@ -45,7 +45,6 @@ namespace CalamityMod
|
||||
public sealed class CalamityLists : ModSystem
|
||||
{
|
||||
public static List<int> DeathModeSplittingWormIDs;
|
||||
public static List<int> AresIDs;
|
||||
public static List<int> SkeletronPrimeIDs;
|
||||
public static List<int> StormWeaverIDs;
|
||||
public static List<int> RavagerIDs;
|
||||
@@ -94,15 +93,6 @@ namespace CalamityMod
|
||||
NPCID.SeekerTail
|
||||
};
|
||||
|
||||
AresIDs = new List<int>
|
||||
{
|
||||
NPCType<AresBody>(),
|
||||
NPCType<AresGaussNuke>(),
|
||||
NPCType<AresLaserCannon>(),
|
||||
NPCType<AresPlasmaFlamethrower>(),
|
||||
NPCType<AresTeslaCannon>()
|
||||
};
|
||||
|
||||
SkeletronPrimeIDs = new List<int>
|
||||
{
|
||||
NPCID.SkeletronPrime,
|
||||
@@ -685,7 +675,6 @@ namespace CalamityMod
|
||||
public override void Unload()
|
||||
{
|
||||
DeathModeSplittingWormIDs = null;
|
||||
AresIDs = null;
|
||||
SkeletronPrimeIDs = null;
|
||||
StormWeaverIDs = null;
|
||||
RavagerIDs = null;
|
||||
|
||||
@@ -6066,7 +6066,7 @@ namespace CalamityMod.NPCs
|
||||
if (DesertScourgeIDList.Includes(npc) || EaterOfWorldsIDList.Includes(npc) || npc.type == NPCID.Creeper ||
|
||||
PerforatorWormIDList.Includes(npc) || AquaticScourgeIDList.Includes(npc) || DestroyerIDList.Includes(npc) ||
|
||||
AstrumDeusIDList.Includes(npc) || CalamityLists.StormWeaverIDs.Contains(npc.type) || ThanatosIDList.Includes(npc) ||
|
||||
npc.type == NPCType<DarkEnergy>() || npc.type == NPCType<RavagerBody>() || CalamityLists.AresIDs.Contains(npc.type) || npc.type == NPCType<Crabulon.Crabulon>() ||
|
||||
npc.type == NPCType<DarkEnergy>() || npc.type == NPCType<RavagerBody>() || AresIDList.Includes(npc) || npc.type == NPCType<Crabulon.Crabulon>() ||
|
||||
npc.type == NPCType<ProfanedRocks>())
|
||||
{
|
||||
float damageMult = ThanatosIDList.Includes(npc.type) ? 0.35f : (DesertScourgeIDList.Includes(npc.type) || npc.type == NPCType<Crabulon.Crabulon>()) ? 0.75f : 0.5f;
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.ExoMechs.Ares;
|
||||
using Terraria;
|
||||
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(NPC npc) => List.Contains(npc.type);
|
||||
public static bool Includes(int npcType) => List.Contains(npcType);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user