height = (1400.+7200.*Rand());
prout("Sulu- \"Entered orbit at altitude %.2f kilometers.\"", height);
inorbit = 1;
-#ifdef SERGEEV
ididit=1;
-#endif /* SERGEEV */
}
void sensor(void) {
-#ifdef SERGEEV
- if (game.damage[DSRSENS] != 0.0) return;
- if ((plnetx != 0)&&(game.state.plnets[iplnet].known == 0)) {
-#else
skip(1);
chew();
if (game.damage[DSRSENS] != 0.0) {
return;
}
if (plnetx == 0) {
- prout("No planet in this quadrant.");
- return;
+ prout("Spock- \"No planet in this quadrant, Captain.\"");
+ return;
+ }
+ if ((plnetx != 0)&&(game.state.plnets[iplnet].known == 0)) {
+ prout("Spock- \"Sensor scan for %s-", cramlc(quadrant, quadx, quady));
+ skip(1);
+ prout(" Planet at %s is of class %s.",
+ cramlc(sector, plnetx, plnety),
+ classes[game.state.plnets[iplnet].pclass]);
+ if (game.state.plnets[iplnet].known==shuttle_down)
+ prout(" Sensors show Galileo still on surface.");
+ proutn(" Readings indicate");
+ if (game.state.plnets[iplnet].crystals == 0) proutn(" no");
+ prout(" dilithium crystals present.\"");
+ if (game.state.plnets[iplnet].known == unknown) game.state.plnets[iplnet].known = known;
}
-#endif /* SERGEEV */
- prout("Spock- \"Sensor scan for %s-", cramlc(quadrant, quadx, quady));
- skip(1);
- prout(" Planet at %s is of class %s.",
- cramlc(sector, plnetx, plnety),
- classes[game.state.plnets[iplnet].pclass]);
- if (game.state.plnets[iplnet].known==shuttle_down)
- prout(" Sensors show Galileo still on surface.");
- proutn(" Readings indicate");
- if (game.state.plnets[iplnet].crystals == 0) proutn(" no");
- prout(" dilithium crystals present.\"");
- if (game.state.plnets[iplnet].known == unknown) game.state.plnets[iplnet].known = known;
-#ifdef SERGEEV
- }
-#endif /* SERGEEV */
}
void beam(void) {
skip(1);
prout("Kirk- \"Energize.\"");
}
-#ifdef SERGEEV
ididit=1;
-#endif /* SERGEEV */
skip(1);
prouts("WWHOOOIIIIIRRRRREEEE.E.E. . . . . . .");
skip(2);
if (consumeTime()) return;
prout("Mining operation complete.");
imine = 1;
-#ifdef SERGEEV
ididit=1;
-#endif /* SERGEEV */
}
void usecrystals(void) {
prout(" are going crazy, but I think it's");
prout(" going to work!! Congratulations, Sir!\"");
cryprob *= 2.0;
-#ifdef SERGEEV
ididit=1;
-#endif /* SERGEEV */
}
void shuttle(void) {