convert shoot: Make security bonus proportional to efficiency
Land units with capability security reduce the mobility cost and have their military count double, regardless of efficiency. This lets players get the benefits of a security unit at a discount: just don't build it beyond 10%. Count security unit's military times 1 + eff/100 instead of double. Change the mobility bonus term from number of security units to sum of security unit efficiency / 100. Partial fix for bug#64. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
ffd6651f86
commit
3c1c68f16d
4 changed files with 26 additions and 25 deletions
|
@ -399,7 +399,7 @@ extern int check_trade_ok(struct trdstr *);
|
|||
/* coastal.c */
|
||||
extern void set_coastal(struct sctstr *, int, int);
|
||||
/* control.c */
|
||||
extern int security_strength(struct sctstr *, int *);
|
||||
extern double security_strength(struct sctstr *, int *);
|
||||
extern int military_control(struct sctstr *);
|
||||
extern int abandon_askyn(struct sctstr *, i_type, int, struct ulist *);
|
||||
extern int would_abandon(struct sctstr *, i_type, int, struct ulist *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue