コード例 #1
0
        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);
            }
        }
コード例 #2
0
ファイル: ZNet_Patch.cs プロジェクト: sbtoonz/ValheimMods
 public static void Postfix(ZNet __instance)
 {
     AdventureDataManager.Bounties.RegisterRPC(__instance.m_routedRpc);
     PlayerKnownManager.RegisterRPC(__instance.m_routedRpc);
 }