Files
CalamityModPublic/Items/Placeables/EutrophicSand.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

37 lines
1.1 KiB
C#

using CalamityMod.Items.Placeables.Walls;
using CalamityMod.Projectiles.Typeless;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables
{
public class EutrophicSand : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<Navystone>();
// +5 flat damage, equal to other sand variants
ItemID.Sets.SandgunAmmoProjectileData[Type] = new(ModContent.ProjectileType<EutrophicSandBallGun>(), 5);
}
public override void SetDefaults()
{
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.SunkenSea.EutrophicSand>());
Item.ammo = AmmoID.Sand;
Item.notAmmo = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<EutrophicSandWallSafe>(4).
AddTile(TileID.WorkBenches).
Register();
}
}
}