Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
dda376b5eb
12 files changed
+22
-11
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user