The Anomaly's Nanogun balancing
This commit is contained in:
1 parent
da3b3f9f26
commit
d29bb77edb
6 files changed
+51
-14
No files matched your search
@@ -426,9 +426,6 @@ namespace CalamityMod.Balancing
|
||||
// 45% resist to Wrathwing stealth strike's fireballs.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<WrathwingCinder>()))));
|
||||
|
||||
// 35% resist to The Anomaly's Nanogun bomb explosions.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<AnomalysNanogunMPFBBoom>()))));
|
||||
|
||||
// 35% resist to Prismatic Breaker's laser beam.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<PrismaticBeam>()))));
|
||||
|
||||
@@ -462,6 +459,9 @@ namespace CalamityMod.Balancing
|
||||
// 25% resist to Zenith.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.FinalFractal))));
|
||||
|
||||
// 20% resist to The Anomaly's Nanogun bomb explosions.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<AnomalysNanogunMPFBBoom>()))));
|
||||
|
||||
// 20% resist to Ariane's aura (Lilies of Finality).
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<LiliesOfFinalityAoE>()))));
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
Item.width = 102;
|
||||
Item.height = 44;
|
||||
Item.damage = 1850;
|
||||
Item.damage = 1675;
|
||||
Item.knockBack = 4.5f;
|
||||
Item.useTime = Item.useAnimation = AnomalysNanogunHoldout.PlasmaFireTimer;
|
||||
Item.shootSpeed = 5f;
|
||||
@@ -44,8 +44,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
modItem.UsesCharge = true;
|
||||
modItem.MaxCharge = 250f;
|
||||
modItem.ChargePerUse = 0.8f;
|
||||
modItem.ChargePerAltUse = 0.375f;
|
||||
modItem.ChargePerUse = 0.3f;
|
||||
modItem.ChargePerAltUse = 0.15f;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 4);
|
||||
@@ -73,8 +73,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
// Right click is the MPBF Devastator
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
damage = (int)(damage * 0.5f);
|
||||
knockback *= 0.8f;
|
||||
damage = (int)(damage * 0.77f);
|
||||
knockback *= 5f;
|
||||
velocity = rotationVector * 13f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
|
||||
public const int PlasmaChargeupTimer = 40;
|
||||
public const int PlasmaCooldownTimer = 24;
|
||||
public const int PlasmaShotCooldown = 20;
|
||||
public const int PlasmaShotCooldown = 15;
|
||||
public const int PlasmaShotCount = 5;
|
||||
public static int PlasmaFireTimer
|
||||
{
|
||||
@@ -90,7 +90,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
int proj = Projectile.NewProjectile(new EntitySource_ItemUse_WithAmmo(Owner, Owner.HeldItem, -1),
|
||||
Projectile.Center + Projectile.rotation.ToRotationVector2() * GunLength,
|
||||
Projectile.velocity * (1f - i * 0.18f),
|
||||
Projectile.velocity * (1.5f - i * 0.24f),
|
||||
ModContent.ProjectileType<AnomalysNanogunMPFBDevastator>(),
|
||||
Projectile.damage,
|
||||
Projectile.knockBack,
|
||||
|
||||
@@ -27,6 +27,16 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
Projectile.DamageType = DamageClass.Ranged;
|
||||
}
|
||||
|
||||
public override void PostAI() => Lighting.AddLight(Projectile.Center, 0, Projectile.Opacity * 0.7f / 255f, Projectile.Opacity);
|
||||
public override void PostAI()
|
||||
{
|
||||
Lighting.AddLight(Projectile.Center, 0, Projectile.Opacity * 0.7f / 255f, Projectile.Opacity);
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
if (Projectile.numHits > 0)
|
||||
Projectile.damage = (int)(Projectile.damage * 0.6f);
|
||||
if (Projectile.damage < 1)
|
||||
Projectile.damage = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,12 +74,19 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
for (int i = 0; i < 18; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.8f, 1.2f);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center + vel * 1.5f, 226, vel * Main.rand.NextFloat(0.1f, 1.2f) + new Vector2(0, -2));
|
||||
dust.noGravity = false;
|
||||
dust.scale = Main.rand.NextFloat(0.65f, 1.2f);
|
||||
}
|
||||
SoundEngine.PlaySound(AnomalysNanogunMPFBBoom.MPFBExplosion, Projectile.Center);
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Projectile explosion = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<AnomalysNanogunMPFBBoom>(), (int)(Projectile.damage * 0.2f), Projectile.knockBack, Projectile.owner);
|
||||
Projectile explosion = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<AnomalysNanogunMPFBBoom>(), (int)(Projectile.damage * 0.075f), Projectile.knockBack, Projectile.owner);
|
||||
explosion.ai[1] = Main.rand.NextFloat(110f, 200f) + i * 20f; // Randomize the maximum radius.
|
||||
explosion.localAI[1] = Main.rand.NextFloat(0.18f, 0.3f); // And the interpolation step.
|
||||
explosion.netUpdate = true;
|
||||
|
||||
@@ -69,8 +69,15 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
int step = 10;
|
||||
while (step < LaserLength)
|
||||
{
|
||||
Particle pulse = new DirectionalPulseRing(Projectile.Center + MathHelper.WrapAngle(Projectile.rotation + MathHelper.PiOver2).ToRotationVector2() * step, Vector2.Zero, Color.Red, new Vector2(0.5f, 1f), MathHelper.WrapAngle(Projectile.rotation + MathHelper.PiOver2), 0.1f, 1f, 12);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
//Particle pulse = new DirectionalPulseRing(Projectile.Center + MathHelper.WrapAngle(Projectile.rotation + MathHelper.PiOver2).ToRotationVector2() * step, Vector2.Zero, Color.Red, new Vector2(0.5f, 1f), MathHelper.WrapAngle(Projectile.rotation + MathHelper.PiOver2), 0.1f, 1f, 12);
|
||||
//GeneralParticleHandler.SpawnParticle(pulse);
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Particle pulse2 = new CustomPulse(Projectile.Center + MathHelper.WrapAngle(Projectile.rotation + MathHelper.PiOver2).ToRotationVector2() * step, Vector2.Zero, Color.Red, "CalamityMod/Particles/SmallBloomRing", new Vector2(0.4f, 1.1f), MathHelper.WrapAngle(Projectile.rotation + MathHelper.PiOver2), 0.1f, 1f, 12);
|
||||
GeneralParticleHandler.SpawnParticle(pulse2);
|
||||
Particle pulse3 = new CustomPulse(Projectile.Center + MathHelper.WrapAngle(Projectile.rotation + MathHelper.PiOver2).ToRotationVector2() * step, Vector2.Zero, Color.White, "CalamityMod/Particles/SmallBloomRing", new Vector2(0.4f, 1.1f), MathHelper.WrapAngle(Projectile.rotation + MathHelper.PiOver2), 0.1f, 0.9f, 12);
|
||||
GeneralParticleHandler.SpawnParticle(pulse3);
|
||||
}
|
||||
step += 100;
|
||||
}
|
||||
}
|
||||
@@ -78,6 +85,19 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
else
|
||||
Projectile.frameCounter++;
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
for (int i = 0; i <= 8; i++)
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(target.Center, 218, (Projectile.velocity * 30).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 0.8f), 0, default, Main.rand.NextFloat(1.2f, 1.6f));
|
||||
dust.noGravity = true;
|
||||
}
|
||||
|
||||
if (Projectile.numHits > 0)
|
||||
Projectile.damage = (int)(Projectile.damage * 0.5f);
|
||||
if (Projectile.damage < 1)
|
||||
Projectile.damage = 1;
|
||||
}
|
||||
|
||||
public override void DetermineScale() => Projectile.scale = 1f;
|
||||
|
||||
|
||||
Reference in new issue
Block a user