Source:NetHack 3.0.0/artifact.h
Revision as of 04:18, 4 March 2008 by Kernigh bot (talk | contribs) (NetHack 3.0.0/artifact.h moved to Source:NetHack 3.0.0/artifact.h: Robot: moved page)
Below is the full text to artifact.h from the source code of NetHack 3.0.0. To link to a particular line, write [[NetHack 3.0.0/artifact.h#line123]], for example.
Warning! This is the source code from an old release. For the latest release, see Source code
The NetHack General Public License applies to screenshots, source code and other content from NetHack.
This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.
1. /* SCCS Id: @(#)artifact.h 3.0 88/07/27 2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3. /* NetHack may be freely redistributed. See license for details. */ 4. 5. #ifdef NAMED_ITEMS 6. #ifndef ARTIFACT_H 7. #define ARTIFACT_H 8. 9. #define SPFX_NONE 0x00 /* no special effects, just a bonus */ 10. #define SPFX_NOGEN 0x01 /* item is special, bequeathed by gods */ 11. #define SPFX_RESTR 0x02 /* item is restricted - can't be named */ 12. #define SPFX_INTEL 0x04 /* item is self-willed - intelligent */ 13. #define SPFX_SPEEK 0x08 /* item can speak */ 14. #define SPFX_SEEK 0x10 /* item helps you search for things */ 15. #define SPFX_WARN 0x20 /* item warns you of danger */ 16. #define SPFX_ATTK 0x40 /* item has a special attack (attk) */ 17. #define SPFX_DEFN 0x80 /* item has a special defence (defn) */ 18. #define SPFX_DMONS 0x100 /* attack bonus on one type of monster */ 19. #define SPFX_DCLAS 0x200 /* attack bonus on one class of monster */ 20. #define SPFX_DRLI 0x400 /* drains a level from monsters */ 21. #define SPFX_SEARCH 0x800 /* helps searching */ 22. 23. struct artifact { 24. unsigned otyp; 25. char *name; 26. unsigned spfx; 27. unsigned mtype; 28. struct attack attk, defn; 29. unsigned align; 30. }; 31. 32. #endif /* ARTIFACT_H /* */ 33. #endif /* NAMED_ITEMS /* */