1 | typedef struct artifactstruct { |
1 | typedef struct artifactstruct { |
2 | object *item; |
2 | object *item; |
3 | uint16 chance; |
3 | uint16 chance; |
4 | uint8 difficulty; |
4 | uint8 difficulty; |
5 | struct artifactstruct *next; |
5 | struct artifactstruct *next; |
6 | linked_char *allowed; |
6 | linked_char *allowed; |
7 | } artifact; |
7 | } artifact; |
8 | |
8 | |
9 | typedef struct artifactliststruct { |
9 | typedef struct artifactliststruct { |
10 | uint8 type; /* Object type that this list represents */ |
10 | uint8 type; /* Object type that this list represents */ |
11 | uint16 total_chance; /* sum of chance for are artifacts on this list */ |
11 | uint16 total_chance; /* sum of chance for are artifacts on this list */ |
12 | struct artifactliststruct *next; |
12 | struct artifactliststruct *next; |
13 | struct artifactstruct *items; |
13 | struct artifactstruct *items; |
14 | } artifactlist; |
14 | } artifactlist; |
15 | |
15 | |