… | |
… | |
194 | insert_ob_in_map (potion, map, NULL, 0); |
194 | insert_ob_in_map (potion, map, NULL, 0); |
195 | |
195 | |
196 | } |
196 | } |
197 | |
197 | |
198 | void |
198 | void |
199 | place_special_exit (maptile *map, int hole_type, RMParms * RP) |
199 | place_special_exit (maptile *map, int hole_type, random_map_params * RP) |
200 | { |
200 | { |
201 | int ix, iy, i = -1; |
201 | int ix, iy, i = -1; |
202 | char buf[HUGE_BUF], *style, *decor, *mon; |
202 | char buf[HUGE_BUF], *style, *decor, *mon; |
203 | maptile *exit_style = find_style ("/styles/misc", "obscure_exits", -1); |
203 | maptile *exit_style = find_style ("/styles/misc", "obscure_exits", -1); |
204 | int g_xsize, g_ysize; |
204 | int g_xsize, g_ysize; |
… | |
… | |
271 | if (g_ysize < MIN_RANDOM_MAP_SIZE) |
271 | if (g_ysize < MIN_RANDOM_MAP_SIZE) |
272 | g_ysize = MIN_RANDOM_MAP_SIZE; |
272 | g_ysize = MIN_RANDOM_MAP_SIZE; |
273 | |
273 | |
274 | write_parameters_to_string (buf, g_xsize, g_ysize, RP->wallstyle, RP->floorstyle, mon, |
274 | write_parameters_to_string (buf, g_xsize, g_ysize, RP->wallstyle, RP->floorstyle, mon, |
275 | "none", style, decor, "none", RP->exitstyle, 0, 0, 0, |
275 | "none", style, decor, "none", RP->exitstyle, 0, 0, 0, |
276 | OPT_WALLS_ONLY, 0, 0, 1, RP->dungeon_level, RP->dungeon_level, |
276 | RMOPT_WALLS_ONLY, 0, 0, 1, RP->dungeon_level, RP->dungeon_level, |
277 | RP->difficulty, RP->difficulty, -1, 1, 0, 0, 0, 0, RP->difficulty_increase); |
277 | RP->difficulty, RP->difficulty, -1, 1, 0, 0, 0, 0, RP->difficulty_increase); |
278 | the_exit->slaying = "/!"; |
278 | the_exit->slaying = "/!"; |
279 | the_exit->msg = buf; |
279 | the_exit->msg = buf; |
280 | |
280 | |
281 | insert_ob_in_map (the_exit, map, NULL, 0); |
281 | insert_ob_in_map (the_exit, map, NULL, 0); |
282 | } |
282 | } |
283 | |
283 | |
284 | |
284 | |
285 | void |
285 | void |
286 | place_specials_in_map (maptile *map, char **layout, RMParms * RP) |
286 | place_specials_in_map (maptile *map, char **layout, random_map_params * RP) |
287 | { |
287 | { |
288 | maptile *special_map; |
288 | maptile *special_map; |
289 | int ix, iy; /* map insertion locatons */ |
289 | int ix, iy; /* map insertion locatons */ |
290 | int special_type; /* type of special to make */ |
290 | int special_type; /* type of special to make */ |
291 | |
291 | |