Files
CalamityModPublic/Items/Placeables/AstralSand.cs
T
Altixal da3b3f9f26 sandgun support port sup
(no real change just made it use the new april thing)
2024-04-07 00:48:46 +07:00

26 lines
788 B
C#

using CalamityMod.Projectiles.Typeless;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables
{
public class AstralSand : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
// +5 flat damage, equal to other sand variants
ItemID.Sets.SandgunAmmoProjectileData[Type] = new(ModContent.ProjectileType<AstralSandBallGun>(), 5);
}
public override void SetDefaults()
{
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.AstralDesert.AstralSand>());
Item.ammo = AmmoID.Sand;
Item.notAmmo = true;
}
}
}