|
Atrinik Server 2.5
|
#include <treasure.h>
Data Fields | |
| struct archt * | item |
| const char * | name |
| struct treasurestruct * | next |
| struct treasurestruct * | next_yes |
| struct treasurestruct * | next_no |
| int | t_style |
| int | magic_chance |
| int | magic_fix |
| int | artifact_chance |
| int | magic |
| int | difficulty |
| uint16 | nrof |
| sint16 | chance_fix |
| uint8 | chance |
| struct _change_arch | change_arch |
Treasure is one element in a linked list, which together consists of a complete treasurelist.
Any arch can point to a treasurelist to get generated standard treasure when an archetype of that type is generated.
Definition at line 103 of file treasure.h.
Chance to generate artifact from this.
Possible values of artifact chance:
Definition at line 142 of file treasure.h.
Percent chance for this item
Definition at line 159 of file treasure.h.
Will overrule chance: if set (not -1) it will create 1 / chance_single
Definition at line 156 of file treasure.h.
Override default arch values if set in treasure list
Definition at line 162 of file treasure.h.
If the entry is a list transition, it contains the difficulty required to go to the new list
Definition at line 150 of file treasure.h.
| struct archt* treasurestruct::item |
Which item this link can be
Definition at line 106 of file treasure.h.
Max magic bonus to item
Definition at line 145 of file treasure.h.
Value from 0 - 1000. Chance of item is magic.
Definition at line 126 of file treasure.h.
If this value is not 0, use this as fixed magic value. if it 0, look at magic to generate perhaps a random magic value
Definition at line 131 of file treasure.h.
| const char* treasurestruct::name |
If not NULL, name of list to use instead
Definition at line 109 of file treasure.h.
| struct treasurestruct* treasurestruct::next |
Next treasure item in a linked list
Definition at line 112 of file treasure.h.
If this item was not generated, then continue here
Definition at line 118 of file treasure.h.
If this item was generated, use this link instead of ->next
Definition at line 115 of file treasure.h.
Random 1 to nrof items are generated
Definition at line 153 of file treasure.h.
Local t_style (will overrule global one) - used from artifacts.
Definition at line 123 of file treasure.h.
1.7.4