Files
CalamityModPublic/Items/Weapons/Melee/TheObliterator.cs
T
2023-08-13 17:19:32 +07:00

43 lines
1.3 KiB
C#

using CalamityMod.Projectiles.Melee.Yoyos;
using CalamityMod.Rarities;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class TheObliterator : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Melee";
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 = 42;
Item.height = 40;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.damage = 250;
Item.knockBack = 7.5f;
Item.useTime = 20;
Item.useAnimation = 20;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.Item1;
Item.channel = true;
Item.noUseGraphic = true;
Item.noMelee = true;
Item.shoot = ModContent.ProjectileType<ObliteratorYoyo>();
Item.shootSpeed = 16f;
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
Item.rare = ModContent.RarityType<DarkBlue>();
}
}
}