Files
CalamityModPublic/Items/Weapons/Magic/ShadowdropStaff.cs
T
Andrew Marheine 1bf3de0b06 1 - Reduced severity of boss rush i-frame curse from 5 seconds to 3 seconds.
2 - Provi darkness is now at max distance during all attacks while any guardian is alive.
3 - Elemental Quiver increases ranged damage by 15% instead of 10%.
4 - Increased Frequency Manipulator damage by 13 and made it throw the spear sooner.
5 - Increased Galvanizing Glaive damage by 16 and made the spear itself ignore more i-frames.
6 - Increased Gauss Dagger size by 50% and allowed the player to turn while using it.
7 - Decreased Gauss Pistol damage by 20 and made the projectile stay still for half the time.
8 - Increased Plasma Grenade damage by 1000 and gave it an impact sound.
9 - Increased Pulse Rifle damage by 2000.
10 - Increased Snake Eyes damage by 15 and made the leash distance longer.
11 - Decreased Taser damage by 6 and increased the velocity of it.
12 - Increased Tesla Cannon damage by 5000 and increased split beam damage by 10%.
13 - Tripled Wave Pounder damage.
14 - Reduced Shadowdrop Staff projectiles from 20 per use to 6 and reduced spread by 75%.
15 - Increased Ancient Crusher size by 50% again.
16 - Increased Astral Blade damage due to how dangerous it is to use at times.
17 - Gave Brimlance, Earthen Pike, Fulguration Halberd, Goldplume Spear, Hellion Flower Spear, Marnite Spear, Sausage Maker, Starnight Lance, Urchin Spear and Yateveo Bloom autoswing.
18 - Increased Earthen Pike, Majestic Guard and Fulguration Halberd size by 50%.
19 - Decreased Insidious Impaler damage by 40.
20 - Ultimus Cleaver explodes on hit now and increased size by 50%.
21 - Decreased Arterial Assault damage by 32.
22 - Onyxia onyx shard travels further.
23 - Increased God's Bellows range.
24 - Made SCal bullet hell 5 feel less rng with how full or empty it can sometimes feel.
25 - Reduced how often Supreme Catastrophe fires projectiles.
26 - Reduced how insane Old Duke is in Boss Rush.
27 - Reduced Rev+ Destroyer laser speed again from 14 to 12.
28 - Fixed a bug with Rev+ Destroyer flying phase lights where they'd show even when broken.
29 - Dark Energies resist piercing.
30 - Skeletron Head is now immune to all debuffs.
31 - Storm Weaver phase 2 resists Wave Pounder.
32 - Increased Volt Crasher Voltage Stream damage.
33 - Destroyer and Aquatic Scourge resist Volt Crasher.
34 - Gauss Rifle dust particles are smaller and the explosion no longer vanishes when tiles are near it, made the explosion pierce infinitely.
35 - Pole Warpers ignore more i-frames.
36 - Gave Pulse Dragon an extra update.
37 - Decreased Tracking Disk laser damage.
38 - Matter Modulator projectiles now deal a third of their damage if they haven't hit a tile yet to avoid confusion.
39 - Astral Pike stars now home in.
40 - Gilded Proboscis heals less often.
41 - Increased Goldplume Spear feather damage.
42 - Increased Avalanche ice shard damage.
43 - Gave Mourningstar an extra update and made it ignore more i-frames.
44 - True Caustic Edge projectiles no longer gain damage on tile collision.
45 - Version bump.
2020-11-09 19:50:33 -06:00

106 lines
4.1 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class ShadowdropStaff : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Shadowdrop Staff");
Tooltip.SetDefault("Summons dark aura rain from the sky");
Item.staff[item.type] = true;
}
public override void SetDefaults()
{
item.damage = 19;
item.magic = true;
item.mana = 13;
item.width = 44;
item.height = 44;
item.useTime = 9;
item.useAnimation = 18;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 2.25f;
item.value = Item.buyPrice(0, 4, 0, 0);
item.rare = 3;
item.UseSound = SoundID.Item66;
item.autoReuse = true;
item.shoot = ModContent.ProjectileType<AuraRain>();
item.shootSpeed = 8f;
}
public override Vector2? HoldoutOrigin()
{
return new Vector2(7, 7);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.RottenChunk, 5);
recipe.AddIngredient(ItemID.DemoniteBar, 5);
recipe.AddIngredient(ModContent.ItemType<TrueShadowScale>(), 15);
recipe.AddTile(TileID.DemonAltar);
recipe.SetResult(this);
recipe.AddRecipe();
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
float num72 = item.shootSpeed;
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X;
float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y;
if (player.gravDir == -1f)
{
num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y;
}
float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79));
if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f))
{
num78 = (float)player.direction;
num79 = 0f;
num80 = num72;
}
else
{
num80 = num72 / num80;
}
int num107 = 3;
for (int num108 = 0; num108 < num107; num108++)
{
vector2 = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y - 600f);
vector2.X = (vector2.X + player.Center.X) / 2f + (float)Main.rand.Next(-200, 201);
vector2.Y -= (float)(100 * num108);
num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X;
num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y;
if (num79 < 0f)
{
num79 *= -1f;
}
if (num79 < 20f)
{
num79 = 20f;
}
num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79));
num80 = num72 / num80;
num78 *= num80;
num79 *= num80;
float speedX4 = num78 + (float)Main.rand.Next(-30, 31) * 0.02f;
float speedY5 = num79 + (float)Main.rand.Next(-30, 31) * 0.02f;
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType<AuraRain>(), damage, knockBack, player.whoAmI, 0f, (float)Main.rand.Next(10));
}
return false;
}
}
}