itm.c 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /* =============================================================================
  2. * PROGRAM: ularn
  3. * FILENAME: itm.c
  4. *
  5. * DESCRIPTION:
  6. * This module contains the item number definitions and the names of all items
  7. * in the game.
  8. *
  9. * =============================================================================
  10. * EXPORTED VARIABLES
  11. *
  12. * objnamelist : The character to display on the map for each object
  13. * objtilelist : The gfx tile to display on the map for each object
  14. * objectname : The text name for each object.
  15. *
  16. * =============================================================================
  17. * EXPORTED FUNCTIONS
  18. *
  19. * None
  20. *
  21. * =============================================================================
  22. */
  23. #include "itm.h"
  24. /*
  25. * Character code for each item
  26. */
  27. char objnamelist[OCOUNT] = {
  28. ' ', ' ',
  29. /* Dungeon features */
  30. 'A', 'T', 'T', 'T', 'P', '%', '~', 'F', '&', '^', '=', '%', '~', 'f', 'O',
  31. 'D', '#',
  32. /* gold piles */
  33. '*', '*', '*', '*',
  34. /* eye of larn */
  35. 'o',
  36. /* armour */
  37. '[', '[', '[', '[', '[', '[', '[', '[', '[', '[',
  38. /* weapons */
  39. '(', '(', '(', '(', '(', '(', '(', '(', '(', '(', '(', '(',
  40. /* rings */
  41. '=', '=', '=', '=', '=', '=', '=', '=',
  42. /* magic items */
  43. ')', '?', '!', 'B', 'C', 'o', '"', 'o', '.', '.', '.', '.', '.', '.', '/',
  44. '/', '"',
  45. /* gems */
  46. '<', '<', '<', '<',
  47. /* buildings/entrances */
  48. 'M', 'S', '$', '$', 'E', 'V', 'V', 'H', 'T', 'L', 'P',
  49. /* traps */
  50. ' ', '^', ' ', '^', '^', ' ', ' ',
  51. /* misc */
  52. 's', 'c', 'u',
  53. /* drugs */
  54. ':', ':', ':', ':', ':'};
  55. int objtilelist[OCOUNT] = {175, 191,
  56. /* Dungeon features */
  57. 64, 65, 142, 144, 67, 68, 69, 70, 71, 72, 74, 76, 77,
  58. 80, 82, 83, 84,
  59. /* Gold piles */
  60. 81, 133, 134, 135,
  61. /* The eye of larn */
  62. 85,
  63. /* armour */
  64. 86, 87, 88, 123, 124, 125, 126, 127, 131, 155,
  65. /* weapons */
  66. 89, 90, 91, 92, 93, 94, 120, 121, 122, 128, 153, 154,
  67. /* rings */
  68. 95, 96, 97, 98, 99, 100, 101, 102,
  69. /* magic items */
  70. 103, 104, 105, 106, 107, 66, 108, 109, 110, 111, 112,
  71. 148, 149, 150, 151, 152, 162,
  72. /* gems */
  73. 113, 114, 115, 116,
  74. /* buildings/entrances */
  75. 73, 75, 79, 78, 117, 118, 119, 132, 140, 145, 161,
  76. /* Traps */
  77. 191, 129, 191, 136, 138, 191, 191,
  78. /* Misc */
  79. 143, 146, 147,
  80. /* Drugs */
  81. 156, 157, 158, 159, 160};
  82. /*
  83. * Description for each item
  84. */
  85. char *objectname[OCOUNT] = {
  86. "",
  87. "",
  88. /* Dungeon features */
  89. "a holy altar",
  90. "a handsome, jewel-encrusted throne",
  91. "a handsome, jewel-encrusted throne",
  92. "a massive throne",
  93. "a pit",
  94. "a staircase leading upwards",
  95. "an elevator going up",
  96. "a bubbling fountain",
  97. "a great marble statue",
  98. "a teleport trap",
  99. "a mirror",
  100. "a staircase going down",
  101. "an elevator going down",
  102. "a dead fountain",
  103. "an open door",
  104. "a closed door",
  105. "a wall",
  106. /* Gold piles */
  107. "gold",
  108. "gold",
  109. "gold",
  110. "gold",
  111. /* The eye of larn */
  112. "The Eye of Larn",
  113. /* armour */
  114. "plate mail",
  115. "chain mail",
  116. "leather armor",
  117. "ring mail",
  118. "studded leather armor",
  119. "splint mail",
  120. "plate armor",
  121. "stainless plate armor",
  122. "a shield",
  123. "elven chain",
  124. /* weapons */
  125. "a sword of slashing",
  126. "Bessman's flailing hammer",
  127. "a sunsword",
  128. "a two-handed sword",
  129. "a spear",
  130. "a dagger",
  131. "a battle axe",
  132. "a longsword",
  133. "a flail",
  134. "a lance of death",
  135. "the Vorpal Blade",
  136. "Slayer",
  137. /* rings */
  138. "a ring of extra regeneration",
  139. "a ring of regeneration",
  140. "a ring of protection",
  141. "an energy ring",
  142. "a ring of dexterity",
  143. "a ring of strength",
  144. "a ring of cleverness",
  145. "a ring of increase damage",
  146. /* magic items */
  147. "a belt of striking",
  148. "a magic scroll",
  149. "a magic potion",
  150. "a book",
  151. "a chest",
  152. "an orb of enlightenment",
  153. "an amulet of invisibility",
  154. "an orb of dragon slaying",
  155. "a scarab of negate spirit",
  156. "a cube of undead control",
  157. "a device of theft-prevention",
  158. "a brass lamp",
  159. "The Hand of Fear",
  160. "The Talisman of the Sphere",
  161. "a wand of wonder",
  162. "a staff of power",
  163. "an amulet of life preservation",
  164. /* gems */
  165. "a brilliant diamond",
  166. "a ruby",
  167. "an enchanting emerald",
  168. "a sparkling sapphire",
  169. /* Buildings.entrances */
  170. "the College of Larn",
  171. "the DND store",
  172. "the 8th branch of the Bank of Larn",
  173. "the Bank of Larn",
  174. "the dungeon entrance",
  175. "a volcanic shaft leaning downward",
  176. "the base of a volcanic shaft",
  177. "your home",
  178. "the local trading post",
  179. "the Larn Revenue Service",
  180. "Dealer McDope's Pad",
  181. /* traps */
  182. "an arrow trap",
  183. "an arrow trap",
  184. "a dart trap",
  185. "a dart trap",
  186. "a trapdoor",
  187. "a trapdoor",
  188. "a teleport trap",
  189. /* misc */
  190. "a sphere of annihilation",
  191. "a fortune cookie",
  192. "a golden urn",
  193. /* drugs */
  194. "some speed",
  195. "some LSD",
  196. "some hashish",
  197. "some magic mushrooms",
  198. "some cocaine",
  199. };