This commit is contained in:
Shucks committed 2019-10-08 22:14:00 -05:00
commit 2f70ba9fe9
78 files changed
+123 -95

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 32;
npc.height = 32;
npc.defense = 20;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 32;
npc.height = 32;
npc.defense = 15;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
+1
View File
@@ -34,6 +34,7 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 100;
npc.height = 90;
npc.defense = 10;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.aiStyle = -1;
aiType = -1;
npc.lifeMax = CalamityWorld.revenge ? 85000 : 73000;
+1
View File
@@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 30;
npc.height = 50;
npc.defense = 25;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
+2 -1
View File
@@ -25,7 +25,8 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 80; //324
npc.height = 40; //216
npc.defense = 50;
npc.lifeMax = 10000;
npc.GetCalamityNPC().RevPlusDR(0.25f);
npc.lifeMax = 10000;
npc.knockBackResist = 0f;
aiType = -1;
npc.noGravity = true;
+1
View File
@@ -28,6 +28,7 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 180;
npc.height = 180;
npc.defense = 50;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = 220000;
npc.aiStyle = -1;
aiType = -1;
+2 -1
View File
@@ -31,7 +31,8 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 126; //36
npc.height = 76; //20
npc.defense = 300;
npc.lifeMax = 160000;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 160000;
npc.aiStyle = -1;
aiType = -1;
for (int k = 0; k < npc.buffImmune.Length; k++)
+1
View File
@@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 50;
npc.height = 36;
npc.defense = 30;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 35;
npc.knockBackResist = 0.25f;
npc.aiStyle = 3;
+1
View File
@@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 40;
npc.height = 24;
npc.defense = 10;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 30;
npc.aiStyle = 3;
aiType = 67;
+1
View File
@@ -26,6 +26,7 @@ namespace CalamityMod.NPCs.AbyssNPCs
npc.width = 180;
npc.height = 90;
npc.defense = 50;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = 165000;
npc.aiStyle = -1;
aiType = -1;
+2 -1
View File
@@ -30,7 +30,8 @@ namespace CalamityMod.NPCs.Astrageldon
npc.width = 400;
npc.height = 280;
npc.defense = 50;
npc.LifeMaxNERD(96000, NPC.downedMoonlord ? 440000 : 122000, 187000, 1400000, 1600000);
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.LifeMaxNERD(96000, NPC.downedMoonlord ? 440000 : 122000, 187000, 1400000, 1600000);
npc.aiStyle = -1;
aiType = -1;
npc.knockBackResist = 0f;
+1
View File
@@ -28,6 +28,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.height = 54;
npc.aiStyle = 41;
npc.defense = 14;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 300;
npc.knockBackResist = 0.6f;
npc.value = Item.buyPrice(0, 0, 10, 0);
+1
View File
@@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.width = 30; //324
npc.height = 30; //216
npc.defense = 10;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 50;
npc.aiStyle = -1;
aiType = -1;
@@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.aiStyle = 3;
npc.damage = 55;
npc.defense = 20;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 500;
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
npc.knockBackResist = 0.38f;
+1
View File
@@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.aiStyle = -1;
npc.damage = 55;
npc.defense = 20;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 500;
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
npc.knockBackResist = 0f;
+1
View File
@@ -103,6 +103,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.height = 88;
npc.damage = 70;
npc.defense = 40;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 1200;
npc.knockBackResist = 0.08f;
npc.value = Item.buyPrice(0, 1, 0, 0);
+1
View File
@@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.height = 56;
npc.damage = 50;
npc.defense = 20;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 430;
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
npc.noGravity = true;
+1
View File
@@ -33,6 +33,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.aiStyle = 103;
npc.lifeMax = 400;
npc.defense = 12;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.value = Item.buyPrice(0, 0, 20, 0);
npc.knockBackResist = 0.8f;
npc.behindTiles = true;
+1
View File
@@ -31,6 +31,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.aiStyle = -1;
npc.damage = 50;
npc.defense = 8;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 330;
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
npc.knockBackResist = 0.75f;
+2 -1
View File
@@ -30,7 +30,8 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.aiStyle = -1;
npc.damage = 55;
npc.defense = 15;
npc.lifeMax = 470;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 470;
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 0, 15, 0);
+1
View File
@@ -29,6 +29,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.height = 58;
npc.aiStyle = -1;
npc.defense = 6;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 340;
npc.knockBackResist = 0.2f;
npc.value = Item.buyPrice(0, 0, 15, 0);
+1
View File
@@ -38,6 +38,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.height = 50;
npc.damage = 45;
npc.defense = 15;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 230;
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
npc.noGravity = true;
+1
View File
@@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.height = 40;
npc.damage = 38;
npc.defense = 16;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 310;
npc.DeathSound = mod.GetLegacySoundSlot(SoundType.NPCKilled, "Sounds/NPCKilled/AstralEnemyDeath");
npc.noGravity = true;
+1
View File
@@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.AstralBiomeNPCs
npc.npcSlots = 0.5f; //needed?
npc.damage = 55;
npc.defense = 18;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.knockBackResist = 0.65f;
npc.lifeMax = 210;
npc.value = Item.buyPrice(0, 0, 10, 0);
+1
View File
@@ -25,6 +25,7 @@ namespace CalamityMod.NPCs.AstrumDeus
npc.width = 38;
npc.height = 44;
npc.defense = 40;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.LifeMaxNERD(12000, 18000, 29100, 360000, 420000);
double HPBoost = Config.BossHealthPercentageBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
+1
View File
@@ -34,6 +34,7 @@ namespace CalamityMod.NPCs.AstrumDeus
npc.width = 56;
npc.height = 56;
npc.defense = 20;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = CalamityWorld.revenge ? 18000 : 12000;
if (CalamityWorld.death)
{
+2 -1
View File
@@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.AstrumDeus
npc.width = 30;
npc.height = 30;
npc.defense = 30;
npc.lifeMax = 1400;
npc.GetCalamityNPC().RevPlusDR(0.2f);
npc.lifeMax = 1400;
if (CalamityWorld.bossRushActive)
{
npc.lifeMax = 120000;
+2 -1
View File
@@ -21,7 +21,8 @@ namespace CalamityMod.NPCs.AstrumDeus
npc.width = 52;
npc.height = 68;
npc.defense = 60;
npc.lifeMax = CalamityWorld.revenge ? 18000 : 12000;
npc.GetCalamityNPC().RevPlusDR(0.35f);
npc.lifeMax = CalamityWorld.revenge ? 18000 : 12000;
if (CalamityWorld.death)
{
npc.lifeMax = 29100;
+1
View File
@@ -25,6 +25,7 @@ namespace CalamityMod.NPCs.Calamitas
npc.width = 120;
npc.height = 120;
npc.defense = 15;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.value = 0f;
npc.lifeMax = CalamityWorld.revenge ? 51750 : 37500;
if (CalamityWorld.death)
+1
View File
@@ -27,6 +27,7 @@ namespace CalamityMod.NPCs.Calamitas
npc.width = 120;
npc.height = 120;
npc.defense = 10;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = CalamityWorld.revenge ? 13200 : 9000;
if (CalamityWorld.death)
{
+1
View File
@@ -27,6 +27,7 @@ namespace CalamityMod.NPCs.Calamitas
npc.width = 120;
npc.height = 120;
npc.defense = 10;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = CalamityWorld.revenge ? 11025 : 7500;
if (CalamityWorld.death)
{
+1
View File
@@ -31,6 +31,7 @@ namespace CalamityMod.NPCs.Calamitas
npc.width = 120;
npc.height = 120;
npc.defense = 25;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = CalamityWorld.revenge ? 38812 : 28125;
if (CalamityWorld.death)
{
+1
View File
@@ -29,6 +29,7 @@ namespace CalamityMod.NPCs.Calamitas
npc.canGhostHeal = false;
npc.damage = 40;
npc.defense = 10;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 2500;
if (CalamityWorld.bossRushActive)
{
+2 -1
View File
@@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs
npc.width = 72; //324
npc.height = 72; //216
npc.defense = 38;
npc.lifeMax = 120;
npc.GetCalamityNPC().RevPlusDR(0.35f);
npc.lifeMax = 120;
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 0, 5, 0);
npc.HitSound = SoundID.NPCHit41;
+1
View File
@@ -24,6 +24,7 @@ namespace CalamityMod.NPCs.CalamityBiomeNPCs
npc.width = 60; //324
npc.height = 40; //216
npc.defense = 40;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 60;
npc.knockBackResist = 0.65f;
npc.value = Item.buyPrice(0, 0, 5, 0);
+18 -67
View File
@@ -503,6 +503,14 @@ namespace CalamityMod.NPCs
newAI[m] = 0f;
}
// Apply DR to vanilla NPCs. No vanilla NPCs have DR except in Rev+.
// This also applies DR to other mods' NPCs who have set up their NPCs to have DR in Rev+.
if (CalamityWorld.revenge)
{
CalamityMod.DRValues.TryGetValue(npc.type, out float revDR);
DR = revDR;
}
if (npc.boss && CalamityWorld.revenge)
{
if (npc.type != mod.NPCType("HiveMindP2") && npc.type != mod.NPCType("Leviathan") && npc.type != mod.NPCType("StormWeaverHeadNaked") &&
@@ -826,75 +834,18 @@ namespace CalamityMod.NPCs
{
npc.canGhostHeal = false;
}
RevengeanceDamageReduction(npc, mod);
}
#endregion
#region Revengeance Damage Reduction
private void RevengeanceDamageReduction(NPC npc, Mod mod)
{
if (npc.type == mod.NPCType("Cnidrion") || npc.type == mod.NPCType("DesertScourgeBody") || npc.type == mod.NPCType("ColossalSquid") ||
npc.type == mod.NPCType("Siren") || npc.type == mod.NPCType("ThiccWaifu") || npc.type == mod.NPCType("ProfanedGuardianBoss3") ||
npc.type == mod.NPCType("ScornEater") || npc.type == mod.NPCType("AquaticScourgeBody") || npc.type == mod.NPCType("AquaticScourgeBodyAlt") ||
npc.type == mod.NPCType("Mauler") || npc.type == mod.NPCType("EutrophicRay"))
{
DR = 0.05f;
}
else if (npc.type == mod.NPCType("AstrumDeusBody") || npc.type == mod.NPCType("SoulSeeker") || npc.type == mod.NPCType("DesertScourgeTail") ||
npc.type == mod.NPCType("Horse") || npc.type == mod.NPCType("ProfanedEnergyBody") || npc.type == mod.NPCType("ScavengerClawLeft") ||
npc.type == mod.NPCType("ScavengerClawRight") || npc.type == mod.NPCType("ScavengerHead") || npc.type == mod.NPCType("MantisShrimp") ||
npc.type == mod.NPCType("PhantomDebris") || npc.type == mod.NPCType("AstrumDeusHead") || npc.type == mod.NPCType("AquaticScourgeHead") ||
npc.type == mod.NPCType("Cryon") || npc.type == mod.NPCType("Cryogen"))
{
DR = 0.1f;
}
else if (npc.type == mod.NPCType("ArmoredDiggerHead") || npc.type == mod.NPCType("AstralProbe") || npc.type == mod.NPCType("Calamitas") ||
npc.type == mod.NPCType("CalamitasRun") || npc.type == mod.NPCType("CalamitasRun2") || npc.type == mod.NPCType("CalamitasRun3") ||
npc.type == mod.NPCType("SoulSlurper") || npc.type == mod.NPCType("ProvSpawnHealer") || npc.type == mod.NPCType("Gnasher") ||
npc.type == mod.NPCType("ScavengerLegLeft") || npc.type == mod.NPCType("ScavengerLegRight") || npc.type == mod.NPCType("ShockstormShuttle") ||
npc.type == mod.NPCType("Reaper") || npc.type == mod.NPCType("OverloadedSoldier") || npc.type == mod.NPCType("AquaticScourgeTail") ||
npc.type == mod.NPCType("EidolonWyrmHead") || npc.type == mod.NPCType("Aries") || npc.type == mod.NPCType("AstralachneaGround") ||
npc.type == mod.NPCType("AstralachneaWall") || npc.type == mod.NPCType("Astrageldon") || npc.type == mod.NPCType("Atlas") ||
npc.type == mod.NPCType("BigSightseer") || npc.type == mod.NPCType("FusionFeeder") || npc.type == mod.NPCType("Hadarian") ||
npc.type == mod.NPCType("Hive") || npc.type == mod.NPCType("Mantis") || npc.type == mod.NPCType("Nova") || npc.type == mod.NPCType("SmallSightseer") ||
npc.type == mod.NPCType("StellarCulex"))
{
DR = 0.15f;
}
else if (npc.type == mod.NPCType("AstrumDeusProbe3") || npc.type == mod.NPCType("PlaguebringerShade") || npc.type == mod.NPCType("BlindedAngler"))
{
DR = 0.2f;
}
else if (npc.type == mod.NPCType("PlaguebringerGoliath") || npc.type == mod.NPCType("ProfanedGuardianBoss2") || npc.type == mod.NPCType("SandTortoise") ||
npc.type == mod.NPCType("StasisProbe") || npc.type == mod.NPCType("BobbitWormHead") || npc.type == mod.NPCType("GreatSandShark") ||
npc.type == mod.NPCType("Clam") || npc.type == mod.NPCType("PrismTurtle"))
{
DR = 0.25f;
}
else if (npc.type == mod.NPCType("ProvSpawnOffense") || npc.type == mod.NPCType("GiantClam"))
{
DR = 0.3f;
}
else if (npc.type == mod.NPCType("ArmoredDiggerBody") || npc.type == mod.NPCType("AstrumDeusTail") || npc.type == mod.NPCType("DespairStone") ||
npc.type == mod.NPCType("SoulSeekerSupreme") || npc.type == mod.NPCType("Leviathan"))
{
DR = 0.35f;
}
else if (npc.type == mod.NPCType("CryogenIce") || npc.type == mod.NPCType("ProfanedGuardianBoss") || npc.type == mod.NPCType("ProvSpawnDefense") ||
npc.type == mod.NPCType("ScavengerBody"))
{
DR = 0.4f;
}
else if (npc.type == mod.NPCType("ArmoredDiggerTail"))
{
DR = 0.45f;
}
else if (npc.type == mod.NPCType("SirenIce"))
{
DR = 0.5f;
}
}
/// <summary>
/// Sets the DR of this NPC only if Revengeance Mode is enabled. Otherwise sets DR to zero.
/// </summary>
/// <param name="dr">The DR to set, assuming Rev+ difficulty.</param>
/// <returns>Whether Revengeance Mode is currently enabled.</returns>
public bool RevPlusDR(float dr)
{
DR = CalamityWorld.revenge ? dr : 0f;
return CalamityWorld.revenge;
}
#endregion
#region Other Stat Changes
+1
View File
@@ -31,6 +31,7 @@ namespace CalamityMod.NPCs.Cryogen
npc.width = 80;
npc.height = 80;
npc.defense = 12;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = CalamityWorld.revenge ? 26300 : 17900;
if (CalamityWorld.death)
{
+2 -1
View File
@@ -24,7 +24,8 @@ namespace CalamityMod.NPCs.Cryogen
npc.width = 240;
npc.height = 240;
npc.defense = 0;
npc.lifeMax = 1400;
npc.GetCalamityNPC().RevPlusDR(0.4f);
npc.lifeMax = 1400;
if (CalamityWorld.bossRushActive)
{
npc.lifeMax = 100000;
+1
View File
@@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.DesertScourge
npc.width = 32;
npc.height = 36;
npc.defense = 6;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = CalamityWorld.revenge ? 2650 : 2300;
if (CalamityWorld.death)
{
+1
View File
@@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.DesertScourge
npc.width = 32; //324
npc.height = 48; //216
npc.defense = 9;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = CalamityWorld.revenge ? 2650 : 2300;
if (CalamityWorld.death)
{
+2 -1
View File
@@ -29,7 +29,8 @@ namespace CalamityMod.NPCs.GreatSandShark
npc.width = 300;
npc.height = 120;
npc.defense = 60;
npc.lifeMax = CalamityWorld.revenge ? 11000 : 8000;
npc.GetCalamityNPC().RevPlusDR(0.25f);
npc.lifeMax = CalamityWorld.revenge ? 11000 : 8000;
if (CalamityWorld.death)
{
npc.lifeMax = 16000;
+2 -1
View File
@@ -28,7 +28,8 @@ namespace CalamityMod.NPCs.Leviathan
npc.width = 850;
npc.height = 450;
npc.defense = 40;
npc.lifeMax = CalamityWorld.revenge ? 90700 : 69000;
npc.GetCalamityNPC().RevPlusDR(0.35f);
npc.lifeMax = CalamityWorld.revenge ? 90700 : 69000;
if (CalamityWorld.death)
{
npc.lifeMax = 189750;
+1
View File
@@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.Leviathan
npc.width = 100;
npc.height = 100;
npc.defense = 20;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = CalamityWorld.revenge ? 41600 : 27400;
if (CalamityWorld.death)
{
+2 -1
View File
@@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.Leviathan
npc.width = 100;
npc.height = 100;
npc.defense = 10;
npc.lifeMax = 650;
npc.GetCalamityNPC().RevPlusDR(0.5f);
npc.lifeMax = 650;
if (CalamityWorld.bossRushActive)
{
npc.lifeMax = 400000;
+2 -1
View File
@@ -19,7 +19,8 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 38;
npc.height = 38;
npc.defense = 30;
npc.lifeMax = 20000;
npc.GetCalamityNPC().RevPlusDR(0.35f);
npc.lifeMax = 20000;
npc.knockBackResist = 0f;
npc.aiStyle = -1;
aiType = -1;
+1
View File
@@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 54;
npc.height = 54;
npc.defense = 15;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 20000;
npc.knockBackResist = 0f;
npc.aiStyle = -1;
+2 -1
View File
@@ -19,7 +19,8 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 34;
npc.height = 34;
npc.defense = 45;
npc.lifeMax = 20000;
npc.GetCalamityNPC().RevPlusDR(0.45f);
npc.lifeMax = 20000;
npc.knockBackResist = 0f;
npc.aiStyle = -1;
aiType = -1;
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 160;
npc.height = 80;
npc.defense = 6;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = 400;
npc.knockBackResist = 0.05f;
aiType = -1;
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 50;
npc.height = 64;
npc.defense = 10;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 300;
npc.knockBackResist = 0f;
npc.value = Item.buyPrice(0, 0, 5, 0);
+1
View File
@@ -26,6 +26,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 230;
npc.height = 230;
npc.defense = 20;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 3800;
npc.aiStyle = -1;
aiType = -1;
+2 -1
View File
@@ -22,7 +22,8 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 18;
npc.height = 40;
npc.defense = 18;
npc.lifeMax = 90;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 90;
npc.knockBackResist = 0.5f;
animationType = 77;
npc.value = Item.buyPrice(0, 0, 2, 0);
+1
View File
@@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 44;
npc.height = 22;
npc.defense = 20;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 80;
npc.aiStyle = 3;
aiType = 67;
+1
View File
@@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 72;
npc.height = 36;
npc.defense = 50;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 6000;
npc.knockBackResist = 0f;
aiType = -1;
+2 -1
View File
@@ -22,7 +22,8 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 46;
npc.height = 32;
npc.defense = 30;
npc.scale = 1.5f;
npc.GetCalamityNPC().RevPlusDR(0.25f);
npc.scale = 1.5f;
npc.lifeMax = 580;
npc.knockBackResist = 0.2f;
animationType = 153;
+1
View File
@@ -22,6 +22,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 160;
npc.height = 160;
npc.defense = 38;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = 16000;
npc.knockBackResist = 0f;
aiType = -1;
+1
View File
@@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 64;
npc.height = 38;
npc.defense = 15;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 150;
npc.aiStyle = -1;
aiType = -1;
+1
View File
@@ -24,6 +24,7 @@ namespace CalamityMod.NPCs.NormalNPCs
npc.width = 80;
npc.height = 140;
npc.defense = 18;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = 6000;
if (CalamityWorld.downedProvidence)
{
@@ -37,7 +37,8 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
npc.width = 198;
npc.height = 198;
npc.defense = 40;
npc.lifeMax = CalamityWorld.revenge ? 77275 : 58500;
npc.GetCalamityNPC().RevPlusDR(0.25f);
npc.lifeMax = CalamityWorld.revenge ? 77275 : 58500;
if (CalamityWorld.death)
{
npc.lifeMax = 110000;
@@ -22,7 +22,8 @@ namespace CalamityMod.NPCs.PlaguebringerShade
npc.width = 66;
npc.height = 66;
npc.defense = 30;
npc.lifeMax = CalamityWorld.death ? 4000 : 3000;
npc.GetCalamityNPC().RevPlusDR(0.2f);
npc.lifeMax = CalamityWorld.death ? 4000 : 3000;
npc.value = Item.buyPrice(0, 1, 50, 0);
if (CalamityWorld.bossRushActive)
{
@@ -30,7 +30,8 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss
npc.width = 100;
npc.height = 80;
npc.defense = 50;
npc.lifeMax = 102500;
npc.GetCalamityNPC().RevPlusDR(0.4f);
npc.lifeMax = 102500;
if (CalamityWorld.bossRushActive)
{
npc.lifeMax = CalamityWorld.death ? 600000 : 500000;
@@ -24,7 +24,8 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss
npc.width = 100;
npc.height = 80;
npc.defense = 50;
npc.lifeMax = 40000;
npc.GetCalamityNPC().RevPlusDR(0.25f);
npc.lifeMax = 40000;
if (CalamityWorld.bossRushActive)
{
npc.lifeMax = CalamityWorld.death ? 400000 : 300000;
@@ -24,6 +24,7 @@ namespace CalamityMod.NPCs.ProfanedGuardianBoss
npc.width = 100;
npc.height = 80;
npc.defense = 35;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = 25000;
if (CalamityWorld.bossRushActive)
{
+2 -1
View File
@@ -23,7 +23,8 @@ namespace CalamityMod.NPCs.Providence
npc.width = 100;
npc.height = 80;
npc.defense = 50;
npc.lifeMax = 25000;
npc.GetCalamityNPC().RevPlusDR(0.4f);
npc.lifeMax = 25000;
if (CalamityWorld.bossRushActive)
{
npc.lifeMax = CalamityWorld.death ? 360000 : 300000;
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.Providence
npc.width = 100;
npc.height = 80;
npc.defense = 35;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 40000;
if (CalamityWorld.bossRushActive)
{
+2 -1
View File
@@ -26,7 +26,8 @@ namespace CalamityMod.NPCs.Providence
npc.width = 100;
npc.height = 80;
npc.defense = 40;
npc.lifeMax = 42500;
npc.GetCalamityNPC().RevPlusDR(0.3f);
npc.lifeMax = 42500;
if (CalamityWorld.bossRushActive)
{
npc.lifeMax = CalamityWorld.death ? 500000 : 400000;
+2 -1
View File
@@ -28,7 +28,8 @@ namespace CalamityMod.NPCs.Scavenger
npc.width = 332;
npc.height = 214;
npc.defense = 55;
npc.lifeMax = CalamityWorld.revenge ? 53500 : 42700;
npc.GetCalamityNPC().RevPlusDR(0.4f);
npc.lifeMax = CalamityWorld.revenge ? 53500 : 42700;
if (CalamityWorld.death)
{
npc.lifeMax = 90000;
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.Scavenger
npc.width = 80;
npc.height = 40;
npc.defense = 40;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 11120;
npc.knockBackResist = 0f;
aiType = -1;
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.NPCs.Scavenger
npc.width = 80; //324
npc.height = 40; //216
npc.defense = 50;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 11120;
npc.knockBackResist = 0f;
aiType = -1;
+1
View File
@@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.Scavenger
npc.width = 80;
npc.height = 80;
npc.defense = 50;
npc.GetCalamityNPC().RevPlusDR(0.1f);
npc.lifeMax = 32705;
npc.knockBackResist = 0f;
aiType = -1;
+1
View File
@@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.Scavenger
npc.width = 60;
npc.height = 60;
npc.defense = 40;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 22010;
npc.knockBackResist = 0f;
aiType = -1;
+1
View File
@@ -21,6 +21,7 @@ namespace CalamityMod.NPCs.Scavenger
npc.width = 60;
npc.height = 60;
npc.defense = 40;
npc.GetCalamityNPC().RevPlusDR(0.15f);
npc.lifeMax = 21010;
npc.knockBackResist = 0f;
aiType = -1;
+2 -1
View File
@@ -22,7 +22,8 @@ namespace CalamityMod.NPCs.StormWeaver
npc.width = 30;
npc.height = 30;
npc.defense = 60;
npc.lifeMax = 1200;
npc.GetCalamityNPC().RevPlusDR(0.25f);
npc.lifeMax = 1200;
if (CalamityWorld.bossRushActive)
{
npc.lifeMax = 25000;
+2 -1
View File
@@ -26,7 +26,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs
npc.width = 56;
npc.height = 44;
npc.defense = 30;
npc.lifeMax = 750;
npc.GetCalamityNPC().RevPlusDR(0.2f);
npc.lifeMax = 750;
npc.aiStyle = -1;
aiType = -1;
npc.value = Item.buyPrice(0, 0, 40, 0);
+2 -1
View File
@@ -25,7 +25,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs
npc.width = 56;
npc.height = 38;
npc.defense = 9999;
npc.lifeMax = Main.hardMode ? 300 : 150;
npc.GetCalamityNPC().RevPlusDR(0.25f);
npc.lifeMax = Main.hardMode ? 300 : 150;
if (Main.expertMode)
{
npc.lifeMax *= 2;
+1
View File
@@ -24,6 +24,7 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs
npc.width = 116;
npc.height = 36;
npc.defense = Main.hardMode ? 15 : 5;
npc.GetCalamityNPC().RevPlusDR(0.05f);
npc.lifeMax = Main.hardMode ? 500 : 150;
npc.aiStyle = -1;
aiType = -1;
+2 -1
View File
@@ -34,7 +34,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs
npc.width = 160;
npc.height = 120;
npc.defense = 9999;
npc.lifeMax = Main.hardMode ? 7500 : 1250;
npc.GetCalamityNPC().RevPlusDR(0.3f);
npc.lifeMax = Main.hardMode ? 7500 : 1250;
for (int k = 0; k < npc.buffImmune.Length; k++)
{
npc.buffImmune[k] = true;
+2 -1
View File
@@ -27,7 +27,8 @@ namespace CalamityMod.NPCs.SunkenSeaNPCs
npc.width = 72;
npc.height = 58;
npc.defense = Main.hardMode ? 25 : 10;
npc.lifeMax = Main.hardMode ? 1000 : 350;
npc.GetCalamityNPC().RevPlusDR(0.25f);
npc.lifeMax = Main.hardMode ? 1000 : 350;
npc.aiStyle = -1;
aiType = -1;
npc.value = Main.hardMode ? Item.buyPrice(0, 0, 50, 0) : Item.buyPrice(0, 0, 5, 0);
+2 -1
View File
@@ -29,7 +29,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
npc.canGhostHeal = false;
npc.damage = 0;
npc.defense = 80;
npc.lifeMax = Main.expertMode ? 90000 : 50000;
npc.GetCalamityNPC().RevPlusDR(0.35f);
npc.lifeMax = Main.expertMode ? 90000 : 50000;
if (CalamityWorld.revenge)
{
npc.lifeMax = CalamityWorld.death ? 100000 : 170000;