- Added support for animated projectiles - Refactoring - Removed useless fields - Fixed swords not dealing damages - Added Hour Hand (from Evie's PR)
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using Decimation.Content.Items.Weapons;
|
|
using Decimation.Lib.Items;
|
|
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
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.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;
|
|
}
|
|
}
|
|
} |