if (!damaged(DSRSENS) || game.condition == docked) {
proutn("***");
cramen(ienm);
- proutn(_(" from %s"), cramlc(2, com));
+ proutn(_(" from %s"), cramlc(sector, com));
if (game.kdist[loccom] < dist1)
proutn(_(" advances to "));
else
return game.future[evtype].date != FOREVER;
}
-extern double scheduled(int evtype)
+double scheduled(int evtype)
/* when will this event happen? */
{
return game.future[evtype].date;
}
void postpone(int evtype, double offset)
-/* poistpone a scheduled event */
+/* postpone a scheduled event */
{
game.future[evtype].date += offset;
}
case FSCDBAS: proutn("=== SC Base Destroy "); break;
case FDSPROB: proutn("=== Probe Move "); break;
case FDISTR: proutn("=== Distress Call "); break;
- case FENSLV: proutn("=== Enlavement "); break;
+ case FENSLV: proutn("=== Enslavement "); break;
case FREPRO: proutn("=== Klingon Build "); break;
}
if (is_scheduled(i))
case FSPY: /* Check with spy to see if S.C. should tractor beam */
if (game.state.nscrem == 0 ||
ictbeam || istract ||
- game.condition==docked || game.isatb==1 || game.iscate) return;
+ game.condition==docked || game.isatb==1 || game.iscate)
+ return;
if (game.ientesc ||
(game.energy < 2000 && game.torps < 4 && game.shield < 1250) ||
(damaged(DPHASER) && (damaged(DPHOTON) || game.torps < 4)) ||
#define FOREVER 1e30
/* Define future events */
-#define FSPY 0 // Spy event happens always (no future[] entry)
- // can cause SC to tractor beam Enterprise
+#define FSPY 0 // Spy event happens always (no future[] entry)
+ // can cause SC to tractor beam Enterprise
#define FSNOVA 1 // Supernova
#define FTBEAM 2 // Commander tractor beams Enterprise
#define FSNAP 3 // Snapshot for time warp
game.state.planets[i].pclass = destroyed
game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET
if not damaged(DRADIO) or game.condition == docked:
- pause_game(True)
+ announce()
prout(_("Lt. Uhura- \"Captain, Starfleet Intelligence reports"))
proutn(_(" a planet in Quadrant %s has been destroyed") % game.state.kscmdr)
prout(_(" by the Super-commander.\""))
if damaged(DRADIO) and game.condition != docked:
return; # no warning
game.iseenit = True
- pause_game(True)
+ announce()
prout(_("Lt. Uhura- \"Captain, the starbase in Quadrant %s") \
% game.state.kscmdr)
prout(_(" reports that it is under attack from the Klingon Super-commander."))
(damaged(DRADIO) and game.condition != docked) or \
not game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].charted):
return
- pause_game(True)
+ announce()
prout(_("Lt. Uhura- \"Captain, Starfleet Intelligence reports"))
proutn(_(" the Super-commander is in Quadrant %s,") % game.state.kscmdr)
return;
game.shldup = False
prout(_("***Shields are down."))
if game.state.remkl + game.state.remcom + game.state.nscrem:
- pause_game(True)
+ announce()
damagereport()
else:
finish(FWON)