Upload from upload_mods.ps1
This commit is contained in:
18
Harmony/Harmony_AIDirectorAirDropComponent.cs
Normal file
18
Harmony/Harmony_AIDirectorAirDropComponent.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Harmony.AIDirectorAirDropComponentPatches
|
||||
{
|
||||
[HarmonyPatch(typeof(AIDirectorAirDropComponent))]
|
||||
[HarmonyPatch("SpawnAirDrop")]
|
||||
public class SpawnAirDropPatch
|
||||
{
|
||||
public static bool Prefix(AIDirectorAirDropComponent __instance, ref bool __result)
|
||||
{
|
||||
if (RebirthVariables.skipSupplyDrops)
|
||||
{
|
||||
__result = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user