-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): quests/achievements related to exitName
The PTT custom extract name is used only at the end of the process. In other words, we use the custom extract name only for the server-side and let the client handle his stuff with the vanilla exitName value.
- Loading branch information
1 parent
5350ef8
commit f4c5434
Showing
6 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Comfort.Common; | ||
using EFT; | ||
using SPT.Reflection.Patching; | ||
using System.Reflection; | ||
using PTT.Services; | ||
using System.Linq; | ||
using System.Collections.Generic; | ||
|
||
namespace PTT.Patches; | ||
|
||
internal class LocalRaidEndedPatch() : ModulePatch | ||
{ | ||
protected override MethodBase GetTargetMethod() | ||
{ | ||
return typeof(Class301).GetMethod(nameof(Class301.LocalRaidEnded)); | ||
} | ||
|
||
[PatchPrefix] | ||
public static bool PatchPrefix(Class301 __instance, LocalRaidSettings settings, ref GClass1924 results, GClass1301[] lostInsuredItems, Dictionary<string, GClass1301[]> transferItems) | ||
{ | ||
string customExtractName = Plugin.ExfilsTargetsService.ConsumeExtractName(); | ||
|
||
if (customExtractName != null) | ||
{ | ||
results.exitName = customExtractName; | ||
} | ||
|
||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters