diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 14baa46100..c7537ac171 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -119,7 +119,7 @@ namespace CalamityMod.CalPlayer public int reforgeTierSafety = 0; public bool finalTierAccessoryReforge = false; public int defenseDamage = 0; - public const int defaultTimeBeforeDefenseDamageRecovery = 5; + public const int defaultTimeBeforeDefenseDamageRecovery = 15; public int timeBeforeDefenseDamageRecovery = 0; public float rangedAmmoCost = 1f; public bool heldGaelsLastFrame = false; diff --git a/Items/Accessories/GloveOfRecklessness.cs b/Items/Accessories/GloveOfRecklessness.cs index da5a1dad35..08cc7e6070 100644 --- a/Items/Accessories/GloveOfRecklessness.cs +++ b/Items/Accessories/GloveOfRecklessness.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories { public override void SetStaticDefaults() { - DisplayName.SetDefault("Glove Of Recklessness"); + DisplayName.SetDefault("Glove of Recklessness"); Tooltip.SetDefault("Increases rogue attack speed by 12% but decreases damage by 10%\n" + "Adds inaccuracy to rogue weapons"); } diff --git a/Items/Accessories/GloveofPrecision.cs b/Items/Accessories/GloveofPrecision.cs index 3414163187..f0927f710c 100644 --- a/Items/Accessories/GloveofPrecision.cs +++ b/Items/Accessories/GloveofPrecision.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories { public override void SetStaticDefaults() { - DisplayName.SetDefault("Glove Of Precision"); + DisplayName.SetDefault("Glove of Precision"); Tooltip.SetDefault("Decreases rogue attack speed by 20% but increases damage and crit by 12% and velocity by 25%"); } diff --git a/Items/Accessories/ShatteredCommunity.cs b/Items/Accessories/ShatteredCommunity.cs index c0a0f9ac56..83484296cd 100644 --- a/Items/Accessories/ShatteredCommunity.cs +++ b/Items/Accessories/ShatteredCommunity.cs @@ -27,7 +27,8 @@ namespace CalamityMod.Items.Accessories private const long BaseLevelCost = 400000L; private static long LevelCost(int level) => BaseLevelCost * level; private static long CumulativeLevelCost(int level) => (BaseLevelCost / 2L) * level * (level + 1); - private const int MaxLevel = 60; + private const int MaxLevel = 25; // was 60. + private const float RageDamagePerLevel = 0.01f; // x1.35 --> x1.60 (used to be x1.95, jesus) internal int level = 0; internal long totalRageDamage = 0L; @@ -87,7 +88,7 @@ namespace CalamityMod.Items.Accessories player.moveSpeed += 0.2f; // Shattered Community provides a stacking +1% Rage Mode damage per level. - modPlayer.RageDamageBoost += level * 0.01; + modPlayer.RageDamageBoost += level * RageDamagePerLevel; } // Community and Shattered Community are mutually exclusive @@ -203,6 +204,9 @@ namespace CalamityMod.Items.Accessories public override void Load(TagCompound tag) { level = tag.GetInt("level"); + // Shattered Community's level cap was reduced from 60 to 25, so cap out ones that were made higher previously. + if (level > MaxLevel) + level = MaxLevel; totalRageDamage = tag.GetLong("totalDamage"); } diff --git a/Items/Weapons/Melee/BloodyEdge.cs b/Items/Weapons/Melee/BloodyEdge.cs index 6f058c8b8b..a2fcccb570 100644 --- a/Items/Weapons/Melee/BloodyEdge.cs +++ b/Items/Weapons/Melee/BloodyEdge.cs @@ -28,6 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee item.autoReuse = true; item.useTurn = true; item.height = 60; + item.scale = 1.25f; item.value = Item.buyPrice(0, 4, 0, 0); item.rare = ItemRarityID.Orange; } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 6089a1c4f2..d235572972 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1418,23 +1418,11 @@ namespace CalamityMod.NPCs { switch (npc.type) { - case NPCID.ArmedZombie: - case NPCID.ArmedZombieCenx: - case NPCID.ArmedZombieEskimo: - case NPCID.ArmedZombiePincussion: - case NPCID.ArmedZombieSlimed: - case NPCID.ArmedZombieSwamp: - case NPCID.ArmedZombieTwiggy: case NPCID.KingSlime: case NPCID.EyeofCthulhu: case NPCID.BrainofCthulhu: case NPCID.QueenBee: - case NPCID.EaterofSouls: - case NPCID.Crimera: - case NPCID.BigCrimera: - case NPCID.LittleCrimera: case NPCID.Corruptor: - case NPCID.DevourerHead: case NPCID.Crawdad: case NPCID.Crawdad2: case NPCID.ManEater: @@ -1456,7 +1444,6 @@ namespace CalamityMod.NPCs case NPCID.SandsharkCorrupt: case NPCID.SandsharkCrimson: case NPCID.SandsharkHallow: - case NPCID.GoblinWarrior: case NPCID.Butcher: case NPCID.DeadlySphere: case NPCID.Mothron: @@ -1500,6 +1487,7 @@ namespace CalamityMod.NPCs // Reduce prehardmode desert enemy stats pre-Desert Scourge case NPCID.WalkingAntlion: + if (!CalamityWorld.downedDesertScourge) { npc.lifeMax = (int)(npc.lifeMax * DesertEnemyStatMultiplier); @@ -1508,7 +1496,9 @@ namespace CalamityMod.NPCs npc.defense /= 2; npc.defDefense = npc.defense; } - canBreakPlayerDefense = true; + else + canBreakPlayerDefense = true; + break; case NPCID.Antlion: @@ -1531,6 +1521,7 @@ namespace CalamityMod.NPCs // Reduce Tomb Crawler stats case NPCID.TombCrawlerHead: + npc.lifeMax = (int)(npc.lifeMax * (CalamityWorld.downedDesertScourge ? 0.6 : 0.45)); if (!CalamityWorld.downedDesertScourge) { @@ -1538,11 +1529,14 @@ namespace CalamityMod.NPCs npc.defDamage = npc.damage; // Tomb Crawler Head has 0 defense so there is no need to reduce it } - canBreakPlayerDefense = true; + else + canBreakPlayerDefense = true; + break; case NPCID.TombCrawlerBody: case NPCID.TombCrawlerTail: + npc.lifeMax = (int)(npc.lifeMax * (CalamityWorld.downedDesertScourge ? 0.6 : 0.45)); if (!CalamityWorld.downedDesertScourge) { @@ -1551,6 +1545,7 @@ namespace CalamityMod.NPCs npc.defense /= 2; npc.defDefense = npc.defense; } + break; // Fix Sharkron hitboxes diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 60f4f7d943..576bb99bc2 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs // Do not provide free hearts for certain boss NPCs in Rev+. if ((CalamityWorld.revenge || CalamityWorld.malice) && CalamityLists.heartDropBlockList.Contains(npc.type) && CalamityPlayer.areThereAnyDamnBosses) - DropHelper.BlockDrops(ItemID.Heart); + return false; // // Ozzatron 17FEB2021: A NOTE about PreNPCLoot vs NPCLoot diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index fa69ddaaf4..aa656921ef 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -141,19 +141,19 @@ namespace CalamityMod.NPCs.DesertScourge bool lungeUpward = burrow && npc.Calamity().newAI[1] == 1f; bool quickFall = npc.Calamity().newAI[1] == 2f; - float speed = 0.12f; - float turnSpeed = 0.08f; + float speed = 0.09f; + float turnSpeed = 0.06f; if (expertMode) { - float velocityScale = death ? 0.15f : 0.075f; + float velocityScale = death ? 0.12f : 0.06f; speed += velocityScale * (1f - lifeRatio); - float accelerationScale = death ? 0.09f : 0.06f; + float accelerationScale = death ? 0.075f : 0.05f; turnSpeed += accelerationScale * (1f - lifeRatio); } - speed += 0.08f * enrageScale; - turnSpeed += 0.04f * enrageScale; + speed += 0.12f * enrageScale; + turnSpeed += 0.06f * enrageScale; if (lungeUpward) { diff --git a/NPCs/Perforator/PerforatorHeadLarge.cs b/NPCs/Perforator/PerforatorHeadLarge.cs index 4d64da3159..ac1f66667d 100644 --- a/NPCs/Perforator/PerforatorHeadLarge.cs +++ b/NPCs/Perforator/PerforatorHeadLarge.cs @@ -107,7 +107,7 @@ namespace CalamityMod.NPCs.Perforator if (revenge || lifeRatio < (expertMode ? 0.75f : 0.5f)) npc.Calamity().newAI[0] += 1f; - float burrowTimeGateValue = death ? 210f : 270f; + float burrowTimeGateValue = death ? 480f : 600f; bool burrow = npc.Calamity().newAI[0] >= burrowTimeGateValue; bool resetTime = npc.Calamity().newAI[0] >= burrowTimeGateValue + 600f; bool lungeUpward = burrow && npc.Calamity().newAI[1] == 1f; diff --git a/build.txt b/build.txt index 6c8216d4c6..42d21f3b7d 100644 --- a/build.txt +++ b/build.txt @@ -1,5 +1,5 @@ author = Fabsol and the Dev Team -version = 1.5.0.001 +version = 1.5.0.002 displayName = Calamity Mod (No Calamity Music) homepage = https://forums.terraria.org/index.php?threads/calamity-mod.44065/ buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes