-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix logic errors in createMultiblock (#1093) * fix various research bugs that popped up (#1091) * fix assline recipes with no research not working * add some missing recipes (WHY DID LIKE 3 PEOPLE TOTAL REPORT ISSUES) * more recipes * fix errors * fix UIs * changelog * update LDLib * update changelog * reviews --------- Co-authored-by: SmallY <[email protected]>
- Loading branch information
Showing
19 changed files
with
1,619 additions
and
1,446 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
# ChangeLog | ||
|
||
Version: 1.2.0 | ||
Version: 1.2.0.a | ||
|
||
### ADDITIONS: | ||
- Ported the new Research System for Late Game from 1.12: | ||
- Assembly lines now require "Research Data" to run recipes. Data is provided by Data Sticks in Hatches or Data Banks. | ||
- Later tier Research Data requires more complex means of computation. Introducing the HPCA and Research Station. | ||
- Added Portable Scanner | ||
- Added Multiblock Fluid Tanks | ||
|
||
### CHANGES: | ||
- Improved recipe viewer widgets | ||
- Updated Power Substation UI to show separate values for input and output | ||
- Removed the recipes for Processing Arrays | ||
- **IMPORTANT:** Your existing PAs will only continue to work until 1.3.0, at which point we will remove them entirely. | ||
Please replace them with the appropriate specialized multiblocks until then! | ||
- Updated Russian and Chinese translations | ||
|
||
### FIXES: | ||
- Fixed Multiblocks with only 1 Energy/Dynamo Hatch not overclocking | ||
- Fixed Energy Hatch amounts in Multiblocks | ||
- Fixed high-tier Emitters not existing | ||
- Fixed surface rock descriptions | ||
- Fixed plungers not working | ||
- Fixed ME Input Hatch and ME Output Bus | ||
- Fixed number formatting in certain places | ||
- Fixed Large Boilers requiring a Maintenance Hatch when maintenance is disabled in the config | ||
- Fixed some components not requiring data | ||
- Fixed assembly line recipes with no data not working | ||
- Fixed data module recipe being missing | ||
- Fixed tiered multiblock builders not working |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/main/java/com/gregtechceu/gtceu/common/recipe/ResearchCondition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package com.gregtechceu.gtceu.common.recipe; | ||
|
||
import com.google.gson.JsonObject; | ||
import com.gregtechceu.gtceu.api.machine.trait.RecipeLogic; | ||
import com.gregtechceu.gtceu.api.recipe.GTRecipe; | ||
import com.gregtechceu.gtceu.api.recipe.RecipeCondition; | ||
import com.gregtechceu.gtceu.api.recipe.ResearchData; | ||
import lombok.AllArgsConstructor; | ||
import net.minecraft.network.chat.Component; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@AllArgsConstructor | ||
public class ResearchCondition extends RecipeCondition { | ||
public final static ResearchCondition INSTANCE = new ResearchCondition(); | ||
public ResearchData data; | ||
|
||
public ResearchCondition() { | ||
this.data = new ResearchData(); | ||
} | ||
|
||
@Override | ||
public String getType() { | ||
return "reseach"; | ||
} | ||
|
||
@Override | ||
public Component getTooltips() { | ||
return Component.translatable("gtceu.recipe.research"); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public JsonObject serialize() { | ||
JsonObject value = super.serialize(); | ||
value.add("research", this.data.toJson()); | ||
return value; | ||
} | ||
|
||
@Override | ||
public RecipeCondition deserialize(@NotNull JsonObject config) { | ||
super.deserialize(config); | ||
this.data = ResearchData.fromJson(config.getAsJsonArray("research")); | ||
return this; | ||
} | ||
|
||
@Override | ||
public boolean test(@NotNull GTRecipe recipe, @NotNull RecipeLogic recipeLogic) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public RecipeCondition createTemplate() { | ||
return new ResearchCondition(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.