- 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.
68 lines
2.4 KiB
C#
68 lines
2.4 KiB
C#
using CalamityMod.Projectiles.Rogue;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Rogue
|
|
{
|
|
public class Glaive : RogueWeapon
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 34;
|
|
Item.height = 32;
|
|
Item.damage = 19;
|
|
Item.DamageType = RogueDamageClass.Instance;
|
|
Item.crit = 6;
|
|
Item.autoReuse = true;
|
|
Item.noMelee = true;
|
|
Item.noUseGraphic = true;
|
|
Item.useTime = 22;
|
|
Item.useAnimation = 22;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.knockBack = 3;
|
|
Item.value = Item.buyPrice(gold: 10); // Sold by Bandit
|
|
Item.rare = ItemRarityID.Orange;
|
|
Item.UseSound = SoundID.Item1;
|
|
|
|
Item.shootSpeed = 13f;
|
|
Item.shoot = ModContent.ProjectileType<GlaiveProj>();
|
|
}
|
|
public override float StealthVelocityMultiplier => 1.3f;
|
|
|
|
public override float StealthDamageMultiplier => 0.4f;
|
|
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
|
{
|
|
var p = Projectile.NewProjectileDirect(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, -1f);
|
|
if (player.Calamity().StealthStrikeAvailable())
|
|
{
|
|
p.Calamity().stealthStrike = true;
|
|
p.netUpdate = true;
|
|
|
|
var goType = ModContent.ProjectileType<GlaiveOrbital>();
|
|
if (player.ownedProjectileCounts[goType] <= 0)
|
|
{
|
|
p = Projectile.NewProjectileDirect(source, position, Vector2.Zero, ModContent.ProjectileType<GlaiveOrbital>(), damage, 10, player.whoAmI, 0f, -1f);
|
|
p.Calamity().stealthStrike = true;
|
|
}
|
|
else
|
|
{
|
|
foreach (var proj in Main.ActiveProjectiles)
|
|
{
|
|
if (proj.active && proj.type == goType && proj.owner == player.whoAmI)
|
|
{
|
|
proj.timeLeft += 300;
|
|
proj.netUpdate = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|