aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
diff options
context:
space:
mode:
authorDream-Master <dream-master@gmx.net>2016-04-01 20:02:42 +0200
committerDream-Master <dream-master@gmx.net>2016-04-01 20:02:42 +0200
commitc1a96e33563c00d0c053f1e4f56312566a47bf08 (patch)
tree68f3cd7cb2e223d2936c7dd32aada1b3347c1303 /src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
parentaeb50268c7b74e8bc5d3179746cbd06b36be7d40 (diff)
downloadGT5-Unofficial-c1a96e33563c00d0c053f1e4f56312566a47bf08.tar.gz
GT5-Unofficial-c1a96e33563c00d0c053f1e4f56312566a47bf08.tar.bz2
GT5-Unofficial-c1a96e33563c00d0c053f1e4f56312566a47bf08.zip
Tool tip
Diffstat (limited to 'src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java')
-rw-r--r--src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
index 59326a06d3..eeec476d9c 100644
--- a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
+++ b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java
@@ -61,9 +61,9 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement
// int heat = sumUp(pulses) * 4;
int heat = triangularNumber(pulses) * 4;
-
+
heat = getFinalHeat(reactor, yourStack, x, y, heat);
-
+
ArrayList<ItemStackCoord> heatAcceptors = new ArrayList();
checkHeatAcceptor(reactor, x - 1, y, heatAcceptors);
checkHeatAcceptor(reactor, x + 1, y, heatAcceptors);
@@ -84,22 +84,22 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement
}
}
if (getDamageOfStack(yourStack) >= getMaxDamageEx() - 1) {
- reactor.setItemAt(x, y, sDepleted.copy());
+ reactor.setItemAt(x, y, sDepleted.copy());
} else if (heatrun) {
damageItemStack(yourStack, 1);
}
}
-
+
protected int getFinalHeat(IReactor reactor, ItemStack stack, int x, int y, int heat)
{
- if (sMox&&reactor.isFluidCooled())
- {
- float breedereffectiveness = reactor.getHeat() / reactor.getMaxHeat();
- if (breedereffectiveness > 0.5D) {
- heat *= 2;
- }
+ if (sMox&&reactor.isFluidCooled())
+ {
+ float breedereffectiveness = (float)reactor.getHeat() / (float)reactor.getMaxHeat();
+ if (breedereffectiveness > 0.5D) {
+ heat *= 2;
}
- return heat;
+ }
+ return heat;
}
private void checkHeatAcceptor(IReactor reactor, int x, int y, ArrayList<ItemStackCoord> heatAcceptors) {
@@ -111,13 +111,13 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement
}
public boolean acceptUraniumPulse(IReactor reactor, ItemStack yourStack, ItemStack pulsingStack, int youX, int youY, int pulseX, int pulseY, boolean heatrun) {
- if (!heatrun) {
- if(sMox){
- float breedereffectiveness = (float)reactor.getHeat() / (float)reactor.getMaxHeat();
- float ReaktorOutput = 1.5F * breedereffectiveness + 1.0F;
- reactor.addOutput(ReaktorOutput * this.sEnergy);
- }else{
- reactor.addOutput((float) (1.0F * this.sEnergy));}
+ if (!heatrun) {
+ if(sMox){
+ float breedereffectiveness = (float)reactor.getHeat() / (float)reactor.getMaxHeat();
+ float ReaktorOutput = 1.5F * breedereffectiveness + 1.0F;
+ reactor.addOutput(ReaktorOutput * this.sEnergy);
+ }else{
+ reactor.addOutput((float) (1.0F * this.sEnergy));}
}
return true;
}