Files
CalamityModPublic/Items/Weapons/Melee/TheMicrowave.cs
T

47 lines
1.5 KiB
C#

using CalamityMod.Projectiles.Melee.Yoyos;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
namespace CalamityMod.Items.Weapons.Melee
{
public class TheMicrowave : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
public static readonly SoundStyle BeepSound = new("CalamityMod/Sounds/Custom/MicrowaveBeep");
public static readonly SoundStyle MMMSound = new("CalamityMod/Sounds/Custom/MMMMMMMMMMMMM") { IsLooped = true };
public override void SetStaticDefaults()
{
ItemID.Sets.Yoyo[Item.type] = true;
ItemID.Sets.GamepadExtraRange[Item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 34;
Item.height = 34;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.damage = 111;
Item.knockBack = 3f;
Item.useTime = 22;
Item.useAnimation = 22;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.Item1;
Item.channel = true;
Item.noUseGraphic = true;
Item.noMelee = true;
Item.shoot = ModContent.ProjectileType<MicrowaveYoyo>();
Item.shootSpeed = 14f;
Item.rare = ItemRarityID.Cyan;
Item.value = CalamityGlobalItem.Rarity9BuyPrice;
}
}
}