This commit is contained in:
mountaindrew10 committed 2022-03-14 04:25:43 -06:00
commit 29dbdc68ad
69 files changed
+128 -101

No files matched your search

+9
View File
@@ -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<ArkoftheCosmosSwungBlade>() && (p.ai[0] == 2 || p.ai[0] == 3);
UniversalBalancingChanges = new List<IBalancingRule[]>()
{
// 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<EssenceFlame2>()))));
// 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<EclipsesSmol>()))));
@@ -273,6 +279,9 @@ namespace CalamityMod.Balancing
// 40% resist to Yharim's Crystal.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<YharimsCrystalBeam>()))));
// 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<SiriusExplosion>()))));
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -2714,7 +2714,7 @@ namespace CalamityMod.CalPlayer
}
if (aWeapon)
player.moveSpeed += 0.1f;
player.moveSpeed += 0.05f;
if (molten)
player.resistCold = true;
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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;
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+1 -1
View File
@@ -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);
Binary file not shown.
+1 -1
View File
@@ -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;
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+2 -2
View File
@@ -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
{
Binary file not shown.
+1 -1
View File
@@ -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()
+7 -7
View File
@@ -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;
+4 -4
View File
@@ -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;
+9 -9
View File
@@ -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;
+12 -12
View File
@@ -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;
+2 -2
View File
@@ -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()
{
+12 -10
View File
@@ -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
+1 -1
View File
@@ -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);
}
@@ -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)
@@ -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)
@@ -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)
@@ -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)
@@ -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)
@@ -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;
@@ -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<SanguineFuryWheel>(), (int)(projectile.damage * OmegaBiomeBlade.SuperPogoAttunement_ShotDamageBoost), projectile.knockBack, Owner.whoAmI, Shred);
}
@@ -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)