public void DisableEnableRoom(ShipLocations location, bool status) { roomsEnabled[location] = status; if (location == ShipLocations.Comms) { commsOnline = status; } }
public int CheckPowerRequirements(ShipLocations location) { if ((roomsPower [location] + calculatePowerConsumed()) > MAX_SHIP_POWER) { return(-1); } return(roomsPower [location]); }
public string CheckDisable(ShipLocations location) { if (location == ShipLocations.Garden) { if (realTimeElapsedInSeconds < 120) { realTimeElapsedInSeconds = 120; } return("Garden deactivated. Oxygen purification system is now offline.\nAuxiliary oxygen supply will be depleted in 2 minutes."); } else if (location == ShipLocations.Medical) { energyState = EnergyState.LOW; playerEnergy = 10; return("Medical systems deactivated. Extended life support system is now offline.\nAutomatic energy regeneration is now disabled."); } return(null); }