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.
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using CalamityMod.Projectiles.Magic;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Magic
|
|
{
|
|
public class Cryophobia : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Weapons.Magic";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 56;
|
|
Item.height = 34;
|
|
Item.damage = 96;
|
|
Item.DamageType = DamageClass.Magic;
|
|
Item.mana = 18;
|
|
Item.useTime = 40;
|
|
Item.useAnimation = 40;
|
|
Item.useStyle = ItemUseStyleID.Shoot;
|
|
Item.noMelee = true;
|
|
Item.knockBack = 1.5f;
|
|
Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice;
|
|
Item.rare = ItemRarityID.LightPurple;
|
|
Item.UseSound = SoundID.Item117;
|
|
Item.autoReuse = true;
|
|
Item.shootSpeed = 6f;
|
|
Item.shoot = ModContent.ProjectileType<CryoBlast>();
|
|
}
|
|
|
|
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
|
|
}
|
|
}
|