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

45 lines
1.3 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class LivingDew : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 34;
Item.height = 22;
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.rare = ItemRarityID.Lime;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.statLifeMax2 += 50;
// Inherits all effects of Honey Dew
CalamityPlayer modPlayer = player.Calamity();
modPlayer.alwaysHoneyRegen = true;
modPlayer.honeyTurboRegen = true;
modPlayer.honeyDewHalveDebuffs = true;
modPlayer.livingDewHalveDebuffs = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<HoneyDew>().
AddIngredient<LivingShard>(6).
// TODO -- Replace with Water Essence
AddIngredient<EssenceofSunlight>(5).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}