]> git.pond.sub.org Git - empserver/commit
nsc: Expose generalized build materials in xdump and conditionals
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 30 May 2016 21:43:10 +0000 (23:43 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 17:59:56 +0000 (19:59 +0200)
commitfce3ecf49a4ade34d06fc9c5abaad7bdb9bddeaa
treeca0a8fd48ac430d05f23af67c389c6685a2bd70c
parentc93405f10d8ec56f11c581f72c9b9930bf944185
nsc: Expose generalized build materials in xdump and conditionals

Ship, plane, land unit and nuke types require lcms and hcms to build.
Planes also require military, and nukes also require oil and rads.
These build materials are exposed as ship-chr, plane-chr, land-chr,
nuke-chr selectors l_build, h_build, crew, o_build, r_build.

We want to optionally support more build materials in the future.  To
help clients prepare for that, provide selectors for all other item
types.  Use CA_DUMP_ONLY to keep them out of configuration tables
until they actually work.

Rename selector crew to m_build for consistency.  This is an xdump
compatibility break.  We could easily add m_build and deprecate crew
to provide the customary grace period for such breaks.  However, more
xdump changes are coming down the pipe, and for some of them providing
a grace period wouldn't be as easy.  Ron Koenderink assures us WinACE
doesn't need a grace period.  So don't bother with maintaining xdump
compatibility in this release.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/common/nsc.c
src/lib/global/plane.config
tests/version/journal.log