Files
CalamityModPublic/Items/Accessories/PlanebreakersPouch.cs
T
Altixal a321ece97b Material culling & recipe changes 2024
- Removed Demonic Bone Ash
- Removed Murky Paste
- Removed Trapper Bulb

Most of these are recipe ordering hell (again)
- Moved Shadowspec Bar to the top of most materials
- Moved Cosmilite Bar to the top of most materials (under SSpec)
- Moved complementary ASE type to pair below Bars
- Swap recipe order of Soul Artifacts
- Enforced certain material pairing orders
- Added missing materials for certain sets
2024-09-05 23:19:37 +07:00

47 lines
1.5 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[LegacyName("ElementalQuiver")]
public class PlanebreakersPouch : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 28;
Item.height = 32;
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
Item.accessory = true;
Item.rare = ModContent.RarityType<DarkBlue>();
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.GetDamage<RangedDamageClass>() += 0.15f;
player.GetCritChance<RangedDamageClass>() += 5;
player.magicQuiver = true;
CalamityPlayer modPlayer = player.Calamity();
modPlayer.deadshotBrooch = true;
modPlayer.rangedAmmoCost *= 0.8f;
}
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("AnyQuiver").
AddIngredient<DeadshotBrooch>().
AddIngredient(ItemID.LunarBar, 8).
AddIngredient<AscendantSpiritEssence>(4).
AddIngredient<GalacticaSingularity>(4).
AddTile<CosmicAnvil>().
Register();
}
}
}