From ef791d2b964566d04e277b2a27b639f7fb77a09b Mon Sep 17 00:00:00 2001 From: Xyk Date: Tue, 22 Aug 2023 12:50:02 -0700 Subject: [PATCH 001/258] Reworked Radiant Ooze, Living Dew, Honey Dew, and Ambrosial Ampoule Radiant Ooze: Effects happen at all times rather than just night, this was supposed to be a thing a while ago, but only the tooltip was changed life regen 4 -> 3 Now has a natural life regen boost of 2 Living Dew: 20% move speed and jump speed, 12% decreased damage, moved to early hardmode Honey Dew: +30 max life You have Honey-like life regen Halves how long you are afflicted with sickness debuffs When you are afflicted with a sickness debuff you quickly heal (1 hp per 12 frames you have a sickness debuff) Ambrosial Ampoule: You emit light +50 max life Your life regen is increased by 5 Your natural life regen is greatly improved (+4) Halves how long you are afflicted with sickness debuffs When you are afflicted with a sickness debuff you quickly heal (1 hp per 10 frames you have a sickness debuff) Moved to post Golem --- CalPlayer/CalamityPlayer.cs | 6 +- CalPlayer/CalamityPlayerLifeRegen.cs | 12 ++- CalPlayer/CalamityPlayerMiscEffects.cs | 79 +++++++++++++++++-- CalamityLists.cs | 16 +++- Items/Accessories/AmbrosialAmpoule.cs | 18 +---- Items/Accessories/HoneyDew.cs | 33 ++------ Items/Accessories/LivingDew.cs | 21 +++-- .../Mods.CalamityMod.Items.Accessories.hjson | 28 ++++--- Utilities/PlayerUtils.cs | 2 +- 9 files changed, 138 insertions(+), 77 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index c4a4bca9b0..0e0d214893 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -470,6 +470,9 @@ namespace CalamityMod.CalPlayer public bool gShell = false; public bool tortShell = false; public bool absorber = false; + public bool hDew = false; + public int HoneyDewHealCooldown = 0; + public int AmbrosialAmpouleHealCooldown = 0; public bool aAmpoule = false; public bool rOoze = false; public bool fBarrier = false; @@ -812,6 +815,7 @@ namespace CalamityMod.CalPlayer public bool fishAlert = false; public bool clamity = false; public bool NOU = false; + public bool absorberAffliction = false; public bool sulphurPoison = false; public bool nightwither = false; public bool eutrophication = false; @@ -1079,7 +1083,6 @@ namespace CalamityMod.CalPlayer public bool witheringWeaponEnchant = false; public bool witheredDebuff = false; - public bool absorberAffliction = false; public int witheredWeaponHoldTime = 0; public int witheringDamageDone = 0; @@ -1572,6 +1575,7 @@ namespace CalamityMod.CalPlayer gShell = false; tortShell = false; absorber = false; + hDew = false; aAmpoule = false; rOoze = false; fBarrier = false; diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index d358a1c42f..8eab5088e1 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -673,9 +673,17 @@ namespace CalamityMod.CalPlayer if (trinketOfChi || chiRegen) Player.lifeRegen += 2; - if (rOoze) - Player.lifeRegen += 4; + if (rOoze && !aAmpoule) + { + Player.lifeRegen += 3; + Player.lifeRegenTime += 2; + } + if (aAmpoule) + { + Player.lifeRegen += 5; + Player.lifeRegenTime += 4; + } if (ursaSergeant) { diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 4e101ef4f9..efd9ad6947 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Security.Cryptography.X509Certificates; using System.Text; using CalamityMod.Balancing; using CalamityMod.Buffs.DamageOverTime; @@ -1577,22 +1578,84 @@ namespace CalamityMod.CalPlayer Player.GetDamage() += 0.1f; } - // Ambrosial Ampoule bonus and other light-granting bonuses + if (hDew && !aAmpoule) + { + if (HoneyDewHealCooldown == 12) + HoneyDewHealCooldown = 0; + Player.statLifeMax2 += 30; + for (int l = 0; l < Player.MaxBuffs; l++) + { + int hasBuff = Player.buffType[l]; + if (Player.buffTime[l] > 2 && CalamityLists.sicknessDebuffList.Contains(hasBuff)) + { + Player.buffTime[l]--; + if (HoneyDewHealCooldown == 0) + { + HoneyDewHealCooldown++; + Player.Heal(1); + } + else + HoneyDewHealCooldown++; + } + } + //Honey Like life regen, does not work if you have honey buff + if (!Player.honey && Player.lifeRegen < 0) + { + Player.lifeRegen += 2; + if (Player.lifeRegen > 0) + Player.lifeRegen = 0; + } + if (!Player.honey) + { + Player.lifeRegenTime += 1; + Player.lifeRegen += 2; + } + } + + // Radiant Ooze light-granting float[] light = new float[3]; - if ((rOoze && !Main.dayTime) || aAmpoule) + if (rOoze && !aAmpoule) { light[0] += 1f; light[1] += 1f; light[2] += 0.6f; } + + // Ambrosial Ampoule bonus and other light-granting bonuses if (aAmpoule) { - Player.endurance += 0.05f; - Player.buffImmune[BuffID.Frozen] = true; - Player.buffImmune[BuffID.Chilled] = true; - Player.buffImmune[BuffID.Frostburn] = true; - Player.buffImmune[BuffID.CursedInferno] = true; - Player.buffImmune[ModContent.BuffType()] = true; + light[0] += 1.3f; + light[1] += 1.3f; + light[2] += 0.8f; + } + if (aAmpoule) + { + if (AmbrosialAmpouleHealCooldown == 10) + AmbrosialAmpouleHealCooldown = 0; + Player.statLifeMax2 += 50; + for (int l = 0; l < Player.MaxBuffs; l++) + { + int hasBuff = Player.buffType[l]; + if (Player.buffTime[l] > 2 && CalamityLists.sicknessDebuffList.Contains(hasBuff)) + { + Player.buffTime[l]--; + if (AmbrosialAmpouleHealCooldown == 0) + { + AmbrosialAmpouleHealCooldown++; + Player.Heal(1); + } + else + AmbrosialAmpouleHealCooldown++; + } + } + if (Player.lifeRegen < 0) + { + Player.lifeRegen += 2; + if (Player.lifeRegen > 0) + Player.lifeRegen = 0; + } + + } if (cFreeze) { diff --git a/CalamityLists.cs b/CalamityLists.cs index 878f01aa30..5e7783f114 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -87,6 +87,7 @@ namespace CalamityMod public static List friendlyBeeList; public static List hardModeNerfList; public static List debuffList; + public static List sicknessDebuffList; public static List alcoholList; public static List spearAutoreuseList; public static List pumpkinMoonBuffList; @@ -1155,7 +1156,20 @@ namespace CalamityMod BuffType(), BuffType(), BuffType(), - BuffType() + BuffType(), + BuffType() + }; + + sicknessDebuffList = new List() + { + BuffID.Poisoned, + BuffID.Venom, + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType() }; alcoholList = new List() diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index e5c3c33fd1..b08f3bcf83 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -12,11 +12,10 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.defense = 6; Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; - Item.rare = ItemRarityID.Pink; + Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.rare = ItemRarityID.Yellow; Item.accessory = true; } @@ -24,23 +23,14 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.aAmpoule = true; - modPlayer.rOoze = true; } public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). - AddIngredient(5). - AddIngredient(10). - AddTile(TileID.MythrilAnvil). - Register(); - - CreateRecipe(). - AddIngredient(). - AddIngredient(). - AddIngredient(5). + AddIngredient(3). AddIngredient(10). AddTile(TileID.MythrilAnvil). Register(); diff --git a/Items/Accessories/HoneyDew.cs b/Items/Accessories/HoneyDew.cs index 055720f5f6..044ec06780 100644 --- a/Items/Accessories/HoneyDew.cs +++ b/Items/Accessories/HoneyDew.cs @@ -21,38 +21,17 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.beeResist = true; - - if (player.ZoneJungle) - { - player.lifeRegen += 1; - player.statDefense += 9; - player.endurance += 0.05f; - } - - player.buffImmune[BuffID.Venom] = true; - player.buffImmune[BuffID.Poisoned] = true; - - if (!player.honey && player.lifeRegen < 0) - { - player.lifeRegen += 2; - if (player.lifeRegen > 0) - player.lifeRegen = 0; - } - - player.lifeRegenTime += 1; - player.lifeRegen += 2; + modPlayer.hDew = true; } public override void AddRecipes() { CreateRecipe(). - AddIngredient(). - AddIngredient(ItemID.BottledHoney, 10). - AddIngredient(2). - AddIngredient(ItemID.ButterflyDust). - AddIngredient(3). - AddTile(TileID.MythrilAnvil). + AddIngredient(ItemID.JungleSpores, 12). + AddIngredient(5). + AddIngredient(3). + AddIngredient(ItemID.BottledHoney, 5). + AddTile(TileID.Anvils). Register(); } } diff --git a/Items/Accessories/LivingDew.cs b/Items/Accessories/LivingDew.cs index 7faeb35edd..9827ad277f 100644 --- a/Items/Accessories/LivingDew.cs +++ b/Items/Accessories/LivingDew.cs @@ -12,28 +12,27 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 24; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; - Item.rare = ItemRarityID.Orange; + Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.rare = ItemRarityID.Pink; Item.accessory = true; } public override void UpdateAccessory(Player player, bool hideVisual) { - if (player.ZoneJungle) - { - player.lifeRegen += 1; - player.statDefense += 5; - player.endurance += 0.05f; - } - player.buffImmune[BuffID.Poisoned] = true; + //20% Movespeed and Jumpspeed, 12% reduced damage + player.moveSpeed += 0.2f; + player.jumpSpeedBoost += 1f; + player.GetDamage() -= 0.12f; } public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.Bezoar). - AddIngredient(ItemID.Vine, 2). + AddIngredient(ItemID.JungleSpores, 12). AddIngredient(5). + AddIngredient(3). + //replace with water essence later + AddIngredient(5). AddTile(TileID.Anvils). Register(); } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 5cd7eda970..7cb4285b7e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -116,8 +116,11 @@ AmbrosialAmpoule: { Tooltip: ''' You emit light - 5% increased damage reduction and increased life regen - Grants immunity to the Frozen, Chilled, Frostburn, Cursed Inferno and Burning Blood debuffs + +50 max life + Your life regen is increased by 5 + Your natural life regen is greatly improved + Halves how long you are afflicted with sickness debuffs + When you are afflicted with a sickness debuff you quickly heal ''' } @@ -934,10 +937,10 @@ HoneyDew: { DisplayName: Honey Dew Tooltip: ''' - 5% increased damage reduction, +9 defense and increased life regen while in the Jungle - Poison and Venom immunity - Honey-like life regen with no speed penalty - Most bee/hornet enemies and projectiles do 75% damage to you + +30 max life + You have Honey-like life regen + Halves how long you are afflicted with sickness debuffs + When you are afflicted with a sickness debuff you quickly heal ''' } @@ -1007,11 +1010,7 @@ LifeJelly: { LivingDew: { DisplayName: Living Dew - Tooltip: - ''' - 5% increased damage reduction, +5 defense, and increased life regen while in the Jungle - Immunity to Poison - ''' + Tooltip: 20% increased movement and jump speed, but 12% reduced damage } LumenousAmulet: { @@ -1311,7 +1310,12 @@ QuiverofNihility: { RadiantOoze: { DisplayName: Radiant Ooze - Tooltip: You emit light and regen life more quickly + Tooltip: + ''' + You produce light + Your life regen is increased by 3 + Your natural life regen is improved + ''' } RaidersTalisman: { diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index 452c1edf1d..3bb1704ce4 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -175,7 +175,7 @@ namespace CalamityMod light += 1; if (mp.aAmpoule) light += 1; - else if (mp.rOoze && !Main.dayTime) // radiant ooze and ampoule/higher don't stack + else if (mp.rOoze) // radiant ooze and ampoule/higher don't stack light += 1; if (mp.aquaticEmblem && underwater) light += 1; From ed1dcdb9d1fcb37e84f346f49a26fb8d406277d4 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Tue, 22 Aug 2023 17:07:24 -0400 Subject: [PATCH 002/258] Reduced how many scythes Death's Ascension fires (forgot to do this yesterday) --- Items/Weapons/Melee/DeathsAscension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/DeathsAscension.cs b/Items/Weapons/Melee/DeathsAscension.cs index c548194692..1dc770a49b 100644 --- a/Items/Weapons/Melee/DeathsAscension.cs +++ b/Items/Weapons/Melee/DeathsAscension.cs @@ -80,7 +80,7 @@ namespace CalamityMod.Items.Weapons.Melee int spreadfactor = 9; if (player.altFunctionUse == 2f) { - for (int index = 0; index < 5; ++index) + for (int index = 0; index < 4; ++index) { float SpeedX = velocity.X + Main.rand.NextFloat(-spreadfactor, spreadfactor + 1); float SpeedY = velocity.Y + Main.rand.NextFloat(-spreadfactor, spreadfactor + 1); From 238eedc551f42a9368b37b5bcea011c0454372d8 Mon Sep 17 00:00:00 2001 From: Xyk Date: Tue, 22 Aug 2023 16:30:36 -0700 Subject: [PATCH 003/258] Added Purity (reworked Astral Arcanum) Crafted with Celestial Jewel and Ambrosial Ampule post Providence Effects: You emit light +80 max life Your life regen is increased by 5 Your natural life regen is greatly improved (by 6) Greatly reduces how long you are afflicted with debuffs (they last 1/3 or the duration) When you are afflicted with a debuff you heal rapidly (1hp every 6 frames you have the debuff) and gain 18 defense Boosts life regen even while under the effects of a damaging debuff (an additional +5 life regen) Press [KEY] to toggle teleportation UI while no bosses are alive (this effect will be removed later) Crown Jewel defense 5 -> 4 Celestial Jewel defense 8 -> 6 both now activate from ALL debuffs, not just DoT --- CalPlayer/CalamityPlayer.cs | 9 +- CalPlayer/CalamityPlayerLifeRegen.cs | 80 ++++++++++-------- CalPlayer/CalamityPlayerMiscEffects.cs | 14 ++- CalamityKeybinds.cs | 6 +- CalamityMod.cs | 4 +- Items/Accessories/AmbrosialAmpoule.cs | 1 - Items/Accessories/AstralArcanum.png | Bin 1102 -> 0 bytes Items/Accessories/CelestialJewel.cs | 2 +- Items/Accessories/CrownJewel.cs | 2 +- .../{AstralArcanum.cs => Purity.cs} | 21 +++-- Items/Accessories/Purity.png | Bin 0 -> 7621 bytes .../Mods.CalamityMod.Items.Accessories.hjson | 21 +++-- .../en-US/Mods.CalamityMod.Keybinds.hjson | 2 +- .../en-US/Mods.CalamityMod.Status.Death.hjson | 4 +- Systems/UIManagementSystem.cs | 2 +- ...alArcanumCircles.png => PurityCircles.png} | Bin UI/{AstralArcanumUI.cs => PurityUI.cs} | 4 +- 17 files changed, 99 insertions(+), 73 deletions(-) delete mode 100644 Items/Accessories/AstralArcanum.png rename Items/Accessories/{AstralArcanum.cs => Purity.cs} (66%) create mode 100644 Items/Accessories/Purity.png rename UI/MiscTextures/{AstralArcanumCircles.png => PurityCircles.png} (100%) rename UI/{AstralArcanumUI.cs => PurityUI.cs} (98%) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 0e0d214893..ca11980325 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -473,6 +473,7 @@ namespace CalamityMod.CalPlayer public bool hDew = false; public int HoneyDewHealCooldown = 0; public int AmbrosialAmpouleHealCooldown = 0; + public int PurityHealCooldown = 0; public bool aAmpoule = false; public bool rOoze = false; public bool fBarrier = false; @@ -521,7 +522,7 @@ namespace CalamityMod.CalPlayer public bool elementalHeart = false; public bool crownJewel = false; public bool celestialJewel = false; - public bool astralArcanum = false; + public bool purity = false; public bool harpyRing = false; public bool angelTreads = false; public bool harpyWingBoost = false; //harpy wings + harpy ring @@ -1614,7 +1615,7 @@ namespace CalamityMod.CalPlayer elementalHeart = false; crownJewel = false; celestialJewel = false; - astralArcanum = false; + purity = false; harpyRing = false; angelTreads = false; harpyWingBoost = false; //harpy wings + harpy ring @@ -2886,9 +2887,9 @@ namespace CalamityMod.CalPlayer if (prismaticSet && !Player.HasCooldown(PrismaticLaser.ID) && prismaticLasers <= 0) prismaticLasers = CalamityUtils.SecondsToFrames(35f); } - if (CalamityKeybinds.AstralArcanumUIHotkey.JustPressed && astralArcanum && !areThereAnyDamnBosses) + if (CalamityKeybinds.PurityUIHotkey.JustPressed && purity && !areThereAnyDamnBosses) { - AstralArcanumUI.Toggle(); + PurityUI.Toggle(); } if (CalamityKeybinds.AstralTeleportHotKey.JustPressed) { diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 8eab5088e1..40844b02bc 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -13,6 +13,8 @@ using Terraria.ModLoader; using Terraria.DataStructures; using CalamityMod.Systems; using System.Linq; +using CalamityMod.Buffs.Pets; +using CalamityMod.Particles; namespace CalamityMod.CalPlayer { @@ -507,58 +509,68 @@ namespace CalamityMod.CalPlayer } } - if (celestialJewel || astralArcanum) + if (celestialJewel || purity) { - bool lesserEffect = false; + Player.lifeRegen += 5; + Player.lifeRegenTime += 6; + if (PurityHealCooldown == 5) + PurityHealCooldown = 0; + Player.statLifeMax2 += 80; for (int l = 0; l < Player.MaxBuffs; l++) { int hasBuff = Player.buffType[l]; - lesserEffect = CalamityLists.alcoholList.Contains(hasBuff); - } - - int defenseBoost = astralArcanum ? 15 : 11; - if (lesserEffect) - { - Player.lifeRegen += astralArcanum ? 2 : 1; - Player.statDefense += defenseBoost; - } - else - { - if (Player.lifeRegen < 0) + if (Player.buffTime[l] > 3 && CalamityLists.debuffList.Contains(hasBuff)) { + Player.buffTime[l] -= 2; + if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; + //add extra regen when effected by a debuff + Player.lifeRegen += 5; + Player.statDefense += 18; - Player.lifeRegen += astralArcanum ? 6 : 4; - Player.statDefense += defenseBoost; + if (PurityHealCooldown == 0) + { + PurityHealCooldown++; + Player.Heal(1); + } + else + PurityHealCooldown++; } - else - Player.lifeRegen += astralArcanum ? 3 : 2; } } - else if (crownJewel) + + if (celestialJewel && !purity) { - bool lesserEffect = false; + Player.lifeRegen += 2; for (int l = 0; l < Player.MaxBuffs; l++) { int hasBuff = Player.buffType[l]; - lesserEffect = CalamityLists.alcoholList.Contains(hasBuff); - } - - if (lesserEffect) - Player.statDefense += 8; - else - { - if (Player.lifeRegen < 0) + if (Player.buffTime[l] > 2 && CalamityLists.debuffList.Contains(hasBuff)) { if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; - - Player.lifeRegen += 4; + //add extra regen when effected by a debuff + Player.lifeRegen += 2; + Player.statDefense += 12; + } + } + } + + if (crownJewel && !celestialJewel && !purity) + { + Player.lifeRegen += 2; + for (int l = 0; l < Player.MaxBuffs; l++) + { + int hasBuff = Player.buffType[l]; + if (Player.buffTime[l] > 2 && CalamityLists.debuffList.Contains(hasBuff)) + { + if (Player.lifeRegenTime < 1800) + Player.lifeRegenTime = 1800; + //add extra regen when effected by a debuff + Player.lifeRegen += 2; Player.statDefense += 8; } - else - Player.lifeRegen += 2; } } @@ -673,13 +685,13 @@ namespace CalamityMod.CalPlayer if (trinketOfChi || chiRegen) Player.lifeRegen += 2; - if (rOoze && !aAmpoule) + if (rOoze && !aAmpoule && !purity) { Player.lifeRegen += 3; Player.lifeRegenTime += 2; } - if (aAmpoule) + if (aAmpoule && !purity) { Player.lifeRegen += 5; Player.lifeRegenTime += 4; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index efd9ad6947..a2b17a7288 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1578,7 +1578,7 @@ namespace CalamityMod.CalPlayer Player.GetDamage() += 0.1f; } - if (hDew && !aAmpoule) + if (hDew && !aAmpoule && !purity) { if (HoneyDewHealCooldown == 12) HoneyDewHealCooldown = 0; @@ -1614,7 +1614,7 @@ namespace CalamityMod.CalPlayer // Radiant Ooze light-granting float[] light = new float[3]; - if (rOoze && !aAmpoule) + if (rOoze && !aAmpoule && !purity) { light[0] += 1f; light[1] += 1f; @@ -1622,13 +1622,19 @@ namespace CalamityMod.CalPlayer } // Ambrosial Ampoule bonus and other light-granting bonuses - if (aAmpoule) + if (aAmpoule && !purity) { light[0] += 1.3f; light[1] += 1.3f; light[2] += 0.8f; } - if (aAmpoule) + if (purity) + { + light[0] += 1.2f; + light[1] += 1.7f; + light[2] += 2.7f; + } + if (aAmpoule && !purity) { if (AmbrosialAmpouleHealCooldown == 10) AmbrosialAmpouleHealCooldown = 0; diff --git a/CalamityKeybinds.cs b/CalamityKeybinds.cs index fc27dabb6c..d498511c85 100644 --- a/CalamityKeybinds.cs +++ b/CalamityKeybinds.cs @@ -10,7 +10,7 @@ namespace CalamityMod public static ModKeybind RageHotKey { get; private set; } public static ModKeybind AdrenalineHotKey { get; private set; } public static ModKeybind AstralTeleportHotKey { get; private set; } - public static ModKeybind AstralArcanumUIHotkey { get; private set; } + public static ModKeybind PurityUIHotkey { get; private set; } public static ModKeybind SandCloakHotkey { get; private set; } public static ModKeybind SpectralVeilHotKey { get; private set; } public static ModKeybind PlaguePackHotKey { get; private set; } @@ -29,7 +29,7 @@ namespace CalamityMod BlazingCoreHotKey = KeybindLoader.RegisterKeybind(Mod, "BlazingCoreParry", "N"); SetBonusHotKey = KeybindLoader.RegisterKeybind(Mod, "ArmorSetBonus", "Y"); AstralTeleportHotKey = KeybindLoader.RegisterKeybind(Mod, "AstralTeleport", "P"); - AstralArcanumUIHotkey = KeybindLoader.RegisterKeybind(Mod, "AstralArcanumUIToggle", "O"); + PurityUIHotkey = KeybindLoader.RegisterKeybind(Mod, "PurityUIToggle", "O"); SandCloakHotkey = KeybindLoader.RegisterKeybind(Mod, "SandCloakEffect", "C"); SpectralVeilHotKey = KeybindLoader.RegisterKeybind(Mod, "SpectralVeilTeleport", "Z"); PlaguePackHotKey = KeybindLoader.RegisterKeybind(Mod, "BoosterDash", "Q"); @@ -48,7 +48,7 @@ namespace CalamityMod BlazingCoreHotKey = null; SetBonusHotKey = null; AstralTeleportHotKey = null; - AstralArcanumUIHotkey = null; + PurityUIHotkey = null; SandCloakHotkey = null; SpectralVeilHotKey = null; PlaguePackHotKey = null; diff --git a/CalamityMod.cs b/CalamityMod.cs index 8f665dadcf..de5e30bd06 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -361,7 +361,7 @@ namespace CalamityMod RipperUI.Load(); StealthUI.Load(); ChargeMeterUI.Load(); - AstralArcanumUI.Load(this); + PurityUI.Load(this); FlightBar.Load(); // TODO -- Is this not possible to place in ModNPC.Load or ModNPC.SetStaticDefaults ? @@ -465,7 +465,7 @@ namespace CalamityMod RipperUI.Unload(); StealthUI.Unload(); ChargeMeterUI.Unload(); - AstralArcanumUI.Unload(); + PurityUI.Unload(); FlightBar.Unload(); if (!Main.dedServ) diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index b08f3bcf83..96716ea559 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -31,7 +31,6 @@ namespace CalamityMod.Items.Accessories AddIngredient(). AddIngredient(). AddIngredient(3). - AddIngredient(10). AddTile(TileID.MythrilAnvil). Register(); } diff --git a/Items/Accessories/AstralArcanum.png b/Items/Accessories/AstralArcanum.png deleted file mode 100644 index 30af2e08c5dbe320586ad3ece4cab1e66b0b4215..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1102 zcmV-U1hM;xP)hC)ke zXiGwUvZc@lVp|_#AVEdZ8e1jO2uW%_*4Ut?)R<_*?Ze#T=1g|7dFg|<{$K8%xo76i z&hMT%XRe1sC2M!PZUGR!_m})kj%{C(x55Ls+R%Si$03POs0O-0u3c!)*Gytml42gE zB=>IsAn*83<{=AS0$^%xE&z`bf2SqpQecRT`KrhQ=H!X?V?AH4>^?(MGv@Wa9wkct`CJm$m-J%7GHfQV$* zy~?&ph$JR{zNE>xl(oo@vG!|fJRx(!@(<0Q2SB-hZEUDdLW)dqh`2~}v|a|_)0zDM zR7q?&2D0;nE!nLke^jhCcKXT*rd96);Jj}ae)bCh@sd@Hov)Ay4v|a_zxA0^Q?_e5 z0F{{izmAadlf2N^Wyr|xB(WeQgp7-z+6zz!34aY%uSlD}R)AT?OF6 zlm!4B+Bu-^ulh!lnHyRTxXFkT?KR3?Q~!>#PabXoU`Biv02_b5t?t|TBsfGQvqy9D z02sXgPZD6!ydvc&yO$j^BB{M39|#$d5D^lRFYMY%Vq#XY$rrL)i8_0`Wxk$2Uo(ED zfBLLwT=k28B9wDMaU=&wt%THCwj|>(E;Z+f_x8S<*6-L?9|Lfs*_<<^wz4I)mb@8l zLnDCtR^UMZt6ygxS@*KprB3~M6M(Sa{&{?T`VM|cw%9lAl^0T?f!-+qywR(7BT=J& z6%sO^<`fa7z!1rJLX^Dnl#IV3(k@l0T_u;kzaN0N;wBHB?pOgp^U*JqpWR>bgT&}l z5`KH|Pl$Gdi;SIDWET_dsN4iV;`}Yu{$Z`jA0O;FquOJyneSL9Y8q6#>p3nGqTmt{ z37JUPWbmQk2Wh|MzECjJ1Gqb2z6{!ABvvFgY!Y^VTaoZ|&woBJo`fj)L_}jU{)8%u zn+)CEkx*o835lY3%=7&xHNK04=>J1xvJ!GGGA=-q8~^|S diff --git a/Items/Accessories/CelestialJewel.cs b/Items/Accessories/CelestialJewel.cs index 565496846d..99be42768f 100644 --- a/Items/Accessories/CelestialJewel.cs +++ b/Items/Accessories/CelestialJewel.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.defense = 8; + Item.defense = 6; Item.width = 26; Item.height = 26; Item.value = CalamityGlobalItem.Rarity7BuyPrice; diff --git a/Items/Accessories/CrownJewel.cs b/Items/Accessories/CrownJewel.cs index 617a17cd63..75b74c27da 100644 --- a/Items/Accessories/CrownJewel.cs +++ b/Items/Accessories/CrownJewel.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.defense = 5; + Item.defense = 4; Item.width = 26; Item.height = 26; Item.value = CalamityGlobalItem.Rarity1BuyPrice; diff --git a/Items/Accessories/AstralArcanum.cs b/Items/Accessories/Purity.cs similarity index 66% rename from Items/Accessories/AstralArcanum.cs rename to Items/Accessories/Purity.cs index c5b266e111..c2a7831067 100644 --- a/Items/Accessories/AstralArcanum.cs +++ b/Items/Accessories/Purity.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables; using CalamityMod.Rarities; using System.Collections.Generic; using Terraria; @@ -9,34 +10,36 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class AstralArcanum : ModItem, ILocalizedModType + [LegacyName("AstralArcanum")] + public class Purity : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.defense = 12; - Item.width = 26; - Item.height = 26; + Item.defense = 8; + Item.width = 24; + Item.height = 24; Item.accessory = true; Item.value = CalamityGlobalItem.Rarity12BuyPrice; Item.rare = ModContent.RarityType(); } - public override void ModifyTooltips(List list) => list.IntegrateHotkey(CalamityKeybinds.AstralArcanumUIHotkey); + public override void ModifyTooltips(List list) => list.IntegrateHotkey(CalamityKeybinds.PurityUIHotkey); public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.astralArcanum = true; - player.buffImmune[ModContent.BuffType()] = true; + modPlayer.purity = true; } public override void AddRecipes() { CreateRecipe(). AddIngredient(). - AddIngredient(3). - AddIngredient(ItemID.LunarBar, 5). + AddIngredient(). + AddIngredient(1). + AddIngredient(8). + AddIngredient(8). AddTile(TileID.LunarCraftingStation). Register(); } diff --git a/Items/Accessories/Purity.png b/Items/Accessories/Purity.png new file mode 100644 index 0000000000000000000000000000000000000000..5bd31a409e2941cef2417e53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Qt3}kuS%> zEzI}8G))|DS0I}@>^a=*l2M*H4;Q*)ryXFyhjBW6gvYvPajYLl*sfSOjZli9wWST` z4=6&}87_o6f?!q}*!72wTkkV!qi$~?1|cifnWS_^fBBB)qs54K@Y&wP{= zNK8#9h(IaqyakYSFzs~S^z^~{+NuMsHSB-JXb)DQq;6~YNoe{6n~f(Po4}mBMKXL6 zA`t}{c`n%9;#Jd!V(DoGIH4D|C4SFT^Z9h#WX&;?1j8B>Lr&5g_6D$13TUtC+r_QaHw$zD#W79hC$4wBA2xiCX%X{)C&%ee; z!2z&V`Mx=lPwy}<^l{eTd};kmU9kXa!N?SAtX%2F>+-PeJHd1oU{nlrqxU}_yH+=A zmy?jPf~71lUV6o+lBYgPBqDc?$vO@IYisd_-jSRnPz!?BzWuV@{D{OvoILCp9|ie( z@DG1rl9?kp1^|nz(ASE@Zz#-i-r5nez`H0k$#`ILPurvDgnkHsZ1jRneC-Re?3zC8 zgD>^>bzL91tGVUsdP2hsN0w~8dr zGjd};!T{j*RmU<%mS^>~3~@a%bfW3ngA)e2XZ>t|Z|k{_BQxy0c>K2mobQsW|K?=> zyfyjt_En8|h|1c`WHPy9(hJXwW(yxl0l>I8Bda~6(^+Cm1BOPD%2v~2vnHJ7c<{6U z-1Xj(%%{iwPG;;w?Zj`Di*}N|Hx4{$xS~2So1@ZXMd$9CR7sZO-!*n;0LDZtvM%Gq zz8UPb2K8dWBFa@Iw#~m7;EFf*lI4>sPj)C@vWL`M-}gHP^R^$K+Mw$Vb1x{~(3zWl z10cr8Ixk^kW1v@rG;T_nO$UIbH7b8)x%8udGx$k>&Wg<6;m4YfWcJ=)^c9O6$gigq nowC!hv9B`Kdq0x%zfb=QEP6Cb#-n9900000NkvXXu0mjfSMX%t literal 0 HcmV?d00001 diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 7cb4285b7e..1841fac2e6 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -240,13 +240,18 @@ AsgardsValor: { ''' } -AstralArcanum: { - DisplayName: Astral Arcanum +Purity: { + DisplayName: Purity Tooltip: ''' - Provides immunity to the astral infection debuff + A once infected crystal, now perfectly purified + You emit light + +80 max life + Your life regen is increased by 5 + Your natural life regen is greatly improved + Greatly reduces how long you are afflicted with debuffs + When you are afflicted with a debuff you heal rapidly and gain 18 defense Boosts life regen even while under the effects of a damaging debuff - While under the effects of a damaging debuff you will gain 15 defense Press [KEY] to toggle teleportation UI while no bosses are alive ''' } @@ -354,8 +359,8 @@ CelestialJewel: { DisplayName: Celestial Jewel Tooltip: ''' - Boosts life regen even while under the effects of a damaging debuff - While under the effects of a damaging debuff you will gain 11 defense + Boosts life regen even while under the effects of a debuff + While under the effects of a debuff you will gain 12 defense Press [KEY] to teleport to a random location while no bosses are alive ''' } @@ -451,8 +456,8 @@ CrownJewel: { DisplayName: Crown Jewel Tooltip: ''' - Boosts life regen even while under the effects of a damaging debuff - While under the effects of a damaging debuff you will gain 8 defense + Boosts life regen even while under the effects of a debuff + While under the effects of a debuff you will gain 8 defense ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Keybinds.hjson b/Localization/en-US/Mods.CalamityMod.Keybinds.hjson index b37414be9f..1dbcda7a73 100644 --- a/Localization/en-US/Mods.CalamityMod.Keybinds.hjson +++ b/Localization/en-US/Mods.CalamityMod.Keybinds.hjson @@ -5,7 +5,7 @@ AngelicAllianceBlessing.DisplayName: Angelic Alliance Blessing BoosterDash.DisplayName: Booster Dash SpectralVeilTeleport.DisplayName: Spectral Veil Teleport SandCloakEffect.DisplayName: Sand Cloak Effect -AstralArcanumUIToggle.DisplayName: Astral Arcanum UI Toggle +PurityUIToggle.DisplayName: Purity UI Toggle AstralTeleport.DisplayName: Astral Teleport ArmorSetBonus.DisplayName: Armor Set Bonus AdrenalineMode.DisplayName: Adrenaline Mode diff --git a/Localization/en-US/Mods.CalamityMod.Status.Death.hjson b/Localization/en-US/Mods.CalamityMod.Status.Death.hjson index 3add54bf13..00e6c26998 100644 --- a/Localization/en-US/Mods.CalamityMod.Status.Death.hjson +++ b/Localization/en-US/Mods.CalamityMod.Status.Death.hjson @@ -1,5 +1,5 @@ AbyssDrown1: "{0} is food for the Wyrms." -AbyssDrown2: "Oxygen failed to reach {0} from the depths of the Abyss." +AbyssDrown2: Oxygen failed to reach {0} from the depths of the Abyss. AbyssDrown3: "{0} faded away, lost in the dark waters." AlcoholBig1: "{0} downed too many shots." AlcoholBig2: "{0}'s liver failed." @@ -30,7 +30,7 @@ Riptide2: "{0} was ripped apart by the current." Dragonfire1: "{0}'s ashes scatter in the wind." Dragonfire2: "{0}'s embers fade away in a warm glow." Dragonfire3: "{0} can no longer feel the heat of the dragonfire." -Dragonfire4: "This was a fight {0} could not win." +Dragonfire4: This was a fight {0} could not win. GodSlayerInferno1: "{0} imploded into nothingness." GodSlayerInferno2: "{0}'s body slipped into oblivion." GodSlayerInferno3: "{0} ceased being a part of our universe." diff --git a/Systems/UIManagementSystem.cs b/Systems/UIManagementSystem.cs index a678d6e40c..f8366ace3d 100644 --- a/Systems/UIManagementSystem.cs +++ b/Systems/UIManagementSystem.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Systems // Astral Arcanum overlay (if open) layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Astral Arcanum UI", delegate () { - AstralArcanumUI.UpdateAndDraw(Main.spriteBatch); + PurityUI.UpdateAndDraw(Main.spriteBatch); return true; }, InterfaceScaleType.None)); diff --git a/UI/MiscTextures/AstralArcanumCircles.png b/UI/MiscTextures/PurityCircles.png similarity index 100% rename from UI/MiscTextures/AstralArcanumCircles.png rename to UI/MiscTextures/PurityCircles.png diff --git a/UI/AstralArcanumUI.cs b/UI/PurityUI.cs similarity index 98% rename from UI/AstralArcanumUI.cs rename to UI/PurityUI.cs index ef5cc8cbfb..c13a151cd9 100644 --- a/UI/AstralArcanumUI.cs +++ b/UI/PurityUI.cs @@ -13,7 +13,7 @@ using Terraria.ModLoader; namespace CalamityMod.UI { // TODO -- This can be made into a ModSystem with simple OnModLoad and Unload hooks. - public static class AstralArcanumUI + public static class PurityUI { enum CircleStyle { @@ -34,7 +34,7 @@ namespace CalamityMod.UI public static void Load(Mod mod) { - CircleTextures = ModContent.Request("CalamityMod/UI/MiscTextures/AstralArcanumCircles", AssetRequestMode.ImmediateLoad).Value; + CircleTextures = ModContent.Request("CalamityMod/UI/MiscTextures/PurityCircles", AssetRequestMode.ImmediateLoad).Value; } public static void Unload() From 95852d69920d6ca775d9a8c137844cbc9f4053b6 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 22 Aug 2023 20:12:38 -0400 Subject: [PATCH 004/258] Changed tooltip for God Slayer armor for 80 damage immunity --- .../en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 2fb71fc5aa..dc5f9c30b2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -331,8 +331,8 @@ GodSlayerHeadMelee: { 20% increased melee speed Enemies are more likely to target you Taking over 80 damage in one hit will cause you to release a swarm of high-damage god killer darts + You completely ignore incoming attacks that would deal less than 80 damage Enemies take a lot of damage when they hit you - An attack that would deal 80 damage or less will have its damage reduced to 1 ''' } From a4aa803699734beb7ffef9570527d75f7c6709db Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 22 Aug 2023 20:19:25 -0400 Subject: [PATCH 005/258] lol nevermind you can godmode rev yharon (Removed God Slayer Melee ignoring hits of 80 or less) --- CalPlayer/CalamityPlayerHitHurt.cs | 6 +++--- .../en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson | 1 - ModSupport/ModCalls.cs | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index b2bef00ec8..16bde18abc 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1407,9 +1407,9 @@ namespace CalamityMod.CalPlayer #region Free and Consumable Dodge Hooks public override bool FreeDodge(Player.HurtInfo info) { - // God Slayer Damage Resistance makes you ignore hits that came in as less than 80. - // Alternatively, if the incoming damage is somehow less than 1 (TML doesn't allow this, but...), the hit is completely ignored. - if (info.Damage < 1 || (godSlayerDamage && info.Damage <= 80)) + // 22AUG2023: Ozzatron: god slayer damage resistance removed due to it being strong enough to godmode rev yharon + // If the incoming damage is somehow less than 1 (TML doesn't allow this, but...), the hit is completely ignored. + if (info.Damage < 1 /* || (godSlayerDamage && info.Damage <= 80) */) return true; // If this hit was marked to be completely ignored due to shield absorption, then ignore it. diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index dc5f9c30b2..62df2dd5c0 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -331,7 +331,6 @@ GodSlayerHeadMelee: { 20% increased melee speed Enemies are more likely to target you Taking over 80 damage in one hit will cause you to release a swarm of high-damage god killer darts - You completely ignore incoming attacks that would deal less than 80 damage Enemies take a lot of damage when they hit you ''' } diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index 1f851c1ff2..7db7b60177 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -849,7 +849,7 @@ namespace CalamityMod case "godslayer_melee": case "godslayer melee": case "god slayer melee": - return mp.godSlayerDamage; // melee helm's unique damage reducing property + return mp.godSlayerDamage; // melee helm case "godslayer_ranged": case "godslayer ranged": case "god slayer ranged": @@ -1264,7 +1264,7 @@ namespace CalamityMod case "godslayer melee": case "god slayer melee": mp.godSlayer = enabled; - mp.godSlayerDamage = enabled; // melee helm's unique damage reducing property + mp.godSlayerDamage = enabled; // melee helm return true; case "godslayer_ranged": case "godslayer ranged": From 77b589c77da4f849e59fc7d381c2bfc92213caa3 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Wed, 23 Aug 2023 02:09:20 +0100 Subject: [PATCH 006/258] Fixed town npcs being non-shimmerable --- NPCs/CalamityGlobalNPC.cs | 4 ++++ NPCs/TownNPCs/AndroombaFriendly.cs | 1 + NPCs/TownNPCs/DILF.cs | 1 + NPCs/TownNPCs/FAP.cs | 1 + NPCs/TownNPCs/SEAHOE.cs | 1 + NPCs/TownNPCs/THIEF.cs | 1 + NPCs/TownNPCs/WITCH.cs | 1 + 7 files changed, 10 insertions(+) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 18ad726471..9899b205ec 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3858,6 +3858,10 @@ namespace CalamityMod.NPCs // Nothing should be immune to Enraged. npc.buffImmune[BuffType()] = false; + + // Town npcs should NOT be immune to shimmer + if (npc.townNPC && NPCID.Sets.ShimmerTownTransform[npc.type]) + npc.buffImmune[BuffID.Shimmer] = false; // Extra Notes: // Shellfish minions set debuff immunity to Shellfish Claps on enemy hits, so most things are technically not immune. diff --git a/NPCs/TownNPCs/AndroombaFriendly.cs b/NPCs/TownNPCs/AndroombaFriendly.cs index 521dabc60e..386817f6b0 100644 --- a/NPCs/TownNPCs/AndroombaFriendly.cs +++ b/NPCs/TownNPCs/AndroombaFriendly.cs @@ -25,6 +25,7 @@ namespace CalamityMod.NPCs.TownNPCs value.Position.Y += 16; value.PortraitPositionYOverride = 36f; NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; + NPCID.Sets.ShimmerTownTransform[Type] = false; } public override void SetDefaults() diff --git a/NPCs/TownNPCs/DILF.cs b/NPCs/TownNPCs/DILF.cs index f44d41bad4..8f117c660f 100644 --- a/NPCs/TownNPCs/DILF.cs +++ b/NPCs/TownNPCs/DILF.cs @@ -33,6 +33,7 @@ namespace CalamityMod.NPCs.TownNPCs NPCID.Sets.AttackType[NPC.type] = 0; NPCID.Sets.AttackTime[NPC.type] = 90; NPCID.Sets.AttackAverageChance[NPC.type] = 30; + NPCID.Sets.ShimmerTownTransform[Type] = false; NPC.Happiness .SetBiomeAffection(AffectionLevel.Like) .SetBiomeAffection(AffectionLevel.Dislike) diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index b6afb97cb6..aa4681aef9 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -33,6 +33,7 @@ namespace CalamityMod.NPCs.TownNPCs NPCID.Sets.AttackType[NPC.type] = 0; NPCID.Sets.AttackTime[NPC.type] = 60; NPCID.Sets.AttackAverageChance[NPC.type] = 15; + NPCID.Sets.ShimmerTownTransform[Type] = false; NPC.Happiness .SetBiomeAffection(AffectionLevel.Love) .SetBiomeAffection(AffectionLevel.Like) diff --git a/NPCs/TownNPCs/SEAHOE.cs b/NPCs/TownNPCs/SEAHOE.cs index 67438e545e..879e554643 100644 --- a/NPCs/TownNPCs/SEAHOE.cs +++ b/NPCs/TownNPCs/SEAHOE.cs @@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.TownNPCs NPCID.Sets.AttackTime[NPC.type] = 90; NPCID.Sets.AttackAverageChance[NPC.type] = 30; NPCID.Sets.HatOffsetY[NPC.type] = 16; + NPCID.Sets.ShimmerTownTransform[Type] = false; NPC.Happiness .SetBiomeAffection(AffectionLevel.Like) .SetBiomeAffection(AffectionLevel.Dislike) diff --git a/NPCs/TownNPCs/THIEF.cs b/NPCs/TownNPCs/THIEF.cs index ca945a7c46..2fe6982cf1 100644 --- a/NPCs/TownNPCs/THIEF.cs +++ b/NPCs/TownNPCs/THIEF.cs @@ -31,6 +31,7 @@ namespace CalamityMod.NPCs.TownNPCs NPCID.Sets.AttackType[NPC.type] = 0; NPCID.Sets.AttackTime[NPC.type] = 60; NPCID.Sets.AttackAverageChance[NPC.type] = 10; + NPCID.Sets.ShimmerTownTransform[Type] = false; NPC.Happiness .SetBiomeAffection(AffectionLevel.Like) .SetBiomeAffection(AffectionLevel.Dislike) diff --git a/NPCs/TownNPCs/WITCH.cs b/NPCs/TownNPCs/WITCH.cs index 9f512e328d..3e360bd064 100644 --- a/NPCs/TownNPCs/WITCH.cs +++ b/NPCs/TownNPCs/WITCH.cs @@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.TownNPCs NPCID.Sets.AttackType[NPC.type] = 1; NPCID.Sets.AttackTime[NPC.type] = 30; NPCID.Sets.AttackAverageChance[NPC.type] = 5; + NPCID.Sets.ShimmerTownTransform[Type] = false; NPC.Happiness .SetBiomeAffection(AffectionLevel.Like) .SetBiomeAffection(AffectionLevel.Dislike) From ed1be6077fc5d6aba45a0e39261d1ad35695e714 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Wed, 23 Aug 2023 00:24:24 -0300 Subject: [PATCH 007/258] Update Mods.CalamityMod.Items.SummonItems.hjson Removed flavor tooltip on Eye of Desolation, rewrote Death Whistle and reworded Exotic Pheronomes --- .../en-US/Mods.CalamityMod.Items.SummonItems.hjson | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson index a7d0e850c6..268e3961c3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson @@ -85,7 +85,7 @@ DeathWhistle: { ''' Summons the Ravager Not consumable - A very old temple whistle + A whistle soaked in blood ''' } @@ -125,7 +125,7 @@ ExoticPheromones: { Summons The Dragonfolly when used in the Jungle Enrages outside the Jungle Not consumable - Specifically formulated to attract draconic hybrids + Specifically formulated to attract draconic offshots ''' } @@ -137,7 +137,6 @@ EyeofDesolation: { Summons the Calamitas Clone when used during nighttime[GFB] Enrages during the day Not consumable - 'Tonight is going to be a horrific night...' ''' GFBInfo: Creates a square arena of blocks, with you at its center } @@ -308,4 +307,4 @@ YharonEgg: { Not consumable An effigy of a Phoenix Dragon egg, used in worship ''' -} \ No newline at end of file +} From 3235c70156bfd0cfe96aca4abbbb7a395f946b85 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:24:28 +0700 Subject: [PATCH 008/258] 20 resprites or so - Angelic Shotgun, Carnage Ray, Eclipse's Fall, Kylie, Polyp Launcher Prismalline, Shattered Sun - Astrophage, Blood Bound, Chi, Chibii Devourer, Danny Devito, Goldie - Dragonfolly Mask - Hyperius Bullet - Living Dew, Magic Scarf and Hat, Statis' Ninja Belt --- Buffs/Pets/AstrophageBuff.png | Bin 622 -> 607 bytes Buffs/Pets/BloodBound.png | Bin 660 -> 690 bytes Buffs/Pets/ChibiiDoGBuff.png | Bin 509 -> 619 bytes Buffs/Pets/DannyDevito.png | Bin 432 -> 518 bytes Buffs/Pets/GoldieBuff.png | Bin 637 -> 669 bytes Buffs/StatBuffs/ChiBuff.png | Bin 551 -> 459 bytes Items/Accessories/LivingDew.cs | 2 +- Items/Accessories/LivingDew.png | Bin 556 -> 477 bytes Items/Accessories/StatisNinjaBelt.cs | 11 +++++++++-- Items/Accessories/StatisNinjaBelt.png | Bin 650 -> 1860 bytes Items/Accessories/Vanity/Popo.cs | 5 ++--- Items/Accessories/Vanity/Popo.png | Bin 514 -> 953 bytes Items/Ammo/HyperiusBullet.cs | 6 +++--- Items/Ammo/HyperiusBullet.png | Bin 376 -> 453 bytes Items/Armor/Vanity/BumblefuckMask.png | Bin 418 -> 417 bytes Items/Armor/Vanity/BumblefuckMask_Head.png | Bin 1237 -> 1145 bytes Items/Weapons/Magic/CarnageRay.cs | 4 ++-- Items/Weapons/Magic/CarnageRay.png | Bin 1114 -> 723 bytes Items/Weapons/Ranged/AngelicShotgun.cs | 4 ++-- Items/Weapons/Ranged/AngelicShotgun.png | Bin 1005 -> 1549 bytes Items/Weapons/Rogue/EclipsesFall.cs | 3 ++- Items/Weapons/Rogue/EclipsesFall.png | Bin 1367 -> 1572 bytes Items/Weapons/Rogue/Kylie.cs | 4 ++-- Items/Weapons/Rogue/Kylie.png | Bin 734 -> 815 bytes Items/Weapons/Rogue/Prismalline.cs | 4 ++-- Items/Weapons/Rogue/Prismalline.png | Bin 1056 -> 1344 bytes Items/Weapons/Rogue/ShatteredSun.cs | 4 ++-- Items/Weapons/Rogue/ShatteredSun.png | Bin 1422 -> 1389 bytes Items/Weapons/Summon/PolypLauncher.cs | 4 ++-- Items/Weapons/Summon/PolypLauncher.png | Bin 560 -> 756 bytes .../en-US/Mods.CalamityMod.Status.Death.hjson | 4 ++-- Projectiles/Rogue/EclipsesFallMain.cs | 3 +-- Projectiles/Rogue/EclipsesSmol.cs | 3 +-- Projectiles/Rogue/EclipsesSmol.png | Bin 897 -> 1443 bytes .../Rogue/ShatteredSunScorchedBlade.cs | 6 +----- .../Rogue/ShatteredSunScorchedBlade.png | Bin 1393 -> 1410 bytes 36 files changed, 34 insertions(+), 33 deletions(-) diff --git a/Buffs/Pets/AstrophageBuff.png b/Buffs/Pets/AstrophageBuff.png index 35a63266183843fb6fc38cecd9cff6caacc27e6b..47802b9748a190f6b7d48240bb4bb597dc65a69d 100644 GIT binary patch delta 583 zcmV-N0=WI|1m6UZBYyw^b5ch_0Itp)=>Px$|4BqaR9J=Omp@2bQ5eO4skI=2jm3Wu z2n}XXvsCDyF=Wc3APOQBanK=?ldB5Spq4FdW|D#V4 zgjTV`%T2t`m%NCm7kZ}m?mhQ>_dA@&z0W}!w>&Q#0I#08sDI@yZUNpFy8!6hiU9Dn zs_jV&pPwZFl^m%4p#u@pxa z_XWnX3T`fR0r#B{sPKjW__g{CP|*Q1%$@tE!&wERO(TH46Ut=Zb*72-opAts0iz?) z`AE@Ui5I@emw(=!1MSImW0KC~`%cR`>NwzXR_3(8+;Ofj>#LW6gueYKp;%PUI-f~j z9S7_(VAr7?)X#t!(GPeHL``VHx91svrTwVRKPIB;xM=E|Bgl z6U;oJBb+F4mP>qf97ts#>41RPd1s^X70hj{08rm*+?qxDwdAP`tPUjyuo)=il)^@aU$Ed$ibc0000EWmrjOO-%qQ0000800000 V0002eQ)WhE;VT1i=n zP@d<>o|U9l)RH|&Rx3qm9?;aJJcLhFr0A*JAB` zjGv}S#$q_n#C&5;0RZnC(n%W4#sHVz7wxzrhWC=6(w}k2I3?bsY zt?IpR4a8YI4BdMm?>r!xqtdGzbt(ok_$A6XD0q}pRGSO2DaKI%-S1sw1!_lU5puYC z)KhSHeosnvi?e|c-Jj0+5f|7~`vDZdU6E(TaOVNJ_oHHovEgOqTA5};@OLIQm|q$) kkM2D{U#Ph%|L5278--4+QJ2qGBme*a07*qoM6N<$f)&IeCIA2c diff --git a/Buffs/Pets/BloodBound.png b/Buffs/Pets/BloodBound.png index e758299f55cc6bb1864883ea744310b1bf3d1c4b..0973fb72588182684a1d3c008fed0b9b9c01c3fa 100644 GIT binary patch delta 667 zcmV;M0%ZM^1+oQ@BYyw^b5ch_0Itp)=>Px%Qb|NXR9J=Om%nQiK@`V7tHv{T`Ee3r zFp3^Qk}d~wT~q`KVrOL`MDTAoOGScWA*M)Y?SVzA1tS(B0fU8b&Dlgl2r2X=hM2^- zms~{7;?3J-*4~Kn>mjNEe;kQz@Y;Unt!;87QoHJ=KvVWY*-H4 zXU|x+ztIF>;>Rigm7ambiS>IN%gy5eJpa7}IH150{gKA}&Z7W;)0avB6vsaTFp16l z{@^jo*6*2LD*)Ws>9pfCq;W?9h3@IpSO*X>|NORUJh}iF$_nFAubDXU^_&NQ9~1zX zVFiekP`I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4sYM-#z&_B6ezInuYX?O?Rj@Qj35S*68k5i z{rnK-Er22gIJhF5sRYiP*CE?Mp#p3|vPakp+$CPpex5JYb;zzjvkyGpEtlCJwBKJ) z&$#^T3d94B2snzuk=P5!g<)HUNe#6(~qVKlr25bqaoeN1r$K!E}+`+%LzKlAx=vzFDR z%`a|3Ka0z*K)eRJYOG}qm_OH@{v9729_#o!{skO1aVsn|N4in~000hUSV?A0O#mtY c000O800000007cclK=n!07*qoM6N<$f=^Dq!~g&Q delta 527 zcmV+q0`UFI1E&O#BYy$zNkl9%(pbnsnk*)#mxOSZ|=N%?tR~P?m71y zZ*+VTfW4jV4~mH7(69$kR?JPK-~k^1nfrIl)4Z73$^B@!Hhjek2oSx5LZ+)J)N zx%?33f|0&wnFq{n;A7{<&`E>^V33n9GzK?@2PX*@N zQ@6%&p}Ycsv5OY~Hd>p4h;j4IXoz8cO3NgyU`tg0`4KC!@Ur% RNdN!<00>D%PDHLkV1fW40yF>s diff --git a/Items/Accessories/LivingDew.cs b/Items/Accessories/LivingDew.cs index 7faeb35edd..786de519e7 100644 --- a/Items/Accessories/LivingDew.cs +++ b/Items/Accessories/LivingDew.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories public override void SetDefaults() { Item.width = 34; - Item.height = 24; + Item.height = 22; Item.value = CalamityGlobalItem.Rarity3BuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; diff --git a/Items/Accessories/LivingDew.png b/Items/Accessories/LivingDew.png index d7cfdff8d2bb7ff52120e528f7d69589b44c2b68..a1689717e974d5364a2a48a6ea4d5c6f127126b1 100644 GIT binary patch delta 464 zcmV;>0Wbcn1lyy!5+VwEC#0coc{-=6WdpVX;MRmu#ouv zrUuNvS3V0RNuYuFdxAj1oJ^ixE@Lf!O{-Q2e3GYr6F`adI-bx zuUUBsY%VN>VdV-u*9;nmpoa|1M@I6@V5tckuY+k=+QAiKFdxIxLV>>~Sl_vaf59{? zMA1uFjFJ^S%?!9h(9;Tf+|FF1iV{*VpQnf128$EYPf2u$5Hg774nZ#$&?`TfJg$-w zy(EUI$5rdXPx#1ZP1_K>z@;j|==^ z1poj532;bRa{vGi!vFvd!vV){sAK>D0l`T`K~zXf&6ZCngJB%U-}!rxgAxZ)v@~R~ z8;!$CBq!~-?6wvMgHBXSk+Jg;M- zOj6!YlHqH!WT5`e%2l);GZK&^E|!RF_q&XQxJs1WS&Mc=9|=dJ^KhKOp^sEQ^d$6y zb+!|Ee<9SJBXSi<_&>qx*22BIv}x}dEZYkq|4WofjknHhhNrhNijIkm~JUaG190000 "Items.Accessories"; + public override void SetStaticDefaults() + { + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 6)); + ItemID.Sets.AnimatesAsSoul[Type] = true; + } + public override void SetDefaults() { - Item.width = 28; - Item.height = 32; + Item.width = 30; + Item.height = 26; Item.value = CalamityGlobalItem.Rarity11BuyPrice; Item.rare = ItemRarityID.Purple; Item.accessory = true; diff --git a/Items/Accessories/StatisNinjaBelt.png b/Items/Accessories/StatisNinjaBelt.png index cbbc61f7396ba09aeec53f69672c225409840144..4427d55ae7d941f55e9b776345c18ee31df9a1fd 100644 GIT binary patch literal 1860 zcmV-K2fO%*P)+V3buY|OQBJ!VuDq)71IwdMq{f9{ZU&q{4`NXBpQiC_#i@! zCI&-jjT(ueSb?HVjSqrJX{Bl+2#uu_DUSeFMa5v)GwUX2-#eZ2oTCvIxeLeB?!GWF8lUXENq1g3(HJm*3g+BQ4W4s;DV6vATdp$> z?f)$65S4>}ZKe_y;TA|?Yz&y2vg+EEX&Hh^->DbUGG8+LHBaZotpPWbZlh7#Hrzxl z9w`2H(!SDl^vvu+Is}$Gl+#c3iNb0suNn}2AGZ#SQM+K|b_etKa@(o?_}Ny6C2)LS z@tw52wstm^9bNZ}(HzTlFr9u}F#ltGpOdjQVDvHi5Pkh|<%hJXcjpEwHfsa#qr>Q8Skqw?_ODk|$LPg8m3^lw!5cXvA(8wUnM3^HzVZUHdGc9dZL`H2?V zls9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BdsIpxqOSZpum2$)1Eb}=~U!#;W}`&sPhCCt*_RJ zw$Okx+9{)*BAa*0XeVQ$4M5f;j5T0gY!!6BR>A}YP@S&@)=8MmdZ)lSdyy}+3QIfv zf7UxiEn$@FovZ_Ul`s#Fd_%rrmt3`1FIV|(mg}SV_0|oERe&$b%yi${DKucu66WO- z#Gq5Ie`=KLpHPRZyhE-SL;W7P>LAJ3IIwT+B&7?^2UE^)pUg_eSm>0w`2Mw1SioMj zQ!DFZFj74R!4&&_Yp2kGy=tesh2r^tZaYNvsTV?^pD`5r4d z+7&BGw2X}b2bC~lwPGwL)@8nC*o@u_@TvM$~{a!4&&_Gd2dy?_<=t yzEwq=fwhy{3#d%4Yp`|}Mi)o>-ER%}KaAc`_MkyQU;qFB07*qoM6N<$f&c*W>5RJo literal 650 zcmV;50(Jd~P)Px%L`g(JR7i=MI>56TcOZatUnLl^x~}u#ojy! z`X?xO@TPd_&5L-p&|1`jAT2@NLqU|35^*bu(UyqP!g`o}+0MGLA`#|$*_qk5`DQ-* z_RX_KTMhx>B-_}m*!ETcHrCfXnxI|r-4?+2+E;BoSN#USwq}?#Lop!{x4QtSxyv5F z#`+on?Ww*${y@4j0l?=^tJ*xQMQ2tc+uD}4033gA3=u1vzX${*vga>r0ju-x0H~A~ z{>k8Q?quZpqB9EwWXvIw-aDX?=sY_Nz{_h_|BIpc>@2xJK*ks%F&XsOLjcqo1b*nh z3BdmOTiSZ*`fUI*cW(Suyy!>9Rs;XDF^`BS{ziT7gLm%(L9Xl=NdizBQ3PI1Jq6(7 z@Cg7OPn`jvwYV+yIiO5cGD;YziUPr=e)ZK4> k79w*>i)&Oj!ZL=)FVDKhuxM#?s{jB107*qoM6N<$f{jTc@&Et; diff --git a/Items/Accessories/Vanity/Popo.cs b/Items/Accessories/Vanity/Popo.cs index 62ff9861f6..dd3101f43c 100644 --- a/Items/Accessories/Vanity/Popo.cs +++ b/Items/Accessories/Vanity/Popo.cs @@ -21,7 +21,6 @@ namespace CalamityMod.Items.Accessories.Vanity public override void SetStaticDefaults() { - if (Main.netMode == NetmodeID.Server) return; @@ -35,8 +34,8 @@ namespace CalamityMod.Items.Accessories.Vanity public override void SetDefaults() { - Item.width = 26; - Item.height = 30; + Item.width = 36; + Item.height = 44; Item.accessory = true; Item.value = CalamityGlobalItem.Rarity5BuyPrice; Item.rare = ItemRarityID.Pink; diff --git a/Items/Accessories/Vanity/Popo.png b/Items/Accessories/Vanity/Popo.png index 5466d48dbed269df588494dedf5130c4b965f0d5..225b3509d32b814d570ae16560e26328213cbb20 100644 GIT binary patch literal 953 zcmV;q14jIbP)Px&SxH1eR9J=8n9WZUK^TXh62Yv<{2=ABuK7Bw|K z3xGWs1>pGf)T=G;D*gdrxAaTpyCW7rrCb6ayYaK7ajv!cLjOyhS8d?#op=DLiBawO z(as(KiDC+X{oT9=5RJtxfb`fMpgF1bB~(6FUg++KTv*;aJg8DX-yiP*U~4mbB~tB2 zNM=;A&Hy;{S5b6Ft+snpa{z2?e$(0sv0Hv#NCDPm}8jaHTE9mz}kp~y`jI6(q!9?Qf#GtZv^^)X2# z#7@5FR9ZX%pv$Ny-W#Hh)TIg?A?v}!BLE7=juy>l=ALR5g_!9f@r+2wq|&M%A-}(? z(w>f}1<-3Jw05gM-UDGIG&Mf!0o+c;09bd9f#5%HMy!!cG9p=hqETBB%el&np(9jX zWs?l3A1bslkJ`D{C;;&G&Fg;};PJ?q*8g-;Mg0}04}gr5^8kA74hzCeNJxl>gjAK> z2zt3M(|e-%q<*uN{xexsZz(O$tL;4qGa-@8EaRx1*d#TXRB0ViqrG@VH0|%@E2#39 z*_>8?9o0|x2#E)TfXsX;t#;Cy)c^#Zk@^eiF0G!lUvty|3rW3P$YuO;sV@p2q3hTd zz#0V)f|;-QGmsfgClf|feLsPx$yh%hsR7i=gFjej#U=gjP!Z_nH!{8Fj(d@IOaDPKeYatFr% z6t=U0366H()@UR8kZWW6U6$@tWav5&AoS=9W2V!G9pq{!zqQUH4}-(@*w7%I4Uw@QI4f zC;;p6XVbxdwrL;vS04>`T;6#HV3`Ty4xdOQis-R^?Uk-yCx%qLIx+TQeAe?k0C4Ek zjK6m|QbdX*6CVcP(s?lh*OKW#yK+-%mVx$Z9v+cq-1BzuPIASK6dUQ*R}NgAdgPLF z-2O9G;Sqhi2@RQ)!OevTlmnH1azCjQ9+Ceh6xlbmpuNfzap|UPI^~_=A1CVFD@bIL zi2W~BtybAZEK>P5caMPo@UD}(y{S8qiX@tt141PF1Xe|-o0kbksQ>@~07*qoM6N<$ Ef@J9FMF0Q* diff --git a/Items/Ammo/HyperiusBullet.cs b/Items/Ammo/HyperiusBullet.cs index 886fa40d67..b9b5329f6b 100644 --- a/Items/Ammo/HyperiusBullet.cs +++ b/Items/Ammo/HyperiusBullet.cs @@ -12,14 +12,14 @@ namespace CalamityMod.Items.Ammo public override void SetStaticDefaults() { Item.ResearchUnlockCount = 99; - } + } public override void SetDefaults() { Item.damage = 18; Item.DamageType = DamageClass.Ranged; - Item.width = 8; - Item.height = 8; + Item.width = 24; + Item.height = 30; Item.maxStack = 9999; Item.consumable = true; Item.knockBack = 1.5f; diff --git a/Items/Ammo/HyperiusBullet.png b/Items/Ammo/HyperiusBullet.png index 10362f6c99c5050d67e7ca137a4a8b107b86c59c..8a8e1ffaa8cfa6ad15b757e817d5a78a21fff0ca 100644 GIT binary patch literal 453 zcmV;$0XqJPP)XmtX#F zioz$`2UNEJmw^n7TBttw#!a3NsBS@!V=j1FoXR30l~5 zcrC~71G-tD#UKZE;SnQV6d(NJ$UsRrusC^`7Y-IznDQ8ZeE{Nn{1`ISV`@iy0XB4ude`@%$AjKtah8*NBqf{Irtt#G+J&g2c?c61}|C5(N`I z13g1y6XxhDprRL^E{-7{-e)K3@*Ogea7Z_lX%H@8IiwSDr|I~l238ggo>|rl(ta3f zu(&H^u<$jiw;{^SrXBX|{B; z9qIMRJZsedxghYuvTf_M-ri=O)6O}qmGkKLWhWXwD+qD^)2j*OFWh6>xomo!m7~fG z8MQ^W2jV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rM`>Ch27wSiYflna!#x?o&Ul2$Bmu zwb-jNM6+M(Y2Z?uD4nN*U==QC!3Q(x=%uq@d50ySK!u4SLON3CE)P)#{CN-Z5*B}o zd4B~*6vISp(Kt0PZDWZs*aiVaP7t;q@Q_$9bS zC|PNS)0G!WoE|C<6cc*f?dR+MCH#3ck)8>EPw>kKa5JQGfS=ECt zwa4>cw%YxzOeYrO&stD*tn5`t?aF^0l?Kvs9M%$O@G`tT(0U__vh#O%t?EGo^rmu|HAIgoONXxWx?n6n9jcOT-@yW zx$5_a=TB1cm)TuDN#%arKjo9>vI|SqEh6rmZJw*P^F{aP>yuUVZR(TW{aF2ej`yTF zHf7&cJoRG#8K1o7c`r=ZXH%&!-~9gW-8D1rEONj0e&+Amh{-n}78ib1-;pun#jS}q zgV+BtTf0wRZ{PH(vmea+Kbfa(f5DHoIjZjt)ye$eWCBJu!v>wZKHlb+FP+^|VyuhF z1Sw%K5W|!}Qa&iv=y-p<7*x9@L|*r*I~FF`%{{KTJr49A(P}oVn&PheG|;>9N|4-E zOePD+paT(D!xt8e%+yq~K?kd!VIcwb7q#N_z$&bMhJ}P6*s|n{IFc9G`#eOd`Jeuu XiQ` "Items.Weapons.Magic"; public override void SetStaticDefaults() { - Item.staff[Item.type] = true; + Item.staff[Item.type] = true; } public override void SetDefaults() @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.damage = 24; Item.DamageType = DamageClass.Magic; Item.mana = 10; - Item.width = 46; + Item.width = 44; Item.height = 46; Item.useTime = 20; Item.useAnimation = 20; diff --git a/Items/Weapons/Magic/CarnageRay.png b/Items/Weapons/Magic/CarnageRay.png index a158f1ae28de001918123d5377930041c4af65f4..774767edc3d624e53cedbe25b6d19fa0ae121687 100644 GIT binary patch literal 723 zcmV;^0xbQBP)f_c9)fVAh5Qc$AHsX?( zCj?;-cZ{%hg2N%}*FW4Grn-2Ppjw+cr+One^4tYpc(+wtaGbCnpAA3;UWRAk=?Rg~Qs^3n!BYYIwi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)Ev8axUb{=Y0z9ZCflnVw!0F=um2Of=9p`iX<5L(jbn|z1TC)QdN6G=3a z=TiZFt!&<@0H%sJfOQ<@nkFP+Wanlb@XquPjolO(`+0AmAYhAtYqN-8}&07Z+T~^hWy> zKz42xaLrRKX}M%X{v%|sWM^n&?b-#vLVn%>*fqEpfInug1Kwm-TfQb_L>tL3o4fU% zOUQ(~d-O?iaRFF6WJJCr6o{8}rp|=S6QpSJuRj6k32#vV3;B6q?U51rkI<(3)!JUG z_T<|i0LZ=kB2eF>N%UK*WJLZWBscQU^D6rMB0B+5v1In+a07*qoM6N<$f;~zPvH$=8 diff --git a/Items/Weapons/Ranged/AngelicShotgun.cs b/Items/Weapons/Ranged/AngelicShotgun.cs index 0b92dcfb1a..a8914c159f 100644 --- a/Items/Weapons/Ranged/AngelicShotgun.cs +++ b/Items/Weapons/Ranged/AngelicShotgun.cs @@ -25,8 +25,8 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.autoReuse = true; - Item.width = 44; - Item.height = 7; + Item.width = 86; + Item.height = 38; Item.useTime = 24; Item.useAnimation = 24; diff --git a/Items/Weapons/Ranged/AngelicShotgun.png b/Items/Weapons/Ranged/AngelicShotgun.png index 89731867c76415d9dc98651b6f7bf09352365a9e..76155f3ca1b35ed6f29ff84c1df268b895ec262c 100644 GIT binary patch literal 1549 zcmV+o2J-odP)Px)tw}^dRA_2RUF4ZS05!1P$cmIgAtbJe> ztCu3}`o7e#dp&@ms=#0`sI0$f1I)`%1Rt)brFZ#K{Y?OZv5MI0mf;%FnTcH%K=swz z9Pxc3pIDDHXktZco=XGZ@U~jbE=0#h1uOtslzs8!b^yxjRF}bIb^TCXYkgupQdnZm zD4?TDt(i5=?GZJcnb>86L#U{{E?@%$V{a*6P&Y2KPO>Qq3TrSdV07%wJ&xq%VI%t2n*20D#O1u@*r2HfWdGo#FBi%+aa>O<_s-CH$>*7Lu*UMT;R5F{FiV3XKaHf#jo!kKdb zte>f(kq?e3k|$1??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Lqs0Bkv20l=4crhcmQx*7l6S@V3?eE<$snEtEEwgd2MdIErl-FpCNjD5`6 z?l+&G>3-jXelLi~=#a=5ePd)4fZ0cn0dOkKj{e@i&$C|0yuRKy0Nn1pYx30jR6l1;GQFdhT1|V}Tp6B^ty`Ty{SvRteAG9%>g!@| z!}^mI1+_bsxIUkaj15{J866S@=h4ZoD*#m29CNkXv0EsH+lJfNSx5P-nMZGbVP_o= zI`0Jfpg~WF&CEB#7i$hy7ToEmVIwIeU%C+A@PE<@bCb1Tq9dQLH1 z$aJUDI~Lk+e=ueFX`6a}_Yjbs2VZ_++MD7nKz5cQ`jaNs>!jo#e<MablQ zEcQPge)rX3ts^ozB(jWFtQJF0uK@*Q7o(-Xe0HIj=$BtE7b2rWA}f!U!6K-E-!?S@ z&~(uI&ci=XULHh7hs2`A%b;)dC`LyVmB0P;uaOR#cHsa301|XXSad~LNk%$Pa%p95 bbYXO9Z*BlFgjnqF00000NkvXXu0mjf(V^(); Item.useStyle = ItemUseStyleID.Swing; - Item.width = Item.height = 72; + Item.width = 82; + Item.height = 88; Item.noMelee = true; Item.noUseGraphic = true; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/EclipsesFall.png b/Items/Weapons/Rogue/EclipsesFall.png index 358cd43775bd79af633f21f0ae95cc3627e64ae6..2bd8a0a67c534be208ec47230d2dd3eebed0cdd8 100644 GIT binary patch literal 1572 zcmV+<2HW|GP)R7?}vH0htI?NGt^4 zhqHG?WoCXs$Y_j=0Bu0lWMT-oC-;p>k8izmS=tM?{+0IH!VP1j4{HN5lYtsA)bYmr zhKWC)yY6^tn26la+DHR3!o2AnqfW*#Iqv7m)WK)GJ+*d!DaY@By;oY8`1D6tI+AbT z7->Le+PIK7K%Sgy+qBd_&A>{Wm}CYAmXQWzDun`ar(Pcu8;K3X=4o*l=!pxpXozfs zUHvg28!{1ffE<5hjniX?crbKjFB1uy9)0`?(fe+8R@#BHkp^TYBXwbwOarg2GZeb7 z#DhuR7$L5=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J44u)X{EMpMkLn0Pbn13?ZLAeIri*Ff?|m;2*X7CGE&< zyg?39t73O$PzZT*l*}`a8{3mVoCe^**M2tkZ?6+$-g@l1v0t-AdHcY<#>vfW6Hl0Bqi1 zRyUh`^%6&Ha};logVd_nXimP_S!1FqrP-sIqiEJ>b<#dYtC8-{RPGD_TIx0eu&s7o z0C4p9-?1hoRWHRG9-G`GOq7EI}X6-XQaQG3dO+h zFa287xV%9QQa4D=+14N#apl@=quOXy`|-W+065wy`+pg&0bqC2qsIL{>DKHj&G@`Q z4wlWJm^J1Aptf4RaW!Ypj>hP)h@|Eyd2@0ULbIo-MmlQk*o(y*_5MtaeIRtq*lf9D~F~5nk{NTP4=x0000IbVXQnMOaBjI!|(GWo~p~ ZbZKvH05ODE?C$^o002ovPDHLkV1gNdqn-c& diff --git a/Items/Weapons/Rogue/Kylie.cs b/Items/Weapons/Rogue/Kylie.cs index e5f90f149f..8c373f21d4 100644 --- a/Items/Weapons/Rogue/Kylie.cs +++ b/Items/Weapons/Rogue/Kylie.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Items.Weapons.Rogue Item.rare = ItemRarityID.Orange; Item.useTime = 25; Item.useAnimation = 25; - Item.width = 32; - Item.height = 46; + Item.width = 34; + Item.height = 50; Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; Item.shootSpeed = Speed; diff --git a/Items/Weapons/Rogue/Kylie.png b/Items/Weapons/Rogue/Kylie.png index f29f779e13884cfa22520c3381e144f7211c0621..aa9b40e8c4a7fc01600c4d78031c5f4c4b8ecb09 100644 GIT binary patch literal 815 zcmV+~1JL}5P)Px%=}AOER9J=On9olWQ4q&J3s|e$QV=LciwTOxXpn!vA2E9JBBCG~D7BVKTk8fWvFl+N;8iN6w7A0eQs%wc&AbmYZ|6OWD(n9F z9srj1`v8c~q}=uMc9U%ZI2p%yuCCgFR4S`lFH#bAYX|@*m30Av-JOPCba2G58v}j| zJVd0S+AmZRCoT%1M0C=aKX*mO3o}Uo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)9zf10Fwi)Qo3A zZUco#t$lvx2ms!EIY}JvfB*SQ?fm^uU$EPNRO{`21W;dhwb!L1rn9%#fLBuc|5T+2 zK(o~Y`uF|cvX_2hp8=_6s}}(@Ze9l9yn7gc2b~ar7kh00wi}Ou{_LgfF_4vg@T3!e zs&Um-wHr>J@Zy=uKstM43=I5MECzr?_ENX+zDgX+zQ1sK(E+&sv}>sWP4*GMjm`ME zznbiTo7e8Bd8yxkX>#)o2>FUT2f(w=`$YD6GdJHr7P(};v-=f*`bG5~uysrA^FcE= z*MN|F#aUt!EqVIgu2xaxerq^#a|~pW*VoUY$i8XG^JZ?Gfx@`R%`q@8a&ru%Py8=( zV+=T6sjB@e>tB-_W8gQbe-D<V=-F@#v` Q?*IS*07*qoM6N<$f|;U9fdBvi diff --git a/Items/Weapons/Rogue/Prismalline.cs b/Items/Weapons/Rogue/Prismalline.cs index 7eb87cb0a8..a5a8a8f6e7 100644 --- a/Items/Weapons/Rogue/Prismalline.cs +++ b/Items/Weapons/Rogue/Prismalline.cs @@ -13,7 +13,8 @@ namespace CalamityMod.Items.Weapons.Rogue { public override void SetDefaults() { - Item.width = 46; + Item.width = 54; + Item.height = 54; Item.damage = 36; Item.noMelee = true; Item.noUseGraphic = true; @@ -22,7 +23,6 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.height = 46; Item.value = CalamityGlobalItem.Rarity5BuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Rogue/Prismalline.png b/Items/Weapons/Rogue/Prismalline.png index ebc98156a4e6f8503f01292bbd400b003e9067f8..00e9231d340f045cbe3dbb3dac042e422475998e 100644 GIT binary patch literal 1344 zcmV-G1;6@Px(`bk7VRA_(P2reRUFNp}<{x}@yyxtcs z3X(5;|6%9hyyu*IKKFUf^PKx?TqlaQKd!XH5|RNJ^|l9s^}k{Emozuh=6V5BNsA<<5CDk*~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`woWD)-D8r`{#c6`k7ph&^RaiXCm!FT^$`%lew$Sga(wA`(}m&oj`JzBq87NLAotI-ZhBJDybHqJSZ z7HWWT5Ug(hp`i&|cn1mQd5E+N@z_4vY$Y>GJG)YC;%A$DYl7=OX)=VR2{+skujl>i+OVR(Uyr~aZxjjmtL((#4yO`m7RI+ z{Rl+Hgt#-<1_>NjN)?GHlgrRL#_bO~Qra-tQzIPk(1mb7Rm^z`LBNfmc2(yYLBjs~ znZcM4C!2Sk-}rs0n7u$#U(6OI(<&0TMjR1j+J)|9({w{Z_r82PNnY^$R&aV)5P`Br z*kDYE3u1jPRiMAemY@1wC!8RV$hc5@Ux8|MvwwiJ7oJVmMWRd{HW(9%-MB|YS56(* zOQc;0k6lBT#)#y}@=IENS(y+0(&m>y&(6k#4m$+O)EN^(2;ijNP7v4`v!so>f)aFBke+nb)++`mq@!1f2HJa(?NI6u-h%;LilRMze|NZt2x&QzG07*qoM6N<$f&c*EziGYz literal 560 zcmV-00?+-4P)e}AU4`47FL3KgVdIi%XkAj58z!!M);9sl3+}B zW+HsN&Fswg{_opOaA6_S-}TOB7*(0MN z(>z{h2S|;5rU1U*PD3o~1N0fMG?d(D+B$&7lrfc*em(7nW;r)?ZVf17%9u9Ii~=;p^Ve7S$f|-fci~5 z0S7du8W#g#1R&LP^eN!X6DSVQ?Q}x3JPIli1?aPhP!n_h&v&3{9~pR))wmjfBtRqwWZk}O z%BUK^?bdo|mR~kt*^+DAG>_NS06x!GL#$%S(+Ly@Sll}fv6e0#f6Jp->vTdafZ25J z0E#6y(sTmF02nVn_d={<#%c2E0N(y;6DSTKX>nuEer^DK3jhJkt_+I "Projectiles.Rogue"; public override void SetDefaults() { - Projectile.width = 20; - Projectile.height = 20; + Projectile.width = Projectile.height = 32; Projectile.friendly = true; Projectile.tileCollide = false; Projectile.ignoreWater = true; diff --git a/Projectiles/Rogue/EclipsesSmol.png b/Projectiles/Rogue/EclipsesSmol.png index 6dd2b7914ffa648f20828d944a0047474e274c6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_K&Uk`r?BCL~HHh0f>~Bc>pK6&7Jc5n4OtOp(R$Z$C?}N zvDy){a3oV{%X69MlD^m0Hy^jg$x{tc+e?l2MFX#U=9fMI-amdS@Vgg@O{W}kRwm#^ zNo5Wqxcjj2j-sDDq^K#m(NpJ3FMn_dfQk~cu`Zlv@0(I+i4`0b^XauGj91(&-OVvw zPq}SHLq$Q!-M^yMRUSZjsmX{YMn>Hn(t{8ayKavyubT(J+1Qx1Vj?Ih=ew=mBzf1Z({!C8u|k#4 zW0G6(x`ahS5|O&f+dY7hlzCEpdDP^n$`##8yGU%dl+Tm$nD)6GFIn%dMOc}MD(oV$ z*^=wY%DJYUxH>-N+m*#N)c{!Pl{ From dfc0b4392e270467efd74809846dfd223edbb949 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Wed, 23 Aug 2023 00:28:47 -0300 Subject: [PATCH 009/258] Fixed grammatical error on Exotic Pheromones --- Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson index 268e3961c3..d28d42b265 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson @@ -125,7 +125,7 @@ ExoticPheromones: { Summons The Dragonfolly when used in the Jungle Enrages outside the Jungle Not consumable - Specifically formulated to attract draconic offshots + Specifically formulated to attract draconic offshoots ''' } From 6a3fefb391401fff865f4bf3291eb796c25b0888 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:38:19 +0700 Subject: [PATCH 010/258] Death messages fix --- CalPlayer/CalamityPlayerHitHurt.cs | 28 +++++++++---------- Items/Potions/AstralInjection.cs | 2 +- .../Mods.CalamityMod.Items.SummonItems.hjson | 2 +- NPCs/TownNPCs/FAP.cs | 4 +-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 16bde18abc..f9e944fb10 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -330,7 +330,7 @@ namespace CalamityMod.CalPlayer if (vHex) { // Unique messages appear half the time during each individual stage of SCal's fight - string vHexKeyToUse = "Status.Death.VulnerabilityHex"; + string vHexKeyToUse = "Status.Death.VulnerabilityHex" + Main.rand.Next(1, 3 + 1); if (Main.rand.NextBool() && CalamityGlobalNPC.SCal != -1) { if (CalamityGlobalNPC.SCalGrief != -1) @@ -349,22 +349,22 @@ namespace CalamityMod.CalPlayer } if (ZoneCalamity && Player.lavaWet) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.SearingLava").Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.SearingLava" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } if (gsInferno) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.GodSlayerInferno").Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.GodSlayerInferno" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } if (sulphurPoison) { - if (Main.rand.NextBool(2)) - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.SulphuricPoisoning").Format(Player.name)); + if (!Main.rand.NextBool(4)) // 75% custom + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.SulphuricPoisoning" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); else - damageSource = PlayerDeathReason.ByOther(9); + damageSource = PlayerDeathReason.ByOther(9); // 25% generic Poisoned death text } if (dragonFire) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Dragonfire").Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Dragonfire" + Main.rand.Next(1, 4 + 1)).Format(Player.name)); } if (miracleBlight) { @@ -376,7 +376,7 @@ namespace CalamityMod.CalPlayer } if (hFlames || banishingFire) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.HolyFlames").Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.HolyFlames" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } if (shadowflame) { @@ -384,27 +384,27 @@ namespace CalamityMod.CalPlayer } if (bBlood) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BurningBlood").Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BurningBlood" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } if (cDepth) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CrushDepth" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CrushDepth" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } if (rTide) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Riptide").Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Riptide" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } if (bFlames || weakBrimstoneFlames) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BrimstoneFlames").Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BrimstoneFlames" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } if (pFlames) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Plague" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Plague" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } if (astralInfection) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AstralInfection" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AstralInfection" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } if (nightwither) { diff --git a/Items/Potions/AstralInjection.cs b/Items/Potions/AstralInjection.cs index 27826b6014..fd3aed69f5 100644 --- a/Items/Potions/AstralInjection.cs +++ b/Items/Potions/AstralInjection.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Potions } if (player.statLife <= 0) { - player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AstralInjection").Format(player.name)), 1000.0, 0, false); + player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AstralInjection" + Main.rand.Next(1, 2 + 1)).Format(player.name)), 1000.0, 0, false); } } diff --git a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson index 268e3961c3..fbb2d24f22 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson @@ -307,4 +307,4 @@ YharonEgg: { Not consumable An effigy of a Phoenix Dragon egg, used in worship ''' -} +} \ No newline at end of file diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index aa4681aef9..565dde9f1a 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -110,7 +110,7 @@ namespace CalamityMod.NPCs.TownNPCs Player player = Main.player[Main.myPlayer]; if (Main.zenithWorld) { - player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CirrusSlap").Format(player.name)), player.statLife / 2, -player.direction, false, false, -1, false); + player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CirrusSlap" + Main.rand.Next(1, 2 + 1)).Format(player.name)), player.statLife / 2, -player.direction, false, false, -1, false); SoundEngine.PlaySound(CnidarianJellyfishOnTheString.SlapSound, player.Center); } @@ -128,7 +128,7 @@ namespace CalamityMod.NPCs.TownNPCs { if (Main.rand.NextBool(4)) { - player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CirrusSlap").Format(player.name)), player.statLife / 2, -player.direction, false, false, -1, false); ; + player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CirrusSlap" + Main.rand.Next(1, 2 + 1)).Format(player.name)), player.statLife / 2, -player.direction, false, false, -1, false); ; SoundEngine.PlaySound(CnidarianJellyfishOnTheString.SlapSound, player.Center); return this.GetLocalizedValue("Chat.BloodMoonSlap"); } From 5cb04ad986a32ca1312b21f125c67b2c8fabc6af Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:40:41 +0700 Subject: [PATCH 011/258] miracle blight also has 3 keys now --- CalPlayer/CalamityPlayerHitHurt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index f9e944fb10..282f17e40b 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -368,7 +368,7 @@ namespace CalamityMod.CalPlayer } if (miracleBlight) { - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.MiracleBlight" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.MiracleBlight" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } if (hInferno) { From e6eed0f6e6c5ec0fe9f3455f29807ddbd4e59606 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:43:02 +0700 Subject: [PATCH 012/258] AbyssDrown3 --- CalPlayer/CalamityPlayerHitHurt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 282f17e40b..106de27fb0 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -2542,7 +2542,7 @@ namespace CalamityMod.CalPlayer if (abyssDeath) { SoundEngine.PlaySound(DrownSound, Player.Center); - damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AbyssDrown" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AbyssDrown" + Main.rand.Next(1, 3 + 1)).Format(Player.name)); } else if (CalamityWorld.armageddon && areThereAnyDamnBosses) { From ad86dcab98d470b5bea6d87bfb7499c1b3f047d2 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Wed, 23 Aug 2023 11:06:17 +0700 Subject: [PATCH 013/258] chi buff resprite 2: the sequel --- Buffs/StatBuffs/ChiRegenBuff.cs | 1 + Buffs/StatBuffs/ChiRegenBuff.png | Bin 551 -> 0 bytes 2 files changed, 1 insertion(+) delete mode 100644 Buffs/StatBuffs/ChiRegenBuff.png diff --git a/Buffs/StatBuffs/ChiRegenBuff.cs b/Buffs/StatBuffs/ChiRegenBuff.cs index cfbc1a5d41..6f00856a7a 100644 --- a/Buffs/StatBuffs/ChiRegenBuff.cs +++ b/Buffs/StatBuffs/ChiRegenBuff.cs @@ -5,6 +5,7 @@ namespace CalamityMod.Buffs.StatBuffs { public class ChiRegenBuff : ModBuff { + public override string Texture => "CalamityMod/Buffs/StatBuffs/ChiBuff"; public override void SetStaticDefaults() { Main.buffNoTimeDisplay[Type] = true; diff --git a/Buffs/StatBuffs/ChiRegenBuff.png b/Buffs/StatBuffs/ChiRegenBuff.png deleted file mode 100644 index b74e1690aff6b83eeb9aabadec005f0245d1e7b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 551 zcmV+?0@(eDP)9%(pbns znk*)#mxOSZ|=N%?tR~P?m71yZ*+VTfW4jV4~mH7(69$kR?JPK-~k^1 znfrIl)4Z73$^B@!Hr`>4e>*=}NBA_{ORhk<{1E1Xk-m0oJk{!1V__oDifmm+A1S?$ zI|_&oh51UqVJu&~IN<+j;iZ#2@U7JRsZnJA?8=(wjshB*`CxZj-28X_0UX0rgKpI$9Ht;GJBZRd^xI*v7J{aOI#F${yvO8|~W z!suu+$KB6A0`X@<_DRo~u{#P#yy{HlC#nFLJ~w$H2mgj==;?sl^SE9GpIWX z6oN3E4H+M2&F%Sh2L1_m6wtnpgD_78=G#-Z#&Ds$0)VlL7XUU|qV3(k4Rt<{cwT-p z@xRbh3BayeNSGIbuAJOaKp>Tj>9o&tH+R-LaTSt#3J4@)X(e(u zzgt*WL|fO<^GdG3S6{Gx`EI??J}Xoe>-a8YpYC+6FVMH4u3mK|^ViO3s@3j{1SMC% pOAZYKkU2akYIhv;_Pfy?e**3yq{F=suSoy^002ovPDHLkV1ffP1Bw6u From 934be072806e32f81a2d82803537a07ca74acb80 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Wed, 23 Aug 2023 01:37:26 -0300 Subject: [PATCH 014/258] New Rune of Kos flavor text --- .../en-US/Mods.CalamityMod.Items.SummonItems.hjson | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson index 338014f523..ef43f00306 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson @@ -234,12 +234,12 @@ RuneofKos: { DisplayName: Rune of Kos Tooltip: ''' - Contains the power hunted relentlessly by the sentinels of the cosmic devourer + An ornate sigil of the Profaned Flame + Hatred yet burns upon its brow [SPAWN] Not consumable - A relic of the profaned flame ''' - SpawnInfo: When used in certain areas of the world, it will unleash them + SpawnInfo: Such power attracts otherworldly beings SpawnVoid: ''' Summons the Ceaseless Void @@ -307,4 +307,4 @@ YharonEgg: { Not consumable An effigy of a Phoenix Dragon egg, used in worship ''' -} \ No newline at end of file +} From 4311d0920cd7fab545fc3ec86c5eb745fce26873 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 23 Aug 2023 11:36:38 -0400 Subject: [PATCH 015/258] Terrarian and Prismatic Breaker --- Items/CalamityGlobalItemTweaks.cs | 2 +- Items/Weapons/Melee/PrismaticBreaker.cs | 4 ++-- Projectiles/Melee/PrismaticBeam.cs | 4 ++-- Projectiles/Melee/PrismaticWave.cs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index c3e9b09f5d..f9eedd1e22 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -221,7 +221,7 @@ namespace CalamityMod.Items { ItemID.TendonBow, Do(PointBlank, DamageExact(17), AutoReuse) }, // Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously, // Terrarian is extremely overpowered and requires a heavy nerf. - { ItemID.Terrarian, Do(AutoReuse, DamageExact(106)) }, + { ItemID.Terrarian, Do(AutoReuse, DamageExact(94)) }, { ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) }, { ItemID.TheUndertaker, Do(PointBlank, AutoReuse, DamageExact(15)) }, { ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index fbc69b1a7a..76a3836524 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { - Item.damage = 662; + Item.damage = 699; Item.useStyle = ItemUseStyleID.Swing; Item.useTime = Item.useAnimation = 13; Item.useTurn = true; @@ -84,7 +84,7 @@ namespace CalamityMod.Items.Weapons.Melee } else { - Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 0.5f, velocity.Y * 0.5f, type, damage, knockback, player.whoAmI); + Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 0.5f, velocity.Y * 0.5f, type, (int)(damage * 1.3f), knockback, player.whoAmI); } return false; } diff --git a/Projectiles/Melee/PrismaticBeam.cs b/Projectiles/Melee/PrismaticBeam.cs index 0ba27991b6..9eb22b1903 100644 --- a/Projectiles/Melee/PrismaticBeam.cs +++ b/Projectiles/Melee/PrismaticBeam.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Melee public Player Owner => Main.player[Projectile.owner]; public override Color LaserOverlayColor => CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly / ColorSet.Length % 1f, ColorSet); public override Color LightCastColor => LaserOverlayColor; - public override float Lifetime => 300f; + public override float Lifetime => 1500f; public override float MaxScale => 1.5f; public override float MaxLaserLength => 2200f; public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.penetrate = -1; Projectile.tileCollide = false; Projectile.hide = true; - Projectile.timeLeft = 300; + Projectile.timeLeft = 1500; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 10; } diff --git a/Projectiles/Melee/PrismaticWave.cs b/Projectiles/Melee/PrismaticWave.cs index afb69ab230..1f13f27b8d 100644 --- a/Projectiles/Melee/PrismaticWave.cs +++ b/Projectiles/Melee/PrismaticWave.cs @@ -52,11 +52,11 @@ namespace CalamityMod.Projectiles.Melee Projectile.ignoreWater = true; Projectile.DamageType = DamageClass.Ranged; Projectile.DamageType = DamageClass.Melee; - Projectile.penetrate = 3; + Projectile.penetrate = 2; Projectile.timeLeft = 360; Projectile.tileCollide = false; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; + Projectile.localNPCHitCooldown = 20; } public override void SendExtraAI(BinaryWriter writer) From f8097ac82b7371bf9c89f28ca42fdda20a59517c Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 23 Aug 2023 14:46:12 -0400 Subject: [PATCH 016/258] Death's Ascension scythe damage dies --- Items/Weapons/Melee/DeathsAscension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/DeathsAscension.cs b/Items/Weapons/Melee/DeathsAscension.cs index 1dc770a49b..fc1ec45792 100644 --- a/Items/Weapons/Melee/DeathsAscension.cs +++ b/Items/Weapons/Melee/DeathsAscension.cs @@ -84,7 +84,7 @@ namespace CalamityMod.Items.Weapons.Melee { float SpeedX = velocity.X + Main.rand.NextFloat(-spreadfactor, spreadfactor + 1); float SpeedY = velocity.Y + Main.rand.NextFloat(-spreadfactor, spreadfactor + 1); - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.15f), knockback, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.1f), knockback, player.whoAmI, 0f, 0f); } } else From f9a44f3803826699b20933fe0af3140eb841ed79 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 23 Aug 2023 17:06:48 -0400 Subject: [PATCH 017/258] How is death still ascending --- Items/Weapons/Melee/DeathsAscension.cs | 4 ++-- Projectiles/Melee/DeathsAscensionProjectile.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Melee/DeathsAscension.cs b/Items/Weapons/Melee/DeathsAscension.cs index fc1ec45792..cef1352042 100644 --- a/Items/Weapons/Melee/DeathsAscension.cs +++ b/Items/Weapons/Melee/DeathsAscension.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.damage = 1200; Item.knockBack = 9f; - Item.useTime = Item.useAnimation = 18; + Item.useTime = Item.useAnimation = 24; Item.DamageType = DamageClass.Melee; Item.noMelee = true; Item.channel = true; @@ -84,7 +84,7 @@ namespace CalamityMod.Items.Weapons.Melee { float SpeedX = velocity.X + Main.rand.NextFloat(-spreadfactor, spreadfactor + 1); float SpeedY = velocity.Y + Main.rand.NextFloat(-spreadfactor, spreadfactor + 1); - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.1f), knockback, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.125f), knockback, player.whoAmI, 0f, 0f); } } else diff --git a/Projectiles/Melee/DeathsAscensionProjectile.cs b/Projectiles/Melee/DeathsAscensionProjectile.cs index 81ceaa3911..962f5dcddd 100644 --- a/Projectiles/Melee/DeathsAscensionProjectile.cs +++ b/Projectiles/Melee/DeathsAscensionProjectile.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Melee Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 173, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); } - CalamityUtils.HomeInOnNPC(Projectile, true, 900f, 12f, 20f); + CalamityUtils.HomeInOnNPC(Projectile, true, 900f, 18f, 20f); } public override bool PreDraw(ref Color lightColor) From e8ec9196a2e68c70d73940c6b6f0f1dcc9c5bbeb Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 23 Aug 2023 21:05:47 -0400 Subject: [PATCH 018/258] Fixed a grammar error in Meter Position Lock config --- Localization/en-US/Mods.CalamityMod.Configs.hjson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Configs.hjson b/Localization/en-US/Mods.CalamityMod.Configs.hjson index 1ca6891517..eba58802b8 100644 --- a/Localization/en-US/Mods.CalamityMod.Configs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Configs.hjson @@ -231,7 +231,7 @@ CalamityConfig: { Label: "[i:GemLockTopaz] Lock Meter Positions" Tooltip: ''' - Prevents clicking on the Calamity's various Meters on the screen. + Prevents clicking on Calamity's various Meters on the screen. This stops them from being dragged around with the mouse. ''' } @@ -423,4 +423,4 @@ CalamityConfig: { Label: "[i:Book] Wiki Status Message" Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry. } -} \ No newline at end of file +} From 0145ac0a7b6e95004524c2f303010596159c172c Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 24 Aug 2023 02:45:53 -0700 Subject: [PATCH 019/258] Reworked Jewels and added effects and anti-cheese to Purity Changed the name of Celestial Jewel to Infected Jewel to contrasts Purity Reworked Crown Jewel and Infected Jewel Crown Jewel: Life regen increased by 1 Increases life regen by 3 while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff When afflicted with a debuff, you will gain 8 defense This defense will begin to fade away when you are no longer debuffed Infected Jewel: A beautiful gem that has been corrupted by the astral infection Life regen increased by 2 Increases life regen by 4 while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff When afflicted with a debuff, you will gain 14 defense This defense will begin to fade away when you are no longer debuffed Updated Purity to fit the Jewels new bonus defense decay Purity now works with more debuffs, but if you are debuffed for long enough there is a healing penalty to prevent permanent super healing with stuff like weak brimstone flames and mana burn --- Buffs/Potions/WeaponImbueCrumbling.png | Bin 605 -> 555 bytes Buffs/StatDebuffs/Crumbling.png | Bin 3091 -> 472 bytes CalPlayer/CalamityPlayer.cs | 29 ++-- CalPlayer/CalamityPlayerLifeRegen.cs | 136 ++++++++++++------ CalPlayer/CalamityPlayerMiscEffects.cs | 8 +- CalamityKeybinds.cs | 3 - CalamityLists.cs | 18 ++- .../{CelestialJewel.cs => InfectedJewel.cs} | 13 +- .../{CelestialJewel.png => InfectedJewel.png} | Bin Items/Accessories/Purity.cs | 2 +- .../Mods.CalamityMod.Items.Accessories.hjson | 30 ++-- 11 files changed, 155 insertions(+), 84 deletions(-) rename Items/Accessories/{CelestialJewel.cs => InfectedJewel.cs} (71%) rename Items/Accessories/{CelestialJewel.png => InfectedJewel.png} (100%) diff --git a/Buffs/Potions/WeaponImbueCrumbling.png b/Buffs/Potions/WeaponImbueCrumbling.png index 91c59e28166118d4afd1ab1ee09a17af5143233b..3518e6bf34597418c5b5bfceb7dd9a5d3ce13c30 100644 GIT binary patch delta 530 zcmV+t0`2|X1giv)B!2;OQb$4nuFf3k0005YNklpstHxboe+ z_s+fVoOeFwzH{HpBdb?_R(SyVKOEHf6t4h%10w)5H8(mYG=J3B0dR47Wwd)qzwhMu z6oBx`0$>4w0y&Y)Ba1V}iK$FYPL7KUuZ{Me;VA&ZE9%-F0-{7J1Hj1mC;+i|9Du#; z&72(f4-NrPSzZdj%=D~ro_z##)dm9U_@0rMB;)VOUIIr4hX4dyTa4q8wI~2Rz1?31 zxO+%`Ic^Vun}6Fo;{-Pn!PaH~R+pCm7@L>`K4&a%ky{*l2#383$^>48GFe-0?#ic0Ay0CRgL(l4$Gb0zM^mhn|bP~EfSN%GHk3XYQpXzL#-R3WxbmBfI z$G)-(qkSu?cGYBB?Y34B5dF`;<2NWoqt!uCfZzZC01jnXNoGw=04e|g00;m800000 U0Mb*F01E&B07*qoM6N<$f*ObC^8f$< delta 580 zcmV-K0=xaI1l9WvCviMOJi!3as4EzZUisdY_Sd<@&Bwv(}x{?%&B67nGQe?PH4By`A zdG5Y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032iwLk>_+sb%H=WbpO_RQw>j0|@+c c8Z=-Djl%u;XJ{l=00000Ne4wvM6N<$f?`n1g#Z8m diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index ca11980325..9c0ccf1597 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -472,10 +472,19 @@ namespace CalamityMod.CalPlayer public bool absorber = false; public bool hDew = false; public int HoneyDewHealCooldown = 0; + public int HoneyDewHealSpeed = 12; public int AmbrosialAmpouleHealCooldown = 0; + public int AmbrosialAmpouleHealSpeed = 9; public int PurityHealCooldown = 0; + public int PurityHealSpeed = 5; + //Used to time until you get reduced healing + public int ReducedHealingCounter = 0; + public int CrownJewelBonusDefense = 0; + public int InfectedJewelBonusDefense = 0; + public int PurityBonusDefense = 0; public bool aAmpoule = false; public bool rOoze = false; + public bool JustWasDebuffed = false; public bool fBarrier = false; public bool aBrain = false; public bool amalgam = false; @@ -521,7 +530,7 @@ namespace CalamityMod.CalPlayer public bool coreOfTheBloodGod = false; public bool elementalHeart = false; public bool crownJewel = false; - public bool celestialJewel = false; + public bool infectedJewel = false; public bool purity = false; public bool harpyRing = false; public bool angelTreads = false; @@ -1614,7 +1623,7 @@ namespace CalamityMod.CalPlayer coreOfTheBloodGod = false; elementalHeart = false; crownJewel = false; - celestialJewel = false; + infectedJewel = false; purity = false; harpyRing = false; angelTreads = false; @@ -2891,21 +2900,7 @@ namespace CalamityMod.CalPlayer { PurityUI.Toggle(); } - if (CalamityKeybinds.AstralTeleportHotKey.JustPressed) - { - if (celestialJewel && !areThereAnyDamnBosses) - { - if (Main.netMode == NetmodeID.SinglePlayer) - { - Player.TeleportationPotion(); - SoundEngine.PlaySound(SoundID.Item6, Player.Center); - } - else if (Main.netMode == NetmodeID.MultiplayerClient && Player.whoAmI == Main.myPlayer) - { - NetMessage.SendData(MessageID.RequestTeleportationByServer, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - } - } + if (CalamityKeybinds.BlazingCoreHotKey.JustPressed) { if (blazingCore && blazingCoreParry == 0 && blazingCoreSuccessfulParry == 0) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 40844b02bc..52ffd2da5b 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -509,67 +509,123 @@ namespace CalamityMod.CalPlayer } } - if (celestialJewel || purity) + if (purity) { - Player.lifeRegen += 5; + Player.lifeRegen += 4; Player.lifeRegenTime += 6; - if (PurityHealCooldown == 5) + Player.statDefense += PurityBonusDefense; + //heal every 5 frames + if (PurityHealCooldown == PurityHealSpeed) PurityHealCooldown = 0; Player.statLifeMax2 += 80; + bool hasAnyDebuffs = false; for (int l = 0; l < Player.MaxBuffs; l++) { int hasBuff = Player.buffType[l]; - if (Player.buffTime[l] > 3 && CalamityLists.debuffList.Contains(hasBuff)) + if (CalamityLists.debuffList.Contains(hasBuff)) { - Player.buffTime[l] -= 2; - - if (Player.lifeRegenTime < 1800) - Player.lifeRegenTime = 1800; - //add extra regen when effected by a debuff - Player.lifeRegen += 5; - Player.statDefense += 18; - - if (PurityHealCooldown == 0) + if (Player.buffTime[l] > 3) { - PurityHealCooldown++; - Player.Heal(1); + hasAnyDebuffs = true; + //JustWasDebuffed = false; + Player.buffTime[l] -= 2; + + if (Player.lifeRegenTime < 1800) + Player.lifeRegenTime = 1800; + //add extra regen when effected by a debuff + Player.lifeRegen += 6; + PurityBonusDefense = 18; + if (ReducedHealingCounter < 120) + ReducedHealingCounter++; + + //If it's been over 2 seconds with a debuff, Every 15 frames increase the ammount of frames between healing 1, up to a max of 4x the original frames + if (ReducedHealingCounter == 120 && PurityHealSpeed < 20) + if (Player.miscCounter % 15 == 0) + { + PurityHealSpeed++; + } + + if (PurityHealCooldown == 0) + { + PurityHealCooldown++; + Player.Heal(1); + } + else + PurityHealCooldown++; + } + } + } + + if (!hasAnyDebuffs) + { + //recover any heal penalty youve gained as long as youre not currently debuffed + if (PurityHealSpeed > 5) + if (Player.miscCounter % 15 == 0) + PurityHealSpeed--; + //If you're not debuffed and you are back to full healing speed, give the 3 second countdown back + if (PurityHealSpeed == 5) + ReducedHealingCounter = 0; + //Bonus defense goes down by 1 every second after + if (Player.miscCounter % 90 == 0 && PurityBonusDefense > 0) + PurityBonusDefense--; + } + + } + + if (infectedJewel && !purity) + { + bool hasAnyDebuffs = false; + Player.lifeRegen += 2; + Player.statDefense += InfectedJewelBonusDefense; + if (!hasAnyDebuffs) + { + //Bonus defense goes down by 1 every second after + if (Player.miscCounter % 90 == 0 && InfectedJewelBonusDefense > 0) + InfectedJewelBonusDefense--; + } + for (int l = 0; l < Player.MaxBuffs; l++) + { + int hasBuff = Player.buffType[l]; + if (CalamityLists.debuffList.Contains(hasBuff)) + { + if (Player.buffTime[l] > 2) + { + hasAnyDebuffs = true; + if (Player.lifeRegenTime < 1800) + Player.lifeRegenTime = 1800; + //add extra regen when effected by a debuff + Player.lifeRegen += 4; + InfectedJewelBonusDefense = 14; } - else - PurityHealCooldown++; } } } - if (celestialJewel && !purity) + if (crownJewel && !infectedJewel && !purity) { - Player.lifeRegen += 2; - for (int l = 0; l < Player.MaxBuffs; l++) + bool hasAnyDebuffs = false; + Player.lifeRegen += 1; + Player.statDefense += CrownJewelBonusDefense; + if (!hasAnyDebuffs) { - int hasBuff = Player.buffType[l]; - if (Player.buffTime[l] > 2 && CalamityLists.debuffList.Contains(hasBuff)) - { - if (Player.lifeRegenTime < 1800) - Player.lifeRegenTime = 1800; - //add extra regen when effected by a debuff - Player.lifeRegen += 2; - Player.statDefense += 12; - } + //Bonus defense goes down by 1 every second after + if (Player.miscCounter % 90 == 0 && CrownJewelBonusDefense > 0) + CrownJewelBonusDefense--; } - } - - if (crownJewel && !celestialJewel && !purity) - { - Player.lifeRegen += 2; for (int l = 0; l < Player.MaxBuffs; l++) { int hasBuff = Player.buffType[l]; - if (Player.buffTime[l] > 2 && CalamityLists.debuffList.Contains(hasBuff)) + if (CalamityLists.debuffList.Contains(hasBuff)) { - if (Player.lifeRegenTime < 1800) - Player.lifeRegenTime = 1800; - //add extra regen when effected by a debuff - Player.lifeRegen += 2; - Player.statDefense += 8; + if (Player.buffTime[l] > 2) + { + hasAnyDebuffs = true; + if (Player.lifeRegenTime < 1800) + Player.lifeRegenTime = 1800; + //add extra regen when effected by a debuff + Player.lifeRegen += 3; + CrownJewelBonusDefense = 8; + } } } } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index a2b17a7288..60b7d518db 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1580,7 +1580,8 @@ namespace CalamityMod.CalPlayer if (hDew && !aAmpoule && !purity) { - if (HoneyDewHealCooldown == 12) + //heal ever 12 frames + if (HoneyDewHealCooldown == HoneyDewHealSpeed) HoneyDewHealCooldown = 0; Player.statLifeMax2 += 30; for (int l = 0; l < Player.MaxBuffs; l++) @@ -1636,7 +1637,8 @@ namespace CalamityMod.CalPlayer } if (aAmpoule && !purity) { - if (AmbrosialAmpouleHealCooldown == 10) + //heal every 9 frames + if (AmbrosialAmpouleHealCooldown == AmbrosialAmpouleHealSpeed) AmbrosialAmpouleHealCooldown = 0; Player.statLifeMax2 += 50; for (int l = 0; l < Player.MaxBuffs; l++) @@ -3796,7 +3798,7 @@ namespace CalamityMod.CalPlayer ref int lostDef = ref bloodflareCoreLostDefense; if (lostDef > 0) { - // Defense regeneration occurs every six frames while defense is missing + // Defense regeneration occurs every six frames while defense is missing (Call Xyk a bitch if he doesn't change this) if (Player.miscCounter % 6 == 0) { --lostDef; diff --git a/CalamityKeybinds.cs b/CalamityKeybinds.cs index d498511c85..575fe168cb 100644 --- a/CalamityKeybinds.cs +++ b/CalamityKeybinds.cs @@ -9,7 +9,6 @@ namespace CalamityMod public static ModKeybind SetBonusHotKey { get; private set; } public static ModKeybind RageHotKey { get; private set; } public static ModKeybind AdrenalineHotKey { get; private set; } - public static ModKeybind AstralTeleportHotKey { get; private set; } public static ModKeybind PurityUIHotkey { get; private set; } public static ModKeybind SandCloakHotkey { get; private set; } public static ModKeybind SpectralVeilHotKey { get; private set; } @@ -28,7 +27,6 @@ namespace CalamityMod AdrenalineHotKey = KeybindLoader.RegisterKeybind(Mod, "AdrenalineMode", "B"); BlazingCoreHotKey = KeybindLoader.RegisterKeybind(Mod, "BlazingCoreParry", "N"); SetBonusHotKey = KeybindLoader.RegisterKeybind(Mod, "ArmorSetBonus", "Y"); - AstralTeleportHotKey = KeybindLoader.RegisterKeybind(Mod, "AstralTeleport", "P"); PurityUIHotkey = KeybindLoader.RegisterKeybind(Mod, "PurityUIToggle", "O"); SandCloakHotkey = KeybindLoader.RegisterKeybind(Mod, "SandCloakEffect", "C"); SpectralVeilHotKey = KeybindLoader.RegisterKeybind(Mod, "SpectralVeilTeleport", "Z"); @@ -47,7 +45,6 @@ namespace CalamityMod AdrenalineHotKey = null; BlazingCoreHotKey = null; SetBonusHotKey = null; - AstralTeleportHotKey = null; PurityUIHotkey = null; SandCloakHotkey = null; SpectralVeilHotKey = null; diff --git a/CalamityLists.cs b/CalamityLists.cs index 5e7783f114..d7901c66f4 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1,8 +1,11 @@ -using CalamityMod.Buffs.Alcohol; +using CalamityMod.Buffs; +using CalamityMod.Buffs.Alcohol; +using CalamityMod.Buffs.Cooldowns; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Potions; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.DraedonMisc; using CalamityMod.Items.Fishing.BrimstoneCragCatches; @@ -11,6 +14,7 @@ using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Furniture.Trophies; +using CalamityMod.Items.SummonItems; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; @@ -1157,7 +1161,17 @@ namespace CalamityMod BuffType(), BuffType(), BuffType(), - BuffType() + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType() }; sicknessDebuffList = new List() diff --git a/Items/Accessories/CelestialJewel.cs b/Items/Accessories/InfectedJewel.cs similarity index 71% rename from Items/Accessories/CelestialJewel.cs rename to Items/Accessories/InfectedJewel.cs index 99be42768f..6accf136d1 100644 --- a/Items/Accessories/CelestialJewel.cs +++ b/Items/Accessories/InfectedJewel.cs @@ -2,13 +2,15 @@ using CalamityMod.CalPlayer; using CalamityMod.Items.Potions; using System.Collections.Generic; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class CelestialJewel : ModItem, ILocalizedModType + [LegacyName("CelestialJewel")] + public class InfectedJewel : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() @@ -21,21 +23,18 @@ namespace CalamityMod.Items.Accessories Item.accessory = true; } - public override void ModifyTooltips(List list) => list.IntegrateHotkey(CalamityKeybinds.AstralTeleportHotKey); - public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.celestialJewel = true; + modPlayer.infectedJewel = true; } public override void AddRecipes() { CreateRecipe(). AddIngredient(). - AddIngredient(ItemID.TeleportationPotion, 3). - AddIngredient(15). - AddIngredient(15). + AddIngredient(10). + AddIngredient(25). AddTile(TileID.MythrilAnvil). Register(); } diff --git a/Items/Accessories/CelestialJewel.png b/Items/Accessories/InfectedJewel.png similarity index 100% rename from Items/Accessories/CelestialJewel.png rename to Items/Accessories/InfectedJewel.png diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index c2a7831067..79c3950096 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(1). AddIngredient(8). diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 1841fac2e6..dfe56edc50 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -247,11 +247,13 @@ Purity: { A once infected crystal, now perfectly purified You emit light +80 max life - Your life regen is increased by 5 - Your natural life regen is greatly improved + Your life regen is increased by 4 + Increases life regen by 6 while afflicted with a debuff + Your life regen is still increased even when afflicted with a damage over time debuff + Your natural life regen is massively improved Greatly reduces how long you are afflicted with debuffs - When you are afflicted with a debuff you heal rapidly and gain 18 defense - Boosts life regen even while under the effects of a damaging debuff + When afflicted with a debuff, you will gain 18 defense + This defense will begin to fade away when you are no longer debuffed Press [KEY] to toggle teleportation UI while no bosses are alive ''' } @@ -355,13 +357,16 @@ Calamity: { ''' } -CelestialJewel: { - DisplayName: Celestial Jewel +InfectedJewel: { + DisplayName: Infected Jewel Tooltip: ''' - Boosts life regen even while under the effects of a debuff - While under the effects of a debuff you will gain 12 defense - Press [KEY] to teleport to a random location while no bosses are alive + A beautiful gem that has been corrupted by the astral infection + Life regen increased by 2 + Increases life regen by 4 while afflicted with a debuff + Your life regen is still increased even when afflicted with a damage over time debuff + When afflicted with a debuff, you will gain 14 defense + This defense will begin to fade away when you are no longer debuffed ''' } @@ -456,8 +461,11 @@ CrownJewel: { DisplayName: Crown Jewel Tooltip: ''' - Boosts life regen even while under the effects of a debuff - While under the effects of a debuff you will gain 8 defense + Life regen increased by 1 + Increases life regen by 3 while afflicted with a debuff + Your life regen is still increased even when afflicted with a damage over time debuff + When afflicted with a debuff, you will gain 8 defense + This defense will begin to fade away when you are no longer debuffed ''' } From 44af0ab912633c3ac042f6065dc9a1fdbe6b92f1 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 24 Aug 2023 02:49:21 -0700 Subject: [PATCH 020/258] im a bitch god damn it --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 60b7d518db..60d6b4fa58 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3798,7 +3798,7 @@ namespace CalamityMod.CalPlayer ref int lostDef = ref bloodflareCoreLostDefense; if (lostDef > 0) { - // Defense regeneration occurs every six frames while defense is missing (Call Xyk a bitch if he doesn't change this) + // Defense regeneration occurs every six frames while defense is missing if (Player.miscCounter % 6 == 0) { --lostDef; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index dfe56edc50..c617c75823 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -361,7 +361,7 @@ InfectedJewel: { DisplayName: Infected Jewel Tooltip: ''' - A beautiful gem that has been corrupted by the astral infection + A beautiful gem that has been corrupted by the astral infection Life regen increased by 2 Increases life regen by 4 while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff From 20e0fe5ebd18dc4c337fd5431c8db8c06a2e4c08 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:32:03 -0400 Subject: [PATCH 021/258] Subsuming Vortex balance, including big vortex scaling damage. Also fixed Dynamic Pursuer's Twins resist being applied to Thanatos --- Balancing/BalancingChangesManager.cs | 7 +++++-- Items/Weapons/Magic/SubsumingVortex.cs | 4 ++-- Projectiles/Magic/EnormousConsumingVortex.cs | 12 +++++++++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index bc45bea855..47037c8dbb 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -276,8 +276,8 @@ namespace CalamityMod.Balancing // TODO -- NPC sets (mostly worm bosses) should probably be their own holding class. int[] exoTwins = new int[] { NPCType(), NPCType() }; - // 20% resist to Dynamic Pursuer - NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType(), ProjectileType(), ProjectileType())))); + // 20% resist to Dynamic Pursuer. + NPCSpecificBalancingChanges.AddRange(Bundle(exoTwins, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType(), ProjectileType(), ProjectileType())))); // 10% resist to Eclipse's Fall stealth strike. NPCSpecificBalancingChanges.AddRange(Bundle(exoTwins, Do(new ProjectileResistBalancingRule(0.9f, ProjectileType())))); @@ -377,6 +377,9 @@ namespace CalamityMod.Balancing // 85% resist to Chicken Cannon. NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.15f, ProjectileType()))); + // 35% resist to Subsuming Vortex. + NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.65f, ProjectileType(), ProjectileType(), ProjectileType()))); + // 30% resist to Murasama. NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.7f, ProjectileType()))); diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index 33b2a5bbfd..84eaddb6ba 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic public const float ReleaseSpeed = 33f; - public const float ReleaseDamageFactor = 4.35f; + public const float ReleaseDamageFactor = 4.48f; public static readonly SoundStyle ExplosionSound = new("CalamityMod/Sounds/Custom/SubsumingVortexExplosion"); @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 533; + Item.damage = 507; Item.DamageType = DamageClass.Magic; Item.useTime = Item.useAnimation = 20; Item.shootSpeed = 7f; diff --git a/Projectiles/Magic/EnormousConsumingVortex.cs b/Projectiles/Magic/EnormousConsumingVortex.cs index 3bc586ca57..418c72b519 100644 --- a/Projectiles/Magic/EnormousConsumingVortex.cs +++ b/Projectiles/Magic/EnormousConsumingVortex.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Projectiles.Magic // Emit light. Lighting.AddLight(Projectile.Center, Color.White.ToVector3() * 1.3f); - // If the player is no longer able to channel the vortex and it hasn't been released yet, release it. + // If the player has channeled the vortex for long enough and it hasn't been released yet, release it. if ((!Owner.Calamity().mouseRight || Owner.noItems || Owner.CCed) && !HasBeenReleased) { if (Time >= SubsumingVortex.LargeVortexChargeupTime) @@ -78,6 +78,16 @@ namespace CalamityMod.Projectiles.Magic Projectile.netUpdate = true; } } + else if (Time >= SubsumingVortex.VortexShootDelay) + { + if (Main.myPlayer == Projectile.owner) + { + Projectile.velocity = Projectile.SafeDirectionTo(Main.MouseWorld) * SubsumingVortex.ReleaseSpeed; + Projectile.damage = (int)(Projectile.damage * (1f + Time * 0.0145f)); + HasBeenReleased = true; + Projectile.netUpdate = true; + } + } else Projectile.Kill(); return; From 4f8dd10232c0d93b0fd488c54d97da5314aed4b2 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:12:51 -0400 Subject: [PATCH 022/258] Updated SSV tooltip to reflect right click changes --- .../en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index bec04ebf2d..bfe3cc19c2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -733,7 +733,8 @@ SubsumingVortex: { Press to release a barrage of vortices that race towards enemies Press to cast a gigantic vortex in front of you with a bias towards the mouse When enemies are near the vortex, it sends multiple fast-moving smaller vortices towards them - After enough time has passed the vortex stops shooting, and releasing fires the vortex towards the mouse + Releasing fires the vortex towards the mouse if enough time has passed + Damage scales based on how long the vortex was held out ''' } @@ -954,4 +955,4 @@ YharimsCrystal: { Tooltip: "[GFB]" TooltipNormal: Fires draconic beams of total annihilation TooltipGFB: ...throughs a pice of dnimite -} \ No newline at end of file +} From ad3e7503ff1cfb6c7d8d0b8587ad4921002adf23 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Thu, 24 Aug 2023 15:07:30 -0500 Subject: [PATCH 023/258] All enemies that inflict Astral Infection inflict it for less time. --- NPCs/Astral/Aries.cs | 2 +- NPCs/Astral/AstralProbe.cs | 2 +- NPCs/Astral/AstralSlime.cs | 2 +- NPCs/Astral/AstralachneaGround.cs | 2 +- NPCs/Astral/AstralachneaWall.cs | 2 +- NPCs/Astral/Atlas.cs | 2 +- NPCs/Astral/FusionFeeder.cs | 2 +- NPCs/Astral/Hadarian.cs | 2 +- NPCs/Astral/HiveEnemy.cs | 2 +- NPCs/Astral/Hiveling.cs | 2 +- NPCs/Astral/Mantis.cs | 2 +- NPCs/Astral/Nova.cs | 2 +- NPCs/Astral/SightseerCollider.cs | 2 +- NPCs/Astral/SightseerSpitter.cs | 4 ++-- NPCs/Astral/StellarCulex.cs | 2 +- NPCs/AstrumAureus/AstrumAureus.cs | 2 +- NPCs/AstrumAureus/AureusSpawn.cs | 2 +- NPCs/AstrumDeus/AstrumDeusBody.cs | 2 +- NPCs/AstrumDeus/AstrumDeusHead.cs | 2 +- NPCs/AstrumDeus/AstrumDeusTail.cs | 2 +- Projectiles/Boss/AstralFlame.cs | 2 +- Projectiles/Boss/AstralGodRay.cs | 2 +- Projectiles/Boss/AstralLaser.cs | 2 +- Projectiles/Boss/AstralShot2.cs | 2 +- Projectiles/Boss/DeusMine.cs | 2 +- Projectiles/Enemy/AstralMeteorProj.cs | 2 +- Projectiles/Enemy/MantisRing.cs | 2 +- 27 files changed, 28 insertions(+), 28 deletions(-) diff --git a/NPCs/Astral/Aries.cs b/NPCs/Astral/Aries.cs index e717aa6412..24b1d3c999 100644 --- a/NPCs/Astral/Aries.cs +++ b/NPCs/Astral/Aries.cs @@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 90, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/AstralProbe.cs b/NPCs/Astral/AstralProbe.cs index 24a1ae49c2..3d86782a3c 100644 --- a/NPCs/Astral/AstralProbe.cs +++ b/NPCs/Astral/AstralProbe.cs @@ -342,7 +342,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 90, true); } } } diff --git a/NPCs/Astral/AstralSlime.cs b/NPCs/Astral/AstralSlime.cs index 68916ddc14..816869d3e4 100644 --- a/NPCs/Astral/AstralSlime.cs +++ b/NPCs/Astral/AstralSlime.cs @@ -86,7 +86,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 90, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/AstralachneaGround.cs b/NPCs/Astral/AstralachneaGround.cs index e4143fb7a5..3cddcb88df 100644 --- a/NPCs/Astral/AstralachneaGround.cs +++ b/NPCs/Astral/AstralachneaGround.cs @@ -178,7 +178,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 90, true); } public static void ModifyAstralachneaLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/AstralachneaWall.cs b/NPCs/Astral/AstralachneaWall.cs index 467c39ddbb..6d5159ceb8 100644 --- a/NPCs/Astral/AstralachneaWall.cs +++ b/NPCs/Astral/AstralachneaWall.cs @@ -128,7 +128,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 90, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) => AstralachneaGround.ModifyAstralachneaLoot(npcLoot); diff --git a/NPCs/Astral/Atlas.cs b/NPCs/Astral/Atlas.cs index 9eefafa0e5..4024354eed 100644 --- a/NPCs/Astral/Atlas.cs +++ b/NPCs/Astral/Atlas.cs @@ -644,7 +644,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 300, true); + target.AddBuff(ModContent.BuffType(), 180, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/FusionFeeder.cs b/NPCs/Astral/FusionFeeder.cs index b3a7efeaa9..3b67007e74 100644 --- a/NPCs/Astral/FusionFeeder.cs +++ b/NPCs/Astral/FusionFeeder.cs @@ -303,7 +303,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 90, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/Hadarian.cs b/NPCs/Astral/Hadarian.cs index 2cca84a1db..62be4997d1 100644 --- a/NPCs/Astral/Hadarian.cs +++ b/NPCs/Astral/Hadarian.cs @@ -212,7 +212,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 90, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/HiveEnemy.cs b/NPCs/Astral/HiveEnemy.cs index 708edd5708..37b08e38c0 100644 --- a/NPCs/Astral/HiveEnemy.cs +++ b/NPCs/Astral/HiveEnemy.cs @@ -147,7 +147,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 90, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/Hiveling.cs b/NPCs/Astral/Hiveling.cs index 7132d7f064..656c128ac6 100644 --- a/NPCs/Astral/Hiveling.cs +++ b/NPCs/Astral/Hiveling.cs @@ -150,7 +150,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 60, true); + target.AddBuff(ModContent.BuffType(), 30, true); } } } diff --git a/NPCs/Astral/Mantis.cs b/NPCs/Astral/Mantis.cs index 046fe67aca..ded7e0156b 100644 --- a/NPCs/Astral/Mantis.cs +++ b/NPCs/Astral/Mantis.cs @@ -241,7 +241,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 60, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/Nova.cs b/NPCs/Astral/Nova.cs index fbf8eeed46..accc02a682 100644 --- a/NPCs/Astral/Nova.cs +++ b/NPCs/Astral/Nova.cs @@ -310,7 +310,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 60, true); } } } diff --git a/NPCs/Astral/SightseerCollider.cs b/NPCs/Astral/SightseerCollider.cs index b6300acc46..214e809a3c 100644 --- a/NPCs/Astral/SightseerCollider.cs +++ b/NPCs/Astral/SightseerCollider.cs @@ -148,7 +148,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 60, true); + target.AddBuff(ModContent.BuffType(), 30, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/Astral/SightseerSpitter.cs b/NPCs/Astral/SightseerSpitter.cs index 9c77cf919c..a5cd3af56c 100644 --- a/NPCs/Astral/SightseerSpitter.cs +++ b/NPCs/Astral/SightseerSpitter.cs @@ -177,7 +177,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 60, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) @@ -273,7 +273,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 60, true); } private void DoKillDust() diff --git a/NPCs/Astral/StellarCulex.cs b/NPCs/Astral/StellarCulex.cs index 8802844f40..2f4a71e5ec 100644 --- a/NPCs/Astral/StellarCulex.cs +++ b/NPCs/Astral/StellarCulex.cs @@ -126,7 +126,7 @@ namespace CalamityMod.NPCs.Astral public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 120, true); + target.AddBuff(ModContent.BuffType(), 60, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index 9e7f96fa6c..3e9dd36ad8 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -534,7 +534,7 @@ namespace CalamityMod.NPCs.AstrumAureus public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 480, true); + target.AddBuff(ModContent.BuffType(), 240, true); } } } diff --git a/NPCs/AstrumAureus/AureusSpawn.cs b/NPCs/AstrumAureus/AureusSpawn.cs index 44aca36db1..81fc716020 100644 --- a/NPCs/AstrumAureus/AureusSpawn.cs +++ b/NPCs/AstrumAureus/AureusSpawn.cs @@ -380,7 +380,7 @@ namespace CalamityMod.NPCs.AstrumAureus public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { int debuffType = Main.zenithWorld ? ModContent.BuffType() : ModContent.BuffType(); - target.AddBuff(debuffType, (int)(180 * NPC.scale), true); + target.AddBuff(debuffType, (int)(90 * NPC.scale), true); } } } diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index 8b890edceb..6aaf48eff8 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -215,7 +215,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 300, true); + target.AddBuff(ModContent.BuffType(), 120, true); } public override void ApplyDifficultyAndPlayerScaling(int numPlayers, float balance, float bossAdjustment) diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index b986ee086d..ae8a1cc622 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -367,7 +367,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 480, true); + target.AddBuff(ModContent.BuffType(), 240, true); } public override void ApplyDifficultyAndPlayerScaling(int numPlayers, float balance, float bossAdjustment) diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index 02d213edaa..42863a9aa5 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -196,7 +196,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(ModContent.BuffType(), 180, true); + target.AddBuff(ModContent.BuffType(), 90, true); } public override void ApplyDifficultyAndPlayerScaling(int numPlayers, float balance, float bossAdjustment) diff --git a/Projectiles/Boss/AstralFlame.cs b/Projectiles/Boss/AstralFlame.cs index 8d81045993..6ad20b1cf1 100644 --- a/Projectiles/Boss/AstralFlame.cs +++ b/Projectiles/Boss/AstralFlame.cs @@ -150,7 +150,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 90); } public override void Kill(int timeLeft) diff --git a/Projectiles/Boss/AstralGodRay.cs b/Projectiles/Boss/AstralGodRay.cs index 2c62797d28..e31cfcac64 100644 --- a/Projectiles/Boss/AstralGodRay.cs +++ b/Projectiles/Boss/AstralGodRay.cs @@ -108,7 +108,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 90); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Boss/AstralLaser.cs b/Projectiles/Boss/AstralLaser.cs index f5eef46192..b14d6a1167 100644 --- a/Projectiles/Boss/AstralLaser.cs +++ b/Projectiles/Boss/AstralLaser.cs @@ -101,7 +101,7 @@ namespace CalamityMod.Projectiles.Boss return; if (Projectile.timeLeft >= 85) - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 60); } } } diff --git a/Projectiles/Boss/AstralShot2.cs b/Projectiles/Boss/AstralShot2.cs index 066e2e7348..743c43ef8f 100644 --- a/Projectiles/Boss/AstralShot2.cs +++ b/Projectiles/Boss/AstralShot2.cs @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 60); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Boss/DeusMine.cs b/Projectiles/Boss/DeusMine.cs index 0e31004150..6075957199 100644 --- a/Projectiles/Boss/DeusMine.cs +++ b/Projectiles/Boss/DeusMine.cs @@ -144,7 +144,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0 || Projectile.timeLeft > MaxTimeLeft - FadeTime || (Projectile.timeLeft < FadeTime && Projectile.ai[0] == 0f)) return; - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 90); } } } diff --git a/Projectiles/Enemy/AstralMeteorProj.cs b/Projectiles/Enemy/AstralMeteorProj.cs index 69f28a0966..e3338f04bb 100644 --- a/Projectiles/Enemy/AstralMeteorProj.cs +++ b/Projectiles/Enemy/AstralMeteorProj.cs @@ -110,7 +110,7 @@ namespace CalamityMod.Projectiles.Enemy if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 60); } } } diff --git a/Projectiles/Enemy/MantisRing.cs b/Projectiles/Enemy/MantisRing.cs index 26b19c6c81..156aedf1c2 100644 --- a/Projectiles/Enemy/MantisRing.cs +++ b/Projectiles/Enemy/MantisRing.cs @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Enemy if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 60); } public override bool PreDraw(ref Color lightColor) From 5e931c7f0db85cf5d0b01f59f89650c38e615c17 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 24 Aug 2023 14:50:23 -0700 Subject: [PATCH 024/258] Removed the Keybinded effects from Infected Jewel and Purity I left the UI from Astral Arcanum in because we might decide to use it later, but there's no way to access it anymore in game. --- CalPlayer/CalamityPlayer.cs | 4 ---- CalamityKeybinds.cs | 3 --- CalamityMod.cs | 2 -- Items/Accessories/Purity.cs | 2 -- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 1 - Localization/en-US/Mods.CalamityMod.Keybinds.hjson | 2 +- Systems/UIManagementSystem.cs | 6 +++--- ...PurityCircles.png => SpecialTeleportCircles.png} | Bin UI/PurityUI.cs | 4 ++-- Utilities/CalamityRecipes.cs | 10 ++++++++++ 10 files changed, 16 insertions(+), 18 deletions(-) rename UI/MiscTextures/{PurityCircles.png => SpecialTeleportCircles.png} (100%) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 9c0ccf1597..ea481e8755 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2896,10 +2896,6 @@ namespace CalamityMod.CalPlayer if (prismaticSet && !Player.HasCooldown(PrismaticLaser.ID) && prismaticLasers <= 0) prismaticLasers = CalamityUtils.SecondsToFrames(35f); } - if (CalamityKeybinds.PurityUIHotkey.JustPressed && purity && !areThereAnyDamnBosses) - { - PurityUI.Toggle(); - } if (CalamityKeybinds.BlazingCoreHotKey.JustPressed) { diff --git a/CalamityKeybinds.cs b/CalamityKeybinds.cs index 575fe168cb..c76f1a98c2 100644 --- a/CalamityKeybinds.cs +++ b/CalamityKeybinds.cs @@ -9,7 +9,6 @@ namespace CalamityMod public static ModKeybind SetBonusHotKey { get; private set; } public static ModKeybind RageHotKey { get; private set; } public static ModKeybind AdrenalineHotKey { get; private set; } - public static ModKeybind PurityUIHotkey { get; private set; } public static ModKeybind SandCloakHotkey { get; private set; } public static ModKeybind SpectralVeilHotKey { get; private set; } public static ModKeybind PlaguePackHotKey { get; private set; } @@ -27,7 +26,6 @@ namespace CalamityMod AdrenalineHotKey = KeybindLoader.RegisterKeybind(Mod, "AdrenalineMode", "B"); BlazingCoreHotKey = KeybindLoader.RegisterKeybind(Mod, "BlazingCoreParry", "N"); SetBonusHotKey = KeybindLoader.RegisterKeybind(Mod, "ArmorSetBonus", "Y"); - PurityUIHotkey = KeybindLoader.RegisterKeybind(Mod, "PurityUIToggle", "O"); SandCloakHotkey = KeybindLoader.RegisterKeybind(Mod, "SandCloakEffect", "C"); SpectralVeilHotKey = KeybindLoader.RegisterKeybind(Mod, "SpectralVeilTeleport", "Z"); PlaguePackHotKey = KeybindLoader.RegisterKeybind(Mod, "BoosterDash", "Q"); @@ -45,7 +43,6 @@ namespace CalamityMod AdrenalineHotKey = null; BlazingCoreHotKey = null; SetBonusHotKey = null; - PurityUIHotkey = null; SandCloakHotkey = null; SpectralVeilHotKey = null; PlaguePackHotKey = null; diff --git a/CalamityMod.cs b/CalamityMod.cs index de5e30bd06..15188a5ff9 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -361,7 +361,6 @@ namespace CalamityMod RipperUI.Load(); StealthUI.Load(); ChargeMeterUI.Load(); - PurityUI.Load(this); FlightBar.Load(); // TODO -- Is this not possible to place in ModNPC.Load or ModNPC.SetStaticDefaults ? @@ -465,7 +464,6 @@ namespace CalamityMod RipperUI.Unload(); StealthUI.Unload(); ChargeMeterUI.Unload(); - PurityUI.Unload(); FlightBar.Unload(); if (!Main.dedServ) diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index 79c3950096..b4f69892b5 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -24,8 +24,6 @@ namespace CalamityMod.Items.Accessories Item.rare = ModContent.RarityType(); } - public override void ModifyTooltips(List list) => list.IntegrateHotkey(CalamityKeybinds.PurityUIHotkey); - public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index c617c75823..cb2649b326 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -254,7 +254,6 @@ Purity: { Greatly reduces how long you are afflicted with debuffs When afflicted with a debuff, you will gain 18 defense This defense will begin to fade away when you are no longer debuffed - Press [KEY] to toggle teleportation UI while no bosses are alive ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Keybinds.hjson b/Localization/en-US/Mods.CalamityMod.Keybinds.hjson index 1dbcda7a73..2800de597f 100644 --- a/Localization/en-US/Mods.CalamityMod.Keybinds.hjson +++ b/Localization/en-US/Mods.CalamityMod.Keybinds.hjson @@ -5,7 +5,7 @@ AngelicAllianceBlessing.DisplayName: Angelic Alliance Blessing BoosterDash.DisplayName: Booster Dash SpectralVeilTeleport.DisplayName: Spectral Veil Teleport SandCloakEffect.DisplayName: Sand Cloak Effect -PurityUIToggle.DisplayName: Purity UI Toggle +PurityUIToggle.DisplayName: Special Teleport UI Toggle AstralTeleport.DisplayName: Astral Teleport ArmorSetBonus.DisplayName: Armor Set Bonus AdrenalineMode.DisplayName: Adrenaline Mode diff --git a/Systems/UIManagementSystem.cs b/Systems/UIManagementSystem.cs index f8366ace3d..9da8ba9fc7 100644 --- a/Systems/UIManagementSystem.cs +++ b/Systems/UIManagementSystem.cs @@ -62,10 +62,10 @@ namespace CalamityMod.Systems return true; }, InterfaceScaleType.UI)); - // Astral Arcanum overlay (if open) - layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Astral Arcanum UI", delegate () + // Special Teleport overlay (if open) + layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Special Teleport UI", delegate () { - PurityUI.UpdateAndDraw(Main.spriteBatch); + SpecialTeleportUI.UpdateAndDraw(Main.spriteBatch); return true; }, InterfaceScaleType.None)); diff --git a/UI/MiscTextures/PurityCircles.png b/UI/MiscTextures/SpecialTeleportCircles.png similarity index 100% rename from UI/MiscTextures/PurityCircles.png rename to UI/MiscTextures/SpecialTeleportCircles.png diff --git a/UI/PurityUI.cs b/UI/PurityUI.cs index c13a151cd9..2767f40817 100644 --- a/UI/PurityUI.cs +++ b/UI/PurityUI.cs @@ -13,7 +13,7 @@ using Terraria.ModLoader; namespace CalamityMod.UI { // TODO -- This can be made into a ModSystem with simple OnModLoad and Unload hooks. - public static class PurityUI + public static class SpecialTeleportUI { enum CircleStyle { @@ -34,7 +34,7 @@ namespace CalamityMod.UI public static void Load(Mod mod) { - CircleTextures = ModContent.Request("CalamityMod/UI/MiscTextures/PurityCircles", AssetRequestMode.ImmediateLoad).Value; + CircleTextures = ModContent.Request("CalamityMod/UI/MiscTextures/SpecialTeleportCircles", AssetRequestMode.ImmediateLoad).Value; } public static void Unload() diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index 8a03f12c5b..724ed644af 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -813,6 +813,7 @@ namespace CalamityMod // Make various things cheaper (sorted by progression) { Vanilla(ItemID.Leather), ChangeIngredientStack(ItemID.RottenChunk, 2) }, { Vanilla(ItemID.JestersArrow), JesterArrowRecipeEdit }, + { Vanilla(ItemID.TeleportationPotion), TeleportationPotionRecipeEdit }, { Vanilla(ItemID.WormFood), WormFoodRecipeEdit }, { Vanilla(ItemID.BloodySpine), BloodySpineRecipeEdit }, { Vanilla(ItemID.GoblinBattleStandard), ChangeIngredientStack(ItemID.TatteredCloth, 5) }, @@ -957,6 +958,15 @@ namespace CalamityMod r.ChangeIngredientStack(ItemID.WoodenArrow, intendedStack); } + // Increases Teleportation Potion's recipe to give 10 per craft and use 10 bottled waters + private static void TeleportationPotionRecipeEdit(Recipe r) + { + int intendedStack = 10; + if (r.createItem.stack < intendedStack) + r.createItem.stack = intendedStack; + r.ChangeIngredientStack(ItemID.BottledWater, intendedStack); + } + // Change True Night's Edge recipe to require far less mech boss souls private static void TrueNightsEdgeRecipeEdit(Recipe r) { From a24814ee844ed1e0b45f80ae74ebaf3fe723b0ed Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 25 Aug 2023 00:20:49 +0100 Subject: [PATCH 025/258] buff and variable rename --- .../{ProfanedBabs.cs => ProfanedSoulGuardians.cs} | 4 ++-- .../{ProfanedBabs.png => ProfanedSoulGuardians.png} | Bin CalPlayer/CalamityPlayer.cs | 4 ++-- CalPlayer/CalamityPlayerMiscEffects.cs | 6 +++--- Localization/en-US/Mods.CalamityMod.Buffs.hjson | 6 +++--- NPCs/CalamityGlobalTownNPC.cs | 2 +- Projectiles/Summon/MiniGuardianAttack.cs | 4 ++-- Projectiles/Summon/MiniGuardianDefense.cs | 4 ++-- Projectiles/Summon/MiniGuardianHealer.cs | 4 ++-- 9 files changed, 17 insertions(+), 17 deletions(-) rename Buffs/Summon/{ProfanedBabs.cs => ProfanedSoulGuardians.cs} (83%) rename Buffs/Summon/{ProfanedBabs.png => ProfanedSoulGuardians.png} (100%) diff --git a/Buffs/Summon/ProfanedBabs.cs b/Buffs/Summon/ProfanedSoulGuardians.cs similarity index 83% rename from Buffs/Summon/ProfanedBabs.cs rename to Buffs/Summon/ProfanedSoulGuardians.cs index e8712c90f9..06c742fc52 100644 --- a/Buffs/Summon/ProfanedBabs.cs +++ b/Buffs/Summon/ProfanedSoulGuardians.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.Summon { - public class ProfanedBabs : ModBuff //Buff name is reference to how I refer to the guardians as my babs ~Amber + public class ProfanedSoulGuardians : ModBuff { public override void SetStaticDefaults() { @@ -15,7 +15,7 @@ namespace CalamityMod.Buffs.Summon public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (!modPlayer.donutBabs || modPlayer.profanedCrystalBuffs) + if (!modPlayer.pSoulGuardians || modPlayer.profanedCrystalBuffs) { player.DelBuff(buffIndex); buffIndex--; diff --git a/Buffs/Summon/ProfanedBabs.png b/Buffs/Summon/ProfanedSoulGuardians.png similarity index 100% rename from Buffs/Summon/ProfanedBabs.png rename to Buffs/Summon/ProfanedSoulGuardians.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index c4a4bca9b0..bf41531e4b 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -938,7 +938,7 @@ namespace CalamityMod.CalPlayer public bool sandnado = false; public bool plantera = false; public bool astralProbe = false; - public bool donutBabs = false; + public bool pSoulGuardians = false; public bool cEnergy = false; public int healCounter = 300; public bool shellfish = false; @@ -1940,7 +1940,7 @@ namespace CalamityMod.CalPlayer cLamp = false; pGuy = false; cEnergy = false; - donutBabs = false; + pSoulGuardians = false; sWaifu = false; dWaifu = false; cWaifu = false; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 4e101ef4f9..927ac5aaa3 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3026,10 +3026,10 @@ namespace CalamityMod.CalPlayer if (Player.whoAmI == Main.myPlayer) { var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType())); - if (Player.FindBuffIndex(ModContent.BuffType()) == -1) - Player.AddBuff(ModContent.BuffType(), 3600, true); + if (Player.FindBuffIndex(ModContent.BuffType()) == -1) + Player.AddBuff(ModContent.BuffType(), 3600, true); - donutBabs = true; + pSoulGuardians = true; int guardianAmt = 1; float babCheck = profanedCrystal ? 1f : 0f; diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 772c052271..dc2dfbe151 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1321,10 +1321,10 @@ PoleWarperBuff: { Description: Sentient magnets are attracted to you } -ProfanedBabs: { +ProfanedSoulGuardians: { DisplayName: The Profaned Soul - Description: The Profaned Babs will fight for and defend you! - VanityDescription: The Profaned Babs will accompany you! + Description: The Profaned Soul Guardians will fight for and defend you! + VanityDescription: The Profaned Soul Guardians will accompany you! } PuffWarriorBuff: { diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 6c9ff6a9ec..d2dabc3bea 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1135,7 +1135,7 @@ namespace CalamityMod.NPCs { if (Main.LocalPlayer.Calamity().profanedCrystalBuffs) chat = CalamityUtils.GetTextValue("Vanilla.StylistChat.ProfanedSoulCrystal" + Main.rand.Next(1, 2 + 1)); - else if (Main.LocalPlayer.Calamity().donutBabs) + else if (Main.LocalPlayer.Calamity().pSoulGuardians) chat = CalamityUtils.GetTextValue("Vanilla.StylistChat.ProfanedDonuts"); } break; diff --git a/Projectiles/Summon/MiniGuardianAttack.cs b/Projectiles/Summon/MiniGuardianAttack.cs index 0e551b5250..6cdfb444cf 100644 --- a/Projectiles/Summon/MiniGuardianAttack.cs +++ b/Projectiles/Summon/MiniGuardianAttack.cs @@ -41,11 +41,11 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { // Despawn properly - if (Owner.Calamity().donutBabs) + if (Owner.Calamity().pSoulGuardians) Projectile.timeLeft = 2; if (!Owner.Calamity().pArtifact || Owner.dead || !Owner.active) { - Owner.Calamity().donutBabs = false; + Owner.Calamity().pSoulGuardians = false; Projectile.active = false; return; } diff --git a/Projectiles/Summon/MiniGuardianDefense.cs b/Projectiles/Summon/MiniGuardianDefense.cs index 82a60efbed..3d0bd8a393 100644 --- a/Projectiles/Summon/MiniGuardianDefense.cs +++ b/Projectiles/Summon/MiniGuardianDefense.cs @@ -41,11 +41,11 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { // Despawn properly - if (Owner.Calamity().donutBabs) + if (Owner.Calamity().pSoulGuardians) Projectile.timeLeft = 2; if (!Owner.Calamity().pArtifact || Owner.dead || !Owner.active) { - Owner.Calamity().donutBabs = false; + Owner.Calamity().pSoulGuardians = false; Projectile.active = false; return; } diff --git a/Projectiles/Summon/MiniGuardianHealer.cs b/Projectiles/Summon/MiniGuardianHealer.cs index 703baf0dc5..78f7c47996 100644 --- a/Projectiles/Summon/MiniGuardianHealer.cs +++ b/Projectiles/Summon/MiniGuardianHealer.cs @@ -45,13 +45,13 @@ namespace CalamityMod.Projectiles.Summon Player player = Main.player[Projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - if (modPlayer.donutBabs) + if (modPlayer.pSoulGuardians) { Projectile.timeLeft = 2; } if (!modPlayer.pArtifact || player.dead || !player.active) { - modPlayer.donutBabs = false; + modPlayer.pSoulGuardians = false; Projectile.active = false; return; } From 4c62b9c90b14aeee97d608184e8db93a012af722 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 24 Aug 2023 16:49:57 -0700 Subject: [PATCH 026/258] Teleportation potion craft quantity nerf --- Utilities/CalamityRecipes.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index 724ed644af..75a77e5ee8 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -958,10 +958,10 @@ namespace CalamityMod r.ChangeIngredientStack(ItemID.WoodenArrow, intendedStack); } - // Increases Teleportation Potion's recipe to give 10 per craft and use 10 bottled waters + // Increases Teleportation Potion's recipe to give 5 per craft and use 5 bottled waters private static void TeleportationPotionRecipeEdit(Recipe r) { - int intendedStack = 10; + int intendedStack = 5; if (r.createItem.stack < intendedStack) r.createItem.stack = intendedStack; r.ChangeIngredientStack(ItemID.BottledWater, intendedStack); From 0312a3b5b4bc4d245d00557822e5ea47a7aa44bd Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 24 Aug 2023 20:39:22 -0600 Subject: [PATCH 027/258] Locket flags and disabled Sacfice's lifesteal and Final Dawn's stealth generation from clones Nerfed locket's knive amount but buffed their damage --- CalPlayer/CalamityPlayer.cs | 11 +++++++---- Projectiles/CalamityGlobalProjectile.cs | 1 + Projectiles/Rogue/FinalDawnFireSlash.cs | 6 +++--- Projectiles/Rogue/SacrificeProjectile.cs | 3 +++ 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index c4a4bca9b0..bf86cd458c 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3968,9 +3968,12 @@ namespace CalamityMod.CalPlayer int p = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, (int)(damage * 0.075), knockBack * 0.5f, Player.whoAmI); if (p.WithinBounds(Main.maxProjectiles)) - Main.projectile[p].DamageType = DamageClass.Generic; //in case melee/rogue variants bug out + { + Main.projectile[p].DamageType = DamageClass.Generic; //Makes it not proc shit like nanotech, extorter and other stuff + Main.projectile[p].Calamity().LocketClone = true; //To not have clones trigger effects like Sacrifice's Lifesteal and Final Dawn's stealth generation + } - // Handle AI edge-cases. + // Handle AI edge-cases. These are like overlapping projectiles and the projectile not spawning at all if (item.type == ModContent.ItemType()) Main.projectile[p].ai[1] = 1f; if (item.type == ModContent.ItemType()) @@ -3978,8 +3981,8 @@ namespace CalamityMod.CalPlayer if (StealthStrikeAvailable()) { - int knifeCount = 16; - int knifeDamage = (int)Player.GetTotalDamage().ApplyTo(60); + int knifeCount = 12; + int knifeDamage = (int)Player.GetTotalDamage().ApplyTo(75); float angleStep = MathHelper.TwoPi / knifeCount; float speed = 15f; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 1da386d36d..2268b521e7 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -105,6 +105,7 @@ namespace CalamityMod.Projectiles public bool stealthStrike = false; public int stealthStrikeHitCount = 0; public bool extorterBoost = false; + public bool LocketClone = false; // Note: Although this was intended for fishing line colors, I use this as an AI variable a lot because vanilla only has 4 that sometimes are already in use. ~Ben // TODO -- uses of this variable are undocumented and unstable. Remove it from the API surface. diff --git a/Projectiles/Rogue/FinalDawnFireSlash.cs b/Projectiles/Rogue/FinalDawnFireSlash.cs index c676c2ad00..65be647d42 100644 --- a/Projectiles/Rogue/FinalDawnFireSlash.cs +++ b/Projectiles/Rogue/FinalDawnFireSlash.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Rogue { public new string LocalizationCategory => "Projectiles.Rogue"; public bool HasRegeneratedStealth = false; - public const float StealthReturnRatio = 0.25f; + public const float StealthReturnRatio = 0.40f; public override void SetStaticDefaults() { Main.projFrames[Projectile.type] = 11; @@ -93,14 +93,14 @@ namespace CalamityMod.Projectiles.Rogue { CalamityPlayer calamityPlayer = Main.player[Projectile.owner].Calamity(); // Restore stealth - if (!HasRegeneratedStealth) + if (!HasRegeneratedStealth && !Projectile.Calamity().LocketClone) //Locket clones dont create stealth { calamityPlayer.rogueStealth += calamityPlayer.rogueStealthMax * StealthReturnRatio; if (calamityPlayer.rogueStealth > calamityPlayer.rogueStealthMax) calamityPlayer.rogueStealth = calamityPlayer.rogueStealthMax; HasRegeneratedStealth = true; - target.AddBuff(ModContent.BuffType(), 300); } + target.AddBuff(ModContent.BuffType(), 300); } public override bool PreDraw(ref Color lightColor) { diff --git a/Projectiles/Rogue/SacrificeProjectile.cs b/Projectiles/Rogue/SacrificeProjectile.cs index c28094dd21..61dbf71973 100644 --- a/Projectiles/Rogue/SacrificeProjectile.cs +++ b/Projectiles/Rogue/SacrificeProjectile.cs @@ -40,6 +40,9 @@ namespace CalamityMod.Projectiles.Rogue public override void AI() { + if (Projectile.Calamity().LocketClone) + AbleToHealOwner = false; // No healing you too much of your hp + if (ReturningToOwner) { Projectile.timeLeft = 15; From eafa6c04e71940be642109e142c74e69a4bf7721 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 24 Aug 2023 22:16:39 -0600 Subject: [PATCH 028/258] Venerated Locket Item Banlist; contains mainly spikeballs, slick cane and the two short ranged kunais; added a mod call for adding items to said list (such as Dreamtastic from Infernum) Final Dawn stealth gain nerf (i buffed it too much) --- CalPlayer/CalamityPlayer.cs | 123 ++++++++++++------------ CalamityLists.cs | 16 +++ ModSupport/ModCalls.cs | 26 ++++- Projectiles/Rogue/FinalDawnFireSlash.cs | 2 +- 4 files changed, 105 insertions(+), 62 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index bf86cd458c..a3ffbce08f 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -373,7 +373,7 @@ namespace CalamityMod.CalPlayer public bool HasAnyEnergyShield => roverDrive || lunicCorpsSet || sponge; public bool freeDodgeFromShieldAbsorption = false; public bool drawnAnyShieldThisFrame = false; - + // TODO -- Some way to show the player their total shield points. public int TotalEnergyShielding => RoverDriveShieldDurability + LunicCorpsShieldDurability + SpongeShieldDurability; public int TotalMaxShieldDurability => (roverDrive ? RoverDrive.ShieldDurabilityMax : 0) + (lunicCorpsSet ? LunicCorpsHelmet.ShieldDurabilityMax : 0) + (sponge ? TheSponge.ShieldDurabilityMax : 0); @@ -2575,7 +2575,7 @@ namespace CalamityMod.CalPlayer { gSabatonHotkeyHoldTime = 0; } - + if (CalamityKeybinds.NormalityRelocatorHotKey.JustPressed && normalityRelocator && Main.myPlayer == Player.whoAmI) { if (!Player.CCed && !Player.chaosState) @@ -2964,7 +2964,7 @@ namespace CalamityMod.CalPlayer { float angle = MathHelper.TwoPi * i / skullCount; Vector2 initialVelocity = angle.ToRotationVector2().RotatedByRandom(MathHelper.ToRadians(12f)) * skullSpeed * new Vector2(0.82f, 1.5f) * - Main.rand.NextFloat(0.8f, 1.2f) * (i < skullCount / 2 ? 0.25f : 1f); + Main.rand.NextFloat(0.8f, 1.2f) * (i < skullCount / 2 ? 0.25f : 1f); int projectileIndex = Projectile.NewProjectile(source, Player.Center + initialVelocity * 3f, initialVelocity, ModContent.ProjectileType(), damage, 2f, Player.whoAmI); Main.projectile[projectileIndex].tileCollide = false; Main.projectile[projectileIndex].localAI[1] = (Main.projectile[projectileIndex].velocity.Y < 0f).ToInt(); @@ -3285,7 +3285,7 @@ namespace CalamityMod.CalPlayer //Life Jelly regen aura spawn when using a healing potion if (timePotionSick == 1 && Player.whoAmI == Main.myPlayer && lifejelly && !GrandGelatin) - Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType(), 0, 0, Player.whoAmI); + Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType(), 0, 0, Player.whoAmI); //Cleansing Jelly cleansing aura spawn when using a healing potion if (timePotionSick == 1 && Player.whoAmI == Main.myPlayer && cleansingjelly && !GrandGelatin) @@ -3351,7 +3351,7 @@ namespace CalamityMod.CalPlayer //While holding hotkey, but before slam, bring Y velocity closer to 0 if (gSabatonHotkeyHoldTime < 60 && gSabatonHotkeyHoldTime != 0 && !gSabatonFalling) { - Player.velocity.Y *= (60 - (gSabatonHotkeyHoldTime/4f))/60f; + Player.velocity.Y *= (60 - (gSabatonHotkeyHoldTime / 4f)) / 60f; } //Play sound a bit early so it goes in time with the fall if (gSabatonHotkeyHoldTime == 45 && !gSabatonFalling) @@ -3372,11 +3372,11 @@ namespace CalamityMod.CalPlayer if (gSabatonFalling) { SpawnGravistarParticle(); - + //Cap time converted to damage at 2 seconds if (gSabatonFall < 120) gSabatonFall++; - + Player.maxFallSpeed = 40f; Player.gravity = 1.3f; //If the player can fly during the fall, the physics gets a bit funky @@ -3394,7 +3394,7 @@ namespace CalamityMod.CalPlayer gSabatonTempJumpSpeed = 40; } } - + } } #endregion @@ -3405,7 +3405,7 @@ namespace CalamityMod.CalPlayer //Infinite flight granted by some boss attacks if (infiniteFlight) Player.wingTime = Player.wingTimeMax; - + // Reset the Calamity shader. CalamityFireDyeShader = null; @@ -3774,7 +3774,7 @@ namespace CalamityMod.CalPlayer if (Main.rand.NextBool(20)) { int confettiDust = Main.rand.Next(139, 143); - int confetti = Dust.NewDust(new Vector2(hitbox.X,hitbox.Y), hitbox.Width, hitbox.Height, confettiDust, Player.velocity.X, Player.velocity.Y, 0, new Color(), 1.2f); + int confetti = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, confettiDust, Player.velocity.X, Player.velocity.Y, 0, new Color(), 1.2f); Main.dust[confetti].velocity.X *= (float)(1.0 + Main.rand.Next(-50, 51) * 0.01); Main.dust[confetti].velocity.Y *= (float)(1.0 + Main.rand.Next(-50, 51) * 0.01); Main.dust[confetti].velocity.X += Main.rand.Next(-50, 51) * 0.05f; @@ -3915,7 +3915,7 @@ namespace CalamityMod.CalPlayer } } #endregion - + #region Shoot public override bool Shoot(Item item, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockBack) { @@ -3926,59 +3926,62 @@ namespace CalamityMod.CalPlayer { if (item.CountsAsClass()) { - float num72 = item.shootSpeed; - Vector2 vector2 = Player.RotatedRelativePoint(Player.MountedCenter, true); - float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; - float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; - if (Player.gravDir == -1f) - { - num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y; - } - float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); - if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) - { - num78 = (float)Player.direction; - num79 = 0f; - num80 = num72; - } - else + if (!CalamityLists.VeneratedLocketBanlist.Contains(item.type)) { + float num72 = item.shootSpeed; + Vector2 vector2 = Player.RotatedRelativePoint(Player.MountedCenter, true); + float num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; + float num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; + if (Player.gravDir == -1f) + { + num79 = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - vector2.Y; + } + float num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); + if ((float.IsNaN(num78) && float.IsNaN(num79)) || (num78 == 0f && num79 == 0f)) + { + num78 = (float)Player.direction; + num79 = 0f; + num80 = num72; + } + else + { + num80 = num72 / num80; + } + + vector2 = new Vector2(Player.position.X + (float)Player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)Player.direction) + ((float)Main.mouseX + Main.screenPosition.X - Player.position.X), Player.MountedCenter.Y - 600f); + vector2.X = (vector2.X + Player.Center.X) / 2f + (float)Main.rand.Next(-200, 201); + vector2.Y -= 100f; + num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; + num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; + if (num79 < 0f) + { + num79 *= -1f; + } + if (num79 < 20f) + { + num79 = 20f; + } + num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); num80 = num72 / num80; - } + num78 *= num80; + num79 *= num80; + float speedX4 = num78 + (float)Main.rand.Next(-30, 31) * 0.02f; + float speedY5 = num79 + (float)Main.rand.Next(-30, 31) * 0.02f; + int p = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, (int)(damage * 0.075), knockBack * 0.5f, Player.whoAmI); - vector2 = new Vector2(Player.position.X + (float)Player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)Player.direction) + ((float)Main.mouseX + Main.screenPosition.X - Player.position.X), Player.MountedCenter.Y - 600f); - vector2.X = (vector2.X + Player.Center.X) / 2f + (float)Main.rand.Next(-200, 201); - vector2.Y -= 100f; - num78 = (float)Main.mouseX + Main.screenPosition.X - vector2.X; - num79 = (float)Main.mouseY + Main.screenPosition.Y - vector2.Y; - if (num79 < 0f) - { - num79 *= -1f; - } - if (num79 < 20f) - { - num79 = 20f; - } - num80 = (float)Math.Sqrt((double)(num78 * num78 + num79 * num79)); - num80 = num72 / num80; - num78 *= num80; - num79 *= num80; - float speedX4 = num78 + (float)Main.rand.Next(-30, 31) * 0.02f; - float speedY5 = num79 + (float)Main.rand.Next(-30, 31) * 0.02f; - int p = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, (int)(damage * 0.075), knockBack * 0.5f, Player.whoAmI); + if (p.WithinBounds(Main.maxProjectiles)) + { + Main.projectile[p].DamageType = DamageClass.Generic; //Makes it not proc shit like nanotech, extorter and other stuff + Main.projectile[p].Calamity().LocketClone = true; //To not have clones trigger effects like Sacrifice's Lifesteal and Final Dawn's stealth generation + } - if (p.WithinBounds(Main.maxProjectiles)) - { - Main.projectile[p].DamageType = DamageClass.Generic; //Makes it not proc shit like nanotech, extorter and other stuff - Main.projectile[p].Calamity().LocketClone = true; //To not have clones trigger effects like Sacrifice's Lifesteal and Final Dawn's stealth generation + // Handle AI edge-cases. These are like overlapping projectiles and the projectile not spawning at all + if (item.type == ModContent.ItemType()) + Main.projectile[p].ai[1] = 1f; + if (item.type == ModContent.ItemType()) + Main.projectile[p].ai[0] = -1f; } - // Handle AI edge-cases. These are like overlapping projectiles and the projectile not spawning at all - if (item.type == ModContent.ItemType()) - Main.projectile[p].ai[1] = 1f; - if (item.type == ModContent.ItemType()) - Main.projectile[p].ai[0] = -1f; - if (StealthStrikeAvailable()) { int knifeCount = 12; @@ -4066,7 +4069,7 @@ namespace CalamityMod.CalPlayer } else if (AresExoskeleton.ArmExists(Player)) Player.body = EquipLoader.GetEquipSlot(Mod, "AresExoskeleton", EquipType.Body); - + else if ((abyssalDivingSuitPower || abyssalDivingSuitForce) && !abyssalDivingSuitHide) { Player.legs = EquipLoader.GetEquipSlot(Mod, "AbyssalDivingSuit", EquipType.Legs); @@ -4666,7 +4669,7 @@ namespace CalamityMod.CalPlayer break; if (Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].friendly) { - bool attack = Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType(); + bool attack = Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType(); bool defense = Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType(); if (attack || defense) { diff --git a/CalamityLists.cs b/CalamityLists.cs index 878f01aa30..8ab290132b 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -160,6 +160,8 @@ namespace CalamityMod public static List DisabledSummonerNerfItems; public static List DisabledSummonerNerfMinions; + public static List VeneratedLocketBanlist; //To ban projectiles from locket, mainly spikeballs altho Toasty asked me to add mod calls for adding stuff like Dreamtastic + public static void LoadLists() { donatorList = new List() @@ -2670,6 +2672,18 @@ namespace CalamityMod DisabledSummonerNerfItems = new(); DisabledSummonerNerfMinions = new(); + + VeneratedLocketBanlist = new List() + { + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType(), + ItemType() + }; } public static void UnloadLists() @@ -2758,6 +2772,8 @@ namespace CalamityMod DisabledSummonerNerfItems = null; DisabledSummonerNerfMinions = null; + + VeneratedLocketBanlist = null; } } } diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index 7db7b60177..39f7d74de8 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -1702,8 +1702,25 @@ namespace CalamityMod public static bool IsOnPersistentBuffList(int type) => CalamityLists.persistentBuffList.Contains(type); #endregion + #region Venerated Locket Bans + public static bool SetVeneratedLocketBanlist(int type, bool shouldBeListed2) + { + if (shouldBeListed2 && !CalamityLists.VeneratedLocketBanlist.Contains(type)) + { + CalamityLists.VeneratedLocketBanlist.Add(type); + return true; + } + else if (!shouldBeListed2) + { + return CalamityLists.VeneratedLocketBanlist.Remove(type); + } + + return false; + } + #endregion + #region Summoner Cross Class Nerf Disabling - public static bool SetSummonerNerfDisabledByMinion(int type, bool disableNerf) + public static bool SetSummonerNerfDisabledByMinion(int type, bool disableNerf) { if (disableNerf && !CalamityLists.DisabledSummonerNerfMinions.Contains(type)) { @@ -2684,6 +2701,13 @@ namespace CalamityMod DraedonDialogRegistry.DialogOptions.Add(new(inquiry, response, condition)); return null; + case "SetVeneratedLocketBanlist": + if (args.Length < 2 || !isValidItemArg(args[1])) + return new ArgumentException("ERROR: Must specify a valid item to check status of."); + if (args.Length != 3 || args[2] is not bool shouldBeListed2) + return new ArgumentException("ERROR: Must specify a bool that determines whether the weapon is banned from being cloned by Venerated Locket."); + return SetVeneratedLocketBanlist(castItem(args[1]).type, shouldBeListed2); + default: return new ArgumentException("ERROR: Invalid method name."); } diff --git a/Projectiles/Rogue/FinalDawnFireSlash.cs b/Projectiles/Rogue/FinalDawnFireSlash.cs index 65be647d42..7f869fcd48 100644 --- a/Projectiles/Rogue/FinalDawnFireSlash.cs +++ b/Projectiles/Rogue/FinalDawnFireSlash.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Rogue { public new string LocalizationCategory => "Projectiles.Rogue"; public bool HasRegeneratedStealth = false; - public const float StealthReturnRatio = 0.40f; + public const float StealthReturnRatio = 0.35f; public override void SetStaticDefaults() { Main.projFrames[Projectile.type] = 11; From cd1d25853d7426576204e2fc246d16135a4d06c4 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 24 Aug 2023 22:58:06 -0600 Subject: [PATCH 029/258] Final MFing Dawn (40% stealth was actually fine, made the stealth return variable static, fixed clone generating stealth) --- CalPlayer/CalamityPlayer.cs | 2 +- Localization/en-US/Mods.CalamityMod.Configs.hjson | 2 +- Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson | 4 ++-- Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson | 4 ++-- Projectiles/Rogue/FinalDawnFireSlash.cs | 2 +- Projectiles/Rogue/FinalDawnProjectile.cs | 4 +++- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index a3ffbce08f..6ec02390e7 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3977,7 +3977,7 @@ namespace CalamityMod.CalPlayer // Handle AI edge-cases. These are like overlapping projectiles and the projectile not spawning at all if (item.type == ModContent.ItemType()) - Main.projectile[p].ai[1] = 1f; + Main.projectile[p].ai[1] = 1f; //MUST BE 1 OTHERWISE CLONES GENERATE STEALTH AAAAAAAAAAA if (item.type == ModContent.ItemType()) Main.projectile[p].ai[0] = -1f; } diff --git a/Localization/en-US/Mods.CalamityMod.Configs.hjson b/Localization/en-US/Mods.CalamityMod.Configs.hjson index eba58802b8..f2f8a3ade9 100644 --- a/Localization/en-US/Mods.CalamityMod.Configs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Configs.hjson @@ -423,4 +423,4 @@ CalamityConfig: { Label: "[i:Book] Wiki Status Message" Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry. } -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson index ef43f00306..3a78fdb492 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson @@ -235,7 +235,7 @@ RuneofKos: { Tooltip: ''' An ornate sigil of the Profaned Flame - Hatred yet burns upon its brow + Hatred yet burns upon its brow [SPAWN] Not consumable ''' @@ -307,4 +307,4 @@ YharonEgg: { Not consumable An effigy of a Phoenix Dragon egg, used in worship ''' -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index bfe3cc19c2..0c171b76c1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -734,7 +734,7 @@ SubsumingVortex: { Press to cast a gigantic vortex in front of you with a bias towards the mouse When enemies are near the vortex, it sends multiple fast-moving smaller vortices towards them Releasing fires the vortex towards the mouse if enough time has passed - Damage scales based on how long the vortex was held out + Damage scales based on how long the vortex was held out ''' } @@ -955,4 +955,4 @@ YharimsCrystal: { Tooltip: "[GFB]" TooltipNormal: Fires draconic beams of total annihilation TooltipGFB: ...throughs a pice of dnimite -} +} \ No newline at end of file diff --git a/Projectiles/Rogue/FinalDawnFireSlash.cs b/Projectiles/Rogue/FinalDawnFireSlash.cs index 7f869fcd48..8cee1e8eac 100644 --- a/Projectiles/Rogue/FinalDawnFireSlash.cs +++ b/Projectiles/Rogue/FinalDawnFireSlash.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Rogue { public new string LocalizationCategory => "Projectiles.Rogue"; public bool HasRegeneratedStealth = false; - public const float StealthReturnRatio = 0.35f; + public static float StealthReturnRatio = 0.40f; public override void SetStaticDefaults() { Main.projFrames[Projectile.type] = 11; diff --git a/Projectiles/Rogue/FinalDawnProjectile.cs b/Projectiles/Rogue/FinalDawnProjectile.cs index cfbc669dd8..e520d9d24c 100644 --- a/Projectiles/Rogue/FinalDawnProjectile.cs +++ b/Projectiles/Rogue/FinalDawnProjectile.cs @@ -138,12 +138,14 @@ namespace CalamityMod.Projectiles.Rogue else { //This one doesn't consume stealth since it replenishes stealth on hits - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, + int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + if (p.WithinBounds(Main.maxProjectiles) && Projectile.Calamity().LocketClone) + Main.projectile[p].Calamity().LocketClone = true; // NO STEALTH GEN OK? } } } From cb5a1a235a2177844dd0c360144dac11167c3a79 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Aug 2023 12:13:47 +0700 Subject: [PATCH 030/258] aquatic aberration bestiary typo fix --- Localization/en-US/Mods.CalamityMod.Bestiary.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson index ba3e243db0..dfc3a10260 100644 --- a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson +++ b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson @@ -139,7 +139,7 @@ DarkEnergy: - DesertNuisance: Though these serpents are of the Desert Scourge’s species, they are notably younger and less developed. Choosing to hunt in a pack with the large scourge due to this weakness, many have seen them tear apart prey not unlike the piranhas that once populated the former sea. CosmicGuardian: Though of the same species as the nameless serpent, their minds and functions are far more basic. They possess very little will of their own and blindly follow the orders of their gluttonous master. HiveTumor: This tumor acts as the brain of the putrid wasteland, being all that is left of the minds of the slain gods that lay there. The creatures of the Corruption exist to protect it, and those who attempt to harm it rarely live to tell the tale. -AquaticAberration: ASpawn of the immense Leviathan, their lifespan can be measured in hours. All they know is how to hunt for their masters. Even non-aquatic life is well within their reach, due to their uncanny ability to fly through air just as easily as swimming through water. +AquaticAberration: A spawn of the immense Leviathan, their lifespan can be measured in hours. All they know is how to hunt for their masters. Even non-aquatic life is well within their reach, due to their uncanny ability to fly through air just as easily as swimming through water. LeviathanStart: A lure created by the Water Elemental, Anahita. It sings so sweetly, its voice full of promise and warmth, but beware: follow the siren’s call at your own peril. PerforatorCyst: This twitching and convulsing pile of gore acts as the heart of the Perforator Hive, harvesting what small amount of diluted Ichor flowing through the Crimson is left and feeding it to the Hive. Little else is known about it, for those who dare to disturb it have become indistinguishable from the landscape. CosmicLantern: These lanterns possess a magical, distorted flame that radiates no heat whatsoever. If one looks closely into their fire, they may see another world entirely. From f31fb64522e47f5614f15b4dfea45bc4e4e86641 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 24 Aug 2023 22:18:25 -0700 Subject: [PATCH 031/258] Fixed some bad wording in the tooltips --- CalPlayer/CalamityPlayerLifeRegen.cs | 4 ++-- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 52ffd2da5b..5d370e5d72 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -511,7 +511,7 @@ namespace CalamityMod.CalPlayer if (purity) { - Player.lifeRegen += 4; + Player.lifeRegen += 5; Player.lifeRegenTime += 6; Player.statDefense += PurityBonusDefense; //heal every 5 frames @@ -533,7 +533,7 @@ namespace CalamityMod.CalPlayer if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; //add extra regen when effected by a debuff - Player.lifeRegen += 6; + Player.lifeRegen += 5; PurityBonusDefense = 18; if (ReducedHealingCounter < 120) ReducedHealingCounter++; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index cb2649b326..3d732505e0 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -247,8 +247,8 @@ Purity: { A once infected crystal, now perfectly purified You emit light +80 max life - Your life regen is increased by 4 - Increases life regen by 6 while afflicted with a debuff + Your life regen is increased by 5 + You gain an additional 5 life regen while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff Your natural life regen is massively improved Greatly reduces how long you are afflicted with debuffs @@ -362,7 +362,7 @@ InfectedJewel: { ''' A beautiful gem that has been corrupted by the astral infection Life regen increased by 2 - Increases life regen by 4 while afflicted with a debuff + You gain an additional 4 life regen while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff When afflicted with a debuff, you will gain 14 defense This defense will begin to fade away when you are no longer debuffed @@ -461,7 +461,7 @@ CrownJewel: { Tooltip: ''' Life regen increased by 1 - Increases life regen by 3 while afflicted with a debuff + You gain an additional 3 life regen while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff When afflicted with a debuff, you will gain 8 defense This defense will begin to fade away when you are no longer debuffed From c65a20fa3cb1807245945a5e59798d9f3e198f41 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 24 Aug 2023 23:45:43 -0600 Subject: [PATCH 032/258] Optimized the ModCall, removed the boolean check as it just needs the item to be added and not added and removed like cross class summoner nerfs disabling (btw why does Amalgam also have a bool check?) --- ModSupport/ModCalls.cs | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index 39f7d74de8..0be1f42525 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -1703,18 +1703,13 @@ namespace CalamityMod #endregion #region Venerated Locket Bans - public static bool SetVeneratedLocketBanlist(int type, bool shouldBeListed2) + public static bool AddToVeneratedLocketBanlist(int type) { - if (shouldBeListed2 && !CalamityLists.VeneratedLocketBanlist.Contains(type)) + if (!CalamityLists.VeneratedLocketBanlist.Contains(type)) { CalamityLists.VeneratedLocketBanlist.Add(type); return true; } - else if (!shouldBeListed2) - { - return CalamityLists.VeneratedLocketBanlist.Remove(type); - } - return false; } #endregion @@ -2701,12 +2696,12 @@ namespace CalamityMod DraedonDialogRegistry.DialogOptions.Add(new(inquiry, response, condition)); return null; - case "SetVeneratedLocketBanlist": - if (args.Length < 2 || !isValidItemArg(args[1])) - return new ArgumentException("ERROR: Must specify a valid item to check status of."); - if (args.Length != 3 || args[2] is not bool shouldBeListed2) - return new ArgumentException("ERROR: Must specify a bool that determines whether the weapon is banned from being cloned by Venerated Locket."); - return SetVeneratedLocketBanlist(castItem(args[1]).type, shouldBeListed2); + case "AddToVeneratedLocketBanlist": + if (args.Length < 2) + return new ArgumentException("ERROR: Not enough arguments"); + if (args[1] is not int ItemType) + return new ArgumentException("ERROR: Must specify a valid item type."); + return AddToVeneratedLocketBanlist(ItemType); default: return new ArgumentException("ERROR: Invalid method name."); From 30289e6fd988ffef5db058bf5853dbedc5968102 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 24 Aug 2023 22:51:26 -0700 Subject: [PATCH 033/258] Added a Purity sprite I didn't say it's good --- Items/Accessories/Purity.cs | 4 ++-- Items/Accessories/Purity.png | Bin 7621 -> 3265 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index b4f69892b5..49e7f8f711 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -17,8 +17,8 @@ namespace CalamityMod.Items.Accessories public override void SetDefaults() { Item.defense = 8; - Item.width = 24; - Item.height = 24; + Item.width = 22; + Item.height = 44; Item.accessory = true; Item.value = CalamityGlobalItem.Rarity12BuyPrice; Item.rare = ModContent.RarityType(); diff --git a/Items/Accessories/Purity.png b/Items/Accessories/Purity.png index 5bd31a409e2941cef2417e53b3d6e53e9afa097a..2c81cd5c7cbc747f83788b160e52648d89ed855a 100644 GIT binary patch delta 529 zcmV+s0`C3AJHZ(tiBL{Q4GJ0x0000DNk~Le0000O0000i2nGNE0Dqi#L$M*f3V#93 zNkl_kgbP{`oBc4JGQj zI^P}SA28V4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%buIo#}$QJy&u7rJAo9bmzSaXNj3$GT^6tRF|%u2?vYP>P_nr48o~C_>p8 zE`&OQU{)I0UI!$n1b@y+swXUbX&75@b4Tgjdne~u{C)Y}?6Y`kfum_F+hd~vj|1^! z66rJ$=o*N*^SR4z?}N>!72wTkkV!qi$~?1|cifnWS_^fBBB)qs54K@Y&wP{=NK8#9 zh(IaqyakYSFzs~S^z^~{+NuMsHSB-JXb)DQq;6~YNoe{6n}3Zb9-F|NyhSp65+V@= z8F?<)-Qrc#hhphz1vsG>wk3YgRP*_C++@u$lLW&W6hlv(SD9n;xR{{oDx88HPCJ3q zukReu)idaX?Sus(^7iyh1^~0x8h06S_Ebz(k?9fO<_#na0|74wfzz+Maiss%6Ly!x zK;HNM$hkvj0e{|Xz*yFfkp$P{a=TZ_dg%IRyS*x zlaR84r7SRBdc~)br#?$0B6p6-It~D9Yw?EOk(?w@3xe0a{j%Nsh{QykJnR@B1^IgL z4}V~inSUcW1^|nz(ASE@Zz#-i-r5nez`H0k$#`ILPurvDgnkHsZ1jRneC-Re?3zC8 zgD>^>bzL91tGVUsdP2hsN0w~8dr zGjd};!T{j*RmU<%mS^>~3~@a%bfW3ngA)e2XMg={fN$%$k0Ueeym~F`J{(WJTxhnp8=akV@+DBjSS zn|=cz#>hG^VPj*USA;ZfN|{XufTcAme`UG!qkl8_Nr29Z%-`Y1nvZ1m-e2?;iyO$V qrxcyC)3LFyGSz!OlJmb${|hX7G)l&!Weqt10000 Date: Thu, 24 Aug 2023 23:51:49 -0600 Subject: [PATCH 034/258] as an int index of the item --- ModSupport/ModCalls.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index 0be1f42525..90e028304a 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -2698,10 +2698,10 @@ namespace CalamityMod case "AddToVeneratedLocketBanlist": if (args.Length < 2) - return new ArgumentException("ERROR: Not enough arguments"); - if (args[1] is not int ItemType) - return new ArgumentException("ERROR: Must specify a valid item type."); - return AddToVeneratedLocketBanlist(ItemType); + return new ArgumentException("ERROR: Not enough arguments!"); + if (args[1] is not int itemType) + return new ArgumentException("ERROR: Must specify a valid item type as an int index of the item."); + return AddToVeneratedLocketBanlist(itemType); default: return new ArgumentException("ERROR: Invalid method name."); From c0b993e13ef982be86b668845b44ecd321d54958 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:27:06 +0700 Subject: [PATCH 035/258] random ass ssv tooltip spacing --- Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index bfe3cc19c2..a52ec10ad9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -734,7 +734,7 @@ SubsumingVortex: { Press to cast a gigantic vortex in front of you with a bias towards the mouse When enemies are near the vortex, it sends multiple fast-moving smaller vortices towards them Releasing fires the vortex towards the mouse if enough time has passed - Damage scales based on how long the vortex was held out + Damage scales based on how long the vortex was held out ''' } From 8f6561af6ebddc10b30fb7fec070637e53db3d88 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 25 Aug 2023 09:45:08 -0400 Subject: [PATCH 036/258] Further SSV balance changes --- Balancing/BalancingChangesManager.cs | 4 ++-- Items/Weapons/Magic/SubsumingVortex.cs | 2 +- Projectiles/Magic/EnormousConsumingVortex.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 47037c8dbb..398ec7fe84 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -377,8 +377,8 @@ namespace CalamityMod.Balancing // 85% resist to Chicken Cannon. NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.15f, ProjectileType()))); - // 35% resist to Subsuming Vortex. - NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.65f, ProjectileType(), ProjectileType(), ProjectileType()))); + // 40% resist to Subsuming Vortex. + NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.6f, ProjectileType(), ProjectileType(), ProjectileType()))); // 30% resist to Murasama. NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new ProjectileResistBalancingRule(0.7f, ProjectileType()))); diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index 84eaddb6ba..fefa9fab34 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic public const float ReleaseSpeed = 33f; - public const float ReleaseDamageFactor = 4.48f; + public const float ReleaseDamageFactor = 4.65f; public static readonly SoundStyle ExplosionSound = new("CalamityMod/Sounds/Custom/SubsumingVortexExplosion"); diff --git a/Projectiles/Magic/EnormousConsumingVortex.cs b/Projectiles/Magic/EnormousConsumingVortex.cs index 418c72b519..59e21347fd 100644 --- a/Projectiles/Magic/EnormousConsumingVortex.cs +++ b/Projectiles/Magic/EnormousConsumingVortex.cs @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Magic if (Main.myPlayer == Projectile.owner) { Projectile.velocity = Projectile.SafeDirectionTo(Main.MouseWorld) * SubsumingVortex.ReleaseSpeed; - Projectile.damage = (int)(Projectile.damage * (1f + Time * 0.0145f)); + Projectile.damage = (int)(Projectile.damage * (1f + Time * 0.0152f)); HasBeenReleased = true; Projectile.netUpdate = true; } From 74b484943a3ed4440027bdd7db6d8150ad6993d9 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 25 Aug 2023 10:18:55 -0400 Subject: [PATCH 037/258] SSV disappearing act --- Projectiles/Magic/EnormousConsumingVortex.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Projectiles/Magic/EnormousConsumingVortex.cs b/Projectiles/Magic/EnormousConsumingVortex.cs index 59e21347fd..9e0aacb8b2 100644 --- a/Projectiles/Magic/EnormousConsumingVortex.cs +++ b/Projectiles/Magic/EnormousConsumingVortex.cs @@ -130,8 +130,6 @@ namespace CalamityMod.Projectiles.Magic } Projectile.netUpdate = true; } - else if (!vortexStillInUse) - Projectile.Kill(); } } From edef441be082d3213bee6e5f778f205aaa754c68 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 25 Aug 2023 10:59:03 -0400 Subject: [PATCH 038/258] Nerfed Prismatic Breaker laser damage --- Items/Weapons/Melee/PrismaticBreaker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index 76a3836524..43a1e1404d 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -84,7 +84,7 @@ namespace CalamityMod.Items.Weapons.Melee } else { - Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 0.5f, velocity.Y * 0.5f, type, (int)(damage * 1.3f), knockback, player.whoAmI); + Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 0.5f, velocity.Y * 0.5f, type, (int)(damage * 1.1f), knockback, player.whoAmI); } return false; } From b6dc1803fb0846d1ecf40bc153ff1c090aec362a Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 25 Aug 2023 11:01:48 -0400 Subject: [PATCH 039/258] Just realized I somehow fucked up the math and made the beam last 25 seconds instead of 15... --- Projectiles/Melee/PrismaticBeam.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Melee/PrismaticBeam.cs b/Projectiles/Melee/PrismaticBeam.cs index 9eb22b1903..712cd1c434 100644 --- a/Projectiles/Melee/PrismaticBeam.cs +++ b/Projectiles/Melee/PrismaticBeam.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Melee public Player Owner => Main.player[Projectile.owner]; public override Color LaserOverlayColor => CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly / ColorSet.Length % 1f, ColorSet); public override Color LightCastColor => LaserOverlayColor; - public override float Lifetime => 1500f; + public override float Lifetime => 900f; public override float MaxScale => 1.5f; public override float MaxLaserLength => 2200f; public override Texture2D LaserBeginTexture => ModContent.Request("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value; @@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.penetrate = -1; Projectile.tileCollide = false; Projectile.hide = true; - Projectile.timeLeft = 1500; + Projectile.timeLeft = 900; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 10; } From 1b4836a55ecbf3649a9b340e4e1f16cca185f762 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 25 Aug 2023 11:35:18 -0400 Subject: [PATCH 040/258] Reduced Prismatic Breaker's Thanatos resist (why was it 50%?????) --- Balancing/BalancingChangesManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 398ec7fe84..f771e20fad 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -302,9 +302,6 @@ namespace CalamityMod.Balancing // 50% resist to Chicken Cannon. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); - // 50% resist to Prismatic Breaker. (why is this more than BOTH Rancor and Yharim's Crystal? jesus fuck this weapon seriously) - NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType())))); - // 50% resist to Tarragon Throwing Darts Thorns. (LOL) NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType(), ProjectileType())))); @@ -335,6 +332,9 @@ namespace CalamityMod.Balancing // 30% resist to Dragon Scales and The Wand's tornadoes NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType(), ProjectileType())))); + // 30% resist to Prismatic Breaker's laser beam. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType())))); + // 25% resist to Dragon Rage projectiles. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, DragonRageFilter)))); From e397aa1dd543ce10f9343f426f3e6ea25ef9022e Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 25 Aug 2023 23:58:49 +0700 Subject: [PATCH 041/258] alcohol buffs and radiant star resprites --- Buffs/Alcohol/BloodyMaryBuff.png | Bin 582 -> 607 bytes Buffs/Alcohol/CaribbeanRumBuff.png | Bin 567 -> 652 bytes Buffs/Alcohol/CinnamonRollBuff.png | Bin 517 -> 584 bytes Buffs/Alcohol/EverclearBuff.png | Bin 633 -> 694 bytes Buffs/Alcohol/EvergreenGinBuff.png | Bin 524 -> 720 bytes Buffs/Alcohol/FireballBuff.png | Bin 561 -> 627 bytes Buffs/Alcohol/GrapeBeerBuff.png | Bin 555 -> 661 bytes Buffs/Alcohol/MargaritaBuff.png | Bin 594 -> 698 bytes Buffs/Alcohol/MoonshineBuff.png | Bin 591 -> 702 bytes Buffs/Alcohol/MoscowMuleBuff.png | Bin 604 -> 776 bytes Buffs/Alcohol/RedWineBuff.png | Bin 552 -> 664 bytes Buffs/Alcohol/RumBuff.png | Bin 591 -> 739 bytes Buffs/Alcohol/ScrewdriverBuff.png | Bin 513 -> 622 bytes Buffs/Alcohol/StarBeamRyeBuff.png | Bin 608 -> 708 bytes Buffs/Alcohol/TequilaBuff.png | Bin 523 -> 639 bytes Buffs/Alcohol/TequilaSunriseBuff.png | Bin 555 -> 557 bytes Buffs/Alcohol/VodkaBuff.png | Bin 540 -> 585 bytes Buffs/Alcohol/WhiskeyBuff.png | Bin 573 -> 720 bytes Buffs/Alcohol/WhiteWineBuff.png | Bin 562 -> 667 bytes Items/Weapons/Rogue/RadiantStar.cs | 4 ++-- Items/Weapons/Rogue/RadiantStar.png | Bin 1331 -> 1064 bytes .../en-US/Mods.CalamityMod.Configs.hjson | 2 +- .../Mods.CalamityMod.Items.SummonItems.hjson | 4 ++-- ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 2 +- Projectiles/Rogue/RadiantStar2.cs | 3 +-- Projectiles/Rogue/RadiantStarKnife.cs | 3 +-- 26 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Buffs/Alcohol/BloodyMaryBuff.png b/Buffs/Alcohol/BloodyMaryBuff.png index bee4c0d4f1032d537113b35770d7dc630f4eb802..04b959506c55e18cebd847d12a9b199c4eb2d49a 100644 GIT binary patch delta 583 zcmV-N0=WIg1m6UZBYyw^b5ch_0Itp)=>Px%8A(JzR9J=OmrY0;K^TUgH2y-AR-q6u z=AZ|o^`amYOlv#{UKFWVYLMjD@tl*19*_)n}1q%5e2Alzf=-Eg^iXI z-i1CX@y_v<5_=~K0jP7^0qB0RZF!yV2djVv1k%g{(s^04+j2tBsK`qauACx~Xcdm@ z+`j?%(3^gv2JW0dYz<6%13=t)mh&M1zV5fT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 628 zcmV-)0*n2(1dIicBYyw^b5ch_0Itp)=>Px%MoC0LR9J=Om(NR7Q545N)0h>7#w@ad zOroGfL=iNEN{oVb6&VG#45U>;|A3p?1+D_yMMMNqE!sp$f*sfw_HM0K}f(lD04pgp;`6 z(J%JlUTYqA2=wQM0O-9b{kAQQ0GL^E@zb6aIC|nJ0GFro05sLhxG}*Cl~=BEhk)uE zi8sLkN+J=_oiG1K3AjfGbwfGg*3 zTjMGJ4zO@PPwmLVFi1fcWLVE`)q7yz|31*?7ROU11Sp8f_l#23#Vb73W6enOBwigSD3c*puo8z?f=lg3ZgTOXEW1!Mp1K%pH__g;pFU zcL=De+U1lh&s<5Ul$c8WKdt`=Kyh1C45hYWEE+iPUndax?)U%s@Axa?jk#Q{;Wf7a O0000zCBfQ5y1Vi7?^NRuJ~v9MSd3k4(EtU?TmfC^ckJbddyYN) zs~-qS0YRR>XnhXAlSH{Q-}t#LC(&l#ykkqTlciI0BW(s>iEtF~Js0G`^jgZ?C^f_5 zil+d?n_mH0W!_&70`RUm>F`9nY4-!dQ9w}4<+<#kL?;0AQon%*4MsJoylw0`gdSyPf`RCTysa&rBhhvkDx{9sxJ@f`!(J=T1xdfoP z>JgAV6H*282;nFYb*r{xxz!chEcmf|oRjG1?v-Qvot5fAxLvW}E1~iG=t4oncl{X& hMOPrk{}}#v{117tuPwMIn)d(z002ovPDHLkV1n+%1y29~ diff --git a/Buffs/Alcohol/CinnamonRollBuff.png b/Buffs/Alcohol/CinnamonRollBuff.png index 2d2e710cd485788d87c318f40114a970e0d119f7..075531eacc35208e68d71faea6966e8add03e85f 100644 GIT binary patch delta 560 zcmV-00?+-01jq!CBYyw^b5ch_0Itp)=>Px%0!c(cR9J=OmrF>LQ5462;|$@VL`;;y zQmHl}iH>Nv@G;WDl@drov{rC65N@=#u2cj;XdSpPA&L-J`GiSSgcjz)2U;?wG5Lxl zlxcD2&UCJyGmL@W=)bw&Ip>~p&-rui<8u*5go}j>Ank$|b$`qv0^loX7KX0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UobzX#GfbpfB_0D&hAjm%MW`j1FAZOd1dWM03P4FHD`j( z(>DO9y?MdXZ;k@l%$JlDY6Hh!jRWv}SIqZR zPXTcLOdSCGPhA7x+fX+EMH>$R;Kf>r?%mA*)O0m!3ou84=J-!zpx7=~3jqBCvd2G?;(w34Z_(n0!qTP^(VP}wo&pL= ziJ1+;{9L_$H=ON}_H}Zzv=t&*dsMHWe}lOS*x~w>yXmhL0DQ?C6jRCplQw6-?p8Ek zf#Q@<`xJ0#{neM-0ch(J+i}OM`3KPJh57G+f5mk1aR7QBHUW_QnBIJK_!GBtns31s z$h?aCwtqj-9L|zF01gD|0oYW!6@b8qUmKT*e+8hxov+!xa4P`Gx|BBldstpjbN2ql8rM9T^awebpyu^r4&K*7C3_EN39!*d^ieW7Cj zOuF?-rx<7N{nVwI^a!UU`ry>&RakHZ9KU`4pBR6~KLJ^7$N?|bi68&~002ovPDHLk FV1f$tIUxW5 delta 609 zcmV-n0-pW01^EP!BYy%wNkli~^74Gnd_A! z)KsxZ0TWUWB!`iuTL4_{z6L-x^G17rc76GPu+j~DDyKq8iUa9HFspEdz# zIeT1tFEXM0(&15!*Q~7eDd2_q{CE;?-9MB>fap!;I?B+?f2>@>{CEs?%Szy6}c$!Y^oN3_fu+ou>A)B_e*;nk711` zgzXAQ&Lvl}pC^{o?$>a-6oAySQlg|>`2`wJ0r0$|27vm>*8r?Kyk=iu_KNl>AaHv) z5A1DZfm;9Sz|VC6I{v6R@zTT3i`RDr+@4U*1zufoT|8P4@nTOB$VD#oKvspl=K^>A vOYi1f7h}nShz~m%34B+;odbTscLnwVO!m5Wm=zMH00000NkvXXu0mjf2q_mm diff --git a/Buffs/Alcohol/EvergreenGinBuff.png b/Buffs/Alcohol/EvergreenGinBuff.png index c7d719d0655608674c37a24311980027db0f65d8..5e41d87eb635a0b2c7cd52f1cd11632dacd6db1d 100644 GIT binary patch delta 697 zcmV;q0!ICe1keSLBYyw^b5ch_0Itp)=>Px%ib+I4R9J=Om)}d1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_;m%|?*-e{i<0BB&b4bq8}Bcd-@R55W!8Y@!~B2Vj^6;! XE2cRJc@BYp00000NkvXXu0mjfL7wqh delta 531 zcmV+u0_^>*1giv)BYy$%NklL7x2kWvKu$RMOvMF)u~D7aZ&3Pnmfymwx>H}6G5 zhj-6%^SyiTxq0XNbHCRGG)NHLNgfW+qaRD>9vc(+{b9q-Eq{!6MEvglj$v2&z8m)K zZ#Mv!6cF_0*}_=>2B!uhH~!xGW7zgODHg8t{J~bj9R=(+7sejW{vXq)=*MqIADO(K zIq!}Ff_!QF_`%av0P+`3wI!^4-UHyy^_!8r&MDAEPzf80KaGjyl~(}NPWbiV+GHO9 zzrOqhVCZ}bfPc%S5di8NKm5@<0N`bHAApfVKi_Z7Pn!qdJqg<6{=To?E)d^OxTk=idpkE3{D1S9Y*1{dP6$%6vK{c?x&rdK zd^I;wjNG6*z`hgWvc%@GdqsB?5bQoc_GWh)fRou70IuG<1T;S?UcY$buY14NmdA!W z3WVKi(6O|1#X--v{(Q|C<6w7Ist4|N#e%Jb#*YinIwJnpmywXT0%1>>6cSh92y7*z V{Eg_@jSK()002ovPDHLkV1m$t18V>P diff --git a/Buffs/Alcohol/VodkaBuff.png b/Buffs/Alcohol/VodkaBuff.png index 47e680eedea14082484d79f493d9f219b783ff41..b2c2eb1496164f4b4051f4fef2607e7c9e575331 100644 GIT binary patch delta 561 zcmV-10?z%M1jz)DBYyw^b5ch_0Itp)=>Px%14%?dR9J=Om(NSnVI0R_b0c;sQbHJv zEy$B&MuLinsU3>C#MoNkKOk6#LASgo9fVyLbn@Uq(1R2r)TPyof|5}Oao`T+ucZ-l z6Ov)9!{f90Jbb@w$k0c8pT6(s^Lf6{^L~H651;4jpo%gl3x5Yd(+MwXxr;JDr~jc6 zc;>rrIpOKgR|;P%W{tI0jWF?@mo&lN&MADt^xK=yc?MSVCdx&%eXlX z=*r!m%Sz&}^lybfYP%sGR?`41{rCVtYs*a~&rZ37IS$xie=85b`r?K%{(b#hLpETJ z1K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mYF51!To5KM~e&J9}t z*x{475z{_gEZ6!%>7Ay&PGD|N?CogO>}6+QjuJMy_XF^y@G1bis~iA?4d1+p%01E} zC4r*=+`rcaoHh;|dSZ-Qw0x&q7GH0an{&d_juX;CZzETU=nE?gW-Hb_PXV0Ag zplVw+0HI##=4VZ!a3_5M0D5|bu^~Qc`EuV4_GdsLVvGO~>WP}rA& zO{S)YjejC@WEz0>t_}b`hlc?85R$WYxm*BbjNqa+U>^qVdKk;{Lc>IGotO&Wmi#uEUNbzcD(kDZ$9 zhI<`8pC?=e{C_%E&J}qnT<^ML4nFM`UH5sS=ZqQ?jsiYZ70Th$Tps}4cN+jW*gAHu zf17>`K+i}g0PhnY9G+4LPXR@&x?RtFGYi*@N!~OY!K77S=i>(O&$nQq`@~aF4Hn@k z@V}4}l_ER^lq2=?Xb;aB^K8-NKJlO(fR{&hIlBVDRe#Ile?z6_iSQH<)VJGG_RVwd zx*}FLl->XG8OSTSkhMI7u7Gl`T>1T6c-3(MfXO*i*YUk9kl!E1z3Y7*e^v}f0U?^< zO8A-YhXBNH7$wvbyf$B!M+irOXj-+Q6imgo3Z~b76lYrd?YRDArTrk>saWupkewQv nt%$hXpB|A=bp>La_rK%6!0oTK9WRnW00000NkvXXu0mjfeis23 diff --git a/Buffs/Alcohol/WhiteWineBuff.png b/Buffs/Alcohol/WhiteWineBuff.png index d294938dde060e3d7840fbc42aad596e0b7e4108..548844ed08ef7952dd7af77a74fd5caaa6249449 100644 GIT binary patch delta 643 zcmV-}0(||l1e*nrBYyw^b5ch_0Itp)=>Px%RY^oaR9J=OmrF>LQ5462(+s1FkZI7E z56y|_B~u6nsf!A&WfYNAw2)Rs(L!ilh=Hzx+1Nv@b%h}GpiN|9VFP0sG2$bHK$%G+ zMwuQAPUGUtoxJ1s85-z?{+m1JanC*Hf6u+&9T$I)Wo_XC*nhCbi`r(91*i$0)(q{H z$89Iv8*c?*htC3_Yx?`D7M}SQ1q@)oQ>ajthnj-+Gdg5A7pMbZJlPA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nX+H-zZ@pm-z)9hxnB)ImaUG%mo|byLC5a0FxOV5J p)4OiC-kH|GofLuGtjKkQ{sms7xk3>Bn$iFO002ovPDHLkV1l?Dhw}gc diff --git a/Localization/en-US/Mods.CalamityMod.Configs.hjson b/Localization/en-US/Mods.CalamityMod.Configs.hjson index eba58802b8..f2f8a3ade9 100644 --- a/Localization/en-US/Mods.CalamityMod.Configs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Configs.hjson @@ -423,4 +423,4 @@ CalamityConfig: { Label: "[i:Book] Wiki Status Message" Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry. } -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson index ef43f00306..68e9863f99 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson @@ -235,7 +235,7 @@ RuneofKos: { Tooltip: ''' An ornate sigil of the Profaned Flame - Hatred yet burns upon its brow + Hatred yet burns upon its brow [SPAWN] Not consumable ''' @@ -307,4 +307,4 @@ YharonEgg: { Not consumable An effigy of a Phoenix Dragon egg, used in worship ''' -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index a52ec10ad9..9b7399e9de 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -955,4 +955,4 @@ YharimsCrystal: { Tooltip: "[GFB]" TooltipNormal: Fires draconic beams of total annihilation TooltipGFB: ...throughs a pice of dnimite -} +} \ No newline at end of file diff --git a/Projectiles/Rogue/RadiantStar2.cs b/Projectiles/Rogue/RadiantStar2.cs index 6cc2c03ae1..c7a125d31a 100644 --- a/Projectiles/Rogue/RadiantStar2.cs +++ b/Projectiles/Rogue/RadiantStar2.cs @@ -22,8 +22,7 @@ namespace CalamityMod.Projectiles.Rogue public override void SetDefaults() { - Projectile.width = 24; - Projectile.height = 24; + Projectile.width = Projectile.height = 32; Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.penetrate = 1; diff --git a/Projectiles/Rogue/RadiantStarKnife.cs b/Projectiles/Rogue/RadiantStarKnife.cs index c2727d3a69..2b5d9812d3 100644 --- a/Projectiles/Rogue/RadiantStarKnife.cs +++ b/Projectiles/Rogue/RadiantStarKnife.cs @@ -22,8 +22,7 @@ namespace CalamityMod.Projectiles.Rogue public override void SetDefaults() { - Projectile.width = 24; - Projectile.height = 24; + Projectile.width = Projectile.height = 32; Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.penetrate = 4; From 6bf27522344044641773f809d7538b252d981c24 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 25 Aug 2023 14:54:31 -0400 Subject: [PATCH 042/258] Nerfed SSV damage more, and prevented large vortex from firing small vortices if it has already been released --- Items/Weapons/Magic/SubsumingVortex.cs | 2 +- Projectiles/Magic/EnormousConsumingVortex.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index fefa9fab34..e8f91b17a0 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 507; + Item.damage = 483; Item.DamageType = DamageClass.Magic; Item.useTime = Item.useAnimation = 20; Item.shootSpeed = 7f; diff --git a/Projectiles/Magic/EnormousConsumingVortex.cs b/Projectiles/Magic/EnormousConsumingVortex.cs index 9e0aacb8b2..942699f649 100644 --- a/Projectiles/Magic/EnormousConsumingVortex.cs +++ b/Projectiles/Magic/EnormousConsumingVortex.cs @@ -112,9 +112,9 @@ namespace CalamityMod.Projectiles.Magic GeneralParticleHandler.SpawnParticle(exoEnergy); } - // Fire vortices at nearby target if not fully charged yet. + // Fire vortices at nearby target if not fully charged and has not been released yet. NPC potentialTarget = Projectile.Center.ClosestNPCAt(SubsumingVortex.SmallVortexTargetRange - 100f); - if (potentialTarget != null && Time % SubsumingVortex.VortexReleaseRate == SubsumingVortex.VortexReleaseRate - 1 && Time < SubsumingVortex.LargeVortexChargeupTime) + if (potentialTarget != null && Time % SubsumingVortex.VortexReleaseRate == SubsumingVortex.VortexReleaseRate - 1 && Time < SubsumingVortex.LargeVortexChargeupTime && !HasBeenReleased) { // CheckMana returns true if the mana cost can be paid.. bool allowContinuedUse = Owner.CheckMana(Owner.ActiveItem(), -1, true, false); From 423fb3b2d60bb52184b5819ebba0882b90098215 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 25 Aug 2023 18:19:52 -0400 Subject: [PATCH 043/258] severely reduced boss rush damage floor until a proper fix --- CalPlayer/CalamityPlayerHitHurt.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 106de27fb0..e1cc1677dd 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1629,9 +1629,10 @@ namespace CalamityMod.CalPlayer private void ModifyHurtInfo_Calamity(ref Player.HurtInfo info) { // Boss Rush's damage floor is implemented as a dirty modifier + // TODO -- implementing this correctly would require fully reimplementing all of DR and ADR if (BossRushEvent.BossRushActive) { - int bossRushDamageFloor = (Main.expertMode ? 400 : 240) + (BossRushEvent.BossRushStage * 2); + int bossRushDamageFloor = (Main.expertMode ? 160 : 100) + (BossRushEvent.BossRushStage * 2); if (info.Damage < bossRushDamageFloor) info.Damage += (bossRushDamageFloor - info.Damage); } From 664b0925351db8ae38cde2d0ffda609f73fce1c7 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 25 Aug 2023 18:26:48 -0400 Subject: [PATCH 044/258] Empyrean Knives and Poseidon balance Poseidon is definitely not final --- Items/Weapons/Magic/Poseidon.cs | 9 ++++----- Items/Weapons/Melee/EmpyreanKnives.cs | 2 +- Projectiles/Magic/PoseidonTyphoon.cs | 8 +++++--- Projectiles/Melee/EmpyreanKnife.cs | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Items/Weapons/Magic/Poseidon.cs b/Items/Weapons/Magic/Poseidon.cs index 434ca31c28..d8f8451f9a 100644 --- a/Items/Weapons/Magic/Poseidon.cs +++ b/Items/Weapons/Magic/Poseidon.cs @@ -12,13 +12,13 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetDefaults() { - Item.damage = 62; + Item.damage = 52; Item.DamageType = DamageClass.Magic; Item.mana = 12; Item.width = 28; Item.height = 32; - Item.useTime = 45; - Item.useAnimation = 45; + Item.useTime = 49; + Item.useAnimation = 49; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6f; @@ -27,13 +27,12 @@ namespace CalamityMod.Items.Weapons.Magic Item.rare = ItemRarityID.Pink; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 20f; + Item.shootSpeed = 18f; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { int typhoon = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 0f); - Main.projectile[typhoon].penetrate = Main.rand.Next(4,11); return false; } } diff --git a/Items/Weapons/Melee/EmpyreanKnives.cs b/Items/Weapons/Melee/EmpyreanKnives.cs index e6a600fb90..61af6ce656 100644 --- a/Items/Weapons/Melee/EmpyreanKnives.cs +++ b/Items/Weapons/Melee/EmpyreanKnives.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { Item.width = 18; - Item.damage = 198; + Item.damage = 207; Item.DamageType = DamageClass.MeleeNoSpeed; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Projectiles/Magic/PoseidonTyphoon.cs b/Projectiles/Magic/PoseidonTyphoon.cs index ef3a55a3d3..2d2416bbca 100644 --- a/Projectiles/Magic/PoseidonTyphoon.cs +++ b/Projectiles/Magic/PoseidonTyphoon.cs @@ -18,10 +18,12 @@ namespace CalamityMod.Projectiles.Magic Projectile.height = 30; Projectile.friendly = true; Projectile.DamageType = DamageClass.Magic; - Projectile.penetrate = 10; //randomized in the item file now, penetrates 4 to 10 times - Projectile.timeLeft = 300; + Projectile.penetrate = 6; + Projectile.timeLeft = 240; Projectile.ignoreWater = true; Projectile.scale = 1.6f; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 30; } public override void AI() @@ -31,7 +33,7 @@ namespace CalamityMod.Projectiles.Magic Lighting.AddLight(Projectile.Center, 0, (255 - Projectile.alpha) * 0.7f / 255f, (255 - Projectile.alpha) / 255f); - CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 600f, 6f, 30f); + CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 600f, 10f, 30f); } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); diff --git a/Projectiles/Melee/EmpyreanKnife.cs b/Projectiles/Melee/EmpyreanKnife.cs index 2b4b202b8c..a327401b8f 100644 --- a/Projectiles/Melee/EmpyreanKnife.cs +++ b/Projectiles/Melee/EmpyreanKnife.cs @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - float healAmt = hit.Damage * 0.005f; + float healAmt = hit.Damage * 0.0075f; if ((int)healAmt == 0) return; From 9e2f0c0fc502733871f56fa1c55e58ecf0e04acb Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 25 Aug 2023 23:33:55 +0100 Subject: [PATCH 045/258] Update ThankYouPainting.cs --- Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index ab2b6a4fb7..e6f9ccb72d 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -67,6 +67,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Ben-TK", "Cei", "Cooper", + "CongratsIsTrash", "CrabBar", "Done", "DylanDoe21", @@ -91,7 +92,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Shayy", "Spider Prov", "StipulateVenus", - "Sylvium", "Tomat", "Triangle", "Uberransy", @@ -182,6 +182,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "spooktacular", "Spoopyro", "Svante", + "Sylvium", "Teragat", "Terry N. Muse", "ThousandFields", From 678685eae5692fed08cfe497046a5dcc06ae60dc Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 25 Aug 2023 23:39:23 +0100 Subject: [PATCH 046/258] Apparently i don't know the alphabet --- Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index e6f9ccb72d..6b86d860fd 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -66,8 +66,8 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "Atalya", "Ben-TK", "Cei", - "Cooper", "CongratsIsTrash", + "Cooper", "CrabBar", "Done", "DylanDoe21", From b756e6e924f2f5ed37cd977ab5fd5f5bd05bdddb Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 25 Aug 2023 19:36:12 -0400 Subject: [PATCH 047/258] Further Poseidon changes --- Projectiles/Magic/PoseidonTyphoon.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Magic/PoseidonTyphoon.cs b/Projectiles/Magic/PoseidonTyphoon.cs index 2d2416bbca..e29fd95186 100644 --- a/Projectiles/Magic/PoseidonTyphoon.cs +++ b/Projectiles/Magic/PoseidonTyphoon.cs @@ -19,11 +19,11 @@ namespace CalamityMod.Projectiles.Magic Projectile.friendly = true; Projectile.DamageType = DamageClass.Magic; Projectile.penetrate = 6; - Projectile.timeLeft = 240; + Projectile.timeLeft = 270; Projectile.ignoreWater = true; Projectile.scale = 1.6f; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 30; + Projectile.localNPCHitCooldown = 40; } public override void AI() From 9d3de9f97f5070fe5bca439160e3e691b726221f Mon Sep 17 00:00:00 2001 From: Xyk Date: Fri, 25 Aug 2023 16:48:48 -0700 Subject: [PATCH 048/258] A better Purity sprite --- Items/Accessories/Purity.cs | 2 +- Items/Accessories/Purity.png | Bin 3265 -> 3263 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index 49e7f8f711..1e65c81fb3 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories public override void SetDefaults() { Item.defense = 8; - Item.width = 22; + Item.width = 20; Item.height = 44; Item.accessory = true; Item.value = CalamityGlobalItem.Rarity12BuyPrice; diff --git a/Items/Accessories/Purity.png b/Items/Accessories/Purity.png index 2c81cd5c7cbc747f83788b160e52648d89ed855a..cb0df6f46617e18e03194f21e26d95342a530700 100644 GIT binary patch delta 526 zcmV+p0`dL98NV4JiBL{Q4GJ0x0000DNk~Le0000e0000i2nGNE02goid$A$D3V+K< zL_t(oh3(j}O9F8e!13>GVrz>-v`P_*B27X~H8?jov?dKH=-gjmpj&&;(Cl8|7>W{w z%?>UNExBHcukQD_>wX%7=lM3dcRxPo^M1egbX?bEnNe@GU4WZf)mh|zC$hjHxBwXl zTUZt_@&tBVECTS@?Xn0ox_0In(*#yT&rZvZqaO#q&r@2#NG z2MVOq>jSWp&lw;BN~?jNi39-ELOFgw;LlQ9!6e4B2emErS^#x|qreV8r`LA@4)*s9 z*jW8EBy3B)RzTl{G)!Vwm3D|3wxy0P(Dta)Kn?Tc0rQu7^?`$#P`>h#T7Q6lmR62F zX&MChJ{kd#{F(y6rCxpDq9xWFv))#uz519;0N75Y4Cr(#x#mDm7|lW{pK~_Ad4NGp zf&kBJRU>~ zL_t(oh1JzfC&p{KmHBgJa#D0XN?Z z_zoD+m;E0JpE|{kFnfKtFWv0BKxQ5dok%QU<_%M#vSQi^_XIhFcp- z1K{v3Zi!F_9ADo7u)4khK-3uV7#NtCG69DB`z+C%93843(9vpvq@f)$qJJ@uf&TGH z6QHiM=gVk@>ebMf4^Ax+$)X8lzm}-H19Z`}*Vh30qrxdF?|`mR1Nc}d`yp3eSit8B z2VcL1b~o4l36PhS4#3Uhv(La!hpcOyw7clXfNs%rkIb|b6;=FAz5aTW69(KKb`q78 zG)~%SnlwNcm6X#1XK8T}fMu1LX`g_q#umW+L%%pxEnHT*x^1UtW_<#rbi;N6<`%5c zNcjiYqmp6U7flz9e}EH|os;XTaY8`+4MLd-0(MA-F8@F`)V~MVAt|TEo&oRByqv?k S)epk}0000 Date: Sat, 26 Aug 2023 12:23:13 +0700 Subject: [PATCH 049/258] properly updated tarragon rogue's tooltip --- .../en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 62df2dd5c0..eedbe2539a 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -554,8 +554,8 @@ TarragonHeadRogue: { SetBonus: ''' +115 maximum stealth - After every 25 rogue critical hits you will gain 3 seconds of damage immunity - This effect can only occur once every 30 seconds + 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 ''' } From d4c4a5f4f97424c74bbdfb3d57f1d43d89b7f44e Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 26 Aug 2023 16:41:08 +0700 Subject: [PATCH 050/258] arbalest tooltip update --- Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index b1ec787467..2cd16dd402 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -62,7 +62,7 @@ Arbalest: { DisplayName: Arbalest Tooltip: ''' - Fires a volley of 10 high-speed arrows + Fires a volley of 6 high-speed arrows Arrows start off small and grow in size with continuous fire Arrow damage, spread and knockback scale with arrow size ''' From 92c768f0e3beecd54053a5d5962646cca139fa23 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 26 Aug 2023 18:28:07 +0700 Subject: [PATCH 051/258] community crit tooltip fix imagine adding decimal crits anyway --- Items/Accessories/TheCommunity.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Accessories/TheCommunity.cs b/Items/Accessories/TheCommunity.cs index ccd0f1b00a..becea187c7 100644 --- a/Items/Accessories/TheCommunity.cs +++ b/Items/Accessories/TheCommunity.cs @@ -93,7 +93,7 @@ namespace CalamityMod.Items.Accessories // Damage stat boosts public const float DamageMultiplier = 0.5f; // 2.5% to 10% (x100) - public const float CritMultiplier = 25f; // 1.25% to 5% + public const float CritMultiplier = 25f; // 1.25% to 5% (end result rounded down) // Defensive stat boosts public const float HealthMultiplier = 50f; // 2% to 10% (rounded down) @@ -112,7 +112,7 @@ namespace CalamityMod.Items.Accessories float power = CalculatePower(); string statList = this.GetLocalization("StatsList").Format( (DamageMultiplier * power * 100).ToString("N1"), - (CritMultiplier * power).ToString("N0"), + (int)(CritMultiplier * power), (int)(HealthMultiplier * power), (DRMultiplier * power * 100).ToString("N2"), (int)(DefenseMultiplier * power), From d2302b5f0cb88d5bb9410ebe7604a9b7a94c485c Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 26 Aug 2023 19:53:21 +0700 Subject: [PATCH 052/258] preventing a crash with YAQOLM there is probably a better way to do this (hi ozz) --- ILEditing/MechanicILChanges.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index a6c0313621..0815435ac2 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -456,8 +456,14 @@ namespace CalamityMod.ILEditing private static string IncorporateEnchantmentInAffix(Terraria.On_Item.orig_AffixName orig, Item self) { string result = orig(self); - if (!self.IsAir && self.Calamity().AppliedEnchantment.HasValue) - result = $"{self.Calamity().AppliedEnchantment.Value.Name} {result}"; + + // This hook could occur before CalamityGlobalItem is loaded and throw an error. + try + { + if (!self.IsAir && self.Calamity().AppliedEnchantment.HasValue) + result = $"{self.Calamity().AppliedEnchantment.Value.Name} {result}"; + } + catch { } return result; } #endregion From 64ecb7b6ac6971d1360bd95bbb465ff092a9a6da Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:16:58 -0300 Subject: [PATCH 053/258] Dark God's Sheath > Dark Matter Sheath --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 5cd7eda970..4740a95ce8 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -481,7 +481,7 @@ DaawnlightSpiritOrigin: { } DarkGodsSheath: { - DisplayName: Dark God's Sheath + DisplayName: Dark Matter Sheath Tooltip: ''' +10 maximum stealth @@ -1991,4 +1991,4 @@ YharimsInsignia: { All melee attacks inflict Holy Flames Increased melee knockback ''' -} \ No newline at end of file +} From 6a60cae57f4a70385e7f5050e9c12b10ea577801 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:18:39 -0300 Subject: [PATCH 054/258] Deific Thunderbolt > Twisting Thunder --- Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index a334f86b58..47e2296970 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -283,7 +283,7 @@ DefectiveSphere: { } DeificThunderbolt: { - DisplayName: Deific Thunderbolt + DisplayName: Twisting Thunder Tooltip: ''' Fires a lightning bolt to electrocute enemies @@ -1387,4 +1387,4 @@ WulfrumKnife: { Stealth strikes make the knife fly further and hit several times at once Hold to magnetize all nearby fallen knives back to you ''' -} \ No newline at end of file +} From be970e40d6d0ba7f083c41cb8228ddff00bc1c17 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:20:09 -0300 Subject: [PATCH 055/258] Gospawn Helix Staff > Starspawn Helix Staff --- .../en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 85e1ad5db0..24ea493bdf 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -403,7 +403,7 @@ GlacialEmbrace: { } GodspawnHelixStaff: { - DisplayName: Godspawn Helix Staff + DisplayName: Starspawn Helix Staff Tooltip: Summons astral probes to protect you } @@ -633,7 +633,7 @@ StormjawStaff: { } SunGodStaff: { - DisplayName: Sun God Staff + DisplayName: Vengeful Sun Staff Tooltip: ''' Summons a solar god spirit to protect you @@ -794,4 +794,4 @@ MirrorofKalandra: { StellarTorusStaff: { DisplayName: Stellar Torus Staff Tooltip: Summons a Torus Orbital that fries foes with a telescoping light beam -} \ No newline at end of file +} From 398adc67478decb268646dd653ece0cf779d204b Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 26 Aug 2023 10:21:14 -0400 Subject: [PATCH 056/258] Dank Staff, Blood Clot Staff, Terra Ray, and The Hive balance --- Items/Weapons/Magic/TerraRay.cs | 2 +- Items/Weapons/Ranged/TheHive.cs | 6 +++--- Items/Weapons/Summon/BloodClotStaff.cs | 2 +- Items/Weapons/Summon/DankStaff.cs | 2 +- Projectiles/Magic/TerraBeam.cs | 6 +++--- Projectiles/Summon/BloodClotMinion.cs | 2 +- Projectiles/Summon/DankCreeperMinion.cs | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Items/Weapons/Magic/TerraRay.cs b/Items/Weapons/Magic/TerraRay.cs index 1487295159..3101d05973 100644 --- a/Items/Weapons/Magic/TerraRay.cs +++ b/Items/Weapons/Magic/TerraRay.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 50; + Item.damage = 60; Item.DamageType = DamageClass.Magic; Item.mana = 10; Item.width = 54; diff --git a/Items/Weapons/Ranged/TheHive.cs b/Items/Weapons/Ranged/TheHive.cs index ff0d2344a8..1816264b40 100644 --- a/Items/Weapons/Ranged/TheHive.cs +++ b/Items/Weapons/Ranged/TheHive.cs @@ -12,12 +12,12 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 80; + Item.damage = 60; Item.DamageType = DamageClass.Ranged; Item.width = 62; Item.height = 30; - Item.useTime = 21; - Item.useAnimation = 21; + Item.useTime = 34; + Item.useAnimation = 34; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; diff --git a/Items/Weapons/Summon/BloodClotStaff.cs b/Items/Weapons/Summon/BloodClotStaff.cs index 4d53e483aa..0636ef149b 100644 --- a/Items/Weapons/Summon/BloodClotStaff.cs +++ b/Items/Weapons/Summon/BloodClotStaff.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Summon public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetDefaults() { - Item.damage = 7; + Item.damage = 9; Item.mana = 10; Item.width = 58; Item.height = 64; diff --git a/Items/Weapons/Summon/DankStaff.cs b/Items/Weapons/Summon/DankStaff.cs index c1062c2e63..e56b5e9522 100644 --- a/Items/Weapons/Summon/DankStaff.cs +++ b/Items/Weapons/Summon/DankStaff.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Summon public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetDefaults() { - Item.damage = 7; + Item.damage = 9; Item.mana = 10; Item.width = 58; Item.height = 58; diff --git a/Projectiles/Magic/TerraBeam.cs b/Projectiles/Magic/TerraBeam.cs index 61d3ad9bee..a8cdb69688 100644 --- a/Projectiles/Magic/TerraBeam.cs +++ b/Projectiles/Magic/TerraBeam.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.ignoreWater = true; Projectile.penetrate = 10; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 8; + Projectile.localNPCHitCooldown = 12; Projectile.tileCollide = false; Projectile.timeLeft = (int)Lifetime; } @@ -90,9 +90,9 @@ namespace CalamityMod.Projectiles.Magic // boxes, but that should be negligible. float lengthFromStart = Projectile.Distance(target.Center); - int totalShards = (int)MathHelper.Lerp(1, 4, MathHelper.Clamp(lengthFromStart / MaxLaserLength * 1.4f, 0f, 1f)); + int totalShards = (int)MathHelper.Lerp(1, 3, MathHelper.Clamp(lengthFromStart / MaxLaserLength * 1.5f, 0f, 1f)); int shardType = ModContent.ProjectileType(); - int shardDamage = (int)(Projectile.damage * 0.6); + int shardDamage = (int)(Projectile.damage * 0.5); for (int i = 0; i < totalShards; i++) { int tries = 0; diff --git a/Projectiles/Summon/BloodClotMinion.cs b/Projectiles/Summon/BloodClotMinion.cs index fb58e7187c..5df7b760fa 100644 --- a/Projectiles/Summon/BloodClotMinion.cs +++ b/Projectiles/Summon/BloodClotMinion.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.tileCollide = false; Projectile.MaxUpdates = 3; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 24; + Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 30; Projectile.DamageType = DamageClass.Summon; } diff --git a/Projectiles/Summon/DankCreeperMinion.cs b/Projectiles/Summon/DankCreeperMinion.cs index aabd4f4191..666edf8be2 100644 --- a/Projectiles/Summon/DankCreeperMinion.cs +++ b/Projectiles/Summon/DankCreeperMinion.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.tileCollide = false; Projectile.MaxUpdates = 3; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 24; + Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 30; Projectile.DamageType = DamageClass.Summon; } From a228884ccb9acdbb19e314aedd10484b733123e4 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:21:42 -0300 Subject: [PATCH 057/258] God's Bellows > Dead Sun's Wind --- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 2cd16dd402..7e1f610c17 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -519,7 +519,7 @@ Galeforce: { } GodsBellows: { - DisplayName: God's Bellows + DisplayName: Dead Sun's Wind Tooltip: 70% chance to save ammo } @@ -1285,4 +1285,4 @@ WulfrumBlunderbuss: { [c/83B87E:'The good thing about Wulfrum is that while it breaks fast, it can be reused even faster.] [c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.'] ''' -} \ No newline at end of file +} From 839a23b5419fe1bb7ccc6422ed983e98df1405a9 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:17:58 -0400 Subject: [PATCH 058/258] Seeking Scorcher rebalance, with a combo of done and I's balance suggestions Damage to 232, hits 3 enemies --- Items/Weapons/Melee/SeekingScorcher.cs | 2 +- Projectiles/Melee/DivineHatchetBoomerang.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Melee/SeekingScorcher.cs b/Items/Weapons/Melee/SeekingScorcher.cs index da30a835ad..9de2ff5f31 100644 --- a/Items/Weapons/Melee/SeekingScorcher.cs +++ b/Items/Weapons/Melee/SeekingScorcher.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { Item.width = 60; - Item.damage = 177; + Item.damage = 232; Item.noMelee = true; Item.noUseGraphic = true; Item.autoReuse = true; diff --git a/Projectiles/Melee/DivineHatchetBoomerang.cs b/Projectiles/Melee/DivineHatchetBoomerang.cs index dc7bf20165..bb9734bcd1 100644 --- a/Projectiles/Melee/DivineHatchetBoomerang.cs +++ b/Projectiles/Melee/DivineHatchetBoomerang.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.height = 60; Projectile.friendly = true; Projectile.tileCollide = false; - Projectile.penetrate = 4; + Projectile.penetrate = 3; Projectile.timeLeft = Lifetime; Projectile.DamageType = DamageClass.MeleeNoSpeed; Projectile.extraUpdates = 1; From f0ab7287488e66959253811ef259fb573d8d783c Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sat, 26 Aug 2023 11:44:32 -0600 Subject: [PATCH 059/258] More nerfs to locket --- CalPlayer/CalamityPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 6ec02390e7..47b6c0ad4f 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3967,7 +3967,7 @@ namespace CalamityMod.CalPlayer num79 *= num80; float speedX4 = num78 + (float)Main.rand.Next(-30, 31) * 0.02f; float speedY5 = num79 + (float)Main.rand.Next(-30, 31) * 0.02f; - int p = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, (int)(damage * 0.075), knockBack * 0.5f, Player.whoAmI); + int p = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, (int)(damage * 0.07), knockBack * 0.5f, Player.whoAmI); if (p.WithinBounds(Main.maxProjectiles)) { From 94cc0856da1e1d7edb6aba1adc34faa4d6b3ae96 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 26 Aug 2023 15:42:27 -0400 Subject: [PATCH 060/258] Gave Nadir Violet rarity --- Items/Weapons/Melee/Nadir.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index 09736a0e7d..cdd08c10b9 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -36,8 +36,8 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; - Item.rare = ModContent.RarityType(); + Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.shoot = ModContent.ProjectileType(); From af5e163703f6a65e0875549da403768808299928 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 26 Aug 2023 15:57:04 -0400 Subject: [PATCH 061/258] Removed redundant WorldSyncingSystem and merged with MiscWorldStateSystem. --- Systems/MiscWorldStateSystem.cs | 297 ++++++++++++++++++++++++++++++ Systems/WorldSyncingSystem.cs | 309 -------------------------------- 2 files changed, 297 insertions(+), 309 deletions(-) delete mode 100644 Systems/WorldSyncingSystem.cs diff --git a/Systems/MiscWorldStateSystem.cs b/Systems/MiscWorldStateSystem.cs index 1f69bbd246..a8b27f7cbd 100644 --- a/Systems/MiscWorldStateSystem.cs +++ b/Systems/MiscWorldStateSystem.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.IO; using CalamityMod.CustomRecipes; using CalamityMod.Events; using CalamityMod.NPCs; @@ -8,6 +9,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.IO; +using static CalamityMod.DownedBossSystem; using static CalamityMod.World.CalamityWorld; namespace CalamityMod @@ -193,5 +195,300 @@ namespace CalamityMod CavernLabCenter = tag.Get("CavernLabCenter"); } #endregion Saving/Loading + + #region NetSend + public override void NetSend(BinaryWriter writer) + { + BitsByte flags = new BitsByte(); + flags[0] = downedDesertScourge; + flags[1] = downedHiveMind; + flags[2] = downedPerforator; + flags[3] = downedSlimeGod; + flags[4] = downedCryogen; + flags[5] = downedBrimstoneElemental; + flags[6] = downedCalamitasClone; + flags[7] = downedLeviathan; + + BitsByte flags2 = new BitsByte(); + flags2[0] = downedDoG; + flags2[1] = downedPlaguebringer; + flags2[2] = downedGuardians; + flags2[3] = downedProvidence; + flags2[4] = downedCeaselessVoid; + flags2[5] = downedStormWeaver; + flags2[6] = downedSignus; + flags2[7] = downedYharon; + + // Don't write meaningful values for the now-unused vanilla boss booleans + BitsByte flags3 = new BitsByte(); + flags3[0] = downedCalamitas; + flags3[1] = downedDragonfolly; + flags3[2] = downedCrabulon; + flags3[3] = downedBetsy; + flags3[4] = downedRavager; + flags3[5] = false; + flags3[6] = false; + flags3[7] = false; + + BitsByte flags4 = new BitsByte(); + flags4[0] = false; + flags4[1] = false; + flags4[2] = false; + flags4[3] = false; + flags4[4] = false; + flags4[5] = false; + flags4[6] = onionMode; + flags4[7] = revenge; + + BitsByte flags5 = new BitsByte(); + flags5[0] = downedAstrumDeus; + flags5[1] = spawnedBandit; + flags5[2] = spawnedCirrus; + flags5[3] = AcidRainEvent.HasStartedAcidicDownpour; + flags5[4] = false; + flags5[5] = downedPolterghast; + flags5[6] = death; + flags5[7] = downedGSS; + + BitsByte flags6 = new BitsByte(); + flags6[0] = Abyss.AtLeftSideOfWorld; + flags6[1] = downedAquaticScourge; + flags6[2] = downedAstrumAureus; + flags6[3] = false; + flags6[4] = armageddon; + flags6[5] = false; + flags6[6] = false; + flags6[7] = false; + + BitsByte flags7 = new BitsByte(); + flags7[0] = BossRushEvent.BossRushActive; + flags7[1] = downedBoomerDuke; + flags7[2] = downedCLAM; + flags7[3] = false; + flags7[4] = AcidRainEvent.AcidRainEventIsOngoing; + flags7[5] = downedEoCAcidRain; + flags7[6] = downedAquaticScourgeAcidRain; + flags7[7] = AcidRainEvent.HasTriedToSummonOldDuke; + + BitsByte flags8 = new BitsByte(); + flags8[0] = AcidRainEvent.HasBeenForceStartedByEoCDefeat; + flags8[1] = false; + flags8[2] = downedSecondSentinels; + flags8[3] = foundHomePermafrost; + flags8[4] = downedCLAMHardMode; + flags8[5] = catName; + flags8[6] = dogName; + flags8[7] = bunnyName; + + BitsByte flags9 = new BitsByte(); + flags9[0] = false; + flags9[1] = false; + flags9[2] = false; + flags9[3] = false; + flags9[4] = false; + flags9[5] = false; + flags9[6] = false; + flags9[7] = false; + + BitsByte flags10 = new BitsByte(); + flags10[0] = false; + flags10[1] = false; + flags10[2] = AcidRainEvent.OldDukeHasBeenEncountered; + flags10[3] = false; + flags10[4] = false; + flags10[5] = false; + flags10[6] = false; + flags10[7] = false; + + BitsByte flags11 = new BitsByte(); + flags11[0] = false; + flags11[1] = HasGeneratedLuminitePlanetoids; + flags11[2] = downedPrimordialWyrm; + flags11[3] = downedExoMechs; + flags11[4] = downedAres; + flags11[5] = downedThanatos; + flags11[6] = downedArtemisAndApollo; + flags11[7] = TalkedToDraedon; + + BitsByte flags12 = new BitsByte(); + flags12[0] = downedCragmawMire; + flags12[1] = downedMauler; + flags12[2] = downedNuclearTerror; + flags12[3] = downedBossRush; + flags12[4] = DraedonMechdusa; + + writer.Write(flags); + writer.Write(flags2); + writer.Write(flags3); + writer.Write(flags4); + writer.Write(flags5); + writer.Write(flags6); + writer.Write(flags7); + writer.Write(flags8); + writer.Write(flags9); + writer.Write(flags10); + writer.Write(flags11); + writer.Write(flags12); + + RecipeUnlockHandler.SendData(writer); + + writer.Write(Abyss.AbyssChasmBottom); + writer.Write(SulphurousSea.YStart); + writer.Write(AstralBiome.YStart); + writer.Write(AcidRainEvent.AccumulatedKillPoints); + writer.Write(Reforges); + writer.Write(MoneyStolenByBandit); + writer.Write(DraedonSummonCountdown); + writer.Write((int)DraedonMechToSummon); + writer.WriteVector2(DraedonSummonPosition); + writer.WriteVector2(SunkenSeaLabCenter); + writer.WriteVector2(PlanetoidLabCenter); + writer.WriteVector2(JungleLabCenter); + writer.WriteVector2(HellLabCenter); + writer.WriteVector2(IceLabCenter); + writer.WriteVector2(CavernLabCenter); + } + #endregion + + #region NetReceive + public override void NetReceive(BinaryReader reader) + { + BitsByte flags = reader.ReadByte(); + downedDesertScourge = flags[0]; + downedHiveMind = flags[1]; + downedPerforator = flags[2]; + downedSlimeGod = flags[3]; + downedCryogen = flags[4]; + downedBrimstoneElemental = flags[5]; + downedCalamitasClone = flags[6]; + downedLeviathan = flags[7]; + + BitsByte flags2 = reader.ReadByte(); + downedDoG = flags2[0]; + downedPlaguebringer = flags2[1]; + downedGuardians = flags2[2]; + downedProvidence = flags2[3]; + downedCeaselessVoid = flags2[4]; + downedStormWeaver = flags2[5]; + downedSignus = flags2[6]; + downedYharon = flags2[7]; + + // Explicitly discard the now-unused vanilla boss booleans + BitsByte flags3 = reader.ReadByte(); + downedCalamitas = flags3[0]; + downedDragonfolly = flags3[1]; + downedCrabulon = flags3[2]; + downedBetsy = flags3[3]; + downedRavager = flags3[4]; + _ = flags3[5]; + _ = flags3[6]; + _ = flags3[7]; + + BitsByte flags4 = reader.ReadByte(); + _ = flags4[0]; + _ = flags4[1]; + _ = flags4[2]; + _ = flags4[3]; + _ = flags4[4]; + _ = flags4[5]; + onionMode = flags4[6]; + revenge = flags4[7]; + + BitsByte flags5 = reader.ReadByte(); + downedAstrumDeus = flags5[0]; + spawnedBandit = flags5[1]; + spawnedCirrus = flags5[2]; + AcidRainEvent.HasStartedAcidicDownpour = flags5[3]; + _ = flags5[4]; + downedPolterghast = flags5[5]; + death = flags5[6]; + downedGSS = flags5[7]; + + BitsByte flags6 = reader.ReadByte(); + Abyss.AtLeftSideOfWorld = flags6[0]; + downedAquaticScourge = flags6[1]; + downedAstrumAureus = flags6[2]; + _ = flags6[3]; + armageddon = flags6[4]; + _ = flags6[5]; + _ = flags6[6]; + _ = flags6[7]; + + BitsByte flags7 = reader.ReadByte(); + BossRushEvent.BossRushActive = flags7[0]; + downedBoomerDuke = flags7[1]; + downedCLAM = flags7[2]; + _ = flags7[3]; + AcidRainEvent.AcidRainEventIsOngoing = flags7[4]; + downedEoCAcidRain = flags7[5]; + downedAquaticScourgeAcidRain = flags7[6]; + AcidRainEvent.HasTriedToSummonOldDuke = flags7[7]; + + BitsByte flags8 = reader.ReadByte(); + AcidRainEvent.HasBeenForceStartedByEoCDefeat = flags8[0]; + _ = flags8[1]; + downedSecondSentinels = flags8[2]; + foundHomePermafrost = flags8[3]; + downedCLAMHardMode = flags8[4]; + catName = flags8[5]; + dogName = flags8[6]; + bunnyName = flags8[7]; + + BitsByte flags9 = reader.ReadByte(); + _ = flags9[0]; + _ = flags9[1]; + _ = flags9[2]; + _ = flags9[3]; + _ = flags9[4]; + _ = flags9[5]; + _ = flags9[6]; + _ = flags9[7]; + + BitsByte flags10 = reader.ReadByte(); + _ = flags10[0]; + _ = flags10[1]; + AcidRainEvent.OldDukeHasBeenEncountered = flags10[2]; + _ = flags10[3]; + _ = flags10[4]; + _ = flags10[5]; + _ = flags10[6]; + _ = flags10[7]; + + BitsByte flags11 = reader.ReadByte(); + _ = flags11[0]; + HasGeneratedLuminitePlanetoids = flags11[1]; + downedPrimordialWyrm = flags11[2]; + downedExoMechs = flags11[3]; + downedAres = flags11[4]; + downedThanatos = flags11[5]; + downedArtemisAndApollo = flags11[6]; + TalkedToDraedon = flags11[7]; + + BitsByte flags12 = reader.ReadByte(); + downedCragmawMire = flags12[0]; + downedMauler = flags12[1]; + downedNuclearTerror = flags12[2]; + downedBossRush = flags12[3]; + DraedonMechdusa = flags12[4]; + + RecipeUnlockHandler.ReceiveData(reader); + + Abyss.AbyssChasmBottom = reader.ReadInt32(); + SulphurousSea.YStart = reader.ReadInt32(); + AstralBiome.YStart = reader.ReadInt32(); + AcidRainEvent.AccumulatedKillPoints = reader.ReadInt32(); + Reforges = reader.ReadInt32(); + MoneyStolenByBandit = reader.ReadInt32(); + DraedonSummonCountdown = reader.ReadInt32(); + DraedonMechToSummon = (ExoMech)reader.ReadInt32(); + DraedonSummonPosition = reader.ReadVector2(); + SunkenSeaLabCenter = reader.ReadVector2(); + PlanetoidLabCenter = reader.ReadVector2(); + JungleLabCenter = reader.ReadVector2(); + HellLabCenter = reader.ReadVector2(); + IceLabCenter = reader.ReadVector2(); + CavernLabCenter = reader.ReadVector2(); + } + #endregion } } diff --git a/Systems/WorldSyncingSystem.cs b/Systems/WorldSyncingSystem.cs deleted file mode 100644 index 1cabbe8654..0000000000 --- a/Systems/WorldSyncingSystem.cs +++ /dev/null @@ -1,309 +0,0 @@ -using System.IO; -using CalamityMod.CustomRecipes; -using CalamityMod.Events; -using CalamityMod.World; -using Terraria; -using Terraria.ModLoader; -using static CalamityMod.DownedBossSystem; -using static CalamityMod.World.CalamityWorld; - -namespace CalamityMod.Systems -{ - public class WorldSyncingSystem : ModSystem - { - #region NetSend - public override void NetSend(BinaryWriter writer) - { - BitsByte flags = new BitsByte(); - flags[0] = downedDesertScourge; - flags[1] = downedHiveMind; - flags[2] = downedPerforator; - flags[3] = downedSlimeGod; - flags[4] = downedCryogen; - flags[5] = downedBrimstoneElemental; - flags[6] = downedCalamitasClone; - flags[7] = downedLeviathan; - - BitsByte flags2 = new BitsByte(); - flags2[0] = downedDoG; - flags2[1] = downedPlaguebringer; - flags2[2] = downedGuardians; - flags2[3] = downedProvidence; - flags2[4] = downedCeaselessVoid; - flags2[5] = downedStormWeaver; - flags2[6] = downedSignus; - flags2[7] = downedYharon; - - // Don't write meaningful values for the now-unused vanilla boss booleans - BitsByte flags3 = new BitsByte(); - flags3[0] = downedCalamitas; - flags3[1] = downedDragonfolly; - flags3[2] = downedCrabulon; - flags3[3] = downedBetsy; - flags3[4] = downedRavager; - flags3[5] = false; - flags3[6] = false; - flags3[7] = false; - - BitsByte flags4 = new BitsByte(); - flags4[0] = false; - flags4[1] = false; - flags4[2] = false; - flags4[3] = false; - flags4[4] = false; - flags4[5] = false; - flags4[6] = onionMode; - flags4[7] = revenge; - - BitsByte flags5 = new BitsByte(); - flags5[0] = downedAstrumDeus; - flags5[1] = spawnedBandit; - flags5[2] = spawnedCirrus; - flags5[3] = AcidRainEvent.HasStartedAcidicDownpour; - flags5[4] = false; - flags5[5] = downedPolterghast; - flags5[6] = death; - flags5[7] = downedGSS; - - BitsByte flags6 = new BitsByte(); - flags6[0] = Abyss.AtLeftSideOfWorld; - flags6[1] = downedAquaticScourge; - flags6[2] = downedAstrumAureus; - flags6[3] = false; - flags6[4] = armageddon; - flags6[5] = false; - flags6[6] = false; - flags6[7] = false; - - BitsByte flags7 = new BitsByte(); - flags7[0] = BossRushEvent.BossRushActive; - flags7[1] = downedBoomerDuke; - flags7[2] = downedCLAM; - flags7[3] = false; - flags7[4] = AcidRainEvent.AcidRainEventIsOngoing; - flags7[5] = downedEoCAcidRain; - flags7[6] = downedAquaticScourgeAcidRain; - flags7[7] = AcidRainEvent.HasTriedToSummonOldDuke; - - BitsByte flags8 = new BitsByte(); - flags8[0] = AcidRainEvent.HasBeenForceStartedByEoCDefeat; - flags8[1] = false; - flags8[2] = downedSecondSentinels; - flags8[3] = foundHomePermafrost; - flags8[4] = downedCLAMHardMode; - flags8[5] = catName; - flags8[6] = dogName; - flags8[7] = bunnyName; - - BitsByte flags9 = new BitsByte(); - flags9[0] = false; - flags9[1] = false; - flags9[2] = false; - flags9[3] = false; - flags9[4] = false; - flags9[5] = false; - flags9[6] = false; - flags9[7] = false; - - BitsByte flags10 = new BitsByte(); - flags10[0] = false; - flags10[1] = false; - flags10[2] = AcidRainEvent.OldDukeHasBeenEncountered; - flags10[3] = false; - flags10[4] = false; - flags10[5] = false; - flags10[6] = false; - flags10[7] = false; - - BitsByte flags11 = new BitsByte(); - flags11[0] = false; - flags11[1] = HasGeneratedLuminitePlanetoids; - flags11[2] = downedPrimordialWyrm; - flags11[3] = downedExoMechs; - flags11[4] = downedAres; - flags11[5] = downedThanatos; - flags11[6] = downedArtemisAndApollo; - flags11[7] = TalkedToDraedon; - - BitsByte flags12 = new BitsByte(); - flags12[0] = downedCragmawMire; - flags12[1] = downedMauler; - flags12[2] = downedNuclearTerror; - flags12[3] = downedBossRush; - flags12[4] = DraedonMechdusa; - - writer.Write(flags); - writer.Write(flags2); - writer.Write(flags3); - writer.Write(flags4); - writer.Write(flags5); - writer.Write(flags6); - writer.Write(flags7); - writer.Write(flags8); - writer.Write(flags9); - writer.Write(flags10); - writer.Write(flags11); - writer.Write(flags12); - - RecipeUnlockHandler.SendData(writer); - - writer.Write(Abyss.AbyssChasmBottom); - writer.Write(SulphurousSea.YStart); - writer.Write(AstralBiome.YStart); - writer.Write(AcidRainEvent.AccumulatedKillPoints); - writer.Write(Reforges); - writer.Write(MoneyStolenByBandit); - writer.Write(DraedonSummonCountdown); - writer.Write((int)DraedonMechToSummon); - writer.WriteVector2(DraedonSummonPosition); - writer.WriteVector2(SunkenSeaLabCenter); - writer.WriteVector2(PlanetoidLabCenter); - writer.WriteVector2(JungleLabCenter); - writer.WriteVector2(HellLabCenter); - writer.WriteVector2(IceLabCenter); - writer.WriteVector2(CavernLabCenter); - } - #endregion - - #region NetReceive - public override void NetReceive(BinaryReader reader) - { - BitsByte flags = reader.ReadByte(); - downedDesertScourge = flags[0]; - downedHiveMind = flags[1]; - downedPerforator = flags[2]; - downedSlimeGod = flags[3]; - downedCryogen = flags[4]; - downedBrimstoneElemental = flags[5]; - downedCalamitasClone = flags[6]; - downedLeviathan = flags[7]; - - BitsByte flags2 = reader.ReadByte(); - downedDoG = flags2[0]; - downedPlaguebringer = flags2[1]; - downedGuardians = flags2[2]; - downedProvidence = flags2[3]; - downedCeaselessVoid = flags2[4]; - downedStormWeaver = flags2[5]; - downedSignus = flags2[6]; - downedYharon = flags2[7]; - - // Explicitly discard the now-unused vanilla boss booleans - BitsByte flags3 = reader.ReadByte(); - downedCalamitas = flags3[0]; - downedDragonfolly = flags3[1]; - downedCrabulon = flags3[2]; - downedBetsy = flags3[3]; - downedRavager = flags3[4]; - _ = flags3[5]; - _ = flags3[6]; - _ = flags3[7]; - - BitsByte flags4 = reader.ReadByte(); - _ = flags4[0]; - _ = flags4[1]; - _ = flags4[2]; - _ = flags4[3]; - _ = flags4[4]; - _ = flags4[5]; - onionMode = flags4[6]; - revenge = flags4[7]; - - BitsByte flags5 = reader.ReadByte(); - downedAstrumDeus = flags5[0]; - spawnedBandit = flags5[1]; - spawnedCirrus = flags5[2]; - AcidRainEvent.HasStartedAcidicDownpour = flags5[3]; - _ = flags5[4]; - downedPolterghast = flags5[5]; - death = flags5[6]; - downedGSS = flags5[7]; - - BitsByte flags6 = reader.ReadByte(); - Abyss.AtLeftSideOfWorld = flags6[0]; - downedAquaticScourge = flags6[1]; - downedAstrumAureus = flags6[2]; - _ = flags6[3]; - armageddon = flags6[4]; - _ = flags6[5]; - _ = flags6[6]; - _ = flags6[7]; - - BitsByte flags7 = reader.ReadByte(); - BossRushEvent.BossRushActive = flags7[0]; - downedBoomerDuke = flags7[1]; - downedCLAM = flags7[2]; - _ = flags7[3]; - AcidRainEvent.AcidRainEventIsOngoing = flags7[4]; - downedEoCAcidRain = flags7[5]; - downedAquaticScourgeAcidRain = flags7[6]; - AcidRainEvent.HasTriedToSummonOldDuke = flags7[7]; - - BitsByte flags8 = reader.ReadByte(); - AcidRainEvent.HasBeenForceStartedByEoCDefeat = flags8[0]; - _ = flags8[1]; - downedSecondSentinels = flags8[2]; - foundHomePermafrost = flags8[3]; - downedCLAMHardMode = flags8[4]; - catName = flags8[5]; - dogName = flags8[6]; - bunnyName = flags8[7]; - - BitsByte flags9 = reader.ReadByte(); - _ = flags9[0]; - _ = flags9[1]; - _ = flags9[2]; - _ = flags9[3]; - _ = flags9[4]; - _ = flags9[5]; - _ = flags9[6]; - _ = flags9[7]; - - BitsByte flags10 = reader.ReadByte(); - _ = flags10[0]; - _ = flags10[1]; - AcidRainEvent.OldDukeHasBeenEncountered = flags10[2]; - _ = flags10[3]; - _ = flags10[4]; - _ = flags10[5]; - _ = flags10[6]; - _ = flags10[7]; - - BitsByte flags11 = reader.ReadByte(); - _ = flags11[0]; - HasGeneratedLuminitePlanetoids = flags11[1]; - downedPrimordialWyrm = flags11[2]; - downedExoMechs = flags11[3]; - downedAres = flags11[4]; - downedThanatos = flags11[5]; - downedArtemisAndApollo = flags11[6]; - TalkedToDraedon = flags11[7]; - - BitsByte flags12 = reader.ReadByte(); - downedCragmawMire = flags12[0]; - downedMauler = flags12[1]; - downedNuclearTerror = flags12[2]; - downedBossRush = flags12[3]; - DraedonMechdusa = flags12[4]; - - RecipeUnlockHandler.ReceiveData(reader); - - Abyss.AbyssChasmBottom = reader.ReadInt32(); - SulphurousSea.YStart = reader.ReadInt32(); - AstralBiome.YStart = reader.ReadInt32(); - AcidRainEvent.AccumulatedKillPoints = reader.ReadInt32(); - Reforges = reader.ReadInt32(); - MoneyStolenByBandit = reader.ReadInt32(); - DraedonSummonCountdown = reader.ReadInt32(); - DraedonMechToSummon = (ExoMech)reader.ReadInt32(); - DraedonSummonPosition = reader.ReadVector2(); - SunkenSeaLabCenter = reader.ReadVector2(); - PlanetoidLabCenter = reader.ReadVector2(); - JungleLabCenter = reader.ReadVector2(); - HellLabCenter = reader.ReadVector2(); - IceLabCenter = reader.ReadVector2(); - CavernLabCenter = reader.ReadVector2(); - } - #endregion - } -} From f4f46d1fe05890f8c9f8b464c2733948f0599ea5 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sat, 26 Aug 2023 14:22:13 -0600 Subject: [PATCH 062/258] Executioner's blade buffs and bugfix --- Items/Weapons/Rogue/ExecutionersBlade.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index 3ace052a76..3041d19896 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetDefaults() { Item.width = 64; - Item.damage = 188; + Item.damage = 225; Item.noMelee = true; Item.noUseGraphic = true; Item.useTime = 3; @@ -41,19 +41,15 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request("CalamityMod/Items/Weapons/Rogue/ExecutionersBladeGlow").Value); } - public override bool AdditionalStealthCheck() => counter == 0; + public override float StealthDamageMultiplier => 0.6f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - bool usingStealth = player.Calamity().StealthStrikeAvailable() && counter == 0; + bool usingStealth = player.Calamity().StealthStrikeAvailable(); int stealth = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); if (usingStealth && stealth.WithinBounds(Main.maxProjectiles)) Main.projectile[stealth].Calamity().stealthStrike = true; - - counter++; - if (counter >= Item.useAnimation / Item.useTime) - counter = 0; return false; } From 4902ab5a228651cee29d361a117669bf1e64c86f Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 26 Aug 2023 16:52:42 -0400 Subject: [PATCH 063/258] Proper hook for resetting world data, courtesy Solxan --- Systems/MiscWorldStateSystem.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Systems/MiscWorldStateSystem.cs b/Systems/MiscWorldStateSystem.cs index a8b27f7cbd..52fca6e672 100644 --- a/Systems/MiscWorldStateSystem.cs +++ b/Systems/MiscWorldStateSystem.cs @@ -16,8 +16,8 @@ namespace CalamityMod { public class MiscWorldStateSystem : ModSystem { - #region Resetting - public static void ResetWorldData() + #region Clear World Data (Reset) + public override void ClearWorld() { CalamityGlobalNPC.holyBoss = -1; CalamityGlobalNPC.doughnutBoss = -1; @@ -71,10 +71,6 @@ namespace CalamityMod AcidRainEvent.AcidRainEventIsOngoing = false; AcidRainEvent.CountdownUntilForcedAcidRain = 0; } - - public override void OnWorldLoad() => ResetWorldData(); - - public override void OnWorldUnload() => ResetWorldData(); #endregion #region Saving/Loading From da560e70e0560f14f2425f32799add963c4eda30 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sat, 26 Aug 2023 14:19:19 -0700 Subject: [PATCH 064/258] 90 -> 60 frame defense tick down --- CalPlayer/CalamityPlayerLifeRegen.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 5d370e5d72..e58a599036 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -566,7 +566,7 @@ namespace CalamityMod.CalPlayer if (PurityHealSpeed == 5) ReducedHealingCounter = 0; //Bonus defense goes down by 1 every second after - if (Player.miscCounter % 90 == 0 && PurityBonusDefense > 0) + if (Player.miscCounter % 60 == 0 && PurityBonusDefense > 0) PurityBonusDefense--; } @@ -580,7 +580,7 @@ namespace CalamityMod.CalPlayer if (!hasAnyDebuffs) { //Bonus defense goes down by 1 every second after - if (Player.miscCounter % 90 == 0 && InfectedJewelBonusDefense > 0) + if (Player.miscCounter % 60 == 0 && InfectedJewelBonusDefense > 0) InfectedJewelBonusDefense--; } for (int l = 0; l < Player.MaxBuffs; l++) @@ -609,7 +609,7 @@ namespace CalamityMod.CalPlayer if (!hasAnyDebuffs) { //Bonus defense goes down by 1 every second after - if (Player.miscCounter % 90 == 0 && CrownJewelBonusDefense > 0) + if (Player.miscCounter % 60 == 0 && CrownJewelBonusDefense > 0) CrownJewelBonusDefense--; } for (int l = 0; l < Player.MaxBuffs; l++) From 63d54ed1622e3e49bf05748f8b7aaa40e11624d0 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 26 Aug 2023 17:27:09 -0400 Subject: [PATCH 065/258] HIJACK: Platinum armor buff --- Items/VanillaArmorChanges/PlatinumArmorSetChange.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs b/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs index 19b239eb06..9f7cd286e1 100644 --- a/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs +++ b/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs @@ -18,9 +18,10 @@ namespace CalamityMod.Items.VanillaArmorChanges public const float HeadDamage = 0.06f; public const float ChestCrit = 5f; public const float LegsMoveSpeed = 0.1f; - public const float SetBonusLifeRegenPerDefense = 0.0666667f; // 15 defense = +1 life regen - public const float SetBonusCritPerDefense = 0.0666667f; // 15 defense = +1% crit chance - public const int SetBonusDefenseCap = 45; + public const float SetBonusLifeRegenPerDefense = 0.1f; // 10 defense = +1 life regen + public const float SetBonusDamagePerDefense = 0.1f; // 10 defense = +1% damage + public const float SetBonusCritPerDefense = 0.1f; // 10 defense = +1% crit chance + public const int SetBonusDefenseCap = 40; public override void ApplyHeadPieceEffect(Player player) => player.GetDamage() += HeadDamage; @@ -31,7 +32,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { StringBuilder sb = new StringBuilder(256); - sb.Append("\nEvery 15 defense gives you +1 life regen and 1% increased critical strike chance\nThese effects both cap at 45 defense"); + sb.Append("\nEvery 10 defense gives you +0.5 HP/s life regen, 1% increased damage and 1% increased critical strike chance\nThese effects cap at 40 defense"); setBonusText += sb.ToString(); } @@ -41,6 +42,7 @@ namespace CalamityMod.Items.VanillaArmorChanges if (defense > SetBonusDefenseCap) defense = SetBonusDefenseCap; player.lifeRegen += (int)(defense * SetBonusLifeRegenPerDefense); + player.GetDamage() += defense * SetBonusDamagePerDefense; player.GetCritChance() += defense * SetBonusCritPerDefense; } } From bdbf7db1753573996928396c705d72855715b3b8 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 26 Aug 2023 19:56:05 -0400 Subject: [PATCH 066/258] Life regen tooltips on vanilla armor changes: +X HP/s life regen --- CalPlayer/CalamityPlayerLifeRegen.cs | 6 ++++-- Items/VanillaArmorChanges/IronArmorSetChange.cs | 2 +- Items/VanillaArmorChanges/LeadArmorSetChange.cs | 2 +- Items/VanillaArmorChanges/SilverArmorSetChange.cs | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index e58a599036..8152d3c468 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -572,7 +572,8 @@ namespace CalamityMod.CalPlayer } - if (infectedJewel && !purity) + // Infected Jewel will not stack with Purity + else if (infectedJewel) { bool hasAnyDebuffs = false; Player.lifeRegen += 2; @@ -601,7 +602,8 @@ namespace CalamityMod.CalPlayer } } - if (crownJewel && !infectedJewel && !purity) + // Crown Jewel will not stack with Purity or Infected Jewel + else if (crownJewel) { bool hasAnyDebuffs = false; Player.lifeRegen += 1; diff --git a/Items/VanillaArmorChanges/IronArmorSetChange.cs b/Items/VanillaArmorChanges/IronArmorSetChange.cs index 3bf3a7a576..a5af707c1c 100644 --- a/Items/VanillaArmorChanges/IronArmorSetChange.cs +++ b/Items/VanillaArmorChanges/IronArmorSetChange.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { StringBuilder sb = new StringBuilder(256); - sb.Append("\nIncreases damage reduction by 6%\n+2 life regen"); + sb.Append("\nIncreases damage reduction by 6%\n+1 HP/s life regen"); setBonusText += sb.ToString(); } diff --git a/Items/VanillaArmorChanges/LeadArmorSetChange.cs b/Items/VanillaArmorChanges/LeadArmorSetChange.cs index 5683e3af9d..0f35ce35f1 100644 --- a/Items/VanillaArmorChanges/LeadArmorSetChange.cs +++ b/Items/VanillaArmorChanges/LeadArmorSetChange.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { StringBuilder sb = new StringBuilder(256); - sb.Append("\nIncreases damage reduction by 3%\n+1 life regen\nGrants immunity to knockback"); + sb.Append("\nIncreases damage reduction by 3%\n+0.5 HP/s life regen\nGrants immunity to knockback"); setBonusText += sb.ToString(); } diff --git a/Items/VanillaArmorChanges/SilverArmorSetChange.cs b/Items/VanillaArmorChanges/SilverArmorSetChange.cs index e7fa03d65f..c9e6246e0f 100644 --- a/Items/VanillaArmorChanges/SilverArmorSetChange.cs +++ b/Items/VanillaArmorChanges/SilverArmorSetChange.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { StringBuilder sb = new StringBuilder(256); - sb.Append("\n+1 life regen\nTwo seconds after getting hit for 20 or more damage, you heal for 10\nGetting hit again resets the timer, delaying the heal"); + sb.Append("\n+0.5 HP/s life regen\nTwo seconds after getting hit for 20 or more damage, you heal for 10\nGetting hit again resets the timer, delaying the heal"); setBonusText += sb.ToString(); } From 70de2601e4bfc1f79f87fe99321d13ff57e93cea Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 26 Aug 2023 20:46:43 -0400 Subject: [PATCH 067/258] almost all life regen tooltips are +X HP/s life regen --- CalPlayer/CalamityPlayerOnHit.cs | 2 +- Items/Accessories/AngelicAlliance.cs | 2 +- Items/Accessories/TheCommunity.cs | 2 +- Items/Accessories/TheEvolution.cs | 2 +- Items/Armor/GemTech/GemTechHeadgear.cs | 7 +- .../Mods.CalamityMod.Items.Accessories.hjson | 68 ++++++++++--------- ...ods.CalamityMod.Items.Armor.Hardmode.hjson | 6 +- ...CalamityMod.Items.Armor.PostMoonLord.hjson | 16 ++--- ....CalamityMod.Items.Armor.PreHardmode.hjson | 10 +-- 9 files changed, 60 insertions(+), 55 deletions(-) diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 0784b84d49..c47b1dddc8 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -707,7 +707,7 @@ namespace CalamityMod.CalPlayer } } - // Fearmonger set's colossal life regeneration + // Fearmonger set gains +10 frames (max 90) of regen when any minion lands any hit if (fearmongerSet) { fearmongerRegenFrames += 10; diff --git a/Items/Accessories/AngelicAlliance.cs b/Items/Accessories/AngelicAlliance.cs index a4817de3e4..aa7c22ee77 100644 --- a/Items/Accessories/AngelicAlliance.cs +++ b/Items/Accessories/AngelicAlliance.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Accessories player.GetDamage() += 0.08f; player.GetDamage() += 0.07f; //7% + 8% = 15% player.maxMinions += 2; - if (player.controlJump) + if (player.wingTime < player.wingTimeMax) player.lifeRegen += 4; } diff --git a/Items/Accessories/TheCommunity.cs b/Items/Accessories/TheCommunity.cs index ccd0f1b00a..6a80090419 100644 --- a/Items/Accessories/TheCommunity.cs +++ b/Items/Accessories/TheCommunity.cs @@ -116,7 +116,7 @@ namespace CalamityMod.Items.Accessories (int)(HealthMultiplier * power), (DRMultiplier * power * 100).ToString("N2"), (int)(DefenseMultiplier * power), - 1 + (int)(RegenMultiplier * power), + (0.5f * (1f + (int)(RegenMultiplier * power))).ToString("n1"), (SpeedMultiplier * power * 100).ToString("N1"), (FlightMultiplier * power * 100).ToString("N1"), (CalculatePower(true) * 100).ToString("N0")); diff --git a/Items/Accessories/TheEvolution.cs b/Items/Accessories/TheEvolution.cs index fc43a7c998..f7cae5cd24 100644 --- a/Items/Accessories/TheEvolution.cs +++ b/Items/Accessories/TheEvolution.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 10)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 10)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Armor/GemTech/GemTechHeadgear.cs b/Items/Armor/GemTech/GemTechHeadgear.cs index 1b212d446b..8a0b35a901 100644 --- a/Items/Armor/GemTech/GemTechHeadgear.cs +++ b/Items/Armor/GemTech/GemTechHeadgear.cs @@ -138,12 +138,15 @@ namespace CalamityMod.Items.Armor.GemTech tooltips.Insert(setBonusIndex, purpleGemTooltip); setBonusIndex++; - TooltipLine pinkGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus7", CalamityUtils.GetTextFromModItem("PinkGemInfo").Format(BaseGemDefenseBoost, BaseGemLifeRegenBoost)); + string pinkLifeRegenString = (0.5f * BaseGemLifeRegenBoost).ToString("n1"); + TooltipLine pinkGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus7", CalamityUtils.GetTextFromModItem("PinkGemInfo").Format(BaseGemDefenseBoost, pinkLifeRegenString)); pinkGemTooltip.OverrideColor = new Color(255, 115, 206); tooltips.Insert(setBonusIndex, pinkGemTooltip); setBonusIndex++; - TooltipLine liferegenTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus8", CalamityUtils.GetTextFromModItem("GemBonusInfo").Format(AllGemsWeaponUseLifeRegenBoost, AllGemsLifeRegenBoostTime / 60, AllGemsMultiWeaponUseLifeRegenBoost, AllGemsMultiWeaponLifeRegenBoostTime / 60f)); + string baseLifeRegenString = (0.5f * AllGemsWeaponUseLifeRegenBoost).ToString("n1"); + string multiclassLifeRegenString = (0.5f * AllGemsMultiWeaponUseLifeRegenBoost).ToString("n1"); + TooltipLine liferegenTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus8", CalamityUtils.GetTextFromModItem("GemBonusInfo").Format(baseLifeRegenString, AllGemsLifeRegenBoostTime / 60, multiclassLifeRegenString, AllGemsMultiWeaponLifeRegenBoostTime / 60f)); liferegenTooltip.OverrideColor = new Color(230, 230, 230); tooltips.Insert(setBonusIndex, liferegenTooltip); } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 3d732505e0..59a1cef57e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -74,7 +74,7 @@ Affliction: { DisplayName: Affliction Tooltip: ''' - Gives you and all other players on your team +1 life regen, + Gives you and all other players on your team +0.5 HP/s life regen, +10% max life, 7% damage reduction, 13 defense and 10% increased damage ''' } @@ -117,7 +117,7 @@ AmbrosialAmpoule: { ''' You emit light +50 max life - Your life regen is increased by 5 + +2.5 HP/s life regen Your natural life regen is greatly improved Halves how long you are afflicted with sickness debuffs When you are afflicted with a sickness debuff you quickly heal @@ -155,7 +155,7 @@ AngelicAlliance: { Call upon the force of heaven to empower your attacks and minions Courage, Enlightenment, Bliss. United in Judgement +2 max minions, 15% increased summon damage, and 8% increased damage to all other classes - Life regeneration is boosted while jumping + +2 HP/s life regen while airborne using wings Press [KEY] to grace yourself in divinity for 15 seconds While under the effects of Divine Bless, for every minion you have, an archangel shall be summoned to aid you in combat Each spawned angel will instantly heal you for two health @@ -221,7 +221,7 @@ AsgardianAegis: { ''' Grants immunity to knockback Immune to most debuffs - +40 max life and increased life regeneration + +40 max life and +0.5 HP/s life regen Grants a cosmic inferno dash which can slam through enemies without taking damage Can be used to ram enemies +20 defense while submerged in liquid @@ -247,8 +247,8 @@ Purity: { A once infected crystal, now perfectly purified You emit light +80 max life - Your life regen is increased by 5 - You gain an additional 5 life regen while afflicted with a debuff + +2.5 HP/s life regen + You gain an additional +2.5 HP/s life regen while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff Your natural life regen is massively improved Greatly reduces how long you are afflicted with debuffs @@ -325,8 +325,9 @@ BloomStone: { DisplayName: Bloom Stone Tooltip: ''' - You quickly regenerate life while on the ground - This effect works best during daytime + Grants between +1 HP/s and +3 HP/s life regen depending on time of day + Accelerates life regen based on time of day + Both of these effects are maximized from noon to sunset Flowers grow if you are standing on grass Random dye plants will grow while standing on grassless dirt One of the ancient relics @@ -361,8 +362,8 @@ InfectedJewel: { Tooltip: ''' A beautiful gem that has been corrupted by the astral infection - Life regen increased by 2 - You gain an additional 4 life regen while afflicted with a debuff + +1 HP/s life regen + You gain an additional +2 HP/s life regen while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff When afflicted with a debuff, you will gain 14 defense This defense will begin to fade away when you are no longer debuffed @@ -460,8 +461,8 @@ CrownJewel: { DisplayName: Crown Jewel Tooltip: ''' - Life regen increased by 1 - You gain an additional 3 life regen while afflicted with a debuff + +0.5 HP/s life regen + You gain an additional +1.5 HP/s life regen while afflicted with a debuff Your life regen is still increased even when afflicted with a damage over time debuff When afflicted with a debuff, you will gain 8 defense This defense will begin to fade away when you are no longer debuffed @@ -511,11 +512,11 @@ DarkSunRing: { Tooltip: ''' 12% increase to damage - +1 life regen and +2 max minions + +0.5 HP/s life regen and +2 max minions Increased minion knockback - During the day the player has +4 life regen - During the night the player has +20 defense - During an eclipse the player has +2 life regen and +10 defense + During the day, grants +2 HP/s life regen + During the night, grants +20 defense + During an eclipse, grants +1 HP/s life regen and +10 defense 'Contains the power of the dark sun' ''' } @@ -543,7 +544,8 @@ DeificAmulet: { Tooltip: ''' Causes stars to fall and grants increased immune time when damaged - Provides life regeneration and reduces the cooldown of healing potions + +0.5 HP/s life regen + Reduces the cooldown of healing potions ''' } @@ -796,7 +798,7 @@ FungalSymbiote: { Tooltip: ''' You grow mushrooms on the grass beneath you - Consuming mushrooms provides the Mushy buff, increasing defense by 6 and life regen by 2 + Consuming mushrooms provides the Mushy buff, increasing defense by 6 and granting 0.5 HP/s life regen All mushroom-based weapons deal 10% more damage and emit non-damaging mushrooms ''' } @@ -876,7 +878,7 @@ GrandGelatin: { 10% increased movement speed and jump speed Using a healing potion will spawn a cleansing aura Walking into the aura removes all debuffs and defense damage one time - The aura provides increased life regen for all players inside for 8 seconds + The aura grants +2.5 HP/s life regen for all players inside for 8 seconds ''' } @@ -1016,7 +1018,7 @@ LifeJelly: { Tooltip: ''' Using a healing potion will spawn a lingering aura - The aura provides increased life regen for all players inside for 5 seconds + The aura grants +2 HP/s life regen for all players inside for 5 seconds ''' } @@ -1059,7 +1061,7 @@ ManaPolarizer: { Tooltip: ''' Increases max mana by 50 and magic damage by 6% - Life regen lowered by 3 if mana is above 50% of its maximum + -1.5 HP/s life regen if mana is above 50% of its maximum Grants spectre healing, the amount healed scales with your mana The healing only works while holding a magic weapon The more mana you have, the more you heal @@ -1231,8 +1233,8 @@ PermafrostsConcoction: { Tooltip: ''' Increases maximum mana by 50 and reduces mana cost by 15% - Increases life regen as life decreases - Increases life regen when afflicted with any fire debuff + +0.5 HP/s life regen below half health, +1 HP/s when below 25% health and +2 HP/s when below 10% health + +3 HP/s life regen while afflicted with any fire debuff You will survive fatal damage and revive with 30% life on a 3 minute cooldown You are encased in an ice barrier for 3 seconds when revived ''' @@ -1325,7 +1327,7 @@ RadiantOoze: { Tooltip: ''' You produce light - Your life regen is increased by 3 + +1.5 HP/s life regen Your natural life regen is improved ''' } @@ -1344,7 +1346,7 @@ RampartofDeities: { Tooltip: ''' Causes stars to fall and gives increased immune time when damaged - Provides life regeneration and reduces the cooldown of healing potions + +0.5 HP/s life regen and reduces the cooldown of healing potions Absorbs 15% of damage done to players on your team This effect is only active above 25% life Grants immunity to knockback @@ -1366,7 +1368,7 @@ Regenator: { DisplayName: Regenator Tooltip: ''' - Greatly improves life regeneration + +6 HP/s life regen and massively accelerated natural life regen However, your health cannot exceed 50% of its maximum ''' } @@ -1436,7 +1438,7 @@ SandCloak: { Tooltip: ''' 5% increased movement speed - Press [KEY] to consume 10% of your maximum stealth to create a protective dust veil which provides +6 defense and +2 life regen + Press [KEY] to consume 10% of your maximum stealth to create a protective dust veil which provides +6 defense and +1 HP/s life regen This effect has a 30 second cooldown before it can be used again ''' } @@ -1465,7 +1467,7 @@ ShatteredCommunity: { ''' 'Ruined by unknowable hatred, it still contains (most of) the power of The Community...' Increases damage by 10% and critical strike chance by 5% - Increases max health by 10%, damage reduction by 5%, defense by 10 and life regen by 2 + Increases max health by 10%, damage reduction by 5%, defense by 10, and life regen by 1 HP/s Increases movement speed by 10% and flight time by 20% [RAGEDESC] Taking damage gives rage, this effect is not hindered by your defensive stats @@ -1503,7 +1505,7 @@ ShieldoftheOcean: { Tooltip: ''' Increased defense by 5 when submerged in liquid - Increases movement speed and life regen while wearing the Victide armor + 10% increased movement speed and +1 HP/s life regen while wearing Victide armor ''' } @@ -1721,7 +1723,7 @@ TheAbsorber: { Enemies take immense damage when they touch you and are afflicted with a debuff that reduces damage reduction significantly Using a healing potion will spawn a cleansing aura Walking into the aura removes all debuffs and defense damage one time - The aura provides greatly increased life regen, damage, and damage reduction for all players inside for 15 seconds + The aura grants +3 HP/s life regen, +10% damage, and +7% damage reduction for all players inside for 15 seconds 5% of the damage from enemy attacks is absorbed and converted into healing ''' } @@ -1776,7 +1778,7 @@ TheCommunity: { ''' Increases damage by {0}% and critical strike chance by {1}% Increases max health by {2}%, damage reduction by {3}%, and defense by {4} - Increases life regen by {5} while under damage over time effects + +{5} HP/s life regen while suffering from damage over time debuffs Increases movement speed by {6}% and flight time by {7}% Become more powerful as you defeat bosses ({8}% Power) ''' @@ -1789,7 +1791,7 @@ TheEvolution: { You reflect projectiles when they hit you Reflected projectiles deal no damage to you This reflect has a 90 second cooldown which is shared with all other dodges and reflects - If this effect triggers you get a health regeneration boost for 5 seconds + After reflecting something, grants +1 HP/s life regen and accelerated life regen for 5 seconds If the same enemy projectile type hits you again you will resist its damage by 15% ''' } @@ -1842,7 +1844,7 @@ TrinketofChi: { Tooltip: ''' Provides 10% damage reduction after not being hit for 15 seconds, this is removed when you are hit - Provides 2 life regen for you and everyone on your team + +1 HP/s life regen for you and everyone on your team ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson index 5c1780a4f0..7066cfd499 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson @@ -172,7 +172,7 @@ FathomSwarmerBreastplate: { ''' 6% increased damage reduction 6% increased summon damage - Boosted defense and regen increased while submerged in liquid + Increases defense by 10 and grants +2.5 HP/s life regen while submerged in liquid Reduces defense loss within the Abyss ''' } @@ -488,11 +488,11 @@ ReaverHeadTank: { ''' 15% increased damage reduction but 30% decreased damage +50 max life - Passively regenerates one health point every second + Restores 1 HP every second, this applies separately from life regen ''' SetBonus: ''' - +10 defense and +3 life regen + +10 defense and +1.5 HP/s life regen Enemies are more likely to target you Reduces the life regen lost from damage over time debuffs by 20% All attacks have a small chance to steal life and speed up the rate of life regen diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 2fb71fc5aa..d5007eb970 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -82,7 +82,7 @@ BloodflareBodyArmor: { ''' CommonSetBonus: ''' - Greatly increases 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 ''' @@ -152,7 +152,7 @@ BloodflareHeadSummon: { 50% increased summon damage and +3 max minions 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 2 life regen + At 50% life and below you gain 20 defense and +1 HP/s life regen ''' } @@ -163,7 +163,7 @@ DemonshadeBreastplate: { 25% increased melee speed, 15% increased damage and critical strike chance Enemies take ungodly damage when they touch you Increased max life and mana by 200 - Standing still lets you absorb the shadows and boost your life regen + Standing still absorbs shadows to grant exponentially accelerating life regen ''' } @@ -233,7 +233,7 @@ FearmongerGreathelm: { 20% increased summon damage and +2 max minions Minions no longer deal less damage while wielding non-summoner weapons Immunity to all forms of frost and flame - All minion attacks grant colossal life regeneration + Minion attacks grant +3.5 HP/s life regen and massively accelerate life regen 15% increased damage reduction during the Pumpkin and Frost Moons This extra damage reduction ignores the soft cap ''' @@ -288,11 +288,11 @@ GemTechHeadgear: { GreenGemInfo: "[i:Emerald] The green gem provides increased ranged stats and causes flechettes to fly swiftly towards targets when they are damaged by a ranged projectile" BlueGemInfo: "[i:Sapphire] The blue gem grants {0} extra maximum minions, increased summon damage, and negates the summon damage penalty while wielding non-summoner weapons" PurpleGemInfo: "[i:Amethyst] The violet gem grants {0} extra maximum mana, increased magic stats, and makes mana rapidly regenerate when holding a non-magic weapon" - PinkGemInfo: "[i:Diamond] The pink base gem grants {0} extra defense, extra damage reduction, increased movement speed, jump speed, and +{1} life regen" + PinkGemInfo: "[i:Diamond] The pink base gem grants {0} extra defense, extra damage reduction, increased movement speed, jump speed, and +{1} HP/s life regen" GemBonusInfo: ''' - When all gems exist simultaneously, hitting a target with any weapon grants you +{0} life regen for {1} seconds - This is increased to +{2} life regen if a weapon of another class is used during that {1} second period for {3} seconds + When all gems exist simultaneously, hitting a target with any weapon grants you +{0} HP/s life regen for {1} seconds + This is increased to +{2} HP/s life regen if a weapon of another class is used during that {1} second period for {3} seconds ''' } @@ -492,7 +492,7 @@ TarragonBreastplate: { Tooltip: ''' 10% increased damage and 5% increased critical strike chance - +2 life regen and +40 max life + +1 HP/s life regen and +40 max life ''' CommonSetBonus: ''' diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson index c27cf40941..547aa65183 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PreHardmode.hjson @@ -238,7 +238,7 @@ VictideGreaves: { VictideHeadMagic: { DisplayName: Victide Hermit Helmet Tooltip: 5% increased magic damage - SetBonus: +3 life regen and 10% increased magic damage while submerged in liquid + SetBonus: +1.5 HP/s life regen and 10% increased magic damage while submerged in liquid } VictideHeadMelee: { @@ -247,14 +247,14 @@ VictideHeadMelee: { SetBonus: ''' Enemies are more likely to target you - +3 life regen and 10% increased melee damage while submerged in liquid + +1.5 HP/s life regen and 10% increased melee damage while submerged in liquid ''' } VictideHeadRanged: { DisplayName: Victide Coral Turban Tooltip: 5% increased ranged damage - SetBonus: +3 life regen and 10% increased ranged damage while submerged in liquid + SetBonus: +1.5 HP/s life regen and 10% increased ranged damage while submerged in liquid } VictideHeadRogue: { @@ -263,7 +263,7 @@ VictideHeadRogue: { SetBonus: ''' +60 maximum stealth - +3 life regen and 10% increased rogue damage while submerged in liquid + +1.5 HP/s life regen and 10% increased rogue damage while submerged in liquid ''' } @@ -274,7 +274,7 @@ VictideHeadSummon: { ''' +1 max minion Summons a sea snail to protect you - +3 life regen and 10% increased summon damage while submerged in liquid + +1.5 HP/s life regen and 10% increased summon damage while submerged in liquid ''' } From af79e8a58e0c9d749226c1e8817120846d457a73 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sat, 26 Aug 2023 22:51:53 -0600 Subject: [PATCH 068/258] Eradicator buffs, vfx and some autolocalization shit that Tml did (it does not like empty spaces inside localization files) --- Items/Weapons/Rogue/Eradicator.cs | 4 +- .../Mods.CalamityMod.Items.Accessories.hjson | 2 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 2 +- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 2 +- Projectiles/Rogue/EradicatorProjectile.cs | 49 ++++++++++++++++--- 6 files changed, 47 insertions(+), 14 deletions(-) diff --git a/Items/Weapons/Rogue/Eradicator.cs b/Items/Weapons/Rogue/Eradicator.cs index 3a90a57e57..2283706320 100644 --- a/Items/Weapons/Rogue/Eradicator.cs +++ b/Items/Weapons/Rogue/Eradicator.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 62; Item.height = 58; - Item.damage = 563; + Item.damage = 620; Item.noMelee = true; Item.noUseGraphic = true; Item.autoReuse = true; @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.DamageType = RogueDamageClass.Instance; } - public override float StealthDamageMultiplier => 0.5f; + public override float StealthDamageMultiplier => 0.75f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 4740a95ce8..ea423332a5 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1991,4 +1991,4 @@ YharimsInsignia: { All melee attacks inflict Holy Flames Increased melee knockback ''' -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 7e1f610c17..adedb1f7e7 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1285,4 +1285,4 @@ WulfrumBlunderbuss: { [c/83B87E:'The good thing about Wulfrum is that while it breaks fast, it can be reused even faster.] [c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.'] ''' -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 47e2296970..69377fae41 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -1387,4 +1387,4 @@ WulfrumKnife: { Stealth strikes make the knife fly further and hit several times at once Hold to magnetize all nearby fallen knives back to you ''' -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 24ea493bdf..c41f64d8b5 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -794,4 +794,4 @@ MirrorofKalandra: { StellarTorusStaff: { DisplayName: Stellar Torus Staff Tooltip: Summons a Torus Orbital that fries foes with a telescoping light beam -} +} \ No newline at end of file diff --git a/Projectiles/Rogue/EradicatorProjectile.cs b/Projectiles/Rogue/EradicatorProjectile.cs index 92ef2ca750..7fb2693bb0 100644 --- a/Projectiles/Rogue/EradicatorProjectile.cs +++ b/Projectiles/Rogue/EradicatorProjectile.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Rogue; +using CalamityMod.Particles; using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -14,10 +15,10 @@ namespace CalamityMod.Projectiles.Rogue { public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Items/Weapons/Rogue/Eradicator"; - private const float RotationIncrement = 0.09f; - private const int Lifetime = 350; - public const int StealthExtraLifetime = 240; // 1 extra update means this is double what you'd expect for 2 seconds - private const float ReboundTime = 40f; + private static float RotationIncrement = 0.15f; + private static int Lifetime = 350; + public static int StealthExtraLifetime = 240; // 1 extra update means this is double what you'd expect for 2 seconds + private static int ReboundTime = 60; private float randomLaserCharge = 0f; @@ -29,7 +30,7 @@ namespace CalamityMod.Projectiles.Rogue public override void SetDefaults() { - Projectile.width = Projectile.height = 58; + Projectile.width = Projectile.height = 62; Projectile.friendly = true; Projectile.tileCollide = false; Projectile.ignoreWater = true; @@ -116,7 +117,7 @@ namespace CalamityMod.Projectiles.Rogue { // Fire lasers at up to 2 nearby targets every 8 frames for 40% damage. // Stealth strike lasers have an intentionally lower ratio of 12%. - double laserDamageRatio = Projectile.Calamity().stealthStrike ? 0.12D : 0.4D; + double laserDamageRatio = Projectile.Calamity().stealthStrike ? 0.15D : 0.4D; float laserFrames = Projectile.MaxUpdates * 8f; CalamityUtils.MagnetSphereHitscan(Projectile, 300f, 6f, laserFrames, 2, ModContent.ProjectileType(), laserDamageRatio, true); } @@ -167,7 +168,39 @@ namespace CalamityMod.Projectiles.Rogue } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 180); + + // Spawn sparks; taken from Despair stone then adapted to a projectile + Vector2 particleSpawnDisplacement; + Vector2 splatterDirection; + + particleSpawnDisplacement = new Vector2(2f * -Projectile.ai[2], 2f * -Projectile.ai[2]); + splatterDirection = new Vector2(Projectile.velocity.X, Projectile.velocity.Y); + + Vector2 SparkSpawnPosition = target.Center + particleSpawnDisplacement; + + if (Projectile.ai[1] % 4 == 0) + { + for (int i = 0; i < 2; i++) + { + int sparkLifetime = Main.rand.Next(14, 21); + float sparkScale = Main.rand.NextFloat(0.8f, 1f) + 1f * 0.05f; + Color sparkColor = Color.Lerp(Color.Fuchsia, Color.AliceBlue, Main.rand.NextFloat(0.5f)); + sparkColor = Color.Lerp(sparkColor, Color.Cyan, Main.rand.NextFloat()); + + if (Main.rand.NextBool(5)) + sparkScale *= 1.4f; + + Vector2 sparkVelocity = splatterDirection.RotatedByRandom(MathHelper.TwoPi); + sparkVelocity.Y -= 6f; + SparkParticle spark = new SparkParticle(SparkSpawnPosition, sparkVelocity, true, sparkLifetime, sparkScale, sparkColor); + GeneralParticleHandler.SpawnParticle(spark); + } + } + + } public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 180); @@ -175,7 +208,7 @@ namespace CalamityMod.Projectiles.Rogue private void OnHit() { - // Non-stealth strikes do nothing special on hit. + // Non-stealth strikes do not stick on hit. if (!Projectile.Calamity().stealthStrike) return; From 40ba56f3809483c2db4554141d2593bf471bf5a8 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 27 Aug 2023 01:27:43 -0400 Subject: [PATCH 069/258] 1 - Collaborative review of life regen accessories between Xyk and Ozzatron. Massive changes 2 - Massive improvements to various aspects of life regen code 3 - Death Mode consistently increases debuff DoT by +50% for both vanilla and Calamity debuffs 4 - Fixed all Shiny Stone-like standing still regen effects and removed their hardcap (they are affected by life regen softcap anyway) 5 - Fixed the amount of Living Shards used by Terra Flameburster and Miracle Fruit 6 - Added a fire debuff list (NOT used in Fab's elemental weakness system yet) --- CalPlayer/CalamityPlayer.cs | 24 +- CalPlayer/CalamityPlayerLifeRegen.cs | 713 +++++++----------- CalPlayer/CalamityPlayerMiscEffects.cs | 102 +-- CalamityLists.cs | 31 +- Items/Accessories/AmbrosialAmpoule.cs | 27 +- Items/Accessories/HoneyDew.cs | 12 +- Items/Accessories/InfectedJewel.cs | 6 +- Items/Accessories/LivingDew.cs | 23 +- Items/Accessories/Purity.cs | 38 +- Items/Accessories/RadiantOoze.cs | 21 +- Items/PermanentBoosters/MiracleFruit.cs | 2 +- Items/Weapons/Ranged/TerraFlameburster.cs | 2 +- .../Mods.CalamityMod.Items.Accessories.hjson | 70 +- Utilities/PlayerUtils.cs | 8 +- 14 files changed, 444 insertions(+), 635 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index ea481e8755..4a14987880 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -470,18 +470,11 @@ namespace CalamityMod.CalPlayer public bool gShell = false; public bool tortShell = false; public bool absorber = false; - public bool hDew = false; - public int HoneyDewHealCooldown = 0; - public int HoneyDewHealSpeed = 12; - public int AmbrosialAmpouleHealCooldown = 0; - public int AmbrosialAmpouleHealSpeed = 9; - public int PurityHealCooldown = 0; - public int PurityHealSpeed = 5; - //Used to time until you get reduced healing - public int ReducedHealingCounter = 0; - public int CrownJewelBonusDefense = 0; - public int InfectedJewelBonusDefense = 0; - public int PurityBonusDefense = 0; + public bool alwaysHoneyRegen = false; + public bool honeyTurboRegen = false; + public bool honeyDewHalveDebuffs = false; + public bool livingDewHalveDebuffs = false; + public int jewelBonusDefense = 0; public bool aAmpoule = false; public bool rOoze = false; public bool JustWasDebuffed = false; @@ -532,6 +525,7 @@ namespace CalamityMod.CalPlayer public bool crownJewel = false; public bool infectedJewel = false; public bool purity = false; + public int PurityHealSlowdownFrames = 0; public bool harpyRing = false; public bool angelTreads = false; public bool harpyWingBoost = false; //harpy wings + harpy ring @@ -1585,7 +1579,10 @@ namespace CalamityMod.CalPlayer gShell = false; tortShell = false; absorber = false; - hDew = false; + alwaysHoneyRegen = false; + honeyTurboRegen = false; + honeyDewHalveDebuffs = false; + livingDewHalveDebuffs = false; aAmpoule = false; rOoze = false; fBarrier = false; @@ -2257,6 +2254,7 @@ namespace CalamityMod.CalPlayer vaporfied = false; banishingFire = false; wither = false; + PurityHealSlowdownFrames = 0; #endregion #region Rogue diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 8152d3c468..35a1fda95e 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -1,20 +1,18 @@ -using CalamityMod.Items.Accessories; +using System; +using System.Linq; using CalamityMod.Buffs.Alcohol; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Cooldowns; -using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.NPCs; using CalamityMod.Projectiles.Ranged; +using CalamityMod.Systems; using CalamityMod.World; using Microsoft.Xna.Framework; -using System; using Terraria; -using Terraria.ModLoader; using Terraria.DataStructures; -using CalamityMod.Systems; -using System.Linq; -using CalamityMod.Buffs.Pets; -using CalamityMod.Particles; +using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.CalPlayer { @@ -26,141 +24,94 @@ namespace CalamityMod.CalPlayer if (Player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) noLifeRegen = true; - bool death = CalamityWorld.death || BossRushEvent.BossRushActive; - double lifeRegenMult = death ? 1.5 : 1D; - if (reaverDefense) - lifeRegenMult *= 0.8; - int lifeRegenLost = 0; + // Universal +50% increase to DoT debuff damage in Death Mode + float deathNegativeRegenBonus = 0.5f; + float calamityDebuffMultiplier = 1f + (CalamityWorld.death ? deathNegativeRegenBonus : 0f); - // Initial Debuffs + // Cumulative amount of DoT debuff negative life regen from Calamity debuffs (or changes to vanilla debuffs) + float totalNegativeLifeRegen = 0; - // Get fucked, Nebula Armor - Player.nebulaLevelLife = 0; + #region Damage over Time Debuffs (Negative Life Regen) - // Vanilla - if (death) + // Vanilla debuffs (+50% damage over time in Death Mode is applied here) + if (CalamityWorld.death) { - if (Player.poisoned) - lifeRegenLost += 4; + int totalVanillaDoT = 0; - if (Player.onFire) - lifeRegenLost += 8; + if (Player.poisoned && !purity) + totalVanillaDoT += 4; + + if (Player.onFire && !purity) + totalVanillaDoT += 8; if (Player.tongued) - lifeRegenLost += 100; + totalVanillaDoT += 100; - if (Player.venom) - lifeRegenLost += 12; + if (Player.venom && !purity) + totalVanillaDoT += 12; - if (Player.onFrostBurn) - lifeRegenLost += 12; + if (Player.onFrostBurn && !purity) + totalVanillaDoT += 12; - if (Player.onFire2) - lifeRegenLost += 12; + if (Player.onFire2 && !purity) + totalVanillaDoT += 12; if (Player.burned) - lifeRegenLost += 60; + totalVanillaDoT += 60; if (Player.suffocating) - lifeRegenLost += 40; + totalVanillaDoT += 40; - if (Player.electrified) + if (Player.electrified && !purity) { - lifeRegenLost += 8; + totalVanillaDoT += 8; if (Player.controlLeft || Player.controlRight) - lifeRegenLost += 32; + totalVanillaDoT += 32; } + + // Tally up total current vanilla DoT so it can be added as extra DoT from Death Mode + totalNegativeLifeRegen += totalVanillaDoT * deathNegativeRegenBonus; } - // Calamity - if (shadowflame) + // + // Calamity debuffs (Vanilla Shadowflame is added here) + // + void ApplyDoTDebuff(bool hasDebuff, int negativeLifeRegenToApply, bool immuneCondition = false) { + if (!hasDebuff || immuneCondition) + return; + if (Player.lifeRegen > 0) Player.lifeRegen = 0; Player.lifeRegenTime = 0; - lifeRegenLost += 30; + totalNegativeLifeRegen += negativeLifeRegenToApply * calamityDebuffMultiplier; } - if (wDeath) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; + // Whispering Death sets positive regen to zero but doesn't actually deal any damage + ApplyDoTDebuff(wDeath, 0); - Player.lifeRegenTime = 0; - } - - if (weakBrimstoneFlames) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 7; - } - - if (bFlames) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 16; - } - - if (nightwither) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 16; - } - - if (vaporfied) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 8; - } - - if (cragsLava) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 30; - } - - if (gsInferno) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += profanedCrystalBuffs ? 35 : 30; - } - - if (astralInfection) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 20; - } - - if (irradiated) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 4; - } + ApplyDoTDebuff(irradiated, 4, purity); + int sulphurDoT = 6 - (sulfurSet ? 2 : 0) - (sulphurskin ? 2 : 0); + ApplyDoTDebuff(sulphurPoison, sulphurDoT, purity); + ApplyDoTDebuff(rTide, 6, purity); + ApplyDoTDebuff(weakBrimstoneFlames, 7); + ApplyDoTDebuff(bBlood, 8, purity); + ApplyDoTDebuff(vaporfied, 8, purity); + ApplyDoTDebuff(bFlames, 16, purity); + ApplyDoTDebuff(nightwither, 16, purity); + ApplyDoTDebuff(hFlames, 16, purity); + ApplyDoTDebuff(vHex, 16); + ApplyDoTDebuff(cDepth, 18, purity); + ApplyDoTDebuff(astralInfection, 20, infectedJewel || purity); + ApplyDoTDebuff(pFlames, 20, purity); + ApplyDoTDebuff(cragsLava, 30); + ApplyDoTDebuff(shadowflame, 30, purity); + // Profaned Soul Crystal turns you into Providence, a God, and you take more damage from God Slayer Inferno + ApplyDoTDebuff(gsInferno, profanedCrystalBuffs ? 35 : 30); + ApplyDoTDebuff(dragonFire, 36); + ApplyDoTDebuff(miracleBlight, 40); + ApplyDoTDebuff(banishingFire, 60); // Slowly increase the sulphuric water poisoning effect. Once it's high enough, the player starts taking damage over time. bool nearSafeZone = false; @@ -201,116 +152,20 @@ namespace CalamityMod.CalPlayer } else SulphWaterPoisoningLevel = MathHelper.Clamp(SulphWaterPoisoningLevel - 1f / SulphSeaWaterRecoveryTime, 0f, 1f); + #endregion - if (sulphurPoison) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 6; - if (sulfurSet) - { - lifeRegenLost -= 2; - } - if (sulphurskin) - { - lifeRegenLost -= 2; - } - } - - if (hFlames) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 16; - } - - if (banishingFire) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 60; - } - - if (pFlames) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 20; - } - - if (bBlood) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 8; - } - - if (vHex) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 16; - } - - if (dragonFire) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 36; - } - - if (miracleBlight) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 40; - } - - if (cDepth) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 18; - } - - if (rTide) - { - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - - Player.lifeRegenTime = 0; - lifeRegenLost += 6; - } - + #region Alcohol if (vodka) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; } if (redWine) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; if (baguette) - lifeRegenLost += 3; + totalNegativeLifeRegen += 3; } if (grapeBeer) { @@ -319,7 +174,7 @@ namespace CalamityMod.CalPlayer if (moonshine) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; } if (rum) { @@ -332,7 +187,7 @@ namespace CalamityMod.CalPlayer if (fireball) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; } if (whiskey) { @@ -341,27 +196,27 @@ namespace CalamityMod.CalPlayer if (everclear) { alcoholPoisonLevel += 2; - lifeRegenLost += 10; + totalNegativeLifeRegen += 10; } if (bloodyMary) { alcoholPoisonLevel++; - lifeRegenLost += 4; + totalNegativeLifeRegen += 4; } if (tequila) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; } if (tequilaSunrise) { alcoholPoisonLevel++; - lifeRegenLost += 2; + totalNegativeLifeRegen += 2; } if (screwdriver) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; } if (caribbeanRum) { @@ -374,27 +229,27 @@ namespace CalamityMod.CalPlayer if (margarita) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; } if (starBeamRye) { alcoholPoisonLevel++; - lifeRegenLost += 2; + totalNegativeLifeRegen += 2; } if (moscowMule) { alcoholPoisonLevel++; - lifeRegenLost += 4; + totalNegativeLifeRegen += 4; } if (whiteWine) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; } if (evergreenGin) { alcoholPoisonLevel++; - lifeRegenLost += 1; + totalNegativeLifeRegen += 1; } if (Player.tipsy) { @@ -412,14 +267,16 @@ namespace CalamityMod.CalPlayer Player.lifeRegen = 0; Player.lifeRegenTime = 0; - lifeRegenLost += 3 * alcoholPoisonLevel; + totalNegativeLifeRegen += 3 * alcoholPoisonLevel; } + #endregion if (manaOverloader) { if (Player.statMana > (int)(Player.statManaMax2 * 0.5)) - lifeRegenLost += 3; + totalNegativeLifeRegen += 3; } + if (brimflameFrenzy) { Player.manaRegen = 0; @@ -427,7 +284,7 @@ namespace CalamityMod.CalPlayer Player.manaRegenDelay = (int) Player.maxRegenDelay; if (Player.lifeRegen > 0) Player.lifeRegen = 0; - lifeRegenLost += 42; //the meaning of death + totalNegativeLifeRegen += 42; //the meaning of death } if (witheredDebuff) @@ -439,7 +296,7 @@ namespace CalamityMod.CalPlayer } else { - lifeRegenLost += (int)(5D * Math.Pow(1.5D, witheredWeaponHoldTime / 87D)); + totalNegativeLifeRegen += (int)(5D * Math.Pow(1.5D, witheredWeaponHoldTime / 87D)); if (Player.lifeRegen > 0) Player.lifeRegen = 0; } @@ -452,14 +309,62 @@ namespace CalamityMod.CalPlayer int debuffIndex = Player.FindBuffIndex(ModContent.BuffType()); float debuffIntensity = debuffIndex == -1 ? 0f : Player.buffTime[debuffIndex] / (float)Player.manaSickTimeMax; - lifeRegenLost += (int)(Math.Sqrt(debuffIntensity) * Math.Pow(6D, debuffIntensity + 1f)); + totalNegativeLifeRegen += (int)(Math.Sqrt(debuffIntensity) * Math.Pow(6D, debuffIntensity + 1f)); if (Player.lifeRegen > 0) Player.lifeRegen = 0; } - Player.lifeRegen -= (int)(lifeRegenLost * lifeRegenMult); + // + // ACTUALLY APPLY NEGATIVE LIFE REGEN + // - // Buffs + // At the last second, Reaver defense helm reduces DoT debuffs by 20% + if (reaverDefense) + totalNegativeLifeRegen = (int)(0.8f * totalNegativeLifeRegen); + + Player.lifeRegen -= (int)totalNegativeLifeRegen; + + #region Life Regen That Works Even During DoT Debuffs + + // Honey Dew (and upgrades) + if (alwaysHoneyRegen) + { + // Exact copy of vanilla Honey behavior, but does not stack with actually standing in Honey + if (!Player.honey) + { + Player.lifeRegen += 2; + Player.lifeRegenTime += 1; + + // Grants +2 life regen if negative life regen would otherwise occur. + // However, this can't bring regen into the positives. + if (Player.lifeRegen < 0) + { + Player.lifeRegen += 2; + if (Player.lifeRegen > 0) + Player.lifeRegen = 0; + } + } + } + + if (honeyDewHalveDebuffs) + { + // Tick down all sickness debuffs; this makes them expire 2x faster + // Upgrades increase the sets of debuffs which expire faster + for (int l = 0; l < Player.MaxBuffs; ++l) + { + int buffID = Player.buffType[l]; + if (Player.buffTime[l] <= 2) + continue; + bool shouldHalveDuration = CalamityLists.sicknessDebuffList.Contains(buffID); + if (livingDewHalveDebuffs) + shouldHalveDuration |= CalamityLists.fireDebuffList.Contains(buffID); + if (purity) + shouldHalveDuration |= CalamityLists.debuffList.Contains(buffID); + + if (shouldHalveDuration) + --Player.buffTime[l]; + } + } if (divineBless) { @@ -498,144 +403,113 @@ namespace CalamityMod.CalPlayer } // Permafrost's Concoction increases life regen while afflicted with a fire debuff - if (permafrostsConcoction) + if (permafrostsConcoction && Player.buffType.Any(CalamityLists.fireDebuffList.Contains)) { - if (Player.onFire || Player.onFire2 || Player.onFire3 || Player.burned || shadowflame || weakBrimstoneFlames || bFlames || cragsLava || gsInferno || hFlames || banishingFire || dragonFire) - { - if (Player.lifeRegenTime < 1800) - Player.lifeRegenTime = 1800; + if (Player.lifeRegenTime < 1800) + Player.lifeRegenTime = 1800; - Player.lifeRegen += 6; - } + Player.lifeRegen += 6; } if (purity) { - Player.lifeRegen += 5; - Player.lifeRegenTime += 6; - Player.statDefense += PurityBonusDefense; - //heal every 5 frames - if (PurityHealCooldown == PurityHealSpeed) - PurityHealCooldown = 0; - Player.statLifeMax2 += 80; - bool hasAnyDebuffs = false; - for (int l = 0; l < Player.MaxBuffs; l++) + int currentDebuffs = Player.buffType.Count(CalamityLists.debuffList.Contains); + if (currentDebuffs > 0) { - int hasBuff = Player.buffType[l]; - if (CalamityLists.debuffList.Contains(hasBuff)) - { - if (Player.buffTime[l] > 3) - { - hasAnyDebuffs = true; - //JustWasDebuffed = false; - Player.buffTime[l] -= 2; + // Healing rate is normally 5 HP/s (+1 every 12 frames) + // However, that 12 frames can and will slowly increase if you try to abuse this accessory + int healFrameCadence = 12; - if (Player.lifeRegenTime < 1800) - Player.lifeRegenTime = 1800; - //add extra regen when effected by a debuff - Player.lifeRegen += 5; - PurityBonusDefense = 18; - if (ReducedHealingCounter < 120) - ReducedHealingCounter++; + // Healing slows down after 5 seconds (300 frames) debuffed. For every 15 frames thereafter the cadence slows + // There is no upper limit to how slow it can get and it can take a very long time to reset to normal + int punishmentFrames = PurityHealSlowdownFrames - 300; + healFrameCadence += (punishmentFrames < 0) ? 0 : punishmentFrames / 15; - //If it's been over 2 seconds with a debuff, Every 15 frames increase the ammount of frames between healing 1, up to a max of 4x the original frames - if (ReducedHealingCounter == 120 && PurityHealSpeed < 20) - if (Player.miscCounter % 15 == 0) - { - PurityHealSpeed++; - } + if (Player.miscCounter % healFrameCadence == healFrameCadence - 1) + Player.Heal(1); - if (PurityHealCooldown == 0) - { - PurityHealCooldown++; - Player.Heal(1); - } - else - PurityHealCooldown++; - } - } + if (Player.lifeRegenTime < 1800) + Player.lifeRegenTime = 1800; + + jewelBonusDefense = 40 + (currentDebuffs - 1) * 10; + + // Count up total frames spent healing for slowdown. + ++PurityHealSlowdownFrames; } - - if (!hasAnyDebuffs) + else if (Player.miscCounter % 20 == 0 && jewelBonusDefense > 0) + --jewelBonusDefense; + + // If the player is clear of all debuffs then gradually reduce the slowdown frames + if (currentDebuffs <= 0) { - //recover any heal penalty youve gained as long as youre not currently debuffed - if (PurityHealSpeed > 5) - if (Player.miscCounter % 15 == 0) - PurityHealSpeed--; - //If you're not debuffed and you are back to full healing speed, give the 3 second countdown back - if (PurityHealSpeed == 5) - ReducedHealingCounter = 0; - //Bonus defense goes down by 1 every second after - if (Player.miscCounter % 60 == 0 && PurityBonusDefense > 0) - PurityBonusDefense--; + --PurityHealSlowdownFrames; + if (PurityHealSlowdownFrames < 0) + PurityHealSlowdownFrames = 0; } - + + Player.statDefense += jewelBonusDefense; } - // Infected Jewel will not stack with Purity + // Infected Jewel does not stack with Purity else if (infectedJewel) { - bool hasAnyDebuffs = false; Player.lifeRegen += 2; - Player.statDefense += InfectedJewelBonusDefense; - if (!hasAnyDebuffs) + + // If the player has any debuffs, give the extra life regen and defense + // More defense is given for each additional debuff + int currentDebuffs = Player.buffType.Count(CalamityLists.debuffList.Contains); + if (currentDebuffs > 0) { - //Bonus defense goes down by 1 every second after - if (Player.miscCounter % 60 == 0 && InfectedJewelBonusDefense > 0) - InfectedJewelBonusDefense--; - } - for (int l = 0; l < Player.MaxBuffs; l++) - { - int hasBuff = Player.buffType[l]; - if (CalamityLists.debuffList.Contains(hasBuff)) - { - if (Player.buffTime[l] > 2) - { - hasAnyDebuffs = true; - if (Player.lifeRegenTime < 1800) - Player.lifeRegenTime = 1800; - //add extra regen when effected by a debuff - Player.lifeRegen += 4; - InfectedJewelBonusDefense = 14; - } - } + Player.lifeRegen += 4; + if (Player.lifeRegenTime < 1800) + Player.lifeRegenTime = 1800; + + jewelBonusDefense = 16 + (currentDebuffs - 1) * 4; } + + // Otherwise tick down the defense, one point per second + else if (Player.miscCounter % 60 == 0 && jewelBonusDefense > 0) + --jewelBonusDefense; + + Player.statDefense += jewelBonusDefense; } - // Crown Jewel will not stack with Purity or Infected Jewel + // Crown Jewel does not stack with Purity or Infected Jewel else if (crownJewel) { - bool hasAnyDebuffs = false; - Player.lifeRegen += 1; - Player.statDefense += CrownJewelBonusDefense; - if (!hasAnyDebuffs) + Player.lifeRegen += 2; + + // If any debuff is detected, provide even more life regen and massively accelerate it + if (Player.buffType.Any(CalamityLists.debuffList.Contains)) { - //Bonus defense goes down by 1 every second after - if (Player.miscCounter % 60 == 0 && CrownJewelBonusDefense > 0) - CrownJewelBonusDefense--; - } - for (int l = 0; l < Player.MaxBuffs; l++) - { - int hasBuff = Player.buffType[l]; - if (CalamityLists.debuffList.Contains(hasBuff)) - { - if (Player.buffTime[l] > 2) - { - hasAnyDebuffs = true; - if (Player.lifeRegenTime < 1800) - Player.lifeRegenTime = 1800; - //add extra regen when effected by a debuff - Player.lifeRegen += 3; - CrownJewelBonusDefense = 8; - } - } + Player.lifeRegen += 3; + if (Player.lifeRegenTime < 1800) + Player.lifeRegenTime = 1800; } } + #endregion - // Last Debuffs + // During Silva revive or God Slayer dash, all negative life regen is canceled + if ((silvaCountdown > 0 && hasSilvaEffect && silvaSet) || (DashID == GodSlayerDash.ID && Player.dashDelay < 0)) + { + if (Player.lifeRegen < 0) + Player.lifeRegen = 0; + } + + #region Things That Disable Even That Life Regen + // + // Yes, really, there's a list of conditions under which life regen doesn't work + // even if it's life regen that normally works during a damage over time debuff. + // + // 1. No life regen bool (Blood Boiler usage or wearing Omega Blue armor) + // 2. Being too far from Providence cocoon ("Holy Inferno") + // 3. Air drowning in the Abyss + // if (noLifeRegen) { + Player.nebulaLevelLife = 0; + if (Player.lifeRegen > 0) Player.lifeRegen = 0; @@ -655,7 +529,7 @@ namespace CalamityMod.CalPlayer Player.lifeRegen = 0; Player.lifeRegenTime = 0; - Player.lifeRegen -= (int)(hInfernoBoost * lifeRegenMult); + Player.lifeRegen -= (int)(hInfernoBoost * calamityDebuffMultiplier); if (Player.lifeRegen < -200) Player.lifeRegen = -200; @@ -675,22 +549,18 @@ namespace CalamityMod.CalPlayer Player.lifeRegen = 0; Player.lifeRegenTime = 0; - Player.lifeRegen -= (int)(160D * lifeRegenMult); + Player.lifeRegen -= (int)(160D * calamityDebuffMultiplier); } } } + // TODO -- Why is this here? if (weakPetrification) { if (Player.mount.Active) Player.mount.Dismount(Player); } - - if ((silvaCountdown > 0 && hasSilvaEffect && silvaSet) || (DashID == GodSlayerDash.ID && Player.dashDelay < 0)) - { - if (Player.lifeRegen < 0) - Player.lifeRegen = 0; - } + #endregion } #endregion @@ -743,17 +613,6 @@ namespace CalamityMod.CalPlayer if (trinketOfChi || chiRegen) Player.lifeRegen += 2; - if (rOoze && !aAmpoule && !purity) - { - Player.lifeRegen += 3; - Player.lifeRegenTime += 2; - } - - if (aAmpoule && !purity) - { - Player.lifeRegen += 5; - Player.lifeRegenTime += 4; - } if (ursaSergeant) { @@ -888,101 +747,55 @@ namespace CalamityMod.CalPlayer Player.lifeRegenTime += (int)MathHelper.Lerp(1f, 3f, regenBenefitFactor); } - // Standing still healing bonuses (all exclusive with vanilla Shiny Stone) - if (!Player.shinyStone) - { - int lifeRegenTimeMaxBoost = areThereAnyDamnBosses ? 450 : 1800; - int lifeRegenMaxBoost = areThereAnyDamnBosses ? 1 : 4; - float lifeRegenLifeRegenTimeMaxBoost = areThereAnyDamnBosses ? 8f : 30f; + #region Standing Still Life Regen + // Standing still healing bonuses (all are exclusive with vanilla Shiny Stone, but all function similarly) + if (!Player.shinyStone && Player.StandingStill() && Player.itemAnimation == 0) + { + bool honeyDewWorking = honeyTurboRegen && Player.honey; + bool anyStandingStillLifeRegen = shadeRegen || cFreeze || honeyDewWorking || photosynthesis; + bool onlyPhotosynthesisAtNight = !shadeRegen && !cFreeze && !honeyDewWorking && photosynthesis && !Main.dayTime; - if (Player.StandingStill() && Player.itemAnimation == 0) + // Divides all negative life regen by two before applying any other effects. + if (anyStandingStillLifeRegen && Player.lifeRegen < 0) + Player.lifeRegen /= 2; + + // Spawn dust of some flavor while actually regenerating + if (Player.lifeRegen > 0 && Player.statLife < actualMaxLife) { - bool boostedRegen = false; - bool noSunlight = false; - if (shadeRegen) + int dustType = shadeRegen ? 173 : cFreeze ? 67 : honeyDewWorking ? DustID.Honey2 : photosynthesis ? 244 : -1; + bool dustSpawnRolled = Main.rand.Next(30000) < Player.lifeRegenTime || Main.rand.NextBool(30); + if (dustType != -1 && dustSpawnRolled) { - boostedRegen = true; - if (Player.lifeRegen > 0 && Player.statLife < actualMaxLife) - { - if (Main.rand.Next(30000) < Player.lifeRegenTime || Main.rand.NextBool(30)) - { - int regen = Dust.NewDust(Player.position, Player.width, Player.height, 173, 0f, 0f, 200, default, 1f); - Main.dust[regen].noGravity = true; - Main.dust[regen].fadeIn = 1.3f; - Vector2 velocity = CalamityUtils.RandomVelocity(100f, 50f, 100f, 0.04f); - Main.dust[regen].velocity = velocity; - velocity.Normalize(); - velocity *= 34f; - Main.dust[regen].position = Player.Center - velocity; - } - } - } - else if (cFreeze) - { - boostedRegen = true; - if (Player.lifeRegen > 0 && Player.statLife < actualMaxLife) - { - if (Main.rand.Next(30000) < Player.lifeRegenTime || Main.rand.NextBool(30)) - { - int regen = Dust.NewDust(Player.position, Player.width, Player.height, 67, 0f, 0f, 200, new Color(150, Main.DiscoG, 255), 0.75f); - Main.dust[regen].noGravity = true; - Main.dust[regen].fadeIn = 1.3f; - Vector2 velocity = CalamityUtils.RandomVelocity(100f, 50f, 100f, 0.04f); - Main.dust[regen].velocity = velocity; - velocity.Normalize(); - velocity *= 34f; - Main.dust[regen].position = Player.Center - velocity; - } - } - } - else if (photosynthesis) - { - boostedRegen = true; - if (!Main.dayTime) - noSunlight = true; - if (Player.lifeRegen > 0 && Player.statLife < actualMaxLife) - { - if (Main.rand.Next(30000) < Player.lifeRegenTime || Main.rand.NextBool(2)) - { - int regen = Dust.NewDust(Player.position, Player.width, Player.height, 244, 0f, 0f, 200, default, 1f); - Main.dust[regen].noGravity = true; - Main.dust[regen].fadeIn = 1.3f; - Vector2 velocity = CalamityUtils.RandomVelocity(100f, 50f, 100f, 0.04f); - Main.dust[regen].velocity = velocity; - velocity.Normalize(); - velocity *= 34f; - Main.dust[regen].position = Player.Center - velocity; - } - } - } - if (boostedRegen) - { - int lifeRegenTimeMaxBoost2 = !noSunlight ? lifeRegenTimeMaxBoost : (lifeRegenTimeMaxBoost / 5); - int lifeRegenMaxBoost2 = !noSunlight ? lifeRegenMaxBoost : (lifeRegenMaxBoost / 5); - float lifeRegenLifeRegenTimeMaxBoost2 = !noSunlight ? lifeRegenLifeRegenTimeMaxBoost : (lifeRegenLifeRegenTimeMaxBoost / 5); - - if (Player.lifeRegenTime > 90 && Player.lifeRegenTime < lifeRegenTimeMaxBoost2) - Player.lifeRegenTime = lifeRegenTimeMaxBoost2; - - Player.lifeRegenTime += lifeRegenMaxBoost2; - Player.lifeRegen += lifeRegenMaxBoost2; - - float num3 = Player.lifeRegenTime * 2.5f; // lifeRegenTime max is 3600 - num3 /= 300f; - if (num3 > 0f) - { - if (num3 > lifeRegenLifeRegenTimeMaxBoost2) - num3 = lifeRegenLifeRegenTimeMaxBoost2; - - Player.lifeRegen += (int)num3; - } - if (Player.lifeRegen > 0 && Player.statLife < actualMaxLife) - { - Player.lifeRegenCount++; - } + int regen = Dust.NewDust(Player.position, Player.width, Player.height, dustType, 0f, 0f, 200, default, 1f); + Main.dust[regen].noGravity = true; + Main.dust[regen].fadeIn = 1.3f; + Vector2 velocity = CalamityUtils.RandomVelocity(100f, 50f, 100f, 0.04f); + Main.dust[regen].velocity = velocity; + velocity.Normalize(); + velocity *= 34f; + Main.dust[regen].position = Player.Center - velocity; } } + + // Actually apply "standing still" regeneration (the stats are granted even at full health) + float regenTimeNeededForTurboRegen = shadeRegen ? 40f : cFreeze ? 60f : honeyDewWorking ? 90f : photosynthesis ? 90f : -1f; + + // 4 = vanilla Shiny Stone + int turboRegenPower = shadeRegen || cFreeze ? 4 : honeyDewWorking ? 3 : photosynthesis ? 1 : -1; + + if (turboRegenPower > 0) + { + // After a brief delay determined by your form of standing still regen, min-cap life regen time at 1800 / 3600. + // Photosynthesis Potion does not do this at night. + if (Player.lifeRegenTime > regenTimeNeededForTurboRegen && Player.lifeRegenTime < 1800f && !onlyPhotosynthesisAtNight) + Player.lifeRegenTime = 1800f; + + Player.lifeRegen += turboRegenPower; + Player.lifeRegenTime += turboRegenPower; + } + } + #endregion // The Camper counteracts the regen loss while moving horizontally if (camper && (Player.velocity.X != 0 && Player.grappling[0] <= 0)) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 60d6b4fa58..47dbbaa803 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Security.Cryptography.X509Certificates; -using System.Text; using CalamityMod.Balancing; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Potions; @@ -1578,93 +1576,7 @@ namespace CalamityMod.CalPlayer Player.GetDamage() += 0.1f; } - if (hDew && !aAmpoule && !purity) - { - //heal ever 12 frames - if (HoneyDewHealCooldown == HoneyDewHealSpeed) - HoneyDewHealCooldown = 0; - Player.statLifeMax2 += 30; - for (int l = 0; l < Player.MaxBuffs; l++) - { - int hasBuff = Player.buffType[l]; - if (Player.buffTime[l] > 2 && CalamityLists.sicknessDebuffList.Contains(hasBuff)) - { - Player.buffTime[l]--; - if (HoneyDewHealCooldown == 0) - { - HoneyDewHealCooldown++; - Player.Heal(1); - } - else - HoneyDewHealCooldown++; - } - } - //Honey Like life regen, does not work if you have honey buff - if (!Player.honey && Player.lifeRegen < 0) - { - Player.lifeRegen += 2; - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - } - if (!Player.honey) - { - Player.lifeRegenTime += 1; - Player.lifeRegen += 2; - } - } - - // Radiant Ooze light-granting float[] light = new float[3]; - if (rOoze && !aAmpoule && !purity) - { - light[0] += 1f; - light[1] += 1f; - light[2] += 0.6f; - } - - // Ambrosial Ampoule bonus and other light-granting bonuses - if (aAmpoule && !purity) - { - light[0] += 1.3f; - light[1] += 1.3f; - light[2] += 0.8f; - } - if (purity) - { - light[0] += 1.2f; - light[1] += 1.7f; - light[2] += 2.7f; - } - if (aAmpoule && !purity) - { - //heal every 9 frames - if (AmbrosialAmpouleHealCooldown == AmbrosialAmpouleHealSpeed) - AmbrosialAmpouleHealCooldown = 0; - Player.statLifeMax2 += 50; - for (int l = 0; l < Player.MaxBuffs; l++) - { - int hasBuff = Player.buffType[l]; - if (Player.buffTime[l] > 2 && CalamityLists.sicknessDebuffList.Contains(hasBuff)) - { - Player.buffTime[l]--; - if (AmbrosialAmpouleHealCooldown == 0) - { - AmbrosialAmpouleHealCooldown++; - Player.Heal(1); - } - else - AmbrosialAmpouleHealCooldown++; - } - } - if (Player.lifeRegen < 0) - { - Player.lifeRegen += 2; - if (Player.lifeRegen > 0) - Player.lifeRegen = 0; - } - - - } if (cFreeze) { light[0] += 0.3f; @@ -2769,25 +2681,25 @@ namespace CalamityMod.CalPlayer Player.lifeMagnet = true; } - if (wDeath) + if (wDeath && !purity) Player.GetDamage() -= 0.25f; - if (astralInfection) + if (astralInfection && !(infectedJewel || purity)) Player.GetDamage() -= 0.15f; - if (pFlames) + if (pFlames && !purity) { Player.blind = true; Player.GetDamage() -= 0.15f; } - if (aCrunch && !laudanum) + if (aCrunch && !laudanum && !purity) { Player.statDefense -= ArmorCrunch.DefenseReduction; Player.endurance *= ArmorCrunch.MultiplicativeDamageReductionPlayer; } - if (wither) + if (wither && !purity) { Player.statDefense -= WitherDebuff.DefenseReduction; } @@ -2800,10 +2712,10 @@ namespace CalamityMod.CalPlayer Player.velocity.Y = 15f; } - if (eutrophication) + if (eutrophication && !purity) Player.velocity = Vector2.Zero; - if (vaporfied || galvanicCorrosion) + if ((vaporfied && !purity) || galvanicCorrosion) Player.velocity *= 0.98f; if (molluskSet) diff --git a/CalamityLists.cs b/CalamityLists.cs index d7901c66f4..988d6e8de1 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1,20 +1,18 @@ -using CalamityMod.Buffs; +using System.Collections.Generic; +using CalamityMod.Buffs; using CalamityMod.Buffs.Alcohol; using CalamityMod.Buffs.Cooldowns; using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.Potions; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Accessories; -using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.Armor.Vanity; using CalamityMod.Items.DraedonMisc; -using CalamityMod.Items.Fishing.BrimstoneCragCatches; using CalamityMod.Items.Fishing.FishingRods; using CalamityMod.Items.LoreItems; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Furniture.Trophies; -using CalamityMod.Items.SummonItems; using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; @@ -68,7 +66,6 @@ using CalamityMod.Projectiles.Rogue; using CalamityMod.Projectiles.Summon; using CalamityMod.Projectiles.Typeless; using CalamityMod.Tiles.LivingFire; -using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -91,6 +88,7 @@ namespace CalamityMod public static List friendlyBeeList; public static List hardModeNerfList; public static List debuffList; + public static List fireDebuffList; public static List sicknessDebuffList; public static List alcoholList; public static List spearAutoreuseList; @@ -1166,14 +1164,31 @@ namespace CalamityMod BuffType(), BuffType(), BuffType(), - BuffType(), - BuffType(), + BuffType(), + // BuffType(), BuffType(), BuffType(), BuffType(), BuffType() }; + fireDebuffList = new List() + { + BuffID.OnFire, + BuffID.OnFire3, // Hellfire + BuffID.Burning, // Touching meteorite ore or hellstone without obsidian skull + BuffID.CursedInferno, + BuffID.ShadowFlame, // Vanilla Shadowflame, can normally never be applied to players + BuffType(), // Calamity Shadowflame copy for players + BuffType(), // Crags lava + BuffType(), + BuffType(), + BuffType(), + BuffType(), + BuffType(), // Aflame enchant self damage + BuffType(), + }; + sicknessDebuffList = new List() { BuffID.Poisoned, @@ -2714,6 +2729,8 @@ namespace CalamityMod beeProjectileList = null; hardModeNerfList = null; debuffList = null; + fireDebuffList = null; + sicknessDebuffList = null; alcoholList = null; spearAutoreuseList = null; pumpkinMoonBuffList = null; diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index 96716ea559..c5f62d8f3c 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -1,6 +1,6 @@ using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -22,16 +22,37 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); + player.statLifeMax2 += 70; + + // Grant life regen based on missing health + if (!(modPlayer.rOoze || modPlayer.purity)) + { + float missingLifeRatio = (player.statLifeMax2 - player.statLife) / player.statLifeMax2; + float lifeRegenToGive = MathHelper.Lerp(4f, 12f, missingLifeRatio); + player.lifeRegen += (int)lifeRegenToGive; + } + + // bool left in for abyss light purposes modPlayer.aAmpoule = true; + + // Inherits all effects of Honey Dew and Living Dew + modPlayer.alwaysHoneyRegen = true; + modPlayer.honeyTurboRegen = true; + modPlayer.honeyDewHalveDebuffs = true; + modPlayer.livingDewHalveDebuffs = true; + + // Add light if the other accessories aren't equipped and visibility is turned on + if (!(modPlayer.rOoze || modPlayer.purity) && !hideVisual) + Lighting.AddLight(player.Center, new Vector3(1.2f, 1.7f, 2.7f)); } public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(). AddIngredient(3). - AddTile(TileID.MythrilAnvil). + AddTile(TileID.LunarCraftingStation). Register(); } } diff --git a/Items/Accessories/HoneyDew.cs b/Items/Accessories/HoneyDew.cs index 044ec06780..b4e86d1337 100644 --- a/Items/Accessories/HoneyDew.cs +++ b/Items/Accessories/HoneyDew.cs @@ -20,17 +20,19 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { + player.statLifeMax2 += 30; CalamityPlayer modPlayer = player.Calamity(); - modPlayer.hDew = true; + modPlayer.alwaysHoneyRegen = true; + modPlayer.honeyTurboRegen = true; + modPlayer.honeyDewHalveDebuffs = true; } public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.JungleSpores, 12). - AddIngredient(5). - AddIngredient(3). - AddIngredient(ItemID.BottledHoney, 5). + AddIngredient(ItemID.BottledHoney, 10). + AddIngredient(ItemID.BeeWax, 3). + AddIngredient(3). AddTile(TileID.Anvils). Register(); } diff --git a/Items/Accessories/InfectedJewel.cs b/Items/Accessories/InfectedJewel.cs index 6accf136d1..cd5e261296 100644 --- a/Items/Accessories/InfectedJewel.cs +++ b/Items/Accessories/InfectedJewel.cs @@ -1,8 +1,6 @@ -using CalamityMod.Items.Placeables; -using CalamityMod.CalPlayer; -using CalamityMod.Items.Potions; -using System.Collections.Generic; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; +using CalamityMod.Items.Potions; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/Items/Accessories/LivingDew.cs b/Items/Accessories/LivingDew.cs index 9827ad277f..ab38badbea 100644 --- a/Items/Accessories/LivingDew.cs +++ b/Items/Accessories/LivingDew.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Materials; +using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -19,21 +20,25 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - //20% Movespeed and Jumpspeed, 12% reduced damage - player.moveSpeed += 0.2f; - player.jumpSpeedBoost += 1f; - player.GetDamage() -= 0.12f; + player.statLifeMax2 += 50; + + // Inherits all effects of Honey Dew + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.alwaysHoneyRegen = true; + modPlayer.honeyTurboRegen = true; + modPlayer.honeyDewHalveDebuffs = true; + modPlayer.livingDewHalveDebuffs = true; } public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.JungleSpores, 12). - AddIngredient(5). + AddIngredient(). AddIngredient(3). - //replace with water essence later + AddIngredient(6). + // TODO -- Replace with Water Essence AddIngredient(5). - AddTile(TileID.Anvils). + AddTile(TileID.MythrilAnvil). Register(); } } diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index 1e65c81fb3..83964712e4 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -1,11 +1,9 @@ -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; -using CalamityMod.Items.Placeables; using CalamityMod.Rarities; -using System.Collections.Generic; +using CalamityMod.Tiles.Furniture.CraftingStations; +using Microsoft.Xna.Framework; using Terraria; -using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories @@ -27,18 +25,38 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); + player.statLifeMax2 += 100; + + // Grant life regen based on missing health + if (!(modPlayer.rOoze || modPlayer.aAmpoule)) + { + float missingLifeRatio = (player.statLifeMax2 - player.statLife) / player.statLifeMax2; + float lifeRegenToGive = MathHelper.Lerp(6f, 14f, missingLifeRatio); + player.lifeRegen += (int)lifeRegenToGive; + } + + // Abyss light, debuff near-immunity, and massively enhances debuff halving modPlayer.purity = true; + + // Inherits effects from Honey Dew and Living Dew + modPlayer.alwaysHoneyRegen = true; + modPlayer.honeyTurboRegen = true; + modPlayer.honeyDewHalveDebuffs = true; + modPlayer.livingDewHalveDebuffs = true; + + // Add light if the other accessories aren't equipped and visibility is turned on + if (!(modPlayer.rOoze || modPlayer.purity) && !hideVisual) + Lighting.AddLight(player.Center, new Vector3(0.688f, 0.829f, 1.402f)); } public override void AddRecipes() { CreateRecipe(). - AddIngredient(). AddIngredient(). - AddIngredient(1). - AddIngredient(8). - AddIngredient(8). - AddTile(TileID.LunarCraftingStation). + AddIngredient(). + AddIngredient(4). + AddIngredient(5). + AddTile(ModContent.TileType()). Register(); } } diff --git a/Items/Accessories/RadiantOoze.cs b/Items/Accessories/RadiantOoze.cs index 52825d6ca9..6e71d23589 100644 --- a/Items/Accessories/RadiantOoze.cs +++ b/Items/Accessories/RadiantOoze.cs @@ -1,4 +1,6 @@ -using CalamityMod.Items.Materials; +using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -19,7 +21,22 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - player.Calamity().rOoze = true; + CalamityPlayer modPlayer = player.Calamity(); + + // Grant life regen based on missing health + if (!(modPlayer.aAmpoule || modPlayer.purity)) + { + float missingLifeRatio = (player.statLifeMax2 - player.statLife) / player.statLifeMax2; + float lifeRegenToGive = MathHelper.Lerp(4f, 12f, missingLifeRatio); + player.lifeRegen += (int)lifeRegenToGive; + } + + // bool left in for abyss light purposes + modPlayer.rOoze = true; + + // Add light if the other accessories aren't equipped and visibility is turned on + if (!(modPlayer.aAmpoule || modPlayer.purity) && !hideVisual) + Lighting.AddLight(player.Center, new Vector3(1f, 1f, 0.6f)); } public override void AddRecipes() diff --git a/Items/PermanentBoosters/MiracleFruit.cs b/Items/PermanentBoosters/MiracleFruit.cs index 4b6d640f7a..7ff881db9a 100644 --- a/Items/PermanentBoosters/MiracleFruit.cs +++ b/Items/PermanentBoosters/MiracleFruit.cs @@ -73,7 +73,7 @@ namespace CalamityMod.Items.PermanentBoosters AddIngredient(ItemID.LifeFruit, 5). AddIngredient(5). AddIngredient(5). - AddIngredient(10). + AddIngredient(12). AddTile(TileID.MythrilAnvil). Register(); } diff --git a/Items/Weapons/Ranged/TerraFlameburster.cs b/Items/Weapons/Ranged/TerraFlameburster.cs index 977c3893db..301887cddb 100644 --- a/Items/Weapons/Ranged/TerraFlameburster.cs +++ b/Items/Weapons/Ranged/TerraFlameburster.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Ranged CreateRecipe(). AddIngredient(ItemID.Flamethrower). AddIngredient(). - AddIngredient(7). + AddIngredient(12). AddIngredient(5). AddTile(TileID.MythrilAnvil). Register(); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 59a1cef57e..5d26c42ec1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -115,12 +115,12 @@ AmbrosialAmpoule: { DisplayName: Ambrosial Ampoule Tooltip: ''' - You emit light - +50 max life - +2.5 HP/s life regen - Your natural life regen is greatly improved - Halves how long you are afflicted with sickness debuffs - When you are afflicted with a sickness debuff you quickly heal + +70 max life + Grants +2 to +6 HP/s life regen based on missing health + Provides life regeneration equivalent to standing in Honey + Standing still in Honey grants extremely powerful regen + Halves how long you are afflicted with fire and sickness debuffs + You emit yellow light if visibility is enabled ''' } @@ -244,16 +244,18 @@ Purity: { DisplayName: Purity Tooltip: ''' - A once infected crystal, now perfectly purified - You emit light - +80 max life - +2.5 HP/s life regen - You gain an additional +2.5 HP/s life regen while afflicted with a debuff - Your life regen is still increased even when afflicted with a damage over time debuff - Your natural life regen is massively improved - Greatly reduces how long you are afflicted with debuffs - When afflicted with a debuff, you will gain 18 defense - This defense will begin to fade away when you are no longer debuffed + +100 max life + Grants +3 to +7 HP/s life regen based on missing health + Provides life regeneration equivalent to standing in Honey + Standing still grants extremely powerful regen + Grants 40 defense and continuous healing while afflicted with any debuff + The healing eventually slows down if debuffed for an extended period of time + Massively boosts natural life regen while afflicted with any debuff + Each debuff beyond the first grants 10 additional defense + Granted defense fades away slowly when not afflicted with any debuffs + Makes weak damage over time debuffs harmless and halves the duration of all but the strongest debuffs + You emit shining blue light if visibility is enabled + 'A once putrid crystal, now glimmering with immaculate purity' ''' } @@ -361,12 +363,13 @@ InfectedJewel: { DisplayName: Infected Jewel Tooltip: ''' - A beautiful gem that has been corrupted by the astral infection +1 HP/s life regen - You gain an additional +2 HP/s life regen while afflicted with a debuff - Your life regen is still increased even when afflicted with a damage over time debuff - When afflicted with a debuff, you will gain 14 defense - This defense will begin to fade away when you are no longer debuffed + Grants 16 defense and +2 HP/s life regen while afflicted with any debuff + Massively boosts natural life regen while afflicted with any debuff + Each debuff beyond the first grants 4 additional defense + Granted defense fades away slowly when not afflicted with any debuffs + Makes the Astral Infection debuff harmless + 'A beautiful gemstone tarnished by spaceborne rot' ''' } @@ -461,11 +464,9 @@ CrownJewel: { DisplayName: Crown Jewel Tooltip: ''' - +0.5 HP/s life regen - You gain an additional +1.5 HP/s life regen while afflicted with a debuff - Your life regen is still increased even when afflicted with a damage over time debuff - When afflicted with a debuff, you will gain 8 defense - This defense will begin to fade away when you are no longer debuffed + +1 HP/s life regen + You gain an additional +1.5 HP/s life regen while afflicted with any debuff + Massively boosts natural life regen while afflicted with any debuff ''' } @@ -952,9 +953,9 @@ HoneyDew: { Tooltip: ''' +30 max life - You have Honey-like life regen + Provides life regeneration equivalent to standing in Honey + Standing still in Honey grants extremely powerful regen Halves how long you are afflicted with sickness debuffs - When you are afflicted with a sickness debuff you quickly heal ''' } @@ -1024,7 +1025,13 @@ LifeJelly: { LivingDew: { DisplayName: Living Dew - Tooltip: 20% increased movement and jump speed, but 12% reduced damage + Tooltip: + ''' + +50 max life + Provides life regeneration equivalent to standing in Honey + Standing still in Honey grants extremely powerful regen + Halves how long you are afflicted with fire and sickness debuffs + ''' } LumenousAmulet: { @@ -1326,9 +1333,8 @@ RadiantOoze: { DisplayName: Radiant Ooze Tooltip: ''' - You produce light - +1.5 HP/s life regen - Your natural life regen is improved + Grants +2 to +6 HP/s life regen based on missing health + You emit yellow light if visibility is enabled ''' } diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index 3bb1704ce4..2c835c9d85 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -173,9 +173,9 @@ namespace CalamityMod light += 1; if (mp.aquaticHeart) light += 1; - if (mp.aAmpoule) - light += 1; - else if (mp.rOoze) // radiant ooze and ampoule/higher don't stack + if (mp.purity) // does not stack with downgrades + light += 2; + else if (mp.rOoze || mp.aAmpoule) // the two "yellow lights" do not stack with each other light += 1; if (mp.aquaticEmblem && underwater) light += 1; @@ -245,6 +245,8 @@ namespace CalamityMod return true; } + // See also: Player.IsStandingStillForSpecialEffects (Vanilla shiny stone + standing still mana regen) + // That is more or less equivalent to this with the default value of 0.05 public static bool StandingStill(this Player player, float velocity = 0.05f) => player.velocity.Length() < velocity; /// From e287c780784cef3911ab6b98c57ca2cf07a08a14 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 27 Aug 2023 01:33:14 -0400 Subject: [PATCH 070/258] Fixed rarity and sell price of tier shuffled accessories --- Items/Accessories/AmbrosialAmpoule.cs | 4 ++-- Items/Accessories/HoneyDew.cs | 4 ++-- Items/Accessories/LivingDew.cs | 4 ++-- Items/Accessories/Purity.cs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index c5f62d8f3c..486893b49c 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; - Item.rare = ItemRarityID.Yellow; + Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.rare = ItemRarityID.Cyan; Item.accessory = true; } diff --git a/Items/Accessories/HoneyDew.cs b/Items/Accessories/HoneyDew.cs index b4e86d1337..247b8ed539 100644 --- a/Items/Accessories/HoneyDew.cs +++ b/Items/Accessories/HoneyDew.cs @@ -13,8 +13,8 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; - Item.rare = ItemRarityID.Pink; + Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/LivingDew.cs b/Items/Accessories/LivingDew.cs index c32c604721..1ef0b8db2c 100644 --- a/Items/Accessories/LivingDew.cs +++ b/Items/Accessories/LivingDew.cs @@ -13,8 +13,8 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; - Item.rare = ItemRarityID.Pink; + Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index 83964712e4..0b366d6afe 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Accessories Item.width = 20; Item.height = 44; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; - Item.rare = ModContent.RarityType(); + Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.rare = ModContent.RarityType(); } public override void UpdateAccessory(Player player, bool hideVisual) From 4a8c3a496016e9c9fbd67ba535626b8281ff7ce8 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 27 Aug 2023 00:09:37 -0700 Subject: [PATCH 071/258] Slightly better Purity sprite and light fixed purity light (sort of, it still looks bad) --- CalPlayer/CalamityPlayerLifeRegen.cs | 2 +- Items/Accessories/Purity.cs | 6 +++--- Items/Accessories/Purity.png | Bin 3263 -> 3270 bytes 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 35a1fda95e..831e0fafa7 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -436,7 +436,7 @@ namespace CalamityMod.CalPlayer // Count up total frames spent healing for slowdown. ++PurityHealSlowdownFrames; } - else if (Player.miscCounter % 20 == 0 && jewelBonusDefense > 0) + else if (Player.miscCounter % 20 == 0 && jewelBonusDefense > 0) //TODO reduce defense and put cooldown at 60 like infected jewel --jewelBonusDefense; // If the player is clear of all debuffs then gradually reduce the slowdown frames diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index 0b366d6afe..01b3cae591 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories public override void SetDefaults() { Item.defense = 8; - Item.width = 20; + Item.width = 18; Item.height = 44; Item.accessory = true; Item.value = CalamityGlobalItem.Rarity15BuyPrice; @@ -45,8 +45,8 @@ namespace CalamityMod.Items.Accessories modPlayer.livingDewHalveDebuffs = true; // Add light if the other accessories aren't equipped and visibility is turned on - if (!(modPlayer.rOoze || modPlayer.purity) && !hideVisual) - Lighting.AddLight(player.Center, new Vector3(0.688f, 0.829f, 1.402f)); + if (!(modPlayer.rOoze || modPlayer.aAmpoule) && !hideVisual) + Lighting.AddLight(player.Center, new Vector3(1.376f, 1.658f, 2.103f)); } public override void AddRecipes() diff --git a/Items/Accessories/Purity.png b/Items/Accessories/Purity.png index cb0df6f46617e18e03194f21e26d95342a530700..c710af531dd7301be7beb119b34f926d730b460e 100644 GIT binary patch delta 533 zcmV+w0_y$08O9kQiBL{Q4GJ0x0000DNk~Le0000c0000i2nGNE012kb$gv^53V+f` zL_t(oh2_}4PQp+W$MJ7Bg3n-FiN-)6#)-j6Lzo>HoJ@2Q5_D8!T-CrUI5;>HR|iG| zDKQ$Hc>xz$uS*YUkNpQ~LfhZM(A%32Ik&gx)-uN6&Ik-Z5iI^7?M~MK+_su?&1WSB zCiyK;Ks(hc0MGqC^8k|v^8wE8aesb|a~=2fcBc!#$?=hAp4Yc`0Itq&0C;(N2n8k= zCV<{x2*7Hk?17+4EhW^j&s+|G!&)Q#Fd(#~u|SfE^9Q3!nrN6FU@52t&>IX5z~;uf z2Q*PjKoV8bRKR>E&>+d0D&YukqDq=bnBG8R!8FJ<4v1gU<%QXfOfOQ|7Jp>IdZp~S zF>VRveu>QgF&+bu|C$0nOS-(UMN6qSRJ}b&q}`GBM>1W>rw`@<>XJsm1f(Ot^uqMZ zTS|NHG=vAOrf2-3Fx`454;FM734&^vB<|u*J}fG(gRJj$y|D&?Bta^qxac`e8x9sEt%2 zt$N*Qy|V+`sx=J2+1-UNEa-r%n}+PbH1P8JG!$gpwgD)WO8>K6BnGB|QJ*$-mKOF6 XU|+e#>5w=l00000NkvXXu0mjfQ(*3` delta 526 zcmV+p0`dLE8NV4JiBL{Q4GJ0x0000DNk~Le0000e0000i2nGNE02goid$A$D3V+K< zL_t(oh3(j}O9F8e!13>GVrz>-v`P_*B27X~H8?jov?dKH=-gjmpj&&;(Cl8|7>W{w z%?>UNExBHcukQD_>wX%7=lM3dcRxPo^M1egbX?bEnNe@GU4WZf)mh|zC$hjHxBwXl zTUZt_@&tBVECTS@?Xn0ox_0In(*#yT&rZvZqaO#q&r@2#NG z2MVOq>jSWp&lw;BN~?jNi39-ELOFgw;LlQ9!6e4B2emErS^#x|qreV8r`LA@4)*s9 z*jW8EBy3B)RzTl{G)!Vwm3D|3wxy0P(Dta)Kn?Tc0rQu7^?`$#P`>h#T7Q6lmR62F zX&MChJ{kd#{F(y6rCxpDq9xWFv))#uz519;0N75Y4Cr(#x#mDm7|lW{pK~_Ad4NGp zf&kBJRU>~ Date: Sun, 27 Aug 2023 17:01:32 +0700 Subject: [PATCH 072/258] Resprites + Eclipse's Fall changes - Resprited Accel Round, Night's Ray, Storm Ruler beam - Added an explosion sprite to Umbraphile armor - Visually tweaked EF to look better with its sprite - Also did some balancing for EF --- Items/Ammo/AccelerationRound.cs | 4 +- Items/Ammo/AccelerationRound.png | Bin 253 -> 269 bytes Items/Weapons/Magic/NightsRay.cs | 7 +-- Items/Weapons/Magic/NightsRay.png | Bin 714 -> 954 bytes Items/Weapons/Rogue/EclipsesFall.cs | 2 +- .../Mods.CalamityMod.Projectiles.Rogue.hjson | 1 + Projectiles/Melee/StormRulerProj.cs | 5 +- Projectiles/Melee/StormRulerProj.png | Bin 444 -> 675 bytes Projectiles/Rogue/EclipseStealthBoom.cs | 39 ++++++++++++ Projectiles/Rogue/EclipseStealthBoom.png | Bin 0 -> 1967 bytes Projectiles/Rogue/EclipsesFallMain.cs | 47 +++++++------- Projectiles/Rogue/EclipsesSmol.cs | 33 ++-------- Projectiles/Rogue/EclipsesStealth.cs | 59 ++++++++++-------- Projectiles/Rogue/UmbraphileBoom.cs | 34 +++++----- Projectiles/Rogue/UmbraphileBoom.png | Bin 0 -> 1058 bytes 15 files changed, 127 insertions(+), 104 deletions(-) create mode 100644 Projectiles/Rogue/EclipseStealthBoom.cs create mode 100644 Projectiles/Rogue/EclipseStealthBoom.png create mode 100644 Projectiles/Rogue/UmbraphileBoom.png diff --git a/Items/Ammo/AccelerationRound.cs b/Items/Ammo/AccelerationRound.cs index c7b8def04d..7d95498944 100644 --- a/Items/Ammo/AccelerationRound.cs +++ b/Items/Ammo/AccelerationRound.cs @@ -19,8 +19,8 @@ namespace CalamityMod.Items.Ammo { Item.damage = 10; Item.DamageType = DamageClass.Ranged; - Item.width = 8; - Item.height = 8; + Item.width = 10; + Item.height = 16; Item.maxStack = 9999; Item.consumable = true; Item.knockBack = 1.25f; diff --git a/Items/Ammo/AccelerationRound.png b/Items/Ammo/AccelerationRound.png index aaae66b94b9b5a0fd5c984f86d6494c923fa7af4..c2c6a926ad476821f19cfb3ef2bab1e988cec2f0 100644 GIT binary patch literal 269 zcmeAS@N?(olHy`uVBq!ia0vp^AhrMp8<5nmf9C+C7>k44ofy`glX(f`to3wp4AGc) zcA_E|lcR*&{S$G{vWB^a6->TnbJK2aNfJ4@#a-ZboCA+sLa)*zUXjI)5g%C0PFuCj zWRx`U`Rr{UU$JLC|DKf0MVn17*2RDBj_=&($*}q5kx;3Go%gyF7R}(FqWCqM;m&JW zhI#piE#~tj_9b00&^vm{Ecy3`t=tV#afdo4_J}eZ|HI}Gn#+)3U&U}@$ItSzopr08GYR=l}o! literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^96&6jA5L~c#`DCC7XMsm# zF#`j)FbFd;%$g$s6l5>)^mS!_$i&L5Zsz?uq5vq=<>}%WqH#VsrGbgr`0{@qj|YcV zUhd%m0v{e025z6_^%WY-Kydi7dw*il|4yUEkMDU_oO+T9Qo^%7-p$Ye2srW^H577~ z&hV;D6B7`gw?6>{DtJ!1VAAn^3Ldf%E-J jA0Iw;SMpt8Va9lNrJj?}i^}alS21|H`njxgN@xNAkl#-< diff --git a/Items/Weapons/Magic/NightsRay.cs b/Items/Weapons/Magic/NightsRay.cs index 6bc2641140..0fb6594049 100644 --- a/Items/Weapons/Magic/NightsRay.cs +++ b/Items/Weapons/Magic/NightsRay.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetStaticDefaults() { - Item.staff[Item.type] = true; + Item.staff[Item.type] = true; } public override void SetDefaults() @@ -20,8 +20,8 @@ namespace CalamityMod.Items.Weapons.Magic Item.damage = 24; Item.DamageType = DamageClass.Magic; Item.mana = 10; - Item.width = 50; - Item.height = 50; + Item.width = 58; + Item.height = 54; Item.useTime = 20; Item.useAnimation = 20; Item.useStyle = ItemUseStyleID.Shoot; @@ -34,7 +34,6 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; } - public override void AddRecipes() { diff --git a/Items/Weapons/Magic/NightsRay.png b/Items/Weapons/Magic/NightsRay.png index 39da37b60d9d9012c1ebfd0a8e31123e53e8e454..ce0d6dcdad6368ce9ec4a0f328e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Pse|)QRuVA*#}iKS-hZ6-?}~UT0sqT+@LKR1@!D9v3E;@ZJ*PBZs`CpaE1}L$z@Oav z`c^yNjLu2G&+9p-$8l&E=b`fw;G~Sxg4MO-(spwma-Trs0m3^UuHbyQ!igEDX6;P= wYk+m0(*pW=C)PlVXe7{#c5@zbo{L#g(tuARZ(kPWg!x=Wq;ZK9cnN2a zy#?e95B8~~qDpaGe{pw%Qar)u3cxgX|@BD+mh#fgp%28JK_i@T|V#Y{K^= zT?1pjHgR;|Y4gH*N$4t5^MXhO1npS4Qw{1J(rFfgOQ&J(M8n>s6%pbDp_dM2cywe) zjo`ilohH13??v$LL(tj91#M-iY6SHF+<&k~@O=n6QRyDV1Kh|# zag=R|5RhiduqlI;9v2CLIo7=(<;p;{{v*q}4+$z*wF>eJIaVaubq`nV00000NkvXX Ju0mjf000DoG>8BI literal 444 zcmV;t0Ym3ZH`|>d$yS?tEJ15)>l9fos!H5b)&ne|&fG2ta*&?3NyBUN^#3D${$i$8e mx*3F1z#?dKVPj{Xo5438B8cEo4UioG0000 "Projectiles.Rogue"; + + public const int Lifetime = 35; // 7 animation frames, 12 FPS + + public override void SetStaticDefaults() + { + Main.projFrames[Type] = 7; + } + + public override void SetDefaults() + { + Projectile.width = Projectile.height = 102; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.penetrate = -1; + Projectile.timeLeft = Lifetime; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; + } + + public override void AI() + { + Projectile.frameCounter++; + Projectile.frame = Projectile.frameCounter / 5; + + if (Projectile.frameCounter > Lifetime) + Projectile.Kill(); + } + } +} diff --git a/Projectiles/Rogue/EclipseStealthBoom.png b/Projectiles/Rogue/EclipseStealthBoom.png new file mode 100644 index 0000000000000000000000000000000000000000..e8611cd39b686b655bc3719b8a052337bef3d5d4 GIT binary patch literal 1967 zcmZWqc~sJg7DglmO{GkQT#>}lO!3E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O{KG={P}Py4%kOq%z{8|xH(5N}Q(h-Ux^h@HcY3xd)H z#_J0Y)8!!D7{T*Il9XEv&wZ7}iu_wLD$JH!%!Y&LZLAX!^g^NEAp_Yx0)kIvEDAS4 z(Zef`2b*W&{)~I`eBL4^^pO=i-ZQByE!Uf<1>$bb|CF&!0vHr!>_Mt{LkIs5HuOk=4&Qot(erG{865=XX+c#=ilhVU@4| literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/EclipsesFallMain.cs b/Projectiles/Rogue/EclipsesFallMain.cs index 890660b424..099b807166 100644 --- a/Projectiles/Rogue/EclipsesFallMain.cs +++ b/Projectiles/Rogue/EclipsesFallMain.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +11,10 @@ namespace CalamityMod.Projectiles.Rogue public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Items/Weapons/Rogue/EclipsesFall"; + // these also affect KB + public const float RainDamageMultMin = 0.4f; + public const float RainDamageMultMax = 0.5f; + public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6; @@ -20,44 +25,42 @@ namespace CalamityMod.Projectiles.Rogue { Projectile.width = Projectile.height = 40; Projectile.friendly = true; - Projectile.penetrate = -1; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; - Projectile.extraUpdates = 1; Projectile.ignoreWater = true; Projectile.tileCollide = false; - Projectile.timeLeft = 300; Projectile.DamageType = RogueDamageClass.Instance; + Projectile.MaxUpdates = 2; + Projectile.penetrate = 3; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 6 * Projectile.MaxUpdates; + Projectile.timeLeft = 150 * Projectile.MaxUpdates; } public override void AI() { - if (Main.rand.NextBool(8)) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 138, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); - } + Lighting.AddLight(Projectile.Center, 1f, 0.8f, 0.3f); Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; + if (Main.rand.NextBool(5)) + { + Vector2 trailPos = Projectile.Center + Vector2.UnitY.RotatedBy(Projectile.rotation) * Main.rand.NextFloat(-16f, 16f); + float trailScale = Main.rand.NextFloat(0.8f, 1.2f); + Color trailColor = Main.rand.NextBool() ? Color.Indigo : Color.DarkOrange; + Particle eclipseTrail = new SparkParticle(trailPos, Projectile.velocity * 0.2f, false, 60, trailScale, trailColor); + GeneralParticleHandler.SpawnParticle(eclipseTrail); + } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - SpawnSpears(target.Center); - } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => SpawnSpears(target.Center); - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - SpawnSpears(target.Center); - } + public override void OnHitPlayer(Player target, Player.HurtInfo info) => SpawnSpears(target.Center); private void SpawnSpears(Vector2 targetPos) { - int spearAmt = Main.rand.Next(3, 6); //3 to 5 spears + int spearAmt = Main.rand.Next(3, 5 + 1); // 3 to 5 spears var source = Projectile.GetSource_FromThis(); for (int n = 0; n < spearAmt; n++) { - float dmgMult = 0.08f * Main.rand.NextFloat(4f, 7f); - float kBMult = 0.1f * Main.rand.NextFloat(7f, 10f); - CalamityUtils.ProjectileRain(source, targetPos, 400f, 100f, 500f, 800f, 29f, ModContent.ProjectileType(), (int)(Projectile.damage * dmgMult), Projectile.knockBack * kBMult, Projectile.owner); + float dmgMult = Main.rand.NextFloat(RainDamageMultMin, RainDamageMultMax); + CalamityUtils.ProjectileRain(source, targetPos, 400f, 100f, 500f, 800f, 29f, ModContent.ProjectileType(), (int)(Projectile.damage * dmgMult), Projectile.knockBack * dmgMult, Projectile.owner); } } diff --git a/Projectiles/Rogue/EclipsesSmol.cs b/Projectiles/Rogue/EclipsesSmol.cs index 7746962ca8..a4073c7426 100644 --- a/Projectiles/Rogue/EclipsesSmol.cs +++ b/Projectiles/Rogue/EclipsesSmol.cs @@ -1,9 +1,8 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; -using Terraria.ID; using Terraria.ModLoader; -using Terraria.Audio; + namespace CalamityMod.Projectiles.Rogue { public class EclipsesSmol : ModProjectile, ILocalizedModType @@ -15,38 +14,16 @@ namespace CalamityMod.Projectiles.Rogue Projectile.friendly = true; Projectile.tileCollide = false; Projectile.ignoreWater = true; - Projectile.timeLeft = 150; - Projectile.extraUpdates = 1; Projectile.DamageType = RogueDamageClass.Instance; + Projectile.MaxUpdates = 2; + Projectile.timeLeft = 75 * Projectile.MaxUpdates; } public override void AI() { + Lighting.AddLight(Projectile.Center, 0.5f, 0.4f, 0.15f); Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; - CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 12f, 20f); - } - - public override void Kill(int timeLeft) - { - SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); - for (int i = 0; i < 2; i++) - { - int dustInt = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 138, 0f, 0f, 100, default, 1.2f); - Main.dust[dustInt].velocity *= 3f; - if (Main.rand.NextBool(2)) - { - Main.dust[dustInt].scale = 0.5f; - Main.dust[dustInt].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; - } - } - for (int j = 0; j < 3; j++) - { - int moreDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 138, 0f, 0f, 100, default, 1.7f); - Main.dust[moreDust].noGravity = true; - Main.dust[moreDust].velocity *= 5f; - moreDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 138, 0f, 0f, 100, default, 1f); - Main.dust[moreDust].velocity *= 2f; - } + CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 16f, 20f); } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Rogue/EclipsesStealth.cs b/Projectiles/Rogue/EclipsesStealth.cs index e87f3cd117..9f935f2652 100644 --- a/Projectiles/Rogue/EclipsesStealth.cs +++ b/Projectiles/Rogue/EclipsesStealth.cs @@ -1,5 +1,7 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -10,6 +12,10 @@ namespace CalamityMod.Projectiles.Rogue public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Items/Weapons/Rogue/EclipsesFall"; + // these also affect KB + public const float RainDamageMult = 0.25f; + public const float ExplosionDamageMult = 0.5f; + // For more consistent DPS, always alternates between spawning 1 and 2 spears instead of picking randomly private bool spawnTwoSpears = true; private bool changedTimeLeft = false; @@ -22,30 +28,35 @@ namespace CalamityMod.Projectiles.Rogue public override void SetDefaults() { - Projectile.width = 25; - Projectile.height = 25; + Projectile.width = Projectile.height = 40; Projectile.friendly = true; - Projectile.penetrate = -1; - Projectile.timeLeft = 300; Projectile.ignoreWater = true; - Projectile.tileCollide = false; + Projectile.tileCollide = false; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.MaxUpdates = 2; + Projectile.penetrate = -1; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; - Projectile.DamageType = RogueDamageClass.Instance; + Projectile.timeLeft = 150 * Projectile.MaxUpdates; } // Uses localAI[1] to decide how many frames until the next spear drops. public override void AI() { + Lighting.AddLight(Projectile.Center, 1f, 0.8f, 0.3f); // Behavior when not sticking to anything if (Projectile.ai[0] == 0f) { // Keep the spear oriented in the correct direction Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; - - // Spawn dust while flying - if (Main.rand.NextBool(8)) - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 138, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); + if (Main.rand.NextBool(5)) + { + Vector2 trailPos = Projectile.Center + Vector2.UnitY.RotatedBy(Projectile.rotation) * Main.rand.NextFloat(-16f, 16f); + float trailScale = Main.rand.NextFloat(0.8f, 1.2f); + Color trailColor = Main.rand.NextBool() ? Color.Indigo : Color.DarkOrange; + Particle eclipseTrail = new SparkParticle(trailPos, Projectile.velocity * 0.2f, false, 60, trailScale, trailColor); + GeneralParticleHandler.SpawnParticle(eclipseTrail); + } } // Behavior when having impaled a target @@ -54,12 +65,12 @@ namespace CalamityMod.Projectiles.Rogue // Eclipse's Fall is guaranteed to impale for 10 seconds, no more, no less if (!changedTimeLeft) { - Projectile.timeLeft = 600; + Projectile.timeLeft = 600 * Projectile.MaxUpdates; changedTimeLeft = true; } // Spawn spears. As this uses local AI, it's done client-side only. - if (Projectile.owner == Main.myPlayer) + if (Projectile.owner == Main.myPlayer && Projectile.FinalExtraUpdate()) { Projectile.localAI[1] -= 1f; @@ -67,16 +78,14 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.localAI[1] <= 0f) { // Set up the spear counter for next time. Used to be every 5 frames there was a 50% chance; now it's more reliable but slower. - Projectile.localAI[1] = Main.rand.Next(8, 14); // 8 to 13 frames between each spearfall + Projectile.localAI[1] = Main.rand.Next(8, 13); // 8 to 12 frames between each spearfall int type = ModContent.ProjectileType(); - int smolDamage = (int)(Projectile.damage * 0.22f); - float smolKB = 3f; // Used to be a 50% chance each spearfall for 1 or 2. Now is consistent. int numSpears = spawnTwoSpears ? 2 : 1; spawnTwoSpears = !spawnTwoSpears; for (int i = 0; i < numSpears; ++i) - CalamityUtils.ProjectileRain(source, Projectile.Center, 400f, 100f, 500f, 800f, 29f, type, smolDamage, smolKB, Projectile.owner); + CalamityUtils.ProjectileRain(source, Projectile.Center, 400f, 100f, 500f, 800f, 29f, type, (int)(Projectile.damage * RainDamageMult), Projectile.knockBack * RainDamageMult, Projectile.owner); } } } @@ -102,15 +111,15 @@ namespace CalamityMod.Projectiles.Rogue return false; } - public override bool? CanHitNPC(NPC target) - { - if (Projectile.ai[0] == 1f) - { - return false; - } - return null; - } + public override bool? CanHitNPC(NPC target) => Projectile.ai[0] == 1f ? false : base.CanHitNPC(target); public override bool CanHitPvp(Player target) => Projectile.ai[0] != 1f; + + public override void Kill(int timeLeft) + { + SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); + if (Main.myPlayer == Projectile.owner) + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * ExplosionDamageMult), Projectile.knockBack * ExplosionDamageMult, Projectile.owner); + } } } diff --git a/Projectiles/Rogue/UmbraphileBoom.cs b/Projectiles/Rogue/UmbraphileBoom.cs index c75540960e..86ae946f4e 100644 --- a/Projectiles/Rogue/UmbraphileBoom.cs +++ b/Projectiles/Rogue/UmbraphileBoom.cs @@ -1,5 +1,4 @@ using CalamityMod.Buffs.DamageOverTime; -using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -9,36 +8,33 @@ namespace CalamityMod.Projectiles.Rogue public class UmbraphileBoom : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Rogue"; - public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + + public const int Lifetime = 35; // 7 animation frames, 12 FPS + + public override void SetStaticDefaults() + { + Main.projFrames[Type] = 7; + } public override void SetDefaults() { - Projectile.width = 60; - Projectile.height = 60; + Projectile.width = Projectile.height = 58; Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.tileCollide = false; Projectile.penetrate = -1; - Projectile.timeLeft = 5; + Projectile.timeLeft = Lifetime; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; } - public override void Kill(int timeLeft) + public override void AI() { - for (int s = 0; s < 20; s++) - { - int dustType = Main.rand.NextBool() ? 246 : 176; - float dustSpeed = Main.rand.NextFloat(3f, 9f); - Vector2 dustVel = CalamityUtils.RandomVelocity(10f, dustSpeed, dustSpeed, 1f); - int boom = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, dustType, 0f, 0f, 100, default, 1f); - Dust dust = Main.dust[boom]; - dust.noGravity = true; - dust.position = Projectile.Center; - dust.position.X += (float)Main.rand.Next(-10, 11); - dust.position.Y += (float)Main.rand.Next(-10, 11); - dust.velocity = dustVel; - } + Projectile.frameCounter++; + Projectile.frame = Projectile.frameCounter / 5; + + if (Projectile.frameCounter > Lifetime) + Projectile.Kill(); } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) diff --git a/Projectiles/Rogue/UmbraphileBoom.png b/Projectiles/Rogue/UmbraphileBoom.png new file mode 100644 index 0000000000000000000000000000000000000000..8e6d4ccdf20dfa2ed965d1923a490cd95495e5a5 GIT binary patch literal 1058 zcmV+-1l{|IP)30{{R3SANEw00001b5ch_0Itp) z=>Px#8&FJCMF0Q*%iH`U92x)s0P%%C{=Z89|NmBUwlzm@cRkdV00009bW%=J0RR90 z|NsC0|2G1g)Bpejph-kQRCt{2-06}cD-Z_I4x?P&|A{9sCp*~^s9dPf&hO9d5sqL% z0cv=Eej<@bsWhrGy6ynu2l{Y8UNycxhynlqTaIT2{|9xKLus-|W*aE9e~B)0OVpQ!LE4#&+Yh zrK6L=_@JPnlN)&yG2MUei$tzWTI6?A*uwTw*g8dRDyaB%F3|iSaTkwWnh^#46gmKzZ(W4?2d>WotU?E_B(N&S6T>peyu>IXqup*zSrczj!ZoS4BmO zsR5mB9A1>$B(cGEh&Fsd{(ie(5*f#aZ@O!^8+J$Z57n>tQnCe{}SWd zX+)OSJMcGsAV&j{ms`>Fa9T)Suil4|$AP6CtfH`d@gIOfxd$D6=z1LXG-3LPv;C+Q zy3CHNn8Ga#-J;}AG5khHOmToXypyH_5ypoShFi>^rm8sIc2byZHOz;{o~8=D?h+k- z0VSkRh#;RHNEv8I+le^&mhLo#>R5r6)rIbgX}x&Uq6UKmgEnYWK=Yx$7kT{;d(<(a zd8gZr7$%AxrODUr*e|T=C@5m~bmByZC!(wlKs&mYl?K-6$GrjgGw&UQS zq}&s>+eX!lg3e*RmH5!IxW!(SdjSKaroI1}fHxft%jq#)q`m5N@Y_T2k@_!d%DrXr zru>ubrS(&MKmDFIXSb9m<*_dvZJC~w|5(GG@>Ql#Kzp0;;Q7ty6^q7o?VfFFKmCj= z6Ny}(Q%jv0r6<@=uWWZ0ExUONpP>D%c|Xm87mY+B5iYZhVe%G9K}ByuRdiH5-5?b- c5{WG3AL?p-8E6s<0ssI207*qoM6N<$g4opqnE(I) literal 0 HcmV?d00001 From bef76b90117fabaa8bc3e917079a14c1927d6cd8 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sun, 27 Aug 2023 15:23:07 -0400 Subject: [PATCH 073/258] Added Zenith and Gruesome Eminence to the pierce resist exception list (This would certainly never have immediate disastrous consequences on balance right guys) --- CalamityLists.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CalamityLists.cs b/CalamityLists.cs index d658b3ff3c..5439ad99a8 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1989,6 +1989,7 @@ namespace CalamityMod ProjectileID.MonkStaffT3, ProjectileID.LastPrismLaser, ProjectileID.ChargedBlasterLaser, + ProjectileID.FinalFractal, ProjectileType(), ProjectileType(), ProjectileType(), @@ -2035,6 +2036,7 @@ namespace CalamityMod ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), }; // Lists of enemies that resist piercing to some extent (mostly worms). From 2ddfecfa5797551efb73e4c4941dbfea9b2d05d1 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sun, 27 Aug 2023 15:39:03 -0400 Subject: [PATCH 074/258] Gruesome Eminence attempted rebalance, take 1 --- Items/Weapons/Magic/GruesomeEminence.cs | 2 +- Projectiles/Magic/SpiritCongregation.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Magic/GruesomeEminence.cs b/Items/Weapons/Magic/GruesomeEminence.cs index b71835a0fd..928015d4d8 100644 --- a/Items/Weapons/Magic/GruesomeEminence.cs +++ b/Items/Weapons/Magic/GruesomeEminence.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetDefaults() { - Item.damage = 888; + Item.damage = 666; Item.DamageType = DamageClass.Magic; Item.noUseGraphic = true; Item.channel = true; diff --git a/Projectiles/Magic/SpiritCongregation.cs b/Projectiles/Magic/SpiritCongregation.cs index 0831b4b830..c8d121a820 100644 --- a/Projectiles/Magic/SpiritCongregation.cs +++ b/Projectiles/Magic/SpiritCongregation.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.tileCollide = false; Projectile.ignoreWater = true; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 6; + Projectile.localNPCHitCooldown = 10; Projectile.timeLeft = 90000; } @@ -125,7 +125,7 @@ namespace CalamityMod.Projectiles.Magic BaseDamage = Projectile.damage; else { - float damageBoostFactor = MathHelper.SmoothStep(1f, 3.3f, CurrentPower); + float damageBoostFactor = MathHelper.SmoothStep(1f, 2f, CurrentPower); Projectile.damage = (int)(BaseDamage * damageBoostFactor); } From 98071d5ad34659e174026d2b7227c6679f900198 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sun, 27 Aug 2023 15:51:36 -0400 Subject: [PATCH 075/258] Gruesome Eminence, take 2 --- Projectiles/Magic/SpiritCongregation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Magic/SpiritCongregation.cs b/Projectiles/Magic/SpiritCongregation.cs index c8d121a820..e89c51526b 100644 --- a/Projectiles/Magic/SpiritCongregation.cs +++ b/Projectiles/Magic/SpiritCongregation.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.tileCollide = false; Projectile.ignoreWater = true; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; + Projectile.localNPCHitCooldown = 18; Projectile.timeLeft = 90000; } From 32b2686cb74e782327bdeaa38ac50ceb3125b6aa Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sun, 27 Aug 2023 16:04:44 -0400 Subject: [PATCH 076/258] Take 3 (The iframe nerf killed it) --- Projectiles/Magic/SpiritCongregation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Magic/SpiritCongregation.cs b/Projectiles/Magic/SpiritCongregation.cs index e89c51526b..ac81c8ca39 100644 --- a/Projectiles/Magic/SpiritCongregation.cs +++ b/Projectiles/Magic/SpiritCongregation.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.tileCollide = false; Projectile.ignoreWater = true; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 18; + Projectile.localNPCHitCooldown = 12; Projectile.timeLeft = 90000; } @@ -125,7 +125,7 @@ namespace CalamityMod.Projectiles.Magic BaseDamage = Projectile.damage; else { - float damageBoostFactor = MathHelper.SmoothStep(1f, 2f, CurrentPower); + float damageBoostFactor = MathHelper.SmoothStep(1f, 1.85f, CurrentPower); Projectile.damage = (int)(BaseDamage * damageBoostFactor); } From 3e438c0c77df74af0134ad814c0764d33179d636 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sun, 27 Aug 2023 16:45:51 -0400 Subject: [PATCH 077/258] Ares resists Zenith by 20%, Thanatos by 40% --- Balancing/BalancingChangesManager.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index f771e20fad..51a5b13583 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -264,9 +264,12 @@ namespace CalamityMod.Balancing // 20% resist to Eclipse's Fall. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType(), ProjectileType())))); - // 20% resist to Yharim's Crystal + // 20% resist to Yharim's Crystal. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType())))); + // 20% resist to Zenith. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileID.FinalFractal)))); + // 15% resist to Enforcer projectiles. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType())))); #endregion @@ -317,6 +320,9 @@ namespace CalamityMod.Balancing // 40% resist to Rancor. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType())))); + // 40% resist to Zenith. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileID.FinalFractal)))); + // 30% resist to the Spin Throw part of the Ark of the Cosmos' combo. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.7f, AotCThrowCombo)))); From 05cb3a93dc874015e1e397d3a06d6e37f22118a8 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sun, 27 Aug 2023 17:14:37 -0400 Subject: [PATCH 078/258] Slightly toned down Thanatos' Zentih resist --- Balancing/BalancingChangesManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 51a5b13583..4ba927c1db 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -320,8 +320,8 @@ namespace CalamityMod.Balancing // 40% resist to Rancor. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType())))); - // 40% resist to Zenith. - NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.6f, ProjectileID.FinalFractal)))); + // 35% resist to Zenith. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.FinalFractal)))); // 30% resist to the Spin Throw part of the Ark of the Cosmos' combo. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.7f, AotCThrowCombo)))); From ebbef4b90d7b3a56c99a351fd7d8f32dd2e1fa6d Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Mon, 28 Aug 2023 08:54:33 +0700 Subject: [PATCH 079/258] Eclipse's Fall glow + Lifetime restoration --- Items/Weapons/Rogue/EclipsesFall.cs | 3 +++ Items/Weapons/Rogue/EclipsesFallGlow.png | Bin 0 -> 853 bytes Projectiles/Rogue/EclipseStealthBoom.cs | 11 ++++++++++- Projectiles/Rogue/EclipseStealthBoomGlow.png | Bin 0 -> 2638 bytes Projectiles/Rogue/EclipsesFallMain.cs | 13 ++++++++++--- Projectiles/Rogue/EclipsesSmol.cs | 6 ++++++ Projectiles/Rogue/EclipsesSmolGlow.png | Bin 0 -> 1051 bytes Projectiles/Rogue/EclipsesStealth.cs | 18 +++++++++++++----- Projectiles/Rogue/UmbraphileBoom.cs | 9 +++++++++ Projectiles/Rogue/UmbraphileBoomGlow.png | Bin 0 -> 1384 bytes 10 files changed, 51 insertions(+), 9 deletions(-) create mode 100644 Items/Weapons/Rogue/EclipsesFallGlow.png create mode 100644 Projectiles/Rogue/EclipseStealthBoomGlow.png create mode 100644 Projectiles/Rogue/EclipsesSmolGlow.png create mode 100644 Projectiles/Rogue/UmbraphileBoomGlow.png diff --git a/Items/Weapons/Rogue/EclipsesFall.cs b/Items/Weapons/Rogue/EclipsesFall.cs index e352d26708..b914c5c93a 100644 --- a/Items/Weapons/Rogue/EclipsesFall.cs +++ b/Items/Weapons/Rogue/EclipsesFall.cs @@ -3,6 +3,7 @@ using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -43,6 +44,8 @@ namespace CalamityMod.Items.Weapons.Rogue return false; } + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) => Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request(Texture + "Glow").Value); + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Rogue/EclipsesFallGlow.png b/Items/Weapons/Rogue/EclipsesFallGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..f0cd455dd537789f1ec999816ebc8c2fe1adf346 GIT binary patch literal 853 zcmV-b1FHOqP)Px#1ZP1_K>z@;j|==^1poj7OUSV9bqoCG z%w={R5K#$k_SeSlt9m$?t5%|R$r6D@8W~nA1)#o{yNmwu+~)bjpBalZ!XgDZ|4`zu zv%h{_{dC15n^b&}U*0c1*Wnm$q>*W2TcA_0?@58x& z-P7Z37TJbuiUh69|KGR$^RhJg_hJhVL5aX3TT<&^s|_d*yY9-#Pru$Ctos$E;W~M; zjbc&eyWd-GQFmYL(l1_({9|B|Ey=b>z)3es1nkNvQI;xaq;@}u=OvWMB3qJuk#d)o zvs2rZ<$Yji2Ew1~3%_c!RAP}vvMUm^Ep(zCx{uVz87a%uW}t>e8tJ@96bPZ2mpU6k zmRENMYFMO^&WnsycQ#_zZmL9Jkw$t`Wa?>7?5-?#^SW51k?f01Em58$Vm3lkyElt8 z(piyOY1;F027)XN*L`08=9cKPQ?W=RofQf4Hx}*PKW&$lrGET(=-1d2^14{0kx5>aCe?fTT$i^U>K<7Oh}qT^p)x{!-h^T)` zzh4aDuAQ4%EfH8G5fSBQ)_3O+?%Hi*iPN#jrpWT-XK`pU7HQ Lifetime) Projectile.Kill(); } + + public override void PostDraw(Color lightColor) + { + Texture2D glow = ModContent.Request(Texture + "Glow").Value; + Rectangle frame = glow.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + } } } diff --git a/Projectiles/Rogue/EclipseStealthBoomGlow.png b/Projectiles/Rogue/EclipseStealthBoomGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..afa3ecf883338277352408e25e1b19927d865767 GIT binary patch literal 2638 zcmcImeOQuN7N?$S%F?zJE6d!ev=CjRw5EKNv2`L4KO(>c#d=H4&qmE0L8Y0dHnFr+ z6f31tG;#s8(9~YdjA|666g5q8+gUL`fXy#P@nbJd?X%DRwg2q>=bn4s=bm%!IluEe zZ{KW@sOX5kmLkMx(mSJ#M7UtpYfk0Gb zuAV!&9D!J+!h3p>S95B@DkwUe_!PT`}yp-&{^FK zb^}W{!#&NwHnbm6er&|)unT$?b_VKLe96HRFxPSf$%d)KOo>hEG#3(kVqB$vvfX8e zlKquzxt_*dZ;?&bLu%@A?@{Dq>JzOWYo4y~SMRbD#+1cIqP(Q`5z(6jj1V+X$mWLl z{J9gh49X~MG;y)#OfMZ`4>z93+QTbeV~4_pY@Rx3wVH!(K0zHxakgAzCw#Y7J(aom z@i(Wf3yYa>Y!(?@#;_7UTWFr-0G$wp!7TQbi z(mHKN*$K55dzjHE14rwP!EYjxR%GWi?g-h9Pq2|s5_Ly?$N2dW2!UH-AP%}NWA5e^ z$GGxD`q@&~N?0{9kp*QDz!^PjZ}It}sq6M&!y|d$Lgn;U?`VE6Q?XNvnW}womsec7 z;o)?e{P_E@8rE=7%l_<`-H8p|HpVP9UahS<=K?}~cj9n=^<#UPF$54z|B7GFMA?An z%^g(q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E2K!POG+(QsZDcm z4Ao^9acUknrH6|g!j!7@7V)up=+H8%j^HPknWF7Zqf0wKX{&AIWI`E@29VM;%^TOM zdP_gjBjM`DHu2_7>1oK?Nvq>%(P|V*ZFd=It}a}1Cdf~Bh#+bU2H>+|5bwLWnJ>Ro zlXdUv?%CVL2`CQ?-kM6(m4-1RQ!J>!YHLXl!-X+h|GY?rEccffDM;9VOwu1L0gV0rW|_K&OLw5!%NaXWsfs*ONsMHa+s#B5E;L>i4!iZ zgmkMwD+v50krwfL>q=q09GhO0x>OEeU3$C~$3ve{`XXcq#8YO6i*UTw;@597@gs|2 z6(QCzf9d=F&pZ%tV73{L`NFEErtIFzZG4A8Y_2g2IC#+ZZIz`txLZYxYG7&KlynFa=4ygo zOi9J{cmu{DH%|_bn*$<}ZVB&iX8TP}0Na&4K#@=G0c9{tXz9B>Ca^p-53i+rQ~hPUuLI_Z^^leHo_*G6RI? z8-7WW%Rcj?gY(FoEnw4(W=pI2N#Je|kMoA*1?KA*1_@@%58^R9i@n>YxxI!IChU9I zICjb(<){=8_+4m9M=91F#=d*<=sM|l5IBRbyvFapOYsQFk6gV9*5`sunK{`hQ@flT zg_KQ#qk?6!9o!OLdsmTwdU%78%)--Aj&O5b_Z#D(Texture + "Glow").Value; + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + } } } diff --git a/Projectiles/Rogue/EclipsesSmol.cs b/Projectiles/Rogue/EclipsesSmol.cs index a4073c7426..1000f9603e 100644 --- a/Projectiles/Rogue/EclipsesSmol.cs +++ b/Projectiles/Rogue/EclipsesSmol.cs @@ -32,5 +32,11 @@ namespace CalamityMod.Projectiles.Rogue Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); return false; } + + public override void PostDraw(Color lightColor) + { + Texture2D glow = ModContent.Request(Texture + "Glow").Value; + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + } } } diff --git a/Projectiles/Rogue/EclipsesSmolGlow.png b/Projectiles/Rogue/EclipsesSmolGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..0539d70e6469945b44ba29e387a03a66091967d2 GIT binary patch literal 1051 zcmV+$1mydPP)Px#1ZP1_K>z@;j|==^1poj8t4TybRCr$Pnk{b?K@^62YY86-8Uva?fT2iAFo;rv zAt4wP2olhcU{DxBg26Nu7(y#4hChG?gC+qQEQOu)Y3N%H^X}f+_NF~g($2kecXu{B zPtG|zyK_m>l*x8Gb1dCm+uHtESbe&K@Wt_|B&X(`TFB~iF{H3*BL@_5S=mV6<|Aef5kNjCV%K!_FI1WC5@VfW=2KX3FxQN z)$N)2%@03ItNTYLVZzdl^X0pmv$b)hv|1Md=TS2?jWTI&6fi?-PGl5d*7BP>rHy7< zW1GS_829?r^RC%*Ue~_e?wT+*K^kT9->W!;$P~?5Y6K=h&8P@9i1S$g^trV3gM0im z%A~nbQC*~Hwga-(kH-t81-8@d#duMcjZDU{T5N(e%49U7v@QZ>SdEG*XUt;1m8;K6 zi&?}(`WcU`2WqOEeJvD|(Sxr0fU}O8!ZrC2khFbrqSsKfJy<055ufF)j(sBnnc~hDuHIb zT7}Jd_04vWMwv7-Dl$n?v#67_?$SydV>I>+HKZ?Tl*!byq4f(yF-fzTR_amZ&h~1M z8>6NrjWTI&R4uy!&(ZWA4YcmUM9p?;;#g*-Q6|-^&&+|&m}Wb-UcwCa*NQvJj?_~; zw_`td?RzL`l!IX5PxQG|I%j%4(LzBsBoE z4$>Hd5yUE>A4Al<$T0d_XTLPcr1w=-M2|x^PuncE@_lWbEC9=(rnZ>ri^7sU(zU(=Cgz` zdQTTIE5_7FqfDlrMa^nstyv#5X_U#-7pgO<`|Gk8nd~r;t4G5 z*OS;;Cyg@Mv4pkmH0a-?QAu(D%+37<=V5@&?!?X10000EWmrjOO-%qQ0000800000 V0002eQ(Texture + "Glow").Value; + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + } + public override bool? CanHitNPC(NPC target) => Projectile.ai[0] == 1f ? false : base.CanHitNPC(target); public override bool CanHitPvp(Player target) => Projectile.ai[0] != 1f; diff --git a/Projectiles/Rogue/UmbraphileBoom.cs b/Projectiles/Rogue/UmbraphileBoom.cs index 86ae946f4e..fb9924cd18 100644 --- a/Projectiles/Rogue/UmbraphileBoom.cs +++ b/Projectiles/Rogue/UmbraphileBoom.cs @@ -1,4 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -54,5 +56,12 @@ namespace CalamityMod.Projectiles.Rogue if (!Main.dayTime || Main.rand.NextBool(3)) //100% at night, 33.33% chance during day target.AddBuff(ModContent.BuffType(), 45); } + + public override void PostDraw(Color lightColor) + { + Texture2D glow = ModContent.Request(Texture + "Glow").Value; + Rectangle frame = glow.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + } } } diff --git a/Projectiles/Rogue/UmbraphileBoomGlow.png b/Projectiles/Rogue/UmbraphileBoomGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..b4c9459bddd0198f96f603f17396026e5799385a GIT binary patch literal 1384 zcmZ`(dr*=I5dZ4zdU)6!rI)686=|a<)G1;ib}FExSg2nlKJv=bbrmH_~g3R|M zyk~HF#Nt$Ejy3o-=Vf?R5#g~i@3~nBo}TeVRL*x7|1SO+*!M#s;OkU0l6MhfmPgPS z$}0V69zwAo;FG^mzv5e7rkKO-cTRF|7(_fyO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PATCH 080/258] sponge recharge time 6s -> 9s --- Items/Accessories/TheSponge.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Accessories/TheSponge.cs b/Items/Accessories/TheSponge.cs index b9f75fbe5d..99a96e5c64 100644 --- a/Items/Accessories/TheSponge.cs +++ b/Items/Accessories/TheSponge.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories public static readonly SoundStyle BreakSound = new("CalamityMod/Sounds/Custom/RoverDriveBreak") { Volume = 0.75f }; public static int ShieldDurabilityMax = 180; - public static int ShieldRechargeDelay = CalamityUtils.SecondsToFrames(6); + public static int ShieldRechargeDelay = CalamityUtils.SecondsToFrames(9); // was 6 public static int TotalShieldRechargeTime = CalamityUtils.SecondsToFrames(6); // While active, The Sponge gives 30 defense and 30% DR From 2d019ed2386b2bb4bc79835ce7bba897e8e4c2f1 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sun, 27 Aug 2023 21:04:05 -0600 Subject: [PATCH 081/258] Made Plasma Grenade flashier and nerfed its values a bit before I start more rigourous testing. --- Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs | 9 +++------ .../DraedonsArsenal/PlasmaGrenadeProjectile.cs | 17 ++++++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index f25fbec3e2..96a00c9a1d 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.width = 22; Item.height = 28; - Item.damage = 1378; + Item.damage = 1000; Item.noMelee = true; Item.noUseGraphic = true; Item.consumable = false; @@ -40,19 +40,16 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 14f; + Item.shootSpeed = 10f; Item.DamageType = RogueDamageClass.Instance; modItem.UsesCharge = true; modItem.MaxCharge = 250f; - modItem.ChargePerUse = 0.2f; + modItem.ChargePerUse = 0.25f; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - if (player.Calamity().StealthStrikeAvailable()) - damage = (int)(damage * 1.05); - int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); if (proj.WithinBounds(Main.maxProjectiles)) Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable(); diff --git a/Projectiles/DraedonsArsenal/PlasmaGrenadeProjectile.cs b/Projectiles/DraedonsArsenal/PlasmaGrenadeProjectile.cs index cdff65ad8e..9f24c66d94 100644 --- a/Projectiles/DraedonsArsenal/PlasmaGrenadeProjectile.cs +++ b/Projectiles/DraedonsArsenal/PlasmaGrenadeProjectile.cs @@ -4,6 +4,7 @@ using Terraria; using Terraria.ModLoader; using Terraria.Audio; using CalamityMod.Items.Weapons.DraedonsArsenal; +using CalamityMod.Particles; namespace CalamityMod.Projectiles.DraedonsArsenal { @@ -13,6 +14,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public override string Texture => "CalamityMod/Items/Weapons/DraedonsArsenal/PlasmaGrenade"; private static readonly float Gravity = 0.09f; + private float rotate = Main.rand.Next(360); public float Time { @@ -26,27 +28,28 @@ namespace CalamityMod.Projectiles.DraedonsArsenal Projectile.height = 28; Projectile.friendly = true; Projectile.penetrate = 1; - Projectile.timeLeft = 300; + Projectile.timeLeft = 450; Projectile.MaxUpdates = 2; Projectile.DamageType = RogueDamageClass.Instance; } public override void AI() { - Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.ToRadians(rotate); Vector2 projectileTop = Projectile.Center + new Vector2(0f, Projectile.height * -0.5f).RotatedBy(Projectile.rotation); if (Time > 10f) Projectile.velocity.Y += Gravity; - if (!Main.dedServ) + if (!Main.dedServ && Main.rand.NextBool()) // 50% chance to spawn smoke { - Dust dust = Dust.NewDustPerfect(projectileTop, 107); - dust.velocity = Projectile.rotation.ToRotationVector2().RotatedByRandom(0.35f) * Main.rand.NextFloat(2f, 4f); - dust.velocity += Projectile.velocity * 0.25f; - dust.scale = Main.rand.NextFloat(0.95f, 1.3f); + Color plasmaLime = Color.Lerp(Color.Lime, Color.LimeGreen, Main.rand.NextFloat(1f)); + Color fadeColor = Color.Lerp(Color.LightGreen, plasmaLime, Main.rand.NextFloat(0.5f,1f)); + Particle plasma = new SmallSmokeParticle(projectileTop, Projectile.oldVelocity*0.7f, Color.LightGreen, fadeColor, Main.rand.NextFloat(0.4f,0.9f), 100f); + GeneralParticleHandler.SpawnParticle(plasma); } Time++; + rotate += 10; } public override void Kill(int timeLeft) From bdde8f8b4fbb3231d54472cb4148636c4cb4c527 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sun, 27 Aug 2023 22:57:36 -0600 Subject: [PATCH 082/258] Plasma Grenade fucking dies Buffed Nanotech's flare dmg a little to better compete with Venerated Locket's knives (even post-nerf they are batshit insane) Nerfed Ven Locket's knives AGAIN --- CalPlayer/CalamityPlayer.cs | 2 +- CalPlayer/CalamityPlayerOnHit.cs | 2 +- Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 4831150314..99a0003650 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3979,7 +3979,7 @@ namespace CalamityMod.CalPlayer if (StealthStrikeAvailable()) { int knifeCount = 12; - int knifeDamage = (int)Player.GetTotalDamage().ApplyTo(75); + int knifeDamage = (int)Player.GetTotalDamage().ApplyTo(70); float angleStep = MathHelper.TwoPi / knifeCount; float speed = 15f; diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index c47b1dddc8..6a85e5abc7 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -840,7 +840,7 @@ namespace CalamityMod.CalPlayer { Vector2 source = new Vector2(position.X + Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50)); Vector2 velocity = (position - source) / 40f; - int damage = (int)Player.GetTotalDamage().ApplyTo(120); + int damage = (int)Player.GetTotalDamage().ApplyTo(125); Projectile.NewProjectile(spawnSource, source, velocity, ProjectileType(), damage, 3f, proj.owner); } } diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index 96a00c9a1d..f575b6ff3e 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 10f; + Item.shootSpeed = 11f; Item.DamageType = RogueDamageClass.Instance; modItem.UsesCharge = true; @@ -48,6 +48,10 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal modItem.ChargePerUse = 0.25f; } + public override float StealthDamageMultiplier => 1.2f; + public override float StealthVelocityMultiplier => 1.2f; + public override float StealthKnockbackMultiplier => 1.5f; + public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); From 4e97e7a6b1db8c22b8268de0a48d3e7b749509cb Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sun, 27 Aug 2023 23:06:25 -0600 Subject: [PATCH 083/258] Fixed Shattered Community's level up text being missing --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 1 + 1 file changed, 1 insertion(+) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 3684dd87d1..3e74abd574 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1490,6 +1490,7 @@ ShatteredCommunity: { When Rage is maxed, press {0} for a temporary damage boost ''' RageModified: You generate rage over time and rage does not fade out of combat + LevelUpText: Level Up! } ShieldoftheHighRuler: { From 2e6e5d5213a4c45d32b87aba256a65ecbc4e15d9 Mon Sep 17 00:00:00 2001 From: Done2222 <125043478+Done2222@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:43:00 +0300 Subject: [PATCH 084/258] Onyx Chain Blaster buff 40 - 51 damage --- Items/Weapons/Ranged/OnyxChainBlaster.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/OnyxChainBlaster.cs b/Items/Weapons/Ranged/OnyxChainBlaster.cs index 21f3abf073..e155ee4dd2 100644 --- a/Items/Weapons/Ranged/OnyxChainBlaster.cs +++ b/Items/Weapons/Ranged/OnyxChainBlaster.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 40; + Item.damage = 51; Item.DamageType = DamageClass.Ranged; Item.width = 64; Item.height = 32; From ce8f30068aba8eba0afebb136fac7e5f15d6ddfc Mon Sep 17 00:00:00 2001 From: Done2222 <125043478+Done2222@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:44:17 +0300 Subject: [PATCH 085/258] Monsoon buff 121 -> 152 --- Items/Weapons/Ranged/Monsoon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/Monsoon.cs b/Items/Weapons/Ranged/Monsoon.cs index 1c4d7c7388..66559fea56 100644 --- a/Items/Weapons/Ranged/Monsoon.cs +++ b/Items/Weapons/Ranged/Monsoon.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 121; + Item.damage = 152; Item.DamageType = DamageClass.Ranged; Item.width = 46; Item.height = 78; From fcbc6441a1730ae65182abf6ea2d1e9d4f137282 Mon Sep 17 00:00:00 2001 From: Done2222 <125043478+Done2222@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:45:00 +0300 Subject: [PATCH 086/258] Elemental Blaster buff 55 -> 67 --- Items/Weapons/Ranged/ElementalBlaster.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/ElementalBlaster.cs b/Items/Weapons/Ranged/ElementalBlaster.cs index 8265d0d556..fab5898e68 100644 --- a/Items/Weapons/Ranged/ElementalBlaster.cs +++ b/Items/Weapons/Ranged/ElementalBlaster.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 55; + Item.damage = 67; Item.DamageType = DamageClass.Ranged; Item.width = 104; Item.height = 42; From 1e699eab07c9fe93b6d9aa97da3e8477151a2566 Mon Sep 17 00:00:00 2001 From: Done2222 <125043478+Done2222@users.noreply.github.com> Date: Mon, 28 Aug 2023 15:46:00 +0300 Subject: [PATCH 087/258] Dodu's Handcannon buff 857 -> 1020 --- Items/Weapons/Ranged/DodusHandcannon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/DodusHandcannon.cs b/Items/Weapons/Ranged/DodusHandcannon.cs index 98aae42a20..103e91d86f 100644 --- a/Items/Weapons/Ranged/DodusHandcannon.cs +++ b/Items/Weapons/Ranged/DodusHandcannon.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 62; Item.height = 34; - Item.damage = 857; + Item.damage = 1020; Item.DamageType = DamageClass.Ranged; Item.useTime = 30; Item.useAnimation = 30; From cd523eb74cc3e84662ef4d5cbbbe03702a601331 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 09:26:50 -0400 Subject: [PATCH 088/258] Nebulash and Void Vortex balance --- Items/Weapons/Magic/VoidVortex.cs | 4 ++-- Items/Weapons/Melee/Nebulash.cs | 2 +- Projectiles/Melee/NebulashFlail.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Magic/VoidVortex.cs b/Items/Weapons/Magic/VoidVortex.cs index fdc6183b87..db4a6bd179 100644 --- a/Items/Weapons/Magic/VoidVortex.cs +++ b/Items/Weapons/Magic/VoidVortex.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic public class VoidVortex : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; - public const int OrbFireRate = 16; + public const int OrbFireRate = 20; public override void SetStaticDefaults() { @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 112; + Item.damage = 106; Item.DamageType = DamageClass.Magic; Item.mana = 60; Item.width = 130; diff --git a/Items/Weapons/Melee/Nebulash.cs b/Items/Weapons/Melee/Nebulash.cs index f677385279..af58c393d6 100644 --- a/Items/Weapons/Melee/Nebulash.cs +++ b/Items/Weapons/Melee/Nebulash.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 16; Item.height = 16; - Item.damage = 60; + Item.damage = 78; Item.rare = ItemRarityID.Lime; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Projectiles/Melee/NebulashFlail.cs b/Projectiles/Melee/NebulashFlail.cs index 0ad290be47..f8a50b26ca 100644 --- a/Projectiles/Melee/NebulashFlail.cs +++ b/Projectiles/Melee/NebulashFlail.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.MeleeNoSpeed; Projectile.ignoreWater = true; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 3; + Projectile.localNPCHitCooldown = 2; } public override Color SpecialDrawColor => new(255, 200, 0); public override int ExudeDustType => ModContent.DustType(); From 04e3f30eaa68693313342d6a8d6805d0afe94002 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Mon, 28 Aug 2023 21:28:29 +0700 Subject: [PATCH 089/258] Shattered Community text as it should be --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 3e74abd574..b897a532f0 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1490,7 +1490,7 @@ ShatteredCommunity: { When Rage is maxed, press {0} for a temporary damage boost ''' RageModified: You generate rage over time and rage does not fade out of combat - LevelUpText: Level Up! + LevelUpText: The Community cracks... } ShieldoftheHighRuler: { From 7adbb470f805774c93473354bbd58ec049c493e0 Mon Sep 17 00:00:00 2001 From: AquaSG Date: Mon, 28 Aug 2023 10:53:22 -0400 Subject: [PATCH 090/258] coral spout and titanium railgun visual fix --- Projectiles/Magic/CoralSpoutHoldout.cs | 2 +- Projectiles/Ranged/TitaniumRailgunScope.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Magic/CoralSpoutHoldout.cs b/Projectiles/Magic/CoralSpoutHoldout.cs index 2c22646cb4..7ad3a1471c 100644 --- a/Projectiles/Magic/CoralSpoutHoldout.cs +++ b/Projectiles/Magic/CoralSpoutHoldout.cs @@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Magic Main.EntitySpriteDraw(texture, Owner.MountedCenter - Main.screenPosition, null, Color.White, angle, new Vector2(texture.Width / 2f, texture.Height/2f), 700f, 0, 0); Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); return false; } diff --git a/Projectiles/Ranged/TitaniumRailgunScope.cs b/Projectiles/Ranged/TitaniumRailgunScope.cs index b2bea7ff0a..ca386ce464 100644 --- a/Projectiles/Ranged/TitaniumRailgunScope.cs +++ b/Projectiles/Ranged/TitaniumRailgunScope.cs @@ -215,7 +215,7 @@ namespace CalamityMod.Projectiles.Ranged Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); return false; } From faa5a3e5b1e3ab7c705ceb7372faea8cc6735ce7 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:10:12 -0400 Subject: [PATCH 091/258] Stormjaw Staff damage buff (and increased their speed I think) --- Items/Weapons/Summon/StormjawStaff.cs | 2 +- Projectiles/Summon/StormjawBaby.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Summon/StormjawStaff.cs b/Items/Weapons/Summon/StormjawStaff.cs index 28e74b34be..f32049a30c 100644 --- a/Items/Weapons/Summon/StormjawStaff.cs +++ b/Items/Weapons/Summon/StormjawStaff.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Summon public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetDefaults() { - Item.damage = 8; + Item.damage = 11; Item.mana = 10; Item.width = 32; Item.height = 32; diff --git a/Projectiles/Summon/StormjawBaby.cs b/Projectiles/Summon/StormjawBaby.cs index 2754293e9f..59de3bd778 100644 --- a/Projectiles/Summon/StormjawBaby.cs +++ b/Projectiles/Summon/StormjawBaby.cs @@ -414,8 +414,8 @@ namespace CalamityMod.Projectiles.Summon { Projectile.tileCollide = true; float accelFast = 0.5f; - float maxSpeed = 4f; - float xVel = 4f; + float maxSpeed = 7f; + float xVel = 7f; float accelSlow = 0.1f; if (xVel < Math.Abs(player.velocity.X) + Math.Abs(player.velocity.Y)) { From 85eee39f8c5533f546d77154c2bc2f63c68592a8 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:16:46 -0400 Subject: [PATCH 092/258] Slight Stormjaw speed changes --- Projectiles/Summon/StormjawBaby.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Projectiles/Summon/StormjawBaby.cs b/Projectiles/Summon/StormjawBaby.cs index 59de3bd778..efae266e98 100644 --- a/Projectiles/Summon/StormjawBaby.cs +++ b/Projectiles/Summon/StormjawBaby.cs @@ -413,14 +413,14 @@ namespace CalamityMod.Projectiles.Summon if (Projectile.ai[0] == 0f) { Projectile.tileCollide = true; - float accelFast = 0.5f; - float maxSpeed = 7f; - float xVel = 7f; - float accelSlow = 0.1f; + float accelFast = 1f; + float maxSpeed = 8f; + float xVel = 8f; + float accelSlow = 0.2f; if (xVel < Math.Abs(player.velocity.X) + Math.Abs(player.velocity.Y)) { xVel = Math.Abs(player.velocity.X) + Math.Abs(player.velocity.Y); - accelFast = 0.7f; + accelFast = 1.4f; } int direction = 0; bool flag3 = false; From 5dc47f4f1e86305d9782d8eb7f907fbb2a87b0e2 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:26:33 -0400 Subject: [PATCH 093/258] Why is the separation anxiety distance shorter than its attack distance??? --- Projectiles/Summon/StormjawBaby.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Summon/StormjawBaby.cs b/Projectiles/Summon/StormjawBaby.cs index efae266e98..13700aca1f 100644 --- a/Projectiles/Summon/StormjawBaby.cs +++ b/Projectiles/Summon/StormjawBaby.cs @@ -393,7 +393,7 @@ namespace CalamityMod.Projectiles.Summon if (sparkCounter < 0) sparkCounter = 0; - float sepAnxietyDist = 500f; + float sepAnxietyDist = 1000f; Vector2 playerDist = player.Center - Projectile.Center; // Teleport to the player if too far if (playerDist.Length() > 2000f) From 4c6a3e7d0269e486a6e5e28e16b67f1946530aa2 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 13:42:42 -0400 Subject: [PATCH 094/258] Watch this make the mod not compile lmao --- Items/Weapons/Ranged/ArterialAssault.cs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index c7284e7030..72bc279c27 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -76,16 +76,10 @@ namespace CalamityMod.Items.Weapons.Ranged num79 *= num80; float speedX4 = num78; float speedY5 = num79; - if (CalamityUtils.CheckWoodenAmmo(type, player)) - { - int bloodfire = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 80f); - Main.projectile[bloodfire].tileCollide = false; - } - else - { - int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); - Main.projectile[num121].noDropItem = true; - } + int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); + Main.projectile[num121].noDropItem = true; + Main.projectile[num121].tileCollide = false; + CalamityUtils.HomeInOnNPC(num121, !num121.tileCollide, 200f, 12f, 20f); return false; } From b57bc63c65917c9ec98179ab4febd05bc117c7b6 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 13:43:42 -0400 Subject: [PATCH 095/258] Damn. --- Items/Weapons/Ranged/ArterialAssault.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index 72bc279c27..c7284e7030 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -76,10 +76,16 @@ namespace CalamityMod.Items.Weapons.Ranged num79 *= num80; float speedX4 = num78; float speedY5 = num79; - int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); - Main.projectile[num121].noDropItem = true; - Main.projectile[num121].tileCollide = false; - CalamityUtils.HomeInOnNPC(num121, !num121.tileCollide, 200f, 12f, 20f); + if (CalamityUtils.CheckWoodenAmmo(type, player)) + { + int bloodfire = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 80f); + Main.projectile[bloodfire].tileCollide = false; + } + else + { + int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); + Main.projectile[num121].noDropItem = true; + } return false; } From 857bf0f82a62ba708fc9948557e5d3d4b84a465a Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:43:43 -0400 Subject: [PATCH 096/258] Attempt 2 at making Arterial Assault grant full homing? --- Items/Weapons/Ranged/ArterialAssault.cs | 15 +++++---------- Projectiles/CalamityGlobalProjectile.cs | 8 ++++++++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index c7284e7030..d23b0eff1f 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -76,16 +76,11 @@ namespace CalamityMod.Items.Weapons.Ranged num79 *= num80; float speedX4 = num78; float speedY5 = num79; - if (CalamityUtils.CheckWoodenAmmo(type, player)) - { - int bloodfire = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 80f); - Main.projectile[bloodfire].tileCollide = false; - } - else - { - int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); - Main.projectile[num121].noDropItem = true; - } + Projectile num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); + Main.projectile[num121].noDropItem = true; + Main.projectile[num121].tileCollide = false; + CalamityGlobalProjectile cgp = num121.Calamity(); + cgp.allProjectilesHome = true; return false; } diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 2268b521e7..c4e325877c 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -74,6 +74,9 @@ namespace CalamityMod.Projectiles // If true, this projectile creates impact sparks upon hitting enemies public bool deepcoreBullet = false; + // If true, causes all projectiles fired by this weapon to have homing. Currently used for Arterial Assault. + public bool allProjectilesHome = false; + // Amount of extra updates that are set in SetDefaults. public int defExtraUpdates = -1; @@ -2488,6 +2491,11 @@ namespace CalamityMod.Projectiles confetti.velocity.Y += Main.rand.Next(-50, 51) * 0.05f; } } + + if (allProjectilesHome) + { + CalamityUtils.HomeInOnNPC(projectile, !projectile.tileCollide, 300f, 12f, 20f); + } } } #endregion From c07b1ddd65c27563d622396b5ff944119914df67 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:45:43 -0400 Subject: [PATCH 097/258] Comment --- Items/Weapons/Ranged/ArterialAssault.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index d23b0eff1f..e413216458 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -76,7 +76,7 @@ namespace CalamityMod.Items.Weapons.Ranged num79 *= num80; float speedX4 = num78; float speedY5 = num79; - Projectile num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); + int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); Main.projectile[num121].noDropItem = true; Main.projectile[num121].tileCollide = false; CalamityGlobalProjectile cgp = num121.Calamity(); From 4dd8ec6c1f93dd6c4f63dbca7b420b3835fa1ba9 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:47:13 -0400 Subject: [PATCH 098/258] clueless --- Items/Weapons/Ranged/ArterialAssault.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index e413216458..3044393e3a 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -1,5 +1,5 @@ using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; From 27a8b50e85975af840c31394268c9b86d98ca1cf Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:49:22 -0400 Subject: [PATCH 099/258] Insanity --- Items/Weapons/Ranged/ArterialAssault.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index 3044393e3a..57bf8dc90e 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item102; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ProjectileID.WoodenArrowFriendly; Item.shootSpeed = 30f; Item.useAmmo = AmmoID.Arrow; } From 8ff72a22faecb5ba612badfca8c70339a98c45eb Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:51:34 -0400 Subject: [PATCH 100/258] Trying again --- Items/Weapons/Ranged/ArterialAssault.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index 57bf8dc90e..ac2e188404 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -76,7 +76,7 @@ namespace CalamityMod.Items.Weapons.Ranged num79 *= num80; float speedX4 = num78; float speedY5 = num79; - int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); + Projectile num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); Main.projectile[num121].noDropItem = true; Main.projectile[num121].tileCollide = false; CalamityGlobalProjectile cgp = num121.Calamity(); From ae1277abbf0c6660f2a49f663ef6e4f885ffa5b2 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:53:28 -0400 Subject: [PATCH 101/258] Man --- Items/Weapons/Ranged/ArterialAssault.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index ac2e188404..eced1dcf9c 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -76,7 +76,7 @@ namespace CalamityMod.Items.Weapons.Ranged num79 *= num80; float speedX4 = num78; float speedY5 = num79; - Projectile num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); + Projectile num121 = Projectile.NewProjectileDirect(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); Main.projectile[num121].noDropItem = true; Main.projectile[num121].tileCollide = false; CalamityGlobalProjectile cgp = num121.Calamity(); From 01902f2525add6aa4a22e2780378cfa50804ace6 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 16:57:32 -0400 Subject: [PATCH 102/258] Yeah okay I will step back from trying to do this :XD: --- Items/Weapons/Ranged/ArterialAssault.cs | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index eced1dcf9c..9bd1950f75 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -1,5 +1,5 @@ -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles; +using CalamityMod.Items.Materials; +using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item102; Item.autoReuse = true; - Item.shoot = ProjectileID.WoodenArrowFriendly; + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 30f; Item.useAmmo = AmmoID.Arrow; } @@ -76,11 +76,16 @@ namespace CalamityMod.Items.Weapons.Ranged num79 *= num80; float speedX4 = num78; float speedY5 = num79; - Projectile num121 = Projectile.NewProjectileDirect(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); - Main.projectile[num121].noDropItem = true; - Main.projectile[num121].tileCollide = false; - CalamityGlobalProjectile cgp = num121.Calamity(); - cgp.allProjectilesHome = true; + if (CalamityUtils.CheckWoodenAmmo(type, player)) + { + int bloodfire = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 80f); + Main.projectile[bloodfire].tileCollide = false; + } + else + { + int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); + Main.projectile[num121].noDropItem = true; + } return false; } @@ -92,4 +97,4 @@ namespace CalamityMod.Items.Weapons.Ranged Register(); } } -} +} \ No newline at end of file From bf709c388b449969fcb443685f9ee4f7878dbad8 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 17:22:27 -0400 Subject: [PATCH 103/258] Not Arterial Assault (Vile Feeder and vanilla flamethrowers balance) --- Items/CalamityGlobalItemTweaks.cs | 2 +- Items/Weapons/Summon/VileFeeder.cs | 2 +- Projectiles/CalamityGlobalProjectileTweaks.cs | 2 +- Projectiles/Summon/VileFeederSummon.cs | 9 ++------- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index f9eedd1e22..60fdb47f6d 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -105,7 +105,7 @@ namespace CalamityMod.Items // { ItemID.FireworksLauncher, Do(DamageRatio(2f)) }, // Celebration { ItemID.Flamarang, Do(DamageExact(43)) }, { ItemID.Flamelash, Do(DamageRatio(1.25f)) }, - { ItemID.Flamethrower, Do(DamageExact(42), ShootSpeedDelta(+3f)) }, + { ItemID.Flamethrower, ShootSpeedDelta(+3f)) }, { ItemID.FlowerofFire, Do(AutoReuse, ManaExact(7), UseRatio(0.88f)) }, // Uses ratios due to remix seed { ItemID.FlowerofFrost, Do(AutoReuse, ManaExact(7), UseExact(30), DamageExact(70), ShootSpeedExact(14)) }, { ItemID.FlyingKnife, Do(DamageExact(70)) }, diff --git a/Items/Weapons/Summon/VileFeeder.cs b/Items/Weapons/Summon/VileFeeder.cs index 8bbeba057f..c42b8e20d1 100644 --- a/Items/Weapons/Summon/VileFeeder.cs +++ b/Items/Weapons/Summon/VileFeeder.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Summon public class VileFeeder : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; - public static int BaseDamage = 9; + public static int BaseDamage = 14; public override void SetDefaults() { diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index bc232b8b76..5627cf21c6 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -129,7 +129,7 @@ namespace CalamityMod.Projectiles { ProjectileID.EnchantedBoomerang, Do(ExtraUpdatesExact(1)) }, { ProjectileID.ExplosiveBullet, standardBulletTweaks }, { ProjectileID.Flamarang, Do(ExtraUpdatesExact(2)) }, - { ProjectileID.Flames, Do(IDStaticIFrames(6), ExtraUpdatesDelta(+1)) }, // Flamethrower + Elf Melter + { ProjectileID.Flames, Do(IDStaticIFrames(6) }, // Flamethrower + Elf Melter { ProjectileID.FlamingJack, Do(ExtraUpdatesExact(1)) }, { ProjectileID.FlowerPetal, Do(MaxUpdatesExact(4), LocalIFrames(10)) }, // Orichalcum armor { ProjectileID.FlowerPow, Do(ExtraUpdatesExact(1)) }, diff --git a/Projectiles/Summon/VileFeederSummon.cs b/Projectiles/Summon/VileFeederSummon.cs index e9b2b88884..9e8a586f64 100644 --- a/Projectiles/Summon/VileFeederSummon.cs +++ b/Projectiles/Summon/VileFeederSummon.cs @@ -35,6 +35,8 @@ namespace CalamityMod.Projectiles.Summon Projectile.timeLeft *= 5; Projectile.minion = true; Projectile.DamageType = DamageClass.Summon; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 60; } public override void SendExtraAI(BinaryWriter writer) @@ -267,13 +269,6 @@ namespace CalamityMod.Projectiles.Summon return false; } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.immune[Projectile.owner] = 0; - } - - public override bool? CanDamage() => Projectile.ai[0] != 3f; - public override bool OnTileCollide(Vector2 oldVelocity) => false; } } From 7d31b4b4ef07b23b74b1fa5febe3fcf601c248b9 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 17:33:02 -0400 Subject: [PATCH 104/258] I love accidentally making the mod not compile for the 7th time today yippee --- Items/CalamityGlobalItemTweaks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 60fdb47f6d..ea4b9b8833 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -105,7 +105,7 @@ namespace CalamityMod.Items // { ItemID.FireworksLauncher, Do(DamageRatio(2f)) }, // Celebration { ItemID.Flamarang, Do(DamageExact(43)) }, { ItemID.Flamelash, Do(DamageRatio(1.25f)) }, - { ItemID.Flamethrower, ShootSpeedDelta(+3f)) }, + { ItemID.Flamethrower, Do(ShootSpeedDelta(+3f)) }, { ItemID.FlowerofFire, Do(AutoReuse, ManaExact(7), UseRatio(0.88f)) }, // Uses ratios due to remix seed { ItemID.FlowerofFrost, Do(AutoReuse, ManaExact(7), UseExact(30), DamageExact(70), ShootSpeedExact(14)) }, { ItemID.FlyingKnife, Do(DamageExact(70)) }, From 12016be083355e68803527467d29928b56cf3ea1 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 17:34:07 -0400 Subject: [PATCH 105/258] Oh my god why am I so stupid --- Projectiles/CalamityGlobalProjectileTweaks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 5627cf21c6..30062234d7 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -129,7 +129,7 @@ namespace CalamityMod.Projectiles { ProjectileID.EnchantedBoomerang, Do(ExtraUpdatesExact(1)) }, { ProjectileID.ExplosiveBullet, standardBulletTweaks }, { ProjectileID.Flamarang, Do(ExtraUpdatesExact(2)) }, - { ProjectileID.Flames, Do(IDStaticIFrames(6) }, // Flamethrower + Elf Melter + { ProjectileID.Flames, Do(IDStaticIFrames(6)) }, // Flamethrower + Elf Melter { ProjectileID.FlamingJack, Do(ExtraUpdatesExact(1)) }, { ProjectileID.FlowerPetal, Do(MaxUpdatesExact(4), LocalIFrames(10)) }, // Orichalcum armor { ProjectileID.FlowerPow, Do(ExtraUpdatesExact(1)) }, From 5cdf6e448321aae2a015cca77e97e63706540c67 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 17:58:43 -0400 Subject: [PATCH 106/258] Graaah Flamethrower is still way too good --- Projectiles/CalamityGlobalProjectileTweaks.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 30062234d7..38a73f041f 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -129,7 +129,6 @@ namespace CalamityMod.Projectiles { ProjectileID.EnchantedBoomerang, Do(ExtraUpdatesExact(1)) }, { ProjectileID.ExplosiveBullet, standardBulletTweaks }, { ProjectileID.Flamarang, Do(ExtraUpdatesExact(2)) }, - { ProjectileID.Flames, Do(IDStaticIFrames(6)) }, // Flamethrower + Elf Melter { ProjectileID.FlamingJack, Do(ExtraUpdatesExact(1)) }, { ProjectileID.FlowerPetal, Do(MaxUpdatesExact(4), LocalIFrames(10)) }, // Orichalcum armor { ProjectileID.FlowerPow, Do(ExtraUpdatesExact(1)) }, From c6117349e46719ff904e9bdddf13652a0e9ec82d Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 18:03:30 -0400 Subject: [PATCH 107/258] Okay never mind I forgot Flamethrower was changed to local iframes --- Projectiles/CalamityGlobalProjectileTweaks.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 38a73f041f..183f2cdb7c 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -129,6 +129,7 @@ namespace CalamityMod.Projectiles { ProjectileID.EnchantedBoomerang, Do(ExtraUpdatesExact(1)) }, { ProjectileID.ExplosiveBullet, standardBulletTweaks }, { ProjectileID.Flamarang, Do(ExtraUpdatesExact(2)) }, + { ProjectileID.Flames, Do(IDStaticIFrames(10)) }, // Flamethrower + Elf Melter { ProjectileID.FlamingJack, Do(ExtraUpdatesExact(1)) }, { ProjectileID.FlowerPetal, Do(MaxUpdatesExact(4), LocalIFrames(10)) }, // Orichalcum armor { ProjectileID.FlowerPow, Do(ExtraUpdatesExact(1)) }, From e8002648c830569b21fbe01d5cb5a4aafa04538d Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 20:23:58 -0400 Subject: [PATCH 108/258] Flarewing Bow balance, including the bat functionality I swear to god if this breaks the mod for the 20th time today --- Items/Weapons/Ranged/FlarewingBow.cs | 8 ++--- Projectiles/Ranged/FlareBat.cs | 48 ++++++++++++++++++---------- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/Items/Weapons/Ranged/FlarewingBow.cs b/Items/Weapons/Ranged/FlarewingBow.cs index 9e88e86d1b..98acdea737 100644 --- a/Items/Weapons/Ranged/FlarewingBow.cs +++ b/Items/Weapons/Ranged/FlarewingBow.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 17; + Item.damage = 28; Item.DamageType = DamageClass.Ranged; Item.width = 40; Item.height = 72; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.UseSound = SoundID.Item5; Item.autoReuse = true; Item.shoot = ProjectileID.WoodenArrowFriendly; - Item.shootSpeed = 16f; + Item.shootSpeed = 20f; Item.useAmmo = AmmoID.Arrow; Item.Calamity().canFirePointBlankShots = true; } @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); float num117 = 0.314159274f; - int num118 = 4; + int num118 = 3; Vector2 vector7 = velocity; vector7.Normalize(); vector7 *= 50f; @@ -70,7 +70,7 @@ namespace CalamityMod.Items.Weapons.Ranged AddIngredient(5). AddIngredient(ItemID.LivingFireBlock, 50). AddIngredient(ItemID.Obsidian, 10). - AddTile(TileID.MythrilAnvil). + AddTile(TileID.Anvils). Register(); } } diff --git a/Projectiles/Ranged/FlareBat.cs b/Projectiles/Ranged/FlareBat.cs index cb08fbbdb3..69a385bc9b 100644 --- a/Projectiles/Ranged/FlareBat.cs +++ b/Projectiles/Ranged/FlareBat.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.height = 24; Projectile.friendly = true; Projectile.DamageType = DamageClass.Ranged; - Projectile.penetrate = 3; + Projectile.penetrate = 2; Projectile.timeLeft = 300; Projectile.light = 0.25f; Projectile.usesLocalNPCImmunity = true; @@ -64,34 +64,48 @@ namespace CalamityMod.Projectiles.Ranged } Projectile.spriteDirection = Projectile.direction = (Projectile.velocity.X > 0).ToDirectionInt(); Projectile.rotation = Projectile.velocity.ToRotation() + (Projectile.spriteDirection == 1 ? 0f : MathHelper.Pi) * Projectile.direction; - } - public override bool OnTileCollide(Vector2 oldVelocity) - { - Projectile.penetrate--; - if (Projectile.penetrate <= 0) + if (Projectile.localAI[0] > 0f) + Projectile.localAI[0]--; + + // Makes the bat home onto enemies after piercing once; this is just the HomeInOnNPC util without the extra update shenanigans + if (Projectile.penetrate == 1 && Projectile.localAI[0] <= 0f) { - Projectile.Kill(); - } - else - { - if (Projectile.velocity.X != oldVelocity.X) + if (!Projectile.friendly) + return; + + Vector2 destination = Projectile.Center; + float maxDistance = 300; + bool locatedTarget = false; + + // Find a target + for (int i = 0; i < Main.maxNPCs; i++) { - Projectile.velocity.X = -oldVelocity.X; + float extraDistance = (Main.npc[i].width / 2) + (Main.npc[i].height / 2); + if (!Main.npc[i].CanBeChasedBy(Projectile, false) || !Projectile.WithinRange(Main.npc[i].Center, maxDistance + extraDistance)) + continue; + + if (Collision.CanHit(Projectile.Center, 1, 1, Main.npc[i].Center, 1, 1)) + { + destination = Main.npc[i].Center; + locatedTarget = true; + break; + } } - if (Projectile.velocity.Y != oldVelocity.Y) + + if (locatedTarget) { - Projectile.velocity.Y = -oldVelocity.Y; + Vector2 homeDirection = (destination - Projectile.Center).SafeNormalize(Vector2.UnitY); + Projectile.velocity = (Projectile.velocity * 20f + homeDirection * 12f) / (20f + 1f); } } - return false; } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(BuffID.OnFire3, 480); - - Projectile.Kill(); + Projectile.localAI[0] = 10f; + Projectile.damage /= 2; } public override void OnHitPlayer(Player target, Player.HurtInfo info) From 86a68ba69295759c2e0fffbf90a3026a8ba18a80 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 20:35:03 -0400 Subject: [PATCH 109/258] Okay it needs the extra update nvm --- Projectiles/Ranged/FlareBat.cs | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/Projectiles/Ranged/FlareBat.cs b/Projectiles/Ranged/FlareBat.cs index 69a385bc9b..666a45c737 100644 --- a/Projectiles/Ranged/FlareBat.cs +++ b/Projectiles/Ranged/FlareBat.cs @@ -68,37 +68,9 @@ namespace CalamityMod.Projectiles.Ranged if (Projectile.localAI[0] > 0f) Projectile.localAI[0]--; - // Makes the bat home onto enemies after piercing once; this is just the HomeInOnNPC util without the extra update shenanigans + // Makes the bat home onto enemies after piercing once if (Projectile.penetrate == 1 && Projectile.localAI[0] <= 0f) - { - if (!Projectile.friendly) - return; - - Vector2 destination = Projectile.Center; - float maxDistance = 300; - bool locatedTarget = false; - - // Find a target - for (int i = 0; i < Main.maxNPCs; i++) - { - float extraDistance = (Main.npc[i].width / 2) + (Main.npc[i].height / 2); - if (!Main.npc[i].CanBeChasedBy(Projectile, false) || !Projectile.WithinRange(Main.npc[i].Center, maxDistance + extraDistance)) - continue; - - if (Collision.CanHit(Projectile.Center, 1, 1, Main.npc[i].Center, 1, 1)) - { - destination = Main.npc[i].Center; - locatedTarget = true; - break; - } - } - - if (locatedTarget) - { - Vector2 homeDirection = (destination - Projectile.Center).SafeNormalize(Vector2.UnitY); - Projectile.velocity = (Projectile.velocity * 20f + homeDirection * 12f) / (20f + 1f); - } - } + CalamityUtils.HomeInOnNPC(Projectile, false, 400f, 12f, 20f); } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) From 45e06d383e7141db9d25068fe9fcd8b70401c621 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 20:47:36 -0400 Subject: [PATCH 110/258] Further Flarewing balance tweaks --- Items/Weapons/Ranged/FlarewingBow.cs | 8 ++++---- Projectiles/Ranged/FlareBat.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Ranged/FlarewingBow.cs b/Items/Weapons/Ranged/FlarewingBow.cs index 98acdea737..dbcb5ab856 100644 --- a/Items/Weapons/Ranged/FlarewingBow.cs +++ b/Items/Weapons/Ranged/FlarewingBow.cs @@ -13,12 +13,12 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 28; + Item.damage = 26; Item.DamageType = DamageClass.Ranged; Item.width = 40; Item.height = 72; - Item.useTime = 30; - Item.useAnimation = 30; + Item.useTime = 41; + Item.useAnimation = 41; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.UseSound = SoundID.Item5; Item.autoReuse = true; Item.shoot = ProjectileID.WoodenArrowFriendly; - Item.shootSpeed = 20f; + Item.shootSpeed = 18f; Item.useAmmo = AmmoID.Arrow; Item.Calamity().canFirePointBlankShots = true; } diff --git a/Projectiles/Ranged/FlareBat.cs b/Projectiles/Ranged/FlareBat.cs index 666a45c737..85ca86d3fa 100644 --- a/Projectiles/Ranged/FlareBat.cs +++ b/Projectiles/Ranged/FlareBat.cs @@ -70,7 +70,7 @@ namespace CalamityMod.Projectiles.Ranged // Makes the bat home onto enemies after piercing once if (Projectile.penetrate == 1 && Projectile.localAI[0] <= 0f) - CalamityUtils.HomeInOnNPC(Projectile, false, 400f, 12f, 20f); + CalamityUtils.HomeInOnNPC(Projectile, false, 500f, 12f, 20f); } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) From 15339d01c14cd938fcb500ac86791bb797d3d283 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 21:04:46 -0400 Subject: [PATCH 111/258] One last damage tweak, it was a bit weak --- Items/Weapons/Ranged/FlarewingBow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/FlarewingBow.cs b/Items/Weapons/Ranged/FlarewingBow.cs index dbcb5ab856..5cde932d3d 100644 --- a/Items/Weapons/Ranged/FlarewingBow.cs +++ b/Items/Weapons/Ranged/FlarewingBow.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 26; + Item.damage = 31; Item.DamageType = DamageClass.Ranged; Item.width = 40; Item.height = 72; From ea047b3861f6e5cedc7013c06c29b222fa562001 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Mon, 28 Aug 2023 21:32:11 -0400 Subject: [PATCH 112/258] Updated Flarewing Bow's tooltip --- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index adedb1f7e7..65e8c606eb 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -475,8 +475,8 @@ FlarewingBow: { DisplayName: Flarewing Bow Tooltip: ''' - Shoots a spread of 4 arrows - Wooden arrows are converted into bouncing obsidian bats + Shoots a spread of 3 arrows + Wooden arrows are converted into obsidian bats which home in after piercing once ''' } @@ -1285,4 +1285,4 @@ WulfrumBlunderbuss: { [c/83B87E:'The good thing about Wulfrum is that while it breaks fast, it can be reused even faster.] [c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.'] ''' -} \ No newline at end of file +} From 0da04c32b113c25576ca493b645d2aceb425a97d Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 28 Aug 2023 21:32:15 -0600 Subject: [PATCH 113/258] You cannot have Flesh Totem's DR trigger while a shield is up --- CalPlayer/CalamityPlayerHitHurt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index e1cc1677dd..3d3b692452 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -746,7 +746,7 @@ namespace CalamityMod.CalPlayer } // Can't have any cooldowns here because dodges grrrrr.... - if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID)) + if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID) && TotalEnergyShielding <= 0) contactDamageReduction += 0.5; if (tarragonCloak && tarraMelee && !Player.HasCooldown(Cooldowns.TarragonCloak.ID)) From 5ed552ae7da0096a1ab7a8d4cb4f07ea47cbec75 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 28 Aug 2023 22:23:56 -0600 Subject: [PATCH 114/258] Absorber nerfs Also ran Ctrl + K + Ctrl + D on CalamityPlayerHitHurt.cs --- CalPlayer/CalamityPlayerHitHurt.cs | 12 ++++++------ CalPlayer/CalamityPlayerMiscEffects.cs | 4 ++-- Items/Accessories/TheAbsorber.cs | 2 +- NPCs/CalamityGlobalNPC.cs | 4 ++-- Projectiles/Healing/AbsorberAura.cs | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 3d3b692452..3fc7d17598 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1157,20 +1157,20 @@ namespace CalamityMod.CalPlayer // As such, to avoid cooldowns proccing from dodge hits, do it here if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID) && hurtInfo.Damage > 0) Player.AddCooldown(Cooldowns.FleshTotem.ID, CalamityUtils.SecondsToFrames(20), true, coreOfTheBloodGod ? "bloodgod" : "default"); + if (NPC.AnyNPCs(ModContent.NPCType())) - { Player.AddBuff(ModContent.BuffType(), 15, true); - } + if (crawCarapace) { - npc.AddBuff(ModContent.BuffType(), 720); + npc.AddBuff(ModContent.BuffType(), 900); SoundEngine.PlaySound(SoundID.NPCHit33 with { Volume = 0.5f }, Player.Center); } if (baroclaw) { - npc.AddBuff(ModContent.BuffType(), 1800); - npc.AddBuff(ModContent.BuffType(), 1800); + npc.AddBuff(ModContent.BuffType(), 900); + npc.AddBuff(ModContent.BuffType(), 900); SoundEngine.PlaySound(BaroclawHit, Player.Center); Vector2 bloodSpawnPosition = Player.Center + Main.rand.NextVector2Circular(Player.width, Player.height) * 0.04f; Vector2 splatterDirection = (Player.Center - bloodSpawnPosition).SafeNormalize(Vector2.UnitY); @@ -1189,7 +1189,7 @@ namespace CalamityMod.CalPlayer if (absorber) { - npc.AddBuff(ModContent.BuffType(), 1800); + npc.AddBuff(ModContent.BuffType(), 900); SoundEngine.PlaySound(AbsorberHit, Player.Center); Vector2 bloodSpawnPosition = Player.Center + Main.rand.NextVector2Circular(Player.width, Player.height) * 0.04f; Vector2 splatterDirection = (Player.Center - bloodSpawnPosition).SafeNormalize(Vector2.UnitY); diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 47dbbaa803..9c195f13ba 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2366,8 +2366,8 @@ namespace CalamityMod.CalPlayer if (AbsorberRegen) { - Player.GetDamage() += 0.1f; - Player.endurance += 0.07f; + Player.GetDamage() += 0.08f; + Player.endurance += 0.05f; } if (crawCarapace) diff --git a/Items/Accessories/TheAbsorber.cs b/Items/Accessories/TheAbsorber.cs index dc8af18d29..87c9f5fe19 100644 --- a/Items/Accessories/TheAbsorber.cs +++ b/Items/Accessories/TheAbsorber.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.defense = 16; + Item.defense = 15; Item.width = 20; Item.height = 24; Item.value = CalamityGlobalItem.Rarity9BuyPrice; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 9899b205ec..1c395f9ad6 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1014,7 +1014,7 @@ namespace CalamityMod.NPCs //Absorber Affliction if (absorberAffliction > 0) { - int baseAbsorberDoTValue = (int)(260 * sicknessDamageMult); + int baseAbsorberDoTValue = (int)(400 * sicknessDamageMult); ApplyDPSDebuff(baseAbsorberDoTValue, baseAbsorberDoTValue / 65, ref npc.lifeRegen, ref damage); } @@ -2690,7 +2690,7 @@ namespace CalamityMod.NPCs if (marked > 0) calcDR *= 0.5f; if (absorberAffliction > 0) - calcDR *= 0.7f; + calcDR *= 0.8f; if (npc.betsysCurse) calcDR *= 0.66f; if (npc.Calamity().kamiFlu > 0) diff --git a/Projectiles/Healing/AbsorberAura.cs b/Projectiles/Healing/AbsorberAura.cs index 252941164e..03c29a479c 100644 --- a/Projectiles/Healing/AbsorberAura.cs +++ b/Projectiles/Healing/AbsorberAura.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Typless //Remove the players debuffs and defense damage, but only once per aura if (targetDist < 232f) { - player.AddBuff(ModContent.BuffType(), 900); + player.AddBuff(ModContent.BuffType(), 600); if (cleanseList[playerIndex] == false) { cleanseList[playerIndex] = true; From 433c99e228ea16155f7d7d124434201d1d30c895 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 28 Aug 2023 22:26:22 -0600 Subject: [PATCH 115/258] I hate localization files --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index b897a532f0..5dcdc865e5 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1730,7 +1730,7 @@ TheAbsorber: { Enemies take immense damage when they touch you and are afflicted with a debuff that reduces damage reduction significantly Using a healing potion will spawn a cleansing aura Walking into the aura removes all debuffs and defense damage one time - The aura grants +3 HP/s life regen, +10% damage, and +7% damage reduction for all players inside for 15 seconds + The aura grants +3 HP/s life regen, +8% damage, and +5% damage reduction for all players inside for 10 seconds 5% of the damage from enemy attacks is absorbed and converted into healing ''' } From 0ea0db4b81400e5c400cc5f79d1a05dc1cf81982 Mon Sep 17 00:00:00 2001 From: Xyk Date: Mon, 28 Aug 2023 21:40:54 -0700 Subject: [PATCH 116/258] Absorber and Baroclaw tooltip fixes Shade didn't change them all --- Localization/en-US/Mods.CalamityMod.Buffs.hjson | 2 +- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 772c052271..d352342248 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1492,7 +1492,7 @@ AbsorberRegen: { Description: ''' You are blessed by the culmimation of nature's powers - Life regen increased by 6, damage increased by 10%, damage reduction increased by 7% + Life regen increased by 6, damage increased by 8%, damage reduction increased by 5% ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 5dcdc865e5..74aacfd921 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -447,7 +447,7 @@ Baroclaw: { Tooltip: ''' 10% increased damage - Enemies that hit you take high damage and are inflicted with Armor Crunch and Crush Depth for a long time + Enemies that hit you take high damage and are inflicted with Armor Crunch and Crush Depth ''' } @@ -1727,7 +1727,7 @@ TheAbsorber: { Tooltip: ''' 10% increased movement and jump speed - Enemies take immense damage when they touch you and are afflicted with a debuff that reduces damage reduction significantly + Enemies take immense damage when they touch you and are afflicted with a damaging sickeness debuff that reduces damage reduction significantly Using a healing potion will spawn a cleansing aura Walking into the aura removes all debuffs and defense damage one time The aura grants +3 HP/s life regen, +8% damage, and +5% damage reduction for all players inside for 10 seconds From 1a1ac19c92a531ef48d7d44de1f4876a846864b7 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Tue, 29 Aug 2023 16:39:09 +0300 Subject: [PATCH 117/258] Elemental Shiv pierce nerf --- Projectiles/Melee/Shortswords/ElementalShivProj.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Melee/Shortswords/ElementalShivProj.cs b/Projectiles/Melee/Shortswords/ElementalShivProj.cs index 653d59d278..5cb34e88a5 100644 --- a/Projectiles/Melee/Shortswords/ElementalShivProj.cs +++ b/Projectiles/Melee/Shortswords/ElementalShivProj.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; @@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords { Projectile.Size = new Vector2(22); Projectile.friendly = true; - Projectile.penetrate = -1; + Projectile.penetrate = 2; Projectile.tileCollide = false; Projectile.scale = 1f; Projectile.DamageType = TrueMeleeDamageClass.Instance; From 88902ae6142b5439dc9456d1f6bc55a1cf403835 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Tue, 29 Aug 2023 16:56:42 +0300 Subject: [PATCH 118/258] Disregard the previous one terraria is confusing --- Projectiles/Melee/Shortswords/ElementalShivProj.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Melee/Shortswords/ElementalShivProj.cs b/Projectiles/Melee/Shortswords/ElementalShivProj.cs index 5cb34e88a5..6c9cb5ee50 100644 --- a/Projectiles/Melee/Shortswords/ElementalShivProj.cs +++ b/Projectiles/Melee/Shortswords/ElementalShivProj.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords { Projectile.Size = new Vector2(22); Projectile.friendly = true; - Projectile.penetrate = 2; + Projectile.penetrate = -1; Projectile.tileCollide = false; Projectile.scale = 1f; Projectile.DamageType = TrueMeleeDamageClass.Instance; From 30e564978911f8022f4d9adcdc595c2695362c4d Mon Sep 17 00:00:00 2001 From: Done2222 Date: Tue, 29 Aug 2023 17:31:23 +0300 Subject: [PATCH 119/258] Elemental Shiv nerfs (hopefully good enough?) --- Items/Weapons/Melee/ElementalShiv.cs | 4 ++-- Projectiles/Melee/Shortswords/ElementalShivProj.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Melee/ElementalShiv.cs b/Items/Weapons/Melee/ElementalShiv.cs index ca8df0a385..8906d0e799 100644 --- a/Items/Weapons/Melee/ElementalShiv.cs +++ b/Items/Weapons/Melee/ElementalShiv.cs @@ -18,8 +18,8 @@ namespace CalamityMod.Items.Weapons.Melee { Item.useStyle = ItemUseStyleID.Rapier; Item.DamageType = DamageClass.Melee; - Item.useAnimation = 10; - Item.useTime = 10; + Item.useAnimation = 14; + Item.useTime = 14; Item.width = 44; Item.height = 44; Item.damage = 190; diff --git a/Projectiles/Melee/Shortswords/ElementalShivProj.cs b/Projectiles/Melee/Shortswords/ElementalShivProj.cs index 6c9cb5ee50..c06b9ca693 100644 --- a/Projectiles/Melee/Shortswords/ElementalShivProj.cs +++ b/Projectiles/Melee/Shortswords/ElementalShivProj.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords public override Action EffectBeforePullback => (proj) => { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 14f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner, 0f, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 14f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.35), Projectile.knockBack, Projectile.owner, 0f, 0f); }; public override void SetVisualOffsets() From 49b269f0e5754dd8bce35eff0a50e12b769fad43 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Tue, 29 Aug 2023 17:51:49 +0300 Subject: [PATCH 120/258] More elemental shiv changes :pray: --- Items/Weapons/Melee/ElementalShiv.cs | 6 +++--- Projectiles/Melee/ElementBallShiv.cs | 2 +- Projectiles/Melee/Shortswords/ElementalShivProj.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Melee/ElementalShiv.cs b/Items/Weapons/Melee/ElementalShiv.cs index 8906d0e799..48bc8943b2 100644 --- a/Items/Weapons/Melee/ElementalShiv.cs +++ b/Items/Weapons/Melee/ElementalShiv.cs @@ -18,11 +18,11 @@ namespace CalamityMod.Items.Weapons.Melee { Item.useStyle = ItemUseStyleID.Rapier; Item.DamageType = DamageClass.Melee; - Item.useAnimation = 14; - Item.useTime = 14; + Item.useAnimation = 10; + Item.useTime = 10; Item.width = 44; Item.height = 44; - Item.damage = 190; + Item.damage = 210; Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Projectiles/Melee/ElementBallShiv.cs b/Projectiles/Melee/ElementBallShiv.cs index 0cb96a955c..09b82dafee 100644 --- a/Projectiles/Melee/ElementBallShiv.cs +++ b/Projectiles/Melee/ElementBallShiv.cs @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Melee private void OnHitEffects(Vector2 targetPos) { var source = Projectile.GetSource_FromThis(); - for (int x = 0; x < 4; x++) + for (int x = 0; x < 3; x++) { if (Projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Melee/Shortswords/ElementalShivProj.cs b/Projectiles/Melee/Shortswords/ElementalShivProj.cs index c06b9ca693..6c9cb5ee50 100644 --- a/Projectiles/Melee/Shortswords/ElementalShivProj.cs +++ b/Projectiles/Melee/Shortswords/ElementalShivProj.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords public override Action EffectBeforePullback => (proj) => { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 14f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.35), Projectile.knockBack, Projectile.owner, 0f, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 14f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner, 0f, 0f); }; public override void SetVisualOffsets() From b4a59e24e06dc23b591e06ce9d796663de880df1 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Tue, 29 Aug 2023 18:39:23 +0300 Subject: [PATCH 121/258] more elemental shiv changes + homing (debugging doesnt work i apologize) --- Items/Weapons/Melee/ElementalShiv.cs | 6 +++--- Projectiles/Melee/SHIV.cs | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Items/Weapons/Melee/ElementalShiv.cs b/Items/Weapons/Melee/ElementalShiv.cs index 48bc8943b2..8a306bcab6 100644 --- a/Items/Weapons/Melee/ElementalShiv.cs +++ b/Items/Weapons/Melee/ElementalShiv.cs @@ -18,11 +18,11 @@ namespace CalamityMod.Items.Weapons.Melee { Item.useStyle = ItemUseStyleID.Rapier; Item.DamageType = DamageClass.Melee; - Item.useAnimation = 10; - Item.useTime = 10; + Item.useAnimation = 13; + Item.useTime = 13; Item.width = 44; Item.height = 44; - Item.damage = 210; + Item.damage = 180; Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Projectiles/Melee/SHIV.cs b/Projectiles/Melee/SHIV.cs index 1e5432ee31..731146ebe4 100644 --- a/Projectiles/Melee/SHIV.cs +++ b/Projectiles/Melee/SHIV.cs @@ -27,10 +27,9 @@ namespace CalamityMod.Projectiles.Melee } public override void AI() - { - if (Projectile.velocity.Length() < 25f && Projectile.timeLeft % 2 == 0) - Projectile.velocity *= 2.08f; - + { + CalamityUtils.HomeInOnNPC(Projectile, true, 300f, 12f, 20f); + int rainbow = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 66, (float)(Projectile.direction * 2), 0f, 150, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1.3f); Main.dust[rainbow].noGravity = true; Main.dust[rainbow].velocity = Vector2.Zero; From 8f245cacb896c6166ac9eef7cf537233dd72c907 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Tue, 29 Aug 2023 18:57:37 +0300 Subject: [PATCH 122/258] elemental shiv velocity fix --- Projectiles/Melee/SHIV.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Projectiles/Melee/SHIV.cs b/Projectiles/Melee/SHIV.cs index 731146ebe4..a19c19fc3c 100644 --- a/Projectiles/Melee/SHIV.cs +++ b/Projectiles/Melee/SHIV.cs @@ -27,7 +27,10 @@ namespace CalamityMod.Projectiles.Melee } public override void AI() - { + { + if (Projectile.velocity.Length() < 25f && Projectile.timeLeft % 2 == 0) + Projectile.velocity *= 2.08f; + CalamityUtils.HomeInOnNPC(Projectile, true, 300f, 12f, 20f); int rainbow = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 66, (float)(Projectile.direction * 2), 0f, 150, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1.3f); From 273c5ad4c4e2b467613f497638cb9a5178653de5 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Tue, 29 Aug 2023 19:03:11 +0300 Subject: [PATCH 123/258] :hollow: --- Projectiles/Melee/ElementBallShiv.cs | 2 +- Projectiles/Melee/SHIV.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Projectiles/Melee/ElementBallShiv.cs b/Projectiles/Melee/ElementBallShiv.cs index 09b82dafee..19f4c7ac75 100644 --- a/Projectiles/Melee/ElementBallShiv.cs +++ b/Projectiles/Melee/ElementBallShiv.cs @@ -63,7 +63,7 @@ namespace CalamityMod.Projectiles.Melee { if (Projectile.owner == Main.myPlayer) { - CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, x > 2, 800f, 800f, 0f, 800f, 1f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, false, 50f); + CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, x > 2, 800f, 800f, 0f, 800f, 20f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, false, 50f); } } } diff --git a/Projectiles/Melee/SHIV.cs b/Projectiles/Melee/SHIV.cs index a19c19fc3c..d940fd634a 100644 --- a/Projectiles/Melee/SHIV.cs +++ b/Projectiles/Melee/SHIV.cs @@ -28,9 +28,6 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { - if (Projectile.velocity.Length() < 25f && Projectile.timeLeft % 2 == 0) - Projectile.velocity *= 2.08f; - CalamityUtils.HomeInOnNPC(Projectile, true, 300f, 12f, 20f); int rainbow = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 66, (float)(Projectile.direction * 2), 0f, 150, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1.3f); From eb10263dc1c0706273732c3fe0715fa51d1ec859 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:04:39 -0400 Subject: [PATCH 124/258] Removed Star Wrath damage nerf, because 1.4.4 nerfed it --- Items/CalamityGlobalItemTweaks.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index ea4b9b8833..99081780c9 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -212,7 +212,6 @@ namespace CalamityMod.Items { ItemID.StakeLauncher, Do(PointBlank, DamageRatio(2f), UseRatio(1.5f)) }, { ItemID.StarCannon, Do(DamageExact(25)) }, { ItemID.StardustDragonStaff, Do(AutoReuse, DamageExact(20), UseExact(19)) }, - { ItemID.StarWrath, Do(DamageRatio(0.9f)) }, { ItemID.StormTigerStaff, Do(AutoReuse, DamageExact(49), UseExact(20)) }, // Desert Tiger Staff { ItemID.StylistKilLaKillScissorsIWish, Do(AutoReuse, UseTurn, DamageExact(18)) }, // Stylish Scissors { ItemID.Swordfish, Do(AutoReuse, TrueMelee, DamageExact(24)) }, From 3087f4c70ce01bc9ab231d695954f9ad8a909c0a Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:33:20 -0400 Subject: [PATCH 125/258] Finishing Elemental Shiv balance --- Items/Weapons/Melee/ElementalShiv.cs | 2 +- Projectiles/Melee/ElementBallShiv.cs | 4 +++- Projectiles/Melee/SHIV.cs | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Melee/ElementalShiv.cs b/Items/Weapons/Melee/ElementalShiv.cs index 8a306bcab6..6ed09153d6 100644 --- a/Items/Weapons/Melee/ElementalShiv.cs +++ b/Items/Weapons/Melee/ElementalShiv.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTime = 13; Item.width = 44; Item.height = 44; - Item.damage = 180; + Item.damage = 190; Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Projectiles/Melee/ElementBallShiv.cs b/Projectiles/Melee/ElementBallShiv.cs index 19f4c7ac75..44d993767d 100644 --- a/Projectiles/Melee/ElementBallShiv.cs +++ b/Projectiles/Melee/ElementBallShiv.cs @@ -14,10 +14,12 @@ namespace CalamityMod.Projectiles.Melee Projectile.height = 20; Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; - Projectile.penetrate = 1; + Projectile.penetrate = 2; Projectile.tileCollide = false; Projectile.timeLeft = 60; Projectile.aiStyle = ProjAIStyleID.Beam; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; } public override void AI() diff --git a/Projectiles/Melee/SHIV.cs b/Projectiles/Melee/SHIV.cs index d940fd634a..2283f9cf48 100644 --- a/Projectiles/Melee/SHIV.cs +++ b/Projectiles/Melee/SHIV.cs @@ -19,11 +19,13 @@ namespace CalamityMod.Projectiles.Melee Projectile.height = 20; Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; - Projectile.penetrate = 1; + Projectile.penetrate = 2; Projectile.tileCollide = false; Projectile.timeLeft = 90; Projectile.aiStyle = ProjAIStyleID.Beam; Projectile.extraUpdates = 1; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; } public override void AI() From bbcf5ed36d42ce3343b00b7e285bd42f3a6043d8 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Tue, 29 Aug 2023 14:59:41 -0400 Subject: [PATCH 126/258] Starlight is now exempt from the pierce resist system --- CalamityLists.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CalamityLists.cs b/CalamityLists.cs index 5439ad99a8..e48f6b1630 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1989,6 +1989,7 @@ namespace CalamityMod ProjectileID.MonkStaffT3, ProjectileID.LastPrismLaser, ProjectileID.ChargedBlasterLaser, + ProjectileID.PiercingStarlight, ProjectileID.FinalFractal, ProjectileType(), ProjectileType(), From c7a340f5a3e6a1f6c9533233a2c2f231cc3013ae Mon Sep 17 00:00:00 2001 From: GinYuH Date: Mon, 28 Aug 2023 22:51:31 -0700 Subject: [PATCH 127/258] made it easier for other mods to add difficulties --- ModSupport/ModCalls.cs | 18 +++++++++ Systems/DifficultyModeSystem.cs | 60 ++++++++++++++++------------- UI/ModeIndicator/ModeIndicatorUI.cs | 4 +- 3 files changed, 53 insertions(+), 29 deletions(-) diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index 90e028304a..19302dcd1e 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -7,6 +7,7 @@ using CalamityMod.Events; using CalamityMod.Items; using CalamityMod.Particles; using CalamityMod.Particles.Metaballs; +using CalamityMod.Systems; using CalamityMod.UI; using CalamityMod.UI.CalamitasEnchants; using CalamityMod.UI.DraedonSummoning; @@ -521,6 +522,13 @@ namespace CalamityMod return CalamityWorld.armageddon = enabled; } } + + public static void AddCustomDifficulty(DifficultyMode newMode) + { + //Add the new difficulty and recalculate + DifficultyModeSystem.Difficulties.Add(newMode); + DifficultyModeSystem.CalculateDifficultyData(); + } #endregion #region Rogue Class @@ -1865,6 +1873,16 @@ namespace CalamityMod return new ArgumentException("ERROR: The first argument to \"SetDifficulty\" must be a string."); return SetDifficultyActive(args[1].ToString(), enabled); + + case "AddDifficultyToUI": + if (args.Length < 2) + return new ArgumentException("ERROR: Not enough arguements provided"); + + if (args[1] is not DifficultyMode mode) + return new ArgumentException("ERROR: A class inheriting from 'DifficultyMode' must be provided."); + AddCustomDifficulty(mode); + return null; + case "GetLight": case "GetLightLevel": case "GetLightStrength": diff --git a/Systems/DifficultyModeSystem.cs b/Systems/DifficultyModeSystem.cs index fa1cdd14f6..b91788d864 100644 --- a/Systems/DifficultyModeSystem.cs +++ b/Systems/DifficultyModeSystem.cs @@ -22,23 +22,51 @@ namespace CalamityMod.Systems { internal static bool _hasCheckedItOutYet = false; //Simple variable to add a cool effect to the mode selector - public static DifficultyMode[] Difficulties; //Difficulty modes ordered by ascending difficulty + public static List Difficulties = new List(); //Difficulty modes ordered by ascending difficulty public static List DifficultyTiers; //Difficulty modes grouped together by difficulty public static int MostAlternateDifficulties; //The most alternate difficulties at any tier that exists. Used to know the widest space to take in the ui public override void Load() { MostAlternateDifficulties = 1; - Difficulties = new DifficultyMode[] { new NoDifficulty(), new RevengeanceDifficulty(), new DeathDifficulty()}; + //Initialize base mod difficulties + Difficulties = new List() { new NoDifficulty(), new RevengeanceDifficulty(), new DeathDifficulty()}; - //All of this should happen after a hook happens which lets other mods add their own difficulties - Difficulties = Difficulties.OrderBy(d => d.DifficultyScale).ToArray(); + CalculateDifficultyData(); + } + public override void Unload() + { + Difficulties = null; + } + + public static DifficultyMode GetCurrentDifficulty + { + get + { + DifficultyMode mode = Difficulties[0]; + + for (int i = 1; i < Difficulties.Count; i++) + { + if (Difficulties[i].Enabled) + mode = Difficulties[i]; + } + + return mode; + } + } + + public static void CalculateDifficultyData() + { + MostAlternateDifficulties = 1; + Difficulties.OrderBy(d => d.DifficultyScale); + + //Difficulties are arranged in "tiers". This is done so that multiple mods can add their own alternate difficulties sharing a tier with the base ones DifficultyTiers = new List(); float currentTier = -1; int tierIndex = -1; - for (int i = 0; i < Difficulties.Length; i++) + for (int i = 0; i < Difficulties.Count; i++) { //if we are at a new tier, create a new list of difficulties at that tier. if (currentTier != Difficulties[i].DifficultyScale) @@ -53,7 +81,6 @@ namespace CalamityMod.Systems { //ugly DifficultyTiers[tierIndex] = DifficultyTiers[tierIndex].Append(Difficulties[i]).ToArray(); - MostAlternateDifficulties = Math.Max(DifficultyTiers[tierIndex].Length, MostAlternateDifficulties); } @@ -61,27 +88,6 @@ namespace CalamityMod.Systems } } - public override void Unload() - { - Difficulties = null; - } - - public static DifficultyMode GetCurrentDifficulty - { - get - { - DifficultyMode mode = Difficulties[0]; - - for (int i = 1; i < Difficulties.Length; i++) - { - if (Difficulties[i].Enabled) - mode = Difficulties[i]; - } - - return mode; - } - } - public override void SaveWorldData(TagCompound tag) { //Apparently this is ran after worldgen so it cant always be set to true diff --git a/UI/ModeIndicator/ModeIndicatorUI.cs b/UI/ModeIndicator/ModeIndicatorUI.cs index 90c6b4b05d..723f75b573 100644 --- a/UI/ModeIndicator/ModeIndicatorUI.cs +++ b/UI/ModeIndicator/ModeIndicatorUI.cs @@ -210,7 +210,7 @@ namespace CalamityMod.UI.ModeIndicator string modeToDisplay = Difficulties[1].Name.ToString(); bool anyActiveMode = false; - for (int i = 1; i < Difficulties.Length; i++) + for (int i = 1; i < Difficulties.Count; i++) { if (GetCurrentDifficulty == Difficulties[i]) { @@ -406,7 +406,7 @@ namespace CalamityMod.UI.ModeIndicator // But would be super useful so other mods can let their own difficulties go there. // Disable difficulties. - for (int i = 0; i < Difficulties.Length; i++) + for (int i = 0; i < Difficulties.Count; i++) { // Disable all difficulties at the same tier / at a tier above itself. if (Difficulties[i]._difficultyTier >= mode._difficultyTier && Difficulties[i] != mode) From 2f6af2261fb2389229334836a90b09bd353eb091 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Tue, 29 Aug 2023 15:07:08 -0400 Subject: [PATCH 128/258] Added Ballistic Poison Bomb clouds and Duststorm in a Bottle to the pierce resist exception list --- CalamityLists.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CalamityLists.cs b/CalamityLists.cs index e48f6b1630..77d91932d9 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -2038,6 +2038,8 @@ namespace CalamityMod ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), + ProjectileType(), }; // Lists of enemies that resist piercing to some extent (mostly worms). From 2401b30db93e85d1937a7eda3d63180f7d193bf0 Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Sat, 26 Aug 2023 00:40:32 +0200 Subject: [PATCH 129/258] Reworked Snake Eyes (Missing tooltip). --- Items/Weapons/DraedonsArsenal/SnakeEyes.cs | 19 +- .../Mods.CalamityMod.Projectiles.Misc.hjson | 3 +- .../DraedonsArsenal/SnakeEyesProjectile.cs | 198 +++++++++ .../DraedonsArsenal/SnakeEyesSummon.cs | 382 +++++++++--------- 4 files changed, 399 insertions(+), 203 deletions(-) create mode 100644 Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs diff --git a/Items/Weapons/DraedonsArsenal/SnakeEyes.cs b/Items/Weapons/DraedonsArsenal/SnakeEyes.cs index 4085c57b49..13d1938b35 100644 --- a/Items/Weapons/DraedonsArsenal/SnakeEyes.cs +++ b/Items/Weapons/DraedonsArsenal/SnakeEyes.cs @@ -15,12 +15,16 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public class SnakeEyes : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; + + public static float EnemyDistanceDetection = 2000f; + public static float TimeToShoot = 30f; + public static float ProjectileSpeed = 40f; + public static float TimeToRedirect = 15f; + public static float TimeToRestart = 45f; + public override void SetDefaults() { - CalamityGlobalItem modItem = Item.Calamity(); - - Item.shootSpeed = 10f; - Item.damage = 65; + Item.damage = 200; Item.mana = 12; Item.width = 38; Item.height = 24; @@ -35,9 +39,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = SoundID.Item15; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 10f; Item.DamageType = DamageClass.Summon; + CalamityGlobalItem modItem = Item.Calamity(); modItem.UsesCharge = true; modItem.MaxCharge = 190f; modItem.ChargePerUse = 1f; @@ -46,10 +50,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - int watcher = Projectile.NewProjectile(source, Main.MouseWorld, Vector2.Zero, type, damage, knockback, player.whoAmI); - if (Main.projectile.IndexInRange(watcher)) - Main.projectile[watcher].originalDamage = Item.damage; - + Projectile.NewProjectile(source, Main.MouseWorld, Vector2.Zero, type, damage, knockback, player.whoAmI); return false; } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson index 0ba4bae953..304236fe2f 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson @@ -70,4 +70,5 @@ PlagueExplosionGas.DisplayName: Plague Gas PlagueShot.DisplayName: Plague Shot PlagueShotBuffer.DisplayName: Plague Shot WaterShot.DisplayName: Water Shot -WaterShotBuffer.DisplayName: Water Shot \ No newline at end of file +WaterShotBuffer.DisplayName: Water Shot +SnakeEyesProjectile.DisplayName: Snake Eyes Projectile \ No newline at end of file diff --git a/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs b/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs new file mode 100644 index 0000000000..f4f3166b21 --- /dev/null +++ b/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs @@ -0,0 +1,198 @@ +using System; +using System.IO; +using CalamityMod.Items.Weapons.DraedonsArsenal; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.Graphics.Shaders; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.DraedonsArsenal +{ + public class SnakeEyesProjectile : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Misc"; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + + public Player Owner => Main.player[Projectile.owner]; + public NPC TargetShot => Main.npc[(int)TargetID]; + public NPC Target => Projectile.Center.MinionHoming(SnakeEyes.EnemyDistanceDetection, Owner); + + public ref float MinionID => ref Projectile.ai[0]; + public ref float TargetID => ref Projectile.ai[1]; + public ref float TimerToRedirect => ref Projectile.ai[2]; + + public bool HasHitEnemy = false; + public bool HasRedirected = false; + + public override void SetStaticDefaults() + { + ProjectileID.Sets.MinionShot[Type] = true; + + // While this projectile doesn't have afterimages, it keeps track of old positions for its primitive drawcode. + ProjectileID.Sets.TrailingMode[Type] = 2; + ProjectileID.Sets.TrailCacheLength[Type] = 6; + } + + public override void SetDefaults() + { + Projectile.DamageType = DamageClass.Summon; + Projectile.localNPCHitCooldown = 10; + Projectile.width = Projectile.height = 16; + Projectile.timeLeft = 120; + Projectile.penetrate = -1; + + Projectile.friendly = true; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.usesLocalNPCImmunity = true; + Projectile.netImportant = true; + } + + #region Variable Syncing + + public override void SendExtraAI(BinaryWriter writer) + { + writer.Write(HasHitEnemy); + writer.Write(HasRedirected); + } + + public override void ReceiveExtraAI(BinaryReader reader) + { + HasHitEnemy = reader.ReadBoolean(); + HasRedirected = reader.ReadBoolean(); + } + + #endregion + + public override void AI() + { + if (HasHitEnemy && TimerToRedirect < SnakeEyes.TimeToRedirect) + TimerToRedirect++; + + if (TimerToRedirect >= SnakeEyes.TimeToRedirect && !HasRedirected) + { + if (TargetShot is not null) + TargetEnemy(TargetShot); + else if (Target is not null) + TargetEnemy(Target); + } + + if (HasRedirected) + { + if (TargetShot is not null) + FollowEnemy(TargetShot); + else if (Target is not null) + FollowEnemy(Target); + else + Projectile.Kill(); + + Projectile.timeLeft = 2; + } + + for (int i = 0; i < 2; i++) + { + Dust trailDust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, HasRedirected ? 261 : 226, Scale : HasRedirected ? 2f : .5f); + trailDust.velocity = Vector2.Zero; + trailDust.noGravity = true; + } + } + + #region AI Methods + + private void TargetEnemy(NPC target) + { + Projectile.velocity = Projectile.SafeDirectionTo(target.Center) * SnakeEyes.ProjectileSpeed; + HasRedirected = true; + + SoundEngine.PlaySound(SoundID.Item92 with { Volume = .8f, Pitch = .5f, PitchVariance = .1f }, Projectile.Center); + + Projectile.netUpdate = true; + } + + private void FollowEnemy(NPC target) + { + Projectile.velocity = Vector2.Lerp(Projectile.velocity, Projectile.SafeDirectionTo(target.Center) * SnakeEyes.ProjectileSpeed, .2f); + } + + #endregion + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + HasHitEnemy = true; + + if (HasRedirected && TargetShot == target) + Projectile.Kill(); + } + + public override void Kill(int timeLeft) + { + if (!HasRedirected) + return; + + Projectile.ExpandHitboxBy(300); + Projectile.Damage(); + + for (int i = 0; i < 20; i++) + { + Dust boomDust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 261, Scale: 2f); + boomDust.noGravity = true; + } + + Particle boom = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Color.White, Vector2.One, 0f, 0.05f, 1f + Main.rand.NextFloat(0.2f), 20); + GeneralParticleHandler.SpawnParticle(boom); + + SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); + } + + #region Shader Trail Methods + + private float PrimitiveWidthFunction(float completionRatio) + { + float arrowheadCutoff = 0.36f; + float width = 39f; + float minHeadWidth = 0.02f; + float maxHeadWidth = width; + if (completionRatio <= arrowheadCutoff) + width = MathHelper.Lerp(minHeadWidth, maxHeadWidth, Utils.GetLerpValue(0f, arrowheadCutoff, completionRatio, true)); + return width; + } + + private Color PrimitiveColorFunction(float completionRatio) + { + float endFadeRatio = 0.41f; + + float completionRatioFactor = 2.7f; + float globalTimeFactor = 5.3f; + float endFadeFactor = 3.2f; + float endFadeTerm = Utils.GetLerpValue(0f, endFadeRatio * 0.5f, completionRatio, true) * endFadeFactor; + float cosArgument = completionRatio * completionRatioFactor - Main.GlobalTimeWrappedHourly * globalTimeFactor + endFadeTerm; + float startingInterpolant = (float)Math.Cos(cosArgument) * 0.5f + 0.5f; + + float colorLerpFactor = 0.6f; + Color startingColor = Color.Lerp(HasRedirected ? Color.White with { A = 50 } : new Color(0, 0, 0, 0), HasRedirected ? Color.White with { A = 100 } : Color.Cyan with { A = 25 }, startingInterpolant * colorLerpFactor); + + return Color.Lerp(startingColor, HasRedirected ? Color.White : Color.DarkCyan with { A = 50 }, MathHelper.SmoothStep(0f, 1f, Utils.GetLerpValue(0f, endFadeRatio, completionRatio, true))); + } + + #endregion + + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + Vector2 origin = frame.Size() * 0.5f; + Main.EntitySpriteDraw(texture, drawPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + + PrimitiveTrail trail = new PrimitiveTrail(PrimitiveWidthFunction, PrimitiveColorFunction, specialShader: GameShaders.Misc["CalamityMod:TrailStreak"]); + GameShaders.Misc["CalamityMod:TrailStreak"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/Trails/FabstaffStreak")); + trail.Draw(Projectile.oldPos, Projectile.Size * 0.5f - Main.screenPosition, 92); + + return false; + } + } +} diff --git a/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs b/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs index d210a36699..9d9d6bd098 100644 --- a/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs +++ b/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs @@ -1,260 +1,256 @@ -using CalamityMod.Buffs.Summon; +using System; +using CalamityMod.Buffs.Summon; +using CalamityMod.CalPlayer; +using CalamityMod.Items.Weapons.DraedonsArsenal; +using CalamityMod.Particles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using System; -using System.IO; using Terraria; +using Terraria.Audio; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.Projectiles.DraedonsArsenal { public class SnakeEyesSummon : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Misc"; - public bool SufferingFromSeparationAnxiety = false; - public Vector2 OldCenter; - public Vector2 Destination; - public float Time + public Player Owner => Main.player[Projectile.owner]; + public CalamityPlayer ModdedOwner => Owner.Calamity(); + public NPC Target => Owner.Center.MinionHoming(2000f, Owner); + + public enum AIState { - get => Projectile.ai[0]; - set => Projectile.ai[0] = value; + Idle, + Targetting, + Redirecting } + public AIState State + { + get => (AIState)Projectile.ai[0]; + set => Projectile.ai[0] = (int)value; + } + public ref float AITimer => ref Projectile.ai[1]; + public ref float EyeAngle => ref Projectile.localAI[0]; + public ref float EyeOutwardness => ref Projectile.localAI[1]; - public float EyeOutwardness = 1f; - public float EyeRotation = 0f; + public bool HasShot = false; + public bool HasTeleported = false; + public Vector2 RandomPosition; public override void SetStaticDefaults() { - ProjectileID.Sets.MinionSacrificable[Projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[Projectile.type] = true; - ProjectileID.Sets.TrailingMode[Projectile.type] = 0; - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4; + ProjectileID.Sets.MinionSacrificable[Type] = true; + ProjectileID.Sets.MinionTargettingFeature[Type] = true; } public override void SetDefaults() { + Projectile.DamageType = DamageClass.Summon; + Projectile.minionSlots = 1f; Projectile.width = Projectile.height = 22; - Projectile.netImportant = true; - Projectile.friendly = true; - Projectile.minionSlots = 1; - Projectile.timeLeft = 18000; Projectile.penetrate = -1; - Projectile.timeLeft *= 5; + + Projectile.friendly = true; Projectile.minion = true; Projectile.tileCollide = false; - Projectile.DamageType = DamageClass.Summon; - } - - public override void SendExtraAI(BinaryWriter writer) - { - writer.Write(SufferingFromSeparationAnxiety); - writer.Write(EyeOutwardness); - writer.Write(EyeRotation); - writer.WriteVector2(OldCenter); - writer.WriteVector2(Destination); - } - public override void ReceiveExtraAI(BinaryReader reader) - { - SufferingFromSeparationAnxiety = reader.ReadBoolean(); - EyeOutwardness = reader.ReadSingle(); - EyeRotation = reader.ReadSingle(); - OldCenter = reader.ReadVector2(); - Destination = reader.ReadVector2(); + Projectile.netImportant = true; } public override void AI() { - Player player = Main.player[Projectile.owner]; - if (Projectile.localAI[0] == 0f) + // Checks if the minion can still exist given the player's circumstance. + CheckMinionExistence(); + + // The minion does not use velocity at all, so to prevent AI breaks, velocity will always be 0. + Projectile.velocity = Vector2.Zero; + + // The properties of the minion's pupil, it looks around the target if there's one and to the mouse if there isn't any. + EyeAngle = Projectile.SafeDirectionTo((Target is not null) ? Target.Center : Main.MouseWorld).ToRotation(); + EyeOutwardness = Utils.Remap(Projectile.Distance((Target is not null) ? Target.Center : Main.MouseWorld), 0f, 300f, 0f, 5f); + + // Random flavor pulse. + if (Main.rand.NextBool(100)) { - Initialize(player); - Projectile.localAI[0] = 1f; + Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Color.DarkCyan, Vector2.One, 0f, 0.05f, 0.4f + Main.rand.NextFloat(0.2f), 30); + GeneralParticleHandler.SpawnParticle(pulse); } - GrantBuffs(player); - NPC potentialTarget = Projectile.Center.MinionHoming(820f, player); - if (potentialTarget == null || SufferingFromSeparationAnxiety) + + switch (State) { - Projectile.ai[1] = 0f; - if (Projectile.localAI[1] == 1f) + case AIState.Idle: + IdleState(); + break; + case AIState.Targetting: + TargettingState(); + break; + case AIState.Redirecting: + RedirectingState(); + break; + } + } + + #region AI Methods + + private void IdleState() + { + // The projectile oscillates in place. + Projectile.Center += Vector2.UnitY * MathF.Sin(Main.GlobalTimeWrappedHourly) / 3f; + + // If the player's far enough from the minion, he'll teleport somewhere around the player. + if (!Projectile.WithinRange(Owner.Center, 400f)) + { + Projectile.Center = Owner.Center + Main.rand.NextVector2Circular(300f, 300f); + DoVFXPulse(); + } + + if (Target is not null) + SwitchAIState(AIState.Targetting); + } + + private void TargettingState() + { + if (Target is not null) + { + // The minion decides a random position around the target. + if (!HasTeleported) { - Time = 0f; - Projectile.localAI[1] = 0f; + RandomPosition = Target.Center + Main.rand.NextVector2CircularEdge(400f, 400f); + Projectile.Center = RandomPosition; + + DoVFXPulse(); + + HasTeleported = true; + Projectile.netUpdate = true; + } + + else + { + // The projectile will stay on that position. + Projectile.Center = RandomPosition; + + // When the delay is over, shoot at the target. + if (!HasShot && AITimer >= SnakeEyes.TimeToShoot) + ShootProjectile(); + + // When the minion has shot, when the projectile redirects towards the target, + // the minion will teleport on that moment on top of the projectile, + // so it looks like the minion deflected his own projectile. + if (HasShot) + { + for (int i = 0; i < Main.maxProjectiles; i++) + { + Projectile proj = Main.projectile[i]; + if (proj is not null && proj.active && proj.type == ModContent.ProjectileType() && proj.owner == Owner.whoAmI && proj.ModProjectile().MinionID == Projectile.whoAmI && proj.ModProjectile().HasRedirected) + { + Projectile.Center = proj.Center; + SwitchAIState(AIState.Redirecting); + } + } + } + + // If the projectile failed to hit it's enemy and therefore couldn't deflect, + // repeat this process. + if (AITimer >= SnakeEyes.TimeToShoot + 120f) + SwitchAIState(AIState.Targetting); + + AITimer++; } - PlayerMovement(player); } else + SwitchAIState(AIState.Idle); + } + + private void ShootProjectile() + { + if (Main.myPlayer == Projectile.owner) { - if (Projectile.localAI[1] == 0f) - { - Time = 0f; - Projectile.localAI[1] = 1f; - } - NPCMovement(potentialTarget); - } - if (!SufferingFromSeparationAnxiety && Projectile.Distance(player.Center) > (potentialTarget is null ? 360f : 1800f)) - { - SufferingFromSeparationAnxiety = true; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, CalamityUtils.CalculatePredictiveAimToTarget(Projectile.Center, Target, SnakeEyes.ProjectileSpeed), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Owner.whoAmI, Projectile.whoAmI, Target.whoAmI); + + DoVFXPulse(); + + SoundEngine.PlaySound(SoundID.Item91 with { Volume = .8f, Pitch = .5f, PitchVariance = .1f }, Projectile.Center); + + HasShot = true; Projectile.netUpdate = true; } - else if (SufferingFromSeparationAnxiety && Projectile.Distance(player.Center) < (potentialTarget is null ? 10f : 120f)) - { - SufferingFromSeparationAnxiety = false; - Projectile.netUpdate = true; - } - if (!Main.dedServ) - { - GenerateAfterimageDust(); - } - Time++; } - public void Initialize(Player player) + private void RedirectingState() { - Destination = Projectile.Center - Vector2.UnitY * 180f; - for (int i = 0; i < 45; i++) + if (Target is not null) { - float angle = MathHelper.TwoPi / 45f * i; - Vector2 velocity = angle.ToRotationVector2() * 4f; - Dust dust = Dust.NewDustPerfect(Projectile.Center + velocity * 2.75f, 39, velocity); - dust.noGravity = true; + // The projectile will idle on the spot where he "deflected" the projectile to restart the process. + if (AITimer < SnakeEyes.TimeToRestart) + AITimer++; + else + SwitchAIState(AIState.Targetting); } + else + SwitchAIState(AIState.Idle); } - public void GrantBuffs(Player player) + private void SwitchAIState(AIState state) { - bool isCorrectProjectile = Projectile.type == ModContent.ProjectileType(); - player.AddBuff(ModContent.BuffType(), 3600); - if (isCorrectProjectile) - { - if (player.dead) - { - player.Calamity().snakeEyes = false; - } - if (player.Calamity().snakeEyes) - { - Projectile.timeLeft = 2; - } - } + State = state; + + AITimer = 0f; + HasTeleported = false; + HasShot = false; + RandomPosition = Vector2.Zero; + + DoVFXPulse(state == AIState.Redirecting); + + Projectile.netUpdate = true; } - public void PlayerMovement(Player player) + private void CheckMinionExistence() { - Projectile.velocity = Vector2.Zero; - if (!SufferingFromSeparationAnxiety) - { - Projectile.Center = player.Center - Vector2.UnitY * (80f + (float)Math.Sin(Time / 120f * MathHelper.TwoPi) * 30f); - EyeOutwardness = MathHelper.Lerp(EyeOutwardness, 0f, 0.15f); + Owner.AddBuff(ModContent.BuffType(), 2); + if (Type != ModContent.ProjectileType()) return; - } - if (Time % 150f == 0f) - { - OldCenter = Projectile.Center; - } - else if (Time % 150f <= 35f) - { - EyeRotation = Projectile.AngleTo(player.Center); - EyeOutwardness = MathHelper.Lerp(EyeOutwardness, 1f, 0.15f); - Projectile.Center = Vector2.SmoothStep(OldCenter, player.Center - Vector2.UnitY * 80f, Utils.GetLerpValue(0f, 35f, Time % 150f)); - } - else - { - Projectile.Center = player.Center - Vector2.UnitY * (80f + (float)Math.Sin((Time % 150f - 35f) / 115f * MathHelper.TwoPi) * 30f); - } - EyeOutwardness = MathHelper.Lerp(EyeOutwardness, 0f, 0.15f); + + if (Owner.dead) + ModdedOwner.snakeEyes = false; + if (ModdedOwner.snakeEyes) + Projectile.timeLeft = 2; } - public void NPCMovement(NPC npc) + private void DoVFXPulse(bool empowered = false) { - Projectile.velocity = Vector2.Zero; - Vector2 offsetMultiplier = Vector2.UnitX; - switch ((int)Projectile.ai[1] % 4) + int dustAmount = 40; + for (int dustIndex = 0; dustIndex < dustAmount; dustIndex++) { - case 0: - offsetMultiplier = new Vector2(-1f, -1f); - break; - case 1: - offsetMultiplier = new Vector2(-1f, 1f); - break; - case 2: - offsetMultiplier = new Vector2(1f, 1f); - break; - case 3: - offsetMultiplier = new Vector2(1f, -1f); - break; - } - if (Time % 20f == 0f) - { - if (Projectile.ai[1] > 0 && Main.myPlayer == Projectile.owner) - { - Vector2 shootPosition = Projectile.Center + Utils.Vector2FromElipse(EyeRotation.ToRotationVector2(), Projectile.Size * 0.5f * EyeOutwardness); - Vector2 shootVelocity = Projectile.SafeDirectionTo(npc.Center, Main.rand.NextVector2Unit()) * 4f; - int laser = Projectile.NewProjectile(Projectile.GetSource_FromThis(), shootPosition, shootVelocity, ProjectileID.UFOLaser, Projectile.damage, Projectile.knockBack, Projectile.owner); - if (laser.WithinBounds(Main.maxProjectiles)) - { - Main.projectile[laser].timeLeft *= 2; - Main.projectile[laser].originalDamage = Projectile.originalDamage; - Main.projectile[laser].tileCollide = false; - Main.projectile[laser].netUpdate = true; - Main.projectile[laser].DamageType = DamageClass.Summon; - } - } - Projectile.ai[1]++; - OldCenter = Projectile.Center; - } - else - { - EyeOutwardness = MathHelper.Lerp(EyeOutwardness, 1f, 0.15f); - EyeRotation = EyeRotation.AngleTowards(Projectile.AngleTo(npc.Center), MathHelper.TwoPi / 20f); - Projectile.Center = Vector2.SmoothStep(OldCenter, npc.Center + (new Vector2(300f) + Projectile.Size * 0.5f) * offsetMultiplier, Time % 20f / 20f); + float angle = MathHelper.TwoPi / dustAmount * dustIndex; + Vector2 velocity = angle.ToRotationVector2() * 9f; + Dust pulseDust = Dust.NewDustPerfect(Projectile.Center, empowered ? 261 : 226, velocity, Scale: empowered ? 2f : .5f); + pulseDust.noGravity = true; } + + Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, empowered ? Color.White : Color.DarkCyan * 1.2f, Vector2.One, 0f, 0.05f, 0.5f + Main.rand.NextFloat(0.2f), 20); + GeneralParticleHandler.SpawnParticle(pulse); } - public void GenerateAfterimageDust() - { - for (int i = 1; i < Projectile.oldPos.Length; i++) - { - if (i == 1) - { - for (int j = 0; j < 14; j++) - { - Dust dust = Dust.NewDustPerfect(Projectile.Center, 261); - dust.position += (j / 14f * MathHelper.TwoPi).ToRotationVector2() * Projectile.Size * 0.5f * 1.3f; - dust.velocity = Vector2.Zero; - dust.scale = 0.6f; - dust.noGravity = true; - } - } - if (Vector2.Distance(Projectile.oldPos[i - 1], Projectile.oldPos[i]) > 3f) - { - for (int j = 0; j < 7; j++) - { - Dust dust = Dust.NewDustPerfect(Projectile.oldPos[i] + Projectile.Size * 0.5f, 261); - dust.position += (j / 7f * MathHelper.TwoPi).ToRotationVector2() * ((Projectile.oldPos.Length - i) * 1.2f + 3f); - dust.velocity = Vector2.Zero; - dust.scale = 0.6f; - dust.noGravity = true; - } - } - } - } + #endregion + + public override void OnSpawn(IEntitySource source) => DoVFXPulse(); public override bool? CanDamage() => false; public override bool PreDraw(ref Color lightColor) { - CalamityUtils.DrawAfterimagesCentered(Projectile, 0, Color.White, ProjectileID.Sets.TrailCacheLength[Projectile.type]); + Texture2D texture = ModContent.Request(Texture).Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + Vector2 origin = frame.Size() * 0.5f; + Main.EntitySpriteDraw(texture, drawPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + Texture2D eyeTexture = ModContent.Request("CalamityMod/Projectiles/DraedonsArsenal/SnakeEye").Value; - Vector2 offsetVector = Utils.Vector2FromElipse(EyeRotation.ToRotationVector2(), Projectile.Size * 0.5f * EyeOutwardness); - Main.EntitySpriteDraw(eyeTexture, - Projectile.Center + offsetVector - Main.screenPosition, - null, - Color.White, - 0f, - eyeTexture.Size() * 0.5f, - 1f, - SpriteEffects.None, - 0); + Vector2 eyeDrawPosition = Projectile.Center - Main.screenPosition + EyeAngle.ToRotationVector2() * EyeOutwardness; + Main.EntitySpriteDraw(eyeTexture, eyeDrawPosition, null, Color.White, 0f, eyeTexture.Size() * 0.5f, 1f, SpriteEffects.None, 0); + return false; } } From 3457afbdac80cd495b30a23de265fa7853eeae1c Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Tue, 29 Aug 2023 20:00:35 +0200 Subject: [PATCH 130/258] Final touch-ups to Snake Eyes. --- Items/Weapons/DraedonsArsenal/SnakeEyes.cs | 6 +++--- ...ityMod.Items.Weapons.DraedonsArsenal.hjson | 5 ++++- .../Mods.CalamityMod.Projectiles.Misc.hjson | 4 ++-- .../DraedonsArsenal/SnakeEyesProjectile.cs | 8 ++++---- .../DraedonsArsenal/SnakeEyesSummon.cs | 20 +++++++++---------- 5 files changed, 23 insertions(+), 20 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/SnakeEyes.cs b/Items/Weapons/DraedonsArsenal/SnakeEyes.cs index 13d1938b35..7d171cf708 100644 --- a/Items/Weapons/DraedonsArsenal/SnakeEyes.cs +++ b/Items/Weapons/DraedonsArsenal/SnakeEyes.cs @@ -1,10 +1,10 @@ -using CalamityMod.CustomRecipes; +using System; +using System.Collections.Generic; +using CalamityMod.CustomRecipes; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.DraedonsArsenal; using CalamityMod.Rarities; using Microsoft.Xna.Framework; -using System; -using System.Collections.Generic; using Terraria; using Terraria.DataStructures; using Terraria.ID; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson index 879b58bb79..e536965bed 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson @@ -164,7 +164,10 @@ SnakeEyes: { DisplayName: Snake Eyes Tooltip: ''' - Summons a mechanical surveillance drone that flies around enemies and mercilessly zaps them with electricity + Summons magnetic orbs to shred your foes with intense polarized energy + The orb will fire a single piercing beam that travels towards enemies + If the beam hits, the orb will teleport and deflect the projectile back + The deflected beam homes into enemies rapidly and explodes on impact [c/1FFBFF:'Equipped with high-end sensors, little can evade them. Even less are able to escape their ever watchful eyes.] [c/1FFBFF:An excellent bridge between my experiments with the sight-based soul powered machines and my latest project.'] ''' diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson index 304236fe2f..0c5b855b66 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson @@ -45,6 +45,7 @@ UnstableMatter.DisplayName: Unstable Matter VoltageStream.DisplayName: Voltage Stream WavePounderBoom.DisplayName: Explosion WavePounderProjectile.DisplayName: Wave Pounder +SnakeEyesProjectile.DisplayName: Snake Eyes' Beam // Environmental AcidDrop.DisplayName: Acid BrimstoneGeyser.DisplayName: Smoke @@ -70,5 +71,4 @@ PlagueExplosionGas.DisplayName: Plague Gas PlagueShot.DisplayName: Plague Shot PlagueShotBuffer.DisplayName: Plague Shot WaterShot.DisplayName: Water Shot -WaterShotBuffer.DisplayName: Water Shot -SnakeEyesProjectile.DisplayName: Snake Eyes Projectile \ No newline at end of file +WaterShotBuffer.DisplayName: Water Shot \ No newline at end of file diff --git a/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs b/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs index f4f3166b21..2675611ef2 100644 --- a/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs +++ b/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public override void SetStaticDefaults() { ProjectileID.Sets.MinionShot[Type] = true; - + // While this projectile doesn't have afterimages, it keeps track of old positions for its primitive drawcode. ProjectileID.Sets.TrailingMode[Type] = 2; ProjectileID.Sets.TrailCacheLength[Type] = 6; @@ -92,10 +92,10 @@ namespace CalamityMod.Projectiles.DraedonsArsenal Projectile.timeLeft = 2; } - + for (int i = 0; i < 2; i++) { - Dust trailDust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, HasRedirected ? 261 : 226, Scale : HasRedirected ? 2f : .5f); + Dust trailDust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, HasRedirected ? 261 : 226, Scale: HasRedirected ? 2f : .5f); trailDust.velocity = Vector2.Zero; trailDust.noGravity = true; } @@ -132,7 +132,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal { if (!HasRedirected) return; - + Projectile.ExpandHitboxBy(300); Projectile.Damage(); diff --git a/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs b/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs index 9d9d6bd098..a789a53b17 100644 --- a/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs +++ b/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public Player Owner => Main.player[Projectile.owner]; public CalamityPlayer ModdedOwner => Owner.Calamity(); - public NPC Target => Owner.Center.MinionHoming(2000f, Owner); + public NPC Target => Owner.Center.MinionHoming(SnakeEyes.EnemyDistanceDetection, Owner); public enum AIState { @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal Projectile.minionSlots = 1f; Projectile.width = Projectile.height = 22; Projectile.penetrate = -1; - + Projectile.friendly = true; Projectile.minion = true; Projectile.tileCollide = false; @@ -64,9 +64,6 @@ namespace CalamityMod.Projectiles.DraedonsArsenal // Checks if the minion can still exist given the player's circumstance. CheckMinionExistence(); - // The minion does not use velocity at all, so to prevent AI breaks, velocity will always be 0. - Projectile.velocity = Vector2.Zero; - // The properties of the minion's pupil, it looks around the target if there's one and to the mouse if there isn't any. EyeAngle = Projectile.SafeDirectionTo((Target is not null) ? Target.Center : Main.MouseWorld).ToRotation(); EyeOutwardness = Utils.Remap(Projectile.Distance((Target is not null) ? Target.Center : Main.MouseWorld), 0f, 300f, 0f, 5f); @@ -96,16 +93,18 @@ namespace CalamityMod.Projectiles.DraedonsArsenal private void IdleState() { + AITimer += .01f; + // The projectile oscillates in place. - Projectile.Center += Vector2.UnitY * MathF.Sin(Main.GlobalTimeWrappedHourly) / 3f; - + Projectile.velocity.Y -= MathF.Cos(AITimer) / 350f; + // If the player's far enough from the minion, he'll teleport somewhere around the player. if (!Projectile.WithinRange(Owner.Center, 400f)) { Projectile.Center = Owner.Center + Main.rand.NextVector2Circular(300f, 300f); DoVFXPulse(); } - + if (Target is not null) SwitchAIState(AIState.Targetting); } @@ -172,7 +171,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal DoVFXPulse(); SoundEngine.PlaySound(SoundID.Item91 with { Volume = .8f, Pitch = .5f, PitchVariance = .1f }, Projectile.Center); - + HasShot = true; Projectile.netUpdate = true; } @@ -195,12 +194,13 @@ namespace CalamityMod.Projectiles.DraedonsArsenal private void SwitchAIState(AIState state) { State = state; - AITimer = 0f; HasTeleported = false; HasShot = false; RandomPosition = Vector2.Zero; + Projectile.velocity = Vector2.Zero; + DoVFXPulse(state == AIState.Redirecting); Projectile.netUpdate = true; From 759e273e9e6dfb641e1af0996a7d7106cf3c9765 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 29 Aug 2023 15:11:20 -0400 Subject: [PATCH 131/258] improved snake eyes tooltip --- .../Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson | 7 +++---- Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson index e536965bed..2330fb0490 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson @@ -164,10 +164,9 @@ SnakeEyes: { DisplayName: Snake Eyes Tooltip: ''' - Summons magnetic orbs to shred your foes with intense polarized energy - The orb will fire a single piercing beam that travels towards enemies - If the beam hits, the orb will teleport and deflect the projectile back - The deflected beam homes into enemies rapidly and explodes on impact + Summons a levitating drone which fires piercing, highly calibrated energy bolts + If a bolt hits, the drone will teleport into its path and reflect the bolt + Reflected bolts home in and explode on impact [c/1FFBFF:'Equipped with high-end sensors, little can evade them. Even less are able to escape their ever watchful eyes.] [c/1FFBFF:An excellent bridge between my experiments with the sight-based soul powered machines and my latest project.'] ''' diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson index 0c5b855b66..ca3c5b88d4 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Misc.hjson @@ -45,7 +45,7 @@ UnstableMatter.DisplayName: Unstable Matter VoltageStream.DisplayName: Voltage Stream WavePounderBoom.DisplayName: Explosion WavePounderProjectile.DisplayName: Wave Pounder -SnakeEyesProjectile.DisplayName: Snake Eyes' Beam +SnakeEyesProjectile.DisplayName: Inescapable Bolt // Environmental AcidDrop.DisplayName: Acid BrimstoneGeyser.DisplayName: Smoke From 3994abb2c2951d636a2e3e51f596268c64404e0d Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Tue, 29 Aug 2023 22:46:28 +0100 Subject: [PATCH 132/258] Update Provi and Guardian shield fx --- .../ProfanedGuardianCommander.cs | 33 ++++++++++++++ .../ProfanedGuardianDefender.cs | 35 +++++++++++++++ NPCs/Providence/ProvSpawnDefense.cs | 2 +- NPCs/Providence/ProvSpawnHealer.cs | 2 +- NPCs/Providence/ProvSpawnOffense.cs | 2 +- NPCs/Providence/Providence.cs | 43 ++++++++++++++++--- 6 files changed, 108 insertions(+), 9 deletions(-) diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs index fef158d1da..e985c9b4ee 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs @@ -14,6 +14,7 @@ using System.IO; using Terraria; using Terraria.GameContent; using Terraria.GameContent.Bestiary; +using Terraria.Graphics.Effects; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Items.Placeables.Furniture.BossRelics; @@ -22,6 +23,7 @@ using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Events; using Terraria.Audio; using CalamityMod.Items.Materials; +using Filters = Terraria.Graphics.Effects.Filters; namespace CalamityMod.NPCs.ProfanedGuardians { @@ -1137,10 +1139,41 @@ namespace CalamityMod.NPCs.ProfanedGuardians color *= 0.6f; color2 *= 0.6f; float scaleMult = 1.2f + scaleDuringShieldDespawn; + + // The scale used for the noise overlay polygons also grows and shrinks + // This is intentionally out of sync with the shield, and intentionally desynced per player + // Don't put this anywhere less than 0.25f or higher than 1f. The higher it is, the denser / more zoomed out the noise overlay is. + float noiseScale = MathHelper.Lerp(0.4f, 0.8f, (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.3f) * 0.5f + 0.5f); + + // Define shader parameters + Effect shieldEffect = Filters.Scene["CalamityMod:RoverDriveShield"].GetShader().Shader; + shieldEffect.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly * 0.058f); // Scrolling speed of polygonal overlay + shieldEffect.Parameters["blowUpPower"].SetValue(2.8f); + shieldEffect.Parameters["blowUpSize"].SetValue(0.4f); + shieldEffect.Parameters["noiseScale"].SetValue(noiseScale); + + shieldEffect.Parameters["shieldOpacity"].SetValue(opacityScaleDuringShieldDespawn); + shieldEffect.Parameters["shieldEdgeBlendStrenght"].SetValue(4f); + + Color edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, color, color2); + + // Define shader parameters for shield color + shieldEffect.Parameters["shieldColor"].SetValue(color.ToVector3()); + shieldEffect.Parameters["shieldEdgeColor"].SetValue(edgeColor.ToVector3()); + spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color, NPC.rotation, origin, shieldScale2 * scaleMult, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale2 * scaleMult * 0.95f, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color, NPC.rotation, origin, shieldScale * scaleMult, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale * scaleMult * 0.95f, SpriteEffects.None, 0f); + + + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix); + + // Fetch shield heat overlay texture (this is the neutrons fed to the shader) + Texture2D heatTex = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2").Value; + Vector2 pos = NPC.Center + NPC.gfxOffY * Vector2.UnitY - Main.screenPosition; + Main.spriteBatch.Draw(heatTex, shieldDrawPos, null, Color.White, 0, heatTex.Size() / 2f, shieldScale * scaleMult * 0.5f, 0, 0); } return false; diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs b/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs index c07eea57f4..ee250ec4b4 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs @@ -8,12 +8,15 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.IO; +using CalamityMod.Items.Accessories; +using ReLogic.Content; using Terraria; using Terraria.GameContent; using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; +using Filters = Terraria.Graphics.Effects.Filters; namespace CalamityMod.NPCs.ProfanedGuardians { @@ -853,10 +856,42 @@ namespace CalamityMod.NPCs.ProfanedGuardians color *= 0.6f; color2 *= 0.6f; float scaleMult = 1.2f + scaleDuringShieldDespawn; + + // The scale used for the noise overlay polygons also grows and shrinks + // This is intentionally out of sync with the shield, and intentionally desynced per player + // Don't put this anywhere less than 0.25f or higher than 1f. The higher it is, the denser / more zoomed out the noise overlay is. + float noiseScale = MathHelper.Lerp(0.4f, 0.8f, (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.3f) * 0.5f + 0.5f); + + // Define shader parameters + Effect shieldEffect = Filters.Scene["CalamityMod:RoverDriveShield"].GetShader().Shader; + shieldEffect.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly * 0.058f); // Scrolling speed of polygonal overlay + shieldEffect.Parameters["blowUpPower"].SetValue(2.8f); + shieldEffect.Parameters["blowUpSize"].SetValue(0.4f); + shieldEffect.Parameters["noiseScale"].SetValue(noiseScale); + + shieldEffect.Parameters["shieldOpacity"].SetValue(opacityScaleDuringShieldDespawn); + shieldEffect.Parameters["shieldEdgeBlendStrenght"].SetValue(4f); + + Color edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, color, color2); + + // Define shader parameters for shield color + shieldEffect.Parameters["shieldColor"].SetValue(color.ToVector3()); + shieldEffect.Parameters["shieldEdgeColor"].SetValue(edgeColor.ToVector3()); + spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color, NPC.rotation, origin, shieldScale2 * scaleMult, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale2 * scaleMult * 0.95f, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color, NPC.rotation, origin, shieldScale * scaleMult, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale * scaleMult * 0.95f, SpriteEffects.None, 0f); + + // GOD I LOVE END BEGIN CAN THIS GAME PLEASE BE SWALLOWED BY THE FIRES OF HELL THANKS + // yes I copy pasted that comment, I hate end begin that much + // I also copy pasted that comment, this time for consistency :hdfailure: + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix); + // Fetch shield heat overlay texture (this is the neutrons fed to the shader) + Texture2D heatTex = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2").Value; + Vector2 pos = NPC.Center + NPC.gfxOffY * Vector2.UnitY - Main.screenPosition; + Main.spriteBatch.Draw(heatTex, shieldDrawPos, null, Color.White, 0, heatTex.Size() / 2f, shieldScale * scaleMult * 0.5f, 0, 0); } return false; diff --git a/NPCs/Providence/ProvSpawnDefense.cs b/NPCs/Providence/ProvSpawnDefense.cs index 5b9214a8e5..7b2755d913 100644 --- a/NPCs/Providence/ProvSpawnDefense.cs +++ b/NPCs/Providence/ProvSpawnDefense.cs @@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Providence double deg = NPC.ai[1]; double rad = deg * (Math.PI / 180); - double dist = 400; + double dist = 450; NPC.position.X = parent.Center.X - (int)(Math.Cos(rad) * dist) - NPC.width / 2; NPC.position.Y = parent.Center.Y - (int)(Math.Sin(rad) * dist) - NPC.height / 2; NPC.ai[1] += 1f; diff --git a/NPCs/Providence/ProvSpawnHealer.cs b/NPCs/Providence/ProvSpawnHealer.cs index 041ac9665e..c32dff5cf3 100644 --- a/NPCs/Providence/ProvSpawnHealer.cs +++ b/NPCs/Providence/ProvSpawnHealer.cs @@ -100,7 +100,7 @@ namespace CalamityMod.NPCs.Providence double deg = NPC.ai[1]; double rad = deg * (Math.PI / 180); - double dist = 400; + double dist = 450; NPC.position.X = parent.Center.X - (int)(Math.Cos(rad) * dist) - NPC.width / 2; NPC.position.Y = parent.Center.Y - (int)(Math.Sin(rad) * dist) - NPC.height / 2; NPC.ai[1] += 1f; diff --git a/NPCs/Providence/ProvSpawnOffense.cs b/NPCs/Providence/ProvSpawnOffense.cs index 57d78d04b4..e80c1bb8c7 100644 --- a/NPCs/Providence/ProvSpawnOffense.cs +++ b/NPCs/Providence/ProvSpawnOffense.cs @@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Providence double deg = NPC.ai[1]; double rad = deg * (Math.PI / 180); - double dist = 400; + double dist = 450; NPC.position.X = parent.Center.X - (int)(Math.Cos(rad) * dist) - NPC.width / 2; NPC.position.Y = parent.Center.Y - (int)(Math.Sin(rad) * dist) - NPC.height / 2; NPC.ai[1] += 1f; diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index f29e600281..6a22826992 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -37,9 +37,11 @@ using Terraria.DataStructures; using Terraria.GameContent; using Terraria.GameContent.Bestiary; using Terraria.GameContent.ItemDropRules; +using Terraria.Graphics.Effects; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; +using Filters = Terraria.Graphics.Effects.Filters; namespace CalamityMod.NPCs.Providence { @@ -1687,6 +1689,8 @@ namespace CalamityMod.NPCs.Providence break; } + + NPC.velocity = Vector2.Zero; } public void DoDeathAnimation() @@ -2235,7 +2239,7 @@ namespace CalamityMod.NPCs.Providence float invertedSmallerOscillationRatio = 1f - (1f - smallerRemappedOscillation) * (1f - smallerRemappedOscillation); float smallerOscillationScale = 1f - (1f - invertedSmallerOscillationRatio) * (1f - invertedSmallerOscillationRatio); float shieldScale2 = (minScale + maxPulseScale * smallerOscillationScale) * invertedOscillationUsedForScale; - Texture2D shieldTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleOpenCircle").Value; + Texture2D shieldTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleOpenCircleButBigger").Value; Rectangle shieldFrame = shieldTexture.Frame(); Vector2 origin = shieldFrame.Size() * 0.5f; Vector2 shieldDrawPos = NPC.Center - screenPos; @@ -2252,11 +2256,38 @@ namespace CalamityMod.NPCs.Providence color2.A = 0; color *= 0.6f; color2 *= 0.6f; - float scaleMult = 2.2f + scaleDuringShieldDespawn; - spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color, NPC.rotation, origin, shieldScale2 * scaleMult, SpriteEffects.None, 0f); - spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale2 * scaleMult * 0.95f, SpriteEffects.None, 0f); - spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color, NPC.rotation, origin, shieldScale * scaleMult, SpriteEffects.None, 0f); - spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale * scaleMult * 0.95f, SpriteEffects.None, 0f); + float scaleMult = 2.75f + scaleDuringShieldDespawn; + spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale2 * scaleMult * 0.45f, SpriteEffects.None, 0f); + spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale2 * scaleMult * 0.5f, SpriteEffects.None, 0f); + + // The scale used for the noise overlay polygons also grows and shrinks + // This is intentionally out of sync with the shield, and intentionally desynced per player + // Don't put this anywhere less than 0.25f or higher than 1f. The higher it is, the denser / more zoomed out the noise overlay is. + float noiseScale = MathHelper.Lerp(0.4f, 0.8f, (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.3f) * 0.5f + 0.5f); + + // Define shader parameters + Effect shieldEffect = Filters.Scene["CalamityMod:RoverDriveShield"].GetShader().Shader; + shieldEffect.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly * 0.058f); // Scrolling speed of polygonal overlay + shieldEffect.Parameters["blowUpPower"].SetValue(2.8f); + shieldEffect.Parameters["blowUpSize"].SetValue(0.4f); + shieldEffect.Parameters["noiseScale"].SetValue(noiseScale); + + shieldEffect.Parameters["shieldOpacity"].SetValue(opacityScaleDuringShieldDespawn); + shieldEffect.Parameters["shieldEdgeBlendStrenght"].SetValue(4f); + + Color edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, color, color2); + + // Define shader parameters for shield color + shieldEffect.Parameters["shieldColor"].SetValue(color.ToVector3()); + shieldEffect.Parameters["shieldEdgeColor"].SetValue(edgeColor.ToVector3()); + + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix); + + // Fetch shield heat overlay texture (this is the neutrons fed to the shader) + Texture2D heatTex = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2").Value; + Vector2 pos = NPC.Center + NPC.gfxOffY * Vector2.UnitY - Main.screenPosition; + Main.spriteBatch.Draw(heatTex, shieldDrawPos, null, Color.White, 0, heatTex.Size() / 2f, shieldScale * scaleMult * 0.5f, 0, 0); } return false; From 27c9295d4f7bafcbfe701bda50166f4014f0c791 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Tue, 29 Aug 2023 22:47:07 +0100 Subject: [PATCH 133/258] forgor to commit this with provi fx update --- ExtraTextures/GreyscaleOpenCircleButBigger.png | Bin 0 -> 16741 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 ExtraTextures/GreyscaleOpenCircleButBigger.png diff --git a/ExtraTextures/GreyscaleOpenCircleButBigger.png b/ExtraTextures/GreyscaleOpenCircleButBigger.png new file mode 100644 index 0000000000000000000000000000000000000000..ef44fad2b9b076182c64576a290f4d1e10f0b283 GIT binary patch literal 16741 zcmcJ130P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Q%iBl0u7eOEk@wLeI)hJ3lpPH6aTktM37_e=}R_hKlO zs#CS*EktWuH+{gOE&;O|1?M*uLDL8$wGCRAy6Erov!O~xJYqsNOXn?YB` z#ae2&R$3?zi=@pj$=7|&D}7q*I1&1B812?+eH>%8czRz>!s_^7UGi~40xe`l-LPMY zU8;zk+v8qViU;6~;W@wxpfduS1Tf%A%4XbJF*l8>9SU?1g^vi`(r`p5gm{!7Pu?R2 zAY$Cxzu<6#AW94yd4w2)6F2_!3!k_u?u%9~s literal 0 HcmV?d00001 From 1b06b127f30f894ec3b5b6ce2b0aa39feb78d4de Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Tue, 29 Aug 2023 23:15:16 +0100 Subject: [PATCH 134/258] comment cleanup --- .../ProfanedGuardianCommander.cs | 1 + .../ProfanedGuardianDefender.cs | 31 +++++++++---------- NPCs/Providence/Providence.cs | 2 ++ 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs index e985c9b4ee..c294689a67 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs @@ -1166,6 +1166,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color, NPC.rotation, origin, shieldScale * scaleMult, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale * scaleMult * 0.95f, SpriteEffects.None, 0f); + // The shield for the border MUST be drawn before the main shield, it becomes incredibly visually obnoxious otherwise. Main.spriteBatch.End(); Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix); diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs b/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs index ee250ec4b4..2205053b9c 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians { BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheHallow, BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheUnderworld, - new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.ProfanedGuardianDefender") + new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.ProfanedGuardianDefender") }); } @@ -283,9 +283,9 @@ namespace CalamityMod.NPCs.ProfanedGuardians float goLowDurationPhase1 = totalGoLowDurationPhase1 * 0.5f; float roundedGoLowPhase1Check = (float)Math.Round(goLowDurationPhase1 * 0.5); bool commanderGoingLowOrHighInPhase1 = (Main.npc[CalamityGlobalNPC.doughnutBoss].localAI[3] > (moveToOtherSideInPhase1GateValue - goLowDurationPhase1) && - Main.npc[CalamityGlobalNPC.doughnutBoss].localAI[3] <= (moveToOtherSideInPhase1GateValue + roundedGoLowPhase1Check)) || - Main.npc[CalamityGlobalNPC.doughnutBoss].localAI[3] > (timeBeforeMoveToOtherSideInPhase1Reset - goLowDurationPhase1) || - Main.npc[CalamityGlobalNPC.doughnutBoss].localAI[3] <= (-roundedGoLowPhase1Check); + Main.npc[CalamityGlobalNPC.doughnutBoss].localAI[3] <= (moveToOtherSideInPhase1GateValue + roundedGoLowPhase1Check)) || + Main.npc[CalamityGlobalNPC.doughnutBoss].localAI[3] > (timeBeforeMoveToOtherSideInPhase1Reset - goLowDurationPhase1) || + Main.npc[CalamityGlobalNPC.doughnutBoss].localAI[3] <= (-roundedGoLowPhase1Check); float moveToOtherSideInPhase2GateValue = commanderGuardPhase2Duration - 120f; float timeBeforeMoveToOtherSideInPhase2Reset = moveToOtherSideInPhase2GateValue * 2f; @@ -293,9 +293,9 @@ namespace CalamityMod.NPCs.ProfanedGuardians float goLowDurationPhase2 = totalGoLowDurationPhase2 * 0.5f; float roundedGoLowPhase2Check = (float)Math.Round(goLowDurationPhase2 * 0.5); bool commanderGoingLowOrHighInPhase2 = (Main.npc[CalamityGlobalNPC.doughnutBoss].Calamity().newAI[1] > (moveToOtherSideInPhase2GateValue - goLowDurationPhase2) && - Main.npc[CalamityGlobalNPC.doughnutBoss].Calamity().newAI[1] <= (moveToOtherSideInPhase2GateValue + roundedGoLowPhase2Check)) || - Main.npc[CalamityGlobalNPC.doughnutBoss].Calamity().newAI[1] > (timeBeforeMoveToOtherSideInPhase2Reset - goLowDurationPhase2) || - Main.npc[CalamityGlobalNPC.doughnutBoss].Calamity().newAI[1] <= (-roundedGoLowPhase2Check); + Main.npc[CalamityGlobalNPC.doughnutBoss].Calamity().newAI[1] <= (moveToOtherSideInPhase2GateValue + roundedGoLowPhase2Check)) || + Main.npc[CalamityGlobalNPC.doughnutBoss].Calamity().newAI[1] > (timeBeforeMoveToOtherSideInPhase2Reset - goLowDurationPhase2) || + Main.npc[CalamityGlobalNPC.doughnutBoss].Calamity().newAI[1] <= (-roundedGoLowPhase2Check); // Tell rocks to fade out and shrink if (commanderGoingLowOrHighInPhase1 || commanderGoingLowOrHighInPhase2) @@ -883,15 +883,14 @@ namespace CalamityMod.NPCs.ProfanedGuardians spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color, NPC.rotation, origin, shieldScale * scaleMult, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale * scaleMult * 0.95f, SpriteEffects.None, 0f); - // GOD I LOVE END BEGIN CAN THIS GAME PLEASE BE SWALLOWED BY THE FIRES OF HELL THANKS - // yes I copy pasted that comment, I hate end begin that much - // I also copy pasted that comment, this time for consistency :hdfailure: - Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix); - // Fetch shield heat overlay texture (this is the neutrons fed to the shader) - Texture2D heatTex = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2").Value; - Vector2 pos = NPC.Center + NPC.gfxOffY * Vector2.UnitY - Main.screenPosition; - Main.spriteBatch.Draw(heatTex, shieldDrawPos, null, Color.White, 0, heatTex.Size() / 2f, shieldScale * scaleMult * 0.5f, 0, 0); + // The shield for the border MUST be drawn before the main shield, it becomes incredibly visually obnoxious otherwise. + + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix); + // Fetch shield heat overlay texture (this is the neutrons fed to the shader) + Texture2D heatTex = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2").Value; + Vector2 pos = NPC.Center + NPC.gfxOffY * Vector2.UnitY - Main.screenPosition; + Main.spriteBatch.Draw(heatTex, shieldDrawPos, null, Color.White, 0, heatTex.Size() / 2f, shieldScale * scaleMult * 0.5f, 0, 0); } return false; diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 6a22826992..da0ea5d053 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -2260,6 +2260,8 @@ namespace CalamityMod.NPCs.Providence spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale2 * scaleMult * 0.45f, SpriteEffects.None, 0f); spriteBatch.Draw(shieldTexture, shieldDrawPos, shieldFrame, color2, NPC.rotation, origin, shieldScale2 * scaleMult * 0.5f, SpriteEffects.None, 0f); + // The shield for the border MUST be drawn before the main shield, it becomes incredibly visually obnoxious otherwise. + // The scale used for the noise overlay polygons also grows and shrinks // This is intentionally out of sync with the shield, and intentionally desynced per player // Don't put this anywhere less than 0.25f or higher than 1f. The higher it is, the denser / more zoomed out the noise overlay is. From 8ec10b66f64730913cde8e7e84ab479e26cd0607 Mon Sep 17 00:00:00 2001 From: GinYuH Date: Tue, 29 Aug 2023 21:59:32 -0700 Subject: [PATCH 135/258] fixed levi using deadly sphere sounds --- NPCs/Leviathan/Leviathan.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 926898b098..b0f2f01e1a 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -179,7 +179,7 @@ namespace CalamityMod.NPCs.Leviathan { SoundID.Zombie38, SoundID.Zombie39, - SoundID.Zombie49 + SoundID.Zombie40 }); if (soundDelay > 0) From 85b4719835ca816ee3a5a1a59dbd09b4a59a33f5 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 30 Aug 2023 12:10:49 -0400 Subject: [PATCH 136/258] removed materially false config comment --- Localization/en-US/Mods.CalamityMod.Configs.hjson | 1 - 1 file changed, 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Configs.hjson b/Localization/en-US/Mods.CalamityMod.Configs.hjson index f2f8a3ade9..e15c05bcc1 100644 --- a/Localization/en-US/Mods.CalamityMod.Configs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Configs.hjson @@ -71,7 +71,6 @@ CalamityConfig: { ''' Gives the player a very weak dash by default that requires no equipment or items to use. This dash will be replaced by any other available dash, including those from other mods. - Calamity is balanced around this setting being enabled. ''' } From 845a2f8f4d0aa70183fd649a99cdfed659040e54 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:44:49 -0300 Subject: [PATCH 137/258] Fixed some wording on Viruling's entry --- Localization/en-US/Mods.CalamityMod.Bestiary.hjson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson index dfc3a10260..a59846bfb1 100644 --- a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson +++ b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson @@ -105,7 +105,7 @@ PestilentSlime: The virus hunts for any openings within one’s body to reprogra PlaguebringerMiniboss: Nothing can escape the Plague; everything is either assimilated or culled. Such is the case of queen bees. While strong enough to stave off plagued creatures, they are often forced to abandon their hives due to their subjects becoming infected. This leaves their larvae to be overtaken by nanites, and soon after, a plaguebringer is born. PlagueCharger: Spawn of the plaguebringers, these were born already taken by Draedon’s nanomachines. Nanites ensure they reach adulthood in a matter of hours by supercharging their aging process, even if this means their lifespan can be counted in days. Yet, this is exactly what makes them the perfect dispensable soldiers. Plagueshell: A turtle’s shell and nervous system are intertwined, making giant tortoises ideal targets for the Plague. Whatever pain is caused by the process of drilling into their shells is rapidly anesthetized, putting the tortoises under control without a single protest. -Viruling: Unlike derplings, who use their proboscis to drain the blood of other creatures, virulings use theirs by using it to inject the plague directly into their victims. Aside from the plaguebringers themselves, no creature is nearly as efficient at contaminating the local wildlife. +Viruling: Unlike derplings, who use their proboscis to drain the blood of other creatures, virulings use theirs to inject the plague directly into their victims. Aside from the plaguebringers themselves, no creature is nearly as efficient at contaminating the local wildlife. //Sulphur Sea Enemies AnthozoanCrab: Though disguised as simple rocks, they are capable of hurling entire boulders at creatures with ease, and will retreat swiftly if approached. Elsewhere, a creature such as this would thrive due to its might; yet in such a hostile environment as this, this much is required merely to survive. AquaticUrchin: Closely related to sea urchins, aquatic urchins have been forced to adapt to the acidic water and radioactive waste. Normally their venomous spikes would normally deter predators, but in the environment it lives in, a painful meal is still a meal. Nothing in this sea can afford to be a picky eater. @@ -189,4 +189,4 @@ StormWeaver: An invasive pest from another dimension crowned by many as king of SupremeCalamitas: After inheriting nigh limitless magical power as a mere teenager, she was recruited into Yharim’s army, where she served for nearly a decade. She reveled in the violence of it all, the endless dance of madness and death, allowing the Godseeker to wield her as a weapon in his endless war against the gods. But now that the fire inside her has died, all that remains are the smoldering embers of regret. SupremeCataclysm: The eldest of the three siblings, this brother was a brawler of great renown in Azafure, with few in the city being capable of matching his raw strength. He was protective of his sister, vowing to always be there for her in her times of need. The brother continues to fulfill this promise, even in death. SupremeCatastrophe: The middle child of the three siblings was a skilled swordsman in life, taking up mercenary work to put food on the table. Despite his rather bloody career choice, he did his best to be kind to his sister and keep her out of any danger his occupation could have put his remaining family in. He continues to defend her, even in death. -Yharon: Each dragon once wielded nigh limitless power over their domain, a fundamental power drawn directly from the world's fragmented soul. The dragons were masters of all; life, death, even the great Primordial Light that banishes the eternal night beyond. And yet, one of these majestic beings reached a height of power possibly second only to their king. He who made his kind eternal through his powers of Rebirth... and yet, even eternity did not last. \ No newline at end of file +Yharon: Each dragon once wielded nigh limitless power over their domain, a fundamental power drawn directly from the world's fragmented soul. The dragons were masters of all; life, death, even the great Primordial Light that banishes the eternal night beyond. And yet, one of these majestic beings reached a height of power possibly second only to their king. He who made his kind eternal through his powers of Rebirth... and yet, even eternity did not last. From b04f3f923f853d2d1f31b2c90e3eebc568fb72fe Mon Sep 17 00:00:00 2001 From: Xyk Date: Wed, 30 Aug 2023 13:06:55 -0700 Subject: [PATCH 138/258] Purity line bugfixes and changes Fixed lights on Ambrosial and Purity Fixed life regen based on lower health not working Changed jewel line to specify the extra defense is only while you have that extra debuff and buffed its defense Nerfed Purity defense bonus, but made it tick down slower Fixed standing still in honey not providing extra regen on honey dew and living dew Fixed purity regen on standing still not working and added visuals Made ambrosial regen on standing still not require honey and gave it a visual to match purity's --- CalPlayer/CalamityPlayerLifeRegen.cs | 41 ++++++++++++------- Items/Accessories/AmbrosialAmpoule.cs | 15 ++----- Items/Accessories/Purity.cs | 13 +----- Items/Accessories/RadiantOoze.cs | 10 +---- .../en-US/Mods.CalamityMod.Bestiary.hjson | 2 +- .../Mods.CalamityMod.Items.Accessories.hjson | 8 ++-- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- 7 files changed, 38 insertions(+), 53 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 831e0fafa7..afd8b5b602 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -411,6 +411,15 @@ namespace CalamityMod.CalPlayer Player.lifeRegen += 6; } + // Grant life regen based on missing health for Radiant Ooze, Ambrosial Ampule, and purity + if (rOoze || aAmpoule || purity) + { + float missingLifeRatio = (Player.statLifeMax2 - Player.statLife) / Player.statLifeMax2; + //Ambrosial Ampule and ooze give between 2 and 6 hp/s, Purity gives between 3 and 7 hp/s + float lifeRegenToGive = MathHelper.Lerp( purity ? 6f : 4f, purity ? 14f : 12f, missingLifeRatio); + Player.lifeRegen += (int)lifeRegenToGive; + } + if (purity) { int currentDebuffs = Player.buffType.Count(CalamityLists.debuffList.Contains); @@ -423,7 +432,9 @@ namespace CalamityMod.CalPlayer // Healing slows down after 5 seconds (300 frames) debuffed. For every 15 frames thereafter the cadence slows // There is no upper limit to how slow it can get and it can take a very long time to reset to normal int punishmentFrames = PurityHealSlowdownFrames - 300; - healFrameCadence += (punishmentFrames < 0) ? 0 : punishmentFrames / 15; + //lowest punishment is three full seconds between the one health heal + if (healFrameCadence < 180) + healFrameCadence += (punishmentFrames < 0) ? 0 : punishmentFrames / 15; if (Player.miscCounter % healFrameCadence == healFrameCadence - 1) Player.Heal(1); @@ -431,12 +442,12 @@ namespace CalamityMod.CalPlayer if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; - jewelBonusDefense = 40 + (currentDebuffs - 1) * 10; + jewelBonusDefense = 20 + (currentDebuffs - 1) * 12; // Count up total frames spent healing for slowdown. ++PurityHealSlowdownFrames; } - else if (Player.miscCounter % 20 == 0 && jewelBonusDefense > 0) //TODO reduce defense and put cooldown at 60 like infected jewel + else if (Player.miscCounter % 60 == 0 && jewelBonusDefense > 0) --jewelBonusDefense; // If the player is clear of all debuffs then gradually reduce the slowdown frames @@ -464,11 +475,11 @@ namespace CalamityMod.CalPlayer if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; - jewelBonusDefense = 16 + (currentDebuffs - 1) * 4; + jewelBonusDefense = 16 + (currentDebuffs - 1) * 8; } // Otherwise tick down the defense, one point per second - else if (Player.miscCounter % 60 == 0 && jewelBonusDefense > 0) + else if (Player.miscCounter % 20 == 0 && jewelBonusDefense > 0) --jewelBonusDefense; Player.statDefense += jewelBonusDefense; @@ -749,39 +760,39 @@ namespace CalamityMod.CalPlayer #region Standing Still Life Regen // Standing still healing bonuses (all are exclusive with vanilla Shiny Stone, but all function similarly) - if (!Player.shinyStone && Player.StandingStill() && Player.itemAnimation == 0) + if (!Player.shinyStone && Player.StandingStill() && Player.velocity.Y == 0 && Player.itemAnimation == 0) { - bool honeyDewWorking = honeyTurboRegen && Player.honey; - bool anyStandingStillLifeRegen = shadeRegen || cFreeze || honeyDewWorking || photosynthesis; + bool honeyDewWorking = honeyTurboRegen && Player.honeyWet; + bool anyStandingStillLifeRegen = shadeRegen || cFreeze || honeyDewWorking || photosynthesis || aAmpoule || purity; bool onlyPhotosynthesisAtNight = !shadeRegen && !cFreeze && !honeyDewWorking && photosynthesis && !Main.dayTime; // Divides all negative life regen by two before applying any other effects. if (anyStandingStillLifeRegen && Player.lifeRegen < 0) Player.lifeRegen /= 2; - // Spawn dust of some flavor while actually regenerating + // Spawn dust of some flavor while actually regenerating, aAmpule and purity have a slightly different looking style if (Player.lifeRegen > 0 && Player.statLife < actualMaxLife) { - int dustType = shadeRegen ? 173 : cFreeze ? 67 : honeyDewWorking ? DustID.Honey2 : photosynthesis ? 244 : -1; - bool dustSpawnRolled = Main.rand.Next(30000) < Player.lifeRegenTime || Main.rand.NextBool(30); + int dustType = shadeRegen ? 173 : cFreeze ? 67 : honeyDewWorking ? DustID.Honey2 : photosynthesis ? 244 : aAmpoule ? 228 : purity ? 187 : -1; + bool dustSpawnRolled = Main.rand.Next(30000) < Player.lifeRegenTime || purity ? Main.rand.NextBool(2) : aAmpoule ? Main.rand.NextBool(4) : Main.rand.NextBool(30); if (dustType != -1 && dustSpawnRolled) { - int regen = Dust.NewDust(Player.position, Player.width, Player.height, dustType, 0f, 0f, 200, default, 1f); + int regen = Dust.NewDust(Player.position, Player.width, Player.height, dustType, 0f, 0f, purity || aAmpoule ? 80 : 200, default, purity || aAmpoule ? 0.5f : 1f); Main.dust[regen].noGravity = true; Main.dust[regen].fadeIn = 1.3f; Vector2 velocity = CalamityUtils.RandomVelocity(100f, 50f, 100f, 0.04f); Main.dust[regen].velocity = velocity; velocity.Normalize(); - velocity *= 34f; + velocity *= purity || aAmpoule ? 55f : 34f; Main.dust[regen].position = Player.Center - velocity; } } // Actually apply "standing still" regeneration (the stats are granted even at full health) - float regenTimeNeededForTurboRegen = shadeRegen ? 40f : cFreeze ? 60f : honeyDewWorking ? 90f : photosynthesis ? 90f : -1f; + float regenTimeNeededForTurboRegen = shadeRegen ? 40f : cFreeze ? 60f : honeyDewWorking ? 90f : photosynthesis ? 90f : aAmpoule ? 90f : purity ? 60f : -1f; // 4 = vanilla Shiny Stone - int turboRegenPower = shadeRegen || cFreeze ? 4 : honeyDewWorking ? 3 : photosynthesis ? 1 : -1; + int turboRegenPower = shadeRegen || cFreeze || purity ? 4 : honeyDewWorking || aAmpoule ? 3 : photosynthesis ? 1 : -1; if (turboRegenPower > 0) { diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index 486893b49c..0836aa2a59 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -24,26 +24,17 @@ namespace CalamityMod.Items.Accessories CalamityPlayer modPlayer = player.Calamity(); player.statLifeMax2 += 70; - // Grant life regen based on missing health - if (!(modPlayer.rOoze || modPlayer.purity)) - { - float missingLifeRatio = (player.statLifeMax2 - player.statLife) / player.statLifeMax2; - float lifeRegenToGive = MathHelper.Lerp(4f, 12f, missingLifeRatio); - player.lifeRegen += (int)lifeRegenToGive; - } - - // bool left in for abyss light purposes + // bool left in for abyss light purposes and life regen effects modPlayer.aAmpoule = true; - // Inherits all effects of Honey Dew and Living Dew + // Inherits all effects of Honey Dew and Living Dew (except standing regen is not honey exclusive anymore) modPlayer.alwaysHoneyRegen = true; - modPlayer.honeyTurboRegen = true; modPlayer.honeyDewHalveDebuffs = true; modPlayer.livingDewHalveDebuffs = true; // Add light if the other accessories aren't equipped and visibility is turned on if (!(modPlayer.rOoze || modPlayer.purity) && !hideVisual) - Lighting.AddLight(player.Center, new Vector3(1.2f, 1.7f, 2.7f)); + Lighting.AddLight(player.Center, new Vector3(1.2f, 1.2f, 0.72f)); } public override void AddRecipes() diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index 01b3cae591..a0d2242d05 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -27,26 +27,17 @@ namespace CalamityMod.Items.Accessories CalamityPlayer modPlayer = player.Calamity(); player.statLifeMax2 += 100; - // Grant life regen based on missing health - if (!(modPlayer.rOoze || modPlayer.aAmpoule)) - { - float missingLifeRatio = (player.statLifeMax2 - player.statLife) / player.statLifeMax2; - float lifeRegenToGive = MathHelper.Lerp(6f, 14f, missingLifeRatio); - player.lifeRegen += (int)lifeRegenToGive; - } - - // Abyss light, debuff near-immunity, and massively enhances debuff halving + // Abyss light, debuff near-immunity, life regen effects, and massively enhances debuff halving modPlayer.purity = true; // Inherits effects from Honey Dew and Living Dew modPlayer.alwaysHoneyRegen = true; - modPlayer.honeyTurboRegen = true; modPlayer.honeyDewHalveDebuffs = true; modPlayer.livingDewHalveDebuffs = true; // Add light if the other accessories aren't equipped and visibility is turned on if (!(modPlayer.rOoze || modPlayer.aAmpoule) && !hideVisual) - Lighting.AddLight(player.Center, new Vector3(1.376f, 1.658f, 2.103f)); + Lighting.AddLight(player.Center, new Vector3(1.32f, 1.32f, 1.82f)); } public override void AddRecipes() diff --git a/Items/Accessories/RadiantOoze.cs b/Items/Accessories/RadiantOoze.cs index 6e71d23589..58f33eec38 100644 --- a/Items/Accessories/RadiantOoze.cs +++ b/Items/Accessories/RadiantOoze.cs @@ -23,15 +23,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); - // Grant life regen based on missing health - if (!(modPlayer.aAmpoule || modPlayer.purity)) - { - float missingLifeRatio = (player.statLifeMax2 - player.statLife) / player.statLifeMax2; - float lifeRegenToGive = MathHelper.Lerp(4f, 12f, missingLifeRatio); - player.lifeRegen += (int)lifeRegenToGive; - } - - // bool left in for abyss light purposes + // bool left in for abyss light purposes and life regen effects modPlayer.rOoze = true; // Add light if the other accessories aren't equipped and visibility is turned on diff --git a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson index a59846bfb1..77baa3201a 100644 --- a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson +++ b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson @@ -189,4 +189,4 @@ StormWeaver: An invasive pest from another dimension crowned by many as king of SupremeCalamitas: After inheriting nigh limitless magical power as a mere teenager, she was recruited into Yharim’s army, where she served for nearly a decade. She reveled in the violence of it all, the endless dance of madness and death, allowing the Godseeker to wield her as a weapon in his endless war against the gods. But now that the fire inside her has died, all that remains are the smoldering embers of regret. SupremeCataclysm: The eldest of the three siblings, this brother was a brawler of great renown in Azafure, with few in the city being capable of matching his raw strength. He was protective of his sister, vowing to always be there for her in her times of need. The brother continues to fulfill this promise, even in death. SupremeCatastrophe: The middle child of the three siblings was a skilled swordsman in life, taking up mercenary work to put food on the table. Despite his rather bloody career choice, he did his best to be kind to his sister and keep her out of any danger his occupation could have put his remaining family in. He continues to defend her, even in death. -Yharon: Each dragon once wielded nigh limitless power over their domain, a fundamental power drawn directly from the world's fragmented soul. The dragons were masters of all; life, death, even the great Primordial Light that banishes the eternal night beyond. And yet, one of these majestic beings reached a height of power possibly second only to their king. He who made his kind eternal through his powers of Rebirth... and yet, even eternity did not last. +Yharon: Each dragon once wielded nigh limitless power over their domain, a fundamental power drawn directly from the world's fragmented soul. The dragons were masters of all; life, death, even the great Primordial Light that banishes the eternal night beyond. And yet, one of these majestic beings reached a height of power possibly second only to their king. He who made his kind eternal through his powers of Rebirth... and yet, even eternity did not last. \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 74aacfd921..e81b68f4f0 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -118,7 +118,7 @@ AmbrosialAmpoule: { +70 max life Grants +2 to +6 HP/s life regen based on missing health Provides life regeneration equivalent to standing in Honey - Standing still in Honey grants extremely powerful regen + Standing still grants extremely powerful regen Halves how long you are afflicted with fire and sickness debuffs You emit yellow light if visibility is enabled ''' @@ -248,11 +248,11 @@ Purity: { Grants +3 to +7 HP/s life regen based on missing health Provides life regeneration equivalent to standing in Honey Standing still grants extremely powerful regen - Grants 40 defense and continuous healing while afflicted with any debuff + Grants 20 defense and continuous healing while afflicted with any debuff The healing eventually slows down if debuffed for an extended period of time Massively boosts natural life regen while afflicted with any debuff - Each debuff beyond the first grants 10 additional defense Granted defense fades away slowly when not afflicted with any debuffs + Each debuff beyond the first temporarily grants 12 additional defense while debuffed Makes weak damage over time debuffs harmless and halves the duration of all but the strongest debuffs You emit shining blue light if visibility is enabled 'A once putrid crystal, now glimmering with immaculate purity' @@ -366,8 +366,8 @@ InfectedJewel: { +1 HP/s life regen Grants 16 defense and +2 HP/s life regen while afflicted with any debuff Massively boosts natural life regen while afflicted with any debuff - Each debuff beyond the first grants 4 additional defense Granted defense fades away slowly when not afflicted with any debuffs + Each debuff beyond the first temporarily grants 8 additional defense while debuffed Makes the Astral Infection debuff harmless 'A beautiful gemstone tarnished by spaceborne rot' ''' diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 65e8c606eb..b40cc452aa 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1285,4 +1285,4 @@ WulfrumBlunderbuss: { [c/83B87E:'The good thing about Wulfrum is that while it breaks fast, it can be reused even faster.] [c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.'] ''' -} +} \ No newline at end of file From ed00a6bb01da2b547975bdc7e0e3cec9e663062c Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 30 Aug 2023 16:40:08 -0400 Subject: [PATCH 139/258] Infected Jewel and Purity defense from multiple debuffs fades away properly --- CalPlayer/CalamityPlayerLifeRegen.cs | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index afd8b5b602..e6e8371b46 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -11,6 +11,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; +using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; @@ -422,6 +423,7 @@ namespace CalamityMod.CalPlayer if (purity) { + int intendedPurityDefense = 0; int currentDebuffs = Player.buffType.Count(CalamityLists.debuffList.Contains); if (currentDebuffs > 0) { @@ -442,12 +444,17 @@ namespace CalamityMod.CalPlayer if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; - jewelBonusDefense = 20 + (currentDebuffs - 1) * 12; + intendedPurityDefense = 20 + (currentDebuffs - 1) * 12; + if (jewelBonusDefense < intendedPurityDefense) + jewelBonusDefense = intendedPurityDefense; // Count up total frames spent healing for slowdown. ++PurityHealSlowdownFrames; } - else if (Player.miscCounter % 60 == 0 && jewelBonusDefense > 0) + + // If the defense should be ticking down to some lower value, do that. + // Purity loses 1 point of defense every second. + if (Player.miscCounter % 60 == 0 && jewelBonusDefense > intendedPurityDefense) --jewelBonusDefense; // If the player is clear of all debuffs then gradually reduce the slowdown frames @@ -458,6 +465,7 @@ namespace CalamityMod.CalPlayer PurityHealSlowdownFrames = 0; } + // Actually apply defense bonus Player.statDefense += jewelBonusDefense; } @@ -468,6 +476,7 @@ namespace CalamityMod.CalPlayer // If the player has any debuffs, give the extra life regen and defense // More defense is given for each additional debuff + int intendedJewelDefense = 0; int currentDebuffs = Player.buffType.Count(CalamityLists.debuffList.Contains); if (currentDebuffs > 0) { @@ -475,13 +484,17 @@ namespace CalamityMod.CalPlayer if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; - jewelBonusDefense = 16 + (currentDebuffs - 1) * 8; + intendedJewelDefense = 16 + (currentDebuffs - 1) * 8; + if (jewelBonusDefense < intendedJewelDefense) + jewelBonusDefense = intendedJewelDefense; } - // Otherwise tick down the defense, one point per second - else if (Player.miscCounter % 20 == 0 && jewelBonusDefense > 0) + // If the defense should be ticking down to some lower value, do that. + // Infected Jewel loses 1 point of defense every 20 frames. + if (Player.miscCounter % 20 == 0 && jewelBonusDefense > intendedJewelDefense) --jewelBonusDefense; + // Actually apply defense bonus Player.statDefense += jewelBonusDefense; } From 7bee71d3fccde5f4045eb121209ee7653554dd35 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 30 Aug 2023 16:43:06 -0400 Subject: [PATCH 140/258] fix infected jewel and purity localization issues --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index e81b68f4f0..413bf28da2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -251,8 +251,8 @@ Purity: { Grants 20 defense and continuous healing while afflicted with any debuff The healing eventually slows down if debuffed for an extended period of time Massively boosts natural life regen while afflicted with any debuff + Each debuff beyond the first grants 12 additional defense Granted defense fades away slowly when not afflicted with any debuffs - Each debuff beyond the first temporarily grants 12 additional defense while debuffed Makes weak damage over time debuffs harmless and halves the duration of all but the strongest debuffs You emit shining blue light if visibility is enabled 'A once putrid crystal, now glimmering with immaculate purity' @@ -366,8 +366,8 @@ InfectedJewel: { +1 HP/s life regen Grants 16 defense and +2 HP/s life regen while afflicted with any debuff Massively boosts natural life regen while afflicted with any debuff - Granted defense fades away slowly when not afflicted with any debuffs - Each debuff beyond the first temporarily grants 8 additional defense while debuffed + Granted defense fades away quickly when not afflicted with any debuffs + Each debuff beyond the first grants 8 additional defense Makes the Astral Infection debuff harmless 'A beautiful gemstone tarnished by spaceborne rot' ''' From 9989e5154e88acb3d6ac3a2bc9efcc18ef2431bc Mon Sep 17 00:00:00 2001 From: Xyk Date: Wed, 30 Aug 2023 14:46:49 -0700 Subject: [PATCH 141/258] Jewel and purity defense adjustment fixed a mistake from earlier 12 bonus to 8 on purity 8 bonus to 5 on infected jewel both tick down once a second --- CalPlayer/CalamityPlayerLifeRegen.cs | 6 +++--- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index e6e8371b46..b904ffeb75 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -444,7 +444,7 @@ namespace CalamityMod.CalPlayer if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; - intendedPurityDefense = 20 + (currentDebuffs - 1) * 12; + intendedPurityDefense = 20 + (currentDebuffs - 1) * 8; if (jewelBonusDefense < intendedPurityDefense) jewelBonusDefense = intendedPurityDefense; @@ -484,14 +484,14 @@ namespace CalamityMod.CalPlayer if (Player.lifeRegenTime < 1800) Player.lifeRegenTime = 1800; - intendedJewelDefense = 16 + (currentDebuffs - 1) * 8; + intendedJewelDefense = 16 + (currentDebuffs - 1) * 5; if (jewelBonusDefense < intendedJewelDefense) jewelBonusDefense = intendedJewelDefense; } // If the defense should be ticking down to some lower value, do that. // Infected Jewel loses 1 point of defense every 20 frames. - if (Player.miscCounter % 20 == 0 && jewelBonusDefense > intendedJewelDefense) + if (Player.miscCounter % 60 == 0 && jewelBonusDefense > intendedJewelDefense) --jewelBonusDefense; // Actually apply defense bonus diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 413bf28da2..0b7b5e55d1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -251,7 +251,7 @@ Purity: { Grants 20 defense and continuous healing while afflicted with any debuff The healing eventually slows down if debuffed for an extended period of time Massively boosts natural life regen while afflicted with any debuff - Each debuff beyond the first grants 12 additional defense + Each debuff beyond the first grants 8 additional defense Granted defense fades away slowly when not afflicted with any debuffs Makes weak damage over time debuffs harmless and halves the duration of all but the strongest debuffs You emit shining blue light if visibility is enabled @@ -367,7 +367,7 @@ InfectedJewel: { Grants 16 defense and +2 HP/s life regen while afflicted with any debuff Massively boosts natural life regen while afflicted with any debuff Granted defense fades away quickly when not afflicted with any debuffs - Each debuff beyond the first grants 8 additional defense + Each debuff beyond the first grants 5 additional defense Makes the Astral Infection debuff harmless 'A beautiful gemstone tarnished by spaceborne rot' ''' From 110fa8ca05495ba7b5acd1be37255827a7721610 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 30 Aug 2023 18:21:15 -0400 Subject: [PATCH 142/258] Nerfed Pulse Rifle's damage more, as after testing it out of curiosity it's still way too good --- Items/Weapons/DraedonsArsenal/PulseRifle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index e4afc89dbc..d2684920b4 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/PulseRifleFire"); - private int BaseDamage = 1280; + private int BaseDamage = 1200; public override void SetDefaults() { From af31478d4b02ea3b2b7b0c48daad88196930125e Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 30 Aug 2023 19:28:34 -0400 Subject: [PATCH 143/258] Simplified Starmageddon's recipe (forgot to do this earlier whoops) --- Items/Weapons/Ranged/Starmageddon.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Items/Weapons/Ranged/Starmageddon.cs b/Items/Weapons/Ranged/Starmageddon.cs index 07cf6bbe9a..078ca87605 100644 --- a/Items/Weapons/Ranged/Starmageddon.cs +++ b/Items/Weapons/Ranged/Starmageddon.cs @@ -55,11 +55,8 @@ namespace CalamityMod.Items.Weapons.Ranged { CreateRecipe(). AddIngredient(). - AddIngredient(). AddIngredient(). - AddIngredient(). AddIngredient(5). - AddIngredient(10). AddIngredient(10). AddIngredient(15). AddTile(ModContent.TileType()). From a3b100fa21c083484a4198b5c707168d739d68b0 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 30 Aug 2023 19:53:42 -0400 Subject: [PATCH 144/258] Buffed Starmageddon's damage, and main projectile is now exempt from pierce resist --- CalamityLists.cs | 1 + Items/Weapons/Ranged/Starmageddon.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CalamityLists.cs b/CalamityLists.cs index 77d91932d9..f9d71c9bb7 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -2040,6 +2040,7 @@ namespace CalamityMod ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), }; // Lists of enemies that resist piercing to some extent (mostly worms). diff --git a/Items/Weapons/Ranged/Starmageddon.cs b/Items/Weapons/Ranged/Starmageddon.cs index 078ca87605..d27be3cc48 100644 --- a/Items/Weapons/Ranged/Starmageddon.cs +++ b/Items/Weapons/Ranged/Starmageddon.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 90; + Item.damage = 100; Item.knockBack = 4f; Item.shootSpeed = 16f; Item.useStyle = ItemUseStyleID.Shoot; From 12361d0240f02f62cda803039819f4398f33b9c5 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 30 Aug 2023 21:11:44 -0400 Subject: [PATCH 145/258] I have concluded that allowing Elemental Shiv's extra projectiles to pierce was a mistake --- Projectiles/Melee/SHIV.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Projectiles/Melee/SHIV.cs b/Projectiles/Melee/SHIV.cs index 2283f9cf48..d940fd634a 100644 --- a/Projectiles/Melee/SHIV.cs +++ b/Projectiles/Melee/SHIV.cs @@ -19,13 +19,11 @@ namespace CalamityMod.Projectiles.Melee Projectile.height = 20; Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; - Projectile.penetrate = 2; + Projectile.penetrate = 1; Projectile.tileCollide = false; Projectile.timeLeft = 90; Projectile.aiStyle = ProjAIStyleID.Beam; Projectile.extraUpdates = 1; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = -1; } public override void AI() From 96f9795b18b60de4c98ba35e51d6aa403442274e Mon Sep 17 00:00:00 2001 From: Done2222 Date: Thu, 31 Aug 2023 09:47:35 +0300 Subject: [PATCH 146/258] Heavenly Gale nerf --- Items/Weapons/Ranged/HeavenlyGale.cs | 4 ++-- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Ranged/HeavenlyGale.cs b/Items/Weapons/Ranged/HeavenlyGale.cs index c1675b64ba..0cafcf0831 100644 --- a/Items/Weapons/Ranged/HeavenlyGale.cs +++ b/Items/Weapons/Ranged/HeavenlyGale.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 300; + Item.damage = 221; Item.DamageType = DamageClass.Ranged; Item.width = 138; Item.height = 176; @@ -76,4 +76,4 @@ namespace CalamityMod.Items.Weapons.Ranged Register(); } } -} \ No newline at end of file +} diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 65e8c606eb..b40cc452aa 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1285,4 +1285,4 @@ WulfrumBlunderbuss: { [c/83B87E:'The good thing about Wulfrum is that while it breaks fast, it can be reused even faster.] [c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.'] ''' -} +} \ No newline at end of file From b3b59328bc34ce0d100bfc0a9aa709656a0d51d1 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Thu, 31 Aug 2023 09:50:36 +0300 Subject: [PATCH 147/258] Revert "Heavenly Gale nerf" This reverts commit 96f9795b18b60de4c98ba35e51d6aa403442274e. --- Items/Weapons/Ranged/HeavenlyGale.cs | 4 ++-- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Ranged/HeavenlyGale.cs b/Items/Weapons/Ranged/HeavenlyGale.cs index 0cafcf0831..c1675b64ba 100644 --- a/Items/Weapons/Ranged/HeavenlyGale.cs +++ b/Items/Weapons/Ranged/HeavenlyGale.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 221; + Item.damage = 300; Item.DamageType = DamageClass.Ranged; Item.width = 138; Item.height = 176; @@ -76,4 +76,4 @@ namespace CalamityMod.Items.Weapons.Ranged Register(); } } -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index b40cc452aa..65e8c606eb 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1285,4 +1285,4 @@ WulfrumBlunderbuss: { [c/83B87E:'The good thing about Wulfrum is that while it breaks fast, it can be reused even faster.] [c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.'] ''' -} \ No newline at end of file +} From 8e0559facee931751097c56fce3e247f2e0dd7eb Mon Sep 17 00:00:00 2001 From: Done2222 Date: Thu, 31 Aug 2023 09:50:57 +0300 Subject: [PATCH 148/258] Heavenly Gale nerf --- Items/Weapons/Ranged/HeavenlyGale.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Ranged/HeavenlyGale.cs b/Items/Weapons/Ranged/HeavenlyGale.cs index c1675b64ba..0cafcf0831 100644 --- a/Items/Weapons/Ranged/HeavenlyGale.cs +++ b/Items/Weapons/Ranged/HeavenlyGale.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 300; + Item.damage = 221; Item.DamageType = DamageClass.Ranged; Item.width = 138; Item.height = 176; @@ -76,4 +76,4 @@ namespace CalamityMod.Items.Weapons.Ranged Register(); } } -} \ No newline at end of file +} From 1ad426a735c21cd1d7242dcd6b08df75e0147586 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Thu, 31 Aug 2023 10:39:17 +0300 Subject: [PATCH 149/258] for some reason i suggested putting this at 130 even though i wrote 162 on my notes --- Items/Weapons/Ranged/DragonsBreath.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/DragonsBreath.cs b/Items/Weapons/Ranged/DragonsBreath.cs index d412ddaefb..7faa5af5dc 100644 --- a/Items/Weapons/Ranged/DragonsBreath.cs +++ b/Items/Weapons/Ranged/DragonsBreath.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 130; + Item.damage = 162; Item.DamageType = DamageClass.Ranged; Item.width = 124; Item.height = 78; From 0e0c893162e6abd868d1ddfa739fdce51187359e Mon Sep 17 00:00:00 2001 From: Done2222 Date: Thu, 31 Aug 2023 13:25:59 +0300 Subject: [PATCH 150/258] The Sponge tooltip fix --- Items/Weapons/Ranged/DragonsBreath.cs | 1 - Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Items/Weapons/Ranged/DragonsBreath.cs b/Items/Weapons/Ranged/DragonsBreath.cs index 7faa5af5dc..7998f6fe0d 100644 --- a/Items/Weapons/Ranged/DragonsBreath.cs +++ b/Items/Weapons/Ranged/DragonsBreath.cs @@ -30,7 +30,6 @@ namespace CalamityMod.Items.Weapons.Ranged Item.DamageType = DamageClass.Ranged; Item.width = 124; Item.height = 78; - Item.useTime = 9; Item.useAnimation = 18; Item.reuseDelay = BetweenShotsPause; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 0b7b5e55d1..c678c3afb6 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1818,7 +1818,7 @@ TheSponge: { ''' Projects a quantum foam barrier that absorbs up to 180 damage The barrier grants 30 defense and reduces damage taken by 30% while active - The barrier starts recharging 6 seconds after being hit + The barrier starts recharging 9 seconds after being hit Recharging from zero to full charge takes 6 seconds Being hit again while recharging restarts the charge timer The barrier's color will change to match your team selection as needed From 8120bc52c53eb39b3d9921e6d1e02341f62db027 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Thu, 31 Aug 2023 09:33:26 -0400 Subject: [PATCH 151/258] Buffed Sand Sharknado Staff because it got completely butchered in 2.0.3 for whatever reason --- Items/Weapons/Summon/SandSharknadoStaff.cs | 6 +++--- Projectiles/Summon/MiniSandShark.cs | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Summon/SandSharknadoStaff.cs b/Items/Weapons/Summon/SandSharknadoStaff.cs index 568f0131ee..61b24397f4 100644 --- a/Items/Weapons/Summon/SandSharknadoStaff.cs +++ b/Items/Weapons/Summon/SandSharknadoStaff.cs @@ -11,17 +11,17 @@ namespace CalamityMod.Items.Weapons.Summon public class SandSharknadoStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; - #region Other stats for easy modifcation + #region Other stats for easy modification public const float ProjVel = 30f; - public const float FireSpeed = 120f; // In frames. 60 frames = 2 seconds. + public const float FireSpeed = 50f; // In frames. 60 frames = 1 second. #endregion public override void SetDefaults() { - Item.damage = 47; + Item.damage = 55; Item.knockBack = 2f; Item.mana = 10; diff --git a/Projectiles/Summon/MiniSandShark.cs b/Projectiles/Summon/MiniSandShark.cs index a71818b08e..ad08daaaf9 100644 --- a/Projectiles/Summon/MiniSandShark.cs +++ b/Projectiles/Summon/MiniSandShark.cs @@ -22,6 +22,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.minion = true; Projectile.friendly = true; Projectile.ignoreWater = true; + Projectile.extraUpdates = 1; Projectile.DamageType = DamageClass.Summon; } @@ -34,6 +35,16 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) // When the projectile hits an enemy, it'll make a dust impact effect. { + Projectile.position = Projectile.Center; + Projectile.width = Projectile.height = 64; + Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); + Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); + Projectile.maxPenetrate = -1; + Projectile.penetrate = -1; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 10; + Projectile.damage = (int)(Projectile.damage * 0.75f); + Projectile.Damage(); SoundEngine.PlaySound(SoundID.Item14, Projectile.position); for (int dustIndex = 0; dustIndex < 36; dustIndex++) { From bf69a301dec14d4f3f222478cd8431d0987422d9 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 31 Aug 2023 12:25:34 -0400 Subject: [PATCH 152/258] Further Sand Sharknado changes --- Items/Weapons/Summon/SandSharknadoStaff.cs | 4 ++-- Projectiles/Summon/MiniSandShark.cs | 3 ++- Projectiles/Summon/SandnadoMinion.cs | 9 +++++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Summon/SandSharknadoStaff.cs b/Items/Weapons/Summon/SandSharknadoStaff.cs index 61b24397f4..95807064b4 100644 --- a/Items/Weapons/Summon/SandSharknadoStaff.cs +++ b/Items/Weapons/Summon/SandSharknadoStaff.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Summon public new string LocalizationCategory => "Items.Weapons.Summon"; #region Other stats for easy modification - public const float ProjVel = 30f; + public const float ProjSpeed = 30f; public const float FireSpeed = 50f; // In frames. 60 frames = 1 second. @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - Item.damage = 55; + Item.damage = 47; Item.knockBack = 2f; Item.mana = 10; diff --git a/Projectiles/Summon/MiniSandShark.cs b/Projectiles/Summon/MiniSandShark.cs index ad08daaaf9..939e5d60a1 100644 --- a/Projectiles/Summon/MiniSandShark.cs +++ b/Projectiles/Summon/MiniSandShark.cs @@ -23,6 +23,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.extraUpdates = 1; + Projectile.tileCollide = false; Projectile.DamageType = DamageClass.Summon; } @@ -43,7 +44,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.penetrate = -1; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 10; - Projectile.damage = (int)(Projectile.damage * 0.75f); + Projectile.damage = (int)(Projectile.damage * 0.6f); Projectile.Damage(); SoundEngine.PlaySound(SoundID.Item14, Projectile.position); for (int dustIndex = 0; dustIndex < 36; dustIndex++) diff --git a/Projectiles/Summon/SandnadoMinion.cs b/Projectiles/Summon/SandnadoMinion.cs index 364096e900..d2356c97a6 100644 --- a/Projectiles/Summon/SandnadoMinion.cs +++ b/Projectiles/Summon/SandnadoMinion.cs @@ -143,11 +143,16 @@ namespace CalamityMod.Projectiles.Summon public void ShootTarget(NPC target) { - if (TimerForShooting == SandSharknadoStaff.FireSpeed && Main.myPlayer == Projectile.owner) + int randomDelay = Main.rand.Next(-5, 6); + Vector2 targetPos = target.Center; + Vector2 ProjVel = targetPos - Projectile.Center; + ProjVel.Normalize(); + ProjVel *= SandSharknadoStaff.ProjSpeed; + if (TimerForShooting == SandSharknadoStaff.FireSpeed + randomDelay && Main.myPlayer == Projectile.owner) { int sandSharkProj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, - CalamityUtils.CalculatePredictiveAimToTarget(Projectile.Center, target, SandSharknadoStaff.ProjVel), + ProjVel, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, From 953463d32ba5bc11c4c6b759055668cc27793882 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Thu, 31 Aug 2023 19:26:12 +0300 Subject: [PATCH 153/258] Blossom Flux nerf (20 -> 14) --- Items/Weapons/Ranged/BlossomFlux.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/BlossomFlux.cs b/Items/Weapons/Ranged/BlossomFlux.cs index 5ce6e69dcb..08bf441c83 100644 --- a/Items/Weapons/Ranged/BlossomFlux.cs +++ b/Items/Weapons/Ranged/BlossomFlux.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 20; + Item.damage = 14; Item.DamageType = DamageClass.Ranged; Item.width = 38; Item.height = 68; From 5a32cff13594c1e07edd4a7be1b0bd123c750181 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Thu, 31 Aug 2023 22:04:52 +0300 Subject: [PATCH 154/258] Hoarfrost Bow and Herring Staff nerfs --- Items/Weapons/Ranged/HoarfrostBow.cs | 2 +- Items/Weapons/Summon/HerringStaff.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Ranged/HoarfrostBow.cs b/Items/Weapons/Ranged/HoarfrostBow.cs index 80a9e04a96..9f290e1709 100644 --- a/Items/Weapons/Ranged/HoarfrostBow.cs +++ b/Items/Weapons/Ranged/HoarfrostBow.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 56; + Item.damage = 37; Item.DamageType = DamageClass.Ranged; Item.width = 26; Item.height = 70; diff --git a/Items/Weapons/Summon/HerringStaff.cs b/Items/Weapons/Summon/HerringStaff.cs index 4f18837d2d..28fdad0288 100644 --- a/Items/Weapons/Summon/HerringStaff.cs +++ b/Items/Weapons/Summon/HerringStaff.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Summon public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetDefaults() { - Item.damage = 17; + Item.damage = 15; Item.knockBack = 1.25f; Item.mana = 10; From f68e7b17c930b3544f7154131e6ea8e88ab6fee8 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 31 Aug 2023 13:25:51 -0700 Subject: [PATCH 155/258] Life regen phrasing changes made almost everything cal changes about regen in vanilla say HP/s instead and made all calamity items and buffs use HP/s as well (the stuff Ozz missed) Only exception is OOA armors, but they don't originally specify regen given so I'm not gonna change it --- Items/CalamityGlobalItemTooltip.cs | 14 ++++---- .../en-US/Mods.CalamityMod.Buffs.hjson | 8 ++--- .../Mods.CalamityMod.Items.Accessories.hjson | 2 +- .../Mods.CalamityMod.Items.Potions.hjson | 32 +++++++++---------- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 2 +- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index c7ebc3d180..7ce3b741ee 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -442,7 +442,7 @@ namespace CalamityMod.Items // Palladium if (item.type == ItemID.PalladiumSword || item.type == ItemID.PalladiumPike) - EditTooltipByName("Knockback", (line) => line.Text += "\nIncreases life regen on hit"); + EditTooltipByName("Knockback", (line) => line.Text += "\nIncreases natural life regen on hit"); // Mythril if (item.type == ItemID.MythrilSword || item.type == ItemID.MythrilHalberd) @@ -588,7 +588,7 @@ namespace CalamityMod.Items // Fairy Boots buff. if (item.type == ItemID.FairyBoots) EditTooltipByNum(2, (line) => line.Text += "\nFairies can spawn at any time on the surface and spawn far more frequently\n" + - "Nearby fairies grant increased life regen, defense and movement speed\n" + + "Nearby fairies grant +2 HP/s life regen, 10 defense and 10% movement speed\n" + "Fairies are immune to damage and will no longer flee"); // Armor Crunch immunity pre-Golem. @@ -729,7 +729,7 @@ namespace CalamityMod.Items if (item.type == ItemID.TinHelmet) AddTooltip("3% increased critical strike chance"); if (item.type == ItemID.TinChainmail) - AddTooltip("+1 life regen"); + AddTooltip("+0.5 HP/s life regen"); if (item.type == ItemID.TinGreaves) AddTooltip("5% increased movement speed"); @@ -745,7 +745,7 @@ namespace CalamityMod.Items if (item.type == ItemID.SilverHelmet) AddTooltip("5% increased critical strike chance"); if (item.type == ItemID.SilverChainmail) - AddTooltip("+2 life regen"); + AddTooltip("+1 HP/s life regen"); if (item.type == ItemID.SilverGreaves) AddTooltip("8% increased movement speed"); @@ -753,7 +753,7 @@ namespace CalamityMod.Items if (item.type == ItemID.TungstenHelmet) AddTooltip("7% increased damage"); if (item.type == ItemID.TungstenChainmail) - AddTooltip("+1 life regen"); + AddTooltip("+0.5 HP/s life regen"); if (item.type == ItemID.TungstenGreaves) AddTooltip("8% increased movement speed"); @@ -782,7 +782,7 @@ namespace CalamityMod.Items { EditTooltipByNum(0, (line) => { string newTooltip = line.Text.Replace("2%", "5%"); - newTooltip += "\n+1 life regen"; + newTooltip += "\n+0.5 HP/s life regen"; line.Text = newTooltip; }); } @@ -945,7 +945,7 @@ namespace CalamityMod.Items AddWingStats(3f, 1f, 0, 25); if (item.type == ItemID.AngelWings) - AddWingStats(6.25f, 1f, 1, 100, "+20 max life, +10 defense and +2 life regen"); + AddWingStats(6.25f, 1f, 1, 100, "+20 max life, +10 defense and +1 HP/s life regen"); if (item.type == ItemID.DemonWings) AddWingStats(6.25f, 1f, 1, 100, "5% increased damage and critical strike chance"); diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index d352342248..83f5f3c1ea 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -754,7 +754,7 @@ KamiBuff: { Mushy: { DisplayName: Mushy - Description: Increased defense by 6 and life regen by 2 + Description: Increased defense by 6 and life regen by 1HP/s } PhantomicEmpowerment: { @@ -1479,12 +1479,12 @@ WulfrumDroidBuff: { PinkJellyRegen: { DisplayName: Pink Jelly Regen - Description: The power of goo refreshes you, life regen increased by 4 + Description: The power of goo refreshes you, life regen increased by 2HP/s } GreenJellyRegen: { DisplayName: Green Jelly Regen - Description: The regenerative goo empowers you, life regen increased by 5 + Description: The regenerative goo empowers you, life regen increased by 2.5HP/s } AbsorberRegen: { @@ -1492,7 +1492,7 @@ AbsorberRegen: { Description: ''' You are blessed by the culmimation of nature's powers - Life regen increased by 6, damage increased by 8%, damage reduction increased by 5% + Life regen increased by 3HP/s, damage increased by 8%, damage reduction increased by 5% ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index c678c3afb6..2153fdf732 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -799,7 +799,7 @@ FungalSymbiote: { Tooltip: ''' You grow mushrooms on the grass beneath you - Consuming mushrooms provides the Mushy buff, increasing defense by 6 and granting 0.5 HP/s life regen + Consuming mushrooms provides the Mushy buff, increasing defense by 6 and granting 1 HP/s life regen All mushroom-based weapons deal 10% more damage and emit non-damaging mushrooms ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson index b694abfb31..b1e804aab3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Potions.hjson @@ -180,7 +180,7 @@ BloodyMary: { Tooltip: ''' 10% increased damage and movement speed during a Blood Moon - Reduces life regen by 4 and defense by 4% + Reduces life regen by 2 HP/s and defense by 4% [c/B00BA5:'Extra spicy... and bloody!'] ''' } @@ -189,7 +189,7 @@ CaribbeanRum: { DisplayName: Caribbean Rum Tooltip: ''' - Increases life regen by 2, movement speed by 10% and wing flight time by 20% + Increases life regen by 1 HP/s, movement speed by 10% and wing flight time by 20% Makes you floaty and reduces defense by 10% [c/B00BA5:'Why is the rum gone?'] ''' @@ -210,7 +210,7 @@ Everclear: { Tooltip: ''' 25% increased damage - Reduces life regen by 10 and defense by 30% + Reduces life regen by 5 HP/s and defense by 30% [c/B00BA5:'This is the most potent booze I have, be careful with it.'] ''' } @@ -220,7 +220,7 @@ EvergreenGin: { Tooltip: ''' Multiplies all sickness and water-related debuff damage by 1.25x - Reduces life regen by 1 + Reduces life regen by 0.5 HP/s [c/B00BA5:'It tastes like a Christmas tree, if you can imagine that.'] ''' } @@ -240,7 +240,7 @@ Fireball: { Tooltip: ''' Multiplies all fire-based debuff damage by 1.25x - Reduces life regen by 1 + Reduces life regen by 0.5 HP/s [c/B00BA5:'A great-tasting cinnamon whiskey.'] ''' } @@ -259,7 +259,7 @@ Margarita: { Tooltip: ''' Halves the duration of most harmful debuffs - Reduces defense by 6% and life regen by 1 + Reduces defense by 6% and life regen by 0.5 HP/s 3 minute duration [c/B00BA5:'One of the best drinks ever created, enjoy it while it lasts.'] ''' @@ -270,7 +270,7 @@ Moonshine: { Tooltip: ''' Increases defense by 10 and damage reduction by 3% - Reduces life regen by 1 + Reduces life regen by 0.5 HP/s [c/B00BA5:'This stuff is pretty strong, but I'm sure you can handle it.'] ''' } @@ -280,7 +280,7 @@ MoscowMule: { Tooltip: ''' Increases damage by 9%, knockback by 50% and critical strike chance by 3% - Reduces life regen by 4 + Reduces life regen by 2 HP/s [c/B00BA5:'I once heard the copper mug can be toxic and I told 'em, 'listen dummy, I'm already poisoning myself!''] ''' } @@ -299,7 +299,7 @@ RedWine: { DisplayName: Red Wine Tooltip: ''' - Reduces life regen by 1 for 15 seconds + Reduces life regen by 0.5 HP/s for 15 seconds [c/B00BA5:'Too dry for my taste.'] ''' } @@ -308,7 +308,7 @@ Rum: { DisplayName: Rum Tooltip: ''' - Increases life regen by 2 and movement speed by 10% + Increases life regen by 1 HP/s and movement speed by 10% Reduces defense by 5% [c/B00BA5:'Sweet and potent, just how I like it.'] ''' @@ -319,7 +319,7 @@ Screwdriver: { Tooltip: ''' Multiplies piercing projectile damage by 1.05x - Reduces life regen by 1 + Reduces life regen by 0.5 HP/s [c/B00BA5:'Do you have a screw loose?'] ''' } @@ -330,7 +330,7 @@ StarBeamRye: { ''' Increases max mana by 50, magic damage by 8%, and reduces mana usage by 10% - Reduces defense by 6% and life regen by 2 + Reduces defense by 6% and life regen by 1 HP/s [c/B00BA5:'Made from some stuff I found near the Astral Meteor crash site. Don't worry, it's safe, trust me...'] ''' } @@ -340,7 +340,7 @@ Tequila: { Tooltip: ''' Increases knockback by 10%, crit chance by 4% and defense by 5 during daytime - Reduces life regen by 1 + Reduces life regen by 0.5 HP/s [c/B00BA5:'Great for mixing up daytime drinks.'] ''' } @@ -350,7 +350,7 @@ TequilaSunrise: { Tooltip: ''' Increases knockback by 20%, crit chance by 8% and defense by 10 during daytime - Reduces life regen by 2 + Reduces life regen by 1 HP/s [c/B00BA5:'The greatest daytime drink I've ever had.'] ''' } @@ -360,7 +360,7 @@ Vodka: { Tooltip: ''' Increases damage by 6% and critical strike chance by 2% - Reduces life regen by 1 and defense by 5% + Reduces life regen by 0.5 HP/s and defense by 5% [c/B00BA5:'The number one alcohol for creating great mixed drinks.'] ''' } @@ -380,7 +380,7 @@ WhiteWine: { Tooltip: ''' Increases magic damage by 8% - Reduces defense by 6% and life regen by 1 + Reduces defense by 6% and life regen by 0.5 HP/s [c/B00BA5:'I drank a full barrel of this stuff once in one night, I couldn't remember who I was the next day.'] ''' } \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 69377fae41..d672b623a1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -843,7 +843,7 @@ OrichalcumSpikedGemstone: { PalladiumJavelin: { DisplayName: Palladium Javelin - Tooltip: Stealth strikes split into more javelins and boost life regeneration on hits + Tooltip: Stealth strikes split into more javelins and boost natural life regeneration on hits } Penumbra: { From 97cbab115e8993a5ebc8b068071aaa0bea4f1d4d Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 31 Aug 2023 14:09:57 -0700 Subject: [PATCH 156/258] Tier shifted Fairy Boots and Rampart of Deities Fairy boots is Spectre Boots, Flower Boots, and 5 souls of light Rampart is Frozen Shield, Deific amulet, 5 auric bars and 5 ASE --- Items/Accessories/RampartofDeities.cs | 9 ++++----- Utilities/CalamityRecipes.cs | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Accessories/RampartofDeities.cs b/Items/Accessories/RampartofDeities.cs index c994cc1856..6ac921ae46 100644 --- a/Items/Accessories/RampartofDeities.cs +++ b/Items/Accessories/RampartofDeities.cs @@ -17,10 +17,10 @@ namespace CalamityMod.Items.Accessories { Item.width = 64; Item.height = 62; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.Rarity15BuyPrice; Item.defense = 18; Item.accessory = true; - Item.rare = ModContent.RarityType(); + Item.rare = ModContent.RarityType(); } public override void UpdateAccessory(Player player, bool hideVisual) @@ -57,9 +57,8 @@ namespace CalamityMod.Items.Accessories CreateRecipe(). AddIngredient(ItemID.FrozenShield). AddIngredient(). - AddIngredient(10). - AddIngredient(10). - AddIngredient(4). + AddIngredient(5). + AddIngredient(5). AddTile(). Register(); } diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index 75a77e5ee8..8590dabaed 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -827,6 +827,7 @@ namespace CalamityMod { Vanilla(ItemID.BundleofBalloons), AddIngredient(ModContent.ItemType(), 3) }, { r => r.HasResult(ItemID.HorseshoeBundle) && !r.HasIngredient(ItemID.BundleofBalloons), AddIngredient(ModContent.ItemType(), 3) }, { Vanilla(ItemID.NightsEdge), AddIngredient(ModContent.ItemType(), 5) }, + { Vanilla(ItemID.FairyBoots), AddIngredient(ItemID.SoulofLight, 5) }, { Vanilla(ItemID.SpiritFlame), AddGroup(AnyAdamantiteBar, 2) }, { Vanilla(ItemID.TerraBlade), AddIngredient(ModContent.ItemType(), 12) }, { Vanilla(ItemID.FireGauntlet), AddIngredient(ModContent.ItemType(), 5) }, From abbe45de317d9af14112c22047c388063fad19f3 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 01:48:06 +0100 Subject: [PATCH 157/258] Reworked Profaned Soul Artifact --- CalPlayer/CalamityPlayer.cs | 41 +-- CalPlayer/CalamityPlayerHitHurt.cs | 80 +++++- CalPlayer/CalamityPlayerMiscEffects.cs | 83 +++++- CalPlayer/CalamityPlayerOnHit.cs | 2 +- Cooldowns/CooldownRegistry.cs | 2 +- Cooldowns/ProfanedSoulArtifact.cs | 16 -- Cooldowns/ProfanedSoulArtifact.png | Bin 356 -> 0 bytes Cooldowns/ProfanedSoulArtifactOutline.png | Bin 184 -> 0 bytes Cooldowns/ProfanedSoulArtifactOverlay.png | Bin 159 -> 0 bytes ILEditing/ILChangesLoading.cs | 1 + Items/Accessories/ProfanedSoulArtifact.cs | 138 +++++++++- Items/Accessories/ProfanedSoulCrystal.cs | 19 +- Items/CalamityGlobalItem.cs | 6 +- .../Mods.CalamityMod.Items.Accessories.hjson | 12 +- .../Mods.CalamityMod.Projectiles.Summon.hjson | 1 + Localization/en-US/Mods.CalamityMod.UI.hjson | 3 +- NPCs/CalamityGlobalTownNPC.cs | 2 +- NPCs/Providence/Providence.cs | 2 +- Projectiles/Summon/MiniGuardianAttack.cs | 22 +- Projectiles/Summon/MiniGuardianDefense.cs | 241 +++++++++++++----- Projectiles/Summon/MiniGuardianHealer.cs | 4 +- Projectiles/Summon/MiniGuardianRock.cs | 129 ++++++++++ 22 files changed, 651 insertions(+), 153 deletions(-) delete mode 100644 Cooldowns/ProfanedSoulArtifact.cs delete mode 100644 Cooldowns/ProfanedSoulArtifact.png delete mode 100644 Cooldowns/ProfanedSoulArtifactOutline.png delete mode 100644 Cooldowns/ProfanedSoulArtifactOverlay.png create mode 100644 Projectiles/Summon/MiniGuardianRock.cs diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index bf41531e4b..b2a02dc6da 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -370,13 +370,13 @@ namespace CalamityMod.CalPlayer #endregion #region Energy Shields - public bool HasAnyEnergyShield => roverDrive || lunicCorpsSet || sponge; + public bool HasAnyEnergyShield => roverDrive || lunicCorpsSet || ((pSoulArtifact && !profanedCrystal) || profanedCrystalBuffs) || sponge; public bool freeDodgeFromShieldAbsorption = false; public bool drawnAnyShieldThisFrame = false; // TODO -- Some way to show the player their total shield points. - public int TotalEnergyShielding => RoverDriveShieldDurability + LunicCorpsShieldDurability + SpongeShieldDurability; - public int TotalMaxShieldDurability => (roverDrive ? RoverDrive.ShieldDurabilityMax : 0) + (lunicCorpsSet ? LunicCorpsHelmet.ShieldDurabilityMax : 0) + (sponge ? TheSponge.ShieldDurabilityMax : 0); + public int TotalEnergyShielding => RoverDriveShieldDurability + LunicCorpsShieldDurability + pSoulShieldDurability + SpongeShieldDurability; + public int TotalMaxShieldDurability => (roverDrive ? RoverDrive.ShieldDurabilityMax : 0) + (lunicCorpsSet ? LunicCorpsHelmet.ShieldDurabilityMax : 0) + (profanedCrystalBuffs ? ProfanedSoulCrystal.ShieldDurabilityMax : ((pSoulArtifact && !profanedCrystal) ? ProfanedSoulArtifact.ShieldDurabilityMax : 0)) + (sponge ? TheSponge.ShieldDurabilityMax : 0); public int RoverDriveShieldDurability = 0; public int LunicCorpsShieldDurability = 0; @@ -389,6 +389,12 @@ namespace CalamityMod.CalPlayer // Lunic Corps shield comes from an armor set and its visibility is non optional internal float lunicCorpsShieldPartialRechargeProgress = 0f; internal bool playedLunicCorpsShieldSound = false; + + //Profaned soul shield applies to psa and psc, with differing max hps for each + public int pSoulShieldDurability = 0; + public bool pSoulShieldVisible = false; + internal bool playedProfanedSoulShieldSound = false; + internal float pSoulShieldPartialRechargeProgress = 0f; public bool sponge = false; public bool spongeShieldVisible = false; @@ -543,7 +549,7 @@ namespace CalamityMod.CalPlayer public bool eArtifact = false; public bool dArtifact = false; public bool auricSArtifact = false; - public bool pArtifact = false; + public bool pSoulArtifact = false; public bool giantPearl = false; public bool normalityRelocator = false; public bool flameLickedShell = false; @@ -1446,6 +1452,9 @@ namespace CalamityMod.CalPlayer LunicCorpsShieldDurability = 0; if (!sponge) SpongeShieldDurability = 0; + if (!pSoulArtifact) + pSoulShieldDurability = 0; + pSoulShieldVisible = false; roverDrive = false; roverDriveShieldVisible = false; sponge = false; @@ -1625,7 +1634,7 @@ namespace CalamityMod.CalPlayer eArtifact = false; dArtifact = false; auricSArtifact = false; - pArtifact = false; + pSoulArtifact = false; giantPearl = false; normalityRelocator = false; flameLickedShell = false; @@ -2489,6 +2498,7 @@ namespace CalamityMod.CalPlayer RoverDriveShieldDurability = 0; LunicCorpsShieldDurability = 0; SpongeShieldDurability = 0; + pSoulShieldDurability = 0; #endregion #region UI @@ -4657,6 +4667,7 @@ namespace CalamityMod.CalPlayer if (Player.whoAmI == Main.myPlayer && !endoCooper && randAmt > 0 && Main.rand.NextBool(randAmt) && chaseable) { int spearsFired = 0; + for (int i = 0; i < Main.projectile.Length; i++) { if (spearsFired == 2) @@ -4664,24 +4675,15 @@ namespace CalamityMod.CalPlayer if (Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].friendly) { bool attack = Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType(); - bool defense = Main.projectile[i].owner == Player.whoAmI && Main.projectile[i].type == ModContent.ProjectileType(); - if (attack || defense) + if (attack) { - int numSpears = attack ? 12 : 6; - int dam = Main.projectile[i].originalDamage; - if (!attack) - dam = (int)(dam * 0.5f); - float angleVariance = MathHelper.TwoPi / (float)numSpears; - float spinOffsetAngle = MathHelper.Pi / (2f * numSpears); + int numSpears = profanedCrystalBuffs ? 12 : 6; + int dam = (int)(Main.projectile[i].originalDamage * (profanedCrystalBuffs ? 1f : 0.25f)); for (int x = 0; x < numSpears; x++) { - Vector2 posVec = new Vector2(8f, 0f).RotatedByRandom(MathHelper.TwoPi); - posVec = posVec.RotatedBy(angleVariance); - Vector2 velocity = new Vector2(posVec.X, posVec.Y).RotatedBy(spinOffsetAngle); - velocity.Normalize(); - velocity *= 8f; - int proj = Projectile.NewProjectile(source, Main.projectile[i].Center + posVec, velocity, ModContent.ProjectileType(), dam, 0f, Player.whoAmI, 0f, 0f); + float angle = MathHelper.TwoPi / numSpears * x; + int proj = Projectile.NewProjectile(source, Main.projectile[i].Center, angle.ToRotationVector2().RotatedBy(Math.Atan(-45f)) * 8f, ModContent.ProjectileType(), dam, 0f, Player.whoAmI, 0f, 0f); Main.projectile[proj].originalDamage = dam; } spearsFired++; @@ -4730,7 +4732,6 @@ namespace CalamityMod.CalPlayer public override void PostUpdate() //needs to be here else it doesn't work properly, otherwise i'd have stuck it with the wing anim stuffs { - ProfanedSoulCrystal.DetermineTransformationEligibility(Player); if (!profanedCrystalHide && (profanedCrystal || profanedCrystalForce) && Player.legs == EquipLoader.GetEquipSlot(Mod, "ProfanedSoulCrystal", EquipType.Legs)) { bool usingCarpet = Player.carpetTime > 0 && Player.controlJump; //doesn't make sense for carpet to use jump frame since you have solid ground diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 106de27fb0..5b3295825b 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -25,6 +25,7 @@ using CalamityMod.NPCs.Abyss; using CalamityMod.NPCs.ExoMechs.Apollo; using CalamityMod.NPCs.NormalNPCs; using CalamityMod.NPCs.Other; +using CalamityMod.NPCs.ProfanedGuardians; using CalamityMod.NPCs.Providence; using CalamityMod.NPCs.SunkenSea; using CalamityMod.NPCs.SupremeCalamitas; @@ -1537,6 +1538,12 @@ namespace CalamityMod.CalPlayer SoundEngine.PlaySound(TheSponge.ShieldHurtSound, Player.Center); hurtSoundTimer = 20; } + else if (((pSoulArtifact && !profanedCrystal) || profanedCrystalBuffs) && pSoulShieldDurability > 0) + { + modifiers.DisableSound(); + SoundEngine.PlaySound(ProfanedGuardianDefender.ShieldDeathSound); + hurtSoundTimer = 20; + } else if ((profanedCrystal || profanedCrystalForce) && !profanedCrystalHide) { modifiers.DisableSound(); @@ -1643,6 +1650,7 @@ namespace CalamityMod.CalPlayer // Currently implemented energy shields: // - Rover Drive // - Lunic Corps Armor set bonus + // - Profaned Soul Artifact/Crystal // - The Sponge // // If the shield(s) completely absorb the hit, iframes are granted on the spot and the hit is marked to be dodged. @@ -1720,6 +1728,39 @@ namespace CalamityMod.CalPlayer // Actually remove damage from the incoming hit, so that later shields have less damage incoming. info.Damage -= masterChefDamageBlocked; } + + // PSA + if (pSoulArtifact && pSoulShieldDurability > 0 && !shieldsFullyAbsorbedHit) + { + // Check whether this shield can fully absorb the incoming hit (or what's left of it). + bool thisShieldCanFullyAbsorb = pSoulShieldDurability >= info.Damage; + + // Tally up how much damage was blocked by this shield. + int pSoulDamageBlocked = Math.Min(pSoulShieldDurability, info.Damage); + totalDamageBlocked += pSoulDamageBlocked; + + // Deal all incoming damage to this shield, because it is available. + pSoulShieldDurability -= info.Damage; + shieldsTookHit = true; + + // Hits which break the Rover Drive shield cause a sound and slight screen shake. + // Multiple shields breaking simultaneously has slightly stronger screen shake. + if (pSoulShieldDurability <= 0) + { + pSoulShieldDurability = 0; + SoundEngine.PlaySound(SoundID.Lavafall, Player.Center); + Player.Calamity().GeneralScreenShakePower += anyShieldBroke ? 0.5f : 2f; + anyShieldBroke = true; + } + + // Mark the hit as being canceled if this shield has enough durability to fully absorb it. + // This prevents further shields from attempting to absorb the hit. + if (thisShieldCanFullyAbsorb) + shieldsFullyAbsorbedHit = true; + + // Actually remove damage from the incoming hit, so that later shields have less damage incoming. + info.Damage -= pSoulDamageBlocked; + } // THE SPONGE if (sponge && SpongeShieldDurability > 0 && !shieldsFullyAbsorbedHit) @@ -1767,20 +1808,27 @@ namespace CalamityMod.CalPlayer // Spawn particles when hit with the shields up, regardless of whether or not the shields broke. // More particles spawn if a shield broke. - int numParticles = Main.rand.Next(2, 6) + (anyShieldBroke ? 6 : 0); - for (int i = 0; i < numParticles; i++) + if (pSoulArtifact && !sponge) { - // Rover Drive has slightly higher particle velocity - float maxVelocity = roverDrive ? 14f : 7f; - Vector2 velocity = Main.rand.NextVector2CircularEdge(1f, 1f) * Main.rand.NextFloat(3f, maxVelocity); - velocity.X += 5f * info.HitDirection; + //TODO + } + else + { + int numParticles = Main.rand.Next(2, 6) + (anyShieldBroke ? 6 : 0); + for (int i = 0; i < numParticles; i++) + { + // Rover Drive has slightly higher particle velocity + float maxVelocity = roverDrive ? 14f : 7f; + Vector2 velocity = Main.rand.NextVector2CircularEdge(1f, 1f) * Main.rand.NextFloat(3f, maxVelocity); + velocity.X += 5f * info.HitDirection; - float scale = Main.rand.NextFloat(2.5f, 3f); - Color particleColor = Main.rand.NextBool() ? new Color(99, 255, 229) : new Color(25, 132, 247); - int lifetime = 25; + float scale = Main.rand.NextFloat(2.5f, 3f); + Color particleColor = Main.rand.NextBool() ? new Color(99, 255, 229) : new Color(25, 132, 247); + int lifetime = 25; - var shieldParticle = new TechyHoloysquareParticle(Player.Center, velocity, scale, particleColor, lifetime); - GeneralParticleHandler.SpawnParticle(shieldParticle); + var shieldParticle = new TechyHoloysquareParticle(Player.Center, velocity, scale, particleColor, lifetime); + GeneralParticleHandler.SpawnParticle(shieldParticle); + } } // Update Rover Drive durability on the cooldown rack. @@ -1791,6 +1839,10 @@ namespace CalamityMod.CalPlayer if (lunicCorpsSet && cooldowns.TryGetValue(Cooldowns.LunicCorpsShieldDurability.ID, out var masterChefDurabilityCD)) masterChefDurabilityCD.timeLeft = LunicCorpsShieldDurability; + // Update PSA/PSC durability on the cooldown rack + if ((pSoulArtifact && (!profanedCrystal || profanedCrystalBuffs)) && cooldowns.TryGetValue(Cooldowns.ProfanedSoulShield.ID, out var profanedSoulDurabilityCD)) + profanedSoulDurabilityCD.timeLeft = pSoulShieldDurability; + // Update Sponge durability on the cooldown rack. if (sponge && cooldowns.TryGetValue(SpongeDurability.ID, out var spongeDurabilityCD)) spongeDurabilityCD.timeLeft = SpongeShieldDurability; @@ -1808,6 +1860,9 @@ namespace CalamityMod.CalPlayer if (lunicCorpsSet) Player.AddCooldown(LunicCorpsShieldRecharge.ID, LunicCorpsHelmet.ShieldRechargeDelay, true); + if (pSoulArtifact && (!profanedCrystal || profanedCrystalBuffs)) + Player.AddCooldown(ProfanedSoulShieldRecharge.ID, profanedCrystalBuffs ? (60 * 5) : (60 * 10), true); // 5 seconds psc, 10 seconds psa + // Set The Sponge's recharge delay to full. Override any existing cooldown instance. if (sponge) Player.AddCooldown(SpongeRecharge.ID, TheSponge.ShieldRechargeDelay, true); @@ -2185,9 +2240,6 @@ namespace CalamityMod.CalPlayer #region Post Hurt public override void PostHurt(Player.HurtInfo hurtInfo) { - if (pArtifact && !profanedCrystal) - Player.AddCooldown(Cooldowns.ProfanedSoulArtifact.ID, CalamityUtils.SecondsToFrames(5)); - // Silver Armor medkit timer if (silverMedkit && hurtInfo.Damage >= SilverArmorSetChange.SetBonusMinimumDamageToHeal) silverMedkitTimer = SilverArmorSetChange.SetBonusHealTime; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 927ac5aaa3..d5c7b565a4 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1038,19 +1038,13 @@ namespace CalamityMod.CalPlayer Player.GetCritChance() += critUp; } - bool profanedSoulBuffs = profanedCrystalBuffs || (!profanedCrystal && pArtifact) || (profanedCrystal && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs); + bool profanedSoulBuffs = profanedCrystalBuffs || (!profanedCrystal && pSoulArtifact) || (profanedCrystal && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs); - // Offense bonus. You always get the max minions, even during the effect of the burnout debuff + // Guardian bonuses if (profanedSoulBuffs) - Player.maxMinions++; - - // Guardian bonuses if not burnt out - if (profanedSoulBuffs && !Player.HasCooldown(Cooldowns.ProfanedSoulArtifact.ID)) { - // Defender bonus - Player.moveSpeed += 0.1f; - Player.endurance += 0.05f; - + // Offense bonus + Player.maxMinions++; // Healer bonus if (healCounter > 0) healCounter--; @@ -3021,11 +3015,11 @@ namespace CalamityMod.CalPlayer if (auricSArtifact && Player.FindBuffIndex(ModContent.BuffType()) != -1) Player.maxMinions += Player.ownedProjectileCounts[ModContent.ProjectileType()]; - if (pArtifact) + if (pSoulArtifact) { if (Player.whoAmI == Main.myPlayer) { - var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType())); + var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType())); if (Player.FindBuffIndex(ModContent.BuffType()) == -1) Player.AddBuff(ModContent.BuffType(), 3600, true); @@ -3046,7 +3040,8 @@ namespace CalamityMod.CalPlayer if (Player.ownedProjectileCounts[ModContent.ProjectileType()] < guardianAmt) { - var babO = Projectile.NewProjectileDirect(source, Player.Center, Vector2.UnitY * -1f, ModContent.ProjectileType(), 1, 1f, Main.myPlayer, babCheck); + float spearCounter = profanedCrystal ? 0f : 15f; + var babO = Projectile.NewProjectileDirect(source, Player.Center, Vector2.UnitY * -1f, ModContent.ProjectileType(), 1, 1f, Main.myPlayer, babCheck, spearCounter); babO.originalDamage = babDamage; } } @@ -3085,7 +3080,7 @@ namespace CalamityMod.CalPlayer Lighting.AddLight(Player.Center, enrage ? 1.2f : offenseBuffs ? 1f : 0.2f, enrage ? 0.21f : offenseBuffs ? 0.2f : 0.01f, 0); if (enrage) { - bool special = Player.name == "Amber" || Player.name == "Nincity" || Player.name == "IbanPlay" || Player.name == "Chen"; //People who either helped create the item or test it. + bool special = ProfanedSoulCrystal.testerNames.Any(name => name.Equals(Player.name)); for (int i = 0; i < 3; i++) { int fire = Dust.NewDust(Player.position, Player.width, Player.height, special ? 231 : (int)CalamityDusts.ProfanedFire, 0f, 0f, 100, special ? Color.DarkRed : default, 1f); @@ -3550,6 +3545,66 @@ namespace CalamityMod.CalPlayer } } + // If PSA/PSC is not equipped, obliterate its durability cooldown. + // The recharge cooldown is intentionally left in place to prevent hot swapping to recharge the shield + if (!pSoulArtifact) + { + if (cooldowns.TryGetValue(Cooldowns.ProfanedSoulShield.ID, out var cdDurability)) + cdDurability.timeLeft = 0; + + // As PSA/PSC's shield can be left in a partially recharged state, this is for safety. + // If the player does not have the accessory equipped for even one frame, discharge all shields. + pSoulShieldDurability = 0; + } + // Stuff to do if PSA/PSC is equipped + else + { + //Force check if profaned crystal buffs are active + ProfanedSoulCrystal.DetermineTransformationEligibility(Player); + int maxDurability = profanedCrystalBuffs + ? ProfanedSoulCrystal.ShieldDurabilityMax + : ProfanedSoulArtifact.ShieldDurabilityMax; + + if (pSoulShieldDurability == 0 && !cooldowns.ContainsKey(Cooldowns.ProfanedSoulShieldRecharge.ID)) + Player.AddCooldown(ProfanedSoulShieldRecharge.ID, ProfanedSoulArtifact.ShieldRechargeDelay); + + // If the shield has greater than zero durability but that durability is not on the cooldown rack, add it to the cooldown rack. + if (pSoulShieldDurability > 0 && !cooldowns.ContainsKey(Cooldowns.ProfanedSoulShield.ID)) + { + var durabilityCooldown = Player.AddCooldown(Cooldowns.ProfanedSoulShield.ID, maxDurability); + durabilityCooldown.timeLeft = pSoulShieldDurability; + } + + // If the shield has greater than zero durability and isn't in its recharge delay, actively replenish shield points. + // Play a sound on the first frame this occurs. + if (pSoulShieldDurability > 0 && !cooldowns.ContainsKey(ProfanedSoulShieldRecharge.ID)) + { + if (!playedProfanedSoulShieldSound) + SoundEngine.PlaySound(ProvidenceBoss.BurnStartSound, Player.Center); + playedProfanedSoulShieldSound = true; + + // This number is not an integer, and stores exact per-frame recharge progress. + pSoulShieldPartialRechargeProgress += maxDurability / (float)ProfanedSoulArtifact.TotalShieldRechargeTime; + + // Floor the value to get whole number of shield points recharged this frame. + int pointsActuallyRecharged = (int)MathF.Floor(pSoulShieldPartialRechargeProgress); + + // Give those points to the real shield durability, capping the result. Then remove them from recharge progress. + pSoulShieldDurability = Math.Min(pSoulShieldDurability + pointsActuallyRecharged, maxDurability); + pSoulShieldPartialRechargeProgress -= pointsActuallyRecharged; + + // Update the cooldown rack's durability indicator. + if (cooldowns.TryGetValue(Cooldowns.ProfanedSoulShield.ID, out var cdDurability)) + cdDurability.timeLeft = pSoulShieldDurability; + } + + // Add light if this shield is currently active + if (pSoulShieldDurability > 0 && !shieldAddedLight) + { + Lighting.AddLight(Player.Center, Color.Orange.ToVector3() * 0.4f); + shieldAddedLight = true; + } + } // If the Lunic Corps armor is not equipped, obliterate its durability cooldown. // The recharge cooldown is intentionally left in place to prevent hot swapping to recharge the shield if (!lunicCorpsSet) diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 0784b84d49..6a158ef39a 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -1065,7 +1065,7 @@ namespace CalamityMod.CalPlayer } if (summon) { - if (pArtifact && !profanedCrystal) + if (pSoulArtifact && !profanedCrystal) target.AddBuff(BuffType(), 300); if (profanedCrystalBuffs) diff --git a/Cooldowns/CooldownRegistry.cs b/Cooldowns/CooldownRegistry.cs index e8b078d334..28504bc654 100644 --- a/Cooldowns/CooldownRegistry.cs +++ b/Cooldowns/CooldownRegistry.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Cooldowns //var permafrostConcoction = Register(PermafrostConcoction.ID); //var plagueBlackout = Register(PlagueBlackout.ID); //var prismaticLaser = Register(PrismaticLaser.ID); - //var profanedSoulArtifact = Register(ProfanedSoulArtifact.ID); + //var profanedSoulArtifact = Register(ProfanedSoulShield.ID); //var relicOfResilience = Register(RelicOfResilience.ID); //var rogueBooster = Register(RogueBooster.ID); //var sandCloak = Register(SandCloak.ID); diff --git a/Cooldowns/ProfanedSoulArtifact.cs b/Cooldowns/ProfanedSoulArtifact.cs deleted file mode 100644 index dc672a0d47..0000000000 --- a/Cooldowns/ProfanedSoulArtifact.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria.Localization; - -namespace CalamityMod.Cooldowns -{ - public class ProfanedSoulArtifact : CooldownHandler - { - public static new string ID => "ProfanedSoulArtifact"; - public override bool ShouldDisplay => true; - public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}"); - public override string Texture => "CalamityMod/Cooldowns/ProfanedSoulArtifact"; - public override Color OutlineColor => new Color(255, 191, 73); - public override Color CooldownStartColor => new Color(181, 136, 177); - public override Color CooldownEndColor => new Color(255, 194, 161); - } -} diff --git a/Cooldowns/ProfanedSoulArtifact.png b/Cooldowns/ProfanedSoulArtifact.png deleted file mode 100644 index 2e6ac9ca7875d2bfd010b3572cb6522854cad4ef..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 356 zcmV-q0h|7bP)Px$9!W$&R5*>zlQBy|Q5c4w6A^`Ulbq5^PBvr^Zb6$Zf#lh@#~-*o&TnZRdi|biQ-H3(xt^dtlKqT5PSZBml+Cn$>U{znj_m zAh(gs)~}ym0F1tW48W3a!)13P%xwa&6XpTvT^=U@_orX8b zOq5HZRafc(08bx*Wq7z<03eFTNjipFXl5>rqqbF-OTpa!C>{eT7#iizMS1LX&j2`S zy#UZZZvxZ&x%i)<60X~>?(bO*7dKe|YP%Hx)+77-)x#q&eNp~rsD);!Tc9CYPU(Gcc~_>eN`gJ8f6@f~!lEZ#VX4 zD_!v1bLXI}XqBw;tMZ1l`L6GD%L};H=r8zi`u_Jf_KWt(a@>rqsQk;)#h` gCUAe@nr>ae5OU4`tDKZ^63})APgg&ebxsLQ0IqdJ+W-In diff --git a/Cooldowns/ProfanedSoulArtifactOverlay.png b/Cooldowns/ProfanedSoulArtifactOverlay.png deleted file mode 100644 index 14d5d4123fac19830b3d9d6159a615cb64c027c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1IgNKY5X5R2Zo zQw+Hn6nL10KmLzj7wp(2bd-zl-V&ihfh!KYzQCWBc9`MhzjZ~bm-!f0ah>T&TOwU_ z-C<(h5AO35XK#ur$qv4!pHg#UZt9=jchXj;OlDcWY~xjJm619tcEuZL34^DrpUXO@ GgeCxryf "Items.Accessories"; + public static Asset HeatTex; + + public static int ShieldRechargeDelay = CalamityUtils.SecondsToFrames(5); + public static int TotalShieldRechargeTime = CalamityUtils.SecondsToFrames(2); + + public static int ShieldDurabilityMax = 25; public override void SetStaticDefaults() { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true; } + // Complex drawcode which draws Profaned Soul shields on ALL players who have it available. Supposedly. + // This is applied as IL (On hook) which draws right before Inferno Ring. + internal static void DrawProfanedSoulShields(On_Main.orig_DrawInfernoRings orig, Main mainObj) + { + // TODO -- Control flow analysis indicates that this hook is not stable (as it was copied from Rover Drive). + // Profaned Soul shields will be drawn for each player with the Profaned Soul artifact/crystal, yes. + // But there is no guarantee that the shields will be in the right condition for each player. + // Visibility is not net synced, for example. + bool alreadyDrawnShieldForPlayer = false; + + for (int i = 0; i < Main.maxPlayers; i++) + { + Player player = Main.player[i]; + if (player is null || !player.active || player.outOfRange || player.dead) + continue; + + CalamityPlayer modPlayer = player.Calamity(); + + // Do not render the shield if its visibility is off (or it does not exist) + bool isVanityOnly = modPlayer.pSoulShieldVisible && !modPlayer.pSoulArtifact; + bool shieldExists = isVanityOnly || modPlayer.pSoulShieldDurability > 0; + if (!modPlayer.pSoulShieldVisible || modPlayer.drawnAnyShieldThisFrame || !shieldExists) + continue; + + // Scale the shield is drawn at. + // The "i" parameter is to make different player's shields not be perfectly synced. + float scale = 0.15f + 0.03f * (0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.5f + i * 0.2f)); + + if (!alreadyDrawnShieldForPlayer) + { + CalamityPlayer localModPlayer = Main.LocalPlayer.Calamity(); + var psc = localModPlayer.profanedCrystalBuffs; + scale += psc ? 0.025f : 0f; + float visualShieldStrength = 1f; + if (!isVanityOnly) + { + float max = psc ? ProfanedSoulCrystal.ShieldDurabilityMax : ShieldDurabilityMax; + float shieldDurabilityRatio = localModPlayer.pSoulShieldDurability / (float)ShieldDurabilityMax; + visualShieldStrength = MathF.Pow(shieldDurabilityRatio, 0.5f); + } + + // The scale used for the noise overlay polygons also grows and shrinks + // This is intentionally out of sync with the shield, and intentionally desynced per player + // Don't put this anywhere less than 0.25f or higher than 1f. The higher it is, the denser / more zoomed out the noise overlay is. + float noiseScale = MathHelper.Lerp(0.4f, 0.8f, (float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.3f) * 0.5f + 0.5f); + + // Define shader parameters + Effect shieldEffect = Filters.Scene["CalamityMod:RoverDriveShield"].GetShader().Shader; + shieldEffect.Parameters["time"].SetValue(Main.GlobalTimeWrappedHourly * 0.058f); // Scrolling speed of polygonal overlay + shieldEffect.Parameters["blowUpPower"].SetValue(2.8f); + shieldEffect.Parameters["blowUpSize"].SetValue(0.4f); + shieldEffect.Parameters["noiseScale"].SetValue(noiseScale); + + // Shield opacity multiplier slightly changes, this is independent of current shield strength + float baseShieldOpacity = 0.9f + 0.1f * MathF.Sin(Main.GlobalTimeWrappedHourly * 1.95f); + float minShieldStrengthOpacityMultiplier = 0.5f; + float finalShieldOpacity = baseShieldOpacity * MathHelper.Lerp(minShieldStrengthOpacityMultiplier, 1f, visualShieldStrength); + shieldEffect.Parameters["shieldOpacity"].SetValue(finalShieldOpacity); + shieldEffect.Parameters["shieldEdgeBlendStrenght"].SetValue(4f); + + // Profaned Soul shields are not team specific + Color shieldColor = new Color(231, 160, 56); + if (psc && DownedBossSystem.downedProvidence && ProfanedSoulCrystal.testerNames.Any(name => name.Equals(localModPlayer.Player.name))) + shieldColor = CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25), 4f); + else if (psc) + shieldColor = new Color(255, 110, 56); + + Color primaryEdgeColor = new Color(230, 199, 102) * 0.8f; + Color secondaryEdgeColor = new Color(249, 231, 217) * 0.8f; + Color edgeColor = CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly * 0.2f, primaryEdgeColor, secondaryEdgeColor); + + // Define shader parameters for shield color + shieldEffect.Parameters["shieldColor"].SetValue(shieldColor.ToVector3()); + shieldEffect.Parameters["shieldEdgeColor"].SetValue(edgeColor.ToVector3()); + + // GOD I LOVE END BEGIN CAN THIS GAME PLEASE BE SWALLOWED BY THE FIRES OF HELL THANKS + // yes I copy pasted that comment, I hate end begin that much + // I also copy pasted that comment, this time for consistency :hdfailure: + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, shieldEffect, Main.GameViewMatrix.TransformationMatrix); + // Fetch shield heat overlay texture (this is the neutrons fed to the shader) + HeatTex ??= ModContent.Request("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons2"); + Vector2 pos = player.MountedCenter + player.gfxOffY * Vector2.UnitY - Main.screenPosition; + Texture2D tex = HeatTex.Value; + Main.spriteBatch.Draw(tex, pos, null, Color.White, 0, tex.Size() / 2f, scale, 0, 0); + + //The border circle MUST be drawn after otherwise it becomes visually fucked. + float shieldScale = scale * 1.75f; + Texture2D shieldTexture = ModContent.Request("CalamityMod/ExtraTextures/GreyscaleOpenCircle").Value; + Rectangle shieldFrame = shieldTexture.Frame(); + Vector2 origin = shieldFrame.Size() * 0.5f; + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); + Main.spriteBatch.Draw(shieldTexture, pos, shieldFrame, shieldColor * 0.5f, player.fullRotation, origin, shieldScale, SpriteEffects.None, 0f); + Main.spriteBatch.Draw(shieldTexture, pos, shieldFrame, secondaryEdgeColor * 0.5f, player.fullRotation, origin, shieldScale * 0.95f, SpriteEffects.None, 0f); + Main.spriteBatch.Draw(shieldTexture, pos, shieldFrame, shieldColor * 0.5f, player.fullRotation, origin, shieldScale, SpriteEffects.None, 0f); + Main.spriteBatch.Draw(shieldTexture, pos, shieldFrame, secondaryEdgeColor * 0.5f, player.fullRotation, origin, shieldScale * 0.95f, SpriteEffects.None, 0f); + } + + alreadyDrawnShieldForPlayer = true; + modPlayer.drawnAnyShieldThisFrame = true; + } + + if (alreadyDrawnShieldForPlayer) + { + Main.spriteBatch.End(); + Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.Transform); + } + + orig(mainObj); + } + public override void SetDefaults() { Item.width = 32; @@ -31,13 +155,19 @@ namespace CalamityMod.Items.Accessories public override bool CanEquipAccessory(Player player, int slot, bool modded) { - return !player.Calamity().pArtifact; + return !player.Calamity().pSoulArtifact; } public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.pArtifact = true; + modPlayer.pSoulArtifact = true; + modPlayer.pSoulShieldVisible = !hideVisual; + } + + public override void UpdateVanity(Player player) + { + player.Calamity().pSoulShieldVisible = true; } public override void AddRecipes() diff --git a/Items/Accessories/ProfanedSoulCrystal.cs b/Items/Accessories/ProfanedSoulCrystal.cs index 7b74065c7f..be076ef5c6 100644 --- a/Items/Accessories/ProfanedSoulCrystal.cs +++ b/Items/Accessories/ProfanedSoulCrystal.cs @@ -18,7 +18,12 @@ namespace CalamityMod.Items.Accessories //Developer item, dedicatee: Mishiro Usui/Amber Sienna public class ProfanedSoulCrystal : ModItem, ILocalizedModType { + public static string[] testerNames = new[] { "IbanPlay", "Chen", "Nincity", "Amber", "Mishiro" }; + public static int ShieldDurabilityMax = 125; public new string LocalizationCategory => "Items.Accessories"; + + internal const int maxMinionRequirement = 10; + /** * Notes: Drops from providence if the only damage source during the fight is from typeless damage or the profaned soul and the owners of those babs do not have profaned crystal. * All projectiles are in ProfanedSoulCrystalProjectiles.cs in the summon projectile directory @@ -69,7 +74,7 @@ namespace CalamityMod.Items.Accessories public override bool CanEquipAccessory(Player player, int slot, bool modded) { - return !player.Calamity().pArtifact; + return !player.Calamity().pSoulArtifact; } public override void ModifyTooltips(List tooltips) @@ -97,22 +102,26 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.pArtifact = true; + modPlayer.pSoulArtifact = true; modPlayer.profanedCrystal = true; - if (hideVisual) - modPlayer.profanedCrystalHide = true; + modPlayer.profanedCrystalHide = hideVisual; + modPlayer.pSoulShieldVisible = !hideVisual; + + DetermineTransformationEligibility(player); } public override void UpdateVanity(Player player) { player.Calamity().profanedCrystalHide = false; player.Calamity().profanedCrystalForce = true; + player.Calamity().pSoulShieldVisible = true; } internal static void DetermineTransformationEligibility(Player player) { - if (DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs && (player.maxMinions - player.slotsMinions) >= 10 && !player.Calamity().profanedCrystalForce && player.HasBuff()) + //short circuit immediately if profanedcrystalbuffs has already been set + if (!player.Calamity().profanedCrystalBuffs && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs && (player.maxMinions - player.slotsMinions) >= 10 && !player.Calamity().profanedCrystalForce && player.HasBuff()) { player.Calamity().profanedCrystalBuffs = true; } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index d4ded9bc69..5e8f9b9c47 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -653,6 +653,9 @@ namespace CalamityMod.Items NPC closest = Main.MouseWorld.ClosestNPCAt(1000f, true); if (closest != null) { + //TODO look into this, it does not work as expected! + //Does not draw the ring, mostly, which leads to uncertainty of it's functionality + //Maybe just move it to a whip transform :wires: player.MinionAttackTargetNPC = closest.whoAmI; player.UpdateMinionTarget(); } @@ -788,7 +791,8 @@ namespace CalamityMod.Items } // Conversion for Profaned Soul Crystal - ProfanedSoulCrystal.DetermineTransformationEligibility(player); + // DO NOT CHECK TRANSFORM ELIGIBILITY HERE + // It causes issues with actually restricting the transformed attacks when the player fails the ~~vibe check~~ minion requirement check if (modPlayer.profanedCrystalBuffs && item.pick == 0 && item.axe == 0 && item.hammer == 0 && item.autoReuse && (item.CountsAsClass() || item.CountsAsClass() || item.CountsAsClass() || item.CountsAsClass())) return player.altFunctionUse == 0 ? ProfanedSoulCrystal.TransformItemUsage(item, player) : AltFunctionUse(item, player); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 5cd7eda970..9989b10210 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1264,10 +1264,14 @@ ProfanedSoulArtifact: { DisplayName: Profaned Soul Artifact Tooltip: ''' - Summons a healer guardian, which heals for a certain amount of health every few seconds - Summons a defensive guardian, which boosts your movement speed and damage resistance - Summons an offensive guardian, which boosts your minion slots - If you get hit, most of their effects will disappear for 5 seconds + Summons a healer guardian, which heals for 15 health every few seconds + Summons a defensive guardian, which provides a weak shield reinforced by profaned rocks + Upon being depleted, the barrier implodes sending the profaned rocks hurtling outwards + The barrier starts recharging 5 seconds after being hit + Recharging from zero to full charge takes 2 seconds + Being hit again while recharging restarts the charge timer + Summons an offensive guardian, which boosts your minion slots by 1 + The offensive guardian will occasionally fire spears on hit Purity ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson index a6c03fd30b..12238709ac 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson @@ -167,6 +167,7 @@ MidnightSunUFO.DisplayName: Midnight Sun UFO MiniGuardianAttack.DisplayName: Offensive Guardian MiniGuardianDefense.DisplayName: Defensive Guardian MiniGuardianHealer.DisplayName: Healer Guardian +MiniGuardianRock.DisplayName: Rocky Road MiniGuardianSpear.DisplayName: Bab Spear MiniSandShark.DisplayName: Mini Sand Shark MK2FlaskSummon.DisplayName: Flask diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index 99350685ec..d90dd63c47 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -100,7 +100,8 @@ Cooldowns: { PlagueBlackout: Plague Blackout Cooldown PotionSickness: Healing Cooldown PrismaticLaser: Prismatic Laser Barrage Cooldown - ProfanedSoulArtifact: Profaned Soul Artifact Burnout + ProfanedSoulShieldDurability: Profaned Soul Shield Durability + ProfanedSoulShieldRecharge: Profaned Soul Shield Recharge RelicOfResilience: Relic of Resilience Cooldown RogueBooster: Rogue Booster Cooldown SandCloak: Sand Cloak Cooldown diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index d2dabc3bea..db0d27fcf0 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1131,7 +1131,7 @@ namespace CalamityMod.NPCs chat = CalamityUtils.GetText("Vanilla.StylistChat.Hardmode").Format(worldEvil); if (Main.rand.NextBool(15) && fapsol != -1) chat = CalamityUtils.GetText("Vanilla.StylistChat.DrunkPrincess" + (ChildSafety.Disabled ? Main.rand.Next(1, 2 + 1) : 1)).Format(Main.npc[fapsol].GivenName); - if ((Main.rand.NextBool(npc.GivenName == "Amber" ? 10 : 15)) && Main.LocalPlayer.Calamity().pArtifact) + if ((Main.rand.NextBool(npc.GivenName == "Amber" ? 10 : 15)) && Main.LocalPlayer.Calamity().pSoulArtifact) { if (Main.LocalPlayer.Calamity().profanedCrystalBuffs) chat = CalamityUtils.GetTextValue("Vanilla.StylistChat.ProfanedSoulCrystal" + Main.rand.Next(1, 2 + 1)); diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index da0ea5d053..f108eb79fa 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -2406,7 +2406,7 @@ namespace CalamityMod.NPCs.Providence !projectile.CountsAsClass() && !projectile.CountsAsClass() && !projectile.CountsAsClass()); bool allowedDamage = allowedClass && hit.Damage <= 75; //Flat 75 regardless of difficulty. //Absorber on-hit effects likely won't proc this but Deific Amulet and Astral Bulwark stars will proc this. - bool allowedBabs = Main.player[projectile.owner].Calamity().pArtifact && !Main.player[projectile.owner].Calamity().profanedCrystalBuffs; + bool allowedBabs = Main.player[projectile.owner].Calamity().pSoulArtifact && !Main.player[projectile.owner].Calamity().profanedCrystalBuffs; if ((exceptionList.TrueForAll(x => projectile.type != x) && !allowedDamage) || !allowedBabs) { diff --git a/Projectiles/Summon/MiniGuardianAttack.cs b/Projectiles/Summon/MiniGuardianAttack.cs index 6cdfb444cf..a0df1da3ec 100644 --- a/Projectiles/Summon/MiniGuardianAttack.cs +++ b/Projectiles/Summon/MiniGuardianAttack.cs @@ -1,7 +1,5 @@ using System; -using System.IO; using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -43,7 +41,7 @@ namespace CalamityMod.Projectiles.Summon // Despawn properly if (Owner.Calamity().pSoulGuardians) Projectile.timeLeft = 2; - if (!Owner.Calamity().pArtifact || Owner.dead || !Owner.active) + if (!Owner.Calamity().pSoulArtifact || Owner.dead || !Owner.active) { Owner.Calamity().pSoulGuardians = false; Projectile.active = false; @@ -144,18 +142,34 @@ namespace CalamityMod.Projectiles.Summon { if (Owner.Calamity().angelicAlliance) target.AddBuff(ModContent.BuffType(), 300); + if (!Owner.Calamity().profanedCrystal) + { + if (Projectile.ai[1] == 0f) + Owner.Calamity().rollBabSpears(1, target.chaseable); + Projectile.ai[1] -= 1f; + if (Projectile.ai[1] < 0f) + Projectile.ai[1] = 15; + } } public override void OnHitPlayer(Player target, Player.HurtInfo info) { if (Owner.Calamity().angelicAlliance) target.AddBuff(ModContent.BuffType(), 300); + if (!Owner.Calamity().profanedCrystal) + { + if (Projectile.ai[1] == 0f) + Owner.Calamity().rollBabSpears(1, true); + Projectile.ai[1] -= 1f; + if (Projectile.ai[1] < 0f) + Projectile.ai[1] = 15; + } } public override bool PreDraw(ref Color lightColor) { // Has afterimages if maximum empowerment - if (!ForcedVanity && !Owner.Calamity().endoCooper && !Owner.Calamity().magicHat) + if (!ForcedVanity && SpawnedFromPSC) { CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); return false; diff --git a/Projectiles/Summon/MiniGuardianDefense.cs b/Projectiles/Summon/MiniGuardianDefense.cs index 3d0bd8a393..edba52e83e 100644 --- a/Projectiles/Summon/MiniGuardianDefense.cs +++ b/Projectiles/Summon/MiniGuardianDefense.cs @@ -1,7 +1,6 @@ using System; using System.IO; -using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.CalPlayer; +using CalamityMod.Dusts; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -11,11 +10,23 @@ namespace CalamityMod.Projectiles.Summon { public class MiniGuardianDefense : ModProjectile, ILocalizedModType { + public enum MiniDefenderAIState + { + ShieldActive, + ShieldInactive, + Vanity + } public new string LocalizationCategory => "Projectiles.Summon"; public Player Owner => Main.player[Projectile.owner]; public bool SpawnedFromPSC => Projectile.ai[0] == 1f; public bool ForcedVanity => SpawnedFromPSC && !Owner.Calamity().profanedCrystalBuffs; + public bool shieldActive => !ForcedVanity && Owner.Calamity().pSoulShieldDurability > 0; + + public bool shieldActiveBefore = false; + + + public MiniDefenderAIState AIState => ForcedVanity ? MiniDefenderAIState.Vanity : (shieldActive ? MiniDefenderAIState.ShieldActive : MiniDefenderAIState.ShieldInactive); public override void SetStaticDefaults() { @@ -35,7 +46,42 @@ namespace CalamityMod.Projectiles.Summon Projectile.minion = true; Projectile.friendly = true; Projectile.penetrate = -1; - Projectile.usesLocalNPCImmunity = true; + } + + + private void HandleRocks(bool spawnRocks = false, bool yeetRocks = false) + { + if (spawnRocks) + { + //spawn rocks + bool psc = Owner.Calamity().profanedCrystalBuffs; + int rockCount = psc ? 10 : 5; + int[] validRockTypes = psc ? new int[]{ 1, 3, 4, 5, 6 } : new int[]{ 3, 5, 6 }; //1 and 4 are chonkier and psc pushes shield so it looks less weirdge + float angleVariance = MathHelper.TwoPi / rockCount; + float angle = 0f; + for (int i = 0; i < rockCount; i++) + { + int rockType = validRockTypes[Main.rand.Next(0, validRockTypes.Length)]; + var rockyRoad = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.position, + angle.ToRotationVector2() * 8f, ModContent.ProjectileType(), 1, 2f, Owner.whoAmI, 0f, angle, rockType); + rockyRoad.originalDamage = Projectile.originalDamage; + angle += angleVariance; + } + } + else if (yeetRocks) + { + //flag the rocks for yeetage + int rock = ModContent.ProjectileType(); + foreach (var proj in Main.projectile) + { + if (proj.active && proj.owner == Owner.whoAmI && proj.type == rock) + { + proj.ai[0] = 1f; + } + } + + Owner.Calamity().GeneralScreenShakePower = 2.5f; //minor screenshake to sell the barrier implosion thing (maybe improve visual of it) + } } public override void AI() @@ -43,36 +89,104 @@ namespace CalamityMod.Projectiles.Summon // Despawn properly if (Owner.Calamity().pSoulGuardians) Projectile.timeLeft = 2; - if (!Owner.Calamity().pArtifact || Owner.dead || !Owner.active) + if (!Owner.Calamity().pSoulArtifact || Owner.dead || !Owner.active) { Owner.Calamity().pSoulGuardians = false; Projectile.active = false; return; } + //dust and framing + Projectile.frameCounter++; + Projectile.frame = Projectile.frameCounter / 6 % Main.projFrames[Projectile.type]; + + var shieldIsActive = shieldActive; //avoid checkiing cooldowns multiple times per frame + + bool shouldSpawnRocks = !shieldActiveBefore && shieldIsActive; + bool shouldYeetRocks = shieldActiveBefore && !shieldIsActive; + HandleRocks(shouldSpawnRocks, shouldYeetRocks); + + bool shouldDust = shouldSpawnRocks || shouldYeetRocks; + + if (shouldDust) + { + for (int i = 0; i < 20; i++) + { + Vector2 dustPos = new Vector2(Owner.Center.X + Main.rand.NextFloat(-10, 10), Owner.Center.Y + Main.rand.NextFloat(-10, 10)); + Vector2 velocity = (Owner.Center - dustPos).SafeNormalize(Vector2.Zero); + velocity *= 3f; + Dust.NewDustPerfect(Owner.Center, (int)CalamityDusts.ProfanedFire, velocity, 0, default(Color), 2f); + } + } + // Dynamically update stats here, originalDamage can be found in MiscEffects + // Doesn't deal damage directly, damage used for rocks Projectile.damage = (int)Owner.GetTotalDamage().ApplyTo(Projectile.originalDamage); - Projectile.localNPCHitCooldown = (SpawnedFromPSC ? 6 : 9); - - // Find minion and charge if possible, make sure vanity minions are not chasing - NPC potentialTarget = Projectile.Center.MinionHoming(3000f, Owner); - if (potentialTarget != null && !ForcedVanity) + NPC potentialTarget = Projectile.Center.MinionHoming(1500f, Owner); + Vector2 playerDestination = Owner.Center - Projectile.Center; + switch (AIState) { - Vector2 targetDestination = potentialTarget.Center - Projectile.Center; - float targetDist = targetDestination.Length(); - // Moves faster if from PSC - float baseSpeed = (targetDist < 100f ? 28f : 24f) * (SpawnedFromPSC ? 2f : 0.95f); - float inertia = SpawnedFromPSC ? 20f : 12f; + case MiniDefenderAIState.ShieldActive: + case MiniDefenderAIState.ShieldInactive: + if (AIState == MiniDefenderAIState.ShieldInactive) //dust only while inactive + { + for (int i = 0; i < 2; i++) + { + if (!Main.rand.NextBool(3)) + continue; - targetDist = baseSpeed / targetDist; - targetDestination *= targetDist; - Projectile.velocity = (Projectile.velocity * inertia + targetDestination) / (inertia + 1f); + Dust dust = Dust.NewDustDirect(Owner.position, Owner.width, Owner.height, (int)CalamityDusts.ProfanedFire); + dust.velocity = Main.rand.NextVector2Circular(3.5f, 3.5f); + dust.velocity.Y -= Main.rand.NextFloat(1f, 3f); + dust.scale = Main.rand.NextFloat(1.15f, 1.45f); + dust.noGravity = true; + } + } + + if (potentialTarget != null) + { + Vector2 angle = Owner.Center + Owner.SafeDirectionTo(potentialTarget.Center) * (shieldIsActive ? (Owner.Calamity().profanedCrystalBuffs ? 125f : 75f) : -50f); + playerDestination = angle; + playerDestination.X += Main.rand.NextFloat(-5f, 5f); + playerDestination.Y += Main.rand.NextFloat(-5f, 5f); + } + else + { + playerDestination.X += Main.rand.NextFloat(-10f, 10f) + (75f * (shieldIsActive ? Owner.direction : -Owner.direction)); + playerDestination.Y += Main.rand.NextFloat(-10f, 10f); + } + break; + case MiniDefenderAIState.Vanity: + playerDestination.X += Main.rand.NextFloat(-10f, 20f) - (60f * Owner.direction); + playerDestination.Y += Main.rand.NextFloat(-10f, 20f) - 60f; + break; } - else // Idle movement + + if (potentialTarget != null && AIState != MiniDefenderAIState.Vanity) + { + float dist = Projectile.Center.Distance(playerDestination); + float num543 = playerDestination.X; + float num544 = playerDestination.Y; + float num550 = 40f; + Vector2 vector43 = new Vector2(Projectile.position.X + (float)Projectile.width * 0.5f, Projectile.position.Y + (float)Projectile.height * 0.5f); + float num551 = num543 - vector43.X; + float num552 = num544 - vector43.Y; + float num553 = (float)Math.Sqrt((double)(num551 * num551 + num552 * num552)); + if (num553 < 100f) + { + num550 = 28f; //14 + } + num553 = num550 / num553; + num551 *= num553; + num552 *= num553; + Projectile.velocity.X = (Projectile.velocity.X * 14f + num551) / 13.5f; + Projectile.velocity.Y = (Projectile.velocity.Y * 14f + num552) / 13.5f; + + Projectile.velocity *= dist > 10 ? 0.9f : 0.5f; + Projectile.spriteDirection = Projectile.DirectionTo(potentialTarget.Center).X > 0 ? 1 : -1; + } + else { - Vector2 playerDestination = Owner.Center - Projectile.Center; - playerDestination.X += Main.rand.NextFloat(-10f, 20f) - (60f * Owner.direction); - playerDestination.Y += Main.rand.NextFloat(-10f, 20f) - 60f; float playerDist = playerDestination.Length(); float acceleration = 0.5f; float returnSpeed = 18f; @@ -100,62 +214,61 @@ namespace CalamityMod.Projectiles.Summon playerDist = returnSpeed / playerDist; playerDestination *= playerDist; - } - - // Turning (wtf is this) - if (Projectile.velocity.X < playerDestination.X) - { - Projectile.velocity.X += acceleration; - if (acceleration > 0.05f && Projectile.velocity.X < 0f) + // Turning (wtf is this) (idk ask phup lmao) + if (Projectile.velocity.X < playerDestination.X) + { Projectile.velocity.X += acceleration; - } - if (Projectile.velocity.X > playerDestination.X) - { - Projectile.velocity.X -= acceleration; - if (acceleration > 0.05f && Projectile.velocity.X > 0f) + if (acceleration > 0.05f && Projectile.velocity.X < 0f) + Projectile.velocity.X += acceleration; + } + + if (Projectile.velocity.X > playerDestination.X) + { Projectile.velocity.X -= acceleration; + if (acceleration > 0.05f && Projectile.velocity.X > 0f) + Projectile.velocity.X -= acceleration; + } + + if (Projectile.velocity.Y < playerDestination.Y) + { + Projectile.velocity.Y += acceleration; + if (acceleration > 0.05f && Projectile.velocity.Y < 0f) + Projectile.velocity.Y += acceleration * 2f; + } + + if (Projectile.velocity.Y > playerDestination.Y) + { + Projectile.velocity.Y -= acceleration; + if (acceleration > 0.05f && Projectile.velocity.Y > 0f) + Projectile.velocity.Y -= acceleration * 2f; + } } - if (Projectile.velocity.Y < playerDestination.Y) - { - Projectile.velocity.Y += acceleration; - if (acceleration > 0.05f && Projectile.velocity.Y < 0f) - Projectile.velocity.Y += acceleration * 2f; - } - if (Projectile.velocity.Y > playerDestination.Y) - { - Projectile.velocity.Y -= acceleration; - if (acceleration > 0.05f && Projectile.velocity.Y > 0f) - Projectile.velocity.Y -= acceleration * 2f; - } + + // Direction + if (Math.Abs(Projectile.velocity.X) > 0.2f) + Projectile.direction = Projectile.spriteDirection = Math.Sign(Projectile.velocity.X); } + + Projectile.netUpdate = Projectile.netUpdate || (shieldIsActive != shieldActiveBefore); + shieldActiveBefore = shieldIsActive; + } + + public override bool? CanDamage() => false; - // Direction and frames - if (Math.Abs(Projectile.velocity.X) > 0.2f) - Projectile.direction = Projectile.spriteDirection = Math.Sign(Projectile.velocity.X); - - Projectile.frameCounter++; - Projectile.frame = Projectile.frameCounter / 6 % Main.projFrames[Projectile.type]; + public override void SendExtraAI(BinaryWriter writer) + { + writer.Write(shieldActiveBefore); } - // Vanity stuff can't damage - public override bool? CanDamage() => !ForcedVanity; - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + public override void ReceiveExtraAI(BinaryReader reader) { - if (Owner.Calamity().angelicAlliance) - target.AddBuff(ModContent.BuffType(), 300); - } - - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - if (Owner.Calamity().angelicAlliance) - target.AddBuff(ModContent.BuffType(), 300); + shieldActiveBefore = reader.ReadBoolean(); } public override bool PreDraw(ref Color lightColor) { // Has afterimages if maximum empowerment - if (!ForcedVanity && !Owner.Calamity().endoCooper && !Owner.Calamity().magicHat) + if (SpawnedFromPSC && !ForcedVanity) { CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); return false; diff --git a/Projectiles/Summon/MiniGuardianHealer.cs b/Projectiles/Summon/MiniGuardianHealer.cs index 78f7c47996..35ba77df58 100644 --- a/Projectiles/Summon/MiniGuardianHealer.cs +++ b/Projectiles/Summon/MiniGuardianHealer.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Summon public override bool? CanCutTiles() { CalamityPlayer modPlayer = Main.player[Projectile.owner].Calamity(); - bool psa = modPlayer.pArtifact && !modPlayer.profanedCrystal; + bool psa = modPlayer.pSoulArtifact && !modPlayer.profanedCrystal; if (!psa && !modPlayer.profanedCrystalBuffs) return false; return null; @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Summon { Projectile.timeLeft = 2; } - if (!modPlayer.pArtifact || player.dead || !player.active) + if (!modPlayer.pSoulArtifact || player.dead || !player.active) { modPlayer.pSoulGuardians = false; Projectile.active = false; diff --git a/Projectiles/Summon/MiniGuardianRock.cs b/Projectiles/Summon/MiniGuardianRock.cs new file mode 100644 index 0000000000..2a5b7b2a84 --- /dev/null +++ b/Projectiles/Summon/MiniGuardianRock.cs @@ -0,0 +1,129 @@ +using System; +using CalamityMod.Dusts; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + public class MiniGuardianRock : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Summon"; + public Player Owner => Main.player[Projectile.owner]; + + public override string Texture => "CalamityMod/NPCs/ProfanedGuardians/ProfanedRocks"; + + + public override void SetStaticDefaults() + { + Main.projFrames[Projectile.type] = 4; + ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4; + ProjectileID.Sets.TrailingMode[Projectile.type] = 0; + ProjectileID.Sets.MinionTargettingFeature[Projectile.type] = true; + } + + public override void SetDefaults() + { + Projectile.netImportant = true; + Projectile.tileCollide = false; + Projectile.width = 50; + Projectile.height = 50; + Projectile.minion = true; + Projectile.friendly = true; + Projectile.penetrate = 1; + Projectile.usesIDStaticNPCImmunity = true; + Projectile.idStaticNPCHitCooldown = 1; + } + + + public override void AI() + { + // Dynamically update stats here, originalDamage can be found in MiscEffects + Projectile.damage = (int)Owner.GetTotalDamage().ApplyTo(Projectile.originalDamage); + // Despawn properly + if (Owner.Calamity().pSoulGuardians && Projectile.ai[0] == 0f) + Projectile.timeLeft = 4; + if (!Owner.Calamity().pSoulArtifact || Owner.dead || !Owner.active) + { + Owner.Calamity().pSoulGuardians = false; + Projectile.active = false; + return; + } + + if (Projectile.ai[0] == 0f) //regular expected behaviour of floaty rocks + { + // Rotation velocity + float minRotationVelocity = 0.5f; + float rotationVelocityIncrease = 0.2f; + rotationVelocityIncrease += rotationVelocityIncrease * (Projectile.ai[1] * 0.5f); + + // Rotate around Player + var psc = Owner.Calamity().profanedCrystalBuffs; + float angle = MathHelper.TwoPi / (psc ? 10 : 5) * Projectile.ai[1]; + float distance = psc ? 90f : 50f; + Projectile.Center = Owner.Center + Projectile.ai[1].ToRotationVector2() * distance; + Projectile.rotation = Projectile.ai[1] + (float)Math.Atan(90); + Projectile.ai[1] -= MathHelper.ToRadians(2f); + } + else if (Projectile.ai[0] == 1f) //rock yeetage begins + { + Projectile.velocity = Projectile.Center - Owner.Center; + Projectile.velocity.Normalize(); + Projectile.velocity *= Owner.Calamity().profanedCrystalBuffs ? 25f : 20f; + Projectile.ai[0] = 2f; + Projectile.timeLeft = 300; + } + else if (Projectile.ai[0] == 2f) //rocks have been yeeted, handle the aftermath + { + if (Projectile.timeLeft > 275) //slow them down a little + Projectile.velocity *= 0.9725f; + + for (int i = 0; i < 2; i++) + { + if (i == 0 || Projectile.timeLeft > 285) + Dust.NewDust(Projectile.position, Projectile.width / 2, Projectile.height / 2, (int)CalamityDusts.ProfanedFire, 0f, -1f, 0, default, 1f); + } + + } + } + + public override bool? CanDamage() => Projectile.ai[0] >= 1f ? null : false; + + public override bool PreDraw(ref Color lightColor) + { + bool psc = Owner.Calamity().profanedCrystalBuffs; + int rockType = (int)Projectile.ai[2]; + Texture2D texture = ModContent.Request("CalamityMod/NPCs/ProfanedGuardians/ProfanedRocks" + rockType.ToString()).Value; + + Vector2 drawOrigin = new Vector2(texture.Width / 2, texture.Height / 2); + Vector2 drawPos = Projectile.Center - Main.screenPosition; + drawPos -= new Vector2(texture.Width, texture.Height) * Projectile.scale / 2f; + drawPos += drawOrigin * Projectile.scale + new Vector2(0f, Projectile.gfxOffY); + Rectangle frame = new Rectangle(0, 0, texture.Width, texture.Height); + if (CalamityConfig.Instance.Afterimages && Projectile.ai[0] >= 1f) //handle afterimages manually since the utility broke it and didn't render correctly + { + for (int i = 0; i < Projectile.oldPos.Length; ++i) + { + drawPos = Projectile.oldPos[i] + (Projectile.Size / 2f) - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY); + // DO NOT REMOVE THESE "UNNECESSARY" FLOAT CASTS. THIS WILL BREAK THE AFTERIMAGES. + Color color = Projectile.GetAlpha(lightColor) * ((float)(Projectile.oldPos.Length - i) / (float)Projectile.oldPos.Length); + Main.spriteBatch.Draw(texture, drawPos, frame, color, Projectile.rotation, drawOrigin, Projectile.scale, SpriteEffects.None, 0f); + } + } + else + { + Main.spriteBatch.Draw(texture, drawPos, frame, Color.White, Projectile.rotation, drawOrigin, Projectile.scale, SpriteEffects.None, 0f); + } + + return false; + } + + public override void Kill(int timeLeft) + { + for (int k = 0; k < 10; k++) + Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.ProfanedFire, 0f, -1f, 0, default, 1f); + } + } +} From 88b50143fc4c8c6b37f9f0e445ad1b5904f7ea19 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 01:50:52 +0100 Subject: [PATCH 158/258] Few files I forgor about --- Cooldowns/ProfanedSoulShield.cs | 127 +++++++++++++++++++++++ Cooldowns/ProfanedSoulShieldActive.png | Bin 0 -> 356 bytes Cooldowns/ProfanedSoulShieldOutline.png | Bin 0 -> 184 bytes Cooldowns/ProfanedSoulShieldOverlay.png | Bin 0 -> 159 bytes Cooldowns/ProfanedSoulShieldRecharge.png | Bin 0 -> 248 bytes 5 files changed, 127 insertions(+) create mode 100644 Cooldowns/ProfanedSoulShield.cs create mode 100644 Cooldowns/ProfanedSoulShieldActive.png create mode 100644 Cooldowns/ProfanedSoulShieldOutline.png create mode 100644 Cooldowns/ProfanedSoulShieldOverlay.png create mode 100644 Cooldowns/ProfanedSoulShieldRecharge.png diff --git a/Cooldowns/ProfanedSoulShield.cs b/Cooldowns/ProfanedSoulShield.cs new file mode 100644 index 0000000000..9035f0b067 --- /dev/null +++ b/Cooldowns/ProfanedSoulShield.cs @@ -0,0 +1,127 @@ +using System; +using CalamityMod.CalPlayer; +using CalamityMod.Items.Accessories; +using CalamityMod.NPCs.Providence; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.GameContent; +using Terraria.Graphics.Shaders; +using Terraria.Localization; +using static CalamityMod.CalamityUtils; +using static Terraria.ModLoader.ModContent; + +namespace CalamityMod.Cooldowns +{ + public class ProfanedSoulShield : CooldownHandler + { + + private CalamityPlayer CalPlayer => instance.player.Calamity(); + private int CorrectMaxDurability => CalPlayer.profanedCrystalBuffs + ? ProfanedSoulCrystal.ShieldDurabilityMax + : ProfanedSoulArtifact.ShieldDurabilityMax; + + //Slightly more readable and actually works which is nice + private Color GetColor(bool start) + { + Color result; + if (start) + { + result = CalPlayer.profanedCrystalBuffs ? new Color(247, 172, 131) : new Color(235, 178, 96); + } + else + { + result = CalPlayer.profanedCrystalBuffs ? new Color(255, 194, 161) : new Color(219, 179, 121); + } + return result; + } + + private float AdjustedCompletion => instance.timeLeft / (float)CorrectMaxDurability; + + public static new string ID => "ProfanedSoulShieldDurability"; + public override bool CanTickDown => !CalPlayer.pSoulArtifact || instance.timeLeft <= 0; + public override bool ShouldDisplay => (CalPlayer.pSoulArtifact && !CalPlayer.profanedCrystal) || CalPlayer.profanedCrystalBuffs; + public override LocalizedText DisplayName => GetText($"UI.Cooldowns.{ID}"); + public override string Texture => "CalamityMod/Cooldowns/ProfanedSoulShieldActive"; + public override string OutlineTexture => "CalamityMod/Cooldowns/ProfanedSoulShieldOutline"; + public override string OverlayTexture => "CalamityMod/Cooldowns/ProfanedSoulShieldOverlay"; + public override Color OutlineColor => new Color(255, 191, 73); + public override Color CooldownStartColor => Color.Lerp(GetColor(true), GetColor(false), instance.Completion); + public override Color CooldownEndColor => Color.Lerp(GetColor(true), GetColor(false), instance.Completion); + public override bool SavedWithPlayer => false; + public override bool PersistsThroughDeath => false; + + public override void ApplyBarShaders(float opacity) + { + // Use the adjusted completion + GameShaders.Misc["CalamityMod:CircularBarShader"].UseOpacity(opacity); + GameShaders.Misc["CalamityMod:CircularBarShader"].UseSaturation(AdjustedCompletion); + GameShaders.Misc["CalamityMod:CircularBarShader"].UseColor(CooldownStartColor); + GameShaders.Misc["CalamityMod:CircularBarShader"].UseSecondaryColor(CooldownEndColor); + GameShaders.Misc["CalamityMod:CircularBarShader"].Apply(); + } + + public override void DrawExpanded(SpriteBatch spriteBatch, Vector2 position, float opacity, float scale) + { + base.DrawExpanded(spriteBatch, position, opacity, scale); + + float Xoffset = instance.timeLeft > 9 ? -10f : -5; + DrawBorderStringEightWay(spriteBatch, FontAssets.MouseText.Value, instance.timeLeft.ToString(), position + new Vector2(Xoffset, 4) * scale, Color.Lerp(GetColor(true), Color.OrangeRed, 1 - instance.Completion), Color.Black, scale); + } + + public override void DrawCompact(SpriteBatch spriteBatch, Vector2 position, float opacity, float scale) + { + Texture2D sprite = Request(Texture).Value; + Texture2D outline = Request(OutlineTexture).Value; + Texture2D overlay = Request(OverlayTexture).Value; + + // Draw the outline + spriteBatch.Draw(outline, position, null, OutlineColor * opacity, 0, outline.Size() * 0.5f, scale, SpriteEffects.None, 0f); + + // Draw the icon + spriteBatch.Draw(sprite, position, null, Color.White * opacity, 0, sprite.Size() * 0.5f, scale, SpriteEffects.None, 0f); + + // Draw the small overlay + int lostHeight = (int)Math.Ceiling(overlay.Height * AdjustedCompletion); + Rectangle crop = new Rectangle(0, lostHeight, overlay.Width, overlay.Height - lostHeight); + spriteBatch.Draw(overlay, position + Vector2.UnitY * lostHeight * scale, crop, OutlineColor * opacity * 0.9f, 0, sprite.Size() * 0.5f, scale, SpriteEffects.None, 0f); + + float Xoffset = instance.timeLeft > 9 ? -10f : -5; + DrawBorderStringEightWay(spriteBatch, FontAssets.MouseText.Value, instance.timeLeft.ToString(), position + new Vector2(Xoffset, 4) * scale, Color.Lerp(GetColor(true), Color.OrangeRed, 1 - instance.Completion), Color.Black, scale); + } + } + + public class ProfanedSoulShieldRecharge : CooldownHandler + { + private static Color ringColorLerpStart = new Color(217, 159, 78); + private static Color ringColorLerpEnd = new Color(214, 185, 144); + + public static new string ID => "ProfanedSoulShieldRecharge"; + public override bool ShouldDisplay => true; + public override LocalizedText DisplayName => GetText($"UI.Cooldowns.{ID}"); + public override string Texture => "CalamityMod/Cooldowns/ProfanedSoulShieldRecharge"; + public override string OutlineTexture => "CalamityMod/Cooldowns/ProfanedSoulShieldOutline"; + public override string OverlayTexture => "CalamityMod/Cooldowns/ProfanedSoulShieldOverlay"; + public override bool SavedWithPlayer => false; + public override bool PersistsThroughDeath => false; + public override Color OutlineColor => new Color(57, 195, 237); + public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion); + public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion); + + public override void Tick() => instance.player.Calamity().playedProfanedSoulShieldSound = false; + + // When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally. + // The shield durability cooldown is added elsewhere, in Misc Effects. + public override void OnCompleted() + { + CalamityPlayer modPlayer = instance.player.Calamity(); + if (modPlayer.pSoulShieldDurability <= 0) + modPlayer.pSoulShieldDurability = 1; + //Cooldown end sound can play even in circumstances where it shouldn't, i.e when a shielding accessory's charge cooldown expires and the acc is no longer equipped + //TODO consider a possible edit to cooldown handler to accommodate conditional end sounds. + if (modPlayer.pSoulArtifact) + SoundEngine.PlaySound(Providence.BurnStartSound); + } + } +} diff --git a/Cooldowns/ProfanedSoulShieldActive.png b/Cooldowns/ProfanedSoulShieldActive.png new file mode 100644 index 0000000000000000000000000000000000000000..2e6ac9ca7875d2bfd010b3572cb6522854cad4ef GIT binary patch literal 356 zcmV-q0h|7bP)Px$9!W$&R5*>zlQBy|Q5c4w6A^`Ulbq5^PBvr^Zb6$Zf#lh@#~-*o&TnZRdi|biQ-H3(xt^dtlKqT5PSZBml+Cn$>U{znj_m zAh(gs)~}ym0F1tW48W3a!)13P%xwa&6XpTvT^=U@_orX8b zOq5HZRafc(08bx*Wq7z<03eFTNjipFXl5>rqqbF-OTpa!C>{eT7#iizMS1LX&j2`S zy#UZZZvxZ&x%i)<60X~>?(bO*7dKe|YP%Hx)+77-)x#q&eNp~rsD);!Tc9CYPU(Gcc~_>eN`gJ8f6@f~!lEZ#VX4 zD_!v1bLXI}XqBw;tMZ1l`L6GD%L};H=r8zi`u_Jf_KWt(a@>rqsQk;)#h` gCUAe@nr>ae5OU4`tDKZ^63})APgg&ebxsLQ0IqdJ+W-In literal 0 HcmV?d00001 diff --git a/Cooldowns/ProfanedSoulShieldOverlay.png b/Cooldowns/ProfanedSoulShieldOverlay.png new file mode 100644 index 0000000000000000000000000000000000000000..14d5d4123fac19830b3d9d6159a615cb64c027c9 GIT binary patch literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1IgNKY5X5R2Zo zQw+Hn6nL10KmLzj7wp(2bd-zl-V&ihfh!KYzQCWBc9`MhzjZ~bm-!f0ah>T&TOwU_ z-C<(h5AO35XK#ur$qv4!pHg#UZt9=jchXj;OlDcWY~xjJm619tcEuZL34^DrpUXO@ GgeCxryf<|{Lo_C? zy{Op7(TQV;!IJ^2xfvq3f;c zSN-~Ue`3P4ne7Gss`|wz^S^YSjCiy~jC)PNS($=Ex*b~trtiFvAY0iUE?{j_{JL*- z;|BQ)tN-QPG(7uh`^?AU_CG%Fjo>c4wfxZ`vleBu3YYq@J5u|VkG}TX`AMdE?Wcb6 w-nivaS6=Uap+E6=#YI1vpzJTrFEbvocQUI+%TD~T4Cs0WPgg&ebxsLQ07AlOIsgCw literal 0 HcmV?d00001 From c79830b69b71e8d509fe0a886ce1ae185fea59c1 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 31 Aug 2023 18:58:50 -0600 Subject: [PATCH 159/258] Fixed Utensil Poker only firing forks and made the order of utensils static --- Items/Weapons/Rogue/UtensilPoker.cs | 15 ++++++++------- .../Mods.CalamityMod.Items.Weapons.Rogue.hjson | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Items/Weapons/Rogue/UtensilPoker.cs b/Items/Weapons/Rogue/UtensilPoker.cs index 1ace51a26d..ba75465275 100644 --- a/Items/Weapons/Rogue/UtensilPoker.cs +++ b/Items/Weapons/Rogue/UtensilPoker.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Particles; namespace CalamityMod.Items.Weapons.Rogue { @@ -45,23 +46,23 @@ namespace CalamityMod.Items.Weapons.Rogue } else { - int utensil = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); double dmgMult = 1D; float kbMult = 1f; - switch (Main.rand.Next(3)) + switch (counter) { case 0: - utensil = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); dmgMult = 1.1; kbMult = 2f; break; case 1: - utensil = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); dmgMult = 1.2; kbMult = 1f; break; case 2: - utensil = ModContent.ProjectileType(); + type = ModContent.ProjectileType(); dmgMult = 1D; kbMult = 1f; break; @@ -70,7 +71,8 @@ namespace CalamityMod.Items.Weapons.Rogue } damage = (int)(damage * dmgMult); knockback = knockback * kbMult; - } + + } } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) @@ -80,7 +82,6 @@ namespace CalamityMod.Items.Weapons.Rogue int idx = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); if (idx.WithinBounds(Main.maxProjectiles)) Main.projectile[idx].Calamity().stealthStrike = mp.StealthStrikeAvailable(); - counter++; if (counter == 3) counter = 0; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index d672b623a1..b75593716d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -1337,7 +1337,7 @@ UtensilPoker: { DisplayName: Utensil Poker Tooltip: ''' - Fires random utensils in bursts of three + Fires utensils in bursts of three Stealth strikes replace any utensil with a powerful butcher knife 'Space chickens, that is all' ''' From 0d020c260a162ebd57c9de8d184869fe8aaaffd8 Mon Sep 17 00:00:00 2001 From: AquaSG Date: Thu, 31 Aug 2023 22:28:57 -0400 Subject: [PATCH 160/258] restoring turret tooltips that were missing for some reason --- .../Mods.CalamityMod.Items.Placeables.hjson | 56 ++++++++++++++----- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- 2 files changed, 43 insertions(+), 15 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index d2815713ef..0f2df3541f 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -3930,70 +3930,98 @@ HardenedEutrophicSand: { FireTurret: { DisplayName: Fire Turret - Tooltip: "" + Tooltip: + ''' + Roasts nearby enemies with a flamethrower at full blast + Cannot attack while a boss is alive + ''' } HostileFireTurret: { DisplayName: Hostile Fire Turret - Tooltip: "" + Tooltip: Roasts nearby players with a flamethrower at full blast } HostileIceTurret: { DisplayName: Hostile Ice Turret - Tooltip: "" + Tooltip: Lobs fragile ice mist bombs at nearby players } HostileLabTurret: { DisplayName: Hostile Lab Turret - Tooltip: "" + Tooltip: Shoots laser beams at nearby players } HostileLaserTurret: { DisplayName: Hostile Laser Turret - Tooltip: "" + Tooltip: Blasts nearby players with lightning-fast laser beams } HostileOnyxTurret: { DisplayName: Hostile Onyx Turret - Tooltip: "" + Tooltip: Shoots a shotgun spread of bullets at nearby players } HostilePlagueTurret: { DisplayName: Hostile Plague Turret - Tooltip: "" + Tooltip: Ejects homing plague missiles towards nearby players } HostileWaterTurret: { DisplayName: Hostile Water Turret - Tooltip: "" + Tooltip: Shoots high-speed water blasts at nearby players } IceTurret: { DisplayName: Ice Turret - Tooltip: "" + Tooltip: + ''' + Lobs fragile ice mist bombs at nearby enemies + Cannot attack while a boss is alive + ''' } LabTurret: { DisplayName: Lab Turret - Tooltip: "" + Tooltip: + ''' + Shoots laser beams at nearby enemies + Cannot attack while a boss is alive + ''' } LaserTurret: { DisplayName: Laser Turret - Tooltip: "" + Tooltip: + ''' + Blasts nearby enemies with lightning-fast laser beams + Cannot attack while a boss is alive + ''' } OnyxTurret: { DisplayName: Onyx Turret - Tooltip: "" + Tooltip: + ''' + Shoots a shotgun spread of bullets at nearby enemies + Cannot attack while a boss is alive + ''' } PlagueTurret: { DisplayName: Plague Turret - Tooltip: "" + Tooltip: + ''' + Ejects homing plague missiles towards nearby enemies + Cannot attack while a boss is alive + ''' } WaterTurret: { DisplayName: Water Turret - Tooltip: "" + Tooltip: + ''' + Shoots high-speed water blasts at nearby enemies + Cannot attack while a boss is alive + ''' } \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 65e8c606eb..b40cc452aa 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1285,4 +1285,4 @@ WulfrumBlunderbuss: { [c/83B87E:'The good thing about Wulfrum is that while it breaks fast, it can be reused even faster.] [c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.'] ''' -} +} \ No newline at end of file From 88d9f92d52cffb1d3fea0b404d6a61a9406d5d82 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Fri, 1 Sep 2023 07:20:42 +0300 Subject: [PATCH 161/258] Purity and Rampart of Deities recipe fixes --- Items/Accessories/Purity.cs | 4 ++-- Items/Accessories/RampartofDeities.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index a0d2242d05..620e58a2c6 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -45,8 +45,8 @@ namespace CalamityMod.Items.Accessories CreateRecipe(). AddIngredient(). AddIngredient(). - AddIngredient(4). - AddIngredient(5). + AddIngredient(5). + AddIngredient(4). AddTile(ModContent.TileType()). Register(); } diff --git a/Items/Accessories/RampartofDeities.cs b/Items/Accessories/RampartofDeities.cs index 6ac921ae46..b3dfb4b051 100644 --- a/Items/Accessories/RampartofDeities.cs +++ b/Items/Accessories/RampartofDeities.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Items.Accessories AddIngredient(ItemID.FrozenShield). AddIngredient(). AddIngredient(5). - AddIngredient(5). + AddIngredient(4). AddTile(). Register(); } From 5cfc71cddf9ecc79f8c17ea99b9e0394ef9e7bf4 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 31 Aug 2023 22:57:31 -0600 Subject: [PATCH 162/258] Failsave for Utensil Poker's count reset --- Items/Weapons/Rogue/UtensilPoker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Rogue/UtensilPoker.cs b/Items/Weapons/Rogue/UtensilPoker.cs index ba75465275..dba6b5b87e 100644 --- a/Items/Weapons/Rogue/UtensilPoker.cs +++ b/Items/Weapons/Rogue/UtensilPoker.cs @@ -83,7 +83,7 @@ namespace CalamityMod.Items.Weapons.Rogue if (idx.WithinBounds(Main.maxProjectiles)) Main.projectile[idx].Calamity().stealthStrike = mp.StealthStrikeAvailable(); counter++; - if (counter == 3) + if (counter >= 3) counter = 0; return false; } From fcdc93c9f49e6513d6ae9d6b381ce04de493036a Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 13:25:28 +0100 Subject: [PATCH 163/258] Fixed shield sounds playing when they shouldn't --- CalPlayer/CalamityPlayerMiscEffects.cs | 3 +-- Cooldowns/CooldownHandler.cs | 5 +++++ Cooldowns/LunicCorpsShieldCooldowns.cs | 1 + Cooldowns/SpongeCooldowns.cs | 1 + Cooldowns/WulfrumRoverDriveCooldowns.cs | 3 ++- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 9c195f13ba..b297593fea 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1152,7 +1152,7 @@ namespace CalamityMod.CalPlayer if (instance.timeLeft < 0) { handler.OnCompleted(); - if (handler.EndSound != null) + if (handler.EndSound != null && handler.ShouldPlayEndSound) SoundEngine.PlaySound(handler.EndSound.GetValueOrDefault()); expiredCooldowns.Add(id); } @@ -3612,7 +3612,6 @@ namespace CalamityMod.CalPlayer { CooldownInstance durabilityCooldown = Player.AddCooldown(WulfrumRoverDriveDurability.ID, RoverDrive.ShieldDurabilityMax); durabilityCooldown.timeLeft = RoverDriveShieldDurability; - SoundEngine.PlaySound(RoverDrive.ActivationSound, Player.Center); } // Add light if this shield is currently active diff --git a/Cooldowns/CooldownHandler.cs b/Cooldowns/CooldownHandler.cs index 4fe1a63e97..f9d83b7837 100644 --- a/Cooldowns/CooldownHandler.cs +++ b/Cooldowns/CooldownHandler.cs @@ -49,6 +49,11 @@ namespace CalamityMod.Cooldowns /// When the cooldown instance ends, this sound is played. Leave at null for no sound. /// public virtual SoundStyle? EndSound => null; + + /// + /// Set this to true to have the cooldown instance end sound play upon expiration. Defaults to true + /// + public virtual bool ShouldPlayEndSound => true; #endregion #region Display & Rendering diff --git a/Cooldowns/LunicCorpsShieldCooldowns.cs b/Cooldowns/LunicCorpsShieldCooldowns.cs index 8834314338..dbee30e4a1 100644 --- a/Cooldowns/LunicCorpsShieldCooldowns.cs +++ b/Cooldowns/LunicCorpsShieldCooldowns.cs @@ -90,6 +90,7 @@ namespace CalamityMod.Cooldowns public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion); public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion); public override SoundStyle? EndSound => LunicCorpsHelmet.ActivationSound; + public override bool ShouldPlayEndSound => instance.player.Calamity().lunicCorpsSet; public override void Tick() => instance.player.Calamity().playedLunicCorpsShieldSound = false; // When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally. diff --git a/Cooldowns/SpongeCooldowns.cs b/Cooldowns/SpongeCooldowns.cs index 6484749021..b9429b1bac 100644 --- a/Cooldowns/SpongeCooldowns.cs +++ b/Cooldowns/SpongeCooldowns.cs @@ -90,6 +90,7 @@ namespace CalamityMod.Cooldowns public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion); public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion); public override SoundStyle? EndSound => TheSponge.ActivationSound; + public override bool ShouldPlayEndSound => instance.player.Calamity().sponge; public override void Tick() => instance.player.Calamity().playedSpongeShieldSound = false; // When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally. diff --git a/Cooldowns/WulfrumRoverDriveCooldowns.cs b/Cooldowns/WulfrumRoverDriveCooldowns.cs index 894e7dd7f9..e4c6485992 100644 --- a/Cooldowns/WulfrumRoverDriveCooldowns.cs +++ b/Cooldowns/WulfrumRoverDriveCooldowns.cs @@ -98,6 +98,7 @@ namespace CalamityMod.Cooldowns if (modPlayer.roverDrive) modPlayer.RoverDriveShieldDurability = RoverDrive.ShieldDurabilityMax; } - public override SoundStyle? EndSound => null; + public override SoundStyle? EndSound => RoverDrive.ActivationSound; + public override bool ShouldPlayEndSound => instance.player.Calamity().roverDrive; } } From 58e87ddf0fc6098cc0cc7636b44e6f42432725f7 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 13:34:37 +0100 Subject: [PATCH 164/258] Updated psa to use end sound properly now it's been fixed --- Cooldowns/ProfanedSoulShield.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cooldowns/ProfanedSoulShield.cs b/Cooldowns/ProfanedSoulShield.cs index 9035f0b067..2955b1b30d 100644 --- a/Cooldowns/ProfanedSoulShield.cs +++ b/Cooldowns/ProfanedSoulShield.cs @@ -110,7 +110,11 @@ namespace CalamityMod.Cooldowns public override Color CooldownEndColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion); public override void Tick() => instance.player.Calamity().playedProfanedSoulShieldSound = false; - + + public override SoundStyle? EndSound => Providence.BurnStartSound; + + public override bool ShouldPlayEndSound => instance.player.Calamity().pSoulArtifact; + // When the recharge period completes, grant 1 point of shielding immediately so the rest my refill normally. // The shield durability cooldown is added elsewhere, in Misc Effects. public override void OnCompleted() @@ -118,10 +122,6 @@ namespace CalamityMod.Cooldowns CalamityPlayer modPlayer = instance.player.Calamity(); if (modPlayer.pSoulShieldDurability <= 0) modPlayer.pSoulShieldDurability = 1; - //Cooldown end sound can play even in circumstances where it shouldn't, i.e when a shielding accessory's charge cooldown expires and the acc is no longer equipped - //TODO consider a possible edit to cooldown handler to accommodate conditional end sounds. - if (modPlayer.pSoulArtifact) - SoundEngine.PlaySound(Providence.BurnStartSound); } } } From 42c059bb97b86db8a30a905533e028d5a860da92 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Fri, 1 Sep 2023 07:45:14 -0500 Subject: [PATCH 165/258] 1 - Removed Magiluminescence nerf. 2 - Reduced Astrum Deus lag. 3 - Reduced Storm Weaver lag. 4 - Reduced Storm Weaver contact damage Electrified debuff duration. 5 - Desert Scourge fires a few more sand blast projectiles per spread and fires the direct sand blast spreads a bit more often. --- ILEditing/BalancingILChanges.cs | 43 --------------- ILEditing/ILChangesLoading.cs | 1 - Items/CalamityGlobalItemTooltip.cs | 4 +- NPCs/AstrumDeus/AstrumDeusBody.cs | 69 ++++++------------------- NPCs/AstrumDeus/AstrumDeusHead.cs | 68 ++++++------------------ NPCs/AstrumDeus/AstrumDeusTail.cs | 54 ++++--------------- NPCs/CalamityAI.cs | 64 +++++++++++------------ NPCs/DesertScourge/DesertScourgeHead.cs | 8 +-- NPCs/StormWeaver/StormWeaverBody.cs | 41 +++------------ NPCs/StormWeaver/StormWeaverHead.cs | 40 +++----------- NPCs/StormWeaver/StormWeaverTail.cs | 46 ++++------------- Projectiles/Boss/AstralGodRay.cs | 7 +-- Projectiles/Boss/AstralShot2.cs | 1 + 13 files changed, 106 insertions(+), 340 deletions(-) diff --git a/ILEditing/BalancingILChanges.cs b/ILEditing/BalancingILChanges.cs index ea6e399f55..af2cb8924a 100644 --- a/ILEditing/BalancingILChanges.cs +++ b/ILEditing/BalancingILChanges.cs @@ -70,49 +70,6 @@ namespace CalamityMod.ILEditing } #endregion - #region Magiluminescence Changes - private static void NerfMagiluminescence(ILContext il) - { - // Nerf the run acceleration boost from 1.75x to 1.25x. - var cursor = new ILCursor(il); - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdfld("hasMagiluminescence"))) - { - LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence bool."); - return; - } - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.75f))) - { - LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence run acceleration multiplier."); - return; - } - cursor.Next.Operand = 1.25f; - - // Nerf the max run speed boost from 1.15x to 1.05x. - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.15f))) - { - LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence max run speed multiplier."); - return; - } - cursor.Next.Operand = 1.05f; - - // Nerf the acc run speed boost from 1.15x to 1.05x. - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.15f))) - { - LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence acc run speed multiplier."); - return; - } - cursor.Next.Operand = 1.05f; - - // Nerf the run slowdown boost from 1.75x to 1.25x. - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.75f))) - { - LogFailure("Magiluminescence Nerf", "Could not locate the Magiluminescence run slowdown multiplier."); - return; - } - cursor.Next.Operand = 1.25f; - } - #endregion - #region Jump Height Changes private static void FixJumpHeightBoosts(ILContext il) { diff --git a/ILEditing/ILChangesLoading.cs b/ILEditing/ILChangesLoading.cs index dbbe474782..84d71a1860 100644 --- a/ILEditing/ILChangesLoading.cs +++ b/ILEditing/ILChangesLoading.cs @@ -101,7 +101,6 @@ namespace CalamityMod.ILEditing IL_Player.UpdateJumpHeight += FixJumpHeightBoosts; IL_Player.Update += BaseJumpHeightAdjustment; IL_Player.Update += RunSpeedAdjustments; - IL_Player.Update += NerfMagiluminescence; IL_Player.Update += NerfSoaringInsigniaRunAcceleration; IL_Player.WingMovement += RemoveSoaringInsigniaInfiniteWingTime; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index c7ebc3d180..650f93c390 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -623,8 +623,8 @@ namespace CalamityMod.Items // Magiluminescence nerf and clear explanation of what it actually does. if (item.type == ItemID.Magiluminescence) - EditTooltipByNum(0, (line) => line.Text = "Increases movement acceleration and deceleration by 1.25x\n" + - "Increases movement speed by 1.05x. This bonus applies to running boot accessories"); + EditTooltipByNum(0, (line) => line.Text = "Increases movement acceleration and deceleration by 1.75x\n" + + "Increases movement speed by 1.15x. This bonus applies to running boot accessories"); // Soaring Insignia nerf and clear explanation of what it actually does. if (item.type == ItemID.EmpressFlightBooster) diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index 6aaf48eff8..4f9cae887b 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -16,6 +16,7 @@ namespace CalamityMod.NPCs.AstrumDeus public class AstrumDeusBody : ModNPC { public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.AstrumDeusHead.DisplayName"); + public override void SetStaticDefaults() { this.HideFromBestiary(); @@ -98,74 +99,34 @@ namespace CalamityMod.NPCs.AstrumDeus bool deathModeEnragePhase = Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] == 3f; bool doubleWormPhase = NPC.Calamity().newAI[0] != 0f && !deathModeEnragePhase; - Texture2D texture2D15 = altBodyTextures ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltSpectral").Value : TextureAssets.Npc[NPC.type].Value; - Texture2D texture2D16 = ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow2").Value; - Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2); - Color color36 = Color.White; - float amount9 = 0.5f; - int num153 = deathModeEnragePhase ? 10 : 5; + Texture2D texture = altBodyTextures ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltSpectral").Value : TextureAssets.Npc[NPC.type].Value; + Texture2D texture2 = ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow2").Value; + Vector2 vector = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2); - if (CalamityConfig.Instance.Afterimages) - { - for (int num155 = 1; num155 < num153; num155 += 2) - { - Color color38 = drawColor; - color38 = Color.Lerp(color38, color36, amount9); - color38 = NPC.GetAlpha(color38); - color38 *= (num153 - num155) / 15f; - Vector2 vector41 = NPC.oldPos[num155] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector41 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector41 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector41, NPC.frame, color38, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } - } + Vector2 vector2 = NPC.Center - screenPos; + vector2 -= new Vector2(texture.Width, texture.Height) * NPC.scale / 2f; + vector2 += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); + spriteBatch.Draw(texture, vector2, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f); - Vector2 vector43 = NPC.Center - screenPos; - vector43 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - - texture2D15 = altBodyTextures ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltGlow").Value : ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow").Value; + texture = altBodyTextures ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltGlow").Value : ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow").Value; Color phaseColor = drawCyan ? Color.Cyan : Color.Orange; if (doubleWormPhase) { - texture2D15 = drawCyan ? texture2D15 : (altBodyTextures ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltGlow2").Value : ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow3").Value); - texture2D16 = drawCyan ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow4").Value : texture2D16; - } - Color color37 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Cyan, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); - Color color42 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); - - if (CalamityConfig.Instance.Afterimages) - { - for (int num163 = 1; num163 < num153; num163++) - { - Color color41 = color37; - color41 = Color.Lerp(color41, color36, amount9); - color41 *= (num153 - num163) / 15f; - Vector2 vector44 = NPC.oldPos[num163] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector44 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector44 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector44, NPC.frame, color41, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - - if (!altBodyTextures) - { - Color color43 = color42; - color43 = Color.Lerp(color43, color36, amount9); - color43 *= (num153 - num163) / 15f; - spriteBatch.Draw(texture2D16, vector44, NPC.frame, color43, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } - } + texture = drawCyan ? texture : (altBodyTextures ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyAltGlow2").Value : ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow3").Value); + texture2 = drawCyan ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusBodyGlow4").Value : texture2; } + Color color = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Cyan, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); + Color color2 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); int timesToDraw = deathModeEnragePhase ? 3 : drawCyan ? 1 : 2; for (int i = 0; i < timesToDraw; i++) - spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, vector2, NPC.frame, color, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); if (!altBodyTextures) { timesToDraw = deathModeEnragePhase ? 3 : drawCyan ? 2 : 1; for (int i = 0; i < timesToDraw; i++) - spriteBatch.Draw(texture2D16, vector43, NPC.frame, color42, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture2, vector2, NPC.frame, color2, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); } return false; diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index ae8a1cc622..a14d6c8635 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -97,7 +97,8 @@ namespace CalamityMod.NPCs.AstrumDeus if (Main.zenithWorld) { if (CalamityWorld.death) // killing 10 worms with half of the og's health is ridiculous - NPC.lifeMax /= 3; + NPC.lifeMax /= 3; + NPC.value /= 5; } } @@ -148,69 +149,32 @@ namespace CalamityMod.NPCs.AstrumDeus bool deathModeEnragePhase = NPC.Calamity().newAI[0] == 3f; bool doubleWormPhase = NPC.Calamity().newAI[0] != 0f && !deathModeEnragePhase; - Texture2D texture2D15 = TextureAssets.Npc[NPC.type].Value; - Texture2D texture2D16 = ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow2").Value; - Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2); - Color color36 = Color.White; - float amount9 = 0.5f; - int num153 = deathModeEnragePhase ? 10 : 5; + Texture2D texture = TextureAssets.Npc[NPC.type].Value; + Texture2D texture2 = ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow2").Value; + Vector2 vector = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2); - if (CalamityConfig.Instance.Afterimages) - { - for (int num155 = 1; num155 < num153; num155 += 2) - { - Color color38 = drawColor; - color38 = Color.Lerp(color38, color36, amount9); - color38 = NPC.GetAlpha(color38); - color38 *= (num153 - num155) / 15f; - Vector2 vector41 = NPC.oldPos[num155] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector41 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector41 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector41, NPC.frame, color38, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } - } + Vector2 vector2 = NPC.Center - screenPos; + vector2 -= new Vector2(texture.Width, texture.Height) * NPC.scale / 2f; + vector2 += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); + spriteBatch.Draw(texture, vector2, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f); - Vector2 vector43 = NPC.Center - screenPos; - vector43 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - - texture2D15 = ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow").Value; + texture = ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow").Value; Color phaseColor = drawCyan ? Color.Cyan : Color.Orange; if (doubleWormPhase) { - texture2D15 = drawCyan ? texture2D15 : ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow3").Value; - texture2D16 = drawCyan ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow4").Value : texture2D16; - } - Color color37 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Cyan, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); - Color color42 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); - - if (CalamityConfig.Instance.Afterimages) - { - for (int num163 = 1; num163 < num153; num163++) - { - Color color41 = color37; - color41 = Color.Lerp(color41, color36, amount9); - color41 *= (num153 - num163) / 15f; - Vector2 vector44 = NPC.oldPos[num163] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector44 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector44 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector44, NPC.frame, color41, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - - Color color43 = color42; - color43 = Color.Lerp(color43, color36, amount9); - color43 *= (num153 - num163) / 15f; - spriteBatch.Draw(texture2D16, vector44, NPC.frame, color43, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } + texture = drawCyan ? texture : ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow3").Value; + texture2 = drawCyan ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusHeadGlow4").Value : texture2; } + Color color = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Cyan, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); + Color color2 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); int timesToDraw = deathModeEnragePhase ? 3 : drawCyan ? 1 : 2; for (int i = 0; i < timesToDraw; i++) - spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, vector2, NPC.frame, color, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); timesToDraw = deathModeEnragePhase ? 3 : drawCyan ? 2 : 1; for (int i = 0; i < timesToDraw; i++) - spriteBatch.Draw(texture2D16, vector43, NPC.frame, color42, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture2, vector2, NPC.frame, color2, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); return false; } diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index 42863a9aa5..fa38b5fc2f 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -16,6 +16,7 @@ namespace CalamityMod.NPCs.AstrumDeus public class AstrumDeusTail : ModNPC { public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.AstrumDeusHead.DisplayName"); + public override void SetStaticDefaults() { this.HideFromBestiary(); @@ -97,57 +98,24 @@ namespace CalamityMod.NPCs.AstrumDeus bool deathModeEnragePhase = Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] == 3f; bool doubleWormPhase = NPC.Calamity().newAI[0] != 0f && !deathModeEnragePhase; - Texture2D texture2D15 = TextureAssets.Npc[NPC.type].Value; - Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2); - Color color36 = Color.White; - float amount9 = 0.5f; - int num153 = deathModeEnragePhase ? 10 : 5; + Texture2D texture = TextureAssets.Npc[NPC.type].Value; + Vector2 vector = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2); - if (CalamityConfig.Instance.Afterimages) - { - for (int num155 = 1; num155 < num153; num155 += 2) - { - Color color38 = drawColor; - color38 = Color.Lerp(color38, color36, amount9); - color38 = NPC.GetAlpha(color38); - color38 *= (num153 - num155) / 15f; - Vector2 vector41 = NPC.oldPos[num155] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector41 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector41 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector41, NPC.frame, color38, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } - } + Vector2 vector2 = NPC.Center - screenPos; + vector2 -= new Vector2(texture.Width, texture.Height) * NPC.scale / 2f; + vector2 += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); + spriteBatch.Draw(texture, vector2, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f); - Vector2 vector43 = NPC.Center - screenPos; - vector43 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - - texture2D15 = ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusTailGlow").Value; + texture = ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusTailGlow").Value; Color phaseColor = drawCyan ? Color.Cyan : Color.Orange; if (doubleWormPhase) - { - texture2D15 = drawCyan ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusTailGlow2").Value : texture2D15; - } - Color color37 = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); + texture = drawCyan ? ModContent.Request("CalamityMod/NPCs/AstrumDeus/AstrumDeusTailGlow2").Value : texture; - if (CalamityConfig.Instance.Afterimages) - { - for (int num163 = 1; num163 < num153; num163++) - { - Color color41 = color37; - color41 = Color.Lerp(color41, color36, amount9); - color41 *= (num153 - num163) / 15f; - Vector2 vector44 = NPC.oldPos[num163] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector44 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector44 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector44, NPC.frame, color41, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } - } + Color color = Color.Lerp(Color.White, doubleWormPhase ? phaseColor : Color.Orange, 0.5f) * (deathModeEnragePhase ? 1f : NPC.Opacity); int timesToDraw = deathModeEnragePhase ? 3 : drawCyan ? 2 : 1; for (int i = 0; i < timesToDraw; i++) - spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, vector2, NPC.frame, color, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); return false; } diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 1781f01de3..8b28c7586b 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -3581,10 +3581,8 @@ namespace CalamityMod.NPCs calamityGlobalNPC.CurrentlyIncreasingDefenseOrDR = calamityGlobalNPC.newAI[1] < resistanceTime; // Flight timer - float aiSwitchTimer = doubleWormPhase ? 1200f : 1800f; - if (Main.getGoodWorld) - aiSwitchTimer *= 0.5f; - + float aiSwitchTimer = doubleWormPhase ? (Main.getGoodWorld ? 600f : 1200f) : (Main.getGoodWorld ? 900f : 1800f); + calamityGlobalNPC.newAI[3] += 1f; if (calamityGlobalNPC.newAI[3] >= aiSwitchTimer) calamityGlobalNPC.newAI[3] = 0f; @@ -3594,8 +3592,8 @@ namespace CalamityMod.NPCs // Length of worms int phase1Length = death ? 80 : revenge ? 70 : expertMode ? 60 : 50; - int phase2Length = phase1Length / 2; - int gfbLength = phase1Length / 10; + int phase2Length = death ? 40 : revenge ? 35 : expertMode ? 30 : 25; + int gfbLength = death ? 8 : revenge ? 7 : expertMode ? 6 : 5; int maxLength = Main.zenithWorld && doubleWormPhase ? gfbLength : doubleWormPhase ? phase2Length : phase1Length; // Become gradually more pissed as more worms are killed @@ -3793,7 +3791,7 @@ namespace CalamityMod.NPCs if (npc.ai[2] > 0f) npc.realLife = (int)npc.ai[2]; - // Dust and alpha effects + // Alpha effects if ((head || Main.npc[(int)npc.ai[1]].alpha < 128) && !npc.dontTakeDamage) { // Alpha changes @@ -3907,8 +3905,8 @@ namespace CalamityMod.NPCs if (Main.tile[k, l] != null && ((Main.tile[k, l].HasUnactuatedTile && (Main.tileSolid[Main.tile[k, l].TileType] || (Main.tileSolidTop[Main.tile[k, l].TileType] && Main.tile[k, l].TileFrameY == 0))) || Main.tile[k, l].LiquidAmount > 64)) { Vector2 vector2; - vector2.X = k * 16; - vector2.Y = l * 16; + vector2.X = k * 16f; + vector2.Y = l * 16f; if (npc.position.X + npc.width > vector2.X && npc.position.X < vector2.X + 16f && npc.position.Y + npc.height > vector2.Y && npc.position.Y < vector2.Y + 16f) { flag2 = true; @@ -3924,31 +3922,28 @@ namespace CalamityMod.NPCs { npc.localAI[1] = 1f; - if (head) - { - Rectangle rectangle = new Rectangle((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height); - int num16 = 200; - int heightReduction = death ? 130 : (int)(130f * (1f - lifeRatio)); - int height = 400 - heightReduction; - bool flag3 = true; + Rectangle rectangle = new Rectangle((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height); + int num16 = 200; + int heightReduction = death ? 130 : (int)(130f * (1f - lifeRatio)); + int height = 400 - heightReduction; + bool flag3 = true; - if (npc.position.Y > player.position.Y) + if (npc.position.Y > player.position.Y) + { + for (int m = 0; m < Main.maxPlayers; m++) { - for (int m = 0; m < Main.maxPlayers; m++) + if (Main.player[m].active) { - if (Main.player[m].active) + Rectangle rectangle2 = new Rectangle((int)Main.player[m].position.X - num16, (int)Main.player[m].position.Y - num16, num16 * 2, height); + if (rectangle.Intersects(rectangle2)) { - Rectangle rectangle2 = new Rectangle((int)Main.player[m].position.X - num16, (int)Main.player[m].position.Y - num16, num16 * 2, height); - if (rectangle.Intersects(rectangle2)) - { - flag3 = false; - break; - } + flag3 = false; + break; } } - if (flag3) - flag2 = true; } + if (flag3) + flag2 = true; } } else @@ -4018,7 +4013,7 @@ namespace CalamityMod.NPCs turnSpeed *= 1.15f; } - Vector2 vector3 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); + Vector2 vector3 = npc.Center; float num20 = player.position.X + (player.width / 2); float num21 = player.position.Y + (player.height / 2); num20 = (int)(num20 / 16f) * 16; @@ -4195,9 +4190,10 @@ namespace CalamityMod.NPCs // Shoot lasers if (npc.type == ModContent.NPCType()) { - int shootTime = (doubleWormPhase && expertMode) ? 2 : 1; npc.localAI[0] += 1f; - float shootProjectile = 400 / shootTime; + + int shootTime = (doubleWormPhase && expertMode) ? 2 : 1; + float shootProjectile = (doubleWormPhase && expertMode) ? 200 : 400; float timer = npc.ai[0] + 15f; float divisor = timer + shootProjectile; bool shootGodRays = phase2 || deathModeEnragePhase_BodyAndTail; @@ -4235,7 +4231,7 @@ namespace CalamityMod.NPCs if (Main.netMode != NetmodeID.MultiplayerClient) { float num941 = (death ? 16f : revenge ? 14f : 13f) + enrageScale * 4f; - Vector2 vector104 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + (npc.height / 2)); + Vector2 vector104 = npc.Center; float num942 = player.position.X + player.width * 0.5f - vector104.X; float num943 = player.position.Y + player.height * 0.5f - vector104.Y; float num944 = (float)Math.Sqrt(num942 * num942 + num943 * num943); @@ -4257,7 +4253,7 @@ namespace CalamityMod.NPCs for (int i = -1; i <= 1; i += 2) { Vector2 laserStartPos = vector104 + i * perp + Main.rand.NextVector2CircularEdge(6f, 6f); - Projectile godRay = Projectile.NewProjectileDirect(npc.GetSource_FromAI(), laserStartPos, laserVelocity * 1.1f, type, damage, 0f, Main.myPlayer, player.Center.X, player.Center.Y); + Projectile godRay = Projectile.NewProjectileDirect(npc.GetSource_FromAI(), laserStartPos, laserVelocity, type, damage, 0f, Main.myPlayer, player.Center.X, player.Center.Y); // Tell this Phased God Ray exactly which way it should be waving. godRay.localAI[1] = i * 0.5f; @@ -4290,7 +4286,7 @@ namespace CalamityMod.NPCs } // Follow the head - Vector2 vector18 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); + Vector2 vector18 = npc.Center; float num191 = player.position.X + (player.width / 2); float num192 = player.position.Y + (player.height / 2); num191 = (int)(num191 / 16f) * 16; @@ -4304,7 +4300,7 @@ namespace CalamityMod.NPCs { try { - vector18 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f); + vector18 = npc.Center; num191 = Main.npc[(int)npc.ai[1]].position.X + (Main.npc[(int)npc.ai[1]].width / 2) - vector18.X; num192 = Main.npc[(int)npc.ai[1]].position.Y + (Main.npc[(int)npc.ai[1]].height / 2) - vector18.Y; } diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 6d1e60f8a8..6385e1a98a 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -256,11 +256,11 @@ namespace CalamityMod.NPCs.DesertScourge if (expertMode) { - if (NPC.Calamity().newAI[2] < 300f) + if (NPC.Calamity().newAI[2] < 180f) NPC.Calamity().newAI[2] += 1f; if (NPC.SafeDirectionTo(player.Center).AngleBetween((NPC.rotation - MathHelper.PiOver2).ToRotationVector2()) < MathHelper.ToRadians(18f) && - NPC.Calamity().newAI[2] >= 300f && Vector2.Distance(NPC.Center, player.Center) > 320f && + NPC.Calamity().newAI[2] >= 180f && Vector2.Distance(NPC.Center, player.Center) > 320f && Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { if (NPC.Calamity().newAI[2] % 30f == 0f) @@ -295,7 +295,7 @@ namespace CalamityMod.NPCs.DesertScourge } NPC.Calamity().newAI[2] += 1f; - if (NPC.Calamity().newAI[2] > 360f) + if (NPC.Calamity().newAI[2] > 240f) NPC.Calamity().newAI[2] = 0f; } } @@ -439,7 +439,7 @@ namespace CalamityMod.NPCs.DesertScourge int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); Vector2 projectileVelocity = Vector2.Normalize(NPC.Center + NPC.velocity * 10f - NPC.Center) * velocity; - int numProj = bossRush ? 24 : death ? 20 : revenge ? 18 : expertMode ? 16 : 12; + int numProj = bossRush ? 30 : death ? 24 : revenge ? 20 : expertMode ? 16 : 12; if (Main.getGoodWorld) numProj *= 2; diff --git a/NPCs/StormWeaver/StormWeaverBody.cs b/NPCs/StormWeaver/StormWeaverBody.cs index 97e8db59e7..5faf00cefb 100644 --- a/NPCs/StormWeaver/StormWeaverBody.cs +++ b/NPCs/StormWeaver/StormWeaverBody.cs @@ -16,6 +16,7 @@ namespace CalamityMod.NPCs.StormWeaver public class StormWeaverBody : ModNPC { public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.StormWeaverHead.DisplayName"); + public override void SetStaticDefaults() { this.HideFromBestiary(); @@ -156,8 +157,6 @@ namespace CalamityMod.NPCs.StormWeaver } } - Lighting.AddLight((int)((NPC.position.X + (NPC.width / 2)) / 16f), (int)((NPC.position.Y + (NPC.height / 2)) / 16f), 0.2f, 0.05f, 0.2f); - // Check if other segments are still alive, if not, die bool shouldDespawn = true; for (int i = 0; i < Main.maxNPCs; i++) @@ -263,38 +262,14 @@ namespace CalamityMod.NPCs.StormWeaver if (!phase3) chargePhaseGateValue *= 0.5f; - Texture2D texture2D15 = phase2 ? ModContent.Request("CalamityMod/NPCs/StormWeaver/StormWeaverBodyNaked").Value : TextureAssets.Npc[NPC.type].Value; - Vector2 vector11 = new Vector2(texture2D15.Width / 2, texture2D15.Height / 2); - Color color36 = Color.White; - float amount9 = 0.5f; - int num153 = 5; + Texture2D texture = phase2 ? ModContent.Request("CalamityMod/NPCs/StormWeaver/StormWeaverBodyNaked").Value : TextureAssets.Npc[NPC.type].Value; + Vector2 vector = new Vector2(texture.Width / 2, texture.Height / 2); float chargeTelegraphTime = 120f; float chargeTelegraphGateValue = chargePhaseGateValue - chargeTelegraphTime; - if (CalamityConfig.Instance.Afterimages) - { - for (int num155 = 1; num155 < num153; num155 += 2) - { - Color color38 = drawColor; - - if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] > chargeTelegraphGateValue) - color38 = Color.Lerp(color38, Color.Cyan, MathHelper.Clamp((Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] - chargeTelegraphGateValue) / chargeTelegraphTime, 0f, 1f)); - else if (Main.npc[(int)NPC.ai[2]].localAI[3] > 0f) - color38 = Color.Lerp(color38, Color.Cyan, MathHelper.Clamp(Main.npc[(int)NPC.ai[2]].localAI[3] / 60f, 0f, 1f)); - - color38 = Color.Lerp(color38, color36, amount9); - color38 = NPC.GetAlpha(color38); - color38 *= (num153 - num155) / 15f; - Vector2 vector41 = NPC.oldPos[num155] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector41 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector41 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector41, NPC.frame, color38, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } - } - - Vector2 vector43 = NPC.Center - screenPos; - vector43 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); + Vector2 vector2 = NPC.Center - screenPos; + vector2 -= new Vector2(texture.Width, texture.Height) * NPC.scale / 2f; + vector2 += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); Color color = NPC.GetAlpha(drawColor); if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] > chargeTelegraphGateValue) @@ -302,7 +277,7 @@ namespace CalamityMod.NPCs.StormWeaver else if (Main.npc[(int)NPC.ai[2]].localAI[3] > 0f) color = Color.Lerp(color, Color.Cyan, MathHelper.Clamp(Main.npc[(int)NPC.ai[2]].localAI[3] / 60f, 0f, 1f)); - spriteBatch.Draw(texture2D15, vector43, NPC.frame, color, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, vector2, NPC.frame, color, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); return false; } @@ -323,7 +298,7 @@ namespace CalamityMod.NPCs.StormWeaver if (!phase3) chargePhaseGateValue *= 0.5f; - int buffDuration = Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] >= chargePhaseGateValue ? 240 : 120; + int buffDuration = Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] >= chargePhaseGateValue ? 120 : 60; if (hurtInfo.Damage > 0) target.AddBuff(BuffID.Electrified, buffDuration, true); } diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index 308329c153..467e5fde64 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -208,8 +208,6 @@ namespace CalamityMod.NPCs.StormWeaver } } - Lighting.AddLight((int)((NPC.position.X + (NPC.width / 2)) / 16f), (int)((NPC.position.Y + (NPC.height / 2)) / 16f), 0.2f, 0.05f, 0.2f); - if (NPC.ai[2] > 0f) NPC.realLife = (int)NPC.ai[2]; @@ -828,38 +826,14 @@ namespace CalamityMod.NPCs.StormWeaver if (!phase3) chargePhaseGateValue *= 0.5f; - Texture2D texture2D15 = phase2 ? ModContent.Request("CalamityMod/NPCs/StormWeaver/StormWeaverHeadNaked").Value : TextureAssets.Npc[NPC.type].Value; - Vector2 vector11 = new Vector2(texture2D15.Width / 2, texture2D15.Height / 2); - Color color36 = Color.White; - float amount9 = 0.5f; - int num153 = 5; + Texture2D texture = phase2 ? ModContent.Request("CalamityMod/NPCs/StormWeaver/StormWeaverHeadNaked").Value : TextureAssets.Npc[NPC.type].Value; + Vector2 vector = new Vector2(texture.Width / 2, texture.Height / 2); float chargeTelegraphTime = 120f; float chargeTelegraphGateValue = chargePhaseGateValue - chargeTelegraphTime; - if (CalamityConfig.Instance.Afterimages) - { - for (int num155 = 1; num155 < num153; num155 += 2) - { - Color color38 = drawColor; - - if (calamityGlobalNPC.newAI[0] > chargeTelegraphGateValue) - color38 = Color.Lerp(color38, Color.Cyan, MathHelper.Clamp((calamityGlobalNPC.newAI[0] - chargeTelegraphGateValue) / chargeTelegraphTime, 0f, 1f)); - else if (NPC.localAI[3] > 0f) - color38 = Color.Lerp(color38, Color.Cyan, MathHelper.Clamp(NPC.localAI[3] / 60f, 0f, 1f)); - - color38 = Color.Lerp(color38, color36, amount9); - color38 = NPC.GetAlpha(color38); - color38 *= (num153 - num155) / 15f; - Vector2 vector41 = NPC.oldPos[num155] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector41 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector41 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector41, NPC.frame, color38, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } - } - - Vector2 vector43 = NPC.Center - screenPos; - vector43 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); + Vector2 vector2 = NPC.Center - screenPos; + vector2 -= new Vector2(texture.Width, texture.Height) * NPC.scale / 2f; + vector2 += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); Color color = NPC.GetAlpha(drawColor); if (calamityGlobalNPC.newAI[0] > chargeTelegraphGateValue) @@ -867,7 +841,7 @@ namespace CalamityMod.NPCs.StormWeaver else if (NPC.localAI[3] > 0f) color = Color.Lerp(color, Color.Cyan, MathHelper.Clamp(NPC.localAI[3] / 60f, 0f, 1f)); - spriteBatch.Draw(texture2D15, vector43, NPC.frame, color, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, vector2, NPC.frame, color, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); return false; } @@ -888,7 +862,7 @@ namespace CalamityMod.NPCs.StormWeaver if (!phase3) chargePhaseGateValue *= 0.5f; - int buffDuration = NPC.Calamity().newAI[0] >= chargePhaseGateValue ? 480 : 240; + int buffDuration = NPC.Calamity().newAI[0] >= chargePhaseGateValue ? 240 : 120; if (hurtInfo.Damage > 0) target.AddBuff(BuffID.Electrified, buffDuration, true); } diff --git a/NPCs/StormWeaver/StormWeaverTail.cs b/NPCs/StormWeaver/StormWeaverTail.cs index 53de28283d..ff664b375a 100644 --- a/NPCs/StormWeaver/StormWeaverTail.cs +++ b/NPCs/StormWeaver/StormWeaverTail.cs @@ -15,7 +15,9 @@ namespace CalamityMod.NPCs.StormWeaver public class StormWeaverTail : ModNPC { private int invinceTime = 180; + public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.StormWeaverHead.DisplayName"); + public override void SetStaticDefaults() { this.HideFromBestiary(); @@ -147,8 +149,6 @@ namespace CalamityMod.NPCs.StormWeaver } } - Lighting.AddLight((int)((NPC.position.X + (NPC.width / 2)) / 16f), (int)((NPC.position.Y + (NPC.height / 2)) / 16f), 0.2f, 0.05f, 0.2f); - // Check if other segments are still alive, if not, die bool shouldDespawn = true; for (int i = 0; i < Main.maxNPCs; i++) @@ -254,38 +254,14 @@ namespace CalamityMod.NPCs.StormWeaver if (!phase3) chargePhaseGateValue *= 0.5f; - Texture2D texture2D15 = phase2 ? ModContent.Request("CalamityMod/NPCs/StormWeaver/StormWeaverTailNaked").Value : TextureAssets.Npc[NPC.type].Value; - Vector2 vector11 = new Vector2(texture2D15.Width / 2, texture2D15.Height / 2); - Color color36 = Color.White; - float amount9 = 0.5f; - int num153 = 5; + Texture2D texture = phase2 ? ModContent.Request("CalamityMod/NPCs/StormWeaver/StormWeaverTailNaked").Value : TextureAssets.Npc[NPC.type].Value; + Vector2 vector = new Vector2(texture.Width / 2, texture.Height / 2); float chargeTelegraphTime = 120f; float chargeTelegraphGateValue = chargePhaseGateValue - chargeTelegraphTime; - if (CalamityConfig.Instance.Afterimages) - { - for (int num155 = 1; num155 < num153; num155 += 2) - { - Color color38 = drawColor; - - if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] > chargeTelegraphGateValue) - color38 = Color.Lerp(color38, Color.Cyan, MathHelper.Clamp((Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] - chargeTelegraphGateValue) / chargeTelegraphTime, 0f, 1f)); - else if (Main.npc[(int)NPC.ai[2]].localAI[3] > 0f) - color38 = Color.Lerp(color38, Color.Cyan, MathHelper.Clamp(Main.npc[(int)NPC.ai[2]].localAI[3] / 60f, 0f, 1f)); - - color38 = Color.Lerp(color38, color36, amount9); - color38 = NPC.GetAlpha(color38); - color38 *= (num153 - num155) / 15f; - Vector2 vector41 = NPC.oldPos[num155] + new Vector2(NPC.width, NPC.height) / 2f - screenPos; - vector41 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector41 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); - spriteBatch.Draw(texture2D15, vector41, NPC.frame, color38, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); - } - } - - Vector2 vector43 = NPC.Center - screenPos; - vector43 -= new Vector2(texture2D15.Width, texture2D15.Height) * NPC.scale / 2f; - vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); + Vector2 vector2 = NPC.Center - screenPos; + vector2 -= new Vector2(texture.Width, texture.Height) * NPC.scale / 2f; + vector2 += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY); Color color = NPC.GetAlpha(drawColor); if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] > chargeTelegraphGateValue) @@ -293,14 +269,14 @@ namespace CalamityMod.NPCs.StormWeaver else if (Main.npc[(int)NPC.ai[2]].localAI[3] > 0f) color = Color.Lerp(color, Color.Cyan, MathHelper.Clamp(Main.npc[(int)NPC.ai[2]].localAI[3] / 60f, 0f, 1f)); - spriteBatch.Draw(texture2D15, vector43, NPC.frame, color, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, vector2, NPC.frame, color, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); if (!phase2) { - texture2D15 = ModContent.Request("CalamityMod/NPCs/StormWeaver/StormWeaverTailGlow").Value; + texture = ModContent.Request("CalamityMod/NPCs/StormWeaver/StormWeaverTailGlow").Value; Color rainbowBecauseWhyTheFuckNot = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); Color color37 = Color.Lerp(Color.White, rainbowBecauseWhyTheFuckNot, 0.5f); - spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f); + spriteBatch.Draw(texture, vector2, NPC.frame, color37, NPC.rotation, vector, NPC.scale, spriteEffects, 0f); } return false; @@ -322,7 +298,7 @@ namespace CalamityMod.NPCs.StormWeaver if (!phase3) chargePhaseGateValue *= 0.5f; - int buffDuration = Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] >= chargePhaseGateValue ? 120 : 60; + int buffDuration = Main.npc[(int)NPC.ai[2]].Calamity().newAI[0] >= chargePhaseGateValue ? 60 : 30; if (hurtInfo.Damage > 0) target.AddBuff(BuffID.Electrified, buffDuration, true); } diff --git a/Projectiles/Boss/AstralGodRay.cs b/Projectiles/Boss/AstralGodRay.cs index e31cfcac64..dd6138070c 100644 --- a/Projectiles/Boss/AstralGodRay.cs +++ b/Projectiles/Boss/AstralGodRay.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Projectiles.Boss // They are extremely carefully chosen and barely work as is! private const float WaveTheta = 0.09f; private const int WaveTwistFrames = 9; + private ref float WaveFrameState => ref Projectile.localAI[1]; public override string Texture => "CalamityMod/Projectiles/LaserProj"; @@ -81,12 +82,6 @@ namespace CalamityMod.Projectiles.Boss Projectile.velocity = Projectile.velocity.RotatedBy(waveSign * WaveTheta); Projectile.rotation = Projectile.velocity.ToRotation(); - // Emit light. - if (WaveFrameState < 0f) - Lighting.AddLight(Projectile.Center, 0.87f, 0.65f, 0.1725f); - else - Lighting.AddLight(Projectile.Center, 0.1725f, 0.87f, 0.65f); - // Laser length shenanigans. If the laser is still growing, increase localAI 0 to indicate it is getting longer. Projectile.localAI[0] += 10f; // LaserLengthChangeRate; diff --git a/Projectiles/Boss/AstralShot2.cs b/Projectiles/Boss/AstralShot2.cs index 743c43ef8f..b82fd9362d 100644 --- a/Projectiles/Boss/AstralShot2.cs +++ b/Projectiles/Boss/AstralShot2.cs @@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Boss public class AstralShot2 : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Boss"; + public override void SetStaticDefaults() { Main.projFrames[Projectile.type] = 4; From a838fac92634bd0df1d50507f744b38c61bb9428 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 1 Sep 2023 22:50:05 +0700 Subject: [PATCH 166/258] Resprites 3 & Knuckles ft. Stormlion nerf - Astral Injection, Photosynthesis - Grand Gelatin & all 3 Jellies - Clone, Cryo, Folly relics - Black Hawk + Deathstare --- Buffs/Potions/AstralInjectionBuff.png | Bin 573 -> 583 bytes Buffs/Potions/PhotosynthesisBuff.png | Bin 683 -> 523 bytes Buffs/StatBuffs/AbsorberRegen.png | Bin 3166 -> 826 bytes Buffs/StatBuffs/GreenJellyRegen.png | Bin 3091 -> 899 bytes Buffs/StatBuffs/PinkJellyRegen.png | Bin 3075 -> 799 bytes Items/Accessories/CleansingJelly.cs | 4 +-- Items/Accessories/CleansingJelly.png | Bin 15626 -> 749 bytes Items/Accessories/GrandGelatin.cs | 4 +-- Items/Accessories/GrandGelatin.png | Bin 15978 -> 1437 bytes Items/Accessories/LifeJelly.cs | 4 +-- Items/Accessories/LifeJelly.png | Bin 15624 -> 754 bytes Items/Accessories/VitalJelly.cs | 4 +-- Items/Accessories/VitalJelly.png | Bin 15641 -> 725 bytes .../BossRelics/CalamitasCloneRelic.png | Bin 1301 -> 1120 bytes .../Furniture/BossRelics/CryogenRelic.png | Bin 1074 -> 955 bytes .../Furniture/BossRelics/DragonfollyRelic.png | Bin 1155 -> 1131 bytes Items/Weapons/Summon/BlackHawkRemote.cs | 4 +-- Items/Weapons/Summon/BlackHawkRemote.png | Bin 631 -> 909 bytes Items/Weapons/Summon/DeathstareRod.cs | 2 +- Items/Weapons/Summon/DeathstareRod.png | Bin 464 -> 1158 bytes NPCs/NormalNPCs/Stormlion.cs | 2 +- Projectiles/Rogue/EclipseStealthBoom.cs | 2 +- Projectiles/Rogue/EclipsesFallMain.cs | 2 +- Projectiles/Rogue/EclipsesSmol.cs | 4 +-- Projectiles/Rogue/EclipsesStealth.cs | 2 +- Projectiles/Rogue/UmbraphileBoom.cs | 2 +- Projectiles/Summon/BlackHawkGlow.png | Bin 708 -> 1770 bytes Projectiles/Summon/BlackHawkSummon.cs | 29 +++++++----------- Projectiles/Summon/BlackHawkSummon.png | Bin 1361 -> 2331 bytes Projectiles/Summon/DeathstareEyePupil.png | Bin 181 -> 132 bytes Projectiles/Summon/DeathstareEyeball.cs | 19 ++++++------ Projectiles/Summon/DeathstareEyeball.png | Bin 487 -> 859 bytes .../BossRelics/CalamitasCloneRelic.png | Bin 1497 -> 1265 bytes Tiles/Furniture/BossRelics/CryogenRelic.png | Bin 1217 -> 977 bytes .../Furniture/BossRelics/DragonfollyRelic.png | Bin 1210 -> 1035 bytes 35 files changed, 38 insertions(+), 46 deletions(-) diff --git a/Buffs/Potions/AstralInjectionBuff.png b/Buffs/Potions/AstralInjectionBuff.png index d9a30ea457cea9d7a18c9dc2438b482a43ceeeb5..4f6075a4fe518ca309c0afe1be32a727338a6452 100644 GIT binary patch delta 558 zcmV+}0@3}w1jhuBB!2;OQb$4nuFf3k0005!NklsB7#lnV_t^dM`1sgjHQj`TLQX=J1D3bC@h)WWZSe!FmXPV<)rE9*M zIWzN}-~8rt=FDka1ocT|N*f4l5gz|C+SZ>C|nXk@qrs4 zNMd|s7=XTkL7Pt>0)eYrrNNWswbccQ#n~AEo_bpVC@{?SH){_F$zOv!k3IyPBr=vs z2-Wo(0PJr*0&wZ~0g!Ex7%NUSjl1gj`VhFkI#U`_vw!k{&?J@`+yFFE4#30S2>?lj z>1KR~dGsN$|NN>n7*@tI2`3qq=3j87y-L|H&!Z0kBOy*{5E;uPDk^IMm@XPHjmIOl zap~5%aMV2nK)ugz>)*0UeF!*7kda9UiIvR=5|ZSV%ldZ$u5Zr~y&by~)AYC zje7o|(WvQ6V-&?w6x+z%)pDSXAlQjuVPPkBR|!{KZKXtrD2N9^5X5K`yNJ;!c;czW zp`wy2CIjxcqdAe>khj^L`Ch)=@7eiwcCFf~dH~KYPLpI%Wq%*4EP$L$UerkzkOUYC zjJ<2(jjgb4>~VW+ighxNKz^g!(RhEH zcrnpUMU8X?L zqtiAHhBpClO?|e_e{ZW4C;Q^i^C$>~H2KXTpsQSstA8Zqv;S5q-hk0SI{*t_(Iq`g z+4emkNfcfFa*VI{iQTXt(Iq1>KL8Ektt=rR)#`2nAksSv!1&Ke0HWL1HlM6q`pqX0 z{d4PR^pzB*MM9O_3v_w^I|0j6?*$-!8q4V4v8$%VjKAZ*!BmGNgt$I`0000IbVXQn mMOaBjIvr1PX=QG7VRUJ4ZU8ZaSnTfr00006G#f*cf~Ad(>5 zY$#}HNP_-^mTHKgMRJI2DiETj!KEn(a*K*;ObFT{3Q9c0uORc(135D3M3 zG-um1pNlyc%KIih3O#lJ4*ge!w(Jfl=}kc2iEq22YM0M>QF&#^|=2Ro-sk(~FUTG`41YlB^~+V(QOA1w1Aq+A`=x!sRtd`Wt@*Q08Bly$@)XUjrr!S=S-<21_9WTjvh#f zbT#q-oU9AE`+v9Qg-H2FWIulhs5Iv4JgL-qe)yI3{@0mq06Oo?0#L1e^^}0lbIo>* zx$5_kCyAVQUCjdUesKkWcgA_@=nf$;=_>)9$00J$dV#e`@ zfX?GmEm=pMEfZxaGsf|pgq$y*zXPy)@3yAn_(LG6wtt7$061|;VxQ^n0igb3NywO( zw}*d(1kFkKLm+AFQ+|+5f_R z-|hu&%!^K}iqm#S_a2Zl>qE6Br{8a%BV=-F@#v`?+gF{002ovPDHLkV1jFAMp^&> diff --git a/Buffs/StatBuffs/AbsorberRegen.png b/Buffs/StatBuffs/AbsorberRegen.png index e0432a84a873b429d57826d368c80bac1b67e0c3..7d645ee1ab33a15a302e686998e7f212559a2031 100644 GIT binary patch delta 803 zcmV+;1Kj-H7`g_KB!2;OQb$4nuFf3k0008?NklKfuS_B48Xq$FJxNssU`b7yTgkm_e zsTV>i+GLA!&rEml2~p(xZr*$Mo_pT?e($;G-0L)+=>lL|p?`jjbufQuSzcPc%5!c9 z0L|~}H?~s**nf{LI{-E7{q%n#qRi({7ww+-F#w{;y8w*1*8#}*w*jc1vIUFA9RQZ- z0HE952S7Gk3&4EKGt0jDanl-vL4oRqJ;^r!3?w=M=+6sNFE?TO<$KmJR`wgVLb+Vy8T` zrg$wA;_q)}|1VIk1zNq9xCp?3?GxGMmZV!~{k_m(4Ntg%w(%Wl%z(Uy>! zpi1lR3x9zECL=xIC{SUh8EZ8sN{n?h0&p(&8Guw(lq>VGg4nH2%D6VKB>w#mV&^_F zBho-96fkR{%=N^h(K_mV1E4RzXolEID3tm6$!-9=K;||=pn!qq_!JVQ-3apwY!?F) z#eMl9GosOQ)b~*oDl<1RRqNid>`MMg^VR@_Kz{*;(W`3!KfH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hq z{4y{VJ2n1X^!(GWn_sBE*#FY*W$$#@^!-;EuV!ACyitF1;4SNI|GSuX6EnH*vF|HC zn11N_81(V(r;JaZegpS}^ZUoqJ9q#903c&XQcVB=dL{q>fP?@5`Tzg`fam}Kb$>7b z0P0`>06Lfe02gqax=}m;000SaNLh0L01FZT01FZU(%pXi0000RbVXQnQ*UN;cVTj6 z07GSLb9r+hQ*?D?X>TA@Z*OeDr{R1600C-AL_t(oh1Hk6O9Md=N8k1l4M9SpMq?qQ z6Krh#7c4Do>;&xsc9Kr8Q?RoYD}Ot&5yZ+gHWq4?==l*+h!#PyS__%th8sx`?l!;b zcDdX4U}kqY=e-BOIrsaJQoQ#Lz-2A~cz}GdkS3q^?i*nWZ0>FWuvg#dYax06xgEvk zC##h|*9lKxt+4^X$-xl-3rmXtTwgT%0zTfg0GO`LCIUrB(paqrCLkp!RevV{=(Jx3 z0$b5SA`-5EmF4vn0Itq1WAnX_UTi!!U+YWcaC?8q1*Ak$vOz_LPe5XAPc5Pa{#}C9 z1@yL)1ImgBNXj!)iD22b=f|gk3RstsG@%w5$&Uh%8_UJO5)lya>%$WOx6PYC1uT%& zd@`?NfhFMz=!NA&eK|?f=~8CXmy-s|HjVCEfeTpCU<;&yI^hfGgGFM2Es*5<^D8#) zMxDR}ij@)oh4OeJNCPDnSOay!5y<@KG;4t$PZfd)9y}J?00000NkvXXu0mjfL^$v| diff --git a/Buffs/StatBuffs/GreenJellyRegen.png b/Buffs/StatBuffs/GreenJellyRegen.png index b5cd1f4743fe6ca64edeb31d4680ba7d9f7e5cfe..069b673358b2b150abb03102f2c2a811d207eaa8 100644 GIT binary patch delta 876 zcmV-y1C#ud7=s6pB!2;OQb$4nuFf3k0009$NklcFFD!|Qg|;LkgrcGlOfc{wL?kFE$|#D03NQLFNsxjSbP;6C%qY_oG!-cw zLCLWED5`aFo+o+Mgd$?^xp{WJ{@eM#=bY!AEh%p$0P*9lFn>{GR?pLD=6{xPm(vC? z>%XA?h1lE)NnwDY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hm+ZVyVOLSNi?B z>BD~Ee(8aT1AWbo&CM;EEoH56tE6@EV8X%6-+y?2)7{2wt8b^bmmUI#B!?bmEKDc(k|2rKjV2%kTFe(>+#mT;+J# z3Brk@6Q54zpPW9Gb?WKqB=X}qd>G$kEdEWK>u?x-@ zj(=WcUF^E#aH(^^exTzA`yV<69R@px9EZ9uJ6-M>o;Q5riu;w*SG}*EyB2Wm(#ZUg z;pqt>?FMZqM9Va~FNLH%A*>}Hq z{4y{VJ2n1X^!(GWn_sBE*#FY*W$$#@^!-;EuV!ACyitF1;4SNI|GSuX6EnH*vF|HC zn11N_81(V(r;JaZegpS}^ZUoqJ9q#903c&XQcVB=dL{q>fP?@5`Tzg`fam}Kb$>7b z0P0`>06Lfe02gqax=}m;000SaNLh0L01FZT01FZU(%pXi0000RbVXQnQ*UN;cVTj6 z07GSLb9r+hQ*?D?X>TA@Z*OeDr{R1600AFKL_t(og=75x|33o*0|NsiBO`=CC-DFO ze?|rd1_s6fcK`ze!+!<_1_oALW`BCx&+z;5Uxtz4fJK)qQ223rCq{?^U>3tHgaN(o zWCjKX28Od9vql{-$Q^*o0Q5u!1L*3|ErfwfrE?h=7>G!O1Lgp9i(v-9G{X2F4hb+Y zFfcF(*nL2;pv3(uUI)Rz;B^2Dpj(U%@#kd?Y_#7aaOT|+xa#g000000Ne4wvM6N<$f|@YFIRF3v diff --git a/Buffs/StatBuffs/PinkJellyRegen.png b/Buffs/StatBuffs/PinkJellyRegen.png index 6dd75f8c3442f77834489d762b77d4746fadbb02..1105ca95c73705fc1ca41cdc3c78ddd2f43b648c 100644 GIT binary patch delta 776 zcmV+j1NZ!c7@r1^B!2;OQb$4nuFf3k0008nNklLY|A0x1ftTognfx^R=Lh@e!QMT-JManT|wY}2A4-6+xLA|wggSUi*z5tTHd zq0C4I3khs-?s=~_I$Qz!2NZ9u1fV?h1Av~X_a6JYBap3wuChTH zn9QB|!Y07YwoS z)C<6%iL0{i2!A+T(4V>s!0ob!0Bi{z0HA3;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n>)YJ7 z9Vk~W&wno;+a9vLa|dHb$&Qyhm+ZVyVOLSNi?B z>BD~Ee(8aT1AWbo&CM;EEoH56tE6@EV8X%6-+y?2)7{2wt8b^bmmUI#B!?bmEKDc(k|2rKjV2%kTFe(>+#mT;+J# z3Brk@6Q54zpPW9Gb?WKqB=X}qd>G$kEdEWK>u?x-@ zj(=WcUF^E#aH(^^exTzA`yV<69R@px9EZ9uJ6-M>o;Q5riu;w*SG}*EyB2Wm(#ZUg z;pqt>?FMZqM9Va~FNLH%A*>}Hq z{4y{VJ2n1X^!(GWn_sBE*#FY*W$$#@^!-;EuV!ACyitF1;4SNI|GSuX6EnH*vF|HC zn11N_81(V(r;JaZegpS}^ZUoqJ9q#903c&XQcVB=dL{q>fP?@5`Tzg`fam}Kb$>7b z0P0`>06Lfe02gqax=}m;000SaNLh0L01FZT01FZU(%pXi0000RbVXQnQ*UN;cVTj6 z07GSLb9r+hQ*?D?X>TA@Z*OeDr{R16009q4L_t(oh2__wPQySP$MNqa)0i28flbZq z0V-#TszX#E5L1K)=mYEl$kfEd)PH;x7-Sy+g92s<1~W}^h~+PKaO=S>y({~vW?An0 zX_qva(pm$cl-gW0G_AD)P{9F!1~}~un(VXseByrrUYEB3oaHwM1~9`9R|Np0`NR(( z2fy6E?>sO#K;{~*1=xPexuIu!UL!umzm~W>DsO=ZynggLc0LxNdKN z=kWsYf7J5cs9S$_87V+!LVSbq117^M0C{q>^~GL#>>XTI>u;YGkJpg`WG2Kn*gn9n z*>Eo5@~s4*`nZb>kaW)h$WAh6h|45sE?$7_uMk@>UO@0ar=bB~lgkhYl*Fsh00000 LNkvXXu0mjf&u+`d diff --git a/Items/Accessories/CleansingJelly.cs b/Items/Accessories/CleansingJelly.cs index 3a1611de7a..108837fd19 100644 --- a/Items/Accessories/CleansingJelly.cs +++ b/Items/Accessories/CleansingJelly.cs @@ -12,8 +12,8 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.width = 20; - Item.height = 24; + Item.width = 18; + Item.height = 40; Item.value = CalamityGlobalItem.Rarity1BuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; diff --git a/Items/Accessories/CleansingJelly.png b/Items/Accessories/CleansingJelly.png index 8bcaebe54deb1a7d5babd9d669da8baa773ebd78..9e57bf762ae78de58ac734ed70198bf81b28a268 100644 GIT binary patch literal 749 zcmVPx%r%6OXR7i=v)?a8>WgN%x*GVy%IIT#+4L9eXHYCB=L~CCxN6t)88-^o9XG|d5&%JBX7>H@69>i z@AG}0^FGh_^L)=qL|e3IDQIqK1v6`E!P$W`Db&=?O5mrn{a~bY9rX8~0#C@vCaziA z4(82k1jmkkmBQx5AA?QrZ2=!`eK#FT(lDnn8M{z^MA^;IP$7jwhfkJG-26cx93CD7 z-MhQeIFwX|D67hwueXLh>Iek0XU_+{Ck}&ezc~OJ<~*Ok#S7=;OVo2el~vf%4JkQM@gomn%Y_5WZ&_0?30Ht4l3ur*!)rgr5k_bOEj?*m5OmXI&$P| za4G8M;U2|n_oqQerPB3$b(GX^3VM0!OkWDGty&9~zTXBGP6%C~P#DTc@b6yTe&L;* ziEL~SXXcGYW8IgBhKZL9zWuxe`4*YX&BOxjUW)=TC=@ z+0_^Nl$9}W*=Qj7{P#dUTFjeh%JR_ZMv7@5xevZr_Y3H3c_k8F2{Zbl?s{*4d(TYE zyC02)cXfMv429~o2_)+y$&C7HP>fksM+@NZ(vxx~x;OZr2^q<*<{!WoOTevcfd_x( zP4pNmUb;DsB=f5t$*UaE+?MCc`sepv3xS2@7pff5wz?DXF6ijywL6g{C_by=tw-in zj_8xnx~;JfPLPtZH00000NkvXXu0mjf2C8Mv literal 15626 zcmeI3e{38_6~{Lrtzwr%0V+V`pUVYMP`cio{k@yJ3$D+_Za8CXgB^*sp52|Zm)zZ6 zZr8qxLxZVXgat(cwWtuO^p6GsY8uh1s3?f0l3Ng>6#<$Q+NwZ>pcQICPzl-;n7v zS6_MLaKLdp*P_2Ickkc1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W^QGMJ4<$Y!$!sT0LQ(!Y|AwoRNtf$1Qz`?mjd2j=^0|e*VzYd%ydazi+$! z{ymSMR~|WSo*zzp_P!quzUK`tS6hDgs+HtvbLGR^R`={lZApKDyW=z4bhmnZI(SZe zrL>s;^T~rRJ|I0gd+6->>a|b3y64_~%TL(-=iaLh_ibHGo%r$MJHL4R2md(p`r6>c z?!o(CU*l4@KL6&sxOBVmx5w>5v>U(!2etG&gPrWsE z=v8?3zOODWT|N8eKl_)@oc!`5JAZPMvF*g|wea`vKXLD+3m?2C56|xEd+ve0{gvyg zyB_?~O^=RVdtt{lV_&)Xh39o`^^?y$UU=-;@!@Aq9r(|8zJKTJpSHem<8m>$&Qg$)DeO=?|v3^|!bF=wfyClKwT}rE>?4ijUsqI}bl}<8804 w{cP#zU2pwyYV@I#` "Items.Accessories"; public override void SetDefaults() { - Item.width = 20; - Item.height = 24; + Item.width = 34; + Item.height = 52; Item.value = CalamityGlobalItem.Rarity5BuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; diff --git a/Items/Accessories/GrandGelatin.png b/Items/Accessories/GrandGelatin.png index fc9bbcb868a0bd604ce2d94da0216eef0d2991a4..3bfd95b68db5a049d727411128b73c07b0ab3f13 100644 GIT binary patch literal 1437 zcmV;O1!DS%P)Px)S4l)cR9J=8*n5zdRUOCi*Uv?AWo2t!E-izJS`aYiE+8~(8z?f;I9_s$#%vrh zl_qR-tcfjaY9g?)DRb>YQyLCgY6O!;Va8>bg#dA30}+vBmD!8C6LAj_=GPzJ=VARV zODxkg^V{z~XU;j_bDs0OpU?T8?|CxL(&o?X2L=xt0yT3?kpGwU>#gJINKC!?TJZ2AwOJT7vNQv?B;$HZrtc8BrD^~;x3~m!w6x`r7=QgT zFvq9RMW%f0fXsX6ITM+_LnO6zoAzd5&R26ubhny$mxBAgzAFp+4j#|+=-AEr9+A{` zY+D2NcTCM`-`>0v9BOF=Z-$f<7xnHDeTPU{$#F33LxVE#=&#~c@4ssUxcaIQU}Jrd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=7V^3TnG?tQ^%#v2l48-5Fpy7j!T;l;?;2>K(tLw zT*_Kk<3Z%=+23x9-gEG4%4bKN$z~Up0Hs#6Q<9ABXQ+ z@x{pRK6d@_g-^==aQw*R|DM0UNV#~}KkKy@$LzWF>!OCIznmlQ=z7W0c;eofyp-M3 zQ_gI?_sW5nzPYd{rAj%!qx#eOls#XqyMDjUz9#R-MMH9C)0g+39w5D0((}~B&*lx@ zw7C0oBQwDE!n0p}6dLNgypwje)DEj0U(s@_5KHAIB;9#`$*_S-P~#yQfy29jMs-)s8+TN9qEvZEQ-~`~J-%y;8WcrjT@)7Iv2nFPW`*bYe$<6-KsX9-T%F1@rjzB9BSDAtDD@^y7Hv{*ESEX zdT-e2ffGx%k_YC(!c)@`RNZ+GQW4-ejZp(V?9_Nh4q zc=fE~+@OWlX&W2n?;P%1Ox(_|y^(b3(Dvcj>&-5sC5=+#>JF9!}*=U+R6 z51){lJFsyjH)Ptri!BYNnzGkxt~L+e_FmWDK7YY??^^ZRZ=00W#V_pJK5Mn7^4LG` zS5t-Filaj_XCEx?QM@a+cFMZ7cWc<=J1Z~ZSJ;eaKCNweu{zIDRwjR&(PjPD`@9>b j>>58aaCzyEuz4SUKezk2-v3tL2G1QgIs5Igb6@@+U>wv; diff --git a/Items/Accessories/LifeJelly.cs b/Items/Accessories/LifeJelly.cs index 0c4d0719e6..fc53a320f1 100644 --- a/Items/Accessories/LifeJelly.cs +++ b/Items/Accessories/LifeJelly.cs @@ -11,8 +11,8 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { - Item.width = 20; - Item.height = 24; + Item.width = 18; + Item.height = 40; Item.value = CalamityGlobalItem.Rarity1BuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; diff --git a/Items/Accessories/LifeJelly.png b/Items/Accessories/LifeJelly.png index a0376630856e73d68715b44b4a746d730edda048..67c9364a04ffcb575ff8aaf78bf5ce95c6ef187f 100644 GIT binary patch literal 754 zcm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PpoH@x!N zt`}a_zWU6Ahh95hxp01B?uXa>X6DJe&Q3n`(5i!%9em+1_m5LAej{?=WX1d1uFZR9 z{`Q}##M=jyZ3iY3PjSEe!&&iiZryJW44>;+|E{j}&A#}tUw>%Brst+U@Rgs>zO-fK zUk?5B{qfJAF8%B2n;xJ4$=v(apUIs#dgGLS_w8@5ynD@X?DxBNUwCWzkN-Ti>RVq* zy|nJSZw}3+-&uC*p6{>v-ql;DU%Bn-gR9TYZ+!E(^XAPnPaS#ppC|2!HMbo3*_B$~ zFE*ao*LUIYvS(j@__UC_|IpeGe{@C9)ARE?KKuIFcM{TN_uuj8k4ENBfBp68FC2ex z|6`}dpL_C&=kwRxv2NY3?tSdl)ra?8_t%$?fZ1a`+^~!uQJ(q1=Yn^Yhqex "Items.Accessories"; public override void SetDefaults() { - Item.width = 20; - Item.height = 24; + Item.width = 18; + Item.height = 40; Item.value = CalamityGlobalItem.Rarity1BuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; diff --git a/Items/Accessories/VitalJelly.png b/Items/Accessories/VitalJelly.png index c8f1e9bd962688e8074f423957a5fdda773e1f49..c9c23ef42357d0e5f66ce15b73a3b8860fdc1b41 100644 GIT binary patch literal 725 zcmV;`0xJE9P)Px%k4Z#9R7i=v)_rJJWf;ft&ofQMa+^~SCqmB(Q$pQPd|{9z1e*y(O4}bY7|lQe zD}331f`TZbF#W@XNJS`oDaZ&Df?j6+p%}~;Vw>b+n3JHjsn5h0=JAjFIgazBf^fF$ zpZmJbeO>qU<#+D;J}2WTR#Q_OyAfooW+diwSGr?210_#e=y@#@JMXP%PE6dte-B*$ z`>zO&fBzfk?7R$G*FVlrmuPfMQe8bCbab4HV9c1Ypl;cU1W7K}{l7)hC5oMxq;1ds z1VL;u$<+}fimh0SVuF{mGm1-wiRhJ?(=yPyzB#dz;~gBwCr^9>7A#tlf$pwLDHHYe z^@2Y;!FkhDkKeuGTk`1p%=@P|G z_PYtYa?XM~ASSgTbi>z`XufLt@EdFy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ture/BossRelics/CalamitasCloneRelic.png b/Items/Placeables/Furniture/BossRelics/CalamitasCloneRelic.png index 3f9728e8ff876153139a134196ba1390092292e1..730e0e9c11fa68c8a43d6a622724cdfc54d6695e 100644 GIT binary patch delta 1086 zcmV-E1i|~23g8HkF@G9KL_t(oh1Ho|XjDfO$A348wI&!pDvecKcP$cxJSe6lCb(75 zr6344F9}*ud@x|FPgOK8#j-7}eUUa`kHv&Bdj8KtPzAuHAHDG%7;0@9k0H{VsSo?}L%u(R5y2<_RfYSpuGrJZ9(Hv@3-+zkMF?`t(jz`-y}VW zkd_OrBb0GJWReNhDvgC(e+1ylSv}u~hK7?b67q<^jbDgg6}90wqtc;W(l-1xQUMA`C8 zCi0>kF?$L5e2X1`#-^*<&hX#lL9=*4p`+Sr2RU?q+yyxO?FYbQjVJ;Vl@fgtwad%i zZ~%rMyzpF*b%at%m(xWK<^t^fXgQGH&qNGuOmp9XsoD{EhtxWAzf<;> z(tqHCzttIj&JfD`>jzV*x-fe(V%8DLSwp5}(^S4>#O4m6Jo3`4ELU>>o8|I-$WtS+ z0X25E_p>fYek%X!Hvt%oKlhxlVx20+-FHVl?+1LUhz{I)k(cN*<{?>#)Fjy_NmY+@ zjB3?>;9w1oEo(AGZeLb~e9erQr{lYfQUed?I^YH{@Bjb+07*qoM6N<$ Ef)!j0@Bjb+ delta 1268 zcmVM5w*5A zO-!nhm`J3lh8ImRzL++pK8j5nUyK-iA%zr!iK$T&6QxTm^|mhH5^G6`_EJbFRiIKf z%Qilo`R?@0y)1n()9+=LbLN{lzw>?n^UX1ES#yIQ0CQ_40Dq^y{?>AJF#tY3yP);Y z&dmZ~{I44pKuX%Z2Ee8Mzq!5tT9&Y`UjL&d$%%}#yrLR_i@g^tfUfS(0H_Z=yQ(80 zQ?ug{06II)3t8h%KFGU-#Dq*s+a~~w{P}~{p5jvje&O+Z;yQf##r*(ub||75naOs4 z)xK6Nd7scqR(~2$M6L`kSO8fW2?oG2i2x+9r1cNh761_Lxpqgf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!J(OT zz0jRUD0MAUe5wP&oyYF4cRa=K%GJE}_t^fI0T>*5!}3Hpq9{@0#Oj~|Un<~uec6wf-)IUN>rY<5cypR<#E)mtt=8g?z z7rH(vc}X>={@PYex$9~_#s8LfgsL)2`o?*SjJrc66ODEPFf}!9Eu`bAYgqHtG@tb! zIb`+k+ha$ce}twpbpb$U&0p4l?s#*DM3a(Hb2G1-nO#jO8I3xZU}J-%ME?kNwg{Pz z2c8AsowvUSpr?C>~b7j?Wn!d|83a?l|VEq?a?>K ztob_L)>;dM1l#Ye_B2!1R_6`C_*`QE;SQ9{=bxPd!qeNWYt;5Uwg5o#2hoI{?(W&8 zWK?^4mNjh>HvSRH*rFaVcQmFf~eSl=iS zw^CHojIDO!yxd;4w`L81DJ)sz-VrkO^(z{Yx~O>iKiqYX0r>6mpMa&M0HA-Lb!lLr zc(c{{FC1*M#$SC`NNj7D+WE?~^k*`59p*2g=19&OXo)NWq59QtXG}Da&HQ8C+m=&>{yY4ms7cbu|J09Dz!2qPL-YPrZ+FWS>W^V{N@4tSOWNIa&c|=d?FOQ!D zU?eGI^p^7Y(}w~0@aT&G3=Yi%0Eu`6fcB0C0H!DZF3!&?xf1?)u z046R?1OUfJzOg2p`|dp;B<2!$uCEse$*J`v_5u)laH|10cXk4RkqgU~pMQk*@0NO| zyH{>bXHF(9GAr002ovPDHLkV1fexG=KmA diff --git a/Items/Weapons/Summon/BlackHawkRemote.cs b/Items/Weapons/Summon/BlackHawkRemote.cs index 057601f3fc..0e2d713056 100644 --- a/Items/Weapons/Summon/BlackHawkRemote.cs +++ b/Items/Weapons/Summon/BlackHawkRemote.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Summon { Item.damage = 25; Item.mana = 10; - Item.width = 46; - Item.height = 28; + Item.width = 38; + Item.height = 40; Item.useTime = Item.useAnimation = 24; Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; diff --git a/Items/Weapons/Summon/BlackHawkRemote.png b/Items/Weapons/Summon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al 464 zcmeAS@N?(olHy`uVBq!ia0vp^S|H593?x6vT4n+%#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6<`0X`wFK)S*)NO>_%)r2R z7=#&*=dVZs3jXwTaSZYBUVHg=-eCm+*NaJqRCyj~{`kLtt4!O9Nvg{iR@fiiu%<%h zQ)$eys%ZY}mU%B-yR$G|{f@O1TaS?83{1ONl##6SQ5 diff --git a/NPCs/NormalNPCs/Stormlion.cs b/NPCs/NormalNPCs/Stormlion.cs index 6e89077e0a..fb02481c3c 100644 --- a/NPCs/NormalNPCs/Stormlion.cs +++ b/NPCs/NormalNPCs/Stormlion.cs @@ -94,7 +94,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { if (hurtInfo.Damage > 0) - target.AddBuff(BuffID.Electrified, 120, true); + target.AddBuff(BuffID.Electrified, 30, true); } public override void ModifyNPCLoot(NPCLoot npcLoot) diff --git a/Projectiles/Rogue/EclipseStealthBoom.cs b/Projectiles/Rogue/EclipseStealthBoom.cs index dc1441f7be..d258de5353 100644 --- a/Projectiles/Rogue/EclipseStealthBoom.cs +++ b/Projectiles/Rogue/EclipseStealthBoom.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.Rogue { Texture2D glow = ModContent.Request(Texture + "Glow").Value; Rectangle frame = glow.Frame(1, Main.projFrames[Type], 0, Projectile.frame); - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } } } diff --git a/Projectiles/Rogue/EclipsesFallMain.cs b/Projectiles/Rogue/EclipsesFallMain.cs index c533adb17c..a0914ecccf 100644 --- a/Projectiles/Rogue/EclipsesFallMain.cs +++ b/Projectiles/Rogue/EclipsesFallMain.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Rogue public override void PostDraw(Color lightColor) { Texture2D glow = ModContent.Request(Texture + "Glow").Value; - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } } } diff --git a/Projectiles/Rogue/EclipsesSmol.cs b/Projectiles/Rogue/EclipsesSmol.cs index 1000f9603e..2d15f0772f 100644 --- a/Projectiles/Rogue/EclipsesSmol.cs +++ b/Projectiles/Rogue/EclipsesSmol.cs @@ -29,14 +29,14 @@ namespace CalamityMod.Projectiles.Rogue public override bool PreDraw(ref Color lightColor) { Texture2D tex = ModContent.Request(Texture).Value; - Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() * 0.5f, Projectile.scale, SpriteEffects.None); return false; } public override void PostDraw(Color lightColor) { Texture2D glow = ModContent.Request(Texture + "Glow").Value; - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } } } diff --git a/Projectiles/Rogue/EclipsesStealth.cs b/Projectiles/Rogue/EclipsesStealth.cs index 1b71e7d58d..0586d87a7a 100644 --- a/Projectiles/Rogue/EclipsesStealth.cs +++ b/Projectiles/Rogue/EclipsesStealth.cs @@ -116,7 +116,7 @@ namespace CalamityMod.Projectiles.Rogue public override void PostDraw(Color lightColor) { Texture2D glow = ModContent.Request(Texture + "Glow").Value; - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, glow.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } public override bool? CanHitNPC(NPC target) => Projectile.ai[0] == 1f ? false : base.CanHitNPC(target); diff --git a/Projectiles/Rogue/UmbraphileBoom.cs b/Projectiles/Rogue/UmbraphileBoom.cs index fb9924cd18..4bdbbd87e0 100644 --- a/Projectiles/Rogue/UmbraphileBoom.cs +++ b/Projectiles/Rogue/UmbraphileBoom.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Rogue { Texture2D glow = ModContent.Request(Texture + "Glow").Value; Rectangle frame = glow.Frame(1, Main.projFrames[Type], 0, Projectile.frame); - Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(glow, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None); } } } diff --git a/Projectiles/Summon/BlackHawkGlow.png b/Projectiles/Summon/BlackHawkGlow.png index 24479cb83969ea319e93c156b0723570a1a82040..0f050a39f9df1877638f57a0614ec37296326080 100644 GIT binary patch literal 1770 zcmbtVX;4#H8hu$zP@06r5=3aJsE}!~L4plYz?U&;mS_kxWLP4GHiF2eVNKE_3Dczn zi~?zzeS|17C~1_nEm~lZVi5$DHH|SU1dL%35;Bc`zYlkw+y>Kg;e-s51^@mU!^A=-1#DlULNwJe}~Tj(t8pKTX9t?%h<%P zOQa0hp?V+ux0WHMCXB^m7omckqAZ^8otmAj%U93!r@Wffw!|mD>T9aW{g7)Au>Z*0 z+x5VTt$Tx9tK~SI{@tU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zCsJALp408G$5PefX5v?fVW554C-^=yk;JPWUAASY^h{p1^yCPcQ z;RfP)x9hy&_IOm?L+$u{15`I*v5U0}sU6=82n(2&bGRwOauF7Dg$40&bJuy0eBHl2 zjjk0CtyGp4vi>`VnCN!9?M;0;ow}c2Kfk)~xkADz0uY(Bq;$^}C(4lDi$cOFLKe7s z5QIjO0w6LoppHmD0HG{Q!e)(99&R9NAET{Xe1M4htWg>ga=n`(v^TueICl`%v91LL z2t1;%9d|`&rEEP85QGMy@o!WS8iWR+L1>JnTs#7gz$5SoJYvR!iMv_W_AY0van>b( zAZw5{+R7U8N^a_G(@=n0_d4A?0uZx2{PGvMDdO@=9sk5|AWDw|gniQmh_to&(V?mH zm0=YDh|CLzju$?@ymwcIKY1%WRu6*Ez%2XbK>AEP08v@9hbytQJlsIkK8Dwh&w&Ag zo+UlYwtALwH@w%#Dnac(%WJblGiGVE0IPZ2vWC?HtmXj(>67%?X8N>>@!EOt2s{Fh zz$3S;M8;II-lGY&w2ns3+s@MgU z_Beo0ar1~`Tb~#JhzyWqBRO9=_r*~dMF= Main.projFrames[Projectile.type]) + if (Projectile.frame >= Main.projFrames[Type]) { Projectile.frame = 0; } @@ -306,13 +305,10 @@ namespace CalamityMod.Projectiles.Summon public override bool PreDraw(ref Color lightColor) { Texture2D texture = ModContent.Request(Texture).Value; - int frameHeight = texture.Height / Main.projFrames[Projectile.type]; - int y6 = frameHeight * Projectile.frame; - SpriteEffects spriteEffects = SpriteEffects.None; - if (Projectile.spriteDirection == -1) - spriteEffects = SpriteEffects.FlipHorizontally; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + SpriteEffects spriteEffects = Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture.Width, frameHeight)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2(texture.Width / 2f, frameHeight / 2f), Projectile.scale, spriteEffects, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, spriteEffects); return false; } @@ -320,13 +316,10 @@ namespace CalamityMod.Projectiles.Summon public override void PostDraw(Color lightColor) { Texture2D texture = ModContent.Request("CalamityMod/Projectiles/Summon/BlackHawkGlow").Value; - int frameHeight = texture.Height / Main.projFrames[Projectile.type]; - int y6 = frameHeight * Projectile.frame; - SpriteEffects spriteEffects = SpriteEffects.None; - if (Projectile.spriteDirection == -1) - spriteEffects = SpriteEffects.FlipHorizontally; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + SpriteEffects spriteEffects = Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture.Width, frameHeight)), Color.White, Projectile.rotation, new Vector2(texture.Width / 2f, frameHeight / 2f), Projectile.scale, spriteEffects, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, spriteEffects); } } } diff --git a/Projectiles/Summon/BlackHawkSummon.png b/Projectiles/Summon/BlackHawkSummon.png index 0567fd7c2d4f6fd0f898922702676eaa9e128bab..ddb588f9b1307b0bb4c28d67d31fd2de91e5f4b6 100644 GIT binary patch literal 2331 zcmbuBc{tSH9>>2kXb@rSTZHVwkCc6gW+>~7HM^`CmF*hq5DGQIjF4p{vQ#KiVTugh zA-f;hnXE&SZOC$`-}8H(`_Fyu{p0>|&Uwx`e|=t`*ZVvt)!Guy$u7bU005^M!o-%b zS~JEd>j}mj^Ygk80I<%PnHZrW-PQ_SgHWb?osEfD6%`4nz=1p-6{rl-1f{Wyu+17h zkWHcUry2;ImLay%2fUtucrDcWxp}?rL%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k^9q06oXHPO=MemoU03eZTZ@JrdT;hd0S&{1*HdrK$bn-`WjA;yoSi4f zEZ@#vp8bwzUKbadzYn=;K`NqkdOG#WFC0@3PnPU%UbYC$9WCjuBfKR2i&jMAp49KR zecJIMawsZSz-VPf*Vevm>(Q^ME{Y%!_nivAhuJu4} zw+oIDA^kY#8*Y%9^~%uQY1b7Ff}iO>Fo90LSbddP1%SMK^K{K)o_Qfs_bKWmgL1&d zr%=#qxCg5?uwgdFyfRNYRLSkP@@zkCjBDG9qjo-OBPUi18tHQd&xK|EF0Z*;3|jba zi?wYujRdl!2h`?dxWm-xS~jZ)sf(|YW8N`bPctq=YG;#c@rIPelze6pOr8nQB-7p> zro3R47P{>k#j3Rb%A4`+#HK?TiX%pp2w~8zge{$!?8cf$sF=9}P{&!`Oxvu8Fhv-} za#K1W4w_8sxr*b~)FI&v2IaDoxW~~3EejGTLsunq86wf|l}FNg>9=&&hv2w(1y~A>WkkUZ;c_QdF$s>FC}a3lr?Ugm zgEG@XBpye?CzzzM;iGo;JvfGxZwfv@6~-Gy*xmuHbT(EKzUc6O7(R*1jtd=vEGXj- zi4%g~L=-Q`4s$a-E~%%p8_T2U-oM;s`VF`%q^`ZV6kNwB{wtg9o1Ofo)F(YbeZT)$ zp{$|X+nski>2ylhK#SC0i1nZjL($dDqOy`&rr)CTtwBot9)q=PkRn>QzcRy-Ug|>D zYwk9VVke~Wng5g|cDmhPzB>aK`cF8K<^5RpO3vt`m1o4g)NZ$&H)&YLL#AKiw@P-p zZ6?#!s)X!GJ3kqCZe`dsgARXQ>R~pg;b~7i=mh!u1&4Ws`G*99y|mMl5|{<{HpdAS I)}FCn0kcAbl>h($ diff --git a/Projectiles/Summon/DeathstareEyePupil.png b/Projectiles/Summon/DeathstareEyePupil.png index ea9db1fb5d845a6561a9a895ee0457ae6e915302..487e286d6a02cba8dbd60c5a940573d081267b5d 100644 GIT binary patch delta 103 zcmV-t0GR)^0fYgNBw$HNL_t(2Q)6Tx5-<{}jsdQ4{-Ry~L7KMikOS-W_IL!Q6XV># zYDic3_3Kx#iDqVYV3RcUmxAdv%QR3;Bw8W$-AE{yhz>^p`6wz2O%l=I00000NkvXX Ju0mjf002a;E3W_m delta 153 zcmZo++{!pXrJk`k$lZxy-8q?;3=9k`>5jgR3=A9lx&I`x0{NT;9+AZi419+{nDKc2 ziWH!rm#2$kh(>Vo0;`0UO9cU29v!LI5a#)%q;nu^#sM28hC4_8|G(Gd`zSq}>GRZ- zTL-_i{*FwU#Zi3ww(gpQe@7RqA2d0s79?$8z`($4B_zW2|JKAaKw}v^UHx3vIVCg! E05AtR_5c6? diff --git a/Projectiles/Summon/DeathstareEyeball.cs b/Projectiles/Summon/DeathstareEyeball.cs index cb96b98350..e634522270 100644 --- a/Projectiles/Summon/DeathstareEyeball.cs +++ b/Projectiles/Summon/DeathstareEyeball.cs @@ -23,15 +23,15 @@ namespace CalamityMod.Projectiles.Summon public override void SetStaticDefaults() { - Main.projFrames[Projectile.type] = 4; - ProjectileID.Sets.NeedsUUID[Projectile.type] = true; - ProjectileID.Sets.MinionSacrificable[Projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[Projectile.type] = true; + Main.projFrames[Type] = 6; + ProjectileID.Sets.NeedsUUID[Type] = true; + ProjectileID.Sets.MinionSacrificable[Type] = true; + ProjectileID.Sets.MinionTargettingFeature[Type] = true; } public override void SetDefaults() { - Projectile.width = Projectile.height = 16; + Projectile.width = Projectile.height = 22; Projectile.netImportant = true; Projectile.friendly = true; Projectile.ignoreWater = true; @@ -159,16 +159,15 @@ namespace CalamityMod.Projectiles.Summon public override bool PreDraw(ref Color lightColor) { Texture2D eyeTexture = ModContent.Request(Texture).Value; - Rectangle frame = eyeTexture.Frame(1, 4, 0, Projectile.frame); - Vector2 origin = frame.Size() * 0.5f; + Rectangle frame = eyeTexture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); SpriteEffects spriteEffects = Owner.gravDir == 1 ? SpriteEffects.None : SpriteEffects.FlipVertically; - Main.EntitySpriteDraw(eyeTexture, Projectile.Center - Main.screenPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(eyeTexture, Projectile.Center - Main.screenPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, frame.Size() * 0.5f, Projectile.scale, SpriteEffects.None); // Pupil drawing. Texture2D pupilTexture = ModContent.Request("CalamityMod/Projectiles/Summon/DeathstareEyePupil").Value; Vector2 pupilDrawPosition = Projectile.Center - Main.screenPosition + PupilAngle.ToRotationVector2() * PupilOutwardness; - pupilDrawPosition -= Vector2.UnitY * 4f; - Main.EntitySpriteDraw(pupilTexture, pupilDrawPosition, null, Projectile.GetAlpha(lightColor), PupilAngle, pupilTexture.Size() * 0.5f, PupilScale, SpriteEffects.None, 0); + pupilDrawPosition -= Vector2.UnitY * 6f; + Main.EntitySpriteDraw(pupilTexture, pupilDrawPosition, null, Projectile.GetAlpha(lightColor), PupilAngle, pupilTexture.Size() * 0.5f, PupilScale, SpriteEffects.None); return false; } diff --git a/Projectiles/Summon/DeathstareEyeball.png b/Projectiles/Summon/DeathstareEyeball.png index 6825c3c66405eefbc18fbd8d14ed1a1626743206..6e6ab72a1bffc783acf8c7a158134b675b41c8a2 100644 GIT binary patch literal 859 zcmV-h1El20009BNklA$Of_e({RM3RBAc==w8}LvNA?Nr7nzqnyAov+1y?HDYdh=9rDiSb44ubu6 zX+?t2L-tg9vOQ=DnjW(6q&u5+jm`c^`aUN&yOaIx%;eq2$tFVpPpj2l&^~|v{b}F4u!76U!MkPrn23?e$v#9z5?KaFO#Sm!#e1Apq}ob^xfZt^)98f1gMbXI|#> zy}!?Ry0-^Fdww2(`|IlfEZkcF;P>HY0Nx)Q08ltP^BiA4KaV)E^l>56FHXy|vz{b^ zBogeT$K5Uf8=X$HwZhcU$Iwrn%K=cCoAV^guB`$7F|d;g(SPza$ewaqc2wrNODtq5ZBY*Tz>@@(^1ZPS-{T(&7m<(?RQ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+$)@4^2;fB%f81ATt)*o29f10XR@Ex)|L~(j0F;*(8Gu94PQZId zpb89;EVbx+@77oYTD9t@YWFVtZHlTTDt~9V&TUsOo^7qyw%!yQn=}vUen+i&(S0WX z*zneqfLDE2l!sg&NdO+1zz{L7K3xL9$v-YxzOtsF9Pn;@&)2;Oc=26*LP?zJnqY0* z_?#H7HP#P!wUfW?U$5)5U+*QF`ESbf1_DSVtF!Y8aMRgyj00YETlL`blneEyr+=2r z&mJ%U_fM1YmS~?vSV^jyk7v7o*(7fz-0gm*uEkWrAyQQ6TE>xIl=LiW{7$DmzuNht zz`bH8dW6JHRVv^S(KBCHZ6|1**L>V2q|zEJoq|JTtP|Ce!VGSzx@2@_abL<+!6DM;*7yy!U)nn)dL^Aa1JHX-s`0KwE&#=$q_r+E zM9h*$NlM)sQi{#70$HUYI(icY1OLvNZTr{ZdcXMb=TQG$lfrD(%{sF0H VEkjq_cN72s002ovPDHLkV1hx1;EMnN diff --git a/Tiles/Furniture/BossRelics/CryogenRelic.png b/Tiles/Furniture/BossRelics/CryogenRelic.png index 50dc7a9f142c9c51e06991f180deaddb400ee982..26aded2fc89756834508dcecbf6cb9021f7ea486 100644 GIT binary patch delta 943 zcmV;g15o_I3DF0TFnb>(69`%AU7@| z`XG?NFenIGMJ+_Ipcd6C5NZ(#B19yu+7y&XmXu@!1x}V%4g)QECgyg9z^@!fg( zv5+_ZH*e0p=iPU?zkA-f=MAiDZ7H-`10Ac$Htg*?wgK?zD!>_AnW>ub_ zwko5n0WF(|9|6(h=Z^q5e)y!}9}ee)0AjIeqkXxAQjf?|35X`Xz6D^QuiI#U(B5y@ zD0ny0FpmEhJY?JuOeWEjs6@W|l;`!Tg zaLIJ_3>f~wC89}49uVobk%>TE|kP zDAyS`5i2$lwiAF5934-!%zou;IRHb^@i@T2+8oatH5rkPAzN(e_O=_hoOVTSaLk#a z%%i;{20;ICs=T#^qT_~b%e-=Sl72Z;Eh3P3`$dYqC*Vh-EI;mjqf&5*gu~8W)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ix-hhkF#8*>MS>PbRCE+KY8*=0E(Y~4@4HuA;?~(jp zfAgEyU%sO#_u8w&K;ufU`nq)nfc{e(*IASsr{6E32E{ zAR=+)r?gkD{fmu$qak7WiY1^KAiey`vjBWK`(s$*#+@%lz7sDZ(hH}q128k~&)JBK zFIiM1EK!xuo^cjmG$eL?CG-K2u~D%T#fyltTpP7o$X?KBhQ8zR`(dmxNfarKc}S0VtII=Ws1m^^tLXj~_bO&kH>voBmu6=kW;7c2>p z&gD*c`|&tR-zbk+LU{wtuawI{*lFTvQc_W@o|iCSpmXlR*HmzHujPk$-H~ zt>OHub-k~;dlDe>MV&z}uHJ3=2c&osk>v{|cV`%paB*96GZPwCKBM-^Vr6;VHA?x= zXLM>JDR&cz@e#KdFWl5V=(!l|jJT3g`ZgtBWjzp*T_aG1>BKz9czV`Ls(mzz_z1k$F!F2!t002ovPDHLk FV1lv*MKb^Z From 6d9cbcfb034fba248cee2a26121befad3615fd79 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Fri, 1 Sep 2023 11:57:13 -0400 Subject: [PATCH 167/258] Removed flavor tooltips from the resprited Relics --- .../en-US/Mods.CalamityMod.Items.Placeables.hjson | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 0f2df3541f..2521bf71ef 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -932,7 +932,7 @@ BrimstoneElementalRelic: { CalamitasCloneRelic: { DisplayName: Calamitas Clone Relic - Tooltip: A glimpse into what could have been... + Tooltip: "" } CalamitasRelic: { @@ -957,7 +957,7 @@ CragmawMireRelic: { CryogenRelic: { DisplayName: Cryogen Relic - Tooltip: A glimpse into what could have been... + Tooltip: "" } DesertScourgeRelic: { @@ -977,7 +977,7 @@ DraedonRelic: { DragonfollyRelic: { DisplayName: Dragonfolly Relic - Tooltip: A glimpse into what could have been... + Tooltip: "" } GiantClamRelic: { @@ -4024,4 +4024,4 @@ WaterTurret: { Shoots high-speed water blasts at nearby enemies Cannot attack while a boss is alive ''' -} \ No newline at end of file +} From 698453011e540ad7704ea6c767745b7c5bc01f17 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 2 Sep 2023 00:07:11 +0700 Subject: [PATCH 168/258] Blaster + Ark UI fixes --- Items/Weapons/Melee/ArkoftheCosmos.cs | 10 ++++++---- Items/Weapons/Melee/ArkoftheElements.cs | 10 ++++++---- Items/Weapons/Melee/FracturedArk.cs | 9 ++++++--- Items/Weapons/Melee/TrueArkoftheAncients.cs | 10 ++++++---- Projectiles/Boss/CirrusBlaster.cs | 3 ++- Projectiles/Boss/RavagerBlaster.cs | 3 ++- 6 files changed, 28 insertions(+), 17 deletions(-) diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index 5a37045429..91875cf480 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -199,13 +199,15 @@ namespace CalamityMod.Items.Weapons.Melee var barFG = Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; float barScale = 3f; - - Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 8) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f; + Vector2 barOrigin = barBG.Size() * 0.5f; + float xOffset = frame.Width * 0.25f - barBG.Width * 0.5f; + float yOffset = frame.Height * 0.7f - barBG.Height; + Vector2 drawPos = position + Vector2.UnitX * scale * xOffset + Vector2.UnitY * scale * yOffset; Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height); Color color = Main.hslToRgb((Main.GlobalTimeWrappedHourly * 0.6f) % 1, 1, 0.75f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f); - spriteBatch.Draw(barBG, drawPos, null, color, 0f, origin, scale * barScale, 0f, 0f); - spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barBG, drawPos, null, color, 0f, barOrigin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, barOrigin, scale * barScale, 0f, 0f); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index 8c24fa7418..a763b8c8bf 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -215,13 +215,15 @@ namespace CalamityMod.Items.Weapons.Melee var barFG = Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; float barScale = 3.5f; - - Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 10) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f; + Vector2 barOrigin = barBG.Size() * 0.5f; + float xOffset = frame.Width * 0.25f - barBG.Width * 0.5f; + float yOffset = frame.Height * 0.7f - barBG.Height; + Vector2 drawPos = position + Vector2.UnitX * scale * xOffset + Vector2.UnitY * scale * yOffset; Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height); Color color = Main.hslToRgb(((float)Math.Sin(Main.GlobalTimeWrappedHourly * 0.6f) * 0.5f + 0.5f) * 0.15f, 1, 0.85f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f); - spriteBatch.Draw(barBG, drawPos, null, color, 0f, origin, scale * barScale, 0f, 0f); - spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barBG, drawPos, null, color, 0f, barOrigin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, barOrigin, scale * barScale, 0f, 0f); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/FracturedArk.cs b/Items/Weapons/Melee/FracturedArk.cs index 4b5ffb090f..d3944f779a 100644 --- a/Items/Weapons/Melee/FracturedArk.cs +++ b/Items/Weapons/Melee/FracturedArk.cs @@ -126,12 +126,15 @@ namespace CalamityMod.Items.Weapons.Melee var barBG = Request("CalamityMod/UI/MiscTextures/GenericBarBack").Value; var barFG = Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; - Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f; + Vector2 barOrigin = barBG.Size() * 0.5f; + float xOffset = frame.Width * 0.25f - barBG.Width * 0.5f; + float yOffset = frame.Height * 0.8f - barBG.Height; + Vector2 drawPos = position + Vector2.UnitX * scale * xOffset + Vector2.UnitY * scale * yOffset; Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height); Color color = Main.hslToRgb((Main.GlobalTimeWrappedHourly * 0.6f) % 1, 1, 0.85f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f); - spriteBatch.Draw(barBG, drawPos, null, color , 0f, origin, scale * barScale, 0f, 0f); - spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barBG, drawPos, null, color , 0f, barOrigin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, barOrigin, scale * barScale, 0f, 0f); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index 8c27ed48dc..21d38eb4e7 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -156,13 +156,15 @@ namespace CalamityMod.Items.Weapons.Melee var barFG = Request("CalamityMod/UI/MiscTextures/GenericBarFront").Value; float barScale = 1.5f; - - Vector2 drawPos = position + Vector2.UnitY * ( frame.Height - 2f ) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f; + Vector2 barOrigin = barBG.Size() * 0.5f; + float xOffset = frame.Width * 0.25f - barBG.Width * 0.5f; + float yOffset = frame.Height * 0.8f - barBG.Height; + Vector2 drawPos = position + Vector2.UnitX * scale * xOffset + Vector2.UnitY * scale * yOffset; Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height); Color color = Main.hslToRgb((Main.GlobalTimeWrappedHourly * 0.6f) % 1, 1, 0.85f + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f) * 0.1f); - spriteBatch.Draw(barBG, drawPos, null, color, 0f, origin, scale * barScale, 0f, 0f); - spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, origin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barBG, drawPos, null, color, 0f, barOrigin, scale * barScale, 0f, 0f); + spriteBatch.Draw(barFG, drawPos, frameCrop, color * 0.8f, 0f, barOrigin, scale * barScale, 0f, 0f); } public override void AddRecipes() diff --git a/Projectiles/Boss/CirrusBlaster.cs b/Projectiles/Boss/CirrusBlaster.cs index ccb1697fb2..cefe1a51b7 100644 --- a/Projectiles/Boss/CirrusBlaster.cs +++ b/Projectiles/Boss/CirrusBlaster.cs @@ -44,7 +44,8 @@ namespace CalamityMod.Projectiles.Boss else if (Projectile.ai[0] >= 55f) { Projectile.ai[0] = 90f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI); + if (Projectile.owner == Main.myPlayer) + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI); SoundEngine.PlaySound(SANSFire, Projectile.Center); // Funny Gaster Blaster sounds #2 } diff --git a/Projectiles/Boss/RavagerBlaster.cs b/Projectiles/Boss/RavagerBlaster.cs index 7a9e0551f9..5bff5ee0a7 100644 --- a/Projectiles/Boss/RavagerBlaster.cs +++ b/Projectiles/Boss/RavagerBlaster.cs @@ -43,7 +43,8 @@ namespace CalamityMod.Projectiles.Boss else if (Projectile.ai[0] >= 55f) { Projectile.ai[0] = 90f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI); + if (Projectile.owner == Main.myPlayer) + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, storedVelocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, Projectile.ai[1], Projectile.whoAmI); SoundEngine.PlaySound(SANSFire, Projectile.Center); //Funny Gaster Blaster sounds #2 } From 7374ed5f25ae97f9c3b7d7fce8d0f235d2e5c069 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Fri, 1 Sep 2023 12:28:28 -0500 Subject: [PATCH 169/258] Version bump. Speak now or forever hold your peace. --- build.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.txt b/build.txt index b5488a9a8d..5644d2fcc9 100644 --- a/build.txt +++ b/build.txt @@ -1,5 +1,5 @@ author = Fabsol and the Dev Team -version = 2.0.3.002 +version = 2.0.3.003 displayName = Calamity Mod homepage = https://discord.gg/calamity buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, .github\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes, Effects\Compiler\* From 70e09d378def59ffb842e326f31309a1c20b3c3c Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 18:45:48 +0100 Subject: [PATCH 170/258] removed debug code --- Items/Accessories/ProfanedSoulArtifact.cs | 2 +- NPCs/Providence/Providence.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs index 02592aa2f1..988d716503 100644 --- a/Items/Accessories/ProfanedSoulArtifact.cs +++ b/Items/Accessories/ProfanedSoulArtifact.cs @@ -93,7 +93,7 @@ namespace CalamityMod.Items.Accessories // Profaned Soul shields are not team specific Color shieldColor = new Color(231, 160, 56); - if (psc && DownedBossSystem.downedProvidence && ProfanedSoulCrystal.testerNames.Any(name => name.Equals(localModPlayer.Player.name))) + if (psc && ProfanedSoulCrystal.testerNames.Any(name => name.Equals(localModPlayer.Player.name))) shieldColor = CalamityUtils.ColorSwap(new Color(255, 166, 0), new Color(25, 250, 25), 4f); else if (psc) shieldColor = new Color(255, 110, 56); diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index f108eb79fa..7656191707 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -1689,8 +1689,6 @@ namespace CalamityMod.NPCs.Providence break; } - - NPC.velocity = Vector2.Zero; } public void DoDeathAnimation() From 743e94f2df63d27e2294ad2ef8354033492f529b Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 19:13:10 +0100 Subject: [PATCH 171/258] Update psc challenge proj exceptions --- NPCs/Providence/Providence.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 7656191707..cdf7df4b71 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -2391,6 +2391,8 @@ namespace CalamityMod.NPCs.Providence ModContent.ProjectileType(), ModContent.ProjectileType(), ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), ModContent.ProjectileType(), ModContent.ProjectileType(), ModContent.ProjectileType(), From 69a125b2f28ef270975ae1c91a5a888191918da6 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 2 Sep 2023 01:24:24 +0700 Subject: [PATCH 172/258] purity --- Items/Accessories/PhantomicArtifact.cs | 2 +- Items/Accessories/Purity.cs | 8 ++++++++ Items/Accessories/Purity.png | Bin 3270 -> 5003 bytes .../Mods.CalamityMod.Items.Placeables.hjson | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Items/Accessories/PhantomicArtifact.cs b/Items/Accessories/PhantomicArtifact.cs index 3f066831da..74368d77d6 100644 --- a/Items/Accessories/PhantomicArtifact.cs +++ b/Items/Accessories/PhantomicArtifact.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 7)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 7)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index 620e58a2c6..ca44f6c28c 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -4,6 +4,8 @@ using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories @@ -12,6 +14,12 @@ namespace CalamityMod.Items.Accessories public class Purity : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; + public override void SetStaticDefaults() + { + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 7)); + ItemID.Sets.AnimatesAsSoul[Type] = true; + } + public override void SetDefaults() { Item.defense = 8; diff --git a/Items/Accessories/Purity.png b/Items/Accessories/Purity.png index c710af531dd7301be7beb119b34f926d730b460e..c07a9cf11283a53b761de4756037d4015e9e64ce 100644 GIT binary patch literal 5003 zcmZWt2UHW=x}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+hQ*?D?X>TA@Z*OeDr{R1600GiTL_t(oh2_}4PQp+W$MJ7B zg3n-FiN-)6#)-j6Lzo>HoJ@2Q5_D8!T-CrUI5;>HR|iG|DKQ$Hc>xz$uS*YUkNpQ~ zLfhZM(A%32Ik&gx)-uN6&Ik-Z5iI^7?M~MK+_su?&1WSBCiyK;Ks(hc0MGqC^8k|v z^8wE8aej?+9ryKirwhQz@sVeq*SB{7uFh`&czJpV1tu3JfZkvTz-p!JfuKq)CDgFb zTn>Q4S|j~1Ahe{hK$3~`2ct@wXqX;gDX0a|8w?G==Ek}QG*L@H5>?Vvzh1rfwFH+eSWWsu-?71;+3FUr?%>OYS1Calk0zXT- zys$+}sW();JxHY8k@iP2UCE~p<^k%GM!^K6Bf#{+^vhdHd+#)a2d$=O{Gu@3dM6JS zbQlSOYM3PM;!i#-Dz1a9?{&Sg27x5$hiRaG2#UU=;ZePcf)2vjgGuCJkP_|}3P5x_ zm0nm7P}&+DpAyb2*@SKH?S_sES@fPmPx@g&z^IK>BCUGeX}z-p+p0ATz}ek}FD&SQ ztDA=Gz%=mk`ZN?|+qMBHl}i7!T_gskfl;3}b(R+P4Paln#p#eZCjbBd07*qoM6N<$ Eg8C>St^fc4 diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 2521bf71ef..b2d1ae885a 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -4024,4 +4024,4 @@ WaterTurret: { Shoots high-speed water blasts at nearby enemies Cannot attack while a boss is alive ''' -} +} \ No newline at end of file From 1cc848e4986461e3ac6bdb86945475b7a2e3d65c Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 2 Sep 2023 01:39:19 +0700 Subject: [PATCH 173/258] aote tooltip fix --- .../en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 10f3da9a2c..56a9017121 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -120,11 +120,7 @@ ArkoftheElements: { You can parry projectiles to make them deal 100 less damage for a short period Parrying will empower the next 10 swings of the sword, letting you use both blades at once ''' - BlastInfo: - ''' - Pressing while holding UP with empowered charges will provoke a Big Rip in spacetime and use all charges - If more than 5 charges were used, you can dash across the rip by holding UP - ''' + BlastInfo: Pressing while holding UP with empowered charges will provoke a Big Rip in spacetime and use all charges } AstralBlade: { From ba22baa7f1f7a6bdc3aab37434a87baa5f17ae91 Mon Sep 17 00:00:00 2001 From: Xyk Date: Fri, 1 Sep 2023 11:51:23 -0700 Subject: [PATCH 174/258] riptide debuff sprite --- Buffs/DamageOverTime/RiptideDebuff.png | Bin 3083 -> 751 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Buffs/DamageOverTime/RiptideDebuff.png b/Buffs/DamageOverTime/RiptideDebuff.png index 4f0a50c3f2d3ccd057552a3bf1766182e822ece7..e61eb2a10574a09a936e8e0460d5652fdf930917 100644 GIT binary patch delta 727 zcmV;|0x12981Ds;B!2;OQb$4nuFf3k0007yNkljJhp!i5q>ksT7_O#1Ao7VdNQ9zhS_KbQO3d8u#8vx{EAplIH4ZwI+wawXCPye;0 zlGdMp^#bsL0wH?zZSRH5-WULHelGxU?&=i)$}?Hdar~!%oZoyR3P2|w z2VlCT*3=5M00@Sa>z#TX0JGiJ;^_Kp%oC;es`Z}&(TNEF+V)yLv1E=aVcxEkb%#O$ zaPmMP7*>J9s>N=Dmo5U(dHq&%_m2W{PQUgUz{Z(nOn+ghTml7Uf3^qn>S96j9~?;l zV7l%I|0p24^pDLT5K@`#J{`@W%e>M6V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4SNI|GSuX6EnH*vF|HC zn11N_81(V(r;JaZegpS}^ZUoqJ9q#903c&XQcVB=dL{q>fP?@5`Tzg`fam}Kb$>7b z0P0`>06Lfe02gqax=}m;000SaNLh0L01FZT01FZU(%pXi0000RbVXQnQ*UN;cVTj6 z07GSLb9r+hQ*?D?X>TA@Z*OeDr{R16009?CL_t(og=75x|33o*0|NsiBO`=CC-DFO ze?|rd1_s6fcK`ze1B%5QvWh4QS$`#D7#J8B7}U+JNV4GO$zu!*3=9mvUpzq(|MB=f z3V-l80Nr98|1cDOTU8l$o8Dm;uA0$>!oRX{6;_7~J_iu8`0}n}*lk1ux+Ye59WwYF zz-wyDz`%e=Y`82giub{5ao@r%cpU;uoS#o09%K$M$tfqxVsr~}0d$9)nSRna$Q^*o zVqz`CaDWoj0jowGFz6kS0d>F`R0oi2@u&k}`gb3GH$)vkDHu8qz^IHUbO+ZfsxlU8t~5PKsx{c$p(xF TR45$I00000NkvXXu0mjfMOD2? From 979eb52dff356494a724ea9138c6c0ea8e30b537 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 2 Sep 2023 02:23:52 +0700 Subject: [PATCH 175/258] internal name stuff when it cleaned up the indentation demons --- CalPlayer/CalamityPlayerDrawEffects.cs | 2 +- Items/Accessories/Calamity.cs | 2 +- Items/Accessories/ChaosStone.cs | 2 +- Items/Accessories/CoreOfTheBloodGod.cs | 2 +- Items/Accessories/CryoStone.cs | 2 +- ...{DarkGodsSheath.cs => DarkMatterSheath.cs} | 3 +- ...arkGodsSheath.png => DarkMatterSheath.png} | Bin Items/Accessories/EclipseMirror.cs | 2 +- Items/Accessories/FrostFlare.cs | 2 +- Items/Accessories/HeartofDarkness.cs | 2 +- Items/Accessories/HeartoftheElements.cs | 2 +- Items/Accessories/HowlsHeart.cs | 2 +- Items/Accessories/SigilofCalamitas.cs | 2 +- Items/Accessories/StatisCurse.cs | 2 +- Items/Accessories/StatisVoidSash.cs | 2 +- Items/Accessories/TheAmalgam.cs | 2 +- Items/Accessories/TheFirstShadowflame.cs | 2 +- Items/Accessories/TheTransformer.cs | 2 +- Items/Accessories/UnstableGraniteCore.cs | 2 +- Items/Accessories/WarbanneroftheSun.cs | 2 +- Items/TreasureBags/AstrumDeusBag.cs | 2 +- Items/Weapons/Magic/DarkSpark.cs | 2 +- Items/Weapons/Melee/Devastation.cs | 4 +- Items/Weapons/Melee/Murasama.cs | 2 +- .../{GodsBellows.cs => DeadSunsWind.cs} | 4 +- .../{GodsBellows.png => DeadSunsWind.png} | Bin Items/Weapons/Rogue/StormfrontRazor.cs | 3 +- ...eificThunderbolt.cs => TwistingThunder.cs} | 5 +- ...ficThunderbolt.png => TwistingThunder.png} | Bin Items/Weapons/Summon/Sirius.cs | 2 +- ...wnHelixStaff.cs => StarspawnHelixStaff.cs} | 3 +- ...HelixStaff.png => StarspawnHelixStaff.png} | Bin Items/Weapons/Summon/UniverseSplitter.cs | 2 +- .../{SunGodStaff.cs => VengefulSunStaff.cs} | 3 +- .../{SunGodStaff.png => VengefulSunStaff.png} | Bin .../Mods.CalamityMod.Items.Accessories.hjson | 68 +++++++++--------- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 24 +++---- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 22 +++--- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 68 +++++++++--------- .../Mods.CalamityMod.Projectiles.Rogue.hjson | 2 +- ModSupport/WeakReferenceSupport.cs | 4 +- NPCs/AstrumDeus/AstrumDeusHead.cs | 2 +- ...nderboltProj.cs => TwistingThunderProj.cs} | 2 +- ...erboltProj.png => TwistingThunderProj.png} | Bin 44 files changed, 133 insertions(+), 130 deletions(-) rename Items/Accessories/{DarkGodsSheath.cs => DarkMatterSheath.cs} (92%) rename Items/Accessories/{DarkGodsSheath.png => DarkMatterSheath.png} (100%) rename Items/Weapons/Ranged/{GodsBellows.cs => DeadSunsWind.cs} (93%) rename Items/Weapons/Ranged/{GodsBellows.png => DeadSunsWind.png} (100%) rename Items/Weapons/Rogue/{DeificThunderbolt.cs => TwistingThunder.cs} (93%) rename Items/Weapons/Rogue/{DeificThunderbolt.png => TwistingThunder.png} (100%) rename Items/Weapons/Summon/{GodspawnHelixStaff.cs => StarspawnHelixStaff.cs} (95%) rename Items/Weapons/Summon/{GodspawnHelixStaff.png => StarspawnHelixStaff.png} (100%) rename Items/Weapons/Summon/{SunGodStaff.cs => VengefulSunStaff.cs} (95%) rename Items/Weapons/Summon/{SunGodStaff.png => VengefulSunStaff.png} (100%) rename Projectiles/Rogue/{DeificThunderboltProj.cs => TwistingThunderProj.cs} (98%) rename Projectiles/Rogue/{DeificThunderboltProj.png => TwistingThunderProj.png} (100%) diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 4910050608..4fd3d1f91c 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -666,7 +666,7 @@ namespace CalamityMod.CalPlayer ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), diff --git a/Items/Accessories/Calamity.cs b/Items/Accessories/Calamity.cs index 18c1ec014a..4a123ca7c2 100644 --- a/Items/Accessories/Calamity.cs +++ b/Items/Accessories/Calamity.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/ChaosStone.cs b/Items/Accessories/ChaosStone.cs index 047a98711a..79e9693ba6 100644 --- a/Items/Accessories/ChaosStone.cs +++ b/Items/Accessories/ChaosStone.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 7)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 7)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/CoreOfTheBloodGod.cs b/Items/Accessories/CoreOfTheBloodGod.cs index 03da4c4953..d9206d691d 100644 --- a/Items/Accessories/CoreOfTheBloodGod.cs +++ b/Items/Accessories/CoreOfTheBloodGod.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/CryoStone.cs b/Items/Accessories/CryoStone.cs index 0ca12500ad..98883c4d04 100644 --- a/Items/Accessories/CryoStone.cs +++ b/Items/Accessories/CryoStone.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(4, 4)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(4, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/DarkGodsSheath.cs b/Items/Accessories/DarkMatterSheath.cs similarity index 92% rename from Items/Accessories/DarkGodsSheath.cs rename to Items/Accessories/DarkMatterSheath.cs index cf7df4f8ab..c52b1649e1 100644 --- a/Items/Accessories/DarkGodsSheath.cs +++ b/Items/Accessories/DarkMatterSheath.cs @@ -6,7 +6,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class DarkGodsSheath : ModItem, ILocalizedModType + [LegacyName("DarkGodsSheath")] + public class DarkMatterSheath : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() diff --git a/Items/Accessories/DarkGodsSheath.png b/Items/Accessories/DarkMatterSheath.png similarity index 100% rename from Items/Accessories/DarkGodsSheath.png rename to Items/Accessories/DarkMatterSheath.png diff --git a/Items/Accessories/EclipseMirror.cs b/Items/Accessories/EclipseMirror.cs index 107311b7c1..c96bc0e7e5 100644 --- a/Items/Accessories/EclipseMirror.cs +++ b/Items/Accessories/EclipseMirror.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Accessories { CreateRecipe(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(20). AddTile(). Register(); diff --git a/Items/Accessories/FrostFlare.cs b/Items/Accessories/FrostFlare.cs index e1ca0e72da..d93792e7c0 100644 --- a/Items/Accessories/FrostFlare.cs +++ b/Items/Accessories/FrostFlare.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/HeartofDarkness.cs b/Items/Accessories/HeartofDarkness.cs index 7696bf3189..9a6f05e082 100644 --- a/Items/Accessories/HeartofDarkness.cs +++ b/Items/Accessories/HeartofDarkness.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index f4cca0430d..342811f679 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 8)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 8)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/HowlsHeart.cs b/Items/Accessories/HowlsHeart.cs index 8a5dea9000..df2308cfff 100644 --- a/Items/Accessories/HowlsHeart.cs +++ b/Items/Accessories/HowlsHeart.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/SigilofCalamitas.cs b/Items/Accessories/SigilofCalamitas.cs index c017de0936..464b2168b0 100644 --- a/Items/Accessories/SigilofCalamitas.cs +++ b/Items/Accessories/SigilofCalamitas.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 8)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 8)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/StatisCurse.cs b/Items/Accessories/StatisCurse.cs index 3ed0ecb34b..3a325984c3 100644 --- a/Items/Accessories/StatisCurse.cs +++ b/Items/Accessories/StatisCurse.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/StatisVoidSash.cs b/Items/Accessories/StatisVoidSash.cs index 4b56534bd2..61a24863a2 100644 --- a/Items/Accessories/StatisVoidSash.cs +++ b/Items/Accessories/StatisVoidSash.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 3)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 3)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index 947b3f4ceb..e191f1cba1 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(9, 6)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(9, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/TheFirstShadowflame.cs b/Items/Accessories/TheFirstShadowflame.cs index 590df0cdb7..1715ac0e4a 100644 --- a/Items/Accessories/TheFirstShadowflame.cs +++ b/Items/Accessories/TheFirstShadowflame.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/TheTransformer.cs b/Items/Accessories/TheTransformer.cs index 8a11e230cd..cf26d29d44 100644 --- a/Items/Accessories/TheTransformer.cs +++ b/Items/Accessories/TheTransformer.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 16)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 16)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/UnstableGraniteCore.cs b/Items/Accessories/UnstableGraniteCore.cs index 29d2a8153b..448d9e0d04 100644 --- a/Items/Accessories/UnstableGraniteCore.cs +++ b/Items/Accessories/UnstableGraniteCore.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(7, 5)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(7, 5)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Accessories/WarbanneroftheSun.cs b/Items/Accessories/WarbanneroftheSun.cs index dec37c29ba..0b3a5a05cd 100644 --- a/Items/Accessories/WarbanneroftheSun.cs +++ b/Items/Accessories/WarbanneroftheSun.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 5)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 5)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/TreasureBags/AstrumDeusBag.cs b/Items/TreasureBags/AstrumDeusBag.cs index 667f6e64f9..9c88f5712e 100644 --- a/Items/TreasureBags/AstrumDeusBag.cs +++ b/Items/TreasureBags/AstrumDeusBag.cs @@ -72,7 +72,7 @@ namespace CalamityMod.Items.TreasureBags ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType() })); diff --git a/Items/Weapons/Magic/DarkSpark.cs b/Items/Weapons/Magic/DarkSpark.cs index ba600904a5..1c43fb6ff3 100644 --- a/Items/Weapons/Magic/DarkSpark.cs +++ b/Items/Weapons/Magic/DarkSpark.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Weapons/Melee/Devastation.cs b/Items/Weapons/Melee/Devastation.cs index bc46f0b8f6..f835a9b20a 100644 --- a/Items/Weapons/Melee/Devastation.cs +++ b/Items/Weapons/Melee/Devastation.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 11)); - ItemID.Sets.AnimatesAsSoul[Type] = true; + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 11)); + ItemID.Sets.AnimatesAsSoul[Type] = true; } public override void SetDefaults() diff --git a/Items/Weapons/Melee/Murasama.cs b/Items/Weapons/Melee/Murasama.cs index 311509c8ef..7a409e5a71 100644 --- a/Items/Weapons/Melee/Murasama.cs +++ b/Items/Weapons/Melee/Murasama.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 13)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 13)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Weapons/Ranged/GodsBellows.cs b/Items/Weapons/Ranged/DeadSunsWind.cs similarity index 93% rename from Items/Weapons/Ranged/GodsBellows.cs rename to Items/Weapons/Ranged/DeadSunsWind.cs index 97962bbb4c..b107626c62 100644 --- a/Items/Weapons/Ranged/GodsBellows.cs +++ b/Items/Weapons/Ranged/DeadSunsWind.cs @@ -7,8 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Ranged { - [LegacyName("TheEmpyrean")] - public class GodsBellows : ModItem, ILocalizedModType + [LegacyName("TheEmpyrean", "GodsBellows")] + public class DeadSunsWind : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() diff --git a/Items/Weapons/Ranged/GodsBellows.png b/Items/Weapons/Ranged/DeadSunsWind.png similarity index 100% rename from Items/Weapons/Ranged/GodsBellows.png rename to Items/Weapons/Ranged/DeadSunsWind.png diff --git a/Items/Weapons/Rogue/StormfrontRazor.cs b/Items/Weapons/Rogue/StormfrontRazor.cs index 714c247f00..ff1ef37f07 100644 --- a/Items/Weapons/Rogue/StormfrontRazor.cs +++ b/Items/Weapons/Rogue/StormfrontRazor.cs @@ -12,13 +12,12 @@ namespace CalamityMod.Items.Weapons.Rogue { public class StormfrontRazor : RogueWeapon { - public static readonly SoundStyle LightningStrikeSound = new("CalamityMod/Sounds/Custom/LightningStrike"); public const float LightningDamageFactor = 1.5f; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 4)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Weapons/Rogue/DeificThunderbolt.cs b/Items/Weapons/Rogue/TwistingThunder.cs similarity index 93% rename from Items/Weapons/Rogue/DeificThunderbolt.cs rename to Items/Weapons/Rogue/TwistingThunder.cs index c3e7ab7b58..662885493c 100644 --- a/Items/Weapons/Rogue/DeificThunderbolt.cs +++ b/Items/Weapons/Rogue/TwistingThunder.cs @@ -9,7 +9,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Rogue { - public class DeificThunderbolt : RogueWeapon + [LegacyName("DeificThunderbolt")] + public class TwistingThunder : RogueWeapon { public override void SetDefaults() { @@ -30,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.autoReuse = true; Item.shootSpeed = 13.69f; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); } // Terraria seems to really dislike high crit values in SetDefaults diff --git a/Items/Weapons/Rogue/DeificThunderbolt.png b/Items/Weapons/Rogue/TwistingThunder.png similarity index 100% rename from Items/Weapons/Rogue/DeificThunderbolt.png rename to Items/Weapons/Rogue/TwistingThunder.png diff --git a/Items/Weapons/Summon/Sirius.cs b/Items/Weapons/Summon/Sirius.cs index 0c2fe7d83c..8ce5f59d0f 100644 --- a/Items/Weapons/Summon/Sirius.cs +++ b/Items/Weapons/Summon/Sirius.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void AddRecipes() { CreateRecipe(). - AddIngredient(). + AddIngredient(). AddIngredient(5). AddIngredient(2). AddIngredient(12). diff --git a/Items/Weapons/Summon/GodspawnHelixStaff.cs b/Items/Weapons/Summon/StarspawnHelixStaff.cs similarity index 95% rename from Items/Weapons/Summon/GodspawnHelixStaff.cs rename to Items/Weapons/Summon/StarspawnHelixStaff.cs index b061a87027..fd98d1a8b1 100644 --- a/Items/Weapons/Summon/GodspawnHelixStaff.cs +++ b/Items/Weapons/Summon/StarspawnHelixStaff.cs @@ -7,7 +7,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Summon { - public class GodspawnHelixStaff : ModItem, ILocalizedModType + [LegacyName("GodspawnHelixStaff")] + public class StarspawnHelixStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetDefaults() diff --git a/Items/Weapons/Summon/GodspawnHelixStaff.png b/Items/Weapons/Summon/StarspawnHelixStaff.png similarity index 100% rename from Items/Weapons/Summon/GodspawnHelixStaff.png rename to Items/Weapons/Summon/StarspawnHelixStaff.png diff --git a/Items/Weapons/Summon/UniverseSplitter.cs b/Items/Weapons/Summon/UniverseSplitter.cs index c7d1ffdbc9..7fc0d92333 100644 --- a/Items/Weapons/Summon/UniverseSplitter.cs +++ b/Items/Weapons/Summon/UniverseSplitter.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon public const float ItemUseDustMaxRadius = 36f; public override void SetStaticDefaults() { - Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 14)); + Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 14)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Weapons/Summon/SunGodStaff.cs b/Items/Weapons/Summon/VengefulSunStaff.cs similarity index 95% rename from Items/Weapons/Summon/SunGodStaff.cs rename to Items/Weapons/Summon/VengefulSunStaff.cs index d6aa53d93f..f899f99f52 100644 --- a/Items/Weapons/Summon/SunGodStaff.cs +++ b/Items/Weapons/Summon/VengefulSunStaff.cs @@ -8,7 +8,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Summon { - public class SunGodStaff : ModItem, ILocalizedModType + [LegacyName("SunGodStaff")] + public class VengefulSunStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; public override void SetDefaults() diff --git a/Items/Weapons/Summon/SunGodStaff.png b/Items/Weapons/Summon/VengefulSunStaff.png similarity index 100% rename from Items/Weapons/Summon/SunGodStaff.png rename to Items/Weapons/Summon/VengefulSunStaff.png diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 2153fdf732..40d5116fb1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -240,25 +240,6 @@ AsgardsValor: { ''' } -Purity: { - DisplayName: Purity - Tooltip: - ''' - +100 max life - Grants +3 to +7 HP/s life regen based on missing health - Provides life regeneration equivalent to standing in Honey - Standing still grants extremely powerful regen - Grants 20 defense and continuous healing while afflicted with any debuff - The healing eventually slows down if debuffed for an extended period of time - Massively boosts natural life regen while afflicted with any debuff - Each debuff beyond the first grants 8 additional defense - Granted defense fades away slowly when not afflicted with any debuffs - Makes weak damage over time debuffs harmless and halves the duration of all but the strongest debuffs - You emit shining blue light if visibility is enabled - 'A once putrid crystal, now glimmering with immaculate purity' - ''' -} - BadgeofBravery: { DisplayName: Badge of Bravery Tooltip: @@ -359,20 +340,6 @@ Calamity: { ''' } -InfectedJewel: { - DisplayName: Infected Jewel - Tooltip: - ''' - +1 HP/s life regen - Grants 16 defense and +2 HP/s life regen while afflicted with any debuff - Massively boosts natural life regen while afflicted with any debuff - Granted defense fades away quickly when not afflicted with any debuffs - Each debuff beyond the first grants 5 additional defense - Makes the Astral Infection debuff harmless - 'A beautiful gemstone tarnished by spaceborne rot' - ''' -} - ChaosStone: { DisplayName: Chaos Stone Tooltip: @@ -497,7 +464,7 @@ DaawnlightSpiritOrigin: { ''' } -DarkGodsSheath: { +DarkMatterSheath: { DisplayName: Dark Matter Sheath Tooltip: ''' @@ -968,6 +935,20 @@ HowlsHeart: { ''' } +InfectedJewel: { + DisplayName: Infected Jewel + Tooltip: + ''' + +1 HP/s life regen + Grants 16 defense and +2 HP/s life regen while afflicted with any debuff + Massively boosts natural life regen while afflicted with any debuff + Granted defense fades away quickly when not afflicted with any debuffs + Each debuff beyond the first grants 5 additional defense + Makes the Astral Infection debuff harmless + 'A beautiful gemstone tarnished by spaceborne rot' + ''' +} + InkBomb: { DisplayName: Ink Bomb Tooltip: @@ -1318,6 +1299,25 @@ ProfanedSoulCrystal: { ''' } +Purity: { + DisplayName: Purity + Tooltip: + ''' + +100 max life + Grants +3 to +7 HP/s life regen based on missing health + Provides life regeneration equivalent to standing in Honey + Standing still grants extremely powerful regen + Grants 20 defense and continuous healing while afflicted with any debuff + The healing eventually slows down if debuffed for an extended period of time + Massively boosts natural life regen while afflicted with any debuff + Each debuff beyond the first grants 8 additional defense + Granted defense fades away slowly when not afflicted with any debuffs + Makes weak damage over time debuffs harmless and halves the duration of all but the strongest debuffs + You emit shining blue light if visibility is enabled + 'A once putrid crystal, now glimmering with immaculate purity' + ''' +} + QuiverofNihility: { DisplayName: Quiver of Nihility Tooltip: diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index b40cc452aa..733f68a8d2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -347,13 +347,9 @@ DarkechoGreatbow: { ''' } -DeepcoreGK2: { - DisplayName: Deepcore GK2 - Tooltip: - ''' - Bullets are twice as large and ignores 15 points of enemy defense - 'For rock and stone!' - ''' +DeadSunsWind: { + DisplayName: Dead Sun's Wind + Tooltip: 70% chance to save ammo } Deathwind: { @@ -365,6 +361,15 @@ Deathwind: { ''' } +DeepcoreGK2: { + DisplayName: Deepcore GK2 + Tooltip: + ''' + Bullets are twice as large and ignores 15 points of enemy defense + 'For rock and stone!' + ''' +} + Disseminator: { DisplayName: Disseminator Tooltip: @@ -518,11 +523,6 @@ Galeforce: { Tooltip: Fires a spread of low-damage feathers } -GodsBellows: { - DisplayName: Dead Sun's Wind - Tooltip: 70% chance to save ammo -} - GoldenEagle: { DisplayName: Golden Eagle Tooltip: Fires 5 bullets at once diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index b75593716d..d9cc30c5cb 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -282,17 +282,6 @@ DefectiveSphere: { ''' } -DeificThunderbolt: { - DisplayName: Twisting Thunder - Tooltip: - ''' - Fires a lightning bolt to electrocute enemies - The lightning bolt travels faster while it is raining - Summons lightning from the sky on impact - Stealth strikes summon more lightning and travel faster - ''' -} - DesecratedWater: { DisplayName: Desecrated Water Tooltip: @@ -1328,6 +1317,17 @@ Turbulance: { ''' } +TwistingThunder: { + DisplayName: Twisting Thunder + Tooltip: + ''' + Fires a lightning bolt to electrocute enemies + The lightning bolt travels faster while it is raining + Summons lightning from the sky on impact + Stealth strikes summon more lightning and travel faster + ''' +} + UrchinStinger: { DisplayName: Urchin Stinger Tooltip: Stealth strikes stick to enemies while releasing sulphuric bubbles diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index c41f64d8b5..8c0c31bd7f 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -402,11 +402,6 @@ GlacialEmbrace: { ''' } -GodspawnHelixStaff: { - DisplayName: Starspawn Helix Staff - Tooltip: Summons astral probes to protect you -} - GuidelightofOblivion: { DisplayName: Guidelight of Oblivion Tooltip: @@ -482,6 +477,21 @@ MidnightSunBeacon: { Tooltip: Summons a UFO to vaporize enemies } +MirrorofKalandra: { + DisplayName: Mirror of Kalandra + Tooltip: + ''' + Summons five ancient weapons to annihilate your enemies + There can only be one of each individual weapon + [c/BD7F59:Atziri's Disfavor brutally cleaves through enemies] + [c/E7A7FF:Starforge rips through foes and occasionally induces cosmic explosions] + [c/868B8F:Paradoxica teleports to enemies and blitzes through them at high speed] + [c/EBC3A5:Wind Ripper unleashes a single high-speed, powerful arrow at enemies] + [c/9B6856:Hope Shredder shoots arrows that split into three and pierce enemies twice] + 'Ultimate, Immeasurable, Indescribable' + ''' +} + OrthoceraShell: { DisplayName: Orthocera Shell Tooltip: Summons a flying orthocera sentry at the mouse position @@ -627,20 +637,21 @@ StaffoftheMechworm: { Tooltip: Summons an aerial mechworm to fight for you } +StarspawnHelixStaff: { + DisplayName: Starspawn Helix Staff + Tooltip: Summons astral probes to protect you +} + +StellarTorusStaff: { + DisplayName: Stellar Torus Staff + Tooltip: Summons a Torus Orbital that fries foes with a telescoping light beam +} + StormjawStaff: { DisplayName: Stormjaw Staff Tooltip: Summons a baby stormlion to fight for you } -SunGodStaff: { - DisplayName: Vengeful Sun Staff - Tooltip: - ''' - Summons a solar god spirit to protect you - There can only be one spirit at a time - ''' -} - SunSpiritStaff: { DisplayName: Sun Spirit Staff Tooltip: @@ -701,6 +712,15 @@ UniverseSplitter: { ''' } +VengefulSunStaff: { + DisplayName: Vengeful Sun Staff + Tooltip: + ''' + Summons a solar god spirit to protect you + There can only be one spirit at a time + ''' +} + Vigilance: { DisplayName: Vigilance Tooltip: Summons a soul seeker to fight for you @@ -774,24 +794,4 @@ YharonsKindleStaff: { Summons a fiery draconid to fight for you Requires 5 minion slots to use ''' -} - -MirrorofKalandra: { - DisplayName: Mirror of Kalandra - Tooltip: - ''' - Summons five ancient weapons to annihilate your enemies - There can only be one of each individual weapon - [c/BD7F59:Atziri's Disfavor brutally cleaves through enemies] - [c/E7A7FF:Starforge rips through foes and occasionally induces cosmic explosions] - [c/868B8F:Paradoxica teleports to enemies and blitzes through them at high speed] - [c/EBC3A5:Wind Ripper unleashes a single high-speed, powerful arrow at enemies] - [c/9B6856:Hope Shredder shoots arrows that split into three and pierce enemies twice] - 'Ultimate, Immeasurable, Indescribable' - ''' -} - -StellarTorusStaff: { - DisplayName: Stellar Torus Staff - Tooltip: Summons a Torus Orbital that fries foes with a telescoping light beam } \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson index bd1b0ec7a5..20323580c5 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson @@ -72,7 +72,7 @@ DeepSeaDumbbell3.DisplayName: Deep Sea Dumbbell DeepSeaDumbbellWeight.DisplayName: Deep Sea Dumbbell DeepWounderProjectile.DisplayName: Deep Wounder Projectile DeepWounderWater.DisplayName: Water Droplet -DeificThunderboltProj.DisplayName: Deific Thunderbolt +TwistingThunderProj.DisplayName: Deific Thunderbolt DesecratedBubble.DisplayName: Bubble DesecratedWaterProj.DisplayName: Desecrated Water DestructionBolt.DisplayName: Destruction Bolt diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index d366c6ca50..7c59316ed6 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -1020,7 +1020,7 @@ namespace CalamityMod RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); - RegisterSummon(ItemType(), BuffType(), ProjectileType()); + RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); @@ -1030,7 +1030,7 @@ namespace CalamityMod RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); - RegisterSummon(ItemType(), BuffType(), ProjectileType()); + RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index a14d6c8635..9dc5d655da 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -280,7 +280,7 @@ namespace CalamityMod.NPCs.AstrumDeus ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), }; normalOnly.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, weapons)); diff --git a/Projectiles/Rogue/DeificThunderboltProj.cs b/Projectiles/Rogue/TwistingThunderProj.cs similarity index 98% rename from Projectiles/Rogue/DeificThunderboltProj.cs rename to Projectiles/Rogue/TwistingThunderProj.cs index 827e1af053..a91ab52364 100644 --- a/Projectiles/Rogue/DeificThunderboltProj.cs +++ b/Projectiles/Rogue/TwistingThunderProj.cs @@ -7,7 +7,7 @@ using CalamityMod.Sounds; namespace CalamityMod.Projectiles.Rogue { - public class DeificThunderboltProj : ModProjectile, ILocalizedModType + public class TwistingThunderProj : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Rogue"; private bool playedSound = false; diff --git a/Projectiles/Rogue/DeificThunderboltProj.png b/Projectiles/Rogue/TwistingThunderProj.png similarity index 100% rename from Projectiles/Rogue/DeificThunderboltProj.png rename to Projectiles/Rogue/TwistingThunderProj.png From 839ba6f5556d4d29882a2ad4ce28fbaf05365480 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 2 Sep 2023 02:42:55 +0700 Subject: [PATCH 176/258] unused bees go to die --- CalPlayer/CalamityPlayer.cs | 2 -- CalPlayer/CalamityPlayerHitHurt.cs | 12 ------------ CalamityLists.cs | 31 ------------------------------ 3 files changed, 45 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 99a0003650..2d85c046e3 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -497,7 +497,6 @@ namespace CalamityMod.CalPlayer public bool tracersElysian = false; public bool tracersSeraph = false; public bool frostFlare = false; - public bool beeResist = false; public bool uberBees = false; public bool evolution = false; public int evolutionLifeRegenCounter = 0; @@ -1589,7 +1588,6 @@ namespace CalamityMod.CalPlayer aBrain = false; amalgam = false; frostFlare = false; - beeResist = false; uberBees = false; evolution = false; nanotech = false; diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 3fc7d17598..eb5f1e6247 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -764,12 +764,6 @@ namespace CalamityMod.CalPlayer npc.Calamity().relicOfResilienceWeakness = 0; } - if (beeResist) - { - if (CalamityLists.beeEnemyList.Contains(npc.type)) - contactDamageReduction += 0.25; - } - if (eskimoSet) { if (npc.coldDamage) @@ -1027,12 +1021,6 @@ namespace CalamityMod.CalPlayer projectileDamageReduction += 0.5; } - if (beeResist) - { - if (CalamityLists.beeProjectileList.Contains(proj.type)) - projectileDamageReduction += 0.25; - } - if (trinketOfChiBuff) projectileDamageReduction += 0.1; diff --git a/CalamityLists.cs b/CalamityLists.cs index f9d71c9bb7..59e09a204e 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -83,8 +83,6 @@ namespace CalamityMod public static List dungeonEnemyBuffList; public static List dungeonProjectileBuffList; public static List bossHPScaleList; - public static List beeEnemyList; - public static List beeProjectileList; public static List friendlyBeeList; public static List hardModeNerfList; public static List debuffList; @@ -1051,33 +1049,6 @@ namespace CalamityMod NPCID.MoonLordHand }; - beeEnemyList = new List() - { - NPCID.GiantMossHornet, - NPCID.BigMossHornet, - NPCID.LittleMossHornet, - NPCID.TinyMossHornet, - NPCID.MossHornet, - NPCID.VortexHornetQueen, - NPCID.VortexHornet, - NPCID.Bee, - NPCID.BeeSmall, - NPCID.QueenBee, - NPCType(), - NPCType(), - NPCType(), - NPCType() - }; - - beeProjectileList = new List() - { - ProjectileID.Stinger, - ProjectileID.HornetStinger, - ProjectileType(), - ProjectileType(), - ProjectileType() - }; - friendlyBeeList = new List() { ProjectileID.GiantBee, @@ -2744,9 +2715,7 @@ namespace CalamityMod dungeonEnemyBuffList = null; dungeonProjectileBuffList = null; bossHPScaleList = null; - beeEnemyList = null; friendlyBeeList = null; - beeProjectileList = null; hardModeNerfList = null; debuffList = null; fireDebuffList = null; From 1bfa7c4e9677a7289ed01c167f76896fea858226 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 2 Sep 2023 03:06:05 +0700 Subject: [PATCH 177/258] none of these do anything anymore (nor that it needed it) --- Balancing/BalancingChangesManager.cs | 12 ------------ CalPlayer/CalamityPlayerOnHit.cs | 14 -------------- Items/CalamityGlobalItemTooltip.cs | 3 --- 3 files changed, 29 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 4ba927c1db..e5065799cd 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -48,12 +48,6 @@ namespace CalamityMod.Balancing bool MushroomSpearFilter(Projectile p) => p.type == ProjectileID.Mushroom && Main.player[p.owner].ActiveItem().type == ItemID.MushroomSpear; - bool TrueNightsEdgeFilter(Projectile p) => - p.type == ProjectileID.NightBeam && Main.player[p.owner].ActiveItem().type == ItemID.TrueNightsEdge; - - bool TerraBladeFilter(Projectile p) => - p.type == ProjectileID.TerraBeam && Main.player[p.owner].ActiveItem().type == ItemID.TerraBlade; - bool SpectreMaskSetBonusFilter(Projectile p) => p.type == ProjectileID.SpectreWrath && Main.player[p.owner].ghostHurt; @@ -71,12 +65,6 @@ namespace CalamityMod.Balancing // Nerf Cursed Dart flames by 50%. Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CursedDartFlame)), - // Nerf True Night's Edge projectiles by 33% to cancel out the 1.5x multiplier it gets. - Do(new ProjectileSpecificRequirementBalancingRule(1f / 3f * 2f, TrueNightsEdgeFilter)), - - // Nerf Terra Blade projectiles by 33% to cancel out the 1.5x multiplier it gets. - Do(new ProjectileSpecificRequirementBalancingRule(1f / 3f * 2f, TerraBladeFilter)), - // Nerf Mushroom Spear projectiles by 50%. Do(new ProjectileSpecificRequirementBalancingRule(0.5f, MushroomSpearFilter)), diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 6a85e5abc7..624ff26ecb 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -143,15 +143,6 @@ namespace CalamityMod.CalPlayer target.AddBuff(BuffID.Poisoned, 240); break; - case ItemID.NightsEdge: - target.AddBuff(BuffID.ShadowFlame, 120); - break; - - case ItemID.TrueNightsEdge: - target.AddBuff(BuffID.CursedInferno, 60); - target.AddBuff(BuffID.ShadowFlame, 120); - break; - case ItemID.IceSickle: case ItemID.Frostbrand: target.AddBuff(BuffID.Frostburn, 300); @@ -338,11 +329,6 @@ namespace CalamityMod.CalPlayer if (Main.rand.NextBool()) target.AddBuff(BuffID.Frostburn, 60); break; - - case ProjectileID.NightBeam: - target.AddBuff(BuffID.CursedInferno, 60); - target.AddBuff(BuffID.ShadowFlame, 120); - break; } if ((proj.arrow && Player.hasMoltenQuiver) || hellfireTreads) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 814d5c1ed6..9c8e4b6600 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -478,9 +478,6 @@ namespace CalamityMod.Items if (item.type == ItemID.AntlionClaw || item.type == ItemID.BoneSword || item.type == ItemID.BreakerBlade) EditTooltipByName("Knockback", (line) => line.Text += "\nIgnores 50% of enemy defense"); - if (item.type == ItemID.NightsEdge || item.type == ItemID.TrueNightsEdge) - EditTooltipByName("Knockback", (line) => line.Text += "\nInflicts Shadowflame on hit"); - if (item.type == ItemID.DeathSickle) EditTooltipByNum(0, (line) => line.Text += "\nInflicts Whispering Death on hit"); #endregion From dbc4065546f95f1d63361cd975af15e6cc475e14 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 1 Sep 2023 16:08:13 -0400 Subject: [PATCH 178/258] fix copy pasted rover drive comment for PSA shield --- CalPlayer/CalamityPlayerHitHurt.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index aeb2f85a69..23d4c34fbc 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1744,7 +1744,7 @@ namespace CalamityMod.CalPlayer pSoulShieldDurability -= info.Damage; shieldsTookHit = true; - // Hits which break the Rover Drive shield cause a sound and slight screen shake. + // Hits which break the PSA shield cause a sound and slight screen shake. // Multiple shields breaking simultaneously has slightly stronger screen shake. if (pSoulShieldDurability <= 0) { From 5db84a14aaa8e2a080752efa77e48a70c28c7ebb Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 21:48:40 +0100 Subject: [PATCH 179/258] added light on-hit dust --- CalPlayer/CalamityPlayerHitHurt.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 23d4c34fbc..0af3da7a23 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1809,9 +1809,15 @@ namespace CalamityMod.CalPlayer // Spawn particles when hit with the shields up, regardless of whether or not the shields broke. // More particles spawn if a shield broke. - if (pSoulArtifact && !sponge) + if (pSoulArtifact) { - //TODO + for (int i = 0; i < Main.rand.Next(4, 8); i++) //very light dust + { + Dust dust = Dust.NewDustDirect(Player.position, Player.width, Player.height, (int)CalamityDusts.ProfanedFire); + dust.velocity = Main.rand.NextVector2Circular(3.5f, 3.5f); + dust.velocity.Y -= Main.rand.NextFloat(1f, 3f); + dust.scale = Main.rand.NextFloat(1.15f, 1.45f); + } } else { From c2467355992006a1ed5df45a819c7cb281933f22 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 1 Sep 2023 21:50:06 +0100 Subject: [PATCH 180/258] fixed screenshake being set twice for shield breaking --- Projectiles/Summon/MiniGuardianDefense.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Projectiles/Summon/MiniGuardianDefense.cs b/Projectiles/Summon/MiniGuardianDefense.cs index edba52e83e..ca8c3e78d6 100644 --- a/Projectiles/Summon/MiniGuardianDefense.cs +++ b/Projectiles/Summon/MiniGuardianDefense.cs @@ -79,8 +79,6 @@ namespace CalamityMod.Projectiles.Summon proj.ai[0] = 1f; } } - - Owner.Calamity().GeneralScreenShakePower = 2.5f; //minor screenshake to sell the barrier implosion thing (maybe improve visual of it) } } From 06056e8851f403a44b222bca6ad8e51f55a26d47 Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Fri, 1 Sep 2023 23:38:09 +0200 Subject: [PATCH 181/258] Black Hawk and Amidias' Blessing Buff resprites. --- Buffs/StatBuffs/AmidiasBlessing.png | Bin 752 -> 691 bytes Buffs/Summon/BlackHawkBuff.png | Bin 561 -> 704 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Buffs/StatBuffs/AmidiasBlessing.png b/Buffs/StatBuffs/AmidiasBlessing.png index 135deaa5fb4ced9b04471e419878d3da199efcb5..eaf49a5c4616660e15b0e5a22f77d74d4845685a 100644 GIT binary patch delta 668 zcmV;N0%QH~1+xW^BYyw^b5ch_0Itp)=>Px%Q%OWYR9J=OmrY1iQ5462Bf-=t*unw2Y`0EdpIiuA-12L}(#xiZ&4heIR{MLSIB}#K48-Vipq& zf)FJoO4Ms{=FIh8=EESI3;j3m-E;0e@BRPxoO9m`VGyvs2!8?8tn)*QzC{3#8X71& z@%!b+0Mxc$1YqptwB+KZ3e?o^1>kDN<keUSZX5TLZu%AxA zD53CQfl&IR+)O(55_|2U^~VVSf<)fnn*wX@gfo#H03>eC1F-4j1prpM#sO&DHyezR2YZ5qn7_m_pDrTF0000l1@HxsBYy(7NklnJ!VIH;3CQ4|q>7AXo+7jY0eq)>1W5lJ8}R!OSXq97#31f(WuO~rHH`P%nv zbu!=Aq37NE?)y3SJMX=lkeI)=ruZ`3^}t*;8~VLYLp>Jz+kYA%G9NrYfVjC2Ux4q@ zudQ+6;!fBnQ%5a-VzB^wwl4uJMLt^nGZv&ATuFx^=tIXe|H_x@GC;jWKJhv04`P#lt^=qo2=O{eR3rb!pb}_l)Q~?)gtnJV%`G z8Spf~J6c5Ff@p^lS-7vvuiV~jF&m${44auCb27GqR~cL(RVjB!B=hKgmCev(7rHVd-+(7J?9fnCFWl;R2;0qs zyN>S}@PF@U|VBj)==W``F+Rt z%WP8imDlC-{eD01_viC@KR^H8-;8hi;_oU0Q~q+NKOMyvIDh^4*8qwhbc4Y)b7S92 zd*k(=>*MufX?tx3DIhR)JcDH9&7UsB4a!1srhaqGexfAOLtrQu%4klPoIecOoA%?o z$g^v}#a(N`hLcypHlaQuk@QdY6Dd6elA2xp9@LfnJo4enhS+jik$5eQ{U0_jO7FuDf%UJr$b)!_sy?Rf>d*MByG#f3;~7S@7Xt^z!0zZYw; zySgg)M<2?AU0>TnaOOoeW}hAcCt7>Ju^lTxe@`D+wz@Iq5JjF;v?g+eh+A&l#J4pP zwV%|a6BsuiIIwO3$S(}Lq_-!m^57U9T5?T&V`BkCzT!o6V;ZpVXjZE4|m4i z>kt2E0FzE2^WF3R`FH#ksYbV4+h%+n0000EWg%EeW=%~1DgXcg2mk;800000(o>TF O0000B!32COGiWi{{a60|De66lK=n#$Vo&&R9M61m(MFiQ545NPs&P@ zpApk6NNgk$yOB^=|~B|dTDDUx=t0mvCve2{iTq@oeS5u!|~1@#hzc91mNxd#y8#`1x$>m zXT}s;nCMIeU4yLvgj;Ks_+;`3faPXypoK?E6e#Y5jSbzt3mOfs1&XU+^D?J6^qd7%#X9q#_Ol(f-3#=b zOZ6&9yK2Lq-i+cA^=2d}y8_O?za4)7=MbB=Kgn&D0000IbVXQnMOaBjI!|(GWo~p~ abZKvH01+{SSnTfr0000 Date: Fri, 1 Sep 2023 21:11:39 -0400 Subject: [PATCH 182/258] Fixed Platinum armor giving 10% damage for every 1 defense --- Items/VanillaArmorChanges/PlatinumArmorSetChange.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs b/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs index 9f7cd286e1..bdfc2e50d1 100644 --- a/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs +++ b/Items/VanillaArmorChanges/PlatinumArmorSetChange.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public const float ChestCrit = 5f; public const float LegsMoveSpeed = 0.1f; public const float SetBonusLifeRegenPerDefense = 0.1f; // 10 defense = +1 life regen - public const float SetBonusDamagePerDefense = 0.1f; // 10 defense = +1% damage + public const float SetBonusDamagePerDefense = 0.001f; // 10 defense = +1% damage public const float SetBonusCritPerDefense = 0.1f; // 10 defense = +1% crit chance public const int SetBonusDefenseCap = 40; From 42d53e62c74fadf6849c9f652e289f4721cb22b1 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 2 Sep 2023 16:07:53 +0700 Subject: [PATCH 183/258] Astral Teleport/Purity UI remnants --- CalPlayer/CalamityPlayer.cs | 29 +-- .../en-US/Mods.CalamityMod.Keybinds.hjson | 2 - Systems/UIManagementSystem.cs | 7 - UI/MiscTextures/SpecialTeleportCircles.png | Bin 3576 -> 0 bytes UI/PurityUI.cs | 215 ------------------ 5 files changed, 1 insertion(+), 252 deletions(-) delete mode 100644 UI/MiscTextures/SpecialTeleportCircles.png delete mode 100644 UI/PurityUI.cs diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 808303b4b1..98011afb25 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3142,34 +3142,7 @@ namespace CalamityMod.CalPlayer #endregion #region TeleportMethods - public static Vector2? GetJunglePosition(Player player) - { - bool canSpawn = false; - int teleportStartX = Abyss.AtLeftSideOfWorld ? (int)(Main.maxTilesX * 0.65) : (int)(Main.maxTilesX * 0.2); - int teleportRangeX = (int)(Main.maxTilesX * 0.15); - int teleportStartY = (int)Main.worldSurface - 75; - int teleportRangeY = 50; - - Player.RandomTeleportationAttemptSettings settings = new Player.RandomTeleportationAttemptSettings - { - mostlySolidFloor = true, - avoidAnyLiquid = true, - avoidLava = true, - avoidHurtTiles = true, - avoidWalls = true, - attemptsBeforeGivingUp = 1000, - maximumFallDistanceFromOrignalPoint = 30 - }; - - Vector2 vector = player.CheckForGoodTeleportationSpot(ref canSpawn, teleportStartX, teleportRangeX, teleportStartY, teleportRangeY, settings); - - if (canSpawn) - { - return (Vector2?)vector; - } - return null; - } - + // Used for Boss Rush WoF public static Vector2? GetUnderworldPosition(Player player) { bool canSpawn = false; diff --git a/Localization/en-US/Mods.CalamityMod.Keybinds.hjson b/Localization/en-US/Mods.CalamityMod.Keybinds.hjson index 2800de597f..ceef827c39 100644 --- a/Localization/en-US/Mods.CalamityMod.Keybinds.hjson +++ b/Localization/en-US/Mods.CalamityMod.Keybinds.hjson @@ -5,8 +5,6 @@ AngelicAllianceBlessing.DisplayName: Angelic Alliance Blessing BoosterDash.DisplayName: Booster Dash SpectralVeilTeleport.DisplayName: Spectral Veil Teleport SandCloakEffect.DisplayName: Sand Cloak Effect -PurityUIToggle.DisplayName: Special Teleport UI Toggle -AstralTeleport.DisplayName: Astral Teleport ArmorSetBonus.DisplayName: Armor Set Bonus AdrenalineMode.DisplayName: Adrenaline Mode RageMode.DisplayName: Rage Mode diff --git a/Systems/UIManagementSystem.cs b/Systems/UIManagementSystem.cs index 9da8ba9fc7..e467e32e43 100644 --- a/Systems/UIManagementSystem.cs +++ b/Systems/UIManagementSystem.cs @@ -62,13 +62,6 @@ namespace CalamityMod.Systems return true; }, InterfaceScaleType.UI)); - // Special Teleport overlay (if open) - layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Special Teleport UI", delegate () - { - SpecialTeleportUI.UpdateAndDraw(Main.spriteBatch); - return true; - }, InterfaceScaleType.None)); - // Speedrun Timer layers.Insert(mouseIndex, new LegacyGameInterfaceLayer("Speedrun Timer", delegate () { diff --git a/UI/MiscTextures/SpecialTeleportCircles.png b/UI/MiscTextures/SpecialTeleportCircles.png deleted file mode 100644 index 2368842261a43427f2cc7da1f1ef83ed9eda63ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3576 zcmV4eJ<@VI9hsFw!BImeTT}WkoIWQM&ZJzlU(%-t#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ode.ImmediateLoad).Value; - } - - public static void Unload() - { - CircleTextures = null; - } - - public static void Toggle() - { - Open = !Open; - - if (Open) - { - CenterPoint = new Vector2(Main.mouseX, Main.mouseY); - //Clamp center so UI doesn't go off screen - CenterPoint.X = MathHelper.Clamp(CenterPoint.X, WindowBorder, Main.screenWidth - WindowBorder); - CenterPoint.Y = MathHelper.Clamp(CenterPoint.Y, WindowBorder, Main.screenHeight - WindowBorder); - } - else - { - // Closed, do stuff in here if need be. - } - } - - public static void UpdateAndDraw(SpriteBatch sb) - { - // Don't do anything if not open. - if (!Open) - return; - - // Draw center circle - DrawCircle(sb, CenterPoint, 0, CircleStyle.Normal); - - Vector2 centerToMouse = Main.MouseScreen - CenterPoint; - float rotation = centerToMouse.ToRotation(); - - // Draw the arrow that points towards the mouse. - sb.Draw(CircleTextures, CenterPoint, new Rectangle(0, CircleTextureSize, 24, 10), Color.White, rotation, new Vector2(12, 5f), 1f, SpriteEffects.None, 0f); - - int current = 0; - int selectedCircle = -1; - int offset = CircleOffset * 2; - int radius = CircleTextureSize / 2; - - for (int x = 0; x < 2; x++) - { - for (int y = 0; y < 2; y++) - { - Vector2 center = new Vector2( - CenterPoint.X - CircleOffset + x * offset, - CenterPoint.Y - CircleOffset + y * offset); - - Circle c = new Circle(center, radius); - - CircleStyle style = CircleStyle.Normal; - - // If the mouse is in the circle. - if (c.Contains(Main.MouseScreen)) - { - style = CircleStyle.Selected; - - Main.LocalPlayer.mouseInterface = true; - - selectedCircle = current; - - // If left clicked. - if ((Main.mouseLeft && Main.mouseLeftRelease)) - { - Main.mouseLeftRelease = false; - Main.mouseLeft = false; - - DoTeleportation(current); - } - } - - DrawCircle(sb, center, 1 + current, style); - - current++; - } - } - - // Literally so the sound plays. - if (LastHovered != selectedCircle) - { - LastHovered = selectedCircle; - if (LastHovered != -1) - SoundEngine.PlaySound(SoundID.MenuTick); - } - - // Default to "Select" - string text = Language.GetTextValue("LegacyMisc.53"); - - switch (selectedCircle) - { - case 0: - text = Language.GetTextValue("Bestiary_Biomes.TheUnderworld"); - break; - case 1: - text = Language.GetTextValue("Bestiary_Biomes.TheDungeon"); - break; - case 2: - text = Language.GetTextValue("Bestiary_Biomes.Jungle"); - break; - case 3: // Random - text = Language.GetTextValue("LegacyMenu.27"); - break; - default: - break; - } - - Vector2 size = FontAssets.MouseText.Value.MeasureString(text); - Utils.DrawBorderStringFourWay(sb, FontAssets.MouseText.Value, text, CenterPoint.X - size.X / 2f, CenterPoint.Y + CircleOffset + CircleTextureSize / 2 + 4, Color.White, Color.Black, default); - } - - public static void DoTeleportation(int circle) - { - Open = false; - - Player p = Main.LocalPlayer; - - switch (circle) - { - case 0: - Vector2? underworld = CalamityPlayer.GetUnderworldPosition(p); - if (!underworld.HasValue) - return; - CalamityPlayer.ModTeleport(p, underworld.Value, true, TeleportationStyleID.DemonConch); - break; - case 1: - CalamityPlayer.ModTeleport(p, new Vector2(Main.dungeonX * 16, Main.dungeonY * 16 - 8)); - break; - case 2: - Vector2? jungle = CalamityPlayer.GetJunglePosition(p); - if (!jungle.HasValue) - return; - CalamityPlayer.ModTeleport(p, jungle.Value); - break; - case 3: - if (Main.netMode == NetmodeID.SinglePlayer) - { - p.TeleportationPotion(); - SoundEngine.PlaySound(SoundID.Item6, p.position); - } - else if (Main.netMode == NetmodeID.MultiplayerClient) - { - NetMessage.SendData(MessageID.RequestTeleportationByServer, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); - } - break; - default: - break; - } - } - - private static void DrawCircle(SpriteBatch sb, Vector2 center, int circle, CircleStyle style) - { - sb.Draw(CircleTextures, center, new Rectangle(circle * CircleTextureSize, (int)style * CircleTextureSize, CircleTextureSize, CircleTextureSize), Color.White, 0f, new Vector2(CircleTextureSize / 2), 1f, SpriteEffects.None, 0f); - } - - private class Circle - { - public Vector2 Center; - public float Radius; - public Circle(Vector2 C, float R) - { - this.Center = C; - this.Radius = R; - } - public bool Contains(Vector2 point) - { - return Vector2.Distance(Center, point) < Radius; - } - public bool Contains(Point point) - { - return Contains(point.ToVector2()); - } - } - } -} From 367965ec184f3cae2124132ae173fe1b8b10e2ba Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Sat, 2 Sep 2023 11:32:31 +0200 Subject: [PATCH 184/258] Fixed Snake Eyes' Projectile bug. 1. Fixed a Snake Eyes' Projectile incapacity to detect that the shot enemy was not active. --- Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs b/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs index 2675611ef2..ebc322e266 100644 --- a/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs +++ b/Projectiles/DraedonsArsenal/SnakeEyesProjectile.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal Projectile.DamageType = DamageClass.Summon; Projectile.localNPCHitCooldown = 10; Projectile.width = Projectile.height = 16; - Projectile.timeLeft = 120; + Projectile.timeLeft = 300; Projectile.penetrate = -1; Projectile.friendly = true; @@ -75,7 +75,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal if (TimerToRedirect >= SnakeEyes.TimeToRedirect && !HasRedirected) { - if (TargetShot is not null) + if (TargetShot is not null && TargetShot.active) TargetEnemy(TargetShot); else if (Target is not null) TargetEnemy(Target); @@ -83,14 +83,10 @@ namespace CalamityMod.Projectiles.DraedonsArsenal if (HasRedirected) { - if (TargetShot is not null) + if (TargetShot is not null && TargetShot.active) FollowEnemy(TargetShot); else if (Target is not null) FollowEnemy(Target); - else - Projectile.Kill(); - - Projectile.timeLeft = 2; } for (int i = 0; i < 2; i++) From 2dbb2007347bc33500585154f574f3800b436831 Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Sat, 2 Sep 2023 11:55:30 +0200 Subject: [PATCH 185/258] Resprited Deathstare Rod buff icon. --- Buffs/Summon/MiniatureEyeofCthulhu.png | Bin 404 -> 662 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Buffs/Summon/MiniatureEyeofCthulhu.png b/Buffs/Summon/MiniatureEyeofCthulhu.png index eaf73dcf4e35e89fe6da3bbd14ab850e372ab4a0..8085911d76ec42d46acb9d00f771ca3d2533066f 100644 GIT binary patch delta 649 zcmV;40(SkB1C|Al8Gi-<0047(dh`GQ00DDSM?wIu&K&6g00K5iL_t(oh2_`JOBGQZ z1@OLZHhRZOLASoZU4%!55`U4VaQ?wESL0p8U1c6B9D$%Sq zK_Nm5r9}vl75RhowU~E%&GV_R7CO*b&D=S6=AQFCbLTrLd4FVWFH*2;n;%+q6@2u;{X2L(bbkzaC(`M3j9>VimrZcVa6f$ARo>@eFK)Q2SDG z<=Z^CwYo1ho*V~C#lyiDpz&mUkDr*D%N<1u%jVvKgCis0Xhj9Moc#=Xa_k*<;CDYz zvG*|O-18HRS04bc2k(Q`+T*c_!HIyrzDW6#yQ^UN`F|wnxqSy@nwvrI*ciBx%g~NH zur332sT8=m@Ckf)@CY2a8eI=gTsVI^Ht*u8sOE*r+t$`LT|n|22&idk0So>8;Mvd+ zIMvhy${S9^_&+A!AYbD`eDAme`L4J!`c7x|M_;j!h4B8?Eyj1s>8dL5 zet9`IUVq3Byy2xK&^sS>UMovqkpKtQWgx6DI3Xy^DGAC#7UXIh#)k{|T{AOaqB5a9 z;kpbIqA^#iy4q;(57{V8c~=;(tc=dLP@b3!r2aVmKmU$@0pgpk`TN?GY5)KL4rN$L jW=%~1DgXcg2mk;800000(o>TF00009zqF~+oR4j(fWX7!vv+D3JhQaS z Date: Sat, 2 Sep 2023 09:42:28 -0300 Subject: [PATCH 186/258] Renamed Sun God Staff buff to match the new name of the item --- Localization/en-US/Mods.CalamityMod.Buffs.hjson | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 48aca9fda5..8358012384 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1403,8 +1403,8 @@ SnakeEyesBuff: { } SolarGodSpiritBuff: { - DisplayName: Solar God Spirit - Description: The solar god spirit will protect you + DisplayName: Vengeful Solar Spirit + Description: A furious Sun spirit is ready to protect you } SolarSpirit: { @@ -1499,4 +1499,4 @@ AbsorberRegen: { AbsorberAffliction: { DisplayName: Absorber Affliction Description: Damn nature, you scary! -} \ No newline at end of file +} From a785f863a5aee0ce90be4ae4f3cb114453fe8c82 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 2 Sep 2023 09:16:59 -0400 Subject: [PATCH 187/258] Fixed Bloodflare melee helmet not stating its crit chance in its tooltip --- .../en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 1ef58d16aa..6bcd067703 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -105,7 +105,7 @@ BloodflareHeadMagic: { BloodflareHeadMelee: { DisplayName: Bloodflare Ram Mask - Tooltip: 10% increased melee damage + Tooltip: 10% increased melee damage and 5% increased melee critical strike chance SetBonus: ''' 18% increased melee speed @@ -577,4 +577,4 @@ TarragonLeggings: { 10% increased movement speed 8% increased damage and critical strike chance ''' -} \ No newline at end of file +} From a00c150798fed38cd2157636f0ef90d5ace2ef98 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 2 Sep 2023 08:18:42 -0500 Subject: [PATCH 188/258] Rev+ Queen Bee dash sound fix. --- NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs b/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs index ffdadfcb36..2f17fbc3cc 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs @@ -208,8 +208,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; npc.direction = playerLocation < 0 ? 1 : -1; npc.spriteDirection = npc.direction; - - SoundEngine.PlaySound(SoundID.Roar, npc.position); + + SoundEngine.PlaySound(SoundID.Zombie125, npc.Center); return false; } From a1ed670daa77c3da177ccd12d32d43258f30787b Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 2 Sep 2023 08:24:40 -0500 Subject: [PATCH 189/258] Version bump. --- build.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.txt b/build.txt index 5644d2fcc9..bf8ef633b6 100644 --- a/build.txt +++ b/build.txt @@ -1,5 +1,5 @@ author = Fabsol and the Dev Team -version = 2.0.3.003 +version = 2.0.3.004 displayName = Calamity Mod homepage = https://discord.gg/calamity buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, .github\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes, Effects\Compiler\* From a53b62489f6096fbb17b638f43feeda3fa4bcf98 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Sat, 2 Sep 2023 16:25:23 +0300 Subject: [PATCH 190/258] burning sky buff --- Items/Weapons/Melee/TheBurningSky.cs | 6 +++--- Localization/en-US/Mods.CalamityMod.Buffs.hjson | 2 +- .../en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Melee/TheBurningSky.cs b/Items/Weapons/Melee/TheBurningSky.cs index 905f0037e4..8f059f59a4 100644 --- a/Items/Weapons/Melee/TheBurningSky.cs +++ b/Items/Weapons/Melee/TheBurningSky.cs @@ -26,14 +26,14 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 102; Item.height = 146; - Item.damage = 134; + Item.damage = 147; Item.knockBack = 2.5f; Item.DamageType = DamageClass.Melee; Item.noMelee = true; - Item.useTime = 9; - Item.useAnimation = 9; + Item.useTime = 8; + Item.useAnimation = 8; Item.useStyle = ItemUseStyleID.Shoot; Item.autoReuse = true; Item.UseSound = SoundID.Item105; diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 8358012384..8555661a84 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1499,4 +1499,4 @@ AbsorberRegen: { AbsorberAffliction: { DisplayName: Absorber Affliction Description: Damn nature, you scary! -} +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 6bcd067703..bbf839d654 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -577,4 +577,4 @@ TarragonLeggings: { 10% increased movement speed 8% increased damage and critical strike chance ''' -} +} \ No newline at end of file From 1571f24a52e41e371010fac58958d24e5aa244f0 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 2 Sep 2023 09:31:35 -0400 Subject: [PATCH 191/258] Flare bats take slightly less time to home and home in from a larger range --- Projectiles/Ranged/FlareBat.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Ranged/FlareBat.cs b/Projectiles/Ranged/FlareBat.cs index 85ca86d3fa..1b2cf87985 100644 --- a/Projectiles/Ranged/FlareBat.cs +++ b/Projectiles/Ranged/FlareBat.cs @@ -70,13 +70,13 @@ namespace CalamityMod.Projectiles.Ranged // Makes the bat home onto enemies after piercing once if (Projectile.penetrate == 1 && Projectile.localAI[0] <= 0f) - CalamityUtils.HomeInOnNPC(Projectile, false, 500f, 12f, 20f); + CalamityUtils.HomeInOnNPC(Projectile, false, 550f, 12f, 20f); } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(BuffID.OnFire3, 480); - Projectile.localAI[0] = 10f; + Projectile.localAI[0] = 8f; Projectile.damage /= 2; } From d45066c257d48a76bfdfa3c4b9bf8821607d9c40 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 2 Sep 2023 10:06:46 -0400 Subject: [PATCH 192/258] Sea's Searing balance --- Items/Weapons/Ranged/SeasSearing.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Ranged/SeasSearing.cs b/Items/Weapons/Ranged/SeasSearing.cs index e78e08752e..79cc9ba272 100644 --- a/Items/Weapons/Ranged/SeasSearing.cs +++ b/Items/Weapons/Ranged/SeasSearing.cs @@ -24,8 +24,8 @@ namespace CalamityMod.Items.Weapons.Ranged Item.width = 88; Item.height = 44; Item.useTime = 5; - Item.useAnimation = 15; - Item.reuseDelay = 20; + Item.useAnimation = 10; + Item.reuseDelay = 16; Item.useLimitPerAnimation = 3; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.UseSound = SoundID.Item11; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 11f; + Item.shootSpeed = 13f; Item.value = CalamityGlobalItem.Rarity5BuyPrice; Item.rare = ItemRarityID.Pink; @@ -60,8 +60,8 @@ namespace CalamityMod.Items.Weapons.Ranged else { Item.useTime = 5; - Item.useAnimation = 15; - Item.reuseDelay = 20; + Item.useAnimation = 10; + Item.reuseDelay = 16; } return base.CanUseItem(player); } From dcafad0dfca7b0e6533306c1c93616619558aa3d Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 2 Sep 2023 10:21:54 -0400 Subject: [PATCH 193/258] Made Lumenous Amulet also grant immunity to Riptide (felt like a weird inconsistency) --- Items/Accessories/LumenousAmulet.cs | 1 + Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Items/Accessories/LumenousAmulet.cs b/Items/Accessories/LumenousAmulet.cs index 7502b1f6ff..4d9b3acba9 100644 --- a/Items/Accessories/LumenousAmulet.cs +++ b/Items/Accessories/LumenousAmulet.cs @@ -26,6 +26,7 @@ namespace CalamityMod.Items.Accessories CalamityPlayer modPlayer = player.Calamity(); modPlayer.abyssalAmulet = true; modPlayer.lumenousAmulet = true; + player.buffImmune[ModContent.BuffType()] = true; player.buffImmune[ModContent.BuffType()] = true; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 18d618f988..6e7d3bf231 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1020,7 +1020,7 @@ LumenousAmulet: { Tooltip: ''' Attacks inflict the Crush Depth debuff - Grants immunity to the Crush Depth debuff + Grants immunity to the Riptide and Crush Depth debuffs While in the abyss you gain 25% increased max life Provides a moderate amount of light in the abyss ''' From 73a74b162688770320b665e1e2bea80c8d45ba03 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 2 Sep 2023 10:47:07 -0400 Subject: [PATCH 194/258] Fixed Vengeful Sun Spirit's tooltip being outdated --- .../en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 8c0c31bd7f..5516600bdc 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -716,7 +716,7 @@ VengefulSunStaff: { DisplayName: Vengeful Sun Staff Tooltip: ''' - Summons a solar god spirit to protect you + Summons a vengeful solar spirit to protect you There can only be one spirit at a time ''' } @@ -794,4 +794,4 @@ YharonsKindleStaff: { Summons a fiery draconid to fight for you Requires 5 minion slots to use ''' -} \ No newline at end of file +} From de8a0906623d3812c19ed939293c2be2f3d0e121 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Sat, 2 Sep 2023 19:28:53 +0300 Subject: [PATCH 195/258] Meowmere rebalancing --- Items/CalamityGlobalItemTweaks.cs | 2 +- Projectiles/CalamityGlobalProjectileTweaks.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 99081780c9..b859d38b1f 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -145,7 +145,7 @@ namespace CalamityMod.Items { ItemID.MagnetSphere, Do(DamageRatio(1.1f)) }, { ItemID.Marrow, Do(PointBlank, DamageExact(69)) }, { ItemID.MedusaHead, Do(ManaExact(6), DamageRatio(1.2f)) }, - { ItemID.Meowmere, Do(UseMeleeSpeed/*, DamageRatio(1.33f) */) }, + { ItemID.Meowmere, Do(UseMeleeSpeed, DamageExact(240)/*, DamageRatio(1.33f) */) }, { ItemID.MeteorStaff, Do(DamageExact(58), ManaExact(7), ShootSpeedExact(13f)) }, { ItemID.Minishark, Do(PointBlank, DamageExact(4)) }, { ItemID.MoltenFury, Do(PointBlank, UseExact(29), AutoReuse) }, diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 183f2cdb7c..365813dfeb 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -145,6 +145,7 @@ namespace CalamityMod.Projectiles { ProjectileID.LightDisc, Do(MaxUpdatesExact(3)) }, { ProjectileID.LostSoulHostile, Do(TileCollide) }, // Ragged Caster { ProjectileID.MeteorShot, standardBulletTweaks }, + { ProjectileID.Meowmere, Do(PiercingExact(3), LocalIFrames(-1)) },// Meowmere Projectile { ProjectileID.MonkStaffT1, Do(TrueMeleeNoSpeed, ScaleExact(3f)) }, // Sleepy Octopod { ProjectileID.MonkStaffT2, Do(TrueMelee, IDStaticIFrames(18)) }, // Ghastly Glaive { ProjectileID.MonkStaffT3, Do(ScaleRatio(2f)) }, // Sky Dragon's Fury From c5cd9c5d86205b8b28a4d9f95931a681d04641be Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Sat, 2 Sep 2023 22:30:48 +0100 Subject: [PATCH 196/258] PSC no longer provides infinite rocks --- Projectiles/Summon/MiniGuardianRock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Summon/MiniGuardianRock.cs b/Projectiles/Summon/MiniGuardianRock.cs index 2a5b7b2a84..bf19a37586 100644 --- a/Projectiles/Summon/MiniGuardianRock.cs +++ b/Projectiles/Summon/MiniGuardianRock.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Summon // Despawn properly if (Owner.Calamity().pSoulGuardians && Projectile.ai[0] == 0f) Projectile.timeLeft = 4; - if (!Owner.Calamity().pSoulArtifact || Owner.dead || !Owner.active) + if (!Owner.Calamity().pSoulArtifact || Owner.dead || !Owner.active || (Owner.Calamity().profanedCrystal && !Owner.Calamity().profanedCrystalBuffs)) { Owner.Calamity().pSoulGuardians = false; Projectile.active = false; From 232cd081a23d3e1d471ec0de77cd43e1de6bff5a Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 2 Sep 2023 20:11:16 -0400 Subject: [PATCH 197/258] Added Blood Orb recipe for Biome Sight Potion --- Utilities/CalamityRecipes.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Utilities/CalamityRecipes.cs b/Utilities/CalamityRecipes.cs index 8590dabaed..9984a20a61 100644 --- a/Utilities/CalamityRecipes.cs +++ b/Utilities/CalamityRecipes.cs @@ -1090,7 +1090,8 @@ namespace CalamityMod ItemID.StinkPotion, ItemID.RecallPotion, ItemID.PotionOfReturn, - ItemID.LuckPotionLesser + ItemID.LuckPotionLesser, + ItemID.BiomeSightPotion }; Recipe r; From 185b7b9831e4202bcc7ce21aee2f79eddfc42dc3 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sat, 2 Sep 2023 20:25:30 -0700 Subject: [PATCH 198/258] Ichor Spear and Cursed Dagger reworks Ichor Spear Throws a high-velocity ichor tipped javelin that pierces through enemies (less damage every pierce) Stealth strikes impale enemies and deal repeated damage Cursed Dagger Throws a fast cursed dagger and two inaccurate weaker daggers (half damage on weak daggers) Stealth strikes throw a single dagger that bursts into a vortex of cursed flames --- Items/Weapons/Rogue/CursedDagger.cs | 18 ++- Items/Weapons/Rogue/IchorSpear.cs | 14 +- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 8 +- .../Mods.CalamityMod.Projectiles.Rogue.hjson | 3 +- Projectiles/Rogue/CursedDaggerBlastHitbox.cs | 65 +++++++++ Projectiles/Rogue/CursedDaggerProj.cs | 64 ++++----- Projectiles/Rogue/IchorSpearProj.cs | 135 +++++++++++++----- Sounds/Item/CursedDaggerThrow.ogg | Bin 0 -> 8346 bytes Sounds/Item/IchorSpearThrow.ogg | Bin 0 -> 10027 bytes 9 files changed, 225 insertions(+), 82 deletions(-) create mode 100644 Projectiles/Rogue/CursedDaggerBlastHitbox.cs create mode 100644 Sounds/Item/CursedDaggerThrow.ogg create mode 100644 Sounds/Item/IchorSpearThrow.ogg diff --git a/Items/Weapons/Rogue/CursedDagger.cs b/Items/Weapons/Rogue/CursedDagger.cs index 3b792327a8..4c55e2ac21 100644 --- a/Items/Weapons/Rogue/CursedDagger.cs +++ b/Items/Weapons/Rogue/CursedDagger.cs @@ -4,16 +4,19 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using log4net.Core; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Rogue { public class CursedDagger : RogueWeapon { + public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/CursedDaggerThrow") { Volume = 0.3f, PitchVariance = 0.4f }; public override void SetDefaults() { Item.damage = 34; - Item.useAnimation = Item.useTime = 8; - Item.shootSpeed = 12f; + Item.useAnimation = Item.useTime = 17; + Item.shootSpeed = 19f; Item.knockBack = 4.5f; Item.shoot = ModContent.ProjectileType(); @@ -22,16 +25,23 @@ namespace CalamityMod.Items.Weapons.Rogue Item.height = 48; Item.DamageType = RogueDamageClass.Instance; Item.useStyle = ItemUseStyleID.Swing; - Item.UseSound = SoundID.Item1; + Item.UseSound = ThrowSound; Item.rare = ItemRarityID.Pink; Item.value = CalamityGlobalItem.Rarity5BuyPrice; Item.autoReuse = true; Item.noMelee = true; Item.noUseGraphic = true; } - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { + Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(23f)) * 0.6f; + Vector2 newVel2 = velocity.RotatedByRandom(MathHelper.ToRadians(23f)) * 0.8f; + if (!player.Calamity().StealthStrikeAvailable()) + { + Projectile.NewProjectile(source, position, newVel, type, damage / 2, knockback, player.whoAmI); + Projectile.NewProjectile(source, position, newVel2, type, damage / 2, knockback, player.whoAmI); + } + if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike { int stealth = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); diff --git a/Items/Weapons/Rogue/IchorSpear.cs b/Items/Weapons/Rogue/IchorSpear.cs index 01d6824127..bdea17ae64 100644 --- a/Items/Weapons/Rogue/IchorSpear.cs +++ b/Items/Weapons/Rogue/IchorSpear.cs @@ -1,30 +1,32 @@ -using Terraria.DataStructures; +using Terraria.DataStructures; using CalamityMod.Projectiles.Rogue; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; namespace CalamityMod.Items.Weapons.Rogue { public class IchorSpear : RogueWeapon { + public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/IchorSpearThrow") { Volume = 0.2f, PitchVariance = 0.4f }; public override void SetDefaults() { Item.width = 52; - Item.damage = 84; + Item.damage = 98; Item.noMelee = true; Item.noUseGraphic = true; - Item.useAnimation = Item.useTime = 20; + Item.useAnimation = Item.useTime = 39; Item.useStyle = ItemUseStyleID.Swing; - Item.knockBack = 6f; - Item.UseSound = SoundID.Item1; + Item.knockBack = 7f; + Item.UseSound = ThrowSound; Item.autoReuse = true; Item.height = 52; Item.value = CalamityGlobalItem.Rarity4BuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 20f; + Item.shootSpeed = 17f; Item.DamageType = RogueDamageClass.Instance; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index d9cc30c5cb..8a6dbb48d8 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -248,8 +248,8 @@ CursedDagger: { DisplayName: Cursed Dagger Tooltip: ''' - Throws bouncing daggers - Stealth strikes are showered in cursed fireballs + Throws a fast cursed dagger and two inaccurate weaker daggers + Stealth strikes throw a single dagger that bursts into a vortex of cursed flames ''' } @@ -596,8 +596,8 @@ IchorSpear: { DisplayName: Ichor Spear Tooltip: ''' - Throws an ichor tipped trident - Stealth strikes are showered in splashes of ichor + Throws an high-velocity ichor tipped javelin that pierces through enemies + Stealth strikes impale enemies and deal repeated damage ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson index 20323580c5..f6cc2e8ae7 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson @@ -324,4 +324,5 @@ WrathwingCinder.DisplayName: Wrathwing Eruption WrathwingFireball.DisplayName: Wrathwing Fireball WrathwingSpear.DisplayName: Wrathwing WulfrumKnifeProj.DisplayName: Knife -WaveSkipperProjectile.DisplayName: Scourge \ No newline at end of file +WaveSkipperProjectile.DisplayName: Scourge +CursedDaggerBlastHitbox.DisplayName: Cursed Dagger Blast Hitbox \ No newline at end of file diff --git a/Projectiles/Rogue/CursedDaggerBlastHitbox.cs b/Projectiles/Rogue/CursedDaggerBlastHitbox.cs new file mode 100644 index 0000000000..4e75f956fd --- /dev/null +++ b/Projectiles/Rogue/CursedDaggerBlastHitbox.cs @@ -0,0 +1,65 @@ +using Microsoft.Xna.Framework; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; +using Terraria.Utilities; +using CalamityMod.Items.Weapons.Rogue; +using static Humanizer.In; +using CalamityMod.Dusts; +using CalamityMod.Particles; +using System.Reflection.Metadata; + +namespace CalamityMod.Projectiles.Rogue +{ + public class CursedDaggerBlastHitbox : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Rogue"; + + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public override void SetDefaults() + { + Projectile.width = 200; + Projectile.height = 200; + Projectile.friendly = true; + Projectile.penetrate = -1; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.timeLeft = 300; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.usesIDStaticNPCImmunity = true; + Projectile.idStaticNPCHitCooldown = 15; + } + + public override void AI() + { + if (Projectile.timeLeft % 30 == 0) + SoundEngine.PlaySound(SoundID.DD2_SkyDragonsFurySwing with { Volume = 1.2f }, Projectile.position); + + Dust dust2 = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(200f, 200f), 75); + dust2.scale = Main.rand.NextFloat(0.8f, 1.1f); + dust2.noGravity = true; + + int sparkCount = Main.rand.Next(18); + float offset = Main.rand.NextFloat(MathHelper.TwoPi); + for (int i = 0; i < sparkCount; i++) + { + float angle = i / (float)sparkCount * MathHelper.TwoPi + offset; + Vector2 sparkPos = Projectile.Center + angle.ToRotationVector2() * Main.rand.Next(65, 200); + int sparkLifetime = Main.rand.Next(10, 18); + float sparkScale = Main.rand.NextFloat(0.8f, 1f) * 0.955f; + Color sparkColor = Color.Lerp(Color.LawnGreen, Color.Green, Main.rand.NextFloat(0.7f)); + sparkColor = Color.Lerp(sparkColor, Color.LawnGreen, Main.rand.NextFloat()); + SparkParticle spark = new SparkParticle(sparkPos, (angle - MathHelper.PiOver2 * Projectile.direction).ToRotationVector2() * Main.rand.NextFloat(2f, 5.5f), false, sparkLifetime, sparkScale, sparkColor); + GeneralParticleHandler.SpawnParticle(spark); + } + } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(BuffID.CursedInferno, 600); + } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, Projectile.width, targetHitbox); + } +} diff --git a/Projectiles/Rogue/CursedDaggerProj.cs b/Projectiles/Rogue/CursedDaggerProj.cs index 8c60f77ab5..8d73962a45 100644 --- a/Projectiles/Rogue/CursedDaggerProj.cs +++ b/Projectiles/Rogue/CursedDaggerProj.cs @@ -1,9 +1,12 @@ using CalamityMod.Dusts; +using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; +using static Humanizer.In; namespace CalamityMod.Projectiles.Rogue { @@ -11,11 +14,12 @@ namespace CalamityMod.Projectiles.Rogue { public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Items/Weapons/Rogue/CursedDagger"; - + public bool slowstart = true; + public int speedup = 0; public override void SetDefaults() { Projectile.localNPCHitCooldown = 10; - Projectile.penetrate = 3; + Projectile.penetrate = 2; Projectile.timeLeft = 600; Projectile.width = Projectile.height = 38; @@ -28,27 +32,27 @@ namespace CalamityMod.Projectiles.Rogue public override void AI() { - if (Main.rand.NextBool(4)) + if (Main.rand.NextBool(Projectile.Calamity().stealthStrike ? 3 : 7)) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); + Dust dust = Main.dust[Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.velocity.X * -3f, Projectile.velocity.Y * -3f, 0, default, Projectile.Calamity().stealthStrike ? Main.rand.NextFloat(2.5f, 3.2f) : 1.5f)]; + dust.noGravity = true; } if (Projectile.Calamity().stealthStrike) { - if (Projectile.timeLeft % 6 == 0) + if (slowstart) { - if (Projectile.owner == Main.myPlayer) - { - Vector2 velocity = new Vector2(Main.rand.NextFloat(-14f, 14f), Main.rand.NextFloat(-14f, 14f)); - int flame = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, Main.rand.NextBool(2) ? ProjectileID.CursedFlameFriendly : ProjectileID.CursedDartFlame, Projectile.damage, Projectile.knockBack, Projectile.owner); - if (flame.WithinBounds(Main.maxProjectiles)) - { - Main.projectile[flame].DamageType = RogueDamageClass.Instance; - Main.projectile[flame].usesLocalNPCImmunity = true; - Main.projectile[flame].localNPCHitCooldown = 10; - } - } + Projectile.velocity *= 0.5f; + Projectile.penetrate = 1; + slowstart = false; } + if (speedup <= 50) + { + Projectile.velocity *= 1.03f; + speedup++; + } + Projectile.aiStyle = 0; + Projectile.extraUpdates = 1; } } @@ -58,27 +62,11 @@ namespace CalamityMod.Projectiles.Rogue { Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); } - } - - public override bool OnTileCollide(Vector2 oldVelocity) - { - Projectile.penetrate--; - if (Projectile.penetrate <= 0) + if (Projectile.Calamity().stealthStrike) { - Projectile.Kill(); + SoundEngine.PlaySound(SoundID.DD2_BetsyFireballImpact, Projectile.position); + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage), Projectile.knockBack * 2, Projectile.owner, 0, 0f); } - else - { - if (Projectile.velocity.X != oldVelocity.X) - { - Projectile.velocity.X = -oldVelocity.X; - } - if (Projectile.velocity.Y != oldVelocity.Y) - { - Projectile.velocity.Y = -oldVelocity.Y; - } - } - return false; } public override bool PreDraw(ref Color lightColor) @@ -90,6 +78,12 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.CursedInferno, Projectile.Calamity().stealthStrike ? 600 : 120); + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + Projectile.damage = (int)(Projectile.damage * 0.8f); + if (Projectile.damage < 1) + Projectile.damage = 1; + } public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.CursedInferno, Projectile.Calamity().stealthStrike ? 600 : 120); } } diff --git a/Projectiles/Rogue/IchorSpearProj.cs b/Projectiles/Rogue/IchorSpearProj.cs index 9b5d98a920..592d105bac 100644 --- a/Projectiles/Rogue/IchorSpearProj.cs +++ b/Projectiles/Rogue/IchorSpearProj.cs @@ -1,7 +1,12 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Particles; +using CalamityMod.Projectiles.Pets; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using Mono.Cecil; using System; +using System.Reflection.Metadata; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -9,53 +14,72 @@ namespace CalamityMod.Projectiles.Rogue { public class IchorSpearProj : ModProjectile, ILocalizedModType { + public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/WulfrumKnifeTileHit2") { PitchVariance = 0.3f, Volume = 0.5f }; public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Items/Weapons/Rogue/IchorSpear"; - + public bool posthit = false; + public int framesInAir = 0; public override void SetDefaults() { - Projectile.width = 12; - Projectile.height = 12; + Projectile.width = 14; + Projectile.height = 14; Projectile.friendly = true; Projectile.ignoreWater = true; - Projectile.penetrate = 2; - Projectile.aiStyle = ProjAIStyleID.StickProjectile; - Projectile.timeLeft = 600; - AIType = ProjectileID.BoneJavelin; + Projectile.penetrate = 6; + Projectile.timeLeft = 900; + Projectile.aiStyle = 0; Projectile.DamageType = RogueDamageClass.Instance; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; + Projectile.localNPCHitCooldown = 50; } public override void AI() { - if (Main.rand.NextBool(4)) + framesInAir++; + if (framesInAir > 90 && !Projectile.Calamity().stealthStrike) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 246, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); - } - Projectile.rotation = (float)Math.Atan2((double)Projectile.velocity.Y, (double)Projectile.velocity.X) + 0.785f; - if (Projectile.spriteDirection == -1) - { - Projectile.rotation -= 1.57f; + Projectile.velocity.X *= 0.998f; + Projectile.velocity.Y += 0.3f; } + Projectile.scale = 1.2f; + if (!Projectile.Calamity().stealthStrike) + Projectile.extraUpdates = 1; + + if (Main.rand.NextBool(2) && !posthit) + { + Vector2 position = Projectile.Center + Vector2.Normalize(Projectile.velocity); + Dust dust = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.Next(169, 170), 0f, 0f, 0, default, Projectile.Calamity().stealthStrike ? Main.rand.NextFloat(2.1f, 3.2f) : Main.rand.NextFloat(1.2f, 1.5f))]; + dust.position = position; + dust.velocity = Projectile.velocity.RotatedBy(1.9707963705062866, default) * 0.1f + Projectile.velocity / 8f; + dust.position += Projectile.velocity.RotatedBy(0.3, default); + dust.fadeIn = 0.5f; + dust.noGravity = true; + dust = Main.dust[Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.Next(169, 170), 0f, 0f, 0, default, Projectile.Calamity().stealthStrike ? Main.rand.NextFloat(2.1f, 3.2f) : Main.rand.NextFloat(1.2f, 1.5f))]; + dust.position = position; + dust.velocity = Projectile.velocity.RotatedBy(-1.9707963705062866, default) * 0.1f + Projectile.velocity / 8f; + dust.position += Projectile.velocity.RotatedBy(-0.3, default); + dust.fadeIn = 0.5f; + dust.noGravity = true; + } + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; + + bool defaultsonce = true; if (Projectile.Calamity().stealthStrike) { - if (Projectile.timeLeft % 6 == 0) + Projectile.tileCollide = false; + Projectile.aiStyle = 0; + Projectile.extraUpdates = 2; + if (Projectile.ai[0] == 0f) { - if (Projectile.owner == Main.myPlayer) + if (defaultsonce) { - Vector2 velocity = new Vector2(Main.rand.NextFloat(-14f, 14f), Main.rand.NextFloat(-14f, 14f)); - int ichor = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, Main.rand.NextBool(2) ? ProjectileID.GoldenShowerFriendly : ProjectileID.IchorSplash, Projectile.damage, Projectile.knockBack, Projectile.owner); - if (ichor.WithinBounds(Main.maxProjectiles)) - { - Main.projectile[ichor].DamageType = RogueDamageClass.Instance; - Main.projectile[ichor].usesLocalNPCImmunity = true; - Main.projectile[ichor].localNPCHitCooldown = 10; - Main.projectile[ichor].extraUpdates = 2; - } + Projectile.penetrate = 10; + Projectile.localNPCHitCooldown = 60; + defaultsonce = false; } } + Projectile.StickyProjAI(10); } } @@ -66,16 +90,63 @@ namespace CalamityMod.Projectiles.Rogue return false; } - public override void Kill(int timeLeft) + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - for (int i = 0; i <= 10; i++) + Vector2 bloodSpawnPosition = target.Center + Main.rand.NextVector2Circular(target.width, target.height) * 0.04f; + Vector2 splatterDirection = (Projectile.Center - bloodSpawnPosition).SafeNormalize(Vector2.UnitY); + int sparkCount = Main.rand.Next(5); + for (int i = 0; i < sparkCount; i++) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 246, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); + Vector2 sparkVelocity = splatterDirection.RotatedByRandom(0.5f) * Main.rand.NextFloat(5f, 9f); + int sparkLifetime = Main.rand.Next(23, 25); + float sparkScale = Main.rand.NextFloat(0.8f, 1f) * 0.955f; + Color sparkColor = Color.Lerp(Color.Gold, Color.Goldenrod, Main.rand.NextFloat(0.7f)); + sparkColor = Color.Lerp(sparkColor, Color.Gold, Main.rand.NextFloat()); + SparkParticle spark = new SparkParticle(Projectile.Center, sparkVelocity * -2, true, sparkLifetime, sparkScale, sparkColor); + GeneralParticleHandler.SpawnParticle(spark); + } + SoundEngine.PlaySound(Hitsound, Projectile.position); + target.AddBuff(BuffID.Ichor, Projectile.Calamity().stealthStrike ? 900 : 180); + if (Projectile.Calamity().stealthStrike) + { + posthit = true; + for (int i = 0; i <= 17; i++) + { + Dust dust2 = Main.dust[Dust.NewDust(target.position, Projectile.width, Projectile.height, Main.rand.Next(169, 170), 0, 0, 0, default, 3.2f)]; + dust2.noGravity = true; + dust2.velocity.Y -= Main.rand.NextFloat(2.5f, 10.5f); + dust2.velocity.X += Main.rand.NextFloat(-3f, 3f); + } + SoundEngine.PlaySound(SoundID.NPCHit18, Projectile.position); } } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + if (Projectile.Calamity().stealthStrike && !posthit) + { + Projectile.ModifyHitNPCSticky(2); + posthit = true; + } + Projectile.damage = (int)(Projectile.damage * 0.9f); + if (Projectile.damage < 1) + Projectile.damage = 1; + } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Ichor, Projectile.Calamity().stealthStrike ? 600 : 120); - + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + if (targetHitbox.Width > 8 && targetHitbox.Height > 8 && Projectile.Calamity().stealthStrike) + { + targetHitbox.Inflate(-targetHitbox.Width / 8, -targetHitbox.Height / 8); + } + return null; + } + public override void Kill(int timeLeft) + { + for (int i = 0; i <= 9; i++) + { + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, Main.rand.Next(169, 170), Projectile.oldVelocity.X * 0.3f, Projectile.oldVelocity.Y * 0.3f, 0, default, Main.rand.NextFloat(1.2f, 1.6f)); + } + } public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Ichor, Projectile.Calamity().stealthStrike ? 600 : 120); } } diff --git a/Sounds/Item/CursedDaggerThrow.ogg b/Sounds/Item/CursedDaggerThrow.ogg new file mode 100644 index 0000000000000000000000000000000000000000..304cbb599acfde785af195f7e0d720057066ed46 GIT binary patch literal 8346 zcmaiZ2|Uza_y0%P*C9lfhHQf=Ba^05*2-977%@_eeHVrlB1`slDh6d6vM*(1DN!Hu2Q+QOTl3?Ro|KHQGdxwzLb764Ben!%ofJOGQ}_^qF`%`1;#;+pFo@_&K1D9#lPY5T&HVLm%zz0Y>}Td;2(h zdZ;Pw16{VB?p`*&&O|r+9WFj}HYjHwPj_KJ)xeqRnwY8?INN%A`T(}@GdAw_aBVXj zT`8uzrusT+IAeVzt)&p$sSdgb zDmh0kAdP&M-fC5fP9sOR3fab?+WxNKDs}=8#0Z7Ru_ffq>ALh{9ED^Pyt6URhDQtG zEH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@x*Y77kO~;lCv_nb-%fv`30w;(#ieJ=+p0n(=u$9PLR=vi`Ewi zG74)evrvedzSkD#kc!qCFUODltPG0DerlHIc0T9=p%=lMp_zORcCx*1V_wBqL@n4# zq>5L6O5|O$aNxy*MaCvvRT27XnFW6|3~i@5Ixd~=vHo!7R{3zMP4OF+rB76f^}^=4 zqLCPM-sJX?qcAfV=4DJt~C@{H`q*7 zpfh-wpf{0mZah!f-5=a30~#VEcd%p=D)PaSKKlKfIDP$le|M=~dXpkoMx)>Fr@s6% zn{f^$9WGvdK^w{Dl5g`mT36&Am>K$O-+1o0JpQgK{qC|WQiy4$;F`;~Mh1~M9j$NB ze*aQ}nBd-|T#AG`5y?FtDyx&F1S?&0j_1q$j@xf%|Biyl3)tdifPy0$zi}_HbYHjT z5m*b$BGoVpmEh9vL(tJ{3-}7JQ(wpKq%V6OZ`k;%a7SvfGwsNEi;AD0a(*j!E1wa3 zFaB&Ga@Z+>U0exyyj1mlUuE0pwSKaRQRzA#*5wC_fu8xn2SOWRq?5>8ozJmD7hTKP oLW&Tl?%unH{z&C7lBT#EH5>`1IUcen*zKiW31(KB-p>yGKXf2_?*IS* literal 0 HcmV?d00001 diff --git a/Sounds/Item/IchorSpearThrow.ogg b/Sounds/Item/IchorSpearThrow.ogg new file mode 100644 index 0000000000000000000000000000000000000000..36b9da89d456296b36642c00aa90d7d186ae9073 GIT binary patch literal 10027 zcmaiZ2V7Il()U4>4kArJ#Lx*vsbWB+g9$wlI{45HozO&zAYF=-&;rsVGzrq13M#!9 zr8g1jASePVD&Gk__ul8b-}igp^V=+Yc6MiWXZ|y1cF}coGyu*3e?N7MrwycIBO?hX ziLX1x2JJ=cA_;l%_YgmllSU(nE^+3+AL2|Rh3-196#eA!|Mm2co-&dG=_Y88yH|BF zju02LjnN5v2pl3ICLty!BPInAMB3Z=*rMGWA!=^EXpFm?tG$~ylnk850{#r#9lZUl zG4}FW*1itXH?GQDzbY;!Mh{Y4t)1L4cWf}$Zg%pn9#RtL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(f`V`V z1k+tH6*G_)+gr?=G;6v~f8|#EO|z-$xB;yq4=)1u*E?(NE$14UyAvf25W{I&mk^H!d%G%`6BH{NB%sZSV}*KI$R2O&wN(8w73`p2+yA(~Ca z^A8`RBX)RxuB!6bXY;6JzMQ|8<3EzR=5;AX-&^12nI!@KBG-bEtCs}GiLwYpG?0l> zZ7uHJe_@YZ2`$5n7z2Qol|11vr{$~6evWo8ULm)l4t12>qkZ5~+aWbhZ7ZRpYFJLI zAjR-eN21s5NlEcbZ-ils<$mCbR|9c=Q8SD{bIU)Jq*`o*vcK$j2b0D6Jw& zo52+TGJY-Wn6@9R#Rj&1{oFJ*8tmeaK_vNh$_ke%he$EJVt&jm7-yuim3NaSX^3S3 z!Z)MJeBY?ws2W=`0I-c9d_8z;&8 zWwxK=S-%-N)`gyyx^9jvMlW60;7_$00Q`x3sl%tJ$FQZ}@q+MP*E6J^AU*i)ud<;VP! zId(-BfUc36Gk9pxJ*nnux;f*2|6(UgXKnt!Bp zctK45BH2ST_uq$$_#a#yZ3BI>yfpT2oJb`*W__ME#+1cC0_lfTUQw%k HXW;(;3-!%3 literal 0 HcmV?d00001 From 6276c4fb764e3b6aeba04dacdec01197f9ba08e5 Mon Sep 17 00:00:00 2001 From: GinYuH Date: Sat, 2 Sep 2023 20:59:12 -0700 Subject: [PATCH 199/258] ichor spear grammar fix + cursed vortex --- Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson | 2 +- Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 8a6dbb48d8..870ca84e46 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -596,7 +596,7 @@ IchorSpear: { DisplayName: Ichor Spear Tooltip: ''' - Throws an high-velocity ichor tipped javelin that pierces through enemies + Throws a high-velocity ichor tipped javelin that pierces through enemies Stealth strikes impale enemies and deal repeated damage ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson index f6cc2e8ae7..9f05f37ec0 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson @@ -65,6 +65,7 @@ Crystalline2.DisplayName: Crystalline CrystallineProj.DisplayName: Crystalline CrystalPiercerProjectile.DisplayName: Crystal Piercer CrystalPiercerShard.DisplayName: Crystal Shard +CursedDaggerBlastHitbox.DisplayName: Cursed Vortex CursedDaggerProj.DisplayName: Cursed Dagger DeepSeaDumbbell1.DisplayName: Deep Sea Dumbbell DeepSeaDumbbell2.DisplayName: Deep Sea Dumbbell @@ -324,5 +325,4 @@ WrathwingCinder.DisplayName: Wrathwing Eruption WrathwingFireball.DisplayName: Wrathwing Fireball WrathwingSpear.DisplayName: Wrathwing WulfrumKnifeProj.DisplayName: Knife -WaveSkipperProjectile.DisplayName: Scourge -CursedDaggerBlastHitbox.DisplayName: Cursed Dagger Blast Hitbox \ No newline at end of file +WaveSkipperProjectile.DisplayName: Scourge \ No newline at end of file From 29f0e18f98a56e33b9247f6533183694d32b5001 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sat, 2 Sep 2023 23:34:02 -0600 Subject: [PATCH 200/258] Nerfed: Executioner's blade: just stat nerfs Eclipse's fall: Nerfed dmg multipliers, spear spawnrate and max spear amount God's Paranoia: it now actually does what the tooltip says as before it was literally lying about spawning kunai faster, nerfed velocity, nerfed kunai spawnrate, no longer homes through walls, reduced homing reach, UseTime and animation increased. --- Items/Weapons/Rogue/EclipsesFall.cs | 4 ++-- Items/Weapons/Rogue/ExecutionersBlade.cs | 2 +- Items/Weapons/Rogue/GodsParanoia.cs | 14 ++++++-------- Projectiles/Rogue/EclipsesFallMain.cs | 10 ++++------ Projectiles/Rogue/EclipsesSmol.cs | 4 ++-- Projectiles/Rogue/EclipsesStealth.cs | 4 ++-- Projectiles/Rogue/GodsParanoiaDart.cs | 2 +- Projectiles/Rogue/GodsParanoiaProj.cs | 12 ++++++------ 8 files changed, 24 insertions(+), 28 deletions(-) diff --git a/Items/Weapons/Rogue/EclipsesFall.cs b/Items/Weapons/Rogue/EclipsesFall.cs index b914c5c93a..200e977b24 100644 --- a/Items/Weapons/Rogue/EclipsesFall.cs +++ b/Items/Weapons/Rogue/EclipsesFall.cs @@ -15,9 +15,9 @@ namespace CalamityMod.Items.Weapons.Rogue { public override void SetDefaults() { - Item.damage = 540; + Item.damage = 500; Item.knockBack = 3.5f; - Item.useAnimation = Item.useTime = 21; + Item.useAnimation = Item.useTime = 22; Item.autoReuse = true; Item.DamageType = RogueDamageClass.Instance; Item.shootSpeed = 15f; diff --git a/Items/Weapons/Rogue/ExecutionersBlade.cs b/Items/Weapons/Rogue/ExecutionersBlade.cs index 3041d19896..26aea6c1b8 100644 --- a/Items/Weapons/Rogue/ExecutionersBlade.cs +++ b/Items/Weapons/Rogue/ExecutionersBlade.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetDefaults() { Item.width = 64; - Item.damage = 225; + Item.damage = 195; Item.noMelee = true; Item.noUseGraphic = true; Item.useTime = 3; diff --git a/Items/Weapons/Rogue/GodsParanoia.cs b/Items/Weapons/Rogue/GodsParanoia.cs index fb145a912f..411b0461c5 100644 --- a/Items/Weapons/Rogue/GodsParanoia.cs +++ b/Items/Weapons/Rogue/GodsParanoia.cs @@ -13,21 +13,19 @@ namespace CalamityMod.Items.Weapons.Rogue { public class GodsParanoia : RogueWeapon { - private static int damage = 98; - private static int knockBack = 5; public override void SetDefaults() { - Item.damage = damage; + Item.damage = 142; Item.DamageType = RogueDamageClass.Instance; Item.noMelee = true; Item.noUseGraphic = true; Item.width = 20; - Item.height = 18; - Item.useTime = 15; - Item.useAnimation = 15; + Item.height = 20; + Item.useTime = 20; + Item.useAnimation = 20; Item.useStyle = ItemUseStyleID.Swing; - Item.knockBack = knockBack; + Item.knockBack = 5; Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item1; @@ -52,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Rogue } } - public override float StealthDamageMultiplier => 1f; + public override float StealthDamageMultiplier => 0.7f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Projectiles/Rogue/EclipsesFallMain.cs b/Projectiles/Rogue/EclipsesFallMain.cs index a0914ecccf..f311e5090e 100644 --- a/Projectiles/Rogue/EclipsesFallMain.cs +++ b/Projectiles/Rogue/EclipsesFallMain.cs @@ -13,8 +13,7 @@ namespace CalamityMod.Projectiles.Rogue public override string Texture => "CalamityMod/Items/Weapons/Rogue/EclipsesFall"; // these also affect KB - public const float RainDamageMultMin = 0.4f; - public const float RainDamageMultMax = 0.5f; + public static float RainDamageMult = 0.4f; public override void SetStaticDefaults() { @@ -56,12 +55,11 @@ namespace CalamityMod.Projectiles.Rogue private void SpawnSpears(Vector2 targetPos) { - int spearAmt = Main.rand.Next(3, 5 + 1); // 3 to 5 spears + int spearAmt = Main.rand.Next(3, 4 + 1); // 3 or 4 spears var source = Projectile.GetSource_FromThis(); for (int n = 0; n < spearAmt; n++) - { - float dmgMult = Main.rand.NextFloat(RainDamageMultMin, RainDamageMultMax); - CalamityUtils.ProjectileRain(source, targetPos, 400f, 100f, 500f, 800f, 29f, ModContent.ProjectileType(), (int)(Projectile.damage * dmgMult), Projectile.knockBack * dmgMult, Projectile.owner); + {; + CalamityUtils.ProjectileRain(source, targetPos, 400f, 100f, 500f, 800f, 29f, ModContent.ProjectileType(), (int)(Projectile.damage * RainDamageMult), Projectile.knockBack * RainDamageMult, Projectile.owner); } } diff --git a/Projectiles/Rogue/EclipsesSmol.cs b/Projectiles/Rogue/EclipsesSmol.cs index 2d15f0772f..0e5261b383 100644 --- a/Projectiles/Rogue/EclipsesSmol.cs +++ b/Projectiles/Rogue/EclipsesSmol.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Rogue public new string LocalizationCategory => "Projectiles.Rogue"; public override void SetDefaults() { - Projectile.width = Projectile.height = 32; + Projectile.width = Projectile.height = 24; Projectile.friendly = true; Projectile.tileCollide = false; Projectile.ignoreWater = true; diff --git a/Projectiles/Rogue/EclipsesStealth.cs b/Projectiles/Rogue/EclipsesStealth.cs index 0586d87a7a..e2819ada60 100644 --- a/Projectiles/Rogue/EclipsesStealth.cs +++ b/Projectiles/Rogue/EclipsesStealth.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Rogue public override string Texture => "CalamityMod/Items/Weapons/Rogue/EclipsesFall"; // these also affect KB - public const float RainDamageMult = 0.25f; + public const float RainDamageMult = 0.2f; public const float ExplosionDamageMult = 0.5f; // For more consistent DPS, always alternates between spawning 1 and 2 spears instead of picking randomly @@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.localAI[1] <= 0f) { // Set up the spear counter for next time. Used to be every 5 frames there was a 50% chance; now it's more reliable but slower. - Projectile.localAI[1] = Main.rand.Next(8, 13); // 8 to 12 frames between each spearfall + Projectile.localAI[1] = Main.rand.Next(10, 13); // 10 to 12 frames between each spearfall int type = ModContent.ProjectileType(); // Used to be a 50% chance each spearfall for 1 or 2. Now is consistent. diff --git a/Projectiles/Rogue/GodsParanoiaDart.cs b/Projectiles/Rogue/GodsParanoiaDart.cs index 4269418051..1cc2762da4 100644 --- a/Projectiles/Rogue/GodsParanoiaDart.cs +++ b/Projectiles/Rogue/GodsParanoiaDart.cs @@ -1,4 +1,4 @@ -using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; diff --git a/Projectiles/Rogue/GodsParanoiaProj.cs b/Projectiles/Rogue/GodsParanoiaProj.cs index df85ae3aba..3bb451b73d 100644 --- a/Projectiles/Rogue/GodsParanoiaProj.cs +++ b/Projectiles/Rogue/GodsParanoiaProj.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Rogue public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Items/Weapons/Rogue/GodsParanoia"; - public int kunaiStabbing = 12; + public int kunaiStabbing = 10; public override void SetStaticDefaults() { @@ -22,8 +22,8 @@ namespace CalamityMod.Projectiles.Rogue public override void SetDefaults() { - Projectile.width = 15; - Projectile.height = 15; + Projectile.width = 20; + Projectile.height = 20; Projectile.ignoreWater = true; Projectile.friendly = true; Projectile.tileCollide = false; @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.ai[0] == 1f) { kunaiStabbing++; - if (kunaiStabbing >= 20) + if (kunaiStabbing >= 30 || (Projectile.Calamity().stealthStrike && kunaiStabbing >=20)) { kunaiStabbing = 0; float startOffsetX = Main.rand.NextFloat(100f, 200f) * (Main.rand.NextBool() ? -1f : 1f); @@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Rogue { for (int i = 0; i < 3; i++) { - int idx = Projectile.NewProjectile(Projectile.GetSource_FromThis(), startPos, kunaiSp, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack / 2f, Projectile.owner, 0f, 0f); + int idx = Projectile.NewProjectile(Projectile.GetSource_FromThis(), startPos, kunaiSp, ModContent.ProjectileType(), Projectile.damage / 3, Projectile.knockBack / 3f, Projectile.owner, 0f, 0f); Main.projectile[idx].rotation = angle; } } @@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Rogue else { Projectile.rotation += 0.2f * (float)Projectile.direction; - CalamityUtils.HomeInOnNPC(Projectile, true, 300f, Projectile.Calamity().stealthStrike ? 12f : 7f, 20f); + CalamityUtils.HomeInOnNPC(Projectile, false, 200f, Projectile.Calamity().stealthStrike ? 10f : 5f, 20f); } Player player = Main.player[Projectile.owner]; From 0b34fde5c790e43484d6b839d451410d8ec698fc Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 3 Sep 2023 01:13:09 -0700 Subject: [PATCH 201/258] cDagger and iSpear balancing damage, use time, debuff, and stealth multiplier adjustments --- Items/Weapons/Rogue/CursedDagger.cs | 9 +++++---- Items/Weapons/Rogue/IchorSpear.cs | 4 ++-- Projectiles/Rogue/CursedDaggerProj.cs | 5 +++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Items/Weapons/Rogue/CursedDagger.cs b/Items/Weapons/Rogue/CursedDagger.cs index 4c55e2ac21..fbd9c8444a 100644 --- a/Items/Weapons/Rogue/CursedDagger.cs +++ b/Items/Weapons/Rogue/CursedDagger.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Rogue public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/CursedDaggerThrow") { Volume = 0.3f, PitchVariance = 0.4f }; public override void SetDefaults() { - Item.damage = 34; - Item.useAnimation = Item.useTime = 17; + Item.damage = 46; + Item.useAnimation = Item.useTime = 18; Item.shootSpeed = 19f; Item.knockBack = 4.5f; @@ -26,12 +26,13 @@ namespace CalamityMod.Items.Weapons.Rogue Item.DamageType = RogueDamageClass.Instance; Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = ThrowSound; - Item.rare = ItemRarityID.Pink; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.rare = ItemRarityID.LightRed; Item.autoReuse = true; Item.noMelee = true; Item.noUseGraphic = true; } + public override float StealthDamageMultiplier => 0.9f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(23f)) * 0.6f; diff --git a/Items/Weapons/Rogue/IchorSpear.cs b/Items/Weapons/Rogue/IchorSpear.cs index bdea17ae64..549dce9289 100644 --- a/Items/Weapons/Rogue/IchorSpear.cs +++ b/Items/Weapons/Rogue/IchorSpear.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetDefaults() { Item.width = 52; - Item.damage = 98; + Item.damage = 132; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = Item.useTime = 39; @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 17f; Item.DamageType = RogueDamageClass.Instance; } - + public override float StealthDamageMultiplier => 0.4f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike diff --git a/Projectiles/Rogue/CursedDaggerProj.cs b/Projectiles/Rogue/CursedDaggerProj.cs index 8d73962a45..faf3301706 100644 --- a/Projectiles/Rogue/CursedDaggerProj.cs +++ b/Projectiles/Rogue/CursedDaggerProj.cs @@ -58,7 +58,8 @@ namespace CalamityMod.Projectiles.Rogue public override void Kill(int timeLeft) { - for (int i = 0; i <= 10; i++) + int numberofdusts = Projectile.Calamity().stealthStrike ? 14 : 5; + for (int i = 0; i <= numberofdusts; i++) { Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, (int)CalamityDusts.SulfurousSeaAcid, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); } @@ -76,7 +77,7 @@ namespace CalamityMod.Projectiles.Rogue return false; } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.CursedInferno, Projectile.Calamity().stealthStrike ? 600 : 120); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.CursedInferno, Projectile.Calamity().stealthStrike ? 900 : 90); public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { From f1d5dc495db4e9230aba9f6fca4bf7541875ea73 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Sun, 3 Sep 2023 16:33:30 +0100 Subject: [PATCH 202/258] sanity check for psa/psc rocktype --- Projectiles/Summon/MiniGuardianRock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Summon/MiniGuardianRock.cs b/Projectiles/Summon/MiniGuardianRock.cs index bf19a37586..fe873f464c 100644 --- a/Projectiles/Summon/MiniGuardianRock.cs +++ b/Projectiles/Summon/MiniGuardianRock.cs @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Summon public override bool PreDraw(ref Color lightColor) { bool psc = Owner.Calamity().profanedCrystalBuffs; - int rockType = (int)Projectile.ai[2]; + int rockType = (int)MathHelper.Clamp(Projectile.ai[2], 1f, 6f);; Texture2D texture = ModContent.Request("CalamityMod/NPCs/ProfanedGuardians/ProfanedRocks" + rockType.ToString()).Value; Vector2 drawOrigin = new Vector2(texture.Width / 2, texture.Height / 2); From aaa41fcf121f77a38bd1395b71aefc390c55f628 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 3 Sep 2023 11:40:12 -0400 Subject: [PATCH 203/258] Empyrean Knives and Nebulash --- Items/Weapons/Melee/EmpyreanKnives.cs | 2 +- Items/Weapons/Melee/Nebulash.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Melee/EmpyreanKnives.cs b/Items/Weapons/Melee/EmpyreanKnives.cs index 61af6ce656..76fa47e506 100644 --- a/Items/Weapons/Melee/EmpyreanKnives.cs +++ b/Items/Weapons/Melee/EmpyreanKnives.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { Item.width = 18; - Item.damage = 207; + Item.damage = 230; Item.DamageType = DamageClass.MeleeNoSpeed; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/Nebulash.cs b/Items/Weapons/Melee/Nebulash.cs index af58c393d6..f677385279 100644 --- a/Items/Weapons/Melee/Nebulash.cs +++ b/Items/Weapons/Melee/Nebulash.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 16; Item.height = 16; - Item.damage = 78; + Item.damage = 60; Item.rare = ItemRarityID.Lime; Item.noMelee = true; Item.noUseGraphic = true; From 45730b0e88756dcbf20aa616fc6a5da7aa2e17a6 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 3 Sep 2023 13:03:27 -0400 Subject: [PATCH 204/258] Beam Sword and Terrarian --- Items/CalamityGlobalItemTweaks.cs | 4 ++-- Projectiles/CalamityGlobalProjectileTweaks.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index b859d38b1f..330e5e69ad 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items { ItemID.AntlionClaw, Do(UseExact(14)) }, // Mandible Blade { ItemID.Bananarang, Do(DamageExact(98), UseExact(14)) }, { ItemID.BatScepter, Do(DamageExact(56)) }, - { ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(200), UseAnimationExact(60), ShootSpeedExact(23f)) }, + { ItemID.BeamSword, Do(UseMeleeSpeed, UseTurn, DamageExact(180), UseAnimationExact(60), ShootSpeedExact(23f)) }, { ItemID.BeeGun, Do(DamageExact(11)) }, { ItemID.BeesKnees, Do(PointBlank, DamageExact(18), UseExact(38)) }, { ItemID.Bladetongue, Do(UseTurn, UseRatio(0.8f), DamageExact(120), ScaleRatio(1.75f)) }, @@ -220,7 +220,7 @@ namespace CalamityMod.Items { ItemID.TendonBow, Do(PointBlank, DamageExact(17), AutoReuse) }, // Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously, // Terrarian is extremely overpowered and requires a heavy nerf. - { ItemID.Terrarian, Do(AutoReuse, DamageExact(94)) }, + { ItemID.Terrarian, Do(AutoReuse, DamageExact(85)) }, { ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) }, { ItemID.TheUndertaker, Do(PointBlank, AutoReuse, DamageExact(15)) }, { ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 365813dfeb..653e141888 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -145,7 +145,7 @@ namespace CalamityMod.Projectiles { ProjectileID.LightDisc, Do(MaxUpdatesExact(3)) }, { ProjectileID.LostSoulHostile, Do(TileCollide) }, // Ragged Caster { ProjectileID.MeteorShot, standardBulletTweaks }, - { ProjectileID.Meowmere, Do(PiercingExact(3), LocalIFrames(-1)) },// Meowmere Projectile + { ProjectileID.Meowmere, Do(PiercingExact(3), LocalIFrames(-1)) }, { ProjectileID.MonkStaffT1, Do(TrueMeleeNoSpeed, ScaleExact(3f)) }, // Sleepy Octopod { ProjectileID.MonkStaffT2, Do(TrueMelee, IDStaticIFrames(18)) }, // Ghastly Glaive { ProjectileID.MonkStaffT3, Do(ScaleRatio(2f)) }, // Sky Dragon's Fury @@ -162,6 +162,7 @@ namespace CalamityMod.Projectiles { ProjectileID.Shroomerang, Do(ExtraUpdatesExact(1)) }, { ProjectileID.StarWrath, Do(NoPiercing) }, { ProjectileID.Sunfury, Do(ExtraUpdatesExact(1)) }, + { ProjectileID.SwordBeam, Do(ExtraUpdatesExact(1)) }, // Beam Sword projectile { ProjectileID.Trimarang, Do(ExtraUpdatesExact(1)) }, { ProjectileID.VenomBullet, standardBulletTweaks }, { ProjectileID.VenomFang, Do(LocalIFrames(10)) }, From b7208a5c682639cc528a3192d1e5d431960b7065 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Sun, 3 Sep 2023 21:28:30 +0300 Subject: [PATCH 205/258] Quiver of Nihility small nerf --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- Projectiles/Typeless/VoidFieldGenerator.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 6e7d3bf231..f05bfe61eb 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1328,7 +1328,7 @@ QuiverofNihility: { ''' 5% increased ranged critical strike chance Summons a ring of four void fields to orbit you - Arrows that pass through these fields gain a 100% damage boost and double the speed + Arrows that pass through these fields gain a 75% damage boost and double the speed 'Filled with a substance darker than the night sky' ''' } diff --git a/Projectiles/Typeless/VoidFieldGenerator.cs b/Projectiles/Typeless/VoidFieldGenerator.cs index f297efa1a9..50350b04b1 100644 --- a/Projectiles/Typeless/VoidFieldGenerator.cs +++ b/Projectiles/Typeless/VoidFieldGenerator.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Typeless var proj = Main.projectile[k]; if (proj.active && proj.owner == Projectile.owner && proj.arrow && !proj.Calamity().nihilicArrow && proj.friendly && Vector2.Distance(proj.Center, Projectile.Center) < 65) { - Main.projectile[k].damage = (int)(proj.damage * 2f); + Main.projectile[k].damage = (int)(proj.damage * 1.75f); proj.extraUpdates += 1; Main.projectile[k].Calamity().nihilicArrow = true; SoundEngine.PlaySound(SoundID.Item104 with { Volume = SoundID.Item104.Volume * 0.75f }, Projectile.Center); From 4a0e8ff30aa07f74e02653e8b7f852d3b83bf6d0 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Sun, 3 Sep 2023 22:36:31 +0300 Subject: [PATCH 206/258] Exoblade rebalancing --- Items/Weapons/Melee/Exoblade.cs | 2 +- Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson | 2 +- Projectiles/Melee/Exobeam.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Melee/Exoblade.cs b/Items/Weapons/Melee/Exoblade.cs index 01cc6b6f82..4096468609 100644 --- a/Items/Weapons/Melee/Exoblade.cs +++ b/Items/Weapons/Melee/Exoblade.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 138; Item.height = 184; - Item.damage = 825; + Item.damage = 935; Item.useStyle = ItemUseStyleID.Swing; Item.useTime = BaseUseTime; Item.useAnimation = BaseUseTime; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 5516600bdc..b7a6ed762f 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -794,4 +794,4 @@ YharonsKindleStaff: { Summons a fiery draconid to fight for you Requires 5 minion slots to use ''' -} +} \ No newline at end of file diff --git a/Projectiles/Melee/Exobeam.cs b/Projectiles/Melee/Exobeam.cs index 75cae7c52a..92d74dc7aa 100644 --- a/Projectiles/Melee/Exobeam.cs +++ b/Projectiles/Melee/Exobeam.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.penetrate = 1; Projectile.extraUpdates = 1; Projectile.alpha = 255; - Projectile.timeLeft = 600; + Projectile.timeLeft = 360; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 12; } From 8f4b71ff355fbe834fea873053d96ee158a4a226 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 3 Sep 2023 15:47:20 -0400 Subject: [PATCH 207/258] maximize durability of supreme cirrus crabulon background code --- .../DrunkCrabBackgroundScene.cs | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/Scenes/BossBackgroundScenes/DrunkCrabBackgroundScene.cs b/Scenes/BossBackgroundScenes/DrunkCrabBackgroundScene.cs index 81d8a07fe3..f51b9fb674 100644 --- a/Scenes/BossBackgroundScenes/DrunkCrabBackgroundScene.cs +++ b/Scenes/BossBackgroundScenes/DrunkCrabBackgroundScene.cs @@ -1,8 +1,8 @@ using CalamityMod.NPCs; using CalamityMod.NPCs.Crabulon; using CalamityMod.NPCs.SupremeCalamitas; -using CalamityMod.World; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Systems @@ -13,17 +13,31 @@ namespace CalamityMod.Systems public override bool IsSceneEffectActive(Player player) { + // Case 1: Zenith Seed Crabulon. + if (Main.zenithWorld && NPC.AnyNPCs(ModContent.NPCType())) + return true; + + // Case 2: Supreme Cirrus BH5. bool cirrusSpecialAttack = false; - if (CalamityGlobalNPC.SCal != -1) + + // Try to find Supreme Cirrus, if she exists. She might not. + try { - if (Main.npc[CalamityGlobalNPC.SCal].active) + // Is there an index reference to Supreme Calamitas/Cirrus available? Is it valid? I sure hope so. Thanks TML + if (CalamityGlobalNPC.SCal >= 0 && CalamityGlobalNPC.SCal < Main.maxNPCs && Main.npc[CalamityGlobalNPC.SCal].active) { - if (Main.npc[CalamityGlobalNPC.SCal].ModNPC().cirrus) - cirrusSpecialAttack = Main.npc[CalamityGlobalNPC.SCal].ModNPC().gettingTired5; + NPC npc = Main.npc[CalamityGlobalNPC.SCal]; + SupremeCalamitas supremeSomeone = npc.ModNPC(); + cirrusSpecialAttack = supremeSomeone.cirrus && supremeSomeone.gettingTired5; } } + catch + { + if (Main.netMode == NetmodeID.SinglePlayer) + Main.NewText("Supreme Cirrus code attempted to crash the game. Did you do something weird?"); + } - return (NPC.AnyNPCs(ModContent.NPCType()) && Main.zenithWorld) || cirrusSpecialAttack; + return cirrusSpecialAttack; } public override void SpecialVisuals(Player player, bool isActive) From e4fe40dbe5c6c6ddf6c88e162bf474bcfbc85730 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 3 Sep 2023 15:13:14 -0700 Subject: [PATCH 208/258] Spear of Destiny Rework --- Items/Weapons/Rogue/SpearofDestiny.cs | 83 +++++++++--- Items/Weapons/Rogue/SpearofDestiny.png | Bin 1102 -> 3424 bytes ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 4 +- .../Mods.CalamityMod.Projectiles.Rogue.hjson | 5 +- Projectiles/Rogue/LanceofDestiny.cs | 120 ++++++++++++++++++ Projectiles/Rogue/LanceofDestiny.png | Bin 0 -> 3466 bytes Projectiles/Rogue/SpearofDestinyGlow.png | Bin 411 -> 0 bytes Projectiles/Rogue/SpearofDestinyProjectile.cs | 78 +++++++----- Projectiles/Rogue/SpearofDestinyStealth.cs | 90 +++++++++++++ .../Rogue/SpearofDestinyStealthExplosion.cs | 35 +++++ Sounds/Item/LanceofDestiny.ogg | Bin 0 -> 17427 bytes Sounds/Item/SpearofDestiny.ogg | Bin 0 -> 11591 bytes Sounds/Item/SpearofDestinyStealth.ogg | Bin 0 -> 17883 bytes 13 files changed, 361 insertions(+), 54 deletions(-) create mode 100644 Projectiles/Rogue/LanceofDestiny.cs create mode 100644 Projectiles/Rogue/LanceofDestiny.png delete mode 100644 Projectiles/Rogue/SpearofDestinyGlow.png create mode 100644 Projectiles/Rogue/SpearofDestinyStealth.cs create mode 100644 Projectiles/Rogue/SpearofDestinyStealthExplosion.cs create mode 100644 Sounds/Item/LanceofDestiny.ogg create mode 100644 Sounds/Item/SpearofDestiny.ogg create mode 100644 Sounds/Item/SpearofDestinyStealth.ogg diff --git a/Items/Weapons/Rogue/SpearofDestiny.cs b/Items/Weapons/Rogue/SpearofDestiny.cs index b6209ccdbe..e6b02c20e6 100644 --- a/Items/Weapons/Rogue/SpearofDestiny.cs +++ b/Items/Weapons/Rogue/SpearofDestiny.cs @@ -4,53 +4,100 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using Terraria.Audio; +using CalamityMod.Items.Accessories; namespace CalamityMod.Items.Weapons.Rogue { public class SpearofDestiny : RogueWeapon { + public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/SpearofDestiny") { Volume = 0.3f, PitchVariance = 0.3f }; + public static readonly SoundStyle ThrowSound2 = new("CalamityMod/Sounds/Item/LanceofDestiny") { Volume = 0.4f, PitchVariance = 0.3f }; + public static readonly SoundStyle ThrowSound3 = new("CalamityMod/Sounds/Item/SpearofDestinyStealth") { Volume = 0.5f, PitchVariance = 0.3f }; + private bool BigSpear = false; public override void SetDefaults() { Item.width = 52; - Item.damage = 26; + Item.damage = 53; Item.noMelee = true; Item.noUseGraphic = true; - Item.useAnimation = 20; + Item.useAnimation = 43; Item.useStyle = ItemUseStyleID.Swing; - Item.useTime = 20; + Item.useTime = 43; Item.knockBack = 2f; - Item.UseSound = SoundID.Item1; + Item.UseSound = ThrowSound; Item.autoReuse = true; Item.height = 52; Item.value = CalamityGlobalItem.Rarity6BuyPrice; Item.rare = ItemRarityID.LightPurple; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 20f; + Item.shootSpeed = 10f; Item.DamageType = RogueDamageClass.Instance; } + public override float StealthDamageMultiplier => 4f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - int index = 7; - for (int i = -index; i <= index; i += index) + if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike { - int projType = (i != 0 || player.Calamity().StealthStrikeAvailable()) ? type : ModContent.ProjectileType(); - Vector2 perturbedSpeed = velocity.RotatedBy(MathHelper.ToRadians(i)); - int spear = Projectile.NewProjectile(source, position, perturbedSpeed, projType, damage, knockback, player.whoAmI); - if (spear.WithinBounds(Main.maxProjectiles)) - Main.projectile[spear].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable(); + int stealth = Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI); + SoundEngine.PlaySound(ThrowSound3, player.Center); + if (stealth.WithinBounds(Main.maxProjectiles)) + { + Main.projectile[stealth].Calamity().stealthStrike = true; + Main.projectile[stealth].usesLocalNPCImmunity = true; + } + return false; + } + else + { + int projType = BigSpear ? ModContent.ProjectileType() : type; + + if (!BigSpear) + SoundEngine.PlaySound(ThrowSound, player.Center); + else + SoundEngine.PlaySound(ThrowSound2, player.Center); + + if (BigSpear) + { + Projectile.NewProjectile(source, position, velocity, projType, BigSpear ? damage * 3 : damage, knockback, player.whoAmI); + } + int index = 5; + for (int i = -index; i <= index; i += index) + { + if (!BigSpear) + { + Vector2 perturbedSpeed = velocity.RotatedBy(MathHelper.ToRadians(i)); + int spear = Projectile.NewProjectile(source, position, perturbedSpeed, projType, damage, knockback, player.whoAmI); + if (spear.WithinBounds(Main.maxProjectiles)) + Main.projectile[spear].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable(); + } + } + + // Swap between firing small and big spears each throw. + BigSpear = !BigSpear; + return false; } - return false; } public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.HallowedBar, 7). - AddIngredient(ItemID.SoulofLight, 5). - AddIngredient(ItemID.SoulofFright, 5). - AddTile(TileID.MythrilAnvil). - Register(); + AddIngredient(). + AddIngredient(ItemID.HallowedBar, 7). + AddIngredient(ItemID.SoulofFright, 5). + AddIngredient(ItemID.SoulofMight, 5). + AddIngredient(ItemID.SoulofSight, 5). + AddTile(TileID.MythrilAnvil). + Register(); + CreateRecipe(). + AddIngredient(). + AddIngredient(ItemID.HallowedBar, 7). + AddIngredient(ItemID.SoulofFright, 5). + AddIngredient(ItemID.SoulofMight, 5). + AddIngredient(ItemID.SoulofSight, 5). + AddTile(TileID.MythrilAnvil). + Register(); } } } diff --git a/Items/Weapons/Rogue/SpearofDestiny.png b/Items/Weapons/Rogue/SpearofDestiny.png index 3dae694b7d5c0ec68ddc3f8398edc095c56ff2d5..4e198d9042efe2c97e5e50ba2ff043bd1862e95d 100644 GIT binary patch delta 3421 zcmV-j4WjbS2;dr!B!2{FK}|s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H8QizjQ*!*#1IK_z zGIE&{oI+1>he=rgAIw|_>Og^tzkx*dt^=@t=V39dy7Agmed4Me4n_c&j9)VEi6W-I zH-Fy0RQSUJ_{!IA*lS*a$NmQN?lNDHz?O0AjJ2F>g7{-nq5z z^ZHf5%S^zQjJmX%aiAE-^~AI%)Mo+AWq)Rkamu(Csz9aK777^AL8FaEnVpeN3*dfw z0oZuYRvY!FfHJ?)p7%zX&1POvKME-GEp9!(xRNq5Y`M(3Rm>}DUIF{{f&BpF^73!u zM7A{Zy#s(2f2#$sxFWX=TfOJKsCfk*p2+kJt7p&tz%m01 z;KtJblX*q`DB%77R!>5+cYfU5H+oFeyaIm%WA;fUgK)-W00000NkvXXu0mjf!RjEC diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 870ca84e46..fc13deb0cf 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -1116,8 +1116,8 @@ SpearofDestiny: { DisplayName: Spear of Destiny Tooltip: ''' - Throws three spears with the outer two having homing capabilities - Stealth strikes cause all three spears to home in, ignore tiles, and pierce more + Cycles between throwing 3 small homing spears and throwing a single piercing lance + Stealth Strikes throw a high-velocity holy lance that explodes on hit ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson index 9f05f37ec0..c9ddaaf986 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson @@ -325,4 +325,7 @@ WrathwingCinder.DisplayName: Wrathwing Eruption WrathwingFireball.DisplayName: Wrathwing Fireball WrathwingSpear.DisplayName: Wrathwing WulfrumKnifeProj.DisplayName: Knife -WaveSkipperProjectile.DisplayName: Scourge \ No newline at end of file +WaveSkipperProjectile.DisplayName: Scourge +LanceofDestiny.DisplayName: Holy Lance +SpearofDestinyStealth.DisplayName: Empowered Holy Lance +SpearofDestinyStealthExplosion.DisplayName: Holy Blast \ No newline at end of file diff --git a/Projectiles/Rogue/LanceofDestiny.cs b/Projectiles/Rogue/LanceofDestiny.cs new file mode 100644 index 0000000000..aad998b31f --- /dev/null +++ b/Projectiles/Rogue/LanceofDestiny.cs @@ -0,0 +1,120 @@ +using CalamityMod.Particles; +using CalamityMod.Projectiles.Pets; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Mono.Cecil; +using System; +using System.Reflection.Metadata; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class LanceofDestiny : ModProjectile, ILocalizedModType + { + public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/NPCKilled/DevourerSegmentBreak2") { Volume = 0.6f, PitchVariance = 0.3f}; + public new string LocalizationCategory => "Projectiles.Rogue"; + public override string Texture => "CalamityMod/Projectiles/Rogue/LanceofDestiny"; + public bool posthit = false; + public int Time = 0; + public override void SetDefaults() + { + Projectile.width = 14; + Projectile.height = 14; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.penetrate = 6; + Projectile.timeLeft = 900; + Projectile.aiStyle = 0; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 50; + Projectile.tileCollide = false; + Projectile.extraUpdates = 6; + } + + public override void AI() + { + Time++; + Projectile.scale = 1.5f; + Projectile.velocity *= 1.02f; + if (!Projectile.Calamity().stealthStrike) + Projectile.extraUpdates = 1; + + if (Projectile.timeLeft % 5 == 0) + { + float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(10f, 50f, Time, true)); + for (int i = 0; i < 4; i++) + { + float offsetRotationAngle = Projectile.velocity.ToRotation() + Time / 20f; + float radius = (30f + (float)Math.Cos(Time / 13f) * 6f) * radiusFactor; + Vector2 dustPosition = Projectile.Center; + dustPosition += offsetRotationAngle.ToRotationVector2().RotatedBy(i / 5f * MathHelper.TwoPi) * radius; + CritSpark spark = new CritSpark(dustPosition, -Projectile.velocity, Color.PaleGoldenrod, Color.Goldenrod, Main.rand.NextFloat(1.1f, 1.5f), Main.rand.Next(5, 8), 5f); + GeneralParticleHandler.SpawnParticle(spark); + } + } + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; + + bool defaultsonce = true; + if (Projectile.Calamity().stealthStrike) + { + Projectile.aiStyle = 0; + Projectile.extraUpdates = 2; + if (Projectile.ai[0] == 0f) + { + if (defaultsonce) + { + Projectile.penetrate = 10; + Projectile.localNPCHitCooldown = 60; + defaultsonce = false; + } + } + } + } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D tex = ModContent.Request(Texture).Value; + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + return false; + } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + for (int i = 0; i <= 3; i++) + { + Dust dust2 = Main.dust[Dust.NewDust(target.position, Projectile.width, Projectile.height, Main.rand.NextBool(3) ? 130 : 133, Projectile.oldVelocity.X * Main.rand.NextFloat(1.1f, 1.3f), Projectile.oldVelocity.Y * Main.rand.NextFloat(1.1f, 1.3f), 0, default, 1.1f)]; + } + SoundEngine.PlaySound(Hitsound, Projectile.position); + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + if (Projectile.Calamity().stealthStrike && !posthit) + { + posthit = true; + } + Projectile.damage = (int)(Projectile.damage * 0.9f); + if (Projectile.damage < 1) + Projectile.damage = 1; + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) + { + if (targetHitbox.Width > 8 && targetHitbox.Height > 8 && Projectile.Calamity().stealthStrike) + { + targetHitbox.Inflate(-targetHitbox.Width / 8, -targetHitbox.Height / 8); + } + return null; + } + public override void Kill(int timeLeft) + { + for (int i = 0; i <= 9; i++) + { + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, Main.rand.Next(169, 170), Projectile.oldVelocity.X * 0.3f, Projectile.oldVelocity.Y * 0.3f, 0, default, Main.rand.NextFloat(1.2f, 1.6f)); + } + } + } +} diff --git a/Projectiles/Rogue/LanceofDestiny.png b/Projectiles/Rogue/LanceofDestiny.png new file mode 100644 index 0000000000000000000000000000000000000000..72395d8fa78e1f7bad4d5b45d81e57a74e438e58 GIT binary patch literal 3466 zcmV;54R!K~P)f6 zXi@@54ZTQ_E-Enz5K6$103tR-RB%L5k){YTDBysjLy@r}iiH7DvFijGMAUI`6dRUF zWUU$Bym{}eS9UO(Z2>7`&z9wUXbV-Il#&6`Y8GKGQ04S2&F6MJnWNa;Ck|;8QE#r9r;7G||@X{|> z%+C|c55>;RS}qbKr-&IQTvLXPlM{>K&(BTgi^a?^4mXV>;xX8n8Ce|RasXz}{8imI52H3ZN4bfe_i~WlJ|C&UW9+{8AKoW!}eExnGFE2re(F+`iE_46#!l9 z0Z_aBhs|Iw0E)7{bq;-T9=d#9QpDmcXDh4R++0fmpKB>E=%LdZt9g$j;($`3&Zthxi`{{&gM}5&R^+h%b~yM9Zd3AWW9ETgVfL z1(`yIK=_}U_z%PWq}jQaiQ4!P(3V&Nr6C$XejWfQDiI(Fdt@un?|lo#M+5oIi_w{w zo%_#%{(V=tO#a9gB!7-$M?^BX5>d|Vn*3S!?g~$*UQipUPL&zMmg;!4Do9IA%up=Rh? z=qPj=x&RGBx1dpI68aT-2O}^EromdU5o`ssU{5#*j)WJ%$?!5bA1;Eoz?EiTr=n?cd`V|I)p<|3Oju?MT93~aB0<#&j8`F+Cg&D?-VWzQItUA^l>xvD zRIYI4MQ`g1<+DyrL=EogS06Xii({| zv`U^zjmmKqDIK93(F5q|^fLNk`gQs{RV`IdRle#b)i%{Ds;|}NsClUI)k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ted file mode 100644 index b6523b8969b73a7ef89926e72348890f654df88c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 411 zcmV;M0c8G(P))^Dq?7pWyub zMKS=#?W+1F>u|b4ej5@*qoO+i{J{I?y~bJ27xibK0@ZEPQjACn%X5qLXbQLoP_1X( z3|?NHq)CiR%s1a_^4DVXcK|p^qzKP>ZWrwi3{~J~0MO;-Rfpb#a0e`D`tgA)Fj)Y^ zFt7h(8(cC4+yEGw%T#U3-9y!(lT{%t5cdGIKqWi)9T*UE4a0fujS&3O`0U~>8lZ&Q+TL3(lwbQ3Gem9$!FvY?Zm<#}Ec+=j2zJD#E z?Znpc*y;yQA#Gnk*<}DICarO@0#@cwepvw&lh!y{0V{JTzpMa?No$;}fR#Cv-*gnP zjy+9t0~e*H00000NkvXXu0mjf F008V!uw(!L diff --git a/Projectiles/Rogue/SpearofDestinyProjectile.cs b/Projectiles/Rogue/SpearofDestinyProjectile.cs index 3b4b9b5a5d..3ee2cce27e 100644 --- a/Projectiles/Rogue/SpearofDestinyProjectile.cs +++ b/Projectiles/Rogue/SpearofDestinyProjectile.cs @@ -1,6 +1,8 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -10,14 +12,11 @@ namespace CalamityMod.Projectiles.Rogue { public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Items/Weapons/Rogue/SpearofDestiny"; + public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/WulfrumKnifeTileHit2") { PitchVariance = 0.3f, Volume = 0.5f }; + public int framesInAir = 0; private bool initialized = false; - - public override void SetStaticDefaults() - { - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 5; - ProjectileID.Sets.TrailingMode[Projectile.type] = 0; - } + public int SparkChance = 8; public override void SetDefaults() { @@ -26,16 +25,23 @@ namespace CalamityMod.Projectiles.Rogue Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.penetrate = 2; - Projectile.aiStyle = ProjAIStyleID.StickProjectile; Projectile.timeLeft = 600; - AIType = ProjectileID.BoneJavelin; + AIType = 0; Projectile.DamageType = RogueDamageClass.Instance; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 10; + Projectile.extraUpdates = 2; } public override void AI() { + framesInAir++; + if (framesInAir > 90 && !Projectile.Calamity().stealthStrike) + { + Projectile.velocity.X *= 0.998f; + Projectile.velocity.Y += 0.3f; + } + if (!initialized) { if (Projectile.Calamity().stealthStrike) @@ -45,14 +51,26 @@ namespace CalamityMod.Projectiles.Rogue } initialized = true; } - if (Main.rand.NextBool(4)) + if (Main.rand.NextBool(SparkChance)) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 246, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); + Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-3, default) * 0.1f - Projectile.velocity / 8f; + Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default); + SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(12, 15), Main.rand.NextFloat(0.7f, 1f), Color.PaleGoldenrod); + GeneralParticleHandler.SpawnParticle(spark); + } + if (Main.rand.NextBool(SparkChance)) + { + Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(3, default) * 0.1f - Projectile.velocity / 8f; + Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default); + SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.7f, 1f), Color.PaleGoldenrod); + GeneralParticleHandler.SpawnParticle(spark2); + } + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; Vector2 center = Projectile.Center; - float maxDistance = 300f; + float maxDistance = 200f; bool homeIn = false; for (int i = 0; i < Main.maxNPCs; i++) @@ -73,37 +91,31 @@ namespace CalamityMod.Projectiles.Rogue if (homeIn) { - Projectile.extraUpdates = 2; + SparkChance = 16; + Projectile.extraUpdates = 3; Vector2 moveDirection = Projectile.SafeDirectionTo(center, Vector2.UnitY); Projectile.velocity = (Projectile.velocity * 20f + moveDirection * 12f) / (21f); } } - public override bool PreDraw(ref Color lightColor) + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); - return false; + for (int i = 0; i <= 2; i++) + { + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 133, Projectile.oldVelocity.X * Main.rand.NextFloat(1.1f, 1.3f), Projectile.oldVelocity.Y * Main.rand.NextFloat(1.1f, 1.3f)); + } + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + Projectile.damage = (int)(Projectile.damage * 0.8f); + if (Projectile.damage < 1) + Projectile.damage = 1; } - public override void Kill(int timeLeft) { - for (int i = 0; i <= 10; i++) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 246, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); - } + SoundEngine.PlaySound(Hitsound, Projectile.position); } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Ichor, 120); - - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Ichor, 120); - - public override void PostDraw(Color lightColor) - { - if (Projectile.Calamity().stealthStrike) - { - Texture2D tex = ModContent.Request("CalamityMod/Projectiles/Rogue/SpearofDestinyGlow").Value; - Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Color.White, Projectile.rotation, tex.Size() / 2, Projectile.scale, SpriteEffects.None, 0); - } - } + //public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Ichor, 120); } } diff --git a/Projectiles/Rogue/SpearofDestinyStealth.cs b/Projectiles/Rogue/SpearofDestinyStealth.cs new file mode 100644 index 0000000000..b4c6c16a4a --- /dev/null +++ b/Projectiles/Rogue/SpearofDestinyStealth.cs @@ -0,0 +1,90 @@ +using CalamityMod.Particles; +using CalamityMod.Projectiles.Melee; +using CalamityMod.Projectiles.Pets; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Mono.Cecil; +using System; +using System.Reflection.Metadata; +using Terraria; +using Terraria.Audio; +using Terraria.Graphics.Shaders; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class SpearofDestinyStealth : ModProjectile, ILocalizedModType + { + internal PrimitiveTrail TrailDrawer; + public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/BlazingCoreParry") { Volume = 0.7f, PitchVariance = 0.3f}; + public new string LocalizationCategory => "Projectiles.Rogue"; + public override string Texture => "CalamityMod/Projectiles/Rogue/LanceofDestiny"; + public bool posthit = false; + public int Time = 0; + public ref float Timer => ref Projectile.ai[0]; + public override void SetDefaults() + { + Projectile.width = 14; + Projectile.height = 14; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.penetrate = 1; + Projectile.timeLeft = 900; + Projectile.aiStyle = 0; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 50; + Projectile.tileCollide = false; + Projectile.extraUpdates = 3; + } + + public override void AI() + { + Timer++; + Time++; + Projectile.scale = 1.5f; + Projectile.velocity *= 1.02f; + if (!Projectile.Calamity().stealthStrike) + Projectile.extraUpdates = 1; + + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; + + float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(10f, 50f, Time, true)); + for (int i = 0; i < 10; i++) + { + float offsetRotationAngle = Projectile.velocity.ToRotation() + Time / 20f; + float radius = (50f + (float)Math.Cos(Time / 3f) * 12f) * radiusFactor; + Vector2 dustPosition = Projectile.Center; + dustPosition += offsetRotationAngle.ToRotationVector2().RotatedBy(i / 5f * MathHelper.TwoPi) * radius; + Dust dust = Dust.NewDustPerfect(dustPosition, Main.rand.NextBool(2) ? 279 : 159); + dust.noGravity = true; + dust.velocity = Projectile.velocity * 0.5f; + dust.scale = 1.3f; + } + } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + SoundEngine.PlaySound(Hitsound, Projectile.position); + posthit = true; + float numberOfDusts = 35f; + float rotFactor = 360f / numberOfDusts; + for (int i = 0; i < numberOfDusts; i++) + { + float rot = MathHelper.ToRadians(i * rotFactor); + Vector2 offset = new Vector2(18f, 0).RotatedBy(rot); + Vector2 velOffset = new Vector2(9f, 0).RotatedBy(rot); + SparkParticle spark = new SparkParticle(Projectile.position + offset, new Vector2(velOffset.X, velOffset.Y) * Main.rand.NextFloat( 1.5f, 2.3f), false, Main.rand.Next(23, 28), 1.9f, Main.rand.NextBool(5) ? Color.Gold : Color.PaleGoldenrod); + GeneralParticleHandler.SpawnParticle(spark); + } + for (int i = 0; i <= 17; i++) + { + Dust dust2 = Main.dust[Dust.NewDust(target.position, Projectile.width, Projectile.height, 130, 0, 0, 0, default, 1.5f)]; + dust2.velocity.Y -= Main.rand.NextFloat(2.5f, 10.5f); + dust2.velocity.X += Main.rand.NextFloat(-3f, 3f); + } + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 0f, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack * 2, Projectile.owner, 0f); + } + } +} diff --git a/Projectiles/Rogue/SpearofDestinyStealthExplosion.cs b/Projectiles/Rogue/SpearofDestinyStealthExplosion.cs new file mode 100644 index 0000000000..c1775b9709 --- /dev/null +++ b/Projectiles/Rogue/SpearofDestinyStealthExplosion.cs @@ -0,0 +1,35 @@ +using System; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Melee +{ + public class SpearofDestinyStealthExplosion : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Rogue"; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public Player Owner => Main.player[Projectile.owner]; + private static float ExplosionRadius = 148f; + + public override void SetDefaults() + { + //These shouldn't matter because its circular + Projectile.width = 148; + Projectile.height = 148; + Projectile.friendly = true; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; + Projectile.penetrate = -1; + Projectile.timeLeft = 2; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 10; + } + + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, ExplosionRadius, targetHitbox); + } +} diff --git a/Sounds/Item/LanceofDestiny.ogg b/Sounds/Item/LanceofDestiny.ogg new file mode 100644 index 0000000000000000000000000000000000000000..2108fb4a18ba1f6b8538b13f9b2dd1b6ca28a624 GIT binary patch literal 17427 zcmaj{1z1(V_b>`?x*L?1?rxASrQy)s-6<^yNcW*bx;v#&x{+>_77#^R>f7k=AK!cL z^WOc;8D`I#S+i!;oZZZ9-Jhypf;#@wMUbb$|PL7sN9*l@!KWy;lXlm!|W^CqW>SQ6}=)%MG46IXk zw(@vm>SigTXzFFfE5OFj$HvLQf%Vkd)(LFwW$ET_>+B@LK@3)zJ3G3Vdf1vdSpLJ} z{)C3p*4^2W2!u*NH00DZM3ijJ-JIP)v=pyQ9W5!OwIKK)P(w~bQAPw}>uyisY()Vv zwRNK4foYnUQLk?VU=va-T%W~1nbI~h6H$6=M zV}S0*F#V-4!>ce;!uS74*8!VXPwDT}DPVv+YQfZP#sVthf-S)UxX|}iuzk-tNcIh}bnA&8l|n^%sXHTx-2Ba6PRJU#2L1RW-cwn14kj%EzxWlU$fPs*WZ z7XK^x;ASCJm(PH8MElv8gG8oaJKLE|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`RnzOdC<~=Id zYe|+Ga_Zwf6XpMY_=qod30GznI%OKXarmX!X>ZkQ<-~y#kO;8d?ao@cS9Exn-#R4l z_FaJWq&9Wd`aY8vub1ax0Wayp zd&W+Zx*@d>6e<&seHJ51ZA!%LPJunYrMTKz(NX5XJh91}}C@*8*PM#T;i zweD+KA}7`Gu^+ptu<%Vce8BY2EMQ>+Y5u1kn)V~EO*GaaBY7J*mj@3YORVZ&<1t}! zW)W7;Ul)noac!h->?C{1d+<&$gdwfWiLQI%Rgrep1W?f{OgFq8k0+CHYINW%rJC^Q YMftb$@orWudfjVFjZrehK_tNc0csH=Q~&?~ literal 0 HcmV?d00001 diff --git a/Sounds/Item/SpearofDestinyStealth.ogg b/Sounds/Item/SpearofDestinyStealth.ogg new file mode 100644 index 0000000000000000000000000000000000000000..a255e4c74b8f2954a92f55c021a50735a6968d7f GIT binary patch literal 17883 zcmagF1y~+IvnDzOcMq&lS?%wTh&$7Gm4g$s=zDYKNq#yzYH@1tOx`#gomSxiM8uX5rlvHe;#=c@i+4Y zLh+^M|GHjkzEGrfr} zG>~F%Y~$!+XyRh*U?yPi#KDI8QfBP{mU)=FxLP|p2(aLRMZzj-(yD3#^46vS*s|>}G9ZXa0|o>kB7VYgb2mERd=uttKZfpknQ6OX_Grs$y*I zK*|OI{cl{fBBB})037%fs~qWo|8%T60D!$RqM$`du#l!LO3b7AkeVp4HF4nj3(?HcT2Q$97bhpul@n zS`fo~Ow%|mg2>o7D~d8`JV*-?>I=ozKFo!nW2fmy|53XElza- zS^XOpDc}zd6OfFCa(@&?)sV@=1U&#OCG-3slmEm ze6_y>>n;cD-vk@uhWzKg_1(I8x&IEG6avV7!;`#2n@^6P|D7ivGAN|-6=3!zx0a=5{9Qr2NxU6!Eon#726EG;(_JT} zk_y~dPX1t6$m=!?k8v|p4MOI9fK%%kEoxfSp)X2Qk)bX6CsE*{lA6T|!{GfDl8{uF zQQ8tvD*orf{iK*eCz|;m_tY;!WeiI2o?&BDWfxFaQ`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Y1q^v&-EnkQ>EC`-`Q%#A`e7Rb_Ro}L0JnuNiZXYY zE57Y+j_=GzMsyXj-C(iV(bOoD1*oeD?Zj&5jF@-QKMtTaEei>z9Tt^k#050~;?NEU z9I5+rnCDyzAIxI-o_K#P^_d`WgO)k6o#eP zTZPm@6~eDf2WDMBS-7735WNiLr}(_)(vYFiE#vJl|0v5GLS9lIwg0Kfw2JP^8Rt(-0^NztjKIg>r9X`=)b9Zzd=U|>{lj(PuC8r$ z_mR*|^t&BcA7OSldUIxzxeg(@0R0g4sPo0zL#jT2 zv_?PQ4F&Mu@yn}OmNbyvJ-KB2_H!pVWo?Mwa?`5_NnxO77oY6(*Lfe2=+_xy`-28V zWwdI!)FM-wE_?1jX~u~q51Em{dT5>$BN!8AzwKeVPK-BxSj)y_G_XvM)p^O>nZ{&~ zGh`dUb&VavrN2)DUo8#x(L>?2;OR*2T>`>tDbmPi;8aR1x zviYe2wa?7Lvqsd{GKtxBR_*N4EB-@R!%Qzb{ qrJ$zBzJLGTQj3WR+~2MuBR@W$Gk1LXf3{ Date: Mon, 4 Sep 2023 01:38:04 +0100 Subject: [PATCH 209/258] Made psa/psc equipblock more player friendly --- Items/Accessories/ProfanedSoulArtifact.cs | 4 ++-- Items/Accessories/ProfanedSoulCrystal.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs index 988d716503..bbd8401e12 100644 --- a/Items/Accessories/ProfanedSoulArtifact.cs +++ b/Items/Accessories/ProfanedSoulArtifact.cs @@ -153,9 +153,9 @@ namespace CalamityMod.Items.Accessories Item.Calamity().donorItem = true; } - public override bool CanEquipAccessory(Player player, int slot, bool modded) + public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player) { - return !player.Calamity().pSoulArtifact; + return incomingItem.type != ModContent.ItemType(); } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/ProfanedSoulCrystal.cs b/Items/Accessories/ProfanedSoulCrystal.cs index be076ef5c6..33c9795789 100644 --- a/Items/Accessories/ProfanedSoulCrystal.cs +++ b/Items/Accessories/ProfanedSoulCrystal.cs @@ -72,9 +72,9 @@ namespace CalamityMod.Items.Accessories Item.Calamity().devItem = true; } - public override bool CanEquipAccessory(Player player, int slot, bool modded) + public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player) { - return !player.Calamity().pSoulArtifact; + return incomingItem.type != ModContent.ItemType(); } public override void ModifyTooltips(List tooltips) From 828e0759cedcb92777e45eda8c3c879586a31ab5 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Mon, 4 Sep 2023 01:39:04 +0100 Subject: [PATCH 210/258] Fixed psc being able to be sold pre-draedon --- CalPlayer/CalamityPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 98011afb25..0ce588008d 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3579,7 +3579,7 @@ namespace CalamityMod.CalPlayer public override bool CanSellItem(NPC vendor, Item[] shopInventory, Item item) { if (item.type == ModContent.ItemType()) - return DownedBossSystem.downedCalamitas; //no easy moneycoins for post doggo/yhar + return DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs; //no easy moneycoins for post doggo/yhar return base.CanSellItem(vendor, shopInventory, item); } From 223cc32db7e2f04d07867af46cbd1f2830cb2707 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sun, 3 Sep 2023 19:20:59 -0600 Subject: [PATCH 211/258] A song of ice... Hypothermia now inflicts frostbite and not frostburn, glacial state duration increased (also nerfed the post-Plantera gloves which were really fucking broken in general) --- Items/Accessories/GloveOfRecklessness.cs | 3 ++- Items/Accessories/GloveofPrecision.cs | 4 ++-- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 4 ++-- .../Mods.CalamityMod.Items.Weapons.Summon.hjson | 2 +- Projectiles/Rogue/HypothermiaChunk.cs | 12 ++++++------ Projectiles/Rogue/HypothermiaShard.cs | 8 ++++---- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Items/Accessories/GloveOfRecklessness.cs b/Items/Accessories/GloveOfRecklessness.cs index ba7c5937de..6cc70d1a92 100644 --- a/Items/Accessories/GloveOfRecklessness.cs +++ b/Items/Accessories/GloveOfRecklessness.cs @@ -24,7 +24,8 @@ namespace CalamityMod.Items.Accessories modPlayer.gloveOfRecklessness = true; modPlayer.stealthGenStandstill += 0.15f; modPlayer.stealthGenMoving += 0.15f; - player.GetDamage() -= 0.13f; + player.GetDamage() -= 0.10f; + player.GetCritChance() -= 15; player.GetAttackSpeed() += 0.15f; } } diff --git a/Items/Accessories/GloveofPrecision.cs b/Items/Accessories/GloveofPrecision.cs index 3c5889b1cb..47c01a918a 100644 --- a/Items/Accessories/GloveofPrecision.cs +++ b/Items/Accessories/GloveofPrecision.cs @@ -22,9 +22,9 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.gloveOfPrecision = true; - player.GetDamage() += 0.13f; + player.GetDamage() += 0.10f; player.GetCritChance() += 15; - modPlayer.rogueVelocity += 0.25f; + modPlayer.rogueVelocity += 0.15f; player.GetAttackSpeed() -= 0.15f; } } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 6e7d3bf231..134e484490 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -817,14 +817,14 @@ GladiatorsLocket: { GloveOfPrecision: { DisplayName: Glove of Precision - Tooltip: Decreases rogue attack speed by 15% but increases damage by 13%, crit by 15% and velocity by 25% + Tooltip: Decreases rogue attack speed by 15%, but increases damage by 10%, crit by 15% and velocity by 15% } GloveOfRecklessness: { DisplayName: Glove of Recklessness Tooltip: ''' - Increases rogue attack speed by 15% but decreases damage by 13% + Increases rogue attack speed by 15%, but decreases damage by 10% and crit by 15% 15% increased stealth regeneration Adds inaccuracy to rogue weapons ''' diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 5516600bdc..b7a6ed762f 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -794,4 +794,4 @@ YharonsKindleStaff: { Summons a fiery draconid to fight for you Requires 5 minion slots to use ''' -} +} \ No newline at end of file diff --git a/Projectiles/Rogue/HypothermiaChunk.cs b/Projectiles/Rogue/HypothermiaChunk.cs index b91060d034..9e5b96f6a9 100644 --- a/Projectiles/Rogue/HypothermiaChunk.cs +++ b/Projectiles/Rogue/HypothermiaChunk.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Rogue if (Main.rand.NextBool(10)) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 191, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f, 0, default, 0.8f); + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 318, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f, 0, default, 0.8f); } } @@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Rogue { for (int i = 0; i <= 3; i++) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 191, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f, 0, default, 0.8f); + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 318, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f, 0, default, 0.8f); } if (Projectile.owner == Main.myPlayer) { @@ -74,14 +74,14 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(BuffID.Frostburn, 300); - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(BuffID.Frostburn2, 300); + target.AddBuff(ModContent.BuffType(), 150); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - target.AddBuff(BuffID.Frostburn, 300); - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(BuffID.Frostburn2, 300); + target.AddBuff(ModContent.BuffType(), 150); } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Rogue/HypothermiaShard.cs b/Projectiles/Rogue/HypothermiaShard.cs index 04ad13358c..c875c7c484 100644 --- a/Projectiles/Rogue/HypothermiaShard.cs +++ b/Projectiles/Rogue/HypothermiaShard.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Rogue counter += 0.25f; if (Main.rand.NextBool(10)) { - int num300 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 191, 0f, 0f, 0, default, 0.8f); + int num300 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 318, 0f, 0f, 0, default, 0.8f); Main.dust[num300].noGravity = true; Main.dust[num300].velocity *= 0.2f; } @@ -66,13 +66,13 @@ namespace CalamityMod.Projectiles.Rogue { for (int k = 0; k < 3; k++) { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 191, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f, 0, default, 0.8f); + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 318, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f, 0, default, 0.8f); } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Frostburn, 120); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Frostburn2, 120); - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Frostburn, 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Frostburn2, 120); public override bool PreDraw(ref Color lightColor) { From c14b12ef93d995918b4aa8422bb8d301c309e1db Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 3 Sep 2023 23:29:12 -0400 Subject: [PATCH 212/258] Plague Tainted SMG gets cured --- Balancing/BalancingChangesManager.cs | 5 +++++ Items/Weapons/Ranged/PlagueTaintedSMG.cs | 6 +++--- Projectiles/Ranged/PlagueTaintedDrone.cs | 1 + Projectiles/Ranged/PlagueTaintedProjectile.cs | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index e5065799cd..8bf1835047 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -146,6 +146,11 @@ namespace CalamityMod.Balancing NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.DukeFishron, Do(new ProjectileResistBalancingRule(1.35f, ProjectileType(), ProjectileType())))); #endregion + #region Empress of Light + // 30% resist to Plague Tainted SMG's drones. + NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.HallowBoss, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType())))); + #endregion + #region Lunatic Cultist // 25% resist to Resurrection Butterfly. NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.CultistBoss, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType(), ProjectileType())))); diff --git a/Items/Weapons/Ranged/PlagueTaintedSMG.cs b/Items/Weapons/Ranged/PlagueTaintedSMG.cs index 86bb183c37..a02e1e870c 100644 --- a/Items/Weapons/Ranged/PlagueTaintedSMG.cs +++ b/Items/Weapons/Ranged/PlagueTaintedSMG.cs @@ -24,11 +24,11 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 85; + Item.damage = 76; Item.DamageType = DamageClass.Ranged; Item.width = 98; Item.height = 50; - Item.useTime = Item.useAnimation = 10; + Item.useTime = Item.useAnimation = 12; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Ranged return base.CanUseItem(player); } - public override float UseSpeedMultiplier(Player player) => player.altFunctionUse == 2 ? (1f / 6f) : 1f; + public override float UseSpeedMultiplier(Player player) => player.altFunctionUse == 2 ? (1f / 5f) : 1f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Projectiles/Ranged/PlagueTaintedDrone.cs b/Projectiles/Ranged/PlagueTaintedDrone.cs index 53ef63d162..2b6a03ec21 100644 --- a/Projectiles/Ranged/PlagueTaintedDrone.cs +++ b/Projectiles/Ranged/PlagueTaintedDrone.cs @@ -131,6 +131,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.penetrate = -1; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 10; + Projectile.damage = (int)(Projectile.damage * 0.4f); Projectile.Damage(); SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); for (int num621 = 0; num621 < 20; num621++) diff --git a/Projectiles/Ranged/PlagueTaintedProjectile.cs b/Projectiles/Ranged/PlagueTaintedProjectile.cs index 4fa554938d..8f07af011c 100644 --- a/Projectiles/Ranged/PlagueTaintedProjectile.cs +++ b/Projectiles/Ranged/PlagueTaintedProjectile.cs @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Ranged public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { float maxDamageScalingDistance = 800f; - float maxDamageMultiplier = 1.5f; + float maxDamageMultiplier = 1.4f; float distanceFromOwner = target.Distance(Main.player[Projectile.owner].Center); if (distanceFromOwner < maxDamageScalingDistance) { @@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 60); // Spawn a drone on crit, with a cooldown...I guess. if (Projectile.owner == Main.myPlayer) From 616f0822c06bcc75655d3d49a948173d856777d5 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 4 Sep 2023 01:14:01 -0400 Subject: [PATCH 213/258] Urchin Flail balance --- Items/Weapons/Melee/UrchinFlail.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Melee/UrchinFlail.cs b/Items/Weapons/Melee/UrchinFlail.cs index a48cf899bd..8cedafc9d1 100644 --- a/Items/Weapons/Melee/UrchinFlail.cs +++ b/Items/Weapons/Melee/UrchinFlail.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetDefaults() { - Item.damage = 33; + Item.damage = 20; Item.DamageType = DamageClass.MeleeNoSpeed; Item.width = 44; Item.height = 36; @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.channel = true; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 12f; + Item.shootSpeed = 16f; } } } From 82fc8d5fb0a467600c31094a6eee031f45d19017 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 4 Sep 2023 01:55:17 -0400 Subject: [PATCH 214/258] Flak Toxicannon as well because why not --- Items/Weapons/Ranged/FlakToxicannon.cs | 6 +++--- .../Mods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- Projectiles/Ranged/ToxicannonDrop.cs | 2 +- Projectiles/Ranged/ToxicannonShot.cs | 13 +++++-------- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/Items/Weapons/Ranged/FlakToxicannon.cs b/Items/Weapons/Ranged/FlakToxicannon.cs index c7d8a65e26..d98eba6f8e 100644 --- a/Items/Weapons/Ranged/FlakToxicannon.cs +++ b/Items/Weapons/Ranged/FlakToxicannon.cs @@ -15,11 +15,11 @@ namespace CalamityMod.Items.Weapons.Ranged } public override void SetDefaults() { - Item.damage = 60; + Item.damage = 51; Item.DamageType = DamageClass.Ranged; Item.width = 88; Item.height = 28; - Item.useTime = Item.useAnimation = 8; + Item.useTime = Item.useAnimation = 11; Item.useStyle = ItemUseStyleID.Shoot; Item.useTurn = false; Item.noMelee = true; @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { float angle = velocity.ToRotation() + MathHelper.PiOver2; - if (angle <= -MathHelper.PiOver4 || angle >= MathHelper.PiOver4) + if (angle <= -(MathHelper.Pi / 3) || angle >= (MathHelper.Pi / 3)) return false; Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 733f68a8d2..97619fa32d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -471,7 +471,7 @@ FlakToxicannon: { Tooltip: ''' Fires angled shots in the direction of the cursor - Can only be shot in a cone direction above the player + Can only be shot in a wide cone above the player 'High IQ required' ''' } diff --git a/Projectiles/Ranged/ToxicannonDrop.cs b/Projectiles/Ranged/ToxicannonDrop.cs index a03fe4d0d9..c556ecd097 100644 --- a/Projectiles/Ranged/ToxicannonDrop.cs +++ b/Projectiles/Ranged/ToxicannonDrop.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.friendly = true; Projectile.tileCollide = true; Projectile.ignoreWater = false; - Projectile.timeLeft = 420; + Projectile.timeLeft = 300; Projectile.DamageType = DamageClass.Ranged; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 17; diff --git a/Projectiles/Ranged/ToxicannonShot.cs b/Projectiles/Ranged/ToxicannonShot.cs index 8b742e3c3b..a7a171ea4d 100644 --- a/Projectiles/Ranged/ToxicannonShot.cs +++ b/Projectiles/Ranged/ToxicannonShot.cs @@ -71,16 +71,13 @@ namespace CalamityMod.Projectiles.Ranged Main.dust[idx].scale = 3f; Main.dust[idx].noGravity = true; } - if (Main.rand.NextBool(3)) + float count = Main.rand.Next(1, 2 + 1); + for (int i = 0; i < count; i++) { - int count = Main.rand.Next(1, 3 + 1); - for (int i = 0; i < count; i++) - { - float angle = MathHelper.TwoPi * i / count; - angle += Main.rand.NextFloat(0.1f, 0.35f) * Main.rand.NextBool(2).ToDirectionInt(); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, angle.ToRotationVector2() * Main.rand.NextFloat(4f, 16f), + float angle = MathHelper.TwoPi * i / count; + angle += Main.rand.NextFloat(0.1f, 0.35f) * Main.rand.NextBool(2).ToDirectionInt(); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, angle.ToRotationVector2() * Main.rand.NextFloat(4f, 16f), ModContent.ProjectileType(), Projectile.damage, 2.5f, Projectile.owner); - } } } From cde16a7b74e4ea28b2cf5ff38f4ae0c6f907a32e Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 4 Sep 2023 14:25:45 -0600 Subject: [PATCH 215/258] Fixed Seargeant United being banned from the parry buff --- Items/CalamityGlobalItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 5e8f9b9c47..c1131e861a 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -625,7 +625,7 @@ namespace CalamityMod.Items if (player.HasBuff(BuffID.ParryDamageBuff)) { - if (item.type != ItemID.DD2SquireDemonSword) + if (item.type != ItemID.DD2SquireDemonSword && item.type != ItemID.BouncingShield) { player.parryDamageBuff = false; player.ClearBuff(BuffID.ParryDamageBuff); From 8c433aa9597e9ac87146ad4cb87527c37c8ff336 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 4 Sep 2023 16:36:44 -0600 Subject: [PATCH 216/258] If someone could make it so that a Plague Nanodroid spawns instead of just doing nothing it would be appreciated, but for now I'm taking the easy way out of patching getting Plague Cannisters pre-boss. --- ILEditing/BalancingILChanges.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ILEditing/BalancingILChanges.cs b/ILEditing/BalancingILChanges.cs index af2cb8924a..0cb4cf6c4c 100644 --- a/ILEditing/BalancingILChanges.cs +++ b/ILEditing/BalancingILChanges.cs @@ -1,6 +1,8 @@ using System; using CalamityMod.Balancing; using CalamityMod.Items.Accessories; +using CalamityMod.Items.Placeables.FurniturePlagued; +using CalamityMod.NPCs.DraedonLabThings; using Mono.Cecil.Cil; using MonoMod.Cil; using Terraria; @@ -11,7 +13,7 @@ namespace CalamityMod.ILEditing { public partial class ILChanges { - #region Rod of Harmony Changes + #region Shimmer Changes private static bool AdjustShimmerRequirements(On_Item.orig_CanShimmer orig, Item item) { @@ -20,6 +22,12 @@ namespace CalamityMod.ILEditing { return DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs; } + + if (item.type == ModContent.ItemType()) + { + return DownedBossSystem.downedPlaguebringer; + } + return orig(item); } From bf040531290a57b0b55346d7d0412e27e5d69be5 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 4 Sep 2023 17:13:02 -0600 Subject: [PATCH 217/258] Downed Golem instead of PBG and fixed partial stacks not giving anything and not being able to stack so that it shimmered when enough bricks were present. --- ILEditing/BalancingILChanges.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILEditing/BalancingILChanges.cs b/ILEditing/BalancingILChanges.cs index 0cb4cf6c4c..b579b5e0ff 100644 --- a/ILEditing/BalancingILChanges.cs +++ b/ILEditing/BalancingILChanges.cs @@ -25,7 +25,7 @@ namespace CalamityMod.ILEditing if (item.type == ModContent.ItemType()) { - return DownedBossSystem.downedPlaguebringer; + return NPC.downedGolemBoss ? orig(item) : false; } return orig(item); From 87a7fc21a9aa73c762a92873ba9cc8d9eb299fab Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 4 Sep 2023 18:27:06 -0600 Subject: [PATCH 218/258] ... and fire Nerfed Penumbra's dmg to 830 from 1008 In return it gets: Increased Velocity from 8f to 9f (Higher,) Increased Lifetime from 150 to 300 (-much higher) Umbraphile armor setbonus! (Unbounded fire) --- Items/Weapons/Rogue/Penumbra.cs | 6 +++--- .../en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson | 2 +- Projectiles/Rogue/PenumbraBomb.cs | 9 ++++++++- Projectiles/Rogue/PenumbraSoul.cs | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Items/Weapons/Rogue/Penumbra.cs b/Items/Weapons/Rogue/Penumbra.cs index 6a80c3be80..b147956ca4 100644 --- a/Items/Weapons/Rogue/Penumbra.cs +++ b/Items/Weapons/Rogue/Penumbra.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Penumbra : RogueWeapon { - public static float ShootSpeed = 8f; + public static float ShootSpeed = 9f; public override void SetDefaults() { Item.width = 46; @@ -24,12 +24,12 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item103; Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; - Item.damage = 1008; + Item.damage = 830; Item.useAnimation = 40; Item.useTime = 40; Item.knockBack = 8f; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = ShootSpeed; + Item.shootSpeed = 9f; Item.rare = ModContent.RarityType(); Item.DamageType = RogueDamageClass.Instance; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index fc13deb0cf..c1f17982b3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -839,7 +839,7 @@ Penumbra: { DisplayName: Penumbra Tooltip: ''' - Throws a shadow bomb that explodes into homing souls + Throws a shadow bomb that explodes into homing souls and flames Stealth strikes make the bomb manifest on the cursor and explode into more souls ''' } diff --git a/Projectiles/Rogue/PenumbraBomb.cs b/Projectiles/Rogue/PenumbraBomb.cs index 767b6de5c6..eb3fe21ea3 100644 --- a/Projectiles/Rogue/PenumbraBomb.cs +++ b/Projectiles/Rogue/PenumbraBomb.cs @@ -3,6 +3,8 @@ using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; using Terraria.Audio; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; namespace CalamityMod.Projectiles.Rogue { @@ -23,7 +25,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.height = 32; Projectile.friendly = true; Projectile.tileCollide = false; - Projectile.timeLeft = 150; + Projectile.timeLeft = 300; Projectile.extraUpdates = 2; Projectile.DamageType = RogueDamageClass.Instance; Projectile.ignoreWater = true; @@ -72,6 +74,11 @@ namespace CalamityMod.Projectiles.Rogue } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(BuffID.Daybreak, 240); + target.AddBuff(ModContent.BuffType(), 240); + } public override void Kill(int timeLeft) { //Dark soul projectiles diff --git a/Projectiles/Rogue/PenumbraSoul.cs b/Projectiles/Rogue/PenumbraSoul.cs index 4174bf0a10..86e6897a8c 100644 --- a/Projectiles/Rogue/PenumbraSoul.cs +++ b/Projectiles/Rogue/PenumbraSoul.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Rogue private void HomingAI() { - CalamityUtils.HomeInOnNPC(Projectile, true, 200f, Penumbra.ShootSpeed * 1.5f, 35f); + CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 12f, 35f); } public override bool PreDraw(ref Color lightColor) From b5926d1122864ad195e1f2c545112e820d141e1a Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 4 Sep 2023 21:04:46 -0400 Subject: [PATCH 219/258] Cosmic Shiv no longer takes 8 minutes to kill Yharon God I spent over an hour on this one weapon --- Items/Weapons/Melee/CosmicShiv.cs | 2 +- Projectiles/Melee/CosmicShivBall.cs | 14 ++++---------- Projectiles/Melee/CosmicShivBlade.cs | 12 +++--------- Projectiles/Melee/GalaxyStar.cs | 1 + Projectiles/Melee/Shortswords/CosmicShivProj.cs | 2 +- 5 files changed, 10 insertions(+), 21 deletions(-) diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index af799c26d7..3bc4eaa726 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTime = 18; Item.width = 44; Item.height = 44; - Item.damage = 218; + Item.damage = 109; Item.knockBack = 9f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Projectiles/Melee/CosmicShivBall.cs b/Projectiles/Melee/CosmicShivBall.cs index ebd0317d35..be8cae2632 100644 --- a/Projectiles/Melee/CosmicShivBall.cs +++ b/Projectiles/Melee/CosmicShivBall.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Projectiles.Melee public bool initialized = false; public float startingVelocityY = 0f; public float randomAngleDelta = 0f; - public const float explosionDamageMultiplier = 1.8f; + public const float explosionDamageMultiplier = 1.5f; public override void SetDefaults() { Projectile.width = 12; @@ -47,7 +47,6 @@ namespace CalamityMod.Projectiles.Melee Main.dust[dustID].noGravity = true; Main.dust[dustID].velocity *= 0f; } - Projectile.velocity.Y *= 0.965f; } if (Projectile.localAI[0] % 30 == 0) // every 0.5 seconds { @@ -60,21 +59,16 @@ namespace CalamityMod.Projectiles.Melee Vector2 idealVelocity = Projectile.SafeDirectionTo(target.Center, Vector2.UnitX) * homingSpeed; Projectile.velocity = (Projectile.velocity * (inertia - 1f) + idealVelocity) / inertia; } - else - { - Projectile.ai[0]++; - Projectile.velocity.Y = startingVelocityY + (float)(Math.Cos(Projectile.ai[0] / 12D + randomAngleDelta) * 7D); - } } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { // for spawning the side beams - for (int i = 0; i < 3; i++) + for (int i = 0; i < 2; i++) { int directionSign = Main.rand.NextBool(2).ToDirectionInt(); Vector2 spawnPos = new Vector2(target.Center.X + directionSign * 650, Projectile.Center.Y + Main.rand.Next(-500, 501)); Vector2 velocity = Vector2.Normalize(target.Center - spawnPos) * 30f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), spawnPos.X, spawnPos.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack * 0.1f, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), spawnPos.X, spawnPos.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), (int)(Projectile.damage * 0.8f), Projectile.knockBack * 0.1f, Projectile.owner); } int starMax = Main.rand.Next(6, 11); // 6 to 10 stars for (int i = -starMax / 2; i < starMax / 2; i++) @@ -82,7 +76,7 @@ namespace CalamityMod.Projectiles.Melee int ySpawnAdditive = Main.rand.Next(-40, 41); Vector2 toSpawn = target.Center - new Vector2(0f, 800f + ySpawnAdditive).RotatedBy(MathHelper.ToRadians(i * 11f / starMax)); Vector2 toTarget = Vector2.Normalize(target.Center - toSpawn) * 35f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), toSpawn, toTarget, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack * 0.5f, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), toSpawn, toTarget, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack * 0.5f, Projectile.owner); } target.AddBuff(ModContent.BuffType(), 60); } diff --git a/Projectiles/Melee/CosmicShivBlade.cs b/Projectiles/Melee/CosmicShivBlade.cs index f9fcbc6139..7ea7599c5b 100644 --- a/Projectiles/Melee/CosmicShivBlade.cs +++ b/Projectiles/Melee/CosmicShivBlade.cs @@ -22,6 +22,8 @@ namespace CalamityMod.Projectiles.Melee Projectile.penetrate = penetrateMax; Projectile.tileCollide = false; Projectile.timeLeft = 290; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 5; } public override void AI() { @@ -58,16 +60,8 @@ namespace CalamityMod.Projectiles.Melee } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - if (Projectile.penetrate == penetrateMax) - { - Projectile.damage /= 15; - } - else - { - Projectile.scale += (maxScale - 1) / (float)penetrateMax; - } + Projectile.scale += (maxScale - 1) / (float)penetrateMax; Projectile.ai[1] = 5 + Main.rand.Next(-2, 3); - target.immune[Projectile.owner] = 0; //so that all blades can hit the enemy target.AddBuff(ModContent.BuffType(), 120); } diff --git a/Projectiles/Melee/GalaxyStar.cs b/Projectiles/Melee/GalaxyStar.cs index 7b6c229d55..6fffa74c23 100644 --- a/Projectiles/Melee/GalaxyStar.cs +++ b/Projectiles/Melee/GalaxyStar.cs @@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.penetrate = 1; Projectile.tileCollide = false; Projectile.timeLeft = 160; + Projectile.extraUpdates = 2; } public override void AI() { diff --git a/Projectiles/Melee/Shortswords/CosmicShivProj.cs b/Projectiles/Melee/Shortswords/CosmicShivProj.cs index 239fa21fb0..5a56e3b252 100644 --- a/Projectiles/Melee/Shortswords/CosmicShivProj.cs +++ b/Projectiles/Melee/Shortswords/CosmicShivProj.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords public override Action EffectBeforePullback => (proj) => { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 14f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner, 0f, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 14f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f); }; public override void SetVisualOffsets() From 741eb28d961d506acdd377b68330ac4432cabef9 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 4 Sep 2023 21:57:17 -0400 Subject: [PATCH 220/258] Slight Scourge of the Cosmos buff Also cleaned up a few of the num variables in the mini projectile file --- Projectiles/Melee/ScourgeoftheCosmosMini.cs | 39 ++++++++++----------- Projectiles/Melee/ScourgeoftheCosmosProj.cs | 2 +- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/Projectiles/Melee/ScourgeoftheCosmosMini.cs b/Projectiles/Melee/ScourgeoftheCosmosMini.cs index 4282ffed8c..6836a73f50 100644 --- a/Projectiles/Melee/ScourgeoftheCosmosMini.cs +++ b/Projectiles/Melee/ScourgeoftheCosmosMini.cs @@ -25,8 +25,8 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.MeleeNoSpeed; Projectile.alpha = 255; Projectile.penetrate = 1; - Projectile.timeLeft = 300; - Projectile.extraUpdates = 3; + Projectile.timeLeft = 375; + Projectile.extraUpdates = 4; } public override bool? CanHitNPC(NPC target) => Projectile.timeLeft < 270 && target.CanBeChasedBy(Projectile); @@ -53,12 +53,12 @@ namespace CalamityMod.Projectiles.Melee for (int num369 = 0; num369 < 1; num369++) { int dustType = Main.rand.NextBool(3) ? 56 : 242; - float num370 = Projectile.velocity.X / 3f * num369; - float num371 = Projectile.velocity.Y / 3f * num369; + float dustX = Projectile.velocity.X / 3f * num369; + float dustY = Projectile.velocity.Y / 3f * num369; int num372 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, dustType, 0f, 0f, 0, default, 1f); Dust dust = Main.dust[num372]; - dust.position.X = Projectile.Center.X - num370; - dust.position.Y = Projectile.Center.Y - num371; + dust.position.X = Projectile.Center.X - dustX; + dust.position.Y = Projectile.Center.Y - dustY; dust.velocity *= 0f; dust.scale = 0.5f; } @@ -68,41 +68,40 @@ namespace CalamityMod.Projectiles.Melee float num373 = Projectile.position.X; float num374 = Projectile.position.Y; float num375 = 100000f; - bool flag10 = false; + bool isHoming = false; Projectile.ai[0] += 1f; if (Projectile.ai[0] > 30f) { Projectile.ai[0] = 30f; - for (int num376 = 0; num376 < Main.maxNPCs; num376++) + for (int enemy = 0; enemy < Main.maxNPCs; enemy++) { - if (Main.npc[num376].CanBeChasedBy(Projectile, false)) + if (Main.npc[enemy].CanBeChasedBy(Projectile, false)) { - float num377 = Main.npc[num376].position.X + Main.npc[num376].width / 2; - float num378 = Main.npc[num376].position.Y + Main.npc[num376].height / 2; - float num379 = Math.Abs(Projectile.position.X + Projectile.width / 2 - num377) + Math.Abs(Projectile.position.Y + Projectile.height / 2 - num378); - if (num379 < 800f && num379 < num375 && Collision.CanHit(Projectile.position, Projectile.width, Projectile.height, Main.npc[num376].position, Main.npc[num376].width, Main.npc[num376].height)) + float enemyX = Main.npc[enemy].position.X + Main.npc[enemy].width / 2; + float enemyY = Main.npc[enemy].position.Y + Main.npc[enemy].height / 2; + float enemyDistance = Math.Abs(Projectile.position.X + Projectile.width / 2 - enemyX) + Math.Abs(Projectile.position.Y + Projectile.height / 2 - enemyY); + if (enemyDistance < 800f && enemyDistance < num375 && Collision.CanHit(Projectile.position, Projectile.width, Projectile.height, Main.npc[enemy].position, Main.npc[enemy].width, Main.npc[enemy].height)) { - num375 = num379; - num373 = num377; - num374 = num378; - flag10 = true; + num375 = enemyDistance; + num373 = enemyX; + num374 = enemyY; + isHoming = true; } } } } - if (!flag10) + if (!isHoming) { num373 = Projectile.position.X + Projectile.width / 2 + Projectile.velocity.X * 100f; num374 = Projectile.position.Y + Projectile.height / 2 + Projectile.velocity.Y * 100f; } - float num380 = 10f; float num381 = 0.16f; Vector2 vector30 = new Vector2(Projectile.position.X + Projectile.width * 0.5f, Projectile.position.Y + Projectile.height * 0.5f); float num382 = num373 - vector30.X; float num383 = num374 - vector30.Y; float num384 = (float)Math.Sqrt(num382 * num382 + num383 * num383); - num384 = num380 / num384; + num384 = 10f / num384; num382 *= num384; num383 *= num384; if (Projectile.velocity.X < num382) diff --git a/Projectiles/Melee/ScourgeoftheCosmosProj.cs b/Projectiles/Melee/ScourgeoftheCosmosProj.cs index 06d3711db8..bbfdd8bb5d 100644 --- a/Projectiles/Melee/ScourgeoftheCosmosProj.cs +++ b/Projectiles/Melee/ScourgeoftheCosmosProj.cs @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Melee float num629 = Main.rand.Next(-35, 36) * 0.02f; num628 *= 10f; num629 *= 10f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.position.X, Projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)(Projectile.damage * 0.7), Projectile.knockBack * 0.35f, Main.myPlayer); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.position.X, Projectile.position.Y, num628, num629, ModContent.ProjectileType(), (int)(Projectile.damage * 0.75), Projectile.knockBack * 0.35f, Main.myPlayer); num3 = num627; } } From 11418ad5482c1593757b577a0d5c1357bf03f5d5 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 5 Sep 2023 12:49:44 -0400 Subject: [PATCH 221/258] Eutrophic Sand and Navystone Walls now shimmer into the unsafe variants instead of crafting them If someone more knowledgeable than me knows how to add the little skull icon in the bottom right, please do so :pray: --- Items/Placeables/EutrophicSand.cs | 5 ----- Items/Placeables/Navystone.cs | 5 ----- Items/Placeables/Walls/EutrophicSandWall.cs | 6 +----- Items/Placeables/Walls/EutrophicSandWallSafe.cs | 1 + Items/Placeables/Walls/NavystoneWall.cs | 6 +----- Items/Placeables/Walls/NavystoneWallSafe.cs | 1 + 6 files changed, 4 insertions(+), 20 deletions(-) diff --git a/Items/Placeables/EutrophicSand.cs b/Items/Placeables/EutrophicSand.cs index da19d9b25c..25b1db4512 100644 --- a/Items/Placeables/EutrophicSand.cs +++ b/Items/Placeables/EutrophicSand.cs @@ -28,11 +28,6 @@ namespace CalamityMod.Items.Placeables AddIngredient(4). AddTile(TileID.WorkBenches). Register(); - - CreateRecipe(). - AddIngredient(4). - AddTile(TileID.WorkBenches). - Register(); } } } diff --git a/Items/Placeables/Navystone.cs b/Items/Placeables/Navystone.cs index 16f1377d7f..154971ba93 100644 --- a/Items/Placeables/Navystone.cs +++ b/Items/Placeables/Navystone.cs @@ -35,11 +35,6 @@ namespace CalamityMod.Items.Placeables AddTile(TileID.WorkBenches). Register(); - CreateRecipe(). - AddIngredient(4). - AddTile(TileID.WorkBenches). - Register(); - CreateRecipe(). AddIngredient(2). AddTile(). diff --git a/Items/Placeables/Walls/EutrophicSandWall.cs b/Items/Placeables/Walls/EutrophicSandWall.cs index 315934659c..02e418d447 100644 --- a/Items/Placeables/Walls/EutrophicSandWall.cs +++ b/Items/Placeables/Walls/EutrophicSandWall.cs @@ -10,6 +10,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetStaticDefaults() { Item.ResearchUnlockCount = 400; + ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); } public override void SetDefaults() @@ -25,10 +26,5 @@ namespace CalamityMod.Items.Placeables.Walls Item.consumable = true; Item.createWall = ModContent.WallType(); } - - public override void AddRecipes() - { - CreateRecipe(4).AddIngredient(ModContent.ItemType()).AddTile(TileID.WorkBenches).Register(); - } } } diff --git a/Items/Placeables/Walls/EutrophicSandWallSafe.cs b/Items/Placeables/Walls/EutrophicSandWallSafe.cs index 3f399439aa..083cb750e7 100644 --- a/Items/Placeables/Walls/EutrophicSandWallSafe.cs +++ b/Items/Placeables/Walls/EutrophicSandWallSafe.cs @@ -10,6 +10,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetStaticDefaults() { Item.ResearchUnlockCount = 400; + ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); } public override void SetDefaults() diff --git a/Items/Placeables/Walls/NavystoneWall.cs b/Items/Placeables/Walls/NavystoneWall.cs index 4e33e4c5ea..855ca72460 100644 --- a/Items/Placeables/Walls/NavystoneWall.cs +++ b/Items/Placeables/Walls/NavystoneWall.cs @@ -9,6 +9,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetStaticDefaults() { Item.ResearchUnlockCount = 400; + ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); } public override void SetDefaults() @@ -24,10 +25,5 @@ namespace CalamityMod.Items.Placeables.Walls Item.consumable = true; Item.createWall = ModContent.WallType(); } - - public override void AddRecipes() - { - CreateRecipe(4).AddIngredient(ModContent.ItemType()).AddTile(TileID.WorkBenches).Register(); - } } } diff --git a/Items/Placeables/Walls/NavystoneWallSafe.cs b/Items/Placeables/Walls/NavystoneWallSafe.cs index 2ab3e44900..71cb6b2195 100644 --- a/Items/Placeables/Walls/NavystoneWallSafe.cs +++ b/Items/Placeables/Walls/NavystoneWallSafe.cs @@ -9,6 +9,7 @@ namespace CalamityMod.Items.Placeables.Walls public override void SetStaticDefaults() { Item.ResearchUnlockCount = 400; + ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); } public override void SetDefaults() From 2fb17ce1ce21280b7b9963f0bed9724afa84a895 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Tue, 5 Sep 2023 20:44:35 +0300 Subject: [PATCH 222/258] Phantasmal Fury buff --- Items/Weapons/Magic/PhantasmalFury.cs | 2 +- Projectiles/Magic/PhantasmalFuryProj.cs | 4 ++++ Projectiles/Rogue/PhantasmalSoul.cs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Magic/PhantasmalFury.cs b/Items/Weapons/Magic/PhantasmalFury.cs index 6910551bfb..5a582e413c 100644 --- a/Items/Weapons/Magic/PhantasmalFury.cs +++ b/Items/Weapons/Magic/PhantasmalFury.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 220; + Item.damage = 260; Item.DamageType = DamageClass.Magic; Item.mana = 20; Item.width = 62; diff --git a/Projectiles/Magic/PhantasmalFuryProj.cs b/Projectiles/Magic/PhantasmalFuryProj.cs index 265c3f54c5..eb51d5d945 100644 --- a/Projectiles/Magic/PhantasmalFuryProj.cs +++ b/Projectiles/Magic/PhantasmalFuryProj.cs @@ -43,6 +43,10 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.owner == Main.myPlayer) Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); } + if (Projectile.timeLeft < 100) + { + CalamityUtils.HomeInOnNPC(Projectile, true, 300f, 10f, 20f); + } Lighting.AddLight(Projectile.Center, 0.25f, 0.25f, 0.25f); diff --git a/Projectiles/Rogue/PhantasmalSoul.cs b/Projectiles/Rogue/PhantasmalSoul.cs index 1384fd4ffc..bfc09d36f2 100644 --- a/Projectiles/Rogue/PhantasmalSoul.cs +++ b/Projectiles/Rogue/PhantasmalSoul.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; From e4a62b00517c15cc0bc00a2ceab8597a01a1056a Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 5 Sep 2023 14:10:23 -0400 Subject: [PATCH 223/258] Galileo Gladius balance --- Items/Weapons/Melee/GalileoGladius.cs | 6 +++--- Projectiles/Melee/GalileosMoon.cs | 2 +- Projectiles/Melee/Shortswords/GalileoGladiusProj.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Melee/GalileoGladius.cs b/Items/Weapons/Melee/GalileoGladius.cs index d0cd2f03f0..4671c584be 100644 --- a/Items/Weapons/Melee/GalileoGladius.cs +++ b/Items/Weapons/Melee/GalileoGladius.cs @@ -16,11 +16,11 @@ namespace CalamityMod.Items.Weapons.Melee { Item.useStyle = ItemUseStyleID.Rapier; Item.DamageType = DamageClass.Melee; - Item.useAnimation = 8; - Item.useTime = 8; + Item.useAnimation = 10; + Item.useTime = 10; Item.width = 44; Item.height = 44; - Item.damage = 110; + Item.damage = 92; Item.knockBack = 10f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Projectiles/Melee/GalileosMoon.cs b/Projectiles/Melee/GalileosMoon.cs index 9d2601d578..5f3d6c1c25 100644 --- a/Projectiles/Melee/GalileosMoon.cs +++ b/Projectiles/Melee/GalileosMoon.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; Projectile.tileCollide = false; - Projectile.penetrate = 12; + Projectile.penetrate = -1; Projectile.extraUpdates = 1; Projectile.timeLeft = 135 * Projectile.MaxUpdates; Projectile.ignoreWater = true; diff --git a/Projectiles/Melee/Shortswords/GalileoGladiusProj.cs b/Projectiles/Melee/Shortswords/GalileoGladiusProj.cs index 4c4cec01ca..f855f9c6a8 100644 --- a/Projectiles/Melee/Shortswords/GalileoGladiusProj.cs +++ b/Projectiles/Melee/Shortswords/GalileoGladiusProj.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords public override Action EffectBeforePullback => (proj) => { - int moonDamage = (int)(Projectile.damage * 0.3333f); + int moonDamage = (int)(Projectile.damage * 0.6f); Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 10f, ModContent.ProjectileType(), moonDamage, Projectile.knockBack, Projectile.owner, 0f, 0f); }; From 5c68fc4d4675ba75c5b7686f503e9abccbe287fa Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 5 Sep 2023 15:14:07 -0400 Subject: [PATCH 224/258] Trans gun nerfs --- Items/Weapons/Ranged/Seadragon.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 05672055dd..f89f67cf34 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 70; + Item.damage = 60; Item.DamageType = DamageClass.Ranged; Item.width = 90; Item.height = 38; @@ -67,7 +67,7 @@ namespace CalamityMod.Items.Weapons.Ranged // Rockets have their own more chaotic spread than bullets. if (fireRocket) { - int rocketDamage = damage * 5; + int rocketDamage = damage * 3; Projectile.NewProjectile(source, newPos, newVel * 1.2f, ModContent.ProjectileType(), rocketDamage, knockback, player.whoAmI); SoundEngine.PlaySound(SoundID.Item109, player.Center); } @@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Ranged // Muzzle blasts are always directly in line with the gun's muzzle. if (muzzleBlast) { - int muzzleBlastDamage = damage * 25; // This might be too much but it's every 18th shot... + int muzzleBlastDamage = damage * 12; // "This might be too much but it's every 18th shot..." Narrator: 25x was in fact too much. float muzzleBlastKB = knockback + 12f; Projectile.NewProjectile(source, newPos, velocity, ModContent.ProjectileType(), muzzleBlastDamage, muzzleBlastKB, player.whoAmI); From 6b3b68ae0a5d41c6ee2cde1c52048a6cfc02c63d Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 5 Sep 2023 17:45:35 -0400 Subject: [PATCH 225/258] Gael's Greatsword --- Balancing/BalancingChangesManager.cs | 7 ++++++- Items/Weapons/Melee/GaelsGreatsword.cs | 8 ++++---- Projectiles/Melee/GaelSkull.cs | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 8bf1835047..3f3f66c736 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -39,6 +39,9 @@ namespace CalamityMod.Balancing IBalancingRule ResistTrueMelee(float f) => new ClassResistBalancingRule(f, TrueMeleeDamageClass.Instance); // Declare specific filters. + bool BigGaelsSkullFilter(Projectile p) => + p.type == ProjectileType() && p.ai[1] == 1; + bool DragonRageFilter(Projectile p) => p.type == ProjectileType() || p.type == ProjectileType() || (p.type == ProjectileType() && p.CountsAsClass()); @@ -337,6 +340,9 @@ namespace CalamityMod.Balancing // 25% resist to Dragon Rage projectiles. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, DragonRageFilter)))); + // 25% resist to Gael's Greatsword's big skulls. + NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, BigGaelsSkullFilter)))); + // 25% resist to Godslayer Slugs. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType())))); @@ -346,7 +352,6 @@ namespace CalamityMod.Balancing // 20% resist to Blood Boiler fire. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType())))); - // 20% resist to Eradicator beams. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType())))); diff --git a/Items/Weapons/Melee/GaelsGreatsword.cs b/Items/Weapons/Melee/GaelsGreatsword.cs index dbf24f1ac4..f67c782dab 100644 --- a/Items/Weapons/Melee/GaelsGreatsword.cs +++ b/Items/Weapons/Melee/GaelsGreatsword.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; // Weapon attribute constants - public static readonly int BaseDamage = 650; + public static readonly int BaseDamage = 670; public static readonly float GiantSkullDamageMultiplier = 1.5f; // Weapon projectile attribute constants @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.height = 102; Item.damage = BaseDamage; Item.DamageType = DamageClass.Melee; - Item.useAnimation = Item.useTime = 12; + Item.useAnimation = Item.useTime = 13; Item.useTurn = true; Item.knockBack = 9; Item.UseSound = SoundID.Item1; @@ -126,8 +126,8 @@ namespace CalamityMod.Items.Weapons.Melee break; //Giant, slow, fading skull case 1: - int largeSkullDmg = (int)(damage * 1.5f); - int projectileIndex = Projectile.NewProjectile(source, position, velocity * 0.5f, type, largeSkullDmg, knockback, player.whoAmI, ai1:1f); + int largeSkullDmg = (int)(damage * GiantSkullDamageMultiplier); + int projectileIndex = Projectile.NewProjectile(source, position, velocity * 0.6f, type, largeSkullDmg, knockback, player.whoAmI, ai1:1f); Main.projectile[projectileIndex].scale = 1.75f; break; } diff --git a/Projectiles/Melee/GaelSkull.cs b/Projectiles/Melee/GaelSkull.cs index 0c892b0dfe..d3c1282a0b 100644 --- a/Projectiles/Melee/GaelSkull.cs +++ b/Projectiles/Melee/GaelSkull.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; Projectile.ignoreWater = true; - Projectile.penetrate = 2; + Projectile.penetrate = 1; Projectile.timeLeft = 600; Projectile.light = 1f; Projectile.usesLocalNPCImmunity = true; From 35ab27249096a9ce57f5ab93e9fb41ff40cf2ce1 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 5 Sep 2023 20:31:58 -0400 Subject: [PATCH 226/258] Meow (thrower) --- Items/Weapons/Ranged/Meowthrower.cs | 30 +++++++++-------------------- Projectiles/Ranged/MeowFire.cs | 24 +++++++++++------------ Projectiles/Ranged/MeowFire2.cs | 24 +++++++++++------------ 3 files changed, 33 insertions(+), 45 deletions(-) diff --git a/Items/Weapons/Ranged/Meowthrower.cs b/Items/Weapons/Ranged/Meowthrower.cs index 41b0926619..a8b2a0b9ab 100644 --- a/Items/Weapons/Ranged/Meowthrower.cs +++ b/Items/Weapons/Ranged/Meowthrower.cs @@ -10,14 +10,15 @@ namespace CalamityMod.Items.Weapons.Ranged public class Meowthrower : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + private bool Fire2 = false; public override void SetDefaults() { - Item.damage = 48; + Item.damage = 37; Item.DamageType = DamageClass.Ranged; Item.width = 74; Item.height = 24; - Item.useTime = 5; - Item.useAnimation = 5; + Item.useTime = 8; + Item.useAnimation = 8; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.25f; @@ -44,24 +45,11 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - int num6 = Main.rand.Next(1, 3); - for (int index = 0; index < num6; ++index) - { - float SpeedX = velocity.X + (float)Main.rand.Next(-15, 16) * 0.05f; - float SpeedY = velocity.Y + (float)Main.rand.Next(-15, 16) * 0.05f; - switch (Main.rand.Next(3)) - { - case 1: - type = ModContent.ProjectileType(); - break; - case 2: - type = ModContent.ProjectileType(); - break; - default: - break; - } - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI, 0.0f, 0.0f); - } + float SpeedX = velocity.X + (float)Main.rand.Next(-15, 16) * 0.05f; + float SpeedY = velocity.Y + (float)Main.rand.Next(-15, 16) * 0.05f; + int projType = Fire2 ? ModContent.ProjectileType() : type; + Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, projType, damage, knockback, player.whoAmI, 0.0f, 0.0f); + Fire2 = !Fire2; return false; } } diff --git a/Projectiles/Ranged/MeowFire.cs b/Projectiles/Ranged/MeowFire.cs index 4f04ca70be..a46a6b59f6 100644 --- a/Projectiles/Ranged/MeowFire.cs +++ b/Projectiles/Ranged/MeowFire.cs @@ -20,31 +20,32 @@ namespace CalamityMod.Projectiles.Ranged Projectile.DamageType = DamageClass.Ranged; Projectile.penetrate = -1; Projectile.extraUpdates = 3; - Projectile.timeLeft = 90; + Projectile.timeLeft = 95; + Projectile.usesIDStaticNPCImmunity = true; + Projectile.idStaticNPCHitCooldown = 10; } public override void AI() { if (Projectile.ai[0] > 7f) { - float num296 = 1f; + float dustScale = 1f; if (Projectile.ai[0] == 8f) { - num296 = 0.25f; + dustScale = 0.25f; } else if (Projectile.ai[0] == 9f) { - num296 = 0.5f; + dustScale = 0.5f; } else if (Projectile.ai[0] == 10f) { - num296 = 0.75f; + dustScale = 0.75f; } Projectile.ai[0] += 1f; - int num297 = 56; - for (int num298 = 0; num298 < 2; num298++) + for (int i = 0; i < 2; i++) { - int num299 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, num297, Projectile.velocity.X * 0.2f, Projectile.velocity.Y * 0.2f, 100, default, 1f); + int num299 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 56, Projectile.velocity.X * 0.2f, Projectile.velocity.Y * 0.2f, 100, default, 1f); Dust dust = Main.dust[num299]; if (Main.rand.NextBool(3)) { @@ -59,7 +60,7 @@ namespace CalamityMod.Projectiles.Ranged } dust.velocity.X *= 1.2f; dust.velocity.Y *= 1.2f; - dust.scale *= num296; + dust.scale *= dustScale; dust.velocity += Projectile.velocity; if (!dust.noGravity) { @@ -76,7 +77,6 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.immune[Projectile.owner] = 8; SoundEngine.PlaySound(SoundID.Item57, Projectile.position); Projectile.position.X = Projectile.position.X + (float)(Projectile.width / 2); Projectile.position.Y = Projectile.position.Y + (float)(Projectile.height / 2); @@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.height = 10; Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); - for (int num621 = 0; num621 < 10; num621++) + for (int j = 0; j < 10; j++) { int num622 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 56, 0f, 0f, 100, default, 1f); Main.dust[num622].velocity *= 3f; @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Ranged Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; } } - for (int num623 = 0; num623 < 20; num623++) + for (int k = 0; k < 20; k++) { int num624 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 56, 0f, 0f, 100, default, 1.5f); Main.dust[num624].noGravity = true; diff --git a/Projectiles/Ranged/MeowFire2.cs b/Projectiles/Ranged/MeowFire2.cs index e2f172eb3a..13aba71e0b 100644 --- a/Projectiles/Ranged/MeowFire2.cs +++ b/Projectiles/Ranged/MeowFire2.cs @@ -20,31 +20,32 @@ namespace CalamityMod.Projectiles.Ranged Projectile.DamageType = DamageClass.Ranged; Projectile.penetrate = -1; Projectile.extraUpdates = 3; - Projectile.timeLeft = 90; + Projectile.timeLeft = 95; + Projectile.usesIDStaticNPCImmunity = true; + Projectile.idStaticNPCHitCooldown = 10; } public override void AI() { if (Projectile.ai[0] > 7f) { - float num296 = 1f; + float dustScale = 1f; if (Projectile.ai[0] == 8f) { - num296 = 0.25f; + dustScale = 0.25f; } else if (Projectile.ai[0] == 9f) { - num296 = 0.5f; + dustScale = 0.5f; } else if (Projectile.ai[0] == 10f) { - num296 = 0.75f; + dustScale = 0.75f; } Projectile.ai[0] += 1f; - int num297 = 73; - for (int num298 = 0; num298 < 2; num298++) + for (int i = 0; i < 2; i++) { - int num299 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, num297, Projectile.velocity.X * 0.2f, Projectile.velocity.Y * 0.2f, 100, default, 1f); + int num299 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 73, Projectile.velocity.X * 0.2f, Projectile.velocity.Y * 0.2f, 100, default, 1f); Dust dust = Main.dust[num299]; if (Main.rand.NextBool(3)) { @@ -59,7 +60,7 @@ namespace CalamityMod.Projectiles.Ranged } dust.velocity.X *= 1.2f; dust.velocity.Y *= 1.2f; - dust.scale *= num296; + dust.scale *= dustScale; dust.velocity += Projectile.velocity; if (!dust.noGravity) { @@ -76,7 +77,6 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.immune[Projectile.owner] = 8; SoundEngine.PlaySound(SoundID.Item58, Projectile.position); Projectile.position.X = Projectile.position.X + (float)(Projectile.width / 2); Projectile.position.Y = Projectile.position.Y + (float)(Projectile.height / 2); @@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.height = 10; Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); - for (int num621 = 0; num621 < 10; num621++) + for (int j = 0; j < 10; j++) { int num622 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 73, 0f, 0f, 100, default, 1f); Main.dust[num622].velocity *= 3f; @@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Ranged Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; } } - for (int num623 = 0; num623 < 20; num623++) + for (int k = 0; k < 20; k++) { int num624 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 73, 0f, 0f, 100, default, 1.5f); Main.dust[num624].noGravity = true; From e5dd8b6a94c81468c1a4c5b62504fdfc476161f2 Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Thu, 31 Aug 2023 12:08:04 +0200 Subject: [PATCH 227/258] Plantation Staff rework (No balacing). --- ...antationBuff.cs => PlantationStaffBuff.cs} | 11 +- ...tationBuff.png => PlantationStaffBuff.png} | Bin CalPlayer/CalamityPlayer.cs | 4 +- Items/Weapons/Summon/PlantationStaff.cs | 82 ++- .../en-US/Mods.CalamityMod.Buffs.hjson | 2 +- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 6 +- .../Mods.CalamityMod.Projectiles.Summon.hjson | 11 +- ModSupport/WeakReferenceSupport.cs | 2 +- Projectiles/Summon/PlantSeed.cs | 59 --- Projectiles/Summon/PlantSeedGreen.cs | 69 --- Projectiles/Summon/PlantSporeCloud.cs | 65 --- Projectiles/Summon/PlantSummon.cs | 501 ------------------ Projectiles/Summon/PlantSummon.png | Bin 3691 -> 0 bytes Projectiles/Summon/PlantTentacle.cs | 237 --------- Projectiles/Summon/PlantTentacle.png | Bin 1184 -> 0 bytes Projectiles/Summon/PlantThornBall.cs | 67 --- Projectiles/Summon/PlantationStaffSeed.cs | 71 +++ ...tSeedGreen.png => PlantationStaffSeed.png} | Bin ...PlantSeed.png => PlantationStaffSeed2.png} | Bin .../Summon/PlantationStaffSporeCloud.cs | 65 +++ ...loud.png => PlantationStaffSporeCloud.png} | Bin ...ud2.png => PlantationStaffSporeCloud2.png} | Bin ...ud3.png => PlantationStaffSporeCloud3.png} | Bin Projectiles/Summon/PlantationStaffSummon.cs | 358 +++++++++++++ Projectiles/Summon/PlantationStaffSummon.png | Bin 0 -> 8849 bytes Projectiles/Summon/PlantationStaffTentacle.cs | 265 +++++++++ .../Summon/PlantationStaffTentacle.png | Bin 0 -> 7262 bytes ...n.png => PlantationStaffTentacleChain.png} | Bin .../Summon/PlantationStaffThornball.cs | 82 +++ ...nBall.png => PlantationStaffThornball.png} | Bin 30 files changed, 893 insertions(+), 1064 deletions(-) rename Buffs/Summon/{PlantationBuff.cs => PlantationStaffBuff.cs} (75%) rename Buffs/Summon/{PlantationBuff.png => PlantationStaffBuff.png} (100%) delete mode 100644 Projectiles/Summon/PlantSeed.cs delete mode 100644 Projectiles/Summon/PlantSeedGreen.cs delete mode 100644 Projectiles/Summon/PlantSporeCloud.cs delete mode 100644 Projectiles/Summon/PlantSummon.cs delete mode 100644 Projectiles/Summon/PlantSummon.png delete mode 100644 Projectiles/Summon/PlantTentacle.cs delete mode 100644 Projectiles/Summon/PlantTentacle.png delete mode 100644 Projectiles/Summon/PlantThornBall.cs create mode 100644 Projectiles/Summon/PlantationStaffSeed.cs rename Projectiles/Summon/{PlantSeedGreen.png => PlantationStaffSeed.png} (100%) rename Projectiles/Summon/{PlantSeed.png => PlantationStaffSeed2.png} (100%) create mode 100644 Projectiles/Summon/PlantationStaffSporeCloud.cs rename Projectiles/Summon/{PlantSporeCloud.png => PlantationStaffSporeCloud.png} (100%) rename Projectiles/Summon/{PlantSporeCloud2.png => PlantationStaffSporeCloud2.png} (100%) rename Projectiles/Summon/{PlantSporeCloud3.png => PlantationStaffSporeCloud3.png} (100%) create mode 100644 Projectiles/Summon/PlantationStaffSummon.cs create mode 100644 Projectiles/Summon/PlantationStaffSummon.png create mode 100644 Projectiles/Summon/PlantationStaffTentacle.cs create mode 100644 Projectiles/Summon/PlantationStaffTentacle.png rename Projectiles/Summon/{PlantationChain.png => PlantationStaffTentacleChain.png} (100%) create mode 100644 Projectiles/Summon/PlantationStaffThornball.cs rename Projectiles/Summon/{PlantThornBall.png => PlantationStaffThornball.png} (100%) diff --git a/Buffs/Summon/PlantationBuff.cs b/Buffs/Summon/PlantationStaffBuff.cs similarity index 75% rename from Buffs/Summon/PlantationBuff.cs rename to Buffs/Summon/PlantationStaffBuff.cs index 391d25c5a2..9e64b840e2 100644 --- a/Buffs/Summon/PlantationBuff.cs +++ b/Buffs/Summon/PlantationStaffBuff.cs @@ -1,11 +1,12 @@ -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Buffs.Summon { - public class PlantationBuff : ModBuff + [LegacyName("PlantationBuff")] + public class PlantationStaffBuff : ModBuff { public override void SetStaticDefaults() { @@ -17,11 +18,11 @@ namespace CalamityMod.Buffs.Summon public override void Update(Player player, ref int buffIndex) { CalamityPlayer modPlayer = player.Calamity(); - if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) + if (player.ownedProjectileCounts[ModContent.ProjectileType()] > 0) { - modPlayer.plantera = true; + modPlayer.PlantationSummon = true; } - if (!modPlayer.plantera) + if (!modPlayer.PlantationSummon) { player.DelBuff(buffIndex); buffIndex--; diff --git a/Buffs/Summon/PlantationBuff.png b/Buffs/Summon/PlantationStaffBuff.png similarity index 100% rename from Buffs/Summon/PlantationBuff.png rename to Buffs/Summon/PlantationStaffBuff.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 0ce588008d..7cd1f883f1 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -949,7 +949,7 @@ namespace CalamityMod.CalPlayer public bool cLamp = false; public bool pGuy = false; public bool sandnado = false; - public bool plantera = false; + public bool PlantationSummon = false; public bool astralProbe = false; public bool pSoulGuardians = false; public bool cEnergy = false; @@ -1970,7 +1970,7 @@ namespace CalamityMod.CalPlayer sCrystal = false; sGod = false; sandnado = false; - plantera = false; + PlantationSummon = false; astralProbe = false; victideSnail = false; cSpirit = false; diff --git a/Items/Weapons/Summon/PlantationStaff.cs b/Items/Weapons/Summon/PlantationStaff.cs index b071e01efe..9ede488abc 100644 --- a/Items/Weapons/Summon/PlantationStaff.cs +++ b/Items/Weapons/Summon/PlantationStaff.cs @@ -1,8 +1,8 @@ -using Terraria.DataStructures; +using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; -using CalamityMod.Items.Materials; using Microsoft.Xna.Framework; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -11,62 +11,50 @@ namespace CalamityMod.Items.Weapons.Summon public class PlantationStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; + + public static float EnemyDistanceDetection = 1600f; + public static float ChargingSpeed = 35f; + + public static int ThornballAmount = 2; + public static float ThornballFireRate = 90f; // In frames. + public static float ThornballSpeed = 20f; + + public static float SeedBurstDelay = 30f; // In frames. + public static float SeedBetweenBurstDelay = 10f; // In frames. + public static float SeedSpeed = 25f; + public static int SeedAmountPerBurst = 3; + public static int SeedBurstAmount = 3; + + public static float SporeStartVelocity = 3f; + + public static float TimeBeforeRamming = 15f; // In frames. + public static float RamTime = 240f; // In frames. + + public static float TentacleSpeed = 25f; + public override void SetDefaults() { Item.damage = 55; - Item.mana = 10; - Item.width = 66; - Item.height = 70; - Item.useTime = Item.useAnimation = 20; - Item.useStyle = ItemUseStyleID.Swing; - Item.noMelee = true; + Item.DamageType = DamageClass.Summon; + Item.shoot = ModContent.ProjectileType(); Item.knockBack = 1f; + + Item.mana = 10; + Item.useTime = Item.useAnimation = 20; + Item.width = 46; + Item.height = 48; + Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity8BuyPrice; Item.rare = ItemRarityID.Yellow; + Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item76; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 10f; - Item.DamageType = DamageClass.Summon; } - public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && player.maxMinions >= 3; + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - if (player.altFunctionUse != 2) - { - CalamityUtils.KillShootProjectileMany(player, new int[] { type, ModContent.ProjectileType() }); - - float speed = Item.shootSpeed; - player.itemTime = Item.useTime; - Vector2 playerPos = player.RotatedRelativePoint(player.MountedCenter, true); - float directionX = (float)Main.mouseX + Main.screenPosition.X - playerPos.X; - float directionY = (float)Main.mouseY + Main.screenPosition.Y - playerPos.Y; - if (player.gravDir == -1f) - { - directionY = Main.screenPosition.Y + (float)Main.screenHeight - (float)Main.mouseY - playerPos.Y; - } - Vector2 spinningpoint = new Vector2(directionX, directionY); - float vectorDist = spinningpoint.Length(); - if ((float.IsNaN(spinningpoint.X) && float.IsNaN(spinningpoint.Y)) || (spinningpoint.X == 0f && spinningpoint.Y == 0f)) - { - spinningpoint.X = (float)player.direction; - spinningpoint.Y = 0f; - vectorDist = speed; - } - else - { - vectorDist = speed / vectorDist; - } - spinningpoint.X *= vectorDist; - spinningpoint.Y *= vectorDist; - playerPos.X = (float)Main.mouseX + Main.screenPosition.X; - playerPos.Y = (float)Main.mouseY + Main.screenPosition.Y; - spinningpoint = spinningpoint.RotatedBy(MathHelper.PiOver2, default); - int p = Projectile.NewProjectile(source, playerPos + spinningpoint, spinningpoint, type, damage, knockback, player.whoAmI, 0f, 0f); - if (Main.projectile.IndexInRange(p)) - Main.projectile[p].originalDamage = Item.damage; - } + Projectile.NewProjectile(source, Main.MouseWorld, Main.rand.NextVector2Circular(2f, 2f), type, damage, knockback, player.whoAmI); return false; } @@ -74,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Summon { CreateRecipe(). AddIngredient(). - AddIngredient(ItemID.Smolstar). //Blade Staff + AddIngredient(ItemID.Smolstar). // Blade Staff. AddIngredient(12). AddTile(TileID.MythrilAnvil). Register(); diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 8555661a84..c6c7386e63 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1311,7 +1311,7 @@ Phantom: { Description: The phantom will protect you } -PlantationBuff: { +PlantationStaffBuff: { DisplayName: Plantation Description: The miniature Plantera will protect you } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index b7a6ed762f..6b9a868232 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -511,10 +511,8 @@ PlantationStaff: { DisplayName: Plantation Staff Tooltip: ''' - Summons a miniature Plantera to protect you - Fires seeds, spiky balls, and spore clouds from afar to poison targets - Enrages when you get under 75% health and begins ramming enemies - Occupies 3 minion slots and there can only be one Plantera at a time + Summons a minature Plantera to devastate enemies with floral fury + Occupies 3 minion slots and there can only be one Mini Plantera at a time ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson index 12238709ac..9445478803 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Summon.hjson @@ -188,12 +188,11 @@ PlagueBeeSmall.DisplayName: Plague Bee PlaguebringerMK2.DisplayName: Plaguebringer MK2 PlaguebringerSummon.DisplayName: Lil' Plaguebringer PlaguePrincess.DisplayName: Virili -PlantSeed.DisplayName: Seed -PlantSeedGreen.DisplayName: Seed -PlantSporeCloud.DisplayName: Spore Cloud -PlantSummon.DisplayName: Plantera -PlantTentacle.DisplayName: Tentacle -PlantThornBall.DisplayName: Thorn Ball +PlantationStaffSummon.DisplayName: Mini Plantera +PlantationStaffThornball.DisplayName: Mini Plantera's Thornball +PlantationStaffSeed.DisplayName: Mini Plantera's Seed +PlantationStaffSporeCloud.DisplayName: Mini Plantera's Spores +PlantationStaffTentacle.DisplayName: Mini Plantera's Tentacle PlateProjectile.DisplayName: Plate PolypLauncherProjectile.DisplayName: Polyp Chunk PolypLauncherSentry.DisplayName: Polyp Launcher diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 7c59316ed6..38928fce2a 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -1024,7 +1024,7 @@ namespace CalamityMod RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); - RegisterSummon(ItemType(), BuffType(), ProjectileType()); + RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); diff --git a/Projectiles/Summon/PlantSeed.cs b/Projectiles/Summon/PlantSeed.cs deleted file mode 100644 index 13cfc8669a..0000000000 --- a/Projectiles/Summon/PlantSeed.cs +++ /dev/null @@ -1,59 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Summon -{ - public class PlantSeed : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Summon"; - public override void SetStaticDefaults() - { - Main.projFrames[Projectile.type] = 2; - ProjectileID.Sets.MinionShot[Projectile.type] = true; - } - - public override void SetDefaults() - { - Projectile.width = 14; - Projectile.height = 14; - Projectile.light = 0.5f; - Projectile.alpha = 255; - Projectile.extraUpdates = 2; - Projectile.tileCollide = false; - Projectile.friendly = true; - Projectile.minion = true; - Projectile.minionSlots = 0f; - Projectile.ignoreWater = true; - Projectile.aiStyle = ProjAIStyleID.Arrow; - AIType = ProjectileID.BulletHighVelocity; - Projectile.penetrate = 1; - Projectile.timeLeft = 600; - Projectile.DamageType = DamageClass.Summon; - } - - public override void AI() - { - Projectile.frameCounter++; - if (Projectile.frameCounter > 8) - { - Projectile.frame++; - Projectile.frameCounter = 0; - } - if (Projectile.frame >= 2) - { - Projectile.frame = 0; - } - } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 2); - return false; - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Poisoned, 60); - - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Poisoned, 60); - } -} diff --git a/Projectiles/Summon/PlantSeedGreen.cs b/Projectiles/Summon/PlantSeedGreen.cs deleted file mode 100644 index 9fec88577c..0000000000 --- a/Projectiles/Summon/PlantSeedGreen.cs +++ /dev/null @@ -1,69 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Summon -{ - public class PlantSeedGreen : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Summon"; - public override void SetStaticDefaults() - { - Main.projFrames[Projectile.type] = 2; - ProjectileID.Sets.MinionShot[Projectile.type] = true; - } - - public override void SetDefaults() - { - Projectile.width = 14; - Projectile.height = 14; - Projectile.light = 0.5f; - Projectile.alpha = 255; - Projectile.extraUpdates = 3; - Projectile.tileCollide = false; - Projectile.friendly = true; - Projectile.minion = true; - Projectile.minionSlots = 0f; - Projectile.ignoreWater = true; - Projectile.aiStyle = ProjAIStyleID.Arrow; - AIType = ProjectileID.BulletHighVelocity; - Projectile.penetrate = 1; - Projectile.timeLeft = 600; - Projectile.DamageType = DamageClass.Summon; - } - - public override void AI() - { - Projectile.frameCounter++; - if (Projectile.frameCounter > 8) - { - Projectile.frame++; - Projectile.frameCounter = 0; - } - if (Projectile.frame >= 2) - { - Projectile.frame = 0; - } - } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 2); - return false; - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(BuffID.Poisoned, 180); - if (Projectile.ai[1] == 1f) - target.AddBuff(BuffID.Venom, 90); - } - - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - target.AddBuff(BuffID.Poisoned, 180); - if (Projectile.ai[1] == 1f) - target.AddBuff(BuffID.Venom, 90); - } - } -} diff --git a/Projectiles/Summon/PlantSporeCloud.cs b/Projectiles/Summon/PlantSporeCloud.cs deleted file mode 100644 index 85c121e00e..0000000000 --- a/Projectiles/Summon/PlantSporeCloud.cs +++ /dev/null @@ -1,65 +0,0 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Summon -{ - public class PlantSporeCloud : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Summon"; - private int counter = 0; - - public override void SetStaticDefaults() - { - ProjectileID.Sets.MinionShot[Projectile.type] = true; - } - - public override void SetDefaults() - { - Projectile.width = 32; - Projectile.height = 32; - Projectile.friendly = true; - Projectile.alpha = 60; - Projectile.penetrate = -1; - Projectile.tileCollide = false; - Projectile.minion = true; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 30; - Projectile.DamageType = DamageClass.Summon; - } - - public override void AI() - { - Projectile.velocity.X *= 0.985f; - Projectile.velocity.Y *= 0.985f; - Projectile.rotation += Projectile.direction * 0.05f; - - if (counter % 5 == 0) - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 107, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); - - counter++; - if (counter > 300) - Projectile.alpha += 5; - if (Projectile.alpha >= 255) - Projectile.Kill(); - } - - public override bool PreDraw(ref Color lightColor) - { - Texture2D tex = ModContent.Request(Texture).Value; - if (Projectile.ai[0] == 1f) - tex = ModContent.Request("CalamityMod/Projectiles/Summon/PlantSporeCloud2").Value; - if (Projectile.ai[0] == 2f) - tex = ModContent.Request("CalamityMod/Projectiles/Summon/PlantSporeCloud3").Value; - - Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); - return false; - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Poisoned, 180); - - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Poisoned, 180); - } -} diff --git a/Projectiles/Summon/PlantSummon.cs b/Projectiles/Summon/PlantSummon.cs deleted file mode 100644 index 2c66d1100e..0000000000 --- a/Projectiles/Summon/PlantSummon.cs +++ /dev/null @@ -1,501 +0,0 @@ -using CalamityMod.Buffs.Summon; -using CalamityMod.CalPlayer; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.Audio; - -namespace CalamityMod.Projectiles.Summon -{ - public class PlantSummon : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Summon"; - private bool initialized = false; - private bool enraged = false; - private int pinkSeed = ModContent.ProjectileType(); - private int greenSeed = ModContent.ProjectileType(); - private int thornBall = ModContent.ProjectileType(); - private int sporeClouds = ModContent.ProjectileType(); - - public override void SetStaticDefaults() - { - Main.projFrames[Projectile.type] = 8; - ProjectileID.Sets.MinionSacrificable[Projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[Projectile.type] = true; - ProjectileID.Sets.NeedsUUID[Projectile.type] = true; - } - - public override void SetDefaults() - { - Projectile.width = 38; - Projectile.height = 38; - Projectile.netImportant = true; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.minionSlots = 3f; - Projectile.timeLeft = 18000; - Projectile.penetrate = -1; - Projectile.tileCollide = false; - Projectile.timeLeft *= 5; - Projectile.minion = true; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 12; - Projectile.extraUpdates = 0; - Projectile.DamageType = DamageClass.Summon; - } - - public override void AI() - { - Player player = Main.player[Projectile.owner]; - CalamityPlayer modPlayer = player.Calamity(); - CalamityGlobalProjectile modProj = Projectile.Calamity(); - - if (player.statLife <= (int)(player.statLifeMax2 * 0.75)) - { - if (Main.myPlayer == Projectile.owner) - { - enraged = true; - } - } - else - { - enraged = false; - Projectile.extraUpdates = 0; - } - - Framing(); - - if (!initialized) - { - SpawnDust(); - SpawnTentacles(); - initialized = true; - } - bool correctMinion = Projectile.type == ModContent.ProjectileType(); - player.AddBuff(ModContent.BuffType(), 3600); - if (correctMinion) - { - if (player.dead) - { - modPlayer.plantera = false; - } - if (modPlayer.plantera) - { - Projectile.timeLeft = 2; - } - } - - float range = 1000f; - - //shouldn't need anti clump because there can only be one - - if (!enraged) - { - if (Projectile.ai[0] >= 2f) - Projectile.ai[0] = 0f; - Vector2 targetVec = Projectile.position; - bool foundTarget = false; - if (player.HasMinionAttackTargetNPC) - { - NPC npc = Main.npc[player.MinionAttackTargetNPC]; - if (npc.CanBeChasedBy(Projectile, false)) - { - float extraDist = (npc.width / 2) + (npc.height / 2); - //Calculate distance between target and the projectile to know if it's too far or not - float npcDist = Vector2.Distance(npc.Center, Projectile.Center); - if (!foundTarget && npcDist < (range + extraDist)) - { - range = npcDist; - targetVec = npc.Center; - foundTarget = true; - } - } - } - else - { - for (int i = 0; i < Main.maxNPCs; i++) - { - NPC npc = Main.npc[i]; - if (npc.CanBeChasedBy(Projectile, false)) - { - float extraDist = (npc.width / 2) + (npc.height / 2); - //Calculate distance between target and the projectile to know if it's too far or not - float npcDist = Vector2.Distance(npc.Center, Projectile.Center); - if (!foundTarget && npcDist < (range + extraDist)) - { - range = npcDist; - targetVec = npc.Center; - foundTarget = true; - } - } - } - } - - CheckIfShouldReturnToPlayer(foundTarget); - - if (foundTarget && Projectile.ai[0] == 0f) - { - StayCertainDistFromTarget(targetVec); - } - else - { - PassiveAI(); - } - - HandleRotation(foundTarget, targetVec); - - IncrementAttackCounter(); - if (Projectile.ai[0] == 0f) - { - float projSpeed = 6f; - int projType = Main.rand.NextBool(2) ? greenSeed : pinkSeed; - int projDmg = (int)(Projectile.damage * 0.7f); - float speedMult = 1f; - if (Main.rand.NextBool(4)) - { - projType = thornBall; - } - if (projType == thornBall) - { - speedMult = 2f; - projDmg = (int)(Projectile.damage * 1.2f); - } - if (Projectile.ai[1] == 0f && foundTarget && range < 500f) - { - SoundEngine.PlaySound(SoundID.Item20, Projectile.position); - Projectile.ai[1] += 1f; - if (Main.myPlayer == Projectile.owner) - { - Vector2 velocity = targetVec - Projectile.Center; - if (projType != thornBall && Main.rand.NextBool(3)) - { - FireShotgun(velocity, 0.7f); - } - else - { - velocity.Normalize(); - velocity *= projSpeed; - velocity *= speedMult; - int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, projType, projDmg, Projectile.knockBack, Projectile.owner, 0f, 0f); - if (Main.projectile.IndexInRange(p)) - Main.projectile[p].originalDamage = Projectile.originalDamage; - } - Projectile.netUpdate = true; - } - } - } - } - else //enraged - { - bool charging = false; - if (Projectile.ai[0] == 2f) - { - Projectile.ai[1] += 1f; - Projectile.extraUpdates = 1; - if (Projectile.ai[1] > 30f) - { - Projectile.ai[1] = 1f; - Projectile.ai[0] = 0f; - Projectile.extraUpdates = 0; - Projectile.numUpdates = 0; - Projectile.netUpdate = true; - } - else - { - charging = true; - } - } - if (charging) - { - return; - } - Vector2 targetVec = Projectile.position; - bool foundTarget = false; - if (player.HasMinionAttackTargetNPC) - { - NPC npc = Main.npc[player.MinionAttackTargetNPC]; - if (npc.CanBeChasedBy(Projectile, false)) - { - float extraDist = (npc.width / 2) + (npc.height / 2); - //Calculate distance between target and the projectile to know if it's too far or not - float npcDist = Vector2.Distance(npc.Center, Projectile.Center); - if (!foundTarget && npcDist < (range + extraDist)) - { - range = npcDist; - targetVec = npc.Center; - foundTarget = true; - } - } - } - if (!foundTarget) - { - for (int num645 = 0; num645 < Main.maxNPCs; num645++) - { - NPC npc = Main.npc[num645]; - if (npc.CanBeChasedBy(Projectile, false)) - { - float extraDist = (npc.width / 2) + (npc.height / 2); - //Calculate distance between target and the projectile to know if it's too far or not - float npcDist = Vector2.Distance(npc.Center, Projectile.Center); - if (!foundTarget && npcDist < (range + extraDist)) - { - range = npcDist; - targetVec = npc.Center; - foundTarget = true; - } - } - } - } - - HandleRotation(foundTarget, targetVec); - - CheckIfShouldReturnToPlayer(foundTarget); - - if (foundTarget && Projectile.ai[0] == 0f) - { - StayCertainDistFromTarget(targetVec); - } - else - { - PassiveAI(); - } - IncrementAttackCounter(); - if (Projectile.ai[0] == 0f) - { - if (Projectile.ai[1] == 0f && foundTarget && range < 500f) - { - Projectile.ai[1] += 1f; - if (Main.myPlayer == Projectile.owner) - { - Projectile.ai[0] = 2f; - Vector2 whereIsTarget = targetVec - Projectile.Center; - whereIsTarget.Normalize(); - int projType = thornBall; - if (Main.rand.NextBool(2)) - { - Vector2 projVelocity = whereIsTarget * 2f; - int projDmg = (int)(Projectile.damage * 1.5f); - int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, projVelocity, projType, projDmg, Projectile.knockBack, Projectile.owner, 0f, 1f); - if (Main.projectile.IndexInRange(p)) - Main.projectile[p].originalDamage = Projectile.originalDamage; - } - if (Main.rand.NextBool(3)) - { - FireShotgun(whereIsTarget, 0.8f); - } - float chargeSpeed = 8f; - Projectile.velocity = whereIsTarget * chargeSpeed; - Projectile.netUpdate = true; - } - } - } - } - } - - private void CheckIfShouldReturnToPlayer(bool targetLocated) - { - Player player = Main.player[Projectile.owner]; - float separationAnxietyDist = 1300f; - if (targetLocated) - { - separationAnxietyDist = 2600f; - } - if (Vector2.Distance(player.Center, Projectile.Center) > separationAnxietyDist) - { - Projectile.ai[0] = 1f; - Projectile.netUpdate = true; - } - } - - private void StayCertainDistFromTarget(Vector2 whereIsTarget) - { - Vector2 targetPos = whereIsTarget - Projectile.Center; - float targetDist = targetPos.Length(); - targetPos.Normalize(); - if (targetDist > 200f) - { - float speedMult = 8f; - targetPos *= speedMult; - Projectile.velocity = (Projectile.velocity * 40f + targetPos) / 41f; - } - else - { - float reverseSpeedMult = 4f; - targetPos *= -reverseSpeedMult; - Projectile.velocity = (Projectile.velocity * 40f + targetPos) / 41f; - } - } - - private void PassiveAI() - { - Player player = Main.player[Projectile.owner]; - bool returningToPlayer = false; - if (!returningToPlayer) - { - returningToPlayer = Projectile.ai[0] == 1f; - } - float returnSpeed = 12f; - if (returningToPlayer) - { - returnSpeed = 30f; - } - Vector2 playerVec = player.Center - Projectile.Center + new Vector2(0f, -120f); - float playerDist = playerVec.Length(); - if (playerDist > 200f && returnSpeed < 16f) - { - returnSpeed = 16f; - } - if (playerDist < 600f && returningToPlayer) - { - Projectile.ai[0] = 0f; - Projectile.netUpdate = true; - } - if (playerDist > 2000f) - { - Projectile.position.X = player.Center.X - (float)(Projectile.width / 2); - Projectile.position.Y = player.Center.Y - (float)(Projectile.height / 2); - Projectile.netUpdate = true; - } - if (playerDist > 70f) - { - playerVec.Normalize(); - playerVec *= returnSpeed; - Projectile.velocity = (Projectile.velocity * 40f + playerVec) / 41f; - } - else if (Projectile.velocity.X == 0f && Projectile.velocity.Y == 0f) - { - Projectile.velocity.X = -0.15f; - Projectile.velocity.Y = -0.05f; - } - } - - private void IncrementAttackCounter() - { - if (Projectile.ai[1] > 0f) - { - Projectile.ai[1] += (float)Main.rand.Next(1, 4); - } - if (Projectile.ai[1] > 40f) - { - Projectile.ai[1] = 0f; - Projectile.netUpdate = true; - } - } - - private void FireShotgun(Vector2 whereIsTarget, float attackMult) - { - whereIsTarget.Normalize(); - float projSpeedMult = 3f; - int projType = pinkSeed; - if (Main.rand.NextBool(2) && CalamityUtils.CountProjectiles(sporeClouds) < 9) - { - projType = sporeClouds; - projSpeedMult = 10f; - } - else - { - projType = Main.rand.NextBool(2) ? greenSeed : pinkSeed; - } - int projDmg = (int)(Projectile.damage * attackMult); - Vector2 projVelocity = whereIsTarget * projSpeedMult; - for (int i = -8; i <= 8; i += 8) - { - Vector2 perturbedSpeed = projVelocity.RotatedBy(MathHelper.ToRadians(i)); - int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, perturbedSpeed, projType, projDmg, Projectile.knockBack * attackMult, Projectile.owner, Main.rand.Next(3), 1f); - if (Main.projectile.IndexInRange(p)) - Main.projectile[p].originalDamage = Projectile.originalDamage; - } - } - - private void HandleRotation(bool targetFound, Vector2 whereIsTarget) - { - if (targetFound && !enraged) - { - Projectile.rotation = Projectile.rotation.AngleTowards(Projectile.AngleTo(whereIsTarget) + MathHelper.Pi, 0.1f); - } - else - { - Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.Pi; - } - } - - private void Framing() - { - if (Projectile.frameCounter++ % 8 == 7) - { - Projectile.frame++; - } - if (!enraged) - { - if (Projectile.frame >= 4) - { - Projectile.frame = 0; - } - } - else - { - if (Projectile.frame >= 8) - { - Projectile.frame = 4; - } - } - } - - private void SpawnDust() - { - int dustAmt = 36; - for (int dustIndex = 0; dustIndex < dustAmt; dustIndex++) - { - Vector2 source = Vector2.Normalize(Projectile.velocity) * new Vector2((float)Projectile.width / 2f, (float)Projectile.height) * 0.75f; - source = source.RotatedBy((double)((float)(dustIndex - (dustAmt / 2 - 1)) * MathHelper.TwoPi / (float)dustAmt), default) + Projectile.Center; - Vector2 dustVel = source - Projectile.Center; - int terra = Dust.NewDust(source + dustVel, 0, 0, 107, dustVel.X * 1.75f, dustVel.Y * 1.75f, 100, default, 1.1f); - Main.dust[terra].noGravity = true; - Main.dust[terra].velocity = dustVel; - } - } - - private void SpawnTentacles() - { - if (Projectile.owner == Main.myPlayer) - { - int tentacleAmt = 6; - for (int tentacleIndex = 0; tentacleIndex < tentacleAmt; tentacleIndex++) - { - int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, tentacleIndex, Projectile.GetByUUID(Projectile.owner, Projectile.whoAmI)); - if (Main.projectile.IndexInRange(p)) - Main.projectile[p].originalDamage = Projectile.originalDamage; - } - } - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(BuffID.Poisoned, 180); - target.AddBuff(BuffID.Venom, 90); - } - - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - target.AddBuff(BuffID.Poisoned, 180); - target.AddBuff(BuffID.Venom, 90); - } - - public override bool? CanDamage() => enraged; - - public override bool PreDraw(ref Color lightColor) - { - Texture2D texture = ModContent.Request(Texture).Value; - int height = texture.Height / Main.projFrames[Projectile.type]; - int frameHeight = height * Projectile.frame; - SpriteEffects spriteEffects = SpriteEffects.None; - if (Projectile.spriteDirection == -1) - spriteEffects = SpriteEffects.FlipHorizontally; - - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2((float)texture.Width / 2f, (float)height / 2f), Projectile.scale, spriteEffects, 0); - return false; - } - } -} diff --git a/Projectiles/Summon/PlantSummon.png b/Projectiles/Summon/PlantSummon.png deleted file mode 100644 index 81ca69a658c1781720b2336fc16089dbb978d061..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3691 zcmV-x4wUhUP)Px@B}qgQq2b;F z0L-2$8%*6kdZocoQYN~G0a||NEgJv;ufI28Sg>bNKB{Nl{K)Ym9{>Oz-MbDzl?j4O z{bbjN6#!VicA)?OHz#Bw^9&ShZCXQH{*|Bp$awwWOUD2Jqa)V?0De6AR{+4C7gqoP zp5F5r0N|>dzOyfT5iq z0jM&;=jT4WHueXedFxX6TY;SS0Ry{l90d?<+q5_>8zQhgub;R)0RVXHn$7b3^Z;s!tt_1+R`}s+uFN`V668EeSi|%@4 zi*bEseA;;5zSGk7@BjI{aUW-BGIH;OR{{Y3@{Bq7%w3+b{&pZw3?LYVwyxR+pxTBx z`Ve{)B4~NO&gZB0yl&jb8CP4Lj1WmjrTj3^sXm}V%a^7GjO!eg`d5iRF@LrUAWsZH z&BU~zo(Eiv*yaH;v3l2g0HS?>iIcgk~4DV8L-a8FMKox0N8ih zTnn+y?+WhIYa!0a_dqO9MhZjns4XAI}QM-u6fwjZL3l~=cp6+n}MA60c~;P#+|opC;-3%zxiz}6MEG8W9cve zV9(>X0jPRjLpx2M__Yr&8qfD15GH$zGTxU<<+}es<{60fGvnZj3u*l7Z`T2+u6;ra z?-dI_x>wdrwx|Rw9+*bv8Au$Ndw1$z`jWxkVow+wHJH(sXOx-|y6p#r0a~7sxeF)z z68)~sGmy9sxKQJ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DHLkV1g7+Cu#ry diff --git a/Projectiles/Summon/PlantTentacle.cs b/Projectiles/Summon/PlantTentacle.cs deleted file mode 100644 index ce240e52bf..0000000000 --- a/Projectiles/Summon/PlantTentacle.cs +++ /dev/null @@ -1,237 +0,0 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System; -using Terraria; -using Terraria.GameContent; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Summon -{ - public class PlantTentacle : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Summon"; - private int counter = 0; - private float desiredDistance = 150f; - - public override void SetStaticDefaults() - { - Main.projFrames[Projectile.type] = 4; - ProjectileID.Sets.MinionSacrificable[Projectile.type] = true; - ProjectileID.Sets.MinionTargettingFeature[Projectile.type] = true; - } - - public override void SetDefaults() - { - Projectile.width = 22; - Projectile.height = 24; - Projectile.netImportant = true; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.minionSlots = 0f; - Projectile.timeLeft = 18000; - Projectile.penetrate = -1; - Projectile.tileCollide = false; - Projectile.timeLeft *= 5; - Projectile.minion = true; - Projectile.usesIDStaticNPCImmunity = true; - Projectile.idStaticNPCHitCooldown = 12; - Projectile.DamageType = DamageClass.Summon; - } - - public override void AI() - { - Player player = Main.player[Projectile.owner]; - if (Projectile.ai[1] < 0 || Projectile.ai[1] >= Main.maxProjectiles) - { - Projectile.Kill(); - return; - } - // If something has gone wrong with either the tentacle or the host plant, destroy the proj. - Projectile hostPlant = Main.projectile[(int)Projectile.ai[1]]; - if (Projectile.type != ModContent.ProjectileType() || !hostPlant.active || hostPlant.type != ModContent.ProjectileType()) - { - Projectile.Kill(); - return; - } - - if (Projectile.frameCounter++ % 6 == 0) - { - Projectile.frame++; - } - if (Projectile.frame >= Main.projFrames[Projectile.type]) - { - Projectile.frame = 0; - } - - if (player.Calamity().plantera) - { - Projectile.timeLeft = 2; - } - - Projectile.rotation = (Projectile.Center - hostPlant.Center).ToRotation() + MathHelper.Pi; - - Projectile.MinionAntiClump(1f); - - counter++; - if (counter % 30 == 0) //changes every half second - { - desiredDistance = Main.rand.NextFloat(175f, 225f); - } - Vector2 targetPos = hostPlant.Center - Projectile.Center; - float targetDist = targetPos.Length(); - targetPos.Normalize(); - if (targetDist > desiredDistance) - { - float speedMult = 10f; - speedMult += (targetDist - desiredDistance) * 0.2f; //+0.2f for every 1f away from the desired distance - targetPos *= speedMult; - Projectile.velocity = (Projectile.velocity * 40f + targetPos) / 41f; - } - else - { - float reverseSpeedMult = 5f; - targetPos *= -reverseSpeedMult; - Projectile.velocity = (Projectile.velocity * 40f + targetPos) / 41f; - } - - if (targetDist > 2000f) - { - Projectile.position.X = hostPlant.Center.X - (float)(Projectile.width / 2); - Projectile.position.Y = hostPlant.Center.Y - (float)(Projectile.height / 2); - Projectile.netUpdate = true; - } - - if (Projectile.ai[0] >= 3f) - { - if (hostPlant.Center.X - Projectile.Center.X > 0) - { - Projectile.velocity.X += 0.05f; - } - } - else - { - if (hostPlant.Center.X - Projectile.Center.X < 0) - { - Projectile.velocity.X -= 0.05f; - } - } - - if (Projectile.ai[0] % 2f == 0f) - { - if (hostPlant.Center.Y - Projectile.Center.Y > 0) - { - Projectile.velocity.Y += 0.05f; - } - } - else - { - if (hostPlant.Center.Y - Projectile.Center.Y < 0) - { - Projectile.velocity.Y -= 0.05f; - } - } - } - - public override void Kill(int timeLeft) - { - for (int i = 0; i < 10; i++) - { - Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, 107); - } - } - - public override bool PreDraw(ref Color lightColor) - { - if (Projectile.ai[1] < 0 || Projectile.ai[1] >= Main.maxProjectiles) - { - return false; - } - - // If something has gone wrong with either the tentacle or the host plant, return. - Projectile hostPlant = Main.projectile[(int)Projectile.ai[1]]; - if (Projectile.type != ModContent.ProjectileType() || !hostPlant.active || hostPlant.type != ModContent.ProjectileType()) - { - return false; - } - - Vector2 source = hostPlant.Center; - Texture2D chain = ModContent.Request("CalamityMod/Projectiles/Summon/PlantationChain").Value; - Vector2 goal = Projectile.Center; - Rectangle? sourceRectangle = null; - float textureHeight = (float)chain.Height; - Vector2 drawVector = source - goal; - float rotation = (float)Math.Atan2((double)drawVector.Y, (double)drawVector.X) - MathHelper.PiOver2; - bool shouldDraw = true; - if (float.IsNaN(goal.X) && float.IsNaN(goal.Y)) - { - shouldDraw = false; - } - if (float.IsNaN(drawVector.X) && float.IsNaN(drawVector.Y)) - { - shouldDraw = false; - } - while (shouldDraw) - { - if (drawVector.Length() < textureHeight + 1f) - { - shouldDraw = false; - } - else - { - Vector2 value2 = drawVector; - value2.Normalize(); - goal += value2 * textureHeight; - drawVector = source - goal; - Color color = Lighting.GetColor((int)goal.X / 16, (int)(goal.Y / 16f)); - Main.EntitySpriteDraw(chain, goal - Main.screenPosition, sourceRectangle, color, rotation, chain.Size() / 2f, 1f, SpriteEffects.None, 0); - } - } - return true; - } - - //It draws the host plant in here in order to have it draw over the tentacles - public override void PostDraw(Color lightColor) - { - //Only 1 tentacle needs to draw this, the last one spawned because it's latest in the projectile array. - if (Projectile.ai[0] < 5) - { - return; - } - - if (Projectile.ai[1] < 0 || Projectile.ai[1] >= Main.maxProjectiles) - { - return; - } - - // If something has gone wrong with either the tentacle or the host plant, return. - Projectile hostPlant = Main.projectile[(int)Projectile.ai[1]]; - if (Projectile.type != ModContent.ProjectileType() || !hostPlant.active || hostPlant.type != ModContent.ProjectileType()) - { - return; - } - - Texture2D texture = TextureAssets.Projectile[hostPlant.type].Value; - int height = texture.Height / Main.projFrames[hostPlant.type]; - int frameHeight = height * hostPlant.frame; - SpriteEffects spriteEffects = SpriteEffects.None; - if (hostPlant.spriteDirection == -1) - spriteEffects = SpriteEffects.FlipHorizontally; - Color color = Lighting.GetColor((int)hostPlant.Center.X / 16, (int)(hostPlant.Center.Y / 16f)); - - Main.EntitySpriteDraw(texture, hostPlant.Center - Main.screenPosition + new Vector2(0f, hostPlant.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), color, hostPlant.rotation, new Vector2((float)texture.Width / 2f, (float)height / 2f), hostPlant.scale, spriteEffects, 0); - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(BuffID.Poisoned, 120); - target.AddBuff(BuffID.Venom, 60); - } - - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - target.AddBuff(BuffID.Poisoned, 120); - target.AddBuff(BuffID.Venom, 60); - } - } -} diff --git a/Projectiles/Summon/PlantTentacle.png b/Projectiles/Summon/PlantTentacle.png deleted file mode 100644 index 78dbdaa9f69486f870bb0ae0f8e46a60cf62917a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1184 zcmV;R1Yi4!P)Px(T1iAfRA_J#J?){!iU$vRG+yh$ z9yt)g!J{6$+BETk2a{?%HZf6a>QanaY~99G{%A^5sW!`&!m{u@%>GzrcyB2rZ@|Rw zW#7!cH}5;Y{q20ezZr*Z@WLDEs^2foud2`6C9S_^yMcEL$LtV>;pY1Q9DckJfax5r z*8s^xoda;`Lf!>uwOrwcnuz4I>Ut0s<-oig+rgK0g zhQcf})S$H`za?v)dVNutyMZ!xx;lCQXgs7=sr$F;T=37&?|+)n+KaP_vCL?E^ezx& zjDNd%6@V@j^Y&EODZkkTXo(*H;J}M>o&zlW_&{9@>G^MOJ(ie98X^FMnpXfQ%)6fJ z@nhYN191CS^}Wp49%B%&KSp3hes|QR(9^ zsdwC%UeXv=)Y=>NeT7_H`)1t*7&)&PiaHBSwU+kY`HIdS*8wdQK`OxcaTij;2^`8laG0%L05lnMwn^`P}ua*Gz)<6~eSV71o$a497?BW})I6 zgsHRz_I(AQF%|zHj>z;A0{gx~E=)fm`3T-j1$*Z!Of`kp2xU)3*oSd|t8pU3IUAOJPZC9UfBQ)OwJ zknioSZlym|%`x_N9)OYaF<`4oo7KNSW-?B|j5oZSAl0uXvAFy<0I}Yi0|4KBn8@M* zb0)G25L}F}WWUxr?k%WQ?a`F_CrzL00H7&G8sOuvjsX?57TDXbFk>8RQ_3-SU8(jH z$yx{C&s@SDpnnt=0I7#=;Q7(}DB0Q@|;Ts40M;zLBu zJ5JOGtRM$lR7Lvx4W$s7A;o<7wd$TtAUoijYU*GWBxIg{_<1!y2P84JcMc*KJ3ar% z7?r3sU*U9h^tez_3W=epu`u&fXEVludpD=|WH(Sb{}Alka}dW=infGGlshw}hgvH( z?H$SUmaBi6L2H*fmrlO=*8o7{QB|9Ka-kD|&Pny_%YK|WroHN4)OPSaRW&8M;}Zax yXI>cq$mgae050X!$z^0o#k6GnB>$g-Y~WvI*xM6kLk=wf0000 "Projectiles.Summon"; - public override void SetStaticDefaults() - { - ProjectileID.Sets.MinionShot[Projectile.type] = true; - } - - public override void SetDefaults() - { - Projectile.width = 30; - Projectile.height = 30; - Projectile.friendly = true; - Projectile.penetrate = 3; - Projectile.timeLeft = 300; - Projectile.minion = true; - Projectile.aiStyle = ProjAIStyleID.GroundProjectile; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; - Projectile.extraUpdates = 1; - Projectile.DamageType = DamageClass.Summon; - } - - public override void AI() - { - if (Main.rand.NextBool(12)) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 44, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); - } - } - - public override bool OnTileCollide(Vector2 oldVelocity) - { - if (Projectile.velocity.X != oldVelocity.X) - { - Projectile.velocity.X = -oldVelocity.X * 1.001f; - } - if (Projectile.velocity.Y != oldVelocity.Y) - { - Projectile.velocity.Y = -oldVelocity.Y * 1.001f; - } - return false; - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(BuffID.Poisoned, 180); - if (Projectile.ai[1] == 1f) - target.AddBuff(BuffID.Venom, 90); - } - - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - target.AddBuff(BuffID.Poisoned, 180); - if (Projectile.ai[1] == 1f) - target.AddBuff(BuffID.Venom, 90); - } - } -} - diff --git a/Projectiles/Summon/PlantationStaffSeed.cs b/Projectiles/Summon/PlantationStaffSeed.cs new file mode 100644 index 0000000000..d3fe4e9631 --- /dev/null +++ b/Projectiles/Summon/PlantationStaffSeed.cs @@ -0,0 +1,71 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + [LegacyName("PlantSeedGreen")] + public class PlantationStaffSeed : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Summon"; + + public ref float RandomTexture => ref Projectile.ai[0]; + + public override void SetStaticDefaults() + { + Main.projFrames[Type] = 2; + ProjectileID.Sets.MinionShot[Type] = true; + ProjectileID.Sets.TrailingMode[Type] = 2; + ProjectileID.Sets.TrailCacheLength[Type] = 4; + } + + public override void SetDefaults() + { + Projectile.DamageType = DamageClass.Summon; + Projectile.width = Projectile.height = 14; + Projectile.timeLeft = 600; + + Projectile.friendly = true; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + } + + public override void AI() + { + DoAnimation(); + + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; + } + + #region AI Methods + + private void DoAnimation() + { + Projectile.frameCounter++; + if (Projectile.frameCounter >= 8) + { + Projectile.frameCounter = 0; + Projectile.frame = (Projectile.frame + 1) % Main.projFrames[Type]; + } + } + + #endregion + + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = (RandomTexture == 0f) ? ModContent.Request(Texture).Value : ModContent.Request("CalamityMod/Projectiles/Summon/PlantationStaffSeed2").Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + Vector2 origin = frame.Size() * 0.5f; + + if (CalamityConfig.Instance.Afterimages) + CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor); + + Main.EntitySpriteDraw(texture, drawPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + + return false; + } + } +} diff --git a/Projectiles/Summon/PlantSeedGreen.png b/Projectiles/Summon/PlantationStaffSeed.png similarity index 100% rename from Projectiles/Summon/PlantSeedGreen.png rename to Projectiles/Summon/PlantationStaffSeed.png diff --git a/Projectiles/Summon/PlantSeed.png b/Projectiles/Summon/PlantationStaffSeed2.png similarity index 100% rename from Projectiles/Summon/PlantSeed.png rename to Projectiles/Summon/PlantationStaffSeed2.png diff --git a/Projectiles/Summon/PlantationStaffSporeCloud.cs b/Projectiles/Summon/PlantationStaffSporeCloud.cs new file mode 100644 index 0000000000..8b42492385 --- /dev/null +++ b/Projectiles/Summon/PlantationStaffSporeCloud.cs @@ -0,0 +1,65 @@ +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + [LegacyName("PlantSporeCloud")] + public class PlantationStaffSporeCloud : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Summon"; + + public ref float RandomTexture => ref Projectile.ai[0]; + + public override void SetStaticDefaults() + { + ProjectileID.Sets.MinionShot[Type] = true; + } + + public override void SetDefaults() + { + Projectile.DamageType = DamageClass.Summon; + Projectile.idStaticNPCHitCooldown = 30; + Projectile.timeLeft = 600; + Projectile.width = Projectile.height = 32; + Projectile.penetrate = -1; + + Projectile.friendly = true; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.usesIDStaticNPCImmunity = true; + } + + public override void AI() + { + Projectile.velocity *= 0.985f; + Projectile.rotation += MathHelper.ToRadians(Projectile.velocity.X); + Projectile.alpha = (int)Utils.Remap(Projectile.timeLeft, 180f, 0f, 0f, 255f); + + if (Main.rand.NextBool(10)) + { + Particle smoke = new SmallSmokeParticle(Projectile.Center + Main.rand.NextVector2Circular(Projectile.width / 2, Projectile.height / 2), Main.rand.NextVector2Circular(1f, 1f), Color.Green, Color.DarkGreen, Utils.Remap(Projectile.timeLeft, 180f, 0f, 1.2f, 0.2f), Utils.Remap(Projectile.timeLeft, 180f, 0f, 150f, 0f)); + GeneralParticleHandler.SpawnParticle(smoke); + + Dust sporeDust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 46); + sporeDust.noGravity = true; + sporeDust.velocity = Vector2.Zero; + } + } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D tex = ModContent.Request(Texture).Value; + if (RandomTexture == 1f) + tex = ModContent.Request("CalamityMod/Projectiles/Summon/PlantationStaffSporeCloud2").Value; + if (RandomTexture == 2f) + tex = ModContent.Request("CalamityMod/Projectiles/Summon/PlantationStaffSporeCloud3").Value; + + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); + return false; + } + } +} diff --git a/Projectiles/Summon/PlantSporeCloud.png b/Projectiles/Summon/PlantationStaffSporeCloud.png similarity index 100% rename from Projectiles/Summon/PlantSporeCloud.png rename to Projectiles/Summon/PlantationStaffSporeCloud.png diff --git a/Projectiles/Summon/PlantSporeCloud2.png b/Projectiles/Summon/PlantationStaffSporeCloud2.png similarity index 100% rename from Projectiles/Summon/PlantSporeCloud2.png rename to Projectiles/Summon/PlantationStaffSporeCloud2.png diff --git a/Projectiles/Summon/PlantSporeCloud3.png b/Projectiles/Summon/PlantationStaffSporeCloud3.png similarity index 100% rename from Projectiles/Summon/PlantSporeCloud3.png rename to Projectiles/Summon/PlantationStaffSporeCloud3.png diff --git a/Projectiles/Summon/PlantationStaffSummon.cs b/Projectiles/Summon/PlantationStaffSummon.cs new file mode 100644 index 0000000000..97b77e784f --- /dev/null +++ b/Projectiles/Summon/PlantationStaffSummon.cs @@ -0,0 +1,358 @@ +using System; +using System.IO; +using CalamityMod.Buffs.Summon; +using CalamityMod.CalPlayer; +using CalamityMod.Items.Weapons.Summon; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + [LegacyName("PlantSummon")] + public class PlantationStaffSummon : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Summon"; + + public Player Owner => Main.player[Projectile.owner]; + public CalamityPlayer ModdedOwner => Owner.Calamity(); + public NPC Target => Owner.Center.MinionHoming(PlantationStaff.EnemyDistanceDetection, Owner); + + public enum AIState + { + Idle, + Thornball, + Seeds, + Ramming + } + public AIState State + { + get => (AIState)Projectile.ai[0]; + set => Projectile.ai[0] = (int)value; + } + public ref float AITimer => ref Projectile.ai[1]; + public ref float ShootSeedsTimer => ref Projectile.ai[2]; + public ref float ThornballsShot => ref Projectile.localAI[0]; + public ref float SeedBurstsShot => ref Projectile.localAI[1]; + + public override void SetStaticDefaults() + { + Main.projFrames[Type] = 8; + ProjectileID.Sets.MinionSacrificable[Type] = true; + ProjectileID.Sets.MinionTargettingFeature[Type] = true; + ProjectileID.Sets.TrailingMode[Type] = 2; + ProjectileID.Sets.TrailCacheLength[Type] = 4; + } + + public override void SetDefaults() + { + Projectile.DamageType = DamageClass.Summon; + Projectile.minionSlots = 3f; + Projectile.localNPCHitCooldown = 10; + Projectile.width = Projectile.height = 48; + Projectile.penetrate = -1; + + Projectile.friendly = true; + Projectile.minion = true; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.usesLocalNPCImmunity = true; + Projectile.netImportant = true; + } + + #region Variable Syncing + + public override void SendExtraAI(BinaryWriter writer) + { + writer.Write(ThornballsShot); + writer.Write(SeedBurstsShot); + } + + public override void ReceiveExtraAI(BinaryReader reader) + { + ThornballsShot = reader.ReadSingle(); + SeedBurstsShot = reader.ReadSingle(); + } + + #endregion + + public override void AI() + { + CheckMinionExistence(); + DoAnimation(); + + switch (State) + { + case AIState.Idle: + IdleState(); + break; + case AIState.Thornball: + ThornballState(); + break; + case AIState.Seeds: + SeedsState(); + break; + case AIState.Ramming: + RammingState(); + break; + } + } + + #region AI Methods + + private void IdleState() + { + // The projectile points towards its direction. + Projectile.rotation = Projectile.velocity.ToRotation(); + + // The minion will hover around the owner at a certain distance. + if (!Projectile.WithinRange(Owner.Center, 160f)) + { + Projectile.velocity = (Projectile.velocity + Projectile.SafeDirectionTo(Owner.Center)) * 0.9f; + Projectile.netUpdate = true; + } + + // If the owner starts to get far, the minion will follow straight to the owner. + if (!Projectile.WithinRange(Owner.Center, 320f)) + { + Projectile.velocity = Projectile.SafeDirectionTo(Owner.Center) * MathF.Max(PlantationStaff.ChargingSpeed, Owner.velocity.Length()); + Projectile.netUpdate = true; + } + + // If the owner's far enough, teleport the minion on the owner. + if (!Projectile.WithinRange(Owner.Center, PlantationStaff.EnemyDistanceDetection)) + { + Projectile.Center = Owner.Center; + Projectile.netUpdate = true; + } + + if (Target is not null) + SwitchState(AIState.Thornball); + } + + private void ThornballState() + { + if (Target is not null) + { + Vector2 targetDirection = Projectile.SafeDirectionTo(Target.Center); + + ShootingMovement(); + + AITimer++; + if (AITimer % PlantationStaff.ThornballFireRate == 0f && Main.myPlayer == Projectile.owner) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * PlantationStaff.ThornballSpeed, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Owner.whoAmI); + + // Flavor recoil effect. + Projectile.velocity -= targetDirection * 3f; + + ShootEffect(); + + SoundEngine.PlaySound(SoundID.Item17, Projectile.Center); + + ThornballsShot++; + Projectile.netUpdate = true; + } + + if (ThornballsShot >= PlantationStaff.ThornballAmount) + SwitchState(AIState.Seeds); + } + else + SwitchState(AIState.Idle); + } + + private void SeedsState() + { + if (Target is not null) + { + ShootingMovement(); + + AITimer++; + if (AITimer >= PlantationStaff.SeedBurstDelay) + { + ShootSeedsTimer++; + + if (ShootSeedsTimer % PlantationStaff.SeedBetweenBurstDelay == 0f && Main.myPlayer == Projectile.owner) + { + Vector2 velocity = CalamityUtils.CalculatePredictiveAimToTarget(Projectile.Center, Target, PlantationStaff.SeedSpeed); + + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Owner.whoAmI, Main.rand.Next(2)); + + // Flavor recoil effect. + Projectile.velocity -= velocity.SafeNormalize(Vector2.Zero) * 2f; + + ShootEffect(); + + SoundEngine.PlaySound(SoundID.Item17, Projectile.Center); + + Projectile.netUpdate = true; + } + + if (ShootSeedsTimer >= PlantationStaff.SeedBetweenBurstDelay * PlantationStaff.SeedAmountPerBurst) + { + AITimer = 0f; + ShootSeedsTimer = 0f; + SeedBurstsShot++; + Projectile.netUpdate = true; + } + } + + if (SeedBurstsShot >= PlantationStaff.SeedBurstAmount) + SwitchState(AIState.Ramming); + } + else + SwitchState(AIState.Idle); + } + + private void RammingState() + { + if (Target is not null) + { + AITimer++; + if (AITimer <= PlantationStaff.TimeBeforeRamming) + { + // The minion slows down to give a flavor effect of preparation. + Projectile.velocity *= 0.985f; + } + else + { + // If the minion's not withing a certain range of the target, go towards it. + // When it reaches that range, the velocity will not change anymore until they hit + // the outside range, repeating this process and giving the effect of ramming. + if (!Projectile.WithinRange(Target.Center, 400f)) + RamMovement(); + + // But, if the minion was already inside the target when it appeared, + // meaning it doesn't have the velocity to go to the outside range. + // We'll make it ram once to be start the effect of ramming, + // with an amount of grace so the minion doesn't change it's velocity constantly. + else if (Projectile.velocity.Length() < PlantationStaff.ChargingSpeed - 5f) + RamMovement(); + + if (AITimer >= PlantationStaff.RamTime + PlantationStaff.TimeBeforeRamming) + SwitchState(AIState.Thornball); + } + } + else + SwitchState(AIState.Idle); + } + + private void ShootingMovement() + { + Vector2 targetDirection = Projectile.SafeDirectionTo(Target.Center); + + // The minion will look towards the target. + Projectile.rotation = targetDirection.ToRotation(); + + // If the minion is not within a certain range of the target, go towards it. + if (!Projectile.WithinRange(Target.Center, 480f)) + { + Projectile.velocity = (Projectile.velocity * 30f + targetDirection * PlantationStaff.ChargingSpeed) / 31f; + Projectile.netUpdate = true; + } + + // But if the minion gets to close, separate it from the target. + if (Projectile.WithinRange(Target.Center, 400f)) + { + Projectile.velocity = (Projectile.velocity * 30f + -targetDirection * PlantationStaff.ChargingSpeed) / 31f; + Projectile.netUpdate = true; + } + } + + private void RamMovement() + { + Projectile.velocity = Projectile.SafeDirectionTo(Target.Center) * PlantationStaff.ChargingSpeed; + Projectile.rotation = Projectile.velocity.ToRotation(); + Projectile.netUpdate = true; + } + + private void SwitchState(AIState state) + { + State = state; + AITimer = 0f; + ThornballsShot = 0f; + ShootSeedsTimer = 0f; + SeedBurstsShot = 0f; + + if (state == AIState.Ramming) + { + int sporeCloudAmount = 12; + for (int sporeCloudIndex = 0; sporeCloudIndex < sporeCloudAmount; sporeCloudIndex++) + { + float angle = MathHelper.TwoPi / sporeCloudAmount * sporeCloudIndex; + Vector2 velocity = angle.ToRotationVector2() * PlantationStaff.SporeStartVelocity; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), Projectile.damage, 10f, Owner.whoAmI, Main.rand.Next(3)); + } + + int tentacleAmount = 6; + for (int tentacleIndex = 0; tentacleIndex < tentacleAmount; tentacleIndex++) + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Owner.whoAmI, tentacleIndex, Projectile.whoAmI); + + SoundEngine.PlaySound(SoundID.Roar with { Volume = .3f, Pitch = 1f, PitchVariance = .1f }, Projectile.Center); + } + + Projectile.netUpdate = true; + } + + private void CheckMinionExistence() + { + Owner.AddBuff(ModContent.BuffType(), 2); + if (Type != ModContent.ProjectileType()) + return; + + if (Owner.dead) + ModdedOwner.PlantationSummon = false; + if (ModdedOwner.PlantationSummon) + Projectile.timeLeft = 2; + } + + private void DoAnimation() + { + Projectile.frameCounter++; + if (Projectile.frameCounter >= 8) + { + Projectile.frameCounter = 0; + + Projectile.frame = (Projectile.frame + 1) % Main.projFrames[Type]; + + if (State == AIState.Ramming && Projectile.frame < 4) + Projectile.frame = 4; + + if (State != AIState.Ramming && Projectile.frame > 3) + Projectile.frame = 0; + } + } + + private void ShootEffect() + { + for (int i = 0; i < 5; i++) + Dust.NewDustPerfect(Projectile.Center, 40, Projectile.rotation.ToRotationVector2().RotatedByRandom(MathHelper.PiOver4) * Main.rand.NextFloat(3f, 5f)); + } + + #endregion + + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + if (State == AIState.Ramming) + modifiers.SourceDamage *= 2; + } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + Rectangle frame = texture.Frame(1, Main.projFrames[Type], 0, Projectile.frame); + Vector2 origin = frame.Size() * 0.5f; + + if (State == AIState.Ramming && CalamityConfig.Instance.Afterimages) + CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor); + + Main.EntitySpriteDraw(texture, drawPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + + return false; + } + } +} diff --git a/Projectiles/Summon/PlantationStaffSummon.png b/Projectiles/Summon/PlantationStaffSummon.png new file mode 100644 index 0000000000000000000000000000000000000000..9fb833b4e56378bc1a06677e1f19ec81ddc1a377 GIT binary patch literal 8849 zcmV;CB5vJ@P) zaB^>EX>4U6ba`-PAZ2)IW&i+q+O3-DjV!rxh5yqEnZPZ`pgCLtc_8!ko$9{pn)+S+6zk{f=U@5$6TkoQ zdZ<5s%zQ7uj%@e)_{r<`>kYkrzrOx_J@ozcL-y|zegA4jO`Rn!c z{d*YSZlZ#(YX4lo_;2bLf2^$hDo6OL?DqlfuR49dp6svJ%g@W?KUS3T&nxHOSLFU{ zX@A%6z2ooQue+PI1`6(T)pp_+NZuL ze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;uWoZ66eF>#Pd2hm?U6q7ZXyNJFUZsiSAw!=gVFflVa|)0|4Xa$^mny z#WhP6I=V}R?u|g3e4=7!UCD8Joj9M%i95htw<^V2#&)yj=2;y%R7tL%cvRdk)aWPn zI8Ob;a}b(302I1fd40&-Zq`MC6Z6Tk93M8fGMCnV;-G$FLL+s3#H0h2shZh2agP3B zp(tvcWCgetf@in+Y+cd;ib5aY#NIW{I8Tx+-szD-FXDW@koP!WRp#70iZCY{<$c5t zuKi?i;>O)5-g6!kbwTz6b8>E7EM#atko11yBiMgze7rjzP7GuP zsZV=9@wXop`vQh84c7tSt-3!ZTl*wm5MtPu%Q&VmfYMnHnc1w2~-$6Q0uE zPaL(Mm?)EXuP3^nIB4!PRVApJ!6j;OVjU$lcbYy&5}2PG%ht`vZdU1qr1lfXoj1Cy zrz|}Cm^dyw_yAq|so}&S=T1+Im9vKvhq68vCr(=eN$)3)J9j#BIB{zGiLD=q>IaDP zY2n1WxzqDwp>noxVkfANn8!kC&7I~nFCQ> "Projectiles.Summon"; + + public Player Owner => Main.player[Projectile.owner]; + public CalamityPlayer ModdedOwner => Owner.Calamity(); + public NPC Target => Projectile.Center.MinionHoming(PlantationStaff.EnemyDistanceDetection, Owner); + public Projectile MainMinion => Main.projectile[(int)MainMinionIndex]; + + public ref float TentacleIndex => ref Projectile.ai[0]; + public ref float MainMinionIndex => ref Projectile.ai[1]; + public ref float AITimer => ref Projectile.localAI[0]; + public enum AIState + { + Attached, + Seeking + } + public AIState State + { + get => (AIState)Projectile.ai[2]; + set => Projectile.ai[2] = (int)value; + } + + public Vector2 DesiredLocation; + + public override void SetStaticDefaults() + { + Main.projFrames[Type] = 4; + ProjectileID.Sets.MinionShot[Type] = true; + ProjectileID.Sets.TrailingMode[Type] = 2; + ProjectileID.Sets.TrailCacheLength[Type] = 4; + } + + public override void SetDefaults() + { + Projectile.DamageType = DamageClass.Summon; + Projectile.localNPCHitCooldown = -1; + Projectile.width = Projectile.height = 22; + Projectile.penetrate = -1; + + Projectile.friendly = true; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.usesLocalNPCImmunity = true; + Projectile.netImportant = true; + } + + #region Variable Syncing + + public override void SendExtraAI(BinaryWriter writer) + { + writer.Write(AITimer); + writer.WritePackedVector2(DesiredLocation); + } + + public override void ReceiveExtraAI(BinaryReader reader) + { + AITimer = reader.ReadSingle(); + DesiredLocation = reader.ReadPackedVector2(); + } + + #endregion + + public override void AI() + { + CheckMinionExistence(); + DoAnimation(); + + switch (State) + { + case AIState.Attached: + AttachedState(); + break; + case AIState.Seeking: + SeekingState(); + break; + } + } + + #region AI Methods + + private void AttachedState() + { + AITimer++; + float interpolant = Utils.Remap(AITimer, 0f, PlantationStaff.TimeBeforeRamming, 0f, .4f); + + Projectile.Center = Vector2.Lerp(Projectile.Center, MainMinion.Center + DesiredLocation, interpolant); + Projectile.rotation = (Projectile.Center - MainMinion.Center).ToRotation(); + + for (int i = 0; i < Main.maxProjectiles; i++) + { + Projectile proj = Main.projectile[i]; + if (proj is not null && proj.active && proj.type == ModContent.ProjectileType() && proj.owner == Owner.whoAmI && proj.ModProjectile().State != PlantationStaffSummon.AIState.Ramming) + { + State = AIState.Seeking; + AITimer = 0f; + Projectile.velocity = Vector2.Zero; + Projectile.penetrate = 1; + + for (int dustIndex = 0; dustIndex < 20; dustIndex++) + Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 40); + + SoundEngine.PlaySound(SoundID.NPCDeath1, Projectile.Center); + + Projectile.netUpdate = true; + } + } + } + + private void SeekingState() + { + if (Target is not null) + { + AITimer++; + + if (AITimer <= 30f) + { + Projectile.velocity = Projectile.rotation.ToRotationVector2() * 10f; + } + else + { + Projectile.velocity = (Projectile.velocity * 35f + Projectile.SafeDirectionTo(Target.Center) * PlantationStaff.TentacleSpeed) / 36f; + Projectile.rotation = Projectile.velocity.ToRotation(); + } + } + else + Projectile.Kill(); + } + + private void CheckMinionExistence() + { + if (Projectile.ai[1] < 0 || Projectile.ai[1] >= Main.maxProjectiles) + { + Projectile.Kill(); + return; + } + + // If something has gone wrong with either the tentacle or the host plant, destroy the projectile. + if (Projectile.type != ModContent.ProjectileType() || !MainMinion.active || MainMinion.type != ModContent.ProjectileType()) + { + Projectile.Kill(); + return; + } + + if (ModdedOwner.PlantationSummon) + Projectile.timeLeft = 2; + } + + private void DoAnimation() + { + Projectile.frameCounter++; + if (Projectile.frameCounter >= 3) + { + Projectile.frameCounter = 0; + Projectile.frame = (Projectile.frame + 1) % Main.projFrames[Type]; + } + } + + #endregion + + public override void OnSpawn(IEntitySource source) + { + DesiredLocation = (MathHelper.TwoPi / 6f * TentacleIndex).ToRotationVector2().RotatedByRandom(MathHelper.PiOver4 / 1.5f) * 100f; + Projectile.netUpdate = true; + } + + public override bool? CanDamage() => (State == AIState.Seeking) ? null : false; + + public override void Kill(int timeLeft) + { + for (int i = 0; i < 10; i++) + Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 40); + } + + public override bool PreDraw(ref Color lightColor) + { + if (Projectile.ai[1] < 0 || Projectile.ai[1] >= Main.maxProjectiles) + return false; + + // If something has gone wrong with either the tentacle or the host plant, return. + if (Type != ModContent.ProjectileType() || !MainMinion.active || MainMinion.type != ModContent.ProjectileType()) + return false; + + if (State == AIState.Attached) + { + Vector2 source = MainMinion.Center; + Texture2D chain = ModContent.Request("CalamityMod/Projectiles/Summon/PlantationStaffTentacleChain").Value; + Vector2 goal = Projectile.Center; + Rectangle? sourceRectangle = null; + float textureHeight = chain.Height; + Vector2 drawVector = source - goal; + float rotation = drawVector.ToRotation() - MathHelper.PiOver2; + bool shouldDraw = true; + if (float.IsNaN(goal.X) && float.IsNaN(goal.Y)) + { + shouldDraw = false; + } + if (float.IsNaN(drawVector.X) && float.IsNaN(drawVector.Y)) + { + shouldDraw = false; + } + while (shouldDraw) + { + if (drawVector.Length() < textureHeight + 1f) + { + shouldDraw = false; + } + else + { + Vector2 value2 = drawVector; + value2.Normalize(); + goal += value2 * textureHeight; + drawVector = source - goal; + Color color = Lighting.GetColor((int)goal.X / 16, (int)(goal.Y / 16f)); + Main.EntitySpriteDraw(chain, goal - Main.screenPosition, sourceRectangle, color, rotation, chain.Size() / 2f, 1f, SpriteEffects.None, 0); + } + } + } + else if (CalamityConfig.Instance.Afterimages) + CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor); + + return true; + } + + // It draws the host plant in here in order to have it draw over the tentacles. + public override void PostDraw(Color lightColor) + { + // Only 1 tentacle needs to draw this, the last one spawned because it's latest in the projectile array. + if (TentacleIndex < 5) + return; + + if (MainMinionIndex < 0 || MainMinionIndex >= Main.maxProjectiles) + return; + + // If something has gone wrong with either the tentacle or the host plant, return. + if (Projectile.type != ModContent.ProjectileType() || !MainMinion.active || MainMinion.type != ModContent.ProjectileType()) + return; + + Texture2D texture = TextureAssets.Projectile[MainMinion.type].Value; + int height = texture.Height / Main.projFrames[MainMinion.type]; + int frameHeight = height * MainMinion.frame; + SpriteEffects spriteEffects = SpriteEffects.None; + if (MainMinion.spriteDirection == -1) + spriteEffects = SpriteEffects.FlipHorizontally; + Color color = Lighting.GetColor((int)MainMinion.Center.X / 16, (int)(MainMinion.Center.Y / 16f)); + + Main.EntitySpriteDraw(texture, MainMinion.Center - Main.screenPosition + new Vector2(0f, MainMinion.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), color, MainMinion.rotation, new Vector2((float)texture.Width / 2f, (float)height / 2f), MainMinion.scale, spriteEffects, 0); + } + } +} diff --git a/Projectiles/Summon/PlantationStaffTentacle.png b/Projectiles/Summon/PlantationStaffTentacle.png new file mode 100644 index 0000000000000000000000000000000000000000..014c3fd8b43a4db6f6c8f2c034e063d5091ee9bc GIT binary patch literal 7262 zcmV-k9HHZhP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+O3*tl4L1%h5xe(EdjWU%V9Lr4zzrI2lpH*tGdlv zri_f~#d99q;SAvJ{Lg=1_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0{{R3 literal 0 HcmV?d00001 diff --git a/Projectiles/Summon/PlantationChain.png b/Projectiles/Summon/PlantationStaffTentacleChain.png similarity index 100% rename from Projectiles/Summon/PlantationChain.png rename to Projectiles/Summon/PlantationStaffTentacleChain.png diff --git a/Projectiles/Summon/PlantationStaffThornball.cs b/Projectiles/Summon/PlantationStaffThornball.cs new file mode 100644 index 0000000000..16433663fd --- /dev/null +++ b/Projectiles/Summon/PlantationStaffThornball.cs @@ -0,0 +1,82 @@ +using CalamityMod.Items.Weapons.Summon; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Summon +{ + [LegacyName("PlantThornBall")] + public class PlantationStaffThornball : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Summon"; + + public Player Owner => Main.player[Projectile.owner]; + public NPC Target => Projectile.Center.MinionHoming(PlantationStaff.EnemyDistanceDetection, Owner); + + public ref float IsSticked => ref Projectile.ai[0]; + + public override void SetStaticDefaults() + { + ProjectileID.Sets.MinionShot[Type] = true; + } + + public override void SetDefaults() + { + Projectile.DamageType = DamageClass.Summon; + Projectile.localNPCHitCooldown = 60; + Projectile.width = Projectile.height = 30; + Projectile.timeLeft = 300; + Projectile.penetrate = -1; + + Projectile.friendly = true; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.usesLocalNPCImmunity = true; + } + + public override void AI() + { + if (IsSticked == 0f) + { + // Home towards the target, if there's one. + if (Target is not null) + Projectile.velocity = (Projectile.velocity * 25f + Projectile.SafeDirectionTo(Target.Center) * PlantationStaff.ThornballSpeed) / 26f; + + Projectile.rotation += MathHelper.ToRadians(Projectile.velocity.X); + } + else + { + // Making the projectile's velocity same as the target's means it stays with it and moves with it, + // giving it an effect of attachment. + if (Target is not null) + Projectile.velocity = Target.velocity; + else + Projectile.Kill(); + } + } + + #region AI Methods + + #endregion + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + // If the projectile hits once after it's attached: die. + if (IsSticked == 1f) + Projectile.Kill(); + + // On enemy hit, make it stick. + IsSticked = 1f; + + Projectile.netUpdate = true; + } + + public override void Kill(int timeLeft) + { + for (int dustIndex = 0; dustIndex < 10; dustIndex++) + Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 40, newColor: Color.Pink); + } + } +} + diff --git a/Projectiles/Summon/PlantThornBall.png b/Projectiles/Summon/PlantationStaffThornball.png similarity index 100% rename from Projectiles/Summon/PlantThornBall.png rename to Projectiles/Summon/PlantationStaffThornball.png From 3e62af2b9c57ac37a0d05e5e30cd75e7e8c0009d Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:00:12 +0200 Subject: [PATCH 228/258] Slight tweaks. --- Projectiles/Summon/PlantationStaffSeed.cs | 11 ++++++-- .../Summon/PlantationStaffSporeCloud.cs | 1 + Projectiles/Summon/PlantationStaffSummon.cs | 11 +++----- Projectiles/Summon/PlantationStaffTentacle.cs | 25 ++++++++++--------- 4 files changed, 26 insertions(+), 22 deletions(-) diff --git a/Projectiles/Summon/PlantationStaffSeed.cs b/Projectiles/Summon/PlantationStaffSeed.cs index d3fe4e9631..a747f93ece 100644 --- a/Projectiles/Summon/PlantationStaffSeed.cs +++ b/Projectiles/Summon/PlantationStaffSeed.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Projectiles.Summon Main.projFrames[Type] = 2; ProjectileID.Sets.MinionShot[Type] = true; ProjectileID.Sets.TrailingMode[Type] = 2; - ProjectileID.Sets.TrailCacheLength[Type] = 4; + ProjectileID.Sets.TrailCacheLength[Type] = 3; } public override void SetDefaults() @@ -61,7 +61,14 @@ namespace CalamityMod.Projectiles.Summon Vector2 origin = frame.Size() * 0.5f; if (CalamityConfig.Instance.Afterimages) - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Type], lightColor); + { + for (int i = 0; i < Projectile.oldPos.Length; i++) + { + Color afterimageDrawColor = ((RandomTexture == 0f) ? Color.Green : Color.Pink) with { A = 25 } * Projectile.Opacity * (1f - i / (float)Projectile.oldPos.Length); + Vector2 afterimageDrawPosition = Projectile.oldPos[i] + Projectile.Size * 0.5f - Main.screenPosition; + Main.EntitySpriteDraw(texture, afterimageDrawPosition, frame, afterimageDrawColor, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + } + } Main.EntitySpriteDraw(texture, drawPosition, frame, Projectile.GetAlpha(lightColor), Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); diff --git a/Projectiles/Summon/PlantationStaffSporeCloud.cs b/Projectiles/Summon/PlantationStaffSporeCloud.cs index 8b42492385..c7a50b74f8 100644 --- a/Projectiles/Summon/PlantationStaffSporeCloud.cs +++ b/Projectiles/Summon/PlantationStaffSporeCloud.cs @@ -47,6 +47,7 @@ namespace CalamityMod.Projectiles.Summon Dust sporeDust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 46); sporeDust.noGravity = true; sporeDust.velocity = Vector2.Zero; + sporeDust.alpha = (int)Utils.Remap(Projectile.timeLeft, 180f, 0f, 0f, 255f); } } diff --git a/Projectiles/Summon/PlantationStaffSummon.cs b/Projectiles/Summon/PlantationStaffSummon.cs index 97b77e784f..6f797c19a3 100644 --- a/Projectiles/Summon/PlantationStaffSummon.cs +++ b/Projectiles/Summon/PlantationStaffSummon.cs @@ -35,8 +35,7 @@ namespace CalamityMod.Projectiles.Summon } public ref float AITimer => ref Projectile.ai[1]; public ref float ShootSeedsTimer => ref Projectile.ai[2]; - public ref float ThornballsShot => ref Projectile.localAI[0]; - public ref float SeedBurstsShot => ref Projectile.localAI[1]; + public ref float SeedBurstsShot => ref Projectile.localAI[0]; public override void SetStaticDefaults() { @@ -67,13 +66,11 @@ namespace CalamityMod.Projectiles.Summon public override void SendExtraAI(BinaryWriter writer) { - writer.Write(ThornballsShot); writer.Write(SeedBurstsShot); } public override void ReceiveExtraAI(BinaryReader reader) { - ThornballsShot = reader.ReadSingle(); SeedBurstsShot = reader.ReadSingle(); } @@ -118,7 +115,7 @@ namespace CalamityMod.Projectiles.Summon // If the owner starts to get far, the minion will follow straight to the owner. if (!Projectile.WithinRange(Owner.Center, 320f)) { - Projectile.velocity = Projectile.SafeDirectionTo(Owner.Center) * MathF.Max(PlantationStaff.ChargingSpeed, Owner.velocity.Length()); + Projectile.velocity = Projectile.SafeDirectionTo(Owner.Center) * MathF.Max(5f, Owner.velocity.Length()); Projectile.netUpdate = true; } @@ -153,11 +150,10 @@ namespace CalamityMod.Projectiles.Summon SoundEngine.PlaySound(SoundID.Item17, Projectile.Center); - ThornballsShot++; Projectile.netUpdate = true; } - if (ThornballsShot >= PlantationStaff.ThornballAmount) + if (AITimer >= PlantationStaff.ThornballAmount * PlantationStaff.ThornballFireRate) SwitchState(AIState.Seeds); } else @@ -273,7 +269,6 @@ namespace CalamityMod.Projectiles.Summon { State = state; AITimer = 0f; - ThornballsShot = 0f; ShootSeedsTimer = 0f; SeedBurstsShot = 0f; diff --git a/Projectiles/Summon/PlantationStaffTentacle.cs b/Projectiles/Summon/PlantationStaffTentacle.cs index f949601a24..d602261544 100644 --- a/Projectiles/Summon/PlantationStaffTentacle.cs +++ b/Projectiles/Summon/PlantationStaffTentacle.cs @@ -105,20 +105,21 @@ namespace CalamityMod.Projectiles.Summon for (int i = 0; i < Main.maxProjectiles; i++) { Projectile proj = Main.projectile[i]; - if (proj is not null && proj.active && proj.type == ModContent.ProjectileType() && proj.owner == Owner.whoAmI && proj.ModProjectile().State != PlantationStaffSummon.AIState.Ramming) - { - State = AIState.Seeking; - AITimer = 0f; - Projectile.velocity = Vector2.Zero; - Projectile.penetrate = 1; - for (int dustIndex = 0; dustIndex < 20; dustIndex++) - Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 40); + if (proj is null || !proj.active || proj.owner != Owner.whoAmI || proj.type != ModContent.ProjectileType() || proj.ModProjectile().State == PlantationStaffSummon.AIState.Ramming) + continue; - SoundEngine.PlaySound(SoundID.NPCDeath1, Projectile.Center); + State = AIState.Seeking; + AITimer = 0f; + Projectile.velocity = Vector2.Zero; + Projectile.penetrate = 1; - Projectile.netUpdate = true; - } + for (int dustIndex = 0; dustIndex < 20; dustIndex++) + Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 40); + + SoundEngine.PlaySound(SoundID.NPCDeath1, Projectile.Center); + + Projectile.netUpdate = true; } } @@ -189,7 +190,7 @@ namespace CalamityMod.Projectiles.Summon public override bool PreDraw(ref Color lightColor) { - if (Projectile.ai[1] < 0 || Projectile.ai[1] >= Main.maxProjectiles) + if (MainMinionIndex < 0 || MainMinionIndex >= Main.maxProjectiles) return false; // If something has gone wrong with either the tentacle or the host plant, return. From a13419cd223b488e41b9391c26b7d0e0f34682b7 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 5 Sep 2023 23:33:12 -0400 Subject: [PATCH 229/258] More Sand Sharknado changes lol lmao --- Items/Weapons/Summon/SandSharknadoStaff.cs | 2 +- Projectiles/Summon/MiniSandShark.cs | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Items/Weapons/Summon/SandSharknadoStaff.cs b/Items/Weapons/Summon/SandSharknadoStaff.cs index 95807064b4..4ad7821460 100644 --- a/Items/Weapons/Summon/SandSharknadoStaff.cs +++ b/Items/Weapons/Summon/SandSharknadoStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - Item.damage = 47; + Item.damage = 94; Item.knockBack = 2f; Item.mana = 10; diff --git a/Projectiles/Summon/MiniSandShark.cs b/Projectiles/Summon/MiniSandShark.cs index 939e5d60a1..d8acacc493 100644 --- a/Projectiles/Summon/MiniSandShark.cs +++ b/Projectiles/Summon/MiniSandShark.cs @@ -36,16 +36,6 @@ namespace CalamityMod.Projectiles.Summon public override void Kill(int timeLeft) // When the projectile hits an enemy, it'll make a dust impact effect. { - Projectile.position = Projectile.Center; - Projectile.width = Projectile.height = 64; - Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); - Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); - Projectile.maxPenetrate = -1; - Projectile.penetrate = -1; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; - Projectile.damage = (int)(Projectile.damage * 0.6f); - Projectile.Damage(); SoundEngine.PlaySound(SoundID.Item14, Projectile.position); for (int dustIndex = 0; dustIndex < 36; dustIndex++) { From ed90198138a461477e246146d7e37146ab96ccb7 Mon Sep 17 00:00:00 2001 From: Xyk Date: Tue, 5 Sep 2023 23:08:12 -0700 Subject: [PATCH 230/258] Reworked Luminous Striker into Reality Rupture Also has many small changes to Spear of Destiny because I found a few issues --- Items/Weapons/Rogue/LuminousStriker.cs | 51 -------- Items/Weapons/Rogue/NightsGaze.cs | 2 +- Items/Weapons/Rogue/PhantasmalRuin.cs | 1 - Items/Weapons/Rogue/RealityRupture.cs | 95 +++++++++++++++ ...LuminousStriker.png => RealityRupture.png} | Bin Items/Weapons/Rogue/ScarletDevil.cs | 2 +- Items/Weapons/Rogue/SpearofDestiny.cs | 6 +- ....CalamityMod.Items.Accessories.Wings.hjson | 2 +- ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 10 +- .../Mods.CalamityMod.Projectiles.Rogue.hjson | 6 +- Particles/Crack.png | Bin 0 -> 7858 bytes Particles/CrackParticle.cs | 55 +++++++++ Projectiles/Rogue/LanceofDestiny.cs | 4 +- Projectiles/Rogue/LuminousShard.cs | 54 --------- Projectiles/Rogue/LuminousShard.png | Bin 281 -> 0 bytes Projectiles/Rogue/LuminousStrikerProj.cs | 110 ----------------- Projectiles/Rogue/RealityRuptureLance.cs | 92 +++++++++++++++ Projectiles/Rogue/RealityRuptureMini.cs | 111 ++++++++++++++++++ Projectiles/Rogue/RealityRuptureMini.png | Bin 0 -> 3403 bytes Projectiles/Rogue/RealityRuptureStealth.cs | 102 ++++++++++++++++ Projectiles/Rogue/SpearofDestinyStealth.cs | 21 +++- Sounds/Item/LanceofDestiny.ogg | Bin 17427 -> 13772 bytes Sounds/Item/LanceofDestinyStrong.ogg | Bin 0 -> 17427 bytes Sounds/Item/RealityRupture.ogg | Bin 0 -> 11591 bytes ...yStealth.ogg => RealityRuptureStealth.ogg} | Bin Sounds/Item/RealityRuptureStealthHit.ogg | Bin 0 -> 16301 bytes Sounds/Item/SpearofDestiny.ogg | Bin 11591 -> 7910 bytes 27 files changed, 488 insertions(+), 236 deletions(-) delete mode 100644 Items/Weapons/Rogue/LuminousStriker.cs create mode 100644 Items/Weapons/Rogue/RealityRupture.cs rename Items/Weapons/Rogue/{LuminousStriker.png => RealityRupture.png} (100%) create mode 100644 Particles/Crack.png create mode 100644 Particles/CrackParticle.cs delete mode 100644 Projectiles/Rogue/LuminousShard.cs delete mode 100644 Projectiles/Rogue/LuminousShard.png delete mode 100644 Projectiles/Rogue/LuminousStrikerProj.cs create mode 100644 Projectiles/Rogue/RealityRuptureLance.cs create mode 100644 Projectiles/Rogue/RealityRuptureMini.cs create mode 100644 Projectiles/Rogue/RealityRuptureMini.png create mode 100644 Projectiles/Rogue/RealityRuptureStealth.cs create mode 100644 Sounds/Item/LanceofDestinyStrong.ogg create mode 100644 Sounds/Item/RealityRupture.ogg rename Sounds/Item/{SpearofDestinyStealth.ogg => RealityRuptureStealth.ogg} (100%) create mode 100644 Sounds/Item/RealityRuptureStealthHit.ogg diff --git a/Items/Weapons/Rogue/LuminousStriker.cs b/Items/Weapons/Rogue/LuminousStriker.cs deleted file mode 100644 index c7dd292705..0000000000 --- a/Items/Weapons/Rogue/LuminousStriker.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Terraria.DataStructures; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Rogue; -using Microsoft.Xna.Framework; - -namespace CalamityMod.Items.Weapons.Rogue -{ - public class LuminousStriker : RogueWeapon - { - public override void SetDefaults() - { - Item.width = 86; - Item.height = 102; - Item.damage = 186; - Item.noMelee = true; - Item.noUseGraphic = true; - Item.useAnimation = 30; - Item.useStyle = ItemUseStyleID.Swing; - Item.useTime = 30; - Item.knockBack = 6f; - Item.UseSound = SoundID.Item1; - Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; - Item.rare = ItemRarityID.Red; - Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 20f; - Item.DamageType = RogueDamageClass.Instance; - } - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); - if (Main.projectile.IndexInRange(proj)) - Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable(); - return false; - } - - public override void AddRecipes() - { - CreateRecipe(). - AddIngredient(). - AddIngredient(). - AddIngredient(ItemID.FragmentStardust, 6). - AddTile(TileID.LunarCraftingStation). - Register(); - } - } -} diff --git a/Items/Weapons/Rogue/NightsGaze.cs b/Items/Weapons/Rogue/NightsGaze.cs index 3ec957ff83..cfb744fc9f 100644 --- a/Items/Weapons/Rogue/NightsGaze.cs +++ b/Items/Weapons/Rogue/NightsGaze.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void AddRecipes() { CreateRecipe(). - AddIngredient(ItemID.DayBreak). + AddIngredient(). AddIngredient(7). AddIngredient(4). AddIngredient(12). diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index 14c4a67902..286e6b6235 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -50,7 +50,6 @@ namespace CalamityMod.Items.Weapons.Rogue public override void AddRecipes() { CreateRecipe(). - AddIngredient(). AddIngredient(500). AddIngredient(4). AddIngredient(20). diff --git a/Items/Weapons/Rogue/RealityRupture.cs b/Items/Weapons/Rogue/RealityRupture.cs new file mode 100644 index 0000000000..e487b604e5 --- /dev/null +++ b/Items/Weapons/Rogue/RealityRupture.cs @@ -0,0 +1,95 @@ +using Terraria.DataStructures; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.Materials; +using CalamityMod.Projectiles.Rogue; +using Microsoft.Xna.Framework; +using Terraria.Audio; +using CalamityMod.Rarities; + +namespace CalamityMod.Items.Weapons.Rogue +{ + [LegacyName("LuminousStriker")] + public class RealityRupture : RogueWeapon + { + public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/RealityRupture") { Volume = 0.3f, PitchVariance = 0.3f }; + public static readonly SoundStyle ThrowSound2 = new("CalamityMod/Sounds/Item/LanceofDestinyStrong") { Volume = 0.4f, PitchVariance = 0.3f }; + public static readonly SoundStyle ThrowSound3 = new("CalamityMod/Sounds/Item/RealityRuptureStealth") { Volume = 0.5f, PitchVariance = 0.3f }; + private bool BigSpear = false; + public override void SetDefaults() + { + Item.width = 86; + Item.height = 102; + Item.damage = 215; + Item.noMelee = true; + Item.noUseGraphic = true; + Item.useAnimation = 43; + Item.useStyle = ItemUseStyleID.Swing; + Item.useTime = 43; + Item.knockBack = 9f; + Item.UseSound = SoundID.Item1; + Item.autoReuse = true; + Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.rare = ModContent.RarityType(); + Item.shoot = ModContent.ProjectileType(); + Item.shootSpeed = 10f; + Item.DamageType = RogueDamageClass.Instance; + } + public override float StealthDamageMultiplier => 4f; + public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) + { + if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike + { + int stealth = Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI); + SoundEngine.PlaySound(ThrowSound3, player.Center); + if (stealth.WithinBounds(Main.maxProjectiles)) + { + Main.projectile[stealth].Calamity().stealthStrike = true; + Main.projectile[stealth].usesLocalNPCImmunity = true; + } + return false; + } + else + { + int projType = BigSpear ? ModContent.ProjectileType() : type; + + if (!BigSpear) + SoundEngine.PlaySound(ThrowSound, player.Center); + else + SoundEngine.PlaySound(ThrowSound2, player.Center); + + if (BigSpear) + { + Projectile.NewProjectile(source, position, velocity, projType, BigSpear ? damage * 4 : damage, knockback * 1.5f, player.whoAmI); + } + int index = 4; + for (int i = -index; i <= index; i += index) + { + if (!BigSpear) + { + Vector2 perturbedSpeed = velocity.RotatedBy(MathHelper.ToRadians(i)); + int spear = Projectile.NewProjectile(source, position, perturbedSpeed, projType, damage, knockback, player.whoAmI); + if (spear.WithinBounds(Main.maxProjectiles)) + Main.projectile[spear].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable(); + } + } + + // Swap between firing small and big spears each throw. + BigSpear = !BigSpear; + return false; + } + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(). + AddIngredient(). + AddIngredient(). + AddIngredient(). + AddTile(TileID.LunarCraftingStation). + Register(); + } + } +} diff --git a/Items/Weapons/Rogue/LuminousStriker.png b/Items/Weapons/Rogue/RealityRupture.png similarity index 100% rename from Items/Weapons/Rogue/LuminousStriker.png rename to Items/Weapons/Rogue/RealityRupture.png diff --git a/Items/Weapons/Rogue/ScarletDevil.cs b/Items/Weapons/Rogue/ScarletDevil.cs index a3d3471546..17aa26466f 100644 --- a/Items/Weapons/Rogue/ScarletDevil.cs +++ b/Items/Weapons/Rogue/ScarletDevil.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Rogue { CreateRecipe(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(15). AddIngredient(ItemID.SoulofNight, 15). AddIngredient(5). diff --git a/Items/Weapons/Rogue/SpearofDestiny.cs b/Items/Weapons/Rogue/SpearofDestiny.cs index e6b02c20e6..7cc25f365f 100644 --- a/Items/Weapons/Rogue/SpearofDestiny.cs +++ b/Items/Weapons/Rogue/SpearofDestiny.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/SpearofDestiny") { Volume = 0.3f, PitchVariance = 0.3f }; public static readonly SoundStyle ThrowSound2 = new("CalamityMod/Sounds/Item/LanceofDestiny") { Volume = 0.4f, PitchVariance = 0.3f }; - public static readonly SoundStyle ThrowSound3 = new("CalamityMod/Sounds/Item/SpearofDestinyStealth") { Volume = 0.5f, PitchVariance = 0.3f }; + public static readonly SoundStyle ThrowSound3 = new("CalamityMod/Sounds/Item/LanceofDestinyStrong") { Volume = 0.5f, PitchVariance = 0.3f }; private bool BigSpear = false; public override void SetDefaults() { @@ -21,9 +21,9 @@ namespace CalamityMod.Items.Weapons.Rogue Item.damage = 53; Item.noMelee = true; Item.noUseGraphic = true; - Item.useAnimation = 43; + Item.useAnimation = 45; Item.useStyle = ItemUseStyleID.Swing; - Item.useTime = 43; + Item.useTime = 45; Item.knockBack = 2f; Item.UseSound = ThrowSound; Item.autoReuse = true; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.Wings.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.Wings.hjson index 53a9782fa8..085932e823 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.Wings.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.Wings.hjson @@ -149,7 +149,7 @@ TarragonWings: { Acceleration multiplier: 2.5 Great vertical speed Flight time: 250 - +15 defense and +2 life regen while wearing the Tarragon Armor + +15 defense and +1 HP/s life regen while wearing the Tarragon Armor 'Born of the jungle' ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index fc13deb0cf..db7b8dea37 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -693,14 +693,12 @@ Lionfish: { ''' } -LuminousStriker: { - DisplayName: Luminous Striker +RealityRupture: { + DisplayName: Reality Rupture Tooltip: ''' - Throws a stardust javelin trailed by rising stardust shards - Explodes into additional stardust shards upon hitting enemies - Stealth strikes cause the stardust shards to fly alongside the javelin instead of rising - 'Send the stars back to where they belong' + Cycles between throwing 3 small homing spears and throwing a single piercing lance + Stealth Strikes throw a high-velocity reality shattering lance that explodes on hit ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson index c9ddaaf986..948434ab6e 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson @@ -172,7 +172,7 @@ LeviathanTooth.DisplayName: Leviathan Tooth LionfishProj.DisplayName: Lionfish LostSoulFriendly.DisplayName: Lost Soul LuminousShard.DisplayName: Stardust Shard -LuminousStrikerProj.DisplayName: Luminous Striker +RealityRuptureLance.DisplayName: Lance of Reality LunarKunaiProj.DisplayName: Kunai LuxorsGiftRogue.DisplayName: Gift MalachiteBolt.DisplayName: Malachite @@ -328,4 +328,6 @@ WulfrumKnifeProj.DisplayName: Knife WaveSkipperProjectile.DisplayName: Scourge LanceofDestiny.DisplayName: Holy Lance SpearofDestinyStealth.DisplayName: Empowered Holy Lance -SpearofDestinyStealthExplosion.DisplayName: Holy Blast \ No newline at end of file +SpearofDestinyStealthExplosion.DisplayName: Strong Burst +RealityRuptureMini.DisplayName: Reality Shard +RealityRuptureStealth.DisplayName: Ruptured Reality \ No newline at end of file diff --git a/Particles/Crack.png b/Particles/Crack.png new file mode 100644 index 0000000000000000000000000000000000000000..ef945142ec61f53ec0ba41e602238591f03e10be GIT binary patch literal 7858 zcmeHrpPz%5lLr74qOw!HbhH;qBF5VU+BA~zqQ6Wy z*l8guV7DnGa39H*^w|B2+eH&{(jh@H z{VawC^`Z2ie5zyIN@H|}!Mu9O?icLFe%Be+xI&k_p`zr&?qgfl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AdditiveBlend => true; + public override bool SetLifetime => true; + public override bool UseCustomDraw => true; + + private float OriginalScale; + private float FinalScale; + private Vector2 Squish; + private Color BaseColor; + public int Stop = 0; + + public CrackParticle(Vector2 position, Vector2 velocity, Color color, Vector2 squish, float rotation, float originalScale, float finalScale, int lifeTime) + { + Position = position; + Velocity = velocity; + BaseColor = color; + OriginalScale = originalScale; + FinalScale = finalScale; + Scale = originalScale; + Lifetime = lifeTime; + Squish = squish; + Rotation = rotation; + } + + public override void Update() + { + if (Velocity != Vector2.Zero) + Rotation = Velocity.ToRotation() + MathHelper.PiOver2; + ++Stop; + float pulseProgress = PiecewiseAnimation(LifetimeCompletion, new CurveSegment[] { new CurveSegment(EasingType.PolyOut, 0f, 0f, 1f, 4) }); + Scale = MathHelper.Lerp(OriginalScale, FinalScale, pulseProgress); + if (Stop > 1) + Velocity *= 0; + Color = BaseColor; + } + + public override void CustomDraw(SpriteBatch spriteBatch) + { + Texture2D tex = ModContent.Request(Texture).Value; + spriteBatch.Draw(tex, Position - Main.screenPosition, null, Color, Rotation, tex.Size() / 2f, Scale * Squish, SpriteEffects.None, 0); + } + + } +} diff --git a/Projectiles/Rogue/LanceofDestiny.cs b/Projectiles/Rogue/LanceofDestiny.cs index aad998b31f..d496bff2c9 100644 --- a/Projectiles/Rogue/LanceofDestiny.cs +++ b/Projectiles/Rogue/LanceofDestiny.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Projectiles.Rogue public int Time = 0; public override void SetDefaults() { - Projectile.width = 14; - Projectile.height = 14; + Projectile.width = 20; + Projectile.height = 20; Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.penetrate = 6; diff --git a/Projectiles/Rogue/LuminousShard.cs b/Projectiles/Rogue/LuminousShard.cs deleted file mode 100644 index fdfc7cfd08..0000000000 --- a/Projectiles/Rogue/LuminousShard.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Rogue -{ - public class LuminousShard : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Rogue"; - bool gravity = false; - - public override void SetDefaults() - { - Projectile.width = 10; - Projectile.height = 18; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.penetrate = 1; - Projectile.timeLeft = 120; - Projectile.DamageType = RogueDamageClass.Instance; - } - - public override bool? CanHitNPC(NPC target) => Projectile.timeLeft < 90 && target.CanBeChasedBy(Projectile); - - public override void AI() - { - if (Projectile.ai[0] == 0f && Projectile.velocity.X == 0f && Projectile.velocity.Y == -2f) - gravity = true; - - Projectile.ai[0] = 1f; - Projectile.rotation = (float)Math.Atan2(Projectile.velocity.Y, Projectile.velocity.X) + MathHelper.PiOver2; - - if (gravity) - Projectile.velocity.Y *= 1.05f; - - if (Projectile.timeLeft < 90) - CalamityUtils.HomeInOnNPC(Projectile, true, 600f, 10f, 20f); - } - - public override void Kill(int timeLeft) - { - for (int i = 0; i <= 2; i++) - { - int num195 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 176, Projectile.oldVelocity.X / 4, Projectile.oldVelocity.Y / 4, 0, default, 0.75f); - Main.dust[num195].noGravity = true; - Main.dust[num195].velocity *= 3f; - num195 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 177, Projectile.oldVelocity.X / 4, Projectile.oldVelocity.Y / 4, 0, default, 0.75f); - Main.dust[num195].noGravity = true; - Main.dust[num195].velocity *= 3f; - } - } - } -} diff --git a/Projectiles/Rogue/LuminousShard.png b/Projectiles/Rogue/LuminousShard.png deleted file mode 100644 index c41a23916968887356dd219521b9a8101dc18521..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 281 zcmeAS@N?(olHy`uVBq!ia0vp^Ahr+(8<0%e?(Yqx7>k44ofy`glX(f`u%tWsIx;Y9 z?C1WI$O`0h7I;J!GcfQS24TkI`72U@g6lk8978mMlcxlJOJiURWtTRn{e58K{{TDX zDg28hW*krvWXMwzXzF!{L8tR$DgIPSi6ujx8l5gm{2?5ySPY-|jt XWQ~|28#ev~x}3q&)z4*}Q$iB}dCOj| diff --git a/Projectiles/Rogue/LuminousStrikerProj.cs b/Projectiles/Rogue/LuminousStrikerProj.cs deleted file mode 100644 index bf416c93ae..0000000000 --- a/Projectiles/Rogue/LuminousStrikerProj.cs +++ /dev/null @@ -1,110 +0,0 @@ -using System; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Rogue -{ - public class LuminousStrikerProj : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Rogue"; - public override string Texture => "CalamityMod/Items/Weapons/Rogue/LuminousStriker"; - - public override void SetStaticDefaults() - { - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6; - ProjectileID.Sets.TrailingMode[Projectile.type] = 0; - } - - public override void SetDefaults() - { - Projectile.width = 30; - Projectile.height = 30; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.penetrate = 4; - Projectile.localNPCHitCooldown = 13; - Projectile.usesLocalNPCImmunity = true; - Projectile.timeLeft = 120; - Projectile.DamageType = RogueDamageClass.Instance; - } - - public override void AI() - { - if (Projectile.ai[0] == 0f && Projectile.Calamity().stealthStrike) - { - Projectile.timeLeft = 600; - Projectile.ai[0] = 1f; - } - - if (Main.rand.NextBool(4)) - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 176, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); - - Projectile.rotation = (float)Math.Atan2(Projectile.velocity.Y, Projectile.velocity.X) + MathHelper.PiOver4; - - if (Projectile.timeLeft % 4 == 0) - { - if (Projectile.owner == Main.myPlayer) - { - if (Projectile.Calamity().stealthStrike) - { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X + Main.rand.NextFloat(-15f, 15f), Projectile.Center.Y + Main.rand.NextFloat(-15f, 15f), Projectile.velocity.X, Projectile.velocity.Y, ModContent.ProjectileType(), (int)(Projectile.damage * 0.25), Projectile.knockBack * 0.25f, Projectile.owner); - } - else - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, Projectile.velocity.X * 0f, -2f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.25), Projectile.knockBack * 0.25f, Projectile.owner); - } - } - } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); - return false; - } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - if (Projectile.owner == Main.myPlayer) - { - for (int i = 0; i < 7; i++) - { - Vector2 speed = new Vector2(Main.rand.Next(-50, 51), Main.rand.Next(-50, 51)); - while (speed.X == 0f && speed.Y == 0f) - { - speed = new Vector2(Main.rand.Next(-50, 51), Main.rand.Next(-50, 51)); - } - speed.Normalize(); - speed *= Main.rand.Next(30, 61) * 0.1f * 2f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), (int)(Projectile.damage * 0.25), Projectile.knockBack * 0.25f, Projectile.owner); - } - } - } - - public override void OnHitPlayer(Player target, Player.HurtInfo info) - { - if (Projectile.owner == Main.myPlayer) - { - for (int i = 0; i < 7; i++) - { - Vector2 speed = new Vector2(Main.rand.Next(-50, 51), Main.rand.Next(-50, 51)); - while (speed.X == 0f && speed.Y == 0f) - { - speed = new Vector2(Main.rand.Next(-50, 51), Main.rand.Next(-50, 51)); - } - speed.Normalize(); - speed *= Main.rand.Next(30, 61) * 0.1f * 2f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, speed.X, speed.Y, ModContent.ProjectileType(), (int)(Projectile.damage * 0.25), Projectile.knockBack * 0.25f, Projectile.owner); - } - } - } - - public override void Kill(int timeLeft) - { - for (int i = 0; i <= 10; i++) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 176, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); - } - } - } -} diff --git a/Projectiles/Rogue/RealityRuptureLance.cs b/Projectiles/Rogue/RealityRuptureLance.cs new file mode 100644 index 0000000000..524d425efb --- /dev/null +++ b/Projectiles/Rogue/RealityRuptureLance.cs @@ -0,0 +1,92 @@ +using System; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class RealityRuptureLance : ModProjectile, ILocalizedModType + { + public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/NPCKilled/DevourerSegmentBreak2") { Volume = 0.6f, PitchVariance = 0.3f }; + public new string LocalizationCategory => "Projectiles.Rogue"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/RealityRupture"; + public int Time = 0; + public ref float Timer => ref Projectile.ai[0]; + public override void SetDefaults() + { + Projectile.width = 30; + Projectile.height = 30; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.penetrate = 8; + Projectile.timeLeft = 900; + Projectile.aiStyle = 0; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 50; + Projectile.tileCollide = false; + Projectile.extraUpdates = 5; + } + + public override void AI() + { + Timer++; + Time++; + Lighting.AddLight(Projectile.Center + Projectile.velocity * 0.6f, 0.6f, 0.2f, 0.9f); + float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(10f, 50f, Time, true)); + for (int i = 0; i < 9; i++) + { + float offsetRotationAngle = Projectile.velocity.ToRotation() + Time / 20f; + float radius = (20f + (float)Math.Cos(Time / 3f) * 12f) * radiusFactor; + Vector2 dustPosition = Projectile.Center; + dustPosition += offsetRotationAngle.ToRotationVector2().RotatedBy(i / 5f * MathHelper.TwoPi) * radius; + Dust dust = Dust.NewDustPerfect(dustPosition, Main.rand.NextBool(2) ? 234 : 310); + dust.noGravity = true; + dust.velocity = Projectile.velocity * 0.8f; + dust.scale = Main.rand.NextFloat(1.1f, 1.7f); + } + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; + } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + + int frameHeight = texture.Height / Main.projFrames[Projectile.type]; + int frameY = frameHeight * Projectile.frame; + float scale = Projectile.scale; + float rotation = Projectile.rotation; + + Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight); + Vector2 origin = rectangle.Size() / 2f; + Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), rectangle, Color.White, rotation, origin, scale, SpriteEffects.None, 0); + return false; + } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + for (int i = 0; i <= 4; i++) + { + Dust dust2 = Main.dust[Dust.NewDust(target.position, Projectile.width, Projectile.height, Main.rand.NextBool(4) ? 242 : 310, Projectile.oldVelocity.X * Main.rand.NextFloat(1.1f, 1.3f), Projectile.oldVelocity.Y * Main.rand.NextFloat(1.1f, 1.3f), 0, default, 1.1f)]; + } + SoundEngine.PlaySound(Hitsound, Projectile.position); + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + Projectile.damage = (int)(Projectile.damage * 0.95f); + if (Projectile.damage < 1) + Projectile.damage = 1; + } + public override void Kill(int timeLeft) + { + for (int i = 0; i <= 9; i++) + { + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 272, Projectile.oldVelocity.X * 0.3f, Projectile.oldVelocity.Y * 0.3f, 0, default, Main.rand.NextFloat(1.2f, 1.6f)); + } + } + } +} diff --git a/Projectiles/Rogue/RealityRuptureMini.cs b/Projectiles/Rogue/RealityRuptureMini.cs new file mode 100644 index 0000000000..ce6d4397f6 --- /dev/null +++ b/Projectiles/Rogue/RealityRuptureMini.cs @@ -0,0 +1,111 @@ +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class RealityRuptureMini : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Rogue"; + public override string Texture => "CalamityMod/Projectiles/Rogue/RealityRuptureMini"; + public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/WulfrumKnifeTileHit2") { PitchVariance = 0.3f, Volume = 0.5f }; + + public int framesInAir = 0; + public int SparkChance = 7; + + public override void SetDefaults() + { + Projectile.width = 34; + Projectile.height = 34; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.penetrate = 3; + Projectile.timeLeft = 800; + AIType = 0; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 10; + Projectile.extraUpdates = 3; + Projectile.tileCollide = false; + } + + public override void AI() + { + framesInAir++; + if (framesInAir < 120) + { + Lighting.AddLight(Projectile.Center + Projectile.velocity * 0.6f, 0.6f, 0.2f, 0.5f); + } + + if (Main.rand.NextBool(SparkChance)) + { + Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-3, default) * 0.1f - Projectile.velocity / 2f; + Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default); + SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(12, 15), Main.rand.NextFloat(0.6f, 0.8f), Color.Plum); + GeneralParticleHandler.SpawnParticle(spark); + + } + if (Main.rand.NextBool(SparkChance)) + { + Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(3, default) * 0.1f - Projectile.velocity / 2f; + Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default); + SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.6f, 0.8f), Color.Plum); + GeneralParticleHandler.SpawnParticle(spark2); + } + + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; + + Vector2 center = Projectile.Center; + float maxDistance = 350f; + bool homeIn = false; + + for (int i = 0; i < Main.maxNPCs; i++) + { + if (Main.npc[i].CanBeChasedBy(Projectile, false)) + { + float extraDistance = (float)(Main.npc[i].width / 2) + (float)(Main.npc[i].height / 2); + bool canHit = Projectile.Calamity().stealthStrike || Collision.CanHit(Projectile.Center, 1, 1, Main.npc[i].Center, 1, 1); + + if (Vector2.Distance(Main.npc[i].Center, Projectile.Center) < (maxDistance + extraDistance) && canHit) + { + center = Main.npc[i].Center; + homeIn = true; + break; + } + } + } + + if (homeIn) + { + SparkChance = 14; + Projectile.extraUpdates = 4; + Vector2 moveDirection = Projectile.SafeDirectionTo(center, Vector2.UnitY); + Projectile.velocity = (Projectile.velocity * 20f + moveDirection * 12f) / (21f); + } + } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + for (int i = 0; i <= 2; i++) + { + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 272, Projectile.oldVelocity.X * Main.rand.NextFloat(1.1f, 1.3f), Projectile.oldVelocity.Y * Main.rand.NextFloat(1.1f, 1.3f)); + } + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + Projectile.damage = (int)(Projectile.damage * 0.8f); + if (Projectile.damage < 1) + Projectile.damage = 1; + } + public override void Kill(int timeLeft) + { + SoundEngine.PlaySound(Hitsound, Projectile.position); + } + + //public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Ichor, 120); + } +} diff --git a/Projectiles/Rogue/RealityRuptureMini.png b/Projectiles/Rogue/RealityRuptureMini.png new file mode 100644 index 0000000000000000000000000000000000000000..bc7b3f676749a81e0f8b7a2c141221db247682bf GIT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0D$NK0Cg|`0P0`>06Lfe02gqax=}m;000SaNLh0L01FZT01FZU(%pXi0000RbVXQn zQ*UN;cVTj607GSLb9r+hQ*?D?X>TA@Z*OeDr{R1600LJ@L_t(oh2_1SVFgfHvkQRU z_K*c&6&z$uOP>O0JstueI;z*dZM#TeL8OYvgKh(Gzw;dcePiJ(N+K&F5dv)#OiRKLvjJm_iMnFP5QX*?%iVj`uqHW2q3im z8~~M(m;sOoq_)be#C;H7ahdVLo8h>X3GnLqV*p0_4`u{ptHeDJ0n~0i3P7Z54*(O3 z76Iu)dEL`v{60A}U_i1};(UkzDwov&Fn3`!0C!@i0C@k=1Hg`wW*~hiXU*2ojUDYk z`X5)eI1iEwAgQYF0$}*&0b~8?BYkY=huZ+C+ZW0c$fU{o)32}F4?y(NVPgaP@svm< z#np#^^lLs>oC8@h$D;s}V?H2NjeKg!tz#QV1@!1`7}l* z(6fXd!rQO?#)blr<1WMcy8!1xB=(AYem$fzobd@k10oej{uJPRh#h3lckl9X1-J*2 h4JMc4cmW&-`2qC~bJxc$*Wv&G002ovPDHLkV1kDCcuoKS literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/RealityRuptureStealth.cs b/Projectiles/Rogue/RealityRuptureStealth.cs new file mode 100644 index 0000000000..d5c0e1887f --- /dev/null +++ b/Projectiles/Rogue/RealityRuptureStealth.cs @@ -0,0 +1,102 @@ +using CalamityMod.Particles; +using CalamityMod.Projectiles.Melee; +using CalamityMod.Projectiles.Pets; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Mono.Cecil; +using System; +using System.Reflection.Metadata; +using Terraria; +using Terraria.Audio; +using Terraria.Graphics.Shaders; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Rogue +{ + public class RealityRuptureStealth : ModProjectile, ILocalizedModType + { + public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/RealityRuptureStealthHit") { Volume = 0.7f, PitchVariance = 0.3f}; + public new string LocalizationCategory => "Projectiles.Rogue"; + public override string Texture => "CalamityMod/Items/Weapons/Rogue/RealityRupture"; + public bool posthit = false; + public int Time = 0; + public override void SetDefaults() + { + Projectile.width = 43; + Projectile.height = 43; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.penetrate = 1; + Projectile.timeLeft = 900; + Projectile.aiStyle = 0; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 50; + Projectile.tileCollide = false; + Projectile.extraUpdates = 7; + } + + public override void AI() + { + Time++; + Projectile.velocity *= 1.003f; + Projectile.scale = 1.3f; + + if (Main.rand.NextBool(2)) + { + Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-2.5f, default) * 0.1f - Projectile.velocity / 2f; + Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default); + SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(22, 25), Main.rand.NextFloat(1.2f, 1.9f), Color.Plum); + GeneralParticleHandler.SpawnParticle(spark); + + } + if (Main.rand.NextBool(2)) + { + Vector2 SparkVelocity2 = Projectile.velocity.RotatedBy(2.5f, default) * 0.1f - Projectile.velocity / 2f; + Vector2 SparkPosition2 = Projectile.velocity.RotatedBy(0.8, default); + SparkParticle spark2 = new SparkParticle(Projectile.Center + SparkPosition2, SparkVelocity2, false, Main.rand.Next(22, 25), Main.rand.NextFloat(1.2f, 1.9f), Color.Plum); + GeneralParticleHandler.SpawnParticle(spark2); + } + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; + } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + SoundEngine.PlaySound(Hitsound, Projectile.position); + posthit = true; + for (int i = 0; i < 7; i++) + { + Vector2 vel = Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(20f)); + float Scale = Main.rand.NextFloat(0.8f, 3.8f); + CrackParticle crack = new CrackParticle(Projectile.Center, vel, Color.Plum, new Vector2(1f, 1f), 0, Scale, Scale - 0.5f, Main.rand.Next(18, 23)); + GeneralParticleHandler.SpawnParticle(crack); + } + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 0f, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack * 2, Projectile.owner, 0f); + Main.player[Projectile.owner].Calamity().GeneralScreenShakePower = 8; + } + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + + int frameHeight = texture.Height / Main.projFrames[Projectile.type]; + int frameY = frameHeight * Projectile.frame; + float scale = Projectile.scale; + float rotation = Projectile.rotation; + + Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight); + Vector2 origin = rectangle.Size() / 2f; + Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), rectangle, Color.White, rotation, origin, scale, SpriteEffects.None, 0); + return false; + } + public override void Kill(int timeLeft) + { + for (int i = 0; i <= 15; i++) + { + Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 272, Projectile.oldVelocity.X * 0.3f, Projectile.oldVelocity.Y * 0.3f, 0, default, Main.rand.NextFloat(1.7f, 2.1f)); + } + Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, Color.Plum, new Vector2(2f, 2f), Main.rand.NextFloat(12f, 25f), 0.1f, 1f, 13); + GeneralParticleHandler.SpawnParticle(pulse); + } + } +} diff --git a/Projectiles/Rogue/SpearofDestinyStealth.cs b/Projectiles/Rogue/SpearofDestinyStealth.cs index b4c6c16a4a..0033d3317b 100644 --- a/Projectiles/Rogue/SpearofDestinyStealth.cs +++ b/Projectiles/Rogue/SpearofDestinyStealth.cs @@ -16,7 +16,6 @@ namespace CalamityMod.Projectiles.Rogue { public class SpearofDestinyStealth : ModProjectile, ILocalizedModType { - internal PrimitiveTrail TrailDrawer; public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/BlazingCoreParry") { Volume = 0.7f, PitchVariance = 0.3f}; public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Projectiles/Rogue/LanceofDestiny"; @@ -25,8 +24,8 @@ namespace CalamityMod.Projectiles.Rogue public ref float Timer => ref Projectile.ai[0]; public override void SetDefaults() { - Projectile.width = 14; - Projectile.height = 14; + Projectile.width = 23; + Projectile.height = 23; Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.penetrate = 1; @@ -85,6 +84,20 @@ namespace CalamityMod.Projectiles.Rogue dust2.velocity.X += Main.rand.NextFloat(-3f, 3f); } Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 0f, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack * 2, Projectile.owner, 0f); - } + } + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + + int frameHeight = texture.Height / Main.projFrames[Projectile.type]; + int frameY = frameHeight * Projectile.frame; + float scale = Projectile.scale; + float rotation = Projectile.rotation; + + Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight); + Vector2 origin = rectangle.Size() / 2f; + Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), rectangle, Color.White, rotation, origin, scale, SpriteEffects.None, 0); + return false; + } } } diff --git a/Sounds/Item/LanceofDestiny.ogg b/Sounds/Item/LanceofDestiny.ogg index 2108fb4a18ba1f6b8538b13f9b2dd1b6ca28a624..bee16d01adf3ac4fca37a6fe0fd0fc6c1f7657a9 100644 GIT binary patch delta 9806 zcmXYXWmFwa)9oMuf(Ca;2=4B1Ai*uT1b27WgS)#!aCZ$JEV#Q9+~weQdEW2#ub!SY zYwcB4UA1f1B!ohZS`z#)HB|zjf&ah!iT-bsv6UbjN5F{u-!s(v(GDgGqX)N~AVCBO2re--5yWEJEUX6O9M$xF!3&dp2XICVO@zn^Z5zP^ql_6?{8;Tow1S;4EllH(-wcY2_x`=<1}3ep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iB5bR3Ft)jou;bs^InyJs)j*EpoS5dz(El4~Km(HhKhS^y zD@*&guct8aG0{mF`mG(!RP{)zUwk=tl5uV;Au09dq&)uvY(V_TO`rw)tF-g=u0i-F z>tl3njfcKY>19C4Gj)Xy{@c7R3U0N&e_IkjN6;5iEN%ylju3`WkUFdP*bN0bwqs*p zmZu@NZFz%H^$e1P{D~qQhfsJ9stk>>hesFpj2>`ABXYU5`<(R6G|II)bl!>X)CR{5 z@DCT5#b3eGmKEFdR`pfk3)Gc?c+N0|g0F=E{=O!2w_~Fu{Iq;ot%2Fkd0W|{mczW7 z2wTB5jJF90m&aFIU|LbeGOz?Gs2202@2BS=`u-@A!Zm7NCY*P^X-_^>w9mx|Uas|< z#+*-<4%o%AAO0JsS6bna;h{n2iI-bct7#>p<8R2{T(fINdut7Jg=LK?4UkEk|8&Mt z;aZ5QDS}`JD9e|mR?xw55#!`%VTpL7mwgg0whjNc*Oq83ZuNY&=zfqyx;&emoZB`&&BV0ZA%rjlRT#4l=C)PZt)6Y;A4I$NRwrM~>b_%|3`!y!IM#Ph37o mwGyM@__A^>V+xH;9K*CrP+g&~7qaUEsGeeS7~shT0RIDmhQA^J diff --git a/Sounds/Item/LanceofDestinyStrong.ogg b/Sounds/Item/LanceofDestinyStrong.ogg new file mode 100644 index 0000000000000000000000000000000000000000..2108fb4a18ba1f6b8538b13f9b2dd1b6ca28a624 GIT binary patch literal 17427 zcmaj{1z1(V_b>`?x*L?1?rxASrQy)s-6<^yNcW*bx;v#&x{+>_77#^R>f7k=AK!cL z^WOc;8D`I#S+i!;oZZZ9-Jhypf;#@wMUbb$|PL7sN9*l@!KWy;lXlm!|W^CqW>SQ6}=)%MG46IXk zw(@vm>SigTXzFFfE5OFj$HvLQf%Vkd)(LFwW$ET_>+B@LK@3)zJ3G3Vdf1vdSpLJ} z{)C3p*4^2W2!u*NH00DZM3ijJ-JIP)v=pyQ9W5!OwIKK)P(w~bQAPw}>uyisY()Vv zwRNK4foYnUQLk?VU=va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*rRSd!Oh!5Ol%2a2kLvN`nQ9vc`nw027jD3`tq~f&wubM z7p$mVlPT||YY+KxfL~Nbd~(l+u1r>zfVXv-$M;SaS}#6nC6}%)Grb)tE1}hl_w#0> zRLmKCq&ShEk`PPP#8^lzoRwB|P1ecq-SV+)?IS6T3f6(g@^62|KXk`RnzOdC<~=Id zYe|+Ga_Zwf6XpMY_=qod30GznI%OKXarmX!X>ZkQ<-~y#kO;8d?ao@cS9Exn-#R4l z_FaJWq&9Wd`aY8vub1ax0Wayp zd&W+Zx*@d>6e<&seHJ51ZA!%LPJunYrMTKz(NX5XJh91}}C@*8*PM#T;i zweD+KA}7`Gu^+ptu<%Vce8BY2EMQ>+Y5u1kn)V~EO*GaaBY7J*mj@3YORVZ&<1t}! zW)W7;Ul)noac!h->?C{1d+<&$gdwfWiLQI%Rgrep1W?f{OgFq8k0+CHYINW%rJC^Q YMftb$@orWudfjVFjZrehK_tNc0csH=Q~&?~ literal 0 HcmV?d00001 diff --git a/Sounds/Item/SpearofDestinyStealth.ogg b/Sounds/Item/RealityRuptureStealth.ogg similarity index 100% rename from Sounds/Item/SpearofDestinyStealth.ogg rename to Sounds/Item/RealityRuptureStealth.ogg diff --git a/Sounds/Item/RealityRuptureStealthHit.ogg b/Sounds/Item/RealityRuptureStealthHit.ogg new file mode 100644 index 0000000000000000000000000000000000000000..62467822ea7fcde24483125f539e6e5e0ff40ec2 GIT binary patch literal 16301 zcmajG1y~-j(=WO}ad$1!VlP%)i(7GbcXumLC@n6Am`yR`rB zJKsI`KIiNcLN>FRBs0I6OtSkbSy`z8u)u$=JCuI~^tXJ3Fyt_vPOhdlZckM(0WJS| z#0%zcp%F&uspWrPPc5G)g%LZnSo4qnuWJDAA0tkXu5IIN&7$OLMQLwis`-~ar3@uI zD?2MI4=X1ny{d(|hnbC|6{V!3r;V$Vql1N`I|Ko2M*#k*Ia#`UnYdaA%A0sva`Ce8 zaI>(nvSNW02NPQ-S0htb6GwAF2WL)p%%?gVN3hP*!q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L9d`&ZuRVaJx>J5rcy}|2W}@;v8O-Ffp34KTr!M&MWH={u z$l#CrF8m`|w&+n_H;2U8*rRSd!Oh!5Ol%2a2kLvN`nQ9vc`nw027jD3`tq~f&wubM z7p$mVlPT||YY+KxfL~Nbd~(l+u1r>zfVXv-$M;SaS}#6nC6}%)Grb)tE1}hl_w#0> zRLmKCq&ShEk`PPP#8^lzoRwB|P1ecq-SV+)?IS6T3f6(g@^62|KXk`RnzOdC<~=Id zYe|+Ga_Zwf6XpMY_=qod30GznI%OKXarmX!X>ZkQ<-~y#kO;8d?ao@cS9Exn-#R4l z_FaJWq&9Wd`aY8vub1ax0Wayp zd&W+Zx*@d>6e<&seHJ51ZA!%LPJunYrMTKz(NX5XJh91}}C@*8*PM#T;i zweD+KA}7`Gu^+ptu<%Vce8BY2EMQ>+Y5u1kn)V~EO*GaaBY7J*mj@3YORVZ&<1t}! zW)W7;Ul)noac!h->?C{1d+<&$gdwfWiLQI%Rgrep1W?f{OgFq8k0+CHYINW%rJC^Q YMftb$@orWudfjVFjZrehK_tNc0csH=Q~&?~ From 5f85495d4205255c36e125fc17e933c220aa81be Mon Sep 17 00:00:00 2001 From: Xyk Date: Wed, 6 Sep 2023 01:08:27 -0700 Subject: [PATCH 231/258] Small bug fixes/adjustments to SoD and RR --- Items/Weapons/Rogue/RealityRupture.cs | 4 ++-- Items/Weapons/Rogue/SpearofDestiny.cs | 2 +- Projectiles/Rogue/SpearofDestinyProjectile.cs | 16 +++++++++++++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Rogue/RealityRupture.cs b/Items/Weapons/Rogue/RealityRupture.cs index e487b604e5..7267ef024b 100644 --- a/Items/Weapons/Rogue/RealityRupture.cs +++ b/Items/Weapons/Rogue/RealityRupture.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 86; Item.height = 102; - Item.damage = 215; + Item.damage = 225; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = 43; @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 10f; Item.DamageType = RogueDamageClass.Instance; } - public override float StealthDamageMultiplier => 4f; + public override float StealthDamageMultiplier => 3.9f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike diff --git a/Items/Weapons/Rogue/SpearofDestiny.cs b/Items/Weapons/Rogue/SpearofDestiny.cs index 7cc25f365f..f9b316085b 100644 --- a/Items/Weapons/Rogue/SpearofDestiny.cs +++ b/Items/Weapons/Rogue/SpearofDestiny.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue public class SpearofDestiny : RogueWeapon { public static readonly SoundStyle ThrowSound = new("CalamityMod/Sounds/Item/SpearofDestiny") { Volume = 0.3f, PitchVariance = 0.3f }; - public static readonly SoundStyle ThrowSound2 = new("CalamityMod/Sounds/Item/LanceofDestiny") { Volume = 0.4f, PitchVariance = 0.3f }; + public static readonly SoundStyle ThrowSound2 = new("CalamityMod/Sounds/Item/LanceofDestiny") { Volume = 0.3f, PitchVariance = 0.3f }; public static readonly SoundStyle ThrowSound3 = new("CalamityMod/Sounds/Item/LanceofDestinyStrong") { Volume = 0.5f, PitchVariance = 0.3f }; private bool BigSpear = false; public override void SetDefaults() diff --git a/Projectiles/Rogue/SpearofDestinyProjectile.cs b/Projectiles/Rogue/SpearofDestinyProjectile.cs index 3ee2cce27e..471176651c 100644 --- a/Projectiles/Rogue/SpearofDestinyProjectile.cs +++ b/Projectiles/Rogue/SpearofDestinyProjectile.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Rogue { Vector2 SparkVelocity1 = Projectile.velocity.RotatedBy(-3, default) * 0.1f - Projectile.velocity / 8f; Vector2 SparkPosition1 = Projectile.velocity.RotatedBy(-0.8, default); - SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(12, 15), Main.rand.NextFloat(0.7f, 1f), Color.PaleGoldenrod); + SparkParticle spark = new SparkParticle(Projectile.Center + SparkPosition1, SparkVelocity1, false, Main.rand.Next(6, 8), Main.rand.NextFloat(0.7f, 1f), Color.PaleGoldenrod); GeneralParticleHandler.SpawnParticle(spark); } @@ -115,6 +115,20 @@ namespace CalamityMod.Projectiles.Rogue { SoundEngine.PlaySound(Hitsound, Projectile.position); } + public override bool PreDraw(ref Color lightColor) + { + Texture2D texture = ModContent.Request(Texture).Value; + + int frameHeight = texture.Height / Main.projFrames[Projectile.type]; + int frameY = frameHeight * Projectile.frame; + float scale = Projectile.scale; + float rotation = Projectile.rotation; + + Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight); + Vector2 origin = rectangle.Size() / 2f; + Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), rectangle, Color.White, rotation, origin, scale, SpriteEffects.None, 0); + return false; + } //public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Ichor, 120); } From 98870ad2e0b284cfda18904f401e95fe4c0c7d10 Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Wed, 6 Sep 2023 11:26:53 +0200 Subject: [PATCH 232/258] No Legacy Names for Plantation Staff's projectiles. :warning: NO CHANGELOG NEEDED FOR CALMAIN. :warning: --- Buffs/Summon/PlantationStaffBuff.cs | 1 - Projectiles/Summon/PlantationStaffSeed.cs | 1 - Projectiles/Summon/PlantationStaffSporeCloud.cs | 1 - Projectiles/Summon/PlantationStaffSummon.cs | 1 - Projectiles/Summon/PlantationStaffTentacle.cs | 1 - Projectiles/Summon/PlantationStaffThornball.cs | 3 +-- 6 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Buffs/Summon/PlantationStaffBuff.cs b/Buffs/Summon/PlantationStaffBuff.cs index 9e64b840e2..e829c2587d 100644 --- a/Buffs/Summon/PlantationStaffBuff.cs +++ b/Buffs/Summon/PlantationStaffBuff.cs @@ -5,7 +5,6 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.Summon { - [LegacyName("PlantationBuff")] public class PlantationStaffBuff : ModBuff { public override void SetStaticDefaults() diff --git a/Projectiles/Summon/PlantationStaffSeed.cs b/Projectiles/Summon/PlantationStaffSeed.cs index a747f93ece..1073e5d10a 100644 --- a/Projectiles/Summon/PlantationStaffSeed.cs +++ b/Projectiles/Summon/PlantationStaffSeed.cs @@ -6,7 +6,6 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { - [LegacyName("PlantSeedGreen")] public class PlantationStaffSeed : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; diff --git a/Projectiles/Summon/PlantationStaffSporeCloud.cs b/Projectiles/Summon/PlantationStaffSporeCloud.cs index c7a50b74f8..f8406ef3dd 100644 --- a/Projectiles/Summon/PlantationStaffSporeCloud.cs +++ b/Projectiles/Summon/PlantationStaffSporeCloud.cs @@ -7,7 +7,6 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { - [LegacyName("PlantSporeCloud")] public class PlantationStaffSporeCloud : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; diff --git a/Projectiles/Summon/PlantationStaffSummon.cs b/Projectiles/Summon/PlantationStaffSummon.cs index 6f797c19a3..0082fdc829 100644 --- a/Projectiles/Summon/PlantationStaffSummon.cs +++ b/Projectiles/Summon/PlantationStaffSummon.cs @@ -12,7 +12,6 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { - [LegacyName("PlantSummon")] public class PlantationStaffSummon : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; diff --git a/Projectiles/Summon/PlantationStaffTentacle.cs b/Projectiles/Summon/PlantationStaffTentacle.cs index d602261544..0c9da5370b 100644 --- a/Projectiles/Summon/PlantationStaffTentacle.cs +++ b/Projectiles/Summon/PlantationStaffTentacle.cs @@ -12,7 +12,6 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { - [LegacyName("PlantTentacle")] public class PlantationStaffTentacle : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; diff --git a/Projectiles/Summon/PlantationStaffThornball.cs b/Projectiles/Summon/PlantationStaffThornball.cs index 16433663fd..d2855cb43b 100644 --- a/Projectiles/Summon/PlantationStaffThornball.cs +++ b/Projectiles/Summon/PlantationStaffThornball.cs @@ -6,7 +6,6 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Summon { - [LegacyName("PlantThornBall")] public class PlantationStaffThornball : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Summon"; @@ -36,7 +35,7 @@ namespace CalamityMod.Projectiles.Summon } public override void AI() - { + { if (IsSticked == 0f) { // Home towards the target, if there's one. From 1d4b1bfe13b0109ea34023518903c3240eeede8c Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:00:49 +0200 Subject: [PATCH 233/258] Added back Legacy Name for Plantation Staff's Buff. :warning: NO CHANGELOG NEEDED :warning: --- Buffs/Summon/PlantationStaffBuff.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Buffs/Summon/PlantationStaffBuff.cs b/Buffs/Summon/PlantationStaffBuff.cs index e829c2587d..9e64b840e2 100644 --- a/Buffs/Summon/PlantationStaffBuff.cs +++ b/Buffs/Summon/PlantationStaffBuff.cs @@ -5,6 +5,7 @@ using Terraria.ModLoader; namespace CalamityMod.Buffs.Summon { + [LegacyName("PlantationBuff")] public class PlantationStaffBuff : ModBuff { public override void SetStaticDefaults() From 5d72f9626e04d13887cda40fd61863ab0500db35 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Wed, 6 Sep 2023 18:53:12 +0300 Subject: [PATCH 234/258] Pearl God and Piranha Gun nerfs (oh my god piranha gun is annoying) --- Items/CalamityGlobalItemTweaks.cs | 1 + Items/Weapons/Ranged/PearlGod.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 330e5e69ad..11da81cd52 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -173,6 +173,7 @@ namespace CalamityMod.Items { ItemID.PearlwoodSword, Do(UseTurn, DamageRatio(1.5f)) }, { ItemID.PewMaticHorn, Do(DamageExact(24)) }, { ItemID.PhoenixBlaster, Do(AutoReuse, PointBlank, UseExact(18)) }, + {ItemID.PiranhaGun, Do(DamageExact(30)) }, { ItemID.PlatinumBow, Do(PointBlank, DamageExact(12)) }, { ItemID.PlatinumShortsword, Do(AutoReuse, TrueMelee, DamageExact(18)) }, { ItemID.PoisonStaff, Do(DamageExact(57)) }, diff --git a/Items/Weapons/Ranged/PearlGod.cs b/Items/Weapons/Ranged/PearlGod.cs index 2a3ca19767..a165d38638 100644 --- a/Items/Weapons/Ranged/PearlGod.cs +++ b/Items/Weapons/Ranged/PearlGod.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 40; + Item.damage = 33; Item.DamageType = DamageClass.Ranged; Item.width = 80; Item.height = 46; From fda6ee93e693f42b07938773cbd6181eb4ef362f Mon Sep 17 00:00:00 2001 From: Xyk Date: Wed, 6 Sep 2023 13:27:13 -0700 Subject: [PATCH 235/258] Reworked and moved Phantasmal Ruin, removed Phantom lance Phantasmal Ruin: Fires a large ghost lance that explodes into spirits on enemy hits Stealth strikes pierce and summon many spirits from the depths on enemy hits --- Balancing/BalancingChangesManager.cs | 2 - Items/Weapons/Rogue/PhantasmalRuin.cs | 15 +-- Items/Weapons/Rogue/PhantomLance.cs | 64 ---------- Items/Weapons/Rogue/PhantomLance.png | Bin 999 -> 0 bytes ...Mods.CalamityMod.Items.Weapons.Rogue.hjson | 5 +- .../Mods.CalamityMod.Projectiles.Rogue.hjson | 5 +- Projectiles/Rogue/PhantasmalRuinGhost.cs | 48 ------- Projectiles/Rogue/PhantasmalRuinGhost.png | Bin 1167 -> 0 bytes Projectiles/Rogue/PhantasmalRuinProj.cs | 84 ++++++++----- Projectiles/Rogue/PhantasmalSoul.cs | 2 +- Projectiles/Rogue/PhantasmalSoul.png | Bin 924 -> 4020 bytes Projectiles/Rogue/PhantasmalSoulBlue.cs | 119 ++++++++++++++++++ Projectiles/Rogue/PhantasmalSoulBlue.png | Bin 0 -> 4017 bytes Projectiles/Rogue/PhantomLanceProj.cs | 81 ------------ Sounds/Item/PhantomSpirit.ogg | Bin 0 -> 12253 bytes 15 files changed, 182 insertions(+), 243 deletions(-) delete mode 100644 Items/Weapons/Rogue/PhantomLance.cs delete mode 100644 Items/Weapons/Rogue/PhantomLance.png delete mode 100644 Projectiles/Rogue/PhantasmalRuinGhost.cs delete mode 100644 Projectiles/Rogue/PhantasmalRuinGhost.png create mode 100644 Projectiles/Rogue/PhantasmalSoulBlue.cs create mode 100644 Projectiles/Rogue/PhantasmalSoulBlue.png delete mode 100644 Projectiles/Rogue/PhantomLanceProj.cs create mode 100644 Sounds/Item/PhantomSpirit.ogg diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 3f3f66c736..b7cb6d137f 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -237,8 +237,6 @@ namespace CalamityMod.Balancing // 10% resist to Old Reaper. NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.9f, ProjectileType())))); - // 5% resist to Phantasmal Ruin. - NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.95f, ProjectileType(), ProjectileType(), ProjectileType())))); #endregion #region Exo Mechs: Ares diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index 286e6b6235..8ed54b0ecd 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -3,6 +3,7 @@ using CalamityMod.Projectiles.Rogue; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public override void SetDefaults() { - Item.damage = 955; + Item.damage = 120; Item.knockBack = 8f; Item.width = 102; @@ -24,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 35; Item.useAnimation = 35; Item.autoReuse = true; - Item.shootSpeed = 14.5f; + Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); Item.UseSound = SoundID.Item1; Item.DamageType = RogueDamageClass.Instance; @@ -33,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.rare = ModContent.RarityType(); } - public override float StealthDamageMultiplier => 1.22f; + public override float StealthDamageMultiplier => 2.3f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { @@ -42,6 +43,7 @@ namespace CalamityMod.Items.Weapons.Rogue int stealth = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); if (stealth.WithinBounds(Main.maxProjectiles)) Main.projectile[stealth].Calamity().stealthStrike = true; + Main.projectile[stealth].penetrate = 3; return false; } return true; @@ -50,10 +52,9 @@ namespace CalamityMod.Items.Weapons.Rogue public override void AddRecipes() { CreateRecipe(). - AddIngredient(500). - AddIngredient(4). - AddIngredient(20). - AddTile(TileID.LunarCraftingStation). + AddIngredient(ItemID.SpectreBar, 15). + AddIngredient(ItemID.Bone, 35). + AddTile(TileID.MythrilAnvil). Register(); } } diff --git a/Items/Weapons/Rogue/PhantomLance.cs b/Items/Weapons/Rogue/PhantomLance.cs deleted file mode 100644 index e2259a0f70..0000000000 --- a/Items/Weapons/Rogue/PhantomLance.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Terraria.DataStructures; -using CalamityMod.Projectiles.Rogue; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Microsoft.Xna.Framework; - -namespace CalamityMod.Items.Weapons.Rogue -{ - public class PhantomLance : RogueWeapon - { - public override void SetStaticDefaults() - { - Item.ResearchUnlockCount = 99; - } - - public override void SetDefaults() - { - Item.damage = 70; - Item.knockBack = 5f; - - Item.width = 62; - Item.height = 68; - Item.useStyle = ItemUseStyleID.Swing; - Item.noMelee = true; - Item.noUseGraphic = true; - - Item.value = Item.buyPrice(0, 0, 50, 0); - Item.rare = ItemRarityID.Yellow; - Item.useTime = 23; - Item.useAnimation = 23; - Item.maxStack = 9999; - Item.UseSound = SoundID.Item1; - Item.consumable = true; - Item.DamageType = RogueDamageClass.Instance; - - Item.autoReuse = true; - Item.shootSpeed = 10f; - Item.shoot = ModContent.ProjectileType(); - } - - public override float StealthDamageMultiplier => 1.75f; - - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) - { - if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike - { - int stealth = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); - if (stealth.WithinBounds(Main.maxProjectiles)) - Main.projectile[stealth].Calamity().stealthStrike = true; - return false; - } - return true; - } - - public override void AddRecipes() - { - CreateRecipe(150). - AddIngredient(ItemID.SpectreBar). - AddTile(TileID.MythrilAnvil). - Register(); - } - } -} diff --git a/Items/Weapons/Rogue/PhantomLance.png b/Items/Weapons/Rogue/PhantomLance.png deleted file mode 100644 index 55db8c10ed750a573e0732a068a32031750de1f3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 999 zcmVA`=rpLN^00{0X1r#>E=^9_FX>;2HZS8=< z#y3slcBaMb>$eX9Xc_PW(QS_ezW@pwPx;2zYuc)9<&CFo<4#SRIa%!kpvj_bL0RJ| z*SMIjs;>uNu)Et}y1n^@;r?rPFBq;*oj4CbMMM?v@MP(fTmu}qv?DynWC~G|7jpyZT2Vjeq4M2WIp$>5RTq6KoKRy8w)5X4G z0H*v?05rc^{j)Ulp4iL(4FPcWc;kw%BW(w^ z76JCA1=o12kcOR7wtt`DT3QyQ@kdXt0`T(L?G;~V;b&k?@9P?m1GXSI zQd*YT{cC57;r`IyISs&@k-MS6xyIu~ZNnh|CdL9lbi-xk#yR0b?^6Iq`@aF;$t}#?ecJ$-_D|{nUSIfe*^!y)ZT-CJ7+vErV#AG_cWN0~SwO_J?98NHLH6J)`~@WB z#Hg(C4gYqR88__Iq-nvf?YyG!dL0bJXBIc3tnrwy<5s7wRhkA8XIgNLJHL)otjS7S=$a} zjYl=^)O1ckzP9u{korxVagD2DT2R-x)s8G(O$*8z&t&P8CF^jyn--Kd4p{HV(#^D> ztZ~h^BmAF*vTiSb4${xGpsewK$o{A>4=K+<0000IbVXQnMOaBjI!|(GWo~p~bZKvH V05ODE?C$^o002ovPDHLkV1n>E-kksd diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index c33ea4362f..5410504bb3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -846,9 +846,8 @@ PhantasmalRuin: { DisplayName: Phantasmal Ruin Tooltip: ''' - Fires an enormous ghost lance that emits lost souls as it flies - Explodes into tormented souls on enemy hits - Stealth strikes continuously leave spectral clones in their wake + Fires a large ghost lance that explodes into spirits on enemy hits + Stealth strikes pierce and summon many spirits from the depths on enemy hits ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson index 948434ab6e..b308c8119c 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Rogue.hjson @@ -206,10 +206,8 @@ PanSpark.DisplayName: Spark PartisanExplosion.DisplayName: Profaned Explosion PenumbraBomb.DisplayName: Penumbra Bomb PenumbraSoul.DisplayName: Penumbra Soul -PhantasmalRuinGhost.DisplayName: Phantasmal Afterimage PhantasmalRuinProj.DisplayName: Phantasmal Ruin PhantasmalSoul.DisplayName: Phantasmal Soul -PhantomLanceProj.DisplayName: Phantom Lance PlaguedFuelPackCloud.DisplayName: Plagued Cloud PlaguenadeBee.DisplayName: Plague Bee PlaguenadeProj.DisplayName: Plaguenade @@ -330,4 +328,5 @@ LanceofDestiny.DisplayName: Holy Lance SpearofDestinyStealth.DisplayName: Empowered Holy Lance SpearofDestinyStealthExplosion.DisplayName: Strong Burst RealityRuptureMini.DisplayName: Reality Shard -RealityRuptureStealth.DisplayName: Ruptured Reality \ No newline at end of file +RealityRuptureStealth.DisplayName: Ruptured Reality +PhantasmalSoulBlue.DisplayName: Blue Spirit \ No newline at end of file diff --git a/Projectiles/Rogue/PhantasmalRuinGhost.cs b/Projectiles/Rogue/PhantasmalRuinGhost.cs deleted file mode 100644 index 6a818b5677..0000000000 --- a/Projectiles/Rogue/PhantasmalRuinGhost.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Rogue -{ - public class PhantasmalRuinGhost : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Rogue"; - public override void SetDefaults() - { - Projectile.width = 30; - Projectile.height = 30; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.penetrate = 1; - Projectile.tileCollide = false; - Projectile.timeLeft = 240; - Projectile.extraUpdates = 1; - Projectile.DamageType = RogueDamageClass.Instance; - } - - public override void AI() - { - // Set the projectile's direction correctly - Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; - - // The projectile rapidly fades in as it starts existing - if (Projectile.timeLeft >= 207) - Projectile.alpha += 6; - - CalamityUtils.HomeInOnNPC(Projectile, true, 300f, 12f, 40f); - } - - public override Color? GetAlpha(Color lightColor) => new Color(100, 200, 255, 100); - - public override bool PreDraw(ref Color lightColor) - { - if (Projectile.timeLeft > 239) - return false; - - Texture2D tex = ModContent.Request(Texture).Value; - Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0); - return false; - } - } -} diff --git a/Projectiles/Rogue/PhantasmalRuinGhost.png b/Projectiles/Rogue/PhantasmalRuinGhost.png deleted file mode 100644 index 2eeba11d83e16320b00a8362c4459f207f7ad3b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1167 zcmeAS@N?(olHy`uVBq!ia0vp^X+WIB!3HE3`7J8}Qfx`y?k)`fL2$v|<&zm0SkydS z978H@y`8%;E5uQv^}ne60doP-BtZdg#rF!CO&u94Ra%#Jm?bHibwxyJY-{rH5UycA z=+q*@rL?axe}c$s&l{V6r$2ia_kCXV_Zr_xdv~99dUkqd{j>SAFFt&jIOE;UlIQo1 z=s)tgE`Q?8vz+Vl30E66{pauL>gY&6FYngUJMrkT5|-JAZb$^?oSAge=jWdPno3G_ zwH5YV8w@wyn4ubYYRdZi`~LjSQ&-CA(J@PN+>zw&_TlRpk#k}R$u1iWiDfU+(<9 zO*xEaZX(jo2Lw`%?O8Twe?jWA-_tj-0$m?=O(O1blJgFybYZ#t+%tRl3S_UOfz07K zCSj(aY|MP1LA?60j>BB08!R)L-W<3k89W>05+jLZhW;C0zn)%hC!dy3D&b}r)Bm7U zU9Bh5B)XwjFxB8#g3Bj6&R2Z*^cf9Wd>c7qj;Gwb9JY-?TKQDQio5@E_#RB;v(WYu zwU<7z*(T-mad+!pu!Gnp8%A#Dn%#WL_Vk=J&O+<8Q@u0w_lp6wCG;>#95iS>`!F)X z?Dwg#PRs5cep+vzUQbGPnP|SOjJK!J@H?U}7#eQyJ!s4Cqj&C6`l&cl;lOCFG&7NPqt>slJn z65prsvo)7KPmk4&l?ElmC&tTGYBp?c^>tL6yJz3rxyQEwqw$24asD!fcf1Ujmt}wg z$~f(w597_f>c5k?K(bd1yJsDGfB4H$5s+{0%-H55DFt-g((|XXzP|{+3Km_{r}_5c zdMl8y{3WY?c68w6aI@@BQOvc+%Z=13lc=d(tP+cCiJ>(#74| z-}}u-ay9|#l96W4>0kpYSKimr`19Q2{p*2ch){`Z1Q2<;S@{=brskC-mSpDVF&MT) Sym=3lW$<+Mb6Mw<&;$U!6dF|k diff --git a/Projectiles/Rogue/PhantasmalRuinProj.cs b/Projectiles/Rogue/PhantasmalRuinProj.cs index 897d31c337..b0a22c19af 100644 --- a/Projectiles/Rogue/PhantasmalRuinProj.cs +++ b/Projectiles/Rogue/PhantasmalRuinProj.cs @@ -1,5 +1,8 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Projectiles.Melee; +using Microsoft.Xna.Framework; +using Mono.Cecil; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -9,9 +12,8 @@ namespace CalamityMod.Projectiles.Rogue { public new string LocalizationCategory => "Projectiles.Rogue"; public override string Texture => "CalamityMod/Items/Weapons/Rogue/PhantasmalRuin"; - + public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/WulfrumKnifeThrowSingle") { Volume = 0.8f}; private const int Lifetime = 600; - private const int FramesPerSubProjectile = 13; public override void SetStaticDefaults() { @@ -28,7 +30,9 @@ namespace CalamityMod.Projectiles.Rogue Projectile.penetrate = 1; Projectile.tileCollide = false; Projectile.timeLeft = Lifetime; - Projectile.extraUpdates = 1; + Projectile.extraUpdates = 2; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 30; Projectile.DamageType = RogueDamageClass.Instance; } @@ -44,22 +48,14 @@ namespace CalamityMod.Projectiles.Rogue Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; // Dust and light - Dust d = Dust.NewDustDirect(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 175, Projectile.velocity.X * 0.25f, Projectile.velocity.Y * 0.25f, 0, default, 0.85f); + Dust d = Dust.NewDustDirect(Projectile.position + Projectile.velocity, Projectile.width - (Projectile.Calamity().stealthStrike ? 6 : 0), Projectile.height - (Projectile.Calamity().stealthStrike ? 6 : 0), Projectile.Calamity().stealthStrike ? 132 : 180, Projectile.velocity.X * -0.8f, Projectile.velocity.Y * -0.8f, 0, default, Projectile.Calamity().stealthStrike ? 1.2f : 0.8f); d.noLight = true; - Lighting.AddLight(Projectile.Center + Projectile.velocity * 0.1f, 0.4f, 0.7f, 0.9f); + d.noGravity = true; + Lighting.AddLight(Projectile.Center + Projectile.velocity * 0.2f, 0.2f, 0.7f, 0.9f); - // Fire sub projectiles occasionally - bool shouldFireSubProjectile = (Lifetime - Projectile.timeLeft) % (Projectile.MaxUpdates * FramesPerSubProjectile) == 8; - if (Projectile.owner == Main.myPlayer && shouldFireSubProjectile) + if (Projectile.Calamity().stealthStrike) { - bool ss = Projectile.Calamity().stealthStrike; - int projID = ss ? ModContent.ProjectileType() : ModContent.ProjectileType(); - int damage = (int)(Projectile.damage * 0.25f); - float kb = Projectile.knockBack * (ss ? 1f : 0.25f); - Vector2 velocity = ss - ? (Projectile.velocity * 0.4f).RotatedBy(Main.rand.NextFloat(-0.04f, 0.04f)) - : (Projectile.velocity * 0.08f) + Main.rand.NextVector2Circular(0.4f, 0.4f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, projID, damage, kb, Projectile.owner); + Projectile.extraUpdates = 3; } } @@ -71,24 +67,44 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.owner != Main.myPlayer) return; - int numSouls = 4; - int projID = ModContent.ProjectileType(); - int soulDamage = (int)(Projectile.damage * 0.1f); - float soulKB = 0f; - float speed = 5f; - float startAngle = Main.rand.NextFloat(-0.07f, 0.07f) + MathHelper.PiOver4; - Vector2 velocity = (Vector2.UnitX * speed).RotatedBy(startAngle); - for (int i = 0; i < numSouls; i += 2) - { - // Each pair of souls has randomized player homing strength - float ai1 = Main.rand.NextFloat() + 0.5f; - if (Main.rand.NextBool(2)) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, projID, soulDamage, soulKB, Projectile.owner, 0f, ai1); - if (Main.rand.NextBool(2)) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, -velocity, projID, soulDamage, soulKB, Projectile.owner, 0f, ai1); + SoundEngine.PlaySound(HitSound with { PitchVariance = 0.4f }, Projectile.position); - // Rotate direction for the next pair of souls. - velocity = velocity.RotatedBy(MathHelper.TwoPi / numSouls); + if (Projectile.Calamity().stealthStrike) + { + for (int i = 0; i < 5; i += 2) + { + int soulDamage = (int)(Projectile.damage * 0.3f); + Vector2 velocity = new Vector2(0f, -15f); + velocity = velocity.RotatedByRandom(0.5f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center + new Vector2(0, 600f), velocity, ModContent.ProjectileType(), soulDamage, 0f, Projectile.owner, 0f); + } + } + else + { + int numSouls = 4; + int projID = ModContent.ProjectileType(); + int soulDamage = (int)(Projectile.damage * 0.2f); + float soulKB = 0f; + float speed = 10f; + float startAngle = Main.rand.NextFloat(-0.07f, 0.07f) + MathHelper.PiOver4; + Vector2 velocity = (Vector2.UnitX * speed).RotatedBy(startAngle); + for (int i = 0; i < numSouls; i += 2) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, projID, soulDamage, soulKB, Projectile.owner, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, -velocity, projID, soulDamage, soulKB, Projectile.owner, 0f); + // Rotate direction for the next pair of souls. + velocity = velocity.RotatedBy(MathHelper.TwoPi / numSouls); + } + for (int i = 0; i < 8; i += 2) + { + // d, du, dus, dust :) + Dust du = Dust.NewDustPerfect(Projectile.Center, 180, velocity, 0, default, Main.rand.NextFloat(1.1f, 1.4f)); + Dust dus = Dust.NewDustPerfect(Projectile.Center, 180, -velocity, 0, default, Main.rand.NextFloat(1.1f, 1.4f)); + du.noGravity = true; + dus.noGravity = true; + // Rotate direction for the next dust. + velocity = velocity.RotatedBy(MathHelper.TwoPi / numSouls); + } } } } diff --git a/Projectiles/Rogue/PhantasmalSoul.cs b/Projectiles/Rogue/PhantasmalSoul.cs index bfc09d36f2..020d83b9dc 100644 --- a/Projectiles/Rogue/PhantasmalSoul.cs +++ b/Projectiles/Rogue/PhantasmalSoul.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Rogue { public new string LocalizationCategory => "Projectiles.Rogue"; private const int Lifetime = 300; - private const int NoHomingFrames = 40; + private const int NoHomingFrames = 35; private const int NoHitFrames = 10; private const int NoDrawFrames = 5; diff --git a/Projectiles/Rogue/PhantasmalSoul.png b/Projectiles/Rogue/PhantasmalSoul.png index 43ec7bc42bcc8f19c9b9dd4d68fc0aa8269ea6e4..6c676ecd820d3ef790acd624f739da6b52a43a87 100644 GIT binary patch literal 4020 zcmV;l4@>ZgP)f6 zXi@@54ZTQ_E-Enz5K6$103tR-RB%L5k){YTDBysjLy@r}iiH7DvFijGMAUI`6dRUF zWUU$Bym{}eS9UO(Z2>7`&z9wUXbV-Il#&6`Y8GKGQ04S2&F6MJnWNa;Ck|;8QE#r9r;7G||@X{|> z%+C|c55>;RS}qbKr-&IQTvLXPlM{>K&(BTgi^a?^4mXV>;xX8n8Ce|RasXz}{8imI52H3ZN4bfe_i~WlJ|C&UW9+{8AKoW!}eExnGFE2re(F+`iE_46#!l9 z0Z_aBhs|Iw0E)7{bq;-T9=d#9QpDmcXDh4R++0fmpKB>E=%LdZt9g$j;($`3&Zthxi`{{&gM}5&R^+h%b~yM9Zd3AWW9ETgVfL z1(`yIK=_}U_z%PWq}jQaiQ4!P(3V&Nr6C$XejWfQDiI(Fdt@un?|lo#M+5oIi_w{w zo%_#%{(V=tO#a9gB!7-$M?^BX5>d|Vn*3S!?g~$*U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644 index 0000000000..1b3e4815c1 --- /dev/null +++ b/Projectiles/Rogue/PhantasmalSoulBlue.cs @@ -0,0 +1,119 @@ +using CalamityMod.Items.Weapons.Melee; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.Audio; + +namespace CalamityMod.Projectiles.Rogue +{ + public class PhantasmalSoulBlue : ModProjectile, ILocalizedModType + { + public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/PhantomSpirit") { Volume = 0.3f }; + public new string LocalizationCategory => "Projectiles.Rogue"; + private const int Lifetime = 300; + private const int NoHomingFrames = 45; + private const int NoHitFrames = 20; + private const int NoDrawFrames = 5; + + public override void SetStaticDefaults() + { + Main.projFrames[Projectile.type] = 4; + ProjectileID.Sets.TrailCacheLength[Projectile.type] = 3; + ProjectileID.Sets.TrailingMode[Projectile.type] = 2; + } + + public override void SetDefaults() + { + Projectile.width = Projectile.height = 36; + Projectile.alpha = 100; + Projectile.friendly = true; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; + Projectile.DamageType = RogueDamageClass.Instance; + Projectile.extraUpdates = 1; + Projectile.penetrate = 1; + Projectile.timeLeft = Lifetime; + } + + public override bool? CanHitNPC(NPC target) => Projectile.timeLeft < Lifetime - NoHomingFrames && target.CanBeChasedBy(Projectile); + + public override void AI() + { + // Handle animation + Projectile.frameCounter++; + if (Projectile.frameCounter > 6) + { + Projectile.frame++; + Projectile.frameCounter = 0; + } + if (Projectile.frame > 3) + Projectile.frame = 0; + + // Activate homing on enemies after a brief delay + if (Projectile.timeLeft < Lifetime - NoHomingFrames) + Projectile.ai[0] = 1f; + + // Occasional dust + if (Main.rand.NextBool(4)) + { + int dustID = 180; + Dust d = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, dustID); + d.velocity *= 0.1f; + d.scale = 1.3f; + d.noGravity = true; + d.noLight = true; + } + + // Blue light + Lighting.AddLight(Projectile.Center, 0.2f, 0.2f, 0.7f); + + // Make sure the soul is always facing forwards + Projectile.rotation = Projectile.velocity.ToRotation() - MathHelper.PiOver2; + + if (Projectile.ai[0] == 1f) + CalamityUtils.HomeInOnNPC(Projectile, true, 900f, 15f, 20f); + } + + public override bool PreDraw(ref Color lightColor) + { + if (Projectile.timeLeft > Lifetime - NoDrawFrames) + return false; + + CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); + return false; + } + + // Get darker when about to disappear + public override Color? GetAlpha(Color lightColor) + { + if (Projectile.timeLeft < 85) + { + byte b2 = (byte)(Projectile.timeLeft * 3); + byte a2 = (byte)(100f * ((float)b2 / 255f)); + return new Color((int)b2, (int)b2, (int)b2, (int)a2); + } + return new Color(255, 255, 255, 100); + } + + public override void Kill(int timeLeft) + { + int dustCount = 36; + int dustID = 180; + for (int i = 0; i < dustCount; i++) + { + Vector2 velocity = Main.rand.NextVector2Circular(1f, 1f); + velocity = 12f * velocity + Projectile.velocity * 0.1f; + Dust d = Dust.NewDustDirect(Projectile.Center, 0, 0, dustID); + d.velocity = velocity; + d.noGravity = true; + d.noLight = true; + } + + SoundEngine.PlaySound(HitSound with { PitchVariance = 0.4f }, Projectile.position); + } + + // Cannot deal damage for the first several frames of existence. + public override bool CanHitPvp(Player target) => Projectile.timeLeft < Lifetime - NoHitFrames; + } +} diff --git a/Projectiles/Rogue/PhantasmalSoulBlue.png b/Projectiles/Rogue/PhantasmalSoulBlue.png new file mode 100644 index 0000000000000000000000000000000000000000..028c2215ff18bae7e688715e218d2683eb77b175 GIT binary patch literal 4017 zcmV;i4^HrjP)f6 zXi@@54ZTQ_E-Enz5K6$103tR-RB%L5k){YTDBysjLy@r}iiH7DvFijGMAUI`6dRUF zWUU$Bym{}eS9UO(Z2>7`&z9wUXbV-Il#&6`Y8GKGQ04S2&F6MJnWNa;Ck|;8QE#r9r;7G||@X{|> z%+C|c55>;RS}qbKr-&IQTvLXPlM{>K&(BTgi^a?^4mXV>;xX8n8Ce|RasXz}{8imI52H3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AhjU9K>0uz z;L5$dQc5X*j!zbl3qghg|{_NQ%{W)KEq5C&iYNP*4|1bVc$zxMa%pQq=7+`qoN z_W7@OZ%Qd=J8ygt2DpJr2+!eji2s53AgWU`083T)_SIqezdT4yZ1F&#hu=2^1)%IzWi~oM zl#>sHZ4mycm4T!zwI?qQ)N0qu+-XSwt6a|;0+{w3QK#vBZHsK7y6BeYV_+|q-3<#v`*4osb){R$u5C-Cklw9~BKM1rbGaxU> zrnP{u@`8+QD&_@o3#Xy!8u>xSYKjG9ejuAxe30IWYxEHK|7c12zuA!94fH z-b6SBm=DAyO?JQZ!htw|+T*qPLB>9uK7SAeRtqvXktGcX#Ni4K$f&fA{2(exfsJYP zxdP1tQkx{n32-W{1FBB#2?L@MR8(>TSD-+l>Ja$kAiNA<5DwtF^ifDz_R=N^19JD{ zmvckitzt7knUfHA-uNKSTvX372%87WnvVm5&Z^QzhgxXPc8v=%^eA>Kh&t|{2gDi8 zuG6aL?NRJ7ATHTS*{G09<7j^SP7VU8rJj0;LA{4M;({ok)&)`PVUGA93QScD4Nb<* z2T}_*G%Y0e<$S_>SiJRrT=cnCZlNUatS z)&jzs56D<4KXE}^!D<^Zy4@NEM9CS^y;u6@0a0cmqyo6}198@S?E&QZfVe~G>heBl zW2Z^B4x)m1?xIHyiML*B7#BpD1IiLpAgw_0Kva{sikz*=K>0v;Sh|Xw-Rg|z`GB+@ z!&L{8<&_STf$&l6p@&9Yk^&EZdpJEDNNuNN@pHIt8B&Yw_#mnPw=7T>732Y_wd7UO zQZ1-UJB "Projectiles.Rogue"; - public override string Texture => "CalamityMod/Items/Weapons/Rogue/PhantomLance"; - - public override void SetStaticDefaults() - { - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6; - ProjectileID.Sets.TrailingMode[Projectile.type] = 0; - } - - public override void SetDefaults() - { - Projectile.width = 20; - Projectile.height = 20; - Projectile.friendly = true; - Projectile.ignoreWater = true; - Projectile.penetrate = 1; - Projectile.tileCollide = false; - Projectile.timeLeft = 300; - Projectile.extraUpdates = 1; - Projectile.DamageType = RogueDamageClass.Instance; - } - - public override bool PreDraw(ref Color lightColor) - { - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); - return false; - } - - public override void AI() - { - if (!Projectile.Calamity().stealthStrike) - { - if (Projectile.timeLeft <= 255) - Projectile.alpha += 1; - if (Projectile.timeLeft >= 75) - { - Projectile.velocity.X *= 0.995f; - Projectile.velocity.Y *= 0.995f; - } - } - Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver4; - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 175, Projectile.velocity.X * 0.25f, Projectile.velocity.Y * 0.25f, 0, default, 0.85f); - Projectile.ai[0]++; - if (Projectile.ai[0] % 18f == 0f) - { - if (Projectile.owner == Main.myPlayer) - { - float damageMult = Projectile.timeLeft * 0.7f / 300f; - if (Projectile.Calamity().stealthStrike) - damageMult = 0.7f; - int soulDamage = (int)(Projectile.damage * damageMult); - int soul = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), soulDamage, Projectile.knockBack, Projectile.owner); - if (soul.WithinBounds(Main.maxProjectiles)) - { - Main.projectile[soul].DamageType = RogueDamageClass.Instance; - Main.projectile[soul].usesLocalNPCImmunity = true; - Main.projectile[soul].localNPCHitCooldown = -2; - } - } - } - } - - public override void Kill(int timeLeft) - { - for (int i = 0; i <= 10; i++) - { - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 175, Projectile.oldVelocity.X * 0.5f, Projectile.oldVelocity.Y * 0.5f); - } - } - } -} diff --git a/Sounds/Item/PhantomSpirit.ogg b/Sounds/Item/PhantomSpirit.ogg new file mode 100644 index 0000000000000000000000000000000000000000..c20726b841daf7cbb8bf5e306f2bf23f8fa61998 GIT binary patch literal 12253 zcmb_?cUV);)9(S1rt}u7bcoc@yApa80!kHx(0i|nO79?q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ash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:59:37 -0400 Subject: [PATCH 236/258] Updated Phantasmal Ruin's rarity/sell price --- Items/Weapons/Rogue/PhantasmalRuin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index 8ed54b0ecd..a7da727bac 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -30,8 +30,8 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; - Item.rare = ModContent.RarityType(); + Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.rare = ItemRarityID.Lime; } public override float StealthDamageMultiplier => 2.3f; From 6599f61d7d3cd0f1f96f648e3435238d61729d82 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 6 Sep 2023 22:13:17 -0400 Subject: [PATCH 237/258] Plague Tainted SMG's right click does 60% damage if you have Alchemical Flask equipped So that you can't abuse the constant Plague to do enormous DPS with the drones --- Items/Weapons/Ranged/PlagueTaintedSMG.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Ranged/PlagueTaintedSMG.cs b/Items/Weapons/Ranged/PlagueTaintedSMG.cs index a02e1e870c..dafc651e84 100644 --- a/Items/Weapons/Ranged/PlagueTaintedSMG.cs +++ b/Items/Weapons/Ranged/PlagueTaintedSMG.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Materials; +using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; @@ -64,8 +65,8 @@ namespace CalamityMod.Items.Weapons.Ranged // Fire drones to the left and right. for (int i = 0; i < 3; i++) { - Projectile.NewProjectile(source, barrelPosition, velocity.RotatedBy(-Spread * (i + 1)), ModContent.ProjectileType(), damage, knockback, player.whoAmI); - Projectile.NewProjectile(source, barrelPosition, velocity.RotatedBy(Spread * (i + 1)), ModContent.ProjectileType(), damage, knockback, player.whoAmI); + Projectile.NewProjectile(source, barrelPosition, velocity.RotatedBy(-Spread * (i + 1)), ModContent.ProjectileType(), player.Calamity().alchFlask ? (int)(damage * 0.6f) : damage, knockback, player.whoAmI); + Projectile.NewProjectile(source, barrelPosition, velocity.RotatedBy(Spread * (i + 1)), ModContent.ProjectileType(), player.Calamity().alchFlask ? (int)(damage * 0.6f) : damage, knockback, player.whoAmI); } } else From a1569dc3ebc738a713d4c866025d0be873517003 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 6 Sep 2023 23:17:56 -0400 Subject: [PATCH 238/258] Piranha Gun should no longer get halved iframes from Deadshot Brooch -Rebalanced Piranha Gun to compensate -Also added Piranha Gun and Barracuda Gun to the pierce resist exception list --- CalamityLists.cs | 2 ++ Items/CalamityGlobalItemTweaks.cs | 2 +- Projectiles/CalamityGlobalProjectile.cs | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CalamityLists.cs b/CalamityLists.cs index 59e09a204e..f99f1a3559 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1958,6 +1958,7 @@ namespace CalamityMod ProjectileID.Arkhalis, ProjectileID.Terragrim, ProjectileID.MonkStaffT3, + ProjectileID.MechanicalPiranha, ProjectileID.LastPrismLaser, ProjectileID.ChargedBlasterLaser, ProjectileID.PiercingStarlight, @@ -2008,6 +2009,7 @@ namespace CalamityMod ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 11da81cd52..1bdccb51c7 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -173,7 +173,7 @@ namespace CalamityMod.Items { ItemID.PearlwoodSword, Do(UseTurn, DamageRatio(1.5f)) }, { ItemID.PewMaticHorn, Do(DamageExact(24)) }, { ItemID.PhoenixBlaster, Do(AutoReuse, PointBlank, UseExact(18)) }, - {ItemID.PiranhaGun, Do(DamageExact(30)) }, + { ItemID.PiranhaGun, Do(DamageExact(48)) }, { ItemID.PlatinumBow, Do(PointBlank, DamageExact(12)) }, { ItemID.PlatinumShortsword, Do(AutoReuse, TrueMelee, DamageExact(18)) }, { ItemID.PoisonStaff, Do(DamageExact(57)) }, diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index c4e325877c..eabbb9cf29 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2126,6 +2126,9 @@ namespace CalamityMod.Projectiles { if (projectile.type != ProjectileType()) projectile.extraUpdates += 1; + if (projectile.type == ProjectileID.MechanicalPiranha) + projectile.localNPCHitCooldown *= 2; + projectile.timeLeft *= 2; } if (modPlayer.camper && !player.StandingStill()) From ddbccd787394653394e7e498f2d3c4ddc213e3e5 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 6 Sep 2023 23:40:37 -0400 Subject: [PATCH 239/258] Reordered pierce resist exception list in alphabetical order because yes --- CalamityLists.cs | 78 ++++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/CalamityLists.cs b/CalamityLists.cs index f99f1a3559..ea389fe604 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1954,66 +1954,66 @@ namespace CalamityMod pierceResistExceptionList = new List() { - ProjectileID.FlyingKnife, ProjectileID.Arkhalis, - ProjectileID.Terragrim, - ProjectileID.MonkStaffT3, - ProjectileID.MechanicalPiranha, - ProjectileID.LastPrismLaser, ProjectileID.ChargedBlasterLaser, - ProjectileID.PiercingStarlight, ProjectileID.FinalFractal, - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), + ProjectileID.FlyingKnife, + ProjectileID.LastPrismLaser, + ProjectileID.MechanicalPiranha, + ProjectileID.MonkStaffT3, + ProjectileID.PiercingStarlight, + ProjectileID.Terragrim, ProjectileType(), - ProjectileType(), + ProjectileType(), + ProjectileType(), ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), ProjectileType(), + ProjectileType(), + ProjectileType(), ProjectileType(), + ProjectileType(), + ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), ProjectileType(), + ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), ProjectileType(), + ProjectileType(), ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), + ProjectileType(), ProjectileType(), - ProjectileType(), - ProjectileType(), - ProjectileType(), ProjectileType(), - ProjectileType(), - ProjectileType(), ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), + ProjectileType(), }; // Lists of enemies that resist piercing to some extent (mostly worms). From 47c48a3420cc243cb22381b2188fa82b036e4a60 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 7 Sep 2023 10:26:36 -0400 Subject: [PATCH 240/258] Barracuda Gun nerf --- Items/Weapons/Ranged/BarracudaGun.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/BarracudaGun.cs b/Items/Weapons/Ranged/BarracudaGun.cs index 2a96c992ce..48deaa932e 100644 --- a/Items/Weapons/Ranged/BarracudaGun.cs +++ b/Items/Weapons/Ranged/BarracudaGun.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 63; + Item.damage = 56; Item.channel = true; Item.DamageType = DamageClass.Ranged; Item.width = 54; From 969914d998d0437750e2b6bc7414e0e514222c68 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 7 Sep 2023 12:00:51 -0400 Subject: [PATCH 241/258] Phantasmal Ruin balancing --- Items/Weapons/Rogue/PhantasmalRuin.cs | 8 ++++---- Projectiles/Rogue/PhantasmalRuinProj.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index a7da727bac..f0996ca299 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public override void SetDefaults() { - Item.damage = 120; + Item.damage = 145; Item.knockBack = 8f; Item.width = 102; @@ -22,8 +22,8 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.noUseGraphic = true; - Item.useTime = 35; - Item.useAnimation = 35; + Item.useTime = 30; + Item.useAnimation = 30; Item.autoReuse = true; Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.rare = ItemRarityID.Lime; } - public override float StealthDamageMultiplier => 2.3f; + public override float StealthDamageMultiplier => 1.85f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Projectiles/Rogue/PhantasmalRuinProj.cs b/Projectiles/Rogue/PhantasmalRuinProj.cs index b0a22c19af..122477f243 100644 --- a/Projectiles/Rogue/PhantasmalRuinProj.cs +++ b/Projectiles/Rogue/PhantasmalRuinProj.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.timeLeft = Lifetime; Projectile.extraUpdates = 2; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 30; + Projectile.localNPCHitCooldown = 20 * Projectile.MaxUpdates; Projectile.DamageType = RogueDamageClass.Instance; } From e601edf771ce3a71c0b90caa4c3928bb3bdc0c30 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Thu, 7 Sep 2023 19:16:35 +0300 Subject: [PATCH 242/258] A Lot of post DoG mage balancing --- Items/Weapons/DraedonsArsenal/TeslaCannon.cs | 4 ++-- Items/Weapons/Magic/AlphaRay.cs | 4 ++-- Items/Weapons/Magic/EventHorizon.cs | 3 +-- Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs | 2 +- Items/Weapons/Magic/LightGodsBrilliance.cs | 4 ++-- Items/Weapons/Magic/PrimordialAncient.cs | 4 ++-- Items/Weapons/Magic/RecitationoftheBeast.cs | 2 +- Items/Weapons/Magic/SoulPiercer.cs | 2 +- Projectiles/Magic/SoulPiercerBeam.cs | 2 +- 9 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index 332f2a1250..d772febbae 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public class TeslaCannon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; - private int BaseDamage = 1360; + private int BaseDamage = 1220; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/TeslaCannonFire"); @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.useTime = 90; Item.useAnimation = 90; Item.autoReuse = true; - Item.mana = 30; + Item.mana = 60; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = FireSound; diff --git a/Items/Weapons/Magic/AlphaRay.cs b/Items/Weapons/Magic/AlphaRay.cs index f801c897f4..14350ef07e 100644 --- a/Items/Weapons/Magic/AlphaRay.cs +++ b/Items/Weapons/Magic/AlphaRay.cs @@ -21,9 +21,9 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 130; + Item.damage = 160; Item.DamageType = DamageClass.Magic; - Item.mana = 5; + Item.mana = 8; Item.width = 84; Item.height = 74; Item.useTime = Item.useAnimation = 4; diff --git a/Items/Weapons/Magic/EventHorizon.cs b/Items/Weapons/Magic/EventHorizon.cs index 7aa74a1c95..5bd44b9a8e 100644 --- a/Items/Weapons/Magic/EventHorizon.cs +++ b/Items/Weapons/Magic/EventHorizon.cs @@ -16,8 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 40; Item.height = 46; - - Item.damage = 275; + Item.damage = 200; Item.knockBack = 3.5f; Item.noMelee = true; Item.DamageType = DamageClass.Magic; diff --git a/Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs b/Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs index b9fcf9a3cc..f0e3b2863c 100644 --- a/Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs +++ b/Items/Weapons/Magic/GrandStaffoftheNebulaMage.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.damage = 510; Item.DamageType = DamageClass.Magic; - Item.mana = 30; + Item.mana = 60; Item.width = 120; Item.height = 124; Item.useTime = 30; diff --git a/Items/Weapons/Magic/LightGodsBrilliance.cs b/Items/Weapons/Magic/LightGodsBrilliance.cs index 27155f73d8..94b7b99a31 100644 --- a/Items/Weapons/Magic/LightGodsBrilliance.cs +++ b/Items/Weapons/Magic/LightGodsBrilliance.cs @@ -14,9 +14,9 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetDefaults() { - Item.damage = 100; + Item.damage = 111; Item.DamageType = DamageClass.Magic; - Item.mana = 4; + Item.mana = 6; Item.width = 42; Item.height = 48; Item.useTime = Item.useAnimation = 4; diff --git a/Items/Weapons/Magic/PrimordialAncient.cs b/Items/Weapons/Magic/PrimordialAncient.cs index bc01942a6b..8315ab6b84 100644 --- a/Items/Weapons/Magic/PrimordialAncient.cs +++ b/Items/Weapons/Magic/PrimordialAncient.cs @@ -12,9 +12,9 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetDefaults() { - Item.damage = 170; + Item.damage = 145; Item.DamageType = DamageClass.Magic; - Item.mana = 20; + Item.mana = 16; Item.width = 40; Item.height = 56; Item.useTime = 18; diff --git a/Items/Weapons/Magic/RecitationoftheBeast.cs b/Items/Weapons/Magic/RecitationoftheBeast.cs index 27fc577b06..35bf41c739 100644 --- a/Items/Weapons/Magic/RecitationoftheBeast.cs +++ b/Items/Weapons/Magic/RecitationoftheBeast.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic public new string LocalizationCategory => "Items.Weapons.Magic"; public override void SetDefaults() { - Item.mana = 24; + Item.mana = 17; Item.width = 38; Item.height = 54; Item.damage = 128; diff --git a/Items/Weapons/Magic/SoulPiercer.cs b/Items/Weapons/Magic/SoulPiercer.cs index 8f137f0399..c0a66eb210 100644 --- a/Items/Weapons/Magic/SoulPiercer.cs +++ b/Items/Weapons/Magic/SoulPiercer.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 270; + Item.damage = 310; Item.DamageType = DamageClass.Magic; Item.mana = 19; Item.width = 64; diff --git a/Projectiles/Magic/SoulPiercerBeam.cs b/Projectiles/Magic/SoulPiercerBeam.cs index f41b8f7b3a..27bc43185f 100644 --- a/Projectiles/Magic/SoulPiercerBeam.cs +++ b/Projectiles/Magic/SoulPiercerBeam.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.ignoreWater = true; Projectile.penetrate = -1; Projectile.extraUpdates = 100; - Projectile.timeLeft = 240; + Projectile.timeLeft = 360; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; } From 3800158a49bb97be4c9e6fb648df2b775a731a65 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 7 Sep 2023 13:24:34 -0400 Subject: [PATCH 243/258] Plantation Staff balance, and a couple other small things --- CalamityLists.cs | 1 + Items/CalamityGlobalItemTweaks.cs | 2 +- Items/Weapons/Ranged/PlagueTaintedSMG.cs | 4 ++-- Items/Weapons/Summon/PlantationStaff.cs | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CalamityLists.cs b/CalamityLists.cs index ea389fe604..031a8077a5 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1993,6 +1993,7 @@ namespace CalamityMod ProjectileType(), ProjectileType(), ProjectileType(), + ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType(), diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 1bdccb51c7..9d3304d7fd 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -221,7 +221,7 @@ namespace CalamityMod.Items { ItemID.TendonBow, Do(PointBlank, DamageExact(17), AutoReuse) }, // Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously, // Terrarian is extremely overpowered and requires a heavy nerf. - { ItemID.Terrarian, Do(AutoReuse, DamageExact(85)) }, + { ItemID.Terrarian, Do(AutoReuse, DamageExact(86)) }, { ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) }, { ItemID.TheUndertaker, Do(PointBlank, AutoReuse, DamageExact(15)) }, { ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear diff --git a/Items/Weapons/Ranged/PlagueTaintedSMG.cs b/Items/Weapons/Ranged/PlagueTaintedSMG.cs index dafc651e84..dfaacfcded 100644 --- a/Items/Weapons/Ranged/PlagueTaintedSMG.cs +++ b/Items/Weapons/Ranged/PlagueTaintedSMG.cs @@ -65,8 +65,8 @@ namespace CalamityMod.Items.Weapons.Ranged // Fire drones to the left and right. for (int i = 0; i < 3; i++) { - Projectile.NewProjectile(source, barrelPosition, velocity.RotatedBy(-Spread * (i + 1)), ModContent.ProjectileType(), player.Calamity().alchFlask ? (int)(damage * 0.6f) : damage, knockback, player.whoAmI); - Projectile.NewProjectile(source, barrelPosition, velocity.RotatedBy(Spread * (i + 1)), ModContent.ProjectileType(), player.Calamity().alchFlask ? (int)(damage * 0.6f) : damage, knockback, player.whoAmI); + Projectile.NewProjectile(source, barrelPosition, velocity.RotatedBy(-Spread * (i + 1)), ModContent.ProjectileType(), player.Calamity().alchFlask ? (int)(damage * 0.65f) : damage, knockback, player.whoAmI); + Projectile.NewProjectile(source, barrelPosition, velocity.RotatedBy(Spread * (i + 1)), ModContent.ProjectileType(), player.Calamity().alchFlask ? (int)(damage * 0.65f) : damage, knockback, player.whoAmI); } } else diff --git a/Items/Weapons/Summon/PlantationStaff.cs b/Items/Weapons/Summon/PlantationStaff.cs index 9ede488abc..42fdc08159 100644 --- a/Items/Weapons/Summon/PlantationStaff.cs +++ b/Items/Weapons/Summon/PlantationStaff.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - Item.damage = 55; + Item.damage = 58; Item.DamageType = DamageClass.Summon; Item.shoot = ModContent.ProjectileType(); Item.knockBack = 1f; From 5420bb465702c830a3e28f00eb2d1a6c9960ae89 Mon Sep 17 00:00:00 2001 From: Xyk Date: Thu, 7 Sep 2023 12:19:14 -0700 Subject: [PATCH 244/258] Phantasmal ruin random soul rotation --- Projectiles/Rogue/PhantasmalRuinProj.cs | 7 ++++--- Projectiles/Rogue/PhantasmalSoulBlue.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Projectiles/Rogue/PhantasmalRuinProj.cs b/Projectiles/Rogue/PhantasmalRuinProj.cs index 122477f243..b6d6c5e2d0 100644 --- a/Projectiles/Rogue/PhantasmalRuinProj.cs +++ b/Projectiles/Rogue/PhantasmalRuinProj.cs @@ -85,13 +85,14 @@ namespace CalamityMod.Projectiles.Rogue int projID = ModContent.ProjectileType(); int soulDamage = (int)(Projectile.damage * 0.2f); float soulKB = 0f; - float speed = 10f; + float speed = 4f; float startAngle = Main.rand.NextFloat(-0.07f, 0.07f) + MathHelper.PiOver4; Vector2 velocity = (Vector2.UnitX * speed).RotatedBy(startAngle); for (int i = 0; i < numSouls; i += 2) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, projID, soulDamage, soulKB, Projectile.owner, 0f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, -velocity, projID, soulDamage, soulKB, Projectile.owner, 0f); + Vector2 velocityrandom = velocity.RotatedByRandom(1.5f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity + velocityrandom, projID, soulDamage, soulKB, Projectile.owner, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, -velocity - velocityrandom, projID, soulDamage, soulKB, Projectile.owner, 0f); // Rotate direction for the next pair of souls. velocity = velocity.RotatedBy(MathHelper.TwoPi / numSouls); } diff --git a/Projectiles/Rogue/PhantasmalSoulBlue.cs b/Projectiles/Rogue/PhantasmalSoulBlue.cs index 1b3e4815c1..9fa1490ff4 100644 --- a/Projectiles/Rogue/PhantasmalSoulBlue.cs +++ b/Projectiles/Rogue/PhantasmalSoulBlue.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Projectiles.Rogue { public class PhantasmalSoulBlue : ModProjectile, ILocalizedModType { - public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/PhantomSpirit") { Volume = 0.3f }; + public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/Item/PhantomSpirit") { Volume = 0.2f }; public new string LocalizationCategory => "Projectiles.Rogue"; private const int Lifetime = 300; private const int NoHomingFrames = 45; From 694df184a76e6d7cb604e482deec1327bc5e677f Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 7 Sep 2023 18:36:55 -0600 Subject: [PATCH 245/258] Fixed Rogue Stealth Damage prefixes reducing damage, nerfed UniversalStealthStrikeDamageFactor Others: Some minor tweaks to OD's rogue drops that are WIP --- Balancing/BalancingConstants.cs | 13 ++++++++++++- CalPlayer/CalamityPlayer.cs | 2 +- Items/Weapons/Rogue/TheOldReaper.cs | 4 ++-- Projectiles/Rogue/ReaperProjectile.cs | 10 +++++----- Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs | 6 +++--- 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/Balancing/BalancingConstants.cs b/Balancing/BalancingConstants.cs index b97bf0b3f2..292d411c7d 100644 --- a/Balancing/BalancingConstants.cs +++ b/Balancing/BalancingConstants.cs @@ -59,7 +59,18 @@ // Rogue stealth // If stealth is too weak, increase this number. If stealth is too strong, decrease this number. // This value is intentionally not readonly. - public static double UniversalStealthStrikeDamageFactor = 0.5; + public static double UniversalStealthStrikeDamageFactor = 0.41; + // Shade - 07/09/2023 + // Universal Stealth dmg factor was nerfed to 0.41 from 0.5 + // Stealth damage prefixes were bugged, causing that stealth strikes with the Mighty, Hefty and most importantly Flawless + // dealt less damage than intended; idk how long this thing has been for but looking at #bug-reports and #known-bugs its + // likely at least 7 months old, buried deep beneath a lot other bugs due to being in the port and forgotten about. + // Due to how impactful the fix was, the change had to happen and thus the nerf was made. + // + // This nerf should be reversed once the stealth -> focus rogue rework or rogue/stealth III or however you want to call it occurs, + // as of today summoner is the priority class now but once we're done with the Summoner minion culling and its Whip Hell we should + // probably start working on rogue afterwards. + internal static readonly float BaseStealthGenTime = 4f; // 4 seconds internal static readonly float MovingStealthGenRatio = 0.5f; diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 7cd1f883f1..b689d54f47 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3690,7 +3690,7 @@ namespace CalamityMod.CalPlayer { // Apply weapon modifier stealth strike damage bonus if (item.Calamity().StealthStrikePrefixBonus != 0f && StealthStrikeAvailable()) - damage += 1f - item.Calamity().StealthStrikePrefixBonus; + damage += 1f + item.Calamity().StealthStrikePrefixBonus; } } diff --git a/Items/Weapons/Rogue/TheOldReaper.cs b/Items/Weapons/Rogue/TheOldReaper.cs index 0b282e6527..40a02d8975 100644 --- a/Items/Weapons/Rogue/TheOldReaper.cs +++ b/Items/Weapons/Rogue/TheOldReaper.cs @@ -38,8 +38,8 @@ namespace CalamityMod.Items.Weapons.Rogue { if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike { - int spread = 10; - for (int i = 0; i < 4; i++) + int spread = 15; + for (int i = 0; i < 3; i++) { Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3,4), velocity.Y + Main.rand.Next(-3,4)).RotatedBy(MathHelper.ToRadians(spread)); int proj = Projectile.NewProjectile(source, position, perturbedspeed, type, damage, knockback, player.whoAmI); diff --git a/Projectiles/Rogue/ReaperProjectile.cs b/Projectiles/Rogue/ReaperProjectile.cs index d5a5a1af30..c75a0d63ed 100644 --- a/Projectiles/Rogue/ReaperProjectile.cs +++ b/Projectiles/Rogue/ReaperProjectile.cs @@ -27,10 +27,10 @@ namespace CalamityMod.Projectiles.Rogue Projectile.tileCollide = false; Projectile.ignoreWater = true; Projectile.penetrate = -1; - Projectile.extraUpdates = 3; + Projectile.extraUpdates = 2; Projectile.timeLeft = Projectile.MaxUpdates * 90; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 26; // can't hit too fast, but can hit many many times + Projectile.localNPCHitCooldown = 18; // can't hit too fast, but can hit many many times Projectile.DamageType = RogueDamageClass.Instance; } @@ -142,7 +142,7 @@ namespace CalamityMod.Projectiles.Rogue } } } - Projectile.rotation += 0.07f; + Projectile.rotation += 0.3f; } public override bool PreDraw(ref Color lightColor) @@ -154,14 +154,14 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 180); - target.AddBuff(ModContent.BuffType(), 180); + //target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(ModContent.BuffType(), 180); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { target.AddBuff(ModContent.BuffType(), 180); - target.AddBuff(ModContent.BuffType(), 180); + //target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(ModContent.BuffType(), 180); } diff --git a/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs b/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs index 4c38ee01cf..120b5eedcc 100644 --- a/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs +++ b/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs @@ -41,9 +41,9 @@ namespace CalamityMod.Projectiles.Rogue } Projectile.rotation += 0.06f * (Projectile.velocity.X > 0).ToDirectionInt(); } - - // Boomerang rotation - Projectile.rotation += 0.4f * Projectile.direction; + else + // Boomerang rotation + Projectile.rotation += 0.4f * Projectile.direction; // Boomerang sound if (Projectile.soundDelay == 0) From 310040796e3a36199d90c4398bb73861ccf95246 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 7 Sep 2023 19:26:32 -0600 Subject: [PATCH 246/258] Nerfed Plasma Grenades; AGAIN --- Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index f575b6ff3e..89fe934f19 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -26,12 +26,12 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.width = 22; Item.height = 28; - Item.damage = 1000; + Item.damage = 900; Item.noMelee = true; Item.noUseGraphic = true; Item.consumable = false; Item.useStyle = ItemUseStyleID.Swing; - Item.useAnimation = Item.useTime = 27; + Item.useAnimation = Item.useTime = 30; Item.knockBack = 3f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal modItem.ChargePerUse = 0.25f; } - public override float StealthDamageMultiplier => 1.2f; + public override float StealthDamageMultiplier => 0.9f; public override float StealthVelocityMultiplier => 1.2f; public override float StealthKnockbackMultiplier => 1.5f; From d626c9c5c672fc767360a55838a0384a4f68fb20 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 7 Sep 2023 22:09:56 -0400 Subject: [PATCH 247/258] Finally conquered Arterial Assault All arrows shot by Arterial Assault have homing --- Items/Weapons/Ranged/ArterialAssault.cs | 22 ++++++++----------- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index 9bd1950f75..b20e90be72 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -1,5 +1,5 @@ using CalamityMod.Items.Materials; -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles; using CalamityMod.Rarities; using Microsoft.Xna.Framework; using System; @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public override void SetDefaults() { - Item.damage = 128; + Item.damage = 110; Item.DamageType = DamageClass.Ranged; Item.width = 44; Item.height = 100; @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item102; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ProjectileID.WoodenArrowFriendly; Item.shootSpeed = 30f; Item.useAmmo = AmmoID.Arrow; } @@ -76,16 +76,12 @@ namespace CalamityMod.Items.Weapons.Ranged num79 *= num80; float speedX4 = num78; float speedY5 = num79; - if (CalamityUtils.CheckWoodenAmmo(type, player)) - { - int bloodfire = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 80f); - Main.projectile[bloodfire].tileCollide = false; - } - else - { - int num121 = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); - Main.projectile[num121].noDropItem = true; - } + int shotArrow = Projectile.NewProjectile(source, vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI); + Main.projectile[shotArrow].noDropItem = true; + Main.projectile[shotArrow].tileCollide = false; + Main.projectile[shotArrow].timeLeft = (int)(Main.projectile[shotArrow].timeLeft * Main.projectile[shotArrow].MaxUpdates * 0.55f); + CalamityGlobalProjectile cgp = Main.projectile[shotArrow].Calamity(); + cgp.allProjectilesHome = true; return false; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 97619fa32d..6df6b23b5e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -78,7 +78,7 @@ ArterialAssault: { Tooltip: ''' Fires a chain of 5 arrows from the sky - Wooden arrows are converted into homing bloodfire arrows + All arrows will rapidly home in on nearby enemies ''' } From 13bca26f6ed0832c18a2e286ad8b41f43f041bd7 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Thu, 7 Sep 2023 22:17:43 -0400 Subject: [PATCH 248/258] Removed old homing code from Bloodfire Arrow --- Projectiles/Ranged/BloodfireArrowProj.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Projectiles/Ranged/BloodfireArrowProj.cs b/Projectiles/Ranged/BloodfireArrowProj.cs index f860ee2b96..fea561969f 100644 --- a/Projectiles/Ranged/BloodfireArrowProj.cs +++ b/Projectiles/Ranged/BloodfireArrowProj.cs @@ -59,9 +59,6 @@ namespace CalamityMod.Projectiles.Ranged Main.dust[num9].velocity = Vector2.Normalize(Projectile.Center - Projectile.velocity * 3f - Main.dust[num9].position) * 1.25f; } } - - if (Projectile.ai[1] == 80f) //means it's from Arterial Assault's wooden arrow conversion - CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 200f, 12f, 20f); } public override void Kill(int timeLeft) From 84368e7e381d806d2695d36e0b0391138e0f4e28 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:45:00 -0300 Subject: [PATCH 249/258] Rewritten a bunch of Loading Screen Tips --- .../en-US/Mods.CalamityMod.GameTips.hjson | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.GameTips.hjson b/Localization/en-US/Mods.CalamityMod.GameTips.hjson index 019ff8cc1f..5e3147373e 100644 --- a/Localization/en-US/Mods.CalamityMod.GameTips.hjson +++ b/Localization/en-US/Mods.CalamityMod.GameTips.hjson @@ -1,19 +1,19 @@ -SunkenSeaTip: Deep below the Underground Desert lie the ruined outskirts of a fallen kingdom. -ArsenalLabTip: Old labs can be found scattered throughout the Underground. -PlanetoidTip: You can find Planetoids in outer space! -AbyssTip: The Abyss can be found deep below the Sulphurous Sea. It's very difficult to explore without proper diving gear. -BanditTip: The Bandit is most interested in those who save up enough money worth to swindle. +SunkenSeaTip: Deep below in the Desert lies the ruined outskirts of a fallen kingdom. +ArsenalLabTip: Old and abandoned labs can be found scattered below the surface. +PlanetoidTip: You can find Planetoids high up in Space! +AbyssTip: The Abyss can be found deep below the Sulphurous Sea. Be sure to have proper diving gear when exploring it. +BanditTip: The Bandit won't steal from the poor. If you want to see them, you will need a lot of money to pick their attention. RefundTip: If you've been reforging a lot with the Goblin Tinkerer, it might pay off to give the Bandit a visit. DrunkPrincessTip: The Drunk Princess is great to party with. If you carry her favorite vodka, she might move in. SeaKingTip: The Sea King used to like clams. He changed his mind when he got eaten by one. AmidiasBlessingTip: The Sea King can provide a bubble to aid with breathing underwater to any who ask for help. -ArchmageTip: The Archmage can be freed if you destroy the very castle he was imprisoned in. -BrimstoneWitchTip: The Brimstone Witch can enchant items to grant them new powers. +ArchmageTip: The Archmage can be freed if you manage to destroy the cell he was imprisoned in. +BrimstoneWitchTip: The Brimstone Witch can enchant your items to grant them new powers. TitanHeartTip: Titan Hearts can be used as an offering at a Beacon found in the Astral Infection. -NightProvTip: Summoning the sun goddess under the light of the moon massively empowers her strength and endurance. -DayEoLTip: Summoning the fae goddess under the light of day will start a vicious and persistent battle. +NightProvTip: Summoning the Profaned Goddess under the light of the moon massively empowers her strength and endurance. +DayEoLTip: Summoning the fae monarch under the light of day will start a vicious and persistent battle. BossEnemyTip: Killing the most harmless of enemies can awaken the wrath of a much stronger monster. Slay them at your own risk! -RoDAbyssTip: Use the Rod of Discord in the Abyss at your own risk. The chaotic traces left behind may attract the attention of unwanted foes. +RoDAbyssTip: Use the Rod of Discord in the Abyss at your own risk. The light left behind may attract the attention of unwanted foes. TerminusTip: An ancient artifact resides at the bottom of the Abyss. Use with great caution. CodebreakerTip: The Codebreaker can be upgraded, allowing you to decrypt new schematics found in various labs around the world. ChargeTip: Certain weaponry requires charge to use. Weapons can be charged at a Charging Station with Draedon Power Cells. @@ -25,4 +25,4 @@ DefenseDamageTip: Certain attacks will chip away at your defense, but it will qu PointBlankTip: Ranged weapons fired at point blank will do a lot more damage. RevengeanceTip: Need a challenge beyond Expert Mode? Try Revengeance Mode! BloodOrbTip: Blood Orbs collected during the Blood Moon can craft almost any potion. -KeybindsTip: Modded controls can be bound in Settings. \ No newline at end of file +KeybindsTip: Modded controls can be bound in Settings. From fbde26d39e2aec3c0cc1e7556a0d08da55dc87d1 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 7 Sep 2023 21:01:11 -0600 Subject: [PATCH 250/258] Buffed Toxicant Twister sapm, nerfed stealth (Yharon needs testing to see if this doesnt nuke it lol) Unnerfed Glove of Recklessness a bit; the nerf was overkill WIP Old Reaper Balancing (also DrawAfterimagesCentered actually doesnt ignore the afterimages config; this thing looks hideous without em) --- Items/Accessories/GloveOfRecklessness.cs | 2 +- Items/Weapons/Rogue/TheOldReaper.cs | 4 ++-- Items/Weapons/Rogue/ToxicantTwister.cs | 4 ++-- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- Projectiles/Rogue/ReaperProjectile.cs | 4 ++-- Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs | 7 +++---- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Items/Accessories/GloveOfRecklessness.cs b/Items/Accessories/GloveOfRecklessness.cs index 6cc70d1a92..94bdebab89 100644 --- a/Items/Accessories/GloveOfRecklessness.cs +++ b/Items/Accessories/GloveOfRecklessness.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories modPlayer.stealthGenStandstill += 0.15f; modPlayer.stealthGenMoving += 0.15f; player.GetDamage() -= 0.10f; - player.GetCritChance() -= 15; + player.GetCritChance() -= 10; player.GetAttackSpeed() += 0.15f; } } diff --git a/Items/Weapons/Rogue/TheOldReaper.cs b/Items/Weapons/Rogue/TheOldReaper.cs index 40a02d8975..37480ed23e 100644 --- a/Items/Weapons/Rogue/TheOldReaper.cs +++ b/Items/Weapons/Rogue/TheOldReaper.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue public override void SetDefaults() { Item.width = 106; - Item.damage = 122; + Item.damage = 143; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = 22; @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.rare = ModContent.RarityType(); } - public override float StealthDamageMultiplier => 0.4f; + public override float StealthDamageMultiplier => 0.66f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Items/Weapons/Rogue/ToxicantTwister.cs b/Items/Weapons/Rogue/ToxicantTwister.cs index 9782d49a43..f4e8bad9da 100644 --- a/Items/Weapons/Rogue/ToxicantTwister.cs +++ b/Items/Weapons/Rogue/ToxicantTwister.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 42; Item.height = 46; - Item.damage = 300; + Item.damage = 333; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = Item.useTime = 20; @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.rare = ModContent.RarityType(); } - public override float StealthDamageMultiplier => 1.35f; + public override float StealthDamageMultiplier => 1.25f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 92560a7029..e6a6ec0227 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -824,7 +824,7 @@ GloveOfRecklessness: { DisplayName: Glove of Recklessness Tooltip: ''' - Increases rogue attack speed by 15%, but decreases damage by 10% and crit by 15% + Increases rogue attack speed by 15%, but decreases damage by 10% and crit by 10% 15% increased stealth regeneration Adds inaccuracy to rogue weapons ''' diff --git a/Projectiles/Rogue/ReaperProjectile.cs b/Projectiles/Rogue/ReaperProjectile.cs index c75a0d63ed..1d461a3b1e 100644 --- a/Projectiles/Rogue/ReaperProjectile.cs +++ b/Projectiles/Rogue/ReaperProjectile.cs @@ -21,8 +21,8 @@ namespace CalamityMod.Projectiles.Rogue public override void SetDefaults() { - Projectile.width = 70; - Projectile.height = 70; + Projectile.width = 60; + Projectile.height = 60; Projectile.friendly = true; Projectile.tileCollide = false; Projectile.ignoreWater = true; diff --git a/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs b/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs index 120b5eedcc..130de6ab78 100644 --- a/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs +++ b/Projectiles/Rogue/ToxicantTwisterTwoPointZero.cs @@ -37,13 +37,12 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.timeLeft % 20 == 0 && Main.myPlayer == Projectile.owner) { for (int i = 0; i < 2; i++) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedByRandom(0.1f) * -0.6f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.35), 0f, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedByRandom(0.1f) * -0.6f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.25), 0f, Projectile.owner); } Projectile.rotation += 0.06f * (Projectile.velocity.X > 0).ToDirectionInt(); } - else - // Boomerang rotation - Projectile.rotation += 0.4f * Projectile.direction; + // Boomerang rotation + Projectile.rotation += 0.4f * Projectile.direction; // Boomerang sound if (Projectile.soundDelay == 0) From e379cc1c270c006409b075204b2b9a6f4cffc70b Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Fri, 8 Sep 2023 00:11:28 -0300 Subject: [PATCH 251/258] New flavor text for trying to consume more than one permanent upgrade --- Localization/en-US/Mods.CalamityMod.Misc.hjson | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Misc.hjson index 815e42a2a0..5d2457c394 100644 --- a/Localization/en-US/Mods.CalamityMod.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Misc.hjson @@ -49,12 +49,12 @@ StylishHammerHit: Stylish! ThirdSageBlessingText: You have been blessed by the Third Sage! ThirdSageBlessingText2: The Third Sage has rescinded its blessing... GenericConsumedText: "[c/8A8A8A:You have already consumed this item]" -BloodOrangeText: You have already consumed a Blood Orange. Eating any more would not be good for you. -MiracleFruitText: You have already consumed a Miracle Fruit. Having another would make you sick. -ElderberryText: You have already consumed an Elderberry. It is probably not wise to eat more than one. -DragonfruitText: You have already consumed a Dragonfruit. Your stomach cannot take any more. -CometShardText: You have already used a Comet Shard. Using more would make you nauseous. -EtherealCoreText: You have already used an Ethereal Core. It's best to not use more than you are able to. -PhantomHeartText: You have already used a Phantom Heart. It's probably good that you can't use another. +BloodOrangeText: You have already consumed a Blood Orange. Eating any more would make your blood too thick to flow. +MiracleFruitText: You have already consumed a Miracle Fruit. It would take a miracle to put you back together if you ate another. +ElderberryText: You have already consumed an Elderberry. Your body would become dust if you ate more than one. +DragonfruitText: You have already consumed a Dragonfruit. Any more draconic power and you'd be rejected. +CometShardText: You have already used a Comet Shard. Your neurons would die if you used another. +EtherealCoreText: You have already used an Ethereal Core. Your brain would escape your head if you dared to use it a second time. +PhantomHeartText: You have already used a Phantom Heart. The voices are telling you it's a bad idea to use it again. SulphurSwitchLeft: The Sulphurous Sea is now on the left side of the world. -SulphurSwitchRight: The Sulphurous Sea is now on the right side of the world. \ No newline at end of file +SulphurSwitchRight: The Sulphurous Sea is now on the right side of the world. From 32147c43d28f8d95d6d0ee365e7c017a2913a4d9 Mon Sep 17 00:00:00 2001 From: HaguriHat <141063931+HaguriHat@users.noreply.github.com> Date: Fri, 8 Sep 2023 00:25:02 -0300 Subject: [PATCH 252/258] Grammar fix --- Localization/en-US/Mods.CalamityMod.GameTips.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.GameTips.hjson b/Localization/en-US/Mods.CalamityMod.GameTips.hjson index 5e3147373e..1fd667842e 100644 --- a/Localization/en-US/Mods.CalamityMod.GameTips.hjson +++ b/Localization/en-US/Mods.CalamityMod.GameTips.hjson @@ -2,7 +2,7 @@ SunkenSeaTip: Deep below in the Desert lies the ruined outskirts of a fallen kin ArsenalLabTip: Old and abandoned labs can be found scattered below the surface. PlanetoidTip: You can find Planetoids high up in Space! AbyssTip: The Abyss can be found deep below the Sulphurous Sea. Be sure to have proper diving gear when exploring it. -BanditTip: The Bandit won't steal from the poor. If you want to see them, you will need a lot of money to pick their attention. +BanditTip: The Bandit won't steal from the poor. If you want to see them, you will need a lot of money to pique their attention. RefundTip: If you've been reforging a lot with the Goblin Tinkerer, it might pay off to give the Bandit a visit. DrunkPrincessTip: The Drunk Princess is great to party with. If you carry her favorite vodka, she might move in. SeaKingTip: The Sea King used to like clams. He changed his mind when he got eaten by one. From 4a2c48dbca1720506358b0faf95f3d4717edaa15 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Thu, 7 Sep 2023 22:32:57 -0600 Subject: [PATCH 253/258] Fixed a "missing asset" bug --- NPCs/CalamityGlobalNPC.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 1c395f9ad6..bfee8ae12e 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -5778,7 +5778,7 @@ namespace CalamityMod.NPCs // Visual debuff if (RancorBurnTime > 0) - buffTextureList.Add(Request("CalamityMod/Buffs/RancorBurn").Value); + buffTextureList.Add(Request("CalamityMod/Buffs/DamageOverTime/RancorBurn").Value); // Vanilla damage over time debuffs if (electrified > 0) From 05df3cb71a2873f6a79adf24dd2bef1de9aafc4c Mon Sep 17 00:00:00 2001 From: Done2222 Date: Fri, 8 Sep 2023 15:37:19 +0300 Subject: [PATCH 254/258] magnomaly cannon proj buff and vivid clarity nerf --- Items/Weapons/Magic/VividClarity.cs | 2 +- Localization/en-US/Mods.CalamityMod.GameTips.hjson | 4 ++-- Localization/en-US/Mods.CalamityMod.Misc.hjson | 2 +- Projectiles/Ranged/MagnomalyRocket.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Magic/VividClarity.cs b/Items/Weapons/Magic/VividClarity.cs index d6f9240147..aa4956a485 100644 --- a/Items/Weapons/Magic/VividClarity.cs +++ b/Items/Weapons/Magic/VividClarity.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 155; + Item.damage = 133; Item.DamageType = DamageClass.Magic; Item.mana = 42; Item.width = 90; diff --git a/Localization/en-US/Mods.CalamityMod.GameTips.hjson b/Localization/en-US/Mods.CalamityMod.GameTips.hjson index 1fd667842e..6cc6a2295b 100644 --- a/Localization/en-US/Mods.CalamityMod.GameTips.hjson +++ b/Localization/en-US/Mods.CalamityMod.GameTips.hjson @@ -1,5 +1,5 @@ SunkenSeaTip: Deep below in the Desert lies the ruined outskirts of a fallen kingdom. -ArsenalLabTip: Old and abandoned labs can be found scattered below the surface. +ArsenalLabTip: Old and abandoned labs can be found scattered below the surface. PlanetoidTip: You can find Planetoids high up in Space! AbyssTip: The Abyss can be found deep below the Sulphurous Sea. Be sure to have proper diving gear when exploring it. BanditTip: The Bandit won't steal from the poor. If you want to see them, you will need a lot of money to pique their attention. @@ -25,4 +25,4 @@ DefenseDamageTip: Certain attacks will chip away at your defense, but it will qu PointBlankTip: Ranged weapons fired at point blank will do a lot more damage. RevengeanceTip: Need a challenge beyond Expert Mode? Try Revengeance Mode! BloodOrbTip: Blood Orbs collected during the Blood Moon can craft almost any potion. -KeybindsTip: Modded controls can be bound in Settings. +KeybindsTip: Modded controls can be bound in Settings. \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Misc.hjson index 5d2457c394..4ad9c8fda4 100644 --- a/Localization/en-US/Mods.CalamityMod.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Misc.hjson @@ -57,4 +57,4 @@ CometShardText: You have already used a Comet Shard. Your neurons would die if y EtherealCoreText: You have already used an Ethereal Core. Your brain would escape your head if you dared to use it a second time. PhantomHeartText: You have already used a Phantom Heart. The voices are telling you it's a bad idea to use it again. SulphurSwitchLeft: The Sulphurous Sea is now on the left side of the world. -SulphurSwitchRight: The Sulphurous Sea is now on the right side of the world. +SulphurSwitchRight: The Sulphurous Sea is now on the right side of the world. \ No newline at end of file diff --git a/Projectiles/Ranged/MagnomalyRocket.cs b/Projectiles/Ranged/MagnomalyRocket.cs index 7f4eebbbec..46fb65e4a2 100644 --- a/Projectiles/Ranged/MagnomalyRocket.cs +++ b/Projectiles/Ranged/MagnomalyRocket.cs @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Ranged Main.dust[exo].noGravity = true; Main.dust[exo].noLight = true; } - CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 12f, 20f); + CalamityUtils.HomeInOnNPC(Projectile, true, 300f, 12f, 20f); } public override void Kill(int timeLeft) From 8a36066f43bf8ec93392c4106a2d23074464c3e4 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 8 Sep 2023 16:23:24 +0100 Subject: [PATCH 255/258] Update plague containment decraft --- ILEditing/BalancingILChanges.cs | 6 +----- .../Placeables/FurniturePlagued/PlaguedContainmentBrick.cs | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ILEditing/BalancingILChanges.cs b/ILEditing/BalancingILChanges.cs index b579b5e0ff..58c334d8b9 100644 --- a/ILEditing/BalancingILChanges.cs +++ b/ILEditing/BalancingILChanges.cs @@ -2,6 +2,7 @@ using CalamityMod.Balancing; using CalamityMod.Items.Accessories; using CalamityMod.Items.Placeables.FurniturePlagued; +using CalamityMod.Items.Potions; using CalamityMod.NPCs.DraedonLabThings; using Mono.Cecil.Cil; using MonoMod.Cil; @@ -23,11 +24,6 @@ namespace CalamityMod.ILEditing return DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs; } - if (item.type == ModContent.ItemType()) - { - return NPC.downedGolemBoss ? orig(item) : false; - } - return orig(item); } diff --git a/Items/Placeables/FurniturePlagued/PlaguedContainmentBrick.cs b/Items/Placeables/FurniturePlagued/PlaguedContainmentBrick.cs index 4063ba6b47..50b2c5e678 100644 --- a/Items/Placeables/FurniturePlagued/PlaguedContainmentBrick.cs +++ b/Items/Placeables/FurniturePlagued/PlaguedContainmentBrick.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Walls; using CalamityMod.Tiles.Furniture.CraftingStations; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables.FurniturePlagued @@ -34,6 +35,7 @@ namespace CalamityMod.Items.Placeables.FurniturePlagued AddRecipeGroup("AnyStoneBlock", 50). AddIngredient(). AddTile(). + AddDecraftCondition(Condition.DownedGolem). Register(); CreateRecipe(). AddIngredient(4). From 1584a47656c91093da8e63b357b6821ca770739d Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 8 Sep 2023 16:23:39 +0100 Subject: [PATCH 256/258] Fixed Photosynthesis early decrafts --- Items/Potions/PhotosynthesisPotion.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Items/Potions/PhotosynthesisPotion.cs b/Items/Potions/PhotosynthesisPotion.cs index 4a9941f9b7..dbd2b5d766 100644 --- a/Items/Potions/PhotosynthesisPotion.cs +++ b/Items/Potions/PhotosynthesisPotion.cs @@ -39,6 +39,7 @@ namespace CalamityMod.Items.Potions AddIngredient(). AddTile(TileID.AlchemyTable). AddConsumeItemCallback(Recipe.ConsumptionRules.Alchemy). + AddDecraftCondition(Condition.Hardmode). Register(); CreateRecipe(). From 18303db355d112e4e8363d67e0c6df8094834a90 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Fri, 8 Sep 2023 16:24:23 +0100 Subject: [PATCH 257/258] psa/psc rocks ignorewater because the sounds sucked --- Projectiles/Summon/MiniGuardianRock.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Projectiles/Summon/MiniGuardianRock.cs b/Projectiles/Summon/MiniGuardianRock.cs index fe873f464c..29a5fc8fa6 100644 --- a/Projectiles/Summon/MiniGuardianRock.cs +++ b/Projectiles/Summon/MiniGuardianRock.cs @@ -28,6 +28,7 @@ namespace CalamityMod.Projectiles.Summon { Projectile.netImportant = true; Projectile.tileCollide = false; + Projectile.ignoreWater = true; //the sounds get grating otherwise Projectile.width = 50; Projectile.height = 50; Projectile.minion = true; From 8ca8eaf058ad832aef1e175780b207fcc42c615a Mon Sep 17 00:00:00 2001 From: Done2222 Date: Fri, 8 Sep 2023 20:11:49 +0300 Subject: [PATCH 258/258] nerfs for heavenly gale, exoblade and spine of thanatos. buff for voltaic climas --- Items/Weapons/Magic/VoltaicClimax.cs | 2 +- Items/Weapons/Melee/Exoblade.cs | 2 +- Items/Weapons/Melee/SpineOfThanatos.cs | 2 +- Items/Weapons/Ranged/HeavenlyGale.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Magic/VoltaicClimax.cs b/Items/Weapons/Magic/VoltaicClimax.cs index a5fe250d7e..69fc4223af 100644 --- a/Items/Weapons/Magic/VoltaicClimax.cs +++ b/Items/Weapons/Magic/VoltaicClimax.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 100; + Item.damage = 123; Item.DamageType = DamageClass.Magic; Item.mana = 30; Item.width = 78; diff --git a/Items/Weapons/Melee/Exoblade.cs b/Items/Weapons/Melee/Exoblade.cs index 4096468609..0576af4659 100644 --- a/Items/Weapons/Melee/Exoblade.cs +++ b/Items/Weapons/Melee/Exoblade.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 138; Item.height = 184; - Item.damage = 935; + Item.damage = 915; Item.useStyle = ItemUseStyleID.Swing; Item.useTime = BaseUseTime; Item.useAnimation = BaseUseTime; diff --git a/Items/Weapons/Melee/SpineOfThanatos.cs b/Items/Weapons/Melee/SpineOfThanatos.cs index fae99a01c2..57bdf30542 100644 --- a/Items/Weapons/Melee/SpineOfThanatos.cs +++ b/Items/Weapons/Melee/SpineOfThanatos.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { Item.width = Item.height = 28; - Item.damage = 150; + Item.damage = 128; Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.noMelee = true; diff --git a/Items/Weapons/Ranged/HeavenlyGale.cs b/Items/Weapons/Ranged/HeavenlyGale.cs index 0cafcf0831..e469016528 100644 --- a/Items/Weapons/Ranged/HeavenlyGale.cs +++ b/Items/Weapons/Ranged/HeavenlyGale.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - Item.damage = 221; + Item.damage = 215; Item.DamageType = DamageClass.Ranged; Item.width = 138; Item.height = 176;