Source:NetHack 3.4.3/src/monstr.c

From NetHackWiki
Jump to: navigation, search

Below is the full text to src/monstr.c from NetHack 3.4.3. To link to a particular line, write [[monstr.c#line123]], for example.

  1. /* This source file is generated by 'makedefs'.  Do not edit. */

A clean distribution of NetHack does not include this file. It is generated at compile time, and stores the monstr[] array which stores the game's idea of how difficult a monster is. monstr is used to determine which monsters can be generated by the RNG. For a human-readable version of this table, see Monsters (by difficulty).

  1. #include "config.h"
  2.  
  3. const int monstr[] = {
  4. 4,  5,  6,  6,  6, 12,  2,  6,  8,  7,  8,  8,  1,  1,  2,  4,
  5. 3,  5,  7,  5,  6,  7,  8,  7,  9,  9, 14,  2,  3,  8,  8,  8,
  6. 3,  5,  6,  7,  7,  7,  8,  8,  8, 11,  2,  4,  5,  6,  8, 13,
  7. 19,  3,  3,  4,  5,  7,  7,  5,  6,  8,  1,  2,  3,  4,  4,  8,
  8. 9, 11,  5,  5,  5,  1,  3,  3,  4,  5,  5,  5,  7,  4,  6,  9,
  9. 4,  7,  8,  9, 13, 15, 22,  1,  2,  4,  4,  4,  4,  3,  4,  7,
  10. 8, 12, 14,  6,  6,  6,  4,  7,  9,  4,  6,  7,  9,  9, 10,  9,
  11. 9,  9, 17,  1,  9,  5,  7, 11, 11, 12, 19, 21, 26,  2,  3,  6,
  12. 7,  6,  8,  9, 13, 13, 13, 13, 13, 13, 13, 13, 13, 20, 20, 20,
  13. 20, 20, 20, 20, 20, 20,  9, 10, 10, 10, 10,  1,  2,  2,  2,  2,
  14. 2,  5,  3,  4,  5,  6,  8,  8, 10, 11, 13, 19, 13, 20, 17, 18,
  15. 3,  4,  5,  6, 14, 18, 21, 29,  4,  5,  6,  6,  7,  7,  8, 10,
  16. 4,  4,  4,  4,  8, 10, 13, 16,  7,  9, 11,  4,  6, 12,  8,  9,
  17. 8, 14,  3,  6,  7,  9,  8, 10,  9, 12, 12, 13, 16, 12, 12, 14,
  18. 18,  7,  8, 17, 11,  4,  6,  7,  7,  8,  9,  1,  2,  3,  3,  4,
  19. 5,  7,  9,  5, 14,  4,  4,  6,  6,  7,  8, 10, 12, 15, 18, 22,
  20. 2,  3,  3,  6, 12,  6,  7,  8, 11, 11, 11, 13, 15, 14, 14, 13,
  21. 15, 30,  8, 10, 12, 14,  8, 12, 25, 34, 22, 12, 14, 11,  9,  8,
  22. 8, 10, 10, 11, 11, 12, 13, 14, 15, 16, 20, 26, 31, 36, 36, 40,
  23. 45, 53, 57, 34, 34, 34, 26,  8, 15,  5,  6,  9,  7, 10, 22,  1,
  24. 2,  3,  4,  6,  7,  7, 12,  1, 12, 12, 12, 12, 12, 12, 11, 12,
  25. 12, 12, 12, 12, 12, 12, 12, 22, 22, 22, 22, 23, 30, 30, 22, 24,
  26. 23, 22, 23, 23, 23, 22, 23, 23, 22, 31, 23, 17, 20, 19, 19, 20,
  27. 7,  7,  7,  7,  7,  8,  8,  7,  7,  7,  7,  8,  7,  8, 
  28. };
  29.  
  30. void NDECL(monstr_init);

monstr_init[edit]

  1. void
  2. monstr_init()
  3. {
  4. return;
  5. }
  6.  
  7. /*monstr.c*/

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.