Fixed Rogue Stealth Damage prefixes reducing damage, nerfed UniversalStealthStrikeDamageFactor
Others: Some minor tweaks to OD's rogue drops that are WIP
This commit is contained in:
1 parent
5420bb4657
commit
694df184a7
5 files changed
+23
-12
No files matched your search
@@ -59,7 +59,18 @@
|
||||
// Rogue stealth
|
||||
// If stealth is too weak, increase this number. If stealth is too strong, decrease this number.
|
||||
// This value is intentionally not readonly.
|
||||
public static double UniversalStealthStrikeDamageFactor = 0.5;
|
||||
public static double UniversalStealthStrikeDamageFactor = 0.41;
|
||||
// Shade - 07/09/2023
|
||||
// Universal Stealth dmg factor was nerfed to 0.41 from 0.5
|
||||
// Stealth damage prefixes were bugged, causing that stealth strikes with the Mighty, Hefty and most importantly Flawless
|
||||
// dealt less damage than intended; idk how long this thing has been for but looking at #bug-reports and #known-bugs its
|
||||
// likely at least 7 months old, buried deep beneath a lot other bugs due to being in the port and forgotten about.
|
||||
// Due to how impactful the fix was, the change had to happen and thus the nerf was made.
|
||||
//
|
||||
// This nerf should be reversed once the stealth -> focus rogue rework or rogue/stealth III or however you want to call it occurs,
|
||||
// as of today summoner is the priority class now but once we're done with the Summoner minion culling and its Whip Hell we should
|
||||
// probably start working on rogue afterwards.
|
||||
|
||||
internal static readonly float BaseStealthGenTime = 4f; // 4 seconds
|
||||
internal static readonly float MovingStealthGenRatio = 0.5f;
|
||||
|
||||
|
||||
@@ -3690,7 +3690,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
// Apply weapon modifier stealth strike damage bonus
|
||||
if (item.Calamity().StealthStrikePrefixBonus != 0f && StealthStrikeAvailable())
|
||||
damage += 1f - item.Calamity().StealthStrikePrefixBonus;
|
||||
damage += 1f + item.Calamity().StealthStrikePrefixBonus;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int spread = 10;
|
||||
for (int i = 0; i < 4; i++)
|
||||
int spread = 15;
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3,4), velocity.Y + Main.rand.Next(-3,4)).RotatedBy(MathHelper.ToRadians(spread));
|
||||
int proj = Projectile.NewProjectile(source, position, perturbedspeed, type, damage, knockback, player.whoAmI);
|
||||
|
||||
@@ -27,10 +27,10 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.extraUpdates = 2;
|
||||
Projectile.timeLeft = Projectile.MaxUpdates * 90;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 26; // can't hit too fast, but can hit many many times
|
||||
Projectile.localNPCHitCooldown = 18; // can't hit too fast, but can hit many many times
|
||||
Projectile.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
}
|
||||
}
|
||||
Projectile.rotation += 0.07f;
|
||||
Projectile.rotation += 0.3f;
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
@@ -154,14 +154,14 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<CrushDepth>(), 180);
|
||||
target.AddBuff(ModContent.BuffType<Irradiated>(), 180);
|
||||
//target.AddBuff(ModContent.BuffType<Irradiated>(), 180);
|
||||
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 180);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<CrushDepth>(), 180);
|
||||
target.AddBuff(ModContent.BuffType<Irradiated>(), 180);
|
||||
//target.AddBuff(ModContent.BuffType<Irradiated>(), 180);
|
||||
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 180);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,9 +41,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
Projectile.rotation += 0.06f * (Projectile.velocity.X > 0).ToDirectionInt();
|
||||
}
|
||||
|
||||
// Boomerang rotation
|
||||
Projectile.rotation += 0.4f * Projectile.direction;
|
||||
else
|
||||
// Boomerang rotation
|
||||
Projectile.rotation += 0.4f * Projectile.direction;
|
||||
|
||||
// Boomerang sound
|
||||
if (Projectile.soundDelay == 0)
|
||||
|
||||
Reference in new issue
Block a user