54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Melee.Yoyos;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Melee
|
|
{
|
|
public class Quagmire : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Quagmire");
|
|
Tooltip.SetDefault("Fires spore clouds");
|
|
ItemID.Sets.Yoyo[item.type] = true;
|
|
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
|
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 30;
|
|
item.height = 36;
|
|
item.melee = true;
|
|
item.damage = 52;
|
|
item.knockBack = 3.5f;
|
|
item.useTime = 22;
|
|
item.useAnimation = 22;
|
|
item.autoReuse = true;
|
|
|
|
item.useStyle = ItemUseStyleID.HoldingOut;
|
|
item.UseSound = SoundID.Item1;
|
|
item.channel = true;
|
|
item.noUseGraphic = true;
|
|
item.noMelee = true;
|
|
|
|
item.shoot = ModContent.ProjectileType<QuagmireYoyo>();
|
|
item.shootSpeed = 10f;
|
|
|
|
item.rare = ItemRarityID.Lime;
|
|
item.value = Item.buyPrice(gold: 60);
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<DraedonBar>(), 6);
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|