From 7ddbcdf4e3cb438378fd9139dd638d0b0886967e Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 27 Jun 2020 10:29:48 -0400 Subject: [PATCH] Jelly changes reverted grand gelatin changes nerfed vital jelly jump boost buffed vital jelly movement speed Adjusted some jelly drop chances green jellyfish now overrides loot in PHM to prevent crossmod shenanigans --- Items/Accessories/GrandGelatin.cs | 10 ++++------ Items/Accessories/VitalJelly.cs | 12 ++++++------ NPCs/Abyss/MirageJelly.cs | 2 +- NPCs/CalamityGlobalNPCLoot.cs | 13 ++++++++++++- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/Items/Accessories/GrandGelatin.cs b/Items/Accessories/GrandGelatin.cs index 77f06d49c9..9fcc958425 100644 --- a/Items/Accessories/GrandGelatin.cs +++ b/Items/Accessories/GrandGelatin.cs @@ -1,4 +1,3 @@ -using CalamityMod.Items.Materials; using System; using Terraria; using Terraria.ID; @@ -13,7 +12,7 @@ namespace CalamityMod.Items.Accessories DisplayName.SetDefault("Grand Gelatin"); Tooltip.SetDefault("10% increased movement speed\n" + "200% increased jump speed\n" + - "+40 max life and mana\n" + + "+20 max life and mana\n" + "Standing still boosts life and mana regen"); } @@ -29,9 +28,9 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { player.moveSpeed += 0.1f; - player.jumpSpeedBoost += player.autoJump ? 0.5f : 2.0f; - player.statLifeMax2 += 40; - player.statManaMax2 += 40; + player.jumpSpeedBoost += player.autoJump ? 0.5f : 2f; + player.statLifeMax2 += 20; + player.statManaMax2 += 20; if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0) { player.lifeRegen += 2; @@ -45,7 +44,6 @@ namespace CalamityMod.Items.Accessories recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType(), 3); recipe.AddTile(TileID.MythrilAnvil); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Accessories/VitalJelly.cs b/Items/Accessories/VitalJelly.cs index 5b3b9986f8..e08c36085e 100644 --- a/Items/Accessories/VitalJelly.cs +++ b/Items/Accessories/VitalJelly.cs @@ -8,23 +8,23 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Vital Jelly"); - Tooltip.SetDefault("10% increased movement speed\n" + - "200% increased jump speed"); + Tooltip.SetDefault("20% increased movement speed\n" + + "120% increased jump speed"); } public override void SetDefaults() { item.width = 20; item.height = 24; - item.value = CalamityGlobalItem.Rarity4BuyPrice; - item.rare = 4; + item.value = CalamityGlobalItem.Rarity3BuyPrice; + item.rare = 3; item.accessory = true; } public override void UpdateAccessory(Player player, bool hideVisual) { - player.moveSpeed += 0.1f; - player.jumpSpeedBoost += player.autoJump ? 0.5f : 2.0f; + player.moveSpeed += 0.2f; + player.jumpSpeedBoost += player.autoJump ? 0.3f : 1.2f; } } } diff --git a/NPCs/Abyss/MirageJelly.cs b/NPCs/Abyss/MirageJelly.cs index 7e7c93dab3..656cd69964 100644 --- a/NPCs/Abyss/MirageJelly.cs +++ b/NPCs/Abyss/MirageJelly.cs @@ -213,7 +213,7 @@ namespace CalamityMod.NPCs.Abyss DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedCalamitas && Main.expertMode, 2, 5, 7); DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), Main.hardMode, Main.expertMode ? 5 : 7, 1, 1); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); float necklaceDropRate = CalamityWorld.defiled ? DropHelper.DefiledDropRateFloat : 0.01f; DropHelper.DropItemChance(npc, ItemID.JellyfishNecklace, necklaceDropRate); } diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 741b64d5c7..591692c241 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -380,6 +380,17 @@ namespace CalamityMod.NPCs } } } + //Since Calamity makes it spawn in pre-hardmode, don't want to cause other mods to freak out if they use it as a tier gate (like a new weapon or something) + else if (npc.type == NPCID.GreenJellyfish && !Main.hardMode) + { + DropHelper.DropItem(npc, ItemID.Glowstick, 1, 4); + DropHelper.DropItemChance(npc, ItemID.JellyfishNecklace, 0.1f); + DropHelper.DropItemChance(npc, ItemID.Megaphone, Main.expertMode ? 0.2f : 0.1f); + DropHelper.DropItemCondition(npc, ItemID.JellyfishNecklace, CalamityWorld.defiled, DropHelper.DefiledDropRateFloat); + DropHelper.DropItemCondition(npc, ItemID.Megaphone, CalamityWorld.defiled, DropHelper.DefiledDropRateFloat); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); + return false; + } return true; } @@ -1428,7 +1439,7 @@ namespace CalamityMod.NPCs break; case NPCID.PinkJellyfish: - DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 5 : 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), Main.expertMode ? 20 : 25); break; case NPCID.BlueJellyfish: