Files
CalamityModPublic/Items/Weapons/Magic/ClothiersWrath.cs
T
Andrew Marheine 40f81e6bb2 1 - Malice items are no longer challenge drops/legendary challenge drops.
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.
2022-01-11 22:17:51 -06:00

51 lines
1.7 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class ClothiersWrath : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Clothier's Wrath");
Tooltip.SetDefault("Shoots 3 shadowflame skulls");
}
public override void SetDefaults()
{
item.damage = 19;
item.magic = true;
item.mana = 15;
item.width = 28;
item.height = 30;
item.useTime = 22;
item.useAnimation = 22;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 3f;
item.value = CalamityGlobalItem.Rarity3BuyPrice;
item.rare = ItemRarityID.Orange;
item.UseSound = SoundID.Item8;
item.autoReuse = true;
item.shoot = ProjectileID.ClothiersCurse;
item.shootSpeed = 6f;
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int numProj = 2;
float rotation = MathHelper.ToRadians(2);
for (int i = 0; i < numProj + 1; i++)
{
Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1)));
int proj = Projectile.NewProjectile(position, perturbedSpeed, type, damage, knockBack, player.whoAmI);
if (proj.WithinBounds(Main.maxProjectiles))
Main.projectile[proj].Calamity().forceMagic = true;
}
return false;
}
}
}