power substation NC2 display needs maintenance status
richardhendricks opened this issue ยท 7 comments
GTNewHorizons/GT5-Unofficial@7971edd
Will post it to Bloody when it gets proper testing
I don't understand how this is a "GT" problem. I am specifically talking about the power station maintenance state. It is a multiblock, it can need maintenance, and when it does, it wastes extra power.
When I did maintenance on the Power Station, its running costs dropped to 102 EU/t.
return new String[]{
"Ergon Energy - District Sub-Station",
"Stored EU:" + storedEnergyText,
"Capacity: " + EnumChatFormatting.YELLOW + GT_Utility.formatNumbers(this.maxEUStore()) + EnumChatFormatting.RESET,
"Running Costs: " + EnumChatFormatting.RED + GT_Utility.formatNumbers(this.computeEnergyTax()) + EnumChatFormatting.RESET + " EU/t",
"Controller Mode: " + mode,
"Stats for Nerds",
"Total Input: " + EnumChatFormatting.BLUE + GT_Utility.formatNumbers(this.mTotalEnergyAdded) + EnumChatFormatting.RESET + " EU",
"Total Output: " + EnumChatFormatting.GOLD + GT_Utility.formatNumbers(this.mTotalEnergyConsumed) + EnumChatFormatting.RESET + " EU",
"Total Costs: " + EnumChatFormatting.RED + GT_Utility.formatNumbers(this.mTotalEnergyLost) + EnumChatFormatting.RESET + " EU",
"Total Time Since Built: ",
""+weeks+" Weeks.",
""+days+" Days.",
""+hours+" Hours.",
""+minutes+" Minutes.",
""+second+" Seconds.",
"Total Time in ticks: "+this.mTotalRunTime
};
Energy tax calculation based on repair state
private long computeEnergyTax() {
float mTax = mAverageEuUsage * (ENERGY_TAX / 100f);
// Increase tax up to 2x if machine is not fully repaired
mTax = mTax * (1f + (10000f - mEfficiency) / 10000f);
return MathUtils.roundToClosestInt(mTax);
}
Gregtech, specifically it's implementation for nuclear info, only looks at the first 8 strings returned from getInfo. The fix from tec will have it read all of them.
The debug scanner uses the same getinfo but uses all of the strings returned.