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

Commit

Permalink
Add FusionTweaker
Browse files Browse the repository at this point in the history
  • Loading branch information
wohaopa committed Sep 6, 2024
1 parent c8a40e8 commit a0b4ac1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.github.wohaopa.GTNHModify.tweakers;

import gregtech.api.recipe.RecipeMaps;

public class FusionTweaker extends ITweaker {

int value = 1;

@Override
protected void apply() {
RecipeMaps.fusionRecipes.getAllRecipes()
.forEach(gtRecipe -> gtRecipe.mSpecialValue = value);
}

@Override
public Object getSettings() {
return value;
}

@Override
public void setSetting(Object setting) {
value = (int) setting;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public enum Tweakers {
Output("GT_Recipe Input_64", "The output of GT_Recipe is 64.", new Output64()),
Dynamic_Duration("GT_Recipe DynamicDuration", "The duration will calculate the multiplier based on real time",
DynamicDuration.instance),
Fusion("Fusion’s power on energy", "The power on energy is all set to 1", new FusionTweaker()),

// GG Naquadah reactor
GGNaquadahReactor("Other GGNaquadahReactor", "Ten times the burn time.", new GGNaquadahReactorTweaker()),
Expand Down

0 comments on commit a0b4ac1

Please sign in to comment.