int
nuke(void)
{
- int nnukes;
+ int nnukes, noff;
struct nstr_item nstr;
struct nukstr nuk;
struct plnstr plane;
if (!snxtitem(&nstr, EF_NUKE, player->argp[1]))
return RET_SYN;
- nnukes = 0;
+ nnukes = noff = 0;
while (nxtitem(&nstr, &nuk)) {
if (!player->owner || nuk.nuk_own == 0)
continue;
pr("own ");
pr(" # nuke type x,y s eff tech carry burst\n");
}
+ if (nuk.nuk_off)
+ noff++;
if (player->god)
pr("%-3d ", nuk.nuk_own);
pr("%4d %-19.19s ", nstr.cur, nchr[(int)nuk.nuk_type].n_name);
prxy("%4d,%-4d", nuk.nuk_x, nuk.nuk_y, player->cnum);
pr(" %1.1s %c%3d%% %4d",
- &nuk.nuk_stockpile, nuk.nuk_off ? '=' : ' ', nuk.nuk_effic,
+ &nuk.nuk_stockpile, nuk.nuk_off ? '!' : ' ', nuk.nuk_effic,
nuk.nuk_tech);
if (nuk.nuk_plane >= 0) {
getplane(nuk.nuk_plane, &plane);
else
pr("%s: No nuke(s)\n", "");
return RET_FAIL;
- } else
- pr("%d nuke%s\n", nnukes, splur(nnukes));
+ } else {
+ pr("%d nuke%s", nnukes, splur(nnukes));
+ if (noff)
+ pr(", %d stopped (eff marked with !)", noff);
+ pr("\n");
+ }
return RET_OK;
}