Skip to content

Commit

Permalink
Add transit controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Sep 26, 2024
1 parent c8e0cd0 commit 21f7da5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,27 @@ public override async Task vmethod_1(BotControllerSettings controllerSettings, I
gameWorld.BtrController = new BTRControllerClass(gameWorld);
}

bool transitActive;
if (instance == null)
{
transitActive = false;
}
else
{
BackendConfigSettingsClass.GClass1505 transitSettings = instance.transitSettings;
transitActive = (transitSettings != null) && transitSettings.active;
}
if (transitActive)
{
Singleton<GameWorld>.Instance.TransitController = new GClass1617(instance.transitSettings, Location_0.transitParameters,
Profile_0, localRaidSettings_0);
}
else
{
GClass1615.DisableTransitPoints();
}


ESeason season = iSession.Season;
Class428 seasonHandler = new();
gameWorld.GInterface29_0 = seasonHandler;
Expand Down

0 comments on commit 21f7da5

Please sign in to comment.