|
|
@@ -27,7 +27,7 @@ namespace RecipeMenuCore.Patches
|
|
|
var hoverElements = ___ultLocksObj.transform.parent.Find("hoverElements").gameObject;
|
|
|
hoverElements.SetActive(false);
|
|
|
|
|
|
- if (___craftType == 2 && ___curRecipePage < 6)
|
|
|
+ if (___craftType == 2 && ___curRecipePage < 6 && Core.pageUltimateForgeInfoListVanilla[___curRecipePage] == null)
|
|
|
{
|
|
|
hoverElements.SetActive(true);
|
|
|
for (int i = 0; i < 36; i++)
|
|
|
@@ -43,15 +43,16 @@ namespace RecipeMenuCore.Patches
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (___craftType == 0 && ___curRecipePage >= 6)
|
|
|
+ if (___craftType == 0 && (___curRecipePage >= 6 || Core.pageGearForgeInfoListVanilla[___curRecipePage] != null))
|
|
|
{
|
|
|
___ultLocksObj.SetActive(false);
|
|
|
___recipeButtons.SetActive(true);
|
|
|
+ var page = ___curRecipePage >= 6 ? Core.pageGearForgeInfoList[___curRecipePage - 6] : Core.pageGearForgeInfoListVanilla[___curRecipePage];
|
|
|
for (int i = 0; i < 12; i++)
|
|
|
{
|
|
|
- if (Core.pageGearForgeInfoList[___curRecipePage - 6].GetRecipePageEntries().Length > i)
|
|
|
+ if (page.GetRecipePageEntries().Length > i)
|
|
|
{
|
|
|
- int itemID = Core.pageGearForgeInfoList[___curRecipePage - 6].GetRecipePageEntries()[i].ItemIdBase;
|
|
|
+ int itemID = page.GetRecipePageEntries()[i].ItemIdBase;
|
|
|
if (__instance.RecipeCraftedAlready(itemID, 0))
|
|
|
___recipeLock[i].SetActive(false);
|
|
|
else
|
|
|
@@ -65,15 +66,16 @@ namespace RecipeMenuCore.Patches
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
- else if (___craftType == 1 && ___curRecipePage >= 2)
|
|
|
+ else if (___craftType == 1 && (___curRecipePage >=2 || Core.pageAlchemyStationInfoListVanilla[___curRecipePage] != null))
|
|
|
{
|
|
|
___ultLocksObj.SetActive(false);
|
|
|
___recipeButtons.SetActive(true);
|
|
|
+ var page = ___curRecipePage >= 6 ? Core.pageAlchemyStationInfoList[___curRecipePage - 2] : Core.pageAlchemyStationInfoListVanilla[___curRecipePage];
|
|
|
for (int i = 0; i < 12; i++)
|
|
|
{
|
|
|
- if (Core.pageAlchemyStationInfoList[___curRecipePage - 2].GetRecipePageEntries().Length > i)
|
|
|
+ if (page.GetRecipePageEntries().Length > i)
|
|
|
{
|
|
|
- int itemID = Core.pageAlchemyStationInfoList[___curRecipePage - 2].GetRecipePageEntries()[i].ItemIdBase;
|
|
|
+ int itemID = page.GetRecipePageEntries()[i].ItemIdBase;
|
|
|
if (__instance.RecipeCraftedAlready(itemID, 0))
|
|
|
___recipeLock[i].SetActive(false);
|
|
|
else
|
|
|
@@ -87,20 +89,21 @@ namespace RecipeMenuCore.Patches
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
- else if (___craftType == 2 && ___curRecipePage >= 6)
|
|
|
+ else if (___craftType == 2 && (___curRecipePage >= 6 || Core.pageUltimateForgeInfoListVanilla[___curRecipePage] != null))
|
|
|
{
|
|
|
hoverElements.SetActive(true);
|
|
|
___ultLocksObj.SetActive(true);
|
|
|
___recipeButtons.SetActive(false);
|
|
|
+ var page = ___curRecipePage >= 6 ? Core.pageUltimateForgeInfoList[___curRecipePage - 6] : Core.pageUltimateForgeInfoListVanilla[___curRecipePage];
|
|
|
for (int i = 0; i < 36; i++)
|
|
|
{
|
|
|
if (i < 12)
|
|
|
{
|
|
|
___recipeLock[i].SetActive(false);
|
|
|
}
|
|
|
- if (Core.pageUltimateForgeInfoList[___curRecipePage - 6].GetRecipePageEntries().Length > i / 3)
|
|
|
+ if (page.GetRecipePageEntries().Length > i / 3)
|
|
|
{
|
|
|
- int itemID = Core.pageUltimateForgeInfoList[___curRecipePage - 6].GetRecipePageEntries()[i / 3].ItemIdExtension[i % 3];
|
|
|
+ int itemID = page.GetRecipePageEntries()[i / 3].ItemIdExtension[i % 3];
|
|
|
if (__instance.RecipeCraftedAlready(itemID, 0))
|
|
|
{
|
|
|
___ultLocks[i].SetActive(false);
|