Crossfire Server, Branch 1.12  R12190
treasure.h
Go to the documentation of this file.
00001 /*
00002  * static char *rcsid_treasure_h =
00003  *   "$Id: treasure.h 11578 2009-02-23 22:02:27Z lalo $";
00004  */
00005 
00006 /*
00007     CrossFire, A Multiplayer game for X-windows
00008 
00009     Copyright (C) 2002 Mark Wedel & Crossfire Development Team
00010     Copyright (C) 1992 Frank Tore Johansen
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00025 
00026     The authors can be reached via e-mail at crossfire-devel@real-time.com
00027 */
00028 
00034 #ifndef TREASURE_H
00035 #define TREASURE_H
00036 
00038 #define CHANCE_FOR_ARTIFACT     20
00039 
00041 #define MAXMAGIC 4
00042 
00044 #define DIFFLEVELS 201
00045 
00047 #define MAX_SPELLITEM_LEVEL 110
00048 
00058 enum {
00059     GT_ENVIRONMENT = 0x0001,    
00060     GT_INVISIBLE = 0x0002,      
00061     GT_STARTEQUIP = 0x0004,     
00062     GT_APPLY = 0x0008,          
00063     GT_ONLY_GOOD = 0x0010,      
00064     GT_UPDATE_INV = 0x0020,     
00065     GT_MINIMAL = 0x0040         
00066 };
00067 
00080 typedef struct _change_arch {
00081     const char *name;              
00082     const char *title;             
00083     const char *slaying;           
00084 } _change_arch;
00085 
00092 typedef struct treasurestruct {
00093     struct archt *item;                 
00094     const char *name;                   
00095     struct treasurestruct *next;        
00096     struct treasurestruct *next_yes;    
00097     struct treasurestruct *next_no;     
00098     struct _change_arch change_arch;    
00099     uint8 chance;                       
00100     uint8 magic;                        
00105     uint16 nrof;                        
00106 } treasure;
00107 
00111 typedef struct treasureliststruct {
00112     const char *name;                   
00113     sint16 total_chance;                
00118     struct treasureliststruct *next;    
00119     struct treasurestruct *items;       
00120 } treasurelist;
00121 
00122 #endif /* TREASURE_H */