112 lines
4.9 KiB
C#
112 lines
4.9 KiB
C#
using System.Collections.Generic;
|
|
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 CalamityMod.Projectiles.Summon;
|
|
using CalamityMod.Projectiles.Typeless;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using static Terraria.ModLoader.ModContent;
|
|
|
|
namespace CalamityMod.Systems.Collections
|
|
{
|
|
public sealed class PierceResistExceptionList : ModSystem
|
|
{
|
|
public static IList<int> List { get; private set; }
|
|
|
|
public override void OnModLoad()
|
|
{
|
|
List =
|
|
[
|
|
ProjectileID.Arkhalis,
|
|
ProjectileID.ChargedBlasterLaser,
|
|
ProjectileID.ClingerStaff,
|
|
ProjectileID.FinalFractal,
|
|
ProjectileID.FlyingKnife,
|
|
ProjectileID.LastPrismLaser,
|
|
ProjectileID.MonkStaffT3,
|
|
ProjectileID.PiercingStarlight,
|
|
ProjectileID.Terragrim,
|
|
ProjectileType<AcidicSaxBubble>(),
|
|
ProjectileType<AcidRocket>(),
|
|
ProjectileType<ApotheosisEnergy>(),
|
|
ProjectileType<ApotheosisWorm>(),
|
|
ProjectileType<ArtifactOfResilienceShards>(),
|
|
ProjectileType<BasherHoldout>(),
|
|
ProjectileType<BlushieStaffProj>(),
|
|
ProjectileType<BonebreakerProjectile>(),
|
|
ProjectileType<CometQuasherHoldout>(),
|
|
ProjectileType<DarkSparkBeam>(),
|
|
ProjectileType<DevilsDevastationHoldout>(),
|
|
ProjectileType<DevilsSunriseCyclone>(),
|
|
ProjectileType<DevilsSunriseProj>(),
|
|
ProjectileType<DoomsdayDeviceProjectile>(),
|
|
ProjectileType<DragonRageStaff>(),
|
|
ProjectileType<EarthHoldout>(),
|
|
ProjectileType<EclipsesStealth>(),
|
|
ProjectileType<EidolicWailSoundwave>(),
|
|
ProjectileType<EmesisGore>(),
|
|
ProjectileType<EradicatorProjectile>(),
|
|
ProjectileType<ExaltedOathbladeHoldout>(),
|
|
ProjectileType<ExoFlareCluster>(),
|
|
ProjectileType<EyeOfNightCell>(),
|
|
ProjectileType<FantasyTalismanProj>(),
|
|
ProjectileType<FantasyTalismanStealth>(),
|
|
ProjectileType<ForbiddenOathbladeHoldout>(),
|
|
ProjectileType<GodsParanoiaProj>(),
|
|
ProjectileType<GrandDadHoldout>(),
|
|
ProjectileType<GrandGuardianHoldout>(),
|
|
ProjectileType<HellbornHoldout>(),
|
|
ProjectileType<HellkiteHoldout>(),
|
|
ProjectileType<HolyColliderHoldout>(),
|
|
ProjectileType<InsidiousHarpoon>(),
|
|
ProjectileType<JawsProjectile>(),
|
|
ProjectileType<LeviathanTooth>(),
|
|
ProjectileType<LiliesOfFinalityAoE>(),
|
|
ProjectileType<LionfishProj>(),
|
|
ProjectileType<MajesticGuardHoldout>(),
|
|
ProjectileType<MetalShard>(),
|
|
ProjectileType<MurasamaSlash>(),
|
|
ProjectileType<NastyChollaBol>(),
|
|
ProjectileType<OldLordClaymoreHoldout>(),
|
|
ProjectileType<OmnibladeSwing>(),
|
|
ProjectileType<PhaseslayerProjectile>(),
|
|
ProjectileType<PhotonRipperProjectile>(),
|
|
ProjectileType<PlaguedFuelPackCloud>(),
|
|
ProjectileType<PlantationStaffSporeCloud>(),
|
|
ProjectileType<PrismaticRay>(),
|
|
ProjectileType<RancorLaserbeam>(),
|
|
ProjectileType<ReaperProjectile>(),
|
|
ProjectileType<RelicOfDeliveranceSpear>(),
|
|
ProjectileType<RespiteblockHoldout>(),
|
|
ProjectileType<SacrificeProjectile>(),
|
|
ProjectileType<SkytideDragoonHoldout>(),
|
|
ProjectileType<SnapClamProj>(),
|
|
ProjectileType<SnapClamStealth>(),
|
|
ProjectileType<Snowflake>(),
|
|
ProjectileType<SparklingLaser>(),
|
|
ProjectileType<SpiritCongregation>(),
|
|
ProjectileType<StarmageddonBinaryStarCenter>(),
|
|
ProjectileType<StellarStrikerHoldout>(),
|
|
ProjectileType<TaserHook>(),
|
|
ProjectileType<Teslabeam>(),
|
|
ProjectileType<TransformerBlob>(),
|
|
ProjectileType<TyphonsGreedStaff>(),
|
|
ProjectileType<UrchinMaceProj>(),
|
|
ProjectileType<UrchinStingerProj>(),
|
|
ProjectileType<ViolenceThrownProjectile>(),
|
|
ProjectileType<WaterLeechProj>(),
|
|
ProjectileType<YateveoBloomMace>(),
|
|
ProjectileType<YharimsCrystalBeam>(),
|
|
];
|
|
}
|
|
|
|
public override void Unload() => List = null;
|
|
|
|
public static bool Includes(int projectileType) => List.Contains(projectileType);
|
|
}
|
|
}
|