aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities
diff options
context:
space:
mode:
authorDavid Vierra <codewarrior@hawaii.rr.com>2018-04-05 22:26:38 -1000
committerDavid Vierra <codewarrior@hawaii.rr.com>2018-04-05 22:27:01 -1000
commit2cf95a2b3e82ceb3a8eec69e33262cf36b797ae6 (patch)
tree245d26f79c5eef76a126bab74168e1031968d7fb /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities
parentc461f50dcd3705a350012ab1f8ae8482c2290a18 (diff)
downloadGT5-Unofficial-2cf95a2b3e82ceb3a8eec69e33262cf36b797ae6.tar.gz
GT5-Unofficial-2cf95a2b3e82ceb3a8eec69e33262cf36b797ae6.tar.bz2
GT5-Unofficial-2cf95a2b3e82ceb3a8eec69e33262cf36b797ae6.zip
Add energy cell tiers up to MAX voltage, make lowest cell EV tier
Renamed cells to the voltage tiers Added textures for new cells, adjusted existing textures. Texture colors are vaguely similar to pump/robot arm colors Legacy power stations will have 1.8 billion EU storage
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
index 2aa30a0c30..4746dc2728 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
@@ -109,15 +109,15 @@ public class GregtechMetaTileEntity_PowerSubStationController extends GregtechMe
Logger.INFO("Power Sub-Station problem: " + msg);
}
- private int getCellTier(Block aBlock, int aMeta) {
+ public static int getCellTier(Block aBlock, int aMeta) {
if (aBlock == ModBlocks.blockCasings2Misc && aMeta == 7) {
- return 3;
- } else if (aBlock == ModBlocks.blockCasings3Misc && aMeta == 4) {
return 4;
- } else if (aBlock == ModBlocks.blockCasings3Misc && aMeta == 5) {
+ } else if (aBlock == ModBlocks.blockCasings3Misc && aMeta == 4) {
return 5;
- } else if (aBlock == ModBlocks.blockCasings3Misc && aMeta == 6) {
+ } else if (aBlock == ModBlocks.blockCasings3Misc && aMeta == 5) {
return 6;
+ } else if (aBlock == ModBlocks.blockCasings3Misc && aMeta == 6) {
+ return 7;
} else {
return -1;
}
@@ -282,15 +282,15 @@ public class GregtechMetaTileEntity_PowerSubStationController extends GregtechMe
return true;
}
- // Define storage capacity of smallest cell tier (HV) and compute higher tiers from it
- private static final long CELL_TIER_HV_CAPACITY = 10 * 1000 * 1000; // one lapotron crystal
+ // Define storage capacity of smallest cell tier (EV) and compute higher tiers from it
+ private static final long CELL_TIER_EV_CAPACITY = 100 * 1000 * 1000; // one lapotronic orb
private static final long CELL_TIER_MULTIPLIER = 4; // each tier's capacity is this many times the previous tier
public static long getCapacityFromCellTier(int aOverallCellTier) {
// Use integer math instead of `Math.pow` to avoid range/precision errors
- if (aOverallCellTier < 3) return 0;
- aOverallCellTier -= 3;
- long capacity = CELL_TIER_HV_CAPACITY;
+ if (aOverallCellTier < 4) return 0;
+ aOverallCellTier -= 4;
+ long capacity = CELL_TIER_EV_CAPACITY;
while (aOverallCellTier > 0) {
capacity *= CELL_TIER_MULTIPLIER;
aOverallCellTier--;