Compare commits

...
Sign in to create a new pull request.

2 commits
main ... main

Author SHA1 Message Date
1cfa99663a Merge pull request 'Correct the Tile attachTo variable's stloc index in GenerateMainPath' (#2) from Zaggy1024/DungeonGenerationPlus_LethalCompany_Mod:modify-main-path-doorway-groups-fix into main
Reviewed-on: Raphtalia/DungeonGenerationPlus_LethalCompany_Mod#2
2026-05-08 01:57:27 +00:00
8a35d8cb54 Correct the Tile attachTo variable's stloc index in GenerateMainPath
This was reading from the wrong index and always passing null, so the
doorway groups were never taking effect at all for the first main path.
2026-05-07 18:14:51 -05:00
3 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ namespace DunGenPlus.Patches {
archSequence.AddBasic(OpCodes.Callvirt, setNodeFunction); archSequence.AddBasic(OpCodes.Callvirt, setNodeFunction);
var attachToSequence = new InstructionSequenceStandard("attach to"); var attachToSequence = new InstructionSequenceStandard("attach to");
attachToSequence.AddBasicLocal(OpCodes.Stloc_S, 13); attachToSequence.AddBasicLocal(OpCodes.Stloc_S, 14);
foreach(var instruction in instructions){ foreach(var instruction in instructions){
if (archSequence.VerifyStage(instruction)){ if (archSequence.VerifyStage(instruction)){

View file

@ -27,7 +27,7 @@ namespace DunGenPlus {
internal const string modGUID = "dev.ladyalice.dungenplus"; internal const string modGUID = "dev.ladyalice.dungenplus";
private const string modName = "Dungeon Generation Plus"; private const string modName = "Dungeon Generation Plus";
private const string modVersion = "1.5.0"; private const string modVersion = "1.5.1";
internal readonly Harmony Harmony = new Harmony(modGUID); internal readonly Harmony Harmony = new Harmony(modGUID);