diff --git a/Items/Accessories/FrozenCube.cs b/Items/Accessories/FrozenCube.cs index ebc32c8439..004f4426c6 100644 --- a/Items/Accessories/FrozenCube.cs +++ b/Items/Accessories/FrozenCube.cs @@ -14,13 +14,13 @@ namespace CalamityMod.Items.Accessories { public class FrozenCube : ModItem, ILocalizedModType { - public static int mistBaseDamage = 1; - public static int slamBaseDamage = 20; - public static int baseAttackSpeed = 90; - public static int baseAttackCooldown = 180; + public static int mistBaseDamage => 5; + public static int slamBaseDamage => 20; + public static int baseAttackSpeed => 90; + public static int baseAttackCooldown => 180; - public static int usedDefenseDivide = 3; - public static int debuff = ModContent.BuffType(); + public static int usedDefenseDivide => 3; + public static int debuff => ModContent.BuffType(); public static readonly SoundStyle noise = new("CalamityMod/Sounds/Item/ElumphantSound") { Volume = 0.6f }; public static readonly SoundStyle cry = new("CalamityMod/Sounds/Item/ElumphantCry") { Volume = 0.6f }; diff --git a/Items/Weapons/Summon/VoidConcentrationStaff.cs b/Items/Weapons/Summon/VoidConcentrationStaff.cs index 1117dd69b0..9edb3d5902 100644 --- a/Items/Weapons/Summon/VoidConcentrationStaff.cs +++ b/Items/Weapons/Summon/VoidConcentrationStaff.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Linq; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; @@ -12,7 +11,6 @@ using CalamityMod.Particles; using CalamityMod.Projectiles.Magic; using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; -using CalamityMod.Systems.Collections; using CalamityMod.Utilities.Daybreak; using CalamityMod.Utilities.Daybreak.Buffers; using Microsoft.Xna.Framework; @@ -40,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Summon AutoDrawTooltip = false }; - public static void tagOnHit(NPC npc, Projectile projectile, NPC.HitInfo hit, int damageDone) => npc.GetGlobalNPC().StoredDamage += (int)(damageDone * (1- SummonerTagEffectiveness)); + public static void tagOnHit(NPC npc, Projectile projectile, NPC.HitInfo hit, int damageDone) => npc.GetGlobalNPC().StoredDamage += (int)(damageDone * (1 - SummonerTagEffectiveness)); public override void SetStaticDefaults() { ItemID.Sets.StaffMinionSlotsRequired[Type] = 4f; @@ -77,6 +75,7 @@ namespace CalamityMod.Items.Weapons.Summon Projectile.NewProjectileDirect(source, player.Center, Vector2.Zero, type, damage, knockback, player.whoAmI); player.ownedProjectileCounts[ModContent.ProjectileType()]++; //update it instantly so it's read properly later in the same update } + } if (player.altFunctionUse == 2) { player.MinionNPCTargetAim(true); @@ -86,6 +85,7 @@ namespace CalamityMod.Items.Weapons.Summon Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ModContent.ProjectileType(), damage, knockback, player.whoAmI, target.whoAmI); } } + return false; } public override bool AltFunctionUse(Player player) => true; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 630795df12..2b70192ffc 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -2312,6 +2312,6 @@ FrozenCube: { ''' SalesPitch: "{$Common.SalesmanShrinePitch}" EquippedDebuff: Current Cold Debuff boost: +{0}% - EquippedElumphant: Current Elumphant Power: +{0}% + EquippedElumphant: Current Elumphant Power: {0}% Unequipped: Equip this accessory to view its statistics } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson index 05506b0f59..4f65eb625d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson @@ -54,7 +54,6 @@ RelicOfDeliverance: { The dash can ram through enemies and travel through tiles Press to dismount Holding out the spear heavily reduces the damage of all summons - {$Common.AverageDamageInfo} [c/FF8C00:Vengeance fueled me, I had no thought other than exactment.] [c/FF8C00:The dragon took everything from me, leaving my broken pieces strewn on the ground.] [c/FF8C00:But when I danced by Her side, I knew there was still something worth fighting for.] diff --git a/Projectiles/Melee/OrderbringerBeam.cs b/Projectiles/Melee/OrderbringerBeam.cs index 96fa3fea63..f546630e46 100644 --- a/Projectiles/Melee/OrderbringerBeam.cs +++ b/Projectiles/Melee/OrderbringerBeam.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Melee Player Owner = Main.player[Projectile.owner]; float targetDist = Vector2.Distance(Owner.Center, Projectile.Center); - if (Projectile.timeLeft % 12 == 0 && targetDist < 1400f) + if (!CalamityClientConfig.Instance.Photosensitivity && Projectile.timeLeft % 12 == 0 && targetDist < 1400f) { Particle spark = new CustomSpark(Projectile.Center, Projectile.velocity * 0.2f, "CalamityMod/Particles/BloomCircle", false, 23, 0.25f * Projectile.scale, mainColor * 0.75f, new Vector2(1f, 7.35f), true, true, shrinkSpeed: 0.2f, glowOpacity: 0.7f); GeneralParticleHandler.SpawnParticle(spark); diff --git a/Projectiles/Typeless/Elumphant.cs b/Projectiles/Typeless/Elumphant.cs index 2d8d370cf1..180ed6d614 100644 --- a/Projectiles/Typeless/Elumphant.cs +++ b/Projectiles/Typeless/Elumphant.cs @@ -123,31 +123,21 @@ namespace CalamityMod.Projectiles.Typeless } public void SetStats() { - maxTargetingDistance = (float)(500 * GetPower(0.3f)); - attackTimeAdjusted = (int)(FrozenCube.baseAttackSpeed / (GetPower(0.5f))); - damageScaling = (float)GetPower(1.35f, (1 + frozenCubePower * 0.2f)); - cooldownTime = (int)(FrozenCube.baseAttackCooldown / GetPower(0.5f)); + maxTargetingDistance = (float)(400 * (1+frozenCubePower)); + attackTimeAdjusted = (int)(FrozenCube.baseAttackSpeed/(1+frozenCubePower)); + damageScaling = 1+frozenCubePower; + cooldownTime = (int)(FrozenCube.baseAttackCooldown / (1 + frozenCubePower)); } public void SetElumphantPower() { int usedDefense = Owner.Calamity().frozenCubeUsedDefense; if (time == 0) // Show the player how much defense is being used CombatText.NewText(Projectile.Hitbox, color2, -usedDefense, false, true); - - // Defense investment softcaps at 110 (aka player has 330 defense) - float defenseCap = 110; - if (usedDefense > defenseCap) - { - float ratio = usedDefense / defenseCap; - usedDefense = (int)(defenseCap * MathF.Pow(ratio, 0.15f)); - } - - frozenCubePower = usedDefense * 0.05f; // 1 point of defense = 5% effectiveness - float power = (float)(GetPower(0.8f, (1 + frozenCubePower * 0.2f)) - 1); - Owner.Calamity().frozenCubeDebuffBoost = power; - Owner.Calamity().frozenCubeElumphantBoost = damageScaling - 1; - Owner.Calamity().ColdDebuffMultiplier += power; // Boost cold debuff damage + frozenCubePower = usedDefense * 0.04f; + Owner.Calamity().frozenCubeDebuffBoost = frozenCubePower; + Owner.Calamity().frozenCubeElumphantBoost = damageScaling; + Owner.Calamity().ColdDebuffMultiplier += frozenCubePower; } public double GetPower(float efficiency, float intenseScaling = 1) { @@ -288,7 +278,7 @@ namespace CalamityMod.Projectiles.Typeless Projectile.frame = 2; if (recoiling) { - attackTimeAdjusted = (int)(FrozenCube.baseAttackSpeed / GetPower(0.5f)); + attackTimeAdjusted = (int)(FrozenCube.baseAttackSpeed / (GetPower(0.5f))); if (Projectile.numHits > 1) attackTimer = attackTimeAdjusted; Projectile.numHits = 1; @@ -394,7 +384,7 @@ namespace CalamityMod.Projectiles.Typeless Vector2 shootPosition = Projectile.Center + shootVel * 5 * Projectile.scale; Projectile mist = Projectile.NewProjectileDirect(Owner.GetSource_FromThis(), shootPosition, (shootVel * shootPosition.Distance(targeted.Center) / 25) * Main.rand.NextFloat(0.9f, 1.1f), projectile, damage, 0, Owner.whoAmI, 0, Owner.ownedProjectileCounts[projectile] % 3, (float)GetPower(1)); } - mistShootTimer += (float)(0.35f * GetPower(0.25f)); + mistShootTimer += (float)(0.2f * GetPower(0.25f)); if (mistShootTimer >= 2f) mistShootTimer = 0; }