aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
authorBass <tudurap.com@gmail.com>2019-08-19 11:34:51 +0100
committerBass <tudurap.com@gmail.com>2019-08-19 11:34:51 +0100
commit175e78daeb259cdc3a4f54c56d443517984638fa (patch)
tree2eb79d377f5b1e81427ee88f25537ee8500853e9 /src/main/java/com
parenta9fccec1808bdfdc39256856468d749b5a480c72 (diff)
downloadGT5-Unofficial-175e78daeb259cdc3a4f54c56d443517984638fa.tar.gz
GT5-Unofficial-175e78daeb259cdc3a4f54c56d443517984638fa.tar.bz2
GT5-Unofficial-175e78daeb259cdc3a4f54c56d443517984638fa.zip
Fix Tesla Capacitor Values
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/github/technus/tectech/thing/item/TeslaCoilCapacitor.java24
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Capacitor.java10
2 files changed, 10 insertions, 24 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/item/TeslaCoilCapacitor.java b/src/main/java/com/github/technus/tectech/thing/item/TeslaCoilCapacitor.java
index f842fc8af2..22c6fe335b 100644
--- a/src/main/java/com/github/technus/tectech/thing/item/TeslaCoilCapacitor.java
+++ b/src/main/java/com/github/technus/tectech/thing/item/TeslaCoilCapacitor.java
@@ -15,6 +15,7 @@ import net.minecraft.util.IIcon;
import java.util.List;
+import static com.github.technus.tectech.CommonValues.V;
import static com.github.technus.tectech.Reference.MODID;
@@ -36,25 +37,10 @@ public final class TeslaCoilCapacitor extends Item {
@Override
public void addInformation(ItemStack aStack, EntityPlayer ep, List aList, boolean boo) {
aList.add(CommonValues.BASS_MARK);
- switch (aStack.getItemDamage()) {
- case 0://"LV"
- aList.add("Stores energy for tesla towers! (LV)");
- break;
- case 1://"MV"
- aList.add("Stores energy for tesla towers! (MV)");
- break;
- case 2://"HV"
- aList.add("Stores energy for tesla towers! (HV)");
- break;
- case 3://"EV"
- aList.add("Stores energy for tesla towers! (EV)");
- break;
- case 4://"IV"
- aList.add("Stores energy for tesla towers! (IV)");
- break;
- default://
- aList.add("Yeet this broken item into some spicy water!");
- break;
+ if (aStack.getItemDamage() >= 0 && aStack.getItemDamage() <= 4){
+ aList.add("Stores " + V[aStack.getItemDamage()+1]*512 + " EU in a tesla tower at " + V[aStack.getItemDamage()+1] +" EU/t");
+ } else {
+ aList.add("Yeet this broken item into some spicy water!");
}
aList.add(EnumChatFormatting.BLUE + "Insert into a Capacitor hatch of a Tesla Tower");
aList.add(EnumChatFormatting.BLUE + "Capacitors are the same thing as batteries, right?");
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Capacitor.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Capacitor.java
index 3ea31b537e..f263191b13 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Capacitor.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_Capacitor.java
@@ -172,11 +172,11 @@ public class GT_MetaTileEntity_Hatch_Capacitor extends GT_MetaTileEntity_Hatch {
}
public static void run() {
- new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.0", 0, 1, V[0]*512);//LV Capacitor
- new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.1", 1, 1, V[1]*512);//MV Capacitor
- new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.2", 2, 1, V[2]*512);//HV Capacitor
- new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.3", 3, 1, V[3]*512);//EV Capacitor
- new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.4", 4, 1, V[4]*512);//IV Capacitor
+ new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.0", 0, 1, V[1]*512);//LV Capacitor
+ new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.1", 1, 1, V[2]*512);//MV Capacitor
+ new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.2", 2, 1, V[3]*512);//HV Capacitor
+ new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.3", 3, 1, V[4]*512);//EV Capacitor
+ new GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent(Reference.MODID+":item.tm.teslaCoilCapacitor.4", 4, 1, V[5]*512);//IV Capacitor
}
public static class CapacitorComponent implements Comparable<GT_MetaTileEntity_Hatch_Capacitor.CapacitorComponent> {