diff --git a/Buffs/Cooldowns/IceShieldBrokenBuff.png b/Buffs/Cooldowns/IceShieldBrokenBuff.png index 768add27b9..e43db2c514 100644 Binary files a/Buffs/Cooldowns/IceShieldBrokenBuff.png and b/Buffs/Cooldowns/IceShieldBrokenBuff.png differ diff --git a/Buffs/StatBuffs/IceShieldBuff.png b/Buffs/StatBuffs/IceShieldBuff.png index 5f6e561a40..73db62e119 100644 Binary files a/Buffs/StatBuffs/IceShieldBuff.png and b/Buffs/StatBuffs/IceShieldBuff.png differ diff --git a/Buffs/StatBuffs/SirenBobs.png b/Buffs/StatBuffs/SirenBobs.png index 4792bcfe23..2e51571f7e 100644 Binary files a/Buffs/StatBuffs/SirenBobs.png and b/Buffs/StatBuffs/SirenBobs.png differ diff --git a/Buffs/StatBuffs/SirenWaterSpeed.png b/Buffs/StatBuffs/SirenWaterSpeed.png index 97e6c6996a..7932085837 100644 Binary files a/Buffs/StatBuffs/SirenWaterSpeed.png and b/Buffs/StatBuffs/SirenWaterSpeed.png differ diff --git a/ExtraTextures/IceShield.png b/ExtraTextures/IceShield.png index 83ae2213f7..9104c37fbd 100644 Binary files a/ExtraTextures/IceShield.png and b/ExtraTextures/IceShield.png differ diff --git a/Items/Accessories/SirenTrans_Arms.png b/Items/Accessories/SirenTrans_Arms.png index e83eaf9f00..2809f92e65 100644 Binary files a/Items/Accessories/SirenTrans_Arms.png and b/Items/Accessories/SirenTrans_Arms.png differ diff --git a/Items/Accessories/SirenTrans_Body.png b/Items/Accessories/SirenTrans_Body.png index 6f2235b065..93c19b1d8b 100644 Binary files a/Items/Accessories/SirenTrans_Body.png and b/Items/Accessories/SirenTrans_Body.png differ diff --git a/Items/Accessories/SirenTrans_Head.png b/Items/Accessories/SirenTrans_Head.png index e85af53dc3..c51240c736 100644 Binary files a/Items/Accessories/SirenTrans_Head.png and b/Items/Accessories/SirenTrans_Head.png differ diff --git a/Items/Accessories/SirenTrans_Legs.png b/Items/Accessories/SirenTrans_Legs.png index 9978833f30..e1586c7565 100644 Binary files a/Items/Accessories/SirenTrans_Legs.png and b/Items/Accessories/SirenTrans_Legs.png differ diff --git a/Items/Accessories/SirensHeart.png b/Items/Accessories/SirensHeart.png index eb1eb7b206..acec3197e3 100644 Binary files a/Items/Accessories/SirensHeart.png and b/Items/Accessories/SirensHeart.png differ diff --git a/Items/ChargerTestItem.cs b/Items/ChargerTestItem.cs index 2acd306706..519f66278e 100644 --- a/Items/ChargerTestItem.cs +++ b/Items/ChargerTestItem.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items public override void SetStaticDefaults() { DisplayName.SetDefault("Charger Test Item"); - Tooltip.SetDefault("Testing/Cheat Item" + + Tooltip.SetDefault("Testing/Cheat Item\n" + "Charges all Draedon's Arsenal weapons in your inventory"); } @@ -21,10 +21,10 @@ namespace CalamityMod.Items item.Calamity().customRarity = CalamityRarity.DraedonRust; item.consumable = false; - item.useStyle = ItemUseStyleID.SwingThrow; - item.useAnimation = 15; - item.useTime = 10; - item.autoReuse = true; + item.useStyle = ItemUseStyleID.HoldingUp; + item.useTime = 29; + item.useAnimation = 29; + item.autoReuse = false; item.useTurn = true; } diff --git a/Items/Materials/EbonianGel.png b/Items/Materials/EbonianGel.png index 8dee0f7737..15ca08ab75 100644 Binary files a/Items/Materials/EbonianGel.png and b/Items/Materials/EbonianGel.png differ diff --git a/Items/Materials/GypsyPowder.png b/Items/Materials/GypsyPowder.png index ce51305af4..e9d0951c3c 100644 Binary files a/Items/Materials/GypsyPowder.png and b/Items/Materials/GypsyPowder.png differ diff --git a/Items/Materials/ManeaterBulb.png b/Items/Materials/ManeaterBulb.png index 1c033b4829..a99ea2e507 100644 Binary files a/Items/Materials/ManeaterBulb.png and b/Items/Materials/ManeaterBulb.png differ diff --git a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs index f9635d1180..b046c731e2 100644 --- a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs +++ b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs @@ -1,4 +1,3 @@ - using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; using Microsoft.Xna.Framework; @@ -29,7 +28,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal item.noUseGraphic = true; item.autoReuse = false; item.channel = true; - item.mana = 15; + item.mana = 4; item.useStyle = ItemUseStyleID.HoldingOut; item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/GatlingLaserFireStart"); @@ -54,16 +53,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal return false; } - // Disable vanilla ammo consumption - public override bool ConsumeAmmo(Player player) - { - return false; - } - - public override Vector2? HoldoutOffset() - { - return new Vector2(-20, 0); - } + public override Vector2? HoldoutOffset() => new Vector2(-20, 0); public override void AddRecipes() { diff --git a/Projectiles/DraedonsArsenal/GatlingLaserProj.cs b/Projectiles/DraedonsArsenal/GatlingLaserProj.cs index f466fd633b..8b832590d2 100644 --- a/Projectiles/DraedonsArsenal/GatlingLaserProj.cs +++ b/Projectiles/DraedonsArsenal/GatlingLaserProj.cs @@ -1,15 +1,14 @@ -using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; +using System; using Terraria; -using Terraria.ModLoader; -using CalamityMod.Items; using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.DraedonsArsenal { - public class GatlingLaserProj : ModProjectile - { + public class GatlingLaserProj : ModProjectile + { private SoundEffectInstance gatlingLaserLoop; private bool fireLasers = false; @@ -18,20 +17,20 @@ namespace CalamityMod.Projectiles.DraedonsArsenal DisplayName.SetDefault("Gatling Laser"); } - public override void SetDefaults() - { - projectile.width = 24; - projectile.height = 58; - projectile.friendly = true; - projectile.penetrate = -1; - projectile.tileCollide = false; - projectile.ignoreWater = true; - projectile.magic = true; - } + public override void SetDefaults() + { + projectile.width = 24; + projectile.height = 58; + projectile.friendly = true; + projectile.penetrate = -1; + projectile.tileCollide = false; + projectile.ignoreWater = true; + projectile.magic = true; + } - public override void AI() - { - Player player = Main.player[projectile.owner]; + public override void AI() + { + Player player = Main.player[projectile.owner]; float num = 1.57079637f; Vector2 vector = player.RotatedRelativePoint(player.MountedCenter, true); if (projectile.type == ModContent.ProjectileType()) @@ -62,20 +61,25 @@ namespace CalamityMod.Projectiles.DraedonsArsenal } if (flag && Main.myPlayer == projectile.owner && fireLasers) { - int weaponDamage2 = player.GetWeaponDamage(player.ActiveItem()); - bool flag2 = player.channel && !player.noItems && !player.CCed; - if (flag2) + Item gatling = player.ActiveItem(); + int weaponDamage2 = player.GetWeaponDamage(gatling); + bool flag2 = player.channel && !player.noItems && !player.CCed; + + // This both checks if the player has sufficient mana and consumes it if they do. + // If this is false, the Gatling Laser stops functioning. + bool hasMana = player.CheckMana(gatling.mana, true, false); + + if (flag2 && hasMana) { // Attempt to use power from the held item. if (player.ActiveItem().type >= ItemID.Count && player.ActiveItem().Calamity().Chargeable && - player.ActiveItem().Calamity().CurrentCharge > 0 && + player.ActiveItem().Calamity().CurrentCharge > 0 && Main.rand.NextBool((int)(120 / (float)fireRate))) { player.ActiveItem().Calamity().CurrentCharge--; } - float scaleFactor = player.ActiveItem().shootSpeed * projectile.scale; Vector2 value2 = vector; Vector2 value3 = Main.screenPosition + new Vector2(Main.mouseX, Main.mouseY) - value2; @@ -134,6 +138,6 @@ namespace CalamityMod.Projectiles.DraedonsArsenal player.itemTime = 2; player.itemAnimation = 2; player.itemRotation = (float)Math.Atan2(projectile.velocity.Y * projectile.direction, projectile.velocity.X * projectile.direction); - } - } + } + } } diff --git a/Tiles/Ores/AerialiteOre.png b/Tiles/Ores/AerialiteOre.png index 76240f69bc..973ec03628 100644 Binary files a/Tiles/Ores/AerialiteOre.png and b/Tiles/Ores/AerialiteOre.png differ