Skip to content

Commit

Permalink
Update to 34644
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchangelWTF committed Jan 24, 2025
1 parent 8646675 commit 99bcb01
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public override void Dispose()

public void HandleClientExtract(int transitId, int playerId)
{
if (!smethod_0(playerId, out Player myPlayer))
if (smethod_2(playerId, out Player myPlayer))
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ public override void ChangeFireMode(Weapon.EFireMode fireMode)
}

// Check for GClass increments
Class1157 currentOperation = CurrentOperation;
Class1154 currentOperation = CurrentOperation;
if (currentOperation != null)
{
if (currentOperation is not Class1162)
if (currentOperation is not Class1159)
{
if (currentOperation is Class1163)
if (currentOperation is Class1160)
{
player.PacketSender.FirearmPackets.Enqueue(new()
{
Expand Down
8 changes: 4 additions & 4 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ private async Task<LocalPlayer> CreateLocalPlayer()
IEnumerable<Item> items = Profile_0.Inventory.GetPlayerItems(EPlayerItems.Equipment);
if (items != null)
{
Class1513 keyFinder = new()
Class1510 keyFinder = new()
{
accessKeys = Location_0.AccessKeys
};
Expand Down Expand Up @@ -2567,7 +2567,7 @@ private void CleanUpFikaBackendUtils()
FikaBackendUtils.ReconnectPosition = Vector3.zero;
}

private class ExitManager : Class1515
private class ExitManager : Class1512
{
public new CoopGame baseLocalGame_0;

Expand Down Expand Up @@ -2598,7 +2598,7 @@ public void ExitOverride()
baseLocalGame_0.gparam_0.Player.OnGameSessionEnd(exitStatus, baseLocalGame_0.PastTime, baseLocalGame_0.Location_0.Id, exitName);
baseLocalGame_0.CleanUp();

Class1516 exitCallback = new()
Class1513 exitCallback = new()
{
baseLocalGame_0 = baseLocalGame_0,
duration = EFTDateTimeClass.Now - baseLocalGame_0.dateTime_0,
Expand All @@ -2612,7 +2612,7 @@ public void ExitOverride()
/// <summary>
/// Used to manage the stopping of the <see cref="CoopGame"/> gracefully when cancelling
/// </summary>
private class CancelExitManager : Class1515
private class CancelExitManager : Class1512
{
public void ExitOverride()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public override Dictionary<Type, OperationFactoryDelegate> GetOperationFactoryDe
{
// Check for GClass increments..
Dictionary<Type, OperationFactoryDelegate> operationFactoryDelegates = base.GetOperationFactoryDelegates();
operationFactoryDelegates[typeof(Class1163)] = new OperationFactoryDelegate(Grenade1);
operationFactoryDelegates[typeof(Class1160)] = new OperationFactoryDelegate(Grenade1);
return operationFactoryDelegates;
}

Expand Down Expand Up @@ -82,7 +82,7 @@ public void SpawnGrenade(float timeSinceSafetyLevelRemoved, Vector3 position, Qu
}
}

public class ObservedTripwireState(Player.GrenadeHandsController controller, CoopPlayer player) : Player.GrenadeHandsController.Class1163(controller)
public class ObservedTripwireState(Player.GrenadeHandsController controller, CoopPlayer player) : Player.GrenadeHandsController.Class1160(controller)
{
private readonly CoopPlayer coopPlayer = player;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public override Dictionary<Type, OperationFactoryDelegate> GetOperationFactoryDe
{
return new Dictionary<Type, OperationFactoryDelegate> {
{
typeof(Class1176),
typeof(Class1173),
new OperationFactoryDelegate(GetObservedMedsOperation)
},
{
Expand Down Expand Up @@ -91,7 +91,7 @@ public override void IEventsConsumerOnWeapOut()
ObservedObsOperation.HideObservedWeaponComplete();
}

private class ObservedMedsOperation(Player.MedsController controller) : Class1176(controller)
private class ObservedMedsOperation(Player.MedsController controller) : Class1173(controller)
{
private readonly CoopObservedMedsController observedMedsController = (CoopObservedMedsController)controller;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public override void InProcess(TraderControllerClass executor, Item item, ItemAd

private void HandleInProcess(Item item, ItemAddress to, GInterface411 operation, Callback callback)
{
Player.Class1234 handler = new()
Player.Class1231 handler = new()
{
player_0 = coopPlayer,
callback = callback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Fika.Core.Coop.Patches
{
internal class Class1395_ReloadBackendLocale_Patch : ModulePatch
internal class Class1392_ReloadBackendLocale_Patch : ModulePatch
{
private static bool HasBeenSet = false;

protected override MethodBase GetTargetMethod()
{
return typeof(Class1395).GetMethod(nameof(Class1395.ReloadBackendLocale));
return typeof(Class1392).GetMethod(nameof(Class1392.ReloadBackendLocale));
}

[PatchPostfix]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private static void PatchPostfix(RaidSettingsWindow __instance, RaidSettings rai
}

// Remove redundant settings and add our own "Random" to make the setting clear, while also renaming index 0 to "Together"
List<BaseDropDownBox.Struct1096> labelList = Traverse.Create(____playersSpawnPlaceDropdown).Field<List<BaseDropDownBox.Struct1096>>("list_0").Value;
List<BaseDropDownBox.Struct1097> labelList = Traverse.Create(____playersSpawnPlaceDropdown).Field<List<BaseDropDownBox.Struct1097>>("list_0").Value;
labelList.Clear();
labelList.Add(new()
{
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Coop/Players/CoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ await player.Init(rotation, layerName, pointOfView, profile, inventoryController
}

player._handsController = EmptyHandsController.smethod_6<EmptyHandsController>(player);
player._handsController.Spawn(1f, LocalPlayer.Class1658.class1658_0.method_0);
player._handsController.Spawn(1f, LocalPlayer.Class1655.class1655_0.method_0);

player.AIData = new GClass563(null, player);

Expand Down
6 changes: 3 additions & 3 deletions Fika.Core/Coop/Players/ObservedCoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1736,13 +1736,13 @@ public void Handle(Result<GInterface160> result)
}
}

private class CreateHandsControllerHandler(Class1196 setInHandsOperation)
private class CreateHandsControllerHandler(Class1193 setInHandsOperation)
{
public readonly Class1196 setInHandsOperation = setInHandsOperation;
public readonly Class1193 setInHandsOperation = setInHandsOperation;

internal void DisposeHandler()
{
Class1196 handler = setInHandsOperation;
Class1193 handler = setInHandsOperation;
if (handler == null)
{
return;
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/FikaPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private static void EnableFikaPatches()
new RaidSettingsWindow_Show_Patch().Enable();
new TransitControllerAbstractClass_Exist_Patch().Enable();
new BotReload_method_1_Patch().Enable();
new Class1395_ReloadBackendLocale_Patch().Enable();
new Class1392_ReloadBackendLocale_Patch().Enable();
new GClass2047_method_0_Patch().Enable();
#if DEBUG
TasksExtensions_HandleFinishedTask_Patches.Enable();
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Networking/FikaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ private void OnBorderZonePacketReceived(BorderZonePacket packet)

private void OnMinePacketReceived(MinePacket packet)
{
NetworkGame<EftGamePlayerOwner>.Class1533 mineSeeker = new()
NetworkGame<EftGamePlayerOwner>.Class1530 mineSeeker = new()
{
minePosition = packet.MinePositon
};
Expand Down
4 changes: 2 additions & 2 deletions Fika.Core/Networking/FikaSerializationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ public static Item GetAirdropItem(this NetDataReader reader)
enumerable[0].Item = item;
Item[] array = enumerable.Select(FikaGlobals.GetLootItemPositionItem).ToArray();
ResourceKey[] resourceKeys = array.OfType<GClass3043>().GetAllItemsFromCollections()
.Concat(array.Where(AirdropSynchronizableObject.Class2013.class2013_0.method_1))
.SelectMany(AirdropSynchronizableObject.Class2013.class2013_0.method_2)
.Concat(array.Where(AirdropSynchronizableObject.Class2010.class2010_0.method_1))
.SelectMany(AirdropSynchronizableObject.Class2010.class2010_0.method_2)
.ToArray();
Singleton<PoolManagerClass>.Instance.LoadBundlesAndCreatePools(PoolManagerClass.PoolsCategory.Raid, PoolManagerClass.AssemblyType.Online,
resourceKeys, JobPriorityClass.Immediate, null, default).HandleExceptions();
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Networking/FikaServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ private void OnMinePacketReceived(MinePacket packet, NetPeer peer)
{
if (Singleton<GameWorld>.Instance.MineManager != null)
{
NetworkGame<EftGamePlayerOwner>.Class1533 mineSeeker = new()
NetworkGame<EftGamePlayerOwner>.Class1530 mineSeeker = new()
{
minePosition = packet.MinePositon
};
Expand Down
4 changes: 2 additions & 2 deletions Fika.Core/UI/FikaUIGlobals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static GClass3540 ShowFikaMessage(this PreloaderUI preloaderUI, string he
{
Traverse preloaderUiTraverse = Traverse.Create(preloaderUI);

PreloaderUI.Class2824 messageHandler = new()
PreloaderUI.Class2821 messageHandler = new()
{
preloaderUI_0 = preloaderUI
};
Expand All @@ -80,7 +80,7 @@ public static GClass3540 ShowFikaMessage(this ErrorScreen errorScreen, string ti
{
Traverse errorScreenTraverse = Traverse.Create(errorScreen);

ErrorScreen.Class2586 errorScreenHandler = new()
ErrorScreen.Class2583 errorScreenHandler = new()
{
errorScreen_0 = errorScreen
};
Expand Down
Binary file modified References/hollowed.dll
Binary file not shown.

0 comments on commit 99bcb01

Please sign in to comment.