abstract
| - Below is the full text to permonst.h from the source code of NetHack 2.2a. To link to a particular line, write [[NetHack 2.2a/permonst.h#line123]], for example. Warning! This is the source code from an old release. For the latest release, see Source code 1. /* SCCS Id: @(#)permonst.h 2.2 87/11/29 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. #ifdef SAC 42. #define PM_SOLDIER &mons[56] 43. #define PM_MINOTAUR &mons[57] /* last in mons array */ 44. #define PM_SHK &mons[58] /* very last */ 45. #else 46. #define PM_MINOTAUR &mons[56] 47. #define PM_SHK &mons[57] 48. #endif 49. 50. #define PM_GHOST &pm_ghost 51. #define PM_EEL &pm_eel 52. #define PM_WIZARD &pm_wizard 53. #ifdef RPH 54. #define PM_MEDUSA &pm_medusa 55. #endif 56. #ifdef SAC 57. #define CMNUM 57 /* number of common monsters */ 58. #else 59. #define CMNUM 56 60. #endif
|