From 0a1eeabbe98767902f149d3f153ae52560e9e679 Mon Sep 17 00:00:00 2001 From: SpiderModification <150561186+SpiderModification@users.noreply.github.com> Date: Tue, 1 Apr 2025 17:15:57 -0400 Subject: [PATCH 01/11] Crystyl Crusher's mining tip is much bigger, allowing actual large scale destruction --- Projectiles/Melee/CrystylCrusherRay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Melee/CrystylCrusherRay.cs b/Projectiles/Melee/CrystylCrusherRay.cs index fd9454da63..7f4dda2e7a 100644 --- a/Projectiles/Melee/CrystylCrusherRay.cs +++ b/Projectiles/Melee/CrystylCrusherRay.cs @@ -244,7 +244,7 @@ namespace CalamityMod.Projectiles.Melee if (Projectile.owner == Main.myPlayer) { Vector2 destroyVector = Projectile.Center + Projectile.velocity * (Distance - MOVE_DISTANCE); - int threeMod = 3; + int threeMod = 12; int mineXLeft = (int)(destroyVector.X / 16f - threeMod); int mineXRight = (int)(destroyVector.X / 16f + threeMod); int mineXUp = (int)(destroyVector.Y / 16f - threeMod); From 8ec49f6bff1b50d2a0afc370b08e2d2ed96d34ee Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 1 Apr 2025 18:58:41 -0400 Subject: [PATCH 02/11] Crystyl Crusher improvements * Made laser visual the same size as its mining radius * Fixed mining radius being off-center from the laser * Made mining radius a bit smaller because it was mining tiles below the player while held next to them * No longer cuts tiles while preparing the laser --- Projectiles/Melee/CrystylCrusherRay.cs | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Projectiles/Melee/CrystylCrusherRay.cs b/Projectiles/Melee/CrystylCrusherRay.cs index 7f4dda2e7a..9e308d1d6f 100644 --- a/Projectiles/Melee/CrystylCrusherRay.cs +++ b/Projectiles/Melee/CrystylCrusherRay.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Melee { Projectile.width = 10; Projectile.height = 10; - Projectile.scale = 1.5f; + Projectile.scale = 7f; Projectile.friendly = true; Projectile.penetrate = -1; Projectile.tileCollide = false; @@ -67,33 +67,32 @@ namespace CalamityMod.Projectiles.Melee Vector2 maxLength = owner.ClampedMouseWorld() - owner.Center; DrawLaser(Terraria.GameContent.TextureAssets.Projectile[Type].Value, owner.Center, - Projectile.velocity, 15f, Projectile.damage, -MathHelper.PiOver2, Projectile.scale, maxLength.Length(), new Color(Main.DiscoR, 0, 255), (int)MOVE_DISTANCE); + Projectile.velocity, 15f, -MathHelper.PiOver2, Projectile.scale, maxLength.Length(), new Color(Main.DiscoR, 0, 255), (int)MOVE_DISTANCE); } return false; } // The core function of drawing a laser - public void DrawLaser(Texture2D texture, Vector2 start, Vector2 unit, float step, int damage, float rotation = 0f, float scale = 1f, float maxDist = 2000f, Color color = default(Color), int transDist = 50) + public void DrawLaser(Texture2D texture, Vector2 start, Vector2 unit, float step, float rotation = 0f, float scale = 1f, float maxDist = 2000f, Color color = default, int transDist = 50) { float r = unit.ToRotation() + rotation; // Draws the laser 'body' for (float i = transDist; i <= Distance; i += step) { - Color c = new Color(Main.DiscoR, 0, 255); var origin = start + i * unit; Main.EntitySpriteDraw(texture, origin - Main.screenPosition, - new Rectangle(0, 26, 28, 26), i < transDist ? Color.Transparent : c, r, - new Vector2(28 * .5f, 26 * .5f), scale, 0, 0); + new Rectangle(0, 26, 28, 26), i < transDist ? Color.Transparent : color, r, + new Vector2(28 * .5f, 26 * .5f), MathHelper.Lerp(1f, scale, i / Distance), 0, 0); } // Draws the laser 'tail' Main.EntitySpriteDraw(texture, start + unit * (transDist - step) - Main.screenPosition, - new Rectangle(0, 0, 28, 26), new Color(Main.DiscoR, 0, 255), r, new Vector2(28 * .5f, 26 * .5f), scale, 0, 0); + new Rectangle(0, 0, 28, 26), color, r, new Vector2(28 * .5f, 26 * .5f), 1f, 0, 0); // Draws the laser 'head' Main.EntitySpriteDraw(texture, start + (Distance + step) * unit - Main.screenPosition, - new Rectangle(0, 52, 28, 26), new Color(Main.DiscoR, 0, 255), r, new Vector2(28 * .5f, 26 * .5f), scale, 0, 0); + new Rectangle(0, 52, 28, 26), color, r, new Vector2(28 * .5f, 26 * .5f), scale, 0, 0); } // Change the way of collision check of the projectile @@ -119,7 +118,7 @@ namespace CalamityMod.Projectiles.Melee if (Projectile.timeLeft == 300) SoundEngine.PlaySound(CrystylCrusher.ChargeSound, player.Center); - Projectile.position = player.Center + Projectile.velocity * MOVE_DISTANCE; + Projectile.Center = player.Center + Projectile.velocity * MOVE_DISTANCE; Projectile.timeLeft = 2; // By separating large AI into methods it becomes very easy to see the flow of the AI in a broader sense @@ -232,6 +231,7 @@ namespace CalamityMod.Projectiles.Melee /* * Update CutTiles so the laser will cut tiles (like grass) */ + public override bool? CanCutTiles() => IsAtMaxCharge ? null : false; public override void CutTiles() { DelegateMethods.tilecut_0 = TileCuttingContext.AttackProjectile; @@ -244,11 +244,11 @@ namespace CalamityMod.Projectiles.Melee if (Projectile.owner == Main.myPlayer) { Vector2 destroyVector = Projectile.Center + Projectile.velocity * (Distance - MOVE_DISTANCE); - int threeMod = 12; - int mineXLeft = (int)(destroyVector.X / 16f - threeMod); - int mineXRight = (int)(destroyVector.X / 16f + threeMod); - int mineXUp = (int)(destroyVector.Y / 16f - threeMod); - int mineXDown = (int)(destroyVector.Y / 16f + threeMod); + int radius = 7; + int mineXLeft = (int)(destroyVector.X / 16f - radius); + int mineXRight = (int)(destroyVector.X / 16f + radius); + int mineXUp = (int)(destroyVector.Y / 16f - radius); + int mineXDown = (int)(destroyVector.Y / 16f + radius); if (mineXLeft < 0) { mineXLeft = 0; @@ -273,7 +273,7 @@ namespace CalamityMod.Projectiles.Melee float destroyTileX = Math.Abs(i - destroyVector.X / 16f); float destroyTileY = Math.Abs(j - destroyVector.Y / 16f); double destroyTileArea = Math.Sqrt(destroyTileX * destroyTileX + destroyTileY * destroyTileY); - if (destroyTileArea < threeMod) + if (destroyTileArea < radius) { if (Main.tile[i, j] != null && Main.tile[i, j].HasTile) { From cf25adf43e7f904a1379f583e758f850bf12ff98 Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Tue, 1 Apr 2025 23:08:17 -0500 Subject: [PATCH 03/11] Fixed ambergrisDashDamage not being the actual Ambergris dash damage moved the +300 damge from it's rework onto the ambergrisDashDamage field so that it's easier to manage in the future --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Items/Accessories/LeviathanAmbergris.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 791b21e655..f7a91431c8 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -308,7 +308,7 @@ namespace CalamityMod.CalPlayer if (dashStart) { Player.velocity.X *= 3f; // +200% dash speed - int damage = (int)Player.GetBestClassDamage().ApplyTo(LeviathanAmbergris.ambergrisDashDamage + 300); + int damage = (int)Player.GetBestClassDamage().ApplyTo(LeviathanAmbergris.ambergrisDashDamage); Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType(), damage, 0f, Player.whoAmI); } diff --git a/Items/Accessories/LeviathanAmbergris.cs b/Items/Accessories/LeviathanAmbergris.cs index 07c635deb3..29b3f78836 100644 --- a/Items/Accessories/LeviathanAmbergris.cs +++ b/Items/Accessories/LeviathanAmbergris.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories public class LeviathanAmbergris : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; - public static int ambergrisDashDamage = 350; + public static int ambergrisDashDamage = 650; public override void SetDefaults() { Item.width = 20; From 53713935e0b5e30d64da0aee25bb9cc78b15c7ad Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Wed, 2 Apr 2025 12:47:11 -0500 Subject: [PATCH 04/11] Updated Auric Tesla tooltips Holding SHIFT now displays one of the 3 component set bonuses. Pressing it again will cycle set bonuses. --- Items/Armor/Auric/AuricTeslaBodyArmor.cs | 23 ++- Items/Armor/Auric/AuricTeslaCuisses.cs | 15 +- Items/Armor/Auric/AuricTeslaHoodedFacemask.cs | 32 +++- Items/Armor/Auric/AuricTeslaPlumedHelm.cs | 33 +++- Items/Armor/Auric/AuricTeslaRoyalHelm.cs | 33 +++- Items/Armor/Auric/AuricTeslaSpaceHelmet.cs | 33 +++- .../Armor/Auric/AuricTeslaWireHemmedVisage.cs | 31 +++- ...CalamityMod.Items.Armor.PostMoonLord.hjson | 148 +++++++++++++++++- 8 files changed, 332 insertions(+), 16 deletions(-) diff --git a/Items/Armor/Auric/AuricTeslaBodyArmor.cs b/Items/Armor/Auric/AuricTeslaBodyArmor.cs index caa5cbe2cc..f3b1a5205e 100644 --- a/Items/Armor/Auric/AuricTeslaBodyArmor.cs +++ b/Items/Armor/Auric/AuricTeslaBodyArmor.cs @@ -1,4 +1,5 @@ -using CalamityMod.CalPlayer; +using System.Collections.Generic; +using CalamityMod.CalPlayer; using CalamityMod.Items.Armor.Bloodflare; using CalamityMod.Items.Armor.GodSlayer; using CalamityMod.Items.Armor.Silva; @@ -6,6 +7,7 @@ using CalamityMod.Items.Armor.Tarragon; using CalamityMod.Items.Materials; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -15,6 +17,13 @@ namespace CalamityMod.Items.Armor.Auric [AutoloadEquip(EquipType.Body)] public class AuricTeslaBodyArmor : ModItem, ILocalizedModType { + + public static int setBonusTooltipNumber = 0; //Set this to zero so the first Shift pressed will increment it to 1. + public static bool holdingShift = false; + public static Color tooltipTarragonColor = new(194, 255, 194); + public static Color tooltipBloodflareColor = new(255, 195, 194); + public static Color tooltipSilvaColor = new(246, 255, 194); + public static Color tooltipGodslayerColor = new(204, 194, 255); public new string LocalizationCategory => "Items.Armor.PostMoonLord"; public override void Load() { @@ -42,6 +51,18 @@ namespace CalamityMod.Items.Armor.Auric player.GetDamage() += 0.08f; player.GetCritChance() += 5; } + public override void ModifyTooltips(List tooltips) + { + //This just runs the ModifyTooltips for whatever helmet is equipped if a full auric set is equipped; but runs it on this item's tooltips. + //This is a simple way to copy the tooltip edits for the set bonuses and have it adapt to helmet type. + //If we ever add a way for auricSet to be TRUE without a helmet on, this will need to be changed. + //If the helmet's ModifyTooltips is changed to do more than just the Set Bonus, their Set Bonus modification should be moved into it's own method, and have that called both here and in the helmet's ModifyTooltips. + //Alternatively, their ModifyTooltips could simply return early if the item ID doesn't match the helmet type. + if (Main.LocalPlayer.Calamity().auricSet) + { + Main.LocalPlayer.armor[0].ModItem.ModifyTooltips(tooltips); + } + } public override void AddRecipes() { diff --git a/Items/Armor/Auric/AuricTeslaCuisses.cs b/Items/Armor/Auric/AuricTeslaCuisses.cs index 1cb579a498..267e888e12 100644 --- a/Items/Armor/Auric/AuricTeslaCuisses.cs +++ b/Items/Armor/Auric/AuricTeslaCuisses.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Armor.Bloodflare; +using System.Collections.Generic; +using CalamityMod.Items.Armor.Bloodflare; using CalamityMod.Items.Armor.GodSlayer; using CalamityMod.Items.Armor.Silva; using CalamityMod.Items.Armor.Tarragon; @@ -31,6 +32,18 @@ namespace CalamityMod.Items.Armor.Auric player.GetDamage() += 0.12f; player.GetCritChance() += 5; } + public override void ModifyTooltips(List tooltips) + { + //This just runs the ModifyTooltips for whatever helmet is equipped if a full auric set is equipped; but runs it on this item's tooltips. + //This is a simple way to copy the tooltip edits for the set bonuses and have it adapt to helmet type. + //If we ever add a way for auricSet to be TRUE without a helmet on, this will need to be changed. + //If the helmet's ModifyTooltips is changed to do more than just the Set Bonus, their Set Bonus modification should be moved into it's own method, and have that called both here and in the helmet's ModifyTooltips. + //Alternatively, their ModifyTooltips could simply return early if the item ID doesn't match the helmet type. + if (Main.LocalPlayer.Calamity().auricSet) + { + Main.LocalPlayer.armor[0].ModItem.ModifyTooltips(tooltips); + } + } public override void AddRecipes() { diff --git a/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs b/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs index db0aaa3a4e..70979a5a03 100644 --- a/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs +++ b/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs @@ -1,12 +1,12 @@ -using CalamityMod.CalPlayer; +using System.Collections.Generic; using CalamityMod.CalPlayer.Dashes; -using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Bloodflare; using CalamityMod.Items.Armor.GodSlayer; using CalamityMod.Items.Armor.Tarragon; using CalamityMod.Items.Materials; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; @@ -61,6 +61,34 @@ namespace CalamityMod.Items.Armor.Auric player.GetDamage() += 0.3f; player.GetCritChance() += 30; } + public override void ModifyTooltips(List tooltips) + { + ref var holdingShift = ref AuricTeslaBodyArmor.holdingShift; + ref var setBonusTooltipNumber = ref AuricTeslaBodyArmor.setBonusTooltipNumber; + if (Main.keyState.PressingShift()) + { + if (!holdingShift) + { + holdingShift = true; + setBonusTooltipNumber++; + if (setBonusTooltipNumber > 3) setBonusTooltipNumber = 1; + } + foreach (TooltipLine line in tooltips) + { + if (line.Name == "SetBonus") + { + Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor }; + var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}"); + line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString()) : LocalizedText.Format()); + line.OverrideColor = armorColors[setBonusTooltipNumber - 1]; + } + } + } + else + { + holdingShift = false; + } + } public override void AddRecipes() { diff --git a/Items/Armor/Auric/AuricTeslaPlumedHelm.cs b/Items/Armor/Auric/AuricTeslaPlumedHelm.cs index 69eaa3d741..9be81d8673 100644 --- a/Items/Armor/Auric/AuricTeslaPlumedHelm.cs +++ b/Items/Armor/Auric/AuricTeslaPlumedHelm.cs @@ -1,11 +1,12 @@ -using CalamityMod.CalPlayer.Dashes; -using CalamityMod.Items.Accessories; +using System.Collections.Generic; +using CalamityMod.CalPlayer.Dashes; using CalamityMod.Items.Armor.Bloodflare; using CalamityMod.Items.Armor.GodSlayer; using CalamityMod.Items.Armor.Tarragon; using CalamityMod.Items.Materials; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; @@ -63,6 +64,34 @@ namespace CalamityMod.Items.Armor.Auric player.GetCritChance() += 20; player.moveSpeed += 0.05f; } + public override void ModifyTooltips(List tooltips) + { + ref var holdingShift = ref AuricTeslaBodyArmor.holdingShift; + ref var setBonusTooltipNumber = ref AuricTeslaBodyArmor.setBonusTooltipNumber; + if (Main.keyState.PressingShift()) + { + if (!holdingShift) + { + holdingShift = true; + setBonusTooltipNumber++; + if (setBonusTooltipNumber > 3) setBonusTooltipNumber = 1; + } + foreach (TooltipLine line in tooltips) + { + if (line.Name == "SetBonus") + { + Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor }; + var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}"); + line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString())); + line.OverrideColor = armorColors[setBonusTooltipNumber - 1]; + } + } + } + else + { + holdingShift = false; + } + } public override void AddRecipes() { diff --git a/Items/Armor/Auric/AuricTeslaRoyalHelm.cs b/Items/Armor/Auric/AuricTeslaRoyalHelm.cs index 078a350ff0..9a66c641ab 100644 --- a/Items/Armor/Auric/AuricTeslaRoyalHelm.cs +++ b/Items/Armor/Auric/AuricTeslaRoyalHelm.cs @@ -1,13 +1,14 @@ -using CalamityMod.CalPlayer; +using System.Collections.Generic; using CalamityMod.CalPlayer.Dashes; -using CalamityMod.Items.Accessories; using CalamityMod.Items.Armor.Bloodflare; using CalamityMod.Items.Armor.GodSlayer; using CalamityMod.Items.Armor.Tarragon; using CalamityMod.Items.Materials; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Armor.Auric @@ -65,6 +66,34 @@ namespace CalamityMod.Items.Armor.Auric player.GetDamage() += 0.2f; player.GetCritChance() += 10; } + public override void ModifyTooltips(List tooltips) + { + ref var holdingShift = ref AuricTeslaBodyArmor.holdingShift; + ref var setBonusTooltipNumber = ref AuricTeslaBodyArmor.setBonusTooltipNumber; + if (Main.keyState.PressingShift()) + { + if (!holdingShift) + { + holdingShift = true; + setBonusTooltipNumber++; + if (setBonusTooltipNumber > 3) setBonusTooltipNumber = 1; + } + foreach (TooltipLine line in tooltips) + { + if (line.Name == "SetBonus") + { + Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor }; + var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}"); + line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString())); + line.OverrideColor = armorColors[setBonusTooltipNumber - 1]; + } + } + } + else + { + holdingShift = false; + } + } public override void AddRecipes() { diff --git a/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs b/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs index fdc49f0a7a..cc8ea6a873 100644 --- a/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs @@ -1,13 +1,11 @@ -using CalamityMod.Buffs.Summon; -using CalamityMod.CalPlayer; -using CalamityMod.Items.Accessories; +using System.Collections.Generic; using CalamityMod.Items.Armor.Bloodflare; using CalamityMod.Items.Armor.Silva; using CalamityMod.Items.Armor.Tarragon; using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Summon; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; @@ -61,6 +59,33 @@ namespace CalamityMod.Items.Armor.Auric modPlayer.auricBoost = true; player.GetDamage() += 0.15f; } + public override void ModifyTooltips(List tooltips) + { + ref var holdingShift = ref AuricTeslaBodyArmor.holdingShift; + ref var setBonusTooltipNumber = ref AuricTeslaBodyArmor.setBonusTooltipNumber; + if (Main.keyState.PressingShift()) + { + if (!holdingShift) + { + holdingShift = true; + setBonusTooltipNumber++; + if (setBonusTooltipNumber > 3) setBonusTooltipNumber = 1; + } + foreach (TooltipLine line in tooltips) + { + if (line.Name == "SetBonus") + { + Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipSilvaColor }; + line.Text = this.GetLocalizedValue($"SetBonus{setBonusTooltipNumber}"); + line.OverrideColor = armorColors[setBonusTooltipNumber - 1]; + } + } + } + else + { + holdingShift = false; + } + } public override void AddRecipes() { diff --git a/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs b/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs index 18993c56ec..0f8e4acdbb 100644 --- a/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs +++ b/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs @@ -1,11 +1,11 @@ -using CalamityMod.CalPlayer; -using CalamityMod.Items.Accessories; +using System.Collections.Generic; using CalamityMod.Items.Armor.Bloodflare; using CalamityMod.Items.Armor.Silva; using CalamityMod.Items.Armor.Tarragon; using CalamityMod.Items.Materials; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; @@ -50,6 +50,33 @@ namespace CalamityMod.Items.Armor.Auric player.crimsonRegen = true; } + public override void ModifyTooltips(List tooltips) + { + ref var holdingShift = ref AuricTeslaBodyArmor.holdingShift; + ref var setBonusTooltipNumber = ref AuricTeslaBodyArmor.setBonusTooltipNumber; + if (Main.keyState.PressingShift()) + { + if (!holdingShift) + { + holdingShift = true; + setBonusTooltipNumber++; + if (setBonusTooltipNumber > 3) setBonusTooltipNumber = 1; + } + foreach (TooltipLine line in tooltips) + { + if (line.Name == "SetBonus") + { + Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipSilvaColor }; + line.Text = this.GetLocalizedValue($"SetBonus{setBonusTooltipNumber}"); + line.OverrideColor = armorColors[setBonusTooltipNumber - 1]; + } + } + } + else + { + holdingShift = false; + } + } public override void UpdateEquip(Player player) { var modPlayer = player.Calamity(); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 022993b838..b06b4d22d9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -21,6 +21,33 @@ AuricTeslaHoodedFacemask: { DisplayName: Auric Tesla Hooded Facemask Tooltip: 30% increased ranged damage and critical strike chance SetBonus: Ranged Tarragon, Bloodflare and God Slayer armor effects + SetBonus1: + ''' + Inherited Tarragon Set Bonus: + Ranged projectiles split into homing life energy and leaves on death + Reduces enemy spawn rates + Increased heart pickup range + Enemies have a chance to drop extra hearts on death + ''' + SetBonus2: + ''' + Inherited Bloodflare Set Bonus: + Press {0} to unleash the lost souls of polterghast to destroy your enemies + This effect has a 30 second cooldown + Ranged weapons fire bloodsplosion orbs every 2.5 seconds + Greatly increased life regen, equivalent to Crimson armor + Enemies below 50% life drop a heart when struck + This effect has a 5 second cooldown + ''' + SetBonus3: + ''' + Inherited God Slayer Set Bonus: + You fire a god killer shrapnel round while firing ranged weapons every 2.5 seconds + Pressing {0} allows you to dash towards your cursor for 2.5 seconds + Enemies you dash through take massive damage + During the dash you are immune to most debuffs + The dash has a {1} second cooldown + ''' } AuricTeslaPlumedHelm: { @@ -35,6 +62,36 @@ AuricTeslaPlumedHelm: { Rogue Tarragon, Bloodflare and God Slayer armor effects +130 maximum stealth ''' + SetBonus1: + ''' + Inherited Tarragon Set Bonus: + After every 50 rogue critical hits you will gain 2.5 seconds of damage immunity + This effect has a cooldown of 25 seconds + While under the effects of a debuff you gain 10% increased rogue damage + Reduces enemy spawn rates + Increased heart pickup range + Enemies have a chance to drop extra hearts on death + ''' + SetBonus2: + ''' + Inherited Bloodflare Set Bonus: + Being over 80% life boosts your defense by 30 and rogue crit by 5% + Being below 80% life boosts your rogue damage by 10% + Rogue critical strikes heal you + Greatly increased life regen, equivalent to Crimson armor + Enemies below 50% life drop a heart when struck + This effect has a 5 second cooldown + ''' + SetBonus3: + ''' + Inherited God Slayer Set Bonus: + While at full HP all of your rogue stats are boosted by 10% + If you take over 80 damage in one hit you will be given extra immunity frames + Pressing {0} allows you to dash towards your cursor for 2.5 seconds + Enemies you dash through take massive damage + During the dash you are immune to most debuffs + The dash has a {1} second cooldown + ''' } AuricTeslaRoyalHelm: { @@ -50,6 +107,37 @@ AuricTeslaRoyalHelm: { Enemies are more likely to target you 28% increased melee speed ''' + SetBonus1: + ''' + Inherited Tarragon Set Bonus: + Taking damage gives the Tarra Life buff, which grants +1.5 HP/s life regen + Press {0} to cloak yourself in life energy that heavily reduces enemy contact damage for 10 seconds + This has a 30 second cooldown + Reduces enemy spawn rates + Increased heart pickup range + Enemies have a chance to drop extra hearts on death + ''' + SetBonus2: + ''' + Inherited Bloodflare Set Bonus: + True melee strikes will heal you + After striking an enemy 15 times with true melee you will enter a blood frenzy for 5 seconds + During this you will gain 25% increased melee damage, critical strike chance, and contact damage is halved + This effect has a 30 second cooldown + Greatly increased life regen, equivalent to Crimson armor + Enemies below 50% life drop a heart when struck + This effect has a 5 second cooldown + ''' + SetBonus3: + ''' + Inherited God Slayer Set Bonus: + Taking over 80 damage in one hit will cause you to release a swarm of high-damage god killer darts + Enemies take a lot of damage when they hit you + Pressing {0} allows you to dash towards your cursor for 2.5 seconds + Enemies you dash through take massive damage + During the dash you are immune to most debuffs + The dash has a {1} second cooldown + ''' } AuricTeslaSpaceHelmet: { @@ -57,9 +145,36 @@ AuricTeslaSpaceHelmet: { Tooltip: 15% increased summon damage SetBonus: ''' - Summoner Tarragon, Bloodflare and Silva armor effects Max run speed and acceleration boosted by 5% +6 max minions and 75% increased summon damage + Summoner Tarragon, Bloodflare and Silva armor effects + ''' + SetBonus1: + ''' + Inherited Tarragon Set Bonus: + Summons a life aura around you that damages nearby enemies + Reduces enemy spawn rates + Increased heart pickup range + Enemies have a chance to drop extra hearts on death + ''' + SetBonus2: + ''' + Inherited Bloodflare Set Bonus: + Summons polterghast mines to circle you + At 90% life and above you gain 10% increased summon damage + At 50% life and below you gain 20 defense and +1 HP/s life regen + Greatly increased life regen, equivalent to Crimson armor + Enemies below 50% life drop a heart when struck + This effect has a 5 second cooldown + ''' + SetBonus3: + ''' + Inherited Silva Set Bonus: + Summons an ancient leaf prism to blast your enemies with life energy + All projectiles spawn healing leaf orbs on enemy hits + Max run speed and acceleration boosted by 5% + Taking fatal damage will revive you and make you invulnerable to all damage for 5 seconds + This effect has a 5 minute cooldown, which does not decrement if any bosses or events are active ''' } @@ -68,8 +183,37 @@ AuricTeslaWireHemmedVisage: { Tooltip: 30% increased magic damage, 20% increased magic critical strike chance, +100 max mana and 20% reduced mana usage SetBonus: ''' - Magic Tarragon, Bloodflare and Silva armor effects Max run speed and acceleration boosted by 5% + Magic Tarragon, Bloodflare and Silva armor effects + Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them + ''' + SetBonus1: + ''' + On every 5th critical strike you will fire a leaf storm + Magic projectiles heal you on enemy hits + Amount healed is based on projectile damage + Inherited Tarragon Set Bonus: + Reduces enemy spawn rates + Increased heart pickup range + Enemies have a chance to drop extra hearts on death + ''' + SetBonus2: + ''' + Magic weapons fire ghostly bolts every 1.67 seconds + Magic critical strikes cause blood explosions every 2 seconds + Inherited Bloodflare Set Bonus: + Greatly increased life regen, equivalent to Crimson armor + Enemies below 50% life drop a heart when struck + This effect has a 5 second cooldown + ''' + SetBonus3: + ''' + Inherited Silva Set Bonus: + Magic projectiles which cannot pierce will occasionally set off potent blasts of nature energy + All projectiles spawn healing leaf orbs on enemy hits + Max run speed and acceleration boosted by 5% + Taking fatal damage will revive you and make you invulnerable to all damage for 5 seconds + This effect has a 5 minute cooldown, which does not decrement if any bosses or events are active ''' } From f7c0eb66ec89527872e2cd424af2d996d798647c Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Wed, 2 Apr 2025 12:54:57 -0500 Subject: [PATCH 05/11] Small fix on Auric Tesla Tooltips I forgot to make all of them say you can hold SHIFT, only mage did it before oops --- .../Mods.CalamityMod.Items.Armor.PostMoonLord.hjson | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index b06b4d22d9..00ecd24252 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -20,7 +20,11 @@ AuricTeslaCuisses: { AuricTeslaHoodedFacemask: { DisplayName: Auric Tesla Hooded Facemask Tooltip: 30% increased ranged damage and critical strike chance - SetBonus: Ranged Tarragon, Bloodflare and God Slayer armor effects + SetBonus: + ''' + Ranged Tarragon, Bloodflare and God Slayer armor effects + Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them + ''' SetBonus1: ''' Inherited Tarragon Set Bonus: @@ -59,8 +63,9 @@ AuricTeslaPlumedHelm: { ''' SetBonus: ''' - Rogue Tarragon, Bloodflare and God Slayer armor effects +130 maximum stealth + Rogue Tarragon, Bloodflare and God Slayer armor effects + Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them ''' SetBonus1: ''' @@ -103,9 +108,10 @@ AuricTeslaRoyalHelm: { ''' SetBonus: ''' - Melee Tarragon, Bloodflare and God Slayer effects Enemies are more likely to target you 28% increased melee speed + Melee Tarragon, Bloodflare and God Slayer effects + Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them ''' SetBonus1: ''' @@ -148,6 +154,7 @@ AuricTeslaSpaceHelmet: { Max run speed and acceleration boosted by 5% +6 max minions and 75% increased summon damage Summoner Tarragon, Bloodflare and Silva armor effects + Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them ''' SetBonus1: ''' From e883fb44c28ad43d12df17ff35e841bdfdc5bd66 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 2 Apr 2025 14:22:25 -0400 Subject: [PATCH 06/11] Buffed SSTN damage boost --- Items/Accessories/SandSharkToothNecklace.cs | 2 +- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Accessories/SandSharkToothNecklace.cs b/Items/Accessories/SandSharkToothNecklace.cs index c18875f349..48c7b5d494 100644 --- a/Items/Accessories/SandSharkToothNecklace.cs +++ b/Items/Accessories/SandSharkToothNecklace.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - player.GetDamage() += 0.06f; + player.GetDamage() += 0.1f; player.GetArmorPenetration() += 10; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 814669c952..7048ffccdd 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1513,7 +1513,7 @@ SandSharkToothNecklace: { Tooltip: ''' Increases armor penetration by 10 - 6% increased damage + 10% increased damage ''' } From 28a791401cc8998f3cb304989ed8d936d850273b Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 3 Apr 2025 00:40:34 -0400 Subject: [PATCH 07/11] Evolution rebalancing --- CalPlayer/CalamityPlayerHitHurt.cs | 4 ++-- CalPlayer/CalamityPlayerLifeRegen.cs | 2 -- CalPlayer/CalamityPlayerMiscEffects.cs | 6 +++--- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 4 ++-- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 69f7664d61..8cc33852e4 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -940,7 +940,7 @@ namespace CalamityMod.CalPlayer Player.GiveUniversalIFrames(evolutionIFrames, true); modifiers.Cancel(); - evolutionLifeRegenCounter = 300; + evolutionLifeRegenCounter = 600; projTypeJustHitBy = proj.type; int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.EvolutionReflectCooldownMin, BalancingConstants.EvolutionReflectCooldownMax, cooldownDurationScalar); @@ -1052,7 +1052,7 @@ namespace CalamityMod.CalPlayer if (evolution) { if (proj.type == projTypeJustHitBy) - projectileDamageReduction += 0.2; + projectileDamageReduction += 0.25; } if (!ProjectileDestroyExceptionsList.Includes(proj.type) && proj.active && !proj.friendly && proj.hostile && proj.damage > 0) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 4a0a14505e..39b62cfddb 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -617,10 +617,8 @@ namespace CalamityMod.CalPlayer if (trinketOfChi || chiRegen) Player.lifeRegen += 2; - // Remember this is for 5 seconds after triggering a reflect with a long cooldown if (evolutionLifeRegenCounter > 0) { - Player.lifeRegen += 12; if (Player.lifeRegenTime < 3600f) Player.lifeRegenTime = 3600f; } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index f7a91431c8..31a063dafc 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3588,11 +3588,11 @@ namespace CalamityMod.CalPlayer Player.velocity *= 0.98f; if (molluskHelmet) - Player.velocity.X *= 0.994f; + Player.velocity.X *= 0.995f; if (molluskChest) - Player.velocity.X *= 0.994f; + Player.velocity.X *= 0.995f; if (molluskLegs) - Player.velocity.X *= 0.994f; + Player.velocity.X *= 0.995f; if ((warped || caribbeanRum) && !Player.slowFall && !Player.mount.Active) { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 7048ffccdd..d915b05b1b 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1890,8 +1890,8 @@ TheEvolution: { ''' Reflects projectiles that hit you, negating their damage and dealing 10x damage to enemies {$Common.ReflectInformation} - Reflecting a projectile grants +6 HP/s life regen for 5 seconds and grants maximum natural life regen - Getting hit by the same enemy projectile type during cooldown will resist its damage by 20% + Reflecting a projectile grants maximum natural life regen for 10 seconds + Getting hit by the same enemy projectile type during cooldown will resist its damage by 25% ''' } From 7b15507dd3e7f1750e1dcc63943eab0217009327 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Thu, 3 Apr 2025 05:20:21 -0500 Subject: [PATCH 08/11] Crab go boom boom boom in death mode. --- DataStructures/NPCStats.cs | 1 + NPCs/Crabulon/Crabulon.cs | 153 +++++++++++++++++++++++++++++-- Projectiles/Boss/MushBombFall.cs | 4 +- 3 files changed, 147 insertions(+), 11 deletions(-) diff --git a/DataStructures/NPCStats.cs b/DataStructures/NPCStats.cs index e1ebbd3f93..71225929dd 100644 --- a/DataStructures/NPCStats.cs +++ b/DataStructures/NPCStats.cs @@ -575,6 +575,7 @@ namespace CalamityMod { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 72, 108 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 72, 108 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 72, 108 } }, { new Tuple(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 26, 44, 60, 76, 114 } }, { new Tuple(NPCID.EaterofWorldsHead, ModContent.ProjectileType()), new int[] { 26, 36, 44, 52, 84 } }, diff --git a/NPCs/Crabulon/Crabulon.cs b/NPCs/Crabulon/Crabulon.cs index f239be5713..358bbd1074 100644 --- a/NPCs/Crabulon/Crabulon.cs +++ b/NPCs/Crabulon/Crabulon.cs @@ -268,7 +268,7 @@ namespace CalamityMod.NPCs.Crabulon NPC.TargetClosest(); NPC.noGravity = true; NPC.noTileCollide = true; - NPC.ai[0] = 1f; + NPC.ai[0] = (Main.rand.NextBool() && death && phase2) ? 5f : 1f; NPC.ai[1] = 0f; NPC.netUpdate = true; } @@ -304,10 +304,7 @@ namespace CalamityMod.NPCs.Crabulon NPC.direction = playerLocation < 0 ? 1 : -1; float inertia = revenge ? 10f : 20f; - if (NPC.direction > 0) - NPC.velocity.X = (NPC.velocity.X * inertia + walkingVelocity) / (inertia + 1f); - if (NPC.direction < 0) - NPC.velocity.X = (NPC.velocity.X * inertia - walkingVelocity) / (inertia + 1f); + NPC.velocity.X = (NPC.velocity.X * inertia + walkingVelocity * NPC.direction) / (inertia + 1f); } if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.Center, 1, 1) && !Collision.SolidCollision(NPC.position, NPC.width, NPC.height) && player.position.Y <= NPC.position.Y + NPC.height && !NPC.collideX) @@ -778,10 +775,10 @@ namespace CalamityMod.NPCs.Crabulon Vector2 initialSpawnLocation = NPC.Center + new Vector2(0f, 8f); for (int i = 0; i < numProj; i++) - Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation + new Vector2(Main.rand.Next(0, 81), Main.rand.Next(-20, 1)), initialVelocity - ((i / numProj) * initialVelocity), type, damage, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation + new Vector2(Main.rand.Next(0, 81), Main.rand.Next(-20, 1)), initialVelocity - ((i / (float)numProj) * initialVelocity), type, damage, 0f, Main.myPlayer); for (int i = 0; i < numProj; i++) - Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation - new Vector2(Main.rand.Next(0, 81), Main.rand.Next(-20, 1)), -(initialVelocity - ((i / numProj) * initialVelocity)), type, damage, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation - new Vector2(Main.rand.Next(0, 81), Main.rand.Next(-20, 1)), -(initialVelocity - ((i / (float)numProj) * initialVelocity)), type, damage, 0f, Main.myPlayer); } for (int j = (int)NPC.position.X - 20; j < (int)NPC.position.X + NPC.width + 40; j += 20) @@ -821,6 +818,144 @@ namespace CalamityMod.NPCs.Crabulon } } + // Stomp three times quickly, creating lines of mushrooms and a column of mushrooms that slowly fall down + else if (NPC.ai[0] == 5f) + { + // Avoid cheap bullshit + NPC.damage = 0; + + NPC.noTileCollide = false; + if (NPC.velocity.Y == 0f) + { + NPC.velocity.X *= 0.8f; + NPC.ai[1] += 1f; + if (NPC.ai[1] % 15f == 14f) + NPC.netUpdate = true; + + float jumpGateValue = 10f; + if (NPC.ai[1] >= jumpGateValue) + { + NPC.ai[1] = -20f; + } + else if (NPC.ai[1] == -1f) + { + NPC.velocity.Y = -(2f + NPC.ai[2]); + + SoundEngine.PlaySound(JumpSound, NPC.Center); + + NPC.ai[0] = 6f; + NPC.ai[1] = 0f; + NPC.netUpdate = true; + } + } + } + else if (NPC.ai[0] == 6f) + { + if (NPC.velocity.Y == 0f) + { + // Avoid cheap bullshit + NPC.damage = 0; + + SoundEngine.PlaySound(SlamSound, NPC.Center); + + NPC.ai[2] += 1f; + if (NPC.ai[2] >= 3f) + { + // Columns of mushrooms + if (Main.netMode != NetmodeID.MultiplayerClient) + { + int type = ModContent.ProjectileType(); + int damage = NPC.GetProjectileDamage(type); + int maxColumns = 5; + int mushroomsPerColumn = 10; + Vector2 initialSpawnLocation = NPC.Center + new Vector2(-210f, 8f); + Vector2 initialVelocity = Vector2.UnitY * 15f; + for (int i = 0; i < maxColumns; i++) + { + for (int j = 0; j < mushroomsPerColumn; j++) + Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation + new Vector2(70f * (i + 1), 0f), -(initialVelocity - ((j / (float)mushroomsPerColumn) * initialVelocity)), type, damage, 0f, Main.myPlayer, 1f, NPC.Bottom.Y); + } + } + + NPC.ai[0] = 1f; + NPC.ai[2] = 0f; + NPC.ai[3] = 0f; + NPC.netUpdate = true; + } + else + { + // Mushrooms along the ground + if (Main.netMode != NetmodeID.MultiplayerClient) + { + int type = ModContent.ProjectileType(); + int damage = NPC.GetProjectileDamage(type); + float xVelocity = death ? 3f : 1.5f; + int numProj = 3; + Vector2 initialVelocity = Vector2.UnitX * xVelocity; + Vector2 initialSpawnLocation = NPC.Center + new Vector2(0f, 8f); + + for (int i = 0; i < numProj; i++) + Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation + new Vector2(Main.rand.Next(0, 41), 0f), initialVelocity - ((i / (float)numProj) * initialVelocity), type, damage, 0f, Main.myPlayer); + + for (int i = 0; i < numProj; i++) + Projectile.NewProjectile(NPC.GetSource_FromAI(), initialSpawnLocation - new Vector2(Main.rand.Next(0, 41), 0f), -(initialVelocity - ((i / (float)numProj) * initialVelocity)), type, damage, 0f, Main.myPlayer); + } + + float playerLocation = NPC.Center.X - player.Center.X; + NPC.direction = playerLocation < 0 ? 1 : -1; + + NPC.ai[0] = 5f; + NPC.netUpdate = true; + } + + for (int j = (int)NPC.position.X - 20; j < (int)NPC.position.X + NPC.width + 40; j += 20) + { + for (int k = 0; k < 4; k++) + { + int stompDust = Dust.NewDust(new Vector2(NPC.position.X - 20f, NPC.position.Y + NPC.height), NPC.width + 20, 4, DustID.BlueFairy, 0f, 0f, 100, default, 1.5f); + Main.dust[stompDust].velocity *= 0.2f; + } + + // Destroy tiles with stomps in Zenith seed (this is going to be so awful with this attack lol) + if (Main.zenithWorld) + { + int x = j / 16; + int y = (int)(NPC.position.Y + NPC.height) / 16; + Tile groundTile = CalamityUtils.ParanoidTileRetrieval(x, y); + Tile walkTile = CalamityUtils.ParanoidTileRetrieval(x, y - 1); + if (!walkTile.HasTile && walkTile.LiquidAmount == 0 && groundTile != null && WorldGen.SolidTile(groundTile)) + { + walkTile.TileFrameY = 0; + walkTile.Get().Slope = SlopeType.Solid; + walkTile.Get().IsHalfBlock = false; + if (groundTile.TileType == TileID.MushroomGrass || groundTile.TileType == TileID.Mud) + { + walkTile.Get().HasTile = true; + walkTile.TileType = TileID.MushroomPlants; + walkTile.TileFrameX = (short)(Main.rand.Next(5) * 18); + + if (Main.netMode == NetmodeID.MultiplayerClient) + NetMessage.SendTileSquare(-1, x, y - 1, 1, TileChangeType.None); + } + } + } + } + } + else + { + // Set damage + NPC.damage = NPC.defDamage; + + if (!player.dead) + { + if ((player.position.Y > NPC.Bottom.Y && NPC.velocity.Y > 0f) || (player.position.Y < NPC.Bottom.Y && NPC.velocity.Y < 0f)) + NPC.noTileCollide = true; + else if ((NPC.velocity.Y > 0f && NPC.Bottom.Y > Main.player[NPC.target].Top.Y) || (Collision.CanHit(NPC.position, NPC.width, NPC.height, Main.player[NPC.target].Center, 1, 1) && !Collision.SolidCollision(NPC.position, NPC.width, NPC.height))) + NPC.noTileCollide = false; + } + } + } + if (NPC.localAI[0] == 0f && NPC.life > 0) NPC.localAI[0] = NPC.lifeMax; @@ -918,7 +1053,7 @@ namespace CalamityMod.NPCs.Crabulon { if (NPC.ai[0] > 1f) { - if (NPC.velocity.Y == 0f && ((NPC.ai[1] >= 0f && NPC.ai[0] == 2f) || (NPC.ai[1] < (DelayBeforeBigJump - TelegraphTimeBeforeBigJump) && NPC.ai[0] == 4f && NPC.ai[2] == 0f))) // Idle just before jump + if (NPC.velocity.Y == 0f && ((NPC.ai[1] >= 0f && (NPC.ai[0] == 2f || NPC.ai[0] == 5f)) || (NPC.ai[1] < (DelayBeforeBigJump - TelegraphTimeBeforeBigJump) && NPC.ai[0] == 4f && NPC.ai[2] == 0f))) // Idle just before jump { if (stomping) stomping = false; @@ -993,7 +1128,7 @@ namespace CalamityMod.NPCs.Crabulon Vector2 drawPos = NPC.Center - screenPos + (Vector2.UnitX * textureIdle.Width * c * 1.6f); // Jumping - if (NPC.ai[0] > 2f && NPC.velocity.Y != 0f) + if ((NPC.ai[0] > 2f && NPC.ai[0] != 5f) && NPC.velocity.Y != 0f) { drawOrigin = new Vector2(textureAttack.Width / 2, textureAttack.Height / 2); drawPos -= new Vector2(textureAttack.Width, textureAttack.Height / Main.npcFrameCount[Type]) * NPC.scale / 2f; diff --git a/Projectiles/Boss/MushBombFall.cs b/Projectiles/Boss/MushBombFall.cs index 5645ec3df9..21910f807e 100644 --- a/Projectiles/Boss/MushBombFall.cs +++ b/Projectiles/Boss/MushBombFall.cs @@ -75,8 +75,8 @@ namespace CalamityMod.Projectiles.Boss Lighting.AddLight(Projectile.Center, 0f, 0.15f, 0.3f); - float velocityYLimit = BossRushEvent.BossRushActive ? 12f : CalamityWorld.death ? 6f : 5f; - float velocityYIncrement = BossRushEvent.BossRushActive ? 0.24f : CalamityWorld.death ? 0.12f : 0.1f; + float velocityYLimit = Projectile.ai[0] == 1f ? 3f : BossRushEvent.BossRushActive ? 12f : CalamityWorld.death ? 6f : 5f; + float velocityYIncrement = Projectile.ai[0] == 1f ? 0.15f : BossRushEvent.BossRushActive ? 0.24f : CalamityWorld.death ? 0.12f : 0.1f; if (Projectile.velocity.Y < velocityYLimit) Projectile.velocity.Y += velocityYIncrement; From f73f0ac6e8905d5d6e09b084e1847f8650b90530 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 3 Apr 2025 13:24:15 -0400 Subject: [PATCH 09/11] Fixed MushBombGround always moving to the right after hitting the velocity cap --- .../en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson | 8 ++++---- Projectiles/Boss/MushBombGround.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 00ecd24252..ef21b0d2c1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -20,11 +20,11 @@ AuricTeslaCuisses: { AuricTeslaHoodedFacemask: { DisplayName: Auric Tesla Hooded Facemask Tooltip: 30% increased ranged damage and critical strike chance - SetBonus: - ''' - Ranged Tarragon, Bloodflare and God Slayer armor effects + SetBonus: + ''' + Ranged Tarragon, Bloodflare and God Slayer armor effects Hold SHIFT to view these set bonus details and Press SHIFT repeatedly to cycle through them - ''' + ''' SetBonus1: ''' Inherited Tarragon Set Bonus: diff --git a/Projectiles/Boss/MushBombGround.cs b/Projectiles/Boss/MushBombGround.cs index 39b4588c9d..a32de29a4e 100644 --- a/Projectiles/Boss/MushBombGround.cs +++ b/Projectiles/Boss/MushBombGround.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Boss { Projectile.velocity.X *= xVelocityMultiplier; if (Math.Abs(Projectile.velocity.X) > xVelocityLimit) - Projectile.velocity.X = xVelocityLimit; + Projectile.velocity.X = Math.Sign(Projectile.velocity.X) * xVelocityLimit; } } From 31b7f10cd7381ca36cd3020684d591369e988280 Mon Sep 17 00:00:00 2001 From: Heart-Plus-Up <85328817+Heart-Plus-Up@users.noreply.github.com> Date: Thu, 3 Apr 2025 12:06:41 -0700 Subject: [PATCH 10/11] Wulfrum Building Stuff Added Anodized Wulfrum Metal - used to make new building blocks that use a anodized color of wulfrum, will have it's own furniture set platforms etc. Added Wulfrum Platforms Added Wulfrum Sheets (Anodized Wulfrum Metal Set) Added Wulfrum Sidings (Regular Wulfrum and Anodized Hybrid) Added Wulfrum Pillars (Regular Wulfrum and Anodized Hybrid) --- Items/Materials/AnodizedWulfrumMetal.cs | 44 ++++++++++++ Items/Materials/AnodizedWulfrumMetal.png | Bin 0 -> 373 bytes .../FurnitureWulfrum/WulfrumPlatform.cs | 32 +++++++++ .../FurnitureWulfrum/WulfrumPlatform.png | Bin 0 -> 407 bytes .../FurnitureWulfrum/WulfrumPlatform_Glow.png | Bin 0 -> 108 bytes .../FurnitureWulfrum/WulfrumSheets.cs | 32 +++++++++ .../FurnitureWulfrum/WulfrumSheets.png | Bin 0 -> 288 bytes .../FurnitureWulfrum/WulfrumSiding.cs | 33 +++++++++ .../FurnitureWulfrum/WulfrumSiding.png | Bin 0 -> 232 bytes Items/Placeables/Walls/WulfrumPillar.cs | 28 ++++++++ Items/Placeables/Walls/WulfrumPillar.png | Bin 0 -> 434 bytes Tiles/FurnitureWulfrum/WulfrumPlatform.cs | 68 ++++++++++++++++++ Tiles/FurnitureWulfrum/WulfrumPlatform.png | Bin 0 -> 1847 bytes .../FurnitureWulfrum/WulfrumPlatform_Glow.png | Bin 0 -> 240 bytes Tiles/FurnitureWulfrum/WulfrumSheets.cs | 51 +++++++++++++ Tiles/FurnitureWulfrum/WulfrumSheets.png | Bin 0 -> 8383 bytes Tiles/FurnitureWulfrum/WulfrumSiding.cs | 38 ++++++++++ Tiles/FurnitureWulfrum/WulfrumSiding.png | Bin 0 -> 3803 bytes Utilities/TileUtils.cs | 1 + Walls/WulfrumPillar.cs | 24 +++++++ Walls/WulfrumPillar.png | Bin 0 -> 7140 bytes 21 files changed, 351 insertions(+) create mode 100644 Items/Materials/AnodizedWulfrumMetal.cs create mode 100644 Items/Materials/AnodizedWulfrumMetal.png create mode 100644 Items/Placeables/FurnitureWulfrum/WulfrumPlatform.cs create mode 100644 Items/Placeables/FurnitureWulfrum/WulfrumPlatform.png create mode 100644 Items/Placeables/FurnitureWulfrum/WulfrumPlatform_Glow.png create mode 100644 Items/Placeables/FurnitureWulfrum/WulfrumSheets.cs create mode 100644 Items/Placeables/FurnitureWulfrum/WulfrumSheets.png create mode 100644 Items/Placeables/FurnitureWulfrum/WulfrumSiding.cs create mode 100644 Items/Placeables/FurnitureWulfrum/WulfrumSiding.png create mode 100644 Items/Placeables/Walls/WulfrumPillar.cs create mode 100644 Items/Placeables/Walls/WulfrumPillar.png create mode 100644 Tiles/FurnitureWulfrum/WulfrumPlatform.cs create mode 100644 Tiles/FurnitureWulfrum/WulfrumPlatform.png create mode 100644 Tiles/FurnitureWulfrum/WulfrumPlatform_Glow.png create mode 100644 Tiles/FurnitureWulfrum/WulfrumSheets.cs create mode 100644 Tiles/FurnitureWulfrum/WulfrumSheets.png create mode 100644 Tiles/FurnitureWulfrum/WulfrumSiding.cs create mode 100644 Tiles/FurnitureWulfrum/WulfrumSiding.png create mode 100644 Walls/WulfrumPillar.cs create mode 100644 Walls/WulfrumPillar.png diff --git a/Items/Materials/AnodizedWulfrumMetal.cs b/Items/Materials/AnodizedWulfrumMetal.cs new file mode 100644 index 0000000000..f15a1658a3 --- /dev/null +++ b/Items/Materials/AnodizedWulfrumMetal.cs @@ -0,0 +1,44 @@ +using CalamityMod.Cooldowns; +using CalamityMod.Items.Accessories; +using CalamityMod.Items.Armor.Wulfrum; +using CalamityMod.NPCs.NormalNPCs; +using Terraria; +using Terraria.Audio; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; +using static CalamityMod.CalamityUtils; + +namespace CalamityMod.Items.Materials +{ + public class AnodizedWulfrumMetal : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Materials"; + + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 25; + } + + public override void SetDefaults() + { + Item.width = 18; + Item.height = 18; + Item.maxStack = Item.CommonMaxStack; + Item.value = Item.sellPrice(copper: 10); + Item.rare = ItemRarityID.Blue; + Item.ammo = Item.type; + } + public override void AddRecipes() + { + CreateRecipe(1). + AddIngredient(). + AddIngredient(). + AddTile(TileID.WorkBenches). + Register(); + } + //Added to avoid making the recipes really repeditive and nonsensical. It also makes the new metal color make sense. Adds a bit of flavor to the Wulfrum Recipes + //Fun fact the reason used Stormlion Manible is because in order to anodize a metal you must use a current, the other option was a powercell but I feel StormlionMandible needed more uses + //More uses are planned for other blocks and furniture for wulfrum that use this new metal color and gives a bit more depth to the set + } +} diff --git a/Items/Materials/AnodizedWulfrumMetal.png b/Items/Materials/AnodizedWulfrumMetal.png new file mode 100644 index 0000000000000000000000000000000000000000..0e901b939919d75107cdb0c99fdc20ef42225fc7 GIT binary patch literal 373 zcmV-*0gC>KP)Px$FG)l}R5*>j)V)drK@h<4|4AaE$)%B%Bp4M`P%({#Xpx7=1Na7l4zB+ z*jQKzT8cJ;f|^7y#E;}I3VP;5qU0>r1@|}*WaBiuu*1xcfmw@C6!Rkh^xFw}Cgmxz zX#g%xPJ^HM=kF;1dcuYN8nLiIb*^4k0)PQK2|(xDvAn(t!2L~4iZ*u*ixQ*b0JN&t z0f29}w9dIIj|C7jl zZ~zdQp~yrf+uqm$py9oBS)^hxEdbcx+0#15eGh=(C(GHmui0i@Y0E!6iGb;pM3yS%4d;lRyc ThFyDN00000NkvXXu0mjfzzv^% literal 0 HcmV?d00001 diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.cs b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.cs new file mode 100644 index 0000000000..ee3cf4904e --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.cs @@ -0,0 +1,32 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Tiles.FurnitureWulfrum; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureWulfrum +{ + public class WulfrumPlatform : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 200; + } + + public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); + + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) + { + Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Placeables/FurnitureWulfrum/WulfrumPlatform_Glow").Value); + } + + public override void AddRecipes() + { + CreateRecipe(2). + AddIngredient(). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.png b/Items/Placeables/FurnitureWulfrum/WulfrumPlatform.png new file mode 100644 index 0000000000000000000000000000000000000000..d91c28ed3fd71067a840007adbf6febb59e01541 GIT binary patch literal 407 zcmV;I0cie-P)Px$QAtEWR5*>jl(9;~P!xv0hy)vqpav|>CZsrZP+VLU90bvKaPa|jaduEaX9u4_ zaSM=TvIoHC);s{m2e*Jm;_Yyx$T1pTQ?nL-_B1MMqL0bt77OS zmWR`$9VK!8aHqug7mol;pIida+uP0(IjLK#0uV;s6h=Y(+-deLkXsj7XS)E*Jd?@p@NLci+NGJ+keL$zjLMn4r zG|WR;g|H}n9((mh+Am?*SFVdQ&MBb@ E0BP|aivR!s literal 0 HcmV?d00001 diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumSheets.cs b/Items/Placeables/FurnitureWulfrum/WulfrumSheets.cs new file mode 100644 index 0000000000..c07dcca835 --- /dev/null +++ b/Items/Placeables/FurnitureWulfrum/WulfrumSheets.cs @@ -0,0 +1,32 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Walls; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureWulfrum +{ + public class WulfrumSheets : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); + + public override void AddRecipes() + { + CreateRecipe(25). + AddRecipeGroup("AnyStoneBlock", 25). + AddIngredient(). + AddTile(TileID.HeavyWorkBench). + Register(); + //CreateRecipe(). + // AddIngredient(4). + // AddTile(TileID.WorkBenches). + // DisableDecraft(). + // Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumSheets.png b/Items/Placeables/FurnitureWulfrum/WulfrumSheets.png new file mode 100644 index 0000000000000000000000000000000000000000..2d296059307c8ea4e52457db1d74767dae9748d3 GIT binary patch literal 288 zcmV+*0pI?KP)Px#+DSw~R49?P(mzW=aTLb!&y5I7h#Vto@oGqsgF`h`5Y!SO)!HlSb+k4$7Oia! zL7O3%Aw+}(x1k0dF1PxLo402=e;y8B&N*}s8U@Yz+OBHzKe6<%`l78IHeRr&HVuB%%C@^L!9%i-x0000 "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); + + public override void AddRecipes() + { + CreateRecipe(25). + AddRecipeGroup("AnyStoneBlock", 25). + AddIngredient(). + AddIngredient(). + AddTile(TileID.HeavyWorkBench). + Register(); + //CreateRecipe(). + // AddIngredient(4). + // AddTile(TileID.WorkBenches). + // DisableDecraft(). + // Register(); + } + } +} diff --git a/Items/Placeables/FurnitureWulfrum/WulfrumSiding.png b/Items/Placeables/FurnitureWulfrum/WulfrumSiding.png new file mode 100644 index 0000000000000000000000000000000000000000..462a2ce24d19405c98c406e01440123c7e4a4f1d GIT binary patch literal 232 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|7J0fjhFJ6_ zn+QGlasI%80}B+?&pB{ae0ZVC3*4%74ttFYqOP($0q0o_7&iZ$xxgf>Fj_ubYUhKq zpTjkTY?5SFXx&c^cmHe9z_@RAd8bjsFTD#U*VIokyxRHT!ZFztNr#Qx3=zjvCjPA1 RAqjLXgQu&X%Q~loCIEvnQVjqA literal 0 HcmV?d00001 diff --git a/Items/Placeables/Walls/WulfrumPillar.cs b/Items/Placeables/Walls/WulfrumPillar.cs new file mode 100644 index 0000000000..ecca3e570f --- /dev/null +++ b/Items/Placeables/Walls/WulfrumPillar.cs @@ -0,0 +1,28 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using Terraria.ID; +using Terraria.ModLoader; +using WallTiles = CalamityMod.Walls; + +namespace CalamityMod.Items.Placeables.Walls +{ + public class WulfrumPillar : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 400; + } + + public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType()); + + public override void AddRecipes() + { + CreateRecipe(8). + AddIngredient(). + AddIngredient(). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/Walls/WulfrumPillar.png b/Items/Placeables/Walls/WulfrumPillar.png new file mode 100644 index 0000000000000000000000000000000000000000..e4c3444ab3d78cfc68c68f3d284157349e164e44 GIT binary patch literal 434 zcmV;j0ZsmiP)Px$Y)M2xR7i=nl)+BIKoEw%nnG&|2`H!pi1DQHrbiDZMvp#;Z|Xq~9ynnLL1KUc zK`2nHsfT4k+LVOE?tj|d+1Y;ir!&U=^8*0>><0kLF#+)Us}R71IbuAxBXnxKB=)Jok07hs43|g)xLRqXP>ky!H zS%{ET9$x^ceY|dNz5(EkRseJwy>JsS^b(4kV>`0nlIJpsl4b6l~+#XF!7>PRlJj_<1N%Is5piu!pvMv zji;L{0FKH<0O}X@#Ds3U3&40d24HHdzhTl>@1#%ITIT>Lx^5&O1fppyE}Hb!xxAA; z;YqoqR<~+GS7Q@eR3+-EbWnCw1HftYG!e=|dbGJ`qT8NALQkhpI2fub?dlLweE#j~ cnA8dX0K6}hpun&jp8x;=07*qoM6N<$f&|vSr2qf` literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/WulfrumPlatform.cs b/Tiles/FurnitureWulfrum/WulfrumPlatform.cs new file mode 100644 index 0000000000..6eebeafb95 --- /dev/null +++ b/Tiles/FurnitureWulfrum/WulfrumPlatform.cs @@ -0,0 +1,68 @@ +using CalamityMod.Items.Placeables.FurnitureWulfrum; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum +{ + public class WulfrumPlatform : ModTile + { + internal static Texture2D GlowTexture; + + public override void SetStaticDefaults() + { + if (!Main.dedServ) + { + GlowTexture = ModContent.Request("CalamityMod/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow", AssetRequestMode.ImmediateLoad).Value; + } + + this.SetUpPlatform(ModContent.ItemType(), true); + } + + public override bool CanExplode(int i, int j) => false; + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void PostSetDefaults() + { + Main.tileNoSunLight[Type] = false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + // If the cached textures don't exist for some reason, don't bother using them. + if (GlowTexture is null) + return; + + Tile tile = CalamityUtils.ParanoidTileRetrieval(i, j); + if (tile.IsTileActuallyInvisible()) + return; + + int xPos = tile.TileFrameX; + int frameOffset = (i + j) % 6 * AnimationFrameHeight; + int yPos = tile.TileFrameY + frameOffset; + Vector2 drawOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffset; + + if (!tile.IsHalfBlock) + { + spriteBatch.Draw(GlowTexture, drawPosition, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f); + } + else if (tile.IsHalfBlock) + { + spriteBatch.Draw(GlowTexture, drawPosition + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f); + } + } + } +} diff --git a/Tiles/FurnitureWulfrum/WulfrumPlatform.png b/Tiles/FurnitureWulfrum/WulfrumPlatform.png new file mode 100644 index 0000000000000000000000000000000000000000..a1b3cf4ee5ec922876c78bf463d7290e68a9d0b6 GIT binary patch literal 1847 zcmV-72gvw|P)Px*@kvBMRCt{2oK0w5MHI*XuRK4}p}Sg;^S7G0@* z?nmOIp5Nwi@11+*KVSEqb7$t3dban?BM0L@kCgzx?EF9N9C+;o0Kn&;e(6ouv%L=h z(7R(30N~tDmz;d1o~|vOUOSbpigUcBuN?p|eB^tt9n!mFQ>mUW(#w|6^F-3x;qktgKJcbL`o+86 ze2dZ(qG&rLwp?2Mq}7wPoz2HXDz32u2jK33CuHlo_TDr%#c+-XY zp}b$}A+dT$UOSpDwwr|ZLicN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fu4QPlWKTQ8w+n-@?|0J1;Fay)+=EMhhc!!QiP lFbu;m48t%C!!Vkhe*uTl^+M#7fFJ+>002ovPDHLkV1h8V&gcLD literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow.png b/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow.png new file mode 100644 index 0000000000000000000000000000000000000000..c736697170f533898f57ed840631a2fd9744e733 GIT binary patch literal 240 zcmeAS@N?(olHy`uVBq!ia0y~yV0;E-3vsXk$-d{cB|wU?ILO_JVcj{Imq5-cPZ!6K ziaBpDDt0+Bim+Z-9m&$HEzo;xqlM!^9lc|rJ0uDPlLd5+N%AxuUGRv@z%ocxtNQ{^SE z{bZHpf1j?Lm;QZ9Wx0R7iN_?Fvg3#D{9Si-N9ZqMhJWi{#q-0AM5Y_=moirisj>tv R;xYk=d%F6$taD0e0stvER3HEV literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/WulfrumSheets.cs b/Tiles/FurnitureWulfrum/WulfrumSheets.cs new file mode 100644 index 0000000000..813b8f8191 --- /dev/null +++ b/Tiles/FurnitureWulfrum/WulfrumSheets.cs @@ -0,0 +1,51 @@ +using CalamityMod.Dusts; +using CalamityMod.Systems; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum +{ + public class WulfrumSheets : ModTile + { + public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3); + private const short subsheetWidth = 216; + private const short subsheetHeight = 72; + public static int TypeCache; + public override void SetStaticDefaults() + { + TypeCache = Type; + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = false; + Main.tileShine2[Type] = true; + + CalamityUtils.MergeWithGeneral(Type); + + HitSound = MinePlatingSound; + AddMapEntry(new Color(164, 150, 125)); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + TileFramingSystem.CompactFraming(i, j, resetFrame); + return false; + } + + public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset) + { + int xPos = i % 2; + int yPos = j % 2; + frameXOffset = xPos * subsheetWidth; + frameYOffset = yPos * subsheetHeight; + } + } +} diff --git a/Tiles/FurnitureWulfrum/WulfrumSheets.png b/Tiles/FurnitureWulfrum/WulfrumSheets.png new file mode 100644 index 0000000000000000000000000000000000000000..509cff294925de600f5127ef1b355bf10b3fb7e8 GIT binary patch literal 8383 zcmZviXIxWR)b2N;qM|`XM1|lWZIBWW1PN^h(MVSiLJvxpW+0yJ~;>4F4Cgdi>S zUPnZbDuiC78A?KLp>vO;Gw*wU_kKz8;pFVK_t|T$=l|^U^0qeW#IXy<001Y{ZmH@5 zz?2L9etqOH^l2Zh^a1)}a??er0CF4m3;@3YHPt`wdM3;feL~^gehoDfW^c`ud)EiD zBxTHZ4l6&n&hy97GZz9ui1h25>UNjzbfst+KT~}bp?>E@aQyFDo%~u|{FiPW35q&E zis4dyXjx>aa7n_1Yti8qXAPWdFoZ!}o8MXwE32tU9Qo$f9vA1fK&;r_-6^P+@~B?f zZcSKHtdWzN;@atD-wzG(T9sG+Q+R%VfRit2VXJF|8GMLzBC=fc<_2G@Jy?LnQiQ%7 z*!U=v!wf`?t3OPyZ@bSigM@2aETC4;gb|`WYQzE-5p26RvMK`$8*J+e-qtNBuc?&o zu$NGQMR&ddnD;umzuLTi9E@JvTebv`CTx9}KtY=JK``r=Erz~K?$Jj>_t;%)X9Cr( zBXIDD0C$NU(k`%Q%>clEu}=`x#wu69z@qaYAp)tv*dkj07Lit%6#v@ z$K8c%w^z3wBua6CuU*nb9|(m7ZHhjZkVzOu19-&F0;_+Z94l_d4Qgu?*G9n5V3^IC zRx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pD9beTcRmN=?FevZl?cu1p%K1{sE$MiDTZg+s!Xe8XZ$_KPdW(s^1iEM9-3AYH z8PsIq5`TTay|)MM@cI7{s~duFg)?h#*E#G)Puw6967a zcZ9?z4!?I3k6#X^FUlL^18Mc_ep}M%1gFEy$SbidenV@0re)l(wV=!~%cG{M(Hdvv zdEW9B(D&9hJ3Vgx!T|{MKSaiu4Swvn(`|nadNIK1$GZThXa45LZ@{yWPavCOXvr>u z#@(myOJ<+D=KDdhiy~EbOMp2fGT%wOE(MuywwVyMD wt*g~KM_6mPT)JgZ%T2^T`u;!bFluz4iSWIuo!Ls=02&ym-OyGgt5`hwKMFK>N&o-= literal 0 HcmV?d00001 diff --git a/Tiles/FurnitureWulfrum/WulfrumSiding.cs b/Tiles/FurnitureWulfrum/WulfrumSiding.cs new file mode 100644 index 0000000000..6f31a9e0c0 --- /dev/null +++ b/Tiles/FurnitureWulfrum/WulfrumSiding.cs @@ -0,0 +1,38 @@ +using CalamityMod.Dusts; +using CalamityMod.Systems; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.FurnitureWulfrum +{ + public class WulfrumSiding : ModTile + { + public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3); + + public override void SetStaticDefaults() + { + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = true; + + CalamityUtils.MergeWithGeneral(Type); + + HitSound = MinePlatingSound; + AddMapEntry(new Color(164, 150, 125)); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame); + } + } +} diff --git a/Tiles/FurnitureWulfrum/WulfrumSiding.png b/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sVsY~3A2CCmx2^cF0HRMeJ3tgd8O{_vs7F< zr?e;t^Hl7QL-)05$TU)sL?>{ebjjhU?mkDll)-&6kAuD%_Z8vL@~+k#M7Z4Q^=##S zIhvUgA?iONx3us49SNTZtd>%MTal^9Md}F9;JjIlJi`&aI;F=Hyl#cac$WNoS5@or z7w+YZEH18)H~9$XS@Io7<*Gs<`gMR&6XSLrLt=t!NgmLS$Lxjn5b9mk=6va0nb5xN zQO|g(GI75$EHQVsYZZg(ZqHY@4xMPx4|8TFx~g`l4qhJ#;NO`KTn}xVLchot8PLaO zevqnFDyHws*#9@?PrXy*wR~8)^eSJ%B2jnV=Pk#Ji}sjE_0d=FS;c^v92<xQdqwls_u0^YjByr80ayYrbnVBXn9#n|Ni_)(HlwhjuJ zk>i?I;?jhHmfP*sC5$Tui|WI$s|bz`l^&4eBjF7^jaV#VQqKm)C8jF`Q;V7=id}nFlIC zw_EdwK1i8Go>(Rr4$)s9tJkr>MOTHW)1F*wNUo|@EV7CBL4xuEmoh_3s<|VtL(2~4 zCw1GtJ3?E4X_qGplOJMFCYML=`DkyxSdG@3PGOh#O-4iWo1Md(B7Q|5R|IC;Ra|$k z5_kVGGJ3snUT-p;;4Sj0m<~3~zUaMzpT^Xwpr&tDXCfx^rqT7*QVRVV&Vga9)4+|E zC~1MPM0Yvtu;W{Ur_TQRNd|GRq=*-pFT|MIf5^KheEm(6rU_|XK<4g4Fu z+7pv@mnon}cCFXLwt_9_OD7RnCz9`bBujVKe$QYPFU!hvM@bay!nL|3T_hRp%zTlS jqdusML>T|Cm+lC7JQl?8B?IZa+bUpTYHd;mz474RGy#;k literal 0 HcmV?d00001 diff --git a/Utilities/TileUtils.cs b/Utilities/TileUtils.cs index 56e3eb250a..4fd97af360 100644 --- a/Utilities/TileUtils.cs +++ b/Utilities/TileUtils.cs @@ -648,6 +648,7 @@ namespace CalamityMod SetMerge(type, TileType()); SetMerge(type, TileType()); SetMerge(type, TileType()); + SetMerge(type, TileType()); SetMerge(type, TileType()); SetMerge(type, TileType()); } diff --git a/Walls/WulfrumPillar.cs b/Walls/WulfrumPillar.cs new file mode 100644 index 0000000000..ee6324c9da --- /dev/null +++ b/Walls/WulfrumPillar.cs @@ -0,0 +1,24 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Walls +{ + public class WulfrumPillar : ModWall + { + public override void SetStaticDefaults() + { + Main.wallHouse[Type] = true; + AddMapEntry(new Color(82, 109, 80)); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; + } +} diff --git a/Walls/WulfrumPillar.png b/Walls/WulfrumPillar.png new file mode 100644 index 0000000000000000000000000000000000000000..39fde66e6a74ce30b3a775033d7ec3508043b638 GIT binary patch literal 7140 zcmaiZ2~<*f|2HjDSxwHP)3}t{g3@GWX z0KY=aO>6;x4ZV`@CEK=0J~eR6`;xU zdG6Vy_S-h#1DTh{jC^~iV^44$)ME~FW6RhXpL0ZaR!df-m=@dzObh!Hd9dDQYscvq zTe=^zir&)~w+?M(iEfmWSAH?5)2a4=KAn}W{VLCzuNWT;(Ng@m3 zejW+24J+u2#|>H?<(K!_SYqt%oJowwCHP*#oDdUCz_iQKOO`GO8|h=!tR#c_09I9z z1prWfKG^t-+U~<4ovM(8NY19$c4k8%E>&sdEzu+0p+P=yM?CFeJ5trZ~BJk1;yYyDKHeT5!a|=oi4g zyG4*(0_yXGdG|MIW%F@(e(Ne<1%t~$3yl{(5rGhDO(k%WNE`~w(%0$@LGu2hl$6rk z@J$JmC`8slh@Y$(Sh@UlJdW#GrRQ|0o&(m42acxMLu_+w;%W>68c_%%%*&KlFM&Gq z=kuTb$(D5Hli*dbk~M7O+Xym(wGM!F@oc-8d=!9Q(b(sBhZP#}eav zL%-OutkBEBu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3#%3ORc{AL-fLS;^$aPLR*nn@4+4k~-XOe4j&C5^=lpm9NOJgIxLdK^JHi5iy9i z2QQuDMM(4C+Cb60o_Dz4md<(NXeqDB{jIX(YOHgp(j9&b{$+_fX|oHS;Tpph4J7t$ z+WBC;J(Fus_agWmOv0FHpy2;Y+QOb&E)yLY7T&W{m-eL;TTT`K3!!$&H zrP_Mi8SBVzPan=Tsrlx87+3(;GH4PuTg*Xz=dqW_+k zMnNSedI7v;jmla#)*W?7{t_2ofZr;=WgQPCe?9n82`cSM1I9IG9*C>pPkDjE>hX&K z+L`HC>>A^z!i~5B_;gr67#KeRhj~P{)3ym1s2Wkf{V(@8|71~0$K#XNbx(z&^N}jc zWF(IlXHXkO*byajR@X1eyNq$w;joWx+8Qgq#f~}%5|IHd^xk2iaK@k_E2%1r!@T#i z!M;Q^N6D=oa_V%)^q%qIGYuML&(7D&oSVSThz4bN7d!EJTk95={3ng4*3`}a^&)>> Z-BiZ?E7s@FHNXJ?Am^=32u4@#{}0KTcwhhk literal 0 HcmV?d00001 From 16796341a8100dc391072868cde297a28ad18d3e Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Thu, 3 Apr 2025 18:44:37 -0500 Subject: [PATCH 11/11] Made Wulfrum Battery glow work on Sentries too --- Items/Accessories/WulfrumBattery.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Accessories/WulfrumBattery.cs b/Items/Accessories/WulfrumBattery.cs index efa3e9f2ac..6fa9f06057 100644 --- a/Items/Accessories/WulfrumBattery.cs +++ b/Items/Accessories/WulfrumBattery.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Items.Accessories { public override void AI(Projectile projectile) { - if (!projectile.npcProj && !projectile.trap && projectile.minion && !ProjectileID.Sets.MinionShot[projectile.type] && Main.player[projectile.owner].GetModPlayer().battery) + if (!projectile.npcProj && !projectile.trap && (projectile.minion||projectile.sentry) && !ProjectileID.Sets.MinionShot[projectile.type] && !ProjectileID.Sets.SentryShot[projectile.type] && Main.player[projectile.owner].GetModPlayer().battery) { float lightMult = 1f; if (Lighting.UpdateEveryFrame) //The light loks wayyy too bright in retro/trippy