Decimation_Mod/Content/Items/Weapons/Slimer.cs
FyloZ 0cf76d5270 Organized projectiles.
Updated The Mind trinity item.
2020-07-14 22:31:26 -04:00

41 lines
1.5 KiB
C#

using Decimation.Content.Projectiles.Item.Weapon;
using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Decimation.Lib.Util.Builder;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Weapons
{
public class Slimer : DecimationWeapon
{
protected override string ItemName => "The Slimer";
protected override string ItemTooltip => "Shoots a stream of sticky green slime\n" +
"Doesn't hurt, but this stuff is sticky!";
protected override int Damages => 0;
protected override DamageType DamagesType => DamageType.Ranged;
protected override int ProjectileId => ModContent.ProjectileType<GreenSlime>();
protected override void InitWeapon()
{
item.CloneDefaults(ItemID.SlimeGun);
item.width = 46;
item.height = 24;
item.value = Item.sellPrice(silver: 40);
item.rare = Rarity.Green.GetRarityValue();
item.UseSound = mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/Slimer");
}
protected override ModRecipe GetRecipe()
{
return new RecipeBuilder(this)
.WithIngredient(ItemID.SlimeGun)
.WithIngredient(ItemID.Gel, 50)
.WithIngredient(ItemID.ArcheryPotion)
.WithIngredient(ItemID.MudBlock, 25)
.WithStation(TileID.Anvils)
.Build();
}
}
}