private static bool CheckIfItemNeedsGate(GatedItemTypeMode mode, string itemName) { //EpicLoot.Log($"Checking if item ({itemName}) needs gating..."); switch (mode) { case GatedItemTypeMode.MustKnowRecipe: return(!PlayerKnownManager.IsRecipeKnown(itemName)); case GatedItemTypeMode.MustHaveCrafted: return(!PlayerKnownManager.IsItemKnown(itemName)); default: return(false); } }
public static void Postfix(ZNet __instance) { AdventureDataManager.Bounties.RegisterRPC(__instance.m_routedRpc); PlayerKnownManager.RegisterRPC(__instance.m_routedRpc); }