… | |
… | |
418 | |
418 | |
419 | /* |
419 | /* |
420 | * First initialises the archtype hash-table (init_archetable()). |
420 | * First initialises the archtype hash-table (init_archetable()). |
421 | * Reads and parses the archetype file (with the first and second-pass |
421 | * Reads and parses the archetype file (with the first and second-pass |
422 | * functions). |
422 | * functions). |
423 | * Then initialises treasures by calling load_treasures(). |
|
|
424 | */ |
423 | */ |
425 | void |
424 | void |
426 | load_archetypes (void) |
425 | load_archetypes (void) |
427 | { |
426 | { |
428 | char filename[MAX_BUF]; |
427 | char filename[MAX_BUF]; |
… | |
… | |
436 | |
435 | |
437 | if (!load_archetypes (f)) |
436 | if (!load_archetypes (f)) |
438 | cleanup ("unable to load archetypes"); |
437 | cleanup ("unable to load archetypes"); |
439 | |
438 | |
440 | warn_archetypes = 1; |
439 | warn_archetypes = 1; |
|
|
440 | |
|
|
441 | load_treasures (); |
441 | } |
442 | } |
442 | |
443 | |
443 | /* |
444 | /* |
444 | * Creates and returns a new object which is a copy of the given archetype. |
445 | * Creates and returns a new object which is a copy of the given archetype. |
445 | * This function returns NULL on failure. |
446 | * This function returns NULL on failure. |