game.say(`_Focus_, you remind yourself. _The engine is pretty but I've gotta fix that CO<sub>2</sub> filter before I'll have time to bother with this._`)
game.say(`Luckily the CO<sub>2</sub> filter operates independently to the rest of the ship's systems, so you can worry about that fixing first and then come back to the mainframe.`)
thrownewError(`You probably should restart the CO<sub>2</sub> filter before worrying about the mainframe.`)
if(currentPhase<Phase.examinedMainframe){
parser.runCommand(`take apart mainframe`)
thrownewError()
}
thrownewError(`The mainframe's engine control system is damaged, and will have to be repaired before you can bring it online. You believe you have a replacement part in the comms room.`)
game.say(`As you look up the stairway you catch a glimpse of light filtering down from above - must be near a star cluster you suppose. Not really any good way to know which one until you can bring the navigation systems back online.`)
game.say(`Okay, with the CO2 scrubber running again, the filter should last for at least a week - plenty of time to get the _Dawn_ back to a spaceport. If the engine issue isn't that bad, maybe she'll last you all the way back to Earth so you can collect your paycheck and do a proper diagnostic.`)
game.say(`Speaking of which, examining the engine is probably the next order of business - if it's gonna keep dropping out of hyperspace on you then this is going to be a long trip home.`)
mainframe.description=mainframe.description?.replace(/Of course.*/,`While the bulk of the mainframe is still there, you've currently taken apart the engine control systems. Looks like there's a faulty capacitor in the engine regulator board, and you'll have to get a replacement from the comms room locker.`)
game.clear()
game.say(`At first glance the mainframe is working as expected - you can bring up the internal atmospheric readings, the operation logs, and anything else that doesn't need engine power. The mainframe even kindly informs you there was some sort of anomalous power output from the engine before it cut from hyperjump, but when you try to bring the engine back online you hear a loud ***pop*** from behind the terminal and start to smell smoke.`)
game.pause()
game.clear()
game.say(`Upon further inspection, it looks like there's a faulty capacitor in the engine regulator board. That would explain the power anomalies - these sort of caps always act a bit weird before they blow completely.`)
game.say(`The _Dawn_ is old enough (and this issue is common with her model of ship) so you luckily have a spare capacitor or two in the comms room locker - although finding a way through the security doors might be a bit tricky.`)