Upload from upload_mods.ps1
This commit is contained in:
23
Harmony/Harmony_QuestActionSpawnGSEnemy.cs
Normal file
23
Harmony/Harmony_QuestActionSpawnGSEnemy.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user