Statigel stuff now crafted at Solidifier Static Refiner recipe changed Ancient furniture now crafted at Ashen Altar Ancient Altar now crafted at Ashen Altar Botanic furniture now crafted at Living Loom Botanic Planter now crafted at Living Loom Silva furniture now crafted at Glass Kiln Effulgent Manipulator renamed to Silva Basin since it no longer manipulates Silva Basin now crafted at Glass Kiln Navystone furniture now crafted at Sawmill Eutrophic Shelf recipe now uses Ancient Navystone instead of Navystone and is crafted at the Sawmill Wulfrum furniture now crafted at anvils Monoltih Amalgam now crafted at Sawmill Amalgam recipe is now at Sawmill All Stratus furniture is now at the void condenser Both Navysatone sets use their respective smooth navystone blocks Some Monolith, Navystone, Marnite, Driftwood, and Ancient Navystone furniture pieces are now crafted by hand, anvil, or work bench instead of sawmill theres probably some oversight somewhere in these 282 changed files jfc im sorry cit
66 lines
2.5 KiB
C#
66 lines
2.5 KiB
C#
using CalamityMod.ExtraJumps;
|
|
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.Localization;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Armor.Statigel
|
|
{
|
|
[AutoloadEquip(EquipType.Head)]
|
|
[LegacyName("StatigelCap")]
|
|
public class StatigelHeadMagic : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
|
|
|
public static float MagicDamageBoost = 0.1f;
|
|
public static float ManaCostReduction = 0.1f;
|
|
public static int MagicCritBoost = 7;
|
|
public static int MaxManaBoost = 40;
|
|
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDamageBoost.ToPercent(), ManaCostReduction.ToPercent(), MagicCritBoost, MaxManaBoost);
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 18;
|
|
Item.height = 18;
|
|
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
|
|
Item.rare = ItemRarityID.LightRed;
|
|
Item.defense = 5; //22
|
|
}
|
|
|
|
public override bool IsArmorSet(Item head, Item body, Item legs)
|
|
{
|
|
return body.type == ModContent.ItemType<StatigelArmor>() && legs.type == ModContent.ItemType<StatigelGreaves>();
|
|
}
|
|
|
|
public override void UpdateArmorSet(Player player)
|
|
{
|
|
player.setBonus = CalamityUtils.GetTextFromModItem<StatigelArmor>("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent());
|
|
var modPlayer = player.Calamity();
|
|
modPlayer.statigelSet = true;
|
|
player.GetJumpState<StatigelJump>().Enable();
|
|
Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15);
|
|
player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost;
|
|
}
|
|
|
|
public override void UpdateEquip(Player player)
|
|
{
|
|
player.GetDamage<MagicDamageClass>() += MagicDamageBoost;
|
|
player.GetCritChance<MagicDamageClass>() += MagicCritBoost;
|
|
player.manaCost -= ManaCostReduction;
|
|
player.statManaMax2 += MaxManaBoost;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<PurifiedGel>(5).
|
|
AddIngredient<BlightedGel>(5).
|
|
AddTile(TileID.Solidifier).
|
|
SortBeforeFirstRecipesOf(ModContent.ItemType<StatigelArmor>()).
|
|
Register();
|
|
}
|
|
}
|
|
}
|