Skip to content

Commit

Permalink
Stopped loading nonexistent research
Browse files Browse the repository at this point in the history
  • Loading branch information
OmdaCZ committed Nov 16, 2024
1 parent 31ba128 commit 5f29222
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/main/java/com/dreammaster/scripts/ScriptWarpTheory.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void loadRecipes() {
TCHelper.removeInfusionRecipe(getModItem(WarpTheory.ID, "item.warptheory.cleanserminor", 1, 0, missing));
TCHelper.removeInfusionRecipe(getModItem(WarpTheory.ID, "item.warptheory.cleanser", 1, 0, missing));
TCHelper.removeInfusionRecipe(getModItem(WarpTheory.ID, "item.warptheory.amulet", 1, 0, missing));
TCHelper.removeInfusionRecipe(getModItem(WarpTheory.ID, "item.warptheory.portableshower", 1, 0, missing));
TCHelper.clearPrereq("warptheory.paper");
TCHelper.addResearchPrereq("warptheory.paper", "RESEARCHER2", false);
TCHelper.clearPages("warptheory.paper");
Expand Down Expand Up @@ -206,11 +207,11 @@ public void loadRecipes() {
.add(Aspect.getAspect("permutatio"), 6).add(Aspect.getAspect("terra"), 3));
TCHelper.setResearchComplexity("warptheory.amulet", 4);

TCHelper.orphanResearch("warptheory.warpwardamulet");
TCHelper.clearPrereq("warptheory.warpwardamulet");
TCHelper.addResearchPrereq("warptheory.warpwardamulet", "PURETEAR", false);
TCHelper.orphanResearch("warptheory.portableshower");
TCHelper.clearPrereq("warptheory.portableshower");
TCHelper.addResearchPrereq("warptheory.portableshower", "PURETEAR", false);
ThaumcraftApi.addInfusionCraftingRecipe(
"warptheory.warpwardamulet",
"warptheory.portableshower",
getModItem(WarpTheory.ID, "item.warptheory.portableshower", 1, 0, missing),
64,
new AspectList().add(Aspect.getAspect("aequalitas"), 16).add(Aspect.getAspect("gloria"), 16)
Expand All @@ -226,14 +227,14 @@ public void loadRecipes() {
getModItem(OpenBlocks.ID, "xpshower", 1, 0, missing),
getModItem(ThaumicTinkerer.ID, "kamiResource", 1, 1, missing) });
TCHelper.setResearchAspects(
"warptheory.warpwardamulet",
"warptheory.portableshower",
new AspectList().add(Aspect.getAspect("aequalitas"), 5).add(Aspect.getAspect("gloria"), 5)
.add(Aspect.getAspect("potentia"), 32).add(Aspect.getAspect("praecantatio"), 20)
.add(Aspect.getAspect("aqua"), 32).add(Aspect.getAspect("aer"), 32));
TCHelper.setResearchComplexity("warptheory.warpwardamulet", 4);
TCHelper.setResearchComplexity("warptheory.portableshower", 4);
TCHelper.refreshResearchPages("warptheory.paper");
TCHelper.refreshResearchPages("warptheory.something");
TCHelper.refreshResearchPages("warptheory.amulet");
TCHelper.refreshResearchPages("warptheory.warpwardamulet");
TCHelper.refreshResearchPages("warptheory.portableshower");
}
}

0 comments on commit 5f29222

Please sign in to comment.