]> git.pond.sub.org Git - empserver/blob - src/lib/global/land.c
COPYING duplicates information from README. Remove. Move GPL from
[empserver] / src / lib / global / land.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  *  land.c: Land unit characteristics
29  * 
30  *  Known contributors to this file:
31  *     Thomas Ruschak, 1992
32  *     Ken Stevens, 1995
33  *     Steve McClure, 1998-2000
34  */
35
36 #include <config.h>
37
38 #include "misc.h"
39 #include "land.h"
40
41 struct lchrstr lchr[] = {
42
43 /* name
44    lcm, hcm, mil, gun, shell, tech,   $,
45    att, def, vul, spd, vis, spy, rad, frg, acc, dam, amm, aaf, fc, fu, xpl, mxl
46    flags, nv
47    cargo
48 */
49
50     {{0,  20,   0,   0,   0,   0,   0,   0,  12,   0,   0,   0,   0,   0},
51      "cav  cavalry",
52      10, 5, 0, 0, 0, 30, 500,
53      1.2, 0.5, 80, 32, 18, 4, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0,
54      L_RECON | L_LIGHT,
55      },
56
57     {{0,  25,   1,   0,   0,   0,   0,   0,  15,   0,   0,   0,   0,   0},
58      "linf light infantry",
59      8, 4, 0, 0, 0, 40, 300,
60      1.0, 1.5, 60, 28, 15, 2, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0,
61      L_ASSAULT | L_LIGHT,
62      },
63
64     {{0, 100,   0,   0,   0,   0,   0,   0,  24,   0,   0,   0,   0,   0},
65      "inf  infantry",
66      10, 5, 0, 0, 0, 50, 500,
67      1.0, 1.5, 60, 25, 15, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
68      L_ASSAULT | L_LIGHT,
69      },
70
71     {{0, 100,   8,   0,   0,   0,   0,   0,  60,   0,   0,   0,   0,   0},
72      "mtif motor inf",
73      15, 10, 0, 0, 0, 190, 400,
74      1.2, 2.2, 60, 33, 17, 1, 3, 0, 0, 0, 2, 3, 13, 1, 0, 0,
75      L_LIGHT,
76      },
77
78     {{0, 100,   8,   0,   0,   0,   0,   0,  60,   0,   0,   0,   0,   0},
79      "mif  mech inf",
80      15, 10, 0, 0, 0, 190, 800,
81      1.5, 2.5, 50, 33, 17, 1, 3, 0, 0, 0, 2, 3, 13, 1, 0, 0,
82      L_LIGHT,
83      },
84
85     {{0, 100,   4,   0,   0,   0,   0,   0,  60,   0,   0,   0,   0,   0},
86      "mar  marines",
87      10, 5, 0, 0, 0, 140, 1000,
88      1.4, 2.4, 60, 25, 14, 2, 1, 0, 0, 0, 1, 2, 0, 0, 0, 0,
89      L_MARINE | L_ASSAULT | L_LIGHT,
90      },
91
92     {{0,  25, 200,  10, 300, 100, 100,  10, 300,   0, 200, 100,   0,   0},
93      "sup  supply",
94      10, 5, 0, 0, 0, 50, 500,
95      0.1, 0.2, 80, 25, 20, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
96      L_LIGHT | L_SUPPLY,
97      },
98
99     {{0, 990, 990, 200, 990, 500, 500, 100, 990, 990, 990, 990,   0, 150},
100      "tra  train",
101      100, 50, 0, 0, 0, 40, 3500,
102      0.0, 0.0, 120, 10, 25, 3, 0, 0, 0, 0, 0, 0, 0, 0, 5, 12,
103      L_TRAIN | L_HEAVY | L_SUPPLY,
104      },
105
106     {{0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0},
107      "spy  infiltrator",
108      10, 5, 0, 0, 0, 40, 750,
109      0.0, 0.0, 80, 32, 18, 4, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0,
110      L_ASSAULT | L_RECON | L_LIGHT | L_SPY,
111      },
112
113     {{0,   0,   3,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0},
114      "com  commando",
115      10, 5, 0, 0, 0, 55, 1500,
116      0.0, 0.0, 80, 32, 18, 4, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0,
117      L_ASSAULT | L_RECON | L_LIGHT | L_SPY,
118      },
119
120     {{0,  20,   5,   0,   0,   0,   0,   0,  12,   0,   0,   0,   0,   0},
121      "aau  aa unit",
122      20, 10, 0, 0, 0, 70, 500,
123      0.5, 1.0, 60, 18, 20, 1, 1, 0, 0, 0, 1, 2, 0, 0, 0, 0,
124      L_FLAK | L_LIGHT,
125      },
126
127     {{0,  25,  40,  10,   0,   0,   0,   0,  24,   0,   0,   0,   0,   0},
128      "art  artillery",
129      20, 10, 0, 0, 0, 35, 800,
130      0.1, 0.4, 70, 18, 20, 1, 0, 8, 50, 5, 2, 1, 0, 0, 0, 0,
131      L_LIGHT,
132      },
133
134     {{0,  25,  20,   6,   0,   0,   0,   0,  12,   0,   0,   0,   0,   0},
135      "lat  lt artillery",
136      20, 10, 0, 0, 0, 70, 500,
137      0.2, 0.6, 60, 30, 18, 1, 1, 5, 10, 3, 1, 1, 0, 0, 0, 0,
138      L_LIGHT,
139      },
140
141     {{0,  25,  80,  12,   0,   0,   0,   0,  24,   0,   0,   0,   0,   0},
142      "hat  hvy artillery",
143      40, 20, 0, 0, 0, 100, 800,
144      0.0, 0.2, 60, 12, 20, 1, 0, 11, 99, 8, 4, 1, 0, 0, 0, 0,
145      0,
146      },
147
148     {{0,  25,  40,  10,   0,   0,   0,   0,  15,   0,   0,   0,   0,   0},
149      "mat  mech artillery",
150      20, 10, 0, 0, 0, 200, 1000,
151      0.2, 0.6, 50, 35, 17, 1, 1, 8, 35, 6, 3, 3, 13, 1, 0, 0,
152      L_LIGHT,
153      },
154
155     {{0,  20,   3,   0,   0,   0,   0,   0,  12,   0,   0,   0,   0,   0},
156      "eng  engineer",
157      10, 5, 0, 0, 0, 130, 3000,
158      1.2, 2.4, 50, 25, 14, 2, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0,
159      L_ENGINEER | L_ASSAULT | L_LIGHT,
160      },
161
162     {{0,  20,   4,   0,   0,   0,   0,   0,  15,   0,   0,   0,   0,   0},
163      "meng mech engineer",
164      10, 5, 0, 0, 0, 260, 4500,
165      1.8, 3.5, 45, 33, 15, 3, 3, 0, 0, 0, 1, 5, 25, 2, 0, 0,
166      L_ENGINEER | L_ASSAULT | L_LIGHT,
167      },
168
169     {{0,  50,   4,   0,   0,   0,   0,   0,  30,   0,   0,   0,   0,   0},
170      "lar  lt armor",
171      10, 5, 0, 0, 0, 150, 600,
172      2.0, 1.0, 50, 42, 15, 4, 4, 0, 0, 0, 1, 2, 25, 1, 0, 0,
173      L_RECON | L_LIGHT,
174      },
175
176     {{0, 100,   3,   0,   0,   0,   0,   0,  48,   0,   0,   0,   0,   0},
177      "har  hvy armor",
178      20, 10, 0, 0, 0, 120, 500,
179      2.0, 0.8, 50, 18, 17, 1, 1, 0, 0, 0, 2, 1, 10, 2, 0, 0,
180      0,
181      },
182
183     {{0,  50,   4,   0,   0,   0,   0,   0,  30,   0,   0,   0,   0,   0},
184      "arm  armor",
185      20, 10, 0, 0, 0, 170, 1000,
186      3.0, 1.5, 40, 33, 16, 2, 2, 0, 0, 0, 1, 2, 13, 1, 0, 0,
187      L_LIGHT,
188      },
189
190     {{0,  50,   4,   0,   0,   0,   0,   0,  30,   0,   0,   0,   0,   0},
191      "sec  security",
192      10, 5, 0, 0, 0, 170, 600,
193      1.0, 2.0, 60, 25, 15, 2, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0,
194      L_SECURITY | L_LIGHT,
195      },
196
197     {{0,  10,   0,   0,   0,   0,   0,   0,   7,   0,   0,   0,   0,   0},
198      "rad  radar unit",
199      10, 5, 0, 0, 0, 270, 1000,
200      0.0, 0.0, 50, 33, 15, 3, 0, 0, 0, 0, 0, 2, 25, 2, 1, 0,
201      L_RADAR | L_LIGHT,
202      },
203
204 /* name
205    lcm, hcm, mil, gun, shell, tech,   $,
206    att, def, vul, spd, vis, spy, rad, frg, acc, dam, amm, aaf, fc, fu, xpl,
207    flags, nv
208    cargo
209 */
210
211     {{0},
212      NULL,
213      0, 0, 0, 0, 0, 0, 0,
214      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
215      0,
216      }
217 };