designate: Drop support for designate costing money
Chainsaw 3 added the designate cost along with extra build cost and
materials, and used both to make fortresses expensive. Unlike build
cost and materials, the cost to designate didn't pass the test of
time: it was set to zero in Empire 2. Get rid of it.
sect-chr selector cost and struct dchrstr member d_cost have to stay,
because they're still used to configure whether a sector may be
designated by players (see commit 8d792e1
).
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
9d6b3b3520
commit
ba2795fbf7
6 changed files with 23 additions and 37 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Known contributors to this file:
|
||||
* Steve McClure, 1998-2000
|
||||
* Markus Armbruster, 2004-2009
|
||||
* Markus Armbruster, 2004-2016
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -109,15 +109,6 @@ desi(void)
|
|||
if (sect.sct_type == SCT_SANCT && !player->god)
|
||||
continue;
|
||||
n = sect.sct_type;
|
||||
if ((sect.sct_newtype != des) && (sect.sct_type != des)
|
||||
&& dchr[des].d_cost > 0) {
|
||||
if (natp->nat_money < player->dolcost + dchr[des].d_cost) {
|
||||
pr("You can't afford a %s!\n", dchr[des].d_name);
|
||||
rc = RET_FAIL;
|
||||
break;
|
||||
}
|
||||
player->dolcost += dchr[des].d_cost;
|
||||
}
|
||||
if (sect.sct_type != des && (sect.sct_effic < 5 || player->god)) {
|
||||
if (player->god)
|
||||
set_coastal(§, sect.sct_type, des);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue