Made ricoshot crit indicator more visible
Also added that coins take some time before critting in tooltips
This commit is contained in:
1 parent
4b6b561606
commit
ac3a67112a
2 files changed
+5
-5
No files matched your search
@@ -329,7 +329,7 @@ CrackshotColt: {
|
||||
Press <right> to toss a Copper Coin in the air
|
||||
Striking a coin with a bullet causes it to ricochet into the nearest enemy
|
||||
Up to 4 coins can be tossed simultaneously, and shots will ricochet off multiple coins if possible
|
||||
Ricocheted bullets always critically strike
|
||||
Ricocheted bullets always critically strike after a short time
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -731,7 +731,7 @@ MidasPrime: {
|
||||
Press <right> to toss a Gold Coin or Silver Coin in the air
|
||||
Striking a coin with a bullet causes it to ricochet into the nearest enemy
|
||||
Up to 4 coins can be tossed simultaneously, and shots will ricochet off multiple coins if possible
|
||||
Ricocheted bullets always critically strike and do bonus damage based on the coins used
|
||||
Ricocheted bullets always critically strike after a short time and do bonus damage based on the coins used
|
||||
'''
|
||||
UltrakillEasterEgg:
|
||||
'''
|
||||
|
||||
@@ -269,8 +269,8 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
// https://www.desmos.com/calculator/ngfg5fc9ds
|
||||
int numUpdatesPassed = CoinLifetime - Projectile.timeLeft;
|
||||
float x = Math.Clamp((float)numUpdatesPassed / CritDelayTime, 0f, 2f); // interpolant for the crit delay sheen
|
||||
float sheenFunction = Math.Min(MathF.Pow(x + 0.1f, 6f), MathF.Pow(x - 2.1f, 6f));
|
||||
float sheenOpacity = Math.Clamp(sheenFunction, 0f, 1f);
|
||||
float sheenFunction = Math.Min(MathF.Pow(x + 0.1f, 10f), MathF.Pow(x - 2.1f, 10f));
|
||||
float sheenOpacity = Math.Clamp(sheenFunction, 0f, 2f);
|
||||
|
||||
// oh BOY another end begin boy
|
||||
if (sheenOpacity > 0f)
|
||||
@@ -293,7 +293,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
};
|
||||
|
||||
Main.EntitySpriteDraw(bloomTex, Projectile.Center - Main.screenPosition, null, shineColor * sheenOpacity * 0.3f, MathHelper.PiOver2, bloomTex.Size() / 2f, shineScale * Projectile.scale, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTex, Projectile.Center - Main.screenPosition, null, shineColor * sheenOpacity * 0.7f, MathHelper.PiOver2, shineTex.Size() / 2f, shineScale * Projectile.scale, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTex, Projectile.Center - Main.screenPosition, null, shineColor * sheenOpacity, MathHelper.PiOver2, shineTex.Size() / 2f, shineScale * Projectile.scale, SpriteEffects.None, 0);
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix);
|
||||
|
||||
Reference in new issue
Block a user