(shp_mobcost): New.
(use_ammo, eta_calc, torp, fire_torp, perform_mission, retreat_ship1) (shp_sweep, shp_nav_one_sector, cost_ship): Use it. (perform_mission): Fix mobility cost of torpedo: charged full sector cost instead of half.
This commit is contained in:
parent
2cd8e99f49
commit
16b9c41b39
8 changed files with 18 additions and 54 deletions
|
@ -330,8 +330,7 @@ eta_calc(struct shpstr *sp, char *path, int *len, int *nupdates)
|
|||
*len = i;
|
||||
*nupdates = 1;
|
||||
|
||||
mobcost = sp->shp_effic * 0.01 * sp->shp_speed;
|
||||
mobcost = 480.0 / (mobcost + techfact(sp->shp_tech, mobcost));
|
||||
mobcost = shp_mobcost(sp);
|
||||
mobil = sp->shp_mobil;
|
||||
while (i) {
|
||||
if (mobil > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue