Balance stuff and descriptive tooltip

This commit is contained in:
Dominic committed 2022-07-21 02:00:12 -05:00
1 parent 9070260e4d
commit 8fffb68fe3
3 files changed
+19 -5

No files matched your search

+7 -4
View File
@@ -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;
@@ -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<int> behindNPCsAndTiles, List<int> behindNPCs, List<int> behindProjectiles, List<int> overPlayers, List<int> overWiresUI)
{
overWiresUI.Add(index);
}
// This is a UI. It should not do damage.
public override bool? CanDamage() => false;
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB