New command show updates:

(show): New sub-command.
(player_coms): Update its c_form.
(show_updates, fmttime2822): New.

(vers): Show game_days and game_hours.

(upda): Mark obsolete and point to show updates.
(vers): Point to show rather than update.

Rewrite much of info zdone.
This commit is contained in:
Markus Armbruster 2007-07-15 13:34:22 +00:00
parent 87eeea32c9
commit a57645340c
12 changed files with 111 additions and 26 deletions

View file

@ -51,7 +51,7 @@ show(void)
int rlev;
if (!(p = getstarg(player->argp[1],
"Describe what (plane, nuke, bridge, ship, sect, land unit, tower, item)? ",
"Show what (bridge, item, land, nuke, plane, sect, ship, tower, updates)?",
buf))
|| !*p)
return RET_SYN;
@ -113,9 +113,13 @@ show(void)
cfunc = show_ship_capab;
}
break;
case 'u':
show_updates(player->argp[2] ? atoi(player->argp[2]) : 8);
return RET_OK;
default:
return RET_SYN;
}
if (!(p = getstarg(player->argp[2],
"Build, stats, or capability data (b,s,c)? ", buf))
|| !*p)

View file

@ -95,5 +95,7 @@ upda(void)
if (*game_hours != 0)
pr("Game hours are: %s\n", game_hours);
pr("\nThis command is obsolete and will go away in a future version.\n"
"Please use \"show updates\".");
return 0;
}

View file

@ -61,11 +61,15 @@ vers(void)
pr("By default, countries use %s coordinate system.\n",
(players_at_00) ? "the deity's" : "their own");
pr("\n");
pr("Use the 'update' command to find out the time of the next update.\n");
pr("Use the 'show' command to find out the time of the next update.\n");
pr("The current time is %19.19s.\n", ctime(&now));
pr("An update consists of %d empire time units.\n", etu_per_update);
pr("Each country is allowed to be logged in %d minutes a day.\n",
m_m_p_d);
if (*game_days != 0)
pr("Game days are %s\n", game_days);
if (*game_hours != 0)
pr("Game hours are %s\n", game_hours);
pr("It takes %.2f civilians to produce a BTU in one time unit.\n",
(1.0 / (btu_build_rate * 100.0)));
pr("\n");