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.
28 lines
875 B
C#
28 lines
875 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class RottenDogtooth : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
internal const int ArmorCrunchDebuffTime = 150;
|
|
internal const float StealthStrikeDamageMultiplier = 0.08f;
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 14;
|
|
Item.height = 22;
|
|
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
|
Item.rare = ItemRarityID.Blue;
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.Calamity().rottenDogTooth = true;
|
|
player.Calamity().bonusStealthDamage += StealthStrikeDamageMultiplier;
|
|
}
|
|
}
|
|
}
|