Files
CalamityModPublic/Items/Weapons/Rogue/NanoblackReaperRogue.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.6 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class NanoblackReaperRogue : RogueWeapon
{
public static int BaseDamage = 100;
public static float Knockback = 9f;
public static float Speed = 16f;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Nanoblack Reaper");
Tooltip.SetDefault("Unleashes a storm of nanoblack energy blades\nBlades target bosses whenever possible\n'She smothered them in Her hatred'");
}
public override void SafeSetDefaults()
{
item.width = 78;
item.height = 64;
item.damage = BaseDamage;
item.knockBack = Knockback;
item.useTime = 6;
item.useAnimation = 6;
item.autoReuse = true;
item.noMelee = true;
item.noUseGraphic = true;
item.useStyle = ItemUseStyleID.SwingThrow;
item.UseSound = SoundID.Item18;
item.value = CalamityGlobalItem.Rarity16BuyPrice;
item.Calamity().customRarity = CalamityRarity.HotPink;
item.Calamity().devItem = true;
item.Calamity().rogue = true;
item.shoot = ModContent.ProjectileType<NanoblackMain>();
item.shootSpeed = Speed;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
if (proj.WithinBounds(Main.maxProjectiles))
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.SetResult(this);
r.AddIngredient(ModContent.ItemType<GhoulishGouger>());
r.AddIngredient(ModContent.ItemType<MoltenAmputator>());
r.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 40);
r.AddIngredient(ModContent.ItemType<PlagueCellCluster>(), 20);
r.AddIngredient(ItemID.Nanites, 400);
r.AddIngredient(ModContent.ItemType<ShadowspecBar>(), 5);
r.AddTile(ModContent.TileType<DraedonsForge>());
r.AddRecipe();
}
}
}