Files
CalamityModPublic/Items/Weapons/Melee/MycelialClaws.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

42 lines
1.4 KiB
C#

using CalamityMod.Buffs.StatBuffs;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class MycelialClaws : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.width = 22;
Item.height = 24;
Item.damage = 28;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 7;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 7;
Item.useTurn = true;
Item.knockBack = 3.75f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) => player.AddBuff(ModContent.BuffType<Mushy>(), 360);
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo) => player.AddBuff(ModContent.BuffType<Mushy>(), 360);
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(4))
{
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustID.BlueFairy);
}
}
}
}