Merge branch 'master' into fixes-for-the-hotfix
This commit is contained in:
commit
08a793e7fa
10 files changed
+29
-29
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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%");
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
+10
-15
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user