the vents are no longer sus (less of a projectile machine)

set a chance for steam to spawn from the vents (20%) and reduced the lifetime of the projectiles and adjusted the formulas for the shaders accordingly so that the steam projectiles still look the same
This commit is contained in:
AquaSG committed 2023-01-01 23:38:48 -05:00
1 parent 33d2d43076
commit 72bcf5a66d
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Environment
{
public class HotSteam : ModProjectile, IAdditiveDrawer
{
public const int Lifetime = 180;
public const int Lifetime = 90;
public override string Texture => "CalamityMod/Projectiles/Summon/SmallAresArms/MinionPlasmaGas";
@@ -37,8 +37,8 @@ namespace CalamityMod.Projectiles.Environment
public override void AI()
{
Projectile.localAI[0] = 0f;
Projectile.scale = Utils.Remap(Projectile.timeLeft, Lifetime, 0.4f, 0.02f, 1.4f);
Projectile.Opacity = Utils.Remap(Projectile.timeLeft, 160f, 50f, 1.15f, 0.01f);
Projectile.scale = Utils.Remap((Projectile.timeLeft+Lifetime), 180, 0.4f, 0.02f, 1.4f);
Projectile.Opacity = Utils.Remap((Projectile.timeLeft+Lifetime), 160f, 50f, 1.15f, 0.01f);
Projectile.velocity.Y *= 0.97f;
}
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Tiles.Abyss
Tile t = CalamityUtils.ParanoidTileRetrieval(i, j);
Vector2 spawnPosition = new(i * 16f + 24f, j * 16f - 4f);
if (!Main.gamePaused && t.TileFrameX % 36 == 0 && t.TileFrameY % 36 == 0 && Collision.CanHitLine(spawnPosition, 1, 1, spawnPosition - Vector2.UnitY * 100f, 1, 1))
if (!Main.gamePaused && t.TileFrameX % 36 == 0 && t.TileFrameY % 36 == 0 && Collision.CanHitLine(spawnPosition, 1, 1, spawnPosition - Vector2.UnitY * 100f, 1, 1) && Main.rand.Next(0, 5) == 0)
{
float positionInterpolant = (i + j) * 0.041f % 1f;
Vector2 smokeVelocity = -Vector2.UnitY.RotatedByRandom(0.11f) * MathHelper.Lerp(4.8f, 8.1f, positionInterpolant);