step stool interaction fx tweak
This commit is contained in:
1 parent
9021c3bd5c
commit
6d53e925de
2 files changed
+9
-5
No files matched your search
@@ -84,7 +84,7 @@ namespace CalamityMod.Items.Accessories
|
||||
if (IsVanillaStoolEquipped(Player))
|
||||
{
|
||||
// Spawn a step stool copy with a random velocity. Only works if step stool is equipped as well as spring stool.
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), spawnPos, new Vector2(Main.rand.NextBool() ? Main.rand.NextFloat(6f, 7f) : Main.rand.NextFloat(-6f, -7f), Main.rand.NextFloat(-8f, -10f)), ModContent.ProjectileType<StepStoolBonusFX>(), 0, 0f, Player.whoAmI);
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), spawnPos + new Vector2(0f, -4f), new Vector2(Main.rand.NextBool() ? Main.rand.NextFloat(6f, 7f) : Main.rand.NextFloat(-6f, -7f), Main.rand.NextFloat(-8f, -10f)), ModContent.ProjectileType<StepStoolBonusFX>(), 0, 0f, Player.whoAmI);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -30,10 +30,14 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
// Gravity!
|
||||
Projectile.velocity.Y += 0.15f;
|
||||
|
||||
Projectile.rotation += 0.1f;
|
||||
Projectile.scale -= 0.01f;
|
||||
OpacityMultiplier -= 0.02f;
|
||||
Projectile.rotation += 0.12f;
|
||||
Projectile.scale -= 0.0125f;
|
||||
OpacityMultiplier -= 0.025f;
|
||||
|
||||
if (Projectile.timeLeft > 99)
|
||||
Projectile.alpha = 255;
|
||||
else
|
||||
Projectile.alpha = 0;
|
||||
}
|
||||
|
||||
public override bool? CanDamage() => false;
|
||||
@@ -43,7 +47,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
Texture2D texture = TextureAssets.Extra[102].Value;
|
||||
Vector2 origin = texture.Size() / 2f;
|
||||
|
||||
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, Color.White * OpacityMultiplier, Projectile.rotation + (Main.player[Projectile.owner].gravDir == -1 ? MathHelper.Pi : 0), origin, Projectile.scale * 1.25f, SpriteEffects.None);
|
||||
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, null, Color.White * ((1f - (Projectile.alpha / 255f)) * OpacityMultiplier), Projectile.rotation + (Main.player[Projectile.owner].gravDir == -1 ? MathHelper.Pi : 0), origin, Projectile.scale * 1.25f, SpriteEffects.None);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user