Files
CalamityModPublic/Items/Accessories/AeroStone.cs
T
Andrew Marheine 2c47aa57de 1 - Aero Stone adjusted to give stat bonuses that make more sense.
2 - Many jump speed bonuses rebalanced.
3 - Absorber and Sponge give 4 regen while standing still instead of 2.
4 - Grand Gelatin, Life Jelly and Mana Jelly give 4 regen while standing still instead of 2.
5 - Heart of the Elements is a pure summon accessory.
6 - I have no idea what to do with Cryo, Chaos and Bloom Stone.
2021-08-19 23:33:27 -05:00

36 lines
1.0 KiB
C#

using System.Collections.Generic;
using Terraria;
using Terraria.DataStructures;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Accessories
{
public class AeroStone : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Aero Stone");
Tooltip.SetDefault("One of the ancient relics\n" +
"Increases flight time, movement speed and jump speed by 10%");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(4, 8));
}
public override void SetDefaults()
{
item.width = 40;
item.height = 50;
item.value = CalamityGlobalItem.Rarity2BuyPrice;
item.rare = ItemRarityID.Green;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().aeroStone = true;
player.moveSpeed += 0.1f;
player.jumpSpeedBoost += 0.5f;
}
}
}