External use of prod_materials_cost(), prod_resource_limit() went away
in commit
4a714a37d "production: Use update code instead of
duplicating it", v4.4.0.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
/* produce.c */
extern void produce(struct natstr *, struct sctstr *);
extern double prod_output(struct sctstr *, double);
/* produce.c */
extern void produce(struct natstr *, struct sctstr *);
extern double prod_output(struct sctstr *, double);
-extern double prod_materials_cost(struct pchrstr *, short[], int *);
-extern double prod_resource_limit(struct pchrstr *, unsigned char *);
extern double prod_eff(int, float);
/* removewants.c */
extern int update_removewants(void);
extern double prod_eff(int, float);
/* removewants.c */
extern int update_removewants(void);
* produce.c: Produce goodies
*
* Known contributors to this file:
* produce.c: Produce goodies
*
* Known contributors to this file:
- * Markus Armbruster, 2004-2016
+ * Markus Armbruster, 2004-2021
#include "prototypes.h"
#include "update.h"
#include "prototypes.h"
#include "update.h"
+static double prod_materials_cost(struct pchrstr *, short[], int *);
static void materials_charge(struct pchrstr *, short *, double);
static void materials_charge(struct pchrstr *, short *, double);
+static double prod_resource_limit(struct pchrstr *, unsigned char *);
static char *levelnames[] = {
"Technology", "Research", "Education", "Happiness"
static char *levelnames[] = {
"Technology", "Research", "Education", "Happiness"
* Return how much of product @pp can be made from materials @vec[].
* Store amount of work per unit in *@costp.
*/
* Return how much of product @pp can be made from materials @vec[].
* Store amount of work per unit in *@costp.
*/
prod_materials_cost(struct pchrstr *pp, short vec[], int *costp)
{
double count, n;
prod_materials_cost(struct pchrstr *pp, short vec[], int *costp)
{
double count, n;
* Return how much of product @pp can be made from its resource.
* If @pp depletes a resource, @resource must point to its value.
*/
* Return how much of product @pp can be made from its resource.
* If @pp depletes a resource, @resource must point to its value.
*/
prod_resource_limit(struct pchrstr *pp, unsigned char *resource)
{
if (CANT_HAPPEN(pp->p_nrndx && !resource))
prod_resource_limit(struct pchrstr *pp, unsigned char *resource)
{
if (CANT_HAPPEN(pp->p_nrndx && !resource))