diff --git a/Items/Weapons/Summon/AresExoskeleton.cs b/Items/Weapons/Summon/AresExoskeleton.cs index 9ea4833428..cc92820930 100644 --- a/Items/Weapons/Summon/AresExoskeleton.cs +++ b/Items/Weapons/Summon/AresExoskeleton.cs @@ -19,21 +19,24 @@ namespace CalamityMod.Items.Weapons.Summon public const float TargetingDistance = 1020f; - public const float MinionSlotsPerCannon = 3f; + public const float MinionSlotsPerCannon = 2f; - public const float NukeDamageFactor = 2.7f; + public const float NukeDamageFactor = 1.5f; public override void SetStaticDefaults() { DisplayName.SetDefault("Ares' Exoskeleton"); - Tooltip.SetDefault("Ares arms. STRONG cannons. BIG explosions. FUN"); + Tooltip.SetDefault("Creates a panel with four slots and four choices above it: Plasma, Tesla, Laser, and Gauss\n" + + "Clicking one of the choices and then clicking one of the slots allows you to summon a cannon that stays close to you and attacks nearby enemies\n" + + "Clicking on a slot that's already occupied destroys its associated cannon and clears the slot\n" + + $"Cannons take {MinionSlotsPerCannon} minion slots each"); SacrificeTotal = 1; } public override void SetDefaults() { Item.mana = 80; - Item.damage = 972; + Item.damage = 672; Item.useStyle = ItemUseStyleID.HoldUp; Item.noUseGraphic = true; Item.width = Item.height = 56; diff --git a/Projectiles/Summon/SmallAresArms/ExoskeletonPanel.cs b/Projectiles/Summon/SmallAresArms/ExoskeletonPanel.cs index bf135dc300..3afb8718d1 100644 --- a/Projectiles/Summon/SmallAresArms/ExoskeletonPanel.cs +++ b/Projectiles/Summon/SmallAresArms/ExoskeletonPanel.cs @@ -8,6 +8,7 @@ using Terraria.GameContent; using Terraria.Audio; using System.Linq; using System; +using System.Collections.Generic; namespace CalamityMod.Projectiles.Summon.SmallAresArms { @@ -133,6 +134,7 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms Projectile.timeLeft = 36000; Projectile.Opacity = 0f; Projectile.tileCollide = false; + Projectile.hide = true; } public override void AI() @@ -153,6 +155,7 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms if (PlayerOffset == Vector2.Zero) PlayerOffset = Main.MouseWorld - Main.LocalPlayer.Center; + // Dynamically update panel icons. for (int i = 0; i < 4; i++) PanelIcons[i].CurrentState = IconType.Inactive; for (int i = 0; i < Main.maxProjectiles; i++) @@ -178,6 +181,9 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms if (FadeOut && Projectile.Opacity <= 0f) Projectile.Kill(); + if (Main.player[Projectile.owner].dead || !Main.player[Projectile.owner].active) + Projectile.Kill(); + // Create and destroy arms as necessary. if (Main.myPlayer != Projectile.owner) return; @@ -228,7 +234,7 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms bool hoveringOverAnySlot = false; bool clickedAnIconOnPanel = false; - bool sufficientSlots = Main.LocalPlayer.maxMinions >= AresExoskeleton.MinionSlotsPerCannon; + bool sufficientSlots = Main.LocalPlayer.maxMinions > AresExoskeleton.MinionSlotsPerCannon; // Draw icon and handle hover behaviors. // If an arm needs to be destroyed or spawned, it will happen on the next frame in the AI update loop. @@ -335,6 +341,11 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms return false; } + public override void DrawBehind(int index, List behindNPCsAndTiles, List behindNPCs, List behindProjectiles, List overPlayers, List overWiresUI) + { + overWiresUI.Add(index); + } + // This is a UI. It should not do damage. public override bool? CanDamage() => false; } diff --git a/Projectiles/Summon/SmallAresArms/ExoskeletonPlasmaCannon.png b/Projectiles/Summon/SmallAresArms/ExoskeletonPlasmaCannon.png index a603d3faf8..782b1e8be3 100644 Binary files a/Projectiles/Summon/SmallAresArms/ExoskeletonPlasmaCannon.png and b/Projectiles/Summon/SmallAresArms/ExoskeletonPlasmaCannon.png differ