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.
27 lines
893 B
C#
27 lines
893 B
C#
using CalamityMod.Projectiles.Typeless;
|
|
using CalamityMod.Rarities;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
using static Terraria.ModLoader.ModContent;
|
|
|
|
namespace CalamityMod.Items.Tools
|
|
{
|
|
public class BobbitHook : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Tools";
|
|
public override void SetDefaults()
|
|
{
|
|
// Instead of copying these values, we can clone and modify the ones we want to copy
|
|
Item.CloneDefaults(ItemID.AmethystHook);
|
|
Item.width = 30;
|
|
Item.height = 32;
|
|
Item.shootSpeed = BobbitHead.LaunchSpeed; // How quickly the hook is shot.
|
|
Item.shoot = ProjectileType<BobbitHead>();
|
|
Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice;
|
|
Item.rare = ModContent.RarityType<PureGreen>();
|
|
}
|
|
}
|
|
}
|