Files
CalamityModPublic/Projectiles/Environment/HotSteam.cs
T
termigator1359 1b22071cf4 squash merge: Removed all unused textures
Removed nearly all unused textures in the entire mod, especially focusing on projectiles.
Apotheosis & the Death Valley Duster weapon line were ignored to prevent merge conflicts.
2020-11-15 14:25:46 -05:00

41 lines
1.2 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Environment
{
public class HotSteam : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Steam");
}
public override void SetDefaults()
{
projectile.width = 40;
projectile.height = 40;
projectile.hostile = true;
projectile.tileCollide = true;
projectile.ignoreWater = false;
projectile.timeLeft = 30;
}
public override void AI()
{
for (int i = 0; i < 6; i++)
{
Dust dust = Dust.NewDustDirect(projectile.position, projectile.width, projectile.height, 4);
dust.velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi);
dust.alpha = 127;
}
}
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(BuffID.Poisoned, 180);
}
}
}