diff --git a/Localization/en-US/Mods.CalamityMod.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Misc.hjson index 37d484131c..cc19fd7ccf 100644 --- a/Localization/en-US/Mods.CalamityMod.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Misc.hjson @@ -1,4 +1,4 @@ -/* Recipe Conditions */ +// Recipe Conditions Tier1ArsenalRecipeCondition: View an unencrypted schematic from the lab near the Sunken Sea Tier2ArsenalRecipeCondition: Decrypt a schematic from the lab in the large planetoid in the sky Tier3ArsenalRecipeCondition: Decrypt a schematic from the lab deep within the jungle @@ -9,7 +9,8 @@ PlanetoidSchematicRecipeCondition: Place a schematic from the lab in the large p JungleSchematicRecipeCondition: Place a schematic from the lab deep within the jungle in your inventory at least once UnderworldSchematicRecipeCondition: Place a schematic from the lab near the edges of the underworld in your inventory at least once IceSchematicRecipeCondition: Place a schematic from the lab within the frozen caverns in your inventory at least once -/* Item Messages */ +// Item Messages +LearnedSchematic: You learned how to create new things! 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]" diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index c5f4dbadd1..3e181e7390 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -25,6 +25,7 @@ using Terraria.GameContent.ItemDropRules; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Items.Potions; namespace CalamityMod.NPCs.Bumblebirb { @@ -449,6 +450,9 @@ namespace CalamityMod.NPCs.Bumblebirb // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); + // GFB Omega Healing Potion drop + npcLoot.DefineConditionalDropSet(DropHelper.GFB).Add(ModContent.ItemType(), 1, 50, 100); + // Lore npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedDragonfolly, ModContent.ItemType(), desc: DropHelper.FirstKillText); } diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 88aeca723a..f20e8111b5 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -5039,7 +5039,7 @@ namespace CalamityMod.NPCs } // Max spawn amount - int maxBirbs = revenge ? 3 : 2; + int maxBirbs = (CalamityWorld.getFixedBoi && CalamityWorld.LegendaryMode && revenge) ? 12 : revenge ? 3 : 2; // Variable for charging float chargeDistance = 600f; @@ -5334,13 +5334,16 @@ namespace CalamityMod.NPCs float velocity = 8f + (enrageScale - 1f) * 2f; float scaleFactor17 = velocity + npc.ai[2] + value53.Length() / 120f; + if (CalamityWorld.getFixedBoi && CalamityWorld.LegendaryMode && revenge) + scaleFactor17 *= 2f; + float num1309 = 20f; value53.Normalize(); value53 *= scaleFactor17; npc.velocity = (npc.velocity * (num1309 - 1f) + value53) / num1309; npc.ai[1] += 1f; - if (npc.ai[1] >= 120f || !Collision.CanHit(npc.Center, 1, 1, player.Center, 1, 1)) + if (npc.ai[1] >= ((CalamityWorld.getFixedBoi && CalamityWorld.LegendaryMode && revenge) ? 60f : 120f) || !Collision.CanHit(npc.Center, 1, 1, player.Center, 1, 1)) { npc.TargetClosest(); npc.ai[0] = 0f; @@ -5516,12 +5519,14 @@ namespace CalamityMod.NPCs if (Main.netMode != NetmodeID.MultiplayerClient) { - bool spawnFlag = NPC.CountNPCS(ModContent.NPCType()) < maxBirbs && (npc.ai[1] == 140f || (revenge && npc.ai[1] == 155f) || npc.ai[1] == 170f); + bool gfbSpawnFlag = CalamityWorld.getFixedBoi && CalamityWorld.LegendaryMode && revenge && (npc.ai[1] == 145f || npc.ai[1] == 150f || npc.ai[1] == 160f || npc.ai[1] == 165f); + bool spawnFlag = NPC.CountNPCS(ModContent.NPCType()) < maxBirbs && (npc.ai[1] == 140f || (revenge && npc.ai[1] == 155f) || npc.ai[1] == 170f || gfbSpawnFlag); if (spawnFlag) { Vector2 vector7 = npc.Center + (MathHelper.TwoPi * Main.rand.NextFloat()).ToRotationVector2() * new Vector2(2f, 1f) * 50f * (0.6f + Main.rand.NextFloat() * 0.4f); if (Vector2.Distance(vector7, player.Center) > 150f) NPC.NewNPC(npc.GetSource_FromAI(), (int)vector7.X, (int)vector7.Y, ModContent.NPCType(), npc.whoAmI); + npc.netUpdate = true; } } diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs index a29a831bce..e31fa08fb5 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs @@ -21,6 +21,7 @@ using CalamityMod.Items.Placeables.Furniture.DevPaintings; using CalamityMod.Items.Placeables.Furniture.Trophies; using CalamityMod.Events; using Terraria.Audio; +using CalamityMod.Items.Materials; namespace CalamityMod.NPCs.ProfanedGuardians { @@ -1166,6 +1167,13 @@ namespace CalamityMod.NPCs.ProfanedGuardians // Relic npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType()); + // GFB Chicken Nugget and Divine Geode drops + var GFBOnly = npcLoot.DefineConditionalDropSet(DropHelper.GFB); + { + GFBOnly.Add(ItemID.ChickenNugget, 1, 1, 9999); + GFBOnly.Add(ModContent.ItemType(), 1, 25, 30); + } + // Lore npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedGuardians, ModContent.ItemType(), desc: DropHelper.FirstKillText); } diff --git a/TileEntities/TECodebreaker.cs b/TileEntities/TECodebreaker.cs index 38b31ee6e6..994d77b210 100644 --- a/TileEntities/TECodebreaker.cs +++ b/TileEntities/TECodebreaker.cs @@ -327,7 +327,7 @@ namespace CalamityMod.TileEntities SyncContainedStuff(); } else if (anythingChanged) - CombatText.NewText(Main.LocalPlayer.Hitbox, Color.Cyan, "You learned how to create new things!", true); + CombatText.NewText(Main.LocalPlayer.Hitbox, Color.Cyan, CalamityUtils.GetTextValue("Misc.LearnedSchematic"), true); } } }