Merge branch 'master' into weapons

This commit is contained in:
DominicKarma committed 2020-12-16 13:41:06 -06:00
commit 714befeb97
250 files changed
+1693 -1604

No files matched your search

+1
View File
@@ -0,0 +1 @@
patreon: Fabsol
+6 -5
View File
@@ -12,6 +12,7 @@ using CalamityMod.Items.Armor;
using CalamityMod.Items.DifficultyItems;
using CalamityMod.Items.Dyes;
using CalamityMod.Items.Mounts;
using CalamityMod.Items.Tools;
using CalamityMod.Items.TreasureBags;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
@@ -41,7 +42,6 @@ using CalamityMod.Projectiles.Boss;
using CalamityMod.Projectiles.DraedonsArsenal;
using CalamityMod.Projectiles.Enemy;
using CalamityMod.Projectiles.Environment;
using CalamityMod.Projectiles.Healing;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
@@ -4941,7 +4941,7 @@ namespace CalamityMod.CalPlayer
{
damageMult += 4.0;
}
if (item.melee)
if (item.melee && item.type != ModContent.ItemType<UltimusCleaver>() && item.type != ModContent.ItemType<InfernaCutter>())
{
damageMult += trueMeleeDamage;
}
@@ -5505,7 +5505,7 @@ namespace CalamityMod.CalPlayer
{
int newDamage = damage;
double defenseStatDamageMult = CalamityWorld.death ? 0.25 : CalamityWorld.revenge ? 0.2 : Main.expertMode ? 0.15 : 0.1;
double defenseStatDamageMult = CalamityWorld.death ? 0.15 : CalamityWorld.revenge ? 0.125 : Main.expertMode ? 0.1 : 0.05;
if (draedonsHeart)
defenseStatDamageMult *= 0.5;
@@ -5839,7 +5839,7 @@ namespace CalamityMod.CalPlayer
{
int newDamage = damage;
double defenseStatDamageMult = CalamityWorld.death ? 0.25 : CalamityWorld.revenge ? 0.2 : Main.expertMode ? 0.15 : 0.1;
double defenseStatDamageMult = CalamityWorld.death ? 0.15 : CalamityWorld.revenge ? 0.125 : Main.expertMode ? 0.1 : 0.05;
if (draedonsHeart)
defenseStatDamageMult *= 0.5;
@@ -9212,7 +9212,8 @@ namespace CalamityMod.CalPlayer
// Use time 20 = 242% damage ratio
// Use time 30 = 263% damage ratio
// Use time 59 = 297% damage ratio
double useTimeFactor = 0.75 + 0.75 * Math.Log(it.useTime + 2D, 4D);
int realUseTime = Math.Max(it.useTime, it.useAnimation);
double useTimeFactor = 0.75 + 0.75 * Math.Log(realUseTime + 2D, 4D);
// 9.00 second stealth charge = 433% damage ratio
// 6.00 second stealth charge = 330% damage ratio
+1 -1
View File
@@ -144,7 +144,7 @@ namespace CalamityMod.CalPlayer
lifeRegenLost += 20;
}
if (modPlayer.ZoneSulphur && player.IsUnderwater() && !modPlayer.aquaticScourgeLore && !modPlayer.decayEffigy)
if (modPlayer.ZoneSulphur && player.IsUnderwater() && !modPlayer.aquaticScourgeLore && !modPlayer.decayEffigy && !player.lavaWet && !player.honeyWet)
{
player.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 2, true);
modPlayer.pissWaterBoost++;
+41 -3
View File
@@ -31,6 +31,7 @@ using CalamityMod.NPCs.Bumblebirb;
using CalamityMod.NPCs.Calamitas;
using CalamityMod.NPCs.CeaselessVoid;
using CalamityMod.NPCs.Crabulon;
using CalamityMod.NPCs.Crags;
using CalamityMod.NPCs.Cryogen;
using CalamityMod.NPCs.DesertScourge;
using CalamityMod.NPCs.DevourerofGods;
@@ -77,6 +78,7 @@ namespace CalamityMod
public static List<int> projectileDestroyExceptionList;
public static List<int> projectileMinionList;
public static List<int> enemyImmunityList;
public static List<int> confusionEnemyList;
public static List<int> dungeonEnemyBuffList;
public static List<int> dungeonProjectileBuffList;
public static List<int> bossHPScaleList;
@@ -538,9 +540,44 @@ namespace CalamityMod
ModContent.NPCType<SlimeGod>(),
ModContent.NPCType<SlimeGodRun>(),
ModContent.NPCType<SlimeGodSplit>(),
ModContent.NPCType<SlimeGodRunSplit>(),
ModContent.NPCType<CalamitasRun>(),
ModContent.NPCType<CalamitasRun2>() //brothers
ModContent.NPCType<SlimeGodRunSplit>()
};
confusionEnemyList = new List<int>()
{
ModContent.NPCType<AeroSlime>(),
ModContent.NPCType<AngryDog>(),
ModContent.NPCType<AstralachneaGround>(),
ModContent.NPCType<AstralachneaWall>(),
ModContent.NPCType<BlightedEye>(),
ModContent.NPCType<BloomSlime>(),
ModContent.NPCType<Bohldohr>(),
ModContent.NPCType<CalamityEye>(),
ModContent.NPCType<CosmicElemental>(),
ModContent.NPCType<CrimulanBlightSlime>(),
ModContent.NPCType<Cryon>(),
ModContent.NPCType<CryoSlime>(),
ModContent.NPCType<CultistAssassin>(),
ModContent.NPCType<DespairStone>(),
ModContent.NPCType<EbonianBlightSlime>(),
ModContent.NPCType<FearlessGoldfishWarrior>(),
ModContent.NPCType<HeatSpirit>(),
ModContent.NPCType<MantisShrimp>(),
ModContent.NPCType<OverloadedSoldier>(),
ModContent.NPCType<PerennialSlime>(),
ModContent.NPCType<PhantomDebris>(),
ModContent.NPCType<Pitbull>(),
ModContent.NPCType<SandTortoise>(),
ModContent.NPCType<Scryllar>(),
ModContent.NPCType<ScryllarRage>(),
ModContent.NPCType<SeaUrchin>(),
ModContent.NPCType<StellarCulex>(),
ModContent.NPCType<StormlionCharger>(),
ModContent.NPCType<SuperDummyNPC>(),
ModContent.NPCType<SunBat>(),
ModContent.NPCType<WulfrumGyrator>(),
ModContent.NPCType<WulfrumRover>(),
ModContent.NPCType<WulfrumSlime>()
};
dungeonEnemyBuffList = new List<int>()
@@ -2215,6 +2252,7 @@ namespace CalamityMod
projectileDestroyExceptionList = null;
projectileMinionList = null;
enemyImmunityList = null;
confusionEnemyList = null;
dungeonEnemyBuffList = null;
dungeonProjectileBuffList = null;
bossHPScaleList = null;
+1 -1
View File
@@ -77,7 +77,7 @@ namespace CalamityMod.Items.Accessories
if (!hideVisual)
{
Vector2 velocity = new Vector2(0f, -1f);
int damage = NPC.downedMoonlord ? 150 : 90;
int damage = NPC.downedMoonlord ? 110 : 90;
float damageMult = CalamityWorld.downedDoG ? 2f : 1f;
int elementalDmg = (int)(damage * damageMult * player.MinionDamage());
float kBack = 2f + player.minionKB;
+3 -3
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings
"Acceleration multiplier: 2.7\n" +
"Great vertical speed\n" +
"Flight time: 200\n" +
"Temporary immunity to lava and 30% increased movement speed");
"Temporary immunity to lava and 15% increased movement speed");
}
public override void SetDefaults()
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
if (line2.mod == "Terraria" && line2.Name == "Tooltip5")
{
line2.text = "Temporary immunity to lava and 30% increased movement speed\n" +
line2.text = "Temporary immunity to lava and 15% increased movement speed\n" +
"Provides heat protection in Death Mode";
}
}
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Accessories.Wings
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
player.moveSpeed += 0.3f;
player.moveSpeed += 0.15f;
player.lavaMax += 240;
player.wingTimeMax = 200;
player.noFallDmg = true;
+2 -2
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings
"Acceleration multiplier: 1.75\n" +
"Good vertical speed\n" +
"Flight time: 120\n" +
"15% increased movement speed and 8% increased jump speed while wearing the Astral Armor");
"10% increased movement speed and 8% increased jump speed while wearing the Astral Armor");
}
public override void SetDefaults()
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
if (player.armor[0].type == ModContent.ItemType<AstralHelm>() && player.armor[1].type == ModContent.ItemType<AstralBreastplate>() && player.armor[2].type == ModContent.ItemType<AstralLeggings>())
{
player.moveSpeed += 0.15f;
player.moveSpeed += 0.1f;
player.jumpSpeedBoost += 0.4f;
}
+2 -2
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings
"Acceleration multiplier: 1\n" +
"Good vertical speed\n" +
"Flight time: 75\n" +
"16% increased jump speed and allows auto-jump\n" +
"20% increased jump speed and allows auto-jump\n" +
"Grants the player cloud, blizzard, and sandstorm mid-air jumps");
}
@@ -92,7 +92,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.jumpBoost = true;
player.autoJump = true;
player.noFallDmg = true;
player.jumpSpeedBoost += 0.8f;
player.jumpSpeedBoost += 1f;
player.wingTimeMax = 75;
}
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Ammo
public override void SetDefaults()
{
item.damage = 27;
item.damage = 22;
item.ranged = true;
item.width = 22;
item.height = 22;
+33 -39
View File
@@ -2057,7 +2057,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 100\n" +
"+20 max life, +15 defense and +3 life regen";
"+20 max life, +10 defense and +2 life regen";
}
}
}
@@ -2072,7 +2072,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 100\n" +
"10% increased damage and critical strike chance";
"5% increased damage and critical strike chance";
}
}
}
@@ -2101,8 +2101,8 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 130\n" +
"+50 max mana, 5% decreased mana usage,\n" +
"10% increased magic damage and 5% increased magic critical strike chance";
"+20 max mana, 5% decreased mana usage,\n" +
"5% increased magic damage and magic critical strike chance";
}
}
}
@@ -2117,7 +2117,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 130\n" +
"+80 max life";
"+60 max life";
}
}
}
@@ -2163,8 +2163,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 140\n" +
"10% increased movement speed, 12% increased ranged damage,\n" +
"16% increased ranged critical strike chance\n" +
"10% increased movement speed, ranged damage and critical strike chance\n" +
"and +30 defense while wearing the Necro Armor";
}
}
@@ -2180,8 +2179,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 160\n" +
"10% increased melee damage\n" +
"and 5% increased melee critical strike chance";
"5% increased melee damage and critical strike chance";
}
}
}
@@ -2214,8 +2212,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Average vertical speed\n" +
"Flight time: 160\n" +
"+10 defense and 5% increased damage reduction while wearing the Spectre Armor and Hood\n" +
"+20 max mana, 5% increased magic damage and critical strike chance,\n" +
"and 5% decreased mana usage while wearing the Spectre Armor and Mask";
"5% increased magic damage and critical strike chance while wearing the Spectre Armor and Mask";
}
}
}
@@ -2230,8 +2227,8 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 160\n" +
"+15 defense and 10% increased damage reduction while wearing the Beetle Armor and Shell\n" +
"10% increased melee damage and critical strike chance while wearing the Beetle Armor and Scale Mail";
"+10 defense and 5% increased damage reduction while wearing the Beetle Armor and Shell\n" +
"5% increased melee damage and critical strike chance while wearing the Beetle Armor and Scale Mail";
}
}
}
@@ -2293,7 +2290,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 160\n" +
"+10 defense, 10% increased damage reduction,\n" +
"+5 defense, 5% increased damage reduction,\n" +
"and the Dryad's permanent blessing while wearing the Tiki Armor";
}
}
@@ -2311,7 +2308,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Flight time: 140\n" +
"At night or during an eclipse, you will gain the following boosts:\n" +
"10% increased movement speed, 20% increased jump speed,\n" +
"+15 defense, 10% increased damage, and 5% increased critical strike chance";
"7% increased damage and 3% increased critical strike chance";
}
}
}
@@ -2389,7 +2386,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
"Acceleration multiplier: 1\n" +
"Average vertical speed\n" +
"Flight time: 170\n" +
"+50 max life\n" +
"+40 max life\n" +
"Ornaments rain down as you fly";
}
}
@@ -3258,14 +3255,14 @@ Grants immunity to fire blocks, and temporary immunity to lava";
if (item.type == ItemID.AngelWings) // Boost to max life, defense, and life regen
{
player.statLifeMax2 += 20;
player.statDefense += 15;
player.lifeRegen += 3;
player.statDefense += 10;
player.lifeRegen += 2;
player.noFallDmg = true;
}
else if (item.type == ItemID.DemonWings) // Boost to all damage and crit
{
player.allDamage += 0.1f;
modPlayer.AllCritBoost(10);
player.allDamage += 0.05f;
modPlayer.AllCritBoost(5);
player.noFallDmg = true;
}
else if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water
@@ -3288,15 +3285,15 @@ Grants immunity to fire blocks, and temporary immunity to lava";
}
else if (item.type == ItemID.ButterflyWings) // Boost to magic stats
{
player.statManaMax2 += 50;
player.magicDamage += 0.1f;
player.statManaMax2 += 20;
player.magicDamage += 0.05f;
player.manaCost *= 0.95f;
player.magicCrit += 5;
player.noFallDmg = true;
}
else if (item.type == ItemID.FairyWings) // Boost to max life
{
player.statLifeMax2 += 80;
player.statLifeMax2 += 60;
player.noFallDmg = true;
}
else if (item.type == ItemID.BatWings) // Stronger at night
@@ -3304,10 +3301,9 @@ Grants immunity to fire blocks, and temporary immunity to lava";
player.noFallDmg = true;
if (!Main.dayTime || Main.eclipse)
{
player.jumpSpeedBoost += 1.0f;
player.statDefense += 15;
player.allDamage += 0.1f;
modPlayer.AllCritBoost(5);
player.jumpSpeedBoost += 1f;
player.allDamage += 0.07f;
modPlayer.AllCritBoost(3);
player.moveSpeed += 0.1f;
}
}
@@ -3324,8 +3320,8 @@ Grants immunity to fire blocks, and temporary immunity to lava";
player.body == ArmorIDs.Body.NecroBreastplate && player.legs == ArmorIDs.Legs.NecroGreaves)
{
player.moveSpeed += 0.1f;
player.rangedDamage += 0.12f;
player.rangedCrit += 16;
player.rangedDamage += 0.1f;
player.rangedCrit += 10;
player.statDefense += 30;
}
}
@@ -3350,7 +3346,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
}
else if (item.type == ItemID.FlameWings) // Bonus to melee stats
{
player.meleeDamage += 0.1f;
player.meleeDamage += 0.05f;
player.meleeCrit += 5;
player.noFallDmg = true;
}
@@ -3366,9 +3362,7 @@ Grants immunity to fire blocks, and temporary immunity to lava";
}
else if (player.head == ArmorIDs.Head.SpectreMask)
{
player.statManaMax2 += 20;
player.magicDamage += 0.05f;
player.manaCost *= 0.95f;
player.magicCrit += 5;
}
}
@@ -3380,13 +3374,13 @@ Grants immunity to fire blocks, and temporary immunity to lava";
{
if (player.body == ArmorIDs.Body.BeetleShell)
{
player.statDefense += 15;
player.endurance += 0.1f;
player.statDefense += 10;
player.endurance += 0.05f;
}
else if (player.body == ArmorIDs.Body.BeetleScaleMail)
{
player.meleeDamage += 0.1f;
player.meleeCrit += 10;
player.meleeDamage += 0.05f;
player.meleeCrit += 5;
}
}
}
@@ -3418,15 +3412,15 @@ Grants immunity to fire blocks, and temporary immunity to lava";
player.noFallDmg = true;
if (player.head == ArmorIDs.Head.TikiMask && player.body == ArmorIDs.Body.TikiShirt && player.legs == ArmorIDs.Legs.TikiPants)
{
player.statDefense += 10;
player.endurance += 0.1f;
player.statDefense += 5;
player.endurance += 0.05f;
player.AddBuff(BuffID.DryadsWard, 5, true); // Dryad's Blessing
}
}
else if (item.type == ItemID.FestiveWings) // Drop powerful homing christmas tree bulbs while in flight
{
player.noFallDmg = true;
player.statLifeMax2 += 50;
player.statLifeMax2 += 40;
if (modPlayer.icicleCooldown <= 0)
{
if (player.controlJump && !player.jumpAgainCloud && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
-1
View File
@@ -31,7 +31,6 @@ namespace CalamityMod.NPCs.Abyss
npc.aiStyle = -1;
aiType = -1;
npc.value = Item.buyPrice(0, 0, 30, 0);
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
npc.knockBackResist = 0.9f;
-1
View File
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1;
npc.noGravity = true;
npc.value = Item.buyPrice(0, 0, 50, 0);
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
banner = npc.type;
-1
View File
@@ -29,7 +29,6 @@ namespace CalamityMod.NPCs.Abyss
npc.alpha = 20;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 0, 80);
npc.HitSound = SoundID.NPCHit25;
npc.DeathSound = SoundID.NPCDeath28;
-1
View File
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.Abyss
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 30, 0);
npc.HitSound = SoundID.NPCHit23;
npc.DeathSound = SoundID.NPCDeath28;
-23
View File
@@ -40,29 +40,6 @@ namespace CalamityMod.NPCs.Abyss
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.timeLeft = NPC.activeTime * 30;
npc.value = Item.buyPrice(0, 25, 0, 0);
npc.HitSound = SoundID.NPCHit20;
-1
View File
@@ -33,7 +33,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 110;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 1, 0);
npc.HitSound = SoundID.NPCHit33;
npc.DeathSound = SoundID.NPCDeath28;
-1
View File
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 400;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 10, 0);
npc.HitSound = SoundID.NPCHit4;
npc.DeathSound = SoundID.NPCDeath1;
-1
View File
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 400;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 10, 0);
npc.HitSound = SoundID.NPCHit4;
npc.DeathSound = SoundID.NPCDeath1;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -44,10 +44,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 160000;
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 25, 0, 0);
npc.behindTiles = true;
-4
View File
@@ -45,10 +45,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 1000000;
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(10, 0, 0, 0);
npc.behindTiles = true;
-4
View File
@@ -25,10 +25,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -25,10 +25,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-1
View File
@@ -35,7 +35,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 800;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 15, 0);
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -39,10 +39,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 60000;
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 0, 50, 0);
npc.behindTiles = true;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-1
View File
@@ -30,7 +30,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 480;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 10, 0);
npc.HitSound = SoundID.NPCHit51;
npc.DeathSound = SoundID.NPCDeath26;
-1
View File
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 800;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 15, 0);
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
-1
View File
@@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.Abyss
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 25, 0);
npc.HitSound = SoundID.NPCHit25;
npc.DeathSound = SoundID.NPCDeath28;
-1
View File
@@ -26,7 +26,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 360;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 1, 0);
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
-4
View File
@@ -24,10 +24,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -36,10 +36,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 4000;
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 0, 10, 0);
npc.behindTiles = true;
-4
View File
@@ -24,10 +24,6 @@ namespace CalamityMod.NPCs.Abyss
aiType = -1; //new
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-23
View File
@@ -41,29 +41,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 190000;
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.timeLeft = NPC.activeTime * 30;
npc.value = Item.buyPrice(0, 25, 0, 0);
npc.HitSound = SoundID.NPCHit56;
-1
View File
@@ -33,7 +33,6 @@ namespace CalamityMod.NPCs.Abyss
npc.aiStyle = -1;
aiType = -1;
npc.value = Item.buyPrice(0, 0, 5, 0);
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
npc.knockBackResist = 0.15f;
-1
View File
@@ -31,7 +31,6 @@ namespace CalamityMod.NPCs.Abyss
npc.lifeMax = 320;
npc.aiStyle = -1;
aiType = -1;
npc.buffImmune[ModContent.BuffType<CrushDepth>()] = true;
npc.value = Item.buyPrice(0, 0, 5, 0);
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
-4
View File
@@ -46,10 +46,6 @@ namespace CalamityMod.NPCs.AcidRain
}
npc.value = Item.buyPrice(0, 0, 3, 32);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.aiStyle = -1;
aiType = -1;
npc.lavaImmune = false;
-4
View File
@@ -21,10 +21,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.defense = 0;
npc.lifeMax = 5;
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.lavaImmune = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -23,10 +23,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.defense = 0;
npc.lifeMax = 5;
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.lavaImmune = false;
npc.noGravity = false;
npc.noTileCollide = false;
-4
View File
@@ -44,10 +44,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 3, 60, 0);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.lavaImmune = false;
npc.noGravity = false;
npc.noTileCollide = false;
-4
View File
@@ -28,10 +28,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.lifeMax = 5;
npc.defense = 5;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.value = Item.buyPrice(0, 0, 5, 55);
npc.lavaImmune = true;
npc.noGravity = false;
-4
View File
@@ -37,10 +37,6 @@ namespace CalamityMod.NPCs.AcidRain
}
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.value = Item.buyPrice(0, 0, 5, 55);
npc.lavaImmune = true;
npc.noGravity = false;
-4
View File
@@ -43,10 +43,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.knockBackResist = 0f;
animationType = NPCID.CorruptSlime;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.value = Item.buyPrice(0, 0, 8, 30);
npc.alpha = 50;
npc.lavaImmune = false;
+3 -5
View File
@@ -31,10 +31,7 @@ namespace CalamityMod.NPCs.AcidRain
npc.knockBackResist = 0f;
animationType = NPCID.CorruptSlime;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
aiType = NPCID.ToxicSludge;
npc.value = Item.buyPrice(0, 0, 5, 0);
npc.alpha = 50;
npc.lavaImmune = false;
@@ -49,11 +46,13 @@ namespace CalamityMod.NPCs.AcidRain
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(Falling);
writer.Write(npc.aiStyle);
}
public override void ReceiveExtraAI(BinaryReader reader)
{
Falling = reader.ReadBoolean();
npc.aiStyle = reader.ReadInt32();
}
public override void AI()
@@ -80,7 +79,6 @@ namespace CalamityMod.NPCs.AcidRain
else
{
npc.aiStyle = 1;
aiType = NPCID.ToxicSludge;
}
}
-4
View File
@@ -50,10 +50,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 20, 0, 0);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.DR_NERD(0.3f);
npc.lavaImmune = false;
npc.noGravity = false;
-4
View File
@@ -44,10 +44,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.knockBackResist = 0.7f;
npc.value = Item.buyPrice(0, 0, 5, 0);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.lavaImmune = false;
npc.noGravity = true;
npc.noTileCollide = false;
-4
View File
@@ -40,10 +40,6 @@ namespace CalamityMod.NPCs.AcidRain
}
npc.knockBackResist = 0.6f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.value = Item.buyPrice(0, 0, 4, 20);
npc.lavaImmune = false;
npc.noGravity = true;
-4
View File
@@ -41,10 +41,6 @@ namespace CalamityMod.NPCs.AcidRain
}
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.value = Item.buyPrice(0, 0, 5, 0);
npc.lavaImmune = false;
npc.noGravity = false;
-4
View File
@@ -52,10 +52,6 @@ namespace CalamityMod.NPCs.AcidRain
}
npc.value = Item.buyPrice(0, 0, 3, 65);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.lavaImmune = false;
npc.noGravity = true;
npc.HitSound = SoundID.NPCHit1;
-4
View File
@@ -55,10 +55,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.knockBackResist = 0.8f;
npc.value = Item.buyPrice(0, 0, 5, 25);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.lavaImmune = false;
npc.noGravity = true;
npc.noTileCollide = false;
-4
View File
@@ -46,10 +46,6 @@ namespace CalamityMod.NPCs.AcidRain
npc.knockBackResist = 0.2f;
npc.value = Item.buyPrice(0, 0, 4, 0);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.lavaImmune = false;
npc.noGravity = true;
npc.noTileCollide = false;
-4
View File
@@ -42,10 +42,6 @@ namespace CalamityMod.NPCs.AcidRain
}
npc.value = Item.buyPrice(0, 0, 2, 5);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.lavaImmune = false;
npc.noGravity = true;
npc.noTileCollide = false;
-4
View File
@@ -24,10 +24,6 @@ namespace CalamityMod.NPCs.AquaticScourge
npc.LifeMaxNERB(Main.hardMode ? 200 : 30);
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.value = Item.buyPrice(0, 0, 0, 60);
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath1;
@@ -29,10 +29,6 @@ namespace CalamityMod.NPCs.AquaticScourge
npc.LifeMaxNERB(73000, 85000, 10000000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
@@ -29,10 +29,6 @@ namespace CalamityMod.NPCs.AquaticScourge
npc.LifeMaxNERB(73000, 85000, 10000000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
@@ -45,10 +45,6 @@ namespace CalamityMod.NPCs.AquaticScourge
npc.LifeMaxNERB(73000, 85000, 10000000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 12, 0, 0);
npc.behindTiles = true;
@@ -29,10 +29,6 @@ namespace CalamityMod.NPCs.AquaticScourge
npc.LifeMaxNERB(73000, 85000, 10000000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.AquaticScourge
aiType = -1;
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -32,10 +32,6 @@ namespace CalamityMod.NPCs.AquaticScourge
npc.lifeMax = Main.hardMode ? 500 : 60;
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 0, 0, 80);
npc.behindTiles = true;
-4
View File
@@ -26,10 +26,6 @@ namespace CalamityMod.NPCs.AquaticScourge
aiType = -1;
npc.knockBackResist = 0f;
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
-4
View File
@@ -25,10 +25,6 @@ namespace CalamityMod.NPCs.AquaticScourge
npc.defense = 10;
npc.lifeMax = Main.hardMode ? 300 : 50;
npc.knockBackResist = 0.8f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.value = Item.buyPrice(0, 0, 0, 80);
npc.HitSound = SoundID.NPCHit1;
npc.DeathSound = SoundID.NPCDeath15;
-1
View File
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.Astral
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
banner = npc.type;
bannerItem = ModContent.ItemType<AriesBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 85;
-1
View File
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.Astral
npc.DeathSound = SoundID.NPCDeath14;
banner = npc.type;
bannerItem = ModContent.ItemType<AstralProbeBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 30;
-1
View File
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.Astral
animationType = NPCID.BlueSlime;
banner = npc.type;
bannerItem = ModContent.ItemType<AstralSlimeBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 65;
-3
View File
@@ -45,9 +45,6 @@ namespace CalamityMod.NPCs.Astral
animationType = NPCID.WallCreeper;
banner = npc.type;
bannerItem = ModContent.ItemType<AstralachneaBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
npc.buffImmune[BuffID.Poisoned] = true;
npc.buffImmune[BuffID.Confused] = false;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 90;
-3
View File
@@ -42,13 +42,10 @@ namespace CalamityMod.NPCs.Astral
npc.knockBackResist = 0f;
npc.noGravity = true;
npc.value = Item.buyPrice(0, 0, 20, 0);
npc.buffImmune[BuffID.Poisoned] = true;
npc.buffImmune[BuffID.Confused] = false;
npc.timeLeft = NPC.activeTime * 2;
animationType = NPCID.BlackRecluseWall;
banner = ModContent.NPCType<AstralachneaGround>();
bannerItem = ModContent.ItemType<AstralachneaBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 90;
-1
View File
@@ -115,7 +115,6 @@ namespace CalamityMod.NPCs.Astral
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AtlasDeath");
banner = npc.type;
bannerItem = ModContent.ItemType<AtlasBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 100;
-1
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.Astral
npc.aiStyle = -1;
banner = npc.type;
bannerItem = ModContent.ItemType<BigSightseerBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 85;
-1
View File
@@ -41,7 +41,6 @@ namespace CalamityMod.NPCs.Astral
animationType = NPCID.SandShark;
banner = npc.type;
bannerItem = ModContent.ItemType<FusionFeederBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 65;
-1
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.Astral
npc.value = Item.buyPrice(0, 0, 15, 0);
banner = npc.type;
bannerItem = ModContent.ItemType<HadarianBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 80;
-1
View File
@@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.Astral
npc.value = Item.buyPrice(0, 0, 15, 0);
banner = npc.type;
bannerItem = ModContent.ItemType<HiveBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 90;
-1
View File
@@ -33,7 +33,6 @@ namespace CalamityMod.NPCs.Astral
npc.knockBackResist = 0.5f;
npc.noGravity = true;
npc.value = Item.buyPrice(0, 0, 5, 0);
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 50;
-1
View File
@@ -41,7 +41,6 @@ namespace CalamityMod.NPCs.Astral
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
banner = npc.type;
bannerItem = ModContent.ItemType<MantisBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 85;
-1
View File
@@ -48,7 +48,6 @@ namespace CalamityMod.NPCs.Astral
npc.aiStyle = -1;
banner = npc.type;
bannerItem = ModContent.ItemType<NovaBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 75;
-1
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.Astral
npc.aiStyle = -1;
banner = npc.type;
bannerItem = ModContent.ItemType<SmallSightseerBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 58;
-2
View File
@@ -41,8 +41,6 @@ namespace CalamityMod.NPCs.Astral
animationType = NPCID.GiantFlyingFox;
banner = npc.type;
bannerItem = ModContent.ItemType<StellarCulexBanner>();
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = true;
npc.buffImmune[BuffID.Confused] = false;
if (CalamityWorld.downedAstrageldon)
{
npc.damage = 90;
-27
View File
@@ -53,33 +53,6 @@ namespace CalamityMod.NPCs.AstrumAureus
aiType = -1;
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 15, 0, 0);
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[ModContent.BuffType<MarkedforDeath>()] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BoneJavelin] = false;
npc.buffImmune[BuffID.Venom] = false;
npc.buffImmune[BuffID.SoulDrain] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = false;
npc.boss = true;
npc.DeathSound = SoundID.NPCDeath14;
Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic");
-4
View File
@@ -35,10 +35,6 @@ namespace CalamityMod.NPCs.AstrumAureus
npc.lifeMax = 30000;
}
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.noGravity = true;
npc.noTileCollide = true;
npc.canGhostHeal = false;
@@ -44,10 +44,6 @@ namespace CalamityMod.NPCs.AstrumDeus
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstrumDeusDeath");
npc.netAlways = true;
npc.boss = true;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic");
if (calamityModMusic != null)
music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumDeus");
@@ -54,10 +54,6 @@ namespace CalamityMod.NPCs.AstrumDeus
npc.boss = true;
npc.value = Item.buyPrice(0, 20, 0, 0);
npc.alpha = 255;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.behindTiles = true;
npc.noGravity = true;
npc.noTileCollide = true;
@@ -44,10 +44,6 @@ namespace CalamityMod.NPCs.AstrumDeus
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstrumDeusDeath");
npc.netAlways = true;
npc.boss = true;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic");
if (calamityModMusic != null)
music = calamityModMusic.GetSoundSlot(SoundType.Music, "Sounds/Music/AstrumDeus");
-28
View File
@@ -36,34 +36,6 @@ namespace CalamityMod.NPCs.BrimstoneElemental
npc.DR_NERD(normalDR);
npc.lifeMax = 2000;
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[ModContent.BuffType<MarkedforDeath>()] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BoneJavelin] = false;
npc.buffImmune[BuffID.SoulDrain] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = false;
npc.noGravity = true;
npc.noTileCollide = true;
npc.canGhostHeal = false;
@@ -52,34 +52,6 @@ namespace CalamityMod.NPCs.BrimstoneElemental
npc.knockBackResist = 0f;
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[ModContent.BuffType<MarkedforDeath>()] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BoneJavelin] = false;
npc.buffImmune[BuffID.SoulDrain] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = false;
npc.boss = true;
npc.noGravity = true;
npc.noTileCollide = true;
-22
View File
@@ -51,28 +51,6 @@ namespace CalamityMod.NPCs.Bumblebirb
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[ModContent.BuffType<ExoFreeze>()] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.boss = true;
Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic");
if (calamityModMusic != null)
-22
View File
@@ -32,28 +32,6 @@ namespace CalamityMod.NPCs.Bumblebirb
npc.defense = 20;
npc.LifeMaxNERB(9000, 11250, 50000); // Old HP - 12000, 15000
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[ModContent.BuffType<ExoFreeze>()] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.lavaImmune = true;
npc.noGravity = true;
npc.canGhostHeal = false;
-28
View File
@@ -42,34 +42,6 @@ namespace CalamityMod.NPCs.Calamitas
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[ModContent.BuffType<MarkedforDeath>()] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BoneJavelin] = false;
npc.buffImmune[BuffID.SoulDrain] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = false;
npc.boss = true;
npc.noGravity = true;
npc.noTileCollide = true;
-28
View File
@@ -42,34 +42,6 @@ namespace CalamityMod.NPCs.Calamitas
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[ModContent.BuffType<MarkedforDeath>()] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BoneJavelin] = false;
npc.buffImmune[BuffID.SoulDrain] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = false;
npc.noGravity = true;
npc.noTileCollide = true;
npc.HitSound = SoundID.NPCHit4;
-28
View File
@@ -44,34 +44,6 @@ namespace CalamityMod.NPCs.Calamitas
npc.knockBackResist = 0f;
npc.noGravity = true;
npc.noTileCollide = true;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[ModContent.BuffType<MarkedforDeath>()] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BoneJavelin] = false;
npc.buffImmune[BuffID.SoulDrain] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = false;
npc.HitSound = SoundID.NPCHit4;
npc.DeathSound = SoundID.NPCDeath14;
Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic");
-28
View File
@@ -56,34 +56,6 @@ namespace CalamityMod.NPCs.Calamitas
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[ModContent.BuffType<MarkedforDeath>()] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BoneJavelin] = false;
npc.buffImmune[BuffID.SoulDrain] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = false;
npc.boss = true;
npc.noGravity = true;
npc.noTileCollide = true;
-1
View File
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.Calamitas
npc.canGhostHeal = false;
npc.HitSound = SoundID.NPCHit4;
npc.DeathSound = SoundID.NPCDeath14;
npc.buffImmune[BuffID.OnFire] = true;
}
public override bool PreAI()
-28
View File
@@ -42,34 +42,6 @@ namespace CalamityMod.NPCs.Calamitas
{
npc.lifeMax = 150000;
}
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.buffImmune[BuffID.Ichor] = false;
npc.buffImmune[ModContent.BuffType<MarkedforDeath>()] = false;
npc.buffImmune[BuffID.Frostburn] = false;
npc.buffImmune[BuffID.CursedInferno] = false;
npc.buffImmune[BuffID.Daybreak] = false;
npc.buffImmune[BuffID.BetsysCurse] = false;
npc.buffImmune[BuffID.StardustMinionBleed] = false;
npc.buffImmune[BuffID.DryadsWardDebuff] = false;
npc.buffImmune[BuffID.Oiled] = false;
npc.buffImmune[BuffID.BoneJavelin] = false;
npc.buffImmune[BuffID.SoulDrain] = false;
npc.buffImmune[ModContent.BuffType<AbyssalFlames>()] = false;
npc.buffImmune[ModContent.BuffType<AstralInfectionDebuff>()] = false;
npc.buffImmune[ModContent.BuffType<ArmorCrunch>()] = false;
npc.buffImmune[ModContent.BuffType<DemonFlames>()] = false;
npc.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = false;
npc.buffImmune[ModContent.BuffType<HolyFlames>()] = false;
npc.buffImmune[ModContent.BuffType<Nightwither>()] = false;
npc.buffImmune[ModContent.BuffType<Plague>()] = false;
npc.buffImmune[ModContent.BuffType<Shred>()] = false;
npc.buffImmune[ModContent.BuffType<WarCleave>()] = false;
npc.buffImmune[ModContent.BuffType<WhisperingDeath>()] = false;
npc.buffImmune[ModContent.BuffType<SilvaStun>()] = false;
npc.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = false;
npc.HitSound = SoundID.NPCHit4;
npc.DeathSound = SoundID.NPCDeath14;
}
+1 -1
View File
@@ -333,7 +333,7 @@ namespace CalamityMod.NPCs
}
}
float maxDistance = calamityGlobalNPC.newAI[0] == 1f ? 8000f : 4000f;
float maxDistance = calamityGlobalNPC.newAI[0] == 1f ? 12800f : 6400f;
if (player.dead || Vector2.Distance(npc.Center, player.Center) > maxDistance)
{
calamityGlobalNPC.newAI[1] = 1f;
+63 -18
View File
@@ -580,9 +580,8 @@ namespace CalamityMod.NPCs
int projectileCount = 0;
for (int j = 0; j < Main.maxProjectiles; j++)
{
if (Main.projectile[j].active &&
(Main.projectile[j].type == ProjectileType<BonebreakerProjectile>() &&
Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == npc.whoAmI))
if (Main.projectile[j].active && Main.projectile[j].type == ProjectileType<BonebreakerProjectile>() &&
Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == npc.whoAmI)
{
projectileCount++;
}
@@ -604,8 +603,7 @@ namespace CalamityMod.NPCs
int projectileCount = 0;
for (int j = 0; j < Main.maxProjectiles; j++)
{
if (Main.projectile[j].active &&
(Main.projectile[j].type == ProjectileType<Shellfish>()) &&
if (Main.projectile[j].active && Main.projectile[j].type == ProjectileType<Shellfish>() &&
Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == npc.whoAmI)
{
projectileCount++;
@@ -838,6 +836,10 @@ namespace CalamityMod.NPCs
#region Debuff Immunities
private void DebuffImmunities(NPC npc)
{
// Check out NPCDebuffs.cs as this function sets the debuff immunities for all enemies in Cal bar the ones described below.
npc.SetNPCDebuffImmunities();
// All bosses and several enemies are automatically immune to most of the movement debuffs. Silva Stun and Exo Freeze are excluded, but will not affect a boss if it has the debuff regardless.
if (CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss)
{
npc.buffImmune[BuffType<GlacialState>()] = true;
@@ -850,6 +852,20 @@ namespace CalamityMod.NPCs
npc.buffImmune[BuffID.Slow] = true;
}
// All enemies are automatically immune to the Confused debuff, so we must specifically set them not to be.
// Extra note: Clams are not in this list as they initially immune to Confused, but are no longer immune once aggro'd. This is set in their AI().
if (CalamityLists.confusionEnemyList.Contains(npc.type))
{
npc.buffImmune[BuffID.Confused] = false;
}
// Any enemy not immune to Venom shouldn't be immune to Sulphuric Poisoning as it is an upgrade.
if (!npc.buffImmune[BuffID.Venom])
{
npc.buffImmune[BuffType<SulphuricPoisoning>()] = false;
}
// Sets certain vanilla NPCs and all town NPCs to be immune to all debuffs.
if (DestroyerIDs.Contains(npc.type) || npc.type == NPCID.SkeletronHead || (EaterofWorldsIDs.Contains(npc.type) && BossRushEvent.BossRushActive) || npc.type == NPCID.DD2EterniaCrystal || npc.townNPC || npc.type == NPCID.SpikeBall || npc.type == NPCID.BlazingWheel)
{
for (int k = 0; k < npc.buffImmune.Length; k++)
@@ -866,14 +882,16 @@ namespace CalamityMod.NPCs
}
}
if (!npc.buffImmune[BuffID.Venom])
{
npc.buffImmune[BuffType<SulphuricPoisoning>()] = false;
}
// Most bosses and boss servants are not immune to Kami Flu.
if (YanmeisKnifeSlash.CanRecieveCoolEffectsFrom(npc))
npc.buffImmune[BuffType<KamiDebuff>()] = false;
// Nothing should be immune to Enraged.
npc.buffImmune[BuffType<Enraged>()] = false;
// Extra Notes:
// Shellfish minions set debuff immunity to Shellfish Claps on enemy hits, so most things are technically not immune.
// The Spiteful Candle sets the debuff immunity of Spite to all nearby enemies in the tile file for an enemy with less than 99% DR.
}
#endregion
@@ -1004,7 +1022,8 @@ namespace CalamityMod.NPCs
}
else if (npc.type == NPCID.GolemHead)
{
npc.lifeMax = (int)(npc.lifeMax * 1.5);
npc.width = npc.height = 100;
npc.lifeMax = (int)(npc.lifeMax * 1.5);
}
else if (npc.type == NPCID.GolemHeadFree)
{
@@ -3009,7 +3028,7 @@ namespace CalamityMod.NPCs
npc.velocity = Vector2.Clamp(npc.velocity, new Vector2(-KamiDebuff.MaxNPCSpeed), new Vector2(KamiDebuff.MaxNPCSpeed));
}
if (!CalamityPlayer.areThereAnyDamnBosses)
if (!CalamityPlayer.areThereAnyDamnBosses && !CalamityLists.enemyImmunityList.Contains(npc.type))
{
if (pearlAura > 0)
npc.velocity *= 0.9f;
@@ -3505,8 +3524,8 @@ namespace CalamityMod.NPCs
// Boosts
if (CalamityWorld.downedDoG && (Main.pumpkinMoon || Main.snowMoon || Main.eclipse))
{
spawnRate = (int)(spawnRate * 0.75);
maxSpawns = (int)(maxSpawns * 2f);
spawnRate = (int)(spawnRate * 0.5);
maxSpawns = (int)(maxSpawns * 5f);
}
if (player.Calamity().clamity)
@@ -4302,7 +4321,7 @@ namespace CalamityMod.NPCs
{
if (CalamityWorld.revenge || BossRushEvent.BossRushActive)
{
if (npc.type == NPCID.GolemHeadFree)
if (npc.type == NPCID.GolemHeadFree || npc.type == NPCID.GolemHead)
{
Texture2D npcTexture = Main.npcTexture[npc.type];
int frameHeight = npcTexture.Height / Main.npcFrameCount[npc.type];
@@ -4311,10 +4330,36 @@ namespace CalamityMod.NPCs
if (npc.spriteDirection == 1)
spriteEffects = SpriteEffects.FlipHorizontally;
if (npc.localAI[0] == 1f)
npc.frame.Y = frameHeight;
if (npc.type == NPCID.GolemHead)
{
if (npc.ai[0] == 0f)
{
if (npc.localAI[0] == 1f)
npc.frame.Y = frameHeight;
else
npc.frame.Y = 0;
}
else if (npc.ai[0] == 1f)
{
if (npc.localAI[0] == 1f)
npc.frame.Y = frameHeight;
else
npc.frame.Y = 0;
if (npc.localAI[1] == -1f)
npc.frame.Y += frameHeight * 4;
if (npc.localAI[1] == 1f)
npc.frame.Y += frameHeight * 2;
}
}
else
npc.frame.Y = 0;
{
if (npc.localAI[0] == 1f)
npc.frame.Y = frameHeight;
else
npc.frame.Y = 0;
}
spriteBatch.Draw(npcTexture, npc.Center - Main.screenPosition + new Vector2(0, npc.gfxOffY), npc.frame, npc.GetAlpha(drawColor), npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0);
}
-4
View File
@@ -52,10 +52,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.noGravity = true;
npc.noTileCollide = true;
npc.boss = true;
-4
View File
@@ -47,10 +47,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
npc.noTileCollide = true;
npc.canGhostHeal = false;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
}
npc.HitSound = SoundID.NPCHit53;
npc.DeathSound = SoundID.NPCDeath44;
}
Loaded 100 of 250 files, more files were not shown because too many files have changed in this diff. Show more