![]() |
Crossfire Server, Trunk
1.75.0
|
treasure is one element in a linked list, which together consist of a complete treasure-list. More...
#include <treasure.h>
Data Fields | |
sstring | artifact |
If not null, the name of the artifact to apply to item. More... | |
uint8_t | chance |
Percent chance for this item. More... | |
struct _change_arch | change_arch |
Override default arch values if set in treasure list. More... | |
struct archetype * | item |
Which item this link can be. More... | |
int8_t | list_magic_adjustment |
Adjust difficulty when generating the list pointed by name, ignored if list_magic_value is non zero. More... | |
uint8_t | list_magic_value |
Set difficulty when generating the list pointed by name. More... | |
uint8_t | magic |
Max magic bonus to item If the entry is a list transition, 'magic' contains the difficulty required to go to the new list. More... | |
sstring | name |
If non null, name of list to use instead. More... | |
treasure * | next |
Next treasure-item in a linked list. More... | |
treasure * | next_no |
If this item was not generated, then continue here. More... | |
treasure * | next_yes |
If this item was generated, use this link instead of ->next. More... | |
uint16_t | nrof |
Random 1 to nrof items are generated. More... | |
treasure is one element in a linked list, which together consist of a complete treasure-list.
Any arch can point to a treasure-list to get generated standard treasure when an archetype of that type is generated (from a generator)
Definition at line 63 of file treasure.h.
sstring treasure::artifact |
If not null, the name of the artifact to apply to item.
Definition at line 65 of file treasure.h.
uint8_t treasure::chance |
Percent chance for this item.
Definition at line 73 of file treasure.h.
Referenced by god_intervention(), and writeItem().
struct _change_arch treasure::change_arch |
Override default arch values if set in treasure list.
Definition at line 72 of file treasure.h.
struct archetype* treasure::item |
Which item this link can be.
Definition at line 64 of file treasure.h.
Referenced by determine_holy_arch(), dragon_ability_gain(), god_gives_present(), god_intervention(), pets_summon_object(), remove_special_prayers(), and writeItem().
int8_t treasure::list_magic_adjustment |
Adjust difficulty when generating the list pointed by name, ignored if list_magic_value is non zero.
Definition at line 67 of file treasure.h.
uint8_t treasure::list_magic_value |
Set difficulty when generating the list pointed by name.
Definition at line 68 of file treasure.h.
uint8_t treasure::magic |
Max magic bonus to item If the entry is a list transition, 'magic' contains the difficulty required to go to the new list.
Definition at line 74 of file treasure.h.
Referenced by dragon_ability_gain().
sstring treasure::name |
If non null, name of list to use instead.
Definition at line 66 of file treasure.h.
Referenced by god_intervention().
treasure* treasure::next |
Next treasure-item in a linked list.
Definition at line 69 of file treasure.h.
Referenced by become_follower(), determine_holy_arch(), dragon_ability_gain(), god_intervention(), pets_summon_object(), remove_special_prayers(), treasure_insert(), treasure_remove_item(), and writeItem().
treasure* treasure::next_no |
If this item was not generated, then continue here.
Definition at line 71 of file treasure.h.
Referenced by writeItem().
treasure* treasure::next_yes |
If this item was generated, use this link instead of ->next.
Definition at line 70 of file treasure.h.
Referenced by writeItem().
uint16_t treasure::nrof |
Random 1 to nrof items are generated.
Definition at line 79 of file treasure.h.
Referenced by pets_summon_object().