This commit is contained in:
Merkalto committed 2022-08-19 16:48:23 -05:00
commit dda376b5eb
12 files changed
+22 -11

No files matched your search

+2 -2
View File
@@ -5699,7 +5699,7 @@ namespace CalamityMod.CalPlayer
if (godSlayerDashHotKeyPressed)
{
// Set the player to have no registered vanilla dashes.
Player.dash = 0;
Player.dashType = 0;
// Prevent the possibility of Shield of Cthulhu invulnerability exploits.
Player.eocHit = -1;
@@ -5768,7 +5768,7 @@ namespace CalamityMod.CalPlayer
private void DisableDashes()
{
// Set the player to have no registered dashes.
Player.dash = 0;
Player.dashType = 0;
DashID = string.Empty;
// Put the player in a permanent state of dash cooldown. This is removed 1/5 of a second after disabling the effect.
+1 -1
View File
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.DashID = AsgardianAegisDash.ID;
player.dash = 0;
player.dashType = 0;
modPlayer.elysianAegis = true;
player.noKnockback = true;
player.fireWalk = true;
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.DashID = AsgardsValorDash.ID;
player.dash = 0;
player.dashType = 0;
player.noKnockback = true;
player.fireWalk = true;
player.buffImmune[BuffID.OnFire] = true;
+1 -1
View File
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.dodgeScarf = true;
modPlayer.DashID = CounterScarfDash.ID;
player.dash = 0;
player.dashType = 0;
}
}
}
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.deepDiver = true;
modPlayer.DashID = DeepDiverDash.ID;
player.dash = 0;
player.dashType = 0;
}
}
}
+1 -1
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.DashID = ElysianAegisDash.ID;
player.dash = 0;
player.dashType = 0;
modPlayer.elysianAegis = true;
player.buffImmune[BuffID.OnFire] = true;
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Accessories
modPlayer.dodgeScarf = true;
modPlayer.evasionScarf = true;
modPlayer.DashID = CounterScarfDash.ID;
player.dash = 0;
player.dashType = 0;
}
public override void AddRecipes()
+1 -1
View File
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories
player.statLifeMax2 += 20;
}
player.Calamity().DashID = OrnateShieldDash.ID;
player.dash = 0;
player.dashType = 0;
}
public override void AddRecipes()
+1 -1
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Accessories
player.noFallDmg = true;
player.blackBelt = true;
modPlayer.DashID = StatisVoidSashDash.ID;
player.dash = 0;
player.dashType = 0;
player.spikedBoots = 2;
}
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer
player.Calamity().plaguebringerPatronSet = true;
player.Calamity().DashID = PlaguebringerArmorDash.ID;
player.dash = 0;
player.dashType = 0;
player.maxMinions += 3;
if (player.whoAmI == Main.myPlayer)
{
+7
View File
@@ -1013,6 +1013,7 @@ namespace CalamityMod.Items
player.GetDamage<GenericDamageClass>() -= 0.1f;
player.GetCritChance<GenericDamageClass>() -= 10;
player.setBonus = "Allows the ability to dash";
modPlayer.DashID = string.Empty;
}
else if (set == "SquireTier2")
{
@@ -1688,12 +1689,18 @@ namespace CalamityMod.Items
}
}
if (player.magicQuiver && (item.useAmmo == AmmoID.Arrow || item.useAmmo == AmmoID.Stake) && Main.rand.NextBool(5))
dontConsumeAmmo = true;
if (player.huntressAmmoCost90 && Main.rand.NextBool(10))
dontConsumeAmmo = true;
if (player.ammoBox && Main.rand.NextBool(5))
dontConsumeAmmo = true;
if (player.ammoPotion && Main.rand.NextBool(5))
dontConsumeAmmo = true;
if (player.ammoCost80 && Main.rand.NextBool(5))
dontConsumeAmmo = true;
if (player.chloroAmmoCost80 && Main.rand.NextBool(5))
dontConsumeAmmo = true;
if (player.ammoCost75 && Main.rand.NextBool(4))
dontConsumeAmmo = true;
if (Main.rand.NextFloat() > player.Calamity().rangedAmmoCost)
+4
View File
@@ -237,6 +237,10 @@ namespace CalamityMod.Items
// For items such as a Copper Helmet which literally have no tooltips at all, add a custom "Tooltip0" which mimics the vanilla Tooltip0.
void AddTooltip(string text)
{
// Don't add the tooltip if the item is in a social slot
if (item.social)
return;
int defenseIndex = -1;
for (int i = 0; i < tooltips.Count; ++i)
if (tooltips[i].Name == "Defense")