19 lines
476 B
C#
19 lines
476 B
C#
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;
|
|
}
|
|
}
|
|
}
|