… | |
… | |
113 | |
113 | |
114 | /* allocate the map and set the floor */ |
114 | /* allocate the map and set the floor */ |
115 | theMap = make_map_floor (layout, RP->floorstyle, RP); |
115 | theMap = make_map_floor (layout, RP->floorstyle, RP); |
116 | |
116 | |
117 | /* set the name of the map. */ |
117 | /* set the name of the map. */ |
118 | strcpy (theMap->path, OutFileName); |
118 | theMap->path = OutFileName; |
119 | |
119 | |
120 | /* set region */ |
120 | /* set region */ |
121 | theMap->region = RP->region; |
121 | theMap->region = RP->region; |
122 | |
122 | |
123 | /* create walls unless the wallstyle is "none" */ |
123 | /* create walls unless the wallstyle is "none" */ |
… | |
… | |
140 | /* create monsters unless the monsterstyle is "none" */ |
140 | /* create monsters unless the monsterstyle is "none" */ |
141 | if (strcmp (RP->monsterstyle, "none")) |
141 | if (strcmp (RP->monsterstyle, "none")) |
142 | place_monsters (theMap, RP->monsterstyle, RP->difficulty, RP); |
142 | place_monsters (theMap, RP->monsterstyle, RP->difficulty, RP); |
143 | |
143 | |
144 | /* treasures needs to have a proper difficulty set for the map. */ |
144 | /* treasures needs to have a proper difficulty set for the map. */ |
145 | theMap->difficulty = calculate_difficulty (theMap); |
145 | theMap->difficulty = theMap->estimate_difficulty (); |
146 | |
146 | |
147 | /* create treasure unless the treasurestyle is "none" */ |
147 | /* create treasure unless the treasurestyle is "none" */ |
148 | if (strcmp (RP->treasurestyle, "none")) |
148 | if (strcmp (RP->treasurestyle, "none")) |
149 | place_treasure (theMap, layout, RP->treasurestyle, RP->treasureoptions, RP); |
149 | place_treasure (theMap, layout, RP->treasurestyle, RP->treasureoptions, RP); |
150 | |
150 | |