Skip to content

Commit

Permalink
remove oldValues support
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Jan 26, 2023
1 parent 3d21513 commit 643ec75
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ public Matter next() {
this.hasItem = existingItem == null && ordinal() != 0;
this.level = ordinal() + 1;
// Gₙ(aₙ)(z)=4(2z²+z-1)/4z-1
this.collectorOutputBase = Config.useOldValues.get() ? calcOldValue(BigDecimal.valueOf(6), level) : BigDecimal.valueOf(collectorOutput);
this.collectorOutputBase =BigDecimal.valueOf(collectorOutput);
// ¯\_(ツ)_/¯
this.relayBonusBase = Config.useOldValues.get() ? calcOldValue(BigDecimal.valueOf(1), level) : BigDecimal.valueOf(relayBonus);
this.relayBonusBase = BigDecimal.valueOf(relayBonus);
// Gₙ(aₙ)(z)=64(2z²+z-1)/4z-1
this.relayTransferBase = Config.useOldValues.get() ? calcOldValue(BigDecimal.valueOf(64), level) : BigDecimal.valueOf(relayTransfer);
this.relayTransferBase = BigDecimal.valueOf(relayTransfer);
this.fluidEfficiency = Config.enableFluidEfficiency.get() ? fluidEfficiency : 100;
this.existingItem = existingItem;
this.rarity =
Expand All @@ -107,12 +107,6 @@ public Matter next() {
Rarity.COMMON;
}

private BigDecimal calcOldValue(BigDecimal base, int level) {
BigDecimal i = base;
for (int v = 1; v <= level; v++) i = i.multiply(BigDecimal.valueOf(v));
return i;
}

public int getLevel() {
return level;
}
Expand Down

0 comments on commit 643ec75

Please sign in to comment.