Section - Boiler Handle (Story Mode)
The boiler handle is a setpiece. [This only exists if we are in story mode; its a simplification of the system. Rather than having to give each element the correct amount of power, we just turn the handle towards the system we want to power.] The boiler handle has a pipe called pipe-position. The pipe-position of the boiler handle is the yellow pipe. The boiler handle can be functional or overloaded. The boiler handle is functional. The description of boiler handle is "It's a rounded length of wood that [if functional]can be turned to point to any of the three pipes, red, yellow, or blue[otherwise]could once be turned to point at any of the three pipes, but now just flops, uselessly[end if].". To say bh-desc: say "[if boiler handle is functional]turned to the [pipe-position of boiler handle][otherwise]tilted at an odd angle; all three pipes are now steaming hot to the touch and hissing[end if]".
Instead of pushing or turning the boiler handle when boiler handle is functional:
now saved-pyramid-power is pressure of yellow pipe;
now saved-bridge-power is pressure of red pipe;
now pressure of blue pipe is 0;
now pressure of red pipe is 0;
now pressure of yellow pipe is 0;
if pipe-position of boiler handle is yellow pipe begin;
now pipe-position of boiler handle is red pipe;
now pressure of red pipe is target pressure of bridge pressure gauge;
otherwise if pipe-position of boiler handle is red pipe;
now pipe-position of boiler handle is blue pipe;
now pressure of blue pipe is target pressure of ropeway pressure gauge;
otherwise if pipe-position of boiler handle is blue pipe;
now pipe-position of boiler handle is yellow pipe;
now pressure of yellow pipe is target pressure of pyramid pressure gauge;
end if;
say "You turn the handle so it points towards the [pipe-position of boiler handle].[paragraph break]The pipes groan, and the outflow [o]tube[x] changes[state of current outflow].";
if the psyche of Progue is resolved or Progue is dead, pipechangeending;
say pyramidupdate;
say bridgeupdate.
Instead of pushing or turning the boiler handle: say "Some great pressure seems to have broken something loose underneath the handle; it just turns freely now, without feeling as if it's connected to anything, letting steam flow fully into all three pipes.".