diff --git a/CalamityLists.cs b/CalamityLists.cs index 6f1df24cfd..cd44fcf0fb 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -77,7 +77,6 @@ namespace CalamityMod { public static IList donatorList; public static List projectileDestroyExceptionList; - public static List projectileMinionList; public static List enemyImmunityList; public static List confusionEnemyList; public static List dungeonEnemyBuffList; @@ -104,11 +103,8 @@ namespace CalamityMod public static List revengeanceLifeStealExceptionList; public static List noRageWormSegmentList; public static List needsDebuffIconDisplayList; - public static List trapProjectileList; public static List scopedWeaponList; - public static List lavaFishList; public static List highTestFishList; - public static List flamethrowerList; public static List forceItemList; public static List livingFireBlockList; public static List amalgamBuffList; @@ -116,6 +112,7 @@ namespace CalamityMod public static List MushroomWeaponIDs; public static List MushroomProjectileIDs; + // Some of these lists of enemies are unused, but were difficult to create. Many of these common enemy types have a ton of variants. public static List zombieList; public static List demonEyeList; public static List skeletonList; @@ -124,6 +121,7 @@ namespace CalamityMod public static List mossHornetList; public static List bossMinionList; public static List minibossList; + public static List pierceResistList; public static List pierceResistExceptionList; @@ -157,10 +155,6 @@ namespace CalamityMod public static List kamiDebuffColorImmuneList; - public static List MinionsToNotResurrectList; - public static List ZeroMinionSlotExceptionList; - public static List DontCopyOriginalMinionAIList; - public static Dictionary EncryptedSchematicIDRelationship; public static List DisabledSummonerNerfItems; @@ -825,30 +819,6 @@ namespace CalamityMod ProjectileType() }; - projectileMinionList = new List() - { - ProjectileID.PygmySpear, - ProjectileID.UFOMinion, - ProjectileID.UFOLaser, - ProjectileID.StardustCellMinionShot, - ProjectileID.MiniSharkron, - ProjectileID.MiniRetinaLaser, - ProjectileID.ImpFireball, - ProjectileID.HornetStinger, - ProjectileID.DD2FlameBurstTowerT1Shot, - ProjectileID.DD2FlameBurstTowerT2Shot, - ProjectileID.DD2FlameBurstTowerT3Shot, - ProjectileID.DD2BallistraProj, - ProjectileID.DD2ExplosiveTrapT1Explosion, - ProjectileID.DD2ExplosiveTrapT2Explosion, - ProjectileID.DD2ExplosiveTrapT3Explosion, - ProjectileID.SpiderEgg, - ProjectileID.BabySpider, - ProjectileID.FrostBlastFriendly, - ProjectileID.MoonlordTurretLaser, - ProjectileID.RainbowCrystalExplosion - }; - enemyImmunityList = new List() { NPCID.KingSlime, @@ -1226,8 +1196,8 @@ namespace CalamityMod ItemID.Swordfish, ItemID.TheRottedFork, ItemID.TitaniumTrident, - ItemID.Trident - //ItemID.StormSpear + ItemID.Trident, + ItemID.ThunderSpear }; pumpkinMoonBuffList = new List() @@ -1507,17 +1477,7 @@ namespace CalamityMod NPCID.WallofFleshEye }; - trapProjectileList = new List() - { - ProjectileID.PoisonDartTrap, - ProjectileID.SpikyBallTrap, - ProjectileID.SpearTrap, - ProjectileID.FlamethrowerTrap, - ProjectileID.FlamesTrap, - ProjectileID.PoisonDart, - ProjectileID.GeyserTrap - }; - + // TODO -- override HoldItem => Player.scope = true; on these items scopedWeaponList = new List() { ItemType(), @@ -1535,12 +1495,6 @@ namespace CalamityMod ItemType() }; - flamethrowerList = new List() - { - ItemType(), - ItemType() - }; - forceItemList = new List() { ItemType(), @@ -2700,35 +2654,6 @@ namespace CalamityMod NPCType() }; - MinionsToNotResurrectList = new List() - { - ProjectileID.StardustDragon1, - ProjectileID.StardustDragon2, - ProjectileID.StardustDragon3, - ProjectileID.StardustDragon4, - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType() - }; - - ZeroMinionSlotExceptionList = new List() - { - ProjectileID.StardustDragon1, - ProjectileType(), - ProjectileType() - }; - - DontCopyOriginalMinionAIList = new List() - { - ProjectileType() - }; - EncryptedSchematicIDRelationship = new Dictionary() { [1] = ItemType(), @@ -2745,7 +2670,6 @@ namespace CalamityMod { donatorList = null; projectileDestroyExceptionList = null; - projectileMinionList = null; enemyImmunityList = null; confusionEnemyList = null; dungeonEnemyBuffList = null; @@ -2772,15 +2696,12 @@ namespace CalamityMod revengeanceLifeStealExceptionList = null; noRageWormSegmentList = null; needsDebuffIconDisplayList = null; - trapProjectileList = null; scopedWeaponList = null; - lavaFishList = null; highTestFishList = null; - flamethrowerList = null; forceItemList = null; livingFireBlockList = null; - amalgamBuffList = null; - persistentBuffList = null; + amalgamBuffList = null; + persistentBuffList = null; MushroomWeaponIDs = null; MushroomProjectileIDs = null; @@ -2810,7 +2731,7 @@ namespace CalamityMod SkeletronPrimeIDs = null; StormWeaverIDs = null; RavagerIDs = null; - GolemIDs = null; + GolemIDs = null; BoundNPCIDs = null; GrenadeResistIDs = null; ZeroContactDamageNPCList = null; @@ -2827,10 +2748,6 @@ namespace CalamityMod kamiDebuffColorImmuneList = null; - MinionsToNotResurrectList = null; - ZeroMinionSlotExceptionList = null; - DontCopyOriginalMinionAIList = null; - EncryptedSchematicIDRelationship = null; DisabledSummonerNerfItems = null; diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index 7c66d039b0..5825b6bffd 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -2394,19 +2394,6 @@ namespace CalamityMod } return eventActive; - case "ExcludeMinionsFromResurrection": - // This assumes all arguments after the calling command name are projectile types. - IEnumerable secondaryArguments = args.Skip(1); - if (secondaryArguments.Any(argument => !castID(argument, out _))) - return new ArgumentException("ERROR: All arguments after the calling command to \"ExcludeMinionsFromResurrection\" must be int or short IDs."); - - CalamityLists.MinionsToNotResurrectList.AddRange(secondaryArguments.Select(argument => - { - castID(argument, out int id); - return id; - })); - return null; - case "CreateEnchantment": case "RegisterEnchantment": EnchantmentManager.ConstructFromModcall(args.Skip(1)); diff --git a/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs b/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs index 561d31a259..60347ca386 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs @@ -193,7 +193,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses Vector2 projectileVelocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center); Vector2 spawnOffset = npc.Center + projectileVelocity * 50f; - int dustType = shootPoisonSeed ? DustID.Plantera_Green : DustID.Plantera_Pink; + int dustType = shootPoisonSeed ? 74 : 73; int dustSpawnBoxSize = shootThornBall ? 38 : 14; int dustAmount = shootThornBall ? 15 : 5; Vector2 dustVelocity = projectileVelocity * projectileSpeed; @@ -311,7 +311,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses Vector2 projectileVelocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center); Vector2 spawnOffset = npc.Center + projectileVelocity * 50f; - int dustType = DustID.Plantera_Pink; + int dustType = 73; Vector2 dustVelocity = projectileVelocity * projectileSpeed; for (int k = 0; k < 5; k++) { @@ -576,7 +576,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses Vector2 projectileVelocity = Vector2.Normalize(Main.player[npc.target].Center - npc.Center); Vector2 spawnOffset = npc.Center + projectileVelocity * 50f; - int dustType = shootPoisonSeed ? DustID.Plantera_Green : DustID.Plantera_Pink; + int dustType = shootPoisonSeed ? 74 : 73; Vector2 dustVelocity = projectileVelocity * projectileSpeed; for (int k = 0; k < 5; k++) { @@ -705,7 +705,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses Vector2 perturbedSpeed = projectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1))); Vector2 spawnOffset = npc.Center + perturbedSpeed * 50f; - int dustType = shootPinkSeed ? DustID.Plantera_Pink : DustID.Plantera_Green; + int dustType = shootPinkSeed ? 73 : 74; Vector2 dustVelocity = perturbedSpeed * projectileSpeed; for (int k = 0; k < 5; k++) { diff --git a/build.txt b/build.txt index be5b418e24..5872401040 100644 --- a/build.txt +++ b/build.txt @@ -1,5 +1,5 @@ author = Fabsol and the Dev Team -version = 2.0.2.003 +version = 2.0.3.001 displayName = Calamity Mod homepage = https://discord.gg/calamity buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, .github\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes, Effects\Compiler\*