Files
CalamityModPublic/Items/Accessories/SandCloak.cs
T
Ozzatron 22afdd3933 1 - Calamity sell prices increase much more sharply with rarity.
2 - (Example) Post DoG items are now 2 platinum instead of 1 platinum 40 gold.
3 - (Example) Dev items are now 2 platinum 80 gold instead of 2 platinum.
4 - Privated numeric rarity item values.
5 - All assigned item values use the rarity's names, e.g. RarityLightPurpleBuyPrice.
2024-04-17 21:20:17 -04:00

32 lines
946 B
C#

using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class SandCloak : ModItem, ILocalizedModType
{
public static float KnockbackStrength = 0.3f;
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 30;
Item.height = 44;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.accessory = true;
Item.defense = 2;
}
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateHotkey(CalamityKeybinds.SandCloakHotkey);
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.moveSpeed += 0.05f;
player.Calamity().sandCloak = true;
}
}
}