Files
CalamityModPublic/Items/Weapons/Summon/DragonbloodDisgorger.cs
T
Andrew Marheine ef9f2743d3 1 - Increased the mana cost of a few weapons so that they can attain more reforges.
2 - Reduced the amount of projectiles Hellwing Staff creates from 7 to 4.
3 - Standardized most summon weapon mana costs to be 10.
2021-08-09 10:25:35 -05:00

57 lines
2.0 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Summon;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Summon
{
public class DragonbloodDisgorger : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Dragonblood Disgorger");
Tooltip.SetDefault("Summons a skeletal dragon and her two children\n" +
"Requires 6 minion slots to be summoned\n" +
"There can only be one family");
}
public override void SetDefaults()
{
item.damage = 160;
item.mana = 10;
item.width = 64;
item.height = 62;
item.useTime = item.useAnimation = 15;
item.useStyle = ItemUseStyleID.SwingThrow;
item.noMelee = true;
item.knockBack = 4f;
item.value = CalamityGlobalItem.Rarity12BuyPrice;
item.rare = ItemRarityID.Purple;
item.Calamity().customRarity = CalamityRarity.Turquoise;
item.UseSound = SoundID.DD2_SkeletonDeath;
item.shoot = ModContent.ProjectileType<SkeletalDragonMother>();
item.shootSpeed = 10f;
item.summon = true;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
Projectile.NewProjectile(Main.MouseWorld, Vector2.Zero, type, damage, knockBack, player.whoAmI);
return false;
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0 && player.maxMinions >= 5;
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.AddIngredient(ModContent.ItemType<BloodstoneCore>(), 12);
r.AddTile(TileID.LunarCraftingStation);
r.SetResult(this);
r.AddRecipe();
}
}
}