itm.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /* =============================================================================
  2. * PROGRAM: ularn
  3. * FILENAME: itm.h
  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. #ifndef __ITM_H
  24. #define __ITM_H
  25. typedef enum {
  26. OUNKNOWN, /* Marker for unknown areas */
  27. ONOTHING, /* Nothing */
  28. /* Dungeon features */
  29. OALTAR,
  30. OTHRONE, /* throne */
  31. OTHRONE2, /* throne that has summoned a gnome king */
  32. ODEADTHRONE, /* throne with jeweles pried off */
  33. OPIT,
  34. OSTAIRSUP,
  35. OELEVATORUP,
  36. OFOUNTAIN,
  37. OSTATUE,
  38. OTELEPORTER,
  39. OMIRROR,
  40. OSTAIRSDOWN,
  41. OELEVATORDOWN,
  42. ODEADFOUNTAIN,
  43. OOPENDOOR,
  44. OCLOSEDDOOR,
  45. OWALL,
  46. /* gold piles */
  47. OGOLDPILE, /* gold, amount = itemarg */
  48. ODGOLD, /* gold, amount = itemarg * 10 */
  49. OKGOLD, /* gold, amount = itemarg * 1000 */
  50. OMAXGOLD, /* gold, amount = itemarg * 10000 */
  51. OLARNEYE, /* The Eye of Larn - enables you to see demons */
  52. /* armor */
  53. OPLATE,
  54. OCHAIN,
  55. OLEATHER,
  56. ORING,
  57. OSTUDLEATHER,
  58. OSPLINT,
  59. OPLATEARMOR,
  60. OSSPLATE,
  61. OSHIELD,
  62. OELVENCHAIN, /* elven chain - strong and light, impervious to rust */
  63. /* weapons */
  64. OSWORDofSLASHING, /* impervious to rust, light, strong */
  65. OHAMMER, /* Bessman's Flailing Hammer */
  66. OSWORD,
  67. O2SWORD, /* 2 handed sword */
  68. OSPEAR,
  69. ODAGGER,
  70. OBATTLEAXE,
  71. OLONGSWORD,
  72. OFLAIL,
  73. OLANCE,
  74. OVORPAL, /* 1/20 chance of beheading most monsters */
  75. OSLAYER, /* magical sword - increases intelligence by 10,
  76. halves damage caused by demons, demon prince
  77. and lucifer - strong as lance of death against them*/
  78. /* rings */
  79. ORINGOFEXTRA,
  80. OREGENRING,
  81. OPROTRING,
  82. OENERGYRING,
  83. ODEXRING,
  84. OSTRRING,
  85. OCLEVERRING,
  86. ODAMRING,
  87. /* Magic items */
  88. OBELT, /* belt of striking */
  89. OSCROLL, /* a scroll */
  90. OPOTION, /* a potion */
  91. OBOOK, /* a book */
  92. OCHEST, /* a treasure chest */
  93. OORB, /* orb of enlightement - gives expanded awareness while held */
  94. OAMULET, /* Amulet of invisibility */
  95. OORBOFDRAGON, /* Orb or dragon slaying */
  96. OSPIRITSCARAB, /* Scarab of spirit protection */
  97. OCUBEofUNDEAD, /* Cube of undead control */
  98. ONOTHEFT, /* Device of theft prevention */
  99. OBRASSLAMP, /* brass lamp - genie pops up and offers spell */
  100. OHANDofFEAR, /* hand of fear - scare monster spell lasts
  101. twice as long if have this */
  102. OSPHTALISMAN, /* talisman of the sphere */
  103. OWWAND, /* wand of wonder - cant fall in trap doors/pits */
  104. OPSTAFF, /* staff of power - cancels drain life attack */
  105. OLIFEPRESERVER, /* Amulet of life preservation - stops n drainlevel attacks
  106. */
  107. /* gems */
  108. ODIAMOND,
  109. ORUBY,
  110. OEMERALD,
  111. OSAPPHIRE,
  112. /* Buildings/entrances */
  113. OSCHOOL, /* College of larn */
  114. ODNDSTORE, /* DnD store */
  115. OBANK2, /* 8th brange of the bank of larn */
  116. OBANK, /* First nation bank of larn */
  117. OENTRANCE, /* dungeon entrance */
  118. OVOLDOWN, /* volcano entrance */
  119. OVOLUP, /* Volcanic tube up */
  120. OHOME, /* Player's home */
  121. OTRADEPOST, /* Larn trading post */
  122. OLRS, /* Larn Revenue Service */
  123. OPAD, /* Dealer McDope's Pad */
  124. /* Traps */
  125. OTRAPARROWIV,
  126. OTRAPARROW,
  127. OIVDARTRAP,
  128. ODARTRAP,
  129. OTRAPDOOR,
  130. OIVTRAPDOOR,
  131. OIVTELETRAP,
  132. OANNIHILATION, /* sphere of annihilation */
  133. OCOOKIE,
  134. OURN, /* golden urn - not implemented */
  135. /* Drugs */
  136. OSPEED,
  137. OACID,
  138. OHASH,
  139. OSHROOMS,
  140. OCOKE,
  141. OCOUNT
  142. } ObjectIdType;
  143. /*** How enchantment happened ***/
  144. #define ENCH_SCROLL 0 /* Enchantment from reading a scroll */
  145. #define ENCH_ALTAR 1 /* Enchantment from an altar */
  146. extern char objnamelist[OCOUNT];
  147. extern int objtilelist[OCOUNT];
  148. extern char *objectname[OCOUNT];
  149. #endif