eleumphant rebalance + various fixes
makes elumphant not scale so insanely, no more defense cap
This commit is contained in:
1 parent
22f18c71a6
commit
60f841b7f4
6 files changed
+21
-32
No files matched your search
@@ -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<WindChilled>();
|
||||
public static int usedDefenseDivide => 3;
|
||||
public static int debuff => ModContent.BuffType<WindChilled>();
|
||||
|
||||
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 };
|
||||
|
||||
@@ -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<VoidTagNPC>().StoredDamage += (int)(damageDone * (1- SummonerTagEffectiveness));
|
||||
public static void tagOnHit(NPC npc, Projectile projectile, NPC.HitInfo hit, int damageDone) => npc.GetGlobalNPC<VoidTagNPC>().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<VoidConcentrationMinion>()]++; //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<VoidConcentrationMark>(), damage, knockback, player.whoAmI, target.whoAmI);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
public override bool AltFunctionUse(Player player) => true;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -54,7 +54,6 @@ RelicOfDeliverance: {
|
||||
The dash can ram through enemies and travel through tiles
|
||||
Press <right> 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.]
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user