/// <summary> /// Checks if the non ident is unlocked /// </summary> /// <param name="reward">The ID to check</param> /// <returns>True if unlocked, false otherwise</returns> public bool IsUnlocked(ExchangeDirector.NonIdentReward reward) { if (unlocked) { return(true); } unlocked = lockerCheck?.Invoke(reward) ?? true; return(unlocked); }
internal static bool IsNonIdenRegistered(ExchangeDirector.NonIdentReward reward) => NON_IDENT_REWARDS.Count(r => r.reward == reward) > 0;