Decimation_Mod/Content/Projectiles/Pebble.cs
FyloZ 05149c4341 The bloody lunar tablet could be used at day time
Fixed the sling and the slingshot
Balanced the sling and the slingshot
2020-03-30 12:39:49 -04:00

32 lines
1021 B
C#

using Decimation.Lib.Items;
using Terraria.ID;
namespace Decimation.Content.Projectiles
{
internal class Pebble : DecimationProjectile
{
public override string Texture => "Decimation/Content/Items/Ammo/Pebble";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Pebble");
}
protected override void Init()
{
projectile.width = 10;
projectile.height = 10;
projectile.scale = 0.625f;
projectile.aiStyle = 1;
DamageType = DecimationWeapon.DamageType.Ranged;
projectile.knockBack = 6;
projectile.penetrate = 5;
projectile.timeLeft = 600;
projectile.alpha = 0;
projectile.light = 0.5f;
projectile.extraUpdates = 1;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 5;
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
aiType = ProjectileID.WoodenArrowFriendly;
}
}
}