X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fupdate%2Fproduce.c;h=1ee5c2a7073d4d9e383bc8720edbc11ace9eec43;hp=3d7a45a93d20be2ca80af9774a810304fb5234e0;hb=992ab36b592485d9f60b8936f73819927cd5edfa;hpb=9e9355da41424021c1d2bc5e07357690235b852a diff --git a/src/lib/update/produce.c b/src/lib/update/produce.c index 3d7a45a93..1ee5c2a70 100644 --- a/src/lib/update/produce.c +++ b/src/lib/update/produce.c @@ -27,7 +27,7 @@ * produce.c: Produce goodies * * Known contributors to this file: - * Markus Armbruster, 2004-2016 + * Markus Armbruster, 2004-2021 */ #include @@ -41,7 +41,9 @@ #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" @@ -184,7 +186,7 @@ prod_output(struct sctstr *sp, double prodeff) * 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; @@ -230,7 +232,7 @@ materials_charge(struct pchrstr *pp, short *vec, double count) * 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))