mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:10:45 -05:00
Adds the ability to see items required by pmc quests as a scav like live on Found in Raid Items
This commit is contained in:
parent
3853a413f6
commit
96f107f1d2
@ -65,6 +65,7 @@ namespace Aki.Custom
|
||||
new BTREndRaidItemDeliveryPatch().Enable();
|
||||
new BTRDestroyAtRaidEndPatch().Enable();
|
||||
new BTRVehicleMovementSpeedPatch().Enable();
|
||||
new ScavItemCheckmarkPatch().Enable();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
28
project/Aki.Custom/Patches/ScavItemCheckmarkPatch.cs
Normal file
28
project/Aki.Custom/Patches/ScavItemCheckmarkPatch.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Aki.Reflection.Patching;
|
||||
using Aki.Reflection.Utils;
|
||||
using EFT.UI.DragAndDrop;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace Aki.Custom.Patches
|
||||
{
|
||||
|
||||
public class ScavItemCheckmarkPatch : ModulePatch
|
||||
{
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
return AccessTools.Method(typeof(QuestItemViewPanel), nameof(QuestItemViewPanel.smethod_0));
|
||||
}
|
||||
|
||||
[PatchPrefix]
|
||||
public static void PatchPreFix(ref IEnumerable<QuestDataClass> quests)
|
||||
{
|
||||
var pmcQuests = PatchConstants.BackEndSession.Profile.QuestsData;
|
||||
var scavQuests = PatchConstants.BackEndSession.ProfileOfPet.QuestsData;
|
||||
|
||||
quests = pmcQuests.Concat(scavQuests);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user