Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
4381cf3ea2
8 files changed
+31
-19
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,12 +26,12 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
Item.width = 22;
|
||||
Item.height = 28;
|
||||
Item.damage = 1000;
|
||||
Item.damage = 900;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.consumable = false;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useAnimation = Item.useTime = 27;
|
||||
Item.useAnimation = Item.useTime = 30;
|
||||
Item.knockBack = 3f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
modItem.ChargePerUse = 0.25f;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.2f;
|
||||
public override float StealthDamageMultiplier => 0.9f;
|
||||
public override float StealthVelocityMultiplier => 1.2f;
|
||||
public override float StealthKnockbackMultiplier => 1.5f;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -85,13 +85,14 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
int projID = ModContent.ProjectileType<PhantasmalSoulBlue>();
|
||||
int soulDamage = (int)(Projectile.damage * 0.2f);
|
||||
float soulKB = 0f;
|
||||
float speed = 10f;
|
||||
float speed = 4f;
|
||||
float startAngle = Main.rand.NextFloat(-0.07f, 0.07f) + MathHelper.PiOver4;
|
||||
Vector2 velocity = (Vector2.UnitX * speed).RotatedBy(startAngle);
|
||||
for (int i = 0; i < numSouls; i += 2)
|
||||
{
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, projID, soulDamage, soulKB, Projectile.owner, 0f);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, -velocity, projID, soulDamage, soulKB, Projectile.owner, 0f);
|
||||
Vector2 velocityrandom = velocity.RotatedByRandom(1.5f);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity + velocityrandom, projID, soulDamage, soulKB, Projectile.owner, 0f);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, -velocity - velocityrandom, projID, soulDamage, soulKB, Projectile.owner, 0f);
|
||||
// Rotate direction for the next pair of souls.
|
||||
velocity = velocity.RotatedBy(MathHelper.TwoPi / numSouls);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class PhantasmalSoulBlue : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/PhantomSpirit") { Volume = 0.3f };
|
||||
public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/PhantomSpirit") { Volume = 0.2f };
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
private const int Lifetime = 300;
|
||||
private const int NoHomingFrames = 45;
|
||||
|
||||
@@ -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