1 | #!/opt/bin/perl |
1 | #!/opt/bin/perl |
|
|
2 | |
|
|
3 | # |
|
|
4 | # This file is part of Deliantra, the Roguelike Realtime MMORPG. |
|
|
5 | # |
|
|
6 | # Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
|
|
7 | # |
|
|
8 | # Deliantra is free software: you can redistribute it and/or modify it under |
|
|
9 | # the terms of the Affero GNU General Public License as published by the |
|
|
10 | # Free Software Foundation, either version 3 of the License, or (at your |
|
|
11 | # option) any later version. |
|
|
12 | # |
|
|
13 | # This program is distributed in the hope that it will be useful, |
|
|
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
16 | # GNU General Public License for more details. |
|
|
17 | # |
|
|
18 | # You should have received a copy of the Affero GNU General Public License |
|
|
19 | # and the GNU General Public License along with this program. If not, see |
|
|
20 | # <http://www.gnu.org/licenses/>. |
|
|
21 | # |
|
|
22 | # The authors can be reached via e-mail to <support@deliantra.net> |
|
|
23 | # |
2 | |
24 | |
3 | my %ARG = @ARGV; |
25 | my %ARG = @ARGV; |
4 | |
26 | |
5 | use List::Util; |
27 | use List::Util; |
6 | |
28 | |
7 | # todo: gather dynamically |
29 | # todo: gather dynamically |
8 | my @kw = qw( |
30 | my @kw = qw( |
9 | no_pass |
|
|
10 | walk_on |
|
|
11 | walk_off |
|
|
12 | fly_on |
|
|
13 | fly_off |
|
|
14 | flying |
|
|
15 | |
|
|
16 | gender |
31 | gender |
17 | hintmode |
32 | hintmode |
18 | attack_skill |
33 | attack_skill |
19 | ranged_skill |
34 | ranged_skill |
20 | |
35 | |
… | |
… | |
114 | is_blind |
129 | is_blind |
115 | is_buildable |
130 | is_buildable |
116 | is_cauldron |
131 | is_cauldron |
117 | is_dust |
132 | is_dust |
118 | is_floor |
133 | is_floor |
|
|
134 | is_transparent_floor |
119 | is_hilly |
135 | is_hilly |
120 | is_lightable |
136 | is_lightable |
121 | is_thrown |
137 | is_thrown |
122 | is_turnable |
138 | is_turnable |
123 | is_used_up |
139 | is_used_up |
… | |
… | |
156 | name_pl |
172 | name_pl |
157 | neutral |
173 | neutral |
158 | no_attack |
174 | no_attack |
159 | no_damage |
175 | no_damage |
160 | no_drop |
176 | no_drop |
161 | no_fix_player |
|
|
162 | no_magic |
177 | no_magic |
163 | no_pick |
178 | no_pick |
164 | no_skill_ident |
179 | no_skill_ident |
165 | no_steal |
180 | no_steal |
166 | no_strength |
181 | no_strength |
… | |
… | |
180 | pick_up |
195 | pick_up |
181 | player_sold |
196 | player_sold |
182 | pow |
197 | pow |
183 | precious |
198 | precious |
184 | protected |
199 | protected |
|
|
200 | is_quad |
185 | race |
201 | race |
186 | random_move |
202 | random_move |
187 | random_movement |
203 | random_movement |
|
|
204 | random_speed |
188 | randomitems |
205 | randomitems |
189 | range |
206 | range |
190 | range_modifier |
207 | range_modifier |
191 | reflect_missile |
208 | reflect_missile |
192 | reflect_spell |
209 | reflect_spell |
… | |
… | |
229 | sound_destroy |
246 | sound_destroy |
230 | smoothlevel |
247 | smoothlevel |
231 | sp |
248 | sp |
232 | speed |
249 | speed |
233 | speed_left |
250 | speed_left |
|
|
251 | sl |
234 | splitting |
252 | splitting |
235 | stand_still |
253 | stand_still |
236 | startequip |
254 | startequip |
237 | state |
255 | state |
238 | stealth |
256 | stealth |
… | |
… | |
284 | outdoor |
302 | outdoor |
285 | tile_path_1 |
303 | tile_path_1 |
286 | tile_path_2 |
304 | tile_path_2 |
287 | tile_path_3 |
305 | tile_path_3 |
288 | tile_path_4 |
306 | tile_path_4 |
|
|
307 | tile_path_5 |
|
|
308 | tile_path_6 |
289 | |
309 | |
290 | file_format_version |
310 | file_format_version |
291 | |
|
|
292 | temp |
|
|
293 | pressure |
|
|
294 | humid |
|
|
295 | windspeed |
|
|
296 | winddir |
|
|
297 | sky |
|
|
298 | |
311 | |
299 | map |
312 | map |
300 | savebed_map |
313 | savebed_map |
301 | bed_x |
314 | bed_x |
302 | bed_y |
315 | bed_y |
… | |
… | |
326 | longname |
339 | longname |
327 | jail_map |
340 | jail_map |
328 | jail_x |
341 | jail_x |
329 | jail_y |
342 | jail_y |
330 | portal_map |
343 | portal_map |
331 | portal_x |
|
|
332 | portal_y |
|
|
333 | fallback |
344 | fallback |
334 | nomore |
345 | nomore |
335 | |
346 | |
336 | chance |
347 | chance |
337 | mods |
348 | mods |
… | |
… | |
367 | change_name |
378 | change_name |
368 | change_title |
379 | change_title |
369 | change_slaying |
380 | change_slaying |
370 | yes |
381 | yes |
371 | no |
382 | no |
|
|
383 | |
|
|
384 | max_level |
|
|
385 | |
|
|
386 | authour |
|
|
387 | size |
|
|
388 | index |
372 | ); |
389 | ); |
373 | |
390 | |
374 | open GPERF, "|-", "exec $ARG{GPERF} -m50 >kw_hash.h" |
391 | open GPERF, "|-", "exec $ARG{GPERF} -m50 >kw_hash.h" |
375 | or die "$ARGV{GPERF}: $!"; |
392 | or die "$ARGV{GPERF}: $!"; |
376 | |
393 | |