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

55 lines
1.9 KiB
C#

using Decimation.Content.Items.Ores;
using Decimation.Content.Items.Weapons.Arachnus;
using Decimation.Content.Projectiles;
using Decimation.Content.Tiles;
using Decimation.Lib.Items;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Weapons
{
internal class TitanicGatliStynger : DecimationWeapon
{
protected override string ItemName => "Titanic Gatli Stynger";
protected override string ItemTooltip => "Feel the rage of Kronos by your side.";
protected override DamageType DamagesType => DamageType.Ranged;
protected override int Damages => 950;
protected override int ProjectileId => ModContent.ProjectileType<TitanicStyngerBolt>();
protected override void InitWeapon()
{
item.CloneDefaults(ItemID.Stynger);
item.knockBack = 11;
item.shootSpeed = 9f;
item.crit = 8;
item.width = 72;
item.height = 36;
item.useTime = 10;
item.useAnimation = 10;
item.rare = 10;
item.autoReuse = true;
item.value = Item.sellPrice(0, 60);
}
protected override ModRecipe GetRecipe()
{
ModRecipe recipe = GetNewModRecipe(this, 1, ModContent.TileType<TitanForge>());
recipe.AddIngredient(ModContent.ItemType<ChainStynger>());
recipe.AddIngredient(ModContent.ItemType<TitaniteBar>(), 15);
// TODO recipe.AddIngredient(null, "CondensedMight", 5);
recipe.AddIngredient(ModContent.ItemType<DenziumBar>());
return recipe;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY,
ref int type, ref int damage, ref float knockBack)
{
type = ModContent.ProjectileType<TitanicStyngerBolt>();
return true;
}
}
}