]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/ship.c
(SCT_BLD_WORK, SHP_BLD_WORK, PLN_BLD_WORK, LND_BLD_WORK,
[empserver] / src / lib / update / ship.c
index f8686ac86eac02260efef9d90f3e35f4b1174ce4..77abc4afc8bd00208fbad10bed5bac73fc527fe0 100644 (file)
@@ -299,7 +299,7 @@ shiprepair(register struct shpstr *ship, struct natstr *np,
            avail = wf + gt_bg_nmbr(bp, sp, I_MAX + 1) * 100;
     }
 
-    w_p_eff = 20 + (mp->m_lcm + 2 * mp->m_hcm);
+    w_p_eff = SHP_BLD_WORK(mp->m_lcm, mp->m_hcm);
 
     if ((sp->sct_off) && (sp->sct_own == ship->shp_own))
        return 1;