diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 4528b71cc6..691dc109cd 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -51,6 +51,9 @@ namespace CalamityMod.Balancing bool MushroomSpearFilter(Projectile p) => p.type == ProjectileID.Mushroom && Main.player[p.owner].ActiveItem().type == ItemID.MushroomSpear; + bool AotCThrowCombo(Projectile p) => + p.type == ProjectileType() && (p.ai[0] == 2 || p.ai[0] == 3); + UniversalBalancingChanges = new List() { // Nerf the T3 Monk Staff by 75% due to its strong primary fire buff. @@ -227,6 +230,9 @@ namespace CalamityMod.Balancing // 50% resist to Enforcer projectiles. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); + // 30% resist to the Spin Throw part of the Ark of the Cosmos' combo + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.7f, AotCThrowCombo)))); + // 20% resist to Eclipse's Fall stealth strike. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType())))); @@ -273,6 +279,9 @@ namespace CalamityMod.Balancing // 40% resist to Yharim's Crystal. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType())))); + // 30% resist to the Spin Throw part of the Ark of the Cosmos' combo + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.7f, AotCThrowCombo)))); + // 30% resist to Sirius. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType())))); diff --git a/Buffs/Potions/AbyssalWeapon.cs b/Buffs/Potions/AbyssalWeapon.cs index 4f386c6a7d..33ec746212 100644 --- a/Buffs/Potions/AbyssalWeapon.cs +++ b/Buffs/Potions/AbyssalWeapon.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Potions public override void SetDefaults() { DisplayName.SetDefault("Abyssal Weapon"); - Description.SetDefault("Melee and rogue weapons inflict abyssal flames, 10% increased movement speed"); + Description.SetDefault("Melee and rogue weapons inflict abyssal flames, 5% increased movement speed"); Main.debuff[Type] = false; Main.pvpBuff[Type] = true; Main.buffNoSave[Type] = false; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 016f9da040..0d66658bbb 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2714,7 +2714,7 @@ namespace CalamityMod.CalPlayer } if (aWeapon) - player.moveSpeed += 0.1f; + player.moveSpeed += 0.05f; if (molten) player.resistCold = true; diff --git a/Effects/Dyes/AstralBlueDyeShader.fx b/Effects/Dyes/AstralBlueDyeShader.fx index 3373d2db78..66d49b2645 100644 --- a/Effects/Dyes/AstralBlueDyeShader.fx +++ b/Effects/Dyes/AstralBlueDyeShader.fx @@ -13,12 +13,12 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float interval = cos(uTime * 7 + coords.x * 4) / 2 + 0.5; float4 returnColor = float4(lerp(uColor, uSecondaryColor, interval), 1); // Fade between two colors depending on the time and x position on the texture in a 0-1 cosine linear interpolation. The color can vary. - return returnColor * color; // And multiply by the original color to give it a blend effect. + return returnColor * color * sampleColor.a; // And multiply by the original color to give it a blend effect. } technique Technique1 { diff --git a/Effects/Dyes/AstralBlueDyeShader.xnb b/Effects/Dyes/AstralBlueDyeShader.xnb index e49d82be14..79acc37df7 100644 Binary files a/Effects/Dyes/AstralBlueDyeShader.xnb and b/Effects/Dyes/AstralBlueDyeShader.xnb differ diff --git a/Effects/Dyes/AstralDyeShader.fx b/Effects/Dyes/AstralDyeShader.fx index df5d38fc28..8b44f7a6f7 100644 --- a/Effects/Dyes/AstralDyeShader.fx +++ b/Effects/Dyes/AstralDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; @@ -35,7 +35,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO // Become notably darker to reinforce the stone aesthetic. stoneColor.rgb *= 0.2 + noiseColor.r * 0.65; - return (stoneColor + flameColor * 0.4) * color.a; + return (stoneColor + flameColor * 0.4) * sampleColor.a * color.a; } technique Technique1 { diff --git a/Effects/Dyes/AstralDyeShader.xnb b/Effects/Dyes/AstralDyeShader.xnb index 2d0d8cd273..6d92003740 100644 Binary files a/Effects/Dyes/AstralDyeShader.xnb and b/Effects/Dyes/AstralDyeShader.xnb differ diff --git a/Effects/Dyes/AstralOrangeDyeShader.fx b/Effects/Dyes/AstralOrangeDyeShader.fx index d818ed01a9..19f6ef4b48 100644 --- a/Effects/Dyes/AstralOrangeDyeShader.fx +++ b/Effects/Dyes/AstralOrangeDyeShader.fx @@ -13,14 +13,14 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float interval = (cos((uTime - 0.5) * 17 + frameY * 8) / 2 + 0.5); float4 returnColor = float4(lerp(uColor, uSecondaryColor, interval), 1); // One again, use a cosine lerp based on position and time, but this time, with the Y position. - return returnColor * color; + return returnColor * color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/AstralOrangeDyeShader.xnb b/Effects/Dyes/AstralOrangeDyeShader.xnb index 3b3ba572d1..3b4cb4e269 100644 Binary files a/Effects/Dyes/AstralOrangeDyeShader.xnb and b/Effects/Dyes/AstralOrangeDyeShader.xnb differ diff --git a/Effects/Dyes/AstralSwirlDyeShader.fx b/Effects/Dyes/AstralSwirlDyeShader.fx index 47674dfa44..be2adebc44 100644 --- a/Effects/Dyes/AstralSwirlDyeShader.fx +++ b/Effects/Dyes/AstralSwirlDyeShader.fx @@ -18,7 +18,7 @@ float2 RotatedBy(float2 xy, float theta) return float2(xy.x * cos(theta) + xy.y * sin(theta), xy.x * sin(theta) - xy.y * cos(theta)); } -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. @@ -44,7 +44,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO returnColor = lerp(returnColor, uSecondaryColor, (frameY - 0.5) * 3); } - return float4(returnColor, 1) * color * brightness; + return float4(returnColor, 1) * color * sampleColor.a * brightness; } technique Technique1 { diff --git a/Effects/Dyes/AstralSwirlDyeShader.xnb b/Effects/Dyes/AstralSwirlDyeShader.xnb index 8cb8335ce7..f304aecef7 100644 Binary files a/Effects/Dyes/AstralSwirlDyeShader.xnb and b/Effects/Dyes/AstralSwirlDyeShader.xnb differ diff --git a/Effects/Dyes/AuricDyeShader.fx b/Effects/Dyes/AuricDyeShader.fx index 79b22fa0e0..83c2a873bd 100644 --- a/Effects/Dyes/AuricDyeShader.fx +++ b/Effects/Dyes/AuricDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; @@ -35,7 +35,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO // Use a specialized blend method to create the shine effect. color.rgb = (length(color.rgb) <= 0.5) ? 2 * color.rgb * goldColor : 1 - 2 * (1 - color.rgb) * (1 - goldColor); - return (color + noiseColor * 0.45) * color.a; + return (color + noiseColor * 0.45) * color.a * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/AuricDyeShader.xnb b/Effects/Dyes/AuricDyeShader.xnb index 043a2aa01f..88589a384d 100644 Binary files a/Effects/Dyes/AuricDyeShader.xnb and b/Effects/Dyes/AuricDyeShader.xnb differ diff --git a/Effects/Dyes/BloodflareDyeShader.fx b/Effects/Dyes/BloodflareDyeShader.fx index 8feb36ca88..a703037408 100644 --- a/Effects/Dyes/BloodflareDyeShader.fx +++ b/Effects/Dyes/BloodflareDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 pixelBelow = tex2D(uImage0, coords); @@ -33,7 +33,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO // Handle red fades based on noise. color = lerp(color, float4(1, 0, 0, 1), pow(noiseColor.r, 3) * 0.3 + verticalFlowMovement * 0.3 + 0.16) * color.a; - return color * (1 + (1 - outlineFade) * 0.25); + return color * (1 + (1 - outlineFade) * 0.25) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/BloodflareDyeShader.xnb b/Effects/Dyes/BloodflareDyeShader.xnb index 38f007ade2..69af3ab93a 100644 Binary files a/Effects/Dyes/BloodflareDyeShader.xnb and b/Effects/Dyes/BloodflareDyeShader.xnb differ diff --git a/Effects/Dyes/BrimflameDyeShader.fx b/Effects/Dyes/BrimflameDyeShader.fx index a1ed9c52e5..f418949a58 100644 --- a/Effects/Dyes/BrimflameDyeShader.fx +++ b/Effects/Dyes/BrimflameDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; @@ -29,7 +29,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO float3 flameColor = lerp(alteredColor, alteredSecondaryColor, fadeToRed); flameColor.r = 0.6 + sqrt(fadeToRed) * 0.4; color = lerp(color, float4(flameColor, 1), 0.45) * color.a; - return color * lerp(1.3, 5.4, pow(flameStreakBrightness, 4.44)); + return color * lerp(1.3, 5.4, pow(flameStreakBrightness, 4.44)) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/BrimflameDyeShader.xnb b/Effects/Dyes/BrimflameDyeShader.xnb index bc24979c8f..1333abdce6 100644 Binary files a/Effects/Dyes/BrimflameDyeShader.xnb and b/Effects/Dyes/BrimflameDyeShader.xnb differ diff --git a/Effects/Dyes/CalamitousDyeShader.fx b/Effects/Dyes/CalamitousDyeShader.fx index 8b1c719929..b663f73290 100644 --- a/Effects/Dyes/CalamitousDyeShader.fx +++ b/Effects/Dyes/CalamitousDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 noiseColor = tex2D(uImage1, float2(coords.x, frameY)); @@ -32,7 +32,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO blendFactor *= frameY / 0.2; } float4 colorBlendMultiplier = lerp(float4(blendColor, 1), float4(1, 1, 1, 1), saturate(pow(blendFactor * 1.5, 2))); - return (lerp(color, float4(blendColor, 1), blendFactor * 0.5 + 0.2) * color.a) * colorBlendMultiplier * (1 + brightness); + return (lerp(color, float4(blendColor, 1), blendFactor * 0.5 + 0.2) * color.a) * colorBlendMultiplier * (1 + brightness) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/CalamitousDyeShader.xnb b/Effects/Dyes/CalamitousDyeShader.xnb index 6b978597fa..6777aa2535 100644 Binary files a/Effects/Dyes/CalamitousDyeShader.xnb and b/Effects/Dyes/CalamitousDyeShader.xnb differ diff --git a/Effects/Dyes/CeaselessDyeShader.fx b/Effects/Dyes/CeaselessDyeShader.fx index c0041ee41d..4760aab8c2 100644 --- a/Effects/Dyes/CeaselessDyeShader.fx +++ b/Effects/Dyes/CeaselessDyeShader.fx @@ -19,14 +19,14 @@ float randomness(float2 uv) return noise; } -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. coords.x += randomness(uTime + frameY).x * 0.09 * (1 - frameY); // Add an X offset based on a noise function, giving a moon lord void-esque shader effect. float4 color = tex2D(uImage0, coords); float4 returnColor = color * 0.1; returnColor.a = color.a; - return returnColor; + return returnColor * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/CeaselessDyeShader.xnb b/Effects/Dyes/CeaselessDyeShader.xnb index 6981b49bd1..b0a91c8148 100644 Binary files a/Effects/Dyes/CeaselessDyeShader.xnb and b/Effects/Dyes/CeaselessDyeShader.xnb differ diff --git a/Effects/Dyes/CosmicFlameShader.fx b/Effects/Dyes/CosmicFlameShader.fx index c22f1386bd..e2853e6b6a 100644 --- a/Effects/Dyes/CosmicFlameShader.fx +++ b/Effects/Dyes/CosmicFlameShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float2 swirlOffset = float2(sin(uTime * 0.26 + 1.754) * 0.31, sin(uTime * 0.26) * 0.16) * uSaturation; @@ -38,7 +38,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO // And create stars based on a noise texture that rise upward. color = lerp(color, float4(starColor, 1) * color.a, fadeToNormal * pow(brightnessFactor, 6) * 0.15); - return color * (1 + brightnessFactor); + return color * (1 + brightnessFactor) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/CosmicFlameShader.xnb b/Effects/Dyes/CosmicFlameShader.xnb index 5855010558..6c9512251b 100644 Binary files a/Effects/Dyes/CosmicFlameShader.xnb and b/Effects/Dyes/CosmicFlameShader.xnb differ diff --git a/Effects/Dyes/CosmiliteDyeShader.fx b/Effects/Dyes/CosmiliteDyeShader.fx index 9d82f896ee..027d02bf3c 100644 --- a/Effects/Dyes/CosmiliteDyeShader.fx +++ b/Effects/Dyes/CosmiliteDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; @@ -22,7 +22,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO float3 cosmiliteMetalColor = float3(122 / 255.0, 127 / 255.0, 155 / 255.0); float4 noiseColor = tex2D(uImage1, float2(coords.x, frac(frameY + uTime * 1.51)) * 0.12); float4 noiseColor2 = tex2D(uImage1, float2(coords.x, frac(frameY + uTime * 1.51 - 0.458)) * 0.12); - float opacity = color.a; + float opacity = color.a * sampleColor.a; float3 baseColor = lerp(uColor, cosmiliteMetalColor, 0.3) * (1 - pow(noiseColor.r, 3) * 0.5); baseColor = lerp(color.rgb, baseColor, 0.67); baseColor *= 1 + pow(baseColor, 5).r * 8 - noiseColor2.r * 1.25; diff --git a/Effects/Dyes/CosmiliteDyeShader.xnb b/Effects/Dyes/CosmiliteDyeShader.xnb index a93ea59ac9..d2dc3719d4 100644 Binary files a/Effects/Dyes/CosmiliteDyeShader.xnb and b/Effects/Dyes/CosmiliteDyeShader.xnb differ diff --git a/Effects/Dyes/CryonicDyeShader.fx b/Effects/Dyes/CryonicDyeShader.fx index 3a108d42f8..a0d3c17dd1 100644 --- a/Effects/Dyes/CryonicDyeShader.fx +++ b/Effects/Dyes/CryonicDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 noiseColor = tex2D(uImage1, float2(frac(coords.x + uTime * 0.1), frameY)); @@ -31,7 +31,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO if (normalizedDistanceFromCenter > 0.7) fadeToSecondaryColor *= saturate(1 - (normalizedDistanceFromCenter - 0.7) / 0.2); float4 endFadeColor = lerp(float4(uColor, 1), float4(uSecondaryColor, 1), 0.5); - return (lerp(color, endFadeColor, 0.3 + fadeToSecondaryColor * 0.6) * color.a) * (1 + brightness); + return (lerp(color, endFadeColor, 0.3 + fadeToSecondaryColor * 0.6) * color.a) * (1 + brightness) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/CryonicDyeShader.xnb b/Effects/Dyes/CryonicDyeShader.xnb index b86a3506e9..ab6b903154 100644 Binary files a/Effects/Dyes/CryonicDyeShader.xnb and b/Effects/Dyes/CryonicDyeShader.xnb differ diff --git a/Effects/Dyes/DefiledFlameDyeShader.fx b/Effects/Dyes/DefiledFlameDyeShader.fx index 8d7f5639b6..e1e4e657e0 100644 --- a/Effects/Dyes/DefiledFlameDyeShader.fx +++ b/Effects/Dyes/DefiledFlameDyeShader.fx @@ -17,7 +17,7 @@ static float Variance = 0.4f; static float MinBrightness = 1.5f; static float MaxBrightness = 2.5f; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); @@ -33,7 +33,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO colorMap.rgb *= brightness; colorMap.rgb = colorMap.rgb - colorMap.rgb % Variance; // Slice the return color map to make pixels appear less varied and more extreme - return colorMap * color; + return colorMap * color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/DefiledFlameDyeShader.xnb b/Effects/Dyes/DefiledFlameDyeShader.xnb index 84676f2986..ec3d8b6fd3 100644 Binary files a/Effects/Dyes/DefiledFlameDyeShader.xnb and b/Effects/Dyes/DefiledFlameDyeShader.xnb differ diff --git a/Effects/Dyes/DragonSoulDyeShader.fx b/Effects/Dyes/DragonSoulDyeShader.fx index 80cb2729fd..fecf17e862 100644 --- a/Effects/Dyes/DragonSoulDyeShader.fx +++ b/Effects/Dyes/DragonSoulDyeShader.fx @@ -21,7 +21,7 @@ static float3 colors[4] = float3(252, 155, 0) / 255.0 }; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); diff --git a/Effects/Dyes/DragonSoulDyeShader.xnb b/Effects/Dyes/DragonSoulDyeShader.xnb index e1c9fcdecd..f89475ae0f 100644 Binary files a/Effects/Dyes/DragonSoulDyeShader.xnb and b/Effects/Dyes/DragonSoulDyeShader.xnb differ diff --git a/Effects/Dyes/ElementalDyeShader.fx b/Effects/Dyes/ElementalDyeShader.fx index 0303576ddb..c8c45b798a 100644 --- a/Effects/Dyes/ElementalDyeShader.fx +++ b/Effects/Dyes/ElementalDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; diff --git a/Effects/Dyes/ElementalDyeShader.xnb b/Effects/Dyes/ElementalDyeShader.xnb index 7d9e250e94..09a7872d64 100644 Binary files a/Effects/Dyes/ElementalDyeShader.xnb and b/Effects/Dyes/ElementalDyeShader.xnb differ diff --git a/Effects/Dyes/EndothermicDyeShader.fx b/Effects/Dyes/EndothermicDyeShader.fx index 75de6d38ef..506642e6be 100644 --- a/Effects/Dyes/EndothermicDyeShader.fx +++ b/Effects/Dyes/EndothermicDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. @@ -22,7 +22,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO float4 color = tex2D(uImage0, coords); float luminosity = (color.r + color.g + color.b) / 3; color.rgb = luminosity * idealColor * 1.3; // Average out the colors. - return color; + return color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/EndothermicDyeShader.xnb b/Effects/Dyes/EndothermicDyeShader.xnb index cb7b1beb6a..46ae9ee393 100644 Binary files a/Effects/Dyes/EndothermicDyeShader.xnb and b/Effects/Dyes/EndothermicDyeShader.xnb differ diff --git a/Effects/Dyes/ExoDyeShader.fx b/Effects/Dyes/ExoDyeShader.fx index 5c2192701c..5fefe68a59 100644 --- a/Effects/Dyes/ExoDyeShader.fx +++ b/Effects/Dyes/ExoDyeShader.fx @@ -48,7 +48,7 @@ float TriangleWave(float x) return -(x % 2) + 2; } -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 noiseColor = tex2D(uImage1, float2(coords.x, frameY - uTime * 0.45) * 0.1); @@ -58,7 +58,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO float brightness = (blendFactor * 0.4 + noiseColor.r * 0.9) * 1.2; float4 colorBlendMultiplier = lerp(float4(blendColor, 1), float4(1, 1, 1, 1), saturate(blendFactor * 1.5)); - return (lerp(color, float4(blendColor, 1), blendFactor * 0.5 + 0.2) * color.a) * colorBlendMultiplier * (1 + brightness); + return (lerp(color, float4(blendColor, 1), blendFactor * 0.5 + 0.2) * color.a) * colorBlendMultiplier * (1 + brightness) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/ExoDyeShader.xnb b/Effects/Dyes/ExoDyeShader.xnb index c43b9ae8aa..e34cbd1b20 100644 Binary files a/Effects/Dyes/ExoDyeShader.xnb and b/Effects/Dyes/ExoDyeShader.xnb differ diff --git a/Effects/Dyes/NightmareDyeShader.fx b/Effects/Dyes/NightmareDyeShader.fx index 8d14568a57..6ed30bb22e 100644 --- a/Effects/Dyes/NightmareDyeShader.fx +++ b/Effects/Dyes/NightmareDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float3 idealColor = uColor; float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. @@ -25,7 +25,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO float4 color = tex2D(uImage0, coords); float luminosity = (color.r + color.g + color.b) / 3; color.rgb = luminosity * idealColor * 1.6; // Average out the colors. - return color; + return color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/NightmareDyeShader.xnb b/Effects/Dyes/NightmareDyeShader.xnb index 246dc9627f..e14abfa2fe 100644 Binary files a/Effects/Dyes/NightmareDyeShader.xnb and b/Effects/Dyes/NightmareDyeShader.xnb differ diff --git a/Effects/Dyes/PhantoplasmDyeShader.fx b/Effects/Dyes/PhantoplasmDyeShader.fx index 02a09722ae..798b297ce0 100644 --- a/Effects/Dyes/PhantoplasmDyeShader.fx +++ b/Effects/Dyes/PhantoplasmDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 noiseColor = tex2D(uImage1, float2(coords.x, frac(frameY + uTime * 0.7))); @@ -31,7 +31,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO float4 blendedColor = (color + endFadeColor) * 0.5 - 0.05; blendedColor *= 1.4; blendedColor.a = 1; - return blendedColor * color.a * (1 + lerp(0.07, 0.3, fadeToSecondaryColor) + noiseColor.g * 0.1); + return blendedColor * color.a * (1 + lerp(0.07, 0.3, fadeToSecondaryColor) + noiseColor.g * 0.1) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/PhantoplasmDyeShader.xnb b/Effects/Dyes/PhantoplasmDyeShader.xnb index 4b0384a249..2c14b4c0ef 100644 Binary files a/Effects/Dyes/PhantoplasmDyeShader.xnb and b/Effects/Dyes/PhantoplasmDyeShader.xnb differ diff --git a/Effects/Dyes/ProfanedFlameDyeShader.fx b/Effects/Dyes/ProfanedFlameDyeShader.fx index f1964bc244..2d99c9040b 100644 --- a/Effects/Dyes/ProfanedFlameDyeShader.fx +++ b/Effects/Dyes/ProfanedFlameDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float4 color = tex2D(uImage0, coords); @@ -33,7 +33,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO transformColor = lerp(transformColor, float3(206 / 255, 116 / 255, 59 / 255), orangeFade); color.rgb = lerp(color.rgb, transformColor, fadeMapColor.r); opacity *= color.a; - return color * opacity; + return color * opacity * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/ProfanedFlameDyeShader.xnb b/Effects/Dyes/ProfanedFlameDyeShader.xnb index ae8ab62f8a..c03d1fe7b5 100644 Binary files a/Effects/Dyes/ProfanedFlameDyeShader.xnb and b/Effects/Dyes/ProfanedFlameDyeShader.xnb differ diff --git a/Effects/Dyes/ProfanedMoonlightDye.fx b/Effects/Dyes/ProfanedMoonlightDye.fx index 70dc4c8cb9..19b0f1939f 100644 --- a/Effects/Dyes/ProfanedMoonlightDye.fx +++ b/Effects/Dyes/ProfanedMoonlightDye.fx @@ -13,11 +13,11 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 returnColor = tex2D(uImage0, coords); returnColor.rgb *= uColor * ((cos(uTime) * 0.5 + 0.5) * 0.3 + 1.3); - return returnColor; + return returnColor * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/ProfanedMoonlightDye.xnb b/Effects/Dyes/ProfanedMoonlightDye.xnb index fcbbb887b5..1b76c7f706 100644 Binary files a/Effects/Dyes/ProfanedMoonlightDye.xnb and b/Effects/Dyes/ProfanedMoonlightDye.xnb differ diff --git a/Effects/Dyes/ReaverDyeShader.fx b/Effects/Dyes/ReaverDyeShader.fx index 283a3267b2..00c3aa3013 100644 --- a/Effects/Dyes/ReaverDyeShader.fx +++ b/Effects/Dyes/ReaverDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float luminosity = (color.r + color.g + color.b) / 3; @@ -23,7 +23,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO color.rgb *= ((coords.x * uColor * (1 - yMultiplier) * 1.4) + ((1 - coords.x) * uSecondaryColor * yMultiplier * 1.7)) * luminosity * 2.1; color.rgb *= clamp(1.6 * saturate(distance((0.5, 0.5), coords)), 0.8, 1.6); // Intensify the colors based on how far they are from the center of the sprite. - return color; + return color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/ReaverDyeShader.xnb b/Effects/Dyes/ReaverDyeShader.xnb index 0f1bb1d21b..79e84c62a0 100644 Binary files a/Effects/Dyes/ReaverDyeShader.xnb and b/Effects/Dyes/ReaverDyeShader.xnb differ diff --git a/Effects/Dyes/ShadowspecDyeShader.fx b/Effects/Dyes/ShadowspecDyeShader.fx index dfa0d8c88b..fcc82f9fce 100644 --- a/Effects/Dyes/ShadowspecDyeShader.fx +++ b/Effects/Dyes/ShadowspecDyeShader.fx @@ -17,7 +17,7 @@ float2 RotatedBy(float theta, float x, float y) { return float2(x * cos(theta) + y * sin(theta), x * sin(theta) - y * cos(theta)); } -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float sineTime = sin(uTime); // Saved so that I don't have the compute this multiple times. Shaders have a limited number of mathematical instructions you can use - 64. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. @@ -36,7 +36,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO color.rgb *= 0.2 + pow(noiseColor.rgb, 3); // Squash the color to the upper and lower bounds and add a bit of lightness to it. color.rgb *= lerp(uColor, uSecondaryColor, interpolationValue); // Blend with the secondary color. color.rgb *= 1.7 + (sineTime * 0.5 + 1.5) * interpolationValue; // Range of 1.7 to 3.7, can cause certain spots to become very bright. - return color; + return color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/ShadowspecDyeShader.xnb b/Effects/Dyes/ShadowspecDyeShader.xnb index 773d1339ab..78e40361f9 100644 Binary files a/Effects/Dyes/ShadowspecDyeShader.xnb and b/Effects/Dyes/ShadowspecDyeShader.xnb differ diff --git a/Effects/Dyes/SlimeGodDyeShader.fx b/Effects/Dyes/SlimeGodDyeShader.fx index 1aae18695a..a742abf798 100644 --- a/Effects/Dyes/SlimeGodDyeShader.fx +++ b/Effects/Dyes/SlimeGodDyeShader.fx @@ -13,7 +13,7 @@ float3 uLightSource; float2 uImageSize0; float2 uImageSize1; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { // Gets a 0-1 representation of the y position on a given frame, with 0 being the top, and 1 being the bottom. float frameY = (coords.y * uImageSize0.y - uSourceRect.y) / uSourceRect.w; @@ -35,7 +35,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO // Handle sludge fades based on noise. color = lerp(color, float4(uSecondaryColor * 0.375, 1), pow(noiseColor.r, 3) * 0.3 + verticalFlowMovement * 0.3 + 0.13) * color.a; - return color * (1 + (1 - outlineFade) * 0.1); + return color * (1 + (1 - outlineFade) * 0.1) * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/SlimeGodDyeShader.xnb b/Effects/Dyes/SlimeGodDyeShader.xnb index 996324b2bb..81ee6d1d55 100644 Binary files a/Effects/Dyes/SlimeGodDyeShader.xnb and b/Effects/Dyes/SlimeGodDyeShader.xnb differ diff --git a/Effects/Dyes/StratusDyeShader.fx b/Effects/Dyes/StratusDyeShader.fx index db0b8f5dfe..6cda120537 100644 --- a/Effects/Dyes/StratusDyeShader.fx +++ b/Effects/Dyes/StratusDyeShader.fx @@ -14,7 +14,7 @@ float2 uImageSize0; float2 uImageSize1; static float xAdditiveMax = 0.035; -float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0 +float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0 { float4 color = tex2D(uImage0, coords); float sineTime = sin(uTime); // Saved so that I don't have the compute this multiple times. Shaders have a limited number of mathematical instructions you can use - 64. @@ -34,7 +34,7 @@ float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOO color.rgb *= 1.6; // Sometimes give light "patches" depending on the swaying noise image. } color.rgb *= 1.6 + (sineTime * 0.5 + 1.5) * ((frameY + coords.x) - 1) * 2; // Brighten the shader over time. - return color; + return color * sampleColor.a; } technique Technique1 { diff --git a/Effects/Dyes/StratusDyeShader.xnb b/Effects/Dyes/StratusDyeShader.xnb index 5cf6bafdf6..f3faf20b77 100644 Binary files a/Effects/Dyes/StratusDyeShader.xnb and b/Effects/Dyes/StratusDyeShader.xnb differ diff --git a/Items/Potions/CalamitasBrew.cs b/Items/Potions/CalamitasBrew.cs index 1e17528f0b..5154e47971 100644 --- a/Items/Potions/CalamitasBrew.cs +++ b/Items/Potions/CalamitasBrew.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Potions { DisplayName.SetDefault("Calamitas' Brew"); Tooltip.SetDefault("Adds abyssal flames to your melee and rogue projectiles and melee attacks\n" + - "Increases your movement speed by 10%"); + "Increases your movement speed by 5%"); } public override void SetDefaults() diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index deb3436c94..b249584907 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -23,10 +23,10 @@ namespace CalamityMod.Items.Weapons.Melee public override bool CloneNewInstances => true; public static float NeedleDamageMultiplier = 0.7f; //Damage on the non-homing needle projectile - public static float MaxThrowReach = 620; - public static float snapDamageMultiplier = 1.3f; //Extra damage from making the scissors snap + public static float MaxThrowReach = 650; + public static float snapDamageMultiplier = 1.2f; //Extra damage from making the scissors snap - public static float chargeDamageMultiplier = 1.3f; //Extra damage from charge + public static float chargeDamageMultiplier = 1.2f; //Extra damage from charge public static float chainDamageMultiplier = 0.1f; public static int DashIframes = 10; @@ -37,8 +37,8 @@ namespace CalamityMod.Items.Weapons.Melee public static float blastFalloffSpeed = 0.1f; //How much the blast damage falls off as you hit more and more targets public static float blastFalloffStrenght = 0.75f; //Value between 0 and 1 that determines how much falloff increases affect the damage : Closer to 0 = damage falls off less intensely, closer to 1 : damage falls off way harder - public static float SwirlBoltAmount = 7f; //The amount of cosmic bolts produced during hte swirl attack - public static float SwirlBoltDamageMultiplier = 1.5f; //This is the damage multiplier for ALL THE BOLTS: Aka, said damage multiplier is divided by the amount of bolts in a swirl and the full damage multiplier is gotten if you hit all the bolts + public static float SwirlBoltAmount = 6f; //The amount of cosmic bolts produced during hte swirl attack + public static float SwirlBoltDamageMultiplier = 0.7f; //This is the damage multiplier for ALL THE BOLTS: Aka, said damage multiplier is divided by the amount of bolts in a swirl and the full damage multiplier is gotten if you hit all the bolts const string ComboTooltip = "Performs a combo of swings, alternating between narrow and wide swings and throwing the blade out every 5 swings\n" + "The thrown blade is held in place by constellations and will follow your cursor\n" + @@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Melee "You can also parry projectiles and temporarily make them deal 200 less damage\n" + "Parrying will empower the next 10 swings of the sword, letting you use both blades at once"; - const string BlastTooltip = "Using RMB and pressing up while the Ark is charged will throw the blades in front of you to provoke a Big Rip in spacetime, using up all your charges in the process\n" + + const string BlastTooltip = "Using RMB and pressing up while the Ark is empowered will throw the blades in front of you to provoke a Big Rip in spacetime, using up all your charges in the process\n" + "If more than half the charges were used up, you can dash across the rip by keeping the up key pressed down"; @@ -80,7 +80,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = item.height = 136; - item.damage = 2222; + item.damage = 2000; item.melee = true; item.noMelee = true; item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index 8219470afc..a5b3c540ee 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Melee public override bool CloneNewInstances => true; public const float ComboLenght = 4f; //How many regular swings before the long throw happens - public static float snapDamageMultiplier = 1.3f; //Extra damage from making the scissors snap - public static float chargeDamageMultiplier = 1.3f; //Extra damage from charge + public static float snapDamageMultiplier = 1.2f; //Extra damage from making the scissors snap + public static float chargeDamageMultiplier = 1.2f; //Extra damage from charge public static float needleDamageMultiplier = 0.8f; //Damage multiplier for non-homing needle projectile public static float glassStarDamageMultiplier = 0.2f; //Damage multiplier for the homing glass stars (4 glass stars per shot) @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee "You can also parry projectiles and temporarily make them deal 200 less damage\n" + "Parrying will empower the next 10 swings of the sword, letting you use both blades at once"; - const string BlastTooltip = "Using RMB and pressing up while the Ark is charged will throw the blades in front of you to provoke a Big Rip in spacetime, using up all your charges in the process"; + const string BlastTooltip = "Using RMB and pressing up while the Ark is empowered will throw the blades in front of you to provoke a Big Rip in spacetime, using up all your charges in the process"; public override void SetStaticDefaults() { @@ -72,7 +72,7 @@ namespace CalamityMod.Items.Weapons.Melee { item.width = 112; item.height = 172; - item.damage = 1305; + item.damage = 600; item.melee = true; item.noUseGraphic = true; item.noMelee = true; diff --git a/Items/Weapons/Melee/FourSeasonsGalaxia.cs b/Items/Weapons/Melee/FourSeasonsGalaxia.cs index a1ca1ce052..041161d4df 100644 --- a/Items/Weapons/Melee/FourSeasonsGalaxia.cs +++ b/Items/Weapons/Melee/FourSeasonsGalaxia.cs @@ -38,8 +38,8 @@ namespace CalamityMod.Items.Weapons.Melee public static int PhoenixAttunement_LocalIFrames = 20; //Remember its got one extra update public static float PhoenixAttunement_BoltDamageReduction = 0.5f; public static float PhoenixAttunement_BoltThrowDamageMultiplier = 1.5f; - public static float PhoenixAttunement_BaseDamageReduction = 0.4f; - public static float PhoenixAttunement_FullChargeDamageBoost = 2f; + public static float PhoenixAttunement_BaseDamageReduction = 0.5f; + public static float PhoenixAttunement_FullChargeDamageBoost = 2.1f; public static float PhoenixAttunement_ThrowDamageBoost = 3.6f; public static int PolarisAttunement_BaseDamage = 1200; @@ -47,19 +47,19 @@ namespace CalamityMod.Items.Weapons.Melee public static int PolarisAttunement_ShredIFrames = 10; public static int PolarisAttunement_LocalIFrames = 30; //Be warned its got one extra update so all the iframes should be divided in 2 public static int PolarisAttunement_LocalIFramesCharged = 16; - public static float PolarisAttunement_SlashDamageBoost = 5f; //Keep in mind the slice always crits + public static float PolarisAttunement_SlashDamageBoost = 13f; //Keep in mind the slice always crits public static int PolarisAttunement_SlashBoltsDamage = 1300; public static int PolarisAttunement_SlashIFrames = 60; public static float PolarisAttunement_ShotDamageBoost = 2f; //The shots fired if the dash connects - public static float PolarisAttunement_ShredChargeupGain = 1f; //How much charge is gainted per second. + public static float PolarisAttunement_ShredChargeupGain = 1.1f; //How much charge is gainted per second. - public static int AndromedaAttunement_BaseDamage = 3500; - public static int AndromedaAttunement_DashHitIFrames = 60; - public static float AndromedaAttunement_FullChargeBoost = 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 AndromedaAttunement_MonolithDamageBoost = 2f; + public static int AndromedaAttunement_BaseDamage = 2100; + public static int AndromedaAttunement_DashHitIFrames = 30; + public static float AndromedaAttunement_FullChargeBoost = 4f; //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 AndromedaAttunement_MonolithDamageBoost = 1.75f; public static float AndromedaAttunement_BoltsDamageReduction = 0.2f; //The shots fired as it charges - public static int AriesAttunement_BaseDamage = 1420; + public static int AriesAttunement_BaseDamage = 1100; public static int AriesAttunement_LocalIFrames = 10; public static int AriesAttunement_Reach = 600; public static float AriesAttunement_ChainDamageReduction = 0.2f; diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index 7f7d1fb22a..83db6105b0 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -31,36 +31,36 @@ namespace CalamityMod.Items.Weapons.Melee #region stats public static int BaseDamage = 400; - public static int WhirlwindAttunement_BaseDamage = 300; + public static int WhirlwindAttunement_BaseDamage = 240; public static int WhirlwindAttunement_LocalIFrames = 20; //Remember its got one extra update public static int WhirlwindAttunement_SigilTime = 1200; public static float WhirlwindAttunement_BeamDamageReduction = 0.5f; public static float WhirlwindAttunement_BaseDamageReduction = 0.4f; - public static float WhirlwindAttunement_FullChargeDamageBoost = 2f; - public static float WhirlwindAttunement_ThrowDamageBoost = 3.8f; + public static float WhirlwindAttunement_FullChargeDamageBoost = 1.5f; + public static float WhirlwindAttunement_ThrowDamageBoost = 4.5f; public static int WhirlwindAttunement_PassiveBaseDamage = 200; - public static int SuperPogoAttunement_BaseDamage = 500; - public static int SuperPogoAttunement_FullChargeDamage = 750; + public static int SuperPogoAttunement_BaseDamage = 300; + public static int SuperPogoAttunement_FullChargeDamage = 600; 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 = 5f; //Keep in mind the slice always crits + public static float SuperPogoAttunement_SlashDamageBoost = 3f; //Keep in mind the slice always crits public static int SuperPogoAttunementSlashLifesteal = 6; public static int SuperPogoAttunement_SlashIFrames = 60; - public static float SuperPogoAttunement_ShotDamageBoost = 2f; - public static float SuperPogoAttunement_ShredDecayRate = 0.7f;//How much charge is lost per frame. + public static float SuperPogoAttunement_ShotDamageBoost = 4.5f; + public static float SuperPogoAttunement_ShredDecayRate = 0.65f;//How much charge is lost per frame. public static int SuperPogoAttunement_PassiveLifeSteal = 10; - public static int ShockwaveAttunement_BaseDamage = 2500; - public static int ShockwaveAttunement_DashHitIFrames = 60; + public static int ShockwaveAttunement_BaseDamage = 720; + public static int ShockwaveAttunement_DashHitIFrames = 30; public static float ShockwaveAttunement_FullChargeBoost = 4f; //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_MonolithDamageBoost = 2f; - public static float ShockwaveAttunement_MonolithDamageFalloff = 0.1f; //Damage multiplier for all subsequent hits after the first one. + public static float ShockwaveAttunement_MonolithDamageBoost = 1.25f; + public static float ShockwaveAttunement_MonolithDamageFalloff = 0.6f; //Damage multiplier for all subsequent hits after the first one. public static float ShockwaveAttunement_BlastDamageReduction = 0.6f; public static int ShockwaveAttunement_PassiveBaseDamage = 200; diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index 9bb0427cb4..ae8bd409dc 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee public float Charge = 0f; public static float chargeDamageMultiplier = 1.45f; //Extra damage from charge public static float beamDamageMultiplier = 0.8f; //Damage multiplier for the charged shots (remember it applies ontop of the charge damage multiplied - public static float glassStarDamageMultiplier = 0.2f; //Damage multiplier for the glass stars it shoots (Shoots 3x glass stars when not charged, shoots 2x glass stars + one beam when charged) + public static float glassStarDamageMultiplier = 0.4f; //Damage multiplier for the glass stars it shoots (Shoots 3x glass stars when not charged, shoots 2x glass stars + one beam when charged) public static float blastDamageMultiplier = 0.5f; //Damage multiplier applied ontop of the charge damage multiplier mutliplied by the amount of charges consumed. So if you consume 5 charges, the blast will get multiplied by 5 times the damage multiplier public static float blastFalloffSpeed = 0.1f; //How much the blast damage falls off as you hit more and more targets @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee const string ParryTooltip = "Using RMB will extend the Ark out in front of you. Hitting an enemy with it will parry them, granting you a small window of invulnerability\n" + "You can also parry projectiles and temporarily make them deal 160 less damage\n" + "Parrying will empower the next 10 swings of the sword, boosting their damage and letting them throw stronger projectiles\n" + - "Using RMB and pressing up while the Ark is charged will release all the charges in a powerful burst of energy"; + "Using RMB and pressing up while the Ark is empowered will release all the charges in a powerful burst of energy"; public override void SetStaticDefaults() { diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index a0e4d36531..53d87fd3ec 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -39,20 +39,20 @@ namespace CalamityMod.Items.Weapons.Melee public static float EvilAttunement_SlashDamageBoost = 3f; public static int EvilAttunement_SlashIFrames = 60; - public static int ColdAttunement_BaseDamage = 200; + public static int ColdAttunement_BaseDamage = 150; public static float ColdAttunement_SecondSwingBoost = 1.15f; public static float ColdAttunement_ThirdSwingBoost = 1.3f; public static float ColdAttunement_MistDamageReduction = 0.09f; - public static int HotAttunement_BaseDamage = 140; - public static int HotAttunement_FullChargeDamage = 230; + public static int HotAttunement_BaseDamage = 122; + public static int HotAttunement_FullChargeDamage = 160; public static int HotAttunement_ShredIFrames = 8; public static float HotAttunement_ShotDamageBoost = 4.5f; public static int HotAttunement_LocalIFrames = 30; //Be warned its got one extra update so all the iframes should be divided in 2 public static int HotAttunement_LocalIFramesCharged = 16; - public static float HotAttunement_ShredDecayRate = 0.7f; //How much charge is lost per frame. + public static float HotAttunement_ShredDecayRate = 0.65f; //How much charge is lost per frame. - public static int TropicalAttunement_BaseDamage = 115; + public static int TropicalAttunement_BaseDamage = 120; public static float TropicalAttunement_ChainDamageReduction = 0.6f; public static float TropicalAttunement_VineDamageReduction = 0.3f; public static float TropicalAttunement_SweetSpotDamageMultiplier = 1.2f; //It also crits, so be mindful of that @@ -64,13 +64,15 @@ namespace CalamityMod.Items.Weapons.Melee public static float HolyAttunement_ThrowDamageBoost = 3.8f; public static int HolyAttunement_LocalIFrames = 16; //Be warned its got 1 extra update yadda yadda - public static int AstralAttunement_BaseDamage = 500; - public static int AstralAttunement_DashHitIFrames = 30; + public static int AstralAttunement_BaseDamage = 225; + public static int AstralAttunement_DashHitIFrames = 20; public static float AstralAttunement_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 AstralAttunement_MonolithDamageBoost = 1f; - public static float AstralAttunement_MonolithDamageFalloff = 0.1f; //Damage multiplier for all subsequent hits after the first one. + public static float AstralAttunement_MonolithDamageBoost = 1.25f; + public static float AstralAttunement_MonolithDamageFalloff = 0.25f; //Damage multiplier for all subsequent hits after the first one. + + public static int MarineAttunement_BaseDamage = 300; + public static float MarineAttunement_InWaterDamageMultiplier = 1.5f; - public static int MarineAttunement_BaseDamage = 160; #endregion diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 1a45f695c2..6dbd749816 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -690,7 +690,7 @@ namespace CalamityMod.NPCs // Abyssal Flames if (aFlames > 0) { - int baseAbyssalFlamesDoTValue = (int)((npc.oiled ? 265 : 125) * heatDamageMult); + int baseAbyssalFlamesDoTValue = (int)((npc.oiled ? 150 : 75) * heatDamageMult); ApplyDPSDebuff(baseAbyssalFlamesDoTValue, baseAbyssalFlamesDoTValue / 5, ref npc.lifeRegen, ref damage); } diff --git a/Projectiles/Melee/Galaxia_AndromedasStride.cs b/Projectiles/Melee/Galaxia_AndromedasStride.cs index e77e013927..fa757463dc 100644 --- a/Projectiles/Melee/Galaxia_AndromedasStride.cs +++ b/Projectiles/Melee/Galaxia_AndromedasStride.cs @@ -268,12 +268,12 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - Owner.GiveIFrames(OmegaBiomeBlade.ShockwaveAttunement_DashHitIFrames); + Owner.GiveIFrames(FourSeasonsGalaxia.AndromedaAttunement_DashHitIFrames); } public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - damage = (int)(damage * (1f + OmegaBiomeBlade.ShockwaveAttunement_FullChargeBoost * Charge / MaxCharge)); + damage = (int)(damage * (1f + FourSeasonsGalaxia.AndromedaAttunement_FullChargeBoost * (float)Math.Pow(Charge / MaxCharge, 2))); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/Galaxia_PolarisGazeStar.cs b/Projectiles/Melee/Galaxia_PolarisGazeStar.cs index 1d57f9f4c5..65daea8576 100644 --- a/Projectiles/Melee/Galaxia_PolarisGazeStar.cs +++ b/Projectiles/Melee/Galaxia_PolarisGazeStar.cs @@ -44,6 +44,9 @@ namespace CalamityMod.Projectiles.Melee projectile.friendly = true; projectile.penetrate = -1; projectile.extraUpdates = 3; + + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 60; } public override bool OnTileCollide(Vector2 oldVelocity) diff --git a/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs b/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs index 86ee6241a4..18fff6a022 100644 --- a/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs +++ b/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs @@ -249,7 +249,7 @@ namespace CalamityMod.Projectiles.Melee public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - damage = (int)(damage * (1f + TrueBiomeBlade.AstralAttunement_FullChargeBoost * Charge / MaxCharge)); + damage = (int)(damage * (1f + TrueBiomeBlade.AstralAttunement_FullChargeBoost * (float)Math.Pow(Charge / MaxCharge, 2))); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs b/Projectiles/Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs index 40a4ae7a46..25adcbcf21 100644 --- a/Projectiles/Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs +++ b/Projectiles/Melee/MendedBiomeBlade_GestureForTheDrownedOrb.cs @@ -224,6 +224,12 @@ namespace CalamityMod.Projectiles.Melee } } + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) + { + if (WaterMode) + damage = (int)(damage * TrueBiomeBlade.MarineAttunement_InWaterDamageMultiplier); + } + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { if (BounceX) diff --git a/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs b/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs index b1ca5d626c..7ede5dd888 100644 --- a/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs +++ b/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeurShot.cs @@ -41,6 +41,9 @@ namespace CalamityMod.Projectiles.Melee projectile.friendly = true; projectile.penetrate = -1; projectile.extraUpdates = 1; + + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 30; } public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) diff --git a/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs b/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs index 2ce54768e8..86674c717e 100644 --- a/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs +++ b/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs @@ -245,7 +245,7 @@ namespace CalamityMod.Projectiles.Melee public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - damage = (int)(damage * (1f + OmegaBiomeBlade.ShockwaveAttunement_FullChargeBoost * Charge / MaxCharge)); + damage = (int)(damage * (1f + OmegaBiomeBlade.ShockwaveAttunement_FullChargeBoost * (float)Math.Pow(Charge / MaxCharge, 2))); if (Owner.HeldItem.modItem is OmegaBiomeBlade sword && Main.rand.NextFloat() <= OmegaBiomeBlade.ShockwaveAttunement_SwordProc) sword.OnHitProc = true; diff --git a/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs b/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs index 1d038f058b..c8ff5fe3f6 100644 --- a/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs +++ b/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs @@ -275,7 +275,7 @@ namespace CalamityMod.Projectiles.Melee public override void Kill(int timeLeft) { Main.PlaySound(SoundID.NPCHit43, projectile.Center); - if (ShredRatio > 0.25 && Owner.whoAmI == Main.myPlayer) + if (ShredRatio > 0.8 && Owner.whoAmI == Main.myPlayer) { Projectile.NewProjectile(projectile.Center, direction * 16f, ProjectileType(), (int)(projectile.damage * OmegaBiomeBlade.SuperPogoAttunement_ShotDamageBoost), projectile.knockBack, Owner.whoAmI, Shred); } diff --git a/Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs b/Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs index 3915cde832..60eab4fc40 100644 --- a/Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs +++ b/Projectiles/Melee/TrueBiomeBlade_SanguineFuryWheel.cs @@ -44,6 +44,10 @@ namespace CalamityMod.Projectiles.Melee projectile.friendly = true; projectile.penetrate = -1; projectile.extraUpdates = 3; + + + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 60; } public override bool OnTileCollide(Vector2 oldVelocity)