Comet Quasher, Greentide, Lucrecia balancing

This commit is contained in:
CongratsIsTrash committed 2024-03-14 17:49:36 -04:00
1 parent fc495e5c5f
commit 953f23a9d9
6 files changed
+25 -47

No files matched your search

+5 -2
View File
@@ -185,14 +185,17 @@ namespace CalamityMod.Balancing
// 50% resist to Aegis Blade's explosions because the true melee resist ain't enough.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AegisBlast>()))));
// 40% resist to Flying Dragon.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileID.DD2SquireSonicBoom))));
// 35% resist to Flying Dragon.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2SquireSonicBoom))));
// 30% resist to Aurora Blazer.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<AuroraFire>()))));
// 30% resist to Flak Kraken.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<FlakKrakenProjectile>()))));
// 25% resist to Lucrecia.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.RavagerIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<DNA>()))));
#endregion
#region Duke Fishron
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 46;
Item.height = 62;
Item.damage = 141;
Item.damage = 134;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 22;
Item.useStyle = ItemUseStyleID.Swing;
+14 -12
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
public new string LocalizationCategory => "Items.Weapons.Melee";
internal const float ShootSpeed = 20f;
internal const float ShootSpeed = 32f;
internal const float TeethSpread = 960f;
@@ -19,16 +19,16 @@ namespace CalamityMod.Items.Weapons.Melee
internal const int TotalRows = 2;
internal const int TotalTeeth = 6;
internal const int TotalTeeth = 5;
public override void SetDefaults()
{
Item.width = 62;
Item.height = 62;
Item.damage = 95;
Item.damage = 87; // IS THAT THE BITE OF '87
Item.DamageType = DamageClass.Melee;
Item.useTime = 24;
Item.useAnimation = 24;
Item.useTime = 31;
Item.useAnimation = 31;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 7f;
@@ -41,16 +41,16 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
Vector2 destination = Main.MouseWorld;
Vector2 destination = target.Center;
Vector2 position = destination - (Vector2.UnitY * (Main.MouseWorld.Y - Main.screenPosition.Y + 80f));
Vector2 cachedPosition = position;
Vector2 secondPosition = cachedPosition + (Vector2.UnitY * (Main.screenHeight + 160f));
Vector2 secondCachedPosition = secondPosition;
Vector2 velocity = (Main.MouseWorld - position).SafeNormalize(Vector2.UnitY) * ShootSpeed;
Vector2 velocity = (destination - position).SafeNormalize(Vector2.UnitY) * ShootSpeed;
Vector2 cachedVelocity = velocity;
Vector2 secondVelocity = (Main.MouseWorld - secondPosition).SafeNormalize(Vector2.UnitY) * ShootSpeed;
Vector2 secondVelocity = (destination - secondPosition).SafeNormalize(Vector2.UnitY) * ShootSpeed;
Vector2 secondCachedVelocity = secondVelocity;
int teethDamage = player.CalcIntDamage<MeleeDamageClass>((int)(Item.damage * 0.5));
@@ -70,16 +70,18 @@ namespace CalamityMod.Items.Weapons.Melee
if (topTeeth)
{
position.X += MathHelper.Lerp(-HalvedTeethSpread, HalvedTeethSpread, j / (float)(TotalTeeth - 1));
velocity = (Main.MouseWorld - position).SafeNormalize(Vector2.UnitY) * ShootSpeed;
Projectile.NewProjectile(player.GetSource_ItemUse(Item), position, new Vector2(velocity.X * teethXVelocityReduction, velocity.Y) * velocityAdjustment, ModContent.ProjectileType<GreenWater>(), teethDamage, teethKnockback, player.whoAmI, 0f, i, target.Center.Y);
velocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(position, target, ShootSpeed, 1) * velocityAdjustment;
velocity.X *= teethXVelocityReduction;
Projectile.NewProjectile(player.GetSource_ItemUse(Item), position, velocity, ModContent.ProjectileType<GreenWater>(), teethDamage, teethKnockback, player.whoAmI, 0f, i, target.Center.Y);
position = cachedPosition;
velocity = cachedVelocity;
}
else
{
secondPosition.X += MathHelper.Lerp(-HalvedTeethSpread, HalvedTeethSpread, j / (float)(TotalTeeth - 1));
secondVelocity = (Main.MouseWorld - secondPosition).SafeNormalize(Vector2.UnitY) * ShootSpeed;
Projectile.NewProjectile(player.GetSource_ItemUse(Item), secondPosition, new Vector2(secondVelocity.X * teethXVelocityReduction, secondVelocity.Y) * velocityAdjustment, ModContent.ProjectileType<GreenWater>(), teethDamage, teethKnockback, player.whoAmI, 0f, i, target.Center.Y);
secondVelocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(secondPosition, target, ShootSpeed, 1) * velocityAdjustment;
secondVelocity.X *= teethXVelocityReduction;
Projectile.NewProjectile(player.GetSource_ItemUse(Item), secondPosition, secondVelocity, ModContent.ProjectileType<GreenWater>(), teethDamage, teethKnockback, player.whoAmI, 0f, i, target.Center.Y);
secondPosition = secondCachedPosition;
secondVelocity = secondCachedVelocity;
}
@@ -254,7 +254,7 @@ ChronomancersScythe: {
Tooltip:
'''
Rapidly fires icicles
Press <right> to swing the scythe around you creating a clock pattern of homing icicles
Press <right> to swing the scythe around you, creating a clock pattern of homing icicles
Direct hits with the scythe have a chance to spawn clocks
Collecting the clocks increases movement speed and acceleration by 5% for each clock collected
This stacks up to 3 times and each level wears off after 5 seconds
@@ -632,7 +632,7 @@ GreatswordofJudgement: {
Greentide: {
DisplayName: Greentide
Tooltip: Summons teeth from the sky on hit
Tooltip: Summons teeth to chomp your foes on hit
}
HellfireFlamberge: {
+2 -8
View File
@@ -9,8 +9,7 @@ namespace CalamityMod.Projectiles.Melee
{
public new string LocalizationCategory => "Projectiles.Melee";
public static int OnHitIFrames = 3;
public static int TotalSegments = 6;
public static int TotalSegments = 10;
public override void SetDefaults()
{
@@ -23,7 +22,7 @@ namespace CalamityMod.Projectiles.Melee
Projectile.DamageType = DamageClass.Melee;
Projectile.penetrate = -1;
Projectile.usesIDStaticNPCImmunity = true;
Projectile.idStaticNPCHitCooldown = 12;
Projectile.idStaticNPCHitCooldown = 6;
}
public override void AI()
@@ -83,10 +82,5 @@ namespace CalamityMod.Projectiles.Melee
{
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.BoneTorch, Projectile.oldVelocity.X * 0.005f, Projectile.oldVelocity.Y * 0.005f);
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
Main.player[Projectile.owner].GiveIFrames(OnHitIFrames);
}
}
}
+1 -22
View File
@@ -11,7 +11,6 @@ namespace CalamityMod.Projectiles.Melee.Shortswords
{
public class LucreciaProj : BaseShortswordProjectile
{
public const int OnHitIFrames = 5;
public override LocalizedText DisplayName => CalamityUtils.GetItemName<Lucrecia>();
public override string Texture => "CalamityMod/Items/Weapons/Melee/Lucrecia";
@@ -32,7 +31,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords
public override Action<Projectile> EffectBeforePullback => (proj) =>
{
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 12f, ModContent.ProjectileType<DNA>(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f);
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 10f, ModContent.ProjectileType<DNA>(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f);
};
@@ -54,25 +53,5 @@ namespace CalamityMod.Projectiles.Melee.Shortswords
if (Main.rand.NextBool(5))
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.BoneTorch);
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
Main.player[Projectile.owner].GiveIFrames(OnHitIFrames, false);
}
public override void OnHitPlayer(Player target, Player.HurtInfo info)
{
Player player = Main.player[Projectile.owner];
bool isImmune = false;
for (int j = 0; j < player.hurtCooldowns.Length; j++)
{
if (player.hurtCooldowns[j] > 0)
isImmune = true;
}
if (!isImmune)
{
Owner.GiveIFrames(OnHitIFrames, true);
}
}
}
}