Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Fixes for overflow valve, wireless charger, and transmission componen…
Browse files Browse the repository at this point in the history
…ts recipes and ids (#794)

* Fix all the tiers in recipes including for wireless charger and overflow valve

* fix transmission components
  • Loading branch information
chochem authored Dec 9, 2023
1 parent c2b50ac commit 1f1ce2d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
24 changes: 12 additions & 12 deletions src/main/java/gtPlusPlus/core/recipe/RECIPES_Machines.java
Original file line number Diff line number Diff line change
Expand Up @@ -753,14 +753,14 @@ private static void overflowValveCovers() {
GregtechItemList.Cover_Overflow_MV.get(1L), GregtechItemList.Cover_Overflow_HV.get(1L),
GregtechItemList.Cover_Overflow_EV.get(1L), GregtechItemList.Cover_Overflow_IV.get(1L), };

for (int i = 1; i < aOutputs.length; i++) {
for (int tier = 1; tier < aOutputs.length + 1; tier++) {
CORE.RA.addSixSlotAssemblingRecipe(
new ItemStack[] { CI.getNumberedBioCircuit(19), CI.getElectricPump(i, 2), CI.getElectricMotor(i, 2),
CI.getPlate(i, 4) },
Materials.SolderingAlloy.getFluid(i * (144)),
aOutputs[i].copy(),
new ItemStack[] { CI.getNumberedBioCircuit(19), CI.getElectricPump(tier, 2),
CI.getElectricMotor(tier, 2), CI.getPlate(tier, 4) },
Materials.SolderingAlloy.getFluid(tier * (144)),
aOutputs[tier - 1].copy(),
20 * 20,
MaterialUtils.getVoltageForTier(i));
MaterialUtils.getVoltageForTier(tier));
}
}

Expand Down Expand Up @@ -2715,17 +2715,17 @@ private static void wirelessChargers() {
GregtechItemList.Charger_LuV.get(1), GregtechItemList.Charger_ZPM.get(1),
GregtechItemList.Charger_UV.get(1), GregtechItemList.Charger_UHV.get(1) };

for (int tier = 1; tier < aChargers.length; tier++) {
for (int tier = 1; tier < aChargers.length + 1; tier++) {

ItemStack[] aInputs = new ItemStack[] { CI.getTieredMachineHull(tier, 1),
CI.getTransmissionComponent(tier, 2), CI.getFieldGenerator(tier, 1),
CI.getTieredComponent(OrePrefixes.plate, tier, 4),
CI.getTieredComponent(OrePrefixes.circuit, tier, 2), };
CI.getTieredComponent(OrePrefixes.plate, tier + 1, 4),
CI.getTieredComponent(OrePrefixes.circuit, tier + 1, 2), };
CORE.RA.addSixSlotAssemblingRecipe(
aInputs,
CI.getAlternativeTieredFluid(tier, (144 * 2 * tier)), // Input Fluid
aChargers[tier],
45 * 10 * (tier),
CI.getAlternativeTieredFluid(tier, (144 * 2 * (tier + 1))), // Input Fluid
aChargers[tier - 1],
45 * 10 * (tier + 1),
MaterialUtils.getVoltageForTier(tier));
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/gtPlusPlus/core/recipe/common/CI.java
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ public static ItemStack getSensor(int aTier, int aSize) {

public static ItemStack getFieldGenerator(int aTier, int aSize) {
ItemStack aType;
int aLazyTier = 0;
int aLazyTier = 1;
if (aTier == aLazyTier++) {
aType = CI.fieldGenerator_LV;
} else if (aTier == aLazyTier++) {
Expand Down Expand Up @@ -963,7 +963,7 @@ public static ItemStack getTieredComponentOfMaterial(Materials aMaterial, OrePre
}

public static ItemStack getTransmissionComponent(int aTier, int aAmount) {
GregtechItemList[] aTransParts = new GregtechItemList[] { GregtechItemList.TransmissionComponent_LV,
GregtechItemList[] aTransParts = new GregtechItemList[] { null, GregtechItemList.TransmissionComponent_LV,
GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV,
GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV,
GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,21 +272,22 @@ public void generateMetaItems() {
"Wood's Glass Lens",
"Allows UV & IF to pass through, blocks visible light spectrums"));

int aStartID = 141;
// 141 now unused, was the ulv transmission component
int aStartID = 142;
GregtechItemList[] aTransParts = new GregtechItemList[] { GregtechItemList.TransmissionComponent_LV,
GregtechItemList.TransmissionComponent_MV, GregtechItemList.TransmissionComponent_HV,
GregtechItemList.TransmissionComponent_EV, GregtechItemList.TransmissionComponent_IV,
GregtechItemList.TransmissionComponent_LuV, GregtechItemList.TransmissionComponent_ZPM,
GregtechItemList.TransmissionComponent_UV, GregtechItemList.TransmissionComponent_UHV, };
for (int aIndex = 0; aIndex < aTransParts.length; aIndex++) {
aTransParts[aIndex].set(
for (int tier = 1; tier < aTransParts.length + 1; tier++) {
aTransParts[tier - 1].set(
this.addItem(
aStartID++,
"Transmission Component (" + GT_Values.VN[aIndex] + ")",
"Transmission Component (" + GT_Values.VN[tier] + ")",
"",
getTcAspectStack(TC_Aspects.ELECTRUM, aIndex),
getTcAspectStack(TC_Aspects.MACHINA, aIndex),
getTcAspectStack(TC_Aspects.MAGNETO, aIndex)));
getTcAspectStack(TC_Aspects.ELECTRUM, tier),
getTcAspectStack(TC_Aspects.MACHINA, tier),
getTcAspectStack(TC_Aspects.MAGNETO, tier)));
}

// Distillus Chip
Expand Down

0 comments on commit 1f1ce2d

Please sign in to comment.