Decimation_Mod/Content/Items/Weapons/Slimer.cs
FyloZ 884e67c5e2 Updated some potions's sprite.
Changed buy price to sell price.
2020-07-09 18:03:44 -04:00

40 lines
1.4 KiB
C#

using Decimation.Content.Projectiles;
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();
}
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();
}
}
}