]> git.pond.sub.org Git - empserver/commit
config: Make work to build units independently configurable
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 27 May 2016 11:39:11 +0000 (13:39 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 12:04:32 +0000 (14:04 +0200)
commit68c7c08a5890a75476d014f3b782c1a165a4c940
treeab01de9e295ae33528f7443d4f91374c5fc3a7ed
parent14af586b5701e5496b39f8b8fd319fbaae108c6a
config: Make work to build units independently configurable

The work required for build and repairs is traditionally a function of
build materials: 20 + lcm + 2*hcm for ships, planes and land units,
and (lcm + 2*hcm + oil + rad)/5 for nukes.  Make it independently
configurable instead, via new ship-chr, plane-chr, land-chr, nuke-chr
selector bwork, backed by new struct mchrstr member m_bwork, struct
plchrstr member pl_bwork, struct lchrstr member l_bwork, struct
nchrstr member n_bwork.  Keep the required work exactly the same for
now.

Clients that compute work from materials need to be updated.  Easy,
since build work is now exposed in xdump.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
19 files changed:
include/land.h
include/nuke.h
include/plane.h
include/ship.h
info/build.t
src/lib/commands/buil.c
src/lib/commands/upgr.c
src/lib/common/nsc.c
src/lib/global/land.config
src/lib/global/nuke.config
src/lib/global/plane.config
src/lib/global/ship.config
src/lib/subs/show.c
src/lib/update/land.c
src/lib/update/plane.c
src/lib/update/ship.c
tests/empdump/errors.err
tests/empdump/xundump-errors/fld-ambsym
tests/version/journal.log