Lines Matching refs:pgoal
557 const struct advance *pgoal = valid_advance_by_number(goal); in research_goal_step() local
559 if (NULL == pgoal in research_goal_step()
564 advance_req_iterate(pgoal, preq) { in research_goal_step()
587 const struct advance *pgoal = valid_advance_by_number(goal); in research_goal_unknown_techs() local
589 if (NULL == pgoal) { in research_goal_unknown_techs()
594 return pgoal->num_reqs; in research_goal_unknown_techs()
609 const struct advance *pgoal = valid_advance_by_number(goal); in research_goal_bulbs_required() local
611 if (NULL == pgoal) { in research_goal_bulbs_required()
616 return game.info.base_tech_cost * pgoal->num_reqs in research_goal_bulbs_required()
617 * (pgoal->num_reqs + 1) / 2; in research_goal_bulbs_required()
621 advance_req_iterate(pgoal, preq) { in research_goal_bulbs_required()
637 const struct advance *pgoal, *ptech; in research_goal_tech_req() local
640 || NULL == (pgoal = valid_advance_by_number(goal)) in research_goal_tech_req()
646 advance_req_iterate(pgoal, preq) { in research_goal_tech_req()