]> git.pond.sub.org Git - empserver/commit
Change nuke storage and commands to match other units:
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 6 May 2006 07:20:21 +0000 (07:20 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 6 May 2006 07:20:21 +0000 (07:20 +0000)
commit2e40a4bb905b3867c9a606144614df6d39a90171
tree51eb32a9b84387b6401833464812609171b6404e
parente86beb9626d5b3d3d6f14c1b3fbf7fb04e458f4c
Change nuke storage and commands to match other units:
(nukstr): Hold one nuke instead of a stockpile: replace members nuk_n,
nuk_types by nuk_type, nuk_plane.  Add nuk_land for completeness, like
nuk_ship it's not yet used.
(nuke_ca): Update accordingly: replace selectors number and types by
type and plane.
(build_nuke): Update accordingly.
(ndump, nuke): Update accordingly.  Output is no longer sorted by
location, and nukes in same location no longer share id.  nuke's extra
columns for nuclear plants are repeated for every nuke.
(trade_desc): Update accordingly.
(cede, grab_sect, check_nuke_ok, detonate, trade_nameof): Talk about
nukes instead of nuclear stockpiles.
(arm, disarm): Rewrite, split off new disarm().  Don't remove nuke
from the nuke file on arm.  Allow usual plane syntax, not just plane
number.  Change second argument from nuke type to nuke number.  When
plane is already armed, ignore nuke argument and rearm (broken in
4.2.6).
(tran_nuke): Update for changed struct nukstr, make as similar as
possible to tran_plane.  Change syntax to match transport plane.
(player_coms): Update arm, disarm and transport accordingly.
(prnuke, nuk_on_plane): New.
(nuk_add, nuk_delete): Stockpile management, remove.
16 files changed:
include/nuke.h
include/prototypes.h
info/arm.t
info/transport.t
src/lib/commands/arm.c
src/lib/commands/buil.c
src/lib/commands/cede.c
src/lib/commands/ndump.c
src/lib/commands/nuke.c
src/lib/commands/tran.c
src/lib/common/check.c
src/lib/global/nsc.c
src/lib/player/empmod.c
src/lib/subs/detonate.c
src/lib/subs/nuke.c
src/lib/subs/trdsub.c