예제 #1
0
            private static void Postfix(Panel_Crafting __instance)
            {
                __instance.m_SelectedDescription.color = WhiteColor;
                var bpi = __instance.m_SelectedBPI;

                if (!bpi)
                {
                    return;
                }
                if (!bpi.m_CraftedResult)
                {
                    return;
                }

                if (!MendingHelper.IsClothing(bpi))
                {
                    return;
                }

                var mendingLevel         = MendingHelper.GetCurrentMendingLevel();
                var requiredMendingLevel = MendingHelper.GetRequiredMendingLevel(bpi);

                if (mendingLevel < requiredMendingLevel)
                {
                    __instance.m_SelectedDescription.text  = "REQUIRES MENDING LEVEL " + requiredMendingLevel;
                    __instance.m_SelectedDescription.color = RedColor;
                }
            }