Files
CalamityModPublic/Projectiles/Environment/HotSteam.cs
T
DominicKarma 5713fdab15 FUCKTON of content. See description for a list
Added Eternity, my dev weapon
Changed the Sulf Sea worldgen a bit (a wip, more sprites needed)
Added a ton of Acid Rain weapons and enemies
Added a ton of summon weapons
Added some early-game Sulf Sea weapons
2020-03-09 17:55:45 -05:00

39 lines
1.1 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Environment
{
public class HotSteam : ModProjectile
{
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);
}
}
}