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)
This commit is contained in:
1 parent
e28d59a860
commit
60480bf07f
5 files changed
+1
-30
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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<WorldGen>(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<Stohne>();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Hellscape for GlowMask ModPlants
|
||||
|
||||
#region Tree Trunk / Cactus GlowMask
|
||||
|
||||
@@ -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<Stohne>(), 1, 10, 26);
|
||||
npcLoot.Add(ItemID.LunarTabletFragment, 7, 10, 26);
|
||||
npcLoot.Add(ItemID.LihzahrdPowerCell, 50);
|
||||
|
||||
@@ -236,8 +236,7 @@ namespace CalamityMod.Systems
|
||||
ItemID.EbonstoneBlock,
|
||||
ItemID.CrimstoneBlock,
|
||||
ItemID.PearlstoneBlock,
|
||||
ItemType<AstralStone>(),
|
||||
ItemType<Stohne>()
|
||||
ItemType<AstralStone>()
|
||||
});
|
||||
AnyStoneBlock = RecipeGroup.RegisterGroup("AnyStoneBlock", group);
|
||||
|
||||
|
||||
@@ -398,7 +398,6 @@ namespace CalamityMod
|
||||
TileType<SulphurousShale>(),
|
||||
TileType<AbyssGravel>(),
|
||||
TileType<Voidstone>(),
|
||||
TileType<Stohne>(),
|
||||
TileType<MossyStone>(),
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user