- Mana Polarizer & Hydro lifesteal no longer requires holding a mage weapon - Obliterator counterweights now cause an extra dimensional drive. Dmg nerf to compensate 475 -> 400 - Omega Blue set 69 -> 50 defense - Glaive dmg 22 -> 19; ut 15 -> 22 shred DoT 60 -> 100, 0.6 -> 0.4 ssdm - Blazing Star 10% -> 20% falloff, tile ricochets now cause falloff too - Flamarang 2 -> 1 extra update, 37 -> 40 damage - Undid the *dev only* amalgam debuff mult increase (stays +200%, same as public) - Bloom Stone is now a flat +30 MPH buff - Fixed Vodka doing literally nothing lol - Nebulous Core spawns more consistently at a rate of 8 stars per second. Boosted its homing speed.
59 lines
1.9 KiB
C#
59 lines
1.9 KiB
C#
using System.Collections.Generic;
|
|
using CalamityMod.Items.Weapons.Ranged;
|
|
using CalamityMod.NPCs.DevourerofGods;
|
|
using CalamityMod.Projectiles.Melee.Yoyos;
|
|
using CalamityMod.Rarities;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.Localization;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Melee
|
|
{
|
|
public class TheObliterator : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Weapons.Melee";
|
|
|
|
public static float Reach = 720f;
|
|
public static float Speed = 54f;
|
|
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(Reach.ToTiles(), Speed);
|
|
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
|
{
|
|
tooltips.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal"));
|
|
}
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
ItemID.Sets.Yoyo[Type] = true;
|
|
ItemID.Sets.GamepadExtraRange[Type] = 15;
|
|
ItemID.Sets.GamepadSmartQuickReach[Type] = true;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 42;
|
|
Item.height = 40;
|
|
Item.DamageType = DamageClass.MeleeNoSpeed;
|
|
Item.damage = 400;
|
|
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.RarityDarkBlueBuyPrice;
|
|
Item.rare = ModContent.RarityType<CosmicPurple>();
|
|
}
|
|
|
|
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
|
|
}
|
|
}
|