This commit is contained in:
Andrew Marheine committed 2020-05-05 09:51:41 -05:00
commit 993585b4bb
3 files changed
+4 -55

No files matched your search

-11
View File
@@ -26,17 +26,6 @@ namespace CalamityMod.Buffs
{
player.lavaMax += 420;
}
// Rogue weapons benefit from vanilla throwing crit, so don't double-increase rogue crit chance with these buffs.
/*
else if (type == BuffID.Rage)
{
player.Calamity().throwingCrit += 10;
}
else if (type == BuffID.WellFed)
{
player.Calamity().throwingCrit += 2;
}
*/
else if (type >= BuffID.NebulaUpDmg1 && type <= BuffID.NebulaUpDmg3)
{
float nebulaDamage = 0.075f * (float)player.nebulaLevelDamage; //7.5% to 22.5%
+4 -4
View File
@@ -224,7 +224,7 @@ namespace CalamityMod.CalPlayer
public float throwingDamage = 1f;
public float throwingVelocity = 1f;
public int throwingCrit = 4;
public int throwingCrit = 0;
public bool throwingAmmoCost75 = false;
public bool throwingAmmoCost66 = false;
public bool throwingAmmoCost50 = false;
@@ -1245,7 +1245,7 @@ namespace CalamityMod.CalPlayer
throwingDamage = 1f;
throwingVelocity = 1f;
throwingCrit = 4;
throwingCrit = 0;
throwingAmmoCost75 = false;
throwingAmmoCost66 = false;
throwingAmmoCost50 = false;
@@ -1931,7 +1931,7 @@ namespace CalamityMod.CalPlayer
throwingDamage = 1f;
throwingVelocity = 1f;
throwingCrit = 4;
throwingCrit = 0;
throwingAmmoCost75 = false;
throwingAmmoCost66 = false;
throwingAmmoCost50 = false;
@@ -9296,7 +9296,7 @@ namespace CalamityMod.CalPlayer
bool isPickaxe = it.pick > 0;
bool isAxe = it.axe > 0;
bool isHammer = it.hammer > 0;
bool isPlaced = it.createTile != 0;
bool isPlaced = it.createTile != -1;
bool hasNonWeaponFunction = isPickaxe || isAxe || isHammer || isPlaced;
bool playerUsingWeapon = hasDamage && hasHitboxes && !hasNonWeaponFunction;
if (!stealthStrikeThisFrame && player.itemAnimation == player.itemAnimationMax - 1 && playerUsingWeapon)
-40
View File
@@ -2787,35 +2787,11 @@ Provides heat and cold protection in Death Mode";
#region Body
if (item.type == ItemID.GladiatorBreastplate || item.type == ItemID.ObsidianShirt)
player.Calamity().throwingCrit += 3;
else if (item.type == ItemID.PalladiumBreastplate)
player.Calamity().throwingCrit += 2;
else if (item.type == ItemID.CobaltBreastplate)
player.Calamity().throwingCrit += 3;
else if (item.type == ItemID.OrichalcumBreastplate)
player.Calamity().throwingCrit += 6;
else if (item.type == ItemID.TitaniumBreastplate)
player.Calamity().throwingCrit += 3;
else if (item.type == ItemID.HallowedPlateMail)
player.Calamity().throwingCrit += 7;
else if (item.type == ItemID.ChlorophytePlateMail)
player.Calamity().throwingCrit += 7;
else if (item.type == ItemID.Gi)
player.Calamity().throwingCrit += 5;
#endregion
#region Legs
if (item.type == ItemID.GladiatorLeggings || item.type == ItemID.ObsidianPants)
player.Calamity().throwingVelocity += 0.03f;
else if (item.type == ItemID.PalladiumLeggings)
player.Calamity().throwingCrit += 1;
else if (item.type == ItemID.MythrilGreaves)
player.Calamity().throwingCrit += 3;
else if (item.type == ItemID.AdamantiteLeggings)
player.Calamity().throwingCrit += 4;
else if (item.type == ItemID.TitaniumLeggings)
player.Calamity().throwingCrit += 3;
else if (item.type == ItemID.ChlorophyteGreaves)
player.Calamity().throwingCrit += 8;
#endregion
}
#endregion
@@ -3098,21 +3074,6 @@ Provides heat and cold protection in Death Mode";
if (item.type == ItemID.HandWarmer)
modPlayer.handWarmer = true;
if ((item.type == ItemID.MoonStone && !Main.dayTime) || (item.type == ItemID.SunStone && Main.dayTime))
{
player.Calamity().throwingCrit += 2;
}
if (item.type == ItemID.CelestialStone)
player.Calamity().throwingCrit += 2;
if (item.type == ItemID.CelestialShell)
player.Calamity().throwingCrit += 2;
if (item.type == ItemID.DestroyerEmblem)
player.Calamity().throwingCrit += 8;
if (item.type == ItemID.EyeoftheGolem)
player.Calamity().throwingCrit += 10;
if (item.type == ItemID.PutridScent)
player.Calamity().throwingCrit += 5;
// Hard / Guarding / Armored / Warding give 0.25% / 0.5% / 0.75% / 1% DR
if (item.prefix == PrefixID.Hard)
{
@@ -3158,7 +3119,6 @@ Provides heat and cold protection in Death Mode";
player.rangedCrit -= 1;
player.magicCrit -= 1;
player.thrownCrit -= 1;
player.Calamity().throwingCrit += item.prefix == PrefixID.Lucky ? 3 : 1;
}
}
#endregion