Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Shorten description lines and add structure info
Browse files Browse the repository at this point in the history
- Shortened the longest description lines since they were too long;
- Added a note about needing to force structure check by powering on the multi;
- Spotless.
  • Loading branch information
Steelux8 committed May 15, 2024
1 parent de72c6e commit 21e0b38
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,13 @@ protected GT_Multiblock_Tooltip_Builder createTooltip() {
tt.addMachineType("Chemical Engine").addInfo("Controller block for the Chemical Engine")
.addInfo("BURNING BURNING BURNING").addInfo("Use combustible liquid to generate power.")
.addInfo("You need to supply Combustion Promoter to keep it running.")
.addInfo("This engine will consume all the fuel and combustion promoter in the hatch every second.")
.addInfo("If the energy hatch's buffer fills up, the machine will explode due to accumulated energy!")
.addInfo("When turned on, the engine goes through a 10-second starting period which prevents explosions.")
.addInfo("Even if an explosion is prevented due to excess fuel, all the fuel in the hatch will be voided.")
.addInfo("It will consume all the fuel and promoter in the hatch every second.")
.addInfo("If the energy hatch's buffer fills up, the machine will explode!")
.addInfo("When turned on, there's 10-second starting period which prevents explosions.")
.addInfo("Even if an explosion is prevented, all the fuel in the hatch will be voided.")
.addInfo("The efficiency is determined by the proportion of Combustion Promoter to fuel.")
.addInfo("The proportion is bigger, and the efficiency will be higher.")
.addInfo("Start machine with power button to force structure check.")
.addInfo("It creates sqrt(Current Output Power) pollution every second")
.addInfo(
"If you forget to supply Combustion Promoter, this engine will swallow all the fuel "
Expand All @@ -201,9 +202,10 @@ protected GT_Multiblock_Tooltip_Builder createTooltip() {
+ ".")
.addInfo("The efficiency is up to 150%.").addInfo("The structure is too complex!")
.addInfo(BLUE_PRINT_INFO).addSeparator().beginStructureBlock(5, 4, 9, false)
.addMaintenanceHatch("Hint block with dot 1").addMufflerHatch("Hint block with dot 2 (fill all slots with mufflers)")
.addInputHatch("Hint block with dot 3 (fill all slots with input hatches)").addDynamoHatch("Hint block with dot 4")
.toolTipFinisher("Good Generator");
.addMaintenanceHatch("Hint block with dot 1")
.addMufflerHatch("Hint block with dot 2 (fill all slots with mufflers)")
.addInputHatch("Hint block with dot 3 (fill all slots with input hatches)")
.addDynamoHatch("Hint block with dot 4").toolTipFinisher("Good Generator");
return tt;
}

Expand Down Expand Up @@ -254,6 +256,7 @@ public void stopMachine() {
explosionSafetyTicks = 0;
super.stopMachine();
}

@Override
public boolean onRunningTick(ItemStack stack) {
super.onRunningTick(stack);
Expand All @@ -262,8 +265,7 @@ public boolean onRunningTick(ItemStack stack) {
if (explosionSafetyTicks < EXPLOSION_SAFETY_TIMER) {
explosionSafetyTicks++;
isExplosionSafe = true;
}
else if (isExplosionSafe) isExplosionSafe = false;
} else if (isExplosionSafe) isExplosionSafe = false;

if (this.getBaseMetaTileEntity().isServerSide()) {
addAutoEnergy();
Expand Down

0 comments on commit 21e0b38

Please sign in to comment.