Files
7d2dXG/Mods/zzz_REBIRTH__Utils/Harmony/Harmony_QuestActionSpawnGSEnemy.cs
Nathaniel Cosford e06f2bd282 Add All Mods
2025-05-29 23:33:28 +09:30

24 lines
821 B
C#

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;
}
}
}