|
@@ -119,18 +119,21 @@ namespace RecipeMenuCore.Patches
|
|
|
return Core.pageUltimateForgeInfoList[curRecipePage - 6].GetRecipePageEntries()[(index - 12) / 3].ItemIdExtension[(index - 12) % 3];
|
|
return Core.pageUltimateForgeInfoList[curRecipePage - 6].GetRecipePageEntries()[(index - 12) / 3].ItemIdExtension[(index - 12) % 3];
|
|
|
return CalculateUltimaleWeapon((index - 12) % (3 * 6), (index - 12) / (3 * 6) + curRecipePage * 2);
|
|
return CalculateUltimaleWeapon((index - 12) % (3 * 6), (index - 12) / (3 * 6) + curRecipePage * 2);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if (craftType == 0 && curRecipePage >= 6)
|
|
if (craftType == 0 && curRecipePage >= 6)
|
|
|
return Core.pageGearForgeInfoList[curRecipePage - 6].GetRecipePageEntries()[index].ItemIdBase;
|
|
return Core.pageGearForgeInfoList[curRecipePage - 6].GetRecipePageEntries()[index].ItemIdBase;
|
|
|
else if (craftType == 1 && curRecipePage >= 2)
|
|
else if (craftType == 1 && curRecipePage >= 2)
|
|
|
return Core.pageAlchemyStationInfoList[curRecipePage - 2].GetRecipePageEntries()[index].ItemIdBase;
|
|
return Core.pageAlchemyStationInfoList[curRecipePage - 2].GetRecipePageEntries()[index].ItemIdBase;
|
|
|
else if (craftType == 2 && curRecipePage >= 6)
|
|
else if (craftType == 2 && curRecipePage >= 6)
|
|
|
return Core.pageUltimateForgeInfoList[curRecipePage - 6].GetRecipePageEntries()[index].ItemIdBase;
|
|
return Core.pageUltimateForgeInfoList[curRecipePage - 6].GetRecipePageEntries()[index].ItemIdBase;
|
|
|
- else if (craftType == 1 && curRecipePage >= 2 && Core.pageGearForgeInfoListVanilla[curRecipePage] != null)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ else if (craftType == 0 && curRecipePage < 6 && Core.pageGearForgeInfoListVanilla[curRecipePage] != null)
|
|
|
return Core.pageGearForgeInfoListVanilla[curRecipePage].GetRecipePageEntries()[index].ItemIdBase;
|
|
return Core.pageGearForgeInfoListVanilla[curRecipePage].GetRecipePageEntries()[index].ItemIdBase;
|
|
|
- else if (craftType == 1 && curRecipePage >= 2 && Core.pageAlchemyStationInfoListVanilla[curRecipePage] != null)
|
|
|
|
|
|
|
+ else if (craftType == 1 && curRecipePage < 2 && Core.pageAlchemyStationInfoListVanilla[curRecipePage] != null)
|
|
|
return Core.pageAlchemyStationInfoListVanilla[curRecipePage].GetRecipePageEntries()[index].ItemIdBase;
|
|
return Core.pageAlchemyStationInfoListVanilla[curRecipePage].GetRecipePageEntries()[index].ItemIdBase;
|
|
|
- else if (craftType == 1 && Core.pageUltimateForgeInfoListVanilla[curRecipePage] != null)
|
|
|
|
|
|
|
+ else if (craftType == 2 && curRecipePage < 6 && Core.pageUltimateForgeInfoListVanilla[curRecipePage] != null)
|
|
|
return Core.pageUltimateForgeInfoListVanilla[curRecipePage].GetRecipePageEntries()[index].ItemIdBase;
|
|
return Core.pageUltimateForgeInfoListVanilla[curRecipePage].GetRecipePageEntries()[index].ItemIdBase;
|
|
|
|
|
+
|
|
|
return __instance.GetRecipeItem(curRecipePage, index).id;
|
|
return __instance.GetRecipeItem(curRecipePage, index).id;
|
|
|
}
|
|
}
|
|
|
private static int CalculateUltimaleWeapon(int index, int page)
|
|
private static int CalculateUltimaleWeapon(int index, int page)
|