Ares Exoskeleton tweaks/targeting fix

This commit is contained in:
Altixal committed 2026-07-29 22:14:51 +07:00
1 parent e29b36eb44
commit fec1f8600a
3 files changed
+7 -7

No files matched your search

+5 -5
View File
@@ -21,9 +21,9 @@ namespace CalamityMod.Items.Weapons.Summon
public const int PlasmaCannonShootRate = 30;
public const int TeslaCannonShootRate = 36;
public const int TeslaCannonShootRate = 42;
public const int LaserCannonNormalShootRate = 15;
public const int LaserCannonNormalShootRate = 12;
public const int GaussNukeShootRate = 240;
@@ -31,13 +31,13 @@ namespace CalamityMod.Items.Weapons.Summon
public const float MinionSlotsPerCannon = 3f;
public const float PlasmaCannonBlastFactor = 0.9f;
public const float PlasmaCannonBlastFactor = 1f;
// Multiple orbs can arc together when there are 2+ tesla cannons, resulting in a LOT of hits.
// The local i-frames are also quite high to combat this problem.
public const float TeslaOrbDamageFactor = 1f;
public const float LaserDamageFactor = 1.1f;
public const float LaserDamageFactor = 1f;
public const float NukeDamageFactor = 1f;
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = Item.height = 36;
Item.mana = 80;
Item.damage = 625;
Item.damage = 550;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.noUseGraphic = true;
Item.useAnimation = Item.useTime = 24;
@@ -20,7 +20,7 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms
public Projectile OwnerProjectile => CalamityUtils.FindProjectileByIdentity((int)Projectile.ai[1], Projectile.owner);
public const int LifetimeConst = 75;
public const int LifetimeConst = 90;
public override float MaxScale => 0.5f + (float)Math.Cos(Main.GlobalTimeWrappedHourly * 10f) * 0.07f;
public override float MaxLaserLength => 1560f;
public override float Lifetime => LifetimeConst;
@@ -132,7 +132,7 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms
// 15NOV2024: Ozzatron: clamped mouse position unnecessary, only used for direction
float idealRotation = Main.myPlayer != Projectile.owner ? Projectile.rotation : Projectile.AngleTo(Main.MouseWorld);
NPC potentialTarget = Projectile.Center.ClosestNPCAt(AresExoskeleton.TargetingDistance);
NPC potentialTarget = Projectile.Center.MinionHoming(AresExoskeleton.TargetingDistance, Owner);
if (potentialTarget != null)
{
Projectile.ai[1] = 1f;