Files
CalamityModPublic/Items/Weapons/Melee/DragonPow.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

70 lines
2.5 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class DragonPow : ModItem
{
public static float Speed = 13f;
public static float ReturnSpeed = 20f;
public static float SparkSpeed = 0.6f;
public static float MinPetalSpeed = 24f;
public static float MaxPetalSpeed = 30f;
public static float MinWaterfallSpeed = 12f;
public static float MaxWaterfallSpeed = 15.5f;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Dragon Pow");
Tooltip.SetDefault(@"Fires a dragon head that releases draconic sparks
Summons a barrage of petals and waterfalls on enemy hits");
}
public override void SetDefaults()
{
item.width = 76;
item.height = 82;
item.melee = true;
item.damage = 660;
item.knockBack = 9f;
item.useAnimation = 20;
item.useTime = 20;
item.autoReuse = true;
item.noMelee = true;
item.noUseGraphic = true;
item.useStyle = ItemUseStyleID.HoldingOut;
item.UseSound = mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YharonRoarShort");
item.channel = true;
item.value = CalamityGlobalItem.Rarity15BuyPrice;
item.Calamity().customRarity = CalamityRarity.Violet;
item.Calamity().donorItem = true;
item.shoot = ModContent.ProjectileType<DragonPowFlail>();
item.shootSpeed = Speed;
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.SetResult(this);
r.AddIngredient(ModContent.ItemType<Mourningstar>());
r.AddIngredient(ItemID.DaoofPow);
r.AddIngredient(ItemID.FlowerPow);
r.AddIngredient(ItemID.Flairon);
r.AddIngredient(ModContent.ItemType<BallOFugu>());
r.AddIngredient(ModContent.ItemType<Tumbleweed>());
r.AddIngredient(ModContent.ItemType<UrchinFlail>());
r.AddIngredient(ModContent.ItemType<HellcasterFragment>(), 4);
r.AddIngredient(ModContent.ItemType<AuricBar>(), 5);
r.AddTile(ModContent.TileType<CosmicAnvil>());
r.AddRecipe();
}
}
}