This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
28 lines
831 B
C#
28 lines
831 B
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class BloodPact : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 26;
|
|
Item.height = 26;
|
|
Item.rare = ItemRarityID.Yellow;
|
|
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.bloodPact = true; // This applies the +25% health boost.
|
|
modPlayer.healingPotionMultiplier += 0.25f;
|
|
}
|
|
}
|
|
}
|