2 - Exactly nine pre-Yharon weapons use each of NF, EE and DSF. 3 - Weapon upgrades which didn't require Cosmilite now take 8 bars. 4 - Costs in NF, EE and DSF standardized, except Ice Barrage, which takes double EE.
53 lines
1.7 KiB
C#
53 lines
1.7 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Magic;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class PrimordialAncient : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Primordial Ancient");
|
|
Tooltip.SetDefault("An ancient relic from an ancient land\n" +
|
|
"Casts a gigantic blast of dust");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 170;
|
|
item.magic = true;
|
|
item.mana = 20;
|
|
item.width = 40;
|
|
item.height = 56;
|
|
item.useTime = 18;
|
|
item.useAnimation = 18;
|
|
item.useStyle = ItemUseStyleID.HoldingOut;
|
|
item.noMelee = true;
|
|
item.knockBack = 5;
|
|
item.value = Item.buyPrice(1, 80, 0, 0);
|
|
item.rare = ItemRarityID.Red;
|
|
item.UseSound = SoundID.Item20;
|
|
item.autoReuse = true;
|
|
item.shoot = ModContent.ProjectileType<Ancient>();
|
|
item.shootSpeed = 8f;
|
|
item.Calamity().customRarity = CalamityRarity.DarkBlue;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<PrimordialEarth>());
|
|
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 5);
|
|
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 8);
|
|
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 20);
|
|
recipe.AddTile(TileID.Bookcases);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|