]> git.pond.sub.org Git - empserver/commit - include/nuke.h
(SCT_BLD_WORK, SHP_BLD_WORK, PLN_BLD_WORK, LND_BLD_WORK,
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 15 May 2004 13:23:39 +0000 (13:23 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 15 May 2004 13:23:39 +0000 (13:23 +0000)
commit17494e74d1a703c65d2feacbeb695c02ce4e6bd7
treef82321851e89a392c521b3fde6798983a4383ec4
parent3d5e881ae44f8748fe990920d6bd0e0a23f21254
(SCT_BLD_WORK, SHP_BLD_WORK, PLN_BLD_WORK, LND_BLD_WORK,
NUK_BLD_WORK): New, to encapsulate the formula in one place.

(SCT_MINEFF): New.  Use it instead of literal 20.

(buil): Use CANT_HAPPEN() for internal error.

(build_ship, build_land, build_bridge, build_nuke, build_plane,
build_tower): Simplify avail calculation.

(lupgr, supgr, pupgr): Charge 15% of total build avail instead of an
undocumented amount computed from build lcm and hcm.

(build_ship, build_land, build_bridge, build_nuke, build_plane,
build_tower, lupgr, supgr, pupgr): Fix reporting of required avail
when there's not enough.  Closes #942823.

(lupgr, supgr, pupgr): Code printed cost rounded down, but required
and charged unrounded cost.  Confusing.  Round cost down, like the
build command.  Closes #942811.

(UPGR_COST, UPGR_EFF, lupgr, supgr, pupgr): New UPGR_COST, UPGR_COST replace
literal values.

(show_bridge, show_tower): Don't claim bridge building requires
`workers' (whatever that is), since it doesn't.
14 files changed:
include/land.h
include/nuke.h
include/plane.h
include/sect.h
include/ship.h
src/lib/commands/bomb.c
src/lib/commands/buil.c
src/lib/commands/upgr.c
src/lib/common/sectdamage.c
src/lib/subs/sect.c
src/lib/subs/show.c
src/lib/update/land.c
src/lib/update/plane.c
src/lib/update/ship.c