Skip to content

Commit

Permalink
Fixed travel contract generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
donZappo committed Jul 24, 2019
1 parent c117ed0 commit 2e9e960
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Galaxy at War/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ public static void Postfix(SimGameState __instance)
}
if (!WarStatus.HotBoxTravelling && !WarStatus.HotBox.Contains(sim.CurSystem.Name) && !HasFlashpoint)
{
NeedsProcessing = true;
var cmdCenter = UnityGameInstance.BattleTechGame.Simulation.RoomManager.CmdCenterRoom;
sim.CurSystem.GenerateInitialContracts(() => Traverse.Create(cmdCenter).Method("OnContractsFetched"));
NeedsProcessing = false;
}
}

Expand Down Expand Up @@ -299,12 +301,6 @@ internal static void WarTick(bool UseFullSet, bool CheckForSystemChange)

WarStatus.SystemChangedOwners.Clear();

if (WarStatus.StartGameInitialized)
{
Galaxy_at_War.HotSpots.ProcessHotSpots();
}



//Log("===================================================");
//Log("TESTING ZONE");
Expand Down
2 changes: 2 additions & 0 deletions Galaxy at War/HotSpots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,10 @@ public static void CompleteEscalation()
}
if (!HasFlashpoint)
{
Core.NeedsProcessing = true;
var cmdCenter = UnityGameInstance.BattleTechGame.Simulation.RoomManager.CmdCenterRoom;
sim.CurSystem.GenerateInitialContracts(() => Traverse.Create(cmdCenter).Method("OnContractsFetched"));
Core.NeedsProcessing = false;
}
}

Expand Down

0 comments on commit 2e9e960

Please sign in to comment.