X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Freports.c;h=2126a073f7d1c0c52425c116be31ea0c0af262c7;hb=f64ec9bab147284a99d86c81121232a300b28635;hp=665701e0abaa0d85a6b24f3487a9df9bc74bedd7;hpb=e3730bb826efe601fe51626aab064d395733d4c3;p=super-star-trek.git diff --git a/src/reports.c b/src/reports.c index 665701e..2126a07 100644 --- a/src/reports.c +++ b/src/reports.c @@ -227,6 +227,7 @@ void chart(int nn) proutn(" |"); if (iinhabited != UNINHABITED) + proutn("Major system %s", systemname(here)); + else + proutn("Sector is uninhabited"); + } + + break; + case 11: attakreport(1); break; } @@ -320,8 +331,9 @@ static void status(int req) int srscan(int l) { + /* the "sy" request is undocumented */ static char requests[][3] = - {"","da","co","po","ls","wa","en","to","sh","kl","ti"}; + {"","da","co","po","ls","wa","en","to","sh","kl","sy", "ti"}; int leftside=TRUE, rightside=TRUE, i, j, jj, req=0, nn=FALSE; int goodScan=TRUE; switch (l) { @@ -357,8 +369,8 @@ int srscan(int l) break; if (req > sizeof(requests)/sizeof(requests[0])) { prout("UNRECOGNIZED REQUEST. Legal requests are:"); - prout(" date, game.condition, position, lsupport, game.warpfactor,"); - prout(" energy, torpedoes, shields, klingons, time, bases."); + prout(" date, condition, position, lsupport, warpfactor,"); + prout(" energy, torpedoes, shields, klingons, time, system, bases."); return FALSE; } // no break @@ -514,7 +526,7 @@ void eta(void) prout("Unfortunately, the Federation will be destroyed by then."); if (twarp > 6.0) prout("You'll be taking risks at that speed, Captain"); - if ((game.isatb==1 && game.state.isy == ix1 && game.state.isx == iy1 && + if ((game.isatb==1 && game.state.isy == iy1 && game.state.isx == ix1 && game.future[FSCDBAS]< ttime+game.state.date)|| (game.future[FCDBAS]