… | |
… | |
965 | /* |
965 | /* |
966 | * This routine is supposed to find out the difficulty of the map. |
966 | * This routine is supposed to find out the difficulty of the map. |
967 | * difficulty does not have a lot to do with character level, |
967 | * difficulty does not have a lot to do with character level, |
968 | * but does have a lot to do with treasure on the map. |
968 | * but does have a lot to do with treasure on the map. |
969 | * |
969 | * |
970 | * Difficulty can now be set by the map creature. If the value stored |
970 | * Difficulty can now be set by the map creator. If the value stored |
971 | * in the map is zero, then use this routine. Maps should really |
971 | * in the map is zero, then use this routine. Maps should really |
972 | * have a difficulty set than using this function - human calculation |
972 | * have a difficulty set rather than using this function - human calculation |
973 | * is much better than this functions guesswork. |
973 | * is much better than this function's guesswork. |
974 | */ |
974 | */ |
975 | int |
975 | int |
976 | maptile::estimate_difficulty () const |
976 | maptile::estimate_difficulty () const |
977 | { |
977 | { |
978 | long monster_cnt = 0; |
978 | long monster_cnt = 0; |