Skip to content

Commit

Permalink
Update TransitController
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Nov 1, 2024
1 parent 6ca001b commit 6e4ca6e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Fika.Core/Coop/HostClasses/FikaHostTransitController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ public FikaHostTransitController(BackendConfigSettingsClass.GClass1529 settings,

private void OnHostPlayerEnter(TransitPoint point, Player player)
{
if (!method_4(player, point.parameters.id, out string _))
if (!method_8(player, point.parameters.id, out string _))
{
if (player.IsYourPlayer)
{
method_6();
method_10();
}
return;
}
else
{
if (!method_4(player, point.parameters.id, out string _))
if (!method_8(player, point.parameters.id, out string _))
{
return;
}
Expand All @@ -77,7 +77,7 @@ private void OnHostPlayerEnter(TransitPoint point, Player player)
}
if (player.IsYourPlayer)
{
method_7(point.parameters.id, player, method_9());
method_11(point.parameters.id, player, method_13());
return;
}
TransitEventPacket packet = new()
Expand Down Expand Up @@ -113,7 +113,7 @@ private void OnHostPlayerExit(TransitPoint point, Player player)
}
if (player.IsYourPlayer)
{
method_10(player);
method_14(player);
return;
}

Expand Down Expand Up @@ -174,7 +174,7 @@ public override void Timers(int pointId, Dictionary<int, ushort> timers)
{
if (GamePlayerOwner.MyPlayer.Id == timer.Key)
{
method_5(pointId);
method_9(pointId);
MonoBehaviourSingleton<GameUI>.Instance.LocationTransitTimerPanel.Display();
MonoBehaviourSingleton<GameUI>.Instance.LocationTransitTimerPanel.Show((float)timer.Value);
}
Expand All @@ -198,7 +198,7 @@ public override void InactivePointNotification(int playerId, int pointId)
if (GamePlayerOwner.MyPlayer.Id == playerId)
{
NotificationManagerClass.DisplayWarningNotification("Transit/InactivePoint".Localized(null), ENotificationDurationType.Default);
method_5(pointId);
method_9(pointId);
return;
}

Expand Down Expand Up @@ -231,7 +231,7 @@ public override void InteractWithTransit(Player player, GStruct176 packet)

if (player.IsYourPlayer)
{
method_10(player);
method_14(player);
transitPlayers.Add(player.ProfileId, player.Id);
profileKeys[player.ProfileId] = packet.keyId;
dictionary_0[packet.pointId].GroupEnter(player);
Expand Down Expand Up @@ -432,7 +432,7 @@ public void Init()
{
transitPoint.Enabled = true;
}
method_1(dictionary_0.Values);
method_5(dictionary_0.Values);

/*TransitEventPacket packet = new()
{
Expand Down

0 comments on commit 6e4ca6e

Please sign in to comment.