Files
CalamityModPublic/Items/Accessories/DynamoStemCells.cs
T
Andrew Marheine d5a2c4963b 1 - Expert boss items are now dropped on all modes and no longer have the expert rarity or tag.
2 - Counter Scarf is no longer dropped by EoC and is now sold by the Clothier for 10 gold.
2022-01-14 22:32:02 -06:00

34 lines
934 B
C#

using Terraria;
using Terraria.ID;
using Terraria.DataStructures;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class DynamoStemCells : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Dynamo Stem Cells");
Tooltip.SetDefault(@"10% increased movement speed
Ranged weapons have a chance to fire mini swarmers");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5));
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.value = CalamityGlobalItem.Rarity11BuyPrice;
item.rare = ItemRarityID.Purple;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().dynamoStemCells = true;
player.moveSpeed += 0.1f;
}
}
}