Buffs to projectile speed
Thanathos resists it less Variable rename to make more sense
This commit is contained in:
1 parent
f666c38e81
commit
c36d2641bf
3 files changed
+34
-34
No files matched your search
@@ -273,8 +273,8 @@ namespace CalamityMod.Balancing
|
||||
// TODO -- NPC sets (mostly worm bosses) should probably be their own holding class.
|
||||
int[] exoTwins = new int[] { NPCType<Artemis>(), NPCType<Apollo>() };
|
||||
|
||||
// 20% resist to Dynamic Pursuer
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
// 15% resist to Dynamic Pursuer
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
|
||||
// 10% resist to Eclipse's Fall stealth strike.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(exoTwins, Do(new ProjectileResistBalancingRule(0.9f, ProjectileType<EclipsesSmol>()))));
|
||||
@@ -290,9 +290,6 @@ namespace CalamityMod.Balancing
|
||||
// 65% resist to Enforcer projectiles.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<EssenceFlame2>()))));
|
||||
|
||||
// 65% resist to Dynamic Pursuer.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
|
||||
// 50% resist to Chicken Cannon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<ChickenExplosion>()))));
|
||||
|
||||
@@ -308,6 +305,9 @@ namespace CalamityMod.Balancing
|
||||
// 50% resist to Wrathwing stealth strike.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<WrathwingCinder>()))));
|
||||
|
||||
// 40% resist to Dynamic Pursuer. (Do 65% if lightning pierce is brought back)
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
|
||||
|
||||
// 40% resist to Rancor.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<RancorLaserbeam>()))));
|
||||
|
||||
|
||||
@@ -49,12 +49,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
public static float StealthDmgMult = 0.3f; //So I can edit it directly via DragonLens instead of having to do math with CalTestHelpers
|
||||
public override float StealthDamageMultiplier => StealthDmgMult;
|
||||
public override float StealthVelocityMultiplier => 0.8f;
|
||||
public override float StealthVelocityMultiplier => 0.9f;
|
||||
|
||||
//Stuff to be used on the projectile, but here for ease of access ingame via DragonLens
|
||||
public static float ReturnAcceleration = 0.75f;
|
||||
public static float ReturnMaxSpeed = 24f;
|
||||
public static float VelocityCap = 24f;
|
||||
public static float RicochetVelocityCap = 28f;
|
||||
public static float ElectricityDmgMult = 0.3f;
|
||||
public static float ElectricityCooldown = 500f;
|
||||
public static float ElectricityCooldownStealth = 850f;
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
//Variables inherited from the weapon, they can be changed with DragonLens
|
||||
public float ReturnAcceleration = DynamicPursuer.ReturnAcceleration;
|
||||
public float ReturnMaxSpeed = DynamicPursuer.ReturnMaxSpeed;
|
||||
public float VelocityCap = DynamicPursuer.VelocityCap;
|
||||
public float RicochetVelocityCap = DynamicPursuer.RicochetVelocityCap;
|
||||
public float ElectricityDmgMult = DynamicPursuer.ElectricityDmgMult;
|
||||
public float ElectricityCooldown = DynamicPursuer.ElectricityCooldown;
|
||||
public float ElectricityCooldownStealth = DynamicPursuer.ElectricityCooldownStealth;
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Time++;
|
||||
if (!ReturningToPlayer)
|
||||
{
|
||||
if (Time >= 60f && !Ricochet)
|
||||
if (Time >= 45f && !Ricochet)
|
||||
{
|
||||
ReturningToPlayer = true;
|
||||
Projectile.tileCollide = false;
|
||||
@@ -96,14 +96,14 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.velocity = (float)Math.Pow(Math.E, Time / 200) * (nextTarget.Center - Projectile.Center).SafeNormalize(Vector2.One);
|
||||
|
||||
// Cap velocity to prevent projectile vomit and to see easier where its going
|
||||
if (Projectile.velocity.X > VelocityCap)
|
||||
Projectile.velocity.X = VelocityCap;
|
||||
if (Projectile.velocity.X < -VelocityCap)
|
||||
Projectile.velocity.X = -VelocityCap;
|
||||
if (Projectile.velocity.Y > VelocityCap)
|
||||
Projectile.velocity.Y = VelocityCap;
|
||||
if (Projectile.velocity.Y < -VelocityCap)
|
||||
Projectile.velocity.Y = -VelocityCap;
|
||||
if (Projectile.velocity.X > RicochetVelocityCap)
|
||||
Projectile.velocity.X = RicochetVelocityCap;
|
||||
if (Projectile.velocity.X < -RicochetVelocityCap)
|
||||
Projectile.velocity.X = -RicochetVelocityCap;
|
||||
if (Projectile.velocity.Y > RicochetVelocityCap)
|
||||
Projectile.velocity.Y = RicochetVelocityCap;
|
||||
if (Projectile.velocity.Y < -RicochetVelocityCap)
|
||||
Projectile.velocity.Y = -RicochetVelocityCap;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -139,14 +139,14 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.velocity.Y += Math.Sign(idealVelocity.Y - Projectile.velocity.Y) * ReturnAcceleration;
|
||||
|
||||
// Cap velocity to prevent projectile vomit and to see easier where its going
|
||||
if (Projectile.velocity.X > VelocityCap)
|
||||
Projectile.velocity.X = VelocityCap;
|
||||
if (Projectile.velocity.X < -VelocityCap)
|
||||
Projectile.velocity.X = -VelocityCap;
|
||||
if (Projectile.velocity.Y > VelocityCap)
|
||||
Projectile.velocity.Y = VelocityCap;
|
||||
if (Projectile.velocity.Y < -VelocityCap)
|
||||
Projectile.velocity.Y = -VelocityCap;
|
||||
if (Projectile.velocity.X > RicochetVelocityCap)
|
||||
Projectile.velocity.X = RicochetVelocityCap;
|
||||
if (Projectile.velocity.X < -RicochetVelocityCap)
|
||||
Projectile.velocity.X = -RicochetVelocityCap;
|
||||
if (Projectile.velocity.Y > RicochetVelocityCap)
|
||||
Projectile.velocity.Y = RicochetVelocityCap;
|
||||
if (Projectile.velocity.Y < -RicochetVelocityCap)
|
||||
Projectile.velocity.Y = -RicochetVelocityCap;
|
||||
|
||||
ElectricVelocityCharge += Projectile.velocity.Length();
|
||||
LaserVelocityCharge += Projectile.velocity.Length();
|
||||
@@ -209,7 +209,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
if ((Projectile.Calamity().stealthStrike && Projectile.numHits == 4))
|
||||
{
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<PlasmaGrenadeSmallExplosion>(), Projectile.damage * 3/4, Projectile.knockBack * 2f, Projectile.owner);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<PlasmaGrenadeSmallExplosion>(), Projectile.damage * 3/4, Projectile.knockBack * 2f, Projectile.owner);
|
||||
|
||||
{
|
||||
for (int i = 0; i < 220; i++)
|
||||
@@ -266,14 +266,14 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.netUpdate = true;
|
||||
|
||||
// Cap velocity to prevent projectile vomit and to see easier where its going
|
||||
if (Projectile.velocity.X > VelocityCap)
|
||||
Projectile.velocity.X = VelocityCap;
|
||||
if (Projectile.velocity.X < -VelocityCap)
|
||||
Projectile.velocity.X = -VelocityCap;
|
||||
if (Projectile.velocity.Y > VelocityCap)
|
||||
Projectile.velocity.Y = VelocityCap;
|
||||
if (Projectile.velocity.Y < -VelocityCap)
|
||||
Projectile.velocity.Y = -VelocityCap;
|
||||
if (Projectile.velocity.X > RicochetVelocityCap)
|
||||
Projectile.velocity.X = RicochetVelocityCap;
|
||||
if (Projectile.velocity.X < -RicochetVelocityCap)
|
||||
Projectile.velocity.X = -RicochetVelocityCap;
|
||||
if (Projectile.velocity.Y > RicochetVelocityCap)
|
||||
Projectile.velocity.Y = RicochetVelocityCap;
|
||||
if (Projectile.velocity.Y < -RicochetVelocityCap)
|
||||
Projectile.velocity.Y = -RicochetVelocityCap;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user