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