Skip to content

Commit

Permalink
Fix coding doodoo
Browse files Browse the repository at this point in the history
  • Loading branch information
AuriRex committed Mar 2, 2023
1 parent b441082 commit 72634c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions TheArchive.Core/Core/FeaturesAPI/Feature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ internal static void SetupIs()
Is.R7OrLater = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownSeven.ToLatest());
Is.A1 = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltOne);
Is.A1OrLater = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltOne.ToLatest());
Is.A1 = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltTwo);
Is.A1OrLater = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltTwo.ToLatest());
Is.A2 = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltTwo);
Is.A2OrLater = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltTwo.ToLatest());
Is.A3 = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltThree);
Is.A3OrLater = BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltThree.ToLatest());
}

/// <summary>
Expand All @@ -292,6 +294,8 @@ public static class Is
public static bool A1OrLater { get; internal set; }
public static bool A2 { get; internal set; }
public static bool A2OrLater { get; internal set; }
public static bool A3 { get; internal set; }
public static bool A3OrLater { get; internal set; }
}


Expand Down
3 changes: 1 addition & 2 deletions TheArchive.IL2CPP/Features/Special/EnableLegacyHammers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using TheArchive.Core.FeaturesAPI;
using TheArchive.Core.Managers;
using TheArchive.Interfaces;
using TheArchive.Utilities;
using static TheArchive.Utilities.Utils;

namespace TheArchive.Features.Special
Expand Down Expand Up @@ -39,7 +38,7 @@ public override void OnEnable()

public static void Transform(List<PlayerOfflineGearDataBlock> allPlayerOfflineGearDataBlocks)
{
if(BuildInfo.Rundown.IsIncludedIn(RundownFlags.RundownAltTwo))
if(Is.A2OrLater)
{
// The OG hammers have been removed from the DataBlocks.

Expand Down

0 comments on commit 72634c8

Please sign in to comment.