Files
CalamityModPublic/Items/Accessories/GrandGelatin.cs
T
Xyk 322d6748f1 Grand Gelatin Rework
Using a healing potion will spawn an aura that both cleanses all debuffs and defense damage once and provides life regeneration to all player inside for 8 seconds, 10% increased movement and jump speed
2023-08-06 22:34:28 -04:00

42 lines
1.2 KiB
C#

using System;
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class GrandGelatin : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 20;
Item.height = 24;
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
Item.rare = ItemRarityID.Pink;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.GrandGelatin = true;
player.moveSpeed += 0.1f;
player.jumpSpeedBoost += 0.5f;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<CleansingJelly>().
AddIngredient<LifeJelly>().
AddIngredient<VitalJelly>().
AddIngredient(ItemID.SoulofLight, 2).
AddIngredient(ItemID.SoulofNight, 2).
AddTile(TileID.Anvils).
Register();
}
}
}