… | |
… | |
31 | |
31 | |
32 | /* TREASURE_VERBOSE enables copious output concerning artifact generation */ |
32 | /* TREASURE_VERBOSE enables copious output concerning artifact generation */ |
33 | |
33 | |
34 | //#define TREASURE_VERBOSE |
34 | //#define TREASURE_VERBOSE |
35 | |
35 | |
|
|
36 | #include <unordered_map> |
|
|
37 | |
36 | #include <global.h> |
38 | #include <global.h> |
37 | #include <treasure.h> |
39 | #include <treasure.h> |
38 | |
40 | |
39 | extern char *spell_mapping[]; |
41 | extern char *spell_mapping[]; |
40 | |
42 | |
41 | static treasurelist *first_treasurelist; |
43 | static treasurelist *first_treasurelist; |
42 | |
44 | |
43 | static void change_treasure (treasure *t, object *op); /* overrule default values */ |
45 | static void change_treasure (treasure *t, object *op); /* overrule default values */ |
44 | |
46 | |
45 | typedef std::tr1::unordered_map< |
47 | typedef std::unordered_map< |
46 | const char *, |
48 | const char *, |
47 | treasurelist *, |
49 | treasurelist *, |
48 | str_hash, |
50 | str_hash, |
49 | str_equal, |
51 | str_equal, |
50 | slice_allocator< std::pair<const char *const, treasurelist *> > |
52 | slice_allocator< std::pair<const char *const, treasurelist *> > |