Skip to content

Commit

Permalink
Fix cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
tier940 committed Aug 18, 2024
1 parent 714be54 commit cdd4fe5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11 deletions.
30 changes: 30 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
time: "09:00"
timezone: "Asia/Tokyo"
ignore:
- dependency-name: "build.gradle"
open-pull-requests-limit: 10
commit-message:
prefix: "deps"
labels:
- "dependencies"
assignees:
- "tier940"
reviewers:
- "tier940"
allow:
- dependency-type: "all"
groups:
monthly_maintenance:
patterns:
- "*"
update-types: ["minor", "patch"]
devDependencies:
patterns:
- "*"
update-types: ["major", "minor", "patch"]
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import gregtech.api.capability.IEnergyContainer;
import gregtech.api.capability.impl.RecipeLogicEnergy;
import gregtech.api.metatileentity.MetaTileEntity;
import gregtech.api.recipes.logic.OverclockingLogic;
import gregtech.api.util.GTTransferUtils;
import gregtech.api.util.GTUtility;

Expand Down Expand Up @@ -166,15 +165,18 @@ private boolean setupAndConsumeInputs(@NotNull ItemStack outputItem) {
return consumeEmptyVial();
}

// TODO: 修正必須
private boolean checkOverclock() {
// TODO: adjust energy consumption
int eut = 30;
int duration = 10 * 20;
this.overclockResults = OverclockingLogic.standardOverclockingLogic(eut, getMaximumOverclockVoltage(), duration,
getNumberOfOCs(eut), getOverclockingDurationDivisor(),
getOverclockingVoltageMultiplier());

return hasEnoughPower(overclockResults);
// // TODO: adjust energy consumption
// int eut = 30;
// int duration = 10 * 20;
// this.overclockResults = OverclockingLogic.standardOverclockingLogic(eut, getMaximumOverclockVoltage(),
// duration,
// getNumberOfOCs(eut), getOverclockingDurationDivisor(),
// getOverclockingVoltageMultiplier());
//
// return hasEnoughPower(overclockResults);
return false;
}

private boolean consumeEmptyVial() {
Expand All @@ -192,10 +194,11 @@ private boolean consumeEmptyVial() {
/**
* {@link #setupRecipe} equivalent
*/
// TODO: 修正必須
private void setup(@NotNull CapturedMob mobToSpawn, @NotNull ItemStack outputItem) {
this.progressTime = 1;
setMaxProgress(overclockResults[1]);
this.recipeEUt = overclockResults[0];
// setMaxProgress(overclockResults[1]);
// this.recipeEUt = overclockResults[0];
if (!spawnMode) {
this.itemOutputs = GTUtility.copyStackList(Collections.singletonList(outputItem));
} else {
Expand Down

0 comments on commit cdd4fe5

Please sign in to comment.