Skip to content

Commit

Permalink
Speed parts * 100
Browse files Browse the repository at this point in the history
  • Loading branch information
aagrishankov committed Nov 2, 2020
1 parent f24da8d commit 1ae643f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public Object[] exportFluid(Context context, Arguments args){
return new Object[]{false, "no export bus"};
if (part.getFacingTank() == null)
return new Object[]{false, "no tank"};
int amount = Math.min(args.optInteger(1, 625), 125 + part.getSpeedState() * 125);
int amount = Math.min(args.optInteger(1, 62500), 12500 + part.getSpeedState() * 12500);
boolean didSomething = part.doWork(amount, 1);
if (didSomething)
context.pause(0.25);
Expand Down
8 changes: 4 additions & 4 deletions src/main/scala/extracells/part/PartFluidIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ public ECPrivateInventory getUpgradeInventory() {
@Override
public List<String> getWailaBodey(NBTTagCompound tag, List<String> oldList) {
if (tag.hasKey("speed"))
oldList.add(tag.getInteger("speed") + "mB/t");
oldList.add(tag.getInteger("speed") + "L/t");
else
oldList.add("125mB/t");
oldList.add("12500 L/t");
return oldList;
}

@Override
public NBTTagCompound getWailaTag(NBTTagCompound tag) {
tag.setInteger("speed", 125 + this.speedState * 125);
tag.setInteger("speed", 12500 + this.speedState * 12500);
return tag;
}

Expand Down Expand Up @@ -261,7 +261,7 @@ public void setPartHostInfo(ForgeDirection _side, IPartHost _host,
public final TickRateModulation tickingRequest(IGridNode node,
int TicksSinceLastCall) {
if (canDoWork())
return doWork(125 + this.speedState * 125, TicksSinceLastCall) ? TickRateModulation.FASTER
return doWork(12500 + this.speedState * 12500, TicksSinceLastCall) ? TickRateModulation.FASTER
: TickRateModulation.SLOWER;
return TickRateModulation.SLOWER;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/extracells/part/PartFluidImport.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public int fill(ForgeDirection from, FluidStack resource, boolean doFill) {
boolean redstonePowered = isRedstonePowered();
if (resource == null || redstonePowered && getRedstoneMode() == RedstoneMode.LOW_SIGNAL || !redstonePowered && getRedstoneMode() == RedstoneMode.HIGH_SIGNAL)
return 0;
int drainAmount = Math.min(125 + this.speedState * 125, resource.amount);
int drainAmount = Math.min(12500 + this.speedState * 12500, resource.amount);
FluidStack toFill = new FluidStack(resource.getFluid(), drainAmount);
Actionable action = doFill ? Actionable.MODULATE : Actionable.SIMULATE;
IAEFluidStack filled = injectFluid(AEApi.instance().storage().createFluidStack(toFill), action);
Expand Down
10 changes: 5 additions & 5 deletions src/main/scala/extracells/part/PartFluidInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public void writeToNBT(NBTTagCompound tagCompound) {
private IAEItemStack toExport = null;

private final Item encodedPattern = AEApi.instance().definitions().items().encodedPattern().maybeItem().orNull();
private FluidTank tank = new FluidTank(10000) {
private FluidTank tank = new FluidTank(64000) {
@Override
public FluidTank readFromNBT(NBTTagCompound nbt) {
if (!nbt.hasKey("Empty")) {
Expand Down Expand Up @@ -442,14 +442,14 @@ public List<String> getWailaBodey(NBTTagCompound tag, List<String> list) {
.translateToLocal("extracells.tooltip.empty1"));
list.add(StatCollector
.translateToLocal("extracells.tooltip.amount")
+ ": 0mB / 10000mB");
+ ": 0L / 64000L");
} else {
list.add(StatCollector.translateToLocal("extracells.tooltip.fluid")
+ ": " + fluid.getLocalizedName());
list.add(StatCollector
.translateToLocal("extracells.tooltip.amount")
+ ": "
+ fluid.amount + "mB / 10000mB");
+ fluid.amount + "L / 64000L");
}
return list;
}
Expand Down Expand Up @@ -938,7 +938,7 @@ public TickRateModulation tickingRequest(IGridNode node,
if (this.tank.getFluid() != null
&& FluidRegistry.getFluid(this.fluidFilter) != this.tank
.getFluid().getFluid()) {
FluidStack s = this.tank.drain(125, false);
FluidStack s = this.tank.drain(12500, false);
if (s != null) {
IAEFluidStack notAdded = storage.getFluidInventory()
.injectItems(
Expand Down Expand Up @@ -975,7 +975,7 @@ public TickRateModulation tickingRequest(IGridNode node,
.storage()
.createFluidStack(
new FluidStack(FluidRegistry
.getFluid(this.fluidFilter), 125)),
.getFluid(this.fluidFilter), 12500)),
Actionable.SIMULATE, new MachineSource(this));
if (extracted == null)
return TickRateModulation.URGENT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public TileEntityFluidInterface() {
this.inventory = new FluidInterfaceInventory();
this.gridBlock = new ECFluidGridBlock(this);
for (int i = 0; i < this.tanks.length; i++) {
this.tanks[i] = new FluidTank(10000) {
this.tanks[i] = new FluidTank(64000) {
@Override
public FluidTank readFromNBT(NBTTagCompound nbt) {
if (!nbt.hasKey("Empty")) {
Expand Down Expand Up @@ -424,7 +424,7 @@ public List<String> getWailaBody(List<String> list, NBTTagCompound tag,
+ side.ordinal()));
FluidTank[] tanks = new FluidTank[6];
for (int i = 0; i < tanks.length; i++) {
tanks[i] = new FluidTank(10000) {
tanks[i] = new FluidTank(64000) {
@Override
public FluidTank readFromNBT(NBTTagCompound nbt) {
if (!nbt.hasKey("Empty")) {
Expand Down Expand Up @@ -452,14 +452,14 @@ public FluidTank readFromNBT(NBTTagCompound nbt) {
.translateToLocal("extracells.tooltip.empty1"));
list.add(StatCollector
.translateToLocal("extracells.tooltip.amount")
+ ": 0mB / 10000mB");
+ ": 0L / 64000L");
} else {
list.add(StatCollector.translateToLocal("extracells.tooltip.fluid")
+ ": " + tank.getFluid().getLocalizedName());
list.add(StatCollector
.translateToLocal("extracells.tooltip.amount")
+ ": "
+ tank.getFluidAmount() + "mB / 10000mB");
+ tank.getFluidAmount() + "L / 64000L");
}
return list;
}
Expand Down Expand Up @@ -866,7 +866,7 @@ private void tick() {
if (this.tanks[i].getFluid() != null
&& FluidRegistry.getFluid(this.fluidFilter[i]) != this.tanks[i]
.getFluid().getFluid()) {
FluidStack s = this.tanks[i].drain(125, false);
FluidStack s = this.tanks[i].drain(12500, false);
if (s != null) {
IAEFluidStack notAdded = storage.getFluidInventory()
.injectItems(
Expand Down Expand Up @@ -910,7 +910,7 @@ private void tick() {
new FluidStack(
FluidRegistry
.getFluid(this.fluidFilter[i]),
125)),
12500)),
Actionable.SIMULATE, new MachineSource(this));
if (extracted == null)
continue;
Expand Down

0 comments on commit 1ae643f

Please sign in to comment.