thrownewError(`You do not have the proper tools to take this apart.`)
constcurrentPhase=game.getProperty('gamePhase')
if(currentPhase<Phase.fixedLifeSupport)
thrownewError(`You should take care of the CO<sub>2</sub> scrubber before you get distracted taking things apart.`)
if(currentPhase<Phase.destroyedChair){
if(game.hasProperty('examinedMainframe')){
game.say(`The chair's center leg should give you enough leverage to force open the security door, but as you finish taking it apart you remember something that bothers you: if you're not mistaken, that regulator board was brand new. Even when they've gone bad in the past you've usually been able to get a good week or two of use out of them before they failed completely, so seeing one fail this early is definitely unusual.`)
game.say(`You can't remember for sure if that board was replaced in the last refit though, and you'd have to check the work log Wren gave you to be sure. You try to push that idea aside for now - no sense in worrying about it now.`)
}else{
game.say(`Twisting the bolts out of place, you are soon left with one long metal rod, and a small pile of miscelaneous pieces.`)
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.`)
if(!game.hasProperty('examinedMainframe'))
game.createProperty('examinedMainframe',true)
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.`)