Files
CalamityModPublic/Projectiles/Rogue/SandDollarProj.cs
T
Ozzatron 31f396d29b 1 - Replaced AverageDamage with "best class damage"
2 - Shield slams scale with melee instead of anything
3 - A few things scale with summon instead of anything, like Demonshade Red Devil
4 - Hide of Astrum Deus scales with melee instead of anything
5 - Other minor pedantic scaling changes
6 - Hundreds of compile errors
2022-05-22 19:13:21 -04:00

42 lines
1.2 KiB
C#

using Microsoft.Xna.Framework;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class SandDollarProj : ModProjectile
{
public override string Texture => "CalamityMod/Items/Weapons/Rogue/SandDollar";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sand Dollar");
}
public override void SetDefaults()
{
Projectile.width = 30;
Projectile.height = 28;
Projectile.DamageType = RogueDamageClass.Instance;
Projectile.friendly = true;
Projectile.penetrate = -1;
Projectile.aiStyle = 3;
Projectile.timeLeft = 300;
AIType = ProjectileID.Bananarang;
}
public override bool OnTileCollide(Vector2 oldVelocity)
{
Projectile.ai[0] += 0.1f;
if (Projectile.velocity.X != oldVelocity.X)
{
Projectile.velocity.X = -oldVelocity.X;
}
if (Projectile.velocity.Y != oldVelocity.Y)
{
Projectile.velocity.Y = -oldVelocity.Y;
}
return false;
}
}
}