namespace Harmony.QuestActionSpawnGSEnemyPatches { [HarmonyPatch(typeof(QuestActionSpawnGSEnemy))] [HarmonyPatch("SpawnEnemies")] public class SpawnEnemiesPatch { public static bool Prefix(QuestActionSpawnGSEnemy __instance, Quest ownerQuest) { EntityPlayerLocal player = ownerQuest.OwnerJournal.OwnerPlayer; RebirthVariables.gameStage = player.gameStage; if (RebirthUtilities.ScenarioSkip()) { //Log.Out("QuestActionSpawnGSEnemyPatches-SpawnEnemies START: " + player.biomeStandingOn.m_sBiomeName + $" ({player.position})"); string biomeName = RebirthUtilities.GetBiomeName(player); RebirthUtilities.SetHiveSpawnGroup(biomeName); } return true; } } }