Typo effiency
This commit is contained in:
Vendored
+9
-9
@@ -23,7 +23,7 @@ public class SpatialPylonCache implements IGridCache, ISpatialCache
|
|||||||
{
|
{
|
||||||
|
|
||||||
long powerRequired = 0;
|
long powerRequired = 0;
|
||||||
double effiency = 0.0;
|
double efficiency = 0.0;
|
||||||
|
|
||||||
DimensionalCoord captureMin;
|
DimensionalCoord captureMin;
|
||||||
DimensionalCoord captureMax;
|
DimensionalCoord captureMax;
|
||||||
@@ -159,19 +159,19 @@ public class SpatialPylonCache implements IGridCache, ISpatialCache
|
|||||||
reqZ = captureMax.z - captureMin.z;
|
reqZ = captureMax.z - captureMin.z;
|
||||||
requirePylongBlocks = Math.max( 6, ((reqX * reqZ + reqX * reqY + reqY * reqZ) * 3) / 8 );
|
requirePylongBlocks = Math.max( 6, ((reqX * reqZ + reqX * reqY + reqY * reqZ) * 3) / 8 );
|
||||||
|
|
||||||
effiency = (double) pylonBlocks / (double) requirePylongBlocks;
|
efficiency = (double) pylonBlocks / (double) requirePylongBlocks;
|
||||||
|
|
||||||
if ( effiency > 1.0 )
|
if ( efficiency > 1.0 )
|
||||||
effiency = 1.0;
|
efficiency = 1.0;
|
||||||
if ( effiency < 0.0 )
|
if ( efficiency < 0.0 )
|
||||||
effiency = 0.0;
|
efficiency = 0.0;
|
||||||
|
|
||||||
minPower = (double) reqX * (double) reqY * reqZ * AEConfig.instance.spatialPowerMultiplier;
|
minPower = (double) reqX * (double) reqY * reqZ * AEConfig.instance.spatialPowerMultiplier;
|
||||||
maxPower = Math.pow( minPower, AEConfig.instance.spatialPowerScaler );
|
maxPower = Math.pow( minPower, AEConfig.instance.spatialPowerScaler );
|
||||||
}
|
}
|
||||||
|
|
||||||
double affective_effiency = Math.pow( effiency, 0.25 );
|
double affective_efficiency = Math.pow( efficiency, 0.25 );
|
||||||
powerRequired = (long) (affective_effiency * minPower + (1.0 - affective_effiency) * maxPower);
|
powerRequired = (long) (affective_efficiency * minPower + (1.0 - affective_efficiency) * maxPower);
|
||||||
|
|
||||||
for (SpatialPylonCluster cl : clusters.values())
|
for (SpatialPylonCluster cl : clusters.values())
|
||||||
{
|
{
|
||||||
@@ -185,7 +185,7 @@ public class SpatialPylonCache implements IGridCache, ISpatialCache
|
|||||||
@Override
|
@Override
|
||||||
public float currentEfficiency()
|
public float currentEfficiency()
|
||||||
{
|
{
|
||||||
return (float) effiency * 100;
|
return (float) efficiency * 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
@MENetworkEventSubscribe
|
@MENetworkEventSubscribe
|
||||||
|
|||||||
Reference in New Issue
Block a user