Death Mode fighter AI changes.

This commit is contained in:
Andrew Marheine committed 2020-01-23 16:53:40 -06:00
1 parent 690cbec02c
commit 43f86f803f
3 files changed
+4000 -39

No files matched your search

+1 -1
View File
@@ -384,7 +384,7 @@ namespace CalamityMod.CalPlayer
}
else
{
if (player.miscCounter == (int)(240f * frequencyMult))
if (player.miscCounter == (int)(240f * frequencyMult) && Main.rand.NextBool(3))
{
float randomVelocity = Main.rand.NextFloat() - 0.5f;
Vector2 fireTo = new Vector2(spawnPoint.X + 100f * randomVelocity, spawnPoint.Y + 900);
+3803 -30
View File
File diff suppressed because it is too large. Load diff
+196 -8
View File
@@ -1550,6 +1550,202 @@ namespace CalamityMod.NPCs
}
}
if (CalamityWorld.death)
{
switch (npc.aiStyle)
{
case 3:
switch (npc.type)
{
case NPCID.Zombie:
case NPCID.ArmedZombie:
case NPCID.ArmedZombieEskimo:
case NPCID.ArmedZombiePincussion:
case NPCID.ArmedZombieSlimed:
case NPCID.ArmedZombieSwamp:
case NPCID.ArmedZombieTwiggy:
case NPCID.ArmedZombieCenx:
case NPCID.Skeleton:
case NPCID.AngryBones:
case NPCID.UndeadMiner:
case NPCID.CorruptBunny:
case NPCID.DoctorBones:
case NPCID.TheGroom:
case NPCID.Crab:
case NPCID.GoblinScout:
case NPCID.ArmoredSkeleton:
case NPCID.Mummy:
case NPCID.DarkMummy:
case NPCID.LightMummy:
case NPCID.Werewolf:
case NPCID.Clown:
case NPCID.SkeletonArcher:
case NPCID.ChaosElemental:
case NPCID.BaldZombie:
case NPCID.PossessedArmor:
case NPCID.ZombieEskimo:
case NPCID.BlackRecluse:
case NPCID.WallCreeper:
case NPCID.UndeadViking:
case NPCID.CorruptPenguin:
case NPCID.FaceMonster:
case NPCID.SnowFlinx:
case NPCID.PincushionZombie:
case NPCID.SlimedZombie:
case NPCID.SwampZombie:
case NPCID.TwiggyZombie:
case NPCID.Nymph:
case NPCID.ArmoredViking:
case NPCID.Lihzahrd:
case NPCID.LihzahrdCrawler:
case NPCID.FemaleZombie:
case NPCID.HeadacheSkeleton:
case NPCID.MisassembledSkeleton:
case NPCID.PantlessSkeleton:
case NPCID.IcyMerman:
case NPCID.PirateDeckhand:
case NPCID.PirateCorsair:
case NPCID.PirateDeadeye:
case NPCID.PirateCrossbower:
case NPCID.PirateCaptain:
case NPCID.CochinealBeetle:
case NPCID.CyanBeetle:
case NPCID.LacBeetle:
case NPCID.SeaSnail:
case NPCID.ZombieRaincoat:
case NPCID.JungleCreeper:
case NPCID.BloodCrawler:
case NPCID.IceGolem:
case NPCID.Eyezor:
case NPCID.ZombieMushroom:
case NPCID.ZombieMushroomHat:
case NPCID.AnomuraFungus:
case NPCID.MushiLadybug:
case NPCID.RustyArmoredBonesAxe:
case NPCID.RustyArmoredBonesFlail:
case NPCID.RustyArmoredBonesSword:
case NPCID.RustyArmoredBonesSwordNoArmor:
case NPCID.BlueArmoredBones:
case NPCID.BlueArmoredBonesMace:
case NPCID.BlueArmoredBonesNoPants:
case NPCID.BlueArmoredBonesSword:
case NPCID.HellArmoredBones:
case NPCID.HellArmoredBonesSpikeShield:
case NPCID.HellArmoredBonesMace:
case NPCID.HellArmoredBonesSword:
case NPCID.BoneLee:
case NPCID.Paladin:
case NPCID.SkeletonSniper:
case NPCID.TacticalSkeleton:
case NPCID.SkeletonCommando:
case NPCID.AngryBonesBig:
case NPCID.AngryBonesBigMuscle:
case NPCID.AngryBonesBigHelmet:
case NPCID.Scarecrow1:
case NPCID.Scarecrow2:
case NPCID.Scarecrow3:
case NPCID.Scarecrow4:
case NPCID.Scarecrow5:
case NPCID.Scarecrow6:
case NPCID.Scarecrow7:
case NPCID.Scarecrow8:
case NPCID.Scarecrow9:
case NPCID.Scarecrow10:
case NPCID.ZombieDoctor:
case NPCID.ZombieSuperman:
case NPCID.ZombiePixie:
case NPCID.SkeletonTopHat:
case NPCID.SkeletonAstonaut:
case NPCID.SkeletonAlien:
case NPCID.Splinterling:
case NPCID.ZombieXmas:
case NPCID.ZombieSweater:
case NPCID.ZombieElf:
case NPCID.ZombieElfBeard:
case NPCID.ZombieElfGirl:
case NPCID.GingerbreadMan:
case NPCID.Yeti:
case NPCID.Nutcracker:
case NPCID.NutcrackerSpinning:
case NPCID.ElfArcher:
case NPCID.Krampus:
case NPCID.CultistArcherBlue:
case NPCID.CultistArcherWhite:
case NPCID.BrainScrambler:
case NPCID.RayGunner:
case NPCID.MartianOfficer:
case NPCID.GrayGrunt:
case NPCID.MartianEngineer:
case NPCID.GigaZapper:
case NPCID.Scutlix:
case NPCID.BoneThrowingSkeleton:
case NPCID.BoneThrowingSkeleton2:
case NPCID.BoneThrowingSkeleton3:
case NPCID.BoneThrowingSkeleton4:
case NPCID.CrimsonBunny:
case NPCID.CrimsonPenguin:
case NPCID.Medusa:
case NPCID.GreekSkeleton:
case NPCID.GraniteGolem:
case NPCID.BloodZombie:
case NPCID.Crawdad:
case NPCID.Crawdad2:
case NPCID.Salamander:
case NPCID.Salamander2:
case NPCID.Salamander3:
case NPCID.Salamander4:
case NPCID.Salamander5:
case NPCID.Salamander6:
case NPCID.Salamander7:
case NPCID.Salamander8:
case NPCID.Salamander9:
case NPCID.WalkingAntlion:
case NPCID.DesertGhoul:
case NPCID.DesertGhoulCorruption:
case NPCID.DesertGhoulCrimson:
case NPCID.DesertGhoulHallow:
case NPCID.DesertLamiaLight:
case NPCID.DesertLamiaDark:
case NPCID.DesertScorpionWalk:
case NPCID.DesertBeast:
case NPCID.StardustSoldier:
case NPCID.StardustSpiderBig:
case NPCID.NebulaSoldier:
case NPCID.VortexRifleman:
case NPCID.VortexSoldier:
case NPCID.VortexLarva:
case NPCID.VortexHornet:
case NPCID.VortexHornetQueen:
case NPCID.SolarDrakomire:
case NPCID.SolarSpearman:
case NPCID.SolarSolenian:
case NPCID.Frankenstein:
case NPCID.SwampThing:
case NPCID.Vampire:
case NPCID.Butcher:
case NPCID.CreatureFromTheDeep:
case NPCID.Fritz:
case NPCID.Nailhead:
case NPCID.Psycho:
case NPCID.ThePossessed:
case NPCID.DrManFly:
case NPCID.GoblinPeon:
case NPCID.GoblinThief:
case NPCID.GoblinWarrior:
case NPCID.GoblinArcher:
case NPCID.GoblinSummoner:
case NPCID.MartianWalker:
case NPCID.DemonTaxCollector:
case NPCID.TheBride:
return CalamityGlobalAI.BuffedFighterAI(npc, mod);
}
break;
default:
break;
}
}
return true;
}
#endregion
@@ -2094,14 +2290,6 @@ namespace CalamityMod.NPCs
CalamityGlobalAI.RevengeanceDungeonGuardianAI(npc, configBossRushBoost, enraged > 0);
break;
case NPCID.Lihzahrd:
CalamityGlobalAI.RevengeanceLihzahrdAI(npc);
break;
case NPCID.IceGolem:
CalamityGlobalAI.RevengeanceIceGolemAI(npc);
break;
default:
break;
}