mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-12 00:07:29 +00:00
Merge pull request #53 from asdflj/super_speed_card
add super speed card support
This commit is contained in:
3 files changed
+14
-4
No files matched your search
@@ -85,6 +85,8 @@ public class FluidCraft {
|
||||
Upgrades.REDSTONE.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_IMPORT_BUS), 1);
|
||||
Upgrades.SPEED.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_EXPORT_BUS), 4);
|
||||
Upgrades.SPEED.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_IMPORT_BUS), 4);
|
||||
Upgrades.SUPERSPEED.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_EXPORT_BUS), 4);
|
||||
Upgrades.SUPERSPEED.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_IMPORT_BUS), 4);
|
||||
Upgrades.CRAFTING.registerItem(new ItemStack(ItemAndBlockHolder.FLUID_EXPORT_BUS), 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,10 +115,18 @@ public abstract class PartSharedFluidBus extends PartUpgradeable implements IGri
|
||||
amount = amount * 4;
|
||||
case 1:
|
||||
amount = amount * 8;
|
||||
case 0:
|
||||
default:
|
||||
return (int) Math.floor(amount);
|
||||
}
|
||||
switch (this.getInstalledUpgrades(Upgrades.SUPERSPEED)) {
|
||||
case 4:
|
||||
amount = amount * 8;
|
||||
case 3:
|
||||
amount = amount * 12;
|
||||
case 2:
|
||||
amount = amount * 16;
|
||||
case 1:
|
||||
amount = amount * 32;
|
||||
}
|
||||
return (int) Math.floor(amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user