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.
This commit is contained in:
parent
e86beb9626
commit
2e40a4bb90
16 changed files with 220 additions and 293 deletions
|
@ -2,7 +2,7 @@
|
|||
.NA transport "Move planes or nuclear devices around"
|
||||
.LV Basic
|
||||
.SY "transport plane <PLANES> <ROUTE|DESTINATION>"
|
||||
.SY "transport nuke <SECT> <NUKETYPE> <number> <ROUTE|DESTINATION>"
|
||||
.SY "transport nuke <NUKES> <ROUTE|DESTINATION>"
|
||||
The transport command is used to move planes and nuclear devices from
|
||||
one sector to another, along the ground.
|
||||
.s1
|
||||
|
@ -11,8 +11,8 @@ one sector to another, along the ground.
|
|||
the route, and empire will use the cheapest path (in terms of mobility)
|
||||
from the current sector to the destination sector.
|
||||
.s1
|
||||
You would move 5 small nukes from 2,0 to 8,0 as follows:
|
||||
.EX transport nuke 2,0 small 5 8,0
|
||||
You would move nuke #666 to 8,0 as follows:
|
||||
.EX transport nuke 666 8,0
|
||||
.s1
|
||||
You could move all planes in wing d to -6,0 as follows:
|
||||
.EX transport plane d -6,0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue