Difference between revisions of "Source:NetHack 3.4.3/src/monstr.c"

From NetHackWiki
Jump to navigation Jump to search
m (Monstr.c moved to Source:Monstr.c: Robot: moved page)
m (moved Source:Monstr.c to Source:NetHack 3.4.3/src/monstr.c: left over from the src code move)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__MIXEDSYNTAXHIGHLIGHT__
 
Below is the full text to src/monstr.c from NetHack 3.4.3. To link to a particular line, write [[monstr.c#line123|<nowiki>[[monstr.c#line123]]</nowiki>]], for example.
 
Below is the full text to src/monstr.c from NetHack 3.4.3. To link to a particular line, write [[monstr.c#line123|<nowiki>[[monstr.c#line123]]</nowiki>]], for example.
 
  <span id="line1">1.    /* This source file is generated by 'makedefs'.  Do not edit. */</span>
 
  <span id="line1">1.    /* This source file is generated by 'makedefs'.  Do not edit. */</span>
  
 
A clean distribution of [[NetHack]] does not include this file. It is generated at compile time, and stores  the <code>monstr[]</code> array which stores the game's idea of how difficult a monster is. <code>monstr</code> is used to determine which monsters can be generated by the [[RNG]].
 
A clean distribution of [[NetHack]] does not include this file. It is generated at compile time, and stores  the <code>monstr[]</code> array which stores the game's idea of how difficult a monster is. <code>monstr</code> is used to determine which monsters can be generated by the [[RNG]].
 +
For a human-readable version of this table, see [[Monsters (by difficulty)]].
  
 
  <span id="line2">2.    #include "config.h"</span>
 
  <span id="line2">2.    #include "config.h"</span>

Latest revision as of 16:43, 5 February 2011

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.

/* 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).

#include "config.h"

const int monstr[] = {
4,  5,  6,  6,  6, 12,  2,  6,  8,  7,  8,  8,  1,  1,  2,  4,
3,  5,  7,  5,  6,  7,  8,  7,  9,  9, 14,  2,  3,  8,  8,  8,
3,  5,  6,  7,  7,  7,  8,  8,  8, 11,  2,  4,  5,  6,  8, 13,
19,  3,  3,  4,  5,  7,  7,  5,  6,  8,  1,  2,  3,  4,  4,  8,
9, 11,  5,  5,  5,  1,  3,  3,  4,  5,  5,  5,  7,  4,  6,  9,
4,  7,  8,  9, 13, 15, 22,  1,  2,  4,  4,  4,  4,  3,  4,  7,
8, 12, 14,  6,  6,  6,  4,  7,  9,  4,  6,  7,  9,  9, 10,  9,
9,  9, 17,  1,  9,  5,  7, 11, 11, 12, 19, 21, 26,  2,  3,  6,
7,  6,  8,  9, 13, 13, 13, 13, 13, 13, 13, 13, 13, 20, 20, 20,
20, 20, 20, 20, 20, 20,  9, 10, 10, 10, 10,  1,  2,  2,  2,  2,
2,  5,  3,  4,  5,  6,  8,  8, 10, 11, 13, 19, 13, 20, 17, 18,
3,  4,  5,  6, 14, 18, 21, 29,  4,  5,  6,  6,  7,  7,  8, 10,
4,  4,  4,  4,  8, 10, 13, 16,  7,  9, 11,  4,  6, 12,  8,  9,
8, 14,  3,  6,  7,  9,  8, 10,  9, 12, 12, 13, 16, 12, 12, 14,
18,  7,  8, 17, 11,  4,  6,  7,  7,  8,  9,  1,  2,  3,  3,  4,
5,  7,  9,  5, 14,  4,  4,  6,  6,  7,  8, 10, 12, 15, 18, 22,
2,  3,  3,  6, 12,  6,  7,  8, 11, 11, 11, 13, 15, 14, 14, 13,
15, 30,  8, 10, 12, 14,  8, 12, 25, 34, 22, 12, 14, 11,  9,  8,
8, 10, 10, 11, 11, 12, 13, 14, 15, 16, 20, 26, 31, 36, 36, 40,
45, 53, 57, 34, 34, 34, 26,  8, 15,  5,  6,  9,  7, 10, 22,  1,
2,  3,  4,  6,  7,  7, 12,  1, 12, 12, 12, 12, 12, 12, 11, 12,
12, 12, 12, 12, 12, 12, 12, 22, 22, 22, 22, 23, 30, 30, 22, 24,
23, 22, 23, 23, 23, 22, 23, 23, 22, 31, 23, 17, 20, 19, 19, 20,
7,  7,  7,  7,  7,  8,  8,  7,  7,  7,  7,  8,  7,  8, 
};

void NDECL(monstr_init);

monstr_init

void
monstr_init()
{
return;
}

/*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.