itm.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. {
  27. OUNKNOWN, /* Marker for unknown areas */
  28. ONOTHING, /* Nothing */
  29. /* Dungeon features */
  30. OALTAR,
  31. OTHRONE, /* throne */
  32. OTHRONE2, /* throne that has summoned a gnome king */
  33. ODEADTHRONE, /* throne with jeweles pried off */
  34. OPIT,
  35. OSTAIRSUP,
  36. OELEVATORUP,
  37. OFOUNTAIN,
  38. OSTATUE,
  39. OTELEPORTER,
  40. OMIRROR,
  41. OSTAIRSDOWN,
  42. OELEVATORDOWN,
  43. ODEADFOUNTAIN,
  44. OOPENDOOR,
  45. OCLOSEDDOOR,
  46. OWALL,
  47. /* gold piles */
  48. OGOLDPILE, /* gold, amount = itemarg */
  49. ODGOLD, /* gold, amount = itemarg * 10 */
  50. OKGOLD, /* gold, amount = itemarg * 1000 */
  51. OMAXGOLD, /* gold, amount = itemarg * 10000 */
  52. OLARNEYE, /* The Eye of Larn - enables you to see demons */
  53. /* armor */
  54. OPLATE,
  55. OCHAIN,
  56. OLEATHER,
  57. ORING,
  58. OSTUDLEATHER,
  59. OSPLINT,
  60. OPLATEARMOR,
  61. OSSPLATE,
  62. OSHIELD,
  63. OELVENCHAIN, /* elven chain - strong and light, impervious to rust */
  64. /* weapons */
  65. OSWORDofSLASHING, /* impervious to rust, light, strong */
  66. OHAMMER, /* Bessman's Flailing Hammer */
  67. OSWORD,
  68. O2SWORD, /* 2 handed sword */
  69. OSPEAR,
  70. ODAGGER,
  71. OBATTLEAXE,
  72. OLONGSWORD,
  73. OFLAIL,
  74. OLANCE,
  75. OVORPAL, /* 1/20 chance of beheading most monsters */
  76. OSLAYER, /* magical sword - increases intelligence by 10,
  77. halves damage caused by demons, demon prince
  78. and lucifer - strong as lance of death against them*/
  79. /* rings */
  80. ORINGOFEXTRA,
  81. OREGENRING,
  82. OPROTRING,
  83. OENERGYRING,
  84. ODEXRING,
  85. OSTRRING,
  86. OCLEVERRING,
  87. ODAMRING,
  88. /* Magic items */
  89. OBELT, /* belt of striking */
  90. OSCROLL, /* a scroll */
  91. OPOTION, /* a potion */
  92. OBOOK, /* a book */
  93. OCHEST, /* a treasure chest */
  94. OORB, /* orb of enlightement - gives expanded awareness while held */
  95. OAMULET, /* Amulet of invisibility */
  96. OORBOFDRAGON, /* Orb or dragon slaying */
  97. OSPIRITSCARAB, /* Scarab of spirit protection */
  98. OCUBEofUNDEAD, /* Cube of undead control */
  99. ONOTHEFT, /* Device of theft prevention */
  100. OBRASSLAMP, /* brass lamp - genie pops up and offers spell */
  101. OHANDofFEAR, /* hand of fear - scare monster spell lasts
  102. twice as long if have this */
  103. OSPHTALISMAN, /* talisman of the sphere */
  104. OWWAND, /* wand of wonder - cant fall in trap doors/pits */
  105. OPSTAFF, /* staff of power - cancels drain life attack */
  106. OLIFEPRESERVER, /* Amulet of life preservation - stops n drainlevel attacks */
  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