Files
CalamityModPublic/Items/Weapons/Magic/Fabstaff.cs
T
Ozzatron eaa04280ba 1 - Properly separated all Cosmic Anvil and Draedon's Forge recipes.
2 - An extremely large number of recipe changes. Far too many to remember.
3 - Occult Stone and furniture are now made at the Ancient Manipulator.
4 - 1 Core of Calamity now requires 1 Ashes of Calamity.
5 - Renamed the Calamitous Altar to Altar of the Accursed.
6 - All Cosmilite tier items are made at the Cosmic Anvil.
7 - Standardized the costs of all late game (Cosmilite tier and beyond) items.
2021-09-12 20:07:50 -04:00

60 lines
1.8 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;
namespace CalamityMod.Items.Weapons.Magic
{
public class Fabstaff : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fabstaff");
Tooltip.SetDefault("Casts a bouncing beam that splits when enemies are near it");
Item.staff[item.type] = true;
}
public override void SetDefaults()
{
item.damage = 125;
item.magic = true;
item.mana = 50;
item.width = 84;
item.height = 84;
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 5f;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
item.UseSound = SoundID.Item60;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<FabRay>();
item.shootSpeed = 13.5f;
}
public override Vector2? HoldoutOrigin()
{
return new Vector2(15, 15);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.RainbowRod);
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 10);
recipe.AddIngredient(ModContent.ItemType<ShadowspecBar>(), 5);
recipe.AddTile(ModContent.TileType<DraedonsForge>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}