version 1.40 | | version 1.41 |
---|
| | |
/* | | /* |
* static char *rcsid_random_map_c = | | * static char *rcsid_random_map_c = |
* "$Id: random_map.c,v 1.40 2005/10/29 09:34:02 ryo_saeba Exp $"; | | * "$Id: random_map.c,v 1.41 2006/02/20 23:33:28 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* set region */ | | /* set region */ |
theMap->region=RP->region; | | theMap->region=RP->region; |
| | |
| | /* create walls unless the wallstyle is "none" */ |
| | if (strcmp (RP->wallstyle, "none")) { |
make_map_walls(theMap,layout,RP->wallstyle,RP); | | make_map_walls(theMap,layout,RP->wallstyle,RP); |
| | |
| | /* place doors unless doorstyle or wallstyle is "none"*/ |
| | if (strcmp (RP->doorstyle, "none")) |
put_doors(theMap,layout,RP->doorstyle,RP); | | put_doors(theMap,layout,RP->doorstyle,RP); |
| | |
| | } |
| | |
| | /* create exits unless the exitstyle is "none" */ |
| | if (strcmp (RP->exitstyle, "none")) |
place_exits(theMap,layout,RP->exitstyle,RP->orientation,RP); | | place_exits(theMap,layout,RP->exitstyle,RP->orientation,RP); |
| | |
place_specials_in_map(theMap,layout,RP); | | place_specials_in_map(theMap,layout,RP); |
| | |
| | /* create monsters unless the monsterstyle is "none" */ |
| | if (strcmp (RP->monsterstyle, "none")) |
place_monsters(theMap,RP->monsterstyle,RP->difficulty,RP); | | place_monsters(theMap,RP->monsterstyle,RP->difficulty,RP); |
| | |
/* treasures needs to have a proper difficulty set for the map. */ | | /* treasures needs to have a proper difficulty set for the map. */ |
theMap->difficulty=calculate_difficulty(theMap); | | theMap->difficulty=calculate_difficulty(theMap); |
| | |
| | /* create treasure unless the treasurestyle is "none" */ |
| | if (strcmp (RP->treasurestyle, "none")) |
place_treasure(theMap,layout,RP->treasurestyle,RP->treasureoptions,RP); | | place_treasure(theMap,layout,RP->treasurestyle,RP->treasureoptions,RP); |
| | |
| | /* create decor unless the decorstyle is "none" */ |
| | if (strcmp (RP->decorstyle, "none")) |
put_decor(theMap,layout,RP->decorstyle,RP->decoroptions,RP); | | put_decor(theMap,layout,RP->decorstyle,RP->decoroptions,RP); |
| | |
/* generate treasures, etc. */ | | /* generate treasures, etc. */ |