1 - Ballistic Poison Bomb and Apoctolith balancing, based on Talli's testing

2 - Changed Ballistic Poison Bomb's stealth strike
3 - Reverted the buff to free Golem Head's health because it honestly didn't need it. This is a conclusion I've reached over testing a bunch of weapons at this tier, so it was not done hastily.
4 - Moved Chlorophyte Bullet dust IL edit (grrrrr Altix)
This commit is contained in:
CongratsIsTrash committed 2024-03-11 21:29:07 -04:00
1 parent 4b014c99c1
commit 9ccffca74f
9 files changed
+38 -49

No files matched your search

-20
View File
@@ -348,26 +348,6 @@ namespace CalamityMod.ILEditing
}
#endregion
#region Chlorophyte Bullet Dust Reducing
private static void AdjustChlorophyteBullets(ILContext il)
{
// Reduce dust from 10 to 5 and homing range.
var cursor = new ILCursor(il);
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(ProjectileID.ChlorophyteBullet)))
{
LogFailure("Chlorophyte Bullet AI", "Could not locate the bullet ID.");
return;
}
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(10))) // The number of dust spawned by the bullet.
{
LogFailure("Chlorophyte Bullet AI", "Could not locate the dust quantity.");
return;
}
cursor.Remove();
cursor.Emit(OpCodes.Ldc_I4_5); // Decrease dust to 5.
}
#endregion
#region Terrarian Projectile Limitation for Extra Updates
private static void LimitTerrarianProjectiles(ILContext il)
{
+20
View File
@@ -1186,6 +1186,26 @@ namespace CalamityMod.ILEditing
}
#endregion
#region Chlorophyte Bullet Dust Reducing
private static void AdjustChlorophyteBullets(ILContext il)
{
// Reduce dust from 10 to 5 and homing range.
var cursor = new ILCursor(il);
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(ProjectileID.ChlorophyteBullet)))
{
LogFailure("Chlorophyte Bullet AI", "Could not locate the bullet ID.");
return;
}
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(10))) // The number of dust spawned by the bullet.
{
LogFailure("Chlorophyte Bullet AI", "Could not locate the dust quantity.");
return;
}
cursor.Remove();
cursor.Emit(OpCodes.Ldc_I4_5); // Decrease dust to 5.
}
#endregion
#region Make Tax Collector Worth it
private static void MakeTaxCollectorUseful(ILContext il)
{
+4 -4
View File
@@ -16,11 +16,11 @@ namespace CalamityMod.Items.Weapons.Rogue
{
Item.width = 66;
Item.height = 64;
Item.damage = 220;
Item.damage = 228;
Item.shootSpeed = 18f;
Item.shoot = ModContent.ProjectileType<ApoctolithProj>();
Item.useTime = 30;
Item.useAnimation = 30;
Item.useTime = 26;
Item.useAnimation = 26;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 10f;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue
// Terraria seems to really dislike high crit values in SetDefaults
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 20;
public override float StealthDamageMultiplier => 1.25f;
public override float StealthDamageMultiplier => 1.3f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
+4 -14
View File
@@ -33,20 +33,10 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
{
int spread = 5;
for (int i = 0; i < 3; i++)
{
Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3, 4), velocity.Y + Main.rand.Next(-3, 4)).RotatedBy(MathHelper.ToRadians(spread));
int proj = Projectile.NewProjectile(source, position, perturbedspeed, type, damage, knockback, player.whoAmI);
if (proj.WithinBounds(Main.maxProjectiles))
Main.projectile[proj].Calamity().stealthStrike = true;
spread -= Main.rand.Next(2, 6);
}
return false;
}
return true;
int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI);
if (proj.WithinBounds(Main.maxProjectiles))
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
}
public override void AddRecipes()
@@ -54,8 +54,8 @@ BallisticPoisonBomb: {
DisplayName: Ballistic Poison Bomb
Tooltip:
'''
Throws a sticky bomb that explodes into spikes and poison clouds
Stealth strikes throw three at once
Throws a sticky bomb that explodes into spikes and venomous clouds
Stealth strikes erupt into more clouds with a longer lasting venom
'''
}
+1 -1
View File
@@ -1353,7 +1353,7 @@ namespace CalamityMod.NPCs
}
else if (npc.type == NPCID.GolemHeadFree)
{
npc.lifeMax = (int)Math.Round(npc.lifeMax * 2D);
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.7);
npc.dontTakeDamage = false;
}
else if (npc.type == NPCID.HallowBoss)
+4 -5
View File
@@ -1,5 +1,4 @@
using System;
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
@@ -59,19 +58,19 @@ namespace CalamityMod.Projectiles.Rogue
{
Projectile.ExpandHitboxBy(128);
SoundEngine.PlaySound(SoundID.Item14, Projectile.Center);
int projAmt = Main.rand.Next(3, 5);
int spikeAmt = Main.rand.Next(3, 4+1);
if (Projectile.owner == Main.myPlayer)
{
for (int s = 0; s < projAmt; s++)
for (int s = 0; s < spikeAmt; s++)
{
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType<BallisticPoisonBombSpike>(), Projectile.damage, 0f, Projectile.owner);
}
int cloudAmt = Main.rand.Next(8, 13);
int cloudAmt = Projectile.Calamity().stealthStrike ? Main.rand.Next(8, 12+1) : Main.rand.Next(3, 5+1);
for (int c = 0; c < cloudAmt; c++)
{
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 10f, 200f, 0.01f);
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType<BallisticPoisonCloud>(), (int)(Projectile.damage * 0.5), 0f, Projectile.owner);
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType<BallisticPoisonCloud>(), (int)(Projectile.damage * 0.75), 0f, Projectile.owner, 0f, Projectile.Calamity().stealthStrike ? 1f : 0f);
}
}
for (int d = 0; d < 5; d++)
@@ -3,7 +3,7 @@ using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Typeless
namespace CalamityMod.Projectiles.Rogue
{
public class BallisticPoisonCloud : ModProjectile, ILocalizedModType
{
@@ -62,8 +62,8 @@ namespace CalamityMod.Projectiles.Typeless
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Venom, 120);
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Venom, Projectile.ai[1] == 1f ? 240 : 120);
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Venom, 120);
public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Venom, Projectile.ai[1] == 1f ? 240 : 120);
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB