Let players stop/start units:
(genitem, lndstr, nukstr, plnstr, shpstr): New members off, lnd_off, nuk_off, pln_off, shp_off. (NSC_GENITEM): New selector off. (land, nuke, plan, shi): Display efficiency prefixed by `=' when off. (start, stop, player_coms): Rewrite, new syntax. Print only objects that actually change. (start_hdr, stop_hdr, start_stop_hdr): Consolidate. (item_u, start_stop, start_stop_sector, proff, start_stop_unit) (start_stop_unit_hdr, unit_type_name): New. (upd_land, upd_plane, planerepair, upd_ship): Obey and clear stoppage.
This commit is contained in:
parent
520446ef39
commit
eb1512d75f
22 changed files with 218 additions and 179 deletions
|
|
@ -60,15 +60,15 @@ plan(void)
|
|||
if (nplanes++ == 0) {
|
||||
if (player->god)
|
||||
pr("own ");
|
||||
pr(" # type x,y w eff mu def tech ran hard carry special\n");
|
||||
pr(" # type x,y w eff mu def tech ran hard carry special\n");
|
||||
}
|
||||
if (player->god)
|
||||
pr("%3d ", plane.pln_own);
|
||||
pr("%4d %-19.19s ", np.cur, plchr[(int)plane.pln_type].pl_name);
|
||||
prxy("%4d,%-4d", plane.pln_x, plane.pln_y, player->cnum);
|
||||
pr(" %1.1s %3d%% %3d %3d %4d %3d %3d",
|
||||
&plane.pln_wing, plane.pln_effic, plane.pln_mobil,
|
||||
plane.pln_def, plane.pln_tech,
|
||||
pr(" %1.1s %c%3d%% %3d %3d %4d %3d %3d",
|
||||
&plane.pln_wing, plane.pln_off ? '=' : ' ', plane.pln_effic,
|
||||
plane.pln_mobil, plane.pln_def, plane.pln_tech,
|
||||
plane.pln_range, plane.pln_harden);
|
||||
if (plane.pln_ship >= 0)
|
||||
pr("%5dS", plane.pln_ship);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue