X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fai.c;h=67e748eeeaa2590991fad3c183f37e06b93aa7c9;hp=31d19ad13bdcf06293ab473679a9abfc09a817a5;hb=a6dfef86203ce8cf59806554ce0239c54a1264ec;hpb=2c5438d3c22fe863ad8054d214f2afdd061ad43a diff --git a/src/ai.c b/src/ai.c index 31d19ad..67e748e 100644 --- a/src/ai.c +++ b/src/ai.c @@ -263,7 +263,7 @@ static void movebaddy(coord com, int loccom, feature ienm) 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 @@ -363,7 +363,7 @@ static bool movescom(coord iq, bool avoid) game.state.planets[i].pclass = destroyed; game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET; if (!damaged(DRADIO) || game.condition == docked) { - pause_game(true); + announce(); prout(_("Lt. Uhura- \"Captain, Starfleet Intelligence reports")); proutn(_(" a planet in ")); proutn(cramlc(quadrant, game.state.kscmdr)); @@ -389,7 +389,7 @@ void supercommander(void) prout("== SUPERCOMMANDER"); /* Decide on being active or passive */ - avoid = ((NKILLC+NKILLK)/(game.state.date+0.01-game.indate) < 0.1*game.skill*(game.skill+1.0) || + avoid = ((game.incom - game.state.remcom + game.inkling - game.state.remkl)/(game.state.date+0.01-game.indate) < 0.1*game.skill*(game.skill+1.0) || (game.state.date-game.indate) < 3.0); if (!game.iscate && avoid) { /* compute move away from Enterprise */ @@ -525,7 +525,7 @@ void supercommander(void) if (damaged(DRADIO) && game.condition != docked) return; /* no warning */ game.iseenit = true; - pause_game(true); + announce(); proutn(_("Lt. Uhura- \"Captain, the starbase in ")); proutn(cramlc(quadrant, game.state.kscmdr)); skip(1); @@ -550,7 +550,7 @@ void supercommander(void) (damaged(DRADIO) && game.condition != docked) || !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 ")); proutn(cramlc(quadrant, game.state.kscmdr));