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.
33 lines
1023 B
C#
33 lines
1023 B
C#
using CalamityMod.Projectiles.Magic;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class SnowstormStaff : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Weapons.Magic";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 66;
|
|
Item.height = 66;
|
|
Item.damage = 39;
|
|
Item.DamageType = DamageClass.Magic;
|
|
Item.channel = true;
|
|
Item.mana = 18;
|
|
Item.useTime = 70;
|
|
Item.useAnimation = 70;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.noMelee = true;
|
|
Item.knockBack = 5;
|
|
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
|
Item.rare = ItemRarityID.Pink;
|
|
Item.UseSound = SoundID.Item46;
|
|
Item.shoot = ModContent.ProjectileType<Snowflake>();
|
|
Item.shootSpeed = 7f;
|
|
Item.autoReuse = true;
|
|
}
|
|
}
|
|
}
|