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

47 lines
1.5 KiB
C#

using CalamityMod.Projectiles.Melee.Yoyos;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
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.RarityCyanBuyPrice;
}
}
}