Further Overloaded Blaster nerfs
This commit is contained in:
1 parent
cffd2cb25d
commit
744e4044f7
3 files changed
+17
-6
No files matched your search
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.height = 34;
|
||||
Item.damage = 19;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useAnimation = Item.useTime = 22;
|
||||
Item.useAnimation = Item.useTime = 28;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 1.5f;
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Vector2 newPos = position + velocity * 6f;
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(15f)) * Main.rand.NextFloat(0.8f, 1.2f);
|
||||
Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(13f)) * Main.rand.NextFloat(0.8f, 1.2f);
|
||||
Projectile.NewProjectile(source, newPos, newVel, type, damage, knockback, player.whoAmI);
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -836,7 +836,7 @@ OverloadedBlaster: {
|
||||
Tooltip:
|
||||
'''
|
||||
Converts gel into a spread of energized slime pearls that overload when they come to a stop
|
||||
Overloaded slime pearls deal 175% damage but no longer pierce
|
||||
Overloaded slime pearls deal 60% more damage but no longer pierce
|
||||
Slime pearls bounce off of walls at very high speed
|
||||
Uses gel for ammo
|
||||
25% chance to save ammo
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -16,6 +18,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public static int Lifetime => 270;
|
||||
public static float Fadetime => 225f;
|
||||
public static float EmpowerTime => 135f;
|
||||
public static float DamageFalloff => 0.85f;
|
||||
public static Color SlimeColor => new Color (133, 133, 224);
|
||||
|
||||
public ref float Time => ref Projectile.ai[0];
|
||||
@@ -47,7 +50,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (Time == EmpowerTime)
|
||||
{
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.damage = (int)(Projectile.damage * 1.75f); // 7/4
|
||||
Projectile.damage = (int)((Projectile.damage / Math.Pow(DamageFalloff, Projectile.numHits)) * 1.6f); // 7/4
|
||||
Projectile.velocity *= 0f;
|
||||
Projectile.rotation = Main.rand.NextFloat(0f, MathHelper.TwoPi);
|
||||
|
||||
@@ -89,11 +92,11 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
if (Projectile.velocity.X != oldVelocity.X)
|
||||
{
|
||||
Projectile.velocity.X = -oldVelocity.X * (Bounced ? 1f : Utils.Remap(Time, 0f, EmpowerTime, 1.5f, 4f));
|
||||
Projectile.velocity.X = -oldVelocity.X * (Bounced ? (1f / Projectile.ai[2]) : Utils.Remap(Time, 0f, EmpowerTime, 1.5f, 3f));
|
||||
}
|
||||
if (Projectile.velocity.Y != oldVelocity.Y)
|
||||
{
|
||||
Projectile.velocity.Y = -oldVelocity.Y * (Bounced ? 1f : Utils.Remap(Time, 0f, EmpowerTime, 1.5f, 4f));
|
||||
Projectile.velocity.Y = -oldVelocity.Y * (Bounced ? (1f / Projectile.ai[2]) : Utils.Remap(Time, 0f, EmpowerTime, 1.5f, 3f));
|
||||
}
|
||||
Projectile.ai[2]++;
|
||||
return false;
|
||||
@@ -128,6 +131,14 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
if (Projectile.numHits > 0 && !Empowered)
|
||||
Projectile.damage = (int)(Projectile.damage * DamageFalloff);
|
||||
if (Projectile.damage < 1)
|
||||
Projectile.damage = 1;
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Main.spriteBatch.SetBlendState(BlendState.Additive);
|
||||
|
||||
Reference in new issue
Block a user