Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
5adc19dee3
12 files changed
+45
-11
No files matched your search
@@ -1264,7 +1264,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (holdingDown && Player.ControlsEnabled() && notInLiquid && notOnRope && notGrappling && airborne && !Player.Calamity().gSabatonFalling) //Player cannot further increase their ridiculous gravity during a Gravistar Slam
|
||||
{
|
||||
Player.velocity.Y += Player.gravity * Player.gravDir * (BalancingConstants.HoldingDownGravityMultiplier - 1f);
|
||||
if (Player.Calamity().gSabaton)
|
||||
if (Player.Calamity().gSabaton && !Player.gravControl2)
|
||||
{
|
||||
Player.maxFallSpeed *= 1.5f;
|
||||
}
|
||||
@@ -4212,6 +4212,10 @@ namespace CalamityMod.CalPlayer
|
||||
Player.GetCritChance<MeleeDamageClass>() += 10;
|
||||
}
|
||||
|
||||
|
||||
if (Player.portableStoolInfo.IsInUse)
|
||||
Player.GetCritChance(DamageClass.Generic) += 5;
|
||||
|
||||
// Amalgam boosts
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using System;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -15,7 +16,7 @@ namespace CalamityMod.Cooldowns
|
||||
// If the player doesn't have DSO, this cooldown should not appear.
|
||||
public override bool ShouldDisplay => instance.player.GetModPlayer<CalamityPlayer>().spiritOrigin;
|
||||
|
||||
private float ExtraCritChance => instance.player.GetModPlayer<CalamityPlayer>().spiritOriginCritBoost;
|
||||
private float ExtraCritChance => Math.Min(instance.player.GetModPlayer<CalamityPlayer>().spiritOriginCritBoost, CritHardCap);
|
||||
|
||||
private float TextXOffset => (ExtraCritChance > 99 ? -24 : ExtraCritChance > 9 ? -20 : -16) * TextScale;
|
||||
private Vector2 TextPosition => new(TextXOffset , 25);
|
||||
|
||||
@@ -58,6 +58,11 @@ namespace CalamityMod.Items.Accessories
|
||||
// Special search radius for coin ricoshots that only applies to DSO targets.
|
||||
public static readonly float RicoshotSearchDistance = 2800f;
|
||||
|
||||
/// <summary>
|
||||
/// The maximum amount of extra critical strike chance you can get from this accessory.
|
||||
/// </summary>
|
||||
public static readonly int CritHardCap = 100;
|
||||
|
||||
#endregion
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -115,7 +120,7 @@ namespace CalamityMod.Items.Accessories
|
||||
modPlayer.spiritOriginCritBoost = currentCritBoost;
|
||||
|
||||
// Actually give the crit boost as a direct increase to ranged critical strike chance.
|
||||
player.GetCritChance<RangedDamageClass>() += modPlayer.spiritOriginCritBoost;
|
||||
player.GetCritChance<RangedDamageClass>() += Math.Min(modPlayer.spiritOriginCritBoost, CritHardCap);
|
||||
|
||||
// Display the current crit boost on a cooldown.
|
||||
if (modPlayer.cooldowns.TryGetValue(DaawnlightSpiritOriginExtraCrit.ID, out var cooldown))
|
||||
|
||||
@@ -1292,7 +1292,16 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.TerrasparkBoots)
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
|
||||
else if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water
|
||||
if (item.type == ItemID.GravityGlobe)
|
||||
{
|
||||
player.jumpSpeedBoost += 1.6f;
|
||||
if (player.controlDown)
|
||||
player.maxFallSpeed *= 1.5f;
|
||||
else
|
||||
player.maxFallSpeed *= 1.2f;
|
||||
}
|
||||
|
||||
if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water
|
||||
{
|
||||
if (player.IsUnderwater())
|
||||
player.gills = true;
|
||||
|
||||
@@ -569,6 +569,13 @@ namespace CalamityMod.Items
|
||||
|
||||
if (item.healLife > 0 && Main.LocalPlayer.Calamity().healingPotionMultiplier != 1f)
|
||||
EditTooltipByName("HealLife", (line) => line.Text = Language.GetOrRegister("CommonItemTooltip.RestoresLife").Format((int)(item.healLife * Main.LocalPlayer.Calamity().healingPotionMultiplier)));
|
||||
|
||||
if (item.type == ItemID.GravityGlobe)
|
||||
EditTooltipByName("Tooltip1", (line) => line.Text = EditedTooltip("GravityGlobe"));
|
||||
|
||||
|
||||
if (item.type == ItemID.PortableStool)
|
||||
EditTooltipByName("Tooltip0", (line) => line.Text += AddedTooltip("Stepstool"));
|
||||
#endregion
|
||||
|
||||
// For boss summon item clarity
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 74;
|
||||
Item.height = 126;
|
||||
Item.damage = 116;
|
||||
Item.damage = 101;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 3;
|
||||
Item.useAnimation = 25;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 150;
|
||||
Item.height = 48;
|
||||
Item.damage = 2000;
|
||||
Item.damage = 2150;
|
||||
Item.knockBack = 9.5f;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 60;
|
||||
|
||||
@@ -20,7 +20,7 @@ StealthInfoText:
|
||||
'''
|
||||
// Difficulty UI
|
||||
DifficultyStatusText: "{0} is {1}."
|
||||
ModeAppend: " Mode"
|
||||
ModeAppend: "{0} Mode"
|
||||
Active: Active
|
||||
NotActive: Not active
|
||||
DifficultyShiftText: "[c/737373:Hold the 'Shift' key for more information]"
|
||||
|
||||
@@ -29,6 +29,7 @@ AddedTooltip: {
|
||||
WarmthPotion: Greatly reduces the duration of Chilled, Frozen, and Glacial State
|
||||
HandWarmer: Provides a regeneration boost while wearing the Snow armor
|
||||
GoldenFishingRod: Its fishing line will never break
|
||||
Stepstool: Standing on the stool grants 5% increased critical strike chance
|
||||
Tombstones:
|
||||
'''
|
||||
13 of any tombstone turns the surrounding area into a graveyard
|
||||
@@ -274,6 +275,12 @@ EditedTooltip: {
|
||||
ApprenticeAltHead: 10% increased summon & magic damage
|
||||
ApprenticeAltShirt: 15% increased summon damage and 10% increased magic damage
|
||||
ApprenticeAltPants: 10% increased summon damage
|
||||
GravityGlobe:
|
||||
'''
|
||||
Provides 32% increased jump speed and increased fall speed
|
||||
Press UP to change gravity
|
||||
Press DOWN to fall faster
|
||||
'''
|
||||
}
|
||||
|
||||
// Buff Descriptions
|
||||
|
||||
@@ -225,6 +225,7 @@ namespace CalamityMod.NPCs
|
||||
private static readonly string[] TaxCollectorNames =
|
||||
{
|
||||
"Emmett",
|
||||
"Casino King Gray", // <@!555512087711973390> (eternalgrayson)
|
||||
};
|
||||
private static readonly string[] TravelingMerchantNames =
|
||||
{
|
||||
|
||||
@@ -255,7 +255,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
}
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/SeashineSword").Value;
|
||||
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Summon/SeashineHilt").Value;
|
||||
Texture2D tex2 = ModContent.Request<Texture2D>("CalamityMod/Particles/GlowBlade").Value;
|
||||
Texture2D tex3 = ModContent.Request<Texture2D>("CalamityMod/Particles/FullStar").Value;
|
||||
|
||||
|
||||
@@ -218,9 +218,9 @@ namespace CalamityMod.UI.ModeIndicator
|
||||
anyActiveMode = true;
|
||||
}
|
||||
}
|
||||
string modeStr = CalamityUtils.GetTextValue("UI.ModeAppend");
|
||||
string modeStr = CalamityUtils.GetText("UI.ModeAppend").Format(modeToDisplay);
|
||||
string activeText = CalamityUtils.GetTextValue("UI." + (anyActiveMode ? "Active" : "NotActive"));
|
||||
text = CalamityUtils.GetText("UI.DifficultyStatusText").WithFormatArgs(modeToDisplay + modeStr, activeText.ToLower());
|
||||
text = CalamityUtils.GetText("UI.DifficultyStatusText").WithFormatArgs(modeStr, activeText.ToLower());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user