* produce.c: Produce goodies
*
* Known contributors to this file:
- * Markus Armbruster, 2004-2016
+ * Markus Armbruster, 2004-2021
*/
#include <config.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 double prod_resource_limit(struct pchrstr *, unsigned char *);
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.
*/
-double
+static double
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.
*/
-double
+static double
prod_resource_limit(struct pchrstr *pp, unsigned char *resource)
{
if (CANT_HAPPEN(pp->p_nrndx && !resource))