ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/treasure.h
(Generate patch)

Comparing deliantra/server/include/treasure.h (file contents):
Revision 1.1 by root, Fri Feb 3 07:12:51 2006 UTC vs.
Revision 1.2 by root, Tue Aug 29 08:01:36 2006 UTC

1/* 1/*
2 * static char *rcsid_treasure_h = 2 * static char *rcsid_treasure_h =
3 * "$Id: treasure.h,v 1.1 2006/02/03 07:12:51 root Exp $"; 3 * "$Id: treasure.h,v 1.2 2006/08/29 08:01:36 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
85*/ 85*/
86 86
87typedef struct treasurestruct { 87typedef struct treasurestruct {
88 struct archt *item; /* Which item this link can be */ 88 struct archt *item; /* Which item this link can be */
89 const char *name; /* If non null, name of list to use 89 const char *name; /* If non null, name of list to use
90 instead */ 90 instead */
91 struct treasurestruct *next; /* Next treasure-item in a linked list */ 91 struct treasurestruct *next; /* Next treasure-item in a linked list */
92 struct treasurestruct *next_yes; /* If this item was generated, use */ 92 struct treasurestruct *next_yes; /* If this item was generated, use */
93 /* this link instead of ->next */ 93 /* this link instead of ->next */
94 struct treasurestruct *next_no; /* If this item was not generated, */ 94 struct treasurestruct *next_no; /* If this item was not generated, */
95 /* then continue here */ 95 /* then continue here */
96 struct _change_arch change_arch; /* override default arch values if set in treasure list */ 96 struct _change_arch change_arch; /* override default arch values if set in treasure list */
97 uint8 chance; /* Percent chance for this item */ 97 uint8 chance; /* Percent chance for this item */
98 uint8 magic; /* Max magic bonus to item */ 98 uint8 magic; /* Max magic bonus to item */
99 /* If the entry is a list transition, 99 /* If the entry is a list transition,
100 * 'magic' contains the difficulty 100 * 'magic' contains the difficulty
101 * required to go to the new list 101 * required to go to the new list
102 */ 102 */
103 uint16 nrof; /* random 1 to nrof items are generated */ 103 uint16 nrof; /* random 1 to nrof items are generated */
104} treasure; 104} treasure;
105 105
106 106
107typedef struct treasureliststruct { 107typedef struct treasureliststruct {
108 const char *name; /* Usually monster-name/combination */ 108 const char *name; /* Usually monster-name/combination */
109 sint16 total_chance; /* If non-zero, only 1 item on this 109 sint16 total_chance; /* If non-zero, only 1 item on this
110 * list should be generated. The 110 * list should be generated. The
111 * total_chance contains the sum of 111 * total_chance contains the sum of
112 * the chance for this list. 112 * the chance for this list.
113 */ 113 */
114 struct treasureliststruct *next; /* Next treasure-item in linked list */ 114 struct treasureliststruct *next; /* Next treasure-item in linked list */
115 struct treasurestruct *items; /* Items in this list, linked */ 115 struct treasurestruct *items; /* Items in this list, linked */
116} treasurelist; 116} treasurelist;
117 117
118 118

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines