]> git.pond.sub.org Git - empserver/commit
Make land unit attack mobility cost consistent with march cost:
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 13 Jun 2006 20:29:47 +0000 (20:29 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 13 Jun 2006 20:29:47 +0000 (20:29 +0000)
commit2e693275f16254b7bf07d6069b4c6da7a21bbb47
treeb9787f30814f52007e1a6205ac339029d94d23c4
parentbcd35e15fb3d877246325a329f476f6bbb6e1209
Make land unit attack mobility cost consistent with march cost:
(att_mobcost): New.
(ask_olist, take_move_in_mob): Use it.  Attacking land units can now
use roads and suffer the newly taken penalty.  No difference in most
cases, because the penalty commonly cancels the road bonus.
(get_mob_support, calc_mobcost, ask_move_in_off): Use it.  No
functional change now; ensures that military's attack mobility cost
will stay consistent with move cost.
(MOB_NONE): Unused, remove.
(sector_mcost): Simplify.
include/sect.h
src/lib/common/move.c
src/lib/subs/attsub.c