@@ -138,13 +138,7 @@ static IEnumerator Postfix(IEnumerator __result, ShadowOranHM.BOSS_TYPE ___BOSS_
138138
139139 if ( Archipelago . Enabled && ___BOSS_LOC == ShadowOranHM . BOSS_TYPE . BASE && Archipelago . AP . Settings . GoalShadow ( ) )
140140 {
141- yield return new WaitForSeconds ( 1 ) ;
142- while ( GameMaster . GM . GS != GameMaster . GameState . IN_GAME )
143- {
144- yield return null ;
145- }
146- Archipelago . AP . Finish ( ) ;
147- GameMaster . GM . StartCoroutine ( ( IEnumerator ) AccessTools . Method ( typeof ( GameMaster ) , "ClosingSplashes" ) . Invoke ( GameMaster . GM , [ true ] ) ) ;
141+ Archipelago . AP . StartCoroutine ( Archipelago . AP . EndGame ( ) ) ;
148142 }
149143 }
150144}
@@ -163,13 +157,7 @@ static IEnumerator Postfix(IEnumerator __result)
163157
164158 if ( Archipelago . Enabled && Archipelago . AP . Settings . GoalTorran ( ) )
165159 {
166- yield return new WaitForSeconds ( 1 ) ;
167- while ( GameMaster . GM . GS != GameMaster . GameState . IN_GAME )
168- {
169- yield return null ;
170- }
171- Archipelago . AP . Finish ( ) ;
172- GameMaster . GM . StartCoroutine ( ( IEnumerator ) AccessTools . Method ( typeof ( GameMaster ) , "ClosingSplashes" ) . Invoke ( GameMaster . GM , [ true ] ) ) ;
160+ Archipelago . AP . StartCoroutine ( Archipelago . AP . EndGame ( ) ) ;
173161 }
174162 }
175163}
@@ -788,4 +776,34 @@ static void Prefix()
788776 Archipelago . AP . IsBjergCastle = false ;
789777 }
790778 }
779+ }
780+
781+ // Debug code to activate all warps
782+ [ HarmonyPatch ( typeof ( LevelStatue ) ) ]
783+ [ HarmonyPatch ( "StatueDisable" ) ]
784+ class LevelStatue_StatueDisable_Patch
785+ {
786+ static void Prefix ( LevelStatue __instance )
787+ {
788+ if ( Archipelago . Debug )
789+ {
790+ AccessTools . Method ( typeof ( LevelStatue ) , "StatueEnable" ) . Invoke ( __instance , [ ] ) ;
791+ }
792+ }
793+ }
794+
795+ // Debug code to remove all light pillars
796+ [ HarmonyPatch ( typeof ( LIGHT_PILLAR ) ) ]
797+ [ HarmonyPatch ( "OnEnable" ) ]
798+ class LIGHT_PILLAR_OnEnable_Patch
799+ {
800+ static void Postfix ( LIGHT_PILLAR __instance )
801+ {
802+ if ( Archipelago . Debug )
803+ {
804+ __instance . STATUS = LIGHT_PILLAR . STATE . SHROUDED ;
805+ __instance . GetComponent < Animator > ( ) . SetTrigger ( "DEAD" ) ;
806+ __instance . GetComponent < Collider2D > ( ) . enabled = false ;
807+ }
808+ }
791809}
0 commit comments