]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/nuke.c
(land, nuke, plan, shi): Change stop prefix to `!'. Explain it in the
[empserver] / src / lib / commands / nuke.c
index bd106f6155e1e7c02581bb60c4953d3cef8ceab0..6c51498a4dc90a05cd3f39a3cddea30d7f73c9cf 100644 (file)
 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;
@@ -63,12 +63,14 @@ nuke(void)
                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);
@@ -85,8 +87,12 @@ nuke(void)
        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;
 }