-void shuttle(void) {
-
- chew();
- skip(1);
- if(game.damage[DSHUTTL] != 0.0) {
- if (game.damage[DSHUTTL] == -1.0) {
- if (inorbit && game.state.plnets[iplnet].known == shuttle_down)
- prout("Ye Faerie Queene has no shuttle craft bay to dock it at.");
- else
- prout("Ye Faerie Queene had no shuttle craft.");
- }
- else if (game.damage[DSHUTTL] > 0)
- prout("The Galileo is damaged.");
- else prout("Shuttle craft is now serving Big Macs.");
- return;
- }
- if (inorbit==0) {
- crmshp();
- prout(" not in standard orbit.");
- return;
- }
- if ((game.state.plnets[iplnet].known != shuttle_down) && iscraft != 1) {
- prout("Shuttle craft not currently available.");
- return;
- }
- if (landed==-1 && game.state.plnets[iplnet].known==shuttle_down) {
- prout("You will have to beam down to retrieve the shuttle craft.");
- return;
- }
- if (shldup!=0 || condit == IHDOCKED) {
- prout("Shuttle craft cannot pass through shields.");
- return;
- }
- if (game.state.plnets[iplnet].known==unknown) {
- prout("Spock- \"Captain, we have no information on this planet");
- prout(" and Starfleet Regulations clearly state that in this situation");
- prout(" you may not fly down.\"");
- return;
- }
- Time = 3.0e-5*height;
- if (Time >= 0.8*game.state.remtime) {
- prout("First Officer Spock- \"Captain, I compute that such");
- proutn(" a maneuver would require approximately 2d%% of our",
- (int)(100*Time/game.state.remtime));
- prout("remaining time.");
- proutn("Are you sure this is wise?\" ");
- if (ja()==0) {
- Time = 0.0;
- return;
- }
- }
- if (landed == 1) {
- /* Kirk on planet */
- if (iscraft==1) {
- /* Galileo on ship! */
- if (game.damage[DTRANSP]==0) {
- proutn("Spock- \"Would you rather use the transporter?\" ");
- if (ja() != 0) {
- beam();
- return;
- }
- proutn("Shuttle crew");
- }
- else
- proutn("Rescue party");
- prout(" boards Galileo and swoops toward planet surface.");
- iscraft = 0;
- skip(1);
- if (consumeTime()) return;
- game.state.plnets[iplnet].known=shuttle_down;
- prout("Trip complete.");
- return;
- }
- else {
- /* Ready to go back to ship */
- prout("You and your mining party board the");
- prout("shuttle craft for the trip back to the Enterprise.");
- skip(1);
- prout("The short hop begins . . .");
- game.state.plnets[iplnet].known=known;
- icraft = 1;
- skip(1);
- landed = -1;
- if (consumeTime()) return;
- iscraft = 1;
- icraft = 0;
- if (imine!=0) {
- icrystl = 1;
- cryprob = 0.05;
- }
- imine = 0;
- prout("Trip complete.");
- return;
+void shuttle(void)
+{
+ chew();
+ skip(1);
+ if(game.damage[DSHUTTL] != 0.0) {
+ if (game.damage[DSHUTTL] == -1.0) {
+ if (inorbit && game.state.plnets[iplnet].known == shuttle_down)
+ prout("Ye Faerie Queene has no shuttle craft bay to dock it at.");
+ else
+ prout("Ye Faerie Queene had no shuttle craft.");
+ }
+ else if (game.damage[DSHUTTL] > 0)
+ prout("The Galileo is damaged.");
+ else prout("Shuttle craft is now serving Big Macs.");
+ return;
+ }
+ if (inorbit==0) {
+ crmshp();
+ prout(" not in standard orbit.");
+ return;
+ }
+ if ((game.state.plnets[iplnet].known != shuttle_down) && iscraft != 1) {
+ prout("Shuttle craft not currently available.");
+ return;
+ }
+ if (landed==-1 && game.state.plnets[iplnet].known==shuttle_down) {
+ prout("You will have to beam down to retrieve the shuttle craft.");
+ return;
+ }
+ if (shldup!=0 || condit == IHDOCKED) {
+ prout("Shuttle craft cannot pass through shields.");
+ return;
+ }
+ if (game.state.plnets[iplnet].known==unknown) {
+ prout("Spock- \"Captain, we have no information on this planet");
+ prout(" and Starfleet Regulations clearly state that in this situation");
+ prout(" you may not fly down.\"");
+ return;
+ }
+ Time = 3.0e-5*game.height;
+ if (Time >= 0.8*game.state.remtime) {
+ prout("First Officer Spock- \"Captain, I compute that such");
+ proutn(" a maneuver would require approximately 2d%% of our",
+ (int)(100*Time/game.state.remtime));
+ prout("remaining time.");
+ proutn("Are you sure this is wise?\" ");
+ if (ja()==0) {
+ Time = 0.0;
+ return;
+ }
+ }
+ if (landed == 1) {
+ /* Kirk on planet */
+ if (iscraft==1) {
+ /* Galileo on ship! */
+ if (game.damage[DTRANSP]==0) {
+ proutn("Spock- \"Would you rather use the transporter?\" ");
+ if (ja() != 0) {
+ beam();
+ return;