From cbb50c5f5a2a9302f12854fe34f424f340b4f925 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 13 Feb 2026 17:03:39 -0500 Subject: [PATCH] 1 - Tightened frame timing on Perfect Light-speed Carves to 4 frames (it was too easy). 2 - Added dedicated colors for light-speed carves. 3 - Existing light-speed carve visual (by Jasper) shortened in length considerably. 4 - Removed chance for two large black slashes to appear at once on a perfect carve. --- Items/Weapons/Rogue/NanoblackReaper.cs | 6 ++++-- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 2 +- .../NanoblackLightspeedCarveSlashVisual.cs | 21 +++++++++++-------- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Items/Weapons/Rogue/NanoblackReaper.cs b/Items/Weapons/Rogue/NanoblackReaper.cs index abd6f30d34..7c690b132a 100644 --- a/Items/Weapons/Rogue/NanoblackReaper.cs +++ b/Items/Weapons/Rogue/NanoblackReaper.cs @@ -29,6 +29,8 @@ namespace CalamityMod.Items.Weapons.Rogue internal static readonly Color ZeroPointLineColor = new Color(24, 191, 160); // #1FBFA0 internal static readonly Color ZeroPointImpactColor = new Color(31, 223, 128, 96); // #1FDF80 internal static readonly Color PiercingStrikeColor = new Color(36, 252, 212); // #24FCD4 + internal static readonly Color LightspeedCarveColor1 = new Color(68, 242, 242); // #44F2F2 + internal static readonly Color LightspeedCarveColor2 = new Color(66, 219, 173); // #42DBAD public bool ShowExtensionIndicator => false; public bool HasFlavorTooltip => true; @@ -39,8 +41,8 @@ namespace CalamityMod.Items.Weapons.Rogue public static float Speed = 16f; public static int FocusFlurryAttacks = 12; - public static int PerfectLightspeedCarveFrames = 6; - public static int ImperfectLightspeedCarveFrames = 6; // This frame window is immediately after the perfect window. + public static int PerfectLightspeedCarveFrames = 4; + public static int ImperfectLightspeedCarveFrames = 8; // This frame window is immediately after the perfect window. public static float LightspeedCarveKnockback = 7f; public static int ArmorPenetration = 30; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 20b5fa8eff..1ae9e55f0e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -790,7 +790,7 @@ NanoblackReaper: { Nanoblack tesselations each emit an instantaneous zero-point energy strike Zero-point energy strikes have 150 armor penetration and will target bosses whenever possible Release just as the scythe begins returning to carve through the enemy closest to your cursor at light speed - Light-speed carves have 150 armor penetration. If timed in a 6-frame window, they supercrit with +100% critical strike chance + Light-speed carves have 150 armor penetration. If timed in a 4-frame window, they supercrit with +100% critical strike chance with sufficient stealth to massively increase attack speed for a short time Scythes thrown during flurries emit supercharged energy strikes but cannot be returned manually ''' diff --git a/Projectiles/Rogue/NanoblackLightspeedCarveSlashVisual.cs b/Projectiles/Rogue/NanoblackLightspeedCarveSlashVisual.cs index bc199697f1..49d84325d8 100644 --- a/Projectiles/Rogue/NanoblackLightspeedCarveSlashVisual.cs +++ b/Projectiles/Rogue/NanoblackLightspeedCarveSlashVisual.cs @@ -20,11 +20,11 @@ namespace CalamityMod.Projectiles.Rogue #region params private const int VisualLifetime = 80; - private const int GrowTime = 8; + private const int GrowTime = 3; private const int FadeInTime = 1; - private const int FadeOutTime = 14; + private const int FadeOutTime = 5; private const int SlashDelay = 2; - private const int HoldTime = 8; + private const int HoldTime = 5; private const float FlashIntensity = 1.8f; private const float FlashDuration = 0.15f; private const float RangeMultiplier = 2.2f; @@ -74,7 +74,9 @@ namespace CalamityMod.Projectiles.Rogue AlphaDestinationBlend = Blend.InverseSourceAlpha, }; - private int GiantSlashCount + private int GiantSlashCount => 1; + // 13FEB2026: Ozzatron: previous hash function for allowing multiple visual giant slashes preserved + /* { get { @@ -82,6 +84,7 @@ namespace CalamityMod.Projectiles.Rogue return Hash(seed * 3.91f) > 0.5f ? 2 : 1; } } + */ internal bool IsPerfect => Projectile.ai[0] == 1f; @@ -238,7 +241,7 @@ namespace CalamityMod.Projectiles.Rogue Effect shader = CalamityShaders.NanoblackSlashShader.Value; float time = (float)Main.gameTimeCache.TotalGameTime.TotalSeconds; shader.Parameters["uTime"]?.SetValue(time); - Color c = NanoblackReaper.NanoblackSlashColor1; + Color c = IsPerfect ? NanoblackReaper.LightspeedCarveColor1 : NanoblackReaper.NanoblackSlashColor2; shader.Parameters["uColor"]?.SetValue(new Vector3(c.R / 255f, c.G / 255f, c.B / 255f)); shader.Parameters["uBrightness"]?.SetValue(1f); @@ -356,8 +359,8 @@ namespace CalamityMod.Projectiles.Rogue float retreatProgress = MathF.Pow(retreatT, 0.4f) * (1f + RetreatOvershoot); float colorShift = MathF.Pow(1f - smoothFadeOut, 2f); - Color aliveColor = NanoblackReaper.NanoblackSlashColor1; - Color dyingColor = NanoblackReaper.ZeroPointLineColor; + Color aliveColor = NanoblackReaper.LightspeedCarveColor1; + Color dyingColor = NanoblackReaper.LightspeedCarveColor2; Color baseColor = Color.Lerp(aliveColor, dyingColor, colorShift); float opacityFade = MathF.Pow(MathHelper.Clamp(smoothFadeOut / 0.2f, 0f, 1f), 0.3f); @@ -428,7 +431,7 @@ namespace CalamityMod.Projectiles.Rogue float currentWidth = GiantSlashWidth * widthCollapse * impactWidthBoost; float opacity = MathF.Pow(MathHelper.Clamp(smoothFade / 0.15f, 0f, 1f), 0.3f) * MathF.Min(impactFlash, 2.5f); - Color edgeColor = NanoblackReaper.NanoblackSlashColor1 * opacity; + Color edgeColor = NanoblackReaper.LightspeedCarveColor1 * opacity; float retreatProgress = CalculateGiantRetreatProgress(fadeLinear); @@ -489,7 +492,7 @@ namespace CalamityMod.Projectiles.Rogue scope.Draw(mesh.View); - Color c = NanoblackReaper.NanoblackSlashColor1; + Color c = NanoblackReaper.LightspeedCarveColor1; shader.Parameters["uColor"]?.SetValue(new Vector3(c.R / 255f, c.G / 255f, c.B / 255f)); shader.Parameters["uBrightness"]?.SetValue(1f); }