Files
CalamityModPublic/Items/Accessories/ElementalQuiver.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

56 lines
2.1 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class ElementalQuiver : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Elemental Quiver");
Tooltip.SetDefault("15% increased ranged damage, 5% increased ranged critical strike chance, and 20% reduced ammo usage\n" +
"5 increased defense, 2 increased life regen, and 15% increased pick speed\n" +
"Greatly increases arrow speed and grants a 20% chance to not consume arrows");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 32;
item.value = CalamityGlobalItem.Rarity14BuyPrice;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.DarkBlue;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.rangedDamage += 0.15f;
player.rangedCrit += 5;
player.lifeRegen += 2;
player.statDefense += 5;
player.pickSpeed -= 0.15f;
player.magicQuiver = true;
CalamityPlayer modPlayer = player.Calamity();
modPlayer.eQuiver = true; // Since splitting was removed, this has no effect.
modPlayer.rangedAmmoCost *= 0.8f;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.MagicQuiver);
recipe.AddIngredient(ModContent.ItemType<DaedalusEmblem>());
recipe.AddIngredient(ItemID.LunarBar, 8);
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 4);
recipe.AddIngredient(ModContent.ItemType<AscendantSpiritEssence>(), 4);
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}