]> git.pond.sub.org Git - empserver/blob - src/lib/global/product.c
COPYING duplicates information from README. Remove. Move GPL from
[empserver] / src / lib / global / product.c
1 /*
2  *  Empire - A multi-player, client/server Internet based war game.
3  *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
4  *                           Ken Stevens, Steve McClure
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  *  ---
21  *
22  *  See files README, COPYING and CREDITS in the root of the source
23  *  tree for related information and legal notices.  It is expected
24  *  that future projects/authors will amend these files as needed.
25  *
26  *  ---
27  *
28  *  product.c: Product information
29  * 
30  *  Known contributors to this file:
31  *     
32  */
33
34 #include <config.h>
35
36 #include <stddef.h>
37 #include "misc.h"
38 #include "product.h"
39 #include "sect.h"
40 #include "nat.h"
41
42
43 struct pchrstr pchr[] = {
44 /*       level      cost    nrndx nrdep nlndx   nlmin nllag effic  sname name */
45     {0, {I_NONE, I_NONE, I_NONE}, {0, 0, 0},
46      I_NONE, 0, 0, 0, 0, 0, 0, 0, 0,
47      "unused", "",},
48     {P_SHELL, {I_LCM, I_HCM, I_NONE}, {2, 1, 0},
49      I_SHELL, -1, 3, 0, 0, NAT_TLEV, 20, 10, 100,
50      "shells", "shells",},
51     {P_GUN, {I_OIL, I_LCM, I_HCM}, {1, 5, 10},
52      I_GUN, -1, 30, 0, 0, NAT_TLEV, 20, 10, 100,
53      "guns", "guns",},
54     {P_PETROL, {I_OIL, I_NONE, I_NONE}, {1, 0, 0},
55      I_PETROL, -1, 1, 0, 0, NAT_TLEV, 20, 10, 1000,
56      "petrol", "petrol",},
57     {P_IRON, {I_NONE, I_NONE, I_NONE}, {0, 0, 0},
58      I_IRON, -1, 0, offsetof(struct sctstr, sct_min), 0, -1, 0, 0, 100,
59      "iron ore", "iron",},
60     {P_DUST, {I_NONE, I_NONE, I_NONE}, {0, 0, 0},
61      I_DUST, -1, 0, offsetof(struct sctstr, sct_gmin), 20, -1, 0, 0, 100,
62      "gold dust", "dust",},
63     {P_BAR, {I_DUST, I_NONE, I_NONE}, {5, 0, 0},
64      I_BAR, -1, 10, 0, 0, -1, 0, 0, 100,
65      "gold bars", "bars",},
66     {P_FOOD, {I_NONE, I_NONE, I_NONE}, {0, 0, 0},
67      I_FOOD, -1, 0, offsetof(struct sctstr, sct_fertil), 0, NAT_TLEV, -10, 10, 900,
68      "food", "food",},
69     {P_OIL, {I_NONE, I_NONE, I_NONE}, {0, 0, 0},
70      I_OIL, -1, 0, offsetof(struct sctstr, sct_oil), 10, NAT_TLEV, -10, 10, 100,
71      "oil", "oil",},
72     {P_LCM, {I_IRON, I_NONE, I_NONE}, {1, 0, 0},
73      I_LCM, -1, 0, 0, 0, NAT_TLEV, -10, 10, 100,
74      "light construction materials", "lcm",},
75     {P_HCM, {I_IRON, I_NONE, I_NONE}, {2, 0, 0},
76      I_HCM, -1, 0, 0, 0, NAT_TLEV, -10, 10, 100,
77      "heavy construction materials", "hcm",},
78     {P_TLEV, {I_DUST, I_OIL, I_LCM}, {1, 5, 10},
79      I_NONE, NAT_TLEV, 300, 0, 0, NAT_ELEV, 5, 10, 100,
80      "technological breakthroughs", "tech",},
81     {P_RLEV, {I_DUST, I_OIL, I_LCM}, {1, 5, 10},
82      I_NONE, NAT_RLEV, 90, 0, 0, NAT_ELEV, 5, 10, 100,
83      "medical discoveries", "medical",},
84     {P_ELEV, {I_LCM, I_NONE, I_NONE}, {1, 0, 0},
85      I_NONE, NAT_ELEV, 9, 0, 0, -1, 0, 0, 100,
86      "a class of graduates", "edu",},
87     {P_HLEV, {I_LCM, I_NONE, I_NONE}, {1, 0, 0},
88      I_NONE, NAT_HLEV, 9, 0, 0, -1, 0, 0, 100,
89      "happy strollers", "happy",},
90     {P_URAN, {I_NONE, I_NONE, I_NONE}, {0, 0, 0},
91      I_RAD, -1, 2, offsetof(struct sctstr, sct_uran), 35, NAT_TLEV, 40, 10, 100,
92      "radioactive materials", "rad",},
93     {P_MDUST, {I_NONE, I_NONE, I_NONE}, {0, 0, 0},
94      I_DUST, -1, 0, offsetof(struct sctstr, sct_gmin), 20, -1, 0, 0, 75,
95      "gold dust", "dust",},
96     {0, {I_NONE, I_NONE, I_NONE}, {0, 0, 0},
97      I_NONE, 0, 0, 0, 0, 0, 0, 0, 0, NULL, NULL,}
98 };