… | |
… | |
592 | |
592 | |
593 | /* |
593 | /* |
594 | * Returns the first archetype using the given type. |
594 | * Returns the first archetype using the given type. |
595 | * Used in treasure-generation. |
595 | * Used in treasure-generation. |
596 | */ |
596 | */ |
597 | archetype * |
597 | static archetype * |
598 | type_to_archetype (int type) |
598 | type_to_archetype (int type) |
599 | { |
599 | { |
600 | for_all_archetypes (at) |
600 | for_all_archetypes (at) |
601 | if (at->type == type && at->head_ () != at) |
601 | if (at->type == type && at->head_ () != at) |
602 | return at; |
602 | return at; |