Difference between revisions of "Source:Onames.h"
Jump to navigation
Jump to search
Kernigh bot (talk | contribs) m (Onames.h moved to Source:Onames.h: Robot: moved page) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | The contents of '''onames.h''' is generated automatically during compile-time by makedefs from the data in objects.c | + | The contents of '''onames.h''' is generated automatically during compile-time by [[makedefs]] from the data in [[objects.c]] and [[artilist.h]] |
− | and artilist.h | ||
This file contains all the object name definitions, eg. | This file contains all the object name definitions, eg. | ||
− | + | #define DAGGER 17 | |
− | #define DAGGER 17 | + | #define ELVEN_DAGGER 18 |
− | #define ELVEN_DAGGER 18 | + | #define ORCISH_DAGGER 19 |
− | #define ORCISH_DAGGER 19 | + | #define SILVER_DAGGER 20 |
− | #define SILVER_DAGGER 20 | ||
− | |||
Rings have <tt>RIN_</tt> -prefix, eg. | Rings have <tt>RIN_</tt> -prefix, eg. | ||
− | + | #define RIN_PROTECTION 155 | |
− | #define RIN_PROTECTION 155 | + | #define RIN_REGENERATION 156 |
− | #define RIN_REGENERATION 156 | ||
− | |||
Potions have <tt>POT_</tt> -prefix, eg. | Potions have <tt>POT_</tt> -prefix, eg. | ||
− | + | #define POT_LEVITATION 274 | |
− | #define POT_LEVITATION 274 | + | #define POT_HALLUCINATION 275 |
− | #define POT_HALLUCINATION 275 | ||
− | |||
Scrolls have <tt>SCR_</tt> -prefix, and spellbooks <tt>SPE_</tt> | Scrolls have <tt>SCR_</tt> -prefix, and spellbooks <tt>SPE_</tt> | ||
− | + | #define SCR_MAIL 319 | |
− | #define SCR_MAIL 319 | + | #define SCR_BLANK_PAPER 320 |
− | #define SCR_BLANK_PAPER 320 | + | #define SPE_DIG 321 |
− | #define SPE_DIG 321 | + | #define SPE_MAGIC_MISSILE 322 |
− | #define SPE_MAGIC_MISSILE 322 | ||
− | |||
Wands have <tt>WAN_</tt>, eg. | Wands have <tt>WAN_</tt>, eg. | ||
− | + | #define WAN_DIGGING 380 | |
− | #define WAN_DIGGING 380 | + | #define WAN_MAGIC_MISSILE 381 |
− | #define WAN_MAGIC_MISSILE 381 | ||
− | |||
This file also contains the indexes to the artifacts array in artilist.h: | This file also contains the indexes to the artifacts array in artilist.h: | ||
− | + | #define ART_EXCALIBUR 1 | |
− | #define ART_EXCALIBUR 1 | + | #define ART_STORMBRINGER 2 |
− | #define ART_STORMBRINGER 2 | + | #define ART_MJOLLNIR 3 |
− | #define ART_MJOLLNIR 3 | ||
− | |||
And some special definitions, such as <tt>LAST_GEM</tt>, <tt>MAXSPELL</tt>, <tt>NUM_OBJECTS</tt> and <tt>NROARTIFACTS</tt>. | And some special definitions, such as <tt>LAST_GEM</tt>, <tt>MAXSPELL</tt>, <tt>NUM_OBJECTS</tt> and <tt>NROARTIFACTS</tt>. | ||
[[Category:Source code]] | [[Category:Source code]] |
Latest revision as of 14:41, 4 March 2008
The contents of onames.h is generated automatically during compile-time by makedefs from the data in objects.c and artilist.h
This file contains all the object name definitions, eg.
#define DAGGER 17 #define ELVEN_DAGGER 18 #define ORCISH_DAGGER 19 #define SILVER_DAGGER 20
Rings have RIN_ -prefix, eg.
#define RIN_PROTECTION 155 #define RIN_REGENERATION 156
Potions have POT_ -prefix, eg.
#define POT_LEVITATION 274 #define POT_HALLUCINATION 275
Scrolls have SCR_ -prefix, and spellbooks SPE_
#define SCR_MAIL 319 #define SCR_BLANK_PAPER 320 #define SPE_DIG 321 #define SPE_MAGIC_MISSILE 322
Wands have WAN_, eg.
#define WAN_DIGGING 380 #define WAN_MAGIC_MISSILE 381
This file also contains the indexes to the artifacts array in artilist.h:
#define ART_EXCALIBUR 1 #define ART_STORMBRINGER 2 #define ART_MJOLLNIR 3
And some special definitions, such as LAST_GEM, MAXSPELL, NUM_OBJECTS and NROARTIFACTS.