Files
CalamityModPublic/Items/Placeables/Abyss/SulphurousSand.cs
T
Doze-Zoze c66d71006e Sand & Sandgun changes & fixes
Fixed our sandball collision logic to work like Vanilla sand.

Adjusted damages of prehardmode falling sands to match Vanilla sand at 10. Astral stays 15, and Eutrophic is 5 due to sandgun balancing. (This is OK since most of the sand damage to a player comes from suffocation)

All our sands can now be fired by Sandgun and have unique effects depending on the sand. (For context, Vanilla Evil/Hallow sand does +5 damage and pierces infinitely)
- Sulphur Sand hits 2 targets and inflicts Irradiated
- Dunesand has lower velocity, infinte piercing, +5 damage, and longer time without gravity
- Eutrophic Sand has -5 damage and inflicts Eutrophication
- Polyp Sand has minor homing and ignores platforms
- Volcanic Sand does much less damage, but fires an additional short range shotgun blast
- Astral Sand splits into 5 homing sandballs on hit
2025-09-22 22:16:44 -05:00

35 lines
1.1 KiB
C#

using CalamityMod.Projectiles.Typeless;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.Abyss
{
public class SulphurousSand : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<SulphurousShale>();
ItemID.Sets.SandgunAmmoProjectileData[Type] = new(ModContent.ProjectileType<SulphurousSandBallGun>(), 0);
}
public override void SetDefaults()
{
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Abyss.SulphurousSand>());
Item.ammo = AmmoID.Sand;
Item.notAmmo = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<Walls.SulphurousSandWall>(4).
AddTile(TileID.WorkBenches).
DisableDecraft().
Register();
}
}
}