2 - Malice items now drop on all modes. 3 - Malice item tooltip edited because it is now a pure challenge mode with no content gated behind it, except for Gael's Greatsword. 4 - Malice weapon damage reduced by 20%. They'll all require testing, but this was done to hopefully balance them on all modes a bit before that.
56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
using CalamityMod.Projectiles.Ranged;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Weapons.Ranged
|
|
{
|
|
public class Norfleet : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Norfleet");
|
|
Tooltip.SetDefault("Fire everything!");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 354;
|
|
item.knockBack = 15f;
|
|
item.shootSpeed = 30f;
|
|
item.useStyle = ItemUseStyleID.HoldingOut;
|
|
item.useAnimation = 75;
|
|
item.useTime = 75;
|
|
item.reuseDelay = 0;
|
|
item.width = 140;
|
|
item.height = 42;
|
|
item.UseSound = SoundID.Item92;
|
|
item.shoot = ModContent.ProjectileType<NorfleetCannon>();
|
|
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
|
item.rare = ItemRarityID.Purple;
|
|
item.Calamity().customRarity = CalamityRarity.DarkBlue;
|
|
item.noMelee = true;
|
|
item.noUseGraphic = true;
|
|
item.ranged = true;
|
|
item.channel = true;
|
|
item.useTurn = false;
|
|
item.useAmmo = AmmoID.FallenStar;
|
|
item.autoReuse = true;
|
|
}
|
|
|
|
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
|
|
|
public override Vector2? HoldoutOffset()
|
|
{
|
|
return new Vector2(-10, 0);
|
|
}
|
|
|
|
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
|
{
|
|
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<NorfleetCannon>(), 0, 0f, player.whoAmI);
|
|
return false;
|
|
}
|
|
}
|
|
}
|