Decimation_Mod/Content/Items/Weapons/Slimer.cs
FyloZ 8c2c2e5aa0 Added Slimer
Added Green Slime
2020-06-11 11:06:29 -04:00

39 lines
1.3 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 => "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 = 42;
item.height = 26;
item.value = Item.buyPrice(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();
}
}
}