Skip to content

Commit 34bdf70

Browse files
OmdaCZDream-Masterserenibyssboubou19
authored
Fix Portable Shower research name (#44)
Co-authored-by: Martin Robertz <[email protected]> Co-authored-by: Maya <[email protected]> Co-authored-by: boubou19 <[email protected]>
1 parent 944e4e7 commit 34bdf70

File tree

4 files changed

+62
-2
lines changed

4 files changed

+62
-2
lines changed

src/main/java/shukaro/warptheory/items/WarpItems.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ public static void initItems() {
1616
itemCleanser = new ItemCleanser();
1717
itemAmulet = new ItemAmulet();
1818
itemWarpWardAmulet = new ItemWarpWardAmulet();
19+
1920
itemSomething = new ItemSomething();
2021
itemPaper = new ItemPaper();
2122
GameRegistry.registerItem(itemCleanserMinor, itemCleanserMinor.getUnlocalizedName());
2223
GameRegistry.registerItem(itemCleanser, itemCleanser.getUnlocalizedName());
2324
GameRegistry.registerItem(itemAmulet, itemAmulet.getUnlocalizedName());
2425
GameRegistry.registerItem(itemWarpWardAmulet, itemWarpWardAmulet.getUnlocalizedName());
26+
2527
GameRegistry.registerItem(itemSomething, itemSomething.getUnlocalizedName());
2628
GameRegistry.registerItem(itemPaper, itemPaper.getUnlocalizedName());
2729
}

src/main/java/shukaro/warptheory/recipe/WarpRecipes.java

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import net.minecraft.init.Items;
66
import net.minecraft.item.ItemStack;
77

8+
import cpw.mods.fml.common.Loader;
89
import shukaro.warptheory.handlers.ConfigHandler;
910
import shukaro.warptheory.items.WarpItems;
1011
import shukaro.warptheory.research.WarpResearch;
@@ -67,7 +68,36 @@ public static void init() {
6768
new ItemStack(Items.diamond), ItemApi.getItem("itemResource", 14),
6869
new ItemStack(WarpItems.itemCleanser), new ItemStack(Items.gold_ingot),
6970
new ItemStack(Items.diamond), ItemApi.getItem("itemResource", 14) }));
70-
71+
if (Loader.isModLoaded("dreamcraft")) {
72+
WarpResearch.recipes.put(
73+
"WarpWardAmulet",
74+
ThaumcraftApi.addInfusionCraftingRecipe(
75+
Constants.ITEM_PORTABLE_SHOWER,
76+
new ItemStack(WarpItems.itemWarpWardAmulet),
77+
10,
78+
new AspectList().add(Aspect.ELDRITCH, 32).add(Aspect.EXCHANGE, 32)
79+
.add(Aspect.MAGIC, 64),
80+
ItemApi.getItem("itemBaubleBlanks", 0),
81+
new ItemStack[] { new ItemStack(WarpItems.itemCleanser),
82+
new ItemStack(Items.gold_ingot), new ItemStack(Items.diamond),
83+
ItemApi.getItem("itemResource", 14), new ItemStack(WarpItems.itemCleanser),
84+
new ItemStack(Items.gold_ingot), new ItemStack(Items.diamond),
85+
ItemApi.getItem("itemResource", 14) }));
86+
} else {
87+
// to define the recipe
88+
WarpResearch.recipes.put(
89+
"WarpWardAmulet",
90+
ThaumcraftApi.addInfusionCraftingRecipe(
91+
Constants.ITEM_PURE_TALISMAN,
92+
new ItemStack(WarpItems.itemAmulet),
93+
10,
94+
new AspectList().add(Aspect.ELDRITCH, 32).add(Aspect.EXCHANGE, 32)
95+
.add(Aspect.MAGIC, 64),
96+
ItemApi.getItem("itemBaubleBlanks", 0),
97+
new ItemStack[] { new ItemStack(WarpItems.itemCleanser),
98+
new ItemStack(Items.gold_ingot), new ItemStack(WarpItems.itemCleanser),
99+
new ItemStack(Items.gold_ingot) }));
100+
}
71101
for (ItemStack meat : meats) WarpResearch.recipes.put(
72102
"WarpChunk" + meat,
73103
ThaumcraftApi.addCrucibleRecipe(
@@ -120,6 +150,17 @@ public static void init() {
120150
new ItemStack[] { new ItemStack(WarpItems.itemCleanser), new ItemStack(Items.gold_ingot),
121151
new ItemStack(WarpItems.itemCleanser), new ItemStack(Items.gold_ingot) }));
122152

153+
WarpResearch.recipes.put(
154+
"WarpWardAmulet",
155+
ThaumcraftApi.addInfusionCraftingRecipe(
156+
Constants.ITEM_PURE_TALISMAN,
157+
new ItemStack(WarpItems.itemAmulet),
158+
10,
159+
new AspectList().add(Aspect.ELDRITCH, 32).add(Aspect.EXCHANGE, 32).add(Aspect.MAGIC, 64),
160+
ItemApi.getItem("itemBaubleBlanks", 0),
161+
new ItemStack[] { new ItemStack(WarpItems.itemCleanser), new ItemStack(Items.gold_ingot),
162+
new ItemStack(WarpItems.itemCleanser), new ItemStack(Items.gold_ingot) }));
163+
123164
for (ItemStack meat : meats) WarpResearch.recipes.put(
124165
"WarpChunk" + meat,
125166
ThaumcraftApi.addCrucibleRecipe(

src/main/java/shukaro/warptheory/research/WarpResearch.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ public static void init() {
7575
new ResearchPage((InfusionRecipe) recipes.get("PureAmulet")) })
7676
.setParents(Constants.ITEM_WARPCLEANSER).setConcealed().registerResearchItem();
7777

78+
new WTResearchItem(
79+
Constants.ITEM_PORTABLE_SHOWER,
80+
new AspectList().add(Aspect.ELDRITCH, 6).add(Aspect.EXCHANGE, 3).add(Aspect.MAGIC, 3),
81+
5,
82+
5,
83+
3,
84+
new ItemStack(WarpItems.itemWarpWardAmulet)).setPages(
85+
new ResearchPage[] {
86+
new ResearchPage(StatCollector.translateToLocal("research.warptheory.portableshower")),
87+
new ResearchPage((InfusionRecipe) recipes.get("WarpWardAmulet")) })
88+
.setParents(Constants.ITEM_PURE_TALISMAN).setConcealed().registerResearchItem();
89+
7890
ResearchPage[] somethingPages = new ResearchPage[WarpRecipes.meats.size() + 1];
7991
somethingPages[0] = new ResearchPage(StatCollector.translateToLocal("research.warptheory.warpsomething"));
8092
int i = 1;

src/main/resources/assets/warptheory/lang/en_US.lang

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ item.warptheory.cleanser.name=Pure Tear
2222
item.warptheory.amulet.name=Purification Talisman
2323
item.warptheory.something.name=Hunk of Something
2424
item.warptheory.paper.name=Arcane Litmus Paper
25-
item.warptheory.portableshower.name=Portable Shower
25+
2626
# << entity names >>
2727
entity.WarpTheory.taintSheepSafe.name=Tainted Sheep
2828
entity.WarpTheory.creeperFake.name=Fake Creeper
@@ -38,6 +38,11 @@ tooltip.warptheory.something=Probably edible...
3838
tooltip.warptheory.paper=Reacts to Warp
3939
tooltip.warptheory.portableshower=Showers off your filth
4040

41+
# << portable shower >>
42+
tc.research_name.warptheory.portableshower=Portable Shower
43+
tc.research_text.warptheory.portableshower=A more mundane way to clean your mind
44+
research.warptheory.portableshower=You realized you still feel crazy when wearing your favorite armor. So you have thought long and hard about the solution for that.....when you were tinkering with your spa, you suddenly had a revelation to yourself, "Why would I not just bath permanently to feel fresh the whole time?" and so, you created this simple amulet, it brews arcane spa water for you, using natural essentia with some vis from the environment.
45+
4146
# << hunk of something >>
4247
tc.research_name.warptheory.something=Hunk of Something
4348
tc.research_text.warptheory.something=Definitely not something pleasant

0 commit comments

Comments
 (0)