Atrinik Server  4.0
Data Fields
treasure_list Struct Reference

#include <treasure.h>

Data Fields

shstr * name
treasure_affinity_t * affinity
int artifact_chance
int16_t chance_fix
int16_t total_chance
struct treasure_listnext
struct treasureitems

Detailed Description

Treasure list structure.

Definition at line 175 of file treasure.h.

Field Documentation

treasure_affinity_t* treasure_list::affinity

Treasure affinity.

Definition at line 180 of file treasure.h.

int treasure_list::artifact_chance

Artifact chance.

Definition at line 183 of file treasure.h.

int16_t treasure_list::chance_fix

If set, this will overrule total_chance.

Definition at line 186 of file treasure.h.

struct treasure* treasure_list::items

Items in this list, linked

Definition at line 199 of file treasure.h.

shstr* treasure_list::name

Usually monster name/combination.

Definition at line 177 of file treasure.h.

struct treasure_list* treasure_list::next

Next treasure-item in linked list

Definition at line 196 of file treasure.h.

int16_t treasure_list::total_chance

If non zero, only 1 item on this list should be generated.

The total_chance contains the sum of the chance for this list.

Definition at line 193 of file treasure.h.

The documentation for this struct was generated from the following file: