Sulph Sea Reformation 2.0 (Also see description)
Changed IL Editing changes to not use a constant index set, fixed the mechworm UUID implementation, added a wulfrum droid summon projectile clone, and added some items/chests alongside the new worldgen changes.
This commit is contained in:
1 parent
b333d832eb
commit
eabfa51179
103 files changed
+3021
-557
No files matched your search
+7
-12
@@ -1,14 +1,6 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using MonoMod.Cil;
|
||||
using MonoMod.Cil;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Terraria;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using static Mono.Cecil.Cil.OpCodes;
|
||||
|
||||
namespace CalamityMod.ILEditing
|
||||
{
|
||||
@@ -21,10 +13,13 @@ namespace CalamityMod.ILEditing
|
||||
{
|
||||
IL.Terraria.WorldGen.MakeDungeon += (il) =>
|
||||
{
|
||||
var cursor = new ILCursor(il)
|
||||
var cursor = new ILCursor(il);
|
||||
if (!cursor.TryGotoNext(i => i.MatchStsfld("Terraria.WorldGen", "dMaxY")))
|
||||
{
|
||||
Index = 45
|
||||
};
|
||||
CalamityMod.instance.Logger.Warn("Dungeon movement editing code failed.");
|
||||
return;
|
||||
}
|
||||
cursor.Index++;
|
||||
cursor.EmitDelegate<Action>(() =>
|
||||
{
|
||||
WorldGen.dungeonX += (WorldGen.dungeonX < Main.maxTilesX / 2).ToDirectionInt() * 450;
|
||||
|
||||
Reference in new issue
Block a user