Skip to content

Commit

Permalink
Minor update to Vanilla Factions Expanded - Ancients (#514)
Browse files Browse the repository at this point in the history
The method will rely on `StaticConstructorOnStartup` to load data, so we need to ensure we patch it late enough that it won't cause issues.

Change in question: Vanilla-Expanded/VanillaFactionsExpanded-Ancients#8
  • Loading branch information
SokyranTheDragon authored Feb 18, 2025
1 parent e6e44e0 commit 2352fe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Mods/VanillaFactionsAncients.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ internal class VanillaFactionsAncients

public VanillaFactionsAncients(ModContentPack mod)
{
// Supply slingshot launch gizmo (after 2 possible confirmation)
MP.RegisterSyncMethod(AccessTools.TypeByName("VFEAncients.CompSupplySlingshot"), "TryLaunch");

// VFEAncients.CompGeneTailoringPod:StartOperation requires SyncWorker for Operation
// (Method inside of LatePatch)
var type = AccessTools.TypeByName("VFEAncients.Operation");
Expand All @@ -46,6 +43,9 @@ public static void LatePatch()
{
MpCompatPatchLoader.LoadPatch<VanillaFactionsAncients>();

// Supply slingshot launch gizmo (after 2 possible confirmation)
MP.RegisterSyncMethod(AccessTools.TypeByName("VFEAncients.CompSupplySlingshot"), "TryLaunch");

// Ancient PD turret - toggle aiming at drop pods, enemies, explosive projectiles
MpCompat.RegisterLambdaMethod("VFEAncients.Building_TurretPD", "GetGizmos", 1, 3, 5);

Expand Down

0 comments on commit 2352fe1

Please sign in to comment.