Files
CalamityModPublic/Items/Weapons/Melee/TheObliterator.cs
T
Xyk 0a03d6cbc4 Brimstone Moon + accidental Obliterator GFB
Brimstone moons -> brimstone moon
I was not trying to but the obliterator gfb on this branch but forgot to switch oops
2024-03-09 20:01:37 -08:00

46 lines
1.5 KiB
C#

using System.Collections.Generic;
using CalamityMod.Projectiles.Melee.Yoyos;
using CalamityMod.Rarities;
using Terraria;
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 = 220;
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>();
}
public override void ModifyTooltips(List<TooltipLine> list) => list.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal"));
}
}