From 60480bf07fd0f56d3ad42ae76096d895c83242fa Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Fri, 19 Dec 2025 00:51:03 -0500 Subject: [PATCH] 1 - Stohne no longer generates naturally 2 - Stohne no longer blends with common tiles or is part of the Any Stone recipe group 3 - Bohldohr no longer drops Lihzahrd Brick (They drop Stohne, which crafts into Lihzahrd Brick) --- ILEditing/ILChangesLoading.cs | 1 - ILEditing/MechanicILChanges.cs | 25 ------------------------- NPCs/NormalNPCs/Bohldohr.cs | 1 - Systems/Mechanic/RecipeSystem.cs | 3 +-- Utilities/TileUtils.cs | 1 - 5 files changed, 1 insertion(+), 30 deletions(-) diff --git a/ILEditing/ILChangesLoading.cs b/ILEditing/ILChangesLoading.cs index ffed28fb41..097e80ec90 100644 --- a/ILEditing/ILChangesLoading.cs +++ b/ILEditing/ILChangesLoading.cs @@ -136,7 +136,6 @@ namespace CalamityMod.ILEditing IL_UIWorldCreation.AddWorldSizeOptions += SwapSmallDescriptionKey; On_WorldGen.MakeDungeon += LimitDungeonEntranceXPosition; IL_WorldGen.DungeonHalls += LimitDungeonHallsXPosition; - IL_JunglePass.GenerateFinishingTouches += AddStohne; // Removal of vanilla stupidity IL_Player.StatusFromNPC += RemoveExpertBrainRandomDebuffs; diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 1d068940fc..d8c16eea1e 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -1321,31 +1321,6 @@ namespace CalamityMod.ILEditing } #endregion - #region Add Stohne to the Jungle - private static void AddStohne(ILContext il) - { - var cursor = new ILCursor(il); - - if (!cursor.TryGotoNext(MoveType.Before, - c => c.MatchLdcI4(out var tileType) && tileType == TileID.Stone, - c => c.MatchLdcI4(out _), // bool addTile - c => c.MatchLdcR8(out _), // double speedX - c => c.MatchLdcR8(out _), // double speedY - c => c.MatchLdcI4(out _), // bool noYChange - c => c.MatchLdcI4(out _), // bool overRide - c => c.MatchLdcI4(out _), // int ignoreTileType - c => c.MatchCallOrCallvirt(nameof(WorldGen.TileRunner)))) - { - LogFailure("Add Stohne To Jungle", "Could not locate the TileRunner call for Stone"); - return; - } - - // Replace Next Instruction to Ldc.I4 :: Stohne - cursor.Next.OpCode = OpCodes.Ldc_I4; - cursor.Next.Operand = ModContent.TileType(); - } - #endregion - #region Hellscape for GlowMask ModPlants #region Tree Trunk / Cactus GlowMask diff --git a/NPCs/NormalNPCs/Bohldohr.cs b/NPCs/NormalNPCs/Bohldohr.cs index a7c0f35756..f6af30ac41 100644 --- a/NPCs/NormalNPCs/Bohldohr.cs +++ b/NPCs/NormalNPCs/Bohldohr.cs @@ -93,7 +93,6 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyNPCLoot(NPCLoot npcLoot) { - npcLoot.Add(ItemID.LihzahrdBrick, 1, 10, 26); npcLoot.Add(ModContent.ItemType(), 1, 10, 26); npcLoot.Add(ItemID.LunarTabletFragment, 7, 10, 26); npcLoot.Add(ItemID.LihzahrdPowerCell, 50); diff --git a/Systems/Mechanic/RecipeSystem.cs b/Systems/Mechanic/RecipeSystem.cs index 3023f9758e..13fb7ee702 100644 --- a/Systems/Mechanic/RecipeSystem.cs +++ b/Systems/Mechanic/RecipeSystem.cs @@ -236,8 +236,7 @@ namespace CalamityMod.Systems ItemID.EbonstoneBlock, ItemID.CrimstoneBlock, ItemID.PearlstoneBlock, - ItemType(), - ItemType() + ItemType() }); AnyStoneBlock = RecipeGroup.RegisterGroup("AnyStoneBlock", group); diff --git a/Utilities/TileUtils.cs b/Utilities/TileUtils.cs index 28e6382e8d..ff47fdb067 100644 --- a/Utilities/TileUtils.cs +++ b/Utilities/TileUtils.cs @@ -398,7 +398,6 @@ namespace CalamityMod TileType(), TileType(), TileType(), - TileType(), TileType(), });