Skip to content

Commit

Permalink
Update GClass and Interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Dec 27, 2024
1 parent 478999d commit 8e9353b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Fika.Core/Coop/Custom/FikaHealthBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static FikaHealthBar Create(ObservedCoopPlayer player)
healthBar.effects = [];
// Check for GClass increments, can be checked in EFT.UI.StaticIcons.EffectSprites method UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize
// Wound, Encumbered, OverEncumbered, MusclePain, MildMusclePlain, SevereMusclePain
healthBar.ignoredTypes = [typeof(GInterface313), typeof(GInterface315), typeof(GInterface316), typeof(GInterface328), typeof(GInterface329), typeof(GInterface330)];
healthBar.ignoredTypes = [typeof(GInterface335), typeof(GInterface337), typeof(GInterface338), typeof(GInterface351), typeof(GInterface352), typeof(GInterface353)];
healthBar.CreateHealthBar();
return healthBar;
}
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Coop/HostClasses/CoopHostInventoryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void RunHostOperation(BaseInventoryOperationClass operation, Callback ca
ConsoleScreen.Log($"InvOperation: {operation.GetType().Name}, Id: {operation.Id}");
#endif
// Check for GClass increments, TraderServices
if (operation is GClass3211)
if (operation is GClass3275)
{
base.vmethod_1(operation, callback);
return;
Expand Down
2 changes: 1 addition & 1 deletion Fika.Core/Coop/ObservedClasses/ObservedHealthController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public override Profile.ProfileHealthClass Store(Profile.ProfileHealthClass heal

foreach (NetworkBodyEffectsAbstractClass gclass in IReadOnlyList_0)
{
if (gclass is GInterface295 && gclass.State != EEffectState.Residued) // We only resync effects that are in-game effects, check for GClass increments
if (gclass is GInterface306 && gclass.State != EEffectState.Residued) // We only resync effects that are in-game effects, check for GClass increments
{
Profile.ProfileHealthClass.GClass1968 gclass2 = health.BodyParts[gclass.BodyPart];
gclass2.Effects ??= [];
Expand Down

0 comments on commit 8e9353b

Please sign in to comment.