TBB balancing
This commit is contained in:
1 parent
d54e6c641a
commit
040d943f3e
11 files changed
+70
-111
No files matched your search
@@ -287,9 +287,6 @@ namespace CalamityMod.Balancing
|
||||
#region Moon Lord
|
||||
// 20% resist to The Hive's nuke.
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.MoonLordCore, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<HiveNuke>()))));
|
||||
|
||||
// 20% resist to Earthen Tides (True Biome Blade).
|
||||
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.MoonLordCore, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<EarthenTides>(), ProjectileType<EarthenTidesShockwave>(), ProjectileType<EarthenTidesBlast>()))));
|
||||
#endregion
|
||||
|
||||
#region Profaned Guardians
|
||||
|
||||
@@ -34,26 +34,24 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
#region stats
|
||||
public static int BaseDamage = 200;
|
||||
|
||||
public static int WhirlwindAttunement_BaseDamage = 140;
|
||||
public static int WhirlwindAttunement_BaseDamage = 120;
|
||||
public static int WhirlwindAttunement_LocalIFrames = 20; //Remember its got one extra update
|
||||
public static float WhirlwindAttunement_EnergyDamageMult = 0.5f;
|
||||
public static float WhirlwindAttunement_BaseDamageReduction = 0.3f;
|
||||
public static float WhirlwindAttunement_FullChargeDamageBoost = 0.9f;
|
||||
public static float WhirlwindAttunement_BaseSwingDamageMult = 0.4f;
|
||||
public static float WhirlwindAttunement_FullSwingDamageMult = 1f;
|
||||
public static float WhirlwindAttunement_ThrowDamageBoost = 3.3f;
|
||||
public static float WhirlwindAttunement_MonolithDamageMult = 0.5f;
|
||||
|
||||
public static int WhirlwindAttunement_PassiveBaseDamage = 80;
|
||||
|
||||
|
||||
public static int SuperPogoAttunement_BaseDamage = 200;
|
||||
public static int SuperPogoAttunement_FullChargeDamage = 380;
|
||||
public static int SuperPogoAttunement_ShredIFrames = 10;
|
||||
public static int SuperPogoAttunement_LocalIFrames = 30; //Be warned its got one extra update so all the iframes should be divided in 2
|
||||
public static int SuperPogoAttunement_LocalIFramesCharged = 16;
|
||||
public static float SuperPogoAttunement_SlashDamageBoost = 2.5f; //Keep in mind the slice always crits
|
||||
public static int SuperPogoAttunementSlashLifesteal = 4;
|
||||
public static int SuperPogoAttunement_SlashIFrames = 20;
|
||||
public static float SuperPogoAttunement_ShotDamageBoost = 2.5f;
|
||||
public static int SuperPogoAttunement_BaseDamage = 190;
|
||||
public static int SuperPogoAttunement_PlayerShredIFrames = 8;
|
||||
public static int SuperPogoAttunement_LocalIFrames = 24; //Be warned its got one extra update so all the iframes should be divided in 2
|
||||
public static float SuperPogoAttunement_ShotDamageMult = 2.5f;
|
||||
public static float SuperPogoAttunement_SliceDamageMult = 2.5f; //Keep in mind the slice always crits
|
||||
public static int SuperPogoAttunementSliceLifesteal = 4;
|
||||
public static int SuperPogoAttunement_PlayerSliceIFrames = 20;
|
||||
public static float SuperPogoAttunement_ShredDecayRate = 0.65f;//How much charge is lost per frame.
|
||||
|
||||
public static int SuperPogoAttunement_PassiveLifeSteal = 7;
|
||||
@@ -62,7 +60,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public static int ShockwaveAttunement_BaseDamage = 550;
|
||||
public static float ShockwaveAttunement_BeamDamageMult = 0.25f;
|
||||
public static int ShockwaveAttunement_DashHitIFrames = 20;
|
||||
public static float ShockwaveAttunement_FullChargeBoost = 2.5f; //The EXTRA damage boost. So putting 1 here will make it deal double damage. Putting 0.5 here will make it deal 1.5x the damage.
|
||||
public static float ShockwaveAttunement_FullChargeMult = 3.6f;
|
||||
public static int ShockwaveAttunement_SigilTime = 1000;
|
||||
public static float ShockwaveAttunement_MonolithDamageBoost = 0.75f;
|
||||
|
||||
|
||||
@@ -99,7 +99,8 @@ FlailBladeAttunement: {
|
||||
Name: Lamentations of the Chained
|
||||
Function:
|
||||
'''
|
||||
Lash out with a flurry of chained blades. Striking enemies with the tip of the blades guarantees a critical hit
|
||||
Lash out with a flurry of chained blades
|
||||
Striking enemies with the tip of the blades guarantees a critical strike
|
||||
Critical strikes send out extra phantom chains which latch onto multiple targets
|
||||
'''
|
||||
PassiveDesc: An enchanted chain hook floats near you which spins and freezes enemies while dealing damage
|
||||
@@ -109,10 +110,10 @@ SuperPogoAttunement: {
|
||||
Name: Sanguine Fury
|
||||
Function:
|
||||
'''
|
||||
Conjure molten blades in front of you that get larger and stronger with enemy hits
|
||||
Conjure molten blades in front of you that get larger with enemy hits
|
||||
The blades will bounce you off of tiles while in the air
|
||||
Releasing sends the charged blades hurtling forwards like a wheel
|
||||
Attacking immediately after throwing the blade launches you toward it, damaging enemies and healing you
|
||||
Attacking immediately after throwing the blade launches you toward it, slicing through enemies and healing you
|
||||
'''
|
||||
PassiveDesc: Striking enemies will rarely heal you
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
float collisionPoint = 0f;
|
||||
float bladeLength = 120 * Projectile.scale;
|
||||
float bladeLength = 115 * Projectile.scale;
|
||||
float bladeWidth = 76 * Projectile.scale;
|
||||
|
||||
return Collision.CheckAABBvLineCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Owner.Center, Owner.Center + (direction * bladeLength), bladeWidth, ref collisionPoint);
|
||||
|
||||
@@ -110,12 +110,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
int debuffTime = 100;
|
||||
target.AddBuff(BuffType<GlacialState>(), debuffTime);
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffType<GlacialState>(), 100);
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item105, Projectile.Center);
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Tiles.Astral;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -29,7 +26,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public ref float CurrentIndicator => ref Projectile.localAI[0]; //What "indicator" stage are you on.
|
||||
public ref float OverCharge => ref Projectile.localAI[1];
|
||||
|
||||
const float MaxCharge = 500;
|
||||
const float MaxCharge = 420;
|
||||
|
||||
public Vector2 lastDisplacement;
|
||||
public float dashDuration;
|
||||
@@ -141,6 +138,15 @@ namespace CalamityMod.Projectiles.Melee
|
||||
SoundEngine.PlaySound(FullChargeSound, Projectile.Center);
|
||||
CurrentIndicator++;
|
||||
}
|
||||
|
||||
if (Main.rand.NextBool())
|
||||
{
|
||||
Vector2 sparkPos = Projectile.Center + direction * Main.rand.NextFloat(50f, 100f);
|
||||
Vector2 sparkVel = direction.RotatedByRandom(MathHelper.Pi / 15f) * Main.rand.NextFloat(9f, 18f) + (Owner.velocity * 0.5f);
|
||||
Color sparkColor = Color.Lerp(new Color(71, 191, 71), new Color(122, 213, 233), Main.rand.NextFloat());
|
||||
CustomSprite critSpark = new(sparkPos, sparkVel, 16, "CalamityMod/Particles/CritSpark", 1.4f, sparkColor, frameCount: 4, frame: Main.rand.Next(4));
|
||||
GeneralParticleHandler.SpawnParticle(critSpark);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,12 +234,12 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Owner.GiveUniversalIFrames(OmegaBiomeBlade.ShockwaveAttunement_DashHitIFrames);
|
||||
|
||||
if (!CalamityUtils.AnyProjectiles(ProjectileType<EarthenTidesShockwave>()))
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), target.Center, Vector2.Zero, ProjectileType<EarthenTidesShockwave>(), (int)(Projectile.damage * 0.5f), 0f, Owner.whoAmI, 1f);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), target.Center, Vector2.Zero, ProjectileType<EarthenTidesShockwave>(), (int)(Projectile.damage * 0.75f), 0f, Owner.whoAmI, 1f);
|
||||
}
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
modifiers.SourceDamage *= 1f + OmegaBiomeBlade.ShockwaveAttunement_FullChargeBoost * (float)Math.Pow(Charge / MaxCharge, 2);
|
||||
modifiers.SourceDamage *= (OmegaBiomeBlade.ShockwaveAttunement_FullChargeMult * (float)Math.Pow(Charge / MaxCharge, 2));
|
||||
|
||||
if (Owner.HeldItem.ModItem is OmegaBiomeBlade sword && Main.rand.NextFloat() <= OmegaBiomeBlade.ShockwaveAttunement_SwordProc)
|
||||
sword.OnHitProc = true;
|
||||
|
||||
@@ -43,24 +43,10 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override void AI()
|
||||
{
|
||||
// Sword beams home
|
||||
if (Projectile.timeLeft < 120)
|
||||
if (Projectile.timeLeft < 130)
|
||||
{
|
||||
// Find the closest target
|
||||
float npcDistCompare = 240f;
|
||||
int index = -1;
|
||||
foreach (NPC n in Main.ActiveNPCs)
|
||||
{
|
||||
if (!n.CanBeChasedBy(Projectile, false))
|
||||
continue;
|
||||
|
||||
float currentNPCDist = Vector2.Distance(n.Center, Projectile.Center);
|
||||
if ((currentNPCDist < npcDistCompare) && Collision.CanHit(Projectile.Center, 1, 1, n.Center, 1, 1))
|
||||
{
|
||||
npcDistCompare = currentNPCDist;
|
||||
index = n.whoAmI;
|
||||
}
|
||||
}
|
||||
// Homing will prioritize an enemy that is marked
|
||||
// Prioritize an enemy that is marked
|
||||
foreach (Projectile proj in Main.projectile)
|
||||
{
|
||||
if (proj.active && proj.type == ProjectileType<PurityProjectionSigil>() && proj.owner == Owner.whoAmI)
|
||||
@@ -72,6 +58,25 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If nothing is marked, just find the closest target
|
||||
if (index == -1)
|
||||
{
|
||||
float npcDistCompare = 240f;
|
||||
foreach (NPC n in Main.ActiveNPCs)
|
||||
{
|
||||
if (!n.CanBeChasedBy(Projectile, false))
|
||||
continue;
|
||||
|
||||
float currentNPCDist = Vector2.Distance(n.Center, Projectile.Center);
|
||||
if ((currentNPCDist < npcDistCompare) && Collision.CanHit(Projectile.Center, 1, 1, n.Center, 1, 1))
|
||||
{
|
||||
npcDistCompare = currentNPCDist;
|
||||
index = n.whoAmI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If we found an enemy, curve towards them
|
||||
if (index != -1)
|
||||
{
|
||||
|
||||
@@ -18,13 +18,10 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override string Texture => "CalamityMod/Projectiles/Melee/TrueBiomeBlade_EarthenTidesShockwave";
|
||||
public Player Owner => Main.player[Projectile.owner];
|
||||
public float Timer => (60f - Projectile.timeLeft) / 100f;
|
||||
public ref float Size => ref Projectile.ai[0]; //Yes
|
||||
public ref float Size => ref Projectile.ai[0];
|
||||
|
||||
public Particle BloomRing;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.DamageType = DamageClass.Melee;
|
||||
@@ -33,16 +30,11 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.timeLeft = 60;
|
||||
Projectile.usesIDStaticNPCImmunity = true;
|
||||
Projectile.idStaticNPCHitCooldown = 12;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = -1;
|
||||
}
|
||||
|
||||
public override bool? CanDamage() => Projectile.timeLeft < 40;
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
return Collision.CheckAABBvAABBCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center - (projHitbox.Size() * Projectile.scale * 0.5f), projHitbox.Size() * Projectile.scale);
|
||||
}
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => Collision.CheckAABBvAABBCollision(targetHitbox.TopLeft(), targetHitbox.Size(), Projectile.Center - (projHitbox.Size() * Projectile.scale * 0.5f), projHitbox.Size() * Projectile.scale);
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
@@ -51,33 +43,26 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
if (Projectile.timeLeft == 60)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item79, Projectile.Center);
|
||||
SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode, Projectile.Center);
|
||||
Particle Sparkle = new GenericSparkle(Projectile.Center, Vector2.Zero, Color.White, Main.rand.NextBool() ? Color.Aqua : Color.SpringGreen, Projectile.scale, 20, 0.2f, 2);
|
||||
GeneralParticleHandler.SpawnParticle(Sparkle);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (Projectile.timeLeft == 40)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode, Projectile.Center);
|
||||
|
||||
BloomRing = new BloomRing(Projectile.Center, Vector2.Zero, Color.Aqua, Projectile.scale, 40);
|
||||
BloomRing = new BloomRing(Projectile.Center, Vector2.Zero, Color.Aqua, Projectile.scale, 50);
|
||||
GeneralParticleHandler.SpawnParticle(BloomRing);
|
||||
|
||||
Particle Bloom = new StrongBloom(Projectile.Center, Vector2.Zero, Main.rand.NextBool() ? Color.Aqua * 0.6f : Color.SpringGreen * 0.6f, Projectile.scale * (1f + Main.rand.NextFloat(0f, 1.5f)), 20);
|
||||
GeneralParticleHandler.SpawnParticle(Bloom);
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
Particle Sparkle = new CritSpark(Projectile.Center, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(17.5f, 25f) * Projectile.scale, Color.White, Main.rand.NextBool() ? Color.DarkSlateBlue : Color.Chocolate, 0.1f + Main.rand.NextFloat(0f, 1.5f), 20 + Main.rand.Next(30), 1, 3f);
|
||||
GeneralParticleHandler.SpawnParticle(Sparkle);
|
||||
Particle crit = new CritSpark(Projectile.Center, Main.rand.NextVector2Circular(1f, 1f) * Main.rand.NextFloat(17.5f, 25f) * Projectile.scale, Color.White, Main.rand.NextBool() ? Color.DarkSlateBlue : Color.Chocolate, 0.1f + Main.rand.NextFloat(0f, 1.5f), 20 + Main.rand.Next(30), 1, 3f);
|
||||
GeneralParticleHandler.SpawnParticle(crit);
|
||||
}
|
||||
|
||||
for (float i = 0f; i < 1; i += 0.05f)
|
||||
{
|
||||
float rotation = i * MathHelper.TwoPi;
|
||||
Particle Sparkle = new CritSpark(Projectile.Center + rotation.ToRotationVector2() * 65f * Projectile.scale, rotation.ToRotationVector2() * 10f, Color.White, Main.rand.NextBool() ? Color.Aqua : Color.SpringGreen, 0.1f + Main.rand.NextFloat(0f, 1.5f), 20 + Main.rand.Next(30), 1, 3f);
|
||||
GeneralParticleHandler.SpawnParticle(Sparkle);
|
||||
Particle crit = new CritSpark(Projectile.Center + rotation.ToRotationVector2() * 65f * Projectile.scale, rotation.ToRotationVector2() * 10f, Color.White, Main.rand.NextBool() ? Color.Aqua : Color.SpringGreen, 0.1f + Main.rand.NextFloat(0f, 1.5f), 20 + Main.rand.Next(30), 1, 3f);
|
||||
GeneralParticleHandler.SpawnParticle(crit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -48,10 +48,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.timeLeft = OmegaBiomeBlade.SuperPogoAttunement_LocalIFrames;
|
||||
}
|
||||
|
||||
public override bool? CanDamage()
|
||||
{
|
||||
return Projectile.timeLeft <= 2; //Prevent spam click abuse
|
||||
}
|
||||
public override bool? CanDamage() => Projectile.timeLeft <= 2; //Prevent spam click abuse
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
@@ -120,7 +117,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
// 17APR2024: Ozzatron: True Biome Blade's pogo gives iframes when striking enemies in a similar manner to a bonk dash.
|
||||
// This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace.
|
||||
Owner.GiveUniversalIFrames(OmegaBiomeBlade.SuperPogoAttunement_SlashIFrames);
|
||||
Owner.GiveUniversalIFrames(OmegaBiomeBlade.SuperPogoAttunement_PlayerSliceIFrames);
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -148,8 +145,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.Center = Owner.Center + (direction * 60);
|
||||
|
||||
//Scaling based on shred
|
||||
Projectile.localNPCHitCooldown = OmegaBiomeBlade.SuperPogoAttunement_LocalIFrames - (int)(MathHelper.Lerp(0, OmegaBiomeBlade.SuperPogoAttunement_LocalIFrames - OmegaBiomeBlade.SuperPogoAttunement_LocalIFramesCharged, ShredRatio)); //Increase the hit frequency
|
||||
Projectile.scale = 1f + (ShredRatio * 1f); //SWAGGER
|
||||
Projectile.scale = 1.25f + (ShredRatio * 1f); //SWAGGER
|
||||
|
||||
|
||||
if ((Wheel == null || !Wheel.active) && Dashing)
|
||||
@@ -160,7 +156,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.MeatySlashSound, Projectile.Center);
|
||||
if (Owner.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile proj = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center - DashStart / 2f, Vector2.Zero, ProjectileType<SanguineFuryDash>(), (int)(Projectile.damage * OmegaBiomeBlade.SuperPogoAttunement_SlashDamageBoost), 0, Owner.whoAmI);
|
||||
Projectile proj = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center - DashStart / 2f, Vector2.Zero, ProjectileType<SanguineFuryDash>(), (int)(Projectile.damage * OmegaBiomeBlade.SuperPogoAttunement_SliceDamageMult), 0, Owner.whoAmI);
|
||||
if (proj.ModProjectile is SanguineFuryDash dash)
|
||||
{
|
||||
dash.DashStart = DashStart;
|
||||
@@ -222,27 +218,6 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.timeLeft = 2;
|
||||
}
|
||||
|
||||
//Since the iframes vary, adjust the damage to be consistent no matter the iframes. The true scaling happens between the BaseDamage and the FulLChargeDamage
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
float maxMultiplier = OmegaBiomeBlade.SuperPogoAttunement_FullChargeDamage / (float)OmegaBiomeBlade.SuperPogoAttunement_BaseDamage;
|
||||
float damageMultiplier = MathHelper.Lerp(1f, maxMultiplier, ShredRatio);
|
||||
//Adjust the damage to make it constant based on the local iframes
|
||||
float damageReduction = Projectile.localNPCHitCooldown / (float)OmegaBiomeBlade.SuperPogoAttunement_LocalIFrames;
|
||||
|
||||
modifiers.SourceDamage *= damageMultiplier * damageReduction;
|
||||
}
|
||||
|
||||
public override void ModifyHitPlayer(Player target, ref Player.HurtModifiers modifiers)
|
||||
{
|
||||
float maxMultiplier = OmegaBiomeBlade.SuperPogoAttunement_FullChargeDamage / (float)OmegaBiomeBlade.SuperPogoAttunement_BaseDamage;
|
||||
float damageMultiplier = MathHelper.Lerp(1f, maxMultiplier, ShredRatio);
|
||||
//Adjust the damage to make it constant based on the local iframes
|
||||
float damageReduction = Projectile.localNPCHitCooldown / (float)OmegaBiomeBlade.SuperPogoAttunement_LocalIFrames;
|
||||
|
||||
modifiers.SourceDamage *= damageMultiplier * damageReduction;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => ShredTarget();
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info) => ShredTarget();
|
||||
|
||||
@@ -255,17 +230,14 @@ namespace CalamityMod.Projectiles.Melee
|
||||
sword.OnHitProc = true;
|
||||
|
||||
Owner.fallStart = (int)(Owner.position.Y / 16f);
|
||||
// get lifted up
|
||||
if (PogoCooldown <= 0)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.NPCHit30, Projectile.Center); //Sizzle
|
||||
Shred += 62; //Augment the shredspeed
|
||||
if (Owner.velocity.Y > 0)
|
||||
Owner.velocity.Y = -2f; //Get "stuck" into the enemy partly
|
||||
|
||||
// 17APR2024: Ozzatron: True Biome Blade's shred pogo gives iframes when striking enemies in a similar manner to a bonk dash.
|
||||
// This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace.
|
||||
Owner.GiveUniversalIFrames(OmegaBiomeBlade.SuperPogoAttunement_ShredIFrames);
|
||||
Owner.GiveUniversalIFrames(OmegaBiomeBlade.SuperPogoAttunement_PlayerShredIFrames);
|
||||
|
||||
PogoCooldown = 20;
|
||||
}
|
||||
@@ -276,7 +248,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
SoundEngine.PlaySound(SoundID.NPCHit43, Projectile.Center);
|
||||
if (ShredRatio > 0.8 && Owner.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, direction * 16f, ProjectileType<SanguineFuryWheel>(), (int)(Projectile.damage * OmegaBiomeBlade.SuperPogoAttunement_ShotDamageBoost), Projectile.knockBack, Owner.whoAmI, Shred);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, direction * 16f, ProjectileType<SanguineFuryWheel>(), (int)(Projectile.damage * OmegaBiomeBlade.SuperPogoAttunement_ShotDamageMult), Projectile.knockBack, Owner.whoAmI, Shred);
|
||||
}
|
||||
if (Dashing)
|
||||
{
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (Owner.moonLeech)
|
||||
return;
|
||||
|
||||
Owner.HealPlayer(OmegaBiomeBlade.SuperPogoAttunementSlashLifesteal);
|
||||
Owner.HealPlayer(OmegaBiomeBlade.SuperPogoAttunementSliceLifesteal);
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor) //OMw to reuse way too much code from the entangling vines
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (!initialized) //Initialization. Here its litterally just playing a sound tho lmfao
|
||||
if (!initialized) //Initialization.
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item90, Projectile.Center);
|
||||
Projectile.velocity = Vector2.Zero;
|
||||
@@ -184,7 +184,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
//Manage position and rotation
|
||||
Projectile.scale = 1 + Empowerment / maxEmpowerment * 1.5f;
|
||||
|
||||
direction = direction.RotatedBy(MathHelper.Clamp(Empowerment / maxEmpowerment, 0.4f, 1f) * MathHelper.PiOver4 * 0.20f);
|
||||
direction = direction.RotatedBy(MathHelper.Clamp(Empowerment * 1.1f / maxEmpowerment, 0.45f, 1f) * MathHelper.PiOver4 * 0.20f);
|
||||
direction.Normalize();
|
||||
Projectile.rotation = direction.ToRotation();
|
||||
Projectile.Center = Owner.Center + (direction * Projectile.scale * 10);
|
||||
@@ -238,7 +238,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (CurrentState == 1f)
|
||||
modifiers.SourceDamage *= MathHelper.Lerp(1f, OmegaBiomeBlade.WhirlwindAttunement_ThrowDamageBoost, Empowerment / maxEmpowerment);
|
||||
else
|
||||
modifiers.SourceDamage *= OmegaBiomeBlade.WhirlwindAttunement_BaseDamageReduction + (OmegaBiomeBlade.WhirlwindAttunement_FullChargeDamageBoost * Empowerment / maxEmpowerment);
|
||||
modifiers.SourceDamage *= MathHelper.Lerp(OmegaBiomeBlade.WhirlwindAttunement_BaseSwingDamageMult, OmegaBiomeBlade.WhirlwindAttunement_FullSwingDamageMult, Empowerment / maxEmpowerment);
|
||||
|
||||
if (CurrentState != 1)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user