Files
CalamityModPublic/Items/Accessories/AngelicAlliance.cs
T
Altixal 7bc61e25cc Localizing ModifyTooltips: Part 1
Also fixed Xyk's forgotten Y. Insig nerf
2023-07-18 02:32:36 +07:00

57 lines
2.0 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using System.Collections.Generic;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
//Developer item, dedicatee: Nincity
public class AngelicAlliance : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static readonly SoundStyle ActivationSound = new("CalamityMod/Sounds/Custom/AbilitySounds/AngelicAllianceActivation");
public override void SetDefaults()
{
Item.width = 56;
Item.height = 92;
Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice;
Item.accessory = true;
Item.rare = ModContent.RarityType<HotPink>();
Item.Calamity().devItem = true;
}
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateHotkey(CalamityKeybinds.AngelicAllianceHotKey);
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.angelicAlliance = true;
player.GetDamage<GenericDamageClass>() += 0.08f;
player.GetDamage<SummonDamageClass>() += 0.07f; //7% + 8% = 15%
player.maxMinions += 2;
if (player.controlJump)
player.lifeRegen += 4;
}
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("AnyHallowedHelmet").
AddRecipeGroup("AnyHallowedPlatemail").
AddRecipeGroup("AnyHallowedGreaves").
AddIngredient(ItemID.PaladinsShield).
AddIngredient(ItemID.TrueExcalibur).
AddIngredient(ItemID.CrossNecklace).
AddIngredient<ShadowspecBar>(5).
AddTile<DraedonsForge>().
Register();
}
}
}