Galx Smasher Fucking Kills you irl now Implemented homing for the echo hammers and did some buffs and nerfs based on Done's tests
59 lines
1.9 KiB
C#
59 lines
1.9 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Projectiles.Melee;
|
|
using CalamityMod.Rarities;
|
|
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Melee
|
|
{
|
|
[LegacyName("GalaxySmasherMelee", "GalaxySmasherRogue")]
|
|
public class GalaxySmasher : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Weapons.Melee";
|
|
public static int BaseDamage = 1300;
|
|
public static float Speed = 30f;
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 86;
|
|
Item.height = 72;
|
|
Item.DamageType = DamageClass.MeleeNoSpeed;
|
|
Item.damage = BaseDamage;
|
|
Item.knockBack = 14f;
|
|
Item.useAnimation = 40;
|
|
Item.useTime = 40;
|
|
Item.autoReuse = true;
|
|
Item.noMelee = true;
|
|
Item.noUseGraphic = true;
|
|
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.UseSound = SoundID.Item1;
|
|
|
|
Item.rare = ModContent.RarityType<DarkBlue>();
|
|
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
|
|
|
|
Item.shoot = ModContent.ProjectileType<GalaxySmasherHammer>();
|
|
Item.shootSpeed = Speed;
|
|
}
|
|
|
|
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
|
{
|
|
Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
|
|
return false;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<StellarContempt>().
|
|
AddIngredient<CosmiliteBar>(10).
|
|
AddTile<CosmicAnvil>().
|
|
Register();
|
|
}
|
|
}
|
|
}
|