hack.monst.c 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /* $NetBSD: hack.monst.c,v 1.6 2003/04/02 18:36:38 jsm Exp $ */
  2. /*
  3. * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
  4. * Amsterdam
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions are
  9. * met:
  10. *
  11. * - Redistributions of source code must retain the above copyright notice,
  12. * this list of conditions and the following disclaimer.
  13. *
  14. * - Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. *
  18. * - Neither the name of the Stichting Centrum voor Wiskunde en
  19. * Informatica, nor the names of its contributors may be used to endorse or
  20. * promote products derived from this software without specific prior
  21. * written permission.
  22. *
  23. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  24. * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  25. * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  26. * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  27. * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  28. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  29. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  30. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  31. * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  32. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  33. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34. */
  35. /*
  36. * Copyright (c) 1982 Jay Fenlason <hack@gnu.org>
  37. * All rights reserved.
  38. *
  39. * Redistribution and use in source and binary forms, with or without
  40. * modification, are permitted provided that the following conditions
  41. * are met:
  42. * 1. Redistributions of source code must retain the above copyright
  43. * notice, this list of conditions and the following disclaimer.
  44. * 2. Redistributions in binary form must reproduce the above copyright
  45. * notice, this list of conditions and the following disclaimer in the
  46. * documentation and/or other materials provided with the distribution.
  47. * 3. The name of the author may not be used to endorse or promote products
  48. * derived from this software without specific prior written permission.
  49. *
  50. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
  51. * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  52. * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  53. * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  54. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  55. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  56. * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  57. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  58. * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  59. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  60. */
  61. #include <sys/cdefs.h>
  62. #ifndef lint
  63. __RCSID("$NetBSD: hack.monst.c,v 1.6 2003/04/02 18:36:38 jsm Exp $");
  64. #endif /* not lint */
  65. #include "hack.h"
  66. #include "extern.h"
  67. #include "def.eshk.h"
  68. const struct permonst mons[CMNUM + 2] = {
  69. {"bat", 'B', 1, 22, 8, 1, 4, 0},
  70. {"gnome", 'G', 1, 6, 5, 1, 6, 0},
  71. {"hobgoblin", 'H', 1, 9, 5, 1, 8, 0},
  72. {"jackal", 'J', 0, 12, 7, 1, 2, 0},
  73. {"kobold", 'K', 1, 6, 7, 1, 4, 0},
  74. {"leprechaun", 'L', 5, 15, 8, 1, 2, 0},
  75. {"giant rat", 'r', 0, 12, 7, 1, 3, 0},
  76. {"acid blob", 'a', 2, 3, 8, 0, 0, 0},
  77. {"floating eye", 'E', 2, 1, 9, 0, 0, 0},
  78. {"homunculus", 'h', 2, 6, 6, 1, 3, 0},
  79. {"imp", 'i', 2, 6, 2, 1, 4, 0},
  80. {"orc", 'O', 2, 9, 6, 1, 8, 0},
  81. {"yellow light", 'y', 3, 15, 0, 0, 0, 0},
  82. {"zombie", 'Z', 2, 6, 8, 1, 8, 0},
  83. {"giant ant", 'A', 3, 18, 3, 1, 6, 0},
  84. {"fog cloud", 'f', 3, 1, 0, 1, 6, 0},
  85. {"nymph", 'N', 6, 12, 9, 1, 2, 0},
  86. {"piercer", 'p', 3, 1, 3, 2, 6, 0},
  87. {"quasit", 'Q', 3, 15, 3, 1, 4, 0},
  88. {"quivering blob", 'q', 3, 1, 8, 1, 8, 0},
  89. {"violet fungi", 'v', 3, 1, 7, 1, 4, 0},
  90. {"giant beetle", 'b', 4, 6, 4, 3, 4, 0},
  91. {"centaur", 'C', 4, 18, 4, 1, 6, 0},
  92. {"cockatrice", 'c', 4, 6, 6, 1, 3, 0},
  93. {"gelatinous cube", 'g', 4, 6, 8, 2, 4, 0},
  94. {"jaguar", 'j', 4, 15, 6, 1, 8, 0},
  95. {"killer bee", 'k', 4, 14, 4, 2, 4, 0},
  96. {"snake", 'S', 4, 15, 3, 1, 6, 0},
  97. {"freezing sphere", 'F', 2, 13, 4, 0, 0, 0},
  98. {"owlbear", 'o', 5, 12, 5, 2, 6, 0},
  99. {"rust monster", 'R', 10, 18, 3, 0, 0, 0},
  100. {"scorpion", 's', 5, 15, 3, 1, 4, 0},
  101. {"tengu", 't', 5, 13, 5, 1, 7, 0},
  102. {"wraith", 'W', 5, 12, 5, 1, 6, 0},
  103. #ifdef NOWORM
  104. {"wumpus", 'w', 8, 3, 2, 3, 6, 0},
  105. #else
  106. {"long worm", 'w', 8, 3, 5, 1, 4, 0},
  107. #endif /* NOWORM */
  108. {"large dog", 'd', 6, 15, 4, 2, 4, 0},
  109. {"leocrotta", 'l', 6, 18, 4, 3, 6, 0},
  110. {"mimic", 'M', 7, 3, 7, 3, 4, 0},
  111. {"troll", 'T', 7, 12, 4, 2, 7, 0},
  112. {"unicorn", 'u', 8, 24, 5, 1, 10, 0},
  113. {"yeti", 'Y', 5, 15, 6, 1, 6, 0},
  114. {"stalker", 'I', 8, 12, 3, 4, 4, 0},
  115. {"umber hulk", 'U', 9, 6, 2, 2, 10, 0},
  116. {"vampire", 'V', 8, 12, 1, 1, 6, 0},
  117. {"xorn", 'X', 8, 9, -2, 4, 6, 0},
  118. {"xan", 'x', 7, 18, -2, 2, 4, 0},
  119. {"zruty", 'z', 9, 8, 3, 3, 6, 0},
  120. {"chameleon", ':', 6, 5, 6, 4, 2, 0},
  121. {"dragon", 'D', 10, 9, -1, 3, 8, 0},
  122. {"ettin", 'e', 10, 12, 3, 2, 8, 0},
  123. {"lurker above", '\'', 10, 3, 3, 0, 0, 0},
  124. {"nurse", 'n', 11, 6, 0, 1, 3, 0},
  125. {"trapper", ',', 12, 3, 3, 0, 0, 0},
  126. {"purple worm", 'P', 15, 9, 6, 2, 8, 0},
  127. {"demon", '&', 10, 12, -4, 1, 4, 0},
  128. {"minotaur", 'm', 15, 15, 6, 4, 10, 0},
  129. {"shopkeeper", '@', 12, 18, 0, 4, 8, sizeof(struct eshk)}
  130. };
  131. const struct permonst pm_ghost = {"ghost", ' ', 10, 3, -5, 1, 1, sizeof(plname)};
  132. const struct permonst pm_wizard = {
  133. "wizard of Yendor", '1', 15, 12, -2, 1, 12, 0
  134. };
  135. #ifdef MAIL
  136. const struct permonst pm_mail_daemon = {"mail daemon", '2', 100, 1, 10, 0, 0, 0};
  137. #endif /* MAIL */
  138. const struct permonst pm_eel = {"giant eel", ';', 15, 6, -3, 3, 6, 0};