Source:NetHack 2.3e/permonst.h
Jump to navigation
Jump to search
Below is the full text to permonst.h from the source code of NetHack 2.3e.
Warning! This is the source code from an old release. For newer releases, see Source code
Screenshots and source code from Hack are used under the CWI license.
1. /* SCCS Id: @(#)permonst.h 2.3 87/12/16 2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3. 4. struct permonst { 5. char *mname,mlet; 6. schar mlevel,mmove,ac,mr,damn,damd; 7. unsigned pxlth; 8. }; 9. 10. extern struct permonst mons[]; 11. #define PM_GNOME &mons[1] 12. #define PM_HOBGOBLIN &mons[2] 13. #ifndef KOPS 14. #define PM_KOBOLD &mons[4] 15. #endif 16. #define PM_ACID_BLOB &mons[7] 17. #ifdef ROCKMOLE 18. #define PM_ORC &mons[10] 19. #define PM_ZOMBIE &mons[12] 20. #else 21. #define PM_ORC &mons[11] 22. #define PM_ZOMBIE &mons[13] 23. #endif 24. #define PM_PIERCER &mons[17] 25. #define PM_CENTAUR &mons[22] 26. #define PM_KILLER_BEE &mons[26] 27. #ifdef SPIDERS 28. #define PM_SPIDER &mons[31] 29. #endif 30. #define PM_WRAITH &mons[33] 31. #define PM_MIMIC &mons[37] 32. #define PM_TROLL &mons[38] 33. #define PM_VAMPIRE &mons[43] 34. #define PM_XORN &mons[44] 35. #define PM_CHAMELEON &mons[47] 36. #define PM_DRAGON &mons[48] 37. #define PM_ETTIN &mons[49] 38. /* The ones below changed to include giants. */ 39. #define PM_DEMON &mons[55] 40. 41. #define PM_MINOTAUR &mons[56] /* last in mons array */ 42. #define PM_SHK &mons[57] /* very last */ 43. 44. #define PM_GHOST &pm_ghost 45. #define PM_EEL &pm_eel 46. #define PM_WIZARD &pm_wizard 47. #ifdef RPH 48. #define PM_MEDUSA &pm_medusa 49. #endif 50. #ifdef SAC 51. #define PM_SOLDIER &pm_soldier 52. #endif 53. #define CMNUM 56 /* number of common monsters */ 54. #ifdef STOOGES 55. #define PM_LARRY &pm_larry 56. #define PM_CURLY &pm_curly 57. #define PM_MOE &pm_moe 58. #endif 59. #define PM_DJINNI &pm_djinni 60. #define PM_GREMLIN &pm_gremlin