0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 16:50:43 -05:00

Merge pull request 'fix: scav on labs (or any maps with zero scav exfils)' (!3) from kiobu/Modules:master into master

Reviewed-on: SPT-AKI/Modules#3
This commit is contained in:
chomp 2023-03-05 20:03:25 +00:00
commit 069d8e93fb

View File

@ -21,6 +21,13 @@ namespace Aki.SinglePlayer.Patches.ScavMode
return true; // Not a scav - don't do anything and run original method
}
// We are on a map with zero scav exfil points, enable all of them.
if (__instance.ScavExfiltrationPoints.Length == 0)
{
__result = __instance.ExfiltrationPoints;
return false;
}
// Running this prepares all the data for getting scav exfil points
__instance.ScavExfiltrationClaim(Singleton<GameWorld>.Instance.MainPlayer.Position, profile.Id, profile.FenceInfo.AvailableExitsCount);