empserver/src/lib/commands
Markus Armbruster e8451c7343 power: Include sector materials and cost in power factor
Building sectors can make you rate *lower* on the power chart, because
the power factor treats all sectors the same, regardless of build
materials and cost.

To avoid that, replace the term

   efficiency / 10.0

by

   (power value of materials + power value of cost + 9)
   * efficiency/100.0

The value of ordinary sectors, which take no materials and cost $100,
doesn't change.  The stock game's fortress is now worth 80% more due
to its materials and higher cost.  The stock game's wilderness is
worth 10% less, because it costs nothing.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2017-08-06 19:59:58 +02:00
..
acce.c Update copyright notice 2017-07-02 17:45:44 +02:00
add.c Update copyright notice 2017-07-02 17:45:44 +02:00
anti.c Update copyright notice 2017-07-02 17:45:44 +02:00
arm.c Update copyright notice 2017-07-02 17:45:44 +02:00
army.c Update copyright notice 2017-07-02 17:45:44 +02:00
assa.c Update copyright notice 2017-07-02 17:45:44 +02:00
atta.c Update copyright notice 2017-07-02 17:45:44 +02:00
bdes.c Update copyright notice 2017-07-02 17:45:44 +02:00
best.c Update copyright notice 2017-07-02 17:45:44 +02:00
boar.c Update copyright notice 2017-07-02 17:45:44 +02:00
bomb.c bomb: Simplify after previous commit 2017-08-06 19:59:56 +02:00
brea.c Update copyright notice 2017-07-02 17:45:44 +02:00
budg.c update: Lift populace() from tax into prepare_sects() 2017-08-06 19:59:57 +02:00
buil.c config: Generalize unit build materials storage 2017-08-06 14:05:11 +02:00
buy.c Update copyright notice 2017-07-02 17:45:44 +02:00
capi.c Update copyright notice 2017-07-02 17:45:44 +02:00
carg.c Update copyright notice 2017-07-02 17:45:44 +02:00
cens.c Update copyright notice 2017-07-02 17:45:44 +02:00
chan.c Update copyright notice 2017-07-02 17:45:44 +02:00
coas.c Update copyright notice 2017-07-02 17:45:44 +02:00
coll.c Update copyright notice 2017-07-02 17:45:44 +02:00
comm.c Update copyright notice 2017-07-02 17:45:44 +02:00
cons.c Update copyright notice 2017-07-02 17:45:44 +02:00
conv.c Update copyright notice 2017-07-02 17:45:44 +02:00
coun.c Update copyright notice 2017-07-02 17:45:44 +02:00
cuto.c Update copyright notice 2017-07-02 17:45:44 +02:00
decl.c Update copyright notice 2017-07-02 17:45:44 +02:00
deli.c Update copyright notice 2017-07-02 17:45:44 +02:00
demo.c Update copyright notice 2017-07-02 17:45:44 +02:00
desi.c config: Add sect-chr flags, replace cost by flag "deity" 2017-08-06 19:59:58 +02:00
disa.c Update copyright notice 2017-07-02 17:45:44 +02:00
dist.c Update copyright notice 2017-07-02 17:45:44 +02:00
drop.c Update copyright notice 2017-07-02 17:45:44 +02:00
dump.c Update copyright notice 2017-07-02 17:45:44 +02:00
echo.c Update copyright notice 2017-07-02 17:45:44 +02:00
edit.c edit: Add editing of land unit plague 2017-08-06 14:04:08 +02:00
enab.c Update copyright notice 2017-07-02 17:45:44 +02:00
enli.c Update copyright notice 2017-07-02 17:45:44 +02:00
expl.c Update copyright notice 2017-07-02 17:45:44 +02:00
fina.c Update copyright notice 2017-07-02 17:45:44 +02:00
flash.c Update copyright notice 2017-07-02 17:45:44 +02:00
flee.c Update copyright notice 2017-07-02 17:45:44 +02:00
fly.c Update copyright notice 2017-07-02 17:45:44 +02:00
forc.c Update copyright notice 2017-07-02 17:45:44 +02:00
fort.c Update copyright notice 2017-07-02 17:45:44 +02:00
give.c Update copyright notice 2017-07-02 17:45:44 +02:00
grin.c Update copyright notice 2017-07-02 17:45:44 +02:00
hard.c Update copyright notice 2017-07-02 17:45:44 +02:00
head.c Update copyright notice 2017-07-02 17:45:44 +02:00
improve.c Update copyright notice 2017-07-02 17:45:44 +02:00
info.c Update copyright notice 2017-07-02 17:45:44 +02:00
land.c Update copyright notice 2017-07-02 17:45:44 +02:00
laun.c Update copyright notice 2017-07-02 17:45:44 +02:00
lboard.c Update copyright notice 2017-07-02 17:45:44 +02:00
ldump.c Update copyright notice 2017-07-02 17:45:44 +02:00
ledg.c Update copyright notice 2017-07-02 17:45:44 +02:00
leve.c Update copyright notice 2017-07-02 17:45:44 +02:00
load.c Update copyright notice 2017-07-02 17:45:44 +02:00
look.c llook: Drop useless "spy loaded" conditional 2017-07-02 17:45:44 +02:00
lost.c Update copyright notice 2017-07-02 17:45:44 +02:00
lstat.c Update copyright notice 2017-07-02 17:45:44 +02:00
lten.c Update copyright notice 2017-07-02 17:45:44 +02:00
map.c Update copyright notice 2017-07-02 17:45:44 +02:00
marc.c Update copyright notice 2017-07-02 17:45:44 +02:00
mark.c Update copyright notice 2017-07-02 17:45:44 +02:00
mfir.c fire: Fix damage and ammunition use of return fire 2017-07-02 17:45:44 +02:00
mine.c Update copyright notice 2017-07-02 17:45:44 +02:00
miss.c plnsub: Add missing newline to two messages 2017-08-06 14:03:09 +02:00
mora.c Update copyright notice 2017-07-02 17:45:44 +02:00
move.c Update copyright notice 2017-07-02 17:45:44 +02:00
name.c Update copyright notice 2017-07-02 17:45:44 +02:00
nati.c Update copyright notice 2017-07-02 17:45:44 +02:00
navi.c Update copyright notice 2017-07-02 17:45:44 +02:00
ndump.c Update copyright notice 2017-07-02 17:45:44 +02:00
new.c Update copyright notice 2017-07-02 17:45:44 +02:00
newe.c neweff prod work: Use update code instead of duplicating it 2017-08-06 19:59:57 +02:00
news.c Update copyright notice 2017-07-02 17:45:44 +02:00
nuke.c Update copyright notice 2017-07-02 17:45:44 +02:00
offe.c Update copyright notice 2017-07-02 17:45:44 +02:00
orig.c Update copyright notice 2017-07-02 17:45:44 +02:00
para.c Update copyright notice 2017-07-02 17:45:44 +02:00
path.c Update copyright notice 2017-07-02 17:45:44 +02:00
payo.c Update copyright notice 2017-07-02 17:45:44 +02:00
pboa.c Update copyright notice 2017-07-02 17:45:44 +02:00
pdump.c Update copyright notice 2017-07-02 17:45:44 +02:00
peek.c Update copyright notice 2017-07-02 17:45:44 +02:00
plan.c Update copyright notice 2017-07-02 17:45:44 +02:00
play.c Update copyright notice 2017-07-02 17:45:44 +02:00
powe.c power: Include sector materials and cost in power factor 2017-08-06 19:59:58 +02:00
prod.c neweff prod work: Use update code instead of duplicating it 2017-08-06 19:59:57 +02:00
pstat.c Update copyright notice 2017-07-02 17:45:44 +02:00
rada.c Update copyright notice 2017-07-02 17:45:44 +02:00
rang.c Update copyright notice 2017-07-02 17:45:44 +02:00
rea.c Update copyright notice 2017-07-02 17:45:44 +02:00
real.c Update copyright notice 2017-07-02 17:45:44 +02:00
reco.c Update copyright notice 2017-07-02 17:45:44 +02:00
reje.c Update copyright notice 2017-07-02 17:45:44 +02:00
rela.c Update copyright notice 2017-07-02 17:45:44 +02:00
relo.c Update copyright notice 2017-07-02 17:45:44 +02:00
repa.c Update copyright notice 2017-07-02 17:45:44 +02:00
repo.c Update copyright notice 2017-07-02 17:45:44 +02:00
rese.c Update copyright notice 2017-07-02 17:45:44 +02:00
reso.c Update copyright notice 2017-07-02 17:45:44 +02:00
retr.c Update copyright notice 2017-07-02 17:45:44 +02:00
rout.c Update copyright notice 2017-07-02 17:45:44 +02:00
sabo.c Update copyright notice 2017-07-02 17:45:44 +02:00
sate.c Update copyright notice 2017-07-02 17:45:44 +02:00
scra.c config: Generalize unit build materials storage 2017-08-06 14:05:11 +02:00
scut.c Update copyright notice 2017-07-02 17:45:44 +02:00
sdump.c Update copyright notice 2017-07-02 17:45:44 +02:00
sect.c Update copyright notice 2017-07-02 17:45:44 +02:00
sell.c Update copyright notice 2017-07-02 17:45:44 +02:00
set.c Update copyright notice 2017-07-02 17:45:44 +02:00
setres.c Update copyright notice 2017-07-02 17:45:44 +02:00
setsect.c Update copyright notice 2017-07-02 17:45:44 +02:00
shar.c Update copyright notice 2017-07-02 17:45:44 +02:00
shark.c Update copyright notice 2017-07-02 17:45:44 +02:00
shi.c Update copyright notice 2017-07-02 17:45:44 +02:00
shoo.c Update copyright notice 2017-07-02 17:45:44 +02:00
show.c Update copyright notice 2017-07-02 17:45:44 +02:00
shut.c Update copyright notice 2017-07-02 17:45:44 +02:00
sinf.c Update copyright notice 2017-07-02 17:45:44 +02:00
skyw.c Update copyright notice 2017-07-02 17:45:44 +02:00
sona.c Update copyright notice 2017-07-02 17:45:44 +02:00
spy.c Update copyright notice 2017-07-02 17:45:44 +02:00
sstat.c Update copyright notice 2017-07-02 17:45:44 +02:00
stoc.c Update copyright notice 2017-07-02 17:45:44 +02:00
stop.c Update copyright notice 2017-07-02 17:45:44 +02:00
stre.c Update copyright notice 2017-07-02 17:45:44 +02:00
strv.c Update copyright notice 2017-07-02 17:45:44 +02:00
supp.c Update copyright notice 2017-07-02 17:45:44 +02:00
surv.c Update copyright notice 2017-07-02 17:45:44 +02:00
swap.c Update copyright notice 2017-07-02 17:45:44 +02:00
tele.c Update copyright notice 2017-07-02 17:45:44 +02:00
tend.c Update copyright notice 2017-07-02 17:45:44 +02:00
terr.c Update copyright notice 2017-07-02 17:45:44 +02:00
testing.c Update copyright notice 2017-07-02 17:45:44 +02:00
thre.c Update copyright notice 2017-07-02 17:45:44 +02:00
togg.c Update copyright notice 2017-07-02 17:45:44 +02:00
torp.c Update copyright notice 2017-07-02 17:45:44 +02:00
trad.c Update copyright notice 2017-07-02 17:45:44 +02:00
tran.c transport: Don't hardcode material weights 2017-08-06 19:59:56 +02:00
turn.c Update copyright notice 2017-07-02 17:45:44 +02:00
upda.c Update copyright notice 2017-07-02 17:45:44 +02:00
upgr.c config: Make work to build units independently configurable 2017-08-06 14:04:32 +02:00
vers.c Update copyright notice 2017-07-02 17:45:44 +02:00
wing.c Update copyright notice 2017-07-02 17:45:44 +02:00
wipe.c Update copyright notice 2017-07-02 17:45:44 +02:00
work.c neweff prod work: Use update code instead of duplicating it 2017-08-06 19:59:57 +02:00
xdump.c nsc: Replace NSC_EXTRA, NSC_CONST by enum ca_dump 2017-08-06 19:59:56 +02:00
zdon.c Update copyright notice 2017-07-02 17:45:44 +02:00