… | |
… | |
132 | "Wounding", |
132 | "Wounding", |
133 | "Death", |
133 | "Death", |
134 | "Light" |
134 | "Light" |
135 | }; |
135 | }; |
136 | |
136 | |
137 | /* |
|
|
138 | * It is vital that init_library() is called by any functions |
|
|
139 | * using this library. |
|
|
140 | * If you want to lessen the size of the program using the library, |
|
|
141 | * you can replace the call to init_library() with init_globals() and |
|
|
142 | * init_function_pointers(). Good idea to also call init_vars and |
|
|
143 | * init_hash_table if you are doing any object loading. |
|
|
144 | */ |
|
|
145 | void |
|
|
146 | init_library (void) |
|
|
147 | { |
|
|
148 | init_globals (); |
|
|
149 | init_block (); |
|
|
150 | init_dynamic (); |
|
|
151 | init_attackmess (); |
|
|
152 | init_experience (); |
|
|
153 | } |
|
|
154 | |
|
|
155 | /* init_environ initialises values from the environmental variables. |
137 | /* init_environ initialises values from the environmental variables. |
156 | * it needs to be called very early, since command line options should |
138 | * it needs to be called very early, since command line options should |
157 | * overwrite these if specified. |
139 | * overwrite these if specified. |
158 | */ |
140 | */ |
159 | void |
141 | void |
… | |
… | |
217 | } |
199 | } |
218 | |
200 | |
219 | void |
201 | void |
220 | init_dynamic (void) |
202 | init_dynamic (void) |
221 | { |
203 | { |
222 | for_all_archetypes (at) |
204 | first_map_ext_path = "/start/HallsOfSelection"; |
223 | { |
205 | first_map_path = "/HallOfSelection"; |
224 | if (at->type == MAP) |
|
|
225 | { |
|
|
226 | if (at->race) |
|
|
227 | first_map_ext_path = at->race; |
|
|
228 | |
|
|
229 | if (EXIT_PATH (at)) |
|
|
230 | { |
|
|
231 | first_map_path = EXIT_PATH (at); |
|
|
232 | return; |
|
|
233 | } |
|
|
234 | } |
|
|
235 | } |
|
|
236 | |
|
|
237 | LOG (llevDebug, "You need an archetype of type 'map' and it has to contain the player start map\n"); |
|
|
238 | exit (-1); |
|
|
239 | } |
206 | } |
240 | |
207 | |
241 | /* |
208 | /* |
242 | * initialises the attack messages. |
209 | * initialises the attack messages. |
243 | * Called by init_library(). |
210 | * Called by init_library(). |