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.36 by root, Wed Dec 5 19:03:27 2018 UTC vs.
Revision 1.37 by root, Sat Oct 8 21:54:05 2022 UTC

77 * to get generated standard treasure when an archetype of that type 77 * to get generated standard treasure when an archetype of that type
78 * is generated (from a generator) 78 * is generated (from a generator)
79*/ 79*/
80struct treasure : zero_initialised 80struct treasure : zero_initialised
81{ 81{
82 arch_ptr item; /* Which item this link can be */ 82 arch_ptr item; /* Which item this link can be */
83 shstr name; /* If non null, name of list to use 83 shstr name; /* If non null, name of list to use
84 instead */ 84 instead */
85 treasure *next; /* Next treasure-item in a linked list */ 85 treasure *next; /* Next treasure-item in a linked list */
86 treasure *next_yes; /* If this item was generated, use */ 86 treasure *next_yes; /* If this item was generated, use */
87 /* this link instead of ->next */ 87 /* this link instead of ->next */
88 treasure *next_no; /* If this item was not generated, */ 88 treasure *next_no; /* If this item was not generated, */
89 /* then continue here */ 89 /* then continue here */
90 struct _change_arch change_arch; /* override default arch values if set in treasure list */ 90 struct _change_arch change_arch; /* override default arch values if set in treasure list */
91 uint16 chance; /* Percent chance for this item */ 91 uint16 chance; /* Percent chance for this item */
92 /* If the entry is a list transition, 92 /* If the entry is a list transition,
93 * 'magic' contains the difficulty 93 * 'magic' contains the difficulty
94 * required to go to the new list 94 * required to go to the new list
95 */ 95 */
96 uint16 nrof; /* random 1 to nrof items are generated */ 96 uint16 nrof; /* random 1 to nrof items are generated */
97 uint8 magic; /* Max magic bonus to item */ 97 uint8 magic; /* Max magic bonus to item */
98 98
99 treasure () 99 treasure ()
100 : chance (100) 100 : chance (100)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines