config: Generalize unit build materials storage
Use a single array member instead of multiple scalar members. Only the array elements that replace scalar members are can be non-zero for now. This is a first step to permitting more build materials. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
68c7c08a58
commit
da05484d8b
17 changed files with 79 additions and 100 deletions
|
@ -239,7 +239,7 @@ pln_newlanding(struct emp_qelem *list, coord tx, coord ty, int cno)
|
|||
cname(player->cnum), prplane(&plp->plane),
|
||||
prship(&ship));
|
||||
}
|
||||
if (plp->pcp->pl_crew && plp->pstage == PLG_INFECT
|
||||
if (plp->pcp->pl_mat[I_MILIT] && plp->pstage == PLG_INFECT
|
||||
&& ship.shp_pstage == PLG_HEALTHY)
|
||||
ship.shp_pstage = PLG_EXPOSED;
|
||||
}
|
||||
|
@ -253,7 +253,7 @@ pln_newlanding(struct emp_qelem *list, coord tx, coord ty, int cno)
|
|||
cname(player->cnum),
|
||||
prplane(&plp->plane), xyas(tx, ty, sect.sct_own));
|
||||
}
|
||||
if (plp->pcp->pl_crew && plp->pstage == PLG_INFECT
|
||||
if (plp->pcp->pl_mat[I_MILIT] && plp->pstage == PLG_INFECT
|
||||
&& sect.sct_pstage == PLG_HEALTHY)
|
||||
sect.sct_pstage = PLG_EXPOSED;
|
||||
plp->plane.pln_ship = cno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue